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