@mui/material 5.13.6 → 5.13.7
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/autocompleteClasses.d.ts +58 -58
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- 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 +100 -100
- 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 +90 -4
- 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 +96 -96
- 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 +6 -6
- 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/filledInputClasses.d.ts +42 -42
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
- package/FormGroup/formGroupClasses.d.ts +12 -12
- 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 +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +38 -38
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- 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/NativeSelect/nativeSelectClasses.d.ts +34 -34
- package/OutlinedInput/OutlinedInput.js +1 -1
- package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
- 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 +65 -65
- package/README.md +8 -8
- 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 +32 -32
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.js +3 -4
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- 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/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- 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/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- 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/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/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/OutlinedInput/OutlinedInput.js +1 -1
- package/legacy/Slider/Slider.js +3 -4
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +80 -80
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/OutlinedInput/OutlinedInput.js +1 -1
- package/modern/Slider/Slider.js +3 -4
- package/modern/index.js +1 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/OutlinedInput/OutlinedInput.js +1 -1
- package/node/Slider/Slider.js +3 -4
- package/node/index.js +1 -1
- package/package.json +6 -6
- package/styles/CssVarsProvider.d.ts +20 -20
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/identifier.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +22 -14
- package/umd/material-ui.production.min.js +4 -4
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- 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
package/locale/index.d.ts
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSA: Localization;
|
|
27
|
-
export declare const arSD: Localization;
|
|
28
|
-
export declare const azAZ: Localization;
|
|
29
|
-
export declare const bnBD: Localization;
|
|
30
|
-
export declare const beBY: Localization;
|
|
31
|
-
export declare const bgBG: Localization;
|
|
32
|
-
export declare const caES: Localization;
|
|
33
|
-
export declare const csCZ: Localization;
|
|
34
|
-
export declare const daDK: Localization;
|
|
35
|
-
export declare const deDE: Localization;
|
|
36
|
-
export declare const elGR: Localization;
|
|
37
|
-
export declare const enUS: Localization;
|
|
38
|
-
export declare const esES: Localization;
|
|
39
|
-
export declare const etEE: Localization;
|
|
40
|
-
export declare const faIR: Localization;
|
|
41
|
-
export declare const fiFI: Localization;
|
|
42
|
-
export declare const frFR: Localization;
|
|
43
|
-
export declare const heIL: Localization;
|
|
44
|
-
export declare const hiIN: Localization;
|
|
45
|
-
export declare const hrHR: Localization;
|
|
46
|
-
export declare const huHU: Localization;
|
|
47
|
-
export declare const hyAM: Localization;
|
|
48
|
-
export declare const idID: Localization;
|
|
49
|
-
export declare const isIS: Localization;
|
|
50
|
-
export declare const itIT: Localization;
|
|
51
|
-
export declare const jaJP: Localization;
|
|
52
|
-
export declare const khKH: Localization;
|
|
53
|
-
export declare const koKR: Localization;
|
|
54
|
-
export declare const kuCKB: Localization;
|
|
55
|
-
export declare const kuLatn: Localization;
|
|
56
|
-
export declare const kkKZ: Localization;
|
|
57
|
-
export declare const mkMK: Localization;
|
|
58
|
-
export declare const myMY: Localization;
|
|
59
|
-
export declare const msMS: Localization;
|
|
60
|
-
export declare const neNP: Localization;
|
|
61
|
-
export declare const nbNO: Localization;
|
|
62
|
-
export declare const nlNL: Localization;
|
|
63
|
-
export declare const plPL: Localization;
|
|
64
|
-
export declare const ptBR: Localization;
|
|
65
|
-
export declare const ptPT: Localization;
|
|
66
|
-
export declare const roRO: Localization;
|
|
67
|
-
export declare const srRS: Localization;
|
|
68
|
-
export declare const ruRU: Localization;
|
|
69
|
-
export declare const siLK: Localization;
|
|
70
|
-
export declare const skSK: Localization;
|
|
71
|
-
export declare const svSE: Localization;
|
|
72
|
-
export declare const thTH: Localization;
|
|
73
|
-
export declare const trTR: Localization;
|
|
74
|
-
export declare const tlTL: Localization;
|
|
75
|
-
export declare const ukUA: Localization;
|
|
76
|
-
export declare const urPK: Localization;
|
|
77
|
-
export declare const viVN: Localization;
|
|
78
|
-
export declare const zhCN: Localization;
|
|
79
|
-
export declare const zhHK: Localization;
|
|
80
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSA: Localization;
|
|
27
|
+
export declare const arSD: Localization;
|
|
28
|
+
export declare const azAZ: Localization;
|
|
29
|
+
export declare const bnBD: Localization;
|
|
30
|
+
export declare const beBY: Localization;
|
|
31
|
+
export declare const bgBG: Localization;
|
|
32
|
+
export declare const caES: Localization;
|
|
33
|
+
export declare const csCZ: Localization;
|
|
34
|
+
export declare const daDK: Localization;
|
|
35
|
+
export declare const deDE: Localization;
|
|
36
|
+
export declare const elGR: Localization;
|
|
37
|
+
export declare const enUS: Localization;
|
|
38
|
+
export declare const esES: Localization;
|
|
39
|
+
export declare const etEE: Localization;
|
|
40
|
+
export declare const faIR: Localization;
|
|
41
|
+
export declare const fiFI: Localization;
|
|
42
|
+
export declare const frFR: Localization;
|
|
43
|
+
export declare const heIL: Localization;
|
|
44
|
+
export declare const hiIN: Localization;
|
|
45
|
+
export declare const hrHR: Localization;
|
|
46
|
+
export declare const huHU: Localization;
|
|
47
|
+
export declare const hyAM: Localization;
|
|
48
|
+
export declare const idID: Localization;
|
|
49
|
+
export declare const isIS: Localization;
|
|
50
|
+
export declare const itIT: Localization;
|
|
51
|
+
export declare const jaJP: Localization;
|
|
52
|
+
export declare const khKH: Localization;
|
|
53
|
+
export declare const koKR: Localization;
|
|
54
|
+
export declare const kuCKB: Localization;
|
|
55
|
+
export declare const kuLatn: Localization;
|
|
56
|
+
export declare const kkKZ: Localization;
|
|
57
|
+
export declare const mkMK: Localization;
|
|
58
|
+
export declare const myMY: Localization;
|
|
59
|
+
export declare const msMS: Localization;
|
|
60
|
+
export declare const neNP: Localization;
|
|
61
|
+
export declare const nbNO: Localization;
|
|
62
|
+
export declare const nlNL: Localization;
|
|
63
|
+
export declare const plPL: Localization;
|
|
64
|
+
export declare const ptBR: Localization;
|
|
65
|
+
export declare const ptPT: Localization;
|
|
66
|
+
export declare const roRO: Localization;
|
|
67
|
+
export declare const srRS: Localization;
|
|
68
|
+
export declare const ruRU: Localization;
|
|
69
|
+
export declare const siLK: Localization;
|
|
70
|
+
export declare const skSK: Localization;
|
|
71
|
+
export declare const svSE: Localization;
|
|
72
|
+
export declare const thTH: Localization;
|
|
73
|
+
export declare const trTR: Localization;
|
|
74
|
+
export declare const tlTL: Localization;
|
|
75
|
+
export declare const ukUA: Localization;
|
|
76
|
+
export declare const urPK: Localization;
|
|
77
|
+
export declare const viVN: Localization;
|
|
78
|
+
export declare const zhCN: Localization;
|
|
79
|
+
export declare const zhHK: Localization;
|
|
80
|
+
export declare const zhTW: Localization;
|
|
File without changes
|
|
@@ -138,7 +138,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
138
138
|
const fcs = formControlState({
|
|
139
139
|
props,
|
|
140
140
|
muiFormControl,
|
|
141
|
-
states: ['required']
|
|
141
|
+
states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
|
|
142
142
|
});
|
|
143
143
|
const ownerState = _extends({}, props, {
|
|
144
144
|
color: fcs.color || 'primary',
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -506,7 +506,8 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
506
506
|
marks,
|
|
507
507
|
values,
|
|
508
508
|
trackOffset,
|
|
509
|
-
trackLeap
|
|
509
|
+
trackLeap,
|
|
510
|
+
getThumbStyle
|
|
510
511
|
} = useSlider(_extends({}, ownerState, {
|
|
511
512
|
rootRef: ref
|
|
512
513
|
}));
|
|
@@ -637,9 +638,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
637
638
|
"data-index": index
|
|
638
639
|
}, thumbProps, {
|
|
639
640
|
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
640
|
-
style: _extends({}, style,
|
|
641
|
-
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
642
|
-
}, thumbProps.style),
|
|
641
|
+
style: _extends({}, style, getThumbStyle(index), thumbProps.style),
|
|
643
642
|
children: /*#__PURE__*/_jsx(InputSlot, _extends({
|
|
644
643
|
"data-index": index,
|
|
645
644
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
package/modern/index.js
CHANGED
|
File without changes
|
|
@@ -146,7 +146,7 @@ const OutlinedInput = /*#__PURE__*/React.forwardRef(function OutlinedInput(inPro
|
|
|
146
146
|
const fcs = (0, _formControlState.default)({
|
|
147
147
|
props,
|
|
148
148
|
muiFormControl,
|
|
149
|
-
states: ['required']
|
|
149
|
+
states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
|
|
150
150
|
});
|
|
151
151
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
152
152
|
color: fcs.color || 'primary',
|
package/node/Slider/Slider.js
CHANGED
|
@@ -515,7 +515,8 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
515
515
|
marks,
|
|
516
516
|
values,
|
|
517
517
|
trackOffset,
|
|
518
|
-
trackLeap
|
|
518
|
+
trackLeap,
|
|
519
|
+
getThumbStyle
|
|
519
520
|
} = (0, _useSlider.default)((0, _extends2.default)({}, ownerState, {
|
|
520
521
|
rootRef: ref
|
|
521
522
|
}));
|
|
@@ -646,9 +647,7 @@ const Slider = /*#__PURE__*/React.forwardRef(function Slider(inputProps, ref) {
|
|
|
646
647
|
"data-index": index
|
|
647
648
|
}, thumbProps, {
|
|
648
649
|
className: (0, _clsx.default)(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
649
|
-
style: (0, _extends2.default)({}, style,
|
|
650
|
-
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
651
|
-
}, thumbProps.style),
|
|
650
|
+
style: (0, _extends2.default)({}, style, getThumbStyle(index), thumbProps.style),
|
|
652
651
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(InputSlot, (0, _extends2.default)({
|
|
653
652
|
"data-index": index,
|
|
654
653
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/material",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"description": "React components that implement Google's Material Design.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/mui/material-ui/issues"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://mui.com/material-ui/getting-started/
|
|
24
|
+
"homepage": "https://mui.com/material-ui/getting-started/",
|
|
25
25
|
"funding": {
|
|
26
26
|
"type": "opencollective",
|
|
27
27
|
"url": "https://opencollective.com/mui"
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/runtime": "^7.22.5",
|
|
49
|
-
"@mui/base": "5.0.0-beta.
|
|
50
|
-
"@mui/core-downloads-tracker": "^5.13.
|
|
51
|
-
"@mui/system": "^5.13.
|
|
49
|
+
"@mui/base": "5.0.0-beta.6",
|
|
50
|
+
"@mui/core-downloads-tracker": "^5.13.7",
|
|
51
|
+
"@mui/system": "^5.13.7",
|
|
52
52
|
"@mui/types": "^7.2.4",
|
|
53
|
-
"@mui/utils": "^5.13.
|
|
53
|
+
"@mui/utils": "^5.13.7",
|
|
54
54
|
"@types/react-transition-group": "^4.4.6",
|
|
55
55
|
"clsx": "^1.2.1",
|
|
56
56
|
"csstype": "^3.1.2",
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
-
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
4
|
-
theme?: {
|
|
5
|
-
cssVarPrefix?: string | undefined;
|
|
6
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
7
|
-
} | {
|
|
8
|
-
$$material: {
|
|
9
|
-
cssVarPrefix?: string | undefined;
|
|
10
|
-
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
11
|
-
};
|
|
12
|
-
} | undefined;
|
|
13
|
-
documentNode?: Document | null | undefined;
|
|
14
|
-
colorSchemeNode?: Element | null | undefined;
|
|
15
|
-
colorSchemeSelector?: string | undefined;
|
|
16
|
-
storageWindow?: Window | null | undefined;
|
|
17
|
-
disableNestedContext?: boolean | undefined;
|
|
18
|
-
disableStyleSheetGeneration?: boolean | undefined;
|
|
19
|
-
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
20
|
-
export { useColorScheme, getInitColorSchemeScript, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SupportedColorScheme } from './experimental_extendTheme';
|
|
3
|
+
declare const CssVarsProvider: (props: import("react").PropsWithChildren<Partial<import("@mui/system").CssVarsProviderConfig<SupportedColorScheme>> & {
|
|
4
|
+
theme?: {
|
|
5
|
+
cssVarPrefix?: string | undefined;
|
|
6
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
7
|
+
} | {
|
|
8
|
+
$$material: {
|
|
9
|
+
cssVarPrefix?: string | undefined;
|
|
10
|
+
colorSchemes: Record<SupportedColorScheme, Record<string, any>>;
|
|
11
|
+
};
|
|
12
|
+
} | undefined;
|
|
13
|
+
documentNode?: Document | null | undefined;
|
|
14
|
+
colorSchemeNode?: Element | null | undefined;
|
|
15
|
+
colorSchemeSelector?: string | undefined;
|
|
16
|
+
storageWindow?: Window | null | undefined;
|
|
17
|
+
disableNestedContext?: boolean | undefined;
|
|
18
|
+
disableStyleSheetGeneration?: boolean | undefined;
|
|
19
|
+
}>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, useColorScheme: () => import("@mui/system").ColorSchemeContextValue<SupportedColorScheme>, getInitColorSchemeScript: typeof import("@mui/system").getInitColorSchemeScript;
|
|
20
|
+
export { useColorScheme, getInitColorSchemeScript, CssVarsProvider as Experimental_CssVarsProvider, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
-
*/
|
|
4
|
-
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
-
export default excludeVariablesFromRoot;
|
|
1
|
+
/**
|
|
2
|
+
* @internal These variables should not appear in the :root stylesheet when the `defaultMode="dark"`
|
|
3
|
+
*/
|
|
4
|
+
declare const excludeVariablesFromRoot: (cssVarPrefix: string) => string[];
|
|
5
|
+
export default excludeVariablesFromRoot;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
-
export default getOverlayAlpha;
|
|
1
|
+
declare const getOverlayAlpha: (elevation: number) => string;
|
|
2
|
+
export default getOverlayAlpha;
|
package/styles/identifier.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "$$material";
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: "$$material";
|
|
2
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function shouldSkipGeneratingVar(keys: string[]): boolean;
|
|
1
|
+
export default function shouldSkipGeneratingVar(keys: string[]): boolean;
|
package/transitions/index.d.ts
CHANGED
|
@@ -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 type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
-
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
-
export interface EasingProps {
|
|
6
|
-
easing: string | {
|
|
7
|
-
enter?: string;
|
|
8
|
-
exit?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export 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 type TransitionHandlerKeys = 'onEnter' | 'onEntering' | 'onEntered' | 'onExit' | 'onExiting' | 'onExited';
|
|
4
|
+
export type TransitionHandlerProps = Pick<_TransitionProps, TransitionHandlerKeys>;
|
|
5
|
+
export interface EasingProps {
|
|
6
|
+
easing: string | {
|
|
7
|
+
enter?: string;
|
|
8
|
+
exit?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export type TransitionKeys = 'in' | 'mountOnEnter' | 'unmountOnExit' | 'timeout' | 'easing' | 'addEndListener' | TransitionHandlerKeys;
|
|
12
|
+
export interface TransitionProps extends TransitionActions, Partial<Pick<_TransitionProps & EasingProps, TransitionKeys>>, React.HTMLAttributes<HTMLElement> {
|
|
13
|
+
}
|
package/transitions/utils.d.ts
CHANGED
|
@@ -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,31 +1,31 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DistributiveOmit } from '@mui/types';
|
|
3
|
-
declare module '@mui/material/OverridableComponent' {
|
|
4
|
-
/**
|
|
5
|
-
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
-
*
|
|
7
|
-
* Adjusts valid props based on the type of `component`.
|
|
8
|
-
*/
|
|
9
|
-
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
-
<C extends React.ElementType>(props: {
|
|
11
|
-
/**
|
|
12
|
-
* The component used for the root node.
|
|
13
|
-
* Either a string to use a HTML element or a component.
|
|
14
|
-
*/
|
|
15
|
-
component: C;
|
|
16
|
-
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
-
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Props of the component if `component={Component}` is used.
|
|
21
|
-
*/
|
|
22
|
-
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
-
ref?: React.Ref<Element>;
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Props if `component={Component}` is NOT used.
|
|
27
|
-
*/
|
|
28
|
-
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
-
ref?: React.Ref<Element>;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DistributiveOmit } from '@mui/types';
|
|
3
|
+
declare module '@mui/material/OverridableComponent' {
|
|
4
|
+
/**
|
|
5
|
+
* A component whose root component can be controlled via a `component` prop.
|
|
6
|
+
*
|
|
7
|
+
* Adjusts valid props based on the type of `component`.
|
|
8
|
+
*/
|
|
9
|
+
interface OverridableComponent<M extends OverridableTypeMap> {
|
|
10
|
+
<C extends React.ElementType>(props: {
|
|
11
|
+
/**
|
|
12
|
+
* The component used for the root node.
|
|
13
|
+
* Either a string to use a HTML element or a component.
|
|
14
|
+
*/
|
|
15
|
+
component: C;
|
|
16
|
+
} & OverridePropsVer2<M, C>): JSX.Element;
|
|
17
|
+
(props: DefaultComponentPropsVer2<M>): JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Props of the component if `component={Component}` is used.
|
|
21
|
+
*/
|
|
22
|
+
type OverridePropsVer2<M extends OverridableTypeMap, C extends React.ElementType> = (BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<C>, keyof BaseProps<M>> & {
|
|
23
|
+
ref?: React.Ref<Element>;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Props if `component={Component}` is NOT used.
|
|
27
|
+
*/
|
|
28
|
+
type DefaultComponentPropsVer2<M extends OverridableTypeMap> = BaseProps<M> & DistributiveOmit<React.ComponentPropsWithoutRef<M['defaultComponent']>, keyof BaseProps<M>> & {
|
|
29
|
+
ref?: React.Ref<Element>;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/material v5.13.
|
|
2
|
+
* @mui/material v5.13.7
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -9739,7 +9739,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
9739
9739
|
};
|
|
9740
9740
|
}
|
|
9741
9741
|
return {
|
|
9742
|
-
'& > :not(style)
|
|
9742
|
+
'& > :not(style) ~ :not(style)': {
|
|
9743
9743
|
margin: 0,
|
|
9744
9744
|
[`margin${getSideFromDirection(breakpoint ? directionValues[breakpoint] : ownerState.direction)}`]: getValue(transformer, propValue)
|
|
9745
9745
|
}
|
|
@@ -11171,9 +11171,9 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11171
11171
|
* If `componentProps` is a function, calls it with the provided `ownerState`.
|
|
11172
11172
|
* Otherwise, just returns `componentProps`.
|
|
11173
11173
|
*/
|
|
11174
|
-
function resolveComponentProps(componentProps, ownerState) {
|
|
11174
|
+
function resolveComponentProps(componentProps, ownerState, slotState) {
|
|
11175
11175
|
if (typeof componentProps === 'function') {
|
|
11176
|
-
return componentProps(ownerState);
|
|
11176
|
+
return componentProps(ownerState, slotState);
|
|
11177
11177
|
}
|
|
11178
11178
|
return componentProps;
|
|
11179
11179
|
}
|
|
@@ -11262,7 +11262,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11262
11262
|
};
|
|
11263
11263
|
}
|
|
11264
11264
|
|
|
11265
|
-
const _excluded$27 = ["elementType", "externalSlotProps", "ownerState"];
|
|
11265
|
+
const _excluded$27 = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
11266
11266
|
/**
|
|
11267
11267
|
* @ignore - do not document.
|
|
11268
11268
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -11276,10 +11276,11 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
11276
11276
|
const {
|
|
11277
11277
|
elementType,
|
|
11278
11278
|
externalSlotProps,
|
|
11279
|
-
ownerState
|
|
11279
|
+
ownerState,
|
|
11280
|
+
skipResolvingSlotProps = false
|
|
11280
11281
|
} = parameters,
|
|
11281
11282
|
rest = _objectWithoutPropertiesLoose(parameters, _excluded$27);
|
|
11282
|
-
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
11283
|
+
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
|
11283
11284
|
const {
|
|
11284
11285
|
props: mergedProps,
|
|
11285
11286
|
internalRef
|
|
@@ -15286,6 +15287,12 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15286
15287
|
};
|
|
15287
15288
|
return _extends({}, otherHandlers, ownEventHandlers);
|
|
15288
15289
|
};
|
|
15290
|
+
const getThumbStyle = index => {
|
|
15291
|
+
return {
|
|
15292
|
+
// So the non active thumb doesn't show its label on hover.
|
|
15293
|
+
pointerEvents: active !== -1 && active !== index ? 'none' : undefined
|
|
15294
|
+
};
|
|
15295
|
+
};
|
|
15289
15296
|
const getHiddenInputProps = (otherHandlers = {}) => {
|
|
15290
15297
|
var _parameters$step;
|
|
15291
15298
|
const ownEventHandlers = {
|
|
@@ -15330,7 +15337,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15330
15337
|
rootRef: handleRef,
|
|
15331
15338
|
trackLeap,
|
|
15332
15339
|
trackOffset,
|
|
15333
|
-
values
|
|
15340
|
+
values,
|
|
15341
|
+
getThumbStyle
|
|
15334
15342
|
};
|
|
15335
15343
|
}
|
|
15336
15344
|
|
|
@@ -15676,7 +15684,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
15676
15684
|
ref: shadowRef,
|
|
15677
15685
|
tabIndex: -1,
|
|
15678
15686
|
style: _extends({}, styles$5.shadow, style, {
|
|
15679
|
-
|
|
15687
|
+
paddingTop: 0,
|
|
15688
|
+
paddingBottom: 0
|
|
15680
15689
|
})
|
|
15681
15690
|
})]
|
|
15682
15691
|
});
|
|
@@ -37611,7 +37620,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
37611
37620
|
const fcs = formControlState({
|
|
37612
37621
|
props,
|
|
37613
37622
|
muiFormControl,
|
|
37614
|
-
states: ['required']
|
|
37623
|
+
states: ['color', 'disabled', 'error', 'focused', 'hiddenLabel', 'size', 'required']
|
|
37615
37624
|
});
|
|
37616
37625
|
const ownerState = _extends({}, props, {
|
|
37617
37626
|
color: fcs.color || 'primary',
|
|
@@ -41304,7 +41313,8 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41304
41313
|
marks,
|
|
41305
41314
|
values,
|
|
41306
41315
|
trackOffset,
|
|
41307
|
-
trackLeap
|
|
41316
|
+
trackLeap,
|
|
41317
|
+
getThumbStyle
|
|
41308
41318
|
} = useSlider(_extends({}, ownerState, {
|
|
41309
41319
|
rootRef: ref
|
|
41310
41320
|
}));
|
|
@@ -41435,9 +41445,7 @@ See https://mui.com/r/migration-v4/#mui-material-styles for more details.` );
|
|
|
41435
41445
|
"data-index": index
|
|
41436
41446
|
}, thumbProps, {
|
|
41437
41447
|
className: clsx(classes.thumb, thumbProps.className, active === index && classes.active, focusedThumbIndex === index && classes.focusVisible),
|
|
41438
|
-
style: _extends({}, style,
|
|
41439
|
-
pointerEvents: disableSwap && active !== index ? 'none' : undefined
|
|
41440
|
-
}, thumbProps.style),
|
|
41448
|
+
style: _extends({}, style, getThumbStyle(index), thumbProps.style),
|
|
41441
41449
|
children: /*#__PURE__*/jsxRuntime_1(InputSlot, _extends({
|
|
41442
41450
|
"data-index": index,
|
|
41443
41451
|
"aria-label": getAriaLabel ? getAriaLabel(index) : ariaLabel,
|