@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
|
@@ -43,20 +43,20 @@ var MobileStepperRoot = styled(Paper, {
|
|
|
43
43
|
flexDirection: 'row',
|
|
44
44
|
justifyContent: 'space-between',
|
|
45
45
|
alignItems: 'center',
|
|
46
|
-
background: theme.palette.background.default,
|
|
46
|
+
background: (theme.vars || theme).palette.background.default,
|
|
47
47
|
padding: 8
|
|
48
48
|
}, ownerState.position === 'bottom' && {
|
|
49
49
|
position: 'fixed',
|
|
50
50
|
bottom: 0,
|
|
51
51
|
left: 0,
|
|
52
52
|
right: 0,
|
|
53
|
-
zIndex: theme.zIndex.mobileStepper
|
|
53
|
+
zIndex: (theme.vars || theme).zIndex.mobileStepper
|
|
54
54
|
}, ownerState.position === 'top' && {
|
|
55
55
|
position: 'fixed',
|
|
56
56
|
top: 0,
|
|
57
57
|
left: 0,
|
|
58
58
|
right: 0,
|
|
59
|
-
zIndex: theme.zIndex.mobileStepper
|
|
59
|
+
zIndex: (theme.vars || theme).zIndex.mobileStepper
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
var MobileStepperDots = styled('div', {
|
|
@@ -90,13 +90,13 @@ var MobileStepperDot = styled('div', {
|
|
|
90
90
|
transition: theme.transitions.create('background-color', {
|
|
91
91
|
duration: theme.transitions.duration.shortest
|
|
92
92
|
}),
|
|
93
|
-
backgroundColor: theme.palette.action.disabled,
|
|
93
|
+
backgroundColor: (theme.vars || theme).palette.action.disabled,
|
|
94
94
|
borderRadius: '50%',
|
|
95
95
|
width: 8,
|
|
96
96
|
height: 8,
|
|
97
97
|
margin: '0 2px'
|
|
98
98
|
}, dotActive && {
|
|
99
|
-
backgroundColor: theme.palette.primary.main
|
|
99
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
100
100
|
}));
|
|
101
101
|
});
|
|
102
102
|
var MobileStepperProgress = styled(LinearProgress, {
|
package/legacy/Modal/Modal.js
CHANGED
|
@@ -62,10 +62,10 @@ var PaginationItemEllipsis = styled('div', {
|
|
|
62
62
|
minWidth: 32,
|
|
63
63
|
padding: '0 6px',
|
|
64
64
|
margin: '0 3px',
|
|
65
|
-
color: theme.palette.text.primary,
|
|
65
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
66
66
|
height: 'auto'
|
|
67
67
|
}, "&.".concat(paginationItemClasses.disabled), {
|
|
68
|
-
opacity: theme.palette.action.disabledOpacity
|
|
68
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
69
69
|
}), ownerState.size === 'small' && {
|
|
70
70
|
minWidth: 26,
|
|
71
71
|
borderRadius: 26 / 2,
|
|
@@ -95,34 +95,34 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
95
95
|
height: 32,
|
|
96
96
|
padding: '0 6px',
|
|
97
97
|
margin: '0 3px',
|
|
98
|
-
color: theme.palette.text.primary
|
|
98
|
+
color: (theme.vars || theme).palette.text.primary
|
|
99
99
|
}, _defineProperty(_extends3, "&.".concat(paginationItemClasses.focusVisible), {
|
|
100
|
-
backgroundColor: theme.palette.action.focus
|
|
100
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
101
101
|
}), _defineProperty(_extends3, "&.".concat(paginationItemClasses.disabled), {
|
|
102
|
-
opacity: theme.palette.action.disabledOpacity
|
|
102
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
103
103
|
}), _defineProperty(_extends3, "transition", theme.transitions.create(['color', 'background-color'], {
|
|
104
104
|
duration: theme.transitions.duration.short
|
|
105
105
|
})), _defineProperty(_extends3, '&:hover', {
|
|
106
|
-
backgroundColor: theme.palette.action.hover,
|
|
106
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
107
107
|
// Reset on touch devices, it doesn't add specificity
|
|
108
108
|
'@media (hover: none)': {
|
|
109
109
|
backgroundColor: 'transparent'
|
|
110
110
|
}
|
|
111
111
|
}), _defineProperty(_extends3, "&.".concat(paginationItemClasses.selected), (_$concat = {
|
|
112
|
-
backgroundColor: theme.palette.action.selected,
|
|
112
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
113
113
|
'&:hover': {
|
|
114
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
114
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
115
115
|
// Reset on touch devices, it doesn't add specificity
|
|
116
116
|
'@media (hover: none)': {
|
|
117
|
-
backgroundColor: theme.palette.action.selected
|
|
117
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}, _defineProperty(_$concat, "&.".concat(paginationItemClasses.focusVisible), {
|
|
121
|
-
backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
121
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
122
122
|
}), _defineProperty(_$concat, "&.".concat(paginationItemClasses.disabled), {
|
|
123
123
|
opacity: 1,
|
|
124
|
-
color: theme.palette.action.disabled,
|
|
125
|
-
backgroundColor: theme.palette.action.selected
|
|
124
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
125
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
126
126
|
}), _$concat)), _extends3), ownerState.size === 'small' && {
|
|
127
127
|
minWidth: 26,
|
|
128
128
|
height: 26,
|
|
@@ -136,43 +136,43 @@ var PaginationItemPage = styled(ButtonBase, {
|
|
|
136
136
|
padding: '0 10px',
|
|
137
137
|
fontSize: theme.typography.pxToRem(15)
|
|
138
138
|
}, ownerState.shape === 'rounded' && {
|
|
139
|
-
borderRadius: theme.shape.borderRadius
|
|
139
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
140
140
|
});
|
|
141
141
|
}, function (_ref3) {
|
|
142
142
|
var theme = _ref3.theme,
|
|
143
143
|
ownerState = _ref3.ownerState;
|
|
144
144
|
return _extends({}, ownerState.variant === 'text' && _defineProperty({}, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
|
|
145
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
146
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
145
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
146
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
147
147
|
'&:hover': {
|
|
148
|
-
backgroundColor: theme.palette[ownerState.color].dark,
|
|
148
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
149
149
|
// Reset on touch devices, it doesn't add specificity
|
|
150
150
|
'@media (hover: none)': {
|
|
151
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
151
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
}, "&.".concat(paginationItemClasses.focusVisible), {
|
|
155
|
-
backgroundColor: theme.palette[ownerState.color].dark
|
|
155
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
156
156
|
}), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
|
|
157
|
-
color: theme.palette.action.disabled
|
|
157
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
158
158
|
}))), ownerState.variant === 'outlined' && _defineProperty({
|
|
159
|
-
border: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
|
|
159
|
+
border: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
|
|
160
160
|
}, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
|
|
161
|
-
color: theme.palette[ownerState.color].main,
|
|
162
|
-
border: "1px solid ".concat(alpha(theme.palette[ownerState.color].main, 0.5)),
|
|
163
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
161
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
162
|
+
border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)),
|
|
163
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.activatedOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
164
164
|
'&:hover': {
|
|
165
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
165
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
166
166
|
// Reset on touch devices, it doesn't add specificity
|
|
167
167
|
'@media (hover: none)': {
|
|
168
168
|
backgroundColor: 'transparent'
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}, "&.".concat(paginationItemClasses.focusVisible), {
|
|
172
|
-
backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
172
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
173
173
|
}), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
|
|
174
|
-
borderColor: theme.palette.action.disabledBackground,
|
|
175
|
-
color: theme.palette.action.disabled
|
|
174
|
+
borderColor: (theme.vars || theme).palette.action.disabledBackground,
|
|
175
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
176
176
|
}))));
|
|
177
177
|
});
|
|
178
178
|
var PaginationItemPageIcon = styled('div', {
|
package/legacy/Paper/Paper.js
CHANGED
|
@@ -12,8 +12,7 @@ import useTheme from '../styles/useTheme';
|
|
|
12
12
|
import { getPaperUtilityClass } from './paperClasses'; // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
|
|
13
13
|
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
|
|
16
|
-
var getOverlayAlpha = function getOverlayAlpha(elevation) {
|
|
15
|
+
export var getOverlayAlpha = function getOverlayAlpha(elevation) {
|
|
17
16
|
var alphaValue;
|
|
18
17
|
|
|
19
18
|
if (elevation < 1) {
|
|
@@ -44,20 +43,24 @@ var PaperRoot = styled('div', {
|
|
|
44
43
|
return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles["elevation".concat(ownerState.elevation)]];
|
|
45
44
|
}
|
|
46
45
|
})(function (_ref) {
|
|
46
|
+
var _theme$vars$overlays;
|
|
47
|
+
|
|
47
48
|
var theme = _ref.theme,
|
|
48
49
|
ownerState = _ref.ownerState;
|
|
49
50
|
return _extends({
|
|
50
|
-
backgroundColor: theme.palette.background.paper,
|
|
51
|
-
color: theme.palette.text.primary,
|
|
51
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
52
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
52
53
|
transition: theme.transitions.create('box-shadow')
|
|
53
54
|
}, !ownerState.square && {
|
|
54
55
|
borderRadius: theme.shape.borderRadius
|
|
55
56
|
}, ownerState.variant === 'outlined' && {
|
|
56
|
-
border: "1px solid ".concat(theme.palette.divider)
|
|
57
|
+
border: "1px solid ".concat((theme.vars || theme).palette.divider)
|
|
57
58
|
}, ownerState.variant === 'elevation' && _extends({
|
|
58
|
-
boxShadow: theme.shadows[ownerState.elevation]
|
|
59
|
-
}, theme.palette.mode === 'dark' && {
|
|
59
|
+
boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
|
|
60
|
+
}, !theme.vars && theme.palette.mode === 'dark' && {
|
|
60
61
|
backgroundImage: "linear-gradient(".concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ", ").concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ")")
|
|
62
|
+
}, theme.vars && {
|
|
63
|
+
backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
|
|
61
64
|
}));
|
|
62
65
|
});
|
|
63
66
|
var Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
package/legacy/Radio/Radio.js
CHANGED
|
@@ -40,18 +40,18 @@ var RadioRoot = styled(SwitchBase, {
|
|
|
40
40
|
var theme = _ref.theme,
|
|
41
41
|
ownerState = _ref.ownerState;
|
|
42
42
|
return _extends({
|
|
43
|
-
color: theme.palette.text.secondary,
|
|
43
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
44
44
|
'&:hover': {
|
|
45
|
-
backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
45
|
+
backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
46
46
|
// Reset on touch devices, it doesn't add specificity
|
|
47
47
|
'@media (hover: none)': {
|
|
48
48
|
backgroundColor: 'transparent'
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}, ownerState.color !== 'default' && _defineProperty({}, "&.".concat(radioClasses.checked), {
|
|
52
|
-
color: theme.palette[ownerState.color].main
|
|
52
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
53
53
|
}), _defineProperty({}, "&.".concat(radioClasses.disabled), {
|
|
54
|
-
color: theme.palette.action.disabled
|
|
54
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
57
|
|
package/legacy/Rating/Rating.js
CHANGED
|
@@ -88,7 +88,7 @@ var RatingRoot = styled('span', {
|
|
|
88
88
|
textAlign: 'left',
|
|
89
89
|
WebkitTapHighlightColor: 'transparent'
|
|
90
90
|
}, _defineProperty(_extends2, "&.".concat(ratingClasses.disabled), {
|
|
91
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
91
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
92
92
|
pointerEvents: 'none'
|
|
93
93
|
}), _defineProperty(_extends2, "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
|
|
94
94
|
outline: '1px solid #999'
|
|
@@ -140,7 +140,7 @@ var RatingIcon = styled('span', {
|
|
|
140
140
|
}, ownerState.iconActive && {
|
|
141
141
|
transform: 'scale(1.2)'
|
|
142
142
|
}, ownerState.iconEmpty && {
|
|
143
|
-
color: theme.palette.action.disabled
|
|
143
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
144
144
|
});
|
|
145
145
|
});
|
|
146
146
|
var RatingDecimal = styled('span', {
|
|
@@ -325,8 +325,8 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
|
|
|
325
325
|
|
|
326
326
|
var handleKeyDown = function handleKeyDown(event) {
|
|
327
327
|
if (!readOnly) {
|
|
328
|
-
var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on
|
|
329
|
-
// https://www.w3.org/
|
|
328
|
+
var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
|
|
329
|
+
// https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
|
|
330
330
|
'Enter'];
|
|
331
331
|
|
|
332
332
|
if (validKeys.indexOf(event.key) !== -1) {
|
package/legacy/Slider/Slider.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
-
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
4
|
import * as React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
@@ -21,15 +20,7 @@ var SliderRoot = styled('span', {
|
|
|
21
20
|
slot: 'Root',
|
|
22
21
|
overridesResolver: function overridesResolver(props, styles) {
|
|
23
22
|
var ownerState = props.ownerState;
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
value: ownerState.min + ownerState.step * index
|
|
27
|
-
};
|
|
28
|
-
}) : ownerState.marksProp || [];
|
|
29
|
-
var marked = marks.length > 0 && marks.some(function (mark) {
|
|
30
|
-
return mark.label;
|
|
31
|
-
});
|
|
32
|
-
return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
23
|
+
return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
|
|
33
24
|
}
|
|
34
25
|
})(function (_ref) {
|
|
35
26
|
var _extends2;
|
|
@@ -69,7 +69,7 @@ var SpeedDialRoot = styled('div', {
|
|
|
69
69
|
var theme = _ref.theme,
|
|
70
70
|
ownerState = _ref.ownerState;
|
|
71
71
|
return _extends({
|
|
72
|
-
zIndex: theme.zIndex.speedDial,
|
|
72
|
+
zIndex: (theme.vars || theme).zIndex.speedDial,
|
|
73
73
|
display: 'flex',
|
|
74
74
|
alignItems: 'center',
|
|
75
75
|
pointerEvents: 'none'
|
|
@@ -44,13 +44,13 @@ var StepIconRoot = styled(SvgIcon, {
|
|
|
44
44
|
transition: theme.transitions.create('color', {
|
|
45
45
|
duration: theme.transitions.duration.shortest
|
|
46
46
|
}),
|
|
47
|
-
color: theme.palette.text.disabled
|
|
47
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
48
48
|
}, _defineProperty(_ref2, "&.".concat(stepIconClasses.completed), {
|
|
49
|
-
color: theme.palette.primary.main
|
|
49
|
+
color: (theme.vars || theme).palette.primary.main
|
|
50
50
|
}), _defineProperty(_ref2, "&.".concat(stepIconClasses.active), {
|
|
51
|
-
color: theme.palette.primary.main
|
|
51
|
+
color: (theme.vars || theme).palette.primary.main
|
|
52
52
|
}), _defineProperty(_ref2, "&.".concat(stepIconClasses.error), {
|
|
53
|
-
color: theme.palette.error.main
|
|
53
|
+
color: (theme.vars || theme).palette.error.main
|
|
54
54
|
}), _ref2;
|
|
55
55
|
});
|
|
56
56
|
var StepIconText = styled('text', {
|
|
@@ -62,7 +62,7 @@ var StepIconText = styled('text', {
|
|
|
62
62
|
})(function (_ref3) {
|
|
63
63
|
var theme = _ref3.theme;
|
|
64
64
|
return {
|
|
65
|
-
fill: theme.palette.primary.contrastText,
|
|
65
|
+
fill: (theme.vars || theme).palette.primary.contrastText,
|
|
66
66
|
fontSize: theme.typography.caption.fontSize,
|
|
67
67
|
fontFamily: theme.typography.fontFamily
|
|
68
68
|
};
|
|
@@ -70,16 +70,16 @@ var StepLabelLabel = styled('span', {
|
|
|
70
70
|
duration: theme.transitions.duration.shortest
|
|
71
71
|
})
|
|
72
72
|
}, _defineProperty(_extends3, "&.".concat(stepLabelClasses.active), {
|
|
73
|
-
color: theme.palette.text.primary,
|
|
73
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
74
74
|
fontWeight: 500
|
|
75
75
|
}), _defineProperty(_extends3, "&.".concat(stepLabelClasses.completed), {
|
|
76
|
-
color: theme.palette.text.primary,
|
|
76
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
77
77
|
fontWeight: 500
|
|
78
78
|
}), _defineProperty(_extends3, "&.".concat(stepLabelClasses.alternativeLabel), {
|
|
79
79
|
textAlign: 'center',
|
|
80
80
|
marginTop: 16
|
|
81
81
|
}), _defineProperty(_extends3, "&.".concat(stepLabelClasses.error), {
|
|
82
|
-
color: theme.palette.error.main
|
|
82
|
+
color: (theme.vars || theme).palette.error.main
|
|
83
83
|
}), _extends3));
|
|
84
84
|
});
|
|
85
85
|
var StepLabelIconContainer = styled('span', {
|
|
@@ -108,7 +108,7 @@ var StepLabelLabelContainer = styled('span', {
|
|
|
108
108
|
var theme = _ref4.theme;
|
|
109
109
|
return {
|
|
110
110
|
width: '100%',
|
|
111
|
-
color: theme.palette.text.secondary
|
|
111
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
112
112
|
};
|
|
113
113
|
});
|
|
114
114
|
var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Provides information about the current step in Stepper.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
6
|
var StepperContext = /*#__PURE__*/React.createContext({});
|
|
7
7
|
|
|
8
8
|
if (process.env.NODE_ENV !== 'production') {
|
|
9
9
|
StepperContext.displayName = 'StepperContext';
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns the current StepperContext or an empty object if no StepperContext
|
|
13
|
+
* has been defined in the component tree.
|
|
14
|
+
*/
|
|
15
|
+
|
|
11
16
|
|
|
17
|
+
export function useStepperContext() {
|
|
18
|
+
return React.useContext(StepperContext);
|
|
19
|
+
}
|
|
12
20
|
export default StepperContext;
|
package/legacy/Stepper/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default } from './Stepper';
|
|
2
2
|
export { default as stepperClasses } from './stepperClasses';
|
|
3
|
-
export * from './stepperClasses';
|
|
3
|
+
export * from './stepperClasses';
|
|
4
|
+
export { default as StepperContext } from './StepperContext';
|
|
5
|
+
export * from './StepperContext';
|
|
@@ -29,7 +29,7 @@ var SvgIconRoot = styled('svg', {
|
|
|
29
29
|
return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
|
|
30
30
|
}
|
|
31
31
|
})(function (_ref) {
|
|
32
|
-
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,
|
|
32
|
+
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;
|
|
33
33
|
|
|
34
34
|
var theme = _ref.theme,
|
|
35
35
|
ownerState = _ref.ownerState;
|
|
@@ -50,9 +50,9 @@ var SvgIconRoot = styled('svg', {
|
|
|
50
50
|
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'
|
|
51
51
|
}[ownerState.fontSize],
|
|
52
52
|
// TODO v5 deprecate, v6 remove for sx
|
|
53
|
-
color: (
|
|
54
|
-
action: (
|
|
55
|
-
disabled: (
|
|
53
|
+
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 : {
|
|
54
|
+
action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
|
|
55
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
|
|
56
56
|
inherit: undefined
|
|
57
57
|
}[ownerState.color]
|
|
58
58
|
};
|
package/legacy/Tab/Tab.js
CHANGED
|
@@ -73,19 +73,19 @@ var TabRoot = styled(ButtonBase, {
|
|
|
73
73
|
}, _defineProperty(_ref3, "&.".concat(tabClasses.selected), {
|
|
74
74
|
opacity: 1
|
|
75
75
|
}), _defineProperty(_ref3, "&.".concat(tabClasses.disabled), {
|
|
76
|
-
opacity: theme.palette.action.disabledOpacity
|
|
76
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
77
77
|
}), _ref3), ownerState.textColor === 'primary' && (_ref4 = {
|
|
78
|
-
color: theme.palette.text.secondary
|
|
78
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
79
79
|
}, _defineProperty(_ref4, "&.".concat(tabClasses.selected), {
|
|
80
|
-
color: theme.palette.primary.main
|
|
80
|
+
color: (theme.vars || theme).palette.primary.main
|
|
81
81
|
}), _defineProperty(_ref4, "&.".concat(tabClasses.disabled), {
|
|
82
|
-
color: theme.palette.text.disabled
|
|
82
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
83
83
|
}), _ref4), ownerState.textColor === 'secondary' && (_ref5 = {
|
|
84
|
-
color: theme.palette.text.secondary
|
|
84
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
85
85
|
}, _defineProperty(_ref5, "&.".concat(tabClasses.selected), {
|
|
86
|
-
color: theme.palette.secondary.main
|
|
86
|
+
color: (theme.vars || theme).palette.secondary.main
|
|
87
87
|
}), _defineProperty(_ref5, "&.".concat(tabClasses.disabled), {
|
|
88
|
-
color: theme.palette.text.disabled
|
|
88
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
89
89
|
}), _ref5), ownerState.fullWidth && {
|
|
90
90
|
flexShrink: 1,
|
|
91
91
|
flexGrow: 1,
|
package/legacy/Table/Table.js
CHANGED
|
@@ -36,7 +36,7 @@ var TableRoot = styled('table', {
|
|
|
36
36
|
borderSpacing: 0,
|
|
37
37
|
'& caption': _extends({}, theme.typography.body2, {
|
|
38
38
|
padding: theme.spacing(2),
|
|
39
|
-
color: theme.palette.text.secondary,
|
|
39
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
40
40
|
textAlign: 'left',
|
|
41
41
|
captionSide: 'bottom'
|
|
42
42
|
})
|
|
@@ -32,7 +32,7 @@ var TablePaginationRoot = styled(TableCell, {
|
|
|
32
32
|
var theme = _ref.theme;
|
|
33
33
|
return {
|
|
34
34
|
overflow: 'auto',
|
|
35
|
-
color: theme.palette.text.primary,
|
|
35
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
36
36
|
fontSize: theme.typography.pxToRem(14),
|
|
37
37
|
// Increase the specificity to override TableCell.
|
|
38
38
|
'&:last-child': {
|
|
@@ -42,11 +42,11 @@ var TableRowRoot = styled('tr', {
|
|
|
42
42
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
43
43
|
outline: 0
|
|
44
44
|
}, _defineProperty(_ref2, "&.".concat(tableRowClasses.hover, ":hover"), {
|
|
45
|
-
backgroundColor: theme.palette.action.hover
|
|
45
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
46
46
|
}), _defineProperty(_ref2, "&.".concat(tableRowClasses.selected), {
|
|
47
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
47
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
48
48
|
'&:hover': {
|
|
49
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
49
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
50
50
|
}
|
|
51
51
|
}), _ref2;
|
|
52
52
|
});
|
|
@@ -41,18 +41,18 @@ var TableSortLabelRoot = styled(ButtonBase, {
|
|
|
41
41
|
flexDirection: 'inherit',
|
|
42
42
|
alignItems: 'center',
|
|
43
43
|
'&:focus': {
|
|
44
|
-
color: theme.palette.text.secondary
|
|
44
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
45
45
|
},
|
|
46
46
|
'&:hover': _defineProperty({
|
|
47
|
-
color: theme.palette.text.secondary
|
|
47
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
48
48
|
}, "& .".concat(tableSortLabelClasses.icon), {
|
|
49
49
|
opacity: 0.5
|
|
50
50
|
})
|
|
51
51
|
}, "&.".concat(tableSortLabelClasses.active), _defineProperty({
|
|
52
|
-
color: theme.palette.text.primary
|
|
52
|
+
color: (theme.vars || theme).palette.text.primary
|
|
53
53
|
}, "& .".concat(tableSortLabelClasses.icon), {
|
|
54
54
|
opacity: 1,
|
|
55
|
-
color: theme.palette.text.secondary
|
|
55
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
56
56
|
}));
|
|
57
57
|
});
|
|
58
58
|
var TableSortLabelIcon = styled('span', {
|
package/legacy/Tabs/Tabs.js
CHANGED
|
@@ -134,7 +134,7 @@ var TabsScroller = styled('div', {
|
|
|
134
134
|
overflowX: 'hidden',
|
|
135
135
|
width: '100%'
|
|
136
136
|
}, ownerState.hideScrollbar && {
|
|
137
|
-
// Hide dimensionless scrollbar on
|
|
137
|
+
// Hide dimensionless scrollbar on macOS
|
|
138
138
|
scrollbarWidth: 'none',
|
|
139
139
|
// Firefox
|
|
140
140
|
'&::-webkit-scrollbar': {
|
|
@@ -182,9 +182,9 @@ var TabsIndicator = styled('span', {
|
|
|
182
182
|
width: '100%',
|
|
183
183
|
transition: theme.transitions.create()
|
|
184
184
|
}, ownerState.indicatorColor === 'primary' && {
|
|
185
|
-
backgroundColor: theme.palette.primary.main
|
|
185
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
186
186
|
}, ownerState.indicatorColor === 'secondary' && {
|
|
187
|
-
backgroundColor: theme.palette.secondary.main
|
|
187
|
+
backgroundColor: (theme.vars || theme).palette.secondary.main
|
|
188
188
|
}, ownerState.vertical && {
|
|
189
189
|
height: '100%',
|
|
190
190
|
width: 2,
|
|
@@ -197,7 +197,7 @@ var TabsScrollbarSize = styled(ScrollbarSize, {
|
|
|
197
197
|
})({
|
|
198
198
|
overflowX: 'auto',
|
|
199
199
|
overflowY: 'hidden',
|
|
200
|
-
// Hide dimensionless scrollbar on
|
|
200
|
+
// Hide dimensionless scrollbar on macOS
|
|
201
201
|
scrollbarWidth: 'none',
|
|
202
202
|
// Firefox
|
|
203
203
|
'&::-webkit-scrollbar': {
|
|
@@ -40,31 +40,38 @@ var ToggleButtonRoot = styled(ButtonBase, {
|
|
|
40
40
|
var theme = _ref.theme,
|
|
41
41
|
ownerState = _ref.ownerState;
|
|
42
42
|
var selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
|
|
43
|
+
var selectedColorChannel;
|
|
44
|
+
|
|
45
|
+
if (theme.vars) {
|
|
46
|
+
selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
|
|
47
|
+
selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
|
|
48
|
+
}
|
|
49
|
+
|
|
43
50
|
return _extends({}, theme.typography.button, {
|
|
44
|
-
borderRadius: theme.shape.borderRadius,
|
|
51
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
45
52
|
padding: 11,
|
|
46
|
-
border: "1px solid ".concat(theme.palette.divider),
|
|
47
|
-
color: theme.palette.action.active
|
|
53
|
+
border: "1px solid ".concat((theme.vars || theme).palette.divider),
|
|
54
|
+
color: (theme.vars || theme).palette.action.active
|
|
48
55
|
}, ownerState.fullWidth && {
|
|
49
56
|
width: '100%'
|
|
50
57
|
}, (_extends2 = {}, _defineProperty(_extends2, "&.".concat(toggleButtonClasses.disabled), {
|
|
51
|
-
color: theme.palette.action.disabled,
|
|
52
|
-
border: "1px solid ".concat(theme.palette.action.disabledBackground)
|
|
58
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
59
|
+
border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
|
|
53
60
|
}), _defineProperty(_extends2, '&:hover', {
|
|
54
61
|
textDecoration: 'none',
|
|
55
62
|
// Reset on mouse devices
|
|
56
|
-
backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
63
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
57
64
|
'@media (hover: none)': {
|
|
58
65
|
backgroundColor: 'transparent'
|
|
59
66
|
}
|
|
60
67
|
}), _defineProperty(_extends2, "&.".concat(toggleButtonClasses.selected), {
|
|
61
68
|
color: selectedColor,
|
|
62
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
|
|
69
|
+
backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity),
|
|
63
70
|
'&:hover': {
|
|
64
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
71
|
+
backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
65
72
|
// Reset on touch devices, it doesn't add specificity
|
|
66
73
|
'@media (hover: none)': {
|
|
67
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
|
|
74
|
+
backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity)
|
|
68
75
|
}
|
|
69
76
|
}
|
|
70
77
|
}), _extends2), ownerState.size === 'small' && {
|
|
@@ -37,7 +37,7 @@ var ToggleButtonGroupRoot = styled('div', {
|
|
|
37
37
|
theme = _ref3.theme;
|
|
38
38
|
return _extends({
|
|
39
39
|
display: 'inline-flex',
|
|
40
|
-
borderRadius: theme.shape.borderRadius
|
|
40
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
41
41
|
}, ownerState.orientation === 'vertical' && {
|
|
42
42
|
flexDirection: 'column'
|
|
43
43
|
}, ownerState.fullWidth && {
|