1mpacto-react-ui 0.0.60 → 0.0.61

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.
@@ -10,9 +10,12 @@ export declare function formatNumber(number: number, style?: 'currency' | 'decim
10
10
  export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string) => string;
11
11
  export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string) => string;
12
12
  export declare const groupByKey: <T>(value: T[], key: keyof T) => Record<string, T[]>;
13
- export declare const transformDataHistory: <T extends {
14
- date: string | Date;
15
- }>(value: T[], key: string, format?: string) => Record<string, T[]>;
13
+ export declare const transformDataHistory: <T extends Record<string, TDateType>>({ value, keyDate, keyFormat, format, }: {
14
+ value: T[];
15
+ keyDate?: string;
16
+ keyFormat?: string;
17
+ format?: string;
18
+ }) => Record<string, T[]>;
16
19
  export declare const parseDecimal: (value: number | string, decimals?: number) => number;
17
20
  export declare const removeKeyObjectEmptyValue: (data: IMergeState) => IMergeState;
18
21
  export declare const transformLatLong: (value: string, options?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.60",
4
+ "version": "0.0.61",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",