@mui/material 9.0.0-alpha.4 → 9.0.0-beta.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.
Files changed (210) hide show
  1. package/ButtonGroup/ButtonGroup.js +1 -9
  2. package/ButtonGroup/ButtonGroup.mjs +1 -9
  3. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  4. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  5. package/ButtonGroup/buttonGroupClasses.js +1 -1
  6. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  7. package/CHANGELOG.md +71 -4
  8. package/CardHeader/CardHeader.d.mts +13 -21
  9. package/CardHeader/CardHeader.d.ts +13 -21
  10. package/CardHeader/CardHeader.js +3 -21
  11. package/CardHeader/CardHeader.mjs +3 -21
  12. package/Checkbox/Checkbox.js +1 -7
  13. package/Checkbox/Checkbox.mjs +1 -7
  14. package/Chip/Chip.js +48 -54
  15. package/Chip/Chip.mjs +48 -54
  16. package/Chip/chipClasses.d.mts +0 -104
  17. package/Chip/chipClasses.d.ts +0 -104
  18. package/Chip/chipClasses.js +1 -1
  19. package/Chip/chipClasses.mjs +1 -1
  20. package/Dialog/Dialog.d.mts +0 -21
  21. package/Dialog/Dialog.d.ts +0 -21
  22. package/Dialog/Dialog.js +36 -73
  23. package/Dialog/Dialog.mjs +36 -73
  24. package/Dialog/dialogClasses.d.mts +0 -8
  25. package/Dialog/dialogClasses.d.ts +0 -8
  26. package/Dialog/dialogClasses.js +1 -1
  27. package/Dialog/dialogClasses.mjs +1 -1
  28. package/Divider/Divider.js +2 -2
  29. package/Divider/Divider.mjs +2 -2
  30. package/Divider/dividerClasses.d.mts +0 -4
  31. package/Divider/dividerClasses.d.ts +0 -4
  32. package/Divider/dividerClasses.js +1 -1
  33. package/Divider/dividerClasses.mjs +1 -1
  34. package/Drawer/Drawer.d.mts +0 -12
  35. package/Drawer/Drawer.d.ts +0 -12
  36. package/Drawer/Drawer.js +6 -40
  37. package/Drawer/Drawer.mjs +6 -40
  38. package/Drawer/drawerClasses.d.mts +0 -32
  39. package/Drawer/drawerClasses.d.ts +0 -32
  40. package/Drawer/drawerClasses.js +1 -1
  41. package/Drawer/drawerClasses.mjs +1 -1
  42. package/FilledInput/FilledInput.js +3 -32
  43. package/FilledInput/FilledInput.mjs +3 -32
  44. package/ImageListItemBar/ImageListItemBar.js +4 -17
  45. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  46. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  47. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  48. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  49. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  50. package/Input/Input.js +3 -32
  51. package/Input/Input.mjs +3 -32
  52. package/Input/inputClasses.d.mts +0 -16
  53. package/Input/inputClasses.d.ts +0 -16
  54. package/InputBase/InputBase.d.mts +0 -27
  55. package/InputBase/InputBase.d.ts +0 -27
  56. package/InputBase/InputBase.js +6 -35
  57. package/InputBase/InputBase.mjs +6 -35
  58. package/InputBase/inputBaseClasses.d.mts +0 -20
  59. package/InputBase/inputBaseClasses.d.ts +0 -20
  60. package/InputBase/inputBaseClasses.js +1 -1
  61. package/InputBase/inputBaseClasses.mjs +1 -1
  62. package/InputLabel/InputLabel.js +1 -1
  63. package/InputLabel/InputLabel.mjs +1 -1
  64. package/LinearProgress/LinearProgress.js +6 -18
  65. package/LinearProgress/LinearProgress.mjs +6 -18
  66. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  67. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  68. package/LinearProgress/linearProgressClasses.js +1 -1
  69. package/LinearProgress/linearProgressClasses.mjs +1 -1
  70. package/Link/Link.d.mts +1 -1
  71. package/Link/Link.d.ts +1 -1
  72. package/ListItem/ListItem.d.mts +2 -36
  73. package/ListItem/ListItem.d.ts +2 -36
  74. package/ListItem/ListItem.js +27 -152
  75. package/ListItem/ListItem.mjs +27 -152
  76. package/ListItem/listItemClasses.d.mts +2 -4
  77. package/ListItem/listItemClasses.d.ts +2 -4
  78. package/ListItem/listItemClasses.js +1 -1
  79. package/ListItem/listItemClasses.mjs +1 -1
  80. package/ListItemButton/ListItemButton.d.mts +1 -2
  81. package/ListItemButton/ListItemButton.d.ts +1 -2
  82. package/ListItemButton/ListItemButton.js +1 -2
  83. package/ListItemButton/ListItemButton.mjs +1 -2
  84. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  85. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  86. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  87. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  88. package/ListItemText/ListItemText.d.mts +12 -20
  89. package/ListItemText/ListItemText.d.ts +12 -20
  90. package/ListItemText/ListItemText.js +2 -20
  91. package/ListItemText/ListItemText.mjs +2 -20
  92. package/Modal/Modal.d.mts +1 -41
  93. package/Modal/Modal.d.ts +1 -41
  94. package/Modal/Modal.js +5 -58
  95. package/Modal/Modal.mjs +5 -58
  96. package/OutlinedInput/OutlinedInput.js +2 -14
  97. package/OutlinedInput/OutlinedInput.mjs +2 -14
  98. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  99. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  100. package/PaginationItem/PaginationItem.d.mts +0 -15
  101. package/PaginationItem/PaginationItem.d.ts +0 -15
  102. package/PaginationItem/PaginationItem.js +3 -24
  103. package/PaginationItem/PaginationItem.mjs +3 -24
  104. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  105. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  106. package/PaginationItem/paginationItemClasses.js +1 -1
  107. package/PaginationItem/paginationItemClasses.mjs +1 -1
  108. package/Radio/Radio.js +1 -13
  109. package/Radio/Radio.mjs +1 -13
  110. package/Rating/Rating.d.mts +0 -9
  111. package/Rating/Rating.d.ts +0 -9
  112. package/Rating/Rating.js +1 -17
  113. package/Rating/Rating.mjs +1 -17
  114. package/Select/SelectInput.js +2 -3
  115. package/Select/SelectInput.mjs +2 -3
  116. package/Select/selectClasses.d.mts +0 -12
  117. package/Select/selectClasses.d.ts +0 -12
  118. package/Select/selectClasses.js +1 -1
  119. package/Select/selectClasses.mjs +1 -1
  120. package/Slider/Slider.d.mts +0 -5
  121. package/Slider/Slider.d.ts +0 -5
  122. package/Slider/Slider.js +2 -8
  123. package/Slider/Slider.mjs +2 -8
  124. package/Slider/sliderClasses.d.mts +0 -28
  125. package/Slider/sliderClasses.d.ts +0 -28
  126. package/Slider/sliderClasses.js +1 -1
  127. package/Slider/sliderClasses.mjs +1 -1
  128. package/Stack/Stack.d.mts +2 -2
  129. package/Stack/Stack.d.ts +2 -2
  130. package/StepConnector/StepConnector.js +2 -8
  131. package/StepConnector/StepConnector.mjs +2 -8
  132. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  133. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  134. package/StepConnector/stepConnectorClasses.js +1 -1
  135. package/StepConnector/stepConnectorClasses.mjs +1 -1
  136. package/StepContent/StepContent.d.mts +1 -16
  137. package/StepContent/StepContent.d.ts +1 -16
  138. package/StepContent/StepContent.js +3 -22
  139. package/StepContent/StepContent.mjs +3 -22
  140. package/StepLabel/StepLabel.d.mts +0 -22
  141. package/StepLabel/StepLabel.d.ts +0 -22
  142. package/StepLabel/StepLabel.js +2 -31
  143. package/StepLabel/StepLabel.mjs +2 -31
  144. package/SvgIcon/createSvgIcon.d.mts +2 -0
  145. package/SvgIcon/createSvgIcon.d.ts +2 -0
  146. package/SvgIcon/createSvgIcon.js +31 -0
  147. package/SvgIcon/createSvgIcon.mjs +26 -0
  148. package/SvgIcon/index.d.mts +1 -0
  149. package/SvgIcon/index.d.ts +1 -0
  150. package/SvgIcon/index.js +8 -0
  151. package/SvgIcon/index.mjs +1 -0
  152. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  153. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  154. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  155. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  156. package/Switch/Switch.js +0 -11
  157. package/Switch/Switch.mjs +0 -11
  158. package/Tab/Tab.js +1 -3
  159. package/Tab/Tab.mjs +1 -3
  160. package/Tab/tabClasses.d.mts +0 -4
  161. package/Tab/tabClasses.d.ts +0 -4
  162. package/Tab/tabClasses.js +1 -1
  163. package/Tab/tabClasses.mjs +1 -1
  164. package/TablePagination/TablePagination.d.mts +0 -24
  165. package/TablePagination/TablePagination.d.ts +0 -24
  166. package/TablePagination/TablePagination.js +1 -29
  167. package/TablePagination/TablePagination.mjs +1 -29
  168. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  169. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  170. package/TablePaginationActions/TablePaginationActions.js +2 -14
  171. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  172. package/TableSortLabel/TableSortLabel.js +2 -7
  173. package/TableSortLabel/TableSortLabel.mjs +2 -7
  174. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  175. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  176. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  177. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  178. package/Tabs/Tabs.js +3 -3
  179. package/Tabs/Tabs.mjs +3 -3
  180. package/Tabs/tabsClasses.d.mts +0 -6
  181. package/Tabs/tabsClasses.d.ts +0 -6
  182. package/Tabs/tabsClasses.js +1 -1
  183. package/Tabs/tabsClasses.mjs +1 -1
  184. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  185. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  186. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  187. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  188. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  189. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  190. package/Typography/Typography.d.mts +3 -3
  191. package/Typography/Typography.d.ts +3 -3
  192. package/Typography/Typography.js +2 -24
  193. package/Typography/Typography.mjs +3 -25
  194. package/index.js +1 -1
  195. package/index.mjs +1 -1
  196. package/internal/SwitchBase.d.mts +0 -10
  197. package/internal/SwitchBase.d.ts +0 -10
  198. package/internal/SwitchBase.js +1 -16
  199. package/internal/SwitchBase.mjs +1 -16
  200. package/package.json +7 -7
  201. package/styles/createThemeWithVars.js +1 -0
  202. package/styles/createThemeWithVars.mjs +1 -0
  203. package/styles/stringifyTheme.js +1 -1
  204. package/styles/stringifyTheme.mjs +1 -1
  205. package/utils/createSvgIcon.d.mts +4 -2
  206. package/utils/createSvgIcon.d.ts +4 -2
  207. package/utils/createSvgIcon.js +6 -24
  208. package/utils/createSvgIcon.mjs +2 -24
  209. package/version/index.js +2 -2
  210. package/version/index.mjs +2 -2
