@mui/material 5.4.2 → 5.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/BottomNavigation/BottomNavigation.js +0 -0
  12. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  13. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  14. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  15. package/Button/buttonClasses.d.ts +76 -76
  16. package/ButtonBase/ButtonBase.d.ts +1 -1
  17. package/ButtonBase/ButtonBase.js +1 -1
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +47 -0
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/checkboxClasses.d.ts +18 -18
  30. package/Chip/chipClasses.d.ts +80 -80
  31. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  32. package/ClickAwayListener/index.d.ts +2 -2
  33. package/Collapse/collapseClasses.d.ts +18 -18
  34. package/Container/containerClasses.d.ts +22 -22
  35. package/Dialog/Dialog.d.ts +4 -1
  36. package/Dialog/Dialog.js +10 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/Drawer.d.ts +4 -1
  45. package/Drawer/Drawer.js +11 -9
  46. package/Drawer/drawerClasses.d.ts +30 -30
  47. package/Fab/fabClasses.d.ts +26 -26
  48. package/Fade/Fade.d.ts +2 -2
  49. package/Fade/Fade.js +8 -8
  50. package/FilledInput/filledInputClasses.d.ts +40 -40
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  53. package/FormGroup/formGroupClasses.d.ts +12 -12
  54. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  55. package/FormLabel/formLabelClasses.d.ts +22 -22
  56. package/Grid/gridClasses.d.ts +48 -48
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +26 -26
  59. package/ImageList/imageListClasses.d.ts +16 -16
  60. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  61. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  64. package/InputBase/inputBaseClasses.d.ts +44 -44
  65. package/InputLabel/inputLabelClasses.d.ts +32 -32
  66. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  67. package/Link/linkClasses.d.ts +18 -18
  68. package/List/listClasses.d.ts +14 -14
  69. package/ListItem/listItemClasses.d.ts +30 -30
  70. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  71. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  72. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  73. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  74. package/ListItemText/listItemTextClasses.d.ts +18 -18
  75. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  76. package/Menu/menuClasses.d.ts +12 -12
  77. package/MenuItem/menuItemClasses.d.ts +20 -20
  78. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  79. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  80. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  81. package/Pagination/paginationClasses.d.ts +14 -14
  82. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  83. package/Paper/paperClasses.d.ts +39 -39
  84. package/Popover/popoverClasses.d.ts +10 -10
  85. package/Popper/Popper.d.ts +17 -17
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/selectClasses.d.ts +30 -30
  92. package/Skeleton/skeletonClasses.d.ts +24 -24
  93. package/Slide/Slide.d.ts +4 -4
  94. package/Slide/Slide.js +14 -14
  95. package/Snackbar/Snackbar.d.ts +2 -2
  96. package/Snackbar/Snackbar.js +8 -8
  97. package/Snackbar/snackbarClasses.d.ts +20 -20
  98. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  99. package/SpeedDial/SpeedDial.d.ts +2 -2
  100. package/SpeedDial/SpeedDial.js +9 -7
  101. package/SpeedDial/speedDialClasses.d.ts +22 -22
  102. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  103. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  104. package/Step/StepContext.d.ts +20 -0
  105. package/Step/StepContext.js +10 -2
  106. package/Step/index.d.ts +3 -0
  107. package/Step/index.js +3 -1
  108. package/Step/stepClasses.d.ts +16 -16
  109. package/StepButton/stepButtonClasses.d.ts +14 -14
  110. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  111. package/StepContent/stepContentClasses.d.ts +12 -12
  112. package/StepIcon/stepIconClasses.d.ts +16 -16
  113. package/StepLabel/stepLabelClasses.d.ts +28 -28
  114. package/Stepper/stepperClasses.d.ts +14 -14
  115. package/SvgIcon/svgIconClasses.d.ts +24 -24
  116. package/SwipeableDrawer/SwipeableDrawer.js +8 -6
  117. package/Switch/switchClasses.d.ts +32 -32
  118. package/Tab/tabClasses.d.ts +26 -26
  119. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  120. package/Table/tableClasses.d.ts +10 -10
  121. package/TableBody/tableBodyClasses.d.ts +8 -8
  122. package/TableCell/tableCellClasses.d.ts +32 -32
  123. package/TableContainer/tableContainerClasses.d.ts +8 -8
  124. package/TableFooter/tableFooterClasses.d.ts +8 -8
  125. package/TableHead/tableHeadClasses.d.ts +8 -8
  126. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  127. package/TableRow/tableRowClasses.d.ts +16 -16
  128. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  129. package/Tabs/tabsClasses.d.ts +32 -32
  130. package/TextField/textFieldClasses.d.ts +8 -8
  131. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  132. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  133. package/Toolbar/toolbarClasses.d.ts +14 -14
  134. package/Tooltip/tooltipClasses.d.ts +30 -30
  135. package/Typography/typographyClasses.d.ts +50 -50
  136. package/Zoom/Zoom.d.ts +2 -2
  137. package/Zoom/Zoom.js +8 -8
  138. package/darkScrollbar/index.d.ts +28 -28
  139. package/index.js +1 -1
  140. package/internal/switchBaseClasses.d.ts +12 -12
  141. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  142. package/legacy/ButtonBase/ButtonBase.js +1 -1
  143. package/legacy/Dialog/Dialog.js +10 -6
  144. package/legacy/Drawer/Drawer.js +11 -9
  145. package/legacy/Fade/Fade.js +8 -8
  146. package/legacy/Slide/Slide.js +14 -14
  147. package/legacy/Snackbar/Snackbar.js +8 -8
  148. package/legacy/SpeedDial/SpeedDial.js +9 -7
  149. package/legacy/Step/StepContext.js +10 -2
  150. package/legacy/Step/index.js +3 -1
  151. package/legacy/SwipeableDrawer/SwipeableDrawer.js +8 -6
  152. package/legacy/Zoom/Zoom.js +8 -8
  153. package/legacy/index.js +1 -1
  154. package/legacy/locale/index.js +86 -78
  155. package/locale/index.d.ts +68 -68
  156. package/locale/index.js +12 -6
  157. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  158. package/modern/ButtonBase/ButtonBase.js +1 -1
  159. package/modern/Dialog/Dialog.js +10 -6
  160. package/modern/Drawer/Drawer.js +11 -9
  161. package/modern/Fade/Fade.js +8 -8
  162. package/modern/Slide/Slide.js +14 -14
  163. package/modern/Snackbar/Snackbar.js +8 -8
  164. package/modern/SpeedDial/SpeedDial.js +9 -7
  165. package/modern/Step/StepContext.js +10 -2
  166. package/modern/Step/index.js +3 -1
  167. package/modern/SwipeableDrawer/SwipeableDrawer.js +8 -6
  168. package/modern/Zoom/Zoom.js +8 -8
  169. package/modern/index.js +1 -1
  170. package/modern/locale/index.js +12 -6
  171. package/node/BottomNavigation/BottomNavigation.js +0 -0
  172. package/node/ButtonBase/ButtonBase.js +1 -1
  173. package/node/Dialog/Dialog.js +11 -7
  174. package/node/Drawer/Drawer.js +11 -10
  175. package/node/Fade/Fade.js +7 -9
  176. package/node/Slide/Slide.js +14 -16
  177. package/node/Snackbar/Snackbar.js +8 -9
  178. package/node/SpeedDial/SpeedDial.js +9 -7
  179. package/node/Step/StepContext.js +11 -1
  180. package/node/Step/index.js +22 -1
  181. package/node/SwipeableDrawer/SwipeableDrawer.js +8 -7
  182. package/node/Zoom/Zoom.js +7 -9
  183. package/node/index.js +1 -1
  184. package/node/locale/index.js +12 -6
  185. package/package.json +2 -2
  186. package/transitions/index.d.ts +1 -1
  187. package/transitions/transition.d.ts +13 -13
  188. package/transitions/utils.d.ts +23 -23
  189. package/umd/material-ui.development.js +90 -66
  190. package/umd/material-ui.production.min.js +16 -16
  191. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  192. package/useTouchRipple/index.d.ts +1 -1
  193. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  194. package/utils/getScrollbarSize.d.ts +2 -2
  195. package/utils/ownerDocument.d.ts +2 -2
  196. package/utils/ownerWindow.d.ts +2 -2
  197. package/utils/setRef.d.ts +2 -2
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.4.2
1
+ /** @license MUI v5.4.3
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -17956,7 +17956,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
17956
17956
  TouchRippleProps: PropTypes.object,
17957
17957
 
17958
17958
  /**
17959
- * A ref that points to the `TouchRippple` element.
17959
+ * A ref that points to the `TouchRipple` element.
17960
17960
  */
