@mui/material 5.13.4 → 5.13.6

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 (187) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +58 -58
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/TouchRipple.js +4 -2
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +129 -4
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +18 -18
  31. package/Chip/chipClasses.d.ts +96 -96
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +2 -2
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +42 -42
  46. package/FormControl/FormControlContext.d.ts +17 -17
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControl/useFormControl.d.ts +2 -2
  49. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  50. package/FormGroup/formGroupClasses.d.ts +12 -12
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +34 -34
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/inputClasses.d.ts +38 -38
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +46 -46
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/Modal/Modal.js +8 -0
  78. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  79. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  80. package/Pagination/paginationClasses.d.ts +14 -14
  81. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  82. package/Paper/paperClasses.d.ts +39 -39
  83. package/Popover/Popover.d.ts +13 -2
  84. package/Popover/Popover.js +3 -2
  85. package/Popover/popoverClasses.d.ts +10 -10
  86. package/Popper/Popper.d.ts +65 -65
  87. package/README.md +2 -3
  88. package/Radio/radioClasses.d.ts +16 -16
  89. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  90. package/RadioGroup/useRadioGroup.d.ts +4 -4
  91. package/Rating/ratingClasses.d.ts +40 -40
  92. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  93. package/Select/selectClasses.d.ts +32 -32
  94. package/Skeleton/skeletonClasses.d.ts +26 -26
  95. package/Slider/SliderValueLabel.d.ts +15 -15
  96. package/Slider/SliderValueLabel.types.d.ts +24 -24
  97. package/Slider/sliderClasses.d.ts +58 -58
  98. package/Snackbar/snackbarClasses.d.ts +20 -20
  99. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  100. package/SpeedDial/speedDialClasses.d.ts +22 -22
  101. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  102. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  103. package/Stack/stackClasses.d.ts +6 -6
  104. package/Step/StepContext.d.ts +20 -20
  105. package/Step/stepClasses.d.ts +16 -16
  106. package/StepButton/stepButtonClasses.d.ts +14 -14
  107. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  108. package/StepContent/stepContentClasses.d.ts +12 -12
  109. package/StepIcon/stepIconClasses.d.ts +16 -16
  110. package/StepLabel/stepLabelClasses.d.ts +28 -28
  111. package/Stepper/StepperContext.d.ts +18 -18
  112. package/Stepper/stepperClasses.d.ts +14 -14
  113. package/SvgIcon/SvgIcon.js +8 -4
  114. package/SvgIcon/svgIconClasses.d.ts +26 -26
  115. package/Switch/switchClasses.d.ts +32 -32
  116. package/Tab/tabClasses.d.ts +26 -26
  117. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  118. package/Table/tableClasses.d.ts +10 -10
  119. package/TableBody/tableBodyClasses.d.ts +8 -8
  120. package/TableCell/tableCellClasses.d.ts +32 -32
  121. package/TableContainer/tableContainerClasses.d.ts +8 -8
  122. package/TableFooter/tableFooterClasses.d.ts +8 -8
  123. package/TableHead/tableHeadClasses.d.ts +8 -8
  124. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  125. package/TableRow/tableRowClasses.d.ts +16 -16
  126. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  127. package/Tabs/tabsClasses.d.ts +32 -32
  128. package/TextField/textFieldClasses.d.ts +8 -8
  129. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  130. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  131. package/Toolbar/toolbarClasses.d.ts +14 -14
  132. package/Tooltip/Tooltip.d.ts +2 -2
  133. package/Tooltip/Tooltip.js +6 -1
  134. package/Tooltip/tooltipClasses.d.ts +30 -30
  135. package/Typography/typographyClasses.d.ts +50 -50
  136. package/Unstable_Grid2/Grid2.d.ts +4 -4
  137. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  138. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  139. package/Unstable_Grid2/index.d.ts +4 -4
  140. package/className/index.d.ts +1 -1
  141. package/darkScrollbar/index.d.ts +28 -28
  142. package/generateUtilityClass/index.d.ts +2 -2
  143. package/generateUtilityClasses/index.d.ts +1 -1
  144. package/index.js +1 -1
  145. package/internal/switchBaseClasses.d.ts +12 -12
  146. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  147. package/legacy/ButtonBase/TouchRipple.js +4 -2
  148. package/legacy/Modal/Modal.js +8 -0
  149. package/legacy/Popover/Popover.js +3 -2
  150. package/legacy/SvgIcon/SvgIcon.js +8 -4
  151. package/legacy/Tooltip/Tooltip.js +5 -2
  152. package/legacy/index.js +1 -1
  153. package/locale/index.d.ts +80 -80
  154. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  155. package/modern/ButtonBase/TouchRipple.js +4 -2
  156. package/modern/Modal/Modal.js +8 -0
  157. package/modern/Popover/Popover.js +3 -2
  158. package/modern/SvgIcon/SvgIcon.js +8 -4
  159. package/modern/Tooltip/Tooltip.js +6 -1
  160. package/modern/index.js +1 -1
  161. package/node/BottomNavigation/BottomNavigation.js +0 -0
  162. package/node/ButtonBase/TouchRipple.js +4 -2
  163. package/node/Modal/Modal.js +8 -0
  164. package/node/Popover/Popover.js +3 -2
  165. package/node/SvgIcon/SvgIcon.js +8 -4
  166. package/node/Tooltip/Tooltip.js +6 -1
  167. package/node/index.js +1 -1
  168. package/package.json +5 -5
  169. package/styles/CssVarsProvider.d.ts +20 -20
  170. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  171. package/styles/experimental_extendTheme.d.ts +1 -0
  172. package/styles/getOverlayAlpha.d.ts +2 -2
  173. package/styles/identifier.d.ts +2 -2
  174. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  175. package/transitions/index.d.ts +1 -1
  176. package/transitions/transition.d.ts +13 -13
  177. package/transitions/utils.d.ts +23 -23
  178. package/types/OverridableComponentAugmentation.d.ts +31 -31
  179. package/umd/material-ui.development.js +109 -69
  180. package/umd/material-ui.production.min.js +4 -4
  181. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  182. package/useTouchRipple/index.d.ts +1 -1
  183. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  184. package/utils/getScrollbarSize.d.ts +2 -2
  185. package/utils/ownerDocument.d.ts +2 -2
  186. package/utils/ownerWindow.d.ts +2 -2
  187. package/utils/setRef.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.13.4
