diff --git a/apps/pigment-css-vite-app/src/Slider/ZeroSlider.tsx b/apps/pigment-css-vite-app/src/Slider/ZeroSlider.tsx index 81de28da9f9b23..9d05cf3a262d24 100644 --- a/apps/pigment-css-vite-app/src/Slider/ZeroSlider.tsx +++ b/apps/pigment-css-vite-app/src/Slider/ZeroSlider.tsx @@ -10,7 +10,7 @@ import { import { isHostComponent, useSlotProps } from '@mui/base/utils'; import { styled } from '@pigment-css/react'; import { capitalize } from '@mui/material/utils'; -import SliderValueLabel from '@mui/material/Slider/SliderValueLabel'; +import { SliderValueLabel } from '@mui/material/Slider'; import { useSlider, valueToPercent } from '@mui/base/useSlider'; import { alpha, lighten, darken } from '@mui/system/colorManipulator'; import type { Theme } from '@mui/material/styles'; diff --git a/babel.config.js b/babel.config.js index ad22418643bf84..942c5dceb18ab2 100644 --- a/babel.config.js +++ b/babel.config.js @@ -103,6 +103,10 @@ module.exports = function getBabelConfig(api) { ]); } + if (process.env.MUI_ADD_IMPORT_EXTENSIONS === 'true') { + plugins.push(['babel-plugin-add-import-extension', { extension: useESModules ? 'mjs' : 'js' }]); + } + return { assumptions: { noDocumentAll: true, diff --git a/docs/data/material/customization/typography/ResponsiveFontSizesChart.js b/docs/data/material/customization/typography/ResponsiveFontSizesChart.js index 6bcc4e457cef26..5ab87803cded60 100644 --- a/docs/data/material/customization/typography/ResponsiveFontSizesChart.js +++ b/docs/data/material/customization/typography/ResponsiveFontSizesChart.js @@ -1,9 +1,9 @@ import * as React from 'react'; -// import of a small, pure module in a private demo -// bundle size and module duplication is negligible -/* eslint-disable-next-line no-restricted-imports */ -import { convertLength } from '@mui/material/styles/cssUtils'; -import { createTheme, responsiveFontSizes } from '@mui/material/styles'; +import { + createTheme, + responsiveFontSizes, + unstable_convertLength as convertLength, +} from '@mui/material/styles'; import Box from '@mui/material/Box'; import { LineChart } from '@mui/x-charts'; diff --git a/docs/data/material/guides/minimizing-bundle-size/minimizing-bundle-size.md b/docs/data/material/guides/minimizing-bundle-size/minimizing-bundle-size.md index c38c47545c3c00..236656e2408eda 100644 --- a/docs/data/material/guides/minimizing-bundle-size/minimizing-bundle-size.md +++ b/docs/data/material/guides/minimizing-bundle-size/minimizing-bundle-size.md @@ -214,50 +214,25 @@ It will perform the following diffs: The packages published on npm are **transpiled** with [Babel](https://github.com/babel/babel), optimized for performance with the [supported platforms](/material-ui/getting-started/supported-platforms/). -A [modern bundle](#modern-bundle) is also available. - -### How to use custom bundles? - -:::error -You are strongly discouraged to: - -- Import from any of the custom bundles directly. Do not do this: - - ```js - import { Button } from '@mui/material/legacy'; - ``` - - You have no guarantee that the dependencies also use legacy or modern bundles, leading to module duplication in your JavaScript files. - -- Import from any of the undocumented files or folders. Do not do this: - - ```js - import { Button } from '@mui/material/esm'; - ``` - - You have no guarantee that these imports will continue to work from one version to the next. +### Modern bundle - ::: +The modern bundle targets the latest released versions of evergreen browsers (Chrome, Firefox, Safari, Edge). +This can be used to make separate bundles targeting different browsers. -A great way to use these bundles is to configure bundler aliases, for example with [Webpack's `resolve.alias`](https://webpack.js.org/configuration/resolve/#resolvealias): +To use it, configure your bundler's resolve condition names. +For example, with [Webpack's `resolve.conditionNames`](https://webpack.js.org/configuration/resolve/#resolveconditionnames): -```js +```js title="webpack.config.js" { + // ... resolve: { - alias: { - '@mui/material': '@mui/material/legacy', - '@mui/styled-engine': '@mui/styled-engine/legacy', - '@mui/system': '@mui/system/legacy', - '@mui/base': '@mui/base/legacy', - '@mui/utils': '@mui/utils/legacy', - '@mui/lab': '@mui/lab/legacy', - } + conditionNames: ['mui-modern', 'import', 'default']; } } ``` -### Modern bundle +Here's the documentation for common bundlers: -The modern bundle can be found under the [`/modern` folder](https://unpkg.com/@mui/material/modern/). -It targets the latest released versions of evergreen browsers (Chrome, Firefox, Safari, Edge). -This can be used to make separate bundles targeting different browsers. +- [Webpack](https://webpack.js.org/configuration/resolve/#resolveconditionnames) +- [Vite](https://vitejs.dev/config/shared-options.html#resolve-conditions) +- [ESBuild](https://esbuild.github.io/api/#conditions) diff --git a/docs/data/material/migration/migration-v5/migration-v5.md b/docs/data/material/migration/migration-v5/migration-v5.md index 4042fa86648dc2..99a126c77ca7c5 100644 --- a/docs/data/material/migration/migration-v5/migration-v5.md +++ b/docs/data/material/migration/migration-v5/migration-v5.md @@ -23,3 +23,73 @@ The steps you need to take to migrate from MaterialĀ UIĀ v5 to v6 are described This list is a work in progress. Expect updates as new breaking changes are introduced. ::: + +### Added exports field to package.json + +The `exports` field has been added to the `@mui/material/package.json` file to improve the ESM and CJS builds split: + +```json title="@mui/material/package.json" +// ... +"exports": { + ".": { + "types": "./index.d.ts", + "mui-modern": "./modern/index.mjs", + "import": "./index.mjs", + "default": "./node/index.js" + }, + "./*": { + "types": "./*/index.d.ts", + "mui-modern": "./modern/index.mjs", + "import": "./*/index.mjs", + "default": "./node/*/index.js" + } +} +// ... +``` + +Read more about the `exports` field in the [Node.js documentation](https://nodejs.org/api/packages.html#exports). + +This change limits the exported modules to the root import and one level deep imports. +If you were importing from deeper levels, you will need to update your imports: + +```diff title="index.mjs" +- import buttonClasses from '@mui/material/Button/buttonClasses'; ++ import { buttonClasses } from '@mui/material/Button'; +``` + +```diff title="index.cjs" +- const { default: Button } = require('@mui/material/node/Button'); ++ const { default: Button } = require('@mui/material/Button'); +``` + +You might have to update your bundler configuration to support the new structure. +Following are some common use cases that require changes: + +#### Importing CJS + +If you were importing from `/node` as a workaround, this is no longer necessary as the `exports` field maps CJS to the correct files. + +#### Using the modern bundle + +The way the modern bundle should be imported has changed. +Previously, you would alias `@mui/material` to `@mui/material/modern` in your bundler configuration. +Now, you should configure your bundler's resolve conditions to use the `"mui-modern"` condition name. +Here's the updated Webpack example that was previously documented: + +```diff title="webpack.config.js" + module.exports = { + //... + resolve: { +- alias: { +- '@mui/material': '@mui/material/modern', +- } ++ conditionNames: ['mui-modern', 'import', 'default'], + }, + }; +``` + +Documentation: [resolve.conditionNames](https://webpack.js.org/configuration/resolve/#resolveconditionnames) + +:::info +For guidance on other bundlers, refer to the [Modern bundle documentation](/material-ui/guides/minimizing-bundle-size/#modern-bundle). +::: diff --git a/docs/data/system/migration/migration-v5/migration-v5.md b/docs/data/system/migration/migration-v5/migration-v5.md index dc9fa51622a50c..789b4a6203fa89 100644 --- a/docs/data/system/migration/migration-v5/migration-v5.md +++ b/docs/data/system/migration/migration-v5/migration-v5.md @@ -24,16 +24,45 @@ This list is a work in progress. Expect updates as new breaking changes are introduced. ::: -### Root code is now ESM +### Added exports field to package.json -The ESM code, previously under the `esm/` build, has been moved to the root of the package. -The CommonJS code, previously on the root, has been moved to the `node/` build. +The `exports` field has been added to the `@mui/system/package.json` file to improve the ESM and CJS builds split: -:::info -This is an intermediate step to prepare for adding the `exports` field to the `package.json` file. -If you have trouble using this new structure, please wait for the future update which adds the `exports` field. -You can follow progress on https://github.com/mui/material-ui/issues/30671. -::: +```json title="@mui/system/package.json" +// ... +"exports": { + ".": { + "types": "./index.d.ts", + "mui-modern": "./modern/index.mjs", + "import": "./index.mjs", + "default": "./node/index.js" + }, + "./*": { + "types": "./*/index.d.ts", + "mui-modern": "./modern/index.mjs", + "import": "./*/index.mjs", + "default": "./node/*/index.js" + } +} +// ... +``` + +Read more about the `exports` field in the [Node.js documentation](https://nodejs.org/api/packages.html#exports). + +This change limits the exported modules to the root import and one level deep imports. +If you were importing from deeper levels, you will need to update your imports: + +```diff +- import styled from '@mui/system/esm/styled'; ++ import styled from '@mui/system/styled'; +``` + +You might have to update your bundler configuration to support the new structure. +Following are some common use cases that require changes: + +#### Importing ESM + +If you were importing from `/esm` as a workaround, this is no longer necessary as the `exports` field maps ESM to the correct files. ### GridProps type diff --git a/package.json b/package.json index 59cea49e5b3b83..0fe74cba424d12 100644 --- a/package.json +++ b/package.json @@ -84,8 +84,9 @@ }, "dependencies": { "@googleapis/sheets": "^5.0.5", - "@slack/bolt": "^3.17.1", "@netlify/functions": "^2.6.0", + "@slack/bolt": "^3.17.1", + "babel-plugin-add-import-extension": "^1.6.0", "execa": "^8.0.1", "google-auth-library": "^9.7.0" }, @@ -105,11 +106,11 @@ "@babel/preset-typescript": "^7.24.1", "@babel/register": "^7.23.7", "@mnajdova/enzyme-adapter-react-18": "^0.2.0", - "@mui/internal-docs-utils": "workspace:^", - "@mui/internal-scripts": "workspace:^", "@mui-internal/api-docs-builder": "workspace:^", "@mui-internal/api-docs-builder-core": "workspace:^", "@mui-internal/test-utils": "workspace:^", + "@mui/internal-docs-utils": "workspace:^", + "@mui/internal-scripts": "workspace:^", "@mui/joy": "workspace:*", "@mui/material": "workspace:^", "@mui/utils": "workspace:^", diff --git a/packages/mui-base/package.json b/packages/mui-base/package.json index a103c186421a98..0f2f5f88142c8e 100644 --- a/packages/mui-base/package.json +++ b/packages/mui-base/package.json @@ -28,10 +28,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/packages/mui-base/src/Badge/index.ts b/packages/mui-base/src/Badge/index.ts index b208878eab3a79..8ffeb88dbba238 100644 --- a/packages/mui-base/src/Badge/index.ts +++ b/packages/mui-base/src/Badge/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Badge } from './Badge'; export * from './Badge.types'; export * from './badgeClasses'; diff --git a/packages/mui-base/src/Button/index.ts b/packages/mui-base/src/Button/index.ts index e5bd68604d8616..d23520e56dc38a 100644 --- a/packages/mui-base/src/Button/index.ts +++ b/packages/mui-base/src/Button/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Button } from './Button'; export * from './buttonClasses'; diff --git a/packages/mui-base/src/Input/index.ts b/packages/mui-base/src/Input/index.ts index 01badf40652a64..a803fa5897284e 100644 --- a/packages/mui-base/src/Input/index.ts +++ b/packages/mui-base/src/Input/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Input } from './Input'; export * from './Input.types'; diff --git a/packages/mui-base/src/MenuButton/index.ts b/packages/mui-base/src/MenuButton/index.ts index 721bc436d4aa5f..fcc222955256b7 100644 --- a/packages/mui-base/src/MenuButton/index.ts +++ b/packages/mui-base/src/MenuButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { MenuButton } from './MenuButton'; export * from './MenuButton.types'; diff --git a/packages/mui-base/src/MenuItem/index.ts b/packages/mui-base/src/MenuItem/index.ts index c24ff54e41ae15..0adb1f3669a266 100644 --- a/packages/mui-base/src/MenuItem/index.ts +++ b/packages/mui-base/src/MenuItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './MenuItem'; export * from './MenuItem.types'; export * from './menuItemClasses'; diff --git a/packages/mui-base/src/MultiSelect/index.ts b/packages/mui-base/src/MultiSelect/index.ts index 0cefde7155a3f5..7140f36c68d271 100644 --- a/packages/mui-base/src/MultiSelect/index.ts +++ b/packages/mui-base/src/MultiSelect/index.ts @@ -1,2 +1 @@ -'use client'; export { MultiSelect } from './MultiSelect'; diff --git a/packages/mui-base/src/NoSsr/index.ts b/packages/mui-base/src/NoSsr/index.ts index f13019fe10e496..546b249ab2a159 100644 --- a/packages/mui-base/src/NoSsr/index.ts +++ b/packages/mui-base/src/NoSsr/index.ts @@ -1,3 +1,2 @@ -'use client'; export { NoSsr } from './NoSsr'; export * from './NoSsr.types'; diff --git a/packages/mui-base/src/Option/index.ts b/packages/mui-base/src/Option/index.ts index 511389be308354..c941281acc7684 100644 --- a/packages/mui-base/src/Option/index.ts +++ b/packages/mui-base/src/Option/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './Option'; export * from './Option.types'; export * from './optionClasses'; diff --git a/packages/mui-base/src/OptionGroup/index.ts b/packages/mui-base/src/OptionGroup/index.ts index a75ed89f2baa42..3a0f78ea6341fd 100644 --- a/packages/mui-base/src/OptionGroup/index.ts +++ b/packages/mui-base/src/OptionGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { OptionGroup } from './OptionGroup'; export * from './OptionGroup.types'; diff --git a/packages/mui-base/src/Popper/index.ts b/packages/mui-base/src/Popper/index.ts index 7ebed8baf38471..d03b4dee371934 100644 --- a/packages/mui-base/src/Popper/index.ts +++ b/packages/mui-base/src/Popper/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Popper } from './Popper'; export type { PopperPlacementType, diff --git a/packages/mui-base/src/Portal/index.ts b/packages/mui-base/src/Portal/index.ts index 96ba019d5a6662..605321409b2dfb 100644 --- a/packages/mui-base/src/Portal/index.ts +++ b/packages/mui-base/src/Portal/index.ts @@ -1,3 +1,2 @@ -'use client'; export { Portal } from './Portal'; export * from './Portal.types'; diff --git a/packages/mui-base/src/Select/index.ts b/packages/mui-base/src/Select/index.ts index c5bdc3eed2e5e8..02dc19409172f0 100644 --- a/packages/mui-base/src/Select/index.ts +++ b/packages/mui-base/src/Select/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Select } from './Select'; export * from './selectClasses'; diff --git a/packages/mui-base/src/Slider/index.ts b/packages/mui-base/src/Slider/index.ts index 8471da75345a5d..9f88f0dea704f4 100644 --- a/packages/mui-base/src/Slider/index.ts +++ b/packages/mui-base/src/Slider/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Slider } from './Slider'; export * from './Slider.types'; export * from './sliderClasses'; diff --git a/packages/mui-base/src/Snackbar/index.ts b/packages/mui-base/src/Snackbar/index.ts index 7f109fda1d2aa8..69928fa25e7e3c 100644 --- a/packages/mui-base/src/Snackbar/index.ts +++ b/packages/mui-base/src/Snackbar/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Snackbar } from './Snackbar'; export * from './Snackbar.types'; diff --git a/packages/mui-base/src/Switch/index.ts b/packages/mui-base/src/Switch/index.ts index 6eced9996c3933..262700928a490b 100644 --- a/packages/mui-base/src/Switch/index.ts +++ b/packages/mui-base/src/Switch/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Switch } from './Switch'; export * from './Switch.types'; diff --git a/packages/mui-base/src/Tab/index.ts b/packages/mui-base/src/Tab/index.ts index 57e49f6c0a3301..1bcbf62239164f 100644 --- a/packages/mui-base/src/Tab/index.ts +++ b/packages/mui-base/src/Tab/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Tab } from './Tab'; export * from './Tab.types'; diff --git a/packages/mui-base/src/TabPanel/index.ts b/packages/mui-base/src/TabPanel/index.ts index bb4daa1483deff..fe6efbb02f7582 100644 --- a/packages/mui-base/src/TabPanel/index.ts +++ b/packages/mui-base/src/TabPanel/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TabPanel } from './TabPanel'; export * from './TabPanel.types'; diff --git a/packages/mui-base/src/TablePagination/index.ts b/packages/mui-base/src/TablePagination/index.ts index b816f218d6fb28..5df389b39e3838 100644 --- a/packages/mui-base/src/TablePagination/index.ts +++ b/packages/mui-base/src/TablePagination/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TablePagination } from './TablePagination'; export * from './TablePagination.types'; diff --git a/packages/mui-base/src/Tabs/index.ts b/packages/mui-base/src/Tabs/index.ts index abc967c576aee4..74e3bbc11c5901 100644 --- a/packages/mui-base/src/Tabs/index.ts +++ b/packages/mui-base/src/Tabs/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Tabs } from './Tabs'; export * from './TabsContext'; export * from './tabsClasses'; diff --git a/packages/mui-base/src/TabsList/index.ts b/packages/mui-base/src/TabsList/index.ts index 2828f9b042908b..949c40dd684d5d 100644 --- a/packages/mui-base/src/TabsList/index.ts +++ b/packages/mui-base/src/TabsList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { TabsList } from './TabsList'; export * from './TabsList.types'; diff --git a/packages/mui-base/src/TextareaAutosize/index.ts b/packages/mui-base/src/TextareaAutosize/index.ts index 50814f03aacbaf..db9394e5a772c2 100644 --- a/packages/mui-base/src/TextareaAutosize/index.ts +++ b/packages/mui-base/src/TextareaAutosize/index.ts @@ -1,3 +1,2 @@ -'use client'; export { TextareaAutosize } from './TextareaAutosize'; export * from './TextareaAutosize.types'; diff --git a/packages/mui-base/src/Unstable_NumberInput/index.ts b/packages/mui-base/src/Unstable_NumberInput/index.ts index 90624d08f20894..6054499cf76658 100644 --- a/packages/mui-base/src/Unstable_NumberInput/index.ts +++ b/packages/mui-base/src/Unstable_NumberInput/index.ts @@ -1,4 +1,3 @@ -'use client'; export { NumberInput as Unstable_NumberInput } from './NumberInput'; export * from './numberInputClasses'; export * from './NumberInput.types'; diff --git a/packages/mui-base/src/Unstable_Popup/index.ts b/packages/mui-base/src/Unstable_Popup/index.ts index 2a4873a767fcad..2e63e5a4c909a8 100644 --- a/packages/mui-base/src/Unstable_Popup/index.ts +++ b/packages/mui-base/src/Unstable_Popup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { Popup as Unstable_Popup } from './Popup'; export * from './Popup.types'; export * from './popupClasses'; diff --git a/packages/mui-base/src/unstable_useModal/index.ts b/packages/mui-base/src/unstable_useModal/index.ts index cdfed6b550e5de..e73759cf2012e2 100644 --- a/packages/mui-base/src/unstable_useModal/index.ts +++ b/packages/mui-base/src/unstable_useModal/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useModal as unstable_useModal } from './useModal'; export * from './useModal.types'; export * from './ModalManager'; diff --git a/packages/mui-base/src/unstable_useNumberInput/index.ts b/packages/mui-base/src/unstable_useNumberInput/index.ts index b9197013917a74..108cb06c2f97e4 100644 --- a/packages/mui-base/src/unstable_useNumberInput/index.ts +++ b/packages/mui-base/src/unstable_useNumberInput/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useNumberInput as unstable_useNumberInput } from './useNumberInput'; export * from './useNumberInput.types'; diff --git a/packages/mui-base/src/useBadge/index.ts b/packages/mui-base/src/useBadge/index.ts index 220df311fcc197..d8376e70c1f11e 100644 --- a/packages/mui-base/src/useBadge/index.ts +++ b/packages/mui-base/src/useBadge/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useBadge } from './useBadge'; export * from './useBadge.types'; diff --git a/packages/mui-base/src/useButton/index.ts b/packages/mui-base/src/useButton/index.ts index 53c84ebfd52737..f52872ae10fc94 100644 --- a/packages/mui-base/src/useButton/index.ts +++ b/packages/mui-base/src/useButton/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useButton } from './useButton'; export * from './useButton.types'; diff --git a/packages/mui-base/src/useCompound/index.ts b/packages/mui-base/src/useCompound/index.ts index f8e6f64b6d19cd..2fea72863a76fa 100644 --- a/packages/mui-base/src/useCompound/index.ts +++ b/packages/mui-base/src/useCompound/index.ts @@ -1,3 +1,2 @@ -'use client'; export * from './useCompoundParent'; export * from './useCompoundItem'; diff --git a/packages/mui-base/src/useDropdown/index.ts b/packages/mui-base/src/useDropdown/index.ts index 79fc0ef7f3c3de..31bf24a2a9704d 100644 --- a/packages/mui-base/src/useDropdown/index.ts +++ b/packages/mui-base/src/useDropdown/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './useDropdown'; export * from './useDropdown.types'; export * from './DropdownContext'; diff --git a/packages/mui-base/src/useInput/index.ts b/packages/mui-base/src/useInput/index.ts index c37d6a9cd223c5..34acd62df73202 100644 --- a/packages/mui-base/src/useInput/index.ts +++ b/packages/mui-base/src/useInput/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useInput } from './useInput'; export * from './useInput.types'; diff --git a/packages/mui-base/src/useList/index.ts b/packages/mui-base/src/useList/index.ts index 045af1c489c25f..1d6568987ef809 100644 --- a/packages/mui-base/src/useList/index.ts +++ b/packages/mui-base/src/useList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useList } from './useList'; export * from './useList.types'; diff --git a/packages/mui-base/src/useMenu/index.ts b/packages/mui-base/src/useMenu/index.ts index 0d08ba73cf9aea..dbd252273d5452 100644 --- a/packages/mui-base/src/useMenu/index.ts +++ b/packages/mui-base/src/useMenu/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useMenu } from './useMenu'; export * from './useMenu.types'; export * from './MenuProvider'; diff --git a/packages/mui-base/src/useMenuButton/index.ts b/packages/mui-base/src/useMenuButton/index.ts index 0f9d874d50129e..d933dea9d2049d 100644 --- a/packages/mui-base/src/useMenuButton/index.ts +++ b/packages/mui-base/src/useMenuButton/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useMenuButton } from './useMenuButton'; export * from './useMenuButton.types'; diff --git a/packages/mui-base/src/useMenuItem/index.ts b/packages/mui-base/src/useMenuItem/index.ts index f480bce7a2b53f..6aa1625e347657 100644 --- a/packages/mui-base/src/useMenuItem/index.ts +++ b/packages/mui-base/src/useMenuItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useMenuItem } from './useMenuItem'; export * from './useMenuItem.types'; export * from './useMenuItemContextStabilizer'; diff --git a/packages/mui-base/src/useOption/index.ts b/packages/mui-base/src/useOption/index.ts index 64b8a5887662a2..35601c1b437d98 100644 --- a/packages/mui-base/src/useOption/index.ts +++ b/packages/mui-base/src/useOption/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useOption } from './useOption'; export * from './useOption.types'; export * from './useOptionContextStabilizer'; diff --git a/packages/mui-base/src/useSelect/index.ts b/packages/mui-base/src/useSelect/index.ts index 7773d46920a911..014e5d90811167 100644 --- a/packages/mui-base/src/useSelect/index.ts +++ b/packages/mui-base/src/useSelect/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useSelect } from './useSelect'; export * from './useSelect.types'; export * from './SelectProvider'; diff --git a/packages/mui-base/src/useSlider/index.ts b/packages/mui-base/src/useSlider/index.ts index f13ff862e30dad..0e8b89eb00ffad 100644 --- a/packages/mui-base/src/useSlider/index.ts +++ b/packages/mui-base/src/useSlider/index.ts @@ -1,3 +1,2 @@ -'use client'; export * from './useSlider'; export * from './useSlider.types'; diff --git a/packages/mui-base/src/useSnackbar/index.ts b/packages/mui-base/src/useSnackbar/index.ts index 123fce143e7074..9a595a63e425c4 100644 --- a/packages/mui-base/src/useSnackbar/index.ts +++ b/packages/mui-base/src/useSnackbar/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useSnackbar } from './useSnackbar'; export * from './useSnackbar.types'; diff --git a/packages/mui-base/src/useSwitch/index.ts b/packages/mui-base/src/useSwitch/index.ts index 2c0e7428f08750..0e89a92173862c 100644 --- a/packages/mui-base/src/useSwitch/index.ts +++ b/packages/mui-base/src/useSwitch/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useSwitch } from './useSwitch'; export * from './useSwitch.types'; diff --git a/packages/mui-base/src/useTab/index.ts b/packages/mui-base/src/useTab/index.ts index a2e4fd0ffbc9e8..c455a73bd484ed 100644 --- a/packages/mui-base/src/useTab/index.ts +++ b/packages/mui-base/src/useTab/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useTab } from './useTab'; export * from './useTab.types'; diff --git a/packages/mui-base/src/useTabPanel/index.ts b/packages/mui-base/src/useTabPanel/index.ts index b50d04d1a8d7ea..2e72d19f4276c1 100644 --- a/packages/mui-base/src/useTabPanel/index.ts +++ b/packages/mui-base/src/useTabPanel/index.ts @@ -1,3 +1,2 @@ -'use client'; export { useTabPanel } from './useTabPanel'; export * from './useTabPanel.types'; diff --git a/packages/mui-base/src/useTabs/index.ts b/packages/mui-base/src/useTabs/index.ts index 6638acfe020e04..c12b85bf869619 100644 --- a/packages/mui-base/src/useTabs/index.ts +++ b/packages/mui-base/src/useTabs/index.ts @@ -1,4 +1,3 @@ -'use client'; export * from './useTabs'; export * from './useTabs.types'; export * from './TabsProvider'; diff --git a/packages/mui-base/src/useTabsList/index.ts b/packages/mui-base/src/useTabsList/index.ts index 4ba3e5e23c4633..0241cfc8f8c486 100644 --- a/packages/mui-base/src/useTabsList/index.ts +++ b/packages/mui-base/src/useTabsList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { useTabsList } from './useTabsList'; export * from './useTabsList.types'; export * from './TabsListProvider'; diff --git a/packages/mui-base/src/utils/index.ts b/packages/mui-base/src/utils/index.ts index 6940094b6697bc..173e47c3b5584c 100644 --- a/packages/mui-base/src/utils/index.ts +++ b/packages/mui-base/src/utils/index.ts @@ -1,4 +1,3 @@ -'use client'; export { appendOwnerState } from './appendOwnerState'; export { areArraysEqual } from './areArraysEqual'; export { ClassNameConfigurator } from './ClassNameConfigurator'; diff --git a/packages/mui-joy/package.json b/packages/mui-joy/package.json index 0dabc1fb459b7a..bacb678cb559c5 100644 --- a/packages/mui-joy/package.json +++ b/packages/mui-joy/package.json @@ -26,10 +26,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/packages/mui-joy/src/Accordion/index.ts b/packages/mui-joy/src/Accordion/index.ts index fb5feaaca86f71..e6d1714f37cca4 100644 --- a/packages/mui-joy/src/Accordion/index.ts +++ b/packages/mui-joy/src/Accordion/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Accordion'; export * from './accordionClasses'; export { default as accordionClasses } from './accordionClasses'; diff --git a/packages/mui-joy/src/AccordionDetails/index.ts b/packages/mui-joy/src/AccordionDetails/index.ts index c635362a74c849..aa664bbcf7c7df 100644 --- a/packages/mui-joy/src/AccordionDetails/index.ts +++ b/packages/mui-joy/src/AccordionDetails/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AccordionDetails'; export * from './accordionDetailsClasses'; export { default as accordionDetailsClasses } from './accordionDetailsClasses'; diff --git a/packages/mui-joy/src/AccordionGroup/index.ts b/packages/mui-joy/src/AccordionGroup/index.ts index 98ec075a0e49c2..4187811b0bd3a1 100644 --- a/packages/mui-joy/src/AccordionGroup/index.ts +++ b/packages/mui-joy/src/AccordionGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AccordionGroup'; export * from './accordionGroupClasses'; export { default as accordionGroupClasses } from './accordionGroupClasses'; diff --git a/packages/mui-joy/src/AccordionSummary/index.ts b/packages/mui-joy/src/AccordionSummary/index.ts index d5a311bc744c5f..0e734f820e4e7d 100644 --- a/packages/mui-joy/src/AccordionSummary/index.ts +++ b/packages/mui-joy/src/AccordionSummary/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AccordionSummary'; export * from './accordionSummaryClasses'; export { default as accordionSummaryClasses } from './accordionSummaryClasses'; diff --git a/packages/mui-joy/src/Alert/index.ts b/packages/mui-joy/src/Alert/index.ts index 882206c74b9405..e9dd48d0d9d252 100644 --- a/packages/mui-joy/src/Alert/index.ts +++ b/packages/mui-joy/src/Alert/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Alert'; export * from './alertClasses'; export { default as alertClasses } from './alertClasses'; diff --git a/packages/mui-joy/src/AspectRatio/index.ts b/packages/mui-joy/src/AspectRatio/index.ts index b944d18a233acb..6b183a3decfb1d 100644 --- a/packages/mui-joy/src/AspectRatio/index.ts +++ b/packages/mui-joy/src/AspectRatio/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AspectRatio'; export * from './aspectRatioClasses'; export { default as aspectRatioClasses } from './aspectRatioClasses'; diff --git a/packages/mui-joy/src/Autocomplete/index.ts b/packages/mui-joy/src/Autocomplete/index.ts index 86393486cd32ef..5b01684270b978 100644 --- a/packages/mui-joy/src/Autocomplete/index.ts +++ b/packages/mui-joy/src/Autocomplete/index.ts @@ -1,4 +1,3 @@ -'use client'; export { createFilterOptions } from '@mui/base/useAutocomplete'; export { default } from './Autocomplete'; export * from './autocompleteClasses'; diff --git a/packages/mui-joy/src/AutocompleteListbox/index.ts b/packages/mui-joy/src/AutocompleteListbox/index.ts index 3bbaf0162e1d25..0fc430b15af660 100644 --- a/packages/mui-joy/src/AutocompleteListbox/index.ts +++ b/packages/mui-joy/src/AutocompleteListbox/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AutocompleteListbox'; export * from './autocompleteListboxClasses'; export { default as autocompleteListboxClasses } from './autocompleteListboxClasses'; diff --git a/packages/mui-joy/src/AutocompleteOption/index.ts b/packages/mui-joy/src/AutocompleteOption/index.ts index 6565f5e41e6ac6..dda31b68a6b501 100644 --- a/packages/mui-joy/src/AutocompleteOption/index.ts +++ b/packages/mui-joy/src/AutocompleteOption/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AutocompleteOption'; export * from './autocompleteOptionClasses'; export { default as autocompleteOptionClasses } from './autocompleteOptionClasses'; diff --git a/packages/mui-joy/src/Avatar/index.ts b/packages/mui-joy/src/Avatar/index.ts index 5a6648ea3e3bca..fca351ee6db5b0 100644 --- a/packages/mui-joy/src/Avatar/index.ts +++ b/packages/mui-joy/src/Avatar/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Avatar'; export * from './avatarClasses'; export { default as avatarClasses } from './avatarClasses'; diff --git a/packages/mui-joy/src/AvatarGroup/index.ts b/packages/mui-joy/src/AvatarGroup/index.ts index 14a51f45869fb0..77ef2c0f011827 100644 --- a/packages/mui-joy/src/AvatarGroup/index.ts +++ b/packages/mui-joy/src/AvatarGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './AvatarGroup'; export * from './avatarGroupClasses'; export { default as avatarGroupClasses } from './avatarGroupClasses'; diff --git a/packages/mui-joy/src/Badge/index.ts b/packages/mui-joy/src/Badge/index.ts index 90a5aef5a7e0d2..212caa85460e27 100644 --- a/packages/mui-joy/src/Badge/index.ts +++ b/packages/mui-joy/src/Badge/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Badge'; export * from './BadgeProps'; export { default as badgeClasses } from './badgeClasses'; diff --git a/packages/mui-joy/src/Box/index.ts b/packages/mui-joy/src/Box/index.ts index de37ace16f1437..d51f428a3cb34c 100644 --- a/packages/mui-joy/src/Box/index.ts +++ b/packages/mui-joy/src/Box/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Box'; export * from './BoxProps'; diff --git a/packages/mui-joy/src/Breadcrumbs/index.ts b/packages/mui-joy/src/Breadcrumbs/index.ts index a7ece78f6f3925..0ee5614fa62d66 100644 --- a/packages/mui-joy/src/Breadcrumbs/index.ts +++ b/packages/mui-joy/src/Breadcrumbs/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Breadcrumbs'; export * from './breadcrumbsClasses'; export { default as breadcrumbsClasses } from './breadcrumbsClasses'; diff --git a/packages/mui-joy/src/Button/index.ts b/packages/mui-joy/src/Button/index.ts index cd516179783471..c702730d3c766b 100644 --- a/packages/mui-joy/src/Button/index.ts +++ b/packages/mui-joy/src/Button/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Button'; export * from './ButtonProps'; export { default as buttonClasses } from './buttonClasses'; diff --git a/packages/mui-joy/src/ButtonGroup/index.ts b/packages/mui-joy/src/ButtonGroup/index.ts index b7a7c00fba44b7..29d7aa3afef8b7 100644 --- a/packages/mui-joy/src/ButtonGroup/index.ts +++ b/packages/mui-joy/src/ButtonGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ButtonGroup'; export * from './buttonGroupClasses'; export { default as buttonGroupClasses } from './buttonGroupClasses'; diff --git a/packages/mui-joy/src/Card/index.ts b/packages/mui-joy/src/Card/index.ts index 029b2b9c2c8d58..9c879224fe3ed2 100644 --- a/packages/mui-joy/src/Card/index.ts +++ b/packages/mui-joy/src/Card/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Card'; export * from './cardClasses'; export { default as cardClasses } from './cardClasses'; diff --git a/packages/mui-joy/src/CardActions/index.ts b/packages/mui-joy/src/CardActions/index.ts index 67beb5527f3169..651c8315dffeea 100644 --- a/packages/mui-joy/src/CardActions/index.ts +++ b/packages/mui-joy/src/CardActions/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardActions'; export * from './cardActionsClasses'; export { default as cardActionsClasses } from './cardActionsClasses'; diff --git a/packages/mui-joy/src/CardContent/index.ts b/packages/mui-joy/src/CardContent/index.ts index dc2468896707c0..495e9679a8961d 100644 --- a/packages/mui-joy/src/CardContent/index.ts +++ b/packages/mui-joy/src/CardContent/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardContent'; export * from './cardContentClasses'; export { default as cardContentClasses } from './cardContentClasses'; diff --git a/packages/mui-joy/src/CardCover/index.ts b/packages/mui-joy/src/CardCover/index.ts index a3e7ec8b368fc0..13d43920b08a09 100644 --- a/packages/mui-joy/src/CardCover/index.ts +++ b/packages/mui-joy/src/CardCover/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardCover'; export * from './cardCoverClasses'; export { default as cardCoverClasses } from './cardCoverClasses'; diff --git a/packages/mui-joy/src/CardOverflow/index.ts b/packages/mui-joy/src/CardOverflow/index.ts index c24fb4f93ea292..70f27c2d158095 100644 --- a/packages/mui-joy/src/CardOverflow/index.ts +++ b/packages/mui-joy/src/CardOverflow/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardOverflow'; export * from './cardOverflowClasses'; export { default as cardOverflowClasses } from './cardOverflowClasses'; diff --git a/packages/mui-joy/src/Checkbox/index.ts b/packages/mui-joy/src/Checkbox/index.ts index 008c62e5bda20a..cfc79285e72f39 100644 --- a/packages/mui-joy/src/Checkbox/index.ts +++ b/packages/mui-joy/src/Checkbox/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Checkbox'; export { default as checkboxClasses } from './checkboxClasses'; export * from './checkboxClasses'; diff --git a/packages/mui-joy/src/Chip/index.ts b/packages/mui-joy/src/Chip/index.ts index 12fd2fe3dc1a09..969b8f1e69b313 100644 --- a/packages/mui-joy/src/Chip/index.ts +++ b/packages/mui-joy/src/Chip/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Chip'; export { default as chipClasses } from './chipClasses'; export * from './chipClasses'; diff --git a/packages/mui-joy/src/ChipDelete/index.ts b/packages/mui-joy/src/ChipDelete/index.ts index 6e1848d4c3211d..def36173c652da 100644 --- a/packages/mui-joy/src/ChipDelete/index.ts +++ b/packages/mui-joy/src/ChipDelete/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ChipDelete'; export * from './chipDeleteClasses'; export { default as chipDeleteClasses } from './chipDeleteClasses'; diff --git a/packages/mui-joy/src/CircularProgress/index.ts b/packages/mui-joy/src/CircularProgress/index.ts index 48eed89ec0fb28..44a57d7f65fa32 100644 --- a/packages/mui-joy/src/CircularProgress/index.ts +++ b/packages/mui-joy/src/CircularProgress/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './CircularProgress'; export * from './circularProgressClasses'; export { default as circularProgressClasses } from './circularProgressClasses'; diff --git a/packages/mui-joy/src/Container/index.ts b/packages/mui-joy/src/Container/index.ts index 6ddd38a25d7ed6..40915571d90e2d 100644 --- a/packages/mui-joy/src/Container/index.ts +++ b/packages/mui-joy/src/Container/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Container'; export * from './ContainerProps'; diff --git a/packages/mui-joy/src/CssBaseline/index.ts b/packages/mui-joy/src/CssBaseline/index.ts index 46a25c92336177..179c14be74d7e1 100644 --- a/packages/mui-joy/src/CssBaseline/index.ts +++ b/packages/mui-joy/src/CssBaseline/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './CssBaseline'; export * from './CssBaselineProps'; diff --git a/packages/mui-joy/src/DialogActions/index.ts b/packages/mui-joy/src/DialogActions/index.ts index 25cb9861ef01e9..d0a1e8a3804fae 100644 --- a/packages/mui-joy/src/DialogActions/index.ts +++ b/packages/mui-joy/src/DialogActions/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogActions'; export * from './dialogActionsClasses'; export { default as dialogActionsClasses } from './dialogActionsClasses'; diff --git a/packages/mui-joy/src/DialogContent/index.ts b/packages/mui-joy/src/DialogContent/index.ts index c7d79222860a83..5075600d1f6795 100644 --- a/packages/mui-joy/src/DialogContent/index.ts +++ b/packages/mui-joy/src/DialogContent/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogContent'; export * from './dialogContentClasses'; export { default as dialogContentClasses } from './dialogContentClasses'; diff --git a/packages/mui-joy/src/DialogTitle/index.ts b/packages/mui-joy/src/DialogTitle/index.ts index 0ce73b22ce0ae8..62530d0f28ac90 100644 --- a/packages/mui-joy/src/DialogTitle/index.ts +++ b/packages/mui-joy/src/DialogTitle/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogTitle'; export * from './dialogTitleClasses'; export { default as dialogTitleClasses } from './dialogTitleClasses'; diff --git a/packages/mui-joy/src/Divider/index.ts b/packages/mui-joy/src/Divider/index.ts index 463c38d3c0f6b0..98725df4f93c68 100644 --- a/packages/mui-joy/src/Divider/index.ts +++ b/packages/mui-joy/src/Divider/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Divider'; export { default as dividerClasses } from './dividerClasses'; export * from './dividerClasses'; diff --git a/packages/mui-joy/src/Drawer/index.ts b/packages/mui-joy/src/Drawer/index.ts index b129c460ab079c..b3bdb80e16d203 100644 --- a/packages/mui-joy/src/Drawer/index.ts +++ b/packages/mui-joy/src/Drawer/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Drawer'; export { default as drawerClasses } from './drawerClasses'; export * from './drawerClasses'; diff --git a/packages/mui-joy/src/FormControl/index.ts b/packages/mui-joy/src/FormControl/index.ts index 08cbd066eef357..0a506dbac76ac0 100644 --- a/packages/mui-joy/src/FormControl/index.ts +++ b/packages/mui-joy/src/FormControl/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormControl'; export * from './formControlClasses'; export { default as formControlClasses } from './formControlClasses'; diff --git a/packages/mui-joy/src/FormHelperText/index.ts b/packages/mui-joy/src/FormHelperText/index.ts index e7ab52fb176e8b..8531159ad19a86 100644 --- a/packages/mui-joy/src/FormHelperText/index.ts +++ b/packages/mui-joy/src/FormHelperText/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormHelperText'; export { default as formHelperTextClasses } from './formHelperTextClasses'; export * from './formHelperTextClasses'; diff --git a/packages/mui-joy/src/FormLabel/index.ts b/packages/mui-joy/src/FormLabel/index.ts index 3c37eda127833d..2859bb1ff04879 100644 --- a/packages/mui-joy/src/FormLabel/index.ts +++ b/packages/mui-joy/src/FormLabel/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormLabel'; export { default as formLabelClasses } from './formLabelClasses'; export * from './formLabelClasses'; diff --git a/packages/mui-joy/src/Grid/index.ts b/packages/mui-joy/src/Grid/index.ts index d9e2e3542ecc98..5a981d71842eb3 100644 --- a/packages/mui-joy/src/Grid/index.ts +++ b/packages/mui-joy/src/Grid/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Grid'; export * from './GridProps'; export { default as gridClasses } from './gridClasses'; diff --git a/packages/mui-joy/src/IconButton/index.ts b/packages/mui-joy/src/IconButton/index.ts index 475c12c4a62ab6..f30d909e64c437 100644 --- a/packages/mui-joy/src/IconButton/index.ts +++ b/packages/mui-joy/src/IconButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './IconButton'; export * from './IconButtonProps'; export { default as iconButtonClasses } from './iconButtonClasses'; diff --git a/packages/mui-joy/src/Input/index.ts b/packages/mui-joy/src/Input/index.ts index bda49e416efc31..6e1694aa348886 100644 --- a/packages/mui-joy/src/Input/index.ts +++ b/packages/mui-joy/src/Input/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Input'; export * from './InputProps'; export { default as inputClasses } from './inputClasses'; diff --git a/packages/mui-joy/src/LinearProgress/index.ts b/packages/mui-joy/src/LinearProgress/index.ts index 38162c030ee9e6..4ed393247c7524 100644 --- a/packages/mui-joy/src/LinearProgress/index.ts +++ b/packages/mui-joy/src/LinearProgress/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './LinearProgress'; export * from './linearProgressClasses'; export { default as linearProgressClasses } from './linearProgressClasses'; diff --git a/packages/mui-joy/src/Link/index.ts b/packages/mui-joy/src/Link/index.ts index a914ee466d9bd6..6d27032b85f297 100644 --- a/packages/mui-joy/src/Link/index.ts +++ b/packages/mui-joy/src/Link/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Link'; export * from './linkClasses'; export { default as linkClasses } from './linkClasses'; diff --git a/packages/mui-joy/src/List/index.ts b/packages/mui-joy/src/List/index.ts index 5f99c44d12ace4..0c4820c05816dc 100644 --- a/packages/mui-joy/src/List/index.ts +++ b/packages/mui-joy/src/List/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './List'; export { default as listClasses } from './listClasses'; export * from './listClasses'; diff --git a/packages/mui-joy/src/ListDivider/index.ts b/packages/mui-joy/src/ListDivider/index.ts index 1d7f1428fd42ee..5f6e2e0af599eb 100644 --- a/packages/mui-joy/src/ListDivider/index.ts +++ b/packages/mui-joy/src/ListDivider/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListDivider'; export { default as listDividerClasses } from './listDividerClasses'; export * from './listDividerClasses'; diff --git a/packages/mui-joy/src/ListItem/index.ts b/packages/mui-joy/src/ListItem/index.ts index 0f5a15fbf4e562..c4a83c1b180527 100644 --- a/packages/mui-joy/src/ListItem/index.ts +++ b/packages/mui-joy/src/ListItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItem'; export { default as listItemClasses } from './listItemClasses'; export * from './listItemClasses'; diff --git a/packages/mui-joy/src/ListItemButton/index.ts b/packages/mui-joy/src/ListItemButton/index.ts index 655a937dcd6d47..c7db1d9a690d3f 100644 --- a/packages/mui-joy/src/ListItemButton/index.ts +++ b/packages/mui-joy/src/ListItemButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemButton'; export { default as listItemButtonClasses } from './listItemButtonClasses'; export * from './listItemButtonClasses'; diff --git a/packages/mui-joy/src/ListItemContent/index.ts b/packages/mui-joy/src/ListItemContent/index.ts index 16f7cfbca6031f..5c55dcf74bd894 100644 --- a/packages/mui-joy/src/ListItemContent/index.ts +++ b/packages/mui-joy/src/ListItemContent/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemContent'; export { default as listItemContentClasses } from './listItemContentClasses'; export * from './listItemContentClasses'; diff --git a/packages/mui-joy/src/ListItemDecorator/index.ts b/packages/mui-joy/src/ListItemDecorator/index.ts index 8a100627f29271..64caaecba13594 100644 --- a/packages/mui-joy/src/ListItemDecorator/index.ts +++ b/packages/mui-joy/src/ListItemDecorator/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemDecorator'; export { default as listItemDecoratorClasses } from './listItemDecoratorClasses'; export * from './listItemDecoratorClasses'; diff --git a/packages/mui-joy/src/ListSubheader/index.ts b/packages/mui-joy/src/ListSubheader/index.ts index 4166c0494c5028..7e85a94191be8d 100644 --- a/packages/mui-joy/src/ListSubheader/index.ts +++ b/packages/mui-joy/src/ListSubheader/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListSubheader'; export { default as listSubheaderClasses } from './listSubheaderClasses'; export * from './listSubheaderClasses'; diff --git a/packages/mui-joy/src/Menu/index.ts b/packages/mui-joy/src/Menu/index.ts index fd7e898536e4e5..2124dff2567749 100644 --- a/packages/mui-joy/src/Menu/index.ts +++ b/packages/mui-joy/src/Menu/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Menu'; export { default as menuClasses } from './menuClasses'; export * from './menuClasses'; diff --git a/packages/mui-joy/src/MenuButton/index.ts b/packages/mui-joy/src/MenuButton/index.ts index da4343aebb09ff..f0ac8231c8c0d9 100644 --- a/packages/mui-joy/src/MenuButton/index.ts +++ b/packages/mui-joy/src/MenuButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './MenuButton'; export * from './MenuButtonProps'; diff --git a/packages/mui-joy/src/MenuItem/index.ts b/packages/mui-joy/src/MenuItem/index.ts index 7370b8101c1c91..ae19cf4f840060 100644 --- a/packages/mui-joy/src/MenuItem/index.ts +++ b/packages/mui-joy/src/MenuItem/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './MenuItem'; export { default as menuItemClasses } from './menuItemClasses'; export * from './menuItemClasses'; diff --git a/packages/mui-joy/src/MenuList/index.ts b/packages/mui-joy/src/MenuList/index.ts index 93ddb6f926c6da..0d68d9bcb40f4e 100644 --- a/packages/mui-joy/src/MenuList/index.ts +++ b/packages/mui-joy/src/MenuList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './MenuList'; export { default as menuListClasses } from './menuListClasses'; export * from './menuListClasses'; diff --git a/packages/mui-joy/src/Modal/index.ts b/packages/mui-joy/src/Modal/index.ts index 73b29561062658..426ec988208a72 100644 --- a/packages/mui-joy/src/Modal/index.ts +++ b/packages/mui-joy/src/Modal/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Modal'; export * from './modalClasses'; export { default as modalClasses } from './modalClasses'; diff --git a/packages/mui-joy/src/ModalClose/index.ts b/packages/mui-joy/src/ModalClose/index.ts index 6e1119abfd5e9e..3612cb7bfcfdab 100644 --- a/packages/mui-joy/src/ModalClose/index.ts +++ b/packages/mui-joy/src/ModalClose/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ModalClose'; export * from './modalCloseClasses'; export { default as modalCloseClasses } from './modalCloseClasses'; diff --git a/packages/mui-joy/src/ModalDialog/index.ts b/packages/mui-joy/src/ModalDialog/index.ts index 09a7ee9533637d..c15073416b2509 100644 --- a/packages/mui-joy/src/ModalDialog/index.ts +++ b/packages/mui-joy/src/ModalDialog/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ModalDialog'; export * from './modalDialogClasses'; export { default as modalDialogClasses } from './modalDialogClasses'; diff --git a/packages/mui-joy/src/ModalOverflow/index.ts b/packages/mui-joy/src/ModalOverflow/index.ts index 696abb5b8b5cef..de9a6a34c491c1 100644 --- a/packages/mui-joy/src/ModalOverflow/index.ts +++ b/packages/mui-joy/src/ModalOverflow/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ModalOverflow'; export * from './modalOverflowClasses'; export { default as modalOverflowClasses } from './modalOverflowClasses'; diff --git a/packages/mui-joy/src/Option/index.ts b/packages/mui-joy/src/Option/index.ts index 6e5716eb8df59e..36144d0672fa1d 100644 --- a/packages/mui-joy/src/Option/index.ts +++ b/packages/mui-joy/src/Option/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Option'; export { default as optionClasses } from './optionClasses'; export * from './optionClasses'; diff --git a/packages/mui-joy/src/Radio/index.ts b/packages/mui-joy/src/Radio/index.ts index e4697a3f7ec187..f315fa4d29b963 100644 --- a/packages/mui-joy/src/Radio/index.ts +++ b/packages/mui-joy/src/Radio/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Radio'; export { default as radioClasses } from './radioClasses'; export * from './radioClasses'; diff --git a/packages/mui-joy/src/RadioGroup/index.ts b/packages/mui-joy/src/RadioGroup/index.ts index aea701723c2b4f..02e1ca75139914 100644 --- a/packages/mui-joy/src/RadioGroup/index.ts +++ b/packages/mui-joy/src/RadioGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './RadioGroup'; export { default as radioGroupClasses } from './radioGroupClasses'; export * from './radioGroupClasses'; diff --git a/packages/mui-joy/src/ScopedCssBaseline/index.ts b/packages/mui-joy/src/ScopedCssBaseline/index.ts index c8982287ca6d12..bec39f16cd316c 100644 --- a/packages/mui-joy/src/ScopedCssBaseline/index.ts +++ b/packages/mui-joy/src/ScopedCssBaseline/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ScopedCssBaseline'; export * from './ScopedCssBaselineProps'; export { default as scopedCssBaselineClasses } from './scopedCssBaselineClasses'; diff --git a/packages/mui-joy/src/Select/index.ts b/packages/mui-joy/src/Select/index.ts index dd6c63c90fcfce..8838449fd5d6fa 100644 --- a/packages/mui-joy/src/Select/index.ts +++ b/packages/mui-joy/src/Select/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Select'; export * from './SelectProps'; export { default as selectClasses } from './selectClasses'; diff --git a/packages/mui-joy/src/Sheet/index.ts b/packages/mui-joy/src/Sheet/index.ts index 121b70ced0cf87..3a45d047c73333 100644 --- a/packages/mui-joy/src/Sheet/index.ts +++ b/packages/mui-joy/src/Sheet/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Sheet'; export * from './sheetClasses'; export { default as sheetClasses } from './sheetClasses'; diff --git a/packages/mui-joy/src/Skeleton/index.ts b/packages/mui-joy/src/Skeleton/index.ts index f385837fbc00ba..b472237175f850 100644 --- a/packages/mui-joy/src/Skeleton/index.ts +++ b/packages/mui-joy/src/Skeleton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Skeleton'; export * from './skeletonClasses'; export { default as skeletonClasses } from './skeletonClasses'; diff --git a/packages/mui-joy/src/Slider/index.ts b/packages/mui-joy/src/Slider/index.ts index 9c831ddb98d38b..1cfe65a7186029 100644 --- a/packages/mui-joy/src/Slider/index.ts +++ b/packages/mui-joy/src/Slider/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Slider'; export * from './sliderClasses'; export { default as sliderClasses } from './sliderClasses'; diff --git a/packages/mui-joy/src/Snackbar/index.ts b/packages/mui-joy/src/Snackbar/index.ts index 9a1de25f1c8376..4c01e406ca27f9 100644 --- a/packages/mui-joy/src/Snackbar/index.ts +++ b/packages/mui-joy/src/Snackbar/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Snackbar'; export * from './snackbarClasses'; export { default as snackbarClasses } from './snackbarClasses'; diff --git a/packages/mui-joy/src/Stack/index.ts b/packages/mui-joy/src/Stack/index.ts index 4cb10618d7d1be..4f3fa2e1c84858 100644 --- a/packages/mui-joy/src/Stack/index.ts +++ b/packages/mui-joy/src/Stack/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Stack'; export * from './StackProps'; diff --git a/packages/mui-joy/src/Step/index.ts b/packages/mui-joy/src/Step/index.ts index 26022ad8d0450c..2650570a7d11d1 100644 --- a/packages/mui-joy/src/Step/index.ts +++ b/packages/mui-joy/src/Step/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Step'; export * from './stepClasses'; export { default as stepClasses } from './stepClasses'; diff --git a/packages/mui-joy/src/StepButton/index.ts b/packages/mui-joy/src/StepButton/index.ts index db8008e0382012..dc494f17ff3c7a 100644 --- a/packages/mui-joy/src/StepButton/index.ts +++ b/packages/mui-joy/src/StepButton/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepButton'; export * from './stepButtonClasses'; export { default as stepButtonClasses } from './stepButtonClasses'; diff --git a/packages/mui-joy/src/StepIndicator/index.ts b/packages/mui-joy/src/StepIndicator/index.ts index f14427ff38451c..53a2e118f0906c 100644 --- a/packages/mui-joy/src/StepIndicator/index.ts +++ b/packages/mui-joy/src/StepIndicator/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepIndicator'; export * from './stepIndicatorClasses'; export { default as stepIndicatorClasses } from './stepIndicatorClasses'; diff --git a/packages/mui-joy/src/Stepper/index.ts b/packages/mui-joy/src/Stepper/index.ts index 1e14b6e812d1c9..f81f0e70cc2a50 100644 --- a/packages/mui-joy/src/Stepper/index.ts +++ b/packages/mui-joy/src/Stepper/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Stepper'; export * from './stepperClasses'; export { default as stepperClasses } from './stepperClasses'; diff --git a/packages/mui-joy/src/SvgIcon/index.ts b/packages/mui-joy/src/SvgIcon/index.ts index 059c67f7f2c035..4ecec6ee8d814e 100644 --- a/packages/mui-joy/src/SvgIcon/index.ts +++ b/packages/mui-joy/src/SvgIcon/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './SvgIcon'; export * from './SvgIconProps'; export { default as svgIconClasses } from './svgIconClasses'; diff --git a/packages/mui-joy/src/Switch/index.ts b/packages/mui-joy/src/Switch/index.ts index fc73710fc6b750..2c190ccd5f69b4 100644 --- a/packages/mui-joy/src/Switch/index.ts +++ b/packages/mui-joy/src/Switch/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Switch'; export { default as switchClasses } from './switchClasses'; export * from './switchClasses'; diff --git a/packages/mui-joy/src/Tab/index.ts b/packages/mui-joy/src/Tab/index.ts index c9d3d35b2d54cb..974eb9868050d3 100644 --- a/packages/mui-joy/src/Tab/index.ts +++ b/packages/mui-joy/src/Tab/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tab'; export * from './tabClasses'; export { default as tabClasses } from './tabClasses'; diff --git a/packages/mui-joy/src/TabList/index.ts b/packages/mui-joy/src/TabList/index.ts index 8a21cc29136f75..b35c807435d338 100644 --- a/packages/mui-joy/src/TabList/index.ts +++ b/packages/mui-joy/src/TabList/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './TabList'; export * from './tabListClasses'; export { default as tabListClasses } from './tabListClasses'; diff --git a/packages/mui-joy/src/TabPanel/index.ts b/packages/mui-joy/src/TabPanel/index.ts index 9171601c462a1e..ff9a08902de0f3 100644 --- a/packages/mui-joy/src/TabPanel/index.ts +++ b/packages/mui-joy/src/TabPanel/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './TabPanel'; export * from './tabPanelClasses'; export { default as tabPanelClasses } from './tabPanelClasses'; diff --git a/packages/mui-joy/src/Table/index.ts b/packages/mui-joy/src/Table/index.ts index 63b5fc013fd3b2..0bcd389394be06 100644 --- a/packages/mui-joy/src/Table/index.ts +++ b/packages/mui-joy/src/Table/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Table'; export * from './tableClasses'; export { default as tableClasses } from './tableClasses'; diff --git a/packages/mui-joy/src/Tabs/index.ts b/packages/mui-joy/src/Tabs/index.ts index 70378920b5b207..6396048dca1ec7 100644 --- a/packages/mui-joy/src/Tabs/index.ts +++ b/packages/mui-joy/src/Tabs/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tabs'; export * from './tabsClasses'; export { default as tabsClasses } from './tabsClasses'; diff --git a/packages/mui-joy/src/TextField/index.ts b/packages/mui-joy/src/TextField/index.ts index f8cd03c69cdf5e..0198002999a808 100644 --- a/packages/mui-joy/src/TextField/index.ts +++ b/packages/mui-joy/src/TextField/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './TextField'; diff --git a/packages/mui-joy/src/Textarea/index.ts b/packages/mui-joy/src/Textarea/index.ts index c1df8aa9f77a55..4b7d47c97ebc6d 100644 --- a/packages/mui-joy/src/Textarea/index.ts +++ b/packages/mui-joy/src/Textarea/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Textarea'; export * from './TextareaProps'; export { default as textareaClasses } from './textareaClasses'; diff --git a/packages/mui-joy/src/ToggleButtonGroup/index.ts b/packages/mui-joy/src/ToggleButtonGroup/index.ts index 7372bd7583cd0a..d59291be53b991 100644 --- a/packages/mui-joy/src/ToggleButtonGroup/index.ts +++ b/packages/mui-joy/src/ToggleButtonGroup/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './ToggleButtonGroup'; export * from './toggleButtonGroupClasses'; export { default as toggleButtonGroupClasses } from './toggleButtonGroupClasses'; diff --git a/packages/mui-joy/src/Tooltip/index.ts b/packages/mui-joy/src/Tooltip/index.ts index 52eb39f3ec0778..d9fccd402f603d 100644 --- a/packages/mui-joy/src/Tooltip/index.ts +++ b/packages/mui-joy/src/Tooltip/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tooltip'; export * from './tooltipClasses'; export { default as tooltipClasses } from './tooltipClasses'; diff --git a/packages/mui-joy/src/Typography/index.ts b/packages/mui-joy/src/Typography/index.ts index 48221d9679291b..bbaa51027683f6 100644 --- a/packages/mui-joy/src/Typography/index.ts +++ b/packages/mui-joy/src/Typography/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Typography'; export * from './TypographyProps'; export { default as typographyClasses } from './typographyClasses'; diff --git a/packages/mui-joy/src/index.ts b/packages/mui-joy/src/index.ts index 5b7c7c983bb69a..59a9bc7b21e6d0 100644 --- a/packages/mui-joy/src/index.ts +++ b/packages/mui-joy/src/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default as colors } from './colors'; export * from './styles'; diff --git a/packages/mui-joy/src/styles/index.ts b/packages/mui-joy/src/styles/index.ts index 82fd57ca9ee0da..a7420b67e870cb 100644 --- a/packages/mui-joy/src/styles/index.ts +++ b/packages/mui-joy/src/styles/index.ts @@ -1,4 +1,3 @@ -'use client'; // reexports from system for module augmentation export type { BreakpointOverrides } from '@mui/system'; diff --git a/packages/mui-joy/src/utils/index.ts b/packages/mui-joy/src/utils/index.ts index 62124dcc5cefdb..75299a21ac5071 100644 --- a/packages/mui-joy/src/utils/index.ts +++ b/packages/mui-joy/src/utils/index.ts @@ -1,3 +1,2 @@ -'use client'; // eslint-disable-next-line import/prefer-default-export export { default as createSvgIcon } from './createSvgIcon'; diff --git a/packages/mui-lab/package.json b/packages/mui-lab/package.json index 7ece96ab00c402..ff6f59ff04a7f9 100644 --- a/packages/mui-lab/package.json +++ b/packages/mui-lab/package.json @@ -29,10 +29,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index 1ecf951109b362..55e7f64861bf91 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -28,11 +28,11 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:umd && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", "build:umd": "cross-env BABEL_ENV=rollup rollup -c scripts/rollup.config.mjs", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/packages/mui-material/src/Alert/index.js b/packages/mui-material/src/Alert/index.js index c978509837fd40..ae354db3f6bcac 100644 --- a/packages/mui-material/src/Alert/index.js +++ b/packages/mui-material/src/Alert/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Alert'; export { default as alertClasses } from './alertClasses'; diff --git a/packages/mui-material/src/AlertTitle/index.js b/packages/mui-material/src/AlertTitle/index.js index 88dfd77e0aa3fb..a8d06452a44bfa 100644 --- a/packages/mui-material/src/AlertTitle/index.js +++ b/packages/mui-material/src/AlertTitle/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './AlertTitle'; export { default as alertTitleClasses } from './alertTitleClasses'; diff --git a/packages/mui-material/src/AppBar/index.js b/packages/mui-material/src/AppBar/index.js index 117d47f9047283..d1102ae64ed7c5 100644 --- a/packages/mui-material/src/AppBar/index.js +++ b/packages/mui-material/src/AppBar/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './AppBar'; export { default as appBarClasses } from './appBarClasses'; diff --git a/packages/mui-material/src/Autocomplete/index.js b/packages/mui-material/src/Autocomplete/index.js index e57635491208e4..bc2577ca4c03c3 100644 --- a/packages/mui-material/src/Autocomplete/index.js +++ b/packages/mui-material/src/Autocomplete/index.js @@ -1,4 +1,3 @@ -'use client'; export { default, createFilterOptions } from './Autocomplete'; export { default as autocompleteClasses } from './autocompleteClasses'; diff --git a/packages/mui-material/src/Avatar/index.js b/packages/mui-material/src/Avatar/index.js index 7343e9915fb2b8..08248f841869fb 100644 --- a/packages/mui-material/src/Avatar/index.js +++ b/packages/mui-material/src/Avatar/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Avatar'; export { default as avatarClasses } from './avatarClasses'; diff --git a/packages/mui-material/src/AvatarGroup/index.js b/packages/mui-material/src/AvatarGroup/index.js index 16930c7dc05548..d3a39cb2673cf5 100644 --- a/packages/mui-material/src/AvatarGroup/index.js +++ b/packages/mui-material/src/AvatarGroup/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './AvatarGroup'; export { default as avatarGroupClasses } from './avatarGroupClasses'; export * from './avatarGroupClasses'; diff --git a/packages/mui-material/src/Backdrop/index.js b/packages/mui-material/src/Backdrop/index.js index 3fe812acfeef22..31e877d1ad425d 100644 --- a/packages/mui-material/src/Backdrop/index.js +++ b/packages/mui-material/src/Backdrop/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Backdrop'; export { default as backdropClasses } from './backdropClasses'; export * from './backdropClasses'; diff --git a/packages/mui-material/src/Badge/index.js b/packages/mui-material/src/Badge/index.js index 7ac0cf0142bf01..42f9d0102195b5 100644 --- a/packages/mui-material/src/Badge/index.js +++ b/packages/mui-material/src/Badge/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Badge'; export { default as badgeClasses } from './badgeClasses'; diff --git a/packages/mui-material/src/BottomNavigation/index.js b/packages/mui-material/src/BottomNavigation/index.js index f9b197b0f72014..e35a344d097b26 100644 --- a/packages/mui-material/src/BottomNavigation/index.js +++ b/packages/mui-material/src/BottomNavigation/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './BottomNavigation'; export { default as bottomNavigationClasses } from './bottomNavigationClasses'; diff --git a/packages/mui-material/src/BottomNavigationAction/index.js b/packages/mui-material/src/BottomNavigationAction/index.js index 2cfdda3d675d4e..377af4979d46ac 100644 --- a/packages/mui-material/src/BottomNavigationAction/index.js +++ b/packages/mui-material/src/BottomNavigationAction/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './BottomNavigationAction'; export { default as bottomNavigationActionClasses } from './bottomNavigationActionClasses'; diff --git a/packages/mui-material/src/Box/index.js b/packages/mui-material/src/Box/index.js index 956a444c75c938..fc66543f28f643 100644 --- a/packages/mui-material/src/Box/index.js +++ b/packages/mui-material/src/Box/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Box'; export { default as boxClasses } from './boxClasses'; diff --git a/packages/mui-material/src/Breadcrumbs/index.js b/packages/mui-material/src/Breadcrumbs/index.js index bc5f92abb8214b..77829cbf764cab 100644 --- a/packages/mui-material/src/Breadcrumbs/index.js +++ b/packages/mui-material/src/Breadcrumbs/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Breadcrumbs'; export { default as breadcrumbsClasses } from './breadcrumbsClasses'; diff --git a/packages/mui-material/src/Button/index.js b/packages/mui-material/src/Button/index.js index e45e9d01cf1efc..f100af2969849b 100644 --- a/packages/mui-material/src/Button/index.js +++ b/packages/mui-material/src/Button/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Button'; export { default as buttonClasses } from './buttonClasses'; diff --git a/packages/mui-material/src/ButtonBase/index.js b/packages/mui-material/src/ButtonBase/index.js index 5410b8280a670a..ffa71222f42f55 100644 --- a/packages/mui-material/src/ButtonBase/index.js +++ b/packages/mui-material/src/ButtonBase/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ButtonBase'; export { default as buttonBaseClasses } from './buttonBaseClasses'; diff --git a/packages/mui-material/src/ButtonGroup/index.js b/packages/mui-material/src/ButtonGroup/index.js index b30f044d2b4600..b0466bbdc9cfe4 100644 --- a/packages/mui-material/src/ButtonGroup/index.js +++ b/packages/mui-material/src/ButtonGroup/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ButtonGroup'; export { default as buttonGroupClasses } from './buttonGroupClasses'; export * from './buttonGroupClasses'; diff --git a/packages/mui-material/src/Card/index.js b/packages/mui-material/src/Card/index.js index 69fb6f6d7854fc..ee2a4ca12c471b 100644 --- a/packages/mui-material/src/Card/index.js +++ b/packages/mui-material/src/Card/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Card'; export { default as cardClasses } from './cardClasses'; diff --git a/packages/mui-material/src/CardActionArea/index.js b/packages/mui-material/src/CardActionArea/index.js index 72966e9aecc281..88e3b45b30a7e0 100644 --- a/packages/mui-material/src/CardActionArea/index.js +++ b/packages/mui-material/src/CardActionArea/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardActionArea'; export { default as cardActionAreaClasses } from './cardActionAreaClasses'; diff --git a/packages/mui-material/src/CardActions/index.js b/packages/mui-material/src/CardActions/index.js index 574cafdd683eb5..42d895fc2fbaf2 100644 --- a/packages/mui-material/src/CardActions/index.js +++ b/packages/mui-material/src/CardActions/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardActions'; export { default as cardActionsClasses } from './cardActionsClasses'; diff --git a/packages/mui-material/src/CardContent/index.js b/packages/mui-material/src/CardContent/index.js index d3fd480cb35648..3ee40db9b57671 100644 --- a/packages/mui-material/src/CardContent/index.js +++ b/packages/mui-material/src/CardContent/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardContent'; export { default as cardContentClasses } from './cardContentClasses'; diff --git a/packages/mui-material/src/CardHeader/index.js b/packages/mui-material/src/CardHeader/index.js index 7c4f88d11adb39..7f66c751b27942 100644 --- a/packages/mui-material/src/CardHeader/index.js +++ b/packages/mui-material/src/CardHeader/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardHeader'; export { default as cardHeaderClasses } from './cardHeaderClasses'; diff --git a/packages/mui-material/src/CardMedia/index.js b/packages/mui-material/src/CardMedia/index.js index 58d227e9bc2d21..b20f3170c16b8a 100644 --- a/packages/mui-material/src/CardMedia/index.js +++ b/packages/mui-material/src/CardMedia/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CardMedia'; export { default as cardMediaClasses } from './cardMediaClasses'; diff --git a/packages/mui-material/src/Checkbox/index.js b/packages/mui-material/src/Checkbox/index.js index 5211c7ab6487b7..55883a5457b284 100644 --- a/packages/mui-material/src/Checkbox/index.js +++ b/packages/mui-material/src/Checkbox/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Checkbox'; export { default as checkboxClasses } from './checkboxClasses'; diff --git a/packages/mui-material/src/Chip/index.js b/packages/mui-material/src/Chip/index.js index 81875ce0035fcc..5c7f16c51acddf 100644 --- a/packages/mui-material/src/Chip/index.js +++ b/packages/mui-material/src/Chip/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Chip'; export { default as chipClasses } from './chipClasses'; diff --git a/packages/mui-material/src/CircularProgress/index.js b/packages/mui-material/src/CircularProgress/index.js index 0541327cc71d2d..16ab4399604db7 100644 --- a/packages/mui-material/src/CircularProgress/index.js +++ b/packages/mui-material/src/CircularProgress/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './CircularProgress'; export { default as circularProgressClasses } from './circularProgressClasses'; diff --git a/packages/mui-material/src/Collapse/index.js b/packages/mui-material/src/Collapse/index.js index 2c51ce3e77ed46..1d0361f84f2fb6 100644 --- a/packages/mui-material/src/Collapse/index.js +++ b/packages/mui-material/src/Collapse/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Collapse'; export { default as collapseClasses } from './collapseClasses'; diff --git a/packages/mui-material/src/Container/index.js b/packages/mui-material/src/Container/index.js index 0a922c1c8dee82..be7c5c912f5943 100644 --- a/packages/mui-material/src/Container/index.js +++ b/packages/mui-material/src/Container/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Container'; export { default as containerClasses } from './containerClasses'; diff --git a/packages/mui-material/src/CssBaseline/index.js b/packages/mui-material/src/CssBaseline/index.js index 348940ca2ea43a..fbc808d4492709 100644 --- a/packages/mui-material/src/CssBaseline/index.js +++ b/packages/mui-material/src/CssBaseline/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './CssBaseline'; diff --git a/packages/mui-material/src/Dialog/index.js b/packages/mui-material/src/Dialog/index.js index f6428c3e45d610..88fdcc2dbdef96 100644 --- a/packages/mui-material/src/Dialog/index.js +++ b/packages/mui-material/src/Dialog/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Dialog'; export { default as dialogClasses } from './dialogClasses'; diff --git a/packages/mui-material/src/DialogActions/index.js b/packages/mui-material/src/DialogActions/index.js index 2cd37c898aa606..e01426ff8b3ecb 100644 --- a/packages/mui-material/src/DialogActions/index.js +++ b/packages/mui-material/src/DialogActions/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogActions'; export { default as dialogActionsClasses } from './dialogActionsClasses'; diff --git a/packages/mui-material/src/DialogContent/index.js b/packages/mui-material/src/DialogContent/index.js index 8594f9de368d11..6a64cd0760cb1e 100644 --- a/packages/mui-material/src/DialogContent/index.js +++ b/packages/mui-material/src/DialogContent/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogContent'; export { default as dialogContentClasses } from './dialogContentClasses'; diff --git a/packages/mui-material/src/DialogContentText/index.js b/packages/mui-material/src/DialogContentText/index.js index c3d56494787dbd..ac4e6138a5497d 100644 --- a/packages/mui-material/src/DialogContentText/index.js +++ b/packages/mui-material/src/DialogContentText/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogContentText'; export { default as dialogContentTextClasses } from './dialogContentTextClasses'; diff --git a/packages/mui-material/src/DialogTitle/index.js b/packages/mui-material/src/DialogTitle/index.js index 7d2af51cd0824d..05be8d699e12dd 100644 --- a/packages/mui-material/src/DialogTitle/index.js +++ b/packages/mui-material/src/DialogTitle/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './DialogTitle'; export { default as dialogTitleClasses } from './dialogTitleClasses'; diff --git a/packages/mui-material/src/Divider/index.js b/packages/mui-material/src/Divider/index.js index 6f37070be42115..cd0c47ad59025f 100644 --- a/packages/mui-material/src/Divider/index.js +++ b/packages/mui-material/src/Divider/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Divider'; export { default as dividerClasses } from './dividerClasses'; diff --git a/packages/mui-material/src/Drawer/index.js b/packages/mui-material/src/Drawer/index.js index c86f5d60e1cd06..2df2f33268b1f5 100644 --- a/packages/mui-material/src/Drawer/index.js +++ b/packages/mui-material/src/Drawer/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Drawer'; export { default as drawerClasses } from './drawerClasses'; diff --git a/packages/mui-material/src/Fab/index.js b/packages/mui-material/src/Fab/index.js index 7a50d9ba5b8ddd..e5fd203ad858c0 100644 --- a/packages/mui-material/src/Fab/index.js +++ b/packages/mui-material/src/Fab/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Fab'; export { default as fabClasses } from './fabClasses'; diff --git a/packages/mui-material/src/Fade/index.js b/packages/mui-material/src/Fade/index.js index 72383924f48901..f2e7306180a9ad 100644 --- a/packages/mui-material/src/Fade/index.js +++ b/packages/mui-material/src/Fade/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Fade'; diff --git a/packages/mui-material/src/FilledInput/index.js b/packages/mui-material/src/FilledInput/index.js index d1afd2384ad9b5..91b5a314f0050b 100644 --- a/packages/mui-material/src/FilledInput/index.js +++ b/packages/mui-material/src/FilledInput/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FilledInput'; export { default as filledInputClasses } from './filledInputClasses'; diff --git a/packages/mui-material/src/FormControl/index.js b/packages/mui-material/src/FormControl/index.js index 4112e5a979f5f1..3696a0db431cde 100644 --- a/packages/mui-material/src/FormControl/index.js +++ b/packages/mui-material/src/FormControl/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormControl'; export { default as useFormControl } from './useFormControl'; diff --git a/packages/mui-material/src/FormControlLabel/index.js b/packages/mui-material/src/FormControlLabel/index.js index 9ac194366044ec..9ed089a1a82bf0 100644 --- a/packages/mui-material/src/FormControlLabel/index.js +++ b/packages/mui-material/src/FormControlLabel/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormControlLabel'; export { default as formControlLabelClasses } from './formControlLabelClasses'; diff --git a/packages/mui-material/src/FormGroup/index.js b/packages/mui-material/src/FormGroup/index.js index 745ba760f17f76..a932a6832a111f 100644 --- a/packages/mui-material/src/FormGroup/index.js +++ b/packages/mui-material/src/FormGroup/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormGroup'; export { default as formGroupClasses } from './formGroupClasses'; export * from './formGroupClasses'; diff --git a/packages/mui-material/src/FormHelperText/index.js b/packages/mui-material/src/FormHelperText/index.js index e2e5b0a06e3444..00261f5370cf62 100644 --- a/packages/mui-material/src/FormHelperText/index.js +++ b/packages/mui-material/src/FormHelperText/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormHelperText'; export { default as formHelperTextClasses } from './formHelperTextClasses'; diff --git a/packages/mui-material/src/FormLabel/index.js b/packages/mui-material/src/FormLabel/index.js index db05e838ce6da7..f81d2d6d4ed4a4 100644 --- a/packages/mui-material/src/FormLabel/index.js +++ b/packages/mui-material/src/FormLabel/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './FormLabel'; export * from './FormLabel'; diff --git a/packages/mui-material/src/Grid/index.js b/packages/mui-material/src/Grid/index.js index c679ea0a45f9fc..7d6e3574239812 100644 --- a/packages/mui-material/src/Grid/index.js +++ b/packages/mui-material/src/Grid/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Grid'; export { default as gridClasses } from './gridClasses'; diff --git a/packages/mui-material/src/Grow/index.js b/packages/mui-material/src/Grow/index.js index 4a0378a0ec0359..0bae98f6624cc6 100644 --- a/packages/mui-material/src/Grow/index.js +++ b/packages/mui-material/src/Grow/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Grow'; diff --git a/packages/mui-material/src/Hidden/index.js b/packages/mui-material/src/Hidden/index.js index ec796de043e77f..b786254d40f3d3 100644 --- a/packages/mui-material/src/Hidden/index.js +++ b/packages/mui-material/src/Hidden/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Hidden'; diff --git a/packages/mui-material/src/Icon/index.js b/packages/mui-material/src/Icon/index.js index 2d590735b67a17..403a0df0626dfc 100644 --- a/packages/mui-material/src/Icon/index.js +++ b/packages/mui-material/src/Icon/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Icon'; export { default as iconClasses } from './iconClasses'; diff --git a/packages/mui-material/src/IconButton/index.js b/packages/mui-material/src/IconButton/index.js index f80565936a4435..115058c9d6a9f6 100644 --- a/packages/mui-material/src/IconButton/index.js +++ b/packages/mui-material/src/IconButton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './IconButton'; export { default as iconButtonClasses } from './iconButtonClasses'; diff --git a/packages/mui-material/src/ImageList/index.js b/packages/mui-material/src/ImageList/index.js index d72a5536795bd7..3cbe65e6a2c1bf 100644 --- a/packages/mui-material/src/ImageList/index.js +++ b/packages/mui-material/src/ImageList/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ImageList'; export * from './imageListClasses'; export { default as imageListClasses } from './imageListClasses'; diff --git a/packages/mui-material/src/ImageListItem/index.js b/packages/mui-material/src/ImageListItem/index.js index d96ad0f3ce4798..3659a0336c3956 100644 --- a/packages/mui-material/src/ImageListItem/index.js +++ b/packages/mui-material/src/ImageListItem/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ImageListItem'; export * from './imageListItemClasses'; diff --git a/packages/mui-material/src/ImageListItemBar/index.js b/packages/mui-material/src/ImageListItemBar/index.js index d7617f02c01066..30060333f44f95 100644 --- a/packages/mui-material/src/ImageListItemBar/index.js +++ b/packages/mui-material/src/ImageListItemBar/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ImageListItemBar'; export * from './imageListItemBarClasses'; diff --git a/packages/mui-material/src/Input/index.js b/packages/mui-material/src/Input/index.js index 58f1c4e3d0cd62..b32ad177dd8e11 100644 --- a/packages/mui-material/src/Input/index.js +++ b/packages/mui-material/src/Input/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Input'; export { default as inputClasses } from './inputClasses'; export * from './inputClasses'; diff --git a/packages/mui-material/src/InputAdornment/index.js b/packages/mui-material/src/InputAdornment/index.js index e8757bd82b4074..b1e7375e2c5564 100644 --- a/packages/mui-material/src/InputAdornment/index.js +++ b/packages/mui-material/src/InputAdornment/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './InputAdornment'; export { default as inputAdornmentClasses } from './inputAdornmentClasses'; diff --git a/packages/mui-material/src/InputBase/index.js b/packages/mui-material/src/InputBase/index.js index 305647eb07d08b..c2fae1fb233b41 100644 --- a/packages/mui-material/src/InputBase/index.js +++ b/packages/mui-material/src/InputBase/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './InputBase'; export { default as inputBaseClasses } from './inputBaseClasses'; diff --git a/packages/mui-material/src/InputLabel/index.js b/packages/mui-material/src/InputLabel/index.js index f1050f1d809098..70140e12a84000 100644 --- a/packages/mui-material/src/InputLabel/index.js +++ b/packages/mui-material/src/InputLabel/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './InputLabel'; export { default as inputLabelClasses } from './inputLabelClasses'; diff --git a/packages/mui-material/src/LinearProgress/index.js b/packages/mui-material/src/LinearProgress/index.js index afb73ef3020a9c..e3f2818ef6e399 100644 --- a/packages/mui-material/src/LinearProgress/index.js +++ b/packages/mui-material/src/LinearProgress/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './LinearProgress'; export { default as linearProgressClasses } from './linearProgressClasses'; diff --git a/packages/mui-material/src/Link/index.js b/packages/mui-material/src/Link/index.js index 4af7cb278e648d..a9ab204b20f140 100644 --- a/packages/mui-material/src/Link/index.js +++ b/packages/mui-material/src/Link/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Link'; export { default as linkClasses } from './linkClasses'; diff --git a/packages/mui-material/src/List/index.js b/packages/mui-material/src/List/index.js index b8789a9b10e3ce..6435a92475c14f 100644 --- a/packages/mui-material/src/List/index.js +++ b/packages/mui-material/src/List/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './List'; export { default as listClasses } from './listClasses'; diff --git a/packages/mui-material/src/ListItem/index.js b/packages/mui-material/src/ListItem/index.js index 911c835b6b5887..90fc1a201efd55 100644 --- a/packages/mui-material/src/ListItem/index.js +++ b/packages/mui-material/src/ListItem/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItem'; export { default as listItemClasses } from './listItemClasses'; diff --git a/packages/mui-material/src/ListItemAvatar/index.js b/packages/mui-material/src/ListItemAvatar/index.js index 7193ec97998512..767e616b6cf072 100644 --- a/packages/mui-material/src/ListItemAvatar/index.js +++ b/packages/mui-material/src/ListItemAvatar/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemAvatar'; export { default as listItemAvatarClasses } from './listItemAvatarClasses'; diff --git a/packages/mui-material/src/ListItemButton/index.js b/packages/mui-material/src/ListItemButton/index.js index 5af1d8f49e1c43..feb9791f4194cc 100644 --- a/packages/mui-material/src/ListItemButton/index.js +++ b/packages/mui-material/src/ListItemButton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemButton'; export { default as listItemButtonClasses } from './listItemButtonClasses'; diff --git a/packages/mui-material/src/ListItemIcon/index.js b/packages/mui-material/src/ListItemIcon/index.js index 62c8390c58ff7c..04bfa6c394a0f9 100644 --- a/packages/mui-material/src/ListItemIcon/index.js +++ b/packages/mui-material/src/ListItemIcon/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemIcon'; export { default as listItemIconClasses } from './listItemIconClasses'; diff --git a/packages/mui-material/src/ListItemSecondaryAction/index.js b/packages/mui-material/src/ListItemSecondaryAction/index.js index 97f6c675e650e7..2c4dd3899448ba 100644 --- a/packages/mui-material/src/ListItemSecondaryAction/index.js +++ b/packages/mui-material/src/ListItemSecondaryAction/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemSecondaryAction'; export { default as listItemSecondaryActionClasses } from './listItemSecondaryActionClasses'; diff --git a/packages/mui-material/src/ListItemText/index.js b/packages/mui-material/src/ListItemText/index.js index f64e13990f8777..2d6364f6b0a84c 100644 --- a/packages/mui-material/src/ListItemText/index.js +++ b/packages/mui-material/src/ListItemText/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListItemText'; export { default as listItemTextClasses } from './listItemTextClasses'; diff --git a/packages/mui-material/src/ListSubheader/index.js b/packages/mui-material/src/ListSubheader/index.js index 4f23484d86d1c6..efc177069c73ee 100644 --- a/packages/mui-material/src/ListSubheader/index.js +++ b/packages/mui-material/src/ListSubheader/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ListSubheader'; export { default as listSubheaderClasses } from './listSubheaderClasses'; diff --git a/packages/mui-material/src/Menu/index.js b/packages/mui-material/src/Menu/index.js index 2d9ed62e36c32c..036a988742c854 100644 --- a/packages/mui-material/src/Menu/index.js +++ b/packages/mui-material/src/Menu/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Menu'; export { default as menuClasses } from './menuClasses'; diff --git a/packages/mui-material/src/MenuItem/index.js b/packages/mui-material/src/MenuItem/index.js index a53c62cb82c8fe..ec789a4b43b2a9 100644 --- a/packages/mui-material/src/MenuItem/index.js +++ b/packages/mui-material/src/MenuItem/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './MenuItem'; export * from './menuItemClasses'; diff --git a/packages/mui-material/src/MenuList/index.js b/packages/mui-material/src/MenuList/index.js index 87fbe8b70a5454..f6fe3944910fb0 100644 --- a/packages/mui-material/src/MenuList/index.js +++ b/packages/mui-material/src/MenuList/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './MenuList'; diff --git a/packages/mui-material/src/MobileStepper/index.js b/packages/mui-material/src/MobileStepper/index.js index c157b25d88b40a..ef2f34beedbca9 100644 --- a/packages/mui-material/src/MobileStepper/index.js +++ b/packages/mui-material/src/MobileStepper/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './MobileStepper'; export { default as mobileStepperClasses } from './mobileStepperClasses'; diff --git a/packages/mui-material/src/Modal/index.js b/packages/mui-material/src/Modal/index.js index 44d6b940d2800e..e15563824d6518 100644 --- a/packages/mui-material/src/Modal/index.js +++ b/packages/mui-material/src/Modal/index.js @@ -1,4 +1,3 @@ -'use client'; export { ModalManager } from '@mui/base/unstable_useModal'; export { default } from './Modal'; diff --git a/packages/mui-material/src/NativeSelect/index.js b/packages/mui-material/src/NativeSelect/index.js index 03010668d0a539..e5e3f3dd584450 100644 --- a/packages/mui-material/src/NativeSelect/index.js +++ b/packages/mui-material/src/NativeSelect/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './NativeSelect'; export { default as nativeSelectClasses } from './nativeSelectClasses'; diff --git a/packages/mui-material/src/OutlinedInput/index.js b/packages/mui-material/src/OutlinedInput/index.js index ba19d9b1b14008..4877ca68a9f8f5 100644 --- a/packages/mui-material/src/OutlinedInput/index.js +++ b/packages/mui-material/src/OutlinedInput/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './OutlinedInput'; export { default as outlinedInputClasses } from './outlinedInputClasses'; diff --git a/packages/mui-material/src/Pagination/index.js b/packages/mui-material/src/Pagination/index.js index 90f89cbe209217..979e9b058c6d34 100644 --- a/packages/mui-material/src/Pagination/index.js +++ b/packages/mui-material/src/Pagination/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Pagination'; export { default as paginationClasses } from './paginationClasses'; diff --git a/packages/mui-material/src/PaginationItem/index.js b/packages/mui-material/src/PaginationItem/index.js index 6e723f770cb0da..8cc1e9ecdcc739 100644 --- a/packages/mui-material/src/PaginationItem/index.js +++ b/packages/mui-material/src/PaginationItem/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './PaginationItem'; export { default as paginationItemClasses } from './paginationItemClasses'; diff --git a/packages/mui-material/src/Paper/index.js b/packages/mui-material/src/Paper/index.js index dd3c6653b1019c..b9f5f7bf7d77a8 100644 --- a/packages/mui-material/src/Paper/index.js +++ b/packages/mui-material/src/Paper/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Paper'; export { default as paperClasses } from './paperClasses'; diff --git a/packages/mui-material/src/Popover/index.js b/packages/mui-material/src/Popover/index.js index af8780df14f51e..bf8f15fc74c066 100644 --- a/packages/mui-material/src/Popover/index.js +++ b/packages/mui-material/src/Popover/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Popover'; export * from './Popover'; diff --git a/packages/mui-material/src/Popper/index.js b/packages/mui-material/src/Popper/index.js index 419f166db6fc01..30e5f42e8efc86 100644 --- a/packages/mui-material/src/Popper/index.js +++ b/packages/mui-material/src/Popper/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Popper'; diff --git a/packages/mui-material/src/Radio/index.js b/packages/mui-material/src/Radio/index.js index eeabd2f3fa0973..659d29e9fd37fb 100644 --- a/packages/mui-material/src/Radio/index.js +++ b/packages/mui-material/src/Radio/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Radio'; export { default as radioClasses } from './radioClasses'; diff --git a/packages/mui-material/src/RadioGroup/index.js b/packages/mui-material/src/RadioGroup/index.js index 9db6dab53515ea..ad2099433dfb76 100644 --- a/packages/mui-material/src/RadioGroup/index.js +++ b/packages/mui-material/src/RadioGroup/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './RadioGroup'; export { default as useRadioGroup } from './useRadioGroup'; diff --git a/packages/mui-material/src/ScopedCssBaseline/index.js b/packages/mui-material/src/ScopedCssBaseline/index.js index add0e05745141e..ab7ca6ccdf4c5b 100644 --- a/packages/mui-material/src/ScopedCssBaseline/index.js +++ b/packages/mui-material/src/ScopedCssBaseline/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ScopedCssBaseline'; export { default as scopedCssBaselineClasses } from './scopedCssBaselineClasses'; diff --git a/packages/mui-material/src/Select/index.js b/packages/mui-material/src/Select/index.js index 9c160bf8a57d7f..59eafa5d813fe0 100644 --- a/packages/mui-material/src/Select/index.js +++ b/packages/mui-material/src/Select/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Select'; export { default as selectClasses } from './selectClasses'; diff --git a/packages/mui-material/src/Skeleton/index.js b/packages/mui-material/src/Skeleton/index.js index 2d8d38e0c37382..ba349955e757a7 100644 --- a/packages/mui-material/src/Skeleton/index.js +++ b/packages/mui-material/src/Skeleton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Skeleton'; export * from './skeletonClasses'; diff --git a/packages/mui-material/src/Slide/index.js b/packages/mui-material/src/Slide/index.js index 1e82e336ebd002..7a116646dc53b2 100644 --- a/packages/mui-material/src/Slide/index.js +++ b/packages/mui-material/src/Slide/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Slide'; diff --git a/packages/mui-material/src/Slider/index.js b/packages/mui-material/src/Slider/index.js index 4e20c2e2b8a724..ac3427028230ed 100644 --- a/packages/mui-material/src/Slider/index.js +++ b/packages/mui-material/src/Slider/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Slider'; export * from './Slider'; diff --git a/packages/mui-material/src/Snackbar/index.js b/packages/mui-material/src/Snackbar/index.js index c21dbfa25ec91d..048c654862c26b 100644 --- a/packages/mui-material/src/Snackbar/index.js +++ b/packages/mui-material/src/Snackbar/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Snackbar'; export { default as snackbarClasses } from './snackbarClasses'; diff --git a/packages/mui-material/src/SnackbarContent/index.js b/packages/mui-material/src/SnackbarContent/index.js index bdea04e7db6591..44f55061a70824 100644 --- a/packages/mui-material/src/SnackbarContent/index.js +++ b/packages/mui-material/src/SnackbarContent/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './SnackbarContent'; export { default as snackbarContentClasses } from './snackbarContentClasses'; diff --git a/packages/mui-material/src/SpeedDial/index.js b/packages/mui-material/src/SpeedDial/index.js index e5e9897eb921e1..22eeb5a48f0852 100644 --- a/packages/mui-material/src/SpeedDial/index.js +++ b/packages/mui-material/src/SpeedDial/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './SpeedDial'; export { default as speedDialClasses } from './speedDialClasses'; diff --git a/packages/mui-material/src/SpeedDialAction/index.js b/packages/mui-material/src/SpeedDialAction/index.js index 06ea3a1f587594..6a6d8319ff1784 100644 --- a/packages/mui-material/src/SpeedDialAction/index.js +++ b/packages/mui-material/src/SpeedDialAction/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './SpeedDialAction'; export { default as speedDialActionClasses } from './speedDialActionClasses'; diff --git a/packages/mui-material/src/SpeedDialIcon/index.js b/packages/mui-material/src/SpeedDialIcon/index.js index 79182b4179f4e5..19c450e2c69450 100644 --- a/packages/mui-material/src/SpeedDialIcon/index.js +++ b/packages/mui-material/src/SpeedDialIcon/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './SpeedDialIcon'; export { default as speedDialIconClasses } from './speedDialIconClasses'; diff --git a/packages/mui-material/src/Stack/index.js b/packages/mui-material/src/Stack/index.js index bf039ea305c901..2eb8645cc51ca0 100644 --- a/packages/mui-material/src/Stack/index.js +++ b/packages/mui-material/src/Stack/index.js @@ -1,3 +1,2 @@ -'use client'; export { default } from './Stack'; export { default as stackClasses } from './stackClasses'; diff --git a/packages/mui-material/src/Step/index.js b/packages/mui-material/src/Step/index.js index 1255fcc2added7..5c8dc441973e51 100644 --- a/packages/mui-material/src/Step/index.js +++ b/packages/mui-material/src/Step/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Step'; export { default as stepClasses } from './stepClasses'; diff --git a/packages/mui-material/src/StepButton/index.js b/packages/mui-material/src/StepButton/index.js index 388011bdf53b4f..5a0c1d194a0505 100644 --- a/packages/mui-material/src/StepButton/index.js +++ b/packages/mui-material/src/StepButton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepButton'; export { default as stepButtonClasses } from './stepButtonClasses'; diff --git a/packages/mui-material/src/StepConnector/index.js b/packages/mui-material/src/StepConnector/index.js index 492c8bfee6e8fb..286d2f3240c0de 100644 --- a/packages/mui-material/src/StepConnector/index.js +++ b/packages/mui-material/src/StepConnector/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepConnector'; export { default as stepConnectorClasses } from './stepConnectorClasses'; diff --git a/packages/mui-material/src/StepContent/index.js b/packages/mui-material/src/StepContent/index.js index 3b38c1adea20c9..d0fb5c7da6b77d 100644 --- a/packages/mui-material/src/StepContent/index.js +++ b/packages/mui-material/src/StepContent/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepContent'; export { default as stepContentClasses } from './stepContentClasses'; diff --git a/packages/mui-material/src/StepIcon/index.js b/packages/mui-material/src/StepIcon/index.js index bd9afa42a4736a..555e6cf418581d 100644 --- a/packages/mui-material/src/StepIcon/index.js +++ b/packages/mui-material/src/StepIcon/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepIcon'; export { default as stepIconClasses } from './stepIconClasses'; diff --git a/packages/mui-material/src/StepLabel/index.js b/packages/mui-material/src/StepLabel/index.js index 519623052a9be3..b60fad9c328271 100644 --- a/packages/mui-material/src/StepLabel/index.js +++ b/packages/mui-material/src/StepLabel/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './StepLabel'; export { default as stepLabelClasses } from './stepLabelClasses'; diff --git a/packages/mui-material/src/Stepper/index.js b/packages/mui-material/src/Stepper/index.js index e3075b49cf6af1..550f0b648ad7e0 100644 --- a/packages/mui-material/src/Stepper/index.js +++ b/packages/mui-material/src/Stepper/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Stepper'; export { default as stepperClasses } from './stepperClasses'; diff --git a/packages/mui-material/src/SvgIcon/index.js b/packages/mui-material/src/SvgIcon/index.js index 54246af9b83156..4efcade7020cce 100644 --- a/packages/mui-material/src/SvgIcon/index.js +++ b/packages/mui-material/src/SvgIcon/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './SvgIcon'; export { default as svgIconClasses } from './svgIconClasses'; diff --git a/packages/mui-material/src/SwipeableDrawer/index.js b/packages/mui-material/src/SwipeableDrawer/index.js index 7cae5e6bfc1147..56a2ccfdcb02aa 100644 --- a/packages/mui-material/src/SwipeableDrawer/index.js +++ b/packages/mui-material/src/SwipeableDrawer/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './SwipeableDrawer'; diff --git a/packages/mui-material/src/Switch/index.js b/packages/mui-material/src/Switch/index.js index 6e53e01c5c3dba..eb3612573cef80 100644 --- a/packages/mui-material/src/Switch/index.js +++ b/packages/mui-material/src/Switch/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Switch'; export { default as switchClasses } from './switchClasses'; diff --git a/packages/mui-material/src/Tab/index.js b/packages/mui-material/src/Tab/index.js index 29213284d8cbd8..7c828ba9dd2757 100644 --- a/packages/mui-material/src/Tab/index.js +++ b/packages/mui-material/src/Tab/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tab'; export { default as tabClasses } from './tabClasses'; diff --git a/packages/mui-material/src/TabScrollButton/index.js b/packages/mui-material/src/TabScrollButton/index.js index 15aa330441752b..6c84cb4dca3377 100644 --- a/packages/mui-material/src/TabScrollButton/index.js +++ b/packages/mui-material/src/TabScrollButton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TabScrollButton'; export { default as tabScrollButtonClasses } from './tabScrollButtonClasses'; diff --git a/packages/mui-material/src/Table/index.js b/packages/mui-material/src/Table/index.js index 49ca62cf115ca1..dea2be8d78f2a0 100644 --- a/packages/mui-material/src/Table/index.js +++ b/packages/mui-material/src/Table/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Table'; export { default as tableClasses } from './tableClasses'; diff --git a/packages/mui-material/src/TableBody/index.js b/packages/mui-material/src/TableBody/index.js index 1c2fb035dfd798..f9d4adef78fbd2 100644 --- a/packages/mui-material/src/TableBody/index.js +++ b/packages/mui-material/src/TableBody/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableBody'; export { default as tableBodyClasses } from './tableBodyClasses'; diff --git a/packages/mui-material/src/TableCell/index.js b/packages/mui-material/src/TableCell/index.js index 42be81da5e1df2..d02d3290bf6dab 100644 --- a/packages/mui-material/src/TableCell/index.js +++ b/packages/mui-material/src/TableCell/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableCell'; export { default as tableCellClasses } from './tableCellClasses'; diff --git a/packages/mui-material/src/TableContainer/index.js b/packages/mui-material/src/TableContainer/index.js index c3fc026d92a2f4..094fb1fd2e1fb4 100644 --- a/packages/mui-material/src/TableContainer/index.js +++ b/packages/mui-material/src/TableContainer/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableContainer'; export { default as tableContainerClasses } from './tableContainerClasses'; diff --git a/packages/mui-material/src/TableFooter/index.js b/packages/mui-material/src/TableFooter/index.js index 886cce9e96d4c6..4d3199f1bb616d 100644 --- a/packages/mui-material/src/TableFooter/index.js +++ b/packages/mui-material/src/TableFooter/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableFooter'; export { default as tableFooterClasses } from './tableFooterClasses'; diff --git a/packages/mui-material/src/TableHead/index.js b/packages/mui-material/src/TableHead/index.js index 12e83aab59511d..c7622e8ab2424f 100644 --- a/packages/mui-material/src/TableHead/index.js +++ b/packages/mui-material/src/TableHead/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableHead'; export { default as tableHeadClasses } from './tableHeadClasses'; diff --git a/packages/mui-material/src/TablePagination/index.js b/packages/mui-material/src/TablePagination/index.js index 12c25d2f980416..a331f1abcf6e48 100644 --- a/packages/mui-material/src/TablePagination/index.js +++ b/packages/mui-material/src/TablePagination/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TablePagination'; export { default as tablePaginationClasses } from './tablePaginationClasses'; diff --git a/packages/mui-material/src/TableRow/index.js b/packages/mui-material/src/TableRow/index.js index b85aba3523f66b..78fa3b42e84a99 100644 --- a/packages/mui-material/src/TableRow/index.js +++ b/packages/mui-material/src/TableRow/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableRow'; export { default as tableRowClasses } from './tableRowClasses'; diff --git a/packages/mui-material/src/TableSortLabel/index.js b/packages/mui-material/src/TableSortLabel/index.js index aac808daf1abb7..b32dbea51fca5c 100644 --- a/packages/mui-material/src/TableSortLabel/index.js +++ b/packages/mui-material/src/TableSortLabel/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TableSortLabel'; export { default as tableSortLabelClasses } from './tableSortLabelClasses'; diff --git a/packages/mui-material/src/Tabs/index.js b/packages/mui-material/src/Tabs/index.js index e026a0ff9036ed..c0e4122744acdb 100644 --- a/packages/mui-material/src/Tabs/index.js +++ b/packages/mui-material/src/Tabs/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tabs'; export { default as tabsClasses } from './tabsClasses'; diff --git a/packages/mui-material/src/TextField/index.js b/packages/mui-material/src/TextField/index.js index 916789e3d47bdc..aa2c5bc42a3d17 100644 --- a/packages/mui-material/src/TextField/index.js +++ b/packages/mui-material/src/TextField/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './TextField'; export { default as textFieldClasses } from './textFieldClasses'; diff --git a/packages/mui-material/src/ToggleButton/index.js b/packages/mui-material/src/ToggleButton/index.js index 131f48248c31db..41bb0536de4556 100644 --- a/packages/mui-material/src/ToggleButton/index.js +++ b/packages/mui-material/src/ToggleButton/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ToggleButton'; export { default as toggleButtonClasses } from './toggleButtonClasses'; diff --git a/packages/mui-material/src/ToggleButtonGroup/index.js b/packages/mui-material/src/ToggleButtonGroup/index.js index 08c143fe70e852..6d4a88fa3e99be 100644 --- a/packages/mui-material/src/ToggleButtonGroup/index.js +++ b/packages/mui-material/src/ToggleButtonGroup/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './ToggleButtonGroup'; export { default as toggleButtonGroupClasses } from './toggleButtonGroupClasses'; diff --git a/packages/mui-material/src/Tooltip/index.js b/packages/mui-material/src/Tooltip/index.js index 99ce38771452a1..41217639d8cc24 100644 --- a/packages/mui-material/src/Tooltip/index.js +++ b/packages/mui-material/src/Tooltip/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Tooltip'; export { default as tooltipClasses } from './tooltipClasses'; diff --git a/packages/mui-material/src/Typography/index.js b/packages/mui-material/src/Typography/index.js index ac1d28ee5ea00d..8c0aa8a325423f 100644 --- a/packages/mui-material/src/Typography/index.js +++ b/packages/mui-material/src/Typography/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Typography'; export { default as typographyClasses } from './typographyClasses'; diff --git a/packages/mui-material/src/Unstable_Grid2/index.ts b/packages/mui-material/src/Unstable_Grid2/index.ts index ca358d2c60797f..163e527be89b0d 100644 --- a/packages/mui-material/src/Unstable_Grid2/index.ts +++ b/packages/mui-material/src/Unstable_Grid2/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Grid2'; export * from './Grid2Props'; export { default as grid2Classes } from './grid2Classes'; diff --git a/packages/mui-material/src/Zoom/index.js b/packages/mui-material/src/Zoom/index.js index 39af66639e7e0e..5a76ecbfe91cdd 100644 --- a/packages/mui-material/src/Zoom/index.js +++ b/packages/mui-material/src/Zoom/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './Zoom'; diff --git a/packages/mui-material/src/styles/index.d.ts b/packages/mui-material/src/styles/index.d.ts index 234aed07d592ce..3a0bcb9b03b705 100644 --- a/packages/mui-material/src/styles/index.d.ts +++ b/packages/mui-material/src/styles/index.d.ts @@ -82,7 +82,11 @@ export { ComponentsProps, ComponentsPropsList } from './props'; export { ComponentsVariants } from './variants'; export { ComponentsOverrides, ComponentNameToClassKey } from './overrides'; export { Components } from './components'; -export { getUnit as unstable_getUnit, toUnitless as unstable_toUnitless } from './cssUtils'; +export { + getUnit as unstable_getUnit, + toUnitless as unstable_toUnitless, + convertLength as unstable_convertLength, +} from './cssUtils'; export type ClassNameMap = Record; @@ -97,7 +101,11 @@ export { default as makeStyles } from './makeStyles'; export { default as withStyles } from './withStyles'; export { default as withTheme } from './withTheme'; -export * from './CssVarsProvider'; +export { + useColorScheme, + getInitColorSchemeScript, + Experimental_CssVarsProvider, +} from './CssVarsProvider'; export { default as experimental_extendTheme } from './experimental_extendTheme'; export type { diff --git a/packages/mui-material/src/styles/index.js b/packages/mui-material/src/styles/index.js index 42e3a789b6c13c..f58b7132c097ca 100644 --- a/packages/mui-material/src/styles/index.js +++ b/packages/mui-material/src/styles/index.js @@ -1,4 +1,3 @@ -'use client'; import MuiError from '@mui/internal-babel-macros/MuiError.macro'; export { default as THEME_ID } from './identifier'; @@ -29,7 +28,11 @@ export function experimental_sx() { export { default as createTheme, createMuiTheme } from './createTheme'; export { default as unstable_createMuiStrictModeTheme } from './createMuiStrictModeTheme'; export { default as createStyles } from './createStyles'; -export { getUnit as unstable_getUnit, toUnitless as unstable_toUnitless } from './cssUtils'; +export { + getUnit as unstable_getUnit, + toUnitless as unstable_toUnitless, + convertLength as unstable_convertLength, +} from './cssUtils'; export { default as responsiveFontSizes } from './responsiveFontSizes'; export { duration, easing } from './createTransitions'; export { default as useTheme } from './useTheme'; @@ -44,7 +47,11 @@ export { default as makeStyles } from './makeStyles'; export { default as withStyles } from './withStyles'; export { default as withTheme } from './withTheme'; -export * from './CssVarsProvider'; +export { + useColorScheme, + getInitColorSchemeScript, + Experimental_CssVarsProvider, +} from './CssVarsProvider'; export { default as experimental_extendTheme } from './experimental_extendTheme'; export { default as getOverlayAlpha } from './getOverlayAlpha'; export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar'; diff --git a/packages/mui-material/src/useAutocomplete/index.js b/packages/mui-material/src/useAutocomplete/index.js index fa72a071a5a55b..a6c05b480618e9 100644 --- a/packages/mui-material/src/useAutocomplete/index.js +++ b/packages/mui-material/src/useAutocomplete/index.js @@ -1,2 +1 @@ -'use client'; export { default, createFilterOptions } from './useAutocomplete'; diff --git a/packages/mui-material/src/useAutocomplete/useAutocomplete.js b/packages/mui-material/src/useAutocomplete/useAutocomplete.js index a8f55d5c818452..6091303d93a923 100644 --- a/packages/mui-material/src/useAutocomplete/useAutocomplete.js +++ b/packages/mui-material/src/useAutocomplete/useAutocomplete.js @@ -1,3 +1,2 @@ -'use client'; export { useAutocomplete as default } from '@mui/base/useAutocomplete'; export * from '@mui/base/useAutocomplete'; diff --git a/packages/mui-material/src/usePagination/index.js b/packages/mui-material/src/usePagination/index.js index 9e1df34da8bec1..0cfab44452eba0 100644 --- a/packages/mui-material/src/usePagination/index.js +++ b/packages/mui-material/src/usePagination/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './usePagination'; diff --git a/packages/mui-material/src/useScrollTrigger/index.js b/packages/mui-material/src/useScrollTrigger/index.js index 44f958ca6e2a14..e996f70c773ee6 100644 --- a/packages/mui-material/src/useScrollTrigger/index.js +++ b/packages/mui-material/src/useScrollTrigger/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './useScrollTrigger'; diff --git a/packages/mui-material/src/useTouchRipple/index.ts b/packages/mui-material/src/useTouchRipple/index.ts index 28dfd75c5e9136..31e422f495fd10 100644 --- a/packages/mui-material/src/useTouchRipple/index.ts +++ b/packages/mui-material/src/useTouchRipple/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './useTouchRipple'; diff --git a/packages/mui-material/src/utils/index.js b/packages/mui-material/src/utils/index.js index 415505ff745dee..d2be8368d1839e 100644 --- a/packages/mui-material/src/utils/index.js +++ b/packages/mui-material/src/utils/index.js @@ -1,4 +1,3 @@ -'use client'; import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/ClassNameGenerator'; export { default as capitalize } from './capitalize'; diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index ca0d18f414dc61..2dd681385bbc0e 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "prebuild": "rimraf build", "release": "pnpm build && pnpm publish", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-private-theming/**/*.test.{js,ts,tsx}'", diff --git a/packages/mui-styled-engine-sc/package.json b/packages/mui-styled-engine-sc/package.json index 1bb4803094fda9..ff65077f5493c4 100644 --- a/packages/mui-styled-engine-sc/package.json +++ b/packages/mui-styled-engine-sc/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "prebuild": "rimraf build", "release": "pnpm build && pnpm publish", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styled-engine-sc/**/*.test.{js,ts,tsx}'", diff --git a/packages/mui-styled-engine/package.json b/packages/mui-styled-engine/package.json index 1a2011c08ee988..a2a912d92b0021 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "prebuild": "rimraf build", "release": "pnpm build && pnpm publish", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styled-engine/**/*.test.{js,ts,tsx}'", diff --git a/packages/mui-styled-engine/src/GlobalStyles/index.js b/packages/mui-styled-engine/src/GlobalStyles/index.js index 275d047f4e9eb3..48e20189092434 100644 --- a/packages/mui-styled-engine/src/GlobalStyles/index.js +++ b/packages/mui-styled-engine/src/GlobalStyles/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './GlobalStyles'; diff --git a/packages/mui-styled-engine/src/StyledEngineProvider/index.js b/packages/mui-styled-engine/src/StyledEngineProvider/index.js index 6d2191b13941a1..30cd6986a545fa 100644 --- a/packages/mui-styled-engine/src/StyledEngineProvider/index.js +++ b/packages/mui-styled-engine/src/StyledEngineProvider/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './StyledEngineProvider'; diff --git a/packages/mui-styled-engine/src/index.js b/packages/mui-styled-engine/src/index.js index c3cdee4cac8b34..2eb9a86b75674d 100644 --- a/packages/mui-styled-engine/src/index.js +++ b/packages/mui-styled-engine/src/index.js @@ -1,4 +1,3 @@ -'use client'; /* eslint-disable no-underscore-dangle */ import emStyled from '@emotion/styled'; diff --git a/packages/mui-styles/package.json b/packages/mui-styles/package.json index 536f10b7f061b5..419f4aed159c98 100644 --- a/packages/mui-styles/package.json +++ b/packages/mui-styles/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "prebuild": "rimraf build", "release": "pnpm build && pnpm publish", "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/mui-styles/**/*.test.{js,ts,tsx}'", diff --git a/packages/mui-system/package.json b/packages/mui-system/package.json index 27574e925f0c52..bb5dd49f44f481 100644 --- a/packages/mui-system/package.json +++ b/packages/mui-system/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/packages/mui-system/src/Box/index.js b/packages/mui-system/src/Box/index.js index 956a444c75c938..fc66543f28f643 100644 --- a/packages/mui-system/src/Box/index.js +++ b/packages/mui-system/src/Box/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Box'; export { default as boxClasses } from './boxClasses'; diff --git a/packages/mui-system/src/Container/index.js b/packages/mui-system/src/Container/index.js index 0a922c1c8dee82..be7c5c912f5943 100644 --- a/packages/mui-system/src/Container/index.js +++ b/packages/mui-system/src/Container/index.js @@ -1,4 +1,3 @@ -'use client'; export { default } from './Container'; export { default as containerClasses } from './containerClasses'; diff --git a/packages/mui-system/src/GlobalStyles/index.ts b/packages/mui-system/src/GlobalStyles/index.ts index d54f8337f6e723..a815f5c4a572b2 100644 --- a/packages/mui-system/src/GlobalStyles/index.ts +++ b/packages/mui-system/src/GlobalStyles/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './GlobalStyles'; export * from './GlobalStyles'; diff --git a/packages/mui-system/src/Stack/index.ts b/packages/mui-system/src/Stack/index.ts index 78c63b4339f375..3e02c9de01261b 100644 --- a/packages/mui-system/src/Stack/index.ts +++ b/packages/mui-system/src/Stack/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Stack'; export { default as createStack } from './createStack'; export * from './StackProps'; diff --git a/packages/mui-system/src/ThemeProvider/index.js b/packages/mui-system/src/ThemeProvider/index.js index 05eaa8875f6edb..ae3e7b91b60666 100644 --- a/packages/mui-system/src/ThemeProvider/index.js +++ b/packages/mui-system/src/ThemeProvider/index.js @@ -1,2 +1 @@ -'use client'; export { default } from './ThemeProvider'; diff --git a/packages/mui-system/src/Unstable_Grid/index.ts b/packages/mui-system/src/Unstable_Grid/index.ts index 9b2e8e91b570af..96a55fa381ed2f 100644 --- a/packages/mui-system/src/Unstable_Grid/index.ts +++ b/packages/mui-system/src/Unstable_Grid/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './Grid'; export { default as createGrid } from './createGrid'; export * from './GridProps'; diff --git a/packages/mui-system/src/borders/index.ts b/packages/mui-system/src/borders/index.ts index b80d6280b55565..027f427edbf17b 100644 --- a/packages/mui-system/src/borders/index.ts +++ b/packages/mui-system/src/borders/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './borders'; export * from './borders'; diff --git a/packages/mui-system/src/breakpoints/index.ts b/packages/mui-system/src/breakpoints/index.ts index d4131e5d7098e1..09e54480881496 100644 --- a/packages/mui-system/src/breakpoints/index.ts +++ b/packages/mui-system/src/breakpoints/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './breakpoints'; export * from './breakpoints'; diff --git a/packages/mui-system/src/colorManipulator/index.ts b/packages/mui-system/src/colorManipulator/index.ts index 5149f8e5219a36..c9569a046d2fc4 100644 --- a/packages/mui-system/src/colorManipulator/index.ts +++ b/packages/mui-system/src/colorManipulator/index.ts @@ -1,2 +1 @@ -'use client'; export * from './colorManipulator'; diff --git a/packages/mui-system/src/compose/index.ts b/packages/mui-system/src/compose/index.ts index 5903eeea33a13e..3d5783ca532442 100644 --- a/packages/mui-system/src/compose/index.ts +++ b/packages/mui-system/src/compose/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './compose'; diff --git a/packages/mui-system/src/createBox/index.ts b/packages/mui-system/src/createBox/index.ts index 93262690e07c97..0ec8ce35a676ae 100644 --- a/packages/mui-system/src/createBox/index.ts +++ b/packages/mui-system/src/createBox/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './createBox'; diff --git a/packages/mui-system/src/createStyled/index.ts b/packages/mui-system/src/createStyled/index.ts index d827d43448643e..052fe3acb9aa33 100644 --- a/packages/mui-system/src/createStyled/index.ts +++ b/packages/mui-system/src/createStyled/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './createStyled'; export * from './createStyled'; diff --git a/packages/mui-system/src/cssGrid/index.ts b/packages/mui-system/src/cssGrid/index.ts index 606a39450c07a6..7f8c35a00e5391 100644 --- a/packages/mui-system/src/cssGrid/index.ts +++ b/packages/mui-system/src/cssGrid/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './cssGrid'; export * from './cssGrid'; diff --git a/packages/mui-system/src/cssVars/index.ts b/packages/mui-system/src/cssVars/index.ts index c8a640a0a241bd..bbc39f8cae1d67 100644 --- a/packages/mui-system/src/cssVars/index.ts +++ b/packages/mui-system/src/cssVars/index.ts @@ -1,4 +1,3 @@ -'use client'; export { default } from './createCssVarsProvider'; export type { CreateCssVarsProviderResult, diff --git a/packages/mui-system/src/display/index.ts b/packages/mui-system/src/display/index.ts index c0dcbfdc15af6c..e1e226bd9d09b2 100644 --- a/packages/mui-system/src/display/index.ts +++ b/packages/mui-system/src/display/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './display'; export * from './display'; diff --git a/packages/mui-system/src/flexbox/index.ts b/packages/mui-system/src/flexbox/index.ts index 5c1c749951e820..f9de3d77b47aa8 100644 --- a/packages/mui-system/src/flexbox/index.ts +++ b/packages/mui-system/src/flexbox/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './flexbox'; export * from './flexbox'; diff --git a/packages/mui-system/src/getThemeValue/index.ts b/packages/mui-system/src/getThemeValue/index.ts index 058c6ae97c7537..a88a6ec97af548 100644 --- a/packages/mui-system/src/getThemeValue/index.ts +++ b/packages/mui-system/src/getThemeValue/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './getThemeValue'; export * from './getThemeValue'; diff --git a/packages/mui-system/src/memoize/index.ts b/packages/mui-system/src/memoize/index.ts index 66774a993cd6b0..fb7e4f9183731a 100644 --- a/packages/mui-system/src/memoize/index.ts +++ b/packages/mui-system/src/memoize/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './memoize'; diff --git a/packages/mui-system/src/merge/index.ts b/packages/mui-system/src/merge/index.ts index cb9274486a9fa1..97db223bc8188e 100644 --- a/packages/mui-system/src/merge/index.ts +++ b/packages/mui-system/src/merge/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './merge'; diff --git a/packages/mui-system/src/palette/index.ts b/packages/mui-system/src/palette/index.ts index 28fa2b57c680c3..b1ddfcfb088c68 100644 --- a/packages/mui-system/src/palette/index.ts +++ b/packages/mui-system/src/palette/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './palette'; export * from './palette'; diff --git a/packages/mui-system/src/positions/index.ts b/packages/mui-system/src/positions/index.ts index 31aa77fbee438b..a319f1ab59e1c7 100644 --- a/packages/mui-system/src/positions/index.ts +++ b/packages/mui-system/src/positions/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './positions'; export * from './positions'; diff --git a/packages/mui-system/src/propsToClassKey/index.ts b/packages/mui-system/src/propsToClassKey/index.ts index 95022b3d29683b..89e04af61e6d6a 100644 --- a/packages/mui-system/src/propsToClassKey/index.ts +++ b/packages/mui-system/src/propsToClassKey/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './propsToClassKey'; diff --git a/packages/mui-system/src/responsivePropType/index.ts b/packages/mui-system/src/responsivePropType/index.ts index ad75ae545bcf45..b51c8a4a03dfe6 100644 --- a/packages/mui-system/src/responsivePropType/index.ts +++ b/packages/mui-system/src/responsivePropType/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './responsivePropType'; diff --git a/packages/mui-system/src/shadows/index.ts b/packages/mui-system/src/shadows/index.ts index 6dd3312387e486..9eaa3ad25e7782 100644 --- a/packages/mui-system/src/shadows/index.ts +++ b/packages/mui-system/src/shadows/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './shadows'; diff --git a/packages/mui-system/src/sizing/index.ts b/packages/mui-system/src/sizing/index.ts index 5c30a7222568da..1aa949fb9b6f2b 100644 --- a/packages/mui-system/src/sizing/index.ts +++ b/packages/mui-system/src/sizing/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './sizing'; export * from './sizing'; diff --git a/packages/mui-system/src/spacing/index.ts b/packages/mui-system/src/spacing/index.ts index 6bad9ad89d4dd5..af6e8064da1e40 100644 --- a/packages/mui-system/src/spacing/index.ts +++ b/packages/mui-system/src/spacing/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './spacing'; export * from './spacing'; diff --git a/packages/mui-system/src/style/index.ts b/packages/mui-system/src/style/index.ts index 2e4fa57df00254..d668cfe132f72d 100644 --- a/packages/mui-system/src/style/index.ts +++ b/packages/mui-system/src/style/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './style'; export * from './style'; diff --git a/packages/mui-system/src/styled/index.ts b/packages/mui-system/src/styled/index.ts index fe2f75a1ca7742..62f3c6aec6abe7 100644 --- a/packages/mui-system/src/styled/index.ts +++ b/packages/mui-system/src/styled/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './styled'; diff --git a/packages/mui-system/src/typography/index.ts b/packages/mui-system/src/typography/index.ts index 2f6cf00668c7c7..dbc116be65439c 100644 --- a/packages/mui-system/src/typography/index.ts +++ b/packages/mui-system/src/typography/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './typography'; export * from './typography'; diff --git a/packages/mui-system/src/useTheme/index.ts b/packages/mui-system/src/useTheme/index.ts index fc788b2994365a..bbe4d936c03acd 100644 --- a/packages/mui-system/src/useTheme/index.ts +++ b/packages/mui-system/src/useTheme/index.ts @@ -1,3 +1,2 @@ -'use client'; export { default } from './useTheme'; export * from './useTheme'; diff --git a/packages/mui-system/src/useThemeProps/index.js b/packages/mui-system/src/useThemeProps/index.js index 101685f2bc816f..cac7b802d5d674 100644 --- a/packages/mui-system/src/useThemeProps/index.js +++ b/packages/mui-system/src/useThemeProps/index.js @@ -1,3 +1,2 @@ -'use client'; export { default } from './useThemeProps'; export { default as getThemeProps } from './getThemeProps'; diff --git a/packages/mui-system/src/useThemeWithoutDefault/index.ts b/packages/mui-system/src/useThemeWithoutDefault/index.ts index 7018fca5e9639a..d2ab73cea4c91b 100644 --- a/packages/mui-system/src/useThemeWithoutDefault/index.ts +++ b/packages/mui-system/src/useThemeWithoutDefault/index.ts @@ -1,2 +1 @@ -'use client'; export { default } from './useThemeWithoutDefault'; diff --git a/packages/mui-types/package.json b/packages/mui-types/package.json index b19ec8a59fc4f1..da4db5ff0c4a03 100644 --- a/packages/mui-types/package.json +++ b/packages/mui-types/package.json @@ -49,5 +49,10 @@ "@types/react": { "optional": true } + }, + "exports": { + ".": { + "types": "./index.d.ts" + } } } diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index 0d9ab28df85b84..be25e5798b5b83 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -27,10 +27,10 @@ }, "scripts": { "build": "pnpm build:modern && pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files", - "build:modern": "node ../../scripts/build.mjs modern", - "build:node": "node ../../scripts/build.mjs node", - "build:stable": "node ../../scripts/build.mjs stable", - "build:copy-files": "node ../../scripts/copyFiles.mjs", + "build:modern": "node ../../scripts/build.mjs modern --exportFormat exports", + "build:node": "node ../../scripts/build.mjs node --exportFormat exports", + "build:stable": "node ../../scripts/build.mjs stable --exportFormat exports", + "build:copy-files": "node ../../scripts/copyFiles.mjs --exportFormat exports", "build:types": "node ../../scripts/buildTypes.mjs", "prebuild": "rimraf build tsconfig.build.tsbuildinfo", "release": "pnpm build && pnpm publish", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a7e11acc5e854..62b30919692cd3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -45,6 +45,9 @@ importers: '@slack/bolt': specifier: ^3.17.1 version: 3.17.1 + babel-plugin-add-import-extension: + specifier: ^1.6.0 + version: 1.6.0(@babel/core@7.24.4) execa: specifier: ^8.0.1 version: 8.0.1 @@ -396,7 +399,7 @@ importers: version: link:../local-ui-lib next: specifier: latest - version: 14.2.1(@babel/core@7.24.4)(@playwright/test@1.43.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0)(react@18.2.0) + version: 14.2.2(@babel/core@7.24.4)(@playwright/test@1.43.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0)(react@18.2.0) react: specifier: ^18.2.0 version: 18.2.0 @@ -5942,8 +5945,8 @@ packages: /@next/env@13.5.1: resolution: {integrity: sha512-CIMWiOTyflFn/GFx33iYXkgLSQsMQZV4jB91qaj/TfxGaGOXxn8C1j72TaUSPIyN7ziS/AYG46kGmnvuk1oOpg==} - /@next/env@14.2.1: - resolution: {integrity: sha512-qsHJle3GU3CmVx7pUoXcghX4sRN+vINkbLdH611T8ZlsP//grzqVW87BSUgOZeSAD4q7ZdZicdwNe/20U2janA==} + /@next/env@14.2.2: + resolution: {integrity: sha512-sk72qRfM1Q90XZWYRoJKu/UWlTgihrASiYw/scb15u+tyzcze3bOuJ/UV6TBOQEeUaxOkRqGeuGUdiiuxc5oqw==} dev: false /@next/eslint-plugin-next@14.2.1: @@ -5960,8 +5963,8 @@ packages: requiresBuild: true optional: true - /@next/swc-darwin-arm64@14.2.1: - resolution: {integrity: sha512-kGjnjcIJehEcd3rT/3NAATJQndAEELk0J9GmGMXHSC75TMnvpOhONcjNHbjtcWE5HUQnIHy5JVkatrnYm1QhVw==} + /@next/swc-darwin-arm64@14.2.2: + resolution: {integrity: sha512-3iPgMhzbalizGwHNFUcGnDhFPSgVBHQ8aqSTAMxB5BvJG0oYrDf1WOJZlbXBgunOEj/8KMVbejEur/FpvFsgFQ==} engines: {node: '>= 10'} cpu: [arm64] os: [darwin] @@ -5977,8 +5980,8 @@ packages: requiresBuild: true optional: true - /@next/swc-darwin-x64@14.2.1: - resolution: {integrity: sha512-dAdWndgdQi7BK2WSXrx4lae7mYcOYjbHJUhvOUnJjMNYrmYhxbbvJ2xElZpxNxdfA6zkqagIB9He2tQk+l16ew==} + /@next/swc-darwin-x64@14.2.2: + resolution: {integrity: sha512-x7Afi/jt0ZBRUZHTi49yyej4o8znfIMHO4RvThuoc0P+uli8Jd99y5GKjxoYunPKsXL09xBXEM1+OQy2xEL0Ag==} engines: {node: '>= 10'} cpu: [x64] os: [darwin] @@ -5994,8 +5997,8 @@ packages: requiresBuild: true optional: true - /@next/swc-linux-arm64-gnu@14.2.1: - resolution: {integrity: sha512-2ZctfnyFOGvTkoD6L+DtQtO3BfFz4CapoHnyLTXkOxbZkVRgg3TQBUjTD/xKrO1QWeydeo8AWfZRg8539qNKrg==} + /@next/swc-linux-arm64-gnu@14.2.2: + resolution: {integrity: sha512-zbfPtkk7L41ODMJwSp5VbmPozPmMMQrzAc0HAUomVeVIIwlDGs/UCqLJvLNDt4jpWgc21SjjyIn762lNGrMaUA==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -6011,8 +6014,8 @@ packages: requiresBuild: true optional: true - /@next/swc-linux-arm64-musl@14.2.1: - resolution: {integrity: sha512-jazZXctiaanemy4r+TPIpFP36t1mMwWCKMsmrTRVChRqE6putyAxZA4PDujx0SnfvZHosjdkx9xIq9BzBB5tWg==} + /@next/swc-linux-arm64-musl@14.2.2: + resolution: {integrity: sha512-wPbS3pI/JU16rm3XdLvvTmlsmm1nd+sBa2ohXgBZcShX4TgOjD4R+RqHKlI1cjo/jDZKXt6OxmcU0Iys0OC/yg==} engines: {node: '>= 10'} cpu: [arm64] os: [linux] @@ -6028,8 +6031,8 @@ packages: requiresBuild: true optional: true - /@next/swc-linux-x64-gnu@14.2.1: - resolution: {integrity: sha512-VjCHWCjsAzQAAo8lkBOLEIkBZFdfW+Z18qcQ056kL4KpUYc8o59JhLDCBlhg+hINQRgzQ2UPGma2AURGOH0+Qg==} + /@next/swc-linux-x64-gnu@14.2.2: + resolution: {integrity: sha512-NqWOHqqq8iC9tuHvZxjQ2tX+jWy2X9y8NX2mcB4sj2bIccuCxbIZrU/ThFPZZPauygajZuVQ6zediejQHwZHwQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -6045,8 +6048,8 @@ packages: requiresBuild: true optional: true - /@next/swc-linux-x64-musl@14.2.1: - resolution: {integrity: sha512-7HZKYKvAp4nAHiHIbY04finRqjeYvkITOGOurP1aLMexIFG/1+oCnqhGogBdc4lao/lkMW1c+AkwWSzSlLasqw==} + /@next/swc-linux-x64-musl@14.2.2: + resolution: {integrity: sha512-lGepHhwb9sGhCcU7999+iK1ZZT+6rrIoVg40MP7DZski9GIZP80wORSbt5kJzh9v2x2ev2lxC6VgwMQT0PcgTA==} engines: {node: '>= 10'} cpu: [x64] os: [linux] @@ -6062,8 +6065,8 @@ packages: requiresBuild: true optional: true - /@next/swc-win32-arm64-msvc@14.2.1: - resolution: {integrity: sha512-YGHklaJ/Cj/F0Xd8jxgj2p8po4JTCi6H7Z3Yics3xJhm9CPIqtl8erlpK1CLv+HInDqEWfXilqatF8YsLxxA2Q==} + /@next/swc-win32-arm64-msvc@14.2.2: + resolution: {integrity: sha512-TZSh/48SfcLEQ4rD25VVn2kdIgUWmMflRX3OiyPwGNXn3NiyPqhqei/BaqCYXViIQ+6QsG9R0C8LftMqy8JPMA==} engines: {node: '>= 10'} cpu: [arm64] os: [win32] @@ -6079,8 +6082,8 @@ packages: requiresBuild: true optional: true - /@next/swc-win32-ia32-msvc@14.2.1: - resolution: {integrity: sha512-o+ISKOlvU/L43ZhtAAfCjwIfcwuZstiHVXq/BDsZwGqQE0h/81td95MPHliWCnFoikzWcYqh+hz54ZB2FIT8RA==} + /@next/swc-win32-ia32-msvc@14.2.2: + resolution: {integrity: sha512-M0tBVNMEBJN2ZNQWlcekMn6pvLria7Sa2Fai5znm7CCJz4pP3lrvlSxhKdkCerk0D9E0bqx5yAo3o2Q7RrD4gA==} engines: {node: '>= 10'} cpu: [ia32] os: [win32] @@ -6096,8 +6099,8 @@ packages: requiresBuild: true optional: true - /@next/swc-win32-x64-msvc@14.2.1: - resolution: {integrity: sha512-GmRoTiLcvCLifujlisknv4zu9/C4i9r0ktsA8E51EMqJL4bD4CpO7lDYr7SrUxCR0tS4RVcrqKmCak24T0ohaw==} + /@next/swc-win32-x64-msvc@14.2.2: + resolution: {integrity: sha512-a/20E/wtTJZ3Ykv3f/8F0l7TtgQa2LWHU2oNB9bsu0VjqGuGGHmm/q6waoUNQYTVPYrrlxxaHjJcDV6aiSTt/w==} engines: {node: '>= 10'} cpu: [x64] os: [win32] @@ -9354,6 +9357,15 @@ packages: object.omit: 3.0.0 dev: false + /babel-plugin-add-import-extension@1.6.0(@babel/core@7.24.4): + resolution: {integrity: sha512-JVSQPMzNzN/S4wPRoKQ7+u8PlkV//BPUMnfWVbr63zcE+6yHdU2Mblz10Vf7qe+6Rmu4svF5jG7JxdcPi9VvKg==} + peerDependencies: + '@babel/core': ^7.24.4 + dependencies: + '@babel/core': 7.24.4 + '@babel/helper-plugin-utils': 7.24.0 + dev: false + /babel-plugin-define-var@0.1.0: resolution: {integrity: sha512-WcK43U4uz+9G35Wvdnyri4Tcg8Ux9/hSbQC4ckpfrHFQp8Cuz1BIQK5NswuGxT3T8cc3d4e55wDeSO4dViOugg==} engines: {node: '>=10'} @@ -16349,8 +16361,8 @@ packages: - '@babel/core' - babel-plugin-macros - /next@14.2.1(@babel/core@7.24.4)(@playwright/test@1.43.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-SF3TJnKdH43PMkCcErLPv+x/DY1YCklslk3ZmwaVoyUfDgHKexuKlf9sEfBQ69w+ue8jQ3msLb+hSj1T19hGag==} + /next@14.2.2(@babel/core@7.24.4)(@playwright/test@1.43.1)(babel-plugin-macros@3.1.0)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-oGwUaa2bCs47FbuxWMpOoXtBMPYpvTPgdZr3UAo+pu7Ns00z9otmYpoeV1HEiYL06AlRQQIA/ypK526KjJfaxg==} engines: {node: '>=18.17.0'} hasBin: true peerDependencies: @@ -16367,7 +16379,7 @@ packages: sass: optional: true dependencies: - '@next/env': 14.2.1 + '@next/env': 14.2.2 '@playwright/test': 1.43.1 '@swc/helpers': 0.5.5 busboy: 1.6.0 @@ -16378,15 +16390,15 @@ packages: react-dom: 18.2.0(react@18.2.0) styled-jsx: 5.1.1(@babel/core@7.24.4)(babel-plugin-macros@3.1.0)(react@18.2.0) optionalDependencies: - '@next/swc-darwin-arm64': 14.2.1 - '@next/swc-darwin-x64': 14.2.1 - '@next/swc-linux-arm64-gnu': 14.2.1 - '@next/swc-linux-arm64-musl': 14.2.1 - '@next/swc-linux-x64-gnu': 14.2.1 - '@next/swc-linux-x64-musl': 14.2.1 - '@next/swc-win32-arm64-msvc': 14.2.1 - '@next/swc-win32-ia32-msvc': 14.2.1 - '@next/swc-win32-x64-msvc': 14.2.1 + '@next/swc-darwin-arm64': 14.2.2 + '@next/swc-darwin-x64': 14.2.2 + '@next/swc-linux-arm64-gnu': 14.2.2 + '@next/swc-linux-arm64-musl': 14.2.2 + '@next/swc-linux-x64-gnu': 14.2.2 + '@next/swc-linux-x64-musl': 14.2.2 + '@next/swc-win32-arm64-msvc': 14.2.2 + '@next/swc-win32-ia32-msvc': 14.2.2 + '@next/swc-win32-x64-msvc': 14.2.2 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros diff --git a/scripts/build.mjs b/scripts/build.mjs index 3a9f594a72844e..496a7bbc176bf9 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -17,7 +17,7 @@ const validBundles = [ ]; async function run(argv) { - const { bundle, largeFiles, outDir: relativeOutDir, verbose } = argv; + const { bundle, exportFormat, largeFiles, outDir: relativeOutDir, verbose } = argv; if (validBundles.indexOf(bundle) === -1) { throw new TypeError( @@ -29,6 +29,7 @@ async function run(argv) { NODE_ENV: 'production', BABEL_ENV: bundle, MUI_BUILD_VERBOSE: verbose, + MUI_ADD_IMPORT_EXTENSIONS: exportFormat === 'exports', }; const babelConfigPath = path.resolve(getWorkspaceRoot(), 'babel.config.js'); const srcDir = path.resolve('./src'); @@ -82,6 +83,10 @@ async function run(argv) { babelArgs.push('--compact false'); } + if (exportFormat === 'exports' && bundle !== 'node') { + babelArgs.push('--out-file-extension', '.mjs'); + } + const command = ['pnpm babel', ...babelArgs].join(' '); if (verbose) { @@ -110,6 +115,12 @@ yargs(process.argv.slice(2)) description: `Valid bundles: "${validBundles.join('" | "')}"`, type: 'string', }) + .option('exportFormat', { + type: 'string', + options: ['exports', 'legacy'], + default: 'legacy', + describe: 'Set to `exports` to build the package with the `exports` field.', + }) .option('largeFiles', { type: 'boolean', default: false, diff --git a/scripts/copyFiles.mjs b/scripts/copyFiles.mjs index 6a22cb96604213..a0341de79ef847 100644 --- a/scripts/copyFiles.mjs +++ b/scripts/copyFiles.mjs @@ -1,5 +1,6 @@ /* eslint-disable no-console */ import path from 'path'; +import yargs from 'yargs'; import { createModulePackages, createPackageFile, @@ -12,7 +13,8 @@ const packagePath = process.cwd(); const buildPath = path.join(packagePath, './build'); const srcPath = path.join(packagePath, './src'); -async function addLicense(packageData) { +async function addLicense(packageData, exportFormat = 'legacy') { + const esmExtension = exportFormat === 'exports' ? 'mjs' : 'js'; const license = `/** * ${packageData.name} v${packageData.version} * @@ -23,9 +25,9 @@ async function addLicense(packageData) { `; await Promise.all( [ - './index.js', - './legacy/index.js', - './modern/index.js', + `./index.${esmExtension}`, + `./legacy/index.${esmExtension}`, + `./modern/index.${esmExtension}`, './node/index.js', './umd/material-ui.development.js', './umd/material-ui.production.min.js', @@ -43,13 +45,14 @@ async function addLicense(packageData) { ); } -async function run() { - const extraFiles = process.argv.slice(2); +async function run(argv) { + const { extraFiles, exportFormat } = argv; + try { // TypeScript await typescriptCopy({ from: srcPath, to: buildPath }); - const packageData = await createPackageFile(); + const packageData = await createPackageFile(exportFormat); await Promise.all( ['./README.md', '../../CHANGELOG.md', '../../LICENSE', ...extraFiles].map(async (file) => { @@ -58,13 +61,35 @@ async function run() { }), ); - await addLicense(packageData); + await addLicense(packageData, exportFormat); - await createModulePackages({ from: srcPath, to: buildPath }); + await createModulePackages({ from: srcPath, to: buildPath, exportFormat }); } catch (err) { console.error(err); process.exit(1); } } -run(); +yargs(process.argv.slice(2)) + .command({ + command: '$0 [extraFiles..]', + description: 'copy files', + builder: (command) => { + return command + .positional('extraFiles', { + type: 'array', + default: [], + }) + .option('exportFormat', { + type: 'string', + options: ['exports', 'legacy'], + default: 'legacy', + describe: 'Set to `exports` to build the package with the `exports` field.', + }); + }, + handler: run, + }) + .help() + .strict(true) + .version(false) + .parse(); diff --git a/scripts/copyFilesUtils.mjs b/scripts/copyFilesUtils.mjs index 40b05542614f9e..b74ce6e14e2710 100644 --- a/scripts/copyFilesUtils.mjs +++ b/scripts/copyFilesUtils.mjs @@ -32,7 +32,8 @@ export async function includeFileInBuild(file, target = path.basename(file)) { * @param {string} param0.from * @param {string} param0.to */ -export async function createModulePackages({ from, to }) { +export async function createModulePackages({ from, to, exportFormat = 'legacy' }) { + const esmExtension = exportFormat === 'exports' ? 'mjs' : 'js'; const directoryPackages = glob.sync('*/index.{js,ts,tsx}', { cwd: from }).map(path.dirname); await Promise.all( @@ -45,8 +46,8 @@ export async function createModulePackages({ from, to }) { const packageJson = { sideEffects: false, module: topLevelPathImportsAreCommonJSModules - ? path.posix.join('../esm', directoryPackage, 'index.js') - : './index.js', + ? path.posix.join('../esm', directoryPackage, `index.${esmExtension}`) + : `./index.${esmExtension}`, main: topLevelPathImportsAreCommonJSModules ? './index.js' : path.posix.join('../node', directoryPackage, 'index.js'), @@ -91,7 +92,45 @@ export async function typescriptCopy({ from, to }) { return Promise.all(cmds); } -export async function createPackageFile() { +/** + * Returns the Core exports field. + * @returns {object} + */ +function getCoreExportsField() { + const coreExportsField = {}; + + const hasIndexMjs = fse.existsSync(path.resolve(buildPath, './index.mjs')); + if (hasIndexMjs) { + // Asumes the types file and node build are set up correctly + coreExportsField['.'] = { + types: './index.d.ts', + 'mui-modern': './modern/index.mjs', + import: './index.mjs', + default: './node/index.js', + }; + } + + const hasNestedIndexFiles = glob.sync('*/index.mjs', { cwd: buildPath }).length > 0; + if (hasNestedIndexFiles) { + // Asumes the types files and node build are set up correctly + coreExportsField['./*'] = { + types: './*/index.d.ts', + 'mui-modern': './modern/*/index.mjs', + import: './*/index.mjs', + default: './node/*/index.js', + }; + } + + return coreExportsField; +} + +/** + * Creates a package.json in the build directory. + * @param {boolean} skipExportsField Whether to skip the exports field in the package.json. Only top level ESM packages are supported. + * @returns {Promise} + */ +export async function createPackageFile(exportFormat = 'legacy') { + const esmExtension = exportFormat === 'exports' ? 'mjs' : 'js'; const packageData = await fse.readFile(path.resolve(packagePath, './package.json'), 'utf8'); const { nyc, scripts, devDependencies, workspaces, ...packageDataOther } = JSON.parse(packageData); @@ -104,9 +143,9 @@ export async function createPackageFile() { main: fse.existsSync(path.resolve(buildPath, './node/index.js')) ? './node/index.js' : './index.js', - module: fse.existsSync(path.resolve(buildPath, './esm/index.js')) - ? './esm/index.js' - : './index.js', + module: fse.existsSync(path.resolve(buildPath, `./esm/index.${esmExtension}`)) + ? `./esm/index.${esmExtension}` + : `./index.${esmExtension}`, } : {}), }; @@ -116,6 +155,13 @@ export async function createPackageFile() { newPackageData.types = './index.d.ts'; } + if (exportFormat === 'exports') { + newPackageData.exports = { + ...packageDataOther.exports, + ...getCoreExportsField(), + }; + } + const targetPath = path.resolve(buildPath, './package.json'); await fse.writeFile(targetPath, JSON.stringify(newPackageData, null, 2), 'utf8'); diff --git a/scripts/sizeSnapshot/webpack.config.js b/scripts/sizeSnapshot/webpack.config.js index 92c97758bc8792..b7cc308196bb02 100644 --- a/scripts/sizeSnapshot/webpack.config.js +++ b/scripts/sizeSnapshot/webpack.config.js @@ -8,7 +8,7 @@ const workspaceRoot = path.join(__dirname, '..', '..'); async function getWebpackEntries() { const materialPackagePath = path.join(workspaceRoot, 'packages/mui-material/build'); - const materialComponents = (await glob(path.join(materialPackagePath, '([A-Z])*/index.js'))).map( + const materialComponents = (await glob(path.join(materialPackagePath, '([A-Z])*/index.mjs'))).map( (componentPath) => { const componentName = path.basename(path.dirname(componentPath)); let entryName = componentName; @@ -27,7 +27,7 @@ async function getWebpackEntries() { ); const corePackagePath = path.join(workspaceRoot, 'packages/mui-base/build'); - const coreComponents = (await glob(path.join(corePackagePath, '([A-Z])*/index.js'))).map( + const coreComponents = (await glob(path.join(corePackagePath, '([A-Z])*/index.mjs'))).map( (componentPath) => { const componentName = path.basename(path.dirname(componentPath)); let entryName = componentName; @@ -44,7 +44,7 @@ async function getWebpackEntries() { ); const labPackagePath = path.join(workspaceRoot, 'packages/mui-lab/build'); - const labComponents = (await glob(path.join(labPackagePath, '([A-Z])*/index.js'))).map( + const labComponents = (await glob(path.join(labPackagePath, '([A-Z])*/index.mjs'))).map( (componentPath) => { const componentName = path.basename(path.dirname(componentPath)); @@ -56,7 +56,7 @@ async function getWebpackEntries() { ); const joyPackagePath = path.join(workspaceRoot, 'packages/mui-joy/build'); - const joyComponents = (await glob(path.join(joyPackagePath, '([A-Z])*/index.js'))).map( + const joyComponents = (await glob(path.join(joyPackagePath, '([A-Z])*/index.mjs'))).map( (componentPath) => { const componentName = path.basename(path.dirname(componentPath)); @@ -72,73 +72,73 @@ async function getWebpackEntries() { // WARNING: Changing the name will break tracking of bundle size over time // If the name of the package changes, rename its display name in https://github.com/eps1lon/mui-contributor-dashboard/blob/main/src/pages/SizeComparison.tsx id: '@material-ui/core', - path: path.join(path.relative(workspaceRoot, materialPackagePath), 'index.js'), + path: path.join(path.relative(workspaceRoot, materialPackagePath), 'index.mjs'), }, ...materialComponents, { id: '@material-ui/lab', - path: path.join(path.relative(workspaceRoot, labPackagePath), 'index.js'), + path: path.join(path.relative(workspaceRoot, labPackagePath), 'index.mjs'), }, ...labComponents, { id: '@material-ui/styles', - path: 'packages/mui-styles/build/index.js', + path: 'packages/mui-styles/build/index.mjs', }, { id: '@material-ui/private-theming', - path: 'packages/mui-private-theming/build/index.js', + path: 'packages/mui-private-theming/build/index.mjs', }, { id: '@material-ui/system', - path: 'packages/mui-system/build/index.js', + path: 'packages/mui-system/build/index.mjs', }, { id: 'createBox', - path: 'packages/mui-system/build/createBox/index.js', + path: 'packages/mui-system/build/createBox/index.mjs', }, { id: 'createStyled', - path: 'packages/mui-system/build/createStyled/index.js', + path: 'packages/mui-system/build/createStyled/index.mjs', }, { id: '@material-ui/core/styles/createTheme', - path: 'packages/mui-material/build/styles/createTheme.js', + path: 'packages/mui-material/build/styles/createTheme.mjs', }, { id: 'colorManipulator', - path: 'packages/mui-system/build/colorManipulator/index.js', + path: 'packages/mui-system/build/colorManipulator/index.mjs', }, { id: 'useAutocomplete', - path: 'packages/mui-lab/build/useAutocomplete/index.js', + path: 'packages/mui-lab/build/useAutocomplete/index.mjs', }, { id: '@material-ui/core/useMediaQuery', - path: 'packages/mui-material/build/useMediaQuery/index.js', + path: 'packages/mui-material/build/useMediaQuery/index.mjs', }, { id: '@material-ui/core/useScrollTrigger', - path: 'packages/mui-material/build/useScrollTrigger/index.js', + path: 'packages/mui-material/build/useScrollTrigger/index.mjs', }, { id: '@material-ui/unstyled', - path: path.join(path.relative(workspaceRoot, corePackagePath), 'index.js'), + path: path.join(path.relative(workspaceRoot, corePackagePath), 'index.mjs'), }, ...coreComponents, { id: '@material-ui/utils', - path: 'packages/mui-utils/build/index.js', + path: 'packages/mui-utils/build/index.mjs', }, // TODO: Requires webpack v5 // Resolution of webpack/acorn to 7.x is blocked by nextjs (https://github.com/vercel/next.js/issues/11947) // { // id: '@material-ui/core.modern', // webpack: true, - // path: path.join(path.relative(workspaceRoot, materialPackagePath), 'modern/index.js'), + // path: path.join(path.relative(workspaceRoot, materialPackagePath), 'modern/index.mjs'), // }, { id: '@mui/joy', - path: path.join(path.relative(workspaceRoot, joyPackagePath), 'index.js'), + path: path.join(path.relative(workspaceRoot, joyPackagePath), 'index.mjs'), }, ...joyComponents, ];