@mui/material 5.15.3 → 5.15.5

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 (555) hide show
  1. package/Accordion/Accordion.d.ts +30 -2
  2. package/Accordion/Accordion.js +43 -10
  3. package/AccordionActions/AccordionActions.js +4 -4
  4. package/AccordionDetails/AccordionDetails.js +4 -4
  5. package/AccordionSummary/AccordionSummary.js +4 -4
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +4 -1
  7. package/Alert/Alert.d.ts +4 -2
  8. package/Alert/Alert.js +5 -5
  9. package/AlertTitle/AlertTitle.js +4 -4
  10. package/AppBar/AppBar.js +4 -4
  11. package/Autocomplete/Autocomplete.js +4 -4
  12. package/Avatar/Avatar.js +4 -4
  13. package/AvatarGroup/AvatarGroup.js +4 -4
  14. package/Backdrop/Backdrop.js +4 -4
  15. package/Badge/Badge.js +5 -5
  16. package/BottomNavigation/BottomNavigation.js +4 -4
  17. package/BottomNavigationAction/BottomNavigationAction.js +4 -4
  18. package/Box/Box.js +4 -4
  19. package/Breadcrumbs/Breadcrumbs.js +4 -4
  20. package/Button/Button.js +4 -4
  21. package/ButtonBase/ButtonBase.js +4 -4
  22. package/ButtonGroup/ButtonGroup.js +4 -4
  23. package/ButtonGroup/ButtonGroupContext.d.ts +2 -2
  24. package/CHANGELOG.md +184 -1
  25. package/Card/Card.js +4 -4
  26. package/CardActionArea/CardActionArea.js +4 -4
  27. package/CardActions/CardActions.js +4 -4
  28. package/CardContent/CardContent.js +4 -4
  29. package/CardHeader/CardHeader.js +4 -4
  30. package/CardMedia/CardMedia.js +4 -4
  31. package/Checkbox/Checkbox.js +4 -4
  32. package/Chip/Chip.js +4 -4
  33. package/CircularProgress/CircularProgress.js +4 -4
  34. package/ClickAwayListener/index.d.ts +2 -1
  35. package/Collapse/Collapse.js +4 -4
  36. package/Container/Container.js +4 -4
  37. package/CssBaseline/CssBaseline.js +4 -4
  38. package/Dialog/Dialog.js +4 -4
  39. package/DialogActions/DialogActions.js +4 -4
  40. package/DialogContent/DialogContent.js +4 -4
  41. package/DialogContentText/DialogContentText.js +4 -4
  42. package/DialogTitle/DialogTitle.js +4 -4
  43. package/Divider/Divider.d.ts +1 -0
  44. package/Divider/Divider.js +5 -4
  45. package/Divider/dividerClasses.d.ts +6 -2
  46. package/Drawer/Drawer.js +4 -4
  47. package/Fab/Fab.js +4 -4
  48. package/Fade/Fade.js +4 -4
  49. package/FilledInput/FilledInput.js +4 -4
  50. package/FormControl/FormControl.d.ts +1 -1
  51. package/FormControl/FormControl.js +4 -4
  52. package/FormControlLabel/FormControlLabel.js +4 -4
  53. package/FormGroup/FormGroup.js +4 -4
  54. package/FormHelperText/FormHelperText.js +4 -4
  55. package/FormLabel/FormLabel.d.ts +1 -1
  56. package/FormLabel/FormLabel.js +4 -4
  57. package/GlobalStyles/GlobalStyles.js +4 -4
  58. package/Grid/Grid.js +4 -4
  59. package/Grow/Grow.js +4 -4
  60. package/Hidden/Hidden.js +4 -4
  61. package/Icon/Icon.js +4 -4
  62. package/IconButton/IconButton.js +4 -4
  63. package/ImageList/ImageList.js +4 -4
  64. package/ImageListItem/ImageListItem.js +4 -4
  65. package/ImageListItemBar/ImageListItemBar.js +4 -4
  66. package/Input/Input.js +4 -4
  67. package/InputAdornment/InputAdornment.js +4 -4
  68. package/InputBase/InputBase.js +4 -4
  69. package/InputLabel/InputLabel.d.ts +1 -5
  70. package/InputLabel/InputLabel.js +4 -4
  71. package/LinearProgress/LinearProgress.js +4 -4
  72. package/Link/Link.js +4 -4
  73. package/List/List.js +4 -4
  74. package/ListItem/ListItem.js +4 -4
  75. package/ListItemAvatar/ListItemAvatar.js +4 -4
  76. package/ListItemButton/ListItemButton.js +4 -4
  77. package/ListItemIcon/ListItemIcon.js +4 -4
  78. package/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  79. package/ListItemText/ListItemText.js +4 -4
  80. package/ListSubheader/ListSubheader.js +4 -4
  81. package/Menu/Menu.js +4 -4
  82. package/MenuItem/MenuItem.js +4 -4
  83. package/MenuList/MenuList.js +4 -4
  84. package/MobileStepper/MobileStepper.js +4 -4
  85. package/Modal/Modal.js +4 -4
  86. package/NativeSelect/NativeSelect.js +4 -4
  87. package/OutlinedInput/OutlinedInput.js +4 -4
  88. package/Pagination/Pagination.js +4 -4
  89. package/PaginationItem/PaginationItem.js +4 -4
  90. package/Paper/Paper.js +4 -4
  91. package/Popover/Popover.js +4 -4
  92. package/Popper/Popper.js +4 -4
  93. package/Radio/Radio.js +4 -4
  94. package/RadioGroup/RadioGroup.js +4 -4
  95. package/Rating/Rating.js +5 -14
  96. package/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  97. package/Select/Select.js +4 -4
  98. package/Skeleton/Skeleton.js +4 -4
  99. package/Slide/Slide.js +4 -4
  100. package/Slider/Slider.js +4 -4
  101. package/Snackbar/Snackbar.js +4 -4
  102. package/SnackbarContent/SnackbarContent.js +4 -4
  103. package/SpeedDial/SpeedDial.js +5 -13
  104. package/SpeedDialAction/SpeedDialAction.js +4 -4
  105. package/SpeedDialIcon/SpeedDialIcon.js +4 -4
  106. package/Stack/Stack.js +4 -4
  107. package/Step/Step.js +4 -4
  108. package/StepButton/StepButton.js +4 -4
  109. package/StepConnector/StepConnector.js +4 -4
  110. package/StepContent/StepContent.js +4 -4
  111. package/StepIcon/StepIcon.js +4 -4
  112. package/StepLabel/StepLabel.js +4 -4
  113. package/Stepper/Stepper.js +4 -4
  114. package/SvgIcon/SvgIcon.js +4 -4
  115. package/SwipeableDrawer/SwipeableDrawer.js +4 -4
  116. package/Switch/Switch.js +4 -4
  117. package/Tab/Tab.js +4 -4
  118. package/TabScrollButton/TabScrollButton.js +4 -4
  119. package/Table/Table.js +4 -4
  120. package/TableBody/TableBody.js +4 -4
  121. package/TableCell/TableCell.js +4 -4
  122. package/TableContainer/TableContainer.js +4 -4
  123. package/TableFooter/TableFooter.js +4 -4
  124. package/TableHead/TableHead.js +4 -4
  125. package/TablePagination/TablePagination.js +4 -4
  126. package/TableRow/TableRow.js +4 -4
  127. package/TableSortLabel/TableSortLabel.js +4 -4
  128. package/Tabs/Tabs.js +4 -4
  129. package/TextField/TextField.d.ts +1 -1
  130. package/TextField/TextField.js +4 -4
  131. package/ToggleButton/ToggleButton.js +24 -8
  132. package/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  133. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.d.ts +6 -0
  134. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  135. package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +16 -0
  136. package/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  137. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +6 -0
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  139. package/Toolbar/Toolbar.js +4 -4
  140. package/Tooltip/Tooltip.js +4 -4
  141. package/Typography/Typography.js +4 -4
  142. package/Unstable_Grid2/Grid2.js +4 -4
  143. package/Zoom/Zoom.js +4 -4
  144. package/index.js +1 -1
  145. package/legacy/Accordion/Accordion.js +48 -11
  146. package/legacy/AccordionActions/AccordionActions.js +4 -4
  147. package/legacy/AccordionDetails/AccordionDetails.js +4 -4
  148. package/legacy/AccordionSummary/AccordionSummary.js +4 -4
  149. package/legacy/Alert/Alert.js +5 -5
  150. package/legacy/AlertTitle/AlertTitle.js +4 -4
  151. package/legacy/AppBar/AppBar.js +4 -4
  152. package/legacy/Autocomplete/Autocomplete.js +4 -4
  153. package/legacy/Avatar/Avatar.js +4 -4
  154. package/legacy/AvatarGroup/AvatarGroup.js +4 -4
  155. package/legacy/Backdrop/Backdrop.js +4 -4
  156. package/legacy/Badge/Badge.js +5 -5
  157. package/legacy/BottomNavigation/BottomNavigation.js +4 -4
  158. package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -4
  159. package/legacy/Box/Box.js +4 -4
  160. package/legacy/Breadcrumbs/Breadcrumbs.js +4 -4
  161. package/legacy/Button/Button.js +4 -4
  162. package/legacy/ButtonBase/ButtonBase.js +4 -4
  163. package/legacy/ButtonGroup/ButtonGroup.js +4 -4
  164. package/legacy/Card/Card.js +4 -4
  165. package/legacy/CardActionArea/CardActionArea.js +4 -4
  166. package/legacy/CardActions/CardActions.js +4 -4
  167. package/legacy/CardContent/CardContent.js +4 -4
  168. package/legacy/CardHeader/CardHeader.js +4 -4
  169. package/legacy/CardMedia/CardMedia.js +4 -4
  170. package/legacy/Checkbox/Checkbox.js +4 -4
  171. package/legacy/Chip/Chip.js +4 -4
  172. package/legacy/CircularProgress/CircularProgress.js +4 -4
  173. package/legacy/Collapse/Collapse.js +4 -4
  174. package/legacy/Container/Container.js +4 -4
  175. package/legacy/CssBaseline/CssBaseline.js +4 -4
  176. package/legacy/Dialog/Dialog.js +4 -4
  177. package/legacy/DialogActions/DialogActions.js +4 -4
  178. package/legacy/DialogContent/DialogContent.js +4 -4
  179. package/legacy/DialogContentText/DialogContentText.js +4 -4
  180. package/legacy/DialogTitle/DialogTitle.js +4 -4
  181. package/legacy/Divider/Divider.js +5 -4
  182. package/legacy/Drawer/Drawer.js +4 -4
  183. package/legacy/Fab/Fab.js +4 -4
  184. package/legacy/Fade/Fade.js +4 -4
  185. package/legacy/FilledInput/FilledInput.js +4 -4
  186. package/legacy/FormControl/FormControl.js +4 -4
  187. package/legacy/FormControlLabel/FormControlLabel.js +4 -4
  188. package/legacy/FormGroup/FormGroup.js +4 -4
  189. package/legacy/FormHelperText/FormHelperText.js +4 -4
  190. package/legacy/FormLabel/FormLabel.js +4 -4
  191. package/legacy/GlobalStyles/GlobalStyles.js +4 -4
  192. package/legacy/Grid/Grid.js +4 -4
  193. package/legacy/Grow/Grow.js +4 -4
  194. package/legacy/Hidden/Hidden.js +4 -4
  195. package/legacy/Icon/Icon.js +4 -4
  196. package/legacy/IconButton/IconButton.js +4 -4
  197. package/legacy/ImageList/ImageList.js +4 -4
  198. package/legacy/ImageListItem/ImageListItem.js +4 -4
  199. package/legacy/ImageListItemBar/ImageListItemBar.js +4 -4
  200. package/legacy/Input/Input.js +4 -4
  201. package/legacy/InputAdornment/InputAdornment.js +4 -4
  202. package/legacy/InputBase/InputBase.js +4 -4
  203. package/legacy/InputLabel/InputLabel.js +4 -4
  204. package/legacy/LinearProgress/LinearProgress.js +4 -4
  205. package/legacy/Link/Link.js +4 -4
  206. package/legacy/List/List.js +4 -4
  207. package/legacy/ListItem/ListItem.js +4 -4
  208. package/legacy/ListItemAvatar/ListItemAvatar.js +4 -4
  209. package/legacy/ListItemButton/ListItemButton.js +4 -4
  210. package/legacy/ListItemIcon/ListItemIcon.js +4 -4
  211. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  212. package/legacy/ListItemText/ListItemText.js +4 -4
  213. package/legacy/ListSubheader/ListSubheader.js +4 -4
  214. package/legacy/Menu/Menu.js +4 -4
  215. package/legacy/MenuItem/MenuItem.js +4 -4
  216. package/legacy/MenuList/MenuList.js +4 -4
  217. package/legacy/MobileStepper/MobileStepper.js +4 -4
  218. package/legacy/Modal/Modal.js +4 -4
  219. package/legacy/NativeSelect/NativeSelect.js +4 -4
  220. package/legacy/OutlinedInput/OutlinedInput.js +4 -4
  221. package/legacy/Pagination/Pagination.js +4 -4
  222. package/legacy/PaginationItem/PaginationItem.js +4 -4
  223. package/legacy/Paper/Paper.js +4 -4
  224. package/legacy/Popover/Popover.js +4 -4
  225. package/legacy/Popper/Popper.js +4 -4
  226. package/legacy/Radio/Radio.js +4 -4
  227. package/legacy/RadioGroup/RadioGroup.js +4 -4
  228. package/legacy/Rating/Rating.js +5 -14
  229. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  230. package/legacy/Select/Select.js +4 -4
  231. package/legacy/Skeleton/Skeleton.js +4 -4
  232. package/legacy/Slide/Slide.js +4 -4
  233. package/legacy/Slider/Slider.js +4 -4
  234. package/legacy/Snackbar/Snackbar.js +4 -4
  235. package/legacy/SnackbarContent/SnackbarContent.js +4 -4
  236. package/legacy/SpeedDial/SpeedDial.js +5 -13
  237. package/legacy/SpeedDialAction/SpeedDialAction.js +4 -4
  238. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -4
  239. package/legacy/Stack/Stack.js +4 -4
  240. package/legacy/Step/Step.js +4 -4
  241. package/legacy/StepButton/StepButton.js +4 -4
  242. package/legacy/StepConnector/StepConnector.js +4 -4
  243. package/legacy/StepContent/StepContent.js +4 -4
  244. package/legacy/StepIcon/StepIcon.js +4 -4
  245. package/legacy/StepLabel/StepLabel.js +4 -4
  246. package/legacy/Stepper/Stepper.js +4 -4
  247. package/legacy/SvgIcon/SvgIcon.js +4 -4
  248. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  249. package/legacy/Switch/Switch.js +4 -4
  250. package/legacy/Tab/Tab.js +4 -4
  251. package/legacy/TabScrollButton/TabScrollButton.js +4 -4
  252. package/legacy/Table/Table.js +4 -4
  253. package/legacy/TableBody/TableBody.js +4 -4
  254. package/legacy/TableCell/TableCell.js +4 -4
  255. package/legacy/TableContainer/TableContainer.js +4 -4
  256. package/legacy/TableFooter/TableFooter.js +4 -4
  257. package/legacy/TableHead/TableHead.js +4 -4
  258. package/legacy/TablePagination/TablePagination.js +4 -4
  259. package/legacy/TableRow/TableRow.js +4 -4
  260. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  261. package/legacy/Tabs/Tabs.js +4 -4
  262. package/legacy/TextField/TextField.js +4 -4
  263. package/legacy/ToggleButton/ToggleButton.js +19 -6
  264. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +81 -55
  265. package/legacy/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  266. package/legacy/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  267. package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  268. package/legacy/Toolbar/Toolbar.js +4 -4
  269. package/legacy/Tooltip/Tooltip.js +4 -4
  270. package/legacy/Typography/Typography.js +4 -4
  271. package/legacy/Unstable_Grid2/Grid2.js +4 -4
  272. package/legacy/Zoom/Zoom.js +4 -4
  273. package/legacy/index.js +1 -1
  274. package/legacy/styles/CssVarsProvider.js +3 -0
  275. package/legacy/utils/types.js +1 -0
  276. package/legacy/utils/useSlot.js +71 -0
  277. package/legacy/zero-styled/index.js +2 -0
  278. package/modern/Accordion/Accordion.js +43 -10
  279. package/modern/AccordionActions/AccordionActions.js +4 -4
  280. package/modern/AccordionDetails/AccordionDetails.js +4 -4
  281. package/modern/AccordionSummary/AccordionSummary.js +4 -4
  282. package/modern/Alert/Alert.js +5 -5
  283. package/modern/AlertTitle/AlertTitle.js +4 -4
  284. package/modern/AppBar/AppBar.js +4 -4
  285. package/modern/Autocomplete/Autocomplete.js +4 -4
  286. package/modern/Avatar/Avatar.js +4 -4
  287. package/modern/AvatarGroup/AvatarGroup.js +4 -4
  288. package/modern/Backdrop/Backdrop.js +4 -4
  289. package/modern/Badge/Badge.js +5 -5
  290. package/modern/BottomNavigation/BottomNavigation.js +4 -4
  291. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -4
  292. package/modern/Box/Box.js +4 -4
  293. package/modern/Breadcrumbs/Breadcrumbs.js +4 -4
  294. package/modern/Button/Button.js +4 -4
  295. package/modern/ButtonBase/ButtonBase.js +4 -4
  296. package/modern/ButtonGroup/ButtonGroup.js +4 -4
  297. package/modern/Card/Card.js +4 -4
  298. package/modern/CardActionArea/CardActionArea.js +4 -4
  299. package/modern/CardActions/CardActions.js +4 -4
  300. package/modern/CardContent/CardContent.js +4 -4
  301. package/modern/CardHeader/CardHeader.js +4 -4
  302. package/modern/CardMedia/CardMedia.js +4 -4
  303. package/modern/Checkbox/Checkbox.js +4 -4
  304. package/modern/Chip/Chip.js +4 -4
  305. package/modern/CircularProgress/CircularProgress.js +4 -4
  306. package/modern/Collapse/Collapse.js +4 -4
  307. package/modern/Container/Container.js +4 -4
  308. package/modern/CssBaseline/CssBaseline.js +4 -4
  309. package/modern/Dialog/Dialog.js +4 -4
  310. package/modern/DialogActions/DialogActions.js +4 -4
  311. package/modern/DialogContent/DialogContent.js +4 -4
  312. package/modern/DialogContentText/DialogContentText.js +4 -4
  313. package/modern/DialogTitle/DialogTitle.js +4 -4
  314. package/modern/Divider/Divider.js +5 -4
  315. package/modern/Drawer/Drawer.js +4 -4
  316. package/modern/Fab/Fab.js +4 -4
  317. package/modern/Fade/Fade.js +4 -4
  318. package/modern/FilledInput/FilledInput.js +4 -4
  319. package/modern/FormControl/FormControl.js +4 -4
  320. package/modern/FormControlLabel/FormControlLabel.js +4 -4
  321. package/modern/FormGroup/FormGroup.js +4 -4
  322. package/modern/FormHelperText/FormHelperText.js +4 -4
  323. package/modern/FormLabel/FormLabel.js +4 -4
  324. package/modern/GlobalStyles/GlobalStyles.js +4 -4
  325. package/modern/Grid/Grid.js +4 -4
  326. package/modern/Grow/Grow.js +4 -4
  327. package/modern/Hidden/Hidden.js +4 -4
  328. package/modern/Icon/Icon.js +4 -4
  329. package/modern/IconButton/IconButton.js +4 -4
  330. package/modern/ImageList/ImageList.js +4 -4
  331. package/modern/ImageListItem/ImageListItem.js +4 -4
  332. package/modern/ImageListItemBar/ImageListItemBar.js +4 -4
  333. package/modern/Input/Input.js +4 -4
  334. package/modern/InputAdornment/InputAdornment.js +4 -4
  335. package/modern/InputBase/InputBase.js +4 -4
  336. package/modern/InputLabel/InputLabel.js +4 -4
  337. package/modern/LinearProgress/LinearProgress.js +4 -4
  338. package/modern/Link/Link.js +4 -4
  339. package/modern/List/List.js +4 -4
  340. package/modern/ListItem/ListItem.js +4 -4
  341. package/modern/ListItemAvatar/ListItemAvatar.js +4 -4
  342. package/modern/ListItemButton/ListItemButton.js +4 -4
  343. package/modern/ListItemIcon/ListItemIcon.js +4 -4
  344. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  345. package/modern/ListItemText/ListItemText.js +4 -4
  346. package/modern/ListSubheader/ListSubheader.js +4 -4
  347. package/modern/Menu/Menu.js +4 -4
  348. package/modern/MenuItem/MenuItem.js +4 -4
  349. package/modern/MenuList/MenuList.js +4 -4
  350. package/modern/MobileStepper/MobileStepper.js +4 -4
  351. package/modern/Modal/Modal.js +4 -4
  352. package/modern/NativeSelect/NativeSelect.js +4 -4
  353. package/modern/OutlinedInput/OutlinedInput.js +4 -4
  354. package/modern/Pagination/Pagination.js +4 -4
  355. package/modern/PaginationItem/PaginationItem.js +4 -4
  356. package/modern/Paper/Paper.js +4 -4
  357. package/modern/Popover/Popover.js +4 -4
  358. package/modern/Popper/Popper.js +4 -4
  359. package/modern/Radio/Radio.js +4 -4
  360. package/modern/RadioGroup/RadioGroup.js +4 -4
  361. package/modern/Rating/Rating.js +5 -14
  362. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  363. package/modern/Select/Select.js +4 -4
  364. package/modern/Skeleton/Skeleton.js +4 -4
  365. package/modern/Slide/Slide.js +4 -4
  366. package/modern/Slider/Slider.js +4 -4
  367. package/modern/Snackbar/Snackbar.js +4 -4
  368. package/modern/SnackbarContent/SnackbarContent.js +4 -4
  369. package/modern/SpeedDial/SpeedDial.js +5 -13
  370. package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
  371. package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
  372. package/modern/Stack/Stack.js +4 -4
  373. package/modern/Step/Step.js +4 -4
  374. package/modern/StepButton/StepButton.js +4 -4
  375. package/modern/StepConnector/StepConnector.js +4 -4
  376. package/modern/StepContent/StepContent.js +4 -4
  377. package/modern/StepIcon/StepIcon.js +4 -4
  378. package/modern/StepLabel/StepLabel.js +4 -4
  379. package/modern/Stepper/Stepper.js +4 -4
  380. package/modern/SvgIcon/SvgIcon.js +4 -4
  381. package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
  382. package/modern/Switch/Switch.js +4 -4
  383. package/modern/Tab/Tab.js +4 -4
  384. package/modern/TabScrollButton/TabScrollButton.js +4 -4
  385. package/modern/Table/Table.js +4 -4
  386. package/modern/TableBody/TableBody.js +4 -4
  387. package/modern/TableCell/TableCell.js +4 -4
  388. package/modern/TableContainer/TableContainer.js +4 -4
  389. package/modern/TableFooter/TableFooter.js +4 -4
  390. package/modern/TableHead/TableHead.js +4 -4
  391. package/modern/TablePagination/TablePagination.js +4 -4
  392. package/modern/TableRow/TableRow.js +4 -4
  393. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  394. package/modern/Tabs/Tabs.js +4 -4
  395. package/modern/TextField/TextField.js +4 -4
  396. package/modern/ToggleButton/ToggleButton.js +24 -8
  397. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  398. package/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  399. package/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  400. package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  401. package/modern/Toolbar/Toolbar.js +4 -4
  402. package/modern/Tooltip/Tooltip.js +4 -4
  403. package/modern/Typography/Typography.js +4 -4
  404. package/modern/Unstable_Grid2/Grid2.js +4 -4
  405. package/modern/Zoom/Zoom.js +4 -4
  406. package/modern/index.js +1 -1
  407. package/modern/styles/CssVarsProvider.js +3 -0
  408. package/modern/utils/types.js +1 -0
  409. package/modern/utils/useSlot.js +82 -0
  410. package/modern/zero-styled/index.js +2 -0
  411. package/node/Accordion/Accordion.js +43 -10
  412. package/node/AccordionActions/AccordionActions.js +4 -4
  413. package/node/AccordionDetails/AccordionDetails.js +4 -4
  414. package/node/AccordionSummary/AccordionSummary.js +4 -4
  415. package/node/Alert/Alert.js +5 -5
  416. package/node/AlertTitle/AlertTitle.js +4 -4
  417. package/node/AppBar/AppBar.js +4 -4
  418. package/node/Autocomplete/Autocomplete.js +4 -4
  419. package/node/Avatar/Avatar.js +4 -4
  420. package/node/AvatarGroup/AvatarGroup.js +4 -4
  421. package/node/Backdrop/Backdrop.js +4 -4
  422. package/node/Badge/Badge.js +7 -7
  423. package/node/BottomNavigation/BottomNavigation.js +4 -4
  424. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -4
  425. package/node/Box/Box.js +4 -4
  426. package/node/Breadcrumbs/Breadcrumbs.js +4 -4
  427. package/node/Button/Button.js +4 -4
  428. package/node/ButtonBase/ButtonBase.js +4 -4
  429. package/node/ButtonGroup/ButtonGroup.js +4 -4
  430. package/node/Card/Card.js +4 -4
  431. package/node/CardActionArea/CardActionArea.js +4 -4
  432. package/node/CardActions/CardActions.js +4 -4
  433. package/node/CardContent/CardContent.js +4 -4
  434. package/node/CardHeader/CardHeader.js +4 -4
  435. package/node/CardMedia/CardMedia.js +4 -4
  436. package/node/Checkbox/Checkbox.js +4 -4
  437. package/node/Chip/Chip.js +4 -4
  438. package/node/CircularProgress/CircularProgress.js +4 -4
  439. package/node/Collapse/Collapse.js +4 -4
  440. package/node/Container/Container.js +4 -4
  441. package/node/CssBaseline/CssBaseline.js +4 -4
  442. package/node/Dialog/Dialog.js +4 -4
  443. package/node/DialogActions/DialogActions.js +4 -4
  444. package/node/DialogContent/DialogContent.js +4 -4
  445. package/node/DialogContentText/DialogContentText.js +4 -4
  446. package/node/DialogTitle/DialogTitle.js +4 -4
  447. package/node/Divider/Divider.js +5 -4
  448. package/node/Drawer/Drawer.js +4 -4
  449. package/node/Fab/Fab.js +4 -4
  450. package/node/Fade/Fade.js +4 -4
  451. package/node/FilledInput/FilledInput.js +4 -4
  452. package/node/FormControl/FormControl.js +4 -4
  453. package/node/FormControlLabel/FormControlLabel.js +4 -4
  454. package/node/FormGroup/FormGroup.js +4 -4
  455. package/node/FormHelperText/FormHelperText.js +4 -4
  456. package/node/FormLabel/FormLabel.js +4 -4
  457. package/node/GlobalStyles/GlobalStyles.js +4 -4
  458. package/node/Grid/Grid.js +4 -4
  459. package/node/Grow/Grow.js +4 -4
  460. package/node/Hidden/Hidden.js +4 -4
  461. package/node/Icon/Icon.js +4 -4
  462. package/node/IconButton/IconButton.js +4 -4
  463. package/node/ImageList/ImageList.js +4 -4
  464. package/node/ImageListItem/ImageListItem.js +4 -4
  465. package/node/ImageListItemBar/ImageListItemBar.js +4 -4
  466. package/node/Input/Input.js +4 -4
  467. package/node/InputAdornment/InputAdornment.js +4 -4
  468. package/node/InputBase/InputBase.js +4 -4
  469. package/node/InputLabel/InputLabel.js +4 -4
  470. package/node/LinearProgress/LinearProgress.js +4 -4
  471. package/node/Link/Link.js +4 -4
  472. package/node/List/List.js +4 -4
  473. package/node/ListItem/ListItem.js +4 -4
  474. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  475. package/node/ListItemButton/ListItemButton.js +4 -4
  476. package/node/ListItemIcon/ListItemIcon.js +4 -4
  477. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  478. package/node/ListItemText/ListItemText.js +4 -4
  479. package/node/ListSubheader/ListSubheader.js +4 -4
  480. package/node/Menu/Menu.js +4 -4
  481. package/node/MenuItem/MenuItem.js +4 -4
  482. package/node/MenuList/MenuList.js +4 -4
  483. package/node/MobileStepper/MobileStepper.js +4 -4
  484. package/node/Modal/Modal.js +4 -4
  485. package/node/NativeSelect/NativeSelect.js +4 -4
  486. package/node/OutlinedInput/OutlinedInput.js +4 -4
  487. package/node/Pagination/Pagination.js +4 -4
  488. package/node/PaginationItem/PaginationItem.js +4 -4
  489. package/node/Paper/Paper.js +4 -4
  490. package/node/Popover/Popover.js +4 -4
  491. package/node/Popper/Popper.js +4 -4
  492. package/node/Radio/Radio.js +4 -4
  493. package/node/RadioGroup/RadioGroup.js +4 -4
  494. package/node/Rating/Rating.js +5 -14
  495. package/node/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  496. package/node/Select/Select.js +4 -4
  497. package/node/Skeleton/Skeleton.js +4 -4
  498. package/node/Slide/Slide.js +4 -4
  499. package/node/Slider/Slider.js +4 -4
  500. package/node/Snackbar/Snackbar.js +4 -4
  501. package/node/SnackbarContent/SnackbarContent.js +4 -4
  502. package/node/SpeedDial/SpeedDial.js +6 -14
  503. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  504. package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
  505. package/node/Stack/Stack.js +4 -4
  506. package/node/Step/Step.js +4 -4
  507. package/node/StepButton/StepButton.js +4 -4
  508. package/node/StepConnector/StepConnector.js +4 -4
  509. package/node/StepContent/StepContent.js +4 -4
  510. package/node/StepIcon/StepIcon.js +4 -4
  511. package/node/StepLabel/StepLabel.js +4 -4
  512. package/node/Stepper/Stepper.js +4 -4
  513. package/node/SvgIcon/SvgIcon.js +4 -4
  514. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  515. package/node/Switch/Switch.js +4 -4
  516. package/node/Tab/Tab.js +4 -4
  517. package/node/TabScrollButton/TabScrollButton.js +4 -4
  518. package/node/Table/Table.js +4 -4
  519. package/node/TableBody/TableBody.js +4 -4
  520. package/node/TableCell/TableCell.js +4 -4
  521. package/node/TableContainer/TableContainer.js +4 -4
  522. package/node/TableFooter/TableFooter.js +4 -4
  523. package/node/TableHead/TableHead.js +4 -4
  524. package/node/TablePagination/TablePagination.js +4 -4
  525. package/node/TableRow/TableRow.js +4 -4
  526. package/node/TableSortLabel/TableSortLabel.js +4 -4
  527. package/node/Tabs/Tabs.js +4 -4
  528. package/node/TextField/TextField.js +4 -4
  529. package/node/ToggleButton/ToggleButton.js +24 -8
  530. package/node/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  531. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +17 -0
  532. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +17 -0
  533. package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  534. package/node/Toolbar/Toolbar.js +4 -4
  535. package/node/Tooltip/Tooltip.js +4 -4
  536. package/node/Typography/Typography.js +4 -4
  537. package/node/Unstable_Grid2/Grid2.js +4 -4
  538. package/node/Zoom/Zoom.js +4 -4
  539. package/node/index.js +1 -1
  540. package/node/styles/CssVarsProvider.js +3 -0
  541. package/node/utils/types.js +5 -0
  542. package/node/utils/useSlot.js +88 -0
  543. package/node/zero-styled/index.js +13 -0
  544. package/package.json +11 -10
  545. package/styles/CssVarsProvider.d.ts +3 -3
  546. package/styles/CssVarsProvider.js +3 -0
  547. package/umd/material-ui.development.js +15848 -15745
  548. package/umd/material-ui.production.min.js +4 -207
  549. package/utils/types.d.ts +27 -0
  550. package/utils/types.js +1 -0
  551. package/utils/useSlot.d.ts +84 -0
  552. package/utils/useSlot.js +82 -0
  553. package/zero-styled/index.d.ts +2 -0
  554. package/zero-styled/index.js +2 -0
  555. package/zero-styled/package.json +6 -0
