UNPKG

watercolor-ui

Version:

A modern minimalist cross-framework component library

39 lines 1.99 kB
export namespace DEFAULT_CONFIG { let position: string; let size: string; let variant: string; let showArrow: boolean; let trigger: string; let delay: number; let hideDelay: number; let disabled: boolean; let closeOnOutsideClick: boolean; let closeOnEscape: boolean; let zIndex: number; } export const VALID_POSITIONS: string[]; export const VALID_SIZES: string[]; export const VALID_VARIANTS: string[]; export const VALID_TRIGGERS: string[]; export function getHoverCardClasses(props: Object): any[]; export function getTriggerClasses(props: Object): any[]; export function getContentClasses(props: Object): any[]; export function getContentStyle(props: Object): Object; export function isValidPosition(position: string): boolean; export function isValidSize(size: string): boolean; export function isValidVariant(variant: string): boolean; export function isValidTrigger(trigger: string): boolean; export function calculateOptimalPosition(triggerEl: HTMLElement, contentEl: HTMLElement, preferredPosition?: string): string; export function calculateOffset(triggerEl: HTMLElement, contentEl: HTMLElement, position: string): Object; export function createVisibilityController(options?: Object): Object; export function createEventHandlers(trigger: string, controller: Object): Object; export function handleOutsideClick(containerEl: HTMLElement, onOutsideClick: Function): Function; export function handleKeyboard(onEscape: Function): Function; export function adjustForCollision(contentEl: HTMLElement, position: string): Object; export function formatContent(content: any): Object; export function generateHoverCardId(prefix?: string): string; export function debounce(func: Function, delay: number): Function; export function throttle(func: Function, delay: number): Function; export function createHoverCardConfig(options?: Object): Object; export function debugHoverCardConfig(props: Object): Object; //# sourceMappingURL=utils.d.ts.map