@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
@@ -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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
@@ -202,7 +202,7 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
202
202
  /**
203
203
  * The color of the component.
204
204
  * It supports both default and custom theme colors, which can be added as shown in the
205
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
205
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
206
206
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
207
207
  */
208
208
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
@@ -29,7 +29,7 @@ export interface PaginationProps
29
29
  /**
30
30
  * The active color.
31
31
  * It supports both default and custom theme colors, which can be added as shown in the
32
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
32
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
33
33
  * @default 'standard'
34
34
  */
35
35
  color?: OverridableStringUnion<
@@ -41,16 +41,13 @@ export interface PaginationProps
41
41
  * This is important for screen reader users.
42
42
  *
43
43
  * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
44
- * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
44
+ * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
45
45
  * @param {number} page The page number to format.
46
46
  * @param {bool} selected If true, the current page is selected.
47
47
  * @returns {string}
48
48
  */
49
- getItemAriaLabel?: (
50
- type: 'page' | 'first' | 'last' | 'next' | 'previous',
51
- page: number,
52
- selected: boolean,
53
- ) => string;
49
+ getItemAriaLabel?: (type: UsePaginationItem['type'], page: number, selected: boolean) => string;
50
+
54
51
  /**
55
52
  * Render the item.
56
53
  * @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
@@ -145,7 +145,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
145
145
  /**
146
146
  * The active color.
147
147
  * It supports both default and custom theme colors, which can be added as shown in the
148
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
148
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
149
149
  * @default 'standard'
150
150
  */
151
151
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? Pagination.propTypes /* remove-proptypes
169
169
  * This is important for screen reader users.
170
170
  *
171
171
  * For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
172
- * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
172
+ * @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous' | 'start-ellipsis' | 'end-ellipsis'). Defaults to 'page'.
173
173
  * @param {number} page The page number to format.
174
174
  * @param {bool} selected If true, the current page is selected.
175
175
  * @returns {string}
@@ -20,7 +20,7 @@ export interface PaginationItemOwnProps {
20
20
  /**
21
21
  * The active color.
22
22
  * It supports both default and custom theme colors, which can be added as shown in the
23
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
23
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
24
24
  * @default 'standard'
25
25
  */
26
26
  color?: OverridableStringUnion<
@@ -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]),
package/Radio/Radio.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface RadioProps
23
23
  /**
24
24
  * The color of the component.
25
25
  * It supports both default and custom theme colors, which can be added as shown in the
26
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
26
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
27
27
  * @default 'primary'
28
28
  */
29
29
  color?: OverridableStringUnion<
package/Radio/Radio.js CHANGED
@@ -149,7 +149,7 @@ process.env.NODE_ENV !== "production" ? Radio.propTypes /* remove-proptypes */ =
149
149
  /**
150
150
  * The color of the component.
151
151
  * It supports both default and custom theme colors, which can be added as shown in the
152
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
152
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
153
153
  * @default 'primary'
154
154
  */
