1mpacto-react-ui 0.0.62 → 0.0.64

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;
@@ -1,5 +1,5 @@
1
1
  import { ElementType } from 'react';
2
2
  import { IItemSidebar } from '../../interfaces/components/Sidebar';
3
3
 
4
- declare const ItemSidebar: <T extends ElementType = "div">({ as, show, open, patch, iconSubs, kind, setShow, onClickItems, propsLink, ...value }: IItemSidebar<T>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ItemSidebar: <T extends ElementType = "div">({ as, show, open, patch, iconSubs, variant, setShow, onClickItems, propsLink, ...value }: IItemSidebar<T>) => import("react/jsx-runtime").JSX.Element;
5
5
  export default ItemSidebar;
@@ -1,5 +1,5 @@
1
1
  import { ElementType } from 'react';
2
2
  import { ISidebar } from '../../interfaces/components/Sidebar';
3
3
 
4
- declare const Sidebar: <T extends ElementType = "div">({ as, children, patch, iconCompany, iconSubs, iconCollapse, iconCollapseClose, kind, modules, toleranceWidthIconCompany, onClickItems, ...props }: ISidebar<T>) => import("react/jsx-runtime").JSX.Element;
4
+ declare const Sidebar: <T extends ElementType = "div">({ as, children, patch, iconCompany, iconSubs, iconCollapse, iconCollapseClose, modules, toleranceWidthIconCompany, onClickItems, variant, footer, ...props }: ISidebar<T>) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Sidebar;
@@ -1,6 +1,6 @@
1
1
  import { ITimelineContent, ITimelineLayout } from '../../interfaces/components/Timeline';
2
2
 
3
- declare const Timeline: (({ children }: ITimelineLayout) => import("react/jsx-runtime").JSX.Element) & {
4
- TimelineContent: ({ children, time, clasName }: ITimelineContent) => import("react/jsx-runtime").JSX.Element;
3
+ declare const Timeline: (({ children, noTime }: ITimelineLayout) => import("react/jsx-runtime").JSX.Element) & {
4
+ TimelineContent: ({ children, time, clasName, noTime }: ITimelineContent) => import("react/jsx-runtime").JSX.Element;
5
5
  };
6
6
  export default Timeline;
@@ -1,8 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
+ export type TButtonIcomVariants = 'filled-laba-blue-10' | 'ghost-laba-blue-10' | 'ghost-blue-gray-100-bg_white' | 'nude-laba-blue-10' | 'nude-gray-500' | 'nude-laba-red-10' | 'primary-blue-700' | 'primary-red-700' | 'secondary-blue-700' | 'secondary-red-600' | 'secondary-green-600' | 'tertiary-blue-700' | 'tertiary-red-300' | 'tertiary-red-600' | 'tertiary-gray-500';
4
+ export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
3
5
  export interface IButtonIcon extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- size?: 'large' | 'reguler' | 'small' | 'l' | 'm' | 's' | 'xs';
5
- kind?: 'filled' | 'ghost' | 'nude' | 'primary' | 'secondary' | 'tertiary';
6
+ size?: TButtonIconSize;
7
+ variants?: TButtonIcomVariants;
6
8
  children: ReactNode | ReactNode[];
7
9
  className?: string | undefined;
10
+ loading?: boolean;
11
+ classNameIconLoading?: string | undefined;
8
12
  }
@@ -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,6 +1,6 @@
1
1
  import { ElementType, HTMLAttributes, ReactNode } from 'react';
2
2
 
3
- export type TColorSidebarType = 'payhere' | 'laba';
3
+ export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white';
4
4
  export interface ISidebarModule {
5
5
  name: string;
6
6
  label: string;
@@ -21,9 +21,10 @@ export interface ISidebar<T extends ElementType> extends HTMLAttributes<HTMLDivE
21
21
  iconSubs?: ReactNode | ReactNode[];
22
22
  iconCollapse?: ReactNode | ReactNode[];
23
23
  iconCollapseClose?: ReactNode | ReactNode[];
24
- kind?: TColorSidebarType;
24
+ variant?: TVariantSidebarType;
25
25
  modules: ISidebarModule[];
26
26
  toleranceWidthIconCompany?: number;
27
+ footer?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
27
28
  onClickItems?: (v: ISidebarModule) => void;
28
29
  propsLink?: (value: string) => object;
29
30
  }
@@ -33,7 +34,7 @@ export interface IItemSidebar<T extends ElementType> extends ISidebarModule {
33
34
  open: boolean | null;
34
35
  patch?: string;
35
36
  iconSubs?: ReactNode | ReactNode[] | (() => ReactNode) | (() => ReactNode[]);
36
- kind?: TColorSidebarType;
37
+ variant?: TVariantSidebarType;
37
38
  setShow: (v: string) => void;
38
39
  onClickItems?: (v: ISidebarModule) => void;
39
40
  propsLink?: (value: string) => object;
@@ -3,9 +3,11 @@ import { ReactNode } from 'react';
3
3
  export interface ITimelineLayout {
4
4
  children: ReactNode | ReactNode[];
5
5
  id?: string;
6
+ noTime?: boolean;
6
7
  }
7
8
  export interface ITimelineContent {
8
9
  children: ReactNode | ReactNode[];
9
10
  time?: string;
10
11
  clasName?: string | undefined;
12
+ noTime?: boolean;
11
13
  }
@@ -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.64",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",