@mui/material 5.2.7 → 5.2.8

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 (198) 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/Autocomplete.js +3 -1
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/Backdrop.js +3 -1
  13. package/Badge/Badge.js +4 -1
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  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 +75 -32
  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 +80 -80
  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 +22 -22
  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/FilledInput.js +4 -1
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControlLabel/FormControlLabel.js +3 -1
  49. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  50. package/FormGroup/formGroupClasses.d.ts +10 -10
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +26 -26
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/Input.js +4 -1
  60. package/Input/inputClasses.d.ts +34 -34
  61. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  62. package/InputBase/InputBase.js +4 -1
  63. package/InputBase/inputBaseClasses.d.ts +44 -44
  64. package/InputLabel/InputLabel.js +4 -0
  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/ListItem.js +3 -1
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/Modal/Modal.js +3 -1
  81. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  82. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  83. package/Pagination/paginationClasses.d.ts +14 -14
  84. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  85. package/Paper/paperClasses.d.ts +39 -39
  86. package/Popover/popoverClasses.d.ts +10 -10
  87. package/Popper/Popper.d.ts +17 -17
  88. package/README.md +2 -1
  89. package/Radio/radioClasses.d.ts +16 -16
  90. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  91. package/RadioGroup/useRadioGroup.d.ts +4 -4
  92. package/Rating/ratingClasses.d.ts +40 -40
  93. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  94. package/Select/selectClasses.d.ts +30 -30
  95. package/Skeleton/skeletonClasses.d.ts +24 -24
  96. package/Slider/Slider.d.ts +2 -0
  97. package/Slider/Slider.js +21 -3
  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/Step/stepClasses.d.ts +16 -16
  104. package/StepButton/stepButtonClasses.d.ts +14 -14
  105. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  106. package/StepContent/stepContentClasses.d.ts +12 -12
  107. package/StepIcon/stepIconClasses.d.ts +16 -16
  108. package/StepLabel/StepLabel.js +3 -1
  109. package/StepLabel/stepLabelClasses.d.ts +28 -28
  110. package/Stepper/stepperClasses.d.ts +14 -14
  111. package/SvgIcon/svgIconClasses.d.ts +24 -24
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/TextField.d.ts +1 -0
  126. package/TextField/TextField.js +1 -0
  127. package/TextField/textFieldClasses.d.ts +8 -8
  128. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  129. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  130. package/Toolbar/toolbarClasses.d.ts +14 -14
  131. package/Tooltip/Tooltip.js +6 -1
  132. package/Tooltip/tooltipClasses.d.ts +30 -30
  133. package/Typography/typographyClasses.d.ts +50 -50
  134. package/darkScrollbar/index.d.ts +28 -28
  135. package/index.js +1 -1
  136. package/internal/switchBaseClasses.d.ts +12 -12
  137. package/legacy/Autocomplete/Autocomplete.js +3 -1
  138. package/legacy/Backdrop/Backdrop.js +3 -1
  139. package/legacy/Badge/Badge.js +4 -1
  140. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  141. package/legacy/FilledInput/FilledInput.js +4 -1
  142. package/legacy/FormControlLabel/FormControlLabel.js +3 -1
  143. package/legacy/Input/Input.js +4 -1
  144. package/legacy/InputBase/InputBase.js +4 -1
  145. package/legacy/InputLabel/InputLabel.js +4 -0
  146. package/legacy/ListItem/ListItem.js +3 -1
  147. package/legacy/Modal/Modal.js +3 -1
  148. package/legacy/Slider/Slider.js +21 -3
  149. package/legacy/StepLabel/StepLabel.js +3 -1
  150. package/legacy/TextField/TextField.js +1 -0
  151. package/legacy/Tooltip/Tooltip.js +6 -1
  152. package/legacy/index.js +1 -1
  153. package/locale/index.d.ts +68 -68
  154. package/modern/Autocomplete/Autocomplete.js +3 -1
  155. package/modern/Backdrop/Backdrop.js +3 -1
  156. package/modern/Badge/Badge.js +4 -1
  157. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  158. package/modern/FilledInput/FilledInput.js +4 -1
  159. package/modern/FormControlLabel/FormControlLabel.js +3 -1
  160. package/modern/Input/Input.js +4 -1
  161. package/modern/InputBase/InputBase.js +4 -1
  162. package/modern/InputLabel/InputLabel.js +4 -0
  163. package/modern/ListItem/ListItem.js +3 -1
  164. package/modern/Modal/Modal.js +3 -1
  165. package/modern/Slider/Slider.js +21 -3
  166. package/modern/StepLabel/StepLabel.js +3 -1
  167. package/modern/TextField/TextField.js +1 -0
  168. package/modern/Tooltip/Tooltip.js +6 -1
  169. package/modern/index.js +1 -1
  170. package/node/Autocomplete/Autocomplete.js +3 -1
  171. package/node/Backdrop/Backdrop.js +3 -1
  172. package/node/Badge/Badge.js +4 -1
  173. package/node/BottomNavigation/BottomNavigation.js +0 -0
  174. package/node/FilledInput/FilledInput.js +4 -1
  175. package/node/FormControlLabel/FormControlLabel.js +3 -1
  176. package/node/Input/Input.js +4 -1
  177. package/node/InputBase/InputBase.js +4 -1
  178. package/node/InputLabel/InputLabel.js +4 -0
  179. package/node/ListItem/ListItem.js +3 -1
  180. package/node/Modal/Modal.js +3 -1
  181. package/node/Slider/Slider.js +21 -3
  182. package/node/StepLabel/StepLabel.js +3 -1
  183. package/node/TextField/TextField.js +1 -0
  184. package/node/Tooltip/Tooltip.js +6 -1
  185. package/node/index.js +1 -1
  186. package/package.json +3 -3
  187. package/transitions/index.d.ts +1 -1
  188. package/transitions/transition.d.ts +13 -13
  189. package/transitions/utils.d.ts +23 -23
  190. package/umd/material-ui.development.js +132 -31
  191. package/umd/material-ui.production.min.js +12 -12
  192. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  193. package/useTouchRipple/index.d.ts +1 -1
  194. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  195. package/utils/getScrollbarSize.d.ts +2 -2
  196. package/utils/ownerDocument.d.ts +2 -2
  197. package/utils/ownerWindow.d.ts +2 -2
  198. package/utils/setRef.d.ts +2 -2
