@mui/material 9.0.0-alpha.2 → 9.0.0-alpha.4

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 (352) hide show
  1. package/Accordion/Accordion.d.mts +0 -14
  2. package/Accordion/Accordion.d.ts +0 -14
  3. package/Accordion/Accordion.js +3 -25
  4. package/Accordion/Accordion.mjs +3 -25
  5. package/AccordionSummary/AccordionSummary.js +1 -1
  6. package/AccordionSummary/AccordionSummary.mjs +1 -1
  7. package/AccordionSummary/accordionSummaryClasses.d.mts +0 -5
  8. package/AccordionSummary/accordionSummaryClasses.d.ts +0 -5
  9. package/AccordionSummary/accordionSummaryClasses.js +1 -1
  10. package/AccordionSummary/accordionSummaryClasses.mjs +1 -1
  11. package/Alert/Alert.d.mts +0 -23
  12. package/Alert/Alert.d.ts +0 -23
  13. package/Alert/Alert.js +4 -36
  14. package/Alert/Alert.mjs +4 -36
  15. package/Alert/alertClasses.d.mts +0 -72
  16. package/Alert/alertClasses.d.ts +0 -72
  17. package/Alert/alertClasses.js +1 -1
  18. package/Alert/alertClasses.mjs +1 -1
  19. package/Autocomplete/Autocomplete.d.mts +26 -60
  20. package/Autocomplete/Autocomplete.d.ts +26 -60
  21. package/Autocomplete/Autocomplete.js +76 -119
  22. package/Autocomplete/Autocomplete.mjs +76 -119
  23. package/Avatar/Avatar.d.mts +0 -8
  24. package/Avatar/Avatar.d.ts +0 -8
  25. package/Avatar/Avatar.js +13 -35
  26. package/Avatar/Avatar.mjs +13 -35
  27. package/AvatarGroup/AvatarGroup.d.mts +0 -15
  28. package/AvatarGroup/AvatarGroup.d.ts +0 -15
  29. package/AvatarGroup/AvatarGroup.js +1 -18
  30. package/AvatarGroup/AvatarGroup.mjs +1 -18
  31. package/Backdrop/Backdrop.d.mts +1 -31
  32. package/Backdrop/Backdrop.d.ts +1 -31
  33. package/Backdrop/Backdrop.js +2 -42
  34. package/Backdrop/Backdrop.mjs +2 -42
  35. package/Badge/Badge.d.mts +0 -20
  36. package/Badge/Badge.d.ts +0 -20
  37. package/Badge/Badge.js +2 -35
  38. package/Badge/Badge.mjs +2 -35
  39. package/Box/Box.d.mts +1 -0
  40. package/Box/Box.d.ts +1 -0
  41. package/Button/Button.d.mts +1 -0
  42. package/Button/Button.d.ts +1 -0
  43. package/Button/Button.js +6 -6
  44. package/Button/Button.mjs +6 -6
  45. package/Button/buttonClasses.d.mts +0 -132
  46. package/Button/buttonClasses.d.ts +0 -132
  47. package/Button/buttonClasses.js +1 -1
  48. package/Button/buttonClasses.mjs +1 -1
  49. package/ButtonBase/ButtonBase.js +16 -2
  50. package/ButtonBase/ButtonBase.mjs +16 -2
  51. package/CHANGELOG.md +191 -0
  52. package/CardHeader/CardHeader.js +5 -1
  53. package/CardHeader/CardHeader.mjs +5 -1
  54. package/CircularProgress/CircularProgress.js +2 -2
  55. package/CircularProgress/CircularProgress.mjs +2 -2
  56. package/CircularProgress/circularProgressClasses.d.mts +0 -8
  57. package/CircularProgress/circularProgressClasses.d.ts +0 -8
  58. package/CircularProgress/circularProgressClasses.js +1 -1
  59. package/CircularProgress/circularProgressClasses.mjs +1 -1
  60. package/Divider/Divider.d.mts +1 -6
  61. package/Divider/Divider.d.ts +1 -6
  62. package/Divider/Divider.js +2 -18
  63. package/Divider/Divider.mjs +2 -18
  64. package/Divider/dividerClasses.d.mts +0 -4
  65. package/Divider/dividerClasses.d.ts +0 -4
  66. package/Divider/dividerClasses.js +1 -1
  67. package/Divider/dividerClasses.mjs +1 -1
  68. package/FormControlLabel/FormControlLabel.d.mts +1 -14
  69. package/FormControlLabel/FormControlLabel.d.ts +1 -14
  70. package/FormControlLabel/FormControlLabel.js +1 -13
  71. package/FormControlLabel/FormControlLabel.mjs +1 -13
  72. package/Input/Input.js +2 -1
  73. package/Input/Input.mjs +2 -1
  74. package/List/List.d.mts +1 -0
  75. package/List/List.d.ts +1 -0
  76. package/ListItemButton/ListItemButton.d.mts +1 -0
  77. package/ListItemButton/ListItemButton.d.ts +1 -0
  78. package/ListItemIcon/ListItemIcon.d.mts +1 -0
  79. package/ListItemIcon/ListItemIcon.d.ts +1 -0
  80. package/ListItemText/ListItemText.d.mts +1 -0
  81. package/ListItemText/ListItemText.d.ts +1 -0
  82. package/ListItemText/ListItemText.js +5 -1
  83. package/ListItemText/ListItemText.mjs +5 -1
  84. package/ListSubheader/ListSubheader.d.mts +1 -0
  85. package/ListSubheader/ListSubheader.d.ts +1 -0
  86. package/Menu/Menu.d.mts +0 -13
  87. package/Menu/Menu.d.ts +0 -13
  88. package/Menu/Menu.js +5 -44
  89. package/Menu/Menu.mjs +5 -44
  90. package/MenuItem/MenuItem.js +21 -1
  91. package/MenuItem/MenuItem.mjs +23 -1
  92. package/MenuList/MenuList.js +77 -109
  93. package/MenuList/MenuList.mjs +77 -109
  94. package/MobileStepper/MobileStepper.d.mts +0 -5
  95. package/MobileStepper/MobileStepper.d.ts +0 -5
  96. package/MobileStepper/MobileStepper.js +1 -10
  97. package/MobileStepper/MobileStepper.mjs +1 -10
  98. package/Paper/Paper.d.mts +1 -0
  99. package/Paper/Paper.d.ts +1 -0
  100. package/Popover/Popover.d.mts +4 -48
  101. package/Popover/Popover.d.ts +4 -48
  102. package/Popover/Popover.js +4 -64
  103. package/Popover/Popover.mjs +4 -64
  104. package/Popper/Popper.d.mts +0 -17
  105. package/Popper/Popper.d.ts +0 -17
  106. package/Popper/Popper.js +2 -26
  107. package/Popper/Popper.mjs +2 -26
  108. package/Popper/index.d.mts +1 -0
  109. package/Popper/index.d.ts +1 -0
  110. package/Popper/index.js +11 -2
  111. package/Popper/index.mjs +1 -0
  112. package/Select/SelectInput.js +50 -55
  113. package/Select/SelectInput.mjs +47 -52
  114. package/Select/index.d.mts +1 -0
  115. package/Select/index.d.ts +1 -0
  116. package/Select/index.js +12 -0
  117. package/Select/index.mjs +1 -0
  118. package/Select/utils/SelectFocusSourceContext.d.mts +4 -0
  119. package/Select/utils/SelectFocusSourceContext.d.ts +4 -0
  120. package/Select/utils/SelectFocusSourceContext.js +19 -0
  121. package/Select/utils/SelectFocusSourceContext.mjs +13 -0
  122. package/Select/utils/areEqualValues.d.mts +1 -0
  123. package/Select/utils/areEqualValues.d.ts +1 -0
  124. package/Select/utils/areEqualValues.js +14 -0
  125. package/Select/utils/areEqualValues.mjs +8 -0
  126. package/Select/utils/getOpenInteractionType.d.mts +1 -0
  127. package/Select/utils/getOpenInteractionType.d.ts +1 -0
  128. package/Select/utils/getOpenInteractionType.js +18 -0
  129. package/Select/utils/getOpenInteractionType.mjs +12 -0
  130. package/Select/utils/index.d.mts +4 -0
  131. package/Select/utils/index.d.ts +4 -0
  132. package/Select/utils/index.js +40 -0
  133. package/Select/utils/index.mjs +4 -0
  134. package/Select/utils/isEmpty.d.mts +1 -0
  135. package/Select/utils/isEmpty.d.ts +1 -0
  136. package/Select/utils/isEmpty.js +9 -0
  137. package/Select/utils/isEmpty.mjs +3 -0
  138. package/Slider/Slider.d.mts +109 -77
  139. package/Slider/Slider.d.ts +109 -77
  140. package/Slider/Slider.js +42 -119
  141. package/Slider/Slider.mjs +42 -119
  142. package/Slider/sliderClasses.d.mts +7 -7
  143. package/Slider/sliderClasses.d.ts +7 -7
  144. package/Slider/useSlider.js +50 -14
  145. package/Slider/useSlider.mjs +50 -14
  146. package/Snackbar/Snackbar.d.mts +1 -27
  147. package/Snackbar/Snackbar.d.ts +1 -27
  148. package/Snackbar/Snackbar.js +5 -58
  149. package/Snackbar/Snackbar.mjs +5 -58
  150. package/SpeedDial/SpeedDial.d.mts +0 -13
  151. package/SpeedDial/SpeedDial.d.ts +0 -13
  152. package/SpeedDial/SpeedDial.js +15 -40
  153. package/SpeedDial/SpeedDial.mjs +15 -40
  154. package/SpeedDialAction/SpeedDialAction.d.mts +0 -28
  155. package/SpeedDialAction/SpeedDialAction.d.ts +0 -28
  156. package/SpeedDialAction/SpeedDialAction.js +5 -46
  157. package/SpeedDialAction/SpeedDialAction.mjs +5 -46
  158. package/Step/Step.js +7 -5
  159. package/Step/Step.mjs +7 -5
  160. package/StepButton/StepButton.js +16 -6
  161. package/StepButton/StepButton.mjs +16 -6
  162. package/StepConnector/StepConnector.js +2 -2
  163. package/StepConnector/StepConnector.mjs +2 -2
  164. package/StepContent/StepContent.js +2 -2
  165. package/StepContent/StepContent.mjs +2 -2
  166. package/StepLabel/StepLabel.js +2 -2
  167. package/StepLabel/StepLabel.mjs +2 -2
  168. package/Stepper/Stepper.js +44 -7
  169. package/Stepper/Stepper.mjs +44 -7
  170. package/Stepper/StepperContext.d.mts +7 -0
  171. package/Stepper/StepperContext.d.ts +7 -0
  172. package/Stepper/StepperContext.js +2 -1
  173. package/Stepper/StepperContext.mjs +1 -0
  174. package/Stepper/index.d.mts +0 -1
  175. package/Stepper/index.d.ts +0 -1
  176. package/Tab/Tab.js +0 -1
  177. package/Tab/Tab.mjs +0 -1
  178. package/TablePagination/TablePagination.d.mts +1 -1
  179. package/TablePagination/TablePagination.d.ts +1 -1
  180. package/TablePagination/TablePagination.js +4 -2
  181. package/TablePagination/TablePagination.mjs +4 -2
  182. package/Tabs/Tabs.d.mts +2 -33
  183. package/Tabs/Tabs.d.ts +2 -33
  184. package/Tabs/Tabs.js +54 -135
  185. package/Tabs/Tabs.mjs +54 -135
  186. package/TextField/TextField.d.mts +6 -49
  187. package/TextField/TextField.d.ts +6 -49
  188. package/TextField/TextField.js +18 -53
  189. package/TextField/TextField.mjs +18 -53
  190. package/Tooltip/Tooltip.d.mts +1 -55
  191. package/Tooltip/Tooltip.d.ts +1 -55
  192. package/Tooltip/Tooltip.js +9 -87
  193. package/Tooltip/Tooltip.mjs +9 -87
  194. package/Typography/Typography.d.mts +1 -6
  195. package/Typography/Typography.d.ts +1 -6
  196. package/Typography/Typography.js +3 -19
  197. package/Typography/Typography.mjs +3 -19
  198. package/Typography/typographyClasses.d.mts +0 -5
  199. package/Typography/typographyClasses.d.ts +0 -5
  200. package/Typography/typographyClasses.js +1 -1
  201. package/Typography/typographyClasses.mjs +1 -1
  202. package/index.d.mts +0 -2
  203. package/index.d.ts +0 -2
  204. package/index.js +1 -9
  205. package/index.mjs +1 -2
  206. package/locale/amET.js +4 -1
  207. package/locale/amET.mjs +3 -1
  208. package/locale/arEG.js +4 -1
  209. package/locale/arEG.mjs +3 -1
  210. package/locale/arSA.js +4 -1
  211. package/locale/arSA.mjs +3 -1
  212. package/locale/arSD.js +4 -1
  213. package/locale/arSD.mjs +3 -1
  214. package/locale/beBY.js +4 -1
  215. package/locale/beBY.mjs +3 -1
  216. package/locale/bnBD.js +4 -1
  217. package/locale/bnBD.mjs +3 -1
  218. package/locale/caES.js +4 -1
  219. package/locale/caES.mjs +3 -1
  220. package/locale/csCZ.js +4 -1
  221. package/locale/csCZ.mjs +3 -1
  222. package/locale/daDK.js +4 -1
  223. package/locale/daDK.mjs +3 -1
  224. package/locale/deDE.js +4 -1
  225. package/locale/deDE.mjs +3 -1
  226. package/locale/elGR.js +4 -1
  227. package/locale/elGR.mjs +3 -1
  228. package/locale/esES.js +4 -1
  229. package/locale/esES.mjs +3 -1
  230. package/locale/etEE.js +4 -1
  231. package/locale/etEE.mjs +3 -1
  232. package/locale/faIR.js +4 -1
  233. package/locale/faIR.mjs +3 -1
  234. package/locale/fiFI.js +4 -1
  235. package/locale/fiFI.mjs +3 -1
  236. package/locale/frFR.js +4 -1
  237. package/locale/frFR.mjs +3 -1
  238. package/locale/heIL.js +4 -1
  239. package/locale/heIL.mjs +3 -1
  240. package/locale/hiIN.js +4 -1
  241. package/locale/hiIN.mjs +3 -1
  242. package/locale/hrHR.js +5 -1
  243. package/locale/hrHR.mjs +4 -1
  244. package/locale/isIS.js +4 -1
  245. package/locale/isIS.mjs +3 -1
  246. package/locale/itIT.js +4 -1
  247. package/locale/itIT.mjs +3 -1
  248. package/locale/jaJP.js +4 -1
  249. package/locale/jaJP.mjs +3 -1
  250. package/locale/khKH.js +4 -1
  251. package/locale/khKH.mjs +3 -1
  252. package/locale/kkKZ.js +4 -1
  253. package/locale/kkKZ.mjs +3 -1
  254. package/locale/koKR.js +4 -1
  255. package/locale/koKR.mjs +3 -1
  256. package/locale/kuCKB.js +4 -1
  257. package/locale/kuCKB.mjs +3 -1
  258. package/locale/kuLatn.js +4 -1
  259. package/locale/kuLatn.mjs +3 -1
  260. package/locale/mkMK.js +5 -1
  261. package/locale/mkMK.mjs +4 -1
  262. package/locale/msMS.js +5 -1
  263. package/locale/msMS.mjs +4 -1
  264. package/locale/myMY.js +5 -1
  265. package/locale/myMY.mjs +4 -1
  266. package/locale/nbNO.js +4 -1
  267. package/locale/nbNO.mjs +3 -1
  268. package/locale/neNP.js +5 -1
  269. package/locale/neNP.mjs +4 -1
  270. package/locale/nlNL.js +4 -1
  271. package/locale/nlNL.mjs +3 -1
  272. package/locale/nnNO.js +4 -1
  273. package/locale/nnNO.mjs +3 -1
  274. package/locale/plPL.js +4 -1
  275. package/locale/plPL.mjs +3 -1
  276. package/locale/psAF.js +4 -1
  277. package/locale/psAF.mjs +3 -1
  278. package/locale/ptBR.js +4 -1
  279. package/locale/ptBR.mjs +3 -1
  280. package/locale/ptPT.js +4 -1
  281. package/locale/ptPT.mjs +3 -1
  282. package/locale/roRO.js +4 -1
  283. package/locale/roRO.mjs +3 -1
  284. package/locale/ruRU.js +4 -1
  285. package/locale/ruRU.mjs +3 -1
  286. package/locale/siLK.js +4 -1
  287. package/locale/siLK.mjs +3 -1
  288. package/locale/skSK.js +4 -1
  289. package/locale/skSK.mjs +3 -1
  290. package/locale/srRS.js +5 -1
  291. package/locale/srRS.mjs +4 -1
  292. package/locale/svSE.js +4 -1
  293. package/locale/svSE.mjs +3 -1
  294. package/locale/thTH.js +4 -1
  295. package/locale/thTH.mjs +3 -1
  296. package/locale/tlTL.js +5 -1
  297. package/locale/tlTL.mjs +4 -1
  298. package/locale/trTR.js +4 -1
  299. package/locale/trTR.mjs +3 -1
  300. package/locale/ukUA.js +4 -1
  301. package/locale/ukUA.mjs +3 -1
  302. package/locale/urPK.js +4 -1
  303. package/locale/urPK.mjs +3 -1
  304. package/locale/utils/buildFormatNumber.d.mts +2 -0
  305. package/locale/utils/buildFormatNumber.d.ts +2 -0
  306. package/locale/utils/buildFormatNumber.js +23 -0
  307. package/locale/utils/buildFormatNumber.mjs +17 -0
  308. package/locale/viVN.js +4 -1
  309. package/locale/viVN.mjs +3 -1
  310. package/locale/zhCN.js +4 -1
  311. package/locale/zhCN.mjs +3 -1
  312. package/locale/zhHK.js +4 -1
  313. package/locale/zhHK.mjs +3 -1
  314. package/locale/zhTW.js +4 -1
  315. package/locale/zhTW.mjs +3 -1
  316. package/package.json +236 -236
  317. package/styles/components.d.mts +0 -5
  318. package/styles/components.d.ts +0 -5
  319. package/styles/overrides.d.mts +0 -2
  320. package/styles/overrides.d.ts +0 -2
  321. package/styles/props.d.mts +0 -2
  322. package/styles/props.d.ts +0 -2
  323. package/themeCssVarsAugmentation/index.js +5 -0
  324. package/themeCssVarsAugmentation/index.mjs +5 -0
  325. package/useAutocomplete/useAutocomplete.d.mts +0 -12
  326. package/useAutocomplete/useAutocomplete.d.ts +0 -12
  327. package/useAutocomplete/useAutocomplete.js +53 -28
  328. package/useAutocomplete/useAutocomplete.mjs +53 -28
  329. package/utils/index.d.mts +2 -0
  330. package/utils/index.d.ts +2 -0
  331. package/utils/index.js +14 -0
  332. package/utils/index.mjs +2 -0
  333. package/utils/useRovingTabIndex.d.mts +2 -0
  334. package/utils/useRovingTabIndex.d.ts +2 -0
  335. package/utils/useRovingTabIndex.js +9 -0
  336. package/utils/useRovingTabIndex.mjs +2 -0
  337. package/version/index.js +2 -2
  338. package/version/index.mjs +2 -2
  339. package/GridLegacy/GridLegacy.d.mts +0 -160
  340. package/GridLegacy/GridLegacy.d.ts +0 -160
  341. package/GridLegacy/GridLegacy.js +0 -601
  342. package/GridLegacy/GridLegacy.mjs +0 -588
  343. package/GridLegacy/GridLegacyContext.js +0 -17
  344. package/GridLegacy/GridLegacyContext.mjs +0 -12
  345. package/GridLegacy/gridLegacyClasses.d.mts +0 -48
  346. package/GridLegacy/gridLegacyClasses.d.ts +0 -48
  347. package/GridLegacy/gridLegacyClasses.js +0 -27
  348. package/GridLegacy/gridLegacyClasses.mjs +0 -19
  349. package/GridLegacy/index.d.mts +0 -4
  350. package/GridLegacy/index.d.ts +0 -4
  351. package/GridLegacy/index.js +0 -35
  352. package/GridLegacy/index.mjs +0 -3
