@rafal.lemieszewski/tide-ui 0.3.1 → 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.
- package/dist/components/index.d.ts +14 -0
- package/dist/components/ui/button-group.d.ts +9 -0
- package/dist/components/ui/collapsible.d.ts +6 -3
- package/dist/components/ui/data-table.d.ts +4 -2
- package/dist/components/ui/linked-chart.d.ts +2 -2
- package/dist/components/ui/pagination.d.ts +11 -12
- package/dist/components/ui/table.d.ts +2 -0
- package/dist/components/ui/toggle-group.d.ts +0 -2
- package/dist/components/ui/toggle.d.ts +0 -1
- package/dist/index.cjs.js +1712 -1686
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +29576 -25939
- package/dist/index.es.js.map +1 -1
- package/dist/lib/utils.d.ts +23 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/lib/utils.d.ts
CHANGED
|
@@ -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;
|