@umituz/web-dashboard 3.1.8 → 3.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/web-dashboard",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "description": "Dashboard Layout System - Comprehensive analytics, calendar, customizable layouts, and config-based architecture",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -15,6 +15,17 @@ import type {
15
15
  UsageMetric,
16
16
  } from "../types/billing";
17
17
 
18
+ /**
19
+ * Format number with thousand separators
20
+ *
21
+ * @param num - Number to format
22
+ * @param locale - Locale (default: en-US)
23
+ * @returns Formatted number string
24
+ */
25
+ export function formatNumber(num: number, locale: string = "en-US"): string {
26
+ return new Intl.NumberFormat(locale).format(num);
27
+ }
28
+
18
29
  /**
19
30
  * Format price with currency
20
31
  *