@mui/material 5.11.6 → 5.11.8

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 (51) hide show
  1. package/CHANGELOG.md +141 -1
  2. package/Checkbox/Checkbox.d.ts +3 -0
  3. package/Checkbox/Checkbox.js +3 -0
  4. package/FormLabel/FormLabel.d.ts +51 -45
  5. package/InputLabel/InputLabel.d.ts +70 -57
  6. package/MenuList/MenuList.d.ts +1 -1
  7. package/MenuList/MenuList.js +1 -1
  8. package/Popper/Popper.d.ts +19 -1
  9. package/Radio/Radio.js +2 -0
  10. package/Select/SelectInput.js +1 -1
  11. package/Switch/Switch.js +2 -0
  12. package/TabScrollButton/TabScrollButton.d.ts +1 -0
  13. package/TabScrollButton/TabScrollButton.js +1 -0
  14. package/Tooltip/Tooltip.js +9 -9
  15. package/index.js +1 -1
  16. package/internal/SwitchBase.d.ts +5 -0
  17. package/internal/SwitchBase.js +1 -1
  18. package/legacy/Checkbox/Checkbox.js +3 -0
  19. package/legacy/MenuList/MenuList.js +1 -1
  20. package/legacy/Radio/Radio.js +2 -0
  21. package/legacy/Select/SelectInput.js +1 -1
  22. package/legacy/Switch/Switch.js +2 -0
  23. package/legacy/TabScrollButton/TabScrollButton.js +1 -0
  24. package/legacy/Tooltip/Tooltip.js +9 -9
  25. package/legacy/index.js +1 -1
  26. package/legacy/internal/SwitchBase.js +2 -1
  27. package/legacy/styles/CssVarsProvider.js +3 -1
  28. package/modern/Checkbox/Checkbox.js +3 -0
  29. package/modern/MenuList/MenuList.js +1 -1
  30. package/modern/Radio/Radio.js +2 -0
  31. package/modern/Select/SelectInput.js +1 -1
  32. package/modern/Switch/Switch.js +2 -0
  33. package/modern/TabScrollButton/TabScrollButton.js +1 -0
  34. package/modern/Tooltip/Tooltip.js +9 -9
  35. package/modern/index.js +1 -1
  36. package/modern/internal/SwitchBase.js +1 -1
  37. package/modern/styles/CssVarsProvider.js +3 -1
  38. package/node/Checkbox/Checkbox.js +3 -0
  39. package/node/MenuList/MenuList.js +1 -1
  40. package/node/Radio/Radio.js +2 -0
  41. package/node/Select/SelectInput.js +1 -1
  42. package/node/Switch/Switch.js +2 -0
  43. package/node/TabScrollButton/TabScrollButton.js +1 -0
  44. package/node/Tooltip/Tooltip.js +9 -9
  45. package/node/index.js +1 -1
  46. package/node/internal/SwitchBase.js +1 -1
  47. package/node/styles/CssVarsProvider.js +3 -1
  48. package/package.json +5 -5
  49. package/styles/CssVarsProvider.js +3 -1
  50. package/umd/material-ui.development.js +149 -72
  51. package/umd/material-ui.production.min.js +20 -20
@@ -141,10 +141,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
141
141
  defaultChecked: PropTypes.bool,
142
142
  /**
143
143
  * If `true`, the component is disabled.
144
+ * @default false
144
145
  */
145
146
  disabled: PropTypes.bool,
146
147
  /**
147
148
  * If `true`, the ripple effect is disabled.
149
+ * @default false
148
150
  */
149
151
  disableRipple: PropTypes.bool,
150
152
  /**
@@ -186,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
186
188
  onChange: PropTypes.func,
187
189
  /**
188
190
  * If `true`, the `input` element is required.
191
+ * @default false
189
192
  */
190
193
  required: PropTypes.bool,
191
194
  /**
@@ -71,7 +71,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
71
71
  }
72
72
 
73
73
  /**
74
- * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
74
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
75
75
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
76
76
  * use it separately you need to move focus into the component manually. Once
77
77
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -154,6 +154,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
154
154
  disabled: PropTypes.bool,
155
155
  /**
156
156
  * If `true`, the ripple effect is disabled.
157
+ * @default false
157
158
  */
