@mui/material 5.6.2 → 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 (373) 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.js +15 -14
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/AvatarGroup.js +2 -2
  14. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  15. package/Backdrop/backdropClasses.d.ts +10 -10
  16. package/Badge/Badge.js +2 -2
  17. package/Badge/badgeClasses.d.ts +24 -24
  18. package/BottomNavigation/BottomNavigation.js +1 -1
  19. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  20. package/BottomNavigationAction/BottomNavigationAction.js +6 -5
  21. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  22. package/Box/Box.d.ts +9 -28
  23. package/Box/Box.js +25 -4
  24. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  25. package/Button/buttonClasses.d.ts +76 -76
  26. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  27. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  28. package/ButtonGroup/ButtonGroup.js +10 -10
  29. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  30. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  31. package/CHANGELOG.md +225 -0
  32. package/Card/cardClasses.d.ts +8 -8
  33. package/CardActionArea/CardActionArea.js +2 -2
  34. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  35. package/CardActions/cardActionsClasses.d.ts +10 -10
  36. package/CardContent/cardContentClasses.d.ts +8 -8
  37. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  38. package/CardMedia/cardMediaClasses.d.ts +12 -12
  39. package/Checkbox/checkboxClasses.d.ts +18 -18
  40. package/Chip/chipClasses.d.ts +80 -80
  41. package/CircularProgress/CircularProgress.js +1 -1
  42. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  43. package/ClickAwayListener/index.d.ts +2 -2
  44. package/Collapse/collapseClasses.d.ts +18 -18
  45. package/Container/containerClasses.d.ts +22 -22
  46. package/CssBaseline/CssBaseline.js +4 -4
  47. package/Dialog/DialogContext.d.ts +6 -6
  48. package/Dialog/dialogClasses.d.ts +36 -36
  49. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  50. package/DialogContent/DialogContent.js +2 -2
  51. package/DialogContent/dialogContentClasses.d.ts +10 -10
  52. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  53. package/DialogTitle/DialogTitle.d.ts +30 -15
  54. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  55. package/Divider/Divider.js +4 -4
  56. package/Divider/dividerClasses.d.ts +34 -34
  57. package/Drawer/Drawer.js +6 -6
  58. package/Drawer/drawerClasses.d.ts +30 -30
  59. package/Fab/Fab.js +69 -65
  60. package/Fab/fabClasses.d.ts +26 -26
  61. package/FilledInput/FilledInput.js +3 -1
  62. package/FilledInput/filledInputClasses.d.ts +40 -40
  63. package/FormControl/formControlClasses.d.ts +14 -14
  64. package/FormControlLabel/FormControlLabel.js +1 -1
  65. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  66. package/FormGroup/formGroupClasses.d.ts +12 -12
  67. package/FormHelperText/FormHelperText.js +3 -3
  68. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  69. package/FormLabel/FormLabel.js +5 -5
  70. package/FormLabel/formLabelClasses.d.ts +22 -22
  71. package/Grid/gridClasses.d.ts +48 -48
  72. package/Icon/Icon.js +8 -8
  73. package/Icon/iconClasses.d.ts +24 -24
  74. package/IconButton/IconButton.js +5 -5
  75. package/IconButton/iconButtonClasses.d.ts +26 -26
  76. package/ImageList/imageListClasses.d.ts +16 -16
  77. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  78. package/ImageListItemBar/ImageListItemBar.js +1 -1
  79. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  80. package/Input/Input.js +9 -4
  81. package/Input/inputClasses.d.ts +34 -34
  82. package/InputAdornment/InputAdornment.js +1 -1
  83. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  84. package/InputBase/InputBase.js +16 -8
  85. package/InputBase/inputBaseClasses.d.ts +44 -44
  86. package/InputLabel/inputLabelClasses.d.ts +32 -32
  87. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  88. package/Link/Link.js +3 -8
  89. package/Link/linkClasses.d.ts +18 -18
  90. package/List/listClasses.d.ts +14 -14
  91. package/ListItem/ListItem.js +8 -8
  92. package/ListItem/listItemClasses.d.ts +30 -30
  93. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  94. package/ListItemButton/ListItemButton.js +8 -8
  95. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  96. package/ListItemIcon/ListItemIcon.js +1 -1
  97. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  98. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  99. package/ListItemText/listItemTextClasses.d.ts +18 -18
  100. package/ListSubheader/ListSubheader.js +3 -3
  101. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  102. package/Menu/menuClasses.d.ts +12 -12
  103. package/MenuItem/MenuItem.js +8 -8
  104. package/MenuItem/menuItemClasses.d.ts +20 -20
  105. package/MobileStepper/MobileStepper.js +5 -5
  106. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  107. package/Modal/Modal.js +1 -1
  108. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  109. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  110. package/Pagination/paginationClasses.d.ts +14 -14
  111. package/PaginationItem/PaginationItem.js +27 -27
  112. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +79 -32
  117. package/Radio/radioClasses.d.ts +16 -16
  118. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  119. package/RadioGroup/useRadioGroup.d.ts +4 -4
  120. package/Rating/Rating.js +2 -2
  121. package/Rating/ratingClasses.d.ts +40 -40
  122. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  123. package/Select/selectClasses.d.ts +30 -30
  124. package/Skeleton/skeletonClasses.d.ts +24 -24
  125. package/Snackbar/Snackbar.js +1 -1
  126. package/Snackbar/snackbarClasses.d.ts +20 -20
  127. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  128. package/SpeedDial/SpeedDial.js +1 -1
  129. package/SpeedDial/speedDialClasses.d.ts +22 -22
  130. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  131. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  132. package/Step/StepContext.d.ts +20 -20
  133. package/Step/stepClasses.d.ts +16 -16
  134. package/StepButton/stepButtonClasses.d.ts +14 -14
  135. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  136. package/StepContent/StepContent.d.ts +3 -1
  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 +15 -14
  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 +6 -5
  190. package/legacy/Box/Box.js +25 -4
  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/CssBaseline/CssBaseline.js +4 -4
  195. package/legacy/DialogContent/DialogContent.js +2 -2
  196. package/legacy/Divider/Divider.js +4 -4
  197. package/legacy/Drawer/Drawer.js +6 -6
  198. package/legacy/Fab/Fab.js +17 -17
  199. package/legacy/FilledInput/FilledInput.js +2 -2
  200. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  201. package/legacy/FormHelperText/FormHelperText.js +3 -3
  202. package/legacy/FormLabel/FormLabel.js +5 -5
  203. package/legacy/Icon/Icon.js +8 -8
  204. package/legacy/IconButton/IconButton.js +5 -5
  205. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  206. package/legacy/Input/Input.js +8 -3
  207. package/legacy/InputAdornment/InputAdornment.js +1 -1
  208. package/legacy/InputBase/InputBase.js +16 -8
  209. package/legacy/Link/Link.js +3 -9
  210. package/legacy/ListItem/ListItem.js +8 -8
  211. package/legacy/ListItemButton/ListItemButton.js +8 -8
  212. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  213. package/legacy/ListSubheader/ListSubheader.js +3 -3
  214. package/legacy/MenuItem/MenuItem.js +8 -8
  215. package/legacy/MobileStepper/MobileStepper.js +5 -5
  216. package/legacy/Modal/Modal.js +1 -1
  217. package/legacy/PaginationItem/PaginationItem.js +27 -27
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Snackbar/Snackbar.js +1 -1
  220. package/legacy/SpeedDial/SpeedDial.js +1 -1
  221. package/legacy/StepIcon/StepIcon.js +5 -5
  222. package/legacy/StepLabel/StepLabel.js +4 -4
  223. package/legacy/Stepper/StepperContext.js +10 -2
  224. package/legacy/Stepper/index.js +3 -1
  225. package/legacy/SvgIcon/SvgIcon.js +4 -4
  226. package/legacy/Tab/Tab.js +7 -7
  227. package/legacy/Table/Table.js +1 -1
  228. package/legacy/TablePagination/TablePagination.js +1 -1
  229. package/legacy/TableRow/TableRow.js +3 -3
  230. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  231. package/legacy/Tabs/Tabs.js +2 -2
  232. package/legacy/ToggleButton/ToggleButton.js +16 -9
  233. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  234. package/legacy/Tooltip/Tooltip.js +5 -5
  235. package/legacy/className/index.js +1 -8
  236. package/legacy/index.js +1 -1
  237. package/legacy/locale/index.js +1 -1
  238. package/legacy/styles/createPalette.js +2 -1
  239. package/legacy/styles/experimental_extendTheme.js +52 -43
  240. package/locale/index.d.ts +71 -71
  241. package/locale/index.js +1 -1
  242. package/modern/Accordion/Accordion.js +6 -6
  243. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  244. package/modern/Autocomplete/Autocomplete.js +15 -14
  245. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  246. package/modern/Badge/Badge.js +2 -2
  247. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  248. package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
  249. package/modern/Box/Box.js +25 -4
  250. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  251. package/modern/CardActionArea/CardActionArea.js +2 -2
  252. package/modern/CircularProgress/CircularProgress.js +1 -1
  253. package/modern/CssBaseline/CssBaseline.js +4 -4
  254. package/modern/DialogContent/DialogContent.js +2 -2
  255. package/modern/Divider/Divider.js +4 -4
  256. package/modern/Drawer/Drawer.js +6 -6
  257. package/modern/Fab/Fab.js +16 -16
  258. package/modern/FilledInput/FilledInput.js +1 -1
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +8 -8
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MobileStepper/MobileStepper.js +5 -5
  275. package/modern/Modal/Modal.js +1 -1
  276. package/modern/PaginationItem/PaginationItem.js +27 -27
  277. package/modern/Rating/Rating.js +2 -2
  278. package/modern/Snackbar/Snackbar.js +1 -1
  279. package/modern/SpeedDial/SpeedDial.js +1 -1
  280. package/modern/StepIcon/StepIcon.js +5 -5
  281. package/modern/StepLabel/StepLabel.js +4 -4
  282. package/modern/Stepper/StepperContext.js +10 -2
  283. package/modern/Stepper/index.js +3 -1
  284. package/modern/SvgIcon/SvgIcon.js +3 -3
  285. package/modern/Tab/Tab.js +7 -7
  286. package/modern/Table/Table.js +1 -1
  287. package/modern/TablePagination/TablePagination.js +1 -1
  288. package/modern/TableRow/TableRow.js +3 -3
  289. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  290. package/modern/Tabs/Tabs.js +2 -2
  291. package/modern/ToggleButton/ToggleButton.js +17 -10
  292. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  293. package/modern/Tooltip/Tooltip.js +5 -5
  294. package/modern/className/index.js +1 -8
  295. package/modern/index.js +1 -1
  296. package/modern/locale/index.js +1 -1
  297. package/modern/styles/createPalette.js +2 -1
  298. package/modern/styles/experimental_extendTheme.js +56 -45
  299. package/node/Accordion/Accordion.js +6 -6
  300. package/node/AccordionSummary/AccordionSummary.js +3 -3
  301. package/node/Autocomplete/Autocomplete.js +15 -14
  302. package/node/AvatarGroup/AvatarGroup.js +2 -2
  303. package/node/Badge/Badge.js +2 -2
  304. package/node/BottomNavigation/BottomNavigation.js +1 -1
  305. package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
  306. package/node/Box/Box.js +28 -4
  307. package/node/ButtonGroup/ButtonGroup.js +10 -10
  308. package/node/CardActionArea/CardActionArea.js +2 -2
  309. package/node/CircularProgress/CircularProgress.js +1 -1
  310. package/node/CssBaseline/CssBaseline.js +4 -4
  311. package/node/DialogContent/DialogContent.js +2 -2
  312. package/node/Divider/Divider.js +4 -4
  313. package/node/Drawer/Drawer.js +6 -6
  314. package/node/Fab/Fab.js +69 -65
  315. package/node/FilledInput/FilledInput.js +3 -1
  316. package/node/FormControlLabel/FormControlLabel.js +1 -1
  317. package/node/FormHelperText/FormHelperText.js +3 -3
  318. package/node/FormLabel/FormLabel.js +5 -5
  319. package/node/Icon/Icon.js +8 -8
  320. package/node/IconButton/IconButton.js +5 -5
  321. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  322. package/node/Input/Input.js +9 -4
  323. package/node/InputAdornment/InputAdornment.js +1 -1
  324. package/node/InputBase/InputBase.js +14 -8
  325. package/node/Link/Link.js +3 -9
  326. package/node/ListItem/ListItem.js +8 -8
  327. package/node/ListItemButton/ListItemButton.js +8 -8
  328. package/node/ListItemIcon/ListItemIcon.js +1 -1
  329. package/node/ListSubheader/ListSubheader.js +3 -3
  330. package/node/MenuItem/MenuItem.js +8 -8
  331. package/node/MobileStepper/MobileStepper.js +5 -5
  332. package/node/Modal/Modal.js +1 -1
  333. package/node/PaginationItem/PaginationItem.js +27 -27
  334. package/node/Rating/Rating.js +2 -2
  335. package/node/Snackbar/Snackbar.js +1 -1
  336. package/node/SpeedDial/SpeedDial.js +1 -1
  337. package/node/StepIcon/StepIcon.js +5 -5
  338. package/node/StepLabel/StepLabel.js +4 -4
  339. package/node/Stepper/StepperContext.js +11 -1
  340. package/node/Stepper/index.js +22 -1
  341. package/node/SvgIcon/SvgIcon.js +4 -4
  342. package/node/Tab/Tab.js +7 -7
  343. package/node/Table/Table.js +1 -1
  344. package/node/TablePagination/TablePagination.js +1 -1
  345. package/node/TableRow/TableRow.js +3 -3
  346. package/node/TableSortLabel/TableSortLabel.js +4 -4
  347. package/node/Tabs/Tabs.js +2 -2
  348. package/node/ToggleButton/ToggleButton.js +17 -10
  349. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  350. package/node/Tooltip/Tooltip.js +5 -5
  351. package/node/className/index.js +2 -2
  352. package/node/index.js +1 -1
  353. package/node/locale/index.js +1 -1
  354. package/node/styles/createPalette.js +2 -1
  355. package/node/styles/experimental_extendTheme.js +57 -47
  356. package/package.json +6 -5
  357. package/styles/ThemeProvider.d.ts +1 -1
  358. package/styles/createPalette.d.ts +9 -2
  359. package/styles/createPalette.js +2 -1
  360. package/styles/experimental_extendTheme.d.ts +13 -16
  361. package/styles/experimental_extendTheme.js +57 -46
  362. package/transitions/index.d.ts +1 -1
  363. package/transitions/transition.d.ts +13 -13
  364. package/transitions/utils.d.ts +23 -23
  365. package/umd/material-ui.development.js +582 -484
  366. package/umd/material-ui.production.min.js +21 -21
  367. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  368. package/useTouchRipple/index.d.ts +1 -1
  369. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  370. package/utils/getScrollbarSize.d.ts +2 -2
  371. package/utils/ownerDocument.d.ts +2 -2
  372. package/utils/ownerWindow.d.ts +2 -2
  373. package/utils/setRef.d.ts +2 -2