@@ -279,7 +279,10 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
279
279
  * The props used for each slot inside the Input.
280
280
  * @default {}
281
281
  */
282
- componentsProps: _propTypes.default.object,
282
+ componentsProps: _propTypes.default.shape({
283
+ input: _propTypes.default.object,
284
+ root: _propTypes.default.object
285
+ }),
283
286
 
284
287
  /**
285
288
  * The default value. Use when the component is not controlled.
@@ -185,7 +185,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
185
185
  * The props used for each slot inside.
186
186
  * @default {}
187
187
  */
188
- componentsProps: _propTypes.default.object,
188
+ componentsProps: _propTypes.default.shape({
189
+ typography: _propTypes.default.object
190
+ }),
189
191
 
190
192
  /**
191
193
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -215,7 +215,10 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
215
215
  * The props used for each slot inside the Input.
216
216
  * @default {}
217
217
  */
218
- componentsProps: _propTypes.default.object,
218
+ componentsProps: _propTypes.default.shape({
219
+ input: _propTypes.default.object,
220
+ root: _propTypes.default.object
221
+ }),
219
222
 
220
223
  /**
221
224
  * The default value. Use when the component is not controlled.
@@ -584,7 +584,10 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
584
584
  * The props used for each slot inside the Input.
585
585
  * @default {}
586
586
  */
