UNPKG

notiwind

Version:

A headless Vue 3 notification library to use with Tailwind CSS.

84 lines (82 loc) 2.48 kB
import { Notification } from './types'; export interface Props { maxNotifications?: number; enter?: string; enterFrom?: string; enterTo?: string; leave?: string; leaveFrom?: string; leaveTo?: string; move?: string; moveDelay?: string; } declare function __VLS_template(): { default?(_: { notifications: { [x: string]: unknown; id: number; group: string; }[]; close: (id: Notification["id"]) => void; hovering: (id: number, value: boolean, timeout?: number) => void; }): any; }; declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, { maxNotifications: number; enter: string; enterFrom: string; enterTo: string; leave: string; leaveFrom: string; leaveTo: string; move: string; moveDelay: string; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { close: () => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, { maxNotifications: number; enter: string; enterFrom: string; enterTo: string; leave: string; leaveFrom: string; leaveTo: string; move: string; moveDelay: string; }>>> & Readonly<{ onClose?: (() => any) | undefined; }>, { maxNotifications: number; enter: string; enterFrom: string; enterTo: string; leave: string; leaveFrom: string; leaveTo: string; move: string; moveDelay: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; };