@mui/material 5.9.2 → 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 (194) 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 +1 -1
  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 +69 -1
  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/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +40 -40
  50. package/FormControl/formControlClasses.d.ts +14 -14
  51. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  52. package/FormGroup/formGroupClasses.d.ts +12 -12
  53. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/Grid.js +67 -4
  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/imageListClasses.d.ts +16 -16
  60. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  61. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  64. package/InputBase/InputBase.js +3 -2
  65. package/InputBase/inputBaseClasses.d.ts +46 -44
  66. package/InputBase/inputBaseClasses.js +1 -1
  67. package/InputLabel/inputLabelClasses.d.ts +32 -32
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  83. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/paperClasses.d.ts +39 -39
  87. package/Popover/popoverClasses.d.ts +10 -10
  88. package/Popper/Popper.d.ts +24 -24
  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/ratingClasses.d.ts +40 -40
  93. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  94. package/Select/SelectInput.js +1 -1
  95. package/Select/selectClasses.d.ts +30 -30
  96. package/Skeleton/skeletonClasses.d.ts +24 -24
  97. package/Snackbar/snackbarClasses.d.ts +20 -20
  98. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  99. package/SpeedDial/speedDialClasses.d.ts +22 -22
  100. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  101. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  102. package/Stack/Stack.js +2 -1
  103. package/Step/StepContext.d.ts +20 -20
  104. package/Step/stepClasses.d.ts +16 -16
  105. package/StepButton/stepButtonClasses.d.ts +14 -14
  106. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  107. package/StepContent/stepContentClasses.d.ts +12 -12
  108. package/StepIcon/stepIconClasses.d.ts +16 -16
  109. package/StepLabel/stepLabelClasses.d.ts +28 -28
  110. package/Stepper/StepperContext.d.ts +18 -18
  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/Unstable_Grid2/Grid2.d.ts +4 -4
  133. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  134. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  135. package/Unstable_Grid2/index.d.ts +4 -4
  136. package/className/index.d.ts +1 -1
  137. package/darkScrollbar/index.d.ts +28 -28
  138. package/index.js +1 -1
  139. package/internal/switchBaseClasses.d.ts +12 -12
  140. package/legacy/Badge/Badge.js +1 -1
  141. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  142. package/legacy/Button/Button.js +4 -2
  143. package/legacy/ButtonBase/TouchRipple.js +1 -1
  144. package/legacy/Chip/Chip.js +4 -6
  145. package/legacy/Chip/chipClasses.js +1 -1
  146. package/legacy/Grid/Grid.js +72 -12
  147. package/legacy/InputBase/InputBase.js +3 -2
  148. package/legacy/InputBase/inputBaseClasses.js +1 -1
  149. package/legacy/Select/SelectInput.js +1 -1
  150. package/legacy/Stack/Stack.js +2 -1
  151. package/legacy/index.js +1 -1
  152. package/legacy/styles/createTheme.js +5 -0
  153. package/locale/index.d.ts +71 -71
  154. package/modern/Badge/Badge.js +1 -1
  155. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  156. package/modern/Button/Button.js +8 -3
  157. package/modern/ButtonBase/TouchRipple.js +1 -1
  158. package/modern/Chip/Chip.js +5 -7
  159. package/modern/Chip/chipClasses.js +1 -1
  160. package/modern/Grid/Grid.js +67 -4
  161. package/modern/InputBase/InputBase.js +3 -2
  162. package/modern/InputBase/inputBaseClasses.js +1 -1
  163. package/modern/Select/SelectInput.js +1 -1
  164. package/modern/Stack/Stack.js +2 -1
  165. package/modern/index.js +1 -1
  166. package/modern/styles/createTheme.js +6 -0
  167. package/node/Badge/Badge.js +1 -1
  168. package/node/BottomNavigation/BottomNavigation.js +0 -0
  169. package/node/Button/Button.js +10 -3
  170. package/node/ButtonBase/TouchRipple.js +1 -1
  171. package/node/Chip/Chip.js +5 -7
  172. package/node/Chip/chipClasses.js +1 -1
  173. package/node/Grid/Grid.js +67 -4
  174. package/node/InputBase/InputBase.js +3 -2
  175. package/node/InputBase/inputBaseClasses.js +1 -1
  176. package/node/Select/SelectInput.js +1 -1
  177. package/node/Stack/Stack.js +1 -0
  178. package/node/index.js +1 -1
  179. package/node/styles/createTheme.js +6 -0
  180. package/package.json +5 -5
  181. package/styles/CssVarsProvider.d.ts +14 -14
  182. package/styles/createTheme.js +6 -0
  183. package/transitions/index.d.ts +1 -1
  184. package/transitions/transition.d.ts +13 -13
  185. package/transitions/utils.d.ts +23 -23
  186. package/umd/material-ui.development.js +123 -33
  187. package/umd/material-ui.production.min.js +20 -20
  188. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  189. package/useTouchRipple/index.d.ts +1 -1
  190. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  191. package/utils/getScrollbarSize.d.ts +2 -2
  192. package/utils/ownerDocument.d.ts +2 -2
  193. package/utils/ownerWindow.d.ts +2 -2
  194. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.9.2
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;
@@ -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
  }
