@mui/material 5.14.12 → 5.14.14

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 (165) hide show
  1. package/Alert/Alert.d.ts +1 -1
  2. package/Alert/Alert.js +1 -1
  3. package/AppBar/AppBar.d.ts +5 -2
  4. package/AppBar/AppBar.js +2 -2
  5. package/AppBar/appBarClasses.d.ts +8 -0
  6. package/AppBar/appBarClasses.js +1 -1
  7. package/AvatarGroup/AvatarGroup.d.ts +6 -0
  8. package/AvatarGroup/AvatarGroup.js +12 -3
  9. package/Badge/Badge.d.ts +1 -1
  10. package/Badge/Badge.js +1 -1
  11. package/Button/Button.d.ts +1 -1
  12. package/Button/Button.js +1 -1
  13. package/ButtonGroup/ButtonGroup.d.ts +1 -1
  14. package/ButtonGroup/ButtonGroup.js +1 -1
  15. package/CHANGELOG.md +139 -0
  16. package/Checkbox/Checkbox.d.ts +1 -1
  17. package/Checkbox/Checkbox.js +2 -2
  18. package/Chip/Chip.d.ts +1 -1
  19. package/Chip/Chip.js +7 -1
  20. package/CircularProgress/CircularProgress.d.ts +1 -1
  21. package/CircularProgress/CircularProgress.js +1 -1
  22. package/Fab/Fab.d.ts +1 -1
  23. package/Fab/Fab.js +1 -1
  24. package/FilledInput/FilledInput.js +1 -1
  25. package/FormControl/FormControl.d.ts +1 -1
  26. package/FormControl/FormControl.js +1 -1
  27. package/FormLabel/FormLabel.d.ts +1 -1
  28. package/FormLabel/FormLabel.js +1 -1
  29. package/Icon/Icon.d.ts +1 -1
  30. package/Icon/Icon.js +1 -1
  31. package/IconButton/IconButton.d.ts +1 -1
  32. package/IconButton/IconButton.js +1 -1
  33. package/Input/Input.js +1 -1
  34. package/InputBase/InputBase.d.ts +1 -1
  35. package/InputBase/InputBase.js +1 -1
  36. package/InputLabel/InputLabel.js +1 -1
  37. package/LinearProgress/LinearProgress.d.ts +1 -1
  38. package/LinearProgress/LinearProgress.js +1 -1
  39. package/OutlinedInput/OutlinedInput.js +1 -1
  40. package/Pagination/Pagination.d.ts +4 -7
  41. package/Pagination/Pagination.js +2 -2
  42. package/PaginationItem/PaginationItem.d.ts +1 -1
  43. package/PaginationItem/PaginationItem.js +3 -3
  44. package/Radio/Radio.d.ts +1 -1
  45. package/Radio/Radio.js +1 -1
  46. package/Slider/Slider.d.ts +5 -2
  47. package/Slider/Slider.js +2 -2
  48. package/Slider/sliderClasses.d.ts +16 -0
  49. package/Slider/sliderClasses.js +1 -1
  50. package/SvgIcon/SvgIcon.d.ts +1 -1
  51. package/SvgIcon/SvgIcon.js +1 -1
  52. package/Switch/Switch.d.ts +1 -1
  53. package/Switch/Switch.js +1 -1
  54. package/Tabs/Tabs.js +30 -5
  55. package/TextField/TextField.d.ts +1 -1
  56. package/TextField/TextField.js +1 -1
  57. package/ToggleButton/ToggleButton.d.ts +1 -1
  58. package/ToggleButton/ToggleButton.js +1 -1
  59. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +1 -1
  60. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  61. package/index.js +1 -1
  62. package/legacy/Alert/Alert.js +1 -1
  63. package/legacy/AppBar/AppBar.js +2 -2
  64. package/legacy/AppBar/appBarClasses.js +1 -1
  65. package/legacy/AvatarGroup/AvatarGroup.js +12 -3
  66. package/legacy/Badge/Badge.js +1 -1
  67. package/legacy/Button/Button.js +1 -1
  68. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  69. package/legacy/Checkbox/Checkbox.js +2 -2
  70. package/legacy/Chip/Chip.js +7 -1
  71. package/legacy/CircularProgress/CircularProgress.js +1 -1
  72. package/legacy/Fab/Fab.js +1 -1
  73. package/legacy/FilledInput/FilledInput.js +1 -1
  74. package/legacy/FormControl/FormControl.js +1 -1
  75. package/legacy/FormLabel/FormLabel.js +1 -1
  76. package/legacy/Icon/Icon.js +1 -1
  77. package/legacy/IconButton/IconButton.js +1 -1
  78. package/legacy/Input/Input.js +1 -1
  79. package/legacy/InputBase/InputBase.js +1 -1
  80. package/legacy/InputLabel/InputLabel.js +1 -1
  81. package/legacy/LinearProgress/LinearProgress.js +1 -1
  82. package/legacy/OutlinedInput/OutlinedInput.js +1 -1
  83. package/legacy/Pagination/Pagination.js +2 -2
  84. package/legacy/PaginationItem/PaginationItem.js +3 -3
  85. package/legacy/Radio/Radio.js +1 -1
  86. package/legacy/Slider/Slider.js +2 -2
  87. package/legacy/Slider/sliderClasses.js +1 -1
  88. package/legacy/SvgIcon/SvgIcon.js +1 -1
  89. package/legacy/Switch/Switch.js +1 -1
  90. package/legacy/Tabs/Tabs.js +30 -5
  91. package/legacy/TextField/TextField.js +1 -1
  92. package/legacy/ToggleButton/ToggleButton.js +1 -1
  93. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  94. package/legacy/index.js +1 -1
  95. package/modern/Alert/Alert.js +1 -1
  96. package/modern/AppBar/AppBar.js +2 -2
  97. package/modern/AppBar/appBarClasses.js +1 -1
  98. package/modern/AvatarGroup/AvatarGroup.js +12 -3
  99. package/modern/Badge/Badge.js +1 -1
  100. package/modern/Button/Button.js +1 -1
  101. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  102. package/modern/Checkbox/Checkbox.js +2 -2
  103. package/modern/Chip/Chip.js +7 -1
  104. package/modern/CircularProgress/CircularProgress.js +1 -1
  105. package/modern/Fab/Fab.js +1 -1
  106. package/modern/FilledInput/FilledInput.js +1 -1
  107. package/modern/FormControl/FormControl.js +1 -1
  108. package/modern/FormLabel/FormLabel.js +1 -1
  109. package/modern/Icon/Icon.js +1 -1
  110. package/modern/IconButton/IconButton.js +1 -1
  111. package/modern/Input/Input.js +1 -1
  112. package/modern/InputBase/InputBase.js +1 -1
  113. package/modern/InputLabel/InputLabel.js +1 -1
  114. package/modern/LinearProgress/LinearProgress.js +1 -1
  115. package/modern/OutlinedInput/OutlinedInput.js +1 -1
  116. package/modern/Pagination/Pagination.js +2 -2
  117. package/modern/PaginationItem/PaginationItem.js +3 -3
  118. package/modern/Radio/Radio.js +1 -1
  119. package/modern/Slider/Slider.js +2 -2
  120. package/modern/Slider/sliderClasses.js +1 -1
  121. package/modern/SvgIcon/SvgIcon.js +1 -1
  122. package/modern/Switch/Switch.js +1 -1
  123. package/modern/Tabs/Tabs.js +27 -5
  124. package/modern/TextField/TextField.js +1 -1
  125. package/modern/ToggleButton/ToggleButton.js +1 -1
  126. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  127. package/modern/index.js +1 -1
  128. package/node/Alert/Alert.js +1 -1
  129. package/node/AppBar/AppBar.js +2 -2
  130. package/node/AppBar/appBarClasses.js +1 -1
  131. package/node/AvatarGroup/AvatarGroup.js +11 -3
  132. package/node/Badge/Badge.js +1 -1
  133. package/node/Button/Button.js +1 -1
  134. package/node/ButtonGroup/ButtonGroup.js +1 -1
  135. package/node/Checkbox/Checkbox.js +2 -2
  136. package/node/Chip/Chip.js +7 -1
  137. package/node/CircularProgress/CircularProgress.js +1 -1
  138. package/node/Fab/Fab.js +1 -1
  139. package/node/FilledInput/FilledInput.js +1 -1
  140. package/node/FormControl/FormControl.js +1 -1
  141. package/node/FormLabel/FormLabel.js +1 -1
  142. package/node/Icon/Icon.js +1 -1
  143. package/node/IconButton/IconButton.js +1 -1
  144. package/node/Input/Input.js +1 -1
  145. package/node/InputBase/InputBase.js +1 -1
  146. package/node/InputLabel/InputLabel.js +1 -1
  147. package/node/LinearProgress/LinearProgress.js +1 -1
  148. package/node/OutlinedInput/OutlinedInput.js +1 -1
  149. package/node/Pagination/Pagination.js +2 -2
  150. package/node/PaginationItem/PaginationItem.js +3 -3
  151. package/node/Radio/Radio.js +1 -1
  152. package/node/Slider/Slider.js +2 -2
  153. package/node/Slider/sliderClasses.js +1 -1
  154. package/node/SvgIcon/SvgIcon.js +1 -1
  155. package/node/Switch/Switch.js +1 -1
  156. package/node/Tabs/Tabs.js +30 -5
  157. package/node/TextField/TextField.js +1 -1
  158. package/node/ToggleButton/ToggleButton.js +1 -1
  159. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  160. package/node/index.js +1 -1
  161. package/package.json +7 -7
  162. package/styles/components.d.ts +1 -0
  163. package/styles/overrides.d.ts +2 -0
  164. package/umd/material-ui.development.js +86 -45
  165. package/umd/material-ui.production.min.js +4 -4
