1mpacto-react-ui 0.0.62 → 0.0.63

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.
@@ -1,4 +1,4 @@
1
1
  import { IPaginationProps } from '../../interfaces/components/Pagination';
2
2
 
3
- declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withOptionPageSize, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Pagination;
@@ -5,6 +5,7 @@ import { CalendarState, CalendarStateOptions, DateRangePickerStateOptions, Range
5
5
 
6
6
  export type TCalendarType = 'date' | 'month' | 'year';
7
7
  export type TDateType = Date | string | null | undefined;
8
+ export type TKeyLocale = 'id' | 'enUS' | 'nl';
8
9
  export interface ICalendarPrevNextIcon {
9
10
  prevIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
10
11
  nextIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
@@ -1,3 +1,4 @@
1
+ import { OffsetOptions } from '@floating-ui/react';
1
2
  import { ReactNode } from 'react';
2
3
 
3
4
  export type TKindPaginationType = 'box' | 'nude';
@@ -14,4 +15,8 @@ export interface IPaginationProps extends IPagination {
14
15
  id?: string | undefined;
15
16
  prevIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
16
17
  nextIcon?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
18
+ optionPageSize?: number[];
19
+ offset?: OffsetOptions;
20
+ zIndex?: number | undefined | string;
21
+ withOptionPageSize?: boolean;
17
22
  }
@@ -1,4 +1,4 @@
1
- import { TDateType } from '../interfaces/components/Calendar';
1
+ import { TDateType, TKeyLocale } from '../interfaces/components/Calendar';
2
2
  import { IMergeState } from '../interfaces/components/FilterContainer';
3
3
 
4
4
  export declare function formatNumber(number: number, style?: 'currency' | 'decimal', options?: {
@@ -7,9 +7,12 @@ export declare function formatNumber(number: number, style?: 'currency' | 'decim
7
7
  currency: string;
8
8
  withSpace: boolean;
9
9
  }): string;
10
- export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string) => string;
11
- export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string) => string;
10
+ export declare const formatDate: (date: TDateType, format?: string, defaultValue?: string, keyLocale?: TKeyLocale) => string;
11
+ export declare const formatDateRange: (startDate: TDateType, endDate: TDateType, format?: string, separator?: string, defaultValue?: string, keyLocale?: TKeyLocale) => string;
12
12
  export declare const groupByKey: <T>(value: T[], key: keyof T) => Record<string, T[]>;
13
+ export declare const transformDataHistoryOld: <T extends {
14
+ date: string | Date;
15
+ }>(value: T[], key: string, format?: string) => Record<string, T[]>;
13
16
  export declare const transformDataHistory: <T extends Record<string, TDateType>>({ value, keyDate, keyFormat, format, }: {
14
17
  value: T[];
15
18
  keyDate?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.62",
4
+ "version": "0.0.63",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",