@mui/material 5.6.2 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +15 -14
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +24 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.d.ts +9 -28
- package/Box/Box.js +25 -4
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +225 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/CircularProgress.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +22 -22
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/DialogTitle.d.ts +30 -15
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +69 -65
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +3 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +8 -8
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +79 -32
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/StepContent.d.ts +3 -1
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js +2 -2
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Autocomplete/Autocomplete.js +15 -14
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/legacy/Box/Box.js +25 -4
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +17 -17
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +8 -8
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +1 -1
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/experimental_extendTheme.js +52 -43
- package/locale/index.d.ts +71 -71
- package/locale/index.js +1 -1
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +15 -14
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/modern/Box/Box.js +25 -4
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +16 -16
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +8 -8
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Rating/Rating.js +2 -2
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +1 -1
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/experimental_extendTheme.js +56 -45
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/Autocomplete/Autocomplete.js +15 -14
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
- package/node/Box/Box.js +28 -4
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +69 -65
- package/node/FilledInput/FilledInput.js +3 -1
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +8 -8
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Rating/Rating.js +2 -2
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +2 -2
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/experimental_extendTheme.js +57 -47
- package/package.json +6 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createPalette.d.ts +9 -2
- package/styles/createPalette.js +2 -1
- package/styles/experimental_extendTheme.d.ts +13 -16
- package/styles/experimental_extendTheme.js +57 -46
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +582 -484
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export interface TableCellClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="head"` or `context.table.head`. */
|
|
5
|
-
head: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="body"` or `context.table.body`. */
|
|
7
|
-
body: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
|
|
9
|
-
footer: string;
|
|
10
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
11
|
-
sizeSmall: string;
|
|
12
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
13
|
-
sizeMedium: string;
|
|
14
|
-
/** Styles applied to the root element if `padding="checkbox"`. */
|
|
15
|
-
paddingCheckbox: string;
|
|
16
|
-
/** Styles applied to the root element if `padding="none"`. */
|
|
17
|
-
paddingNone: string;
|
|
18
|
-
/** Styles applied to the root element if `align="left"`. */
|
|
19
|
-
alignLeft: string;
|
|
20
|
-
/** Styles applied to the root element if `align="center"`. */
|
|
21
|
-
alignCenter: string;
|
|
22
|
-
/** Styles applied to the root element if `align="right"`. */
|
|
23
|
-
alignRight: string;
|
|
24
|
-
/** Styles applied to the root element if `align="justify"`. */
|
|
25
|
-
alignJustify: string;
|
|
26
|
-
/** Styles applied to the root element if `context.table.stickyHeader={true}`. */
|
|
27
|
-
stickyHeader: string;
|
|
28
|
-
}
|
|
29
|
-
export declare type TableCellClassKey = keyof TableCellClasses;
|
|
30
|
-
export declare function getTableCellUtilityClass(slot: string): string;
|
|
31
|
-
declare const tableCellClasses: TableCellClasses;
|
|
32
|
-
export default tableCellClasses;
|
|
1
|
+
export interface TableCellClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="head"` or `context.table.head`. */
|
|
5
|
+
head: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="body"` or `context.table.body`. */
|
|
7
|
+
body: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="footer"` or `context.table.footer`. */
|
|
9
|
+
footer: string;
|
|
10
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
11
|
+
sizeSmall: string;
|
|
12
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
13
|
+
sizeMedium: string;
|
|
14
|
+
/** Styles applied to the root element if `padding="checkbox"`. */
|
|
15
|
+
paddingCheckbox: string;
|
|
16
|
+
/** Styles applied to the root element if `padding="none"`. */
|
|
17
|
+
paddingNone: string;
|
|
18
|
+
/** Styles applied to the root element if `align="left"`. */
|
|
19
|
+
alignLeft: string;
|
|
20
|
+
/** Styles applied to the root element if `align="center"`. */
|
|
21
|
+
alignCenter: string;
|
|
22
|
+
/** Styles applied to the root element if `align="right"`. */
|
|
23
|
+
alignRight: string;
|
|
24
|
+
/** Styles applied to the root element if `align="justify"`. */
|
|
25
|
+
alignJustify: string;
|
|
26
|
+
/** Styles applied to the root element if `context.table.stickyHeader={true}`. */
|
|
27
|
+
stickyHeader: string;
|
|
28
|
+
}
|
|
29
|
+
export declare type TableCellClassKey = keyof TableCellClasses;
|
|
30
|
+
export declare function getTableCellUtilityClass(slot: string): string;
|
|
31
|
+
declare const tableCellClasses: TableCellClasses;
|
|
32
|
+
export default tableCellClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TableContainerClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TableContainerClassKey = keyof TableContainerClasses;
|
|
6
|
-
export declare function getTableContainerUtilityClass(slot: string): string;
|
|
7
|
-
declare const tableContainerClasses: TableContainerClasses;
|
|
8
|
-
export default tableContainerClasses;
|
|
1
|
+
export interface TableContainerClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TableContainerClassKey = keyof TableContainerClasses;
|
|
6
|
+
export declare function getTableContainerUtilityClass(slot: string): string;
|
|
7
|
+
declare const tableContainerClasses: TableContainerClasses;
|
|
8
|
+
export default tableContainerClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TableFooterClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TableFooterClassKey = keyof TableFooterClasses;
|
|
6
|
-
export declare function getTableFooterUtilityClass(slot: string): string;
|
|
7
|
-
declare const tableFooterClasses: TableFooterClasses;
|
|
8
|
-
export default tableFooterClasses;
|
|
1
|
+
export interface TableFooterClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TableFooterClassKey = keyof TableFooterClasses;
|
|
6
|
+
export declare function getTableFooterUtilityClass(slot: string): string;
|
|
7
|
+
declare const tableFooterClasses: TableFooterClasses;
|
|
8
|
+
export default tableFooterClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TableHeadClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TableHeadClassKey = keyof TableHeadClasses;
|
|
6
|
-
export declare function getTableHeadUtilityClass(slot: string): string;
|
|
7
|
-
declare const tableHeadClasses: TableHeadClasses;
|
|
8
|
-
export default tableHeadClasses;
|
|
1
|
+
export interface TableHeadClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TableHeadClassKey = keyof TableHeadClasses;
|
|
6
|
+
export declare function getTableHeadUtilityClass(slot: string): string;
|
|
7
|
+
declare const tableHeadClasses: TableHeadClasses;
|
|
8
|
+
export default tableHeadClasses;
|
|
@@ -30,7 +30,7 @@ const TablePaginationRoot = styled(TableCell, {
|
|
|
30
30
|
theme
|
|
31
31
|
}) => ({
|
|
32
32
|
overflow: 'auto',
|
|
33
|
-
color: theme.palette.text.primary,
|
|
33
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
34
34
|
fontSize: theme.typography.pxToRem(14),
|
|
35
35
|
// Increase the specificity to override TableCell.
|
|
36
36
|
'&:last-child': {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface TablePaginationClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Toolbar component. */
|
|
5
|
-
toolbar: string;
|
|
6
|
-
/** Styles applied to the spacer element. */
|
|
7
|
-
spacer: string;
|
|
8
|
-
/** Styles applied to the select label Typography element. */
|
|
9
|
-
selectLabel: string;
|
|
10
|
-
/** Styles applied to the Select component `root` element. */
|
|
11
|
-
selectRoot: string;
|
|
12
|
-
/** Styles applied to the Select component `select` class. */
|
|
13
|
-
select: string;
|
|
14
|
-
/** Styles applied to the Select component `icon` class. */
|
|
15
|
-
selectIcon: string;
|
|
16
|
-
/** Styles applied to the Select component `root` element. */
|
|
17
|
-
input: string;
|
|
18
|
-
/** Styles applied to the MenuItem component. */
|
|
19
|
-
menuItem: string;
|
|
20
|
-
/** Styles applied to the displayed rows Typography element. */
|
|
21
|
-
displayedRows: string;
|
|
22
|
-
/** Styles applied to the internal `TablePaginationActions` component. */
|
|
23
|
-
actions: string;
|
|
24
|
-
}
|
|
25
|
-
export declare type TablePaginationClassKey = keyof TablePaginationClasses;
|
|
26
|
-
export declare function getTablePaginationUtilityClass(slot: string): string;
|
|
27
|
-
declare const tablePaginationClasses: TablePaginationClasses;
|
|
28
|
-
export default tablePaginationClasses;
|
|
1
|
+
export interface TablePaginationClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Toolbar component. */
|
|
5
|
+
toolbar: string;
|
|
6
|
+
/** Styles applied to the spacer element. */
|
|
7
|
+
spacer: string;
|
|
8
|
+
/** Styles applied to the select label Typography element. */
|
|
9
|
+
selectLabel: string;
|
|
10
|
+
/** Styles applied to the Select component `root` element. */
|
|
11
|
+
selectRoot: string;
|
|
12
|
+
/** Styles applied to the Select component `select` class. */
|
|
13
|
+
select: string;
|
|
14
|
+
/** Styles applied to the Select component `icon` class. */
|
|
15
|
+
selectIcon: string;
|
|
16
|
+
/** Styles applied to the Select component `root` element. */
|
|
17
|
+
input: string;
|
|
18
|
+
/** Styles applied to the MenuItem component. */
|
|
19
|
+
menuItem: string;
|
|
20
|
+
/** Styles applied to the displayed rows Typography element. */
|
|
21
|
+
displayedRows: string;
|
|
22
|
+
/** Styles applied to the internal `TablePaginationActions` component. */
|
|
23
|
+
actions: string;
|
|
24
|
+
}
|
|
25
|
+
export declare type TablePaginationClassKey = keyof TablePaginationClasses;
|
|
26
|
+
export declare function getTablePaginationUtilityClass(slot: string): string;
|
|
27
|
+
declare const tablePaginationClasses: TablePaginationClasses;
|
|
28
|
+
export default tablePaginationClasses;
|
package/TableRow/TableRow.js
CHANGED
|
@@ -44,12 +44,12 @@ const TableRowRoot = styled('tr', {
|
|
|
44
44
|
// We disable the focus ring for mouse, touch and keyboard users.
|
|
45
45
|
outline: 0,
|
|
46
46
|
[`&.${tableRowClasses.hover}:hover`]: {
|
|
47
|
-
backgroundColor: theme.palette.action.hover
|
|
47
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
48
48
|
},
|
|
49
49
|
[`&.${tableRowClasses.selected}`]: {
|
|
50
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
50
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
51
51
|
'&:hover': {
|
|
52
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
52
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TableRowClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
5
|
-
selected: string;
|
|
6
|
-
/** State class applied to the root element if `hover={true}`. */
|
|
7
|
-
hover: string;
|
|
8
|
-
/** Styles applied to the root element if table variant="head". */
|
|
9
|
-
head: string;
|
|
10
|
-
/** Styles applied to the root element if table variant="footer". */
|
|
11
|
-
footer: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type TableRowClassKey = keyof TableRowClasses;
|
|
14
|
-
export declare function getTableRowUtilityClass(slot: string): string;
|
|
15
|
-
declare const tableRowClasses: TableRowClasses;
|
|
16
|
-
export default tableRowClasses;
|
|
1
|
+
export interface TableRowClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
5
|
+
selected: string;
|
|
6
|
+
/** State class applied to the root element if `hover={true}`. */
|
|
7
|
+
hover: string;
|
|
8
|
+
/** Styles applied to the root element if table variant="head". */
|
|
9
|
+
head: string;
|
|
10
|
+
/** Styles applied to the root element if table variant="footer". */
|
|
11
|
+
footer: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type TableRowClassKey = keyof TableRowClasses;
|
|
14
|
+
export declare function getTableRowUtilityClass(slot: string): string;
|
|
15
|
+
declare const tableRowClasses: TableRowClasses;
|
|
16
|
+
export default tableRowClasses;
|
|
@@ -45,19 +45,19 @@ const TableSortLabelRoot = styled(ButtonBase, {
|
|
|
45
45
|
flexDirection: 'inherit',
|
|
46
46
|
alignItems: 'center',
|
|
47
47
|
'&:focus': {
|
|
48
|
-
color: theme.palette.text.secondary
|
|
48
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
49
49
|
},
|
|
50
50
|
'&:hover': {
|
|
51
|
-
color: theme.palette.text.secondary,
|
|
51
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
52
52
|
[`& .${tableSortLabelClasses.icon}`]: {
|
|
53
53
|
opacity: 0.5
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
[`&.${tableSortLabelClasses.active}`]: {
|
|
57
|
-
color: theme.palette.text.primary,
|
|
57
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
58
58
|
[`& .${tableSortLabelClasses.icon}`]: {
|
|
59
59
|
opacity: 1,
|
|
60
|
-
color: theme.palette.text.secondary
|
|
60
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TableSortLabelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `active={true}`. */
|
|
5
|
-
active: string;
|
|
6
|
-
/** Styles applied to the icon component. */
|
|
7
|
-
icon: string;
|
|
8
|
-
/** Styles applied to the icon component if `direction="desc"`. */
|
|
9
|
-
iconDirectionDesc: string;
|
|
10
|
-
/** Styles applied to the icon component if `direction="asc"`. */
|
|
11
|
-
iconDirectionAsc: string;
|
|
12
|
-
}
|
|
13
|
-
export declare type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
14
|
-
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
15
|
-
declare const tableSortLabelClasses: TableSortLabelClasses;
|
|
16
|
-
export default tableSortLabelClasses;
|
|
1
|
+
export interface TableSortLabelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `active={true}`. */
|
|
5
|
+
active: string;
|
|
6
|
+
/** Styles applied to the icon component. */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** Styles applied to the icon component if `direction="desc"`. */
|
|
9
|
+
iconDirectionDesc: string;
|
|
10
|
+
/** Styles applied to the icon component if `direction="asc"`. */
|
|
11
|
+
iconDirectionAsc: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
14
|
+
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
15
|
+
declare const tableSortLabelClasses: TableSortLabelClasses;
|
|
16
|
+
export default tableSortLabelClasses;
|
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export interface TabsTypeMap<P = {}, D extends React.ElementType = typeof Button
|
|
|
88
88
|
* Props applied to the tab indicator element.
|
|
89
89
|
* @default {}
|
|
90
90
|
*/
|
|
91
|
-
TabIndicatorProps?: React.HTMLAttributes<HTMLDivElement
|
|
91
|
+
TabIndicatorProps?: React.HTMLAttributes<HTMLDivElement> & { sx?: SxProps<Theme> };
|
|
92
92
|
/**
|
|
93
93
|
* Props applied to the [`TabScrollButton`](/material-ui/api/tab-scroll-button/) element.
|
|
94
94
|
* @default {}
|
package/Tabs/Tabs.js
CHANGED
|
@@ -193,9 +193,9 @@ const TabsIndicator = styled('span', {
|
|
|
193
193
|
width: '100%',
|
|
194
194
|
transition: theme.transitions.create()
|
|
195
195
|
}, ownerState.indicatorColor === 'primary' && {
|
|
196
|
-
backgroundColor: theme.palette.primary.main
|
|
196
|
+
backgroundColor: (theme.vars || theme).palette.primary.main
|
|
197
197
|
}, ownerState.indicatorColor === 'secondary' && {
|
|
198
|
-
backgroundColor: theme.palette.secondary.main
|
|
198
|
+
backgroundColor: (theme.vars || theme).palette.secondary.main
|
|
199
199
|
}, ownerState.vertical && {
|
|
200
200
|
height: '100%',
|
|
201
201
|
width: 2,
|
package/Tabs/tabsClasses.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export interface TabsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
-
vertical: string;
|
|
6
|
-
/** Styles applied to the flex container element. */
|
|
7
|
-
flexContainer: string;
|
|
8
|
-
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
9
|
-
flexContainerVertical: string;
|
|
10
|
-
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
|
11
|
-
centered: string;
|
|
12
|
-
/** Styles applied to the tablist element. */
|
|
13
|
-
scroller: string;
|
|
14
|
-
/** Styles applied to the tablist element if `!variant="scrollable"`. */
|
|
15
|
-
fixed: string;
|
|
16
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
|
|
17
|
-
scrollableX: string;
|
|
18
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
|
|
19
|
-
scrollableY: string;
|
|
20
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
|
|
21
|
-
hideScrollbar: string;
|
|
22
|
-
/** Styles applied to the ScrollButtonComponent component. */
|
|
23
|
-
scrollButtons: string;
|
|
24
|
-
/** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
|
|
25
|
-
scrollButtonsHideMobile: string;
|
|
26
|
-
/** Styles applied to the TabIndicator component. */
|
|
27
|
-
indicator: string;
|
|
28
|
-
}
|
|
29
|
-
export declare type TabsClassKey = keyof TabsClasses;
|
|
30
|
-
export declare function getTabsUtilityClass(slot: string): string;
|
|
31
|
-
declare const tabsClasses: TabsClasses;
|
|
32
|
-
export default tabsClasses;
|
|
1
|
+
export interface TabsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
+
vertical: string;
|
|
6
|
+
/** Styles applied to the flex container element. */
|
|
7
|
+
flexContainer: string;
|
|
8
|
+
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
9
|
+
flexContainerVertical: string;
|
|
10
|
+
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
|
11
|
+
centered: string;
|
|
12
|
+
/** Styles applied to the tablist element. */
|
|
13
|
+
scroller: string;
|
|
14
|
+
/** Styles applied to the tablist element if `!variant="scrollable"`. */
|
|
15
|
+
fixed: string;
|
|
16
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
|
|
17
|
+
scrollableX: string;
|
|
18
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
|
|
19
|
+
scrollableY: string;
|
|
20
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
|
|
21
|
+
hideScrollbar: string;
|
|
22
|
+
/** Styles applied to the ScrollButtonComponent component. */
|
|
23
|
+
scrollButtons: string;
|
|
24
|
+
/** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
|
|
25
|
+
scrollButtonsHideMobile: string;
|
|
26
|
+
/** Styles applied to the TabIndicator component. */
|
|
27
|
+
indicator: string;
|
|
28
|
+
}
|
|
29
|
+
export declare type TabsClassKey = keyof TabsClasses;
|
|
30
|
+
export declare function getTabsUtilityClass(slot: string): string;
|
|
31
|
+
declare const tabsClasses: TabsClasses;
|
|
32
|
+
export default tabsClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TextFieldClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type TextFieldClassKey = keyof TextFieldClasses;
|
|
6
|
-
export declare function getTextFieldUtilityClass(slot: string): string;
|
|
7
|
-
declare const textFieldClasses: TextFieldClasses;
|
|
8
|
-
export default textFieldClasses;
|
|
1
|
+
export interface TextFieldClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type TextFieldClassKey = keyof TextFieldClasses;
|
|
6
|
+
export declare function getTextFieldUtilityClass(slot: string): string;
|
|
7
|
+
declare const textFieldClasses: TextFieldClasses;
|
|
8
|
+
export default textFieldClasses;
|
|
@@ -42,35 +42,42 @@ const ToggleButtonRoot = styled(ButtonBase, {
|
|
|
42
42
|
theme,
|
|
43
43
|
ownerState
|
|
44
44
|
}) => {
|
|
45
|
-
|
|
45
|
+
let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
|
|
46
|
+
let selectedColorChannel;
|
|
47
|
+
|
|
48
|
+
if (theme.vars) {
|
|
49
|
+
selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
|
|
50
|
+
selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
return _extends({}, theme.typography.button, {
|
|
47
|
-
borderRadius: theme.shape.borderRadius,
|
|
54
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
48
55
|
padding: 11,
|
|
49
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
50
|
-
color: theme.palette.action.active
|
|
56
|
+
border: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
57
|
+
color: (theme.vars || theme).palette.action.active
|
|
51
58
|
}, ownerState.fullWidth && {
|
|
52
59
|
width: '100%'
|
|
53
60
|
}, {
|
|
54
61
|
[`&.${toggleButtonClasses.disabled}`]: {
|
|
55
|
-
color: theme.palette.action.disabled,
|
|
56
|
-
border: `1px solid ${theme.palette.action.disabledBackground}`
|
|
62
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
63
|
+
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
|
57
64
|
},
|
|
58
65
|
'&:hover': {
|
|
59
66
|
textDecoration: 'none',
|
|
60
67
|
// Reset on mouse devices
|
|
61
|
-
backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
68
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
|
62
69
|
'@media (hover: none)': {
|
|
63
70
|
backgroundColor: 'transparent'
|
|
64
71
|
}
|
|
65
72
|
},
|
|
66
73
|
[`&.${toggleButtonClasses.selected}`]: {
|
|
67
74
|
color: selectedColor,
|
|
68
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
|
|
75
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity),
|
|
69
76
|
'&:hover': {
|
|
70
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
77
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
71
78
|
// Reset on touch devices, it doesn't add specificity
|
|
72
79
|
'@media (hover: none)': {
|
|
73
|
-
backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
|
|
80
|
+
backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(selectedColor, theme.palette.action.selectedOpacity)
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface ToggleButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
-
disabled: string;
|
|
6
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
7
|
-
selected: string;
|
|
8
|
-
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
-
primary: string;
|
|
12
|
-
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
-
secondary: string;
|
|
14
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
-
sizeSmall: string;
|
|
16
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
-
sizeMedium: string;
|
|
18
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
-
sizeLarge: string;
|
|
20
|
-
}
|
|
21
|
-
export declare type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
-
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
-
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
-
export default toggleButtonClasses;
|
|
1
|
+
export interface ToggleButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
+
disabled: string;
|
|
6
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
7
|
+
selected: string;
|
|
8
|
+
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
+
primary: string;
|
|
12
|
+
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
+
secondary: string;
|
|
14
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
+
sizeSmall: string;
|
|
16
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
+
sizeMedium: string;
|
|
18
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
+
sizeLarge: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
+
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
+
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
+
export default toggleButtonClasses;
|
|
@@ -45,7 +45,7 @@ const ToggleButtonGroupRoot = styled('div', {
|
|
|
45
45
|
theme
|
|
46
46
|
}) => _extends({
|
|
47
47
|
display: 'inline-flex',
|
|
48
|
-
borderRadius: theme.shape.borderRadius
|
|
48
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
49
49
|
}, ownerState.orientation === 'vertical' && {
|
|
50
50
|
flexDirection: 'column'
|
|
51
51
|
}, ownerState.fullWidth && {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ToggleButtonGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
-
vertical: string;
|
|
6
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
-
disabled: string;
|
|
8
|
-
/** Styles applied to the children. */
|
|
9
|
-
grouped: string;
|
|
10
|
-
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
-
groupedHorizontal: string;
|
|
12
|
-
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
-
groupedVertical: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
-
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
-
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
-
export default toggleButtonGroupClasses;
|
|
1
|
+
export interface ToggleButtonGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
+
vertical: string;
|
|
6
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
+
disabled: string;
|
|
8
|
+
/** Styles applied to the children. */
|
|
9
|
+
grouped: string;
|
|
10
|
+
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
+
groupedHorizontal: string;
|
|
12
|
+
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
+
groupedVertical: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
+
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
+
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
+
export default toggleButtonGroupClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface ToolbarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
-
gutters: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
-
regular: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
-
dense: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
-
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
-
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
-
export default toolbarClasses;
|
|
1
|
+
export interface ToolbarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
+
gutters: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
+
regular: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
+
dense: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
+
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
+
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
+
export default toolbarClasses;
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -56,7 +56,7 @@ const TooltipPopper = styled(Popper, {
|
|
|
56
56
|
ownerState,
|
|
57
57
|
open
|
|
58
58
|
}) => _extends({
|
|
59
|
-
zIndex: theme.zIndex.tooltip,
|
|
59
|
+
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
60
60
|
pointerEvents: 'none'
|
|
61
61
|
}, !ownerState.disableInteractive && {
|
|
62
62
|
pointerEvents: 'auto'
|
|
@@ -117,9 +117,9 @@ const TooltipTooltip = styled('div', {
|
|
|
117
117
|
theme,
|
|
118
118
|
ownerState
|
|
119
119
|
}) => _extends({
|
|
120
|
-
backgroundColor: alpha(theme.palette.grey[700], 0.92),
|
|
121
|
-
borderRadius: theme.shape.borderRadius,
|
|
122
|
-
color: theme.palette.common.white,
|
|
120
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : alpha(theme.palette.grey[700], 0.92),
|
|
121
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
122
|
+
color: (theme.vars || theme).palette.common.white,
|
|
123
123
|
fontFamily: theme.typography.fontFamily,
|
|
124
124
|
padding: '4px 8px',
|
|
125
125
|
fontSize: theme.typography.pxToRem(11),
|
|
@@ -185,7 +185,7 @@ const TooltipArrow = styled('span', {
|
|
|
185
185
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
186
186
|
,
|
|
187
187
|
boxSizing: 'border-box',
|
|
188
|
-
color: alpha(theme.palette.grey[700], 0.9),
|
|
188
|
+
color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : alpha(theme.palette.grey[700], 0.9),
|
|
189
189
|
'&::before': {
|
|
190
190
|
content: '""',
|
|
191
191
|
margin: 'auto',
|