@mui/material 5.10.11 → 5.10.12
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/buttonClasses.d.ts +100 -100
- package/ButtonBase/TouchRipple.js +1 -1
- 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 +76 -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/Chip.js +8 -4
- 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/filledInputClasses.d.ts +40 -40
- package/FormControl/FormControl.js +29 -29
- 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/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.js +2 -2
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +2 -2
- 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 +2 -2
- 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 +37 -37
- package/Radio/Radio.js +2 -1
- package/Radio/radioClasses.d.ts +16 -16
- package/RadioGroup/RadioGroup.js +12 -12
- 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/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/SwipeableDrawer/SwipeableDrawer.js +10 -2
- 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.js +1 -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/esm/BottomNavigation/BottomNavigation.js +0 -0
- package/esm/ButtonBase/TouchRipple.js +1 -1
- package/esm/Chip/Chip.js +8 -4
- package/esm/FormControl/FormControl.js +29 -29
- package/esm/ListItem/ListItem.js +2 -2
- package/esm/ListItemButton/ListItemButton.js +2 -2
- package/esm/MenuItem/MenuItem.js +2 -2
- package/esm/Radio/Radio.js +2 -1
- package/esm/RadioGroup/RadioGroup.js +12 -12
- package/esm/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/esm/Tooltip/Tooltip.js +1 -1
- 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/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +1 -1
- package/legacy/Chip/Chip.js +8 -4
- package/legacy/FormControl/FormControl.js +29 -29
- package/legacy/ListItem/ListItem.js +7 -5
- package/legacy/ListItemButton/ListItemButton.js +7 -5
- package/legacy/MenuItem/MenuItem.js +6 -4
- package/legacy/Radio/Radio.js +2 -1
- package/legacy/RadioGroup/RadioGroup.js +14 -14
- package/legacy/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/legacy/Tooltip/Tooltip.js +1 -1
- package/legacy/index.js +1 -1
- package/locale/index.d.ts +72 -72
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +1 -1
- package/modern/Chip/Chip.js +8 -4
- package/modern/FormControl/FormControl.js +29 -29
- package/modern/ListItem/ListItem.js +2 -2
- package/modern/ListItemButton/ListItemButton.js +2 -2
- package/modern/MenuItem/MenuItem.js +2 -2
- package/modern/Radio/Radio.js +2 -1
- package/modern/RadioGroup/RadioGroup.js +12 -12
- package/modern/SwipeableDrawer/SwipeableDrawer.js +9 -2
- package/modern/Tooltip/Tooltip.js +1 -1
- 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 +84 -70
- package/umd/material-ui.production.min.js +20 -20
- 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,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;
|
package/ListItem/ListItem.js
CHANGED
|
@@ -198,11 +198,11 @@ const ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {
|
|
|
198
198
|
ContainerProps = (0, _objectWithoutPropertiesLoose2.default)(props.ContainerProps, _excluded),
|
|
199
199
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded2);
|
|
200
200
|
const context = React.useContext(_ListContext.default);
|
|
201
|
-
const childContext = {
|
|
201
|
+
const childContext = React.useMemo(() => ({
|
|
202
202
|
dense: dense || context.dense || false,
|
|
203
203
|
alignItems,
|
|
204
204
|
disableGutters
|
|
205
|
-
};
|
|
205
|
+
}), [alignItems, context.dense, dense, disableGutters]);
|
|
206
206
|
const listItemRef = React.useRef(null);
|
|
207
207
|
(0, _useEnhancedEffect.default)(() => {
|
|
208
208
|
if (autoFocus) {
|
|
@@ -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;
|
|
@@ -150,11 +150,11 @@ const ListItemButton = /*#__PURE__*/React.forwardRef(function ListItemButton(inP
|
|
|
150
150
|
} = props,
|
|
151
151
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
152
152
|
const context = React.useContext(_ListContext.default);
|
|
153
|
-
const childContext = {
|
|
153
|
+
const childContext = React.useMemo(() => ({
|
|
154
154
|
dense: dense || context.dense || false,
|
|
155
155
|
alignItems,
|
|
156
156
|
disableGutters
|
|
157
|
-
};
|
|
157
|
+
}), [alignItems, context.dense, dense, disableGutters]);
|
|
158
158
|
const listItemRef = React.useRef(null);
|
|
159
159
|
(0, _useEnhancedEffect.default)(() => {
|
|
160
160
|
if (autoFocus) {
|
|
@@ -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
|
@@ -176,10 +176,10 @@ const MenuItem = /*#__PURE__*/React.forwardRef(function MenuItem(inProps, ref) {
|
|
|
176
176
|
} = props,
|
|
177
177
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
178
178
|
const context = React.useContext(_ListContext.default);
|
|
179
|
-
const childContext = {
|
|
179
|
+
const childContext = React.useMemo(() => ({
|
|
180
180
|
dense: dense || context.dense || false,
|
|
181
181
|
disableGutters
|
|
182
|
-
};
|
|
182
|
+
}), [context.dense, dense, disableGutters]);
|
|
183
183
|
const menuItemRef = React.useRef(null);
|
|
184
184
|
(0, _useEnhancedEffect.default)(() => {
|
|
185
185
|
if (autoFocus) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface MenuItemClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if keyboard focused. */
|
|
5
|
-
focusVisible: string;
|
|
6
|
-
/** Styles applied to the root element if dense. */
|
|
7
|
-
dense: string;
|
|
8
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
-
disabled: string;
|
|
10
|
-
/** Styles applied to the root element if `divider={true}`. */
|
|
11
|
-
divider: string;
|
|
12
|
-
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
13
|
-
gutters: string;
|
|
14
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
15
|
-
selected: string;
|
|
16
|
-
}
|
|
17
|
-
export declare type MenuItemClassKey = keyof MenuItemClasses;
|
|
18
|
-
export declare function getMenuItemUtilityClass(slot: string): string;
|
|
19
|
-
declare const menuItemClasses: MenuItemClasses;
|
|
20
|
-
export default menuItemClasses;
|
|
1
|
+
export interface MenuItemClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if keyboard focused. */
|
|
5
|
+
focusVisible: string;
|
|
6
|
+
/** Styles applied to the root element if dense. */
|
|
7
|
+
dense: string;
|
|
8
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
9
|
+
disabled: string;
|
|
10
|
+
/** Styles applied to the root element if `divider={true}`. */
|
|
11
|
+
divider: string;
|
|
12
|
+
/** Styles applied to the inner `component` element unless `disableGutters={true}`. */
|
|
13
|
+
gutters: string;
|
|
14
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
15
|
+
selected: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type MenuItemClassKey = keyof MenuItemClasses;
|
|
18
|
+
export declare function getMenuItemUtilityClass(slot: string): string;
|
|
19
|
+
declare const menuItemClasses: MenuItemClasses;
|
|
20
|
+
export default menuItemClasses;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export interface MobileStepperClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `position="bottom"`. */
|
|
5
|
-
positionBottom: string;
|
|
6
|
-
/** Styles applied to the root element if `position="top"`. */
|
|
7
|
-
positionTop: string;
|
|
8
|
-
/** Styles applied to the root element if `position="static"`. */
|
|
9
|
-
positionStatic: string;
|
|
10
|
-
/** Styles applied to the dots container if `variant="dots"`. */
|
|
11
|
-
dots: string;
|
|
12
|
-
/** Styles applied to each dot if `variant="dots"`. */
|
|
13
|
-
dot: string;
|
|
14
|
-
/** Styles applied to a dot if `variant="dots"` and this is the active step. */
|
|
15
|
-
dotActive: string;
|
|
16
|
-
/** Styles applied to the Linear Progress component if `variant="progress"`. */
|
|
17
|
-
progress: string;
|
|
18
|
-
}
|
|
19
|
-
export declare type MobileStepperClassKey = keyof MobileStepperClasses;
|
|
20
|
-
export declare function getMobileStepperUtilityClass(slot: string): string;
|
|
21
|
-
declare const mobileStepperClasses: MobileStepperClasses;
|
|
22
|
-
export default mobileStepperClasses;
|
|
1
|
+
export interface MobileStepperClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `position="bottom"`. */
|
|
5
|
+
positionBottom: string;
|
|
6
|
+
/** Styles applied to the root element if `position="top"`. */
|
|
7
|
+
positionTop: string;
|
|
8
|
+
/** Styles applied to the root element if `position="static"`. */
|
|
9
|
+
positionStatic: string;
|
|
10
|
+
/** Styles applied to the dots container if `variant="dots"`. */
|
|
11
|
+
dots: string;
|
|
12
|
+
/** Styles applied to each dot if `variant="dots"`. */
|
|
13
|
+
dot: string;
|
|
14
|
+
/** Styles applied to a dot if `variant="dots"` and this is the active step. */
|
|
15
|
+
dotActive: string;
|
|
16
|
+
/** Styles applied to the Linear Progress component if `variant="progress"`. */
|
|
17
|
+
progress: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type MobileStepperClassKey = keyof MobileStepperClasses;
|
|
20
|
+
export declare function getMobileStepperUtilityClass(slot: string): string;
|
|
21
|
+
declare const mobileStepperClasses: MobileStepperClasses;
|
|
22
|
+
export default mobileStepperClasses;
|