@mui/material 5.9.0 → 5.9.3

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 (231) 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/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/Badge.js +1 -1
  13. package/Badge/badgeClasses.d.ts +56 -56
  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/Button.js +8 -3
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/TouchRipple.js +2 -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 +196 -6
  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/Chip.js +5 -7
  34. package/Chip/chipClasses.d.ts +88 -80
  35. package/Chip/chipClasses.js +1 -1
  36. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  37. package/ClickAwayListener/index.d.ts +2 -2
  38. package/Collapse/collapseClasses.d.ts +18 -18
  39. package/Container/containerClasses.d.ts +6 -6
  40. package/Dialog/Dialog.js +2 -1
  41. package/Dialog/DialogContext.d.ts +6 -6
  42. package/Dialog/dialogClasses.d.ts +36 -36
  43. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  44. package/DialogContent/dialogContentClasses.d.ts +10 -10
  45. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  46. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  47. package/Divider/dividerClasses.d.ts +34 -34
  48. package/Drawer/drawerClasses.d.ts +30 -30
  49. package/Fab/fabClasses.d.ts +26 -26
  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/FormHelperText.d.ts +7 -1
  55. package/FormHelperText/FormHelperText.js +3 -1
  56. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  57. package/FormLabel/formLabelClasses.d.ts +22 -22
  58. package/Grid/Grid.js +67 -4
  59. package/Grid/gridClasses.d.ts +48 -48
  60. package/Icon/iconClasses.d.ts +24 -24
  61. package/IconButton/iconButtonClasses.d.ts +26 -26
  62. package/ImageList/imageListClasses.d.ts +16 -16
  63. package/ImageListItem/ImageListItem.js +4 -4
  64. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  65. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  66. package/Input/inputClasses.d.ts +34 -34
  67. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  68. package/InputBase/InputBase.js +3 -2
  69. package/InputBase/inputBaseClasses.d.ts +46 -44
  70. package/InputBase/inputBaseClasses.js +1 -1
  71. package/InputLabel/inputLabelClasses.d.ts +32 -32
  72. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  73. package/Link/getTextDecoration.d.ts +15 -15
  74. package/Link/linkClasses.d.ts +18 -18
  75. package/List/listClasses.d.ts +14 -14
  76. package/ListItem/listItemClasses.d.ts +30 -30
  77. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  78. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  79. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  80. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  81. package/ListItemText/listItemTextClasses.d.ts +18 -18
  82. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  83. package/Menu/menuClasses.d.ts +12 -12
  84. package/MenuItem/menuItemClasses.d.ts +20 -20
  85. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  86. package/Modal/Modal.d.ts +2 -1
  87. package/Modal/Modal.js +2 -1
  88. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  89. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  90. package/OverridableComponent.d.ts +4 -0
  91. package/Pagination/paginationClasses.d.ts +14 -14
  92. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  93. package/Paper/paperClasses.d.ts +39 -39
  94. package/Popover/popoverClasses.d.ts +10 -10
  95. package/Popper/Popper.d.ts +24 -24
  96. package/Popper/Popper.js +24 -0
  97. package/README.md +5 -8
  98. package/Radio/radioClasses.d.ts +16 -16
  99. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  100. package/RadioGroup/useRadioGroup.d.ts +4 -4
  101. package/Rating/ratingClasses.d.ts +40 -40
  102. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  103. package/Select/SelectInput.js +1 -1
  104. package/Select/selectClasses.d.ts +30 -30
  105. package/Skeleton/skeletonClasses.d.ts +24 -24
  106. package/Slider/Slider.js +3 -2
  107. package/Snackbar/snackbarClasses.d.ts +20 -20
  108. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  109. package/SpeedDial/speedDialClasses.d.ts +22 -22
  110. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  111. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  112. package/Stack/Stack.js +15 -2
  113. package/Step/StepContext.d.ts +20 -20
  114. package/Step/stepClasses.d.ts +16 -16
  115. package/StepButton/stepButtonClasses.d.ts +14 -14
  116. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  117. package/StepContent/stepContentClasses.d.ts +12 -12
  118. package/StepIcon/stepIconClasses.d.ts +16 -16
  119. package/StepLabel/stepLabelClasses.d.ts +28 -28
  120. package/Stepper/StepperContext.d.ts +18 -18
  121. package/Stepper/stepperClasses.d.ts +14 -14
  122. package/SvgIcon/svgIconClasses.d.ts +24 -24
  123. package/Switch/switchClasses.d.ts +32 -32
  124. package/Tab/tabClasses.d.ts +26 -26
  125. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  126. package/Table/tableClasses.d.ts +10 -10
  127. package/TableBody/tableBodyClasses.d.ts +8 -8
  128. package/TableCell/tableCellClasses.d.ts +32 -32
  129. package/TableContainer/tableContainerClasses.d.ts +8 -8
  130. package/TableFooter/tableFooterClasses.d.ts +8 -8
  131. package/TableHead/tableHeadClasses.d.ts +8 -8
  132. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  133. package/TableRow/tableRowClasses.d.ts +16 -16
  134. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  135. package/Tabs/Tabs.d.ts +7 -1
  136. package/Tabs/Tabs.js +3 -1
  137. package/Tabs/tabsClasses.d.ts +32 -32
  138. package/TextField/textFieldClasses.d.ts +8 -8
  139. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  140. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  141. package/Toolbar/toolbarClasses.d.ts +14 -14
  142. package/Tooltip/Tooltip.js +5 -6
  143. package/Tooltip/tooltipClasses.d.ts +30 -30
  144. package/Typography/typographyClasses.d.ts +50 -50
  145. package/Unstable_Grid2/Grid2.d.ts +4 -4
  146. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  147. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  148. package/Unstable_Grid2/index.d.ts +4 -4
  149. package/className/index.d.ts +1 -1
  150. package/darkScrollbar/index.d.ts +28 -28
  151. package/index.js +1 -1
  152. package/internal/switchBaseClasses.d.ts +12 -12
  153. package/legacy/Badge/Badge.js +1 -1
  154. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  155. package/legacy/Button/Button.js +4 -2
  156. package/legacy/ButtonBase/TouchRipple.js +2 -2
  157. package/legacy/Chip/Chip.js +4 -6
  158. package/legacy/Chip/chipClasses.js +1 -1
  159. package/legacy/Dialog/Dialog.js +2 -1
  160. package/legacy/FormHelperText/FormHelperText.js +3 -1
  161. package/legacy/Grid/Grid.js +72 -12
  162. package/legacy/ImageListItem/ImageListItem.js +4 -4
  163. package/legacy/InputBase/InputBase.js +3 -2
  164. package/legacy/InputBase/inputBaseClasses.js +1 -1
  165. package/legacy/Modal/Modal.js +2 -1
  166. package/legacy/Popper/Popper.js +24 -0
  167. package/legacy/Select/SelectInput.js +1 -1
  168. package/legacy/Slider/Slider.js +3 -2
  169. package/legacy/Stack/Stack.js +15 -2
  170. package/legacy/Tabs/Tabs.js +3 -1
  171. package/legacy/Tooltip/Tooltip.js +5 -6
  172. package/legacy/index.js +1 -1
  173. package/legacy/styles/createTheme.js +5 -0
  174. package/locale/index.d.ts +71 -71
  175. package/modern/Badge/Badge.js +1 -1
  176. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  177. package/modern/Button/Button.js +8 -3
  178. package/modern/ButtonBase/TouchRipple.js +2 -2
  179. package/modern/Chip/Chip.js +5 -7
  180. package/modern/Chip/chipClasses.js +1 -1
  181. package/modern/Dialog/Dialog.js +2 -1
  182. package/modern/FormHelperText/FormHelperText.js +3 -1
  183. package/modern/Grid/Grid.js +67 -4
  184. package/modern/ImageListItem/ImageListItem.js +4 -4
  185. package/modern/InputBase/InputBase.js +3 -2
  186. package/modern/InputBase/inputBaseClasses.js +1 -1
  187. package/modern/Modal/Modal.js +2 -1
  188. package/modern/Popper/Popper.js +24 -0
  189. package/modern/Select/SelectInput.js +1 -1
  190. package/modern/Slider/Slider.js +3 -2
  191. package/modern/Stack/Stack.js +15 -2
  192. package/modern/Tabs/Tabs.js +3 -1
  193. package/modern/Tooltip/Tooltip.js +5 -6
  194. package/modern/index.js +1 -1
  195. package/modern/styles/createTheme.js +6 -0
  196. package/node/Badge/Badge.js +1 -1
  197. package/node/BottomNavigation/BottomNavigation.js +0 -0
  198. package/node/Button/Button.js +10 -3
  199. package/node/ButtonBase/TouchRipple.js +2 -2
  200. package/node/Chip/Chip.js +5 -7
  201. package/node/Chip/chipClasses.js +1 -1
  202. package/node/Dialog/Dialog.js +2 -1
  203. package/node/FormHelperText/FormHelperText.js +3 -1
  204. package/node/Grid/Grid.js +67 -4
  205. package/node/ImageListItem/ImageListItem.js +4 -4
  206. package/node/InputBase/InputBase.js +3 -2
  207. package/node/InputBase/inputBaseClasses.js +1 -1
  208. package/node/Modal/Modal.js +2 -1
  209. package/node/Popper/Popper.js +24 -0
  210. package/node/Select/SelectInput.js +1 -1
  211. package/node/Slider/Slider.js +3 -2
  212. package/node/Stack/Stack.js +14 -1
  213. package/node/Tabs/Tabs.js +3 -1
  214. package/node/Tooltip/Tooltip.js +5 -6
  215. package/node/index.js +1 -1
  216. package/node/styles/createTheme.js +6 -0
  217. package/package.json +6 -6
  218. package/styles/CssVarsProvider.d.ts +14 -14
  219. package/styles/createTheme.js +6 -0
  220. package/transitions/index.d.ts +1 -1
  221. package/transitions/transition.d.ts +13 -13
  222. package/transitions/utils.d.ts +23 -23
  223. package/umd/material-ui.development.js +279 -71
  224. package/umd/material-ui.production.min.js +20 -20
  225. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  226. package/useTouchRipple/index.d.ts +1 -1
  227. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  228. package/utils/getScrollbarSize.d.ts +2 -2
  229. package/utils/ownerDocument.d.ts +2 -2
  230. package/utils/ownerWindow.d.ts +2 -2
  231. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.0
