@mui/material 5.10.12 → 5.10.13
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/Alert.d.ts +34 -3
- package/Alert/Alert.js +46 -9
- 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 +10 -0
- package/Autocomplete/Autocomplete.js +27 -11
- package/Autocomplete/autocompleteClasses.d.ts +54 -54
- package/Avatar/avatarClasses.d.ts +20 -20
- package/AvatarGroup/AvatarGroup.d.ts +18 -1
- package/AvatarGroup/AvatarGroup.js +25 -6
- package/AvatarGroup/avatarGroupClasses.d.ts +10 -10
- package/Backdrop/Backdrop.d.ts +33 -3
- package/Backdrop/Backdrop.js +46 -11
- package/Backdrop/backdropClasses.d.ts +10 -10
- package/Badge/Badge.d.ts +11 -3
- package/Badge/Badge.js +11 -3
- 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 +58 -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 +48 -9
- package/FilledInput/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControlLabel/FormControlLabel.d.ts +12 -0
- package/FormControlLabel/FormControlLabel.js +17 -5
- 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 +26 -26
- 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 +49 -10
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/InputBase.d.ts +34 -3
- package/InputBase/InputBase.js +45 -8
- 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/ListItem.d.ts +32 -3
- package/ListItem/ListItem.js +41 -9
- 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/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/Modal/Modal.d.ts +11 -3
- package/Modal/Modal.js +11 -3
- package/NativeSelect/NativeSelectInput.js +11 -9
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/OutlinedInput.js +26 -8
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/PaginationItem.d.ts +19 -7
- package/PaginationItem/PaginationItem.js +31 -22
- 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/README.md +1 -0
- 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 +3 -3
- package/Select/Select.js +3 -3
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/Slider.d.ts +14 -2
- package/Slider/Slider.js +12 -3
- 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/StepLabel.d.ts +11 -0
- package/StepLabel/StepLabel.js +15 -3
- 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/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.d.ts +43 -6
- package/Tooltip/Tooltip.js +68 -31
- 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/esm/Alert/Alert.js +46 -9
- package/esm/Autocomplete/Autocomplete.js +27 -11
- package/esm/AvatarGroup/AvatarGroup.js +25 -6
- package/esm/Backdrop/Backdrop.js +46 -11
- package/esm/Badge/Badge.js +11 -3
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/FilledInput/FilledInput.js +48 -9
- package/esm/FormControlLabel/FormControlLabel.js +17 -5
- package/esm/Input/Input.js +49 -10
- package/esm/InputBase/InputBase.js +45 -8
- package/esm/ListItem/ListItem.js +41 -9
- package/esm/Modal/Modal.js +11 -3
- package/esm/NativeSelect/NativeSelectInput.js +11 -9
- package/esm/OutlinedInput/OutlinedInput.js +26 -8
- package/esm/PaginationItem/PaginationItem.js +31 -22
- package/esm/Select/Select.js +3 -3
- package/esm/Slider/Slider.js +12 -3
- package/esm/StepLabel/StepLabel.js +15 -3
- package/esm/Tooltip/Tooltip.js +68 -31
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +48 -9
- package/legacy/Autocomplete/Autocomplete.js +27 -10
- package/legacy/AvatarGroup/AvatarGroup.js +26 -6
- package/legacy/Backdrop/Backdrop.js +48 -11
- package/legacy/Badge/Badge.js +11 -3
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/FilledInput/FilledInput.js +49 -9
- package/legacy/FormControlLabel/FormControlLabel.js +17 -4
- package/legacy/Input/Input.js +50 -10
- package/legacy/InputBase/InputBase.js +47 -8
- package/legacy/ListItem/ListItem.js +42 -8
- package/legacy/Modal/Modal.js +11 -3
- package/legacy/NativeSelect/NativeSelectInput.js +11 -9
- package/legacy/OutlinedInput/OutlinedInput.js +27 -8
- package/legacy/PaginationItem/PaginationItem.js +32 -22
- package/legacy/Select/Select.js +3 -3
- package/legacy/Slider/Slider.js +12 -3
- package/legacy/StepLabel/StepLabel.js +16 -3
- package/legacy/Tooltip/Tooltip.js +63 -22
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +72 -72
- package/modern/Alert/Alert.js +45 -8
- package/modern/Autocomplete/Autocomplete.js +26 -10
- package/modern/AvatarGroup/AvatarGroup.js +24 -5
- package/modern/Backdrop/Backdrop.js +45 -10
- package/modern/Badge/Badge.js +11 -3
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/FilledInput/FilledInput.js +46 -9
- package/modern/FormControlLabel/FormControlLabel.js +15 -5
- package/modern/Input/Input.js +47 -10
- package/modern/InputBase/InputBase.js +43 -8
- package/modern/ListItem/ListItem.js +41 -9
- package/modern/Modal/Modal.js +11 -3
- package/modern/NativeSelect/NativeSelectInput.js +11 -9
- package/modern/OutlinedInput/OutlinedInput.js +25 -7
- package/modern/PaginationItem/PaginationItem.js +31 -22
- package/modern/Select/Select.js +3 -3
- package/modern/Slider/Slider.js +12 -3
- package/modern/StepLabel/StepLabel.js +13 -3
- package/modern/Tooltip/Tooltip.js +58 -17
- package/modern/index.js +1 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/umd/material-ui.development.js +534 -165
- package/umd/material-ui.production.min.js +14 -14
- 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
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export interface AutocompleteClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
5
|
-
fullWidth: string;
|
|
6
|
-
/** State class applied to the root element if focused. */
|
|
7
|
-
focused: string;
|
|
8
|
-
/** Styles applied to the tag elements, e.g. the chips. */
|
|
9
|
-
tag: string;
|
|
10
|
-
/** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
|
|
11
|
-
tagSizeSmall: string;
|
|
12
|
-
/** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
|
|
13
|
-
tagSizeMedium: string;
|
|
14
|
-
/** Styles applied when the popup icon is rendered. */
|
|
15
|
-
hasPopupIcon: string;
|
|
16
|
-
/** Styles applied when the clear icon is rendered. */
|
|
17
|
-
hasClearIcon: string;
|
|
18
|
-
/** Styles applied to the Input element. */
|
|
19
|
-
inputRoot: string;
|
|
20
|
-
/** Styles applied to the input element. */
|
|
21
|
-
input: string;
|
|
22
|
-
/** Styles applied to the input element if the input is focused. */
|
|
23
|
-
inputFocused: string;
|
|
24
|
-
/** Styles applied to the endAdornment element. */
|
|
25
|
-
endAdornment: string;
|
|
26
|
-
/** Styles applied to the clear indicator. */
|
|
27
|
-
clearIndicator: string;
|
|
28
|
-
/** Styles applied to the popup indicator. */
|
|
29
|
-
popupIndicator: string;
|
|
30
|
-
/** Styles applied to the popup indicator if the popup is open. */
|
|
31
|
-
popupIndicatorOpen: string;
|
|
32
|
-
/** Styles applied to the popper element. */
|
|
33
|
-
popper: string;
|
|
34
|
-
/** Styles applied to the popper element if `disablePortal={true}`. */
|
|
35
|
-
popperDisablePortal: string;
|
|
36
|
-
/** Styles applied to the Paper component. */
|
|
37
|
-
paper: string;
|
|
38
|
-
/** Styles applied to the listbox component. */
|
|
39
|
-
listbox: string;
|
|
40
|
-
/** Styles applied to the loading wrapper. */
|
|
41
|
-
loading: string;
|
|
42
|
-
/** Styles applied to the no option wrapper. */
|
|
43
|
-
noOptions: string;
|
|
44
|
-
/** Styles applied to the option elements. */
|
|
45
|
-
option: string;
|
|
46
|
-
/** Styles applied to the group's label elements. */
|
|
47
|
-
groupLabel: string;
|
|
48
|
-
/** Styles applied to the group's ul elements. */
|
|
49
|
-
groupUl: string;
|
|
50
|
-
}
|
|
51
|
-
export declare type AutocompleteClassKey = keyof AutocompleteClasses;
|
|
52
|
-
export declare function getAutocompleteUtilityClass(slot: string): string;
|
|
53
|
-
declare const autocompleteClasses: AutocompleteClasses;
|
|
54
|
-
export default autocompleteClasses;
|
|
1
|
+
export interface AutocompleteClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
5
|
+
fullWidth: string;
|
|
6
|
+
/** State class applied to the root element if focused. */
|
|
7
|
+
focused: string;
|
|
8
|
+
/** Styles applied to the tag elements, e.g. the chips. */
|
|
9
|
+
tag: string;
|
|
10
|
+
/** Styles applied to the tag elements, e.g. the chips if `size="small"`. */
|
|
11
|
+
tagSizeSmall: string;
|
|
12
|
+
/** Styles applied to the tag elements, e.g. the chips if `size="medium"`. */
|
|
13
|
+
tagSizeMedium: string;
|
|
14
|
+
/** Styles applied when the popup icon is rendered. */
|
|
15
|
+
hasPopupIcon: string;
|
|
16
|
+
/** Styles applied when the clear icon is rendered. */
|
|
17
|
+
hasClearIcon: string;
|
|
18
|
+
/** Styles applied to the Input element. */
|
|
19
|
+
inputRoot: string;
|
|
20
|
+
/** Styles applied to the input element. */
|
|
21
|
+
input: string;
|
|
22
|
+
/** Styles applied to the input element if the input is focused. */
|
|
23
|
+
inputFocused: string;
|
|
24
|
+
/** Styles applied to the endAdornment element. */
|
|
25
|
+
endAdornment: string;
|
|
26
|
+
/** Styles applied to the clear indicator. */
|
|
27
|
+
clearIndicator: string;
|
|
28
|
+
/** Styles applied to the popup indicator. */
|
|
29
|
+
popupIndicator: string;
|
|
30
|
+
/** Styles applied to the popup indicator if the popup is open. */
|
|
31
|
+
popupIndicatorOpen: string;
|
|
32
|
+
/** Styles applied to the popper element. */
|
|
33
|
+
popper: string;
|
|
34
|
+
/** Styles applied to the popper element if `disablePortal={true}`. */
|
|
35
|
+
popperDisablePortal: string;
|
|
36
|
+
/** Styles applied to the Paper component. */
|
|
37
|
+
paper: string;
|
|
38
|
+
/** Styles applied to the listbox component. */
|
|
39
|
+
listbox: string;
|
|
40
|
+
/** Styles applied to the loading wrapper. */
|
|
41
|
+
loading: string;
|
|
42
|
+
/** Styles applied to the no option wrapper. */
|
|
43
|
+
noOptions: string;
|
|
44
|
+
/** Styles applied to the option elements. */
|
|
45
|
+
option: string;
|
|
46
|
+
/** Styles applied to the group's label elements. */
|
|
47
|
+
groupLabel: string;
|
|
48
|
+
/** Styles applied to the group's ul elements. */
|
|
49
|
+
groupUl: string;
|
|
50
|
+
}
|
|
51
|
+
export declare type AutocompleteClassKey = keyof AutocompleteClasses;
|
|
52
|
+
export declare function getAutocompleteUtilityClass(slot: string): string;
|
|
53
|
+
declare const autocompleteClasses: AutocompleteClasses;
|
|
54
|
+
export default autocompleteClasses;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface AvatarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if not `src` or `srcSet`. */
|
|
5
|
-
colorDefault: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="circular"`. */
|
|
7
|
-
circular: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="rounded"`. */
|
|
9
|
-
rounded: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="square"`. */
|
|
11
|
-
square: string;
|
|
12
|
-
/** Styles applied to the img element if either `src` or `srcSet` is defined. */
|
|
13
|
-
img: string;
|
|
14
|
-
/** Styles applied to the fallback icon */
|
|
15
|
-
fallback: string;
|
|
16
|
-
}
|
|
17
|
-
export declare type AvatarClassKey = keyof AvatarClasses;
|
|
18
|
-
export declare function getAvatarUtilityClass(slot: string): string;
|
|
19
|
-
declare const avatarClasses: AvatarClasses;
|
|
20
|
-
export default avatarClasses;
|
|
1
|
+
export interface AvatarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if not `src` or `srcSet`. */
|
|
5
|
+
colorDefault: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="circular"`. */
|
|
7
|
+
circular: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="rounded"`. */
|
|
9
|
+
rounded: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="square"`. */
|
|
11
|
+
square: string;
|
|
12
|
+
/** Styles applied to the img element if either `src` or `srcSet` is defined. */
|
|
13
|
+
img: string;
|
|
14
|
+
/** Styles applied to the fallback icon */
|
|
15
|
+
fallback: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type AvatarClassKey = keyof AvatarClasses;
|
|
18
|
+
export declare function getAvatarUtilityClass(slot: string): string;
|
|
19
|
+
declare const avatarClasses: AvatarClasses;
|
|
20
|
+
export default avatarClasses;
|
|
@@ -23,7 +23,12 @@ export interface AvatarGroupProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
23
23
|
*/
|
|
24
24
|
component?: React.ElementType;
|
|
25
25
|
/**
|
|
26
|
-
* The props
|
|
26
|
+
* The extra props for the slot components.
|
|
27
|
+
* You can override the existing props or add new ones.
|
|
28
|
+
*
|
|
29
|
+
* This prop is an alias for the `slotProps` prop.
|
|
30
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
31
|
+
*
|
|
27
32
|
* @default {}
|
|
28
33
|
*/
|
|
29
34
|
componentsProps?: {
|
|
@@ -35,6 +40,18 @@ export interface AvatarGroupProps extends StandardProps<React.HTMLAttributes<HTM
|
|
|
35
40
|
* @default 5
|
|
36
41
|
*/
|
|
37
42
|
max?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The extra props for the slot components.
|
|
45
|
+
* You can override the existing props or add new ones.
|
|
46
|
+
*
|
|
47
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
48
|
+
*
|
|
49
|
+
* @default {}
|
|
50
|
+
*/
|
|
51
|
+
slotProps?: {
|
|
52
|
+
additionalAvatar?: React.ComponentPropsWithRef<typeof Avatar> &
|
|
53
|
+
AvatarGroupComponentsPropsOverrides;
|
|
54
|
+
};
|
|
38
55
|
/**
|
|
39
56
|
* Spacing between avatars.
|
|
40
57
|
* @default 'medium'
|
|
@@ -33,7 +33,7 @@ var _avatarGroupClasses = _interopRequireWildcard(require("./avatarGroupClasses"
|
|
|
33
33
|
|
|
34
34
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
|
|
36
|
-
const _excluded = ["children", "className", "component", "componentsProps", "max", "spacing", "total", "variant"];
|
|
36
|
+
const _excluded = ["children", "className", "component", "componentsProps", "max", "slotProps", "spacing", "total", "variant"];
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
|
|
@@ -90,7 +90,7 @@ const AvatarGroupAvatar = (0, _styled.default)(_Avatar.default, {
|
|
|
90
90
|
}
|
|
91
91
|
}));
|
|
92
92
|
const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {
|
|
93
|
-
var
|
|
93
|
+
var _slotProps$additional;
|
|
94
94
|
|
|
95
95
|
const props = (0, _useThemeProps.default)({
|
|
96
96
|
props: inProps,
|
|
@@ -102,6 +102,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
102
102
|
component = 'div',
|
|
103
103
|
componentsProps = {},
|
|
104
104
|
max = 5,
|
|
105
|
+
slotProps = {},
|
|
105
106
|
spacing = 'medium',
|
|
106
107
|
total,
|
|
107
108
|
variant = 'circular'
|
|
@@ -134,6 +135,7 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
134
135
|
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
|
135
136
|
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
|
136
137
|
const marginLeft = spacing && SPACINGS[spacing] !== undefined ? SPACINGS[spacing] : -spacing;
|
|
138
|
+
const additionalAvatarSlotProps = (_slotProps$additional = slotProps.additionalAvatar) != null ? _slotProps$additional : componentsProps.additionalAvatar;
|
|
137
139
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupRoot, (0, _extends2.default)({
|
|
138
140
|
as: component,
|
|
139
141
|
ownerState: ownerState,
|
|
@@ -143,11 +145,11 @@ const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps,
|
|
|
143
145
|
children: [extraAvatars ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarGroupAvatar, (0, _extends2.default)({
|
|
144
146
|
ownerState: ownerState,
|
|
145
147
|
variant: variant
|
|
146
|
-
},
|
|
147
|
-
className: (0, _clsx.default)(classes.avatar,
|
|
148
|
+
}, additionalAvatarSlotProps, {
|
|
149
|
+
className: (0, _clsx.default)(classes.avatar, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.className),
|
|
148
150
|
style: (0, _extends2.default)({
|
|
149
151
|
marginLeft
|
|
150
|
-
},
|
|
152
|
+
}, additionalAvatarSlotProps == null ? void 0 : additionalAvatarSlotProps.style),
|
|
151
153
|
children: ["+", extraAvatars]
|
|
152
154
|
})) : null, children.slice(0, maxAvatars).reverse().map((child, index) => {
|
|
153
155
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -192,7 +194,12 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
|
|
|
192
194
|
component: _propTypes.default.elementType,
|
|
193
195
|
|
|
194
196
|
/**
|
|
195
|
-
* The props
|
|
197
|
+
* The extra props for the slot components.
|
|
198
|
+
* You can override the existing props or add new ones.
|
|
199
|
+
*
|
|
200
|
+
* This prop is an alias for the `slotProps` prop.
|
|
201
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
202
|
+
*
|
|
196
203
|
* @default {}
|
|
197
204
|
*/
|
|
198
205
|
componentsProps: _propTypes.default.shape({
|
|
@@ -211,6 +218,18 @@ process.env.NODE_ENV !== "production" ? AvatarGroup.propTypes
|
|
|
211
218
|
return null;
|
|
212
219
|
}),
|
|
213
220
|
|
|
221
|
+
/**
|
|
222
|
+
* The extra props for the slot components.
|
|
223
|
+
* You can override the existing props or add new ones.
|
|
224
|
+
*
|
|
225
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
226
|
+
*
|
|
227
|
+
* @default {}
|
|
228
|
+
*/
|
|
229
|
+
slotProps: _propTypes.default.shape({
|
|
230
|
+
additionalAvatar: _propTypes.default.object
|
|
231
|
+
}),
|
|
232
|
+
|
|
214
233
|
/**
|
|
215
234
|
* Spacing between avatars.
|
|
216
235
|
* @default 'medium'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface AvatarGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the avatar elements. */
|
|
5
|
-
avatar: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type AvatarGroupClassKey = keyof AvatarGroupClasses;
|
|
8
|
-
export declare function getAvatarGroupUtilityClass(slot: string): string;
|
|
9
|
-
declare const avatarGroupClasses: AvatarGroupClasses;
|
|
10
|
-
export default avatarGroupClasses;
|
|
1
|
+
export interface AvatarGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the avatar elements. */
|
|
5
|
+
avatar: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type AvatarGroupClassKey = keyof AvatarGroupClasses;
|
|
8
|
+
export declare function getAvatarGroupUtilityClass(slot: string): string;
|
|
9
|
+
declare const avatarGroupClasses: AvatarGroupClasses;
|
|
10
|
+
export default avatarGroupClasses;
|
package/Backdrop/Backdrop.d.ts
CHANGED
|
@@ -16,15 +16,23 @@ export interface BackdropTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
16
16
|
*/
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
/**
|
|
19
|
-
* The components used for each slot inside
|
|
20
|
-
*
|
|
19
|
+
* The components used for each slot inside.
|
|
20
|
+
*
|
|
21
|
+
* This prop is an alias for the `slots` prop.
|
|
22
|
+
* It's recommended to use the `slots` prop instead.
|
|
23
|
+
*
|
|
21
24
|
* @default {}
|
|
22
25
|
*/
|
|
23
26
|
components?: {
|
|
24
27
|
Root?: React.ElementType;
|
|
25
28
|
};
|
|
26
29
|
/**
|
|
27
|
-
* The props
|
|
30
|
+
* The extra props for the slot components.
|
|
31
|
+
* You can override the existing props or add new ones.
|
|
32
|
+
*
|
|
33
|
+
* This prop is an alias for the `slotProps` prop.
|
|
34
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
35
|
+
*
|
|
28
36
|
* @default {}
|
|
29
37
|
*/
|
|
30
38
|
componentsProps?: {
|
|
@@ -44,6 +52,28 @@ export interface BackdropTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
|
|
44
52
|
* If `true`, the component is shown.
|
|
45
53
|
*/
|
|
46
54
|
open: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The extra props for the slot components.
|
|
57
|
+
* You can override the existing props or add new ones.
|
|
58
|
+
*
|
|
59
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
60
|
+
*
|
|
61
|
+
* @default {}
|
|
62
|
+
*/
|
|
63
|
+
slotProps?: {
|
|
64
|
+
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The components used for each slot inside.
|
|
68
|
+
*
|
|
69
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
70
|
+
*
|
|
71
|
+
* @default {}
|
|
72
|
+
*/
|
|
73
|
+
slots?: {
|
|
74
|
+
root?: React.ElementType;
|
|
75
|
+
};
|
|
76
|
+
|
|
47
77
|
/**
|
|
48
78
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49
79
|
*/
|
package/Backdrop/Backdrop.js
CHANGED
|
@@ -29,7 +29,7 @@ var _backdropClasses = require("./backdropClasses");
|
|
|
29
29
|
|
|
30
30
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
31
31
|
|
|
32
|
-
const _excluded = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "transitionDuration", "TransitionComponent"];
|
|
32
|
+
const _excluded = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "slotProps", "slots", "transitionDuration", "TransitionComponent"];
|
|
33
33
|
|
|
34
34
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
35
35
|
|
|
@@ -72,7 +72,7 @@ const BackdropRoot = (0, _styled.default)('div', {
|
|
|
72
72
|
backgroundColor: 'transparent'
|
|
73
73
|
}));
|
|
74
74
|
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
75
|
-
var
|
|
75
|
+
var _slotProps$root, _ref, _slots$root;
|
|
76
76
|
|
|
77
77
|
const props = (0, _useThemeProps.default)({
|
|
78
78
|
props: inProps,
|
|
@@ -86,6 +86,8 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
86
86
|
className,
|
|
87
87
|
invisible = false,
|
|
88
88
|
open,
|
|
89
|
+
slotProps = {},
|
|
90
|
+
slots = {},
|
|
89
91
|
transitionDuration,
|
|
90
92
|
// eslint-disable-next-line react/prop-types
|
|
91
93
|
TransitionComponent = _Fade.default
|
|
@@ -96,19 +98,21 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
96
98
|
invisible
|
|
97
99
|
});
|
|
98
100
|
const classes = useUtilityClasses(ownerState);
|
|
101
|
+
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
99
102
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionComponent, (0, _extends2.default)({
|
|
100
103
|
in: open,
|
|
101
104
|
timeout: transitionDuration
|
|
102
105
|
}, other, {
|
|
103
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(BackdropRoot, {
|
|
104
|
-
"aria-hidden": true
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(BackdropRoot, (0, _extends2.default)({
|
|
107
|
+
"aria-hidden": true
|
|
108
|
+
}, rootSlotProps, {
|
|
109
|
+
as: (_ref = (_slots$root = slots.root) != null ? _slots$root : components.Root) != null ? _ref : component,
|
|
110
|
+
className: (0, _clsx.default)(classes.root, className, rootSlotProps == null ? void 0 : rootSlotProps.className),
|
|
111
|
+
ownerState: (0, _extends2.default)({}, ownerState, rootSlotProps == null ? void 0 : rootSlotProps.ownerState),
|
|
108
112
|
classes: classes,
|
|
109
113
|
ref: ref,
|
|
110
114
|
children: children
|
|
111
|
-
})
|
|
115
|
+
}))
|
|
112
116
|
}));
|
|
113
117
|
});
|
|
114
118
|
process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
@@ -141,8 +145,11 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
|
141
145
|
component: _propTypes.default.elementType,
|
|
142
146
|
|
|
143
147
|
/**
|
|
144
|
-
* The components used for each slot inside
|
|
145
|
-
*
|
|
148
|
+
* The components used for each slot inside.
|
|
149
|
+
*
|
|
150
|
+
* This prop is an alias for the `slots` prop.
|
|
151
|
+
* It's recommended to use the `slots` prop instead.
|
|
152
|
+
*
|
|
146
153
|
* @default {}
|
|
147
154
|
*/
|
|
148
155
|
components: _propTypes.default.shape({
|
|
@@ -150,7 +157,12 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
|
150
157
|
}),
|
|
151
158
|
|
|
152
159
|
/**
|
|
153
|
-
* The props
|
|
160
|
+
* The extra props for the slot components.
|
|
161
|
+
* You can override the existing props or add new ones.
|
|
162
|
+
*
|
|
163
|
+
* This prop is an alias for the `slotProps` prop.
|
|
164
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
165
|
+
*
|
|
154
166
|
* @default {}
|
|
155
167
|
*/
|
|
156
168
|
componentsProps: _propTypes.default.shape({
|
|
@@ -169,6 +181,29 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
|
|
|
169
181
|
*/
|
|
170
182
|
open: _propTypes.default.bool.isRequired,
|
|
171
183
|
|
|
184
|
+
/**
|
|
185
|
+
* The extra props for the slot components.
|
|
186
|
+
* You can override the existing props or add new ones.
|
|
187
|
+
*
|
|
188
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
|
189
|
+
*
|
|
190
|
+
* @default {}
|
|
191
|
+
*/
|
|
192
|
+
slotProps: _propTypes.default.shape({
|
|
193
|
+
root: _propTypes.default.object
|
|
194
|
+
}),
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The components used for each slot inside.
|
|
198
|
+
*
|
|
199
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
200
|
+
*
|
|
201
|
+
* @default {}
|
|
202
|
+
*/
|
|
203
|
+
slots: _propTypes.default.shape({
|
|
204
|
+
root: _propTypes.default.elementType
|
|
205
|
+
}),
|
|
206
|
+
|
|
172
207
|
/**
|
|
173
208
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
174
209
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface BackdropClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `invisible={true}`. */
|
|
5
|
-
invisible: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type BackdropClassKey = keyof BackdropClasses;
|
|
8
|
-
export declare function getBackdropUtilityClass(slot: string): string;
|
|
9
|
-
declare const backdropClasses: BackdropClasses;
|
|
10
|
-
export default backdropClasses;
|
|
1
|
+
export interface BackdropClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `invisible={true}`. */
|
|
5
|
+
invisible: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type BackdropClassKey = keyof BackdropClasses;
|
|
8
|
+
export declare function getBackdropUtilityClass(slot: string): string;
|
|
9
|
+
declare const backdropClasses: BackdropClasses;
|
|
10
|
+
export default backdropClasses;
|
package/Badge/Badge.d.ts
CHANGED
|
@@ -47,13 +47,21 @@ export type BadgeTypeMap<
|
|
|
47
47
|
BadgePropsColorOverrides
|
|
48
48
|
>;
|
|
49
49
|
/**
|
|
50
|
-
* The props
|
|
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
|
+
*
|
|
51
56
|
* @default {}
|
|
52
57
|
*/
|
|
53
58
|
componentsProps?: BadgeUnstyledTypeMap['props']['slotProps'];
|
|
54
59
|
/**
|
|
55
|
-
* The components used for each slot inside
|
|
56
|
-
*
|
|
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
|
+
*
|
|
57
65
|
* @default {}
|
|
58
66
|
*/
|
|
59
67
|
components?: {
|
package/Badge/Badge.js
CHANGED
|
@@ -340,8 +340,11 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
340
340
|
component: _propTypes.default.elementType,
|
|
341
341
|
|
|
342
342
|
/**
|
|
343
|
-
* The components used for each slot inside
|
|
344
|
-
*
|
|
343
|
+
* The components used for each slot inside.
|
|
344
|
+
*
|
|
345
|
+
* This prop is an alias for the `slots` prop.
|
|
346
|
+
* It's recommended to use the `slots` prop instead.
|
|
347
|
+
*
|
|
345
348
|
* @default {}
|
|
346
349
|
*/
|
|
347
350
|
components: _propTypes.default.shape({
|
|
@@ -350,7 +353,12 @@ process.env.NODE_ENV !== "production" ? Badge.propTypes
|
|
|
350
353
|
}),
|
|
351
354
|
|
|
352
355
|
/**
|
|
353
|
-
* The props
|
|
356
|
+
* The extra props for the slot components.
|
|
357
|
+
* You can override the existing props or add new ones.
|
|
358
|
+
*
|
|
359
|
+
* This prop is an alias for the `slotProps` prop.
|
|
360
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
|
361
|
+
*
|
|
354
362
|
* @default {}
|
|
355
363
|
*/
|
|
356
364
|
componentsProps: _propTypes.default.shape({
|
package/Badge/badgeClasses.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
export interface BadgeClasses {
|
|
2
|
-
/** Class name applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Class name applied to the badge `span` element. */
|
|
5
|
-
badge: string;
|
|
6
|
-
/** Class name applied to the badge `span` element if `variant="dot"`. */
|
|
7
|
-
dot: string;
|
|
8
|
-
/** Class name applied to the badge `span` element if `variant="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }}`. */
|
|
11
|
-
anchorOriginTopRight: string;
|
|
12
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }}`. */
|
|
13
|
-
anchorOriginBottomRight: string;
|
|
14
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }}`. */
|
|
15
|
-
anchorOriginTopLeft: string;
|
|
16
|
-
/** Class name 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
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
|
|
33
|
-
anchorOriginTopRightRectangular: string;
|
|
34
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
|
|
35
|
-
anchorOriginBottomRightRectangular: string;
|
|
36
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
|
|
37
|
-
anchorOriginTopLeftRectangular: string;
|
|
38
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
|
|
39
|
-
anchorOriginBottomLeftRectangular: string;
|
|
40
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
|
|
41
|
-
anchorOriginTopRightCircular: string;
|
|
42
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
|
|
43
|
-
anchorOriginBottomRightCircular: string;
|
|
44
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
|
|
45
|
-
anchorOriginTopLeftCircular: string;
|
|
46
|
-
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
|
|
47
|
-
anchorOriginBottomLeftCircular: string;
|
|
48
|
-
/** Class name applied to the badge `span` element if `overlap="rectangular"`. */
|
|
49
|
-
overlapRectangular: string;
|
|
50
|
-
/** Class name applied to the badge `span` element if `overlap="circular"`. */
|
|
51
|
-
overlapCircular: string;
|
|
52
|
-
}
|
|
53
|
-
export declare 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
|
+
/** Class name applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Class name applied to the badge `span` element. */
|
|
5
|
+
badge: string;
|
|
6
|
+
/** Class name applied to the badge `span` element if `variant="dot"`. */
|
|
7
|
+
dot: string;
|
|
8
|
+
/** Class name applied to the badge `span` element if `variant="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }}`. */
|
|
11
|
+
anchorOriginTopRight: string;
|
|
12
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }}`. */
|
|
13
|
+
anchorOriginBottomRight: string;
|
|
14
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }}`. */
|
|
15
|
+
anchorOriginTopLeft: string;
|
|
16
|
+
/** Class name 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
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="rectangular"`. */
|
|
33
|
+
anchorOriginTopRightRectangular: string;
|
|
34
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="rectangular"`. */
|
|
35
|
+
anchorOriginBottomRightRectangular: string;
|
|
36
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="rectangular"`. */
|
|
37
|
+
anchorOriginTopLeftRectangular: string;
|
|
38
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="rectangular"`. */
|
|
39
|
+
anchorOriginBottomLeftRectangular: string;
|
|
40
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'right' }} overlap="circular"`. */
|
|
41
|
+
anchorOriginTopRightCircular: string;
|
|
42
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'right' }} overlap="circular"`. */
|
|
43
|
+
anchorOriginBottomRightCircular: string;
|
|
44
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'top', 'left' }} overlap="circular"`. */
|
|
45
|
+
anchorOriginTopLeftCircular: string;
|
|
46
|
+
/** Class name applied to the badge `span` element if `anchorOrigin={{ 'bottom', 'left' }} overlap="circular"`. */
|
|
47
|
+
anchorOriginBottomLeftCircular: string;
|
|
48
|
+
/** Class name applied to the badge `span` element if `overlap="rectangular"`. */
|
|
49
|
+
overlapRectangular: string;
|
|
50
|
+
/** Class name applied to the badge `span` element if `overlap="circular"`. */
|
|
51
|
+
overlapCircular: string;
|
|
52
|
+
}
|
|
53
|
+
export declare type BadgeClassKey = keyof BadgeClasses;
|
|
54
|
+
export declare function getBadgeUtilityClass(slot: string): string;
|
|
55
|
+
declare const badgeClasses: BadgeClasses;
|
|
56
|
+
export default badgeClasses;
|
|
File without changes
|