@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
|
@@ -3,26 +3,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import { deepmerge } from '@mui/utils';
|
|
4
4
|
import { colorChannel } from '@mui/system';
|
|
5
5
|
import createThemeWithoutVars from './createTheme';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
active: 0.54,
|
|
9
|
-
hover: 0.04,
|
|
10
|
-
selected: 0.08,
|
|
11
|
-
disabled: 0.26,
|
|
12
|
-
focus: 0.12
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
function createTheme() {
|
|
16
|
-
var _colorSchemesInput$li, _colorSchemesInput$da;
|
|
6
|
+
export default function extendTheme() {
|
|
7
|
+
var _colorSchemesInput$li, _colorSchemesInput$da, _colorSchemesInput$li2, _colorSchemesInput$da2;
|
|
17
8
|
|
|
18
9
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19
10
|
|
|
20
11
|
var _options$colorSchemes = options.colorSchemes,
|
|
21
12
|
colorSchemesInput = _options$colorSchemes === void 0 ? {} : _options$colorSchemes,
|
|
22
|
-
|
|
23
|
-
opacityInput = _options$opacity === void 0 ? {} : _options$opacity,
|
|
24
|
-
input = _objectWithoutProperties(options, ["colorSchemes", "opacity"]); // eslint-disable-next-line prefer-const
|
|
25
|
-
|
|
13
|
+
input = _objectWithoutProperties(options, ["colorSchemes"]);
|
|
26
14
|
|
|
27
15
|
var _createThemeWithoutVa = createThemeWithoutVars(_extends({}, input, colorSchemesInput.light && {
|
|
28
16
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
@@ -37,17 +25,47 @@ function createTheme() {
|
|
|
37
25
|
}),
|
|
38
26
|
darkPalette = _createThemeWithoutVa2.palette;
|
|
39
27
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
28
|
+
var theme = _extends({}, muiTheme, {
|
|
29
|
+
colorSchemes: _extends({}, colorSchemesInput, {
|
|
30
|
+
light: _extends({}, colorSchemesInput.light, {
|
|
31
|
+
palette: lightPalette,
|
|
32
|
+
opacity: _extends({
|
|
33
|
+
placeholder: 0.42,
|
|
34
|
+
inputTouchBottomLine: 0.42
|
|
35
|
+
}, (_colorSchemesInput$li2 = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li2.opacity)
|
|
36
|
+
}),
|
|
37
|
+
dark: _extends({}, colorSchemesInput.dark, {
|
|
38
|
+
palette: darkPalette,
|
|
39
|
+
opacity: _extends({
|
|
40
|
+
placeholder: 0.5,
|
|
41
|
+
inputTouchBottomLine: 0.7
|
|
42
|
+
}, (_colorSchemesInput$da2 = colorSchemesInput.dark) == null ? void 0 : _colorSchemesInput$da2.opacity)
|
|
43
|
+
})
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
Object.keys(theme.colorSchemes).forEach(function (key) {
|
|
48
|
+
var palette = theme.colorSchemes[key].palette; // attach black & white channels to common node
|
|
49
|
+
|
|
50
|
+
if (key === 'dark') {
|
|
51
|
+
palette.common.background = palette.common.background || '#000';
|
|
52
|
+
palette.common.onBackground = palette.common.onBackground || '#fff';
|
|
53
|
+
} else {
|
|
54
|
+
palette.common.background = palette.common.background || '#fff';
|
|
55
|
+
palette.common.onBackground = palette.common.onBackground || '#000';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
palette.common.backgroundChannel = colorChannel(palette.common.background);
|
|
59
|
+
palette.common.onBackgroundChannel = colorChannel(palette.common.onBackground);
|
|
60
|
+
palette.dividerChannel = colorChannel(palette.divider); // special token for Tooltip
|
|
61
|
+
// TODO: consider adding `main`, and `light` to palette.grey to make it consistent.
|
|
62
|
+
|
|
63
|
+
if (!palette.grey.dark) {
|
|
64
|
+
palette.grey.dark = palette.grey[700];
|
|
65
|
+
}
|
|
66
|
+
|
|
49
67
|
Object.keys(palette).forEach(function (color) {
|
|
50
|
-
var colors = palette[color];
|
|
68
|
+
var colors = palette[color]; // Color palettes: primary, secondary, error, info, success, and warning
|
|
51
69
|
|
|
52
70
|
if (colors.main) {
|
|
53
71
|
palette[color].mainChannel = colorChannel(colors.main);
|
|
@@ -61,6 +79,11 @@ function createTheme() {
|
|
|
61
79
|
palette[color].darkChannel = colorChannel(colors.dark);
|
|
62
80
|
}
|
|
63
81
|
|
|
82
|
+
if (colors.contrastText) {
|
|
83
|
+
palette[color].contrastTextChannel = colorChannel(colors.contrastText);
|
|
84
|
+
} // Text colors: text.primary, text.secondary
|
|
85
|
+
|
|
86
|
+
|
|
64
87
|
if (colors.primary) {
|
|
65
88
|
palette[color].primaryChannel = colorChannel(colors.primary);
|
|
66
89
|
}
|
|
@@ -68,29 +91,15 @@ function createTheme() {
|
|
|
68
91
|
if (colors.secondary) {
|
|
69
92
|
palette[color].secondaryChannel = colorChannel(colors.secondary);
|
|
70
93
|
}
|
|
71
|
-
|
|
72
|
-
if (colors.disabled) {
|
|
73
|
-
palette[color].disabledChannel = colorChannel(colors.disabled);
|
|
74
|
-
}
|
|
75
94
|
});
|
|
76
|
-
colorSchemes[key] = {
|
|
77
|
-
palette: palette
|
|
78
|
-
};
|
|
79
95
|
});
|
|
80
96
|
|
|
81
|
-
var opacity = _extends({}, defaultOpacity, opacityInput);
|
|
82
|
-
|
|
83
|
-
muiTheme.colorSchemes = colorSchemes;
|
|
84
|
-
muiTheme.opacity = opacity;
|
|
85
|
-
|
|
86
97
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
87
98
|
args[_key - 1] = arguments[_key];
|
|
88
99
|
}
|
|
89
100
|
|
|
90
|
-
|
|
101
|
+
theme = args.reduce(function (acc, argument) {
|
|
91
102
|
return deepmerge(acc, argument);
|
|
92
|
-
},
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export default createTheme;
|
|
103
|
+
}, theme);
|
|
104
|
+
return theme;
|
|
105
|
+
}
|
package/locale/index.d.ts
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
-
export interface Localization {
|
|
3
|
-
components?: {
|
|
4
|
-
MuiAlert?: {
|
|
5
|
-
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
-
};
|
|
7
|
-
MuiBreadcrumbs?: {
|
|
8
|
-
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
-
};
|
|
10
|
-
MuiTablePagination?: {
|
|
11
|
-
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
-
};
|
|
13
|
-
MuiRating?: {
|
|
14
|
-
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
-
};
|
|
16
|
-
MuiAutocomplete?: {
|
|
17
|
-
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
-
};
|
|
19
|
-
MuiPagination?: {
|
|
20
|
-
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export declare const amET: Localization;
|
|
25
|
-
export declare const arEG: Localization;
|
|
26
|
-
export declare const arSD: Localization;
|
|
27
|
-
export declare const azAZ: Localization;
|
|
28
|
-
export declare const bnBD: Localization;
|
|
29
|
-
export declare const bgBG: Localization;
|
|
30
|
-
export declare const caES: Localization;
|
|
31
|
-
export declare const csCZ: Localization;
|
|
32
|
-
export declare const daDK: Localization;
|
|
33
|
-
export declare const deDE: Localization;
|
|
34
|
-
export declare const elGR: Localization;
|
|
35
|
-
export declare const enUS: Localization;
|
|
36
|
-
export declare const esES: Localization;
|
|
37
|
-
export declare const etEE: Localization;
|
|
38
|
-
export declare const faIR: Localization;
|
|
39
|
-
export declare const fiFI: Localization;
|
|
40
|
-
export declare const frFR: Localization;
|
|
41
|
-
export declare const heIL: Localization;
|
|
42
|
-
export declare const hiIN: Localization;
|
|
43
|
-
export declare const hrHR: Localization;
|
|
44
|
-
export declare const huHU: Localization;
|
|
45
|
-
export declare const hyAM: Localization;
|
|
46
|
-
export declare const idID: Localization;
|
|
47
|
-
export declare const isIS: Localization;
|
|
48
|
-
export declare const itIT: Localization;
|
|
49
|
-
export declare const jaJP: Localization;
|
|
50
|
-
export declare const khKH: Localization;
|
|
51
|
-
export declare const koKR: Localization;
|
|
52
|
-
export declare const kzKZ: Localization;
|
|
53
|
-
export declare const mkMK: Localization;
|
|
54
|
-
export declare const nbNO: Localization;
|
|
55
|
-
export declare const nlNL: Localization;
|
|
56
|
-
export declare const plPL: Localization;
|
|
57
|
-
export declare const ptBR: Localization;
|
|
58
|
-
export declare const ptPT: Localization;
|
|
59
|
-
export declare const roRO: Localization;
|
|
60
|
-
export declare const srRS: Localization;
|
|
61
|
-
export declare const ruRU: Localization;
|
|
62
|
-
export declare const siLK: Localization;
|
|
63
|
-
export declare const skSK: Localization;
|
|
64
|
-
export declare const svSE: Localization;
|
|
65
|
-
export declare const thTH: Localization;
|
|
66
|
-
export declare const trTR: Localization;
|
|
67
|
-
export declare const ukUA: Localization;
|
|
68
|
-
export declare const viVN: Localization;
|
|
69
|
-
export declare const zhCN: Localization;
|
|
70
|
-
export declare const zhHK: Localization;
|
|
71
|
-
export declare const zhTW: Localization;
|
|
1
|
+
import { ComponentsPropsList } from '../styles/props';
|
|
2
|
+
export interface Localization {
|
|
3
|
+
components?: {
|
|
4
|
+
MuiAlert?: {
|
|
5
|
+
defaultProps: Pick<ComponentsPropsList['MuiAlert'], 'closeText'>;
|
|
6
|
+
};
|
|
7
|
+
MuiBreadcrumbs?: {
|
|
8
|
+
defaultProps: Pick<ComponentsPropsList['MuiBreadcrumbs'], 'expandText'>;
|
|
9
|
+
};
|
|
10
|
+
MuiTablePagination?: {
|
|
11
|
+
defaultProps: Pick<ComponentsPropsList['MuiTablePagination'], 'labelRowsPerPage' | 'labelDisplayedRows' | 'getItemAriaLabel'>;
|
|
12
|
+
};
|
|
13
|
+
MuiRating?: {
|
|
14
|
+
defaultProps: Pick<ComponentsPropsList['MuiRating'], 'emptyLabelText' | 'getLabelText'>;
|
|
15
|
+
};
|
|
16
|
+
MuiAutocomplete?: {
|
|
17
|
+
defaultProps: Pick<ComponentsPropsList['MuiAutocomplete'], 'clearText' | 'closeText' | 'loadingText' | 'noOptionsText' | 'openText'>;
|
|
18
|
+
};
|
|
19
|
+
MuiPagination?: {
|
|
20
|
+
defaultProps: Pick<ComponentsPropsList['MuiPagination'], 'aria-label' | 'getItemAriaLabel'>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export declare const amET: Localization;
|
|
25
|
+
export declare const arEG: Localization;
|
|
26
|
+
export declare const arSD: Localization;
|
|
27
|
+
export declare const azAZ: Localization;
|
|
28
|
+
export declare const bnBD: Localization;
|
|
29
|
+
export declare const bgBG: Localization;
|
|
30
|
+
export declare const caES: Localization;
|
|
31
|
+
export declare const csCZ: Localization;
|
|
32
|
+
export declare const daDK: Localization;
|
|
33
|
+
export declare const deDE: Localization;
|
|
34
|
+
export declare const elGR: Localization;
|
|
35
|
+
export declare const enUS: Localization;
|
|
36
|
+
export declare const esES: Localization;
|
|
37
|
+
export declare const etEE: Localization;
|
|
38
|
+
export declare const faIR: Localization;
|
|
39
|
+
export declare const fiFI: Localization;
|
|
40
|
+
export declare const frFR: Localization;
|
|
41
|
+
export declare const heIL: Localization;
|
|
42
|
+
export declare const hiIN: Localization;
|
|
43
|
+
export declare const hrHR: Localization;
|
|
44
|
+
export declare const huHU: Localization;
|
|
45
|
+
export declare const hyAM: Localization;
|
|
46
|
+
export declare const idID: Localization;
|
|
47
|
+
export declare const isIS: Localization;
|
|
48
|
+
export declare const itIT: Localization;
|
|
49
|
+
export declare const jaJP: Localization;
|
|
50
|
+
export declare const khKH: Localization;
|
|
51
|
+
export declare const koKR: Localization;
|
|
52
|
+
export declare const kzKZ: Localization;
|
|
53
|
+
export declare const mkMK: Localization;
|
|
54
|
+
export declare const nbNO: Localization;
|
|
55
|
+
export declare const nlNL: Localization;
|
|
56
|
+
export declare const plPL: Localization;
|
|
57
|
+
export declare const ptBR: Localization;
|
|
58
|
+
export declare const ptPT: Localization;
|
|
59
|
+
export declare const roRO: Localization;
|
|
60
|
+
export declare const srRS: Localization;
|
|
61
|
+
export declare const ruRU: Localization;
|
|
62
|
+
export declare const siLK: Localization;
|
|
63
|
+
export declare const skSK: Localization;
|
|
64
|
+
export declare const svSE: Localization;
|
|
65
|
+
export declare const thTH: Localization;
|
|
66
|
+
export declare const trTR: Localization;
|
|
67
|
+
export declare const ukUA: Localization;
|
|
68
|
+
export declare const viVN: Localization;
|
|
69
|
+
export declare const zhCN: Localization;
|
|
70
|
+
export declare const zhHK: Localization;
|
|
71
|
+
export declare const zhTW: Localization;
|
package/locale/index.js
CHANGED
|
@@ -619,7 +619,7 @@ export const csCZ = {
|
|
|
619
619
|
'aria-label': 'Navigace stránkováním',
|
|
620
620
|
getItemAriaLabel: (type, page, selected) => {
|
|
621
621
|
if (type === 'page') {
|
|
622
|
-
return `${selected ? '' : 'Jít na '}${page} stránku`;
|
|
622
|
+
return `${selected ? '' : 'Jít na '}${page}. stránku`;
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
if (type === 'first') {
|
|
@@ -62,7 +62,7 @@ const AccordionRoot = styled(Paper, {
|
|
|
62
62
|
height: 1,
|
|
63
63
|
content: '""',
|
|
64
64
|
opacity: 1,
|
|
65
|
-
backgroundColor: theme.palette.divider,
|
|
65
|
+
backgroundColor: (theme.vars || theme).palette.divider,
|
|
66
66
|
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
|
67
67
|
},
|
|
68
68
|
'&:first-of-type': {
|
|
@@ -87,7 +87,7 @@ const AccordionRoot = styled(Paper, {
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
[`&.${accordionClasses.disabled}`]: {
|
|
90
|
-
backgroundColor: theme.palette.action.disabledBackground
|
|
90
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
}, ({
|
|
@@ -96,12 +96,12 @@ const AccordionRoot = styled(Paper, {
|
|
|
96
96
|
}) => _extends({}, !ownerState.square && {
|
|
97
97
|
borderRadius: 0,
|
|
98
98
|
'&:first-of-type': {
|
|
99
|
-
borderTopLeftRadius: theme.shape.borderRadius,
|
|
100
|
-
borderTopRightRadius: theme.shape.borderRadius
|
|
99
|
+
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
100
|
+
borderTopRightRadius: (theme.vars || theme).shape.borderRadius
|
|
101
101
|
},
|
|
102
102
|
'&:last-of-type': {
|
|
103
|
-
borderBottomLeftRadius: theme.shape.borderRadius,
|
|
104
|
-
borderBottomRightRadius: theme.shape.borderRadius,
|
|
103
|
+
borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
104
|
+
borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
|
|
105
105
|
// Fix a rendering issue on Edge
|
|
106
106
|
'@supports (-ms-ime-align: auto)': {
|
|
107
107
|
borderBottomLeftRadius: 0,
|
|
@@ -46,10 +46,10 @@ const AccordionSummaryRoot = styled(ButtonBase, {
|
|
|
46
46
|
padding: theme.spacing(0, 2),
|
|
47
47
|
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
|
48
48
|
[`&.${accordionSummaryClasses.focusVisible}`]: {
|
|
49
|
-
backgroundColor: theme.palette.action.focus
|
|
49
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
50
50
|
},
|
|
51
51
|
[`&.${accordionSummaryClasses.disabled}`]: {
|
|
52
|
-
opacity: theme.palette.action.disabledOpacity
|
|
52
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
53
53
|
},
|
|
54
54
|
[`&:hover:not(.${accordionSummaryClasses.disabled})`]: {
|
|
55
55
|
cursor: 'pointer'
|
|
@@ -87,7 +87,7 @@ const AccordionSummaryExpandIconWrapper = styled('div', {
|
|
|
87
87
|
theme
|
|
88
88
|
}) => ({
|
|
89
89
|
display: 'flex',
|
|
90
|
-
color: theme.palette.action.active,
|
|
90
|
+
color: (theme.vars || theme).palette.action.active,
|
|
91
91
|
transform: 'rotate(0deg)',
|
|
92
92
|
transition: theme.transitions.create('transform', {
|
|
93
93
|
duration: theme.transitions.duration.shortest
|
|
@@ -236,7 +236,7 @@ const AutocompletePopper = styled(Popper, {
|
|
|
236
236
|
theme,
|
|
237
237
|
ownerState
|
|
238
238
|
}) => _extends({
|
|
239
|
-
zIndex: theme.zIndex.modal
|
|
239
|
+
zIndex: (theme.vars || theme).zIndex.modal
|
|
240
240
|
}, ownerState.disablePortal && {
|
|
241
241
|
position: 'absolute'
|
|
242
242
|
}));
|
|
@@ -256,7 +256,7 @@ const AutocompleteLoading = styled('div', {
|
|
|
256
256
|
})(({
|
|
257
257
|
theme
|
|
258
258
|
}) => ({
|
|
259
|
-
color: theme.palette.text.secondary,
|
|
259
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
260
260
|
padding: '14px 16px'
|
|
261
261
|
}));
|
|
262
262
|
const AutocompleteNoOptions = styled('div', {
|
|
@@ -266,7 +266,7 @@ const AutocompleteNoOptions = styled('div', {
|
|
|
266
266
|
})(({
|
|
267
267
|
theme
|
|
268
268
|
}) => ({
|
|
269
|
-
color: theme.palette.text.secondary,
|
|
269
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
270
270
|
padding: '14px 16px'
|
|
271
271
|
}));
|
|
272
272
|
const AutocompleteListbox = styled('div', {
|
|
@@ -299,30 +299,30 @@ const AutocompleteListbox = styled('div', {
|
|
|
299
299
|
minHeight: 'auto'
|
|
300
300
|
},
|
|
301
301
|
[`&.${autocompleteClasses.focused}`]: {
|
|
302
|
-
backgroundColor: theme.palette.action.hover,
|
|
302
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
303
303
|
// Reset on touch devices, it doesn't add specificity
|
|
304
304
|
'@media (hover: none)': {
|
|
305
305
|
backgroundColor: 'transparent'
|
|
306
306
|
}
|
|
307
307
|
},
|
|
308
308
|
'&[aria-disabled="true"]': {
|
|
309
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
309
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
310
310
|
pointerEvents: 'none'
|
|
311
311
|
},
|
|
312
312
|
[`&.${autocompleteClasses.focusVisible}`]: {
|
|
313
|
-
backgroundColor: theme.palette.action.focus
|
|
313
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
314
314
|
},
|
|
315
315
|
'&[aria-selected="true"]': {
|
|
316
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
316
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
317
317
|
[`&.${autocompleteClasses.focused}`]: {
|
|
318
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
318
|
+
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),
|
|
319
319
|
// Reset on touch devices, it doesn't add specificity
|
|
320
320
|
'@media (hover: none)': {
|
|
321
|
-
backgroundColor: theme.palette.action.selected
|
|
321
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
[`&.${autocompleteClasses.focusVisible}`]: {
|
|
325
|
-
backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
325
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
}
|
|
@@ -334,7 +334,7 @@ const AutocompleteGroupLabel = styled(ListSubheader, {
|
|
|
334
334
|
})(({
|
|
335
335
|
theme
|
|
336
336
|
}) => ({
|
|
337
|
-
backgroundColor: theme.palette.background.paper,
|
|
337
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
338
338
|
top: -8
|
|
339
339
|
}));
|
|
340
340
|
const AutocompleteGroupUl = styled('ul', {
|
|
@@ -525,10 +525,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
525
525
|
fullWidth: true,
|
|
526
526
|
size: size === 'small' ? 'small' : undefined,
|
|
527
527
|
InputLabelProps: getInputLabelProps(),
|
|
528
|
-
InputProps: {
|
|
528
|
+
InputProps: _extends({
|
|
529
529
|
ref: setAnchorEl,
|
|
530
530
|
className: classes.inputRoot,
|
|
531
|
-
startAdornment
|
|
531
|
+
startAdornment
|
|
532
|
+
}, (hasClearIcon || hasPopupIcon) && {
|
|
532
533
|
endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
|
|
533
534
|
className: classes.endAdornment,
|
|
534
535
|
ownerState: ownerState,
|
|
@@ -548,7 +549,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
548
549
|
children: popupIcon
|
|
549
550
|
})) : null]
|
|
550
551
|
})
|
|
551
|
-
},
|
|
552
|
+
}),
|
|
552
553
|
inputProps: _extends({
|
|
553
554
|
className: clsx(classes.input),
|
|
554
555
|
disabled,
|
|
@@ -38,7 +38,7 @@ const AvatarGroupRoot = styled('div', {
|
|
|
38
38
|
theme
|
|
39
39
|
}) => ({
|
|
40
40
|
[`& .${avatarClasses.root}`]: {
|
|
41
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
41
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
42
42
|
boxSizing: 'content-box',
|
|
43
43
|
marginLeft: -8,
|
|
44
44
|
'&:last-child': {
|
|
@@ -55,7 +55,7 @@ const AvatarGroupAvatar = styled(Avatar, {
|
|
|
55
55
|
})(({
|
|
56
56
|
theme
|
|
57
57
|
}) => ({
|
|
58
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
58
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
59
59
|
boxSizing: 'content-box',
|
|
60
60
|
marginLeft: -8,
|
|
61
61
|
'&:last-child': {
|
package/modern/Badge/Badge.js
CHANGED
|
@@ -79,8 +79,8 @@ const BadgeBadge = styled('span', {
|
|
|
79
79
|
duration: theme.transitions.duration.enteringScreen
|
|
80
80
|
})
|
|
81
81
|
}, ownerState.color !== 'default' && {
|
|
82
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
83
|
-
color: theme.palette[ownerState.color].contrastText
|
|
82
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
83
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
84
84
|
}, ownerState.variant === 'dot' && {
|
|
85
85
|
borderRadius: RADIUS_DOT,
|
|
86
86
|
height: RADIUS_DOT * 2,
|
|
@@ -31,7 +31,7 @@ const BottomNavigationRoot = styled('div', {
|
|
|
31
31
|
display: 'flex',
|
|
32
32
|
justifyContent: 'center',
|
|
33
33
|
height: 56,
|
|
34
|
-
backgroundColor: theme.palette.background.paper
|
|
34
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
35
35
|
}));
|
|
36
36
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
37
37
|
const props = useThemeProps({
|
|
@@ -42,18 +42,19 @@ const BottomNavigationActionRoot = styled(ButtonBase, {
|
|
|
42
42
|
transition: theme.transitions.create(['color', 'padding-top'], {
|
|
43
43
|
duration: theme.transitions.duration.short
|
|
44
44
|
}),
|
|
45
|
-
padding: '
|
|
45
|
+
padding: '0px 12px',
|
|
46
46
|
minWidth: 80,
|
|
47
47
|
maxWidth: 168,
|
|
48
|
-
color: theme.palette.text.secondary,
|
|
48
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
49
49
|
flexDirection: 'column',
|
|
50
50
|
flex: '1'
|
|
51
51
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
52
|
-
paddingTop:
|
|
52
|
+
paddingTop: 14
|
|
53
|
+
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
|
54
|
+
paddingTop: 0
|
|
53
55
|
}, {
|
|
54
56
|
[`&.${bottomNavigationActionClasses.selected}`]: {
|
|
55
|
-
|
|
56
|
-
color: theme.palette.primary.main
|
|
57
|
+
color: (theme.vars || theme).palette.primary.main
|
|
57
58
|
}
|
|
58
59
|
}));
|
|
59
60
|
const BottomNavigationActionLabel = styled('span', {
|
package/modern/Box/Box.js
CHANGED
|
@@ -1,14 +1,35 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
1
2
|
import { createBox } from '@mui/system';
|
|
2
3
|
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
|
3
4
|
import { createTheme } from '../styles';
|
|
4
5
|
const defaultTheme = createTheme();
|
|
5
|
-
/**
|
|
6
|
-
* @ignore - do not document.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
6
|
const Box = createBox({
|
|
10
7
|
defaultTheme,
|
|
11
8
|
defaultClassName: 'MuiBox-root',
|
|
12
9
|
generateClassName: ClassNameGenerator.generate
|
|
13
10
|
});
|
|
11
|
+
process.env.NODE_ENV !== "production" ? Box.propTypes
|
|
12
|
+
/* remove-proptypes */
|
|
13
|
+
= {
|
|
14
|
+
// ----------------------------- Warning --------------------------------
|
|
15
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
16
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
17
|
+
// ----------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @ignore
|
|
21
|
+
*/
|
|
22
|
+
children: PropTypes.node,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The component used for the root node.
|
|
26
|
+
* Either a string to use a HTML element or a component.
|
|
27
|
+
*/
|
|
28
|
+
component: PropTypes.elementType,
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
32
|
+
*/
|
|
33
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
34
|
+
} : void 0;
|
|
14
35
|
export default Box;
|
|
@@ -56,9 +56,9 @@ const ButtonGroupRoot = styled('div', {
|
|
|
56
56
|
ownerState
|
|
57
57
|
}) => _extends({
|
|
58
58
|
display: 'inline-flex',
|
|
59
|
-
borderRadius: theme.shape.borderRadius
|
|
59
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
60
60
|
}, ownerState.variant === 'contained' && {
|
|
61
|
-
boxShadow: theme.shadows[2]
|
|
61
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
62
62
|
}, ownerState.disableElevation && {
|
|
63
63
|
boxShadow: 'none'
|
|
64
64
|
}, ownerState.fullWidth && {
|
|
@@ -86,27 +86,27 @@ const ButtonGroupRoot = styled('div', {
|
|
|
86
86
|
borderBottomRightRadius: 0,
|
|
87
87
|
borderBottomLeftRadius: 0
|
|
88
88
|
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
89
|
-
borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
89
|
+
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
90
90
|
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
91
|
-
borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
91
|
+
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
92
92
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
93
|
-
borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
|
|
93
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
|
94
94
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
95
95
|
borderRightColor: 'transparent'
|
|
96
96
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
97
97
|
borderBottomColor: 'transparent'
|
|
98
98
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
99
|
-
borderRight: `1px solid ${theme.palette.grey[400]}`,
|
|
99
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
100
100
|
[`&.${buttonGroupClasses.disabled}`]: {
|
|
101
|
-
borderRight: `1px solid ${theme.palette.action.disabled}`
|
|
101
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
102
102
|
}
|
|
103
103
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
104
|
-
borderBottom: `1px solid ${theme.palette.grey[400]}`,
|
|
104
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
105
105
|
[`&.${buttonGroupClasses.disabled}`]: {
|
|
106
|
-
borderBottom: `1px solid ${theme.palette.action.disabled}`
|
|
106
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
107
107
|
}
|
|
108
108
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
109
|
-
borderColor: theme.palette[ownerState.color].dark
|
|
109
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
110
110
|
}, {
|
|
111
111
|
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
112
112
|
borderRightColor: 'currentColor'
|
|
@@ -34,13 +34,13 @@ const CardActionAreaRoot = styled(ButtonBase, {
|
|
|
34
34
|
textAlign: 'inherit',
|
|
35
35
|
width: '100%',
|
|
36
36
|
[`&:hover .${cardActionAreaClasses.focusHighlight}`]: {
|
|
37
|
-
opacity: theme.palette.action.hoverOpacity,
|
|
37
|
+
opacity: (theme.vars || theme).palette.action.hoverOpacity,
|
|
38
38
|
'@media (hover: none)': {
|
|
39
39
|
opacity: 0
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
[`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]: {
|
|
43
|
-
opacity: theme.palette.action.focusOpacity
|
|
43
|
+
opacity: (theme.vars || theme).palette.action.focusOpacity
|
|
44
44
|
}
|
|
45
45
|
}));
|
|
46
46
|
const CardActionAreaFocusHighlight = styled('span', {
|
|
@@ -71,7 +71,7 @@ const CircularProgressRoot = styled('span', {
|
|
|
71
71
|
}, ownerState.variant === 'determinate' && {
|
|
72
72
|
transition: theme.transitions.create('transform')
|
|
73
73
|
}, ownerState.color !== 'inherit' && {
|
|
74
|
-
color: theme.palette[ownerState.color].main
|
|
74
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
75
75
|
}), ({
|
|
76
76
|
ownerState
|
|
77
77
|
}) => ownerState.variant === 'indeterminate' && css`
|
|
@@ -19,12 +19,12 @@ export const html = (theme, enableColorScheme) => _extends({
|
|
|
19
19
|
colorScheme: theme.palette.mode
|
|
20
20
|
});
|
|
21
21
|
export const body = theme => _extends({
|
|
22
|
-
color: theme.palette.text.primary
|
|
22
|
+
color: (theme.vars || theme).palette.text.primary
|
|
23
23
|
}, theme.typography.body1, {
|
|
24
|
-
backgroundColor: theme.palette.background.default,
|
|
24
|
+
backgroundColor: (theme.vars || theme).palette.background.default,
|
|
25
25
|
'@media print': {
|
|
26
26
|
// Save printer ink.
|
|
27
|
-
backgroundColor: theme.palette.common.white
|
|
27
|
+
backgroundColor: (theme.vars || theme).palette.common.white
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export const styles = (theme, enableColorScheme = false) => {
|
|
@@ -42,7 +42,7 @@ export const styles = (theme, enableColorScheme = false) => {
|
|
|
42
42
|
// Add support for document.body.requestFullScreen().
|
|
43
43
|
// Other elements, if background transparent, are not supported.
|
|
44
44
|
'&::backdrop': {
|
|
45
|
-
backgroundColor: theme.palette.background.default
|
|
45
|
+
backgroundColor: (theme.vars || theme).palette.background.default
|
|
46
46
|
}
|
|
47
47
|
})
|
|
48
48
|
};
|