@mui/material 5.10.11 → 5.10.13

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 (127) hide show
  1. package/Alert/Alert.d.ts +34 -3
  2. package/Alert/Alert.js +46 -9
  3. package/Autocomplete/Autocomplete.d.ts +10 -0
  4. package/Autocomplete/Autocomplete.js +27 -11
  5. package/AvatarGroup/AvatarGroup.d.ts +18 -1
  6. package/AvatarGroup/AvatarGroup.js +25 -6
  7. package/Backdrop/Backdrop.d.ts +33 -3
  8. package/Backdrop/Backdrop.js +46 -11
  9. package/Badge/Badge.d.ts +11 -3
  10. package/Badge/Badge.js +11 -3
  11. package/ButtonBase/TouchRipple.js +1 -1
  12. package/CHANGELOG.md +134 -0
  13. package/Chip/Chip.js +8 -4
  14. package/FilledInput/FilledInput.js +48 -9
  15. package/FormControl/FormControl.js +29 -29
  16. package/FormControlLabel/FormControlLabel.d.ts +12 -0
  17. package/FormControlLabel/FormControlLabel.js +17 -5
  18. package/Input/Input.js +49 -10
  19. package/InputBase/InputBase.d.ts +34 -3
  20. package/InputBase/InputBase.js +45 -8
  21. package/ListItem/ListItem.d.ts +32 -3
  22. package/ListItem/ListItem.js +43 -11
  23. package/ListItemButton/ListItemButton.js +2 -2
  24. package/MenuItem/MenuItem.js +2 -2
  25. package/Modal/Modal.d.ts +11 -3
  26. package/Modal/Modal.js +11 -3
  27. package/NativeSelect/NativeSelectInput.js +11 -9
  28. package/OutlinedInput/OutlinedInput.js +26 -8
  29. package/PaginationItem/PaginationItem.d.ts +19 -7
  30. package/PaginationItem/PaginationItem.js +31 -22
  31. package/README.md +1 -0
  32. package/Radio/Radio.js +2 -1
  33. package/RadioGroup/RadioGroup.js +12 -12
  34. package/Select/Select.d.ts +3 -3
  35. package/Select/Select.js +3 -3
  36. package/Slider/Slider.d.ts +14 -2
  37. package/Slider/Slider.js +12 -3
  38. package/StepLabel/StepLabel.d.ts +11 -0
  39. package/StepLabel/StepLabel.js +15 -3
  40. package/SwipeableDrawer/SwipeableDrawer.js +10 -2
  41. package/Tooltip/Tooltip.d.ts +43 -6
  42. package/Tooltip/Tooltip.js +69 -32
  43. package/Unstable_Grid2/Grid2Props.d.ts +1 -1
  44. package/esm/Alert/Alert.js +46 -9
  45. package/esm/Autocomplete/Autocomplete.js +27 -11
  46. package/esm/AvatarGroup/AvatarGroup.js +25 -6
  47. package/esm/Backdrop/Backdrop.js +46 -11
  48. package/esm/Badge/Badge.js +11 -3
  49. package/esm/ButtonBase/TouchRipple.js +1 -1
  50. package/esm/Chip/Chip.js +8 -4
  51. package/esm/FilledInput/FilledInput.js +48 -9
  52. package/esm/FormControl/FormControl.js +29 -29
  53. package/esm/FormControlLabel/FormControlLabel.js +17 -5
  54. package/esm/Input/Input.js +49 -10
  55. package/esm/InputBase/InputBase.js +45 -8
  56. package/esm/ListItem/ListItem.js +43 -11
  57. package/esm/ListItemButton/ListItemButton.js +2 -2
  58. package/esm/MenuItem/MenuItem.js +2 -2
  59. package/esm/Modal/Modal.js +11 -3
  60. package/esm/NativeSelect/NativeSelectInput.js +11 -9
  61. package/esm/OutlinedInput/OutlinedInput.js +26 -8
  62. package/esm/PaginationItem/PaginationItem.js +31 -22
  63. package/esm/Radio/Radio.js +2 -1
  64. package/esm/RadioGroup/RadioGroup.js +12 -12
  65. package/esm/Select/Select.js +3 -3
  66. package/esm/Slider/Slider.js +12 -3
  67. package/esm/StepLabel/StepLabel.js +15 -3
  68. package/esm/SwipeableDrawer/SwipeableDrawer.js +9 -2
  69. package/esm/Tooltip/Tooltip.js +69 -32
  70. package/index.js +1 -1
  71. package/legacy/Alert/Alert.js +48 -9
  72. package/legacy/Autocomplete/Autocomplete.js +27 -10
  73. package/legacy/AvatarGroup/AvatarGroup.js +26 -6
  74. package/legacy/Backdrop/Backdrop.js +48 -11
  75. package/legacy/Badge/Badge.js +11 -3
  76. package/legacy/ButtonBase/TouchRipple.js +1 -1
  77. package/legacy/Chip/Chip.js +8 -4
  78. package/legacy/FilledInput/FilledInput.js +49 -9
  79. package/legacy/FormControl/FormControl.js +29 -29
  80. package/legacy/FormControlLabel/FormControlLabel.js +17 -4
  81. package/legacy/Input/Input.js +50 -10
  82. package/legacy/InputBase/InputBase.js +47 -8
  83. package/legacy/ListItem/ListItem.js +49 -13
  84. package/legacy/ListItemButton/ListItemButton.js +7 -5
  85. package/legacy/MenuItem/MenuItem.js +6 -4
  86. package/legacy/Modal/Modal.js +11 -3
  87. package/legacy/NativeSelect/NativeSelectInput.js +11 -9
  88. package/legacy/OutlinedInput/OutlinedInput.js +27 -8
  89. package/legacy/PaginationItem/PaginationItem.js +32 -22
  90. package/legacy/Radio/Radio.js +2 -1
  91. package/legacy/RadioGroup/RadioGroup.js +14 -14
  92. package/legacy/Select/Select.js +3 -3
  93. package/legacy/Slider/Slider.js +12 -3
  94. package/legacy/StepLabel/StepLabel.js +16 -3
  95. package/legacy/SwipeableDrawer/SwipeableDrawer.js +9 -2
  96. package/legacy/Tooltip/Tooltip.js +64 -23
  97. package/legacy/index.js +1 -1
  98. package/modern/Alert/Alert.js +45 -8
  99. package/modern/Autocomplete/Autocomplete.js +26 -10
  100. package/modern/AvatarGroup/AvatarGroup.js +24 -5
  101. package/modern/Backdrop/Backdrop.js +45 -10
  102. package/modern/Badge/Badge.js +11 -3
  103. package/modern/ButtonBase/TouchRipple.js +1 -1
  104. package/modern/Chip/Chip.js +8 -4
  105. package/modern/FilledInput/FilledInput.js +46 -9
  106. package/modern/FormControl/FormControl.js +29 -29
  107. package/modern/FormControlLabel/FormControlLabel.js +15 -5
  108. package/modern/Input/Input.js +47 -10
  109. package/modern/InputBase/InputBase.js +43 -8
  110. package/modern/ListItem/ListItem.js +43 -11
  111. package/modern/ListItemButton/ListItemButton.js +2 -2
  112. package/modern/MenuItem/MenuItem.js +2 -2
  113. package/modern/Modal/Modal.js +11 -3
  114. package/modern/NativeSelect/NativeSelectInput.js +11 -9
  115. package/modern/OutlinedInput/OutlinedInput.js +25 -7
  116. package/modern/PaginationItem/PaginationItem.js +31 -22
  117. package/modern/Radio/Radio.js +2 -1
  118. package/modern/RadioGroup/RadioGroup.js +12 -12
  119. package/modern/Select/Select.js +3 -3
  120. package/modern/Slider/Slider.js +12 -3
  121. package/modern/StepLabel/StepLabel.js +13 -3
  122. package/modern/SwipeableDrawer/SwipeableDrawer.js +9 -2
  123. package/modern/Tooltip/Tooltip.js +59 -18
  124. package/modern/index.js +1 -1
  125. package/package.json +4 -4
  126. package/umd/material-ui.development.js +617 -234
  127. package/umd/material-ui.production.min.js +20 -20
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.10.11
1
+ /** @license MUI v5.10.13
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
  }
@@ -7818,7 +7820,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
7818
7820
  }
7819
7821
  } catch (e) {} })();`
7820
7822
  }
7821
- });
7823
+ }, "mui-color-scheme-init");
7822
7824
  }
7823
7825
 
7824
7826
  function getSystemMode(mode) {
@@ -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,
@@ -20525,7 +20528,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20525
20528
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
20526
20529
  }), 'Close');
20527
20530
 
20528
- const _excluded$1V = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "variant"];
20531
+ const _excluded$1V = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"];
20529
20532
 
20530
20533
  const useUtilityClasses$1C = ownerState => {
20531
20534
  const {
@@ -20635,7 +20638,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20635
20638
  })
20636
20639
  };
20637
20640
  const Alert = /*#__PURE__*/React__namespace.forwardRef(function Alert(inProps, ref) {
20638
- var _components$CloseButt, _components$CloseIcon;
20641
+ var _ref, _slots$closeButton, _ref2, _slots$closeIcon, _slotProps$closeButto, _slotProps$closeIcon;
20639
20642
 
20640
20643
  const props = useThemeProps({
20641
20644
  props: inProps,
@@ -20655,6 +20658,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20655
20658
  onClose,
20656
20659
  role = 'alert',
20657
20660
  severity = 'success',
20661
+ slotProps = {},
20662
+ slots = {},
20658
20663
  variant = 'standard'
20659
20664
  } = props,
20660
20665
  other = _objectWithoutPropertiesLoose(props, _excluded$1V);
@@ -20666,8 +20671,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20666
20671
  });
20667
20672
 
20668
20673
  const classes = useUtilityClasses$1C(ownerState);
20669
- const AlertCloseButton = (_components$CloseButt = components.CloseButton) != null ? _components$CloseButt : IconButton$1;
20670
- const AlertCloseIcon = (_components$CloseIcon = components.CloseIcon) != null ? _components$CloseIcon : ClearIcon;
20674
+ const AlertCloseButton = (_ref = (_slots$closeButton = slots.closeButton) != null ? _slots$closeButton : components.CloseButton) != null ? _ref : IconButton$1;
20675
+ const AlertCloseIcon = (_ref2 = (_slots$closeIcon = slots.closeIcon) != null ? _slots$closeIcon : components.CloseIcon) != null ? _ref2 : ClearIcon;
20676
+ const closeButtonProps = (_slotProps$closeButto = slotProps.closeButton) != null ? _slotProps$closeButto : componentsProps.closeButton;
20677
+ const closeIconProps = (_slotProps$closeIcon = slotProps.closeIcon) != null ? _slotProps$closeIcon : componentsProps.closeIcon;
20671
20678
  return /*#__PURE__*/jsxRuntime_2(AlertRoot, _extends({
20672
20679
  role: role,
20673
20680
  elevation: 0,
@@ -20696,10 +20703,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20696
20703
  title: closeText,
20697
20704
  color: "inherit",
20698
20705
  onClick: onClose
20699
- }, componentsProps.closeButton, {
20706
+ }, closeButtonProps, {
20700
20707
  children: /*#__PURE__*/jsxRuntime_1(AlertCloseIcon, _extends({
20701
20708
  fontSize: "small"
20702
- }, componentsProps.closeIcon))
20709
+ }, closeIconProps))
20703
20710
  }))
