@mui/material 5.15.14 → 6.0.0-alpha.0

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 (545) hide show
  1. package/Accordion/Accordion.js +1 -2
  2. package/AccordionSummary/AccordionSummary.js +1 -2
  3. package/Alert/Alert.js +1 -2
  4. package/AppBar/AppBar.js +1 -1
  5. package/Autocomplete/Autocomplete.js +12 -17
  6. package/AvatarGroup/AvatarGroup.js +27 -25
  7. package/Backdrop/Backdrop.d.ts +40 -22
  8. package/Backdrop/Backdrop.js +50 -33
  9. package/Badge/Badge.js +156 -164
  10. package/BottomNavigation/BottomNavigation.js +2 -2
  11. package/BottomNavigationAction/BottomNavigationAction.js +40 -24
  12. package/Breadcrumbs/Breadcrumbs.js +2 -2
  13. package/Button/Button.js +2 -4
  14. package/ButtonBase/ButtonBase.js +1 -2
  15. package/ButtonBase/TouchRipple.js +34 -39
  16. package/ButtonGroup/ButtonGroup.js +1 -1
  17. package/ButtonGroup/buttonGroupClasses.d.ts +57 -17
  18. package/ButtonGroup/buttonGroupClasses.js +1 -1
  19. package/CHANGELOG.md +80 -1
  20. package/Card/Card.js +4 -6
  21. package/CardActionArea/CardActionArea.js +3 -4
  22. package/CardActions/CardActions.js +16 -12
  23. package/CardContent/CardContent.js +7 -9
  24. package/CardHeader/CardHeader.js +3 -4
  25. package/CardMedia/CardMedia.js +22 -13
  26. package/Checkbox/Checkbox.js +2 -3
  27. package/Chip/Chip.js +191 -122
  28. package/CircularProgress/CircularProgress.js +10 -15
  29. package/CssBaseline/CssBaseline.js +3 -6
  30. package/DialogTitle/DialogTitle.js +1 -1
  31. package/Divider/Divider.js +140 -81
  32. package/Fab/Fab.js +55 -58
  33. package/FilledInput/FilledInput.js +4 -6
  34. package/FormControl/FormControl.js +30 -15
  35. package/FormControlLabel/FormControlLabel.js +42 -27
  36. package/FormGroup/FormGroup.js +14 -10
  37. package/Grid/Grid.js +2 -4
  38. package/IconButton/IconButton.js +2 -3
  39. package/ImageListItemBar/ImageListItemBar.js +1 -2
  40. package/Input/Input.js +3 -4
  41. package/InputAdornment/InputAdornment.js +1 -2
  42. package/InputBase/InputBase.js +2 -4
  43. package/LinearProgress/LinearProgress.js +16 -24
  44. package/List/List.js +1 -2
  45. package/ListItem/ListItem.js +1 -2
  46. package/ListItemText/ListItemText.js +2 -3
  47. package/Menu/Menu.js +2 -3
  48. package/MobileStepper/MobileStepper.js +80 -47
  49. package/Modal/Modal.js +22 -19
  50. package/NativeSelect/NativeSelectInput.js +1 -2
  51. package/OutlinedInput/OutlinedInput.js +4 -5
  52. package/PaginationItem/PaginationItem.js +1 -2
  53. package/Paper/Paper.js +15 -18
  54. package/Popover/Popover.js +7 -8
  55. package/Popper/Popper.js +3 -4
  56. package/README.md +3 -1
  57. package/Radio/Radio.js +2 -3
  58. package/Radio/RadioButtonIcon.js +1 -2
  59. package/Rating/Rating.js +1 -2
  60. package/ScopedCssBaseline/ScopedCssBaseline.js +1 -2
  61. package/Select/SelectInput.js +3 -5
  62. package/Skeleton/Skeleton.js +11 -16
  63. package/Slider/Slider.js +187 -205
  64. package/Slider/SliderValueLabel.js +1 -2
  65. package/SnackbarContent/SnackbarContent.js +1 -2
  66. package/SpeedDial/SpeedDial.js +1 -2
  67. package/SpeedDialAction/SpeedDialAction.js +1 -2
  68. package/SpeedDialIcon/SpeedDialIcon.js +1 -2
  69. package/Step/Step.js +23 -14
  70. package/StepButton/StepButton.js +17 -14
  71. package/StepConnector/StepConnector.js +45 -26
  72. package/StepContent/StepContent.js +13 -8
  73. package/StepIcon/StepIcon.js +3 -4
  74. package/StepLabel/StepLabel.d.ts +25 -13
  75. package/StepLabel/StepLabel.js +47 -27
  76. package/Stepper/Stepper.js +29 -15
  77. package/SvgIcon/SvgIcon.js +26 -30
  78. package/SwipeableDrawer/SwipeableDrawer.js +2 -4
  79. package/Switch/Switch.js +1 -2
  80. package/TabScrollButton/TabScrollButton.js +2 -3
  81. package/TablePagination/TablePagination.js +2 -4
  82. package/TablePagination/TablePaginationActions.js +11 -13
  83. package/TableSortLabel/TableSortLabel.js +1 -2
  84. package/Tabs/Tabs.js +6 -10
  85. package/TextField/TextField.js +1 -2
  86. package/Tooltip/Tooltip.js +14 -17
  87. package/index.js +1 -1
  88. package/internal/SwitchBase.js +1 -2
  89. package/legacy/Accordion/Accordion.js +1 -2
  90. package/legacy/AccordionSummary/AccordionSummary.js +1 -2
  91. package/legacy/Alert/Alert.js +1 -2
  92. package/legacy/Autocomplete/Autocomplete.js +2 -3
  93. package/legacy/AvatarGroup/AvatarGroup.js +19 -11
  94. package/legacy/Backdrop/Backdrop.js +66 -44
  95. package/legacy/Badge/Badge.js +1 -2
  96. package/legacy/BottomNavigation/BottomNavigation.js +2 -2
  97. package/legacy/BottomNavigationAction/BottomNavigationAction.js +42 -23
  98. package/legacy/Breadcrumbs/Breadcrumbs.js +2 -2
  99. package/legacy/Button/Button.js +1 -2
  100. package/legacy/ButtonBase/ButtonBase.js +1 -2
  101. package/legacy/ButtonGroup/ButtonGroup.js +1 -1
  102. package/legacy/ButtonGroup/buttonGroupClasses.js +1 -1
  103. package/legacy/Card/Card.js +4 -6
  104. package/legacy/CardActionArea/CardActionArea.js +3 -4
  105. package/legacy/CardActions/CardActions.js +16 -13
  106. package/legacy/CardContent/CardContent.js +7 -9
  107. package/legacy/CardHeader/CardHeader.js +3 -4
  108. package/legacy/CardMedia/CardMedia.js +24 -16
  109. package/legacy/Chip/Chip.js +199 -107
  110. package/legacy/CssBaseline/CssBaseline.js +1 -2
  111. package/legacy/Divider/Divider.js +148 -88
  112. package/legacy/FormControl/FormControl.js +37 -23
  113. package/legacy/FormControlLabel/FormControlLabel.js +42 -25
  114. package/legacy/FormGroup/FormGroup.js +15 -12
  115. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -2
  116. package/legacy/InputAdornment/InputAdornment.js +1 -2
  117. package/legacy/InputBase/InputBase.js +1 -2
  118. package/legacy/LinearProgress/LinearProgress.js +1 -2
  119. package/legacy/List/List.js +1 -2
  120. package/legacy/ListItem/ListItem.js +1 -2
  121. package/legacy/ListItemText/ListItemText.js +1 -2
  122. package/legacy/MobileStepper/MobileStepper.js +80 -48
  123. package/legacy/Modal/Modal.js +20 -15
  124. package/legacy/NativeSelect/NativeSelectInput.js +1 -2
  125. package/legacy/OutlinedInput/OutlinedInput.js +1 -2
  126. package/legacy/PaginationItem/PaginationItem.js +1 -2
  127. package/legacy/Popover/Popover.js +2 -2
  128. package/legacy/Radio/RadioButtonIcon.js +1 -2
  129. package/legacy/Rating/Rating.js +1 -2
  130. package/legacy/Select/SelectInput.js +1 -2
  131. package/legacy/Slider/Slider.js +1 -2
  132. package/legacy/Slider/SliderValueLabel.js +1 -2
  133. package/legacy/SnackbarContent/SnackbarContent.js +1 -2
  134. package/legacy/SpeedDial/SpeedDial.js +1 -2
  135. package/legacy/SpeedDialAction/SpeedDialAction.js +1 -2
  136. package/legacy/SpeedDialIcon/SpeedDialIcon.js +1 -2
  137. package/legacy/Step/Step.js +22 -14
  138. package/legacy/StepButton/StepButton.js +17 -15
  139. package/legacy/StepConnector/StepConnector.js +46 -28
  140. package/legacy/StepContent/StepContent.js +15 -10
  141. package/legacy/StepIcon/StepIcon.js +3 -4
  142. package/legacy/StepLabel/StepLabel.js +65 -44
  143. package/legacy/Stepper/Stepper.js +28 -15
  144. package/legacy/SvgIcon/SvgIcon.js +1 -2
  145. package/legacy/SwipeableDrawer/SwipeableDrawer.js +1 -2
  146. package/legacy/Switch/Switch.js +1 -2
  147. package/legacy/TablePagination/TablePagination.js +1 -2
  148. package/legacy/TablePagination/TablePaginationActions.js +1 -2
  149. package/legacy/TableSortLabel/TableSortLabel.js +1 -2
  150. package/legacy/Tabs/Tabs.js +1 -2
  151. package/legacy/TextField/TextField.js +1 -2
  152. package/legacy/Tooltip/Tooltip.js +1 -2
  153. package/legacy/index.js +1 -1
  154. package/legacy/internal/SwitchBase.js +1 -2
  155. package/legacy/styles/CssVarsProvider.js +1 -3
  156. package/legacy/styles/createGetSelector.js +21 -0
  157. package/legacy/styles/experimental_extendTheme.js +26 -7
  158. package/modern/Accordion/Accordion.js +1 -2
  159. package/modern/AccordionSummary/AccordionSummary.js +1 -2
  160. package/modern/Alert/Alert.js +1 -2
  161. package/modern/Autocomplete/Autocomplete.js +2 -3
  162. package/modern/AvatarGroup/AvatarGroup.js +25 -22
  163. package/modern/Backdrop/Backdrop.js +50 -32
  164. package/modern/Badge/Badge.js +1 -2
  165. package/modern/BottomNavigation/BottomNavigation.js +2 -2
  166. package/modern/BottomNavigationAction/BottomNavigationAction.js +40 -24
  167. package/modern/Breadcrumbs/Breadcrumbs.js +2 -2
  168. package/modern/Button/Button.js +1 -2
  169. package/modern/ButtonBase/ButtonBase.js +1 -2
  170. package/modern/ButtonGroup/ButtonGroup.js +1 -1
  171. package/modern/ButtonGroup/buttonGroupClasses.js +1 -1
  172. package/modern/Card/Card.js +4 -6
  173. package/modern/CardActionArea/CardActionArea.js +3 -4
  174. package/modern/CardActions/CardActions.js +16 -12
  175. package/modern/CardContent/CardContent.js +7 -9
  176. package/modern/CardHeader/CardHeader.js +3 -4
  177. package/modern/CardMedia/CardMedia.js +22 -13
  178. package/modern/Chip/Chip.js +191 -122
  179. package/modern/CssBaseline/CssBaseline.js +1 -2
  180. package/modern/Divider/Divider.js +140 -81
  181. package/modern/FormControl/FormControl.js +30 -15
  182. package/modern/FormControlLabel/FormControlLabel.js +38 -22
  183. package/modern/FormGroup/FormGroup.js +14 -10
  184. package/modern/ImageListItemBar/ImageListItemBar.js +1 -2
  185. package/modern/InputAdornment/InputAdornment.js +1 -2
  186. package/modern/InputBase/InputBase.js +1 -2
  187. package/modern/LinearProgress/LinearProgress.js +1 -2
  188. package/modern/List/List.js +1 -2
  189. package/modern/ListItem/ListItem.js +1 -2
  190. package/modern/ListItemText/ListItemText.js +1 -2
  191. package/modern/MobileStepper/MobileStepper.js +80 -47
  192. package/modern/Modal/Modal.js +15 -11
  193. package/modern/NativeSelect/NativeSelectInput.js +1 -2
  194. package/modern/OutlinedInput/OutlinedInput.js +1 -2
  195. package/modern/PaginationItem/PaginationItem.js +1 -2
  196. package/modern/Popover/Popover.js +2 -2
  197. package/modern/Radio/RadioButtonIcon.js +1 -2
  198. package/modern/Rating/Rating.js +1 -2
  199. package/modern/Select/SelectInput.js +1 -2
  200. package/modern/Slider/Slider.js +1 -2
  201. package/modern/Slider/SliderValueLabel.js +1 -2
  202. package/modern/SnackbarContent/SnackbarContent.js +1 -2
  203. package/modern/SpeedDial/SpeedDial.js +1 -2
  204. package/modern/SpeedDialAction/SpeedDialAction.js +1 -2
  205. package/modern/SpeedDialIcon/SpeedDialIcon.js +1 -2
  206. package/modern/Step/Step.js +23 -14
  207. package/modern/StepButton/StepButton.js +17 -14
  208. package/modern/StepConnector/StepConnector.js +45 -26
  209. package/modern/StepContent/StepContent.js +13 -8
  210. package/modern/StepIcon/StepIcon.js +3 -4
  211. package/modern/StepLabel/StepLabel.js +47 -26
  212. package/modern/Stepper/Stepper.js +29 -15
  213. package/modern/SvgIcon/SvgIcon.js +1 -2
  214. package/modern/SwipeableDrawer/SwipeableDrawer.js +1 -2
  215. package/modern/Switch/Switch.js +1 -2
  216. package/modern/TablePagination/TablePagination.js +1 -2
  217. package/modern/TablePagination/TablePaginationActions.js +1 -2
  218. package/modern/TableSortLabel/TableSortLabel.js +1 -2
  219. package/modern/Tabs/Tabs.js +1 -2
  220. package/modern/TextField/TextField.js +1 -2
  221. package/modern/Tooltip/Tooltip.js +1 -2
  222. package/modern/index.js +1 -1
  223. package/modern/internal/SwitchBase.js +1 -2
  224. package/modern/styles/CssVarsProvider.js +1 -3
  225. package/modern/styles/createGetSelector.js +21 -0
  226. package/modern/styles/experimental_extendTheme.js +21 -8
  227. package/node/Accordion/Accordion.js +1 -1
  228. package/node/Accordion/AccordionContext.js +1 -1
  229. package/node/Accordion/index.js +1 -1
  230. package/node/AccordionActions/AccordionActions.js +1 -1
  231. package/node/AccordionActions/index.js +1 -1
  232. package/node/AccordionDetails/AccordionDetails.js +1 -1
  233. package/node/AccordionDetails/index.js +1 -1
  234. package/node/AccordionSummary/AccordionSummary.js +1 -1
  235. package/node/AccordionSummary/index.js +1 -1
  236. package/node/Alert/Alert.js +1 -1
  237. package/node/Alert/index.js +1 -1
  238. package/node/AlertTitle/AlertTitle.js +1 -1
  239. package/node/AlertTitle/index.js +1 -1
  240. package/node/AppBar/AppBar.js +1 -1
  241. package/node/AppBar/index.js +1 -1
  242. package/node/Autocomplete/Autocomplete.js +2 -2
  243. package/node/Autocomplete/index.js +1 -1
  244. package/node/Avatar/Avatar.js +1 -1
  245. package/node/Avatar/index.js +1 -1
  246. package/node/AvatarGroup/AvatarGroup.js +27 -23
  247. package/node/AvatarGroup/index.js +1 -1
  248. package/node/Backdrop/Backdrop.js +53 -36
  249. package/node/Backdrop/index.js +1 -1
  250. package/node/Badge/Badge.js +1 -1
  251. package/node/Badge/index.js +1 -1
  252. package/node/BottomNavigation/BottomNavigation.js +5 -5
  253. package/node/BottomNavigation/index.js +1 -1
  254. package/node/BottomNavigationAction/BottomNavigationAction.js +43 -26
  255. package/node/BottomNavigationAction/index.js +1 -1
  256. package/node/Box/index.js +1 -1
  257. package/node/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
  258. package/node/Breadcrumbs/Breadcrumbs.js +7 -7
  259. package/node/Breadcrumbs/index.js +1 -1
  260. package/node/Button/Button.js +1 -1
  261. package/node/Button/index.js +1 -1
  262. package/node/ButtonBase/ButtonBase.js +1 -1
  263. package/node/ButtonBase/Ripple.js +1 -1
  264. package/node/ButtonBase/TouchRipple.js +1 -1
  265. package/node/ButtonBase/index.js +1 -1
  266. package/node/ButtonGroup/ButtonGroup.js +2 -2
  267. package/node/ButtonGroup/ButtonGroupButtonContext.js +1 -1
  268. package/node/ButtonGroup/ButtonGroupContext.js +1 -1
  269. package/node/ButtonGroup/buttonGroupClasses.js +1 -1
  270. package/node/ButtonGroup/index.js +1 -1
  271. package/node/Card/Card.js +7 -9
  272. package/node/Card/index.js +1 -1
  273. package/node/CardActionArea/CardActionArea.js +6 -6
  274. package/node/CardActionArea/index.js +1 -1
  275. package/node/CardActions/CardActions.js +19 -15
  276. package/node/CardActions/index.js +1 -1
  277. package/node/CardContent/CardContent.js +10 -12
  278. package/node/CardContent/index.js +1 -1
  279. package/node/CardHeader/CardHeader.js +8 -8
  280. package/node/CardHeader/index.js +1 -1
  281. package/node/CardMedia/CardMedia.js +25 -16
  282. package/node/CardMedia/index.js +1 -1
  283. package/node/Checkbox/Checkbox.js +1 -1
  284. package/node/Checkbox/index.js +1 -1
  285. package/node/Chip/Chip.js +194 -124
  286. package/node/Chip/index.js +1 -1
  287. package/node/CircularProgress/CircularProgress.js +1 -1
  288. package/node/CircularProgress/index.js +1 -1
  289. package/node/Collapse/Collapse.js +1 -1
  290. package/node/Collapse/index.js +1 -1
  291. package/node/Container/index.js +1 -1
  292. package/node/CssBaseline/CssBaseline.js +1 -1
  293. package/node/Dialog/Dialog.js +1 -1
  294. package/node/Dialog/DialogContext.js +1 -1
  295. package/node/Dialog/index.js +1 -1
  296. package/node/DialogActions/DialogActions.js +1 -1
  297. package/node/DialogActions/index.js +1 -1
  298. package/node/DialogContent/DialogContent.js +1 -1
  299. package/node/DialogContent/index.js +1 -1
  300. package/node/DialogContentText/DialogContentText.js +1 -1
  301. package/node/DialogContentText/index.js +1 -1
  302. package/node/DialogTitle/DialogTitle.js +1 -1
  303. package/node/DialogTitle/index.js +1 -1
  304. package/node/Divider/Divider.js +144 -85
  305. package/node/Divider/index.js +1 -1
  306. package/node/Drawer/Drawer.js +1 -1
  307. package/node/Drawer/index.js +1 -1
  308. package/node/Fab/Fab.js +1 -1
  309. package/node/Fab/index.js +1 -1
  310. package/node/Fade/Fade.js +1 -1
  311. package/node/FilledInput/FilledInput.js +1 -1
  312. package/node/FilledInput/index.js +1 -1
  313. package/node/FormControl/FormControl.js +33 -18
  314. package/node/FormControl/FormControlContext.js +1 -1
  315. package/node/FormControl/index.js +1 -1
  316. package/node/FormControl/useFormControl.js +1 -1
  317. package/node/FormControlLabel/FormControlLabel.js +41 -24
  318. package/node/FormControlLabel/index.js +1 -1
  319. package/node/FormGroup/FormGroup.js +17 -13
  320. package/node/FormGroup/index.js +1 -1
  321. package/node/FormHelperText/FormHelperText.js +1 -1
  322. package/node/FormHelperText/index.js +1 -1
  323. package/node/FormLabel/FormLabel.js +1 -1
  324. package/node/FormLabel/index.js +1 -1
  325. package/node/GlobalStyles/GlobalStyles.js +1 -1
  326. package/node/Grid/Grid.js +1 -1
  327. package/node/Grid/GridContext.js +1 -1
  328. package/node/Grid/index.js +1 -1
  329. package/node/Grow/Grow.js +1 -1
  330. package/node/Hidden/Hidden.js +1 -1
  331. package/node/Hidden/HiddenCss.js +1 -1
  332. package/node/Hidden/HiddenJs.js +1 -1
  333. package/node/Hidden/withWidth.js +1 -1
  334. package/node/Icon/Icon.js +1 -1
  335. package/node/Icon/index.js +1 -1
  336. package/node/IconButton/IconButton.js +1 -1
  337. package/node/IconButton/index.js +1 -1
  338. package/node/ImageList/ImageList.js +1 -1
  339. package/node/ImageList/ImageListContext.js +1 -1
  340. package/node/ImageList/index.js +1 -1
  341. package/node/ImageListItem/ImageListItem.js +1 -1
  342. package/node/ImageListItem/index.js +1 -1
  343. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  344. package/node/ImageListItemBar/index.js +1 -1
  345. package/node/Input/Input.js +1 -1
  346. package/node/Input/index.js +1 -1
  347. package/node/InputAdornment/InputAdornment.js +1 -1
  348. package/node/InputAdornment/index.js +1 -1
  349. package/node/InputBase/InputBase.js +1 -1
  350. package/node/InputBase/index.js +1 -1
  351. package/node/InputLabel/InputLabel.js +1 -1
  352. package/node/InputLabel/index.js +1 -1
  353. package/node/LinearProgress/LinearProgress.js +1 -1
  354. package/node/LinearProgress/index.js +1 -1
  355. package/node/Link/Link.js +1 -1
  356. package/node/Link/index.js +1 -1
  357. package/node/List/List.js +1 -1
  358. package/node/List/ListContext.js +1 -1
  359. package/node/List/index.js +1 -1
  360. package/node/ListItem/ListItem.js +1 -1
  361. package/node/ListItem/index.js +1 -1
  362. package/node/ListItemAvatar/ListItemAvatar.js +1 -1
  363. package/node/ListItemAvatar/index.js +1 -1
  364. package/node/ListItemButton/ListItemButton.js +1 -1
  365. package/node/ListItemButton/index.js +1 -1
  366. package/node/ListItemIcon/ListItemIcon.js +1 -1
  367. package/node/ListItemIcon/index.js +1 -1
  368. package/node/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  369. package/node/ListItemSecondaryAction/index.js +1 -1
  370. package/node/ListItemText/ListItemText.js +1 -1
  371. package/node/ListItemText/index.js +1 -1
  372. package/node/ListSubheader/ListSubheader.js +1 -1
  373. package/node/ListSubheader/index.js +1 -1
  374. package/node/Menu/Menu.js +1 -1
  375. package/node/Menu/index.js +1 -1
  376. package/node/MenuItem/MenuItem.js +1 -1
  377. package/node/MenuItem/index.js +1 -1
  378. package/node/MenuList/MenuList.js +1 -1
  379. package/node/MobileStepper/MobileStepper.js +86 -52
  380. package/node/MobileStepper/index.js +1 -1
  381. package/node/Modal/Modal.js +18 -13
  382. package/node/Modal/index.js +1 -1
  383. package/node/NativeSelect/NativeSelect.js +1 -1
  384. package/node/NativeSelect/NativeSelectInput.js +1 -1
  385. package/node/NativeSelect/index.js +1 -1
  386. package/node/OutlinedInput/NotchedOutline.js +1 -1
  387. package/node/OutlinedInput/OutlinedInput.js +1 -1
  388. package/node/OutlinedInput/index.js +1 -1
  389. package/node/Pagination/Pagination.js +1 -1
  390. package/node/Pagination/index.js +1 -1
  391. package/node/PaginationItem/PaginationItem.js +1 -1
  392. package/node/PaginationItem/index.js +1 -1
  393. package/node/Paper/Paper.js +1 -1
  394. package/node/Paper/index.js +1 -1
  395. package/node/Popover/Popover.js +6 -6
  396. package/node/Popover/index.js +1 -1
  397. package/node/Popper/Popper.js +1 -1
  398. package/node/Radio/Radio.js +1 -1
  399. package/node/Radio/RadioButtonIcon.js +1 -1
  400. package/node/Radio/index.js +1 -1
  401. package/node/RadioGroup/RadioGroup.js +1 -1
  402. package/node/RadioGroup/RadioGroupContext.js +1 -1
  403. package/node/RadioGroup/useRadioGroup.js +1 -1
  404. package/node/Rating/Rating.js +1 -1
  405. package/node/Rating/index.js +1 -1
  406. package/node/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
  407. package/node/ScopedCssBaseline/index.js +1 -1
  408. package/node/Select/Select.js +1 -1
  409. package/node/Select/SelectInput.js +1 -1
  410. package/node/Select/index.js +1 -1
  411. package/node/Skeleton/Skeleton.js +1 -1
  412. package/node/Skeleton/index.js +1 -1
  413. package/node/Slide/Slide.js +1 -1
  414. package/node/Slider/Slider.js +1 -1
  415. package/node/Slider/SliderValueLabel.js +1 -1
  416. package/node/Slider/index.js +1 -1
  417. package/node/Snackbar/Snackbar.js +1 -1
  418. package/node/Snackbar/index.js +1 -1
  419. package/node/SnackbarContent/SnackbarContent.js +1 -1
  420. package/node/SnackbarContent/index.js +1 -1
  421. package/node/SpeedDial/SpeedDial.js +1 -1
  422. package/node/SpeedDial/index.js +1 -1
  423. package/node/SpeedDialAction/SpeedDialAction.js +1 -1
  424. package/node/SpeedDialAction/index.js +1 -1
  425. package/node/SpeedDialIcon/SpeedDialIcon.js +1 -1
  426. package/node/SpeedDialIcon/index.js +1 -1
  427. package/node/Step/Step.js +25 -15
  428. package/node/Step/StepContext.js +1 -1
  429. package/node/Step/index.js +1 -1
  430. package/node/StepButton/StepButton.js +20 -17
  431. package/node/StepButton/index.js +1 -1
  432. package/node/StepConnector/StepConnector.js +49 -30
  433. package/node/StepConnector/index.js +1 -1
  434. package/node/StepContent/StepContent.js +17 -12
  435. package/node/StepContent/index.js +1 -1
  436. package/node/StepIcon/StepIcon.js +6 -6
  437. package/node/StepIcon/index.js +1 -1
  438. package/node/StepLabel/StepLabel.js +52 -31
  439. package/node/StepLabel/index.js +1 -1
  440. package/node/Stepper/Stepper.js +32 -18
  441. package/node/Stepper/StepperContext.js +1 -1
  442. package/node/Stepper/index.js +1 -1
  443. package/node/SvgIcon/SvgIcon.js +1 -1
  444. package/node/SvgIcon/index.js +1 -1
  445. package/node/SwipeableDrawer/SwipeArea.js +1 -1
  446. package/node/SwipeableDrawer/SwipeableDrawer.js +1 -1
  447. package/node/Switch/Switch.js +1 -1
  448. package/node/Switch/index.js +1 -1
  449. package/node/Tab/Tab.js +1 -1
  450. package/node/Tab/index.js +1 -1
  451. package/node/TabScrollButton/TabScrollButton.js +1 -1
  452. package/node/TabScrollButton/index.js +1 -1
  453. package/node/Table/Table.js +1 -1
  454. package/node/Table/TableContext.js +1 -1
  455. package/node/Table/Tablelvl2Context.js +1 -1
  456. package/node/Table/index.js +1 -1
  457. package/node/TableBody/TableBody.js +1 -1
  458. package/node/TableBody/index.js +1 -1
  459. package/node/TableCell/TableCell.js +1 -1
  460. package/node/TableCell/index.js +1 -1
  461. package/node/TableContainer/TableContainer.js +1 -1
  462. package/node/TableContainer/index.js +1 -1
  463. package/node/TableFooter/TableFooter.js +1 -1
  464. package/node/TableFooter/index.js +1 -1
  465. package/node/TableHead/TableHead.js +1 -1
  466. package/node/TableHead/index.js +1 -1
  467. package/node/TablePagination/TablePagination.js +1 -1
  468. package/node/TablePagination/TablePaginationActions.js +1 -1
  469. package/node/TablePagination/index.js +1 -1
  470. package/node/TableRow/TableRow.js +1 -1
  471. package/node/TableRow/index.js +1 -1
  472. package/node/TableSortLabel/TableSortLabel.js +1 -1
  473. package/node/TableSortLabel/index.js +1 -1
  474. package/node/Tabs/ScrollbarSize.js +1 -1
  475. package/node/Tabs/Tabs.js +1 -1
  476. package/node/Tabs/index.js +1 -1
  477. package/node/TextField/TextField.js +1 -1
  478. package/node/TextField/index.js +1 -1
  479. package/node/ToggleButton/ToggleButton.js +1 -1
  480. package/node/ToggleButton/index.js +1 -1
  481. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  482. package/node/ToggleButtonGroup/ToggleButtonGroupButtonContext.js +1 -1
  483. package/node/ToggleButtonGroup/ToggleButtonGroupContext.js +1 -1
  484. package/node/ToggleButtonGroup/index.js +1 -1
  485. package/node/Toolbar/Toolbar.js +1 -1
  486. package/node/Toolbar/index.js +1 -1
  487. package/node/Tooltip/Tooltip.js +1 -1
  488. package/node/Tooltip/index.js +1 -1
  489. package/node/Typography/Typography.js +1 -1
  490. package/node/Typography/index.js +1 -1
  491. package/node/Unstable_Grid2/index.js +1 -1
  492. package/node/Zoom/Zoom.js +1 -1
  493. package/node/index.js +2 -2
  494. package/node/internal/SwitchBase.js +1 -1
  495. package/node/internal/svg-icons/Add.js +1 -1
  496. package/node/internal/svg-icons/ArrowDownward.js +1 -1
  497. package/node/internal/svg-icons/ArrowDropDown.js +1 -1
  498. package/node/internal/svg-icons/Cancel.js +1 -1
  499. package/node/internal/svg-icons/CheckBox.js +1 -1
  500. package/node/internal/svg-icons/CheckBoxOutlineBlank.js +1 -1
  501. package/node/internal/svg-icons/CheckCircle.js +1 -1
  502. package/node/internal/svg-icons/Close.js +1 -1
  503. package/node/internal/svg-icons/ErrorOutline.js +1 -1
  504. package/node/internal/svg-icons/FirstPage.js +1 -1
  505. package/node/internal/svg-icons/IndeterminateCheckBox.js +1 -1
  506. package/node/internal/svg-icons/InfoOutlined.js +1 -1
  507. package/node/internal/svg-icons/KeyboardArrowLeft.js +1 -1
  508. package/node/internal/svg-icons/KeyboardArrowRight.js +1 -1
  509. package/node/internal/svg-icons/LastPage.js +1 -1
  510. package/node/internal/svg-icons/MoreHoriz.js +1 -1
  511. package/node/internal/svg-icons/NavigateBefore.js +1 -1
  512. package/node/internal/svg-icons/NavigateNext.js +1 -1
  513. package/node/internal/svg-icons/Person.js +1 -1
  514. package/node/internal/svg-icons/RadioButtonChecked.js +1 -1
  515. package/node/internal/svg-icons/RadioButtonUnchecked.js +1 -1
  516. package/node/internal/svg-icons/ReportProblemOutlined.js +1 -1
  517. package/node/internal/svg-icons/Star.js +1 -1
  518. package/node/internal/svg-icons/StarBorder.js +1 -1
  519. package/node/internal/svg-icons/SuccessOutlined.js +1 -1
  520. package/node/internal/svg-icons/Warning.js +1 -1
  521. package/node/styles/CssVarsProvider.js +1 -3
  522. package/node/styles/ThemeProvider.js +1 -1
  523. package/node/styles/createGetSelector.js +29 -0
  524. package/node/styles/createTheme.js +1 -1
  525. package/node/styles/experimental_extendTheme.js +22 -9
  526. package/node/styles/index.js +1 -1
  527. package/node/styles/useTheme.js +1 -1
  528. package/node/useAutocomplete/index.js +1 -1
  529. package/node/useScrollTrigger/useScrollTrigger.js +1 -1
  530. package/node/useTouchRipple/useTouchRipple.js +1 -1
  531. package/node/utils/createSvgIcon.js +1 -1
  532. package/package.json +4 -4
  533. package/styles/CssVarsProvider.js +1 -3
  534. package/styles/createGetSelector.d.ts +10 -0
  535. package/styles/createGetSelector.js +21 -0
  536. package/styles/createTheme.js +1 -1
  537. package/styles/excludeVariablesFromRoot.d.ts +1 -1
  538. package/styles/experimental_extendTheme.d.ts +23 -5
  539. package/styles/experimental_extendTheme.js +28 -16
  540. package/styles/shouldSkipGeneratingVar.js +1 -2
  541. package/transitions/utils.js +2 -3
  542. package/umd/material-ui.development.js +1136 -736
  543. package/umd/material-ui.production.min.js +4 -4
  544. package/useTouchRipple/useTouchRipple.js +4 -8
  545. package/utils/useSlot.js +1 -1