155
155
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -36,10 +36,13 @@ export interface SliderOwnProps {
36
36
  /**
37
37
  * The color of the component.
38
38
  * It supports both default and custom theme colors, which can be added as shown in the
39
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
39
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
40
40
  * @default 'primary'
41
41
  */
42
- color?: OverridableStringUnion<'primary' | 'secondary', SliderPropsColorOverrides>;
42
+ color?: OverridableStringUnion<
43
+ 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning',
44
+ SliderPropsColorOverrides
45
+ >;
43
46
  /**
44
47
  * The components used for each slot inside.
45
48
  *
package/Slider/Slider.js CHANGED
@@ -623,10 +623,10 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes /* remove-proptypes */
623
623
  /**
624
624
  * The color of the component.
625
625
  * It supports both default and custom theme colors, which can be added as shown in the
626
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
626
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
627
627
  * @default 'primary'
628
628
  */
629
- color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
629
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
630
630
  /**
631
631
  * The components used for each slot inside.
632
632
  *
@@ -5,6 +5,14 @@ export interface SliderClasses {
5
5
  colorPrimary: string;
6
6
  /** Styles applied to the root element if `color="secondary"`. */
7
7
  colorSecondary: string;
8
+ /** Styles applied to the root element if `color="error"`. */
9
+ colorError: string;
10
+ /** Styles applied to the root element if `color="info"`. */
11
+ colorInfo: string;
12
+ /** Styles applied to the root element if `color="success"`. */
13
+ colorSuccess: string;
14
+ /** Styles applied to the root element if `color="warning"`. */
15
+ colorWarning: string;
8
16
  /** Styles applied to the root element if `marks` is provided with at least one label. */
9
17
  marked: string;
10
18
  /** Styles applied to the root element if `orientation="vertical"`. */
@@ -41,6 +49,14 @@ export interface SliderClasses {
41
49
  thumbColorPrimary: string;
42
50
  /** Styles applied to the thumb element if `color="secondary"`. */
43
51
  thumbColorSecondary: string;
52
+ /** Styles applied to the thumb element if `color="error"`. */
53
+ thumbColorError: string;
54
+ /** Styles applied to the thumb element if `color="info"`. */
55
+ thumbColorInfo: string;
56
+ /** Styles applied to the thumb element if `color="success"`. */
57
+ thumbColorSuccess: string;
58
+ /** Styles applied to the thumb element if `color="warning"`. */
59
+ thumbColorWarning: string;
44
60
  /** Styles applied to the thumb element if `size="small"`. */
45
61
  thumbSizeSmall: string;
46
62
  /** Styles applied to the thumb label element. */
@@ -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;
@@ -21,7 +21,7 @@ export interface SvgIconOwnProps {
21
21
  /**
22
22
  * The color of the component.
23
23
  * It supports both default and custom theme colors, which can be added as shown in the
24
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
24
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
25
25
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
26
26
  * @default 'inherit'
27
27
  */
@@ -131,7 +131,7 @@ process.env.NODE_ENV !== "production" ? SvgIcon.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
  * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
136
136
  * @default 'inherit'
137
137
  */
@@ -22,7 +22,7 @@ export interface SwitchProps
22
22
  /**
23
23
  * The color of the component.
24
24
  * It supports both default and custom theme colors, which can be added as shown in the
25
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
26
26
  * @default 'primary'
27
27
  */
28
28
  color?: OverridableStringUnion<
package/Switch/Switch.js CHANGED
@@ -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]),
package/Tabs/Tabs.js CHANGED
@@ -501,23 +501,48 @@ 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
+ var _resizeObserver;
513
+ (_resizeObserver = resizeObserver) == null || _resizeObserver.unobserve(item);
514
+ });
515
+ record.addedNodes.forEach(item => {
516
+ var _resizeObserver2;
517
+ (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.observe(item);
518
+ });
519
+ });
520
+ handleResize();
521
+ updateScrollButtonState();
522
+ };
504
523
  const win = ownerWindow(tabsRef.current);
505
524
  win.addEventListener('resize', handleResize);
506
- let resizeObserver;
525
+ let mutationObserver;
507
526
  if (typeof ResizeObserver !== 'undefined') {
508
527
  resizeObserver = new ResizeObserver(handleResize);
509
528
  Array.from(tabListRef.current.children).forEach(child => {
510
529
  resizeObserver.observe(child);
511
530
  });
512
531
  }
532
+ if (typeof MutationObserver !== 'undefined') {
533
+ mutationObserver = new MutationObserver(handleMutation);
534
+ mutationObserver.observe(tabListRef.current, {
535
+ childList: true
536
+ });
537
+ }
513
538
  return () => {
539
+ var _mutationObserver, _resizeObserver3;
514
540
  handleResize.clear();
515
541
  win.removeEventListener('resize', handleResize);
516
- if (resizeObserver) {
517
- resizeObserver.disconnect();
518
- }
542
+ (_mutationObserver = mutationObserver) == null || _mutationObserver.disconnect();
543
+ (_resizeObserver3 = resizeObserver) == null || _resizeObserver3.disconnect();
519
544
  };
520
- }, [updateIndicatorState]);
545
+ }, [updateIndicatorState, updateScrollButtonState]);
521
546
 
522
547
  /**
523
548
  * Toggle visibility of start and end scroll buttons
@@ -44,7 +44,7 @@ export interface BaseTextFieldProps
44
44
  /**
45
45
  * The color of the component.
46
46
  * It supports both default and custom theme colors, which can be added as shown in the
47
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
47
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
48
48
  * @default 'primary'
49
49
  */
