@mui/material 5.6.2 → 5.7.0
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/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +15 -14
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.d.ts +9 -28
- package/Box/Box.js +25 -4
- 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/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +225 -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/CircularProgress.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/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/DialogTitle.d.ts +30 -15
- 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 +69 -65
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +3 -1
- 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 +8 -8
- 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/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/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +79 -32
- 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/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- 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/StepContent.d.ts +3 -1
- 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.d.ts +1 -1
- package/Tabs/Tabs.js +2 -2
- 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/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Autocomplete/Autocomplete.js +15 -14
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/legacy/Box/Box.js +25 -4
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- 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 +17 -17
- package/legacy/FilledInput/FilledInput.js +2 -2
- 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 +8 -8
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Rating/Rating.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/experimental_extendTheme.js +52 -43
- package/locale/index.d.ts +71 -71
- package/locale/index.js +1 -1
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +15 -14
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/modern/Box/Box.js +25 -4
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- 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 +16 -16
- package/modern/FilledInput/FilledInput.js +1 -1
- 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 +8 -8
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Rating/Rating.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/experimental_extendTheme.js +56 -45
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/Autocomplete/Autocomplete.js +15 -14
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/node/Box/Box.js +28 -4
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- 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 +69 -65
- package/node/FilledInput/FilledInput.js +3 -1
- 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 +8 -8
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Rating/Rating.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/experimental_extendTheme.js +57 -47
- package/package.json +6 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createPalette.d.ts +9 -2
- package/styles/createPalette.js +2 -1
- package/styles/experimental_extendTheme.d.ts +13 -16
- package/styles/experimental_extendTheme.js +57 -46
- 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 +582 -484
- 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
|
@@ -73,20 +73,20 @@ const MobileStepperRoot = (0, _styled.default)(_Paper.default, {
|
|
|
73
73
|
flexDirection: 'row',
|
|
74
74
|
justifyContent: 'space-between',
|
|
75
75
|
alignItems: 'center',
|
|
76
|
-
background: theme.palette.background.default,
|
|
76
|
+
background: (theme.vars || theme).palette.background.default,
|
|
77
77
|
padding: 8
|
|
78
78
|
}, ownerState.position === 'bottom' && {
|
|
79
79
|
position: 'fixed',
|
|
80
80
|
bottom: 0,
|
|
81
81
|
left: 0,
|
|
82
82
|
right: 0,
|
|
83
|
-
zIndex: theme.zIndex.mobileStepper
|
|
83
|
+
zIndex: (theme.vars || theme).zIndex.mobileStepper
|
|
84
84
|
}, ownerState.position === 'top' && {
|
|
85
85
|
position: 'fixed',
|
|
86
86
|
top: 0,
|
|
87
87
|
left: 0,
|
|
88
88
|
right: 0,
|
|
89
|
-
zIndex: theme.zIndex.mobileStepper
|
|
89
|
+
zIndex: (theme.vars || theme).zIndex.mobileStepper
|
|
90
90
|
}));
|
|
91
91
|
const MobileStepperDots = (0, _styled.default)('div', {
|
|
92
92
|
name: 'MuiMobileStepper',
|
|
@@ -116,13 +116,13 @@ const MobileStepperDot = (0, _styled.default)('div', {
|
|
|
116
116
|
transition: theme.transitions.create('background-color', {
|
|
117
117
|
duration: theme.transitions.duration.shortest
|
|
118
118
|
}),
|
|
119
|
-
backgroundColor: theme.palette.action.disabled,
|
|
119
|
+
backgroundColor: (theme.vars || theme).palette.action.disabled,
|
|
120
120
|
borderRadius: '50%',
|
|
121
121
|
width: 8,
|
|
122
122
|
height: 8,
|
|
123
123
|
margin: '0 2px'
|
|
124
124
|
}, dotActive && {
|
|
125
|
-
backgroundColor: theme.palette.primary.main
|
|
125
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
126
126
|
})));
|
|
127
127
|
const MobileStepperProgress = (0, _styled.default)(_LinearProgress.default, {
|
|
128
128
|
name: 'MuiMobileStepper',
|
package/node/Modal/Modal.js
CHANGED
|
@@ -96,10 +96,10 @@ const PaginationItemEllipsis = (0, _styled.default)('div', {
|
|
|
96
96
|
minWidth: 32,
|
|
97
97
|
padding: '0 6px',
|
|
98
98
|
margin: '0 3px',
|
|
99
|
-
color: theme.palette.text.primary,
|
|
99
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
100
100
|
height: 'auto',
|
|
101
101
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
102
|
-
opacity: theme.palette.action.disabledOpacity
|
|
102
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
103
103
|
}
|
|
104
104
|
}, ownerState.size === 'small' && {
|
|
105
105
|
minWidth: 26,
|
|
@@ -127,39 +127,39 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
|
|
|
127
127
|
height: 32,
|
|
128
128
|
padding: '0 6px',
|
|
129
129
|
margin: '0 3px',
|
|
130
|
-
color: theme.palette.text.primary,
|
|
130
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
131
131
|
[`&.${_paginationItemClasses.default.focusVisible}`]: {
|
|
132
|
-
backgroundColor: theme.palette.action.focus
|
|
132
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
133
133
|
},
|
|
134
134
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
135
|
-
opacity: theme.palette.action.disabledOpacity
|
|
135
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
136
136
|
},
|
|
137
137
|
transition: theme.transitions.create(['color', 'background-color'], {
|
|
138
138
|
duration: theme.transitions.duration.short
|
|
139
139
|
}),
|
|
140
140
|
'&:hover': {
|
|
141
|
-
backgroundColor: theme.palette.action.hover,
|
|
141
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
142
142
|
// Reset on touch devices, it doesn't add specificity
|
|
143
143
|
'@media (hover: none)': {
|
|
144
144
|
backgroundColor: 'transparent'
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
[`&.${_paginationItemClasses.default.selected}`]: {
|
|
148
|
-
backgroundColor: theme.palette.action.selected,
|
|
148
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
149
149
|
'&:hover': {
|
|
150
|
-
backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
150
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
151
151
|
// Reset on touch devices, it doesn't add specificity
|
|
152
152
|
'@media (hover: none)': {
|
|
153
|
-
backgroundColor: theme.palette.action.selected
|
|
153
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
[`&.${_paginationItemClasses.default.focusVisible}`]: {
|
|
157
|
-
backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
157
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
158
158
|
},
|
|
159
159
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
160
160
|
opacity: 1,
|
|
161
|
-
color: theme.palette.action.disabled,
|
|
162
|
-
backgroundColor: theme.palette.action.selected
|
|
161
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
162
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}, ownerState.size === 'small' && {
|
|
@@ -175,49 +175,49 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
|
|
|
175
175
|
padding: '0 10px',
|
|
176
176
|
fontSize: theme.typography.pxToRem(15)
|
|
177
177
|
}, ownerState.shape === 'rounded' && {
|
|
178
|
-
borderRadius: theme.shape.borderRadius
|
|
178
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
179
179
|
}), ({
|
|
180
180
|
theme,
|
|
181
181
|
ownerState
|
|
182
182
|
}) => (0, _extends2.default)({}, ownerState.variant === 'text' && {
|
|
183
183
|
[`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
|
|
184
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
185
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
184
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
185
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
186
186
|
'&:hover': {
|
|
187
|
-
backgroundColor: theme.palette[ownerState.color].dark,
|
|
187
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
188
188
|
// Reset on touch devices, it doesn't add specificity
|
|
189
189
|
'@media (hover: none)': {
|
|
190
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
190
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
[`&.${_paginationItemClasses.default.focusVisible}`]: {
|
|
194
|
-
backgroundColor: theme.palette[ownerState.color].dark
|
|
194
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
195
195
|
}
|
|
196
196
|
}, {
|
|
197
197
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
198
|
-
color: theme.palette.action.disabled
|
|
198
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
}, ownerState.variant === 'outlined' && {
|
|
202
|
-
border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
202
|
+
border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
|
203
203
|
[`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
|
|
204
|
-
color: theme.palette[ownerState.color].main,
|
|
205
|
-
border: `1px solid ${(0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
|
|
206
|
-
backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
204
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
205
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
|
|
206
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
207
207
|
'&:hover': {
|
|
208
|
-
backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
208
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
209
209
|
// Reset on touch devices, it doesn't add specificity
|
|
210
210
|
'@media (hover: none)': {
|
|
211
211
|
backgroundColor: 'transparent'
|
|
212
212
|
}
|
|
213
213
|
},
|
|
214
214
|
[`&.${_paginationItemClasses.default.focusVisible}`]: {
|
|
215
|
-
backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
215
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
216
216
|
}
|
|
217
217
|
}, {
|
|
218
218
|
[`&.${_paginationItemClasses.default.disabled}`]: {
|
|
219
|
-
borderColor: theme.palette.action.disabledBackground,
|
|
220
|
-
color: theme.palette.action.disabled
|
|
219
|
+
borderColor: (theme.vars || theme).palette.action.disabledBackground,
|
|
220
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
221
221
|
}
|
|
222
222
|
})
|
|
223
223
|
}));
|
package/node/Rating/Rating.js
CHANGED
|
@@ -119,7 +119,7 @@ const RatingRoot = (0, _styled.default)('span', {
|
|
|
119
119
|
textAlign: 'left',
|
|
120
120
|
WebkitTapHighlightColor: 'transparent',
|
|
121
121
|
[`&.${_ratingClasses.default.disabled}`]: {
|
|
122
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
122
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
123
123
|
pointerEvents: 'none'
|
|
124
124
|
},
|
|
125
125
|
[`&.${_ratingClasses.default.focusVisible} .${_ratingClasses.default.iconActive}`]: {
|
|
@@ -172,7 +172,7 @@ const RatingIcon = (0, _styled.default)('span', {
|
|
|
172
172
|
}, ownerState.iconActive && {
|
|
173
173
|
transform: 'scale(1.2)'
|
|
174
174
|
}, ownerState.iconEmpty && {
|
|
175
|
-
color: theme.palette.action.disabled
|
|
175
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
176
176
|
}));
|
|
177
177
|
const RatingDecimal = (0, _styled.default)('span', {
|
|
178
178
|
name: 'MuiRating',
|
|
@@ -80,7 +80,7 @@ const SnackbarRoot = (0, _styled.default)('div', {
|
|
|
80
80
|
transform: 'translateX(50%)'
|
|
81
81
|
});
|
|
82
82
|
return (0, _extends2.default)({
|
|
83
|
-
zIndex: theme.zIndex.snackbar,
|
|
83
|
+
zIndex: (theme.vars || theme).zIndex.snackbar,
|
|
84
84
|
position: 'fixed',
|
|
85
85
|
display: 'flex',
|
|
86
86
|
left: 8,
|
|
@@ -104,7 +104,7 @@ const SpeedDialRoot = (0, _styled.default)('div', {
|
|
|
104
104
|
theme,
|
|
105
105
|
ownerState
|
|
106
106
|
}) => (0, _extends2.default)({
|
|
107
|
-
zIndex: theme.zIndex.speedDial,
|
|
107
|
+
zIndex: (theme.vars || theme).zIndex.speedDial,
|
|
108
108
|
display: 'flex',
|
|
109
109
|
alignItems: 'center',
|
|
110
110
|
pointerEvents: 'none'
|
|
@@ -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
|
@@ -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,
|
|
@@ -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 _privateClassnames.unstable_ClassNameGenerator;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _privateClassnames = require("@mui/private-classnames");
|
package/node/index.js
CHANGED
package/node/locale/index.js
CHANGED
|
@@ -632,7 +632,7 @@ const csCZ = {
|
|
|
632
632
|
'aria-label': 'Navigace stránkováním',
|
|
633
633
|
getItemAriaLabel: (type, page, selected) => {
|
|
634
634
|
if (type === 'page') {
|
|
635
|
-
return `${selected ? '' : 'Jít na '}${page} stránku`;
|
|
635
|
+
return `${selected ? '' : 'Jít na '}${page}. stránku`;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
if (type === 'first') {
|
|
@@ -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.
|