20704
20711
  }) : null]
20705
20712
  }));
@@ -20750,8 +20757,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20750
20757
  .oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
20751
20758
 
20752
20759
  /**
20753
- * The components used for each slot inside the Alert.
20754
- * Either a string to use a HTML element or a component.
20760
+ * The components used for each slot inside.
20761
+ *
20762
+ * This prop is an alias for the `slots` prop.
20763
+ * It's recommended to use the `slots` prop instead.
20764
+ *
20755
20765
  * @default {}
20756
20766
  */
20757
20767
  components: PropTypes.shape({
@@ -20760,7 +20770,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20760
20770
  }),
20761
20771
 
20762
20772
  /**
20763
- * The props used for each slot inside.
20773
+ * The extra props for the slot components.
20774
+ * You can override the existing props or add new ones.
20775
+ *
20776
+ * This prop is an alias for the `slotProps` prop.
20777
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
20778
+ *
20764
20779
  * @default {}
20765
20780
  */
20766
20781
  componentsProps: PropTypes.shape({
@@ -20807,6 +20822,31 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
20807
20822
  */
20808
20823
  severity: PropTypes.oneOf(['error', 'info', 'success', 'warning']),
20809
20824
 
20825
+ /**
20826
+ * The extra props for the slot components.
20827
+ * You can override the existing props or add new ones.
20828
+ *
20829
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
20830
+ *
20831
+ * @default {}
20832
+ */
20833
+ slotProps: PropTypes.shape({
20834
+ closeButton: PropTypes.object,
20835
+ closeIcon: PropTypes.object
20836
+ }),
20837
+
20838
+ /**
20839
+ * The components used for each slot inside.
20840
+ *
20841
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
20842
+ *
20843
+ * @default {}
20844
+ */
20845
+ slots: PropTypes.shape({
20846
+ closeButton: PropTypes.elementType,
20847
+ closeIcon: PropTypes.elementType
20848
+ }),
20849
+
20810
20850
  /**
20811
20851
  * The system prop that allows defining system overrides as well as additional CSS styles.
20812
20852
  */
@@ -21667,6 +21707,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21667
21707
  disabled,
21668
21708
  size,
21669
21709
  color,
21710
+ iconColor,
21670
21711
  onDelete,
21671
21712
  clickable,
21672
21713
  variant
@@ -21675,7 +21716,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21675
21716
  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
21717
  label: ['label', `label${capitalize(size)}`],
21677
21718
  avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
21678
- icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(color)}`],
21719
+ icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
21679
21720
  deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
21680
21721
  };
21681
21722
  return composeClasses(slots, getChipUtilityClass, classes);
@@ -21690,6 +21731,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21690
21731
  } = props;
21691
21732
  const {
21692
21733
  color,
21734
+ iconColor,
21693
21735
  clickable,
21694
21736
  onDelete,
21695
21737
  size,
@@ -21706,7 +21748,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21706
21748
  }, {
21707
21749
  [`& .${chipClasses$1.icon}`]: styles[`icon${capitalize(size)}`]
21708
21750
  }, {
21709
- [`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(color)}`]
21751
+ [`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
21710
21752
  }, {
21711
21753
  [`& .${chipClasses$1.deleteIcon}`]: styles.deleteIcon
21712
21754
  }, {
@@ -21775,16 +21817,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21775
21817
  fontSize: theme.typography.pxToRem(10)
21776
21818
  },
