@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
@@ -7,123 +7,32 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var React = _interopRequireWildcard(require("react"));
15
-
16
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
11
 
18
- var _clsx = _interopRequireDefault(require("clsx"));
19
-
20
- var _base = require("@mui/base");
21
-
22
- var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
23
-
24
- var _styled = _interopRequireDefault(require("../styles/styled"));
25
-
26
- var _containerClasses = require("./containerClasses");
12
+ var _system = require("@mui/system");
27
13
 
28
14
  var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
29
15
 
30
- var _jsxRuntime = require("react/jsx-runtime");
31
-
32
- const _excluded = ["className", "component", "disableGutters", "fixed", "maxWidth"];
33
-
34
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
35
-
36
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
-
38
- const useUtilityClasses = ownerState => {
39
- const {
40
- classes,
41
- fixed,
42
- disableGutters,
43
- maxWidth
44
- } = ownerState;
45
- const slots = {
46
- root: ['root', maxWidth && `maxWidth${(0, _capitalize.default)(String(maxWidth))}`, fixed && 'fixed', disableGutters && 'disableGutters']
47
- };
48
- return (0, _base.unstable_composeClasses)(slots, _containerClasses.getContainerUtilityClass, classes);
49
- };
50
-
51
- const ContainerRoot = (0, _styled.default)('div', {
52
- name: 'MuiContainer',
53
- slot: 'Root',
54
- overridesResolver: (props, styles) => {
55
- const {
56
- ownerState
57
- } = props;
58
- return [styles.root, styles[`maxWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
59
- }
60
- })(({
61
- theme,
62
- ownerState
63
- }) => (0, _extends2.default)({
64
- width: '100%',
65
- marginLeft: 'auto',
66
- boxSizing: 'border-box',
67
- marginRight: 'auto',
68
- display: 'block'
69
- }, !ownerState.disableGutters && {
70
- paddingLeft: theme.spacing(2),
71
- paddingRight: theme.spacing(2),
72
- [theme.breakpoints.up('sm')]: {
73
- paddingLeft: theme.spacing(3),
74
- paddingRight: theme.spacing(3)
75
- }
76
- }), ({
77
- theme,
78
- ownerState
79
- }) => ownerState.fixed && Object.keys(theme.breakpoints.values).reduce((acc, breakpoint) => {
80
- const value = theme.breakpoints.values[breakpoint];
16
+ var _styled = _interopRequireDefault(require("../styles/styled"));
81
17
 
82
- if (value !== 0) {
83
- acc[theme.breakpoints.up(breakpoint)] = {
84
- maxWidth: `${value}${theme.breakpoints.unit}`
85
- };
86
- }
18
+ var _useThemeProps = _interopRequireDefault(require("../styles/useThemeProps"));
87
19
 
88
- return acc;
89
- }, {}), ({
90
- theme,
91
- ownerState
92
- }) => (0, _extends2.default)({}, ownerState.maxWidth === 'xs' && {
93
- [theme.breakpoints.up('xs')]: {
94
- maxWidth: Math.max(theme.breakpoints.values.xs, 444)
95
- }
96
- }, ownerState.maxWidth && ownerState.maxWidth !== 'xs' && {
97
- [theme.breakpoints.up(ownerState.maxWidth)]: {
98
- maxWidth: `${theme.breakpoints.values[ownerState.maxWidth]}${theme.breakpoints.unit}`
99
- }
100
- }));
101
- const Container = /*#__PURE__*/React.forwardRef(function Container(inProps, ref) {
102
- const props = (0, _useThemeProps.default)({
20
+ /* eslint-disable material-ui/mui-name-matches-component-name */
21
+ const Container = (0, _system.createContainer)({
22
+ createStyledComponent: (0, _styled.default)('div', {
23
+ name: 'MuiContainer',
24
+ slot: 'Root',
25
+ overridesResolver: (props, styles) => {
26
+ const {
27
+ ownerState
28
+ } = props;
29
+ return [styles.root, styles[`maxWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
30
+ }
31
+ }),
32
+ useThemeProps: inProps => (0, _useThemeProps.default)({
103
33
  props: inProps,
104
34
  name: 'MuiContainer'
105
- });
106
- const {
107
- className,
108
- component = 'div',
109
- disableGutters = false,
110
- fixed = false,
111
- maxWidth = 'lg'
112
- } = props,
113
- other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
114
- const ownerState = (0, _extends2.default)({}, props, {
115
- component,
116
- disableGutters,
117
- fixed,
118
- maxWidth
119
- });
120
- const classes = useUtilityClasses(ownerState);
121
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(ContainerRoot, (0, _extends2.default)({
122
- as: component,
123
- ownerState: ownerState,
124
- className: (0, _clsx.default)(classes.root, className),
125
- ref: ref
126
- }, other));
35
+ })
127
36
  });