@@ -5,6 +5,31 @@ import { TransitionProps } from '../transitions/transition';
5
5
  import { AccordionClasses } from './accordionClasses';
6
6
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
7
7
  import { ExtendPaperTypeMap } from '../Paper/Paper';
8
+ import { CreateSlotsAndSlotProps, SlotProps } from '../utils/types';
9
+
10
+ export interface AccordionSlots {
11
+ /**
12
+ * The component that renders the transition.
13
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
14
+ * @default Collapse
15
+ */
16
+ transition?: React.JSXElementConstructor<
17
+ TransitionProps & { children?: React.ReactElement<any, any> }
18
+ >;
19
+ }
20
+
21
+ export interface AccordionTransitionSlotPropsOverrides {}
22
+
23
+ export type AccordionSlotsAndSlotProps = CreateSlotsAndSlotProps<
24
+ AccordionSlots,
25
+ {
26
+ transition: SlotProps<
27
+ React.ElementType<TransitionProps>,
28
+ AccordionTransitionSlotPropsOverrides,
29
+ AccordionOwnerState
30
+ >;
31
+ }
32
+ >;
8
33
 
9
34
  export type AccordionTypeMap<
10
35
  AdditionalProps = {},
@@ -54,7 +79,7 @@ export type AccordionTypeMap<
54
79
  /**
55
80
  * The component used for the transition.
56
81
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
57
- * @default Collapse
82
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7.
58
83
  */
