@rafal.lemieszewski/tide-ui 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,3 +4,26 @@ import { ClassValue } from 'clsx';
4
4
  * Combines clsx for conditional classes and tailwind-merge for conflict resolution
5
5
  */
6
6
  export declare function cn(...inputs: ClassValue[]): string;
7
+ /**
8
+ * Number formatting utilities for tables and data display
9
+ */
10
+ /**
11
+ * Format a number with commas for thousands separators
12
+ * @param value - The number to format
13
+ * @returns Formatted string with commas (e.g., "7,785,000")
14
+ */
15
+ export declare function formatNumber(value: number): string;
16
+ /**
17
+ * Format a number as currency with dollar sign and commas
18
+ * @param value - The number to format as currency
19
+ * @param currency - The currency code (default: USD)
20
+ * @returns Formatted currency string (e.g., "$133,340,750")
21
+ */
22
+ export declare function formatCurrency(value: number, currency?: string): string;
23
+ /**
24
+ * Format a number with fixed decimal places
25
+ * @param value - The number to format
26
+ * @param decimals - Number of decimal places (default: 2)
27
+ * @returns Formatted string with fixed decimals (e.g., "20.35")
28
+ */
29
+ export declare function formatDecimal(value: number, decimals?: number): string;