UNPKG

quarkd

Version:

Mobile UI Components built on Web Components.

54 lines (53 loc) 1.62 kB
import "@quarkd/icons/lib/whitesuccess-o"; import "@quarkd/icons/lib/whiteerror-o"; import "@quarkd/icons/lib/whitewarning-o"; import { QuarkElement } from "quarkc"; import "../overlay"; import "../loading"; declare class QuarkToast extends QuarkElement { type: string; icon: string; position: Position; show: boolean; content: any; dRemove: boolean; timer: any; iconSize: number; iconColor: string; zIndex: number; loadingIconDirection: "horizontal" | "vertical"; toastWidth: string; iconRef: any; toastRef: any; loadingtRef: any; textRef: any; static allowMultiple: boolean; componentDidMount(): void; shouldComponentUpdate(propName: string, oldValue: string | boolean, newValue: string | boolean): boolean; hide: () => void; renderIcon: () => any; renderLoading: () => any; renderOther: () => any; render(): any; } declare type Position = "top" | "middle" | "bottom"; declare type ToastParams = { duration?: number; close?: () => void; size?: number; position?: Position; zIndex?: number; }; export { QuarkToast }; declare const _default: { text: (msg?: string, opts?: ToastParams) => QuarkToast; success: (msg?: string, opts?: ToastParams) => QuarkToast; error: (msg?: string, opts?: ToastParams) => QuarkToast; warning: (msg?: string, opts?: ToastParams) => QuarkToast; loading: (msg?: string, opts?: ToastParams & { loadingIconDirection?: "horizontal" | "vertical"; }) => QuarkToast; hide: () => void; allowMultiple: () => void; }; export default _default;