UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

44 lines (43 loc) 1.33 kB
import { QuarkElement } from "quarkc"; export interface PopoverAction { text: string; icon?: string; disabled?: boolean; } export interface Props { open: boolean; placement?: "top" | "topleft" | "topright" | "left" | "lefttop" | "leftbottom" | "right" | "righttop" | "rightbottom" | "bottom" | "bottomleft" | "bottomright"; zindex?: number; theme?: "light" | "dark"; scrollhidden?: boolean; } export interface CustomEvent { close: () => void; select: (e: { detail: { action: PopoverAction; index: number; }; }) => void; } declare class QuarkPopover extends QuarkElement { placement: string; theme: string; actions: PopoverAction[]; open: boolean; scrollhidden: boolean; zindex: string; tipsRef: any; componentDidMount(): void; shouldComponentUpdate(propName: string, oldValue: string | boolean, newValue: string | boolean): boolean; componentWillUnmount(): void; windowScrollListener: () => void; addRemoveAnnimation: () => void; setActions: (actions: PopoverAction[]) => void; closeEmit: () => void; handleActionClick: (ev: PointerEvent, index: number) => void; renderIcon: (icon?: string) => any; renderActions: () => any; render(): any; } export default QuarkPopover;