@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/Drawer/Drawer.mjs CHANGED
@@ -34,7 +34,7 @@ const useUtilityClasses = ownerState => {
34
34
  root: ['root', `anchor${capitalize(anchor)}`],
35
35
  docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
36
36
  modal: ['modal'],
37
- paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
37
+ paper: ['paper']
38
38
  };
39
39
  return composeClasses(slots, getDrawerUtilityClass, classes);
40
40
  };
@@ -60,10 +60,7 @@ const DrawerPaper = styled(Paper, {
60
60
  name: 'MuiDrawer',
61
61
  slot: 'Paper',
62
62
  overridesResolver: (props, styles) => {
63
- const {
64
- ownerState
65
- } = props;
66
- return [styles.paper, styles[`paperAnchor${capitalize(ownerState.anchor)}`], ownerState.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]];
63
+ return [styles.paper];
67
64
  }
68
65
  })(memoTheme(({
69
66
  theme
@@ -182,21 +179,13 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
182
179
  };
183
180
  const {
184
181
  anchor: anchorProp = 'left',
185
- BackdropProps,
186
182
  children,
187
183
  className,
188
184
  elevation = 16,
189
185
  hideBackdrop = false,
190
- ModalProps: {
191
- BackdropProps: BackdropPropsProp,
192
- ...ModalProps
193
- } = {},
186
+ ModalProps = {},
194
187
  onClose,
195
188
  open = false,
196
- PaperProps = {},
197
- SlideProps,
198
- // eslint-disable-next-line react/prop-types
199
- TransitionComponent,
200
189
  transitionDuration = defaultTransitionDuration,
201
190
  variant = 'temporary',
202
191
  slots = {},
@@ -225,18 +214,10 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
225
214
  };
226
215
  const classes = useUtilityClasses(ownerState);
227
216
  const externalForwardedProps = {
228
- slots: {
229
- transition: TransitionComponent,
230
- ...slots
231
- },
217
+ slots,
232
218
  slotProps: {
233
- paper: PaperProps,
234
- transition: SlideProps,
235
219
  ...slotProps,
236
- backdrop: mergeSlotProps(slotProps.backdrop || {
237
- ...BackdropProps,
238
- ...BackdropPropsProp
239
- }, {
220
+ backdrop: mergeSlotProps(slotProps.backdrop, {
240
221
  transitionDuration
241
222
  })
242
223
  }
@@ -267,7 +248,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
267
248
  const [PaperSlot, paperSlotProps] = useSlot('paper', {
268
249
  elementType: DrawerPaper,
269
250
  shouldForwardComponentProp: true,
270
- className: clsx(classes.paper, PaperProps.className),
251
+ className: classes.paper,
271
252
  ownerState,
272
253
  externalForwardedProps,
273
254
  additionalProps: {
@@ -335,10 +316,6 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
335
316
  * @default 'left'
336
317
  */
337
318
  anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
338
- /**
339
- * @ignore
340
- */
341
- BackdropProps: PropTypes.object,
342
319
  /**
343
320
  * The content of the component.
344
321
  */
@@ -379,17 +356,6 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
379
356
  * @default false
380
357
  */
381
358
  open: PropTypes.bool,
382
- /**
383
- * Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
384
- * @deprecated use the `slotProps.paper` 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.
385
- * @default {}
386
- */
387
- PaperProps: PropTypes.object,
388
- /**
389
- * Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
390
- * @deprecated use the `slotProps.transition` 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.
391
- */
392
- SlideProps: PropTypes.object,
393
359
  /**
394
360
  * The props used for each slot inside.
395
361
  * @default {}
@@ -13,38 +13,6 @@ export interface DrawerClasses {
13
13
  anchorTop: string;
14
14
  /** Styles applied to the root element if `anchor="bottom"`. */
15
15
  anchorBottom: string;
16
- /** Styles applied to the Paper component if `anchor="left"`.
17
- * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
18
- */
19
- paperAnchorLeft: string;
20
- /** Styles applied to the Paper component if `anchor="right"`.
21
- * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
22
- */
23
- paperAnchorRight: string;
24
- /** Styles applied to the Paper component if `anchor="top"`.
25
- * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
26
- */
27
- paperAnchorTop: string;
28
- /** Styles applied to the Paper component if `anchor="bottom"`.
29
- * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
30
- */
31
- paperAnchorBottom: string;
32
- /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
33
- * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
- */
35
- paperAnchorDockedLeft: string;
36
- /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
37
- * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
- */
39
- paperAnchorDockedTop: string;
40
- /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
41
- * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
- */
43
- paperAnchorDockedRight: string;
44
- /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
45
- * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
- */
47
- paperAnchorDockedBottom: string;
48
16
  /** Styles applied to the Modal component. */
49
17
  modal: string;
50
18
  }
@@ -13,38 +13,6 @@ export interface DrawerClasses {
13
13
  anchorTop: string;
14
14
  /** Styles applied to the root element if `anchor="bottom"`. */
15
15
  anchorBottom: string;
16
- /** Styles applied to the Paper component if `anchor="left"`.
17
- * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
18
- */
19
- paperAnchorLeft: string;
20
- /** Styles applied to the Paper component if `anchor="right"`.
21
- * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
22
- */
23
- paperAnchorRight: string;
24
- /** Styles applied to the Paper component if `anchor="top"`.
25
- * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
26
- */
27
- paperAnchorTop: string;
28
- /** Styles applied to the Paper component if `anchor="bottom"`.
29
- * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
30
- */
31
- paperAnchorBottom: string;
32
- /** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary".
33
- * @deprecated Combine the [.MuiDrawer-anchorLeft](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorLeft), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
- */
35
- paperAnchorDockedLeft: string;
36
- /** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary".
37
- * @deprecated Combine the [.MuiDrawer-anchorTop](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorTop), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
- */
39
- paperAnchorDockedTop: string;
40
- /** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary".
41
- * @deprecated Combine the [.MuiDrawer-anchorRight](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorRight), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
- */
43
- paperAnchorDockedRight: string;
44
- /** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary".
45
- * @deprecated Combine the [.MuiDrawer-anchorBottom](/material-ui/api/drawer/#drawer-classes-MuiDrawer-anchorBottom), [.MuiDrawer-docked](/material-ui/api/drawer/#Drawer-css-MuiDrawer-docked) and [.MuiDrawer-paper](/material-ui/api/drawer/#Drawer-css-MuiDrawer-paper) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
- */
47
- paperAnchorDockedBottom: string;
48
16
  /** Styles applied to the Modal component. */
49
17
  modal: string;
50
18
  }
@@ -11,5 +11,5 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
11
11
  function getDrawerUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiDrawer', slot);
13
13
  }
14
- const drawerClasses = (0, _generateUtilityClasses.default)('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
14
+ const drawerClasses = (0, _generateUtilityClasses.default)('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'modal']);
15
15
  var _default = exports.default = drawerClasses;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getDrawerUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiDrawer', slot);
5
5
  }
6
- const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
6
+ const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'anchorLeft', 'anchorRight', 'anchorTop', 'anchorBottom', 'modal']);
7
7
  export default drawerClasses;
package/Fab/Fab.js CHANGED
@@ -197,6 +197,7 @@ const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
197
197
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(FabRoot, {
198
198
  className: (0, _clsx.default)(classes.root, className),
199
199
  component: component,
200
+ internalNativeButton: true,
200
201
  disabled: disabled,
201
202
  focusRipple: !disableFocusRipple,
202
203
  focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
package/Fab/Fab.mjs CHANGED
@@ -190,6 +190,7 @@ const Fab = /*#__PURE__*/React.forwardRef(function Fab(inProps, ref) {
190
190
  return /*#__PURE__*/_jsx(FabRoot, {
191
191
  className: clsx(classes.root, className),
192
192
  component: component,
193
+ internalNativeButton: true,
193
194
  disabled: disabled,
194
195
  focusRipple: !disableFocusRipple,
195
196
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
@@ -115,7 +115,7 @@ const FilledInputRoot = (0, _zeroStyled.styled)(_InputBase2.InputBaseRoot, {
115
115
  borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
116
116
  left: 0,
117
117
  bottom: 0,
118
- content: '"\\00a0"',
118
+ content: '""',
119
119
  position: 'absolute',
120
120
  right: 0,
121
121
  transition: theme.transitions.create('border-bottom-color', {
@@ -280,8 +280,6 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
280
280
  });
281
281
  const {
282
282
  disableUnderline = false,
283
- components = {},
284
- componentsProps: componentsPropsProp,
285
283
  fullWidth = false,
286
284
  hiddenLabel,
287
285
  // declare here to prevent spreading to DOM
@@ -309,9 +307,9 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
309
307
  ownerState
310
308
  }
311
309
  };
312
- const componentsProps = slotProps ?? componentsPropsProp ? (0, _deepmerge.default)(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;
313
- const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;
314
- const InputSlot = slots.input ?? components.Input ?? FilledInputInput;
310
+ const componentsProps = slotProps ? (0, _deepmerge.default)(filledInputComponentsProps, slotProps) : filledInputComponentsProps;
311
+ const RootSlot = slots.root ?? FilledInputRoot;
312
+ const InputSlot = slots.input ?? FilledInputInput;
315
313
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputBase.default, {
316
314
  slots: {
317
315
  root: RootSlot,
@@ -353,29 +351,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
353
351
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
354
352
  */
355
353
  color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['primary', 'secondary']), _propTypes.default.string]),
356
- /**
357
- * The components used for each slot inside.
358
- *
359
- * @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.
360
- *
361
- * @default {}
362
- */
363
- components: _propTypes.default.shape({
364
- Input: _propTypes.default.elementType,
365
- Root: _propTypes.default.elementType
366
- }),
367
- /**
368
- * The extra props for the slot components.
369
- * You can override the existing props or add new ones.
370
- *
371
- * @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.
372
- *
373
- * @default {}
374
- */
375
- componentsProps: _propTypes.default.shape({
376
- input: _propTypes.default.object,
377
- root: _propTypes.default.object
378
- }),
379
354
  /**
380
355
  * The default value. Use when the component is not controlled.
381
356
  */
@@ -482,8 +457,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
482
457
  * The extra props for the slot components.
483
458
  * You can override the existing props or add new ones.
484
459
  *
485
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
486
- *
487
460
  * @default {}
488
461
  */
489
462
  slotProps: _propTypes.default.shape({
@@ -493,8 +466,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
493
466
  /**
494
467
  * The components used for each slot inside.
495
468
  *
496
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
497
- *
498
469
  * @default {}
499
470
  */
500
471
  slots: _propTypes.default.shape({
@@ -108,7 +108,7 @@ const FilledInputRoot = styled(InputBaseRoot, {
108
108
  borderBottom: `1px solid ${theme.vars ? theme.alpha(theme.vars.palette.common.onBackground, theme.vars.opacity.inputUnderline) : bottomLineColor}`,
109
109
  left: 0,
110
110
  bottom: 0,
111
- content: '"\\00a0"',
111
+ content: '""',
112
112
  position: 'absolute',
113
113
  right: 0,
114
114
  transition: theme.transitions.create('border-bottom-color', {
@@ -273,8 +273,6 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
273
273
  });
274
274
  const {
275
275
  disableUnderline = false,
276
- components = {},
277
- componentsProps: componentsPropsProp,
278
276
  fullWidth = false,
279
277
  hiddenLabel,
280
278
  // declare here to prevent spreading to DOM
@@ -302,9 +300,9 @@ const FilledInput = /*#__PURE__*/React.forwardRef(function FilledInput(inProps,
302
300
  ownerState
303
301
  }
304
302
  };
305
- const componentsProps = slotProps ?? componentsPropsProp ? deepmerge(filledInputComponentsProps, slotProps ?? componentsPropsProp) : filledInputComponentsProps;
306
- const RootSlot = slots.root ?? components.Root ?? FilledInputRoot;
307
- const InputSlot = slots.input ?? components.Input ?? FilledInputInput;
303
+ const componentsProps = slotProps ? deepmerge(filledInputComponentsProps, slotProps) : filledInputComponentsProps;
304
+ const RootSlot = slots.root ?? FilledInputRoot;
305
+ const InputSlot = slots.input ?? FilledInputInput;
308
306
  return /*#__PURE__*/_jsx(InputBase, {
309
307
  slots: {
310
308
  root: RootSlot,
@@ -346,29 +344,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
346
344
  * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component.
347
345
  */
348
346
  color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary']), PropTypes.string]),
349
- /**
350
- * The components used for each slot inside.
351
- *
352
- * @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.
353
- *
354
- * @default {}
355
- */
356
- components: PropTypes.shape({
357
- Input: PropTypes.elementType,
358
- Root: PropTypes.elementType
359
- }),
360
- /**
361
- * The extra props for the slot components.
362
- * You can override the existing props or add new ones.
363
- *
364
- * @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.
365
- *
366
- * @default {}
367
- */
368
- componentsProps: PropTypes.shape({
369
- input: PropTypes.object,
370
- root: PropTypes.object
371
- }),
372
347
  /**
373
348
  * The default value. Use when the component is not controlled.
374
349
  */
@@ -475,8 +450,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
475
450
  * The extra props for the slot components.
476
451
  * You can override the existing props or add new ones.
477
452
  *
478
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
479
- *
480
453
  * @default {}
481
454
  */
482
455
  slotProps: PropTypes.shape({
@@ -486,8 +459,6 @@ process.env.NODE_ENV !== "production" ? FilledInput.propTypes /* remove-proptype
486
459
  /**
487
460
  * The components used for each slot inside.
488
461
  *
489
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
490
- *
491
462
  * @default {}
492
463
  */
493
464
  slots: PropTypes.shape({
package/Grid/Grid.d.mts CHANGED
@@ -2,7 +2,7 @@ import { SxProps } from '@mui/system';
2
2
  import { OverridableComponent, OverrideProps } from '@mui/types';
3
3
  import { Theme, Breakpoint } from "../styles/index.mjs";
4
4
  type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
5
- export type GridDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
+ export type GridDirection = 'row' | 'row-reverse';
6
6
  export type GridSpacing = number | string;
7
7
  export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
8
8
  export type GridSize = 'auto' | 'grow' | number | false;
@@ -29,8 +29,13 @@ export interface GridBaseProps {
29
29
  */
30
30
  container?: boolean | undefined;
31
31
  /**
32
- * Defines the `flex-direction` style property.
33
- * It is applied for all screen sizes.
32
+ * Defines the `flex-direction` style property for the container.
33
+ *
34
+ * ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
35
+ * because the Grid component is designed to subdivide layouts into **columns**, not rows.
36
+ *
37
+ * For vertical layouts, use `Stack` instead.
38
+ *
34
39
  * @default 'row'
35
40
  */
36
41
  direction?: ResponsiveStyleValue<GridDirection> | undefined;
package/Grid/Grid.d.ts CHANGED
@@ -2,7 +2,7 @@ import { SxProps } from '@mui/system';
2
2
  import { OverridableComponent, OverrideProps } from '@mui/types';
3
3
  import { Theme, Breakpoint } from "../styles/index.js";
4
4
  type ResponsiveStyleValue<T> = T | Array<T | null> | { [key in Breakpoint]?: T | null };
5
- export type GridDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
5
+ export type GridDirection = 'row' | 'row-reverse';
6
6
  export type GridSpacing = number | string;
7
7
  export type GridWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
8
8
  export type GridSize = 'auto' | 'grow' | number | false;
@@ -29,8 +29,13 @@ export interface GridBaseProps {
29
29
  */
30
30
  container?: boolean | undefined;
31
31
  /**
32
- * Defines the `flex-direction` style property.
33
- * It is applied for all screen sizes.
32
+ * Defines the `flex-direction` style property for the container.
33
+ *
34
+ * ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
35
+ * because the Grid component is designed to subdivide layouts into **columns**, not rows.
36
+ *
37
+ * For vertical layouts, use `Stack` instead.
38
+ *
34
39
  * @default 'row'
35
40
  */
36
41
  direction?: ResponsiveStyleValue<GridDirection> | undefined;
package/Grid/Grid.js CHANGED
@@ -66,11 +66,16 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ =
66
66
  */
67
67
  container: _propTypes.default.bool,
68
68
  /**
69
- * Defines the `flex-direction` style property.
70
- * It is applied for all screen sizes.
69
+ * Defines the `flex-direction` style property for the container.
70
+ *
71
+ * ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
72
+ * because the Grid component is designed to subdivide layouts into **columns**, not rows.
73
+ *
74
+ * For vertical layouts, use `Stack` instead.
75
+ *
71
76
  * @default 'row'
72
77
  */
73
- direction: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), _propTypes.default.object]),
78
+ direction: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['row-reverse', 'row']), _propTypes.default.arrayOf(_propTypes.default.oneOf(['row-reverse', 'row'])), _propTypes.default.object]),
74
79
  /**
75
80
  * Defines the offset value for the type `item` components.
76
81
  */
package/Grid/Grid.mjs CHANGED
@@ -60,11 +60,16 @@ process.env.NODE_ENV !== "production" ? Grid.propTypes /* remove-proptypes */ =
60
60
  */
61
61
  container: PropTypes.bool,
62
62
  /**
63
- * Defines the `flex-direction` style property.
64
- * It is applied for all screen sizes.
63
+ * Defines the `flex-direction` style property for the container.
64
+ *
65
+ * ⚠️ Only `row` and `row-reverse` are supported. `column` and `column-reverse` are not supported,
66
+ * because the Grid component is designed to subdivide layouts into **columns**, not rows.
67
+ *
68
+ * For vertical layouts, use `Stack` instead.
69
+ *
65
70
  * @default 'row'
66
71
  */
67
- direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),
72
+ direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['row-reverse', 'row'])), PropTypes.object]),
68
73
  /**
69
74
  * Defines the offset value for the type `item` components.
70
75
  */
@@ -12,7 +12,7 @@ function getGridUtilityClass(slot) {
12
12
  return (0, _generateUtilityClass.default)('MuiGrid', slot);
13
13
  }
14
14
  const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
15
- const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
15
+ const DIRECTIONS = ['row-reverse', 'row'];
16
16
  const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
17
17
  const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
18
18
  const gridClasses = (0, _generateUtilityClasses.default)('MuiGrid', ['root', 'container',
@@ -4,7 +4,7 @@ export function getGridUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiGrid', slot);
5
5
  }
6
6
  const SPACINGS = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
7
- const DIRECTIONS = ['column-reverse', 'column', 'row-reverse', 'row'];
7
+ const DIRECTIONS = ['row-reverse', 'row'];
8
8
  const WRAPS = ['nowrap', 'wrap-reverse', 'wrap'];
9
9
  const GRID_SIZES = ['auto', true, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
10
10
  const gridClasses = generateUtilityClasses('MuiGrid', ['root', 'container',
@@ -219,6 +219,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
219
219
  id: loading ? loadingId : idProp,
220
220
  className: (0, _clsx.default)(classes.root, className),
221
221
  centerRipple: true,
222
+ internalNativeButton: true,
222
223
  focusRipple: !disableFocusRipple,
223
224
  disabled: disabled || loading,
224
225
  ref: ref,
@@ -212,6 +212,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
212
212
  id: loading ? loadingId : idProp,
213
213
  className: clsx(classes.root, className),
214
214
  centerRipple: true,
215
+ internalNativeButton: true,
215
216
  focusRipple: !disableFocusRipple,
216
217
  disabled: disabled || loading,
217
218
  ref: ref,
@@ -21,15 +21,14 @@ const useUtilityClasses = ownerState => {
21
21
  const {
22
22
  classes,
23
23
  position,
24
- actionIcon,
25
24
  actionPosition
26
25
  } = ownerState;
27
26
  const slots = {
28
27
  root: ['root', `position${(0, _capitalize.default)(position)}`, `actionPosition${(0, _capitalize.default)(actionPosition)}`],
29
- titleWrap: ['titleWrap', `titleWrap${(0, _capitalize.default)(position)}`, actionIcon && `titleWrapActionPos${(0, _capitalize.default)(actionPosition)}`],
28
+ titleWrap: ['titleWrap'],
30
29
  title: ['title'],
31
30
  subtitle: ['subtitle'],
32
- actionIcon: ['actionIcon', `actionIconActionPos${(0, _capitalize.default)(actionPosition)}`]
31
+ actionIcon: ['actionIcon']
33
32
  };
34
33
  return (0, _composeClasses.default)(slots, _imageListItemBarClasses.getImageListItemBarUtilityClass, classes);
35
34
  };
@@ -81,13 +80,7 @@ const ImageListItemBarRoot = (0, _zeroStyled.styled)('div', {
81
80
  }));
82
81
  const ImageListItemBarTitleWrap = (0, _zeroStyled.styled)('div', {
83
82
  name: 'MuiImageListItemBar',
84
- slot: 'TitleWrap',
85
- overridesResolver: (props, styles) => {
86
- const {
87
- ownerState
88
- } = props;
89
- return [styles.titleWrap, styles[`titleWrap${(0, _capitalize.default)(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${(0, _capitalize.default)(ownerState.actionPosition)}`]];
90
- }
83
+ slot: 'TitleWrap'
91
84
  })((0, _memoTheme.default)(({
92
85
  theme
93
86
  }) => {
@@ -151,13 +144,7 @@ const ImageListItemBarSubtitle = (0, _zeroStyled.styled)('div', {
151
144
  }));
152
145
  const ImageListItemBarActionIcon = (0, _zeroStyled.styled)('div', {
153
146
  name: 'MuiImageListItemBar',
154
- slot: 'ActionIcon',
155
- overridesResolver: (props, styles) => {
156
- const {
157
- ownerState
158
- } = props;
159
- return [styles.actionIcon, styles[`actionIconActionPos${(0, _capitalize.default)(ownerState.actionPosition)}`]];
160
- }
147
+ slot: 'ActionIcon'
161
148
  })({
162
149
  variants: [{
163
150
  props: {
@@ -14,15 +14,14 @@ const useUtilityClasses = ownerState => {
14
14
  const {
15
15
  classes,
16
16
  position,
17
- actionIcon,
18
17
  actionPosition
19
18
  } = ownerState;
20
19
  const slots = {
21
20
  root: ['root', `position${capitalize(position)}`, `actionPosition${capitalize(actionPosition)}`],
22
- titleWrap: ['titleWrap', `titleWrap${capitalize(position)}`, actionIcon && `titleWrapActionPos${capitalize(actionPosition)}`],
21
+ titleWrap: ['titleWrap'],
23
22
  title: ['title'],
24
23
  subtitle: ['subtitle'],
25
- actionIcon: ['actionIcon', `actionIconActionPos${capitalize(actionPosition)}`]
24
+ actionIcon: ['actionIcon']
26
25
  };
27
26
  return composeClasses(slots, getImageListItemBarUtilityClass, classes);
28
27
  };
@@ -74,13 +73,7 @@ const ImageListItemBarRoot = styled('div', {
74
73
  }));
75
74
  const ImageListItemBarTitleWrap = styled('div', {
76
75
  name: 'MuiImageListItemBar',
77
- slot: 'TitleWrap',
78
- overridesResolver: (props, styles) => {
79
- const {
80
- ownerState
81
- } = props;
82
- return [styles.titleWrap, styles[`titleWrap${capitalize(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${capitalize(ownerState.actionPosition)}`]];
83
- }
76
+ slot: 'TitleWrap'
84
77
  })(memoTheme(({
85
78
  theme
86
79
  }) => {
@@ -144,13 +137,7 @@ const ImageListItemBarSubtitle = styled('div', {
144
137
  }));
145
138
  const ImageListItemBarActionIcon = styled('div', {
146
139
  name: 'MuiImageListItemBar',
147
- slot: 'ActionIcon',
148
- overridesResolver: (props, styles) => {
149
- const {
150
- ownerState
151
- } = props;
152
- return [styles.actionIcon, styles[`actionIconActionPos${capitalize(ownerState.actionPosition)}`]];
153
- }
140
+ slot: 'ActionIcon'
154
141
  })({
155
142
  variants: [{
156
143
  props: {
@@ -13,28 +13,12 @@ export interface ImageListItemBarClasses {
13
13
  actionPositionRight: string;
14
14
  /** Styles applied to the title and subtitle container element. */
15
15
  titleWrap: string;
16
- /** Styles applied to the title and subtitle container element if `position="below"`.
17
- * @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-positionBelow](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-positionBelow) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
18
- */
19
- titleWrapBelow: string;
20
- /** Styles applied to the container element if `actionPosition="left"`.
21
- * @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
22
- */
23
- titleWrapActionPosLeft: string;
24
- /** Styles applied to the container element if `actionPosition="right"`.
25
- * @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-titleWrap) and [.MuiImageListItemBar-actionPositionRight](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionRight) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
26
- */
27
- titleWrapActionPosRight: string;
28
16
  /** Styles applied to the title container element. */
29
17
  title: string;
30
18
  /** Styles applied to the subtitle container element. */
31
19
  subtitle: string;
32
20
  /** Styles applied to the actionIcon if supplied. */
33
21
  actionIcon: string;
34
- /** Styles applied to the actionIcon if `actionPosition="left"`.
35
- * @deprecated Combine the [.MuiImageListItemBar-actionIcon](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionIcon) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-MuiImageListItemBar-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
36
- */
37
- actionIconActionPosLeft: string;
38
22
  }
39
23
  export type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
40
24
  export declare function getImageListItemBarUtilityClass(slot: string): string;