59
84
  TransitionComponent?: React.JSXElementConstructor<
60
85
  TransitionProps & { children?: React.ReactElement<any, any> }
@@ -62,9 +87,10 @@ export type AccordionTypeMap<
62
87
  /**
63
88
  * Props applied to the transition element.
64
89
  * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
90
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7.
65
91
  */
66
92
  TransitionProps?: TransitionProps;
67
- };
93
+ } & AccordionSlotsAndSlotProps;
68
94
  defaultComponent: RootComponent;
69
95
  },
70
96
  'onChange' | 'classes'
@@ -90,4 +116,6 @@ export type AccordionProps<
90
116
  component?: React.ElementType;
91
117
  };
92
118
 
119
+ export interface AccordionOwnerState extends AccordionProps {}
120
+
93
121
  export default Accordion;
@@ -2,7 +2,7 @@
2
2
 
3
3
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
4
  import _extends from "@babel/runtime/helpers/esm/extends";
5
- const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
5
+ const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"];
6
6
  import * as React from 'react';
7
7
  import { isFragment } from 'react-is';
8
8
  import PropTypes from 'prop-types';
@@ -15,6 +15,7 @@ import Collapse from '../Collapse';
15
15
  import Paper from '../Paper';
16
16
  import AccordionContext from './AccordionContext';
