diff --git a/examples/material-ui-nextjs-pages-router-ts/README.md b/examples/material-ui-nextjs-pages-router-ts/README.md index 37b40bcf662263..25e32aa803cfd2 100644 --- a/examples/material-ui-nextjs-pages-router-ts/README.md +++ b/examples/material-ui-nextjs-pages-router-ts/README.md @@ -41,11 +41,6 @@ If you prefer, you can [use styled-components instead](https://mui.com/material- The [example folder](https://github.com/mui/material-ui/tree/HEAD/examples/material-ui-nextjs-pages-router-ts) provides an adapter for the use of [Next.js's Link component](https://nextjs.org/docs/pages/api-reference/components/link) with MaterialĀ UI. More information [in the documentation](https://mui.com/material-ui/integrations/routing/#next-js-pages-router). -## Upgrading to Next.js 15 - -This example uses Next.js 14. -To upgrade to version 15, please follow the [official upgrade guide](https://nextjs.org/docs/app/building-your-application/upgrading/version-15) in the Next.js docs. - ## What's next? diff --git a/examples/material-ui-nextjs-pages-router-ts/package.json b/examples/material-ui-nextjs-pages-router-ts/package.json index 11d9ab9a44fddf..0fe6542bea9a38 100644 --- a/examples/material-ui-nextjs-pages-router-ts/package.json +++ b/examples/material-ui-nextjs-pages-router-ts/package.json @@ -18,15 +18,15 @@ "@mui/material": "latest", "@mui/material-nextjs": "latest", "clsx": "latest", - "next": "^14.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "next": "^15.0.0", + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@types/node": "latest", - "@types/react": "latest", + "@types/react": "^19.0.0", "eslint": "latest", - "eslint-config-next": "^14.0.0", + "eslint-config-next": "^15.0.0", "typescript": "latest" } } diff --git a/examples/material-ui-nextjs-pages-router/README.md b/examples/material-ui-nextjs-pages-router/README.md index 80e1b7d32a2ed9..50453acf21f548 100644 --- a/examples/material-ui-nextjs-pages-router/README.md +++ b/examples/material-ui-nextjs-pages-router/README.md @@ -41,11 +41,6 @@ If you prefer, you can [use styled-components instead](https://mui.com/material- The [example folder](https://github.com/mui/material-ui/tree/HEAD/examples/material-ui-nextjs-pages-router) provides an adapter for the use of [Next.js's Link component](https://nextjs.org/docs/pages/api-reference/components/link) with MaterialĀ UI. More information [in the documentation](https://mui.com/material-ui/integrations/routing/#next-js-pages-router). -## Upgrading to Next.js 15 - -This example uses Next.js 14. -To upgrade to version 15, please follow the [official upgrade guide](https://nextjs.org/docs/app/building-your-application/upgrading/version-15) in the Next.js docs. - ## What's next? diff --git a/examples/material-ui-nextjs-pages-router/package.json b/examples/material-ui-nextjs-pages-router/package.json index 11a24ea893d60c..f66913cef1be56 100644 --- a/examples/material-ui-nextjs-pages-router/package.json +++ b/examples/material-ui-nextjs-pages-router/package.json @@ -18,13 +18,12 @@ "@mui/material": "latest", "@mui/material-nextjs": "latest", "clsx": "latest", - "next": "^14.0.0", - "prop-types": "latest", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "next": "^15.0.0", + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "eslint": "latest", - "eslint-config-next": "^14.0.0" + "eslint-config-next": "^15.0.0" } } diff --git a/examples/material-ui-nextjs-pages-router/pages/_app.js b/examples/material-ui-nextjs-pages-router/pages/_app.js index f7d8edc0714097..1a985611d601be 100644 --- a/examples/material-ui-nextjs-pages-router/pages/_app.js +++ b/examples/material-ui-nextjs-pages-router/pages/_app.js @@ -1,5 +1,4 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; import Head from 'next/head'; import { AppCacheProvider } from '@mui/material-nextjs/v14-pagesRouter'; import { ThemeProvider } from '@mui/material/styles'; @@ -22,8 +21,3 @@ export default function MyApp(props) { ); } - -MyApp.propTypes = { - Component: PropTypes.elementType.isRequired, - pageProps: PropTypes.object.isRequired, -}; diff --git a/examples/material-ui-nextjs-pages-router/src/Link.js b/examples/material-ui-nextjs-pages-router/src/Link.js index cff6874164af79..4d7e019726db03 100644 --- a/examples/material-ui-nextjs-pages-router/src/Link.js +++ b/examples/material-ui-nextjs-pages-router/src/Link.js @@ -1,5 +1,4 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; import clsx from 'clsx'; import { useRouter } from 'next/router'; import NextLink from 'next/link'; @@ -39,19 +38,6 @@ export const NextLinkComposed = React.forwardRef(function NextLinkComposed(props ); }); -NextLinkComposed.propTypes = { - href: PropTypes.any, - legacyBehavior: PropTypes.bool, - linkAs: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - locale: PropTypes.string, - passHref: PropTypes.bool, - prefetch: PropTypes.bool, - replace: PropTypes.bool, - scroll: PropTypes.bool, - shallow: PropTypes.bool, - to: PropTypes.oneOfType([PropTypes.object, PropTypes.string]).isRequired, -}; - // A styled version of the Next.js Link component: // https://nextjs.org/docs/pages/api-reference/components/link const Link = React.forwardRef(function Link(props, ref) { @@ -105,20 +91,4 @@ const Link = React.forwardRef(function Link(props, ref) { ); }); -Link.propTypes = { - activeClassName: PropTypes.string, - as: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - className: PropTypes.string, - href: PropTypes.any, - legacyBehavior: PropTypes.bool, - linkAs: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), - locale: PropTypes.string, - noLinkStyle: PropTypes.bool, - prefetch: PropTypes.bool, - replace: PropTypes.bool, - role: PropTypes.string, - scroll: PropTypes.bool, - shallow: PropTypes.bool, -}; - export default Link; diff --git a/examples/material-ui-nextjs-ts/README.md b/examples/material-ui-nextjs-ts/README.md index 13f386515d7cb7..df5d86c065a2a4 100644 --- a/examples/material-ui-nextjs-ts/README.md +++ b/examples/material-ui-nextjs-ts/README.md @@ -30,11 +30,6 @@ or: [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-nextjs-ts) -## Upgrading to Next.js 15 - -This example uses Next.js 14. -To upgrade to version 15, please follow the [official upgrade guide](https://nextjs.org/docs/app/building-your-application/upgrading/version-15) in the Next.js docs. - ## Learn more To learn more about this example: diff --git a/examples/material-ui-nextjs-ts/next-env.d.ts b/examples/material-ui-nextjs-ts/next-env.d.ts index a4a7b3f5cfa2f9..1b3be0840f3f6a 100644 --- a/examples/material-ui-nextjs-ts/next-env.d.ts +++ b/examples/material-ui-nextjs-ts/next-env.d.ts @@ -2,4 +2,4 @@ /// // NOTE: This file should not be edited -// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information. +// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/examples/material-ui-nextjs-ts/package.json b/examples/material-ui-nextjs-ts/package.json index 55181969226f21..f44f05cd7914bc 100644 --- a/examples/material-ui-nextjs-ts/package.json +++ b/examples/material-ui-nextjs-ts/package.json @@ -16,16 +16,16 @@ "@mui/icons-material": "latest", "@mui/material": "latest", "@mui/material-nextjs": "latest", - "next": "^14.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "next": "^15.0.0", + "react": "^19.0.0", + "react-dom": "^19.0.0" }, "devDependencies": { "@types/node": "latest", - "@types/react": "latest", - "@types/react-dom": "latest", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", "eslint": "latest", - "eslint-config-next": "^14.0.0", + "eslint-config-next": "^15.0.0", "typescript": "latest" } } diff --git a/examples/material-ui-nextjs/README.md b/examples/material-ui-nextjs/README.md index 0d7600e101a3f6..98ea0fabe4fc94 100644 --- a/examples/material-ui-nextjs/README.md +++ b/examples/material-ui-nextjs/README.md @@ -30,11 +30,6 @@ or: [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-nextjs) -## Upgrading to Next.js 15 - -This example uses Next.js 14. -To upgrade to version 15, please follow the [official upgrade guide](https://nextjs.org/docs/app/building-your-application/upgrading/version-15) in the Next.js docs. - ## Learn more To learn more about this example: diff --git a/examples/material-ui-nextjs/package.json b/examples/material-ui-nextjs/package.json index 5e931b115a9c6a..90d0d062ea56d9 100644 --- a/examples/material-ui-nextjs/package.json +++ b/examples/material-ui-nextjs/package.json @@ -16,9 +16,9 @@ "@mui/material": "latest", "@mui/material-nextjs": "latest", "eslint": "latest", - "eslint-config-next": "^14.0.0", - "next": "^14.0.0", - "react": "^18.0.0", - "react-dom": "^18.0.0" + "eslint-config-next": "^15.0.0", + "next": "^15.0.0", + "react": "^19.0.0", + "react-dom": "^19.0.0" } }