@@ -58,7 +58,6 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
58
58
  children: childrenProp,
59
59
  className,
60
60
  component = 'div',
61
- componentsProps,
62
61
  max = 5,
63
62
  renderSurplus,
64
63
  slotProps = {},
@@ -103,11 +102,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
103
102
  }
104
103
  const externalForwardedProps = {
105
104
  slots,
106
- slotProps: {
107
- surplus: slotProps.additionalAvatar ?? componentsProps?.additionalAvatar,
108
- ...componentsProps,
109
- ...slotProps
110
- }
105
+ slotProps
111
106
  };
112
107
  const [SurplusSlot, surplusProps] = useSlot('surplus', {
113
108
  elementType: Avatar,
@@ -162,17 +157,6 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
162
157
  * Either a string to use a HTML element or a component.
163
158
  */
164
159
  component: PropTypes.elementType,
165
- /**
166
- * The extra props for the slot components.
167
- * You can override the existing props or add new ones.
168
- *
169
- * This prop is an alias for the `slotProps` prop.
170
- *
171
- * @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.
172
- */
173
- componentsProps: PropTypes.shape({
174
- additionalAvatar: PropTypes.object
175
- }),
176
160
  /**
177
161
  * Max avatars to show before +x.
178
162
  * @default 5
@@ -194,7 +178,6 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptype
194
178
  * @default {}
195
179
  */
196
180
  slotProps: PropTypes.shape({
197
- additionalAvatar: PropTypes.object,
198
181
  surplus: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
199
182
  }),
200
183
  /**
@@ -38,27 +38,6 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
38
38
  * The content of the component.
39
39
  */
40
40
  children?: React.ReactNode;
41
- /**
42
- * The components used for each slot inside.
43
- *
44
- * @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.
45
- *
46
- * @default {}
47
- */
48
- components?: {
49
- Root?: React.ElementType | undefined;
50
- } | undefined;
51
- /**
52
- * The extra props for the slot components.
53
- * You can override the existing props or add new ones.
54
- *
55
- * @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.
56
- *
57
- * @default {}
58
- */
59
- componentsProps?: {
60
- root?: (React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides) | undefined;
61
- } | undefined;
62
41
  /**
63
42
  * Override or extend the styles applied to the component.
64
43
  */
@@ -82,21 +61,12 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
82
61
  * You may specify a single timeout for all transitions, or individually with an object.
83
62
  */
84
63
  transitionDuration?: TransitionProps['timeout'] | undefined;
85
- /**
86
- * The component used for the transition.
87
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
88
- * @default Fade
89
- * @deprecated Use `slots.transition` 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.
90
- */
91
- TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
92
- children: React.ReactElement<unknown, any>;
93
- }> | undefined;
94
64
  }