17
17
  import useControlled from '../utils/useControlled';
18
+ import useSlot from '../utils/useSlot';
18
19
  import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
19
20
  import { jsx as _jsx } from "react/jsx-runtime";
20
21
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -127,8 +128,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
127
128
  expanded: expandedProp,
128
129
  onChange,
129
130
  square = false,
130
- TransitionComponent = Collapse,
131
- TransitionProps
131
+ slots = {},
132
+ slotProps = {},
133
+ TransitionComponent: TransitionComponentProp,
134
+ TransitionProps: TransitionPropsProp
132
135
  } = props,
133
136
  other = _objectWithoutPropertiesLoose(props, _excluded);
134
137
  const [expanded, setExpandedState] = useControlled({
@@ -157,6 +160,21 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
157
160
  expanded
158
161
  });
159
162
  const classes = useUtilityClasses(ownerState);
163
+ const backwardCompatibleSlots = _extends({
164
+ transition: TransitionComponentProp
165
+ }, slots);
166
+ const backwardCompatibleSlotProps = _extends({
167
+ transition: TransitionPropsProp
168
+ }, slotProps);
169
+ const [TransitionSlot, transitionProps] = useSlot('transition', {
170
+ elementType: Collapse,
171
+ externalForwardedProps: {
172
+ slots: backwardCompatibleSlots,
173
+ slotProps: backwardCompatibleSlotProps
174
+ },
175
+ ownerState
176
+ });
177
+ delete transitionProps.ownerState;
160
178
  return /*#__PURE__*/_jsxs(AccordionRoot, _extends({
161
179
  className: clsx(classes.root, className),
162
180
  ref: ref,
@@ -166,10 +184,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
166
184
  children: [/*#__PURE__*/_jsx(AccordionContext.Provider, {
167
185
  value: contextValue,
168
186
  children: summary
169
- }), /*#__PURE__*/_jsx(TransitionComponent, _extends({
187
+ }), /*#__PURE__*/_jsx(TransitionSlot, _extends({
170
188
  in: expanded,
171
189
  timeout: "auto"
172
- }, TransitionProps, {
190
+ }, transitionProps, {
173
191
  children: /*#__PURE__*/_jsx("div", {
174
192
  "aria-labelledby": summary.props.id,
175
193
  id: summary.props['aria-controls'],
@@ -181,10 +199,10 @@ const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref)
181
199
  }));
182
200
  });
183
201
  process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes */ = {
184
- // ----------------------------- Warning --------------------------------
185
- // | These PropTypes are generated from the TypeScript type definitions |
186
- // | To update them edit the d.ts file and run "yarn proptypes" |
187
- // ----------------------------------------------------------------------
202
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
203
+ // These PropTypes are generated from the TypeScript type definitions.
204
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
205
+ // └─────────────────────────────────────────────────────────────────────┘
188
206
  /**
189
207
  * The content of the component.
190
208
  */
@@ -233,6 +251,20 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
233
251
  * @param {boolean} expanded The `expanded` state of the accordion.
234
252
  */
235
253
  onChange: PropTypes.func,
254
+ /**
255
+ * The props used for each slot inside.
256
+ * @default {}
257
+ */
258
+ slotProps: PropTypes.shape({
259
+ transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
260
+ }),
261
+ /**
262
+ * The components used for each slot inside.
263
+ * @default {}
264
+ */
265
+ slots: PropTypes.shape({
266
+ transition: PropTypes.elementType
267
+ }),
236
268
  /**
237
269
  * If `true`, rounded corners are disabled.
238
270
  * @default false
@@ -245,12 +277,13 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
245
277
  /**
246
278
  * The component used for the transition.
247
279
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
248
- * @default Collapse
280
+ * @deprecated Use `slots.transition` instead. This prop will be removed in v7.
249
281
  */
250
282
  TransitionComponent: PropTypes.elementType,
251
283
  /**
252
284
  * Props applied to the transition element.
253
285
  * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
286
+ * @deprecated Use `slotProps.transition` instead. This prop will be removed in v7.
254
287
  */
255
288
  TransitionProps: PropTypes.object
256
289
  } : void 0;
@@ -63,10 +63,10 @@ const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions
63
63
  }, other));
64
64
  });
