UNPKG

@vuesax-alpha/nightly

Version:
120 lines (119 loc) • 8.65 kB
import type { ExtractPropTypes, VNode } from 'vue'; import type Notification from './notification.vue'; export declare const notificationPosition: readonly ["top-right", "top-center", "top-left", "bottom-right", "bottom-center", "bottom-left"]; export declare type NotificationPosition = (typeof notificationPosition)[number]; export declare const notificationProps: { readonly border: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<StringConstructor, "primary" | "success" | "danger" | "warn" | "dark" | "text" | "light" | "secondary" | "facebook" | "twitter" | "youtube" | "pinterest" | "linkedin" | "snapchat" | "whatsapp" | "tumblr" | "reddit" | "spotify" | "amazon" | "medium" | "vimeo" | "skype" | "dribbble" | "slack" | "yahoo" | "twitch" | "discord" | "telegram" | "google-plus" | "messenger", import("../../..").Color>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly color: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<StringConstructor, "primary" | "success" | "danger" | "warn" | "dark" | "text" | "light" | "secondary" | "facebook" | "twitter" | "youtube" | "pinterest" | "linkedin" | "snapchat" | "whatsapp" | "tumblr" | "reddit" | "spotify" | "amazon" | "medium" | "vimeo" | "skype" | "dribbble" | "slack" | "yahoo" | "twitch" | "discord" | "telegram" | "google-plus" | "messenger", import("../../..").Color>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly customClass: import("vuesax-alpha/es/utils").VsPropFinalized<StringConstructor, unknown, unknown, "", boolean>; readonly duration: import("vuesax-alpha/es/utils").VsPropFinalized<NumberConstructor, unknown, unknown, 4500, boolean>; readonly flat: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly icon: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly iconSize: import("vuesax-alpha/es/utils").VsPropFinalized<StringConstructor, unknown, unknown, "1.2rem", boolean>; readonly id: import("vuesax-alpha/es/utils").VsPropFinalized<StringConstructor, unknown, unknown, "", boolean>; readonly dangerousHtmlString: import("vuesax-alpha/es/utils").VsPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>; readonly content: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => (string | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>) & {}) | (() => string | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>) | ((new (...args: any[]) => (string | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>) & {}) | (() => string | VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>))[], unknown, unknown, "", boolean>; readonly loading: BooleanConstructor; readonly notPadding: BooleanConstructor; readonly offset: import("vuesax-alpha/es/utils").VsPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>; readonly onClick: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; } | ((new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; })[], unknown, unknown, () => undefined, boolean>; readonly onClickClose: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => () => boolean) | (() => () => boolean) | { (): () => boolean; new (): any; readonly prototype: any; } | ((new (...args: any[]) => () => boolean) | (() => () => boolean) | { (): () => boolean; new (): any; readonly prototype: any; })[], unknown, unknown, () => true, boolean>; readonly onClose: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; } | ((new (...args: any[]) => () => void) | (() => () => void) | { (): () => void; new (): any; readonly prototype: any; })[], unknown, unknown, () => undefined, boolean>; readonly position: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => ("top-right" | "bottom-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center") & {}) | (() => "top-right" | "bottom-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center") | ((new (...args: any[]) => ("top-right" | "bottom-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center") & {}) | (() => "top-right" | "bottom-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center"))[], "top-right" | "bottom-right" | "bottom-left" | "top-left" | "top-center" | "bottom-center", unknown, "bottom-right", boolean>; readonly progressAuto: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly shape: import("vuesax-alpha/es/utils").VsPropFinalized<StringConstructor, "" | "square", unknown, "", boolean>; readonly showClose: import("vuesax-alpha/es/utils").VsPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>; readonly sticky: { readonly type: import("vue").PropType<import("vuesax-alpha/es/utils").VsPropMergeType<BooleanConstructor, unknown, unknown>>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly title: import("vuesax-alpha/es/utils").VsPropFinalized<StringConstructor, unknown, unknown, "", boolean>; readonly zIndex: { readonly type: import("vue").PropType<number>; readonly required: false; readonly validator: ((val: unknown) => boolean) | undefined; __vsPropKey: true; }; readonly width: import("vuesax-alpha/es/utils").VsPropFinalized<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown, null, boolean>; }; export declare type NotificationProps = ExtractPropTypes<typeof notificationProps>; export declare const notificationEmits: { destroy: () => boolean; }; export declare type NotificationEmits = typeof notificationEmits; export declare type NotificationInstance = InstanceType<typeof Notification>; export declare type NotificationOptions = Omit<NotificationProps, 'id'>; export declare type NotificationOptionsTyped = Omit<NotificationOptions, 'color'>; export interface NotificationHandle { close: () => void; } export declare type NotificationParamsTyped = Partial<NotificationOptionsTyped> | string | VNode; export declare type NotificationParams = Partial<NotificationOptions> | string; export declare type NotifyFn = (options?: NotificationParams) => NotificationHandle; export declare type NotifyTypedFn = (options?: NotificationParamsTyped) => NotificationHandle; export interface Notify extends NotifyFn { primary: NotifyTypedFn; success: NotifyTypedFn; warn: NotifyTypedFn; danger: NotifyTypedFn; dark: NotifyTypedFn; }