@mui/material 5.14.0 → 5.14.1

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.
Files changed (54) hide show
  1. package/Button/Button.js +1 -1
  2. package/CHANGELOG.md +94 -3
  3. package/Card/Card.d.ts +2 -2
  4. package/CssBaseline/CssBaseline.js +2 -2
  5. package/Dialog/Dialog.d.ts +1 -1
  6. package/Drawer/Drawer.d.ts +1 -1
  7. package/Fab/Fab.js +1 -1
  8. package/FormControlLabel/FormControlLabel.js +11 -6
  9. package/Link/Link.d.ts +9 -7
  10. package/ListItem/ListItem.js +1 -1
  11. package/ListItemButton/ListItemButton.js +1 -1
  12. package/MenuItem/MenuItem.js +1 -1
  13. package/OverridableComponent.d.ts +7 -0
  14. package/Paper/Paper.d.ts +32 -30
  15. package/Paper/index.d.ts +1 -1
  16. package/Popover/Popover.d.ts +1 -1
  17. package/Slider/SliderValueLabel.d.ts +1 -6
  18. package/SvgIcon/SvgIcon.js +9 -9
  19. package/Typography/Typography.d.ts +66 -65
  20. package/index.js +1 -1
  21. package/legacy/Button/Button.js +1 -1
  22. package/legacy/CssBaseline/CssBaseline.js +2 -2
  23. package/legacy/Fab/Fab.js +1 -1
  24. package/legacy/FormControlLabel/FormControlLabel.js +11 -6
  25. package/legacy/ListItem/ListItem.js +1 -1
  26. package/legacy/ListItemButton/ListItemButton.js +1 -1
  27. package/legacy/MenuItem/MenuItem.js +1 -1
  28. package/legacy/SvgIcon/SvgIcon.js +9 -9
  29. package/legacy/index.js +1 -1
  30. package/legacy/useTouchRipple/useTouchRipple.js +2 -2
  31. package/modern/Button/Button.js +1 -1
  32. package/modern/Fab/Fab.js +1 -1
  33. package/modern/FormControlLabel/FormControlLabel.js +11 -6
  34. package/modern/ListItem/ListItem.js +1 -1
  35. package/modern/ListItemButton/ListItemButton.js +1 -1
  36. package/modern/MenuItem/MenuItem.js +1 -1
  37. package/modern/index.js +1 -1
  38. package/node/Button/Button.js +1 -1
  39. package/node/CssBaseline/CssBaseline.js +2 -2
  40. package/node/Fab/Fab.js +1 -1
  41. package/node/FormControlLabel/FormControlLabel.js +11 -6
  42. package/node/ListItem/ListItem.js +1 -1
  43. package/node/ListItemButton/ListItemButton.js +1 -1
  44. package/node/MenuItem/MenuItem.js +1 -1
  45. package/node/SvgIcon/SvgIcon.js +9 -9
  46. package/node/index.js +1 -1
  47. package/node/useTouchRipple/useTouchRipple.js +2 -2
  48. package/package.json +6 -6
  49. package/styles/components.d.ts +5 -0
  50. package/styles/overrides.d.ts +2 -0
  51. package/styles/props.d.ts +1 -1
  52. package/umd/material-ui.development.js +98 -93
  53. package/umd/material-ui.production.min.js +13 -13
  54. package/useTouchRipple/useTouchRipple.js +2 -2
package/legacy/Fab/Fab.js CHANGED
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
186
186
  * The component used for the root node.
187
187
  * Either a string to use a HTML element or a component.
188
188
  */
