@mui/material 5.6.2 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (373) hide show
  1. package/Accordion/Accordion.js +6 -6
  2. package/Accordion/accordionClasses.d.ts +18 -18
  3. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  4. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  5. package/AccordionSummary/AccordionSummary.js +3 -3
  6. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  7. package/Alert/alertClasses.d.ts +44 -44
  8. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  9. package/AppBar/appBarClasses.d.ts +28 -28
  10. package/Autocomplete/Autocomplete.js +15 -14
  11. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  12. package/Avatar/avatarClasses.d.ts +20 -20
  13. package/AvatarGroup/AvatarGroup.js +2 -2
  14. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  15. package/Backdrop/backdropClasses.d.ts +10 -10
  16. package/Badge/Badge.js +2 -2
  17. package/Badge/badgeClasses.d.ts +24 -24
  18. package/BottomNavigation/BottomNavigation.js +1 -1
  19. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  20. package/BottomNavigationAction/BottomNavigationAction.js +6 -5
  21. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  22. package/Box/Box.d.ts +9 -28
  23. package/Box/Box.js +25 -4
  24. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  25. package/Button/buttonClasses.d.ts +76 -76
  26. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  27. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  28. package/ButtonGroup/ButtonGroup.js +10 -10
  29. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  30. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  31. package/CHANGELOG.md +225 -0
  32. package/Card/cardClasses.d.ts +8 -8
  33. package/CardActionArea/CardActionArea.js +2 -2
  34. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  35. package/CardActions/cardActionsClasses.d.ts +10 -10
  36. package/CardContent/cardContentClasses.d.ts +8 -8
  37. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  38. package/CardMedia/cardMediaClasses.d.ts +12 -12
  39. package/Checkbox/checkboxClasses.d.ts +18 -18
  40. package/Chip/chipClasses.d.ts +80 -80
  41. package/CircularProgress/CircularProgress.js +1 -1
  42. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  43. package/ClickAwayListener/index.d.ts +2 -2
  44. package/Collapse/collapseClasses.d.ts +18 -18
  45. package/Container/containerClasses.d.ts +22 -22
  46. package/CssBaseline/CssBaseline.js +4 -4
  47. package/Dialog/DialogContext.d.ts +6 -6
  48. package/Dialog/dialogClasses.d.ts +36 -36
  49. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  50. package/DialogContent/DialogContent.js +2 -2
  51. package/DialogContent/dialogContentClasses.d.ts +10 -10
  52. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  53. package/DialogTitle/DialogTitle.d.ts +30 -15
  54. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  55. package/Divider/Divider.js +4 -4
  56. package/Divider/dividerClasses.d.ts +34 -34
  57. package/Drawer/Drawer.js +6 -6
  58. package/Drawer/drawerClasses.d.ts +30 -30
  59. package/Fab/Fab.js +69 -65
  60. package/Fab/fabClasses.d.ts +26 -26
  61. package/FilledInput/FilledInput.js +3 -1
  62. package/FilledInput/filledInputClasses.d.ts +40 -40
  63. package/FormControl/formControlClasses.d.ts +14 -14
  64. package/FormControlLabel/FormControlLabel.js +1 -1
  65. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  66. package/FormGroup/formGroupClasses.d.ts +12 -12
  67. package/FormHelperText/FormHelperText.js +3 -3
  68. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  69. package/FormLabel/FormLabel.js +5 -5
  70. package/FormLabel/formLabelClasses.d.ts +22 -22
  71. package/Grid/gridClasses.d.ts +48 -48
  72. package/Icon/Icon.js +8 -8
  73. package/Icon/iconClasses.d.ts +24 -24
  74. package/IconButton/IconButton.js +5 -5
  75. package/IconButton/iconButtonClasses.d.ts +26 -26
  76. package/ImageList/imageListClasses.d.ts +16 -16
  77. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  78. package/ImageListItemBar/ImageListItemBar.js +1 -1
  79. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  80. package/Input/Input.js +9 -4
  81. package/Input/inputClasses.d.ts +34 -34
  82. package/InputAdornment/InputAdornment.js +1 -1
  83. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  84. package/InputBase/InputBase.js +16 -8
  85. package/InputBase/inputBaseClasses.d.ts +44 -44
  86. package/InputLabel/inputLabelClasses.d.ts +32 -32
  87. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  88. package/Link/Link.js +3 -8
  89. package/Link/linkClasses.d.ts +18 -18
  90. package/List/listClasses.d.ts +14 -14
  91. package/ListItem/ListItem.js +8 -8
  92. package/ListItem/listItemClasses.d.ts +30 -30
  93. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  94. package/ListItemButton/ListItemButton.js +8 -8
  95. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  96. package/ListItemIcon/ListItemIcon.js +1 -1
  97. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  98. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  99. package/ListItemText/listItemTextClasses.d.ts +18 -18
  100. package/ListSubheader/ListSubheader.js +3 -3
  101. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  102. package/Menu/menuClasses.d.ts +12 -12
  103. package/MenuItem/MenuItem.js +8 -8
  104. package/MenuItem/menuItemClasses.d.ts +20 -20
  105. package/MobileStepper/MobileStepper.js +5 -5
  106. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  107. package/Modal/Modal.js +1 -1
  108. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  109. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  110. package/Pagination/paginationClasses.d.ts +14 -14
  111. package/PaginationItem/PaginationItem.js +27 -27
  112. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  113. package/Paper/paperClasses.d.ts +39 -39
  114. package/Popover/popoverClasses.d.ts +10 -10
  115. package/Popper/Popper.d.ts +29 -29
  116. package/README.md +79 -32
  117. package/Radio/radioClasses.d.ts +16 -16
  118. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  119. package/RadioGroup/useRadioGroup.d.ts +4 -4
  120. package/Rating/Rating.js +2 -2
  121. package/Rating/ratingClasses.d.ts +40 -40
  122. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  123. package/Select/selectClasses.d.ts +30 -30
  124. package/Skeleton/skeletonClasses.d.ts +24 -24
  125. package/Snackbar/Snackbar.js +1 -1
  126. package/Snackbar/snackbarClasses.d.ts +20 -20
  127. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  128. package/SpeedDial/SpeedDial.js +1 -1
  129. package/SpeedDial/speedDialClasses.d.ts +22 -22
  130. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  131. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  132. package/Step/StepContext.d.ts +20 -20
  133. package/Step/stepClasses.d.ts +16 -16
  134. package/StepButton/stepButtonClasses.d.ts +14 -14
  135. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  136. package/StepContent/StepContent.d.ts +3 -1
  137. package/StepContent/stepContentClasses.d.ts +12 -12
  138. package/StepIcon/StepIcon.js +5 -5
  139. package/StepIcon/stepIconClasses.d.ts +16 -16
  140. package/StepLabel/StepLabel.js +4 -4
  141. package/StepLabel/stepLabelClasses.d.ts +28 -28
  142. package/Stepper/StepperContext.d.ts +18 -0
  143. package/Stepper/StepperContext.js +10 -2
  144. package/Stepper/index.d.ts +3 -0
  145. package/Stepper/index.js +3 -1
  146. package/Stepper/stepperClasses.d.ts +14 -14
  147. package/SvgIcon/SvgIcon.js +4 -4
  148. package/SvgIcon/svgIconClasses.d.ts +24 -24
  149. package/Switch/switchClasses.d.ts +32 -32
  150. package/Tab/Tab.js +7 -7
  151. package/Tab/tabClasses.d.ts +26 -26
  152. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  153. package/Table/Table.js +1 -1
  154. package/Table/tableClasses.d.ts +10 -10
  155. package/TableBody/tableBodyClasses.d.ts +8 -8
  156. package/TableCell/tableCellClasses.d.ts +32 -32
  157. package/TableContainer/tableContainerClasses.d.ts +8 -8
  158. package/TableFooter/tableFooterClasses.d.ts +8 -8
  159. package/TableHead/tableHeadClasses.d.ts +8 -8
  160. package/TablePagination/TablePagination.js +1 -1
  161. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  162. package/TableRow/TableRow.js +3 -3
  163. package/TableRow/tableRowClasses.d.ts +16 -16
  164. package/TableSortLabel/TableSortLabel.js +4 -4
  165. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  166. package/Tabs/Tabs.d.ts +1 -1
  167. package/Tabs/Tabs.js +2 -2
  168. package/Tabs/tabsClasses.d.ts +32 -32
  169. package/TextField/textFieldClasses.d.ts +8 -8
  170. package/ToggleButton/ToggleButton.js +17 -10
  171. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  172. package/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  173. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  174. package/Toolbar/toolbarClasses.d.ts +14 -14
  175. package/Tooltip/Tooltip.js +5 -5
  176. package/Tooltip/tooltipClasses.d.ts +30 -30
  177. package/Typography/typographyClasses.d.ts +50 -50
  178. package/className/index.d.ts +1 -8
  179. package/className/index.js +1 -8
  180. package/darkScrollbar/index.d.ts +28 -28
  181. package/index.js +1 -1
  182. package/internal/switchBaseClasses.d.ts +12 -12
  183. package/legacy/Accordion/Accordion.js +6 -6
  184. package/legacy/AccordionSummary/AccordionSummary.js +3 -3
  185. package/legacy/Autocomplete/Autocomplete.js +15 -14
  186. package/legacy/AvatarGroup/AvatarGroup.js +2 -2
  187. package/legacy/Badge/Badge.js +2 -2
  188. package/legacy/BottomNavigation/BottomNavigation.js +1 -1
  189. package/legacy/BottomNavigationAction/BottomNavigationAction.js +6 -5
  190. package/legacy/Box/Box.js +25 -4
  191. package/legacy/ButtonGroup/ButtonGroup.js +10 -10
  192. package/legacy/CardActionArea/CardActionArea.js +2 -2
  193. package/legacy/CircularProgress/CircularProgress.js +1 -1
  194. package/legacy/CssBaseline/CssBaseline.js +4 -4
  195. package/legacy/DialogContent/DialogContent.js +2 -2
  196. package/legacy/Divider/Divider.js +4 -4
  197. package/legacy/Drawer/Drawer.js +6 -6
  198. package/legacy/Fab/Fab.js +17 -17
  199. package/legacy/FilledInput/FilledInput.js +2 -2
  200. package/legacy/FormControlLabel/FormControlLabel.js +1 -1
  201. package/legacy/FormHelperText/FormHelperText.js +3 -3
  202. package/legacy/FormLabel/FormLabel.js +5 -5
  203. package/legacy/Icon/Icon.js +8 -8
  204. package/legacy/IconButton/IconButton.js +5 -5
  205. package/legacy/ImageListItemBar/ImageListItemBar.js +1 -1
  206. package/legacy/Input/Input.js +8 -3
  207. package/legacy/InputAdornment/InputAdornment.js +1 -1
  208. package/legacy/InputBase/InputBase.js +16 -8
  209. package/legacy/Link/Link.js +3 -9
  210. package/legacy/ListItem/ListItem.js +8 -8
  211. package/legacy/ListItemButton/ListItemButton.js +8 -8
  212. package/legacy/ListItemIcon/ListItemIcon.js +1 -1
  213. package/legacy/ListSubheader/ListSubheader.js +3 -3
  214. package/legacy/MenuItem/MenuItem.js +8 -8
  215. package/legacy/MobileStepper/MobileStepper.js +5 -5
  216. package/legacy/Modal/Modal.js +1 -1
  217. package/legacy/PaginationItem/PaginationItem.js +27 -27
  218. package/legacy/Rating/Rating.js +2 -2
  219. package/legacy/Snackbar/Snackbar.js +1 -1
  220. package/legacy/SpeedDial/SpeedDial.js +1 -1
  221. package/legacy/StepIcon/StepIcon.js +5 -5
  222. package/legacy/StepLabel/StepLabel.js +4 -4
  223. package/legacy/Stepper/StepperContext.js +10 -2
  224. package/legacy/Stepper/index.js +3 -1
  225. package/legacy/SvgIcon/SvgIcon.js +4 -4
  226. package/legacy/Tab/Tab.js +7 -7
  227. package/legacy/Table/Table.js +1 -1
  228. package/legacy/TablePagination/TablePagination.js +1 -1
  229. package/legacy/TableRow/TableRow.js +3 -3
  230. package/legacy/TableSortLabel/TableSortLabel.js +4 -4
  231. package/legacy/Tabs/Tabs.js +2 -2
  232. package/legacy/ToggleButton/ToggleButton.js +16 -9
  233. package/legacy/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  234. package/legacy/Tooltip/Tooltip.js +5 -5
  235. package/legacy/className/index.js +1 -8
  236. package/legacy/index.js +1 -1
  237. package/legacy/locale/index.js +1 -1
  238. package/legacy/styles/createPalette.js +2 -1
  239. package/legacy/styles/experimental_extendTheme.js +52 -43
  240. package/locale/index.d.ts +71 -71
  241. package/locale/index.js +1 -1
  242. package/modern/Accordion/Accordion.js +6 -6
  243. package/modern/AccordionSummary/AccordionSummary.js +3 -3
  244. package/modern/Autocomplete/Autocomplete.js +15 -14
  245. package/modern/AvatarGroup/AvatarGroup.js +2 -2
  246. package/modern/Badge/Badge.js +2 -2
  247. package/modern/BottomNavigation/BottomNavigation.js +1 -1
  248. package/modern/BottomNavigationAction/BottomNavigationAction.js +6 -5
  249. package/modern/Box/Box.js +25 -4
  250. package/modern/ButtonGroup/ButtonGroup.js +10 -10
  251. package/modern/CardActionArea/CardActionArea.js +2 -2
  252. package/modern/CircularProgress/CircularProgress.js +1 -1
  253. package/modern/CssBaseline/CssBaseline.js +4 -4
  254. package/modern/DialogContent/DialogContent.js +2 -2
  255. package/modern/Divider/Divider.js +4 -4
  256. package/modern/Drawer/Drawer.js +6 -6
  257. package/modern/Fab/Fab.js +16 -16
  258. package/modern/FilledInput/FilledInput.js +1 -1
  259. package/modern/FormControlLabel/FormControlLabel.js +1 -1
  260. package/modern/FormHelperText/FormHelperText.js +3 -3
  261. package/modern/FormLabel/FormLabel.js +5 -5
  262. package/modern/Icon/Icon.js +8 -8
  263. package/modern/IconButton/IconButton.js +5 -5
  264. package/modern/ImageListItemBar/ImageListItemBar.js +1 -1
  265. package/modern/Input/Input.js +9 -4
  266. package/modern/InputAdornment/InputAdornment.js +1 -1
  267. package/modern/InputBase/InputBase.js +16 -8
  268. package/modern/Link/Link.js +3 -8
  269. package/modern/ListItem/ListItem.js +8 -8
  270. package/modern/ListItemButton/ListItemButton.js +8 -8
  271. package/modern/ListItemIcon/ListItemIcon.js +1 -1
  272. package/modern/ListSubheader/ListSubheader.js +3 -3
  273. package/modern/MenuItem/MenuItem.js +8 -8
  274. package/modern/MobileStepper/MobileStepper.js +5 -5
  275. package/modern/Modal/Modal.js +1 -1
  276. package/modern/PaginationItem/PaginationItem.js +27 -27
  277. package/modern/Rating/Rating.js +2 -2
  278. package/modern/Snackbar/Snackbar.js +1 -1
  279. package/modern/SpeedDial/SpeedDial.js +1 -1
  280. package/modern/StepIcon/StepIcon.js +5 -5
  281. package/modern/StepLabel/StepLabel.js +4 -4
  282. package/modern/Stepper/StepperContext.js +10 -2
  283. package/modern/Stepper/index.js +3 -1
  284. package/modern/SvgIcon/SvgIcon.js +3 -3
  285. package/modern/Tab/Tab.js +7 -7
  286. package/modern/Table/Table.js +1 -1
  287. package/modern/TablePagination/TablePagination.js +1 -1
  288. package/modern/TableRow/TableRow.js +3 -3
  289. package/modern/TableSortLabel/TableSortLabel.js +4 -4
  290. package/modern/Tabs/Tabs.js +2 -2
  291. package/modern/ToggleButton/ToggleButton.js +17 -10
  292. package/modern/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  293. package/modern/Tooltip/Tooltip.js +5 -5
  294. package/modern/className/index.js +1 -8
  295. package/modern/index.js +1 -1
  296. package/modern/locale/index.js +1 -1
  297. package/modern/styles/createPalette.js +2 -1
  298. package/modern/styles/experimental_extendTheme.js +56 -45
  299. package/node/Accordion/Accordion.js +6 -6
  300. package/node/AccordionSummary/AccordionSummary.js +3 -3
  301. package/node/Autocomplete/Autocomplete.js +15 -14
  302. package/node/AvatarGroup/AvatarGroup.js +2 -2
  303. package/node/Badge/Badge.js +2 -2
  304. package/node/BottomNavigation/BottomNavigation.js +1 -1
  305. package/node/BottomNavigationAction/BottomNavigationAction.js +6 -5
  306. package/node/Box/Box.js +28 -4
  307. package/node/ButtonGroup/ButtonGroup.js +10 -10
  308. package/node/CardActionArea/CardActionArea.js +2 -2
  309. package/node/CircularProgress/CircularProgress.js +1 -1
  310. package/node/CssBaseline/CssBaseline.js +4 -4
  311. package/node/DialogContent/DialogContent.js +2 -2
  312. package/node/Divider/Divider.js +4 -4
  313. package/node/Drawer/Drawer.js +6 -6
  314. package/node/Fab/Fab.js +69 -65
  315. package/node/FilledInput/FilledInput.js +3 -1
  316. package/node/FormControlLabel/FormControlLabel.js +1 -1
  317. package/node/FormHelperText/FormHelperText.js +3 -3
  318. package/node/FormLabel/FormLabel.js +5 -5
  319. package/node/Icon/Icon.js +8 -8
  320. package/node/IconButton/IconButton.js +5 -5
  321. package/node/ImageListItemBar/ImageListItemBar.js +1 -1
  322. package/node/Input/Input.js +9 -4
  323. package/node/InputAdornment/InputAdornment.js +1 -1
  324. package/node/InputBase/InputBase.js +14 -8
  325. package/node/Link/Link.js +3 -9
  326. package/node/ListItem/ListItem.js +8 -8
  327. package/node/ListItemButton/ListItemButton.js +8 -8
  328. package/node/ListItemIcon/ListItemIcon.js +1 -1
  329. package/node/ListSubheader/ListSubheader.js +3 -3
  330. package/node/MenuItem/MenuItem.js +8 -8
  331. package/node/MobileStepper/MobileStepper.js +5 -5
  332. package/node/Modal/Modal.js +1 -1
  333. package/node/PaginationItem/PaginationItem.js +27 -27
  334. package/node/Rating/Rating.js +2 -2
  335. package/node/Snackbar/Snackbar.js +1 -1
  336. package/node/SpeedDial/SpeedDial.js +1 -1
  337. package/node/StepIcon/StepIcon.js +5 -5
  338. package/node/StepLabel/StepLabel.js +4 -4
  339. package/node/Stepper/StepperContext.js +11 -1
  340. package/node/Stepper/index.js +22 -1
  341. package/node/SvgIcon/SvgIcon.js +4 -4
  342. package/node/Tab/Tab.js +7 -7
  343. package/node/Table/Table.js +1 -1
  344. package/node/TablePagination/TablePagination.js +1 -1
  345. package/node/TableRow/TableRow.js +3 -3
  346. package/node/TableSortLabel/TableSortLabel.js +4 -4
  347. package/node/Tabs/Tabs.js +2 -2
  348. package/node/ToggleButton/ToggleButton.js +17 -10
  349. package/node/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
  350. package/node/Tooltip/Tooltip.js +5 -5
  351. package/node/className/index.js +2 -2
  352. package/node/index.js +1 -1
  353. package/node/locale/index.js +1 -1
  354. package/node/styles/createPalette.js +2 -1
  355. package/node/styles/experimental_extendTheme.js +57 -47
  356. package/package.json +6 -5
  357. package/styles/ThemeProvider.d.ts +1 -1
  358. package/styles/createPalette.d.ts +9 -2
  359. package/styles/createPalette.js +2 -1
  360. package/styles/experimental_extendTheme.d.ts +13 -16
  361. package/styles/experimental_extendTheme.js +57 -46
  362. package/transitions/index.d.ts +1 -1
  363. package/transitions/transition.d.ts +13 -13
  364. package/transitions/utils.d.ts +23 -23
  365. package/umd/material-ui.development.js +582 -484
  366. package/umd/material-ui.production.min.js +21 -21
  367. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  368. package/useTouchRipple/index.d.ts +1 -1
  369. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  370. package/utils/getScrollbarSize.d.ts +2 -2
  371. package/utils/ownerDocument.d.ts +2 -2
  372. package/utils/ownerWindow.d.ts +2 -2
  373. package/utils/setRef.d.ts +2 -2