128
37
  process.env.NODE_ENV !== "production" ? Container.propTypes
129
38
  /* remove-proptypes */
@@ -143,11 +52,6 @@ process.env.NODE_ENV !== "production" ? Container.propTypes
143
52
  */
144
53
  classes: _propTypes.default.object,
145
54
 
146
- /**
147
- * @ignore
148
- */
149
- className: _propTypes.default.string,
150
-
151
55
  /**
152
56
  * The component used for the root node.
153
57
  * Either a string to use a HTML element or a component.
@@ -40,12 +40,12 @@ const html = (theme, enableColorScheme) => (0, _extends2.default)({
40
40
  exports.html = html;
41
41
 
42
42
  const body = theme => (0, _extends2.default)({
43
- color: theme.palette.text.primary
43
+ color: (theme.vars || theme).palette.text.primary
44
44
  }, theme.typography.body1, {
45
- backgroundColor: theme.palette.background.default,
45
+ backgroundColor: (theme.vars || theme).palette.background.default,
46
46
  '@media print': {
47
47
  // Save printer ink.
48
- backgroundColor: theme.palette.common.white
48
+ backgroundColor: (theme.vars || theme).palette.common.white
49
49
  }
50
50
  });
51
51
 
@@ -68,7 +68,7 @@ const styles = (theme, enableColorScheme = false) => {
68
68
  // Add support for document.body.requestFullScreen().
69
69
  // Other elements, if background transparent, are not supported.
70
70
  '&::backdrop': {
71
- backgroundColor: theme.palette.background.default
71
+ backgroundColor: (theme.vars || theme).palette.background.default
72
72
  }
73
73
  })
74
74
  };
@@ -66,8 +66,8 @@ const DialogContentRoot = (0, _styled.default)('div', {
66
66
  padding: '20px 24px'
67
67
  }, ownerState.dividers ? {
68
68
  padding: '16px 24px',
69
- borderTop: `1px solid ${theme.palette.divider}`,
70
- borderBottom: `1px solid ${theme.palette.divider}`
69
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`,
70
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
71
71
  } : {
72
72
  [`.${_dialogTitleClasses.default.root} + &`]: {
73
73
  paddingTop: 0
@@ -71,7 +71,7 @@ const DividerRoot = (0, _styled.default)('div', {
71
71
  flexShrink: 0,
72
72
  borderWidth: 0,
73
73
  borderStyle: 'solid',
74
- borderColor: theme.palette.divider,
74
+ borderColor: (theme.vars || theme).palette.divider,
75
75
  borderBottomWidth: 'thin'
76
76
  }, ownerState.absolute && {
77
77
  position: 'absolute',
@@ -79,7 +79,7 @@ const DividerRoot = (0, _styled.default)('div', {
79
79
  left: 0,
80
80
  width: '100%'
81
81
  }, ownerState.light && {
82
- borderColor: (0, _system.alpha)(theme.palette.divider, 0.08)
82
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : (0, _system.alpha)(theme.palette.divider, 0.08)
83
83
  }, ownerState.variant === 'inset' && {
84
84
  marginLeft: 72
85
85
  }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
@@ -106,7 +106,7 @@ const DividerRoot = (0, _styled.default)('div', {
106
106
  '&::before, &::after': {
107
107
  position: 'relative',
108
108
  width: '100%',
109
- borderTop: `thin solid ${theme.palette.divider}`,
109
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
110
110
  top: '50%',
111
111
  content: '""',
112
112
  transform: 'translateY(50%)'
@@ -121,7 +121,7 @@ const DividerRoot = (0, _styled.default)('div', {
121
121
  top: '0%',
122
122
  left: '50%',
123
123
  borderTop: 0,
124
- borderLeft: `thin solid ${theme.palette.divider}`,
124
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
125
125
  transform: 'translateX(0%)'
126
126
  }
127
127
  }), ({
@@ -77,7 +77,7 @@ const DrawerRoot = (0, _styled.default)(_Modal.default, {
77
77
  })(({
78
78
  theme
79
79
  }) => ({
80
- zIndex: theme.zIndex.drawer
80
+ zIndex: (theme.vars || theme).zIndex.drawer
81
81
  }));
82
82
  const DrawerDockedRoot = (0, _styled.default)('div', {
83
83
  shouldForwardProp: _styled.rootShouldForwardProp,
@@ -106,7 +106,7 @@ const DrawerPaper = (0, _styled.default)(_Paper.default, {
106
106
  flexDirection: 'column',
107
107
  height: '100%',
108
108
  flex: '1 0 auto',
109
- zIndex: theme.zIndex.drawer,
109
+ zIndex: (theme.vars || theme).zIndex.drawer,
110
110
  // Add iOS momentum scrolling for iOS < 13.0
111
111
  WebkitOverflowScrolling: 'touch',
112
112
  // temporary style
@@ -134,13 +134,13 @@ const DrawerPaper = (0, _styled.default)(_Paper.default, {
134
134
  height: 'auto',
135
135
  maxHeight: '100%'
136
136
  }, ownerState.anchor === 'left' && ownerState.variant !== 'temporary' && {
137
- borderRight: `1px solid ${theme.palette.divider}`
137
+ borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
138
138
  }, ownerState.anchor === 'top' && ownerState.variant !== 'temporary' && {
139
- borderBottom: `1px solid ${theme.palette.divider}`
139
+ borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
140
140
  }, ownerState.anchor === 'right' && ownerState.variant !== 'temporary' && {
141
- borderLeft: `1px solid ${theme.palette.divider}`
141
+ borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
142
142
  }, ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary' && {
143
- borderTop: `1px solid ${theme.palette.divider}`
143
+ borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
144
144
  }));
145
145
  const oppositeDirection = {
146
146
  left: 'right',
package/node/Fab/Fab.js CHANGED
@@ -62,77 +62,81 @@ const FabRoot = (0, _styled.default)(_ButtonBase.default, {
62
62
  })(({
63
63
  theme,
64
64
  ownerState
65
- }) => (0, _extends2.default)({}, theme.typography.button, {
66
- minHeight: 36,
67
- transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
68
- duration: theme.transitions.duration.short
69
- }),
70
- borderRadius: '50%',
71
- padding: 0,
72
- minWidth: 0,
73
- width: 56,
74
- height: 56,
75
- zIndex: theme.zIndex.fab,
76
- boxShadow: theme.shadows[6],
77
- '&:active': {
78
- boxShadow: theme.shadows[12]
79
- },
80
- color: theme.palette.getContrastText(theme.palette.grey[300]),
81
- backgroundColor: theme.palette.grey[300],
82
- '&:hover': {
83
- backgroundColor: theme.palette.grey.A100,
84
- // Reset on touch devices, it doesn't add specificity
85
- '@media (hover: none)': {
86
- backgroundColor: theme.palette.grey[300]
65
+ }) => {
66
+ var _theme$palette$getCon, _theme$palette;
67
+
68
+ return (0, _extends2.default)({}, theme.typography.button, {
69
+ minHeight: 36,
70
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color'], {
71
+ duration: theme.transitions.duration.short
72
+ }),
73
+ borderRadius: '50%',
74
+ padding: 0,
75
+ minWidth: 0,
76
+ width: 56,
77
+ height: 56,
78
+ zIndex: (theme.vars || theme).zIndex.fab,
79
+ boxShadow: (theme.vars || theme).shadows[6],
80
+ '&:active': {
81
+ boxShadow: (theme.vars || theme).shadows[12]
87
82
  },
88
- textDecoration: 'none'
89
- },
90
- [`&.${_fabClasses.default.focusVisible}`]: {
91
- boxShadow: theme.shadows[6]
92
- },
93
- [`&.${_fabClasses.default.disabled}`]: {
94
- color: theme.palette.action.disabled,
95
- boxShadow: theme.shadows[0],
96
- backgroundColor: theme.palette.action.disabledBackground
97
- }
98
- }, ownerState.size === 'small' && {
99
- width: 40,
100
- height: 40
101
- }, ownerState.size === 'medium' && {
102
- width: 48,
103
- height: 48
104
- }, ownerState.variant === 'extended' && {
105
- borderRadius: 48 / 2,
106
- padding: '0 16px',
107
- width: 'auto',
108
- minHeight: 'auto',
109
- minWidth: 48,
110
- height: 48
111
- }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
112
- width: 'auto',
113
- padding: '0 8px',
114
- borderRadius: 34 / 2,
115
- minWidth: 34,
116
- height: 34
117
- }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
118
- width: 'auto',
119
- padding: '0 16px',
120
- borderRadius: 40 / 2,
121
- minWidth: 40,
122
- height: 40
123
- }, ownerState.color === 'inherit' && {
124
- color: 'inherit'
125
- }), ({
83
+ 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]),
84
+ backgroundColor: (theme.vars || theme).palette.grey[300],
85
+ '&:hover': {
86
+ backgroundColor: (theme.vars || theme).palette.grey.A100,
87
+ // Reset on touch devices, it doesn't add specificity
88
+ '@media (hover: none)': {
89
+ backgroundColor: (theme.vars || theme).palette.grey[300]
90
+ },
91
+ textDecoration: 'none'
92
+ },
93
+ [`&.${_fabClasses.default.focusVisible}`]: {
94
+ boxShadow: (theme.vars || theme).shadows[6]
95
+ },
96
+ [`&.${_fabClasses.default.disabled}`]: {
97
+ color: (theme.vars || theme).palette.action.disabled,
98
+ boxShadow: (theme.vars || theme).shadows[0],
99
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
100
+ }
101
+ }, ownerState.size === 'small' && {
102
+ width: 40,
103
+ height: 40
104
+ }, ownerState.size === 'medium' && {
105
+ width: 48,
106
+ height: 48
107
+ }, ownerState.variant === 'extended' && {
108
+ borderRadius: 48 / 2,
109
+ padding: '0 16px',
110
+ width: 'auto',
111
+ minHeight: 'auto',
112
+ minWidth: 48,
113
+ height: 48
114
+ }, ownerState.variant === 'extended' && ownerState.size === 'small' && {
115
+ width: 'auto',
116
+ padding: '0 8px',
117
+ borderRadius: 34 / 2,
118
+ minWidth: 34,
119
+ height: 34
120
+ }, ownerState.variant === 'extended' && ownerState.size === 'medium' && {
121
+ width: 'auto',
122
+ padding: '0 16px',
123
+ borderRadius: 40 / 2,
124
+ minWidth: 40,
125
+ height: 40
126
+ }, ownerState.color === 'inherit' && {
127
+ color: 'inherit'
128
+ });
129
+ }, ({
126
130
  theme,
127
131
  ownerState
128
- }) => (0, _extends2.default)({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && theme.palette[ownerState.color] != null && {
129
- color: theme.palette[ownerState.color].contrastText,
130
- backgroundColor: theme.palette[ownerState.color].main,
132
+ }) => (0, _extends2.default)({}, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (theme.vars || theme).palette[ownerState.color] != null && {
133
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
134
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
131
135
  '&:hover': {
132
- backgroundColor: theme.palette[ownerState.color].dark,
136
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
133
137
  // Reset on touch devices, it doesn't add specificity
134
138
  '@media (hover: none)': {
135
- backgroundColor: theme.palette[ownerState.color].main
139
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
136
140
  }
137
141
  }
138
142
  }));
@@ -203,7 +207,9 @@ process.env.NODE_ENV !== "production" ? Fab.propTypes
203
207
  * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
204
208
  * @default 'default'
205
209
  */
