@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
|
@@ -100,7 +100,7 @@ const InputBaseRoot = (0, _styled.default)('div', {
|
|
|
100
100
|
theme,
|
|
101
101
|
ownerState
|
|
102
102
|
}) => (0, _extends2.default)({}, theme.typography.body1, {
|
|
103
|
-
color: theme.palette.text.primary,
|
|
103
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
104
104
|
lineHeight: '1.4375em',
|
|
105
105
|
// 23px
|
|
106
106
|
boxSizing: 'border-box',
|
|
@@ -110,7 +110,7 @@ const InputBaseRoot = (0, _styled.default)('div', {
|
|
|
110
110
|
display: 'inline-flex',
|
|
111
111
|
alignItems: 'center',
|
|
112
112
|
[`&.${_inputBaseClasses.default.disabled}`]: {
|
|
113
|
-
color: theme.palette.text.disabled,
|
|
113
|
+
color: (theme.vars || theme).palette.text.disabled,
|
|
114
114
|
cursor: 'default'
|
|
115
115
|
}
|
|
116
116
|
}, ownerState.multiline && (0, _extends2.default)({
|
|
@@ -130,17 +130,23 @@ const InputBaseComponent = (0, _styled.default)('input', {
|
|
|
130
130
|
ownerState
|
|
131
131
|
}) => {
|
|
132
132
|
const light = theme.palette.mode === 'light';
|
|
133
|
-
const placeholder = {
|
|
134
|
-
color: 'currentColor'
|
|
135
|
-
|
|
133
|
+
const placeholder = (0, _extends2.default)({
|
|
134
|
+
color: 'currentColor'
|
|
135
|
+
}, theme.vars ? {
|
|
136
|
+
opacity: theme.vars.opacity.placeholder
|
|
137
|
+
} : {
|
|
138
|
+
opacity: light ? 0.42 : 0.5
|
|
139
|
+
}, {
|
|
136
140
|
transition: theme.transitions.create('opacity', {
|
|
137
141
|
duration: theme.transitions.duration.shorter
|
|
138
142
|
})
|
|
139
|
-
};
|
|
143
|
+
});
|
|
140
144
|
const placeholderHidden = {
|
|
141
145
|
opacity: '0 !important'
|
|
142
146
|
};
|
|
143
|
-
const placeholderVisible = {
|
|
147
|
+
const placeholderVisible = theme.vars ? {
|
|
148
|
+
opacity: theme.vars.opacity.placeholder
|
|
149
|
+
} : {
|
|
144
150
|
opacity: light ? 0.42 : 0.5
|
|
145
151
|
};
|
|
146
152
|
return (0, _extends2.default)({
|
|
@@ -201,7 +207,7 @@ const InputBaseComponent = (0, _styled.default)('input', {
|
|
|
201
207
|
[`&.${_inputBaseClasses.default.disabled}`]: {
|
|
202
208
|
opacity: 1,
|
|
203
209
|
// Reset iOS opacity
|
|
204
|
-
WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
|
|
210
|
+
WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
|
|
205
211
|
|
|
206
212
|
},
|
|
207
213
|
'&:-webkit-autofill': {
|
package/node/Link/Link.js
CHANGED
|
@@ -27,8 +27,6 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
|
27
27
|
|
|
28
28
|
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
29
29
|
|
|
30
|
-
var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
|
|
31
|
-
|
|
32
30
|
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
33
31
|
|
|
34
32
|
var _useIsFocusVisible = _interopRequireDefault(require("../utils/useIsFocusVisible"));
|
|
@@ -129,7 +127,6 @@ const LinkRoot = (0, _styled.default)(_Typography.default, {
|
|
|
129
127
|
});
|
|
130
128
|
});
|
|
131
129
|
const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
132
|
-
const theme = (0, _useTheme.default)();
|
|
133
130
|
const props = (0, _useThemeProps.default)({
|
|
134
131
|
props: inProps,
|
|
135
132
|
name: 'MuiLink'
|
|
@@ -146,7 +143,6 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
|
146
143
|
sx
|
|
147
144
|
} = props,
|
|
148
145
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
149
|
-
const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
|
|
150
146
|
const {
|
|
151
147
|
isFocusVisibleRef,
|
|
152
148
|
onBlur: handleBlurVisible,
|
|
@@ -181,9 +177,7 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
|
181
177
|
};
|
|
182
178
|
|
|
183
179
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
184
|
-
|
|
185
|
-
// Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
|
|
186
|
-
color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
|
|
180
|
+
color,
|
|
187
181
|
component,
|
|
188
182
|
focusVisible,
|
|
189
183
|
underline,
|
|
@@ -200,8 +194,8 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
|
200
194
|
ref: handlerRef,
|
|
201
195
|
ownerState: ownerState,
|
|
202
196
|
variant: variant,
|
|
203
|
-
sx: [...(
|
|
204
|
-
color
|
|
197
|
+
sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
|
|
198
|
+
color
|
|
205
199
|
}] : []), ...(Array.isArray(sx) ? sx : [sx])]
|
|
206
200
|
}, other));
|
|
207
201
|
});
|
|
@@ -116,21 +116,21 @@ const ListItemRoot = (0, _styled.default)('div', {
|
|
|
116
116
|
}
|
|
117
117
|
}, {
|
|
118
118
|
[`&.${_listItemClasses.default.focusVisible}`]: {
|
|
119
|
-
backgroundColor: theme.palette.action.focus
|
|
119
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
120
120
|
},
|
|
121
121
|
[`&.${_listItemClasses.default.selected}`]: {
|
|
122
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
122
|
+
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),
|
|
123
123
|
[`&.${_listItemClasses.default.focusVisible}`]: {
|
|
124
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
124
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
[`&.${_listItemClasses.default.disabled}`]: {
|
|
128
|
-
opacity: theme.palette.action.disabledOpacity
|
|
128
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
129
129
|
}
|
|
130
130
|
}, ownerState.alignItems === 'flex-start' && {
|
|
131
131
|
alignItems: 'flex-start'
|
|
132
132
|
}, ownerState.divider && {
|
|
133
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
133
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
134
134
|
backgroundClip: 'padding-box'
|
|
135
135
|
}, ownerState.button && {
|
|
136
136
|
transition: theme.transitions.create('background-color', {
|
|
@@ -138,17 +138,17 @@ const ListItemRoot = (0, _styled.default)('div', {
|
|
|
138
138
|
}),
|
|
139
139
|
'&:hover': {
|
|
140
140
|
textDecoration: 'none',
|
|
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
|
[`&.${_listItemClasses.default.selected}:hover`]: {
|
|
148
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
148
|
+
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),
|
|
149
149
|
// Reset on touch devices, it doesn't add specificity
|
|
150
150
|
'@media (hover: none)': {
|
|
151
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
151
|
+
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)
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}, ownerState.hasSecondaryAction && {
|
|
@@ -94,33 +94,33 @@ const ListItemButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
94
94
|
}),
|
|
95
95
|
'&:hover': {
|
|
96
96
|
textDecoration: 'none',
|
|
97
|
-
backgroundColor: theme.palette.action.hover,
|
|
97
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
98
98
|
// Reset on touch devices, it doesn't add specificity
|
|
99
99
|
'@media (hover: none)': {
|
|
100
100
|
backgroundColor: 'transparent'
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
[`&.${_listItemButtonClasses.default.selected}`]: {
|
|
104
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
104
|
+
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),
|
|
105
105
|
[`&.${_listItemButtonClasses.default.focusVisible}`]: {
|
|
106
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
106
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
[`&.${_listItemButtonClasses.default.selected}:hover`]: {
|
|
110
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
110
|
+
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),
|
|
111
111
|
// Reset on touch devices, it doesn't add specificity
|
|
112
112
|
'@media (hover: none)': {
|
|
113
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
113
|
+
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)
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
[`&.${_listItemButtonClasses.default.focusVisible}`]: {
|
|
117
|
-
backgroundColor: theme.palette.action.focus
|
|
117
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
118
118
|
},
|
|
119
119
|
[`&.${_listItemButtonClasses.default.disabled}`]: {
|
|
120
|
-
opacity: theme.palette.action.disabledOpacity
|
|
120
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
121
121
|
}
|
|
122
122
|
}, ownerState.divider && {
|
|
123
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
123
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
124
124
|
backgroundClip: 'padding-box'
|
|
125
125
|
}, ownerState.alignItems === 'flex-start' && {
|
|
126
126
|
alignItems: 'flex-start'
|
|
@@ -177,7 +177,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
177
177
|
value: childContext,
|
|
178
178
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemButtonRoot, (0, _extends2.default)({
|
|
179
179
|
ref: handleRef,
|
|
180
|
-
|
|
180
|
+
href: other.href || other.to,
|
|
181
|
+
component: (other.href || other.to) && component === 'div' ? 'a' : component,
|
|
181
182
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
182
183
|
ownerState: ownerState
|
|
183
184
|
}, other, {
|
|
@@ -259,6 +260,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
|
|
|
259
260
|
*/
|
|
260
261
|
focusVisibleClassName: _propTypes.default.string,
|
|
261
262
|
|
|
263
|
+
/**
|
|
264
|
+
* @ignore
|
|
265
|
+
*/
|
|
266
|
+
href: _propTypes.default.string,
|
|
267
|
+
|
|
262
268
|
/**
|
|
263
269
|
* Use to apply selected styling.
|
|
264
270
|
* @default false
|
|
@@ -60,7 +60,7 @@ const ListItemIconRoot = (0, _styled.default)('div', {
|
|
|
60
60
|
ownerState
|
|
61
61
|
}) => (0, _extends2.default)({
|
|
62
62
|
minWidth: 56,
|
|
63
|
-
color: theme.palette.action.active,
|
|
63
|
+
color: (theme.vars || theme).palette.action.active,
|
|
64
64
|
flexShrink: 0,
|
|
65
65
|
display: 'inline-flex'
|
|
66
66
|
}, ownerState.alignItems === 'flex-start' && {
|
|
@@ -65,12 +65,12 @@ const ListSubheaderRoot = (0, _styled.default)('li', {
|
|
|
65
65
|
boxSizing: 'border-box',
|
|
66
66
|
lineHeight: '48px',
|
|
67
67
|
listStyle: 'none',
|
|
68
|
-
color: theme.palette.text.secondary,
|
|
68
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
69
69
|
fontFamily: theme.typography.fontFamily,
|
|
70
70
|
fontWeight: theme.typography.fontWeightMedium,
|
|
71
71
|
fontSize: theme.typography.pxToRem(14)
|
|
72
72
|
}, ownerState.color === 'primary' && {
|
|
73
|
-
color: theme.palette.primary.main
|
|
73
|
+
color: (theme.vars || theme).palette.primary.main
|
|
74
74
|
}, ownerState.color === 'inherit' && {
|
|
75
75
|
color: 'inherit'
|
|
76
76
|
}, !ownerState.disableGutters && {
|
|
@@ -82,7 +82,7 @@ const ListSubheaderRoot = (0, _styled.default)('li', {
|
|
|
82
82
|
position: 'sticky',
|
|
83
83
|
top: 0,
|
|
84
84
|
zIndex: 1,
|
|
85
|
-
backgroundColor: theme.palette.background.paper
|
|
85
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
86
86
|
}));
|
|
87
87
|
const ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {
|
|
88
88
|
const props = (0, _useThemeProps.default)({
|
|
@@ -97,35 +97,35 @@ const MenuItemRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
97
97
|
paddingLeft: 16,
|
|
98
98
|
paddingRight: 16
|
|
99
99
|
}, ownerState.divider && {
|
|
100
|
-
borderBottom: `1px solid ${theme.palette.divider}`,
|
|
100
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
101
101
|
backgroundClip: 'padding-box'
|
|
102
102
|
}, {
|
|
103
103
|
'&:hover': {
|
|
104
104
|
textDecoration: 'none',
|
|
105
|
-
backgroundColor: theme.palette.action.hover,
|
|
105
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
106
106
|
// Reset on touch devices, it doesn't add specificity
|
|
107
107
|
'@media (hover: none)': {
|
|
108
108
|
backgroundColor: 'transparent'
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
[`&.${_menuItemClasses.default.selected}`]: {
|
|
112
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
112
|
+
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),
|
|
113
113
|
[`&.${_menuItemClasses.default.focusVisible}`]: {
|
|
114
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
114
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
[`&.${_menuItemClasses.default.selected}:hover`]: {
|
|
118
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
118
|
+
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),
|
|
119
119
|
// Reset on touch devices, it doesn't add specificity
|
|
120
120
|
'@media (hover: none)': {
|
|
121
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
121
|
+
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)
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
[`&.${_menuItemClasses.default.focusVisible}`]: {
|
|
125
|
-
backgroundColor: theme.palette.action.focus
|
|
125
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
126
126
|
},
|
|
127
127
|
[`&.${_menuItemClasses.default.disabled}`]: {
|
|
128
|
-
opacity: theme.palette.action.disabledOpacity
|
|
128
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
129
129
|
},
|
|
130
130
|
[`& + .${_Divider.dividerClasses.root}`]: {
|
|
131
131
|
marginTop: theme.spacing(1),
|
|
@@ -113,7 +113,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
|
113
113
|
return false;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* A permanently displayed menu following https://www.w3.org/
|
|
116
|
+
* A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
|
|
117
117
|
* It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
|
|
118
118
|
* use it separately you need to move focus into the component manually. Once
|
|
119
119
|
* the focus is placed inside the component it is fully keyboard accessible.
|
|
@@ -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/Paper/Paper.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = void 0;
|
|
8
|
+
exports.getOverlayAlpha = exports.default = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
|
|
@@ -52,6 +52,8 @@ const getOverlayAlpha = elevation => {
|
|
|
52
52
|
return (alphaValue / 100).toFixed(2);
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
exports.getOverlayAlpha = getOverlayAlpha;
|
|
56
|
+
|
|
55
57
|
const useUtilityClasses = ownerState => {
|
|
56
58
|
const {
|
|
57
59
|
square,
|
|
@@ -77,19 +79,25 @@ const PaperRoot = (0, _styled.default)('div', {
|
|
|
77
79
|
})(({
|
|
78
80
|
theme,
|
|
79
81
|
ownerState
|
|
80
|
-
}) =>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
}) => {
|
|
83
|
+
var _theme$vars$overlays;
|
|
84
|
+
|
|
85
|
+
return (0, _extends2.default)({
|
|
86
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
87
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
88
|
+
transition: theme.transitions.create('box-shadow')
|
|
89
|
+
}, !ownerState.square && {
|
|
90
|
+
borderRadius: theme.shape.borderRadius
|
|
91
|
+
}, ownerState.variant === 'outlined' && {
|
|
92
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
93
|
+
}, ownerState.variant === 'elevation' && (0, _extends2.default)({
|
|
94
|
+
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
95
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
96
|
+
backgroundImage: `linear-gradient(${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))}, ${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))})`
|
|
97
|
+
}, theme.vars && {
|
|
98
|
+
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
99
|
+
}));
|
|
100
|
+
});
|
|
93
101
|
const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
94
102
|
const props = (0, _useThemeProps.default)({
|
|
95
103
|
props: inProps,
|
package/node/Radio/Radio.js
CHANGED
|
@@ -70,9 +70,9 @@ const RadioRoot = (0, _styled.default)(_SwitchBase.default, {
|
|
|
70
70
|
theme,
|
|
71
71
|
ownerState
|
|
72
72
|
}) => (0, _extends2.default)({
|
|
73
|
-
color: theme.palette.text.secondary,
|
|
73
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
74
74
|
'&:hover': {
|
|
75
|
-
backgroundColor: (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
75
|
+
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
76
76
|
// Reset on touch devices, it doesn't add specificity
|
|
77
77
|
'@media (hover: none)': {
|
|
78
78
|
backgroundColor: 'transparent'
|
|
@@ -80,11 +80,11 @@ const RadioRoot = (0, _styled.default)(_SwitchBase.default, {
|
|
|
80
80
|
}
|
|
81
81
|
}, ownerState.color !== 'default' && {
|
|
82
82
|
[`&.${_radioClasses.default.checked}`]: {
|
|
83
|
-
color: theme.palette[ownerState.color].main
|
|
83
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
84
84
|
}
|
|
85
85
|
}, {
|
|
86
86
|
[`&.${_radioClasses.default.disabled}`]: {
|
|
87
|
-
color: theme.palette.action.disabled
|
|
87
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
88
88
|
}
|
|
89
89
|
}));
|
|
90
90
|
|
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',
|
|
@@ -339,8 +339,8 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
|
|
|
339
339
|
|
|
340
340
|
const handleKeyDown = event => {
|
|
341
341
|
if (!readOnly) {
|
|
342
|
-
const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on
|
|
343
|
-
// https://www.w3.org/
|
|
342
|
+
const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
|
|
343
|
+
// https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
344
344
|
'Enter'];
|
|
345
345
|
|
|
346
346
|
if (validKeys.indexOf(event.key) !== -1) {
|
package/node/Slider/Slider.js
CHANGED
|
@@ -52,11 +52,7 @@ const SliderRoot = (0, _styled.default)('span', {
|
|
|
52
52
|
const {
|
|
53
53
|
ownerState
|
|
54
54
|
} = props;
|
|
55
|
-
|
|
56
|
-
value: ownerState.min + ownerState.step * index
|
|
57
|
-
})) : ownerState.marksProp || [];
|
|
58
|
-
const marked = marks.length > 0 && marks.some(mark => mark.label);
|
|
59
|
-
return [styles.root, styles[`color${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${(0, _capitalize.default)(ownerState.size)}`], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
55
|
+
return [styles.root, styles[`color${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
60
56
|
}
|
|
61
57
|
})(({
|
|
62
58
|
theme,
|
|
@@ -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'
|