UNPKG

watercolor-ui

Version:

A modern minimalist cross-framework component library

41 lines 1.88 kB
export namespace DEFAULT_CONFIG { let type: string; let size: string; let variant: string; let color: string; let autoComplete: string; let multiline: boolean; let rows: number; let fullWidth: boolean; let disabled: boolean; let readonly: boolean; let required: boolean; let error: boolean; } export const VALID_INPUT_TYPES: string[]; export const VALID_SIZES: string[]; export const VALID_VARIANTS: string[]; export const VALID_COLORS: string[]; export function getInputClasses(props: Object): any[]; export function getLabelClasses(props: Object): any[]; export function getContainerClasses(props: Object): any[]; export function getHelperTextClasses(props: Object): any[]; export function isValidInputType(type: string): boolean; export function isValidSize(size: string): boolean; export function isValidVariant(variant: string): boolean; export function isValidColor(color: string): boolean; export function generateInputId(prefix?: string): string; export function formatInputValue(value: any, type: string): string; export function validateInput(value: any, rules?: Object): Object; export function isValidEmail(email: string): boolean; export function isValidUrl(url: string): boolean; export function isValidPhone(phone: string): boolean; export function getAutocompleteSuggestions(value: string, suggestions: any[]): any[]; export function formatPhoneNumber(phone: string, format?: string): string; export function checkPasswordStrength(password: string): Object; export function createFocusManager(element: HTMLElement): Object; export function debounce(func: Function, delay: number): Function; export function throttle(func: Function, delay: number): Function; export function createInputConfig(options?: Object): Object; export function debugInputConfig(props: Object): Object; //# sourceMappingURL=utils.d.ts.map