@mui/material 5.10.11 → 5.10.12

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 (193) 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/TouchRipple.js +1 -1
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +76 -0
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/Chip.js +8 -4
  32. package/Chip/chipClasses.d.ts +96 -96
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +6 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/FormControl.js +29 -29
  48. package/FormControl/formControlClasses.d.ts +14 -14
  49. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  50. package/FormGroup/formGroupClasses.d.ts +12 -12
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  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 +26 -26
  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/ListItem.js +2 -2
  68. package/ListItem/listItemClasses.d.ts +30 -30
  69. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  70. package/ListItemButton/ListItemButton.js +2 -2
  71. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  72. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  73. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  74. package/ListItemText/listItemTextClasses.d.ts +18 -18
  75. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  76. package/Menu/menuClasses.d.ts +12 -12
  77. package/MenuItem/MenuItem.js +2 -2
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  81. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  82. package/OverridableComponentAugmentation.d.ts +31 -31
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +37 -37
  88. package/Radio/Radio.js +2 -1
  89. package/Radio/radioClasses.d.ts +16 -16
  90. package/RadioGroup/RadioGroup.js +12 -12
  91. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  92. package/RadioGroup/useRadioGroup.d.ts +4 -4
  93. package/Rating/ratingClasses.d.ts +40 -40
  94. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  95. package/Select/selectClasses.d.ts +30 -30
  96. package/Skeleton/skeletonClasses.d.ts +26 -26
  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/SwipeableDrawer/SwipeableDrawer.js +10 -2
  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/Tooltip.js +1 -1
  131. package/Tooltip/tooltipClasses.d.ts +30 -30
  132. package/Typography/typographyClasses.d.ts +50 -50
  133. package/Unstable_Grid2/Grid2.d.ts +4 -4
  134. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  135. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  136. package/Unstable_Grid2/index.d.ts +4 -4
  137. package/className/index.d.ts +1 -1
  138. package/darkScrollbar/index.d.ts +28 -28
  139. package/esm/BottomNavigation/BottomNavigation.js +0 -0
  140. package/esm/ButtonBase/TouchRipple.js +1 -1
  141. package/esm/Chip/Chip.js +8 -4
  142. package/esm/FormControl/FormControl.js +29 -29
  143. package/esm/ListItem/ListItem.js +2 -2
  144. package/esm/ListItemButton/ListItemButton.js +2 -2
  145. package/esm/MenuItem/MenuItem.js +2 -2
  146. package/esm/Radio/Radio.js +2 -1
  147. package/esm/RadioGroup/RadioGroup.js +12 -12
  148. package/esm/SwipeableDrawer/SwipeableDrawer.js +9 -2
  149. package/esm/Tooltip/Tooltip.js +1 -1
  150. package/generateUtilityClass/index.d.ts +2 -2
  151. package/generateUtilityClasses/index.d.ts +1 -1
  152. package/index.js +1 -1
  153. package/internal/switchBaseClasses.d.ts +12 -12
  154. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  155. package/legacy/ButtonBase/TouchRipple.js +1 -1
  156. package/legacy/Chip/Chip.js +8 -4
  157. package/legacy/FormControl/FormControl.js +29 -29
  158. package/legacy/ListItem/ListItem.js +7 -5
  159. package/legacy/ListItemButton/ListItemButton.js +7 -5
  160. package/legacy/MenuItem/MenuItem.js +6 -4
  161. package/legacy/Radio/Radio.js +2 -1
  162. package/legacy/RadioGroup/RadioGroup.js +14 -14
  163. package/legacy/SwipeableDrawer/SwipeableDrawer.js +9 -2
  164. package/legacy/Tooltip/Tooltip.js +1 -1
  165. package/legacy/index.js +1 -1
  166. package/locale/index.d.ts +72 -72
  167. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  168. package/modern/ButtonBase/TouchRipple.js +1 -1
  169. package/modern/Chip/Chip.js +8 -4
  170. package/modern/FormControl/FormControl.js +29 -29
  171. package/modern/ListItem/ListItem.js +2 -2
  172. package/modern/ListItemButton/ListItemButton.js +2 -2
  173. package/modern/MenuItem/MenuItem.js +2 -2
  174. package/modern/Radio/Radio.js +2 -1
  175. package/modern/RadioGroup/RadioGroup.js +12 -12
  176. package/modern/SwipeableDrawer/SwipeableDrawer.js +9 -2
  177. package/modern/Tooltip/Tooltip.js +1 -1
  178. package/modern/index.js +1 -1
  179. package/package.json +4 -4
  180. package/styles/CssVarsProvider.d.ts +14 -14
  181. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  182. package/transitions/index.d.ts +1 -1
  183. package/transitions/transition.d.ts +13 -13
  184. package/transitions/utils.d.ts +23 -23
  185. package/umd/material-ui.development.js +84 -70
  186. package/umd/material-ui.production.min.js +20 -20
  187. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  188. package/useTouchRipple/index.d.ts +1 -1
  189. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  190. package/utils/getScrollbarSize.d.ts +2 -2
  191. package/utils/ownerDocument.d.ts +2 -2
  192. package/utils/ownerWindow.d.ts +2 -2
  193. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.11