1
+ /** @license MUI v5.9.3
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.
@@ -5575,11 +5575,11 @@
5575
5575
  slot => {
5576
5576
  output[slot] = slots[slot].reduce((acc, key) => {
5577
5577
  if (key) {
5578
+ acc.push(getUtilityClass(key));
5579
+
5578
5580
  if (classes && classes[key]) {
5579
5581
  acc.push(classes[key]);
5580
5582
  }
5581
-
5582
- acc.push(getUtilityClass(key));
5583
5583
  }
5584
5584
 
5585
5585
  return acc;
@@ -5701,7 +5701,7 @@
5701
5701
  function createEmptyBreakpointObject(breakpointsInput = {}) {
5702
5702
  var _breakpointsInput$key;
5703
5703
 
5704
- const breakpointsInOrder = breakpointsInput == null ? void 0 : (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
5704
+ const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
5705
5705
  const breakpointStyleKey = breakpointsInput.up(key);
5706
5706
  acc[breakpointStyleKey] = {};
5707
5707
  return acc;
@@ -5720,6 +5720,11 @@
5720
5720
  return acc;
5721
5721
  }, style);
5722
5722
  }
5723
+ function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
5724
+ const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
5725
+ const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});
5726
+ return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
5727
+ } // compute base for responsive values; e.g.,
5723
5728
  // [1,2,3] => {xs: true, sm: true, md: true}
5724
5729
  // {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}
5725
5730
 
@@ -6918,7 +6923,7 @@
6918
6923
  }
6919
6924
 
6920
6925
  const _excluded$2i = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6921
- _excluded2$c = ["theme"],
6926
+ _excluded2$d = ["theme"],
6922
6927
  _excluded3$1 = ["theme"];
6923
6928
 
6924
6929
  function isEmpty$2(obj) {
@@ -7037,7 +7042,7 @@
7037
7042
  let {
7038
7043
  theme: themeInput
7039
7044
  } = _ref,
7040
- other = _objectWithoutPropertiesLoose(_ref, _excluded2$c);
7045
+ other = _objectWithoutPropertiesLoose(_ref, _excluded2$d);
7041
7046
 
7042
7047
  return stylesArg(_extends({
7043
7048
  theme: isEmpty$2(themeInput) ? defaultTheme : themeInput
@@ -8080,7 +8085,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8080
8085
  })();
8081
8086
 
8082
8087
  if (key === resolvedDefaultColorScheme) {
8083
- defaultColorSchemeStyleSheet[colorSchemeSelector] = css;
8088
+ defaultColorSchemeStyleSheet[`${colorSchemeSelector}, [${attribute}="${key}"]`] = css;
8084
8089
  } else {
8085
8090
  otherColorSchemesStyleSheet[`${colorSchemeSelector === ':root' ? '' : colorSchemeSelector}[${attribute}="${key}"]`] = css;
8086
8091
  }
@@ -8292,7 +8297,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8292
8297
  defaultTheme: defaultTheme$5
8293
8298
  });
8294
8299
 
8295
- const useUtilityClasses$1P = (ownerState, componentName) => {
8300
+ const useUtilityClasses$1Q = (ownerState, componentName) => {
8296
8301
  const getContainerUtilityClass = slot => {
8297
8302
  return generateUtilityClass(componentName, slot);
8298
8303
  };
@@ -8385,7 +8390,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8385
8390
  }); // @ts-ignore module augmentation fails if custom breakpoints are used
8386
8391
 
8387
8392
 
8388
- const classes = useUtilityClasses$1P(ownerState, componentName);
8393
+ const classes = useUtilityClasses$1Q(ownerState, componentName);
8389
8394
  return (
8390
8395
  /*#__PURE__*/
