diff --git a/examples/crm/package.json b/examples/crm/package.json index a54ee483744..e73bae35864 100644 --- a/examples/crm/package.json +++ b/examples/crm/package.json @@ -5,8 +5,8 @@ "type": "module", "dependencies": { "@hello-pangea/dnd": "^16.3.0", - "@mui/icons-material": "^6.0.0", - "@mui/material": "^6.0.0", + "@mui/icons-material": "^5.16.12", + "@mui/material": "^5.16.12", "@nivo/bar": "^0.80.0", "@nivo/core": "^0.80.0", "clsx": "^2.1.1", diff --git a/examples/no-code/package.json b/examples/no-code/package.json index 148edc94056..04f5cf5cb85 100644 --- a/examples/no-code/package.json +++ b/examples/no-code/package.json @@ -8,7 +8,7 @@ "serve": "vite preview" }, "dependencies": { - "@mui/material": "^6.0.0", + "@mui/material": "^5.16.12", "ra-data-local-storage": "^5.0.0", "ra-no-code": "^5.0.0", "react": "18.3.1", diff --git a/examples/simple/package.json b/examples/simple/package.json index 9fb20542056..c4fbf57794d 100644 --- a/examples/simple/package.json +++ b/examples/simple/package.json @@ -10,8 +10,8 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@mui/icons-material": "^6.0.0", - "@mui/material": "^6.0.0", + "@mui/icons-material": "^5.16.12", + "@mui/material": "^5.16.12", "@tanstack/react-query": "^5.21.7", "@tanstack/react-query-devtools": "^5.21.7", "jsonexport": "^3.2.0", diff --git a/examples/tutorial/package.json b/examples/tutorial/package.json index d281ea5c4f1..1105a69d397 100644 --- a/examples/tutorial/package.json +++ b/examples/tutorial/package.json @@ -9,6 +9,8 @@ "preview": "vite preview" }, "dependencies": { + "@mui/icons-material": "^6.0.0", + "@mui/material": "^6.0.0", "ra-data-json-server": "^5.0.0", "react": "^19.0.0", "react-admin": "^5.0.0", diff --git a/packages/ra-input-rich-text/package.json b/packages/ra-input-rich-text/package.json index 474691da6a8..c8a90a7a913 100644 --- a/packages/ra-input-rich-text/package.json +++ b/packages/ra-input-rich-text/package.json @@ -46,8 +46,8 @@ "react-dom": "^18.0.0 || ^19.0.0" }, "devDependencies": { - "@mui/icons-material": "^6.0.0", - "@mui/material": "^6.0.0", + "@mui/icons-material": "^5.16.12", + "@mui/material": "^5.16.12", "@testing-library/react": "^15.0.7", "@tiptap/extension-mention": "^2.0.3", "@tiptap/suggestion": "^2.0.3", diff --git a/packages/ra-ui-materialui/package.json b/packages/ra-ui-materialui/package.json index d2feb5b79b5..04c13032c94 100644 --- a/packages/ra-ui-materialui/package.json +++ b/packages/ra-ui-materialui/package.json @@ -26,9 +26,9 @@ "watch": "tsc --outDir dist/esm --module es2015 --watch" }, "devDependencies": { - "@mui/icons-material": "^6.0.0", - "@mui/material": "^6.0.0", - "@mui/utils": "^6.0.0", + "@mui/icons-material": "^5.16.12", + "@mui/material": "^5.16.12", + "@mui/utils": "^5.16.12", "@testing-library/react": "^15.0.7", "@types/dompurify": "^3.0.2", "@types/react": "^18.3.3", diff --git a/packages/ra-ui-materialui/src/layout/ThemeTestWrapper.tsx b/packages/ra-ui-materialui/src/layout/ThemeTestWrapper.tsx index 3ac247effbf..d3a44b62fcc 100644 --- a/packages/ra-ui-materialui/src/layout/ThemeTestWrapper.tsx +++ b/packages/ra-ui-materialui/src/layout/ThemeTestWrapper.tsx @@ -22,8 +22,8 @@ export const ThemeTestWrapper = ({ mode === 'dark' && query === '(prefers-color-scheme: dark)' ? true : false, - addEventListener: () => {}, - removeEventListener: () => {}, + addListener: () => {}, + removeListener: () => {}, }); return ( diff --git a/packages/ra-ui-materialui/src/theme/useTheme.spec.tsx b/packages/ra-ui-materialui/src/theme/useTheme.spec.tsx index 64947e58536..763b4a3cbc6 100644 --- a/packages/ra-ui-materialui/src/theme/useTheme.spec.tsx +++ b/packages/ra-ui-materialui/src/theme/useTheme.spec.tsx @@ -59,8 +59,8 @@ describe('useTheme', () => { it('should return the user preferred theme by default', async () => { const ssrMatchMedia = query => ({ matches: query === '(prefers-color-scheme: dark)' ? true : false, - addEventListener: () => {}, - removeEventListener: () => {}, + addListener: () => {}, + removeListener: () => {}, }); render( diff --git a/yarn.lock b/yarn.lock index 77ff4fe9f43..e6cdd353f1b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2815,6 +2815,13 @@ __metadata: languageName: node linkType: hard +"@mui/core-downloads-tracker@npm:^5.16.14": + version: 5.16.14 + resolution: "@mui/core-downloads-tracker@npm:5.16.14" + checksum: eb866003ee4564c40423aadc4513b4c7d72c69723fe7dee4697ac70c19951e6e11093bb190761dc51a8f4d2731e562034ecb284930eec931bae1a56b8e18ca60 + languageName: node + linkType: hard + "@mui/core-downloads-tracker@npm:^6.3.1": version: 6.3.1 resolution: "@mui/core-downloads-tracker@npm:6.3.1" @@ -2822,6 +2829,22 @@ __metadata: languageName: node linkType: hard +"@mui/icons-material@npm:^5.16.12": + version: 5.16.14 + resolution: "@mui/icons-material@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + peerDependencies: + "@mui/material": ^5.0.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 11632d1f9904fda0a751e442d3d948a83977cd9ba81481cda4e61b9dfdbd80b0616e27750728c066a4dc505035d7ad6aa29ff7c6160a9b52a2b313fc89aa4be3 + languageName: node + linkType: hard + "@mui/icons-material@npm:^5.16.12 || ^6.0.0, @mui/icons-material@npm:^6.0.0": version: 6.3.1 resolution: "@mui/icons-material@npm:6.3.1" @@ -2838,6 +2861,39 @@ __metadata: languageName: node linkType: hard +"@mui/material@npm:^5.16.12": + version: 5.16.14 + resolution: "@mui/material@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + "@mui/core-downloads-tracker": "npm:^5.16.14" + "@mui/system": "npm:^5.16.14" + "@mui/types": "npm:^7.2.15" + "@mui/utils": "npm:^5.16.14" + "@popperjs/core": "npm:^2.11.8" + "@types/react-transition-group": "npm:^4.4.10" + clsx: "npm:^2.1.0" + csstype: "npm:^3.1.3" + prop-types: "npm:^15.8.1" + react-is: "npm:^19.0.0" + react-transition-group: "npm:^4.4.5" + peerDependencies: + "@emotion/react": ^11.5.0 + "@emotion/styled": ^11.3.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@emotion/react": + optional: true + "@emotion/styled": + optional: true + "@types/react": + optional: true + checksum: e313c1274f18a245f7128c9ccbd6444d6edb91a99fef7b6ec9ece4d2d19da0fec9a484afc24c0c35e9fcc53fb090dc524083d682c78428754a1c5b6cebb70a63 + languageName: node + linkType: hard + "@mui/material@npm:^5.16.12 || ^6.0.0, @mui/material@npm:^6.0.0": version: 6.3.1 resolution: "@mui/material@npm:6.3.1" @@ -2874,6 +2930,23 @@ __metadata: languageName: node linkType: hard +"@mui/private-theming@npm:^5.16.14": + version: 5.16.14 + resolution: "@mui/private-theming@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + "@mui/utils": "npm:^5.16.14" + prop-types: "npm:^15.8.1" + peerDependencies: + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 9723b63bd19000c096884f5a8900dc228afbe829d880d371865ae29387448cc669c10160bb55369210f3e903afb577ba832a39bc565427351bc27b42591c8099 + languageName: node + linkType: hard + "@mui/private-theming@npm:^6.3.1": version: 6.3.1 resolution: "@mui/private-theming@npm:6.3.1" @@ -2891,6 +2964,27 @@ __metadata: languageName: node linkType: hard +"@mui/styled-engine@npm:^5.16.14": + version: 5.16.14 + resolution: "@mui/styled-engine@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + "@emotion/cache": "npm:^11.13.5" + csstype: "npm:^3.1.3" + prop-types: "npm:^15.8.1" + 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 + checksum: cd512faea4ad3ff5a9b315e136a518223ea3e4e34462fe70c56d1f166c46bee0a885ed982773d75c1d56ead62b95989cc5907601e8d65bfa75494b3f3288c2ad + languageName: node + linkType: hard + "@mui/styled-engine@npm:^6.3.1": version: 6.3.1 resolution: "@mui/styled-engine@npm:6.3.1" @@ -2914,6 +3008,34 @@ __metadata: languageName: node linkType: hard +"@mui/system@npm:^5.16.14": + version: 5.16.14 + resolution: "@mui/system@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + "@mui/private-theming": "npm:^5.16.14" + "@mui/styled-engine": "npm:^5.16.14" + "@mui/types": "npm:^7.2.15" + "@mui/utils": "npm:^5.16.14" + clsx: "npm:^2.1.0" + csstype: "npm:^3.1.3" + prop-types: "npm:^15.8.1" + peerDependencies: + "@emotion/react": ^11.5.0 + "@emotion/styled": ^11.3.0 + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@emotion/react": + optional: true + "@emotion/styled": + optional: true + "@types/react": + optional: true + checksum: d7ab8dfd9fbecbde4423a0d432e63f45cd8c96bb4e48116f9f9b46cb001c2e32df3a1f09727f8b30c1bc182774cc33e338b1475287a2985dba795ee5486fc4cb + languageName: node + linkType: hard + "@mui/system@npm:^6.3.1": version: 6.3.1 resolution: "@mui/system@npm:6.3.1" @@ -2942,7 +3064,7 @@ __metadata: languageName: node linkType: hard -"@mui/types@npm:^7.2.21": +"@mui/types@npm:^7.2.15, @mui/types@npm:^7.2.21": version: 7.2.21 resolution: "@mui/types@npm:7.2.21" peerDependencies: @@ -2954,7 +3076,27 @@ __metadata: languageName: node linkType: hard -"@mui/utils@npm:^6.0.0, @mui/utils@npm:^6.3.1": +"@mui/utils@npm:^5.16.12, @mui/utils@npm:^5.16.14": + version: 5.16.14 + resolution: "@mui/utils@npm:5.16.14" + dependencies: + "@babel/runtime": "npm:^7.23.9" + "@mui/types": "npm:^7.2.15" + "@types/prop-types": "npm:^15.7.12" + clsx: "npm:^2.1.1" + prop-types: "npm:^15.8.1" + react-is: "npm:^19.0.0" + peerDependencies: + "@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0 + react: ^17.0.0 || ^18.0.0 || ^19.0.0 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 5148dedb8597a76df193df4c3b4ff4bb3c19d99f3b69df8b9d6c9905c5cc5eb750a71429aea7e52a03ad8b858c7ec48d04e5670ecf4e39b8c3a6a84f1a83721a + languageName: node + linkType: hard + +"@mui/utils@npm:^6.3.1": version: 6.3.1 resolution: "@mui/utils@npm:6.3.1" dependencies: @@ -4997,7 +5139,7 @@ __metadata: languageName: node linkType: hard -"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.14": +"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.12, @types/prop-types@npm:^15.7.14": version: 15.7.14 resolution: "@types/prop-types@npm:15.7.14" checksum: 1ec775160bfab90b67a782d735952158c7e702ca4502968aa82565bd8e452c2de8601c8dfe349733073c31179116cf7340710160d3836aa8a1ef76d1532893b1 @@ -7126,7 +7268,7 @@ __metadata: languageName: node linkType: hard -"clsx@npm:^2.1.1": +"clsx@npm:^2.1.0, clsx@npm:^2.1.1": version: 2.1.1 resolution: "clsx@npm:2.1.1" checksum: c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839 @@ -13978,7 +14120,7 @@ __metadata: version: 0.0.0-use.local resolution: "no-code@workspace:examples/no-code" dependencies: - "@mui/material": "npm:^6.0.0" + "@mui/material": "npm:^5.16.12" "@vitejs/plugin-react": "npm:^4.2.1" ra-data-local-storage: "npm:^5.0.0" ra-no-code: "npm:^5.0.0" @@ -15940,8 +16082,8 @@ __metadata: version: 0.0.0-use.local resolution: "ra-input-rich-text@workspace:packages/ra-input-rich-text" dependencies: - "@mui/icons-material": "npm:^6.0.0" - "@mui/material": "npm:^6.0.0" + "@mui/icons-material": "npm:^5.16.12" + "@mui/material": "npm:^5.16.12" "@testing-library/react": "npm:^15.0.7" "@tiptap/core": "npm:^2.0.3" "@tiptap/extension-color": "npm:^2.0.3" @@ -16032,9 +16174,9 @@ __metadata: version: 0.0.0-use.local resolution: "ra-ui-materialui@workspace:packages/ra-ui-materialui" dependencies: - "@mui/icons-material": "npm:^6.0.0" - "@mui/material": "npm:^6.0.0" - "@mui/utils": "npm:^6.0.0" + "@mui/icons-material": "npm:^5.16.12" + "@mui/material": "npm:^5.16.12" + "@mui/utils": "npm:^5.16.12" "@tanstack/react-query": "npm:^5.21.7" "@testing-library/react": "npm:^15.0.7" "@types/dompurify": "npm:^3.0.2" @@ -16131,8 +16273,8 @@ __metadata: resolution: "react-admin-crm@workspace:examples/crm" dependencies: "@hello-pangea/dnd": "npm:^16.3.0" - "@mui/icons-material": "npm:^6.0.0" - "@mui/material": "npm:^6.0.0" + "@mui/icons-material": "npm:^5.16.12" + "@mui/material": "npm:^5.16.12" "@nivo/bar": "npm:^0.80.0" "@nivo/core": "npm:^0.80.0" "@testing-library/jest-dom": "npm:^6.4.5" @@ -17520,8 +17662,8 @@ __metadata: resolution: "simple@workspace:examples/simple" dependencies: "@hookform/devtools": "npm:^4.0.2" - "@mui/icons-material": "npm:^6.0.0" - "@mui/material": "npm:^6.0.0" + "@mui/icons-material": "npm:^5.16.12" + "@mui/material": "npm:^5.16.12" "@tanstack/react-query": "npm:^5.21.7" "@tanstack/react-query-devtools": "npm:^5.21.7" "@vitejs/plugin-react": "npm:^4.2.1" @@ -18627,6 +18769,8 @@ __metadata: version: 0.0.0-use.local resolution: "tutorial@workspace:examples/tutorial" dependencies: + "@mui/icons-material": "npm:^6.0.0" + "@mui/material": "npm:^6.0.0" "@types/react": "npm:^18.3.3" "@types/react-dom": "npm:^18.3.0" "@vitejs/plugin-react": "npm:^4.2.1"