@mui/material 5.15.10 → 5.15.12

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 (697) hide show
  1. package/Accordion/Accordion.d.ts +1 -1
  2. package/Accordion/Accordion.js +3 -4
  3. package/AccordionActions/AccordionActions.js +1 -1
  4. package/AccordionDetails/AccordionDetails.js +1 -1
  5. package/AccordionSummary/AccordionSummary.js +1 -1
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +1 -1
  7. package/Alert/Alert.d.ts +27 -28
  8. package/Alert/Alert.js +78 -56
  9. package/Alert/alertClasses.d.ts +68 -12
  10. package/Alert/alertClasses.js +1 -1
  11. package/AlertTitle/AlertTitle.js +3 -3
  12. package/AppBar/AppBar.js +1 -1
  13. package/Autocomplete/Autocomplete.js +7 -4
  14. package/Avatar/Avatar.js +3 -3
  15. package/AvatarGroup/AvatarGroup.js +2 -2
  16. package/Backdrop/Backdrop.js +1 -1
  17. package/Badge/Badge.js +3 -3
  18. package/BottomNavigation/BottomNavigation.js +1 -1
  19. package/BottomNavigationAction/BottomNavigationAction.js +1 -1
  20. package/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  21. package/Breadcrumbs/Breadcrumbs.js +3 -2
  22. package/Button/Button.js +6 -6
  23. package/Button/buttonClasses.d.ts +113 -33
  24. package/Button/buttonClasses.js +1 -1
  25. package/ButtonBase/ButtonBase.js +3 -2
  26. package/ButtonBase/Ripple.js +0 -1
  27. package/ButtonBase/TouchRipple.js +1 -2
  28. package/ButtonGroup/ButtonGroup.js +3 -3
  29. package/CHANGELOG.md +331 -140
  30. package/Card/Card.js +2 -2
  31. package/CardActionArea/CardActionArea.js +1 -1
  32. package/CardActions/CardActions.js +1 -1
  33. package/CardContent/CardContent.js +1 -1
  34. package/CardHeader/CardHeader.js +1 -1
  35. package/CardMedia/CardMedia.js +2 -2
  36. package/Checkbox/Checkbox.d.ts +1 -1
  37. package/Checkbox/Checkbox.js +3 -3
  38. package/Chip/Chip.js +2 -2
  39. package/Chip/chipClasses.d.ts +78 -26
  40. package/CircularProgress/CircularProgress.js +2 -2
  41. package/Collapse/Collapse.d.ts +1 -1
  42. package/Collapse/Collapse.js +7 -4
  43. package/Dialog/Dialog.d.ts +1 -1
  44. package/Dialog/Dialog.js +3 -3
  45. package/DialogActions/DialogActions.js +1 -1
  46. package/DialogContent/DialogContent.js +1 -1
  47. package/DialogContentText/DialogContentText.js +1 -1
  48. package/DialogTitle/DialogTitle.js +1 -1
  49. package/Divider/Divider.js +2 -2
  50. package/Drawer/Drawer.js +2 -2
  51. package/Fab/Fab.js +1 -1
  52. package/Fade/Fade.d.ts +1 -1
  53. package/Fade/Fade.js +1 -1
  54. package/FilledInput/FilledInput.js +3 -2
  55. package/FormControl/FormControl.js +1 -1
  56. package/FormControlLabel/FormControlLabel.js +2 -2
  57. package/FormGroup/FormGroup.js +1 -1
  58. package/FormHelperText/FormHelperText.js +1 -1
  59. package/FormLabel/FormLabel.js +1 -1
  60. package/Grid/Grid.js +3 -2
  61. package/Grow/Grow.d.ts +1 -1
  62. package/Grow/Grow.js +2 -1
  63. package/Hidden/HiddenCss.js +1 -1
  64. package/Hidden/HiddenJs.js +1 -1
  65. package/Hidden/withWidth.js +2 -2
  66. package/Icon/Icon.js +1 -1
  67. package/IconButton/IconButton.js +5 -5
  68. package/ImageList/ImageList.js +2 -2
  69. package/ImageListItem/ImageListItem.js +2 -2
  70. package/ImageListItemBar/ImageListItemBar.js +1 -1
  71. package/Input/Input.js +3 -2
  72. package/InputAdornment/InputAdornment.js +1 -1
  73. package/InputBase/InputBase.js +5 -2
  74. package/InputLabel/InputLabel.js +1 -1
  75. package/LinearProgress/LinearProgress.js +3 -2
  76. package/Link/Link.js +2 -2
  77. package/Link/getTextDecoration.js +2 -1
  78. package/List/List.js +1 -1
  79. package/ListItem/ListItem.js +5 -3
  80. package/ListItemAvatar/ListItemAvatar.js +1 -1
  81. package/ListItemButton/ListItemButton.js +2 -2
  82. package/ListItemIcon/ListItemIcon.js +1 -1
  83. package/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  84. package/ListItemText/ListItemText.js +1 -1
  85. package/ListSubheader/ListSubheader.js +1 -1
  86. package/Menu/Menu.d.ts +1 -1
  87. package/Menu/Menu.js +3 -3
  88. package/MenuItem/MenuItem.js +2 -2
  89. package/MobileStepper/MobileStepper.js +2 -2
  90. package/Modal/Modal.js +4 -3
  91. package/NativeSelect/NativeSelect.js +1 -1
  92. package/NativeSelect/NativeSelectInput.js +2 -3
  93. package/OutlinedInput/NotchedOutline.js +0 -1
  94. package/OutlinedInput/OutlinedInput.js +2 -2
  95. package/Pagination/Pagination.js +2 -2
  96. package/PaginationItem/PaginationItem.js +2 -2
  97. package/PaginationItem/paginationItemClasses.d.ts +4 -8
  98. package/Paper/Paper.js +4 -3
  99. package/Popover/Popover.d.ts +1 -1
  100. package/Popover/Popover.js +8 -3
  101. package/Popper/Popper.js +3 -2
  102. package/README.md +1 -1
  103. package/Radio/Radio.js +3 -3
  104. package/Radio/RadioButtonIcon.js +0 -1
  105. package/Rating/Rating.js +4 -2
  106. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  107. package/Select/Select.d.ts +50 -7
  108. package/Select/Select.js +1 -1
  109. package/Select/SelectInput.js +3 -3
  110. package/Skeleton/Skeleton.js +1 -1
  111. package/Slide/Slide.d.ts +1 -1
  112. package/Slide/Slide.js +3 -1
  113. package/Slider/Slider.d.ts +2 -4
  114. package/Slider/Slider.js +6 -7
  115. package/Snackbar/Snackbar.d.ts +1 -1
  116. package/Snackbar/Snackbar.js +3 -2
  117. package/SnackbarContent/SnackbarContent.js +2 -2
  118. package/SpeedDial/SpeedDial.d.ts +1 -1
  119. package/SpeedDial/SpeedDial.js +4 -3
  120. package/SpeedDialAction/SpeedDialAction.js +2 -2
  121. package/SpeedDialIcon/SpeedDialIcon.js +1 -1
  122. package/Step/Step.js +2 -2
  123. package/StepButton/StepButton.js +1 -1
  124. package/StepConnector/StepConnector.js +1 -1
  125. package/StepContent/StepContent.d.ts +1 -1
  126. package/StepContent/StepContent.js +2 -2
  127. package/StepIcon/StepIcon.js +1 -1
  128. package/StepLabel/StepLabel.d.ts +1 -1
  129. package/StepLabel/StepLabel.js +1 -1
  130. package/Stepper/Stepper.js +2 -2
  131. package/SvgIcon/SvgIcon.js +1 -1
  132. package/SwipeableDrawer/SwipeableDrawer.js +2 -2
  133. package/Switch/Switch.js +3 -3
  134. package/Tab/Tab.js +1 -1
  135. package/TabScrollButton/TabScrollButton.js +2 -1
  136. package/Table/Table.js +1 -1
  137. package/TableBody/TableBody.js +1 -1
  138. package/TableCell/TableCell.js +2 -2
  139. package/TableContainer/TableContainer.js +1 -1
  140. package/TableFooter/TableFooter.js +1 -1
  141. package/TableHead/TableHead.js +1 -1
  142. package/TablePagination/TablePagination.js +4 -2
  143. package/TableRow/TableRow.js +2 -2
  144. package/TableSortLabel/TableSortLabel.js +1 -1
  145. package/Tabs/Tabs.js +3 -2
  146. package/TextField/TextField.js +3 -2
  147. package/ToggleButton/ToggleButton.js +2 -2
  148. package/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  149. package/Toolbar/Toolbar.js +1 -1
  150. package/Tooltip/Tooltip.d.ts +1 -1
  151. package/Tooltip/Tooltip.js +11 -11
  152. package/Typography/Typography.js +2 -2
  153. package/Zoom/Zoom.d.ts +1 -1
  154. package/Zoom/Zoom.js +1 -1
  155. package/index.js +1 -1
  156. package/internal/SwitchBase.js +2 -3
  157. package/legacy/Accordion/Accordion.js +3 -4
  158. package/legacy/AccordionActions/AccordionActions.js +1 -1
  159. package/legacy/AccordionDetails/AccordionDetails.js +1 -1
  160. package/legacy/AccordionSummary/AccordionSummary.js +1 -1
  161. package/legacy/Alert/Alert.js +108 -54
  162. package/legacy/Alert/alertClasses.js +1 -1
  163. package/legacy/AlertTitle/AlertTitle.js +3 -3
  164. package/legacy/AppBar/AppBar.js +1 -1
  165. package/legacy/Autocomplete/Autocomplete.js +7 -4
  166. package/legacy/Avatar/Avatar.js +3 -3
  167. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  168. package/legacy/Backdrop/Backdrop.js +1 -1
  169. package/legacy/Badge/Badge.js +3 -3
  170. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  171. package/legacy/BottomNavigationAction/BottomNavigationAction.js +1 -1
  172. package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  173. package/legacy/Breadcrumbs/Breadcrumbs.js +3 -2
  174. package/legacy/Button/Button.js +6 -6
  175. package/legacy/Button/buttonClasses.js +1 -1
  176. package/legacy/ButtonBase/ButtonBase.js +3 -2
  177. package/legacy/ButtonBase/Ripple.js +0 -1
  178. package/legacy/ButtonBase/TouchRipple.js +1 -2
  179. package/legacy/ButtonGroup/ButtonGroup.js +3 -3
  180. package/legacy/Card/Card.js +2 -2
  181. package/legacy/CardActionArea/CardActionArea.js +1 -1
  182. package/legacy/CardActions/CardActions.js +1 -1
  183. package/legacy/CardContent/CardContent.js +1 -1
  184. package/legacy/CardHeader/CardHeader.js +1 -1
  185. package/legacy/CardMedia/CardMedia.js +2 -2
  186. package/legacy/Checkbox/Checkbox.js +3 -3
  187. package/legacy/Chip/Chip.js +2 -2
  188. package/legacy/CircularProgress/CircularProgress.js +2 -2
  189. package/legacy/Collapse/Collapse.js +7 -4
  190. package/legacy/Dialog/Dialog.js +3 -3
  191. package/legacy/DialogActions/DialogActions.js +1 -1
  192. package/legacy/DialogContent/DialogContent.js +1 -1
  193. package/legacy/DialogContentText/DialogContentText.js +1 -1
  194. package/legacy/DialogTitle/DialogTitle.js +1 -1
  195. package/legacy/Divider/Divider.js +2 -2
  196. package/legacy/Drawer/Drawer.js +2 -2
  197. package/legacy/Fab/Fab.js +1 -1
  198. package/legacy/Fade/Fade.js +1 -1
  199. package/legacy/FilledInput/FilledInput.js +3 -2
  200. package/legacy/FormControl/FormControl.js +1 -1
  201. package/legacy/FormControlLabel/FormControlLabel.js +2 -2
  202. package/legacy/FormGroup/FormGroup.js +1 -1
  203. package/legacy/FormHelperText/FormHelperText.js +1 -1
  204. package/legacy/FormLabel/FormLabel.js +1 -1
  205. package/legacy/Grid/Grid.js +3 -2
  206. package/legacy/Grow/Grow.js +2 -1
  207. package/legacy/Hidden/HiddenCss.js +1 -1
  208. package/legacy/Hidden/HiddenJs.js +1 -1
  209. package/legacy/Hidden/withWidth.js +2 -2
  210. package/legacy/Icon/Icon.js +1 -1
  211. package/legacy/IconButton/IconButton.js +5 -5
  212. package/legacy/ImageList/ImageList.js +2 -2
  213. package/legacy/ImageListItem/ImageListItem.js +2 -2
  214. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  215. package/legacy/Input/Input.js +3 -2
  216. package/legacy/InputAdornment/InputAdornment.js +1 -1
  217. package/legacy/InputBase/InputBase.js +5 -2
  218. package/legacy/InputLabel/InputLabel.js +1 -1
  219. package/legacy/LinearProgress/LinearProgress.js +3 -2
  220. package/legacy/Link/Link.js +2 -2
  221. package/legacy/Link/getTextDecoration.js +2 -1
  222. package/legacy/List/List.js +1 -1
  223. package/legacy/ListItem/ListItem.js +5 -3
  224. package/legacy/ListItemAvatar/ListItemAvatar.js +1 -1
  225. package/legacy/ListItemButton/ListItemButton.js +2 -2
  226. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  227. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  228. package/legacy/ListItemText/ListItemText.js +1 -1
  229. package/legacy/ListSubheader/ListSubheader.js +1 -1
  230. package/legacy/Menu/Menu.js +3 -3
  231. package/legacy/MenuItem/MenuItem.js +2 -2
  232. package/legacy/MobileStepper/MobileStepper.js +2 -2
  233. package/legacy/Modal/Modal.js +4 -3
  234. package/legacy/NativeSelect/NativeSelect.js +1 -1
  235. package/legacy/NativeSelect/NativeSelectInput.js +2 -3
  236. package/legacy/OutlinedInput/NotchedOutline.js +0 -1
  237. package/legacy/OutlinedInput/OutlinedInput.js +2 -2
  238. package/legacy/Pagination/Pagination.js +2 -2
  239. package/legacy/PaginationItem/PaginationItem.js +2 -2
  240. package/legacy/Paper/Paper.js +4 -3
  241. package/legacy/Popover/Popover.js +8 -3
  242. package/legacy/Popper/Popper.js +3 -2
  243. package/legacy/Radio/Radio.js +3 -3
  244. package/legacy/Radio/RadioButtonIcon.js +0 -1
  245. package/legacy/Rating/Rating.js +4 -2
  246. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  247. package/legacy/Select/Select.js +1 -1
  248. package/legacy/Select/SelectInput.js +3 -3
  249. package/legacy/Skeleton/Skeleton.js +1 -1
  250. package/legacy/Slide/Slide.js +3 -1
  251. package/legacy/Slider/Slider.js +6 -7
  252. package/legacy/Snackbar/Snackbar.js +3 -2
  253. package/legacy/SnackbarContent/SnackbarContent.js +2 -2
  254. package/legacy/SpeedDial/SpeedDial.js +4 -3
  255. package/legacy/SpeedDialAction/SpeedDialAction.js +2 -2
  256. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -1
  257. package/legacy/Step/Step.js +2 -2
  258. package/legacy/StepButton/StepButton.js +1 -1
  259. package/legacy/StepConnector/StepConnector.js +1 -1
  260. package/legacy/StepContent/StepContent.js +2 -2
  261. package/legacy/StepIcon/StepIcon.js +1 -1
  262. package/legacy/StepLabel/StepLabel.js +1 -1
  263. package/legacy/Stepper/Stepper.js +2 -2
  264. package/legacy/SvgIcon/SvgIcon.js +1 -1
  265. package/legacy/SwipeableDrawer/SwipeableDrawer.js +2 -2
  266. package/legacy/Switch/Switch.js +3 -3
  267. package/legacy/Tab/Tab.js +1 -1
  268. package/legacy/TabScrollButton/TabScrollButton.js +2 -1
  269. package/legacy/Table/Table.js +1 -1
  270. package/legacy/TableBody/TableBody.js +1 -1
  271. package/legacy/TableCell/TableCell.js +2 -2
  272. package/legacy/TableContainer/TableContainer.js +1 -1
  273. package/legacy/TableFooter/TableFooter.js +1 -1
  274. package/legacy/TableHead/TableHead.js +1 -1
  275. package/legacy/TablePagination/TablePagination.js +4 -2
  276. package/legacy/TableRow/TableRow.js +2 -2
  277. package/legacy/TableSortLabel/TableSortLabel.js +1 -1
  278. package/legacy/Tabs/Tabs.js +3 -2
  279. package/legacy/TextField/TextField.js +3 -2
  280. package/legacy/ToggleButton/ToggleButton.js +2 -2
  281. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  282. package/legacy/Toolbar/Toolbar.js +1 -1
  283. package/legacy/Tooltip/Tooltip.js +11 -11
  284. package/legacy/Typography/Typography.js +2 -2
  285. package/legacy/Zoom/Zoom.js +1 -1
  286. package/legacy/index.js +1 -1
  287. package/legacy/internal/SwitchBase.js +2 -3
  288. package/legacy/styles/CssVarsProvider.js +2 -1
  289. package/legacy/styles/createMuiStrictModeTheme.js +1 -1
  290. package/legacy/styles/createPalette.js +2 -2
  291. package/legacy/styles/createTheme.js +3 -2
  292. package/legacy/styles/createTypography.js +1 -1
  293. package/legacy/styles/experimental_extendTheme.js +4 -2
  294. package/legacy/styles/styled.js +1 -1
  295. package/legacy/styles/useThemeProps.js +1 -1
  296. package/legacy/useMediaQuery/index.js +1 -3
  297. package/legacy/useMediaQuery/useMediaQueryTheme.js +1 -1
  298. package/legacy/usePagination/usePagination.js +1 -1
  299. package/legacy/utils/capitalize.js +1 -1
  300. package/legacy/utils/createChainedFunction.js +1 -1
  301. package/legacy/utils/debounce.js +1 -1
  302. package/legacy/utils/deprecatedPropType.js +1 -1
  303. package/legacy/utils/getScrollbarSize.js +1 -1
  304. package/legacy/utils/isMuiElement.js +1 -1
  305. package/legacy/utils/ownerDocument.js +1 -1
  306. package/legacy/utils/ownerWindow.js +1 -1
  307. package/legacy/utils/requirePropFactory.js +1 -1
  308. package/legacy/utils/setRef.js +1 -1
  309. package/legacy/utils/shouldSpreadAdditionalProps.js +1 -1
  310. package/legacy/utils/unsupportedProp.js +1 -1
  311. package/legacy/utils/useControlled.js +1 -1
  312. package/legacy/utils/useEnhancedEffect.js +1 -1
  313. package/legacy/utils/useEventCallback.js +1 -1
  314. package/legacy/utils/useForkRef.js +1 -1
  315. package/legacy/utils/useId.js +1 -1
  316. package/legacy/utils/useIsFocusVisible.js +1 -1
  317. package/legacy/utils/useSlot.js +1 -1
  318. package/modern/Accordion/Accordion.js +3 -4
  319. package/modern/AccordionActions/AccordionActions.js +1 -1
  320. package/modern/AccordionDetails/AccordionDetails.js +1 -1
  321. package/modern/AccordionSummary/AccordionSummary.js +1 -1
  322. package/modern/Alert/Alert.js +78 -55
  323. package/modern/Alert/alertClasses.js +1 -1
  324. package/modern/AlertTitle/AlertTitle.js +3 -3
  325. package/modern/AppBar/AppBar.js +1 -1
  326. package/modern/Autocomplete/Autocomplete.js +7 -4
  327. package/modern/Avatar/Avatar.js +3 -3
  328. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  329. package/modern/Backdrop/Backdrop.js +1 -1
  330. package/modern/Badge/Badge.js +3 -3
  331. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  332. package/modern/BottomNavigationAction/BottomNavigationAction.js +1 -1
  333. package/modern/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  334. package/modern/Breadcrumbs/Breadcrumbs.js +3 -2
  335. package/modern/Button/Button.js +6 -6
  336. package/modern/Button/buttonClasses.js +1 -1
  337. package/modern/ButtonBase/ButtonBase.js +3 -2
  338. package/modern/ButtonBase/Ripple.js +0 -1
  339. package/modern/ButtonBase/TouchRipple.js +1 -2
  340. package/modern/ButtonGroup/ButtonGroup.js +3 -3
  341. package/modern/Card/Card.js +2 -2
  342. package/modern/CardActionArea/CardActionArea.js +1 -1
  343. package/modern/CardActions/CardActions.js +1 -1
  344. package/modern/CardContent/CardContent.js +1 -1
  345. package/modern/CardHeader/CardHeader.js +1 -1
  346. package/modern/CardMedia/CardMedia.js +2 -2
  347. package/modern/Checkbox/Checkbox.js +3 -3
  348. package/modern/Chip/Chip.js +2 -2
  349. package/modern/CircularProgress/CircularProgress.js +2 -2
  350. package/modern/Collapse/Collapse.js +7 -4
  351. package/modern/Dialog/Dialog.js +3 -3
  352. package/modern/DialogActions/DialogActions.js +1 -1
  353. package/modern/DialogContent/DialogContent.js +1 -1
  354. package/modern/DialogContentText/DialogContentText.js +1 -1
  355. package/modern/DialogTitle/DialogTitle.js +1 -1
  356. package/modern/Divider/Divider.js +2 -2
  357. package/modern/Drawer/Drawer.js +2 -2
  358. package/modern/Fab/Fab.js +1 -1
  359. package/modern/Fade/Fade.js +1 -1
  360. package/modern/FilledInput/FilledInput.js +3 -2
  361. package/modern/FormControl/FormControl.js +1 -1
  362. package/modern/FormControlLabel/FormControlLabel.js +2 -2
  363. package/modern/FormGroup/FormGroup.js +1 -1
  364. package/modern/FormHelperText/FormHelperText.js +1 -1
  365. package/modern/FormLabel/FormLabel.js +1 -1
  366. package/modern/Grid/Grid.js +3 -2
  367. package/modern/Grow/Grow.js +2 -1
  368. package/modern/Hidden/HiddenCss.js +1 -1
  369. package/modern/Hidden/HiddenJs.js +1 -1
  370. package/modern/Hidden/withWidth.js +2 -2
  371. package/modern/Icon/Icon.js +1 -1
  372. package/modern/IconButton/IconButton.js +5 -5
  373. package/modern/ImageList/ImageList.js +2 -2
  374. package/modern/ImageListItem/ImageListItem.js +2 -2
  375. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  376. package/modern/Input/Input.js +3 -2
  377. package/modern/InputAdornment/InputAdornment.js +1 -1
  378. package/modern/InputBase/InputBase.js +5 -2
  379. package/modern/InputLabel/InputLabel.js +1 -1
  380. package/modern/LinearProgress/LinearProgress.js +3 -2
  381. package/modern/Link/Link.js +2 -2
  382. package/modern/Link/getTextDecoration.js +2 -1
  383. package/modern/List/List.js +1 -1
  384. package/modern/ListItem/ListItem.js +5 -3
  385. package/modern/ListItemAvatar/ListItemAvatar.js +1 -1
  386. package/modern/ListItemButton/ListItemButton.js +2 -2
  387. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  388. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  389. package/modern/ListItemText/ListItemText.js +1 -1
  390. package/modern/ListSubheader/ListSubheader.js +1 -1
  391. package/modern/Menu/Menu.js +3 -3
  392. package/modern/MenuItem/MenuItem.js +2 -2
  393. package/modern/MobileStepper/MobileStepper.js +2 -2
  394. package/modern/Modal/Modal.js +4 -3
  395. package/modern/NativeSelect/NativeSelect.js +1 -1
  396. package/modern/NativeSelect/NativeSelectInput.js +2 -3
  397. package/modern/OutlinedInput/NotchedOutline.js +0 -1
  398. package/modern/OutlinedInput/OutlinedInput.js +2 -2
  399. package/modern/Pagination/Pagination.js +2 -2
  400. package/modern/PaginationItem/PaginationItem.js +2 -2
  401. package/modern/Paper/Paper.js +4 -3
  402. package/modern/Popover/Popover.js +8 -3
  403. package/modern/Popper/Popper.js +3 -2
  404. package/modern/Radio/Radio.js +3 -3
  405. package/modern/Radio/RadioButtonIcon.js +0 -1
  406. package/modern/Rating/Rating.js +4 -2
  407. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  408. package/modern/Select/Select.js +1 -1
  409. package/modern/Select/SelectInput.js +3 -3
  410. package/modern/Skeleton/Skeleton.js +1 -1
  411. package/modern/Slide/Slide.js +3 -1
  412. package/modern/Slider/Slider.js +6 -7
  413. package/modern/Snackbar/Snackbar.js +3 -2
  414. package/modern/SnackbarContent/SnackbarContent.js +2 -2
  415. package/modern/SpeedDial/SpeedDial.js +4 -3
  416. package/modern/SpeedDialAction/SpeedDialAction.js +2 -2
  417. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -1
  418. package/modern/Step/Step.js +2 -2
  419. package/modern/StepButton/StepButton.js +1 -1
  420. package/modern/StepConnector/StepConnector.js +1 -1
  421. package/modern/StepContent/StepContent.js +2 -2
  422. package/modern/StepIcon/StepIcon.js +1 -1
  423. package/modern/StepLabel/StepLabel.js +1 -1
  424. package/modern/Stepper/Stepper.js +2 -2
  425. package/modern/SvgIcon/SvgIcon.js +1 -1
  426. package/modern/SwipeableDrawer/SwipeableDrawer.js +2 -2
  427. package/modern/Switch/Switch.js +3 -3
  428. package/modern/Tab/Tab.js +1 -1
  429. package/modern/TabScrollButton/TabScrollButton.js +2 -1
  430. package/modern/Table/Table.js +1 -1
  431. package/modern/TableBody/TableBody.js +1 -1
  432. package/modern/TableCell/TableCell.js +2 -2
  433. package/modern/TableContainer/TableContainer.js +1 -1
  434. package/modern/TableFooter/TableFooter.js +1 -1
  435. package/modern/TableHead/TableHead.js +1 -1
  436. package/modern/TablePagination/TablePagination.js +4 -2
  437. package/modern/TableRow/TableRow.js +2 -2
  438. package/modern/TableSortLabel/TableSortLabel.js +1 -1
  439. package/modern/Tabs/Tabs.js +3 -2
  440. package/modern/TextField/TextField.js +3 -2
  441. package/modern/ToggleButton/ToggleButton.js +2 -2
  442. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +2 -2
  443. package/modern/Toolbar/Toolbar.js +1 -1
  444. package/modern/Tooltip/Tooltip.js +11 -11
  445. package/modern/Typography/Typography.js +2 -2
  446. package/modern/Zoom/Zoom.js +1 -1
  447. package/modern/index.js +1 -1
  448. package/modern/internal/SwitchBase.js +2 -3
  449. package/modern/styles/CssVarsProvider.js +2 -1
  450. package/modern/styles/createMuiStrictModeTheme.js +1 -1
  451. package/modern/styles/createPalette.js +2 -2
  452. package/modern/styles/createTheme.js +3 -2
  453. package/modern/styles/createTypography.js +1 -1
  454. package/modern/styles/experimental_extendTheme.js +4 -2
  455. package/modern/styles/styled.js +1 -1
  456. package/modern/styles/useThemeProps.js +1 -1
  457. package/modern/useMediaQuery/index.js +1 -3
  458. package/modern/useMediaQuery/useMediaQueryTheme.js +1 -1
  459. package/modern/usePagination/usePagination.js +1 -1
  460. package/modern/utils/capitalize.js +1 -1
  461. package/modern/utils/createChainedFunction.js +1 -1
  462. package/modern/utils/debounce.js +1 -1
  463. package/modern/utils/deprecatedPropType.js +1 -1
  464. package/modern/utils/getScrollbarSize.js +1 -1
  465. package/modern/utils/isMuiElement.js +1 -1
  466. package/modern/utils/ownerDocument.js +1 -1
  467. package/modern/utils/ownerWindow.js +1 -1
  468. package/modern/utils/requirePropFactory.js +1 -1
  469. package/modern/utils/setRef.js +1 -1
  470. package/modern/utils/shouldSpreadAdditionalProps.js +1 -1
  471. package/modern/utils/unsupportedProp.js +1 -1
  472. package/modern/utils/useControlled.js +1 -1
  473. package/modern/utils/useEnhancedEffect.js +1 -1
  474. package/modern/utils/useEventCallback.js +1 -1
  475. package/modern/utils/useForkRef.js +1 -1
  476. package/modern/utils/useId.js +1 -1
  477. package/modern/utils/useIsFocusVisible.js +1 -1
  478. package/modern/utils/useSlot.js +1 -1
  479. package/node/Accordion/Accordion.js +5 -6
  480. package/node/AccordionActions/AccordionActions.js +2 -2
  481. package/node/AccordionDetails/AccordionDetails.js +2 -2
  482. package/node/AccordionSummary/AccordionSummary.js +2 -2
  483. package/node/Alert/Alert.js +86 -64
  484. package/node/Alert/alertClasses.js +1 -1
  485. package/node/AlertTitle/AlertTitle.js +6 -6
  486. package/node/AppBar/AppBar.js +2 -2
  487. package/node/Autocomplete/Autocomplete.js +13 -10
  488. package/node/Avatar/Avatar.js +8 -8
  489. package/node/AvatarGroup/AvatarGroup.js +4 -4
  490. package/node/Backdrop/Backdrop.js +2 -2
  491. package/node/Badge/Badge.js +7 -7
  492. package/node/BottomNavigation/BottomNavigation.js +2 -2
  493. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  494. package/node/Breadcrumbs/BreadcrumbCollapsed.js +3 -3
  495. package/node/Breadcrumbs/Breadcrumbs.js +8 -7
  496. package/node/Button/Button.js +12 -12
  497. package/node/Button/buttonClasses.js +1 -1
  498. package/node/ButtonBase/ButtonBase.js +6 -5
  499. package/node/ButtonBase/Ripple.js +0 -1
  500. package/node/ButtonBase/TouchRipple.js +2 -3
  501. package/node/ButtonGroup/ButtonGroup.js +6 -6
  502. package/node/Card/Card.js +4 -4
  503. package/node/CardActionArea/CardActionArea.js +2 -2
  504. package/node/CardActions/CardActions.js +2 -2
  505. package/node/CardContent/CardContent.js +2 -2
  506. package/node/CardHeader/CardHeader.js +2 -2
  507. package/node/CardMedia/CardMedia.js +4 -4
  508. package/node/Checkbox/Checkbox.js +6 -6
  509. package/node/Chip/Chip.js +13 -13
  510. package/node/CircularProgress/CircularProgress.js +4 -4
  511. package/node/Collapse/Collapse.js +15 -12
  512. package/node/Dialog/Dialog.js +5 -5
  513. package/node/DialogActions/DialogActions.js +2 -2
  514. package/node/DialogContent/DialogContent.js +2 -2
  515. package/node/DialogContentText/DialogContentText.js +2 -2
  516. package/node/DialogTitle/DialogTitle.js +2 -2
  517. package/node/Divider/Divider.js +4 -4
  518. package/node/Drawer/Drawer.js +4 -4
  519. package/node/Fab/Fab.js +2 -2
  520. package/node/Fade/Fade.js +6 -6
  521. package/node/FilledInput/FilledInput.js +6 -5
  522. package/node/FormControl/FormControl.js +2 -2
  523. package/node/FormControlLabel/FormControlLabel.js +4 -4
  524. package/node/FormGroup/FormGroup.js +2 -2
  525. package/node/FormHelperText/FormHelperText.js +2 -2
  526. package/node/FormLabel/FormLabel.js +2 -2
  527. package/node/Grid/Grid.js +4 -3
  528. package/node/Grow/Grow.js +8 -7
  529. package/node/Hidden/HiddenCss.js +2 -2
  530. package/node/Hidden/HiddenJs.js +2 -2
  531. package/node/Hidden/withWidth.js +4 -4
  532. package/node/Icon/Icon.js +2 -2
  533. package/node/IconButton/IconButton.js +9 -9
  534. package/node/ImageList/ImageList.js +4 -4
  535. package/node/ImageListItem/ImageListItem.js +5 -5
  536. package/node/ImageListItemBar/ImageListItemBar.js +2 -2
  537. package/node/Input/Input.js +6 -5
  538. package/node/InputAdornment/InputAdornment.js +2 -2
  539. package/node/InputBase/InputBase.js +9 -6
  540. package/node/InputLabel/InputLabel.js +2 -2
  541. package/node/LinearProgress/LinearProgress.js +4 -3
  542. package/node/Link/Link.js +4 -4
  543. package/node/Link/getTextDecoration.js +2 -1
  544. package/node/List/List.js +2 -2
  545. package/node/ListItem/ListItem.js +14 -12
  546. package/node/ListItemAvatar/ListItemAvatar.js +2 -2
  547. package/node/ListItemButton/ListItemButton.js +7 -7
  548. package/node/ListItemIcon/ListItemIcon.js +2 -2
  549. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -2
  550. package/node/ListItemText/ListItemText.js +2 -2
  551. package/node/ListSubheader/ListSubheader.js +2 -2
  552. package/node/Menu/Menu.js +5 -5
  553. package/node/MenuItem/MenuItem.js +7 -7
  554. package/node/MobileStepper/MobileStepper.js +5 -5
  555. package/node/Modal/Modal.js +9 -8
  556. package/node/NativeSelect/NativeSelect.js +2 -2
  557. package/node/NativeSelect/NativeSelectInput.js +4 -5
  558. package/node/OutlinedInput/NotchedOutline.js +0 -1
  559. package/node/OutlinedInput/OutlinedInput.js +4 -4
  560. package/node/Pagination/Pagination.js +8 -8
  561. package/node/PaginationItem/PaginationItem.js +9 -9
  562. package/node/Paper/Paper.js +7 -6
  563. package/node/Popover/Popover.js +17 -12
  564. package/node/Popper/Popper.js +7 -6
  565. package/node/Radio/Radio.js +6 -6
  566. package/node/Radio/RadioButtonIcon.js +0 -1
  567. package/node/Rating/Rating.js +16 -14
  568. package/node/ScopedCssBaseline/ScopedCssBaseline.js +2 -2
  569. package/node/Select/Select.js +2 -2
  570. package/node/Select/SelectInput.js +8 -8
  571. package/node/Skeleton/Skeleton.js +2 -2
  572. package/node/Slide/Slide.js +12 -10
  573. package/node/Slider/Slider.js +23 -24
  574. package/node/Snackbar/Snackbar.js +5 -4
  575. package/node/SnackbarContent/SnackbarContent.js +4 -4
  576. package/node/SpeedDial/SpeedDial.js +7 -6
  577. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  578. package/node/SpeedDialIcon/SpeedDialIcon.js +2 -2
  579. package/node/Step/Step.js +4 -4
  580. package/node/StepButton/StepButton.js +2 -2
  581. package/node/StepConnector/StepConnector.js +2 -2
  582. package/node/StepContent/StepContent.js +3 -3
  583. package/node/StepIcon/StepIcon.js +2 -2
  584. package/node/StepLabel/StepLabel.js +2 -2
  585. package/node/Stepper/Stepper.js +4 -4
  586. package/node/SvgIcon/SvgIcon.js +2 -2
  587. package/node/SwipeableDrawer/SwipeableDrawer.js +7 -7
  588. package/node/Switch/Switch.js +8 -8
  589. package/node/Tab/Tab.js +2 -2
  590. package/node/TabScrollButton/TabScrollButton.js +5 -4
  591. package/node/Table/Table.js +2 -2
  592. package/node/TableBody/TableBody.js +2 -2
  593. package/node/TableCell/TableCell.js +4 -4
  594. package/node/TableContainer/TableContainer.js +2 -2
  595. package/node/TableFooter/TableFooter.js +2 -2
  596. package/node/TableHead/TableHead.js +2 -2
  597. package/node/TablePagination/TablePagination.js +9 -7
  598. package/node/TableRow/TableRow.js +5 -5
  599. package/node/TableSortLabel/TableSortLabel.js +2 -2
  600. package/node/Tabs/Tabs.js +7 -6
  601. package/node/TextField/TextField.js +6 -5
  602. package/node/ToggleButton/ToggleButton.js +4 -4
  603. package/node/ToggleButtonGroup/ToggleButtonGroup.js +4 -4
  604. package/node/Toolbar/Toolbar.js +2 -2
  605. package/node/Tooltip/Tooltip.js +24 -24
  606. package/node/Typography/Typography.js +4 -4
  607. package/node/Zoom/Zoom.js +6 -6
  608. package/node/index.js +1 -1
  609. package/node/internal/SwitchBase.js +4 -5
  610. package/node/styles/CssVarsProvider.js +2 -1
  611. package/node/styles/createMuiStrictModeTheme.js +2 -2
  612. package/node/styles/createPalette.js +7 -7
  613. package/node/styles/createTheme.js +11 -8
  614. package/node/styles/createTypography.js +2 -2
  615. package/node/styles/experimental_extendTheme.js +74 -70
  616. package/node/styles/styled.js +6 -4
  617. package/node/styles/useThemeProps.js +2 -2
  618. package/node/useMediaQuery/index.js +1 -2
  619. package/node/useMediaQuery/useMediaQueryTheme.js +1 -1
  620. package/node/usePagination/usePagination.js +2 -2
  621. package/node/utils/capitalize.js +3 -2
  622. package/node/utils/createChainedFunction.js +3 -2
  623. package/node/utils/debounce.js +3 -2
  624. package/node/utils/deprecatedPropType.js +3 -2
  625. package/node/utils/getScrollbarSize.js +3 -2
  626. package/node/utils/isMuiElement.js +3 -2
  627. package/node/utils/ownerDocument.js +3 -2
  628. package/node/utils/ownerWindow.js +3 -2
  629. package/node/utils/requirePropFactory.js +3 -2
  630. package/node/utils/setRef.js +3 -2
  631. package/node/utils/shouldSpreadAdditionalProps.js +2 -2
  632. package/node/utils/unsupportedProp.js +3 -2
  633. package/node/utils/useControlled.js +3 -2
  634. package/node/utils/useEnhancedEffect.js +3 -2
  635. package/node/utils/useEventCallback.js +3 -2
  636. package/node/utils/useForkRef.js +3 -2
  637. package/node/utils/useId.js +3 -2
  638. package/node/utils/useIsFocusVisible.js +3 -2
  639. package/node/utils/useSlot.js +6 -6
  640. package/package.json +5 -5
  641. package/styles/CssVarsProvider.js +2 -1
  642. package/styles/createMuiStrictModeTheme.js +1 -1
  643. package/styles/createPalette.js +2 -2
  644. package/styles/createTheme.js +3 -2
  645. package/styles/createTypography.js +1 -1
  646. package/styles/experimental_extendTheme.js +4 -2
  647. package/styles/styled.js +1 -1
  648. package/styles/useThemeProps.js +1 -1
  649. package/styles/variants.d.ts +7 -1
  650. package/umd/material-ui.development.js +3327 -3314
  651. package/umd/material-ui.production.min.js +3 -3
  652. package/useMediaQuery/index.d.ts +2 -2
  653. package/useMediaQuery/index.js +1 -3
  654. package/useMediaQuery/useMediaQueryTheme.d.ts +1 -1
  655. package/useMediaQuery/useMediaQueryTheme.js +1 -1
  656. package/usePagination/usePagination.js +1 -1
  657. package/utils/capitalize.d.ts +1 -1
  658. package/utils/capitalize.js +1 -1
  659. package/utils/createChainedFunction.d.ts +1 -1
  660. package/utils/createChainedFunction.js +1 -1
  661. package/utils/debounce.d.ts +1 -1
  662. package/utils/debounce.js +1 -1
  663. package/utils/deprecatedPropType.d.ts +1 -1
  664. package/utils/deprecatedPropType.js +1 -1
  665. package/utils/getScrollbarSize.d.ts +1 -1
  666. package/utils/getScrollbarSize.js +1 -1
  667. package/utils/isMuiElement.d.ts +1 -1
  668. package/utils/isMuiElement.js +1 -1
  669. package/utils/ownerDocument.d.ts +1 -1
  670. package/utils/ownerDocument.js +1 -1
  671. package/utils/ownerWindow.d.ts +1 -1
  672. package/utils/ownerWindow.js +1 -1
  673. package/utils/requirePropFactory.d.ts +1 -1
  674. package/utils/requirePropFactory.js +1 -1
  675. package/utils/setRef.d.ts +1 -1
  676. package/utils/setRef.js +1 -1
  677. package/utils/shouldSpreadAdditionalProps.js +1 -1
  678. package/utils/unsupportedProp.d.ts +1 -1
  679. package/utils/unsupportedProp.js +1 -1
  680. package/utils/useControlled.d.ts +1 -1
  681. package/utils/useControlled.js +1 -1
  682. package/utils/useEnhancedEffect.d.ts +1 -1
  683. package/utils/useEnhancedEffect.js +1 -1
  684. package/utils/useEventCallback.d.ts +1 -1
  685. package/utils/useEventCallback.js +1 -1
  686. package/utils/useForkRef.d.ts +1 -1
  687. package/utils/useForkRef.js +1 -1
  688. package/utils/useId.d.ts +1 -1
  689. package/utils/useId.js +1 -1
  690. package/utils/useIsFocusVisible.d.ts +1 -1
  691. package/utils/useIsFocusVisible.js +1 -1
  692. package/utils/useSlot.js +1 -1
  693. package/legacy/useMediaQuery/useMediaQuery.js +0 -144
  694. package/modern/useMediaQuery/useMediaQuery.js +0 -125
  695. package/node/useMediaQuery/useMediaQuery.js +0 -132
  696. package/useMediaQuery/useMediaQuery.d.ts +0 -46
  697. package/useMediaQuery/useMediaQuery.js +0 -125