189
- component: PropTypes.elementType,
189
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
190
190
  /**
191
191
  * If `true`, the component is disabled.
192
192
  * @default false
@@ -9,6 +9,7 @@ import clsx from 'clsx';
9
9
  import { refType } from '@mui/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base';
11
11
  import { useFormControl } from '../FormControl';
12
+ import Stack from '../Stack';
12
13
  import Typography from '../Typography';
13
14
  import capitalize from '../utils/capitalize';
14
15
  import styled from '../styles/styled';
@@ -146,12 +147,16 @@ var FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel(i
146
147
  ownerState: ownerState,
147
148
  ref: ref
148
149
  }, other, {
149
- children: [/*#__PURE__*/React.cloneElement(control, controlProps), label, required && /*#__PURE__*/_jsxs(AsteriskComponent, {
150
- ownerState: ownerState,
151
- "aria-hidden": true,
152
- className: classes.asterisk,
153
- children: ["\u2009", '*']
154
- })]
150
+ children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(Stack, {
151
+ direction: "row",
152
+ alignItems: "center",
153
+ children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {
154
+ ownerState: ownerState,
155
+ "aria-hidden": true,
156
+ className: classes.asterisk,
157
+ children: ["\u2009", '*']
158
+ })]
159
+ }) : label]
155
160
  }));
156
161
  });
157
162
  process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
@@ -319,7 +319,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
319
319
  * The component used for the root node.
320
320
  * Either a string to use a HTML element or a component.
321
321
  */
322
- component: PropTypes.elementType,
322
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
323
323
  /**
324
324
  * The components used for each slot inside.
325
325
  *
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
195
195
  * The component used for the root node.
196
196
  * Either a string to use a HTML element or a component.
197
197
  */
198
- component: PropTypes.elementType,
198
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
199
199
  /**
200
200
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
201
201
  * The prop defaults to the value inherited from the parent List component.
@@ -201,7 +201,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
201
201
  * The component used for the root node.
202
202
  * Either a string to use a HTML element or a component.
203
203
  */
204
- component: PropTypes.elementType,
204
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
205
205
  /**
206
206
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
207
207
  * The prop defaults to the value inherited from the parent Menu component.
@@ -29,7 +29,7 @@ var SvgIconRoot = styled('svg', {
29
29
  return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
30
30
  }
31
31
  })(function (_ref) {
32
- 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, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
32
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
33
33
  var theme = _ref.theme,
34
34
  ownerState = _ref.ownerState;
35
35
  return {
@@ -41,19 +41,19 @@ var SvgIconRoot = styled('svg', {
41
41
  // e.g. heroicons uses fill="none" and stroke="currentColor"
42
42
  fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
43
43
  flexShrink: 0,
44
- transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
45
- duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
44
+ transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
45
+ duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
46
46
  }),
47
47
  fontSize: {
48
48
  inherit: 'inherit',
49
- 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',
50
- 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',
51
- 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.1875rem'
49
+ small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
50
+ medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
51
+ large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
52
52
  }[ownerState.fontSize],
53
53
  // TODO v5 deprecate, v6 remove for sx
54
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
55
- action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
56
- disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
54
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
55
+ action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
56
+ disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
57
57
  inherit: undefined
58
58
  }[ownerState.color]
59
59
  };
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.0
2
+ * @mui/material v5.14.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -30,7 +30,7 @@ var useTouchRipple = function useTouchRipple(props) {
30
30
  keydownRef.current = true;
31
31
  rippleRef.current.stop(event, function () {
32
32
  var _rippleRef$current2;
33
- rippleRef == null ? void 0 : (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
33
+ rippleRef == null || (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
34
34
  });
35
35
  }
36
36
  });
@@ -41,7 +41,7 @@ var useTouchRipple = function useTouchRipple(props) {
41
41
  keydownRef.current = false;
42
42
  rippleRef.current.stop(event, function () {
43
43
  var _rippleRef$current3;
44
- rippleRef == null ? void 0 : (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
44
+ rippleRef == null || (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
45
45
  });
46
46
  }
47
47
  });
@@ -306,7 +306,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
306
306
  * The component used for the root node.
307
307
  * Either a string to use a HTML element or a component.
308
308
  */
309
- component: PropTypes.elementType,
309
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
310
310
  /**
311
311
  * If `true`, the component is disabled.
312
312
  * @default false
package/modern/Fab/Fab.js CHANGED
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
183
183
  * The component used for the root node.
184
184
  * Either a string to use a HTML element or a component.
185
185
  */
