@bardoui/vpopper
Version:
PopperJs powered popup for vue 3
35 lines (34 loc) • 872 B
TypeScript
import { AnimeParams } from "animejs";
/**
* Simple function
*/
export declare type MinimalFunction = () => void;
/**
* Action handler callback
*/
export declare type ActionHandler = (key: string, data?: unknown) => Promise<boolean>;
/**
* Close handler callback
*/
export declare type CloseHandler = (mode: "blur" | "click" | "action") => void;
/**
* Placement types
*/
export declare type Placement = "top" | "left" | "right" | "bottom";
/**
* Popup full animation
*/
export interface PopperFullAnimation {
top: AnimeParams;
left: AnimeParams;
bottom: AnimeParams;
right: AnimeParams;
}
/**
* Popup Animation
*/
export declare type PopperAnimation = PopperFullAnimation | AnimeParams | undefined;
export interface PopperOptions {
enterAnimation?: PopperAnimation;
leaveAnimation?: PopperAnimation;
}