UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

48 lines (47 loc) 2.12 kB
import type { DialogCustomButton, DialogData } from './MazDialogPromise/useMazDialogPromise'; import { type MazDialogProps } from './MazDialog.vue'; export interface MazDialogPromiseProps { /** Dialog Data - @type DialogData */ data?: DialogData; /** Message to display */ message?: string; /** Uniq identifier */ identifier: string; /** Custom buttons - @type DialogCustomButton[] */ buttons?: DialogCustomButton[]; } export type Props = MazDialogPromiseProps & MazDialogProps & DialogData; export { useMazDialogPromise } from './MazDialogPromise/useMazDialogPromise'; export type { ActionButton, DialogButton, DialogCustomButton, DialogData, DialogState, PromiseButton } from './MazDialogPromise/useMazDialogPromise'; declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").MazBackdropProps & DialogData, { close: () => any; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { close: (value: void) => any; open: (value: void) => any; }, string, import("vue").PublicProps, Readonly<MazDialogPromiseProps & import("./MazDialog.vue").InternalProps & import("./MazBackdrop.vue").MazBackdropProps & DialogData> & Readonly<{ onClose?: ((value?: void | undefined) => any) | undefined; onOpen?: ((value?: void | undefined) => any) | undefined; }>, { data: DialogData; message: string; identifier: string; buttons: DialogCustomButton[]; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { title?(_: {}): any; default?(_: { resolve: (reason?: unknown) => Promise<void>; reject: (reason?: unknown) => Promise<void>; }): any; "footer-button"?(_: { resolve: (reason?: unknown) => Promise<void>; reject: (reason?: unknown) => Promise<void>; }): any; "cancel-text"?(_: {}): any; "confirm-text"?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };