@mui/material 5.12.2 → 5.12.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 (228) hide show
  1. package/Accordion/Accordion.d.ts +71 -57
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/autocompleteClasses.d.ts +56 -56
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/BottomNavigationAction.js +4 -1
  17. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  18. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  19. package/Button/buttonClasses.d.ts +100 -100
  20. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  21. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  22. package/ButtonGroup/ButtonGroup.js +8 -2
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +120 -0
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +1 -1
  34. package/Chip/chipClasses.d.ts +96 -96
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/containerClasses.d.ts +6 -6
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/dialogContentClasses.d.ts +10 -10
  43. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  44. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  45. package/Divider/Divider.js +10 -11
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/filledInputClasses.d.ts +42 -42
  50. package/FormControl/FormControlContext.d.ts +17 -17
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControl/useFormControl.d.ts +2 -2
  53. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  54. package/FormGroup/formGroupClasses.d.ts +12 -12
  55. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  56. package/FormLabel/formLabelClasses.d.ts +22 -22
  57. package/Grid/gridClasses.d.ts +48 -48
  58. package/Icon/iconClasses.d.ts +24 -24
  59. package/IconButton/iconButtonClasses.d.ts +34 -34
  60. package/ImageList/imageListClasses.d.ts +16 -16
  61. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  62. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  63. package/Input/inputClasses.d.ts +38 -34
  64. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  65. package/InputBase/InputBase.js +1 -1
  66. package/InputBase/inputBaseClasses.d.ts +46 -46
  67. package/InputLabel/inputLabelClasses.d.ts +32 -32
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  83. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  84. package/Pagination/paginationClasses.d.ts +14 -14
  85. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  86. package/Paper/Paper.d.ts +6 -1
  87. package/Paper/paperClasses.d.ts +39 -39
  88. package/Popover/popoverClasses.d.ts +10 -10
  89. package/Popper/Popper.d.ts +65 -55
  90. package/Popper/Popper.js +4 -3
  91. package/Radio/radioClasses.d.ts +16 -16
  92. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  93. package/RadioGroup/useRadioGroup.d.ts +4 -4
  94. package/Rating/ratingClasses.d.ts +40 -40
  95. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  96. package/Select/SelectInput.js +4 -1
  97. package/Select/selectClasses.d.ts +32 -32
  98. package/Skeleton/skeletonClasses.d.ts +26 -26
  99. package/Slider/Slider.js +1 -1
  100. package/Slider/SliderValueLabel.d.ts +15 -15
  101. package/Slider/SliderValueLabel.types.d.ts +24 -24
  102. package/Slider/sliderClasses.d.ts +58 -58
  103. package/Snackbar/Snackbar.js +4 -3
  104. package/Snackbar/snackbarClasses.d.ts +20 -20
  105. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  106. package/SpeedDial/speedDialClasses.d.ts +22 -22
  107. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  108. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  109. package/Stack/stackClasses.d.ts +6 -6
  110. package/Step/StepContext.d.ts +20 -20
  111. package/Step/stepClasses.d.ts +16 -16
  112. package/StepButton/stepButtonClasses.d.ts +14 -14
  113. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  114. package/StepContent/stepContentClasses.d.ts +12 -12
  115. package/StepIcon/stepIconClasses.d.ts +16 -16
  116. package/StepLabel/stepLabelClasses.d.ts +28 -28
  117. package/Stepper/StepperContext.d.ts +18 -18
  118. package/Stepper/stepperClasses.d.ts +14 -14
  119. package/SvgIcon/svgIconClasses.d.ts +26 -26
  120. package/SwipeableDrawer/SwipeableDrawer.js +1 -1
  121. package/Switch/switchClasses.d.ts +32 -32
  122. package/Tab/tabClasses.d.ts +26 -26
  123. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  124. package/Table/tableClasses.d.ts +10 -10
  125. package/TableBody/tableBodyClasses.d.ts +8 -8
  126. package/TableCell/tableCellClasses.d.ts +32 -32
  127. package/TableContainer/tableContainerClasses.d.ts +8 -8
  128. package/TableFooter/tableFooterClasses.d.ts +8 -8
  129. package/TableHead/tableHeadClasses.d.ts +8 -8
  130. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  131. package/TableRow/tableRowClasses.d.ts +16 -16
  132. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  133. package/Tabs/tabsClasses.d.ts +32 -32
  134. package/TextField/TextField.d.ts +21 -2
  135. package/TextField/TextField.js +7 -1
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/tooltipClasses.d.ts +30 -30
  141. package/Typography/typographyClasses.d.ts +50 -50
  142. package/Unstable_Grid2/Grid2.d.ts +4 -4
  143. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  144. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  145. package/Unstable_Grid2/index.d.ts +4 -4
  146. package/className/index.d.ts +1 -1
  147. package/darkScrollbar/index.d.ts +28 -28
  148. package/generateUtilityClass/index.d.ts +2 -2
  149. package/generateUtilityClasses/index.d.ts +1 -1
  150. package/index.js +1 -1
  151. package/internal/switchBaseClasses.d.ts +12 -12
  152. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  153. package/legacy/ButtonGroup/ButtonGroup.js +7 -3
  154. package/legacy/Divider/Divider.js +17 -17
  155. package/legacy/Drawer/Drawer.js +4 -4
  156. package/legacy/InputBase/InputBase.js +1 -1
  157. package/legacy/ListItem/ListItem.js +4 -4
  158. package/legacy/Menu/Menu.js +4 -4
  159. package/legacy/Popover/Popover.js +4 -4
  160. package/legacy/Popper/Popper.js +4 -3
  161. package/legacy/Slider/Slider.js +1 -1
  162. package/legacy/Snackbar/Snackbar.js +16 -15
  163. package/legacy/SpeedDial/SpeedDial.js +8 -8
  164. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  165. package/legacy/TextField/TextField.js +7 -1
  166. package/legacy/index.js +1 -1
  167. package/legacy/useMediaQuery/useMediaQuery.js +8 -0
  168. package/locale/index.d.ts +76 -76
  169. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  170. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -1
  171. package/modern/ButtonGroup/ButtonGroup.js +8 -2
  172. package/modern/Chip/Chip.js +1 -1
  173. package/modern/Divider/Divider.js +10 -11
  174. package/modern/InputBase/InputBase.js +1 -1
  175. package/modern/Popper/Popper.js +4 -3
  176. package/modern/Select/SelectInput.js +4 -1
  177. package/modern/Slider/Slider.js +1 -1
  178. package/modern/Snackbar/Snackbar.js +4 -3
  179. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -1
  180. package/modern/TextField/TextField.js +7 -1
  181. package/modern/index.js +1 -1
  182. package/modern/useMediaQuery/useMediaQuery.js +8 -0
  183. package/node/BottomNavigation/BottomNavigation.js +0 -0
  184. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -1
  185. package/node/ButtonBase/Ripple.js +1 -2
  186. package/node/ButtonGroup/ButtonGroup.js +8 -2
  187. package/node/Chip/Chip.js +1 -1
  188. package/node/Divider/Divider.js +10 -11
  189. package/node/Grid/Grid.js +10 -1
  190. package/node/Hidden/Hidden.js +2 -2
  191. package/node/Hidden/HiddenJs.js +1 -2
  192. package/node/InputBase/InputBase.js +1 -1
  193. package/node/Popper/Popper.js +4 -3
  194. package/node/Select/SelectInput.js +4 -1
  195. package/node/Slide/Slide.js +2 -3
  196. package/node/Slider/Slider.js +1 -1
  197. package/node/Snackbar/Snackbar.js +4 -3
  198. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  199. package/node/SwipeableDrawer/SwipeableDrawer.js +3 -4
  200. package/node/Switch/Switch.js +1 -1
  201. package/node/TabScrollButton/TabScrollButton.js +1 -0
  202. package/node/TablePagination/TablePaginationActions.js +2 -2
  203. package/node/TextField/TextField.js +7 -1
  204. package/node/ToggleButton/ToggleButton.js +1 -1
  205. package/node/index.js +1 -1
  206. package/node/styles/index.js +5 -1
  207. package/node/useMediaQuery/useMediaQuery.js +12 -0
  208. package/node/utils/createSvgIcon.js +1 -2
  209. package/package.json +5 -5
  210. package/styles/CssVarsProvider.d.ts +20 -20
  211. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  212. package/styles/getOverlayAlpha.d.ts +2 -2
  213. package/styles/identifier.d.ts +2 -2
  214. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  215. package/transitions/index.d.ts +1 -1
  216. package/transitions/transition.d.ts +13 -13
  217. package/transitions/utils.d.ts +23 -23
  218. package/types/OverridableComponentAugmentation.d.ts +31 -31
  219. package/umd/material-ui.development.js +91 -72
  220. package/umd/material-ui.production.min.js +5 -5
  221. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  222. package/useMediaQuery/useMediaQuery.js +8 -0
  223. package/useTouchRipple/index.d.ts +1 -1
  224. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  225. package/utils/getScrollbarSize.d.ts +2 -2
  226. package/utils/ownerDocument.d.ts +2 -2
  227. package/utils/ownerWindow.d.ts +2 -2
  228. package/utils/setRef.d.ts +2 -2
