@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
@@ -100,7 +100,7 @@ const InputBaseRoot = (0, _styled.default)('div', {
100
100
  theme,
101
101
  ownerState
102
102
  }) => (0, _extends2.default)({}, theme.typography.body1, {
103
- color: theme.palette.text.primary,
103
+ color: (theme.vars || theme).palette.text.primary,
104
104
  lineHeight: '1.4375em',
105
105
  // 23px
106
106
  boxSizing: 'border-box',
@@ -110,7 +110,7 @@ const InputBaseRoot = (0, _styled.default)('div', {
110
110
  display: 'inline-flex',
111
111
  alignItems: 'center',
112
112
  [`&.${_inputBaseClasses.default.disabled}`]: {
113
- color: theme.palette.text.disabled,
113
+ color: (theme.vars || theme).palette.text.disabled,
114
114
  cursor: 'default'
115
115
  }
116
116
  }, ownerState.multiline && (0, _extends2.default)({
@@ -130,17 +130,23 @@ const InputBaseComponent = (0, _styled.default)('input', {
130
130
  ownerState
131
131
  }) => {
132
132
  const light = theme.palette.mode === 'light';
133
- const placeholder = {
134
- color: 'currentColor',
135
- opacity: light ? 0.42 : 0.5,
133
+ const placeholder = (0, _extends2.default)({
134
+ color: 'currentColor'
135
+ }, theme.vars ? {
136
+ opacity: theme.vars.opacity.placeholder
137
+ } : {
138
+ opacity: light ? 0.42 : 0.5
139
+ }, {
136
140
  transition: theme.transitions.create('opacity', {
137
141
  duration: theme.transitions.duration.shorter
138
142
  })
139
- };
143
+ });
140
144
  const placeholderHidden = {
141
145
  opacity: '0 !important'
142
146
  };
143
- const placeholderVisible = {
147
+ const placeholderVisible = theme.vars ? {
148
+ opacity: theme.vars.opacity.placeholder
149
+ } : {
144
150
  opacity: light ? 0.42 : 0.5
145
151
  };
146
152
  return (0, _extends2.default)({
@@ -201,7 +207,7 @@ const InputBaseComponent = (0, _styled.default)('input', {
201
207
  [`&.${_inputBaseClasses.default.disabled}`]: {
202
208
  opacity: 1,
203
209
  // Reset iOS opacity
204
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
210
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
205
211
 
206
212
  },
207
213
  '&:-webkit-autofill': {
package/node/Link/Link.js CHANGED
@@ -27,8 +27,6 @@ var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
27
27
 
28
28
  var _styled = _interopRequireDefault(require("../styles/styled"));
29
29
 
30
- var _useTheme = _interopRequireDefault(require("../styles/useTheme"));
31
-
32
30
  var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
33
31
 
34
32
  var _useIsFocusVisible = _interopRequireDefault(require("../utils/useIsFocusVisible"));
@@ -129,7 +127,6 @@ const LinkRoot = (0, _styled.default)(_Typography.default, {
129
127
  });
130
128
  });
131
129
  const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
132
- const theme = (0, _useTheme.default)();
133
130
  const props = (0, _useThemeProps.default)({
134
131
  props: inProps,
135
132
  name: 'MuiLink'
@@ -146,7 +143,6 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
146
143
  sx
147
144
  } = props,
148
145
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
149
- const sxColor = typeof sx === 'function' ? sx(theme).color : sx == null ? void 0 : sx.color;
150
146
  const {
151
147
  isFocusVisibleRef,
152
148
  onBlur: handleBlurVisible,
@@ -181,9 +177,7 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
181
177
  };
182
178
 
183
179
  const ownerState = (0, _extends2.default)({}, props, {
184
- // It is too complex to support any types of `sx`.
185
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
186
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
180
+ color,
187
181
  component,
188
182
  focusVisible,
189
183
  underline,
@@ -200,8 +194,8 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
200
194
  ref: handlerRef,
201
195
  ownerState: ownerState,
202
196
  variant: variant,
203
- sx: [...(inProps.color ? [{
204
- color: colorTransformations[color] || color
197
+ sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
198
+ color
205
199
  }] : []), ...(Array.isArray(sx) ? sx : [sx])]
206
200
  }, other));
207
201
  });
@@ -116,21 +116,21 @@ const ListItemRoot = (0, _styled.default)('div', {
116
116
  }
117
117
  }, {
118
118
  [`&.${_listItemClasses.default.focusVisible}`]: {
119
- backgroundColor: theme.palette.action.focus
119
+ backgroundColor: (theme.vars || theme).palette.action.focus
120
120
  },
121
121
  [`&.${_listItemClasses.default.selected}`]: {
122
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
122
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
123
123
  [`&.${_listItemClasses.default.focusVisible}`]: {
124
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
124
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
125
125
  }
126
126
  },
127
127
  [`&.${_listItemClasses.default.disabled}`]: {
128
- opacity: theme.palette.action.disabledOpacity
128
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
129
129
  }
130
130
  }, ownerState.alignItems === 'flex-start' && {
131
131
  alignItems: 'flex-start'
132
132
  }, ownerState.divider && {
133
- borderBottom: `1px solid ${theme.palette.divider}`,
133
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
134
134
  backgroundClip: 'padding-box'
135
135
  }, ownerState.button && {
136
136
  transition: theme.transitions.create('background-color', {
@@ -138,17 +138,17 @@ const ListItemRoot = (0, _styled.default)('div', {
138
138
  }),
139
139
  '&:hover': {
140
140
  textDecoration: 'none',
141
- backgroundColor: theme.palette.action.hover,
141
+ backgroundColor: (theme.vars || theme).palette.action.hover,
142
142
  // Reset on touch devices, it doesn't add specificity
143
143
  '@media (hover: none)': {
144
144
  backgroundColor: 'transparent'
145
145
  }
146
146
  },
147
147
  [`&.${_listItemClasses.default.selected}:hover`]: {
148
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
148
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
149
149
  // Reset on touch devices, it doesn't add specificity
150
150
  '@media (hover: none)': {
151
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
151
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
152
152
  }
153
153
  }
154
154
  }, ownerState.hasSecondaryAction && {
@@ -94,33 +94,33 @@ const ListItemButtonRoot = (0, _styled.default)(_ButtonBase.default, {
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
  [`&.${_listItemButtonClasses.default.selected}`]: {
104
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
104
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
105
105
  [`&.${_listItemButtonClasses.default.focusVisible}`]: {
106
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
106
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
107
107
  }
108
108
  },
109
109
  [`&.${_listItemButtonClasses.default.selected}:hover`]: {
110
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
110
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
111
111
  // Reset on touch devices, it doesn't add specificity
112
112
  '@media (hover: none)': {
113
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
113
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
114
114
  }
115
115
  },
116
116
  [`&.${_listItemButtonClasses.default.focusVisible}`]: {
117
- backgroundColor: theme.palette.action.focus
117
+ backgroundColor: (theme.vars || theme).palette.action.focus
118
118
  },
119
119
  [`&.${_listItemButtonClasses.default.disabled}`]: {
120
- opacity: theme.palette.action.disabledOpacity
120
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
121
121
  }
122
122
  }, ownerState.divider && {
123
- borderBottom: `1px solid ${theme.palette.divider}`,
123
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
124
124
  backgroundClip: 'padding-box'
125
125
  }, ownerState.alignItems === 'flex-start' && {
126
126
  alignItems: 'flex-start'
@@ -177,7 +177,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
177
177
  value: childContext,
178
178
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ListItemButtonRoot, (0, _extends2.default)({
179
179
  ref: handleRef,
180
- component: component,
180
+ href: other.href || other.to,
181
+ component: (other.href || other.to) && component === 'div' ? 'a' : component,
181
182
  focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
182
183
  ownerState: ownerState
183
184
  }, other, {
@@ -259,6 +260,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
259
260
  */
260
261
  focusVisibleClassName: _propTypes.default.string,
261
262
 
263
+ /**
264
+ * @ignore
265
+ */
266
+ href: _propTypes.default.string,
267
+
262
268
  /**
263
269
  * Use to apply selected styling.
264
270
  * @default false
@@ -60,7 +60,7 @@ const ListItemIconRoot = (0, _styled.default)('div', {
60
60
  ownerState
61
61
  }) => (0, _extends2.default)({
62
62
  minWidth: 56,
63
- color: theme.palette.action.active,
63
+ color: (theme.vars || theme).palette.action.active,
64
64
  flexShrink: 0,
65
65
  display: 'inline-flex'
66
66
  }, ownerState.alignItems === 'flex-start' && {
@@ -65,12 +65,12 @@ const ListSubheaderRoot = (0, _styled.default)('li', {
65
65
  boxSizing: 'border-box',
66
66
  lineHeight: '48px',
67
67
  listStyle: 'none',
68
- color: theme.palette.text.secondary,
68
+ color: (theme.vars || theme).palette.text.secondary,
69
69
  fontFamily: theme.typography.fontFamily,
70
70
  fontWeight: theme.typography.fontWeightMedium,
71
71
  fontSize: theme.typography.pxToRem(14)
72
72
  }, ownerState.color === 'primary' && {
73
- color: theme.palette.primary.main
73
+ color: (theme.vars || theme).palette.primary.main
74
74
  }, ownerState.color === 'inherit' && {
75
75
  color: 'inherit'
76
76
  }, !ownerState.disableGutters && {
@@ -82,7 +82,7 @@ const ListSubheaderRoot = (0, _styled.default)('li', {
82
82
  position: 'sticky',
83
83
  top: 0,
84
84
  zIndex: 1,
85
- backgroundColor: theme.palette.background.paper
85
+ backgroundColor: (theme.vars || theme).palette.background.paper
86
86
  }));
87
87
  const ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {
88
88
  const props = (0, _useThemeProps.default)({
@@ -97,35 +97,35 @@ const MenuItemRoot = (0, _styled.default)(_ButtonBase.default, {
97
97
  paddingLeft: 16,
98
98
  paddingRight: 16
99
99
  }, ownerState.divider && {
100
- borderBottom: `1px solid ${theme.palette.divider}`,
100
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
101
101
  backgroundClip: 'padding-box'
102
102
  }, {
103
103
  '&:hover': {
104
104
  textDecoration: 'none',
105
- backgroundColor: theme.palette.action.hover,
105
+ backgroundColor: (theme.vars || theme).palette.action.hover,
106
106
  // Reset on touch devices, it doesn't add specificity
107
107
  '@media (hover: none)': {
108
108
  backgroundColor: 'transparent'
109
109
  }
110
110
  },
111
111
  [`&.${_menuItemClasses.default.selected}`]: {
112
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
112
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
113
113
  [`&.${_menuItemClasses.default.focusVisible}`]: {
114
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
114
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
115
115
  }
116
116
  },
117
117
  [`&.${_menuItemClasses.default.selected}:hover`]: {
118
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
118
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
119
119
  // Reset on touch devices, it doesn't add specificity
120
120
  '@media (hover: none)': {
121
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
121
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity)
122
122
  }
123
123
  },
124
124
  [`&.${_menuItemClasses.default.focusVisible}`]: {
125
- backgroundColor: theme.palette.action.focus
125
+ backgroundColor: (theme.vars || theme).palette.action.focus
126
126
  },
127
127
  [`&.${_menuItemClasses.default.disabled}`]: {
128
- opacity: theme.palette.action.disabledOpacity
128
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
129
129
  },
130
130
  [`& + .${_Divider.dividerClasses.root}`]: {
131
131
  marginTop: theme.spacing(1),
@@ -113,7 +113,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
113
113
  return false;
114
114
  }
115
115
  /**
116
- * A permanently displayed menu following https://www.w3.org/TR/wai-aria-practices/#menubutton.
116
+ * A permanently displayed menu following https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/.
117
117
  * It's exposed to help customization of the [`Menu`](/material-ui/api/menu/) component if you
118
118
  * use it separately you need to move focus into the component manually. Once
119
119
  * the focus is placed inside the component it is fully keyboard accessible.
@@ -73,20 +73,20 @@ const MobileStepperRoot = (0, _styled.default)(_Paper.default, {
73
73
  flexDirection: 'row',
74
74
  justifyContent: 'space-between',
75
75
  alignItems: 'center',
76
- background: theme.palette.background.default,
76
+ background: (theme.vars || theme).palette.background.default,
77
77
  padding: 8
78
78
  }, ownerState.position === 'bottom' && {
79
79
  position: 'fixed',
80
80
  bottom: 0,
81
81
  left: 0,
82
82
  right: 0,
83
- zIndex: theme.zIndex.mobileStepper
83
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
84
84
  }, ownerState.position === 'top' && {
85
85
  position: 'fixed',
86
86
  top: 0,
87
87
  left: 0,
88
88
  right: 0,
89
- zIndex: theme.zIndex.mobileStepper
89
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
90
90
  }));
91
91
  const MobileStepperDots = (0, _styled.default)('div', {
92
92
  name: 'MuiMobileStepper',
@@ -116,13 +116,13 @@ const MobileStepperDot = (0, _styled.default)('div', {
116
116
  transition: theme.transitions.create('background-color', {
117
117
  duration: theme.transitions.duration.shortest
118
118
  }),
119
- backgroundColor: theme.palette.action.disabled,
119
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
120
120
  borderRadius: '50%',
121
121
  width: 8,
122
122
  height: 8,
123
123
  margin: '0 2px'
124
124
  }, dotActive && {
125
- backgroundColor: theme.palette.primary.main
125
+ backgroundColor: (theme.vars || theme).palette.primary.main
126
126
  })));
127
127
  const MobileStepperProgress = (0, _styled.default)(_LinearProgress.default, {
128
128
  name: 'MuiMobileStepper',
@@ -56,7 +56,7 @@ const ModalRoot = (0, _styled.default)('div', {
56
56
  ownerState
57
57
  }) => (0, _extends2.default)({
58
58
  position: 'fixed',
59
- zIndex: theme.zIndex.modal,
59
+ zIndex: (theme.vars || theme).zIndex.modal,
60
60
  right: 0,
61
61
  bottom: 0,
62
62
  top: 0,
@@ -96,10 +96,10 @@ const PaginationItemEllipsis = (0, _styled.default)('div', {
96
96
  minWidth: 32,
97
97
  padding: '0 6px',
98
98
  margin: '0 3px',
99
- color: theme.palette.text.primary,
99
+ color: (theme.vars || theme).palette.text.primary,
100
100
  height: 'auto',
101
101
  [`&.${_paginationItemClasses.default.disabled}`]: {
102
- opacity: theme.palette.action.disabledOpacity
102
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
103
103
  }
104
104
  }, ownerState.size === 'small' && {
105
105
  minWidth: 26,
@@ -127,39 +127,39 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
127
127
  height: 32,
128
128
  padding: '0 6px',
129
129
  margin: '0 3px',
130
- color: theme.palette.text.primary,
130
+ color: (theme.vars || theme).palette.text.primary,
131
131
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
132
- backgroundColor: theme.palette.action.focus
132
+ backgroundColor: (theme.vars || theme).palette.action.focus
133
133
  },
134
134
  [`&.${_paginationItemClasses.default.disabled}`]: {
135
- opacity: theme.palette.action.disabledOpacity
135
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
136
136
  },
137
137
  transition: theme.transitions.create(['color', 'background-color'], {
138
138
  duration: theme.transitions.duration.short
139
139
  }),
140
140
  '&:hover': {
141
- backgroundColor: theme.palette.action.hover,
141
+ backgroundColor: (theme.vars || theme).palette.action.hover,
142
142
  // Reset on touch devices, it doesn't add specificity
143
143
  '@media (hover: none)': {
144
144
  backgroundColor: 'transparent'
145
145
  }
146
146
  },
147
147
  [`&.${_paginationItemClasses.default.selected}`]: {
148
- backgroundColor: theme.palette.action.selected,
148
+ backgroundColor: (theme.vars || theme).palette.action.selected,
149
149
  '&:hover': {
150
- backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
150
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
151
151
  // Reset on touch devices, it doesn't add specificity
152
152
  '@media (hover: none)': {
153
- backgroundColor: theme.palette.action.selected
153
+ backgroundColor: (theme.vars || theme).palette.action.selected
154
154
  }
155
155
  },
156
156
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
157
- backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
157
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
158
158
  },
159
159
  [`&.${_paginationItemClasses.default.disabled}`]: {
160
160
  opacity: 1,
161
- color: theme.palette.action.disabled,
162
- backgroundColor: theme.palette.action.selected
161
+ color: (theme.vars || theme).palette.action.disabled,
162
+ backgroundColor: (theme.vars || theme).palette.action.selected
163
163
  }
164
164
  }
165
165
  }, ownerState.size === 'small' && {
@@ -175,49 +175,49 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
175
175
  padding: '0 10px',
176
176
  fontSize: theme.typography.pxToRem(15)
177
177
  }, ownerState.shape === 'rounded' && {
178
- borderRadius: theme.shape.borderRadius
178
+ borderRadius: (theme.vars || theme).shape.borderRadius
179
179
  }), ({
180
180
  theme,
181
181
  ownerState
182
182
  }) => (0, _extends2.default)({}, ownerState.variant === 'text' && {
183
183
  [`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
184
- color: theme.palette[ownerState.color].contrastText,
185
- backgroundColor: theme.palette[ownerState.color].main,
184
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
185
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
186
186
  '&:hover': {
187
- backgroundColor: theme.palette[ownerState.color].dark,
187
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
188
188
  // Reset on touch devices, it doesn't add specificity
189
189
  '@media (hover: none)': {
190
- backgroundColor: theme.palette[ownerState.color].main
190
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
191
191
  }
192
192
  },
193
193
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
194
- backgroundColor: theme.palette[ownerState.color].dark
194
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
195
195
  }
196
196
  }, {
197
197
  [`&.${_paginationItemClasses.default.disabled}`]: {
198
- color: theme.palette.action.disabled
198
+ color: (theme.vars || theme).palette.action.disabled
199
199
  }
200
200
  })
201
201
  }, ownerState.variant === 'outlined' && {
202
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
202
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
203
203
  [`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
204
- color: theme.palette[ownerState.color].main,
205
- border: `1px solid ${(0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
206
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
204
+ color: (theme.vars || theme).palette[ownerState.color].main,
205
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
206
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
207
207
  '&:hover': {
208
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
208
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
209
209
  // Reset on touch devices, it doesn't add specificity
210
210
  '@media (hover: none)': {
211
211
  backgroundColor: 'transparent'
212
212
  }
213
213
  },
214
214
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
215
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
215
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
216
216
  }
217
217
  }, {
218
218
  [`&.${_paginationItemClasses.default.disabled}`]: {
219
- borderColor: theme.palette.action.disabledBackground,
220
- color: theme.palette.action.disabled
219
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
220
+ color: (theme.vars || theme).palette.action.disabled
221
221
  }
222
222
  })
223
223
  }));
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.default = void 0;
8
+ exports.getOverlayAlpha = exports.default = void 0;
9
9
 
10
10
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
11
 
@@ -52,6 +52,8 @@ const getOverlayAlpha = elevation => {
52
52
  return (alphaValue / 100).toFixed(2);
53
53
  };
54
54
 
55
+ exports.getOverlayAlpha = getOverlayAlpha;
56
+
55
57
  const useUtilityClasses = ownerState => {
56
58
  const {
57
59
  square,
@@ -77,19 +79,25 @@ const PaperRoot = (0, _styled.default)('div', {
77
79
  })(({
78
80
  theme,
79
81
  ownerState
80
- }) => (0, _extends2.default)({
81
- backgroundColor: theme.palette.background.paper,
82
- color: theme.palette.text.primary,
83
- transition: theme.transitions.create('box-shadow')
84
- }, !ownerState.square && {
85
- borderRadius: theme.shape.borderRadius
86
- }, ownerState.variant === 'outlined' && {
87
- border: `1px solid ${theme.palette.divider}`
88
- }, ownerState.variant === 'elevation' && (0, _extends2.default)({
89
- boxShadow: theme.shadows[ownerState.elevation]
90
- }, theme.palette.mode === 'dark' && {
91
- backgroundImage: `linear-gradient(${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))}, ${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))})`
92
- })));
82
+ }) => {
83
+ var _theme$vars$overlays;
84
+
85
+ return (0, _extends2.default)({
86
+ backgroundColor: (theme.vars || theme).palette.background.paper,
87
+ color: (theme.vars || theme).palette.text.primary,
88
+ transition: theme.transitions.create('box-shadow')
89
+ }, !ownerState.square && {
90
+ borderRadius: theme.shape.borderRadius
91
+ }, ownerState.variant === 'outlined' && {
92
+ border: `1px solid ${(theme.vars || theme).palette.divider}`
93
+ }, ownerState.variant === 'elevation' && (0, _extends2.default)({
94
+ boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
95
+ }, !theme.vars && theme.palette.mode === 'dark' && {
96
+ backgroundImage: `linear-gradient(${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))}, ${(0, _system.alpha)('#fff', getOverlayAlpha(ownerState.elevation))})`
97
+ }, theme.vars && {
98
+ backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
99
+ }));
100
+ });
93
101
  const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
94
102
  const props = (0, _useThemeProps.default)({
95
103
  props: inProps,
@@ -70,9 +70,9 @@ const RadioRoot = (0, _styled.default)(_SwitchBase.default, {
70
70
  theme,
71
71
  ownerState
72
72
  }) => (0, _extends2.default)({
73
- color: theme.palette.text.secondary,
73
+ color: (theme.vars || theme).palette.text.secondary,
74
74
  '&:hover': {
75
- backgroundColor: (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
75
+ backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
76
76
  // Reset on touch devices, it doesn't add specificity
77
77
  '@media (hover: none)': {
78
78
  backgroundColor: 'transparent'
@@ -80,11 +80,11 @@ const RadioRoot = (0, _styled.default)(_SwitchBase.default, {
80
80
  }
81
81
  }, ownerState.color !== 'default' && {
82
82
  [`&.${_radioClasses.default.checked}`]: {
83
- color: theme.palette[ownerState.color].main
83
+ color: (theme.vars || theme).palette[ownerState.color].main
84
84
  }
85
85
  }, {
86
86
  [`&.${_radioClasses.default.disabled}`]: {
87
- color: theme.palette.action.disabled
87
+ color: (theme.vars || theme).palette.action.disabled
88
88
  }
89
89
  }));
90
90
 
@@ -119,7 +119,7 @@ const RatingRoot = (0, _styled.default)('span', {
119
119
  textAlign: 'left',
120
120
  WebkitTapHighlightColor: 'transparent',
121
121
  [`&.${_ratingClasses.default.disabled}`]: {
122
- opacity: theme.palette.action.disabledOpacity,
122
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
123
123
  pointerEvents: 'none'
124
124
  },
125
125
  [`&.${_ratingClasses.default.focusVisible} .${_ratingClasses.default.iconActive}`]: {
@@ -172,7 +172,7 @@ const RatingIcon = (0, _styled.default)('span', {
172
172
  }, ownerState.iconActive && {
173
173
  transform: 'scale(1.2)'
174
174
  }, ownerState.iconEmpty && {
175
- color: theme.palette.action.disabled
175
+ color: (theme.vars || theme).palette.action.disabled
176
176
  }));
177
177
  const RatingDecimal = (0, _styled.default)('span', {
178
178
  name: 'MuiRating',
@@ -339,8 +339,8 @@ const SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, re
339
339
 
340
340
  const handleKeyDown = event => {
341
341
  if (!readOnly) {
342
- const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by
343
- // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
342
+ const validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
343
+ // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
344
344
  'Enter'];
345
345
 
346
346
  if (validKeys.indexOf(event.key) !== -1) {
@@ -52,11 +52,7 @@ const SliderRoot = (0, _styled.default)('span', {
52
52
  const {
53
53
  ownerState
54
54
  } = props;
55
- const marks = ownerState.marksProp === true && ownerState.step !== null ? [...Array(Math.floor((ownerState.max - ownerState.min) / ownerState.step) + 1)].map((_, index) => ({
56
- value: ownerState.min + ownerState.step * index
57
- })) : ownerState.marksProp || [];
58
- const marked = marks.length > 0 && marks.some(mark => mark.label);
59
- return [styles.root, styles[`color${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${(0, _capitalize.default)(ownerState.size)}`], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
55
+ return [styles.root, styles[`color${(0, _capitalize.default)(ownerState.color)}`], ownerState.size !== 'medium' && styles[`size${(0, _capitalize.default)(ownerState.size)}`], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
60
56
  }
61
57
  })(({
62
58
  theme,
@@ -80,7 +80,7 @@ const SnackbarRoot = (0, _styled.default)('div', {
80
80
  transform: 'translateX(50%)'
81
81
  });
82
82
  return (0, _extends2.default)({
83
- zIndex: theme.zIndex.snackbar,
83
+ zIndex: (theme.vars || theme).zIndex.snackbar,
84
84
  position: 'fixed',
85
85
  display: 'flex',
86
86
  left: 8,
@@ -104,7 +104,7 @@ const SpeedDialRoot = (0, _styled.default)('div', {
104
104
  theme,
105
105
  ownerState
106
106
  }) => (0, _extends2.default)({
107
- zIndex: theme.zIndex.speedDial,
107
+ zIndex: (theme.vars || theme).zIndex.speedDial,
108
108
  display: 'flex',
109
109
  alignItems: 'center',
110
110
  pointerEvents: 'none'