206
- color: _propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']),
210
+ color: _propTypes.default
211
+ /* @typescript-to-proptypes-ignore */
212
+ .oneOfType([_propTypes.default.oneOf(['default', 'error', 'info', 'inherit', 'primary', 'secondary', 'success', 'warning']), _propTypes.default.string]),
207
213
 
208
214
  /**
209
215
  * The component used for the root node.
@@ -98,7 +98,7 @@ const FormControlLabelRoot = (0, _styled.default)('label', {
98
98
  }, {
99
99
  [`& .${_formControlLabelClasses.default.label}`]: {
100
100
  [`&.${_formControlLabelClasses.default.disabled}`]: {
101
- color: theme.palette.text.disabled
101
+ color: (theme.vars || theme).palette.text.disabled
102
102
  }
103
103
  }
104
104
  }));
@@ -71,7 +71,7 @@ const FormHelperTextRoot = (0, _styled.default)('p', {
71
71
  theme,
72
72
  ownerState
73
73
  }) => (0, _extends2.default)({
74
- color: theme.palette.text.secondary
74
+ color: (theme.vars || theme).palette.text.secondary
75
75
  }, theme.typography.caption, {
76
76
  textAlign: 'left',
77
77
  marginTop: 3,
@@ -79,10 +79,10 @@ const FormHelperTextRoot = (0, _styled.default)('p', {
79
79
  marginBottom: 0,
80
80
  marginLeft: 0,
81
81
  [`&.${_formHelperTextClasses.default.disabled}`]: {
82
- color: theme.palette.text.disabled
82
+ color: (theme.vars || theme).palette.text.disabled
83
83
  },
84
84
  [`&.${_formHelperTextClasses.default.error}`]: {
85
- color: theme.palette.error.main
85
+ color: (theme.vars || theme).palette.error.main
86
86
  }
87
87
  }, ownerState.size === 'small' && {
88
88
  marginTop: 4
@@ -68,19 +68,19 @@ const FormLabelRoot = (0, _styled.default)('label', {
68
68
  theme,
69
69
  ownerState
70
70
  }) => (0, _extends2.default)({
71
- color: theme.palette.text.secondary
71
+ color: (theme.vars || theme).palette.text.secondary
72
72
  }, theme.typography.body1, {
73
73
  lineHeight: '1.4375em',
74
74
  padding: 0,
75
75
  position: 'relative',
76
76
  [`&.${_formLabelClasses.default.focused}`]: {
77
- color: theme.palette[ownerState.color].main
77
+ color: (theme.vars || theme).palette[ownerState.color].main
78
78
  },
79
79
  [`&.${_formLabelClasses.default.disabled}`]: {
80
- color: theme.palette.text.disabled
80
+ color: (theme.vars || theme).palette.text.disabled
81
81
  },
82
82
  [`&.${_formLabelClasses.default.error}`]: {
83
- color: theme.palette.error.main
83
+ color: (theme.vars || theme).palette.error.main
84
84
  }
85
85
  }));
86
86
  exports.FormLabelRoot = FormLabelRoot;
@@ -92,7 +92,7 @@ const AsteriskComponent = (0, _styled.default)('span', {
92
92
  theme
93
93
  }) => ({
94
94
  [`&.${_formLabelClasses.default.error}`]: {
95
- color: theme.palette.error.main
95
+ color: (theme.vars || theme).palette.error.main
96
96
  }
97
97
  }));
98
98
  const FormLabel = /*#__PURE__*/React.forwardRef(function FormLabel(inProps, ref) {
package/node/Icon/Icon.js CHANGED
@@ -79,14 +79,14 @@ const IconRoot = (0, _styled.default)('span', {
79
79
  }[ownerState.fontSize],
80
80
  // TODO v5 deprecate, v6 remove for sx
81
81
  color: {
82
- primary: theme.palette.primary.main,
83
- secondary: theme.palette.secondary.main,
84
- info: theme.palette.info.main,
85
- success: theme.palette.success.main,
86
- warning: theme.palette.warning.main,
87
- action: theme.palette.action.active,
88
- error: theme.palette.error.main,
89
- disabled: theme.palette.action.disabled,
82
+ primary: (theme.vars || theme).palette.primary.main,
83
+ secondary: (theme.vars || theme).palette.secondary.main,
84
+ info: (theme.vars || theme).palette.info.main,
85
+ success: (theme.vars || theme).palette.success.main,
86
+ warning: (theme.vars || theme).palette.warning.main,
87
+ action: (theme.vars || theme).palette.action.active,
88
+ error: (theme.vars || theme).palette.error.main,
89
+ disabled: (theme.vars || theme).palette.action.disabled,
90
90
  inherit: undefined
91
91
  }[ownerState.color]
92
92
  }));
