@mui/material 5.6.4 → 5.7.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 (332) 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/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.js +15 -14
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +24 -24
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroup.js +10 -10
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +101 -0
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/CardActionArea.js +2 -2
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/CssBaseline/CssBaseline.js +4 -4
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/DialogContent.js +2 -2
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/Divider.js +4 -4
  47. package/Divider/dividerClasses.d.ts +34 -34
  48. package/Drawer/Drawer.js +6 -6
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/Fab.js +69 -65
  51. package/Fab/fabClasses.d.ts +26 -26
  52. package/FilledInput/filledInputClasses.d.ts +40 -40
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/FormControlLabel.js +1 -1
  55. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  56. package/FormGroup/formGroupClasses.d.ts +12 -12
  57. package/FormHelperText/FormHelperText.js +3 -3
  58. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  59. package/FormLabel/FormLabel.js +5 -5
  60. package/FormLabel/formLabelClasses.d.ts +22 -22
  61. package/Grid/gridClasses.d.ts +48 -48
  62. package/Icon/Icon.js +8 -8
  63. package/Icon/iconClasses.d.ts +24 -24
  64. package/IconButton/IconButton.js +5 -5
  65. package/IconButton/iconButtonClasses.d.ts +26 -26
  66. package/ImageList/imageListClasses.d.ts +16 -16
  67. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  68. package/ImageListItemBar/ImageListItemBar.js +1 -1
  69. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  70. package/Input/Input.js +9 -4
  71. package/Input/inputClasses.d.ts +34 -34
  72. package/InputAdornment/InputAdornment.js +1 -1
  73. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  74. package/InputBase/InputBase.js +16 -8
  75. package/InputBase/inputBaseClasses.d.ts +44 -44
  76. package/InputLabel/inputLabelClasses.d.ts +32 -32
  77. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  78. package/Link/Link.js +3 -8
  79. package/Link/linkClasses.d.ts +18 -18
  80. package/List/listClasses.d.ts +14 -14
  81. package/ListItem/ListItem.js +8 -8
  82. package/ListItem/listItemClasses.d.ts +30 -30
  83. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  84. package/ListItemButton/ListItemButton.js +8 -8
  85. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  86. package/ListItemIcon/ListItemIcon.js +1 -1
  87. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  88. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  89. package/ListItemText/listItemTextClasses.d.ts +18 -18
  90. package/ListSubheader/ListSubheader.js +3 -3
  91. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  92. package/Menu/menuClasses.d.ts +12 -12
  93. package/MenuItem/MenuItem.js +8 -8
  94. package/MenuItem/menuItemClasses.d.ts +20 -20
  95. package/MobileStepper/MobileStepper.js +5 -5
  96. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  97. package/Modal/Modal.js +1 -1
  98. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  99. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  100. package/Pagination/paginationClasses.d.ts +14 -14
  101. package/PaginationItem/PaginationItem.js +27 -27
  102. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  103. package/Paper/paperClasses.d.ts +39 -39
  104. package/Popover/popoverClasses.d.ts +10 -10
  105. package/Popper/Popper.d.ts +29 -29
  106. package/Radio/radioClasses.d.ts +16 -16
  107. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  108. package/RadioGroup/useRadioGroup.d.ts +4 -4
  109. package/Rating/Rating.js +2 -2
  110. package/Rating/ratingClasses.d.ts +40 -40
  111. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  112. package/Select/selectClasses.d.ts +30 -30
  113. package/Skeleton/skeletonClasses.d.ts +24 -24
  114. package/Snackbar/Snackbar.js +1 -1
  115. package/Snackbar/snackbarClasses.d.ts +20 -20
  116. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  117. package/SpeedDial/SpeedDial.js +1 -1
  118. package/SpeedDial/speedDialClasses.d.ts +22 -22
  119. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  120. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  121. package/Step/StepContext.d.ts +20 -20
  122. package/Step/stepClasses.d.ts +16 -16
  123. package/StepButton/stepButtonClasses.d.ts +14 -14
  124. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  125. package/StepContent/stepContentClasses.d.ts +12 -12
  126. package/StepIcon/StepIcon.js +5 -5
  127. package/StepIcon/stepIconClasses.d.ts +16 -16
  128. package/StepLabel/StepLabel.js +4 -4
  129. package/StepLabel/stepLabelClasses.d.ts +28 -28
  130. package/Stepper/StepperContext.d.ts +18 -0
  131. package/Stepper/StepperContext.js +10 -2
  132. package/Stepper/index.d.ts +3 -0
  133. package/Stepper/index.js +3 -1
  134. package/Stepper/stepperClasses.d.ts +14 -14
  135. package/SvgIcon/SvgIcon.js +4 -4
  136. package/SvgIcon/svgIconClasses.d.ts +24 -24
  137. package/Switch/switchClasses.d.ts +32 -32
  138. package/Tab/Tab.js +7 -7
  139. package/Tab/tabClasses.d.ts +26 -26
  140. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  141. package/Table/Table.js +1 -1
  142. package/Table/tableClasses.d.ts +10 -10
  143. package/TableBody/tableBodyClasses.d.ts +8 -8
  144. package/TableCell/tableCellClasses.d.ts +32 -32
  145. package/TableContainer/tableContainerClasses.d.ts +8 -8
  146. package/TableFooter/tableFooterClasses.d.ts +8 -8
  147. package/TableHead/tableHeadClasses.d.ts +8 -8
  148. package/TablePagination/TablePagination.js +1 -1
  149. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  150. package/TableRow/TableRow.js +3 -3
  151. package/TableRow/tableRowClasses.d.ts +16 -16
  152. package/TableSortLabel/TableSortLabel.js +4 -4
  153. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  154. package/Tabs/Tabs.js +2 -2
  155. package/Tabs/tabsClasses.d.ts +32 -32
  156. package/TextField/textFieldClasses.d.ts +8 -8
  157. package/ToggleButton/ToggleButton.js +17 -10
  158. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  159. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  160. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  161. package/Toolbar/toolbarClasses.d.ts +14 -14
  162. package/Tooltip/Tooltip.js +5 -5
  163. package/Tooltip/tooltipClasses.d.ts +30 -30
  164. package/Typography/typographyClasses.d.ts +50 -50
  165. package/className/index.d.ts +1 -8
  166. package/className/index.js +1 -8
  167. package/darkScrollbar/index.d.ts +28 -28
  168. package/index.js +1 -1
  169. package/internal/switchBaseClasses.d.ts +12 -12
  170. package/legacy/Autocomplete/Autocomplete.js +15 -14
  171. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  172. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  173. package/legacy/CardActionArea/CardActionArea.js +2 -2
  174. package/legacy/CssBaseline/CssBaseline.js +4 -4
  175. package/legacy/DialogContent/DialogContent.js +2 -2
  176. package/legacy/Divider/Divider.js +4 -4
  177. package/legacy/Drawer/Drawer.js +6 -6
  178. package/legacy/Fab/Fab.js +17 -17
  179. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  180. package/legacy/FormHelperText/FormHelperText.js +3 -3
  181. package/legacy/FormLabel/FormLabel.js +5 -5
  182. package/legacy/Icon/Icon.js +8 -8
  183. package/legacy/IconButton/IconButton.js +5 -5
  184. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  185. package/legacy/Input/Input.js +8 -3
  186. package/legacy/InputAdornment/InputAdornment.js +1 -1
  187. package/legacy/InputBase/InputBase.js +16 -8
  188. package/legacy/Link/Link.js +3 -9
  189. package/legacy/ListItem/ListItem.js +8 -8
  190. package/legacy/ListItemButton/ListItemButton.js +8 -8
  191. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  192. package/legacy/ListSubheader/ListSubheader.js +3 -3
  193. package/legacy/MenuItem/MenuItem.js +8 -8
  194. package/legacy/MobileStepper/MobileStepper.js +5 -5
  195. package/legacy/Modal/Modal.js +1 -1
  196. package/legacy/PaginationItem/PaginationItem.js +27 -27
  197. package/legacy/Rating/Rating.js +2 -2
  198. package/legacy/Snackbar/Snackbar.js +1 -1
  199. package/legacy/SpeedDial/SpeedDial.js +1 -1
  200. package/legacy/StepIcon/StepIcon.js +5 -5
  201. package/legacy/StepLabel/StepLabel.js +4 -4
  202. package/legacy/Stepper/StepperContext.js +10 -2
  203. package/legacy/Stepper/index.js +3 -1
  204. package/legacy/SvgIcon/SvgIcon.js +4 -4
  205. package/legacy/Tab/Tab.js +7 -7
  206. package/legacy/Table/Table.js +1 -1
  207. package/legacy/TablePagination/TablePagination.js +1 -1
  208. package/legacy/TableRow/TableRow.js +3 -3
  209. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  210. package/legacy/Tabs/Tabs.js +2 -2
  211. package/legacy/ToggleButton/ToggleButton.js +16 -9
  212. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  213. package/legacy/Tooltip/Tooltip.js +5 -5
  214. package/legacy/className/index.js +1 -8
  215. package/legacy/index.js +1 -1
  216. package/legacy/styles/createPalette.js +2 -1
  217. package/legacy/styles/experimental_extendTheme.js +52 -43
  218. package/locale/index.d.ts +71 -71
  219. package/modern/Autocomplete/Autocomplete.js +15 -14
  220. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  221. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  222. package/modern/CardActionArea/CardActionArea.js +2 -2
  223. package/modern/CssBaseline/CssBaseline.js +4 -4
  224. package/modern/DialogContent/DialogContent.js +2 -2
  225. package/modern/Divider/Divider.js +4 -4
  226. package/modern/Drawer/Drawer.js +6 -6
  227. package/modern/Fab/Fab.js +16 -16
  228. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  229. package/modern/FormHelperText/FormHelperText.js +3 -3
  230. package/modern/FormLabel/FormLabel.js +5 -5
  231. package/modern/Icon/Icon.js +8 -8
  232. package/modern/IconButton/IconButton.js +5 -5
  233. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  234. package/modern/Input/Input.js +9 -4
  235. package/modern/InputAdornment/InputAdornment.js +1 -1
  236. package/modern/InputBase/InputBase.js +16 -8
  237. package/modern/Link/Link.js +3 -8
  238. package/modern/ListItem/ListItem.js +8 -8
  239. package/modern/ListItemButton/ListItemButton.js +8 -8
  240. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  241. package/modern/ListSubheader/ListSubheader.js +3 -3
  242. package/modern/MenuItem/MenuItem.js +8 -8
  243. package/modern/MobileStepper/MobileStepper.js +5 -5
  244. package/modern/Modal/Modal.js +1 -1
  245. package/modern/PaginationItem/PaginationItem.js +27 -27
  246. package/modern/Rating/Rating.js +2 -2
  247. package/modern/Snackbar/Snackbar.js +1 -1
  248. package/modern/SpeedDial/SpeedDial.js +1 -1
  249. package/modern/StepIcon/StepIcon.js +5 -5
  250. package/modern/StepLabel/StepLabel.js +4 -4
  251. package/modern/Stepper/StepperContext.js +10 -2
  252. package/modern/Stepper/index.js +3 -1
  253. package/modern/SvgIcon/SvgIcon.js +3 -3
  254. package/modern/Tab/Tab.js +7 -7
  255. package/modern/Table/Table.js +1 -1
  256. package/modern/TablePagination/TablePagination.js +1 -1
  257. package/modern/TableRow/TableRow.js +3 -3
  258. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  259. package/modern/Tabs/Tabs.js +2 -2
  260. package/modern/ToggleButton/ToggleButton.js +17 -10
  261. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  262. package/modern/Tooltip/Tooltip.js +5 -5
  263. package/modern/className/index.js +1 -8
  264. package/modern/index.js +1 -1
  265. package/modern/styles/createPalette.js +2 -1
  266. package/modern/styles/experimental_extendTheme.js +56 -45
  267. package/node/Autocomplete/Autocomplete.js +15 -14
  268. package/node/BottomNavigation/BottomNavigation.js +0 -0
  269. package/node/ButtonGroup/ButtonGroup.js +10 -10
  270. package/node/CardActionArea/CardActionArea.js +2 -2
  271. package/node/CssBaseline/CssBaseline.js +4 -4
  272. package/node/DialogContent/DialogContent.js +2 -2
  273. package/node/Divider/Divider.js +4 -4
  274. package/node/Drawer/Drawer.js +6 -6
  275. package/node/Fab/Fab.js +69 -65
  276. package/node/FormControlLabel/FormControlLabel.js +1 -1
  277. package/node/FormHelperText/FormHelperText.js +3 -3
  278. package/node/FormLabel/FormLabel.js +5 -5
  279. package/node/Icon/Icon.js +8 -8
  280. package/node/IconButton/IconButton.js +5 -5
  281. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  282. package/node/Input/Input.js +9 -4
  283. package/node/InputAdornment/InputAdornment.js +1 -1
  284. package/node/InputBase/InputBase.js +14 -8
  285. package/node/Link/Link.js +3 -9
  286. package/node/ListItem/ListItem.js +8 -8
  287. package/node/ListItemButton/ListItemButton.js +8 -8
  288. package/node/ListItemIcon/ListItemIcon.js +1 -1
  289. package/node/ListSubheader/ListSubheader.js +3 -3
  290. package/node/MenuItem/MenuItem.js +8 -8
  291. package/node/MobileStepper/MobileStepper.js +5 -5
  292. package/node/Modal/Modal.js +1 -1
  293. package/node/PaginationItem/PaginationItem.js +27 -27
  294. package/node/Rating/Rating.js +2 -2
  295. package/node/Snackbar/Snackbar.js +1 -1
  296. package/node/SpeedDial/SpeedDial.js +1 -1
  297. package/node/StepIcon/StepIcon.js +5 -5
  298. package/node/StepLabel/StepLabel.js +4 -4
  299. package/node/Stepper/StepperContext.js +11 -1
  300. package/node/Stepper/index.js +22 -1
  301. package/node/SvgIcon/SvgIcon.js +4 -4
  302. package/node/Tab/Tab.js +7 -7
  303. package/node/Table/Table.js +1 -1
  304. package/node/TablePagination/TablePagination.js +1 -1
  305. package/node/TableRow/TableRow.js +3 -3
  306. package/node/TableSortLabel/TableSortLabel.js +4 -4
  307. package/node/Tabs/Tabs.js +2 -2
  308. package/node/ToggleButton/ToggleButton.js +17 -10
  309. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  310. package/node/Tooltip/Tooltip.js +5 -5
  311. package/node/className/index.js +2 -2
  312. package/node/index.js +1 -1
  313. package/node/styles/createPalette.js +2 -1
  314. package/node/styles/experimental_extendTheme.js +57 -47
  315. package/package.json +6 -5
  316. package/styles/ThemeProvider.d.ts +1 -1
  317. package/styles/createPalette.d.ts +9 -2
  318. package/styles/createPalette.js +2 -1
  319. package/styles/experimental_extendTheme.d.ts +13 -16
  320. package/styles/experimental_extendTheme.js +57 -46
  321. package/transitions/index.d.ts +1 -1
  322. package/transitions/transition.d.ts +13 -13
  323. package/transitions/utils.d.ts +23 -23
  324. package/umd/material-ui.development.js +477 -385
  325. package/umd/material-ui.production.min.js +21 -21
  326. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  327. package/useTouchRipple/index.d.ts +1 -1
  328. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  329. package/utils/getScrollbarSize.d.ts +2 -2
  330. package/utils/ownerDocument.d.ts +2 -2
  331. package/utils/ownerWindow.d.ts +2 -2
  332. package/utils/setRef.d.ts +2 -2