@@ -8817,7 +8822,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8817
8822
  }
8818
8823
 
8819
8824
  const _excluded$2e = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
8820
- _excluded2$b = ["type", "mode"];
8825
+ _excluded2$c = ["type", "mode"];
8821
8826
  function adaptV4Theme(inputTheme) {
8822
8827
  {
8823
8828
  console.warn(['MUI: adaptV4Theme() is deprecated.', 'Follow the upgrade guide on https://mui.com/r/migration-v4#theme.'].join('\n'));
@@ -8882,7 +8887,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8882
8887
  type: typeInput,
8883
8888
  mode: modeInput
8884
8889
  } = palette,
8885
- paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$b);
8890
+ paletteRest = _objectWithoutPropertiesLoose(palette, _excluded2$c);
8886
8891
 
8887
8892
  const finalMode = modeInput || typeInput || 'light';
8888
8893
  theme.palette = _extends({
@@ -12533,7 +12538,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12533
12538
  generateUtilityClasses('MuiPopperUnstyled', ['root']);
12534
12539
 
12535
12540
  const _excluded$2b = ["anchorEl", "children", "component", "components", "componentsProps", "direction", "disablePortal", "modifiers", "open", "ownerState", "placement", "popperOptions", "popperRef", "TransitionProps"],
12536
- _excluded2$a = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12541
+ _excluded2$b = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition"];
12537
12542
 
12538
12543
  function flipPlacement(placement, direction) {
12539
12544
  if (direction === 'ltr') {
@@ -12722,7 +12727,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
12722
12727
  style,
12723
12728
  transition = false
12724
12729
  } = props,
12725
- other = _objectWithoutPropertiesLoose(props, _excluded2$a);
12730
+ other = _objectWithoutPropertiesLoose(props, _excluded2$b);
12726
12731
 
12727
12732
  const [exited, setExited] = React__namespace.useState(true);
12728
12733
 
@@ -16052,6 +16057,11 @@ const theme2 = createTheme({ palette: {
16052
16057
  } = options,
16053
16058
  other = _objectWithoutPropertiesLoose(options, _excluded$24);
16054
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
+
16055
16065
  const palette = createPalette(paletteInput);
16056
16066
  const systemTheme = createTheme$1(options);
16057
16067
  let muiTheme = deepmerge(systemTheme, {
@@ -16546,7 +16556,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16546
16556
  var Paper$1 = Paper;
16547
16557
 
16548
16558
  const _excluded$22 = ["colorSchemes", "cssVarPrefix"],
16549
- _excluded2$9 = ["palette"];
16559
+ _excluded2$a = ["palette"];
16550
16560
  const defaultDarkOverlays = [...Array(25)].map((_, index) => {
16551
16561
  if (index === 0) {
16552
16562
  return undefined;
@@ -16586,7 +16596,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16586
16596
  {
16587
16597
  palette: lightPalette
16588
16598
  } = _createThemeWithoutVa,
16589
- muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$9);
16599
+ muiTheme = _objectWithoutPropertiesLoose(_createThemeWithoutVa, _excluded2$a);
16590
16600
 
16591
16601
  const {
16592
16602
  palette: darkPalette
@@ -17102,6 +17112,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17102
17112
 
17103
17113
  var TransitionGroupContext = React__default["default"].createContext(null);
17104
17114
 
17115
+ var forceReflow = function forceReflow(node) {
17116
+ return node.scrollTop;
17117
+ };
17118
+
17105
17119
  var UNMOUNTED = 'unmounted';
17106
17120
  var EXITED = 'exited';
17107
17121
  var ENTERING = 'entering';
@@ -17321,6 +17335,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17321
17335
  this.cancelNextCallback();
17322
17336
 
17323
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
+
17324
17346
  this.performEnter(mounting);
17325
17347
  } else {
17326
17348
  this.performExit();
@@ -19321,7 +19343,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19321
19343
  stop
19322
19344
  }), [pulsate, start, stop]);
19323
19345
  return /*#__PURE__*/jsxRuntime_1(TouchRippleRoot, _extends({
19324
- className: clsx(classes.root, touchRippleClasses$1.root, className),
19346
+ className: clsx(touchRippleClasses$1.root, classes.root, className),
19325
19347
  ref: container
19326
19348
  }, other, {
19327
19349
  children: /*#__PURE__*/jsxRuntime_1(TransitionGroup$1, {
@@ -21405,7 +21427,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21405
21427
  function getChipUtilityClass(slot) {
21406
21428
  return generateUtilityClass('MuiChip', slot);
21407
21429
  }
21408
- 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']);
21409
21431
  var chipClasses$1 = chipClasses;
21410
21432
 
21411
21433
  const _excluded$1P = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant"];
@@ -21425,7 +21447,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21425
21447
  label: ['label', `label${capitalize(size)}`],
21426
21448
  avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
21427
21449
  icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
21428
- 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)}`]
21429
21451
  };
21430
21452
  return composeClasses(slots, getChipUtilityClass, classes);
21431
21453
  };
@@ -21463,8 +21485,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21463
21485
  }, {
21464
21486
  [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
21465
21487
  }, {
21466
- [`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconOutlinedColor${capitalize(color)}`]
21467
- }, 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)}`]];
21468
21490
  }
21469
21491
  })(({
21470
21492
  theme,
@@ -21732,7 +21754,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21732
21754
  };
21733
21755
 
21734
21756
  const clickable = clickableProp !== false && onClick ? true : clickableProp;
21735
- const small = size === 'small';
21736
21757
  const component = clickable || onDelete ? ButtonBase$1 : ComponentProp || 'div';
21737
21758
 
21738
21759
  const ownerState = _extends({}, props, {
@@ -21755,12 +21776,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21755
21776
  let deleteIcon = null;
21756
21777
 
21757
21778
  if (onDelete) {
21758
- const customClasses = clsx(color !== 'default' && (variant === 'outlined' ? classes[`deleteIconOutlinedColor${capitalize(color)}`] : classes[`deleteIconColor${capitalize(color)}`]), small && classes.deleteIconSmall);
21759
21779
  deleteIcon = deleteIconProp && /*#__PURE__*/React__namespace.isValidElement(deleteIconProp) ? /*#__PURE__*/React__namespace.cloneElement(deleteIconProp, {
21760
- className: clsx(deleteIconProp.props.className, classes.deleteIcon, customClasses),
21780
+ className: clsx(deleteIconProp.props.className, classes.deleteIcon),
21761
21781
  onClick: handleDeleteIconClick
21762
21782
  }) : /*#__PURE__*/jsxRuntime_1(CancelIcon, {
21763
- className: clsx(classes.deleteIcon, customClasses),
21783
+ className: clsx(classes.deleteIcon),
21764
21784
  onClick: handleDeleteIconClick
21765
21785
  });
21766
21786
  }
@@ -22012,7 +22032,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22012
22032
  function getInputBaseUtilityClass(slot) {
22013
22033
  return generateUtilityClass('MuiInputBase', slot);
22014
22034
  }
22015
- 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']);
22016
22036
  var inputBaseClasses$1 = inputBaseClasses;
22017
22037
 
22018
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"];
@@ -22041,13 +22061,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22041
22061
  fullWidth,
22042
22062
  hiddenLabel,
22043
22063
  multiline,
22064
+ readOnly,
22044
22065
  size,
22045
22066
  startAdornment,
22046
22067
  type
22047
22068
  } = ownerState;
22048
22069
  const slots = {
22049
- 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'],
22050
- 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']
22051
22072
  };
22052
22073
  return composeClasses(slots, getInputBaseUtilityClass, classes);
22053
22074
  };
@@ -24911,7 +24932,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24911
24932
  Root: BadgeRoot,
24912
24933
  Badge: BadgeBadge
24913
24934
  }, components),
24914
- 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),
24915
24936
  componentsProps: {
24916
24937
  root: _extends({}, componentsProps.root, shouldSpreadAdditionalProps$1(components.Root) && {
24917
24938
  as: component,
@@ -25705,7 +25726,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25705
25726
 
25706
25727
  var ButtonGroupContext$1 = ButtonGroupContext;
25707
25728
 
25708
- 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"];
25709
25731
 
25710
25732
  const useUtilityClasses$1n = ownerState => {
25711
25733
  const {
@@ -25949,7 +25971,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25949
25971
  variant
25950
25972
  });
25951
25973
 
25952
- const classes = useUtilityClasses$1n(ownerState);
25974
+ const _useUtilityClasses = useUtilityClasses$1n(ownerState),
25975
+ {
25976
+ root: classesRoot
25977
+ } = _useUtilityClasses,
25978
+ classes = _objectWithoutPropertiesLoose(_useUtilityClasses, _excluded2$9);
25953
25979
 
25954
25980
  const startIcon = startIconProp && /*#__PURE__*/jsxRuntime_1(ButtonStartIcon, {
25955
25981
  className: classes.startIcon,
@@ -25965,7 +25991,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25965
25991
 
25966
25992
  return /*#__PURE__*/jsxRuntime_2(ButtonRoot, _extends({
25967
25993
  ownerState: ownerState,
25968
- className: clsx(className, contextProps.className),
25994
+ className: clsx(contextProps.className, classesRoot, className),
25969
25995
  component: component,
25970
25996
  disabled: disabled,
25971
25997
  focusRipple: !disableFocusRipple,
@@ -31982,6 +32008,32 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31982
32008
  return output;
31983
32009
  });
31984
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
+
31985
32037
  function generateRowGap({
31986
32038
  theme,
31987
32039
  ownerState
@@ -31997,9 +32049,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31997
32049
  values: rowSpacing,
31998
32050
  breakpoints: theme.breakpoints.values
31999
32051
  });
32052
+ let zeroValueBreakpointKeys;
32053
+
32054
+ if (typeof rowSpacingValues === 'object') {
32055
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32056
+ breakpoints: theme.breakpoints.values,
32057
+ values: rowSpacingValues
32058
+ });
32059
+ }
32060
+
32000
32061
  styles = handleBreakpoints({
32001
32062
  theme
32002
- }, rowSpacingValues, propValue => {
32063
+ }, rowSpacingValues, (propValue, breakpoint) => {
32003
32064
  const themeSpacing = theme.spacing(propValue);
32004
32065
 
32005
32066
  if (themeSpacing !== '0px') {
@@ -32011,7 +32072,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32011
32072
  };
32012
32073
  }
32013
32074
 
32014
- return {};
32075
+ if (zeroValueBreakpointKeys.includes(breakpoint)) {
32076
+ return {};
32077
+ }
32078
+
32079
+ return {
32080
+ marginTop: 0,
32081
+ [`& > .${gridClasses$1.item}`]: {
32082
+ paddingTop: 0
32083
+ }
32084
+ };
32015
32085
  });
32016
32086
  }
32017
32087
 
@@ -32032,9 +32102,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32032
32102
  values: columnSpacing,
32033
32103
  breakpoints: theme.breakpoints.values
32034
32104
  });
32105
+ let zeroValueBreakpointKeys;
32106
+
32107
+ if (typeof columnSpacingValues === 'object') {
32108
+ zeroValueBreakpointKeys = extractZeroValueBreakpointKeys({
32109
+ breakpoints: theme.breakpoints.values,
32110
+ values: columnSpacingValues
32111
+ });
32112
+ }
32113
+
32035
32114
  styles = handleBreakpoints({
32036
32115
  theme
32037
- }, columnSpacingValues, propValue => {
32116
+ }, columnSpacingValues, (propValue, breakpoint) => {
32038
32117
  const themeSpacing = theme.spacing(propValue);
32039
32118
 
32040
32119
  if (themeSpacing !== '0px') {
@@ -32047,7 +32126,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
32047
32126
  };
32048
32127
  }
32049
32128
 
32050
- 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
+ };
32051
32140
  });
32052
32141
  }
32053
32142
 
@@ -41767,7 +41856,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41767
41856
  onFocus: onFocus
41768
41857
  }, SelectDisplayProps, {
41769
41858
  ownerState: ownerState,
41770
- 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
41771
41860
  ,
41772
41861
  id: buttonId,
41773
41862
  children: isEmpty(display) ? // notranslate needed while Google Translate will not fix zero-width space issue
@@ -45918,6 +46007,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45918
46007
  }, spacingValues, styleFromPropValue));
45919
46008
  }
45920
46009
 
46010
+ styles = mergeBreakpointsInOrder(theme.breakpoints, styles);
45921
46011
  return styles;
45922
46012
  };
45923
46013
  const StackRoot = styled$1('div', {