@@ -116,14 +116,14 @@ const PaginationItemPage = styled(ButtonBase, {
116
116
  [`&.${paginationItemClasses.selected}`]: {
117
117
  backgroundColor: (theme.vars || theme).palette.action.selected,
118
118
  '&:hover': {
119
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
119
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
120
120
  // Reset on touch devices, it doesn't add specificity
121
121
  '@media (hover: none)': {
122
122
  backgroundColor: (theme.vars || theme).palette.action.selected
123
123
  }
124
124
  },
125
125
  [`&.${paginationItemClasses.focusVisible}`]: {
126
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
126
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
127
127
  },
128
128
  [`&.${paginationItemClasses.disabled}`]: {
129
129
  opacity: 1,
@@ -287,7 +287,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
287
287
  /**
288
288
  * The active color.
289
289
  * It supports both default and custom theme colors, which can be added as shown in the
290
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
290
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
291
291
  * @default 'standard'
292
292
  */
293
293
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
@@ -148,7 +148,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
148
148
  /**
149
149
  * The color of the component.
150
150
  * It supports both default and custom theme colors, which can be added as shown in the
151
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
151
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
152
152
  * @default 'primary'
153
153
  */
154
154
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -622,10 +622,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
622
622
  /**
623
623
  * The color of the component.
624
624
  * It supports both default and custom theme colors, which can be added as shown in the
625
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
625
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
626
626
  * @default 'primary'
627
627
  */
628
- color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
628
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
629
629
  /**
630
630
  * The components used for each slot inside.
631
631
  *
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getSliderUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiSlider', slot);
5
5
  }
6
- const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
6
+ const sliderClasses = generateUtilityClasses('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'thumbColorError', 'thumbColorSuccess', 'thumbColorInfo', 'thumbColorWarning', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
7
7
  export default sliderClasses;
@@ -128,7 +128,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
128
128
  /**
129
129
  * The color of the component.
130
130
  * It supports both default and custom theme colors, which can be added as shown in the
131
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
131
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
132
132
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
133
133
  * @default 'inherit'
134
134
  */
@@ -246,7 +246,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
246
246
  /**
247
247
  * The color of the component.
248
248
  * It supports both default and custom theme colors, which can be added as shown in the
249
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
249
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
250
250
  * @default 'primary'
251
251
  */
252
252
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -501,23 +501,45 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
501
501
  updateIndicatorState();
502
502
  }
503
503
  });
504
+ let resizeObserver;
505
+
506
+ /**
507
+ * @type {MutationCallback}
508
+ */
509
+ const handleMutation = records => {
510
+ records.forEach(record => {
511
+ record.removedNodes.forEach(item => {
512
+ resizeObserver?.unobserve(item);
513
+ });
514
+ record.addedNodes.forEach(item => {
515
+ resizeObserver?.observe(item);
516
+ });
517
+ });
518
+ handleResize();
519
+ updateScrollButtonState();
520
+ };
504
521
  const win = ownerWindow(tabsRef.current);
505
522
  win.addEventListener('resize', handleResize);
506
- let resizeObserver;
523
+ let mutationObserver;
507
524
  if (typeof ResizeObserver !== 'undefined') {
508
525
  resizeObserver = new ResizeObserver(handleResize);
509
526
  Array.from(tabListRef.current.children).forEach(child => {
510
527
  resizeObserver.observe(child);
511
528
  });
512
529
  }
530
+ if (typeof MutationObserver !== 'undefined') {
531
+ mutationObserver = new MutationObserver(handleMutation);
532
+ mutationObserver.observe(tabListRef.current, {
533
+ childList: true
534
+ });
535
+ }
513
536
  return () => {
514
537
  handleResize.clear();
515
538
  win.removeEventListener('resize', handleResize);
516
- if (resizeObserver) {
517
- resizeObserver.disconnect();
518
- }
539
+ mutationObserver?.disconnect();
540
+ resizeObserver?.disconnect();
519
541
  };
520
- }, [updateIndicatorState]);
542
+ }, [updateIndicatorState, updateScrollButtonState]);
521
543
 
