@mui/material 5.14.4 → 5.14.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 (173) 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 +58 -58
  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/Badge.d.ts +135 -67
  13. package/Badge/badgeClasses.d.ts +56 -56
  14. package/BottomNavigation/BottomNavigation.js +0 -0
  15. package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
  16. package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
  17. package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
  18. package/Button/buttonClasses.d.ts +100 -100
  19. package/ButtonBase/buttonBaseClasses.d.ts +12 -12
  20. package/ButtonBase/touchRippleClasses.d.ts +20 -20
  21. package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
  22. package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
  23. package/CHANGELOG.md +74 -4
  24. package/Card/cardClasses.d.ts +8 -8
  25. package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
  26. package/CardActions/cardActionsClasses.d.ts +10 -10
  27. package/CardContent/cardContentClasses.d.ts +8 -8
  28. package/CardHeader/cardHeaderClasses.d.ts +18 -18
  29. package/CardMedia/cardMediaClasses.d.ts +12 -12
  30. package/Checkbox/checkboxClasses.d.ts +22 -22
  31. package/Chip/chipClasses.d.ts +96 -96
  32. package/CircularProgress/circularProgressClasses.d.ts +26 -26
  33. package/ClickAwayListener/index.d.ts +1 -1
  34. package/Collapse/collapseClasses.d.ts +18 -18
  35. package/Container/containerClasses.d.ts +6 -6
  36. package/Dialog/DialogContext.d.ts +6 -6
  37. package/Dialog/dialogClasses.d.ts +36 -36
  38. package/DialogActions/dialogActionsClasses.d.ts +10 -10
  39. package/DialogContent/dialogContentClasses.d.ts +10 -10
  40. package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
  41. package/DialogTitle/dialogTitleClasses.d.ts +8 -8
  42. package/Divider/dividerClasses.d.ts +34 -34
  43. package/Drawer/drawerClasses.d.ts +30 -30
  44. package/Fab/fabClasses.d.ts +26 -26
  45. package/FilledInput/filledInputClasses.d.ts +42 -42
  46. package/FormControl/FormControlContext.d.ts +17 -17
  47. package/FormControl/formControlClasses.d.ts +14 -14
  48. package/FormControl/useFormControl.d.ts +2 -2
  49. package/FormControlLabel/formControlLabelClasses.d.ts +24 -24
  50. package/FormGroup/formGroupClasses.d.ts +12 -12
  51. package/FormHelperText/formHelperTextClasses.d.ts +22 -22
  52. package/FormLabel/formLabelClasses.d.ts +22 -22
  53. package/Grid/gridClasses.d.ts +48 -48
  54. package/Icon/iconClasses.d.ts +24 -24
  55. package/IconButton/iconButtonClasses.d.ts +34 -34
  56. package/ImageList/imageListClasses.d.ts +16 -16
  57. package/ImageListItem/imageListItemClasses.d.ts +18 -18
  58. package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
  59. package/Input/inputClasses.d.ts +38 -38
  60. package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
  61. package/InputBase/inputBaseClasses.d.ts +46 -46
  62. package/InputLabel/inputLabelClasses.d.ts +32 -32
  63. package/LinearProgress/linearProgressClasses.d.ts +42 -42
  64. package/Link/getTextDecoration.d.ts +15 -15
  65. package/Link/linkClasses.d.ts +18 -18
  66. package/List/listClasses.d.ts +14 -14
  67. package/ListItem/listItemClasses.d.ts +30 -30
  68. package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
  69. package/ListItemButton/listItemButtonClasses.d.ts +22 -22
  70. package/ListItemIcon/listItemIconClasses.d.ts +10 -10
  71. package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
  72. package/ListItemText/listItemTextClasses.d.ts +18 -18
  73. package/ListSubheader/listSubheaderClasses.d.ts +18 -18
  74. package/Menu/menuClasses.d.ts +12 -12
  75. package/MenuItem/menuItemClasses.d.ts +20 -20
  76. package/MobileStepper/mobileStepperClasses.d.ts +22 -22
  77. package/Modal/index.d.ts +1 -1
  78. package/Modal/index.js +1 -1
  79. package/NativeSelect/nativeSelectClasses.d.ts +34 -34
  80. package/OutlinedInput/outlinedInputClasses.d.ts +38 -38
  81. package/Pagination/paginationClasses.d.ts +14 -14
  82. package/PaginationItem/paginationItemClasses.d.ts +42 -42
  83. package/Paper/paperClasses.d.ts +39 -39
  84. package/Popover/popoverClasses.d.ts +10 -10
  85. package/Popper/Popper.d.ts +65 -65
  86. package/Radio/radioClasses.d.ts +16 -16
  87. package/RadioGroup/RadioGroupContext.d.ts +11 -11
  88. package/RadioGroup/useRadioGroup.d.ts +4 -4
  89. package/Rating/ratingClasses.d.ts +40 -40
  90. package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
  91. package/Select/selectClasses.d.ts +32 -32
  92. package/Skeleton/skeletonClasses.d.ts +26 -26
  93. package/Slider/SliderValueLabel.d.ts +10 -10
  94. package/Slider/SliderValueLabel.types.d.ts +24 -24
  95. package/Slider/sliderClasses.d.ts +58 -58
  96. package/Snackbar/snackbarClasses.d.ts +20 -20
  97. package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
  98. package/SpeedDial/speedDialClasses.d.ts +22 -22
  99. package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
  100. package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
  101. package/Stack/stackClasses.d.ts +6 -6
  102. package/Step/StepContext.d.ts +20 -20
  103. package/Step/stepClasses.d.ts +16 -16
  104. package/StepButton/stepButtonClasses.d.ts +14 -14
  105. package/StepConnector/stepConnectorClasses.d.ts +26 -26
  106. package/StepContent/stepContentClasses.d.ts +12 -12
  107. package/StepIcon/stepIconClasses.d.ts +16 -16
  108. package/StepLabel/stepLabelClasses.d.ts +28 -28
  109. package/Stepper/StepperContext.d.ts +18 -18
  110. package/Stepper/stepperClasses.d.ts +14 -14
  111. package/SvgIcon/svgIconClasses.d.ts +26 -26
  112. package/Switch/switchClasses.d.ts +32 -32
  113. package/Tab/tabClasses.d.ts +26 -26
  114. package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
  115. package/Table/tableClasses.d.ts +10 -10
  116. package/TableBody/tableBodyClasses.d.ts +8 -8
  117. package/TableCell/tableCellClasses.d.ts +32 -32
  118. package/TableContainer/tableContainerClasses.d.ts +8 -8
  119. package/TableFooter/tableFooterClasses.d.ts +8 -8
  120. package/TableHead/tableHeadClasses.d.ts +8 -8
  121. package/TablePagination/tablePaginationClasses.d.ts +28 -28
  122. package/TableRow/tableRowClasses.d.ts +16 -16
  123. package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
  124. package/Tabs/tabsClasses.d.ts +32 -32
  125. package/TextField/TextField.js +11 -2
  126. package/TextField/textFieldClasses.d.ts +8 -8
  127. package/ToggleButton/toggleButtonClasses.d.ts +24 -24
  128. package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
  129. package/Toolbar/toolbarClasses.d.ts +14 -14
  130. package/Tooltip/tooltipClasses.d.ts +30 -30
  131. package/Typography/typographyClasses.d.ts +50 -50
  132. package/Unstable_Grid2/Grid2.d.ts +4 -4
  133. package/Unstable_Grid2/Grid2Props.d.ts +15 -15
  134. package/Unstable_Grid2/grid2Classes.d.ts +5 -5
  135. package/Unstable_Grid2/index.d.ts +4 -4
  136. package/className/index.d.ts +1 -1
  137. package/darkScrollbar/index.d.ts +28 -28
  138. package/generateUtilityClass/index.d.ts +2 -2
  139. package/generateUtilityClasses/index.d.ts +1 -1
  140. package/index.js +1 -1
  141. package/internal/switchBaseClasses.d.ts +12 -12
  142. package/legacy/BottomNavigation/BottomNavigation.js +0 -0
  143. package/legacy/Modal/index.js +1 -1
  144. package/legacy/TextField/TextField.js +11 -2
  145. package/legacy/index.js +1 -1
  146. package/locale/index.d.ts +80 -80
  147. package/modern/BottomNavigation/BottomNavigation.js +0 -0
  148. package/modern/Modal/index.js +1 -1
  149. package/modern/TextField/TextField.js +11 -2
  150. package/modern/index.js +1 -1
  151. package/node/BottomNavigation/BottomNavigation.js +0 -0
  152. package/node/Modal/index.js +7 -7
  153. package/node/TextField/TextField.js +11 -2
  154. package/node/index.js +1 -1
  155. package/package.json +5 -5
  156. package/styles/CssVarsProvider.d.ts +20 -20
  157. package/styles/excludeVariablesFromRoot.d.ts +5 -5
  158. package/styles/getOverlayAlpha.d.ts +2 -2
  159. package/styles/identifier.d.ts +2 -2
  160. package/styles/shouldSkipGeneratingVar.d.ts +1 -1
  161. package/transitions/index.d.ts +1 -1
  162. package/transitions/transition.d.ts +13 -13
  163. package/transitions/utils.d.ts +23 -23
  164. package/types/OverridableComponentAugmentation.d.ts +31 -31
  165. package/umd/material-ui.development.js +217 -127
  166. package/umd/material-ui.production.min.js +18 -18
  167. package/useMediaQuery/useMediaQuery.d.ts +46 -46
  168. package/useTouchRipple/index.d.ts +1 -1
  169. package/useTouchRipple/useTouchRipple.d.ts +28 -28
  170. package/utils/getScrollbarSize.d.ts +2 -2
  171. package/utils/ownerDocument.d.ts +2 -2
  172. package/utils/ownerWindow.d.ts +2 -2
  173. package/utils/setRef.d.ts +2 -2