@@ -43,20 +43,20 @@ var MobileStepperRoot = styled(Paper, {
43
43
  flexDirection: 'row',
44
44
  justifyContent: 'space-between',
45
45
  alignItems: 'center',
46
- background: theme.palette.background.default,
46
+ background: (theme.vars || theme).palette.background.default,
47
47
  padding: 8
48
48
  }, ownerState.position === 'bottom' && {
49
49
  position: 'fixed',
50
50
  bottom: 0,
51
51
  left: 0,
52
52
  right: 0,
53
- zIndex: theme.zIndex.mobileStepper
53
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
54
54
  }, ownerState.position === 'top' && {
55
55
  position: 'fixed',
56
56
  top: 0,
57
57
  left: 0,
58
58
  right: 0,
59
- zIndex: theme.zIndex.mobileStepper
59
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
60
60
  });
61
61
  });
62
62
  var MobileStepperDots = styled('div', {
@@ -90,13 +90,13 @@ var 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
  });
102
102
  var MobileStepperProgress = styled(LinearProgress, {
@@ -27,7 +27,7 @@ var ModalRoot = styled('div', {
27
27
  ownerState = _ref.ownerState;
28
28
  return _extends({
29
29
  position: 'fixed',
30
- zIndex: theme.zIndex.modal,
30
+ zIndex: (theme.vars || theme).zIndex.modal,
31
31
  right: 0,
32
32
  bottom: 0,
33
33
  top: 0,
@@ -62,10 +62,10 @@ var PaginationItemEllipsis = styled('div', {
62
62
  minWidth: 32,
63
63
  padding: '0 6px',
64
64
  margin: '0 3px',
65
- color: theme.palette.text.primary,
65
+ color: (theme.vars || theme).palette.text.primary,
66
66
  height: 'auto'
67
67
  }, "&.".concat(paginationItemClasses.disabled), {
68
- opacity: theme.palette.action.disabledOpacity
68
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
69
69
  }), ownerState.size === 'small' && {
70
70
  minWidth: 26,
71
71
  borderRadius: 26 / 2,
@@ -95,34 +95,34 @@ var PaginationItemPage = styled(ButtonBase, {
95
95
  height: 32,
96
96
  padding: '0 6px',
97
97
  margin: '0 3px',
98
- color: theme.palette.text.primary
98
+ color: (theme.vars || theme).palette.text.primary
99
99
  }, _defineProperty(_extends3, "&.".concat(paginationItemClasses.focusVisible), {
100
- backgroundColor: theme.palette.action.focus
100
+ backgroundColor: (theme.vars || theme).palette.action.focus
101
101
  }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.disabled), {
102
- opacity: theme.palette.action.disabledOpacity
102
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
103
103
  }), _defineProperty(_extends3, "transition", theme.transitions.create(['color', 'background-color'], {
104
104
  duration: theme.transitions.duration.short
105
105
  })), _defineProperty(_extends3, '&:hover', {
106
- backgroundColor: theme.palette.action.hover,
106
+ backgroundColor: (theme.vars || theme).palette.action.hover,
107
107
  // Reset on touch devices, it doesn't add specificity
108
108
  '@media (hover: none)': {
109
109
  backgroundColor: 'transparent'
110
110
  }
111
111
  }), _defineProperty(_extends3, "&.".concat(paginationItemClasses.selected), (_$concat = {
112
- backgroundColor: theme.palette.action.selected,
112
+ backgroundColor: (theme.vars || theme).palette.action.selected,
113
113
  '&:hover': {
114
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
114
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.action.selected, 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: theme.palette.action.selected
117
+ backgroundColor: (theme.vars || theme).palette.action.selected
118
118
  }
119
119
  }
120
120
  }, _defineProperty(_$concat, "&.".concat(paginationItemClasses.focusVisible), {
121
- backgroundColor: alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
121
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.action.selected, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
122
122
  }), _defineProperty(_$concat, "&.".concat(paginationItemClasses.disabled), {
123
123
  opacity: 1,
124
- color: theme.palette.action.disabled,
125
- backgroundColor: theme.palette.action.selected
124
+ color: (theme.vars || theme).palette.action.disabled,
125
+ backgroundColor: (theme.vars || theme).palette.action.selected
126
126
  }), _$concat)), _extends3), ownerState.size === 'small' && {
127
127
  minWidth: 26,
128
128
  height: 26,
@@ -136,43 +136,43 @@ var PaginationItemPage = styled(ButtonBase, {
136
136
  padding: '0 10px',
137
137
  fontSize: theme.typography.pxToRem(15)
138
138
  }, ownerState.shape === 'rounded' && {
139
- borderRadius: theme.shape.borderRadius
139
+ borderRadius: (theme.vars || theme).shape.borderRadius
140
140
  });
141
141
  }, function (_ref3) {
142
142
  var theme = _ref3.theme,
143
143
  ownerState = _ref3.ownerState;
144
144
  return _extends({}, ownerState.variant === 'text' && _defineProperty({}, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
145
- color: theme.palette[ownerState.color].contrastText,
146
- backgroundColor: theme.palette[ownerState.color].main,
145
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
146
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
147
147
  '&:hover': {
148
- backgroundColor: theme.palette[ownerState.color].dark,
148
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
149
149
  // Reset on touch devices, it doesn't add specificity
150
150
  '@media (hover: none)': {
151
- backgroundColor: theme.palette[ownerState.color].main
151
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
152
152
  }
153
153
  }
154
154
  }, "&.".concat(paginationItemClasses.focusVisible), {
155
- backgroundColor: theme.palette[ownerState.color].dark
155
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
156
156
  }), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
157
- color: theme.palette.action.disabled
157
+ color: (theme.vars || theme).palette.action.disabled
158
158
  }))), ownerState.variant === 'outlined' && _defineProperty({
159
- border: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
159
+ border: theme.vars ? "1px solid rgba(".concat(theme.vars.palette.common.onBackgroundChannel, " / 0.23)") : "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
160
160
  }, "&.".concat(paginationItemClasses.selected), _extends({}, ownerState.color !== 'standard' && _defineProperty({
161
- color: theme.palette[ownerState.color].main,
162
- border: "1px solid ".concat(alpha(theme.palette[ownerState.color].main, 0.5)),
163
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
161
+ color: (theme.vars || theme).palette[ownerState.color].main,
162
+ border: "1px solid ".concat(theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)),
163
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.activatedOpacity, ")") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
164
164
  '&:hover': {
165
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
165
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
166
166
  // Reset on touch devices, it doesn't add specificity
167
167
  '@media (hover: none)': {
168
168
  backgroundColor: 'transparent'
169
169
  }
170
170
  }
171
171
  }, "&.".concat(paginationItemClasses.focusVisible), {
172
- backgroundColor: alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
172
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / calc(").concat(theme.vars.palette.action.activatedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
173
173
  }), _defineProperty({}, "&.".concat(paginationItemClasses.disabled), {
174
- borderColor: theme.palette.action.disabledBackground,
175
- color: theme.palette.action.disabled
174
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
175
+ color: (theme.vars || theme).palette.action.disabled
176
176
  }))));
