@mui/material 5.10.6 → 5.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/Button.js +3 -10
- 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 +78 -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/Checkbox.js +12 -3
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +96 -88
- package/Chip/chipClasses.js +1 -1
- 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/DialogContentText.js +14 -3
- 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/filledInputClasses.d.ts +40 -40
- package/FormControl/formControlClasses.d.ts +14 -14
- 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/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/InputLabel.js +12 -3
- 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/ListItemButton.js +10 -3
- 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.js +10 -3
- package/MenuItem/menuItemClasses.d.ts +20 -20
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/OverridableComponentAugmentation.d.ts +31 -31
- 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 +24 -24
- package/Radio/Radio.js +12 -3
- 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/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/StepLabel.js +5 -3
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/SvgIcon.js +2 -2
- package/SvgIcon/svgIconClasses.d.ts +26 -24
- 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 +2 -2
- package/Tooltip/Tooltip.js +3 -5
- 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/Unstable_TrapFocus/index.d.ts +2 -2
- package/Unstable_TrapFocus/index.js +2 -2
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/Button/Button.js +3 -8
- package/esm/Checkbox/Checkbox.js +11 -3
- package/esm/Chip/chipClasses.js +1 -1
- package/esm/DialogContentText/DialogContentText.js +13 -3
- package/esm/InputLabel/InputLabel.js +11 -3
- package/esm/ListItemButton/ListItemButton.js +10 -3
- package/esm/MenuItem/MenuItem.js +10 -3
- package/esm/Radio/Radio.js +11 -3
- package/esm/StepLabel/StepLabel.js +5 -3
- package/esm/SvgIcon/SvgIcon.js +2 -2
- package/esm/Tooltip/Tooltip.js +3 -5
- package/esm/Unstable_TrapFocus/index.js +1 -1
- package/esm/styles/CssVarsProvider.js +3 -1
- package/esm/styles/excludeVariablesFromRoot.js +6 -0
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Button/Button.js +2 -4
- package/legacy/Checkbox/Checkbox.js +10 -2
- package/legacy/Chip/chipClasses.js +1 -1
- package/legacy/DialogContentText/DialogContentText.js +10 -2
- package/legacy/InputLabel/InputLabel.js +10 -2
- package/legacy/ListItemButton/ListItemButton.js +9 -2
- package/legacy/MenuItem/MenuItem.js +9 -2
- package/legacy/Radio/Radio.js +10 -2
- package/legacy/StepLabel/StepLabel.js +5 -4
- package/legacy/SvgIcon/SvgIcon.js +2 -2
- package/legacy/Tooltip/Tooltip.js +3 -5
- package/legacy/Unstable_TrapFocus/index.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -1
- package/legacy/styles/excludeVariablesFromRoot.js +12 -0
- package/locale/index.d.ts +71 -71
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Button/Button.js +3 -8
- package/modern/Checkbox/Checkbox.js +11 -3
- package/modern/Chip/chipClasses.js +1 -1
- package/modern/DialogContentText/DialogContentText.js +13 -3
- package/modern/InputLabel/InputLabel.js +11 -3
- package/modern/ListItemButton/ListItemButton.js +10 -3
- package/modern/MenuItem/MenuItem.js +10 -3
- package/modern/Radio/Radio.js +11 -3
- package/modern/StepLabel/StepLabel.js +5 -3
- package/modern/SvgIcon/SvgIcon.js +2 -2
- package/modern/Tooltip/Tooltip.js +3 -5
- package/modern/Unstable_TrapFocus/index.js +1 -1
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -1
- package/modern/styles/excludeVariablesFromRoot.js +6 -0
- package/package.json +5 -5
- package/styles/CssVarsProvider.d.ts +14 -14
- package/styles/CssVarsProvider.js +4 -1
- package/styles/excludeVariablesFromRoot.d.ts +5 -0
- package/styles/excludeVariablesFromRoot.js +14 -0
- 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 +478 -428
- package/umd/material-ui.production.min.js +9 -9
- 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,32 +1,32 @@
|
|
|
1
|
-
export interface InputLabelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `focused={true}`. */
|
|
5
|
-
focused: string;
|
|
6
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
-
disabled: string;
|
|
8
|
-
/** State class applied to the root element if `error={true}`. */
|
|
9
|
-
error: string;
|
|
10
|
-
/** State class applied to the root element if `required={true}`. */
|
|
11
|
-
required: string;
|
|
12
|
-
/** State class applied to the asterisk element. */
|
|
13
|
-
asterisk: string;
|
|
14
|
-
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
|
|
15
|
-
formControl: string;
|
|
16
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
17
|
-
sizeSmall: string;
|
|
18
|
-
/** Styles applied to the input element if `shrink={true}`. */
|
|
19
|
-
shrink: string;
|
|
20
|
-
/** Styles applied to the input element unless `disableAnimation={true}`. */
|
|
21
|
-
animated: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="filled"`. */
|
|
23
|
-
filled: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
25
|
-
outlined: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="standard"`. */
|
|
27
|
-
standard: string;
|
|
28
|
-
}
|
|
29
|
-
export declare type InputLabelClassKey = keyof InputLabelClasses;
|
|
30
|
-
export declare function getInputLabelUtilityClasses(slot: string): string;
|
|
31
|
-
declare const inputLabelClasses: InputLabelClasses;
|
|
32
|
-
export default inputLabelClasses;
|
|
1
|
+
export interface InputLabelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `focused={true}`. */
|
|
5
|
+
focused: string;
|
|
6
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
+
disabled: string;
|
|
8
|
+
/** State class applied to the root element if `error={true}`. */
|
|
9
|
+
error: string;
|
|
10
|
+
/** State class applied to the root element if `required={true}`. */
|
|
11
|
+
required: string;
|
|
12
|
+
/** State class applied to the asterisk element. */
|
|
13
|
+
asterisk: string;
|
|
14
|
+
/** Styles applied to the root element if the component is a descendant of `FormControl`. */
|
|
15
|
+
formControl: string;
|
|
16
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
17
|
+
sizeSmall: string;
|
|
18
|
+
/** Styles applied to the input element if `shrink={true}`. */
|
|
19
|
+
shrink: string;
|
|
20
|
+
/** Styles applied to the input element unless `disableAnimation={true}`. */
|
|
21
|
+
animated: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="filled"`. */
|
|
23
|
+
filled: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
25
|
+
outlined: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="standard"`. */
|
|
27
|
+
standard: string;
|
|
28
|
+
}
|
|
29
|
+
export declare type InputLabelClassKey = keyof InputLabelClasses;
|
|
30
|
+
export declare function getInputLabelUtilityClasses(slot: string): string;
|
|
31
|
+
declare const inputLabelClasses: InputLabelClasses;
|
|
32
|
+
export default inputLabelClasses;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export interface LinearProgressClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
|
|
5
|
-
colorPrimary: string;
|
|
6
|
-
/** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
|
|
7
|
-
colorSecondary: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="determinate"`. */
|
|
9
|
-
determinate: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="indeterminate"`. */
|
|
11
|
-
indeterminate: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="buffer"`. */
|
|
13
|
-
buffer: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="query"`. */
|
|
15
|
-
query: string;
|
|
16
|
-
/** Styles applied to the additional bar element if `variant="buffer"`. */
|
|
17
|
-
dashed: string;
|
|
18
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
|
|
19
|
-
dashedColorPrimary: string;
|
|
20
|
-
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
|
|
21
|
-
dashedColorSecondary: string;
|
|
22
|
-
/** Styles applied to the layered bar1 and bar2 elements. */
|
|
23
|
-
bar: string;
|
|
24
|
-
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
|
|
25
|
-
barColorPrimary: string;
|
|
26
|
-
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
|
|
27
|
-
barColorSecondary: string;
|
|
28
|
-
/** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
|
|
29
|
-
bar1Indeterminate: string;
|
|
30
|
-
/** Styles applied to the bar1 element if `variant="determinate"`. */
|
|
31
|
-
bar1Determinate: string;
|
|
32
|
-
/** Styles applied to the bar1 element if `variant="buffer"`. */
|
|
33
|
-
bar1Buffer: string;
|
|
34
|
-
/** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
|
|
35
|
-
bar2Indeterminate: string;
|
|
36
|
-
/** Styles applied to the bar2 element if `variant="buffer"`. */
|
|
37
|
-
bar2Buffer: string;
|
|
38
|
-
}
|
|
39
|
-
export declare type LinearProgressClassKey = keyof LinearProgressClasses;
|
|
40
|
-
export declare function getLinearProgressUtilityClass(slot: string): string;
|
|
41
|
-
declare const linearProgressClasses: LinearProgressClasses;
|
|
42
|
-
export default linearProgressClasses;
|
|
1
|
+
export interface LinearProgressClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
/** Styles applied to the root and bar2 elements if `color="secondary"`; bar2 if `variant="buffer"`. */
|
|
7
|
+
colorSecondary: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="determinate"`. */
|
|
9
|
+
determinate: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="indeterminate"`. */
|
|
11
|
+
indeterminate: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="buffer"`. */
|
|
13
|
+
buffer: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="query"`. */
|
|
15
|
+
query: string;
|
|
16
|
+
/** Styles applied to the additional bar element if `variant="buffer"`. */
|
|
17
|
+
dashed: string;
|
|
18
|
+
/** Styles applied to the additional bar element if `variant="buffer"` and `color="primary"`. */
|
|
19
|
+
dashedColorPrimary: string;
|
|
20
|
+
/** Styles applied to the additional bar element if `variant="buffer"` and `color="secondary"`. */
|
|
21
|
+
dashedColorSecondary: string;
|
|
22
|
+
/** Styles applied to the layered bar1 and bar2 elements. */
|
|
23
|
+
bar: string;
|
|
24
|
+
/** Styles applied to the bar elements if `color="primary"`; bar2 if `variant` not "buffer". */
|
|
25
|
+
barColorPrimary: string;
|
|
26
|
+
/** Styles applied to the bar elements if `color="secondary"`; bar2 if `variant` not "buffer". */
|
|
27
|
+
barColorSecondary: string;
|
|
28
|
+
/** Styles applied to the bar1 element if `variant="indeterminate or query"`. */
|
|
29
|
+
bar1Indeterminate: string;
|
|
30
|
+
/** Styles applied to the bar1 element if `variant="determinate"`. */
|
|
31
|
+
bar1Determinate: string;
|
|
32
|
+
/** Styles applied to the bar1 element if `variant="buffer"`. */
|
|
33
|
+
bar1Buffer: string;
|
|
34
|
+
/** Styles applied to the bar2 element if `variant="indeterminate or query"`. */
|
|
35
|
+
bar2Indeterminate: string;
|
|
36
|
+
/** Styles applied to the bar2 element if `variant="buffer"`. */
|
|
37
|
+
bar2Buffer: string;
|
|
38
|
+
}
|
|
39
|
+
export declare type LinearProgressClassKey = keyof LinearProgressClasses;
|
|
40
|
+
export declare function getLinearProgressUtilityClass(slot: string): string;
|
|
41
|
+
declare const linearProgressClasses: LinearProgressClasses;
|
|
42
|
+
export default linearProgressClasses;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { Theme } from '../styles';
|
|
2
|
-
export declare const colorTransformations: {
|
|
3
|
-
primary: string;
|
|
4
|
-
textPrimary: string;
|
|
5
|
-
secondary: string;
|
|
6
|
-
textSecondary: string;
|
|
7
|
-
error: string;
|
|
8
|
-
};
|
|
9
|
-
declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
|
|
10
|
-
theme: T;
|
|
11
|
-
ownerState: {
|
|
12
|
-
color: string;
|
|
13
|
-
};
|
|
14
|
-
}) => string;
|
|
15
|
-
export default getTextDecoration;
|
|
1
|
+
import type { Theme } from '../styles';
|
|
2
|
+
export declare const colorTransformations: {
|
|
3
|
+
primary: string;
|
|
4
|
+
textPrimary: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
textSecondary: string;
|
|
7
|
+
error: string;
|
|
8
|
+
};
|
|
9
|
+
declare const getTextDecoration: <T extends Theme>({ theme, ownerState, }: {
|
|
10
|
+
theme: T;
|
|
11
|
+
ownerState: {
|
|
12
|
+
color: string;
|
|
13
|
+
};
|
|
14
|
+
}) => string;
|
|
15
|
+
export default getTextDecoration;
|
package/Link/linkClasses.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface LinkClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `underline="none"`. */
|
|
5
|
-
underlineNone: string;
|
|
6
|
-
/** Styles applied to the root element if `underline="hover"`. */
|
|
7
|
-
underlineHover: string;
|
|
8
|
-
/** Styles applied to the root element if `underline="always"`. */
|
|
9
|
-
underlineAlways: string;
|
|
10
|
-
/** Styles applied to the root element if `component="button"`. */
|
|
11
|
-
button: string;
|
|
12
|
-
/** State class applied to the root element if the link is keyboard focused. */
|
|
13
|
-
focusVisible: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type LinkClassKey = keyof LinkClasses;
|
|
16
|
-
export declare function getLinkUtilityClass(slot: string): string;
|
|
17
|
-
declare const linkClasses: LinkClasses;
|
|
18
|
-
export default linkClasses;
|
|
1
|
+
export interface LinkClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `underline="none"`. */
|
|
5
|
+
underlineNone: string;
|
|
6
|
+
/** Styles applied to the root element if `underline="hover"`. */
|
|
7
|
+
underlineHover: string;
|
|
8
|
+
/** Styles applied to the root element if `underline="always"`. */
|
|
9
|
+
underlineAlways: string;
|
|
10
|
+
/** Styles applied to the root element if `component="button"`. */
|
|
11
|
+
button: string;
|
|
12
|
+
/** State class applied to the root element if the link is keyboard focused. */
|
|
13
|
+
focusVisible: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type LinkClassKey = keyof LinkClasses;
|
|
16
|
+
export declare function getLinkUtilityClass(slot: string): string;
|
|
17
|
+
declare const linkClasses: LinkClasses;
|
|
18
|
+
export default linkClasses;
|
package/List/listClasses.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface ListClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disablePadding={true}`. */
|
|
5
|
-
padding: string;
|
|
6
|
-
/** Styles applied to the root element if dense. */
|
|
7
|
-
dense: string;
|
|
8
|
-
/** Styles applied to the root element if a `subheader` is provided. */
|
|
9
|
-
subheader: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type ListClassKey = keyof ListClasses;
|
|
12
|
-
export declare function getListUtilityClass(slot: string): string;
|
|
13
|
-
declare const listClasses: ListClasses;
|
|
14
|
-
export default listClasses;
|
|
1
|
+
export interface ListClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disablePadding={true}`. */
|
|
5
|
+
padding: string;
|
|
6
|
+
/** Styles applied to the root element if dense. */
|
|
7
|
+
dense: string;
|
|
8
|
+
/** Styles applied to the root element if a `subheader` is provided. */
|
|
9
|
+
subheader: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type ListClassKey = keyof ListClasses;
|
|
12
|
+
export declare function getListUtilityClass(slot: string): string;
|
|
13
|
+
declare const listClasses: ListClasses;
|
|
14
|
+
export default listClasses;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface ListItemClasses {
|
|
2
|
-
/** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the container element if `children` includes `ListItemSecondaryAction`. */
|
|
5
|
-
container: string;
|
|
6
|
-
/** State class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
|
|
7
|
-
focusVisible: string;
|
|
8
|
-
/** Styles applied to the component element if dense. */
|
|
9
|
-
dense: string;
|
|
10
|
-
/** Styles applied to the component element if `alignItems="flex-start"`. */
|
|
11
|
-
alignItemsFlexStart: string;
|
|
12
|
-
/** State class applied to the inner `component` element if `disabled={true}`. */
|
|
13
|
-
disabled: string;
|
|
14
|
-
/** Styles applied to the inner `component` element if `divider={true}`. */
|
|
15
|
-
divider: string;
|
|
16
|
-
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
17
|
-
gutters: string;
|
|
18
|
-
/** Styles applied to the root element unless `disablePadding={true}`. */
|
|
19
|
-
padding: string;
|
|
20
|
-
/** Styles applied to the inner `component` element if `button={true}`. */
|
|
21
|
-
button: string;
|
|
22
|
-
/** Styles applied to the component element if `children` includes `ListItemSecondaryAction`. */
|
|
23
|
-
secondaryAction: string;
|
|
24
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
25
|
-
selected: string;
|
|
26
|
-
}
|
|
27
|
-
export declare type ListItemClassKey = keyof ListItemClasses;
|
|
28
|
-
export declare function getListItemUtilityClass(slot: string): string;
|
|
29
|
-
declare const listItemClasses: ListItemClasses;
|
|
30
|
-
export default listItemClasses;
|
|
1
|
+
export interface ListItemClasses {
|
|
2
|
+
/** Styles applied to the (normally root) `component` element. May be wrapped by a `container`. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the container element if `children` includes `ListItemSecondaryAction`. */
|
|
5
|
+
container: string;
|
|
6
|
+
/** State class applied to the `component`'s `focusVisibleClassName` prop if `button={true}`. */
|
|
7
|
+
focusVisible: string;
|
|
8
|
+
/** Styles applied to the component element if dense. */
|
|
9
|
+
dense: string;
|
|
10
|
+
/** Styles applied to the component element if `alignItems="flex-start"`. */
|
|
11
|
+
alignItemsFlexStart: string;
|
|
12
|
+
/** State class applied to the inner `component` element if `disabled={true}`. */
|
|
13
|
+
disabled: string;
|
|
14
|
+
/** Styles applied to the inner `component` element if `divider={true}`. */
|
|
15
|
+
divider: string;
|
|
16
|
+
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
17
|
+
gutters: string;
|
|
18
|
+
/** Styles applied to the root element unless `disablePadding={true}`. */
|
|
19
|
+
padding: string;
|
|
20
|
+
/** Styles applied to the inner `component` element if `button={true}`. */
|
|
21
|
+
button: string;
|
|
22
|
+
/** Styles applied to the component element if `children` includes `ListItemSecondaryAction`. */
|
|
23
|
+
secondaryAction: string;
|
|
24
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
25
|
+
selected: string;
|
|
26
|
+
}
|
|
27
|
+
export declare type ListItemClassKey = keyof ListItemClasses;
|
|
28
|
+
export declare function getListItemUtilityClass(slot: string): string;
|
|
29
|
+
declare const listItemClasses: ListItemClasses;
|
|
30
|
+
export default listItemClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface ListItemAvatarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
|
|
5
|
-
alignItemsFlexStart: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListItemAvatarClassKey = keyof ListItemAvatarClasses;
|
|
8
|
-
export declare function getListItemAvatarUtilityClass(slot: string): string;
|
|
9
|
-
declare const listItemAvatarClasses: ListItemAvatarClasses;
|
|
10
|
-
export default listItemAvatarClasses;
|
|
1
|
+
export interface ListItemAvatarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
|
|
5
|
+
alignItemsFlexStart: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type ListItemAvatarClassKey = keyof ListItemAvatarClasses;
|
|
8
|
+
export declare function getListItemAvatarUtilityClass(slot: string): string;
|
|
9
|
+
declare const listItemAvatarClasses: ListItemAvatarClasses;
|
|
10
|
+
export default listItemAvatarClasses;
|
|
@@ -37,7 +37,7 @@ var _listItemButtonClasses = _interopRequireWildcard(require("./listItemButtonCl
|
|
|
37
37
|
|
|
38
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
39
39
|
|
|
40
|
-
const _excluded = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected"];
|
|
40
|
+
const _excluded = ["alignItems", "autoFocus", "component", "children", "dense", "disableGutters", "divider", "focusVisibleClassName", "selected", "className"];
|
|
41
41
|
|
|
42
42
|
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); }
|
|
43
43
|
|
|
@@ -145,7 +145,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
145
145
|
disableGutters = false,
|
|
146
146
|
divider = false,
|
|
147
147
|
focusVisibleClassName,
|
|
148
|
-
selected = false
|
|
148
|
+
selected = false,
|
|
149
|
+
className
|
|
149
150
|
} = props,
|
|
150
151
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
151
152
|
const context = React.useContext(_ListContext.default);
|
|
@@ -180,7 +181,8 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
180
181
|
href: other.href || other.to,
|
|
181
182
|
component: (other.href || other.to) && component === 'div' ? 'a' : component,
|
|
182
183
|
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
183
|
-
ownerState: ownerState
|
|
184
|
+
ownerState: ownerState,
|
|
185
|
+
className: (0, _clsx.default)(classes.root, className)
|
|
184
186
|
}, other, {
|
|
185
187
|
classes: classes,
|
|
186
188
|
children: children
|
|
@@ -219,6 +221,11 @@ process.env.NODE_ENV !== "production" ? ListItemButton.propTypes
|
|
|
219
221
|
*/
|
|
220
222
|
classes: _propTypes.default.object,
|
|
221
223
|
|
|
224
|
+
/**
|
|
225
|
+
* @ignore
|
|
226
|
+
*/
|
|
227
|
+
className: _propTypes.default.string,
|
|
228
|
+
|
|
222
229
|
/**
|
|
223
230
|
* The component used for the root node.
|
|
224
231
|
* Either a string to use a HTML element or a component.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface ListItemButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the `component`'s `focusVisibleClassName` prop. */
|
|
5
|
-
focusVisible: string;
|
|
6
|
-
/** Styles applied to the component element if dense. */
|
|
7
|
-
dense: string;
|
|
8
|
-
/** Styles applied to the component element if `alignItems="flex-start"`. */
|
|
9
|
-
alignItemsFlexStart: string;
|
|
10
|
-
/** State class applied to the inner `component` element if `disabled={true}`. */
|
|
11
|
-
disabled: string;
|
|
12
|
-
/** Styles applied to the inner `component` element if `divider={true}`. */
|
|
13
|
-
divider: string;
|
|
14
|
-
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
15
|
-
gutters: string;
|
|
16
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
17
|
-
selected: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type ListItemButtonClassKey = keyof ListItemButtonClasses;
|
|
20
|
-
export declare function getListItemButtonUtilityClass(slot: string): string;
|
|
21
|
-
declare const listItemButtonClasses: ListItemButtonClasses;
|
|
22
|
-
export default listItemButtonClasses;
|
|
1
|
+
export interface ListItemButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the `component`'s `focusVisibleClassName` prop. */
|
|
5
|
+
focusVisible: string;
|
|
6
|
+
/** Styles applied to the component element if dense. */
|
|
7
|
+
dense: string;
|
|
8
|
+
/** Styles applied to the component element if `alignItems="flex-start"`. */
|
|
9
|
+
alignItemsFlexStart: string;
|
|
10
|
+
/** State class applied to the inner `component` element if `disabled={true}`. */
|
|
11
|
+
disabled: string;
|
|
12
|
+
/** Styles applied to the inner `component` element if `divider={true}`. */
|
|
13
|
+
divider: string;
|
|
14
|
+
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
15
|
+
gutters: string;
|
|
16
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
17
|
+
selected: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type ListItemButtonClassKey = keyof ListItemButtonClasses;
|
|
20
|
+
export declare function getListItemButtonUtilityClass(slot: string): string;
|
|
21
|
+
declare const listItemButtonClasses: ListItemButtonClasses;
|
|
22
|
+
export default listItemButtonClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface ListItemIconClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
|
|
5
|
-
alignItemsFlexStart: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListItemIconClassKey = keyof ListItemIconClasses;
|
|
8
|
-
export declare function getListItemIconUtilityClass(slot: string): string;
|
|
9
|
-
declare const listItemIconClasses: ListItemIconClasses;
|
|
10
|
-
export default listItemIconClasses;
|
|
1
|
+
export interface ListItemIconClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element when the parent `ListItem` uses `alignItems="flex-start"`. */
|
|
5
|
+
alignItemsFlexStart: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type ListItemIconClassKey = keyof ListItemIconClasses;
|
|
8
|
+
export declare function getListItemIconUtilityClass(slot: string): string;
|
|
9
|
+
declare const listItemIconClasses: ListItemIconClasses;
|
|
10
|
+
export default listItemIconClasses;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface ListItemSecondaryActionClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element when the parent `ListItem` has `disableGutters={true}`. */
|
|
5
|
-
disableGutters: string;
|
|
6
|
-
}
|
|
7
|
-
export declare type ListItemSecondaryActionClassKey = keyof ListItemSecondaryActionClasses;
|
|
8
|
-
export declare function getListItemSecondaryActionClassesUtilityClass(slot: string): string;
|
|
9
|
-
declare const listItemSecondaryActionClasses: ListItemSecondaryActionClasses;
|
|
10
|
-
export default listItemSecondaryActionClasses;
|
|
1
|
+
export interface ListItemSecondaryActionClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element when the parent `ListItem` has `disableGutters={true}`. */
|
|
5
|
+
disableGutters: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type ListItemSecondaryActionClassKey = keyof ListItemSecondaryActionClasses;
|
|
8
|
+
export declare function getListItemSecondaryActionClassesUtilityClass(slot: string): string;
|
|
9
|
+
declare const listItemSecondaryActionClasses: ListItemSecondaryActionClasses;
|
|
10
|
+
export default listItemSecondaryActionClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ListItemTextClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Typography component if primary and secondary are set. */
|
|
5
|
-
multiline: string;
|
|
6
|
-
/** Styles applied to the Typography component if dense. */
|
|
7
|
-
dense: string;
|
|
8
|
-
/** Styles applied to the root element if `inset={true}`. */
|
|
9
|
-
inset: string;
|
|
10
|
-
/** Styles applied to the primary `Typography` component. */
|
|
11
|
-
primary: string;
|
|
12
|
-
/** Styles applied to the secondary `Typography` component. */
|
|
13
|
-
secondary: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type ListItemTextClassKey = keyof ListItemTextClasses;
|
|
16
|
-
export declare function getListItemTextUtilityClass(slot: string): string;
|
|
17
|
-
declare const listItemTextClasses: ListItemTextClasses;
|
|
18
|
-
export default listItemTextClasses;
|
|
1
|
+
export interface ListItemTextClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Typography component if primary and secondary are set. */
|
|
5
|
+
multiline: string;
|
|
6
|
+
/** Styles applied to the Typography component if dense. */
|
|
7
|
+
dense: string;
|
|
8
|
+
/** Styles applied to the root element if `inset={true}`. */
|
|
9
|
+
inset: string;
|
|
10
|
+
/** Styles applied to the primary `Typography` component. */
|
|
11
|
+
primary: string;
|
|
12
|
+
/** Styles applied to the secondary `Typography` component. */
|
|
13
|
+
secondary: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type ListItemTextClassKey = keyof ListItemTextClasses;
|
|
16
|
+
export declare function getListItemTextUtilityClass(slot: string): string;
|
|
17
|
+
declare const listItemTextClasses: ListItemTextClasses;
|
|
18
|
+
export default listItemTextClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ListSubheaderClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
-
colorPrimary: string;
|
|
6
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
7
|
-
colorInherit: string;
|
|
8
|
-
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
9
|
-
gutters: string;
|
|
10
|
-
/** Styles applied to the root element if `inset={true}`. */
|
|
11
|
-
inset: string;
|
|
12
|
-
/** Styles applied to the root element unless `disableSticky={true}`. */
|
|
13
|
-
sticky: string;
|
|
14
|
-
}
|
|
15
|
-
export declare type ListSubheaderClassKey = keyof ListSubheaderClasses;
|
|
16
|
-
export declare function getListSubheaderUtilityClass(slot: string): string;
|
|
17
|
-
declare const listSubheaderClasses: ListSubheaderClasses;
|
|
18
|
-
export default listSubheaderClasses;
|
|
1
|
+
export interface ListSubheaderClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
5
|
+
colorPrimary: string;
|
|
6
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
7
|
+
colorInherit: string;
|
|
8
|
+
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
9
|
+
gutters: string;
|
|
10
|
+
/** Styles applied to the root element if `inset={true}`. */
|
|
11
|
+
inset: string;
|
|
12
|
+
/** Styles applied to the root element unless `disableSticky={true}`. */
|
|
13
|
+
sticky: string;
|
|
14
|
+
}
|
|
15
|
+
export declare type ListSubheaderClassKey = keyof ListSubheaderClasses;
|
|
16
|
+
export declare function getListSubheaderUtilityClass(slot: string): string;
|
|
17
|
+
declare const listSubheaderClasses: ListSubheaderClasses;
|
|
18
|
+
export default listSubheaderClasses;
|
package/Menu/menuClasses.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface MenuClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Paper component. */
|
|
5
|
-
paper: string;
|
|
6
|
-
/** Styles applied to the List component via `MenuList`. */
|
|
7
|
-
list: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type MenuClassKey = keyof MenuClasses;
|
|
10
|
-
export declare function getMenuUtilityClass(slot: string): string;
|
|
11
|
-
declare const menuClasses: MenuClasses;
|
|
12
|
-
export default menuClasses;
|
|
1
|
+
export interface MenuClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Paper component. */
|
|
5
|
+
paper: string;
|
|
6
|
+
/** Styles applied to the List component via `MenuList`. */
|
|
7
|
+
list: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type MenuClassKey = keyof MenuClasses;
|
|
10
|
+
export declare function getMenuUtilityClass(slot: string): string;
|
|
11
|
+
declare const menuClasses: MenuClasses;
|
|
12
|
+
export default menuClasses;
|
package/MenuItem/MenuItem.js
CHANGED
|
@@ -43,7 +43,7 @@ var _menuItemClasses = _interopRequireWildcard(require("./menuItemClasses"));
|
|
|
43
43
|
|
|
44
44
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
45
45
|
|
|
46
|
-
const _excluded = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex"];
|
|
46
|
+
const _excluded = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
47
47
|
|
|
48
48
|
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); }
|
|
49
49
|
|
|
@@ -171,7 +171,8 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
171
171
|
disableGutters = false,
|
|
172
172
|
focusVisibleClassName,
|
|
173
173
|
role = 'menuitem',
|
|
174
|
-
tabIndex: tabIndexProp
|
|
174
|
+
tabIndex: tabIndexProp,
|
|
175
|
+
className
|
|
175
176
|
} = props,
|
|
176
177
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
177
178
|
const context = React.useContext(_ListContext.default);
|
|
@@ -209,7 +210,8 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
209
210
|
role: role,
|
|
210
211
|
tabIndex: tabIndex,
|
|
211
212
|
component: component,
|
|
212
|
-
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName)
|
|
213
|
+
focusVisibleClassName: (0, _clsx.default)(classes.focusVisible, focusVisibleClassName),
|
|
214
|
+
className: (0, _clsx.default)(classes.root, className)
|
|
213
215
|
}, other, {
|
|
214
216
|
ownerState: ownerState,
|
|
215
217
|
classes: classes
|
|
@@ -241,6 +243,11 @@ process.env.NODE_ENV !== "production" ? MenuItem.propTypes
|
|
|
241
243
|
*/
|
|
242
244
|
classes: _propTypes.default.object,
|
|
243
245
|
|
|
246
|
+
/**
|
|
247
|
+
* @ignore
|
|
248
|
+
*/
|
|
249
|
+
className: _propTypes.default.string,
|
|
250
|
+
|
|
244
251
|
/**
|
|
245
252
|
* The component used for the root node.
|
|
246
253
|
* Either a string to use a HTML element or a component.
|