@@ -3,11 +3,6 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["center", "classes", "className"];
6
- let _ = t => t,
7
- _t,
8
- _t2,
9
- _t3,
10
- _t4;
11
6
  import * as React from 'react';
12
7
  import PropTypes from 'prop-types';
13
8
  import { TransitionGroup } from 'react-transition-group';
@@ -21,7 +16,7 @@ import touchRippleClasses from './touchRippleClasses';
21
16
  import { jsx as _jsx } from "react/jsx-runtime";
22
17
  const DURATION = 550;
23
18
  export const DELAY_RIPPLE = 80;
24
- const enterKeyframe = keyframes(_t || (_t = _`
19
+ const enterKeyframe = keyframes`
25
20
  0% {
26
21
  transform: scale(0);
27
22
  opacity: 0.1;
@@ -31,8 +26,8 @@ const enterKeyframe = keyframes(_t || (_t = _`
31
26
  transform: scale(1);
32
27
  opacity: 0.3;
33
28
  }
34
- `));
35
- const exitKeyframe = keyframes(_t2 || (_t2 = _`
29
+ `;
30
+ const exitKeyframe = keyframes`
36
31
  0% {
37
32
  opacity: 1;
38
33
  }
@@ -40,8 +35,8 @@ const exitKeyframe = keyframes(_t2 || (_t2 = _`
40
35
  100% {
41
36
  opacity: 0;
42
37
  }
43
- `));
44
- const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
38
+ `;
39
+ const pulsateKeyframe = keyframes`
45
40
  0% {
46
41
  transform: scale(1);
47
42
  }
@@ -53,7 +48,7 @@ const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
53
48
  100% {
54
49
  transform: scale(1);
55
50
  }
56
- `));
51
+ `;
57
52
  export const TouchRippleRoot = styled('span', {
58
53
  name: 'MuiTouchRipple',
59
54
  slot: 'Root'
@@ -74,23 +69,27 @@ export const TouchRippleRoot = styled('span', {
74
69
  export const TouchRippleRipple = styled(Ripple, {
75
70
  name: 'MuiTouchRipple',
76
71
  slot: 'Ripple'
77
- })(_t4 || (_t4 = _`
72
+ })`
78
73
  opacity: 0;
79
74
  position: absolute;
80
75
 
81
- &.${0} {
76
+ &.${touchRippleClasses.rippleVisible} {
82
77
  opacity: 0.3;
83
78
  transform: scale(1);
84
- animation-name: ${0};
85
- animation-duration: ${0}ms;
86
- animation-timing-function: ${0};
79
+ animation-name: ${enterKeyframe};
80
+ animation-duration: ${DURATION}ms;
81
+ animation-timing-function: ${({
82
+ theme
83
+ }) => theme.transitions.easing.easeInOut};
87
84
  }
88
85
 
89
- &.${0} {
90
- animation-duration: ${0}ms;
86
+ &.${touchRippleClasses.ripplePulsate} {
87
+ animation-duration: ${({
88
+ theme
89
+ }) => theme.transitions.duration.shorter}ms;
91
90
  }
92
91
 
93
- & .${0} {
92
+ & .${touchRippleClasses.child} {
94
93
  opacity: 1;
95
94
  display: block;
96
95
  width: 100%;
@@ -99,33 +98,29 @@ export const TouchRippleRipple = styled(Ripple, {
99
98
  background-color: currentColor;
100
99
  }
101
100
 
102
- & .${0} {
101
+ & .${touchRippleClasses.childLeaving} {
103
102
  opacity: 0;
104
- animation-name: ${0};
105
- animation-duration: ${0}ms;
106
- animation-timing-function: ${0};
103
+ animation-name: ${exitKeyframe};
104
+ animation-duration: ${DURATION}ms;
105
+ animation-timing-function: ${({
106
+ theme
107
+ }) => theme.transitions.easing.easeInOut};
107
108
  }
108
109
 
109
- & .${0} {
110
+ & .${touchRippleClasses.childPulsate} {
110
111
  position: absolute;
111
112
  /* @noflip */
112
113
  left: 0px;
113
114
  top: 0;
114
- animation-name: ${0};
115
+ animation-name: ${pulsateKeyframe};
115
116
  animation-duration: 2500ms;
116
- animation-timing-function: ${0};
117
+ animation-timing-function: ${({
118
+ theme
119
+ }) => theme.transitions.easing.easeInOut};
117
120
  animation-iteration-count: infinite;
118
121
  animation-delay: 200ms;
119
122
  }
120
- `), touchRippleClasses.rippleVisible, enterKeyframe, DURATION, ({
121
- theme
122
- }) => theme.transitions.easing.easeInOut, touchRippleClasses.ripplePulsate, ({
123
- theme
124
- }) => theme.transitions.duration.shorter, touchRippleClasses.child, touchRippleClasses.childLeaving, exitKeyframe, DURATION, ({
125
- theme
126
- }) => theme.transitions.easing.easeInOut, touchRippleClasses.childPulsate, pulsateKeyframe, ({
127
- theme
128
- }) => theme.transitions.easing.easeInOut);
123
+ `;
129
124
 
130
125
  /**
131
126
  * @ignore - internal component.
@@ -194,11 +189,11 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
194
189
  center = centerProp || options.pulsate,
195
190
  fakeElement = false // For test purposes
196
191
  } = options;
197
- if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
192
+ if (event?.type === 'mousedown' && ignoringMouseDown.current) {
198
193
  ignoringMouseDown.current = false;
199
194
  return;
200
195
  }
201
- if ((event == null ? void 0 : event.type) === 'touchstart') {
196
+ if (event?.type === 'touchstart') {
202
197
  ignoringMouseDown.current = true;
203
198
  }
204
199
  const element = fakeElement ? null : container.current;
@@ -238,7 +233,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
238
233
  }
239
234
 
240
235
  // Touche devices
241
- if (event != null && event.touches) {
236
+ if (event?.touches) {
242
237
  // check that this isn't another touchstart due to multitouch
243
238
  // otherwise we will only clear a single timer when unmounting while two
244
239
  // are running
@@ -282,7 +277,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
282
277
 
283
278
  // The touch interaction occurs too quickly.
284
279
  // We still want to show ripple effect.
285
- if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
280
+ if (event?.type === 'touchend' && startTimerCommit.current) {
286
281
  startTimerCommit.current();
287
282
  startTimerCommit.current = null;
288
283
  startTimer.start(0, () => {
@@ -49,7 +49,7 @@ const useUtilityClasses = ownerState => {
49
49
  variant
50
50
  } = ownerState;
51
51
  const slots = {
52
- root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
52
+ root: ['root', variant, orientation, fullWidth && 'fullWidth', disableElevation && 'disableElevation', `color${capitalize(color)}`],
53
53
  grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],
54
54
  firstButton: ['firstButton'],
55
55
  lastButton: ['lastButton'],
@@ -15,43 +15,83 @@ export interface ButtonGroupClasses {
15
15
  firstButton: string;
16
16
  /** Styles applied to the root element if `fullWidth={true}`. */
17
17
  fullWidth: string;
18
+ /** Styles applied to the root element if `orientation="horizontal"`. */
19
+ horizontal: string;
18
20
  /** Styles applied to the root element if `orientation="vertical"`. */
19
21
  vertical: string;
20
22
  /** Styles applied to the children. */
21
23
  grouped: string;
22
- /** Styles applied to the children if `orientation="horizontal"`. */
24
+ /** Styles applied to the root element if `color="primary"` */
25
+ colorPrimary: string;
26
+ /** Styles applied to the root element if `color="secondary"` */
27
+ colorSecondary: string;
28
+ /** Styles applied to the children if `orientation="horizontal"`.
29
+ * @deprecated Combine the [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
30
+ */
23
31
  groupedHorizontal: string;
24
- /** Styles applied to the children if `orientation="vertical"`. */
32
+ /** Styles applied to the children if `orientation="vertical"`.
33
+ * @deprecated Combine the [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
34
+ */
25
35
  groupedVertical: string;
26
- /** Styles applied to the children if `variant="text"`. */
36
+ /** Styles applied to the children if `variant="text"`.
37
+ * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
38
+ */
27
39
  groupedText: string;
28
- /** Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
40
+ /** Styles applied to the children if `variant="text"` and `orientation="horizontal"`.
41
+ * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
42
+ */
29
43
  groupedTextHorizontal: string;
30
- /** Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
44
+ /** Styles applied to the children if `variant="text"` and `orientation="vertical"`.
45
+ * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
46
+ */
31
47
  groupedTextVertical: string;
32
- /** Styles applied to the children if `variant="text"` and `color="primary"`. */
48
+ /** Styles applied to the children if `variant="text"` and `color="primary"`.
49
+ * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
50
+ */
33
51
  groupedTextPrimary: string;
34
- /** Styles applied to the children if `variant="text"` and `color="secondary"`. */
52
+ /** Styles applied to the children if `variant="text"` and `color="secondary"`.
53
+ * @deprecated Combine the [.MuiButtonGroup-text](/material-ui/api/button-group/#button-group-classes-text) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
54
+ */
35
55
  groupedTextSecondary: string;
36
- /** Styles applied to the children if `variant="outlined"`. */
56
+ /** Styles applied to the children if `variant="outlined"`.
57
+ * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
58
+ */
37
59
  groupedOutlined: string;
38
- /** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
60
+ /** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`.
61
+ * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
62
+ */
39
63
  groupedOutlinedHorizontal: string;
