UNPKG

projectstarboy_ox_lib

Version:
31 lines (30 loc) 1.03 kB
import { IconName, IconPrefix } from '@fortawesome/fontawesome-common-types'; interface InputDialogRowProps { type: 'input' | 'number' | 'checkbox' | 'select' | 'multi-select' | 'slider' | 'color' | 'date' | 'date-range' | 'time' | 'text-area'; label: string; options?: { value: string; label: string; default?: string; }[]; password?: boolean; icon?: IconName | [IconPrefix, IconName]; iconColor?: string; placeholder?: string; default?: string | number; disabled?: boolean; checked?: boolean; min?: number; max?: number; autosize?: boolean; step?: number; required?: boolean; format?: string; description?: string; } type inputDialog = (heading: string, rows: string[] | InputDialogRowProps[], options: { allowCancel?: boolean; }) => Promise<Array<string | number | boolean> | undefined>; export declare const inputDialog: inputDialog; export declare const closeInputDialog: () => any; export {};