@mui/material 5.6.4 → 5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/Alert.js +1 -0
  6. package/Alert/alertClasses.d.ts +44 -44
  7. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/Autocomplete.d.ts +23 -1
  10. package/Autocomplete/Autocomplete.js +18 -16
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  14. package/Backdrop/backdropClasses.d.ts +10 -10
  15. package/Badge/Badge.d.ts +1 -34
  16. package/Badge/badgeClasses.d.ts +56 -24
  17. package/BottomNavigation/BottomNavigation.js +0 -0
  18. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  19. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  20. package/Box/Box.js +1 -1
  21. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  22. package/Button/buttonClasses.d.ts +76 -76
  23. package/ButtonBase/TouchRipple.js +5 -5
  24. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  25. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  26. package/ButtonGroup/ButtonGroup.js +10 -10
  27. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  28. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  29. package/CHANGELOG.md +241 -0
  30. package/Card/cardClasses.d.ts +8 -8
  31. package/CardActionArea/CardActionArea.js +2 -2
  32. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  33. package/CardActions/cardActionsClasses.d.ts +10 -10
  34. package/CardContent/cardContentClasses.d.ts +8 -8
  35. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  36. package/CardMedia/cardMediaClasses.d.ts +12 -12
  37. package/Checkbox/checkboxClasses.d.ts +18 -18
  38. package/Chip/chipClasses.d.ts +80 -80
  39. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  40. package/ClickAwayListener/index.d.ts +2 -2
  41. package/Collapse/collapseClasses.d.ts +18 -18
  42. package/Container/Container.js +17 -106
  43. package/Container/containerClasses.d.ts +6 -22
  44. package/CssBaseline/CssBaseline.js +4 -4
  45. package/Dialog/DialogContext.d.ts +6 -6
  46. package/Dialog/dialogClasses.d.ts +36 -36
  47. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  48. package/DialogContent/DialogContent.js +2 -2
  49. package/DialogContent/dialogContentClasses.d.ts +10 -10
  50. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  51. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  52. package/Divider/Divider.js +4 -4
  53. package/Divider/dividerClasses.d.ts +34 -34
  54. package/Drawer/Drawer.js +6 -6
  55. package/Drawer/drawerClasses.d.ts +30 -30
  56. package/Fab/Fab.js +72 -66
  57. package/Fab/fabClasses.d.ts +26 -26
  58. package/FilledInput/filledInputClasses.d.ts +40 -40
  59. package/FormControl/formControlClasses.d.ts +14 -14
  60. package/FormControlLabel/FormControlLabel.js +1 -1
  61. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  62. package/FormGroup/formGroupClasses.d.ts +12 -12
  63. package/FormHelperText/FormHelperText.js +3 -3
  64. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  65. package/FormLabel/FormLabel.js +5 -5
  66. package/FormLabel/formLabelClasses.d.ts +22 -22
  67. package/Grid/gridClasses.d.ts +48 -48
  68. package/Icon/Icon.js +8 -8
  69. package/Icon/iconClasses.d.ts +24 -24
  70. package/IconButton/IconButton.js +5 -5
  71. package/IconButton/iconButtonClasses.d.ts +26 -26
  72. package/ImageList/imageListClasses.d.ts +16 -16
  73. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  74. package/ImageListItemBar/ImageListItemBar.js +1 -1
  75. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  76. package/Input/Input.js +9 -4
  77. package/Input/inputClasses.d.ts +34 -34
  78. package/InputAdornment/InputAdornment.js +1 -1
  79. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  80. package/InputBase/InputBase.js +16 -8
  81. package/InputBase/inputBaseClasses.d.ts +44 -44
  82. package/InputLabel/inputLabelClasses.d.ts +32 -32
  83. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  84. package/Link/Link.js +3 -8
  85. package/Link/linkClasses.d.ts +18 -18
  86. package/List/listClasses.d.ts +14 -14
  87. package/ListItem/ListItem.js +8 -8
  88. package/ListItem/listItemClasses.d.ts +30 -30
  89. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  90. package/ListItemButton/ListItemButton.js +15 -9
  91. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  92. package/ListItemIcon/ListItemIcon.js +1 -1
  93. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  94. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  95. package/ListItemText/listItemTextClasses.d.ts +18 -18
  96. package/ListSubheader/ListSubheader.js +3 -3
  97. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  98. package/Menu/menuClasses.d.ts +12 -12
  99. package/MenuItem/MenuItem.js +8 -8
  100. package/MenuItem/menuItemClasses.d.ts +20 -20
  101. package/MenuList/MenuList.d.ts +1 -1
  102. package/MenuList/MenuList.js +1 -1
  103. package/MobileStepper/MobileStepper.js +5 -5
  104. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  105. package/Modal/Modal.js +1 -1
  106. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  107. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  108. package/Pagination/paginationClasses.d.ts +14 -14
  109. package/PaginationItem/PaginationItem.js +27 -27
  110. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  111. package/Paper/Paper.js +20 -15
  112. package/Paper/index.d.ts +1 -1
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +2 -1
  117. package/Radio/Radio.js +4 -4
  118. package/Radio/radioClasses.d.ts +16 -16
  119. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  120. package/RadioGroup/useRadioGroup.d.ts +4 -4
  121. package/Rating/Rating.js +2 -2
  122. package/Rating/ratingClasses.d.ts +40 -40
  123. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  124. package/Select/SelectInput.js +2 -2
  125. package/Select/selectClasses.d.ts +30 -30
  126. package/Skeleton/skeletonClasses.d.ts +24 -24
  127. package/Slider/Slider.js +1 -5
  128. package/Snackbar/Snackbar.js +1 -1
  129. package/Snackbar/snackbarClasses.d.ts +20 -20
  130. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  131. package/SpeedDial/SpeedDial.js +1 -1
  132. package/SpeedDial/speedDialClasses.d.ts +22 -22
  133. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  134. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  135. package/Step/StepContext.d.ts +20 -20
  136. package/Step/stepClasses.d.ts +16 -16
  137. package/StepButton/stepButtonClasses.d.ts +14 -14
  138. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  139. package/StepContent/stepContentClasses.d.ts +12 -12
  140. package/StepIcon/StepIcon.js +5 -5
  141. package/StepIcon/stepIconClasses.d.ts +16 -16
  142. package/StepLabel/StepLabel.js +4 -4
  143. package/StepLabel/stepLabelClasses.d.ts +28 -28
  144. package/Stepper/StepperContext.d.ts +18 -0
  145. package/Stepper/StepperContext.js +10 -2
  146. package/Stepper/index.d.ts +3 -0
  147. package/Stepper/index.js +3 -1
  148. package/Stepper/stepperClasses.d.ts +14 -14
  149. package/SvgIcon/SvgIcon.js +4 -4
  150. package/SvgIcon/svgIconClasses.d.ts +24 -24
  151. package/Switch/switchClasses.d.ts +32 -32
  152. package/Tab/Tab.js +7 -7
  153. package/Tab/tabClasses.d.ts +26 -26
  154. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  155. package/Table/Table.js +1 -1
  156. package/Table/tableClasses.d.ts +10 -10
  157. package/TableBody/tableBodyClasses.d.ts +8 -8
  158. package/TableCell/tableCellClasses.d.ts +32 -32
  159. package/TableContainer/tableContainerClasses.d.ts +8 -8
  160. package/TableFooter/tableFooterClasses.d.ts +8 -8
  161. package/TableHead/tableHeadClasses.d.ts +8 -8
  162. package/TablePagination/TablePagination.js +1 -1
  163. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  164. package/TableRow/TableRow.js +3 -3
  165. package/TableRow/tableRowClasses.d.ts +16 -16
  166. package/TableSortLabel/TableSortLabel.js +4 -4
  167. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  168. package/Tabs/Tabs.js +4 -4
  169. package/Tabs/tabsClasses.d.ts +32 -32
  170. package/TextField/textFieldClasses.d.ts +8 -8
  171. package/ToggleButton/ToggleButton.js +17 -10
  172. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  173. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  174. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  175. package/Toolbar/toolbarClasses.d.ts +14 -14
  176. package/Tooltip/Tooltip.js +5 -5
  177. package/Tooltip/tooltipClasses.d.ts +30 -30
  178. package/Typography/typographyClasses.d.ts +50 -50
  179. package/className/index.d.ts +1 -8
  180. package/className/index.js +1 -8
  181. package/darkScrollbar/index.d.ts +28 -28
  182. package/index.js +1 -1
  183. package/internal/switchBaseClasses.d.ts +12 -12
  184. package/legacy/Alert/Alert.js +1 -0
  185. package/legacy/Autocomplete/Autocomplete.js +18 -16
  186. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  187. package/legacy/Box/Box.js +1 -1
  188. package/legacy/ButtonBase/TouchRipple.js +5 -5
  189. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  190. package/legacy/CardActionArea/CardActionArea.js +2 -2
  191. package/legacy/Container/Container.js +18 -103
  192. package/legacy/CssBaseline/CssBaseline.js +4 -4
  193. package/legacy/DialogContent/DialogContent.js +2 -2
  194. package/legacy/Divider/Divider.js +4 -4
  195. package/legacy/Drawer/Drawer.js +6 -6
  196. package/legacy/Fab/Fab.js +20 -18
  197. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  198. package/legacy/FormHelperText/FormHelperText.js +3 -3
  199. package/legacy/FormLabel/FormLabel.js +5 -5
  200. package/legacy/Icon/Icon.js +8 -8
  201. package/legacy/IconButton/IconButton.js +5 -5
  202. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  203. package/legacy/Input/Input.js +8 -3
  204. package/legacy/InputAdornment/InputAdornment.js +1 -1
  205. package/legacy/InputBase/InputBase.js +16 -8
  206. package/legacy/Link/Link.js +3 -9
  207. package/legacy/ListItem/ListItem.js +8 -8
  208. package/legacy/ListItemButton/ListItemButton.js +15 -9
  209. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  210. package/legacy/ListSubheader/ListSubheader.js +3 -3
  211. package/legacy/MenuItem/MenuItem.js +8 -8
  212. package/legacy/MenuList/MenuList.js +1 -1
  213. package/legacy/MobileStepper/MobileStepper.js +5 -5
  214. package/legacy/Modal/Modal.js +1 -1
  215. package/legacy/PaginationItem/PaginationItem.js +27 -27
  216. package/legacy/Paper/Paper.js +10 -7
  217. package/legacy/Radio/Radio.js +4 -4
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Select/SelectInput.js +2 -2
  220. package/legacy/Slider/Slider.js +1 -10
  221. package/legacy/Snackbar/Snackbar.js +1 -1
  222. package/legacy/SpeedDial/SpeedDial.js +1 -1
  223. package/legacy/StepIcon/StepIcon.js +5 -5
  224. package/legacy/StepLabel/StepLabel.js +4 -4
  225. package/legacy/Stepper/StepperContext.js +10 -2
  226. package/legacy/Stepper/index.js +3 -1
  227. package/legacy/SvgIcon/SvgIcon.js +4 -4
  228. package/legacy/Tab/Tab.js +7 -7
  229. package/legacy/Table/Table.js +1 -1
  230. package/legacy/TablePagination/TablePagination.js +1 -1
  231. package/legacy/TableRow/TableRow.js +3 -3
  232. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  233. package/legacy/Tabs/Tabs.js +4 -4
  234. package/legacy/ToggleButton/ToggleButton.js +16 -9
  235. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  236. package/legacy/Tooltip/Tooltip.js +5 -5
  237. package/legacy/className/index.js +1 -8
  238. package/legacy/index.js +1 -1
  239. package/legacy/locale/index.js +22 -22
  240. package/legacy/styles/createMixins.js +5 -3
  241. package/legacy/styles/createPalette.js +2 -1
  242. package/legacy/styles/createTheme.js +1 -1
  243. package/legacy/styles/experimental_extendTheme.js +70 -42
  244. package/locale/index.d.ts +71 -71
  245. package/locale/index.js +22 -22
  246. package/modern/Alert/Alert.js +1 -0
  247. package/modern/Autocomplete/Autocomplete.js +18 -16
  248. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  249. package/modern/Box/Box.js +1 -1
  250. package/modern/ButtonBase/TouchRipple.js +5 -5
  251. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  252. package/modern/CardActionArea/CardActionArea.js +2 -2
  253. package/modern/Container/Container.js +17 -106
  254. package/modern/CssBaseline/CssBaseline.js +4 -4
  255. package/modern/DialogContent/DialogContent.js +2 -2
  256. package/modern/Divider/Divider.js +4 -4
  257. package/modern/Drawer/Drawer.js +6 -6
  258. package/modern/Fab/Fab.js +19 -17
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +15 -9
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MenuList/MenuList.js +1 -1
  275. package/modern/MobileStepper/MobileStepper.js +5 -5
  276. package/modern/Modal/Modal.js +1 -1
  277. package/modern/PaginationItem/PaginationItem.js +27 -27
  278. package/modern/Paper/Paper.js +8 -7
  279. package/modern/Radio/Radio.js +4 -4
  280. package/modern/Rating/Rating.js +2 -2
  281. package/modern/Select/SelectInput.js +2 -2
  282. package/modern/Slider/Slider.js +1 -5
  283. package/modern/Snackbar/Snackbar.js +1 -1
  284. package/modern/SpeedDial/SpeedDial.js +1 -1
  285. package/modern/StepIcon/StepIcon.js +5 -5
  286. package/modern/StepLabel/StepLabel.js +4 -4
  287. package/modern/Stepper/StepperContext.js +10 -2
  288. package/modern/Stepper/index.js +3 -1
  289. package/modern/SvgIcon/SvgIcon.js +3 -3
  290. package/modern/Tab/Tab.js +7 -7
  291. package/modern/Table/Table.js +1 -1
  292. package/modern/TablePagination/TablePagination.js +1 -1
  293. package/modern/TableRow/TableRow.js +3 -3
  294. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  295. package/modern/Tabs/Tabs.js +4 -4
  296. package/modern/ToggleButton/ToggleButton.js +17 -10
  297. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  298. package/modern/Tooltip/Tooltip.js +5 -5
  299. package/modern/className/index.js +1 -8
  300. package/modern/index.js +1 -1
  301. package/modern/locale/index.js +22 -22
  302. package/modern/styles/createMixins.js +5 -3
  303. package/modern/styles/createPalette.js +2 -1
  304. package/modern/styles/createTheme.js +1 -1
  305. package/modern/styles/experimental_extendTheme.js +71 -44
  306. package/node/Alert/Alert.js +1 -0
  307. package/node/Autocomplete/Autocomplete.js +19 -16
  308. package/node/BottomNavigation/BottomNavigation.js +0 -0
  309. package/node/Box/Box.js +2 -2
  310. package/node/ButtonBase/TouchRipple.js +5 -5
  311. package/node/ButtonGroup/ButtonGroup.js +10 -10
  312. package/node/CardActionArea/CardActionArea.js +2 -2
  313. package/node/Container/Container.js +17 -113
  314. package/node/CssBaseline/CssBaseline.js +4 -4
  315. package/node/DialogContent/DialogContent.js +2 -2
  316. package/node/Divider/Divider.js +4 -4
  317. package/node/Drawer/Drawer.js +6 -6
  318. package/node/Fab/Fab.js +72 -66
  319. package/node/FormControlLabel/FormControlLabel.js +1 -1
  320. package/node/FormHelperText/FormHelperText.js +3 -3
  321. package/node/FormLabel/FormLabel.js +5 -5
  322. package/node/Icon/Icon.js +8 -8
  323. package/node/IconButton/IconButton.js +5 -5
  324. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  325. package/node/Input/Input.js +9 -4
  326. package/node/InputAdornment/InputAdornment.js +1 -1
  327. package/node/InputBase/InputBase.js +14 -8
  328. package/node/Link/Link.js +3 -9
  329. package/node/ListItem/ListItem.js +8 -8
  330. package/node/ListItemButton/ListItemButton.js +15 -9
  331. package/node/ListItemIcon/ListItemIcon.js +1 -1
  332. package/node/ListSubheader/ListSubheader.js +3 -3
  333. package/node/MenuItem/MenuItem.js +8 -8
  334. package/node/MenuList/MenuList.js +1 -1
  335. package/node/MobileStepper/MobileStepper.js +5 -5
  336. package/node/Modal/Modal.js +1 -1
  337. package/node/PaginationItem/PaginationItem.js +27 -27
  338. package/node/Paper/Paper.js +22 -14
  339. package/node/Radio/Radio.js +4 -4
  340. package/node/Rating/Rating.js +2 -2
  341. package/node/Select/SelectInput.js +2 -2
  342. package/node/Slider/Slider.js +1 -5
  343. package/node/Snackbar/Snackbar.js +1 -1
  344. package/node/SpeedDial/SpeedDial.js +1 -1
  345. package/node/StepIcon/StepIcon.js +5 -5
  346. package/node/StepLabel/StepLabel.js +4 -4
  347. package/node/Stepper/StepperContext.js +11 -1
  348. package/node/Stepper/index.js +22 -1
  349. package/node/SvgIcon/SvgIcon.js +4 -4
  350. package/node/Tab/Tab.js +7 -7
  351. package/node/Table/Table.js +1 -1
  352. package/node/TablePagination/TablePagination.js +1 -1
  353. package/node/TableRow/TableRow.js +3 -3
  354. package/node/TableSortLabel/TableSortLabel.js +4 -4
  355. package/node/Tabs/Tabs.js +4 -4
  356. package/node/ToggleButton/ToggleButton.js +17 -10
  357. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  358. package/node/Tooltip/Tooltip.js +5 -5
  359. package/node/className/index.js +2 -2
  360. package/node/index.js +1 -1
  361. package/node/locale/index.js +22 -22
  362. package/node/styles/createMixins.js +5 -3
  363. package/node/styles/createPalette.js +2 -1
  364. package/node/styles/createTheme.js +1 -1
  365. package/node/styles/experimental_extendTheme.js +72 -45
  366. package/package.json +5 -5
  367. package/styles/ThemeProvider.d.ts +1 -1
  368. package/styles/createMixins.d.ts +2 -6
  369. package/styles/createMixins.js +5 -3
  370. package/styles/createPalette.d.ts +10 -3
  371. package/styles/createPalette.js +2 -1
  372. package/styles/createTheme.js +1 -1
  373. package/styles/experimental_extendTheme.d.ts +43 -16
  374. package/styles/experimental_extendTheme.js +72 -45
  375. package/styles/index.d.ts +1 -0
  376. package/transitions/index.d.ts +1 -1
  377. package/transitions/transition.d.ts +13 -13
  378. package/transitions/utils.d.ts +23 -23
  379. package/umd/material-ui.development.js +1079 -894
  380. package/umd/material-ui.production.min.js +21 -21
  381. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  382. package/useTouchRipple/index.d.ts +1 -1
  383. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  384. package/utils/getScrollbarSize.d.ts +2 -2
  385. package/utils/ownerDocument.d.ts +2 -2
  386. package/utils/ownerWindow.d.ts +2 -2
  387. package/utils/setRef.d.ts +2 -2
