@mui/material 5.6.3 → 5.8.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.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/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +1 -34
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +56 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +2 -2
- 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/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 +238 -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/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 +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 +2 -3
- 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/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 +18 -16
- 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 +2 -2
- package/legacy/Box/Box.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- 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 +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 +23 -23
- package/legacy/styles/createMixins.js +1 -1
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/createTheme.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +52 -43
- package/locale/index.d.ts +71 -71
- package/locale/index.js +23 -23
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +18 -16
- 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 +2 -2
- package/modern/Box/Box.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- 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 +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 +23 -23
- package/modern/styles/createMixins.js +1 -1
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/createTheme.js +1 -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 +19 -16
- 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 +2 -2
- package/node/Box/Box.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- 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 +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 +23 -23
- package/node/styles/createMixins.js +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +57 -47
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createMixins.d.ts +2 -6
- package/styles/createMixins.js +1 -1
- package/styles/createPalette.d.ts +9 -2
- package/styles/createPalette.js +2 -1
- package/styles/createTheme.js +1 -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 +915 -767
- package/umd/material-ui.production.min.js +19 -19
- 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
|
@@ -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/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', {
|
|
@@ -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
|
@@ -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,
|
|
@@ -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 && {
|
|
@@ -55,7 +55,7 @@ var TooltipPopper = styled(Popper, {
|
|
|
55
55
|
ownerState = _ref.ownerState,
|
|
56
56
|
open = _ref.open;
|
|
57
57
|
return _extends({
|
|
58
|
-
zIndex: theme.zIndex.tooltip,
|
|
58
|
+
zIndex: (theme.vars || theme).zIndex.tooltip,
|
|
59
59
|
pointerEvents: 'none'
|
|
60
60
|
}, !ownerState.disableInteractive && {
|
|
61
61
|
pointerEvents: 'auto'
|
|
@@ -112,9 +112,9 @@ var TooltipTooltip = styled('div', {
|
|
|
112
112
|
var theme = _ref3.theme,
|
|
113
113
|
ownerState = _ref3.ownerState;
|
|
114
114
|
return _extends({
|
|
115
|
-
backgroundColor: alpha(theme.palette.grey[700], 0.92),
|
|
116
|
-
borderRadius: theme.shape.borderRadius,
|
|
117
|
-
color: theme.palette.common.white,
|
|
115
|
+
backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.92)") : alpha(theme.palette.grey[700], 0.92),
|
|
116
|
+
borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
117
|
+
color: (theme.vars || theme).palette.common.white,
|
|
118
118
|
fontFamily: theme.typography.fontFamily,
|
|
119
119
|
padding: '4px 8px',
|
|
120
120
|
fontSize: theme.typography.pxToRem(11),
|
|
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
|
|
|
178
178
|
/* = width / sqrt(2) = (length of the hypotenuse) */
|
|
179
179
|
,
|
|
180
180
|
boxSizing: 'border-box',
|
|
181
|
-
color: alpha(theme.palette.grey[700], 0.9),
|
|
181
|
+
color: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.9)") : alpha(theme.palette.grey[700], 0.9),
|
|
182
182
|
'&::before': {
|
|
183
183
|
content: '""',
|
|
184
184
|
margin: 'auto',
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
|
|
3
|
-
* ❌ import { ... } from '@mui/base';
|
|
4
|
-
* ✅ import { ... } from '@mui/base/utils'; // must be specific base module
|
|
5
|
-
*
|
|
6
|
-
* Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
|
|
7
|
-
*/
|
|
8
1
|
// eslint-disable-next-line import/prefer-default-export
|
|
9
|
-
export { unstable_ClassNameGenerator } from '@mui/
|
|
2
|
+
export { unstable_ClassNameGenerator } from '@mui/utils';
|
package/legacy/index.js
CHANGED
package/legacy/locale/index.js
CHANGED
|
@@ -85,26 +85,26 @@ export var arEG = {
|
|
|
85
85
|
components: {
|
|
86
86
|
MuiBreadcrumbs: {
|
|
87
87
|
defaultProps: {
|
|
88
|
-
expandText: '
|
|
88
|
+
expandText: 'إظهار المسار'
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
MuiTablePagination: {
|
|
92
92
|
defaultProps: {
|
|
93
93
|
getItemAriaLabel: function getItemAriaLabel(type) {
|
|
94
94
|
if (type === 'first') {
|
|
95
|
-
return '
|
|
95
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
if (type === 'last') {
|
|
99
|
-
return '
|
|
99
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
if (type === 'next') {
|
|
103
|
-
return '
|
|
103
|
+
return 'انتقل إلى الصفحة التالية';
|
|
104
104
|
} // if (type === 'previous') {
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
return '
|
|
107
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
108
108
|
},
|
|
109
109
|
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
110
110
|
labelDisplayedRows: function labelDisplayedRows(_ref2) {
|
|
@@ -127,7 +127,7 @@ export var arEG = {
|
|
|
127
127
|
defaultProps: {
|
|
128
128
|
clearText: 'مسح',
|
|
129
129
|
closeText: 'إغلاق',
|
|
130
|
-
loadingText: '
|
|
130
|
+
loadingText: 'جار التحميل...',
|
|
131
131
|
noOptionsText: 'لا يوجد خيارات',
|
|
132
132
|
openText: 'فتح'
|
|
133
133
|
}
|
|
@@ -142,23 +142,23 @@ export var arEG = {
|
|
|
142
142
|
'aria-label': 'التنقل عبر الصفحات',
|
|
143
143
|
getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
|
|
144
144
|
if (type === 'page') {
|
|
145
|
-
return "".concat(selected ? '' : '
|
|
145
|
+
return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
if (type === 'first') {
|
|
149
|
-
return '
|
|
149
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
if (type === 'last') {
|
|
153
|
-
return '
|
|
153
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
if (type === 'next') {
|
|
157
|
-
return '
|
|
157
|
+
return 'انتقل إلى الصفحة التالية';
|
|
158
158
|
} // if (type === 'previous') {
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
return '
|
|
161
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -168,26 +168,26 @@ export var arSD = {
|
|
|
168
168
|
components: {
|
|
169
169
|
MuiBreadcrumbs: {
|
|
170
170
|
defaultProps: {
|
|
171
|
-
expandText: '
|
|
171
|
+
expandText: 'إظهار المسار'
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
MuiTablePagination: {
|
|
175
175
|
defaultProps: {
|
|
176
176
|
getItemAriaLabel: function getItemAriaLabel(type) {
|
|
177
177
|
if (type === 'first') {
|
|
178
|
-
return '
|
|
178
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
if (type === 'last') {
|
|
182
|
-
return '
|
|
182
|
+
return 'انتقل إلى الصفحة الأخيرة';
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
if (type === 'next') {
|
|
186
|
-
return '
|
|
186
|
+
return 'انتقل إلى الصفحة التالية';
|
|
187
187
|
} // if (type === 'previous') {
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
return '
|
|
190
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
191
191
|
},
|
|
192
192
|
labelRowsPerPage: 'عدد الصفوف في الصفحة:',
|
|
193
193
|
labelDisplayedRows: function labelDisplayedRows(_ref3) {
|
|
@@ -210,7 +210,7 @@ export var arSD = {
|
|
|
210
210
|
defaultProps: {
|
|
211
211
|
clearText: 'مسح',
|
|
212
212
|
closeText: 'إغلاق',
|
|
213
|
-
loadingText: '
|
|
213
|
+
loadingText: 'جار التحميل...',
|
|
214
214
|
noOptionsText: 'لا يوجد خيارات',
|
|
215
215
|
openText: 'فتح'
|
|
216
216
|
}
|
|
@@ -225,23 +225,23 @@ export var arSD = {
|
|
|
225
225
|
'aria-label': 'التنقل عبر الصفحات',
|
|
226
226
|
getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
|
|
227
227
|
if (type === 'page') {
|
|
228
|
-
return "".concat(selected ? '' : '
|
|
228
|
+
return "".concat(selected ? '' : 'انتقل إلى ', " \u0635\u0641\u062D\u0629 ").concat(page);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
if (type === 'first') {
|
|
232
|
-
return '
|
|
232
|
+
return 'انتقل إلى الصفحة الأولى';
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
if (type === 'last') {
|
|
236
|
-
return '
|
|
236
|
+
return 'انتقل الي الصفحة الأخيرة';
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
if (type === 'next') {
|
|
240
|
-
return '
|
|
240
|
+
return 'انتقل إلى الصفحة التالية';
|
|
241
241
|
} // if (type === 'previous') {
|
|
242
242
|
|
|
243
243
|
|
|
244
|
-
return '
|
|
244
|
+
return 'انتقل إلى الصفحة السابقة';
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
}
|
|
@@ -636,7 +636,7 @@ export var csCZ = {
|
|
|
636
636
|
'aria-label': 'Navigace stránkováním',
|
|
637
637
|
getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
|
|
638
638
|
if (type === 'page') {
|
|
639
|
-
return "".concat(selected ? '' : 'Jít na ').concat(page, " str\xE1nku");
|
|
639
|
+
return "".concat(selected ? '' : 'Jít na ').concat(page, ". str\xE1nku");
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
if (type === 'first') {
|