@mui/material 5.8.4 → 5.8.5

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 (235) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/AppBar.js +22 -5
  8. package/AppBar/appBarClasses.d.ts +28 -28
  9. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  10. package/Avatar/Avatar.js +7 -4
  11. package/Avatar/avatarClasses.d.ts +20 -20
  12. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  13. package/Backdrop/backdropClasses.d.ts +10 -10
  14. package/Badge/Badge.js +2 -2
  15. package/Badge/badgeClasses.d.ts +56 -56
  16. package/BottomNavigation/BottomNavigation.js +0 -0
  17. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  18. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  19. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  20. package/Button/buttonClasses.d.ts +100 -100
  21. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  22. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  23. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  24. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  25. package/CHANGELOG.md +69 -4
  26. package/Card/cardClasses.d.ts +8 -8
  27. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  28. package/CardActions/cardActionsClasses.d.ts +10 -10
  29. package/CardContent/cardContentClasses.d.ts +8 -8
  30. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  31. package/CardMedia/cardMediaClasses.d.ts +12 -12
  32. package/Checkbox/checkboxClasses.d.ts +18 -18
  33. package/Chip/Chip.js +31 -30
  34. package/Chip/chipClasses.d.ts +80 -80
  35. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  36. package/ClickAwayListener/index.d.ts +2 -2
  37. package/Collapse/collapseClasses.d.ts +18 -18
  38. package/Container/containerClasses.d.ts +6 -6
  39. package/Dialog/Dialog.js +11 -6
  40. package/Dialog/DialogContext.d.ts +6 -6
  41. package/Dialog/dialogClasses.d.ts +36 -36
  42. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  43. package/DialogContent/dialogContentClasses.d.ts +10 -10
  44. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  45. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  46. package/Divider/dividerClasses.d.ts +34 -34
  47. package/Drawer/drawerClasses.d.ts +30 -30
  48. package/Fab/fabClasses.d.ts +26 -26
  49. package/FilledInput/FilledInput.js +28 -13
  50. package/FilledInput/filledInputClasses.d.ts +40 -40
  51. package/FormControl/formControlClasses.d.ts +14 -14
  52. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  53. package/FormGroup/formGroupClasses.d.ts +12 -12
  54. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  55. package/FormLabel/formLabelClasses.d.ts +22 -22
  56. package/Grid/gridClasses.d.ts +48 -48
  57. package/Icon/iconClasses.d.ts +24 -24
  58. package/IconButton/iconButtonClasses.d.ts +26 -26
  59. package/ImageList/imageListClasses.d.ts +16 -16
  60. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  61. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  62. package/Input/inputClasses.d.ts +34 -34
  63. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  64. package/InputBase/InputBase.js +2 -2
  65. package/InputBase/inputBaseClasses.d.ts +44 -44
  66. package/InputLabel/inputLabelClasses.d.ts +32 -32
  67. package/LinearProgress/LinearProgress.js +6 -2
  68. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  69. package/Link/getTextDecoration.d.ts +15 -15
  70. package/Link/linkClasses.d.ts +18 -18
  71. package/List/listClasses.d.ts +14 -14
  72. package/ListItem/listItemClasses.d.ts +30 -30
  73. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  74. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  75. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  76. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  77. package/ListItemText/listItemTextClasses.d.ts +18 -18
  78. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  79. package/Menu/menuClasses.d.ts +12 -12
  80. package/MenuItem/menuItemClasses.d.ts +20 -20
  81. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  82. package/Modal/Modal.d.ts +2 -0
  83. package/Modal/Modal.js +25 -8
  84. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  85. package/OutlinedInput/OutlinedInput.js +25 -10
  86. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  87. package/Pagination/paginationClasses.d.ts +14 -14
  88. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  89. package/Paper/paperClasses.d.ts +39 -39
  90. package/Popover/popoverClasses.d.ts +10 -10
  91. package/Popper/Popper.d.ts +29 -29
  92. package/Radio/radioClasses.d.ts +16 -16
  93. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  94. package/RadioGroup/useRadioGroup.d.ts +4 -4
  95. package/Rating/ratingClasses.d.ts +40 -40
  96. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  97. package/Select/selectClasses.d.ts +30 -30
  98. package/Skeleton/Skeleton.js +8 -3
  99. package/Skeleton/skeletonClasses.d.ts +24 -24
  100. package/Slider/Slider.js +12 -12
  101. package/Snackbar/snackbarClasses.d.ts +20 -20
  102. package/SnackbarContent/SnackbarContent.js +3 -3
  103. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  104. package/SpeedDial/speedDialClasses.d.ts +22 -22
  105. package/SpeedDialAction/SpeedDialAction.js +7 -7
  106. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  107. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  108. package/Step/StepContext.d.ts +20 -20
  109. package/Step/stepClasses.d.ts +16 -16
  110. package/StepButton/stepButtonClasses.d.ts +14 -14
  111. package/StepConnector/StepConnector.js +14 -11
  112. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  113. package/StepContent/StepContent.js +1 -1
  114. package/StepContent/stepContentClasses.d.ts +12 -12
  115. package/StepIcon/stepIconClasses.d.ts +16 -16
  116. package/StepLabel/stepLabelClasses.d.ts +28 -28
  117. package/Stepper/StepperContext.d.ts +18 -18
  118. package/Stepper/stepperClasses.d.ts +14 -14
  119. package/SvgIcon/svgIconClasses.d.ts +24 -24
  120. package/Switch/Switch.js +11 -11
  121. package/Switch/switchClasses.d.ts +32 -32
  122. package/Tab/tabClasses.d.ts +26 -26
  123. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  124. package/Table/tableClasses.d.ts +10 -10
  125. package/TableBody/tableBodyClasses.d.ts +8 -8
  126. package/TableCell/TableCell.js +5 -5
  127. package/TableCell/tableCellClasses.d.ts +32 -32
  128. package/TableContainer/tableContainerClasses.d.ts +8 -8
  129. package/TableFooter/tableFooterClasses.d.ts +8 -8
  130. package/TableHead/tableHeadClasses.d.ts +8 -8
  131. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  132. package/TableRow/tableRowClasses.d.ts +16 -16
  133. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  134. package/Tabs/Tabs.js +6 -16
  135. package/Tabs/tabsClasses.d.ts +32 -32
  136. package/TextField/textFieldClasses.d.ts +8 -8
  137. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  138. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  139. package/Toolbar/toolbarClasses.d.ts +14 -14
  140. package/Tooltip/Tooltip.js +1 -1
  141. package/Tooltip/tooltipClasses.d.ts +30 -30
  142. package/Typography/typographyClasses.d.ts +50 -50
  143. package/className/index.d.ts +1 -1
  144. package/darkScrollbar/index.d.ts +28 -28
  145. package/index.js +1 -1
  146. package/internal/switchBaseClasses.d.ts +12 -12
  147. package/legacy/AppBar/AppBar.js +23 -4
  148. package/legacy/Avatar/Avatar.js +7 -4
  149. package/legacy/Badge/Badge.js +2 -2
  150. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  151. package/legacy/Chip/Chip.js +31 -30
  152. package/legacy/Dialog/Dialog.js +11 -6
  153. package/legacy/FilledInput/FilledInput.js +28 -14
  154. package/legacy/InputBase/InputBase.js +2 -2
  155. package/legacy/LinearProgress/LinearProgress.js +6 -2
  156. package/legacy/Modal/Modal.js +23 -7
  157. package/legacy/OutlinedInput/OutlinedInput.js +21 -9
  158. package/legacy/Skeleton/Skeleton.js +2 -2
  159. package/legacy/Slider/Slider.js +12 -12
  160. package/legacy/SnackbarContent/SnackbarContent.js +3 -3
  161. package/legacy/SpeedDialAction/SpeedDialAction.js +7 -7
  162. package/legacy/StepConnector/StepConnector.js +2 -1
  163. package/legacy/StepContent/StepContent.js +1 -1
  164. package/legacy/Switch/Switch.js +11 -11
  165. package/legacy/TableCell/TableCell.js +5 -5
  166. package/legacy/Tabs/Tabs.js +6 -16
  167. package/legacy/Tooltip/Tooltip.js +1 -1
  168. package/legacy/index.js +1 -1
  169. package/legacy/styles/CssVarsProvider.js +1 -1
  170. package/legacy/styles/experimental_extendTheme.js +113 -18
  171. package/locale/index.d.ts +71 -71
  172. package/modern/AppBar/AppBar.js +22 -5
  173. package/modern/Avatar/Avatar.js +7 -4
  174. package/modern/Badge/Badge.js +2 -2
  175. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  176. package/modern/Chip/Chip.js +31 -30
  177. package/modern/Dialog/Dialog.js +11 -6
  178. package/modern/FilledInput/FilledInput.js +27 -12
  179. package/modern/InputBase/InputBase.js +2 -2
  180. package/modern/LinearProgress/LinearProgress.js +6 -2
  181. package/modern/Modal/Modal.js +24 -7
  182. package/modern/OutlinedInput/OutlinedInput.js +25 -10
  183. package/modern/Skeleton/Skeleton.js +7 -2
  184. package/modern/Slider/Slider.js +12 -12
  185. package/modern/SnackbarContent/SnackbarContent.js +3 -3
  186. package/modern/SpeedDialAction/SpeedDialAction.js +7 -7
  187. package/modern/StepConnector/StepConnector.js +14 -11
  188. package/modern/StepContent/StepContent.js +1 -1
  189. package/modern/Switch/Switch.js +11 -11
  190. package/modern/TableCell/TableCell.js +5 -5
  191. package/modern/Tabs/Tabs.js +6 -16
  192. package/modern/Tooltip/Tooltip.js +1 -1
  193. package/modern/index.js +1 -1
  194. package/modern/styles/CssVarsProvider.js +1 -1
  195. package/modern/styles/experimental_extendTheme.js +114 -18
  196. package/node/AppBar/AppBar.js +22 -5
  197. package/node/Avatar/Avatar.js +7 -4
  198. package/node/Badge/Badge.js +2 -2
  199. package/node/BottomNavigation/BottomNavigation.js +0 -0
  200. package/node/Chip/Chip.js +31 -30
  201. package/node/Dialog/Dialog.js +11 -6
  202. package/node/FilledInput/FilledInput.js +28 -13
  203. package/node/InputBase/InputBase.js +2 -2
  204. package/node/LinearProgress/LinearProgress.js +6 -2
  205. package/node/Modal/Modal.js +25 -8
  206. package/node/OutlinedInput/OutlinedInput.js +25 -10
  207. package/node/Skeleton/Skeleton.js +7 -2
  208. package/node/Slider/Slider.js +12 -12
  209. package/node/SnackbarContent/SnackbarContent.js +3 -3
  210. package/node/SpeedDialAction/SpeedDialAction.js +7 -7
  211. package/node/StepConnector/StepConnector.js +14 -11
  212. package/node/StepContent/StepContent.js +1 -1
  213. package/node/Switch/Switch.js +11 -11
  214. package/node/TableCell/TableCell.js +5 -5
  215. package/node/Tabs/Tabs.js +6 -16
  216. package/node/Tooltip/Tooltip.js +1 -1
  217. package/node/index.js +1 -1
  218. package/node/styles/CssVarsProvider.js +1 -1
  219. package/node/styles/experimental_extendTheme.js +112 -17
  220. package/package.json +4 -4
  221. package/styles/CssVarsProvider.js +1 -1
  222. package/styles/createPalette.d.ts +65 -2
  223. package/styles/experimental_extendTheme.js +114 -18
  224. package/transitions/index.d.ts +1 -1
  225. package/transitions/transition.d.ts +13 -13
  226. package/transitions/utils.d.ts +23 -23
  227. package/umd/material-ui.development.js +548 -240
  228. package/umd/material-ui.production.min.js +27 -22
  229. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  230. package/useTouchRipple/index.d.ts +1 -1
  231. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  232. package/utils/getScrollbarSize.d.ts +2 -2
  233. package/utils/ownerDocument.d.ts +2 -2
  234. package/utils/ownerWindow.d.ts +2 -2
  235. package/utils/setRef.d.ts +2 -2
