1 | import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
|
2 | import { PopperClassKey } from '../Popper';
|
3 | import { ComponentsPropsList } from './props';
|
4 | import { AccordionActionsClassKey } from '../AccordionActions';
|
5 | import { AccordionClassKey } from '../Accordion';
|
6 | import { AccordionDetailsClassKey } from '../AccordionDetails';
|
7 | import { AccordionSummaryClassKey } from '../AccordionSummary';
|
8 | import { AlertClassKey } from '../Alert';
|
9 | import { AlertTitleClassKey } from '../AlertTitle';
|
10 | import { AppBarClassKey } from '../AppBar';
|
11 | import { AutocompleteClassKey } from '../Autocomplete';
|
12 | import { AvatarClassKey } from '../Avatar';
|
13 | import { AvatarGroupClassKey } from '../AvatarGroup';
|
14 | import { BackdropClassKey } from '../Backdrop';
|
15 | import { BadgeClassKey } from '../Badge';
|
16 | import { BottomNavigationActionClassKey } from '../BottomNavigationAction';
|
17 | import { BottomNavigationClassKey } from '../BottomNavigation';
|
18 | import { BreadcrumbsClassKey } from '../Breadcrumbs';
|
19 | import { ButtonBaseClassKey } from '../ButtonBase';
|
20 | import { ButtonClassKey } from '../Button';
|
21 | import { ButtonGroupClassKey } from '../ButtonGroup';
|
22 | import { CardActionAreaClassKey } from '../CardActionArea';
|
23 | import { CardActionsClassKey } from '../CardActions';
|
24 | import { CardClassKey } from '../Card';
|
25 | import { CardContentClassKey } from '../CardContent';
|
26 | import { CardHeaderClassKey } from '../CardHeader';
|
27 | import { CardMediaClassKey } from '../CardMedia';
|
28 | import { CheckboxClassKey } from '../Checkbox';
|
29 | import { ChipClassKey } from '../Chip';
|
30 | import { CircularProgressClassKey } from '../CircularProgress';
|
31 | import { CollapseClassKey } from '../Collapse';
|
32 | import { ContainerClassKey } from '../Container';
|
33 | import { DialogActionsClassKey } from '../DialogActions';
|
34 | import { DialogClassKey } from '../Dialog';
|
35 | import { DialogContentClassKey } from '../DialogContent';
|
36 | import { DialogContentTextClassKey } from '../DialogContentText';
|
37 | import { DialogTitleClassKey } from '../DialogTitle';
|
38 | import { DividerClassKey } from '../Divider';
|
39 | import { DrawerClassKey } from '../Drawer';
|
40 | import { FabClassKey } from '../Fab';
|
41 | import { FilledInputClassKey } from '../FilledInput';
|
42 | import { FormControlClassKey } from '../FormControl';
|
43 | import { FormControlLabelClassKey } from '../FormControlLabel';
|
44 | import { FormGroupClassKey } from '../FormGroup';
|
45 | import { FormHelperTextClassKey } from '../FormHelperText';
|
46 | import { FormLabelClassKey } from '../FormLabel';
|
47 | import { GridClassKey } from '../Grid';
|
48 | import { Grid2Slot } from '../Grid2';
|
49 | import { IconButtonClassKey } from '../IconButton';
|
50 | import { IconClassKey } from '../Icon';
|
51 | import { ImageListClassKey } from '../ImageList';
|
52 | import { ImageListItemBarClassKey } from '../ImageListItemBar';
|
53 | import { ImageListItemClassKey } from '../ImageListItem';
|
54 | import { InputAdornmentClassKey } from '../InputAdornment';
|
55 | import { InputBaseClassKey } from '../InputBase';
|
56 | import { InputClassKey } from '../Input';
|
57 | import { InputLabelClassKey } from '../InputLabel';
|
58 | import { LinearProgressClassKey } from '../LinearProgress';
|
59 | import { LinkClassKey } from '../Link';
|
60 | import { ListClassKey } from '../List';
|
61 | import { ListItemAvatarClassKey } from '../ListItemAvatar';
|
62 | import { ListItemClassKey } from '../ListItem';
|
63 | import { ListItemButtonClassKey } from '../ListItemButton';
|
64 | import { ListItemIconClassKey } from '../ListItemIcon';
|
65 | import { ListItemSecondaryActionClassKey } from '../ListItemSecondaryAction';
|
66 | import { ListItemTextClassKey } from '../ListItemText';
|
67 | import { ListSubheaderClassKey } from '../ListSubheader';
|
68 | import { MenuClassKey } from '../Menu';
|
69 | import { MenuItemClassKey } from '../MenuItem';
|
70 | import { MenuListClassKey } from '../MenuList';
|
71 | import { MobileStepperClassKey } from '../MobileStepper';
|
72 | import { ModalClassKey } from '../Modal';
|
73 | import { NativeSelectClassKey } from '../NativeSelect';
|
74 | import { OutlinedInputClassKey } from '../OutlinedInput';
|
75 | import { PaginationClassKey } from '../Pagination';
|
76 | import { PaginationItemClassKey } from '../PaginationItem';
|
77 | import { PaperClassKey } from '../Paper';
|
78 | import { PopoverClassKey } from '../Popover';
|
79 | import { RadioClassKey } from '../Radio';
|
80 | import { RadioGroupClassKey } from '../RadioGroup';
|
81 | import { RatingClassKey } from '../Rating';
|
82 | import { ScopedCssBaselineClassKey } from '../ScopedCssBaseline';
|
83 | import { SelectClassKey } from '../Select';
|
84 | import { SkeletonClassKey } from '../Skeleton';
|
85 | import { SliderClassKey } from '../Slider';
|
86 | import { SnackbarClassKey } from '../Snackbar';
|
87 | import { SnackbarContentClassKey } from '../SnackbarContent';
|
88 | import { SpeedDialClassKey } from '../SpeedDial';
|
89 | import { SpeedDialActionClassKey } from '../SpeedDialAction';
|
90 | import { SpeedDialIconClassKey } from '../SpeedDialIcon';
|
91 | import { StackClassKey } from '../Stack';
|
92 | import { StepButtonClasskey } from '../StepButton';
|
93 | import { StepClasskey } from '../Step';
|
94 | import { StepConnectorClasskey } from '../StepConnector';
|
95 | import { StepContentClasskey } from '../StepContent';
|
96 | import { StepIconClasskey } from '../StepIcon';
|
97 | import { StepLabelClasskey } from '../StepLabel';
|
98 | import { StepperClasskey } from '../Stepper';
|
99 | import { SvgIconClassKey } from '../SvgIcon';
|
100 | import { SwitchClassKey } from '../Switch';
|
101 | import { TabClassKey } from '../Tab';
|
102 | import { TableBodyClassKey } from '../TableBody';
|
103 | import { TableCellClassKey } from '../TableCell';
|
104 | import { TableClassKey } from '../Table';
|
105 | import { TableContainerClassKey } from '../TableContainer';
|
106 | import { TableFooterClassKey } from '../TableFooter';
|
107 | import { TableHeadClassKey } from '../TableHead';
|
108 | import { TablePaginationClassKey } from '../TablePagination';
|
109 | import { TableRowClassKey } from '../TableRow';
|
110 | import { TableSortLabelClassKey } from '../TableSortLabel';
|
111 | import { TabsClassKey } from '../Tabs';
|
112 | import { TextFieldClassKey } from '../TextField';
|
113 | import { ToggleButtonClassKey } from '../ToggleButton';
|
114 | import { ToggleButtonGroupClassKey } from '../ToggleButtonGroup';
|
115 | import { ToolbarClassKey } from '../Toolbar';
|
116 | import { TooltipClassKey } from '../Tooltip';
|
117 | import { TouchRippleClassKey } from '../ButtonBase/TouchRipple';
|
118 | import { TypographyClassKey } from '../Typography';
|
119 |
|
120 | export type OverridesStyleRules<
|
121 | ClassKey extends string = string,
|
122 | ComponentName = keyof ComponentsPropsList,
|
123 | Theme = unknown,
|
124 | > = Record<
|
125 | ClassKey,
|
126 | Interpolation<
|
127 |
|
128 |
|
129 | (ComponentName extends keyof ComponentsPropsList
|
130 | ? ComponentsPropsList[ComponentName] &
|
131 | Record<string, unknown> & {
|
132 | ownerState: ComponentsPropsList[ComponentName] & Record<string, unknown>;
|
133 | }
|
134 | : {}) & {
|
135 | theme: Theme;
|
136 | } & Record<string, unknown>
|
137 | >
|
138 | >;
|
139 |
|
140 | export type ComponentsOverrides<Theme = unknown> = {
|
141 | [Name in keyof ComponentNameToClassKey]?: Partial<
|
142 | OverridesStyleRules<ComponentNameToClassKey[Name], Name, Theme>
|
143 | >;
|
144 | } & {
|
145 | MuiCssBaseline?: CSSObject | string | ((theme: Theme) => CSSInterpolation);
|
146 | };
|
147 |
|
148 | export interface ComponentNameToClassKey {
|
149 | MuiAlert: AlertClassKey;
|
150 | MuiAlertTitle: AlertTitleClassKey;
|
151 | MuiAppBar: AppBarClassKey;
|
152 | MuiAutocomplete: AutocompleteClassKey;
|
153 | MuiAvatar: AvatarClassKey;
|
154 | MuiAvatarGroup: AvatarGroupClassKey;
|
155 | MuiBackdrop: BackdropClassKey;
|
156 | MuiBadge: BadgeClassKey;
|
157 | MuiBottomNavigation: BottomNavigationClassKey;
|
158 | MuiBottomNavigationAction: BottomNavigationActionClassKey;
|
159 | MuiBreadcrumbs: BreadcrumbsClassKey;
|
160 | MuiButton: ButtonClassKey;
|
161 | MuiButtonBase: ButtonBaseClassKey;
|
162 | MuiButtonGroup: ButtonGroupClassKey;
|
163 | MuiCard: CardClassKey;
|
164 | MuiCardActionArea: CardActionAreaClassKey;
|
165 | MuiCardActions: CardActionsClassKey;
|
166 | MuiCardContent: CardContentClassKey;
|
167 | MuiCardHeader: CardHeaderClassKey;
|
168 | MuiCardMedia: CardMediaClassKey;
|
169 | MuiCheckbox: CheckboxClassKey;
|
170 | MuiChip: ChipClassKey;
|
171 | MuiCircularProgress: CircularProgressClassKey;
|
172 | MuiCollapse: CollapseClassKey;
|
173 | MuiContainer: ContainerClassKey;
|
174 | MuiDialog: DialogClassKey;
|
175 | MuiDialogActions: DialogActionsClassKey;
|
176 | MuiDialogContent: DialogContentClassKey;
|
177 | MuiDialogContentText: DialogContentTextClassKey;
|
178 | MuiDialogTitle: DialogTitleClassKey;
|
179 | MuiDivider: DividerClassKey;
|
180 | MuiDrawer: DrawerClassKey;
|
181 | MuiAccordion: AccordionClassKey;
|
182 | MuiAccordionActions: AccordionActionsClassKey;
|
183 | MuiAccordionDetails: AccordionDetailsClassKey;
|
184 | MuiAccordionSummary: AccordionSummaryClassKey;
|
185 | MuiFab: FabClassKey;
|
186 | MuiFilledInput: FilledInputClassKey;
|
187 | MuiFormControl: FormControlClassKey;
|
188 | MuiFormControlLabel: FormControlLabelClassKey;
|
189 | MuiFormGroup: FormGroupClassKey;
|
190 | MuiFormHelperText: FormHelperTextClassKey;
|
191 | MuiFormLabel: FormLabelClassKey;
|
192 | MuiGrid: GridClassKey;
|
193 | MuiGrid2: Grid2Slot;
|
194 | MuiIcon: IconClassKey;
|
195 | MuiIconButton: IconButtonClassKey;
|
196 | MuiImageList: ImageListClassKey;
|
197 | MuiImageListItem: ImageListItemClassKey;
|
198 | MuiImageListItemBar: ImageListItemBarClassKey;
|
199 | MuiInput: InputClassKey;
|
200 | MuiInputAdornment: InputAdornmentClassKey;
|
201 | MuiInputBase: InputBaseClassKey;
|
202 | MuiInputLabel: InputLabelClassKey;
|
203 | MuiLinearProgress: LinearProgressClassKey;
|
204 | MuiLink: LinkClassKey;
|
205 | MuiList: ListClassKey;
|
206 | MuiListItem: ListItemClassKey;
|
207 | MuiListItemButton: ListItemButtonClassKey;
|
208 | MuiListItemAvatar: ListItemAvatarClassKey;
|
209 | MuiListItemIcon: ListItemIconClassKey;
|
210 | MuiListItemSecondaryAction: ListItemSecondaryActionClassKey;
|
211 | MuiListItemText: ListItemTextClassKey;
|
212 | MuiListSubheader: ListSubheaderClassKey;
|
213 | MuiMenu: MenuClassKey;
|
214 | MuiMenuItem: MenuItemClassKey;
|
215 | MuiMenuList: MenuListClassKey;
|
216 | MuiMobileStepper: MobileStepperClassKey;
|
217 | MuiModal: ModalClassKey;
|
218 | MuiNativeSelect: NativeSelectClassKey;
|
219 | MuiOutlinedInput: OutlinedInputClassKey;
|
220 | MuiPagination: PaginationClassKey;
|
221 | MuiPaginationItem: PaginationItemClassKey;
|
222 | MuiPaper: PaperClassKey;
|
223 | MuiPopover: PopoverClassKey;
|
224 | MuiPopper: PopperClassKey;
|
225 | MuiRadio: RadioClassKey;
|
226 | MuiRadioGroup: RadioGroupClassKey;
|
227 | MuiRating: RatingClassKey;
|
228 | MuiScopedCssBaseline: ScopedCssBaselineClassKey;
|
229 | MuiSelect: SelectClassKey;
|
230 | MuiSkeleton: SkeletonClassKey;
|
231 | MuiSlider: SliderClassKey;
|
232 | MuiSnackbar: SnackbarClassKey;
|
233 | MuiSnackbarContent: SnackbarContentClassKey;
|
234 | MuiSpeedDial: SpeedDialClassKey;
|
235 | MuiSpeedDialAction: SpeedDialActionClassKey;
|
236 | MuiSpeedDialIcon: SpeedDialIconClassKey;
|
237 | MuiStack: StackClassKey;
|
238 | MuiStep: StepClasskey;
|
239 | MuiStepButton: StepButtonClasskey;
|
240 | MuiStepConnector: StepConnectorClasskey;
|
241 | MuiStepContent: StepContentClasskey;
|
242 | MuiStepIcon: StepIconClasskey;
|
243 | MuiStepLabel: StepLabelClasskey;
|
244 | MuiStepper: StepperClasskey;
|
245 | MuiSvgIcon: SvgIconClassKey;
|
246 | MuiSwitch: SwitchClassKey;
|
247 | MuiTab: TabClassKey;
|
248 | MuiTable: TableClassKey;
|
249 | MuiTableBody: TableBodyClassKey;
|
250 | MuiTableCell: TableCellClassKey;
|
251 | MuiTableContainer: TableContainerClassKey;
|
252 | MuiTableFooter: TableFooterClassKey;
|
253 | MuiTableHead: TableHeadClassKey;
|
254 | MuiTablePagination: TablePaginationClassKey;
|
255 | MuiTableRow: TableRowClassKey;
|
256 | MuiTableSortLabel: TableSortLabelClassKey;
|
257 | MuiTabs: TabsClassKey;
|
258 | MuiTextField: TextFieldClassKey;
|
259 | MuiToggleButton: ToggleButtonClassKey;
|
260 | MuiToggleButtonGroup: ToggleButtonGroupClassKey;
|
261 | MuiToolbar: ToolbarClassKey;
|
262 | MuiTooltip: TooltipClassKey;
|
263 | MuiTouchRipple: TouchRippleClassKey;
|
264 | MuiTypography: TypographyClassKey;
|
265 | }
|
266 |
|
\ | No newline at end of file |