95
65
  export interface BackdropTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
96
66
  props: AdditionalProps & BackdropOwnProps;
97
67
  defaultComponent: RootComponent;
98
68
  }
99
- type BackdropRootProps = NonNullable<BackdropTypeMap['props']['componentsProps']>['root'];
69
+ type BackdropRootProps = React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
100
70
  export declare const BackdropRoot: React.FC<BackdropRootProps>;
101
71
 
102
72
  /**
@@ -38,27 +38,6 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
38
38
  * The content of the component.
39
39
  */
40
40
  children?: React.ReactNode;
41
- /**
42
- * The components used for each slot inside.
43
- *
44
- * @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.
45
- *
46
- * @default {}
47
- */
48
- components?: {
49
- Root?: React.ElementType | undefined;
50
- } | undefined;
51
- /**
52
- * The extra props for the slot components.
53
- * You can override the existing props or add new ones.
54
- *
55
- * @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.
56
- *
57
- * @default {}
58
- */
59
- componentsProps?: {
60
- root?: (React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides) | undefined;
61
- } | undefined;
62
41
  /**
63
42
  * Override or extend the styles applied to the component.
64
43
  */
@@ -82,21 +61,12 @@ export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>,
82
61
  * You may specify a single timeout for all transitions, or individually with an object.
