@mui/material 5.11.6 → 5.11.7

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 (193) hide show
  1. package/Accordion/accordionClasses.d.ts +18 -18
  2. package/AccordionActions/accordionActionsClasses.d.ts +10 -10
  3. package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
  4. package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
  5. package/Alert/alertClasses.d.ts +44 -44
  6. package/AlertTitle/alertTitleClasses.d.ts +8 -8
  7. package/AppBar/appBarClasses.d.ts +28 -28
  8. package/Autocomplete/autocompleteClasses.d.ts +54 -54
  9. package/Avatar/avatarClasses.d.ts +20 -20
  10. package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
  11. package/Backdrop/backdropClasses.d.ts +10 -10
  12. package/Badge/badgeClasses.d.ts +56 -56
  13. package/BottomNavigation/BottomNavigation.js +0 -0
  14. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  15. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  16. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  17. package/Button/buttonClasses.d.ts +100 -100
  18. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  19. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  20. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  21. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  22. package/CHANGELOG.md +86 -0
  23. package/Card/cardClasses.d.ts +8 -8
  24. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  25. package/CardActions/cardActionsClasses.d.ts +10 -10
  26. package/CardContent/cardContentClasses.d.ts +8 -8
  27. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  28. package/CardMedia/cardMediaClasses.d.ts +12 -12
  29. package/Checkbox/Checkbox.d.ts +3 -0
  30. package/Checkbox/Checkbox.js +3 -0
  31. package/Checkbox/checkboxClasses.d.ts +18 -18
  32. package/Chip/chipClasses.d.ts +96 -96
  33. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  34. package/ClickAwayListener/index.d.ts +2 -2
  35. package/Collapse/collapseClasses.d.ts +18 -18
  36. package/Container/containerClasses.d.ts +6 -6
  37. package/Dialog/DialogContext.d.ts +6 -6
  38. package/Dialog/dialogClasses.d.ts +36 -36
  39. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  40. package/DialogContent/dialogContentClasses.d.ts +10 -10
  41. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  42. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  43. package/Divider/dividerClasses.d.ts +34 -34
  44. package/Drawer/drawerClasses.d.ts +30 -30
  45. package/Fab/fabClasses.d.ts +26 -26
  46. package/FilledInput/filledInputClasses.d.ts +40 -40
  47. package/FormControl/FormControlContext.d.ts +17 -17
  48. package/FormControl/formControlClasses.d.ts +14 -14
  49. package/FormControl/useFormControl.d.ts +2 -2
  50. package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
  51. package/FormGroup/formGroupClasses.d.ts +12 -12
  52. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  53. package/FormLabel/FormLabel.d.ts +51 -45
  54. package/FormLabel/formLabelClasses.d.ts +22 -22
  55. package/Grid/gridClasses.d.ts +48 -48
  56. package/Icon/iconClasses.d.ts +24 -24
  57. package/IconButton/iconButtonClasses.d.ts +34 -34
  58. package/ImageList/imageListClasses.d.ts +16 -16
  59. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  60. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  61. package/Input/inputClasses.d.ts +34 -34
  62. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  63. package/InputBase/inputBaseClasses.d.ts +46 -46
  64. package/InputLabel/InputLabel.d.ts +70 -57
  65. package/InputLabel/inputLabelClasses.d.ts +32 -32
  66. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  67. package/Link/getTextDecoration.d.ts +15 -15
  68. package/Link/linkClasses.d.ts +18 -18
  69. package/List/listClasses.d.ts +14 -14
  70. package/ListItem/listItemClasses.d.ts +30 -30
  71. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  72. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  73. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  74. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  75. package/ListItemText/listItemTextClasses.d.ts +18 -18
  76. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  77. package/Menu/menuClasses.d.ts +12 -12
  78. package/MenuItem/menuItemClasses.d.ts +20 -20
  79. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  80. package/NativeSelect/nativeSelectClasses.d.ts +32 -32
  81. package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
  82. package/Pagination/paginationClasses.d.ts +14 -14
  83. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  84. package/Paper/paperClasses.d.ts +39 -39
  85. package/Popover/popoverClasses.d.ts +10 -10
  86. package/Popper/Popper.d.ts +37 -37
  87. package/Radio/Radio.js +2 -0
  88. package/Radio/radioClasses.d.ts +16 -16
  89. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  90. package/RadioGroup/useRadioGroup.d.ts +4 -4
  91. package/Rating/ratingClasses.d.ts +40 -40
  92. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  93. package/Select/selectClasses.d.ts +30 -30
  94. package/Skeleton/skeletonClasses.d.ts +26 -26
  95. package/Slider/SliderValueLabel.d.ts +15 -15
  96. package/Slider/SliderValueLabel.types.d.ts +24 -24
  97. package/Slider/sliderClasses.d.ts +58 -58
  98. package/Snackbar/snackbarClasses.d.ts +20 -20
  99. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  100. package/SpeedDial/speedDialClasses.d.ts +22 -22
  101. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  102. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  103. package/Step/StepContext.d.ts +20 -20
  104. package/Step/stepClasses.d.ts +16 -16
  105. package/StepButton/stepButtonClasses.d.ts +14 -14
  106. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  107. package/StepContent/stepContentClasses.d.ts +12 -12
  108. package/StepIcon/stepIconClasses.d.ts +16 -16
  109. package/StepLabel/stepLabelClasses.d.ts +28 -28
  110. package/Stepper/StepperContext.d.ts +18 -18
  111. package/Stepper/stepperClasses.d.ts +14 -14
  112. package/SvgIcon/svgIconClasses.d.ts +26 -26
  113. package/Switch/Switch.js +2 -0
  114. package/Switch/switchClasses.d.ts +32 -32
  115. package/Tab/tabClasses.d.ts +26 -26
  116. package/TabScrollButton/TabScrollButton.d.ts +1 -0
  117. package/TabScrollButton/TabScrollButton.js +1 -0
  118. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  119. package/Table/tableClasses.d.ts +10 -10
  120. package/TableBody/tableBodyClasses.d.ts +8 -8
  121. package/TableCell/tableCellClasses.d.ts +32 -32
  122. package/TableContainer/tableContainerClasses.d.ts +8 -8
  123. package/TableFooter/tableFooterClasses.d.ts +8 -8
  124. package/TableHead/tableHeadClasses.d.ts +8 -8
  125. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  126. package/TableRow/tableRowClasses.d.ts +16 -16
  127. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  128. package/Tabs/tabsClasses.d.ts +32 -32
  129. package/TextField/textFieldClasses.d.ts +8 -8
  130. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  131. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  132. package/Toolbar/toolbarClasses.d.ts +14 -14
  133. package/Tooltip/Tooltip.js +9 -9
  134. package/Tooltip/tooltipClasses.d.ts +30 -30
  135. package/Typography/typographyClasses.d.ts +50 -50
  136. package/Unstable_Grid2/Grid2.d.ts +4 -4
  137. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  138. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  139. package/Unstable_Grid2/index.d.ts +4 -4
  140. package/className/index.d.ts +1 -1
  141. package/darkScrollbar/index.d.ts +28 -28
  142. package/generateUtilityClass/index.d.ts +2 -2
  143. package/generateUtilityClasses/index.d.ts +1 -1
  144. package/index.js +1 -1
  145. package/internal/SwitchBase.d.ts +5 -0
  146. package/internal/SwitchBase.js +1 -1
  147. package/internal/switchBaseClasses.d.ts +12 -12
  148. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  149. package/legacy/Checkbox/Checkbox.js +3 -0
  150. package/legacy/Radio/Radio.js +2 -0
  151. package/legacy/Switch/Switch.js +2 -0
  152. package/legacy/TabScrollButton/TabScrollButton.js +1 -0
  153. package/legacy/Tooltip/Tooltip.js +9 -9
  154. package/legacy/index.js +1 -1
  155. package/legacy/internal/SwitchBase.js +2 -1
  156. package/legacy/styles/CssVarsProvider.js +3 -1
  157. package/locale/index.d.ts +75 -75
  158. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  159. package/modern/Checkbox/Checkbox.js +3 -0
  160. package/modern/Radio/Radio.js +2 -0
  161. package/modern/Switch/Switch.js +2 -0
  162. package/modern/TabScrollButton/TabScrollButton.js +1 -0
  163. package/modern/Tooltip/Tooltip.js +9 -9
  164. package/modern/index.js +1 -1
  165. package/modern/internal/SwitchBase.js +1 -1
  166. package/modern/styles/CssVarsProvider.js +3 -1
  167. package/node/BottomNavigation/BottomNavigation.js +0 -0
  168. package/node/Checkbox/Checkbox.js +3 -0
  169. package/node/Radio/Radio.js +2 -0
  170. package/node/Switch/Switch.js +2 -0
  171. package/node/TabScrollButton/TabScrollButton.js +1 -0
  172. package/node/Tooltip/Tooltip.js +9 -9
  173. package/node/index.js +1 -1
  174. package/node/internal/SwitchBase.js +1 -1
  175. package/node/styles/CssVarsProvider.js +3 -1
  176. package/package.json +5 -5
  177. package/styles/CssVarsProvider.d.ts +16 -16
  178. package/styles/CssVarsProvider.js +3 -1
  179. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  180. package/styles/getOverlayAlpha.d.ts +2 -2
  181. package/transitions/index.d.ts +1 -1
  182. package/transitions/transition.d.ts +13 -13
  183. package/transitions/utils.d.ts +23 -23
  184. package/types/OverridableComponentAugmentation.d.ts +31 -31
  185. package/umd/material-ui.development.js +59 -26
  186. package/umd/material-ui.production.min.js +4 -4
  187. package/useMediaQuery/useMediaQuery.d.ts +31 -31
  188. package/useTouchRipple/index.d.ts +1 -1
  189. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  190. package/utils/getScrollbarSize.d.ts +2 -2
  191. package/utils/ownerDocument.d.ts +2 -2
  192. package/utils/ownerWindow.d.ts +2 -2
  193. package/utils/setRef.d.ts +2 -2