65
65
  process.env.NODE_ENV !== "production" ? AccordionActions.propTypes /* remove-proptypes */ = {
66
- // ----------------------------- Warning --------------------------------
67
- // | These PropTypes are generated from the TypeScript type definitions |
68
- // | To update them edit the d.ts file and run "yarn proptypes" |
69
- // ----------------------------------------------------------------------
66
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
67
+ // These PropTypes are generated from the TypeScript type definitions.
68
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
69
+ // └─────────────────────────────────────────────────────────────────────┘
70
70
  /**
71
71
  * The content of the component.
72
72
  */
@@ -47,10 +47,10 @@ const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails
47
47
  }, other));
48
48
  });
49
49
  process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes /* remove-proptypes */ = {
50
- // ----------------------------- Warning --------------------------------
51
- // | These PropTypes are generated from the TypeScript type definitions |
52
- // | To update them edit the d.ts file and run "yarn proptypes" |
53
- // ----------------------------------------------------------------------
50
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
51
+ // These PropTypes are generated from the TypeScript type definitions.
52
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
53
+ // └─────────────────────────────────────────────────────────────────────┘
54
54
  /**
55
55
  * The content of the component.
56
56
  */
@@ -153,10 +153,10 @@ const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary
153
153
  }));
154
154
  });