83
62
  */
84
63
  transitionDuration?: TransitionProps['timeout'] | undefined;
85
- /**
86
- * The component used for the transition.
87
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
88
- * @default Fade
89
- * @deprecated Use `slots.transition` 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.
90
- */
91
- TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
92
- children: React.ReactElement<unknown, any>;
93
- }> | undefined;
94
64
  }
95
65
  export interface BackdropTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
96
66
  props: AdditionalProps & BackdropOwnProps;
97
67
  defaultComponent: RootComponent;
98
68
  }
99
- type BackdropRootProps = NonNullable<BackdropTypeMap['props']['componentsProps']>['root'];
69
+ type BackdropRootProps = React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
100
70
  export declare const BackdropRoot: React.FC<BackdropRootProps>;
101
71
 
102
72
  /**
@@ -67,11 +67,8 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
67
67
  component = 'div',
68
68
  invisible = false,
69
69
  open,
70
- components = {},
71
- componentsProps = {},
72
70
  slotProps = {},
73
71
  slots = {},
74
- TransitionComponent: TransitionComponentProp,
75
72
  transitionDuration,
76
73
  ...other
77
74
  } = props;
@@ -81,19 +78,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
81
78
  invisible
82
79
  };
83
80
  const classes = useUtilityClasses(ownerState);
84
- const backwardCompatibleSlots = {
85
- transition: TransitionComponentProp,
86
- root: components.Root,
87
- ...slots
88
- };
89
- const backwardCompatibleSlotProps = {
90
- ...componentsProps,
91
- ...slotProps
92
- };
93
81
  const externalForwardedProps = {
94
82
  component,
95
- slots: backwardCompatibleSlots,
96
- slotProps: backwardCompatibleSlotProps
83
+ slots,
84
+ slotProps
97
85
  };
98
86
  const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
99
87
  elementType: BackdropRoot,
@@ -140,27 +128,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
140
128
  * Either a string to use a HTML element or a component.
141
129
  */
