@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/Divider/Divider.js
CHANGED
|
@@ -47,7 +47,7 @@ const DividerRoot = styled('div', {
|
|
|
47
47
|
flexShrink: 0,
|
|
48
48
|
borderWidth: 0,
|
|
49
49
|
borderStyle: 'solid',
|
|
50
|
-
borderColor: theme.palette.divider,
|
|
50
|
+
borderColor: (theme.vars || theme).palette.divider,
|
|
51
51
|
borderBottomWidth: 'thin'
|
|
52
52
|
}, ownerState.absolute && {
|
|
53
53
|
position: 'absolute',
|
|
@@ -55,7 +55,7 @@ const DividerRoot = styled('div', {
|
|
|
55
55
|
left: 0,
|
|
56
56
|
width: '100%'
|
|
57
57
|
}, ownerState.light && {
|
|
58
|
-
borderColor: alpha(theme.palette.divider, 0.08)
|
|
58
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
|
|
59
59
|
}, ownerState.variant === 'inset' && {
|
|
60
60
|
marginLeft: 72
|
|
61
61
|
}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
|
|
@@ -82,7 +82,7 @@ const DividerRoot = styled('div', {
|
|
|
82
82
|
'&::before, &::after': {
|
|
83
83
|
position: 'relative',
|
|
84
84
|
width: '100%',
|
|
85
|
-
borderTop: `thin solid ${theme.palette.divider}`,
|
|
85
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
86
86
|
top: '50%',
|
|
87
87
|
content: '""',
|
|
88
88
|
transform: 'translateY(50%)'
|
|
@@ -97,7 +97,7 @@ const DividerRoot = styled('div', {
|
|
|
97
97
|
top: '0%',
|
|
98
98
|
left: '50%',
|
|
99
99
|
borderTop: 0,
|
|
100
|
-
borderLeft: `thin solid ${theme.palette.divider}`,
|
|
100
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
101
101
|
transform: 'translateX(0%)'
|
|
102
102
|
}
|
|
103
103
|
}), ({
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export interface DividerClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `absolute={true}`. */
|
|
5
|
-
absolute: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="inset"`. */
|
|
7
|
-
inset: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="fullWidth"`. */
|
|
9
|
-
fullWidth: string;
|
|
10
|
-
/** Styles applied to the root element if `light={true}`. */
|
|
11
|
-
light: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="middle"`. */
|
|
13
|
-
middle: string;
|
|
14
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
15
|
-
vertical: string;
|
|
16
|
-
/** Styles applied to the root element if `flexItem={true}`. */
|
|
17
|
-
flexItem: string;
|
|
18
|
-
/** Styles applied to the root element if divider have text. */
|
|
19
|
-
withChildren: string;
|
|
20
|
-
/** Styles applied to the root element if divider have text and `orientation="vertical"`. */
|
|
21
|
-
withChildrenVertical: string;
|
|
22
|
-
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
|
|
23
|
-
textAlignRight: string;
|
|
24
|
-
/** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
|
|
25
|
-
textAlignLeft: string;
|
|
26
|
-
/** Styles applied to the span children element if `orientation="horizontal"`. */
|
|
27
|
-
wrapper: string;
|
|
28
|
-
/** Styles applied to the span children element if `orientation="vertical"`. */
|
|
29
|
-
wrapperVertical: string;
|
|
30
|
-
}
|
|
31
|
-
export declare type DividerClassKey = keyof DividerClasses;
|
|
32
|
-
export declare function getDividerUtilityClass(slot: string): string;
|
|
33
|
-
declare const dividerClasses: DividerClasses;
|
|
34
|
-
export default dividerClasses;
|
|
1
|
+
export interface DividerClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `absolute={true}`. */
|
|
5
|
+
absolute: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="inset"`. */
|
|
7
|
+
inset: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="fullWidth"`. */
|
|
9
|
+
fullWidth: string;
|
|
10
|
+
/** Styles applied to the root element if `light={true}`. */
|
|
11
|
+
light: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="middle"`. */
|
|
13
|
+
middle: string;
|
|
14
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
15
|
+
vertical: string;
|
|
16
|
+
/** Styles applied to the root element if `flexItem={true}`. */
|
|
17
|
+
flexItem: string;
|
|
18
|
+
/** Styles applied to the root element if divider have text. */
|
|
19
|
+
withChildren: string;
|
|
20
|
+
/** Styles applied to the root element if divider have text and `orientation="vertical"`. */
|
|
21
|
+
withChildrenVertical: string;
|
|
22
|
+
/** Styles applied to the root element if `textAlign="right" orientation="horizontal"`. */
|
|
23
|
+
textAlignRight: string;
|
|
24
|
+
/** Styles applied to the root element if `textAlign="left" orientation="horizontal"`. */
|
|
25
|
+
textAlignLeft: string;
|
|
26
|
+
/** Styles applied to the span children element if `orientation="horizontal"`. */
|
|
27
|
+
wrapper: string;
|
|
28
|
+
/** Styles applied to the span children element if `orientation="vertical"`. */
|
|
29
|
+
wrapperVertical: string;
|
|
30
|
+
}
|
|
31
|
+
export declare type DividerClassKey = keyof DividerClasses;
|
|
32
|
+
export declare function getDividerUtilityClass(slot: string): string;
|
|
33
|
+
declare const dividerClasses: DividerClasses;
|
|
34
|
+
export default dividerClasses;
|
package/Drawer/Drawer.js
CHANGED
|
@@ -46,7 +46,7 @@ const DrawerRoot = styled(Modal, {
|
|
|
46
46
|
})(({
|
|
47
47
|
theme
|
|
48
48
|
}) => ({
|
|
49
|
-
zIndex: theme.zIndex.drawer
|
|
49
|
+
zIndex: (theme.vars || theme).zIndex.drawer
|
|
50
50
|
}));
|
|
51
51
|
const DrawerDockedRoot = styled('div', {
|
|
52
52
|
shouldForwardProp: rootShouldForwardProp,
|
|
@@ -75,7 +75,7 @@ const DrawerPaper = styled(Paper, {
|
|
|
75
75
|
flexDirection: 'column',
|
|
76
76
|
height: '100%',
|
|
77
77
|
flex: '1 0 auto',
|
|
78
|
-
zIndex: theme.zIndex.drawer,
|
|
78
|
+
zIndex: (theme.vars || theme).zIndex.drawer,
|
|
79
79
|
// Add iOS momentum scrolling for iOS < 13.0
|
|
80
80
|
WebkitOverflowScrolling: 'touch',
|
|
81
81
|
// temporary style
|
|
@@ -103,13 +103,13 @@ const DrawerPaper = styled(Paper, {
|
|
|
103
103
|
height: 'auto',
|
|
104
104
|
maxHeight: '100%'
|
|
105
105
|
}, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
|
|
106
|
-
borderRight: `1px solid ${theme.palette.divider}`
|
|
106
|
+
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
107
107
|
}, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
|
|
108
|
-
borderBottom: `1px solid ${theme.palette.divider}`
|
|
108
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
109
109
|
}, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
|
|
110
|
-
borderLeft: `1px solid ${theme.palette.divider}`
|
|
110
|
+
borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
111
111
|
}, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
|
|
112
|
-
borderTop: `1px solid ${theme.palette.divider}`
|
|
112
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
|
|
113
113
|
}));
|
|
114
114
|
const oppositeDirection = {
|
|
115
115
|
left: 'right',
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface DrawerClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="permanent or persistent"`. */
|
|
5
|
-
docked: string;
|
|
6
|
-
/** Styles applied to the Paper component. */
|
|
7
|
-
paper: string;
|
|
8
|
-
/** Styles applied to the Paper component if `anchor="left"`. */
|
|
9
|
-
paperAnchorLeft: string;
|
|
10
|
-
/** Styles applied to the Paper component if `anchor="right"`. */
|
|
11
|
-
paperAnchorRight: string;
|
|
12
|
-
/** Styles applied to the Paper component if `anchor="top"`. */
|
|
13
|
-
paperAnchorTop: string;
|
|
14
|
-
/** Styles applied to the Paper component if `anchor="bottom"`. */
|
|
15
|
-
paperAnchorBottom: string;
|
|
16
|
-
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
|
|
17
|
-
paperAnchorDockedLeft: string;
|
|
18
|
-
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
|
|
19
|
-
paperAnchorDockedTop: string;
|
|
20
|
-
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
|
|
21
|
-
paperAnchorDockedRight: string;
|
|
22
|
-
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
|
|
23
|
-
paperAnchorDockedBottom: string;
|
|
24
|
-
/** Styles applied to the Modal component. */
|
|
25
|
-
modal: string;
|
|
26
|
-
}
|
|
27
|
-
export declare type DrawerClassKey = keyof DrawerClasses;
|
|
28
|
-
export declare function getDrawerUtilityClass(slot: string): string;
|
|
29
|
-
declare const drawerClasses: DrawerClasses;
|
|
30
|
-
export default drawerClasses;
|
|
1
|
+
export interface DrawerClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="permanent or persistent"`. */
|
|
5
|
+
docked: string;
|
|
6
|
+
/** Styles applied to the Paper component. */
|
|
7
|
+
paper: string;
|
|
8
|
+
/** Styles applied to the Paper component if `anchor="left"`. */
|
|
9
|
+
paperAnchorLeft: string;
|
|
10
|
+
/** Styles applied to the Paper component if `anchor="right"`. */
|
|
11
|
+
paperAnchorRight: string;
|
|
12
|
+
/** Styles applied to the Paper component if `anchor="top"`. */
|
|
13
|
+
paperAnchorTop: string;
|
|
14
|
+
/** Styles applied to the Paper component if `anchor="bottom"`. */
|
|
15
|
+
paperAnchorBottom: string;
|
|
16
|
+
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
|
|
17
|
+
paperAnchorDockedLeft: string;
|
|
18
|
+
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
|
|
19
|
+
paperAnchorDockedTop: string;
|
|
20
|
+
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
|
|
21
|
+
paperAnchorDockedRight: string;
|
|
22
|
+
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
|
|
23
|
+
paperAnchorDockedBottom: string;
|
|
24
|
+
/** Styles applied to the Modal component. */
|
|
25
|
+
modal: string;
|
|
26
|
+
}
|
|
27
|
+
export declare type DrawerClassKey = keyof DrawerClasses;
|
|
28
|
+
export declare function getDrawerUtilityClass(slot: string): string;
|
|
29
|
+
declare const drawerClasses: DrawerClasses;
|
|
30
|
+
export default drawerClasses;
|
package/Fab/Fab.js
CHANGED
|
@@ -37,77 +37,81 @@ const FabRoot = styled(ButtonBase, {
|
|
|
37
37
|
})(({
|
|
38
38
|
theme,
|
|
39
39
|
ownerState
|
|
40
|
-
}) =>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'&:hover': {
|
|
58
|
-
backgroundColor: theme.palette.grey.A100,
|
|
59
|
-
// Reset on touch devices, it doesn't add specificity
|
|
60
|
-
'@media (hover: none)': {
|
|
61
|
-
backgroundColor: theme.palette.grey[300]
|
|
40
|
+
}) => {
|
|
41
|
+
var _theme$palette$getCon, _theme$palette;
|
|
42
|
+
|
|
43
|
+
return _extends({}, theme.typography.button, {
|
|
44
|
+
minHeight: 36,
|
|
45
|
+
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
|
|
46
|
+
duration: theme.transitions.duration.short
|
|
47
|
+
}),
|
|
48
|
+
borderRadius: '50%',
|
|
49
|
+
padding: 0,
|
|
50
|
+
minWidth: 0,
|
|
51
|
+
width: 56,
|
|
52
|
+
height: 56,
|
|
53
|
+
zIndex: (theme.vars || theme).zIndex.fab,
|
|
54
|
+
boxShadow: (theme.vars || theme).shadows[6],
|
|
55
|
+
'&:active': {
|
|
56
|
+
boxShadow: (theme.vars || theme).shadows[12]
|
|
62
57
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
58
|
+
color: theme.vars ? theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
|
|
59
|
+
backgroundColor: (theme.vars || theme).palette.grey[300],
|
|
60
|
+
'&:hover': {
|
|
61
|
+
backgroundColor: (theme.vars || theme).palette.grey.A100,
|
|
62
|
+
// Reset on touch devices, it doesn't add specificity
|
|
63
|
+
'@media (hover: none)': {
|
|
64
|
+
backgroundColor: (theme.vars || theme).palette.grey[300]
|
|
65
|
+
},
|
|
66
|
+
textDecoration: 'none'
|
|
67
|
+
},
|
|
68
|
+
[`&.${fabClasses.focusVisible}`]: {
|
|
69
|
+
boxShadow: (theme.vars || theme).shadows[6]
|
|
70
|
+
},
|
|
71
|
+
[`&.${fabClasses.disabled}`]: {
|
|
72
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
73
|
+
boxShadow: (theme.vars || theme).shadows[0],
|
|
74
|
+
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
|
75
|
+
}
|
|
76
|
+
}, ownerState.size === 'small' && {
|
|
77
|
+
width: 40,
|
|
78
|
+
height: 40
|
|
79
|
+
}, ownerState.size === 'medium' && {
|
|
80
|
+
width: 48,
|
|
81
|
+
height: 48
|
|
82
|
+
}, ownerState.variant === 'extended' && {
|
|
83
|
+
borderRadius: 48 / 2,
|
|
84
|
+
padding: '0 16px',
|
|
85
|
+
width: 'auto',
|
|
86
|
+
minHeight: 'auto',
|
|
87
|
+
minWidth: 48,
|
|
88
|
+
height: 48
|
|
89
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'small' && {
|
|
90
|
+
width: 'auto',
|
|
91
|
+
padding: '0 8px',
|
|
92
|
+
borderRadius: 34 / 2,
|
|
93
|
+
minWidth: 34,
|
|
94
|
+
height: 34
|
|
95
|
+
}, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
|
|
96
|
+
width: 'auto',
|
|
97
|
+
padding: '0 16px',
|
|
98
|
+
borderRadius: 40 / 2,
|
|
99
|
+
minWidth: 40,
|
|
100
|
+
height: 40
|
|
101
|
+
}, ownerState.color === 'inherit' && {
|
|
102
|
+
color: 'inherit'
|
|
103
|
+
});
|
|
104
|
+
}, ({
|
|
101
105
|
theme,
|
|
102
106
|
ownerState
|
|
103
|
-
}) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
|
|
104
|
-
color: theme.palette[ownerState.color].contrastText,
|
|
105
|
-
backgroundColor: theme.palette[ownerState.color].main,
|
|
107
|
+
}) => _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
|
|
108
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
109
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
106
110
|
'&:hover': {
|
|
107
|
-
backgroundColor: theme.palette[ownerState.color].dark,
|
|
111
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
108
112
|
// Reset on touch devices, it doesn't add specificity
|
|
109
113
|
'@media (hover: none)': {
|
|
110
|
-
backgroundColor: theme.palette[ownerState.color].main
|
|
114
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
111
115
|
}
|
|
112
116
|
}
|
|
113
117
|
}));
|
package/Fab/fabClasses.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface FabClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
-
primary: string;
|
|
6
|
-
/** Styles applied to the root element if `color="secondary"`. */
|
|
7
|
-
secondary: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="extended"`. */
|
|
9
|
-
extended: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="circular"`. */
|
|
11
|
-
circular: string;
|
|
12
|
-
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
13
|
-
focusVisible: string;
|
|
14
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
17
|
-
colorInherit: string;
|
|
18
|
-
/** Styles applied to the root element if `size="small"``. */
|
|
19
|
-
sizeSmall: string;
|
|
20
|
-
/** Styles applied to the root element if `size="medium"``. */
|
|
21
|
-
sizeMedium: string;
|
|
22
|
-
}
|
|
23
|
-
export declare type FabClassKey = keyof FabClasses;
|
|
24
|
-
export declare function getFabUtilityClass(slot: string): string;
|
|
25
|
-
declare const fabClasses: FabClasses;
|
|
26
|
-
export default fabClasses;
|
|
1
|
+
export interface FabClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
+
primary: string;
|
|
6
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
7
|
+
secondary: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="extended"`. */
|
|
9
|
+
extended: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="circular"`. */
|
|
11
|
+
circular: string;
|
|
12
|
+
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
13
|
+
focusVisible: string;
|
|
14
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
17
|
+
colorInherit: string;
|
|
18
|
+
/** Styles applied to the root element if `size="small"``. */
|
|
19
|
+
sizeSmall: string;
|
|
20
|
+
/** Styles applied to the root element if `size="medium"``. */
|
|
21
|
+
sizeMedium: string;
|
|
22
|
+
}
|
|
23
|
+
export declare type FabClassKey = keyof FabClasses;
|
|
24
|
+
export declare function getFabUtilityClass(slot: string): string;
|
|
25
|
+
declare const fabClasses: FabClasses;
|
|
26
|
+
export default fabClasses;
|
|
@@ -39,6 +39,8 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
39
39
|
theme,
|
|
40
40
|
ownerState
|
|
41
41
|
}) => {
|
|
42
|
+
var _theme$palette;
|
|
43
|
+
|
|
42
44
|
const light = theme.palette.mode === 'light';
|
|
43
45
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
44
46
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
@@ -66,7 +68,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
66
68
|
}
|
|
67
69
|
}, !ownerState.disableUnderline && {
|
|
68
70
|
'&:after': {
|
|
69
|
-
borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
|
|
71
|
+
borderBottom: `2px solid ${(_theme$palette = theme.palette[ownerState.color || 'primary']) == null ? void 0 : _theme$palette.main}`,
|
|
70
72
|
left: 0,
|
|
71
73
|
bottom: 0,
|
|
72
74
|
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
export interface FilledInputClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if color secondary. */
|
|
5
|
-
colorSecondary: string;
|
|
6
|
-
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
7
|
-
underline: string;
|
|
8
|
-
/** State class applied to the root element if the component is focused. */
|
|
9
|
-
focused: string;
|
|
10
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
11
|
-
disabled: string;
|
|
12
|
-
/** Styles applied to the root element if `startAdornment` is provided. */
|
|
13
|
-
adornedStart: string;
|
|
14
|
-
/** Styles applied to the root element if `endAdornment` is provided. */
|
|
15
|
-
adornedEnd: string;
|
|
16
|
-
/** State class applied to the root element if `error={true}`. */
|
|
17
|
-
error: string;
|
|
18
|
-
/** Styles applied to the input element if `size="small"`. */
|
|
19
|
-
sizeSmall: string;
|
|
20
|
-
/** Styles applied to the root element if `multiline={true}`. */
|
|
21
|
-
multiline: string;
|
|
22
|
-
/** Styles applied to the root element if `hiddenLabel={true}`. */
|
|
23
|
-
hiddenLabel: string;
|
|
24
|
-
/** Styles applied to the input element. */
|
|
25
|
-
input: string;
|
|
26
|
-
/** Styles applied to the input element if `size="small"`. */
|
|
27
|
-
inputSizeSmall: string;
|
|
28
|
-
/** Styles applied to the `input` if in `<FormControl hiddenLabel />`. */
|
|
29
|
-
inputHiddenLabel: string;
|
|
30
|
-
/** Styles applied to the input element if `multiline={true}`. */
|
|
31
|
-
inputMultiline: string;
|
|
32
|
-
/** Styles applied to the input element if `startAdornment` is provided. */
|
|
33
|
-
inputAdornedStart: string;
|
|
34
|
-
/** Styles applied to the input element if `endAdornment` is provided. */
|
|
35
|
-
inputAdornedEnd: string;
|
|
36
|
-
}
|
|
37
|
-
export declare type FilledInputClassKey = keyof FilledInputClasses;
|
|
38
|
-
export declare function getFilledInputUtilityClass(slot: string): string;
|
|
39
|
-
declare const filledInputClasses: FilledInputClasses;
|
|
40
|
-
export default filledInputClasses;
|
|
1
|
+
export interface FilledInputClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if color secondary. */
|
|
5
|
+
colorSecondary: string;
|
|
6
|
+
/** Styles applied to the root element unless `disableUnderline={true}`. */
|
|
7
|
+
underline: string;
|
|
8
|
+
/** State class applied to the root element if the component is focused. */
|
|
9
|
+
focused: string;
|
|
10
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
11
|
+
disabled: string;
|
|
12
|
+
/** Styles applied to the root element if `startAdornment` is provided. */
|
|
13
|
+
adornedStart: string;
|
|
14
|
+
/** Styles applied to the root element if `endAdornment` is provided. */
|
|
15
|
+
adornedEnd: string;
|
|
16
|
+
/** State class applied to the root element if `error={true}`. */
|
|
17
|
+
error: string;
|
|
18
|
+
/** Styles applied to the input element if `size="small"`. */
|
|
19
|
+
sizeSmall: string;
|
|
20
|
+
/** Styles applied to the root element if `multiline={true}`. */
|
|
21
|
+
multiline: string;
|
|
22
|
+
/** Styles applied to the root element if `hiddenLabel={true}`. */
|
|
23
|
+
hiddenLabel: string;
|
|
24
|
+
/** Styles applied to the input element. */
|
|
25
|
+
input: string;
|
|
26
|
+
/** Styles applied to the input element if `size="small"`. */
|
|
27
|
+
inputSizeSmall: string;
|
|
28
|
+
/** Styles applied to the `input` if in `<FormControl hiddenLabel />`. */
|
|
29
|
+
inputHiddenLabel: string;
|
|
30
|
+
/** Styles applied to the input element if `multiline={true}`. */
|
|
31
|
+
inputMultiline: string;
|
|
32
|
+
/** Styles applied to the input element if `startAdornment` is provided. */
|
|
33
|
+
inputAdornedStart: string;
|
|
34
|
+
/** Styles applied to the input element if `endAdornment` is provided. */
|
|
35
|
+
inputAdornedEnd: string;
|
|
36
|
+
}
|
|
37
|
+
export declare type FilledInputClassKey = keyof FilledInputClasses;
|
|
38
|
+
export declare function getFilledInputUtilityClass(slot: string): string;
|
|
39
|
+
declare const filledInputClasses: FilledInputClasses;
|
|
40
|
+
export default filledInputClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface FormControlClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `margin="normal"`. */
|
|
5
|
-
marginNormal: string;
|
|
6
|
-
/** Styles applied to the root element if `margin="dense"`. */
|
|
7
|
-
marginDense: string;
|
|
8
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
9
|
-
fullWidth: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type FormControlClassKey = keyof FormControlClasses;
|
|
12
|
-
export declare function getFormControlUtilityClasses(slot: string): string;
|
|
13
|
-
declare const formControlClasses: FormControlClasses;
|
|
14
|
-
export default formControlClasses;
|
|
1
|
+
export interface FormControlClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `margin="normal"`. */
|
|
5
|
+
marginNormal: string;
|
|
6
|
+
/** Styles applied to the root element if `margin="dense"`. */
|
|
7
|
+
marginDense: string;
|
|
8
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
9
|
+
fullWidth: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type FormControlClassKey = keyof FormControlClasses;
|
|
12
|
+
export declare function getFormControlUtilityClasses(slot: string): string;
|
|
13
|
+
declare const formControlClasses: FormControlClasses;
|
|
14
|
+
export default formControlClasses;
|
|
@@ -71,7 +71,7 @@ export const FormControlLabelRoot = styled('label', {
|
|
|
71
71
|
}, {
|
|
72
72
|
[`& .${formControlLabelClasses.label}`]: {
|
|
73
73
|
[`&.${formControlLabelClasses.disabled}`]: {
|
|
74
|
-
color: theme.palette.text.disabled
|
|
74
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface FormControlLabelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `labelPlacement="start"`. */
|
|
5
|
-
labelPlacementStart: string;
|
|
6
|
-
/** Styles applied to the root element if `labelPlacement="top"`. */
|
|
7
|
-
labelPlacementTop: string;
|
|
8
|
-
/** Styles applied to the root element if `labelPlacement="bottom"`. */
|
|
9
|
-
labelPlacementBottom: string;
|
|
10
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
11
|
-
disabled: string;
|
|
12
|
-
/** Styles applied to the label's Typography component. */
|
|
13
|
-
label: string;
|
|
14
|
-
/** State class applied to the root element if `error={true}`. */
|
|
15
|
-
error: string;
|
|
16
|
-
}
|
|
17
|
-
export declare type FormControlLabelClassKey = keyof FormControlLabelClasses;
|
|
18
|
-
export declare function getFormControlLabelUtilityClasses(slot: string): string;
|
|
19
|
-
declare const formControlLabelClasses: FormControlLabelClasses;
|
|
20
|
-
export default formControlLabelClasses;
|
|
1
|
+
export interface FormControlLabelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `labelPlacement="start"`. */
|
|
5
|
+
labelPlacementStart: string;
|
|
6
|
+
/** Styles applied to the root element if `labelPlacement="top"`. */
|
|
7
|
+
labelPlacementTop: string;
|
|
8
|
+
/** Styles applied to the root element if `labelPlacement="bottom"`. */
|
|
9
|
+
labelPlacementBottom: string;
|
|
10
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
11
|
+
disabled: string;
|
|
12
|
+
/** Styles applied to the label's Typography component. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** State class applied to the root element if `error={true}`. */
|
|
15
|
+
error: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type FormControlLabelClassKey = keyof FormControlLabelClasses;
|
|
18
|
+
export declare function getFormControlLabelUtilityClasses(slot: string): string;
|
|
19
|
+
declare const formControlLabelClasses: FormControlLabelClasses;
|
|
20
|
+
export default formControlLabelClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface FormGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `row={true}`. */
|
|
5
|
-
row: string;
|
|
6
|
-
/** State class applied to the root element if `error={true}`. */
|
|
7
|
-
error: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type FormGroupClassKey = keyof FormGroupClasses;
|
|
10
|
-
export declare function getFormGroupUtilityClass(slot: string): string;
|
|
11
|
-
declare const formGroupClasses: FormGroupClasses;
|
|
12
|
-
export default formGroupClasses;
|
|
1
|
+
export interface FormGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `row={true}`. */
|
|
5
|
+
row: string;
|
|
6
|
+
/** State class applied to the root element if `error={true}`. */
|
|
7
|
+
error: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type FormGroupClassKey = keyof FormGroupClasses;
|
|
10
|
+
export declare function getFormGroupUtilityClass(slot: string): string;
|
|
11
|
+
declare const formGroupClasses: FormGroupClasses;
|
|
12
|
+
export default formGroupClasses;
|
|
@@ -46,7 +46,7 @@ const FormHelperTextRoot = styled('p', {
|
|
|
46
46
|
theme,
|
|
47
47
|
ownerState
|
|
48
48
|
}) => _extends({
|
|
49
|
-
color: theme.palette.text.secondary
|
|
49
|
+
color: (theme.vars || theme).palette.text.secondary
|
|
50
50
|
}, theme.typography.caption, {
|
|
51
51
|
textAlign: 'left',
|
|
52
52
|
marginTop: 3,
|
|
@@ -54,10 +54,10 @@ const FormHelperTextRoot = styled('p', {
|
|
|
54
54
|
marginBottom: 0,
|
|
55
55
|
marginLeft: 0,
|
|
56
56
|
[`&.${formHelperTextClasses.disabled}`]: {
|
|
57
|
-
color: theme.palette.text.disabled
|
|
57
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
58
58
|
},
|
|
59
59
|
[`&.${formHelperTextClasses.error}`]: {
|
|
60
|
-
color: theme.palette.error.main
|
|
60
|
+
color: (theme.vars || theme).palette.error.main
|
|
61
61
|
}
|
|
62
62
|
}, ownerState.size === 'small' && {
|
|
63
63
|
marginTop: 4
|