Skip to content

Commit

Permalink
[examples] Fix more examples to work with v5
Browse files Browse the repository at this point in the history
Fix more instances of #43435
  • Loading branch information
oliviertassinari committed Sep 7, 2024
1 parent daf961e commit 9347f3c
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 60 deletions.
4 changes: 2 additions & 2 deletions examples/base-ui-cra-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"dependencies": {
"@mui/base": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "^5.0.0",
Expand Down
10 changes: 5 additions & 5 deletions examples/base-ui-nextjs-tailwind-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
"@mui/base": "latest",
"clsx": "^2.0.0",
"next": "^14.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"autoprefixer": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"postcss": "latest",
"postcss-nesting": "latest",
"tailwindcss": "latest",
"tailwindcss": "^3.0.0",
"typescript": "~5.5.0"
}
}
10 changes: 5 additions & 5 deletions examples/base-ui-vite-tailwind-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
},
"dependencies": {
"@mui/base": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"@vitejs/plugin-react": "^4.0.0",
Expand All @@ -25,7 +25,7 @@
"eslint-plugin-react-hooks": "latest",
"eslint-plugin-react-refresh": "latest",
"postcss": "latest",
"tailwindcss": "latest",
"tailwindcss": "^3.0.0",
"typescript": "~5.5.0",
"vite": "v5.0.0"
},
Expand Down
10 changes: 5 additions & 5 deletions examples/base-ui-vite-tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
},
"dependencies": {
"@mui/base": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "latest",
"postcss": "latest",
"tailwindcss": "latest",
"tailwindcss": "^3.0.0",
"vite": "v5.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/joy-ui-cra-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@mui/joy": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "^5.0.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/joy-ui-nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
"@emotion/styled": "^11.0.0",
"@mui/joy": "latest",
"next": "^14.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"typescript": "~5.5.0"
Expand Down
8 changes: 4 additions & 4 deletions examples/joy-ui-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@mui/joy": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "~5.5.0",
"vite": "v5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-styled-components-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"devDependencies": {
"@craco/craco": "latest",
"@types/node": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"craco-alias": "^3.0.1",
"typescript": "~5.5.0"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/material-ui-cra-tailwind-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"@testing-library/user-event": "latest",
"@types/jest": "latest",
"@types/node": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"autoprefixer": "latest",
"postcss": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "^5.0.0",
"tailwindcss": "latest",
"tailwindcss": "^3.0.0",
"typescript": "~5.5.0",
"web-vitals": "latest"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@mui/material": "^5.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-nextjs-pages-router-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@mui/material": "^5.0.0",
"@mui/material-nextjs": "^5.0.0",
"next": "^14.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/node": "latest",
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-nextjs-pages-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"@mui/material-nextjs": "^5.0.0",
"next": "^14.0.0",
"prop-types": "^15.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"eslint": "latest",
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-nextjs-ts-v4-v5-migration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"clean-css": "latest",
"next": "^14.0.0",
"postcss": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/node": "latest",
Expand Down
8 changes: 4 additions & 4 deletions examples/material-ui-nextjs-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"@mui/material": "^5.0.0",
"@mui/material-nextjs": "^5.0.0",
"next": "^14.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/node": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"eslint": "latest",
"eslint-config-next": "latest",
"typescript": "~5.5.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"eslint": "latest",
"eslint-config-next": "latest",
"next": "^14.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
}
}
8 changes: 4 additions & 4 deletions examples/material-ui-remix-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"@remix-run/react": "latest",
"@remix-run/serve": "latest",
"@remix-run/server-runtime": "latest",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@remix-run/dev": "latest",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"typescript": "~5.5.0"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions examples/material-ui-via-cdn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The client has to download the entire library, regardless of which components ar

<!-- #default-branch-switch -->

[The live preview.](https://rawcdn.githack.com/mui/material-ui/master/examples/material-ui-via-cdn/index.html)
[The live preview.](https://rawcdn.githack.com/mui/material-ui/v5.x/examples/material-ui-via-cdn/index.html)

## UMD releases

We are providing two Universal Module Definition (UMD) files:

- one for development: https://unpkg.com/@mui/material@latest/umd/material-ui.development.js
- one for production: https://unpkg.com/@mui/material@latest/umd/material-ui.production.min.js
- one for development: https://unpkg.com/@mui/material@5/umd/material-ui.development.js
- one for production: https://unpkg.com/@mui/material@5/umd/material-ui.production.min.js

<!-- #default-branch-switch -->

Expand Down
2 changes: 1 addition & 1 deletion examples/material-ui-via-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
></script>
<script src="https://unpkg.com/react-dom@latest/umd/react-dom.development.js"></script>
<script
src="https://unpkg.com/@mui/material@latest/umd/material-ui.development.js"
src="https://unpkg.com/@mui/material@5/umd/material-ui.development.js"
crossorigin="anonymous"
></script>
<script
Expand Down
8 changes: 4 additions & 4 deletions examples/material-ui-vite-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@emotion/styled": "^11.0.0",
"@mui/icons-material": "^5.0.0",
"@mui/material": "^5.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react": "latest",
"@types/react-dom": "latest",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "~5.5.0",
"vite": "v5.0.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"@mui/material": "^5.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.0.0",
Expand Down

0 comments on commit 9347f3c

Please sign in to comment.