8391
8396
  // @ts-ignore theme is injected by the styled util
@@ -8601,14 +8606,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8601
8606
  flexWrap: ownerState.wrap
8602
8607
  }, {
8603
8608
  margin: `calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)`
8604
- }, ownerState.nested ? {
8609
+ }, ownerState.disableEqualOverflow && {
8610
+ margin: `calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)`
8611
+ }, ownerState.nested ? _extends({
8605
8612
  padding: `calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)`
8606
- } : {
8613
+ }, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
8614
+ padding: `calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))`
8615
+ }) : {
8607
8616
  '--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
8608
8617
  '--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
8609
- }) : {
8618
+ }) : _extends({
8610
8619
  padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
8611
- });
8620
+ }, ownerState.disableEqualOverflow && {
8621
+ padding: `calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))`
8622
+ }));
8612
8623
  };
8613
8624
  const generateSizeClassNames = gridSize => {
8614
8625
  const classNames = [];
@@ -8645,7 +8656,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8645
8656
  return [];
8646
8657
  };
8647
8658
 
8648
- const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing"];
8659
+ const _excluded$2f = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
8649
8660
  const defaultTheme$4 = createTheme$1(); // widening Theme to any so that the consumer can own the theme structure.
8650
8661
 
8651
8662
  const defaultCreateStyledComponent = systemStyled('div', {
@@ -8670,6 +8681,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8670
8681
  componentName = 'MuiGrid'
8671
8682
  } = options;
8672
8683
  const NestedContext = /*#__PURE__*/React__namespace.createContext(false);
8684
+ const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
8673
8685
 
8674
8686
  const useUtilityClasses = (ownerState, theme) => {
8675
8687
  const {
@@ -8687,13 +8699,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8687
8699
 
8688
8700
  const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);
8689
8701
  const Grid = /*#__PURE__*/React__namespace.forwardRef(function Grid(inProps, ref) {
8690
- var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin;
8702
+ var _inProps$columns, _inProps$spacing, _ref, _inProps$rowSpacing, _ref2, _inProps$columnSpacin, _ref3, _disableEqualOverflow;
8691
8703
 
8692
8704
  const theme = useTheme$1();
8693
8705
  const themeProps = useThemeProps(inProps);
8694
8706
  const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
8695
8707
 
8696
8708
  const nested = React__namespace.useContext(NestedContext);
8709
+ const overflow = React__namespace.useContext(OverflowContext);
8697
8710
 
8698
8711
  const {
8699
8712
  className,
@@ -8704,9 +8717,17 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8704
8717
  wrap = 'wrap',
8705
8718
  spacing: spacingProp = 0,
8706
8719
  rowSpacing: rowSpacingProp = spacingProp,
8707
- columnSpacing: columnSpacingProp = spacingProp
8720
+ columnSpacing: columnSpacingProp = spacingProp,
8721
+ disableEqualOverflow: themeDisableEqualOverflow
8708
8722
  } = props,
8709
- rest = _objectWithoutPropertiesLoose(props, _excluded$2f); // collect breakpoints related props because they can be custom from the theme.
8723
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2f); // Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
8724
+
8725
+
8726
+ let disableEqualOverflow = themeDisableEqualOverflow;
8727
+
8728
+ if (nested && themeDisableEqualOverflow !== undefined) {
8729
+ disableEqualOverflow = inProps.disableEqualOverflow;
8730
+ } // collect breakpoints related props because they can be customized from the theme.
8710
8731
 
8711
8732
 
8712
8733
  const gridSize = {};
@@ -8736,7 +8757,11 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8736
8757
  rowSpacing,
8737
8758
  columnSpacing,
8738
8759
  gridSize,
8739
- gridOffset
8760
+ gridOffset,
8761
+ disableEqualOverflow: (_ref3 = (_disableEqualOverflow = disableEqualOverflow) != null ? _disableEqualOverflow : overflow) != null ? _ref3 : false,
8762
+ // use context value if exists.
8763
+ parentDisableEqualOverflow: overflow // for nested grid
8764
+
8740
8765
  });
8741
8766
 
8742
8767
  const classes = useUtilityClasses(ownerState, theme);
@@ -8755,6 +8780,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8755
8780
  });