@@ -1,26 +1,26 @@
1
- export interface StepConnectorClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="horizontal"`. */
5
- horizontal: string;
6
- /** Styles applied to the root element if `orientation="vertical"`. */
7
- vertical: string;
8
- /** Styles applied to the root element if `alternativeLabel={true}`. */
9
- alternativeLabel: string;
10
- /** State class applied to the root element if `active={true}`. */
11
- active: string;
12
- /** State class applied to the root element if `completed={true}`. */
13
- completed: string;
14
- /** State class applied to the root element if `disabled={true}`. */
15
- disabled: string;
16
- /** Styles applied to the line element. */
17
- line: string;
18
- /** Styles applied to the root element if `orientation="horizontal"`. */
19
- lineHorizontal: string;
20
- /** Styles applied to the root element if `orientation="vertical"`. */
21
- lineVertical: string;
22
- }
23
- export declare type StepConnectorClassKey = keyof StepConnectorClasses;
24
- export declare function getStepConnectorUtilityClass(slot: string): string;
25
- declare const stepConnectorClasses: StepConnectorClasses;
26
- export default stepConnectorClasses;
1
+ export interface StepConnectorClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="horizontal"`. */
5
+ horizontal: string;
6
+ /** Styles applied to the root element if `orientation="vertical"`. */
7
+ vertical: string;
8
+ /** Styles applied to the root element if `alternativeLabel={true}`. */
9
+ alternativeLabel: string;
10
+ /** State class applied to the root element if `active={true}`. */
11
+ active: string;
12
+ /** State class applied to the root element if `completed={true}`. */
13
+ completed: string;
14
+ /** State class applied to the root element if `disabled={true}`. */
15
+ disabled: string;
16
+ /** Styles applied to the line element. */
17
+ line: string;
18
+ /** Styles applied to the root element if `orientation="horizontal"`. */
19
+ lineHorizontal: string;
20
+ /** Styles applied to the root element if `orientation="vertical"`. */
21
+ lineVertical: string;
22
+ }
23
+ export declare type StepConnectorClassKey = keyof StepConnectorClasses;
24
+ export declare function getStepConnectorUtilityClass(slot: string): string;
25
+ declare const stepConnectorClasses: StepConnectorClasses;
26
+ export default stepConnectorClasses;
@@ -23,7 +23,9 @@ export interface StepContentProps extends StandardProps<React.HTMLAttributes<HTM
23
23
  * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