40
- /** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
64
+ /** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`.
65
+ * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
66
+ */
41
67
  groupedOutlinedVertical: string;
42
- /** Styles applied to the children if `variant="outlined"` and `color="primary"`. */
68
+ /** Styles applied to the children if `variant="outlined"` and `color="primary"`.
69
+ * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
70
+ */
43
71
  groupedOutlinedPrimary: string;
44
- /** Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
72
+ /** Styles applied to the children if `variant="outlined"` and `color="secondary"`.
73
+ * @deprecated Combine the [.MuiButtonGroup-outlined](/material-ui/api/button-group/#button-group-classes-outlined) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
74
+ */
45
75
  groupedOutlinedSecondary: string;
46
- /** Styles applied to the children if `variant="contained"`. */
76
+ /** Styles applied to the children if `variant="contained"`.
77
+ * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
78
+ */
47
79
  groupedContained: string;
48
- /** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
80
+ /** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`.
81
+ * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-horizontal](/material-ui/api/button-group/#button-group-classes-horizontal) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
82
+ */
49
83
  groupedContainedHorizontal: string;
50
- /** Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
84
+ /** Styles applied to the children if `variant="contained"` and `orientation="vertical"`.
85
+ * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-vertical](/material-ui/api/button-group/#button-group-classes-vertical) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
86
+ */
51
87
  groupedContainedVertical: string;