587
- componentsProps: _propTypes.default.object,
587
+ componentsProps: _propTypes.default.shape({
588
+ input: _propTypes.default.object,
589
+ root: _propTypes.default.object
590
+ }),
588
591
 
589
592
  /**
590
593
  * The default value. Use when the component is not controlled.
@@ -107,6 +107,8 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
107
107
  }, ownerState.size === 'small' && {
108
108
  transform: 'translate(12px, 13px) scale(1)'
109
109
  }, ownerState.shrink && (0, _extends2.default)({
110
+ userSelect: 'none',
111
+ pointerEvents: 'auto',
110
112
  transform: 'translate(12px, 7px) scale(0.75)',
111
113
  maxWidth: 'calc(133% - 24px)'
112
114
  }, ownerState.size === 'small' && {
@@ -120,6 +122,8 @@ const InputLabelRoot = (0, _styled.default)(_FormLabel.default, {
120
122
  }, ownerState.size === 'small' && {
121
123
  transform: 'translate(14px, 9px) scale(1)'
122
124
  }, ownerState.shrink && {
125
+ userSelect: 'none',
126
+ pointerEvents: 'auto',
123
127
  maxWidth: 'calc(133% - 24px)',
124
128
  transform: 'translate(14px, -9px) scale(0.75)'
125
129
  })));
@@ -375,7 +375,9 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
375
375
  * The props used for each slot inside the Input.
376
376
  * @default {}
377
377
  */
378
- componentsProps: _propTypes.default.object,
378
+ componentsProps: _propTypes.default.shape({
379
+ root: _propTypes.default.object
380
+ }),
379
381
 
380
382
  /**
381
383
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -201,7 +201,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
201
201
  * The props used for each slot inside the Modal.
202
202
  * @default {}
203
203
  */
204
- componentsProps: _propTypes.default.object,
204
+ componentsProps: _propTypes.default.shape({
205
+ root: _propTypes.default.object
206
+ }),
205
207
 
206
208
  /**
207
209
  * An HTML element or function that returns one.
@@ -406,11 +406,11 @@ const shouldSpreadOwnerState = Component => {
406
406
  return !Component || !(0, _base.isHostComponent)(Component);
407
407
  };
408
408
 
409
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
409
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
410
410
  var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
411
411
 
412
412
  const props = (0, _useThemeProps.default)({
413
- props: inputProps,
413
+ props: sliderProps,
414
414
  name: 'MuiSlider'
415
415
  });
416
416
  const theme = (0, _useTheme.default)();
@@ -531,6 +531,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
531
531
  * @default {}
532
532
  */
533
533
  components: _propTypes.default.shape({
534
+ Input: _propTypes.default.elementType,
534
535
  Mark: _propTypes.default.elementType,
535
536
  MarkLabel: _propTypes.default.elementType,
536
537
  Rail: _propTypes.default.elementType,
@@ -544,7 +545,24 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
544
545
  * The props used for each slot inside the Slider.
545
546
  * @default {}
546
547
  */
547
- componentsProps: _propTypes.default.object,
548
+ componentsProps: _propTypes.default.shape({
549
+ input: _propTypes.default.object,
550
+ mark: _propTypes.default.object,
551
+ markLabel: _propTypes.default.object,
552
+ rail: _propTypes.default.object,
553
+ root: _propTypes.default.object,
554
+ thumb: _propTypes.default.object,
555
+ track: _propTypes.default.object,
556
+ valueLabel: _propTypes.default.shape({
557
+ className: _propTypes.default.string,
558
+ components: _propTypes.default.shape({
559
+ Root: _propTypes.default.elementType
560
+ }),
561
+ style: _propTypes.default.object,
562
+ value: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.number), _propTypes.default.number]),
563
+ valueLabelDisplay: _propTypes.default.oneOf(['auto', 'off', 'on'])
564
+ })
565
+ }),
548
566
 
