@mui/material 5.4.0 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/AvatarGroup.d.ts +10 -0
  11. package/AvatarGroup/AvatarGroup.js +19 -7
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Badge/Badge.js +3 -2
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/ButtonBase.d.ts +5 -1
  20. package/ButtonBase/ButtonBase.js +15 -2
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +100 -28
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/Dialog/DialogContext.d.ts +6 -6
  39. package/Dialog/dialogClasses.d.ts +36 -36
  40. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  41. package/DialogContent/dialogContentClasses.d.ts +10 -10
  42. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  43. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  44. package/Divider/dividerClasses.d.ts +34 -34
  45. package/Drawer/drawerClasses.d.ts +30 -30
  46. package/Fab/Fab.d.ts +4 -1
  47. package/Fab/Fab.js +8 -20
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/Fab/fabClasses.js +1 -1
  50. package/FilledInput/filledInputClasses.d.ts +40 -40
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  53. package/FormGroup/formGroupClasses.d.ts +12 -12
  54. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  55. package/FormLabel/formLabelClasses.d.ts +22 -22
  56. package/Grid/gridClasses.d.ts +48 -48
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +26 -26
  59. package/ImageList/ImageList.js +3 -1
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +34 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/inputBaseClasses.d.ts +44 -44
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  68. package/Link/linkClasses.d.ts +18 -18
  69. package/List/listClasses.d.ts +14 -14
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/Modal/Modal.js +1 -1
  81. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +17 -17
  88. package/README.md +6 -6
  89. package/Radio/radioClasses.d.ts +16 -16
  90. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  91. package/RadioGroup/useRadioGroup.d.ts +4 -4
  92. package/Rating/Rating.js +1 -1
  93. package/Rating/ratingClasses.d.ts +40 -40
  94. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  95. package/Select/SelectInput.js +5 -1
  96. package/Select/selectClasses.d.ts +30 -30
  97. package/Skeleton/skeletonClasses.d.ts +24 -24
  98. package/Slider/Slider.js +3 -1
  99. package/Snackbar/Snackbar.js +4 -1
  100. package/Snackbar/snackbarClasses.d.ts +20 -20
  101. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  102. package/SpeedDial/speedDialClasses.d.ts +22 -22
  103. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  104. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/svgIconClasses.d.ts +24 -24
  113. package/Switch/switchClasses.d.ts +32 -32
  114. package/Tab/tabClasses.d.ts +26 -26
  115. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  116. package/Table/tableClasses.d.ts +10 -10
  117. package/TableBody/tableBodyClasses.d.ts +8 -8
  118. package/TableCell/tableCellClasses.d.ts +32 -32
  119. package/TableContainer/tableContainerClasses.d.ts +8 -8
  120. package/TableFooter/tableFooterClasses.d.ts +8 -8
  121. package/TableHead/tableHeadClasses.d.ts +8 -8
  122. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  123. package/TableRow/tableRowClasses.d.ts +16 -16
  124. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  125. package/Tabs/tabsClasses.d.ts +32 -32
  126. package/TextField/textFieldClasses.d.ts +8 -8
  127. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  128. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  129. package/Toolbar/toolbarClasses.d.ts +14 -14
  130. package/Tooltip/tooltipClasses.d.ts +30 -30
  131. package/Typography/typographyClasses.d.ts +50 -50
  132. package/darkScrollbar/index.d.ts +28 -28
  133. package/index.d.ts +1 -1
  134. package/index.js +1 -1
  135. package/internal/switchBaseClasses.d.ts +12 -12
  136. package/legacy/AvatarGroup/AvatarGroup.js +20 -7
  137. package/legacy/Badge/Badge.js +4 -2
  138. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  139. package/legacy/ButtonBase/ButtonBase.js +15 -2
  140. package/legacy/Fab/Fab.js +8 -20
  141. package/legacy/Fab/fabClasses.js +1 -1
  142. package/legacy/ImageList/ImageList.js +3 -1
  143. package/legacy/Modal/Modal.js +1 -1
  144. package/legacy/Rating/Rating.js +1 -1
  145. package/legacy/Select/SelectInput.js +5 -1
  146. package/legacy/Slider/Slider.js +3 -1
  147. package/legacy/Snackbar/Snackbar.js +4 -1
  148. package/legacy/index.js +1 -1
  149. package/legacy/styles/makeStyles.js +1 -1
  150. package/legacy/styles/withStyles.js +1 -1
  151. package/legacy/styles/withTheme.js +1 -1
  152. package/legacy/useMediaQuery/useMediaQuery.js +1 -1
  153. package/locale/index.d.ts +68 -68
  154. package/modern/AvatarGroup/AvatarGroup.js +17 -7
  155. package/modern/Badge/Badge.js +3 -2
  156. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  157. package/modern/ButtonBase/ButtonBase.js +15 -2
  158. package/modern/Fab/Fab.js +8 -20
  159. package/modern/Fab/fabClasses.js +1 -1
  160. package/modern/ImageList/ImageList.js +3 -1
  161. package/modern/Modal/Modal.js +1 -1
  162. package/modern/Rating/Rating.js +1 -1
  163. package/modern/Select/SelectInput.js +5 -1
  164. package/modern/Slider/Slider.js +3 -1
  165. package/modern/Snackbar/Snackbar.js +4 -1
  166. package/modern/index.js +1 -1
  167. package/modern/styles/makeStyles.js +1 -1
  168. package/modern/styles/withStyles.js +1 -1
  169. package/modern/styles/withTheme.js +1 -1
  170. package/modern/useMediaQuery/useMediaQuery.js +1 -1
  171. package/node/AvatarGroup/AvatarGroup.js +19 -7
  172. package/node/Badge/Badge.js +3 -2
  173. package/node/BottomNavigation/BottomNavigation.js +0 -0
  174. package/node/ButtonBase/ButtonBase.js +15 -2
  175. package/node/Fab/Fab.js +8 -20
  176. package/node/Fab/fabClasses.js +1 -1
  177. package/node/ImageList/ImageList.js +3 -1
  178. package/node/Modal/Modal.js +1 -1
  179. package/node/Rating/Rating.js +1 -1
  180. package/node/Select/SelectInput.js +5 -1
  181. package/node/Slider/Slider.js +3 -1
  182. package/node/Snackbar/Snackbar.js +4 -1
  183. package/node/index.js +1 -1
  184. package/node/styles/makeStyles.js +1 -1
  185. package/node/styles/withStyles.js +1 -1
  186. package/node/styles/withTheme.js +1 -1
  187. package/node/useMediaQuery/useMediaQuery.js +1 -1
  188. package/package.json +8 -8
  189. package/styles/makeStyles.js +1 -1
  190. package/styles/withStyles.js +1 -1
  191. package/styles/withTheme.js +1 -1
  192. package/transitions/index.d.ts +1 -1
  193. package/transitions/transition.d.ts +13 -13
  194. package/transitions/utils.d.ts +23 -23
  195. package/umd/material-ui.development.js +96 -50
  196. package/umd/material-ui.production.min.js +20 -20
  197. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  198. package/useMediaQuery/useMediaQuery.js +1 -1
  199. package/useTouchRipple/index.d.ts +1 -1
  200. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  201. package/utils/getScrollbarSize.d.ts +2 -2
  202. package/utils/ownerDocument.d.ts +2 -2
  203. package/utils/ownerWindow.d.ts +2 -2
  204. package/utils/setRef.d.ts +2 -2
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.4.0
1
+ /** @license MUI v5.4.1
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -5010,7 +5010,7 @@
5010
5010
  *
5011
5011
  * WARNING: Be sure to only call this inside a callback that is passed as a ref.
5012
5012
  * Otherwise, make sure to cleanup the previous {ref} if it changes. See
5013
- * https://github.com/mui-org/material-ui/issues/13539
5013
+ * https://github.com/mui/material-ui/issues/13539
5014
5014
  *
5015
5015
  * Useful if you want to expose the ref of an inner component to the public API
5016
5016
  * while still using it inside the component.
@@ -5028,7 +5028,8 @@
5028
5028
  var useEnhancedEffect$1 = useEnhancedEffect;
5029
5029
 
5030
5030
  let globalId = 0;
5031
- function useId(idOverride) {
5031
+
5032
+ function useGlobalId(idOverride) {
5032
5033
  const [defaultId, setDefaultId] = React__namespace.useState(idOverride);
5033
5034
  const id = idOverride || defaultId;
5034
5035
  React__namespace.useEffect(() => {
@@ -5042,6 +5043,25 @@
5042
5043
  }
5043
5044
  }, [defaultId]);
5044
5045
  return id;
5046
+ } // eslint-disable-next-line no-useless-concat -- Workaround for https://github.com/webpack/webpack/issues/14814
5047
+
5048
+
5049
+ const maybeReactUseId = React__namespace['useId' + ''];
5050
+ /**
5051
+ *
5052
+ * @example <div id={useId()} />
5053
+ * @param idOverride
5054
+ * @returns {string}
5055
+ */
5056
+
5057
+ function useId(idOverride) {
5058
+ if (maybeReactUseId !== undefined) {
5059
+ const reactId = maybeReactUseId();
5060
+ return idOverride != null ? idOverride : reactId;
5061
+ } // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
5062
+
5063
+
5064
+ return useGlobalId(idOverride);
5045
5065
  }