@@ -1,67 +1,73 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { OverridableStringUnion } from '@mui/types';
4
- import { InternalStandardProps as StandardProps } from '..';
5
- import { FormLabelProps } from '../FormLabel';
4
+ import { FormLabelProps, ExtendFormLabelTypeMap } from '../FormLabel';
6
5
  import { Theme } from '../styles';
7
6
  import { InputLabelClasses } from './inputLabelClasses';
7
+ import { OverridableComponent, OverrideProps } from '../OverridableComponent';
8
8
 
9
9
  export interface InputLabelPropsSizeOverrides {}
10
10
 
11
- export interface InputLabelProps extends StandardProps<FormLabelProps> {
12
- /**
13
- * The content of the component.
14
- */
15
- children?: React.ReactNode;
16
- /**
17
- * Override or extend the styles applied to the component.
18
- */
19
- classes?: Partial<InputLabelClasses>;
20
- color?: FormLabelProps['color'];
21
- /**
22
- * If `true`, the transition animation is disabled.
23
- * @default false
24
- */
25
- disableAnimation?: boolean;
26
- /**
27
- * If `true`, the component is disabled.
28
- */
29
- disabled?: boolean;
30
- /**
31
- * If `true`, the label is displayed in an error state.
32
- */
33
- error?: boolean;
34
- /**
35
- * If `true`, the `input` of this label is focused.
36
- */
37
- focused?: boolean;
38
- /**
39
- * If `dense`, will adjust vertical spacing. This is normally obtained via context from
40
- * FormControl.
41
- */
42
- margin?: 'dense';
43
- /**
44
- * if `true`, the label will indicate that the `input` is required.
45
- */
46
- required?: boolean;
47
- /**
48
- * If `true`, the label is shrunk.
49
- */
50
- shrink?: boolean;
51
- /**
52
- * The size of the component.
53
- * @default 'normal'
54
- */
55
- size?: OverridableStringUnion<'small' | 'normal', InputLabelPropsSizeOverrides>;
56
- /**
57
- * The system prop that allows defining system overrides as well as additional CSS styles.
58
- */
59
- sx?: SxProps<Theme>;
60
- /**
61
- * The variant to use.
62
- */
63
- variant?: 'standard' | 'outlined' | 'filled';
64
- }
11
+ export type InputLabelTypeMap<
12
+ P = {},
13
+ D extends React.ElementType = 'label',
14
+ > = ExtendFormLabelTypeMap<{
15
+ props: P & {
16
+ /**
17
+ * The content of the component.
18
+ */
19
+ children?: React.ReactNode;
20
+ /**
21
+ * Override or extend the styles applied to the component.
22
+ */
23
+ classes?: Partial<InputLabelClasses>;
24
+ color?: FormLabelProps['color'];
25
+ /**
26
+ * If `true`, the transition animation is disabled.
27
+ * @default false
28
+ */
29
+ disableAnimation?: boolean;
30
+ /**
31
+ * If `true`, the component is disabled.
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * If `true`, the label is displayed in an error state.
36
+ */
37
+ error?: boolean;
38
+ /**
39
+ * If `true`, the `input` of this label is focused.
40
+ */
41
+ focused?: boolean;
42
+ /**
43
+ * If `dense`, will adjust vertical spacing. This is normally obtained via context from
44
+ * FormControl.
45
+ */
46
+ margin?: 'dense';
47
+ /**
48
+ * if `true`, the label will indicate that the `input` is required.
49
+ */
50
+ required?: boolean;
51
+ /**
52
+ * If `true`, the label is shrunk.
53
+ */
54
+ shrink?: boolean;
55
+ /**
56
+ * The size of the component.
57
+ * @default 'normal'
58
+ */
59
+ size?: OverridableStringUnion<'small' | 'normal', InputLabelPropsSizeOverrides>;
60
+ /**
61
+ * The system prop that allows defining system overrides as well as additional CSS styles.
62
+ */
63
+ sx?: SxProps<Theme>;
64
+ /**
65
+ * The variant to use.
66
+ */
67
+ variant?: 'standard' | 'outlined' | 'filled';
68
+ };
69
+ defaultComponent: D;
70
+ }>;
65
71
 
