@mui/material 5.6.4 → 5.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/Alert.js +1 -0
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +23 -1
- package/Autocomplete/Autocomplete.js +18 -16
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +1 -34
- package/Badge/badgeClasses.d.ts +56 -24
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/TouchRipple.js +5 -5
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +241 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.js +17 -106
- package/Container/containerClasses.d.ts +6 -22
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +72 -66
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +15 -9
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +20 -15
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +2 -1
- package/Radio/Radio.js +4 -4
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/SelectInput.js +2 -2
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +1 -5
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +4 -4
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +1 -0
- package/legacy/Autocomplete/Autocomplete.js +18 -16
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Box/Box.js +1 -1
- package/legacy/ButtonBase/TouchRipple.js +5 -5
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/Container/Container.js +18 -103
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +20 -18
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +15 -9
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Paper/Paper.js +10 -7
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Select/SelectInput.js +2 -2
- package/legacy/Slider/Slider.js +1 -10
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +4 -4
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +22 -22
- package/legacy/styles/createMixins.js +5 -3
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/createTheme.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +70 -42
- package/locale/index.d.ts +71 -71
- package/locale/index.js +22 -22
- package/modern/Alert/Alert.js +1 -0
- package/modern/Autocomplete/Autocomplete.js +18 -16
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Box/Box.js +1 -1
- package/modern/ButtonBase/TouchRipple.js +5 -5
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/Container/Container.js +17 -106
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +19 -17
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +15 -9
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Paper/Paper.js +8 -7
- package/modern/Radio/Radio.js +4 -4
- package/modern/Rating/Rating.js +2 -2
- package/modern/Select/SelectInput.js +2 -2
- package/modern/Slider/Slider.js +1 -5
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +4 -4
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +22 -22
- package/modern/styles/createMixins.js +5 -3
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/experimental_extendTheme.js +71 -44
- package/node/Alert/Alert.js +1 -0
- package/node/Autocomplete/Autocomplete.js +19 -16
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Box/Box.js +2 -2
- package/node/ButtonBase/TouchRipple.js +5 -5
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/Container/Container.js +17 -113
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +72 -66
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +15 -9
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MenuList/MenuList.js +1 -1
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Paper/Paper.js +22 -14
- package/node/Radio/Radio.js +4 -4
- package/node/Rating/Rating.js +2 -2
- package/node/Select/SelectInput.js +2 -2
- package/node/Slider/Slider.js +1 -5
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +4 -4
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +22 -22
- package/node/styles/createMixins.js +5 -3
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +72 -45
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createMixins.d.ts +2 -6
- package/styles/createMixins.js +5 -3
- package/styles/createPalette.d.ts +10 -3
- package/styles/createPalette.js +2 -1
- package/styles/createTheme.js +1 -1
- package/styles/experimental_extendTheme.d.ts +43 -16
- package/styles/experimental_extendTheme.js +72 -45
- package/styles/index.d.ts +1 -0
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +1079 -894
- package/umd/material-ui.production.min.js +21 -21
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -7,123 +7,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
11
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _base = require("@mui/base");
|
|
21
|
-
|
|
22
|
-
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
23
|
-
|
|
24
|
-
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
25
|
-
|
|
26
|
-
var _containerClasses = require("./containerClasses");
|
|
12
|
+
var _system = require("@mui/system");
|
|
27
13
|
|
|
28
14
|
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
|
29
15
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
const _excluded = ["className", "component", "disableGutters", "fixed", "maxWidth"];
|
|
33
|
-
|
|
34
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
|
-
|
|
36
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
-
|
|
38
|
-
const useUtilityClasses = ownerState => {
|
|
39
|
-
const {
|
|
40
|
-
classes,
|
|
41
|
-
fixed,
|
|
42
|
-
disableGutters,
|
|
43
|
-
maxWidth
|
|
44
|
-
} = ownerState;
|
|
45
|
-
const slots = {
|
|
46
|
-
root: ['root', maxWidth && `maxWidth${(0, _capitalize.default)(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
|
|
47
|
-
};
|
|
48
|
-
return (0, _base.unstable_composeClasses)(slots, _containerClasses.getContainerUtilityClass, classes);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const ContainerRoot = (0, _styled.default)('div', {
|
|
52
|
-
name: 'MuiContainer',
|
|
53
|
-
slot: 'Root',
|
|
54
|
-
overridesResolver: (props, styles) => {
|
|
55
|
-
const {
|
|
56
|
-
ownerState
|
|
57
|
-
} = props;
|
|
58
|
-
return [styles.root, styles[`maxWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
|
59
|
-
}
|
|
60
|
-
})(({
|
|
61
|
-
theme,
|
|
62
|
-
ownerState
|
|
63
|
-
}) => (0, _extends2.default)({
|
|
64
|
-
width: '100%',
|
|
65
|
-
marginLeft: 'auto',
|
|
66
|
-
boxSizing: 'border-box',
|
|
67
|
-
marginRight: 'auto',
|
|
68
|
-
display: 'block'
|
|
69
|
-
}, !ownerState.disableGutters && {
|
|
70
|
-
paddingLeft: theme.spacing(2),
|
|
71
|
-
paddingRight: theme.spacing(2),
|
|
72
|
-
[theme.breakpoints.up('sm')]: {
|
|
73
|
-
paddingLeft: theme.spacing(3),
|
|
74
|
-
paddingRight: theme.spacing(3)
|
|
75
|
-
}
|
|
76
|
-
}), ({
|
|
77
|
-
theme,
|
|
78
|
-
ownerState
|
|
79
|
-
}) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
|
|
80
|
-
const value = theme.breakpoints.values[breakpoint];
|
|
16
|
+
var _styled = _interopRequireDefault(require("../styles/styled"));
|
|
81
17
|
|
|
82
|
-
|
|
83
|
-
acc[theme.breakpoints.up(breakpoint)] = {
|
|
84
|
-
maxWidth: `${value}${theme.breakpoints.unit}`
|
|
85
|
-
};
|
|
86
|
-
}
|
|
18
|
+
var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
|
|
87
19
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
|
|
102
|
-
const props = (0, _useThemeProps.default)({
|
|
20
|
+
/* eslint-disable material-ui/mui-name-matches-component-name */
|
|
21
|
+
const Container = (0, _system.createContainer)({
|
|
22
|
+
createStyledComponent: (0, _styled.default)('div', {
|
|
23
|
+
name: 'MuiContainer',
|
|
24
|
+
slot: 'Root',
|
|
25
|
+
overridesResolver: (props, styles) => {
|
|
26
|
+
const {
|
|
27
|
+
ownerState
|
|
28
|
+
} = props;
|
|
29
|
+
return [styles.root, styles[`maxWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
|
30
|
+
}
|
|
31
|
+
}),
|
|
32
|
+
useThemeProps: inProps => (0, _useThemeProps.default)({
|
|
103
33
|
props: inProps,
|
|
104
34
|
name: 'MuiContainer'
|
|
105
|
-
})
|
|
106
|
-
const {
|
|
107
|
-
className,
|
|
108
|
-
component = 'div',
|
|
109
|
-
disableGutters = false,
|
|
110
|
-
fixed = false,
|
|
111
|
-
maxWidth = 'lg'
|
|
112
|
-
} = props,
|
|
113
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
114
|
-
const ownerState = (0, _extends2.default)({}, props, {
|
|
115
|
-
component,
|
|
116
|
-
disableGutters,
|
|
117
|
-
fixed,
|
|
118
|
-
maxWidth
|
|
119
|
-
});
|
|
120
|
-
const classes = useUtilityClasses(ownerState);
|
|
121
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ContainerRoot, (0, _extends2.default)({
|
|
122
|
-
as: component,
|
|
123
|
-
ownerState: ownerState,
|
|
124
|
-
className: (0, _clsx.default)(classes.root, className),
|
|
125
|
-
ref: ref
|
|
126
|
-
}, other));
|
|
35
|
+
})
|
|
127
36
|
});
|
|
128
37
|
process.env.NODE_ENV !== "production" ? Container.propTypes
|
|
129
38
|
/* remove-proptypes */
|
|
@@ -143,11 +52,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
|
|
|
143
52
|
*/
|
|
144
53
|
classes: _propTypes.default.object,
|
|
145
54
|
|
|
146
|
-
/**
|
|
147
|
-
* @ignore
|
|
148
|
-
*/
|
|
149
|
-
className: _propTypes.default.string,
|
|
150
|
-
|
|
151
55
|
/**
|
|
152
56
|
* The component used for the root node.
|
|
153
57
|
* Either a string to use a HTML element or a component.
|
|
@@ -40,12 +40,12 @@ const html = (theme, enableColorScheme) => (0, _extends2.default)({
|
|
|
40
40
|
exports.html = html;
|
|
41
41
|
|
|
42
42
|
const body = theme => (0, _extends2.default)({
|
|
43
|
-
color: theme.palette.text.primary
|
|
43
|
+
color: (theme.vars || theme).palette.text.primary
|
|
44
44
|
}, theme.typography.body1, {
|
|
45
|
-
backgroundColor: theme.palette.background.default,
|
|
45
|
+
backgroundColor: (theme.vars || theme).palette.background.default,
|
|
46
46
|
'@media print': {
|
|
47
47
|
// Save printer ink.
|
|
48
|
-
backgroundColor: theme.palette.common.white
|
|
48
|
+
backgroundColor: (theme.vars || theme).palette.common.white
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -68,7 +68,7 @@ const styles = (theme, enableColorScheme = false) => {
|
|
|
68
68
|
// Add support for document.body.requestFullScreen().
|
|
69
69
|
// Other elements, if background transparent, are not supported.
|
|
70
70
|
'&::backdrop': {
|
|
71
|
-
backgroundColor: theme.palette.background.default
|
|
71
|
+
backgroundColor: (theme.vars || theme).palette.background.default
|
|
72
72
|
}
|
|
73
73
|
})
|
|
74
74
|
};
|
|
@@ -66,8 +66,8 @@ const DialogContentRoot = (0, _styled.default)('div', {
|
|
|
66
66
|
padding: '20px 24px'
|
|
67
67
|
}, ownerState.dividers ? {
|
|
68
68
|
padding: '16px 24px',
|
|
69
|
-
borderTop: `1px solid ${theme.palette.divider}`,
|
|
70
|
-
borderBottom: `1px solid ${theme.palette.divider}`
|
|
69
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
70
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
71
71
|
} : {
|
|
72
72
|
[`.${_dialogTitleClasses.default.root} + &`]: {
|
|
73
73
|
paddingTop: 0
|
package/node/Divider/Divider.js
CHANGED
|
@@ -71,7 +71,7 @@ const DividerRoot = (0, _styled.default)('div', {
|
|
|
71
71
|
flexShrink: 0,
|
|
72
72
|
borderWidth: 0,
|
|
73
73
|
borderStyle: 'solid',
|
|
74
|
-
borderColor: theme.palette.divider,
|
|
74
|
+
borderColor: (theme.vars || theme).palette.divider,
|
|
75
75
|
borderBottomWidth: 'thin'
|
|
76
76
|
}, ownerState.absolute && {
|
|
77
77
|
position: 'absolute',
|
|
@@ -79,7 +79,7 @@ const DividerRoot = (0, _styled.default)('div', {
|
|
|
79
79
|
left: 0,
|
|
80
80
|
width: '100%'
|
|
81
81
|
}, ownerState.light && {
|
|
82
|
-
borderColor: (0, _system.alpha)(theme.palette.divider, 0.08)
|
|
82
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : (0, _system.alpha)(theme.palette.divider, 0.08)
|
|
83
83
|
}, ownerState.variant === 'inset' && {
|
|
84
84
|
marginLeft: 72
|
|
85
85
|
}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
|
|
@@ -106,7 +106,7 @@ const DividerRoot = (0, _styled.default)('div', {
|
|
|
106
106
|
'&::before, &::after': {
|
|
107
107
|
position: 'relative',
|
|
108
108
|
width: '100%',
|
|
109
|
-
borderTop: `thin solid ${theme.palette.divider}`,
|
|
109
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
110
110
|
top: '50%',
|
|
111
111
|
content: '""',
|
|
112
112
|
transform: 'translateY(50%)'
|
|
@@ -121,7 +121,7 @@ const DividerRoot = (0, _styled.default)('div', {
|
|
|
121
121
|
top: '0%',
|
|
122
122
|
left: '50%',
|
|
123
123
|
borderTop: 0,
|
|
124
|
-
borderLeft: `thin solid ${theme.palette.divider}`,
|
|
124
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
125
125
|
transform: 'translateX(0%)'
|
|
126
126
|
}
|
|
127
127
|
}), ({
|
package/node/Drawer/Drawer.js
CHANGED
|
@@ -77,7 +77,7 @@ const DrawerRoot = (0, _styled.default)(_Modal.default, {
|
|
|
77
77
|
})(({
|
|
78
78
|
theme
|
|
79
79
|
}) => ({
|
|
80
|
-
zIndex: theme.zIndex.drawer
|
|
80
|
+
zIndex: (theme.vars || theme).zIndex.drawer
|
|
81
81
|
}));
|
|
82
82
|
const DrawerDockedRoot = (0, _styled.default)('div', {
|
|
83
83
|
shouldForwardProp: _styled.rootShouldForwardProp,
|
|
@@ -106,7 +106,7 @@ const DrawerPaper = (0, _styled.default)(_Paper.default, {
|
|
|
106
106
|
flexDirection: 'column',
|
|
107
107
|
height: '100%',
|
|
108
108
|
flex: '1 0 auto',
|
|
109
|
-
zIndex: theme.zIndex.drawer,
|
|
109
|
+
zIndex: (theme.vars || theme).zIndex.drawer,
|
|
110
110
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
111
111
|
WebkitOverflowScrolling: 'touch',
|
|
112
112
|
// temporary style
|
|
@@ -134,13 +134,13 @@ const DrawerPaper = (0, _styled.default)(_Paper.default, {
|
|
|
134
134
|
height: 'auto',
|
|
135
135
|
maxHeight: '100%'
|
|
136
136
|
}, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
|
|
137
|
-
borderRight: `1px solid ${theme.palette.divider}`
|
|
137
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
138
138
|
}, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
|
|
139
|
-
borderBottom: `1px solid ${theme.palette.divider}`
|
|
139
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
140
140
|
}, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
|
|
141
|
-
borderLeft: `1px solid ${theme.palette.divider}`
|
|
141
|
+
borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
142
142
|
}, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
|
|
143
|
-
borderTop: `1px solid ${theme.palette.divider}`
|
|
143
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
144
144
|
}));
|
|
145
145
|
const oppositeDirection = {
|
|
146
146
|
left: 'right',
|
package/node/Fab/Fab.js
CHANGED
|
@@ -62,77 +62,81 @@ const FabRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
62
62
|
})(({
|
|
63
63
|
theme,
|
|
64
64
|
ownerState
|
|
65
|
-
}) =>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
'&:hover': {
|
|
83
|
-
backgroundColor: theme.palette.grey.A100,
|
|
84
|
-
// Reset on touch devices, it doesn't add specificity
|
|
85
|
-
'@media (hover: none)': {
|
|
86
|
-
backgroundColor: theme.palette.grey[300]
|
|
65
|
+
}) => {
|
|
66
|
+
var _theme$palette$getCon, _theme$palette;
|
|
67
|
+
|
|
68
|
+
return (0, _extends2.default)({}, theme.typography.button, {
|
|
69
|
+
minHeight: 36,
|
|
70
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
71
|
+
duration: theme.transitions.duration.short
|
|
72
|
+
}),
|
|
73
|
+
borderRadius: '50%',
|
|
74
|
+
padding: 0,
|
|
75
|
+
minWidth: 0,
|
|
76
|
+
width: 56,
|
|
77
|
+
height: 56,
|
|
78
|
+
zIndex: (theme.vars || theme).zIndex.fab,
|
|
79
|
+
boxShadow: (theme.vars || theme).shadows[6],
|
|
80
|
+
'&:active': {
|
|
81
|
+
boxShadow: (theme.vars || theme).shadows[12]
|
|
87
82
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
83
|
+
color: theme.vars ? theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
84
|
+
backgroundColor: (theme.vars || theme).palette.grey[300],
|
|
85
|
+
'&:hover': {
|
|
86
|
+
backgroundColor: (theme.vars || theme).palette.grey.A100,
|
|
87
|
+
// Reset on touch devices, it doesn't add specificity
|
|
88
|
+
'@media (hover: none)': {
|
|
89
|
+
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
90
|
+
},
|
|
91
|
+
textDecoration: 'none'
|
|
92
|
+
},
|
|
93
|
+
[`&.${_fabClasses.default.focusVisible}`]: {
|
|
94
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
95
|
+
},
|
|
96
|
+
[`&.${_fabClasses.default.disabled}`]: {
|
|
97
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
98
|
+
boxShadow: (theme.vars || theme).shadows[0],
|
|
99
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
100
|
+
}
|
|
101
|
+
}, ownerState.size === 'small' && {
|
|
102
|
+
width: 40,
|
|
103
|
+
height: 40
|
|
104
|
+
}, ownerState.size === 'medium' && {
|
|
105
|
+
width: 48,
|
|
106
|
+
height: 48
|
|
107
|
+
}, ownerState.variant === 'extended' && {
|
|
108
|
+
borderRadius: 48 / 2,
|
|
109
|
+
padding: '0 16px',
|
|
110
|
+
width: 'auto',
|
|
111
|
+
minHeight: 'auto',
|
|
112
|
+
minWidth: 48,
|
|
113
|
+
height: 48
|
|
114
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'small' && {
|
|
115
|
+
width: 'auto',
|
|
116
|
+
padding: '0 8px',
|
|
117
|
+
borderRadius: 34 / 2,
|
|
118
|
+
minWidth: 34,
|
|
119
|
+
height: 34
|
|
120
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
|
|
121
|
+
width: 'auto',
|
|
122
|
+
padding: '0 16px',
|
|
123
|
+
borderRadius: 40 / 2,
|
|
124
|
+
minWidth: 40,
|
|
125
|
+
height: 40
|
|
126
|
+
}, ownerState.color === 'inherit' && {
|
|
127
|
+
color: 'inherit'
|
|
128
|
+
});
|
|
129
|
+
}, ({
|
|
126
130
|
theme,
|
|
127
131
|
ownerState
|
|
128
|
-
}) => (0, _extends2.default)({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
|
|
129
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
130
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
132
|
+
}) => (0, _extends2.default)({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
|
|
133
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
134
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
131
135
|
'&:hover': {
|
|
132
|
-
backgroundColor: theme.palette[ownerState.color].dark,
|
|
136
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
133
137
|
// Reset on touch devices, it doesn't add specificity
|
|
134
138
|
'@media (hover: none)': {
|
|
135
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
139
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
136
140
|
}
|
|
137
141
|
}
|
|
138
142
|
}));
|
|
@@ -203,7 +207,9 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
|
|
|
203
207
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
204
208
|
* @default 'default'
|
|
205
209
|
*/
|
|
206
|
-
color: _propTypes.default
|
|
210
|
+
color: _propTypes.default
|
|
211
|
+
/* @typescript-to-proptypes-ignore */
|
|
212
|
+
.oneOfType([_propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
|
|
207
213
|
|
|
208
214
|
/**
|
|
209
215
|
* The component used for the root node.
|
|
@@ -98,7 +98,7 @@ const FormControlLabelRoot = (0, _styled.default)('label', {
|
|
|
98
98
|
}, {
|
|
99
99
|
[`& .${_formControlLabelClasses.default.label}`]: {
|
|
100
100
|
[`&.${_formControlLabelClasses.default.disabled}`]: {
|
|
101
|
-
color: theme.palette.text.disabled
|
|
101
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}));
|
|
@@ -71,7 +71,7 @@ const FormHelperTextRoot = (0, _styled.default)('p', {
|
|
|
71
71
|
theme,
|
|
72
72
|
ownerState
|
|
73
73
|
}) => (0, _extends2.default)({
|
|
74
|
-
color: theme.palette.text.secondary
|
|
74
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
75
75
|
}, theme.typography.caption, {
|
|
76
76
|
textAlign: 'left',
|
|
77
77
|
marginTop: 3,
|
|
@@ -79,10 +79,10 @@ const FormHelperTextRoot = (0, _styled.default)('p', {
|
|
|
79
79
|
marginBottom: 0,
|
|
80
80
|
marginLeft: 0,
|
|
81
81
|
[`&.${_formHelperTextClasses.default.disabled}`]: {
|
|
82
|
-
color: theme.palette.text.disabled
|
|
82
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
83
83
|
},
|
|
84
84
|
[`&.${_formHelperTextClasses.default.error}`]: {
|
|
85
|
-
color: theme.palette.error.main
|
|
85
|
+
color: (theme.vars || theme).palette.error.main
|
|
86
86
|
}
|
|
87
87
|
}, ownerState.size === 'small' && {
|
|
88
88
|
marginTop: 4
|
|
@@ -68,19 +68,19 @@ const FormLabelRoot = (0, _styled.default)('label', {
|
|
|
68
68
|
theme,
|
|
69
69
|
ownerState
|
|
70
70
|
}) => (0, _extends2.default)({
|
|
71
|
-
color: theme.palette.text.secondary
|
|
71
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
72
72
|
}, theme.typography.body1, {
|
|
73
73
|
lineHeight: '1.4375em',
|
|
74
74
|
padding: 0,
|
|
75
75
|
position: 'relative',
|
|
76
76
|
[`&.${_formLabelClasses.default.focused}`]: {
|
|
77
|
-
color: theme.palette[ownerState.color].main
|
|
77
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
78
78
|
},
|
|
79
79
|
[`&.${_formLabelClasses.default.disabled}`]: {
|
|
80
|
-
color: theme.palette.text.disabled
|
|
80
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
81
81
|
},
|
|
82
82
|
[`&.${_formLabelClasses.default.error}`]: {
|
|
83
|
-
color: theme.palette.error.main
|
|
83
|
+
color: (theme.vars || theme).palette.error.main
|
|
84
84
|
}
|
|
85
85
|
}));
|
|
86
86
|
exports.FormLabelRoot = FormLabelRoot;
|
|
@@ -92,7 +92,7 @@ const AsteriskComponent = (0, _styled.default)('span', {
|
|
|
92
92
|
theme
|
|
93
93
|
}) => ({
|
|
94
94
|
[`&.${_formLabelClasses.default.error}`]: {
|
|
95
|
-
color: theme.palette.error.main
|
|
95
|
+
color: (theme.vars || theme).palette.error.main
|
|
96
96
|
}
|
|
97
97
|
}));
|
|
98
98
|
const FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
|
package/node/Icon/Icon.js
CHANGED
|
@@ -79,14 +79,14 @@ const IconRoot = (0, _styled.default)('span', {
|
|
|
79
79
|
}[ownerState.fontSize],
|
|
80
80
|
// TODO v5 deprecate, v6 remove for sx
|
|
81
81
|
color: {
|
|
82
|
-
primary: theme.palette.primary.main,
|
|
83
|
-
secondary: theme.palette.secondary.main,
|
|
84
|
-
info: theme.palette.info.main,
|
|
85
|
-
success: theme.palette.success.main,
|
|
86
|
-
warning: theme.palette.warning.main,
|
|
87
|
-
action: theme.palette.action.active,
|
|
88
|
-
error: theme.palette.error.main,
|
|
89
|
-
disabled: theme.palette.action.disabled,
|
|
82
|
+
primary: (theme.vars || theme).palette.primary.main,
|
|
83
|
+
secondary: (theme.vars || theme).palette.secondary.main,
|
|
84
|
+
info: (theme.vars || theme).palette.info.main,
|
|
85
|
+
success: (theme.vars || theme).palette.success.main,
|
|
86
|
+
warning: (theme.vars || theme).palette.warning.main,
|
|
87
|
+
action: (theme.vars || theme).palette.action.active,
|
|
88
|
+
error: (theme.vars || theme).palette.error.main,
|
|
89
|
+
disabled: (theme.vars || theme).palette.action.disabled,
|
|
90
90
|
inherit: undefined
|
|
91
91
|
}[ownerState.color]
|
|
92
92
|
}));
|
|
@@ -75,13 +75,13 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
75
75
|
borderRadius: '50%',
|
|
76
76
|
overflow: 'visible',
|
|
77
77
|
// Explicitly set the default value to solve a bug on IE11.
|
|
78
|
-
color: theme.palette.action.active,
|
|
78
|
+
color: (theme.vars || theme).palette.action.active,
|
|
79
79
|
transition: theme.transitions.create('background-color', {
|
|
80
80
|
duration: theme.transitions.duration.shortest
|
|
81
81
|
})
|
|
82
82
|
}, !ownerState.disableRipple && {
|
|
83
83
|
'&:hover': {
|
|
84
|
-
backgroundColor: (0, _system.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
84
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
|
|
85
85
|
// Reset on touch devices, it doesn't add specificity
|
|
86
86
|
'@media (hover: none)': {
|
|
87
87
|
backgroundColor: 'transparent'
|
|
@@ -97,10 +97,10 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
97
97
|
}) => (0, _extends2.default)({}, ownerState.color === 'inherit' && {
|
|
98
98
|
color: 'inherit'
|
|
99
99
|
}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (0, _extends2.default)({
|
|
100
|
-
color: theme.palette[ownerState.color].main
|
|
100
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
101
101
|
}, !ownerState.disableRipple && {
|
|
102
102
|
'&:hover': {
|
|
103
|
-
backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
103
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
|
104
104
|
// Reset on touch devices, it doesn't add specificity
|
|
105
105
|
'@media (hover: none)': {
|
|
106
106
|
backgroundColor: 'transparent'
|
|
@@ -115,7 +115,7 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
115
115
|
}, {
|
|
116
116
|
[`&.${_iconButtonClasses.default.disabled}`]: {
|
|
117
117
|
backgroundColor: 'transparent',
|
|
118
|
-
color: theme.palette.action.disabled
|
|
118
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
119
119
|
}
|
|
120
120
|
}));
|
|
121
121
|
/**
|
|
@@ -99,7 +99,7 @@ const ImageListItemBarTitleWrap = (0, _styled.default)('div', {
|
|
|
99
99
|
return (0, _extends2.default)({
|
|
100
100
|
flexGrow: 1,
|
|
101
101
|
padding: '12px 16px',
|
|
102
|
-
color: theme.palette.common.white,
|
|
102
|
+
color: (theme.vars || theme).palette.common.white,
|
|
103
103
|
overflow: 'hidden'
|
|
104
104
|
}, ownerState.position === 'below' && {
|
|
105
105
|
padding: '6px 0 12px',
|
package/node/Input/Input.js
CHANGED
|
@@ -65,7 +65,12 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
65
65
|
ownerState
|
|
66
66
|
}) => {
|
|
67
67
|
const light = theme.palette.mode === 'light';
|
|
68
|
-
|
|
68
|
+
let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
69
|
+
|
|
70
|
+
if (theme.vars) {
|
|
71
|
+
bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})`;
|
|
72
|
+
}
|
|
73
|
+
|
|
69
74
|
return (0, _extends2.default)({
|
|
70
75
|
position: 'relative'
|
|
71
76
|
}, ownerState.formControl && {
|
|
@@ -74,7 +79,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
74
79
|
}
|
|
75
80
|
}, !ownerState.disableUnderline && {
|
|
76
81
|
'&:after': {
|
|
77
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
|
|
82
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
|
78
83
|
left: 0,
|
|
79
84
|
bottom: 0,
|
|
80
85
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -95,7 +100,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
95
100
|
transform: 'scaleX(1) translateX(0)'
|
|
96
101
|
},
|
|
97
102
|
[`&.${_inputClasses.default.error}:after`]: {
|
|
98
|
-
borderBottomColor: theme.palette.error.main,
|
|
103
|
+
borderBottomColor: (theme.vars || theme).palette.error.main,
|
|
99
104
|
transform: 'scaleX(1)' // error is always underlined in red
|
|
100
105
|
|
|
101
106
|
},
|
|
@@ -114,7 +119,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
|
|
|
114
119
|
|
|
115
120
|
},
|
|
116
121
|
[`&:hover:not(.${_inputClasses.default.disabled}):before`]: {
|
|
117
|
-
borderBottom: `2px solid ${theme.palette.text.primary}`,
|
|
122
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
|
|
118
123
|
// Reset on touch devices, it doesn't add specificity
|
|
119
124
|
'@media (hover: none)': {
|
|
120
125
|
borderBottom: `1px solid ${bottomLineColor}`
|
|
@@ -79,7 +79,7 @@ const InputAdornmentRoot = (0, _styled.default)('div', {
|
|
|
79
79
|
maxHeight: '2em',
|
|
80
80
|
alignItems: 'center',
|
|
81
81
|
whiteSpace: 'nowrap',
|
|
82
|
-
color: theme.palette.action.active
|
|
82
|
+
color: (theme.vars || theme).palette.action.active
|
|
83
83
|
}, ownerState.variant === 'filled' && {
|
|
84
84
|
// Styles applied to the root element if `variant="filled"`.
|
|
85
85
|
[`&.${_inputAdornmentClasses.default.positionStart}&:not(.${_inputAdornmentClasses.default.hiddenLabel})`]: {
|