1mpacto-react-ui 0.0.24 → 0.0.25
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/index.cjs +42 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +7865 -6292
- package/dist/index.mjs.map +1 -1
- package/dist/src/utils/common.d.ts +9 -1
- package/package.json +2 -1
@@ -1 +1,9 @@
|
|
1
|
-
|
1
|
+
import { TDateType } from '../interfaces/components/Calendar';
|
2
|
+
|
3
|
+
export declare function formatNumber(number: number, style?: 'currency' | 'decimal', minimumFractionDigits?: number, locale?: string, currency?: string, withSpace?: boolean): string;
|
4
|
+
export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string) => string;
|
5
|
+
export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string) => string;
|
6
|
+
export declare const groupByKey: <T>(value: T[], key: keyof T) => Record<string, T[]>;
|
7
|
+
export declare const transformDataHistory: <T extends {
|
8
|
+
date: string | Date;
|
9
|
+
}>(value: T[], key: string, format?: string) => Record<string, T[]>;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "1mpacto-react-ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.25",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
7
7
|
"dev": "vite",
|
@@ -72,6 +72,7 @@
|
|
72
72
|
"@internationalized/date": "^3.5.4",
|
73
73
|
"@tanstack/react-table": "^8.19.2",
|
74
74
|
"chart.js": "^4.4.3",
|
75
|
+
"date-fns": "^3.6.0",
|
75
76
|
"react-aria": "^3.33.1",
|
76
77
|
"react-chartjs-2": "^5.2.0",
|
77
78
|
"react-number-format": "^5.4.0",
|