@@ -138,10 +138,10 @@ var Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
138
138
  elevation = _props$elevation === void 0 ? 16 : _props$elevation,
139
139
  _props$hideBackdrop = props.hideBackdrop,
140
140
  hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop,
141
- _props$ModalProps = props.ModalProps;
142
- _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
143
- var BackdropPropsProp = _props$ModalProps.BackdropProps,
144
- ModalProps = _objectWithoutProperties(_props$ModalProps, ["BackdropProps"]),
141
+ _props$ModalProps = props.ModalProps,
142
+ _props$ModalProps2 = _props$ModalProps === void 0 ? {} : _props$ModalProps,
143
+ BackdropPropsProp = _props$ModalProps2.BackdropProps,
144
+ ModalProps = _objectWithoutProperties(_props$ModalProps2, ["BackdropProps"]),
145
145
  onClose = props.onClose,
146
146
  _props$open = props.open,
147
147
  open = _props$open === void 0 ? false : _props$open,
@@ -375,7 +375,7 @@ var InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref) {
375
375
  if (inputRef.current && event.currentTarget === event.target) {
376
376
  inputRef.current.focus();
377
377
  }
378
- if (onClick) {
378
+ if (onClick && !fcs.disabled) {
379
379
  onClick(event);
380
380
  }
381
381
  };
@@ -142,10 +142,10 @@ var ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
142
142
  componentsProps = _props$componentsProp === void 0 ? {} : _props$componentsProp,
143
143
  _props$ContainerCompo = props.ContainerComponent,
144
144
  ContainerComponent = _props$ContainerCompo === void 0 ? 'li' : _props$ContainerCompo,
145
- _props$ContainerProps = props.ContainerProps;
146
- _props$ContainerProps = _props$ContainerProps === void 0 ? {} : _props$ContainerProps;
147
- var ContainerClassName = _props$ContainerProps.className,
148
- ContainerProps = _objectWithoutProperties(_props$ContainerProps, ["className"]),
145
+ _props$ContainerProps = props.ContainerProps,
146
+ _props$ContainerProps2 = _props$ContainerProps === void 0 ? {} : _props$ContainerProps,
147
+ ContainerClassName = _props$ContainerProps2.className,
148
+ ContainerProps = _objectWithoutProperties(_props$ContainerProps2, ["className"]),
149
149
  _props$dense = props.dense,
150
150
  dense = _props$dense === void 0 ? false : _props$dense,
151
151
  _props$disabled = props.disabled,
@@ -84,10 +84,10 @@ var Menu = /*#__PURE__*/React.forwardRef(function Menu(inProps, ref) {
84
84
  PopoverClasses = props.PopoverClasses,
85
85
  _props$transitionDura = props.transitionDuration,
86
86
  transitionDuration = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
87
- _props$TransitionProp = props.TransitionProps;
88
- _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
89
- var onEntering = _props$TransitionProp.onEntering,
90
- TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEntering"]),
87
+ _props$TransitionProp = props.TransitionProps,
88
+ _props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
89
+ onEntering = _props$TransitionProp2.onEntering,
90
+ TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEntering"]),
91
91
  _props$variant = props.variant,
92
92
  variant = _props$variant === void 0 ? 'selectedMenu' : _props$variant,
93
93
  other = _objectWithoutProperties(props, ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
@@ -114,10 +114,10 @@ var Popover = /*#__PURE__*/React.forwardRef(function Popover(inProps, ref) {
114
114
  TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,
115
115
  _props$transitionDura = props.transitionDuration,
116
116
  transitionDurationProp = _props$transitionDura === void 0 ? 'auto' : _props$transitionDura,
117
- _props$TransitionProp = props.TransitionProps;
118
- _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
119
- var onEntering = _props$TransitionProp.onEntering,
120
- TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEntering"]),
117
+ _props$TransitionProp = props.TransitionProps,
118
+ _props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
119
+ onEntering = _props$TransitionProp2.onEntering,
120
+ TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEntering"]),
121
121
  other = _objectWithoutProperties(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
122
122
  var paperRef = React.useRef();
123
123
  var handlePaperRef = useForkRef(paperRef, PaperProps.ref);
@@ -53,7 +53,6 @@ var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
53
53
  var RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
54
54
  var otherProps = _extends({
55
55
  anchorEl: anchorEl,
56
- component: component,
57
56
  container: container,
58
57
  disablePortal: disablePortal,
59
58
  keepMounted: keepMounted,
@@ -65,6 +64,7 @@ var Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
65
64
  transition: transition
66
65
  }, other);
67
66
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
67
+ as: component,
68
68
  direction: theme == null ? void 0 : theme.direction,
69
69
  slots: {
70
70
  root: RootComponent
@@ -91,9 +91,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
91
91
  */
92
92
  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
93
93
  /**
94
- * @ignore
94
+ * The component used for the root node.
95
+ * Either a string to use a HTML element or a component.
95
96
  */
96
- component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
97
+ component: PropTypes.elementType,
97
98
  /**
98
99
  * The components used for each slot inside the Popper.
99
100
  * Either a string to use a HTML element or a component.
@@ -514,7 +514,7 @@ var Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
514
514
  valueLabelFormat: valueLabelFormat
515
515
  });
516
516
  var _useSlider = useSlider(_extends({}, ownerState, {
517
- ref: ref
517
+ rootRef: ref
518
518
  })),
519
519
  axisProps = _useSlider.axisProps,
520
520
  getRootProps = _useSlider.getRootProps,
@@ -76,13 +76,13 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
76
76
  exit: theme.transitions.duration.leavingScreen
77
77
  };
78
78
  var action = props.action,
79
- _props$anchorOrigin = props.anchorOrigin;
80
- _props$anchorOrigin = _props$anchorOrigin === void 0 ? {
81
- vertical: 'bottom',
82
- horizontal: 'left'
83
- } : _props$anchorOrigin;
84
- var vertical = _props$anchorOrigin.vertical,
85
- horizontal = _props$anchorOrigin.horizontal,
79
+ _props$anchorOrigin = props.anchorOrigin,
80
+ _props$anchorOrigin2 = _props$anchorOrigin === void 0 ? {
81
+ vertical: 'bottom',
82
+ horizontal: 'left'
83
+ } : _props$anchorOrigin,
84
+ vertical = _props$anchorOrigin2.vertical,
85
+ horizontal = _props$anchorOrigin2.horizontal,
86
86
  _props$autoHideDurati = props.autoHideDuration,
87
87
  autoHideDuration = _props$autoHideDurati === void 0 ? null : _props$autoHideDurati,
88
88
  children = props.children,
@@ -103,11 +103,11 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
103
103
  TransitionComponent = _props$TransitionComp === void 0 ? Grow : _props$TransitionComp,
104
104
  _props$transitionDura = props.transitionDuration,
105
105
  transitionDuration = _props$transitionDura === void 0 ? defaultTransitionDuration : _props$transitionDura,
106
- _props$TransitionProp = props.TransitionProps;
107
- _props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
108
- var onEnter = _props$TransitionProp.onEnter,
109
- onExited = _props$TransitionProp.onExited,
110
- TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEnter", "onExited"]),
106
+ _props$TransitionProp = props.TransitionProps,
107
+ _props$TransitionProp2 = _props$TransitionProp === void 0 ? {} : _props$TransitionProp,
108
+ onEnter = _props$TransitionProp2.onEnter,
109
+ onExited = _props$TransitionProp2.onExited,
110
+ TransitionProps = _objectWithoutProperties(_props$TransitionProp2, ["onEnter", "onExited"]),
111
111
  other = _objectWithoutProperties(props, ["action", "anchorOrigin", "autoHideDuration", "children", "className", "ClickAwayListenerProps", "ContentProps", "disableWindowBlurListener", "message", "onBlur", "onClose", "onFocus", "onMouseEnter", "onMouseLeave", "open", "resumeHideDuration", "TransitionComponent", "transitionDuration", "TransitionProps"]);
112
112
  var ownerState = _extends({}, props, {
113
113
  anchorOrigin: {
@@ -120,9 +120,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
120
120
  transitionDuration: transitionDuration
121
121
  });
122
122
  var classes = useUtilityClasses(ownerState);
123
- var _useSnackbar = useSnackbar(_extends({}, ownerState, {
124
- ref: ref
125
- })),
123
+ var _useSnackbar = useSnackbar(_extends({}, ownerState)),
126
124
  getRootProps = _useSnackbar.getRootProps,
127
125
  onClickAway = _useSnackbar.onClickAway;
128
126
  var _React$useState = React.useState(true),
@@ -133,6 +131,9 @@ var Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
133
131
  getSlotProps: getRootProps,
134
132
  externalForwardedProps: other,
135
133
  ownerState: ownerState,
134
+ additionalProps: {
135
+ ref: ref
136
+ },
136
137
  className: [classes.root, className]
137
138
  });
138
139
  var handleExited = function handleExited(node) {
@@ -130,10 +130,10 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
130
130
  exit: theme.transitions.duration.leavingScreen
131
131
  };
132
132
  var ariaLabel = props.ariaLabel,
133
- _props$FabProps = props.FabProps;
134
- _props$FabProps = _props$FabProps === void 0 ? {} : _props$FabProps;
135
- var origDialButtonRef = _props$FabProps.ref,
136
- FabProps = _objectWithoutProperties(_props$FabProps, ["ref"]),
133
+ _props$FabProps = props.FabProps,
134
+ _props$FabProps2 = _props$FabProps === void 0 ? {} : _props$FabProps,
135
+ origDialButtonRef = _props$FabProps2.ref,
136
+ FabProps = _objectWithoutProperties(_props$FabProps2, ["ref"]),
137
137
  childrenProp = props.children,
138
138
  className = props.className,
139
139
  _props$direction = props.direction,
@@ -329,10 +329,10 @@ var SpeedDial = /*#__PURE__*/React.forwardRef(function SpeedDial(inProps, ref) {
329
329
  });
330
330
  var children = allItems.map(function (child, index) {
331
331
  var _child$props = child.props,
332
- _child$props$FabProps = _child$props.FabProps;
333
- _child$props$FabProps = _child$props$FabProps === void 0 ? {} : _child$props$FabProps;
334
- var origButtonRef = _child$props$FabProps.ref,
335
- ChildFabProps = _objectWithoutProperties(_child$props$FabProps, ["ref"]),
332
+ _child$props$FabProps = _child$props.FabProps,
333
+ _child$props$FabProps2 = _child$props$FabProps === void 0 ? {} : _child$props$FabProps,
334
+ origButtonRef = _child$props$FabProps2.ref,
335
+ ChildFabProps = _objectWithoutProperties(_child$props$FabProps2, ["ref"]),
336
336
  tooltipPlacementProp = _child$props.tooltipPlacement;
337
337
  var tooltipPlacement = tooltipPlacementProp || (getOrientation(direction) === 'vertical' ? 'left' : 'top');
338
338
  return /*#__PURE__*/React.cloneElement(child, {
@@ -138,10 +138,10 @@ var SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inP
138
138
  allowSwipeInChildren = _props$allowSwipeInCh === void 0 ? false : _props$allowSwipeInCh,
139
139
  _props$minFlingVeloci = props.minFlingVelocity,
140
140
  minFlingVelocity = _props$minFlingVeloci === void 0 ? 450 : _props$minFlingVeloci,
141
- _props$ModalProps = props.ModalProps;
142
- _props$ModalProps = _props$ModalProps === void 0 ? {} : _props$ModalProps;
143
- var BackdropProps = _props$ModalProps.BackdropProps,
144
- ModalPropsProp = _objectWithoutProperties(_props$ModalProps, ["BackdropProps"]),
141
+ _props$ModalProps = props.ModalProps,
142
+ _props$ModalProps2 = _props$ModalProps === void 0 ? {} : _props$ModalProps,
143
+ BackdropProps = _props$ModalProps2.BackdropProps,
144
+ ModalPropsProp = _objectWithoutProperties(_props$ModalProps2, ["BackdropProps"]),
145
145
  onClose = props.onClose,
146
146
  onOpen = props.onOpen,
147
147
  _props$open = props.open,
@@ -103,6 +103,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
103
103
  name = props.name,
104
104
  onBlur = props.onBlur,
105
105
  onChange = props.onChange,
106
+ onClick = props.onClick,
106
107
  onFocus = props.onFocus,
107
108
  placeholder = props.placeholder,
108
109
  _props$required = props.required,
@@ -115,7 +116,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
115
116
  value = props.value,
116
117
  _props$variant = props.variant,
117
118
  variant = _props$variant === void 0 ? 'outlined' : _props$variant,
118
- other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"]);
119
+ other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "placeholder", "required", "rows", "select", "SelectProps", "type", "value", "variant"]);
119
120
  var ownerState = _extends({}, props, {
120
121
  autoFocus: autoFocus,
121
122
  color: color,
@@ -169,6 +170,7 @@ var TextField = /*#__PURE__*/React.forwardRef(function TextField(inProps, ref) {
169
170
  onBlur: onBlur,
170
171
  onChange: onChange,
171
172
  onFocus: onFocus,
173
+ onClick: onClick,
172
174
  placeholder: placeholder,
173
175
  inputProps: inputProps
174
176
  }, InputMore, InputProps));
@@ -327,6 +329,10 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
327
329
  * You can pull out the new value by accessing `event.target.value` (string).
328
330
  */
329
331
  onChange: PropTypes.func,
332
+ /**
333
+ * @ignore
334
+ */
335
+ onClick: PropTypes.func,
330
336
  /**
331
337
  * @ignore
332
338
  */
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.12.2
2
+ * @mui/material v5.12.3
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -7,6 +7,14 @@ import useEnhancedEffect from '../utils/useEnhancedEffect';
7
7
  * @deprecated Not used internally. Use `MediaQueryListEvent` from lib.dom.d.ts instead.
8
8
  */
9
9
 
10
+ /**
11
+ * @deprecated Not used internally. Use `MediaQueryList` from lib.dom.d.ts instead.
12
+ */
13
+
14
+ /**
15
+ * @deprecated Not used internally. Use `(event: MediaQueryListEvent) => void` instead.
16
+ */
17
+
10
18
  function useMediaQueryOld(query, defaultMatches, matchMedia, ssrMatchMedia, noSsr) {
11
19
  var _React$useState = React.useState(function () {
12
20
  if (noSsr && matchMedia) {
package/locale/index.d.ts CHANGED
@@ -1,76 +1,76 @@
1
- import { ComponentsPropsList } from '../styles/props';
2
- export interface Localization {
3
- components?: {
4
- MuiAlert?: {
5
- defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
- };
7
- MuiBreadcrumbs?: {
8
- defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
- };
10
- MuiTablePagination?: {
11
- defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
- };
13
- MuiRating?: {
14
- defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
- };
16
- MuiAutocomplete?: {
17
- defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
- };
19
- MuiPagination?: {
20
- defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
- };
22
- };
23
- }
24
- export declare const amET: Localization;
25
- export declare const arEG: Localization;
26
- export declare const arSA: Localization;
27
- export declare const arSD: Localization;
28
- export declare const azAZ: Localization;
29
- export declare const bnBD: Localization;
30
- export declare const beBY: Localization;
31
- export declare const bgBG: Localization;
32
- export declare const caES: Localization;
33
- export declare const csCZ: Localization;
34
- export declare const daDK: Localization;
35
- export declare const deDE: Localization;
36
- export declare const elGR: Localization;
37
- export declare const enUS: Localization;
38
- export declare const esES: Localization;
39
- export declare const etEE: Localization;
40
- export declare const faIR: Localization;
41
- export declare const fiFI: Localization;
42
- export declare const frFR: Localization;
43
- export declare const heIL: Localization;
44
- export declare const hiIN: Localization;
45
- export declare const hrHR: Localization;
46
- export declare const huHU: Localization;
47
- export declare const hyAM: Localization;
48
- export declare const idID: Localization;
49
- export declare const isIS: Localization;
50
- export declare const itIT: Localization;
51
- export declare const jaJP: Localization;
52
- export declare const khKH: Localization;
53
- export declare const koKR: Localization;
54
- export declare const kuCKB: Localization;
55
- export declare const kuLatn: Localization;
56
- export declare const kkKZ: Localization;
57
- export declare const mkMK: Localization;
58
- export declare const nbNO: Localization;
59
- export declare const nlNL: Localization;
60
- export declare const plPL: Localization;
61
- export declare const ptBR: Localization;
62
- export declare const ptPT: Localization;
63
- export declare const roRO: Localization;
64
- export declare const srRS: Localization;
65
- export declare const ruRU: Localization;
66
- export declare const siLK: Localization;
67
- export declare const skSK: Localization;
68
- export declare const svSE: Localization;
69
- export declare const thTH: Localization;
70
- export declare const trTR: Localization;
71
- export declare const ukUA: Localization;
72
- export declare const urPK: Localization;
73
- export declare const viVN: Localization;
74
- export declare const zhCN: Localization;
75
- export declare const zhHK: Localization;
76
- export declare const zhTW: Localization;
1
+ import { ComponentsPropsList } from '../styles/props';
2
+ export interface Localization {
3
+ components?: {
4
+ MuiAlert?: {
5
+ defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
6
+ };
7
+ MuiBreadcrumbs?: {
8
+ defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
9
+ };
10
+ MuiTablePagination?: {
11
+ defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
12
+ };
13
+ MuiRating?: {
14
+ defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
15
+ };
16
+ MuiAutocomplete?: {
17
+ defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
18
+ };
19
+ MuiPagination?: {
20
+ defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
21
+ };
22
+ };
23
+ }
24
+ export declare const amET: Localization;
25
+ export declare const arEG: Localization;
26
+ export declare const arSA: Localization;
27
+ export declare const arSD: Localization;
28
+ export declare const azAZ: Localization;
29
+ export declare const bnBD: Localization;
30
+ export declare const beBY: Localization;
31
+ export declare const bgBG: Localization;
32
+ export declare const caES: Localization;
33
+ export declare const csCZ: Localization;
34
+ export declare const daDK: Localization;
35
+ export declare const deDE: Localization;
36
+ export declare const elGR: Localization;
37
+ export declare const enUS: Localization;
38
+ export declare const esES: Localization;
39
+ export declare const etEE: Localization;
40
+ export declare const faIR: Localization;
41
+ export declare const fiFI: Localization;
42
+ export declare const frFR: Localization;
43
+ export declare const heIL: Localization;
44
+ export declare const hiIN: Localization;
45
+ export declare const hrHR: Localization;
46
+ export declare const huHU: Localization;
47
+ export declare const hyAM: Localization;
48
+ export declare const idID: Localization;
49
+ export declare const isIS: Localization;
50
+ export declare const itIT: Localization;
51
+ export declare const jaJP: Localization;
52
+ export declare const khKH: Localization;
53
+ export declare const koKR: Localization;
54
+ export declare const kuCKB: Localization;
55
+ export declare const kuLatn: Localization;
56
+ export declare const kkKZ: Localization;
57
+ export declare const mkMK: Localization;
58
+ export declare const nbNO: Localization;
59
+ export declare const nlNL: Localization;
60
+ export declare const plPL: Localization;
61
+ export declare const ptBR: Localization;
62
+ export declare const ptPT: Localization;
63
+ export declare const roRO: Localization;
64
+ export declare const srRS: Localization;
65
+ export declare const ruRU: Localization;
66
+ export declare const siLK: Localization;
67
+ export declare const skSK: Localization;
68
+ export declare const svSE: Localization;
69
+ export declare const thTH: Localization;
70
+ export declare const trTR: Localization;
71
+ export declare const ukUA: Localization;
72
+ export declare const urPK: Localization;
73
+ export declare const viVN: Localization;
74
+ export declare const zhCN: Localization;
75
+ export declare const zhHK: Localization;
76
+ export declare const zhTW: Localization;
File without changes
@@ -86,7 +86,10 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
86
86
  icon,
87
87
  label,
88
88
  onChange,
89
- onClick,
89
+ onClick
90
+ // eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
91
+ ,
92
+
90
93
  value
91
94
  } = props,
92
95
  other = _objectWithoutPropertiesLoose(props, _excluded);
@@ -83,9 +83,15 @@ const ButtonGroupRoot = styled('div', {
83
83
  borderBottomRightRadius: 0,
84
84
  borderBottomLeftRadius: 0
85
85
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
86
- borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
86
+ borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
87
+ [`&.${buttonGroupClasses.disabled}`]: {
88
+ borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
89
+ }
87
90
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
88
- borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
91
+ borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
92
+ [`&.${buttonGroupClasses.disabled}`]: {
93
+ borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
94
+ }
89
95
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
90
96
  borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
91
97
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
@@ -293,7 +293,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
293
293
  size = 'medium',
294
294
  variant = 'filled',
295
295
  tabIndex,
296
- skipFocusWhenDisabled = false
296
+ skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
297
297
  } = props,
298
298
  other = _objectWithoutPropertiesLoose(props, _excluded);
299
299
  const chipRef = React.useRef(null);
@@ -70,7 +70,6 @@ const DividerRoot = styled('div', {
70
70
  alignSelf: 'stretch',
71
71
  height: 'auto'
72
72
  }), ({
73
- theme,
74
73
  ownerState
75
74
  }) => _extends({}, ownerState.children && {
76
75
  display: 'flex',
@@ -78,12 +77,16 @@ const DividerRoot = styled('div', {
78
77
  textAlign: 'center',
79
78
  border: 0,
80
79
  '&::before, &::after': {
81
- position: 'relative',
82
- width: '100%',
83
- borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
84
- top: '50%',
85
80
  content: '""',
86
- transform: 'translateY(50%)'
81
+ alignSelf: 'center'
82
+ }
83
+ }), ({
84
+ theme,
85
+ ownerState
86
+ }) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
87
+ '&::before, &::after': {
88
+ width: '100%',
89
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
87
90
  }
88
91
  }), ({
89
92
  theme,
@@ -92,11 +95,7 @@ const DividerRoot = styled('div', {
92
95
  flexDirection: 'column',
93
96
  '&::before, &::after': {
94
97
  height: '100%',
95
- top: '0%',
96
- left: '50%',
97
- borderTop: 0,
98
- borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
99
- transform: 'translateX(0%)'
98
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
100
99
  }
101
100
  }), ({
102
101
  ownerState
@@ -371,7 +371,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
371
371
  if (inputRef.current && event.currentTarget === event.target) {
372
372
  inputRef.current.focus();
373
373
  }
374
- if (onClick) {
374
+ if (onClick && !fcs.disabled) {
375
375
  onClick(event);
376
376
  }
377
377
  };
@@ -53,7 +53,6 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
53
53
  const RootComponent = slots?.root ?? components?.Root;
54
54
  const otherProps = _extends({
55
55
  anchorEl,
56
- component,
57
56
  container,
58
57
  disablePortal,
59
58
  keepMounted,
@@ -65,6 +64,7 @@ const Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {
65
64
  transition
66
65
  }, other);
67
66
  return /*#__PURE__*/_jsx(PopperRoot, _extends({
67
+ as: component,
68
68
  direction: theme?.direction,
69
69
  slots: {
70
70
  root: RootComponent
@@ -91,9 +91,10 @@ process.env.NODE_ENV !== "production" ? Popper.propTypes /* remove-proptypes */
91
91
  */
92
92
  children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),
93
93
  /**
94
- * @ignore
94
+ * The component used for the root node.
95
+ * Either a string to use a HTML element or a component.
95
96
  */
96
- component: PropTypes /* @typescript-to-proptypes-ignore */.elementType,
97
+ component: PropTypes.elementType,
97
98
  /**
98
99
  * The components used for each slot inside the Popper.
99
100
  * Either a string to use a HTML element or a component.
@@ -134,7 +134,10 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
134
134
  readOnly,
135
135
  renderValue,
136
136
  SelectDisplayProps = {},
137
- tabIndex: tabIndexProp,
137
+ tabIndex: tabIndexProp
138
+ // catching `type` from Input which makes no sense for SelectInput
139
+ ,
140
+
138
141
  value: valueProp,
139
142
  variant = 'standard'
140
143
  } = props,
@@ -508,7 +508,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
508
508
  trackOffset,
509
509
  trackLeap
510
510
  } = useSlider(_extends({}, ownerState, {
511
- ref
511
+ rootRef: ref
512
512
  }));
513
513
  ownerState.marked = marks.length > 0 && marks.some(mark => mark.label);
514
514
  ownerState.dragging = dragging;
@@ -123,15 +123,16 @@ const Snackbar = /*#__PURE__*/React.forwardRef(function Snackbar(inProps, ref) {
123
123
  const {
124
124
  getRootProps,
125
125
  onClickAway
126
- } = useSnackbar(_extends({}, ownerState, {
127
- ref
128
- }));
126
+ } = useSnackbar(_extends({}, ownerState));
129
127
  const [exited, setExited] = React.useState(true);
130
128
  const rootProps = useSlotProps({
131
129
  elementType: SnackbarRoot,
132
130
  getSlotProps: getRootProps,
133
131
  externalForwardedProps: other,
134
132
  ownerState,
133
+ additionalProps: {
134
+ ref
135
+ },
135
136
  className: [classes.root, className]
136
137
  });
137
138
  const handleExited = node => {
@@ -145,7 +145,7 @@ const SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(i
145
145
  SwipeAreaProps,
146
146
  swipeAreaWidth = 20,
147
147
  transitionDuration = transitionDurationDefault,
148
- variant = 'temporary'
148
+ variant = 'temporary' // Mobile first.
149
149
  } = props,
150
150
  ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
151
151
  other = _objectWithoutPropertiesLoose(props, _excluded2);