@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
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -733,7 +733,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
733
733
  * The props used for each slot inside.
734
734
  * @default {}
735
735
  */
736
- componentsProps: PropTypes.object,
736
+ componentsProps: PropTypes.shape({
737
+ clearIndicator: PropTypes.object
738
+ }),
737
739
 
738
740
  /**
739
741
  * The default value. Use when the component is not controlled.
@@ -123,7 +123,9 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
123
123
  * The props used for each slot inside the Backdrop.
124
124
  * @default {}
125
125
  */
126
- componentsProps: PropTypes.object,
126
+ componentsProps: PropTypes.shape({
127
+ root: PropTypes.object
128
+ }),
127
129
 
128
130
  /**
129
131
  * If `true`, the backdrop is invisible.
@@ -300,7 +300,10 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
300
300
  * The props used for each slot inside the Badge.
301
301
  * @default {}
302
302
  */
303
- componentsProps: PropTypes.object,
303
+ componentsProps: PropTypes.shape({
304
+ badge: PropTypes.object,
305
+ root: PropTypes.object
306
+ }),
304
307
 
305
308
  /**
306
309
  * If `true`, the badge is invisible.
File without changes
@@ -255,7 +255,10 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
255
255
  * The props used for each slot inside the Input.
256
256
  * @default {}
257
257
  */
258
- componentsProps: PropTypes.object,
258
+ componentsProps: PropTypes.shape({
259
+ input: PropTypes.object,
260
+ root: PropTypes.object
261
+ }),
259
262
 
260
263
  /**
261
264
  * The default value. Use when the component is not controlled.
@@ -156,7 +156,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
156
156
  * The props used for each slot inside.
157
157
  * @default {}
158
158
  */
159
- componentsProps: PropTypes.object,
159
+ componentsProps: PropTypes.shape({
160
+ typography: PropTypes.object
161
+ }),
160
162
 
161
163
  /**
162
164
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -190,7 +190,10 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
190
190
  * The props used for each slot inside the Input.
191
191
  * @default {}
192
192
  */
193
- componentsProps: PropTypes.object,
193
+ componentsProps: PropTypes.shape({
194
+ input: PropTypes.object,
195
+ root: PropTypes.object
196
+ }),
194
197
 
195
198
  /**
196
199
  * The default value. Use when the component is not controlled.
@@ -561,7 +561,10 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
561
561
  * The props used for each slot inside the Input.
562
562
  * @default {}
563
563
  */
564
- componentsProps: PropTypes.object,
564
+ componentsProps: PropTypes.shape({
565
+ input: PropTypes.object,
566
+ root: PropTypes.object
567
+ }),
565
568
 
566
569
  /**
567
570
  * The default value. Use when the component is not controlled.
@@ -78,6 +78,8 @@ var InputLabelRoot = styled(FormLabel, {
78
78
  }, ownerState.size === 'small' && {
79
79
  transform: 'translate(12px, 13px) scale(1)'
80
80
  }, ownerState.shrink && _extends({
81
+ userSelect: 'none',
82
+ pointerEvents: 'auto',
81
83
  transform: 'translate(12px, 7px) scale(0.75)',
82
84
  maxWidth: 'calc(133% - 24px)'
83
85
  }, ownerState.size === 'small' && {
@@ -91,6 +93,8 @@ var InputLabelRoot = styled(FormLabel, {
91
93
  }, ownerState.size === 'small' && {
92
94
  transform: 'translate(14px, 9px) scale(1)'
93
95
  }, ownerState.shrink && {
96
+ userSelect: 'none',
97
+ pointerEvents: 'auto',
94
98
  maxWidth: 'calc(133% - 24px)',
95
99
  transform: 'translate(14px, -9px) scale(0.75)'
96
100
  }));
@@ -348,7 +348,9 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
348
348
  * The props used for each slot inside the Input.
349
349
  * @default {}
350
350
  */
351
- componentsProps: PropTypes.object,
351
+ componentsProps: PropTypes.shape({
352
+ root: PropTypes.object
353
+ }),
352
354
 
353
355
  /**
354
356
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -194,7 +194,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
194
194
  * The props used for each slot inside the Modal.
195
195
  * @default {}
196
196
  */