@@ -1,34 +1,34 @@
1
- export interface InputClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
- formControl: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if color secondary. */
11
- colorSecondary: string;
12
- /** Styles applied to the root element unless `disableUnderline={true}`. */
13
- underline: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the root element if `fullWidth={true}`. */
21
- fullWidth: string;
22
- /** Styles applied to the input element. */
23
- input: string;
24
- /** Styles applied to the input element if `size="small"`. */
25
- inputSizeSmall: string;
26
- /** Styles applied to the input element if `multiline={true}`. */
27
- inputMultiline: string;
28
- /** Styles applied to the input element if `type="search"`. */
29
- inputTypeSearch: string;
30
- }
31
- export declare type InputClassKey = keyof InputClasses;
32
- export declare function getInputUtilityClass(slot: string): string;
33
- declare const inputClasses: InputClasses;
34
- export default inputClasses;
1
+ export interface InputClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
+ formControl: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if color secondary. */
11
+ colorSecondary: string;
12
+ /** Styles applied to the root element unless `disableUnderline={true}`. */
13
+ underline: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the root element if `fullWidth={true}`. */
21
+ fullWidth: string;
22
+ /** Styles applied to the input element. */
23
+ input: string;
24
+ /** Styles applied to the input element if `size="small"`. */
25
+ inputSizeSmall: string;
26
+ /** Styles applied to the input element if `multiline={true}`. */
27
+ inputMultiline: string;
28
+ /** Styles applied to the input element if `type="search"`. */
29
+ inputTypeSearch: string;
30
+ }
31
+ export declare type InputClassKey = keyof InputClasses;
32
+ export declare function getInputUtilityClass(slot: string): string;
33
+ declare const inputClasses: InputClasses;
34
+ export default inputClasses;
@@ -1,24 +1,24 @@
1
- export interface InputAdornmentClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="filled"`. */
5
- filled: string;
6
- /** Styles applied to the root element if `variant="outlined"`. */
7
- outlined: string;
8
- /** Styles applied to the root element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the root element if `position="start"`. */
11
- positionStart: string;
12
- /** Styles applied to the root element if `position="end"`. */
13
- positionEnd: string;
14
- /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
- disablePointerEvents: string;
16
- /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
- hiddenLabel: string;
18
- /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
- sizeSmall: string;
20
- }
21
- export declare type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
- export declare function getInputAdornmentUtilityClass(slot: string): string;
23
- declare const inputAdornmentClasses: InputAdornmentClasses;
24
- export default inputAdornmentClasses;
1
+ export interface InputAdornmentClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="filled"`. */
5
+ filled: string;
6
+ /** Styles applied to the root element if `variant="outlined"`. */
7
+ outlined: string;
8
+ /** Styles applied to the root element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the root element if `position="start"`. */
11
+ positionStart: string;
12
+ /** Styles applied to the root element if `position="end"`. */
13
+ positionEnd: string;
14
+ /** Styles applied to the root element if `disablePointerEvents={true}`. */
15
+ disablePointerEvents: string;
16
+ /** Styles applied if the adornment is used inside <FormControl hiddenLabel />. */
17
+ hiddenLabel: string;
18
+ /** Styles applied if the adornment is used inside <FormControl size="small" />. */
19
+ sizeSmall: string;
20
+ }
21
+ export declare type InputAdornmentClassKey = keyof InputAdornmentClasses;
22
+ export declare function getInputAdornmentUtilityClass(slot: string): string;
23
+ declare const inputAdornmentClasses: InputAdornmentClasses;
24
+ export default inputAdornmentClasses;
@@ -97,7 +97,7 @@ export const InputBaseComponent = styled('input', {
97
97
  const placeholder = _extends({
98
98
  color: 'currentColor'
99
99
  }, theme.vars ? {
100
- opacity: theme.vars.opacity.placeholder
100
+ opacity: theme.vars.opacity.inputPlaceholder
101
101
  } : {
102
102
  opacity: light ? 0.42 : 0.5
103
103
  }, {
@@ -110,7 +110,7 @@ export const InputBaseComponent = styled('input', {
110
110
  opacity: '0 !important'
111
111
  };
112
112
  const placeholderVisible = theme.vars ? {
113
- opacity: theme.vars.opacity.placeholder
113
+ opacity: theme.vars.opacity.inputPlaceholder
114
114
  } : {
115
115
  opacity: light ? 0.42 : 0.5
116
116
  };
@@ -1,44 +1,44 @@
1
- export interface InputBaseClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
- formControl: string;
6
- /** Styles applied to the root element if the component is focused. */
7
- focused: string;
8
- /** Styles applied to the root element if `disabled={true}`. */
9
- disabled: string;
10
- /** Styles applied to the root element if `startAdornment` is provided. */
11
- adornedStart: string;
12
- /** Styles applied to the root element if `endAdornment` is provided. */
13
- adornedEnd: string;
14
- /** State class applied to the root element if `error={true}`. */
15
- error: string;
16
- /** Styles applied to the input element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the root element if `multiline={true}`. */
19
- multiline: string;
20
- /** Styles applied to the root element if the color is secondary. */
21
- colorSecondary: string;
22
- /** Styles applied to the root element if `fullWidth={true}`. */
23
- fullWidth: string;
24
- /** Styles applied to the root element if `hiddenLabel={true}`. */
25
- hiddenLabel: string;
26
- /** Styles applied to the input element. */
27
- input: string;
28
- /** Styles applied to the input element if `size="small"`. */
29
- inputSizeSmall: string;
30
- /** Styles applied to the input element if `multiline={true}`. */
31
- inputMultiline: string;
32
- /** Styles applied to the input element if `type="search"`. */
33
- inputTypeSearch: string;
34
- /** Styles applied to the input element if `startAdornment` is provided. */
35
- inputAdornedStart: string;
36
- /** Styles applied to the input element if `endAdornment` is provided. */
37
- inputAdornedEnd: string;
38
- /** Styles applied to the input element if `hiddenLabel={true}`. */
39
- inputHiddenLabel: string;
40
- }
41
- export declare type InputBaseClassKey = keyof InputBaseClasses;
42
- export declare function getInputBaseUtilityClass(slot: string): string;
43
- declare const inputBaseClasses: InputBaseClasses;
44
- export default inputBaseClasses;
1
+ export interface InputBaseClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
5
+ formControl: string;
6
+ /** Styles applied to the root element if the component is focused. */
7
+ focused: string;
8
+ /** Styles applied to the root element if `disabled={true}`. */
9
+ disabled: string;
10
+ /** Styles applied to the root element if `startAdornment` is provided. */
11
+ adornedStart: string;
12
+ /** Styles applied to the root element if `endAdornment` is provided. */
13
+ adornedEnd: string;
14
+ /** State class applied to the root element if `error={true}`. */
15
+ error: string;
16
+ /** Styles applied to the input element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the root element if `multiline={true}`. */
19
+ multiline: string;
20
+ /** Styles applied to the root element if the color is secondary. */
21
+ colorSecondary: string;
22
+ /** Styles applied to the root element if `fullWidth={true}`. */
23
+ fullWidth: string;
24
+ /** Styles applied to the root element if `hiddenLabel={true}`. */
25
+ hiddenLabel: string;
26
+ /** Styles applied to the input element. */
27
+ input: string;
28
+ /** Styles applied to the input element if `size="small"`. */
29
+ inputSizeSmall: string;
30
+ /** Styles applied to the input element if `multiline={true}`. */
31
+ inputMultiline: string;
32
+ /** Styles applied to the input element if `type="search"`. */
33
+ inputTypeSearch: string;
34
+ /** Styles applied to the input element if `startAdornment` is provided. */
35
+ inputAdornedStart: string;
36
+ /** Styles applied to the input element if `endAdornment` is provided. */
37
+ inputAdornedEnd: string;
38
+ /** Styles applied to the input element if `hiddenLabel={true}`. */
39
+ inputHiddenLabel: string;
40
+ }
41
+ export declare type InputBaseClassKey = keyof InputBaseClasses;
42
+ export declare function getInputBaseUtilityClass(slot: string): string;
43
+ declare const inputBaseClasses: InputBaseClasses;
44
+ export default inputBaseClasses;
@@ -1,32 +1,32 @@
1
- export interface InputLabelClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if `focused={true}`. */
5
- focused: string;
6
- /** State class applied to the root element if `disabled={true}`. */
7
- disabled: string;
8
- /** State class applied to the root element if `error={true}`. */
9
- error: string;
10
- /** State class applied to the root element if `required={true}`. */
11
- required: string;
12
- /** State class applied to the asterisk element. */
13
- asterisk: string;
14
- /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
- formControl: string;
16
- /** Styles applied to the root element if `size="small"`. */
17
- sizeSmall: string;
18
- /** Styles applied to the input element if `shrink={true}`. */
19
- shrink: string;
20
- /** Styles applied to the input element unless `disableAnimation={true}`. */
21
- animated: string;
22
- /** Styles applied to the root element if `variant="filled"`. */
23
- filled: string;
24
- /** Styles applied to the root element if `variant="outlined"`. */
25
- outlined: string;
26
- /** Styles applied to the root element if `variant="standard"`. */
27
- standard: string;
28
- }
29
- export declare type InputLabelClassKey = keyof InputLabelClasses;
30
- export declare function getInputLabelUtilityClasses(slot: string): string;
31
- declare const inputLabelClasses: InputLabelClasses;
32
- export default inputLabelClasses;
1
+ export interface InputLabelClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if `focused={true}`. */
5
+ focused: string;
6
+ /** State class applied to the root element if `disabled={true}`. */
7
+ disabled: string;
8
+ /** State class applied to the root element if `error={true}`. */
9
+ error: string;
10
+ /** State class applied to the root element if `required={true}`. */
11
+ required: string;
12
+ /** State class applied to the asterisk element. */
13
+ asterisk: string;
14
+ /** Styles applied to the root element if the component is a descendant of `FormControl`. */
15
+ formControl: string;
16
+ /** Styles applied to the root element if `size="small"`. */
17
+ sizeSmall: string;
18
+ /** Styles applied to the input element if `shrink={true}`. */
19
+ shrink: string;
20
+ /** Styles applied to the input element unless `disableAnimation={true}`. */
21
+ animated: string;
22
+ /** Styles applied to the root element if `variant="filled"`. */
23
+ filled: string;
24
+ /** Styles applied to the root element if `variant="outlined"`. */
25
+ outlined: string;
26
+ /** Styles applied to the root element if `variant="standard"`. */
27
+ standard: string;
28
+ }
29
+ export declare type InputLabelClassKey = keyof InputLabelClasses;
30
+ export declare function getInputLabelUtilityClasses(slot: string): string;
31
+ declare const inputLabelClasses: InputLabelClasses;
32
+ export default inputLabelClasses;
@@ -93,6 +93,10 @@ const getColorShade = (theme, color) => {
93
93
  return 'currentColor';
94
94
  }
95
95
 
96
+ if (theme.vars) {
97
+ return theme.vars.palette.LinearProgress[`${color}Bg`];
98
+ }
99
+
96
100
  return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
97
101
  };