142
130
  component: _propTypes.default.elementType,
143
- /**
144
- * The components used for each slot inside.
145
- *
146
- * @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.
147
- *
148
- * @default {}
149
- */
150
- components: _propTypes.default.shape({
151
- Root: _propTypes.default.elementType
152
- }),
153
- /**
154
- * The extra props for the slot components.
155
- * You can override the existing props or add new ones.
156
- *
157
- * @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.
158
- *
159
- * @default {}
160
- */
161
- componentsProps: _propTypes.default.shape({
162
- root: _propTypes.default.object
163
- }),
164
131
  /**
165
132
  * If `true`, the backdrop is invisible.
166
133
  * It can be used when rendering a popover or a custom select component.
@@ -191,13 +158,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
191
158
  * The system prop that allows defining system overrides as well as additional CSS styles.
192
159
  */
193
160
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
194
- /**
195
- * The component used for the transition.
196
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
197
- * @default Fade
198
- * @deprecated Use `slots.transition` 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.
199
- */
200
- TransitionComponent: _propTypes.default.elementType,
201
161
  /**
202
162
  * The duration for the transition, in milliseconds.
203
163
  * You may specify a single timeout for all transitions, or individually with an object.
@@ -60,11 +60,8 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
60
60
  component = 'div',
61
61
  invisible = false,
62
62
  open,
63
- components = {},
64
- componentsProps = {},
65
63
  slotProps = {},
66
64
  slots = {},
67
- TransitionComponent: TransitionComponentProp,
68
65
  transitionDuration,
69
66
  ...other
70
67
  } = props;
@@ -74,19 +71,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
74
71
  invisible
75
72
  };
76
73
  const classes = useUtilityClasses(ownerState);
77
- const backwardCompatibleSlots = {
78
- transition: TransitionComponentProp,
79
- root: components.Root,
80
- ...slots
81
- };
82
- const backwardCompatibleSlotProps = {
83
- ...componentsProps,
84
- ...slotProps
85
- };
86
74
  const externalForwardedProps = {
87
75
  component,
88
- slots: backwardCompatibleSlots,
89
- slotProps: backwardCompatibleSlotProps
76
+ slots,
77
+ slotProps
90
78
  };
91
79
  const [RootSlot, rootProps] = useSlot('root', {
92
80
  elementType: BackdropRoot,
@@ -133,27 +121,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
133
121
  * Either a string to use a HTML element or a component.
134
122
  */