186
- component: PropTypes.elementType,
186
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
187
187
  /**
188
188
  * If `true`, the component is disabled.
189
189
  * @default false
@@ -9,6 +9,7 @@ import clsx from 'clsx';
9
9
  import { refType } from '@mui/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base';
11
11
  import { useFormControl } from '../FormControl';
12
+ import Stack from '../Stack';
12
13
  import Typography from '../Typography';
13
14
  import capitalize from '../utils/capitalize';
14
15
  import styled from '../styles/styled';
@@ -149,12 +150,16 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
149
150
  ownerState: ownerState,
150
151
  ref: ref
151
152
  }, other, {
152
- children: [/*#__PURE__*/React.cloneElement(control, controlProps), label, required && /*#__PURE__*/_jsxs(AsteriskComponent, {
153
- ownerState: ownerState,
154
- "aria-hidden": true,
155
- className: classes.asterisk,
156
- children: ["\u2009", '*']
157
- })]
153
+ children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/_jsxs(Stack, {
154
+ direction: "row",
155
+ alignItems: "center",
156
+ children: [label, /*#__PURE__*/_jsxs(AsteriskComponent, {
157
+ ownerState: ownerState,
158
+ "aria-hidden": true,
159
+ className: classes.asterisk,
160
+ children: ["\u2009", '*']
161
+ })]
162
+ }) : label]
158
163
  }));
159
164
  });
160
165
  process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
314
314
  * The component used for the root node.
315
315
  * Either a string to use a HTML element or a component.
316
316
  */
317
- component: PropTypes.elementType,
317
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
318
318
  /**
319
319
  * The components used for each slot inside.
320
320
  *
@@ -193,7 +193,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
193
193
  * The component used for the root node.
194
194
  * Either a string to use a HTML element or a component.
195
195
  */
196
- component: PropTypes.elementType,
196
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
197
197
  /**
198
198
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
199
199
  * The prop defaults to the value inherited from the parent List component.
@@ -209,7 +209,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
209
209
  * The component used for the root node.
210
210
  * Either a string to use a HTML element or a component.
211
211
  */
212
- component: PropTypes.elementType,
212
+ component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
213
213
  /**
214
214
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
215
215
  * The prop defaults to the value inherited from the parent Menu component.
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.0
2
+ * @mui/material v5.14.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -314,7 +314,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
314
314
  * The component used for the root node.
315
315
  * Either a string to use a HTML element or a component.
316
316
  */
317
- component: _propTypes.default.elementType,
317
+ component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
318
318
  /**
319
319
  * If `true`, the component is disabled.
320
320
  * @default false
@@ -39,7 +39,7 @@ const body = theme => (0, _extends2.default)({
39
39
  });
40
40
  exports.body = body;
41
41
  const styles = (theme, enableColorScheme = false) => {
42
- var _theme$components, _theme$components$Mui;
42
+ var _theme$components;
43
43
  const colorSchemeStyles = {};
44
44
  if (enableColorScheme && theme.colorSchemes) {
45
45
  Object.entries(theme.colorSchemes).forEach(([key, scheme]) => {
@@ -67,7 +67,7 @@ const styles = (theme, enableColorScheme = false) => {
67
67
  }
68
68
  })
69
69
  }, colorSchemeStyles);
70
- const themeOverrides = (_theme$components = theme.components) == null ? void 0 : (_theme$components$Mui = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components$Mui.styleOverrides;
70
+ const themeOverrides = (_theme$components = theme.components) == null || (_theme$components = _theme$components.MuiCssBaseline) == null ? void 0 : _theme$components.styleOverrides;
71
71
  if (themeOverrides) {
72
72
  defaultStyles = [defaultStyles, themeOverrides];
73
73
  }
package/node/Fab/Fab.js CHANGED
@@ -194,7 +194,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
194
194
  * The component used for the root node.
195
195
  * Either a string to use a HTML element or a component.
196
196
  */