522
544
  /**
523
545
  * Toggle visibility of start and end scroll buttons
@@ -230,7 +230,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
230
230
  /**
231
231
  * The color of the component.
232
232
  * It supports both default and custom theme colors, which can be added as shown in the
233
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
233
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
234
234
  * @default 'primary'
235
235
  */
236
236
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -159,7 +159,7 @@ process.env.NODE_ENV !== "production" ? ToggleButton.propTypes /* remove-proptyp
159
159
  /**
160
160
  * The color of the button when it is in an active state.
161
161
  * It supports both default and custom theme colors, which can be added as shown in the
162
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
162
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
163
163
  * @default 'standard'
164
164
  */
165
165
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -175,7 +175,7 @@ process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-pr
175
175
  /**
176
176
  * The color of the button when it is selected.
177
177
  * It supports both default and custom theme colors, which can be added as shown in the
178
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
178
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
179
179
  * @default 'standard'
180
180
  */
181
181
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['standard', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.14.12
2
+ * @mui/material v5.14.14
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -235,7 +235,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
235
235
  /**
236
236
  * The color of the component. Unless provided, the value is taken from the `severity` prop.
237
237
  * It supports both default and custom theme colors, which can be added as shown in the
238
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
238
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
239
239
  */
240
240
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'success', 'warning']), _propTypes.default.string]),
241
241
  /**
@@ -162,10 +162,10 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
162
162
  /**
163
163
  * The color of the component.
164
164
  * It supports both default and custom theme colors, which can be added as shown in the
165
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
165
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
166
166
  * @default 'primary'
167
167
  */