5046
5066
 
5047
5067
  function unsupportedProp(props, propName, componentName, location, propFullName) {
@@ -8667,7 +8687,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8667
8687
  horizontal: 'right'
8668
8688
  },
8669
8689
  badgeContent: badgeContentProp,
8670
- invisible: invisibleProp,
8690
+ invisible: invisibleProp = false,
8671
8691
  max: maxProp = 99,
8672
8692
  showZero = false,
8673
8693
  variant: variantProp = 'standard'
@@ -8680,7 +8700,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8680
8700
  });
8681
8701
  let invisible = invisibleProp;
8682
8702
 
8683
- if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
8703
+ if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
8684
8704
  invisible = true;
8685
8705
  }
8686
8706
 
@@ -8851,6 +8871,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8851
8871
 
8852
8872
  /**
8853
8873
  * If `true`, the badge is invisible.
8874
+ * @default false
8854
8875
  */
8855
8876
  invisible: PropTypes.bool,
8856
8877
 
@@ -9690,7 +9711,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9690
9711
 
9691
9712
  /**
9692
9713
  * If `true`, the trap focus will not restore focus to previously focused element once
9693
- * trap focus is hidden.
9714
+ * trap focus is hidden or unmounted.
9694
9715
  * @default false
9695
9716
  */
