@mui/material 5.6.4 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/Autocomplete.js +15 -14
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/avatarClasses.d.ts +20 -20
  11. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  12. package/Backdrop/backdropClasses.d.ts +10 -10
  13. package/Badge/badgeClasses.d.ts +24 -24
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +76 -76
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroup.js +10 -10
  22. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  23. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  24. package/CHANGELOG.md +101 -0
  25. package/Card/cardClasses.d.ts +8 -8
  26. package/CardActionArea/CardActionArea.js +2 -2
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/chipClasses.d.ts +80 -80
  34. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  35. package/ClickAwayListener/index.d.ts +2 -2
  36. package/Collapse/collapseClasses.d.ts +18 -18
  37. package/Container/containerClasses.d.ts +22 -22
  38. package/CssBaseline/CssBaseline.js +4 -4
  39. package/Dialog/DialogContext.d.ts +6 -6
  40. package/Dialog/dialogClasses.d.ts +36 -36
  41. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  42. package/DialogContent/DialogContent.js +2 -2
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/Divider.js +4 -4
  47. package/Divider/dividerClasses.d.ts +34 -34
  48. package/Drawer/Drawer.js +6 -6
  49. package/Drawer/drawerClasses.d.ts +30 -30
  50. package/Fab/Fab.js +69 -65
  51. package/Fab/fabClasses.d.ts +26 -26
  52. package/FilledInput/filledInputClasses.d.ts +40 -40
  53. package/FormControl/formControlClasses.d.ts +14 -14
  54. package/FormControlLabel/FormControlLabel.js +1 -1
  55. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  56. package/FormGroup/formGroupClasses.d.ts +12 -12
  57. package/FormHelperText/FormHelperText.js +3 -3
  58. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  59. package/FormLabel/FormLabel.js +5 -5
  60. package/FormLabel/formLabelClasses.d.ts +22 -22
  61. package/Grid/gridClasses.d.ts +48 -48
  62. package/Icon/Icon.js +8 -8
  63. package/Icon/iconClasses.d.ts +24 -24
  64. package/IconButton/IconButton.js +5 -5
  65. package/IconButton/iconButtonClasses.d.ts +26 -26
  66. package/ImageList/imageListClasses.d.ts +16 -16
  67. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  68. package/ImageListItemBar/ImageListItemBar.js +1 -1
  69. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  70. package/Input/Input.js +9 -4
  71. package/Input/inputClasses.d.ts +34 -34
  72. package/InputAdornment/InputAdornment.js +1 -1
  73. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  74. package/InputBase/InputBase.js +16 -8
  75. package/InputBase/inputBaseClasses.d.ts +44 -44
  76. package/InputLabel/inputLabelClasses.d.ts +32 -32
  77. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  78. package/Link/Link.js +3 -8
  79. package/Link/linkClasses.d.ts +18 -18
  80. package/List/listClasses.d.ts +14 -14
  81. package/ListItem/ListItem.js +8 -8
  82. package/ListItem/listItemClasses.d.ts +30 -30
  83. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  84. package/ListItemButton/ListItemButton.js +8 -8
  85. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  86. package/ListItemIcon/ListItemIcon.js +1 -1
  87. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  88. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  89. package/ListItemText/listItemTextClasses.d.ts +18 -18
  90. package/ListSubheader/ListSubheader.js +3 -3
  91. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  92. package/Menu/menuClasses.d.ts +12 -12
  93. package/MenuItem/MenuItem.js +8 -8
  94. package/MenuItem/menuItemClasses.d.ts +20 -20
  95. package/MobileStepper/MobileStepper.js +5 -5
  96. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  97. package/Modal/Modal.js +1 -1
  98. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  99. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  100. package/Pagination/paginationClasses.d.ts +14 -14
  101. package/PaginationItem/PaginationItem.js +27 -27
  102. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  103. package/Paper/paperClasses.d.ts +39 -39
  104. package/Popover/popoverClasses.d.ts +10 -10
  105. package/Popper/Popper.d.ts +29 -29
  106. package/Radio/radioClasses.d.ts +16 -16
  107. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  108. package/RadioGroup/useRadioGroup.d.ts +4 -4
  109. package/Rating/Rating.js +2 -2
  110. package/Rating/ratingClasses.d.ts +40 -40
  111. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  112. package/Select/selectClasses.d.ts +30 -30
  113. package/Skeleton/skeletonClasses.d.ts +24 -24
  114. package/Snackbar/Snackbar.js +1 -1
  115. package/Snackbar/snackbarClasses.d.ts +20 -20
  116. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  117. package/SpeedDial/SpeedDial.js +1 -1
  118. package/SpeedDial/speedDialClasses.d.ts +22 -22
  119. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  120. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  121. package/Step/StepContext.d.ts +20 -20
  122. package/Step/stepClasses.d.ts +16 -16
  123. package/StepButton/stepButtonClasses.d.ts +14 -14
  124. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  125. package/StepContent/stepContentClasses.d.ts +12 -12
  126. package/StepIcon/StepIcon.js +5 -5
  127. package/StepIcon/stepIconClasses.d.ts +16 -16
  128. package/StepLabel/StepLabel.js +4 -4
  129. package/StepLabel/stepLabelClasses.d.ts +28 -28
  130. package/Stepper/StepperContext.d.ts +18 -0
  131. package/Stepper/StepperContext.js +10 -2
  132. package/Stepper/index.d.ts +3 -0
  133. package/Stepper/index.js +3 -1
  134. package/Stepper/stepperClasses.d.ts +14 -14
  135. package/SvgIcon/SvgIcon.js +4 -4
  136. package/SvgIcon/svgIconClasses.d.ts +24 -24
  137. package/Switch/switchClasses.d.ts +32 -32
  138. package/Tab/Tab.js +7 -7
  139. package/Tab/tabClasses.d.ts +26 -26
  140. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  141. package/Table/Table.js +1 -1
  142. package/Table/tableClasses.d.ts +10 -10
  143. package/TableBody/tableBodyClasses.d.ts +8 -8
  144. package/TableCell/tableCellClasses.d.ts +32 -32
  145. package/TableContainer/tableContainerClasses.d.ts +8 -8
  146. package/TableFooter/tableFooterClasses.d.ts +8 -8
  147. package/TableHead/tableHeadClasses.d.ts +8 -8
  148. package/TablePagination/TablePagination.js +1 -1
  149. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  150. package/TableRow/TableRow.js +3 -3
  151. package/TableRow/tableRowClasses.d.ts +16 -16
  152. package/TableSortLabel/TableSortLabel.js +4 -4
  153. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  154. package/Tabs/Tabs.js +2 -2
  155. package/Tabs/tabsClasses.d.ts +32 -32
  156. package/TextField/textFieldClasses.d.ts +8 -8
  157. package/ToggleButton/ToggleButton.js +17 -10
  158. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  159. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  160. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  161. package/Toolbar/toolbarClasses.d.ts +14 -14
  162. package/Tooltip/Tooltip.js +5 -5
  163. package/Tooltip/tooltipClasses.d.ts +30 -30
  164. package/Typography/typographyClasses.d.ts +50 -50
  165. package/className/index.d.ts +1 -8
  166. package/className/index.js +1 -8
  167. package/darkScrollbar/index.d.ts +28 -28
  168. package/index.js +1 -1
  169. package/internal/switchBaseClasses.d.ts +12 -12
  170. package/legacy/Autocomplete/Autocomplete.js +15 -14
  171. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  172. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  173. package/legacy/CardActionArea/CardActionArea.js +2 -2
  174. package/legacy/CssBaseline/CssBaseline.js +4 -4
  175. package/legacy/DialogContent/DialogContent.js +2 -2
  176. package/legacy/Divider/Divider.js +4 -4
  177. package/legacy/Drawer/Drawer.js +6 -6
  178. package/legacy/Fab/Fab.js +17 -17
  179. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  180. package/legacy/FormHelperText/FormHelperText.js +3 -3
  181. package/legacy/FormLabel/FormLabel.js +5 -5
  182. package/legacy/Icon/Icon.js +8 -8
  183. package/legacy/IconButton/IconButton.js +5 -5
  184. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  185. package/legacy/Input/Input.js +8 -3
  186. package/legacy/InputAdornment/InputAdornment.js +1 -1
  187. package/legacy/InputBase/InputBase.js +16 -8
  188. package/legacy/Link/Link.js +3 -9
  189. package/legacy/ListItem/ListItem.js +8 -8
  190. package/legacy/ListItemButton/ListItemButton.js +8 -8
  191. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  192. package/legacy/ListSubheader/ListSubheader.js +3 -3
  193. package/legacy/MenuItem/MenuItem.js +8 -8
  194. package/legacy/MobileStepper/MobileStepper.js +5 -5
  195. package/legacy/Modal/Modal.js +1 -1
  196. package/legacy/PaginationItem/PaginationItem.js +27 -27
  197. package/legacy/Rating/Rating.js +2 -2
  198. package/legacy/Snackbar/Snackbar.js +1 -1
  199. package/legacy/SpeedDial/SpeedDial.js +1 -1
  200. package/legacy/StepIcon/StepIcon.js +5 -5
  201. package/legacy/StepLabel/StepLabel.js +4 -4
  202. package/legacy/Stepper/StepperContext.js +10 -2
  203. package/legacy/Stepper/index.js +3 -1
  204. package/legacy/SvgIcon/SvgIcon.js +4 -4
  205. package/legacy/Tab/Tab.js +7 -7
  206. package/legacy/Table/Table.js +1 -1
  207. package/legacy/TablePagination/TablePagination.js +1 -1
  208. package/legacy/TableRow/TableRow.js +3 -3
  209. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  210. package/legacy/Tabs/Tabs.js +2 -2
  211. package/legacy/ToggleButton/ToggleButton.js +16 -9
  212. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  213. package/legacy/Tooltip/Tooltip.js +5 -5
  214. package/legacy/className/index.js +1 -8
  215. package/legacy/index.js +1 -1
  216. package/legacy/styles/createPalette.js +2 -1
  217. package/legacy/styles/experimental_extendTheme.js +52 -43
  218. package/locale/index.d.ts +71 -71
  219. package/modern/Autocomplete/Autocomplete.js +15 -14
  220. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  221. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  222. package/modern/CardActionArea/CardActionArea.js +2 -2
  223. package/modern/CssBaseline/CssBaseline.js +4 -4
  224. package/modern/DialogContent/DialogContent.js +2 -2
  225. package/modern/Divider/Divider.js +4 -4
  226. package/modern/Drawer/Drawer.js +6 -6
  227. package/modern/Fab/Fab.js +16 -16
  228. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  229. package/modern/FormHelperText/FormHelperText.js +3 -3
  230. package/modern/FormLabel/FormLabel.js +5 -5
  231. package/modern/Icon/Icon.js +8 -8
  232. package/modern/IconButton/IconButton.js +5 -5
  233. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  234. package/modern/Input/Input.js +9 -4
  235. package/modern/InputAdornment/InputAdornment.js +1 -1
  236. package/modern/InputBase/InputBase.js +16 -8
  237. package/modern/Link/Link.js +3 -8
  238. package/modern/ListItem/ListItem.js +8 -8
  239. package/modern/ListItemButton/ListItemButton.js +8 -8
  240. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  241. package/modern/ListSubheader/ListSubheader.js +3 -3
  242. package/modern/MenuItem/MenuItem.js +8 -8
  243. package/modern/MobileStepper/MobileStepper.js +5 -5
  244. package/modern/Modal/Modal.js +1 -1
  245. package/modern/PaginationItem/PaginationItem.js +27 -27
  246. package/modern/Rating/Rating.js +2 -2
  247. package/modern/Snackbar/Snackbar.js +1 -1
  248. package/modern/SpeedDial/SpeedDial.js +1 -1
  249. package/modern/StepIcon/StepIcon.js +5 -5
  250. package/modern/StepLabel/StepLabel.js +4 -4
  251. package/modern/Stepper/StepperContext.js +10 -2
  252. package/modern/Stepper/index.js +3 -1
  253. package/modern/SvgIcon/SvgIcon.js +3 -3
  254. package/modern/Tab/Tab.js +7 -7
  255. package/modern/Table/Table.js +1 -1
  256. package/modern/TablePagination/TablePagination.js +1 -1
  257. package/modern/TableRow/TableRow.js +3 -3
  258. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  259. package/modern/Tabs/Tabs.js +2 -2
  260. package/modern/ToggleButton/ToggleButton.js +17 -10
  261. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  262. package/modern/Tooltip/Tooltip.js +5 -5
  263. package/modern/className/index.js +1 -8
  264. package/modern/index.js +1 -1
  265. package/modern/styles/createPalette.js +2 -1
  266. package/modern/styles/experimental_extendTheme.js +56 -45
  267. package/node/Autocomplete/Autocomplete.js +15 -14
  268. package/node/BottomNavigation/BottomNavigation.js +0 -0
  269. package/node/ButtonGroup/ButtonGroup.js +10 -10
  270. package/node/CardActionArea/CardActionArea.js +2 -2
  271. package/node/CssBaseline/CssBaseline.js +4 -4
  272. package/node/DialogContent/DialogContent.js +2 -2
  273. package/node/Divider/Divider.js +4 -4
  274. package/node/Drawer/Drawer.js +6 -6
  275. package/node/Fab/Fab.js +69 -65
  276. package/node/FormControlLabel/FormControlLabel.js +1 -1
  277. package/node/FormHelperText/FormHelperText.js +3 -3
  278. package/node/FormLabel/FormLabel.js +5 -5
  279. package/node/Icon/Icon.js +8 -8
  280. package/node/IconButton/IconButton.js +5 -5
  281. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  282. package/node/Input/Input.js +9 -4
  283. package/node/InputAdornment/InputAdornment.js +1 -1
  284. package/node/InputBase/InputBase.js +14 -8
  285. package/node/Link/Link.js +3 -9
  286. package/node/ListItem/ListItem.js +8 -8
  287. package/node/ListItemButton/ListItemButton.js +8 -8
  288. package/node/ListItemIcon/ListItemIcon.js +1 -1
  289. package/node/ListSubheader/ListSubheader.js +3 -3
  290. package/node/MenuItem/MenuItem.js +8 -8
  291. package/node/MobileStepper/MobileStepper.js +5 -5
  292. package/node/Modal/Modal.js +1 -1
  293. package/node/PaginationItem/PaginationItem.js +27 -27
  294. package/node/Rating/Rating.js +2 -2
  295. package/node/Snackbar/Snackbar.js +1 -1
  296. package/node/SpeedDial/SpeedDial.js +1 -1
  297. package/node/StepIcon/StepIcon.js +5 -5
  298. package/node/StepLabel/StepLabel.js +4 -4
  299. package/node/Stepper/StepperContext.js +11 -1
  300. package/node/Stepper/index.js +22 -1
  301. package/node/SvgIcon/SvgIcon.js +4 -4
  302. package/node/Tab/Tab.js +7 -7
  303. package/node/Table/Table.js +1 -1
  304. package/node/TablePagination/TablePagination.js +1 -1
  305. package/node/TableRow/TableRow.js +3 -3
  306. package/node/TableSortLabel/TableSortLabel.js +4 -4
  307. package/node/Tabs/Tabs.js +2 -2
  308. package/node/ToggleButton/ToggleButton.js +17 -10
  309. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  310. package/node/Tooltip/Tooltip.js +5 -5
  311. package/node/className/index.js +2 -2
  312. package/node/index.js +1 -1
  313. package/node/styles/createPalette.js +2 -1
  314. package/node/styles/experimental_extendTheme.js +57 -47
  315. package/package.json +6 -5
  316. package/styles/ThemeProvider.d.ts +1 -1
  317. package/styles/createPalette.d.ts +9 -2
  318. package/styles/createPalette.js +2 -1
  319. package/styles/experimental_extendTheme.d.ts +13 -16
  320. package/styles/experimental_extendTheme.js +57 -46
  321. package/transitions/index.d.ts +1 -1
  322. package/transitions/transition.d.ts +13 -13
  323. package/transitions/utils.d.ts +23 -23
  324. package/umd/material-ui.development.js +477 -385
  325. package/umd/material-ui.production.min.js +21 -21
  326. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  327. package/useTouchRipple/index.d.ts +1 -1
  328. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  329. package/utils/getScrollbarSize.d.ts +2 -2
  330. package/utils/ownerDocument.d.ts +2 -2
  331. package/utils/ownerWindow.d.ts +2 -2
  332. package/utils/setRef.d.ts +2 -2
