@mui/material 5.6.3 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.js +6 -6
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/AccordionSummary.js +3 -3
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +23 -1
- package/Autocomplete/Autocomplete.js +18 -16
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.js +2 -2
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +1 -34
- package/Badge/Badge.js +2 -2
- package/Badge/badgeClasses.d.ts +56 -24
- package/BottomNavigation/BottomNavigation.js +1 -1
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Box/Box.js +1 -1
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +76 -76
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroup.js +10 -10
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +238 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/CardActionArea.js +2 -2
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- package/CircularProgress/CircularProgress.js +1 -1
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/Container.js +17 -106
- package/Container/containerClasses.d.ts +6 -22
- package/CssBaseline/CssBaseline.js +4 -4
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/DialogContent.js +2 -2
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/Divider.js +4 -4
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/Drawer.js +6 -6
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/Fab.js +69 -65
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +3 -1
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.js +1 -1
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/FormHelperText.js +3 -3
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/FormLabel.js +5 -5
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/Icon.js +8 -8
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/IconButton.js +5 -5
- package/IconButton/iconButtonClasses.d.ts +26 -26
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/ImageListItemBar.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +9 -4
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/InputAdornment.js +1 -1
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.js +16 -8
- package/InputBase/inputBaseClasses.d.ts +44 -44
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/Link.js +3 -8
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/ListItem.js +8 -8
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +8 -8
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/ListSubheader.js +3 -3
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.js +8 -8
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/MobileStepper.js +5 -5
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.js +1 -1
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.js +27 -27
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +2 -3
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/Rating.js +2 -2
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Snackbar/Snackbar.js +1 -1
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/SpeedDial.js +1 -1
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/StepIcon.js +5 -5
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/StepLabel.js +4 -4
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -0
- package/Stepper/StepperContext.js +10 -2
- package/Stepper/index.d.ts +3 -0
- package/Stepper/index.js +3 -1
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +4 -4
- package/SvgIcon/svgIconClasses.d.ts +24 -24
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/Tab.js +7 -7
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/Table.js +1 -1
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/TablePagination.js +1 -1
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/TableRow.js +3 -3
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/TableSortLabel.js +4 -4
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.d.ts +1 -1
- package/Tabs/Tabs.js +2 -2
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/ToggleButton.js +17 -10
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +5 -5
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -8
- package/className/index.js +1 -8
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Accordion/Accordion.js +6 -6
- package/legacy/AccordionSummary/AccordionSummary.js +3 -3
- package/legacy/Autocomplete/Autocomplete.js +18 -16
- package/legacy/AvatarGroup/AvatarGroup.js +2 -2
- package/legacy/Badge/Badge.js +2 -2
- package/legacy/BottomNavigation/BottomNavigation.js +1 -1
- package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/legacy/Box/Box.js +1 -1
- package/legacy/ButtonGroup/ButtonGroup.js +10 -10
- package/legacy/CardActionArea/CardActionArea.js +2 -2
- package/legacy/CircularProgress/CircularProgress.js +1 -1
- package/legacy/Container/Container.js +18 -103
- package/legacy/CssBaseline/CssBaseline.js +4 -4
- package/legacy/DialogContent/DialogContent.js +2 -2
- package/legacy/Divider/Divider.js +4 -4
- package/legacy/Drawer/Drawer.js +6 -6
- package/legacy/Fab/Fab.js +17 -17
- package/legacy/FilledInput/FilledInput.js +2 -2
- package/legacy/FormControlLabel/FormControlLabel.js +1 -1
- package/legacy/FormHelperText/FormHelperText.js +3 -3
- package/legacy/FormLabel/FormLabel.js +5 -5
- package/legacy/Icon/Icon.js +8 -8
- package/legacy/IconButton/IconButton.js +5 -5
- package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
- package/legacy/Input/Input.js +8 -3
- package/legacy/InputAdornment/InputAdornment.js +1 -1
- package/legacy/InputBase/InputBase.js +16 -8
- package/legacy/Link/Link.js +3 -9
- package/legacy/ListItem/ListItem.js +8 -8
- package/legacy/ListItemButton/ListItemButton.js +8 -8
- package/legacy/ListItemIcon/ListItemIcon.js +1 -1
- package/legacy/ListSubheader/ListSubheader.js +3 -3
- package/legacy/MenuItem/MenuItem.js +8 -8
- package/legacy/MobileStepper/MobileStepper.js +5 -5
- package/legacy/Modal/Modal.js +1 -1
- package/legacy/PaginationItem/PaginationItem.js +27 -27
- package/legacy/Rating/Rating.js +2 -2
- package/legacy/Snackbar/Snackbar.js +1 -1
- package/legacy/SpeedDial/SpeedDial.js +1 -1
- package/legacy/StepIcon/StepIcon.js +5 -5
- package/legacy/StepLabel/StepLabel.js +4 -4
- package/legacy/Stepper/StepperContext.js +10 -2
- package/legacy/Stepper/index.js +3 -1
- package/legacy/SvgIcon/SvgIcon.js +4 -4
- package/legacy/Tab/Tab.js +7 -7
- package/legacy/Table/Table.js +1 -1
- package/legacy/TablePagination/TablePagination.js +1 -1
- package/legacy/TableRow/TableRow.js +3 -3
- package/legacy/TableSortLabel/TableSortLabel.js +4 -4
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/ToggleButton/ToggleButton.js +16 -9
- package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/legacy/Tooltip/Tooltip.js +5 -5
- package/legacy/className/index.js +1 -8
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +23 -23
- package/legacy/styles/createMixins.js +1 -1
- package/legacy/styles/createPalette.js +2 -1
- package/legacy/styles/createTheme.js +1 -1
- package/legacy/styles/experimental_extendTheme.js +52 -43
- package/locale/index.d.ts +71 -71
- package/locale/index.js +23 -23
- package/modern/Accordion/Accordion.js +6 -6
- package/modern/AccordionSummary/AccordionSummary.js +3 -3
- package/modern/Autocomplete/Autocomplete.js +18 -16
- package/modern/AvatarGroup/AvatarGroup.js +2 -2
- package/modern/Badge/Badge.js +2 -2
- package/modern/BottomNavigation/BottomNavigation.js +1 -1
- package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/modern/Box/Box.js +1 -1
- package/modern/ButtonGroup/ButtonGroup.js +10 -10
- package/modern/CardActionArea/CardActionArea.js +2 -2
- package/modern/CircularProgress/CircularProgress.js +1 -1
- package/modern/Container/Container.js +17 -106
- package/modern/CssBaseline/CssBaseline.js +4 -4
- package/modern/DialogContent/DialogContent.js +2 -2
- package/modern/Divider/Divider.js +4 -4
- package/modern/Drawer/Drawer.js +6 -6
- package/modern/Fab/Fab.js +16 -16
- package/modern/FilledInput/FilledInput.js +1 -1
- package/modern/FormControlLabel/FormControlLabel.js +1 -1
- package/modern/FormHelperText/FormHelperText.js +3 -3
- package/modern/FormLabel/FormLabel.js +5 -5
- package/modern/Icon/Icon.js +8 -8
- package/modern/IconButton/IconButton.js +5 -5
- package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
- package/modern/Input/Input.js +9 -4
- package/modern/InputAdornment/InputAdornment.js +1 -1
- package/modern/InputBase/InputBase.js +16 -8
- package/modern/Link/Link.js +3 -8
- package/modern/ListItem/ListItem.js +8 -8
- package/modern/ListItemButton/ListItemButton.js +8 -8
- package/modern/ListItemIcon/ListItemIcon.js +1 -1
- package/modern/ListSubheader/ListSubheader.js +3 -3
- package/modern/MenuItem/MenuItem.js +8 -8
- package/modern/MobileStepper/MobileStepper.js +5 -5
- package/modern/Modal/Modal.js +1 -1
- package/modern/PaginationItem/PaginationItem.js +27 -27
- package/modern/Rating/Rating.js +2 -2
- package/modern/Snackbar/Snackbar.js +1 -1
- package/modern/SpeedDial/SpeedDial.js +1 -1
- package/modern/StepIcon/StepIcon.js +5 -5
- package/modern/StepLabel/StepLabel.js +4 -4
- package/modern/Stepper/StepperContext.js +10 -2
- package/modern/Stepper/index.js +3 -1
- package/modern/SvgIcon/SvgIcon.js +3 -3
- package/modern/Tab/Tab.js +7 -7
- package/modern/Table/Table.js +1 -1
- package/modern/TablePagination/TablePagination.js +1 -1
- package/modern/TableRow/TableRow.js +3 -3
- package/modern/TableSortLabel/TableSortLabel.js +4 -4
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/ToggleButton/ToggleButton.js +17 -10
- package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/modern/Tooltip/Tooltip.js +5 -5
- package/modern/className/index.js +1 -8
- package/modern/index.js +1 -1
- package/modern/locale/index.js +23 -23
- package/modern/styles/createMixins.js +1 -1
- package/modern/styles/createPalette.js +2 -1
- package/modern/styles/createTheme.js +1 -1
- package/modern/styles/experimental_extendTheme.js +56 -45
- package/node/Accordion/Accordion.js +6 -6
- package/node/AccordionSummary/AccordionSummary.js +3 -3
- package/node/Autocomplete/Autocomplete.js +19 -16
- package/node/AvatarGroup/AvatarGroup.js +2 -2
- package/node/Badge/Badge.js +2 -2
- package/node/BottomNavigation/BottomNavigation.js +1 -1
- package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
- package/node/Box/Box.js +2 -2
- package/node/ButtonGroup/ButtonGroup.js +10 -10
- package/node/CardActionArea/CardActionArea.js +2 -2
- package/node/CircularProgress/CircularProgress.js +1 -1
- package/node/Container/Container.js +17 -113
- package/node/CssBaseline/CssBaseline.js +4 -4
- package/node/DialogContent/DialogContent.js +2 -2
- package/node/Divider/Divider.js +4 -4
- package/node/Drawer/Drawer.js +6 -6
- package/node/Fab/Fab.js +69 -65
- package/node/FilledInput/FilledInput.js +3 -1
- package/node/FormControlLabel/FormControlLabel.js +1 -1
- package/node/FormHelperText/FormHelperText.js +3 -3
- package/node/FormLabel/FormLabel.js +5 -5
- package/node/Icon/Icon.js +8 -8
- package/node/IconButton/IconButton.js +5 -5
- package/node/ImageListItemBar/ImageListItemBar.js +1 -1
- package/node/Input/Input.js +9 -4
- package/node/InputAdornment/InputAdornment.js +1 -1
- package/node/InputBase/InputBase.js +14 -8
- package/node/Link/Link.js +3 -9
- package/node/ListItem/ListItem.js +8 -8
- package/node/ListItemButton/ListItemButton.js +8 -8
- package/node/ListItemIcon/ListItemIcon.js +1 -1
- package/node/ListSubheader/ListSubheader.js +3 -3
- package/node/MenuItem/MenuItem.js +8 -8
- package/node/MobileStepper/MobileStepper.js +5 -5
- package/node/Modal/Modal.js +1 -1
- package/node/PaginationItem/PaginationItem.js +27 -27
- package/node/Rating/Rating.js +2 -2
- package/node/Snackbar/Snackbar.js +1 -1
- package/node/SpeedDial/SpeedDial.js +1 -1
- package/node/StepIcon/StepIcon.js +5 -5
- package/node/StepLabel/StepLabel.js +4 -4
- package/node/Stepper/StepperContext.js +11 -1
- package/node/Stepper/index.js +22 -1
- package/node/SvgIcon/SvgIcon.js +4 -4
- package/node/Tab/Tab.js +7 -7
- package/node/Table/Table.js +1 -1
- package/node/TablePagination/TablePagination.js +1 -1
- package/node/TableRow/TableRow.js +3 -3
- package/node/TableSortLabel/TableSortLabel.js +4 -4
- package/node/Tabs/Tabs.js +2 -2
- package/node/ToggleButton/ToggleButton.js +17 -10
- package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/node/Tooltip/Tooltip.js +5 -5
- package/node/className/index.js +2 -2
- package/node/index.js +1 -1
- package/node/locale/index.js +23 -23
- package/node/styles/createMixins.js +1 -1
- package/node/styles/createPalette.js +2 -1
- package/node/styles/createTheme.js +1 -1
- package/node/styles/experimental_extendTheme.js +57 -47
- package/package.json +5 -5
- package/styles/ThemeProvider.d.ts +1 -1
- package/styles/createMixins.d.ts +2 -6
- package/styles/createMixins.js +1 -1
- package/styles/createPalette.d.ts +9 -2
- package/styles/createPalette.js +2 -1
- package/styles/createTheme.js +1 -1
- package/styles/experimental_extendTheme.d.ts +13 -16
- package/styles/experimental_extendTheme.js +57 -46
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +915 -767
- package/umd/material-ui.production.min.js +19 -19
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
|
@@ -277,7 +277,7 @@ const AutocompletePopper = (0, _styled.default)(_Popper.default, {
|
|
|
277
277
|
theme,
|
|
278
278
|
ownerState
|
|
279
279
|
}) => (0, _extends2.default)({
|
|
280
|
-
zIndex: theme.zIndex.modal
|
|
280
|
+
zIndex: (theme.vars || theme).zIndex.modal
|
|
281
281
|
}, ownerState.disablePortal && {
|
|
282
282
|
position: 'absolute'
|
|
283
283
|
}));
|
|
@@ -297,7 +297,7 @@ const AutocompleteLoading = (0, _styled.default)('div', {
|
|
|
297
297
|
})(({
|
|
298
298
|
theme
|
|
299
299
|
}) => ({
|
|
300
|
-
color: theme.palette.text.secondary,
|
|
300
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
301
301
|
padding: '14px 16px'
|
|
302
302
|
}));
|
|
303
303
|
const AutocompleteNoOptions = (0, _styled.default)('div', {
|
|
@@ -307,7 +307,7 @@ const AutocompleteNoOptions = (0, _styled.default)('div', {
|
|
|
307
307
|
})(({
|
|
308
308
|
theme
|
|
309
309
|
}) => ({
|
|
310
|
-
color: theme.palette.text.secondary,
|
|
310
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
311
311
|
padding: '14px 16px'
|
|
312
312
|
}));
|
|
313
313
|
const AutocompleteListbox = (0, _styled.default)('div', {
|
|
@@ -340,30 +340,30 @@ const AutocompleteListbox = (0, _styled.default)('div', {
|
|
|
340
340
|
minHeight: 'auto'
|
|
341
341
|
},
|
|
342
342
|
[`&.${_autocompleteClasses.default.focused}`]: {
|
|
343
|
-
backgroundColor: theme.palette.action.hover,
|
|
343
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
344
344
|
// Reset on touch devices, it doesn't add specificity
|
|
345
345
|
'@media (hover: none)': {
|
|
346
346
|
backgroundColor: 'transparent'
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
349
|
'&[aria-disabled="true"]': {
|
|
350
|
-
opacity: theme.palette.action.disabledOpacity,
|
|
350
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
351
351
|
pointerEvents: 'none'
|
|
352
352
|
},
|
|
353
353
|
[`&.${_autocompleteClasses.default.focusVisible}`]: {
|
|
354
|
-
backgroundColor: theme.palette.action.focus
|
|
354
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
355
355
|
},
|
|
356
356
|
'&[aria-selected="true"]': {
|
|
357
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
357
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
358
358
|
[`&.${_autocompleteClasses.default.focused}`]: {
|
|
359
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
359
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
360
360
|
// Reset on touch devices, it doesn't add specificity
|
|
361
361
|
'@media (hover: none)': {
|
|
362
|
-
backgroundColor: theme.palette.action.selected
|
|
362
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
[`&.${_autocompleteClasses.default.focusVisible}`]: {
|
|
366
|
-
backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
366
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -375,7 +375,7 @@ const AutocompleteGroupLabel = (0, _styled.default)(_ListSubheader.default, {
|
|
|
375
375
|
})(({
|
|
376
376
|
theme
|
|
377
377
|
}) => ({
|
|
378
|
-
backgroundColor: theme.palette.background.paper,
|
|
378
|
+
backgroundColor: (theme.vars || theme).palette.background.paper,
|
|
379
379
|
top: -8
|
|
380
380
|
}));
|
|
381
381
|
const AutocompleteGroupUl = (0, _styled.default)('ul', {
|
|
@@ -478,7 +478,8 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
478
478
|
componentName: 'Autocomplete'
|
|
479
479
|
}));
|
|
480
480
|
const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
481
|
-
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
481
|
+
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
482
|
+
|
|
482
483
|
const ownerState = (0, _extends2.default)({}, props, {
|
|
483
484
|
disablePortal,
|
|
484
485
|
focused,
|
|
@@ -499,7 +500,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
499
500
|
}, getTagProps(params));
|
|
500
501
|
|
|
501
502
|
if (renderTags) {
|
|
502
|
-
startAdornment = renderTags(value, getCustomizedTagProps);
|
|
503
|
+
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
503
504
|
} else {
|
|
504
505
|
startAdornment = value.map((option, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Chip.default, (0, _extends2.default)({
|
|
505
506
|
label: getOptionLabel(option),
|
|
@@ -568,10 +569,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
568
569
|
fullWidth: true,
|
|
569
570
|
size: size === 'small' ? 'small' : undefined,
|
|
570
571
|
InputLabelProps: getInputLabelProps(),
|
|
571
|
-
InputProps: {
|
|
572
|
+
InputProps: (0, _extends2.default)({
|
|
572
573
|
ref: setAnchorEl,
|
|
573
574
|
className: classes.inputRoot,
|
|
574
|
-
startAdornment
|
|
575
|
+
startAdornment
|
|
576
|
+
}, (hasClearIcon || hasPopupIcon) && {
|
|
575
577
|
endAdornment: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AutocompleteEndAdornment, {
|
|
576
578
|
className: classes.endAdornment,
|
|
577
579
|
ownerState: ownerState,
|
|
@@ -591,7 +593,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
591
593
|
children: popupIcon
|
|
592
594
|
})) : null]
|
|
593
595
|
})
|
|
594
|
-
},
|
|
596
|
+
}),
|
|
595
597
|
inputProps: (0, _extends2.default)({
|
|
596
598
|
className: (0, _clsx.default)(classes.input),
|
|
597
599
|
disabled,
|
|
@@ -1075,6 +1077,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1075
1077
|
*
|
|
1076
1078
|
* @param {T[]} value The `value` provided to the component.
|
|
1077
1079
|
* @param {function} getTagProps A tag props getter.
|
|
1080
|
+
* @param {object} ownerState The state of the Autocomplete component.
|
|
1078
1081
|
* @returns {ReactNode}
|
|
1079
1082
|
*/
|
|
1080
1083
|
renderTags: _propTypes.default.func,
|
|
@@ -65,7 +65,7 @@ const AvatarGroupRoot = (0, _styled.default)('div', {
|
|
|
65
65
|
theme
|
|
66
66
|
}) => ({
|
|
67
67
|
[`& .${_Avatar.avatarClasses.root}`]: {
|
|
68
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
68
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
69
69
|
boxSizing: 'content-box',
|
|
70
70
|
marginLeft: -8,
|
|
71
71
|
'&:last-child': {
|
|
@@ -82,7 +82,7 @@ const AvatarGroupAvatar = (0, _styled.default)(_Avatar.default, {
|
|
|
82
82
|
})(({
|
|
83
83
|
theme
|
|
84
84
|
}) => ({
|
|
85
|
-
border: `2px solid ${theme.palette.background.default}`,
|
|
85
|
+
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
|
86
86
|
boxSizing: 'content-box',
|
|
87
87
|
marginLeft: -8,
|
|
88
88
|
'&:last-child': {
|
package/node/Badge/Badge.js
CHANGED
|
@@ -107,8 +107,8 @@ const BadgeBadge = (0, _styled.default)('span', {
|
|
|
107
107
|
duration: theme.transitions.duration.enteringScreen
|
|
108
108
|
})
|
|
109
109
|
}, ownerState.color !== 'default' && {
|
|
110
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
111
|
-
color: theme.palette[ownerState.color].contrastText
|
|
110
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
111
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
112
112
|
}, ownerState.variant === 'dot' && {
|
|
113
113
|
borderRadius: RADIUS_DOT,
|
|
114
114
|
height: RADIUS_DOT * 2,
|
|
@@ -55,7 +55,7 @@ const BottomNavigationRoot = (0, _styled.default)('div', {
|
|
|
55
55
|
display: 'flex',
|
|
56
56
|
justifyContent: 'center',
|
|
57
57
|
height: 56,
|
|
58
|
-
backgroundColor: theme.palette.background.paper
|
|
58
|
+
backgroundColor: (theme.vars || theme).palette.background.paper
|
|
59
59
|
}));
|
|
60
60
|
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
|
61
61
|
const props = (0, _useThemeProps.default)({
|
|
@@ -69,7 +69,7 @@ const BottomNavigationActionRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
69
69
|
padding: '0px 12px',
|
|
70
70
|
minWidth: 80,
|
|
71
71
|
maxWidth: 168,
|
|
72
|
-
color: theme.palette.text.secondary,
|
|
72
|
+
color: (theme.vars || theme).palette.text.secondary,
|
|
73
73
|
flexDirection: 'column',
|
|
74
74
|
flex: '1'
|
|
75
75
|
}, !ownerState.showLabel && !ownerState.selected && {
|
|
@@ -78,7 +78,7 @@ const BottomNavigationActionRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
78
78
|
paddingTop: 0
|
|
79
79
|
}, {
|
|
80
80
|
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
|
81
|
-
color: theme.palette.primary.main
|
|
81
|
+
color: (theme.vars || theme).palette.primary.main
|
|
82
82
|
}
|
|
83
83
|
}));
|
|
84
84
|
const BottomNavigationActionLabel = (0, _styled.default)('span', {
|
package/node/Box/Box.js
CHANGED
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
10
|
var _system = require("@mui/system");
|
|
13
11
|
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
14
|
var _className = require("../className");
|
|
15
15
|
|
|
16
16
|
var _styles = require("../styles");
|
|
@@ -82,9 +82,9 @@ const ButtonGroupRoot = (0, _styled.default)('div', {
|
|
|
82
82
|
ownerState
|
|
83
83
|
}) => (0, _extends2.default)({
|
|
84
84
|
display: 'inline-flex',
|
|
85
|
-
borderRadius: theme.shape.borderRadius
|
|
85
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
86
86
|
}, ownerState.variant === 'contained' && {
|
|
87
|
-
boxShadow: theme.shadows[2]
|
|
87
|
+
boxShadow: (theme.vars || theme).shadows[2]
|
|
88
88
|
}, ownerState.disableElevation && {
|
|
89
89
|
boxShadow: 'none'
|
|
90
90
|
}, ownerState.fullWidth && {
|
|
@@ -112,27 +112,27 @@ const ButtonGroupRoot = (0, _styled.default)('div', {
|
|
|
112
112
|
borderBottomRightRadius: 0,
|
|
113
113
|
borderBottomLeftRadius: 0
|
|
114
114
|
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
|
115
|
-
borderRight: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
115
|
+
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)'}`
|
|
116
116
|
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
|
117
|
-
borderBottom: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`
|
|
117
|
+
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)'}`
|
|
118
118
|
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
|
119
|
-
borderColor: (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)
|
|
119
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)
|
|
120
120
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
121
121
|
borderRightColor: 'transparent'
|
|
122
122
|
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
|
123
123
|
borderBottomColor: 'transparent'
|
|
124
124
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
|
125
|
-
borderRight: `1px solid ${theme.palette.grey[400]}`,
|
|
125
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
126
126
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
127
|
-
borderRight: `1px solid ${theme.palette.action.disabled}`
|
|
127
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
128
128
|
}
|
|
129
129
|
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
|
130
|
-
borderBottom: `1px solid ${theme.palette.grey[400]}`,
|
|
130
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
|
131
131
|
[`&.${_buttonGroupClasses.default.disabled}`]: {
|
|
132
|
-
borderBottom: `1px solid ${theme.palette.action.disabled}`
|
|
132
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
|
133
133
|
}
|
|
134
134
|
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
|
135
|
-
borderColor: theme.palette[ownerState.color].dark
|
|
135
|
+
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
136
136
|
}, {
|
|
137
137
|
'&:hover': (0, _extends2.default)({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
|
138
138
|
borderRightColor: 'currentColor'
|
|
@@ -57,13 +57,13 @@ const CardActionAreaRoot = (0, _styled.default)(_ButtonBase.default, {
|
|
|
57
57
|
textAlign: 'inherit',
|
|
58
58
|
width: '100%',
|
|
59
59
|
[`&:hover .${_cardActionAreaClasses.default.focusHighlight}`]: {
|
|
60
|
-
opacity: theme.palette.action.hoverOpacity,
|
|
60
|
+
opacity: (theme.vars || theme).palette.action.hoverOpacity,
|
|
61
61
|
'@media (hover: none)': {
|
|
62
62
|
opacity: 0
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
[`&.${_cardActionAreaClasses.default.focusVisible} .${_cardActionAreaClasses.default.focusHighlight}`]: {
|
|
66
|
-
opacity: theme.palette.action.focusOpacity
|
|
66
|
+
opacity: (theme.vars || theme).palette.action.focusOpacity
|
|
67
67
|
}
|
|
68
68
|
}));
|
|
69
69
|
const CardActionAreaFocusHighlight = (0, _styled.default)('span', {
|
|
@@ -98,7 +98,7 @@ const CircularProgressRoot = (0, _styled.default)('span', {
|
|
|
98
98
|
}, ownerState.variant === 'determinate' && {
|
|
99
99
|
transition: theme.transitions.create('transform')
|
|
100
100
|
}, ownerState.color !== 'inherit' && {
|
|
101
|
-
color: theme.palette[ownerState.color].main
|
|
101
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
102
102
|
}), ({
|
|
103
103
|
ownerState
|
|
104
104
|
}) => ownerState.variant === 'indeterminate' && (0, _system.css)`
|
|
@@ -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',
|