197
- componentsProps: PropTypes.object,
197
+ componentsProps: PropTypes.shape({
198
+ root: PropTypes.object
199
+ }),
198
200
 
199
201
  /**
200
202
  * An HTML element or function that returns one.
@@ -384,11 +384,11 @@ var shouldSpreadOwnerState = function shouldSpreadOwnerState(Component) {
384
384
  return !Component || !isHostComponent(Component);
385
385
  };
386
386
 
387
- var Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
387
+ var Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
388
388
  var _componentsProps$root, _componentsProps$thum, _componentsProps$trac, _componentsProps$valu;
389
389
 
390
390
  var props = useThemeProps({
391
- props: inputProps,
391
+ props: sliderProps,
392
392
  name: 'MuiSlider'
393
393
  });
394
394
  var theme = useTheme();
@@ -514,6 +514,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
514
514
  * @default {}
515
515
  */
516
516
  components: PropTypes.shape({
517
+ Input: PropTypes.elementType,
517
518
  Mark: PropTypes.elementType,
518
519
  MarkLabel: PropTypes.elementType,
519
520
  Rail: PropTypes.elementType,
@@ -527,7 +528,24 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
527
528
  * The props used for each slot inside the Slider.
528
529
  * @default {}
529
530
  */
530
- componentsProps: PropTypes.object,
531
+ componentsProps: PropTypes.shape({
532
+ input: PropTypes.object,
533
+ mark: PropTypes.object,
534
+ markLabel: PropTypes.object,
535
+ rail: PropTypes.object,
536
+ root: PropTypes.object,
537
+ thumb: PropTypes.object,
538
+ track: PropTypes.object,
539
+ valueLabel: PropTypes.shape({
540
+ className: PropTypes.string,
541
+ components: PropTypes.shape({
542
+ Root: PropTypes.elementType
543
+ }),
544
+ style: PropTypes.object,
545
+ value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
546
+ valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
547
+ })
548
+ }),
531
549
 
532
550
  /**
533
551
  * The default value. Use when the component is not controlled.
@@ -209,7 +209,9 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
209
209
  * The props used for each slot inside.
210
210
  * @default {}
211
211
  */
212
- componentsProps: PropTypes.object,
212
+ componentsProps: PropTypes.shape({
213
+ label: PropTypes.object
214
+ }),
213
215
 
214
216
  /**
215
217
  * If `true`, the step is marked as failed.
@@ -302,6 +302,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
302
302
 
303
303
  /**
304
304
  * Props applied to the [`InputLabel`](/api/input-label/) element.
305
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
305
306
  */
306
307
  InputLabelProps: PropTypes.object,
307
308
 
@@ -705,7 +705,12 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
705
705
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
706
706
  * @default {}
707
707
  */
708
- componentsProps: PropTypes.object,
708
+ componentsProps: PropTypes.shape({
709
+ arrow: PropTypes.object,
710
+ popper: PropTypes.object,
711
+ tooltip: PropTypes.object,
712
+ transition: PropTypes.object
713
+ }),
709
714
 
710
715
  /**
711
716
  * Set to `true` if the `title` acts as an accessible description.
package/legacy/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/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;
@@ -699,7 +699,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
699
699
  * The props used for each slot inside.
700
700
  * @default {}
701
701
  */
702
- componentsProps: PropTypes.object,
702
+ componentsProps: PropTypes.shape({
703
+ clearIndicator: PropTypes.object
704
+ }),
703
705
 
704
706
  /**
705
707
  * The default value. Use when the component is not controlled.
@@ -124,7 +124,9 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
124
124
  * The props used for each slot inside the Backdrop.
125
125
  * @default {}
126
126
  */
127
- componentsProps: PropTypes.object,
127
+ componentsProps: PropTypes.shape({
128
+ root: PropTypes.object
129
+ }),
128
130
 
129
131
  /**
130
132
  * If `true`, the backdrop is invisible.
@@ -298,7 +298,10 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
298
298
  * The props used for each slot inside the Badge.
299
299
  * @default {}
300
300
  */
301
- componentsProps: PropTypes.object,
301
+ componentsProps: PropTypes.shape({
302
+ badge: PropTypes.object,
303
+ root: PropTypes.object
304
+ }),
302
305
 
303
306
  /**
304
307
  * If `true`, the badge is invisible.
File without changes
@@ -257,7 +257,10 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes
257
257
  * The props used for each slot inside the Input.
258
258
  * @default {}
259
259
  */
260
- componentsProps: PropTypes.object,
260
+ componentsProps: PropTypes.shape({
261
+ input: PropTypes.object,
262
+ root: PropTypes.object
263
+ }),
261
264
 
262
265
  /**
263
266
  * The default value. Use when the component is not controlled.
@@ -162,7 +162,9 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes
162
162
  * The props used for each slot inside.
163
163
  * @default {}
164
164
  */
165
- componentsProps: PropTypes.object,
165
+ componentsProps: PropTypes.shape({
166
+ typography: PropTypes.object
167
+ }),
166
168
 
167
169
  /**
168
170
  * A control element. For instance, it can be a `Radio`, a `Switch` or a `Checkbox`.
@@ -192,7 +192,10 @@ process.env.NODE_ENV !== "production" ? Input.propTypes
192
192
  * The props used for each slot inside the Input.
193
193
  * @default {}
194
194
  */
195
- componentsProps: PropTypes.object,
195
+ componentsProps: PropTypes.shape({
196
+ input: PropTypes.object,
197
+ root: PropTypes.object
198
+ }),
196
199
 
197
200
  /**
198
201
  * The default value. Use when the component is not controlled.
@@ -552,7 +552,10 @@ process.env.NODE_ENV !== "production" ? InputBase.propTypes
552
552
  * The props used for each slot inside the Input.
553
553
  * @default {}
554
554
  */
555
- componentsProps: PropTypes.object,
555
+ componentsProps: PropTypes.shape({
556
+ input: PropTypes.object,
557
+ root: PropTypes.object
558
+ }),
556
559
 
557
560
  /**
558
561
  * The default value. Use when the component is not controlled.
@@ -82,6 +82,8 @@ const InputLabelRoot = styled(FormLabel, {
82
82
  }, ownerState.size === 'small' && {
83
83
  transform: 'translate(12px, 13px) scale(1)'
84
84
  }, ownerState.shrink && _extends({
85
+ userSelect: 'none',
86
+ pointerEvents: 'auto',
85
87
  transform: 'translate(12px, 7px) scale(0.75)',
86
88
  maxWidth: 'calc(133% - 24px)'
87
89
  }, ownerState.size === 'small' && {
@@ -95,6 +97,8 @@ const InputLabelRoot = styled(FormLabel, {
95
97
  }, ownerState.size === 'small' && {
96
98
  transform: 'translate(14px, 9px) scale(1)'
97
99
  }, ownerState.shrink && {
100
+ userSelect: 'none',
101
+ pointerEvents: 'auto',
98
102
  maxWidth: 'calc(133% - 24px)',
99
103
  transform: 'translate(14px, -9px) scale(0.75)'
100
104
  })));
@@ -346,7 +346,9 @@ process.env.NODE_ENV !== "production" ? ListItem.propTypes
346
346
  * The props used for each slot inside the Input.
347
347
  * @default {}
348
348
  */
349
- componentsProps: PropTypes.object,
349
+ componentsProps: PropTypes.shape({
350
+ root: PropTypes.object
351
+ }),
350
352
 
351
353
  /**
352
354
  * The container component used when a `ListItemSecondaryAction` is the last child.
@@ -177,7 +177,9 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes
177
177
  * The props used for each slot inside the Modal.
178
178
  * @default {}
179
179
  */
180
- componentsProps: PropTypes.object,
180
+ componentsProps: PropTypes.shape({
181
+ root: PropTypes.object
182
+ }),
181
183
 
182
184
  /**
183
185
  * An HTML element or function that returns one.
@@ -370,9 +370,9 @@ const shouldSpreadOwnerState = Component => {
370
370
  return !Component || !isHostComponent(Component);
371
371
  };
372
372
 
373
- const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
373
+ const Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
374
374
  const props = useThemeProps({
375
- props: inputProps,
375
+ props: sliderProps,
376
376
  name: 'MuiSlider'
377
377
  });
378
378
  const theme = useTheme();
@@ -496,6 +496,7 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
496
496
  * @default {}
497
497
  */
498
498
  components: PropTypes.shape({
499
+ Input: PropTypes.elementType,
499
500
  Mark: PropTypes.elementType,
500
501
  MarkLabel: PropTypes.elementType,
501
502
  Rail: PropTypes.elementType,
@@ -509,7 +510,24 @@ process.env.NODE_ENV !== "production" ? Slider.propTypes
509
510
  * The props used for each slot inside the Slider.
510
511
  * @default {}
511
512
  */
512
- componentsProps: PropTypes.object,
513
+ componentsProps: PropTypes.shape({
514
+ input: PropTypes.object,
515
+ mark: PropTypes.object,
516
+ markLabel: PropTypes.object,
517
+ rail: PropTypes.object,
518
+ root: PropTypes.object,
519
+ thumb: PropTypes.object,
520
+ track: PropTypes.object,
521
+ valueLabel: PropTypes.shape({
522
+ className: PropTypes.string,
523
+ components: PropTypes.shape({
524
+ Root: PropTypes.elementType
525
+ }),
526
+ style: PropTypes.object,
527
+ value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
528
+ valueLabelDisplay: PropTypes.oneOf(['auto', 'off', 'on'])
529
+ })
530
+ }),
513
531
 
514
532
  /**
515
533
  * The default value. Use when the component is not controlled.
@@ -205,7 +205,9 @@ process.env.NODE_ENV !== "production" ? StepLabel.propTypes
205
205
  * The props used for each slot inside.
206
206
  * @default {}
207
207
  */
208
- componentsProps: PropTypes.object,
208
+ componentsProps: PropTypes.shape({
209
+ label: PropTypes.object
210
+ }),
209
211
 
210
212
  /**
211
213
  * If `true`, the step is marked as failed.
@@ -296,6 +296,7 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes
296
296
 
297
297
  /**
298
298
  * Props applied to the [`InputLabel`](/api/input-label/) element.
299
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
299
300
  */
300
301
  InputLabelProps: PropTypes.object,
301
302
 
@@ -673,7 +673,12 @@ process.env.NODE_ENV !== "production" ? Tooltip.propTypes
673
673
  * and `componentsProps.transition` prop values win over `TransitionProps` if both are applied.
674
674
  * @default {}
675
675
  */
676
- componentsProps: PropTypes.object,
676
+ componentsProps: PropTypes.shape({
677
+ arrow: PropTypes.object,
678
+ popper: PropTypes.object,
679
+ tooltip: PropTypes.object,
680
+ transition: PropTypes.object
681
+ }),
677
682
 
678
683
  /**
679
684
  * Set to `true` if the `title` acts as an accessible description.
package/modern/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.
@@ -742,7 +742,9 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
742
742
  * The props used for each slot inside.
743
743
  * @default {}
744
744
  */
745
- componentsProps: _propTypes.default.object,
745
+ componentsProps: _propTypes.default.shape({
746
+ clearIndicator: _propTypes.default.object
747
+ }),
746
748
 
747
749
  /**
748
750
  * The default value. Use when the component is not controlled.
@@ -148,7 +148,9 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
148
148
  * The props used for each slot inside the Backdrop.
149
149
  * @default {}
150
150
  */
151
- componentsProps: _propTypes.default.object,
151
+ componentsProps: _propTypes.default.shape({
152
+ root: _propTypes.default.object
153
+ }),
152
154
 
153
155
  /**
154
156
  * If `true`, the backdrop is invisible.
@@ -323,7 +323,10 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
323
323
  * The props used for each slot inside the Badge.
324
324
  * @default {}
325
325
  */
326
- componentsProps: _propTypes.default.object,
326
+ componentsProps: _propTypes.default.shape({
327
+ badge: _propTypes.default.object,
328
+ root: _propTypes.default.object
329
+ }),
327
330
 
328
331
  /**
329
332
  * If `true`, the badge is invisible.
File without changes