8756
8781
  }
8757
8782
 
8783
+ if (disableEqualOverflow !== undefined && disableEqualOverflow !== (overflow != null ? overflow : false)) {
8784
+ // There are 2 possibilities that should wrap with the OverflowContext to communicate with the nested grids:
8785
+ // 1. It is the root grid with `disableEqualOverflow`.
8786
+ // 2. It is a nested grid with different `disableEqualOverflow` from the context.
8787
+ result = /*#__PURE__*/jsxRuntime_1(OverflowContext.Provider, {
8788
+ value: disableEqualOverflow,
8789
+ children: result
8790
+ });
8791
+ }
8792
+
8758
8793
  return result;
8759
8794
  });
8760
8795
  Grid.propTypes
@@ -8767,6 +8802,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8767
8802
  component: PropTypes.elementType,
8768
8803
  container: PropTypes.bool,
8769
8804
  direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
8805
+ disableEqualOverflow: PropTypes.bool,
8770
8806
  lg: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
8771
8807
  lgOffset: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
8772
8808
  md: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.bool]),
@@ -8786,7 +8822,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8786
8822
  }
8787
8823
 
8788
8824
  const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8789
- _excluded2$b = ["type", "mode"];
8825
+ _excluded2$c = ["type", "mode"];
8790
8826
  function adaptV4Theme(inputTheme) {
8791
8827
  {
8792
8828
  console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
@@ -8851,7 +8887,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8851
8887
  type: typeInput,
8852
8888
  mode: modeInput
8853
8889
  } = palette,
8854
- paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
8890
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
8855
8891
 
8856
8892
  const finalMode = modeInput || typeInput || 'light';
8857
8893
  theme.palette = _extends({
@@ -9616,7 +9652,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9616
9652
  option
9617
9653
  });
9618
9654
 
9619
- if (!disableCloseOnSelect && !event.ctrlKey && !event.metaKey) {
9655
+ if (!disableCloseOnSelect && (!event || !event.ctrlKey && !event.metaKey)) {
9620
9656
  handleClose(event, reason);
9621
9657
  }
9622
9658
 
@@ -10128,7 +10164,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10128
10164
 
10129
10165
  const _excluded$2c = ["badgeContent", "component", "children", "components", "componentsProps", "invisible", "max", "showZero"];
10130
10166
 
10131
- const useUtilityClasses$1O = ownerState => {
10167
+ const useUtilityClasses$1P = ownerState => {
10132
10168
  const {
10133
10169
  invisible
10134
10170
  } = ownerState;
@@ -10177,7 +10213,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
10177
10213
  showZero
10178
10214
  });
10179
10215
 
10180
- const classes = useUtilityClasses$1O(ownerState);
10216
+ const classes = useUtilityClasses$1P(ownerState);
10181
10217
  const Root = component || components.Root || 'span';
10182
10218
  const rootProps = useSlotProps({
10183
10219
  elementType: Root,
@@ -12496,8 +12532,13 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12496
12532
 
12497
12533
  var Portal$1 = Portal;
12498
12534
 
12499
- const _excluded$2b = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
12500
- _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12535
+ function getPopperUnstyledUtilityClass(slot) {
12536
+ return generateUtilityClass('MuiPopperUnstyled', slot);
12537
+ }
12538
+ generateUtilityClasses('MuiPopperUnstyled', ['root']);
12539
+
12540
+ const _excluded$2b = ["anchorEl", "children", "component", "components", "componentsProps", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
12541
+ _excluded2$b = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12501
12542
 
12502
12543
  function flipPlacement(placement, direction) {
12503
12544
  if (direction === 'ltr') {
@@ -12526,17 +12567,30 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12526
12567
  return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
12527
12568
  }
12528
12569
 
12570
+ const useUtilityClasses$1O = () => {
12571
+ const slots = {
12572
+ root: ['root']
12573
+ };
12574
+ return composeClasses(slots, getPopperUnstyledUtilityClass, {});
12575
+ };
12576
+
12529
12577
  const defaultPopperOptions = {};
12530
12578
  /* eslint-disable react/prop-types */
12531
12579
 
12532
12580
  const PopperTooltip = /*#__PURE__*/React__namespace.forwardRef(function PopperTooltip(props, ref) {
12581
+ var _ref;
12582
+
12533
12583
  const {
12534
12584
  anchorEl,
12535
12585
  children,
12586
+ component,
12587
+ components = {},
12588
+ componentsProps = {},
12536
12589
  direction,
12537
12590
  disablePortal,
12538
12591
  modifiers,
12539
12592
  open,
12593
+ ownerState,
12540
12594
  placement: initialPlacement,
12541
12595
  popperOptions,
12542
12596
  popperRef: popperRefProp,
@@ -12634,10 +12688,20 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12634
12688
  childProps.TransitionProps = TransitionProps;
12635
12689
  }
12636
12690
 
12637
- return /*#__PURE__*/jsxRuntime_1("div", _extends({
12638
- ref: ownRef,
12639
- role: "tooltip"
12640
- }, other, {
12691
+ const classes = useUtilityClasses$1O();
12692
+ const Root = (_ref = component != null ? component : components.Root) != null ? _ref : 'div';
12693
+ const rootProps = useSlotProps({
12694
+ elementType: Root,
12695
+ externalSlotProps: componentsProps.root,
12696
+ externalForwardedProps: other,
12697
+ additionalProps: {
12698
+ role: 'tooltip',
12699
+ ref: ownRef
12700
+ },
12701
+ ownerState: _extends({}, props, ownerState),
12702
+ className: classes.root
12703
+ });
12704
+ return /*#__PURE__*/jsxRuntime_1(Root, _extends({}, rootProps, {
12641
12705
  children: typeof children === 'function' ? children(childProps) : children
12642
12706
  }));
12643
12707
  });
@@ -12663,7 +12727,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12663
12727
  style,
12664
12728
  transition = false
12665
12729
  } = props,
12666
- other = _objectWithoutPropertiesLoose(props, _excluded2$a);
12730
+ other = _objectWithoutPropertiesLoose(props, _excluded2$b);
12667
12731
 
12668
12732
  const [exited, setExited] = React__namespace.useState(true);
12669
12733
 
@@ -12753,6 +12817,23 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12753
12817
  /* @typescript-to-proptypes-ignore */
12754
12818
  .oneOfType([PropTypes.node, PropTypes.func]),
12755
12819
 
12820
+ /**
12821
+ * The components used for each slot inside the Popper.
12822
+ * Either a string to use a HTML element or a component.
12823
+ * @default {}
12824
+ */
12825
+ components: PropTypes.shape({
12826
+ Root: PropTypes.elementType
12827
+ }),
12828
+
12829
+ /**
12830
+ * The props used for each slot inside the Popper.
12831
+ * @default {}
12832
+ */
12833
+ componentsProps: PropTypes.shape({
12834
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
12835
+ }),
12836
+
12756
12837
  /**
12757
12838
  * An HTML element or function that returns one.
12758
12839
  * The `container` will have the portal children appended to it.
@@ -15976,6 +16057,11 @@ const theme2 = createTheme({ palette: {
15976
16057
  } = options,
15977
16058
  other = _objectWithoutPropertiesLoose(options, _excluded$24);
15978
16059
 
16060
+ if (options.vars) {
16061
+ throw new Error(`MUI: \`vars\` is a private field used for CSS variables support.
16062
+ Please use another name.` );
16063
+ }
16064
+
15979
16065
  const palette = createPalette(paletteInput);
15980
16066
  const systemTheme = createTheme$1(options);
15981
16067
  let muiTheme = deepmerge(systemTheme, {
@@ -16470,7 +16556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16470
16556
  var Paper$1 = Paper;
16471
16557
 
16472
16558
  const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
16473
- _excluded2$9 = ["palette"];
16559
+ _excluded2$a = ["palette"];
16474
16560
  const defaultDarkOverlays = [...Array(25)].map((_, index) => {
16475
16561
  if (index === 0) {
16476
16562
  return undefined;
@@ -16510,7 +16596,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16510
16596
  {
16511
16597
  palette: lightPalette
16512
16598
  } = _createThemeWithoutVa,
16513
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
16599
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$a);
16514
16600
 
16515
16601
  const {
16516
16602
  palette: darkPalette
@@ -17026,6 +17112,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17026
17112
 
17027
17113
  var TransitionGroupContext = React__default["default"].createContext(null);
17028
17114
 
17115
+ var forceReflow = function forceReflow(node) {
17116
+ return node.scrollTop;
17117
+ };
17118
+
17029
17119
  var UNMOUNTED = 'unmounted';
17030
17120
  var EXITED = 'exited';
17031
17121
  var ENTERING = 'entering';
@@ -17245,6 +17335,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17245
17335
  this.cancelNextCallback();
17246
17336
 
17247
17337
  if (nextStatus === ENTERING) {
17338
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
17339
+ var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default["default"].findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
17340
+ // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
17341
+ // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
17342
+
17343
+ if (node) forceReflow(node);
17344
+ }
17345
+
17248
17346
  this.performEnter(mounting);
17249
17347
  } else {
17250
17348
  this.performExit();
@@ -19159,7 +19257,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19159
19257
  const {
19160
19258
  clientX,
19161
19259
  clientY
19162
- } = event.touches ? event.touches[0] : event;
19260
+ } = event.touches && event.touches.length > 0 ? event.touches[0] : event;
19163
19261
  rippleX = Math.round(clientX - rect.left);
19164
19262
  rippleY = Math.round(clientY - rect.top);
19165
19263
  }
@@ -19245,7 +19343,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19245
19343
  stop
19246
19344
  }), [pulsate, start, stop]);
19247
19345
  return /*#__PURE__*/jsxRuntime_1(TouchRippleRoot, _extends({
19248
- className: clsx(classes.root, touchRippleClasses$1.root, className),
19346
+ className: clsx(touchRippleClasses$1.root, classes.root, className),
19249
19347
  ref: container
19250
19348
  }, other, {
19251
19349
  children: /*#__PURE__*/jsxRuntime_1(TransitionGroup$1, {
@@ -21063,6 +21161,30 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21063
21161
  /* @typescript-to-proptypes-ignore */
21064
21162
  .oneOfType([PropTypes.node, PropTypes.func]),
21065
21163
 
21164
+ /**
21165
+ * @ignore
21166
+ */
21167
+ component: PropTypes
21168
+ /* @typescript-to-proptypes-ignore */
21169
+ .elementType,
21170
+
21171
+ /**
21172
+ * The components used for each slot inside the Popper.
21173
+ * Either a string to use a HTML element or a component.
21174
+ * @default {}
21175
+ */
21176
+ components: PropTypes.shape({
21177
+ Root: PropTypes.elementType
21178
+ }),
21179
+
21180
+ /**
21181
+ * The props used for each slot inside the Popper.
21182
+ * @default {}
21183
+ */
21184
+ componentsProps: PropTypes.shape({
21185
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
21186
+ }),
21187
+
21066
21188
  /**
21067
21189
  * An HTML element or function that returns one.
21068
21190
  * The `container` will have the portal children appended to it.
@@ -21305,7 +21427,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21305
21427
  function getChipUtilityClass(slot) {
21306
21428
  return generateUtilityClass('MuiChip', slot);
21307
21429
  }
21308
- const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'focusVisible']);
21430
+ const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorPrimary', 'colorSecondary', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
21309
21431
  var chipClasses$1 = chipClasses;
21310
21432
 
21311
21433
  const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
@@ -21325,7 +21447,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21325
21447
  label: ['label', `label${capitalize(size)}`],
21326
21448
  avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
21327
21449
  icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
21328
- deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIconOutlinedColor${capitalize(color)}`]
21450
+ deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21329
21451
  };
21330
21452
  return composeClasses(slots, getChipUtilityClass, classes);
21331
21453
  };
@@ -21363,8 +21485,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21363
21485
  }, {
21364
21486
  [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
21365
21487
  }, {
21366
- [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconOutlinedColor${capitalize(color)}`]
21367
- }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], variant === 'outlined' && styles[`outlined${capitalize(color)}`]];
21488
+ [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21489
+ }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
21368
21490
  }
21369
21491
  })(({
21370
21492
  theme,
@@ -21632,7 +21754,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21632
21754
  };
21633
21755
 
21634
21756
  const clickable = clickableProp !== false && onClick ? true : clickableProp;
21635
- const small = size === 'small';
21636
21757
  const component = clickable || onDelete ? ButtonBase$1 : ComponentProp || 'div';
21637
21758
 
21638
21759
  const ownerState = _extends({}, props, {
@@ -21655,12 +21776,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21655
21776
  let deleteIcon = null;
21656
21777
 
21657
21778
  if (onDelete) {
21658
- const customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes[`deleteIconOutlinedColor${capitalize(color)}`] : classes[`deleteIconColor${capitalize(color)}`]), small && classes.deleteIconSmall);
21659
21779
  deleteIcon = deleteIconProp && /*#__PURE__*/React__namespace.isValidElement(deleteIconProp) ? /*#__PURE__*/React__namespace.cloneElement(deleteIconProp, {
21660
- className: clsx(deleteIconProp.props.className, classes.deleteIcon, customClasses),
21780
+ className: clsx(deleteIconProp.props.className, classes.deleteIcon),
21661
21781
  onClick: handleDeleteIconClick
21662
21782
  }) : /*#__PURE__*/jsxRuntime_1(CancelIcon, {
21663
- className: clsx(classes.deleteIcon, customClasses),
21783
+ className: clsx(classes.deleteIcon),
21664
21784
  onClick: handleDeleteIconClick
21665
21785
  });
21666
21786
  }
@@ -21912,7 +22032,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21912
22032
  function getInputBaseUtilityClass(slot) {
21913
22033
  return generateUtilityClass('MuiInputBase', slot);
21914
22034
  }
21915
- const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
22035
+ const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
21916
22036
  var inputBaseClasses$1 = inputBaseClasses;
21917
22037
 
21918
22038
  const _excluded$1O = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "startAdornment", "type", "value"];
@@ -21941,13 +22061,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21941
22061
  fullWidth,
21942
22062
  hiddenLabel,
21943
22063
  multiline,
22064
+ readOnly,
21944
22065
  size,
21945
22066
  startAdornment,
21946
22067
  type
21947
22068
  } = ownerState;
21948
22069
  const slots = {
21949
- root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel'],
21950
- input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd']
22070
+ root: ['root', `color${capitalize(color)}`, disabled && 'disabled', error && 'error', fullWidth && 'fullWidth', focused && 'focused', formControl && 'formControl', size === 'small' && 'sizeSmall', multiline && 'multiline', startAdornment && 'adornedStart', endAdornment && 'adornedEnd', hiddenLabel && 'hiddenLabel', readOnly && 'readOnly'],
22071
+ input: ['input', disabled && 'disabled', type === 'search' && 'inputTypeSearch', multiline && 'inputMultiline', size === 'small' && 'inputSizeSmall', hiddenLabel && 'inputHiddenLabel', startAdornment && 'inputAdornedStart', endAdornment && 'inputAdornedEnd', readOnly && 'readOnly']
21951
22072
  };
21952
22073
  return composeClasses(slots, getInputBaseUtilityClass, classes);
21953
22074
  };
@@ -24811,7 +24932,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24811
24932
  Root: BadgeRoot,
24812
24933
  Badge: BadgeBadge
24813
24934
  }, components),
24814
- className: clsx(className, classes.root, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className),
24935
+ className: clsx((_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.className, classes.root, className),
24815
24936
  componentsProps: {
24816
24937
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
24817
24938
  as: component,
@@ -25605,7 +25726,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25605
25726
 
25606
25727
  var ButtonGroupContext$1 = ButtonGroupContext;
25607
25728
 
25608
- const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
25729
+ const _excluded$1E = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"],
25730
+ _excluded2$9 = ["root"];
25609
25731
 
25610
25732
  const useUtilityClasses$1n = ownerState => {
25611
25733
  const {
@@ -25849,7 +25971,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25849
25971
  variant
25850
25972
  });
25851
25973
 
25852
- const classes = useUtilityClasses$1n(ownerState);
25974
+ const _useUtilityClasses = useUtilityClasses$1n(ownerState),
25975
+ {
25976
+ root: classesRoot
25977
+ } = _useUtilityClasses,
25978
+ classes = _objectWithoutPropertiesLoose(_useUtilityClasses, _excluded2$9);
25853
25979
 
25854
25980
  const startIcon = startIconProp && /*#__PURE__*/jsxRuntime_1(ButtonStartIcon, {
25855
25981
  className: classes.startIcon,
@@ -25865,7 +25991,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25865
25991
 
25866
25992
  return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
25867
25993
  ownerState: ownerState,
25868
- className: clsx(className, contextProps.className),
25994
+ className: clsx(contextProps.className, classesRoot, className),
25869
25995
  component: component,
25870
25996
  disabled: disabled,
25871
25997
  focusRipple: !disableFocusRipple,
@@ -28177,7 +28303,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28177
28303
 
28178
28304
  /**
28179
28305
  * A backdrop component. This prop enables custom backdrop rendering.
28180
- * @deprecated Use `components.Backdrop` instead.
28306
+ * @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
28307
+ * Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
28181
28308
  * @default styled(Backdrop, {
28182
28309
  * name: 'MuiModal',
28183
28310
  * slot: 'Backdrop',
@@ -28623,7 +28750,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28623
28750
 
28624
28751
  /**
28625
28752
  * A backdrop component. This prop enables custom backdrop rendering.
28626
- * @deprecated Use `components.Backdrop` instead.
28753
+ * @deprecated Use `components.Backdrop` instead. While this prop currently works, it will be removed in the next major version.
28754
+ * Use the `components.Backdrop` prop to make your application ready for the next version of Material UI.
28627
28755
  * @default styled(Backdrop, {
28628
28756
  * name: 'MuiModal',
28629
28757
  * slot: 'Backdrop',
@@ -31561,7 +31689,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31561
31689
  /**
31562
31690
  * The variant to use.
31563
31691
  */
31564
- variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])
31692
+ variant: PropTypes
31693
+ /* @typescript-to-proptypes-ignore */
31694
+ .oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])
31565
31695
  } ;
31566
31696
  var FormHelperText$1 = FormHelperText;
31567
31697
 
@@ -31878,6 +32008,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31878
32008
  return output;
31879
32009
  });
31880
32010
  }
32011
+ /**
32012
+ * Extracts zero value breakpoint keys before a non-zero value breakpoint key.
32013
+ * @example { xs: 0, sm: 0, md: 2, lg: 0, xl: 0 } or [0, 0, 2, 0, 0]
32014
+ * @returns [xs, sm]
32015
+ */
32016
+
32017
+ function extractZeroValueBreakpointKeys({
32018
+ breakpoints,
32019
+ values
32020
+ }) {
32021
+ let nonZeroKey = '';
32022
+ Object.keys(values).forEach(key => {
32023
+ if (nonZeroKey !== '') {
32024
+ return;
32025
+ }
32026
+
32027
+ if (values[key] !== 0) {
32028
+ nonZeroKey = key;
32029
+ }
32030
+ });
32031
+ const sortedBreakpointKeysByValue = Object.keys(breakpoints).sort((a, b) => {
32032
+ return breakpoints[a] - breakpoints[b];
32033
+ });
32034
+ return sortedBreakpointKeysByValue.slice(0, sortedBreakpointKeysByValue.indexOf(nonZeroKey));
32035
+ }
32036
+
31881
32037
  function generateRowGap({
31882
32038
  theme,
31883
32039
  ownerState
@@ -31893,9 +32049,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31893
32049
  values: rowSpacing,
31894
32050
  breakpoints: theme.breakpoints.values
31895
32051
  });
32052
+ let zeroValueBreakpointKeys;
32053
+
32054
+ if (typeof rowSpacingValues === 'object') {
32055
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32056
+ breakpoints: theme.breakpoints.values,
32057
+ values: rowSpacingValues
32058
+ });
32059
+ }
32060
+
31896
32061
  styles = handleBreakpoints({
31897
32062
  theme
31898
- }, rowSpacingValues, propValue => {
32063
+ }, rowSpacingValues, (propValue, breakpoint) => {
31899
32064
  const themeSpacing = theme.spacing(propValue);
31900
32065
 
31901
32066
  if (themeSpacing !== '0px') {
@@ -31907,7 +32072,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31907
32072
  };
31908
32073
  }
31909
32074
 
31910
- return {};
32075
+ if (zeroValueBreakpointKeys.includes(breakpoint)) {
32076
+ return {};
32077
+ }
32078
+
32079
+ return {
32080
+ marginTop: 0,
32081
+ [`& > .${gridClasses$1.item}`]: {
32082
+ paddingTop: 0
32083
+ }
32084
+ };
31911
32085
  });
