@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
@@ -73,20 +73,20 @@ const MobileStepperRoot = (0, _styled.default)(_Paper.default, {
73
73
  flexDirection: 'row',
74
74
  justifyContent: 'space-between',
75
75
  alignItems: 'center',
76
- background: theme.palette.background.default,
76
+ background: (theme.vars || theme).palette.background.default,
77
77
  padding: 8
78
78
  }, ownerState.position === 'bottom' && {
79
79
  position: 'fixed',
80
80
  bottom: 0,
81
81
  left: 0,
82
82
  right: 0,
83
- zIndex: theme.zIndex.mobileStepper
83
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
84
84
  }, ownerState.position === 'top' && {
85
85
  position: 'fixed',
86
86
  top: 0,
87
87
  left: 0,
88
88
  right: 0,
89
- zIndex: theme.zIndex.mobileStepper
89
+ zIndex: (theme.vars || theme).zIndex.mobileStepper
90
90
  }));
91
91
  const MobileStepperDots = (0, _styled.default)('div', {
92
92
  name: 'MuiMobileStepper',
@@ -116,13 +116,13 @@ const MobileStepperDot = (0, _styled.default)('div', {
116
116
  transition: theme.transitions.create('background-color', {
117
117
  duration: theme.transitions.duration.shortest
118
118
  }),
119
- backgroundColor: theme.palette.action.disabled,
119
+ backgroundColor: (theme.vars || theme).palette.action.disabled,
120
120
  borderRadius: '50%',
121
121
  width: 8,
122
122
  height: 8,
123
123
  margin: '0 2px'
124
124
  }, dotActive && {
125
- backgroundColor: theme.palette.primary.main
125
+ backgroundColor: (theme.vars || theme).palette.primary.main
126
126
  })));