1
+ /** @license MUI v5.10.12
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.
@@ -7582,10 +7582,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7582
7582
  return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
7583
7583
  }
7584
7584
 
7585
+ const EMPTY_THEME = {};
7586
+
7585
7587
  function InnerThemeProvider(props) {
7586
7588
  const theme = useTheme$1();
7587
7589
  return /*#__PURE__*/jsxRuntime_1(ThemeContext$2.Provider, {
7588
- value: typeof theme === 'object' ? theme : {},
7590
+ value: typeof theme === 'object' ? theme : EMPTY_THEME,
7589
7591
  children: props.children
7590
7592
  });
7591
7593
  }
@@ -8269,17 +8271,18 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8269
8271
  hasMounted.current = false;
8270
8272
  };
8271
8273
  }, []);
8274
+ const contextValue = React__namespace.useMemo(() => ({
8275
+ mode,
8276
+ systemMode,
8277
+ setMode,
8278
+ lightColorScheme,
8279
+ darkColorScheme,
8280
+ colorScheme,
8281
+ setColorScheme,
8282
+ allColorSchemes
8283
+ }), [allColorSchemes, colorScheme, darkColorScheme, lightColorScheme, mode, setColorScheme, setMode, systemMode]);
8272
8284
  return /*#__PURE__*/jsxRuntime_2(ColorSchemeContext.Provider, {
8273
- value: {
8274
- mode,
8275
- systemMode,
8276
- setMode,
8277
- lightColorScheme,
8278
- darkColorScheme,
8279
- colorScheme,
8280
- setColorScheme,
8281
- allColorSchemes
8282
- },
8285
+ value: contextValue,
8283
8286
  children: [/*#__PURE__*/jsxRuntime_1(GlobalStyles$1, {
8284
8287
  styles: {
8285
8288
  [colorSchemeSelector]: rootCss
@@ -9949,7 +9952,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
9949
9952
  * @param otherProps Props of the element.
9950
9953
  * @param ownerState
9951
9954
  */
9952
- function appendOwnerState(elementType, otherProps = {}, ownerState) {
9955
+ function appendOwnerState(elementType, otherProps, ownerState) {
9953
9956
  if (isHostComponent(elementType)) {
9954
9957
  return otherProps;
9955
9958
  }
@@ -14357,7 +14360,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14357
14360
  return isForbiddenTagName || isInputHidden;
14358
14361
  }
14359
14362
 
14360
- function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude = [], show) {
14363
+ function ariaHiddenSiblings(container, mountElement, currentElement, elementsToExclude, show) {
14361
14364
  const blacklist = [mountElement, currentElement, ...elementsToExclude];
14362
14365
  [].forEach.call(container.children, element => {
14363
14366
  const isNotExcludedElement = blacklist.indexOf(element) === -1;
@@ -19393,7 +19396,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19393
19396
  nextKey.current += 1;
19394
19397
  rippleCallback.current = cb;
19395
19398
  }, [classes]);
19396
- const start = React__namespace.useCallback((event = {}, options = {}, cb) => {
19399
+ const start = React__namespace.useCallback((event = {}, options = {}, cb = () => {}) => {
19397
19400
  const {
19398
19401
  pulsate = false,
19399
19402
  center = centerProp || options.pulsate,
@@ -21667,6 +21670,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21667
21670
  disabled,
21668
21671
  size,
21669
21672
  color,
21673
+ iconColor,
21670
21674
  onDelete,
21671
21675
  clickable,
21672
21676
  variant
@@ -21675,7 +21679,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21675
21679
  root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],
21676
21680
  label: ['label', `label${capitalize(size)}`],
21677
21681
  avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
21678
- icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
21682
+ icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
21679
21683
  deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21680
21684
  };
21681
21685
  return composeClasses(slots, getChipUtilityClass, classes);
@@ -21690,6 +21694,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21690
21694
  } = props;
21691
21695
  const {
21692
21696
  color,
21697
+ iconColor,
21693
21698
  clickable,
21694
21699
  onDelete,
21695
21700
  size,
@@ -21706,7 +21711,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21706
21711
  }, {
21707
21712
  [`& .${chipClasses$1.icon}`]: styles[`icon${capitalize(size)}`]
21708
21713
  }, {
21709
- [`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(color)}`]
21714
+ [`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
21710
21715
  }, {
21711
21716
  [`& .${chipClasses$1.deleteIcon}`]: styles.deleteIcon
21712
21717
  }, {
@@ -21775,16 +21780,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21775
21780
  fontSize: theme.typography.pxToRem(10)
21776
21781
  },
21777
21782
  [`& .${chipClasses$1.icon}`]: _extends({
21778
- color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
21779
21783
  marginLeft: 5,
21780
21784
  marginRight: -6
21781
21785
  }, ownerState.size === 'small' && {
21782
21786
  fontSize: 18,
21783
21787
  marginLeft: 4,
21784
21788
  marginRight: -4
21789
+ }, ownerState.iconColor === ownerState.color && _extends({
21790
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
21785
21791
  }, ownerState.color !== 'default' && {
21786
21792
  color: 'inherit'
21787
- }),
21793
+ })),
21788
21794
  [`& .${chipClasses$1.deleteIcon}`]: _extends({
21789
21795
  WebkitTapHighlightColor: 'transparent',
21790
21796
  color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
@@ -21990,6 +21996,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21990
21996
  disabled,
21991
21997
  size,
21992
21998
  color,
21999
+ iconColor: /*#__PURE__*/React__namespace.isValidElement(iconProp) ? iconProp.props.color || color : color,
21993
22000
  onDelete: !!onDelete,
21994
22001
  clickable,
21995
22002
  variant
@@ -31350,35 +31357,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31350
31357
  };
31351
31358
  }
31352
31359
 
31353
- const onFilled = React__namespace.useCallback(() => {
31354
- setFilled(true);
31355
- }, []);
31356
- const onEmpty = React__namespace.useCallback(() => {
31357
- setFilled(false);
31358
- }, []);
31359
- const childContext = {
31360
- adornedStart,
31361
- setAdornedStart,
31362
- color,
31363
- disabled,
31364
- error,
31365
- filled,
31366
- focused,
31367
- fullWidth,
31368
- hiddenLabel,
31369
- size,
31370
- onBlur: () => {
31371
- setFocused(false);
31372
- },
31373
- onEmpty,
31374
- onFilled,
31375
- onFocus: () => {
31376
- setFocused(true);
31377
- },
31378
- registerEffect,
31379
- required,
31380
- variant
31381
- };
31360
+ const childContext = React__namespace.useMemo(() => {
31361
+ return {
31362
+ adornedStart,
31363
+ setAdornedStart,
31364
+ color,
31365
+ disabled,
31366
+ error,
31367
+ filled,
31368
+ focused,
31369
+ fullWidth,
31370
+ hiddenLabel,
31371
+ size,
31372
+ onBlur: () => {
31373
+ setFocused(false);
31374
+ },
31375
+ onEmpty: () => {
31376
+ setFilled(false);
31377
+ },
31378
+ onFilled: () => {
31379
+ setFilled(true);
31380
+ },
31381
+ onFocus: () => {
31382
+ setFocused(true);
31383
+ },
31384
+ registerEffect,
31385
+ required,
31386
+ variant
31387
+ };
31388
+ }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
31382
31389
  return /*#__PURE__*/jsxRuntime_1(FormControlContext$1.Provider, {
31383
31390
  value: childContext,
31384
31391
  children: /*#__PURE__*/jsxRuntime_1(FormControlRoot, _extends({
@@ -36260,11 +36267,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36260
36267
  other = _objectWithoutPropertiesLoose(props, _excluded$_);
36261
36268
 
36262
36269
  const context = React__namespace.useContext(ListContext$1);
36263
- const childContext = {
36270
+ const childContext = React__namespace.useMemo(() => ({
36264
36271
  dense: dense || context.dense || false,
36265
36272
  alignItems,
36266
36273
  disableGutters
36267
- };
36274
+ }), [alignItems, context.dense, dense, disableGutters]);
36268
36275
  const listItemRef = React__namespace.useRef(null);
36269
36276
  useEnhancedEffect$1(() => {
36270
36277
  if (autoFocus) {
@@ -36641,11 +36648,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36641
36648
  other = _objectWithoutPropertiesLoose(props, _excluded2$7);
36642
36649
 
36643
36650
  const context = React__namespace.useContext(ListContext$1);
36644
- const childContext = {
36651
+ const childContext = React__namespace.useMemo(() => ({
36645
36652
  dense: dense || context.dense || false,
36646
36653
  alignItems,
36647
36654
  disableGutters
36648
- };
36655
+ }), [alignItems, context.dense, dense, disableGutters]);
36649
36656
  const listItemRef = React__namespace.useRef(null);
36650
36657
  useEnhancedEffect$1(() => {
36651
36658
  if (autoFocus) {
@@ -38497,10 +38504,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38497
38504
  other = _objectWithoutPropertiesLoose(props, _excluded$R);
38498
38505
 
38499
38506
  const context = React__namespace.useContext(ListContext$1);
38500
- const childContext = {
38507
+ const childContext = React__namespace.useMemo(() => ({
38501
38508
  dense: dense || context.dense || false,
38502
38509
  disableGutters
38503
- };
38510
+ }), [context.dense, dense, disableGutters]);
38504
38511
  const menuItemRef = React__namespace.useRef(null);
38505
38512
  useEnhancedEffect$1(() => {
38506
38513
  if (autoFocus) {
@@ -40590,7 +40597,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40590
40597
  theme,
40591
40598
  ownerState
40592
40599
  }) => _extends({
40593
- color: (theme.vars || theme).palette.text.secondary,
40600
+ color: (theme.vars || theme).palette.text.secondary
40601
+ }, !ownerState.disableRipple && {
40594
40602
  '&:hover': {
40595
40603
  backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
40596
40604
  // Reset on touch devices, it doesn't add specificity
@@ -40825,22 +40833,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40825
40833
  }
40826
40834
  }), []);
40827
40835
  const handleRef = useForkRef(ref, rootRef);
40836
+ const name = useId(nameProp);
40837
+ const contextValue = React__namespace.useMemo(() => ({
40838
+ name,
40828
40839
 
40829
- const handleChange = event => {
40830
- setValueState(event.target.value);
40840
+ onChange(event) {
40841
+ setValueState(event.target.value);
40831
40842
 
40832
- if (onChange) {
40833
- onChange(event, event.target.value);
40834
- }
40835
- };
40843
+ if (onChange) {
40844
+ onChange(event, event.target.value);
40845
+ }
40846
+ },
40836
40847
 
40837
- const name = useId(nameProp);
40848
+ value
40849
+ }), [name, onChange, setValueState, value]);
40838
40850
  return /*#__PURE__*/jsxRuntime_1(RadioGroupContext$1.Provider, {
40839
- value: {
40840
- name,
40841
- onChange: handleChange,
40842
- value
40843
- },
40851
+ value: contextValue,
40844
40852
  children: /*#__PURE__*/jsxRuntime_1(FormGroup$1, _extends({
40845
40853
  role: "radiogroup",
40846
40854
  ref: handleRef
@@ -45568,7 +45576,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45568
45576
  }, [handleClose, open]);
45569
45577
  const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref); // There is no point in displaying an empty tooltip.
45570
45578
 
45571
- if (typeof title !== 'number' && !title) {
45579
+ if (!title && title !== 0) {
45572
45580
  open = false;
45573
45581
  }
45574
45582
 
@@ -48014,7 +48022,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48014
48022
 
48015
48023
  claimedSwipeInstance = null;
48016
48024
  touchDetected.current = false;
48017
- setMaybeSwiping(false); // The swipe wasn't started.
48025
+ ReactDOM.flushSync(() => {
48026
+ setMaybeSwiping(false);
48027
+ }); // The swipe wasn't started.
48018
48028
 
48019
48029
  if (!swipeInstance.current.isSwiping) {
48020
48030
  swipeInstance.current.isSwiping = null;
@@ -48216,7 +48226,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48216
48226
  claimedSwipeInstance = null;
48217
48227
  swipeInstance.current.startX = currentX;
48218
48228
  swipeInstance.current.startY = currentY;
48219
- setMaybeSwiping(true);
48229
+ ReactDOM.flushSync(() => {
48230
+ setMaybeSwiping(true);
48231
+ });
48220
48232
 
48221
48233
  if (!open && paperRef.current) {
48222
48234
  // The ref may be null when a parent component updates while swiping.
@@ -48272,6 +48284,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48272
48284
  BackdropProps: _extends({}, BackdropProps, {
48273
48285
  ref: backdropRef
48274
48286
  })
48287
+ }, variant === 'temporary' && {
48288
+ keepMounted: true
48275
48289
  }, ModalPropsProp),
48276
48290
  hideBackdrop: hideBackdrop,
48277
48291
  PaperProps: _extends({}, PaperProps, {