66
72
  /**
67
73
  *
@@ -74,4 +80,11 @@ export interface InputLabelProps extends StandardProps<FormLabelProps> {
74
80
  * - [InputLabel API](https://mui.com/material-ui/api/input-label/)
75
81
  * - inherits [FormLabel API](https://mui.com/material-ui/api/form-label/)
76
82
  */
77
- export default function InputLabel(props: InputLabelProps): JSX.Element;
83
+ declare const InputLabel: OverridableComponent<InputLabelTypeMap>;
84
+
85
+ export type InputLabelProps<
86
+ D extends React.ElementType = InputLabelTypeMap['defaultComponent'],
87
+ P = {},
88
+ > = OverrideProps<InputLabelTypeMap<P, D>, D>;
89
+
90
+ export default InputLabel;
@@ -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 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 type InputLabelClassKey = keyof InputLabelClasses;
30
+ export declare function getInputLabelUtilityClasses(slot: string): string;
31
+ declare const inputLabelClasses: InputLabelClasses;
32
+ export default inputLabelClasses;
@@ -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 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 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 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 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 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 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 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 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 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 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 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 type ListItemButtonClassKey = keyof ListItemButtonClasses;
20
+ export declare function getListItemButtonUtilityClass(slot: string): string;
21
+ declare const listItemButtonClasses: ListItemButtonClasses;
22
+ export default listItemButtonClasses;
@@ -1,10 +1,10 @@
1
- export interface ListItemIconClasses {
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 type ListItemIconClassKey = keyof ListItemIconClasses;
8
- export declare function getListItemIconUtilityClass(slot: string): string;
9
- declare const listItemIconClasses: ListItemIconClasses;
10
- export default listItemIconClasses;
1
+ export interface ListItemIconClasses {
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 type ListItemIconClassKey = keyof ListItemIconClasses;
8
+ export declare function getListItemIconUtilityClass(slot: string): string;
9
+ declare const listItemIconClasses: ListItemIconClasses;
10
+ export default listItemIconClasses;
@@ -1,10 +1,10 @@
1
- export interface ListItemSecondaryActionClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element when the parent `ListItem` has `disableGutters={true}`. */
5
- disableGutters: string;
6
- }
7
- export type ListItemSecondaryActionClassKey = keyof ListItemSecondaryActionClasses;
8
- export declare function getListItemSecondaryActionClassesUtilityClass(slot: string): string;
9
- declare const listItemSecondaryActionClasses: ListItemSecondaryActionClasses;
10
- export default listItemSecondaryActionClasses;
1
+ export interface ListItemSecondaryActionClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element when the parent `ListItem` has `disableGutters={true}`. */
5
+ disableGutters: string;
6
+ }
7
+ export type ListItemSecondaryActionClassKey = keyof ListItemSecondaryActionClasses;
8
+ export declare function getListItemSecondaryActionClassesUtilityClass(slot: string): string;
9
+ declare const listItemSecondaryActionClasses: ListItemSecondaryActionClasses;
10
+ export default listItemSecondaryActionClasses;
@@ -1,18 +1,18 @@
1
- export interface ListItemTextClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the Typography component if primary and secondary are set. */
5
- multiline: string;
6
- /** Styles applied to the Typography component if dense. */
7
- dense: string;
8
- /** Styles applied to the root element if `inset={true}`. */
9
- inset: string;
10
- /** Styles applied to the primary `Typography` component. */
11
- primary: string;
12
- /** Styles applied to the secondary `Typography` component. */
13
- secondary: string;
14
- }
15
- export type ListItemTextClassKey = keyof ListItemTextClasses;
16
- export declare function getListItemTextUtilityClass(slot: string): string;
17
- declare const listItemTextClasses: ListItemTextClasses;
18
- export default listItemTextClasses;
1
+ export interface ListItemTextClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the Typography component if primary and secondary are set. */
5
+ multiline: string;
6
+ /** Styles applied to the Typography component if dense. */
7
+ dense: string;
8
+ /** Styles applied to the root element if `inset={true}`. */
9
+ inset: string;
10
+ /** Styles applied to the primary `Typography` component. */
11
+ primary: string;
12
+ /** Styles applied to the secondary `Typography` component. */
13
+ secondary: string;
14
+ }
15
+ export type ListItemTextClassKey = keyof ListItemTextClasses;
16
+ export declare function getListItemTextUtilityClass(slot: string): string;
17
+ declare const listItemTextClasses: ListItemTextClasses;
18
+ export default listItemTextClasses;
@@ -1,18 +1,18 @@
1
- export interface ListSubheaderClasses {
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="inherit"`. */
7
- colorInherit: string;
8
- /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
9
- gutters: string;
10
- /** Styles applied to the root element if `inset={true}`. */
11
- inset: string;
12
- /** Styles applied to the root element unless `disableSticky={true}`. */
13
- sticky: string;
14
- }
15
- export type ListSubheaderClassKey = keyof ListSubheaderClasses;
16
- export declare function getListSubheaderUtilityClass(slot: string): string;
17
- declare const listSubheaderClasses: ListSubheaderClasses;
18
- export default listSubheaderClasses;
1
+ export interface ListSubheaderClasses {
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="inherit"`. */
7
+ colorInherit: string;
8
+ /** Styles applied to the inner `component` element unless `disableGutters={true}`. */
9
+ gutters: string;
10
+ /** Styles applied to the root element if `inset={true}`. */
11
+ inset: string;
12
+ /** Styles applied to the root element unless `disableSticky={true}`. */
13
+ sticky: string;
14
+ }
15
+ export type ListSubheaderClassKey = keyof ListSubheaderClasses;
16
+ export declare function getListSubheaderUtilityClass(slot: string): string;
17
+ declare const listSubheaderClasses: ListSubheaderClasses;
18
+ export default listSubheaderClasses;