@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
@@ -89,9 +89,9 @@ const useUtilityClasses = ownerState => {
89
89
  } = ownerState;
90
90
  const slots = {
91
91
  root: ['root', `color${(0, _capitalize.default)(color)}`, variant],
92
- dashed: ['dashed', `dashedColor${(0, _capitalize.default)(color)}`],
93
- bar1: ['bar', 'bar1', `barColor${(0, _capitalize.default)(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
94
- bar2: ['bar', 'bar2', variant !== 'buffer' && `barColor${(0, _capitalize.default)(color)}`, variant === 'buffer' && `color${(0, _capitalize.default)(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
92
+ dashed: ['dashed'],
93
+ bar1: ['bar', 'bar1'],
94
+ bar2: ['bar', 'bar2', variant === 'buffer' && `color${(0, _capitalize.default)(color)}`]
95
95
  };
96
96
  return (0, _composeClasses.default)(slots, _linearProgressClasses.getLinearProgressUtilityClass, classes);
97
97
  };
@@ -163,13 +163,7 @@ const LinearProgressRoot = (0, _zeroStyled.styled)('span', {
163
163
  })));
164
164
  const LinearProgressDashed = (0, _zeroStyled.styled)('span', {
165
165
  name: 'MuiLinearProgress',
166
- slot: 'Dashed',
167
- overridesResolver: (props, styles) => {
168
- const {
169
- ownerState
170
- } = props;
171
- return [styles.dashed, styles[`dashedColor${(0, _capitalize.default)(ownerState.color)}`]];
172
- }
166
+ slot: 'Dashed'
173
167
  })((0, _memoTheme.default)(({
174
168
  theme
175
169
  }) => ({
@@ -206,10 +200,7 @@ const LinearProgressBar1 = (0, _zeroStyled.styled)('span', {
206
200
  name: 'MuiLinearProgress',
207
201
  slot: 'Bar1',
208
202
  overridesResolver: (props, styles) => {
209
- const {
210
- ownerState
211
- } = props;
212
- return [styles.bar, styles.bar1, styles[`barColor${(0, _capitalize.default)(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
203
+ return [styles.bar, styles.bar1];
213
204
  }
214
205
  })((0, _memoTheme.default)(({
215
206
  theme
@@ -270,10 +261,7 @@ const LinearProgressBar2 = (0, _zeroStyled.styled)('span', {
270
261
  name: 'MuiLinearProgress',
271
262
  slot: 'Bar2',
272
263
  overridesResolver: (props, styles) => {
273
- const {
274
- ownerState
275
- } = props;
276
- return [styles.bar, styles.bar2, styles[`barColor${(0, _capitalize.default)(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
264
+ return [styles.bar, styles.bar2];
277
265
  }
278
266
  })((0, _memoTheme.default)(({
279
267
  theme
@@ -82,9 +82,9 @@ const useUtilityClasses = ownerState => {
82
82
  } = ownerState;
83
83
  const slots = {
84
84
  root: ['root', `color${capitalize(color)}`, variant],
85
- dashed: ['dashed', `dashedColor${capitalize(color)}`],
86
- bar1: ['bar', 'bar1', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
87
- bar2: ['bar', 'bar2', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
85
+ dashed: ['dashed'],
86
+ bar1: ['bar', 'bar1'],
87
+ bar2: ['bar', 'bar2', variant === 'buffer' && `color${capitalize(color)}`]
88
88
  };
89
89
  return composeClasses(slots, getLinearProgressUtilityClass, classes);
90
90
  };
@@ -156,13 +156,7 @@ const LinearProgressRoot = styled('span', {
156
156
  })));
157
157
  const LinearProgressDashed = styled('span', {
158
158
  name: 'MuiLinearProgress',
159
- slot: 'Dashed',
160
- overridesResolver: (props, styles) => {
161
- const {
162
- ownerState
163
- } = props;
164
- return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
165
- }
159
+ slot: 'Dashed'
166
160
  })(memoTheme(({
167
161
  theme
168
162
  }) => ({
@@ -199,10 +193,7 @@ const LinearProgressBar1 = styled('span', {
199
193
  name: 'MuiLinearProgress',
200
194
  slot: 'Bar1',
201
195
  overridesResolver: (props, styles) => {
202
- const {
203
- ownerState
204
- } = props;
205
- return [styles.bar, styles.bar1, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
196
+ return [styles.bar, styles.bar1];
206
197
  }
207
198
  })(memoTheme(({
208
199
  theme
@@ -263,10 +254,7 @@ const LinearProgressBar2 = styled('span', {
263
254
  name: 'MuiLinearProgress',
264
255
  slot: 'Bar2',
265
256
  overridesResolver: (props, styles) => {
266
- const {
267
- ownerState
268
- } = props;
269
- return [styles.bar, styles.bar2, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
257
+ return [styles.bar, styles.bar2];
270
258
  }
271
259
  })(memoTheme(({
272
260
  theme
@@ -15,48 +15,12 @@ export interface LinearProgressClasses {
15
15
  query: string;
16
16
  /** Styles applied to the additional bar element if `variant="buffer"`. */
17
17
  dashed: string;
18
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`.
19
- * @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
20
- */
21
- dashedColorPrimary: string;
22
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`.
23
- * @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
24
- */
25
- dashedColorSecondary: string;
26
18
  /** Styles applied to the layered bar1 and bar2 elements. */
27
19
  bar: string;
28
20
  /** Styles applied to the bar1 element. */
29
21
  bar1: string;
30
22
  /** Styles applied to the bar2 element. */
31
23
  bar2: string;
32
- /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer".
33
- * @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
- */
35
- barColorPrimary: string;
36
- /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer".
37
- * @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
- */
39
- barColorSecondary: string;
40
- /** Styles applied to the bar1 element if `variant="indeterminate or query"`.
41
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
- */
43
- bar1Indeterminate: string;
44
- /** Styles applied to the bar1 element if `variant="determinate"`.
45
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-determinate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-determinate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
- */
47
- bar1Determinate: string;
48
- /** Styles applied to the bar1 element if `variant="buffer"`.
49
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
50
- */
51
- bar1Buffer: string;
52
- /** Styles applied to the bar2 element if `variant="indeterminate or query"`.
53
- * @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
54
- */
55
- bar2Indeterminate: string;
56
- /** Styles applied to the bar2 element if `variant="buffer"`.
57
- * @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
58
- */
59
- bar2Buffer: string;
60
24
  }
61
25
  export type LinearProgressClassKey = keyof LinearProgressClasses;
62
26
  export declare function getLinearProgressUtilityClass(slot: string): string;
@@ -15,48 +15,12 @@ export interface LinearProgressClasses {
15
15
  query: string;
16
16
  /** Styles applied to the additional bar element if `variant="buffer"`. */
17
17
  dashed: string;
18
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`.
19
- * @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
20
- */
21
- dashedColorPrimary: string;
22
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`.
23
- * @deprecated Combine the [.MuiLinearProgress-dashed](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-dashed) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
24
- */
25
- dashedColorSecondary: string;
26
18
  /** Styles applied to the layered bar1 and bar2 elements. */
27
19
  bar: string;
28
20
  /** Styles applied to the bar1 element. */
29
21
  bar1: string;
30
22
  /** Styles applied to the bar2 element. */
31
23
  bar2: string;
32
- /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer".
33
- * @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorPrimary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorPrimary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
- */
35
- barColorPrimary: string;
36
- /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer".
37
- * @deprecated Use the [.MuiLinearProgress-bar](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar) and [.MuiLinearProgress-colorSecondary](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-colorSecondary) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
- */
39
- barColorSecondary: string;
40
- /** Styles applied to the bar1 element if `variant="indeterminate or query"`.
41
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
- */
43
- bar1Indeterminate: string;
44
- /** Styles applied to the bar1 element if `variant="determinate"`.
45
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-determinate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-determinate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
- */
47
- bar1Determinate: string;
48
- /** Styles applied to the bar1 element if `variant="buffer"`.
49
- * @deprecated Use the [.MuiLinearProgress-bar1](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar1) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
50
- */
51
- bar1Buffer: string;
52
- /** Styles applied to the bar2 element if `variant="indeterminate or query"`.
53
- * @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-indeterminate](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-indeterminate) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
54
- */
55
- bar2Indeterminate: string;
56
- /** Styles applied to the bar2 element if `variant="buffer"`.
57
- * @deprecated Use the [.MuiLinearProgress-bar2](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-bar2) and [.MuiLinearProgress-buffer](/material-ui/api/linear-progress/#linear-progress-classes-MuiLinearProgress-buffer) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
58
- */
59
- bar2Buffer: string;
60
24
  }
61
25
  export type LinearProgressClassKey = keyof LinearProgressClasses;
62
26
  export declare function getLinearProgressUtilityClass(slot: string): string;
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getLinearProgressUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiLinearProgress', slot);
13
13
  }
14
- const linearProgressClasses = (0, _generateUtilityClasses.default)('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'bar1', 'bar2', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
14
+ const linearProgressClasses = (0, _generateUtilityClasses.default)('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'bar', 'bar1', 'bar2']);
15
15
  var _default = exports.default = linearProgressClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getLinearProgressUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiLinearProgress', slot);
5
5
  }
6
- const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'bar1', 'bar2', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
6
+ const linearProgressClasses = generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'bar', 'bar1', 'bar2']);
7
7
  export default linearProgressClasses;
package/Link/Link.d.mts CHANGED
@@ -18,7 +18,7 @@ export interface LinkOwnProps extends DistributiveOmit<LinkBaseProps, 'classes'>
18
18
  * The color of the link.
19
19
  * @default 'primary'
20
20
  */
21
- color?: TypographyOwnProps['color'] | undefined;
21
+ color?: TypographyOwnProps['color'] | 'inherit' | undefined;
22
22
  /**
23
23
  * The system prop that allows defining system overrides as well as additional CSS styles.
24
24
  */
package/Link/Link.d.ts CHANGED
@@ -18,7 +18,7 @@ export interface LinkOwnProps extends DistributiveOmit<LinkBaseProps, 'classes'>
18
18
  * The color of the link.
19
19
  * @default 'primary'
20
20
  */
21
- color?: TypographyOwnProps['color'] | undefined;
21
+ color?: TypographyOwnProps['color'] | 'inherit' | undefined;
22
22
  /**
23
23
  * The system prop that allows defining system overrides as well as additional CSS styles.
24
24
  */
@@ -4,7 +4,6 @@ import { Theme } from "../styles/index.mjs";
4
4
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.mjs";
5
5
  import { ListItemClasses } from "./listItemClasses.mjs";
6
6
  import { SlotProps } from "../utils/types.mjs";
7
- export interface ListItemComponentsPropsOverrides {}
8
7
  export interface ListItemSecondaryActionSlotPropsOverrides {}
9
8
 
10
9
  /**
@@ -17,26 +16,13 @@ export interface ListItemBaseProps {
17
16
  */
18
17
  alignItems?: 'flex-start' | 'center' | undefined;
19
18
  /**
20
- * The content of the component if a `ListItemSecondaryAction` is used it must
21
- * be the last child.
19
+ * The content of the component.
22
20
  */
23
21
  children?: React.ReactNode;
24
22
  /**
25
23
  * Override or extend the styles applied to the component.
26
24
  */
27
25
  classes?: Partial<ListItemClasses> | undefined;
28
- /**
29
- * The container component used when a `ListItemSecondaryAction` is the last child.
30
- * @default 'li'
31
- * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
32
- */
33
- ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>> | undefined;
34
- /**
35
- * Props applied to the container component if used.
36
- * @default {}
37
- * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
38
- */
39
- ContainerProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
40
26
  /**
41
27
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
42
28
  * The prop defaults to the value inherited from the parent List component.
@@ -69,25 +55,6 @@ export interface ListItemBaseProps {
69
55
  }
70
56
  export interface ListItemOwnerState extends Omit<ListItemProps, 'slots' | 'slotProps'> {}
71
57
  export interface ListItemOwnProps extends ListItemBaseProps {
72
- /**
73
- * The components used for each slot inside.
74
- *
75
- * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
76
- * @default {}
77
- */
78
- components?: {
79
- Root?: React.ElementType | undefined;
80
- } | undefined;
81
- /**
82
- * The extra props for the slot components.
83
- * You can override the existing props or add new ones.
84
- *
85
- * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
86
- * @default {}
87
- */
88
- componentsProps?: {
89
- root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
90
- } | undefined;
91
58
  /**
92
59
  * The extra props for the slot components.
93
60
  * You can override the existing props or add new ones.
@@ -95,7 +62,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
95
62
  * @default {}
96
63
  */
97
64
  slotProps?: {
98
- root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
65
+ root?: React.HTMLAttributes<HTMLDivElement> | undefined;
99
66
  secondaryAction?: SlotProps<React.ElementType<React.HTMLAttributes<HTMLDivElement>>, ListItemSecondaryActionSlotPropsOverrides, ListItemOwnerState> | undefined;
100
67
  } | undefined;
101
68
  /**
@@ -114,7 +81,6 @@ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.El
114
81
  }
115
82
 
116
83
  /**
117
- * Uses an additional container component if `ListItemSecondaryAction` is the last child.
118
84
  *
119
85
  * Demos:
120
86
  *
@@ -4,7 +4,6 @@ import { Theme } from "../styles/index.js";
4
4
  import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
5
5
  import { ListItemClasses } from "./listItemClasses.js";
6
6
  import { SlotProps } from "../utils/types.js";
7
- export interface ListItemComponentsPropsOverrides {}
8
7
  export interface ListItemSecondaryActionSlotPropsOverrides {}
9
8
 
10
9
  /**
@@ -17,26 +16,13 @@ export interface ListItemBaseProps {
17
16
  */
18
17
  alignItems?: 'flex-start' | 'center' | undefined;
19
18
  /**
20
- * The content of the component if a `ListItemSecondaryAction` is used it must
21
- * be the last child.
19
+ * The content of the component.
22
20
  */
23
21
  children?: React.ReactNode;
24
22
  /**
25
23
  * Override or extend the styles applied to the component.
26
24
  */
27
25
  classes?: Partial<ListItemClasses> | undefined;
28
- /**
29
- * The container component used when a `ListItemSecondaryAction` is the last child.
30
- * @default 'li'
31
- * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
32
- */
33
- ContainerComponent?: React.ElementType<React.HTMLAttributes<HTMLDivElement>> | undefined;
34
- /**
35
- * Props applied to the container component if used.
36
- * @default {}
37
- * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
38
- */
39
- ContainerProps?: React.HTMLAttributes<HTMLDivElement> | undefined;
40
26
  /**
41
27
  * If `true`, compact vertical padding designed for keyboard and mouse input is used.
42
28
  * The prop defaults to the value inherited from the parent List component.
@@ -69,25 +55,6 @@ export interface ListItemBaseProps {
69
55
  }
70
56
  export interface ListItemOwnerState extends Omit<ListItemProps, 'slots' | 'slotProps'> {}
71
57
  export interface ListItemOwnProps extends ListItemBaseProps {
72
- /**
73
- * The components used for each slot inside.
74
- *
75
- * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
76
- * @default {}
77
- */
78
- components?: {
79
- Root?: React.ElementType | undefined;
80
- } | undefined;
81
- /**
82
- * The extra props for the slot components.
83
- * You can override the existing props or add new ones.
84
- *
85
- * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
86
- * @default {}
87
- */
88
- componentsProps?: {
89
- root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
90
- } | undefined;
91
58
  /**
92
59
  * The extra props for the slot components.
93
60
  * You can override the existing props or add new ones.
@@ -95,7 +62,7 @@ export interface ListItemOwnProps extends ListItemBaseProps {
95
62
  * @default {}
96
63
  */
97
64
  slotProps?: {
98
- root?: (React.HTMLAttributes<HTMLDivElement> & ListItemComponentsPropsOverrides) | undefined;
65
+ root?: React.HTMLAttributes<HTMLDivElement> | undefined;
99
66
  secondaryAction?: SlotProps<React.ElementType<React.HTMLAttributes<HTMLDivElement>>, ListItemSecondaryActionSlotPropsOverrides, ListItemOwnerState> | undefined;
100
67
  } | undefined;
101
68
  /**
@@ -114,7 +81,6 @@ export interface ListItemTypeMap<AdditionalProps, RootComponent extends React.El
114
81
  }
115
82
 
116
83
  /**
117
- * Uses an additional container component if `ListItemSecondaryAction` is the last child.
118
84
  *
119
85
  * Demos:
120
86
  *