@@ -1,50 +1,50 @@
1
- export interface TypographyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="body2"`. */
5
- body2: string;
6
- /** Styles applied to the root element if `variant="body1"`. */
7
- body1: string;
8
- /** Styles applied to the root element if `variant="caption"`. */
9
- caption: string;
10
- /** Styles applied to the root element if `variant="button"`. */
11
- button: string;
12
- /** Styles applied to the root element if `variant="h1"`. */
13
- h1: string;
14
- /** Styles applied to the root element if `variant="h2"`. */
15
- h2: string;
16
- /** Styles applied to the root element if `variant="h3"`. */
17
- h3: string;
18
- /** Styles applied to the root element if `variant="h4"`. */
19
- h4: string;
20
- /** Styles applied to the root element if `variant="h5"`. */
21
- h5: string;
22
- /** Styles applied to the root element if `variant="h6"`. */
23
- h6: string;
24
- /** Styles applied to the root element if `variant="subtitle1"`. */
25
- subtitle1: string;
26
- /** Styles applied to the root element if `variant="subtitle2"`. */
27
- subtitle2: string;
28
- /** Styles applied to the root element if `variant="overline"`. */
29
- overline: string;
30
- /** Styles applied to the root element if `variant="inherit"`. */
31
- inherit: string;
32
- /** Styles applied to the root element if `align="left"`. */
33
- alignLeft: string;
34
- /** Styles applied to the root element if `align="center"`. */
35
- alignCenter: string;
36
- /** Styles applied to the root element if `align="right"`. */
37
- alignRight: string;
38
- /** Styles applied to the root element if `align="justify"`. */
39
- alignJustify: string;
40
- /** Styles applied to the root element if `nowrap={true}`. */
41
- noWrap: string;
42
- /** Styles applied to the root element if `gutterBottom={true}`. */
43
- gutterBottom: string;
44
- /** Styles applied to the root element if `paragraph={true}`. */
45
- paragraph: string;
46
- }
47
- export declare type TypographyClassKey = keyof TypographyClasses;
48
- export declare function getTypographyUtilityClass(slot: string): string;
49
- declare const typographyClasses: TypographyClasses;
50
- export default typographyClasses;
1
+ export interface TypographyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="body2"`. */
5
+ body2: string;
6
+ /** Styles applied to the root element if `variant="body1"`. */
7
+ body1: string;
8
+ /** Styles applied to the root element if `variant="caption"`. */
9
+ caption: string;
10
+ /** Styles applied to the root element if `variant="button"`. */
11
+ button: string;
12
+ /** Styles applied to the root element if `variant="h1"`. */
13
+ h1: string;
14
+ /** Styles applied to the root element if `variant="h2"`. */
15
+ h2: string;
16
+ /** Styles applied to the root element if `variant="h3"`. */
17
+ h3: string;
18
+ /** Styles applied to the root element if `variant="h4"`. */
19
+ h4: string;
20
+ /** Styles applied to the root element if `variant="h5"`. */
21
+ h5: string;
22
+ /** Styles applied to the root element if `variant="h6"`. */
23
+ h6: string;
24
+ /** Styles applied to the root element if `variant="subtitle1"`. */
25
+ subtitle1: string;
26
+ /** Styles applied to the root element if `variant="subtitle2"`. */
27
+ subtitle2: string;
28
+ /** Styles applied to the root element if `variant="overline"`. */
29
+ overline: string;
30
+ /** Styles applied to the root element if `variant="inherit"`. */
31
+ inherit: string;
32
+ /** Styles applied to the root element if `align="left"`. */
33
+ alignLeft: string;
34
+ /** Styles applied to the root element if `align="center"`. */
35
+ alignCenter: string;
36
+ /** Styles applied to the root element if `align="right"`. */
37
+ alignRight: string;
38
+ /** Styles applied to the root element if `align="justify"`. */
39
+ alignJustify: string;
40
+ /** Styles applied to the root element if `nowrap={true}`. */
41
+ noWrap: string;
42
+ /** Styles applied to the root element if `gutterBottom={true}`. */
43
+ gutterBottom: string;
44
+ /** Styles applied to the root element if `paragraph={true}`. */
45
+ paragraph: string;
46
+ }
47
+ export declare type TypographyClassKey = keyof TypographyClasses;
48
+ export declare function getTypographyUtilityClass(slot: string): string;
49
+ declare const typographyClasses: TypographyClasses;
50
+ export default typographyClasses;
@@ -1,8 +1 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
- export { unstable_ClassNameGenerator } from '@mui/base/className';
1
+ export { unstable_ClassNameGenerator } from '@mui/private-classnames';
@@ -1,9 +1,2 @@
1
- /**
2
- * Caution! this module must not include unstyled components import from `@mui/base`, otherwise, it will break the ClassNameGenerator.
3
- * ❌ import { ... } from '@mui/base';
4
- * ✅ import { ... } from '@mui/base/utils'; // must be specific base module
5
- *
6
- * Issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401
7
- */
8
1
  // eslint-disable-next-line import/prefer-default-export