@@ -75,13 +75,13 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
75
75
  borderRadius: '50%',
76
76
  overflow: 'visible',
77
77
  // Explicitly set the default value to solve a bug on IE11.
78
- color: theme.palette.action.active,
78
+ color: (theme.vars || theme).palette.action.active,
79
79
  transition: theme.transitions.create('background-color', {
80
80
  duration: theme.transitions.duration.shortest
81
81
  })
82
82
  }, !ownerState.disableRipple && {
83
83
  '&:hover': {
84
- backgroundColor: (0, _system.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
84
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.active} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(theme.palette.action.active, theme.palette.action.hoverOpacity),
85
85
  // Reset on touch devices, it doesn't add specificity
86
86
  '@media (hover: none)': {
87
87
  backgroundColor: 'transparent'
@@ -97,10 +97,10 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
97
97
  }) => (0, _extends2.default)({}, ownerState.color === 'inherit' && {
98
98
  color: 'inherit'
99
99
  }, ownerState.color !== 'inherit' && ownerState.color !== 'default' && (0, _extends2.default)({
100
- color: theme.palette[ownerState.color].main
100
+ color: (theme.vars || theme).palette[ownerState.color].main
101
101
  }, !ownerState.disableRipple && {
102
102
  '&:hover': {
103
- backgroundColor: (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
103
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : (0, _system.alpha)(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
104
104
  // Reset on touch devices, it doesn't add specificity
105
105
  '@media (hover: none)': {
106
106
  backgroundColor: 'transparent'
@@ -115,7 +115,7 @@ const IconButtonRoot = (0, _styled.default)(_ButtonBase.default, {
115
115
  }, {
116
116
  [`&.${_iconButtonClasses.default.disabled}`]: {
117
117
  backgroundColor: 'transparent',
118
- color: theme.palette.action.disabled
118
+ color: (theme.vars || theme).palette.action.disabled
119
119
  }
120
120
  }));
121
121
  /**
@@ -99,7 +99,7 @@ const ImageListItemBarTitleWrap = (0, _styled.default)('div', {
99
99
  return (0, _extends2.default)({
100
100
  flexGrow: 1,
101
101
  padding: '12px 16px',
102
- color: theme.palette.common.white,
102
+ color: (theme.vars || theme).palette.common.white,
103
103
  overflow: 'hidden'
104
104
  }, ownerState.position === 'below' && {
105
105
  padding: '6px 0 12px',
@@ -65,7 +65,12 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
65
65
  ownerState
66
66
  }) => {
67
67
  const light = theme.palette.mode === 'light';
68
- const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
68
+ let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';
69
+
70
+ if (theme.vars) {
71
+ bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputTouchBottomLine})`;
72
+ }
73
+
69
74
  return (0, _extends2.default)({
70
75
  position: 'relative'
71
76
  }, ownerState.formControl && {
@@ -74,7 +79,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
74
79
  }
75
80
  }, !ownerState.disableUnderline && {
76
81
  '&:after': {
77
- borderBottom: `2px solid ${theme.palette[ownerState.color].main}`,
82
+ borderBottom: `2px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
78
83
  left: 0,
79
84
  bottom: 0,
80
85
  // Doing the other way around crash on IE11 "''" https://github.com/cssinjs/jss/issues/242
@@ -95,7 +100,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
95
100
  transform: 'scaleX(1) translateX(0)'
96
101
  },
97
102
  [`&.${_inputClasses.default.error}:after`]: {
98
- borderBottomColor: theme.palette.error.main,
103
+ borderBottomColor: (theme.vars || theme).palette.error.main,
99
104
  transform: 'scaleX(1)' // error is always underlined in red
100
105
 
101
106
  },
@@ -114,7 +119,7 @@ const InputRoot = (0, _styled.default)(_InputBase2.InputBaseRoot, {
114
119
 
115
120
  },
116
121
  [`&:hover:not(.${_inputClasses.default.disabled}):before`]: {
117
- borderBottom: `2px solid ${theme.palette.text.primary}`,
122
+ borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,
118
123
  // Reset on touch devices, it doesn't add specificity
119
124
  '@media (hover: none)': {
120
125
  borderBottom: `1px solid ${bottomLineColor}`
@@ -79,7 +79,7 @@ const InputAdornmentRoot = (0, _styled.default)('div', {
79
79
  maxHeight: '2em',
80
80
  alignItems: 'center',
81
81
  whiteSpace: 'nowrap',
82
- color: theme.palette.action.active
82
+ color: (theme.vars || theme).palette.action.active
83
83
  }, ownerState.variant === 'filled' && {
84
84
  // Styles applied to the root element if `variant="filled"`.
85
85
  [`&.${_inputAdornmentClasses.default.positionStart}&:not(.${_inputAdornmentClasses.default.hiddenLabel})`]: {