21777
21819
  [`& .${chipClasses$1.icon}`]: _extends({
21778
- color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor,
21779
21820
  marginLeft: 5,
21780
21821
  marginRight: -6
21781
21822
  }, ownerState.size === 'small' && {
21782
21823
  fontSize: 18,
21783
21824
  marginLeft: 4,
21784
21825
  marginRight: -4
21826
+ }, ownerState.iconColor === ownerState.color && _extends({
21827
+ color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
21785
21828
  }, ownerState.color !== 'default' && {
21786
21829
  color: 'inherit'
21787
- }),
21830
+ })),
21788
21831
  [`& .${chipClasses$1.deleteIcon}`]: _extends({
21789
21832
  WebkitTapHighlightColor: 'transparent',
21790
21833
  color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
@@ -21990,6 +22033,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21990
22033
  disabled,
21991
22034
  size,
21992
22035
  color,
22036
+ iconColor: /*#__PURE__*/React__namespace.isValidElement(iconProp) ? iconProp.props.color || color : color,
21993
22037
  onDelete: !!onDelete,
21994
22038
  clickable,
21995
22039
  variant
@@ -22264,7 +22308,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22264
22308
  const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
22265
22309
  var inputBaseClasses$1 = inputBaseClasses;
22266
22310
 
22267
- 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"];
22311
+ 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", "slotProps", "slots", "startAdornment", "type", "value"];
22268
22312
  const rootOverridesResolver = (props, styles) => {
22269
22313
  const {
22270
22314
  ownerState
@@ -22460,6 +22504,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22460
22504
 
22461
22505
 
22462
22506
  const InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(inProps, ref) {
22507
+ var _slotProps$input;
22508
+
22463
22509
  const props = useThemeProps({
22464
22510
  props: inProps,
22465
22511
  name: 'MuiInputBase'
@@ -22495,6 +22541,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22495
22541
  readOnly,
22496
22542
  renderSuffix,
22497
22543
  rows,
22544
+ slotProps = {},
22545
+ slots = {},
22498
22546
  startAdornment,
22499
22547
  type = 'text',
22500
22548
  value: valueProp
@@ -22698,10 +22746,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22698
22746
  });
22699
22747
 
22700
22748
  const classes = useUtilityClasses$1w(ownerState);
22701
- const Root = components.Root || InputBaseRoot;
22702
- const rootProps = componentsProps.root || {};
22703
- const Input = components.Input || InputBaseComponent;
22704
- inputProps = _extends({}, inputProps, componentsProps.input);
22749
+ const Root = slots.root || components.Root || InputBaseRoot;
22750
+ const rootProps = slotProps.root || componentsProps.root || {};
22751
+ const Input = slots.input || components.Input || InputBaseComponent;
22752
+ inputProps = _extends({}, inputProps, (_slotProps$input = slotProps.input) != null ? _slotProps$input : componentsProps.input);
22705
22753
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
22706
22754
  children: [!disableInjectingGlobalStyles && inputGlobalStyles, /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, !isHostComponent(Root) && {
22707
22755
  ownerState: _extends({}, ownerState, rootProps.ownerState)
@@ -22793,8 +22841,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22793
22841
  .oneOfType([PropTypes.oneOf(['primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
22794
22842
 
22795
22843
  /**
22796
- * The components used for each slot inside the InputBase.
22797
- * Either a string to use a HTML element or a component.
22844
+ * The components used for each slot inside.
22845
+ *
22846
+ * This prop is an alias for the `slots` prop.
22847
+ * It's recommended to use the `slots` prop instead.
22848
+ *
22798
22849
  * @default {}
22799
22850
  */
22800
22851
  components: PropTypes.shape({
@@ -22803,7 +22854,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22803
22854
  }),
22804
22855
 
22805
22856
  /**
22806
- * The props used for each slot inside the Input.
22857
+ * The extra props for the slot components.
22858
+ * You can override the existing props or add new ones.
22859
+ *
22860
+ * This prop is an alias for the `slotProps` prop.
22861
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
22862
+ *
22807
22863
  * @default {}
22808
22864
  */
22809
22865
  componentsProps: PropTypes.shape({
@@ -22971,6 +23027,31 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
22971
23027
  /* @typescript-to-proptypes-ignore */
22972
23028
  .oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
22973
23029
 
23030
+ /**
23031
+ * The extra props for the slot components.
23032
+ * You can override the existing props or add new ones.
23033
+ *
23034
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
23035
+ *
23036
+ * @default {}
23037
+ */
23038
+ slotProps: PropTypes.shape({
23039
+ input: PropTypes.object,
23040
+ root: PropTypes.object
23041
+ }),
23042
+
23043
+ /**
23044
+ * The components used for each slot inside.
23045
+ *
23046
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
23047
+ *
23048
+ * @default {}
23049
+ */
23050
+ slots: PropTypes.shape({
23051
+ input: PropTypes.elementType,
23052
+ root: PropTypes.elementType
23053
+ }),
23054
+
22974
23055
  /**
22975
23056
  * Start `InputAdornment` for this component.
22976
23057
  */
@@ -23030,7 +23111,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23030
23111
 
23031
23112
  var _ClearIcon, _ArrowDropDownIcon;
23032
23113
 
23033
- const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "value"];
23114
+ const _excluded$1N = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"];
23034
23115
 
23035
23116
  const useUtilityClasses$1v = ownerState => {
23036
23117
  const {
@@ -23356,7 +23437,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23356
23437
  }
23357
23438
  });
23358
23439
  const Autocomplete = /*#__PURE__*/React__namespace.forwardRef(function Autocomplete(inProps, ref) {
23359
- var _componentsProps$clea, _componentsProps$popu, _componentsProps$popp, _componentsProps$pape;
23440
+ var _slotProps$clearIndic, _slotProps$paper, _slotProps$popper, _slotProps$popupIndic;
23360
23441
 
23361
23442
  const props = useThemeProps({
23362
23443
  props: inProps,
@@ -23417,7 +23498,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23417
23498
  renderOption: renderOptionProp,
23418
23499
  renderTags,
23419
23500
  selectOnFocus = !props.freeSolo,
23420
- size = 'medium'
23501
+ size = 'medium',
23502
+ slotProps = {}
23421
23503
  } = props,
23422
23504
  other = _objectWithoutPropertiesLoose(props, _excluded$1N);
23423
23505
  /* eslint-enable @typescript-eslint/no-unused-vars */
@@ -23526,6 +23608,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23526
23608
  });
23527
23609
  };
23528
23610
 
23611
+ const clearIndicatorSlotProps = (_slotProps$clearIndic = slotProps.clearIndicator) != null ? _slotProps$clearIndic : componentsProps.clearIndicator;
23612
+ const paperSlotProps = (_slotProps$paper = slotProps.paper) != null ? _slotProps$paper : componentsProps.paper;
23613
+ const popperSlotProps = (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper;
23614
+ const popupIndicatorSlotProps = (_slotProps$popupIndic = slotProps.popupIndicator) != null ? _slotProps$popupIndic : componentsProps.popupIndicator;
23529
23615
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
23530
23616
  children: [/*#__PURE__*/jsxRuntime_1(AutocompleteRoot, _extends({
23531
23617
  ref: ref,
@@ -23550,16 +23636,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23550
23636
  "aria-label": clearText,
23551
23637
  title: clearText,
23552
23638
  ownerState: ownerState
23553
- }, componentsProps.clearIndicator, {
23554
- className: clsx(classes.clearIndicator, (_componentsProps$clea = componentsProps.clearIndicator) == null ? void 0 : _componentsProps$clea.className),
23639
+ }, clearIndicatorSlotProps, {
23640
+ className: clsx(classes.clearIndicator, clearIndicatorSlotProps == null ? void 0 : clearIndicatorSlotProps.className),
23555
23641
  children: clearIcon
23556
23642
  })) : null, hasPopupIcon ? /*#__PURE__*/jsxRuntime_1(AutocompletePopupIndicator, _extends({}, getPopupIndicatorProps(), {
23557
23643
  disabled: disabled,
23558
23644
  "aria-label": popupOpen ? closeText : openText,
23559
23645
  title: popupOpen ? closeText : openText,
23560
23646
  ownerState: ownerState
23561
- }, componentsProps.popupIndicator, {
23562
- className: clsx(classes.popupIndicator, (_componentsProps$popu = componentsProps.popupIndicator) == null ? void 0 : _componentsProps$popu.className),
23647
+ }, popupIndicatorSlotProps, {
23648
+ className: clsx(classes.popupIndicator, popupIndicatorSlotProps == null ? void 0 : popupIndicatorSlotProps.className),
23563
23649
  children: popupIcon
23564
23650
  })) : null]
23565
23651
  })
@@ -23580,13 +23666,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
23580
23666
  role: "presentation",
23581
23667
  anchorEl: anchorEl,
23582
23668
  open: popupOpen
23583
- }, componentsProps.popper, {
23584
- className: clsx(classes.popper, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
23669
+ }, popperSlotProps, {
23670
+ className: clsx(classes.popper, popperSlotProps == null ? void 0 : popperSlotProps.className),
23585
23671
  children: /*#__PURE__*/jsxRuntime_2(AutocompletePaper, _extends({
23586
23672
  ownerState: ownerState,
23587
23673
  as: PaperComponent
23588
- }, componentsProps.paper, {
23589
- className: clsx(classes.paper, (_componentsProps$pape = componentsProps.paper) == null ? void 0 : _componentsProps$pape.className),
23674
+ }, paperSlotProps, {
23675
+ className: clsx(classes.paper, paperSlotProps == null ? void 0 : paperSlotProps.className),
23590
23676
  children: [loading && groupedOptions.length === 0 ? /*#__PURE__*/jsxRuntime_1(AutocompleteLoading, {
23591
23677
  className: classes.loading,
23592
23678
  ownerState: ownerState,
@@ -24070,6 +24156,17 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24070
24156
  /* @typescript-to-proptypes-ignore */
24071
24157
  .oneOfType([PropTypes.oneOf(['small', 'medium']), PropTypes.string]),
24072
24158
 
24159
+ /**
24160
+ * The props used for each slot inside.
24161
+ * @default {}
24162
+ */
24163
+ slotProps: PropTypes.shape({
24164
+ clearIndicator: PropTypes.object,
24165
+ paper: PropTypes.object,
24166
+ popper: PropTypes.object,
24167
+ popupIndicator: PropTypes.object
24168
+ }),
24169
+
24073
24170
  /**
24074
24171
  * The system prop that allows defining system overrides as well as additional CSS styles.
24075
24172
  */
@@ -24368,7 +24465,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24368
24465
  const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
24369
24466
  var avatarGroupClasses$1 = avatarGroupClasses;
24370
24467
 
24371
- const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "spacing", "total", "variant"];
24468
+ const _excluded$1L = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
24372
24469
  const SPACINGS$2 = {
24373
24470
  small: -16,
24374
24471
  medium: null
@@ -24420,7 +24517,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24420
24517
  }
24421
24518
  }));
24422
24519
  const AvatarGroup = /*#__PURE__*/React__namespace.forwardRef(function AvatarGroup(inProps, ref) {
24423
- var _componentsProps$addi, _componentsProps$addi2;
24520
+ var _slotProps$additional;
24424
24521
 
24425
24522
  const props = useThemeProps({
24426
24523
  props: inProps,
@@ -24433,6 +24530,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24433
24530
  component = 'div',
24434
24531
  componentsProps = {},
24435
24532
  max = 5,
24533
+ slotProps = {},
24436
24534
  spacing = 'medium',
24437
24535
  total,
24438
24536
  variant = 'circular'
@@ -24468,6 +24566,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24468
24566
  const maxAvatars = Math.min(children.length, clampedMax - 1);
24469
24567
  const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
24470
24568
  const marginLeft = spacing && SPACINGS$2[spacing] !== undefined ? SPACINGS$2[spacing] : -spacing;
24569
+ const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
24471
24570
  return /*#__PURE__*/jsxRuntime_2(AvatarGroupRoot, _extends({
24472
24571
  as: component,
24473
24572
  ownerState: ownerState,
@@ -24477,11 +24576,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24477
24576
  children: [extraAvatars ? /*#__PURE__*/jsxRuntime_2(AvatarGroupAvatar, _extends({
24478
24577
  ownerState: ownerState,
24479
24578
  variant: variant
24480
- }, componentsProps.additionalAvatar, {
24481
- className: clsx(classes.avatar, (_componentsProps$addi = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi.className),
24579
+ }, additionalAvatarSlotProps, {
24580
+ className: clsx(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
24482
24581
  style: _extends({
24483
24582
  marginLeft
24484
- }, (_componentsProps$addi2 = componentsProps.additionalAvatar) == null ? void 0 : _componentsProps$addi2.style),
24583
+ }, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
24485
24584
  children: ["+", extraAvatars]
24486
24585
  })) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
24487
24586
  return /*#__PURE__*/React__namespace.cloneElement(child, {
@@ -24526,7 +24625,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24526
24625
  component: PropTypes.elementType,
24527
24626
 
24528
24627
  /**
24529
- * The props used for each slot inside the AvatarGroup.
24628
+ * The extra props for the slot components.
24629
+ * You can override the existing props or add new ones.
24630
+ *
24631
+ * This prop is an alias for the `slotProps` prop.
24632
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
24633
+ *
24530
24634
  * @default {}
24531
24635
  */
24532
24636
  componentsProps: PropTypes.shape({
@@ -24545,6 +24649,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24545
24649
  return null;
24546
24650
  }),
24547
24651
 
24652
+ /**
24653
+ * The extra props for the slot components.
24654
+ * You can override the existing props or add new ones.
24655
+ *
24656
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
24657
+ *
24658
+ * @default {}
24659
+ */
24660
+ slotProps: PropTypes.shape({
24661
+ additionalAvatar: PropTypes.object
24662
+ }),
24663
+
24548
24664
  /**
24549
24665
  * Spacing between avatars.
24550
24666
  * @default 'medium'
@@ -24792,7 +24908,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24792
24908
  const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
24793
24909
  var backdropClasses$1 = backdropClasses;
24794
24910
 
24795
- const _excluded$1J = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
24911
+ const _excluded$1J = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "slotProps", "slots", "transitionDuration", "TransitionComponent"];
24796
24912
 
24797
24913
  const useUtilityClasses$1s = ownerState => {
24798
24914
  const {
@@ -24831,7 +24947,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24831
24947
  backgroundColor: 'transparent'
24832
24948
  }));
24833
24949
  const Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inProps, ref) {
24834
- var _components$Root, _componentsProps$root;
24950
+ var _slotProps$root, _ref, _slots$root;
24835
24951
 
24836
24952
  const props = useThemeProps({
24837
24953
  props: inProps,
@@ -24846,6 +24962,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24846
24962
  className,
24847
24963
  invisible = false,
24848
24964
  open,
24965
+ slotProps = {},
24966
+ slots = {},
24849
24967
  transitionDuration,
24850
24968
  // eslint-disable-next-line react/prop-types
24851
24969
  TransitionComponent = Fade$1
@@ -24858,19 +24976,21 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24858
24976
  });
24859
24977
 
24860
24978
  const classes = useUtilityClasses$1s(ownerState);
24979
+ const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
24861
24980
  return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
24862
24981
  in: open,
24863
24982
  timeout: transitionDuration
24864
24983
  }, other, {
24865
- children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, {
24866
- "aria-hidden": true,
24867
- as: (_components$Root = components.Root) != null ? _components$Root : component,
24868
- className: clsx(classes.root, className),
24869
- ownerState: _extends({}, ownerState, (_componentsProps$root = componentsProps.root) == null ? void 0 : _componentsProps$root.ownerState),
24984
+ children: /*#__PURE__*/jsxRuntime_1(BackdropRoot, _extends({
24985
+ "aria-hidden": true
24986
+ }, rootSlotProps, {
24987
+ as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,
24988
+ className: clsx(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
24989
+ ownerState: _extends({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
24870
24990
  classes: classes,
24871
24991
  ref: ref,
24872
24992
  children: children
24873
- })
24993
+ }))
24874
24994
  }));
24875
24995
  });
24876
24996
  Backdrop.propTypes
@@ -24903,8 +25023,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24903
25023
  component: PropTypes.elementType,
24904
25024
 
24905
25025
  /**
24906
- * The components used for each slot inside the Backdrop.
24907
- * Either a string to use a HTML element or a component.
25026
+ * The components used for each slot inside.
25027
+ *
25028
+ * This prop is an alias for the `slots` prop.
25029
+ * It's recommended to use the `slots` prop instead.
25030
+ *
24908
25031
  * @default {}
24909
25032
  */
24910
25033
  components: PropTypes.shape({
@@ -24912,7 +25035,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24912
25035
  }),
24913
25036
 
24914
25037
  /**
24915
- * The props used for each slot inside the Backdrop.
25038
+ * The extra props for the slot components.
25039
+ * You can override the existing props or add new ones.
25040
+ *
25041
+ * This prop is an alias for the `slotProps` prop.
25042
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
25043
+ *
24916
25044
  * @default {}
24917
25045
  */
24918
25046
  componentsProps: PropTypes.shape({
@@ -24931,6 +25059,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
24931
25059
  */
24932
25060
  open: PropTypes.bool.isRequired,
24933
25061
 
25062
+ /**
25063
+ * The extra props for the slot components.
25064
+ * You can override the existing props or add new ones.
25065
+ *
25066
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
25067
+ *
25068
+ * @default {}
25069
+ */
25070
+ slotProps: PropTypes.shape({
25071
+ root: PropTypes.object
25072
+ }),
25073
+
25074
+ /**
25075
+ * The components used for each slot inside.
25076
+ *
25077
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
25078
+ *
25079
+ * @default {}
25080
+ */
25081
+ slots: PropTypes.shape({
25082
+ root: PropTypes.elementType
25083
+ }),
25084
+
24934
25085
  /**
24935
25086
  * The system prop that allows defining system overrides as well as additional CSS styles.
24936
25087
  */
@@ -25265,8 +25416,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25265
25416
  component: PropTypes.elementType,
25266
25417
 
25267
25418
  /**
25268
- * The components used for each slot inside the Badge.
25269
- * Either a string to use a HTML element or a component.
25419
+ * The components used for each slot inside.
25420
+ *
25421
+ * This prop is an alias for the `slots` prop.
25422
+ * It's recommended to use the `slots` prop instead.
25423
+ *
25270
25424
  * @default {}
25271
25425
  */
25272
25426
  components: PropTypes.shape({
@@ -25275,7 +25429,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25275
25429
  }),
25276
25430
 
25277
25431
  /**
25278
- * The props used for each slot inside the Badge.
25432
+ * The extra props for the slot components.
25433
+ * You can override the existing props or add new ones.
25434
+ *
25435
+ * This prop is an alias for the `slotProps` prop.
25436
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
25437
+ *
25279
25438
  * @default {}
25280
25439
  */
25281
25440
  componentsProps: PropTypes.shape({
@@ -28634,8 +28793,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28634
28793
  component: PropTypes.elementType,
28635
28794
 
28636
28795
  /**
28637
- * The components used for each slot inside the Modal.
28638
- * Either a string to use a HTML element or a component.
28796
+ * The components used for each slot inside.
28797
+ *
28798
+ * This prop is an alias for the `slots` prop.
28799
+ * It's recommended to use the `slots` prop instead.
28800
+ *
28639
28801
  * @default {}
28640
28802
  */
28641
28803
  components: PropTypes.shape({
@@ -28644,7 +28806,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
28644
28806
  }),
28645
28807
 
28646
28808
  /**
28647
- * The props used for each slot inside the Modal.
28809
+ * The extra props for the slot components.
28810
+ * You can override the existing props or add new ones.
28811
+ *
28812
+ * This prop is an alias for the `slotProps` prop.
28813
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
28814
+ *
28648
28815
  * @default {}
28649
28816
  */
28650
28817
  componentsProps: PropTypes.shape({
@@ -30755,7 +30922,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30755
30922
  } ;
30756
30923
  var Fab$1 = Fab;
30757
30924
 
30758
- const _excluded$1j = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "type"];
30925
+ const _excluded$1j = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
30759
30926
 
30760
30927
  const useUtilityClasses$14 = ownerState => {
30761
30928
  const {
@@ -30926,6 +31093,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30926
31093
  paddingBottom: 9
30927
31094
  }));
30928
31095
  const FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInput(inProps, ref) {
31096
+ var _ref, _slots$root, _ref2, _slots$input;
31097
+
30929
31098
  const props = useThemeProps({
30930
31099
  props: inProps,
30931
31100
  name: 'MuiFilledInput'
@@ -30938,6 +31107,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30938
31107
  // declare here to prevent spreading to DOM
30939
31108
  inputComponent = 'input',
30940
31109
  multiline = false,
31110
+ slotProps,
31111
+ slots = {},
30941
31112
  type = 'text'
30942
31113
  } = props,
30943
31114
  other = _objectWithoutPropertiesLoose(props, _excluded$1j);
@@ -30958,12 +31129,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
30958
31129
  ownerState
30959
31130
  }
30960
31131
  };
30961
- const componentsProps = componentsPropsProp ? deepmerge(componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
31132
+ const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp, filledInputComponentsProps) : filledInputComponentsProps;
31133
+ const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : FilledInputRoot;
31134
+ const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : FilledInputInput;
30962
31135
  return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
30963
- components: _extends({
30964
- Root: FilledInputRoot,
30965
- Input: FilledInputInput
30966
- }, components),
31136
+ slots: {
31137
+ root: RootSlot,
31138
+ input: InputSlot
31139
+ },
30967
31140
  componentsProps: componentsProps,
30968
31141
  fullWidth: fullWidth,
30969
31142
  inputComponent: inputComponent,
@@ -31010,8 +31183,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31010
31183
  .oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
31011
31184
 
31012
31185
  /**
31013
- * The components used for each slot inside the InputBase.
31014
- * Either a string to use a HTML element or a component.
31186
+ * The components used for each slot inside.
31187
+ *
31188
+ * This prop is an alias for the `slots` prop.
31189
+ * It's recommended to use the `slots` prop instead.
31190
+ *
31015
31191
  * @default {}
31016
31192
  */
31017
31193
  components: PropTypes.shape({
@@ -31020,7 +31196,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31020
31196
  }),
31021
31197
 
31022
31198
  /**
31023
- * The props used for each slot inside the Input.
31199
+ * The extra props for the slot components.
31200
+ * You can override the existing props or add new ones.
31201
+ *
31202
+ * This prop is an alias for the `slotProps` prop.
31203
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
31204
+ *
31024
31205
  * @default {}
31025
31206
  */
31026
31207
  componentsProps: PropTypes.shape({
@@ -31150,6 +31331,31 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31150
31331
  */
31151
31332
  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
31152
31333
 
31334
+ /**
31335
+ * The extra props for the slot components.
31336
+ * You can override the existing props or add new ones.
31337
+ *
31338
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
31339
+ *
31340
+ * @default {}
31341
+ */
31342
+ slotProps: PropTypes.shape({
31343
+ input: PropTypes.object,
31344
+ root: PropTypes.object
31345
+ }),
31346
+
31347
+ /**
31348
+ * The components used for each slot inside.
31349
+ *
31350
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
31351
+ *
31352
+ * @default {}
31353
+ */
31354
+ slots: PropTypes.shape({
31355
+ input: PropTypes.elementType,
31356
+ root: PropTypes.elementType
31357
+ }),
31358
+
31153
31359
  /**
31154
31360
  * Start `InputAdornment` for this component.
31155
31361
  */
@@ -31350,35 +31556,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31350
31556
  };
31351
31557
  }
31352
31558
 
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
- };
31559
+ const childContext = React__namespace.useMemo(() => {
31560
+ return {
31561
+ adornedStart,
31562
+ setAdornedStart,
31563
+ color,
31564
+ disabled,
31565
+ error,
31566
+ filled,
31567
+ focused,
31568
+ fullWidth,
31569
+ hiddenLabel,
31570
+ size,
31571
+ onBlur: () => {
31572
+ setFocused(false);
31573
+ },
31574
+ onEmpty: () => {
31575
+ setFilled(false);
31576
+ },
31577
+ onFilled: () => {
31578
+ setFilled(true);
31579
+ },
31580
+ onFocus: () => {
31581
+ setFocused(true);
31582
+ },
31583
+ registerEffect,
31584
+ required,
31585
+ variant
31586
+ };
31587
+ }, [adornedStart, color, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
31382
31588
  return /*#__PURE__*/jsxRuntime_1(FormControlContext$1.Provider, {
31383
31589
  value: childContext,
31384
31590
  children: /*#__PURE__*/jsxRuntime_1(FormControlRoot, _extends({
@@ -31500,7 +31706,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31500
31706
  const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error']);
31501
31707
  var formControlLabelClasses$1 = formControlLabelClasses;
31502
31708
 
31503
- const _excluded$1h = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "value"];
31709
+ const _excluded$1h = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
31504
31710
 
31505
31711
  const useUtilityClasses$12 = ownerState => {
31506
31712
  const {
@@ -31567,6 +31773,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31567
31773
  */
31568
31774
 
31569
31775
  const FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormControlLabel(inProps, ref) {
31776
+ var _slotProps$typography;
31777
+
31570
31778
  const props = useThemeProps({
31571
31779
  props: inProps,
31572
31780
  name: 'MuiFormControlLabel'
@@ -31579,7 +31787,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31579
31787
  disabled: disabledProp,
31580
31788
  disableTypography,
31581
31789
  label: labelProp,
31582
- labelPlacement = 'end'
31790
+ labelPlacement = 'end',
31791
+ slotProps = {}
31583
31792
  } = props,
31584
31793
  other = _objectWithoutPropertiesLoose(props, _excluded$1h);
31585
31794
 
@@ -31615,13 +31824,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31615
31824
  });
31616
31825
 
31617
31826
  const classes = useUtilityClasses$12(ownerState);
31827
+ const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
31618
31828
  let label = labelProp;
31619
31829
 
31620
31830
  if (label != null && label.type !== Typography$1 && !disableTypography) {
31621
31831
  label = /*#__PURE__*/jsxRuntime_1(Typography$1, _extends({
31622
- component: "span",
31623
- className: classes.label
31624
- }, componentsProps.typography, {
31832
+ component: "span"
31833
+ }, typographySlotProps, {
31834
+ className: clsx(classes.label, typographySlotProps == null ? void 0 : typographySlotProps.className),
31625
31835
  children: label
31626
31836
  }));
31627
31837
  }
@@ -31709,6 +31919,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
31709
31919
  */
31710
31920
  onChange: PropTypes.func,
31711
31921
 
31922
+ /**
31923
+ * The props used for each slot inside.
31924
+ * @default {}
31925
+ */
31926
+ slotProps: PropTypes.shape({
31927
+ typography: PropTypes.object
31928
+ }),
31929
+
31712
31930
  /**
31713
31931
  * The system prop that allows defining system overrides as well as additional CSS styles.
31714
31932
  */
@@ -34613,7 +34831,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34613
34831
  } ;
34614
34832
  var ImageListItemBar$1 = ImageListItemBar;
34615
34833
 
34616
- const _excluded$14 = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "type"];
34834
+ const _excluded$14 = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
34617
34835
 
34618
34836
  const useUtilityClasses$U = ownerState => {
34619
34837
  const {
@@ -34714,6 +34932,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34714
34932
  overridesResolver: inputOverridesResolver
34715
34933
  })({});
34716
34934
  const Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, ref) {
34935
+ var _ref, _slots$root, _ref2, _slots$input;
34936
+
34717
34937
  const props = useThemeProps({
34718
34938
  props: inProps,
34719
34939
  name: 'MuiInput'
@@ -34726,6 +34946,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34726
34946
  fullWidth = false,
34727
34947
  inputComponent = 'input',
34728
34948
  multiline = false,
34949
+ slotProps,
34950
+ slots = {},
34729
34951
  type = 'text'
34730
34952
  } = props,
34731
34953
  other = _objectWithoutPropertiesLoose(props, _excluded$14);
@@ -34739,13 +34961,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34739
34961
  ownerState
34740
34962
  }
34741
34963
  };
34742
- const componentsProps = componentsPropsProp ? deepmerge(componentsPropsProp, inputComponentsProps) : inputComponentsProps;
34964
+ const componentsProps = (slotProps != null ? slotProps : componentsPropsProp) ? deepmerge(slotProps != null ? slotProps : componentsPropsProp, inputComponentsProps) : inputComponentsProps;
34965
+ const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : InputRoot;
34966
+ const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : InputInput;
34743
34967
  return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
34744
- components: _extends({
34745
- Root: InputRoot,
34746
- Input: InputInput
34747
- }, components),
34748
- componentsProps: componentsProps,
34968
+ slots: {
34969
+ root: RootSlot,
34970
+ input: InputSlot
34971
+ },
34972
+ slotProps: componentsProps,
34749
34973
  fullWidth: fullWidth,
34750
34974
  inputComponent: inputComponent,
34751
34975
  multiline: multiline,
@@ -34791,8 +35015,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34791
35015
  .oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
34792
35016
 
34793
35017
  /**
34794
- * The components used for each slot inside the InputBase.
34795
- * Either a string to use a HTML element or a component.
35018
+ * The components used for each slot inside.
35019
+ *
35020
+ * This prop is an alias for the `slots` prop.
35021
+ * It's recommended to use the `slots` prop instead.
35022
+ *
34796
35023
  * @default {}
34797
35024
  */
34798
35025
  components: PropTypes.shape({
@@ -34801,7 +35028,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34801
35028
  }),
34802
35029
 
34803
35030
  /**
34804
- * The props used for each slot inside the Input.
35031
+ * The extra props for the slot components.
35032
+ * You can override the existing props or add new ones.
35033
+ *
35034
+ * This prop is an alias for the `slotProps` prop.
35035
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
35036
+ *
34805
35037
  * @default {}
34806
35038
  */
34807
35039
  componentsProps: PropTypes.shape({
@@ -34923,6 +35155,31 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
34923
35155
  */
34924
35156
  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
34925
35157
 
35158
+ /**
35159
+ * The extra props for the slot components.
35160
+ * You can override the existing props or add new ones.
35161
+ *
35162
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
35163
+ *
35164
+ * @default {}
35165
+ */
35166
+ slotProps: PropTypes.shape({
35167
+ input: PropTypes.object,
35168
+ root: PropTypes.object
35169
+ }),
35170
+
35171
+ /**
35172
+ * The components used for each slot inside.
35173
+ *
35174
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
35175
+ *
35176
+ * @default {}
35177
+ */
35178
+ slots: PropTypes.shape({
35179
+ input: PropTypes.elementType,
35180
+ root: PropTypes.elementType
35181
+ }),
35182
+
34926
35183
  /**
34927
35184
  * Start `InputAdornment` for this component.
34928
35185
  */
@@ -36260,11 +36517,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36260
36517
  other = _objectWithoutPropertiesLoose(props, _excluded$_);
36261
36518
 
36262
36519
  const context = React__namespace.useContext(ListContext$1);
36263
- const childContext = {
36520
+ const childContext = React__namespace.useMemo(() => ({
36264
36521
  dense: dense || context.dense || false,
36265
36522
  alignItems,
36266
36523
  disableGutters
36267
- };
36524
+ }), [alignItems, context.dense, dense, disableGutters]);
36268
36525
  const listItemRef = React__namespace.useRef(null);
36269
36526
  useEnhancedEffect$1(() => {
36270
36527
  if (autoFocus) {
@@ -36495,7 +36752,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36495
36752
  var ListItemSecondaryAction$1 = ListItemSecondaryAction;
36496
36753
 
36497
36754
  const _excluded$Y = ["className"],
36498
- _excluded2$7 = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected"];
36755
+ _excluded2$7 = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"];
36499
36756
  const overridesResolver$2 = (props, styles) => {
36500
36757
  const {
36501
36758
  ownerState
@@ -36635,17 +36892,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36635
36892
  divider = false,
36636
36893
  focusVisibleClassName,
36637
36894
  secondaryAction,
36638
- selected = false
36895
+ selected = false,
36896
+ slotProps = {},
36897
+ slots = {}
36639
36898
  } = props,
36640
36899
  ContainerProps = _objectWithoutPropertiesLoose(props.ContainerProps, _excluded$Y),
36641
36900
  other = _objectWithoutPropertiesLoose(props, _excluded2$7);
36642
36901
 
36643
36902
  const context = React__namespace.useContext(ListContext$1);
36644
- const childContext = {
36903
+ const childContext = React__namespace.useMemo(() => ({
36645
36904
  dense: dense || context.dense || false,
36646
36905
  alignItems,
36647
36906
  disableGutters
36648
- };
36907
+ }), [alignItems, context.dense, dense, disableGutters]);
36649
36908
  const listItemRef = React__namespace.useRef(null);
36650
36909
  useEnhancedEffect$1(() => {
36651
36910
  if (autoFocus) {
@@ -36675,8 +36934,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36675
36934
 
36676
36935
  const classes = useUtilityClasses$M(ownerState);
36677
36936
  const handleRef = useForkRef(listItemRef, ref);
36678
- const Root = components.Root || ListItemRoot;
36679
- const rootProps = componentsProps.root || {};
36937
+ const Root = slots.root || components.Root || ListItemRoot;
36938
+ const rootProps = slotProps.root || componentsProps.root || {};
36680
36939
 
36681
36940
  const componentProps = _extends({
36682
36941
  className: clsx(classes.root, rootProps.className, className),
@@ -36726,8 +36985,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36726
36985
  value: childContext,
36727
36986
  children: /*#__PURE__*/jsxRuntime_2(Root, _extends({}, rootProps, {
36728
36987
  as: Component,
36729
- ref: handleRef,
36730
- ownerState: ownerState
36988
+ ref: handleRef
36731
36989
  }, !isHostComponent(Root) && {
36732
36990
  ownerState: _extends({}, ownerState, rootProps.ownerState)
36733
36991
  }, componentProps, {
@@ -36810,8 +37068,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36810
37068
  component: PropTypes.elementType,
36811
37069
 
36812
37070
  /**
36813
- * The components used for each slot inside the InputBase.
36814
- * Either a string to use a HTML element or a component.
37071
+ * The components used for each slot inside.
37072
+ *
37073
+ * This prop is an alias for the `slots` prop.
37074
+ * It's recommended to use the `slots` prop instead.
37075
+ *
36815
37076
  * @default {}
36816
37077
  */
36817
37078
  components: PropTypes.shape({
@@ -36819,7 +37080,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36819
37080
  }),
36820
37081
 
36821
37082
  /**
36822
- * The props used for each slot inside the Input.
37083
+ * The extra props for the slot components.
37084
+ * You can override the existing props or add new ones.
37085
+ *
37086
+ * This prop is an alias for the `slotProps` prop.
37087
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
37088
+ *
36823
37089
  * @default {}
36824
37090
  */
36825
37091
  componentsProps: PropTypes.shape({
@@ -36889,6 +37155,29 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36889
37155
  */
36890
37156
  selected: PropTypes.bool,
36891
37157
 
37158
+ /**
37159
+ * The extra props for the slot components.
37160
+ * You can override the existing props or add new ones.
37161
+ *
37162
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
37163
+ *
37164
+ * @default {}
37165
+ */
37166
+ slotProps: PropTypes.shape({
37167
+ root: PropTypes.object
37168
+ }),
37169
+
37170
+ /**
37171
+ * The components used for each slot inside.
37172
+ *
37173
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
37174
+ *
37175
+ * @default {}
37176
+ */
37177
+ slots: PropTypes.shape({
37178
+ root: PropTypes.elementType
37179
+ }),
37180
+
36892
37181
  /**
36893
37182
  * The system prop that allows defining system overrides as well as additional CSS styles.
36894
37183
  */
@@ -38497,10 +38786,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38497
38786
  other = _objectWithoutPropertiesLoose(props, _excluded$R);
38498
38787
 
38499
38788
  const context = React__namespace.useContext(ListContext$1);
38500
- const childContext = {
38789
+ const childContext = React__namespace.useMemo(() => ({
38501
38790
  dense: dense || context.dense || false,
38502
38791
  disableGutters
38503
- };
38792
+ }), [context.dense, dense, disableGutters]);
38504
38793
  const menuItemRef = React__namespace.useRef(null);
38505
38794
  useEnhancedEffect$1(() => {
38506
38795
  if (autoFocus) {
@@ -38886,12 +39175,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38886
39175
  borderRadius: 0,
38887
39176
  // Reset
38888
39177
  cursor: 'pointer',
38889
- '&:focus': {
38890
- // Show that it's not an text input
38891
- backgroundColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)',
39178
+ '&:focus': _extends({}, theme.vars ? {
39179
+ backgroundColor: `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.05)`
39180
+ } : {
39181
+ backgroundColor: theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.05)' : 'rgba(255, 255, 255, 0.05)'
39182
+ }, {
38892
39183
  borderRadius: 0 // Reset Chrome style
38893
39184
 
38894
- },
39185
+ }),
38895
39186
  // Remove IE11 arrow
38896
39187
  '&::-ms-expand': {
38897
39188
  display: 'none'
@@ -38903,7 +39194,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38903
39194
  height: 'auto'
38904
39195
  },
38905
39196
  '&:not([multiple]) option, &:not([multiple]) optgroup': {
38906
- backgroundColor: theme.palette.background.paper
39197
+ backgroundColor: (theme.vars || theme).palette.background.paper
38907
39198
  },
38908
39199
  // Bump specificity to allow extending custom inputs
38909
39200
  '&&&': {
@@ -38916,9 +39207,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38916
39207
  paddingRight: 32
38917
39208
  }
38918
39209
  }, ownerState.variant === 'outlined' && {
38919
- borderRadius: theme.shape.borderRadius,
39210
+ borderRadius: (theme.vars || theme).shape.borderRadius,
38920
39211
  '&:focus': {
38921
- borderRadius: theme.shape.borderRadius // Reset the reset for Chrome style
39212
+ borderRadius: (theme.vars || theme).shape.borderRadius // Reset the reset for Chrome style
38922
39213
 
38923
39214
  },
38924
39215
  '&&&': {
@@ -38950,9 +39241,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
38950
39241
  // Center vertically, height is 1em
38951
39242
  pointerEvents: 'none',
38952
39243
  // Don't block pointer events on the select under the icon.
38953
- color: theme.palette.action.active,
39244
+ color: (theme.vars || theme).palette.action.active,
38954
39245
  [`&.${nativeSelectClasses$1.disabled}`]: {
38955
- color: theme.palette.action.disabled
39246
+ color: (theme.vars || theme).palette.action.disabled
38956
39247
  }
38957
39248
  }, ownerState.open && {
38958
39249
  transform: 'rotate(180deg)'
@@ -39338,7 +39629,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39338
39629
  style: PropTypes.object
39339
39630
  } ;
39340
39631
 
39341
- const _excluded$M = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "type"];
39632
+ const _excluded$M = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
39342
39633
 
39343
39634
  const useUtilityClasses$C = ownerState => {
39344
39635
  const {
@@ -39444,7 +39735,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39444
39735
  paddingRight: 0
39445
39736
  }));
39446
39737
  const OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function OutlinedInput(inProps, ref) {
39447
- var _React$Fragment;
39738
+ var _ref, _slots$root, _ref2, _slots$input, _React$Fragment;
39448
39739
 
39449
39740
  const props = useThemeProps({
39450
39741
  props: inProps,
@@ -39458,6 +39749,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39458
39749
  label,
39459
39750
  multiline = false,
39460
39751
  notched,
39752
+ slots = {},
39461
39753
  type = 'text'
39462
39754
  } = props,
39463
39755
  other = _objectWithoutPropertiesLoose(props, _excluded$M);
@@ -39483,11 +39775,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39483
39775
  type
39484
39776
  });
39485
39777
 
39778
+ const RootSlot = (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : OutlinedInputRoot;
39779
+ const InputSlot = (_ref2 = (_slots$input = slots.input) != null ? _slots$input : components.Input) != null ? _ref2 : OutlinedInputInput;
39486
39780
  return /*#__PURE__*/jsxRuntime_1(InputBase$1, _extends({
39487
- components: _extends({
39488
- Root: OutlinedInputRoot,
39489
- Input: OutlinedInputInput
39490
- }, components),
39781
+ slots: {
39782
+ root: RootSlot,
39783
+ input: InputSlot
39784
+ },
39491
39785
  renderSuffix: state => /*#__PURE__*/jsxRuntime_1(NotchedOutlineRoot, {
39492
39786
  ownerState: ownerState,
39493
39787
  className: classes.notchedOutline,
@@ -39543,8 +39837,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39543
39837
  .oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
39544
39838
 
39545
39839
  /**
39546
- * The components used for each slot inside the InputBase.
39547
- * Either a string to use a HTML element or a component.
39840
+ * The components used for each slot inside.
39841
+ *
39842
+ * This prop is an alias for the `slots` prop.
39843
+ * It's recommended to use the `slots` prop instead.
39844
+ *
39548
39845
  * @default {}
39549
39846
  */
39550
39847
  components: PropTypes.shape({
@@ -39672,6 +39969,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39672
39969
  */
39673
39970
  rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
39674
39971
 
39972
+ /**
39973
+ * The components used for each slot inside.
39974
+ *
39975
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
39976
+ *
39977
+ * @default {}
39978
+ */
39979
+ slots: PropTypes.shape({
39980
+ input: PropTypes.elementType,
39981
+ root: PropTypes.elementType
39982
+ }),
39983
+
39675
39984
  /**
39676
39985
  * Start `InputAdornment` for this component.
39677
39986
  */
@@ -39832,7 +40141,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
39832
40141
  d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
39833
40142
  }), 'NavigateNext');
39834
40143
 
39835
- const _excluded$K = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "type", "variant"];
40144
+ const _excluded$K = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"];
39836
40145
 
39837
40146
  const overridesResolver = (props, styles) => {
39838
40147
  const {
@@ -40031,17 +40340,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40031
40340
  className,
40032
40341
  color = 'standard',
40033
40342
  component,
40034
- components = {
40035
- first: FirstPageIcon,
40036
- last: LastPageIcon,
40037
- next: NavigateNextIcon,
40038
- previous: NavigateBeforeIcon
40039
- },
40343
+ components = {},
40040
40344
  disabled = false,
40041
40345
  page,
40042
40346
  selected = false,
40043
40347
  shape = 'circular',
40044
40348
  size = 'medium',
40349
+ slots = {},
40045
40350
  type = 'page',
40046
40351
  variant = 'text'
40047
40352
  } = props,
@@ -40060,15 +40365,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40060
40365
  const theme = useTheme();
40061
40366
  const classes = useUtilityClasses$B(ownerState);
40062
40367
  const normalizedIcons = theme.direction === 'rtl' ? {
40063
- previous: components.next || NavigateNextIcon,
40064
- next: components.previous || NavigateBeforeIcon,
40065
- last: components.first || FirstPageIcon,
40066
- first: components.last || LastPageIcon
40368
+ previous: slots.next || components.next || NavigateNextIcon,
40369
+ next: slots.previous || components.previous || NavigateBeforeIcon,
40370
+ last: slots.first || components.first || FirstPageIcon,
40371
+ first: slots.last || components.last || LastPageIcon
40067
40372
  } : {
40068
- previous: components.previous || NavigateBeforeIcon,
40069
- next: components.next || NavigateNextIcon,
40070
- first: components.first || FirstPageIcon,
40071
- last: components.last || LastPageIcon
40373
+ previous: slots.previous || components.previous || NavigateBeforeIcon,
40374
+ next: slots.next || components.next || NavigateNextIcon,
40375
+ first: slots.first || components.first || FirstPageIcon,
40376
+ last: slots.last || components.last || LastPageIcon
40072
40377
  };
40073
40378
  const Icon = normalizedIcons[type];
40074
40379
  return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/jsxRuntime_1(PaginationItemEllipsis, {
@@ -40130,13 +40435,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40130
40435
  component: PropTypes.elementType,
40131
40436
 
40132
40437
  /**
40133
- * The components used for first, last, next & previous item type
40134
- * @default {
40135
- * first: FirstPageIcon,
40136
- * last: LastPageIcon,
40137
- * next: NavigateNextIcon,
40138
- * previous: NavigateBeforeIcon,
40139
- * }
40438
+ * The components used for each slot inside.
40439
+ *
40440
+ * This prop is an alias for the `slots` prop.
40441
+ * It's recommended to use the `slots` prop instead.
40442
+ *
40443
+ * @default {}
40140
40444
  */
40141
40445
  components: PropTypes.shape({
40142
40446
  first: PropTypes.elementType,
@@ -40176,6 +40480,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40176
40480
  /* @typescript-to-proptypes-ignore */
40177
40481
  .oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
40178
40482
 
40483
+ /**
40484
+ * The components used for each slot inside.
40485
+ *
40486
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
40487
+ *
40488
+ * @default {}
40489
+ */
40490
+ slots: PropTypes.shape({
40491
+ first: PropTypes.elementType,
40492
+ last: PropTypes.elementType,
40493
+ next: PropTypes.elementType,
40494
+ previous: PropTypes.elementType
40495
+ }),
40496
+
40179
40497
  /**
40180
40498
  * The system prop that allows defining system overrides as well as additional CSS styles.
40181
40499
  */
@@ -40590,7 +40908,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40590
40908
  theme,
40591
40909
  ownerState
40592
40910
  }) => _extends({
40593
- color: (theme.vars || theme).palette.text.secondary,
40911
+ color: (theme.vars || theme).palette.text.secondary
40912
+ }, !ownerState.disableRipple && {
40594
40913
  '&:hover': {
40595
40914
  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
40915
  // Reset on touch devices, it doesn't add specificity
@@ -40825,22 +41144,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
40825
41144
  }
40826
41145
  }), []);
40827
41146
  const handleRef = useForkRef(ref, rootRef);
41147
+ const name = useId(nameProp);
41148
+ const contextValue = React__namespace.useMemo(() => ({
41149
+ name,
40828
41150
 
40829
- const handleChange = event => {
40830
- setValueState(event.target.value);
41151
+ onChange(event) {
41152
+ setValueState(event.target.value);
40831
41153
 
40832
- if (onChange) {
40833
- onChange(event, event.target.value);
40834
- }
40835
- };
41154
+ if (onChange) {
41155
+ onChange(event, event.target.value);
41156
+ }
41157
+ },
40836
41158
 
40837
- const name = useId(nameProp);
41159
+ value
41160
+ }), [name, onChange, setValueState, value]);
40838
41161
  return /*#__PURE__*/jsxRuntime_1(RadioGroupContext$1.Provider, {
40839
- value: {
40840
- name,
40841
- onChange: handleChange,
40842
- value
40843
- },
41162
+ value: contextValue,
40844
41163
  children: /*#__PURE__*/jsxRuntime_1(FormGroup$1, _extends({
40845
41164
  role: "radiogroup",
40846
41165
  ref: handleRef
@@ -42665,14 +42984,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42665
42984
  *
42666
42985
  * @param {SelectChangeEvent<T>} event The event source of the callback.
42667
42986
  * You can pull out the new value by accessing `event.target.value` (any).
42668
- * **Warning**: This is a generic event not a change event unless the change event is caused by browser autofill.
42987
+ * **Warning**: This is a generic event, not a change event, unless the change event is caused by browser autofill.
42669
42988
  * @param {object} [child] The react element that was selected when `native` is `false` (default).
42670
42989
  */
42671
42990
  onChange: PropTypes.func,
42672
42991
 
42673
42992
  /**
42674
42993
  * Callback fired when the component requests to be closed.
42675
- * Use in controlled mode (see open).
42994
+ * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select collapes).
42676
42995
  *
42677
42996
  * @param {object} event The event source of the callback.
42678
42997
  */
@@ -42680,7 +42999,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42680
42999
 
42681
43000
  /**
42682
43001
  * Callback fired when the component requests to be opened.
42683
- * Use in controlled mode (see open).
43002
+ * Use it in either controlled (see the `open` prop), or uncontrolled mode (to detect when the Select expands).
42684
43003
  *
42685
43004
  * @param {object} event The event source of the callback.
42686
43005
  */
@@ -43528,8 +43847,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43528
43847
  .oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
43529
43848
 
43530
43849
  /**
43531
- * The components used for each slot inside the Slider.
43532
- * Either a string to use a HTML element or a component.
43850
+ * The components used for each slot inside.
43851
+ *
43852
+ * This prop is an alias for the `slots` prop.
43853
+ * It's recommended to use the `slots` prop instead.
43854
+ *
43533
43855
  * @default {}
43534
43856
  */
43535
43857
  components: PropTypes.shape({
@@ -43544,7 +43866,13 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43544
43866
  }),
43545
43867
 
43546
43868
  /**
43547
- * @ignore
43869
+ * The extra props for the slot components.
43870
+ * You can override the existing props or add new ones.
43871
+ *
43872
+ * This prop is an alias for the `slotProps` prop.
43873
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
43874
+ *
43875
+ * @default {}
43548
43876
  */
43549
43877
  componentsProps: PropTypes.shape({
43550
43878
  input: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
@@ -45129,7 +45457,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45129
45457
  const tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);
45130
45458
  var tooltipClasses$1 = tooltipClasses;
45131
45459
 
45132
- const _excluded$w = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "title", "TransitionComponent", "TransitionProps"];
45460
+ const _excluded$w = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
45133
45461
 
45134
45462
  function round(value) {
45135
45463
  return Math.round(value * 1e5) / 1e5;
@@ -45320,7 +45648,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45320
45648
 
45321
45649
 
45322
45650
  const Tooltip = /*#__PURE__*/React__namespace.forwardRef(function Tooltip(inProps, ref) {
45323
- var _components$Popper, _ref, _components$Transitio, _components$Tooltip, _components$Arrow, _componentsProps$popp;
45651
+ var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;
45324
45652
 
45325
45653
  const props = useThemeProps({
45326
45654
  props: inProps,
@@ -45350,6 +45678,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45350
45678
  placement = 'bottom',
45351
45679
  PopperComponent: PopperComponentProp,
45352
45680
  PopperProps = {},
45681
+ slotProps = {},
45682
+ slots = {},
45353
45683
  title,
45354
45684
  TransitionComponent: TransitionComponentProp = Grow$1,
45355
45685
  TransitionProps
@@ -45568,7 +45898,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45568
45898
  }, [handleClose, open]);
45569
45899
  const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref); // There is no point in displaying an empty tooltip.
45570
45900
 
45571
- if (typeof title !== 'number' && !title) {
45901
+ if (!title && title !== 0) {
45572
45902
  open = false;
45573
45903
  }
45574
45904
 
@@ -45688,14 +46018,20 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45688
46018
  });
45689
46019
 
45690
46020
  const classes = useUtilityClasses$q(ownerState);
45691
- const PopperComponent = (_components$Popper = components.Popper) != null ? _components$Popper : TooltipPopper;
45692
- const TransitionComponent = (_ref = (_components$Transitio = components.Transition) != null ? _components$Transitio : TransitionComponentProp) != null ? _ref : Grow$1;
45693
- const TooltipComponent = (_components$Tooltip = components.Tooltip) != null ? _components$Tooltip : TooltipTooltip;
45694
- const ArrowComponent = (_components$Arrow = components.Arrow) != null ? _components$Arrow : TooltipArrow;
45695
- const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, componentsProps.popper), ownerState);
45696
- const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, componentsProps.transition), ownerState);
45697
- const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, componentsProps.tooltip), ownerState);
45698
- const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, componentsProps.arrow), ownerState);
46021
+ const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;
46022
+ const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow$1;
46023
+ const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;
46024
+ const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;
46025
+ const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {
46026
+ className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)
46027
+ }), ownerState);
46028
+ const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);
46029
+ const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {
46030
+ className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)
46031
+ }), ownerState);
46032
+ const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {
46033
+ className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)
46034
+ }), ownerState);
45699
46035
  return /*#__PURE__*/jsxRuntime_2(React__namespace.Fragment, {
45700
46036
  children: [/*#__PURE__*/React__namespace.cloneElement(children, childrenProps), /*#__PURE__*/jsxRuntime_1(PopperComponent, _extends({
45701
46037
  as: PopperComponentProp != null ? PopperComponentProp : Popper$1,
@@ -45715,25 +46051,19 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45715
46051
  id: id,
45716
46052
  transition: true
45717
46053
  }, interactiveWrapperListeners, popperProps, {
45718
- className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_componentsProps$popp = componentsProps.popper) == null ? void 0 : _componentsProps$popp.className),
45719
46054
  popperOptions: popperOptions,
45720
46055
  children: ({
45721
46056
  TransitionProps: TransitionPropsInner
45722
- }) => {
45723
- var _componentsProps$tool, _componentsProps$arro;
45724
-
45725
- return /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
45726
- timeout: theme.transitions.duration.shorter
45727
- }, TransitionPropsInner, transitionProps, {
45728
- children: /*#__PURE__*/jsxRuntime_2(TooltipComponent, _extends({}, tooltipProps, {
45729
- className: clsx(classes.tooltip, (_componentsProps$tool = componentsProps.tooltip) == null ? void 0 : _componentsProps$tool.className),
45730
- children: [title, arrow ? /*#__PURE__*/jsxRuntime_1(ArrowComponent, _extends({}, tooltipArrowProps, {
45731
- className: clsx(classes.arrow, (_componentsProps$arro = componentsProps.arrow) == null ? void 0 : _componentsProps$arro.className),
45732
- ref: setArrowRef
45733
- })) : null]
45734
- }))
45735
- }));
45736
- }
46057
+ }) => /*#__PURE__*/jsxRuntime_1(TransitionComponent, _extends({
46058
+ timeout: theme.transitions.duration.shorter
46059
+ }, TransitionPropsInner, transitionProps, {
46060
+ "data-foo": "bar",
46061
+ children: /*#__PURE__*/jsxRuntime_2(TooltipComponent, _extends({}, tooltipProps, {
46062
+ children: [title, arrow ? /*#__PURE__*/jsxRuntime_1(ArrowComponent, _extends({}, tooltipArrowProps, {
46063
+ ref: setArrowRef
46064
+ })) : null]
46065
+ }))
46066
+ }))
45737
46067
  }))]
45738
46068
  });
45739
46069
  });
@@ -45767,8 +46097,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45767
46097
  className: PropTypes.string,
45768
46098
 
45769
46099
  /**
45770
- * The components used for each slot inside the Tooltip.
45771
- * Either a string to use a HTML element or a component.
46100
+ * The components used for each slot inside.
46101
+ *
46102
+ * This prop is an alias for the `slots` prop.
46103
+ * It's recommended to use the `slots` prop instead.
46104
+ *
45772
46105
  * @default {}
45773
46106
  */
45774
46107
  components: PropTypes.shape({
@@ -45779,9 +46112,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45779
46112
  }),
45780
46113
 
45781
46114
  /**
45782
- * The props used for each slot inside the Tooltip.
45783
- * Note that `componentsProps.popper` prop values win over `PopperProps`
45784
- * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
46115
+ * The extra props for the slot components.
46116
+ * You can override the existing props or add new ones.
46117
+ *
46118
+ * This prop is an alias for the `slotProps` prop.
46119
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
46120
+ *
45785
46121
  * @default {}
45786
46122
  */
45787
46123
  componentsProps: PropTypes.shape({
@@ -45904,6 +46240,35 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45904
46240
  */
45905
46241
  PopperProps: PropTypes.object,
45906
46242
 
46243
+ /**
46244
+ * The extra props for the slot components.
46245
+ * You can override the existing props or add new ones.
46246
+ *
46247
+ * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
46248
+ *
46249
+ * @default {}
46250
+ */
46251
+ slotProps: PropTypes.shape({
46252
+ arrow: PropTypes.object,
46253
+ popper: PropTypes.object,
46254
+ tooltip: PropTypes.object,
46255
+ transition: PropTypes.object
46256
+ }),
46257
+
46258
+ /**
46259
+ * The components used for each slot inside.
46260
+ *
46261
+ * This prop is an alias for the `components` prop, which will be deprecated in the future.
46262
+ *
46263
+ * @default {}
46264
+ */
46265
+ slots: PropTypes.shape({
46266
+ arrow: PropTypes.elementType,
46267
+ popper: PropTypes.elementType,
46268
+ tooltip: PropTypes.elementType,
46269
+ transition: PropTypes.elementType
46270
+ }),
46271
+
45907
46272
  /**
45908
46273
  * The system prop that allows defining system overrides as well as additional CSS styles.
45909
46274
  */
@@ -46913,7 +47278,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
46913
47278
  const stepLabelClasses = generateUtilityClasses('MuiStepLabel', ['root', 'horizontal', 'vertical', 'label', 'active', 'completed', 'error', 'disabled', 'iconContainer', 'alternativeLabel', 'labelContainer']);
46914
47279
  var stepLabelClasses$1 = stepLabelClasses;
46915
47280
 
46916
- const _excluded$q = ["children", "className", "componentsProps", "error", "icon", "optional", "StepIconComponent", "StepIconProps"];
47281
+ const _excluded$q = ["children", "className", "componentsProps", "error", "icon", "optional", "slotProps", "StepIconComponent", "StepIconProps"];
46917
47282
 
46918
47283
  const useUtilityClasses$l = ownerState => {
46919
47284
  const {
@@ -47011,6 +47376,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47011
47376
  }
47012
47377
  }));
47013
47378
  const StepLabel = /*#__PURE__*/React__namespace.forwardRef(function StepLabel(inProps, ref) {
47379
+ var _slotProps$label;
47380
+
47014
47381
  const props = useThemeProps({
47015
47382
  props: inProps,
47016
47383
  name: 'MuiStepLabel'
@@ -47023,6 +47390,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47023
47390
  error = false,
47024
47391
  icon: iconProp,
47025
47392
  optional,
47393
+ slotProps = {},
47026
47394
  StepIconComponent: StepIconComponentProp,
47027
47395
  StepIconProps
47028
47396
  } = props,
@@ -47055,6 +47423,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47055
47423
  });
47056
47424
 
47057
47425
  const classes = useUtilityClasses$l(ownerState);
47426
+ const labelSlotProps = (_slotProps$label = slotProps.label) != null ? _slotProps$label : componentsProps.label;
47058
47427
  return /*#__PURE__*/jsxRuntime_2(StepLabelRoot, _extends({
47059
47428
  className: clsx(classes.root, className),
47060
47429
  ref: ref,
@@ -47073,9 +47442,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47073
47442
  className: classes.labelContainer,
47074
47443
  ownerState: ownerState,
47075
47444
  children: [children ? /*#__PURE__*/jsxRuntime_1(StepLabelLabel, _extends({
47076
- className: classes.label,
47077
47445
  ownerState: ownerState
47078
- }, componentsProps.label, {
47446
+ }, labelSlotProps, {
47447
+ className: clsx(classes.label, labelSlotProps == null ? void 0 : labelSlotProps.className),
47079
47448
  children: children
47080
47449
  })) : null, optional]
47081
47450
  })]
@@ -47128,6 +47497,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
47128
47497
  */
47129
47498
  optional: PropTypes.node,
47130
47499
 
47500
+ /**
47501
+ * The props used for each slot inside.
47502
+ * @default {}
47503
+ */
47504
+ slotProps: PropTypes.shape({
47505
+ label: PropTypes.object
47506
+ }),
47507
+
47131
47508
  /**
47132
47509
  * The component to render in place of the [`StepIcon`](/material-ui/api/step-icon/).
47133
47510
  */
@@ -48014,7 +48391,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48014
48391
 
48015
48392
  claimedSwipeInstance = null;
48016
48393
  touchDetected.current = false;
48017
- setMaybeSwiping(false); // The swipe wasn't started.
48394
+ ReactDOM.flushSync(() => {
48395
+ setMaybeSwiping(false);
48396
+ }); // The swipe wasn't started.
48018
48397
 
48019
48398
  if (!swipeInstance.current.isSwiping) {
48020
48399
  swipeInstance.current.isSwiping = null;
@@ -48216,7 +48595,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48216
48595
  claimedSwipeInstance = null;
48217
48596
  swipeInstance.current.startX = currentX;
48218
48597
  swipeInstance.current.startY = currentY;
48219
- setMaybeSwiping(true);
48598
+ ReactDOM.flushSync(() => {
48599
+ setMaybeSwiping(true);
48600
+ });
48220
48601
 
48221
48602
  if (!open && paperRef.current) {
48222
48603
  // The ref may be null when a parent component updates while swiping.
@@ -48272,6 +48653,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
48272
48653
  BackdropProps: _extends({}, BackdropProps, {
48273
48654
  ref: backdropRef
48274
48655
  })
48656
+ }, variant === 'temporary' && {
48657
+ keepMounted: true
48275
48658
  }, ModalPropsProp),
48276
48659
  hideBackdrop: hideBackdrop,
48277
48660
  PaperProps: _extends({}, PaperProps, {