158
159
  disableRipple: PropTypes.bool,
159
160
  /**
@@ -187,6 +188,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
187
188
  onChange: PropTypes.func,
188
189
  /**
189
190
  * If `true`, the `input` element is required.
191
+ * @default false
190
192
  */
191
193
  required: PropTypes.bool,
192
194
  /**
@@ -296,7 +296,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
296
296
  if (!readOnly) {
297
297
  var validKeys = [' ', 'ArrowUp', 'ArrowDown',
298
298
  // The native select doesn't respond to enter on macOS, but it's recommended by
299
- // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
299
+ // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
300
300
  'Enter'];
301
301
  if (validKeys.indexOf(event.key) !== -1) {
302
302
  event.preventDefault();
@@ -251,6 +251,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
251
251
  disabled: PropTypes.bool,
252
252
  /**
253
253
  * If `true`, the ripple effect is disabled.
254
+ * @default false
254
255
  */
255
256
  disableRipple: PropTypes.bool,
256
257
  /**
@@ -287,6 +288,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
287
288
  onChange: PropTypes.func,
288
289
  /**
289
290
  * If `true`, the `input` element is required.
291
+ * @default false
290
292
  */
291
293
  required: PropTypes.bool,
292
294
  /**
@@ -101,6 +101,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
101
101
  direction: PropTypes.oneOf(['left', 'right']).isRequired,
102
102
  /**
103
103
  * If `true`, the component is disabled.
104
+ * @default false
104
105
  */
105
106
  disabled: PropTypes.bool,
106
107
  /**
@@ -185,6 +185,10 @@ var TooltipArrow = styled('span', {
185
185
  });
186
186
  var hystersisOpen = false;
187
187
  var hystersisTimer = null;
188
+ var cursorPosition = {
189
+ x: 0,
190
+ y: 0
191
+ };
188
192
  export function testReset() {
189
193
  hystersisOpen = false;
190
194
  clearTimeout(hystersisTimer);
@@ -447,17 +451,13 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
447
451
  if (!title && title !== 0) {
448
452
  open = false;
449
453
  }
450
- var positionRef = React.useRef({
451
- x: 0,
452
- y: 0
453
- });
454
454
  var popperRef = React.useRef();
455
455
  var handleMouseMove = function handleMouseMove(event) {
456
456
  var childrenProps = children.props;
457
457
  if (childrenProps.onMouseMove) {
458
458
  childrenProps.onMouseMove(event);
459
459
  }
460
- positionRef.current = {
460
+ cursorPosition = {
461
461
  x: event.clientX,
462
462
  y: event.clientY
463
463
  };
@@ -564,10 +564,10 @@ var Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
564
564
  anchorEl: followCursor ? {
565
565
  getBoundingClientRect: function getBoundingClientRect() {
566
566
  return {
567
- top: positionRef.current.y,
568
- left: positionRef.current.x,
569
- right: positionRef.current.x,
570
- bottom: positionRef.current.y,
567
+ top: cursorPosition.y,
568
+ left: cursorPosition.x,
569
+ right: cursorPosition.x,
570
+ bottom: cursorPosition.y,
571
571
  width: 0,
572
572
  height: 0
573
573
  };
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.6
2
+ * @mui/material v5.11.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -72,7 +72,8 @@ var SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref) {
72
72
  onChange = props.onChange,
73
73
  onFocus = props.onFocus,
74
74
  readOnly = props.readOnly,
75
- required = props.required,
75
+ _props$required = props.required,
76
+ required = _props$required === void 0 ? false : _props$required,
76
77
  tabIndex = props.tabIndex,
77
78
  type = props.type,
78
79
  value = props.value,
@@ -5,7 +5,9 @@ import createTypography from './createTypography';
5
5
  import excludeVariablesFromRoot from './excludeVariablesFromRoot';
6
6
  var shouldSkipGeneratingVar = function shouldSkipGeneratingVar(keys) {
7
7
  var _keys$;
8
- return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
8
+ return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
9
+ // ends with sxConfig
10
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
9
11
  };
10
12
  var defaultTheme = experimental_extendTheme();
11
13
  var _createCssVarsProvide = createCssVarsProvider({
@@ -139,10 +139,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
139
139
  defaultChecked: PropTypes.bool,
140
140
  /**
141
141
  * If `true`, the component is disabled.
142
+ * @default false
142
143
  */