168
- color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), _propTypes.default.string]),
168
+ color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
169
169
  /**
170
170
  * If true, the `color` prop is applied in dark mode.
171
171
  * @default false
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("../generateUtilityCl
11
11
  function getAppBarUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiAppBar', slot);
13
13
  }
14
- const appBarClasses = (0, _utils.unstable_generateUtilityClasses)('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
14
+ const appBarClasses = (0, _utils.unstable_generateUtilityClasses)('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
15
15
  var _default = exports.default = appBarClasses;
@@ -19,7 +19,7 @@ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
19
19
  var _Avatar = _interopRequireWildcard(require("../Avatar"));
20
20
  var _avatarGroupClasses = _interopRequireWildcard(require("./avatarGroupClasses"));
21
21
  var _jsxRuntime = require("react/jsx-runtime");
22
- const _excluded = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
22
+ const _excluded = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
23
23
  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); }
24
24
  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; }
25
25
  const SPACINGS = {
@@ -82,6 +82,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
82
82
  component = 'div',
83
83
  componentsProps = {},
84
84
  max = 5,
85
+ renderSurplus,
85
86
  slotProps = {},
86
87
  spacing = 'medium',
87
88
  total,
@@ -111,6 +112,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
111
112
  clampedMax = Math.min(totalAvatars + 1, clampedMax);
112
113
  const maxAvatars = Math.min(children.length, clampedMax - 1);
113
114
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
115
+ const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
114
116
  const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
115
117
  const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
116
118
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupRoot, (0, _extends2.default)({
@@ -119,7 +121,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
119
121
  className: (0, _clsx.default)(classes.root, className),
120
122
  ref: ref
121
123
  }, other, {
122
- children: [extraAvatars ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupAvatar, (0, _extends2.default)({
124
+ children: [extraAvatars ? /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarGroupAvatar, (0, _extends2.default)({
123
125
  ownerState: ownerState,
124
126
  variant: variant
125
127
  }, additionalAvatarSlotProps, {
@@ -127,7 +129,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
127
129
  style: (0, _extends2.default)({
128
130
  marginLeft
129
131
  }, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
130
- children: ["+", extraAvatars]
132
+ children: extraAvatarsElement
131
133
  })) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
132
134
  return /*#__PURE__*/React.cloneElement(child, {
133
135
  className: (0, _clsx.default)(child.props.className, classes.avatar),
@@ -185,6 +187,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
185
187
  }
186
188
  return null;
187
189
  }),