155
155
  process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes /* remove-proptypes */ = {
156
- // ----------------------------- Warning --------------------------------
157
- // | These PropTypes are generated from the TypeScript type definitions |
158
- // | To update them edit the d.ts file and run "yarn proptypes" |
159
- // ----------------------------------------------------------------------
156
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
157
+ // These PropTypes are generated from the TypeScript type definitions.
158
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
159
+ // └─────────────────────────────────────────────────────────────────────┘
160
160
  /**
161
161
  * The content of the component.
162
162
  */
@@ -9,7 +9,10 @@ export interface AccordionSummaryClasses {
9
9
  disabled: string;
10
10
  /** Styles applied to the root element unless `disableGutters={true}`. */
11
11
  gutters: string;
12
- /** Styles applied to the children wrapper element unless `disableGutters={true}`. */
12
+ /**
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.
15
+ */
13
16
  contentGutters: string;
14
17
  /** Styles applied to the children wrapper element. */
15
18
  content: string;
package/Alert/Alert.d.ts CHANGED
@@ -62,7 +62,7 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
62
62
  * The severity of the alert. This defines the color and icon used.
63
63
  * @default 'success'
64
64
  */
65
- severity?: AlertColor;
65
+ severity?: OverridableStringUnion<AlertColor, AlertPropsColorOverrides>;
66
66
  /**
67
67
  * Override the icon displayed before the children.
68
68
  * Unless provided, the icon is mapped to the value of the `severity` prop.
@@ -80,7 +80,9 @@ export interface AlertProps extends StandardProps<PaperProps, 'variant'> {
80
80
  * If you wish to change this mapping, you can provide your own.
81
81
  * Alternatively, you can use the `icon` prop to override the icon displayed.
82
82
  */
83
- iconMapping?: Partial<Record<AlertColor, React.ReactNode>>;
83
+ iconMapping?: Partial<
84
+ Record<OverridableStringUnion<AlertColor, AlertPropsColorOverrides>, React.ReactNode>
85
+ >;
84
86
  /**
85
87
  * Callback fired when the component requests to be closed.
86
88
  * When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
package/Alert/Alert.js CHANGED
@@ -198,10 +198,10 @@ const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
198
198
  }));
199
199
  });
200
200
  process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ = {
201
- // ----------------------------- Warning --------------------------------
202
- // | These PropTypes are generated from the TypeScript type definitions |
203
- // | To update them edit the d.ts file and run "yarn proptypes" |
204
- // ----------------------------------------------------------------------
201
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
202
+ // These PropTypes are generated from the TypeScript type definitions.
203
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
204
+ // └─────────────────────────────────────────────────────────────────────┘
205
205
  /**
206
206
  * The action to display. It renders after the message, at the end of the alert.
207
207
  */
@@ -289,7 +289,7 @@ process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ =
289
289
  * The severity of the alert. This defines the color and icon used.
290
290
  * @default 'success'
291
291
  */
292
- severity: PropTypes.oneOf(['error', 'info', 'success', 'warning']),
292
+ severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
293
293
  /**
294
294
  * The extra props for the slot components.
295
295
  * You can override the existing props or add new ones.
@@ -53,10 +53,10 @@ const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, re
53
53
  }, other));
54
54
  });
55
55
  process.env.NODE_ENV !== "production" ? AlertTitle.propTypes /* remove-proptypes */ = {
56
- // ----------------------------- Warning --------------------------------
57
- // | These PropTypes are generated from the TypeScript type definitions |
58
- // | To update them edit the d.ts file and run "yarn proptypes" |
59
- // ----------------------------------------------------------------------
56
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
57
+ // These PropTypes are generated from the TypeScript type definitions.
58
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
59
+ // └─────────────────────────────────────────────────────────────────────┘
60
60
  /**
61
61
  * The content of the component.
62
62
  */
package/AppBar/AppBar.js CHANGED
@@ -135,10 +135,10 @@ const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
135
135
  }, other));
