You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
type DialogContextContent = { |
|
open: boolean; |
|
setOpen: (open: boolean) => void; |
|
}; |
|
|
|
type DialogOptionalProps = { |
|
dialogProps?: Partial<import('@mui/material').DialogProps>; |
|
loading?: boolean; |
|
openInitially?: boolean; |
|
}; |
|
|
|
type DialogProps = DialogOptionalProps; |
|
|
|
type DialogForwardedRefContent = DialogContextContent; |
|
|
|
/** DialogHeader */ |
|
|
|
type DialogHeaderOptionalProps = { |
|
showClose?: boolean; |
|
}; |
|
|
|
type DialogHeaderProps = DialogHeaderOptionalProps; |
|
|
|
/** DialogActionGroup */ |
|
|
|
type ButtonClickEventHandler = Exclude< |
|
ContainedButtonProps['onClick'], |
|
undefined |
|
>; |
|
|
|
type DialogActionGroupOptionalProps = { |
|
cancelChildren?: ContainedButtonProps['children']; |
|
cancelProps?: Partial<ContainedButtonProps>; |
|
closeOnProceed?: boolean; |
|
loading?: boolean; |
|
onCancel?: ExtendableEventHandler<ButtonClickEventHandler>; |
|
onProceed?: ExtendableEventHandler<ButtonClickEventHandler>; |
|
proceedChildren?: ContainedButtonProps['children']; |
|
proceedColour?: ContainedButtonProps['background']; |
|
proceedProps?: Partial<ContainedButtonProps>; |
|
}; |
|
|
|
type DialogActionGroupProps = DialogActionGroupOptionalProps;
|
|
|