52
- /** Styles applied to the children if `variant="contained"` and `color="primary"`. */
88
+ /** Styles applied to the children if `variant="contained"` and `color="primary"`.
89
+ * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorPrimary](/material-ui/api/button-group/#button-group-classes-colorPrimary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
90
+ */
53
91
  groupedContainedPrimary: string;
54
- /** Styles applied to the children if `variant="contained"` and `color="secondary"`. */
92
+ /** Styles applied to the children if `variant="contained"` and `color="secondary"`.
93
+ * @deprecated Combine the [.MuiButtonGroup-contained](/material-ui/api/button-group/#button-group-classes-contained) , [.MuiButtonGroup-colorSecondary](/material-ui/api/button-group/#button-group-classes-colorSecondary) and [.MuiButtonGroup-grouped](/material-ui/api/button-group/#button-group-classes-grouped) classes instead. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/)
94
+ */
55
95
  groupedContainedSecondary: string;
56
96
  /** Styles applied to the last button in the button group. */
57
97
  lastButton: string;
@@ -3,5 +3,5 @@ import generateUtilityClass from '@mui/utils/generateUtilityClass';
3
3
  export function getButtonGroupUtilityClass(slot) {
4
4
  return generateUtilityClass('MuiButtonGroup', slot);
5
5
  }