136
136
  });
137
137
  process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */ = {
138
- // ----------------------------- Warning --------------------------------
139
- // | These PropTypes are generated from the TypeScript type definitions |
140
- // | To update them edit the d.ts file and run "yarn proptypes" |
141
- // ----------------------------------------------------------------------
138
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
139
+ // These PropTypes are generated from the TypeScript type definitions.
140
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
141
+ // └─────────────────────────────────────────────────────────────────────┘
142
142
  /**
143
143
  * The content of the component.
144
144
  */
@@ -655,10 +655,10 @@ const Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps
655
655
  });
656
656
  });
657
657
  process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
658
- // ----------------------------- Warning --------------------------------
659
- // | These PropTypes are generated from the TypeScript type definitions |
660
- // | To update them edit the d.ts file and run "yarn proptypes" |
661
- // ----------------------------------------------------------------------
658
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
659
+ // These PropTypes are generated from the TypeScript type definitions.
660
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
661
+ // └─────────────────────────────────────────────────────────────────────┘
662
662
  /**
663
663
  * If `true`, the portion of the selected suggestion that the user hasn't typed,
664
664
  * known as the completion string, appears inline after the input cursor in the textbox.
package/Avatar/Avatar.js CHANGED
@@ -184,10 +184,10 @@ const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
184
184
  }));
185
185
  });
186
186
  process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
187
- // ----------------------------- Warning --------------------------------
188
- // | These PropTypes are generated from the TypeScript type definitions |
189
- // | To update them edit the d.ts file and run "yarn proptypes" |
190
- // ----------------------------------------------------------------------
187
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
188
+ // These PropTypes are generated from the TypeScript type definitions.
189
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
190
+ // └─────────────────────────────────────────────────────────────────────┘
191
191
  /**
192
192
  * Used in combination with `src` or `srcSet` to
193
193
  * provide an alt attribute for the rendered `img` element.
@@ -137,10 +137,10 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
137
137
  }));
138
138
  });
139
139
  process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptypes */ = {
140
- // ----------------------------- Warning --------------------------------
141
- // | These PropTypes are generated from the TypeScript type definitions |
142
- // | To update them edit the d.ts file and run "yarn proptypes" |
143
- // ----------------------------------------------------------------------
140
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
141
+ // These PropTypes are generated from the TypeScript type definitions.
142
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
143
+ // └─────────────────────────────────────────────────────────────────────┘
144
144
  /**
145
145
  * The avatars to stack.
146
146
  */
@@ -90,10 +90,10 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
90
90
  }));
