UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

32 lines (31 loc) 1.14 kB
import { ToastListItem } from "../core/types.js"; import { IconProp } from "../icon/icon.types.js"; import "../icon/index.js"; import { JSX, ReactNode } from "react"; //#region src/toast/toast.types.d.ts type ToastDuration = 'fast' | 'slow' | 'sticky'; type ToastSize = 'default' | 'wide'; type ToastIntent = 'danger' | 'info' | 'success' | 'warning'; /** @deprecated Use `'danger'` instead of `'error'`. */ type ToastStatus = ToastIntent | 'loading' | 'error'; type ToastTextLayout = 'stacked' | 'inline'; interface ToastRenderProps { action?: ReactNode; content?: ReactNode; icon?: IconProp | JSX.Element | ''; showDismissButton?: boolean; size?: ToastSize; status?: ToastStatus; text?: ReactNode; textLayout?: ToastTextLayout; title?: ReactNode; } interface ToastOptions extends ToastRenderProps { id?: string; duration?: ToastDuration; /** @deprecated According to new UX requirements all toasts should be dismissible */ dismissible?: boolean; } //#endregion export { ToastDuration, ToastIntent, ToastOptions, ToastRenderProps, ToastSize, ToastStatus, ToastTextLayout }; //# sourceMappingURL=toast.types.d.ts.map