190
+ /**
191
+ * custom renderer of extraAvatars
192
+ * @param {number} surplus number of extra avatars
193
+ * @returns {React.ReactNode} custom element to display
194
+ */
195
+ renderSurplus: _propTypes.default.func,
188
196
  /**
189
197
  * The extra props for the slot components.
190
198
  * You can override the existing props or add new ones.
@@ -293,7 +293,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
293
293
  /**
294
294
  * The color of the component.
295
295
  * It supports both default and custom theme colors, which can be added as shown in the
296
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
296
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
297
297
  * @default 'default'
298
298
  */
299
299
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -309,7 +309,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
309
309
  /**
310
310
  * The color of the component.
311
311
  * It supports both default and custom theme colors, which can be added as shown in the
312
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
312
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
313
313
  * @default 'primary'
314
314
  */
315
315
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), _propTypes.default.string]),
@@ -243,7 +243,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes /* remove-proptype
243
243
  /**
244
244
  * The color of the component.
245
245
  * It supports both default and custom theme colors, which can be added as shown in the
246
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
246
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
247
247
  * @default 'primary'
248
248
  */
249
249
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -56,7 +56,7 @@ const CheckboxRoot = (0, _styled.default)(_SwitchBase.default, {
56
56
  color: (theme.vars || theme).palette.text.secondary
57
57
  }, !ownerState.disableRipple && {
58
58
  '&:hover': {
59
- backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
59
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
60
60
  // Reset on touch devices, it doesn't add specificity
61
61
  '@media (hover: none)': {
62
62
  backgroundColor: 'transparent'
@@ -141,7 +141,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
141
141
  /**
142
142
  * The color of the component.
143
143
  * It supports both default and custom theme colors, which can be added as shown in the
144
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
144
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
145
145
  * @default 'primary'
146
146
  */
147
147
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
package/node/Chip/Chip.js CHANGED
@@ -269,9 +269,15 @@ const ChipLabel = (0, _styled.default)('span', {
269
269
  paddingLeft: 12,
270
270
  paddingRight: 12,
271
271
  whiteSpace: 'nowrap'
272
+ }, ownerState.variant === 'outlined' && {
273
+ paddingLeft: 11,
274
+ paddingRight: 11
272
275
  }, ownerState.size === 'small' && {
273
276
  paddingLeft: 8,
274
277
  paddingRight: 8
278
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
279
+ paddingLeft: 7,
280
+ paddingRight: 7
275
281
  }));
276
282
  function isDeleteKeyboardEvent(keyboardEvent) {
277
283
  return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
@@ -436,7 +442,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
436
442
  /**
437
443
  * The color of the component.
438
444
  * It supports both default and custom theme colors, which can be added as shown in the
439
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
445
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
440
446
  * @default 'default'
441
447
  */
442
448
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -204,7 +204,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
204
204
  /**
205
205
  * The color of the component.
206
206
  * It supports both default and custom theme colors, which can be added as shown in the
207
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
207
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
208
208
  * @default 'primary'
209
209
  */
210
210
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
package/node/Fab/Fab.js CHANGED
@@ -186,7 +186,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
186
186
  /**
187
187
  * The color of the component.
188
188
  * It supports both default and custom theme colors, which can be added as shown in the
189
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
189
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
190
190
  * @default 'default'
191
191
  */
192
192
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
@@ -260,7 +260,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
260
260
  /**
261
261
  * The color of the component.
262
262
  * It supports both default and custom theme colors, which can be added as shown in the
263
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
263
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
264
264
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
265
265
  */
266
266
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
@@ -235,7 +235,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes /* remove-proptype
235
235
  /**
236
236
  * The color of the component.
237
237
  * It supports both default and custom theme colors, which can be added as shown in the
238
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
238
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
239
239
  * @default 'primary'
240
240
  */
241
241
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -137,7 +137,7 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes /* remove-proptypes
137
137
  /**
138
138
  * The color of the component.
139
139
  * It supports both default and custom theme colors, which can be added as shown in the
140
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
140
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
141
141
  */
142
142
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
143
143
  /**
package/node/Icon/Icon.js CHANGED
@@ -131,7 +131,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
131
131
  /**
132
132
  * The color of the component.
133
133
  * It supports both default and custom theme colors, which can be added as shown in the
134
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
134
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
135
135
  * @default 'inherit'
136
136
  */
137
137
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? IconButton.propTypes /* remove-proptypes
169
169
  /**
170
170
  * The color of the component.
171
171
  * It supports both default and custom theme colors, which can be added as shown in the
172
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
172
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
173
173
  * @default 'default'
174
174
  */
175
175
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -183,7 +183,7 @@ process.env.NODE_ENV !== "production" ? Input.propTypes /* remove-proptypes */ =
183
183
  /**
184
184
  * The color of the component.
185
185
  * It supports both default and custom theme colors, which can be added as shown in the
186
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
186
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
187
187
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
188
188
  */
189
189
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
@@ -514,7 +514,7 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes /* remove-proptypes
514
514
  /**
515
515
  * The color of the component.
516
516
  * It supports both default and custom theme colors, which can be added as shown in the
517
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
517
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
518
518
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
519
519
  */
520
520
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -173,7 +173,7 @@ process.env.NODE_ENV !== "production" ? InputLabel.propTypes /* remove-proptypes
173
173
  /**
174
174
  * The color of the component.
175
175
  * It supports both default and custom theme colors, which can be added as shown in the
176
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
176
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
177
177
  */
178
178
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
179
179
  /**
@@ -322,7 +322,7 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
322
322
  /**
323
323
  * The color of the component.
324
324
  * It supports both default and custom theme colors, which can be added as shown in the
325
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
325
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
326
326
  * @default 'primary'
327
327
  */
328
328
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['inherit', 'primary', 'secondary']), _propTypes.default.string]),
@@ -209,7 +209,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
209
209
  /**
210
210
  * The color of the component.
211
211
  * It supports both default and custom theme colors, which can be added as shown in the
212
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
212
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
213
213
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
214
214
  */
215
215
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
@@ -153,7 +153,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
153
153
  /**
154
154
  * The active color.
155
155
  * It supports both default and custom theme colors, which can be added as shown in the
156
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
156
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
157
157
  * @default 'standard'
158
158
  */
159
159
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'standard']), _propTypes.default.string]),
@@ -177,7 +177,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
177
177
  * This is important for screen reader users.
