@mui/material 5.15.3 → 5.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. package/Accordion/Accordion.js +4 -4
  2. package/AccordionActions/AccordionActions.js +4 -4
  3. package/AccordionDetails/AccordionDetails.js +4 -4
  4. package/AccordionSummary/AccordionSummary.js +4 -4
  5. package/Alert/Alert.js +4 -4
  6. package/AlertTitle/AlertTitle.js +4 -4
  7. package/AppBar/AppBar.js +4 -4
  8. package/Autocomplete/Autocomplete.js +4 -4
  9. package/Avatar/Avatar.js +4 -4
  10. package/AvatarGroup/AvatarGroup.js +4 -4
  11. package/Backdrop/Backdrop.js +4 -4
  12. package/Badge/Badge.js +4 -4
  13. package/BottomNavigation/BottomNavigation.js +4 -4
  14. package/BottomNavigationAction/BottomNavigationAction.js +4 -4
  15. package/Box/Box.js +4 -4
  16. package/Breadcrumbs/Breadcrumbs.js +4 -4
  17. package/Button/Button.js +4 -4
  18. package/ButtonBase/ButtonBase.js +4 -4
  19. package/ButtonGroup/ButtonGroup.js +4 -4
  20. package/ButtonGroup/ButtonGroupContext.d.ts +2 -2
  21. package/CHANGELOG.md +86 -1
  22. package/Card/Card.js +4 -4
  23. package/CardActionArea/CardActionArea.js +4 -4
  24. package/CardActions/CardActions.js +4 -4
  25. package/CardContent/CardContent.js +4 -4
  26. package/CardHeader/CardHeader.js +4 -4
  27. package/CardMedia/CardMedia.js +4 -4
  28. package/Checkbox/Checkbox.js +4 -4
  29. package/Chip/Chip.js +4 -4
  30. package/CircularProgress/CircularProgress.js +4 -4
  31. package/ClickAwayListener/index.d.ts +2 -1
  32. package/Collapse/Collapse.js +4 -4
  33. package/Container/Container.js +4 -4
  34. package/CssBaseline/CssBaseline.js +4 -4
  35. package/Dialog/Dialog.js +4 -4
  36. package/DialogActions/DialogActions.js +4 -4
  37. package/DialogContent/DialogContent.js +4 -4
  38. package/DialogContentText/DialogContentText.js +4 -4
  39. package/DialogTitle/DialogTitle.js +4 -4
  40. package/Divider/Divider.js +4 -4
  41. package/Drawer/Drawer.js +4 -4
  42. package/Fab/Fab.js +4 -4
  43. package/Fade/Fade.js +4 -4
  44. package/FilledInput/FilledInput.js +4 -4
  45. package/FormControl/FormControl.d.ts +1 -1
  46. package/FormControl/FormControl.js +4 -4
  47. package/FormControlLabel/FormControlLabel.js +4 -4
  48. package/FormGroup/FormGroup.js +4 -4
  49. package/FormHelperText/FormHelperText.js +4 -4
  50. package/FormLabel/FormLabel.d.ts +1 -1
  51. package/FormLabel/FormLabel.js +4 -4
  52. package/GlobalStyles/GlobalStyles.js +4 -4
  53. package/Grid/Grid.js +4 -4
  54. package/Grow/Grow.js +4 -4
  55. package/Hidden/Hidden.js +4 -4
  56. package/Icon/Icon.js +4 -4
  57. package/IconButton/IconButton.js +4 -4
  58. package/ImageList/ImageList.js +4 -4
  59. package/ImageListItem/ImageListItem.js +4 -4
  60. package/ImageListItemBar/ImageListItemBar.js +4 -4
  61. package/Input/Input.js +4 -4
  62. package/InputAdornment/InputAdornment.js +4 -4
  63. package/InputBase/InputBase.js +4 -4
  64. package/InputLabel/InputLabel.d.ts +1 -5
  65. package/InputLabel/InputLabel.js +4 -4
  66. package/LinearProgress/LinearProgress.js +4 -4
  67. package/Link/Link.js +4 -4
  68. package/List/List.js +4 -4
  69. package/ListItem/ListItem.js +4 -4
  70. package/ListItemAvatar/ListItemAvatar.js +4 -4
  71. package/ListItemButton/ListItemButton.js +4 -4
  72. package/ListItemIcon/ListItemIcon.js +4 -4
  73. package/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  74. package/ListItemText/ListItemText.js +4 -4
  75. package/ListSubheader/ListSubheader.js +4 -4
  76. package/Menu/Menu.js +4 -4
  77. package/MenuItem/MenuItem.js +4 -4
  78. package/MenuList/MenuList.js +4 -4
  79. package/MobileStepper/MobileStepper.js +4 -4
  80. package/Modal/Modal.js +4 -4
  81. package/NativeSelect/NativeSelect.js +4 -4
  82. package/OutlinedInput/OutlinedInput.js +4 -4
  83. package/Pagination/Pagination.js +4 -4
  84. package/PaginationItem/PaginationItem.js +4 -4
  85. package/Paper/Paper.js +4 -4
  86. package/Popover/Popover.js +4 -4
  87. package/Popper/Popper.js +4 -4
  88. package/Radio/Radio.js +4 -4
  89. package/RadioGroup/RadioGroup.js +4 -4
  90. package/Rating/Rating.js +4 -4
  91. package/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  92. package/Select/Select.js +4 -4
  93. package/Skeleton/Skeleton.js +4 -4
  94. package/Slide/Slide.js +4 -4
  95. package/Slider/Slider.js +4 -4
  96. package/Snackbar/Snackbar.js +4 -4
  97. package/SnackbarContent/SnackbarContent.js +4 -4
  98. package/SpeedDial/SpeedDial.js +4 -4
  99. package/SpeedDialAction/SpeedDialAction.js +4 -4
  100. package/SpeedDialIcon/SpeedDialIcon.js +4 -4
  101. package/Stack/Stack.js +4 -4
  102. package/Step/Step.js +4 -4
  103. package/StepButton/StepButton.js +4 -4
  104. package/StepConnector/StepConnector.js +4 -4
  105. package/StepContent/StepContent.js +4 -4
  106. package/StepIcon/StepIcon.js +4 -4
  107. package/StepLabel/StepLabel.js +4 -4
  108. package/Stepper/Stepper.js +4 -4
  109. package/SvgIcon/SvgIcon.js +4 -4
  110. package/SwipeableDrawer/SwipeableDrawer.js +4 -4
  111. package/Switch/Switch.js +4 -4
  112. package/Tab/Tab.js +4 -4
  113. package/TabScrollButton/TabScrollButton.js +4 -4
  114. package/Table/Table.js +4 -4
  115. package/TableBody/TableBody.js +4 -4
  116. package/TableCell/TableCell.js +4 -4
  117. package/TableContainer/TableContainer.js +4 -4
  118. package/TableFooter/TableFooter.js +4 -4
  119. package/TableHead/TableHead.js +4 -4
  120. package/TablePagination/TablePagination.js +4 -4
  121. package/TableRow/TableRow.js +4 -4
  122. package/TableSortLabel/TableSortLabel.js +4 -4
  123. package/Tabs/Tabs.js +4 -4
  124. package/TextField/TextField.d.ts +1 -1
  125. package/TextField/TextField.js +4 -4
  126. package/ToggleButton/ToggleButton.js +24 -8
  127. package/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  128. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.d.ts +6 -0
  129. package/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  130. package/ToggleButtonGroup/ToggleButtonGroupContext.d.ts +16 -0
  131. package/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  132. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +6 -0
  133. package/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  134. package/Toolbar/Toolbar.js +4 -4
  135. package/Tooltip/Tooltip.js +4 -4
  136. package/Typography/Typography.js +4 -4
  137. package/Unstable_Grid2/Grid2.js +4 -4
  138. package/Zoom/Zoom.js +4 -4
  139. package/index.js +1 -1
  140. package/legacy/Accordion/Accordion.js +4 -4
  141. package/legacy/AccordionActions/AccordionActions.js +4 -4
  142. package/legacy/AccordionDetails/AccordionDetails.js +4 -4
  143. package/legacy/AccordionSummary/AccordionSummary.js +4 -4
  144. package/legacy/Alert/Alert.js +4 -4
  145. package/legacy/AlertTitle/AlertTitle.js +4 -4
  146. package/legacy/AppBar/AppBar.js +4 -4
  147. package/legacy/Autocomplete/Autocomplete.js +4 -4
  148. package/legacy/Avatar/Avatar.js +4 -4
  149. package/legacy/AvatarGroup/AvatarGroup.js +4 -4
  150. package/legacy/Backdrop/Backdrop.js +4 -4
  151. package/legacy/Badge/Badge.js +4 -4
  152. package/legacy/BottomNavigation/BottomNavigation.js +4 -4
  153. package/legacy/BottomNavigationAction/BottomNavigationAction.js +4 -4
  154. package/legacy/Box/Box.js +4 -4
  155. package/legacy/Breadcrumbs/Breadcrumbs.js +4 -4
  156. package/legacy/Button/Button.js +4 -4
  157. package/legacy/ButtonBase/ButtonBase.js +4 -4
  158. package/legacy/ButtonGroup/ButtonGroup.js +4 -4
  159. package/legacy/Card/Card.js +4 -4
  160. package/legacy/CardActionArea/CardActionArea.js +4 -4
  161. package/legacy/CardActions/CardActions.js +4 -4
  162. package/legacy/CardContent/CardContent.js +4 -4
  163. package/legacy/CardHeader/CardHeader.js +4 -4
  164. package/legacy/CardMedia/CardMedia.js +4 -4
  165. package/legacy/Checkbox/Checkbox.js +4 -4
  166. package/legacy/Chip/Chip.js +4 -4
  167. package/legacy/CircularProgress/CircularProgress.js +4 -4
  168. package/legacy/Collapse/Collapse.js +4 -4
  169. package/legacy/Container/Container.js +4 -4
  170. package/legacy/CssBaseline/CssBaseline.js +4 -4
  171. package/legacy/Dialog/Dialog.js +4 -4
  172. package/legacy/DialogActions/DialogActions.js +4 -4
  173. package/legacy/DialogContent/DialogContent.js +4 -4
  174. package/legacy/DialogContentText/DialogContentText.js +4 -4
  175. package/legacy/DialogTitle/DialogTitle.js +4 -4
  176. package/legacy/Divider/Divider.js +4 -4
  177. package/legacy/Drawer/Drawer.js +4 -4
  178. package/legacy/Fab/Fab.js +4 -4
  179. package/legacy/Fade/Fade.js +4 -4
  180. package/legacy/FilledInput/FilledInput.js +4 -4
  181. package/legacy/FormControl/FormControl.js +4 -4
  182. package/legacy/FormControlLabel/FormControlLabel.js +4 -4
  183. package/legacy/FormGroup/FormGroup.js +4 -4
  184. package/legacy/FormHelperText/FormHelperText.js +4 -4
  185. package/legacy/FormLabel/FormLabel.js +4 -4
  186. package/legacy/GlobalStyles/GlobalStyles.js +4 -4
  187. package/legacy/Grid/Grid.js +4 -4
  188. package/legacy/Grow/Grow.js +4 -4
  189. package/legacy/Hidden/Hidden.js +4 -4
  190. package/legacy/Icon/Icon.js +4 -4
  191. package/legacy/IconButton/IconButton.js +4 -4
  192. package/legacy/ImageList/ImageList.js +4 -4
  193. package/legacy/ImageListItem/ImageListItem.js +4 -4
  194. package/legacy/ImageListItemBar/ImageListItemBar.js +4 -4
  195. package/legacy/Input/Input.js +4 -4
  196. package/legacy/InputAdornment/InputAdornment.js +4 -4
  197. package/legacy/InputBase/InputBase.js +4 -4
  198. package/legacy/InputLabel/InputLabel.js +4 -4
  199. package/legacy/LinearProgress/LinearProgress.js +4 -4
  200. package/legacy/Link/Link.js +4 -4
  201. package/legacy/List/List.js +4 -4
  202. package/legacy/ListItem/ListItem.js +4 -4
  203. package/legacy/ListItemAvatar/ListItemAvatar.js +4 -4
  204. package/legacy/ListItemButton/ListItemButton.js +4 -4
  205. package/legacy/ListItemIcon/ListItemIcon.js +4 -4
  206. package/legacy/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  207. package/legacy/ListItemText/ListItemText.js +4 -4
  208. package/legacy/ListSubheader/ListSubheader.js +4 -4
  209. package/legacy/Menu/Menu.js +4 -4
  210. package/legacy/MenuItem/MenuItem.js +4 -4
  211. package/legacy/MenuList/MenuList.js +4 -4
  212. package/legacy/MobileStepper/MobileStepper.js +4 -4
  213. package/legacy/Modal/Modal.js +4 -4
  214. package/legacy/NativeSelect/NativeSelect.js +4 -4
  215. package/legacy/OutlinedInput/OutlinedInput.js +4 -4
  216. package/legacy/Pagination/Pagination.js +4 -4
  217. package/legacy/PaginationItem/PaginationItem.js +4 -4
  218. package/legacy/Paper/Paper.js +4 -4
  219. package/legacy/Popover/Popover.js +4 -4
  220. package/legacy/Popper/Popper.js +4 -4
  221. package/legacy/Radio/Radio.js +4 -4
  222. package/legacy/RadioGroup/RadioGroup.js +4 -4
  223. package/legacy/Rating/Rating.js +4 -4
  224. package/legacy/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  225. package/legacy/Select/Select.js +4 -4
  226. package/legacy/Skeleton/Skeleton.js +4 -4
  227. package/legacy/Slide/Slide.js +4 -4
  228. package/legacy/Slider/Slider.js +4 -4
  229. package/legacy/Snackbar/Snackbar.js +4 -4
  230. package/legacy/SnackbarContent/SnackbarContent.js +4 -4
  231. package/legacy/SpeedDial/SpeedDial.js +4 -4
  232. package/legacy/SpeedDialAction/SpeedDialAction.js +4 -4
  233. package/legacy/SpeedDialIcon/SpeedDialIcon.js +4 -4
  234. package/legacy/Stack/Stack.js +4 -4
  235. package/legacy/Step/Step.js +4 -4
  236. package/legacy/StepButton/StepButton.js +4 -4
  237. package/legacy/StepConnector/StepConnector.js +4 -4
  238. package/legacy/StepContent/StepContent.js +4 -4
  239. package/legacy/StepIcon/StepIcon.js +4 -4
  240. package/legacy/StepLabel/StepLabel.js +4 -4
  241. package/legacy/Stepper/Stepper.js +4 -4
  242. package/legacy/SvgIcon/SvgIcon.js +4 -4
  243. package/legacy/SwipeableDrawer/SwipeableDrawer.js +4 -4
  244. package/legacy/Switch/Switch.js +4 -4
  245. package/legacy/Tab/Tab.js +4 -4
  246. package/legacy/TabScrollButton/TabScrollButton.js +4 -4
  247. package/legacy/Table/Table.js +4 -4
  248. package/legacy/TableBody/TableBody.js +4 -4
  249. package/legacy/TableCell/TableCell.js +4 -4
  250. package/legacy/TableContainer/TableContainer.js +4 -4
  251. package/legacy/TableFooter/TableFooter.js +4 -4
  252. package/legacy/TableHead/TableHead.js +4 -4
  253. package/legacy/TablePagination/TablePagination.js +4 -4
  254. package/legacy/TableRow/TableRow.js +4 -4
  255. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  256. package/legacy/Tabs/Tabs.js +4 -4
  257. package/legacy/TextField/TextField.js +4 -4
  258. package/legacy/ToggleButton/ToggleButton.js +19 -6
  259. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +81 -55
  260. package/legacy/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  261. package/legacy/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  262. package/legacy/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  263. package/legacy/Toolbar/Toolbar.js +4 -4
  264. package/legacy/Tooltip/Tooltip.js +4 -4
  265. package/legacy/Typography/Typography.js +4 -4
  266. package/legacy/Unstable_Grid2/Grid2.js +4 -4
  267. package/legacy/Zoom/Zoom.js +4 -4
  268. package/legacy/index.js +1 -1
  269. package/legacy/styles/CssVarsProvider.js +3 -0
  270. package/modern/Accordion/Accordion.js +4 -4
  271. package/modern/AccordionActions/AccordionActions.js +4 -4
  272. package/modern/AccordionDetails/AccordionDetails.js +4 -4
  273. package/modern/AccordionSummary/AccordionSummary.js +4 -4
  274. package/modern/Alert/Alert.js +4 -4
  275. package/modern/AlertTitle/AlertTitle.js +4 -4
  276. package/modern/AppBar/AppBar.js +4 -4
  277. package/modern/Autocomplete/Autocomplete.js +4 -4
  278. package/modern/Avatar/Avatar.js +4 -4
  279. package/modern/AvatarGroup/AvatarGroup.js +4 -4
  280. package/modern/Backdrop/Backdrop.js +4 -4
  281. package/modern/Badge/Badge.js +4 -4
  282. package/modern/BottomNavigation/BottomNavigation.js +4 -4
  283. package/modern/BottomNavigationAction/BottomNavigationAction.js +4 -4
  284. package/modern/Box/Box.js +4 -4
  285. package/modern/Breadcrumbs/Breadcrumbs.js +4 -4
  286. package/modern/Button/Button.js +4 -4
  287. package/modern/ButtonBase/ButtonBase.js +4 -4
  288. package/modern/ButtonGroup/ButtonGroup.js +4 -4
  289. package/modern/Card/Card.js +4 -4
  290. package/modern/CardActionArea/CardActionArea.js +4 -4
  291. package/modern/CardActions/CardActions.js +4 -4
  292. package/modern/CardContent/CardContent.js +4 -4
  293. package/modern/CardHeader/CardHeader.js +4 -4
  294. package/modern/CardMedia/CardMedia.js +4 -4
  295. package/modern/Checkbox/Checkbox.js +4 -4
  296. package/modern/Chip/Chip.js +4 -4
  297. package/modern/CircularProgress/CircularProgress.js +4 -4
  298. package/modern/Collapse/Collapse.js +4 -4
  299. package/modern/Container/Container.js +4 -4
  300. package/modern/CssBaseline/CssBaseline.js +4 -4
  301. package/modern/Dialog/Dialog.js +4 -4
  302. package/modern/DialogActions/DialogActions.js +4 -4
  303. package/modern/DialogContent/DialogContent.js +4 -4
  304. package/modern/DialogContentText/DialogContentText.js +4 -4
  305. package/modern/DialogTitle/DialogTitle.js +4 -4
  306. package/modern/Divider/Divider.js +4 -4
  307. package/modern/Drawer/Drawer.js +4 -4
  308. package/modern/Fab/Fab.js +4 -4
  309. package/modern/Fade/Fade.js +4 -4
  310. package/modern/FilledInput/FilledInput.js +4 -4
  311. package/modern/FormControl/FormControl.js +4 -4
  312. package/modern/FormControlLabel/FormControlLabel.js +4 -4
  313. package/modern/FormGroup/FormGroup.js +4 -4
  314. package/modern/FormHelperText/FormHelperText.js +4 -4
  315. package/modern/FormLabel/FormLabel.js +4 -4
  316. package/modern/GlobalStyles/GlobalStyles.js +4 -4
  317. package/modern/Grid/Grid.js +4 -4
  318. package/modern/Grow/Grow.js +4 -4
  319. package/modern/Hidden/Hidden.js +4 -4
  320. package/modern/Icon/Icon.js +4 -4
  321. package/modern/IconButton/IconButton.js +4 -4
  322. package/modern/ImageList/ImageList.js +4 -4
  323. package/modern/ImageListItem/ImageListItem.js +4 -4
  324. package/modern/ImageListItemBar/ImageListItemBar.js +4 -4
  325. package/modern/Input/Input.js +4 -4
  326. package/modern/InputAdornment/InputAdornment.js +4 -4
  327. package/modern/InputBase/InputBase.js +4 -4
  328. package/modern/InputLabel/InputLabel.js +4 -4
  329. package/modern/LinearProgress/LinearProgress.js +4 -4
  330. package/modern/Link/Link.js +4 -4
  331. package/modern/List/List.js +4 -4
  332. package/modern/ListItem/ListItem.js +4 -4
  333. package/modern/ListItemAvatar/ListItemAvatar.js +4 -4
  334. package/modern/ListItemButton/ListItemButton.js +4 -4
  335. package/modern/ListItemIcon/ListItemIcon.js +4 -4
  336. package/modern/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  337. package/modern/ListItemText/ListItemText.js +4 -4
  338. package/modern/ListSubheader/ListSubheader.js +4 -4
  339. package/modern/Menu/Menu.js +4 -4
  340. package/modern/MenuItem/MenuItem.js +4 -4
  341. package/modern/MenuList/MenuList.js +4 -4
  342. package/modern/MobileStepper/MobileStepper.js +4 -4
  343. package/modern/Modal/Modal.js +4 -4
  344. package/modern/NativeSelect/NativeSelect.js +4 -4
  345. package/modern/OutlinedInput/OutlinedInput.js +4 -4
  346. package/modern/Pagination/Pagination.js +4 -4
  347. package/modern/PaginationItem/PaginationItem.js +4 -4
  348. package/modern/Paper/Paper.js +4 -4
  349. package/modern/Popover/Popover.js +4 -4
  350. package/modern/Popper/Popper.js +4 -4
  351. package/modern/Radio/Radio.js +4 -4
  352. package/modern/RadioGroup/RadioGroup.js +4 -4
  353. package/modern/Rating/Rating.js +4 -4
  354. package/modern/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  355. package/modern/Select/Select.js +4 -4
  356. package/modern/Skeleton/Skeleton.js +4 -4
  357. package/modern/Slide/Slide.js +4 -4
  358. package/modern/Slider/Slider.js +4 -4
  359. package/modern/Snackbar/Snackbar.js +4 -4
  360. package/modern/SnackbarContent/SnackbarContent.js +4 -4
  361. package/modern/SpeedDial/SpeedDial.js +4 -4
  362. package/modern/SpeedDialAction/SpeedDialAction.js +4 -4
  363. package/modern/SpeedDialIcon/SpeedDialIcon.js +4 -4
  364. package/modern/Stack/Stack.js +4 -4
  365. package/modern/Step/Step.js +4 -4
  366. package/modern/StepButton/StepButton.js +4 -4
  367. package/modern/StepConnector/StepConnector.js +4 -4
  368. package/modern/StepContent/StepContent.js +4 -4
  369. package/modern/StepIcon/StepIcon.js +4 -4
  370. package/modern/StepLabel/StepLabel.js +4 -4
  371. package/modern/Stepper/Stepper.js +4 -4
  372. package/modern/SvgIcon/SvgIcon.js +4 -4
  373. package/modern/SwipeableDrawer/SwipeableDrawer.js +4 -4
  374. package/modern/Switch/Switch.js +4 -4
  375. package/modern/Tab/Tab.js +4 -4
  376. package/modern/TabScrollButton/TabScrollButton.js +4 -4
  377. package/modern/Table/Table.js +4 -4
  378. package/modern/TableBody/TableBody.js +4 -4
  379. package/modern/TableCell/TableCell.js +4 -4
  380. package/modern/TableContainer/TableContainer.js +4 -4
  381. package/modern/TableFooter/TableFooter.js +4 -4
  382. package/modern/TableHead/TableHead.js +4 -4
  383. package/modern/TablePagination/TablePagination.js +4 -4
  384. package/modern/TableRow/TableRow.js +4 -4
  385. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  386. package/modern/Tabs/Tabs.js +4 -4
  387. package/modern/TextField/TextField.js +4 -4
  388. package/modern/ToggleButton/ToggleButton.js +24 -8
  389. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  390. package/modern/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +9 -0
  391. package/modern/ToggleButtonGroup/ToggleButtonGroupContext.js +9 -0
  392. package/modern/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  393. package/modern/Toolbar/Toolbar.js +4 -4
  394. package/modern/Tooltip/Tooltip.js +4 -4
  395. package/modern/Typography/Typography.js +4 -4
  396. package/modern/Unstable_Grid2/Grid2.js +4 -4
  397. package/modern/Zoom/Zoom.js +4 -4
  398. package/modern/index.js +1 -1
  399. package/modern/styles/CssVarsProvider.js +3 -0
  400. package/node/Accordion/Accordion.js +4 -4
  401. package/node/AccordionActions/AccordionActions.js +4 -4
  402. package/node/AccordionDetails/AccordionDetails.js +4 -4
  403. package/node/AccordionSummary/AccordionSummary.js +4 -4
  404. package/node/Alert/Alert.js +4 -4
  405. package/node/AlertTitle/AlertTitle.js +4 -4
  406. package/node/AppBar/AppBar.js +4 -4
  407. package/node/Autocomplete/Autocomplete.js +4 -4
  408. package/node/Avatar/Avatar.js +4 -4
  409. package/node/AvatarGroup/AvatarGroup.js +4 -4
  410. package/node/Backdrop/Backdrop.js +4 -4
  411. package/node/Badge/Badge.js +4 -4
  412. package/node/BottomNavigation/BottomNavigation.js +4 -4
  413. package/node/BottomNavigationAction/BottomNavigationAction.js +4 -4
  414. package/node/Box/Box.js +4 -4
  415. package/node/Breadcrumbs/Breadcrumbs.js +4 -4
  416. package/node/Button/Button.js +4 -4
  417. package/node/ButtonBase/ButtonBase.js +4 -4
  418. package/node/ButtonGroup/ButtonGroup.js +4 -4
  419. package/node/Card/Card.js +4 -4
  420. package/node/CardActionArea/CardActionArea.js +4 -4
  421. package/node/CardActions/CardActions.js +4 -4
  422. package/node/CardContent/CardContent.js +4 -4
  423. package/node/CardHeader/CardHeader.js +4 -4
  424. package/node/CardMedia/CardMedia.js +4 -4
  425. package/node/Checkbox/Checkbox.js +4 -4
  426. package/node/Chip/Chip.js +4 -4
  427. package/node/CircularProgress/CircularProgress.js +4 -4
  428. package/node/Collapse/Collapse.js +4 -4
  429. package/node/Container/Container.js +4 -4
  430. package/node/CssBaseline/CssBaseline.js +4 -4
  431. package/node/Dialog/Dialog.js +4 -4
  432. package/node/DialogActions/DialogActions.js +4 -4
  433. package/node/DialogContent/DialogContent.js +4 -4
  434. package/node/DialogContentText/DialogContentText.js +4 -4
  435. package/node/DialogTitle/DialogTitle.js +4 -4
  436. package/node/Divider/Divider.js +4 -4
  437. package/node/Drawer/Drawer.js +4 -4
  438. package/node/Fab/Fab.js +4 -4
  439. package/node/Fade/Fade.js +4 -4
  440. package/node/FilledInput/FilledInput.js +4 -4
  441. package/node/FormControl/FormControl.js +4 -4
  442. package/node/FormControlLabel/FormControlLabel.js +4 -4
  443. package/node/FormGroup/FormGroup.js +4 -4
  444. package/node/FormHelperText/FormHelperText.js +4 -4
  445. package/node/FormLabel/FormLabel.js +4 -4
  446. package/node/GlobalStyles/GlobalStyles.js +4 -4
  447. package/node/Grid/Grid.js +4 -4
  448. package/node/Grow/Grow.js +4 -4
  449. package/node/Hidden/Hidden.js +4 -4
  450. package/node/Icon/Icon.js +4 -4
  451. package/node/IconButton/IconButton.js +4 -4
  452. package/node/ImageList/ImageList.js +4 -4
  453. package/node/ImageListItem/ImageListItem.js +4 -4
  454. package/node/ImageListItemBar/ImageListItemBar.js +4 -4
  455. package/node/Input/Input.js +4 -4
  456. package/node/InputAdornment/InputAdornment.js +4 -4
  457. package/node/InputBase/InputBase.js +4 -4
  458. package/node/InputLabel/InputLabel.js +4 -4
  459. package/node/LinearProgress/LinearProgress.js +4 -4
  460. package/node/Link/Link.js +4 -4
  461. package/node/List/List.js +4 -4
  462. package/node/ListItem/ListItem.js +4 -4
  463. package/node/ListItemAvatar/ListItemAvatar.js +4 -4
  464. package/node/ListItemButton/ListItemButton.js +4 -4
  465. package/node/ListItemIcon/ListItemIcon.js +4 -4
  466. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -4
  467. package/node/ListItemText/ListItemText.js +4 -4
  468. package/node/ListSubheader/ListSubheader.js +4 -4
  469. package/node/Menu/Menu.js +4 -4
  470. package/node/MenuItem/MenuItem.js +4 -4
  471. package/node/MenuList/MenuList.js +4 -4
  472. package/node/MobileStepper/MobileStepper.js +4 -4
  473. package/node/Modal/Modal.js +4 -4
  474. package/node/NativeSelect/NativeSelect.js +4 -4
  475. package/node/OutlinedInput/OutlinedInput.js +4 -4
  476. package/node/Pagination/Pagination.js +4 -4
  477. package/node/PaginationItem/PaginationItem.js +4 -4
  478. package/node/Paper/Paper.js +4 -4
  479. package/node/Popover/Popover.js +4 -4
  480. package/node/Popper/Popper.js +4 -4
  481. package/node/Radio/Radio.js +4 -4
  482. package/node/RadioGroup/RadioGroup.js +4 -4
  483. package/node/Rating/Rating.js +4 -4
  484. package/node/ScopedCssBaseline/ScopedCssBaseline.js +4 -4
  485. package/node/Select/Select.js +4 -4
  486. package/node/Skeleton/Skeleton.js +4 -4
  487. package/node/Slide/Slide.js +4 -4
  488. package/node/Slider/Slider.js +4 -4
  489. package/node/Snackbar/Snackbar.js +4 -4
  490. package/node/SnackbarContent/SnackbarContent.js +4 -4
  491. package/node/SpeedDial/SpeedDial.js +4 -4
  492. package/node/SpeedDialAction/SpeedDialAction.js +4 -4
  493. package/node/SpeedDialIcon/SpeedDialIcon.js +4 -4
  494. package/node/Stack/Stack.js +4 -4
  495. package/node/Step/Step.js +4 -4
  496. package/node/StepButton/StepButton.js +4 -4
  497. package/node/StepConnector/StepConnector.js +4 -4
  498. package/node/StepContent/StepContent.js +4 -4
  499. package/node/StepIcon/StepIcon.js +4 -4
  500. package/node/StepLabel/StepLabel.js +4 -4
  501. package/node/Stepper/Stepper.js +4 -4
  502. package/node/SvgIcon/SvgIcon.js +4 -4
  503. package/node/SwipeableDrawer/SwipeableDrawer.js +4 -4
  504. package/node/Switch/Switch.js +4 -4
  505. package/node/Tab/Tab.js +4 -4
  506. package/node/TabScrollButton/TabScrollButton.js +4 -4
  507. package/node/Table/Table.js +4 -4
  508. package/node/TableBody/TableBody.js +4 -4
  509. package/node/TableCell/TableCell.js +4 -4
  510. package/node/TableContainer/TableContainer.js +4 -4
  511. package/node/TableFooter/TableFooter.js +4 -4
  512. package/node/TableHead/TableHead.js +4 -4
  513. package/node/TablePagination/TablePagination.js +4 -4
  514. package/node/TableRow/TableRow.js +4 -4
  515. package/node/TableSortLabel/TableSortLabel.js +4 -4
  516. package/node/Tabs/Tabs.js +4 -4
  517. package/node/TextField/TextField.js +4 -4
  518. package/node/ToggleButton/ToggleButton.js +24 -8
  519. package/node/ToggleButtonGroup/ToggleButtonGroup.js +88 -46
  520. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +17 -0
  521. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +17 -0
  522. package/node/ToggleButtonGroup/toggleButtonGroupClasses.js +1 -1
  523. package/node/Toolbar/Toolbar.js +4 -4
  524. package/node/Tooltip/Tooltip.js +4 -4
  525. package/node/Typography/Typography.js +4 -4
  526. package/node/Unstable_Grid2/Grid2.js +4 -4
  527. package/node/Zoom/Zoom.js +4 -4
  528. package/node/index.js +1 -1
  529. package/node/styles/CssVarsProvider.js +3 -0
  530. package/package.json +11 -10
  531. package/styles/CssVarsProvider.d.ts +3 -3
  532. package/styles/CssVarsProvider.js +3 -0
  533. package/umd/material-ui.development.js +15431 -15429
  534. package/umd/material-ui.production.min.js +4 -207