@@ -110,7 +110,6 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
110
110
  icon: iconProp = defaultIcon,
111
111
  indeterminate = false,
112
112
  indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
113
- inputProps,
114
113
  size = 'medium',
115
114
  disableRipple = false,
116
115
  className,
@@ -128,7 +127,7 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
128
127
  size
129
128
  };
130
129
  const classes = useUtilityClasses(ownerState);
131
- const externalInputProps = slotProps.input ?? inputProps;
130
+ const externalInputProps = slotProps.input;
132
131
  const [RootSlot, rootSlotProps] = useSlot('root', {
133
132
  ref,
134
133
  elementType: CheckboxRoot,
@@ -227,11 +226,6 @@ process.env.NODE_ENV !== "production" ? Checkbox.propTypes /* remove-proptypes *
227
226
  * @default <IndeterminateCheckBoxIcon />
228
227
  */
229
228
  indeterminateIcon: PropTypes.node,
230
- /**
231
- * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#attributes) applied to the `input` element.
232
- * @deprecated Use `slotProps.input` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
233
- */
234
- inputProps: PropTypes.object,
235
229
  /**
236
230
  * Callback fired when the state is changed.
237
231
  *
package/Chip/Chip.js CHANGED
@@ -29,17 +29,16 @@ const useUtilityClasses = ownerState => {
29
29
  disabled,
30
30
  size,
31
31
  color,
32
- iconColor,
33
32
  onDelete,
34
33
  clickable,
35
34
  variant
36
35
  } = ownerState;
37
36
  const slots = {
38
- root: ['root', variant, disabled && 'disabled', `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, clickable && 'clickable', clickable && `clickableColor${(0, _capitalize.default)(color)}`, onDelete && 'deletable', onDelete && `deletableColor${(0, _capitalize.default)(color)}`, `${variant}${(0, _capitalize.default)(color)}`],
39
- label: ['label', `label${(0, _capitalize.default)(size)}`],
40
- avatar: ['avatar', `avatar${(0, _capitalize.default)(size)}`, `avatarColor${(0, _capitalize.default)(color)}`],
41
- icon: ['icon', `icon${(0, _capitalize.default)(size)}`, `iconColor${(0, _capitalize.default)(iconColor)}`],
42
- deleteIcon: ['deleteIcon', `deleteIcon${(0, _capitalize.default)(size)}`, `deleteIconColor${(0, _capitalize.default)(color)}`, `deleteIcon${(0, _capitalize.default)(variant)}Color${(0, _capitalize.default)(color)}`]
37
+ root: ['root', variant, disabled && 'disabled', `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, clickable && 'clickable', onDelete && 'deletable'],
38
+ label: ['label'],
39
+ avatar: ['avatar'],
40
+ icon: ['icon'],
41
+ deleteIcon: ['deleteIcon']
43
42
  };
44
43
  return (0, _composeClasses.default)(slots, _chipClasses.getChipUtilityClass, classes);
45
44
  };
@@ -52,7 +51,6 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
52
51
  } = props;
53
52
  const {
54
53
  color,
55
- iconColor,
56
54
  clickable,
57
55
  onDelete,
58
56
  size,
@@ -60,25 +58,11 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
60
58
  } = ownerState;
61
59
  return [{
62
60
  [`& .${_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
61
  }, {
68
62
  [`& .${_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
63
  }, {
74
64
  [`& .${_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)}`]];
65
+ }, styles.root, styles[`size${(0, _capitalize.default)(size)}`], styles[`color${(0, _capitalize.default)(color)}`], clickable && styles.clickable, onDelete && styles.deletable, styles[variant]];
82
66
  }
83
67
  })((0, _memoTheme.default)(({
84
68
  theme
@@ -121,21 +105,6 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
121
105
  color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
122
106
  fontSize: theme.typography.pxToRem(12)
123
107
  },
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
108
  [`& .${_chipClasses.default.icon}`]: {
140
109
  marginLeft: 5,
141
110
  marginRight: -6
@@ -151,11 +120,38 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
151
120
  }
152
121
  },
153
122
  variants: [{
123
+ props: {
124
+ color: 'primary'
125
+ },
126
+ style: {
127
+ [`& .${_chipClasses.default.avatar}`]: {
128
+ color: (theme.vars || theme).palette.primary.contrastText,
129
+ backgroundColor: (theme.vars || theme).palette.primary.dark
130
+ }
131
+ }
132
+ }, {
133
+ props: {
134
+ color: 'secondary'
135
+ },
136
+ style: {
137
+ [`& .${_chipClasses.default.avatar}`]: {
138
+ color: (theme.vars || theme).palette.secondary.contrastText,
139
+ backgroundColor: (theme.vars || theme).palette.secondary.dark
140
+ }
141
+ }
142
+ }, {
154
143
  props: {
155
144
  size: 'small'
156
145
  },
157
146
  style: {
158
147
  height: 24,
148
+ [`& .${_chipClasses.default.avatar}`]: {
149
+ marginLeft: 4,
150
+ marginRight: -4,
151
+ width: 18,
152
+ height: 18,
153
+ fontSize: theme.typography.pxToRem(10)
154
+ },
159
155
  [`& .${_chipClasses.default.icon}`]: {
160
156
  fontSize: 18,
161
157
  marginLeft: 4,
@@ -262,19 +258,26 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
262
258
  [`& .${_chipClasses.default.avatar}`]: {
263
259
  marginLeft: 4
264
260
  },
265
- [`& .${_chipClasses.default.avatarSmall}`]: {
266
- marginLeft: 2
267
- },
268
261
  [`& .${_chipClasses.default.icon}`]: {
269
262
  marginLeft: 4
270
263
  },
271
- [`& .${_chipClasses.default.iconSmall}`]: {
272
- marginLeft: 2
273
- },
274
264
  [`& .${_chipClasses.default.deleteIcon}`]: {
275
265
  marginRight: 5
266
+ }
267
+ }
268
+ }, {
269
+ props: {
270
+ size: 'small',
271
+ variant: 'outlined'
272
+ },
273
+ style: {
274
+ [`& .${_chipClasses.default.avatar}`]: {
275
+ marginLeft: 2
276
+ },
277
+ [`& .${_chipClasses.default.icon}`]: {
278
+ marginLeft: 2
276
279
  },
277
- [`& .${_chipClasses.default.deleteIconSmall}`]: {
280
+ [`& .${_chipClasses.default.deleteIcon}`]: {
278
281
  marginRight: 3
279
282
  }
280
283
  }
@@ -305,16 +308,7 @@ const ChipRoot = (0, _zeroStyled.styled)('div', {
305
308
  }));
306
309
  const ChipLabel = (0, _zeroStyled.styled)('span', {
307
310
  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
- }
311
+ slot: 'Label'
318
312
  })({
319
313
  overflow: 'hidden',
320
314
  textOverflow: 'ellipsis',
package/Chip/Chip.mjs CHANGED
@@ -22,17 +22,16 @@ const useUtilityClasses = ownerState => {
22
22
  disabled,
23
23
  size,
24
24
  color,
25
- iconColor,
26
25
  onDelete,
27
26
  clickable,
28
27
  variant
29
28
  } = ownerState;
30
29
  const slots = {
31
- root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],
32
- label: ['label', `label${capitalize(size)}`],
33
- avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
34
- icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
35
- deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
30
+ root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', onDelete && 'deletable'],
31
+ label: ['label'],
32
+ avatar: ['avatar'],
33
+ icon: ['icon'],
34
+ deleteIcon: ['deleteIcon']
36
35
  };
37
36
  return composeClasses(slots, getChipUtilityClass, classes);
38
37
  };
@@ -45,7 +44,6 @@ const ChipRoot = styled('div', {
45
44
  } = props;
46
45
  const {
47
46
  color,
48
- iconColor,
49
47
  clickable,
50
48
  onDelete,
51
49
  size,
@@ -53,25 +51,11 @@ const ChipRoot = styled('div', {
53
51
  } = ownerState;
54
52
  return [{
55
53
  [`& .${chipClasses.avatar}`]: styles.avatar
56
- }, {
57
- [`& .${chipClasses.avatar}`]: styles[`avatar${capitalize(size)}`]
58
- }, {
59
- [`& .${chipClasses.avatar}`]: styles[`avatarColor${capitalize(color)}`]
60
54
  }, {
61
55
  [`& .${chipClasses.icon}`]: styles.icon
62
- }, {
63
- [`& .${chipClasses.icon}`]: styles[`icon${capitalize(size)}`]
64
- }, {
65
- [`& .${chipClasses.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
66
56
  }, {
67
57
  [`& .${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)}`]];
58
+ }, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, onDelete && styles.deletable, styles[variant]];
75
59
  }
76
60
  })(memoTheme(({
77
61
  theme
@@ -114,21 +98,6 @@ const ChipRoot = styled('div', {
114
98
  color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
115
99
  fontSize: theme.typography.pxToRem(12)
116
100
  },
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
101
  [`& .${chipClasses.icon}`]: {
133
102
  marginLeft: 5,
134
103
  marginRight: -6
@@ -144,11 +113,38 @@ const ChipRoot = styled('div', {
144
113
  }
145
114
  },
146
115
  variants: [{
116
+ props: {
117
+ color: 'primary'
118
+ },
119
+ style: {
120
+ [`& .${chipClasses.avatar}`]: {
121
+ color: (theme.vars || theme).palette.primary.contrastText,
122
+ backgroundColor: (theme.vars || theme).palette.primary.dark
123
+ }
124
+ }
125
+ }, {
126
+ props: {
127
+ color: 'secondary'
128
+ },
129
+ style: {
130
+ [`& .${chipClasses.avatar}`]: {
131
+ color: (theme.vars || theme).palette.secondary.contrastText,
132
+ backgroundColor: (theme.vars || theme).palette.secondary.dark
133
+ }
134
+ }
135
+ }, {
147
136
  props: {
148
137
  size: 'small'
149
138
  },
150
139
  style: {
151
140
  height: 24,
141
+ [`& .${chipClasses.avatar}`]: {
142
+ marginLeft: 4,
143
+ marginRight: -4,
144
+ width: 18,
145
+ height: 18,
146
+ fontSize: theme.typography.pxToRem(10)
147
+ },
152
148
  [`& .${chipClasses.icon}`]: {
153
149
  fontSize: 18,
154
150
  marginLeft: 4,
@@ -255,19 +251,26 @@ const ChipRoot = styled('div', {
255
251
  [`& .${chipClasses.avatar}`]: {
256
252
  marginLeft: 4
257
253
  },
258
- [`& .${chipClasses.avatarSmall}`]: {
259
- marginLeft: 2
260
- },
261
254
  [`& .${chipClasses.icon}`]: {
262
255
  marginLeft: 4
263
256
  },
264
- [`& .${chipClasses.iconSmall}`]: {
265
- marginLeft: 2
266
- },
267
257
  [`& .${chipClasses.deleteIcon}`]: {
268
258
  marginRight: 5
259
+ }
260
+ }
261
+ }, {
262
+ props: {
263
+ size: 'small',
264
+ variant: 'outlined'
265
+ },
266
+ style: {
267
+ [`& .${chipClasses.avatar}`]: {
268
+ marginLeft: 2
269
+ },
270
+ [`& .${chipClasses.icon}`]: {
271
+ marginLeft: 2
269
272
  },
270
- [`& .${chipClasses.deleteIconSmall}`]: {
273
+ [`& .${chipClasses.deleteIcon}`]: {
271
274
  marginRight: 3
272
275
  }
273
276
  }
@@ -298,16 +301,7 @@ const ChipRoot = styled('div', {
298
301
  }));
299
302
  const ChipLabel = styled('span', {
300
303
  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
- }
304
+ slot: 'Label'
311
305
  })({
312
306
  overflow: 'hidden',
313
307
  textOverflow: 'ellipsis',
@@ -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
  }
@@ -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
  }
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getChipUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiChip', slot);
13
13
  }
14
- const chipClasses = (0, _generateUtilityClasses.default)('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
14
+ const chipClasses = (0, _generateUtilityClasses.default)('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorDefault', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'deletable', 'outlined', 'filled', 'avatar', 'icon', 'label', 'deleteIcon', 'focusVisible']);
15
15
  var _default = exports.default = chipClasses;