package/Badge/Badge.d.ts CHANGED
@@ -1,90 +1,158 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
- import { OverridableStringUnion } from '@mui/types';
4
- import { BadgeTypeMap as BaseBadgeTypeMap, ExtendBadgeTypeMap } from '@mui/base/Badge';
3
+ import { OverridableStringUnion, Simplify } from '@mui/types';
4
+ import { SlotComponentProps } from '@mui/base/utils';
5
5
  import { Theme } from '../styles';
6
6
  import { OverridableComponent, OverrideProps } from '../OverridableComponent';
7
7
  import { BadgeClasses } from './badgeClasses';
8
8
 
9
9
  export interface BadgePropsVariantOverrides {}
10
-
11
10
  export interface BadgePropsColorOverrides {}
11
+ export interface BadgeRootSlotPropsOverrides {}
12
+ export interface BadgeBadgeSlotPropsOverrides {}
13
+
14
+ export type BadgeOwnerState = Simplify<
15
+ BadgeOwnProps & {
16
+ badgeContent: React.ReactNode;
17
+ invisible: boolean;
18
+ max: number;
19
+ displayValue: React.ReactNode;
20
+ showZero: boolean;
21
+ anchorOrigin: BadgeOrigin;
22
+ color: OverridableStringUnion<
23
+ 'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning',
24
+ BadgePropsColorOverrides
25
+ >;
26
+ overlap: 'rectangular' | 'circular';
27
+ variant: OverridableStringUnion<'standard' | 'dot', BadgePropsVariantOverrides>;
28
+ }
29
+ >;
12
30
 