2
+ * @mui/material v5.13.6
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1968,6 +1968,7 @@
1968
1968
  let timeout;
1969
1969
  function debounced(...args) {
1970
1970
  const later = () => {
1971
+ // @ts-ignore
1971
1972
  func.apply(this, args);
1972
1973
  };
1973
1974
  clearTimeout(timeout);
@@ -4270,7 +4271,7 @@
4270
4271
 
4271
4272
  var pkg = {
4272
4273
  name: "@emotion/react",
4273
- version: "11.11.0",
4274
+ version: "11.11.1",
4274
4275
  main: "dist/emotion-react.cjs.js",
4275
4276
  module: "dist/emotion-react.esm.js",
4276
4277
  browser: {
@@ -8555,6 +8556,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8555
8556
  function createCssVarsProvider(options) {
8556
8557
  const {
8557
8558
  themeId,
8559
+ /**
8560
+ * This `theme` object needs to follow a certain structure to
8561
+ * be used correctly by the finel `CssVarsProvider`. It should have a
8562
+ * `colorSchemes` key with the light and dark (and any other) palette.
8563
+ * It should also ideally have a vars object created using `prepareCssVars`.
8564
+ */
8558
8565
  theme: defaultTheme = {},
8559
8566
  attribute: defaultAttribute = DEFAULT_ATTRIBUTE,
8560
8567
  modeStorageKey: defaultModeStorageKey = DEFAULT_MODE_STORAGE_KEY,
@@ -9221,34 +9228,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9221
9228
  return Container;
9222
9229
  }
9223
9230
 
9224
- function appendLevel(level) {
9225
- if (!level) {
9226
- return '';
9227
- }
9228
- return `Level${level}`;
9229
- }
9230
- function isNestedContainer(ownerState) {
9231
- return ownerState.unstable_level > 0 && ownerState.container;
9232
- }
9233
- function createGetSelfSpacing(ownerState) {
9234
- return function getSelfSpacing(axis) {
9235
- return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
9236
- };
9237
- }
9238
- function createGetParentSpacing(ownerState) {
9239
- return function getParentSpacing(axis) {
9240
- if (ownerState.unstable_level === 0) {
9241
- return `var(--Grid-${axis}Spacing)`;
9242
- }
9243
- return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
9244
- };
9245
- }
9246
- function getParentColumns(ownerState) {
9247
- if (ownerState.unstable_level === 0) {
9248
- return `var(--Grid-columns)`;
9249
- }
9250
- return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
9251
- }
9252
9231
  const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));
9253
9232
  const traverseBreakpoints = (breakpoints, responsive, iterator) => {
9254
9233
  const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.
@@ -9291,6 +9270,35 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9291
9270
  }, responsive);
9292
9271
  }
