@mui/material 5.6.4 → 5.8.1

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 (387) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +18 -16
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.js +10 -10
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +241 -0
  30. package/Card/cardClasses.d.ts +8 -8
  31. package/CardActionArea/CardActionArea.js +2 -2
  32. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  33. package/CardActions/cardActionsClasses.d.ts +10 -10
  34. package/CardContent/cardContentClasses.d.ts +8 -8
  35. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  36. package/CardMedia/cardMediaClasses.d.ts +12 -12
  37. package/Checkbox/checkboxClasses.d.ts +18 -18
  38. package/Chip/chipClasses.d.ts +80 -80
  39. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  40. package/ClickAwayListener/index.d.ts +2 -2
  41. package/Collapse/collapseClasses.d.ts +18 -18
  42. package/Container/Container.js +17 -106
  43. package/Container/containerClasses.d.ts +6 -22
  44. package/CssBaseline/CssBaseline.js +4 -4
  45. package/Dialog/DialogContext.d.ts +6 -6
  46. package/Dialog/dialogClasses.d.ts +36 -36
  47. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  48. package/DialogContent/DialogContent.js +2 -2
  49. package/DialogContent/dialogContentClasses.d.ts +10 -10
  50. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  51. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  52. package/Divider/Divider.js +4 -4
  53. package/Divider/dividerClasses.d.ts +34 -34
  54. package/Drawer/Drawer.js +6 -6
  55. package/Drawer/drawerClasses.d.ts +30 -30
  56. package/Fab/Fab.js +72 -66
  57. package/Fab/fabClasses.d.ts +26 -26
  58. package/FilledInput/filledInputClasses.d.ts +40 -40
  59. package/FormControl/formControlClasses.d.ts +14 -14
  60. package/FormControlLabel/FormControlLabel.js +1 -1
  61. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  62. package/FormGroup/formGroupClasses.d.ts +12 -12
  63. package/FormHelperText/FormHelperText.js +3 -3
  64. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  65. package/FormLabel/FormLabel.js +5 -5
  66. package/FormLabel/formLabelClasses.d.ts +22 -22
  67. package/Grid/gridClasses.d.ts +48 -48
  68. package/Icon/Icon.js +8 -8
  69. package/Icon/iconClasses.d.ts +24 -24
  70. package/IconButton/IconButton.js +5 -5
  71. package/IconButton/iconButtonClasses.d.ts +26 -26
  72. package/ImageList/imageListClasses.d.ts +16 -16
  73. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  74. package/ImageListItemBar/ImageListItemBar.js +1 -1
  75. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  76. package/Input/Input.js +9 -4
  77. package/Input/inputClasses.d.ts +34 -34
  78. package/InputAdornment/InputAdornment.js +1 -1
  79. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  80. package/InputBase/InputBase.js +16 -8
  81. package/InputBase/inputBaseClasses.d.ts +44 -44
  82. package/InputLabel/inputLabelClasses.d.ts +32 -32
  83. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  84. package/Link/Link.js +3 -8
  85. package/Link/linkClasses.d.ts +18 -18
  86. package/List/listClasses.d.ts +14 -14
  87. package/ListItem/ListItem.js +8 -8
  88. package/ListItem/listItemClasses.d.ts +30 -30
  89. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  90. package/ListItemButton/ListItemButton.js +15 -9
  91. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  92. package/ListItemIcon/ListItemIcon.js +1 -1
  93. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  94. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  95. package/ListItemText/listItemTextClasses.d.ts +18 -18
  96. package/ListSubheader/ListSubheader.js +3 -3
  97. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  98. package/Menu/menuClasses.d.ts +12 -12
  99. package/MenuItem/MenuItem.js +8 -8
  100. package/MenuItem/menuItemClasses.d.ts +20 -20
  101. package/MenuList/MenuList.d.ts +1 -1
  102. package/MenuList/MenuList.js +1 -1
  103. package/MobileStepper/MobileStepper.js +5 -5
  104. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  105. package/Modal/Modal.js +1 -1
  106. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  107. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  108. package/Pagination/paginationClasses.d.ts +14 -14
  109. package/PaginationItem/PaginationItem.js +27 -27
  110. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  111. package/Paper/Paper.js +20 -15
  112. package/Paper/index.d.ts +1 -1
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +2 -1
  117. package/Radio/Radio.js +4 -4
  118. package/Radio/radioClasses.d.ts +16 -16
  119. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  120. package/RadioGroup/useRadioGroup.d.ts +4 -4
  121. package/Rating/Rating.js +2 -2
  122. package/Rating/ratingClasses.d.ts +40 -40
  123. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  124. package/Select/SelectInput.js +2 -2
  125. package/Select/selectClasses.d.ts +30 -30
  126. package/Skeleton/skeletonClasses.d.ts +24 -24
  127. package/Slider/Slider.js +1 -5
  128. package/Snackbar/Snackbar.js +1 -1
  129. package/Snackbar/snackbarClasses.d.ts +20 -20
  130. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  131. package/SpeedDial/SpeedDial.js +1 -1
  132. package/SpeedDial/speedDialClasses.d.ts +22 -22
  133. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  134. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  135. package/Step/StepContext.d.ts +20 -20
  136. package/Step/stepClasses.d.ts +16 -16
  137. package/StepButton/stepButtonClasses.d.ts +14 -14
  138. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  139. package/StepContent/stepContentClasses.d.ts +12 -12
  140. package/StepIcon/StepIcon.js +5 -5
  141. package/StepIcon/stepIconClasses.d.ts +16 -16
  142. package/StepLabel/StepLabel.js +4 -4
  143. package/StepLabel/stepLabelClasses.d.ts +28 -28
  144. package/Stepper/StepperContext.d.ts +18 -0
  145. package/Stepper/StepperContext.js +10 -2
  146. package/Stepper/index.d.ts +3 -0
  147. package/Stepper/index.js +3 -1
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.js +4 -4
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/switchClasses.d.ts +32 -32
  152. package/Tab/Tab.js +7 -7
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/Table.js +1 -1
  156. package/Table/tableClasses.d.ts +10 -10
  157. package/TableBody/tableBodyClasses.d.ts +8 -8
  158. package/TableCell/tableCellClasses.d.ts +32 -32
  159. package/TableContainer/tableContainerClasses.d.ts +8 -8
  160. package/TableFooter/tableFooterClasses.d.ts +8 -8
  161. package/TableHead/tableHeadClasses.d.ts +8 -8
  162. package/TablePagination/TablePagination.js +1 -1
  163. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  164. package/TableRow/TableRow.js +3 -3
  165. package/TableRow/tableRowClasses.d.ts +16 -16
  166. package/TableSortLabel/TableSortLabel.js +4 -4
  167. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  168. package/Tabs/Tabs.js +4 -4
  169. package/Tabs/tabsClasses.d.ts +32 -32
  170. package/TextField/textFieldClasses.d.ts +8 -8
  171. package/ToggleButton/ToggleButton.js +17 -10
  172. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  173. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  174. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  175. package/Toolbar/toolbarClasses.d.ts +14 -14
  176. package/Tooltip/Tooltip.js +5 -5
  177. package/Tooltip/tooltipClasses.d.ts +30 -30
  178. package/Typography/typographyClasses.d.ts +50 -50
  179. package/className/index.d.ts +1 -8
  180. package/className/index.js +1 -8
  181. package/darkScrollbar/index.d.ts +28 -28
  182. package/index.js +1 -1
  183. package/internal/switchBaseClasses.d.ts +12 -12
  184. package/legacy/Alert/Alert.js +1 -0
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  187. package/legacy/Box/Box.js +1 -1
  188. package/legacy/ButtonBase/TouchRipple.js +5 -5
  189. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  190. package/legacy/CardActionArea/CardActionArea.js +2 -2
  191. package/legacy/Container/Container.js +18 -103
  192. package/legacy/CssBaseline/CssBaseline.js +4 -4
  193. package/legacy/DialogContent/DialogContent.js +2 -2
  194. package/legacy/Divider/Divider.js +4 -4
  195. package/legacy/Drawer/Drawer.js +6 -6
  196. package/legacy/Fab/Fab.js +20 -18
  197. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  198. package/legacy/FormHelperText/FormHelperText.js +3 -3
  199. package/legacy/FormLabel/FormLabel.js +5 -5
  200. package/legacy/Icon/Icon.js +8 -8
  201. package/legacy/IconButton/IconButton.js +5 -5
  202. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  203. package/legacy/Input/Input.js +8 -3
  204. package/legacy/InputAdornment/InputAdornment.js +1 -1
  205. package/legacy/InputBase/InputBase.js +16 -8
  206. package/legacy/Link/Link.js +3 -9
  207. package/legacy/ListItem/ListItem.js +8 -8
  208. package/legacy/ListItemButton/ListItemButton.js +15 -9
  209. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  210. package/legacy/ListSubheader/ListSubheader.js +3 -3
  211. package/legacy/MenuItem/MenuItem.js +8 -8
  212. package/legacy/MenuList/MenuList.js +1 -1
  213. package/legacy/MobileStepper/MobileStepper.js +5 -5
  214. package/legacy/Modal/Modal.js +1 -1
  215. package/legacy/PaginationItem/PaginationItem.js +27 -27
  216. package/legacy/Paper/Paper.js +10 -7
  217. package/legacy/Radio/Radio.js +4 -4
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Select/SelectInput.js +2 -2
  220. package/legacy/Slider/Slider.js +1 -10
  221. package/legacy/Snackbar/Snackbar.js +1 -1
  222. package/legacy/SpeedDial/SpeedDial.js +1 -1
  223. package/legacy/StepIcon/StepIcon.js +5 -5
  224. package/legacy/StepLabel/StepLabel.js +4 -4
  225. package/legacy/Stepper/StepperContext.js +10 -2
  226. package/legacy/Stepper/index.js +3 -1
  227. package/legacy/SvgIcon/SvgIcon.js +4 -4
  228. package/legacy/Tab/Tab.js +7 -7
  229. package/legacy/Table/Table.js +1 -1
  230. package/legacy/TablePagination/TablePagination.js +1 -1
  231. package/legacy/TableRow/TableRow.js +3 -3
  232. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  233. package/legacy/Tabs/Tabs.js +4 -4
  234. package/legacy/ToggleButton/ToggleButton.js +16 -9
  235. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  236. package/legacy/Tooltip/Tooltip.js +5 -5
  237. package/legacy/className/index.js +1 -8
  238. package/legacy/index.js +1 -1
  239. package/legacy/locale/index.js +22 -22
  240. package/legacy/styles/createMixins.js +5 -3
  241. package/legacy/styles/createPalette.js +2 -1
  242. package/legacy/styles/createTheme.js +1 -1
  243. package/legacy/styles/experimental_extendTheme.js +70 -42
  244. package/locale/index.d.ts +71 -71
  245. package/locale/index.js +22 -22
  246. package/modern/Alert/Alert.js +1 -0
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  249. package/modern/Box/Box.js +1 -1
  250. package/modern/ButtonBase/TouchRipple.js +5 -5
  251. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  252. package/modern/CardActionArea/CardActionArea.js +2 -2
  253. package/modern/Container/Container.js +17 -106
  254. package/modern/CssBaseline/CssBaseline.js +4 -4
  255. package/modern/DialogContent/DialogContent.js +2 -2
  256. package/modern/Divider/Divider.js +4 -4
  257. package/modern/Drawer/Drawer.js +6 -6
  258. package/modern/Fab/Fab.js +19 -17
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +15 -9
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MenuList/MenuList.js +1 -1
  275. package/modern/MobileStepper/MobileStepper.js +5 -5
  276. package/modern/Modal/Modal.js +1 -1
  277. package/modern/PaginationItem/PaginationItem.js +27 -27
  278. package/modern/Paper/Paper.js +8 -7
  279. package/modern/Radio/Radio.js +4 -4
  280. package/modern/Rating/Rating.js +2 -2
  281. package/modern/Select/SelectInput.js +2 -2
  282. package/modern/Slider/Slider.js +1 -5
  283. package/modern/Snackbar/Snackbar.js +1 -1
  284. package/modern/SpeedDial/SpeedDial.js +1 -1
  285. package/modern/StepIcon/StepIcon.js +5 -5
  286. package/modern/StepLabel/StepLabel.js +4 -4
  287. package/modern/Stepper/StepperContext.js +10 -2
  288. package/modern/Stepper/index.js +3 -1
  289. package/modern/SvgIcon/SvgIcon.js +3 -3
  290. package/modern/Tab/Tab.js +7 -7
  291. package/modern/Table/Table.js +1 -1
  292. package/modern/TablePagination/TablePagination.js +1 -1
  293. package/modern/TableRow/TableRow.js +3 -3
  294. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  295. package/modern/Tabs/Tabs.js +4 -4
  296. package/modern/ToggleButton/ToggleButton.js +17 -10
  297. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  298. package/modern/Tooltip/Tooltip.js +5 -5
  299. package/modern/className/index.js +1 -8
  300. package/modern/index.js +1 -1
  301. package/modern/locale/index.js +22 -22
  302. package/modern/styles/createMixins.js +5 -3
  303. package/modern/styles/createPalette.js +2 -1
  304. package/modern/styles/createTheme.js +1 -1
  305. package/modern/styles/experimental_extendTheme.js +71 -44
  306. package/node/Alert/Alert.js +1 -0
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/BottomNavigation/BottomNavigation.js +0 -0
  309. package/node/Box/Box.js +2 -2
  310. package/node/ButtonBase/TouchRipple.js +5 -5
  311. package/node/ButtonGroup/ButtonGroup.js +10 -10
  312. package/node/CardActionArea/CardActionArea.js +2 -2
  313. package/node/Container/Container.js +17 -113
  314. package/node/CssBaseline/CssBaseline.js +4 -4
  315. package/node/DialogContent/DialogContent.js +2 -2
  316. package/node/Divider/Divider.js +4 -4
  317. package/node/Drawer/Drawer.js +6 -6
  318. package/node/Fab/Fab.js +72 -66
  319. package/node/FormControlLabel/FormControlLabel.js +1 -1
  320. package/node/FormHelperText/FormHelperText.js +3 -3
  321. package/node/FormLabel/FormLabel.js +5 -5
  322. package/node/Icon/Icon.js +8 -8
  323. package/node/IconButton/IconButton.js +5 -5
  324. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  325. package/node/Input/Input.js +9 -4
  326. package/node/InputAdornment/InputAdornment.js +1 -1
  327. package/node/InputBase/InputBase.js +14 -8
  328. package/node/Link/Link.js +3 -9
  329. package/node/ListItem/ListItem.js +8 -8
  330. package/node/ListItemButton/ListItemButton.js +15 -9
  331. package/node/ListItemIcon/ListItemIcon.js +1 -1
  332. package/node/ListSubheader/ListSubheader.js +3 -3
  333. package/node/MenuItem/MenuItem.js +8 -8
  334. package/node/MenuList/MenuList.js +1 -1
  335. package/node/MobileStepper/MobileStepper.js +5 -5
  336. package/node/Modal/Modal.js +1 -1
  337. package/node/PaginationItem/PaginationItem.js +27 -27
  338. package/node/Paper/Paper.js +22 -14
  339. package/node/Radio/Radio.js +4 -4
  340. package/node/Rating/Rating.js +2 -2
  341. package/node/Select/SelectInput.js +2 -2
  342. package/node/Slider/Slider.js +1 -5
  343. package/node/Snackbar/Snackbar.js +1 -1
  344. package/node/SpeedDial/SpeedDial.js +1 -1
  345. package/node/StepIcon/StepIcon.js +5 -5
  346. package/node/StepLabel/StepLabel.js +4 -4
  347. package/node/Stepper/StepperContext.js +11 -1
  348. package/node/Stepper/index.js +22 -1
  349. package/node/SvgIcon/SvgIcon.js +4 -4
  350. package/node/Tab/Tab.js +7 -7
  351. package/node/Table/Table.js +1 -1
  352. package/node/TablePagination/TablePagination.js +1 -1
  353. package/node/TableRow/TableRow.js +3 -3
  354. package/node/TableSortLabel/TableSortLabel.js +4 -4
  355. package/node/Tabs/Tabs.js +4 -4
  356. package/node/ToggleButton/ToggleButton.js +17 -10
  357. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  358. package/node/Tooltip/Tooltip.js +5 -5
  359. package/node/className/index.js +2 -2
  360. package/node/index.js +1 -1
  361. package/node/locale/index.js +22 -22
  362. package/node/styles/createMixins.js +5 -3
  363. package/node/styles/createPalette.js +2 -1
  364. package/node/styles/createTheme.js +1 -1
  365. package/node/styles/experimental_extendTheme.js +72 -45
  366. package/package.json +5 -5
  367. package/styles/ThemeProvider.d.ts +1 -1
  368. package/styles/createMixins.d.ts +2 -6
  369. package/styles/createMixins.js +5 -3
  370. package/styles/createPalette.d.ts +10 -3
  371. package/styles/createPalette.js +2 -1
  372. package/styles/createTheme.js +1 -1
  373. package/styles/experimental_extendTheme.d.ts +43 -16
  374. package/styles/experimental_extendTheme.js +72 -45
  375. package/styles/index.d.ts +1 -0
  376. package/transitions/index.d.ts +1 -1
  377. package/transitions/transition.d.ts +13 -13
  378. package/transitions/utils.d.ts +23 -23
  379. package/umd/material-ui.development.js +1079 -894
  380. package/umd/material-ui.production.min.js +21 -21
  381. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  382. package/useTouchRipple/index.d.ts +1 -1
  383. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  384. package/utils/getScrollbarSize.d.ts +2 -2
  385. package/utils/ownerDocument.d.ts +2 -2
  386. package/utils/ownerWindow.d.ts +2 -2
  387. package/utils/setRef.d.ts +2 -2