13
31
  export interface BadgeOrigin {
14
32
  vertical: 'top' | 'bottom';
15
33
  horizontal: 'left' | 'right';
16
34
  }
17
35
 
18
- export type BadgeTypeMap<
19
- DefaultComponent extends React.ElementType = 'span',
20
- AdditionalProps = {},
21
- > = ExtendBadgeTypeMap<{
22
- props: AdditionalProps & {
23
- /**
24
- * The anchor of the badge.
25
- * @default {
26
- * vertical: 'top',
27
- * horizontal: 'right',
28
- * }
29
- */
30
- anchorOrigin?: BadgeOrigin;
31
- /**
32
- * Override or extend the styles applied to the component.
33
- */
34
- classes?: Partial<BadgeClasses>;
35
- /**
36
- * @ignore
37
- */
38
- className?: string;
39
- /**
40
- * The color of the component.
41
- * It supports both default and custom theme colors, which can be added as shown in the
42
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
43
- * @default 'default'
44
- */
45
- color?: OverridableStringUnion<
46
- 'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning',
47
- BadgePropsColorOverrides
48
- >;
49
- /**
50
- * The extra props for the slot components.
51
- * You can override the existing props or add new ones.
52
- *
53
- * This prop is an alias for the `slotProps` prop.
54
- * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
55
- *
56
- * @default {}
57
- */
58
- componentsProps?: BaseBadgeTypeMap['props']['slotProps'];
59
- /**
60
- * The components used for each slot inside.
61
- *
62
- * This prop is an alias for the `slots` prop.
63
- * It's recommended to use the `slots` prop instead.
64
- *
65
- * @default {}
66
- */
67
- components?: {
68
- Root?: React.ElementType;
69
- Badge?: React.ElementType;
70
- };
71
- /**
72
- * Wrapped shape the badge should overlap.
73
- * @default 'rectangular'
74
- */
75
- overlap?: 'rectangular' | 'circular';
36
+ export interface BadgeOwnProps {
37
+ /**
38
+ * The anchor of the badge.
39
+ * @default {
40
+ * vertical: 'top',
41
+ * horizontal: 'right',
42
+ * }
43
+ */
44
+ anchorOrigin?: BadgeOrigin;
45
+ /**
46
+ * The content rendered within the badge.
47
+ */
48
+ badgeContent?: React.ReactNode;
49
+ /**
50
+ * The badge will be added relative to this node.
51
+ */
52
+ children?: React.ReactNode;
53
+ /**
54
+ * Override or extend the styles applied to the component.
55
+ */
56
+ classes?: Partial<BadgeClasses>;
57
+ /**
58
+ * @ignore
59
+ */
60
+ className?: string;
61
+ /**
62
+ * The color of the component.
63
+ * It supports both default and custom theme colors, which can be added as shown in the
64
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
65
+ * @default 'default'
66
+ */
67
+ color?: OverridableStringUnion<
68
+ 'primary' | 'secondary' | 'default' | 'error' | 'info' | 'success' | 'warning',
69
+ BadgePropsColorOverrides
70
+ >;
71
+ /**
72
+ * The extra props for the slot components.
73
+ * You can override the existing props or add new ones.
74
+ *
75
+ * This prop is an alias for the `slotProps` prop.
76
+ * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
77
+ *
78
+ * @default {}
79
+ */
80
+ componentsProps?: BadgeOwnProps['slotProps'];
81
+ /**
82
+ * The components used for each slot inside.
83
+ *
84
+ * This prop is an alias for the `slots` prop.
85
+ * It's recommended to use the `slots` prop instead.
86
+ *
87
+ * @default {}
88
+ */
89
+ components?: {
90
+ Root?: React.ElementType;
91
+ Badge?: React.ElementType;
92
+ };
93
+ /**
94
+ * If `true`, the badge is invisible.
95
+ * @default false
96
+ */
97
+ invisible?: boolean;
98
+ /**
99
+ * Max count to show.
100
+ * @default 99
101
+ */
102
+ max?: number;
103
+ /**
104
+ * Wrapped shape the badge should overlap.
105
+ * @default 'rectangular'
106
+ */
107
+ overlap?: 'rectangular' | 'circular';
108
+ /**
109
+ * The props used for each slot inside the Badge.
110
+ * @default {}
111
+ */
112
+ slotProps?: {
113
+ root?: SlotComponentProps<'span', BadgeRootSlotPropsOverrides, BadgeOwnerState>;
114
+ badge?: SlotComponentProps<'span', BadgeBadgeSlotPropsOverrides, BadgeOwnerState>;
115
+ };
116
+ /**
117
+ * The components used for each slot inside the Badge.
118
+ * Either a string to use a HTML element or a component.
119
+ * @default {}
120
+ */
121
+ slots?: {
76
122
  /**
77
- * The system prop that allows defining system overrides as well as additional CSS styles.
123
+ * The component that renders the root.
124
+ * @default 'span'
78
125
  */
79
- sx?: SxProps<Theme>;
126
+ root?: React.ElementType;
80
127
  /**
81
- * The variant to use.
82
- * @default 'standard'
128
+ * The component that renders the badge.
129
+ * @default 'span'
83
130
  */
84
- variant?: OverridableStringUnion<'standard' | 'dot', BadgePropsVariantOverrides>;
131
+ badge?: React.ElementType;
85
132
  };
133
+ /**
134
+ * Controls whether the badge is hidden when `badgeContent` is zero.
135
+ * @default false
136
+ */
137
+ showZero?: boolean;
138
+ /**
139
+ * The system prop that allows defining system overrides as well as additional CSS styles.
140
+ */
141
+ sx?: SxProps<Theme>;
142
+ /**
143
+ * The variant to use.
144
+ * @default 'standard'
145
+ */
146
+ variant?: OverridableStringUnion<'standard' | 'dot', BadgePropsVariantOverrides>;
147
+ }
148
+
149
+ export interface BadgeTypeMap<
150
+ DefaultComponent extends React.ElementType = 'span',
151
+ AdditionalProps = {},
152
+ > {
153
+ props: AdditionalProps & BadgeOwnProps;
86
154
  defaultComponent: DefaultComponent;
87
- }>;
155
+ }
88
156
 
89
157
  type BadgeRootProps = NonNullable<BadgeTypeMap['props']['slotProps']>['root'];
90
158
  type BadgeBadgeProps = NonNullable<BadgeTypeMap['props']['slotProps']>['badge'];
@@ -1,56 +1,56 @@
1
- export interface BadgeClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the badge `span` element. */
5
- badge: string;
6
- /** Styles applied to the badge `span` element if `variant="dot"`. */
7
- dot: string;
8
- /** Styles applied to the badge `span` element if `variant="standard"`. */
9
- standard: string;
10
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }}`. */
11
- anchorOriginTopRight: string;
12
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }}`. */
13
- anchorOriginBottomRight: string;
14
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }}`. */
15
- anchorOriginTopLeft: string;
16
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }}`. */
17
- anchorOriginBottomLeft: string;
18
- /** State class applied to the badge `span` element if `invisible={true}`. */
19
- invisible: string;
20
- /** Styles applied to the badge `span` element if `color="primary"`. */
21
- colorPrimary: string;
22
- /** Styles applied to the badge `span` element if `color="secondary"`. */
23
- colorSecondary: string;
24
- /** Styles applied to the badge `span` element if `color="error"`. */
25
- colorError: string;
26
- /** Styles applied to the badge `span` element if `color="info"`. */
27
- colorInfo: string;
28
- /** Styles applied to the badge `span` element if `color="success"`. */
29
- colorSuccess: string;
30
- /** Styles applied to the badge `span` element if `color="warning"`. */
31
- colorWarning: string;
32
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
33
- anchorOriginTopRightRectangular: string;
34
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
35
- anchorOriginBottomRightRectangular: string;
36
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
37
- anchorOriginTopLeftRectangular: string;
38
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
39
- anchorOriginBottomLeftRectangular: string;
40
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
41
- anchorOriginTopRightCircular: string;
42
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
43
- anchorOriginBottomRightCircular: string;
44
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
45
- anchorOriginTopLeftCircular: string;
46
- /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
47
- anchorOriginBottomLeftCircular: string;
48
- /** Styles applied to the badge `span` element if `overlap="rectangular"`. */
49
- overlapRectangular: string;
50
- /** Styles applied to the badge `span` element if `overlap="circular"`. */
51
- overlapCircular: string;
52
- }
53
- export type BadgeClassKey = keyof BadgeClasses;
54
- export declare function getBadgeUtilityClass(slot: string): string;
55
- declare const badgeClasses: BadgeClasses;
56
- export default badgeClasses;
1
+ export interface BadgeClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the badge `span` element. */
5
+ badge: string;
6
+ /** Styles applied to the badge `span` element if `variant="dot"`. */
7
+ dot: string;
8
+ /** Styles applied to the badge `span` element if `variant="standard"`. */
9
+ standard: string;
10
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }}`. */
11
+ anchorOriginTopRight: string;
12
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }}`. */
13
+ anchorOriginBottomRight: string;
14
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }}`. */
15
+ anchorOriginTopLeft: string;
16
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }}`. */
17
+ anchorOriginBottomLeft: string;
18
+ /** State class applied to the badge `span` element if `invisible={true}`. */
19
+ invisible: string;
20
+ /** Styles applied to the badge `span` element if `color="primary"`. */
21
+ colorPrimary: string;
22
+ /** Styles applied to the badge `span` element if `color="secondary"`. */
23
+ colorSecondary: string;
24
+ /** Styles applied to the badge `span` element if `color="error"`. */
25
+ colorError: string;
26
+ /** Styles applied to the badge `span` element if `color="info"`. */
27
+ colorInfo: string;
28
+ /** Styles applied to the badge `span` element if `color="success"`. */
29
+ colorSuccess: string;
30
+ /** Styles applied to the badge `span` element if `color="warning"`. */
31
+ colorWarning: string;
32
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
33
+ anchorOriginTopRightRectangular: string;
34
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
35
+ anchorOriginBottomRightRectangular: string;
36
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
37
+ anchorOriginTopLeftRectangular: string;
38
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
39
+ anchorOriginBottomLeftRectangular: string;
40
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
41
+ anchorOriginTopRightCircular: string;
42
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
43
+ anchorOriginBottomRightCircular: string;
44
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
45
+ anchorOriginTopLeftCircular: string;
46
+ /** Styles applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
47
+ anchorOriginBottomLeftCircular: string;
48
+ /** Styles applied to the badge `span` element if `overlap="rectangular"`. */
49
+ overlapRectangular: string;
50
+ /** Styles applied to the badge `span` element if `overlap="circular"`. */
51
+ overlapCircular: string;
52
+ }
53
+ export type BadgeClassKey = keyof BadgeClasses;
54
+ export declare function getBadgeUtilityClass(slot: string): string;
55
+ declare const badgeClasses: BadgeClasses;
56
+ export default badgeClasses;
File without changes
@@ -1,8 +1,8 @@
1
- export interface BottomNavigationClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- }
5
- export type BottomNavigationClassKey = keyof BottomNavigationClasses;
6
- export declare function getBottomNavigationUtilityClass(slot: string): string;
7
- declare const bottomNavigationClasses: BottomNavigationClasses;
8
- export default bottomNavigationClasses;
1
+ export interface BottomNavigationClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ }
5
+ export type BottomNavigationClassKey = keyof BottomNavigationClasses;
6
+ export declare function getBottomNavigationUtilityClass(slot: string): string;
7
+ declare const bottomNavigationClasses: BottomNavigationClasses;
8
+ export default bottomNavigationClasses;
@@ -1,14 +1,14 @@
1
- export interface BottomNavigationActionClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** State class applied to the root element if selected. */
5
- selected: string;
6
- /** State class applied to the root element if `showLabel={false}` and not selected. */
7
- iconOnly: string;
8
- /** Styles applied to the label's span element. */
9
- label: string;
10
- }
11
- export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
12
- export declare function getBottomNavigationActionUtilityClass(slot: string): string;
13
- declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
14
- export default bottomNavigationActionClasses;
1
+ export interface BottomNavigationActionClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** State class applied to the root element if selected. */
5
+ selected: string;
6
+ /** State class applied to the root element if `showLabel={false}` and not selected. */
7
+ iconOnly: string;
8
+ /** Styles applied to the label's span element. */
9
+ label: string;
10
+ }
11
+ export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
12
+ export declare function getBottomNavigationActionUtilityClass(slot: string): string;
13
+ declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
14
+ export default bottomNavigationActionClasses;
@@ -1,14 +1,14 @@
1
- export interface BreadcrumbsClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the ol element. */
5
- ol: string;
6
- /** Styles applied to the li element. */
7
- li: string;
8
- /** Styles applied to the separator element. */
9
- separator: string;
10
- }
11
- export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
12
- export declare function getBreadcrumbsUtilityClass(slot: string): string;
13
- declare const breadcrumbsClasses: BreadcrumbsClasses;
14
- export default breadcrumbsClasses;
1
+ export interface BreadcrumbsClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the ol element. */
5
+ ol: string;
6
+ /** Styles applied to the li element. */
7
+ li: string;
8
+ /** Styles applied to the separator element. */
9
+ separator: string;
10
+ }
11
+ export type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
12
+ export declare function getBreadcrumbsUtilityClass(slot: string): string;
13
+ declare const breadcrumbsClasses: BreadcrumbsClasses;
14
+ export default breadcrumbsClasses;
@@ -1,100 +1,100 @@
1
- export interface ButtonClasses {
2
- /** Styles applied to the root element. */
3
- root: string;
4
- /** Styles applied to the root element if `variant="text"`. */
5
- text: string;
6
- /** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
7
- textInherit: string;
8
- /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
9
- textPrimary: string;
10
- /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11
- textSecondary: string;
12
- /** Styles applied to the root element if `variant="text"` and `color="success"`. */
13
- textSuccess: string;
14
- /** Styles applied to the root element if `variant="text"` and `color="error"`. */
15
- textError: string;
16
- /** Styles applied to the root element if `variant="text"` and `color="info"`. */
17
- textInfo: string;
18
- /** Styles applied to the root element if `variant="text"` and `color="warning"`. */
19
- textWarning: string;
20
- /** Styles applied to the root element if `variant="outlined"`. */
21
- outlined: string;
22
- /** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
23
- outlinedInherit: string;
24
- /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
25
- outlinedPrimary: string;
26
- /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
27
- outlinedSecondary: string;
28
- /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
29
- outlinedSuccess: string;
30
- /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
31
- outlinedError: string;
32
- /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
33
- outlinedInfo: string;
34
- /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
35
- outlinedWarning: string;
36
- /** Styles applied to the root element if `variant="contained"`. */
37
- contained: string;
38
- /** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
39
- containedInherit: string;
40
- /** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
41
- containedPrimary: string;
42
- /** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
43
- containedSecondary: string;
44
- /** Styles applied to the root element if `variant="contained"` and `color="success"`. */
45
- containedSuccess: string;
46
- /** Styles applied to the root element if `variant="contained"` and `color="info"`. */
47
- containedInfo: string;
48
- /** Styles applied to the root element if `variant="contained"` and `color="error"`. */
49
- containedError: string;
50
- /** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
51
- containedWarning: string;
52
- /** Styles applied to the root element if `disableElevation={true}`. */
53
- disableElevation: string;
54
- /** State class applied to the ButtonBase root element if the button is keyboard focused. */
55
- focusVisible: string;
56
- /** State class applied to the root element if `disabled={true}`. */
57
- disabled: string;
58
- /** Styles applied to the root element if `color="inherit"`. */
59
- colorInherit: string;
60
- /** Styles applied to the root element if `size="small"` and `variant="text"`. */
61
- textSizeSmall: string;
62
- /** Styles applied to the root element if `size="medium"` and `variant="text"`. */
63
- textSizeMedium: string;
64
- /** Styles applied to the root element if `size="large"` and `variant="text"`. */
65
- textSizeLarge: string;
66
- /** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
67
- outlinedSizeSmall: string;
68
- /** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
69
- outlinedSizeMedium: string;
70
- /** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
71
- outlinedSizeLarge: string;
72
- /** Styles applied to the root element if `size="small"` and `variant="contained"`. */
73
- containedSizeSmall: string;
74
- /** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
75
- containedSizeMedium: string;
76
- /** Styles applied to the root element if `size="large"` and `variant="contained"`. */
77
- containedSizeLarge: string;
78
- /** Styles applied to the root element if `size="small"`. */
79
- sizeSmall: string;
80
- /** Styles applied to the root element if `size="medium"`. */
81
- sizeMedium: string;
82
- /** Styles applied to the root element if `size="large"`. */
83
- sizeLarge: string;
84
- /** Styles applied to the root element if `fullWidth={true}`. */
85
- fullWidth: string;
86
- /** Styles applied to the startIcon element if supplied. */
87
- startIcon: string;
88
- /** Styles applied to the endIcon element if supplied. */
89
- endIcon: string;
90
- /** Styles applied to the icon element if supplied and `size="small"`. */
91
- iconSizeSmall: string;
92
- /** Styles applied to the icon element if supplied and `size="medium"`. */
93
- iconSizeMedium: string;
94
- /** Styles applied to the icon element if supplied and `size="large"`. */
95
- iconSizeLarge: string;
96
- }
97
- export type ButtonClassKey = keyof ButtonClasses;
98
- export declare function getButtonUtilityClass(slot: string): string;
99
- declare const buttonClasses: ButtonClasses;
100
- export default buttonClasses;
1
+ export interface ButtonClasses {
2
+ /** Styles applied to the root element. */
3
+ root: string;
4
+ /** Styles applied to the root element if `variant="text"`. */
5
+ text: string;
6
+ /** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
7
+ textInherit: string;
8
+ /** Styles applied to the root element if `variant="text"` and `color="primary"`. */
9
+ textPrimary: string;
10
+ /** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
11
+ textSecondary: string;
12
+ /** Styles applied to the root element if `variant="text"` and `color="success"`. */
13
+ textSuccess: string;
14
+ /** Styles applied to the root element if `variant="text"` and `color="error"`. */
15
+ textError: string;
16
+ /** Styles applied to the root element if `variant="text"` and `color="info"`. */
17
+ textInfo: string;
18
+ /** Styles applied to the root element if `variant="text"` and `color="warning"`. */
19
+ textWarning: string;
20
+ /** Styles applied to the root element if `variant="outlined"`. */
21
+ outlined: string;
22
+ /** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
23
+ outlinedInherit: string;
24
+ /** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
25
+ outlinedPrimary: string;
26
+ /** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
27
+ outlinedSecondary: string;
28
+ /** Styles applied to the root element if `variant="outlined"` and `color="success"`. */
29
+ outlinedSuccess: string;
30
+ /** Styles applied to the root element if `variant="outlined"` and `color="error"`. */
31
+ outlinedError: string;
32
+ /** Styles applied to the root element if `variant="outlined"` and `color="info"`. */
33
+ outlinedInfo: string;
34
+ /** Styles applied to the root element if `variant="outlined"` and `color="warning"`. */
35
+ outlinedWarning: string;
36
+ /** Styles applied to the root element if `variant="contained"`. */
37
+ contained: string;
38
+ /** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
39
+ containedInherit: string;
40
+ /** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
41
+ containedPrimary: string;
42
+ /** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
43
+ containedSecondary: string;
44
+ /** Styles applied to the root element if `variant="contained"` and `color="success"`. */
45
+ containedSuccess: string;
46
+ /** Styles applied to the root element if `variant="contained"` and `color="info"`. */
47
+ containedInfo: string;
48
+ /** Styles applied to the root element if `variant="contained"` and `color="error"`. */
49
+ containedError: string;
50
+ /** Styles applied to the root element if `variant="contained"` and `color="warning"`. */
51
+ containedWarning: string;
52
+ /** Styles applied to the root element if `disableElevation={true}`. */
53
+ disableElevation: string;
54
+ /** State class applied to the ButtonBase root element if the button is keyboard focused. */
55
+ focusVisible: string;
56
+ /** State class applied to the root element if `disabled={true}`. */
57
+ disabled: string;
58
+ /** Styles applied to the root element if `color="inherit"`. */
59
+ colorInherit: string;
60
+ /** Styles applied to the root element if `size="small"` and `variant="text"`. */
61
+ textSizeSmall: string;
62
+ /** Styles applied to the root element if `size="medium"` and `variant="text"`. */
63
+ textSizeMedium: string;
64
+ /** Styles applied to the root element if `size="large"` and `variant="text"`. */
65
+ textSizeLarge: string;
66
+ /** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
67
+ outlinedSizeSmall: string;
68
+ /** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
69
+ outlinedSizeMedium: string;
70
+ /** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
71
+ outlinedSizeLarge: string;
72
+ /** Styles applied to the root element if `size="small"` and `variant="contained"`. */
73
+ containedSizeSmall: string;
74
+ /** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
75
+ containedSizeMedium: string;
76
+ /** Styles applied to the root element if `size="large"` and `variant="contained"`. */
77
+ containedSizeLarge: string;
78
+ /** Styles applied to the root element if `size="small"`. */
79
+ sizeSmall: string;
80
+ /** Styles applied to the root element if `size="medium"`. */
81
+ sizeMedium: string;
82
+ /** Styles applied to the root element if `size="large"`. */
83
+ sizeLarge: string;
84
+ /** Styles applied to the root element if `fullWidth={true}`. */
85
+ fullWidth: string;
86
+ /** Styles applied to the startIcon element if supplied. */
87
+ startIcon: string;
88
+ /** Styles applied to the endIcon element if supplied. */
89
+ endIcon: string;
90
+ /** Styles applied to the icon element if supplied and `size="small"`. */
91
+ iconSizeSmall: string;
92
+ /** Styles applied to the icon element if supplied and `size="medium"`. */
93
+ iconSizeMedium: string;
94
+ /** Styles applied to the icon element if supplied and `size="large"`. */
95
+ iconSizeLarge: string;
96
+ }
97
+ export type ButtonClassKey = keyof ButtonClasses;
98
+ export declare function getButtonUtilityClass(slot: string): string;
99
+ declare const buttonClasses: ButtonClasses;
100
+ export default buttonClasses;