9696
9717
  disableRestoreFocus: PropTypes.bool,
@@ -10093,7 +10114,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10093
10114
 
10094
10115
  /**
10095
10116
  * If `true`, the modal will not restore focus to previously focused element once
10096
- * modal is hidden.
10117
+ * modal is hidden or unmounted.
10097
10118
  * @default false
10098
10119
  */
10099
10120
  disableRestoreFocus: PropTypes.bool,
@@ -12671,7 +12692,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12671
12692
  const handleChange = onChange && ((event, value, thumbIndex) => {
12672
12693
  // Redefine target to allow name and value to be read.
12673
12694
  // This allows seamless integration with the most popular form libraries.
12674
- // https://github.com/mui-org/material-ui/issues/13485#issuecomment-676048492
12695
+ // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
12675
12696
  // Clone the event to not override `target` of the original event.
12676
12697
  const nativeEvent = event.nativeEvent || event; // @ts-ignore The nativeEvent is function, not object
12677
12698
 
@@ -14692,19 +14713,19 @@ Use unitless line heights instead.` );
14692
14713
  function makeStyles() {
14693
14714
  throw new Error(`MUI: makeStyles is not longer exported from @mui/material/styles.
14694
14715
  You have to import it from @mui/styles.
14695
- See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` );
14716
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14696
14717
  }
14697
14718
 
14698
14719
  function withStyles() {
14699
14720
  throw new Error(`MUI: withStyles is not longer exported from @mui/material/styles.
14700
14721
  You have to import it from @mui/styles.
14701
- See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` );
14722
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14702
14723
  }
14703
14724
 
14704
14725
  function withTheme() {
14705
14726
  throw new Error(`MUI: withTheme is not longer exported from @mui/material/styles.
14706
14727
  You have to import it from @mui/styles.
14707
- See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` );
14728
+ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14708
14729
  }
14709
14730
 
14710
14731
  function getSvgIconUtilityClass(slot) {
@@ -17384,7 +17405,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
17384
17405
  const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
17385
17406
  var buttonBaseClasses$1 = buttonBaseClasses;
17386
17407
 
17387
- const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "type"];
17408
+ const _excluded$1Y = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
17388
17409
 
17389
17410
  const useUtilityClasses$1E = ownerState => {
17390
17411
  const {
@@ -17488,12 +17509,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
17488
17509
  onTouchStart,
17489
17510
  tabIndex = 0,
17490
17511
  TouchRippleProps,
17512
+ touchRippleRef,
17491
17513
  type
17492
17514
  } = props,
17493
17515
  other = _objectWithoutPropertiesLoose(props, _excluded$1Y);
17494
17516
 
17495
17517
  const buttonRef = React__namespace.useRef(null);
17496
17518
  const rippleRef = React__namespace.useRef(null);
17519
+ const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
17497
17520
  const {
17498
17521
  isFocusVisibleRef,
17499
17522
  onFocus: handleFocusVisible,
@@ -17713,7 +17736,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
17713
17736
 
17714
17737
  /* TouchRipple is only needed client-side, x2 boost on the server. */
17715
17738
  jsxRuntime_1(TouchRipple$1, _extends({
17716
- ref: rippleRef,
17739
+ ref: handleRippleRef,
17717
17740
  center: centerRipple
17718
17741
  }, TouchRippleProps)) : null]
17719
17742
  }));
@@ -17896,6 +17919,17 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
17896
17919
  */
17897
17920
  TouchRippleProps: PropTypes.object,
17898
17921
 
17922
+ /**
17923
+ * A ref that points to the `TouchRippple` element.
17924
+ */
17925
+ touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
17926
+ current: PropTypes.shape({
17927
+ pulsate: PropTypes.func.isRequired,
17928
+ start: PropTypes.func.isRequired,
17929
+ stop: PropTypes.func.isRequired
17930
+ })
17931
+ })]),
17932
+
17899
17933
  /**
17900
17934
  * @ignore
17901
17935
  */
@@ -21220,7 +21254,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21220
21254
  const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
21221
21255
  var avatarGroupClasses$1 = avatarGroupClasses;
21222
21256
 
21223
- const _excluded$1N = ["children", "className", "max", "spacing", "total", "variant"];
21257
+ const _excluded$1N = ["children", "className", "componentsProps", "max", "spacing", "total", "variant"];
21224
21258
  const SPACINGS$1 = {
21225
21259
  small: -16,
21226
21260
  medium: null
@@ -21272,6 +21306,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21272
21306
  }
21273
21307
  }));
21274
21308
  const AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
21309
+ var _componentsProps$addi, _componentsProps$addi2;
21310
+
21275
21311
  const props = useThemeProps({
21276
21312
  props: inProps,
21277
21313
  name: 'MuiAvatarGroup'
@@ -21280,6 +21316,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21280
21316
  const {
21281
21317
  children: childrenProp,
21282
21318
  className,
21319
+ componentsProps = {},
21283
21320
  max = 5,
21284
21321
  spacing = 'medium',
21285
21322
  total,
@@ -21320,15 +21357,16 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21320
21357
  className: clsx(classes.root, className),
21321
21358
  ref: ref
21322
21359
  }, other, {
21323
- children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, {
21360
+ children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, _extends({
21324
21361
  ownerState: ownerState,
21325
- className: classes.avatar,
21326
- style: {
21362
+ variant: variant
21363
+ }, componentsProps.additionalAvatar, {
21364
+ className: clsx(classes.avatar, (_componentsProps$addi = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi.className),
21365
+ style: _extends({
21327
21366
  marginLeft
21328
- },
21329
- variant: variant,
21367
+ }, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
21330
21368
  children: ["+", extraAvatars]
21331
- }) : null, children.slice(0, maxAvatars).reverse().map(child => {
21369
+ })) : null, children.slice(0, maxAvatars).reverse().map(child => {
21332
21370
  return /*#__PURE__*/React__namespace.cloneElement(child, {
21333
21371
  className: clsx(child.props.className, classes.avatar),
21334
21372
  style: _extends({
@@ -21362,6 +21400,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21362
21400
  */
21363
21401
  className: PropTypes.string,
21364
21402
 
21403
+ /**
21404
+ * The props used for each slot inside the AvatarGroup.
21405
+ * @default {}
21406
+ */
21407
+ componentsProps: PropTypes.shape({
21408
+ additionalAvatar: PropTypes.object
21409
+ }),
21410
+
21365
21411
  /**
21366
21412
  * Max avatars to show before +x.
21367
21413
  * @default 5
@@ -21933,7 +21979,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21933
21979
  componentsProps = {},
21934
21980
  overlap: overlapProp = 'rectangular',
21935
21981
  color: colorProp = 'default',
21936
- invisible: invisibleProp,
21982
+ invisible: invisibleProp = false,
21937
21983
  badgeContent: badgeContentProp,
21938
21984
  showZero = false,
21939
21985
  variant: variantProp = 'standard'
@@ -21947,7 +21993,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
21947
21993
  });
21948
21994
  let invisible = invisibleProp;
21949
21995
 
21950
- if (invisibleProp == null && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
21996
+ if (invisibleProp === false && (badgeContentProp === 0 && !showZero || badgeContentProp == null && variantProp !== 'dot')) {
21951
21997
  invisible = true;
21952
21998
  }
21953
21999
 
@@ -22065,6 +22111,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22065
22111
 
22066
22112
  /**
22067
22113
  * If `true`, the badge is invisible.
22114
+ * @default false
22068
22115
  */
22069
22116
  invisible: PropTypes.bool,
22070
22117
 
@@ -25504,7 +25551,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
25504
25551
 
25505
25552
  /**
25506
25553
  * If `true`, the modal will not restore focus to previously focused element once
25507
- * modal is hidden.
25554
+ * modal is hidden or unmounted.
25508
25555
  * @default false
25509
25556
  */
25510
25557
  disableRestoreFocus: PropTypes.bool,
@@ -27276,7 +27323,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27276
27323
  function getFabUtilityClass(slot) {
27277
27324
  return generateUtilityClass('MuiFab', slot);
27278
27325
  }
27279
- const fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
27326
+ const fabClasses = generateUtilityClasses('MuiFab', ['root', 'primary', 'secondary', 'extended', 'circular', 'focusVisible', 'disabled', 'colorInherit', 'sizeSmall', 'sizeMedium', 'sizeLarge', 'info', 'error', 'warning', 'success']);
27280
27327
  var fabClasses$1 = fabClasses;
27281
27328
 
27282
27329
  const _excluded$1l = ["children", "className", "color", "component", "disabled", "disableFocusRipple", "focusVisibleClassName", "size", "variant"];
@@ -27289,7 +27336,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27289
27336
  size
27290
27337
  } = ownerState;
27291
27338
  const slots = {
27292
- root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' && 'colorInherit', color === 'primary' && 'primary', color === 'secondary' && 'secondary']
27339
+ root: ['root', variant, `size${capitalize(size)}`, color === 'inherit' ? 'colorInherit' : color]
27293
27340
  };
27294
27341
  return composeClasses(slots, getFabUtilityClass, classes);
27295
27342
  };
@@ -27301,7 +27348,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27301
27348
  const {
27302
27349
  ownerState
27303
27350
  } = props;
27304
- return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.color === 'primary' && styles.primary, ownerState.color === 'secondary' && styles.secondary];
27351
+ return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
27305
27352
  }
27306
27353
  })(({
27307
27354
  theme,
@@ -27368,24 +27415,14 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27368
27415
  }), ({
27369
27416
  theme,
27370
27417
  ownerState
27371
- }) => _extends({}, ownerState.color === 'primary' && {
27372
- color: theme.palette.primary.contrastText,
27373
- backgroundColor: theme.palette.primary.main,
27374
- '&:hover': {
27375
- backgroundColor: theme.palette.primary.dark,
27376
- // Reset on touch devices, it doesn't add specificity
27377
- '@media (hover: none)': {
27378
- backgroundColor: theme.palette.primary.main
27379
- }
27380
- }
27381
- }, ownerState.color === 'secondary' && {
27382
- color: theme.palette.secondary.contrastText,
27383
- backgroundColor: theme.palette.secondary.main,
27418
+ }) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
27419
+ color: theme.palette[ownerState.color].contrastText,
27420
+ backgroundColor: theme.palette[ownerState.color].main,
27384
27421
  '&:hover': {
27385
- backgroundColor: theme.palette.secondary.dark,
27422
+ backgroundColor: theme.palette[ownerState.color].dark,
27386
27423
  // Reset on touch devices, it doesn't add specificity
27387
27424
  '@media (hover: none)': {
27388
- backgroundColor: theme.palette.secondary.main
27425
+ backgroundColor: theme.palette[ownerState.color].main
27389
27426
  }
27390
27427
  }
27391
27428
  }));
@@ -27457,9 +27494,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27457
27494
  * The color of the component. It supports those theme colors that make sense for this component.
27458
27495
  * @default 'default'
27459
27496
  */
27460
- color: PropTypes
27461
- /* @typescript-to-proptypes-ignore */
27462
- .oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']), PropTypes.string]),
27497
+ color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
27463
27498
 
27464
27499
  /**
27465
27500
  * The component used for the root node.
@@ -30509,7 +30544,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
30509
30544
  const updateMatch = () => {
30510
30545
  // Workaround Safari wrong implementation of matchMedia
30511
30546
  // TODO can we remove it?
30512
- // https://github.com/mui-org/material-ui/pull/17315#issuecomment-528286677
30547
+ // https://github.com/mui/material-ui/pull/17315#issuecomment-528286677
30513
30548
  if (active) {
30514
30549
  setMatch(queryList.matches);
30515
30550
  }
@@ -31537,7 +31572,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
31537
31572
  * The variant to use.
31538
31573
  * @default 'standard'
31539
31574
  */
31540
- variant: PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven'])
31575
+ variant: PropTypes
31576
+ /* @typescript-to-proptypes-ignore */
31577
+ .oneOfType([PropTypes.oneOf(['masonry', 'quilted', 'standard', 'woven']), PropTypes.string])
31541
31578
  } ;
31542
31579
  var ImageList$1 = ImageList;
31543
31580
 
@@ -38494,7 +38531,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
38494
38531
 
38495
38532
  const handleChange = event => {
38496
38533
  let newValue = event.target.value === '' ? null : parseFloat(event.target.value); // Give mouse priority over keyboard
38497
- // Fix https://github.com/mui-org/material-ui/issues/22827
38534
+ // Fix https://github.com/mui/material-ui/issues/22827
38498
38535
 
38499
38536
  if (hover !== -1) {
38500
38537
  newValue = hover;
@@ -39081,6 +39118,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
39081
39118
  }
39082
39119
  }, [autoFocus]);
39083
39120
  React__namespace.useEffect(() => {
39121
+ if (!labelId) {
39122
+ return undefined;
39123
+ }
39124
+
39084
39125
  const label = ownerDocument(displayRef.current).getElementById(labelId);
39085
39126
 
39086
39127
  if (label) {
@@ -39177,7 +39218,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
39177
39218
  if (onChange) {
39178
39219
  // Redefine target to allow name and value to be read.
39179
39220
  // This allows seamless integration with the most popular form libraries.
39180
- // https://github.com/mui-org/material-ui/issues/13485#issuecomment-676048492
39221
+ // https://github.com/mui/material-ui/issues/13485#issuecomment-676048492
39181
39222
  // Clone the event to not override `target` of the original event.
39182
39223
  const nativeEvent = event.nativeEvent || event;
39183
39224
  const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
@@ -40773,7 +40814,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
40773
40814
  * The size of the slider.
40774
40815
  * @default 'medium'
40775
40816
  */
40776
- size: PropTypes.oneOf(['small', 'medium']),
40817
+ size: PropTypes
40818
+ /* @typescript-to-proptypes-ignore */
40819
+ .oneOfType([PropTypes.oneOf(['small', 'medium']), PropTypes.string]),
40777
40820
 
40778
40821
  /**
40779
40822
  * The granularity with which the slider can step through values. (A "discrete" slider.)
@@ -41255,7 +41298,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
41255
41298
  onMouseEnter: handleMouseEnter,
41256
41299
  onMouseLeave: handleMouseLeave,
41257
41300
  ownerState: ownerState,
41258
- ref: ref
41301
+ ref: ref // ClickAwayListener adds an `onClick` prop which results in the alert not being announced.
41302
+ // See https://github.com/mui-org/material-ui/issues/29080
41303
+ ,
41304
+ role: "presentation"
41259
41305
  }, other, {
41260
41306
  children: /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
41261
41307
  appear: true,