549
567
  /**
550
568
  * The default value. Use when the component is not controlled.
@@ -227,7 +227,9 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
227
227
  * The props used for each slot inside.
228
228
  * @default {}
229
229
  */
230
- componentsProps: _propTypes.default.object,
230
+ componentsProps: _propTypes.default.shape({
231
+ label: _propTypes.default.object
232
+ }),
231
233
 
232
234
  /**
233
235
  * If `true`, the step is marked as failed.
@@ -322,6 +322,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
322
322
 
323
323
  /**
324
324
  * Props applied to the [`InputLabel`](/api/input-label/) element.
325
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
325
326
  */
326
327
  InputLabelProps: _propTypes.default.object,
327
328
 
@@ -712,7 +712,12 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
712
712
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
713
713
  * @default {}
714
714
  */
715
- componentsProps: _propTypes.default.object,
715
+ componentsProps: _propTypes.default.shape({
716
+ arrow: _propTypes.default.object,
717
+ popper: _propTypes.default.object,
718
+ tooltip: _propTypes.default.object,
719
+ transition: _propTypes.default.object
720
+ }),
716
721
 
717
722
  /**
718
723
  * Set to `true` if the `title` acts as an accessible description.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.7
1
+ /** @license MUI v5.2.8
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/material",
3
- "version": "5.2.7",
3
+ "version": "5.2.8",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.",
@@ -46,8 +46,8 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.16.3",
49
- "@mui/base": "5.0.0-alpha.63",
50
- "@mui/system": "^5.2.6",
49
+ "@mui/base": "5.0.0-alpha.64",
50
+ "@mui/system": "^5.2.8",
51
51
  "@mui/types": "^7.1.0",
52
52
  "@mui/utils": "^5.2.3",
53
53
  "@types/react-transition-group": "^4.4.4",
@@ -1 +1 @@
1
- export * from './transition';
1
+ export * from './transition';
@@ -1,13 +1,13 @@
1
- import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
- import * as React from 'react';
3
- export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
- export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
- export interface EasingProps {
6
- easing: string | {
7
- enter?: string;
8
- exit?: string;
9
- };
10
- }
11
- export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
- export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
- }
1
+ import { TransitionProps as _TransitionProps, TransitionActions } from 'react-transition-group/Transition';
2
+ import * as React from 'react';
3
+ export declare type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
4
+ export declare type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
5
+ export interface EasingProps {
6
+ easing: string | {
7
+ enter?: string;
8
+ exit?: string;
9
+ };
10
+ }
11
+ export declare type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
12
+ export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
13
+ }
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- export declare const reflow: (node: Element) => number;
3
- interface ComponentProps {
4
- easing: string | {
5
- enter?: string;
6
- exit?: string;
7
- } | undefined;
8
- style: React.CSSProperties | undefined;
9
- timeout: number | {
10
- enter?: number;
11
- exit?: number;
12
- };
13
- }
14
- interface Options {
15
- mode: 'enter' | 'exit';
16
- }
17
- interface TransitionProps {
18
- duration: string | number;
19
- easing: string | undefined;
20
- delay: string | undefined;
21
- }
22
- export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
- export {};
1
+ import * as React from 'react';
2
+ export declare const reflow: (node: Element) => number;
3
+ interface ComponentProps {
4
+ easing: string | {
5
+ enter?: string;
6
+ exit?: string;
7
+ } | undefined;
8
+ style: React.CSSProperties | undefined;
9
+ timeout: number | {
10
+ enter?: number;
11
+ exit?: number;
12
+ };
13
+ }
14
+ interface Options {
15
+ mode: 'enter' | 'exit';
16
+ }
17
+ interface TransitionProps {
18
+ duration: string | number;
19
+ easing: string | undefined;
20
+ delay: string | undefined;
21
+ }
22
+ export declare function getTransitionProps(props: ComponentProps, options: Options): TransitionProps;
23
+ export {};
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.2.7
1
+ /** @license MUI v5.2.8
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.
@@ -8624,7 +8624,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8624
8624
  * The props used for each slot inside the Backdrop.
8625
8625
  * @default {}
8626
8626
  */