24
24
  * @default Collapse
25
25
  */
26
- TransitionComponent?: React.JSXElementConstructor<TransitionProps>;
26
+ TransitionComponent?: React.JSXElementConstructor<
27
+ TransitionProps & { children: React.ReactElement<any, any> }
28
+ >;
27
29
  /**
28
30
  * Adjust the duration of the content expand transition.
29
31
  * Passed as a prop to the transition component.
@@ -1,12 +1,12 @@
1
- export interface StepContentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `last={true}` (controlled by `Step`). */
5
- last: string;
6
- /** Styles applied to the Transition component. */
7
- transition: string;
8
- }
9
- export declare type StepContentClassKey = keyof StepContentClasses;
10
- export declare function getStepContentUtilityClass(slot: string): string;
11
- declare const stepContentClasses: StepContentClasses;
12
- export default stepContentClasses;
1
+ export interface StepContentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `last={true}` (controlled by `Step`). */
5
+ last: string;
6
+ /** Styles applied to the Transition component. */
7
+ transition: string;
8
+ }
9
+ export declare type StepContentClassKey = keyof StepContentClasses;
10
+ export declare function getStepContentUtilityClass(slot: string): string;
11
+ declare const stepContentClasses: StepContentClasses;
12
+ export default stepContentClasses;
@@ -42,15 +42,15 @@ const StepIconRoot = styled(SvgIcon, {
42
42
  transition: theme.transitions.create('color', {
43
43
  duration: theme.transitions.duration.shortest
44
44
  }),
45
- color: theme.palette.text.disabled,
45
+ color: (theme.vars || theme).palette.text.disabled,
46
46
  [`&.${stepIconClasses.completed}`]: {
47
- color: theme.palette.primary.main
47
+ color: (theme.vars || theme).palette.primary.main
48
48
  },
49
49
  [`&.${stepIconClasses.active}`]: {
50
- color: theme.palette.primary.main
50
+ color: (theme.vars || theme).palette.primary.main
51
51
  },
52
52
  [`&.${stepIconClasses.error}`]: {
53
- color: theme.palette.error.main
53
+ color: (theme.vars || theme).palette.error.main
54
54
  }
55
55
  }));
