1 | import { SxProps } from '@mui/system';
|
2 | import { SlotComponentProps } from '@mui/utils';
|
3 | import { Theme } from '../styles';
|
4 | export type { EventHandlers, WithOptionalOwnerState, SlotComponentProps, SlotComponentPropsWithSlotState, } from '@mui/utils';
|
5 | export type SlotCommonProps = {
|
6 | component?: React.ElementType;
|
7 | sx?: SxProps<Theme>;
|
8 | };
|
9 | export type SlotProps<TSlotComponent extends React.ElementType, TOverrides, TOwnerState> = SlotComponentProps<TSlotComponent, SlotCommonProps & TOverrides, TOwnerState>;
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export type CreateSlotsAndSlotProps<Slots, K extends Record<keyof Slots, any>> = {
|
16 | |
17 |
|
18 |
|
19 |
|
20 | slots?: Partial<Slots>;
|
21 | |
22 |
|
23 |
|
24 |
|
25 | slotProps?: {
|
26 | [P in keyof K]?: K[P];
|
27 | };
|
28 | };
|