31912
32086
  }
31913
32087
 
@@ -31928,9 +32102,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31928
32102
  values: columnSpacing,
31929
32103
  breakpoints: theme.breakpoints.values
31930
32104
  });
32105
+ let zeroValueBreakpointKeys;
32106
+
32107
+ if (typeof columnSpacingValues === 'object') {
32108
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32109
+ breakpoints: theme.breakpoints.values,
32110
+ values: columnSpacingValues
32111
+ });
32112
+ }
32113
+
31931
32114
  styles = handleBreakpoints({
31932
32115
  theme
31933
- }, columnSpacingValues, propValue => {
32116
+ }, columnSpacingValues, (propValue, breakpoint) => {
31934
32117
  const themeSpacing = theme.spacing(propValue);
31935
32118
 
31936
32119
  if (themeSpacing !== '0px') {
@@ -31943,7 +32126,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31943
32126
  };
31944
32127
  }
31945
32128
 
31946
- return {};
32129
+ if (zeroValueBreakpointKeys.includes(breakpoint)) {
32130
+ return {};
32131
+ }
32132
+
32133
+ return {
32134
+ width: '100%',
32135
+ marginLeft: 0,
32136
+ [`& > .${gridClasses$1.item}`]: {
32137
+ paddingLeft: 0
32138
+ }
32139
+ };
31947
32140
  });
