@wonderflow/react-components
Version:
UI components from Wonderflow's Wanda design system
16 lines • 805 B
TypeScript
import { Currency } from '../components/product-card/product-card-kpis/product-card-kpis';
export declare const getCurrency: (currency?: Currency) => "" | "€" | "$" | "£" | "¥";
export declare const formatPriceRangeValues: (p1?: number, p2?: number, option?: {
currency?: Currency;
decimals: number;
}) => string | undefined;
export declare const clampValue: (value: number, minRange?: number, maxRange?: number) => number;
export declare const formatKpiValue: (value?: number, option?: {
decimal: number;
minRange?: number;
maxRange?: number;
cap?: number;
}) => string;
export declare const isValueOverCap: (value?: number, cap?: number) => boolean;
export declare const isGreaterThan: (threashold: number, value?: number) => boolean;
//# sourceMappingURL=formatting.d.ts.map