50
50
  color?: OverridableStringUnion<
@@ -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]),
@@ -22,7 +22,7 @@ export interface ToggleButtonOwnProps {
22
22
  /**
23
23
  * The color of the button when it is in an active state.
24
24
  * It supports both default and custom theme colors, which can be added as shown in the
25
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
26
26
  * @default 'standard'
27
27
  */
28
28
  color?: OverridableStringUnion<
@@ -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]),
@@ -22,7 +22,7 @@ export interface ToggleButtonGroupProps
22
22
  /**
23
23
  * The color of the button when it is selected.
24
24
  * It supports both default and custom theme colors, which can be added as shown in the
25
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
25
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
26
26
  * @default 'standard'
27
27
  */
28
28
  color?: OverridableStringUnion<
@@ -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/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
@@ -234,7 +234,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
234
234
  /**
235
235
  * The color of the component. Unless provided, the value is taken from the `severity` prop.
236
236
  * It supports both default and custom theme colors, which can be added as shown in the
237
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
237
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
238
238
  */
239
239
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
240
240
  /**
@@ -151,10 +151,10 @@ process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */
151
151
  /**
152
152
  * The color of the component.
153
153
  * It supports both default and custom theme colors, which can be added as shown in the
154
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
154
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
155
155
  * @default 'primary'
156
156
  */
