parent
e5d7014b9f
commit
17657388af
2 changed files with 34 additions and 20 deletions
@ -1,16 +1,21 @@ |
|||||||
type CreatableComponent = Parameters<typeof import('react').createElement>[0]; |
type CreatableComponent = Parameters<typeof import('react').createElement>[0]; |
||||||
|
|
||||||
type IconButtonPresetMapToStateIcon = 'edit' | 'visibility'; |
type IconButtonPresetMapToStateIconBundle = 'edit' | 'visibility'; |
||||||
|
|
||||||
type IconButtonMapToStateIcon = Record<string, CreatableComponent>; |
type IconButtonStateIconBundle = { |
||||||
|
iconType: CreatableComponent; |
||||||
|
iconProps?: import('@mui/material').SvgIconProps; |
||||||
|
}; |
||||||
|
|
||||||
|
type IconButtonMapToStateIconBundle = Record<string, IconButtonStateIconBundle>; |
||||||
|
|
||||||
type IconButtonVariant = 'contained' | 'normal'; |
type IconButtonVariant = 'contained' | 'normal'; |
||||||
|
|
||||||
type IconButtonOptionalProps = { |
type IconButtonOptionalProps = { |
||||||
defaultIcon?: CreatableComponent; |
defaultIcon?: CreatableComponent; |
||||||
iconProps?: import('@mui/material').SvgIconProps; |
iconProps?: import('@mui/material').SvgIconProps; |
||||||
mapPreset?: IconButtonPresetMapToStateIcon; |
mapPreset?: IconButtonPresetMapToStateIconBundle; |
||||||
mapToIcon?: IconButtonMapToStateIcon; |
mapToIcon?: IconButtonMapToStateIconBundle; |
||||||
state?: string; |
state?: string; |
||||||
variant?: IconButtonVariant; |
variant?: IconButtonVariant; |
||||||
}; |
}; |
||||||
|
Loading…
Reference in new issue