31948
32141
  }
31949
32142
 
@@ -33736,9 +33929,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33736
33929
  })(({
33737
33930
  ownerState
33738
33931
  }) => _extends({
33739
- display: 'inline-block',
33740
- position: 'relative',
33741
- lineHeight: 0
33932
+ display: 'block',
33933
+ position: 'relative'
33742
33934
  }, ownerState.variant === 'standard' && {
33743
33935
  // For titlebar under list item
33744
33936
  display: 'flex',
@@ -33753,7 +33945,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
33753
33945
  [`& .${imageListItemClasses$1.img}`]: _extends({
33754
33946
  objectFit: 'cover',
33755
33947
  width: '100%',
33756
- height: '100%'
33948
+ height: '100%',
33949
+ display: 'block'
33757
33950
  }, ownerState.variant === 'standard' && {
33758
33951
  height: 'auto',
33759
33952
  flexGrow: 1
@@ -41663,7 +41856,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41663
41856
  onFocus: onFocus
41664
41857
  }, SelectDisplayProps, {
41665
41858
  ownerState: ownerState,
41666
- className: clsx(classes.select, className, SelectDisplayProps.className) // The id is required for proper a11y
41859
+ className: clsx(SelectDisplayProps.className, classes.select, className) // The id is required for proper a11y
41667
41860
  ,
41668
41861
  id: buttonId,
41669
41862
  children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
@@ -42674,7 +42867,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42674
42867
  transition: theme.transitions.create(['transform'], {
42675
42868
  duration: theme.transitions.duration.shortest
42676
42869
  }),
42677
- transformOrigin: 'bottom center',
42678
42870
  transform: 'translateY(-100%) scale(0)',
42679
42871
  position: 'absolute',
42680
42872
  backgroundColor: (theme.vars || theme).palette.grey[600],
@@ -42686,6 +42878,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42686
42878
  padding: '0.25rem 0.75rem'
42687
42879
  }, ownerState.orientation === 'horizontal' && {
42688
42880
  top: '-10px',
42881
+ transformOrigin: 'bottom center',
42689
42882
  '&:before': {
42690
42883
  position: 'absolute',
42691
42884
  content: '""',
@@ -42698,7 +42891,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42698
42891
  }
42699
42892
  }, ownerState.orientation === 'vertical' && {
42700
42893
  right: '30px',
42701
- top: '25px',
42894
+ top: '24px',
42895
+ transformOrigin: 'right center',
42702
42896
  '&:before': {
42703
42897
  position: 'absolute',
42704
42898
  content: '""',
@@ -44828,15 +45022,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44828
45022
  const handleEnter = event => {
44829
45023
  if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {
44830
45024
  return;
44831
- } // Workaround for https://github.com/facebook/react/issues/7769
44832
-
44833
-
44834
- if (!childNode) {
44835
- setChildNode(event.currentTarget);
44836
45025
  } // Remove the title ahead of time.
44837
45026
  // We don't want to wait for the next render commit.
44838
45027
  // We would risk displaying two tooltips at the same time (native + this one).
44839
- else {
45028
+
45029
+
45030
+ if (childNode) {
44840
45031
  childNode.removeAttribute('title');
44841
45032
  }
44842
45033
 
@@ -44881,6 +45072,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
44881
45072
 
44882
45073
  const handleFocus = event => {
44883
45074
  // Workaround for https://github.com/facebook/react/issues/7769
45075
+ // The autoFocus of React might trigger the event before the componentDidMount.
45076
+ // We need to account for this eventuality.
44884
45077
  if (!childNode) {
44885
45078
  setChildNode(event.currentTarget);
44886
45079
  }
@@ -45760,7 +45953,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45760
45953
  theme
45761
45954
  }) => {
45762
45955
  let styles = _extends({
45763
- display: 'flex'
45956
+ display: 'flex',
45957
+ flexDirection: 'column'
45764
45958
  }, handleBreakpoints({
45765
45959
  theme
45766
45960
  }, resolveBreakpointValues({
@@ -45788,6 +45982,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45788
45982
  base
45789
45983
  });
45790
45984
 
45985
+ if (typeof directionValues === 'object') {
45986
+ Object.keys(directionValues).forEach((breakpoint, index, breakpoints) => {
45987
+ const directionValue = directionValues[breakpoint];
45988
+
45989
+ if (!directionValue) {
45990
+ const previousDirectionValue = index > 0 ? directionValues[breakpoints[index - 1]] : 'column';
45991
+ directionValues[breakpoint] = previousDirectionValue;
45992
+ }
45993
+ });
45994
+ }
45995
+
45791
45996
  const styleFromPropValue = (propValue, breakpoint) => {
45792
45997
  return {
45793
45998
  '& > :not(style) + :not(style)': {
@@ -45802,6 +46007,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45802
46007
  }, spacingValues, styleFromPropValue));
45803
46008
  }
45804
46009
 
46010
+ styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
45805
46011
  return styles;
45806
46012
  };
45807
46013
  const StackRoot = styled$1('div', {
@@ -51136,7 +51342,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
51136
51342
  * Determines the color of the indicator.
51137
51343
  * @default 'primary'
51138
51344
  */
51139
- indicatorColor: PropTypes.oneOf(['primary', 'secondary']),
51345
+ indicatorColor: PropTypes
51346
+ /* @typescript-to-proptypes-ignore */
51347
+ .oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
51140
51348
 
51141
51349
  /**
51142
51350
  * Callback fired when the value changes.