135
123
  component: PropTypes.elementType,
136
- /**
137
- * The components used for each slot inside.
138
- *
139
- * @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.
140
- *
141
- * @default {}
142
- */
143
- components: PropTypes.shape({
144
- Root: PropTypes.elementType
145
- }),
146
- /**
147
- * The extra props for the slot components.
148
- * You can override the existing props or add new ones.
149
- *
150
- * @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.
151
- *
152
- * @default {}
153
- */
154
- componentsProps: PropTypes.shape({
155
- root: PropTypes.object
156
- }),
157
124
  /**
158
125
  * If `true`, the backdrop is invisible.
159
126
  * It can be used when rendering a popover or a custom select component.
@@ -184,13 +151,6 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
184
151
  * The system prop that allows defining system overrides as well as additional CSS styles.
185
152
  */
186
153
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
187
- /**
188
- * The component used for the transition.
189
- * [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
190
- * @default Fade
191
- * @deprecated Use `slots.transition` 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.
192
- */
193
- TransitionComponent: PropTypes.elementType,
194
154
  /**
195
155
  * The duration for the transition, in milliseconds.
196
156
  * You may specify a single timeout for all transitions, or individually with an object.
package/Badge/Badge.d.mts CHANGED
@@ -80,26 +80,6 @@ export interface BadgeOwnProps extends BadgeSlotsAndSlotProps {
80
80
  * @default 'default'
81
81
  */
82
82
  color?: OverridableStringUnion<'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning', BadgePropsColorOverrides> | undefined;
83
- /**
84
- * The extra props for the slot components.
85
- * You can override the existing props or add new ones.
86
- *
87
- * @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.
88
- *
89
- * @default {}
90
- */
91
- componentsProps?: BadgeOwnProps['slotProps'] | undefined;
92
- /**
93
- * The components used for each slot inside.
94
- *
95
- * @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.
96
- *
97
- * @default {}
98
- */
99
- components?: {
100
- Root?: React.ElementType | undefined;
101
- Badge?: React.ElementType | undefined;
102
- } | undefined;
103
83
  /**
104
84
  * If `true`, the badge is invisible.
105
85
  * @default false
package/Badge/Badge.d.ts CHANGED
@@ -80,26 +80,6 @@ export interface BadgeOwnProps extends BadgeSlotsAndSlotProps {
80
80
  * @default 'default'
81
81
  */
