@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
package/Accordion/Accordion.js
CHANGED
|
@@ -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,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface AccordionClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
-
rounded: string;
|
|
6
|
-
/** State class applied to the root element if `expanded={true}`. */
|
|
7
|
-
expanded: string;
|
|
8
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
-
gutters: string;
|
|
12
|
-
/** Styles applied to the region element, the container of the children. */
|
|
13
|
-
region: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type AccordionClassKey = keyof AccordionClasses;
|
|
16
|
-
export declare function getAccordionUtilityClass(slot: string): string;
|
|
17
|
-
declare const accordionClasses: AccordionClasses;
|
|
18
|
-
export default accordionClasses;
|
|
1
|
+
export interface AccordionClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `square={true}`. */
|
|
5
|
+
rounded: string;
|
|
6
|
+
/** State class applied to the root element if `expanded={true}`. */
|
|
7
|
+
expanded: string;
|
|
8
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
+
gutters: string;
|
|
12
|
+
/** Styles applied to the region element, the container of the children. */
|
|
13
|
+
region: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type AccordionClassKey = keyof AccordionClasses;
|
|
16
|
+
export declare function getAccordionUtilityClass(slot: string): string;
|
|
17
|
+
declare const accordionClasses: AccordionClasses;
|
|
18
|
+
export default accordionClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface AccordionActionsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
-
spacing: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
|
|
8
|
-
export declare function getAccordionActionsUtilityClass(slot: string): string;
|
|
9
|
-
declare const accordionActionsClasses: AccordionActionsClasses;
|
|
10
|
-
export default accordionActionsClasses;
|
|
1
|
+
export interface AccordionActionsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableSpacing={true}`. */
|
|
5
|
+
spacing: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type AccordionActionsClassKey = keyof AccordionActionsClasses;
|
|
8
|
+
export declare function getAccordionActionsUtilityClass(slot: string): string;
|
|
9
|
+
declare const accordionActionsClasses: AccordionActionsClasses;
|
|
10
|
+
export default accordionActionsClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface AccordionDetailsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
|
|
6
|
-
export declare function getAccordionDetailsUtilityClass(slot: string): string;
|
|
7
|
-
declare const accordionDetailsClasses: AccordionDetailsClasses;
|
|
8
|
-
export default accordionDetailsClasses;
|
|
1
|
+
export interface AccordionDetailsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type AccordionDetailsClassKey = keyof AccordionDetailsClasses;
|
|
6
|
+
export declare function getAccordionDetailsUtilityClass(slot: string): string;
|
|
7
|
+
declare const accordionDetailsClasses: AccordionDetailsClasses;
|
|
8
|
+
export default accordionDetailsClasses;
|
|
@@ -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
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface AccordionSummaryClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
|
5
|
-
expanded: string;
|
|
6
|
-
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
7
|
-
focusVisible: string;
|
|
8
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
-
gutters: string;
|
|
12
|
-
/** Styles applied to the children wrapper element unless `disableGutters={true}`. */
|
|
13
|
-
contentGutters: string;
|
|
14
|
-
/** Styles applied to the children wrapper element. */
|
|
15
|
-
content: string;
|
|
16
|
-
/** Styles applied to the `expandIcon`'s wrapper element. */
|
|
17
|
-
expandIconWrapper: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
|
|
20
|
-
export declare function getAccordionSummaryUtilityClass(slot: string): string;
|
|
21
|
-
declare const accordionSummaryClasses: AccordionSummaryClasses;
|
|
22
|
-
export default accordionSummaryClasses;
|
|
1
|
+
export interface AccordionSummaryClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element, children wrapper element and `IconButton` component if `expanded={true}`. */
|
|
5
|
+
expanded: string;
|
|
6
|
+
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
7
|
+
focusVisible: string;
|
|
8
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
11
|
+
gutters: string;
|
|
12
|
+
/** Styles applied to the children wrapper element unless `disableGutters={true}`. */
|
|
13
|
+
contentGutters: string;
|
|
14
|
+
/** Styles applied to the children wrapper element. */
|
|
15
|
+
content: string;
|
|
16
|
+
/** Styles applied to the `expandIcon`'s wrapper element. */
|
|
17
|
+
expandIconWrapper: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type AccordionSummaryClassKey = keyof AccordionSummaryClasses;
|
|
20
|
+
export declare function getAccordionSummaryUtilityClass(slot: string): string;
|
|
21
|
+
declare const accordionSummaryClasses: AccordionSummaryClasses;
|
|
22
|
+
export default accordionSummaryClasses;
|
package/Alert/alertClasses.d.ts
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export interface AlertClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
-
filled: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="standard"` and `color="success"`. */
|
|
11
|
-
standardSuccess: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="standard"` and `color="info"`. */
|
|
13
|
-
standardInfo: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
|
|
15
|
-
standardWarning: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="standard"` and `color="error"`. */
|
|
17
|
-
standardError: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
19
|
-
outlinedSuccess: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
21
|
-
outlinedInfo: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
23
|
-
outlinedWarning: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
25
|
-
outlinedError: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="filled"` and `color="success"`. */
|
|
27
|
-
filledSuccess: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="filled"` and `color="info"`. */
|
|
29
|
-
filledInfo: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
|
|
31
|
-
filledWarning: string;
|
|
32
|
-
/** Styles applied to the root element if `variant="filled"` and `color="error"`. */
|
|
33
|
-
filledError: string;
|
|
34
|
-
/** Styles applied to the icon wrapper element. */
|
|
35
|
-
icon: string;
|
|
36
|
-
/** Styles applied to the message wrapper element. */
|
|
37
|
-
message: string;
|
|
38
|
-
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
39
|
-
action: string;
|
|
40
|
-
}
|
|
41
|
-
export declare type AlertClassKey = keyof AlertClasses;
|
|
42
|
-
export declare function getAlertUtilityClass(slot: string): string;
|
|
43
|
-
declare const alertClasses: AlertClasses;
|
|
44
|
-
export default alertClasses;
|
|
1
|
+
export interface AlertClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
5
|
+
filled: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="standard"` and `color="success"`. */
|
|
11
|
+
standardSuccess: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="standard"` and `color="info"`. */
|
|
13
|
+
standardInfo: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
|
|
15
|
+
standardWarning: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="standard"` and `color="error"`. */
|
|
17
|
+
standardError: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
|
|
19
|
+
outlinedSuccess: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
|
|
21
|
+
outlinedInfo: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
|
|
23
|
+
outlinedWarning: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
|
|
25
|
+
outlinedError: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="filled"` and `color="success"`. */
|
|
27
|
+
filledSuccess: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="filled"` and `color="info"`. */
|
|
29
|
+
filledInfo: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
|
|
31
|
+
filledWarning: string;
|
|
32
|
+
/** Styles applied to the root element if `variant="filled"` and `color="error"`. */
|
|
33
|
+
filledError: string;
|
|
34
|
+
/** Styles applied to the icon wrapper element. */
|
|
35
|
+
icon: string;
|
|
36
|
+
/** Styles applied to the message wrapper element. */
|
|
37
|
+
message: string;
|
|
38
|
+
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
39
|
+
action: string;
|
|
40
|
+
}
|
|
41
|
+
export declare type AlertClassKey = keyof AlertClasses;
|
|
42
|
+
export declare function getAlertUtilityClass(slot: string): string;
|
|
43
|
+
declare const alertClasses: AlertClasses;
|
|
44
|
+
export default alertClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface AlertTitleClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type AlertTitleClassKey = keyof AlertTitleClasses;
|
|
6
|
-
export declare function getAlertTitleUtilityClass(slot: string): string;
|
|
7
|
-
declare const alertTitleClasses: AlertTitleClasses;
|
|
8
|
-
export default alertTitleClasses;
|
|
1
|
+
export interface AlertTitleClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type AlertTitleClassKey = keyof AlertTitleClasses;
|
|
6
|
+
export declare function getAlertTitleUtilityClass(slot: string): string;
|
|
7
|
+
declare const alertTitleClasses: AlertTitleClasses;
|
|
8
|
+
export default alertTitleClasses;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface AppBarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="fixed"`. */
|
|
5
|
-
positionFixed: string;
|
|
6
|
-
/** Styles applied to the root element if `position="absolute"`. */
|
|
7
|
-
positionAbsolute: string;
|
|
8
|
-
/** Styles applied to the root element if `position="sticky"`. */
|
|
9
|
-
positionSticky: string;
|
|
10
|
-
/** Styles applied to the root element if `position="static"`. */
|
|
11
|
-
positionStatic: string;
|
|
12
|
-
/** Styles applied to the root element if `position="relative"`. */
|
|
13
|
-
positionRelative: string;
|
|
14
|
-
/** Styles applied to the root element if `color="default"`. */
|
|
15
|
-
colorDefault: string;
|
|
16
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
17
|
-
colorPrimary: string;
|
|
18
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
19
|
-
colorSecondary: string;
|
|
20
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
21
|
-
colorInherit: string;
|
|
22
|
-
/** Styles applied to the root element if `color="transparent"`. */
|
|
23
|
-
colorTransparent: string;
|
|
24
|
-
}
|
|
25
|
-
export declare type AppBarClassKey = keyof AppBarClasses;
|
|
26
|
-
export declare function getAppBarUtilityClass(slot: string): string;
|
|
27
|
-
declare const appBarClasses: AppBarClasses;
|
|
28
|
-
export default appBarClasses;
|
|
1
|
+
export interface AppBarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="fixed"`. */
|
|
5
|
+
positionFixed: string;
|
|
6
|
+
/** Styles applied to the root element if `position="absolute"`. */
|
|
7
|
+
positionAbsolute: string;
|
|
8
|
+
/** Styles applied to the root element if `position="sticky"`. */
|
|
9
|
+
positionSticky: string;
|
|
10
|
+
/** Styles applied to the root element if `position="static"`. */
|
|
11
|
+
positionStatic: string;
|
|
12
|
+
/** Styles applied to the root element if `position="relative"`. */
|
|
13
|
+
positionRelative: string;
|
|
14
|
+
/** Styles applied to the root element if `color="default"`. */
|
|
15
|
+
colorDefault: string;
|
|
16
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
17
|
+
colorPrimary: string;
|
|
18
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
19
|
+
colorSecondary: string;
|
|
20
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
21
|
+
colorInherit: string;
|
|
22
|
+
/** Styles applied to the root element if `color="transparent"`. */
|
|
23
|
+
colorTransparent: string;
|
|
24
|
+
}
|
|
25
|
+
export declare type AppBarClassKey = keyof AppBarClasses;
|
|
26
|
+
export declare function getAppBarUtilityClass(slot: string): string;
|
|
27
|
+
declare const appBarClasses: AppBarClasses;
|
|
28
|
+
export default appBarClasses;
|
|
@@ -24,6 +24,23 @@ export {
|
|
|
24
24
|
createFilterOptions,
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
export type AutocompleteOwnerState<
|
|
28
|
+
T,
|
|
29
|
+
Multiple extends boolean | undefined,
|
|
30
|
+
DisableClearable extends boolean | undefined,
|
|
31
|
+
FreeSolo extends boolean | undefined,
|
|
32
|
+
ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent'],
|
|
33
|
+
> = AutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent> & {
|
|
34
|
+
disablePortal: boolean;
|
|
35
|
+
focused: boolean;
|
|
36
|
+
fullWidth: boolean;
|
|
37
|
+
hasClearIcon: boolean;
|
|
38
|
+
hasPopupIcon: boolean;
|
|
39
|
+
inputFocused: boolean;
|
|
40
|
+
popupOpen: boolean;
|
|
41
|
+
size: OverridableStringUnion<'small' | 'medium', AutocompletePropsSizeOverrides>;
|
|
42
|
+
};
|
|
43
|
+
|
|
27
44
|
export type AutocompleteRenderGetTagProps = ({ index }: { index: number }) => {
|
|
28
45
|
key: number;
|
|
29
46
|
className: string;
|
|
@@ -226,9 +243,14 @@ export interface AutocompleteProps<
|
|
|
226
243
|
*
|
|
227
244
|
* @param {T[]} value The `value` provided to the component.
|
|
228
245
|
* @param {function} getTagProps A tag props getter.
|
|
246
|
+
* @param {object} ownerState The state of the Autocomplete component.
|
|
229
247
|
* @returns {ReactNode}
|
|
230
248
|
*/
|
|
231
|
-
renderTags?: (
|
|
249
|
+
renderTags?: (
|
|
250
|
+
value: T[],
|
|
251
|
+
getTagProps: AutocompleteRenderGetTagProps,
|
|
252
|
+
ownerState: AutocompleteOwnerState<T, Multiple, DisableClearable, FreeSolo, ChipComponent>,
|
|
253
|
+
) => React.ReactNode;
|
|
232
254
|
/**
|
|
233
255
|
* The size of the component.
|
|
234
256
|
* @default 'medium'
|
|
@@ -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', {
|
|
@@ -439,7 +439,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
439
439
|
componentName: 'Autocomplete'
|
|
440
440
|
}));
|
|
441
441
|
const hasClearIcon = !disableClearable && !disabled && dirty && !readOnly;
|
|
442
|
-
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false;
|
|
442
|
+
const hasPopupIcon = (!freeSolo || forcePopupIcon === true) && forcePopupIcon !== false; // If you modify this, make sure to keep the `AutocompleteOwnerState` type in sync.
|
|
443
443
|
|
|
444
444
|
const ownerState = _extends({}, props, {
|
|
445
445
|
disablePortal,
|
|
@@ -462,7 +462,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
462
462
|
}, getTagProps(params));
|
|
463
463
|
|
|
464
464
|
if (renderTags) {
|
|
465
|
-
startAdornment = renderTags(value, getCustomizedTagProps);
|
|
465
|
+
startAdornment = renderTags(value, getCustomizedTagProps, ownerState);
|
|
466
466
|
} else {
|
|
467
467
|
startAdornment = value.map((option, index) => /*#__PURE__*/_jsx(Chip, _extends({
|
|
468
468
|
label: getOptionLabel(option),
|
|
@@ -531,10 +531,11 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
531
531
|
fullWidth: true,
|
|
532
532
|
size: size === 'small' ? 'small' : undefined,
|
|
533
533
|
InputLabelProps: getInputLabelProps(),
|
|
534
|
-
InputProps: {
|
|
534
|
+
InputProps: _extends({
|
|
535
535
|
ref: setAnchorEl,
|
|
536
536
|
className: classes.inputRoot,
|
|
537
|
-
startAdornment
|
|
537
|
+
startAdornment
|
|
538
|
+
}, (hasClearIcon || hasPopupIcon) && {
|
|
538
539
|
endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
|
|
539
540
|
className: classes.endAdornment,
|
|
540
541
|
ownerState: ownerState,
|
|
@@ -554,7 +555,7 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
|
|
|
554
555
|
children: popupIcon
|
|
555
556
|
})) : null]
|
|
556
557
|
})
|
|
557
|
-
},
|
|
558
|
+
}),
|
|
558
559
|
inputProps: _extends({
|
|
559
560
|
className: clsx(classes.input),
|
|
560
561
|
disabled,
|
|
@@ -1038,6 +1039,7 @@ process.env.NODE_ENV !== "production" ? Autocomplete.propTypes
|
|
|
1038
1039
|
*
|
|
1039
1040
|
* @param {T[]} value The `value` provided to the component.
|
|
1040
1041
|
* @param {function} getTagProps A tag props getter.
|
|
1042
|
+
* @param {object} ownerState The state of the Autocomplete component.
|
|
1041
1043
|
* @returns {ReactNode}
|
|
1042
1044
|
*/
|
|
1043
1045
|
renderTags: PropTypes.func,
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export interface AutocompleteClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
5
|
-
fullWidth: string;
|
|
6
|
-
/** State class applied to the root element if focused. */
|
|
7
|
-
focused: string;
|
|
8
|
-
/** Styles applied to the tag elements, e.g. the chips. */
|
|
9
|
-
tag: string;
|
|
10
|
-
/** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
|
|
11
|
-
tagSizeSmall: string;
|
|
12
|
-
/** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
|
|
13
|
-
tagSizeMedium: string;
|
|
14
|
-
/** Styles applied when the popup icon is rendered. */
|
|
15
|
-
hasPopupIcon: string;
|
|
16
|
-
/** Styles applied when the clear icon is rendered. */
|
|
17
|
-
hasClearIcon: string;
|
|
18
|
-
/** Styles applied to the Input element. */
|
|
19
|
-
inputRoot: string;
|
|
20
|
-
/** Styles applied to the input element. */
|
|
21
|
-
input: string;
|
|
22
|
-
/** Styles applied to the input element if tag focused. */
|
|
23
|
-
inputFocused: string;
|
|
24
|
-
/** Styles applied to the endAdornment element. */
|
|
25
|
-
endAdornment: string;
|
|
26
|
-
/** Styles applied to the clear indicator. */
|
|
27
|
-
clearIndicator: string;
|
|
28
|
-
/** Styles applied to the popup indicator. */
|
|
29
|
-
popupIndicator: string;
|
|
30
|
-
/** Styles applied to the popup indicator if the popup is open. */
|
|
31
|
-
popupIndicatorOpen: string;
|
|
32
|
-
/** Styles applied to the popper element. */
|
|
33
|
-
popper: string;
|
|
34
|
-
/** Styles applied to the popper element if `disablePortal={true}`. */
|
|
35
|
-
popperDisablePortal: string;
|
|
36
|
-
/** Styles applied to the Paper component. */
|
|
37
|
-
paper: string;
|
|
38
|
-
/** Styles applied to the listbox component. */
|
|
39
|
-
listbox: string;
|
|
40
|
-
/** Styles applied to the loading wrapper. */
|
|
41
|
-
loading: string;
|
|
42
|
-
/** Styles applied to the no option wrapper. */
|
|
43
|
-
noOptions: string;
|
|
44
|
-
/** Styles applied to the option elements. */
|
|
45
|
-
option: string;
|
|
46
|
-
/** Styles applied to the group's label elements. */
|
|
47
|
-
groupLabel: string;
|
|
48
|
-
/** Styles applied to the group's ul elements. */
|
|
49
|
-
groupUl: string;
|
|
50
|
-
}
|
|
51
|
-
export declare type AutocompleteClassKey = keyof AutocompleteClasses;
|
|
52
|
-
export declare function getAutocompleteUtilityClass(slot: string): string;
|
|
53
|
-
declare const autocompleteClasses: AutocompleteClasses;
|
|
54
|
-
export default autocompleteClasses;
|
|
1
|
+
export interface AutocompleteClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
5
|
+
fullWidth: string;
|
|
6
|
+
/** State class applied to the root element if focused. */
|
|
7
|
+
focused: string;
|
|
8
|
+
/** Styles applied to the tag elements, e.g. the chips. */
|
|
9
|
+
tag: string;
|
|
10
|
+
/** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
|
|
11
|
+
tagSizeSmall: string;
|
|
12
|
+
/** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
|
|
13
|
+
tagSizeMedium: string;
|
|
14
|
+
/** Styles applied when the popup icon is rendered. */
|
|
15
|
+
hasPopupIcon: string;
|
|
16
|
+
/** Styles applied when the clear icon is rendered. */
|
|
17
|
+
hasClearIcon: string;
|
|
18
|
+
/** Styles applied to the Input element. */
|
|
19
|
+
inputRoot: string;
|
|
20
|
+
/** Styles applied to the input element. */
|
|
21
|
+
input: string;
|
|
22
|
+
/** Styles applied to the input element if tag focused. */
|
|
23
|
+
inputFocused: string;
|
|
24
|
+
/** Styles applied to the endAdornment element. */
|
|
25
|
+
endAdornment: string;
|
|
26
|
+
/** Styles applied to the clear indicator. */
|
|
27
|
+
clearIndicator: string;
|
|
28
|
+
/** Styles applied to the popup indicator. */
|
|
29
|
+
popupIndicator: string;
|
|
30
|
+
/** Styles applied to the popup indicator if the popup is open. */
|
|
31
|
+
popupIndicatorOpen: string;
|
|
32
|
+
/** Styles applied to the popper element. */
|
|
33
|
+
popper: string;
|
|
34
|
+
/** Styles applied to the popper element if `disablePortal={true}`. */
|
|
35
|
+
popperDisablePortal: string;
|
|
36
|
+
/** Styles applied to the Paper component. */
|
|
37
|
+
paper: string;
|
|
38
|
+
/** Styles applied to the listbox component. */
|
|
39
|
+
listbox: string;
|
|
40
|
+
/** Styles applied to the loading wrapper. */
|
|
41
|
+
loading: string;
|
|
42
|
+
/** Styles applied to the no option wrapper. */
|
|
43
|
+
noOptions: string;
|
|
44
|
+
/** Styles applied to the option elements. */
|
|
45
|
+
option: string;
|
|
46
|
+
/** Styles applied to the group's label elements. */
|
|
47
|
+
groupLabel: string;
|
|
48
|
+
/** Styles applied to the group's ul elements. */
|
|
49
|
+
groupUl: string;
|
|
50
|
+
}
|
|
51
|
+
export declare type AutocompleteClassKey = keyof AutocompleteClasses;
|
|
52
|
+
export declare function getAutocompleteUtilityClass(slot: string): string;
|
|
53
|
+
declare const autocompleteClasses: AutocompleteClasses;
|
|
54
|
+
export default autocompleteClasses;
|