178
178
  *
179
179
  * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
180
- * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
180
+ * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
181
181
  * @param {number} page The page number to format.
182
182
  * @param {bool} selected If true, the current page is selected.
183
183
  * @returns {string}
@@ -123,14 +123,14 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
123
123
  [`&.${_paginationItemClasses.default.selected}`]: {
124
124
  backgroundColor: (theme.vars || theme).palette.action.selected,
125
125
  '&:hover': {
126
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
126
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
127
127
  // Reset on touch devices, it doesn't add specificity
128
128
  '@media (hover: none)': {
129
129
  backgroundColor: (theme.vars || theme).palette.action.selected
130
130
  }
131
131
  },
132
132
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
133
- backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
133
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
134
134
  },
135
135
  [`&.${_paginationItemClasses.default.disabled}`]: {
136
136
  opacity: 1,
@@ -294,7 +294,7 @@ process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-propt
294
294
  /**
295
295
  * The active color.
296
296
  * It supports both default and custom theme colors, which can be added as shown in the
297
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
297
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
298
298
  * @default 'standard'
299
299
  */
300
300
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'standard']), _propTypes.default.string]),
@@ -157,7 +157,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
157
157
  /**
158
158
  * The color of the component.
159
159
  * It supports both default and custom theme colors, which can be added as shown in the
160
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
160
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
161
161
  * @default 'primary'
162
162
  */
