@etsoo/website
Version:
ETSOO CMS Based NextJs Website Framework
72 lines (71 loc) • 1.74 kB
TypeScript
import { INotification, Notification, NotificationCallProps, NotificationRenderProps } from '@etsoo/notificationbase';
/**
* Notification Dom interface
*/
export interface INotificationDom extends INotification<HTMLDivElement, NotificationDomCallProps> {
}
/**
* Notification Dom call props
*/
export interface NotificationDomCallProps extends NotificationCallProps {
/**
* Full width
*/
fullWidth?: boolean;
/**
* Full screen
*/
fullScreen?: boolean;
/**
* Inputs layout
*/
inputs?: HTMLDivElement;
/**
* Max width
*/
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
/**
* OK label
*/
okLabel?: string;
/**
* false to hide cancel button
*/
cancelButton?: boolean;
/**
* Cancel label
*/
cancelLabel?: string;
/**
* Window is closable
*/
closable?: boolean;
/**
* Type
*/
type?: string;
/**
* Primary button props
*/
primaryButton?: {};
/**
* Buttons to override default buttons
*/
buttons?: (notification: INotificationDom, callback: (event: MouseEvent, value?: any) => Promise<boolean>) => HTMLDivElement;
}
/**
* Notification Dom
*/
export declare class NotificationDom extends Notification<HTMLDivElement, NotificationDomCallProps> implements INotificationDom {
private createButton;
private createConfirm;
private getDialogStyle;
private createContent;
private createModal;
private doSetup;
private createLoading;
private createPrompt;
private getColor;
private createMessage;
render(props: NotificationRenderProps, className?: string | undefined): HTMLDivElement | undefined;
}