Local modifications to ClusterLabs/Anvil by Alteeve
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.
 
 
 
 
 
 

52 lines
1.3 KiB

type DialogContextContent = {
open: boolean;
setOpen: (open: boolean) => void;
};
type DialogOptionalProps = {
dialogProps?: Partial<import('@mui/material').DialogProps>;
loading?: boolean;
openInitially?: boolean;
wide?: boolean;
};
type DialogProps = DialogOptionalProps;
type DialogForwardedRefContent = DialogContextContent;
/** 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>;
showCancel?: boolean;
};
type DialogActionGroupProps = DialogActionGroupOptionalProps;
/** DialogHeader */
type DialogHeaderOptionalProps = {
showClose?: boolean;
};
type DialogHeaderProps = DialogHeaderOptionalProps;
/** DialogWithHeader */
type DialogWithHeaderProps = DialogProps &
DialogHeaderProps & {
header: import('react').ReactNode;
};