17961
17961
  touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
17962
17962
  current: PropTypes.shape({
@@ -21492,16 +21492,18 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21492
21492
  opacity: 1
21493
21493
  }
21494
21494
  };
21495
- const defaultTimeout$2 = {
21496
- enter: duration.enteringScreen,
21497
- exit: duration.leavingScreen
21498
- };
21499
21495
  /**
21500
21496
  * The Fade transition is used by the [Modal](/components/modal/) component.
21501
21497
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
21502
21498
  */
21503
21499
 
21504
21500
  const Fade = /*#__PURE__*/React__namespace.forwardRef(function Fade(props, ref) {
21501
+ const theme = useTheme();
21502
+ const defaultTimeout = {
21503
+ enter: theme.transitions.duration.enteringScreen,
21504
+ exit: theme.transitions.duration.leavingScreen
21505
+ };
21506
+
21505
21507
  const {
21506
21508
  addEndListener,
21507
21509
  appear = true,
@@ -21515,13 +21517,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21515
21517
  onExited,
21516
21518
  onExiting,
21517
21519
  style,
21518
- timeout = defaultTimeout$2,
21520
+ timeout = defaultTimeout,
21519
21521
  // eslint-disable-next-line react/prop-types
21520
21522
  TransitionComponent = Transition$1
21521
21523
  } = props,
21522
21524
  other = _objectWithoutPropertiesLoose(props, _excluded$1M);
21523
-
21524
- const theme = useTheme();
21525
21525
  const nodeRef = React__namespace.useRef(null);
21526
21526
  const foreignRef = useForkRef(children.ref, ref);
21527
21527
  const handleRef = useForkRef(nodeRef, foreignRef);
@@ -21686,8 +21686,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
21686
21686
  * The duration for the transition, in milliseconds.
21687
21687
  * You may specify a single timeout for all transitions, or individually with an object.
21688
21688
  * @default {
21689
- * enter: duration.enteringScreen,
21690
- * exit: duration.leavingScreen,
21689
+ * enter: theme.transitions.duration.enteringScreen,
21690
+ * exit: theme.transitions.duration.leavingScreen,
21691
21691
  * }
21692
21692
  */
21693
21693
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -25782,10 +25782,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25782
25782
  maxWidth: '100%'
25783
25783
  }
25784
25784
  }));
