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.
44 lines
1.1 KiB
44 lines
1.1 KiB
1 year ago
|
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;
|
||
|
|
||
|
/** DialogActionArea */
|
||
|
|
||
|
type ButtonClickEventHandler = Exclude<
|
||
|
ContainedButtonProps['onClick'],
|
||
|
undefined
|
||
|
>;
|
||
|
|
||
|
type DialogActionAreaOptionalProps = {
|
||
|
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 DialogActionAreaProps = DialogActionAreaOptionalProps;
|