@mui/material 5.11.7 → 5.11.8

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 (170) 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/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +55 -1
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/chipClasses.d.ts +96 -96
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +6 -6
  35. package/Dialog/DialogContext.d.ts +6 -6
  36. package/Dialog/dialogClasses.d.ts +36 -36
  37. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  38. package/DialogContent/dialogContentClasses.d.ts +10 -10
  39. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  40. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  41. package/Divider/dividerClasses.d.ts +34 -34
  42. package/Drawer/drawerClasses.d.ts +30 -30
  43. package/Fab/fabClasses.d.ts +26 -26
  44. package/FilledInput/filledInputClasses.d.ts +40 -40
  45. package/FormControl/FormControlContext.d.ts +17 -17
  46. package/FormControl/formControlClasses.d.ts +14 -14
  47. package/FormControl/useFormControl.d.ts +2 -2
  48. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  49. package/FormGroup/formGroupClasses.d.ts +12 -12
  50. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  51. package/FormLabel/FormLabel.d.ts +1 -1
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +34 -34
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/inputClasses.d.ts +34 -34
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +46 -46
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MenuList/MenuList.d.ts +1 -1
  77. package/MenuList/MenuList.js +1 -1
  78. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  79. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  80. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  81. package/Pagination/paginationClasses.d.ts +14 -14
  82. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  83. package/Paper/paperClasses.d.ts +39 -39
  84. package/Popover/popoverClasses.d.ts +10 -10
  85. package/Popper/Popper.d.ts +55 -37
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/SelectInput.js +1 -1
  92. package/Select/selectClasses.d.ts +30 -30
  93. package/Skeleton/skeletonClasses.d.ts +26 -26
  94. package/Slider/SliderValueLabel.d.ts +15 -15
  95. package/Slider/SliderValueLabel.types.d.ts +24 -24
  96. package/Slider/sliderClasses.d.ts +58 -58
  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/Step/StepContext.d.ts +20 -20
  103. package/Step/stepClasses.d.ts +16 -16
  104. package/StepButton/stepButtonClasses.d.ts +14 -14
  105. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  106. package/StepContent/stepContentClasses.d.ts +12 -12
  107. package/StepIcon/stepIconClasses.d.ts +16 -16
  108. package/StepLabel/stepLabelClasses.d.ts +28 -28
  109. package/Stepper/StepperContext.d.ts +18 -18
  110. package/Stepper/stepperClasses.d.ts +14 -14
  111. package/SvgIcon/svgIconClasses.d.ts +26 -26
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/textFieldClasses.d.ts +8 -8
  126. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  127. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  128. package/Toolbar/toolbarClasses.d.ts +14 -14
  129. package/Tooltip/tooltipClasses.d.ts +30 -30
  130. package/Typography/typographyClasses.d.ts +50 -50
  131. package/Unstable_Grid2/Grid2.d.ts +4 -4
  132. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  133. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  134. package/Unstable_Grid2/index.d.ts +4 -4
  135. package/className/index.d.ts +1 -1
  136. package/darkScrollbar/index.d.ts +28 -28
  137. package/generateUtilityClass/index.d.ts +2 -2
  138. package/generateUtilityClasses/index.d.ts +1 -1
  139. package/index.js +1 -1
  140. package/internal/switchBaseClasses.d.ts +12 -12
  141. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  142. package/legacy/MenuList/MenuList.js +1 -1
  143. package/legacy/Select/SelectInput.js +1 -1
  144. package/legacy/index.js +1 -1
  145. package/locale/index.d.ts +75 -75
  146. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  147. package/modern/MenuList/MenuList.js +1 -1
  148. package/modern/Select/SelectInput.js +1 -1
  149. package/modern/index.js +1 -1
  150. package/node/BottomNavigation/BottomNavigation.js +0 -0
  151. package/node/MenuList/MenuList.js +1 -1
  152. package/node/Select/SelectInput.js +1 -1
  153. package/node/index.js +1 -1
  154. package/package.json +4 -4
  155. package/styles/CssVarsProvider.d.ts +16 -16
  156. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  157. package/styles/getOverlayAlpha.d.ts +2 -2
  158. package/transitions/index.d.ts +1 -1
  159. package/transitions/transition.d.ts +13 -13
  160. package/transitions/utils.d.ts +23 -23
  161. package/types/OverridableComponentAugmentation.d.ts +31 -31
  162. package/umd/material-ui.development.js +91 -47
  163. package/umd/material-ui.production.min.js +20 -20
  164. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  165. package/useTouchRipple/index.d.ts +1 -1
  166. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  167. package/utils/getScrollbarSize.d.ts +2 -2
  168. package/utils/ownerDocument.d.ts +2 -2
  169. package/utils/ownerWindow.d.ts +2 -2
  170. package/utils/setRef.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.11.7
