@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
244 lines • 12.9 kB
text/typescript
import type { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
import type { PopperClassKey } from "../Popper/index.mjs";
import type { ComponentsPropsList } from "./props.mjs";
import type { AccordionActionsClassKey } from "../AccordionActions/index.mjs";
import type { AccordionClassKey } from "../Accordion/index.mjs";
import type { AccordionDetailsClassKey } from "../AccordionDetails/index.mjs";
import type { AccordionSummaryClassKey } from "../AccordionSummary/index.mjs";
import type { AlertClassKey } from "../Alert/index.mjs";
import type { AlertTitleClassKey } from "../AlertTitle/index.mjs";
import type { AppBarClassKey } from "../AppBar/index.mjs";
import type { AutocompleteClassKey } from "../Autocomplete/index.mjs";
import type { AvatarClassKey } from "../Avatar/index.mjs";
import type { AvatarGroupClassKey } from "../AvatarGroup/index.mjs";
import type { BackdropClassKey } from "../Backdrop/index.mjs";
import type { BadgeClassKey } from "../Badge/index.mjs";
import type { BottomNavigationActionClassKey } from "../BottomNavigationAction/index.mjs";
import type { BottomNavigationClassKey } from "../BottomNavigation/index.mjs";
import type { BreadcrumbsClassKey } from "../Breadcrumbs/index.mjs";
import type { ButtonBaseClassKey } from "../ButtonBase/index.mjs";
import type { ButtonClassKey } from "../Button/index.mjs";
import type { ButtonGroupClassKey } from "../ButtonGroup/index.mjs";
import type { CardActionAreaClassKey } from "../CardActionArea/index.mjs";
import type { CardActionsClassKey } from "../CardActions/index.mjs";
import type { CardClassKey } from "../Card/index.mjs";
import type { CardContentClassKey } from "../CardContent/index.mjs";
import type { CardHeaderClassKey } from "../CardHeader/index.mjs";
import type { CardMediaClassKey } from "../CardMedia/index.mjs";
import type { CheckboxClassKey } from "../Checkbox/index.mjs";
import type { ChipClassKey } from "../Chip/index.mjs";
import type { CircularProgressClassKey } from "../CircularProgress/index.mjs";
import type { CollapseClassKey } from "../Collapse/index.mjs";
import type { ContainerClassKey } from "../Container/index.mjs";
import type { DialogActionsClassKey } from "../DialogActions/index.mjs";
import type { DialogClassKey } from "../Dialog/index.mjs";
import type { DialogContentClassKey } from "../DialogContent/index.mjs";
import type { DialogContentTextClassKey } from "../DialogContentText/index.mjs";
import type { DialogTitleClassKey } from "../DialogTitle/index.mjs";
import type { DividerClassKey } from "../Divider/index.mjs";
import type { DrawerClassKey } from "../Drawer/index.mjs";
import type { FabClassKey } from "../Fab/index.mjs";
import type { FilledInputClassKey } from "../FilledInput/index.mjs";
import type { FormControlClassKey } from "../FormControl/index.mjs";
import type { FormControlLabelClassKey } from "../FormControlLabel/index.mjs";
import type { FormGroupClassKey } from "../FormGroup/index.mjs";
import type { FormHelperTextClassKey } from "../FormHelperText/index.mjs";
import type { FormLabelClassKey } from "../FormLabel/index.mjs";
import type { GridClassKey } from "../Grid/index.mjs";
import type { IconButtonClassKey } from "../IconButton/index.mjs";
import type { IconClassKey } from "../Icon/index.mjs";
import type { ImageListClassKey } from "../ImageList/index.mjs";
import type { ImageListItemBarClassKey } from "../ImageListItemBar/index.mjs";
import type { ImageListItemClassKey } from "../ImageListItem/index.mjs";
import type { InputAdornmentClassKey } from "../InputAdornment/index.mjs";
import type { InputBaseClassKey } from "../InputBase/index.mjs";
import type { InputClassKey } from "../Input/index.mjs";
import type { InputLabelClassKey } from "../InputLabel/index.mjs";
import type { LinearProgressClassKey } from "../LinearProgress/index.mjs";
import type { LinkClassKey } from "../Link/index.mjs";
import type { ListClassKey } from "../List/index.mjs";
import type { ListItemAvatarClassKey } from "../ListItemAvatar/index.mjs";
import type { ListItemClassKey } from "../ListItem/index.mjs";
import type { ListItemButtonClassKey } from "../ListItemButton/index.mjs";
import type { ListItemIconClassKey } from "../ListItemIcon/index.mjs";
import type { ListItemSecondaryActionClassKey } from "../ListItemSecondaryAction/index.mjs";
import type { ListItemTextClassKey } from "../ListItemText/index.mjs";
import type { ListSubheaderClassKey } from "../ListSubheader/index.mjs";
import type { MenuClassKey } from "../Menu/index.mjs";
import type { MenuItemClassKey } from "../MenuItem/index.mjs";
import type { MenuListClassKey } from "../MenuList/index.mjs";
import type { MobileStepperClassKey } from "../MobileStepper/index.mjs";
import type { ModalClassKey } from "../Modal/index.mjs";
import type { NativeSelectClassKey } from "../NativeSelect/index.mjs";
import type { OutlinedInputClassKey } from "../OutlinedInput/index.mjs";
import type { PaginationClassKey } from "../Pagination/index.mjs";
import type { PaginationItemClassKey } from "../PaginationItem/index.mjs";
import type { PaperClassKey } from "../Paper/index.mjs";
import type { PopoverClassKey } from "../Popover/index.mjs";
import type { RadioClassKey } from "../Radio/index.mjs";
import type { RadioGroupClassKey } from "../RadioGroup/index.mjs";
import type { RatingClassKey } from "../Rating/index.mjs";
import type { ScopedCssBaselineClassKey } from "../ScopedCssBaseline/index.mjs";
import type { SelectClassKey } from "../Select/index.mjs";
import type { SkeletonClassKey } from "../Skeleton/index.mjs";
import type { SliderClassKey } from "../Slider/index.mjs";
import type { SnackbarClassKey } from "../Snackbar/index.mjs";
import type { SnackbarContentClassKey } from "../SnackbarContent/index.mjs";
import type { SpeedDialClassKey } from "../SpeedDial/index.mjs";
import type { SpeedDialActionClassKey } from "../SpeedDialAction/index.mjs";
import type { SpeedDialIconClassKey } from "../SpeedDialIcon/index.mjs";
import type { StackClassKey } from "../Stack/index.mjs";
import type { StepButtonClasskey } from "../StepButton/index.mjs";
import type { StepClasskey } from "../Step/index.mjs";
import type { StepConnectorClasskey } from "../StepConnector/index.mjs";
import type { StepContentClasskey } from "../StepContent/index.mjs";
import type { StepIconClasskey } from "../StepIcon/index.mjs";
import type { StepLabelClasskey } from "../StepLabel/index.mjs";
import type { StepperClasskey } from "../Stepper/index.mjs";
import type { SvgIconClassKey } from "../SvgIcon/index.mjs";
import type { SwitchClassKey } from "../Switch/index.mjs";
import type { TabClassKey } from "../Tab/index.mjs";
import type { TableBodyClassKey } from "../TableBody/index.mjs";
import type { TableCellClassKey } from "../TableCell/index.mjs";
import type { TableClassKey } from "../Table/index.mjs";
import type { TableContainerClassKey } from "../TableContainer/index.mjs";
import type { TableFooterClassKey } from "../TableFooter/index.mjs";
import type { TableHeadClassKey } from "../TableHead/index.mjs";
import type { TablePaginationClassKey } from "../TablePagination/index.mjs";
import type { TablePaginationActionsClassKey } from "../TablePaginationActions/index.mjs";
import type { TableRowClassKey } from "../TableRow/index.mjs";
import type { TableSortLabelClassKey } from "../TableSortLabel/index.mjs";
import type { TabsClassKey } from "../Tabs/index.mjs";
import type { TabScrollButtonClassKey } from "../TabScrollButton/index.mjs";
import type { TextFieldClassKey } from "../TextField/index.mjs";
import type { ToggleButtonClassKey } from "../ToggleButton/index.mjs";
import type { ToggleButtonGroupClassKey } from "../ToggleButtonGroup/index.mjs";
import type { ToolbarClassKey } from "../Toolbar/index.mjs";
import type { TooltipClassKey } from "../Tooltip/index.mjs";
import type { TypographyClassKey } from "../Typography/index.mjs";
export type OverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? ComponentsPropsList[ComponentName] & Record<string, unknown> & {
ownerState: ComponentsPropsList[ComponentName] & Record<string, unknown>;
} : {}) & {
theme: Theme;
} & Record<string, unknown>>>;
export type ComponentsOverrides<Theme = unknown> = { [Name in keyof ComponentNameToClassKey]?: Partial<OverridesStyleRules<ComponentNameToClassKey[Name], Name, Theme>> } & {
MuiCssBaseline?: CSSObject | string | ((theme: Theme) => CSSInterpolation) | undefined;
};
export interface ComponentNameToClassKey {
MuiAlert: AlertClassKey;
MuiAlertTitle: AlertTitleClassKey;
MuiAppBar: AppBarClassKey;
MuiAutocomplete: AutocompleteClassKey;
MuiAvatar: AvatarClassKey;
MuiAvatarGroup: AvatarGroupClassKey;
MuiBackdrop: BackdropClassKey;
MuiBadge: BadgeClassKey;
MuiBottomNavigation: BottomNavigationClassKey;
MuiBottomNavigationAction: BottomNavigationActionClassKey;
MuiBreadcrumbs: BreadcrumbsClassKey;
MuiButton: ButtonClassKey;
MuiButtonBase: ButtonBaseClassKey;
MuiButtonGroup: ButtonGroupClassKey;
MuiCard: CardClassKey;
MuiCardActionArea: CardActionAreaClassKey;
MuiCardActions: CardActionsClassKey;
MuiCardContent: CardContentClassKey;
MuiCardHeader: CardHeaderClassKey;
MuiCardMedia: CardMediaClassKey;
MuiCheckbox: CheckboxClassKey;
MuiChip: ChipClassKey;
MuiCircularProgress: CircularProgressClassKey;
MuiCollapse: CollapseClassKey;
MuiContainer: ContainerClassKey;
MuiDialog: DialogClassKey;
MuiDialogActions: DialogActionsClassKey;
MuiDialogContent: DialogContentClassKey;
MuiDialogContentText: DialogContentTextClassKey;
MuiDialogTitle: DialogTitleClassKey;
MuiDivider: DividerClassKey;
MuiDrawer: DrawerClassKey;
MuiAccordion: AccordionClassKey;
MuiAccordionActions: AccordionActionsClassKey;
MuiAccordionDetails: AccordionDetailsClassKey;
MuiAccordionSummary: AccordionSummaryClassKey;
MuiFab: FabClassKey;
MuiFilledInput: FilledInputClassKey;
MuiFormControl: FormControlClassKey;
MuiFormControlLabel: FormControlLabelClassKey;
MuiFormGroup: FormGroupClassKey;
MuiFormHelperText: FormHelperTextClassKey;
MuiFormLabel: FormLabelClassKey;
MuiGrid: GridClassKey;
MuiIcon: IconClassKey;
MuiIconButton: IconButtonClassKey;
MuiImageList: ImageListClassKey;
MuiImageListItem: ImageListItemClassKey;
MuiImageListItemBar: ImageListItemBarClassKey;
MuiInput: InputClassKey;
MuiInputAdornment: InputAdornmentClassKey;
MuiInputBase: InputBaseClassKey;
MuiInputLabel: InputLabelClassKey;
MuiLinearProgress: LinearProgressClassKey;
MuiLink: LinkClassKey;
MuiList: ListClassKey;
MuiListItem: ListItemClassKey;
MuiListItemButton: ListItemButtonClassKey;
MuiListItemAvatar: ListItemAvatarClassKey;
MuiListItemIcon: ListItemIconClassKey;
MuiListItemSecondaryAction: ListItemSecondaryActionClassKey;
MuiListItemText: ListItemTextClassKey;
MuiListSubheader: ListSubheaderClassKey;
MuiMenu: MenuClassKey;
MuiMenuItem: MenuItemClassKey;
MuiMenuList: MenuListClassKey;
MuiMobileStepper: MobileStepperClassKey;
MuiModal: ModalClassKey;
MuiNativeSelect: NativeSelectClassKey;
MuiOutlinedInput: OutlinedInputClassKey;
MuiPagination: PaginationClassKey;
MuiPaginationItem: PaginationItemClassKey;
MuiPaper: PaperClassKey;
MuiPopover: PopoverClassKey;
MuiPopper: PopperClassKey;
MuiRadio: RadioClassKey;
MuiRadioGroup: RadioGroupClassKey;
MuiRating: RatingClassKey;
MuiScopedCssBaseline: ScopedCssBaselineClassKey;
MuiSelect: SelectClassKey;
MuiSkeleton: SkeletonClassKey;
MuiSlider: SliderClassKey;
MuiSnackbar: SnackbarClassKey;
MuiSnackbarContent: SnackbarContentClassKey;
MuiSpeedDial: SpeedDialClassKey;
MuiSpeedDialAction: SpeedDialActionClassKey;
MuiSpeedDialIcon: SpeedDialIconClassKey;
MuiStack: StackClassKey;
MuiStep: StepClasskey;
MuiStepButton: StepButtonClasskey;
MuiStepConnector: StepConnectorClasskey;
MuiStepContent: StepContentClasskey;
MuiStepIcon: StepIconClasskey;
MuiStepLabel: StepLabelClasskey;
MuiStepper: StepperClasskey;
MuiSvgIcon: SvgIconClassKey;
MuiSwitch: SwitchClassKey;
MuiTab: TabClassKey;
MuiTable: TableClassKey;
MuiTableBody: TableBodyClassKey;
MuiTableCell: TableCellClassKey;
MuiTableContainer: TableContainerClassKey;
MuiTableFooter: TableFooterClassKey;
MuiTableHead: TableHeadClassKey;
MuiTablePagination: TablePaginationClassKey;
MuiTablePaginationActions: TablePaginationActionsClassKey;
MuiTableRow: TableRowClassKey;
MuiTableSortLabel: TableSortLabelClassKey;
MuiTabs: TabsClassKey;
MuiTabScrollButton: TabScrollButtonClassKey;
MuiTextField: TextFieldClassKey;
MuiToggleButton: ToggleButtonClassKey;
MuiToggleButtonGroup: ToggleButtonGroupClassKey;
MuiToolbar: ToolbarClassKey;
MuiTooltip: TooltipClassKey;
MuiTypography: TypographyClassKey;
}