157
- color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent']), PropTypes.string]),
157
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
158
158
  /**
159
159
  * If true, the `color` prop is applied in dark mode.
160
160
  * @default false
@@ -3,5 +3,5 @@ import generateUtilityClass from '../generateUtilityClass';
3
3
  export function getAppBarUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiAppBar', slot);
5
5
  }
6
- var appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
6
+ var appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
7
7
  export default appBarClasses;
@@ -13,6 +13,7 @@ import styled from '../styles/styled';
13
13
  import useThemeProps from '../styles/useThemeProps';
14
14
  import Avatar, { avatarClasses } from '../Avatar';
15
15
  import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
16
+ import { jsx as _jsx } from "react/jsx-runtime";
16
17
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
18
  var SPACINGS = {
18
19
  small: -16,
@@ -75,6 +76,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
75
76
  componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
76
77
  _props$max = props.max,
77
78
  max = _props$max === void 0 ? 5 : _props$max,
79
+ renderSurplus = props.renderSurplus,
78
80
  _props$slotProps = props.slotProps,
79
81
  slotProps = _props$slotProps === void 0 ? {} : _props$slotProps,
80
82
  _props$spacing = props.spacing,
@@ -82,7 +84,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
82
84
  total = props.total,
83
85
  _props$variant = props.variant,
84
86
  variant = _props$variant === void 0 ? 'circular' : _props$variant,
85
- other = _objectWithoutProperties(props, ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"]);
87
+ other = _objectWithoutProperties(props, ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"]);
86
88
  var clampedMax = max < 2 ? 2 : max;
87
89
  var ownerState = _extends({}, props, {
88
90
  max: max,
@@ -106,6 +108,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
106
108
  clampedMax = Math.min(totalAvatars + 1, clampedMax);
107
109
  var maxAvatars = Math.min(children.length, clampedMax - 1);
108
110
  var extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
111
+ var extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : "+".concat(extraAvatars);
109
112
  var marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
110
113
  var additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
111
114
  return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
@@ -114,7 +117,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
114
117
  className: clsx(classes.root, className),
115
118
  ref: ref
116
119
  }, other, {
117
- children: [extraAvatars ? /*#__PURE__*/_jsxs(AvatarGroupAvatar, _extends({
120
+ children: [extraAvatars ? /*#__PURE__*/_jsx(AvatarGroupAvatar, _extends({
118
121
  ownerState: ownerState,
119
122
  variant: variant
120
123
  }, additionalAvatarSlotProps, {
@@ -122,7 +125,7 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
122
125
  style: _extends({
123
126
  marginLeft: marginLeft
124
127
  }, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
125
- children: ["+", extraAvatars]
128
+ children: extraAvatarsElement
126
129
  })) : null, children.slice(0, maxAvatars).reverse().map(function (child, index) {
127
130
  return /*#__PURE__*/React.cloneElement(child, {
128
131
  className: clsx(child.props.className, classes.avatar),
@@ -180,6 +183,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
180
183
  }
181
184
  return null;
182
185
  }),
186
+ /**
187
+ * custom renderer of extraAvatars
188
+ * @param {number} surplus number of extra avatars
189
+ * @returns {React.ReactNode} custom element to display
190
+ */
191
+ renderSurplus: PropTypes.func,
183
192
  /**
184
193
  * The extra props for the slot components.
185
194
  * You can override the existing props or add new ones.
@@ -288,7 +288,7 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
288
288
  /**
289
289
  * The color of the component.
290
290
  * It supports both default and custom theme colors, which can be added as shown in the
291
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
291
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
292
292
  * @default 'default'
293
293
  */
294
294
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -302,7 +302,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
302
302
  /**
303
303
  * The color of the component.
304
304
  * It supports both default and custom theme colors, which can be added as shown in the
305
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
305
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
306
306
  * @default 'primary'
307
307
  */
308
308
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
@@ -219,7 +219,7 @@ process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes /* remove-proptype
219
219
  /**
220
220
  * The color of the component.
221
221
  * It supports both default and custom theme colors, which can be added as shown in the
222
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
222
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
223
223
  * @default 'primary'
224
224
  */
225
225
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -47,7 +47,7 @@ var CheckboxRoot = styled(SwitchBase, {
47
47
  color: (theme.vars || theme).palette.text.secondary
48
48
  }, !ownerState.disableRipple && {
49
49
  '&:hover': {
50
- backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
50
+ backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
51
51
  // Reset on touch devices, it doesn't add specificity
52
52
  '@media (hover: none)': {
53
53
  backgroundColor: 'transparent'
@@ -134,7 +134,7 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
134
134
  /**
135
135
  * The color of the component.
136
136
  * It supports both default and custom theme colors, which can be added as shown in the
137
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
137
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
138
138
  * @default 'primary'
139
139
  */
140
140
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -210,9 +210,15 @@ var ChipLabel = styled('span', {
210
210
  paddingLeft: 12,
211
211
  paddingRight: 12,
212
212
  whiteSpace: 'nowrap'
213
+ }, ownerState.variant === 'outlined' && {
214
+ paddingLeft: 11,
215
+ paddingRight: 11
213
216
  }, ownerState.size === 'small' && {
214
217
  paddingLeft: 8,
215
218
  paddingRight: 8
219
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
220
+ paddingLeft: 7,
221
+ paddingRight: 7
216
222
  });
217
223
  });
218
224
  function isDeleteKeyboardEvent(keyboardEvent) {
@@ -381,7 +387,7 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
381
387
  /**
382
388
  * The color of the component.
383
389
  * It supports both default and custom theme colors, which can be added as shown in the
384
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
390
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
385
391
  * @default 'default'
386
392
  */
387
393
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -174,7 +174,7 @@ process.env.NODE_ENV !== "production" ? CircularProgress.propTypes /* remove-pro
174
174
  /**
175
175
  * The color of the component.
176
176
  * It supports both default and custom theme colors, which can be added as shown in the
177
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
177
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
178
178
  * @default 'primary'
179
179
  */
180
180
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
package/legacy/Fab/Fab.js CHANGED
@@ -178,7 +178,7 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes /* remove-proptypes */ = {
178
178
  /**
179
179
  * The color of the component.
180
180
  * It supports both default and custom theme colors, which can be added as shown in the
181
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
181
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
182
182
  * @default 'default'
183
183
  */
184
184
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
@@ -246,7 +246,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
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
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
251
251
  */
252
252
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
@@ -238,7 +238,7 @@ process.env.NODE_ENV !== "production" ? FormControl.propTypes /* remove-proptype
238
238
  /**
239
239
  * The color of the component.
240
240
  * It supports both default and custom theme colors, which can be added as shown in the
241
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
241
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
242
242
  * @default 'primary'
243
243
  */
244
244
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
@@ -131,7 +131,7 @@ process.env.NODE_ENV !== "production" ? FormLabel.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
  */
136
136
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
137
137
  /**
@@ -121,7 +121,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
121
121
  /**
122
122
  * The color of the component.
123
123
  * It supports both default and custom theme colors, which can be added as shown in the
124
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
124
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
125
125
  * @default 'inherit'
126
126
  */
127
127
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),