2
+ * @mui/material v5.11.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -3217,8 +3217,6 @@
3217
3217
  return cache;
3218
3218
  };
3219
3219
 
3220
- var createCache$1 = createCache;
3221
-
3222
3220
  var FORWARD_REF_STATICS = {
3223
3221
  '$$typeof': true,
3224
3222
  render: true,
@@ -3717,7 +3715,7 @@
3717
3715
  // and we could have a special build just for that
3718
3716
  // but this is much easier and the native packages
3719
3717
  // might use a different theme context in the future anyway
3720
- typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache$1({
3718
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
3721
3719
  key: 'css'
3722
3720
  }) : null);
3723
3721
 
@@ -3747,7 +3745,7 @@
3747
3745
  // so there will only every be a single render
3748
3746
  // that could change in the future because of suspense and etc. but for now,
3749
3747
  // this works and i don't want to optimise for a future thing that we aren't sure about
3750
- cache = createCache$1({
3748
+ cache = createCache({
3751
3749
  key: 'css'
3752
3750
  });
3753
3751
  return /*#__PURE__*/React.createElement(EmotionCacheContext.Provider, {
@@ -5781,10 +5779,13 @@
5781
5779
  var jsxRuntime_1 = jsxRuntime.jsx;
5782
5780
  var jsxRuntime_2 = jsxRuntime.jsxs;
5783
5781
 
5784
- const cache = createCache$1({
5785
- key: 'css',
5786
- prepend: true
5787
- });
5782
+ let cache;
5783
+ if (typeof document === 'object') {
5784
+ cache = createCache({
5785
+ key: 'css',
5786
+ prepend: true
5787
+ });
5788
+ }
5788
5789
  function StyledEngineProvider(props) {
5789
5790
  const {
5790
5791
  injectFirst,
@@ -8247,14 +8248,14 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8247
8248
  colorScheme = ctx.colorScheme;
8248
8249
  }
8249
8250
  const calculatedMode = (() => {
8250
- if (!mode) {
8251
- // This scope occurs on the server
8252
- if (defaultMode === 'system') {
8253
- return designSystemMode;
8254
- }
8255
- return defaultMode;
8251
+ if (mode) {
8252
+ return mode;
8253
+ }
8254
+ // This scope occurs on the server
8255
+ if (defaultMode === 'system') {
8256
+ return designSystemMode;
8256
8257
  }
8257
- return mode;
8258
+ return defaultMode;
8258
8259
  })();
8259
8260
  const calculatedColorScheme = (() => {
8260
8261
  if (!colorScheme) {
@@ -8647,6 +8648,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8647
8648
  return Container;
8648
8649
  }
8649
8650
 
8651
+ function isNestedContainer(ownerState) {
8652
+ return ownerState.level > 0 && ownerState.container;
8653
+ }
8654
+ function createGetSelfSpacing(ownerState) {
8655
+ return function getSelfSpacing(axis) {
8656
+ return `var(--Grid-${axis}Spacing${ownerState.level || ''})`;
8657
+ };
8658
+ }
8659
+ function createGetParentSpacing(ownerState) {
8660
+ return function getParentSpacing(axis) {
8661
+ if (ownerState.level === 0) {
8662
+ return `var(--Grid-${axis}Spacing)`;
8663
+ }
8664
+ return `var(--Grid-${axis}Spacing${ownerState.level - 1 || ''})`;
8665
+ };
8666
+ }
8650
8667
  const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
8651
8668
  const traverseBreakpoints = (breakpoints, responsive, iterator) => {
8652
8669
  const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
@@ -8693,6 +8710,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8693
8710
  theme,
8694
8711
  ownerState
8695
8712
  }) => {
8713
+ const getSelfSpacing = createGetSelfSpacing(ownerState);
8696
8714
  const styles = {};
8697
8715
  traverseBreakpoints(theme.breakpoints, ownerState.gridSize, (appendStyle, value) => {
8698
8716
  let style = {};
@@ -8716,7 +8734,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8716
8734
  style = {
8717
8735
  flexGrow: 0,
8718
8736
  flexBasis: 'auto',
8719
- width: `calc(100% * ${value} / var(--Grid-columns)${ownerState.nested && ownerState.container ? ` + var(--Grid-columnSpacing)` : ''})`
8737
+ width: `calc(100% * ${value} / var(--Grid-columns)${isNestedContainer(ownerState) ? ` + ${getSelfSpacing('column')}` : ''})`
8720
8738
  };
8721
8739
  }
8722
8740
  appendStyle(styles, style);
@@ -8768,11 +8786,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8768
8786
  if (!ownerState.container) {
8769
8787
  return {};
8770
8788
  }
8771
- const styles = {};
8789
+ const getParentSpacing = createGetParentSpacing(ownerState);
8790
+ const styles = isNestedContainer(ownerState) ? {
8791
+ // Set the default spacing as its parent spacing.
8792
+ // It will be overridden if spacing props are provided
8793
+ [`--Grid-rowSpacing${ownerState.level || ''}`]: getParentSpacing('row')
8794
+ } : {};
8772
8795
  traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {
8773
8796
  var _theme$spacing;
8774
8797
  appendStyle(styles, {
8775
- '--Grid-rowSpacing': typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
8798
+ [`--Grid-rowSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing = theme.spacing) == null ? void 0 : _theme$spacing.call(theme, value)
8776
8799
  });
8777
8800
  });
8778
8801
  return styles;
@@ -8784,11 +8807,16 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8784
8807
  if (!ownerState.container) {
8785
8808
  return {};
8786
8809
  }
8787
- const styles = {};
8810
+ const getParentSpacing = createGetParentSpacing(ownerState);
8811
+ const styles = isNestedContainer(ownerState) ? {
8812
+ // Set the default spacing as its parent spacing.
8813
+ // It will be overridden if spacing props are provided
8814
+ [`--Grid-columnSpacing${ownerState.level || ''}`]: getParentSpacing('column')
8815
+ } : {};
8788
8816
  traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {
8789
8817
  var _theme$spacing2;
8790
8818
  appendStyle(styles, {
8791
- '--Grid-columnSpacing': typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
8819
+ [`--Grid-columnSpacing${ownerState.level || ''}`]: typeof value === 'string' ? value : (_theme$spacing2 = theme.spacing) == null ? void 0 : _theme$spacing2.call(theme, value)
8792
8820
  });
8793
8821
  });
8794
8822
  return styles;
@@ -8811,29 +8839,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8811
8839
  const generateGridStyles = ({
8812
8840
  ownerState
8813
8841
  }) => {
8842
+ const getSelfSpacing = createGetSelfSpacing(ownerState);
8843
+ const getParentSpacing = createGetParentSpacing(ownerState);
8814
8844
  return _extends({
8815
8845
  minWidth: 0,
8816
8846
  boxSizing: 'border-box'
8817
- }, ownerState.container ? _extends({
8847
+ }, ownerState.container && _extends({
8818
8848
  display: 'flex',
8819
8849
  flexWrap: 'wrap'
8820
8850
  }, ownerState.wrap && ownerState.wrap !== 'wrap' && {
8821
8851
  flexWrap: ownerState.wrap
8822
8852
  }, {
8823
- margin: `calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)`
8853
+ margin: `calc(${getSelfSpacing('row')} / -2) calc(${getSelfSpacing('column')} / -2)`
8824
8854
  }, ownerState.disableEqualOverflow && {
8825
- margin: `calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)`
8826
- }, ownerState.nested ? _extends({
8827
- padding: `calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)`
8855
+ margin: `calc(${getSelfSpacing('row')} * -1) 0px 0px calc(${getSelfSpacing('column')} * -1)`
8856
+ }), (!ownerState.container || isNestedContainer(ownerState)) && _extends({
8857
+ padding: `calc(${getParentSpacing('row')} / 2) calc(${getParentSpacing('column')} / 2)`
8828
8858
  }, (ownerState.disableEqualOverflow || ownerState.parentDisableEqualOverflow) && {
8829
- padding: `calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))`
8830
- }) : {
8831
- '--Grid-nested-rowSpacing': 'var(--Grid-rowSpacing)',
8832
- '--Grid-nested-columnSpacing': 'var(--Grid-columnSpacing)'
8833
- }) : _extends({
8834
- padding: `calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)`
8835
- }, ownerState.disableEqualOverflow && {
8836
- padding: `calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))`
8859
+ padding: `${getParentSpacing('row')} 0px 0px ${getParentSpacing('column')}`
8837
8860
  }));
8838
8861
  };
8839
8862
  const generateSizeClassNames = gridSize => {
@@ -8899,7 +8922,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8899
8922
  useThemeProps = useThemePropsDefault,
8900
8923
  componentName = 'MuiGrid'
8901
8924
  } = options;
8902
- const NestedContext = /*#__PURE__*/React__namespace.createContext(false);
8925
+ const NestedContext = /*#__PURE__*/React__namespace.createContext(0);
8903
8926
  const OverflowContext = /*#__PURE__*/React__namespace.createContext(undefined);
8904
8927
  const useUtilityClasses = (ownerState, theme) => {
8905
8928
  const {
@@ -8920,7 +8943,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8920
8943
  const theme = useTheme$1();
8921
8944
  const themeProps = useThemeProps(inProps);
8922
8945
  const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.
8923
- const nested = React__namespace.useContext(NestedContext);
8946
+ const level = React__namespace.useContext(NestedContext);
8924
8947
  const overflow = React__namespace.useContext(OverflowContext);
8925
8948
  const {
8926
8949
  className,
@@ -8937,7 +8960,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8937
8960
  rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
8938
8961
  // Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
8939
8962
  let disableEqualOverflow = themeDisableEqualOverflow;
8940
- if (nested && themeDisableEqualOverflow !== undefined) {
8963
+ if (level && themeDisableEqualOverflow !== undefined) {
8941
8964
  disableEqualOverflow = inProps.disableEqualOverflow;
8942
8965
  }
8943
8966
  // collect breakpoints related props because they can be customized from the theme.
@@ -8953,12 +8976,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8953
8976
  other[key] = val;
8954
8977
  }
8955
8978
  });
8956
- const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : nested ? undefined : columnsProp;
8957
- const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : nested ? undefined : spacingProp;
8958
- const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : nested ? undefined : rowSpacingProp;
8959
- const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : nested ? undefined : columnSpacingProp;
8979
+ const columns = (_inProps$columns = inProps.columns) != null ? _inProps$columns : level ? undefined : columnsProp;
8980
+ const spacing = (_inProps$spacing = inProps.spacing) != null ? _inProps$spacing : level ? undefined : spacingProp;
8981
+ const rowSpacing = (_ref = (_inProps$rowSpacing = inProps.rowSpacing) != null ? _inProps$rowSpacing : inProps.spacing) != null ? _ref : level ? undefined : rowSpacingProp;
8982
+ const columnSpacing = (_ref2 = (_inProps$columnSpacin = inProps.columnSpacing) != null ? _inProps$columnSpacin : inProps.spacing) != null ? _ref2 : level ? undefined : columnSpacingProp;
8960
8983
  const ownerState = _extends({}, props, {
8961
- nested,
8984
+ level,
8962
8985
  columns,
8963
8986
  container,
8964
8987
  direction,
@@ -8980,9 +9003,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8980
9003
  ownerState: ownerState,
8981
9004
  className: clsx(classes.root, className)
8982
9005
  }, other));
8983
- if (!nested) {
9006
+ if (container) {
8984
9007
  result = /*#__PURE__*/jsxRuntime_1(NestedContext.Provider, {
8985
- value: true,
9008
+ value: level + 1,
8986
9009
  children: result
8987
9010
  });
8988
9011
  }
@@ -10400,6 +10423,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10400
10423
 
10401
10424
  const _excluded$28 = ["elementType", "externalSlotProps", "ownerState"];
10402
10425
  /**
10426
+ * @ignore - do not document.
10403
10427
  * Builds the props to be passed into the slot of an unstyled component.
10404
10428
  * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
10405
10429
  * If the slot component is not a host component, it also merges in the `ownerState`.
@@ -10714,7 +10738,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
10714
10738
  }
10715
10739
 
10716
10740
  // Scroll active descendant into view.
10717
- // Logic copied from https://www.w3.org/WAI/ARIA/apg/example-index/combobox/js/select-only.js
10741
+ // Logic copied from https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/select-only.js
10718
10742
  //
10719
10743
  // Consider this API instead once it has a better browser support:
10720
10744
  // .scrollIntoView({ scrollMode: 'if-needed', block: 'nearest' });
@@ -11377,6 +11401,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11377
11401
  };
11378
11402
  }
11379
11403
 
11404
+ /**
11405
+ *
11406
+ * Demos:
11407
+ *
11408
+ * - [Unstyled badge](https://mui.com/base/react-badge/#hook)
11409
+ *
11410
+ * API:
11411
+ *
11412
+ * - [useBadge API](https://mui.com/base/api/use-badge/)
11413
+ */
11380
11414
  function useBadge(parameters) {
11381
11415
  const {
11382
11416
  badgeContent: badgeContentProp,
@@ -15253,6 +15287,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15253
15287
  }
15254
15288
  return cachedSupportsTouchActionNone;
15255
15289
  }
15290
+ /**
15291
+ *
15292
+ * Demos:
15293
+ *
15294
+ * - [Unstyled Slider](https://mui.com/base/react-slider/#hook)
15295
+ *
15296
+ * API:
15297
+ *
15298
+ * - [useSlider API](https://mui.com/base/api/use-slider/)
15299
+ */
15256
15300
  function useSlider(parameters) {
15257
15301
  const {
15258
15302
  'aria-labelledby': ariaLabelledby,
@@ -34680,7 +34724,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34680
34724
  }
34681
34725
 
34682
34726
  /**
34683
- * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
34727
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/.
34684
34728
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
34685
34729
  * use it separately you need to move focus into the component manually. Once
34686
34730
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -38912,7 +38956,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38912
38956
  if (!readOnly) {
38913
38957
  const validKeys = [' ', 'ArrowUp', 'ArrowDown',
38914
38958
  // The native select doesn't respond to enter on macOS, but it's recommended by
38915
- // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
38959
+ // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
38916
38960
  'Enter'];
38917
38961
  if (validKeys.indexOf(event.key) !== -1) {
38918
38962
  event.preventDefault();