@mui/material 5.8.2 → 5.8.3
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/Alert.js +3 -1
- 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 +54 -54
- 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 +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 +74 -2
- 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/Checkbox.js +4 -4
- 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 +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 +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- 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 +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/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +44 -44
- 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/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 +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 +29 -29
- package/README.md +7 -3
- 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.js +20 -7
- 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/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 +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/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/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +3 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Checkbox/Checkbox.js +4 -4
- package/legacy/Slider/Slider.js +20 -7
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -0
- package/locale/index.d.ts +71 -71
- package/modern/Alert/Alert.js +3 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Checkbox/Checkbox.js +4 -4
- package/modern/Slider/Slider.js +20 -7
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -0
- package/node/Alert/Alert.js +3 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Checkbox/Checkbox.js +4 -4
- package/node/Slider/Slider.js +20 -7
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -0
- package/package.json +3 -3
- package/styles/CssVarsProvider.js +3 -0
- 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 +48 -20
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- 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,50 +1,50 @@
|
|
|
1
|
-
export interface TypographyClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
-
body2: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
-
body1: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
-
caption: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
-
button: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
-
h1: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
-
h2: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
-
h3: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
-
h4: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
-
h5: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
-
h6: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
-
subtitle1: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
-
subtitle2: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
-
overline: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
-
inherit: string;
|
|
32
|
-
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
-
alignLeft: string;
|
|
34
|
-
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
-
alignCenter: string;
|
|
36
|
-
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
-
alignRight: string;
|
|
38
|
-
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
-
alignJustify: string;
|
|
40
|
-
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
-
noWrap: string;
|
|
42
|
-
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
-
gutterBottom: string;
|
|
44
|
-
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
-
paragraph: string;
|
|
46
|
-
}
|
|
47
|
-
export declare type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
-
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
-
declare const typographyClasses: TypographyClasses;
|
|
50
|
-
export default typographyClasses;
|
|
1
|
+
export interface TypographyClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
+
body2: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
+
body1: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
+
caption: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
+
button: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
+
h1: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
+
h2: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
+
h3: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
+
h4: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
+
h5: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
+
h6: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
+
subtitle1: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
+
subtitle2: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
+
overline: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
+
inherit: string;
|
|
32
|
+
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
+
alignLeft: string;
|
|
34
|
+
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
+
alignCenter: string;
|
|
36
|
+
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
+
alignRight: string;
|
|
38
|
+
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
+
alignJustify: string;
|
|
40
|
+
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
+
noWrap: string;
|
|
42
|
+
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
+
gutterBottom: string;
|
|
44
|
+
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
+
paragraph: string;
|
|
46
|
+
}
|
|
47
|
+
export declare type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
+
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
+
declare const typographyClasses: TypographyClasses;
|
|
50
|
+
export default typographyClasses;
|
package/className/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { unstable_ClassNameGenerator } from '@mui/utils';
|
|
1
|
+
export { unstable_ClassNameGenerator } from '@mui/utils';
|
package/darkScrollbar/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export default function darkScrollbar(options?: {
|
|
2
|
-
track: string;
|
|
3
|
-
thumb: string;
|
|
4
|
-
active: string;
|
|
5
|
-
}): {
|
|
6
|
-
scrollbarColor: string;
|
|
7
|
-
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
-
backgroundColor: string;
|
|
9
|
-
};
|
|
10
|
-
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
-
borderRadius: number;
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
minHeight: number;
|
|
14
|
-
border: string;
|
|
15
|
-
};
|
|
16
|
-
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
};
|
|
22
|
-
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
};
|
|
25
|
-
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
export default function darkScrollbar(options?: {
|
|
2
|
+
track: string;
|
|
3
|
+
thumb: string;
|
|
4
|
+
active: string;
|
|
5
|
+
}): {
|
|
6
|
+
scrollbarColor: string;
|
|
7
|
+
'&::-webkit-scrollbar, & *::-webkit-scrollbar': {
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
'&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
|
|
11
|
+
borderRadius: number;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
minHeight: number;
|
|
14
|
+
border: string;
|
|
15
|
+
};
|
|
16
|
+
'&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
};
|
|
19
|
+
'&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
'&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
};
|
|
25
|
+
'&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
|
|
26
|
+
backgroundColor: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
package/index.js
CHANGED
|
@@ -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;
|
package/legacy/Alert/Alert.js
CHANGED
|
File without changes
|
|
@@ -43,19 +43,19 @@ var CheckboxRoot = styled(SwitchBase, {
|
|
|
43
43
|
var theme = _ref.theme,
|
|
44
44
|
ownerState = _ref.ownerState;
|
|
45
45
|
return _extends({
|
|
46
|
-
color: theme.palette.text.secondary
|
|
46
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
47
47
|
}, !ownerState.disableRipple && {
|
|
48
48
|
'&:hover': {
|
|
49
|
-
backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
49
|
+
backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
50
50
|
// Reset on touch devices, it doesn't add specificity
|
|
51
51
|
'@media (hover: none)': {
|
|
52
52
|
backgroundColor: 'transparent'
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}, ownerState.color !== 'default' && (_ref2 = {}, _defineProperty(_ref2, "&.".concat(checkboxClasses.checked, ", &.").concat(checkboxClasses.indeterminate), {
|
|
56
|
-
color: theme.palette[ownerState.color].main
|
|
56
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
57
57
|
}), _defineProperty(_ref2, "&.".concat(checkboxClasses.disabled), {
|
|
58
|
-
color: theme.palette.action.disabled
|
|
58
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
59
59
|
}), _ref2));
|
|
60
60
|
});
|
|
61
61
|
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -283,7 +283,6 @@ var SliderValueLabel = styled(SliderValueLabelUnstyled, {
|
|
|
283
283
|
transition: theme.transitions.create(['transform'], {
|
|
284
284
|
duration: theme.transitions.duration.shortest
|
|
285
285
|
}),
|
|
286
|
-
top: -10,
|
|
287
286
|
transformOrigin: 'bottom center',
|
|
288
287
|
transform: 'translateY(-100%) scale(0)',
|
|
289
288
|
position: 'absolute',
|
|
@@ -294,20 +293,34 @@ var SliderValueLabel = styled(SliderValueLabelUnstyled, {
|
|
|
294
293
|
alignItems: 'center',
|
|
295
294
|
justifyContent: 'center',
|
|
296
295
|
padding: '0.25rem 0.75rem'
|
|
297
|
-
}, ownerState.
|
|
298
|
-
|
|
299
|
-
padding: '0.25rem 0.5rem'
|
|
300
|
-
}, {
|
|
296
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
297
|
+
top: '-10px',
|
|
301
298
|
'&:before': {
|
|
302
299
|
position: 'absolute',
|
|
303
300
|
content: '""',
|
|
304
301
|
width: 8,
|
|
305
302
|
height: 8,
|
|
303
|
+
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
304
|
+
backgroundColor: 'inherit',
|
|
306
305
|
bottom: 0,
|
|
307
|
-
left: '50%'
|
|
306
|
+
left: '50%'
|
|
307
|
+
}
|
|
308
|
+
}, ownerState.orientation === 'vertical' && {
|
|
309
|
+
right: '30px',
|
|
310
|
+
top: '25px',
|
|
311
|
+
'&:before': {
|
|
312
|
+
position: 'absolute',
|
|
313
|
+
content: '""',
|
|
314
|
+
width: 8,
|
|
315
|
+
height: 8,
|
|
308
316
|
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
309
|
-
backgroundColor: 'inherit'
|
|
317
|
+
backgroundColor: 'inherit',
|
|
318
|
+
right: '-20%',
|
|
319
|
+
top: '25%'
|
|
310
320
|
}
|
|
321
|
+
}, ownerState.size === 'small' && {
|
|
322
|
+
fontSize: theme.typography.pxToRem(12),
|
|
323
|
+
padding: '0.25rem 0.5rem'
|
|
311
324
|
});
|
|
312
325
|
});
|
|
313
326
|
process.env.NODE_ENV !== "production" ? SliderValueLabel.propTypes
|
package/legacy/index.js
CHANGED
|
@@ -8,6 +8,9 @@ var defaultTheme = experimental_extendTheme();
|
|
|
8
8
|
|
|
9
9
|
var _createCssVarsProvide = createCssVarsProvider({
|
|
10
10
|
theme: defaultTheme,
|
|
11
|
+
attribute: 'data-mui-color-scheme',
|
|
12
|
+
modeStorageKey: 'mui-mode',
|
|
13
|
+
colorSchemeStorageKey: 'mui-color-scheme',
|
|
11
14
|
defaultColorScheme: {
|
|
12
15
|
light: 'light',
|
|
13
16
|
dark: 'dark'
|
package/locale/index.d.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
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 hrHR: Localization;
|
|
44
|
-
export declare const huHU: Localization;
|
|
45
|
-
export declare const hyAM: Localization;
|
|
46
|
-
export declare const idID: Localization;
|
|
47
|
-
export declare const isIS: Localization;
|
|
48
|
-
export declare const itIT: Localization;
|
|
49
|
-
export declare const jaJP: Localization;
|
|
50
|
-
export declare const khKH: Localization;
|
|
51
|
-
export declare const koKR: Localization;
|
|
52
|
-
export declare const kzKZ: Localization;
|
|
53
|
-
export declare const mkMK: Localization;
|
|
54
|
-
export declare const nbNO: Localization;
|
|
55
|
-
export declare const nlNL: Localization;
|
|
56
|
-
export declare const plPL: Localization;
|
|
57
|
-
export declare const ptBR: Localization;
|
|
58
|
-
export declare const ptPT: Localization;
|
|
59
|
-
export declare const roRO: Localization;
|
|
60
|
-
export declare const srRS: Localization;
|
|
61
|
-
export declare const ruRU: Localization;
|
|
62
|
-
export declare const siLK: Localization;
|
|
63
|
-
export declare const skSK: Localization;
|
|
64
|
-
export declare const svSE: Localization;
|
|
65
|
-
export declare const thTH: Localization;
|
|
66
|
-
export declare const trTR: Localization;
|
|
67
|
-
export declare const ukUA: Localization;
|
|
68
|
-
export declare const viVN: Localization;
|
|
69
|
-
export declare const zhCN: Localization;
|
|
70
|
-
export declare const zhHK: Localization;
|
|
71
|
-
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 hrHR: Localization;
|
|
44
|
+
export declare const huHU: Localization;
|
|
45
|
+
export declare const hyAM: Localization;
|
|
46
|
+
export declare const idID: Localization;
|
|
47
|
+
export declare const isIS: Localization;
|
|
48
|
+
export declare const itIT: Localization;
|
|
49
|
+
export declare const jaJP: Localization;
|
|
50
|
+
export declare const khKH: Localization;
|
|
51
|
+
export declare const koKR: Localization;
|
|
52
|
+
export declare const kzKZ: Localization;
|
|
53
|
+
export declare const mkMK: Localization;
|
|
54
|
+
export declare const nbNO: Localization;
|
|
55
|
+
export declare const nlNL: Localization;
|
|
56
|
+
export declare const plPL: Localization;
|
|
57
|
+
export declare const ptBR: Localization;
|
|
58
|
+
export declare const ptPT: Localization;
|
|
59
|
+
export declare const roRO: Localization;
|
|
60
|
+
export declare const srRS: Localization;
|
|
61
|
+
export declare const ruRU: Localization;
|
|
62
|
+
export declare const siLK: Localization;
|
|
63
|
+
export declare const skSK: Localization;
|
|
64
|
+
export declare const svSE: Localization;
|
|
65
|
+
export declare const thTH: Localization;
|
|
66
|
+
export declare const trTR: Localization;
|
|
67
|
+
export declare const ukUA: Localization;
|
|
68
|
+
export declare const viVN: Localization;
|
|
69
|
+
export declare const zhCN: Localization;
|
|
70
|
+
export declare const zhHK: Localization;
|
|
71
|
+
export declare const zhTW: Localization;
|
package/modern/Alert/Alert.js
CHANGED
|
@@ -93,7 +93,9 @@ const AlertMessage = styled('div', {
|
|
|
93
93
|
slot: 'Message',
|
|
94
94
|
overridesResolver: (props, styles) => styles.message
|
|
95
95
|
})({
|
|
96
|
-
padding: '8px 0'
|
|
96
|
+
padding: '8px 0',
|
|
97
|
+
minWidth: 0,
|
|
98
|
+
overflow: 'auto'
|
|
97
99
|
});
|
|
98
100
|
const AlertAction = styled('div', {
|
|
99
101
|
name: 'MuiAlert',
|
|
File without changes
|
|
@@ -43,10 +43,10 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
43
43
|
theme,
|
|
44
44
|
ownerState
|
|
45
45
|
}) => _extends({
|
|
46
|
-
color: theme.palette.text.secondary
|
|
46
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
47
47
|
}, !ownerState.disableRipple && {
|
|
48
48
|
'&:hover': {
|
|
49
|
-
backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
49
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
50
50
|
// Reset on touch devices, it doesn't add specificity
|
|
51
51
|
'@media (hover: none)': {
|
|
52
52
|
backgroundColor: 'transparent'
|
|
@@ -54,10 +54,10 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
54
54
|
}
|
|
55
55
|
}, ownerState.color !== 'default' && {
|
|
56
56
|
[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {
|
|
57
|
-
color: theme.palette[ownerState.color].main
|
|
57
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
58
58
|
},
|
|
59
59
|
[`&.${checkboxClasses.disabled}`]: {
|
|
60
|
-
color: theme.palette.action.disabled
|
|
60
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
61
61
|
}
|
|
62
62
|
}));
|
|
63
63
|
|
package/modern/Slider/Slider.js
CHANGED
|
@@ -284,7 +284,6 @@ const SliderValueLabel = styled(SliderValueLabelUnstyled, {
|
|
|
284
284
|
transition: theme.transitions.create(['transform'], {
|
|
285
285
|
duration: theme.transitions.duration.shortest
|
|
286
286
|
}),
|
|
287
|
-
top: -10,
|
|
288
287
|
transformOrigin: 'bottom center',
|
|
289
288
|
transform: 'translateY(-100%) scale(0)',
|
|
290
289
|
position: 'absolute',
|
|
@@ -295,20 +294,34 @@ const SliderValueLabel = styled(SliderValueLabelUnstyled, {
|
|
|
295
294
|
alignItems: 'center',
|
|
296
295
|
justifyContent: 'center',
|
|
297
296
|
padding: '0.25rem 0.75rem'
|
|
298
|
-
}, ownerState.
|
|
299
|
-
|
|
300
|
-
padding: '0.25rem 0.5rem'
|
|
301
|
-
}, {
|
|
297
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
298
|
+
top: '-10px',
|
|
302
299
|
'&:before': {
|
|
303
300
|
position: 'absolute',
|
|
304
301
|
content: '""',
|
|
305
302
|
width: 8,
|
|
306
303
|
height: 8,
|
|
304
|
+
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
305
|
+
backgroundColor: 'inherit',
|
|
307
306
|
bottom: 0,
|
|
308
|
-
left: '50%'
|
|
307
|
+
left: '50%'
|
|
308
|
+
}
|
|
309
|
+
}, ownerState.orientation === 'vertical' && {
|
|
310
|
+
right: '30px',
|
|
311
|
+
top: '25px',
|
|
312
|
+
'&:before': {
|
|
313
|
+
position: 'absolute',
|
|
314
|
+
content: '""',
|
|
315
|
+
width: 8,
|
|
316
|
+
height: 8,
|
|
309
317
|
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
310
|
-
backgroundColor: 'inherit'
|
|
318
|
+
backgroundColor: 'inherit',
|
|
319
|
+
right: '-20%',
|
|
320
|
+
top: '25%'
|
|
311
321
|
}
|
|
322
|
+
}, ownerState.size === 'small' && {
|
|
323
|
+
fontSize: theme.typography.pxToRem(12),
|
|
324
|
+
padding: '0.25rem 0.5rem'
|
|
312
325
|
}));
|
|
313
326
|
process.env.NODE_ENV !== "production" ? SliderValueLabel.propTypes
|
|
314
327
|
/* remove-proptypes */
|
package/modern/index.js
CHANGED
|
@@ -11,6 +11,9 @@ const {
|
|
|
11
11
|
getInitColorSchemeScript
|
|
12
12
|
} = createCssVarsProvider({
|
|
13
13
|
theme: defaultTheme,
|
|
14
|
+
attribute: 'data-mui-color-scheme',
|
|
15
|
+
modeStorageKey: 'mui-mode',
|
|
16
|
+
colorSchemeStorageKey: 'mui-color-scheme',
|
|
14
17
|
defaultColorScheme: {
|
|
15
18
|
light: 'light',
|
|
16
19
|
dark: 'dark'
|
package/node/Alert/Alert.js
CHANGED
|
@@ -123,7 +123,9 @@ const AlertMessage = (0, _styled.default)('div', {
|
|
|
123
123
|
slot: 'Message',
|
|
124
124
|
overridesResolver: (props, styles) => styles.message
|
|
125
125
|
})({
|
|
126
|
-
padding: '8px 0'
|
|
126
|
+
padding: '8px 0',
|
|
127
|
+
minWidth: 0,
|
|
128
|
+
overflow: 'auto'
|
|
127
129
|
});
|
|
128
130
|
const AlertAction = (0, _styled.default)('div', {
|
|
129
131
|
name: 'MuiAlert',
|
|
File without changes
|
|
@@ -72,10 +72,10 @@ const CheckboxRoot = (0, _styled.default)(_SwitchBase.default, {
|
|
|
72
72
|
theme,
|
|
73
73
|
ownerState
|
|
74
74
|
}) => (0, _extends2.default)({
|
|
75
|
-
color: theme.palette.text.secondary
|
|
75
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
76
76
|
}, !ownerState.disableRipple && {
|
|
77
77
|
'&:hover': {
|
|
78
|
-
backgroundColor: (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
78
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
79
79
|
// Reset on touch devices, it doesn't add specificity
|
|
80
80
|
'@media (hover: none)': {
|
|
81
81
|
backgroundColor: 'transparent'
|
|
@@ -83,10 +83,10 @@ const CheckboxRoot = (0, _styled.default)(_SwitchBase.default, {
|
|
|
83
83
|
}
|
|
84
84
|
}, ownerState.color !== 'default' && {
|
|
85
85
|
[`&.${_checkboxClasses.default.checked}, &.${_checkboxClasses.default.indeterminate}`]: {
|
|
86
|
-
color: theme.palette[ownerState.color].main
|
|
86
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
87
87
|
},
|
|
88
88
|
[`&.${_checkboxClasses.default.disabled}`]: {
|
|
89
|
-
color: theme.palette.action.disabled
|
|
89
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
90
90
|
}
|
|
91
91
|
}));
|
|
92
92
|
const defaultCheckedIcon = /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.default, {});
|
package/node/Slider/Slider.js
CHANGED
|
@@ -314,7 +314,6 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
314
314
|
transition: theme.transitions.create(['transform'], {
|
|
315
315
|
duration: theme.transitions.duration.shortest
|
|
316
316
|
}),
|
|
317
|
-
top: -10,
|
|
318
317
|
transformOrigin: 'bottom center',
|
|
319
318
|
transform: 'translateY(-100%) scale(0)',
|
|
320
319
|
position: 'absolute',
|
|
@@ -325,20 +324,34 @@ const SliderValueLabel = (0, _styled.default)(_SliderUnstyled.SliderValueLabelUn
|
|
|
325
324
|
alignItems: 'center',
|
|
326
325
|
justifyContent: 'center',
|
|
327
326
|
padding: '0.25rem 0.75rem'
|
|
328
|
-
}, ownerState.
|
|
329
|
-
|
|
330
|
-
padding: '0.25rem 0.5rem'
|
|
331
|
-
}, {
|
|
327
|
+
}, ownerState.orientation === 'horizontal' && {
|
|
328
|
+
top: '-10px',
|
|
332
329
|
'&:before': {
|
|
333
330
|
position: 'absolute',
|
|
334
331
|
content: '""',
|
|
335
332
|
width: 8,
|
|
336
333
|
height: 8,
|
|
334
|
+
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
335
|
+
backgroundColor: 'inherit',
|
|
337
336
|
bottom: 0,
|
|
338
|
-
left: '50%'
|
|
337
|
+
left: '50%'
|
|
338
|
+
}
|
|
339
|
+
}, ownerState.orientation === 'vertical' && {
|
|
340
|
+
right: '30px',
|
|
341
|
+
top: '25px',
|
|
342
|
+
'&:before': {
|
|
343
|
+
position: 'absolute',
|
|
344
|
+
content: '""',
|
|
345
|
+
width: 8,
|
|
346
|
+
height: 8,
|
|
339
347
|
transform: 'translate(-50%, 50%) rotate(45deg)',
|
|
340
|
-
backgroundColor: 'inherit'
|
|
348
|
+
backgroundColor: 'inherit',
|
|
349
|
+
right: '-20%',
|
|
350
|
+
top: '25%'
|
|
341
351
|
}
|
|
352
|
+
}, ownerState.size === 'small' && {
|
|
353
|
+
fontSize: theme.typography.pxToRem(12),
|
|
354
|
+
padding: '0.25rem 0.5rem'
|
|
342
355
|
}));
|
|
343
356
|
exports.SliderValueLabel = SliderValueLabel;
|
|
344
357
|
process.env.NODE_ENV !== "production" ? SliderValueLabel.propTypes
|
package/node/index.js
CHANGED