@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.
Files changed (308) hide show
  1. package/Accordion/Accordion.d.mts +1 -1
  2. package/Accordion/Accordion.d.ts +1 -1
  3. package/AccordionSummary/AccordionSummary.js +1 -0
  4. package/AccordionSummary/AccordionSummary.mjs +1 -0
  5. package/Backdrop/Backdrop.d.mts +1 -1
  6. package/Backdrop/Backdrop.d.ts +1 -1
  7. package/BottomNavigationAction/BottomNavigationAction.js +1 -0
  8. package/BottomNavigationAction/BottomNavigationAction.mjs +1 -0
  9. package/Breadcrumbs/BreadcrumbCollapsed.js +5 -1
  10. package/Breadcrumbs/BreadcrumbCollapsed.mjs +5 -1
  11. package/Button/Button.js +1 -0
  12. package/Button/Button.mjs +1 -0
  13. package/ButtonBase/ButtonBase.d.mts +5 -0
  14. package/ButtonBase/ButtonBase.d.ts +5 -0
  15. package/ButtonBase/ButtonBase.js +84 -85
  16. package/ButtonBase/ButtonBase.mjs +84 -85
  17. package/ButtonBase/useButtonBase.d.mts +91 -0
  18. package/ButtonBase/useButtonBase.d.ts +91 -0
  19. package/ButtonBase/useButtonBase.js +174 -0
  20. package/ButtonBase/useButtonBase.mjs +167 -0
  21. package/ButtonGroup/ButtonGroup.js +1 -9
  22. package/ButtonGroup/ButtonGroup.mjs +1 -9
  23. package/ButtonGroup/buttonGroupClasses.d.mts +0 -68
  24. package/ButtonGroup/buttonGroupClasses.d.ts +0 -68
  25. package/ButtonGroup/buttonGroupClasses.js +1 -1
  26. package/ButtonGroup/buttonGroupClasses.mjs +1 -1
  27. package/CHANGELOG.md +119 -4
  28. package/CardActionArea/CardActionArea.js +1 -0
  29. package/CardActionArea/CardActionArea.mjs +1 -0
  30. package/CardHeader/CardHeader.d.mts +13 -21
  31. package/CardHeader/CardHeader.d.ts +13 -21
  32. package/CardHeader/CardHeader.js +3 -21
  33. package/CardHeader/CardHeader.mjs +3 -21
  34. package/Checkbox/Checkbox.js +1 -7
  35. package/Checkbox/Checkbox.mjs +1 -7
  36. package/Chip/Chip.d.mts +7 -0
  37. package/Chip/Chip.d.ts +7 -0
  38. package/Chip/Chip.js +66 -55
  39. package/Chip/Chip.mjs +66 -55
  40. package/Chip/chipClasses.d.mts +0 -104
  41. package/Chip/chipClasses.d.ts +0 -104
  42. package/Chip/chipClasses.js +1 -1
  43. package/Chip/chipClasses.mjs +1 -1
  44. package/Dialog/Dialog.d.mts +8 -22
  45. package/Dialog/Dialog.d.ts +8 -22
  46. package/Dialog/Dialog.js +43 -72
  47. package/Dialog/Dialog.mjs +43 -72
  48. package/Dialog/dialogClasses.d.mts +0 -8
  49. package/Dialog/dialogClasses.d.ts +0 -8
  50. package/Dialog/dialogClasses.js +1 -1
  51. package/Dialog/dialogClasses.mjs +1 -1
  52. package/Divider/Divider.js +2 -10
  53. package/Divider/Divider.mjs +2 -10
  54. package/Divider/dividerClasses.d.mts +0 -4
  55. package/Divider/dividerClasses.d.ts +0 -4
  56. package/Divider/dividerClasses.js +1 -1
  57. package/Divider/dividerClasses.mjs +1 -1
  58. package/Drawer/Drawer.d.mts +1 -13
  59. package/Drawer/Drawer.d.ts +1 -13
  60. package/Drawer/Drawer.js +6 -40
  61. package/Drawer/Drawer.mjs +6 -40
  62. package/Drawer/drawerClasses.d.mts +0 -32
  63. package/Drawer/drawerClasses.d.ts +0 -32
  64. package/Drawer/drawerClasses.js +1 -1
  65. package/Drawer/drawerClasses.mjs +1 -1
  66. package/Fab/Fab.js +1 -0
  67. package/Fab/Fab.mjs +1 -0
  68. package/FilledInput/FilledInput.js +4 -33
  69. package/FilledInput/FilledInput.mjs +4 -33
  70. package/Grid/Grid.d.mts +8 -3
  71. package/Grid/Grid.d.ts +8 -3
  72. package/Grid/Grid.js +8 -3
  73. package/Grid/Grid.mjs +8 -3
  74. package/Grid/gridClasses.js +1 -1
  75. package/Grid/gridClasses.mjs +1 -1
  76. package/IconButton/IconButton.js +1 -0
  77. package/IconButton/IconButton.mjs +1 -0
  78. package/ImageListItemBar/ImageListItemBar.js +4 -17
  79. package/ImageListItemBar/ImageListItemBar.mjs +4 -17
  80. package/ImageListItemBar/imageListItemBarClasses.d.mts +0 -16
  81. package/ImageListItemBar/imageListItemBarClasses.d.ts +0 -16
  82. package/ImageListItemBar/imageListItemBarClasses.js +1 -1
  83. package/ImageListItemBar/imageListItemBarClasses.mjs +1 -1
  84. package/Input/Input.js +4 -33
  85. package/Input/Input.mjs +4 -33
  86. package/Input/inputClasses.d.mts +0 -16
  87. package/Input/inputClasses.d.ts +0 -16
  88. package/InputAdornment/inputAdornmentClasses.d.mts +2 -2
  89. package/InputAdornment/inputAdornmentClasses.d.ts +2 -2
  90. package/InputBase/InputBase.d.mts +0 -27
  91. package/InputBase/InputBase.d.ts +0 -27
  92. package/InputBase/InputBase.js +6 -35
  93. package/InputBase/InputBase.mjs +6 -35
  94. package/InputBase/inputBaseClasses.d.mts +0 -20
  95. package/InputBase/inputBaseClasses.d.ts +0 -20
  96. package/InputBase/inputBaseClasses.js +1 -1
  97. package/InputBase/inputBaseClasses.mjs +1 -1
  98. package/InputLabel/InputLabel.js +1 -1
  99. package/InputLabel/InputLabel.mjs +1 -1
  100. package/LinearProgress/LinearProgress.js +6 -18
  101. package/LinearProgress/LinearProgress.mjs +6 -18
  102. package/LinearProgress/linearProgressClasses.d.mts +0 -36
  103. package/LinearProgress/linearProgressClasses.d.ts +0 -36
  104. package/LinearProgress/linearProgressClasses.js +1 -1
  105. package/LinearProgress/linearProgressClasses.mjs +1 -1
  106. package/Link/Link.d.mts +1 -1
  107. package/Link/Link.d.ts +1 -1
  108. package/ListItem/ListItem.d.mts +2 -36
  109. package/ListItem/ListItem.d.ts +2 -36
  110. package/ListItem/ListItem.js +27 -152
  111. package/ListItem/ListItem.mjs +27 -152
  112. package/ListItem/listItemClasses.d.mts +2 -4
  113. package/ListItem/listItemClasses.d.ts +2 -4
  114. package/ListItem/listItemClasses.js +1 -1
  115. package/ListItem/listItemClasses.mjs +1 -1
  116. package/ListItemButton/ListItemButton.d.mts +1 -2
  117. package/ListItemButton/ListItemButton.d.ts +1 -2
  118. package/ListItemButton/ListItemButton.js +2 -2
  119. package/ListItemButton/ListItemButton.mjs +2 -2
  120. package/ListItemIcon/ListItemIcon.js +1 -1
  121. package/ListItemIcon/ListItemIcon.mjs +1 -1
  122. package/ListItemSecondaryAction/ListItemSecondaryAction.d.mts +10 -6
  123. package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +10 -6
  124. package/ListItemSecondaryAction/ListItemSecondaryAction.js +7 -2
  125. package/ListItemSecondaryAction/ListItemSecondaryAction.mjs +7 -2
  126. package/ListItemText/ListItemText.d.mts +12 -20
  127. package/ListItemText/ListItemText.d.ts +12 -20
  128. package/ListItemText/ListItemText.js +2 -20
  129. package/ListItemText/ListItemText.mjs +2 -20
  130. package/ListSubheader/ListSubheader.js +0 -3
  131. package/ListSubheader/ListSubheader.mjs +0 -3
  132. package/Menu/Menu.d.mts +1 -1
  133. package/Menu/Menu.d.ts +1 -1
  134. package/Menu/Menu.js +15 -32
  135. package/Menu/Menu.mjs +15 -32
  136. package/MenuItem/MenuItem.js +36 -26
  137. package/MenuItem/MenuItem.mjs +34 -26
  138. package/MenuList/MenuList.js +136 -101
  139. package/MenuList/MenuList.mjs +135 -100
  140. package/MenuList/MenuListContext.d.mts +11 -0
  141. package/MenuList/MenuListContext.d.ts +11 -0
  142. package/MenuList/MenuListContext.js +25 -0
  143. package/MenuList/MenuListContext.mjs +19 -0
  144. package/Modal/Modal.d.mts +1 -41
  145. package/Modal/Modal.d.ts +1 -41
  146. package/Modal/Modal.js +5 -58
  147. package/Modal/Modal.mjs +5 -58
  148. package/OutlinedInput/OutlinedInput.js +2 -14
  149. package/OutlinedInput/OutlinedInput.mjs +2 -14
  150. package/OutlinedInput/outlinedInputClasses.d.mts +0 -16
  151. package/OutlinedInput/outlinedInputClasses.d.ts +0 -16
  152. package/PaginationItem/PaginationItem.d.mts +5 -15
  153. package/PaginationItem/PaginationItem.d.ts +5 -15
  154. package/PaginationItem/PaginationItem.js +9 -24
  155. package/PaginationItem/PaginationItem.mjs +9 -24
  156. package/PaginationItem/paginationItemClasses.d.mts +0 -16
  157. package/PaginationItem/paginationItemClasses.d.ts +0 -16
  158. package/PaginationItem/paginationItemClasses.js +1 -1
  159. package/PaginationItem/paginationItemClasses.mjs +1 -1
  160. package/PigmentGrid/PigmentGrid.d.mts +1 -1
  161. package/PigmentGrid/PigmentGrid.d.ts +1 -1
  162. package/PigmentGrid/PigmentGrid.js +1 -1
  163. package/PigmentGrid/PigmentGrid.mjs +1 -1
  164. package/Popover/Popover.d.mts +1 -1
  165. package/Popover/Popover.d.ts +1 -1
  166. package/Popover/Popover.js +19 -7
  167. package/Popover/Popover.mjs +18 -6
  168. package/Radio/Radio.js +1 -13
  169. package/Radio/Radio.mjs +1 -13
  170. package/Rating/Rating.d.mts +0 -9
  171. package/Rating/Rating.d.ts +0 -9
  172. package/Rating/Rating.js +1 -17
  173. package/Rating/Rating.mjs +1 -17
  174. package/Select/SelectInput.js +2 -3
  175. package/Select/SelectInput.mjs +2 -3
  176. package/Select/selectClasses.d.mts +0 -12
  177. package/Select/selectClasses.d.ts +0 -12
  178. package/Select/selectClasses.js +1 -1
  179. package/Select/selectClasses.mjs +1 -1
  180. package/Slider/Slider.d.mts +0 -5
  181. package/Slider/Slider.d.ts +0 -5
  182. package/Slider/Slider.js +2 -8
  183. package/Slider/Slider.mjs +2 -8
  184. package/Slider/sliderClasses.d.mts +0 -28
  185. package/Slider/sliderClasses.d.ts +0 -28
  186. package/Slider/sliderClasses.js +1 -1
  187. package/Slider/sliderClasses.mjs +1 -1
  188. package/Snackbar/Snackbar.d.mts +1 -1
  189. package/Snackbar/Snackbar.d.ts +1 -1
  190. package/SpeedDial/SpeedDial.d.mts +1 -1
  191. package/SpeedDial/SpeedDial.d.ts +1 -1
  192. package/Stack/Stack.d.mts +2 -2
  193. package/Stack/Stack.d.ts +2 -2
  194. package/StepButton/StepButton.js +44 -14
  195. package/StepButton/StepButton.mjs +44 -14
  196. package/StepConnector/StepConnector.js +2 -8
  197. package/StepConnector/StepConnector.mjs +2 -8
  198. package/StepConnector/stepConnectorClasses.d.mts +0 -8
  199. package/StepConnector/stepConnectorClasses.d.ts +0 -8
  200. package/StepConnector/stepConnectorClasses.js +1 -1
  201. package/StepConnector/stepConnectorClasses.mjs +1 -1
  202. package/StepContent/StepContent.d.mts +2 -17
  203. package/StepContent/StepContent.d.ts +2 -17
  204. package/StepContent/StepContent.js +3 -22
  205. package/StepContent/StepContent.mjs +3 -22
  206. package/StepLabel/StepLabel.d.mts +0 -22
  207. package/StepLabel/StepLabel.d.ts +0 -22
  208. package/StepLabel/StepLabel.js +2 -31
  209. package/StepLabel/StepLabel.mjs +2 -31
  210. package/Stepper/Stepper.js +54 -22
  211. package/Stepper/Stepper.mjs +54 -22
  212. package/Stepper/StepperContext.d.mts +0 -5
  213. package/Stepper/StepperContext.d.ts +0 -5
  214. package/Stepper/StepperContext.js +1 -2
  215. package/Stepper/StepperContext.mjs +0 -1
  216. package/SvgIcon/createSvgIcon.d.mts +2 -0
  217. package/SvgIcon/createSvgIcon.d.ts +2 -0
  218. package/SvgIcon/createSvgIcon.js +31 -0
  219. package/SvgIcon/createSvgIcon.mjs +26 -0
  220. package/SvgIcon/index.d.mts +1 -0
  221. package/SvgIcon/index.d.ts +1 -0
  222. package/SvgIcon/index.js +8 -0
  223. package/SvgIcon/index.mjs +1 -0
  224. package/SwipeableDrawer/SwipeableDrawer.d.mts +0 -5
  225. package/SwipeableDrawer/SwipeableDrawer.d.ts +0 -5
  226. package/SwipeableDrawer/SwipeableDrawer.js +6 -37
  227. package/SwipeableDrawer/SwipeableDrawer.mjs +6 -37
  228. package/Switch/Switch.js +0 -11
  229. package/Switch/Switch.mjs +0 -11
  230. package/Tab/Tab.js +18 -4
  231. package/Tab/Tab.mjs +18 -4
  232. package/Tab/tabClasses.d.mts +0 -4
  233. package/Tab/tabClasses.d.ts +0 -4
  234. package/Tab/tabClasses.js +1 -1
  235. package/Tab/tabClasses.mjs +1 -1
  236. package/TabScrollButton/TabScrollButton.d.mts +1 -1
  237. package/TabScrollButton/TabScrollButton.d.ts +1 -1
  238. package/TabScrollButton/TabScrollButton.js +6 -2
  239. package/TabScrollButton/TabScrollButton.mjs +6 -2
  240. package/TablePagination/TablePagination.d.mts +0 -24
  241. package/TablePagination/TablePagination.d.ts +0 -24
  242. package/TablePagination/TablePagination.js +1 -29
  243. package/TablePagination/TablePagination.mjs +1 -29
  244. package/TablePaginationActions/TablePaginationActions.d.mts +0 -10
  245. package/TablePaginationActions/TablePaginationActions.d.ts +0 -10
  246. package/TablePaginationActions/TablePaginationActions.js +2 -14
  247. package/TablePaginationActions/TablePaginationActions.mjs +2 -14
  248. package/TableSortLabel/TableSortLabel.js +6 -8
  249. package/TableSortLabel/TableSortLabel.mjs +6 -8
  250. package/TableSortLabel/tableSortLabelClasses.d.mts +0 -8
  251. package/TableSortLabel/tableSortLabelClasses.d.ts +0 -8
  252. package/TableSortLabel/tableSortLabelClasses.js +1 -1
  253. package/TableSortLabel/tableSortLabelClasses.mjs +1 -1
  254. package/Tabs/Tabs.js +33 -24
  255. package/Tabs/Tabs.mjs +32 -23
  256. package/Tabs/tabsClasses.d.mts +0 -6
  257. package/Tabs/tabsClasses.d.ts +0 -6
  258. package/Tabs/tabsClasses.js +1 -1
  259. package/Tabs/tabsClasses.mjs +1 -1
  260. package/ToggleButton/ToggleButton.js +1 -0
  261. package/ToggleButton/ToggleButton.mjs +1 -0
  262. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -4
  263. package/ToggleButtonGroup/ToggleButtonGroup.mjs +1 -4
  264. package/ToggleButtonGroup/toggleButtonGroupClasses.d.mts +0 -8
  265. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +0 -8
  266. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  267. package/ToggleButtonGroup/toggleButtonGroupClasses.mjs +1 -1
  268. package/Tooltip/Tooltip.d.mts +1 -1
  269. package/Tooltip/Tooltip.d.ts +1 -1
  270. package/Typography/Typography.d.mts +3 -3
  271. package/Typography/Typography.d.ts +3 -3
  272. package/Typography/Typography.js +2 -24
  273. package/Typography/Typography.mjs +3 -25
  274. package/index.js +1 -1
  275. package/index.mjs +1 -1
  276. package/internal/SwitchBase.d.mts +2 -12
  277. package/internal/SwitchBase.d.ts +2 -12
  278. package/internal/SwitchBase.js +6 -17
  279. package/internal/SwitchBase.mjs +6 -17
  280. package/locale/psAF.js +1 -1
  281. package/locale/psAF.mjs +1 -1
  282. package/package.json +7 -7
  283. package/styles/createThemeWithVars.js +10 -9
  284. package/styles/createThemeWithVars.mjs +10 -9
  285. package/styles/stringifyTheme.js +1 -1
  286. package/styles/stringifyTheme.mjs +1 -1
  287. package/useAutocomplete/useAutocomplete.js +8 -0
  288. package/useAutocomplete/useAutocomplete.mjs +8 -0
  289. package/utils/createSvgIcon.d.mts +4 -2
  290. package/utils/createSvgIcon.d.ts +4 -2
  291. package/utils/createSvgIcon.js +6 -24
  292. package/utils/createSvgIcon.mjs +2 -24
  293. package/utils/focusWithVisible.js +24 -0
  294. package/utils/focusWithVisible.mjs +19 -0
  295. package/utils/index.d.mts +0 -1
  296. package/utils/index.d.ts +0 -1
  297. package/utils/index.js +0 -7
  298. package/utils/index.mjs +0 -1
  299. package/utils/useFocusableWhenDisabled.d.mts +30 -0
  300. package/utils/useFocusableWhenDisabled.d.ts +30 -0
  301. package/utils/useFocusableWhenDisabled.js +47 -0
  302. package/utils/useFocusableWhenDisabled.mjs +41 -0
  303. package/utils/useRovingTabIndex.d.mts +1 -2
  304. package/utils/useRovingTabIndex.d.ts +1 -2
  305. package/utils/useRovingTabIndex.js +25 -4
  306. package/utils/useRovingTabIndex.mjs +1 -2
  307. package/version/index.js +2 -2
  308. 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', 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)}`]
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.deleteIconSmall}`]: {
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
- ...other
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', 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)}`]
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.deleteIconSmall}`]: {
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
- ...other
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
  */
@@ -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
  }