25785
- const defaultTransitionDuration$1 = {
25786
- enter: duration.enteringScreen,
25787
- exit: duration.leavingScreen
25788
- };
25789
25785
  /**
25790
25786
  * Dialogs are overlaid modal paper based components with a backdrop.
25791
25787
  */
@@ -25795,6 +25791,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25795
25791
  props: inProps,
25796
25792
  name: 'MuiDialog'
25797
25793
  });
25794
+ const theme = useTheme();
25795
+ const defaultTransitionDuration = {
25796
+ enter: theme.transitions.duration.enteringScreen,
25797
+ exit: theme.transitions.duration.leavingScreen
25798
+ };
25798
25799
 
25799
25800
  const {
25800
25801
  'aria-describedby': ariaDescribedby,
@@ -25814,7 +25815,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
25814
25815
  PaperProps = {},
25815
25816
  scroll = 'paper',
25816
25817
  TransitionComponent = Fade$1,
25817
- transitionDuration = defaultTransitionDuration$1,
25818
+ transitionDuration = defaultTransitionDuration,
25818
25819
  TransitionProps
25819
25820
  } = props,
25820
25821
  other = _objectWithoutPropertiesLoose(props, _excluded$1t);
@@ -26035,7 +26036,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26035
26036
  /**
26036
26037
  * The duration for the transition, in milliseconds.
26037
26038
  * You may specify a single timeout for all transitions, or individually with an object.
26038
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
26039
+ * @default {
26040
+ * enter: theme.transitions.duration.enteringScreen,
26041
+ * exit: theme.transitions.duration.leavingScreen,
26042
+ * }
26039
26043
  */
26040
26044
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
26041
26045
  appear: PropTypes.number,
@@ -26743,20 +26747,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26743
26747
  node.style.transform = transform;
26744
26748
  }
26745
26749
  }
26746
- const defaultEasing = {
26747
- enter: easing.easeOut,
26748
- exit: easing.sharp
26749
- };
26750
- const defaultTimeout$1 = {
26751
- enter: duration.enteringScreen,
26752
- exit: duration.leavingScreen
26753
- };
26754
26750
  /**
26755
26751
  * The Slide transition is used by the [Drawer](/components/drawers/) component.
26756
26752
  * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
26757
26753
  */