197
- component: _propTypes.default.elementType,
197
+ component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
198
198
  /**
199
199
  * If `true`, the component is disabled.
200
200
  * @default false
@@ -14,6 +14,7 @@ var _clsx = _interopRequireDefault(require("clsx"));
14
14
  var _utils = require("@mui/utils");
15
15
  var _base = require("@mui/base");
16
16
  var _FormControl = require("../FormControl");
17
+ var _Stack = _interopRequireDefault(require("../Stack"));
17
18
  var _Typography = _interopRequireDefault(require("../Typography"));
18
19
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
19
20
  var _styled = _interopRequireDefault(require("../styles/styled"));
@@ -158,12 +159,16 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
158
159
  ownerState: ownerState,
159
160
  ref: ref
160
161
  }, other, {
161
- children: [/*#__PURE__*/React.cloneElement(control, controlProps), label, required && /*#__PURE__*/(0, _jsxRuntime.jsxs)(AsteriskComponent, {
162
- ownerState: ownerState,
163
- "aria-hidden": true,
164
- className: classes.asterisk,
165
- children: ["\u2009", '*']
166
- })]
162
+ children: [/*#__PURE__*/React.cloneElement(control, controlProps), required ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Stack.default, {
163
+ direction: "row",
164
+ alignItems: "center",
165
+ children: [label, /*#__PURE__*/(0, _jsxRuntime.jsxs)(AsteriskComponent, {
166
+ ownerState: ownerState,
167
+ "aria-hidden": true,
168
+ className: classes.asterisk,
169
+ children: ["\u2009", '*']
170
+ })]
171
+ }) : label]
167
172
  }));
168
173
  });
