@mui/material 9.0.0-alpha.4 → 9.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/Accordion.d.mts +1 -1
- package/Accordion/Accordion.d.ts +1 -1
- package/AccordionSummary/AccordionSummary.js +1 -0
- package/AccordionSummary/AccordionSummary.mjs +1 -0
- package/Backdrop/Backdrop.d.mts +1 -1
- package/Backdrop/Backdrop.d.ts +1 -1
- package/BottomNavigationAction/BottomNavigationAction.js +1 -0
- package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
- package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
- package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
- package/Button/Button.js +1 -0
- package/Button/Button.mjs +1 -0
- package/ButtonBase/ButtonBase.d.mts +5 -0
- package/ButtonBase/ButtonBase.d.ts +5 -0
- package/ButtonBase/ButtonBase.js +84 -85
- package/ButtonBase/ButtonBase.mjs +84 -85
- package/ButtonBase/useButtonBase.d.mts +91 -0
- package/ButtonBase/useButtonBase.d.ts +91 -0
- package/ButtonBase/useButtonBase.js +174 -0
- package/ButtonBase/useButtonBase.mjs +167 -0
- package/ButtonGroup/ButtonGroup.js +1 -9
- package/ButtonGroup/ButtonGroup.mjs +1 -9
- package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
- package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
- package/ButtonGroup/buttonGroupClasses.js +1 -1
- package/ButtonGroup/buttonGroupClasses.mjs +1 -1
- package/CHANGELOG.md +119 -4
- package/CardActionArea/CardActionArea.js +1 -0
- package/CardActionArea/CardActionArea.mjs +1 -0
- package/CardHeader/CardHeader.d.mts +13 -21
- package/CardHeader/CardHeader.d.ts +13 -21
- package/CardHeader/CardHeader.js +3 -21
- package/CardHeader/CardHeader.mjs +3 -21
- package/Checkbox/Checkbox.js +1 -7
- package/Checkbox/Checkbox.mjs +1 -7
- package/Chip/Chip.d.mts +7 -0
- package/Chip/Chip.d.ts +7 -0
- package/Chip/Chip.js +66 -55
- package/Chip/Chip.mjs +66 -55
- package/Chip/chipClasses.d.mts +0 -104
- package/Chip/chipClasses.d.ts +0 -104
- package/Chip/chipClasses.js +1 -1
- package/Chip/chipClasses.mjs +1 -1
- package/Dialog/Dialog.d.mts +8 -22
- package/Dialog/Dialog.d.ts +8 -22
- package/Dialog/Dialog.js +43 -72
- package/Dialog/Dialog.mjs +43 -72
- package/Dialog/dialogClasses.d.mts +0 -8
- package/Dialog/dialogClasses.d.ts +0 -8
- package/Dialog/dialogClasses.js +1 -1
- package/Dialog/dialogClasses.mjs +1 -1
- package/Divider/Divider.js +2 -10
- package/Divider/Divider.mjs +2 -10
- package/Divider/dividerClasses.d.mts +0 -4
- package/Divider/dividerClasses.d.ts +0 -4
- package/Divider/dividerClasses.js +1 -1
- package/Divider/dividerClasses.mjs +1 -1
- package/Drawer/Drawer.d.mts +1 -13
- package/Drawer/Drawer.d.ts +1 -13
- package/Drawer/Drawer.js +6 -40
- package/Drawer/Drawer.mjs +6 -40
- package/Drawer/drawerClasses.d.mts +0 -32
- package/Drawer/drawerClasses.d.ts +0 -32
- package/Drawer/drawerClasses.js +1 -1
- package/Drawer/drawerClasses.mjs +1 -1
- package/Fab/Fab.js +1 -0
- package/Fab/Fab.mjs +1 -0
- package/FilledInput/FilledInput.js +4 -33
- package/FilledInput/FilledInput.mjs +4 -33
- package/Grid/Grid.d.mts +8 -3
- package/Grid/Grid.d.ts +8 -3
- package/Grid/Grid.js +8 -3
- package/Grid/Grid.mjs +8 -3
- package/Grid/gridClasses.js +1 -1
- package/Grid/gridClasses.mjs +1 -1
- package/IconButton/IconButton.js +1 -0
- package/IconButton/IconButton.mjs +1 -0
- package/ImageListItemBar/ImageListItemBar.js +4 -17
- package/ImageListItemBar/ImageListItemBar.mjs +4 -17
- package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
- package/ImageListItemBar/imageListItemBarClasses.js +1 -1
- package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
- package/Input/Input.js +4 -33
- package/Input/Input.mjs +4 -33
- package/Input/inputClasses.d.mts +0 -16
- package/Input/inputClasses.d.ts +0 -16
- package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
- package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
- package/InputBase/InputBase.d.mts +0 -27
- package/InputBase/InputBase.d.ts +0 -27
- package/InputBase/InputBase.js +6 -35
- package/InputBase/InputBase.mjs +6 -35
- package/InputBase/inputBaseClasses.d.mts +0 -20
- package/InputBase/inputBaseClasses.d.ts +0 -20
- package/InputBase/inputBaseClasses.js +1 -1
- package/InputBase/inputBaseClasses.mjs +1 -1
- package/InputLabel/InputLabel.js +1 -1
- package/InputLabel/InputLabel.mjs +1 -1
- package/LinearProgress/LinearProgress.js +6 -18
- package/LinearProgress/LinearProgress.mjs +6 -18
- package/LinearProgress/linearProgressClasses.d.mts +0 -36
- package/LinearProgress/linearProgressClasses.d.ts +0 -36
- package/LinearProgress/linearProgressClasses.js +1 -1
- package/LinearProgress/linearProgressClasses.mjs +1 -1
- package/Link/Link.d.mts +1 -1
- package/Link/Link.d.ts +1 -1
- package/ListItem/ListItem.d.mts +2 -36
- package/ListItem/ListItem.d.ts +2 -36
- package/ListItem/ListItem.js +27 -152
- package/ListItem/ListItem.mjs +27 -152
- package/ListItem/listItemClasses.d.mts +2 -4
- package/ListItem/listItemClasses.d.ts +2 -4
- package/ListItem/listItemClasses.js +1 -1
- package/ListItem/listItemClasses.mjs +1 -1
- package/ListItemButton/ListItemButton.d.mts +1 -2
- package/ListItemButton/ListItemButton.d.ts +1 -2
- package/ListItemButton/ListItemButton.js +2 -2
- package/ListItemButton/ListItemButton.mjs +2 -2
- package/ListItemIcon/ListItemIcon.js +1 -1
- package/ListItemIcon/ListItemIcon.mjs +1 -1
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
- package/ListItemText/ListItemText.d.mts +12 -20
- package/ListItemText/ListItemText.d.ts +12 -20
- package/ListItemText/ListItemText.js +2 -20
- package/ListItemText/ListItemText.mjs +2 -20
- package/ListSubheader/ListSubheader.js +0 -3
- package/ListSubheader/ListSubheader.mjs +0 -3
- package/Menu/Menu.d.mts +1 -1
- package/Menu/Menu.d.ts +1 -1
- package/Menu/Menu.js +15 -32
- package/Menu/Menu.mjs +15 -32
- package/MenuItem/MenuItem.js +36 -26
- package/MenuItem/MenuItem.mjs +34 -26
- package/MenuList/MenuList.js +136 -101
- package/MenuList/MenuList.mjs +135 -100
- package/MenuList/MenuListContext.d.mts +11 -0
- package/MenuList/MenuListContext.d.ts +11 -0
- package/MenuList/MenuListContext.js +25 -0
- package/MenuList/MenuListContext.mjs +19 -0
- package/Modal/Modal.d.mts +1 -41
- package/Modal/Modal.d.ts +1 -41
- package/Modal/Modal.js +5 -58
- package/Modal/Modal.mjs +5 -58
- package/OutlinedInput/OutlinedInput.js +2 -14
- package/OutlinedInput/OutlinedInput.mjs +2 -14
- package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
- package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
- package/PaginationItem/PaginationItem.d.mts +5 -15
- package/PaginationItem/PaginationItem.d.ts +5 -15
- package/PaginationItem/PaginationItem.js +9 -24
- package/PaginationItem/PaginationItem.mjs +9 -24
- package/PaginationItem/paginationItemClasses.d.mts +0 -16
- package/PaginationItem/paginationItemClasses.d.ts +0 -16
- package/PaginationItem/paginationItemClasses.js +1 -1
- package/PaginationItem/paginationItemClasses.mjs +1 -1
- package/PigmentGrid/PigmentGrid.d.mts +1 -1
- package/PigmentGrid/PigmentGrid.d.ts +1 -1
- package/PigmentGrid/PigmentGrid.js +1 -1
- package/PigmentGrid/PigmentGrid.mjs +1 -1
- package/Popover/Popover.d.mts +1 -1
- package/Popover/Popover.d.ts +1 -1
- package/Popover/Popover.js +19 -7
- package/Popover/Popover.mjs +18 -6
- package/Radio/Radio.js +1 -13
- package/Radio/Radio.mjs +1 -13
- package/Rating/Rating.d.mts +0 -9
- package/Rating/Rating.d.ts +0 -9
- package/Rating/Rating.js +1 -17
- package/Rating/Rating.mjs +1 -17
- package/Select/SelectInput.js +2 -3
- package/Select/SelectInput.mjs +2 -3
- package/Select/selectClasses.d.mts +0 -12
- package/Select/selectClasses.d.ts +0 -12
- package/Select/selectClasses.js +1 -1
- package/Select/selectClasses.mjs +1 -1
- package/Slider/Slider.d.mts +0 -5
- package/Slider/Slider.d.ts +0 -5
- package/Slider/Slider.js +2 -8
- package/Slider/Slider.mjs +2 -8
- package/Slider/sliderClasses.d.mts +0 -28
- package/Slider/sliderClasses.d.ts +0 -28
- package/Slider/sliderClasses.js +1 -1
- package/Slider/sliderClasses.mjs +1 -1
- package/Snackbar/Snackbar.d.mts +1 -1
- package/Snackbar/Snackbar.d.ts +1 -1
- package/SpeedDial/SpeedDial.d.mts +1 -1
- package/SpeedDial/SpeedDial.d.ts +1 -1
- package/Stack/Stack.d.mts +2 -2
- package/Stack/Stack.d.ts +2 -2
- package/StepButton/StepButton.js +44 -14
- package/StepButton/StepButton.mjs +44 -14
- package/StepConnector/StepConnector.js +2 -8
- package/StepConnector/StepConnector.mjs +2 -8
- package/StepConnector/stepConnectorClasses.d.mts +0 -8
- package/StepConnector/stepConnectorClasses.d.ts +0 -8
- package/StepConnector/stepConnectorClasses.js +1 -1
- package/StepConnector/stepConnectorClasses.mjs +1 -1
- package/StepContent/StepContent.d.mts +2 -17
- package/StepContent/StepContent.d.ts +2 -17
- package/StepContent/StepContent.js +3 -22
- package/StepContent/StepContent.mjs +3 -22
- package/StepLabel/StepLabel.d.mts +0 -22
- package/StepLabel/StepLabel.d.ts +0 -22
- package/StepLabel/StepLabel.js +2 -31
- package/StepLabel/StepLabel.mjs +2 -31
- package/Stepper/Stepper.js +54 -22
- package/Stepper/Stepper.mjs +54 -22
- package/Stepper/StepperContext.d.mts +0 -5
- package/Stepper/StepperContext.d.ts +0 -5
- package/Stepper/StepperContext.js +1 -2
- package/Stepper/StepperContext.mjs +0 -1
- package/SvgIcon/createSvgIcon.d.mts +2 -0
- package/SvgIcon/createSvgIcon.d.ts +2 -0
- package/SvgIcon/createSvgIcon.js +31 -0
- package/SvgIcon/createSvgIcon.mjs +26 -0
- package/SvgIcon/index.d.mts +1 -0
- package/SvgIcon/index.d.ts +1 -0
- package/SvgIcon/index.js +8 -0
- package/SvgIcon/index.mjs +1 -0
- package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
- package/SwipeableDrawer/SwipeableDrawer.js +6 -37
- package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
- package/Switch/Switch.js +0 -11
- package/Switch/Switch.mjs +0 -11
- package/Tab/Tab.js +18 -4
- package/Tab/Tab.mjs +18 -4
- package/Tab/tabClasses.d.mts +0 -4
- package/Tab/tabClasses.d.ts +0 -4
- package/Tab/tabClasses.js +1 -1
- package/Tab/tabClasses.mjs +1 -1
- package/TabScrollButton/TabScrollButton.d.mts +1 -1
- package/TabScrollButton/TabScrollButton.d.ts +1 -1
- package/TabScrollButton/TabScrollButton.js +6 -2
- package/TabScrollButton/TabScrollButton.mjs +6 -2
- package/TablePagination/TablePagination.d.mts +0 -24
- package/TablePagination/TablePagination.d.ts +0 -24
- package/TablePagination/TablePagination.js +1 -29
- package/TablePagination/TablePagination.mjs +1 -29
- package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
- package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
- package/TablePaginationActions/TablePaginationActions.js +2 -14
- package/TablePaginationActions/TablePaginationActions.mjs +2 -14
- package/TableSortLabel/TableSortLabel.js +6 -8
- package/TableSortLabel/TableSortLabel.mjs +6 -8
- package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
- package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
- package/TableSortLabel/tableSortLabelClasses.js +1 -1
- package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
- package/Tabs/Tabs.js +33 -24
- package/Tabs/Tabs.mjs +32 -23
- package/Tabs/tabsClasses.d.mts +0 -6
- package/Tabs/tabsClasses.d.ts +0 -6
- package/Tabs/tabsClasses.js +1 -1
- package/Tabs/tabsClasses.mjs +1 -1
- package/ToggleButton/ToggleButton.js +1 -0
- package/ToggleButton/ToggleButton.mjs +1 -0
- package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
- package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
- package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
- package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
- package/Tooltip/Tooltip.d.mts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Typography/Typography.d.mts +3 -3
- package/Typography/Typography.d.ts +3 -3
- package/Typography/Typography.js +2 -24
- package/Typography/Typography.mjs +3 -25
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internal/SwitchBase.d.mts +2 -12
- package/internal/SwitchBase.d.ts +2 -12
- package/internal/SwitchBase.js +6 -17
- package/internal/SwitchBase.mjs +6 -17
- package/locale/psAF.js +1 -1
- package/locale/psAF.mjs +1 -1
- package/package.json +7 -7
- package/styles/createThemeWithVars.js +10 -9
- package/styles/createThemeWithVars.mjs +10 -9
- package/styles/stringifyTheme.js +1 -1
- package/styles/stringifyTheme.mjs +1 -1
- package/useAutocomplete/useAutocomplete.js +8 -0
- package/useAutocomplete/useAutocomplete.mjs +8 -0
- package/utils/createSvgIcon.d.mts +4 -2
- package/utils/createSvgIcon.d.ts +4 -2
- package/utils/createSvgIcon.js +6 -24
- package/utils/createSvgIcon.mjs +2 -24
- package/utils/focusWithVisible.js +24 -0
- package/utils/focusWithVisible.mjs +19 -0
- package/utils/index.d.mts +0 -1
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -7
- package/utils/index.mjs +0 -1
- package/utils/useFocusableWhenDisabled.d.mts +30 -0
- package/utils/useFocusableWhenDisabled.d.ts +30 -0
- package/utils/useFocusableWhenDisabled.js +47 -0
- package/utils/useFocusableWhenDisabled.mjs +41 -0
- package/utils/useRovingTabIndex.d.mts +1 -2
- package/utils/useRovingTabIndex.d.ts +1 -2
- package/utils/useRovingTabIndex.js +25 -4
- package/utils/useRovingTabIndex.mjs +1 -2
- package/version/index.js +2 -2
- package/version/index.mjs +2 -2
package/Chip/Chip.js
CHANGED
|
@@ -20,6 +20,7 @@ var _zeroStyled = require("../zero-styled");
|
|
|
20
20
|
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
|
21
21
|
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
|
22
22
|
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
|
23
|
+
var _rootShouldForwardProp = _interopRequireDefault(require("../styles/rootShouldForwardProp"));
|
|
23
24
|
var _chipClasses = _interopRequireWildcard(require("./chipClasses"));
|
|
24
25
|
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
|
25
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -29,30 +30,29 @@ const useUtilityClasses = ownerState => {
|
|
|
29
30
|
disabled,
|
|
30
31
|
size,
|
|
31
32
|
color,
|
|
32
|
-
iconColor,
|
|
33
33
|
onDelete,
|
|
34
34
|
clickable,
|
|
35
35
|
variant
|
|
36
36
|
} = ownerState;
|
|
37
37
|
const slots = {
|
|
38
|
-
root: ['root', variant, disabled && 'disabled', `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, clickable && 'clickable',
|
|
39
|
-
label: ['label'
|
|
40
|
-
avatar: ['avatar'
|
|
41
|
-
icon: ['icon'
|
|
42
|
-
deleteIcon: ['deleteIcon'
|
|
38
|
+
root: ['root', variant, disabled && 'disabled', `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, clickable && 'clickable', onDelete && 'deletable'],
|
|
39
|
+
label: ['label'],
|
|
40
|
+
avatar: ['avatar'],
|
|
41
|
+
icon: ['icon'],
|
|
42
|
+
deleteIcon: ['deleteIcon']
|
|
43
43
|
};
|
|
44
44
|
return (0, _composeClasses.default)(slots, _chipClasses.getChipUtilityClass, classes);
|
|
45
45
|
};
|
|
46
46
|
const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
47
47
|
name: 'MuiChip',
|
|
48
48
|
slot: 'Root',
|
|
49
|
+
shouldForwardProp: prop => (0, _rootShouldForwardProp.default)(prop) && prop !== 'focusableWhenDisabled' && prop !== 'skipFocusWhenDisabled',
|
|
49
50
|
overridesResolver: (props, styles) => {
|
|
50
51
|
const {
|
|
51
52
|
ownerState
|
|
52
53
|
} = props;
|
|
53
54
|
const {
|
|
54
55
|
color,
|
|
55
|
-
iconColor,
|
|
56
56
|
clickable,
|
|
57
57
|
onDelete,
|
|
58
58
|
size,
|
|
@@ -60,25 +60,11 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
60
60
|
} = ownerState;
|
|
61
61
|
return [{
|
|
62
62
|
[`& .${_chipClasses.default.avatar}`]: styles.avatar
|
|
63
|
-
}, {
|
|
64
|
-
[`& .${_chipClasses.default.avatar}`]: styles[`avatar${(0, _capitalize.default)(size)}`]
|
|
65
|
-
}, {
|
|
66
|
-
[`& .${_chipClasses.default.avatar}`]: styles[`avatarColor${(0, _capitalize.default)(color)}`]
|
|
67
63
|
}, {
|
|
68
64
|
[`& .${_chipClasses.default.icon}`]: styles.icon
|
|
69
|
-
}, {
|
|
70
|
-
[`& .${_chipClasses.default.icon}`]: styles[`icon${(0, _capitalize.default)(size)}`]
|
|
71
|
-
}, {
|
|
72
|
-
[`& .${_chipClasses.default.icon}`]: styles[`iconColor${(0, _capitalize.default)(iconColor)}`]
|
|
73
65
|
}, {
|
|
74
66
|
[`& .${_chipClasses.default.deleteIcon}`]: styles.deleteIcon
|
|
75
|
-
}, {
|
|
76
|
-
[`& .${_chipClasses.default.deleteIcon}`]: styles[`deleteIcon${(0, _capitalize.default)(size)}`]
|
|
77
|
-
}, {
|
|
78
|
-
[`& .${_chipClasses.default.deleteIcon}`]: styles[`deleteIconColor${(0, _capitalize.default)(color)}`]
|
|
79
|
-
}, {
|
|
80
|
-
[`& .${_chipClasses.default.deleteIcon}`]: styles[`deleteIcon${(0, _capitalize.default)(variant)}Color${(0, _capitalize.default)(color)}`]
|
|
81
|
-
}, styles.root, styles[`size${(0, _capitalize.default)(size)}`], styles[`color${(0, _capitalize.default)(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${(0, _capitalize.default)(color)}`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${(0, _capitalize.default)(color)}`], styles[variant], styles[`${variant}${(0, _capitalize.default)(color)}`]];
|
|
67
|
+
}, styles.root, styles[`size${(0, _capitalize.default)(size)}`], styles[`color${(0, _capitalize.default)(color)}`], clickable && styles.clickable, onDelete && styles.deletable, styles[variant]];
|
|
82
68
|
}
|
|
83
69
|
})((0, _memoTheme.default)(({
|
|
84
70
|
theme
|
|
@@ -121,21 +107,6 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
121
107
|
color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
|
|
122
108
|
fontSize: theme.typography.pxToRem(12)
|
|
123
109
|
},
|
|
124
|
-
[`& .${_chipClasses.default.avatarColorPrimary}`]: {
|
|
125
|
-
color: (theme.vars || theme).palette.primary.contrastText,
|
|
126
|
-
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
127
|
-
},
|
|
128
|
-
[`& .${_chipClasses.default.avatarColorSecondary}`]: {
|
|
129
|
-
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
130
|
-
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
131
|
-
},
|
|
132
|
-
[`& .${_chipClasses.default.avatarSmall}`]: {
|
|
133
|
-
marginLeft: 4,
|
|
134
|
-
marginRight: -4,
|
|
135
|
-
width: 18,
|
|
136
|
-
height: 18,
|
|
137
|
-
fontSize: theme.typography.pxToRem(10)
|
|
138
|
-
},
|
|
139
110
|
[`& .${_chipClasses.default.icon}`]: {
|
|
140
111
|
marginLeft: 5,
|
|
141
112
|
marginRight: -6
|
|
@@ -151,11 +122,38 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
151
122
|
}
|
|
152
123
|
},
|
|
153
124
|
variants: [{
|
|
125
|
+
props: {
|
|
126
|
+
color: 'primary'
|
|
127
|
+
},
|
|
128
|
+
style: {
|
|
129
|
+
[`& .${_chipClasses.default.avatar}`]: {
|
|
130
|
+
color: (theme.vars || theme).palette.primary.contrastText,
|
|
131
|
+
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}, {
|
|
135
|
+
props: {
|
|
136
|
+
color: 'secondary'
|
|
137
|
+
},
|
|
138
|
+
style: {
|
|
139
|
+
[`& .${_chipClasses.default.avatar}`]: {
|
|
140
|
+
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
141
|
+
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, {
|
|
154
145
|
props: {
|
|
155
146
|
size: 'small'
|
|
156
147
|
},
|
|
157
148
|
style: {
|
|
158
149
|
height: 24,
|
|
150
|
+
[`& .${_chipClasses.default.avatar}`]: {
|
|
151
|
+
marginLeft: 4,
|
|
152
|
+
marginRight: -4,
|
|
153
|
+
width: 18,
|
|
154
|
+
height: 18,
|
|
155
|
+
fontSize: theme.typography.pxToRem(10)
|
|
156
|
+
},
|
|
159
157
|
[`& .${_chipClasses.default.icon}`]: {
|
|
160
158
|
fontSize: 18,
|
|
161
159
|
marginLeft: 4,
|
|
@@ -262,19 +260,26 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
262
260
|
[`& .${_chipClasses.default.avatar}`]: {
|
|
263
261
|
marginLeft: 4
|
|
264
262
|
},
|
|
265
|
-
[`& .${_chipClasses.default.avatarSmall}`]: {
|
|
266
|
-
marginLeft: 2
|
|
267
|
-
},
|
|
268
263
|
[`& .${_chipClasses.default.icon}`]: {
|
|
269
264
|
marginLeft: 4
|
|
270
265
|
},
|
|
271
|
-
[`& .${_chipClasses.default.iconSmall}`]: {
|
|
272
|
-
marginLeft: 2
|
|
273
|
-
},
|
|
274
266
|
[`& .${_chipClasses.default.deleteIcon}`]: {
|
|
275
267
|
marginRight: 5
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}, {
|
|
271
|
+
props: {
|
|
272
|
+
size: 'small',
|
|
273
|
+
variant: 'outlined'
|
|
274
|
+
},
|
|
275
|
+
style: {
|
|
276
|
+
[`& .${_chipClasses.default.avatar}`]: {
|
|
277
|
+
marginLeft: 2
|
|
276
278
|
},
|
|
277
|
-
[`& .${_chipClasses.default.
|
|
279
|
+
[`& .${_chipClasses.default.icon}`]: {
|
|
280
|
+
marginLeft: 2
|
|
281
|
+
},
|
|
282
|
+
[`& .${_chipClasses.default.deleteIcon}`]: {
|
|
278
283
|
marginRight: 3
|
|
279
284
|
}
|
|
280
285
|
}
|
|
@@ -305,16 +310,7 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
|
|
|
305
310
|
}));
|
|
306
311
|
const ChipLabel = (0, _zeroStyled.styled)('span', {
|
|
307
312
|
name: 'MuiChip',
|
|
308
|
-
slot: 'Label'
|
|
309
|
-
overridesResolver: (props, styles) => {
|
|
310
|
-
const {
|
|
311
|
-
ownerState
|
|
312
|
-
} = props;
|
|
313
|
-
const {
|
|
314
|
-
size
|
|
315
|
-
} = ownerState;
|
|
316
|
-
return [styles.label, styles[`label${(0, _capitalize.default)(size)}`]];
|
|
317
|
-
}
|
|
313
|
+
slot: 'Label'
|
|
318
314
|
})({
|
|
319
315
|
overflow: 'hidden',
|
|
320
316
|
textOverflow: 'ellipsis',
|
|
@@ -383,6 +379,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
383
379
|
slotProps = {},
|
|
384
380
|
...other
|
|
385
381
|
} = props;
|
|
382
|
+
const {
|
|
383
|
+
nativeButton,
|
|
384
|
+
...buttonBaseProps
|
|
385
|
+
} = other;
|
|
386
386
|
const chipRef = React.useRef(null);
|
|
387
387
|
const handleRef = (0, _useForkRef.default)(chipRef, ref);
|
|
388
388
|
const handleDeleteIconClick = event => {
|
|
@@ -428,9 +428,13 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
428
428
|
const classes = useUtilityClasses(ownerState);
|
|
429
429
|
const moreProps = component === _ButtonBase.default ? {
|
|
430
430
|
component: ComponentProp || 'div',
|
|
431
|
+
internalNativeButton: false,
|
|
431
432
|
focusVisibleClassName: classes.focusVisible,
|
|
432
433
|
...(onDelete && {
|
|
433
434
|
disableRipple: true
|
|
435
|
+
}),
|
|
436
|
+
...(nativeButton !== undefined && {
|
|
437
|
+
nativeButton
|
|
434
438
|
})
|
|
435
439
|
} : {};
|
|
436
440
|
let deleteIcon = null;
|
|
@@ -468,7 +472,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
468
472
|
elementType: ChipRoot,
|
|
469
473
|
externalForwardedProps: {
|
|
470
474
|
...externalForwardedProps,
|
|
471
|
-
...
|
|
475
|
+
...buttonBaseProps
|
|
472
476
|
},
|
|
473
477
|
ownerState,
|
|
474
478
|
// The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
|
|
@@ -571,6 +575,13 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
|
|
|
571
575
|
* The content of the component.
|
|
572
576
|
*/
|
|
573
577
|
label: _propTypes.default.node,
|
|
578
|
+
/**
|
|
579
|
+
* If `true`, the component is expected to resolve to a native `<button>` element.
|
|
580
|
+
* When omitted, custom components inherit the default button semantics of the current wrapper.
|
|
581
|
+
* Set to `true` when a custom component resolves to a native `<button>`, or `false`
|
|
582
|
+
* when it resolves to a non-button host.
|
|
583
|
+
*/
|
|
584
|
+
nativeButton: _propTypes.default.bool,
|
|
574
585
|
/**
|
|
575
586
|
* @ignore
|
|
576
587
|
*/
|
package/Chip/Chip.mjs
CHANGED
|
@@ -13,6 +13,7 @@ import { styled } from "../zero-styled/index.mjs";
|
|
|
13
13
|
import memoTheme from "../utils/memoTheme.mjs";
|
|
14
14
|
import createSimplePaletteValueFilter from "../utils/createSimplePaletteValueFilter.mjs";
|
|
15
15
|
import { useDefaultProps } from "../DefaultPropsProvider/index.mjs";
|
|
16
|
+
import rootShouldForwardProp from "../styles/rootShouldForwardProp.mjs";
|
|
16
17
|
import chipClasses, { getChipUtilityClass } from "./chipClasses.mjs";
|
|
17
18
|
import useSlot from "../utils/useSlot.mjs";
|
|
18
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -22,30 +23,29 @@ const useUtilityClasses = ownerState => {
|
|
|
22
23
|
disabled,
|
|
23
24
|
size,
|
|
24
25
|
color,
|
|
25
|
-
iconColor,
|
|
26
26
|
onDelete,
|
|
27
27
|
clickable,
|
|
28
28
|
variant
|
|
29
29
|
} = ownerState;
|
|
30
30
|
const slots = {
|
|
31
|
-
root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable',
|
|
32
|
-
label: ['label'
|
|
33
|
-
avatar: ['avatar'
|
|
34
|
-
icon: ['icon'
|
|
35
|
-
deleteIcon: ['deleteIcon'
|
|
31
|
+
root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', onDelete && 'deletable'],
|
|
32
|
+
label: ['label'],
|
|
33
|
+
avatar: ['avatar'],
|
|
34
|
+
icon: ['icon'],
|
|
35
|
+
deleteIcon: ['deleteIcon']
|
|
36
36
|
};
|
|
37
37
|
return composeClasses(slots, getChipUtilityClass, classes);
|
|
38
38
|
};
|
|
39
39
|
const ChipRoot = styled('div', {
|
|
40
40
|
name: 'MuiChip',
|
|
41
41
|
slot: 'Root',
|
|
42
|
+
shouldForwardProp: prop => rootShouldForwardProp(prop) && prop !== 'focusableWhenDisabled' && prop !== 'skipFocusWhenDisabled',
|
|
42
43
|
overridesResolver: (props, styles) => {
|
|
43
44
|
const {
|
|
44
45
|
ownerState
|
|
45
46
|
} = props;
|
|
46
47
|
const {
|
|
47
48
|
color,
|
|
48
|
-
iconColor,
|
|
49
49
|
clickable,
|
|
50
50
|
onDelete,
|
|
51
51
|
size,
|
|
@@ -53,25 +53,11 @@ const ChipRoot = styled('div', {
|
|
|
53
53
|
} = ownerState;
|
|
54
54
|
return [{
|
|
55
55
|
[`& .${chipClasses.avatar}`]: styles.avatar
|
|
56
|
-
}, {
|
|
57
|
-
[`& .${chipClasses.avatar}`]: styles[`avatar${capitalize(size)}`]
|
|
58
|
-
}, {
|
|
59
|
-
[`& .${chipClasses.avatar}`]: styles[`avatarColor${capitalize(color)}`]
|
|
60
56
|
}, {
|
|
61
57
|
[`& .${chipClasses.icon}`]: styles.icon
|
|
62
|
-
}, {
|
|
63
|
-
[`& .${chipClasses.icon}`]: styles[`icon${capitalize(size)}`]
|
|
64
|
-
}, {
|
|
65
|
-
[`& .${chipClasses.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
|
|
66
58
|
}, {
|
|
67
59
|
[`& .${chipClasses.deleteIcon}`]: styles.deleteIcon
|
|
68
|
-
}, {
|
|
69
|
-
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(size)}`]
|
|
70
|
-
}, {
|
|
71
|
-
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
|
|
72
|
-
}, {
|
|
73
|
-
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
74
|
-
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)}`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
|
|
60
|
+
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, onDelete && styles.deletable, styles[variant]];
|
|
75
61
|
}
|
|
76
62
|
})(memoTheme(({
|
|
77
63
|
theme
|
|
@@ -114,21 +100,6 @@ const ChipRoot = styled('div', {
|
|
|
114
100
|
color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
|
|
115
101
|
fontSize: theme.typography.pxToRem(12)
|
|
116
102
|
},
|
|
117
|
-
[`& .${chipClasses.avatarColorPrimary}`]: {
|
|
118
|
-
color: (theme.vars || theme).palette.primary.contrastText,
|
|
119
|
-
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
120
|
-
},
|
|
121
|
-
[`& .${chipClasses.avatarColorSecondary}`]: {
|
|
122
|
-
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
123
|
-
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
124
|
-
},
|
|
125
|
-
[`& .${chipClasses.avatarSmall}`]: {
|
|
126
|
-
marginLeft: 4,
|
|
127
|
-
marginRight: -4,
|
|
128
|
-
width: 18,
|
|
129
|
-
height: 18,
|
|
130
|
-
fontSize: theme.typography.pxToRem(10)
|
|
131
|
-
},
|
|
132
103
|
[`& .${chipClasses.icon}`]: {
|
|
133
104
|
marginLeft: 5,
|
|
134
105
|
marginRight: -6
|
|
@@ -144,11 +115,38 @@ const ChipRoot = styled('div', {
|
|
|
144
115
|
}
|
|
145
116
|
},
|
|
146
117
|
variants: [{
|
|
118
|
+
props: {
|
|
119
|
+
color: 'primary'
|
|
120
|
+
},
|
|
121
|
+
style: {
|
|
122
|
+
[`& .${chipClasses.avatar}`]: {
|
|
123
|
+
color: (theme.vars || theme).palette.primary.contrastText,
|
|
124
|
+
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}, {
|
|
128
|
+
props: {
|
|
129
|
+
color: 'secondary'
|
|
130
|
+
},
|
|
131
|
+
style: {
|
|
132
|
+
[`& .${chipClasses.avatar}`]: {
|
|
133
|
+
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
134
|
+
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}, {
|
|
147
138
|
props: {
|
|
148
139
|
size: 'small'
|
|
149
140
|
},
|
|
150
141
|
style: {
|
|
151
142
|
height: 24,
|
|
143
|
+
[`& .${chipClasses.avatar}`]: {
|
|
144
|
+
marginLeft: 4,
|
|
145
|
+
marginRight: -4,
|
|
146
|
+
width: 18,
|
|
147
|
+
height: 18,
|
|
148
|
+
fontSize: theme.typography.pxToRem(10)
|
|
149
|
+
},
|
|
152
150
|
[`& .${chipClasses.icon}`]: {
|
|
153
151
|
fontSize: 18,
|
|
154
152
|
marginLeft: 4,
|
|
@@ -255,19 +253,26 @@ const ChipRoot = styled('div', {
|
|
|
255
253
|
[`& .${chipClasses.avatar}`]: {
|
|
256
254
|
marginLeft: 4
|
|
257
255
|
},
|
|
258
|
-
[`& .${chipClasses.avatarSmall}`]: {
|
|
259
|
-
marginLeft: 2
|
|
260
|
-
},
|
|
261
256
|
[`& .${chipClasses.icon}`]: {
|
|
262
257
|
marginLeft: 4
|
|
263
258
|
},
|
|
264
|
-
[`& .${chipClasses.iconSmall}`]: {
|
|
265
|
-
marginLeft: 2
|
|
266
|
-
},
|
|
267
259
|
[`& .${chipClasses.deleteIcon}`]: {
|
|
268
260
|
marginRight: 5
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}, {
|
|
264
|
+
props: {
|
|
265
|
+
size: 'small',
|
|
266
|
+
variant: 'outlined'
|
|
267
|
+
},
|
|
268
|
+
style: {
|
|
269
|
+
[`& .${chipClasses.avatar}`]: {
|
|
270
|
+
marginLeft: 2
|
|
269
271
|
},
|
|
270
|
-
[`& .${chipClasses.
|
|
272
|
+
[`& .${chipClasses.icon}`]: {
|
|
273
|
+
marginLeft: 2
|
|
274
|
+
},
|
|
275
|
+
[`& .${chipClasses.deleteIcon}`]: {
|
|
271
276
|
marginRight: 3
|
|
272
277
|
}
|
|
273
278
|
}
|
|
@@ -298,16 +303,7 @@ const ChipRoot = styled('div', {
|
|
|
298
303
|
}));
|
|
299
304
|
const ChipLabel = styled('span', {
|
|
300
305
|
name: 'MuiChip',
|
|
301
|
-
slot: 'Label'
|
|
302
|
-
overridesResolver: (props, styles) => {
|
|
303
|
-
const {
|
|
304
|
-
ownerState
|
|
305
|
-
} = props;
|
|
306
|
-
const {
|
|
307
|
-
size
|
|
308
|
-
} = ownerState;
|
|
309
|
-
return [styles.label, styles[`label${capitalize(size)}`]];
|
|
310
|
-
}
|
|
306
|
+
slot: 'Label'
|
|
311
307
|
})({
|
|
312
308
|
overflow: 'hidden',
|
|
313
309
|
textOverflow: 'ellipsis',
|
|
@@ -376,6 +372,10 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
376
372
|
slotProps = {},
|
|
377
373
|
...other
|
|
378
374
|
} = props;
|
|
375
|
+
const {
|
|
376
|
+
nativeButton,
|
|
377
|
+
...buttonBaseProps
|
|
378
|
+
} = other;
|
|
379
379
|
const chipRef = React.useRef(null);
|
|
380
380
|
const handleRef = useForkRef(chipRef, ref);
|
|
381
381
|
const handleDeleteIconClick = event => {
|
|
@@ -421,9 +421,13 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
421
421
|
const classes = useUtilityClasses(ownerState);
|
|
422
422
|
const moreProps = component === ButtonBase ? {
|
|
423
423
|
component: ComponentProp || 'div',
|
|
424
|
+
internalNativeButton: false,
|
|
424
425
|
focusVisibleClassName: classes.focusVisible,
|
|
425
426
|
...(onDelete && {
|
|
426
427
|
disableRipple: true
|
|
428
|
+
}),
|
|
429
|
+
...(nativeButton !== undefined && {
|
|
430
|
+
nativeButton
|
|
427
431
|
})
|
|
428
432
|
} : {};
|
|
429
433
|
let deleteIcon = null;
|
|
@@ -461,7 +465,7 @@ const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
|
|
461
465
|
elementType: ChipRoot,
|
|
462
466
|
externalForwardedProps: {
|
|
463
467
|
...externalForwardedProps,
|
|
464
|
-
...
|
|
468
|
+
...buttonBaseProps
|
|
465
469
|
},
|
|
466
470
|
ownerState,
|
|
467
471
|
// The `component` prop is preserved because `Chip` relies on it for internal logic. If `shouldForwardComponentProp` were `false`, `useSlot` would remove the `component` prop, potentially breaking the component's behavior.
|
|
@@ -564,6 +568,13 @@ process.env.NODE_ENV !== "production" ? Chip.propTypes /* remove-proptypes */ =
|
|
|
564
568
|
* The content of the component.
|
|
565
569
|
*/
|
|
566
570
|
label: PropTypes.node,
|
|
571
|
+
/**
|
|
572
|
+
* If `true`, the component is expected to resolve to a native `<button>` element.
|
|
573
|
+
* When omitted, custom components inherit the default button semantics of the current wrapper.
|
|
574
|
+
* Set to `true` when a custom component resolves to a native `<button>`, or `false`
|
|
575
|
+
* when it resolves to a non-button host.
|
|
576
|
+
*/
|
|
577
|
+
nativeButton: PropTypes.bool,
|
|
567
578
|
/**
|
|
568
579
|
* @ignore
|
|
569
580
|
*/
|
package/Chip/chipClasses.d.mts
CHANGED
|
@@ -23,124 +23,20 @@ export interface ChipClasses {
|
|
|
23
23
|
disabled: string;
|
|
24
24
|
/** Styles applied to the root element if `onClick` is defined or `clickable={true}`. */
|
|
25
25
|
clickable: string;
|
|
26
|
-
/** Styles applied to the root element if `onClick` and `color="primary"` is defined or `clickable={true}`.
|
|
27
|
-
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-MuiChip-clickable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28
|
-
*/
|
|
29
|
-
clickableColorPrimary: string;
|
|
30
|
-
/** Styles applied to the root element if `onClick` and `color="secondary"` is defined or `clickable={true}`.
|
|
31
|
-
* @deprecated Combine the [.MuiChip-clickable](/material-ui/api/chip/#chip-classes-MuiChip-clickable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
32
|
-
*/
|
|
33
|
-
clickableColorSecondary: string;
|
|
34
26
|
/** Styles applied to the root element if `onDelete` is defined. */
|
|
35
27
|
deletable: string;
|
|
36
|
-
/** Styles applied to the root element if `onDelete` and `color="primary"` is defined.
|
|
37
|
-
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-MuiChip-deletable) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
38
|
-
*/
|
|
39
|
-
deletableColorPrimary: string;
|
|
40
|
-
/** Styles applied to the root element if `onDelete` and `color="secondary"` is defined.
|
|
41
|
-
* @deprecated Combine the [.MuiChip-deletable](/material-ui/api/chip/#chip-classes-MuiChip-deletable) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
42
|
-
*/
|
|
43
|
-
deletableColorSecondary: string;
|
|
44
28
|
/** Styles applied to the root element if `variant="outlined"`. */
|
|
45
29
|
outlined: string;
|
|
46
30
|
/** Styles applied to the root element if `variant="filled"`. */
|
|
47
31
|
filled: string;
|
|
48
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`.
|
|
49
|
-
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
50
|
-
*/
|
|
51
|
-
outlinedPrimary: string;
|
|
52
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`.
|
|
53
|
-
* @deprecated Combine the [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
54
|
-
*/
|
|
55
|
-
outlinedSecondary: string;
|
|
56
|
-
/** Styles applied to the root element if `variant="filled"` and `color="primary"`.
|
|
57
|
-
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
58
|
-
*/
|
|
59
|
-
filledPrimary: string;
|
|
60
|
-
/** Styles applied to the root element if `variant="filled"` and `color="secondary"`.
|
|
61
|
-
* @deprecated Combine the [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
62
|
-
*/
|
|
63
|
-
filledSecondary: string;
|
|
64
32
|
/** Styles applied to the avatar element. */
|
|
65
33
|
avatar: string;
|
|
66
|
-
/** Styles applied to the avatar element if `size="small"`.
|
|
67
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
68
|
-
*/
|
|
69
|
-
avatarSmall: string;
|
|
70
|
-
/** Styles applied to the avatar element if `size="medium"`.
|
|
71
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
72
|
-
*/
|
|
73
|
-
avatarMedium: string;
|
|
74
|
-
/** Styles applied to the avatar element if `color="primary"`.
|
|
75
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
76
|
-
*/
|
|
77
|
-
avatarColorPrimary: string;
|
|
78
|
-
/** Styles applied to the avatar element if `color="secondary"`.
|
|
79
|
-
* @deprecated Combine the [.MuiChip-avatar](/material-ui/api/chip/#chip-classes-MuiChip-avatar) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
80
|
-
*/
|
|
81
|
-
avatarColorSecondary: string;
|
|
82
34
|
/** Styles applied to the icon element. */
|
|
83
35
|
icon: string;
|
|
84
|
-
/** Styles applied to the icon element if `size="small"`.
|
|
85
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
86
|
-
*/
|
|
87
|
-
iconSmall: string;
|
|
88
|
-
/** Styles applied to the icon element if `size="medium"`.
|
|
89
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
90
|
-
*/
|
|
91
|
-
iconMedium: string;
|
|
92
|
-
/** Styles applied to the icon element if `color="primary"`.
|
|
93
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
94
|
-
*/
|
|
95
|
-
iconColorPrimary: string;
|
|
96
|
-
/** Styles applied to the icon element if `color="secondary"`.
|
|
97
|
-
* @deprecated Combine the [.MuiChip-icon](/material-ui/api/chip/#chip-classes-MuiChip-icon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
98
|
-
*/
|
|
99
|
-
iconColorSecondary: string;
|
|
100
36
|
/** Styles applied to the label `span` element. */
|
|
101
37
|
label: string;
|
|
102
|
-
/** Styles applied to the label `span` element if `size="small"`.
|
|
103
|
-
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#Chip-css-MuiChip-label) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
104
|
-
*/
|
|
105
|
-
labelSmall: string;
|
|
106
|
-
/** Styles applied to the label `span` element if `size="medium"`.
|
|
107
|
-
* @deprecated Combine the [.MuiChip-label](/material-ui/api/chip/#Chip-css-MuiChip-label) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
108
|
-
*/
|
|
109
|
-
labelMedium: string;
|
|
110
38
|
/** Styles applied to the deleteIcon element. */
|
|
111
39
|
deleteIcon: string;
|
|
112
|
-
/** Styles applied to the deleteIcon element if `size="small"`.
|
|
113
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-sizeSmall](/material-ui/api/chip/#chip-classes-MuiChip-sizeSmall) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
114
|
-
*/
|
|
115
|
-
deleteIconSmall: string;
|
|
116
|
-
/** Styles applied to the deleteIcon element if `size="medium"`.
|
|
117
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-sizeMedium](/material-ui/api/chip/#chip-classes-MuiChip-sizeMedium) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
118
|
-
*/
|
|
119
|
-
deleteIconMedium: string;
|
|
120
|
-
/** Styles applied to the deleteIcon element if `color="primary"`.
|
|
121
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
122
|
-
*/
|
|
123
|
-
deleteIconColorPrimary: string;
|
|
124
|
-
/** Styles applied to the deleteIcon element if `color="secondary"`.
|
|
125
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
126
|
-
*/
|
|
127
|
-
deleteIconColorSecondary: string;
|
|
128
|
-
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="outlined"`.
|
|
129
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
130
|
-
*/
|
|
131
|
-
deleteIconOutlinedColorPrimary: string;
|
|
132
|
-
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="outlined"`.
|
|
133
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-outlined](/material-ui/api/chip/#chip-classes-MuiChip-outlined) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
134
|
-
*/
|
|
135
|
-
deleteIconOutlinedColorSecondary: string;
|
|
136
|
-
/** Styles applied to the deleteIcon element if `color="primary"` and `variant="filled"`.
|
|
137
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorPrimary](/material-ui/api/chip/#chip-classes-MuiChip-colorPrimary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
138
|
-
*/
|
|
139
|
-
deleteIconFilledColorPrimary: string;
|
|
140
|
-
/** Styles applied to the deleteIcon element if `color="secondary"` and `variant="filled"`.
|
|
141
|
-
* @deprecated Combine the [.MuiChip-deleteIcon](/material-ui/api/chip/#chip-classes-MuiChip-deleteIcon) , [.MuiChip-filled](/material-ui/api/chip/#chip-classes-MuiChip-filled) and [.MuiChip-colorSecondary](/material-ui/api/chip/#chip-classes-MuiChip-colorSecondary) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
142
|
-
*/
|
|
143
|
-
deleteIconFilledColorSecondary: string;
|
|
144
40
|
/** State class applied to the root element if keyboard focused. */
|
|
145
41
|
focusVisible: string;
|
|
146
42
|
}
|