143
144
  disabled: PropTypes.bool,
144
145
  /**
145
146
  * If `true`, the ripple effect is disabled.
147
+ * @default false
146
148
  */
147
149
  disableRipple: PropTypes.bool,
148
150
  /**
@@ -184,6 +186,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
184
186
  onChange: PropTypes.func,
185
187
  /**
186
188
  * If `true`, the `input` element is required.
189
+ * @default false
187
190
  */
188
191
  required: PropTypes.bool,
189
192
  /**
@@ -72,7 +72,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
72
72
  }
73
73
 
74
74
  /**
75
- * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
75
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
76
76
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
77
77
  * use it separately you need to move focus into the component manually. Once
78
78
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -155,6 +155,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
155
155
  disabled: PropTypes.bool,
156
156
  /**
157
157
  * If `true`, the ripple effect is disabled.
158
+ * @default false
158
159
  */
159
160
  disableRipple: PropTypes.bool,
160
161
  /**
@@ -188,6 +189,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
188
189
  onChange: PropTypes.func,
189
190
  /**
190
191
  * If `true`, the `input` element is required.
192
+ * @default false
191
193
  */
192
194
  required: PropTypes.bool,
193
195
  /**
@@ -289,7 +289,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
289
289
  if (!readOnly) {
290
290
  const validKeys = [' ', 'ArrowUp', 'ArrowDown',
291
291
  // The native select doesn't respond to enter on macOS, but it's recommended by
292
- // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
292
+ // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
293
293
  'Enter'];
294
294
  if (validKeys.indexOf(event.key) !== -1) {
295
295
  event.preventDefault();
@@ -258,6 +258,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
258
258
  disabled: PropTypes.bool,
259
259
  /**
260
260
  * If `true`, the ripple effect is disabled.
261
+ * @default false
261
262
  */
262
263
  disableRipple: PropTypes.bool,
263
264
  /**
@@ -294,6 +295,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
294
295
  onChange: PropTypes.func,
295
296
  /**
296
297
  * If `true`, the `input` element is required.
298
+ * @default false
297
299
  */
298
300
  required: PropTypes.bool,
299
301
  /**
@@ -105,6 +105,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
105
105
  direction: PropTypes.oneOf(['left', 'right']).isRequired,
106
106
  /**
107
107
  * If `true`, the component is disabled.
108
+ * @default false
108
109
  */
109
110
  disabled: PropTypes.bool,