6
- const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
6
+ const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'horizontal', 'vertical', 'colorPrimary', 'colorSecondary', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
7
7
  export default buttonGroupClasses;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # [Versions](https://mui.com/versions/)
2
2
 
3
+ ## v6.0.0-alpha.0
4
+
5
+ <!-- generated comparing v5.15.14..next -->
6
+
7
+ _Mar 26, 2024_
8
+
9
+ A big thanks to the 18 contributors who made this release possible. Here are some highlights ✨:
10
+
11
+ - 🔥 Converted 10+ Material UI components to support static CSS extraction
12
+ - ⬅️ Added RTL support in Pigment CSS (#41570) @brijeshb42
13
+
14
+ ### `@mui/material@6.0.0-alpha.0`
15
+
16
+ - [BottomNavigation] Convert to support CSS extraction (#41612) @aacevski
17
+ - [AvatarGroup] Convert to support CSS extraction (#41485) @zanivan
18
+ - [Backdrop] Convert to support CSS extraction (#41581) @aacevski
19
+ - [Breadcrumbs] Convert to support CSS extraction (#41496) @aacevski
20
+ - [Card] Convert to support CSS extraction (#41580) @aacevski
21
+ - [Divider] Convert to support CSS extraction (#41366) @sai6855
22
+ - [FormControl] Convert to support CSS extraction (#41613) @aacevski
23
+ - [FormGroup] Convert to support CSS extraction (#41614) @aacevski
24
+ - [MobileStepper] Convert to support CSS extraction (#41533) @aacevski
25
+ - [Modal] Support CSS extraction (#41483) @sai6855
26
+ - [Popover] Convert to support CSS extraction (#41564) @aacevski
27
+ - [Stepper] Convert to support CSS extraction (#41546) @aacevski
28
+ - [Autocomplete] Display options provided to the `options` prop even if loading is true (#41634) @nekoya
29
+ - [Backdrop] Deprecate TransitionComponent (#40677) @harry-whorlow
30
+ - [ButtonGroup] Deprecate composed classes (#41259) @sai6855
31
+ - [StepLabel] Deprecate `componentProps` prop (#41321) @sai6855
32
+ - [Chip] Convert to support CSS extraction (#41592) @DiegoAndai
33
+
34
+ ### `@pigment-css/react@0.0.4`
35
+
36
+ - Fix evaluation of undefined variables (#41569) @siriwatknp
37
+ - Fix react-modal demos location (#41560) @sai6855
38
+ - [react] RTL Support (#41570) @brijeshb42
39
+
40
+ ### `@mui/system@6.0.0-alpha.0`
41
+
42
+ - [core] Standardize index pattern (#41574) @DiegoAndai
43
+ - Fix typo to avoid infinite recursion in function call (#41616) @michael-land
44
+ - Move stylesheet generator to `extendTheme` (#41446) @siriwatknp
45
+
46
+ ### Docs
47
+
48
+ - [joy-ui] Refresh the marketing example on the Color Inversion page (#41497) @cipherlogs
49
+ - [material-ui] Add v5 to v6 migration guide (#41561) @DiegoAndai
50
+ - [system] Add v5 to v6 migration guide (#41575) @DiegoAndai
51
+ - [material-ui][Slider] Remove `valueLabelFormat` from restricted values demo so that the tooltip thumb label displays the same as the value text (#41567) @StylesTrip
52
+ - [pigment-css] Update the RTL section on the readme (#41576) @danilo-leal
53
+
54
+ ### Core
55
+
56
+ - [blog] Update the callout (#41645) @cherniavskii
57
+ - [blog] Link to Romain's blog post in MUI X v7 announcement post (#41640) @cherniavskii
58
+ - [blog] Blog post with MUI X v7.0.0 annoucement (#41563) @joserodolfofreitas
59
+ - [blog] Add post about remote (#41565) @danilo-leal
60
+ - [core] Restore the pnpm-lock.yaml (#41643) @mnajdova
61
+ - [core] Fix failing CI steps (#41636) @mnajdova
62
+ - [core] Update browser support versions (#41568) @siriwatknp
63
+ - [core] Add instructions to deploying docs guide (#41582) @DiegoAndai
64
+ - [core] Add comment explaining the frequency of no-response action runs (#41555) @michaldudak
65
+ - [core] Init the next branch (#41552) @mnajdova
66
+ - [core] Lower the frequency of no-response action runs (#41553) @michaldudak
67
+ - [core] Update peerDependencies ranges to include v6 packages (#41662) @michaldudak
68
+ - [core] Run pnpm dedupe (#41658) @michaldudak
69
+ - [core] Fix dedupe check (#41657) @Janpot
70
+ - [pigment-css][demo] Add index page for material-ui (#41577) @brijeshb42
71
+ - [pigment-css][demo] Remove app specific pnpm workspace (#41393) @brijeshb42
72
+ - [docs] Add notification for MUI X v7 blog post (#41587) @cherniavskii
73
+ - [docs] MUI X v7 blog post annoucement followup (#41601) @joserodolfofreitas
74
+ - [docs] Update the installation guides to use the next tag (#41558) @mnajdova
75
+ - [docs][material-ui] Fix typo in CSS theme variables customization (#41632) @ZeeshanTamboli
76
+ - [material-ui][docs] Remove deleted page from the sidenav (#41594) @danilo-leal
77
+ - [website] Update pricing table (#41595) @cherniavskii
78
+ - [website] Add stray design adjustments throughout the site (#41547) @danilo-leal
79
+
80
+ All contributors of this release in alphabetical order: @aacevski, @brijeshb42, @cherniavskii, @cipherlogs, @danilo-leal, @DiegoAndai, @harry-whorlow, @Janpot, @joserodolfofreitas, @michael-land, @michaldudak, @mnajdova, @nekoya, @sai6855, @siriwatknp, @StylesTrip, @zanivan, @ZeeshanTamboli
81
+
3
82
  ## v5.15.14
4
83
 
5
84
  <!-- generated comparing v5.15.13..master -->
@@ -9,7 +88,7 @@ _Mar 18, 2024_
9
88
  A big thanks to the 15 contributors who made this release possible.
10
89
  This release was mostly about 🐛 bug fixes and 📚 documentation improvements.
11
90
 
12
- ### `@mui/material@5.15.13`
91
+ ### `@mui/material@5.15.14`
13
92
 
14
93
  - [Accordion] Convert to support CSS extraction (#41221) @mnajdova
15
94
  - &#8203;<!-- 24 -->[Autocomplete] Convert to support CSS extraction (#40330) @mnajdova
package/Card/Card.js CHANGED
@@ -8,11 +8,11 @@ import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import chainPropTypes from '@mui/utils/chainPropTypes';
10
10
  import composeClasses from '@mui/utils/composeClasses';
11
- import styled from '../styles/styled';
12
- import useThemeProps from '../styles/useThemeProps';
11
+ import { styled, createUseThemeProps } from '../zero-styled';
13
12
  import Paper from '../Paper';
14
13
  import { getCardUtilityClass } from './cardClasses';
15
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
+ const useThemeProps = createUseThemeProps('MuiCard');
16
16
  const useUtilityClasses = ownerState => {
17
17
  const {
18
18
  classes
@@ -26,10 +26,8 @@ const CardRoot = styled(Paper, {
26
26
  name: 'MuiCard',
27
27
  slot: 'Root',
28
28
  overridesResolver: (props, styles) => styles.root
29
- })(() => {
30
- return {
31
- overflow: 'hidden'
32
- };
29
+ })({
30
+ overflow: 'hidden'
33
31
  });
34
32
  const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
35
33
  const props = useThemeProps({
@@ -7,12 +7,11 @@ import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import useThemeProps from '../styles/useThemeProps';
11
- import styled from '../styles/styled';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import cardActionAreaClasses, { getCardActionAreaUtilityClass } from './cardActionAreaClasses';
13
12
  import ButtonBase from '../ButtonBase';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const useThemeProps = createUseThemeProps('MuiCardActionArea');
16
15
  const useUtilityClasses = ownerState => {
17
16
  const {
18
17
  classes
@@ -1,16 +1,16 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["disableSpacing", "className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import { getCardActionsUtilityClass } from './cardActionsClasses';
13
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ const useThemeProps = createUseThemeProps('MuiCardActions');
14
14
  const useUtilityClasses = ownerState => {
15
15
  const {
16
16
  classes,
@@ -30,17 +30,21 @@ const CardActionsRoot = styled('div', {
30
30
  } = props;
31
31
  return [styles.root, !ownerState.disableSpacing && styles.spacing];
32
32
  }
33
- })(({
34
- ownerState
35
- }) => _extends({
33
+ })({
36
34
  display: 'flex',
37
35
  alignItems: 'center',
38
- padding: 8
39
- }, !ownerState.disableSpacing && {
40
- '& > :not(style) ~ :not(style)': {
41
- marginLeft: 8
42
- }
43
- }));
36
+ padding: 8,
37
+ variants: [{
38
+ props: {
39
+ disableSpacing: false
40
+ },
41
+ style: {
42
+ '& > :not(style) ~ :not(style)': {
43
+ marginLeft: 8
44
+ }
45
+ }
46
+ }]
47
+ });
44
48
  const CardActions = /*#__PURE__*/React.forwardRef(function CardActions(inProps, ref) {
45
49
  const props = useThemeProps({
46
50
  props: inProps,
@@ -7,10 +7,10 @@ import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
- import styled from '../styles/styled';
11
- import useThemeProps from '../styles/useThemeProps';
10
+ import { styled, createUseThemeProps } from '../zero-styled';
12
11
  import { getCardContentUtilityClass } from './cardContentClasses';
13
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ const useThemeProps = createUseThemeProps('MuiCardContent');
14
14
  const useUtilityClasses = ownerState => {
15
15
  const {
16
16
  classes
@@ -24,13 +24,11 @@ const CardContentRoot = styled('div', {
24
24
  name: 'MuiCardContent',
25
25
  slot: 'Root',
26
26
  overridesResolver: (props, styles) => styles.root
27
- })(() => {
28
- return {
29
- padding: 16,
30
- '&:last-child': {
31
- paddingBottom: 24
32
- }
33
- };
27
+ })({
28
+ padding: 16,
29
+ '&:last-child': {
30
+ paddingBottom: 24
31
+ }
34
32
  });
35
33
  const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {
36
34
  const props = useThemeProps({
@@ -8,11 +8,10 @@ import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import composeClasses from '@mui/utils/composeClasses';
10
10
  import Typography from '../Typography';
11
- import useThemeProps from '../styles/useThemeProps';
12
- import styled from '../styles/styled';
11
+ import { styled, createUseThemeProps } from '../zero-styled';
13
12
  import cardHeaderClasses, { getCardHeaderUtilityClass } from './cardHeaderClasses';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
+ const useThemeProps = createUseThemeProps('MuiCardHeader');
16
15
  const useUtilityClasses = ownerState => {
17
16
  const {
18
17
  classes
@@ -1,17 +1,17 @@
1
1
  'use client';
2
2
 
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["children", "className", "component", "image", "src", "style"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import clsx from 'clsx';
9
9
  import chainPropTypes from '@mui/utils/chainPropTypes';
10
10
  import composeClasses from '@mui/utils/composeClasses';
11
- import useThemeProps from '../styles/useThemeProps';
12
- import styled from '../styles/styled';
11
+ import { styled, createUseThemeProps } from '../zero-styled';
13
12
  import { getCardMediaUtilityClass } from './cardMediaClasses';
14
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
+ const useThemeProps = createUseThemeProps('MuiCardMedia');
15
15
  const useUtilityClasses = ownerState => {
16
16
  const {
17
17
  classes,
@@ -36,19 +36,28 @@ const CardMediaRoot = styled('div', {
36
36
  } = ownerState;
37
37
  return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];
38
38
  }
39
- })(({
40
- ownerState
41
- }) => _extends({
39
+ })({
42
40
  display: 'block',
43
41
  backgroundSize: 'cover',
44
42
  backgroundRepeat: 'no-repeat',
45
- backgroundPosition: 'center'
46
- }, ownerState.isMediaComponent && {
47
- width: '100%'
48
- }, ownerState.isImageComponent && {
49
- // ⚠️ object-fit is not supported by IE11.
50
- objectFit: 'cover'
51
- }));
43
+ backgroundPosition: 'center',
44
+ variants: [{
45
+ props: {
46
+ isMediaComponent: true
47
+ },
48
+ style: {
49
+ width: '100%'
50
+ }
51
+ }, {
52
+ props: {
53
+ isImageComponent: true
54
+ },
55
+ style: {
56
+ // ⚠️ object-fit is not supported by IE11.
57
+ objectFit: 'cover'
58
+ }
59
+ }]
60
+ });
52
61
  const MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
53
62
  const IMAGE_COMPONENTS = ['picture', 'img'];
54
63
  const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(inProps, ref) {
@@ -66,7 +66,6 @@ const defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});
66
66
  const defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});
67
67
  const defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});
68
68
  const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
69
- var _icon$props$fontSize, _indeterminateIcon$pr;
70
69
  const props = useThemeProps({
71
70
  props: inProps,
72
71
  name: 'MuiCheckbox'
@@ -96,10 +95,10 @@ const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
96
95
  'data-indeterminate': indeterminate
97
96
  }, inputProps),
98
97
  icon: /*#__PURE__*/React.cloneElement(icon, {
99
- fontSize: (_icon$props$fontSize = icon.props.fontSize) != null ? _icon$props$fontSize : size
98
+ fontSize: icon.props.fontSize ?? size
100
99
  }),
101
100
  checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {
102
- fontSize: (_indeterminateIcon$pr = indeterminateIcon.props.fontSize) != null ? _indeterminateIcon$pr : size
101
+ fontSize: indeterminateIcon.props.fontSize ?? size
103
102
  }),
104
103
  ownerState: ownerState,
105
104
  ref: ref,