26758
26754
 
26759
26755
  const Slide = /*#__PURE__*/React__namespace.forwardRef(function Slide(props, ref) {
26756
+ const theme = useTheme();
26757
+ const defaultEasing = {
26758
+ enter: theme.transitions.easing.easeOut,
26759
+ exit: theme.transitions.easing.sharp
26760
+ };
26761
+ const defaultTimeout = {
26762
+ enter: theme.transitions.duration.enteringScreen,
26763
+ exit: theme.transitions.duration.leavingScreen
26764
+ };
26765
+
26760
26766
  const {
26761
26767
  addEndListener,
26762
26768
  appear = true,
@@ -26772,13 +26778,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26772
26778
  onExited,
26773
26779
  onExiting,
26774
26780
  style,
26775
- timeout = defaultTimeout$1,
26781
+ timeout = defaultTimeout,
26776
26782
  // eslint-disable-next-line react/prop-types
26777
26783
  TransitionComponent = Transition$1
26778
26784
  } = props,
26779
26785
  other = _objectWithoutPropertiesLoose(props, _excluded$1n);
26780
26786
 
26781
- const theme = useTheme();
26782
26787
  const childrenRef = React__namespace.useRef(null);
26783
26788
  const handleRefIntermediary = useForkRef(children.ref, childrenRef);
26784
26789
  const handleRef = useForkRef(handleRefIntermediary, ref);
@@ -26966,8 +26971,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
26966
26971
  * The transition timing function.
26967
26972
  * You may specify a single easing or a object containing enter and exit values.
26968
26973
  * @default {
26969
- * enter: easing.easeOut,
26970
- * exit: easing.sharp,
26974
+ * enter: theme.transitions.easing.easeOut,
26975
+ * exit: theme.transitions.easing.sharp,
26971
26976
  * }
26972
26977
  */
26973
26978
  easing: PropTypes.oneOfType([PropTypes.shape({
@@ -27019,8 +27024,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27019
27024
  * The duration for the transition, in milliseconds.
27020
27025
  * You may specify a single timeout for all transitions, or individually with an object.
27021
27026
  * @default {
27022
- * enter: duration.enteringScreen,
27023
- * exit: duration.leavingScreen,
27027
+ * enter: theme.transitions.duration.enteringScreen,
27028
+ * exit: theme.transitions.duration.leavingScreen,
27024
27029
  * }
27025
27030
  */
27026
27031
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -27146,10 +27151,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27146
27151
  function getAnchor(theme, anchor) {
27147
27152
  return theme.direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
27148
27153
  }
27149
- const defaultTransitionDuration = {
27150
- enter: duration.enteringScreen,
27151
- exit: duration.leavingScreen
27152
- };
27153
27154
  /**
27154
27155
  * The props of the [Modal](/api/modal/) component are available
27155
27156
  * when `variant="temporary"` is set.
@@ -27160,6 +27161,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27160
27161
  props: inProps,
27161
27162
  name: 'MuiDrawer'
27162
27163
  });
27164
+ const theme = useTheme();
27165
+ const defaultTransitionDuration = {
27166
+ enter: theme.transitions.duration.enteringScreen,
27167
+ exit: theme.transitions.duration.leavingScreen
27168
+ };
27163
27169
 
27164
27170
  const {
27165
27171
  anchor: anchorProp = 'left',
@@ -27181,12 +27187,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27181
27187
  variant = 'temporary'
27182
27188
  } = props,
27183
27189
  ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$1m),
27184
- other = _objectWithoutPropertiesLoose(props, _excluded2$8);
27185
-
27186
- const theme = useTheme(); // Let's assume that the Drawer will always be rendered on user space.
27190
+ other = _objectWithoutPropertiesLoose(props, _excluded2$8); // Let's assume that the Drawer will always be rendered on user space.
27187
27191
  // We use this state is order to skip the appear transition during the
27188
27192
  // initial mount of the component.
27189
27193
 
27194
+
27190
27195
  const mounted = React__namespace.useRef(false);
27191
27196
  React__namespace.useEffect(() => {
27192
27197
  mounted.current = true;
@@ -27340,7 +27345,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
27340
27345
  /**
27341
27346
  * The duration for the transition, in milliseconds.
27342
27347
  * You may specify a single timeout for all transitions, or individually with an object.
27343
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
27348
+ * @default {
27349
+ * enter: theme.transitions.duration.enteringScreen,
27350
+ * exit: theme.transitions.duration.leavingScreen,
27351
+ * }
27344
27352
  */
27345
27353
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
27346
27354
  appear: PropTypes.number,
@@ -41148,6 +41156,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41148
41156
  props: inProps,
41149
41157
  name: 'MuiSnackbar'
41150
41158
  });
41159
+ const theme = useTheme();
41160
+ const defaultTransitionDuration = {
41161
+ enter: theme.transitions.duration.enteringScreen,
41162
+ exit: theme.transitions.duration.leavingScreen
41163
+ };
41151
41164
 
41152
41165
  const {
41153
41166
  action,
@@ -41173,10 +41186,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41173
41186
  open,
41174
41187
  resumeHideDuration,
41175
41188
  TransitionComponent = Grow$1,
41176
- transitionDuration = {
41177
- enter: duration.enteringScreen,
41178
- exit: duration.leavingScreen
41179
- },
41189
+ transitionDuration = defaultTransitionDuration,
41180
41190
  TransitionProps: {
41181
41191
  onEnter,
41182
41192
  onExited
@@ -41185,7 +41195,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41185
41195
  TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$z),
41186
41196
  other = _objectWithoutPropertiesLoose(props, _excluded2$2);
41187
41197
 
41188
- const theme = useTheme();
41189
41198
  const isRtl = theme.direction === 'rtl';
41190
41199
 
41191
41200
  const ownerState = _extends({}, props, {
@@ -41504,8 +41513,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41504
41513
  * The duration for the transition, in milliseconds.
41505
41514
  * You may specify a single timeout for all transitions, or individually with an object.
41506
41515
  * @default {
41507
- * enter: duration.enteringScreen,
41508
- * exit: duration.leavingScreen,
41516
+ * enter: theme.transitions.duration.enteringScreen,
41517
+ * exit: theme.transitions.duration.leavingScreen,
41509
41518
  * }
41510
41519
  */
41511
41520
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -41532,10 +41541,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41532
41541
  transform: 'none'
41533
41542
  }
41534
41543
  };
41535
- const defaultTimeout = {
41536
- enter: duration.enteringScreen,
41537
- exit: duration.leavingScreen
41538
- };
41539
41544
  /**
41540
41545
  * The Zoom transition can be used for the floating variant of the
41541
41546
  * [Button](/components/buttons/#floating-action-buttons) component.
@@ -41543,6 +41548,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41543
41548
  */
41544
41549
 
41545
41550
  const Zoom = /*#__PURE__*/React__namespace.forwardRef(function Zoom(props, ref) {
41551
+ const theme = useTheme();
41552
+ const defaultTimeout = {
41553
+ enter: theme.transitions.duration.enteringScreen,
41554
+ exit: theme.transitions.duration.leavingScreen
41555
+ };
41556
+
41546
41557
  const {
41547
41558
  addEndListener,
41548
41559
  appear = true,
@@ -41562,7 +41573,6 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41562
41573
  } = props,
41563
41574
  other = _objectWithoutPropertiesLoose(props, _excluded$y);
41564
41575
 
41565
- const theme = useTheme();
41566
41576
  const nodeRef = React__namespace.useRef(null);
41567
41577
  const foreignRef = useForkRef(children.ref, ref);
41568
41578
  const handleRef = useForkRef(nodeRef, foreignRef);
@@ -41727,8 +41737,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41727
41737
  * The duration for the transition, in milliseconds.
41728
41738
  * You may specify a single timeout for all transitions, or individually with an object.
41729
41739
  * @default {
41730
- * enter: duration.enteringScreen,
41731
- * exit: duration.leavingScreen,
41740
+ * enter: theme.transitions.duration.enteringScreen,
41741
+ * exit: theme.transitions.duration.leavingScreen,
41732
41742
  * }
41733
41743
  */
41734
41744
  timeout: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -41865,6 +41875,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41865
41875
  props: inProps,
41866
41876
  name: 'MuiSpeedDial'
41867
41877
  });
41878
+ const theme = useTheme();
41879
+ const defaultTransitionDuration = {
41880
+ enter: theme.transitions.duration.enteringScreen,
41881
+ exit: theme.transitions.duration.leavingScreen
41882
+ };
41868
41883
 
41869
41884
  const {
41870
41885
  ariaLabel,
@@ -41885,10 +41900,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
41885
41900
  onOpen,
41886
41901
  open: openProp,
41887
41902
  TransitionComponent = Zoom$1,
41888
- transitionDuration = {
41889
- enter: duration.enteringScreen,
41890
- exit: duration.leavingScreen
41891
- },
41903
+ transitionDuration = defaultTransitionDuration,
41892
41904
  TransitionProps
41893
41905
  } = props,
41894
41906
  FabProps = _objectWithoutPropertiesLoose(props.FabProps, _excluded$x),
@@ -42270,8 +42282,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
42270
42282
  * The duration for the transition, in milliseconds.
42271
42283
  * You may specify a single timeout for all transitions, or individually with an object.
42272
42284
  * @default {
42273
- * enter: duration.enteringScreen,
42274
- * exit: duration.leavingScreen,
42285
+ * enter: theme.transitions.duration.enteringScreen,
42286
+ * exit: theme.transitions.duration.leavingScreen,
42275
42287
  * }
42276
42288
  */
42277
42289
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
@@ -43675,15 +43687,22 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
43675
43687
  var StepperContext$1 = StepperContext;
43676
43688
 
43677
43689
  /**
43678
- * @ignore - internal component.
43690
+ * Provides information about the current step in Stepper.
43679
43691
  */
43680
-
43681
43692
  const StepContext = /*#__PURE__*/React__namespace.createContext({});
43682
43693
 
43683
43694
  {
43684
43695
  StepContext.displayName = 'StepContext';
43685
43696
  }
43697
+ /**
43698
+ * Returns the current StepContext or an empty object if no StepContext
43699
+ * has been defined in the component tree.
43700
+ */
43686
43701
 
43702
+
43703
+ function useStepContext() {
43704
+ return React__namespace.useContext(StepContext);
43705
+ }
43687
43706
  var StepContext$1 = StepContext;
43688
43707
 
43689
43708
  function getStepUtilityClass(slot) {
@@ -45038,16 +45057,16 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45038
45057
  }
45039
45058
 
45040
45059
  const iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);
45041
- const transitionDurationDefault = {
45042
- enter: duration.enteringScreen,
45043
- exit: duration.leavingScreen
45044
- };
45045
45060
  const SwipeableDrawer = /*#__PURE__*/React__namespace.forwardRef(function SwipeableDrawer(inProps, ref) {
45046
45061
  const props = useThemeProps$1({
45047
45062
  name: 'MuiSwipeableDrawer',
45048
45063
  props: inProps
45049
45064
  });
45050
45065
  const theme = useTheme();
45066
+ const transitionDurationDefault = {
45067
+ enter: theme.transitions.duration.enteringScreen,
45068
+ exit: theme.transitions.duration.leavingScreen
45069
+ };
45051
45070
 
45052
45071
  const {
45053
45072
  anchor = 'left',
@@ -45525,7 +45544,10 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
45525
45544
  /**
45526
45545
  * The duration for the transition, in milliseconds.
45527
45546
  * You may specify a single timeout for all transitions, or individually with an object.
45528
- * @default { enter: duration.enteringScreen, exit: duration.leavingScreen }
45547
+ * @default {
45548
+ * enter: theme.transitions.duration.enteringScreen,
45549
+ * exit: theme.transitions.duration.leavingScreen,
45550
+ * }
45529
45551
  */
45530
45552
  transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
45531
45553
  appear: PropTypes.number,
@@ -50051,6 +50073,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50051
50073
  exports.StepButton = StepButton$1;
50052
50074
  exports.StepConnector = StepConnector$1;
50053
50075
  exports.StepContent = StepContent$1;
50076
+ exports.StepContext = StepContext$1;
50054
50077
  exports.StepIcon = StepIcon$1;
50055
50078
  exports.StepLabel = StepLabel$1;
50056
50079
  exports.Stepper = Stepper$1;
@@ -50358,6 +50381,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
50358
50381
  exports.usePagination = usePagination;
50359
50382
  exports.useRadioGroup = useRadioGroup;
50360
50383
  exports.useScrollTrigger = useScrollTrigger;
50384
+ exports.useStepContext = useStepContext;
50361
50385
  exports.useTheme = useTheme;
50362
50386
  exports.useThemeProps = useThemeProps;
50363
50387
  exports.withStyles = withStyles;