56
56
  const StepIconText = styled('text', {
@@ -60,7 +60,7 @@ const StepIconText = styled('text', {
60
60
  })(({
61
61
  theme
62
62
  }) => ({
63
- fill: theme.palette.primary.contrastText,
63
+ fill: (theme.vars || theme).palette.primary.contrastText,
64
64
  fontSize: theme.typography.caption.fontSize,
65
65
  fontFamily: theme.typography.fontFamily
66
66
  }));
@@ -1,16 +1,16 @@
1
- export interface StepIconClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the SVG text element. */
5
- text: string;
6
- /** State class applied to the root element if `active={true}`. */
7
- active: string;
8
- /** State class applied to the root element if `completed={true}`. */
9
- completed: string;
10
- /** State class applied to the root element if `error={true}`. */
11
- error: string;
12
- }
13
- export declare type StepIconClassKey = keyof StepIconClasses;
14
- export declare function getStepIconUtilityClass(slot: string): string;
15
- declare const stepIconClasses: StepIconClasses;
16
- export default stepIconClasses;
1
+ export interface StepIconClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the SVG text element. */
5
+ text: string;
6
+ /** State class applied to the root element if `active={true}`. */
7
+ active: string;
8
+ /** State class applied to the root element if `completed={true}`. */
9
+ completed: string;
10
+ /** State class applied to the root element if `error={true}`. */
11
+ error: string;
12
+ }
13
+ export declare type StepIconClassKey = keyof StepIconClasses;
14
+ export declare function getStepIconUtilityClass(slot: string): string;
15
+ declare const stepIconClasses: StepIconClasses;
16
+ export default stepIconClasses;
@@ -69,11 +69,11 @@ const StepLabelLabel = styled('span', {
69
69
  duration: theme.transitions.duration.shortest
70
70
  }),