8627
- componentsProps: propTypes.object,
8627
+ componentsProps: propTypes.shape({
8628
+ root: propTypes.object
8629
+ }),
8628
8630
 
8629
8631
  /**
8630
8632
  * If `true`, the backdrop is invisible.
@@ -8819,7 +8821,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
8819
8821
  * The props used for each slot inside the Badge.
8820
8822
  * @default {}
8821
8823
  */
8822
- componentsProps: propTypes.object,
8824
+ componentsProps: propTypes.shape({
8825
+ badge: propTypes.object,
8826
+ root: propTypes.object
8827
+ }),
8823
8828
 
8824
8829
  /**
8825
8830
  * If `true`, the badge is invisible.
@@ -9169,7 +9174,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9169
9174
  /**
9170
9175
  * @ignore
9171
9176
  */
9172
- componentsProps: propTypes.object,
9177
+ componentsProps: propTypes.shape({
9178
+ root: propTypes.object
9179
+ }),
9173
9180
 
9174
9181
  /**
9175
9182
  * If `true`, the component is disabled.
@@ -9559,7 +9566,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9559
9566
  /**
9560
9567
  * @ignore
9561
9568
  */
9562
- componentsProps: propTypes.object,
9569
+ componentsProps: propTypes.shape({
9570
+ root: propTypes.object
9571
+ }),
9563
9572
 
9564
9573
  /**
9565
9574
  * @ignore
@@ -9965,7 +9974,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
9965
9974
  * The props used for each slot inside the Input.
9966
9975
  * @default {}
9967
9976
  */
9968
- componentsProps: propTypes.object,
9977
+ componentsProps: propTypes.shape({
9978
+ input: propTypes.object,
9979
+ root: propTypes.object
9980
+ }),
9969
9981
 
9970
9982
  /**
9971
9983
  * The default value. Use when the component is not controlled.
@@ -11069,7 +11081,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
11069
11081
  * The props used for each slot inside the Modal.
11070
11082
  * @default {}
11071
11083
  */
11072
- componentsProps: propTypes.object,
11084
+ componentsProps: propTypes.shape({
11085
+ root: propTypes.object
11086
+ }),
11073
11087
 
11074
11088
  /**
11075
11089
  * An HTML element or function that returns one.
@@ -14123,7 +14137,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14123
14137
  const Mark = components.Mark || 'span';
14124
14138
  const markProps = componentsProps.mark || {};
14125
14139
  const MarkLabel = components.MarkLabel || 'span';
14126
- const markLabelProps = componentsProps.markLabel || {}; // all props with defaults
14140
+ const markLabelProps = componentsProps.markLabel || {};
14141
+ const Input = components.Input || 'input';
14142
+ const inputProps = componentsProps.input || {}; // all props with defaults
14127
14143
  // consider extracting to hook an reusing the lint rule for the varints
14128
14144
 
14129
14145
  const ownerState = _extends({}, props, {
@@ -14221,7 +14237,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14221
14237
  style: _extends({}, style, {
14222
14238
  pointerEvents: disableSwap && active !== index ? 'none' : undefined
14223
14239
  }, thumbProps.style),
14224
- children: /*#__PURE__*/jsxRuntime_1("input", {
14240
+ children: /*#__PURE__*/jsxRuntime_1(Input, _extends({
14225
14241
  tabIndex: tabIndex,
14226
14242
  "data-index": index,
14227
14243
  "aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
@@ -14246,8 +14262,10 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14246
14262
  // So that VoiceOver's focus indicator matches the thumb's dimensions
14247
14263
  width: '100%',
14248
14264
  height: '100%'
14249
- })
14250
- })
14265
+ }, inputProps.style)
14266
+ }, !isHostComponent(Input) && {
14267
+ ownerState: _extends({}, ownerState, inputProps.ownerState)
14268
+ }, inputProps))
14251
14269
  }))
