@mui/material 5.3.0 → 5.4.2
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/Autocomplete/Autocomplete.d.ts +5 -0
- package/Autocomplete/Autocomplete.js +12 -4
- package/AvatarGroup/AvatarGroup.d.ts +10 -0
- package/AvatarGroup/AvatarGroup.js +19 -7
- package/Badge/Badge.js +3 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/Button/buttonClasses.d.ts +1 -1
- package/ButtonBase/ButtonBase.d.ts +5 -1
- package/ButtonBase/ButtonBase.js +15 -2
- package/ButtonBase/TouchRipple.js +1 -2
- package/CHANGELOG.md +300 -28
- package/Fab/Fab.d.ts +4 -1
- package/Fab/Fab.js +8 -20
- package/Fab/fabClasses.js +1 -1
- package/FormControlLabel/FormControlLabel.js +11 -3
- package/FormControlLabel/formControlLabelClasses.d.ts +2 -0
- package/FormControlLabel/formControlLabelClasses.js +1 -1
- package/FormGroup/FormGroup.js +14 -3
- package/FormGroup/formGroupClasses.d.ts +2 -0
- package/FormGroup/formGroupClasses.js +1 -1
- package/FormHelperText/FormHelperText.js +7 -9
- package/Grid/Grid.js +2 -4
- package/ImageList/ImageList.js +3 -1
- package/InputAdornment/InputAdornment.js +6 -9
- package/Modal/Modal.js +1 -1
- package/OutlinedInput/NotchedOutline.js +14 -16
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/README.md +6 -6
- package/Radio/RadioButtonIcon.js +2 -6
- package/Rating/Rating.js +1 -1
- package/Select/Select.js +19 -7
- package/Select/SelectInput.js +12 -10
- package/Slider/Slider.js +3 -1
- package/Snackbar/Snackbar.js +4 -1
- package/SvgIcon/SvgIcon.js +9 -9
- package/SwipeableDrawer/SwipeArea.js +1 -3
- package/TextField/TextField.js +1 -1
- package/ToggleButton/ToggleButton.d.ts +15 -0
- package/ToggleButton/ToggleButton.js +8 -2
- package/index.d.ts +11 -3
- package/index.js +8 -3
- package/internal/SwitchBase.js +2 -6
- package/legacy/Autocomplete/Autocomplete.js +13 -4
- package/legacy/AvatarGroup/AvatarGroup.js +20 -7
- package/legacy/Badge/Badge.js +4 -2
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/legacy/ButtonBase/ButtonBase.js +15 -2
- package/legacy/ButtonBase/TouchRipple.js +1 -2
- package/legacy/Fab/Fab.js +8 -20
- package/legacy/Fab/fabClasses.js +1 -1
- package/legacy/FormControlLabel/FormControlLabel.js +11 -3
- package/legacy/FormControlLabel/formControlLabelClasses.js +1 -1
- package/legacy/FormGroup/FormGroup.js +14 -3
- package/legacy/FormGroup/formGroupClasses.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +7 -9
- package/legacy/Grid/Grid.js +2 -4
- package/legacy/ImageList/ImageList.js +3 -1
- package/legacy/InputAdornment/InputAdornment.js +6 -9
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/OutlinedInput/NotchedOutline.js +14 -16
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Radio/RadioButtonIcon.js +2 -6
- package/legacy/Rating/Rating.js +1 -1
- package/legacy/Select/Select.js +23 -7
- package/legacy/Select/SelectInput.js +12 -10
- package/legacy/Slider/Slider.js +3 -1
- package/legacy/Snackbar/Snackbar.js +4 -1
- package/legacy/SvgIcon/SvgIcon.js +9 -9
- package/legacy/SwipeableDrawer/SwipeArea.js +1 -3
- package/legacy/TextField/TextField.js +1 -1
- package/legacy/ToggleButton/ToggleButton.js +8 -2
- package/legacy/index.js +8 -3
- package/legacy/internal/SwitchBase.js +2 -6
- package/legacy/styles/makeStyles.js +1 -1
- package/legacy/styles/withStyles.js +1 -1
- package/legacy/styles/withTheme.js +1 -1
- package/legacy/useMediaQuery/useMediaQuery.js +87 -32
- package/modern/Autocomplete/Autocomplete.js +12 -4
- package/modern/AvatarGroup/AvatarGroup.js +17 -7
- package/modern/Badge/Badge.js +3 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/modern/ButtonBase/ButtonBase.js +15 -2
- package/modern/ButtonBase/TouchRipple.js +1 -2
- package/modern/Fab/Fab.js +8 -20
- package/modern/Fab/fabClasses.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +11 -3
- package/modern/FormControlLabel/formControlLabelClasses.js +1 -1
- package/modern/FormGroup/FormGroup.js +14 -3
- package/modern/FormGroup/formGroupClasses.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +7 -9
- package/modern/Grid/Grid.js +2 -4
- package/modern/ImageList/ImageList.js +3 -1
- package/modern/InputAdornment/InputAdornment.js +6 -9
- package/modern/Modal/Modal.js +1 -1
- package/modern/OutlinedInput/NotchedOutline.js +14 -16
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Radio/RadioButtonIcon.js +2 -6
- package/modern/Rating/Rating.js +1 -1
- package/modern/Select/Select.js +19 -7
- package/modern/Select/SelectInput.js +12 -10
- package/modern/Slider/Slider.js +3 -1
- package/modern/Snackbar/Snackbar.js +4 -1
- package/modern/SvgIcon/SvgIcon.js +8 -8
- package/modern/SwipeableDrawer/SwipeArea.js +1 -3
- package/modern/TextField/TextField.js +1 -1
- package/modern/ToggleButton/ToggleButton.js +8 -2
- package/modern/index.js +8 -3
- package/modern/internal/SwitchBase.js +2 -6
- package/modern/styles/makeStyles.js +1 -1
- package/modern/styles/withStyles.js +1 -1
- package/modern/styles/withTheme.js +1 -1
- package/modern/useMediaQuery/useMediaQuery.js +69 -27
- package/node/Autocomplete/Autocomplete.js +12 -4
- package/node/AvatarGroup/AvatarGroup.js +19 -7
- package/node/Badge/Badge.js +3 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -3
- package/node/ButtonBase/ButtonBase.js +15 -2
- package/node/ButtonBase/TouchRipple.js +1 -2
- package/node/Fab/Fab.js +8 -20
- package/node/Fab/fabClasses.js +1 -1
- package/node/FormControlLabel/FormControlLabel.js +12 -3
- package/node/FormControlLabel/formControlLabelClasses.js +1 -1
- package/node/FormGroup/FormGroup.js +15 -3
- package/node/FormGroup/formGroupClasses.js +1 -1
- package/node/FormHelperText/FormHelperText.js +6 -9
- package/node/Grid/Grid.js +2 -4
- package/node/ImageList/ImageList.js +3 -1
- package/node/InputAdornment/InputAdornment.js +5 -9
- package/node/Modal/Modal.js +1 -1
- package/node/OutlinedInput/NotchedOutline.js +12 -16
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Radio/RadioButtonIcon.js +2 -6
- package/node/Rating/Rating.js +1 -1
- package/node/Select/Select.js +22 -9
- package/node/Select/SelectInput.js +11 -10
- package/node/Slider/Slider.js +3 -1
- package/node/Snackbar/Snackbar.js +4 -1
- package/node/SvgIcon/SvgIcon.js +9 -9
- package/node/SwipeableDrawer/SwipeArea.js +1 -3
- package/node/TextField/TextField.js +1 -1
- package/node/ToggleButton/ToggleButton.js +8 -2
- package/node/index.js +62 -16
- package/node/internal/SwitchBase.js +2 -6
- package/node/styles/makeStyles.js +1 -1
- package/node/styles/withStyles.js +1 -1
- package/node/styles/withTheme.js +1 -1
- package/node/useMediaQuery/useMediaQuery.js +69 -27
- package/package.json +8 -8
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/index.d.ts +3 -0
- package/styles/makeStyles.js +1 -1
- package/styles/withStyles.js +1 -1
- package/styles/withTheme.js +1 -1
- package/umd/material-ui.development.js +5056 -7204
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +4 -0
- package/useMediaQuery/useMediaQuery.js +69 -27
package/node/Grid/Grid.js
CHANGED
|
@@ -286,10 +286,8 @@ const GridRoot = (0, _styled.default)('div', {
|
|
|
286
286
|
|
|
287
287
|
}, ownerState.zeroMinWidth && {
|
|
288
288
|
minWidth: 0
|
|
289
|
-
}, ownerState.wrap
|
|
290
|
-
flexWrap:
|
|
291
|
-
}, ownerState.wrap === 'reverse' && {
|
|
292
|
-
flexWrap: 'wrap-reverse'
|
|
289
|
+
}, ownerState.wrap !== 'wrap' && {
|
|
290
|
+
flexWrap: ownerState.wrap
|
|
293
291
|
}), generateDirection, generateRowGap, generateColumnGap, generateGrid);
|
|
294
292
|
|
|
295
293
|
const useUtilityClasses = ownerState => {
|
|
@@ -190,7 +190,9 @@ process.env.NODE_ENV !== "production" ? ImageList.propTypes
|
|
|
190
190
|
* The variant to use.
|
|
191
191
|
* @default 'standard'
|
|
192
192
|
*/
|
|
193
|
-
variant: _propTypes.default
|
|
193
|
+
variant: _propTypes.default
|
|
194
|
+
/* @typescript-to-proptypes-ignore */
|
|
195
|
+
.oneOfType([_propTypes.default.oneOf(['masonry', 'quilted', 'standard', 'woven']), _propTypes.default.string])
|
|
194
196
|
} : void 0;
|
|
195
197
|
var _default = ImageList;
|
|
196
198
|
exports.default = _default;
|
|
@@ -35,6 +35,8 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
35
35
|
|
|
36
36
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
37
|
|
|
38
|
+
var _span;
|
|
39
|
+
|
|
38
40
|
const _excluded = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
|
|
39
41
|
|
|
40
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -144,17 +146,11 @@ const InputAdornment = /*#__PURE__*/React.forwardRef(function InputAdornment(inP
|
|
|
144
146
|
children: children
|
|
145
147
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
146
148
|
children: [position === 'start' ?
|
|
147
|
-
/*#__PURE__*/
|
|
148
|
-
|
|
149
149
|
/* notranslate needed while Google Translate will not fix zero-width space issue */
|
|
150
|
-
|
|
151
|
-
/* eslint-disable-next-line react/no-danger */
|
|
152
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
150
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
153
151
|
className: "notranslate",
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}
|
|
157
|
-
}) : null, children]
|
|
152
|
+
children: "\u200B"
|
|
153
|
+
})) : null, children]
|
|
158
154
|
})
|
|
159
155
|
}))
|
|
160
156
|
});
|
package/node/Modal/Modal.js
CHANGED
|
@@ -250,7 +250,7 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
|
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* If `true`, the modal will not restore focus to previously focused element once
|
|
253
|
-
* modal is hidden.
|
|
253
|
+
* modal is hidden or unmounted.
|
|
254
254
|
* @default false
|
|
255
255
|
*/
|
|
256
256
|
disableRestoreFocus: _propTypes.default.bool,
|
|
@@ -19,6 +19,8 @@ var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
|
19
19
|
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
|
+
var _span;
|
|
23
|
+
|
|
22
24
|
const _excluded = ["children", "classes", "className", "label", "notched"];
|
|
23
25
|
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -41,14 +43,12 @@ const NotchedOutlineRoot = (0, _styled.default)('fieldset')({
|
|
|
41
43
|
overflow: 'hidden',
|
|
42
44
|
minWidth: '0%'
|
|
43
45
|
});
|
|
44
|
-
const NotchedOutlineLegend = (0, _styled.default)('legend'
|
|
45
|
-
skipSx: true
|
|
46
|
-
})(({
|
|
46
|
+
const NotchedOutlineLegend = (0, _styled.default)('legend')(({
|
|
47
47
|
ownerState,
|
|
48
48
|
theme
|
|
49
49
|
}) => (0, _extends2.default)({
|
|
50
50
|
float: 'unset'
|
|
51
|
-
}, ownerState.
|
|
51
|
+
}, !ownerState.withLabel && {
|
|
52
52
|
padding: 0,
|
|
53
53
|
lineHeight: '11px',
|
|
54
54
|
// sync with `height` in `legend` styles
|
|
@@ -56,7 +56,7 @@ const NotchedOutlineLegend = (0, _styled.default)('legend', {
|
|
|
56
56
|
duration: 150,
|
|
57
57
|
easing: theme.transitions.easing.easeOut
|
|
58
58
|
})
|
|
59
|
-
}, ownerState.
|
|
59
|
+
}, ownerState.withLabel && (0, _extends2.default)({
|
|
60
60
|
display: 'block',
|
|
61
61
|
// Fix conflict with normalize.css and sanitize.css
|
|
62
62
|
width: 'auto',
|
|
@@ -96,9 +96,10 @@ function NotchedOutline(props) {
|
|
|
96
96
|
notched
|
|
97
97
|
} = props,
|
|
98
98
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
99
|
+
const withLabel = label != null && label !== '';
|
|
99
100
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
100
101
|
notched,
|
|
101
|
-
|
|
102
|
+
withLabel
|
|
102
103
|
});
|
|
103
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, (0, _extends2.default)({
|
|
104
105
|
"aria-hidden": true,
|
|
@@ -107,18 +108,13 @@ function NotchedOutline(props) {
|
|
|
107
108
|
}, other, {
|
|
108
109
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineLegend, {
|
|
109
110
|
ownerState: ownerState,
|
|
110
|
-
children:
|
|
111
|
+
children: withLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
111
112
|
children: label
|
|
112
|
-
}) :
|
|
113
|
-
/*#__PURE__*/
|
|
114
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
115
|
-
// eslint-disable-next-line react/no-danger
|
|
116
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
113
|
+
}) : // notranslate needed while Google Translate will not fix zero-width space issue
|
|
114
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
117
115
|
className: "notranslate",
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
})
|
|
116
|
+
children: "\u200B"
|
|
117
|
+
}))
|
|
122
118
|
})
|
|
123
119
|
}));
|
|
124
120
|
}
|
|
@@ -160,7 +160,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
160
160
|
}, components),
|
|
161
161
|
renderSuffix: state => /*#__PURE__*/(0, _jsxRuntime.jsx)(NotchedOutlineRoot, {
|
|
162
162
|
className: classes.notchedOutline,
|
|
163
|
-
label: label && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
163
|
+
label: label != null && label !== '' && fcs.required ? _React$Fragment || (_React$Fragment = /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
164
164
|
children: [label, "\xA0", '*']
|
|
165
165
|
})) : label,
|
|
166
166
|
notched: typeof notched !== 'undefined' ? notched : Boolean(state.startAdornment || state.filled || state.focused)
|
|
@@ -29,15 +29,11 @@ const RadioButtonIconRoot = (0, _styled.default)('span')({
|
|
|
29
29
|
position: 'relative',
|
|
30
30
|
display: 'flex'
|
|
31
31
|
});
|
|
32
|
-
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default
|
|
33
|
-
skipSx: true
|
|
34
|
-
})({
|
|
32
|
+
const RadioButtonIconBackground = (0, _styled.default)(_RadioButtonUnchecked.default)({
|
|
35
33
|
// Scale applied to prevent dot misalignment in Safari
|
|
36
34
|
transform: 'scale(1)'
|
|
37
35
|
});
|
|
38
|
-
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default
|
|
39
|
-
skipSx: true
|
|
40
|
-
})(({
|
|
36
|
+
const RadioButtonIconDot = (0, _styled.default)(_RadioButtonChecked.default)(({
|
|
41
37
|
theme,
|
|
42
38
|
ownerState
|
|
43
39
|
}) => (0, _extends2.default)({
|
package/node/Rating/Rating.js
CHANGED
|
@@ -426,7 +426,7 @@ const Rating = /*#__PURE__*/React.forwardRef(function Rating(inProps, ref) {
|
|
|
426
426
|
|
|
427
427
|
const handleChange = event => {
|
|
428
428
|
let newValue = event.target.value === '' ? null : parseFloat(event.target.value); // Give mouse priority over keyboard
|
|
429
|
-
// Fix https://github.com/mui
|
|
429
|
+
// Fix https://github.com/mui/material-ui/issues/22827
|
|
430
430
|
|
|
431
431
|
if (hover !== -1) {
|
|
432
432
|
newValue = hover;
|
package/node/Select/Select.js
CHANGED
|
@@ -27,11 +27,11 @@ var _useFormControl = _interopRequireDefault(require("../FormControl/useFormCont
|
|
|
27
27
|
|
|
28
28
|
var _ArrowDropDown = _interopRequireDefault(require("../internal/svg-icons/ArrowDropDown"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _Input = _interopRequireDefault(require("../Input"));
|
|
31
31
|
|
|
32
32
|
var _NativeSelectInput = _interopRequireDefault(require("../NativeSelect/NativeSelectInput"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _FilledInput = _interopRequireDefault(require("../FilledInput"));
|
|
35
35
|
|
|
36
36
|
var _OutlinedInput = _interopRequireDefault(require("../OutlinedInput"));
|
|
37
37
|
|
|
@@ -39,9 +39,11 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
|
39
39
|
|
|
40
40
|
var _useForkRef = _interopRequireDefault(require("../utils/useForkRef"));
|
|
41
41
|
|
|
42
|
+
var _styled = _interopRequireWildcard(require("../styles/styled"));
|
|
43
|
+
|
|
42
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
43
45
|
|
|
44
|
-
var
|
|
46
|
+
var _StyledInput, _StyledFilledInput;
|
|
45
47
|
|
|
46
48
|
const _excluded = ["autoWidth", "children", "classes", "className", "defaultOpen", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"];
|
|
47
49
|
|
|
@@ -56,6 +58,15 @@ const useUtilityClasses = ownerState => {
|
|
|
56
58
|
return classes;
|
|
57
59
|
};
|
|
58
60
|
|
|
61
|
+
const styledRootConfig = {
|
|
62
|
+
name: 'MuiSelect',
|
|
63
|
+
overridesResolver: (props, styles) => styles.root,
|
|
64
|
+
shouldForwardProp: prop => (0, _styled.rootShouldForwardProp)(prop) && prop !== 'variant',
|
|
65
|
+
slot: 'Root'
|
|
66
|
+
};
|
|
67
|
+
const StyledInput = (0, _styled.default)(_Input.default, styledRootConfig)('');
|
|
68
|
+
const StyledOutlinedInput = (0, _styled.default)(_OutlinedInput.default, styledRootConfig)('');
|
|
69
|
+
const StyledFilledInput = (0, _styled.default)(_FilledInput.default, styledRootConfig)('');
|
|
59
70
|
const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
60
71
|
const props = (0, _useThemeProps.default)({
|
|
61
72
|
name: 'MuiSelect',
|
|
@@ -82,7 +93,7 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
82
93
|
open,
|
|
83
94
|
renderValue,
|
|
84
95
|
SelectDisplayProps,
|
|
85
|
-
variant:
|
|
96
|
+
variant: variantProp = 'outlined'
|
|
86
97
|
} = props,
|
|
87
98
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
88
99
|
const inputComponent = native ? _NativeSelectInput.default : _SelectInput.default;
|
|
@@ -92,15 +103,16 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
92
103
|
muiFormControl,
|
|
93
104
|
states: ['variant']
|
|
94
105
|
});
|
|
95
|
-
const variant = fcs.variant ||
|
|
106
|
+
const variant = fcs.variant || variantProp;
|
|
96
107
|
const InputComponent = input || {
|
|
97
|
-
standard:
|
|
98
|
-
outlined: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
108
|
+
standard: _StyledInput || (_StyledInput = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledInput, {})),
|
|
109
|
+
outlined: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledOutlinedInput, {
|
|
99
110
|
label: label
|
|
100
111
|
}),
|
|
101
|
-
filled:
|
|
112
|
+
filled: _StyledFilledInput || (_StyledFilledInput = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledFilledInput, {}))
|
|
102
113
|
}[variant];
|
|
103
114
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
115
|
+
variant,
|
|
104
116
|
classes: classesProp
|
|
105
117
|
});
|
|
106
118
|
const classes = useUtilityClasses(ownerState);
|
|
@@ -138,7 +150,8 @@ const Select = /*#__PURE__*/React.forwardRef(function Select(inProps, ref) {
|
|
|
138
150
|
notched: true
|
|
139
151
|
} : {}, {
|
|
140
152
|
ref: inputComponentRef,
|
|
141
|
-
className: (0, _clsx.default)(InputComponent.props.className, className)
|
|
153
|
+
className: (0, _clsx.default)(InputComponent.props.className, className),
|
|
154
|
+
variant
|
|
142
155
|
}, other));
|
|
143
156
|
});
|
|
144
157
|
process.env.NODE_ENV !== "production" ? Select.propTypes
|
|
@@ -43,6 +43,8 @@ var _selectClasses = _interopRequireWildcard(require("./selectClasses"));
|
|
|
43
43
|
|
|
44
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
45
45
|
|
|
46
|
+
var _span;
|
|
47
|
+
|
|
46
48
|
const _excluded = ["aria-describedby", "aria-label", "autoFocus", "autoWidth", "children", "className", "defaultOpen", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"];
|
|
47
49
|
|
|
48
50
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -215,6 +217,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
215
217
|
}
|
|
216
218
|
}, [autoFocus]);
|
|
217
219
|
React.useEffect(() => {
|
|
220
|
+
if (!labelId) {
|
|
221
|
+
return undefined;
|
|
222
|
+
}
|
|
223
|
+
|
|
218
224
|
const label = (0, _ownerDocument.default)(displayRef.current).getElementById(labelId);
|
|
219
225
|
|
|
220
226
|
if (label) {
|
|
@@ -311,7 +317,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
311
317
|
if (onChange) {
|
|
312
318
|
// Redefine target to allow name and value to be read.
|
|
313
319
|
// This allows seamless integration with the most popular form libraries.
|
|
314
|
-
// https://github.com/mui
|
|
320
|
+
// https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
|
|
315
321
|
// Clone the event to not override `target` of the original event.
|
|
316
322
|
const nativeEvent = event.nativeEvent || event;
|
|
317
323
|
const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
|
|
@@ -509,16 +515,11 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
509
515
|
className: (0, _clsx.default)(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
|
|
510
516
|
,
|
|
511
517
|
id: buttonId,
|
|
512
|
-
children: isEmpty(display) ?
|
|
513
|
-
/*#__PURE__*/
|
|
514
|
-
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
515
|
-
// eslint-disable-next-line react/no-danger
|
|
516
|
-
(0, _jsxRuntime.jsx)("span", {
|
|
518
|
+
children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
|
|
519
|
+
_span || (_span = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
517
520
|
className: "notranslate",
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
}) : display
|
|
521
|
+
children: "\u200B"
|
|
522
|
+
})) : display
|
|
522
523
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectNativeInput, (0, _extends2.default)({
|
|
523
524
|
value: Array.isArray(value) ? value.join(',') : value,
|
|
524
525
|
name: name,
|
package/node/Slider/Slider.js
CHANGED
|
@@ -718,7 +718,9 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
|
|
|
718
718
|
* The size of the slider.
|
|
719
719
|
* @default 'medium'
|
|
720
720
|
*/
|
|
721
|
-
size: _propTypes.default
|
|
721
|
+
size: _propTypes.default
|
|
722
|
+
/* @typescript-to-proptypes-ignore */
|
|
723
|
+
.oneOfType([_propTypes.default.oneOf(['small', 'medium']), _propTypes.default.string]),
|
|
722
724
|
|
|
723
725
|
/**
|
|
724
726
|
* The granularity with which the slider can step through values. (A "discrete" slider.)
|
|
@@ -315,7 +315,10 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
|
|
|
315
315
|
onMouseEnter: handleMouseEnter,
|
|
316
316
|
onMouseLeave: handleMouseLeave,
|
|
317
317
|
ownerState: ownerState,
|
|
318
|
-
ref: ref
|
|
318
|
+
ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
|
|
319
|
+
// See https://github.com/mui-org/material-ui/issues/29080
|
|
320
|
+
,
|
|
321
|
+
role: "presentation"
|
|
319
322
|
}, other, {
|
|
320
323
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
|
|
321
324
|
appear: true,
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -60,7 +60,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
60
60
|
theme,
|
|
61
61
|
ownerState
|
|
62
62
|
}) => {
|
|
63
|
-
var _theme$palette$ownerS, _theme$palette$ownerS2;
|
|
63
|
+
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
|
|
64
64
|
|
|
65
65
|
return {
|
|
66
66
|
userSelect: 'none',
|
|
@@ -69,19 +69,19 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
69
69
|
display: 'inline-block',
|
|
70
70
|
fill: 'currentColor',
|
|
71
71
|
flexShrink: 0,
|
|
72
|
-
transition: theme.transitions.create('fill', {
|
|
73
|
-
duration: theme.transitions.duration.shorter
|
|
72
|
+
transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
73
|
+
duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
|
|
74
74
|
}),
|
|
75
75
|
fontSize: {
|
|
76
76
|
inherit: 'inherit',
|
|
77
|
-
small: theme.typography.pxToRem(20),
|
|
78
|
-
medium: theme.typography.pxToRem(24),
|
|
79
|
-
large: theme.typography.pxToRem(35)
|
|
77
|
+
small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
78
|
+
medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
79
|
+
large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
|
|
80
80
|
}[ownerState.fontSize],
|
|
81
81
|
// TODO v5 deprecate, v6 remove for sx
|
|
82
|
-
color: (_theme$palette$ownerS = (_theme$palette
|
|
83
|
-
action: theme.palette.action.active,
|
|
84
|
-
disabled: theme.palette.action.disabled,
|
|
82
|
+
color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
|
|
83
|
+
action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
|
|
84
|
+
disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
|
|
85
85
|
inherit: undefined
|
|
86
86
|
}[ownerState.color]
|
|
87
87
|
};
|
|
@@ -31,9 +31,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
33
33
|
|
|
34
|
-
const SwipeAreaRoot = (0, _styled.default)('div'
|
|
35
|
-
skipSx: true
|
|
36
|
-
})(({
|
|
34
|
+
const SwipeAreaRoot = (0, _styled.default)('div')(({
|
|
37
35
|
theme,
|
|
38
36
|
ownerState
|
|
39
37
|
}) => (0, _extends2.default)({
|
|
@@ -217,7 +217,7 @@ const TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref)
|
|
|
217
217
|
variant: variant,
|
|
218
218
|
ownerState: ownerState
|
|
219
219
|
}, other, {
|
|
220
|
-
children: [label && /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputLabel.default, (0, _extends2.default)({
|
|
220
|
+
children: [label != null && label !== '' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputLabel.default, (0, _extends2.default)({
|
|
221
221
|
htmlFor: id,
|
|
222
222
|
id: inputLabelId
|
|
223
223
|
}, InputLabelProps, {
|
|
@@ -222,12 +222,18 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes
|
|
|
222
222
|
fullWidth: _propTypes.default.bool,
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
*
|
|
225
|
+
* Callback fired when the state changes.
|
|
226
|
+
*
|
|
227
|
+
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
|
228
|
+
* @param {any} value of the selected button.
|
|
226
229
|
*/
|
|
227
230
|
onChange: _propTypes.default.func,
|
|
228
231
|
|
|
229
232
|
/**
|
|
230
|
-
*
|
|
233
|
+
* Callback fired when the button is clicked.
|
|
234
|
+
*
|
|
235
|
+
* @param {React.MouseEvent<HTMLElement>} event The event source of the callback.
|
|
236
|
+
* @param {any} value of the selected button.
|
|
231
237
|
*/
|
|
232
238
|
onClick: _propTypes.default.func,
|
|
233
239
|
|
package/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MUI v5.
|
|
1
|
+
/** @license MUI v5.4.2
|
|
2
2
|
*
|
|
3
3
|
* This source code is licensed under the MIT license found in the
|
|
4
4
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -96,6 +96,7 @@ var _exportNames = {
|
|
|
96
96
|
Paper: true,
|
|
97
97
|
Popover: true,
|
|
98
98
|
Popper: true,
|
|
99
|
+
Portal: true,
|
|
99
100
|
Radio: true,
|
|
100
101
|
RadioGroup: true,
|
|
101
102
|
Rating: true,
|
|
@@ -144,7 +145,10 @@ var _exportNames = {
|
|
|
144
145
|
useScrollTrigger: true,
|
|
145
146
|
Zoom: true,
|
|
146
147
|
useAutocomplete: true,
|
|
147
|
-
GlobalStyles: true
|
|
148
|
+
GlobalStyles: true,
|
|
149
|
+
unstable_composeClasses: true,
|
|
150
|
+
generateUtilityClass: true,
|
|
151
|
+
generateUtilityClasses: true
|
|
148
152
|
};
|
|
149
153
|
Object.defineProperty(exports, "Accordion", {
|
|
150
154
|
enumerable: true,
|
|
@@ -644,6 +648,12 @@ Object.defineProperty(exports, "Popper", {
|
|
|
644
648
|
return _Popper.default;
|
|
645
649
|
}
|
|
646
650
|
});
|
|
651
|
+
Object.defineProperty(exports, "Portal", {
|
|
652
|
+
enumerable: true,
|
|
653
|
+
get: function () {
|
|
654
|
+
return _Portal.default;
|
|
655
|
+
}
|
|
656
|
+
});
|
|
647
657
|
Object.defineProperty(exports, "Radio", {
|
|
648
658
|
enumerable: true,
|
|
649
659
|
get: function () {
|
|
@@ -921,6 +931,24 @@ Object.defineProperty(exports, "darkScrollbar", {
|
|
|
921
931
|
return _darkScrollbar.default;
|
|
922
932
|
}
|
|
923
933
|
});
|
|
934
|
+
Object.defineProperty(exports, "generateUtilityClass", {
|
|
935
|
+
enumerable: true,
|
|
936
|
+
get: function () {
|
|
937
|
+
return _generateUtilityClass.default;
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
Object.defineProperty(exports, "generateUtilityClasses", {
|
|
941
|
+
enumerable: true,
|
|
942
|
+
get: function () {
|
|
943
|
+
return _generateUtilityClasses.default;
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
Object.defineProperty(exports, "unstable_composeClasses", {
|
|
947
|
+
enumerable: true,
|
|
948
|
+
get: function () {
|
|
949
|
+
return _composeClasses.default;
|
|
950
|
+
}
|
|
951
|
+
});
|
|
924
952
|
Object.defineProperty(exports, "useAutocomplete", {
|
|
925
953
|
enumerable: true,
|
|
926
954
|
get: function () {
|
|
@@ -978,20 +1006,6 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
978
1006
|
});
|
|
979
1007
|
});
|
|
980
1008
|
|
|
981
|
-
var _base = require("@mui/base");
|
|
982
|
-
|
|
983
|
-
Object.keys(_base).forEach(function (key) {
|
|
984
|
-
if (key === "default" || key === "__esModule") return;
|
|
985
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
986
|
-
if (key in exports && exports[key] === _base[key]) return;
|
|
987
|
-
Object.defineProperty(exports, key, {
|
|
988
|
-
enumerable: true,
|
|
989
|
-
get: function () {
|
|
990
|
-
return _base[key];
|
|
991
|
-
}
|
|
992
|
-
});
|
|
993
|
-
});
|
|
994
|
-
|
|
995
1009
|
var _Accordion = _interopRequireWildcard(require("./Accordion"));
|
|
996
1010
|
|
|
997
1011
|
Object.keys(_Accordion).forEach(function (key) {
|
|
@@ -2154,6 +2168,20 @@ Object.keys(_Popper).forEach(function (key) {
|
|
|
2154
2168
|
});
|
|
2155
2169
|
});
|
|
2156
2170
|
|
|
2171
|
+
var _Portal = _interopRequireWildcard(require("./Portal"));
|
|
2172
|
+
|
|
2173
|
+
Object.keys(_Portal).forEach(function (key) {
|
|
2174
|
+
if (key === "default" || key === "__esModule") return;
|
|
2175
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
2176
|
+
if (key in exports && exports[key] === _Portal[key]) return;
|
|
2177
|
+
Object.defineProperty(exports, key, {
|
|
2178
|
+
enumerable: true,
|
|
2179
|
+
get: function () {
|
|
2180
|
+
return _Portal[key];
|
|
2181
|
+
}
|
|
2182
|
+
});
|
|
2183
|
+
});
|
|
2184
|
+
|
|
2157
2185
|
var _Radio = _interopRequireWildcard(require("./Radio"));
|
|
2158
2186
|
|
|
2159
2187
|
Object.keys(_Radio).forEach(function (key) {
|
|
@@ -2828,6 +2856,24 @@ Object.keys(_GlobalStyles).forEach(function (key) {
|
|
|
2828
2856
|
});
|
|
2829
2857
|
});
|
|
2830
2858
|
|
|
2859
|
+
var _composeClasses = _interopRequireDefault(require("@mui/base/composeClasses"));
|
|
2860
|
+
|
|
2861
|
+
var _generateUtilityClass = _interopRequireWildcard(require("@mui/base/generateUtilityClass"));
|
|
2862
|
+
|
|
2863
|
+
Object.keys(_generateUtilityClass).forEach(function (key) {
|
|
2864
|
+
if (key === "default" || key === "__esModule") return;
|
|
2865
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
2866
|
+
if (key in exports && exports[key] === _generateUtilityClass[key]) return;
|
|
2867
|
+
Object.defineProperty(exports, key, {
|
|
2868
|
+
enumerable: true,
|
|
2869
|
+
get: function () {
|
|
2870
|
+
return _generateUtilityClass[key];
|
|
2871
|
+
}
|
|
2872
|
+
});
|
|
2873
|
+
});
|
|
2874
|
+
|
|
2875
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/base/generateUtilityClasses"));
|
|
2876
|
+
|
|
2831
2877
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
2832
2878
|
|
|
2833
2879
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -55,9 +55,7 @@ const useUtilityClasses = ownerState => {
|
|
|
55
55
|
return (0, _base.unstable_composeClasses)(slots, _switchBaseClasses.getSwitchBaseUtilityClass, classes);
|
|
56
56
|
};
|
|
57
57
|
|
|
58
|
-
const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default
|
|
59
|
-
skipSx: true
|
|
60
|
-
})(({
|
|
58
|
+
const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default)(({
|
|
61
59
|
ownerState
|
|
62
60
|
}) => (0, _extends2.default)({
|
|
63
61
|
padding: 9,
|
|
@@ -67,9 +65,7 @@ const SwitchBaseRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
67
65
|
}, ownerState.edge === 'end' && {
|
|
68
66
|
marginRight: ownerState.size === 'small' ? -3 : -12
|
|
69
67
|
}));
|
|
70
|
-
const SwitchBaseInput = (0, _styled.default)('input'
|
|
71
|
-
skipSx: true
|
|
72
|
-
})({
|
|
68
|
+
const SwitchBaseInput = (0, _styled.default)('input')({
|
|
73
69
|
cursor: 'inherit',
|
|
74
70
|
position: 'absolute',
|
|
75
71
|
opacity: 0,
|
|
@@ -10,5 +10,5 @@ var _utils = require("@mui/utils");
|
|
|
10
10
|
function makeStyles() {
|
|
11
11
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: makeStyles is not longer exported from @mui/material/styles.
|
|
12
12
|
You have to import it from @mui/styles.
|
|
13
|
-
See https://mui.com/r/migration-v4/#material-
|
|
13
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : (0, _utils.formatMuiErrorMessage)(14));
|
|
14
14
|
}
|
|
@@ -10,5 +10,5 @@ var _utils = require("@mui/utils");
|
|
|
10
10
|
function withStyles() {
|
|
11
11
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withStyles is not longer exported from @mui/material/styles.
|
|
12
12
|
You have to import it from @mui/styles.
|
|
13
|
-
See https://mui.com/r/migration-v4/#material-
|
|
13
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : (0, _utils.formatMuiErrorMessage)(15));
|
|
14
14
|
}
|
package/node/styles/withTheme.js
CHANGED
|
@@ -10,5 +10,5 @@ var _utils = require("@mui/utils");
|
|
|
10
10
|
function withTheme() {
|
|
11
11
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: withTheme is not longer exported from @mui/material/styles.
|
|
12
12
|
You have to import it from @mui/styles.
|
|
13
|
-
See https://mui.com/r/migration-v4/#material-
|
|
13
|
+
See https://mui.com/r/migration-v4/#mui-material-styles for more details.` : (0, _utils.formatMuiErrorMessage)(16));
|
|
14
14
|
}
|