UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

42 lines (41 loc) 1.28 kB
import { QuarkElement } from "quarkc"; import "@quarkd/icons/lib/close"; export interface Props { open: boolean; placement?: "top" | "topleft" | "topright" | "left" | "lefttop" | "leftbottom" | "right" | "righttop" | "rightbottom" | "bottom" | "bottomleft" | "bottomright"; zindex?: number; tips: string; closeable?: boolean; autoclose?: boolean; opentime?: number; scrollhidden?: boolean; } export interface CustomEvent { close: () => void; } declare class QuarkTooltip extends QuarkElement { placement: string; tips: string; open: boolean; closeable: boolean; autoclose: boolean; opentime: number; scrollhidden: boolean; zindex: string; size: string; timer?: ReturnType<typeof setTimeout> | null; tipsRef: any; componentDidMount(): void; shouldComponentUpdate(propName: string, oldValue: string | boolean, newValue: string | boolean): boolean; componentWillUnmount(): void; windowScrollListener: () => void; addTimer: () => void; clearTimer: () => void; addRemoveAnimation: () => void; closeEmit: () => void; handleTipsClick: (ev: PointerEvent) => void; renderCloseIcon: () => any; renderTips: () => any; render(): any; } export default QuarkTooltip;