110
111
  /**
@@ -193,6 +193,10 @@ const TooltipArrow = styled('span', {
193
193
  }));
194
194
  let hystersisOpen = false;
195
195
  let hystersisTimer = null;
196
+ let cursorPosition = {
197
+ x: 0,
198
+ y: 0
199
+ };
196
200
  export function testReset() {
197
201
  hystersisOpen = false;
198
202
  clearTimeout(hystersisTimer);
@@ -433,17 +437,13 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
433
437
  if (!title && title !== 0) {
434
438
  open = false;
435
439
  }
436
- const positionRef = React.useRef({
437
- x: 0,
438
- y: 0
439
- });
440
440
  const popperRef = React.useRef();
441
441
  const handleMouseMove = event => {
442
442
  const childrenProps = children.props;
443
443
  if (childrenProps.onMouseMove) {
444
444
  childrenProps.onMouseMove(event);
445
445
  }
446
- positionRef.current = {
446
+ cursorPosition = {
447
447
  x: event.clientX,
448
448
  y: event.clientY
449
449
  };
@@ -548,10 +548,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
548
548
  placement: placement,
549
549
  anchorEl: followCursor ? {
550
550
  getBoundingClientRect: () => ({
551
- top: positionRef.current.y,
552
- left: positionRef.current.x,
553
- right: positionRef.current.x,
554
- bottom: positionRef.current.y,
551
+ top: cursorPosition.y,
552
+ left: cursorPosition.x,
553
+ right: cursorPosition.x,
554
+ bottom: cursorPosition.y,
555
555
  width: 0,
556
556
  height: 0
557
557
  })
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.6
2
+ * @mui/material v5.11.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -72,7 +72,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
72
72
  onChange,
73
73
  onFocus,
74
74
  readOnly,
75
- required,
75
+ required = false,
76
76
  tabIndex,
77
77
  type,
78
78
  value
@@ -3,7 +3,9 @@ import { unstable_createCssVarsProvider as createCssVarsProvider, unstable_style
3
3
  import experimental_extendTheme from './experimental_extendTheme';
4
4
  import createTypography from './createTypography';
5
5
  import excludeVariablesFromRoot from './excludeVariablesFromRoot';
6
- const shouldSkipGeneratingVar = keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
6
+ const shouldSkipGeneratingVar = keys => !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
7
+ // ends with sxConfig
8
+ keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
7
9
  const defaultTheme = experimental_extendTheme();
8
10
  const {
9
11
  CssVarsProvider,
@@ -149,10 +149,12 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
149
149
  defaultChecked: _propTypes.default.bool,
150
150
  /**
151
151
  * If `true`, the component is disabled.
152
+ * @default false
152
153
  */
153
154
  disabled: _propTypes.default.bool,
154
155
  /**
155
156
  * If `true`, the ripple effect is disabled.
157
+ * @default false
156
158
  */
157
159
  disableRipple: _propTypes.default.bool,
158
160
  /**
@@ -194,6 +196,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
194
196
  onChange: _propTypes.default.func,
195
197
  /**
196
198
  * If `true`, the `input` element is required.
199
+ * @default false
197
200
  */
198
201
  required: _propTypes.default.bool,
199
202
  /**
@@ -81,7 +81,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
81
81
  }
82
82
 
83
83
  /**
84
- * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
84
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
85
85
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
86
86
  * use it separately you need to move focus into the component manually. Once
87
87
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -165,6 +165,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
165
165
  disabled: _propTypes.default.bool,
166
166
  /**
167
167
  * If `true`, the ripple effect is disabled.
168
+ * @default false
168
169
  */
169
170
  disableRipple: _propTypes.default.bool,
170
171
  /**
@@ -198,6 +199,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
198
199
  onChange: _propTypes.default.func,
199
200
  /**
200
201
  * If `true`, the `input` element is required.
202
+ * @default false
201
203
  */
202
204
  required: _propTypes.default.bool,
203
205
  /**
@@ -296,7 +296,7 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
296
296
  if (!readOnly) {
297
297
  const validKeys = [' ', 'ArrowUp', 'ArrowDown',
298
298
  // The native select doesn't respond to enter on macOS, but it's recommended by
299
- // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
299
+ // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
300
300
  'Enter'];
301
301
  if (validKeys.indexOf(event.key) !== -1) {
302
302
  event.preventDefault();
@@ -265,6 +265,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
265
265
  disabled: _propTypes.default.bool,
266
266
  /**
267
267
  * If `true`, the ripple effect is disabled.
268
+ * @default false
268
269
  */
269
270
  disableRipple: _propTypes.default.bool,
270
271
  /**
@@ -301,6 +302,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
301
302
  onChange: _propTypes.default.func,
302
303
  /**
303
304
  * If `true`, the `input` element is required.
305
+ * @default false
304
306
  */
305
307
  required: _propTypes.default.bool,
306
308
  /**
@@ -113,6 +113,7 @@ process.env.NODE_ENV !== "production" ? TabScrollButton.propTypes /* remove-prop
113
113
  direction: _propTypes.default.oneOf(['left', 'right']).isRequired,
114
114
  /**
115
115
  * If `true`, the component is disabled.
116
+ * @default false
116
117
  */