82
82
  color?: OverridableStringUnion<'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning', BadgePropsColorOverrides> | undefined;
83
- /**
84
- * The extra props for the slot components.
85
- * You can override the existing props or add new ones.
86
- *
87
- * @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.
88
- *
89
- * @default {}
90
- */
91
- componentsProps?: BadgeOwnProps['slotProps'] | undefined;
92
- /**
93
- * The components used for each slot inside.
94
- *
95
- * @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.
96
- *
97
- * @default {}
98
- */
99
- components?: {
100
- Root?: React.ElementType | undefined;
101
- Badge?: React.ElementType | undefined;
102
- } | undefined;
103
83
  /**
104
84
  * If `true`, the badge is invisible.
105
85
  * @default false
package/Badge/Badge.js CHANGED
@@ -151,8 +151,6 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
151
151
  className,
152
152
  classes: classesProp,
153
153
  component,
154
- components = {},
155
- componentsProps = {},
156
154
  children,
157
155
  overlap: overlapProp = 'rectangular',
158
156
  color: colorProp = 'default',
@@ -205,17 +203,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
205
203
  variant
206
204
  };
207
205
  const classes = useUtilityClasses(ownerState);
208
-
209
- // support both `slots` and `components` for backward compatibility
210
206
  const externalForwardedProps = {
211
- slots: {
212
- root: slots?.root ?? components.Root,
213
- badge: slots?.badge ?? components.Badge
214
- },
215
- slotProps: {
216
- root: slotProps?.root ?? componentsProps.root,
217
- badge: slotProps?.badge ?? componentsProps.badge
218
- }
207
+ slots,
208
+ slotProps
219
209
  };
220
210
  const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
221
211
  elementType: BadgeRoot,
@@ -288,29 +278,6 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
288
278
  * Either a string to use a HTML element or a component.
289
279
  */
290
280
  component: _propTypes.default.elementType,
291
- /**
292
- * The components used for each slot inside.
293
- *
294
- * @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.
295
- *
296
- * @default {}
297
- */
298
- components: _propTypes.default.shape({
299
- Badge: _propTypes.default.elementType,
300
- Root: _propTypes.default.elementType
301
- }),
302
- /**
303
- * The extra props for the slot components.
304
- * You can override the existing props or add new ones.
305
- *
306
- * @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.
307
- *
308
- * @default {}
309
- */
310
- componentsProps: _propTypes.default.shape({
311
- badge: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
312
- root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
313
- }),
314
281
  /**
315
282
  * If `true`, the badge is invisible.
316
283
  * @default false
package/Badge/Badge.mjs CHANGED
@@ -144,8 +144,6 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
144
144
  className,
145
145
  classes: classesProp,
146
146
  component,
147
- components = {},
148
- componentsProps = {},
149
147
  children,
150
148
  overlap: overlapProp = 'rectangular',
151
149
  color: colorProp = 'default',
@@ -198,17 +196,9 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
198
196
  variant
199
197
  };
200
198
  const classes = useUtilityClasses(ownerState);
201
-
202
- // support both `slots` and `components` for backward compatibility
203
199
  const externalForwardedProps = {
204
- slots: {
205
- root: slots?.root ?? components.Root,
206
- badge: slots?.badge ?? components.Badge
207
- },
208
- slotProps: {
209
- root: slotProps?.root ?? componentsProps.root,
210
- badge: slotProps?.badge ?? componentsProps.badge
211
- }
200
+ slots,
201
+ slotProps
212
202
  };
213
203
  const [RootSlot, rootProps] = useSlot('root', {
214
204
  elementType: BadgeRoot,
@@ -281,29 +271,6 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ =
281
271
  * Either a string to use a HTML element or a component.
282
272
  */
283
273
  component: PropTypes.elementType,
