@mui/material 5.6.3 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/Autocomplete.d.ts +23 -1
  11. package/Autocomplete/Autocomplete.js +18 -16
  12. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  13. package/Avatar/avatarClasses.d.ts +20 -20
  14. package/AvatarGroup/AvatarGroup.js +2 -2
  15. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  16. package/Backdrop/backdropClasses.d.ts +10 -10
  17. package/Badge/Badge.d.ts +1 -34
  18. package/Badge/Badge.js +2 -2
  19. package/Badge/badgeClasses.d.ts +56 -24
  20. package/BottomNavigation/BottomNavigation.js +1 -1
  21. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  22. package/BottomNavigationAction/BottomNavigationAction.js +2 -2
  23. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  24. package/Box/Box.js +1 -1
  25. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  26. package/Button/buttonClasses.d.ts +76 -76
  27. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  28. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  29. package/ButtonGroup/ButtonGroup.js +10 -10
  30. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  31. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  32. package/CHANGELOG.md +238 -0
  33. package/Card/cardClasses.d.ts +8 -8
  34. package/CardActionArea/CardActionArea.js +2 -2
  35. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  36. package/CardActions/cardActionsClasses.d.ts +10 -10
  37. package/CardContent/cardContentClasses.d.ts +8 -8
  38. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  39. package/CardMedia/cardMediaClasses.d.ts +12 -12
  40. package/Checkbox/checkboxClasses.d.ts +18 -18
  41. package/Chip/chipClasses.d.ts +80 -80
  42. package/CircularProgress/CircularProgress.js +1 -1
  43. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  44. package/ClickAwayListener/index.d.ts +2 -2
  45. package/Collapse/collapseClasses.d.ts +18 -18
  46. package/Container/Container.js +17 -106
  47. package/Container/containerClasses.d.ts +6 -22
  48. package/CssBaseline/CssBaseline.js +4 -4
  49. package/Dialog/DialogContext.d.ts +6 -6
  50. package/Dialog/dialogClasses.d.ts +36 -36
  51. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  52. package/DialogContent/DialogContent.js +2 -2
  53. package/DialogContent/dialogContentClasses.d.ts +10 -10
  54. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  55. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  56. package/Divider/Divider.js +4 -4
  57. package/Divider/dividerClasses.d.ts +34 -34
  58. package/Drawer/Drawer.js +6 -6
  59. package/Drawer/drawerClasses.d.ts +30 -30
  60. package/Fab/Fab.js +69 -65
  61. package/Fab/fabClasses.d.ts +26 -26
  62. package/FilledInput/FilledInput.js +3 -1
  63. package/FilledInput/filledInputClasses.d.ts +40 -40
  64. package/FormControl/formControlClasses.d.ts +14 -14
  65. package/FormControlLabel/FormControlLabel.js +1 -1
  66. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  67. package/FormGroup/formGroupClasses.d.ts +12 -12
  68. package/FormHelperText/FormHelperText.js +3 -3
  69. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  70. package/FormLabel/FormLabel.js +5 -5
  71. package/FormLabel/formLabelClasses.d.ts +22 -22
  72. package/Grid/gridClasses.d.ts +48 -48
  73. package/Icon/Icon.js +8 -8
  74. package/Icon/iconClasses.d.ts +24 -24
  75. package/IconButton/IconButton.js +5 -5
  76. package/IconButton/iconButtonClasses.d.ts +26 -26
  77. package/ImageList/imageListClasses.d.ts +16 -16
  78. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  79. package/ImageListItemBar/ImageListItemBar.js +1 -1
  80. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  81. package/Input/Input.js +9 -4
  82. package/Input/inputClasses.d.ts +34 -34
  83. package/InputAdornment/InputAdornment.js +1 -1
  84. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  85. package/InputBase/InputBase.js +16 -8
  86. package/InputBase/inputBaseClasses.d.ts +44 -44
  87. package/InputLabel/inputLabelClasses.d.ts +32 -32
  88. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  89. package/Link/Link.js +3 -8
  90. package/Link/linkClasses.d.ts +18 -18
  91. package/List/listClasses.d.ts +14 -14
  92. package/ListItem/ListItem.js +8 -8
  93. package/ListItem/listItemClasses.d.ts +30 -30
  94. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  95. package/ListItemButton/ListItemButton.js +8 -8
  96. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  97. package/ListItemIcon/ListItemIcon.js +1 -1
  98. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  99. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  100. package/ListItemText/listItemTextClasses.d.ts +18 -18
  101. package/ListSubheader/ListSubheader.js +3 -3
  102. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  103. package/Menu/menuClasses.d.ts +12 -12
  104. package/MenuItem/MenuItem.js +8 -8
  105. package/MenuItem/menuItemClasses.d.ts +20 -20
  106. package/MobileStepper/MobileStepper.js +5 -5
  107. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  108. package/Modal/Modal.js +1 -1
  109. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  110. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  111. package/Pagination/paginationClasses.d.ts +14 -14
  112. package/PaginationItem/PaginationItem.js +27 -27
  113. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  114. package/Paper/paperClasses.d.ts +39 -39
  115. package/Popover/popoverClasses.d.ts +10 -10
  116. package/Popper/Popper.d.ts +29 -29
  117. package/README.md +2 -3
  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/selectClasses.d.ts +30 -30
  125. package/Skeleton/skeletonClasses.d.ts +24 -24
  126. package/Snackbar/Snackbar.js +1 -1
  127. package/Snackbar/snackbarClasses.d.ts +20 -20
  128. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  129. package/SpeedDial/SpeedDial.js +1 -1
  130. package/SpeedDial/speedDialClasses.d.ts +22 -22
  131. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  132. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  133. package/Step/StepContext.d.ts +20 -20
  134. package/Step/stepClasses.d.ts +16 -16
  135. package/StepButton/stepButtonClasses.d.ts +14 -14
  136. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  137. package/StepContent/stepContentClasses.d.ts +12 -12
  138. package/StepIcon/StepIcon.js +5 -5
  139. package/StepIcon/stepIconClasses.d.ts +16 -16
  140. package/StepLabel/StepLabel.js +4 -4
  141. package/StepLabel/stepLabelClasses.d.ts +28 -28
  142. package/Stepper/StepperContext.d.ts +18 -0
  143. package/Stepper/StepperContext.js +10 -2
  144. package/Stepper/index.d.ts +3 -0
  145. package/Stepper/index.js +3 -1
  146. package/Stepper/stepperClasses.d.ts +14 -14
  147. package/SvgIcon/SvgIcon.js +4 -4
  148. package/SvgIcon/svgIconClasses.d.ts +24 -24
  149. package/Switch/switchClasses.d.ts +32 -32
  150. package/Tab/Tab.js +7 -7
  151. package/Tab/tabClasses.d.ts +26 -26
  152. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  153. package/Table/Table.js +1 -1
  154. package/Table/tableClasses.d.ts +10 -10
  155. package/TableBody/tableBodyClasses.d.ts +8 -8
  156. package/TableCell/tableCellClasses.d.ts +32 -32
  157. package/TableContainer/tableContainerClasses.d.ts +8 -8
  158. package/TableFooter/tableFooterClasses.d.ts +8 -8
  159. package/TableHead/tableHeadClasses.d.ts +8 -8
  160. package/TablePagination/TablePagination.js +1 -1
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/TableRow.js +3 -3
  163. package/TableRow/tableRowClasses.d.ts +16 -16
  164. package/TableSortLabel/TableSortLabel.js +4 -4
  165. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  166. package/Tabs/Tabs.d.ts +1 -1
  167. package/Tabs/Tabs.js +2 -2
  168. package/Tabs/tabsClasses.d.ts +32 -32
  169. package/TextField/textFieldClasses.d.ts +8 -8
  170. package/ToggleButton/ToggleButton.js +17 -10
  171. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  172. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  173. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  174. package/Toolbar/toolbarClasses.d.ts +14 -14
  175. package/Tooltip/Tooltip.js +5 -5
  176. package/Tooltip/tooltipClasses.d.ts +30 -30
  177. package/Typography/typographyClasses.d.ts +50 -50
  178. package/className/index.d.ts +1 -8
  179. package/className/index.js +1 -8
  180. package/darkScrollbar/index.d.ts +28 -28
  181. package/index.js +1 -1
  182. package/internal/switchBaseClasses.d.ts +12 -12
  183. package/legacy/Accordion/Accordion.js +6 -6
  184. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  187. package/legacy/Badge/Badge.js +2 -2
  188. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  189. package/legacy/BottomNavigationAction/BottomNavigationAction.js +2 -2
  190. package/legacy/Box/Box.js +1 -1
  191. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  192. package/legacy/CardActionArea/CardActionArea.js +2 -2
  193. package/legacy/CircularProgress/CircularProgress.js +1 -1
  194. package/legacy/Container/Container.js +18 -103
  195. package/legacy/CssBaseline/CssBaseline.js +4 -4
  196. package/legacy/DialogContent/DialogContent.js +2 -2
  197. package/legacy/Divider/Divider.js +4 -4
  198. package/legacy/Drawer/Drawer.js +6 -6
  199. package/legacy/Fab/Fab.js +17 -17
  200. package/legacy/FilledInput/FilledInput.js +2 -2
  201. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  202. package/legacy/FormHelperText/FormHelperText.js +3 -3
  203. package/legacy/FormLabel/FormLabel.js +5 -5
  204. package/legacy/Icon/Icon.js +8 -8
  205. package/legacy/IconButton/IconButton.js +5 -5
  206. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  207. package/legacy/Input/Input.js +8 -3
  208. package/legacy/InputAdornment/InputAdornment.js +1 -1
  209. package/legacy/InputBase/InputBase.js +16 -8
  210. package/legacy/Link/Link.js +3 -9
  211. package/legacy/ListItem/ListItem.js +8 -8
  212. package/legacy/ListItemButton/ListItemButton.js +8 -8
  213. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  214. package/legacy/ListSubheader/ListSubheader.js +3 -3
  215. package/legacy/MenuItem/MenuItem.js +8 -8
  216. package/legacy/MobileStepper/MobileStepper.js +5 -5
  217. package/legacy/Modal/Modal.js +1 -1
  218. package/legacy/PaginationItem/PaginationItem.js +27 -27
  219. package/legacy/Rating/Rating.js +2 -2
  220. package/legacy/Snackbar/Snackbar.js +1 -1
  221. package/legacy/SpeedDial/SpeedDial.js +1 -1
  222. package/legacy/StepIcon/StepIcon.js +5 -5
  223. package/legacy/StepLabel/StepLabel.js +4 -4
  224. package/legacy/Stepper/StepperContext.js +10 -2
  225. package/legacy/Stepper/index.js +3 -1
  226. package/legacy/SvgIcon/SvgIcon.js +4 -4
  227. package/legacy/Tab/Tab.js +7 -7
  228. package/legacy/Table/Table.js +1 -1
  229. package/legacy/TablePagination/TablePagination.js +1 -1
  230. package/legacy/TableRow/TableRow.js +3 -3
  231. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  232. package/legacy/Tabs/Tabs.js +2 -2
  233. package/legacy/ToggleButton/ToggleButton.js +16 -9
  234. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  235. package/legacy/Tooltip/Tooltip.js +5 -5
  236. package/legacy/className/index.js +1 -8
  237. package/legacy/index.js +1 -1
  238. package/legacy/locale/index.js +23 -23
  239. package/legacy/styles/createMixins.js +1 -1
  240. package/legacy/styles/createPalette.js +2 -1
  241. package/legacy/styles/createTheme.js +1 -1
  242. package/legacy/styles/experimental_extendTheme.js +52 -43
  243. package/locale/index.d.ts +71 -71
  244. package/locale/index.js +23 -23
  245. package/modern/Accordion/Accordion.js +6 -6
  246. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  249. package/modern/Badge/Badge.js +2 -2
  250. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  251. package/modern/BottomNavigationAction/BottomNavigationAction.js +2 -2
  252. package/modern/Box/Box.js +1 -1
  253. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  254. package/modern/CardActionArea/CardActionArea.js +2 -2
  255. package/modern/CircularProgress/CircularProgress.js +1 -1
  256. package/modern/Container/Container.js +17 -106
  257. package/modern/CssBaseline/CssBaseline.js +4 -4
  258. package/modern/DialogContent/DialogContent.js +2 -2
  259. package/modern/Divider/Divider.js +4 -4
  260. package/modern/Drawer/Drawer.js +6 -6
  261. package/modern/Fab/Fab.js +16 -16
  262. package/modern/FilledInput/FilledInput.js +1 -1
  263. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  264. package/modern/FormHelperText/FormHelperText.js +3 -3
  265. package/modern/FormLabel/FormLabel.js +5 -5
  266. package/modern/Icon/Icon.js +8 -8
  267. package/modern/IconButton/IconButton.js +5 -5
  268. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  269. package/modern/Input/Input.js +9 -4
  270. package/modern/InputAdornment/InputAdornment.js +1 -1
  271. package/modern/InputBase/InputBase.js +16 -8
  272. package/modern/Link/Link.js +3 -8
  273. package/modern/ListItem/ListItem.js +8 -8
  274. package/modern/ListItemButton/ListItemButton.js +8 -8
  275. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  276. package/modern/ListSubheader/ListSubheader.js +3 -3
  277. package/modern/MenuItem/MenuItem.js +8 -8
  278. package/modern/MobileStepper/MobileStepper.js +5 -5
  279. package/modern/Modal/Modal.js +1 -1
  280. package/modern/PaginationItem/PaginationItem.js +27 -27
  281. package/modern/Rating/Rating.js +2 -2
  282. package/modern/Snackbar/Snackbar.js +1 -1
  283. package/modern/SpeedDial/SpeedDial.js +1 -1
  284. package/modern/StepIcon/StepIcon.js +5 -5
  285. package/modern/StepLabel/StepLabel.js +4 -4
  286. package/modern/Stepper/StepperContext.js +10 -2
  287. package/modern/Stepper/index.js +3 -1
  288. package/modern/SvgIcon/SvgIcon.js +3 -3
  289. package/modern/Tab/Tab.js +7 -7
  290. package/modern/Table/Table.js +1 -1
  291. package/modern/TablePagination/TablePagination.js +1 -1
  292. package/modern/TableRow/TableRow.js +3 -3
  293. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  294. package/modern/Tabs/Tabs.js +2 -2
  295. package/modern/ToggleButton/ToggleButton.js +17 -10
  296. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  297. package/modern/Tooltip/Tooltip.js +5 -5
  298. package/modern/className/index.js +1 -8
  299. package/modern/index.js +1 -1
  300. package/modern/locale/index.js +23 -23
  301. package/modern/styles/createMixins.js +1 -1
  302. package/modern/styles/createPalette.js +2 -1
  303. package/modern/styles/createTheme.js +1 -1
  304. package/modern/styles/experimental_extendTheme.js +56 -45
  305. package/node/Accordion/Accordion.js +6 -6
  306. package/node/AccordionSummary/AccordionSummary.js +3 -3
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/AvatarGroup/AvatarGroup.js +2 -2
  309. package/node/Badge/Badge.js +2 -2
  310. package/node/BottomNavigation/BottomNavigation.js +1 -1
  311. package/node/BottomNavigationAction/BottomNavigationAction.js +2 -2
  312. package/node/Box/Box.js +2 -2
  313. package/node/ButtonGroup/ButtonGroup.js +10 -10
  314. package/node/CardActionArea/CardActionArea.js +2 -2
  315. package/node/CircularProgress/CircularProgress.js +1 -1
  316. package/node/Container/Container.js +17 -113
  317. package/node/CssBaseline/CssBaseline.js +4 -4
  318. package/node/DialogContent/DialogContent.js +2 -2
  319. package/node/Divider/Divider.js +4 -4
  320. package/node/Drawer/Drawer.js +6 -6
  321. package/node/Fab/Fab.js +69 -65
  322. package/node/FilledInput/FilledInput.js +3 -1
  323. package/node/FormControlLabel/FormControlLabel.js +1 -1
  324. package/node/FormHelperText/FormHelperText.js +3 -3
  325. package/node/FormLabel/FormLabel.js +5 -5
  326. package/node/Icon/Icon.js +8 -8
  327. package/node/IconButton/IconButton.js +5 -5
  328. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  329. package/node/Input/Input.js +9 -4
  330. package/node/InputAdornment/InputAdornment.js +1 -1
  331. package/node/InputBase/InputBase.js +14 -8
  332. package/node/Link/Link.js +3 -9
  333. package/node/ListItem/ListItem.js +8 -8
  334. package/node/ListItemButton/ListItemButton.js +8 -8
  335. package/node/ListItemIcon/ListItemIcon.js +1 -1
  336. package/node/ListSubheader/ListSubheader.js +3 -3
  337. package/node/MenuItem/MenuItem.js +8 -8
  338. package/node/MobileStepper/MobileStepper.js +5 -5
  339. package/node/Modal/Modal.js +1 -1
  340. package/node/PaginationItem/PaginationItem.js +27 -27
  341. package/node/Rating/Rating.js +2 -2
  342. package/node/Snackbar/Snackbar.js +1 -1
  343. package/node/SpeedDial/SpeedDial.js +1 -1
  344. package/node/StepIcon/StepIcon.js +5 -5
  345. package/node/StepLabel/StepLabel.js +4 -4
  346. package/node/Stepper/StepperContext.js +11 -1
  347. package/node/Stepper/index.js +22 -1
  348. package/node/SvgIcon/SvgIcon.js +4 -4
  349. package/node/Tab/Tab.js +7 -7
  350. package/node/Table/Table.js +1 -1
  351. package/node/TablePagination/TablePagination.js +1 -1
  352. package/node/TableRow/TableRow.js +3 -3
  353. package/node/TableSortLabel/TableSortLabel.js +4 -4
  354. package/node/Tabs/Tabs.js +2 -2
  355. package/node/ToggleButton/ToggleButton.js +17 -10
  356. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  357. package/node/Tooltip/Tooltip.js +5 -5
  358. package/node/className/index.js +2 -2
  359. package/node/index.js +1 -1
  360. package/node/locale/index.js +23 -23
  361. package/node/styles/createMixins.js +1 -1
  362. package/node/styles/createPalette.js +2 -1
  363. package/node/styles/createTheme.js +1 -1
  364. package/node/styles/experimental_extendTheme.js +57 -47
  365. package/package.json +5 -5
  366. package/styles/ThemeProvider.d.ts +1 -1
  367. package/styles/createMixins.d.ts +2 -6
  368. package/styles/createMixins.js +1 -1
  369. package/styles/createPalette.d.ts +9 -2
  370. package/styles/createPalette.js +2 -1
  371. package/styles/createTheme.js +1 -1
  372. package/styles/experimental_extendTheme.d.ts +13 -16
  373. package/styles/experimental_extendTheme.js +57 -46
  374. package/transitions/index.d.ts +1 -1
  375. package/transitions/transition.d.ts +13 -13
  376. package/transitions/utils.d.ts +23 -23
  377. package/umd/material-ui.development.js +915 -767
  378. package/umd/material-ui.production.min.js +19 -19
  379. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  380. package/useTouchRipple/index.d.ts +1 -1
  381. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  382. package/utils/getScrollbarSize.d.ts +2 -2
  383. package/utils/ownerDocument.d.ts +2 -2
  384. package/utils/ownerWindow.d.ts +2 -2
  385. package/utils/setRef.d.ts +2 -2