@@ -86,7 +86,7 @@ export type AccordionTypeMap<
86
86
  >;
87
87
  /**
88
88
  * Props applied to the transition element.
89
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
89
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
90
90
  * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
91
91
  */
92
92
  TransitionProps?: TransitionProps;
@@ -7,8 +7,8 @@ import * as React from 'react';
7
7
  import { isFragment } from 'react-is';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
10
- import { chainPropTypes } from '@mui/utils';
11
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
+ import chainPropTypes from '@mui/utils/chainPropTypes';
11
+ import composeClasses from '@mui/utils/composeClasses';
12
12
  import styled from '../styles/styled';
13
13
  import useThemeProps from '../styles/useThemeProps';
14
14
  import Collapse from '../Collapse';
@@ -174,7 +174,6 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
174
174
  },
175
175
  ownerState
176
176
  });
177
- delete transitionProps.ownerState;
178
177
  return /*#__PURE__*/_jsxs(AccordionRoot, _extends({
179
178
  className: clsx(classes.root, className),
180
179
  ref: ref,
@@ -282,7 +281,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
282
281
  TransitionComponent: PropTypes.elementType,
283
282
  /**
284
283
  * Props applied to the transition element.
285
- * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
284
+ * By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
286
285
  * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
287
286
  */
288
287
  TransitionProps: PropTypes.object
@@ -6,7 +6,7 @@ const _excluded = ["className", "disableSpacing"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import { getAccordionActionsUtilityClass } from './accordionActionsClasses';
@@ -6,7 +6,7 @@ const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';
@@ -6,7 +6,7 @@ const _excluded = ["children", "className", "expandIcon", "focusVisibleClassName
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import ButtonBase from '../ButtonBase';
@@ -11,7 +11,7 @@ export interface AccordionSummaryClasses {
11
11
  gutters: string;
12
12
  /**
13
13
  * Styles applied to the children wrapper element unless `disableGutters={true}`.
14
- * @deprecated Combine the [.MuiAccordionSummary-gutters](/material-ui/api/accordion-summary/#AccordionSummary-classes-gutters) and [.MuiAccordionSummary-content](/material-ui/api/accordion-summary/#AccordionSummary-classes-content) classes instead.
14
+ * @deprecated Combine the [.MuiAccordionSummary-gutters](/material-ui/api/accordion-summary/#AccordionSummary-classes-gutters) and [.MuiAccordionSummary-content](/material-ui/api/accordion-summary/#AccordionSummary-classes-content) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
15
15
  */
16
16
  contentGutters: string;
17
17
  /** Styles applied to the children wrapper element. */
package/Alert/Alert.d.ts CHANGED
@@ -4,6 +4,7 @@ import { SxProps } from '@mui/system';
4
4
  import { IconButtonProps, InternalStandardProps as StandardProps, SvgIconProps, Theme } from '..';
5
5
  import { PaperProps } from '../Paper';
6
6
  import { AlertClasses } from './alertClasses';
7
+ import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
7
8
 
8
9
  export type AlertColor = 'success' | 'info' | 'warning' | 'error';
9
10
 
@@ -11,6 +12,27 @@ export interface AlertPropsVariantOverrides {}
11
12
 
12
13
  export interface AlertPropsColorOverrides {}
13
14
 
15
+ export interface AlertSlots {
16
+ /**
17
+ * The component that renders the close button.
18
+ * @default IconButton
19
+ */
20
+ closeButton?: React.ElementType;
21
+ /**
22
+ * The component that renders the close icon.
23
+ * @default svg
24
+ */
25
+ closeIcon?: React.ElementType;
26
+ }
27
+
28
+ export type AlertSlotsAndSlotProps = CreateSlotsAndSlotProps<
29
+ AlertSlots,
30
+ {
31
+ closeButton: SlotProps<React.ElementType<IconButtonProps>, {}, AlertOwnerState>;
32
+ closeIcon: SlotProps<React.ElementType<SvgIconProps>, {}, AlertOwnerState>;
33
+ }
34
+ >;
35
+
14
36
  export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
15
37
  /**
16
38
  * The action to display. It renders after the message, at the end of the alert.
@@ -36,8 +58,7 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
36
58
  /**
37
59
  * The components used for each slot inside.
38
60
  *
39
- * This prop is an alias for the `slots` prop.
40
- * It's recommended to use the `slots` prop instead.
61
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
41
62
  *
42
63
  * @default {}
43
64
  */
@@ -49,8 +70,7 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
49
70
  * The extra props for the slot components.
50
71
  * You can override the existing props or add new ones.
51
72
  *
52
- * This prop is an alias for the `slotProps` prop.
53
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
73
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
54
74
  *
55
75
  * @default {}
56
76
  */
@@ -94,35 +114,14 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
94
114
  * @default 'standard'
95
115
  */
96
116
  variant?: OverridableStringUnion<'standard' | 'filled' | 'outlined', AlertPropsVariantOverrides>;
97
- /**
98
- * The extra props for the slot components.
99
- * You can override the existing props or add new ones.
100
- *
101
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
102
- *
103
- * @default {}
104
- */
105
- slotProps?: {
106
- closeButton?: IconButtonProps;
107
- closeIcon?: SvgIconProps;
108
- };
109
- /**
110
- * The components used for each slot inside.
111
- *
112
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
113
- *
114
- * @default {}
115
- */
116
- slots?: {
117
- closeButton?: React.ElementType;
118
- closeIcon?: React.ElementType;
119
- };
120
117
  /**
121
118
  * The system prop that allows defining system overrides as well as additional CSS styles.
122
119
  */
123
120
  sx?: SxProps<Theme>;
124
121
  }
125
122
 
123
+ export interface AlertOwnerState extends AlertProps {}
124
+
126
125
  /**
127
126
  *
128
127
  * Demos:
@@ -134,4 +133,4 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
134
133
  * - [Alert API](https://mui.com/material-ui/api/alert/)
135
134
  * - inherits [Paper API](https://mui.com/material-ui/api/paper/)
136
135
  */
137
- export default function Alert(props: AlertProps): JSX.Element;
136
+ export default function Alert(props: AlertProps & AlertSlotsAndSlotProps): JSX.Element;
package/Alert/Alert.js CHANGED
@@ -6,10 +6,10 @@ const _excluded = ["action", "children", "className", "closeText", "color", "com
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
- import { darken, lighten } from '@mui/system';
11
- import styled from '../styles/styled';
12
- import useThemeProps from '../styles/useThemeProps';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import { darken, lighten } from '@mui/system/colorManipulator';
11
+ import { styled, createUseThemeProps } from '../zero-styled';
12
+ import useSlot from '../utils/useSlot';
13
13
  import capitalize from '../utils/capitalize';
14
14
  import Paper from '../Paper';
15
15
  import alertClasses, { getAlertUtilityClass } from './alertClasses';
@@ -21,6 +21,7 @@ import InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';
21
21
  import CloseIcon from '../internal/svg-icons/Close';
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
24
+ const useThemeProps = createUseThemeProps('MuiAlert');
24
25
  const useUtilityClasses = ownerState => {
25
26
  const {
26
27
  variant,
@@ -29,7 +30,7 @@ const useUtilityClasses = ownerState => {
29
30
  classes
30
31
  } = ownerState;
31
32
  const slots = {
32
- root: ['root', `${variant}${capitalize(color || severity)}`, `${variant}`],
33
+ root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],
33
34
  icon: ['icon'],
34
35
  message: ['message'],
35
36
  action: ['action']
@@ -46,41 +47,58 @@ const AlertRoot = styled(Paper, {
46
47
  return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];
47
48
  }
48
49
  })(({
49
- theme,
50
- ownerState
50
+ theme
51
51
  }) => {
52
52
  const getColor = theme.palette.mode === 'light' ? darken : lighten;
53
53
  const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
54
- const color = ownerState.color || ownerState.severity;
55
54
  return _extends({}, theme.typography.body2, {
56
55
  backgroundColor: 'transparent',
57
56
  display: 'flex',
58
- padding: '6px 16px'
59
- }, color && ownerState.variant === 'standard' && {
60
- color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
61
- backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
62
- [`& .${alertClasses.icon}`]: theme.vars ? {
63
- color: theme.vars.palette.Alert[`${color}IconColor`]
64
- } : {
65
- color: theme.palette[color].main
66
- }
67
- }, color && ownerState.variant === 'outlined' && {
68
- color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
69
- border: `1px solid ${(theme.vars || theme).palette[color].light}`,
70
- [`& .${alertClasses.icon}`]: theme.vars ? {
71
- color: theme.vars.palette.Alert[`${color}IconColor`]
72
- } : {
73
- color: theme.palette[color].main
74
- }
75
- }, color && ownerState.variant === 'filled' && _extends({
76
- fontWeight: theme.typography.fontWeightMedium
77
- }, theme.vars ? {
78
- color: theme.vars.palette.Alert[`${color}FilledColor`],
79
- backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
80
- } : {
81
- backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
82
- color: theme.palette.getContrastText(theme.palette[color].main)
83
- }));
57
+ padding: '6px 16px',
58
+ variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
59
+ props: {
60
+ colorSeverity: color,
61
+ variant: 'standard'
62
+ },
63
+ style: {
64
+ color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
65
+ backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
66
+ [`& .${alertClasses.icon}`]: theme.vars ? {
67
+ color: theme.vars.palette.Alert[`${color}IconColor`]
68
+ } : {
69
+ color: theme.palette[color].main
70
+ }
71
+ }
72
+ })), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
73
+ props: {
74
+ colorSeverity: color,
75
+ variant: 'outlined'
76
+ },
77
+ style: {
78
+ color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
79
+ border: `1px solid ${(theme.vars || theme).palette[color].light}`,
80
+ [`& .${alertClasses.icon}`]: theme.vars ? {
81
+ color: theme.vars.palette.Alert[`${color}IconColor`]
82
+ } : {
83
+ color: theme.palette[color].main
84
+ }
85
+ }
86
+ })), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark).map(([color]) => ({
87
+ props: {
88
+ colorSeverity: color,
89
+ variant: 'filled'
90
+ },
91
+ style: _extends({
92
+ fontWeight: theme.typography.fontWeightMedium
93
+ }, theme.vars ? {
94
+ color: theme.vars.palette.Alert[`${color}FilledColor`],
95
+ backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
96
+ } : {
97
+ backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
98
+ color: theme.palette.getContrastText(theme.palette[color].main)
99
+ })
100
+ }))]
101
+ });
84
102
  });