@@ -42,7 +42,7 @@ var DividerRoot = styled('div', {
42
42
  flexShrink: 0,
43
43
  borderWidth: 0,
44
44
  borderStyle: 'solid',
45
- borderColor: theme.palette.divider,
45
+ borderColor: (theme.vars || theme).palette.divider,
46
46
  borderBottomWidth: 'thin'
47
47
  }, ownerState.absolute && {
48
48
  position: 'absolute',
@@ -50,7 +50,7 @@ var DividerRoot = styled('div', {
50
50
  left: 0,
51
51
  width: '100%'
52
52
  }, ownerState.light && {
53
- borderColor: alpha(theme.palette.divider, 0.08)
53
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.dividerChannel, " / 0.08)") : alpha(theme.palette.divider, 0.08)
54
54
  }, ownerState.variant === 'inset' && {
55
55
  marginLeft: 72
56
56
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -78,7 +78,7 @@ var DividerRoot = styled('div', {
78
78
  '&::before, &::after': {
79
79
  position: 'relative',
80
80
  width: '100%',
81
- borderTop: "thin solid ".concat(theme.palette.divider),
81
+ borderTop: "thin solid ".concat((theme.vars || theme).palette.divider),
82
82
  top: '50%',
83
83
  content: '""',
84
84
  transform: 'translateY(50%)'
@@ -94,7 +94,7 @@ var DividerRoot = styled('div', {
94
94
  top: '0%',
95
95
  left: '50%',
96
96
  borderTop: 0,
97
- borderLeft: "thin solid ".concat(theme.palette.divider),
97
+ borderLeft: "thin solid ".concat((theme.vars || theme).palette.divider),
98
98
  transform: 'translateX(0%)'
99
99
  }
100
100
  });
@@ -40,7 +40,7 @@ var DrawerRoot = styled(Modal, {
40
40
  })(function (_ref) {
41
41
  var theme = _ref.theme;
42
42
  return {
43
- zIndex: theme.zIndex.drawer
43
+ zIndex: (theme.vars || theme).zIndex.drawer
44
44
  };
45
45
  });
46
46
  var DrawerDockedRoot = styled('div', {
@@ -68,7 +68,7 @@ var DrawerPaper = styled(Paper, {
68
68
  flexDirection: 'column',
69
69
  height: '100%',
70
70
  flex: '1 0 auto',
71
- zIndex: theme.zIndex.drawer,
71
+ zIndex: (theme.vars || theme).zIndex.drawer,
72
72
  // Add iOS momentum scrolling for iOS < 13.0
73
73
  WebkitOverflowScrolling: 'touch',
74
74
  // temporary style
@@ -96,13 +96,13 @@ var DrawerPaper = styled(Paper, {
96
96
  height: 'auto',
97
97
  maxHeight: '100%'
98
98
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
99
- borderRight: "1px solid ".concat(theme.palette.divider)
99
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.divider)
100
100
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
101
- borderBottom: "1px solid ".concat(theme.palette.divider)
101
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider)
102
102
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
103
- borderLeft: "1px solid ".concat(theme.palette.divider)
103
+ borderLeft: "1px solid ".concat((theme.vars || theme).palette.divider)
104
104
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
105
- borderTop: "1px solid ".concat(theme.palette.divider)
105
+ borderTop: "1px solid ".concat((theme.vars || theme).palette.divider)
106
106
  });
107
107
  });
108
108
  var oppositeDirection = {
package/legacy/Fab/Fab.js CHANGED
@@ -31,7 +31,7 @@ var FabRoot = styled(ButtonBase, {
31
31
  return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
32
32
  }
33
33
  })(function (_ref) {
34
- var _extends2;
34
+ var _theme$palette$getCon, _theme$palette, _extends2;
35
35
 
36
36
  var theme = _ref.theme,
37
37
  ownerState = _ref.ownerState;
@@ -45,27 +45,27 @@ var FabRoot = styled(ButtonBase, {
45
45
  minWidth: 0,
46
46
  width: 56,
47
47
  height: 56,
48
- zIndex: theme.zIndex.fab,
49
- boxShadow: theme.shadows[6],
48
+ zIndex: (theme.vars || theme).zIndex.fab,
49
+ boxShadow: (theme.vars || theme).shadows[6],
50
50
  '&:active': {
51
- boxShadow: theme.shadows[12]
51
+ boxShadow: (theme.vars || theme).shadows[12]
52
52
  },
53
- color: theme.palette.getContrastText(theme.palette.grey[300]),
54
- backgroundColor: theme.palette.grey[300],
53
+ color: theme.vars ? theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
54
+ backgroundColor: (theme.vars || theme).palette.grey[300],
55
55
  '&:hover': {
56
- backgroundColor: theme.palette.grey.A100,
56
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
57
57
  // Reset on touch devices, it doesn't add specificity
58
58
  '@media (hover: none)': {
59
- backgroundColor: theme.palette.grey[300]
59
+ backgroundColor: (theme.vars || theme).palette.grey[300]
60
60
  },
61
61
  textDecoration: 'none'
62
62
  }
63
63
  }, _defineProperty(_extends2, "&.".concat(fabClasses.focusVisible), {
64
- boxShadow: theme.shadows[6]
64
+ boxShadow: (theme.vars || theme).shadows[6]
65
65
  }), _defineProperty(_extends2, "&.".concat(fabClasses.disabled), {
66
- color: theme.palette.action.disabled,
67
- boxShadow: theme.shadows[0],
68
- backgroundColor: theme.palette.action.disabledBackground
66
+ color: (theme.vars || theme).palette.action.disabled,
67
+ boxShadow: (theme.vars || theme).shadows[0],
68
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
69
69
  }), _extends2), ownerState.size === 'small' && {
70
70
  width: 40,
71
71
  height: 40
@@ -97,14 +97,14 @@ var FabRoot = styled(ButtonBase, {
97
97
  }, function (_ref2) {
98
98
  var theme = _ref2.theme,
99
99
  ownerState = _ref2.ownerState;
100
- return _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
101
- color: theme.palette[ownerState.color].contrastText,
102
- backgroundColor: theme.palette[ownerState.color].main,
100
+ return _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
101
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
102
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
103
103
  '&:hover': {
104
- backgroundColor: theme.palette[ownerState.color].dark,
104
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
105
105
  // Reset on touch devices, it doesn't add specificity
106
106
  '@media (hover: none)': {
107
- backgroundColor: theme.palette[ownerState.color].main
107
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
108
108
  }
109
109
  }
110
110
  });
@@ -183,7 +183,9 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
183
183
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
184
184
  * @default 'default'
185
185
  */
186
- color: PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
186
+ color: PropTypes
187
+ /* @typescript-to-proptypes-ignore */
188
+ .oneOfType([PropTypes.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), PropTypes.string]),
187
189
 
188
190
  /**
189
191
  * The component used for the root node.
@@ -61,7 +61,7 @@ export var FormControlLabelRoot = styled('label', {
61
61
  flexDirection: 'column',
62
62
  marginLeft: 16
63
63
  }, _defineProperty({}, "& .".concat(formControlLabelClasses.label), _defineProperty({}, "&.".concat(formControlLabelClasses.disabled), {
64
- color: theme.palette.text.disabled
64
+ color: (theme.vars || theme).palette.text.disabled
65
65
  })));
66
66
  });
67
67
  /**
@@ -44,7 +44,7 @@ var FormHelperTextRoot = styled('p', {
44
44
  var theme = _ref.theme,
45
45
  ownerState = _ref.ownerState;
46
46
  return _extends({
47
- color: theme.palette.text.secondary
47
+ color: (theme.vars || theme).palette.text.secondary
48
48
  }, theme.typography.caption, (_extends2 = {
49
49
  textAlign: 'left',
50
50
  marginTop: 3,
@@ -52,9 +52,9 @@ var FormHelperTextRoot = styled('p', {
52
52
  marginBottom: 0,
53
53
  marginLeft: 0
54
54
  }, _defineProperty(_extends2, "&.".concat(formHelperTextClasses.disabled), {
55
- color: theme.palette.text.disabled
55
+ color: (theme.vars || theme).palette.text.disabled
56
56
  }), _defineProperty(_extends2, "&.".concat(formHelperTextClasses.error), {
57
- color: theme.palette.error.main
57
+ color: (theme.vars || theme).palette.error.main
58
58
  }), _extends2), ownerState.size === 'small' && {
59
59
  marginTop: 4
60
60
  }, ownerState.contained && {
@@ -41,17 +41,17 @@ export var FormLabelRoot = styled('label', {
41
41
  var theme = _ref2.theme,
42
42
  ownerState = _ref2.ownerState;
43
43
  return _extends({
44
- color: theme.palette.text.secondary
44
+ color: (theme.vars || theme).palette.text.secondary
45
45
  }, theme.typography.body1, (_extends2 = {
46
46
  lineHeight: '1.4375em',
47
47
  padding: 0,
48
48
  position: 'relative'
49
49
  }, _defineProperty(_extends2, "&.".concat(formLabelClasses.focused), {
50
- color: theme.palette[ownerState.color].main
50
+ color: (theme.vars || theme).palette[ownerState.color].main
51
51
  }), _defineProperty(_extends2, "&.".concat(formLabelClasses.disabled), {
52
- color: theme.palette.text.disabled
52
+ color: (theme.vars || theme).palette.text.disabled
53
53
  }), _defineProperty(_extends2, "&.".concat(formLabelClasses.error), {
54
- color: theme.palette.error.main
54
+ color: (theme.vars || theme).palette.error.main
55
55
  }), _extends2));
56
56
  });
57
57
  var AsteriskComponent = styled('span', {
@@ -63,7 +63,7 @@ var AsteriskComponent = styled('span', {
63
63
  })(function (_ref3) {
64
64
  var theme = _ref3.theme;
65
65
  return _defineProperty({}, "&.".concat(formLabelClasses.error), {
66
- color: theme.palette.error.main
66
+ color: (theme.vars || theme).palette.error.main
67
67
  });
68
68
  });
69
69
  var FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
@@ -50,14 +50,14 @@ var IconRoot = styled('span', {
50
50
  }[ownerState.fontSize],
51
51
  // TODO v5 deprecate, v6 remove for sx
52
52
  color: {
53
- primary: theme.palette.primary.main,
54
- secondary: theme.palette.secondary.main,
55
- info: theme.palette.info.main,
56
- success: theme.palette.success.main,
57
- warning: theme.palette.warning.main,
58
- action: theme.palette.action.active,
59
- error: theme.palette.error.main,
60
- disabled: theme.palette.action.disabled,
53
+ primary: (theme.vars || theme).palette.primary.main,
54
+ secondary: (theme.vars || theme).palette.secondary.main,
55
+ info: (theme.vars || theme).palette.info.main,
56
+ success: (theme.vars || theme).palette.success.main,
57
+ warning: (theme.vars || theme).palette.warning.main,
58
+ action: (theme.vars || theme).palette.action.active,
59
+ error: (theme.vars || theme).palette.error.main,
60
+ disabled: (theme.vars || theme).palette.action.disabled,
61
61
  inherit: undefined
62
62
  }[ownerState.color]
63
63
  };
@@ -44,13 +44,13 @@ var IconButtonRoot = styled(ButtonBase, {
44
44
  borderRadius: '50%',
45
45
  overflow: 'visible',
46
46
  // Explicitly set the default value to solve a bug on IE11.
47
- color: theme.palette.action.active,
47
+ color: (theme.vars || theme).palette.action.active,
48
48
  transition: theme.transitions.create('background-color', {
49
49
  duration: theme.transitions.duration.shortest
50
50
  })
51
51
  }, !ownerState.disableRipple && {
52
52
  '&:hover': {
53
- backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
53
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.active, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),
54
54
  // Reset on touch devices, it doesn't add specificity
55
55
  '@media (hover: none)': {
56
56
  backgroundColor: 'transparent'
@@ -67,10 +67,10 @@ var IconButtonRoot = styled(ButtonBase, {
67
67
  return _extends({}, ownerState.color === 'inherit' && {
68
68
  color: 'inherit'
69
69
  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && _extends({
70
- color: theme.palette[ownerState.color].main
70
+ color: (theme.vars || theme).palette[ownerState.color].main
71
71
  }, !ownerState.disableRipple && {
72
72
  '&:hover': {
73
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
73
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
74
74
  // Reset on touch devices, it doesn't add specificity
75
75
  '@media (hover: none)': {
76
76
  backgroundColor: 'transparent'
@@ -84,7 +84,7 @@ var IconButtonRoot = styled(ButtonBase, {
84
84
  fontSize: theme.typography.pxToRem(28)
85
85
  }, _defineProperty({}, "&.".concat(iconButtonClasses.disabled), {
86
86
  backgroundColor: 'transparent',
87
- color: theme.palette.action.disabled
87
+ color: (theme.vars || theme).palette.action.disabled
88
88
  }));
89
89
  });
90
90
  /**
@@ -67,7 +67,7 @@ var ImageListItemBarTitleWrap = styled('div', {
67
67
  return _extends({
68
68
  flexGrow: 1,
69
69
  padding: '12px 16px',
70
- color: theme.palette.common.white,
70
+ color: (theme.vars || theme).palette.common.white,
71
71
  overflow: 'hidden'
72
72
  }, ownerState.position === 'below' && {
73
73
  padding: '6px 0 12px',
@@ -41,6 +41,11 @@ var InputRoot = styled(InputBaseRoot, {
41
41
  ownerState = _ref.ownerState;
42
42
  var light = theme.palette.mode === 'light';
43
43
  var bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
44
+
45
+ if (theme.vars) {
46
+ bottomLineColor = "rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / ").concat(theme.vars.opacity.inputTouchBottomLine, ")");
47
+ }
48
+
44
49
  return _extends({
45
50
  position: 'relative'
46
51
  }, ownerState.formControl && {
@@ -49,7 +54,7 @@ var InputRoot = styled(InputBaseRoot, {
49
54
  }
50
55
  }, !ownerState.disableUnderline && (_ref2 = {
51
56
  '&:after': {
52
- borderBottom: "2px solid ".concat(theme.palette[ownerState.color].main),
57
+ borderBottom: "2px solid ".concat((theme.vars || theme).palette[ownerState.color].main),
53
58
  left: 0,
54
59
  bottom: 0,
55
60
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -69,7 +74,7 @@ var InputRoot = styled(InputBaseRoot, {
69
74
  // See https://github.com/mui/material-ui/issues/31766
70
75
  transform: 'scaleX(1) translateX(0)'
71
76
  }), _defineProperty(_ref2, "&.".concat(inputClasses.error, ":after"), {
72
- borderBottomColor: theme.palette.error.main,
77
+ borderBottomColor: (theme.vars || theme).palette.error.main,
73
78
  transform: 'scaleX(1)' // error is always underlined in red
74
79
 
75
80
  }), _defineProperty(_ref2, '&:before', {
@@ -86,7 +91,7 @@ var InputRoot = styled(InputBaseRoot, {
86
91
  pointerEvents: 'none' // Transparent to the hover style.
87
92
 
88
93
  }), _defineProperty(_ref2, "&:hover:not(.".concat(inputClasses.disabled, "):before"), {
89
- borderBottom: "2px solid ".concat(theme.palette.text.primary),
94
+ borderBottom: "2px solid ".concat((theme.vars || theme).palette.text.primary),
90
95
  // Reset on touch devices, it doesn't add specificity
91
96
  '@media (hover: none)': {
92
97
  borderBottom: "1px solid ".concat(bottomLineColor)
@@ -50,7 +50,7 @@ var InputAdornmentRoot = styled('div', {
50
50
  maxHeight: '2em',
51
51
  alignItems: 'center',
52
52
  whiteSpace: 'nowrap',
53
- color: theme.palette.action.active
53
+ color: (theme.vars || theme).palette.action.active
54
54
  }, ownerState.variant === 'filled' && _defineProperty({}, "&.".concat(inputAdornmentClasses.positionStart, "&:not(.").concat(inputAdornmentClasses.hiddenLabel, ")"), {
55
55
  marginTop: 16
56
56
  }), ownerState.position === 'start' && {
@@ -58,7 +58,7 @@ export var InputBaseRoot = styled('div', {
58
58
  var theme = _ref.theme,
59
59
  ownerState = _ref.ownerState;
60
60
  return _extends({}, theme.typography.body1, _defineProperty({
61
- color: theme.palette.text.primary,
61
+ color: (theme.vars || theme).palette.text.primary,
62
62
  lineHeight: '1.4375em',
63
63
  // 23px
64
64
  boxSizing: 'border-box',
@@ -68,7 +68,7 @@ export var InputBaseRoot = styled('div', {
68
68
  display: 'inline-flex',
69
69
  alignItems: 'center'
70
70
  }, "&.".concat(inputBaseClasses.disabled), {
71
- color: theme.palette.text.disabled,
71
+ color: (theme.vars || theme).palette.text.disabled,
72
72
  cursor: 'default'
73
73
  }), ownerState.multiline && _extends({
74
74
  padding: '4px 0 5px'
@@ -88,17 +88,25 @@ export var InputBaseComponent = styled('input', {
88
88
  var theme = _ref2.theme,
89
89
  ownerState = _ref2.ownerState;
90
90
  var light = theme.palette.mode === 'light';
91
- var placeholder = {
92
- color: 'currentColor',
93
- opacity: light ? 0.42 : 0.5,
91
+
92
+ var placeholder = _extends({
93
+ color: 'currentColor'
94
+ }, theme.vars ? {
95
+ opacity: theme.vars.opacity.placeholder
96
+ } : {
97
+ opacity: light ? 0.42 : 0.5
98
+ }, {
94
99
  transition: theme.transitions.create('opacity', {
95
100
  duration: theme.transitions.duration.shorter
96
101
  })
97
- };
102
+ });
103
+
98
104
  var placeholderHidden = {
99
105
  opacity: '0 !important'
100
106
  };
101
- var placeholderVisible = {
107
+ var placeholderVisible = theme.vars ? {
108
+ opacity: theme.vars.opacity.placeholder
109
+ } : {
102
110
  opacity: light ? 0.42 : 0.5
103
111
  };
104
112
  return _extends((_extends3 = {
@@ -157,7 +165,7 @@ export var InputBaseComponent = styled('input', {
157
165
  }), _defineProperty(_extends3, "&.".concat(inputBaseClasses.disabled), {
158
166
  opacity: 1,
159
167
  // Reset iOS opacity
160
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
168
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
161
169
 
162
170
  }), _defineProperty(_extends3, '&:-webkit-autofill', {
163
171
  animationDuration: '5000s',
@@ -10,7 +10,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
10
10
  import { alpha, getPath } from '@mui/system';
11
11
  import capitalize from '../utils/capitalize';
12
12
  import styled from '../styles/styled';
13
- import useTheme from '../styles/useTheme';
14
13
  import useThemeProps from '../styles/useThemeProps';
15
14
  import useIsFocusVisible from '../utils/useIsFocusVisible';
16
15
  import useForkRef from '../utils/useForkRef';
@@ -93,7 +92,6 @@ var LinkRoot = styled(Typography, {
93
92
  }));
94
93
  });
95
94
  var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
96
- var theme = useTheme();
97
95
  var props = useThemeProps({
98
96
  props: inProps,
99
97
  name: 'MuiLink'
@@ -114,8 +112,6 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
114
112
  sx = props.sx,
115
113
  other = _objectWithoutProperties(props, ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"]);
116
114
 
117
- var sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
118
-
119
115
  var _useIsFocusVisible = useIsFocusVisible(),
120
116
  isFocusVisibleRef = _useIsFocusVisible.isFocusVisibleRef,
121
117
  handleBlurVisible = _useIsFocusVisible.onBlur,
@@ -153,9 +149,7 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
153
149
  };
154
150
 
155
151
  var ownerState = _extends({}, props, {
156
- // It is too complex to support any types of `sx`.
157
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
158
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
152
+ color: color,
159
153
  component: component,
160
154
  focusVisible: focusVisible,
161
155
  underline: underline,
@@ -173,8 +167,8 @@ var Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
173
167
  ref: handlerRef,
174
168
  ownerState: ownerState,
175
169
  variant: variant,
176
- sx: [].concat(_toConsumableArray(inProps.color ? [{
177
- color: colorTransformations[color] || color
170
+ sx: [].concat(_toConsumableArray(!Object.keys(colorTransformations).includes(color) ? [{
171
+ color: color
178
172
  }] : []), _toConsumableArray(Array.isArray(sx) ? sx : [sx]))
179
173
  }, other));
180
174
  });
@@ -76,17 +76,17 @@ export var ListItemRoot = styled('div', {
76
76
  }), !!ownerState.secondaryAction && _defineProperty({}, "& > .".concat(listItemButtonClasses.root), {
77
77
  paddingRight: 48
78
78
  }), (_extends2 = {}, _defineProperty(_extends2, "&.".concat(listItemClasses.focusVisible), {
79
- backgroundColor: theme.palette.action.focus
79
+ backgroundColor: (theme.vars || theme).palette.action.focus
80
80
  }), _defineProperty(_extends2, "&.".concat(listItemClasses.selected), _defineProperty({
81
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
81
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
82
82
  }, "&.".concat(listItemClasses.focusVisible), {
83
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
83
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
84
84
  })), _defineProperty(_extends2, "&.".concat(listItemClasses.disabled), {
85
- opacity: theme.palette.action.disabledOpacity
85
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
86
86
  }), _extends2), ownerState.alignItems === 'flex-start' && {
87
87
  alignItems: 'flex-start'
88
88
  }, ownerState.divider && {
89
- borderBottom: "1px solid ".concat(theme.palette.divider),
89
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
90
90
  backgroundClip: 'padding-box'
91
91
  }, ownerState.button && _defineProperty({
92
92
  transition: theme.transitions.create('background-color', {
@@ -94,17 +94,17 @@ export var ListItemRoot = styled('div', {
94
94
  }),
95
95
  '&:hover': {
96
96
  textDecoration: 'none',
97
- backgroundColor: theme.palette.action.hover,
97
+ backgroundColor: (theme.vars || theme).palette.action.hover,
98
98
  // Reset on touch devices, it doesn't add specificity
99
99
  '@media (hover: none)': {
100
100
  backgroundColor: 'transparent'
101
101
  }
102
102
  }
103
103
  }, "&.".concat(listItemClasses.selected, ":hover"), {
104
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
104
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
105
105
  // Reset on touch devices, it doesn't add specificity
106
106
  '@media (hover: none)': {
107
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
107
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
108
108
  }
109
109
  }), ownerState.hasSecondaryAction && {
110
110
  // Add some space to avoid collision as `ListItemSecondaryAction`
@@ -63,28 +63,28 @@ var ListItemButtonRoot = styled(ButtonBase, {
63
63
  }),
64
64
  '&:hover': {
65
65
  textDecoration: 'none',
66
- backgroundColor: theme.palette.action.hover,
66
+ backgroundColor: (theme.vars || theme).palette.action.hover,
67
67
  // Reset on touch devices, it doesn't add specificity
68
68
  '@media (hover: none)': {
69
69
  backgroundColor: 'transparent'
70
70
  }
71
71
  }
72
72
  }, _defineProperty(_extends2, "&.".concat(listItemButtonClasses.selected), _defineProperty({
73
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
73
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
74
74
  }, "&.".concat(listItemButtonClasses.focusVisible), {
75
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
75
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
76
76
  })), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.selected, ":hover"), {
77
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
77
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
78
78
  // Reset on touch devices, it doesn't add specificity
79
79
  '@media (hover: none)': {
80
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
80
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
81
81
  }
82
82
  }), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.focusVisible), {
83
- backgroundColor: theme.palette.action.focus
83
+ backgroundColor: (theme.vars || theme).palette.action.focus
84
84
  }), _defineProperty(_extends2, "&.".concat(listItemButtonClasses.disabled), {
85
- opacity: theme.palette.action.disabledOpacity
85
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
86
86
  }), _extends2), ownerState.divider && {
87
- borderBottom: "1px solid ".concat(theme.palette.divider),
87
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
88
88
  backgroundClip: 'padding-box'
89
89
  }, ownerState.alignItems === 'flex-start' && {
90
90
  alignItems: 'flex-start'
@@ -151,7 +151,8 @@ var ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inPro
151
151
  value: childContext,
152
152
  children: /*#__PURE__*/_jsx(ListItemButtonRoot, _extends({
153
153
  ref: handleRef,
154
- component: component,
154
+ href: other.href || other.to,
155
+ component: (other.href || other.to) && component === 'div' ? 'a' : component,
155
156
  focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
156
157
  ownerState: ownerState
157
158
  }, other, {
@@ -233,6 +234,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
233
234
  */
234
235
  focusVisibleClassName: PropTypes.string,
235
236
 
237
+ /**
238
+ * @ignore
239
+ */
240
+ href: PropTypes.string,
241
+
236
242
  /**
237
243
  * Use to apply selected styling.
238
244
  * @default false
@@ -31,7 +31,7 @@ var ListItemIconRoot = styled('div', {
31
31
  ownerState = _ref.ownerState;
32
32
  return _extends({
33
33
  minWidth: 56,
34
- color: theme.palette.action.active,
34
+ color: (theme.vars || theme).palette.action.active,
35
35
  flexShrink: 0,
36
36
  display: 'inline-flex'
37
37
  }, ownerState.alignItems === 'flex-start' && {
@@ -36,12 +36,12 @@ var ListSubheaderRoot = styled('li', {
36
36
  boxSizing: 'border-box',
37
37
  lineHeight: '48px',
38
38
  listStyle: 'none',
39
- color: theme.palette.text.secondary,
39
+ color: (theme.vars || theme).palette.text.secondary,
40
40
  fontFamily: theme.typography.fontFamily,
41
41
  fontWeight: theme.typography.fontWeightMedium,
42
42
  fontSize: theme.typography.pxToRem(14)
43
43
  }, ownerState.color === 'primary' && {
44
- color: theme.palette.primary.main
44
+ color: (theme.vars || theme).palette.primary.main
45
45
  }, ownerState.color === 'inherit' && {
46
46
  color: 'inherit'
47
47
  }, !ownerState.disableGutters && {
@@ -53,7 +53,7 @@ var ListSubheaderRoot = styled('li', {
53
53
  position: 'sticky',
54
54
  top: 0,
55
55
  zIndex: 1,
56
- backgroundColor: theme.palette.background.paper
56
+ backgroundColor: (theme.vars || theme).palette.background.paper
57
57
  });
58
58
  });
59
59
  var ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {
@@ -63,31 +63,31 @@ var MenuItemRoot = styled(ButtonBase, {
63
63
  paddingLeft: 16,
64
64
  paddingRight: 16
65
65
  }, ownerState.divider && {
66
- borderBottom: "1px solid ".concat(theme.palette.divider),
66
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider),
67
67
  backgroundClip: 'padding-box'
68
68
  }, (_extends2 = {
69
69
  '&:hover': {
70
70
  textDecoration: 'none',
71
- backgroundColor: theme.palette.action.hover,
71
+ backgroundColor: (theme.vars || theme).palette.action.hover,
72
72
  // Reset on touch devices, it doesn't add specificity
73
73
  '@media (hover: none)': {
74
74
  backgroundColor: 'transparent'
75
75
  }
76
76
  }
77
77
  }, _defineProperty(_extends2, "&.".concat(menuItemClasses.selected), _defineProperty({
78
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
78
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
79
79
  }, "&.".concat(menuItemClasses.focusVisible), {
80
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
80
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
81
81
  })), _defineProperty(_extends2, "&.".concat(menuItemClasses.selected, ":hover"), {
82
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
82
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
83
83
  // Reset on touch devices, it doesn't add specificity
84
84
  '@media (hover: none)': {
85
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
85
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
86
86
  }
87
87
  }), _defineProperty(_extends2, "&.".concat(menuItemClasses.focusVisible), {
88
- backgroundColor: theme.palette.action.focus
88
+ backgroundColor: (theme.vars || theme).palette.action.focus
89
89
  }), _defineProperty(_extends2, "&.".concat(menuItemClasses.disabled), {
90
- opacity: theme.palette.action.disabledOpacity
90
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
91
91
  }), _defineProperty(_extends2, "& + .".concat(dividerClasses.root), {
92
92
  marginTop: theme.spacing(1),
93
93
  marginBottom: theme.spacing(1)
@@ -88,7 +88,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
88
88
  return false;
89
89
  }
90
90
  /**
91
- * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
91
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
92
92
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
93
93
  * use it separately you need to move focus into the component manually. Once
94
94
  * the focus is placed inside the component it is fully keyboard accessible.