@mui/material 5.11.3 → 5.11.4
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.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.d.ts +1 -0
- package/Autocomplete/Autocomplete.js +1 -0
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/badgeClasses.d.ts +56 -56
- package/BottomNavigation/BottomNavigation.js +0 -0
- package/BottomNavigation/bottomNavigationClasses.d.ts +8 -8
- package/BottomNavigationAction/bottomNavigationActionClasses.d.ts +14 -14
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +48 -0
- package/Card/cardClasses.d.ts +8 -8
- package/CardActionArea/cardActionAreaClasses.d.ts +12 -12
- package/CardActions/cardActionsClasses.d.ts +10 -10
- package/CardContent/cardContentClasses.d.ts +8 -8
- package/CardHeader/cardHeaderClasses.d.ts +18 -18
- package/CardMedia/cardMediaClasses.d.ts +12 -12
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -96
- package/CircularProgress/circularProgressClasses.d.ts +26 -26
- package/ClickAwayListener/index.d.ts +2 -2
- package/Collapse/collapseClasses.d.ts +18 -18
- package/Container/containerClasses.d.ts +6 -6
- package/Dialog/DialogContext.d.ts +6 -6
- package/Dialog/dialogClasses.d.ts +36 -36
- package/DialogActions/dialogActionsClasses.d.ts +10 -10
- package/DialogContent/dialogContentClasses.d.ts +10 -10
- package/DialogContentText/dialogContentTextClasses.d.ts +8 -8
- package/DialogTitle/dialogTitleClasses.d.ts +8 -8
- package/Divider/dividerClasses.d.ts +34 -34
- package/Drawer/drawerClasses.d.ts +30 -30
- package/Fab/fabClasses.d.ts +26 -26
- package/FilledInput/FilledInput.js +0 -4
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/Input.js +1 -5
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/listItemButtonClasses.d.ts +22 -22
- package/ListItemIcon/listItemIconClasses.d.ts +10 -10
- package/ListItemSecondaryAction/listItemSecondaryActionClasses.d.ts +10 -10
- package/ListItemText/listItemTextClasses.d.ts +18 -18
- package/ListSubheader/listSubheaderClasses.d.ts +18 -18
- package/Menu/menuClasses.d.ts +12 -12
- package/MenuItem/MenuItem.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -1
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +35 -12
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +37 -37
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroupContext.d.ts +11 -11
- package/RadioGroup/useRadioGroup.d.ts +4 -4
- package/Rating/ratingClasses.d.ts +40 -40
- package/ScopedCssBaseline/scopedCssBaselineClasses.d.ts +8 -8
- package/Select/Select.d.ts +25 -83
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Snackbar/snackbarClasses.d.ts +20 -20
- package/SnackbarContent/snackbarContentClasses.d.ts +12 -12
- package/SpeedDial/speedDialClasses.d.ts +22 -22
- package/SpeedDialAction/speedDialActionClasses.d.ts +20 -20
- package/SpeedDialIcon/speedDialIconClasses.d.ts +18 -18
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/tabScrollButtonClasses.d.ts +12 -12
- package/Table/tableClasses.d.ts +10 -10
- package/TableBody/tableBodyClasses.d.ts +8 -8
- package/TableCell/tableCellClasses.d.ts +32 -32
- package/TableContainer/tableContainerClasses.d.ts +8 -8
- package/TableFooter/tableFooterClasses.d.ts +8 -8
- package/TableHead/tableHeadClasses.d.ts +8 -8
- package/TablePagination/tablePaginationClasses.d.ts +28 -28
- package/TableRow/tableRowClasses.d.ts +16 -16
- package/TableSortLabel/tableSortLabelClasses.d.ts +16 -16
- package/Tabs/Tabs.js +3 -1
- package/Tabs/tabsClasses.d.ts +32 -32
- package/TextField/textFieldClasses.d.ts +8 -8
- package/ToggleButton/toggleButtonClasses.d.ts +24 -24
- package/ToggleButtonGroup/toggleButtonGroupClasses.d.ts +18 -18
- package/Toolbar/toolbarClasses.d.ts +14 -14
- package/Tooltip/Tooltip.js +0 -1
- package/Tooltip/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +3 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +1 -0
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/FilledInput/FilledInput.js +0 -3
- package/legacy/Input/Input.js +1 -4
- package/legacy/MenuItem/MenuItem.js +2 -1
- package/legacy/Tabs/Tabs.js +3 -1
- package/legacy/Tooltip/Tooltip.js +0 -1
- package/legacy/index.js +3 -1
- package/locale/index.d.ts +74 -74
- package/modern/Autocomplete/Autocomplete.js +1 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/FilledInput/FilledInput.js +0 -4
- package/modern/Input/Input.js +1 -5
- package/modern/MenuItem/MenuItem.js +2 -1
- package/modern/Tabs/Tabs.js +3 -1
- package/modern/Tooltip/Tooltip.js +0 -1
- package/modern/index.js +3 -1
- package/node/Autocomplete/Autocomplete.js +1 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/FilledInput/FilledInput.js +0 -4
- package/node/Input/Input.js +1 -5
- package/node/MenuItem/MenuItem.js +2 -1
- package/node/Tabs/Tabs.js +3 -1
- package/node/Tooltip/Tooltip.js +0 -1
- package/node/index.js +3 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +16 -16
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +27 -18
- package/umd/material-ui.production.min.js +7 -5
- package/useMediaQuery/useMediaQuery.d.ts +31 -31
- package/useTouchRipple/index.d.ts +1 -1
- package/useTouchRipple/useTouchRipple.d.ts +28 -28
- package/utils/getScrollbarSize.d.ts +2 -2
- package/utils/ownerDocument.d.ts +2 -2
- package/utils/ownerWindow.d.ts +2 -2
- package/utils/setRef.d.ts +2 -2
package/Select/Select.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { OutlinedInputProps } from '../OutlinedInput';
|
|
|
9
9
|
|
|
10
10
|
export { SelectChangeEvent };
|
|
11
11
|
|
|
12
|
-
interface
|
|
12
|
+
export interface SelectProps<T = unknown>
|
|
13
13
|
extends StandardProps<InputProps, 'value' | 'onChange'>,
|
|
14
14
|
Omit<OutlinedInputProps, 'value' | 'onChange'>,
|
|
15
15
|
Pick<SelectInputProps<T>, 'onChange'> {
|
|
@@ -41,6 +41,17 @@ interface CommonProps<T>
|
|
|
41
41
|
* The default value. Use when the component is not controlled.
|
|
42
42
|
*/
|
|
43
43
|
defaultValue?: T;
|
|
44
|
+
/**
|
|
45
|
+
* If `true`, a value is displayed even if no items are selected.
|
|
46
|
+
*
|
|
47
|
+
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
48
|
+
* returns the value to be displayed when no items are selected.
|
|
49
|
+
*
|
|
50
|
+
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
51
|
+
* The label should either be hidden or forced to a shrunk state.
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
displayEmpty?: boolean;
|
|
44
55
|
/**
|
|
45
56
|
* The icon that displays the arrow.
|
|
46
57
|
* @default ArrowDropDownIcon
|
|
@@ -72,6 +83,11 @@ interface CommonProps<T>
|
|
|
72
83
|
* Props applied to the [`Menu`](/material-ui/api/menu/) element.
|
|
73
84
|
*/
|
|
74
85
|
MenuProps?: Partial<MenuProps>;
|
|
86
|
+
/**
|
|
87
|
+
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
multiple?: boolean;
|
|
75
91
|
/**
|
|
76
92
|
* If `true`, the component uses a native `select` element.
|
|
77
93
|
* @default false
|
|
@@ -105,6 +121,14 @@ interface CommonProps<T>
|
|
|
105
121
|
* You can only use it when the `native` prop is `false` (default).
|
|
106
122
|
*/
|
|
107
123
|
open?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Render the selected value.
|
|
126
|
+
* You can only use it when the `native` prop is `false` (default).
|
|
127
|
+
*
|
|
128
|
+
* @param {any} value The `value` provided to the component.
|
|
129
|
+
* @returns {ReactNode}
|
|
130
|
+
*/
|
|
131
|
+
renderValue?: (value: T) => React.ReactNode;
|
|
108
132
|
/**
|
|
109
133
|
* Props applied to the clickable div element.
|
|
110
134
|
*/
|
|
@@ -128,88 +152,6 @@ interface CommonProps<T>
|
|
|
128
152
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
129
153
|
}
|
|
130
154
|
|
|
131
|
-
type ConditionalRenderValueType<T> =
|
|
132
|
-
| {
|
|
133
|
-
/**
|
|
134
|
-
* If `true`, a value is displayed even if no items are selected.
|
|
135
|
-
*
|
|
136
|
-
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
137
|
-
* returns the value to be displayed when no items are selected.
|
|
138
|
-
*
|
|
139
|
-
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
140
|
-
* The label should either be hidden or forced to a shrunk state.
|
|
141
|
-
* @default false
|
|
142
|
-
*/
|
|
143
|
-
displayEmpty?: false;
|
|
144
|
-
/**
|
|
145
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
146
|
-
* @default false
|
|
147
|
-
*/
|
|
148
|
-
multiple?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Render the selected value.
|
|
151
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
152
|
-
*
|
|
153
|
-
* @param {any} value The `value` provided to the component.
|
|
154
|
-
* @returns {ReactNode}
|
|
155
|
-
*/
|
|
156
|
-
renderValue?: (value: T) => React.ReactNode;
|
|
157
|
-
}
|
|
158
|
-
| {
|
|
159
|
-
/**
|
|
160
|
-
* If `true`, a value is displayed even if no items are selected.
|
|
161
|
-
*
|
|
162
|
-
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
163
|
-
* returns the value to be displayed when no items are selected.
|
|
164
|
-
*
|
|
165
|
-
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
166
|
-
* The label should either be hidden or forced to a shrunk state.
|
|
167
|
-
* @default false
|
|
168
|
-
*/
|
|
169
|
-
displayEmpty: true;
|
|
170
|
-
/**
|
|
171
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
172
|
-
* @default false
|
|
173
|
-
*/
|
|
174
|
-
multiple?: false;
|
|
175
|
-
/**
|
|
176
|
-
* Render the selected value.
|
|
177
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
178
|
-
*
|
|
179
|
-
* @param {any} value The `value` provided to the component.
|
|
180
|
-
* @returns {ReactNode}
|
|
181
|
-
*/
|
|
182
|
-
renderValue?: (value: T | '') => React.ReactNode;
|
|
183
|
-
}
|
|
184
|
-
| {
|
|
185
|
-
/**
|
|
186
|
-
* If `true`, a value is displayed even if no items are selected.
|
|
187
|
-
*
|
|
188
|
-
* In order to display a meaningful value, a function can be passed to the `renderValue` prop which
|
|
189
|
-
* returns the value to be displayed when no items are selected.
|
|
190
|
-
*
|
|
191
|
-
* ⚠️ When using this prop, make sure the label doesn't overlap with the empty displayed value.
|
|
192
|
-
* The label should either be hidden or forced to a shrunk state.
|
|
193
|
-
* @default false
|
|
194
|
-
*/
|
|
195
|
-
displayEmpty: true;
|
|
196
|
-
/**
|
|
197
|
-
* If `true`, `value` must be an array and the menu will support multiple selections.
|
|
198
|
-
* @default false
|
|
199
|
-
*/
|
|
200
|
-
multiple: true;
|
|
201
|
-
/**
|
|
202
|
-
* Render the selected value.
|
|
203
|
-
* You can only use it when the `native` prop is `false` (default).
|
|
204
|
-
*
|
|
205
|
-
* @param {any} value The `value` provided to the component.
|
|
206
|
-
* @returns {ReactNode}
|
|
207
|
-
*/
|
|
208
|
-
renderValue?: (value: T) => React.ReactNode;
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
export type SelectProps<T = unknown> = CommonProps<T> & ConditionalRenderValueType<T>;
|
|
212
|
-
|
|
213
155
|
/**
|
|
214
156
|
*
|
|
215
157
|
* Demos:
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface SelectClasses {
|
|
2
|
-
/** Styles applied to the select component `select` class. */
|
|
3
|
-
select: string;
|
|
4
|
-
/** Styles applied to the select component if `multiple={true}`. */
|
|
5
|
-
multiple: string;
|
|
6
|
-
/** Styles applied to the select component if `variant="filled"`. */
|
|
7
|
-
filled: string;
|
|
8
|
-
/** Styles applied to the select component if `variant="outlined"`. */
|
|
9
|
-
outlined: string;
|
|
10
|
-
/** Styles applied to the select component if `variant="standard"`. */
|
|
11
|
-
standard: string;
|
|
12
|
-
/** State class applied to the select component `disabled` class. */
|
|
13
|
-
disabled: string;
|
|
14
|
-
/** Styles applied to the icon component. */
|
|
15
|
-
icon: string;
|
|
16
|
-
/** Styles applied to the icon component if the popup is open. */
|
|
17
|
-
iconOpen: string;
|
|
18
|
-
/** Styles applied to the icon component if `variant="filled"`. */
|
|
19
|
-
iconFilled: string;
|
|
20
|
-
/** Styles applied to the icon component if `variant="outlined"`. */
|
|
21
|
-
iconOutlined: string;
|
|
22
|
-
/** Styles applied to the icon component if `variant="standard"`. */
|
|
23
|
-
iconStandard: string;
|
|
24
|
-
/** Styles applied to the underlying native input component. */
|
|
25
|
-
nativeInput: string;
|
|
26
|
-
}
|
|
27
|
-
export type SelectClassKey = keyof SelectClasses;
|
|
28
|
-
export declare function getSelectUtilityClasses(slot: string): string;
|
|
29
|
-
declare const selectClasses: SelectClasses;
|
|
30
|
-
export default selectClasses;
|
|
1
|
+
export interface SelectClasses {
|
|
2
|
+
/** Styles applied to the select component `select` class. */
|
|
3
|
+
select: string;
|
|
4
|
+
/** Styles applied to the select component if `multiple={true}`. */
|
|
5
|
+
multiple: string;
|
|
6
|
+
/** Styles applied to the select component if `variant="filled"`. */
|
|
7
|
+
filled: string;
|
|
8
|
+
/** Styles applied to the select component if `variant="outlined"`. */
|
|
9
|
+
outlined: string;
|
|
10
|
+
/** Styles applied to the select component if `variant="standard"`. */
|
|
11
|
+
standard: string;
|
|
12
|
+
/** State class applied to the select component `disabled` class. */
|
|
13
|
+
disabled: string;
|
|
14
|
+
/** Styles applied to the icon component. */
|
|
15
|
+
icon: string;
|
|
16
|
+
/** Styles applied to the icon component if the popup is open. */
|
|
17
|
+
iconOpen: string;
|
|
18
|
+
/** Styles applied to the icon component if `variant="filled"`. */
|
|
19
|
+
iconFilled: string;
|
|
20
|
+
/** Styles applied to the icon component if `variant="outlined"`. */
|
|
21
|
+
iconOutlined: string;
|
|
22
|
+
/** Styles applied to the icon component if `variant="standard"`. */
|
|
23
|
+
iconStandard: string;
|
|
24
|
+
/** Styles applied to the underlying native input component. */
|
|
25
|
+
nativeInput: string;
|
|
26
|
+
}
|
|
27
|
+
export type SelectClassKey = keyof SelectClasses;
|
|
28
|
+
export declare function getSelectUtilityClasses(slot: string): string;
|
|
29
|
+
declare const selectClasses: SelectClasses;
|
|
30
|
+
export default selectClasses;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface SkeletonClasses {
|
|
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="rectangular"`. */
|
|
7
|
-
rectangular: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="rounded"`. */
|
|
9
|
-
rounded: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="circular"`. */
|
|
11
|
-
circular: string;
|
|
12
|
-
/** Styles applied to the root element if `animation="pulse"`. */
|
|
13
|
-
pulse: string;
|
|
14
|
-
/** Styles applied to the root element if `animation="wave"`. */
|
|
15
|
-
wave: string;
|
|
16
|
-
/** Styles applied when the component is passed children. */
|
|
17
|
-
withChildren: string;
|
|
18
|
-
/** Styles applied when the component is passed children and no width. */
|
|
19
|
-
fitContent: string;
|
|
20
|
-
/** Styles applied when the component is passed children and no height. */
|
|
21
|
-
heightAuto: string;
|
|
22
|
-
}
|
|
23
|
-
export type SkeletonClassKey = keyof SkeletonClasses;
|
|
24
|
-
export declare function getSkeletonUtilityClass(slot: string): string;
|
|
25
|
-
declare const skeletonClasses: SkeletonClasses;
|
|
26
|
-
export default skeletonClasses;
|
|
1
|
+
export interface SkeletonClasses {
|
|
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="rectangular"`. */
|
|
7
|
+
rectangular: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="rounded"`. */
|
|
9
|
+
rounded: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="circular"`. */
|
|
11
|
+
circular: string;
|
|
12
|
+
/** Styles applied to the root element if `animation="pulse"`. */
|
|
13
|
+
pulse: string;
|
|
14
|
+
/** Styles applied to the root element if `animation="wave"`. */
|
|
15
|
+
wave: string;
|
|
16
|
+
/** Styles applied when the component is passed children. */
|
|
17
|
+
withChildren: string;
|
|
18
|
+
/** Styles applied when the component is passed children and no width. */
|
|
19
|
+
fitContent: string;
|
|
20
|
+
/** Styles applied when the component is passed children and no height. */
|
|
21
|
+
heightAuto: string;
|
|
22
|
+
}
|
|
23
|
+
export type SkeletonClassKey = keyof SkeletonClasses;
|
|
24
|
+
export declare function getSkeletonUtilityClass(slot: string): string;
|
|
25
|
+
declare const skeletonClasses: SkeletonClasses;
|
|
26
|
+
export default skeletonClasses;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface SnackbarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'center' }}`. */
|
|
5
|
-
anchorOriginTopCenter: string;
|
|
6
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'center' }}`. */
|
|
7
|
-
anchorOriginBottomCenter: string;
|
|
8
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }}`. */
|
|
9
|
-
anchorOriginTopRight: string;
|
|
10
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }}`. */
|
|
11
|
-
anchorOriginBottomRight: string;
|
|
12
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }}`. */
|
|
13
|
-
anchorOriginTopLeft: string;
|
|
14
|
-
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }}`. */
|
|
15
|
-
anchorOriginBottomLeft: string;
|
|
16
|
-
}
|
|
17
|
-
export type SnackbarClassKey = keyof SnackbarClasses;
|
|
18
|
-
export declare function getSnackbarUtilityClass(slot: string): string;
|
|
19
|
-
declare const snackbarClasses: SnackbarClasses;
|
|
20
|
-
export default snackbarClasses;
|
|
1
|
+
export interface SnackbarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'center' }}`. */
|
|
5
|
+
anchorOriginTopCenter: string;
|
|
6
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'center' }}`. */
|
|
7
|
+
anchorOriginBottomCenter: string;
|
|
8
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'right' }}`. */
|
|
9
|
+
anchorOriginTopRight: string;
|
|
10
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'right' }}`. */
|
|
11
|
+
anchorOriginBottomRight: string;
|
|
12
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'top', 'left' }}`. */
|
|
13
|
+
anchorOriginTopLeft: string;
|
|
14
|
+
/** Styles applied to the root element if `anchorOrigin={{ 'bottom', 'left' }}`. */
|
|
15
|
+
anchorOriginBottomLeft: string;
|
|
16
|
+
}
|
|
17
|
+
export type SnackbarClassKey = keyof SnackbarClasses;
|
|
18
|
+
export declare function getSnackbarUtilityClass(slot: string): string;
|
|
19
|
+
declare const snackbarClasses: SnackbarClasses;
|
|
20
|
+
export default snackbarClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface SnackbarContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the message wrapper element. */
|
|
5
|
-
message: string;
|
|
6
|
-
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
7
|
-
action: string;
|
|
8
|
-
}
|
|
9
|
-
export type SnackbarContentClassKey = keyof SnackbarContentClasses;
|
|
10
|
-
export declare function getSnackbarContentUtilityClass(slot: string): string;
|
|
11
|
-
declare const snackbarContentClasses: SnackbarContentClasses;
|
|
12
|
-
export default snackbarContentClasses;
|
|
1
|
+
export interface SnackbarContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the message wrapper element. */
|
|
5
|
+
message: string;
|
|
6
|
+
/** Styles applied to the action wrapper element if `action` is provided. */
|
|
7
|
+
action: string;
|
|
8
|
+
}
|
|
9
|
+
export type SnackbarContentClassKey = keyof SnackbarContentClasses;
|
|
10
|
+
export declare function getSnackbarContentUtilityClass(slot: string): string;
|
|
11
|
+
declare const snackbarContentClasses: SnackbarContentClasses;
|
|
12
|
+
export default snackbarContentClasses;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface SpeedDialClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Fab component. */
|
|
5
|
-
fab: string;
|
|
6
|
-
/** Styles applied to the root element if direction="up" */
|
|
7
|
-
directionUp: string;
|
|
8
|
-
/** Styles applied to the root element if direction="down" */
|
|
9
|
-
directionDown: string;
|
|
10
|
-
/** Styles applied to the root element if direction="left" */
|
|
11
|
-
directionLeft: string;
|
|
12
|
-
/** Styles applied to the root element if direction="right" */
|
|
13
|
-
directionRight: string;
|
|
14
|
-
/** Styles applied to the actions (`children` wrapper) element. */
|
|
15
|
-
actions: string;
|
|
16
|
-
/** Styles applied to the actions (`children` wrapper) element if `open={false}`. */
|
|
17
|
-
actionsClosed: string;
|
|
18
|
-
}
|
|
19
|
-
export type SpeedDialClassKey = keyof SpeedDialClasses;
|
|
20
|
-
export declare function getSpeedDialUtilityClass(slot: string): string;
|
|
21
|
-
declare const speedDialClasses: SpeedDialClasses;
|
|
22
|
-
export default speedDialClasses;
|
|
1
|
+
export interface SpeedDialClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Fab component. */
|
|
5
|
+
fab: string;
|
|
6
|
+
/** Styles applied to the root element if direction="up" */
|
|
7
|
+
directionUp: string;
|
|
8
|
+
/** Styles applied to the root element if direction="down" */
|
|
9
|
+
directionDown: string;
|
|
10
|
+
/** Styles applied to the root element if direction="left" */
|
|
11
|
+
directionLeft: string;
|
|
12
|
+
/** Styles applied to the root element if direction="right" */
|
|
13
|
+
directionRight: string;
|
|
14
|
+
/** Styles applied to the actions (`children` wrapper) element. */
|
|
15
|
+
actions: string;
|
|
16
|
+
/** Styles applied to the actions (`children` wrapper) element if `open={false}`. */
|
|
17
|
+
actionsClosed: string;
|
|
18
|
+
}
|
|
19
|
+
export type SpeedDialClassKey = keyof SpeedDialClasses;
|
|
20
|
+
export declare function getSpeedDialUtilityClass(slot: string): string;
|
|
21
|
+
declare const speedDialClasses: SpeedDialClasses;
|
|
22
|
+
export default speedDialClasses;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface SpeedDialActionClasses {
|
|
2
|
-
/** Styles applied to the Fab component. */
|
|
3
|
-
fab: string;
|
|
4
|
-
/** Styles applied to the Fab component if `open={false}`. */
|
|
5
|
-
fabClosed: string;
|
|
6
|
-
/** Styles applied to the root element if `tooltipOpen={true}`. */
|
|
7
|
-
staticTooltip: string;
|
|
8
|
-
/** Styles applied to the root element if `tooltipOpen={true}` and `open={false}`. */
|
|
9
|
-
staticTooltipClosed: string;
|
|
10
|
-
/** Styles applied to the static tooltip label if `tooltipOpen={true}`. */
|
|
11
|
-
staticTooltipLabel: string;
|
|
12
|
-
/** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="left"`` */
|
|
13
|
-
tooltipPlacementLeft: string;
|
|
14
|
-
/** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="right"`` */
|
|
15
|
-
tooltipPlacementRight: string;
|
|
16
|
-
}
|
|
17
|
-
export type SpeedDialActionClassKey = keyof SpeedDialActionClasses;
|
|
18
|
-
export declare function getSpeedDialActionUtilityClass(slot: string): string;
|
|
19
|
-
declare const speedDialActionClasses: SpeedDialActionClasses;
|
|
20
|
-
export default speedDialActionClasses;
|
|
1
|
+
export interface SpeedDialActionClasses {
|
|
2
|
+
/** Styles applied to the Fab component. */
|
|
3
|
+
fab: string;
|
|
4
|
+
/** Styles applied to the Fab component if `open={false}`. */
|
|
5
|
+
fabClosed: string;
|
|
6
|
+
/** Styles applied to the root element if `tooltipOpen={true}`. */
|
|
7
|
+
staticTooltip: string;
|
|
8
|
+
/** Styles applied to the root element if `tooltipOpen={true}` and `open={false}`. */
|
|
9
|
+
staticTooltipClosed: string;
|
|
10
|
+
/** Styles applied to the static tooltip label if `tooltipOpen={true}`. */
|
|
11
|
+
staticTooltipLabel: string;
|
|
12
|
+
/** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="left"`` */
|
|
13
|
+
tooltipPlacementLeft: string;
|
|
14
|
+
/** Styles applied to the root element if `tooltipOpen={true}` and `tooltipPlacement="right"`` */
|
|
15
|
+
tooltipPlacementRight: string;
|
|
16
|
+
}
|
|
17
|
+
export type SpeedDialActionClassKey = keyof SpeedDialActionClasses;
|
|
18
|
+
export declare function getSpeedDialActionUtilityClass(slot: string): string;
|
|
19
|
+
declare const speedDialActionClasses: SpeedDialActionClasses;
|
|
20
|
+
export default speedDialActionClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface SpeedDialIconClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the icon component. */
|
|
5
|
-
icon: string;
|
|
6
|
-
/** Styles applied to the icon component if `open={true}`. */
|
|
7
|
-
iconOpen: string;
|
|
8
|
-
/** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
|
|
9
|
-
iconWithOpenIconOpen: string;
|
|
10
|
-
/** Styles applied to the `openIcon` if provided. */
|
|
11
|
-
openIcon: string;
|
|
12
|
-
/** Styles applied to the `openIcon` if provided and if `open={true}`. */
|
|
13
|
-
openIconOpen: string;
|
|
14
|
-
}
|
|
15
|
-
export type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
|
|
16
|
-
export declare function getSpeedDialIconUtilityClass(slot: string): string;
|
|
17
|
-
declare const speedDialIconClasses: SpeedDialIconClasses;
|
|
18
|
-
export default speedDialIconClasses;
|
|
1
|
+
export interface SpeedDialIconClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the icon component. */
|
|
5
|
+
icon: string;
|
|
6
|
+
/** Styles applied to the icon component if `open={true}`. */
|
|
7
|
+
iconOpen: string;
|
|
8
|
+
/** Styles applied to the icon when an `openIcon` is provided and if `open={true}`. */
|
|
9
|
+
iconWithOpenIconOpen: string;
|
|
10
|
+
/** Styles applied to the `openIcon` if provided. */
|
|
11
|
+
openIcon: string;
|
|
12
|
+
/** Styles applied to the `openIcon` if provided and if `open={true}`. */
|
|
13
|
+
openIconOpen: string;
|
|
14
|
+
}
|
|
15
|
+
export type SpeedDialIconClassKey = keyof SpeedDialIconClasses;
|
|
16
|
+
export declare function getSpeedDialIconUtilityClass(slot: string): string;
|
|
17
|
+
declare const speedDialIconClasses: SpeedDialIconClasses;
|
|
18
|
+
export default speedDialIconClasses;
|
package/Step/StepContext.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface StepContextType {
|
|
3
|
-
index: number;
|
|
4
|
-
last: boolean;
|
|
5
|
-
expanded: boolean;
|
|
6
|
-
icon: React.ReactNode;
|
|
7
|
-
active: boolean;
|
|
8
|
-
completed: boolean;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Provides information about the current step in Stepper.
|
|
13
|
-
*/
|
|
14
|
-
declare const StepContext: React.Context<{} | StepContextType>;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the current StepContext or an empty object if no StepContext
|
|
17
|
-
* has been defined in the component tree.
|
|
18
|
-
*/
|
|
19
|
-
export declare function useStepContext(): StepContextType | {};
|
|
20
|
-
export default StepContext;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface StepContextType {
|
|
3
|
+
index: number;
|
|
4
|
+
last: boolean;
|
|
5
|
+
expanded: boolean;
|
|
6
|
+
icon: React.ReactNode;
|
|
7
|
+
active: boolean;
|
|
8
|
+
completed: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Provides information about the current step in Stepper.
|
|
13
|
+
*/
|
|
14
|
+
declare const StepContext: React.Context<{} | StepContextType>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the current StepContext or an empty object if no StepContext
|
|
17
|
+
* has been defined in the component tree.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useStepContext(): StepContextType | {};
|
|
20
|
+
export default StepContext;
|
package/Step/stepClasses.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface StepClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
-
alternativeLabel: string;
|
|
10
|
-
/** State class applied to the root element if `completed={true}`. */
|
|
11
|
-
completed: string;
|
|
12
|
-
}
|
|
13
|
-
export type StepClassKey = keyof StepClasses;
|
|
14
|
-
export declare function getStepUtilityClass(slot: string): string;
|
|
15
|
-
declare const stepClasses: StepClasses;
|
|
16
|
-
export default stepClasses;
|
|
1
|
+
export interface StepClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
+
alternativeLabel: string;
|
|
10
|
+
/** State class applied to the root element if `completed={true}`. */
|
|
11
|
+
completed: string;
|
|
12
|
+
}
|
|
13
|
+
export type StepClassKey = keyof StepClasses;
|
|
14
|
+
export declare function getStepUtilityClass(slot: string): string;
|
|
15
|
+
declare const stepClasses: StepClasses;
|
|
16
|
+
export default stepClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface StepButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the `ButtonBase` touch-ripple. */
|
|
9
|
-
touchRipple: string;
|
|
10
|
-
}
|
|
11
|
-
export type StepButtonClassKey = keyof StepButtonClasses;
|
|
12
|
-
export declare function getStepButtonUtilityClass(slot: string): string;
|
|
13
|
-
declare const stepButtonClasses: StepButtonClasses;
|
|
14
|
-
export default stepButtonClasses;
|
|
1
|
+
export interface StepButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the `ButtonBase` touch-ripple. */
|
|
9
|
+
touchRipple: string;
|
|
10
|
+
}
|
|
11
|
+
export type StepButtonClassKey = keyof StepButtonClasses;
|
|
12
|
+
export declare function getStepButtonUtilityClass(slot: string): string;
|
|
13
|
+
declare const stepButtonClasses: StepButtonClasses;
|
|
14
|
+
export default stepButtonClasses;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface StepConnectorClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
-
horizontal: string;
|
|
6
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
-
vertical: string;
|
|
8
|
-
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
-
alternativeLabel: string;
|
|
10
|
-
/** State class applied to the root element if `active={true}`. */
|
|
11
|
-
active: string;
|
|
12
|
-
/** State class applied to the root element if `completed={true}`. */
|
|
13
|
-
completed: string;
|
|
14
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
-
disabled: string;
|
|
16
|
-
/** Styles applied to the line element. */
|
|
17
|
-
line: string;
|
|
18
|
-
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
19
|
-
lineHorizontal: string;
|
|
20
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
21
|
-
lineVertical: string;
|
|
22
|
-
}
|
|
23
|
-
export type StepConnectorClassKey = keyof StepConnectorClasses;
|
|
24
|
-
export declare function getStepConnectorUtilityClass(slot: string): string;
|
|
25
|
-
declare const stepConnectorClasses: StepConnectorClasses;
|
|
26
|
-
export default stepConnectorClasses;
|
|
1
|
+
export interface StepConnectorClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
5
|
+
horizontal: string;
|
|
6
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
7
|
+
vertical: string;
|
|
8
|
+
/** Styles applied to the root element if `alternativeLabel={true}`. */
|
|
9
|
+
alternativeLabel: string;
|
|
10
|
+
/** State class applied to the root element if `active={true}`. */
|
|
11
|
+
active: string;
|
|
12
|
+
/** State class applied to the root element if `completed={true}`. */
|
|
13
|
+
completed: string;
|
|
14
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
15
|
+
disabled: string;
|
|
16
|
+
/** Styles applied to the line element. */
|
|
17
|
+
line: string;
|
|
18
|
+
/** Styles applied to the root element if `orientation="horizontal"`. */
|
|
19
|
+
lineHorizontal: string;
|
|
20
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
21
|
+
lineVertical: string;
|
|
22
|
+
}
|
|
23
|
+
export type StepConnectorClassKey = keyof StepConnectorClasses;
|
|
24
|
+
export declare function getStepConnectorUtilityClass(slot: string): string;
|
|
25
|
+
declare const stepConnectorClasses: StepConnectorClasses;
|
|
26
|
+
export default stepConnectorClasses;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface StepContentClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `last={true}` (controlled by `Step`). */
|
|
5
|
-
last: string;
|
|
6
|
-
/** Styles applied to the Transition component. */
|
|
7
|
-
transition: string;
|
|
8
|
-
}
|
|
9
|
-
export type StepContentClassKey = keyof StepContentClasses;
|
|
10
|
-
export declare function getStepContentUtilityClass(slot: string): string;
|
|
11
|
-
declare const stepContentClasses: StepContentClasses;
|
|
12
|
-
export default stepContentClasses;
|
|
1
|
+
export interface StepContentClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `last={true}` (controlled by `Step`). */
|
|
5
|
+
last: string;
|
|
6
|
+
/** Styles applied to the Transition component. */
|
|
7
|
+
transition: string;
|
|
8
|
+
}
|
|
9
|
+
export type StepContentClassKey = keyof StepContentClasses;
|
|
10
|
+
export declare function getStepContentUtilityClass(slot: string): string;
|
|
11
|
+
declare const stepContentClasses: StepContentClasses;
|
|
12
|
+
export default stepContentClasses;
|