169
174
  process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-proptypes */ = {
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes /* remove-proptypes *
323
323
  * The component used for the root node.
324
324
  * Either a string to use a HTML element or a component.
325
325
  */
326
- component: _propTypes.default.elementType,
326
+ component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
327
327
  /**
328
328
  * The components used for each slot inside.
329
329
  *
@@ -202,7 +202,7 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes /* remove-propt
202
202
  * The component used for the root node.
203
203
  * Either a string to use a HTML element or a component.
204
204
  */
205
- component: _propTypes.default.elementType,
205
+ component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
206
206
  /**
207
207
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
208
208
  * The prop defaults to the value inherited from the parent List component.
@@ -218,7 +218,7 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes *
218
218
  * The component used for the root node.
219
219
  * Either a string to use a HTML element or a component.
220
220
  */
221
- component: _propTypes.default.elementType,
221
+ component: _propTypes.default /* @typescript-to-proptypes-ignore */.elementType,
222
222
  /**
223
223
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
224
224
  * The prop defaults to the value inherited from the parent Menu component.
@@ -44,7 +44,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
44
44
  theme,
45
45
  ownerState
46
46
  }) => {
47
- 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, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
47
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
48
48
  return {
49
49
  userSelect: 'none',
50
50
  width: '1em',
@@ -54,19 +54,19 @@ const SvgIconRoot = (0, _styled.default)('svg', {
54
54
  // e.g. heroicons uses fill="none" and stroke="currentColor"
55
55
  fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
56
56
  flexShrink: 0,
57
- transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
58
- duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
57
+ transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
58
+ duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
59
59
  }),
60
60
  fontSize: {
61
61
  inherit: 'inherit',
62
- 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',
63
- 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',
64
- 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.1875rem'
62
+ small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
63
+ medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
64
+ large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
65
65
  }[ownerState.fontSize],
66
66
  // TODO v5 deprecate, v6 remove for sx
67
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
68
- action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
69
- disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
67
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
68
+ action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
69
+ disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
70
70
  inherit: undefined
71
71
  }[ownerState.color]
72
72
  };
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.0
2
+ * @mui/material v5.14.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -38,7 +38,7 @@ const useTouchRipple = props => {
38
38
  keydownRef.current = true;
39
39
  rippleRef.current.stop(event, () => {
40
40
  var _rippleRef$current2;
41
- rippleRef == null ? void 0 : (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
41
+ rippleRef == null || (_rippleRef$current2 = rippleRef.current) == null ? void 0 : _rippleRef$current2.start(event);
42
42
  });
43
43
  }
44
44
  });
@@ -49,7 +49,7 @@ const useTouchRipple = props => {
49
49
  keydownRef.current = false;
50
50
  rippleRef.current.stop(event, () => {
51
51
  var _rippleRef$current3;
52
- rippleRef == null ? void 0 : (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
52
+ rippleRef == null || (_rippleRef$current3 = rippleRef.current) == null ? void 0 : _rippleRef$current3.pulsate(event);
53
53
  });
54
54
  }
55
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.14.0",
3
+ "version": "5.14.1",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -45,12 +45,12 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@babel/runtime": "^7.22.5",
49
- "@mui/base": "5.0.0-beta.7",
50
- "@mui/core-downloads-tracker": "^5.14.0",
51
- "@mui/system": "^5.14.0",
48
+ "@babel/runtime": "^7.22.6",
49
+ "@mui/base": "5.0.0-beta.8",
50
+ "@mui/core-downloads-tracker": "^5.14.1",
51
+ "@mui/system": "^5.14.1",
52
52
  "@mui/types": "^7.2.4",
53
- "@mui/utils": "^5.13.7",
53
+ "@mui/utils": "^5.14.1",
54
54
  "@types/react-transition-group": "^4.4.6",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.2",
@@ -338,6 +338,11 @@ export interface Components<Theme = unknown> {
338
338
  styleOverrides?: ComponentsOverrides<Theme>['MuiMenuItem'];
339
339
  variants?: ComponentsVariants['MuiMenuItem'];
340
340
  };
341
+ MuiMenuList?: {
342
+ defaultProps?: ComponentsProps['MuiMenuList'];
343
+ styleOverrides?: ComponentsOverrides<Theme>['MuiMenuList'];
344
+ variants?: ComponentsVariants['MuiMenuList'];
345
+ };
341
346
  MuiMobileStepper?: {
342
347
  defaultProps?: ComponentsProps['MuiMobileStepper'];
343
348
  styleOverrides?: ComponentsOverrides<Theme>['MuiMobileStepper'];
@@ -66,6 +66,7 @@ import { ListItemTextClassKey } from '../ListItemText';
66
66
  import { ListSubheaderClassKey } from '../ListSubheader';
67
67
  import { MenuClassKey } from '../Menu';
68
68
  import { MenuItemClassKey } from '../MenuItem';
69
+ import { MenuListClassKey } from '../MenuList';
69
70
  import { MobileStepperClassKey } from '../MobileStepper';
70
71
  import { ModalClassKey } from '../Modal';
71
72
  import { NativeSelectClassKey } from '../NativeSelect';
@@ -204,6 +205,7 @@ export interface ComponentNameToClassKey {
204
205
  MuiListSubheader: ListSubheaderClassKey;
205
206
  MuiMenu: MenuClassKey;
206
207
  MuiMenuItem: MenuItemClassKey;
208
+ MuiMenuList: MenuListClassKey;
207
209
  MuiMobileStepper: MobileStepperClassKey;
208
210
  MuiModal: ModalClassKey;
209
211
  MuiNativeSelect: NativeSelectClassKey;
package/styles/props.d.ts CHANGED
@@ -179,7 +179,7 @@ export interface ComponentsPropsList {
179
179
  MuiInputBase: InputBaseProps;
180
180
  MuiInputLabel: InputLabelProps;
181
181
  MuiLinearProgress: LinearProgressProps;
182
- MuiLink: LinkProps;
182
+ MuiLink: LinkProps<React.ElementType>;
183
183
  MuiList: ListProps;
184
184
  MuiListItem: ListItemProps;
185
185
  MuiListItemButton: ListItemButtonProps;