@mui/material 5.8.0 → 5.8.3
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.js +4 -1
- 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 +76 -76
- package/ButtonBase/TouchRipple.js +5 -5
- 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 +203 -6
- 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 +4 -4
- package/Checkbox/checkboxClasses.d.ts +18 -18
- package/Chip/chipClasses.d.ts +80 -80
- 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/Fab.js +3 -1
- 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/Grow/Grow.js +4 -3
- 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 +44 -44
- package/InputLabel/InputLabel.d.ts +5 -0
- package/InputLabel/InputLabel.js +6 -0
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- 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 +7 -1
- 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/MenuList/MenuList.d.ts +1 -1
- package/MenuList/MenuList.js +1 -1
- package/MobileStepper/mobileStepperClasses.d.ts +22 -22
- package/NativeSelect/nativeSelectClasses.d.ts +32 -32
- package/OutlinedInput/outlinedInputClasses.d.ts +36 -36
- package/Pagination/paginationClasses.d.ts +14 -14
- package/PaginationItem/paginationItemClasses.d.ts +42 -42
- package/Paper/Paper.js +20 -15
- package/Paper/index.d.ts +1 -1
- package/Paper/paperClasses.d.ts +39 -39
- package/Popover/popoverClasses.d.ts +10 -10
- package/Popper/Popper.d.ts +29 -29
- package/README.md +7 -3
- package/Radio/Radio.js +4 -4
- 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/SelectInput.js +2 -2
- package/Select/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +24 -24
- package/Slider/Slider.js +21 -12
- 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 +24 -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/Tabs.js +2 -2
- 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/tooltipClasses.d.ts +30 -30
- package/Typography/typographyClasses.d.ts +50 -50
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Alert/Alert.js +4 -1
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/ButtonBase/TouchRipple.js +5 -5
- package/legacy/Checkbox/Checkbox.js +4 -4
- package/legacy/Fab/Fab.js +3 -1
- package/legacy/Grow/Grow.js +4 -3
- package/legacy/InputLabel/InputLabel.js +6 -0
- package/legacy/ListItemButton/ListItemButton.js +7 -1
- package/legacy/MenuList/MenuList.js +1 -1
- package/legacy/Paper/Paper.js +10 -7
- package/legacy/Radio/Radio.js +4 -4
- package/legacy/Select/SelectInput.js +2 -2
- package/legacy/Slider/Slider.js +21 -17
- package/legacy/Tabs/Tabs.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/styles/CssVarsProvider.js +3 -0
- package/legacy/styles/createMixins.js +4 -2
- package/legacy/styles/experimental_extendTheme.js +22 -3
- package/locale/index.d.ts +71 -71
- package/modern/Alert/Alert.js +4 -1
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/ButtonBase/TouchRipple.js +5 -5
- package/modern/Checkbox/Checkbox.js +4 -4
- package/modern/Fab/Fab.js +3 -1
- package/modern/Grow/Grow.js +4 -3
- package/modern/InputLabel/InputLabel.js +6 -0
- package/modern/ListItemButton/ListItemButton.js +7 -1
- package/modern/MenuList/MenuList.js +1 -1
- package/modern/Paper/Paper.js +8 -7
- package/modern/Radio/Radio.js +4 -4
- package/modern/Select/SelectInput.js +2 -2
- package/modern/Slider/Slider.js +21 -12
- package/modern/Tabs/Tabs.js +2 -2
- package/modern/index.js +1 -1
- package/modern/styles/CssVarsProvider.js +3 -0
- package/modern/styles/createMixins.js +4 -2
- package/modern/styles/experimental_extendTheme.js +18 -2
- package/node/Alert/Alert.js +4 -1
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/ButtonBase/TouchRipple.js +5 -5
- package/node/Checkbox/Checkbox.js +4 -4
- package/node/Fab/Fab.js +3 -1
- package/node/Grow/Grow.js +4 -3
- package/node/InputLabel/InputLabel.js +6 -0
- package/node/ListItemButton/ListItemButton.js +7 -1
- package/node/MenuList/MenuList.js +1 -1
- package/node/Paper/Paper.js +22 -14
- package/node/Radio/Radio.js +4 -4
- package/node/Select/SelectInput.js +2 -2
- package/node/Slider/Slider.js +21 -12
- package/node/Tabs/Tabs.js +2 -2
- package/node/index.js +1 -1
- package/node/styles/CssVarsProvider.js +3 -0
- package/node/styles/createMixins.js +4 -2
- package/node/styles/experimental_extendTheme.js +20 -3
- package/package.json +4 -4
- package/styles/CssVarsProvider.js +3 -0
- package/styles/createMixins.js +4 -2
- package/styles/createPalette.d.ts +1 -1
- package/styles/experimental_extendTheme.d.ts +30 -0
- package/styles/experimental_extendTheme.js +19 -3
- package/styles/index.d.ts +1 -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 +346 -268
- package/umd/material-ui.production.min.js +13 -13
- 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,8 +1,8 @@
|
|
|
1
|
-
export interface BottomNavigationClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export declare type BottomNavigationClassKey = keyof BottomNavigationClasses;
|
|
6
|
-
export declare function getBottomNavigationUtilityClass(slot: string): string;
|
|
7
|
-
declare const bottomNavigationClasses: BottomNavigationClasses;
|
|
8
|
-
export default bottomNavigationClasses;
|
|
1
|
+
export interface BottomNavigationClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export declare type BottomNavigationClassKey = keyof BottomNavigationClasses;
|
|
6
|
+
export declare function getBottomNavigationUtilityClass(slot: string): string;
|
|
7
|
+
declare const bottomNavigationClasses: BottomNavigationClasses;
|
|
8
|
+
export default bottomNavigationClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface BottomNavigationActionClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if selected. */
|
|
5
|
-
selected: string;
|
|
6
|
-
/** State class applied to the root element if `showLabel={false}` and not selected. */
|
|
7
|
-
iconOnly: string;
|
|
8
|
-
/** Styles applied to the label's span element. */
|
|
9
|
-
label: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
|
|
12
|
-
export declare function getBottomNavigationActionUtilityClass(slot: string): string;
|
|
13
|
-
declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
|
|
14
|
-
export default bottomNavigationActionClasses;
|
|
1
|
+
export interface BottomNavigationActionClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if selected. */
|
|
5
|
+
selected: string;
|
|
6
|
+
/** State class applied to the root element if `showLabel={false}` and not selected. */
|
|
7
|
+
iconOnly: string;
|
|
8
|
+
/** Styles applied to the label's span element. */
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
|
|
12
|
+
export declare function getBottomNavigationActionUtilityClass(slot: string): string;
|
|
13
|
+
declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
|
|
14
|
+
export default bottomNavigationActionClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface BreadcrumbsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the ol element. */
|
|
5
|
-
ol: string;
|
|
6
|
-
/** Styles applied to the li element. */
|
|
7
|
-
li: string;
|
|
8
|
-
/** Styles applied to the separator element. */
|
|
9
|
-
separator: string;
|
|
10
|
-
}
|
|
11
|
-
export declare type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
|
|
12
|
-
export declare function getBreadcrumbsUtilityClass(slot: string): string;
|
|
13
|
-
declare const breadcrumbsClasses: BreadcrumbsClasses;
|
|
14
|
-
export default breadcrumbsClasses;
|
|
1
|
+
export interface BreadcrumbsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the ol element. */
|
|
5
|
+
ol: string;
|
|
6
|
+
/** Styles applied to the li element. */
|
|
7
|
+
li: string;
|
|
8
|
+
/** Styles applied to the separator element. */
|
|
9
|
+
separator: string;
|
|
10
|
+
}
|
|
11
|
+
export declare type BreadcrumbsClassKey = keyof BreadcrumbsClasses;
|
|
12
|
+
export declare function getBreadcrumbsUtilityClass(slot: string): string;
|
|
13
|
+
declare const breadcrumbsClasses: BreadcrumbsClasses;
|
|
14
|
+
export default breadcrumbsClasses;
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
export interface ButtonClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="text"`. */
|
|
5
|
-
text: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
|
|
7
|
-
textInherit: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
9
|
-
textPrimary: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
11
|
-
textSecondary: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
13
|
-
outlined: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
|
|
15
|
-
outlinedInherit: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
17
|
-
outlinedPrimary: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
19
|
-
outlinedSecondary: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="contained"`. */
|
|
21
|
-
contained: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
|
|
23
|
-
containedInherit: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
|
|
25
|
-
containedPrimary: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
|
|
27
|
-
containedSecondary: string;
|
|
28
|
-
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
29
|
-
disableElevation: string;
|
|
30
|
-
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
31
|
-
focusVisible: string;
|
|
32
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
33
|
-
disabled: string;
|
|
34
|
-
/** Styles applied to the root element if `color="inherit"`. */
|
|
35
|
-
colorInherit: string;
|
|
36
|
-
/** Styles applied to the root element if `size="small"` and `variant="text"`. */
|
|
37
|
-
textSizeSmall: string;
|
|
38
|
-
/** Styles applied to the root element if `size="medium"` and `variant="text"`. */
|
|
39
|
-
textSizeMedium: string;
|
|
40
|
-
/** Styles applied to the root element if `size="large"` and `variant="text"`. */
|
|
41
|
-
textSizeLarge: string;
|
|
42
|
-
/** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
|
|
43
|
-
outlinedSizeSmall: string;
|
|
44
|
-
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
|
|
45
|
-
outlinedSizeMedium: string;
|
|
46
|
-
/** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
|
|
47
|
-
outlinedSizeLarge: string;
|
|
48
|
-
/** Styles applied to the root element if `size="small"` and `variant="contained"`. */
|
|
49
|
-
containedSizeSmall: string;
|
|
50
|
-
/** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
|
|
51
|
-
containedSizeMedium: string;
|
|
52
|
-
/** Styles applied to the root element if `size="large"` and `variant="contained"`. */
|
|
53
|
-
containedSizeLarge: string;
|
|
54
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
55
|
-
sizeSmall: string;
|
|
56
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
57
|
-
sizeMedium: string;
|
|
58
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
59
|
-
sizeLarge: string;
|
|
60
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
61
|
-
fullWidth: string;
|
|
62
|
-
/** Styles applied to the startIcon element if supplied. */
|
|
63
|
-
startIcon: string;
|
|
64
|
-
/** Styles applied to the endIcon element if supplied. */
|
|
65
|
-
endIcon: string;
|
|
66
|
-
/** Styles applied to the icon element if supplied and `size="small"`. */
|
|
67
|
-
iconSizeSmall: string;
|
|
68
|
-
/** Styles applied to the icon element if supplied and `size="medium"`. */
|
|
69
|
-
iconSizeMedium: string;
|
|
70
|
-
/** Styles applied to the icon element if supplied and `size="large"`. */
|
|
71
|
-
iconSizeLarge: string;
|
|
72
|
-
}
|
|
73
|
-
export declare type ButtonClassKey = keyof ButtonClasses;
|
|
74
|
-
export declare function getButtonUtilityClass(slot: string): string;
|
|
75
|
-
declare const buttonClasses: ButtonClasses;
|
|
76
|
-
export default buttonClasses;
|
|
1
|
+
export interface ButtonClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="text"`. */
|
|
5
|
+
text: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="text"` and `color="inherit"`. */
|
|
7
|
+
textInherit: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="text"` and `color="primary"`. */
|
|
9
|
+
textPrimary: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="text"` and `color="secondary"`. */
|
|
11
|
+
textSecondary: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
13
|
+
outlined: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="inherit"`. */
|
|
15
|
+
outlinedInherit: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="primary"`. */
|
|
17
|
+
outlinedPrimary: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="outlined"` and `color="secondary"`. */
|
|
19
|
+
outlinedSecondary: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="contained"`. */
|
|
21
|
+
contained: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="contained"` and `color="inherit"`. */
|
|
23
|
+
containedInherit: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="contained"` and `color="primary"`. */
|
|
25
|
+
containedPrimary: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="contained"` and `color="secondary"`. */
|
|
27
|
+
containedSecondary: string;
|
|
28
|
+
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
29
|
+
disableElevation: string;
|
|
30
|
+
/** State class applied to the ButtonBase root element if the button is keyboard focused. */
|
|
31
|
+
focusVisible: string;
|
|
32
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
33
|
+
disabled: string;
|
|
34
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
35
|
+
colorInherit: string;
|
|
36
|
+
/** Styles applied to the root element if `size="small"` and `variant="text"`. */
|
|
37
|
+
textSizeSmall: string;
|
|
38
|
+
/** Styles applied to the root element if `size="medium"` and `variant="text"`. */
|
|
39
|
+
textSizeMedium: string;
|
|
40
|
+
/** Styles applied to the root element if `size="large"` and `variant="text"`. */
|
|
41
|
+
textSizeLarge: string;
|
|
42
|
+
/** Styles applied to the root element if `size="small"` and `variant="outlined"`. */
|
|
43
|
+
outlinedSizeSmall: string;
|
|
44
|
+
/** Styles applied to the root element if `size="medium"` and `variant="outlined"`. */
|
|
45
|
+
outlinedSizeMedium: string;
|
|
46
|
+
/** Styles applied to the root element if `size="large"` and `variant="outlined"`. */
|
|
47
|
+
outlinedSizeLarge: string;
|
|
48
|
+
/** Styles applied to the root element if `size="small"` and `variant="contained"`. */
|
|
49
|
+
containedSizeSmall: string;
|
|
50
|
+
/** Styles applied to the root element if `size="medium"` and `variant="contained"`. */
|
|
51
|
+
containedSizeMedium: string;
|
|
52
|
+
/** Styles applied to the root element if `size="large"` and `variant="contained"`. */
|
|
53
|
+
containedSizeLarge: string;
|
|
54
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
55
|
+
sizeSmall: string;
|
|
56
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
57
|
+
sizeMedium: string;
|
|
58
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
59
|
+
sizeLarge: string;
|
|
60
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
61
|
+
fullWidth: string;
|
|
62
|
+
/** Styles applied to the startIcon element if supplied. */
|
|
63
|
+
startIcon: string;
|
|
64
|
+
/** Styles applied to the endIcon element if supplied. */
|
|
65
|
+
endIcon: string;
|
|
66
|
+
/** Styles applied to the icon element if supplied and `size="small"`. */
|
|
67
|
+
iconSizeSmall: string;
|
|
68
|
+
/** Styles applied to the icon element if supplied and `size="medium"`. */
|
|
69
|
+
iconSizeMedium: string;
|
|
70
|
+
/** Styles applied to the icon element if supplied and `size="large"`. */
|
|
71
|
+
iconSizeLarge: string;
|
|
72
|
+
}
|
|
73
|
+
export declare type ButtonClassKey = keyof ButtonClasses;
|
|
74
|
+
export declare function getButtonUtilityClass(slot: string): string;
|
|
75
|
+
declare const buttonClasses: ButtonClasses;
|
|
76
|
+
export default buttonClasses;
|
|
@@ -199,12 +199,12 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
199
199
|
|
|
200
200
|
} = options;
|
|
201
201
|
|
|
202
|
-
if (event.type === 'mousedown' && ignoringMouseDown.current) {
|
|
202
|
+
if ((event == null ? void 0 : event.type) === 'mousedown' && ignoringMouseDown.current) {
|
|
203
203
|
ignoringMouseDown.current = false;
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
if (event.type === 'touchstart') {
|
|
207
|
+
if ((event == null ? void 0 : event.type) === 'touchstart') {
|
|
208
208
|
ignoringMouseDown.current = true;
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -220,7 +220,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
220
220
|
let rippleY;
|
|
221
221
|
let rippleSize;
|
|
222
222
|
|
|
223
|
-
if (center || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
223
|
+
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
|
224
224
|
rippleX = Math.round(rect.width / 2);
|
|
225
225
|
rippleY = Math.round(rect.height / 2);
|
|
226
226
|
} else {
|
|
@@ -245,7 +245,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
245
245
|
} // Touche devices
|
|
246
246
|
|
|
247
247
|
|
|
248
|
-
if (event.touches) {
|
|
248
|
+
if (event != null && event.touches) {
|
|
249
249
|
// check that this isn't another touchstart due to multitouch
|
|
250
250
|
// otherwise we will only clear a single timer when unmounting while two
|
|
251
251
|
// are running
|
|
@@ -288,7 +288,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
288
288
|
clearTimeout(startTimer.current); // The touch interaction occurs too quickly.
|
|
289
289
|
// We still want to show ripple effect.
|
|
290
290
|
|
|
291
|
-
if (event.type === 'touchend' && startTimerCommit.current) {
|
|
291
|
+
if ((event == null ? void 0 : event.type) === 'touchend' && startTimerCommit.current) {
|
|
292
292
|
startTimerCommit.current();
|
|
293
293
|
startTimerCommit.current = null;
|
|
294
294
|
startTimer.current = setTimeout(() => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface ButtonBaseClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
-
disabled: string;
|
|
6
|
-
/** State class applied to the root element if keyboard focused. */
|
|
7
|
-
focusVisible: string;
|
|
8
|
-
}
|
|
9
|
-
export declare type ButtonBaseClassKey = keyof ButtonBaseClasses;
|
|
10
|
-
export declare function getButtonBaseUtilityClass(slot: string): string;
|
|
11
|
-
declare const buttonBaseClasses: ButtonBaseClasses;
|
|
12
|
-
export default buttonBaseClasses;
|
|
1
|
+
export interface ButtonBaseClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
5
|
+
disabled: string;
|
|
6
|
+
/** State class applied to the root element if keyboard focused. */
|
|
7
|
+
focusVisible: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type ButtonBaseClassKey = keyof ButtonBaseClasses;
|
|
10
|
+
export declare function getButtonBaseUtilityClass(slot: string): string;
|
|
11
|
+
declare const buttonBaseClasses: ButtonBaseClasses;
|
|
12
|
+
export default buttonBaseClasses;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export interface TouchRippleClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the internal `Ripple` components `ripple` class. */
|
|
5
|
-
ripple: string;
|
|
6
|
-
/** Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
|
7
|
-
rippleVisible: string;
|
|
8
|
-
/** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
|
9
|
-
ripplePulsate: string;
|
|
10
|
-
/** Styles applied to the internal `Ripple` components `child` class. */
|
|
11
|
-
child: string;
|
|
12
|
-
/** Styles applied to the internal `Ripple` components `childLeaving` class. */
|
|
13
|
-
childLeaving: string;
|
|
14
|
-
/** Styles applied to the internal `Ripple` components `childPulsate` class. */
|
|
15
|
-
childPulsate: string;
|
|
16
|
-
}
|
|
17
|
-
export declare type TouchRippleClassKey = keyof TouchRippleClasses;
|
|
18
|
-
export declare function getTouchRippleUtilityClass(slot: string): string;
|
|
19
|
-
declare const touchRippleClasses: TouchRippleClasses;
|
|
20
|
-
export default touchRippleClasses;
|
|
1
|
+
export interface TouchRippleClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the internal `Ripple` components `ripple` class. */
|
|
5
|
+
ripple: string;
|
|
6
|
+
/** Styles applied to the internal `Ripple` components `rippleVisible` class. */
|
|
7
|
+
rippleVisible: string;
|
|
8
|
+
/** Styles applied to the internal `Ripple` components `ripplePulsate` class. */
|
|
9
|
+
ripplePulsate: string;
|
|
10
|
+
/** Styles applied to the internal `Ripple` components `child` class. */
|
|
11
|
+
child: string;
|
|
12
|
+
/** Styles applied to the internal `Ripple` components `childLeaving` class. */
|
|
13
|
+
childLeaving: string;
|
|
14
|
+
/** Styles applied to the internal `Ripple` components `childPulsate` class. */
|
|
15
|
+
childPulsate: string;
|
|
16
|
+
}
|
|
17
|
+
export declare type TouchRippleClassKey = keyof TouchRippleClasses;
|
|
18
|
+
export declare function getTouchRippleUtilityClass(slot: string): string;
|
|
19
|
+
declare const touchRippleClasses: TouchRippleClasses;
|
|
20
|
+
export default touchRippleClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { ButtonGroupProps } from './ButtonGroup';
|
|
3
|
-
interface IButtonGroupContext {
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: ButtonGroupProps['color'];
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
disableElevation?: boolean;
|
|
8
|
-
disableFocusRipple?: boolean;
|
|
9
|
-
disableRipple?: boolean;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
size?: ButtonGroupProps['size'];
|
|
12
|
-
variant?: ButtonGroupProps['variant'];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @ignore - internal component.
|
|
16
|
-
*/
|
|
17
|
-
declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
|
|
18
|
-
export default ButtonGroupContext;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
interface IButtonGroupContext {
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: ButtonGroupProps['color'];
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
disableElevation?: boolean;
|
|
8
|
+
disableFocusRipple?: boolean;
|
|
9
|
+
disableRipple?: boolean;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
size?: ButtonGroupProps['size'];
|
|
12
|
+
variant?: ButtonGroupProps['variant'];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @ignore - internal component.
|
|
16
|
+
*/
|
|
17
|
+
declare const ButtonGroupContext: React.Context<IButtonGroupContext>;
|
|
18
|
+
export default ButtonGroupContext;
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
export interface ButtonGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="contained"`. */
|
|
5
|
-
contained: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
-
outlined: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="text"`. */
|
|
9
|
-
text: string;
|
|
10
|
-
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
11
|
-
disableElevation: string;
|
|
12
|
-
/** State class applied to the child elements if `disabled={true}`. */
|
|
13
|
-
disabled: string;
|
|
14
|
-
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
15
|
-
fullWidth: string;
|
|
16
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
17
|
-
vertical: string;
|
|
18
|
-
/** Styles applied to the children. */
|
|
19
|
-
grouped: string;
|
|
20
|
-
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
21
|
-
groupedHorizontal: string;
|
|
22
|
-
/** Styles applied to the children if `orientation="vertical"`. */
|
|
23
|
-
groupedVertical: string;
|
|
24
|
-
/** Styles applied to the children if `variant="text"`. */
|
|
25
|
-
groupedText: string;
|
|
26
|
-
/** Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
|
|
27
|
-
groupedTextHorizontal: string;
|
|
28
|
-
/** Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
|
|
29
|
-
groupedTextVertical: string;
|
|
30
|
-
/** Styles applied to the children if `variant="text"` and `color="primary"`. */
|
|
31
|
-
groupedTextPrimary: string;
|
|
32
|
-
/** Styles applied to the children if `variant="text"` and `color="secondary"`. */
|
|
33
|
-
groupedTextSecondary: string;
|
|
34
|
-
/** Styles applied to the children if `variant="outlined"`. */
|
|
35
|
-
groupedOutlined: string;
|
|
36
|
-
/** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
|
|
37
|
-
groupedOutlinedHorizontal: string;
|
|
38
|
-
/** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
|
|
39
|
-
groupedOutlinedVertical: string;
|
|
40
|
-
/** Styles applied to the children if `variant="outlined"` and `color="primary"`. */
|
|
41
|
-
groupedOutlinedPrimary: string;
|
|
42
|
-
/** Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
|
|
43
|
-
groupedOutlinedSecondary: string;
|
|
44
|
-
/** Styles applied to the children if `variant="contained"`. */
|
|
45
|
-
groupedContained: string;
|
|
46
|
-
/** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
|
|
47
|
-
groupedContainedHorizontal: string;
|
|
48
|
-
/** Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
|
|
49
|
-
groupedContainedVertical: string;
|
|
50
|
-
/** Styles applied to the children if `variant="contained"` and `color="primary"`. */
|
|
51
|
-
groupedContainedPrimary: string;
|
|
52
|
-
/** Styles applied to the children if `variant="contained"` and `color="secondary"`. */
|
|
53
|
-
groupedContainedSecondary: string;
|
|
54
|
-
}
|
|
55
|
-
export declare type ButtonGroupClassKey = keyof ButtonGroupClasses;
|
|
56
|
-
export declare function getButtonGroupUtilityClass(slot: string): string;
|
|
57
|
-
declare const buttonGroupClasses: ButtonGroupClasses;
|
|
58
|
-
export default buttonGroupClasses;
|
|
1
|
+
export interface ButtonGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="contained"`. */
|
|
5
|
+
contained: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="outlined"`. */
|
|
7
|
+
outlined: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="text"`. */
|
|
9
|
+
text: string;
|
|
10
|
+
/** Styles applied to the root element if `disableElevation={true}`. */
|
|
11
|
+
disableElevation: string;
|
|
12
|
+
/** State class applied to the child elements if `disabled={true}`. */
|
|
13
|
+
disabled: string;
|
|
14
|
+
/** Styles applied to the root element if `fullWidth={true}`. */
|
|
15
|
+
fullWidth: string;
|
|
16
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
17
|
+
vertical: string;
|
|
18
|
+
/** Styles applied to the children. */
|
|
19
|
+
grouped: string;
|
|
20
|
+
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
21
|
+
groupedHorizontal: string;
|
|
22
|
+
/** Styles applied to the children if `orientation="vertical"`. */
|
|
23
|
+
groupedVertical: string;
|
|
24
|
+
/** Styles applied to the children if `variant="text"`. */
|
|
25
|
+
groupedText: string;
|
|
26
|
+
/** Styles applied to the children if `variant="text"` and `orientation="horizontal"`. */
|
|
27
|
+
groupedTextHorizontal: string;
|
|
28
|
+
/** Styles applied to the children if `variant="text"` and `orientation="vertical"`. */
|
|
29
|
+
groupedTextVertical: string;
|
|
30
|
+
/** Styles applied to the children if `variant="text"` and `color="primary"`. */
|
|
31
|
+
groupedTextPrimary: string;
|
|
32
|
+
/** Styles applied to the children if `variant="text"` and `color="secondary"`. */
|
|
33
|
+
groupedTextSecondary: string;
|
|
34
|
+
/** Styles applied to the children if `variant="outlined"`. */
|
|
35
|
+
groupedOutlined: string;
|
|
36
|
+
/** Styles applied to the children if `variant="outlined"` and `orientation="horizontal"`. */
|
|
37
|
+
groupedOutlinedHorizontal: string;
|
|
38
|
+
/** Styles applied to the children if `variant="outlined"` and `orientation="vertical"`. */
|
|
39
|
+
groupedOutlinedVertical: string;
|
|
40
|
+
/** Styles applied to the children if `variant="outlined"` and `color="primary"`. */
|
|
41
|
+
groupedOutlinedPrimary: string;
|
|
42
|
+
/** Styles applied to the children if `variant="outlined"` and `color="secondary"`. */
|
|
43
|
+
groupedOutlinedSecondary: string;
|
|
44
|
+
/** Styles applied to the children if `variant="contained"`. */
|
|
45
|
+
groupedContained: string;
|
|
46
|
+
/** Styles applied to the children if `variant="contained"` and `orientation="horizontal"`. */
|
|
47
|
+
groupedContainedHorizontal: string;
|
|
48
|
+
/** Styles applied to the children if `variant="contained"` and `orientation="vertical"`. */
|
|
49
|
+
groupedContainedVertical: string;
|
|
50
|
+
/** Styles applied to the children if `variant="contained"` and `color="primary"`. */
|
|
51
|
+
groupedContainedPrimary: string;
|
|
52
|
+
/** Styles applied to the children if `variant="contained"` and `color="secondary"`. */
|
|
53
|
+
groupedContainedSecondary: string;
|
|
54
|
+
}
|
|
55
|
+
export declare type ButtonGroupClassKey = keyof ButtonGroupClasses;
|
|
56
|
+
export declare function getButtonGroupUtilityClass(slot: string): string;
|
|
57
|
+
declare const buttonGroupClasses: ButtonGroupClasses;
|
|
58
|
+
export default buttonGroupClasses;
|