127
127
  const MobileStepperProgress = (0, _styled.default)(_LinearProgress.default, {
128
128
  name: 'MuiMobileStepper',
@@ -56,7 +56,7 @@ const ModalRoot = (0, _styled.default)('div', {
56
56
  ownerState
57
57
  }) => (0, _extends2.default)({
58
58
  position: 'fixed',
59
- zIndex: theme.zIndex.modal,
59
+ zIndex: (theme.vars || theme).zIndex.modal,
60
60
  right: 0,
61
61
  bottom: 0,
62
62
  top: 0,
@@ -96,10 +96,10 @@ const PaginationItemEllipsis = (0, _styled.default)('div', {
96
96
  minWidth: 32,
97
97
  padding: '0 6px',
98
98
  margin: '0 3px',
99
- color: theme.palette.text.primary,
99
+ color: (theme.vars || theme).palette.text.primary,
100
100
  height: 'auto',
101
101
  [`&.${_paginationItemClasses.default.disabled}`]: {
102
- opacity: theme.palette.action.disabledOpacity
102
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
103
103
  }
104
104
  }, ownerState.size === 'small' && {
105
105
  minWidth: 26,
@@ -127,39 +127,39 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
127
127
  height: 32,
128
128
  padding: '0 6px',
129
129
  margin: '0 3px',
130
- color: theme.palette.text.primary,
130
+ color: (theme.vars || theme).palette.text.primary,
131
131
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
132
- backgroundColor: theme.palette.action.focus
132
+ backgroundColor: (theme.vars || theme).palette.action.focus
133
133
  },
134
134
  [`&.${_paginationItemClasses.default.disabled}`]: {
135
- opacity: theme.palette.action.disabledOpacity
135
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
136
136
  },
137
137
  transition: theme.transitions.create(['color', 'background-color'], {
138
138
  duration: theme.transitions.duration.short
139
139
  }),
140
140
  '&:hover': {
141
- backgroundColor: theme.palette.action.hover,
141
+ backgroundColor: (theme.vars || theme).palette.action.hover,
142
142
  // Reset on touch devices, it doesn't add specificity
143
143
  '@media (hover: none)': {
144
144
  backgroundColor: 'transparent'
145
145
  }
146
146
  },
147
147
  [`&.${_paginationItemClasses.default.selected}`]: {
148
- backgroundColor: theme.palette.action.selected,
148
+ backgroundColor: (theme.vars || theme).palette.action.selected,
149
149
  '&:hover': {
150
- backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
150
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
151
151
  // Reset on touch devices, it doesn't add specificity
152
152
  '@media (hover: none)': {
153
- backgroundColor: theme.palette.action.selected
153
+ backgroundColor: (theme.vars || theme).palette.action.selected
154
154
  }
155
155
  },
156
156
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
157
- backgroundColor: (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
157
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
158
158
  },
159
159
  [`&.${_paginationItemClasses.default.disabled}`]: {
160
160
  opacity: 1,
161
- color: theme.palette.action.disabled,
162
- backgroundColor: theme.palette.action.selected
161
+ color: (theme.vars || theme).palette.action.disabled,
162
+ backgroundColor: (theme.vars || theme).palette.action.selected
163
163
  }
164
164
  }
165
165
  }, ownerState.size === 'small' && {
@@ -175,49 +175,49 @@ const PaginationItemPage = (0, _styled.default)(_ButtonBase.default, {
175
175
  padding: '0 10px',
176
176
  fontSize: theme.typography.pxToRem(15)
177
177
  }, ownerState.shape === 'rounded' && {
178
- borderRadius: theme.shape.borderRadius
178
+ borderRadius: (theme.vars || theme).shape.borderRadius
179
179
  }), ({
180
180
  theme,
181
181
  ownerState
182
182
  }) => (0, _extends2.default)({}, ownerState.variant === 'text' && {
183
183
  [`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
184
- color: theme.palette[ownerState.color].contrastText,
185
- backgroundColor: theme.palette[ownerState.color].main,
184
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
185
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
186
186
  '&:hover': {
187
- backgroundColor: theme.palette[ownerState.color].dark,
187
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
188
188
  // Reset on touch devices, it doesn't add specificity
189
189
  '@media (hover: none)': {
190
- backgroundColor: theme.palette[ownerState.color].main
190
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
191
191
  }
192
192
  },
193
193
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
194
- backgroundColor: theme.palette[ownerState.color].dark
194
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
195
195
  }
196
196
  }, {
197
197
  [`&.${_paginationItemClasses.default.disabled}`]: {
198
- color: theme.palette.action.disabled
198
+ color: (theme.vars || theme).palette.action.disabled
199
199
  }
200
200
  })
201
201
  }, ownerState.variant === 'outlined' && {
202
- border: `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
202
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
203
203
  [`&.${_paginationItemClasses.default.selected}`]: (0, _extends2.default)({}, ownerState.color !== 'standard' && {
204
- color: theme.palette[ownerState.color].main,
205
- border: `1px solid ${(0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
206
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
204
+ color: (theme.vars || theme).palette[ownerState.color].main,
205
+ border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : (0, _system.alpha)(theme.palette[ownerState.color].main, 0.5)}`,
206
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
207
207
  '&:hover': {
208
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
208
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
209
209
  // Reset on touch devices, it doesn't add specificity
210
210
  '@media (hover: none)': {
211
211
  backgroundColor: 'transparent'
212
212
  }
213
213
  },
214
214
  [`&.${_paginationItemClasses.default.focusVisible}`]: {
215
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
215
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
216
216
  }
217
217
  }, {
218
218
  [`&.${_paginationItemClasses.default.disabled}`]: {
219
- borderColor: theme.palette.action.disabledBackground,
220
- color: theme.palette.action.disabled
219
+ borderColor: (theme.vars || theme).palette.action.disabledBackground,
220
+ color: (theme.vars || theme).palette.action.disabled
221
221
  }
222
222
  })
223
223
  }));
@@ -119,7 +119,7 @@ const RatingRoot = (0, _styled.default)('span', {
119
119
  textAlign: 'left',
120
120
  WebkitTapHighlightColor: 'transparent',
121
121
  [`&.${_ratingClasses.default.disabled}`]: {
122
- opacity: theme.palette.action.disabledOpacity,
122
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
123
123
  pointerEvents: 'none'
124
124
  },
125
125
  [`&.${_ratingClasses.default.focusVisible} .${_ratingClasses.default.iconActive}`]: {
@@ -172,7 +172,7 @@ const RatingIcon = (0, _styled.default)('span', {
172
172
  }, ownerState.iconActive && {
173
173
  transform: 'scale(1.2)'
174
174
  }, ownerState.iconEmpty && {
175
- color: theme.palette.action.disabled
175
+ color: (theme.vars || theme).palette.action.disabled
176
176
  }));
177
177
  const RatingDecimal = (0, _styled.default)('span', {
178
178
  name: 'MuiRating',
@@ -80,7 +80,7 @@ const SnackbarRoot = (0, _styled.default)('div', {
80
80
  transform: 'translateX(50%)'
81
81
  });
82
82
  return (0, _extends2.default)({
83
- zIndex: theme.zIndex.snackbar,
83
+ zIndex: (theme.vars || theme).zIndex.snackbar,
84
84
  position: 'fixed',
85
85
  display: 'flex',
86
86
  left: 8,
@@ -104,7 +104,7 @@ const SpeedDialRoot = (0, _styled.default)('div', {
104
104
  theme,
105
105
  ownerState
106
106
  }) => (0, _extends2.default)({
107
- zIndex: theme.zIndex.speedDial,
107
+ zIndex: (theme.vars || theme).zIndex.speedDial,
108
108
  display: 'flex',
109
109
  alignItems: 'center',
110
110
  pointerEvents: 'none'
@@ -66,15 +66,15 @@ const StepIconRoot = (0, _styled.default)(_SvgIcon.default, {
66
66
  transition: theme.transitions.create('color', {
67
67
  duration: theme.transitions.duration.shortest
68
68
  }),
69
- color: theme.palette.text.disabled,
69
+ color: (theme.vars || theme).palette.text.disabled,
70
70
  [`&.${_stepIconClasses.default.completed}`]: {
71
- color: theme.palette.primary.main
71
+ color: (theme.vars || theme).palette.primary.main
72
72
  },
73
73
  [`&.${_stepIconClasses.default.active}`]: {
74
- color: theme.palette.primary.main
74
+ color: (theme.vars || theme).palette.primary.main
75
75
  },
76
76
  [`&.${_stepIconClasses.default.error}`]: {
77
- color: theme.palette.error.main
77
+ color: (theme.vars || theme).palette.error.main
78
78
  }
79
79
  }));
80
80
  const StepIconText = (0, _styled.default)('text', {
@@ -84,7 +84,7 @@ const StepIconText = (0, _styled.default)('text', {
84
84
  })(({
85
85
  theme
86
86
  }) => ({
87
- fill: theme.palette.primary.contrastText,
87
+ fill: (theme.vars || theme).palette.primary.contrastText,
88
88
  fontSize: theme.typography.caption.fontSize,
89
89
  fontFamily: theme.typography.fontFamily
90
90
  }));
@@ -94,11 +94,11 @@ const StepLabelLabel = (0, _styled.default)('span', {
94
94
  duration: theme.transitions.duration.shortest
95
95
  }),
96
96
  [`&.${_stepLabelClasses.default.active}`]: {
97
- color: theme.palette.text.primary,
97
+ color: (theme.vars || theme).palette.text.primary,
98
98
  fontWeight: 500
99
99
  },
100
100
  [`&.${_stepLabelClasses.default.completed}`]: {
101
- color: theme.palette.text.primary,
101
+ color: (theme.vars || theme).palette.text.primary,
102
102
  fontWeight: 500
103
103
  },
104
104
  [`&.${_stepLabelClasses.default.alternativeLabel}`]: {
@@ -106,7 +106,7 @@ const StepLabelLabel = (0, _styled.default)('span', {
106
106
  marginTop: 16
107
107
  },
108
108
  [`&.${_stepLabelClasses.default.error}`]: {
109
- color: theme.palette.error.main
109
+ color: (theme.vars || theme).palette.error.main
110
110
  }
111
111
  }));
112
112
  const StepLabelIconContainer = (0, _styled.default)('span', {
@@ -130,7 +130,7 @@ const StepLabelLabelContainer = (0, _styled.default)('span', {
130
130
  theme
131
131
  }) => ({
132
132
  width: '100%',
133
- color: theme.palette.text.secondary
133
+ color: (theme.vars || theme).palette.text.secondary
134
134
  }));
135
135
  const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
136
136
  const props = (0, _useThemeProps.default)({
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
+ exports.useStepperContext = useStepperContext;
7
8
 
8
9
  var React = _interopRequireWildcard(require("react"));
9
10
 
@@ -12,13 +13,22 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
12
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
14
 
14
15
  /**
15
- * @ignore - internal component.
16
+ * Provides information about the current step in Stepper.
16
17
  */
17
18
  const StepperContext = /*#__PURE__*/React.createContext({});
18
19
 
19
20
  if (process.env.NODE_ENV !== 'production') {
20
21
  StepperContext.displayName = 'StepperContext';
21
22
  }
23
+ /**
24
+ * Returns the current StepperContext or an empty object if no StepperContext
25
+ * has been defined in the component tree.
26
+ */
27
+
28
+
29
+ function useStepperContext() {
30
+ return React.useContext(StepperContext);
31
+ }
22
32
 
23
33
  var _default = StepperContext;
24
34
  exports.default = _default;
@@ -6,8 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  var _exportNames = {
9
- stepperClasses: true
9
+ stepperClasses: true,
10
+ StepperContext: true
10
11
  };
12
+ Object.defineProperty(exports, "StepperContext", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _StepperContext.default;
16
+ }
17
+ });
11
18
  Object.defineProperty(exports, "default", {
12
19
  enumerable: true,
13
20
  get: function () {
@@ -37,6 +44,20 @@ Object.keys(_stepperClasses).forEach(function (key) {
37
44
  });
38
45
  });
39
46
 
47
+ var _StepperContext = _interopRequireWildcard(require("./StepperContext"));
48
+
49
+ Object.keys(_StepperContext).forEach(function (key) {
50
+ if (key === "default" || key === "__esModule") return;
51
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
52
+ if (key in exports && exports[key] === _StepperContext[key]) return;
53
+ Object.defineProperty(exports, key, {
54
+ enumerable: true,
55
+ get: function () {
56
+ return _StepperContext[key];
57
+ }
58
+ });
59
+ });
60
+
40
61
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
41
62
 
42
63
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -60,7 +60,7 @@ const SvgIconRoot = (0, _styled.default)('svg', {
60
60
  theme,
61
61
  ownerState
62
62
  }) => {
63
- 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;
63
+ 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;
64
64
 
65
65
  return {
66
66
  userSelect: 'none',
@@ -79,9 +79,9 @@ const SvgIconRoot = (0, _styled.default)('svg', {
79
79
  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'
80
80
  }[ownerState.fontSize],
81
81
  // TODO v5 deprecate, v6 remove for sx
82
- 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 : {
83
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
84
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
82
+ 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 : {
83
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
84
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
85
85
  inherit: undefined
86
86
  }[ownerState.color]
87
87
  };
package/node/Tab/Tab.js CHANGED
@@ -104,23 +104,23 @@ const TabRoot = (0, _styled.default)(_ButtonBase.default, {
104
104
  opacity: 1
105
105
  },
106
106
  [`&.${_tabClasses.default.disabled}`]: {
107
- opacity: theme.palette.action.disabledOpacity
107
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
108
108
  }
109
109
  }, ownerState.textColor === 'primary' && {
110
- color: theme.palette.text.secondary,
110
+ color: (theme.vars || theme).palette.text.secondary,
111
111
  [`&.${_tabClasses.default.selected}`]: {
112
- color: theme.palette.primary.main
112
+ color: (theme.vars || theme).palette.primary.main
113
113
  },
114
114
  [`&.${_tabClasses.default.disabled}`]: {
115
- color: theme.palette.text.disabled
115
+ color: (theme.vars || theme).palette.text.disabled
116
116
  }
117
117
  }, ownerState.textColor === 'secondary' && {
118
- color: theme.palette.text.secondary,
118
+ color: (theme.vars || theme).palette.text.secondary,
119
119
  [`&.${_tabClasses.default.selected}`]: {
120
- color: theme.palette.secondary.main
120
+ color: (theme.vars || theme).palette.secondary.main
121
121
  },
122
122
  [`&.${_tabClasses.default.disabled}`]: {
123
- color: theme.palette.text.disabled
123
+ color: (theme.vars || theme).palette.text.disabled
124
124
  }
125
125
  }, ownerState.fullWidth && {
126
126
  flexShrink: 1,
@@ -65,7 +65,7 @@ const TableRoot = (0, _styled.default)('table', {
65
65
  borderSpacing: 0,
66
66
  '& caption': (0, _extends2.default)({}, theme.typography.body2, {
67
67
  padding: theme.spacing(2),
68
- color: theme.palette.text.secondary,
68
+ color: (theme.vars || theme).palette.text.secondary,
69
69
  textAlign: 'left',
70
70
  captionSide: 'bottom'
71
71
  })
@@ -59,7 +59,7 @@ const TablePaginationRoot = (0, _styled.default)(_TableCell.default, {
59
59
  theme
60
60
  }) => ({
61
61
  overflow: 'auto',
62
- color: theme.palette.text.primary,
62
+ color: (theme.vars || theme).palette.text.primary,
63
63
  fontSize: theme.typography.pxToRem(14),
64
64
  // Increase the specificity to override TableCell.
65
65
  '&:last-child': {
@@ -69,12 +69,12 @@ const TableRowRoot = (0, _styled.default)('tr', {
69
69
  // We disable the focus ring for mouse, touch and keyboard users.
70
70
  outline: 0,
71
71
  [`&.${_tableRowClasses.default.hover}:hover`]: {
72
- backgroundColor: theme.palette.action.hover
72
+ backgroundColor: (theme.vars || theme).palette.action.hover
73
73
  },
74
74
  [`&.${_tableRowClasses.default.selected}`]: {
75
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
75
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity),
76
76
  '&:hover': {
77
- backgroundColor: (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
77
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _system.alpha)(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
78
78
  }
79
79
  }
80
80
  }));
@@ -70,19 +70,19 @@ const TableSortLabelRoot = (0, _styled.default)(_ButtonBase.default, {
70
70
  flexDirection: 'inherit',
71
71
  alignItems: 'center',
72
72
  '&:focus': {
73
- color: theme.palette.text.secondary
73
+ color: (theme.vars || theme).palette.text.secondary
74
74
  },
75
75
  '&:hover': {
76
- color: theme.palette.text.secondary,
76
+ color: (theme.vars || theme).palette.text.secondary,
77
77
  [`& .${_tableSortLabelClasses.default.icon}`]: {
78
78
  opacity: 0.5
79
79
  }
80
80
  },
81
81
  [`&.${_tableSortLabelClasses.default.active}`]: {
82
- color: theme.palette.text.primary,
82
+ color: (theme.vars || theme).palette.text.primary,
83
83
  [`& .${_tableSortLabelClasses.default.icon}`]: {
84
84
  opacity: 1,
85
- color: theme.palette.text.secondary
85
+ color: (theme.vars || theme).palette.text.secondary
86
86
  }
87
87
  }
88
88
  }));
package/node/Tabs/Tabs.js CHANGED
@@ -226,9 +226,9 @@ const TabsIndicator = (0, _styled.default)('span', {
226
226
  width: '100%',
227
227
  transition: theme.transitions.create()
228
228
  }, ownerState.indicatorColor === 'primary' && {
229
- backgroundColor: theme.palette.primary.main
229
+ backgroundColor: (theme.vars || theme).palette.primary.main
230
230
  }, ownerState.indicatorColor === 'secondary' && {
231
- backgroundColor: theme.palette.secondary.main
231
+ backgroundColor: (theme.vars || theme).palette.secondary.main
232
232
  }, ownerState.vertical && {
233
233
  height: '100%',
234
234
  width: 2,
@@ -67,35 +67,42 @@ const ToggleButtonRoot = (0, _styled.default)(_ButtonBase.default, {
67
67
  theme,
68
68
  ownerState
69
69
  }) => {
70
- const selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
70
+ let selectedColor = ownerState.color === 'standard' ? theme.palette.text.primary : theme.palette[ownerState.color].main;
71
+ let selectedColorChannel;
72
+
73
+ if (theme.vars) {
74
+ selectedColor = ownerState.color === 'standard' ? theme.vars.palette.text.primary : theme.vars.palette[ownerState.color].main;
75
+ selectedColorChannel = ownerState.color === 'standard' ? theme.vars.palette.text.primaryChannel : theme.vars.palette[ownerState.color].mainChannel;
76
+ }
77
+
71
78
  return (0, _extends2.default)({}, theme.typography.button, {
72
- borderRadius: theme.shape.borderRadius,
79
+ borderRadius: (theme.vars || theme).shape.borderRadius,
73
80
  padding: 11,
74
- border: `1px solid ${theme.palette.divider}`,
75
- color: theme.palette.action.active
81
+ border: `1px solid ${(theme.vars || theme).palette.divider}`,
82
+ color: (theme.vars || theme).palette.action.active
76
83
  }, ownerState.fullWidth && {
77
84
  width: '100%'
78
85
  }, {
79
86
  [`&.${_toggleButtonClasses.default.disabled}`]: {
80
- color: theme.palette.action.disabled,
81
- border: `1px solid ${theme.palette.action.disabledBackground}`
87
+ color: (theme.vars || theme).palette.action.disabled,
88
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
82
89
  },
83
90
  '&:hover': {
84
91
  textDecoration: 'none',
85
92
  // Reset on mouse devices
86
- backgroundColor: (0, _styles.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
93
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _styles.alpha)(theme.palette.text.primary, theme.palette.action.hoverOpacity),
87
94
  '@media (hover: none)': {
88
95
  backgroundColor: 'transparent'
89
96
  }
90
97
  },
91
98
  [`&.${_toggleButtonClasses.default.selected}`]: {
92
99
  color: selectedColor,
93
- backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity),
100
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity),
94
101
  '&:hover': {
95
- backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
102
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
96
103
  // Reset on touch devices, it doesn't add specificity
97
104
  '@media (hover: none)': {
98
- backgroundColor: (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity)
105
+ backgroundColor: theme.vars ? `rgba(${selectedColorChannel} / ${theme.vars.palette.action.selectedOpacity})` : (0, _styles.alpha)(selectedColor, theme.palette.action.selectedOpacity)
99
106
  }
100
107
  }
101
108
  }
@@ -71,7 +71,7 @@ const ToggleButtonGroupRoot = (0, _styled.default)('div', {
71
71
  theme
72
72
  }) => (0, _extends2.default)({
73
73
  display: 'inline-flex',
74
- borderRadius: theme.shape.borderRadius
74
+ borderRadius: (theme.vars || theme).shape.borderRadius
75
75
  }, ownerState.orientation === 'vertical' && {
76
76
  flexDirection: 'column'
77
77
  }, ownerState.fullWidth && {
@@ -90,7 +90,7 @@ const TooltipPopper = (0, _styled.default)(_Popper.default, {
90
90
  ownerState,
91
91
  open
92
92
  }) => (0, _extends2.default)({
93
- zIndex: theme.zIndex.tooltip,
93
+ zIndex: (theme.vars || theme).zIndex.tooltip,
94
94
  pointerEvents: 'none'
95
95
  }, !ownerState.disableInteractive && {
96
96
  pointerEvents: 'auto'
@@ -151,9 +151,9 @@ const TooltipTooltip = (0, _styled.default)('div', {
151
151
  theme,
152
152
  ownerState
153
153
  }) => (0, _extends2.default)({
154
- backgroundColor: (0, _system.alpha)(theme.palette.grey[700], 0.92),
155
- borderRadius: theme.shape.borderRadius,
156
- color: theme.palette.common.white,
154
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.92)` : (0, _system.alpha)(theme.palette.grey[700], 0.92),
155
+ borderRadius: (theme.vars || theme).shape.borderRadius,
156
+ color: (theme.vars || theme).palette.common.white,
157
157
  fontFamily: theme.typography.fontFamily,
158
158
  padding: '4px 8px',
159
159
  fontSize: theme.typography.pxToRem(11),
@@ -219,7 +219,7 @@ const TooltipArrow = (0, _styled.default)('span', {
219
219
  /* = width / sqrt(2) = (length of the hypotenuse) */
220
220
  ,
221
221
  boxSizing: 'border-box',
222
- color: (0, _system.alpha)(theme.palette.grey[700], 0.9),
222
+ color: theme.vars ? `rgba(${theme.vars.palette.grey.darkChannel} / 0.9)` : (0, _system.alpha)(theme.palette.grey[700], 0.9),
223
223
  '&::before': {
224
224
  content: '""',
225
225
  margin: 'auto',
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "unstable_ClassNameGenerator", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _className.unstable_ClassNameGenerator;
9
+ return _privateClassnames.unstable_ClassNameGenerator;
10
10
  }
11
11
  });
12
12
 
13
- var _className = require("@mui/base/className");
13
+ var _privateClassnames = require("@mui/private-classnames");
package/node/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.
@@ -632,7 +632,7 @@ const csCZ = {
632
632
  'aria-label': 'Navigace stránkováním',
633
633
  getItemAriaLabel: (type, page, selected) => {
634
634
  if (type === 'page') {
635
- return `${selected ? '' : 'Jít na '}${page} stránku`;
635
+ return `${selected ? '' : 'Jít na '}${page}. stránku`;
636
636
  }
637
637
 
638
638
  if (type === 'first') {
@@ -301,7 +301,8 @@ const theme2 = createTheme({ palette: {
301
301
 
302
302
  const paletteOutput = (0, _utils.deepmerge)((0, _extends2.default)({
303
303
  // A collection of common colors.
304
- common: _common.default,
304
+ common: (0, _extends2.default)({}, _common.default),
305
+ // prevent mutable object.
305
306
  // The palette mode, can be light or dark.
306
307
  mode,
307
308
  // The colors used to represent primary interface elements for a user.