@mui/material 6.0.0-alpha.4 → 6.0.0-alpha.6
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.d.ts +2 -2
- package/Accordion/Accordion.js +2 -2
- package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
- package/Alert/Alert.d.ts +2 -2
- package/Alert/Alert.js +2 -2
- package/Alert/alertClasses.d.ts +12 -12
- package/Avatar/Avatar.d.ts +1 -1
- package/Avatar/Avatar.js +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/Backdrop/Backdrop.js +1 -1
- package/Badge/Badge.d.ts +2 -2
- package/Badge/Badge.js +2 -2
- package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/Button/Button.js +1 -1
- package/Button/buttonClasses.d.ts +33 -33
- package/ButtonGroup/buttonGroupClasses.d.ts +17 -17
- package/CHANGELOG.md +86 -0
- package/Checkbox/Checkbox.js +3 -1
- package/Chip/chipClasses.d.ts +28 -26
- package/Chip/chipClasses.js +1 -1
- package/Collapse/Collapse.js +66 -35
- package/Dialog/Dialog.js +105 -61
- package/DialogActions/DialogActions.js +16 -12
- package/DialogContent/DialogContent.js +25 -15
- package/DialogContentText/DialogContentText.js +3 -2
- package/DialogTitle/DialogTitle.js +2 -2
- package/Divider/Divider.d.ts +1 -1
- package/Divider/Divider.js +1 -1
- package/Drawer/Drawer.js +73 -32
- package/Fab/Fab.js +1 -1
- package/FilledInput/FilledInput.d.ts +1 -0
- package/FilledInput/FilledInput.js +170 -87
- package/FormControlLabel/FormControlLabel.d.ts +21 -14
- package/FormControlLabel/FormControlLabel.js +22 -4
- package/FormHelperText/FormHelperText.js +2 -2
- package/FormLabel/FormLabel.js +23 -13
- package/Grow/Grow.js +3 -1
- package/Icon/Icon.js +63 -23
- package/ImageList/ImageList.js +2 -2
- package/ImageListItem/ImageListItem.js +2 -2
- package/ImageListItemBar/ImageListItemBar.js +2 -2
- package/Input/Input.d.ts +1 -0
- package/Input/Input.js +84 -61
- package/InputAdornment/InputAdornment.js +37 -21
- package/InputBase/InputBase.js +58 -28
- package/InputLabel/InputLabel.js +120 -58
- package/Link/Link.js +99 -54
- package/Link/getTextDecoration.d.ts +2 -8
- package/Link/getTextDecoration.js +16 -8
- package/List/List.js +22 -13
- package/ListItem/ListItem.js +2 -2
- package/ListItemAvatar/ListItemAvatar.js +2 -2
- package/ListItemButton/ListItemButton.js +3 -2
- package/ListItemIcon/ListItemIcon.js +14 -9
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/ListItemText/ListItemText.js +2 -2
- package/ListSubheader/ListSubheader.js +5 -3
- package/Menu/Menu.js +3 -2
- package/MenuItem/MenuItem.js +47 -27
- package/NativeSelect/NativeSelectInput.js +78 -49
- package/OutlinedInput/NotchedOutline.js +60 -43
- package/OutlinedInput/OutlinedInput.js +97 -39
- package/Pagination/Pagination.js +2 -2
- package/PaginationItem/PaginationItem.d.ts +26 -14
- package/PaginationItem/PaginationItem.js +64 -20
- package/PaginationItem/paginationItemClasses.d.ts +4 -4
- package/Paper/Paper.js +44 -21
- package/Radio/Radio.js +5 -3
- package/Radio/RadioButtonIcon.js +1 -1
- package/Rating/Rating.js +3 -2
- package/Select/Select.js +2 -1
- package/Select/SelectInput.js +8 -6
- package/Skeleton/Skeleton.js +109 -61
- package/Slider/Slider.d.ts +2 -2
- package/Slider/Slider.js +2 -2
- package/Snackbar/Snackbar.js +66 -40
- package/SnackbarContent/SnackbarContent.js +2 -2
- package/SpeedDial/SpeedDial.d.ts +28 -1
- package/SpeedDial/SpeedDial.js +107 -49
- package/SpeedDialAction/SpeedDialAction.js +50 -24
- package/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/StepConnector/stepConnectorClasses.d.ts +2 -2
- package/StepLabel/StepLabel.d.ts +3 -3
- package/StepLabel/StepLabel.js +3 -3
- package/SvgIcon/SvgIcon.js +73 -21
- package/SwipeableDrawer/SwipeArea.js +39 -18
- package/Tab/Tab.js +127 -55
- package/TabScrollButton/TabScrollButton.js +27 -15
- package/Table/Table.js +2 -2
- package/TableBody/TableBody.js +2 -2
- package/TableCell/TableCell.js +2 -2
- package/TableContainer/TableContainer.js +2 -2
- package/TableFooter/TableFooter.js +2 -2
- package/TableHead/TableHead.js +2 -2
- package/TablePagination/TablePagination.js +2 -2
- package/TableRow/TableRow.js +2 -2
- package/TableSortLabel/TableSortLabel.js +2 -2
- package/Tabs/Tabs.js +107 -54
- package/TextField/TextField.js +2 -2
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +2 -2
- package/Toolbar/Toolbar.js +3 -7
- package/Tooltip/Tooltip.js +185 -88
- package/Typography/Typography.js +89 -39
- package/index.js +1 -1
- package/internal/SwitchBase.js +39 -11
- package/modern/Accordion/Accordion.js +2 -2
- package/modern/Alert/Alert.js +2 -2
- package/modern/Avatar/Avatar.js +1 -1
- package/modern/Backdrop/Backdrop.js +1 -1
- package/modern/Badge/Badge.js +2 -2
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/modern/Button/Button.js +1 -1
- package/modern/Checkbox/Checkbox.js +3 -1
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/Collapse/Collapse.js +66 -35
- package/modern/Dialog/Dialog.js +105 -61
- package/modern/DialogActions/DialogActions.js +16 -12
- package/modern/DialogContent/DialogContent.js +25 -15
- package/modern/DialogContentText/DialogContentText.js +3 -2
- package/modern/DialogTitle/DialogTitle.js +2 -2
- package/modern/Divider/Divider.js +1 -1
- package/modern/Drawer/Drawer.js +73 -32
- package/modern/Fab/Fab.js +1 -1
- package/modern/FilledInput/FilledInput.js +170 -87
- package/modern/FormControlLabel/FormControlLabel.js +22 -4
- package/modern/FormHelperText/FormHelperText.js +2 -2
- package/modern/FormLabel/FormLabel.js +23 -13
- package/modern/Grow/Grow.js +3 -1
- package/modern/Icon/Icon.js +63 -23
- package/modern/ImageList/ImageList.js +2 -2
- package/modern/ImageListItem/ImageListItem.js +2 -2
- package/modern/ImageListItemBar/ImageListItemBar.js +2 -2
- package/modern/Input/Input.js +84 -61
- package/modern/InputAdornment/InputAdornment.js +37 -21
- package/modern/InputBase/InputBase.js +58 -28
- package/modern/InputLabel/InputLabel.js +120 -58
- package/modern/Link/Link.js +99 -54
- package/modern/Link/getTextDecoration.js +16 -8
- package/modern/List/List.js +22 -13
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemAvatar/ListItemAvatar.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +3 -2
- package/modern/ListItemIcon/ListItemIcon.js +14 -9
- package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
- package/modern/ListItemText/ListItemText.js +2 -2
- package/modern/ListSubheader/ListSubheader.js +5 -3
- package/modern/Menu/Menu.js +3 -2
- package/modern/MenuItem/MenuItem.js +47 -27
- package/modern/NativeSelect/NativeSelectInput.js +78 -49
- package/modern/OutlinedInput/NotchedOutline.js +60 -43
- package/modern/OutlinedInput/OutlinedInput.js +97 -39
- package/modern/Pagination/Pagination.js +2 -2
- package/modern/PaginationItem/PaginationItem.js +64 -20
- package/modern/Paper/Paper.js +44 -21
- package/modern/Radio/Radio.js +5 -3
- package/modern/Radio/RadioButtonIcon.js +1 -1
- package/modern/Rating/Rating.js +3 -2
- package/modern/Select/Select.js +2 -1
- package/modern/Select/SelectInput.js +8 -6
- package/modern/Skeleton/Skeleton.js +109 -61
- package/modern/Slider/Slider.js +2 -2
- package/modern/Snackbar/Snackbar.js +66 -40
- package/modern/SnackbarContent/SnackbarContent.js +2 -2
- package/modern/SpeedDial/SpeedDial.js +107 -49
- package/modern/SpeedDialAction/SpeedDialAction.js +50 -24
- package/modern/SpeedDialIcon/SpeedDialIcon.js +37 -16
- package/modern/StepLabel/StepLabel.js +3 -3
- package/modern/SvgIcon/SvgIcon.js +73 -21
- package/modern/SwipeableDrawer/SwipeArea.js +39 -18
- package/modern/Tab/Tab.js +127 -55
- package/modern/TabScrollButton/TabScrollButton.js +27 -15
- package/modern/Table/Table.js +2 -2
- package/modern/TableBody/TableBody.js +2 -2
- package/modern/TableCell/TableCell.js +2 -2
- package/modern/TableContainer/TableContainer.js +2 -2
- package/modern/TableFooter/TableFooter.js +2 -2
- package/modern/TableHead/TableHead.js +2 -2
- package/modern/TablePagination/TablePagination.js +2 -2
- package/modern/TableRow/TableRow.js +2 -2
- package/modern/TableSortLabel/TableSortLabel.js +2 -2
- package/modern/Tabs/Tabs.js +107 -54
- package/modern/TextField/TextField.js +2 -2
- package/modern/Toolbar/Toolbar.js +3 -7
- package/modern/Tooltip/Tooltip.js +185 -88
- package/modern/Typography/Typography.js +89 -39
- package/modern/index.js +1 -1
- package/modern/internal/SwitchBase.js +39 -11
- package/node/Accordion/Accordion.js +2 -2
- package/node/Alert/Alert.js +2 -2
- package/node/Avatar/Avatar.js +1 -1
- package/node/Backdrop/Backdrop.js +1 -1
- package/node/Badge/Badge.js +2 -2
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
- package/node/Button/Button.js +2 -2
- package/node/Checkbox/Checkbox.js +3 -1
- package/node/Chip/chipClasses.js +1 -1
- package/node/Collapse/Collapse.js +70 -39
- package/node/Dialog/Dialog.js +110 -66
- package/node/DialogActions/DialogActions.js +18 -14
- package/node/DialogContent/DialogContent.js +27 -17
- package/node/DialogContentText/DialogContentText.js +6 -5
- package/node/DialogTitle/DialogTitle.js +4 -4
- package/node/Divider/Divider.js +1 -1
- package/node/Drawer/Drawer.js +78 -37
- package/node/Fab/Fab.js +2 -2
- package/node/FilledInput/FilledInput.js +176 -91
- package/node/FormControlLabel/FormControlLabel.js +23 -5
- package/node/FormHelperText/FormHelperText.js +4 -4
- package/node/FormLabel/FormLabel.js +26 -16
- package/node/Grow/Grow.js +3 -1
- package/node/Icon/Icon.js +65 -25
- package/node/ImageList/ImageList.js +4 -4
- package/node/ImageListItem/ImageListItem.js +4 -4
- package/node/ImageListItemBar/ImageListItemBar.js +8 -8
- package/node/Input/Input.js +87 -64
- package/node/InputAdornment/InputAdornment.js +39 -23
- package/node/InputBase/InputBase.js +61 -31
- package/node/InputLabel/InputLabel.js +123 -61
- package/node/Link/Link.js +101 -56
- package/node/Link/getTextDecoration.js +18 -10
- package/node/List/List.js +24 -15
- package/node/ListItem/ListItem.js +5 -5
- package/node/ListItemAvatar/ListItemAvatar.js +4 -4
- package/node/ListItemButton/ListItemButton.js +6 -5
- package/node/ListItemIcon/ListItemIcon.js +16 -11
- package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
- package/node/ListItemText/ListItemText.js +4 -4
- package/node/ListSubheader/ListSubheader.js +7 -5
- package/node/Menu/Menu.js +8 -7
- package/node/MenuItem/MenuItem.js +50 -30
- package/node/NativeSelect/NativeSelectInput.js +80 -53
- package/node/OutlinedInput/NotchedOutline.js +64 -47
- package/node/OutlinedInput/OutlinedInput.js +101 -43
- package/node/Pagination/Pagination.js +5 -5
- package/node/PaginationItem/PaginationItem.js +65 -20
- package/node/Paper/Paper.js +49 -28
- package/node/Radio/Radio.js +6 -4
- package/node/Radio/RadioButtonIcon.js +2 -2
- package/node/Rating/Rating.js +9 -8
- package/node/Select/Select.js +6 -5
- package/node/Select/SelectInput.js +9 -7
- package/node/Skeleton/Skeleton.js +113 -65
- package/node/Slider/Slider.js +2 -2
- package/node/Snackbar/Snackbar.js +68 -42
- package/node/SnackbarContent/SnackbarContent.js +6 -6
- package/node/SpeedDial/SpeedDial.js +111 -53
- package/node/SpeedDialAction/SpeedDialAction.js +54 -28
- package/node/SpeedDialIcon/SpeedDialIcon.js +39 -18
- package/node/StepLabel/StepLabel.js +3 -3
- package/node/SvgIcon/SvgIcon.js +79 -24
- package/node/SwipeableDrawer/SwipeArea.js +41 -20
- package/node/Tab/Tab.js +129 -57
- package/node/TabScrollButton/TabScrollButton.js +29 -17
- package/node/Table/Table.js +4 -4
- package/node/TableBody/TableBody.js +4 -4
- package/node/TableCell/TableCell.js +4 -4
- package/node/TableContainer/TableContainer.js +4 -4
- package/node/TableFooter/TableFooter.js +4 -4
- package/node/TableHead/TableHead.js +4 -4
- package/node/TablePagination/TablePagination.js +10 -10
- package/node/TableRow/TableRow.js +4 -4
- package/node/TableSortLabel/TableSortLabel.js +5 -5
- package/node/Tabs/Tabs.js +113 -60
- package/node/TextField/TextField.js +4 -4
- package/node/Toolbar/Toolbar.js +5 -9
- package/node/Tooltip/Tooltip.js +189 -92
- package/node/Typography/Typography.js +90 -40
- package/node/index.js +1 -1
- package/node/internal/SwitchBase.js +41 -13
- package/package.json +6 -6
- package/umd/material-ui.development.js +2777 -1334
- package/umd/material-ui.production.min.js +4 -4
|
@@ -9,11 +9,12 @@ import refType from '@mui/utils/refType';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import InputBase from '../InputBase';
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import rootShouldForwardProp from '../styles/rootShouldForwardProp';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
14
|
import filledInputClasses, { getFilledInputUtilityClass } from './filledInputClasses';
|
|
15
|
-
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot,
|
|
15
|
+
import { rootOverridesResolver as inputBaseRootOverridesResolver, inputOverridesResolver as inputBaseInputOverridesResolver, InputBaseRoot, InputBaseInput } from '../InputBase/InputBase';
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const useThemeProps = createUseThemeProps('MuiFilledInput');
|
|
17
18
|
const useUtilityClasses = ownerState => {
|
|
18
19
|
const {
|
|
19
20
|
classes,
|
|
@@ -37,15 +38,14 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
37
38
|
return [...inputBaseRootOverridesResolver(props, styles), !ownerState.disableUnderline && styles.underline];
|
|
38
39
|
}
|
|
39
40
|
})(({
|
|
40
|
-
theme
|
|
41
|
-
ownerState
|
|
41
|
+
theme
|
|
42
42
|
}) => {
|
|
43
43
|
const light = theme.palette.mode === 'light';
|
|
44
44
|
const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
|
|
45
45
|
const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';
|
|
46
46
|
const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';
|
|
47
47
|
const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';
|
|
48
|
-
return
|
|
48
|
+
return {
|
|
49
49
|
position: 'relative',
|
|
50
50
|
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,
|
|
51
51
|
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
|
@@ -66,76 +66,122 @@ const FilledInputRoot = styled(InputBaseRoot, {
|
|
|
66
66
|
},
|
|
67
67
|
[`&.${filledInputClasses.disabled}`]: {
|
|
68
68
|
backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground
|
|
69
|
-
}
|
|
70
|
-
}, !ownerState.disableUnderline && {
|
|
71
|
-
'&::after': {
|
|
72
|
-
borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color || 'primary']?.main}`,
|
|
73
|
-
left: 0,
|
|
74
|
-
bottom: 0,
|
|
75
|
-
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
76
|
-
content: '""',
|
|
77
|
-
position: 'absolute',
|
|
78
|
-
right: 0,
|
|
79
|
-
transform: 'scaleX(0)',
|
|
80
|
-
transition: theme.transitions.create('transform', {
|
|
81
|
-
duration: theme.transitions.duration.shorter,
|
|
82
|
-
easing: theme.transitions.easing.easeOut
|
|
83
|
-
}),
|
|
84
|
-
pointerEvents: 'none' // Transparent to the hover style.
|
|
85
|
-
},
|
|
86
|
-
[`&.${filledInputClasses.focused}:after`]: {
|
|
87
|
-
// translateX(0) is a workaround for Safari transform scale bug
|
|
88
|
-
// See https://github.com/mui/material-ui/issues/31766
|
|
89
|
-
transform: 'scaleX(1) translateX(0)'
|
|
90
69
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
70
|
+
variants: [{
|
|
71
|
+
props: ({
|
|
72
|
+
ownerState
|
|
73
|
+
}) => !ownerState.disableUnderline,
|
|
74
|
+
style: {
|
|
75
|
+
'&::after': {
|
|
76
|
+
left: 0,
|
|
77
|
+
bottom: 0,
|
|
78
|
+
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
79
|
+
content: '""',
|
|
80
|
+
position: 'absolute',
|
|
81
|
+
right: 0,
|
|
82
|
+
transform: 'scaleX(0)',
|
|
83
|
+
transition: theme.transitions.create('transform', {
|
|
84
|
+
duration: theme.transitions.duration.shorter,
|
|
85
|
+
easing: theme.transitions.easing.easeOut
|
|
86
|
+
}),
|
|
87
|
+
pointerEvents: 'none' // Transparent to the hover style.
|
|
88
|
+
},
|
|
89
|
+
[`&.${filledInputClasses.focused}:after`]: {
|
|
90
|
+
// translateX(0) is a workaround for Safari transform scale bug
|
|
91
|
+
// See https://github.com/mui/material-ui/issues/31766
|
|
92
|
+
transform: 'scaleX(1) translateX(0)'
|
|
93
|
+
},
|
|
94
|
+
[`&.${filledInputClasses.error}`]: {
|
|
95
|
+
'&::before, &::after': {
|
|
96
|
+
borderBottomColor: (theme.vars || theme).palette.error.main
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
'&::before': {
|
|
100
|
+
borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,
|
|
101
|
+
left: 0,
|
|
102
|
+
bottom: 0,
|
|
103
|
+
// Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
|
|
104
|
+
content: '"\\00a0"',
|
|
105
|
+
position: 'absolute',
|
|
106
|
+
right: 0,
|
|
107
|
+
transition: theme.transitions.create('border-bottom-color', {
|
|
108
|
+
duration: theme.transitions.duration.shorter
|
|
109
|
+
}),
|
|
110
|
+
pointerEvents: 'none' // Transparent to the hover style.
|
|
111
|
+
},
|
|
112
|
+
[`&:hover:not(.${filledInputClasses.disabled}, .${filledInputClasses.error}):before`]: {
|
|
113
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`
|
|
114
|
+
},
|
|
115
|
+
[`&.${filledInputClasses.disabled}:before`]: {
|
|
116
|
+
borderBottomStyle: 'dotted'
|
|
117
|
+
}
|
|
94
118
|
}
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
119
|
+
}, ...Object.entries(theme.palette).filter(([, value]) => value.main) // check all the used fields in the style below
|
|
120
|
+
.map(([color]) => ({
|
|
121
|
+
props: {
|
|
122
|
+
disableUnderline: false,
|
|
123
|
+
color
|
|
124
|
+
},
|
|
125
|
+
style: {
|
|
126
|
+
'&::after': {
|
|
127
|
+
borderBottom: `2px solid ${(theme.vars || theme).palette[color]?.main}`
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
})), {
|
|
131
|
+
props: ({
|
|
132
|
+
ownerState
|
|
133
|
+
}) => ownerState.startAdornment,
|
|
134
|
+
style: {
|
|
135
|
+
paddingLeft: 12
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
138
|
+
props: ({
|
|
139
|
+
ownerState
|
|
140
|
+
}) => ownerState.endAdornment,
|
|
141
|
+
style: {
|
|
142
|
+
paddingRight: 12
|
|
143
|
+
}
|
|
144
|
+
}, {
|
|
145
|
+
props: ({
|
|
146
|
+
ownerState
|
|
147
|
+
}) => ownerState.multiline,
|
|
148
|
+
style: {
|
|
149
|
+
padding: '25px 12px 8px'
|
|
150
|
+
}
|
|
151
|
+
}, {
|
|
152
|
+
props: ({
|
|
153
|
+
ownerState,
|
|
154
|
+
size
|
|
155
|
+
}) => ownerState.multiline && size === 'small',
|
|
156
|
+
style: {
|
|
157
|
+
paddingTop: 21,
|
|
158
|
+
paddingBottom: 4
|
|
159
|
+
}
|
|
160
|
+
}, {
|
|
161
|
+
props: ({
|
|
162
|
+
ownerState
|
|
163
|
+
}) => ownerState.multiline && ownerState.hiddenLabel,
|
|
164
|
+
style: {
|
|
165
|
+
paddingTop: 16,
|
|
166
|
+
paddingBottom: 17
|
|
167
|
+
}
|
|
168
|
+
}, {
|
|
169
|
+
props: ({
|
|
170
|
+
ownerState
|
|
171
|
+
}) => ownerState.multiline && ownerState.hiddenLabel && ownerState.size === 'small',
|
|
172
|
+
style: {
|
|
173
|
+
paddingTop: 8,
|
|
174
|
+
paddingBottom: 9
|
|
175
|
+
}
|
|
176
|
+
}]
|
|
177
|
+
};
|
|
131
178
|
});
|
|
132
179
|
const FilledInputInput = styled(InputBaseInput, {
|
|
133
180
|
name: 'MuiFilledInput',
|
|
134
181
|
slot: 'Input',
|
|
135
182
|
overridesResolver: inputBaseInputOverridesResolver
|
|
136
183
|
})(({
|
|
137
|
-
theme
|
|
138
|
-
ownerState
|
|
184
|
+
theme
|
|
139
185
|
}) => _extends({
|
|
140
186
|
paddingTop: 25,
|
|
141
187
|
paddingRight: 12,
|
|
@@ -161,24 +207,56 @@ const FilledInputInput = styled(InputBaseInput, {
|
|
|
161
207
|
caretColor: '#fff'
|
|
162
208
|
}
|
|
163
209
|
}
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
210
|
+
}, {
|
|
211
|
+
variants: [{
|
|
212
|
+
props: {
|
|
213
|
+
size: 'small'
|
|
214
|
+
},
|
|
215
|
+
style: {
|
|
216
|
+
paddingTop: 21,
|
|
217
|
+
paddingBottom: 4
|
|
218
|
+
}
|
|
219
|
+
}, {
|
|
220
|
+
props: ({
|
|
221
|
+
ownerState
|
|
222
|
+
}) => ownerState.hiddenLabel,
|
|
223
|
+
style: {
|
|
224
|
+
paddingTop: 16,
|
|
225
|
+
paddingBottom: 17
|
|
226
|
+
}
|
|
227
|
+
}, {
|
|
228
|
+
props: ({
|
|
229
|
+
ownerState
|
|
230
|
+
}) => ownerState.startAdornment,
|
|
231
|
+
style: {
|
|
232
|
+
paddingLeft: 0
|
|
233
|
+
}
|
|
234
|
+
}, {
|
|
235
|
+
props: ({
|
|
236
|
+
ownerState
|
|
237
|
+
}) => ownerState.endAdornment,
|
|
238
|
+
style: {
|
|
239
|
+
paddingRight: 0
|
|
240
|
+
}
|
|
241
|
+
}, {
|
|
242
|
+
props: ({
|
|
243
|
+
ownerState
|
|
244
|
+
}) => ownerState.hiddenLabel && ownerState.size === 'small',
|
|
245
|
+
style: {
|
|
246
|
+
paddingTop: 8,
|
|
247
|
+
paddingBottom: 9
|
|
248
|
+
}
|
|
249
|
+
}, {
|
|
250
|
+
props: ({
|
|
251
|
+
ownerState
|
|
252
|
+
}) => ownerState.multiline,
|
|
253
|
+
style: {
|
|
254
|
+
paddingTop: 0,
|
|
255
|
+
paddingBottom: 0,
|
|
256
|
+
paddingLeft: 0,
|
|
257
|
+
paddingRight: 0
|
|
258
|
+
}
|
|
259
|
+
}]
|
|
182
260
|
}));
|
|
183
261
|
const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps, ref) {
|
|
184
262
|
const props = useThemeProps({
|
|
@@ -186,6 +264,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
186
264
|
name: 'MuiFilledInput'
|
|
187
265
|
});
|
|
188
266
|
const {
|
|
267
|
+
disableUnderline = false,
|
|
189
268
|
components = {},
|
|
190
269
|
componentsProps: componentsPropsProp,
|
|
191
270
|
fullWidth = false,
|
|
@@ -198,6 +277,7 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
|
|
|
198
277
|
} = props,
|
|
199
278
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
200
279
|
const ownerState = _extends({}, props, {
|
|
280
|
+
disableUnderline,
|
|
201
281
|
fullWidth,
|
|
202
282
|
inputComponent,
|
|
203
283
|
multiline,
|
|
@@ -292,6 +372,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
292
372
|
disabled: PropTypes.bool,
|
|
293
373
|
/**
|
|
294
374
|
* If `true`, the input will not have an underline.
|
|
375
|
+
* @default false
|
|
295
376
|
*/
|
|
296
377
|
disableUnderline: PropTypes.bool,
|
|
297
378
|
/**
|
|
@@ -423,5 +504,7 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
|
|
|
423
504
|
*/
|
|
424
505
|
value: PropTypes.any
|
|
425
506
|
} : void 0;
|
|
426
|
-
FilledInput
|
|
507
|
+
if (FilledInput) {
|
|
508
|
+
FilledInput.muiName = 'Input';
|
|
509
|
+
}
|
|
427
510
|
export default FilledInput;
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
3
|
import { Theme, InternalStandardProps as StandardProps } from '..';
|
|
4
|
-
import { TypographyProps } from '../Typography';
|
|
4
|
+
import Typography, { TypographyProps } from '../Typography';
|
|
5
5
|
import { FormControlLabelClasses } from './formControlLabelClasses';
|
|
6
|
+
import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
|
|
7
|
+
|
|
8
|
+
export interface FormControlLabelSlots {
|
|
9
|
+
/**
|
|
10
|
+
* The component that renders the label.
|
|
11
|
+
* This is unused if `disableTypography` is true.
|
|
12
|
+
* @default Typography
|
|
13
|
+
*/
|
|
14
|
+
typography?: React.ElementType;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type FormControlLabelSlotsAndSlotProps = CreateSlotsAndSlotProps<
|
|
18
|
+
FormControlLabelSlots,
|
|
19
|
+
{
|
|
20
|
+
typography: SlotProps<typeof Typography, {}, FormControlLabelProps>;
|
|
21
|
+
}
|
|
22
|
+
>;
|
|
6
23
|
|
|
7
24
|
export interface FormControlLabelProps
|
|
8
|
-
extends StandardProps<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'onChange'
|
|
25
|
+
extends StandardProps<React.LabelHTMLAttributes<HTMLLabelElement>, 'children' | 'onChange'>,
|
|
26
|
+
FormControlLabelSlotsAndSlotProps {
|
|
9
27
|
/**
|
|
10
28
|
* If `true`, the component appears selected.
|
|
11
29
|
*/
|
|
@@ -17,6 +35,7 @@ export interface FormControlLabelProps
|
|
|
17
35
|
/**
|
|
18
36
|
* The props used for each slot inside.
|
|
19
37
|
* @default {}
|
|
38
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
20
39
|
*/
|
|
21
40
|
componentsProps?: {
|
|
22
41
|
/**
|
|
@@ -63,18 +82,6 @@ export interface FormControlLabelProps
|
|
|
63
82
|
* If `true`, the label will indicate that the `input` is required.
|
|
64
83
|
*/
|
|
65
84
|
required?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* The props used for each slot inside.
|
|
68
|
-
* @default {}
|
|
69
|
-
*/
|
|
70
|
-
slotProps?: {
|
|
71
|
-
/**
|
|
72
|
-
* Props applied to the Typography wrapper of the passed label.
|
|
73
|
-
* This is unused if disableTypography is true.
|
|
74
|
-
* @default {}
|
|
75
|
-
*/
|
|
76
|
-
typography?: TypographyProps;
|
|
77
|
-
};
|
|
78
85
|
/**
|
|
79
86
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
80
87
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
5
|
+
const _excluded = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slots", "slotProps", "value"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
@@ -15,6 +15,7 @@ import Typography from '../Typography';
|
|
|
15
15
|
import capitalize from '../utils/capitalize';
|
|
16
16
|
import formControlLabelClasses, { getFormControlLabelUtilityClasses } from './formControlLabelClasses';
|
|
17
17
|
import formControlState from '../FormControl/formControlState';
|
|
18
|
+
import useSlot from '../utils/useSlot';
|
|
18
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
20
|
const useThemeProps = createUseThemeProps('MuiFormControlLabel');
|
|
20
21
|
const useUtilityClasses = ownerState => {
|
|
@@ -124,6 +125,7 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
124
125
|
label: labelProp,
|
|
125
126
|
labelPlacement = 'end',
|
|
126
127
|
required: requiredProp,
|
|
128
|
+
slots = {},
|
|
127
129
|
slotProps = {}
|
|
128
130
|
} = props,
|
|
129
131
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
@@ -151,10 +153,18 @@ const FormControlLabel = /*#__PURE__*/React.forwardRef(function FormControlLabel
|
|
|
151
153
|
error: fcs.error
|
|
152
154
|
});
|
|
153
155
|
const classes = useUtilityClasses(ownerState);
|
|
154
|
-
const
|
|
156
|
+
const externalForwardedProps = {
|
|
157
|
+
slots,
|
|
158
|
+
slotProps: _extends({}, componentsProps, slotProps)
|
|
159
|
+
};
|
|
160
|
+
const [TypographySlot, typographySlotProps] = useSlot('typography', {
|
|
161
|
+
elementType: Typography,
|
|
162
|
+
externalForwardedProps,
|
|
163
|
+
ownerState
|
|
164
|
+
});
|
|
155
165
|
let label = labelProp;
|
|
156
166
|
if (label != null && label.type !== Typography && !disableTypography) {
|
|
157
|
-
label = /*#__PURE__*/_jsx(
|
|
167
|
+
label = /*#__PURE__*/_jsx(TypographySlot, _extends({
|
|
158
168
|
component: "span"
|
|
159
169
|
}, typographySlotProps, {
|
|
160
170
|
className: clsx(classes.label, typographySlotProps?.className),
|
|
@@ -197,6 +207,7 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
|
|
|
197
207
|
/**
|
|
198
208
|
* The props used for each slot inside.
|
|
199
209
|
* @default {}
|
|
210
|
+
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
200
211
|
*/
|
|
201
212
|
componentsProps: PropTypes.shape({
|
|
202
213
|
typography: PropTypes.object
|
|
@@ -246,7 +257,14 @@ process.env.NODE_ENV !== "production" ? FormControlLabel.propTypes /* remove-pro
|
|
|
246
257
|
* @default {}
|
|
247
258
|
*/
|
|
248
259
|
slotProps: PropTypes.shape({
|
|
249
|
-
typography: PropTypes.object
|
|
260
|
+
typography: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
261
|
+
}),
|
|
262
|
+
/**
|
|
263
|
+
* The components used for each slot inside.
|
|
264
|
+
* @default {}
|
|
265
|
+
*/
|
|
266
|
+
slots: PropTypes.shape({
|
|
267
|
+
typography: PropTypes.elementType
|
|
250
268
|
}),
|
|
251
269
|
/**
|
|
252
270
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
@@ -10,11 +10,11 @@ import clsx from 'clsx';
|
|
|
10
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
11
11
|
import formControlState from '../FormControl/formControlState';
|
|
12
12
|
import useFormControl from '../FormControl/useFormControl';
|
|
13
|
-
import styled from '../
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
14
14
|
import capitalize from '../utils/capitalize';
|
|
15
15
|
import formHelperTextClasses, { getFormHelperTextUtilityClasses } from './formHelperTextClasses';
|
|
16
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
17
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
const useThemeProps = createUseThemeProps('MuiFormHelperText');
|
|
18
18
|
const useUtilityClasses = ownerState => {
|
|
19
19
|
const {
|
|
20
20
|
classes,
|
package/FormLabel/FormLabel.js
CHANGED
|
@@ -10,10 +10,10 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
10
10
|
import formControlState from '../FormControl/formControlState';
|
|
11
11
|
import useFormControl from '../FormControl/useFormControl';
|
|
12
12
|
import capitalize from '../utils/capitalize';
|
|
13
|
-
import
|
|
14
|
-
import styled from '../styles/styled';
|
|
13
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
15
14
|
import formLabelClasses, { getFormLabelUtilityClasses } from './formLabelClasses';
|
|
16
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
const useThemeProps = createUseThemeProps('MuiFormLabel');
|
|
17
17
|
const useUtilityClasses = ownerState => {
|
|
18
18
|
const {
|
|
19
19
|
classes,
|
|
@@ -39,23 +39,33 @@ export const FormLabelRoot = styled('label', {
|
|
|
39
39
|
return _extends({}, styles.root, ownerState.color === 'secondary' && styles.colorSecondary, ownerState.filled && styles.filled);
|
|
40
40
|
}
|
|
41
41
|
})(({
|
|
42
|
-
theme
|
|
43
|
-
ownerState
|
|
42
|
+
theme
|
|
44
43
|
}) => _extends({
|
|
45
44
|
color: (theme.vars || theme).palette.text.secondary
|
|
46
45
|
}, theme.typography.body1, {
|
|
47
46
|
lineHeight: '1.4375em',
|
|
48
47
|
padding: 0,
|
|
49
48
|
position: 'relative',
|
|
50
|
-
[
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main).map(([color]) => ({
|
|
50
|
+
props: {
|
|
51
|
+
color
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
[`&.${formLabelClasses.focused}`]: {
|
|
55
|
+
color: (theme.vars || theme).palette[color].main
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
})), {
|
|
59
|
+
props: {},
|
|
60
|
+
style: {
|
|
61
|
+
[`&.${formLabelClasses.disabled}`]: {
|
|
62
|
+
color: (theme.vars || theme).palette.text.disabled
|
|
63
|
+
},
|
|
64
|
+
[`&.${formLabelClasses.error}`]: {
|
|
65
|
+
color: (theme.vars || theme).palette.error.main
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}]
|
|
59
69
|
}));
|
|
60
70
|
const AsteriskComponent = styled('span', {
|
|
61
71
|
name: 'MuiFormLabel',
|
package/Grow/Grow.js
CHANGED
package/Icon/Icon.js
CHANGED
|
@@ -7,11 +7,11 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import composeClasses from '@mui/utils/composeClasses';
|
|
10
|
-
import styled from '../styles/styled';
|
|
11
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
12
10
|
import capitalize from '../utils/capitalize';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getIconUtilityClass } from './iconClasses';
|
|
14
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
const useThemeProps = createUseThemeProps('MuiIcon');
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
color,
|
|
@@ -33,8 +33,7 @@ const IconRoot = styled('span', {
|
|
|
33
33
|
return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
|
|
34
34
|
}
|
|
35
35
|
})(({
|
|
36
|
-
theme
|
|
37
|
-
ownerState
|
|
36
|
+
theme
|
|
38
37
|
}) => ({
|
|
39
38
|
userSelect: 'none',
|
|
40
39
|
width: '1em',
|
|
@@ -47,24 +46,63 @@ const IconRoot = styled('span', {
|
|
|
47
46
|
textAlign: 'center',
|
|
48
47
|
// support non-square icon
|
|
49
48
|
flexShrink: 0,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
variants: [{
|
|
50
|
+
props: {
|
|
51
|
+
fontSize: 'inherit'
|
|
52
|
+
},
|
|
53
|
+
style: {
|
|
54
|
+
fontSize: 'inherit'
|
|
55
|
+
}
|
|
56
|
+
}, {
|
|
57
|
+
props: {
|
|
58
|
+
fontSize: 'small'
|
|
59
|
+
},
|
|
60
|
+
style: {
|
|
61
|
+
fontSize: theme.typography.pxToRem(20)
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
props: {
|
|
65
|
+
fontSize: 'medium'
|
|
66
|
+
},
|
|
67
|
+
style: {
|
|
68
|
+
fontSize: theme.typography.pxToRem(24)
|
|
69
|
+
}
|
|
70
|
+
}, {
|
|
71
|
+
props: {
|
|
72
|
+
fontSize: 'large'
|
|
73
|
+
},
|
|
74
|
+
style: {
|
|
75
|
+
fontSize: theme.typography.pxToRem(36)
|
|
76
|
+
}
|
|
77
|
+
}, {
|
|
78
|
+
props: {
|
|
79
|
+
color: 'action'
|
|
80
|
+
},
|
|
81
|
+
style: {
|
|
82
|
+
color: (theme.vars || theme).palette.action.active
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
props: {
|
|
86
|
+
color: 'disabled'
|
|
87
|
+
},
|
|
88
|
+
style: {
|
|
89
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
props: {
|
|
93
|
+
color: 'inherit'
|
|
94
|
+
},
|
|
95
|
+
style: {
|
|
96
|
+
color: undefined
|
|
97
|
+
}
|
|
98
|
+
}, ...Object.entries(theme.palette).filter(([, palette]) => palette.main).map(([color]) => ({
|
|
99
|
+
props: {
|
|
100
|
+
color
|
|
101
|
+
},
|
|
102
|
+
style: {
|
|
103
|
+
color: (theme.vars || theme).palette[color].main
|
|
104
|
+
}
|
|
105
|
+
}))]
|
|
68
106
|
}));
|
|
69
107
|
const Icon = /*#__PURE__*/React.forwardRef(function Icon(inProps, ref) {
|
|
70
108
|
const props = useThemeProps({
|
|
@@ -142,5 +180,7 @@ process.env.NODE_ENV !== "production" ? Icon.propTypes /* remove-proptypes */ =
|
|
|
142
180
|
*/
|
|
143
181
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
144
182
|
} : void 0;
|
|
145
|
-
Icon
|
|
183
|
+
if (Icon) {
|
|
184
|
+
Icon.muiName = 'Icon';
|
|
185
|
+
}
|
|
146
186
|
export default Icon;
|
package/ImageList/ImageList.js
CHANGED
|
@@ -8,11 +8,11 @@ import integerPropType from '@mui/utils/integerPropType';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import styled from '../
|
|
12
|
-
import useThemeProps from '../styles/useThemeProps';
|
|
11
|
+
import { styled, createUseThemeProps } from '../zero-styled';
|
|
13
12
|
import { getImageListUtilityClass } from './imageListClasses';
|
|
14
13
|
import ImageListContext from './ImageListContext';
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
const useThemeProps = createUseThemeProps('MuiImageList');
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
classes,
|