85
103
  const AlertIcon = styled('div', {
86
104
  name: 'MuiAlert',
@@ -128,7 +146,6 @@ const defaultIconMapping = {
128
146
  })
129
147
  };
130
148
  const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
131
- var _ref, _slots$closeButton, _ref2, _slots$closeIcon, _slotProps$closeButto, _slotProps$closeIcon;
132
149
  const props = useThemeProps({
133
150
  props: inProps,
134
151
  name: 'MuiAlert'
@@ -154,13 +171,27 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
154
171
  const ownerState = _extends({}, props, {
155
172
  color,
156
173
  severity,
157
- variant
174
+ variant,
175
+ colorSeverity: color || severity
158
176
  });
159
177
  const classes = useUtilityClasses(ownerState);
160
- const AlertCloseButton = (_ref = (_slots$closeButton = slots.closeButton) != null ? _slots$closeButton : components.CloseButton) != null ? _ref : IconButton;
161
- const AlertCloseIcon = (_ref2 = (_slots$closeIcon = slots.closeIcon) != null ? _slots$closeIcon : components.CloseIcon) != null ? _ref2 : CloseIcon;
162
- const closeButtonProps = (_slotProps$closeButto = slotProps.closeButton) != null ? _slotProps$closeButto : componentsProps.closeButton;
163
- const closeIconProps = (_slotProps$closeIcon = slotProps.closeIcon) != null ? _slotProps$closeIcon : componentsProps.closeIcon;
178
+ const externalForwardedProps = {
179
+ slots: _extends({
180
+ closeButton: components.CloseButton,
181
+ closeIcon: components.CloseIcon
182
+ }, slots),
183
+ slotProps: _extends({}, componentsProps, slotProps)
184
+ };
185
+ const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {
186
+ elementType: IconButton,
187
+ externalForwardedProps,
188
+ ownerState
189
+ });
190
+ const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {
191
+ elementType: CloseIcon,
192
+ externalForwardedProps,
193
+ ownerState
194
+ });
164
195
  return /*#__PURE__*/_jsxs(AlertRoot, _extends({
165
196
  role: role,
166
197
  elevation: 0,
@@ -183,14 +214,14 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
183
214
  }) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
184
215
  ownerState: ownerState,
185
216
  className: classes.action,
186
- children: /*#__PURE__*/_jsx(AlertCloseButton, _extends({
217
+ children: /*#__PURE__*/_jsx(CloseButtonSlot, _extends({
187
218
  size: "small",
188
219
  "aria-label": closeText,
189
220
  title: closeText,
190
221
  color: "inherit",
191
222
  onClick: onClose
192
223
  }, closeButtonProps, {
193
- children: /*#__PURE__*/_jsx(AlertCloseIcon, _extends({
224
+ children: /*#__PURE__*/_jsx(CloseIconSlot, _extends({
194
225
  fontSize: "small"
195
226
  }, closeIconProps))
196
227
  }))
@@ -234,8 +265,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
234
265
  /**
235
266
  * The components used for each slot inside.
236
267
  *
237
- * This prop is an alias for the `slots` prop.
238
- * It's recommended to use the `slots` prop instead.
268
+ * @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
239
269
  *
240
270
  * @default {}
241
271
  */
@@ -247,8 +277,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
247
277
  * The extra props for the slot components.
248
278
  * You can override the existing props or add new ones.
249
279
  *
250
- * This prop is an alias for the `slotProps` prop.
251
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
280
+ * @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
252
281
  *
253
282
  * @default {}
254
283
  */
@@ -291,22 +320,15 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
291
320
  */
292
321
  severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
293
322
  /**
294
- * The extra props for the slot components.
295
- * You can override the existing props or add new ones.
296
- *
297
- * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
298
- *
323
+ * The props used for each slot inside.
299
324
  * @default {}
300
325
  */
301
326
  slotProps: PropTypes.shape({
302
- closeButton: PropTypes.object,
303
- closeIcon: PropTypes.object
327
+ closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
328
+ closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
304
329
  }),
305
330
  /**
306
331
  * The components used for each slot inside.
307
- *
308
- * This prop is an alias for the `components` prop, which will be deprecated in the future.
309
- *
310
332
  * @default {}
311
333
  */
312
334
  slots: PropTypes.shape({
@@ -7,29 +7,85 @@ export interface AlertClasses {
7
7
  outlined: string;
8
8
  /** Styles applied to the root element if `variant="standard"`. */
9
9
  standard: string;
10
- /** Styles applied to the root element if `variant="standard"` and `color="success"`. */
10
+ /** Styles applied to the root element if `color="success"`. */
11
+ colorSuccess: string;
12
+ /** Styles applied to the root element if `color="info"`. */
13
+ colorInfo: string;
14
+ /** Styles applied to the root element if `color="warning"`. */
15
+ colorWarning: string;
16
+ /** Styles applied to the root element if `color="error"`. */
17
+ colorError: string;
18
+ /** Styles applied to the root element if `variant="standard"` and `color="success"`.
19
+ * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
20
+ * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
21
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
22
+ */
11
23
  standardSuccess: string;
12
- /** Styles applied to the root element if `variant="standard"` and `color="info"`. */
24
+ /** Styles applied to the root element if `variant="standard"` and `color="info"`.
25
+ * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
26
+ * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
27
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
28
+ */
13
29
  standardInfo: string;
14
- /** Styles applied to the root element if `variant="standard"` and `color="warning"`. */
30
+ /** Styles applied to the root element if `variant="standard"` and `color="warning"`.
31
+ * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
32
+ * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
33
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
34
+ */
15
35
  standardWarning: string;
16
- /** Styles applied to the root element if `variant="standard"` and `color="error"`. */
36
+ /** Styles applied to the root element if `variant="standard"` and `color="error"`.
37
+ * @deprecated Combine the [.MuiAlert-standard](/material-ui/api/alert/#alert-classes-standard)
38
+ * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
39
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
40
+ */
17
41
  standardError: string;
18
- /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
42
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`.
43
+ * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
44
+ * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
45
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
46
+ */
19
47
  outlinedSuccess: string;
20
- /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
48
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`.
49
+ * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
50
+ * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
51
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
52
+ */
21
53
  outlinedInfo: string;
22
- /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
54
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`.
55
+ * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
56
+ * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
57
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
58
+ */
23
59
  outlinedWarning: string;
24
- /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
60
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`.
61
+ * @deprecated Combine the [.MuiAlert-outlined](/material-ui/api/alert/#alert-classes-outlined)
62
+ * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
63
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
64
+ */
25
65
  outlinedError: string;
26
- /** Styles applied to the root element if `variant="filled"` and `color="success"`. */
66
+ /** Styles applied to the root element if `variant="filled"` and `color="success"`.
67
+ * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
68
+ * and [.MuiAlert-colorSuccess](/material-ui/api/alert/#alert-classes-colorSuccess) classes instead.
69
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
70
+ */
27
71
  filledSuccess: string;
28
- /** Styles applied to the root element if `variant="filled"` and `color="info"`. */
72
+ /** Styles applied to the root element if `variant="filled"` and `color="info"`.
73
+ * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
74
+ * and [.MuiAlert-colorInfo](/material-ui/api/alert/#alert-classes-colorInfo) classes instead.
75
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
76
+ */
29
77
  filledInfo: string;
30
- /** Styles applied to the root element if `variant="filled"` and `color="warning"`. */
78
+ /** Styles applied to the root element if `variant="filled"` and `color="warning"`
79
+ * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
80
+ * and [.MuiAlert-colorWarning](/material-ui/api/alert/#alert-classes-colorWarning) classes instead.
81
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
82
+ */
31
83
  filledWarning: string;
32
- /** Styles applied to the root element if `variant="filled"` and `color="error"`. */
84
+ /** Styles applied to the root element if `variant="filled"` and `color="error"`.
85
+ * @deprecated Combine the [.MuiAlert-filled](/material-ui/api/alert/#alert-classes-filled)
86
+ * and [.MuiAlert-colorError](/material-ui/api/alert/#alert-classes-colorError) classes instead.
87
+ * [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
88
+ */
33
89
  filledError: string;
34
90
  /** Styles applied to the icon wrapper element. */
35
91
  icon: string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getAlertUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiAlert', slot);
5
5
  }
6
- const alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'filledSuccess', 'filledInfo', 'filledWarning', 'filledError', 'outlined', 'outlinedSuccess', 'outlinedInfo', 'outlinedWarning', 'outlinedError', 'standard', 'standardSuccess', 'standardInfo', 'standardWarning', 'standardError']);
6
+ const alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'colorSuccess', 'colorInfo', 'colorWarning', 'colorError', 'filledSuccess', 'filledInfo', 'filledWarning', 'filledError', 'outlined', 'outlinedSuccess', 'outlinedInfo', 'outlinedWarning', 'outlinedError', 'standard', 'standardSuccess', 'standardInfo', 'standardWarning', 'standardError']);
7
7
  export default alertClasses;
@@ -6,12 +6,12 @@ const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import Typography from '../Typography';
13
12
  import { getAlertTitleUtilityClass } from './alertTitleClasses';
14
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
+ const useThemeProps = createUseThemeProps('MuiAlertTitle');
15
15
  const useUtilityClasses = ownerState => {
16
16
  const {
17
17
  classes
package/AppBar/AppBar.js CHANGED
@@ -6,7 +6,7 @@ const _excluded = ["className", "color", "enableColorOnDark", "position"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import capitalize from '../utils/capitalize';
@@ -8,9 +8,11 @@ const _excluded = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect"
8
8
  import * as React from 'react';
9
9
  import PropTypes from 'prop-types';
10
10
  import clsx from 'clsx';
11
- import { chainPropTypes, integerPropType } from '@mui/utils';
12
- import { unstable_composeClasses as composeClasses, useAutocomplete, createFilterOptions } from '@mui/base';
13
- import { alpha } from '@mui/system';
11
+ import integerPropType from '@mui/utils/integerPropType';
12
+ import chainPropTypes from '@mui/utils/chainPropTypes';
13
+ import { useAutocomplete, createFilterOptions } from '@mui/base';
14
+ import composeClasses from '@mui/utils/composeClasses';
15
+ import { alpha } from '@mui/system/colorManipulator';
14
16
  import Popper from '../Popper';
15
17
  import ListSubheader from '../ListSubheader';
16
18
  import Paper from '../Paper';
@@ -214,7 +216,8 @@ const AutocompleteEndAdornment = styled('div', {
214
216
  // We use a position absolute to support wrapping tags.
215
217
  position: 'absolute',
216
218
  right: 0,
217
- top: 'calc(50% - 14px)' // Center vertically
219
+ top: '50%',
220
+ transform: 'translate(0, -50%)'
218
221
  });
219
222
  const AutocompleteClearIndicator = styled(IconButton, {
220
223
  name: 'MuiAutocomplete',
package/Avatar/Avatar.js CHANGED
@@ -6,13 +6,13 @@ const _excluded = ["alt", "children", "className", "component", "slots", "slotPr
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import Person from '../internal/svg-icons/Person';
13
12
  import { getAvatarUtilityClass } from './avatarClasses';
14
13
  import useSlot from '../utils/useSlot';
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
+ const useThemeProps = createUseThemeProps('MuiAvatar');
16
16
  const useUtilityClasses = ownerState => {
17
17
  const {
18
18
  classes,
@@ -7,8 +7,8 @@ import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import { isFragment } from 'react-is';
9
9
  import clsx from 'clsx';
10
- import { chainPropTypes } from '@mui/utils';
11
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
+ import chainPropTypes from '@mui/utils/chainPropTypes';
11
+ import composeClasses from '@mui/utils/composeClasses';
12
12
  import styled from '../styles/styled';
13
13
  import useThemeProps from '../styles/useThemeProps';
14
14
  import Avatar, { avatarClasses } from '../Avatar';
@@ -6,7 +6,7 @@ const _excluded = ["children", "className", "component", "components", "componen
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import composeClasses from '@mui/utils/composeClasses';
10
10
  import styled from '../styles/styled';
11
11
  import useThemeProps from '../styles/useThemeProps';
12
12
  import Fade from '../Fade';
package/Badge/Badge.js CHANGED
@@ -6,10 +6,10 @@ const _excluded = ["anchorOrigin", "className", "classes", "component", "compone
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
- import { usePreviousProps } from '@mui/utils';
10
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
9
+ import usePreviousProps from '@mui/utils/usePreviousProps';
10
+ import composeClasses from '@mui/utils/composeClasses';
11
11
  import { useBadge } from '@mui/base/useBadge';
12
- import { useSlotProps } from '@mui/base';
12
+ import { useSlotProps } from '@mui/base/utils';
13
13
  import { styled, createUseThemeProps } from '../zero-styled';
14
14
  import capitalize from '../utils/capitalize';
15
15
  import badgeClasses, { getBadgeUtilityClass } from './badgeClasses';
@@ -7,7 +7,7 @@ import * as React from 'react';
7
7
  import { isFragment } from 'react-is';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
10
- import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
10
+ import composeClasses from '@mui/utils/composeClasses';
11
11
  import styled from '../styles/styled';
12
12
  import useThemeProps from '../styles/useThemeProps';
13
13
  import { getBottomNavigationUtilityClass } from './bottomNavigationClasses';