@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.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +3 -1
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.js +3 -1
- package/Badge/Badge.js +4 -1
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +75 -32
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +4 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +3 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +18 -18
- package/FormGroup/formGroupClasses.d.ts +10 -10
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +4 -1
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +4 -1
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/InputLabel.js +4 -0
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +3 -1
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +3 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +17 -17
- package/README.md +2 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.d.ts +2 -0
- package/Slider/Slider.js +21 -3
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +3 -1
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/TextField.d.ts +1 -0
- package/TextField/TextField.js +1 -0
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +6 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +3 -1
- package/legacy/Backdrop/Backdrop.js +3 -1
- package/legacy/Badge/Badge.js +4 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/FilledInput/FilledInput.js +4 -1
- package/legacy/FormControlLabel/FormControlLabel.js +3 -1
- package/legacy/Input/Input.js +4 -1
- package/legacy/InputBase/InputBase.js +4 -1
- package/legacy/InputLabel/InputLabel.js +4 -0
- package/legacy/ListItem/ListItem.js +3 -1
- package/legacy/Modal/Modal.js +3 -1
- package/legacy/Slider/Slider.js +21 -3
- package/legacy/StepLabel/StepLabel.js +3 -1
- package/legacy/TextField/TextField.js +1 -0
- package/legacy/Tooltip/Tooltip.js +6 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +68 -68
- package/modern/Autocomplete/Autocomplete.js +3 -1
- package/modern/Backdrop/Backdrop.js +3 -1
- package/modern/Badge/Badge.js +4 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/FilledInput/FilledInput.js +4 -1
- package/modern/FormControlLabel/FormControlLabel.js +3 -1
- package/modern/Input/Input.js +4 -1
- package/modern/InputBase/InputBase.js +4 -1
- package/modern/InputLabel/InputLabel.js +4 -0
- package/modern/ListItem/ListItem.js +3 -1
- package/modern/Modal/Modal.js +3 -1
- package/modern/Slider/Slider.js +21 -3
- package/modern/StepLabel/StepLabel.js +3 -1
- package/modern/TextField/TextField.js +1 -0
- package/modern/Tooltip/Tooltip.js +6 -1
- package/modern/index.js +1 -1
- package/node/Autocomplete/Autocomplete.js +3 -1
- package/node/Backdrop/Backdrop.js +3 -1
- package/node/Badge/Badge.js +4 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/FilledInput/FilledInput.js +4 -1
- package/node/FormControlLabel/FormControlLabel.js +3 -1
- package/node/Input/Input.js +4 -1
- package/node/InputBase/InputBase.js +4 -1
- package/node/InputLabel/InputLabel.js +4 -0
- package/node/ListItem/ListItem.js +3 -1
- package/node/Modal/Modal.js +3 -1
- package/node/Slider/Slider.js +21 -3
- package/node/StepLabel/StepLabel.js +3 -1
- package/node/TextField/TextField.js +1 -0
- package/node/Tooltip/Tooltip.js +6 -1
- package/node/index.js +1 -1
- package/package.json +3 -3
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +132 -31
- package/umd/material-ui.production.min.js +12 -12
- package/useMediaQuery/useMediaQuery.d.ts +27 -27
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- 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.
|
|
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.
|
|
126
|
+
componentsProps: PropTypes.shape({
|
|
127
|
+
root: PropTypes.object
|
|
128
|
+
}),
|
|
127
129
|
|
|
128
130
|
/**
|
|
129
131
|
* If `true`, the backdrop is invisible.
|
package/legacy/Badge/Badge.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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`.
|
package/legacy/Input/Input.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
package/legacy/Modal/Modal.js
CHANGED
|
@@ -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.
|
|
197
|
+
componentsProps: PropTypes.shape({
|
|
198
|
+
root: PropTypes.object
|
|
199
|
+
}),
|
|
198
200
|
|
|
199
201
|
/**
|
|
200
202
|
* An HTML element or function that returns one.
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -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(
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
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
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.
|
|
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.
|
|
127
|
+
componentsProps: PropTypes.shape({
|
|
128
|
+
root: PropTypes.object
|
|
129
|
+
}),
|
|
128
130
|
|
|
129
131
|
/**
|
|
130
132
|
* If `true`, the backdrop is invisible.
|
package/modern/Badge/Badge.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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`.
|
package/modern/Input/Input.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
package/modern/Modal/Modal.js
CHANGED
|
@@ -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.
|
|
180
|
+
componentsProps: PropTypes.shape({
|
|
181
|
+
root: PropTypes.object
|
|
182
|
+
}),
|
|
181
183
|
|
|
182
184
|
/**
|
|
183
185
|
* An HTML element or function that returns one.
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -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(
|
|
373
|
+
const Slider = /*#__PURE__*/React.forwardRef(function Slider(sliderProps, ref) {
|
|
374
374
|
const props = useThemeProps({
|
|
375
|
-
props:
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
@@ -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.
|
|
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.
|
|
151
|
+
componentsProps: _propTypes.default.shape({
|
|
152
|
+
root: _propTypes.default.object
|
|
153
|
+
}),
|
|
152
154
|
|
|
153
155
|
/**
|
|
154
156
|
* If `true`, the backdrop is invisible.
|
package/node/Badge/Badge.js
CHANGED
|
@@ -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.
|
|
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
|