9
- export { unstable_ClassNameGenerator } from '@mui/base/className';
2
+ export { unstable_ClassNameGenerator } from '@mui/private-classnames';
@@ -1,28 +1,28 @@
1
- export default function darkScrollbar(options?: {
2
- track: string;
3
- thumb: string;
4
- active: string;
5
- }): {
6
- scrollbarColor: string;
7
- '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
- backgroundColor: string;
9
- };
10
- '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
- borderRadius: number;
12
- backgroundColor: string;
13
- minHeight: number;
14
- border: string;
15
- };
16
- '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
- backgroundColor: string;
18
- };
19
- '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
- backgroundColor: string;
21
- };
22
- '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
- backgroundColor: string;
24
- };
25
- '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
- backgroundColor: string;
27
- };
28
- };
1
+ export default function darkScrollbar(options?: {
2
+ track: string;
3
+ thumb: string;
4
+ active: string;
5
+ }): {
6
+ scrollbarColor: string;
7
+ '&::-webkit-scrollbar, & *::-webkit-scrollbar': {
8
+ backgroundColor: string;
9
+ };
10
+ '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': {
11
+ borderRadius: number;
12
+ backgroundColor: string;
13
+ minHeight: number;
14
+ border: string;
15
+ };
16
+ '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': {
17
+ backgroundColor: string;
18
+ };
19
+ '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': {
20
+ backgroundColor: string;
21
+ };
22
+ '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': {
23
+ backgroundColor: string;
24
+ };
25
+ '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': {
26
+ backgroundColor: string;
27
+ };
28
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.4
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.
@@ -1,12 +1,12 @@
1
- export interface SwitchBaseClasses {
2
- root: string;
3
- checked: string;
4
- disabled: string;
5
- input: string;
6
- edgeStart: string;
7
- edgeEnd: string;
8
- }
9
- export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
- export declare function getSwitchBaseUtilityClass(slot: string): string;
11
- declare const switchBaseClasses: SwitchBaseClasses;
12
- export default switchBaseClasses;
1
+ export interface SwitchBaseClasses {
2
+ root: string;
3
+ checked: string;
4
+ disabled: string;
5
+ input: string;
6
+ edgeStart: string;
7
+ edgeEnd: string;
8
+ }
9
+ export declare type SwitchBaseClassKey = keyof SwitchBaseClasses;
10
+ export declare function getSwitchBaseUtilityClass(slot: string): string;
11
+ declare const switchBaseClasses: SwitchBaseClasses;
12
+ export default switchBaseClasses;
@@ -192,7 +192,7 @@ var AutocompletePopper = styled(Popper, {
192
192
  var theme = _ref10.theme,
193
193
  ownerState = _ref10.ownerState;
194
194
  return _extends({
195
- zIndex: theme.zIndex.modal
195
+ zIndex: (theme.vars || theme).zIndex.modal
196
196
  }, ownerState.disablePortal && {
197
197
  position: 'absolute'
198
198
  });
@@ -218,7 +218,7 @@ var AutocompleteLoading = styled('div', {
218
218
  })(function (_ref12) {
219
219
  var theme = _ref12.theme;
220
220
  return {
221
- color: theme.palette.text.secondary,
221
+ color: (theme.vars || theme).palette.text.secondary,
222
222
  padding: '14px 16px'
223
223
  };
224
224
  });
@@ -231,7 +231,7 @@ var AutocompleteNoOptions = styled('div', {
231
231
  })(function (_ref13) {
232
232
  var theme = _ref13.theme;
233
233
  return {
234
- color: theme.palette.text.secondary,
234
+ color: (theme.vars || theme).palette.text.secondary,
235
235
  padding: '14px 16px'
236
236
  };
237
237
  });
@@ -268,26 +268,26 @@ var AutocompleteListbox = styled('div', {
268
268
  }, _defineProperty(_$concat4, theme.breakpoints.up('sm'), {
269
269
  minHeight: 'auto'
270
270
  }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focused), {
271
- backgroundColor: theme.palette.action.hover,
271
+ backgroundColor: (theme.vars || theme).palette.action.hover,
272
272
  // Reset on touch devices, it doesn't add specificity
273
273
  '@media (hover: none)': {
274
274
  backgroundColor: 'transparent'
275
275
  }
276
276
  }), _defineProperty(_$concat4, '&[aria-disabled="true"]', {
277
- opacity: theme.palette.action.disabledOpacity,
277
+ opacity: (theme.vars || theme).palette.action.disabledOpacity,
278
278
  pointerEvents: 'none'
279
279
  }), _defineProperty(_$concat4, "&.".concat(autocompleteClasses.focusVisible), {
280
- backgroundColor: theme.palette.action.focus
280
+ backgroundColor: (theme.vars || theme).palette.action.focus
281
281
  }), _defineProperty(_$concat4, '&[aria-selected="true"]', (_ariaSelectedTru = {
282
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
282
+ 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)
283
283
  }, _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focused), {
284
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
284
+ 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),
285
285
  // Reset on touch devices, it doesn't add specificity
286
286
  '@media (hover: none)': {
287
- backgroundColor: theme.palette.action.selected
287
+ backgroundColor: (theme.vars || theme).palette.action.selected
288
288
  }
289
289
  }), _defineProperty(_ariaSelectedTru, "&.".concat(autocompleteClasses.focusVisible), {
290
- backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
290
+ backgroundColor: theme.vars ? "rgba(".concat(theme.vars.palette.primary.mainChannel, " / calc(").concat(theme.vars.palette.action.selectedOpacity, " + ").concat(theme.vars.palette.action.focusOpacity, "))") : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
291
291
  }), _ariaSelectedTru)), _$concat4));