163
163
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
@@ -630,10 +630,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
630
630
  /**
631
631
  * The color of the component.
632
632
  * It supports both default and custom theme colors, which can be added as shown in the
633
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
633
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
634
634
  * @default 'primary'
635
635
  */
636
- color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
636
+ color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
637
637
  /**
638
638
  * The components used for each slot inside.
639
639
  *
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("../generateUtilityCl
11
11
  function getSliderUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiSlider', slot);
13
13
  }
14
- const sliderClasses = (0, _utils.unstable_generateUtilityClasses)('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
14
+ const sliderClasses = (0, _utils.unstable_generateUtilityClasses)('MuiSlider', ['root', 'active', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'disabled', 'dragging', 'focusVisible', 'mark', 'markActive', 'marked', 'markLabel', 'markLabelActive', 'rail', 'sizeSmall', 'thumb', 'thumbColorPrimary', 'thumbColorSecondary', 'thumbColorError', 'thumbColorSuccess', 'thumbColorInfo', 'thumbColorWarning', 'track', 'trackInverted', 'trackFalse', 'thumbSizeSmall', 'valueLabel', 'valueLabelOpen', 'valueLabelCircle', 'valueLabelLabel', 'vertical']);
15
15
  var _default = exports.default = sliderClasses;
@@ -138,7 +138,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.propTypes /* remove-proptypes */
138
138
  /**
139
139
  * The color of the component.
140
140
  * It supports both default and custom theme colors, which can be added as shown in the
141
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
141
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
142
142
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
143
143
  * @default 'inherit'
144
144
  */
@@ -253,7 +253,7 @@ process.env.NODE_ENV !== "production" ? Switch.propTypes /* remove-proptypes */
253
253
  /**
254
254
  * The color of the component.
255
255
  * It supports both default and custom theme colors, which can be added as shown in the
256
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
256
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
257
257
  * @default 'primary'
258
258
  */
259
259
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),