117
118
  disabled: _propTypes.default.bool,
118
119
  /**
@@ -202,6 +202,10 @@ const TooltipArrow = (0, _styled.default)('span', {
202
202
  }));
203
203
  let hystersisOpen = false;
204
204
  let hystersisTimer = null;
205
+ let cursorPosition = {
206
+ x: 0,
207
+ y: 0
208
+ };
205
209
  function testReset() {
206
210
  hystersisOpen = false;
207
211
  clearTimeout(hystersisTimer);
@@ -443,17 +447,13 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
443
447
  if (!title && title !== 0) {
444
448
  open = false;
445
449
  }
446
- const positionRef = React.useRef({
447
- x: 0,
448
- y: 0
449
- });
450
450
  const popperRef = React.useRef();
451
451
  const handleMouseMove = event => {
452
452
  const childrenProps = children.props;
453
453
  if (childrenProps.onMouseMove) {
454
454
  childrenProps.onMouseMove(event);
455
455
  }
456
- positionRef.current = {
456
+ cursorPosition = {
457
457
  x: event.clientX,
458
458
  y: event.clientY
459
459
  };
@@ -559,10 +559,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
559
559
  placement: placement,
560
560
  anchorEl: followCursor ? {
561
561
  getBoundingClientRect: () => ({
562
- top: positionRef.current.y,
563
- left: positionRef.current.x,
564
- right: positionRef.current.x,
565
- bottom: positionRef.current.y,
562
+ top: cursorPosition.y,
563
+ left: cursorPosition.x,
564
+ right: cursorPosition.x,
565
+ bottom: cursorPosition.y,
566
566
  width: 0,
567
567
  height: 0
568
568
  })
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.6
2
+ * @mui/material v5.11.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -80,7 +80,7 @@ const SwitchBase = /*#__PURE__*/React.forwardRef(function SwitchBase(props, ref)
80
80
  onChange,
81
81
  onFocus,
82
82
  readOnly,
83
- required,
83
+ required = false,
84
84
  tabIndex,
85
85
  type,
86
86
  value
@@ -12,7 +12,9 @@ var _createTypography = _interopRequireDefault(require("./createTypography"));
12
12
  var _excludeVariablesFromRoot = _interopRequireDefault(require("./excludeVariablesFromRoot"));
13
13
  const shouldSkipGeneratingVar = keys => {
14
14
  var _keys$;
15
- return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
15
+ return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
16
+ // ends with sxConfig
17
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
16
18
  };
17
19
  exports.shouldSkipGeneratingVar = shouldSkipGeneratingVar;
18
20
  const defaultTheme = (0, _experimental_extendTheme.default)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.11.6",
3
+ "version": "5.11.8",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "React components that implement Google's Material Design.",
@@ -46,11 +46,11 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.20.7",
49
- "@mui/base": "5.0.0-alpha.115",
50
- "@mui/core-downloads-tracker": "^5.11.6",
51
- "@mui/system": "^5.11.5",
49
+ "@mui/base": "5.0.0-alpha.117",
50
+ "@mui/core-downloads-tracker": "^5.11.8",
51
+ "@mui/system": "^5.11.8",
52
52
  "@mui/types": "^7.2.3",
53
- "@mui/utils": "^5.11.2",
53
+ "@mui/utils": "^5.11.7",
54
54
  "@types/react-transition-group": "^4.4.5",
55
55
  "clsx": "^1.2.1",
56
56
  "csstype": "^3.1.1",
@@ -5,7 +5,9 @@ import createTypography from './createTypography';
5
5
  import excludeVariablesFromRoot from './excludeVariablesFromRoot';
6
6
  const shouldSkipGeneratingVar = keys => {
7
7
  var _keys$;
8
- return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
8
+ return !!keys[0].match(/(typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||
9
+ // ends with sxConfig
10
+ keys[0] === 'palette' && !!((_keys$ = keys[1]) != null && _keys$.match(/(mode|contrastThreshold|tonalOffset)/));
9
11
  };
10
12
  const defaultTheme = experimental_extendTheme();
11
13
  const {