@@ -8,11 +8,14 @@ import { isFragment } from 'react-is';
8
8
  import PropTypes from 'prop-types';
9
9
  import clsx from 'clsx';
10
10
  import { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';
11
+ import { getValidReactChildren } from '@mui/utils';
11
12
  import styled from '../styles/styled';
12
13
  import useThemeProps from '../styles/useThemeProps';
13
14
  import capitalize from '../utils/capitalize';
14
- import isValueSelected from './isValueSelected';
15
15
  import toggleButtonGroupClasses, { getToggleButtonGroupUtilityClass } from './toggleButtonGroupClasses';
16
+ import ToggleButtonGroupContext from './ToggleButtonGroupContext';
17
+ import ToggleButtonGroupButtonContext from './ToggleButtonGroupButtonContext';
18
+ import toggleButtonClasses from '../ToggleButton/toggleButtonClasses';
16
19
  import { jsx as _jsx } from "react/jsx-runtime";
17
20
  const useUtilityClasses = ownerState => {
18
21
  const {
@@ -23,7 +26,10 @@ const useUtilityClasses = ownerState => {
23
26
  } = ownerState;
24
27
  const slots = {
25
28
  root: ['root', orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth'],
26
- grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled']
29
+ grouped: ['grouped', `grouped${capitalize(orientation)}`, disabled && 'disabled'],
30
+ firstButton: ['firstButton'],
31
+ lastButton: ['lastButton'],
32
+ middleButton: ['middleButton']
27
33
  };
28
34
  return composeClasses(slots, getToggleButtonGroupUtilityClass, classes);
29
35
  };
@@ -38,6 +44,12 @@ const ToggleButtonGroupRoot = styled('div', {
38
44
  [`& .${toggleButtonGroupClasses.grouped}`]: styles.grouped
39
45
  }, {
40
46
  [`& .${toggleButtonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
47
+ }, {
48
+ [`& .${toggleButtonGroupClasses.firstButton}`]: styles.firstButton
49
+ }, {
50
+ [`& .${toggleButtonGroupClasses.lastButton}`]: styles.lastButton
51
+ }, {
52
+ [`& .${toggleButtonGroupClasses.middleButton}`]: styles.middleButton
41
53
  }, styles.root, ownerState.orientation === 'vertical' && styles.vertical, ownerState.fullWidth && styles.fullWidth];
42
54
  }
43
55
  })(({
@@ -52,36 +64,46 @@ const ToggleButtonGroupRoot = styled('div', {
52
64
  width: '100%'
53
65
  }, {
54
66
  [`& .${toggleButtonGroupClasses.grouped}`]: _extends({}, ownerState.orientation === 'horizontal' ? {
55
- '&:not(:first-of-type)': {
56
- marginLeft: -1,
57
- borderLeft: '1px solid transparent',
58
- borderTopLeftRadius: 0,
59
- borderBottomLeftRadius: 0
60
- },
61
- '&:not(:last-of-type)': {
62
- borderTopRightRadius: 0,
63
- borderBottomRightRadius: 0
64
- },
65
67
  [`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {
66
68
  borderLeft: 0,
67
69
  marginLeft: 0
68
70
  }
69
71
  } : {
70
- '&:not(:first-of-type)': {
71
- marginTop: -1,
72
- borderTop: '1px solid transparent',
73
- borderTopLeftRadius: 0,
74
- borderTopRightRadius: 0
75
- },
76
- '&:not(:last-of-type)': {
77
- borderBottomLeftRadius: 0,
78
- borderBottomRightRadius: 0
79
- },
80
72
  [`&.${toggleButtonGroupClasses.selected} + .${toggleButtonGroupClasses.grouped}.${toggleButtonGroupClasses.selected}`]: {
81
73
  borderTop: 0,
82
74
  marginTop: 0
83
75
  }
84
76
  })
77
+ }, ownerState.orientation === 'horizontal' ? {
78
+ [`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {
79
+ borderTopRightRadius: 0,
80
+ borderBottomRightRadius: 0
81
+ },
82
+ [`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {
83
+ marginLeft: -1,
84
+ borderLeft: '1px solid transparent',
85
+ borderTopLeftRadius: 0,
86
+ borderBottomLeftRadius: 0
87
+ }
88
+ } : {
89
+ [`& .${toggleButtonGroupClasses.firstButton},& .${toggleButtonGroupClasses.middleButton}`]: {
90
+ borderBottomLeftRadius: 0,
91
+ borderBottomRightRadius: 0
92
+ },
93
+ [`& .${toggleButtonGroupClasses.lastButton},& .${toggleButtonGroupClasses.middleButton}`]: {
94
+ marginTop: -1,
95
+ borderTop: '1px solid transparent',
96
+ borderTopLeftRadius: 0,
97
+ borderTopRightRadius: 0
98
+ }
99
+ }, ownerState.orientation === 'horizontal' ? {
100
+ [`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {
101
+ borderLeft: '1px solid transparent'
102
+ }
103
+ } : {
104
+ [`& .${toggleButtonGroupClasses.lastButton}.${toggleButtonClasses.disabled},& .${toggleButtonGroupClasses.middleButton}.${toggleButtonClasses.disabled}`]: {
105
+ borderTop: '1px solid transparent'
106
+ }
85
107
  }));
86
108
  const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGroup(inProps, ref) {
87
109
  const props = useThemeProps({
@@ -108,7 +130,7 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
108
130
  size
109
131
  });
110
132
  const classes = useUtilityClasses(ownerState);
111
- const handleChange = (event, buttonValue) => {
133
+ const handleChange = React.useCallback((event, buttonValue) => {
112
134
  if (!onChange) {
113
135
  return;
114
136
  }
@@ -121,12 +143,37 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
121
143
  newValue = value ? value.concat(buttonValue) : [buttonValue];
122
144
  }
123
145
  onChange(event, newValue);
124
- };
125
- const handleExclusiveChange = (event, buttonValue) => {
146
+ }, [onChange, value]);
147
+ const handleExclusiveChange = React.useCallback((event, buttonValue) => {
126
148
  if (!onChange) {
127
149
  return;
128
150
  }
129
151
  onChange(event, value === buttonValue ? null : buttonValue);
152
+ }, [onChange, value]);
153
+ const context = React.useMemo(() => ({
154
+ className: classes.grouped,
155
+ onChange: exclusive ? handleExclusiveChange : handleChange,
156
+ value,
157
+ size,
158
+ fullWidth,
159
+ color,
160
+ disabled
161
+ }), [classes.grouped, exclusive, handleExclusiveChange, handleChange, value, size, fullWidth, color, disabled]);
162
+ const validChildren = getValidReactChildren(children);
163
+ const childrenCount = validChildren.length;
164
+ const getButtonPositionClassName = index => {
165
+ const isFirstButton = index === 0;
166
+ const isLastButton = index === childrenCount - 1;
167
+ if (isFirstButton && isLastButton) {
168
+ return '';
169
+ }
170
+ if (isFirstButton) {
171
+ return classes.firstButton;
172
+ }
173
+ if (isLastButton) {
174
+ return classes.lastButton;
175
+ }
176
+ return classes.middleButton;
130
177
  };
131
178
  return /*#__PURE__*/_jsx(ToggleButtonGroupRoot, _extends({
132
179
  role: "group",
@@ -134,32 +181,27 @@ const ToggleButtonGroup = /*#__PURE__*/React.forwardRef(function ToggleButtonGro
134
181
  ref: ref,
135
182
  ownerState: ownerState
136
183
  }, other, {
137
- children: React.Children.map(children, child => {
138
- if (! /*#__PURE__*/React.isValidElement(child)) {
139
- return null;
140
- }
141
- if (process.env.NODE_ENV !== 'production') {
142
- if (isFragment(child)) {
143
- console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
184
+ children: /*#__PURE__*/_jsx(ToggleButtonGroupContext.Provider, {
185
+ value: context,
186
+ children: validChildren.map((child, index) => {
187
+ if (process.env.NODE_ENV !== 'production') {
188
+ if (isFragment(child)) {
189
+ console.error(["MUI: The ToggleButtonGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
190
+ }
144
191
  }
145
- }
146
- return /*#__PURE__*/React.cloneElement(child, {
147
- className: clsx(classes.grouped, child.props.className),
148
- onChange: exclusive ? handleExclusiveChange : handleChange,
149
- selected: child.props.selected === undefined ? isValueSelected(child.props.value, value) : child.props.selected,
150
- size: child.props.size || size,
151
- fullWidth,
152
- color: child.props.color || color,
153
- disabled: child.props.disabled || disabled
154
- });
192
+ return /*#__PURE__*/_jsx(ToggleButtonGroupButtonContext.Provider, {
193
+ value: getButtonPositionClassName(index),
194
+ children: child
195
+ }, index);
196
+ })
155
197
  })
156
198
  }));
157
199
  });
158
200
  process.env.NODE_ENV !== "production" ? ToggleButtonGroup.propTypes /* remove-proptypes */ = {
159
- // ----------------------------- Warning --------------------------------
160
- // | These PropTypes are generated from the TypeScript type definitions |
161
- // | To update them edit the d.ts file and run "yarn proptypes" |
162
- // ----------------------------------------------------------------------
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
+ // └─────────────────────────────────────────────────────────────────────┘
163
205
  /**
164
206
  * The content of the component.
165
207
  */
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ declare const ToggleButtonGroupButtonContext: React.Context<string | undefined>;
6
+ export default ToggleButtonGroupButtonContext;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ const ToggleButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);
6
+ if (process.env.NODE_ENV !== 'production') {
7
+ ToggleButtonGroupButtonContext.displayName = 'ToggleButtonGroupButtonContext';
8
+ }
9
+ export default ToggleButtonGroupButtonContext;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import type { ToggleButtonGroupProps } from './ToggleButtonGroup';
3
+ interface ToggleButtonGroupContextType {
4
+ className?: string;
5
+ onChange?: ToggleButtonGroupProps['onChange'];
6
+ value?: ToggleButtonGroupProps['value'];
7
+ size?: ToggleButtonGroupProps['size'];
8
+ fullWidth?: ToggleButtonGroupProps['fullWidth'];
9
+ color?: ToggleButtonGroupProps['color'];
10
+ disabled?: ToggleButtonGroupProps['disabled'];
11
+ }
12
+ /**
13
+ * @ignore - internal component.
14
+ */
15
+ declare const ToggleButtonGroupContext: React.Context<ToggleButtonGroupContextType>;
16
+ export default ToggleButtonGroupContext;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ /**
3
+ * @ignore - internal component.
4
+ */
5
+ const ToggleButtonGroupContext = /*#__PURE__*/React.createContext({});
6
+ if (process.env.NODE_ENV !== 'production') {
7
+ ToggleButtonGroupContext.displayName = 'ToggleButtonGroupContext';
8
+ }
9
+ export default ToggleButtonGroupContext;
@@ -13,6 +13,12 @@ export interface ToggleButtonGroupClasses {
13
13
  groupedVertical: string;
14
14
  /** Styles applied to the root element if `fullWidth={true}`. */
15
15
  fullWidth: string;
16
+ /** Styles applied to the first button in the toggle button group. */
17
+ firstButton: string;
18
+ /** Styles applied to the last button in the toggle button group. */
19
+ lastButton: string;
20
+ /** Styles applied to buttons in the middle of the toggle button group. */
21
+ middleButton: string;
16
22
  }
17
23
  export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
18
24
  export declare function getToggleButtonGroupUtilityClass(slot: string): string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getToggleButtonGroupUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiToggleButtonGroup', slot);
5
5
  }
6
- const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth']);
6
+ const toggleButtonGroupClasses = generateUtilityClasses('MuiToggleButtonGroup', ['root', 'selected', 'vertical', 'disabled', 'grouped', 'groupedHorizontal', 'groupedVertical', 'fullWidth', 'firstButton', 'lastButton', 'middleButton']);
7
7
  export default toggleButtonGroupClasses;
@@ -77,10 +77,10 @@ const Toolbar = /*#__PURE__*/React.forwardRef(function Toolbar(inProps, ref) {
77
77
  }, other));
78
78
  });
79
79
  process.env.NODE_ENV !== "production" ? Toolbar.propTypes /* remove-proptypes */ = {
80
- // ----------------------------- Warning --------------------------------
81
- // | These PropTypes are generated from the TypeScript type definitions |
82
- // | To update them edit the d.ts file and run "yarn proptypes" |
83
- // ----------------------------------------------------------------------
80
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
81
+ // These PropTypes are generated from the TypeScript type definitions.
82
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
83
+ // └─────────────────────────────────────────────────────────────────────┘
84
84
  /**
85
85
  * The Toolbar children, usually a mixture of `IconButton`, `Button` and `Typography`.
86
86
  * The Toolbar is a flex container, allowing flex item properties to be used to lay out the children.
@@ -586,10 +586,10 @@ const Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {
586
586
  });
587
587
  });
588
588
  process.env.NODE_ENV !== "production" ? Tooltip.propTypes /* remove-proptypes */ = {
589
- // ----------------------------- Warning --------------------------------
590
- // | These PropTypes are generated from the TypeScript type definitions |
591
- // | To update them edit the d.ts file and run "yarn proptypes" |
592
- // ----------------------------------------------------------------------
589
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
590
+ // These PropTypes are generated from the TypeScript type definitions.
591
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
592
+ // └─────────────────────────────────────────────────────────────────────┘
593
593
  /**
594
594
  * If `true`, adds an arrow to the tooltip.
595
595
  * @default false
@@ -121,10 +121,10 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
121
121
  }, other));
122
122
  });
123
123
  process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes */ = {
124
- // ----------------------------- Warning --------------------------------
125
- // | These PropTypes are generated from the TypeScript type definitions |
126
- // | To update them edit the d.ts file and run "yarn proptypes" |
127
- // ----------------------------------------------------------------------
124
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
125
+ // These PropTypes are generated from the TypeScript type definitions.
126
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
127
+ // └─────────────────────────────────────────────────────────────────────┘
128
128
  /**
129
129
  * Set the text-align on the component.
130
130
  * @default 'inherit'
@@ -16,10 +16,10 @@ const Grid2 = createGrid2({
16
16
  })
17
17
  });
18
18
  process.env.NODE_ENV !== "production" ? Grid2.propTypes /* remove-proptypes */ = {
19
- // ----------------------------- Warning --------------------------------
20
- // | These PropTypes are generated from the TypeScript type definitions |
21
- // | To update them edit TypeScript types and run "yarn proptypes" |
22
- // ----------------------------------------------------------------------
19
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
20
+ // These PropTypes are generated from the TypeScript type definitions.
21
+ // To update them, edit the TypeScript types and run `pnpm proptypes`. │
22
+ // └─────────────────────────────────────────────────────────────────────┘
23
23
  /**
24
24
  * The content of the component.
25
25
  */
package/Zoom/Zoom.js CHANGED
@@ -128,10 +128,10 @@ const Zoom = /*#__PURE__*/React.forwardRef(function Zoom(props, ref) {
128
128
  }));
129
129
  });
130
130
  process.env.NODE_ENV !== "production" ? Zoom.propTypes /* remove-proptypes */ = {
131
- // ----------------------------- Warning --------------------------------
132
- // | These PropTypes are generated from the TypeScript type definitions |
133
- // | To update them edit the d.ts file and run "yarn proptypes" |
134
- // ----------------------------------------------------------------------
131
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
132
+ // These PropTypes are generated from the TypeScript type definitions.
133
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
134
+ // └─────────────────────────────────────────────────────────────────────┘
135
135
  /**
136
136
  * Add a custom transition end trigger. Called with the transitioning DOM
137
137
  * node and a done callback. Allows for more fine grained transition end
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/material v5.15.3
2
+ * @mui/material v5.15.4
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -184,10 +184,10 @@ var Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
184
184
  }));
185
185
  });
186
186
  process.env.NODE_ENV !== "production" ? Accordion.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
  * The content of the component.
193
193
  */
@@ -58,10 +58,10 @@ var AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(i
58
58
  }, other));
59
59
  });
60
60
  process.env.NODE_ENV !== "production" ? AccordionActions.propTypes /* remove-proptypes */ = {
61
- // ----------------------------- Warning --------------------------------
62
- // | These PropTypes are generated from the TypeScript type definitions |
63
- // | To update them edit the d.ts file and run "yarn proptypes" |
64
- // ----------------------------------------------------------------------
61
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
62
+ // These PropTypes are generated from the TypeScript type definitions.
63
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
64
+ // └─────────────────────────────────────────────────────────────────────┘
65
65
  /**
66
66
  * The content of the component.
67
67
  */
@@ -45,10 +45,10 @@ var AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(i
45
45
  }, other));
46
46
  });
47
47
  process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes /* remove-proptypes */ = {
48
- // ----------------------------- Warning --------------------------------
49
- // | These PropTypes are generated from the TypeScript type definitions |
50
- // | To update them edit the d.ts file and run "yarn proptypes" |
51
- // ----------------------------------------------------------------------
48
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
49
+ // These PropTypes are generated from the TypeScript type definitions.
50
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
51
+ // └─────────────────────────────────────────────────────────────────────┘
52
52
  /**
53
53
  * The content of the component.
54
54
  */
@@ -149,10 +149,10 @@ var AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(i
149
149
  }));
150
150
  });
151
151
  process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes /* remove-proptypes */ = {
152
- // ----------------------------- Warning --------------------------------
153
- // | These PropTypes are generated from the TypeScript type definitions |
154
- // | To update them edit the d.ts file and run "yarn proptypes" |
155
- // ----------------------------------------------------------------------
152
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
153
+ // These PropTypes are generated from the TypeScript type definitions.
154
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
155
+ // └─────────────────────────────────────────────────────────────────────┘
156
156
  /**
157
157
  * The content of the component.
158
158
  */
@@ -204,10 +204,10 @@ var Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
204
204
  }));
205
205
  });
206
206
  process.env.NODE_ENV !== "production" ? Alert.propTypes /* remove-proptypes */ = {
207
- // ----------------------------- Warning --------------------------------
208
- // | These PropTypes are generated from the TypeScript type definitions |
209
- // | To update them edit the d.ts file and run "yarn proptypes" |
210
- // ----------------------------------------------------------------------
207
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
208
+ // These PropTypes are generated from the TypeScript type definitions.
209
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
210
+ // └─────────────────────────────────────────────────────────────────────┘
211
211
  /**
212
212
  * The action to display. It renders after the message, at the end of the alert.
213
213
  */
@@ -49,10 +49,10 @@ var AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, ref)
49
49
  }, other));
50
50
  });
51
51
  process.env.NODE_ENV !== "production" ? AlertTitle.propTypes /* remove-proptypes */ = {
52
- // ----------------------------- Warning --------------------------------
53
- // | These PropTypes are generated from the TypeScript type definitions |
54
- // | To update them edit the d.ts file and run "yarn proptypes" |
55
- // ----------------------------------------------------------------------
52
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
53
+ // These PropTypes are generated from the TypeScript type definitions.
54
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
55
+ // └─────────────────────────────────────────────────────────────────────┘
56
56
  /**
57
57
  * The content of the component.
58
58
  */
@@ -132,10 +132,10 @@ var AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
132
132
  }, other));
133
133
  });
134
134
  process.env.NODE_ENV !== "production" ? AppBar.propTypes /* remove-proptypes */ = {
135
- // ----------------------------- Warning --------------------------------
136
- // | These PropTypes are generated from the TypeScript type definitions |
137
- // | To update them edit the d.ts file and run "yarn proptypes" |
138
- // ----------------------------------------------------------------------
135
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
136
+ // These PropTypes are generated from the TypeScript type definitions.
137
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
138
+ // └─────────────────────────────────────────────────────────────────────┘
139
139
  /**
140
140
  * The content of the component.
141
141
  */
@@ -666,10 +666,10 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
666
666
  });
667
667
  });
668
668
  process.env.NODE_ENV !== "production" ? Autocomplete.propTypes /* remove-proptypes */ = {
669
- // ----------------------------- Warning --------------------------------
670
- // | These PropTypes are generated from the TypeScript type definitions |
671
- // | To update them edit the d.ts file and run "yarn proptypes" |
672
- // ----------------------------------------------------------------------
669
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
670
+ // These PropTypes are generated from the TypeScript type definitions.
671
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
672
+ // └─────────────────────────────────────────────────────────────────────┘
673
673
  /**
674
674
  * If `true`, the portion of the selected suggestion that the user hasn't typed,
675
675
  * known as the completion string, appears inline after the input cursor in the textbox.
@@ -185,10 +185,10 @@ var Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
185
185
  }));
186
186
  });
187
187
  process.env.NODE_ENV !== "production" ? Avatar.propTypes /* remove-proptypes */ = {
188
- // ----------------------------- Warning --------------------------------
189
- // | These PropTypes are generated from the TypeScript type definitions |
190
- // | To update them edit the d.ts file and run "yarn proptypes" |
191
- // ----------------------------------------------------------------------
188
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
189
+ // These PropTypes are generated from the TypeScript type definitions.
190
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
191
+ // └─────────────────────────────────────────────────────────────────────┘
192
192
  /**
193
193
  * Used in combination with `src` or `srcSet` to
194
194
  * provide an alt attribute for the rendered `img` element.
@@ -139,10 +139,10 @@ var AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, re
139
139
  }));
140
140
  });
141
141
  process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes /* remove-proptypes */ = {
142
- // ----------------------------- Warning --------------------------------
143
- // | These PropTypes are generated from the TypeScript type definitions |
144
- // | To update them edit the d.ts file and run "yarn proptypes" |
145
- // ----------------------------------------------------------------------
142
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
143
+ // These PropTypes are generated from the TypeScript type definitions.
144
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
145
+ // └─────────────────────────────────────────────────────────────────────┘
146
146
  /**
147
147
  * The avatars to stack.
148
148
  */
@@ -91,10 +91,10 @@ var Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
91
91
  }));
92
92
  });
93
93
  process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes */ = {
94
- // ----------------------------- Warning --------------------------------
95
- // | These PropTypes are generated from the TypeScript type definitions |
96
- // | To update them edit the d.ts file and run "yarn proptypes" |
97
- // ----------------------------------------------------------------------
94
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
95
+ // These PropTypes are generated from the TypeScript type definitions.
96
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
97
+ // └─────────────────────────────────────────────────────────────────────┘
98
98
  /**
99
99
  * The content of the component.
100
100
  */
@@ -324,10 +324,10 @@ var Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
324
324
  }));
325
325
  });
326
326
  process.env.NODE_ENV !== "production" ? Badge.propTypes /* remove-proptypes */ = {
327
- // ----------------------------- Warning --------------------------------
328
- // | These PropTypes are generated from the TypeScript type definitions |
329
- // | To update them edit the d.ts file and run "yarn proptypes" |
330
- // ----------------------------------------------------------------------
327
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
328
+ // These PropTypes are generated from the TypeScript type definitions.
329
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
330
+ // └─────────────────────────────────────────────────────────────────────┘
331
331
  /**
332
332
  * The anchor of the badge.
333
333
  * @default {
@@ -78,10 +78,10 @@ var BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(i
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
  */
@@ -113,10 +113,10 @@ var BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNaviga
113
113
  }));
114
114
  });
115
115
  process.env.NODE_ENV !== "production" ? BottomNavigationAction.propTypes /* remove-proptypes */ = {
116
- // ----------------------------- Warning --------------------------------
117
- // | These PropTypes are generated from the TypeScript type definitions |
118
- // | To update them edit the d.ts file and run "yarn proptypes" |
119
- // ----------------------------------------------------------------------
116
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
117
+ // These PropTypes are generated from the TypeScript type definitions.
118
+ // To update them, edit the d.ts file and run `pnpm proptypes`.
119
+ // └─────────────────────────────────────────────────────────────────────┘
120
120
  /**
121
121
  * This prop isn't supported.
122
122
  * Use the `component` prop if you need to change the children structure.
package/legacy/Box/Box.js CHANGED
@@ -14,10 +14,10 @@ var 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
  */