292
292
  });
293
293
  var AutocompleteGroupLabel = styled(ListSubheader, {
@@ -299,7 +299,7 @@ var AutocompleteGroupLabel = styled(ListSubheader, {
299
299
  })(function (_ref16) {
300
300
  var theme = _ref16.theme;
301
301
  return {
302
- backgroundColor: theme.palette.background.paper,
302
+ backgroundColor: (theme.vars || theme).palette.background.paper,
303
303
  top: -8
304
304
  };
305
305
  });
@@ -558,10 +558,11 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
558
558
  fullWidth: true,
559
559
  size: size === 'small' ? 'small' : undefined,
560
560
  InputLabelProps: getInputLabelProps(),
561
- InputProps: {
561
+ InputProps: _extends({
562
562
  ref: setAnchorEl,
563
563
  className: classes.inputRoot,
564
- startAdornment: startAdornment,
564
+ startAdornment: startAdornment
565
+ }, (hasClearIcon || hasPopupIcon) && {
565
566
  endAdornment: /*#__PURE__*/_jsxs(AutocompleteEndAdornment, {
566
567
  className: classes.endAdornment,
567
568
  ownerState: ownerState,
@@ -581,7 +582,7 @@ var Autocomplete = /*#__PURE__*/React.forwardRef(function Autocomplete(inProps,
581
582
  children: popupIcon
582
583
  })) : null]
583
584
  })
584
- },
585
+ }),
585
586
  inputProps: _extends({
586
587
  className: clsx(classes.input),
587
588
  disabled: disabled,
File without changes
@@ -42,9 +42,9 @@ var ButtonGroupRoot = styled('div', {
42
42
  ownerState = _ref6.ownerState;
43
43
  return _extends({
44
44
  display: 'inline-flex',
45
- borderRadius: theme.shape.borderRadius
45
+ borderRadius: (theme.vars || theme).shape.borderRadius
46
46
  }, ownerState.variant === 'contained' && {
47
- boxShadow: theme.shadows[2]
47
+ boxShadow: (theme.vars || theme).shadows[2]
48
48
  }, ownerState.disableElevation && {
49
49
  boxShadow: 'none'
50
50
  }, ownerState.fullWidth && {
@@ -71,25 +71,25 @@ var ButtonGroupRoot = styled('div', {
71
71
  borderBottomRightRadius: 0,
72
72
  borderBottomLeftRadius: 0
73
73
  }, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
74
- borderRight: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
74
+ borderRight: 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)')
75
75
  }, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
76
- borderBottom: "1px solid ".concat(theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)')
76
+ borderBottom: 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)')
77
77
  }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
78
- borderColor: alpha(theme.palette[ownerState.color].main, 0.5)
78
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette[ownerState.color].mainChannel, " / 0.5)") : alpha(theme.palette[ownerState.color].main, 0.5)
79
79
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
80
80
  borderRightColor: 'transparent'
81
81
  }, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
82
82
  borderBottomColor: 'transparent'
83
83
  }, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && _defineProperty({
84
- borderRight: "1px solid ".concat(theme.palette.grey[400])
84
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.grey[400])
85
85
  }, "&.".concat(buttonGroupClasses.disabled), {
86
- borderRight: "1px solid ".concat(theme.palette.action.disabled)
86
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
87
87
  }), ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && _defineProperty({
88
- borderBottom: "1px solid ".concat(theme.palette.grey[400])
88
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.grey[400])
89
89
  }, "&.".concat(buttonGroupClasses.disabled), {
90
- borderBottom: "1px solid ".concat(theme.palette.action.disabled)
90
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.action.disabled)
91
91
  }), ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