91
91
  });
92
92
  process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes */ = {
93
- // ----------------------------- Warning --------------------------------
94
- // | These PropTypes are generated from the TypeScript type definitions |
95
- // | To update them edit the d.ts file and run "yarn proptypes" |
96
- // ----------------------------------------------------------------------
93
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
94
+ // These PropTypes are generated from the TypeScript type definitions.
95
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
96
+ // └─────────────────────────────────────────────────────────────────────┘
97
97
  /**
98
98
  * The content of the component.
99
99
  */
package/Badge/Badge.js CHANGED
@@ -10,7 +10,7 @@ import { usePreviousProps } from '@mui/utils';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
11
11
  import { useBadge } from '@mui/base/useBadge';
12
12
  import { useSlotProps } from '@mui/base';
13
- import styled from '../styles/styled';
13
+ import { styled } from '../zero-styled';
14
14
  import useThemeProps from '../styles/useThemeProps';
15
15
  import capitalize from '../utils/capitalize';
16
16
  import badgeClasses, { getBadgeUtilityClass } from './badgeClasses';
@@ -313,10 +313,10 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
313
313
  }));
314
314
  });
315
315
  process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ = {
316
- // ----------------------------- Warning --------------------------------
317
- // | These PropTypes are generated from the TypeScript type definitions |
318
- // | To update them edit the d.ts file and run "yarn proptypes" |
319
- // ----------------------------------------------------------------------
316
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
317
+ // These PropTypes are generated from the TypeScript type definitions.
318
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
319
+ // └─────────────────────────────────────────────────────────────────────┘
320
320
  /**
321
321
  * The anchor of the badge.
322
322
  * @default {
@@ -78,10 +78,10 @@ const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation
78
78
  }));
79
79
  });
80
80
  process.env.NODE_ENV !== "production" ? BottomNavigation.propTypes /* remove-proptypes */ = {
81
- // ----------------------------- Warning --------------------------------
82
- // | These PropTypes are generated from the TypeScript type definitions |
83
- // | To update them edit the d.ts file and run "yarn proptypes" |
84
- // ----------------------------------------------------------------------
81
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
82
+ // These PropTypes are generated from the TypeScript type definitions.
83
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
84
+ // └─────────────────────────────────────────────────────────────────────┘
85
85
  /**
86
86
  * The content of the component.
87
87
  */
@@ -120,10 +120,10 @@ const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavi
120
120
  }));
121
121
  });
122
122
  process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes /* remove-proptypes */ = {
123
- // ----------------------------- Warning --------------------------------
124
- // | These PropTypes are generated from the TypeScript type definitions |
125
- // | To update them edit the d.ts file and run "yarn proptypes" |
126
- // ----------------------------------------------------------------------
123
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
124
+ // These PropTypes are generated from the TypeScript type definitions.
125
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
126
+ // └─────────────────────────────────────────────────────────────────────┘
127
127
  /**
128
128
  * This prop isn't supported.
129
129
  * Use the `component` prop if you need to change the children structure.
package/Box/Box.js CHANGED
@@ -14,10 +14,10 @@ const Box = createBox({
14
14
  generateClassName: ClassNameGenerator.generate
15
15
  });
16
16
  process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
17
- // ----------------------------- Warning --------------------------------
18
- // | These PropTypes are generated from the TypeScript type definitions |
19
- // | To update them edit the d.ts file and run "yarn proptypes" |
20
- // ----------------------------------------------------------------------
17
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
18
+ // These PropTypes are generated from the TypeScript type definitions.
19
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
20
+ // └─────────────────────────────────────────────────────────────────────┘
21
21
  /**
22
22
  * @ignore
23
23
  */
@@ -168,10 +168,10 @@ const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps,
168
168
  }));
169
169
  });
170
170
  process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes /* remove-proptypes */ = {
171
- // ----------------------------- Warning --------------------------------
172
- // | These PropTypes are generated from the TypeScript type definitions |
173
- // | To update them edit the d.ts file and run "yarn proptypes" |
174
- // ----------------------------------------------------------------------
171
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
172
+ // These PropTypes are generated from the TypeScript type definitions.
173
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
174
+ // └─────────────────────────────────────────────────────────────────────┘
175
175
  /**
176
176
  * The content of the component.
177
177
  */
package/Button/Button.js CHANGED
@@ -283,10 +283,10 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
283
283
  }));
284
284
  });
285
285
  process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
286
- // ----------------------------- Warning --------------------------------
287
- // | These PropTypes are generated from the TypeScript type definitions |
288
- // | To update them edit the d.ts file and run "yarn proptypes" |
289
- // ----------------------------------------------------------------------
286
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
287
+ // These PropTypes are generated from the TypeScript type definitions.
288
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
289
+ // └─────────────────────────────────────────────────────────────────────┘
290
290
  /**
291
291
  * The content of the component.
292
292
  */
@@ -316,10 +316,10 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
316
316
  }));
317
317
  });
318
318
  process.env.NODE_ENV !== "production" ? ButtonBase.propTypes /* remove-proptypes */ = {
319
- // ----------------------------- Warning --------------------------------
320
- // | These PropTypes are generated from the TypeScript type definitions |
321
- // | To update them edit the d.ts file and run "yarn proptypes" |
322
- // ----------------------------------------------------------------------
319
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
320
+ // These PropTypes are generated from the TypeScript type definitions.
321
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
322
+ // └─────────────────────────────────────────────────────────────────────┘
323
323
  /**
324
324
  * A ref for imperative actions.
325
325
  * It currently only supports `focusVisible()` action.
@@ -216,10 +216,10 @@ const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps,
216
216
  }));
217
217
  });
218
218
  process.env.NODE_ENV !== "production" ? ButtonGroup.propTypes /* remove-proptypes */ = {
219
- // ----------------------------- Warning --------------------------------
220
- // | These PropTypes are generated from the TypeScript type definitions |
221
- // | To update them edit the d.ts file and run "yarn proptypes" |
222
- // ----------------------------------------------------------------------
219
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
220
+ // These PropTypes are generated from the TypeScript type definitions.
221
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
222
+ // └─────────────────────────────────────────────────────────────────────┘
223
223
  /**
224
224
  * The content of the component.
225
225
  */
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { ButtonGroupProps } from './ButtonGroup';
3
- interface IButtonGroupContext {
3
+ interface ButtonGroupContextType {
4
4
  className?: string;
5
5
  color?: ButtonGroupProps['color'];
6
6
  disabled?: boolean;
@@ -14,5 +14,5 @@ interface IButtonGroupContext {
14
14
  /**
15
15
  * @ignore - internal component.
16
16
  */
17
- declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
17
+ declare const ButtonGroupContext: React.Context<ButtonGroupContextType>;
18
18
  export default ButtonGroupContext;