@mui/material 5.3.0 → 5.3.1

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 (147) 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 +1 -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/BottomNavigation/BottomNavigation.js +0 -0
  13. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  14. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  15. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  16. package/Button/buttonClasses.d.ts +76 -76
  17. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  18. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  19. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  20. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  21. package/CHANGELOG.md +52 -1
  22. package/Card/cardClasses.d.ts +8 -8
  23. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  24. package/CardActions/cardActionsClasses.d.ts +10 -10
  25. package/CardContent/cardContentClasses.d.ts +8 -8
  26. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  27. package/CardMedia/cardMediaClasses.d.ts +12 -12
  28. package/Checkbox/checkboxClasses.d.ts +18 -18
  29. package/Chip/chipClasses.d.ts +80 -80
  30. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  31. package/ClickAwayListener/index.d.ts +2 -2
  32. package/Collapse/collapseClasses.d.ts +18 -18
  33. package/Container/containerClasses.d.ts +22 -22
  34. package/Dialog/DialogContext.d.ts +6 -6
  35. package/Dialog/dialogClasses.d.ts +36 -36
  36. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  37. package/DialogContent/dialogContentClasses.d.ts +10 -10
  38. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  39. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  40. package/Divider/dividerClasses.d.ts +34 -34
  41. package/Drawer/drawerClasses.d.ts +30 -30
  42. package/Fab/fabClasses.d.ts +26 -26
  43. package/FilledInput/filledInputClasses.d.ts +40 -40
  44. package/FormControl/formControlClasses.d.ts +14 -14
  45. package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
  46. package/FormGroup/formGroupClasses.d.ts +10 -10
  47. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  48. package/FormLabel/formLabelClasses.d.ts +22 -22
  49. package/Grid/gridClasses.d.ts +48 -48
  50. package/Icon/iconClasses.d.ts +24 -24
  51. package/IconButton/iconButtonClasses.d.ts +26 -26
  52. package/ImageList/imageListClasses.d.ts +16 -16
  53. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  54. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  55. package/Input/inputClasses.d.ts +34 -34
  56. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  57. package/InputBase/inputBaseClasses.d.ts +44 -44
  58. package/InputLabel/inputLabelClasses.d.ts +32 -32
  59. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  60. package/Link/linkClasses.d.ts +18 -18
  61. package/List/listClasses.d.ts +14 -14
  62. package/ListItem/listItemClasses.d.ts +30 -30
  63. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  64. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  65. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  66. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  67. package/ListItemText/listItemTextClasses.d.ts +18 -18
  68. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  69. package/Menu/menuClasses.d.ts +12 -12
  70. package/MenuItem/menuItemClasses.d.ts +20 -20
  71. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  72. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  73. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  74. package/Pagination/paginationClasses.d.ts +14 -14
  75. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  76. package/Paper/paperClasses.d.ts +39 -39
  77. package/Popover/popoverClasses.d.ts +10 -10
  78. package/Popper/Popper.d.ts +17 -17
  79. package/Radio/radioClasses.d.ts +16 -16
  80. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  81. package/RadioGroup/useRadioGroup.d.ts +4 -4
  82. package/Rating/ratingClasses.d.ts +40 -40
  83. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  84. package/Select/selectClasses.d.ts +30 -30
  85. package/Skeleton/skeletonClasses.d.ts +24 -24
  86. package/Snackbar/snackbarClasses.d.ts +20 -20
  87. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  88. package/SpeedDial/speedDialClasses.d.ts +22 -22
  89. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  90. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  91. package/Step/stepClasses.d.ts +16 -16
  92. package/StepButton/stepButtonClasses.d.ts +14 -14
  93. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  94. package/StepContent/stepContentClasses.d.ts +12 -12
  95. package/StepIcon/stepIconClasses.d.ts +16 -16
  96. package/StepLabel/stepLabelClasses.d.ts +28 -28
  97. package/Stepper/stepperClasses.d.ts +14 -14
  98. package/SvgIcon/SvgIcon.js +9 -9
  99. package/SvgIcon/svgIconClasses.d.ts +24 -24
  100. package/Switch/switchClasses.d.ts +32 -32
  101. package/Tab/tabClasses.d.ts +26 -26
  102. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  103. package/Table/tableClasses.d.ts +10 -10
  104. package/TableBody/tableBodyClasses.d.ts +8 -8
  105. package/TableCell/tableCellClasses.d.ts +32 -32
  106. package/TableContainer/tableContainerClasses.d.ts +8 -8
  107. package/TableFooter/tableFooterClasses.d.ts +8 -8
  108. package/TableHead/tableHeadClasses.d.ts +8 -8
  109. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  110. package/TableRow/tableRowClasses.d.ts +16 -16
  111. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  112. package/Tabs/tabsClasses.d.ts +32 -32
  113. package/TextField/textFieldClasses.d.ts +8 -8
  114. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  115. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  116. package/Toolbar/toolbarClasses.d.ts +14 -14
  117. package/Tooltip/tooltipClasses.d.ts +30 -30
  118. package/Typography/typographyClasses.d.ts +50 -50
  119. package/darkScrollbar/index.d.ts +28 -28
  120. package/index.js +1 -1
  121. package/internal/switchBaseClasses.d.ts +12 -12
  122. package/legacy/Autocomplete/Autocomplete.js +1 -1
  123. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  124. package/legacy/SvgIcon/SvgIcon.js +9 -9
  125. package/legacy/index.js +1 -1
  126. package/locale/index.d.ts +68 -68
  127. package/modern/Autocomplete/Autocomplete.js +1 -1
  128. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  129. package/modern/SvgIcon/SvgIcon.js +8 -8
  130. package/modern/index.js +1 -1
  131. package/node/Autocomplete/Autocomplete.js +1 -1
  132. package/node/BottomNavigation/BottomNavigation.js +0 -0
  133. package/node/SvgIcon/SvgIcon.js +9 -9
  134. package/node/index.js +1 -1
  135. package/package.json +2 -2
  136. package/transitions/index.d.ts +1 -1
  137. package/transitions/transition.d.ts +13 -13
  138. package/transitions/utils.d.ts +23 -23
  139. package/umd/material-ui.development.js +21 -21
  140. package/umd/material-ui.production.min.js +2 -2
  141. package/useMediaQuery/useMediaQuery.d.ts +27 -27
  142. package/useTouchRipple/index.d.ts +1 -1
  143. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  144. package/utils/getScrollbarSize.d.ts +2 -2
  145. package/utils/ownerDocument.d.ts +2 -2
  146. package/utils/ownerWindow.d.ts +2 -2
  147. package/utils/setRef.d.ts +2 -2
