@mui/material 5.6.4 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1 -0
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +23 -1
- package/Autocomplete/Autocomplete.js +18 -16
- 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/Badge.d.ts +1 -34
- package/Badge/badgeClasses.d.ts +56 -24
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/TouchRipple.js +5 -5
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +241 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- 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/Container.js +17 -106
- package/Container/containerClasses.d.ts +6 -22
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +72 -66
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +15 -9
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +20 -15
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +2 -1
- package/Radio/Radio.js +4 -4
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +2 -2
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +1 -5
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- 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/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- 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/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +4 -4
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +1 -0
- package/legacy/Autocomplete/Autocomplete.js +18 -16
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +5 -5
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/Container/Container.js +18 -103
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +20 -18
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +15 -9
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Paper/Paper.js +10 -7
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Select/SelectInput.js +2 -2
- package/legacy/Slider/Slider.js +1 -10
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +22 -22
- package/legacy/styles/createMixins.js +5 -3
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/createTheme.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +70 -42
- package/locale/index.d.ts +71 -71
- package/locale/index.js +22 -22
- package/modern/Alert/Alert.js +1 -0
- package/modern/Autocomplete/Autocomplete.js +18 -16
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +5 -5
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/Container/Container.js +17 -106
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +19 -17
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +15 -9
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Paper/Paper.js +8 -7
- package/modern/Radio/Radio.js +4 -4
- package/modern/Rating/Rating.js +2 -2
- package/modern/Select/SelectInput.js +2 -2
- package/modern/Slider/Slider.js +1 -5
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +22 -22
- package/modern/styles/createMixins.js +5 -3
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/experimental_extendTheme.js +71 -44
- package/node/Alert/Alert.js +1 -0
- package/node/Autocomplete/Autocomplete.js +19 -16
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -2
- package/node/ButtonBase/TouchRipple.js +5 -5
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/Container/Container.js +17 -113
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +72 -66
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +15 -9
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Paper/Paper.js +22 -14
- package/node/Radio/Radio.js +4 -4
- package/node/Rating/Rating.js +2 -2
- package/node/Select/SelectInput.js +2 -2
- package/node/Slider/Slider.js +1 -5
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +4 -4
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +22 -22
- package/node/styles/createMixins.js +5 -3
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +72 -45
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createMixins.d.ts +2 -6
- package/styles/createMixins.js +5 -3
- package/styles/createPalette.d.ts +10 -3
- package/styles/createPalette.js +2 -1
- package/styles/createTheme.js +1 -1
- package/styles/experimental_extendTheme.d.ts +43 -16
- package/styles/experimental_extendTheme.js +72 -45
- package/styles/index.d.ts +1 -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 +1079 -894
- package/umd/material-ui.production.min.js +21 -21
- 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
|
@@ -66,15 +66,15 @@ const StepIconRoot = (0, _styled.default)(_SvgIcon.default, {
|
|
|
66
66
|
transition: theme.transitions.create('color', {
|
|
67
67
|
duration: theme.transitions.duration.shortest
|
|
68
68
|
}),
|
|
69
|
-
color: theme.palette.text.disabled,
|
|
69
|
+
color: (theme.vars || theme).palette.text.disabled,
|
|
70
70
|
[`&.${_stepIconClasses.default.completed}`]: {
|
|
71
|
-
color: theme.palette.primary.main
|
|
71
|
+
color: (theme.vars || theme).palette.primary.main
|
|
72
72
|
},
|
|
73
73
|
[`&.${_stepIconClasses.default.active}`]: {
|
|
74
|
-
color: theme.palette.primary.main
|
|
74
|
+
color: (theme.vars || theme).palette.primary.main
|
|
75
75
|
},
|
|
76
76
|
[`&.${_stepIconClasses.default.error}`]: {
|
|
77
|
-
color: theme.palette.error.main
|
|
77
|
+
color: (theme.vars || theme).palette.error.main
|
|
78
78
|
}
|
|
79
79
|
}));
|
|
80
80
|
const StepIconText = (0, _styled.default)('text', {
|
|
@@ -84,7 +84,7 @@ const StepIconText = (0, _styled.default)('text', {
|
|
|
84
84
|
})(({
|
|
85
85
|
theme
|
|
86
86
|
}) => ({
|
|
87
|
-
fill: theme.palette.primary.contrastText,
|
|
87
|
+
fill: (theme.vars || theme).palette.primary.contrastText,
|
|
88
88
|
fontSize: theme.typography.caption.fontSize,
|
|
89
89
|
fontFamily: theme.typography.fontFamily
|
|
90
90
|
}));
|
|
@@ -94,11 +94,11 @@ const StepLabelLabel = (0, _styled.default)('span', {
|
|
|
94
94
|
duration: theme.transitions.duration.shortest
|
|
95
95
|
}),
|
|
96
96
|
[`&.${_stepLabelClasses.default.active}`]: {
|
|
97
|
-
color: theme.palette.text.primary,
|
|
97
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
98
98
|
fontWeight: 500
|
|
99
99
|
},
|
|
100
100
|
[`&.${_stepLabelClasses.default.completed}`]: {
|
|
101
|
-
color: theme.palette.text.primary,
|
|
101
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
102
102
|
fontWeight: 500
|
|
103
103
|
},
|
|
104
104
|
[`&.${_stepLabelClasses.default.alternativeLabel}`]: {
|
|
@@ -106,7 +106,7 @@ const StepLabelLabel = (0, _styled.default)('span', {
|
|
|
106
106
|
marginTop: 16
|
|
107
107
|
},
|
|
108
108
|
[`&.${_stepLabelClasses.default.error}`]: {
|
|
109
|
-
color: theme.palette.error.main
|
|
109
|
+
color: (theme.vars || theme).palette.error.main
|
|
110
110
|
}
|
|
111
111
|
}));
|
|
112
112
|
const StepLabelIconContainer = (0, _styled.default)('span', {
|
|
@@ -130,7 +130,7 @@ const StepLabelLabelContainer = (0, _styled.default)('span', {
|
|
|
130
130
|
theme
|
|
131
131
|
}) => ({
|
|
132
132
|
width: '100%',
|
|
133
|
-
color: theme.palette.text.secondary
|
|
133
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
134
134
|
}));
|
|
135
135
|
const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
136
136
|
const props = (0, _useThemeProps.default)({
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
exports.useStepperContext = useStepperContext;
|
|
7
8
|
|
|
8
9
|
var React = _interopRequireWildcard(require("react"));
|
|
9
10
|
|
|
@@ -12,13 +13,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
+
* Provides information about the current step in Stepper.
|
|
16
17
|
*/
|
|
17
18
|
const StepperContext = /*#__PURE__*/React.createContext({});
|
|
18
19
|
|
|
19
20
|
if (process.env.NODE_ENV !== 'production') {
|
|
20
21
|
StepperContext.displayName = 'StepperContext';
|
|
21
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns the current StepperContext or an empty object if no StepperContext
|
|
25
|
+
* has been defined in the component tree.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function useStepperContext() {
|
|
30
|
+
return React.useContext(StepperContext);
|
|
31
|
+
}
|
|
22
32
|
|
|
23
33
|
var _default = StepperContext;
|
|
24
34
|
exports.default = _default;
|
package/node/Stepper/index.js
CHANGED
|
@@ -6,8 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
var _exportNames = {
|
|
9
|
-
stepperClasses: true
|
|
9
|
+
stepperClasses: true,
|
|
10
|
+
StepperContext: true
|
|
10
11
|
};
|
|
12
|
+
Object.defineProperty(exports, "StepperContext", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _StepperContext.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
11
18
|
Object.defineProperty(exports, "default", {
|
|
12
19
|
enumerable: true,
|
|
13
20
|
get: function () {
|
|
@@ -37,6 +44,20 @@ Object.keys(_stepperClasses).forEach(function (key) {
|
|
|
37
44
|
});
|
|
38
45
|
});
|
|
39
46
|
|
|
47
|
+
var _StepperContext = _interopRequireWildcard(require("./StepperContext"));
|
|
48
|
+
|
|
49
|
+
Object.keys(_StepperContext).forEach(function (key) {
|
|
50
|
+
if (key === "default" || key === "__esModule") return;
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
52
|
+
if (key in exports && exports[key] === _StepperContext[key]) return;
|
|
53
|
+
Object.defineProperty(exports, key, {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function () {
|
|
56
|
+
return _StepperContext[key];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
40
61
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
62
|
|
|
42
63
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/node/SvgIcon/SvgIcon.js
CHANGED
|
@@ -60,7 +60,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
60
60
|
theme,
|
|
61
61
|
ownerState
|
|
62
62
|
}) => {
|
|
63
|
-
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px,
|
|
63
|
+
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
|
|
64
64
|
|
|
65
65
|
return {
|
|
66
66
|
userSelect: 'none',
|
|
@@ -79,9 +79,9 @@ const SvgIconRoot = (0, _styled.default)('svg', {
|
|
|
79
79
|
large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
|
|
80
80
|
}[ownerState.fontSize],
|
|
81
81
|
// TODO v5 deprecate, v6 remove for sx
|
|
82
|
-
color: (
|
|
83
|
-
action: (
|
|
84
|
-
disabled: (
|
|
82
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
|
|
83
|
+
action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
|
|
84
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
|
|
85
85
|
inherit: undefined
|
|
86
86
|
}[ownerState.color]
|
|
87
87
|
};
|
package/node/Tab/Tab.js
CHANGED
|
@@ -104,23 +104,23 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
104
104
|
opacity: 1
|
|
105
105
|
},
|
|
106
106
|
[`&.${_tabClasses.default.disabled}`]: {
|
|
107
|
-
opacity: theme.palette.action.disabledOpacity
|
|
107
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
108
108
|
}
|
|
109
109
|
}, ownerState.textColor === 'primary' && {
|
|
110
|
-
color: theme.palette.text.secondary,
|
|
110
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
111
111
|
[`&.${_tabClasses.default.selected}`]: {
|
|
112
|
-
color: theme.palette.primary.main
|
|
112
|
+
color: (theme.vars || theme).palette.primary.main
|
|
113
113
|
},
|
|
114
114
|
[`&.${_tabClasses.default.disabled}`]: {
|
|
115
|
-
color: theme.palette.text.disabled
|
|
115
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
116
116
|
}
|
|
117
117
|
}, ownerState.textColor === 'secondary' && {
|
|
118
|
-
color: theme.palette.text.secondary,
|
|
118
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
119
119
|
[`&.${_tabClasses.default.selected}`]: {
|
|
120
|
-
color: theme.palette.secondary.main
|
|
120
|
+
color: (theme.vars || theme).palette.secondary.main
|
|
121
121
|
},
|
|
122
122
|
[`&.${_tabClasses.default.disabled}`]: {
|
|
123
|
-
color: theme.palette.text.disabled
|
|
123
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
124
124
|
}
|
|
125
125
|
}, ownerState.fullWidth && {
|
|
126
126
|
flexShrink: 1,
|
package/node/Table/Table.js
CHANGED
|
@@ -65,7 +65,7 @@ const TableRoot = (0, _styled.default)('table', {
|
|
|
65
65
|
borderSpacing: 0,
|
|
66
66
|
'& caption': (0, _extends2.default)({}, theme.typography.body2, {
|
|
67
67
|
padding: theme.spacing(2),
|
|
68
|
-
color: theme.palette.text.secondary,
|
|
68
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
69
69
|
textAlign: 'left',
|
|
70
70
|
captionSide: 'bottom'
|
|
71
71
|
})
|
|
@@ -59,7 +59,7 @@ const TablePaginationRoot = (0, _styled.default)(_TableCell.default, {
|
|
|
59
59
|
theme
|
|
60
60
|
}) => ({
|
|
61
61
|
overflow: 'auto',
|
|
62
|
-
color: theme.palette.text.primary,
|
|
62
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
63
63
|
fontSize: theme.typography.pxToRem(14),
|
|
64
64
|
// Increase the specificity to override TableCell.
|
|
65
65
|
'&:last-child': {
|
|
@@ -69,12 +69,12 @@ const TableRowRoot = (0, _styled.default)('tr', {
|
|
|
69
69
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
70
70
|
outline: 0,
|
|
71
71
|
[`&.${_tableRowClasses.default.hover}:hover`]: {
|
|
72
|
-
backgroundColor: theme.palette.action.hover
|
|
72
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
73
73
|
},
|
|
74
74
|
[`&.${_tableRowClasses.default.selected}`]: {
|
|
75
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
75
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
76
76
|
'&:hover': {
|
|
77
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
77
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}));
|
|
@@ -70,19 +70,19 @@ const TableSortLabelRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
70
70
|
flexDirection: 'inherit',
|
|
71
71
|
alignItems: 'center',
|
|
72
72
|
'&:focus': {
|
|
73
|
-
color: theme.palette.text.secondary
|
|
73
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
74
74
|
},
|
|
75
75
|
'&:hover': {
|
|
76
|
-
color: theme.palette.text.secondary,
|
|
76
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
77
77
|
[`& .${_tableSortLabelClasses.default.icon}`]: {
|
|
78
78
|
opacity: 0.5
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
[`&.${_tableSortLabelClasses.default.active}`]: {
|
|
82
|
-
color: theme.palette.text.primary,
|
|
82
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
83
83
|
[`& .${_tableSortLabelClasses.default.icon}`]: {
|
|
84
84
|
opacity: 1,
|
|
85
|
-
color: theme.palette.text.secondary
|
|
85
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}));
|
package/node/Tabs/Tabs.js
CHANGED
|
@@ -180,7 +180,7 @@ const TabsScroller = (0, _styled.default)('div', {
|
|
|
180
180
|
overflowX: 'hidden',
|
|
181
181
|
width: '100%'
|
|
182
182
|
}, ownerState.hideScrollbar && {
|
|
183
|
-
// Hide dimensionless scrollbar on
|
|
183
|
+
// Hide dimensionless scrollbar on macOS
|
|
184
184
|
scrollbarWidth: 'none',
|
|
185
185
|
// Firefox
|
|
186
186
|
'&::-webkit-scrollbar': {
|
|
@@ -226,9 +226,9 @@ const TabsIndicator = (0, _styled.default)('span', {
|
|
|
226
226
|
width: '100%',
|
|
227
227
|
transition: theme.transitions.create()
|
|
228
228
|
}, ownerState.indicatorColor === 'primary' && {
|
|
229
|
-
backgroundColor: theme.palette.primary.main
|
|
229
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
230
230
|
}, ownerState.indicatorColor === 'secondary' && {
|
|
231
|
-
backgroundColor: theme.palette.secondary.main
|
|
231
|
+
backgroundColor: (theme.vars || theme).palette.secondary.main
|
|
232
232
|
}, ownerState.vertical && {
|
|
233
233
|
height: '100%',
|
|
234
234
|
width: 2,
|
|
@@ -240,7 +240,7 @@ const TabsScrollbarSize = (0, _styled.default)(_ScrollbarSize.default, {
|
|
|
240
240
|
})({
|
|
241
241
|
overflowX: 'auto',
|
|
242
242
|
overflowY: 'hidden',
|
|
243
|
-
// Hide dimensionless scrollbar on
|
|
243
|
+
// Hide dimensionless scrollbar on macOS
|
|
244
244
|
scrollbarWidth: 'none',
|
|
245
245
|
// Firefox
|
|
246
246
|
'&::-webkit-scrollbar': {
|
|
@@ -67,35 +67,42 @@ const ToggleButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
67
67
|
theme,
|
|
68
68
|
ownerState
|
|
69
69
|
}) => {
|
|
70
|
-
|
|
70
|
+
let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
|
|
71
|
+
let selectedColorChannel;
|
|
72
|
+
|
|
73
|
+
if (theme.vars) {
|
|
74
|
+
selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
|
|
75
|
+
selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
|
|
76
|
+
}
|
|
77
|
+
|
|
71
78
|
return (0, _extends2.default)({}, theme.typography.button, {
|
|
72
|
-
borderRadius: theme.shape.borderRadius,
|
|
79
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
73
80
|
padding: 11,
|
|
74
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
75
|
-
color: theme.palette.action.active
|
|
81
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
82
|
+
color: (theme.vars || theme).palette.action.active
|
|
76
83
|
}, ownerState.fullWidth && {
|
|
77
84
|
width: '100%'
|
|
78
85
|
}, {
|
|
79
86
|
[`&.${_toggleButtonClasses.default.disabled}`]: {
|
|
80
|
-
color: theme.palette.action.disabled,
|
|
81
|
-
border: `1px solid ${theme.palette.action.disabledBackground}`
|
|
87
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
88
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
82
89
|
},
|
|
83
90
|
'&:hover': {
|
|
84
91
|
textDecoration: 'none',
|
|
85
92
|
// Reset on mouse devices
|
|
86
|
-
backgroundColor: (0, _styles.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
93
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _styles.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
87
94
|
'@media (hover: none)': {
|
|
88
95
|
backgroundColor: 'transparent'
|
|
89
96
|
}
|
|
90
97
|
},
|
|
91
98
|
[`&.${_toggleButtonClasses.default.selected}`]: {
|
|
92
99
|
color: selectedColor,
|
|
93
|
-
backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity),
|
|
100
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity),
|
|
94
101
|
'&:hover': {
|
|
95
|
-
backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
102
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
96
103
|
// Reset on touch devices, it doesn't add specificity
|
|
97
104
|
'@media (hover: none)': {
|
|
98
|
-
backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity)
|
|
105
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity)
|
|
99
106
|
}
|
|
100
107
|
}
|
|
101
108
|
}
|
|
@@ -71,7 +71,7 @@ const ToggleButtonGroupRoot = (0, _styled.default)('div', {
|
|
|
71
71
|
theme
|
|
72
72
|
}) => (0, _extends2.default)({
|
|
73
73
|
display: 'inline-flex',
|
|
74
|
-
borderRadius: theme.shape.borderRadius
|
|
74
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
75
75
|
}, ownerState.orientation === 'vertical' && {
|
|
76
76
|
flexDirection: 'column'
|
|
77
77
|
}, ownerState.fullWidth && {
|
package/node/Tooltip/Tooltip.js
CHANGED
|
@@ -90,7 +90,7 @@ const TooltipPopper = (0, _styled.default)(_Popper.default, {
|
|
|
90
90
|
ownerState,
|
|
91
91
|
open
|
|
92
92
|
}) => (0, _extends2.default)({
|
|
93
|
-
zIndex: theme.zIndex.tooltip,
|
|
93
|
+
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
94
94
|
pointerEvents: 'none'
|
|
95
95
|
}, !ownerState.disableInteractive && {
|
|
96
96
|
pointerEvents: 'auto'
|
|
@@ -151,9 +151,9 @@ const TooltipTooltip = (0, _styled.default)('div', {
|
|
|
151
151
|
theme,
|
|
152
152
|
ownerState
|
|
153
153
|
}) => (0, _extends2.default)({
|
|
154
|
-
backgroundColor: (0, _system.alpha)(theme.palette.grey[700], 0.92),
|
|
155
|
-
borderRadius: theme.shape.borderRadius,
|
|
156
|
-
color: theme.palette.common.white,
|
|
154
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : (0, _system.alpha)(theme.palette.grey[700], 0.92),
|
|
155
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
156
|
+
color: (theme.vars || theme).palette.common.white,
|
|
157
157
|
fontFamily: theme.typography.fontFamily,
|
|
158
158
|
padding: '4px 8px',
|
|
159
159
|
fontSize: theme.typography.pxToRem(11),
|
|
@@ -219,7 +219,7 @@ const TooltipArrow = (0, _styled.default)('span', {
|
|
|
219
219
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
220
220
|
,
|
|
221
221
|
boxSizing: 'border-box',
|
|
222
|
-
color: (0, _system.alpha)(theme.palette.grey[700], 0.9),
|
|
222
|
+
color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : (0, _system.alpha)(theme.palette.grey[700], 0.9),
|
|
223
223
|
'&::before': {
|
|
224
224
|
content: '""',
|
|
225
225
|
margin: 'auto',
|
package/node/className/index.js
CHANGED
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "unstable_ClassNameGenerator", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _utils.unstable_ClassNameGenerator;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _utils = require("@mui/utils");
|
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -89,26 +89,26 @@ const arEG = {
|
|
|
89
89
|
components: {
|
|
90
90
|
MuiBreadcrumbs: {
|
|
91
91
|
defaultProps: {
|
|
92
|
-
expandText: '
|
|
92
|
+
expandText: 'إظهار المسار'
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
MuiTablePagination: {
|
|
96
96
|
defaultProps: {
|
|
97
97
|
getItemAriaLabel: type => {
|
|
98
98
|
if (type === 'first') {
|
|
99
|
-
return '
|
|
99
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
if (type === 'last') {
|
|
103
|
-
return '
|
|
103
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
if (type === 'next') {
|
|
107
|
-
return '
|
|
107
|
+
return 'انتقل إلى الصفحة التالية';
|
|
108
108
|
} // if (type === 'previous') {
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
return '
|
|
111
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
112
112
|
},
|
|
113
113
|
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
114
114
|
labelDisplayedRows: ({
|
|
@@ -128,7 +128,7 @@ const arEG = {
|
|
|
128
128
|
defaultProps: {
|
|
129
129
|
clearText: 'مسح',
|
|
130
130
|
closeText: 'إغلاق',
|
|
131
|
-
loadingText: '
|
|
131
|
+
loadingText: 'جار التحميل...',
|
|
132
132
|
noOptionsText: 'لا يوجد خيارات',
|
|
133
133
|
openText: 'فتح'
|
|
134
134
|
}
|
|
@@ -143,23 +143,23 @@ const arEG = {
|
|
|
143
143
|
'aria-label': 'التنقل عبر الصفحات',
|
|
144
144
|
getItemAriaLabel: (type, page, selected) => {
|
|
145
145
|
if (type === 'page') {
|
|
146
|
-
return `${selected ? '' : '
|
|
146
|
+
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
if (type === 'first') {
|
|
150
|
-
return '
|
|
150
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (type === 'last') {
|
|
154
|
-
return '
|
|
154
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
if (type === 'next') {
|
|
158
|
-
return '
|
|
158
|
+
return 'انتقل إلى الصفحة التالية';
|
|
159
159
|
} // if (type === 'previous') {
|
|
160
160
|
|
|
161
161
|
|
|
162
|
-
return '
|
|
162
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -170,26 +170,26 @@ const arSD = {
|
|
|
170
170
|
components: {
|
|
171
171
|
MuiBreadcrumbs: {
|
|
172
172
|
defaultProps: {
|
|
173
|
-
expandText: '
|
|
173
|
+
expandText: 'إظهار المسار'
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
MuiTablePagination: {
|
|
177
177
|
defaultProps: {
|
|
178
178
|
getItemAriaLabel: type => {
|
|
179
179
|
if (type === 'first') {
|
|
180
|
-
return '
|
|
180
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
if (type === 'last') {
|
|
184
|
-
return '
|
|
184
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
if (type === 'next') {
|
|
188
|
-
return '
|
|
188
|
+
return 'انتقل إلى الصفحة التالية';
|
|
189
189
|
} // if (type === 'previous') {
|
|
190
190
|
|
|
191
191
|
|
|
192
|
-
return '
|
|
192
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
193
193
|
},
|
|
194
194
|
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
195
195
|
labelDisplayedRows: ({
|
|
@@ -209,7 +209,7 @@ const arSD = {
|
|
|
209
209
|
defaultProps: {
|
|
210
210
|
clearText: 'مسح',
|
|
211
211
|
closeText: 'إغلاق',
|
|
212
|
-
loadingText: '
|
|
212
|
+
loadingText: 'جار التحميل...',
|
|
213
213
|
noOptionsText: 'لا يوجد خيارات',
|
|
214
214
|
openText: 'فتح'
|
|
215
215
|
}
|
|
@@ -224,23 +224,23 @@ const arSD = {
|
|
|
224
224
|
'aria-label': 'التنقل عبر الصفحات',
|
|
225
225
|
getItemAriaLabel: (type, page, selected) => {
|
|
226
226
|
if (type === 'page') {
|
|
227
|
-
return `${selected ? '' : '
|
|
227
|
+
return `${selected ? '' : 'انتقل إلى '} صفحة ${page}`;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
if (type === 'first') {
|
|
231
|
-
return '
|
|
231
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
if (type === 'last') {
|
|
235
|
-
return '
|
|
235
|
+
return 'انتقل الي الصفحة الأخيرة';
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
if (type === 'next') {
|
|
239
|
-
return '
|
|
239
|
+
return 'انتقل إلى الصفحة التالية';
|
|
240
240
|
} // if (type === 'previous') {
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
return '
|
|
243
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -9,12 +9,14 @@ exports.default = createMixins;
|
|
|
9
9
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
|
|
12
|
-
function createMixins(breakpoints,
|
|
12
|
+
function createMixins(breakpoints, mixins) {
|
|
13
13
|
return (0, _extends2.default)({
|
|
14
14
|
toolbar: {
|
|
15
15
|
minHeight: 56,
|
|
16
|
-
[
|
|
17
|
-
|
|
16
|
+
[breakpoints.up('xs')]: {
|
|
17
|
+
'@media (orientation: landscape)': {
|
|
18
|
+
minHeight: 48
|
|
19
|
+
}
|
|
18
20
|
},
|
|
19
21
|
[breakpoints.up('sm')]: {
|
|
20
22
|
minHeight: 64
|
|
@@ -301,7 +301,8 @@ const theme2 = createTheme({ palette: {
|
|
|
301
301
|
|
|
302
302
|
const paletteOutput = (0, _utils.deepmerge)((0, _extends2.default)({
|
|
303
303
|
// A collection of common colors.
|
|
304
|
-
common: _common.default,
|
|
304
|
+
common: (0, _extends2.default)({}, _common.default),
|
|
305
|
+
// prevent mutable object.
|
|
305
306
|
// The palette mode, can be light or dark.
|
|
306
307
|
mode,
|
|
307
308
|
// The colors used to represent primary interface elements for a user.
|
|
@@ -43,7 +43,7 @@ function createTheme(options = {}, ...args) {
|
|
|
43
43
|
const palette = (0, _createPalette.default)(paletteInput);
|
|
44
44
|
const systemTheme = (0, _system.createTheme)(options);
|
|
45
45
|
let muiTheme = (0, _utils.deepmerge)(systemTheme, {
|
|
46
|
-
mixins: (0, _createMixins.default)(systemTheme.breakpoints,
|
|
46
|
+
mixins: (0, _createMixins.default)(systemTheme.breakpoints, mixinsInput),
|
|
47
47
|
palette,
|
|
48
48
|
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
49
49
|
shadows: _shadows.default.slice(),
|