98
102
 
@@ -185,7 +189,7 @@ const LinearProgressBar1 = styled('span', {
185
189
  top: 0,
186
190
  transition: 'transform 0.2s linear',
187
191
  transformOrigin: 'left',
188
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
192
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
189
193
  }, ownerState.variant === 'determinate' && {
190
194
  transition: `transform .${TRANSITION_DURATION}s linear`
191
195
  }, ownerState.variant === 'buffer' && {
@@ -218,7 +222,7 @@ const LinearProgressBar2 = styled('span', {
218
222
  transition: 'transform 0.2s linear',
219
223
  transformOrigin: 'left'
220
224
  }, ownerState.variant !== 'buffer' && {
221
- backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : theme.palette[ownerState.color].main
225
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
222
226
  }, ownerState.color === 'inherit' && {
223
227
  opacity: 0.3
224
228
  }, ownerState.variant === 'buffer' && {
@@ -1,42 +1,42 @@
1
- export interface LinearProgressClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
5
- colorPrimary: string;
6
- /** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
7
- colorSecondary: string;
8
- /** Styles applied to the root element if `variant="determinate"`. */
9
- determinate: string;
10
- /** Styles applied to the root element if `variant="indeterminate"`. */
11
- indeterminate: string;
12
- /** Styles applied to the root element if `variant="buffer"`. */
13
- buffer: string;
14
- /** Styles applied to the root element if `variant="query"`. */
15
- query: string;
16
- /** Styles applied to the additional bar element if `variant="buffer"`. */
17
- dashed: string;
18
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
19
- dashedColorPrimary: string;
20
- /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
21
- dashedColorSecondary: string;
22
- /** Styles applied to the layered bar1 and bar2 elements. */
23
- bar: string;
24
- /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
25
- barColorPrimary: string;
26
- /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
27
- barColorSecondary: string;
28
- /** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
29
- bar1Indeterminate: string;
30
- /** Styles applied to the bar1 element if `variant="determinate"`. */
31
- bar1Determinate: string;
32
- /** Styles applied to the bar1 element if `variant="buffer"`. */
33
- bar1Buffer: string;
34
- /** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
35
- bar2Indeterminate: string;
36
- /** Styles applied to the bar2 element if `variant="buffer"`. */
37
- bar2Buffer: string;
38
- }
39
- export declare type LinearProgressClassKey = keyof LinearProgressClasses;
40
- export declare function getLinearProgressUtilityClass(slot: string): string;
41
- declare const linearProgressClasses: LinearProgressClasses;
42
- export default linearProgressClasses;
1
+ export interface LinearProgressClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
5
+ colorPrimary: string;
6
+ /** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
7
+ colorSecondary: string;
8
+ /** Styles applied to the root element if `variant="determinate"`. */
9
+ determinate: string;
10
+ /** Styles applied to the root element if `variant="indeterminate"`. */
11
+ indeterminate: string;
12
+ /** Styles applied to the root element if `variant="buffer"`. */
13
+ buffer: string;
14
+ /** Styles applied to the root element if `variant="query"`. */
15
+ query: string;
16
+ /** Styles applied to the additional bar element if `variant="buffer"`. */
17
+ dashed: string;
18
+ /** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
19
+ dashedColorPrimary: string;
20
+ /** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
21
+ dashedColorSecondary: string;
22
+ /** Styles applied to the layered bar1 and bar2 elements. */
23
+ bar: string;
24
+ /** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
25
+ barColorPrimary: string;
26
+ /** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
27
+ barColorSecondary: string;
28
+ /** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
29
+ bar1Indeterminate: string;
30
+ /** Styles applied to the bar1 element if `variant="determinate"`. */
31
+ bar1Determinate: string;
32
+ /** Styles applied to the bar1 element if `variant="buffer"`. */
33
+ bar1Buffer: string;
34
+ /** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
35
+ bar2Indeterminate: string;
36
+ /** Styles applied to the bar2 element if `variant="buffer"`. */
37
+ bar2Buffer: string;
38
+ }
39
+ export declare type LinearProgressClassKey = keyof LinearProgressClasses;
40
+ export declare function getLinearProgressUtilityClass(slot: string): string;
41
+ declare const linearProgressClasses: LinearProgressClasses;
42
+ export default linearProgressClasses;
@@ -1,15 +1,15 @@
1
- import type { Theme } from '../styles';
2
- export declare const colorTransformations: {
3
- primary: string;
4
- textPrimary: string;
5
- secondary: string;
6
- textSecondary: string;
7
- error: string;
8
- };
9
- declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
10
- theme: T;
11
- ownerState: {
12
- color: string;
13
- };
14
- }) => string;
15
- export default getTextDecoration;
1
+ import type { Theme } from '../styles';
2
+ export declare const colorTransformations: {
3
+ primary: string;
4
+ textPrimary: string;
5
+ secondary: string;
6
+ textSecondary: string;
7
+ error: string;
8
+ };
9
+ declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
10
+ theme: T;
11
+ ownerState: {
12
+ color: string;
13
+ };
14
+ }) => string;
15
+ export default getTextDecoration;
@@ -1,18 +1,18 @@
1
- export interface LinkClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `underline="none"`. */
5
- underlineNone: string;
6
- /** Styles applied to the root element if `underline="hover"`. */
7
- underlineHover: string;
8
- /** Styles applied to the root element if `underline="always"`. */
9
- underlineAlways: string;
10
- /** Styles applied to the root element if `component="button"`. */
11
- button: string;
12
- /** State class applied to the root element if the link is keyboard focused. */
13
- focusVisible: string;
14
- }
15
- export declare type LinkClassKey = keyof LinkClasses;
16
- export declare function getLinkUtilityClass(slot: string): string;
17
- declare const linkClasses: LinkClasses;
18
- export default linkClasses;
1
+ export interface LinkClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `underline="none"`. */
5
+ underlineNone: string;
6
+ /** Styles applied to the root element if `underline="hover"`. */
7
+ underlineHover: string;
8
+ /** Styles applied to the root element if `underline="always"`. */
9
+ underlineAlways: string;
10
+ /** Styles applied to the root element if `component="button"`. */
11
+ button: string;
12
+ /** State class applied to the root element if the link is keyboard focused. */
13
+ focusVisible: string;
14
+ }
15
+ export declare type LinkClassKey = keyof LinkClasses;
16
+ export declare function getLinkUtilityClass(slot: string): string;
17
+ declare const linkClasses: LinkClasses;
18
+ export default linkClasses;
@@ -1,14 +1,14 @@
1
- export interface ListClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element unless `disablePadding={true}`. */
5
- padding: string;
6
- /** Styles applied to the root element if dense. */
7
- dense: string;
8
- /** Styles applied to the root element if a `subheader` is provided. */
9
- subheader: string;
10
- }
11
- export declare type ListClassKey = keyof ListClasses;
12
- export declare function getListUtilityClass(slot: string): string;
13
- declare const listClasses: ListClasses;
14
- export default listClasses;
1
+ export interface ListClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element unless `disablePadding={true}`. */
5
+ padding: string;
6
+ /** Styles applied to the root element if dense. */
7
+ dense: string;
8
+ /** Styles applied to the root element if a `subheader` is provided. */
9
+ subheader: string;
10
+ }
11
+ export declare type ListClassKey = keyof ListClasses;
12
+ export declare function getListUtilityClass(slot: string): string;
13
+ declare const listClasses: ListClasses;
14
+ export default listClasses;
@@ -1,30 +1,30 @@
1
- export interface ListItemClasses {
2
- /** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
3
- root: string;
4
- /** Styles applied to the container element if `children` includes `ListItemSecondaryAction`. */
5
- container: string;
6
- /** State class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
7
- focusVisible: string;
8
- /** Styles applied to the component element if dense. */
9
- dense: string;
10
- /** Styles applied to the component element if `alignItems="flex-start"`. */
11
- alignItemsFlexStart: string;
12
- /** State class applied to the inner `component` element if `disabled={true}`. */
13
- disabled: string;
14
- /** Styles applied to the inner `component` element if `divider={true}`. */
15
- divider: string;
16
- /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
17
- gutters: string;
18
- /** Styles applied to the root element unless `disablePadding={true}`. */
19
- padding: string;
20
- /** Styles applied to the inner `component` element if `button={true}`. */
21
- button: string;
22
- /** Styles applied to the component element if `children` includes `ListItemSecondaryAction`. */
23
- secondaryAction: string;
24
- /** State class applied to the root element if `selected={true}`. */
25
- selected: string;
26
- }
27
- export declare type ListItemClassKey = keyof ListItemClasses;
28
- export declare function getListItemUtilityClass(slot: string): string;
29
- declare const listItemClasses: ListItemClasses;
30
- export default listItemClasses;
1
+ export interface ListItemClasses {
2
+ /** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
3
+ root: string;
4
+ /** Styles applied to the container element if `children` includes `ListItemSecondaryAction`. */
5
+ container: string;
6
+ /** State class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
7
+ focusVisible: string;
8
+ /** Styles applied to the component element if dense. */
9
+ dense: string;
10
+ /** Styles applied to the component element if `alignItems="flex-start"`. */
11
+ alignItemsFlexStart: string;
12
+ /** State class applied to the inner `component` element if `disabled={true}`. */
13
+ disabled: string;
14
+ /** Styles applied to the inner `component` element if `divider={true}`. */
15
+ divider: string;
16
+ /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
17
+ gutters: string;
18
+ /** Styles applied to the root element unless `disablePadding={true}`. */
19
+ padding: string;
20
+ /** Styles applied to the inner `component` element if `button={true}`. */
21
+ button: string;
22
+ /** Styles applied to the component element if `children` includes `ListItemSecondaryAction`. */
23
+ secondaryAction: string;
24
+ /** State class applied to the root element if `selected={true}`. */
25
+ selected: string;
26
+ }
27
+ export declare type ListItemClassKey = keyof ListItemClasses;
28
+ export declare function getListItemUtilityClass(slot: string): string;
29
+ declare const listItemClasses: ListItemClasses;
30
+ export default listItemClasses;
@@ -1,10 +1,10 @@
1
- export interface ListItemAvatarClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
5
- alignItemsFlexStart: string;
6
- }
7
- export declare type ListItemAvatarClassKey = keyof ListItemAvatarClasses;
8
- export declare function getListItemAvatarUtilityClass(slot: string): string;
9
- declare const listItemAvatarClasses: ListItemAvatarClasses;
10
- export default listItemAvatarClasses;
1
+ export interface ListItemAvatarClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
5
+ alignItemsFlexStart: string;
6
+ }
7
+ export declare type ListItemAvatarClassKey = keyof ListItemAvatarClasses;
8
+ export declare function getListItemAvatarUtilityClass(slot: string): string;
9
+ declare const listItemAvatarClasses: ListItemAvatarClasses;
10
+ export default listItemAvatarClasses;
@@ -1,22 +1,22 @@
1
- export interface ListItemButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the `component`'s `focusVisibleClassName` prop. */
5
- focusVisible: string;
6
- /** Styles applied to the component element if dense. */
7
- dense: string;
8
- /** Styles applied to the component element if `alignItems="flex-start"`. */
9
- alignItemsFlexStart: string;
10
- /** State class applied to the inner `component` element if `disabled={true}`. */
11
- disabled: string;
12
- /** Styles applied to the inner `component` element if `divider={true}`. */
13
- divider: string;
14
- /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
15
- gutters: string;
16
- /** State class applied to the root element if `selected={true}`. */
17
- selected: string;
18
- }
19
- export declare type ListItemButtonClassKey = keyof ListItemButtonClasses;
20
- export declare function getListItemButtonUtilityClass(slot: string): string;
21
- declare const listItemButtonClasses: ListItemButtonClasses;
22
- export default listItemButtonClasses;
1
+ export interface ListItemButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the `component`'s `focusVisibleClassName` prop. */
5
+ focusVisible: string;
6
+ /** Styles applied to the component element if dense. */
7
+ dense: string;
8
+ /** Styles applied to the component element if `alignItems="flex-start"`. */
9
+ alignItemsFlexStart: string;
10
+ /** State class applied to the inner `component` element if `disabled={true}`. */
11
+ disabled: string;
12
+ /** Styles applied to the inner `component` element if `divider={true}`. */
13
+ divider: string;
14
+ /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
15
+ gutters: string;
16
+ /** State class applied to the root element if `selected={true}`. */
17
+ selected: string;
18
+ }
19
+ export declare type ListItemButtonClassKey = keyof ListItemButtonClasses;
20
+ export declare function getListItemButtonUtilityClass(slot: string): string;
21
+ declare const listItemButtonClasses: ListItemButtonClasses;
22
+ export default listItemButtonClasses;