package/locale/index.d.ts CHANGED
@@ -1,68 +1,68 @@
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 arSD: Localization;
27
- export declare const azAZ: Localization;
28
- export declare const bnBD: Localization;
29
- export declare const bgBG: Localization;
30
- export declare const caES: Localization;
31
- export declare const csCZ: Localization;
32
- export declare const daDK: Localization;
33
- export declare const deDE: Localization;
34
- export declare const elGR: Localization;
35
- export declare const enUS: Localization;
36
- export declare const esES: Localization;
37
- export declare const etEE: Localization;
38
- export declare const faIR: Localization;
39
- export declare const fiFI: Localization;
40
- export declare const frFR: Localization;
41
- export declare const heIL: Localization;
42
- export declare const hiIN: Localization;
43
- export declare const huHU: Localization;
44
- export declare const hyAM: Localization;
45
- export declare const idID: Localization;
46
- export declare const isIS: Localization;
47
- export declare const itIT: Localization;
48
- export declare const jaJP: Localization;
49
- export declare const khKH: Localization;
50
- export declare const koKR: Localization;
51
- export declare const kzKZ: Localization;
52
- export declare const nbNO: Localization;
53
- export declare const nlNL: Localization;
54
- export declare const plPL: Localization;
55
- export declare const ptBR: Localization;
56
- export declare const ptPT: Localization;
57
- export declare const roRO: Localization;
58
- export declare const ruRU: Localization;
59
- export declare const siLK: Localization;
60
- export declare const skSK: Localization;
61
- export declare const svSE: Localization;
62
- export declare const thTH: Localization;
63
- export declare const trTR: Localization;
64
- export declare const ukUA: Localization;
65
- export declare const viVN: Localization;
66
- export declare const zhCN: Localization;
67
- export declare const zhHK: Localization;
68
- 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 arSD: Localization;
27
+ export declare const azAZ: Localization;
28
+ export declare const bnBD: Localization;
29
+ export declare const bgBG: Localization;
30
+ export declare const caES: Localization;
31
+ export declare const csCZ: Localization;
32
+ export declare const daDK: Localization;
33
+ export declare const deDE: Localization;
34
+ export declare const elGR: Localization;
35
+ export declare const enUS: Localization;
36
+ export declare const esES: Localization;
37
+ export declare const etEE: Localization;
38
+ export declare const faIR: Localization;
39
+ export declare const fiFI: Localization;
40
+ export declare const frFR: Localization;
41
+ export declare const heIL: Localization;
42
+ export declare const hiIN: Localization;
43
+ export declare const huHU: Localization;
44
+ export declare const hyAM: Localization;
45
+ export declare const idID: Localization;
46
+ export declare const isIS: Localization;
47
+ export declare const itIT: Localization;
48
+ export declare const jaJP: Localization;
49
+ export declare const khKH: Localization;
50
+ export declare const koKR: Localization;
51
+ export declare const kzKZ: Localization;
52
+ export declare const nbNO: Localization;
53
+ export declare const nlNL: Localization;
54
+ export declare const plPL: Localization;
55
+ export declare const ptBR: Localization;
56
+ export declare const ptPT: Localization;
57
+ export declare const roRO: Localization;
58
+ export declare const ruRU: Localization;
59
+ export declare const siLK: Localization;
60
+ export declare const skSK: Localization;
61
+ export declare const svSE: Localization;
62
+ export declare const thTH: Localization;
63
+ export declare const trTR: Localization;
64
+ export declare const ukUA: Localization;
65
+ export declare const viVN: Localization;
66
+ export declare const zhCN: Localization;
67
+ export declare const zhHK: Localization;
68
+ export declare const zhTW: Localization;
@@ -669,7 +669,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
669
669
  * If `true`, the input's text is cleared on blur if no value is selected.
