From cc061e587c1c1486954e7673f3e742cbe02365f9 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Tue, 17 Sep 2024 16:31:10 +0530 Subject: [PATCH 01/14] fix: Toolpad Core mentions --- .../material/components/app-bar/app-bar.md | 2 +- .../components/breadcrumbs/breadcrumbs.md | 4 +- .../components/container/container.md | 4 +- .../components/dialogs/ToolpadDialogs.js | 97 +++++++++++++++++++ .../components/dialogs/ToolpadDialogs.tsx | 86 ++++++++++++++++ .../dialogs/ToolpadDialogs.tsx.preview | 3 + .../material/components/dialogs/dialogs.md | 8 +- .../material/components/drawers/drawers.md | 2 +- .../snackbars/ToolpadNotifications.js | 27 ++++++ .../snackbars/ToolpadNotifications.tsx | 29 ++++++ .../ToolpadNotifications.tsx.preview | 15 +++ .../components/snackbars/snackbars.md | 6 +- .../getting-started/templates/templates.md | 2 +- 13 files changed, 273 insertions(+), 12 deletions(-) create mode 100644 docs/data/material/components/dialogs/ToolpadDialogs.js create mode 100644 docs/data/material/components/dialogs/ToolpadDialogs.tsx create mode 100644 docs/data/material/components/dialogs/ToolpadDialogs.tsx.preview create mode 100644 docs/data/material/components/snackbars/ToolpadNotifications.js create mode 100644 docs/data/material/components/snackbars/ToolpadNotifications.tsx create mode 100644 docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview diff --git a/docs/data/material/components/app-bar/app-bar.md b/docs/data/material/components/app-bar/app-bar.md index be622aedf2d67a..1143691e361710 100644 --- a/docs/data/material/components/app-bar/app-bar.md +++ b/docs/data/material/components/app-bar/app-bar.md @@ -154,7 +154,7 @@ You can override this behavior by setting the `enableColorOnDark` prop to `true` {{"demo": "EnableColorOnDarkAppBar.js", "bg": true}} -## Experimental APIs +## Toolpad ### DashboardLayout diff --git a/docs/data/material/components/breadcrumbs/breadcrumbs.md b/docs/data/material/components/breadcrumbs/breadcrumbs.md index dea04ba065698f..ab870e5794495a 100644 --- a/docs/data/material/components/breadcrumbs/breadcrumbs.md +++ b/docs/data/material/components/breadcrumbs/breadcrumbs.md @@ -66,10 +66,10 @@ The accessibility of this component relies on: - To prevent screen reader announcement of the visual separators between links, they are hidden with `aria-hidden`. - A nav element labeled with `aria-label` identifies the structure as a breadcrumb trail and makes it a navigation landmark so that it is easy to locate. -## Experimental APIs +## Toolpad ### Page Container -The [PageContainer](https://mui.com/toolpad/core/react-page-container/) component in `@toolpad/core` is the ideal wrapper for the content of your dashboard. It makes the Material UI Container navigation aware and extends it with page title, breadcrumbs, actions, and more. +The [PageContainer](https://mui.com/toolpad/core/react-page-container/) component in `@toolpad/core` is the ideal wrapper for the content of your dashboard. It makes the Material UI Container navigation-aware and extends it with page title, breadcrumbs, actions, and more. {{"demo": "./PageContainerBasic.js", "height": 400, "hideToolbar": true}} diff --git a/docs/data/material/components/container/container.md b/docs/data/material/components/container/container.md index 33fc6f267572c7..b05e05f08cf480 100644 --- a/docs/data/material/components/container/container.md +++ b/docs/data/material/components/container/container.md @@ -35,10 +35,10 @@ The max-width matches the min-width of the current breakpoint. ``` -## Experimental APIs +## Toolpad ### Page Container -The [PageContainer](https://mui.com/toolpad/core/react-page-container/) component in `@toolpad/core` is the ideal wrapper for the content of your dashboard. It makes the Material UI Container navigation aware and extends it with page title, breadcrumbs, actions, and more. +The [PageContainer](https://mui.com/toolpad/core/react-page-container/) component in `@toolpad/core` is the ideal wrapper for the content of your dashboard. It makes the Material UI Container navigation-aware and extends it with page title, breadcrumbs, actions, and more. {{"demo": "../breadcrumbs/PageContainerBasic.js", "height": 400, "hideToolbar": true}} diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.js b/docs/data/material/components/dialogs/ToolpadDialogs.js new file mode 100644 index 00000000000000..8f48970286f3a9 --- /dev/null +++ b/docs/data/material/components/dialogs/ToolpadDialogs.js @@ -0,0 +1,97 @@ +import * as React from 'react'; +import PropTypes from 'prop-types'; +import { DialogsProvider, useDialogs } from '@toolpad/core/useDialogs'; +import Button from '@mui/material/Button'; +import Dialog from '@mui/material/Dialog'; +import DialogTitle from '@mui/material/DialogTitle'; +import DialogContent from '@mui/material/DialogContent'; +import DialogActions from '@mui/material/DialogActions'; + +function MyCustomDialog({ open, onClose }) { + return ( + onClose?.(event, 'escapeKeyDown')} + > + Custom dialog + I am a custom dialog + + + + + ); +} + +MyCustomDialog.propTypes = { + /** + * Callback fired when the component requests to be closed. + * + * @param {object} event The event source of the callback. + * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`. + */ + onClose: PropTypes.func, + /** + * If `true`, the component is shown. + */ + open: PropTypes.bool.isRequired, +}; + +function DemoContent() { + const dialogs = useDialogs(); + return ( +
+ + + + +
+ ); +} + +export default function ToolpadDialogs() { + return ( + + + + ); +} diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.tsx b/docs/data/material/components/dialogs/ToolpadDialogs.tsx new file mode 100644 index 00000000000000..c4dabd2542bbe4 --- /dev/null +++ b/docs/data/material/components/dialogs/ToolpadDialogs.tsx @@ -0,0 +1,86 @@ +import * as React from 'react'; +import { DialogsProvider, useDialogs } from '@toolpad/core/useDialogs'; +import Button from '@mui/material/Button'; +import Dialog, { DialogProps } from '@mui/material/Dialog'; +import DialogTitle from '@mui/material/DialogTitle'; +import DialogContent from '@mui/material/DialogContent'; +import DialogActions from '@mui/material/DialogActions'; + +function MyCustomDialog({ open, onClose }: Pick) { + return ( + onClose?.(event, 'escapeKeyDown')} + > + Custom dialog + I am a custom dialog + + + + + ); +} + +function DemoContent() { + const dialogs = useDialogs(); + return ( +
+ + + + +
+ ); +} + +export default function ToolpadDialogs() { + return ( + + + + ); +} diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.tsx.preview b/docs/data/material/components/dialogs/ToolpadDialogs.tsx.preview new file mode 100644 index 00000000000000..a552fd4edf0f98 --- /dev/null +++ b/docs/data/material/components/dialogs/ToolpadDialogs.tsx.preview @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/docs/data/material/components/dialogs/dialogs.md b/docs/data/material/components/dialogs/dialogs.md index 7862599b674ccd..7b311473317865 100644 --- a/docs/data/material/components/dialogs/dialogs.md +++ b/docs/data/material/components/dialogs/dialogs.md @@ -168,8 +168,10 @@ The package [`material-ui-confirm`](https://github.com/jonatanklosko/material-ui Follow the [Modal accessibility section](/material-ui/react-modal/#accessibility). -## Experimental APIs +## Toolpad -### Imperative API +### `useDialogs` -You can create and manipulate dialogs imperatively with the [`useDialog`](https://mui.com/toolpad/core/react-use-dialogs/) API in `@toolpad/core`. This API provides state management for opening and closing dialogs and for passing data to the dialog and back. It allows for stacking multiple dialogs. It also provides themed alternatives for `window.alert`, `window.confirm` and `window.prompt`. +You can create and manipulate dialogs imperatively with the [`useDialogs`](https://mui.com/toolpad/core/react-use-dialogs/) API in `@toolpad/core`. This API provides state management for opening and closing dialogs and for passing data to the dialog and back. It allows for stacking multiple dialogs. It also provides themed alternatives for `window.alert`, `window.confirm` and `window.prompt`. + +{{"demo": "ToolpadDialogs.js", "defaultCodeOpen": false}} diff --git a/docs/data/material/components/drawers/drawers.md b/docs/data/material/components/drawers/drawers.md index 7abe4cdab41354..af3eb8c0857c08 100644 --- a/docs/data/material/components/drawers/drawers.md +++ b/docs/data/material/components/drawers/drawers.md @@ -136,7 +136,7 @@ Apps focused on productivity that require balance across the screen. {{"demo": "ClippedDrawer.js", "iframe": true}} -## Experimental APIs +## Toolpad ### DashboardLayout diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.js b/docs/data/material/components/snackbars/ToolpadNotifications.js new file mode 100644 index 00000000000000..06fbbd716f7de8 --- /dev/null +++ b/docs/data/material/components/snackbars/ToolpadNotifications.js @@ -0,0 +1,27 @@ +import * as React from 'react'; +import { + useNotifications, + NotificationsProvider, +} from '@toolpad/core/useNotifications'; +import Button from '@mui/material/Button'; + +export default function ToolpadNotifications() { + const notifications = useNotifications(); + return ( + +
+ +
+
+ ); +} diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.tsx b/docs/data/material/components/snackbars/ToolpadNotifications.tsx new file mode 100644 index 00000000000000..b8bae77c7e428b --- /dev/null +++ b/docs/data/material/components/snackbars/ToolpadNotifications.tsx @@ -0,0 +1,29 @@ +import * as React from 'react'; +import { + useNotifications, + NotificationsProvider, +} from '@toolpad/core/useNotifications'; +import Button from '@mui/material/Button'; + +function NotifyButton() { + const notifications = useNotifications(); + return ( + + ); +} + +export default function ToolpadNotifications() { + return ( + + + + ); +} diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview new file mode 100644 index 00000000000000..99253ab4f3ec8a --- /dev/null +++ b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview @@ -0,0 +1,15 @@ + +
+ +
+
\ No newline at end of file diff --git a/docs/data/material/components/snackbars/snackbars.md b/docs/data/material/components/snackbars/snackbars.md index 1da7dc613216f8..0feee61033f8b3 100644 --- a/docs/data/material/components/snackbars/snackbars.md +++ b/docs/data/material/components/snackbars/snackbars.md @@ -141,8 +141,10 @@ The Snackbar component is composed of a root `
` that houses interior elemen
``` -## Experimental APIs +## Toolpad -### Imperative API +### `useNotifications` You can create and manipulate notifications imperatively with the [`useNotifications`](https://mui.com/toolpad/core/react-use-notifications/) API in `@toolpad/core`. This API provides state management for opening and closing snackbars. It also allows for queueing multiple notifications at once. + +{{"demo": "ToolpadNotifications.js", "defaultCodeOpen": false}} diff --git a/docs/data/material/getting-started/templates/templates.md b/docs/data/material/getting-started/templates/templates.md index 1a5c489e7e0133..28593666bcb2fa 100644 --- a/docs/data/material/getting-started/templates/templates.md +++ b/docs/data/material/getting-started/templates/templates.md @@ -40,6 +40,6 @@ Looking for something more? You can find complete templates and themes in the Date: Tue, 17 Sep 2024 17:20:02 +0530 Subject: [PATCH 02/14] fix: Demo spacing --- .../components/dialogs/ToolpadDialogs.js | 68 ++++++++++--------- .../components/dialogs/ToolpadDialogs.tsx | 68 ++++++++++--------- 2 files changed, 70 insertions(+), 66 deletions(-) diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.js b/docs/data/material/components/dialogs/ToolpadDialogs.js index 8f48970286f3a9..472c8a4dd0a462 100644 --- a/docs/data/material/components/dialogs/ToolpadDialogs.js +++ b/docs/data/material/components/dialogs/ToolpadDialogs.js @@ -42,7 +42,7 @@ MyCustomDialog.propTypes = { function DemoContent() { const dialogs = useDialogs(); return ( -
+
- - + + - + }); + dialogs.alert(`Hello, ${name}!`); + }} + > + Prompt + +
); } diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.tsx b/docs/data/material/components/dialogs/ToolpadDialogs.tsx index c4dabd2542bbe4..c9cea26159bd8e 100644 --- a/docs/data/material/components/dialogs/ToolpadDialogs.tsx +++ b/docs/data/material/components/dialogs/ToolpadDialogs.tsx @@ -31,7 +31,7 @@ function MyCustomDialog({ open, onClose }: Pick function DemoContent() { const dialogs = useDialogs(); return ( -
+
- - + + - + }); + dialogs.alert(`Hello, ${name}!`); + }} + > + Prompt + +
); } From 6d30b3e6aa6d4dd2950c323c93e91cf4e1a3ecdd Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Wed, 18 Sep 2024 14:44:55 +0530 Subject: [PATCH 03/14] fix: CI --- .../snackbars/ToolpadNotifications.js | 30 ++++++++++--------- .../ToolpadNotifications.tsx.preview | 14 +-------- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.js b/docs/data/material/components/snackbars/ToolpadNotifications.js index 06fbbd716f7de8..b8bae77c7e428b 100644 --- a/docs/data/material/components/snackbars/ToolpadNotifications.js +++ b/docs/data/material/components/snackbars/ToolpadNotifications.js @@ -5,23 +5,25 @@ import { } from '@toolpad/core/useNotifications'; import Button from '@mui/material/Button'; -export default function ToolpadNotifications() { +function NotifyButton() { const notifications = useNotifications(); + return ( + + ); +} + +export default function ToolpadNotifications() { return ( -
- -
+
); } diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview index 99253ab4f3ec8a..a0bef6df003508 100644 --- a/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview +++ b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview @@ -1,15 +1,3 @@ -
- -
+
\ No newline at end of file From 31932f9888454a6eab1b97653cbe1d2de6658d1f Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Wed, 18 Sep 2024 17:18:29 +0530 Subject: [PATCH 04/14] fix: Jan feedback --- .../components/dialogs/ToolpadDialogs.js | 114 +++++++++------- .../components/dialogs/ToolpadDialogs.tsx | 127 ++++++++++-------- .../material/components/dialogs/dialogs.md | 31 ++++- 3 files changed, 163 insertions(+), 109 deletions(-) diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.js b/docs/data/material/components/dialogs/ToolpadDialogs.js index 472c8a4dd0a462..4728b19703bc9b 100644 --- a/docs/data/material/components/dialogs/ToolpadDialogs.js +++ b/docs/data/material/components/dialogs/ToolpadDialogs.js @@ -2,24 +2,25 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { DialogsProvider, useDialogs } from '@toolpad/core/useDialogs'; import Button from '@mui/material/Button'; +import LoadingButton from '@mui/lab/LoadingButton'; import Dialog from '@mui/material/Dialog'; +import Alert from '@mui/material/Alert'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import DialogActions from '@mui/material/DialogActions'; -function MyCustomDialog({ open, onClose }) { +function MyCustomDialog({ open, onClose, payload }) { return ( - onClose?.(event, 'escapeKeyDown')} - > - Custom dialog - I am a custom dialog + onClose()}> + Custom Error Handler + + + {`An error occurred while deleting item "${payload.id}":`} +
{payload.error}
+
+
- +
); @@ -39,52 +40,63 @@ MyCustomDialog.propTypes = { open: PropTypes.bool.isRequired, }; +const mockApiDelete = async (id) => { + return new Promise((resolve, reject) => { + setTimeout(() => { + if (!id) { + reject(new Error('ID is required')); + } else if (parseInt(id, 10) % 2 === 0) { + console.log('id', parseInt(id, 10)); + resolve(true); + } else if (parseInt(id, 10) % 2 === 1) { + reject(new Error('Can not delete odd numbered elements')); + } else if (Number.isNaN(parseInt(id, 10))) { + reject(new Error('ID must be a number')); + } else { + reject(new Error('Unknown error')); + } + }, 1000); + }); +}; + function DemoContent() { const dialogs = useDialogs(); + const [isDeleting, setIsDeleting] = React.useState(false); + + const handleDelete = async () => { + const id = await dialogs.prompt('Enter the ID to delete', { + okText: 'Delete', + cancelText: 'Cancel', + }); + + if (id) { + const deleteConfirmed = await dialogs.confirm( + `Are you sure you want to delete "${id}"?`, + ); + if (deleteConfirmed) { + try { + setIsDeleting(true); + await mockApiDelete(id); + dialogs.alert('Deleted!'); + } catch (error) { + const message = error instanceof Error ? error.message : 'Unknown error'; + await dialogs.open(MyCustomDialog, { id, error: message }); + } finally { + setIsDeleting(false); + } + } + } + }; return (
-
- - - + Delete +
); diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.tsx b/docs/data/material/components/dialogs/ToolpadDialogs.tsx index c9cea26159bd8e..4ea9b368e76d71 100644 --- a/docs/data/material/components/dialogs/ToolpadDialogs.tsx +++ b/docs/data/material/components/dialogs/ToolpadDialogs.tsx @@ -1,79 +1,92 @@ import * as React from 'react'; -import { DialogsProvider, useDialogs } from '@toolpad/core/useDialogs'; +import { DialogsProvider, useDialogs, DialogProps } from '@toolpad/core/useDialogs'; import Button from '@mui/material/Button'; -import Dialog, { DialogProps } from '@mui/material/Dialog'; +import LoadingButton from '@mui/lab/LoadingButton'; +import Dialog from '@mui/material/Dialog'; +import Alert from '@mui/material/Alert'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import DialogActions from '@mui/material/DialogActions'; -function MyCustomDialog({ open, onClose }: Pick) { +interface DeleteError { + id: string | null; + error: string | null; +} + +function MyCustomDialog({ open, onClose, payload }: DialogProps) { return ( - onClose?.(event, 'escapeKeyDown')} - > - Custom dialog - I am a custom dialog + onClose()}> + Custom Error Handler + + + {`An error occurred while deleting item "${payload.id}":`} +
{payload.error}
+
+
- +
); } +const mockApiDelete = async (id: string | null) => { + return new Promise((resolve, reject) => { + setTimeout(() => { + if (!id) { + reject(new Error('ID is required')); + } else if (parseInt(id, 10) % 2 === 0) { + console.log('id', parseInt(id, 10)); + resolve(true); + } else if (parseInt(id, 10) % 2 === 1) { + reject(new Error('Can not delete odd numbered elements')); + } else if (Number.isNaN(parseInt(id, 10))) { + reject(new Error('ID must be a number')); + } else { + reject(new Error('Unknown error')); + } + }, 1000); + }); +}; + function DemoContent() { const dialogs = useDialogs(); + const [isDeleting, setIsDeleting] = React.useState(false); + + const handleDelete = async () => { + const id = await dialogs.prompt('Enter the ID to delete', { + okText: 'Delete', + cancelText: 'Cancel', + }); + + if (id) { + const deleteConfirmed = await dialogs.confirm( + `Are you sure you want to delete "${id}"?`, + ); + if (deleteConfirmed) { + try { + setIsDeleting(true); + await mockApiDelete(id); + dialogs.alert('Deleted!'); + } catch (error) { + const message = error instanceof Error ? error.message : 'Unknown error'; + await dialogs.open(MyCustomDialog, { id, error: message }); + } finally { + setIsDeleting(false); + } + } + } + }; return (
-
- - - + Delete +
); diff --git a/docs/data/material/components/dialogs/dialogs.md b/docs/data/material/components/dialogs/dialogs.md index 7b311473317865..c4381e4c53dad1 100644 --- a/docs/data/material/components/dialogs/dialogs.md +++ b/docs/data/material/components/dialogs/dialogs.md @@ -174,4 +174,33 @@ Follow the [Modal accessibility section](/material-ui/react-modal/#accessibility You can create and manipulate dialogs imperatively with the [`useDialogs`](https://mui.com/toolpad/core/react-use-dialogs/) API in `@toolpad/core`. This API provides state management for opening and closing dialogs and for passing data to the dialog and back. It allows for stacking multiple dialogs. It also provides themed alternatives for `window.alert`, `window.confirm` and `window.prompt`. -{{"demo": "ToolpadDialogs.js", "defaultCodeOpen": false}} +The following example demonstrates how the `useDialogs` API can create a dialog that prompts the user to enter an ID and then confirms the deletion of an item with that ID. It waits for the async delete operation to complete before either displaying a success alert or a custom error dialog with an error payload: + +{{"demo": "ToolpadDialogs.js", "hideToolbar": "true"}} + +```tsx +const handleDelete = async () => { + const id = await dialogs.prompt('Enter the ID to delete', { + okText: 'Delete', + cancelText: 'Cancel', + }); + + if (id) { + const deleteConfirmed = await dialogs.confirm( + `Are you sure you want to delete "${id}"?`, + ); + if (deleteConfirmed) { + try { + setIsDeleting(true); + await mockApiDelete(id); + dialogs.alert('Deleted!'); + } catch (error) { + const message = error instanceof Error ? error.message : 'Unknown error'; + await dialogs.open(MyCustomDialog, { id, error: message }); + } finally { + setIsDeleting(false); + } + } + } +}; +``` From 3c41def2fcdf00927ff154a4c615b0471e791fb0 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Wed, 18 Sep 2024 17:25:30 +0530 Subject: [PATCH 05/14] fix: CI --- pnpm-lock.yaml | 106 ++++++++++++++++++++++++------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 425d262fb1b9d1..928809ab258578 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -356,7 +356,7 @@ importers: version: link:../../packages/mui-utils/build next: specifier: latest - version: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -366,7 +366,7 @@ importers: devDependencies: '@pigment-css/nextjs-plugin': specifier: 0.0.22 - version: 0.0.22(@types/react@18.3.4)(next@14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 0.0.22(@types/react@18.3.4)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@types/node': specifier: ^20.16.5 version: 20.16.5 @@ -652,7 +652,7 @@ importers: version: 9.7.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@toolpad/core': specifier: ^0.5.2 - version: 0.5.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2) + version: 0.5.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2) autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.45) @@ -733,7 +733,7 @@ importers: version: 5.1.2(@mui/material@packages+mui-material+build)(react@18.3.1) next: specifier: ^14.2.8 - version: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) notistack: specifier: 3.0.1 version: 3.0.1(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1457,7 +1457,7 @@ importers: version: 18.3.4 next: specifier: ^14.2.8 - version: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -1631,7 +1631,7 @@ importers: version: 4.17.21 next: specifier: ^14.2.8 - version: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -4401,8 +4401,8 @@ packages: resolution: {integrity: sha512-2KYkyluThg1AKfd0JWI7FzpS4A/fzVVGYIf6AM4ydWyNj8eI/86GQVLeRgDoH7CNOxt243R5tutWlmHpVq0/Ew==} engines: {node: '>=18.0.0'} - '@next/env@14.2.11': - resolution: {integrity: sha512-HYsQRSIXwiNqvzzYThrBwq6RhXo3E0n8j8nQnAs8i4fCEo2Zf/3eS0IiRA8XnRg9Ha0YnpkyJZIZg1qEwemrHw==} + '@next/env@14.2.12': + resolution: {integrity: sha512-3fP29GIetdwVIfIRyLKM7KrvJaqepv+6pVodEbx0P5CaMLYBtx+7eEg8JYO5L9sveJO87z9eCReceZLi0hxO1Q==} '@next/env@14.2.8': resolution: {integrity: sha512-L44a+ynqkolyNBnYfF8VoCiSrjSZWgEHYKkKLGcs/a80qh7AkfVUD/MduVPgdsWZ31tgROR+yJRA0PZjSVBXWQ==} @@ -4410,8 +4410,8 @@ packages: '@next/eslint-plugin-next@14.2.8': resolution: {integrity: sha512-ue5vcq9Fjk3asACRDrzYjcGMEN7pMMDQ5zUD+FenkqvlPCVUD1x7PxBNOLfPYDZOrk/Vnl4GHmjj2mZDqPW8TQ==} - '@next/swc-darwin-arm64@14.2.11': - resolution: {integrity: sha512-eiY9u7wEJZWp/Pga07Qy3ZmNEfALmmSS1HtsJF3y1QEyaExu7boENz11fWqDmZ3uvcyAxCMhTrA1jfVxITQW8g==} + '@next/swc-darwin-arm64@14.2.12': + resolution: {integrity: sha512-crHJ9UoinXeFbHYNok6VZqjKnd8rTd7K3Z2zpyzF1ch7vVNKmhjv/V7EHxep3ILoN8JB9AdRn/EtVVyG9AkCXw==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -4422,8 +4422,8 @@ packages: cpu: [arm64] os: [darwin] - '@next/swc-darwin-x64@14.2.11': - resolution: {integrity: sha512-lnB0zYCld4yE0IX3ANrVMmtAbziBb7MYekcmR6iE9bujmgERl6+FK+b0MBq0pl304lYe7zO4yxJus9H/Af8jbg==} + '@next/swc-darwin-x64@14.2.12': + resolution: {integrity: sha512-JbEaGbWq18BuNBO+lCtKfxl563Uw9oy2TodnN2ioX00u7V1uzrsSUcg3Ep9ce+P0Z9es+JmsvL2/rLphz+Frcw==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -4434,8 +4434,8 @@ packages: cpu: [x64] os: [darwin] - '@next/swc-linux-arm64-gnu@14.2.11': - resolution: {integrity: sha512-Ulo9TZVocYmUAtzvZ7FfldtwUoQY0+9z3BiXZCLSUwU2bp7GqHA7/bqrfsArDlUb2xeGwn3ZuBbKtNK8TR0A8w==} + '@next/swc-linux-arm64-gnu@14.2.12': + resolution: {integrity: sha512-qBy7OiXOqZrdp88QEl2H4fWalMGnSCrr1agT/AVDndlyw2YJQA89f3ttR/AkEIP9EkBXXeGl6cC72/EZT5r6rw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -4446,8 +4446,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@14.2.11': - resolution: {integrity: sha512-fH377DnKGyUnkWlmUpFF1T90m0dADBfK11dF8sOQkiELF9M+YwDRCGe8ZyDzvQcUd20Rr5U7vpZRrAxKwd3Rzg==} + '@next/swc-linux-arm64-musl@14.2.12': + resolution: {integrity: sha512-EfD9L7o9biaQxjwP1uWXnk3vYZi64NVcKUN83hpVkKocB7ogJfyH2r7o1pPnMtir6gHZiGCeHKagJ0yrNSLNHw==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -4458,8 +4458,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-x64-gnu@14.2.11': - resolution: {integrity: sha512-a0TH4ZZp4NS0LgXP/488kgvWelNpwfgGTUCDXVhPGH6pInb7yIYNgM4kmNWOxBFt+TIuOH6Pi9NnGG4XWFUyXQ==} + '@next/swc-linux-x64-gnu@14.2.12': + resolution: {integrity: sha512-iQ+n2pxklJew9IpE47hE/VgjmljlHqtcD5UhZVeHICTPbLyrgPehaKf2wLRNjYH75udroBNCgrSSVSVpAbNoYw==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -4470,8 +4470,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@14.2.11': - resolution: {integrity: sha512-DYYZcO4Uir2gZxA4D2JcOAKVs8ZxbOFYPpXSVIgeoQbREbeEHxysVsg3nY4FrQy51e5opxt5mOHl/LzIyZBoKA==} + '@next/swc-linux-x64-musl@14.2.12': + resolution: {integrity: sha512-rFkUkNwcQ0ODn7cxvcVdpHlcOpYxMeyMfkJuzaT74xjAa5v4fxP4xDk5OoYmPi8QNLDs3UgZPMSBmpBuv9zKWA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -4482,8 +4482,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-win32-arm64-msvc@14.2.11': - resolution: {integrity: sha512-PwqHeKG3/kKfPpM6of1B9UJ+Er6ySUy59PeFu0Un0LBzJTRKKAg2V6J60Yqzp99m55mLa+YTbU6xj61ImTv9mg==} + '@next/swc-win32-arm64-msvc@14.2.12': + resolution: {integrity: sha512-PQFYUvwtHs/u0K85SG4sAdDXYIPXpETf9mcEjWc0R4JmjgMKSDwIU/qfZdavtP6MPNiMjuKGXHCtyhR/M5zo8g==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -4494,8 +4494,8 @@ packages: cpu: [arm64] os: [win32] - '@next/swc-win32-ia32-msvc@14.2.11': - resolution: {integrity: sha512-0U7PWMnOYIvM74GY6rbH6w7v+vNPDVH1gUhlwHpfInJnNe5LkmUZqhp7FNWeNa5wbVgRcRi1F1cyxp4dmeLLvA==} + '@next/swc-win32-ia32-msvc@14.2.12': + resolution: {integrity: sha512-FAj2hMlcbeCV546eU2tEv41dcJb4NeqFlSXU/xL/0ehXywHnNpaYajOUvn3P8wru5WyQe6cTZ8fvckj/2XN4Vw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -4506,8 +4506,8 @@ packages: cpu: [ia32] os: [win32] - '@next/swc-win32-x64-msvc@14.2.11': - resolution: {integrity: sha512-gQpS7mcgovWoaTG1FbS5/ojF7CGfql1Q0ZLsMrhcsi2Sr9HEqsUZ70MPJyaYBXbk6iEAP7UXMD9HC8KY1qNwvA==} + '@next/swc-win32-x64-msvc@14.2.12': + resolution: {integrity: sha512-yu8QvV53sBzoIVRHsxCHqeuS8jYq6Lrmdh0briivuh+Brsp6xjg80MAozUsBTAV9KNmY08KlX0KYTWz1lbPzEg==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -9914,8 +9914,8 @@ packages: nested-error-stacks@2.1.1: resolution: {integrity: sha512-9iN1ka/9zmX1ZvLV9ewJYEk9h7RyRRtqdK0woXcqohu8EWIerfPUjYJPg0ULy0UqP7cslmdGc8xKDJcojlKiaw==} - next@14.2.11: - resolution: {integrity: sha512-8MDFqHBhdmR2wdfaWc8+lW3A/hppFe1ggQ9vgIu/g2/2QEMYJrPoQP6b+VNk56gIug/bStysAmrpUKtj3XN8Bw==} + next@14.2.12: + resolution: {integrity: sha512-cDOtUSIeoOvt1skKNihdExWMTybx3exnvbFbb9ecZDIxlvIbREQzt9A5Km3Zn3PfU+IFjyYGsHS+lN9VInAGKA==} engines: {node: '>=18.17.0'} hasBin: true peerDependencies: @@ -15288,7 +15288,7 @@ snapshots: '@netlify/node-cookies': 0.1.0 urlpattern-polyfill: 8.0.2 - '@next/env@14.2.11': {} + '@next/env@14.2.12': {} '@next/env@14.2.8': {} @@ -15296,55 +15296,55 @@ snapshots: dependencies: glob: 10.3.10 - '@next/swc-darwin-arm64@14.2.11': + '@next/swc-darwin-arm64@14.2.12': optional: true '@next/swc-darwin-arm64@14.2.8': optional: true - '@next/swc-darwin-x64@14.2.11': + '@next/swc-darwin-x64@14.2.12': optional: true '@next/swc-darwin-x64@14.2.8': optional: true - '@next/swc-linux-arm64-gnu@14.2.11': + '@next/swc-linux-arm64-gnu@14.2.12': optional: true '@next/swc-linux-arm64-gnu@14.2.8': optional: true - '@next/swc-linux-arm64-musl@14.2.11': + '@next/swc-linux-arm64-musl@14.2.12': optional: true '@next/swc-linux-arm64-musl@14.2.8': optional: true - '@next/swc-linux-x64-gnu@14.2.11': + '@next/swc-linux-x64-gnu@14.2.12': optional: true '@next/swc-linux-x64-gnu@14.2.8': optional: true - '@next/swc-linux-x64-musl@14.2.11': + '@next/swc-linux-x64-musl@14.2.12': optional: true '@next/swc-linux-x64-musl@14.2.8': optional: true - '@next/swc-win32-arm64-msvc@14.2.11': + '@next/swc-win32-arm64-msvc@14.2.12': optional: true '@next/swc-win32-arm64-msvc@14.2.8': optional: true - '@next/swc-win32-ia32-msvc@14.2.11': + '@next/swc-win32-ia32-msvc@14.2.12': optional: true '@next/swc-win32-ia32-msvc@14.2.8': optional: true - '@next/swc-win32-x64-msvc@14.2.11': + '@next/swc-win32-x64-msvc@14.2.12': optional: true '@next/swc-win32-x64-msvc@14.2.8': @@ -15782,10 +15782,10 @@ snapshots: '@opentelemetry/api@1.8.0': optional: true - '@pigment-css/nextjs-plugin@0.0.22(@types/react@18.3.4)(next@14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@pigment-css/nextjs-plugin@0.0.22(@types/react@18.3.4)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: '@pigment-css/unplugin': 0.0.22(@types/react@18.3.4)(react@18.3.1) - next: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@types/react' - react @@ -16572,7 +16572,7 @@ snapshots: '@theme-ui/css': 0.16.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1)) react: 18.3.1 - '@toolpad/core@0.5.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2)': + '@toolpad/core@0.5.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2)': dependencies: '@babel/runtime': 7.25.6 '@mui/icons-material': link:packages/mui-icons-material/build @@ -16585,7 +16585,7 @@ snapshots: prop-types: 15.8.1 react: 18.3.1 optionalDependencies: - next: 14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@emotion/react' @@ -22391,9 +22391,9 @@ snapshots: nested-error-stacks@2.1.1: {} - next@14.2.11(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.46.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@next/env': 14.2.11 + '@next/env': 14.2.12 '@swc/helpers': 0.5.5 busboy: 1.6.0 caniuse-lite: 1.0.30001649 @@ -22403,15 +22403,15 @@ snapshots: react-dom: 18.3.1(react@18.3.1) styled-jsx: 5.1.1(@babel/core@7.25.2)(babel-plugin-macros@3.1.0)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 14.2.11 - '@next/swc-darwin-x64': 14.2.11 - '@next/swc-linux-arm64-gnu': 14.2.11 - '@next/swc-linux-arm64-musl': 14.2.11 - '@next/swc-linux-x64-gnu': 14.2.11 - '@next/swc-linux-x64-musl': 14.2.11 - '@next/swc-win32-arm64-msvc': 14.2.11 - '@next/swc-win32-ia32-msvc': 14.2.11 - '@next/swc-win32-x64-msvc': 14.2.11 + '@next/swc-darwin-arm64': 14.2.12 + '@next/swc-darwin-x64': 14.2.12 + '@next/swc-linux-arm64-gnu': 14.2.12 + '@next/swc-linux-arm64-musl': 14.2.12 + '@next/swc-linux-x64-gnu': 14.2.12 + '@next/swc-linux-x64-musl': 14.2.12 + '@next/swc-win32-arm64-msvc': 14.2.12 + '@next/swc-win32-ia32-msvc': 14.2.12 + '@next/swc-win32-x64-msvc': 14.2.12 '@opentelemetry/api': 1.8.0 '@playwright/test': 1.46.1 transitivePeerDependencies: From e55719ce1b0f5ba31dcc32a2998c395f71d20b59 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Wed, 18 Sep 2024 20:37:37 +0530 Subject: [PATCH 06/14] fix: CI --- .../components/dialogs/ToolpadDialogs.js | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/data/material/components/dialogs/ToolpadDialogs.js b/docs/data/material/components/dialogs/ToolpadDialogs.js index 4728b19703bc9b..af2b688dd734aa 100644 --- a/docs/data/material/components/dialogs/ToolpadDialogs.js +++ b/docs/data/material/components/dialogs/ToolpadDialogs.js @@ -28,16 +28,25 @@ function MyCustomDialog({ open, onClose, payload }) { MyCustomDialog.propTypes = { /** - * Callback fired when the component requests to be closed. - * - * @param {object} event The event source of the callback. - * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`. + * A function to call when the dialog should be closed. If the dialog has a return + * value, it should be passed as an argument to this function. You should use the promise + * that is returned to show a loading state while the dialog is performing async actions + * on close. + * @param result The result to return from the dialog. + * @returns A promise that resolves when the dialog can be fully closed. */ - onClose: PropTypes.func, + onClose: PropTypes.func.isRequired, /** - * If `true`, the component is shown. + * Whether the dialog is open. */ open: PropTypes.bool.isRequired, + /** + * The payload that was passed when the dialog was opened. + */ + payload: PropTypes.shape({ + error: PropTypes.string, + id: PropTypes.string, + }).isRequired, }; const mockApiDelete = async (id) => { From eb195e8b6f4f70e04b8bed373db841860fd0664b Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Wed, 18 Sep 2024 21:35:29 +0530 Subject: [PATCH 07/14] fix: CI --- pnpm-lock.yaml | 180 ++++++++++--------------------------------------- 1 file changed, 35 insertions(+), 145 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9daa4506b0e2a6..01ea839520b021 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1280,7 +1280,7 @@ importers: version: 7.25.6 '@mui/utils': specifier: ^5.0.0 || ^6.0.0 - version: 5.16.6(@types/react@18.3.4)(react@18.3.1) + version: 6.1.0(@types/react@18.3.4)(react@18.3.1) babel-plugin-macros: specifier: ^3.1.0 version: 3.1.0 @@ -1423,7 +1423,7 @@ importers: version: link:../markdown '@mui/system': specifier: ^5.0.0 || ^6.0.0 - version: 5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) + version: 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) chai: specifier: ^4.4.1 version: 4.5.0 @@ -4130,16 +4130,6 @@ packages: '@types/react': optional: true - '@mui/private-theming@6.0.0-alpha.3': - resolution: {integrity: sha512-zRdwVf8RpuM0MEqMveoJ0sV48eMWvutkcY/pt9nX21jXD9kaxOCuQyT6oNrXF7ZlBDOi/NXfKRDgkQfj+kwxDQ==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@types/react': ^18.3.4 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - '@mui/private-theming@6.1.0': resolution: {integrity: sha512-+L5qccs4gwsR0r1dgjqhN24QEQRkqIbfOdxILyMbMkuI50x6wNyt9XrV+J3WtjtZTMGJCrUa5VmZBE6OEPGPWA==} engines: {node: '>=14.0.0'} @@ -4163,19 +4153,6 @@ packages: '@emotion/styled': optional: true - '@mui/styled-engine@6.0.0-alpha.3': - resolution: {integrity: sha512-tQ7xa3mJI6MZJnmm0O/Y+2z4LBSnnvMw0jfEawBSP6vRdN31kiCx8bj/J6asg9uWkCQ7FtNbzq9at7HQlWjGXA==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@emotion/react': ^11.4.1 - '@emotion/styled': ^11.3.0 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - '@mui/styled-engine@6.1.0': resolution: {integrity: sha512-MZ+vtaCkjamrT41+b0Er9OMenjAtP/32+L6fARL9/+BZKuV2QbR3q3TmavT2x0NhDu35IM03s4yKqj32Ziqnyg==} engines: {node: '>=14.0.0'} @@ -4205,22 +4182,6 @@ packages: '@types/react': optional: true - '@mui/system@6.0.0-dev.240424162023-9968b4889d': - resolution: {integrity: sha512-Y3yCFUHN1xMK62hJJBqzZb1YQvHNaHc7JUX01eU6QTPojtIbGMF2jCOP/EQw77/byahNbxeLoAIQx10F0IR3Rw==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@emotion/react': ^11.5.0 - '@emotion/styled': ^11.3.0 - '@types/react': ^18.3.4 - react: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - '@types/react': - optional: true - '@mui/system@6.1.0': resolution: {integrity: sha512-NumkGDqT6EdXfcoFLYQ+M4XlTW5hH3+aK48xAbRqKPXJfxl36CBt4DLduw/Voa5dcayGus9T6jm1AwU2hoJ5hQ==} engines: {node: '>=14.0.0'} @@ -4237,14 +4198,6 @@ packages: '@types/react': optional: true - '@mui/types@7.2.15': - resolution: {integrity: sha512-nbo7yPhtKJkdf9kcVOF8JZHPZTmqXjJ/tI0bdWgHg5tp9AnIN4Y7f7wm9T+0SyGYJk76+GYZ8Q5XaTYAsUHN0Q==} - peerDependencies: - '@types/react': ^18.3.4 - peerDependenciesMeta: - '@types/react': - optional: true - '@mui/types@7.2.16': resolution: {integrity: sha512-qI8TV3M7ShITEEc8Ih15A2vLzZGLhD+/UPNwck/hcls2gwg7dyRjNGXcQYHKLB5Q7PuTRfrTkAoPa2VV1s67Ag==} peerDependencies: @@ -10590,9 +10543,6 @@ packages: path-to-regexp@2.2.1: resolution: {integrity: sha512-gu9bD6Ta5bwGrrU8muHzVOBFFREpp2iRkVfhBJahwJ6p6Xw20SjT0MxLnwkjOibQmGSYhiUnf2FLe7k+jcFmGQ==} - path-to-regexp@6.2.1: - resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} - path-to-regexp@6.2.2: resolution: {integrity: sha512-GQX3SSMokngb36+whdpRXE+3f9V8UzyAorlYvOGx87ufGHehNTn5lCxrKtLyZ4Yl/wEKnNnr98ZzOwwDZV5ogw==} @@ -10635,9 +10585,6 @@ packages: picocolors@0.2.1: resolution: {integrity: sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==} - picocolors@1.0.1: - resolution: {integrity: sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==} - picocolors@1.1.0: resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} @@ -11786,10 +11733,6 @@ packages: resolution: {integrity: sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==} engines: {node: '>=4'} - source-map-js@1.2.0: - resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} - engines: {node: '>=0.10.0'} - source-map-js@1.2.1: resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} engines: {node: '>=0.10.0'} @@ -13021,11 +12964,6 @@ packages: resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} engines: {node: '>= 6'} - yaml@2.5.0: - resolution: {integrity: sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==} - engines: {node: '>= 14'} - hasBin: true - yaml@2.5.1: resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} engines: {node: '>= 14'} @@ -13263,7 +13201,7 @@ snapshots: '@babel/code-frame@7.24.7': dependencies: '@babel/highlight': 7.24.7 - picocolors: 1.0.1 + picocolors: 1.1.0 '@babel/compat-data@7.25.4': {} @@ -13434,7 +13372,7 @@ snapshots: '@babel/helper-validator-identifier': 7.24.7 chalk: 2.4.2 js-tokens: 4.0.0 - picocolors: 1.0.1 + picocolors: 1.1.0 '@babel/node@7.25.0(@babel/core@7.25.2)': dependencies: @@ -14991,7 +14929,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -15005,7 +14943,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -15019,7 +14957,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -15051,7 +14989,7 @@ snapshots: '@mui/base': 5.0.0-beta.31(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/core-downloads-tracker': 5.15.14 '@mui/system': 5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) clsx: 2.1.1 prop-types: 15.8.1 @@ -15099,7 +15037,7 @@ snapshots: '@mui/base': 5.0.0-beta.31(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/core-downloads-tracker': 5.15.14 '@mui/system': 5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@types/react-transition-group': 4.4.11 clsx: 2.1.1 @@ -15123,15 +15061,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.4 - '@mui/private-theming@6.0.0-alpha.3(@types/react@18.3.4)(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@mui/utils': 6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1) - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@types/react': 18.3.4 - '@mui/private-theming@6.1.0(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15152,17 +15081,6 @@ snapshots: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine@6.0.0-alpha.3(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@emotion/cache': 11.13.1 - csstype: 3.1.3 - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) - '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15180,7 +15098,7 @@ snapshots: '@babel/runtime': 7.25.6 '@mui/private-theming': 5.16.5(@types/react@18.3.4)(react@18.3.1) '@mui/styled-engine': 5.16.4(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) clsx: 2.1.1 csstype: 3.1.3 @@ -15191,22 +15109,6 @@ snapshots: '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) '@types/react': 18.3.4 - '@mui/system@6.0.0-dev.240424162023-9968b4889d(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@mui/private-theming': 6.0.0-alpha.3(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine': 6.0.0-alpha.3(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.15(@types/react@18.3.4) - '@mui/utils': 6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1) - clsx: 2.1.1 - csstype: 3.1.3 - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) - '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@types/react': 18.3.4 - '@mui/system@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15223,10 +15125,6 @@ snapshots: '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) '@types/react': 18.3.4 - '@mui/types@7.2.15(@types/react@18.3.4)': - optionalDependencies: - '@types/react': 18.3.4 - '@mui/types@7.2.16(@types/react@18.3.4)': optionalDependencies: '@types/react': 18.3.4 @@ -15234,7 +15132,7 @@ snapshots: '@mui/utils@5.16.6(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@types/prop-types': 15.7.12 clsx: 2.1.1 prop-types: 15.8.1 @@ -15246,7 +15144,7 @@ snapshots: '@mui/utils@6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 - '@mui/types': 7.2.15(@types/react@18.3.4) + '@mui/types': 7.2.16(@types/react@18.3.4) '@types/prop-types': 15.7.12 clsx: 2.1.1 prop-types: 15.8.1 @@ -15995,8 +15893,8 @@ snapshots: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/serialize': 1.3.1 '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/system': 6.0.0-dev.240424162023-9968b4889d(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/utils': 6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1) + '@mui/system': 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) + '@mui/utils': 6.1.0(@types/react@18.3.4)(react@18.3.1) '@wyw-in-js/processor-utils': 0.5.4 '@wyw-in-js/shared': 0.5.4 '@wyw-in-js/transform': 0.5.4 @@ -16091,7 +15989,7 @@ snapshots: semver: 7.6.3 strip-ansi: 5.2.0 wcwidth: 1.0.1 - yaml: 2.5.0 + yaml: 2.5.1 transitivePeerDependencies: - encoding @@ -17747,7 +17645,7 @@ snapshots: caniuse-lite: 1.0.30001649 fraction.js: 4.3.7 normalize-range: 0.1.2 - picocolors: 1.0.1 + picocolors: 1.1.0 postcss: 8.4.47 postcss-value-parser: 4.2.0 @@ -18803,12 +18701,12 @@ snapshots: css-tree@2.2.1: dependencies: mdn-data: 2.0.28 - source-map-js: 1.2.0 + source-map-js: 1.2.1 css-tree@2.3.1: dependencies: mdn-data: 2.0.30 - source-map-js: 1.2.0 + source-map-js: 1.2.1 css-vendor@2.0.8: dependencies: @@ -22659,7 +22557,7 @@ snapshots: '@sinonjs/fake-timers': 11.3.1 '@sinonjs/text-encoding': 0.7.2 just-extend: 6.2.0 - path-to-regexp: 6.2.1 + path-to-regexp: 6.2.2 no-case@3.0.4: dependencies: @@ -23326,8 +23224,6 @@ snapshots: path-to-regexp@2.2.1: {} - path-to-regexp@6.2.1: {} - path-to-regexp@6.2.2: {} path-to-regexp@8.1.0: {} @@ -23366,8 +23262,6 @@ snapshots: picocolors@0.2.1: {} - picocolors@1.0.1: {} - picocolors@1.1.0: {} picomatch@2.3.1: {} @@ -23435,7 +23329,7 @@ snapshots: fs-extra: 11.2.0 get-stdin: 9.0.0 globby: 14.0.2 - picocolors: 1.0.1 + picocolors: 1.1.0 postcss: 8.4.47 postcss-load-config: 5.1.0(jiti@1.21.0)(postcss@8.4.47)(tsx@4.19.1) postcss-reporter: 7.1.0(postcss@8.4.47) @@ -23473,14 +23367,14 @@ snapshots: postcss-load-config@4.0.1(postcss@8.4.47): dependencies: lilconfig: 2.1.0 - yaml: 2.5.0 + yaml: 2.5.1 optionalDependencies: postcss: 8.4.47 postcss-load-config@5.1.0(jiti@1.21.0)(postcss@8.4.47)(tsx@4.19.1): dependencies: lilconfig: 3.1.1 - yaml: 2.5.0 + yaml: 2.5.1 optionalDependencies: jiti: 1.21.0 postcss: 8.4.47 @@ -23493,7 +23387,7 @@ snapshots: postcss-reporter@7.1.0(postcss@8.4.47): dependencies: - picocolors: 1.0.1 + picocolors: 1.1.0 postcss: 8.4.47 thenby: 1.3.4 @@ -23523,14 +23417,14 @@ snapshots: postcss@8.4.31: dependencies: nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 + picocolors: 1.1.0 + source-map-js: 1.2.1 postcss@8.4.38: dependencies: nanoid: 3.3.7 - picocolors: 1.0.1 - source-map-js: 1.2.0 + picocolors: 1.1.0 + source-map-js: 1.2.1 postcss@8.4.47: dependencies: @@ -23580,7 +23474,7 @@ snapshots: find-up: 5.0.0 ignore: 5.3.1 mri: 1.2.0 - picocolors: 1.0.1 + picocolors: 1.1.0 picomatch: 3.0.1 prettier: 3.3.3 tslib: 2.6.2 @@ -24725,8 +24619,6 @@ snapshots: dependencies: is-plain-obj: 1.1.0 - source-map-js@1.2.0: {} - source-map-js@1.2.1: {} source-map-support@0.5.21: @@ -25026,7 +24918,7 @@ snapshots: meow: 10.1.5 micromatch: 4.0.7 normalize-path: 3.0.0 - picocolors: 1.0.1 + picocolors: 1.1.0 postcss: 8.4.47 postcss-resolve-nested-selector: 0.1.1 postcss-safe-parser: 6.0.0(postcss@8.4.47) @@ -25116,7 +25008,7 @@ snapshots: css-tree: 2.3.1 css-what: 6.1.0 csso: 5.0.5 - picocolors: 1.0.1 + picocolors: 1.1.0 symbol-observable@1.2.0: {} @@ -25145,7 +25037,7 @@ snapshots: micromatch: 4.0.7 normalize-path: 3.0.0 object-hash: 3.0.0 - picocolors: 1.0.1 + picocolors: 1.1.0 postcss: 8.4.47 postcss-import: 15.1.0(postcss@8.4.47) postcss-js: 4.0.1(postcss@8.4.47) @@ -25564,7 +25456,7 @@ snapshots: dependencies: browserslist: 4.23.3 escalade: 3.1.2 - picocolors: 1.0.1 + picocolors: 1.1.0 update-check@1.5.4: dependencies: @@ -25693,9 +25585,9 @@ snapshots: fast-glob: 3.3.2 json5: 2.2.3 local-pkg: 0.5.0 - picocolors: 1.0.1 + picocolors: 1.1.0 vite: 5.4.6(@types/node@20.16.5)(terser@5.29.2) - yaml: 2.5.0 + yaml: 2.5.1 transitivePeerDependencies: - supports-color @@ -25790,7 +25682,7 @@ snapshots: gzip-size: 6.0.0 html-escaper: 2.0.2 opener: 1.5.2 - picocolors: 1.0.1 + picocolors: 1.1.0 sirv: 2.0.3 ws: 7.5.9 transitivePeerDependencies: @@ -26064,8 +25956,6 @@ snapshots: yaml@1.10.2: {} - yaml@2.5.0: {} - yaml@2.5.1: {} yargs-parser@18.1.3: From 0b7fe3fb66c89b70f2bfd8293963c84845ae39a9 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Fri, 20 Sep 2024 14:38:27 +0530 Subject: [PATCH 08/14] fix: Add better notifs demo --- .../snackbars/ToolpadNotifications.js | 46 ++++++++++++++----- .../snackbars/ToolpadNotifications.tsx | 46 ++++++++++++++----- .../ToolpadNotifications.tsx.preview | 2 +- 3 files changed, 71 insertions(+), 23 deletions(-) diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.js b/docs/data/material/components/snackbars/ToolpadNotifications.js index b8bae77c7e428b..12118b9a9af2fe 100644 --- a/docs/data/material/components/snackbars/ToolpadNotifications.js +++ b/docs/data/material/components/snackbars/ToolpadNotifications.js @@ -3,27 +3,51 @@ import { useNotifications, NotificationsProvider, } from '@toolpad/core/useNotifications'; -import Button from '@mui/material/Button'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import Switch from '@mui/material/Switch'; -function NotifyButton() { +function NotifyRadioButton() { const notifications = useNotifications(); - return ( - + + return () => { + notifications.close(key); + }; + // preview-end + }, [notifications, online]); + + return ( +
+ setOnline((prev) => !prev)} /> + } + label="Online" + /> +
); } export default function ToolpadNotifications() { return ( - + ); } diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.tsx b/docs/data/material/components/snackbars/ToolpadNotifications.tsx index b8bae77c7e428b..12118b9a9af2fe 100644 --- a/docs/data/material/components/snackbars/ToolpadNotifications.tsx +++ b/docs/data/material/components/snackbars/ToolpadNotifications.tsx @@ -3,27 +3,51 @@ import { useNotifications, NotificationsProvider, } from '@toolpad/core/useNotifications'; -import Button from '@mui/material/Button'; +import FormControlLabel from '@mui/material/FormControlLabel'; +import Switch from '@mui/material/Switch'; -function NotifyButton() { +function NotifyRadioButton() { const notifications = useNotifications(); - return ( - + + return () => { + notifications.close(key); + }; + // preview-end + }, [notifications, online]); + + return ( +
+ setOnline((prev) => !prev)} /> + } + label="Online" + /> +
); } export default function ToolpadNotifications() { return ( - + ); } diff --git a/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview index a0bef6df003508..11355b354f6c83 100644 --- a/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview +++ b/docs/data/material/components/snackbars/ToolpadNotifications.tsx.preview @@ -1,3 +1,3 @@ - + \ No newline at end of file From 92ba5698a449280301367d8e12cbb143c7dab9fc Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Fri, 20 Sep 2024 15:01:11 +0530 Subject: [PATCH 09/14] fix: CI --- pnpm-lock.yaml | 133 ++++++++++++++++++++----------------------------- 1 file changed, 54 insertions(+), 79 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 01ea839520b021..8d068beaf47cf6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -356,7 +356,7 @@ importers: version: link:../../packages/mui-utils/build next: specifier: latest - version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -366,7 +366,7 @@ importers: devDependencies: '@pigment-css/nextjs-plugin': specifier: 0.0.23 - version: 0.0.23(@types/react@18.3.4)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) + version: 0.0.23(@types/react@18.3.4)(next@14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) '@types/node': specifier: ^20.16.5 version: 20.16.5 @@ -658,7 +658,7 @@ importers: version: 9.7.4(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@toolpad/core': specifier: ^0.6.0 - version: 0.6.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2) + version: 0.6.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2) autoprefixer: specifier: ^10.4.20 version: 10.4.20(postcss@8.4.47) @@ -739,7 +739,7 @@ importers: version: 5.1.2(@mui/material@packages+mui-material+build)(react@18.3.1) next: specifier: ^14.2.11 - version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) notistack: specifier: 3.0.1 version: 3.0.1(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1417,7 +1417,7 @@ importers: version: 7.25.6 '@mui/base': specifier: '*' - version: 5.0.0-beta.40(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 5.0.0-beta.58(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/internal-markdown': specifier: workspace:^ version: link:../markdown @@ -1463,7 +1463,7 @@ importers: version: 18.3.4 next: specifier: ^14.2.11 - version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -1637,7 +1637,7 @@ importers: version: 4.17.21 next: specifier: ^14.2.11 - version: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react: specifier: ^18.3.1 version: 18.3.1 @@ -4036,17 +4036,6 @@ packages: '@types/react': optional: true - '@mui/base@5.0.0-beta.40': - resolution: {integrity: sha512-I/lGHztkCzvwlXpjD2+SNmvNQvB4227xBXhISPjEaJUXGImOQ9f3D2Yj/T3KasSI/h0MLWy74X0J6clhPmsRbQ==} - engines: {node: '>=12.0.0'} - peerDependencies: - '@types/react': ^18.3.4 - react: ^17.0.0 || ^18.0.0 - react-dom: ^17.0.0 || ^18.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - '@mui/base@5.0.0-beta.58': resolution: {integrity: sha512-P0E7ZrxOuyYqBvVv9w8k7wm+Xzx/KRu+BGgFcR2htTsGCpJNQJCSUXNUZ50MUmSU9hzqhwbQWNXhV1MBTl6F7A==} engines: {node: '>=14.0.0'} @@ -4438,8 +4427,8 @@ packages: '@next/env@14.2.11': resolution: {integrity: sha512-HYsQRSIXwiNqvzzYThrBwq6RhXo3E0n8j8nQnAs8i4fCEo2Zf/3eS0IiRA8XnRg9Ha0YnpkyJZIZg1qEwemrHw==} - '@next/env@14.2.12': - resolution: {integrity: sha512-3fP29GIetdwVIfIRyLKM7KrvJaqepv+6pVodEbx0P5CaMLYBtx+7eEg8JYO5L9sveJO87z9eCReceZLi0hxO1Q==} + '@next/env@14.2.13': + resolution: {integrity: sha512-s3lh6K8cbW1h5Nga7NNeXrbe0+2jIIYK9YaA9T7IufDWnZpozdFUp6Hf0d5rNWUKu4fEuSX2rCKlGjCrtylfDw==} '@next/eslint-plugin-next@14.2.12': resolution: {integrity: sha512-cPrKbXtK8NTThOOFNxRGGTw+5s02Ek8z8ri/hZqeKs6uP8LOTGqFyBy6hpCXt7TvLzzriWiiwRyD4h0XYmPEEg==} @@ -4450,8 +4439,8 @@ packages: cpu: [arm64] os: [darwin] - '@next/swc-darwin-arm64@14.2.12': - resolution: {integrity: sha512-crHJ9UoinXeFbHYNok6VZqjKnd8rTd7K3Z2zpyzF1ch7vVNKmhjv/V7EHxep3ILoN8JB9AdRn/EtVVyG9AkCXw==} + '@next/swc-darwin-arm64@14.2.13': + resolution: {integrity: sha512-IkAmQEa2Htq+wHACBxOsslt+jMoV3msvxCn0WFSfJSkv/scy+i/EukBKNad36grRxywaXUYJc9mxEGkeIs8Bzg==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -4462,8 +4451,8 @@ packages: cpu: [x64] os: [darwin] - '@next/swc-darwin-x64@14.2.12': - resolution: {integrity: sha512-JbEaGbWq18BuNBO+lCtKfxl563Uw9oy2TodnN2ioX00u7V1uzrsSUcg3Ep9ce+P0Z9es+JmsvL2/rLphz+Frcw==} + '@next/swc-darwin-x64@14.2.13': + resolution: {integrity: sha512-Dv1RBGs2TTjkwEnFMVL5XIfJEavnLqqwYSD6LXgTPdEy/u6FlSrLBSSfe1pcfqhFEXRAgVL3Wpjibe5wXJzWog==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -4474,8 +4463,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-gnu@14.2.12': - resolution: {integrity: sha512-qBy7OiXOqZrdp88QEl2H4fWalMGnSCrr1agT/AVDndlyw2YJQA89f3ttR/AkEIP9EkBXXeGl6cC72/EZT5r6rw==} + '@next/swc-linux-arm64-gnu@14.2.13': + resolution: {integrity: sha512-yB1tYEFFqo4ZNWkwrJultbsw7NPAAxlPXURXioRl9SdW6aIefOLS+0TEsKrWBtbJ9moTDgU3HRILL6QBQnMevg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -4486,8 +4475,8 @@ packages: cpu: [arm64] os: [linux] - '@next/swc-linux-arm64-musl@14.2.12': - resolution: {integrity: sha512-EfD9L7o9biaQxjwP1uWXnk3vYZi64NVcKUN83hpVkKocB7ogJfyH2r7o1pPnMtir6gHZiGCeHKagJ0yrNSLNHw==} + '@next/swc-linux-arm64-musl@14.2.13': + resolution: {integrity: sha512-v5jZ/FV/eHGoWhMKYrsAweQ7CWb8xsWGM/8m1mwwZQ/sutJjoFaXchwK4pX8NqwImILEvQmZWyb8pPTcP7htWg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -4498,8 +4487,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-linux-x64-gnu@14.2.12': - resolution: {integrity: sha512-iQ+n2pxklJew9IpE47hE/VgjmljlHqtcD5UhZVeHICTPbLyrgPehaKf2wLRNjYH75udroBNCgrSSVSVpAbNoYw==} + '@next/swc-linux-x64-gnu@14.2.13': + resolution: {integrity: sha512-aVc7m4YL7ViiRv7SOXK3RplXzOEe/qQzRA5R2vpXboHABs3w8vtFslGTz+5tKiQzWUmTmBNVW0UQdhkKRORmGA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -4510,8 +4499,8 @@ packages: cpu: [x64] os: [linux] - '@next/swc-linux-x64-musl@14.2.12': - resolution: {integrity: sha512-rFkUkNwcQ0ODn7cxvcVdpHlcOpYxMeyMfkJuzaT74xjAa5v4fxP4xDk5OoYmPi8QNLDs3UgZPMSBmpBuv9zKWA==} + '@next/swc-linux-x64-musl@14.2.13': + resolution: {integrity: sha512-4wWY7/OsSaJOOKvMsu1Teylku7vKyTuocvDLTZQq0TYv9OjiYYWt63PiE1nTuZnqQ4RPvME7Xai+9enoiN0Wrg==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -4522,8 +4511,8 @@ packages: cpu: [arm64] os: [win32] - '@next/swc-win32-arm64-msvc@14.2.12': - resolution: {integrity: sha512-PQFYUvwtHs/u0K85SG4sAdDXYIPXpETf9mcEjWc0R4JmjgMKSDwIU/qfZdavtP6MPNiMjuKGXHCtyhR/M5zo8g==} + '@next/swc-win32-arm64-msvc@14.2.13': + resolution: {integrity: sha512-uP1XkqCqV2NVH9+g2sC7qIw+w2tRbcMiXFEbMihkQ8B1+V6m28sshBwAB0SDmOe0u44ne1vFU66+gx/28RsBVQ==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -4534,8 +4523,8 @@ packages: cpu: [ia32] os: [win32] - '@next/swc-win32-ia32-msvc@14.2.12': - resolution: {integrity: sha512-FAj2hMlcbeCV546eU2tEv41dcJb4NeqFlSXU/xL/0ehXywHnNpaYajOUvn3P8wru5WyQe6cTZ8fvckj/2XN4Vw==} + '@next/swc-win32-ia32-msvc@14.2.13': + resolution: {integrity: sha512-V26ezyjPqQpDBV4lcWIh8B/QICQ4v+M5Bo9ykLN+sqeKKBxJVDpEc6biDVyluTXTC40f5IqCU0ttth7Es2ZuMw==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -4546,8 +4535,8 @@ packages: cpu: [x64] os: [win32] - '@next/swc-win32-x64-msvc@14.2.12': - resolution: {integrity: sha512-yu8QvV53sBzoIVRHsxCHqeuS8jYq6Lrmdh0briivuh+Brsp6xjg80MAozUsBTAV9KNmY08KlX0KYTWz1lbPzEg==} + '@next/swc-win32-x64-msvc@14.2.13': + resolution: {integrity: sha512-WwzOEAFBGhlDHE5Z73mNU8CO8mqMNLqaG+AO9ETmzdCQlJhVtWZnOl2+rqgVQS+YHunjOWptdFmNfbpwcUuEsw==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -9977,8 +9966,8 @@ packages: sass: optional: true - next@14.2.12: - resolution: {integrity: sha512-cDOtUSIeoOvt1skKNihdExWMTybx3exnvbFbb9ecZDIxlvIbREQzt9A5Km3Zn3PfU+IFjyYGsHS+lN9VInAGKA==} + next@14.2.13: + resolution: {integrity: sha512-BseY9YNw8QJSwLYD7hlZzl6QVDoSFHL/URN5K64kVEVpCsSOWeyjbIGK+dZUaRViHTaMQX8aqmnn0PHBbGZezg==} engines: {node: '>=18.17.0'} hasBin: true peerDependencies: @@ -14953,20 +14942,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.4 - '@mui/base@5.0.0-beta.40(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) - '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) - '@popperjs/core': 2.11.8 - clsx: 2.1.1 - prop-types: 15.8.1 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - optionalDependencies: - '@types/react': 18.3.4 - '@mui/base@5.0.0-beta.58(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15380,7 +15355,7 @@ snapshots: '@next/env@14.2.11': {} - '@next/env@14.2.12': {} + '@next/env@14.2.13': {} '@next/eslint-plugin-next@14.2.12': dependencies: @@ -15389,55 +15364,55 @@ snapshots: '@next/swc-darwin-arm64@14.2.11': optional: true - '@next/swc-darwin-arm64@14.2.12': + '@next/swc-darwin-arm64@14.2.13': optional: true '@next/swc-darwin-x64@14.2.11': optional: true - '@next/swc-darwin-x64@14.2.12': + '@next/swc-darwin-x64@14.2.13': optional: true '@next/swc-linux-arm64-gnu@14.2.11': optional: true - '@next/swc-linux-arm64-gnu@14.2.12': + '@next/swc-linux-arm64-gnu@14.2.13': optional: true '@next/swc-linux-arm64-musl@14.2.11': optional: true - '@next/swc-linux-arm64-musl@14.2.12': + '@next/swc-linux-arm64-musl@14.2.13': optional: true '@next/swc-linux-x64-gnu@14.2.11': optional: true - '@next/swc-linux-x64-gnu@14.2.12': + '@next/swc-linux-x64-gnu@14.2.13': optional: true '@next/swc-linux-x64-musl@14.2.11': optional: true - '@next/swc-linux-x64-musl@14.2.12': + '@next/swc-linux-x64-musl@14.2.13': optional: true '@next/swc-win32-arm64-msvc@14.2.11': optional: true - '@next/swc-win32-arm64-msvc@14.2.12': + '@next/swc-win32-arm64-msvc@14.2.13': optional: true '@next/swc-win32-ia32-msvc@14.2.11': optional: true - '@next/swc-win32-ia32-msvc@14.2.12': + '@next/swc-win32-ia32-msvc@14.2.13': optional: true '@next/swc-win32-x64-msvc@14.2.11': optional: true - '@next/swc-win32-x64-msvc@14.2.12': + '@next/swc-win32-x64-msvc@14.2.13': optional: true '@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3': @@ -15872,10 +15847,10 @@ snapshots: '@opentelemetry/api@1.8.0': optional: true - '@pigment-css/nextjs-plugin@0.0.23(@types/react@18.3.4)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + '@pigment-css/nextjs-plugin@0.0.23(@types/react@18.3.4)(next@14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': dependencies: '@pigment-css/unplugin': 0.0.23(@types/react@18.3.4)(react@18.3.1) - next: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@types/react' - react @@ -16666,7 +16641,7 @@ snapshots: '@theme-ui/css': 0.16.2(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1)) react: 18.3.1 - '@toolpad/core@0.6.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2)': + '@toolpad/core@0.6.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/icons-material@packages+mui-icons-material+build)(@mui/material-pigment-css@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@mui/material@packages+mui-material+build)(@types/node@20.16.5)(@types/react@18.3.4)(happy-dom@12.10.3)(jsdom@24.0.0)(next@14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(terser@5.29.2)': dependencies: '@babel/runtime': 7.25.6 '@mui/icons-material': link:packages/mui-icons-material/build @@ -16680,7 +16655,7 @@ snapshots: prop-types: 15.8.1 react: 18.3.1 optionalDependencies: - next: 14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + next: 14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@emotion/react' @@ -22518,9 +22493,9 @@ snapshots: - '@babel/core' - babel-plugin-macros - next@14.2.12(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + next@14.2.13(@babel/core@7.25.2)(@opentelemetry/api@1.8.0)(@playwright/test@1.47.1)(babel-plugin-macros@3.1.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@next/env': 14.2.12 + '@next/env': 14.2.13 '@swc/helpers': 0.5.5 busboy: 1.6.0 caniuse-lite: 1.0.30001649 @@ -22530,15 +22505,15 @@ snapshots: react-dom: 18.3.1(react@18.3.1) styled-jsx: 5.1.1(@babel/core@7.25.2)(babel-plugin-macros@3.1.0)(react@18.3.1) optionalDependencies: - '@next/swc-darwin-arm64': 14.2.12 - '@next/swc-darwin-x64': 14.2.12 - '@next/swc-linux-arm64-gnu': 14.2.12 - '@next/swc-linux-arm64-musl': 14.2.12 - '@next/swc-linux-x64-gnu': 14.2.12 - '@next/swc-linux-x64-musl': 14.2.12 - '@next/swc-win32-arm64-msvc': 14.2.12 - '@next/swc-win32-ia32-msvc': 14.2.12 - '@next/swc-win32-x64-msvc': 14.2.12 + '@next/swc-darwin-arm64': 14.2.13 + '@next/swc-darwin-x64': 14.2.13 + '@next/swc-linux-arm64-gnu': 14.2.13 + '@next/swc-linux-arm64-musl': 14.2.13 + '@next/swc-linux-x64-gnu': 14.2.13 + '@next/swc-linux-x64-musl': 14.2.13 + '@next/swc-win32-arm64-msvc': 14.2.13 + '@next/swc-win32-ia32-msvc': 14.2.13 + '@next/swc-win32-x64-msvc': 14.2.13 '@opentelemetry/api': 1.8.0 '@playwright/test': 1.47.1 transitivePeerDependencies: From bf0353265470e6ff620d2ac8e3e0de8fa505f689 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Fri, 20 Sep 2024 18:16:36 +0530 Subject: [PATCH 10/14] fix: CI --- pnpm-lock.yaml | 125 +++++++------------------------------------------ 1 file changed, 16 insertions(+), 109 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2bab149b696ba4..3661c73aedbf2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1286,7 +1286,7 @@ importers: version: 7.25.6 '@mui/utils': specifier: ^5.0.0 || ^6.0.0 - version: 6.1.0(@types/react@18.3.4)(react@18.3.1) + version: 6.1.1(@types/react@18.3.4)(react@18.3.1) babel-plugin-macros: specifier: ^3.1.0 version: 3.1.0 @@ -1429,7 +1429,7 @@ importers: version: link:../markdown '@mui/system': specifier: ^5.0.0 || ^6.0.0 - version: 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) + version: 6.1.1(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) chai: specifier: ^4.4.1 version: 4.5.0 @@ -4125,16 +4125,6 @@ packages: '@types/react': optional: true - '@mui/private-theming@6.1.0': - resolution: {integrity: sha512-+L5qccs4gwsR0r1dgjqhN24QEQRkqIbfOdxILyMbMkuI50x6wNyt9XrV+J3WtjtZTMGJCrUa5VmZBE6OEPGPWA==} - engines: {node: '>=14.0.0'} - peerDependencies: - '@types/react': ^18.3.4 - react: ^17.0.0 || ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@types/react': - optional: true - '@mui/private-theming@6.1.1': resolution: {integrity: sha512-JlrjIdhyZUtewtdAuUsvi3ZnO0YS49IW4Mfz19ZWTlQ0sDGga6LNPVwHClWr2/zJK2we2BQx9/i8M32rgKuzrg==} engines: {node: '>=14.0.0'} @@ -4158,19 +4148,6 @@ packages: '@emotion/styled': optional: true - '@mui/styled-engine@6.1.0': - resolution: {integrity: sha512-MZ+vtaCkjamrT41+b0Er9OMenjAtP/32+L6fARL9/+BZKuV2QbR3q3TmavT2x0NhDu35IM03s4yKqj32Ziqnyg==} - engines: {node: '>=14.0.0'} - peerDependencies: - '@emotion/react': ^11.4.1 - '@emotion/styled': ^11.3.0 - react: ^17.0.0 || ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - '@mui/styled-engine@6.1.1': resolution: {integrity: sha512-HJyIoMpFb11fnHuRtUILOXgq6vj4LhIlE8maG4SwP/W+E5sa7HFexhnB3vOMT7bKys4UKNxhobC8jwWxYilGsA==} engines: {node: '>=14.0.0'} @@ -4200,22 +4177,6 @@ packages: '@types/react': optional: true - '@mui/system@6.1.0': - resolution: {integrity: sha512-NumkGDqT6EdXfcoFLYQ+M4XlTW5hH3+aK48xAbRqKPXJfxl36CBt4DLduw/Voa5dcayGus9T6jm1AwU2hoJ5hQ==} - engines: {node: '>=14.0.0'} - peerDependencies: - '@emotion/react': ^11.5.0 - '@emotion/styled': ^11.3.0 - '@types/react': ^18.3.4 - react: ^17.0.0 || ^18.0.0 || ^19.0.0 - peerDependenciesMeta: - '@emotion/react': - optional: true - '@emotion/styled': - optional: true - '@types/react': - optional: true - '@mui/system@6.1.1': resolution: {integrity: sha512-PaYsCz2tUOcpu3T0okDEsSuP/yCDIj9JZ4Tox1JovRSKIjltHpXPsXZSGr3RiWdtM1MTQMFMCZzu0+CKbyy+Kw==} engines: {node: '>=14.0.0'} @@ -4232,14 +4193,6 @@ packages: '@types/react': optional: true - '@mui/types@7.2.16': - resolution: {integrity: sha512-qI8TV3M7ShITEEc8Ih15A2vLzZGLhD+/UPNwck/hcls2gwg7dyRjNGXcQYHKLB5Q7PuTRfrTkAoPa2VV1s67Ag==} - peerDependencies: - '@types/react': ^18.3.4 - peerDependenciesMeta: - '@types/react': - optional: true - '@mui/types@7.2.17': resolution: {integrity: sha512-oyumoJgB6jDV8JFzRqjBo2daUuHpzDjoO/e3IrRhhHo/FxJlaVhET6mcNrKHUq2E+R+q3ql0qAtvQ4rfWHhAeQ==} peerDependencies: @@ -14984,7 +14937,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -14998,7 +14951,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -15012,7 +14965,7 @@ snapshots: dependencies: '@babel/runtime': 7.25.6 '@floating-ui/react-dom': 2.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1) '@popperjs/core': 2.11.8 clsx: 2.1.1 @@ -15030,7 +14983,7 @@ snapshots: '@mui/base': 5.0.0-beta.31(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/core-downloads-tracker': 5.15.14 '@mui/system': 5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) clsx: 2.1.1 prop-types: 15.8.1 @@ -15046,9 +14999,9 @@ snapshots: '@babel/runtime': 7.25.6 '@mui/base': 5.0.0-beta.58(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/material': link:packages/mui-material/build - '@mui/system': 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) - '@mui/utils': 6.1.0(@types/react@18.3.4)(react@18.3.1) + '@mui/system': 6.1.1(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) + '@mui/types': 7.2.17(@types/react@18.3.4) + '@mui/utils': 6.1.1(@types/react@18.3.4)(react@18.3.1) clsx: 2.1.1 prop-types: 15.8.1 react: 18.3.1 @@ -15078,7 +15031,7 @@ snapshots: '@mui/base': 5.0.0-beta.31(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@mui/core-downloads-tracker': 5.15.14 '@mui/system': 5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) '@types/react-transition-group': 4.4.11 clsx: 2.1.1 @@ -15102,15 +15055,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.4 - '@mui/private-theming@6.1.0(@types/react@18.3.4)(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@mui/utils': 6.1.0(@types/react@18.3.4)(react@18.3.1) - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@types/react': 18.3.4 - '@mui/private-theming@6.1.1(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15119,7 +15063,6 @@ snapshots: react: 18.3.1 optionalDependencies: '@types/react': 18.3.4 - optional: true '@mui/styled-engine@5.16.4(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1)': dependencies: @@ -15132,18 +15075,6 @@ snapshots: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@emotion/cache': 11.13.1 - '@emotion/sheet': 1.4.0 - csstype: 3.1.3 - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) - '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine@6.1.1(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15155,14 +15086,13 @@ snapshots: optionalDependencies: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - optional: true '@mui/system@5.16.5(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 '@mui/private-theming': 5.16.5(@types/react@18.3.4)(react@18.3.1) '@mui/styled-engine': 5.16.4(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@mui/utils': 5.16.6(@types/react@18.3.4)(react@18.3.1) clsx: 2.1.1 csstype: 3.1.3 @@ -15173,22 +15103,6 @@ snapshots: '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) '@types/react': 18.3.4 - '@mui/system@6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1)': - dependencies: - '@babel/runtime': 7.25.6 - '@mui/private-theming': 6.1.0(@types/react@18.3.4)(react@18.3.1) - '@mui/styled-engine': 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(react@18.3.1) - '@mui/types': 7.2.16(@types/react@18.3.4) - '@mui/utils': 6.1.0(@types/react@18.3.4)(react@18.3.1) - clsx: 2.1.1 - csstype: 3.1.3 - prop-types: 15.8.1 - react: 18.3.1 - optionalDependencies: - '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) - '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@types/react': 18.3.4 - '@mui/system@6.1.1(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 @@ -15204,21 +15118,15 @@ snapshots: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) '@types/react': 18.3.4 - optional: true - - '@mui/types@7.2.16(@types/react@18.3.4)': - optionalDependencies: - '@types/react': 18.3.4 '@mui/types@7.2.17(@types/react@18.3.4)': optionalDependencies: '@types/react': 18.3.4 - optional: true '@mui/utils@5.16.6(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@types/prop-types': 15.7.12 clsx: 2.1.1 prop-types: 15.8.1 @@ -15230,7 +15138,7 @@ snapshots: '@mui/utils@6.0.0-rc.0(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@types/prop-types': 15.7.12 clsx: 2.1.1 prop-types: 15.8.1 @@ -15242,7 +15150,7 @@ snapshots: '@mui/utils@6.1.0(@types/react@18.3.4)(react@18.3.1)': dependencies: '@babel/runtime': 7.25.6 - '@mui/types': 7.2.16(@types/react@18.3.4) + '@mui/types': 7.2.17(@types/react@18.3.4) '@types/prop-types': 15.7.12 clsx: 2.1.1 prop-types: 15.8.1 @@ -15262,7 +15170,6 @@ snapshots: react-is: 18.3.1 optionalDependencies: '@types/react': 18.3.4 - optional: true '@mui/x-charts-vendor@7.16.0': dependencies: @@ -15992,8 +15899,8 @@ snapshots: '@emotion/react': 11.13.3(@types/react@18.3.4)(react@18.3.1) '@emotion/serialize': 1.3.1 '@emotion/styled': 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/system': 6.1.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) - '@mui/utils': 6.1.0(@types/react@18.3.4)(react@18.3.1) + '@mui/system': 6.1.1(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@emotion/styled@11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) + '@mui/utils': 6.1.1(@types/react@18.3.4)(react@18.3.1) '@wyw-in-js/processor-utils': 0.5.4 '@wyw-in-js/shared': 0.5.4 '@wyw-in-js/transform': 0.5.4 From 46dcc36d4b2e5b064020b5bcd478dbc871459e76 Mon Sep 17 00:00:00 2001 From: Bharat Kashyap Date: Tue, 1 Oct 2024 00:42:39 +0200 Subject: [PATCH 11/14] fix: Olivier review --- .../app-bar/DashboardLayoutBasic.js | 2 +- .../app-bar/DashboardLayoutBasic.tsx | 2 +- .../material/components/app-bar/app-bar.md | 6 ++--- .../breadcrumbs/PageContainerBasic.js | 22 ++++--------------- .../breadcrumbs/PageContainerBasic.tsx | 22 ++++--------------- .../components/breadcrumbs/breadcrumbs.md | 4 ++-- .../components/container/container.md | 4 ++-- ...lpadDialogs.js => ToolpadDialogsNoSnap.js} | 2 +- ...adDialogs.tsx => ToolpadDialogsNoSnap.tsx} | 2 +- ...eview => ToolpadDialogsNoSnap.tsx.preview} | 0 .../material/components/dialogs/dialogs.md | 15 ++++++++----- .../material/components/drawers/drawers.md | 6 ++--- ...tions.js => ToolpadNotificationsNoSnap.js} | 20 +++++------------ ...ons.tsx => ToolpadNotificationsNoSnap.tsx} | 20 +++++------------ ...=> ToolpadNotificationsNoSnap.tsx.preview} | 2 +- .../components/snackbars/snackbars.md | 8 +++---- .../home/ToolpadCoreShowcaseDemo.tsx | 2 +- 17 files changed, 48 insertions(+), 91 deletions(-) rename docs/data/material/components/dialogs/{ToolpadDialogs.js => ToolpadDialogsNoSnap.js} (98%) rename docs/data/material/components/dialogs/{ToolpadDialogs.tsx => ToolpadDialogsNoSnap.tsx} (98%) rename docs/data/material/components/dialogs/{ToolpadDialogs.tsx.preview => ToolpadDialogsNoSnap.tsx.preview} (100%) rename docs/data/material/components/snackbars/{ToolpadNotifications.js => ToolpadNotificationsNoSnap.js} (67%) rename docs/data/material/components/snackbars/{ToolpadNotifications.tsx => ToolpadNotificationsNoSnap.tsx} (67%) rename docs/data/material/components/snackbars/{ToolpadNotifications.tsx.preview => ToolpadNotificationsNoSnap.tsx.preview} (66%) diff --git a/docs/data/material/components/app-bar/DashboardLayoutBasic.js b/docs/data/material/components/app-bar/DashboardLayoutBasic.js index 5e999fa08b0322..2c8f565c766594 100644 --- a/docs/data/material/components/app-bar/DashboardLayoutBasic.js +++ b/docs/data/material/components/app-bar/DashboardLayoutBasic.js @@ -97,7 +97,7 @@ export default function DashboardLayoutBasic(props) { const router = useDemoRouter('/dashboard'); // Remove this const when copying and pasting into your project. - const demoWindow = window !== undefined ? window() : undefined; + const demoWindow = window ? window() : undefined; return (
Date: Tue, 15 Oct 2024 14:39:38 +0530 Subject: [PATCH 14/14] fix: Jan review 2 --- docs/data/material/components/dialogs/dialogs.md | 2 +- docs/data/material/components/drawers/drawers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/data/material/components/dialogs/dialogs.md b/docs/data/material/components/dialogs/dialogs.md index 87efff1e61e2ca..c12c0b7a4306ec 100644 --- a/docs/data/material/components/dialogs/dialogs.md +++ b/docs/data/material/components/dialogs/dialogs.md @@ -172,7 +172,7 @@ Follow the [Modal accessibility section](/material-ui/react-modal/#accessibility ### useDialogs -You can create and manipulate dialogs imperatively with the useDialogs() API in @toolpad/core. This hook handles +You can create and manipulate dialogs imperatively with the [`useDialogs()`](https://mui.com/toolpad/core/react-use-dialogs/) API in `@toolpad/core`. This hook handles - state management for opening and closing dialogs - passing data to dialogs and receiving results back from them diff --git a/docs/data/material/components/drawers/drawers.md b/docs/data/material/components/drawers/drawers.md index afa767485ee230..20af480e863f3d 100644 --- a/docs/data/material/components/drawers/drawers.md +++ b/docs/data/material/components/drawers/drawers.md @@ -142,4 +142,4 @@ Apps focused on productivity that require balance across the screen. The [DashboardLayout](https://mui.com/toolpad/core/react-dashboard-layout/) component from `@toolpad/core` is the starting point for dashboarding applications. It takes care of application layout, theming, navigation, and more. An example usage of this component: -{{"demo": "../app-bar/DashboardLayoutBasic.js", "height": 400, "iframe": true, "defaultExpanded": false}} +{{"demo": "../app-bar/DashboardLayoutBasic.js", "height": 400, "iframe": true, "bg": "inline", "defaultExpanded": false}}