@@ -64,7 +64,7 @@ export const InputBaseRoot = styled('div', {
64
64
  theme,
65
65
  ownerState
66
66
  }) => _extends({}, theme.typography.body1, {
67
- color: theme.palette.text.primary,
67
+ color: (theme.vars || theme).palette.text.primary,
68
68
  lineHeight: '1.4375em',
69
69
  // 23px
70
70
  boxSizing: 'border-box',
@@ -74,7 +74,7 @@ export const InputBaseRoot = styled('div', {
74
74
  display: 'inline-flex',
75
75
  alignItems: 'center',
76
76
  [`&.${inputBaseClasses.disabled}`]: {
77
- color: theme.palette.text.disabled,
77
+ color: (theme.vars || theme).palette.text.disabled,
78
78
  cursor: 'default'
79
79
  }
80
80
  }, ownerState.multiline && _extends({
@@ -93,17 +93,25 @@ export const InputBaseComponent = styled('input', {
93
93
  ownerState
94
94
  }) => {
95
95
  const light = theme.palette.mode === 'light';
96
- const placeholder = {
97
- color: 'currentColor',
98
- opacity: light ? 0.42 : 0.5,
96
+
97
+ const placeholder = _extends({
98
+ color: 'currentColor'
99
+ }, theme.vars ? {
100
+ opacity: theme.vars.opacity.placeholder
101
+ } : {
102
+ opacity: light ? 0.42 : 0.5
103
+ }, {
99
104
  transition: theme.transitions.create('opacity', {
100
105
  duration: theme.transitions.duration.shorter
101
106
  })
102
- };
107
+ });
108
+
103
109
  const placeholderHidden = {
104
110
  opacity: '0 !important'
105
111
  };
106
- const placeholderVisible = {
112
+ const placeholderVisible = theme.vars ? {
113
+ opacity: theme.vars.opacity.placeholder
114
+ } : {
107
115
  opacity: light ? 0.42 : 0.5
108
116
  };
109
117
  return _extends({
@@ -164,7 +172,7 @@ export const InputBaseComponent = styled('input', {
164
172
  [`&.${inputBaseClasses.disabled}`]: {
165
173
  opacity: 1,
166
174
  // Reset iOS opacity
167
- WebkitTextFillColor: theme.palette.text.disabled // Fix opacity Safari bug
175
+ WebkitTextFillColor: (theme.vars || theme).palette.text.disabled // Fix opacity Safari bug
168
176
 
169
177
  },
170
178
  '&:-webkit-autofill': {
@@ -9,7 +9,6 @@ import { unstable_composeClasses as composeClasses } from '@mui/base';
9
9
  import { alpha, getPath } from '@mui/system';
10
10
  import capitalize from '../utils/capitalize';
11
11
  import styled from '../styles/styled';
12
- import useTheme from '../styles/useTheme';
13
12
  import useThemeProps from '../styles/useThemeProps';
14
13
  import useIsFocusVisible from '../utils/useIsFocusVisible';
15
14
  import useForkRef from '../utils/useForkRef';
@@ -98,7 +97,6 @@ const LinkRoot = styled(Typography, {
98
97
  });
99
98
  });
100
99
  const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
101
- const theme = useTheme();
102
100
  const props = useThemeProps({
103
101
  props: inProps,
104
102
  name: 'MuiLink'
@@ -117,7 +115,6 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
117
115
  } = props,
118
116
  other = _objectWithoutPropertiesLoose(props, _excluded);
119
117
 
120
- const sxColor = typeof sx === 'function' ? sx(theme).color : sx?.color;
121
118
  const {
122
119
  isFocusVisibleRef,
123
120
  onBlur: handleBlurVisible,
@@ -152,9 +149,7 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
152
149
  };
153
150
 
154
151
  const ownerState = _extends({}, props, {
155
- // It is too complex to support any types of `sx`.
156
- // Need to find a better way to get rid of the color manipulation for `textDecorationColor`.
157
- color: (typeof sxColor === 'function' ? sxColor(theme) : sxColor) || color,
152
+ color,
158
153
  component,
159
154
  focusVisible,
160
155
  underline,
@@ -172,8 +167,8 @@ const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
172
167
  ref: handlerRef,
173
168
  ownerState: ownerState,
174
169
  variant: variant,
175
- sx: [...(inProps.color ? [{
176
- color: colorTransformations[color] || color
170
+ sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
171
+ color
177
172
  }] : []), ...(Array.isArray(sx) ? sx : [sx])]
178
173
  }, other));
179
174
  });
@@ -82,21 +82,21 @@ export const ListItemRoot = styled('div', {
82
82
  }
83
83
  }, {
84
84
  [`&.${listItemClasses.focusVisible}`]: {
85
- backgroundColor: theme.palette.action.focus
85
+ backgroundColor: (theme.vars || theme).palette.action.focus
86
86
  },
87
87
  [`&.${listItemClasses.selected}`]: {
88
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
88
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
89
89
  [`&.${listItemClasses.focusVisible}`]: {
90
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
90
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
91
91
  }
92
92
  },
93
93
  [`&.${listItemClasses.disabled}`]: {
94
- opacity: theme.palette.action.disabledOpacity
94
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
95
95
  }
96
96
  }, ownerState.alignItems === 'flex-start' && {
97
97
  alignItems: 'flex-start'
98
98
  }, ownerState.divider && {
99
- borderBottom: `1px solid ${theme.palette.divider}`,
99
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
100
100
  backgroundClip: 'padding-box'
101
101
  }, ownerState.button && {
102
102
  transition: theme.transitions.create('background-color', {
@@ -104,17 +104,17 @@ export const ListItemRoot = styled('div', {
104
104
  }),
105
105
  '&:hover': {
106
106
  textDecoration: 'none',
107
- backgroundColor: theme.palette.action.hover,
107
+ backgroundColor: (theme.vars || theme).palette.action.hover,
108
108
  // Reset on touch devices, it doesn't add specificity
109
109
  '@media (hover: none)': {
110
110
  backgroundColor: 'transparent'
111
111
  }
112
112
  },
113
113
  [`&.${listItemClasses.selected}:hover`]: {
114
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
114
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
115
115
  // Reset on touch devices, it doesn't add specificity
116
116
  '@media (hover: none)': {
117
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
117
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
118
118
  }
119
119
  }
120
120
  }, ownerState.hasSecondaryAction && {
@@ -63,33 +63,33 @@ const 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
  [`&.${listItemButtonClasses.selected}`]: {
73
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
73
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
74
74
  [`&.${listItemButtonClasses.focusVisible}`]: {
75
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
75
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
76
76
  }
77
77
  },
78
78
  [`&.${listItemButtonClasses.selected}:hover`]: {
79
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
79
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
80
80
  // Reset on touch devices, it doesn't add specificity
81
81
  '@media (hover: none)': {
82
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
82
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
83
83
  }
84
84
  },
85
85
  [`&.${listItemButtonClasses.focusVisible}`]: {
86
- backgroundColor: theme.palette.action.focus
86
+ backgroundColor: (theme.vars || theme).palette.action.focus
87
87
  },
88
88
  [`&.${listItemButtonClasses.disabled}`]: {
89
- opacity: theme.palette.action.disabledOpacity
89
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
90
90
  }
91
91
  }, ownerState.divider && {
92
- borderBottom: `1px solid ${theme.palette.divider}`,
92
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
93
93
  backgroundClip: 'padding-box'
94
94
  }, ownerState.alignItems === 'flex-start' && {
95
95
  alignItems: 'flex-start'
@@ -36,7 +36,7 @@ const ListItemIconRoot = styled('div', {
36
36
  ownerState
37
37
  }) => _extends({
38
38
  minWidth: 56,
39
- color: theme.palette.action.active,
39
+ color: (theme.vars || theme).palette.action.active,
40
40
  flexShrink: 0,
41
41
  display: 'inline-flex'
42
42
  }, ownerState.alignItems === 'flex-start' && {
@@ -41,12 +41,12 @@ const ListSubheaderRoot = styled('li', {
41
41
  boxSizing: 'border-box',
42
42
  lineHeight: '48px',
43
43
  listStyle: 'none',
44
- color: theme.palette.text.secondary,
44
+ color: (theme.vars || theme).palette.text.secondary,
45
45
  fontFamily: theme.typography.fontFamily,
46
46
  fontWeight: theme.typography.fontWeightMedium,
47
47
  fontSize: theme.typography.pxToRem(14)
48
48
  }, ownerState.color === 'primary' && {
49
- color: theme.palette.primary.main
49
+ color: (theme.vars || theme).palette.primary.main
50
50
  }, ownerState.color === 'inherit' && {
51
51
  color: 'inherit'
52
52
  }, !ownerState.disableGutters && {
@@ -58,7 +58,7 @@ const ListSubheaderRoot = styled('li', {
58
58
  position: 'sticky',
59
59
  top: 0,
60
60
  zIndex: 1,
61
- backgroundColor: theme.palette.background.paper
61
+ backgroundColor: (theme.vars || theme).palette.background.paper
62
62
  }));
63
63
  const ListSubheader = /*#__PURE__*/React.forwardRef(function ListSubheader(inProps, ref) {
64
64
  const props = useThemeProps({
@@ -63,35 +63,35 @@ const MenuItemRoot = styled(ButtonBase, {
63
63
  paddingLeft: 16,
64
64
  paddingRight: 16
65
65
  }, ownerState.divider && {
66
- borderBottom: `1px solid ${theme.palette.divider}`,
66
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
67
67
  backgroundClip: 'padding-box'
68
68
  }, {
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
  [`&.${menuItemClasses.selected}`]: {
78
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
78
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
79
79
  [`&.${menuItemClasses.focusVisible}`]: {
80
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
80
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
81
81
  }
82
82
  },
83
83
  [`&.${menuItemClasses.selected}:hover`]: {
84
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
84
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
85
85
  // Reset on touch devices, it doesn't add specificity
86
86
  '@media (hover: none)': {
87
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
87
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
88
88
  }
89
89
  },
90
90
  [`&.${menuItemClasses.focusVisible}`]: {
91
- backgroundColor: theme.palette.action.focus
91
+ backgroundColor: (theme.vars || theme).palette.action.focus
92
92
  },
93
93
  [`&.${menuItemClasses.disabled}`]: {
94
- opacity: theme.palette.action.disabledOpacity
94
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
95
95
  },
96
96
  [`& + .${dividerClasses.root}`]: {
97
97
  marginTop: theme.spacing(1),
@@ -47,20 +47,20 @@ const MobileStepperRoot = styled(Paper, {
47
47
  flexDirection: 'row',
48
48
  justifyContent: 'space-between',
49
49
  alignItems: 'center',
50
- background: theme.palette.background.default,
50
+ background: (theme.vars || theme).palette.background.default,
51
51
  padding: 8
52
52
  }, ownerState.position === 'bottom' && {
53
53
  position: 'fixed',
54
54
  bottom: 0,
55
55
  left: 0,
56
56
  right: 0,
57
- zIndex: theme.zIndex.mobileStepper
57
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
58
58
  }, ownerState.position === 'top' && {
59
59
  position: 'fixed',
60
60
  top: 0,
61
61
  left: 0,
62
62
  right: 0,
63
- zIndex: theme.zIndex.mobileStepper
63
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
64
64
  }));
65
65
  const MobileStepperDots = styled('div', {
66
66
  name: 'MuiMobileStepper',
@@ -90,13 +90,13 @@ const MobileStepperDot = styled('div', {
90
90
  transition: theme.transitions.create('background-color', {
91
91
  duration: theme.transitions.duration.shortest
92
92
  }),
93
- backgroundColor: theme.palette.action.disabled,
93
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
94
94
  borderRadius: '50%',
95
95
  width: 8,
96
96
  height: 8,
97
97
  margin: '0 2px'
98
98
  }, dotActive && {
99
- backgroundColor: theme.palette.primary.main
99
+ backgroundColor: (theme.vars || theme).palette.primary.main
100
100
  })));
101
101
  const MobileStepperProgress = styled(LinearProgress, {
102
102
  name: 'MuiMobileStepper',
@@ -30,7 +30,7 @@ const ModalRoot = styled('div', {
30
30
  ownerState
31
31
  }) => _extends({
32
32
  position: 'fixed',
33
- zIndex: theme.zIndex.modal,
33
+ zIndex: (theme.vars || theme).zIndex.modal,
34
34
  right: 0,
35
35
  bottom: 0,
36
36
  top: 0,
@@ -66,10 +66,10 @@ const PaginationItemEllipsis = styled('div', {
66
66
  minWidth: 32,
67
67
  padding: '0 6px',
68
68
  margin: '0 3px',
69
- color: theme.palette.text.primary,
69
+ color: (theme.vars || theme).palette.text.primary,
70
70
  height: 'auto',
71
71
  [`&.${paginationItemClasses.disabled}`]: {
72
- opacity: theme.palette.action.disabledOpacity
72
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
73
73
  }
74
74
  }, ownerState.size === 'small' && {
75
75
  minWidth: 26,
@@ -97,39 +97,39 @@ const PaginationItemPage = styled(ButtonBase, {
97
97
  height: 32,
98
98
  padding: '0 6px',
99
99
  margin: '0 3px',
100
- color: theme.palette.text.primary,
100
+ color: (theme.vars || theme).palette.text.primary,
101
101
  [`&.${paginationItemClasses.focusVisible}`]: {
102
- backgroundColor: theme.palette.action.focus
102
+ backgroundColor: (theme.vars || theme).palette.action.focus
103
103
  },
104
104
  [`&.${paginationItemClasses.disabled}`]: {
105
- opacity: theme.palette.action.disabledOpacity
105
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
106
106
  },
107
107
  transition: theme.transitions.create(['color', 'background-color'], {
108
108
  duration: theme.transitions.duration.short
109
109
  }),
110
110
  '&:hover': {
111
- backgroundColor: theme.palette.action.hover,
111
+ backgroundColor: (theme.vars || theme).palette.action.hover,
112
112
  // Reset on touch devices, it doesn't add specificity
113
113
  '@media (hover: none)': {
114
114
  backgroundColor: 'transparent'
115
115
  }
116
116
  },
117
117
  [`&.${paginationItemClasses.selected}`]: {
118
- backgroundColor: theme.palette.action.selected,
118
+ backgroundColor: (theme.vars || theme).palette.action.selected,
119
119
  '&:hover': {
120
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
120
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
121
121
  // Reset on touch devices, it doesn't add specificity
122
122
  '@media (hover: none)': {
123
- backgroundColor: theme.palette.action.selected
123
+ backgroundColor: (theme.vars || theme).palette.action.selected
124
124
  }
125
125
  },
126
126
  [`&.${paginationItemClasses.focusVisible}`]: {
127
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
127
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
128
128
  },
129
129
  [`&.${paginationItemClasses.disabled}`]: {
130
130
  opacity: 1,
131
- color: theme.palette.action.disabled,
132
- backgroundColor: theme.palette.action.selected
131
+ color: (theme.vars || theme).palette.action.disabled,
132
+ backgroundColor: (theme.vars || theme).palette.action.selected
133
133
  }
134
134
  }
135
135
  }, ownerState.size === 'small' && {
@@ -145,49 +145,49 @@ const PaginationItemPage = styled(ButtonBase, {
145
145
  padding: '0 10px',
146
146
  fontSize: theme.typography.pxToRem(15)
147
147
  }, ownerState.shape === 'rounded' && {
148
- borderRadius: theme.shape.borderRadius
148
+ borderRadius: (theme.vars || theme).shape.borderRadius
149
149
  }), ({
150
150
  theme,
151
151
  ownerState
152
152
  }) => _extends({}, ownerState.variant === 'text' && {
153
153
  [`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
154
- color: theme.palette[ownerState.color].contrastText,
155
- backgroundColor: theme.palette[ownerState.color].main,
154
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
155
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
156
156
  '&:hover': {
157
- backgroundColor: theme.palette[ownerState.color].dark,
157
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
158
158
  // Reset on touch devices, it doesn't add specificity
159
159
  '@media (hover: none)': {
160
- backgroundColor: theme.palette[ownerState.color].main
160
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
161
161
  }
162
162
  },
163
163
  [`&.${paginationItemClasses.focusVisible}`]: {
164
- backgroundColor: theme.palette[ownerState.color].dark
164
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
165
165
  }
166
166
  }, {
167
167
  [`&.${paginationItemClasses.disabled}`]: {
168
- color: theme.palette.action.disabled
168
+ color: (theme.vars || theme).palette.action.disabled
169
169
  }
170
170
  })
171
171
  }, ownerState.variant === 'outlined' && {
172
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
172
+ 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)'}`,
173
173
  [`&.${paginationItemClasses.selected}`]: _extends({}, ownerState.color !== 'standard' && {
174
- color: theme.palette[ownerState.color].main,
175
- border: `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`,
176
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
174
+ color: (theme.vars || theme).palette[ownerState.color].main,
175
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
176
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
177
177
  '&:hover': {
178
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
178
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
179
179
  // Reset on touch devices, it doesn't add specificity
180
180
  '@media (hover: none)': {
181
181
  backgroundColor: 'transparent'
182
182
  }
183
183
  },
184
184
  [`&.${paginationItemClasses.focusVisible}`]: {
185
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
185
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
186
186
  }
187
187
  }, {
188
188
  [`&.${paginationItemClasses.disabled}`]: {
189
- borderColor: theme.palette.action.disabledBackground,
190
- color: theme.palette.action.disabled
189
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
190
+ color: (theme.vars || theme).palette.action.disabled
191
191
  }
192
192
  })
193
193
  }));
@@ -92,7 +92,7 @@ const RatingRoot = styled('span', {
92
92
  textAlign: 'left',
93
93
  WebkitTapHighlightColor: 'transparent',
94
94
  [`&.${ratingClasses.disabled}`]: {
95
- opacity: theme.palette.action.disabledOpacity,
95
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
96
96
  pointerEvents: 'none'
97
97
  },
98
98
  [`&.${ratingClasses.focusVisible} .${ratingClasses.iconActive}`]: {
@@ -145,7 +145,7 @@ const RatingIcon = styled('span', {
145
145
  }, ownerState.iconActive && {
146
146
  transform: 'scale(1.2)'
147
147
  }, ownerState.iconEmpty && {
148
- color: theme.palette.action.disabled
148
+ color: (theme.vars || theme).palette.action.disabled
149
149
  }));
150
150
  const RatingDecimal = styled('span', {
151
151
  name: 'MuiRating',
@@ -52,7 +52,7 @@ const SnackbarRoot = styled('div', {
52
52
  });
53
53
 
54
54
  return _extends({
55
- zIndex: theme.zIndex.snackbar,
55
+ zIndex: (theme.vars || theme).zIndex.snackbar,
56
56
  position: 'fixed',
57
57
  display: 'flex',
58
58
  left: 8,
@@ -74,7 +74,7 @@ const SpeedDialRoot = styled('div', {
74
74
  theme,
75
75
  ownerState
76
76
  }) => _extends({
77
- zIndex: theme.zIndex.speedDial,
77
+ zIndex: (theme.vars || theme).zIndex.speedDial,
78
78
  display: 'flex',
79
79
  alignItems: 'center',
80
80
  pointerEvents: 'none'
@@ -42,15 +42,15 @@ const StepIconRoot = styled(SvgIcon, {
42
42
  transition: theme.transitions.create('color', {
43
43
  duration: theme.transitions.duration.shortest
44
44
  }),
45
- color: theme.palette.text.disabled,
45
+ color: (theme.vars || theme).palette.text.disabled,
46
46
  [`&.${stepIconClasses.completed}`]: {
47
- color: theme.palette.primary.main
47
+ color: (theme.vars || theme).palette.primary.main
48
48
  },
49
49
  [`&.${stepIconClasses.active}`]: {
50
- color: theme.palette.primary.main
50
+ color: (theme.vars || theme).palette.primary.main
51
51
  },
52
52
  [`&.${stepIconClasses.error}`]: {
53
- color: theme.palette.error.main
53
+ color: (theme.vars || theme).palette.error.main
54
54
  }
55
55
  }));
56
56
  const StepIconText = styled('text', {
@@ -60,7 +60,7 @@ const StepIconText = styled('text', {
60
60
  })(({
61
61
  theme
62
62
  }) => ({
63
- fill: theme.palette.primary.contrastText,
63
+ fill: (theme.vars || theme).palette.primary.contrastText,
64
64
  fontSize: theme.typography.caption.fontSize,
65
65
  fontFamily: theme.typography.fontFamily
66
66
  }));
@@ -69,11 +69,11 @@ const StepLabelLabel = styled('span', {
69
69
  duration: theme.transitions.duration.shortest
70
70
  }),
71
71
  [`&.${stepLabelClasses.active}`]: {
72
- color: theme.palette.text.primary,
72
+ color: (theme.vars || theme).palette.text.primary,
73
73
  fontWeight: 500
74
74
  },
75
75
  [`&.${stepLabelClasses.completed}`]: {
76
- color: theme.palette.text.primary,
76
+ color: (theme.vars || theme).palette.text.primary,
77
77
  fontWeight: 500
78
78
  },
79
79
  [`&.${stepLabelClasses.alternativeLabel}`]: {
@@ -81,7 +81,7 @@ const StepLabelLabel = styled('span', {
81
81
  marginTop: 16
82
82
  },
83
83
  [`&.${stepLabelClasses.error}`]: {
84
- color: theme.palette.error.main
84
+ color: (theme.vars || theme).palette.error.main
85
85
  }
86
86
  }));
87
87
  const StepLabelIconContainer = styled('span', {
@@ -105,7 +105,7 @@ const StepLabelLabelContainer = styled('span', {
105
105
  theme
106
106
  }) => ({
107
107
  width: '100%',
108
- color: theme.palette.text.secondary
108
+ color: (theme.vars || theme).palette.text.secondary
109
109
  }));
110
110
  const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
111
111
  const props = useThemeProps({
@@ -1,12 +1,20 @@
1
1
  import * as React from 'react';
2
+
2
3
  /**
3
- * @ignore - internal component.
4
+ * Provides information about the current step in Stepper.
4
5
  */
5
-
6
6
  const StepperContext = /*#__PURE__*/React.createContext({});
7
7
 
8
8
  if (process.env.NODE_ENV !== 'production') {
9
9
  StepperContext.displayName = 'StepperContext';
10
10
  }
11
+ /**
12
+ * Returns the current StepperContext or an empty object if no StepperContext
13
+ * has been defined in the component tree.
14
+ */
15
+
11
16
 
17
+ export function useStepperContext() {
18
+ return React.useContext(StepperContext);
19
+ }
12
20
  export default StepperContext;
@@ -1,3 +1,5 @@
1
1
  export { default } from './Stepper';
2
2
  export { default as stepperClasses } from './stepperClasses';
3
- export * from './stepperClasses';
3
+ export * from './stepperClasses';
4
+ export { default as StepperContext } from './StepperContext';
5
+ export * from './StepperContext';
@@ -53,9 +53,9 @@ const SvgIconRoot = styled('svg', {
53
53
  large: theme.typography?.pxToRem?.(35) || '2.1875'
54
54
  }[ownerState.fontSize],
55
55
  // TODO v5 deprecate, v6 remove for sx
56
- color: theme.palette?.[ownerState.color]?.main ?? {
57
- action: theme.palette?.action?.active,
58
- disabled: theme.palette?.action?.disabled,
56
+ color: (theme.vars || theme).palette?.[ownerState.color]?.main ?? {
57
+ action: (theme.vars || theme).palette?.action?.active,
58
+ disabled: (theme.vars || theme).palette?.action?.disabled,
59
59
  inherit: undefined
60
60
  }[ownerState.color]
61
61
  }));
package/modern/Tab/Tab.js CHANGED
@@ -78,23 +78,23 @@ const TabRoot = styled(ButtonBase, {
78
78
  opacity: 1
79
79
  },
80
80
  [`&.${tabClasses.disabled}`]: {
81
- opacity: theme.palette.action.disabledOpacity
81
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
82
82
  }
83
83
  }, ownerState.textColor === 'primary' && {
84
- color: theme.palette.text.secondary,
84
+ color: (theme.vars || theme).palette.text.secondary,
85
85
  [`&.${tabClasses.selected}`]: {
86
- color: theme.palette.primary.main
86
+ color: (theme.vars || theme).palette.primary.main
87
87
  },
88
88
  [`&.${tabClasses.disabled}`]: {
89
- color: theme.palette.text.disabled
89
+ color: (theme.vars || theme).palette.text.disabled
90
90
  }
91
91
  }, ownerState.textColor === 'secondary' && {
92
- color: theme.palette.text.secondary,
92
+ color: (theme.vars || theme).palette.text.secondary,
93
93
  [`&.${tabClasses.selected}`]: {
94
- color: theme.palette.secondary.main
94
+ color: (theme.vars || theme).palette.secondary.main
95
95
  },
96
96
  [`&.${tabClasses.disabled}`]: {
97
- color: theme.palette.text.disabled
97
+ color: (theme.vars || theme).palette.text.disabled
98
98
  }
99
99
  }, ownerState.fullWidth && {
100
100
  flexShrink: 1,
@@ -41,7 +41,7 @@ const TableRoot = styled('table', {
41
41
  borderSpacing: 0,
42
42
  '& caption': _extends({}, theme.typography.body2, {
43
43
  padding: theme.spacing(2),
44
- color: theme.palette.text.secondary,
44
+ color: (theme.vars || theme).palette.text.secondary,
45
45
  textAlign: 'left',
46
46
  captionSide: 'bottom'
47
47
  })