670
670
  *
671
671
  * Set to `true` if you want to help the user enter a new value.
672
- * Set to `false` if you want to help the user resume his search.
672
+ * Set to `false` if you want to help the user resume their search.
673
673
  * @default !props.freeSolo
674
674
  */
675
675
  clearOnBlur: PropTypes.bool,
File without changes
@@ -43,19 +43,19 @@ const SvgIconRoot = styled('svg', {
43
43
  display: 'inline-block',
44
44
  fill: 'currentColor',
45
45
  flexShrink: 0,
46
- transition: theme.transitions.create('fill', {
47
- duration: theme.transitions.duration.shorter
46
+ transition: theme.transitions?.create?.('fill', {
47
+ duration: theme.transitions?.duration?.shorter
48
48
  }),
49
49
  fontSize: {
50
50
  inherit: 'inherit',
51
- small: theme.typography.pxToRem(20),
52
- medium: theme.typography.pxToRem(24),
53
- large: theme.typography.pxToRem(35)
51
+ small: theme.typography?.pxToRem?.(20) || '1.25rem',
52
+ medium: theme.typography?.pxToRem?.(24) || '1.5rem',
53
+ large: theme.typography?.pxToRem?.(35) || '2.1875'
54
54
  }[ownerState.fontSize],
55
55
  // TODO v5 deprecate, v6 remove for sx
56
- color: theme.palette[ownerState.color]?.main ?? {
57
- action: theme.palette.action.active,
58
- disabled: theme.palette.action.disabled,
56
+ color: theme.palette?.[ownerState.color]?.main ?? {
57
+ action: theme.palette?.action?.active,
58
+ disabled: theme.palette?.action?.disabled,
59
59
  inherit: undefined
60
60
  }[ownerState.color]
61
61
  }));
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.3.0
1
+ /** @license MUI v5.3.1
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.
@@ -712,7 +712,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
712
712
  * If `true`, the input's text is cleared on blur if no value is selected.
713
713
  *
714
714
  * Set to `true` if you want to help the user enter a new value.
715
- * Set to `false` if you want to help the user resume his search.
715
+ * Set to `false` if you want to help the user resume their search.
716
716
  * @default !props.freeSolo
717
717
  */
718
718
  clearOnBlur: _propTypes.default.bool,
File without changes
@@ -60,7 +60,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
60
60
  theme,
61
61
  ownerState
62
62
  }) => {
63
- var _theme$palette$ownerS, _theme$palette$ownerS2;
63
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
64
64
 
65
65
  return {
66
66
  userSelect: 'none',
@@ -69,19 +69,19 @@ const SvgIconRoot = (0, _styled.default)('svg', {
69
69
  display: 'inline-block',
70
70
  fill: 'currentColor',
71
71
  flexShrink: 0,
72
- transition: theme.transitions.create('fill', {
73
- duration: theme.transitions.duration.shorter
72
+ transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
73
+ duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
74
74
  }),
75
75
  fontSize: {
76
76
  inherit: 'inherit',
77
- small: theme.typography.pxToRem(20),
78
- medium: theme.typography.pxToRem(24),
79
- large: theme.typography.pxToRem(35)
77
+ small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
78
+ medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
79
+ large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
80
80
  }[ownerState.fontSize],
81
81
  // TODO v5 deprecate, v6 remove for sx
82
- color: (_theme$palette$ownerS = (_theme$palette$ownerS2 = theme.palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
83
- action: theme.palette.action.active,
84
- disabled: theme.palette.action.disabled,
82
+ color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
83
+ action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
84
+ disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
85
85
  inherit: undefined
86
86
  }[ownerState.color]
87
87
  };
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.3.0
1
+ /** @license MUI v5.3.1
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.3.0",
3
+ "version": "5.3.1",
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,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.16.7",
49
- "@mui/base": "5.0.0-alpha.65",
49
+ "@mui/base": "5.0.0-alpha.66",
50
50
  "@mui/system": "^5.3.0",
51
51
  "@mui/types": "^7.1.0",
52
52
  "@mui/utils": "^5.3.0",
@@ -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.3.0
1
+ /** @license MUI v5.3.1
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.
@@ -13544,13 +13544,15 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13544
13544
  return acc;
13545
13545
  }, null)) != null ? _values$reduce : {};
13546
13546
  return closestIndex;
13547
- } // TODO: Set the correct event type
13548
-
13547
+ }
13549
13548
 
13550
13549
  function trackFinger(event, touchId) {
13550
+ // The event is TouchEvent
13551
13551
  if (touchId.current !== undefined && event.changedTouches) {
13552
- for (let i = 0; i < event.changedTouches.length; i += 1) {
13553
- const touch = event.changedTouches[i];
13552
+ const touchEvent = event;
13553
+
13554
+ for (let i = 0; i < touchEvent.changedTouches.length; i += 1) {
13555
+ const touch = touchEvent.changedTouches[i];
13554
13556
 
13555
13557
  if (touch.identifier === touchId.current) {
13556
13558
  return {
@@ -13561,7 +13563,8 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13561
13563
  }
13562
13564
 
13563
13565
  return false;
13564
- }
13566
+ } // The event is MouseEvent
13567
+
13565
13568
 
13566
13569
  return {
13567
13570
  x: event.clientX,
@@ -13617,7 +13620,6 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13617
13620
  if (!((_sliderRef$current = sliderRef.current) != null && _sliderRef$current.contains(doc.activeElement)) || Number(doc == null ? void 0 : (_doc$activeElement = doc.activeElement) == null ? void 0 : _doc$activeElement.getAttribute('data-index')) !== activeIndex) {
13618
13621
  var _sliderRef$current2;
13619
13622
 
13620
- // @ts-ignore TODO: Property focus does not exists on type string
13621
13623
  (_sliderRef$current2 = sliderRef.current) == null ? void 0 : _sliderRef$current2.querySelector(`[type="range"][data-index="${activeIndex}"]`).focus();
13622
13624
  }
13623
13625
 
@@ -13716,8 +13718,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13716
13718
  // This allows seamless integration with the most popular form libraries.
13717
13719
  // https://github.com/mui-org/material-ui/issues/13485#issuecomment-676048492
13718
13720
  // Clone the event to not override `target` of the original event.
13719
- // @ts-ignore nativeEvent does not exists on Event
13720
- const nativeEvent = event.nativeEvent || event; // @ts-ignore TODO: check this again
13721
+ const nativeEvent = event.nativeEvent || event; // @ts-ignore The nativeEvent is function, not object
13721
13722
 
13722
13723
  const clonedEvent = new nativeEvent.constructor(nativeEvent.type, nativeEvent);
13723
13724
  Object.defineProperty(clonedEvent, 'target', {
@@ -13726,8 +13727,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
13726
13727
  value,
13727
13728
  name
13728
13729
  }
13729
- }); // @ts-ignore TODO: value could be undefined?
13730
-
13730
+ });
13731
13731
  onChange(clonedEvent, value, thumbIndex);
13732
13732
  });
13733
13733
 
@@ -16970,7 +16970,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16970
16970
  theme,
16971
16971
  ownerState
16972
16972
  }) => {
16973
- var _theme$palette$ownerS, _theme$palette$ownerS2;
16973
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
16974
16974
 
16975
16975
  return {
16976
16976
  userSelect: 'none',
@@ -16979,19 +16979,19 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
16979
16979
  display: 'inline-block',
16980
16980
  fill: 'currentColor',
16981
16981
  flexShrink: 0,
16982
- transition: theme.transitions.create('fill', {
16983
- duration: theme.transitions.duration.shorter
16982
+ transition: (_theme$transitions = theme.transitions) == null ? void 0 : (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
16983
+ duration: (_theme$transitions2 = theme.transitions) == null ? void 0 : (_theme$transitions2$d = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2$d.shorter
16984
16984
  }),
16985
16985
  fontSize: {
16986
16986
  inherit: 'inherit',
16987
- small: theme.typography.pxToRem(20),
16988
- medium: theme.typography.pxToRem(24),
16989
- large: theme.typography.pxToRem(35)
16987
+ small: ((_theme$typography = theme.typography) == null ? void 0 : (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
16988
+ medium: ((_theme$typography2 = theme.typography) == null ? void 0 : (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
16989
+ large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
16990
16990
  }[ownerState.fontSize],
16991
16991
  // TODO v5 deprecate, v6 remove for sx
16992
- color: (_theme$palette$ownerS = (_theme$palette$ownerS2 = theme.palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
16993
- action: theme.palette.action.active,
16994
- disabled: theme.palette.action.disabled,
16992
+ color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
16993
+ action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
16994
+ disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
16995
16995
  inherit: undefined
16996
16996
  }[ownerState.color]
16997
16997
  };
@@ -22776,7 +22776,7 @@ See https://mui.com/r/migration-v4/#material-ui-core-styles for more details.` )
22776
22776
  * If `true`, the input's text is cleared on blur if no value is selected.
22777
22777
  *
22778
22778
  * Set to `true` if you want to help the user enter a new value.
22779
- * Set to `false` if you want to help the user resume his search.
22779
+ * Set to `false` if you want to help the user resume their search.
22780
22780
  * @default !props.freeSolo
22781
22781
  */
22782
22782
  clearOnBlur: propTypes.bool,