9293
9272
  };
9273
+
9274
+ function appendLevel(level) {
9275
+ if (!level) {
9276
+ return '';
9277
+ }
9278
+ return `Level${level}`;
9279
+ }
9280
+ function isNestedContainer(ownerState) {
9281
+ return ownerState.unstable_level > 0 && ownerState.container;
9282
+ }
9283
+ function createGetSelfSpacing(ownerState) {
9284
+ return function getSelfSpacing(axis) {
9285
+ return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level)})`;
9286
+ };
9287
+ }
9288
+ function createGetParentSpacing(ownerState) {
9289
+ return function getParentSpacing(axis) {
9290
+ if (ownerState.unstable_level === 0) {
9291
+ return `var(--Grid-${axis}Spacing)`;
9292
+ }
9293
+ return `var(--Grid-${axis}Spacing${appendLevel(ownerState.unstable_level - 1)})`;
9294
+ };
9295
+ }
9296
+ function getParentColumns(ownerState) {
9297
+ if (ownerState.unstable_level === 0) {
9298
+ return `var(--Grid-columns)`;
9299
+ }
9300
+ return `var(--Grid-columns${appendLevel(ownerState.unstable_level - 1)})`;
9301
+ }
9294
9302
  const generateGridSizeStyles = ({
9295
9303
  theme,
9296
9304
  ownerState
@@ -11289,11 +11297,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11289
11297
  *
11290
11298
  * Demos:
11291
11299
  *
11292
- * - [Badge](https://mui.com/base/react-badge/#hook)
11300
+ * - [Badge](https://mui.com/base-ui/react-badge/#hook)
11293
11301
  *
11294
11302
  * API:
11295
11303
  *
11296
- * - [useBadge API](https://mui.com/base/react-badge/hooks-api/#use-badge)
11304
+ * - [useBadge API](https://mui.com/base-ui/react-badge/hooks-api/#use-badge)
11297
11305
  */
11298
11306
  function useBadge(parameters) {
11299
11307
  const {
@@ -11335,11 +11343,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11335
11343
  *
11336
11344
  * Demos:
11337
11345
  *
11338
- * - [Click-Away Listener](https://mui.com/base/react-click-away-listener/)
11346
+ * - [Click-Away Listener](https://mui.com/base-ui/react-click-away-listener/)
11339
11347
  *
11340
11348
  * API:
11341
11349
  *
11342
- * - [ClickAwayListener API](https://mui.com/base/react-click-away-listener/components-api/#click-away-listener)
11350
+ * - [ClickAwayListener API](https://mui.com/base-ui/react-click-away-listener/components-api/#click-away-listener)
11343
11351
  */
11344
11352
  function ClickAwayListener(props) {
11345
11353
  const {
@@ -11563,11 +11571,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
11563
11571
  *
11564
11572
  * Demos:
11565
11573
  *
11566
- * - [Focus Trap](https://mui.com/base/react-focus-trap/)
11574
+ * - [Focus Trap](https://mui.com/base-ui/react-focus-trap/)
11567
11575
  *
11568
11576
  * API:
11569
11577
  *
11570
- * - [FocusTrap API](https://mui.com/base/react-focus-trap/components-api/#focus-trap)
11578
+ * - [FocusTrap API](https://mui.com/base-ui/react-focus-trap/components-api/#focus-trap)
11571
11579
  */
11572
11580
  function FocusTrap(props) {
11573
11581
  const {
@@ -13615,11 +13623,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13615
13623
  *
13616
13624
  * Demos:
13617
13625
  *
13618
- * - [Portal](https://mui.com/base/react-portal/)
13626
+ * - [Portal](https://mui.com/base-ui/react-portal/)
13619
13627
  *
13620
13628
  * API:
13621
13629
  *
13622
- * - [Portal API](https://mui.com/base/react-portal/components-api/#portal)
13630
+ * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)
13623
13631
  */
13624
13632
  const Portal = /*#__PURE__*/React__namespace.forwardRef(function Portal(props, forwardedRef) {
13625
13633
  const {
@@ -13854,11 +13862,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
13854
13862
  *
13855
13863
  * Demos:
13856
13864
  *
13857
- * - [Popper](https://mui.com/base/react-popper/)
13865
+ * - [Popper](https://mui.com/base-ui/react-popper/)
13858
13866
  *
13859
13867
  * API:
13860
13868
  *
13861
- * - [Popper API](https://mui.com/base/react-popper/components-api/#popper)
13869
+ * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)
13862
13870
  */
13863
13871
  const Popper$2 = /*#__PURE__*/React__namespace.forwardRef(function Popper(props, forwardedRef) {
13864
13872
  const {
@@ -14312,11 +14320,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14312
14320
  *
14313
14321
  * Demos:
14314
14322
  *
14315
- * - [Modal](https://mui.com/base/react-modal/)
14323
+ * - [Modal](https://mui.com/base-ui/react-modal/)
14316
14324
  *
14317
14325
  * API:
14318
14326
  *
14319
- * - [Modal API](https://mui.com/base/react-modal/components-api/#modal)
14327
+ * - [Modal API](https://mui.com/base-ui/react-modal/components-api/#modal)
14320
14328
  */
14321
14329
  const Modal$2 = /*#__PURE__*/React__namespace.forwardRef(function Modal(props, forwardedRef) {
14322
14330
  var _props$ariaHidden, _slots$root;
@@ -14609,6 +14617,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14609
14617
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
14610
14618
  */
14611
14619
  onClose: PropTypes.func,
14620
+ /**
14621
+ * A function called when a transition enters.
14622
+ */
14623
+ onTransitionEnter: PropTypes.func,
14624
+ /**
14625
+ * A function called when a transition has exited.
14626
+ */
14627
+ onTransitionExited: PropTypes.func,
14612
14628
  /**
14613
14629
  * If `true`, the component is shown.
14614
14630
  */
@@ -14645,11 +14661,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14645
14661
  *
14646
14662
  * Demos:
14647
14663
  *
14648
- * - [No SSR](https://mui.com/base/react-no-ssr/)
14664
+ * - [No SSR](https://mui.com/base-ui/react-no-ssr/)
14649
14665
  *
14650
14666
  * API:
14651
14667
  *
14652
- * - [NoSsr API](https://mui.com/base/react-no-ssr/components-api/#no-ssr)
14668
+ * - [NoSsr API](https://mui.com/base-ui/react-no-ssr/components-api/#no-ssr)
14653
14669
  */
14654
14670
  function NoSsr(props) {
14655
14671
  const {
@@ -14855,11 +14871,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14855
14871
  *
14856
14872
  * Demos:
14857
14873
  *
14858
- * - [Slider](https://mui.com/base/react-slider/#hook)
14874
+ * - [Slider](https://mui.com/base-ui/react-slider/#hook)
14859
14875
  *
14860
14876
  * API:
14861
14877
  *
14862
- * - [useSlider API](https://mui.com/base/react-slider/hooks-api/#use-slider)
14878
+ * - [useSlider API](https://mui.com/base-ui/react-slider/hooks-api/#use-slider)
14863
14879
  */
14864
14880
  function useSlider(parameters) {
14865
14881
  const {
@@ -14973,13 +14989,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
14973
14989
  // @ts-ignore
14974
14990
  let newValue = event.target.valueAsNumber;
14975
14991
  if (marks && step == null) {
14976
- newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
14992
+ const maxMarksValue = marksValues[marksValues.length - 1];
14993
+ if (newValue > maxMarksValue) {
14994
+ newValue = maxMarksValue;
14995
+ } else if (newValue < marksValues[0]) {
14996
+ newValue = marksValues[0];
14997
+ } else {
14998
+ newValue = newValue < value ? marksValues[marksIndex - 1] : marksValues[marksIndex + 1];
14999
+ }
14977
15000
  }
14978
15001
  newValue = clamp$2(newValue, min, max);
14979
- if (marks && step == null) {
14980
- const currentMarkIndex = marksValues.indexOf(values[index]);
14981
- newValue = newValue < values[index] ? marksValues[currentMarkIndex - 1] : marksValues[currentMarkIndex + 1];
14982
- }
14983
15002
  if (range) {
14984
15003
  // Bound the new value to the thumb's neighbours.
14985
15004
  if (disableSwap) {
@@ -15285,7 +15304,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15285
15304
  type: 'range',
15286
15305
  min: parameters.min,
15287
15306
  max: parameters.max,
15288
- step: (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
15307
+ step: parameters.step === null && parameters.marks ? 'any' : (_parameters$step = parameters.step) != null ? _parameters$step : undefined,
15289
15308
  disabled
15290
15309
  }, mergedEventHandlers, {
15291
15310
  style: _extends({}, visuallyHidden$1, {
@@ -15320,11 +15339,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15320
15339
  *
15321
15340
  * Demos:
15322
15341
  *
15323
- * - [Snackbar](https://mui.com/base/react-snackbar/#hook)
15342
+ * - [Snackbar](https://mui.com/base-ui/react-snackbar/#hook)
15324
15343
  *
15325
15344
  * API:
15326
15345
  *
15327
- * - [useSnackbar API](https://mui.com/base/react-snackbar/hooks-api/#use-snackbar)
15346
+ * - [useSnackbar API](https://mui.com/base-ui/react-snackbar/hooks-api/#use-snackbar)
15328
15347
  */
15329
15348
  function useSnackbar(parameters) {
15330
15349
  const {
@@ -15473,12 +15492,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15473
15492
  *
15474
15493
  * Demos:
15475
15494
  *
15476
- * - [Textarea Autosize](https://mui.com/base/react-textarea-autosize/)
15495
+ * - [Textarea Autosize](https://mui.com/base-ui/react-textarea-autosize/)
15477
15496
  * - [Textarea Autosize](https://mui.com/material-ui/react-textarea-autosize/)
15478
15497
  *
15479
15498
  * API:
15480
15499
  *
15481
- * - [TextareaAutosize API](https://mui.com/base/react-textarea-autosize/components-api/#textarea-autosize)
15500
+ * - [TextareaAutosize API](https://mui.com/base-ui/react-textarea-autosize/components-api/#textarea-autosize)
15482
15501
  */
15483
15502
  const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function TextareaAutosize(props, forwardedRef) {
15484
15503
  const {
@@ -15881,7 +15900,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
15881
15900
  }) : [];
15882
15901
  const previousProps = usePreviousProps$1({
15883
15902
  filteredOptions,
15884
- value
15903
+ value,
15904
+ inputValue
15885
15905
  });
15886
15906
  React__namespace.useEffect(() => {
15887
15907
  const valueChange = value !== previousProps.value;
@@ -16074,7 +16094,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16074
16094
  const label2 = value2 ? getOptionLabel(value2) : '';
16075
16095
  return label1 === label2;
16076
16096
  };
16077
- if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
16097
+ if (highlightedIndexRef.current !== -1 && previousProps.filteredOptions && previousProps.filteredOptions.length !== filteredOptions.length && previousProps.inputValue === inputValue && (multiple ? value.length === previousProps.value.length && previousProps.value.every((val, i) => getOptionLabel(value[i]) === getOptionLabel(val)) : isSameValue(previousProps.value, value))) {
16078
16098
  const previousHighlightedOption = previousProps.filteredOptions[highlightedIndexRef.current];
16079
16099
  if (previousHighlightedOption) {
16080
16100
  const previousHighlightedOptionExists = filteredOptions.some(option => {
@@ -16092,8 +16112,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16092
16112
  return;
16093
16113
  }
16094
16114
 
16095
- // Check if the previously highlighted option still exists in the updated filtered options list and if the value hasn't changed
16096
- // If it exists and the value hasn't changed, return, otherwise continue execution
16115
+ // Check if the previously highlighted option still exists in the updated filtered options list and if the value and inputValue haven't changed
16116
+ // If it exists and the value and the inputValue haven't changed, return, otherwise continue execution
16097
16117
  if (checkHighlightedOptionExists()) {
16098
16118
  return;
16099
16119
  }
@@ -16710,7 +16730,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16710
16730
  width: '1em',
16711
16731
  height: '1em',
16712
16732
  display: 'inline-block',
16713
- fill: 'currentColor',
16733
+ // the <svg> will define the property that has `currentColor`
16734
+ // e.g. heroicons uses fill="none" and stroke="currentColor"
16735
+ fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
16714
16736
  flexShrink: 0,
16715
16737
  transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
16716
16738
  duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
@@ -16746,13 +16768,15 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16746
16768
  viewBox = '0 0 24 24'
16747
16769
  } = props,
16748
16770
  other = _objectWithoutPropertiesLoose(props, _excluded$23);
16771
+ const hasSvgAsChild = /*#__PURE__*/React__namespace.isValidElement(children) && children.type === 'svg';
16749
16772
  const ownerState = _extends({}, props, {
16750
16773
  color,
16751
16774
  component,
16752
16775
  fontSize,
16753
16776
  instanceFontSize: inProps.fontSize,
16754
16777
  inheritViewBox,
16755
- viewBox
16778
+ viewBox,
16779
+ hasSvgAsChild
16756
16780
  });
16757
16781
  const more = {};
16758
16782
  if (!inheritViewBox) {
@@ -16767,9 +16791,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
16767
16791
  "aria-hidden": titleAccess ? undefined : true,
16768
16792
  role: titleAccess ? 'img' : undefined,
16769
16793
  ref: ref
16770
- }, more, other, {
16794
+ }, more, other, hasSvgAsChild && children.props, {
16771
16795
  ownerState: ownerState,
16772
- children: [children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
16796
+ children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/jsxRuntime_1("title", {
16773
16797
  children: titleAccess
16774
16798
  }) : null]
16775
16799
  }));
@@ -19022,14 +19046,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
19022
19046
  const ignoringMouseDown = React__namespace.useRef(false);
19023
19047
  // We use a timer in order to only show the ripples for touch "click" like events.
19024
19048
  // We don't want to display the ripple for touch scroll events.
19025
- const startTimer = React__namespace.useRef(null);
19049
+ const startTimer = React__namespace.useRef(0);
19026
19050
 
19027
19051
  // This is the hook called once the previous timeout is ready.
19028
19052
  const startTimerCommit = React__namespace.useRef(null);
19029
19053
  const container = React__namespace.useRef(null);
19030
19054
  React__namespace.useEffect(() => {
19031
19055
  return () => {
19032
- clearTimeout(startTimer.current);
19056
+ if (startTimer.current) {
19057
+ clearTimeout(startTimer.current);
19058
+ }
19033
19059
  };
19034
19060
  }, []);
19035
19061
  const startCommit = React__namespace.useCallback(params => {
@@ -27752,6 +27778,14 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27752
27778
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
27753
27779
  */
27754
27780
  onClose: PropTypes.func,
27781
+ /**
27782
+ * A function called when a transition enters.
27783
+ */
27784
+ onTransitionEnter: PropTypes.func,
27785
+ /**
27786
+ * A function called when a transition has exited.
27787
+ */
27788
+ onTransitionExited: PropTypes.func,
27755
27789
  /**
27756
27790
  * If `true`, the component is shown.
27757
27791
  */
@@ -36129,7 +36163,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36129
36163
  */
36130
36164
  action: refType$1,
36131
36165
  /**
36132
- * An HTML element, or a function that returns one.
36166
+ * An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),
36167
+ * or a function that returns either.
36133
36168
  * It's used to set the position of the popover.
36134
36169
  */
36135
36170
  anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.func]), props => {
@@ -36141,7 +36176,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
36141
36176
  return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', "Make sure the element is present in the document or that it's not display none."].join('\n'));
36142
36177
  }
36143
36178
  } else {
36144
- return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
36179
+ return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', `It should be an Element or PopoverVirtualElement instance but it's \`${resolvedAnchorEl}\` instead.`].join('\n'));
36145
36180
  }
36146
36181
  }
36147
36182
  return null;
@@ -43004,7 +43039,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43004
43039
  });
43005
43040
  const {
43006
43041
  arrow = false,
43007
- children,
43042
+ children: childrenProp,
43008
43043
  components = {},
43009
43044
  componentsProps = {},
43010
43045
  describeChild = false,
@@ -43032,6 +43067,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43032
43067
  TransitionProps
43033
43068
  } = props,
43034
43069
  other = _objectWithoutPropertiesLoose(props, _excluded$v);
43070
+
43071
+ // to prevent runtime errors, developers will need to provide a child as a React element anyway.
43072
+ const children = /*#__PURE__*/React__namespace.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntime_1("span", {
43073
+ children: childrenProp
43074
+ });
43035
43075
  const theme = useTheme();
43036
43076
  const isRtl = theme.direction === 'rtl';
43037
43077
  const [childNode, setChildNode] = React__namespace.useState();