92
- borderColor: theme.palette[ownerState.color].dark
92
+ borderColor: (theme.vars || theme).palette[ownerState.color].dark
93
93
  }, {
94
94
  '&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
95
95
  borderRightColor: 'currentColor'
@@ -36,12 +36,12 @@ var CardActionAreaRoot = styled(ButtonBase, {
36
36
  textAlign: 'inherit',
37
37
  width: '100%'
38
38
  }, _defineProperty(_ref2, "&:hover .".concat(cardActionAreaClasses.focusHighlight), {
39
- opacity: theme.palette.action.hoverOpacity,
39
+ opacity: (theme.vars || theme).palette.action.hoverOpacity,
40
40
  '@media (hover: none)': {
41
41
  opacity: 0
42
42
  }
43
43
  }), _defineProperty(_ref2, "&.".concat(cardActionAreaClasses.focusVisible, " .").concat(cardActionAreaClasses.focusHighlight), {
44
- opacity: theme.palette.action.focusOpacity
44
+ opacity: (theme.vars || theme).palette.action.focusOpacity
45
45
  }), _ref2;
46
46
  });
47
47
  var CardActionAreaFocusHighlight = styled('span', {
@@ -22,12 +22,12 @@ export var html = function html(theme, enableColorScheme) {
22
22
  };
23
23
  export var body = function body(theme) {
24
24
  return _extends({
25
- color: theme.palette.text.primary
25
+ color: (theme.vars || theme).palette.text.primary
26
26
  }, theme.typography.body1, {
27
- backgroundColor: theme.palette.background.default,
27
+ backgroundColor: (theme.vars || theme).palette.background.default,
28
28
  '@media print': {
29
29
  // Save printer ink.
30
- backgroundColor: theme.palette.common.white
30
+ backgroundColor: (theme.vars || theme).palette.common.white
31
31
  }
32
32
  });
33
33
  };
@@ -50,7 +50,7 @@ var _styles = function styles(theme) {
50
50
  // Add support for document.body.requestFullScreen().
51
51
  // Other elements, if background transparent, are not supported.
52
52
  '&::backdrop': {
53
- backgroundColor: theme.palette.background.default
53
+ backgroundColor: (theme.vars || theme).palette.background.default
54
54
  }
55
55
  })
56
56
  };