@@ -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
  })
@@ -30,7 +30,7 @@ const TablePaginationRoot = styled(TableCell, {
30
30
  theme
31
31
  }) => ({
32
32
  overflow: 'auto',
33
- color: theme.palette.text.primary,
33
+ color: (theme.vars || theme).palette.text.primary,
34
34
  fontSize: theme.typography.pxToRem(14),
35
35
  // Increase the specificity to override TableCell.
36
36
  '&:last-child': {
@@ -44,12 +44,12 @@ const TableRowRoot = styled('tr', {
44
44
  // We disable the focus ring for mouse, touch and keyboard users.
45
45
  outline: 0,
46
46
  [`&.${tableRowClasses.hover}:hover`]: {
47
- backgroundColor: theme.palette.action.hover
47
+ backgroundColor: (theme.vars || theme).palette.action.hover
48
48
  },
49
49
  [`&.${tableRowClasses.selected}`]: {
50
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
50
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
51
51
  '&:hover': {
52
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
52
+ 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)
53
53
  }
54
54
  }
55
55
  }));
@@ -45,19 +45,19 @@ const TableSortLabelRoot = styled(ButtonBase, {
45
45
  flexDirection: 'inherit',
46
46
  alignItems: 'center',
47
47
  '&:focus': {
48
- color: theme.palette.text.secondary
48
+ color: (theme.vars || theme).palette.text.secondary
49
49
  },
50
50
  '&:hover': {
51
- color: theme.palette.text.secondary,
51
+ color: (theme.vars || theme).palette.text.secondary,
52
52
  [`& .${tableSortLabelClasses.icon}`]: {
53
53
  opacity: 0.5
54
54
  }
55
55
  },
56
56
  [`&.${tableSortLabelClasses.active}`]: {
57
- color: theme.palette.text.primary,
57
+ color: (theme.vars || theme).palette.text.primary,
58
58
  [`& .${tableSortLabelClasses.icon}`]: {
59
59
  opacity: 1,
60
- color: theme.palette.text.secondary
60
+ color: (theme.vars || theme).palette.text.secondary
61
61
  }
62
62
  }
63
63
  }));
@@ -193,9 +193,9 @@ const TabsIndicator = styled('span', {
193
193
  width: '100%',
194
194
  transition: theme.transitions.create()
195
195
  }, ownerState.indicatorColor === 'primary' && {
196
- backgroundColor: theme.palette.primary.main
196
+ backgroundColor: (theme.vars || theme).palette.primary.main
197
197
  }, ownerState.indicatorColor === 'secondary' && {
198
- backgroundColor: theme.palette.secondary.main
198
+ backgroundColor: (theme.vars || theme).palette.secondary.main
199
199
  }, ownerState.vertical && {
200
200
  height: '100%',
201
201
  width: 2,