@mui/material 7.0.0-beta.3 → 7.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.ts +13 -2
- package/Accordion/Accordion.js +18 -6
- package/AccordionSummary/AccordionSummary.d.ts +39 -4
- package/AccordionSummary/AccordionSummary.js +67 -16
- package/CHANGELOG.md +84 -0
- package/InputBase/InputBase.js +2 -2
- package/ListItemText/ListItemText.d.ts +10 -0
- package/ListItemText/ListItemText.js +14 -5
- package/Select/SelectInput.js +2 -2
- package/SpeedDial/SpeedDial.d.ts +10 -0
- package/SpeedDial/SpeedDial.js +40 -11
- package/SpeedDialAction/SpeedDialAction.js +1 -1
- package/StepLabel/StepLabel.d.ts +19 -1
- package/StepLabel/StepLabel.js +14 -5
- package/Switch/Switch.d.ts +62 -1
- package/Switch/Switch.js +71 -9
- package/TextField/TextField.d.ts +30 -0
- package/TextField/TextField.js +22 -11
- package/TextareaAutosize/TextareaAutosize.js +25 -14
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +1 -1
- package/Typography/Typography.d.ts +3 -3
- package/esm/Accordion/Accordion.d.ts +13 -2
- package/esm/Accordion/Accordion.js +18 -6
- package/esm/AccordionSummary/AccordionSummary.d.ts +39 -4
- package/esm/AccordionSummary/AccordionSummary.js +67 -16
- package/esm/InputBase/InputBase.js +2 -2
- package/esm/ListItemText/ListItemText.d.ts +10 -0
- package/esm/ListItemText/ListItemText.js +14 -5
- package/esm/Select/SelectInput.js +2 -2
- package/esm/SpeedDial/SpeedDial.d.ts +10 -0
- package/esm/SpeedDial/SpeedDial.js +40 -11
- package/esm/SpeedDialAction/SpeedDialAction.js +1 -1
- package/esm/StepLabel/StepLabel.d.ts +19 -1
- package/esm/StepLabel/StepLabel.js +14 -5
- package/esm/Switch/Switch.d.ts +62 -1
- package/esm/Switch/Switch.js +71 -9
- package/esm/TextField/TextField.d.ts +30 -0
- package/esm/TextField/TextField.js +22 -11
- package/esm/TextareaAutosize/TextareaAutosize.js +26 -15
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/Tooltip.js +1 -1
- package/esm/Typography/Typography.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/styles/ThemeProvider.d.ts +6 -0
- package/esm/styles/ThemeProvider.js +11 -0
- package/esm/styles/adaptV4Theme.d.ts +2 -2
- package/esm/styles/createPalette.js +3 -3
- package/esm/styles/createThemeNoVars.d.ts +3 -3
- package/esm/styles/createThemeNoVars.js +2 -2
- package/esm/styles/createThemeWithVars.js +2 -2
- package/esm/styles/createTypography.d.ts +4 -4
- package/esm/styles/index.d.ts +1 -1
- package/esm/styles/index.js +2 -2
- package/esm/styles/makeStyles.js +2 -2
- package/esm/styles/responsiveFontSizes.d.ts +3 -3
- package/esm/styles/responsiveFontSizes.js +2 -2
- package/esm/styles/withStyles.js +2 -2
- package/esm/styles/withTheme.js +2 -2
- package/esm/useScrollTrigger/useScrollTrigger.d.ts +1 -1
- package/esm/useScrollTrigger/useScrollTrigger.js +3 -0
- package/esm/utils/mergeSlotProps.js +25 -0
- package/esm/version/index.js +2 -2
- package/index.js +1 -1
- package/modern/Accordion/Accordion.d.ts +13 -2
- package/modern/Accordion/Accordion.js +18 -6
- package/modern/AccordionSummary/AccordionSummary.d.ts +39 -4
- package/modern/AccordionSummary/AccordionSummary.js +67 -16
- package/modern/InputBase/InputBase.js +2 -2
- package/modern/ListItemText/ListItemText.d.ts +10 -0
- package/modern/ListItemText/ListItemText.js +14 -5
- package/modern/Select/SelectInput.js +2 -2
- package/modern/SpeedDial/SpeedDial.d.ts +10 -0
- package/modern/SpeedDial/SpeedDial.js +40 -11
- package/modern/SpeedDialAction/SpeedDialAction.js +1 -1
- package/modern/StepLabel/StepLabel.d.ts +19 -1
- package/modern/StepLabel/StepLabel.js +14 -5
- package/modern/Switch/Switch.d.ts +62 -1
- package/modern/Switch/Switch.js +71 -9
- package/modern/TextField/TextField.d.ts +30 -0
- package/modern/TextField/TextField.js +22 -11
- package/modern/TextareaAutosize/TextareaAutosize.js +26 -15
- package/modern/Tooltip/Tooltip.d.ts +1 -1
- package/modern/Tooltip/Tooltip.js +1 -1
- package/modern/Typography/Typography.d.ts +3 -3
- package/modern/index.js +1 -1
- package/modern/styles/ThemeProvider.d.ts +6 -0
- package/modern/styles/ThemeProvider.js +11 -0
- package/modern/styles/adaptV4Theme.d.ts +2 -2
- package/modern/styles/createPalette.js +3 -3
- package/modern/styles/createThemeNoVars.d.ts +3 -3
- package/modern/styles/createThemeNoVars.js +2 -2
- package/modern/styles/createThemeWithVars.js +2 -2
- package/modern/styles/createTypography.d.ts +4 -4
- package/modern/styles/index.d.ts +1 -1
- package/modern/styles/index.js +2 -2
- package/modern/styles/makeStyles.js +2 -2
- package/modern/styles/responsiveFontSizes.d.ts +3 -3
- package/modern/styles/responsiveFontSizes.js +2 -2
- package/modern/styles/withStyles.js +2 -2
- package/modern/styles/withTheme.js +2 -2
- package/modern/useScrollTrigger/useScrollTrigger.d.ts +1 -1
- package/modern/useScrollTrigger/useScrollTrigger.js +3 -0
- package/modern/utils/mergeSlotProps.js +25 -0
- package/modern/version/index.js +2 -2
- package/package.json +7 -7
- package/styles/ThemeProvider.d.ts +6 -0
- package/styles/ThemeProvider.js +11 -0
- package/styles/adaptV4Theme.d.ts +2 -2
- package/styles/createPalette.js +3 -3
- package/styles/createThemeNoVars.d.ts +3 -3
- package/styles/createThemeNoVars.js +2 -2
- package/styles/createThemeWithVars.js +2 -2
- package/styles/createTypography.d.ts +4 -4
- package/styles/index.d.ts +1 -1
- package/styles/index.js +2 -2
- package/styles/makeStyles.js +2 -2
- package/styles/responsiveFontSizes.d.ts +3 -3
- package/styles/responsiveFontSizes.js +2 -2
- package/styles/withStyles.js +2 -2
- package/styles/withTheme.js +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/useScrollTrigger/useScrollTrigger.d.ts +1 -1
- package/useScrollTrigger/useScrollTrigger.js +3 -0
- package/utils/mergeSlotProps.js +24 -0
- package/version/index.js +2 -2
package/styles/createPalette.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.dark = void 0;
|
|
8
8
|
exports.default = createPalette;
|
|
9
9
|
exports.light = void 0;
|
|
10
|
-
var
|
|
10
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
11
11
|
var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
12
12
|
var _colorManipulator = require("@mui/system/colorManipulator");
|
|
13
13
|
var _common = _interopRequireDefault(require("../colors/common"));
|
|
@@ -227,10 +227,10 @@ function createPalette(palette) {
|
|
|
227
227
|
color.main = color[mainShade];
|
|
228
228
|
}
|
|
229
229
|
if (!color.hasOwnProperty('main')) {
|
|
230
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : (0,
|
|
230
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : (0, _formatMuiErrorMessage.default)(11, name ? ` (${name})` : '', mainShade));
|
|
231
231
|
}
|
|
232
232
|
if (typeof color.main !== 'string') {
|
|
233
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `\`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.\n` + '\n' + 'Did you intend to use one of the following approaches?\n' + '\n' + 'import { green } from "@mui/material/colors";\n' + '\n' + 'const theme1 = createTheme({ palette: {\n' + ' primary: green,\n' + '} });\n' + '\n' + 'const theme2 = createTheme({ palette: {\n' + ' primary: { main: green[500] },\n' + '} });' : (0,
|
|
233
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `\`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.\n` + '\n' + 'Did you intend to use one of the following approaches?\n' + '\n' + 'import { green } from "@mui/material/colors";\n' + '\n' + 'const theme1 = createTheme({ palette: {\n' + ' primary: green,\n' + '} });\n' + '\n' + 'const theme2 = createTheme({ palette: {\n' + ' primary: { main: green[500] },\n' + '} });' : (0, _formatMuiErrorMessage.default)(12, name ? ` (${name})` : '', JSON.stringify(color.main)));
|
|
234
234
|
}
|
|
235
235
|
addLightOrDark(color, 'light', lightShade, tonalOffset);
|
|
236
236
|
addLightOrDark(color, 'dark', darkShade, tonalOffset);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeOptions as SystemThemeOptions, Theme as SystemTheme, SxProps, CSSObject, SxConfig } from '@mui/system';
|
|
2
2
|
import { Mixins, MixinsOptions } from "./createMixins.js";
|
|
3
3
|
import { Palette, PaletteOptions } from "./createPalette.js";
|
|
4
|
-
import {
|
|
4
|
+
import { TypographyVariants, TypographyVariantsOptions } from "./createTypography.js";
|
|
5
5
|
import { Shadows } from "./shadows.js";
|
|
6
6
|
import { Transitions, TransitionsOptions } from "./createTransitions.js";
|
|
7
7
|
import { ZIndex, ZIndexOptions } from "./zIndex.js";
|
|
@@ -28,7 +28,7 @@ export interface ThemeOptions extends Omit<SystemThemeOptions, 'zIndex'>, CssVar
|
|
|
28
28
|
palette?: PaletteOptions;
|
|
29
29
|
shadows?: Shadows;
|
|
30
30
|
transitions?: TransitionsOptions;
|
|
31
|
-
typography?:
|
|
31
|
+
typography?: TypographyVariantsOptions | ((palette: Palette) => TypographyVariantsOptions);
|
|
32
32
|
zIndex?: ZIndexOptions;
|
|
33
33
|
unstable_strictMode?: boolean;
|
|
34
34
|
unstable_sxConfig?: SxConfig;
|
|
@@ -40,7 +40,7 @@ export interface BaseTheme extends SystemTheme {
|
|
|
40
40
|
} ? CssVarsPalette : {});
|
|
41
41
|
shadows: Shadows;
|
|
42
42
|
transitions: Transitions;
|
|
43
|
-
typography:
|
|
43
|
+
typography: TypographyVariants;
|
|
44
44
|
zIndex: ZIndex;
|
|
45
45
|
unstable_strictMode?: boolean;
|
|
46
46
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var
|
|
9
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
10
10
|
var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
11
11
|
var _styleFunctionSx = _interopRequireWildcard(require("@mui/system/styleFunctionSx"));
|
|
12
12
|
var _createTheme = _interopRequireDefault(require("@mui/system/createTheme"));
|
|
@@ -35,7 +35,7 @@ function createThemeNoVars(options = {}, ...args) {
|
|
|
35
35
|
options.generateThemeVars === undefined) {
|
|
36
36
|
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: `vars` is a private field used for CSS variables support.\n' +
|
|
37
37
|
// #host-reference
|
|
38
|
-
'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : (0,
|
|
38
|
+
'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : (0, _formatMuiErrorMessage.default)(20));
|
|
39
39
|
}
|
|
40
40
|
const palette = (0, _createPalette.default)(paletteInput);
|
|
41
41
|
const systemTheme = (0, _createTheme.default)(options);
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.createGetCssVar = void 0;
|
|
9
9
|
exports.default = createThemeWithVars;
|
|
10
|
-
var
|
|
10
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
11
11
|
var _deepmerge = _interopRequireDefault(require("@mui/utils/deepmerge"));
|
|
12
12
|
var _system = require("@mui/system");
|
|
13
13
|
var _spacing = require("@mui/system/spacing");
|
|
@@ -141,7 +141,7 @@ function createThemeWithVars(options = {}, ...args) {
|
|
|
141
141
|
defaultScheme = true;
|
|
142
142
|
}
|
|
143
143
|
if (!defaultScheme) {
|
|
144
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${defaultColorScheme}\` option is either missing or invalid.` : (0,
|
|
144
|
+
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${defaultColorScheme}\` option is either missing or invalid.` : (0, _formatMuiErrorMessage.default)(21, defaultColorScheme));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { Palette } from "./createPalette.js";
|
|
4
|
-
export type
|
|
4
|
+
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline';
|
|
5
5
|
export interface FontStyle {
|
|
6
6
|
fontFamily: React.CSSProperties['fontFamily'];
|
|
7
7
|
fontSize: number;
|
|
@@ -45,6 +45,6 @@ export interface TypographyStyleOptions extends TypographyStyle {}
|
|
|
45
45
|
export interface TypographyUtils {
|
|
46
46
|
pxToRem: (px: number) => string;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
49
|
-
export interface
|
|
50
|
-
export default function createTypography(palette: Palette, typography:
|
|
48
|
+
export interface TypographyVariants extends Record<TypographyVariant, TypographyStyle>, FontStyle, TypographyUtils {}
|
|
49
|
+
export interface TypographyVariantsOptions extends Partial<Record<TypographyVariant, TypographyStyleOptions> & FontStyleOptions> {}
|
|
50
|
+
export default function createTypography(palette: Palette, typography: TypographyVariantsOptions | ((palette: Palette) => TypographyVariantsOptions)): TypographyVariants;
|
package/styles/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { ZIndex } from "./zIndex.js";
|
|
|
6
6
|
export { CommonColors, Palette, PaletteColor, PaletteColorOptions, PaletteOptions, SimplePaletteColorOptions, TypeText, TypeAction, TypeBackground, PaletteMode, Color } from "./createPalette.js";
|
|
7
7
|
export { default as createColorScheme } from "./createColorScheme.js";
|
|
8
8
|
export { default as createStyles } from "./createStyles.js";
|
|
9
|
-
export {
|
|
9
|
+
export { TypographyVariants, TypographyVariantsOptions, TypographyStyle, TypographyVariant } from "./createTypography.js";
|
|
10
10
|
export { default as responsiveFontSizes } from "./responsiveFontSizes.js";
|
|
11
11
|
export { Duration, Easing, Transitions, TransitionsOptions, duration, easing } from "./createTransitions.js";
|
|
12
12
|
export { Mixins } from "./createMixins.js";
|
package/styles/index.js
CHANGED
|
@@ -296,7 +296,7 @@ Object.defineProperty(exports, "withTheme", {
|
|
|
296
296
|
return _withTheme.default;
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
|
-
var
|
|
299
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
300
300
|
var _identifier = _interopRequireDefault(require("./identifier"));
|
|
301
301
|
var _adaptV4Theme = _interopRequireDefault(require("./adaptV4Theme"));
|
|
302
302
|
var _system = require("@mui/system");
|
|
@@ -337,7 +337,7 @@ var _excludeVariablesFromRoot = _interopRequireDefault(require("./excludeVariabl
|
|
|
337
337
|
// TODO: Remove this function in v6.
|
|
338
338
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
339
339
|
function experimental_sx() {
|
|
340
|
-
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : (0,
|
|
340
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : (0, _formatMuiErrorMessage.default)(19));
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
// The legacy utilities from @mui/styles
|
package/styles/makeStyles.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = makeStyles;
|
|
8
|
-
var
|
|
8
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
9
9
|
function makeStyles() {
|
|
10
|
-
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: makeStyles is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0,
|
|
10
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: makeStyles is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0, _formatMuiErrorMessage.default)(14));
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Breakpoint } from '@mui/system';
|
|
2
|
-
import {
|
|
2
|
+
import { TypographyVariants } from "./createTypography.js";
|
|
3
3
|
export interface ResponsiveFontSizesOptions {
|
|
4
4
|
breakpoints?: Breakpoint[];
|
|
5
5
|
disableAlign?: boolean;
|
|
6
6
|
factor?: number;
|
|
7
|
-
variants?: Array<keyof
|
|
7
|
+
variants?: Array<keyof TypographyVariants>;
|
|
8
8
|
}
|
|
9
9
|
export default function responsiveFontSizes<T extends {
|
|
10
|
-
typography:
|
|
10
|
+
typography: TypographyVariants;
|
|
11
11
|
}>(theme: T, options?: ResponsiveFontSizesOptions): T;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = responsiveFontSizes;
|
|
8
|
-
var
|
|
8
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
9
9
|
var _cssUtils = require("./cssUtils");
|
|
10
10
|
function responsiveFontSizes(themeInput, options = {}) {
|
|
11
11
|
const {
|
|
@@ -41,7 +41,7 @@ function responsiveFontSizes(themeInput, options = {}) {
|
|
|
41
41
|
lineHeight
|
|
42
42
|
} = style;
|
|
43
43
|
if (!(0, _cssUtils.isUnitless)(lineHeight) && !disableAlign) {
|
|
44
|
-
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: Unsupported non-unitless line height with grid alignment.\n' + 'Use unitless line heights instead.' : (0,
|
|
44
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: Unsupported non-unitless line height with grid alignment.\n' + 'Use unitless line heights instead.' : (0, _formatMuiErrorMessage.default)(6));
|
|
45
45
|
}
|
|
46
46
|
if (!(0, _cssUtils.isUnitless)(lineHeight)) {
|
|
47
47
|
// make it unitless
|
package/styles/withStyles.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = withStyles;
|
|
8
|
-
var
|
|
8
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
9
9
|
function withStyles() {
|
|
10
|
-
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: withStyles is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0,
|
|
10
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: withStyles is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0, _formatMuiErrorMessage.default)(15));
|
|
11
11
|
}
|
package/styles/withTheme.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = withTheme;
|
|
8
|
-
var
|
|
8
|
+
var _formatMuiErrorMessage = _interopRequireDefault(require("@mui/utils/formatMuiErrorMessage"));
|
|
9
9
|
function withTheme() {
|
|
10
|
-
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: withTheme is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0,
|
|
10
|
+
throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: withTheme is no longer exported from @mui/material/styles.\n' + 'You have to import it from @mui/styles.\n' + 'See https://mui.com/r/migration-v4/#mui-material-styles for more details.' : (0, _formatMuiErrorMessage.default)(16));
|
|
11
11
|
}
|