@@ -38,8 +38,8 @@ var DialogContentRoot = styled('div', {
38
38
  padding: '20px 24px'
39
39
  }, ownerState.dividers ? {
40
40
  padding: '16px 24px',
41
- borderTop: "1px solid ".concat(theme.palette.divider),
42
- borderBottom: "1px solid ".concat(theme.palette.divider)
41
+ borderTop: "1px solid ".concat((theme.vars || theme).palette.divider),
42
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider)
43
43
  } : _defineProperty({}, ".".concat(dialogTitleClasses.root, " + &"), {
44
44
  paddingTop: 0
45
45
  }));
@@ -42,7 +42,7 @@ var DividerRoot = styled('div', {
42
42
  flexShrink: 0,
43
43
  borderWidth: 0,
44
44
  borderStyle: 'solid',
45
- borderColor: theme.palette.divider,
45
+ borderColor: (theme.vars || theme).palette.divider,
46
46
  borderBottomWidth: 'thin'
47
47
  }, ownerState.absolute && {
48
48
  position: 'absolute',
@@ -50,7 +50,7 @@ var DividerRoot = styled('div', {
50
50
  left: 0,
51
51
  width: '100%'
52
52
  }, ownerState.light && {
53
- borderColor: alpha(theme.palette.divider, 0.08)
53
+ borderColor: theme.vars ? "rgba(".concat(theme.vars.palette.dividerChannel, " / 0.08)") : alpha(theme.palette.divider, 0.08)
54
54
  }, ownerState.variant === 'inset' && {
55
55
  marginLeft: 72
56
56
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -78,7 +78,7 @@ var DividerRoot = styled('div', {
78
78
  '&::before, &::after': {
79
79
  position: 'relative',
80
80
  width: '100%',
81
- borderTop: "thin solid ".concat(theme.palette.divider),
81
+ borderTop: "thin solid ".concat((theme.vars || theme).palette.divider),
82
82
  top: '50%',
83
83
  content: '""',
84
84
  transform: 'translateY(50%)'
@@ -94,7 +94,7 @@ var DividerRoot = styled('div', {
94
94
  top: '0%',
95
95
  left: '50%',
96
96
  borderTop: 0,
97
- borderLeft: "thin solid ".concat(theme.palette.divider),
97
+ borderLeft: "thin solid ".concat((theme.vars || theme).palette.divider),
98
98
  transform: 'translateX(0%)'
99
99
  }
100
100
  });
@@ -40,7 +40,7 @@ var DrawerRoot = styled(Modal, {
40
40
  })(function (_ref) {
41
41
  var theme = _ref.theme;
42
42
  return {
43
- zIndex: theme.zIndex.drawer
43
+ zIndex: (theme.vars || theme).zIndex.drawer
44
44
  };
45
45
  });
46
46
  var DrawerDockedRoot = styled('div', {
@@ -68,7 +68,7 @@ var DrawerPaper = styled(Paper, {
68
68
  flexDirection: 'column',
69
69
  height: '100%',
70
70
  flex: '1 0 auto',
71
- zIndex: theme.zIndex.drawer,
71
+ zIndex: (theme.vars || theme).zIndex.drawer,
72
72
  // Add iOS momentum scrolling for iOS < 13.0
73
73
  WebkitOverflowScrolling: 'touch',
74
74
  // temporary style
@@ -96,13 +96,13 @@ var DrawerPaper = styled(Paper, {
96
96
  height: 'auto',
97
97
  maxHeight: '100%'
98
98
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
99
- borderRight: "1px solid ".concat(theme.palette.divider)
99
+ borderRight: "1px solid ".concat((theme.vars || theme).palette.divider)
100
100
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
101
- borderBottom: "1px solid ".concat(theme.palette.divider)
101
+ borderBottom: "1px solid ".concat((theme.vars || theme).palette.divider)
102
102
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
103
- borderLeft: "1px solid ".concat(theme.palette.divider)
103
+ borderLeft: "1px solid ".concat((theme.vars || theme).palette.divider)
104
104
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
105
- borderTop: "1px solid ".concat(theme.palette.divider)
105
+ borderTop: "1px solid ".concat((theme.vars || theme).palette.divider)
106
106
  });
107
107
  });
108
108
  var oppositeDirection = {
package/legacy/Fab/Fab.js CHANGED
@@ -31,7 +31,7 @@ var FabRoot = styled(ButtonBase, {
31
31
  return [styles.root, styles[ownerState.variant], styles["size".concat(capitalize(ownerState.size))], ownerState.color === 'inherit' && styles.colorInherit, styles[capitalize(ownerState.size)], styles[ownerState.color]];
32
32
  }
33
33
  })(function (_ref) {
34
- var _extends2;
34
+ var _theme$palette$getCon, _theme$palette, _extends2;
35
35
 
36
36
  var theme = _ref.theme,
37
37
  ownerState = _ref.ownerState;
@@ -45,27 +45,27 @@ var FabRoot = styled(ButtonBase, {
45
45
  minWidth: 0,
46
46
  width: 56,
47
47
  height: 56,
48
- zIndex: theme.zIndex.fab,
49
- boxShadow: theme.shadows[6],
48
+ zIndex: (theme.vars || theme).zIndex.fab,
49
+ boxShadow: (theme.vars || theme).shadows[6],
50
50
  '&:active': {
51
- boxShadow: theme.shadows[12]
51
+ boxShadow: (theme.vars || theme).shadows[12]
52
52
  },
53
- color: theme.palette.getContrastText(theme.palette.grey[300]),
54
- backgroundColor: theme.palette.grey[300],
53
+ color: theme.vars ? theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
54
+ backgroundColor: (theme.vars || theme).palette.grey[300],
55
55
  '&:hover': {
56
- backgroundColor: theme.palette.grey.A100,
56
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
57
57
  // Reset on touch devices, it doesn't add specificity
58
58
  '@media (hover: none)': {
59
- backgroundColor: theme.palette.grey[300]
59
+ backgroundColor: (theme.vars || theme).palette.grey[300]
60
60
  },
61
61
  textDecoration: 'none'
62
62
  }
63
63
  }, _defineProperty(_extends2, "&.".concat(fabClasses.focusVisible), {
64
- boxShadow: theme.shadows[6]
64
+ boxShadow: (theme.vars || theme).shadows[6]
65
65
  }), _defineProperty(_extends2, "&.".concat(fabClasses.disabled), {
66
- color: theme.palette.action.disabled,
67
- boxShadow: theme.shadows[0],
68
- backgroundColor: theme.palette.action.disabledBackground
66
+ color: (theme.vars || theme).palette.action.disabled,
67
+ boxShadow: (theme.vars || theme).shadows[0],
68
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
69
69
  }), _extends2), ownerState.size === 'small' && {
70
70
  width: 40,
71
71
  height: 40
@@ -97,14 +97,14 @@ var FabRoot = styled(ButtonBase, {
97
97
  }, function (_ref2) {
98
98
  var theme = _ref2.theme,
99
99
  ownerState = _ref2.ownerState;
100
- return _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
101
- color: theme.palette[ownerState.color].contrastText,
102
- backgroundColor: theme.palette[ownerState.color].main,
100
+ return _extends({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
101
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
102
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
103
103
  '&:hover': {
104
- backgroundColor: theme.palette[ownerState.color].dark,
104
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
105
105
  // Reset on touch devices, it doesn't add specificity
106
106
  '@media (hover: none)': {
107
- backgroundColor: theme.palette[ownerState.color].main
107
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
108
108
  }
109
109
  }
110
110
  });
@@ -61,7 +61,7 @@ export var FormControlLabelRoot = styled('label', {
61
61
  flexDirection: 'column',
62
62
  marginLeft: 16
63
63
  }, _defineProperty({}, "& .".concat(formControlLabelClasses.label), _defineProperty({}, "&.".concat(formControlLabelClasses.disabled), {
64
- color: theme.palette.text.disabled
64
+ color: (theme.vars || theme).palette.text.disabled
65
65
  })));
66
66
  });
67
67
  /**
@@ -44,7 +44,7 @@ var FormHelperTextRoot = styled('p', {
44
44
  var theme = _ref.theme,
45
45
  ownerState = _ref.ownerState;
46
46
  return _extends({
47
- color: theme.palette.text.secondary
47
+ color: (theme.vars || theme).palette.text.secondary
48
48
  }, theme.typography.caption, (_extends2 = {
49
49
  textAlign: 'left',
50
50
  marginTop: 3,
@@ -52,9 +52,9 @@ var FormHelperTextRoot = styled('p', {
52
52
  marginBottom: 0,
53
53
  marginLeft: 0
54
54
  }, _defineProperty(_extends2, "&.".concat(formHelperTextClasses.disabled), {
55
- color: theme.palette.text.disabled
55
+ color: (theme.vars || theme).palette.text.disabled
56
56
  }), _defineProperty(_extends2, "&.".concat(formHelperTextClasses.error), {
57
- color: theme.palette.error.main
57
+ color: (theme.vars || theme).palette.error.main
58
58
  }), _extends2), ownerState.size === 'small' && {
59
59
  marginTop: 4
60
60
  }, ownerState.contained && {
@@ -41,17 +41,17 @@ export var FormLabelRoot = styled('label', {
41
41
  var theme = _ref2.theme,
42
42
  ownerState = _ref2.ownerState;
43
43
  return _extends({
44
- color: theme.palette.text.secondary
44
+ color: (theme.vars || theme).palette.text.secondary
45
45
  }, theme.typography.body1, (_extends2 = {
46
46
  lineHeight: '1.4375em',
47
47
  padding: 0,
48
48
  position: 'relative'
49
49
  }, _defineProperty(_extends2, "&.".concat(formLabelClasses.focused), {
50
- color: theme.palette[ownerState.color].main
50
+ color: (theme.vars || theme).palette[ownerState.color].main
51
51
  }), _defineProperty(_extends2, "&.".concat(formLabelClasses.disabled), {
52
- color: theme.palette.text.disabled
52
+ color: (theme.vars || theme).palette.text.disabled
53
53
  }), _defineProperty(_extends2, "&.".concat(formLabelClasses.error), {
54
- color: theme.palette.error.main
54
+ color: (theme.vars || theme).palette.error.main
55
55
  }), _extends2));
56
56
  });
57
57
  var AsteriskComponent = styled('span', {
@@ -63,7 +63,7 @@ var AsteriskComponent = styled('span', {
63
63
  })(function (_ref3) {
64
64
  var theme = _ref3.theme;
65
65
  return _defineProperty({}, "&.".concat(formLabelClasses.error), {
66
- color: theme.palette.error.main
66
+ color: (theme.vars || theme).palette.error.main
67
67
  });
68
68
  });
69
69
  var FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
@@ -50,14 +50,14 @@ var IconRoot = styled('span', {
50
50
  }[ownerState.fontSize],
51
51
  // TODO v5 deprecate, v6 remove for sx
52
52
  color: {
53
- primary: theme.palette.primary.main,
54
- secondary: theme.palette.secondary.main,
55
- info: theme.palette.info.main,
56
- success: theme.palette.success.main,
57
- warning: theme.palette.warning.main,
58
- action: theme.palette.action.active,
59
- error: theme.palette.error.main,
60
- disabled: theme.palette.action.disabled,
53
+ primary: (theme.vars || theme).palette.primary.main,
54
+ secondary: (theme.vars || theme).palette.secondary.main,
55
+ info: (theme.vars || theme).palette.info.main,
56
+ success: (theme.vars || theme).palette.success.main,
57
+ warning: (theme.vars || theme).palette.warning.main,
58
+ action: (theme.vars || theme).palette.action.active,
59
+ error: (theme.vars || theme).palette.error.main,
60
+ disabled: (theme.vars || theme).palette.action.disabled,
61
61
  inherit: undefined
62
62
  }[ownerState.color]
63
63
  };