@mui/material 5.11.13 → 5.11.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/accordionClasses.d.ts +18 -18
- package/AccordionActions/accordionActionsClasses.d.ts +10 -10
- package/AccordionDetails/accordionDetailsClasses.d.ts +8 -8
- package/AccordionSummary/accordionSummaryClasses.d.ts +22 -22
- package/Alert/alertClasses.d.ts +44 -44
- package/AlertTitle/alertTitleClasses.d.ts +8 -8
- package/AppBar/appBarClasses.d.ts +28 -28
- package/Autocomplete/Autocomplete.js +3 -0
- package/Autocomplete/autocompleteClasses.d.ts +56 -56
- 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/BreadcrumbCollapsed.js +26 -3
- package/Breadcrumbs/Breadcrumbs.d.ts +31 -0
- package/Breadcrumbs/Breadcrumbs.js +30 -2
- package/Breadcrumbs/breadcrumbsClasses.d.ts +14 -14
- package/Button/buttonClasses.d.ts +100 -100
- package/ButtonBase/buttonBaseClasses.d.ts +12 -12
- package/ButtonBase/touchRippleClasses.d.ts +20 -20
- package/ButtonGroup/ButtonGroupContext.d.ts +18 -18
- package/ButtonGroup/buttonGroupClasses.d.ts +58 -58
- package/CHANGELOG.md +123 -3
- 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 +2 -3
- 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/FormControlContext.d.ts +17 -17
- package/FormControl/formControlClasses.d.ts +14 -14
- package/FormControl/useFormControl.d.ts +2 -2
- package/FormControlLabel/formControlLabelClasses.d.ts +20 -20
- package/FormGroup/formGroupClasses.d.ts +12 -12
- package/FormHelperText/formHelperTextClasses.d.ts +22 -22
- package/FormLabel/formLabelClasses.d.ts +22 -22
- package/Grid/gridClasses.d.ts +48 -48
- package/Icon/iconClasses.d.ts +24 -24
- package/IconButton/iconButtonClasses.d.ts +34 -34
- package/ImageList/imageListClasses.d.ts +16 -16
- package/ImageListItem/imageListItemClasses.d.ts +18 -18
- package/ImageListItemBar/imageListItemBarClasses.d.ts +30 -30
- package/Input/inputClasses.d.ts +34 -34
- package/InputAdornment/inputAdornmentClasses.d.ts +24 -24
- package/InputBase/inputBaseClasses.d.ts +46 -46
- package/InputLabel/inputLabelClasses.d.ts +32 -32
- package/LinearProgress/linearProgressClasses.d.ts +42 -42
- package/Link/getTextDecoration.d.ts +15 -15
- package/Link/linkClasses.d.ts +18 -18
- package/List/listClasses.d.ts +14 -14
- package/ListItem/listItemClasses.d.ts +30 -30
- package/ListItemAvatar/listItemAvatarClasses.d.ts +10 -10
- package/ListItemButton/ListItemButton.js +4 -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/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/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 +55 -55
- package/README.md +5 -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/selectClasses.d.ts +30 -30
- package/Skeleton/skeletonClasses.d.ts +26 -26
- package/Slider/SliderValueLabel.d.ts +15 -15
- package/Slider/SliderValueLabel.types.d.ts +24 -24
- package/Slider/sliderClasses.d.ts +58 -58
- 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/Stack/Stack.d.ts +10 -0
- package/Stack/Stack.js +11 -1
- package/Stack/stackClasses.d.ts +6 -6
- package/Step/StepContext.d.ts +20 -20
- package/Step/stepClasses.d.ts +16 -16
- package/StepButton/StepButton.js +4 -2
- package/StepButton/stepButtonClasses.d.ts +14 -14
- package/StepConnector/stepConnectorClasses.d.ts +26 -26
- package/StepContent/stepContentClasses.d.ts +12 -12
- package/StepIcon/stepIconClasses.d.ts +16 -16
- package/StepLabel/stepLabelClasses.d.ts +28 -28
- package/Stepper/StepperContext.d.ts +18 -18
- package/Stepper/stepperClasses.d.ts +14 -14
- package/SvgIcon/svgIconClasses.d.ts +26 -26
- package/Switch/switchClasses.d.ts +32 -32
- package/Tab/tabClasses.d.ts +26 -26
- package/TabScrollButton/TabScrollButton.d.ts +34 -1
- package/TabScrollButton/TabScrollButton.js +41 -8
- 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.d.ts +40 -0
- package/Tabs/Tabs.js +43 -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/Unstable_Grid2/Grid2.d.ts +4 -4
- package/Unstable_Grid2/Grid2Props.d.ts +15 -15
- package/Unstable_Grid2/grid2Classes.d.ts +5 -5
- package/Unstable_Grid2/index.d.ts +4 -4
- package/className/index.d.ts +1 -1
- package/darkScrollbar/index.d.ts +28 -28
- package/generateUtilityClass/index.d.ts +2 -2
- package/generateUtilityClasses/index.d.ts +1 -1
- package/index.js +1 -1
- package/internal/switchBaseClasses.d.ts +12 -12
- package/legacy/Autocomplete/Autocomplete.js +3 -0
- package/legacy/BottomNavigation/BottomNavigation.js +0 -0
- package/legacy/Breadcrumbs/BreadcrumbCollapsed.js +25 -3
- package/legacy/Breadcrumbs/Breadcrumbs.js +32 -2
- package/legacy/Chip/Chip.js +2 -3
- package/legacy/ListItemButton/ListItemButton.js +4 -2
- package/legacy/Stack/Stack.js +11 -1
- package/legacy/StepButton/StepButton.js +4 -2
- package/legacy/TabScrollButton/TabScrollButton.js +43 -8
- package/legacy/Tabs/Tabs.js +45 -2
- package/legacy/index.js +1 -1
- package/legacy/locale/index.js +156 -80
- package/locale/index.d.ts +76 -75
- package/locale/index.js +73 -0
- package/modern/Autocomplete/Autocomplete.js +3 -0
- package/modern/BottomNavigation/BottomNavigation.js +0 -0
- package/modern/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
- package/modern/Breadcrumbs/Breadcrumbs.js +30 -2
- package/modern/Chip/Chip.js +2 -3
- package/modern/ListItemButton/ListItemButton.js +4 -2
- package/modern/Stack/Stack.js +11 -1
- package/modern/StepButton/StepButton.js +4 -2
- package/modern/TabScrollButton/TabScrollButton.js +40 -8
- package/modern/Tabs/Tabs.js +43 -2
- package/modern/index.js +1 -1
- package/modern/locale/index.js +73 -0
- package/node/Autocomplete/Autocomplete.js +3 -0
- package/node/BottomNavigation/BottomNavigation.js +0 -0
- package/node/Breadcrumbs/BreadcrumbCollapsed.js +26 -3
- package/node/Breadcrumbs/Breadcrumbs.js +29 -1
- package/node/Chip/Chip.js +2 -3
- package/node/ListItemButton/ListItemButton.js +4 -2
- package/node/Stack/Stack.js +11 -1
- package/node/StepButton/StepButton.js +4 -2
- package/node/TabScrollButton/TabScrollButton.js +42 -9
- package/node/Tabs/Tabs.js +42 -1
- package/node/index.js +1 -1
- package/node/locale/index.js +75 -1
- package/package.json +4 -4
- package/styles/CssVarsProvider.d.ts +15 -15
- package/styles/excludeVariablesFromRoot.d.ts +5 -5
- package/styles/getOverlayAlpha.d.ts +2 -2
- package/styles/shouldSkipGeneratingVar.d.ts +1 -1
- package/transitions/index.d.ts +1 -1
- package/transitions/transition.d.ts +13 -13
- package/transitions/utils.d.ts +23 -23
- package/types/OverridableComponentAugmentation.d.ts +31 -31
- package/umd/material-ui.development.js +301 -161
- package/umd/material-ui.production.min.js +20 -20
- package/useMediaQuery/useMediaQuery.d.ts +46 -46
- 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,28 +1,28 @@
|
|
|
1
|
-
export interface TablePaginationClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the Toolbar component. */
|
|
5
|
-
toolbar: string;
|
|
6
|
-
/** Styles applied to the spacer element. */
|
|
7
|
-
spacer: string;
|
|
8
|
-
/** Styles applied to the select label Typography element. */
|
|
9
|
-
selectLabel: string;
|
|
10
|
-
/** Styles applied to the Select component `root` element. */
|
|
11
|
-
selectRoot: string;
|
|
12
|
-
/** Styles applied to the Select component `select` class. */
|
|
13
|
-
select: string;
|
|
14
|
-
/** Styles applied to the Select component `icon` class. */
|
|
15
|
-
selectIcon: string;
|
|
16
|
-
/** Styles applied to the Select component `root` element. */
|
|
17
|
-
input: string;
|
|
18
|
-
/** Styles applied to the MenuItem component. */
|
|
19
|
-
menuItem: string;
|
|
20
|
-
/** Styles applied to the displayed rows Typography element. */
|
|
21
|
-
displayedRows: string;
|
|
22
|
-
/** Styles applied to the internal `TablePaginationActions` component. */
|
|
23
|
-
actions: string;
|
|
24
|
-
}
|
|
25
|
-
export type TablePaginationClassKey = keyof TablePaginationClasses;
|
|
26
|
-
export declare function getTablePaginationUtilityClass(slot: string): string;
|
|
27
|
-
declare const tablePaginationClasses: TablePaginationClasses;
|
|
28
|
-
export default tablePaginationClasses;
|
|
1
|
+
export interface TablePaginationClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the Toolbar component. */
|
|
5
|
+
toolbar: string;
|
|
6
|
+
/** Styles applied to the spacer element. */
|
|
7
|
+
spacer: string;
|
|
8
|
+
/** Styles applied to the select label Typography element. */
|
|
9
|
+
selectLabel: string;
|
|
10
|
+
/** Styles applied to the Select component `root` element. */
|
|
11
|
+
selectRoot: string;
|
|
12
|
+
/** Styles applied to the Select component `select` class. */
|
|
13
|
+
select: string;
|
|
14
|
+
/** Styles applied to the Select component `icon` class. */
|
|
15
|
+
selectIcon: string;
|
|
16
|
+
/** Styles applied to the Select component `root` element. */
|
|
17
|
+
input: string;
|
|
18
|
+
/** Styles applied to the MenuItem component. */
|
|
19
|
+
menuItem: string;
|
|
20
|
+
/** Styles applied to the displayed rows Typography element. */
|
|
21
|
+
displayedRows: string;
|
|
22
|
+
/** Styles applied to the internal `TablePaginationActions` component. */
|
|
23
|
+
actions: string;
|
|
24
|
+
}
|
|
25
|
+
export type TablePaginationClassKey = keyof TablePaginationClasses;
|
|
26
|
+
export declare function getTablePaginationUtilityClass(slot: string): string;
|
|
27
|
+
declare const tablePaginationClasses: TablePaginationClasses;
|
|
28
|
+
export default tablePaginationClasses;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TableRowClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `selected={true}`. */
|
|
5
|
-
selected: string;
|
|
6
|
-
/** State class applied to the root element if `hover={true}`. */
|
|
7
|
-
hover: string;
|
|
8
|
-
/** Styles applied to the root element if table variant="head". */
|
|
9
|
-
head: string;
|
|
10
|
-
/** Styles applied to the root element if table variant="footer". */
|
|
11
|
-
footer: string;
|
|
12
|
-
}
|
|
13
|
-
export type TableRowClassKey = keyof TableRowClasses;
|
|
14
|
-
export declare function getTableRowUtilityClass(slot: string): string;
|
|
15
|
-
declare const tableRowClasses: TableRowClasses;
|
|
16
|
-
export default tableRowClasses;
|
|
1
|
+
export interface TableRowClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `selected={true}`. */
|
|
5
|
+
selected: string;
|
|
6
|
+
/** State class applied to the root element if `hover={true}`. */
|
|
7
|
+
hover: string;
|
|
8
|
+
/** Styles applied to the root element if table variant="head". */
|
|
9
|
+
head: string;
|
|
10
|
+
/** Styles applied to the root element if table variant="footer". */
|
|
11
|
+
footer: string;
|
|
12
|
+
}
|
|
13
|
+
export type TableRowClassKey = keyof TableRowClasses;
|
|
14
|
+
export declare function getTableRowUtilityClass(slot: string): string;
|
|
15
|
+
declare const tableRowClasses: TableRowClasses;
|
|
16
|
+
export default tableRowClasses;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export interface TableSortLabelClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** State class applied to the root element if `active={true}`. */
|
|
5
|
-
active: string;
|
|
6
|
-
/** Styles applied to the icon component. */
|
|
7
|
-
icon: string;
|
|
8
|
-
/** Styles applied to the icon component if `direction="desc"`. */
|
|
9
|
-
iconDirectionDesc: string;
|
|
10
|
-
/** Styles applied to the icon component if `direction="asc"`. */
|
|
11
|
-
iconDirectionAsc: string;
|
|
12
|
-
}
|
|
13
|
-
export type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
14
|
-
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
15
|
-
declare const tableSortLabelClasses: TableSortLabelClasses;
|
|
16
|
-
export default tableSortLabelClasses;
|
|
1
|
+
export interface TableSortLabelClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** State class applied to the root element if `active={true}`. */
|
|
5
|
+
active: string;
|
|
6
|
+
/** Styles applied to the icon component. */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** Styles applied to the icon component if `direction="desc"`. */
|
|
9
|
+
iconDirectionDesc: string;
|
|
10
|
+
/** Styles applied to the icon component if `direction="asc"`. */
|
|
11
|
+
iconDirectionAsc: string;
|
|
12
|
+
}
|
|
13
|
+
export type TableSortLabelClassKey = keyof TableSortLabelClasses;
|
|
14
|
+
export declare function getTableSortLabelUtilityClass(slot: string): string;
|
|
15
|
+
declare const tableSortLabelClasses: TableSortLabelClasses;
|
|
16
|
+
export default tableSortLabelClasses;
|
package/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
+
import { SlotComponentProps } from '@mui/base';
|
|
3
4
|
import { OverridableStringUnion } from '@mui/types';
|
|
4
5
|
import { Theme } from '../styles';
|
|
5
6
|
import ButtonBase from '../ButtonBase';
|
|
6
7
|
import { TabScrollButtonProps } from '../TabScrollButton';
|
|
7
8
|
import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
|
8
9
|
import { TabsClasses } from './tabsClasses';
|
|
10
|
+
import SvgIcon from '../SvgIcon';
|
|
9
11
|
|
|
10
12
|
export interface TabsPropsIndicatorColorOverrides {}
|
|
11
13
|
|
|
14
|
+
export interface TabsStartScrollButtonIconSlotPropsOverrides {}
|
|
15
|
+
export interface TabsEndScrollButtonIconSlotPropsOverrides {}
|
|
16
|
+
|
|
17
|
+
export interface TabsOwnerState extends TabsProps {
|
|
18
|
+
vertical: boolean;
|
|
19
|
+
fixed: boolean;
|
|
20
|
+
hideScrollbar: boolean;
|
|
21
|
+
scrollableX: boolean;
|
|
22
|
+
scrollableY: boolean;
|
|
23
|
+
centered: boolean;
|
|
24
|
+
scrollButtonsHideMobile: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
12
27
|
export interface TabsTypeMap<P = {}, D extends React.ElementType = typeof ButtonBase> {
|
|
13
28
|
props: P & {
|
|
14
29
|
/**
|
|
@@ -48,6 +63,31 @@ export interface TabsTypeMap<P = {}, D extends React.ElementType = typeof Button
|
|
|
48
63
|
* Override or extend the styles applied to the component.
|
|
49
64
|
*/
|
|
50
65
|
classes?: Partial<TabsClasses>;
|
|
66
|
+
/**
|
|
67
|
+
* The components used for each slot inside.
|
|
68
|
+
* @default {}
|
|
69
|
+
*/
|
|
70
|
+
slots?: {
|
|
71
|
+
StartScrollButtonIcon?: React.ElementType;
|
|
72
|
+
EndScrollButtonIcon?: React.ElementType;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The extra props for the slot components.
|
|
76
|
+
* You can override the existing props or add new ones.
|
|
77
|
+
* @default {}
|
|
78
|
+
*/
|
|
79
|
+
slotProps?: {
|
|
80
|
+
startScrollButtonIcon?: SlotComponentProps<
|
|
81
|
+
typeof SvgIcon,
|
|
82
|
+
TabsStartScrollButtonIconSlotPropsOverrides,
|
|
83
|
+
TabsOwnerState
|
|
84
|
+
>;
|
|
85
|
+
endScrollButtonIcon?: SlotComponentProps<
|
|
86
|
+
typeof SvgIcon,
|
|
87
|
+
TabsEndScrollButtonIconSlotPropsOverrides,
|
|
88
|
+
TabsOwnerState
|
|
89
|
+
>;
|
|
90
|
+
};
|
|
51
91
|
/**
|
|
52
92
|
* Determines the color of the indicator.
|
|
53
93
|
* @default 'primary'
|
package/Tabs/Tabs.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
const _excluded = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"];
|
|
3
|
+
const _excluded = ["aria-label", "aria-labelledby", "action", "centered", "children", "className", "component", "allowScrollButtonsMobile", "indicatorColor", "onChange", "orientation", "ScrollButtonComponent", "scrollButtons", "selectionFollowsFocus", "slots", "slotProps", "TabIndicatorProps", "TabScrollButtonProps", "textColor", "value", "variant", "visibleScrollbar"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { isFragment } from 'react-is';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { refType } from '@mui/utils';
|
|
9
|
-
import { unstable_composeClasses as composeClasses } from '@mui/base';
|
|
9
|
+
import { unstable_composeClasses as composeClasses, useSlotProps } from '@mui/base';
|
|
10
10
|
import styled from '../styles/styled';
|
|
11
11
|
import useThemeProps from '../styles/useThemeProps';
|
|
12
12
|
import useTheme from '../styles/useTheme';
|
|
@@ -226,6 +226,8 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
226
226
|
ScrollButtonComponent = TabScrollButton,
|
|
227
227
|
scrollButtons = 'auto',
|
|
228
228
|
selectionFollowsFocus,
|
|
229
|
+
slots = {},
|
|
230
|
+
slotProps = {},
|
|
229
231
|
TabIndicatorProps = {},
|
|
230
232
|
TabScrollButtonProps = {},
|
|
231
233
|
textColor = 'primary',
|
|
@@ -259,6 +261,16 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
259
261
|
scrollButtonsHideMobile: !allowScrollButtonsMobile
|
|
260
262
|
});
|
|
261
263
|
const classes = useUtilityClasses(ownerState);
|
|
264
|
+
const startScrollButtonIconProps = useSlotProps({
|
|
265
|
+
elementType: slots.StartScrollButtonIcon,
|
|
266
|
+
externalSlotProps: slotProps.startScrollButtonIcon,
|
|
267
|
+
ownerState
|
|
268
|
+
});
|
|
269
|
+
const endScrollButtonIconProps = useSlotProps({
|
|
270
|
+
elementType: slots.EndScrollButtonIcon,
|
|
271
|
+
externalSlotProps: slotProps.endScrollButtonIcon,
|
|
272
|
+
ownerState
|
|
273
|
+
});
|
|
262
274
|
if (process.env.NODE_ENV !== 'production') {
|
|
263
275
|
if (centered && scrollable) {
|
|
264
276
|
console.error('MUI: You can not use the `centered={true}` and `variant="scrollable"` properties ' + 'at the same time on a `Tabs` component.');
|
|
@@ -423,6 +435,12 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
423
435
|
const scrollButtonsActive = displayScroll.start || displayScroll.end;
|
|
424
436
|
const showScrollButtons = scrollable && (scrollButtons === 'auto' && scrollButtonsActive || scrollButtons === true);
|
|
425
437
|
conditionalElements.scrollButtonStart = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonComponent, _extends({
|
|
438
|
+
slots: {
|
|
439
|
+
StartScrollButtonIcon: slots.StartScrollButtonIcon
|
|
440
|
+
},
|
|
441
|
+
slotProps: {
|
|
442
|
+
startScrollButtonIcon: startScrollButtonIconProps
|
|
443
|
+
},
|
|
426
444
|
orientation: orientation,
|
|
427
445
|
direction: isRtl ? 'right' : 'left',
|
|
428
446
|
onClick: handleStartScrollClick,
|
|
@@ -431,6 +449,12 @@ const Tabs = /*#__PURE__*/React.forwardRef(function Tabs(inProps, ref) {
|
|
|
431
449
|
className: clsx(classes.scrollButtons, TabScrollButtonProps.className)
|
|
432
450
|
})) : null;
|
|
433
451
|
conditionalElements.scrollButtonEnd = showScrollButtons ? /*#__PURE__*/_jsx(ScrollButtonComponent, _extends({
|
|
452
|
+
slots: {
|
|
453
|
+
EndScrollButtonIcon: slots.EndScrollButtonIcon
|
|
454
|
+
},
|
|
455
|
+
slotProps: {
|
|
456
|
+
endScrollButtonIcon: endScrollButtonIconProps
|
|
457
|
+
},
|
|
434
458
|
orientation: orientation,
|
|
435
459
|
direction: isRtl ? 'left' : 'right',
|
|
436
460
|
onClick: handleEndScrollClick,
|
|
@@ -732,6 +756,23 @@ process.env.NODE_ENV !== "production" ? Tabs.propTypes /* remove-proptypes */ =
|
|
|
732
756
|
* changes on activation.
|
|
733
757
|
*/
|
|
734
758
|
selectionFollowsFocus: PropTypes.bool,
|
|
759
|
+
/**
|
|
760
|
+
* The extra props for the slot components.
|
|
761
|
+
* You can override the existing props or add new ones.
|
|
762
|
+
* @default {}
|
|
763
|
+
*/
|
|
764
|
+
slotProps: PropTypes.shape({
|
|
765
|
+
endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
|
766
|
+
startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
767
|
+
}),
|
|
768
|
+
/**
|
|
769
|
+
* The components used for each slot inside.
|
|
770
|
+
* @default {}
|
|
771
|
+
*/
|
|
772
|
+
slots: PropTypes.shape({
|
|
773
|
+
EndScrollButtonIcon: PropTypes.elementType,
|
|
774
|
+
StartScrollButtonIcon: PropTypes.elementType
|
|
775
|
+
}),
|
|
735
776
|
/**
|
|
736
777
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
737
778
|
*/
|
package/Tabs/tabsClasses.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export interface TabsClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
-
vertical: string;
|
|
6
|
-
/** Styles applied to the flex container element. */
|
|
7
|
-
flexContainer: string;
|
|
8
|
-
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
9
|
-
flexContainerVertical: string;
|
|
10
|
-
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
|
11
|
-
centered: string;
|
|
12
|
-
/** Styles applied to the tablist element. */
|
|
13
|
-
scroller: string;
|
|
14
|
-
/** Styles applied to the tablist element if `!variant="scrollable"`. */
|
|
15
|
-
fixed: string;
|
|
16
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
|
|
17
|
-
scrollableX: string;
|
|
18
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
|
|
19
|
-
scrollableY: string;
|
|
20
|
-
/** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
|
|
21
|
-
hideScrollbar: string;
|
|
22
|
-
/** Styles applied to the ScrollButtonComponent component. */
|
|
23
|
-
scrollButtons: string;
|
|
24
|
-
/** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
|
|
25
|
-
scrollButtonsHideMobile: string;
|
|
26
|
-
/** Styles applied to the TabIndicator component. */
|
|
27
|
-
indicator: string;
|
|
28
|
-
}
|
|
29
|
-
export type TabsClassKey = keyof TabsClasses;
|
|
30
|
-
export declare function getTabsUtilityClass(slot: string): string;
|
|
31
|
-
declare const tabsClasses: TabsClasses;
|
|
32
|
-
export default tabsClasses;
|
|
1
|
+
export interface TabsClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
+
vertical: string;
|
|
6
|
+
/** Styles applied to the flex container element. */
|
|
7
|
+
flexContainer: string;
|
|
8
|
+
/** Styles applied to the flex container element if `orientation="vertical"`. */
|
|
9
|
+
flexContainerVertical: string;
|
|
10
|
+
/** Styles applied to the flex container element if `centered={true}` & `!variant="scrollable"`. */
|
|
11
|
+
centered: string;
|
|
12
|
+
/** Styles applied to the tablist element. */
|
|
13
|
+
scroller: string;
|
|
14
|
+
/** Styles applied to the tablist element if `!variant="scrollable"`. */
|
|
15
|
+
fixed: string;
|
|
16
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="horizontal"`. */
|
|
17
|
+
scrollableX: string;
|
|
18
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `orientation="vertical"`. */
|
|
19
|
+
scrollableY: string;
|
|
20
|
+
/** Styles applied to the tablist element if `variant="scrollable"` and `visibleScrollbar={false}`. */
|
|
21
|
+
hideScrollbar: string;
|
|
22
|
+
/** Styles applied to the ScrollButtonComponent component. */
|
|
23
|
+
scrollButtons: string;
|
|
24
|
+
/** Styles applied to the ScrollButtonComponent component if `allowScrollButtonsMobile={true}`. */
|
|
25
|
+
scrollButtonsHideMobile: string;
|
|
26
|
+
/** Styles applied to the TabIndicator component. */
|
|
27
|
+
indicator: string;
|
|
28
|
+
}
|
|
29
|
+
export type TabsClassKey = keyof TabsClasses;
|
|
30
|
+
export declare function getTabsUtilityClass(slot: string): string;
|
|
31
|
+
declare const tabsClasses: TabsClasses;
|
|
32
|
+
export default tabsClasses;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface TextFieldClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
}
|
|
5
|
-
export type TextFieldClassKey = keyof TextFieldClasses;
|
|
6
|
-
export declare function getTextFieldUtilityClass(slot: string): string;
|
|
7
|
-
declare const textFieldClasses: TextFieldClasses;
|
|
8
|
-
export default textFieldClasses;
|
|
1
|
+
export interface TextFieldClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
}
|
|
5
|
+
export type TextFieldClassKey = keyof TextFieldClasses;
|
|
6
|
+
export declare function getTextFieldUtilityClass(slot: string): string;
|
|
7
|
+
declare const textFieldClasses: TextFieldClasses;
|
|
8
|
+
export default textFieldClasses;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export interface ToggleButtonClasses {
|
|
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 `selected={true}`. */
|
|
7
|
-
selected: string;
|
|
8
|
-
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
-
standard: string;
|
|
10
|
-
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
-
primary: string;
|
|
12
|
-
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
-
secondary: string;
|
|
14
|
-
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
-
sizeSmall: string;
|
|
16
|
-
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
-
sizeMedium: string;
|
|
18
|
-
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
-
sizeLarge: string;
|
|
20
|
-
}
|
|
21
|
-
export type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
-
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
-
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
-
export default toggleButtonClasses;
|
|
1
|
+
export interface ToggleButtonClasses {
|
|
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 `selected={true}`. */
|
|
7
|
+
selected: string;
|
|
8
|
+
/** State class applied to the root element if `color="standard"`. */
|
|
9
|
+
standard: string;
|
|
10
|
+
/** State class applied to the root element if `color="primary"`. */
|
|
11
|
+
primary: string;
|
|
12
|
+
/** State class applied to the root element if `color="secondary"`. */
|
|
13
|
+
secondary: string;
|
|
14
|
+
/** Styles applied to the root element if `size="small"`. */
|
|
15
|
+
sizeSmall: string;
|
|
16
|
+
/** Styles applied to the root element if `size="medium"`. */
|
|
17
|
+
sizeMedium: string;
|
|
18
|
+
/** Styles applied to the root element if `size="large"`. */
|
|
19
|
+
sizeLarge: string;
|
|
20
|
+
}
|
|
21
|
+
export type ToggleButtonClassKey = keyof ToggleButtonClasses;
|
|
22
|
+
export declare function getToggleButtonUtilityClass(slot: string): string;
|
|
23
|
+
declare const toggleButtonClasses: ToggleButtonClasses;
|
|
24
|
+
export default toggleButtonClasses;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface ToggleButtonGroupClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
-
vertical: string;
|
|
6
|
-
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
-
disabled: string;
|
|
8
|
-
/** Styles applied to the children. */
|
|
9
|
-
grouped: string;
|
|
10
|
-
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
-
groupedHorizontal: string;
|
|
12
|
-
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
-
groupedVertical: string;
|
|
14
|
-
}
|
|
15
|
-
export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
-
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
-
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
-
export default toggleButtonGroupClasses;
|
|
1
|
+
export interface ToggleButtonGroupClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `orientation="vertical"`. */
|
|
5
|
+
vertical: string;
|
|
6
|
+
/** State class applied to the root element if `disabled={true}`. */
|
|
7
|
+
disabled: string;
|
|
8
|
+
/** Styles applied to the children. */
|
|
9
|
+
grouped: string;
|
|
10
|
+
/** Styles applied to the children if `orientation="horizontal"`. */
|
|
11
|
+
groupedHorizontal: string;
|
|
12
|
+
/** Styles applied to the children if `orientation="vertical"`. */
|
|
13
|
+
groupedVertical: string;
|
|
14
|
+
}
|
|
15
|
+
export type ToggleButtonGroupClassKey = keyof ToggleButtonGroupClasses;
|
|
16
|
+
export declare function getToggleButtonGroupUtilityClass(slot: string): string;
|
|
17
|
+
declare const toggleButtonGroupClasses: ToggleButtonGroupClasses;
|
|
18
|
+
export default toggleButtonGroupClasses;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export interface ToolbarClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
-
gutters: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
-
regular: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
-
dense: string;
|
|
10
|
-
}
|
|
11
|
-
export type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
-
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
-
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
-
export default toolbarClasses;
|
|
1
|
+
export interface ToolbarClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element unless `disableGutters={true}`. */
|
|
5
|
+
gutters: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="regular"`. */
|
|
7
|
+
regular: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="dense"`. */
|
|
9
|
+
dense: string;
|
|
10
|
+
}
|
|
11
|
+
export type ToolbarClassKey = keyof ToolbarClasses;
|
|
12
|
+
export declare function getToolbarUtilityClass(slot: string): string;
|
|
13
|
+
declare const toolbarClasses: ToolbarClasses;
|
|
14
|
+
export default toolbarClasses;
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface TooltipClasses {
|
|
2
|
-
/** Styles applied to the Popper component. */
|
|
3
|
-
popper: string;
|
|
4
|
-
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
-
popperInteractive: string;
|
|
6
|
-
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
-
popperArrow: string;
|
|
8
|
-
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
-
popperClose: string;
|
|
10
|
-
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
-
tooltip: string;
|
|
12
|
-
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
-
tooltipArrow: string;
|
|
14
|
-
/** Styles applied to the arrow element. */
|
|
15
|
-
arrow: string;
|
|
16
|
-
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
-
touch: string;
|
|
18
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
-
tooltipPlacementLeft: string;
|
|
20
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
-
tooltipPlacementRight: string;
|
|
22
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
-
tooltipPlacementTop: string;
|
|
24
|
-
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
-
tooltipPlacementBottom: string;
|
|
26
|
-
}
|
|
27
|
-
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
-
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
-
declare const tooltipClasses: TooltipClasses;
|
|
30
|
-
export default tooltipClasses;
|
|
1
|
+
export interface TooltipClasses {
|
|
2
|
+
/** Styles applied to the Popper component. */
|
|
3
|
+
popper: string;
|
|
4
|
+
/** Styles applied to the Popper component unless `disableInteractive={true}`. */
|
|
5
|
+
popperInteractive: string;
|
|
6
|
+
/** Styles applied to the Popper component if `arrow={true}`. */
|
|
7
|
+
popperArrow: string;
|
|
8
|
+
/** Styles applied to the Popper component unless the tooltip is open. */
|
|
9
|
+
popperClose: string;
|
|
10
|
+
/** Styles applied to the tooltip (label wrapper) element. */
|
|
11
|
+
tooltip: string;
|
|
12
|
+
/** Styles applied to the tooltip (label wrapper) element if `arrow={true}`. */
|
|
13
|
+
tooltipArrow: string;
|
|
14
|
+
/** Styles applied to the arrow element. */
|
|
15
|
+
arrow: string;
|
|
16
|
+
/** Styles applied to the tooltip (label wrapper) element if the tooltip is opened by touch. */
|
|
17
|
+
touch: string;
|
|
18
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "left". */
|
|
19
|
+
tooltipPlacementLeft: string;
|
|
20
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "right". */
|
|
21
|
+
tooltipPlacementRight: string;
|
|
22
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "top". */
|
|
23
|
+
tooltipPlacementTop: string;
|
|
24
|
+
/** Styles applied to the tooltip (label wrapper) element if `placement` contains "bottom". */
|
|
25
|
+
tooltipPlacementBottom: string;
|
|
26
|
+
}
|
|
27
|
+
export type TooltipClassKey = keyof TooltipClasses;
|
|
28
|
+
export declare function getTooltipUtilityClass(slot: string): string;
|
|
29
|
+
declare const tooltipClasses: TooltipClasses;
|
|
30
|
+
export default tooltipClasses;
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export interface TypographyClasses {
|
|
2
|
-
/** Styles applied to the root element. */
|
|
3
|
-
root: string;
|
|
4
|
-
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
-
body2: string;
|
|
6
|
-
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
-
body1: string;
|
|
8
|
-
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
-
caption: string;
|
|
10
|
-
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
-
button: string;
|
|
12
|
-
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
-
h1: string;
|
|
14
|
-
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
-
h2: string;
|
|
16
|
-
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
-
h3: string;
|
|
18
|
-
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
-
h4: string;
|
|
20
|
-
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
-
h5: string;
|
|
22
|
-
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
-
h6: string;
|
|
24
|
-
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
-
subtitle1: string;
|
|
26
|
-
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
-
subtitle2: string;
|
|
28
|
-
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
-
overline: string;
|
|
30
|
-
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
-
inherit: string;
|
|
32
|
-
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
-
alignLeft: string;
|
|
34
|
-
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
-
alignCenter: string;
|
|
36
|
-
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
-
alignRight: string;
|
|
38
|
-
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
-
alignJustify: string;
|
|
40
|
-
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
-
noWrap: string;
|
|
42
|
-
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
-
gutterBottom: string;
|
|
44
|
-
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
-
paragraph: string;
|
|
46
|
-
}
|
|
47
|
-
export type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
-
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
-
declare const typographyClasses: TypographyClasses;
|
|
50
|
-
export default typographyClasses;
|
|
1
|
+
export interface TypographyClasses {
|
|
2
|
+
/** Styles applied to the root element. */
|
|
3
|
+
root: string;
|
|
4
|
+
/** Styles applied to the root element if `variant="body2"`. */
|
|
5
|
+
body2: string;
|
|
6
|
+
/** Styles applied to the root element if `variant="body1"`. */
|
|
7
|
+
body1: string;
|
|
8
|
+
/** Styles applied to the root element if `variant="caption"`. */
|
|
9
|
+
caption: string;
|
|
10
|
+
/** Styles applied to the root element if `variant="button"`. */
|
|
11
|
+
button: string;
|
|
12
|
+
/** Styles applied to the root element if `variant="h1"`. */
|
|
13
|
+
h1: string;
|
|
14
|
+
/** Styles applied to the root element if `variant="h2"`. */
|
|
15
|
+
h2: string;
|
|
16
|
+
/** Styles applied to the root element if `variant="h3"`. */
|
|
17
|
+
h3: string;
|
|
18
|
+
/** Styles applied to the root element if `variant="h4"`. */
|
|
19
|
+
h4: string;
|
|
20
|
+
/** Styles applied to the root element if `variant="h5"`. */
|
|
21
|
+
h5: string;
|
|
22
|
+
/** Styles applied to the root element if `variant="h6"`. */
|
|
23
|
+
h6: string;
|
|
24
|
+
/** Styles applied to the root element if `variant="subtitle1"`. */
|
|
25
|
+
subtitle1: string;
|
|
26
|
+
/** Styles applied to the root element if `variant="subtitle2"`. */
|
|
27
|
+
subtitle2: string;
|
|
28
|
+
/** Styles applied to the root element if `variant="overline"`. */
|
|
29
|
+
overline: string;
|
|
30
|
+
/** Styles applied to the root element if `variant="inherit"`. */
|
|
31
|
+
inherit: string;
|
|
32
|
+
/** Styles applied to the root element if `align="left"`. */
|
|
33
|
+
alignLeft: string;
|
|
34
|
+
/** Styles applied to the root element if `align="center"`. */
|
|
35
|
+
alignCenter: string;
|
|
36
|
+
/** Styles applied to the root element if `align="right"`. */
|
|
37
|
+
alignRight: string;
|
|
38
|
+
/** Styles applied to the root element if `align="justify"`. */
|
|
39
|
+
alignJustify: string;
|
|
40
|
+
/** Styles applied to the root element if `nowrap={true}`. */
|
|
41
|
+
noWrap: string;
|
|
42
|
+
/** Styles applied to the root element if `gutterBottom={true}`. */
|
|
43
|
+
gutterBottom: string;
|
|
44
|
+
/** Styles applied to the root element if `paragraph={true}`. */
|
|
45
|
+
paragraph: string;
|
|
46
|
+
}
|
|
47
|
+
export type TypographyClassKey = keyof TypographyClasses;
|
|
48
|
+
export declare function getTypographyUtilityClass(slot: string): string;
|
|
49
|
+
declare const typographyClasses: TypographyClasses;
|
|
50
|
+
export default typographyClasses;
|