71
71
  [`&.${stepLabelClasses.active}`]: {
72
- color: theme.palette.text.primary,
72
+ color: (theme.vars || theme).palette.text.primary,
73
73
  fontWeight: 500
74
74
  },
75
75
  [`&.${stepLabelClasses.completed}`]: {
76
- color: theme.palette.text.primary,
76
+ color: (theme.vars || theme).palette.text.primary,
77
77
  fontWeight: 500
78
78
  },
79
79
  [`&.${stepLabelClasses.alternativeLabel}`]: {
@@ -81,7 +81,7 @@ const StepLabelLabel = styled('span', {
81
81
  marginTop: 16
82
82
  },
83
83
  [`&.${stepLabelClasses.error}`]: {
84
- color: theme.palette.error.main
84
+ color: (theme.vars || theme).palette.error.main
85
85
  }
86
86
  }));
87
87
  const StepLabelIconContainer = styled('span', {
@@ -105,7 +105,7 @@ const StepLabelLabelContainer = styled('span', {
105
105
  theme
106
106
  }) => ({
107
107
  width: '100%',
108
- color: theme.palette.text.secondary
108
+ color: (theme.vars || theme).palette.text.secondary
109
109
  }));
110
110
  const StepLabel = /*#__PURE__*/React.forwardRef(function StepLabel(inProps, ref) {
111
111
  const props = useThemeProps({
@@ -1,28 +1,28 @@
1
- export interface StepLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="horizontal"`. */
5
- horizontal: string;
6
- /** Styles applied to the root element if `orientation="vertical"`. */
7
- vertical: string;
8
- /** Styles applied to the label element that wraps `children`. */
9
- label: string;
10
- /** State class applied to the label element if `active={true}`. */
11
- active: string;
12
- /** State class applied to the label element if `completed={true}`. */
13
- completed: string;
14
- /** State class applied to the root and label elements if `error={true}`. */
15
- error: string;
16
- /** State class applied to the root and label elements if `disabled={true}`. */
17
- disabled: string;
18
- /** Styles applied to the `icon` container element. */
19
- iconContainer: string;
20
- /** State class applied to the root and icon container and label if `alternativeLabel={true}`. */
21
- alternativeLabel: string;
22
- /** Styles applied to the container element which wraps label and `optional`. */
23
- labelContainer: string;
24
- }
25
- export declare type StepLabelClassKey = keyof StepLabelClasses;
26
- export declare function getStepLabelUtilityClass(slot: string): string;
27
- declare const stepLabelClasses: StepLabelClasses;
28
- export default stepLabelClasses;
1
+ export interface StepLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="horizontal"`. */
5
+ horizontal: string;
6
+ /** Styles applied to the root element if `orientation="vertical"`. */
7
+ vertical: string;
8
+ /** Styles applied to the label element that wraps `children`. */
9
+ label: string;
10
+ /** State class applied to the label element if `active={true}`. */
11
+ active: string;
12
+ /** State class applied to the label element if `completed={true}`. */
13
+ completed: string;
14
+ /** State class applied to the root and label elements if `error={true}`. */
15
+ error: string;
16
+ /** State class applied to the root and label elements if `disabled={true}`. */
17
+ disabled: string;
18
+ /** Styles applied to the `icon` container element. */
19
+ iconContainer: string;
20
+ /** State class applied to the root and icon container and label if `alternativeLabel={true}`. */
21
+ alternativeLabel: string;
22
+ /** Styles applied to the container element which wraps label and `optional`. */
23
+ labelContainer: string;
24
+ }
25
+ export declare type StepLabelClassKey = keyof StepLabelClasses;
26
+ export declare function getStepLabelUtilityClass(slot: string): string;
27
+ declare const stepLabelClasses: StepLabelClasses;
28
+ export default stepLabelClasses;
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ export interface StepperContextType {
3
+ activeStep: number;
4
+ alternativeLabel: boolean;
5
+ connector: React.ReactNode;
6
+ nonLinear: boolean;
7
+ orientation: 'horizontal' | 'vertical';
8
+ }
9
+ /**
10
+ * Provides information about the current step in Stepper.
11
+ */
12
+ declare const StepperContext: React.Context<{} | StepperContextType>;
13
+ /**
14
+ * Returns the current StepperContext or an empty object if no StepperContext
15
+ * has been defined in the component tree.
16
+ */
17
+ export declare function useStepperContext(): StepperContextType | {};
18
+ export default StepperContext;
@@ -1,12 +1,20 @@
1
1
  import * as React from 'react';
2
+
2
3
  /**
3
- * @ignore - internal component.
4
+ * Provides information about the current step in Stepper.
4
5
  */
5
-
6
6
  const StepperContext = /*#__PURE__*/React.createContext({});
7
7
 
8
8
  if (process.env.NODE_ENV !== 'production') {
9
9
  StepperContext.displayName = 'StepperContext';
10
10
  }
11
+ /**
12
+ * Returns the current StepperContext or an empty object if no StepperContext
13
+ * has been defined in the component tree.
14
+ */
15
+
11
16
 
17
+ export function useStepperContext() {
18
+ return React.useContext(StepperContext);
19
+ }
12
20
  export default StepperContext;
@@ -3,3 +3,6 @@ export * from './Stepper';
3
3
 
4
4
  export { default as stepperClasses } from './stepperClasses';
5
5
  export * from './stepperClasses';
6
+
7
+ export { default as StepperContext } from './StepperContext';
8
+ export * from './StepperContext';
package/Stepper/index.js CHANGED
@@ -1,3 +1,5 @@
1
1
  export { default } from './Stepper';
2
2
  export { default as stepperClasses } from './stepperClasses';
3
- export * from './stepperClasses';
3
+ export * from './stepperClasses';
4
+ export { default as StepperContext } from './StepperContext';
5
+ export * from './StepperContext';
@@ -1,14 +1,14 @@
1
- export interface StepperClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="horizontal"`. */
5
- horizontal: string;
6
- /** Styles applied to the root element if `orientation="vertical"`. */
7
- vertical: string;
8
- /** Styles applied to the root element if `alternativeLabel={true}`. */
9
- alternativeLabel: string;
10
- }
11
- export declare type StepperClassKey = keyof StepperClasses;
12
- export declare function getStepperUtilityClass(slot: string): string;
13
- declare const stepperClasses: StepperClasses;
14
- export default stepperClasses;
1
+ export interface StepperClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="horizontal"`. */
5
+ horizontal: string;
6
+ /** Styles applied to the root element if `orientation="vertical"`. */
7
+ vertical: string;
8
+ /** Styles applied to the root element if `alternativeLabel={true}`. */
9
+ alternativeLabel: string;
10
+ }
11
+ export declare type StepperClassKey = keyof StepperClasses;
12
+ export declare function getStepperUtilityClass(slot: string): string;
13
+ declare const stepperClasses: StepperClasses;
14
+ export default stepperClasses;
@@ -37,7 +37,7 @@ const SvgIconRoot = styled('svg', {
37
37
  theme,
38
38
  ownerState
39
39
  }) => {
40
- var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _theme$palette$ownerS, _theme$palette, _theme$palette$ownerS2, _theme$palette2, _theme$palette2$actio, _theme$palette3, _theme$palette3$actio;
40
+ var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$transitions2$d, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette$ownerState$c2, _palette2, _palette2$action, _palette3, _palette3$action;
41
41
 
42
42
  return {
43
43
  userSelect: 'none',
@@ -56,9 +56,9 @@ const SvgIconRoot = styled('svg', {
56
56
  large: ((_theme$typography3 = theme.typography) == null ? void 0 : (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875'
57
57
  }[ownerState.fontSize],
58
58
  // TODO v5 deprecate, v6 remove for sx
59
- color: (_theme$palette$ownerS = (_theme$palette = theme.palette) == null ? void 0 : (_theme$palette$ownerS2 = _theme$palette[ownerState.color]) == null ? void 0 : _theme$palette$ownerS2.main) != null ? _theme$palette$ownerS : {
60
- action: (_theme$palette2 = theme.palette) == null ? void 0 : (_theme$palette2$actio = _theme$palette2.action) == null ? void 0 : _theme$palette2$actio.active,
61
- disabled: (_theme$palette3 = theme.palette) == null ? void 0 : (_theme$palette3$actio = _theme$palette3.action) == null ? void 0 : _theme$palette3$actio.disabled,
59
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null ? void 0 : (_palette$ownerState$c2 = _palette[ownerState.color]) == null ? void 0 : _palette$ownerState$c2.main) != null ? _palette$ownerState$c : {
60
+ action: (_palette2 = (theme.vars || theme).palette) == null ? void 0 : (_palette2$action = _palette2.action) == null ? void 0 : _palette2$action.active,
61
+ disabled: (_palette3 = (theme.vars || theme).palette) == null ? void 0 : (_palette3$action = _palette3.action) == null ? void 0 : _palette3$action.disabled,
62
62
  inherit: undefined
63
63
  }[ownerState.color]
64
64
  };
@@ -1,24 +1,24 @@
1
- export interface SvgIconClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `color="primary"`. */
5
- colorPrimary: string;
6
- /** Styles applied to the root element if `color="secondary"`. */
7
- colorSecondary: string;
8
- /** Styles applied to the root element if `color="action"`. */
9
- colorAction: string;
10
- /** Styles applied to the root element if `color="error"`. */
11
- colorError: string;
12
- /** Styles applied to the root element if `color="disabled"`. */
13
- colorDisabled: string;
14
- /** Styles applied to the root element if `fontSize="inherit"`. */
15
- fontSizeInherit: string;
16
- /** Styles applied to the root element if `fontSize="small"`. */
17
- fontSizeSmall: string;
18
- /** Styles applied to the root element if `fontSize="large"`. */
19
- fontSizeLarge: string;
20
- }
21
- export declare type SvgIconClassKey = keyof SvgIconClasses;
22
- export declare function getSvgIconUtilityClass(slot: string): string;
23
- declare const svgIconClasses: SvgIconClasses;
24
- export default svgIconClasses;
1
+ export interface SvgIconClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `color="primary"`. */
5
+ colorPrimary: string;
6
+ /** Styles applied to the root element if `color="secondary"`. */
7
+ colorSecondary: string;
8
+ /** Styles applied to the root element if `color="action"`. */
9
+ colorAction: string;
10
+ /** Styles applied to the root element if `color="error"`. */
11
+ colorError: string;
12
+ /** Styles applied to the root element if `color="disabled"`. */
13
+ colorDisabled: string;
14
+ /** Styles applied to the root element if `fontSize="inherit"`. */
15
+ fontSizeInherit: string;
16
+ /** Styles applied to the root element if `fontSize="small"`. */
17
+ fontSizeSmall: string;
18
+ /** Styles applied to the root element if `fontSize="large"`. */
19
+ fontSizeLarge: string;
20
+ }
21
+ export declare type SvgIconClassKey = keyof SvgIconClasses;
22
+ export declare function getSvgIconUtilityClass(slot: string): string;
23
+ declare const svgIconClasses: SvgIconClasses;
24
+ export default svgIconClasses;
@@ -1,32 +1,32 @@
1
- export interface SwitchClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `edge="start"`. */
5
- edgeStart: string;
6
- /** Styles applied to the root element if `edge="end"`. */
7
- edgeEnd: string;
8
- /** Styles applied to the internal `SwitchBase` component's `root` class. */
9
- switchBase: string;
10
- /** Styles applied to the internal SwitchBase component's root element if `color="primary"`. */
11
- colorPrimary: string;
12
- /** Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */
13
- colorSecondary: string;
14
- /** Styles applied to the root element if `size="small"`. */
15
- sizeSmall: string;
16
- /** Styles applied to the root element if `size="medium"`. */
17
- sizeMedium: string;
18
- /** State class applied to the internal `SwitchBase` component's `checked` class. */
19
- checked: string;
20
- /** State class applied to the internal SwitchBase component's disabled class. */
21
- disabled: string;
22
- /** Styles applied to the internal SwitchBase component's input element. */
23
- input: string;
24
- /** Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */
25
- thumb: string;
26
- /** Styles applied to the track element. */
27
- track: string;
28
- }
29
- export declare type SwitchClassKey = keyof SwitchClasses;
30
- export declare function getSwitchUtilityClass(slot: string): string;
31
- declare const switchClasses: SwitchClasses;
32
- export default switchClasses;
1
+ export interface SwitchClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `edge="start"`. */
5
+ edgeStart: string;
6
+ /** Styles applied to the root element if `edge="end"`. */
7
+ edgeEnd: string;
8
+ /** Styles applied to the internal `SwitchBase` component's `root` class. */
9
+ switchBase: string;
10
+ /** Styles applied to the internal SwitchBase component's root element if `color="primary"`. */
11
+ colorPrimary: string;
12
+ /** Styles applied to the internal SwitchBase component's root element if `color="secondary"`. */
13
+ colorSecondary: string;
14
+ /** Styles applied to the root element if `size="small"`. */
15
+ sizeSmall: string;
16
+ /** Styles applied to the root element if `size="medium"`. */
17
+ sizeMedium: string;
18
+ /** State class applied to the internal `SwitchBase` component's `checked` class. */
19
+ checked: string;
20
+ /** State class applied to the internal SwitchBase component's disabled class. */
21
+ disabled: string;
22
+ /** Styles applied to the internal SwitchBase component's input element. */
23
+ input: string;
24
+ /** Styles used to create the thumb passed to the internal `SwitchBase` component `icon` prop. */
25
+ thumb: string;
26
+ /** Styles applied to the track element. */
27
+ track: string;
28
+ }
29
+ export declare type SwitchClassKey = keyof SwitchClasses;
30
+ export declare function getSwitchUtilityClass(slot: string): string;
31
+ declare const switchClasses: SwitchClasses;
32
+ export default switchClasses;
package/Tab/Tab.js CHANGED
@@ -78,23 +78,23 @@ const TabRoot = styled(ButtonBase, {
78
78
  opacity: 1
79
79
  },
80
80
  [`&.${tabClasses.disabled}`]: {
81
- opacity: theme.palette.action.disabledOpacity
81
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
82
82
  }
83
83
  }, ownerState.textColor === 'primary' && {
84
- color: theme.palette.text.secondary,
84
+ color: (theme.vars || theme).palette.text.secondary,
85
85
  [`&.${tabClasses.selected}`]: {
86
- color: theme.palette.primary.main
86
+ color: (theme.vars || theme).palette.primary.main
87
87
  },
88
88
  [`&.${tabClasses.disabled}`]: {
89
- color: theme.palette.text.disabled
89
+ color: (theme.vars || theme).palette.text.disabled
90
90
  }
91
91
  }, ownerState.textColor === 'secondary' && {
92
- color: theme.palette.text.secondary,
92
+ color: (theme.vars || theme).palette.text.secondary,
93
93
  [`&.${tabClasses.selected}`]: {
94
- color: theme.palette.secondary.main
94
+ color: (theme.vars || theme).palette.secondary.main
95
95
  },
96
96
  [`&.${tabClasses.disabled}`]: {
97
- color: theme.palette.text.disabled
97
+ color: (theme.vars || theme).palette.text.disabled
98
98
  }
99
99
  }, ownerState.fullWidth && {
100
100
  flexShrink: 1,
@@ -1,26 +1,26 @@
1
- export interface TabClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if both `icon` and `label` are provided. */
5
- labelIcon: string;
6
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="inherit"`. */
7
- textColorInherit: string;
8
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="primary"`. */
9
- textColorPrimary: string;
10
- /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="secondary"`. */
11
- textColorSecondary: string;
12
- /** State class applied to the root element if `selected={true}` (controlled by the Tabs component). */
13
- selected: string;
14
- /** State class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
15
- disabled: string;
16
- /** Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
17
- fullWidth: string;
18
- /** Styles applied to the root element if `wrapped={true}`. */
19
- wrapped: string;
20
- /** Styles applied to the wrapper element of `icon` if `icon` is provided. */
21
- iconWrapper: string;
22
- }
23
- export declare type TabClassKey = keyof TabClasses;
24
- export declare function getTabUtilityClass(slot: string): string;
25
- declare const tabClasses: TabClasses;
26
- export default tabClasses;
1
+ export interface TabClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if both `icon` and `label` are provided. */
5
+ labelIcon: string;
6
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="inherit"`. */
7
+ textColorInherit: string;
8
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="primary"`. */
9
+ textColorPrimary: string;
10
+ /** Styles applied to the root element if the parent [`Tabs`](/material-ui/api/tabs/) has `textColor="secondary"`. */
11
+ textColorSecondary: string;
12
+ /** State class applied to the root element if `selected={true}` (controlled by the Tabs component). */
13
+ selected: string;
14
+ /** State class applied to the root element if `disabled={true}` (controlled by the Tabs component). */
15
+ disabled: string;
16
+ /** Styles applied to the root element if `fullWidth={true}` (controlled by the Tabs component). */
17
+ fullWidth: string;
18
+ /** Styles applied to the root element if `wrapped={true}`. */
19
+ wrapped: string;
20
+ /** Styles applied to the wrapper element of `icon` if `icon` is provided. */
21
+ iconWrapper: string;
22
+ }
23
+ export declare type TabClassKey = keyof TabClasses;
24
+ export declare function getTabUtilityClass(slot: string): string;
25
+ declare const tabClasses: TabClasses;
26
+ export default tabClasses;
@@ -1,12 +1,12 @@
1
- export interface TabScrollButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `orientation="vertical"`. */
5
- vertical: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- }
9
- export declare type TabScrollButtonClassKey = keyof TabScrollButtonClasses;
10
- export declare function getTabScrollButtonUtilityClass(slot: string): string;
11
- declare const tabScrollButtonClasses: TabScrollButtonClasses;
12
- export default tabScrollButtonClasses;
1
+ export interface TabScrollButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `orientation="vertical"`. */
5
+ vertical: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ }
9
+ export declare type TabScrollButtonClassKey = keyof TabScrollButtonClasses;
10
+ export declare function getTabScrollButtonUtilityClass(slot: string): string;
11
+ declare const tabScrollButtonClasses: TabScrollButtonClasses;
12
+ export default tabScrollButtonClasses;
package/Table/Table.js CHANGED
@@ -41,7 +41,7 @@ const TableRoot = styled('table', {
41
41
  borderSpacing: 0,
42
42
  '& caption': _extends({}, theme.typography.body2, {
43
43
  padding: theme.spacing(2),
44
- color: theme.palette.text.secondary,
44
+ color: (theme.vars || theme).palette.text.secondary,
45
45
  textAlign: 'left',
46
46
  captionSide: 'bottom'
47
47
  })
@@ -1,10 +1,10 @@
1
- export interface TableClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `stickyHeader={true}`. */
5
- stickyHeader: string;
6
- }
7
- export declare type TableClassKey = keyof TableClasses;
8
- export declare function getTableUtilityClass(slot: string): string;
9
- declare const tableClasses: TableClasses;
10
- export default tableClasses;
1
+ export interface TableClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `stickyHeader={true}`. */
5
+ stickyHeader: string;
6
+ }
7
+ export declare type TableClassKey = keyof TableClasses;
8
+ export declare function getTableUtilityClass(slot: string): string;
9
+ declare const tableClasses: TableClasses;
10
+ export default tableClasses;
@@ -1,8 +1,8 @@
1
- export interface TableBodyClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export declare type TableBodyClassKey = keyof TableBodyClasses;
6
- export declare function getTableBodyUtilityClass(slot: string): string;
7
- declare const tableBodyClasses: TableBodyClasses;
8
- export default tableBodyClasses;
1
+ export interface TableBodyClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export declare type TableBodyClassKey = keyof TableBodyClasses;
6
+ export declare function getTableBodyUtilityClass(slot: string): string;
7
+ declare const tableBodyClasses: TableBodyClasses;
8
+ export default tableBodyClasses;