14252
14270
  }))
14253
14271
  }, index);
@@ -14320,6 +14338,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14320
14338
  * @default {}
14321
14339
  */
14322
14340
  components: propTypes.shape({
14341
+ Input: propTypes.elementType,
14323
14342
  Mark: propTypes.elementType,
14324
14343
  MarkLabel: propTypes.elementType,
14325
14344
  Rail: propTypes.elementType,
@@ -14333,7 +14352,24 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14333
14352
  * The props used for each slot inside the Slider.
14334
14353
  * @default {}
14335
14354
  */
14336
- componentsProps: propTypes.object,
14355
+ componentsProps: propTypes.shape({
14356
+ input: propTypes.object,
14357
+ mark: propTypes.object,
14358
+ markLabel: propTypes.object,
14359
+ rail: propTypes.object,
14360
+ root: propTypes.object,
14361
+ thumb: propTypes.object,
14362
+ track: propTypes.object,
14363
+ valueLabel: propTypes.shape({
14364
+ className: propTypes.string,
14365
+ components: propTypes.shape({
14366
+ Root: propTypes.elementType
14367
+ }),
14368
+ style: propTypes.object,
14369
+ value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
14370
+ valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on'])
14371
+ })
14372
+ }),
14337
14373
 
14338
14374
  /**
14339
14375
  * The default value. Use when the component is not controlled.
@@ -14730,7 +14766,12 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14730
14766
  * The props used for each slot inside the Switch.
14731
14767
  * @default {}
14732
14768
  */
14733
- componentsProps: propTypes.object,
14769
+ componentsProps: propTypes.shape({
14770
+ input: propTypes.object,
14771
+ root: propTypes.object,
14772
+ thumb: propTypes.object,
14773
+ track: propTypes.object
14774
+ }),
14734
14775
 
14735
14776
  /**
14736
14777
  * The default checked state. Use when the component is not controlled.
@@ -14972,7 +15013,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
14972
15013
  * The props used for each slot inside the Tabs.
14973
15014
  * @default {}
14974
15015
  */
14975
- componentsProps: propTypes.object,
15016
+ componentsProps: propTypes.shape({
15017
+ root: propTypes.object
15018
+ }),
14976
15019
 
14977
15020
  /**
14978
15021
  * The default value. Use when the component is not controlled.
@@ -15132,7 +15175,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
15132
15175
  * The props used for each slot inside the TabPanel.
15133
15176
  * @default {}
15134
15177
  */
15135
- componentsProps: propTypes.object,
15178
+ componentsProps: propTypes.shape({
15179
+ root: propTypes.object
15180
+ }),
15136
15181
 
15137
15182
  /**
15138
15183
  * The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
@@ -15431,7 +15476,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
15431
15476
  * The props used for each slot inside the TabsList.
15432
15477
  * @default {}
15433
15478
  */
15434
- componentsProps: propTypes.object
15479
+ componentsProps: propTypes.shape({
15480
+ root: propTypes.object
15481
+ })
15435
15482
  } ;
15436
15483
  var TabsListUnstyled$1 = TabsListUnstyled;
15437
15484
 
@@ -15637,7 +15684,9 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
15637
15684
  * The props used for each slot inside the Tab.
15638
15685
  * @default {}
15639
15686
  */
15640
- componentsProps: propTypes.object,
15687
+ componentsProps: propTypes.shape({
15688
+ root: propTypes.object
15689
+ }),
15641
15690
 
15642
15691
  /**
15643
15692
  * If `true`, the component is disabled.
@@ -22629,7 +22678,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22629
22678
  * The props used for each slot inside.
22630
22679
  * @default {}
22631
22680
  */
22632
- componentsProps: propTypes.object,
22681
+ componentsProps: propTypes.shape({
22682
+ clearIndicator: propTypes.object
22683
+ }),
22633
22684
 
22634
22685
  /**
22635
22686
  * The default value. Use when the component is not controlled.
@@ -23776,7 +23827,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
23776
23827
  * The props used for each slot inside the Backdrop.
23777
23828
  * @default {}
23778
23829
  */
23779
- componentsProps: propTypes.object,
23830
+ componentsProps: propTypes.shape({
23831
+ root: propTypes.object
23832
+ }),
23780
23833
 
23781
23834
  /**
23782
23835
  * If `true`, the backdrop is invisible.
@@ -24097,7 +24150,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
24097
24150
  * The props used for each slot inside the Badge.
24098
24151
  * @default {}
24099
24152
  */
24100
- componentsProps: propTypes.object,
24153
+ componentsProps: propTypes.shape({
24154
+ badge: propTypes.object,
24155
+ root: propTypes.object
24156
+ }),
24101
24157
 
24102
24158
  /**
24103
24159
  * If `true`, the badge is invisible.
@@ -27497,7 +27553,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
27497
27553
  * The props used for each slot inside the Modal.
27498
27554
  * @default {}
27499
27555
  */
27500
- componentsProps: propTypes.object,
27556
+ componentsProps: propTypes.shape({
27557
+ root: propTypes.object
27558
+ }),
27501
27559
 
27502
27560
  /**
27503
27561
  * An HTML element or function that returns one.
@@ -30139,7 +30197,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
30139
30197
  * The props used for each slot inside the Input.
30140
30198
  * @default {}
30141
30199
  */
30142
- componentsProps: propTypes.object,
30200
+ componentsProps: propTypes.shape({
30201
+ input: propTypes.object,
30202
+ root: propTypes.object
30203
+ }),
30143
30204
 
30144
30205
  /**
30145
30206
  * The default value. Use when the component is not controlled.
@@ -30566,7 +30627,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
30566
30627
  * The props used for each slot inside the Input.
30567
30628
  * @default {}
30568
30629
  */
30569
- componentsProps: propTypes.object,
30630
+ componentsProps: propTypes.shape({
30631
+ input: propTypes.object,
30632
+ root: propTypes.object
30633
+ }),
30570
30634
 
30571
30635
  /**
30572
30636
  * The default value. Use when the component is not controlled.
@@ -31187,7 +31251,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
31187
31251
  * The props used for each slot inside.
31188
31252
  * @default {}
31189
31253
  */
31190
- componentsProps: propTypes.object,
31254
+ componentsProps: propTypes.shape({
31255
+ typography: propTypes.object
31256
+ }),
31191
31257
 
31192
31258
  /**
31193
31259
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -34115,7 +34181,10 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
34115
34181
  * The props used for each slot inside the Input.
34116
34182
  * @default {}
34117
34183
  */
34118
- componentsProps: propTypes.object,
34184
+ componentsProps: propTypes.shape({
34185
+ input: propTypes.object,
34186
+ root: propTypes.object
34187
+ }),
34119
34188
 
34120
34189
  /**
34121
34190
  * The default value. Use when the component is not controlled.
@@ -34523,6 +34592,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
34523
34592
  }, ownerState.size === 'small' && {
34524
34593
  transform: 'translate(12px, 13px) scale(1)'
34525
34594
  }, ownerState.shrink && _extends({
34595
+ userSelect: 'none',
34596
+ pointerEvents: 'auto',
34526
34597
  transform: 'translate(12px, 7px) scale(0.75)',
34527
34598
  maxWidth: 'calc(133% - 24px)'
34528
34599
  }, ownerState.size === 'small' && {
@@ -34536,6 +34607,8 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
34536
34607
  }, ownerState.size === 'small' && {
34537
34608
  transform: 'translate(14px, 9px) scale(1)'
34538
34609
  }, ownerState.shrink && {
34610
+ userSelect: 'none',
34611
+ pointerEvents: 'auto',
34539
34612
  maxWidth: 'calc(133% - 24px)',
34540
34613
  transform: 'translate(14px, -9px) scale(0.75)'
34541
34614
  })));
@@ -36069,7 +36142,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
36069
36142
  * The props used for each slot inside the Input.
36070
36143
  * @default {}
36071
36144
  */
36072
- componentsProps: propTypes.object,
36145
+ componentsProps: propTypes.shape({
36146
+ root: propTypes.object
36147
+ }),
36073
36148
 
36074
36149
  /**
36075
36150
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -42414,11 +42489,11 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42414
42489
  return !Component || !isHostComponent(Component);
42415
42490
  };
42416
42491
 
42417
- const Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(inputProps, ref) {
42492
+ const Slider = /*#__PURE__*/React__namespace.forwardRef(function Slider(sliderProps, ref) {
42418
42493
  var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
42419
42494
 
42420
42495
  const props = useThemeProps({
42421
- props: inputProps,
42496
+ props: sliderProps,
42422
42497
  name: 'MuiSlider'
42423
42498
  });
42424
42499
  const theme = useTheme();
@@ -42542,6 +42617,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42542
42617
  * @default {}
42543
42618
  */
42544
42619
  components: propTypes.shape({
42620
+ Input: propTypes.elementType,
42545
42621
  Mark: propTypes.elementType,
42546
42622
  MarkLabel: propTypes.elementType,
42547
42623
  Rail: propTypes.elementType,
@@ -42555,7 +42631,24 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
42555
42631
  * The props used for each slot inside the Slider.
42556
42632
  * @default {}
42557
42633
  */
42558
- componentsProps: propTypes.object,
42634
+ componentsProps: propTypes.shape({
42635
+ input: propTypes.object,
42636
+ mark: propTypes.object,
42637
+ markLabel: propTypes.object,
42638
+ rail: propTypes.object,
42639
+ root: propTypes.object,
42640
+ thumb: propTypes.object,
42641
+ track: propTypes.object,
42642
+ valueLabel: propTypes.shape({
42643
+ className: propTypes.string,
42644
+ components: propTypes.shape({
42645
+ Root: propTypes.elementType
42646
+ }),
42647
+ style: propTypes.object,
42648
+ value: propTypes.oneOfType([propTypes.arrayOf(propTypes.number), propTypes.number]),
42649
+ valueLabelDisplay: propTypes.oneOf(['auto', 'off', 'on'])
42650
+ })
42651
+ }),
42559
42652
 
42560
42653
  /**
42561
42654
  * The default value. Use when the component is not controlled.
@@ -44747,7 +44840,12 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
44747
44840
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
44748
44841
  * @default {}
44749
44842
  */
44750
- componentsProps: propTypes.object,
44843
+ componentsProps: propTypes.shape({
44844
+ arrow: propTypes.object,
44845
+ popper: propTypes.object,
44846
+ tooltip: propTypes.object,
44847
+ transition: propTypes.object
44848
+ }),
44751
44849
 
44752
44850
  /**
44753
44851
  * Set to `true` if the `title` acts as an accessible description.
@@ -46029,7 +46127,9 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
46029
46127
  * The props used for each slot inside.
46030
46128
  * @default {}
46031
46129
  */
46032
- componentsProps: propTypes.object,
46130
+ componentsProps: propTypes.shape({
46131
+ label: propTypes.object
46132
+ }),
46033
46133
 
46034
46134
  /**
46035
46135
  * If `true`, the step is marked as failed.
@@ -51047,6 +51147,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
51047
51147
 
51048
51148
  /**
51049
51149
  * Props applied to the [`InputLabel`](/api/input-label/) element.
51150
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
51050
51151
  */
51051
51152
  InputLabelProps: propTypes.object,
51052
51153