rharuow-ds
Version:
Modern React Design System with 20 components and auto color system. Define only 2 colors (primary/secondary) and get automatic variations (hover, light, dark) with proper text contrast (WCAG AA). Includes: Table, Card, Button, Chip, Pagination, Input, Te
7 lines (6 loc) • 582 B
TypeScript
export type CurrencyValueType = "string" | "number";
export declare const DEFAULT_CURRENCY_CODE = "BRL";
export declare const DEFAULT_CURRENCY_LOCALE = "pt-BR";
export declare function parseCurrencyValue(value: string | number | null | undefined): number | null;
export declare function formatCurrencyValue(value: string | number | null | undefined, currency?: string, locale?: string): string;
export declare function serializeCurrencyValue(value: string | number | null | undefined, valueType?: CurrencyValueType, currency?: string, locale?: string): string | number | undefined;