177
177
  });
178
178
  var PaginationItemPageIcon = styled('div', {
@@ -88,7 +88,7 @@ var RatingRoot = styled('span', {
88
88
  textAlign: 'left',
89
89
  WebkitTapHighlightColor: 'transparent'
90
90
  }, _defineProperty(_extends2, "&.".concat(ratingClasses.disabled), {
91
- opacity: theme.palette.action.disabledOpacity,
91
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
92
92
  pointerEvents: 'none'
93
93
  }), _defineProperty(_extends2, "&.".concat(ratingClasses.focusVisible, " .").concat(ratingClasses.iconActive), {
94
94
  outline: '1px solid #999'
@@ -140,7 +140,7 @@ var RatingIcon = styled('span', {
140
140
  }, ownerState.iconActive && {
141
141
  transform: 'scale(1.2)'
142
142
  }, ownerState.iconEmpty && {
143
- color: theme.palette.action.disabled
143
+ color: (theme.vars || theme).palette.action.disabled
144
144
  });
145
145
  });
146
146
  var RatingDecimal = styled('span', {
@@ -47,7 +47,7 @@ var SnackbarRoot = styled('div', {
47
47
  });
48
48
 
49
49
  return _extends({
50
- zIndex: theme.zIndex.snackbar,
50
+ zIndex: (theme.vars || theme).zIndex.snackbar,
51
51
  position: 'fixed',
52
52
  display: 'flex',
53
53
  left: 8,
@@ -69,7 +69,7 @@ var SpeedDialRoot = styled('div', {
69
69
  var theme = _ref.theme,
70
70
  ownerState = _ref.ownerState;
71
71
  return _extends({
72
- zIndex: theme.zIndex.speedDial,
72
+ zIndex: (theme.vars || theme).zIndex.speedDial,
73
73
  display: 'flex',
74
74
  alignItems: 'center',
75
75
  pointerEvents: 'none'
@@ -44,13 +44,13 @@ var StepIconRoot = styled(SvgIcon, {
44
44
  transition: theme.transitions.create('color', {
45
45
  duration: theme.transitions.duration.shortest
46
46
  }),
47
- color: theme.palette.text.disabled
47
+ color: (theme.vars || theme).palette.text.disabled
48
48
  }, _defineProperty(_ref2, "&.".concat(stepIconClasses.completed), {
49
- color: theme.palette.primary.main
49
+ color: (theme.vars || theme).palette.primary.main
50
50
  }), _defineProperty(_ref2, "&.".concat(stepIconClasses.active), {
51
- color: theme.palette.primary.main
51
+ color: (theme.vars || theme).palette.primary.main
52
52
  }), _defineProperty(_ref2, "&.".concat(stepIconClasses.error), {
53
- color: theme.palette.error.main
53
+ color: (theme.vars || theme).palette.error.main
54
54
  }), _ref2;
55
55
  });
56
56
  var StepIconText = styled('text', {
@@ -62,7 +62,7 @@ var StepIconText = styled('text', {
62
62
  })(function (_ref3) {
63
63
  var theme = _ref3.theme;
64
64
  return {
65
- fill: theme.palette.primary.contrastText,
65
+ fill: (theme.vars || theme).palette.primary.contrastText,
66
66
  fontSize: theme.typography.caption.fontSize,
67
67
  fontFamily: theme.typography.fontFamily
68
68
  };
@@ -70,16 +70,16 @@ var StepLabelLabel = styled('span', {
70
70
  duration: theme.transitions.duration.shortest
71
71
  })
72
72
  }, _defineProperty(_extends3, "&.".concat(stepLabelClasses.active), {
73
- color: theme.palette.text.primary,
73
+ color: (theme.vars || theme).palette.text.primary,
74
74
  fontWeight: 500
75
75
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.completed), {
76
- color: theme.palette.text.primary,
76
+ color: (theme.vars || theme).palette.text.primary,
77
77
  fontWeight: 500
78
78
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.alternativeLabel), {
79
79
  textAlign: 'center',
80
80
  marginTop: 16
81
81
  }), _defineProperty(_extends3, "&.".concat(stepLabelClasses.error), {
82
- color: theme.palette.error.main
82
+ color: (theme.vars || theme).palette.error.main
83
83
  }), _extends3));
84
84
  });
85
85
  var StepLabelIconContainer = styled('span', {
@@ -108,7 +108,7 @@ var StepLabelLabelContainer = styled('span', {
108
108
  var theme = _ref4.theme;
109
109
  return {
110
110
  width: '100%',
111
- color: theme.palette.text.secondary
111
+ color: (theme.vars || theme).palette.text.secondary
112
112
  };
113
113
  });
114
114
  var StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
@@ -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
  var 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';
@@ -29,7 +29,7 @@ var SvgIconRoot = styled('svg', {
29
29
  return [styles.root, ownerState.color !== 'inherit' && styles["color".concat(capitalize(ownerState.color))], styles["fontSize".concat(capitalize(ownerState.fontSize))]];
30
30
  }
31
31
  })(function (_ref) {
32
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
32
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
33
33
 
34
34
  var theme = _ref.theme,
35
35
  ownerState = _ref.ownerState;
@@ -50,9 +50,9 @@ var SvgIconRoot = styled('svg', {
50
50
  large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
51
51
  }[ownerState.fontSize],
52
52
  // TODO v5 deprecate, v6 remove for sx
53
- color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
54
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
55
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
53
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
54
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
55
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
56
56
  inherit: undefined
57
57
  }[ownerState.color]
58
58
  };
package/legacy/Tab/Tab.js CHANGED
@@ -73,19 +73,19 @@ var TabRoot = styled(ButtonBase, {
73
73
  }, _defineProperty(_ref3, "&.".concat(tabClasses.selected), {
74
74
  opacity: 1
75
75
  }), _defineProperty(_ref3, "&.".concat(tabClasses.disabled), {
76
- opacity: theme.palette.action.disabledOpacity
76
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
77
77
  }), _ref3), ownerState.textColor === 'primary' && (_ref4 = {
78
- color: theme.palette.text.secondary
78
+ color: (theme.vars || theme).palette.text.secondary
79
79
  }, _defineProperty(_ref4, "&.".concat(tabClasses.selected), {
80
- color: theme.palette.primary.main
80
+ color: (theme.vars || theme).palette.primary.main
81
81
  }), _defineProperty(_ref4, "&.".concat(tabClasses.disabled), {
82
- color: theme.palette.text.disabled
82
+ color: (theme.vars || theme).palette.text.disabled
83
83
  }), _ref4), ownerState.textColor === 'secondary' && (_ref5 = {
84
- color: theme.palette.text.secondary
84
+ color: (theme.vars || theme).palette.text.secondary
85
85
  }, _defineProperty(_ref5, "&.".concat(tabClasses.selected), {
86
- color: theme.palette.secondary.main
86
+ color: (theme.vars || theme).palette.secondary.main
87
87
  }), _defineProperty(_ref5, "&.".concat(tabClasses.disabled), {
88
- color: theme.palette.text.disabled
88
+ color: (theme.vars || theme).palette.text.disabled
89
89
  }), _ref5), ownerState.fullWidth && {
90
90
  flexShrink: 1,
91
91
  flexGrow: 1,
@@ -36,7 +36,7 @@ var TableRoot = styled('table', {
36
36
  borderSpacing: 0,
37
37
  '& caption': _extends({}, theme.typography.body2, {
38
38
  padding: theme.spacing(2),
39
- color: theme.palette.text.secondary,
39
+ color: (theme.vars || theme).palette.text.secondary,
40
40
  textAlign: 'left',
41
41
  captionSide: 'bottom'
42
42
  })
@@ -32,7 +32,7 @@ var TablePaginationRoot = styled(TableCell, {
32
32
  var theme = _ref.theme;
33
33
  return {
34
34
  overflow: 'auto',
35
- color: theme.palette.text.primary,
35
+ color: (theme.vars || theme).palette.text.primary,
36
36
  fontSize: theme.typography.pxToRem(14),
37
37
  // Increase the specificity to override TableCell.
38
38
  '&:last-child': {
@@ -42,11 +42,11 @@ var TableRowRoot = styled('tr', {
42
42
  // We disable the focus ring for mouse, touch and keyboard users.
43
43
  outline: 0
44
44
  }, _defineProperty(_ref2, "&.".concat(tableRowClasses.hover, ":hover"), {
45
- backgroundColor: theme.palette.action.hover
45
+ backgroundColor: (theme.vars || theme).palette.action.hover
46
46
  }), _defineProperty(_ref2, "&.".concat(tableRowClasses.selected), {
47
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
47
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
48
48
  '&:hover': {
49
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
49
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
50
50
  }
51
51
  }), _ref2;
52
52
  });
@@ -41,18 +41,18 @@ var TableSortLabelRoot = styled(ButtonBase, {
41
41
  flexDirection: 'inherit',
42
42
  alignItems: 'center',
43
43
  '&:focus': {
44
- color: theme.palette.text.secondary
44
+ color: (theme.vars || theme).palette.text.secondary
45
45
  },
46
46
  '&:hover': _defineProperty({
47
- color: theme.palette.text.secondary
47
+ color: (theme.vars || theme).palette.text.secondary
48
48
  }, "& .".concat(tableSortLabelClasses.icon), {
49
49
  opacity: 0.5
50
50
  })
51
51
  }, "&.".concat(tableSortLabelClasses.active), _defineProperty({
52
- color: theme.palette.text.primary
52
+ color: (theme.vars || theme).palette.text.primary
53
53
  }, "& .".concat(tableSortLabelClasses.icon), {
54
54
  opacity: 1,
55
- color: theme.palette.text.secondary
55
+ color: (theme.vars || theme).palette.text.secondary
56
56
  }));
57
57
  });
58
58
  var TableSortLabelIcon = styled('span', {
@@ -182,9 +182,9 @@ var TabsIndicator = styled('span', {
182
182
  width: '100%',
183
183
  transition: theme.transitions.create()
184
184
  }, ownerState.indicatorColor === 'primary' && {
185
- backgroundColor: theme.palette.primary.main
185
+ backgroundColor: (theme.vars || theme).palette.primary.main
186
186
  }, ownerState.indicatorColor === 'secondary' && {
187
- backgroundColor: theme.palette.secondary.main
187
+ backgroundColor: (theme.vars || theme).palette.secondary.main
188
188
  }, ownerState.vertical && {
189
189
  height: '100%',
190
190
  width: 2,
@@ -40,31 +40,38 @@ var ToggleButtonRoot = styled(ButtonBase, {
40
40
  var theme = _ref.theme,
41
41
  ownerState = _ref.ownerState;
42
42
  var selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
43
+ var selectedColorChannel;
44
+
45
+ if (theme.vars) {
46
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
47
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
48
+ }
49
+
43
50
  return _extends({}, theme.typography.button, {
44
- borderRadius: theme.shape.borderRadius,
51
+ borderRadius: (theme.vars || theme).shape.borderRadius,
45
52
  padding: 11,
46
- border: "1px solid ".concat(theme.palette.divider),
47
- color: theme.palette.action.active
53
+ border: "1px solid ".concat((theme.vars || theme).palette.divider),
54
+ color: (theme.vars || theme).palette.action.active
48
55
  }, ownerState.fullWidth && {
49
56
  width: '100%'
50
57
  }, (_extends2 = {}, _defineProperty(_extends2, "&.".concat(toggleButtonClasses.disabled), {
51
- color: theme.palette.action.disabled,
52
- border: "1px solid ".concat(theme.palette.action.disabledBackground)
58
+ color: (theme.vars || theme).palette.action.disabled,
59
+ border: "1px solid ".concat((theme.vars || theme).palette.action.disabledBackground)
53
60
  }), _defineProperty(_extends2, '&:hover', {
54
61
  textDecoration: 'none',
55
62
  // Reset on mouse devices
56
- backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
63
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.text.primaryChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
57
64
  '@media (hover: none)': {
58
65
  backgroundColor: 'transparent'
59
66
  }
60
67
  }), _defineProperty(_extends2, "&.".concat(toggleButtonClasses.selected), {
61
68
  color: selectedColor,
62
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity),
69
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity),
63
70
  '&:hover': {
64
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
71
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.hoverOpacity, "))") : alpha(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
65
72
  // Reset on touch devices, it doesn't add specificity
66
73
  '@media (hover: none)': {
67
- backgroundColor: alpha(selectedColor, theme.palette.action.selectedOpacity)
74
+ backgroundColor: theme.vars ? "rgba(".concat(selectedColorChannel, " / ").concat(theme.vars.palette.action.selectedOpacity, ")") : alpha(selectedColor, theme.palette.action.selectedOpacity)
68
75
  }
69
76
  }
70
77
  }), _extends2), ownerState.size === 'small' && {
@@ -37,7 +37,7 @@ var ToggleButtonGroupRoot = styled('div', {
37
37
  theme = _ref3.theme;
38
38
  return _extends({
39
39
  display: 'inline-flex',
40
- borderRadius: theme.shape.borderRadius
40
+ borderRadius: (theme.vars || theme).shape.borderRadius
41
41
  }, ownerState.orientation === 'vertical' && {
42
42
  flexDirection: 'column'
43
43
  }, ownerState.fullWidth && {
@@ -55,7 +55,7 @@ var TooltipPopper = styled(Popper, {
55
55
  ownerState = _ref.ownerState,
56
56
  open = _ref.open;
57
57
  return _extends({
58
- zIndex: theme.zIndex.tooltip,
58
+ zIndex: (theme.vars || theme).zIndex.tooltip,
59
59
  pointerEvents: 'none'
60
60
  }, !ownerState.disableInteractive && {
61
61
  pointerEvents: 'auto'
@@ -112,9 +112,9 @@ var TooltipTooltip = styled('div', {
112
112
  var theme = _ref3.theme,
113
113
  ownerState = _ref3.ownerState;
114
114
  return _extends({
115
- backgroundColor: alpha(theme.palette.grey[700], 0.92),
116
- borderRadius: theme.shape.borderRadius,
117
- color: theme.palette.common.white,
115
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.92)") : alpha(theme.palette.grey[700], 0.92),
116
+ borderRadius: (theme.vars || theme).shape.borderRadius,
117
+ color: (theme.vars || theme).palette.common.white,
118
118
  fontFamily: theme.typography.fontFamily,
119
119
  padding: '4px 8px',
120
120
  fontSize: theme.typography.pxToRem(11),
@@ -178,7 +178,7 @@ var TooltipArrow = styled('span', {
178
178
  /* = width / sqrt(2) = (length of the hypotenuse) */
179
179
  ,
180
180
  boxSizing: 'border-box',
181
- color: alpha(theme.palette.grey[700], 0.9),
181
+ color: theme.vars ? "rgba(".concat(theme.vars.palette.grey.darkChannel, " / 0.9)") : alpha(theme.palette.grey[700], 0.9),
182
182
  '&::before': {
183
183
  content: '""',
184
184
  margin: 'auto',
@@ -1,9 +1,2 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
1
  // eslint-disable-next-line import/prefer-default-export
9
- export { unstable_ClassNameGenerator } from '@mui/base/className';
2
+ export { unstable_ClassNameGenerator } from '@mui/private-classnames';
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.2
1
+ /** @license MUI v5.7.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -636,7 +636,7 @@ export var csCZ = {
636
636
  'aria-label': 'Navigace stránkováním',
637
637
  getItemAriaLabel: function getItemAriaLabel(type, page, selected) {
638
638
  if (type === 'page') {
639
- return "".concat(selected ? '' : 'Jít na ').concat(page, " str\xE1nku");
639
+ return "".concat(selected ? '' : 'Jít na ').concat(page, ". str\xE1nku");
640
640
  }
641
641
 
642
642
  if (type === 'first') {
@@ -278,7 +278,8 @@ export default function createPalette(palette) {
278
278
 
279
279
  var paletteOutput = deepmerge(_extends({
280
280
  // A collection of common colors.
281
- common: common,
281
+ common: _extends({}, common),
282
+ // prevent mutable object.
282
283
  // The palette mode, can be light or dark.
283
284
  mode: mode,
284
285
  // The colors used to represent primary interface elements for a user.