284
- /**
285
- * The components used for each slot inside.
286
- *
287
- * @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.
288
- *
289
- * @default {}
290
- */
291
- components: PropTypes.shape({
292
- Badge: PropTypes.elementType,
293
- Root: PropTypes.elementType
294
- }),
295
- /**
296
- * The extra props for the slot components.
297
- * You can override the existing props or add new ones.
298
- *
299
- * @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.
300
- *
301
- * @default {}
302
- */
303
- componentsProps: PropTypes.shape({
304
- badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
305
- root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
306
- }),
307
274
  /**
308
275
  * If `true`, the badge is invisible.
309
276
  * @default false
package/Box/Box.d.mts CHANGED
@@ -8,6 +8,7 @@ import { Theme as MaterialTheme } from "../styles/index.mjs";
8
8
  * Demos:
9
9
  *
10
10
  * - [Box](https://next.mui.com/material-ui/react-box/)
11
+ * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
11
12
  *
12
13
  * API:
13
14
  *
package/Box/Box.d.ts CHANGED
@@ -8,6 +8,7 @@ import { Theme as MaterialTheme } from "../styles/index.js";
8
8
  * Demos:
9
9
  *
10
10
  * - [Box](https://next.mui.com/material-ui/react-box/)
11
+ * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
11
12
  *
12
13
  * API:
13
14
  *
@@ -117,6 +117,7 @@ export type ExtendButton<TypeMap extends OverridableTypeMap> = ((props: {
117
117
  *
118
118
  * - [Button Group](https://next.mui.com/material-ui/react-button-group/)
119
119
  * - [Button](https://next.mui.com/material-ui/react-button/)
120
+ * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
120
121
  * - [Number Field](https://next.mui.com/material-ui/react-number-field/)
121
122
  *
122
123
  * API:
@@ -117,6 +117,7 @@ export type ExtendButton<TypeMap extends OverridableTypeMap> = ((props: {
117
117
  *
118
118
  * - [Button Group](https://next.mui.com/material-ui/react-button-group/)
119
119
  * - [Button](https://next.mui.com/material-ui/react-button/)
120
+ * - [Menubar](https://next.mui.com/material-ui/react-menubar/)
120
121
  * - [Number Field](https://next.mui.com/material-ui/react-number-field/)
121
122
  *
122
123
  * API:
package/Button/Button.js CHANGED
@@ -37,9 +37,9 @@ const useUtilityClasses = ownerState => {
37
37
  classes
38
38
  } = ownerState;
39
39
  const slots = {
40
- root: ['root', loading && 'loading', variant, `${variant}${(0, _capitalize.default)(color)}`, `size${(0, _capitalize.default)(size)}`, `${variant}Size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${(0, _capitalize.default)(loadingPosition)}`],
41
- startIcon: ['icon', 'startIcon', `iconSize${(0, _capitalize.default)(size)}`],
42
- endIcon: ['icon', 'endIcon', `iconSize${(0, _capitalize.default)(size)}`],
40
+ root: ['root', loading && 'loading', variant, `size${(0, _capitalize.default)(size)}`, `color${(0, _capitalize.default)(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${(0, _capitalize.default)(loadingPosition)}`],
41
+ startIcon: ['icon', 'startIcon'],
42
+ endIcon: ['icon', 'endIcon'],
43
43
  loadingIndicator: ['loadingIndicator'],
44
44
  loadingWrapper: ['loadingWrapper']
45
45
  };
@@ -86,7 +86,7 @@ const ButtonRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
86
86
  const {
87
87
  ownerState
88
88
  } = props;
89
- return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${(0, _capitalize.default)(ownerState.color)}`], styles[`size${(0, _capitalize.default)(ownerState.size)}`], styles[`${ownerState.variant}Size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
89
+ return [styles.root, styles[ownerState.variant], styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
90
90
  }
91
91
  })((0, _memoTheme.default)(({
92
92
  theme
@@ -295,7 +295,7 @@ const ButtonStartIcon = (0, _zeroStyled.styled)('span', {
295
295
  const {
296
296
  ownerState
297
297
  } = props;
298
- return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
298
+ return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];
299
299
  }
300
300
  })(({
301
301
  theme
@@ -339,7 +339,7 @@ const ButtonEndIcon = (0, _zeroStyled.styled)('span', {
339
339
  const {
340
340
  ownerState
341
341
  } = props;
342
- return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${(0, _capitalize.default)(ownerState.size)}`]];
342
+ return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];
343
343
  }
344
344
  })(({
345
345
  theme
package/Button/Button.mjs CHANGED
@@ -30,9 +30,9 @@ const useUtilityClasses = ownerState => {
30
30
  classes
31
31
  } = ownerState;
32
32
  const slots = {
33
- root: ['root', loading && 'loading', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],
34
- startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],
35
- endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`],
33
+ root: ['root', loading && 'loading', variant, `size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth', loading && `loadingPosition${capitalize(loadingPosition)}`],
34
+ startIcon: ['icon', 'startIcon'],
35
+ endIcon: ['icon', 'endIcon'],
36
36
  loadingIndicator: ['loadingIndicator'],
37
37
  loadingWrapper: ['loadingWrapper']
38
38
  };
@@ -79,7 +79,7 @@ const ButtonRoot = styled(ButtonBase, {
79
79
  const {
80
80
  ownerState
81
81
  } = props;
82
- return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
82
+ return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.loading && styles.loading];
83
83
  }
84
84
  })(memoTheme(({
85
85
  theme
@@ -288,7 +288,7 @@ const ButtonStartIcon = styled('span', {
288
288
  const {
289
289
  ownerState
290
290
  } = props;
291
- return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart, styles[`iconSize${capitalize(ownerState.size)}`]];
291
+ return [styles.startIcon, ownerState.loading && styles.startIconLoadingStart];
292
292
  }
293
293
  })(({
294
294
  theme
@@ -332,7 +332,7 @@ const ButtonEndIcon = styled('span', {
332
332
  const {
333
333
  ownerState
334
334
  } = props;
335
- return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd, styles[`iconSize${capitalize(ownerState.size)}`]];
335
+ return [styles.endIcon, ownerState.loading && styles.endIconLoadingEnd];
336
336
  }
337
337
  })(({
338
338
  theme