@@ -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', {
@@ -12,8 +12,7 @@ import useTheme from '../styles/useTheme';
12
12
  import { getPaperUtilityClass } from './paperClasses'; // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
13
13
 
14
14
  import { jsx as _jsx } from "react/jsx-runtime";
15
-
16
- var getOverlayAlpha = function getOverlayAlpha(elevation) {
15
+ export var getOverlayAlpha = function getOverlayAlpha(elevation) {
17
16
  var alphaValue;
18
17
 
19
18
  if (elevation < 1) {
@@ -44,20 +43,24 @@ var PaperRoot = styled('div', {
44
43
  return [styles.root, styles[ownerState.variant], !ownerState.square && styles.rounded, ownerState.variant === 'elevation' && styles["elevation".concat(ownerState.elevation)]];
45
44
  }
46
45
  })(function (_ref) {
46
+ var _theme$vars$overlays;
47
+
47
48
  var theme = _ref.theme,
48
49
  ownerState = _ref.ownerState;
49
50
  return _extends({
50
- backgroundColor: theme.palette.background.paper,
51
- color: theme.palette.text.primary,
51
+ backgroundColor: (theme.vars || theme).palette.background.paper,
52
+ color: (theme.vars || theme).palette.text.primary,
52
53
  transition: theme.transitions.create('box-shadow')
53
54
  }, !ownerState.square && {
54
55
  borderRadius: theme.shape.borderRadius
55
56
  }, ownerState.variant === 'outlined' && {
56
- border: "1px solid ".concat(theme.palette.divider)
57
+ border: "1px solid ".concat((theme.vars || theme).palette.divider)
57
58
  }, ownerState.variant === 'elevation' && _extends({
58
- boxShadow: theme.shadows[ownerState.elevation]
59
- }, theme.palette.mode === 'dark' && {
59
+ boxShadow: (theme.vars || theme).shadows[ownerState.elevation]
60
+ }, !theme.vars && theme.palette.mode === 'dark' && {
60
61
  backgroundImage: "linear-gradient(".concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ", ").concat(alpha('#fff', getOverlayAlpha(ownerState.elevation)), ")")
62
+ }, theme.vars && {
63
+ backgroundImage: (_theme$vars$overlays = theme.vars.overlays) == null ? void 0 : _theme$vars$overlays[ownerState.elevation]
61
64
  }));
62
65
  });
63
66
  var Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
@@ -40,18 +40,18 @@ var RadioRoot = styled(SwitchBase, {
40
40
  var theme = _ref.theme,
41
41
  ownerState = _ref.ownerState;
42
42
  return _extends({
43
- color: theme.palette.text.secondary,
43
+ color: (theme.vars || theme).palette.text.secondary,
44
44
  '&:hover': {
45
- backgroundColor: alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
45
+ backgroundColor: theme.vars ? "rgba(".concat(ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel, " / ").concat(theme.vars.palette.action.hoverOpacity, ")") : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
46
46
  // Reset on touch devices, it doesn't add specificity
47
47
  '@media (hover: none)': {
48
48
  backgroundColor: 'transparent'
49
49
  }
50
50
  }
51
51
  }, ownerState.color !== 'default' && _defineProperty({}, "&.".concat(radioClasses.checked), {
52
- color: theme.palette[ownerState.color].main
52
+ color: (theme.vars || theme).palette[ownerState.color].main
53
53
  }), _defineProperty({}, "&.".concat(radioClasses.disabled), {
54
- color: theme.palette.action.disabled
54
+ color: (theme.vars || theme).palette.action.disabled
55
55
  }));
56
56
  });
57
57
 
@@ -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', {
@@ -325,8 +325,8 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function SelectInput(props, ref)
325
325
 
326
326
  var handleKeyDown = function handleKeyDown(event) {
327
327
  if (!readOnly) {
328
- var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on MacOS, but it's recommended by
329
- // https://www.w3.org/TR/wai-aria-practices/examples/listbox/listbox-collapsible.html
328
+ var validKeys = [' ', 'ArrowUp', 'ArrowDown', // The native select doesn't respond to enter on macOS, but it's recommended by
329
+ // https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
330
330
  'Enter'];
331
331
 
332
332
  if (validKeys.indexOf(event.key) !== -1) {
@@ -1,6 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
- import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
4
3
  import _extends from "@babel/runtime/helpers/esm/extends";
5
4
  import * as React from 'react';
6
5
  import PropTypes from 'prop-types';
@@ -21,15 +20,7 @@ var SliderRoot = styled('span', {
21
20
  slot: 'Root',
22
21
  overridesResolver: function overridesResolver(props, styles) {
23
22
  var ownerState = props.ownerState;
24
- var marks = ownerState.marksProp === true && ownerState.step !== null ? _toConsumableArray(Array(Math.floor((ownerState.max - ownerState.min) / ownerState.step) + 1)).map(function (_, index) {
25
- return {
26
- value: ownerState.min + ownerState.step * index
27
- };
28
- }) : ownerState.marksProp || [];
29
- var marked = marks.length > 0 && marks.some(function (mark) {
30
- return mark.label;
31
- });
32
- return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
23
+ return [styles.root, styles["color".concat(capitalize(ownerState.color))], ownerState.size !== 'medium' && styles["size".concat(capitalize(ownerState.size))], ownerState.marked && styles.marked, ownerState.orientation === 'vertical' && styles.vertical, ownerState.track === 'inverted' && styles.trackInverted, ownerState.track === false && styles.trackFalse];
33
24
  }
34
25
  })(function (_ref) {
35
26
  var _extends2;
@@ -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', {
@@ -134,7 +134,7 @@ var TabsScroller = styled('div', {
134
134
  overflowX: 'hidden',
135
135
  width: '100%'
136
136
  }, ownerState.hideScrollbar && {
137
- // Hide dimensionless scrollbar on MacOS
137
+ // Hide dimensionless scrollbar on macOS
138
138
  scrollbarWidth: 'none',
139
139
  // Firefox
140
140
  '&::-webkit-scrollbar': {
@@ -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,
@@ -197,7 +197,7 @@ var TabsScrollbarSize = styled(ScrollbarSize, {
197
197
  })({
198
198
  overflowX: 'auto',
199
199
  overflowY: 'hidden',
200
- // Hide dimensionless scrollbar on MacOS
200
+ // Hide dimensionless scrollbar on macOS
201
201
  scrollbarWidth: 'none',
202
202
  // Firefox
203
203
  '&::-webkit-scrollbar': {
@@ -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 && {