1mpacto-react-ui 2.0.7 → 2.0.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/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/index.cjs +85 -85
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2930 -2889
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Button/Button.stories.d.ts +2 -2
- package/dist/src/components/ButtonIcon/ButtonIcon.stories.d.ts +1 -1
- package/dist/src/components/Collapse/CollapseV2.d.ts +1 -1
- package/dist/src/components/Collapse/CollapseV2.stories.d.ts +14 -1
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.config.d.ts +2 -0
- package/dist/src/components/Sidebar/ItemSidebar.config.d.ts +8 -4
- package/dist/src/components/Sidebar/Sidebar.config.d.ts +4 -2
- package/dist/src/components/Sidebar/Sidebar.stories.d.ts +2 -2
- package/dist/src/components/Tabs/Tabs.config.d.ts +1 -0
- package/dist/src/components/index.d.ts +4 -3
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Collapse/index.d.ts +5 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +1 -1
- package/dist/src/interfaces/components/Sidebar/index.d.ts +1 -1
- package/dist/src/interfaces/components/Tabs/index.d.ts +1 -1
- package/dist/src/utils/common.d.ts +6 -0
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<import('
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('..').IButton & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -149,7 +149,7 @@ declare const meta: {
|
|
|
149
149
|
loading: false;
|
|
150
150
|
disabled: false;
|
|
151
151
|
};
|
|
152
|
-
render: (args: import('
|
|
152
|
+
render: (args: import('..').IButton & import('react').RefAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
153
153
|
};
|
|
154
154
|
export default meta;
|
|
155
155
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').ForwardRefExoticComponent<import('
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('..').IButtonIcon & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ICollapseV2 } from '../../interfaces/components/Collapse';
|
|
2
|
-
declare const CollapseV2: ({ children, open, className, id, classNameContainer }: ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const CollapseV2: ({ children, open, className, id, classNameContainer, maxCollapsedHeight }: ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default CollapseV2;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ children, open, className, id, classNameContainer }: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ children, open, className, id, classNameContainer, maxCollapsedHeight }: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -66,6 +66,19 @@ declare const meta: {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
maxCollapsedHeight: {
|
|
70
|
+
control: "text";
|
|
71
|
+
description: string;
|
|
72
|
+
table: {
|
|
73
|
+
category: string;
|
|
74
|
+
type: {
|
|
75
|
+
summary: string;
|
|
76
|
+
};
|
|
77
|
+
defaultValue: {
|
|
78
|
+
summary: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
69
82
|
};
|
|
70
83
|
render: (args: import('../../interfaces/components/Collapse').ICollapseV2) => import("react/jsx-runtime").JSX.Element;
|
|
71
84
|
};
|
|
@@ -21,6 +21,8 @@ export declare const configRadioCheckboxLabel: {
|
|
|
21
21
|
'laba-blue-01': string;
|
|
22
22
|
'blue-50': string;
|
|
23
23
|
'bill-secondary-50': string;
|
|
24
|
+
'transparent-text_orange-700': string;
|
|
25
|
+
'transparent-text_green-700': string;
|
|
24
26
|
};
|
|
25
27
|
};
|
|
26
28
|
export declare const keysConfigRadioCheckboxLabelVariant: string[];
|
|
@@ -2,13 +2,15 @@ export declare const configItemSidebar: {
|
|
|
2
2
|
variant: {
|
|
3
3
|
'payhere-brand-base-white': string;
|
|
4
4
|
'payhere-brand-base-transparent': string;
|
|
5
|
+
'payhere-brand-indigo-900-transparent': string;
|
|
6
|
+
'payhere-brand-blue-gray-900-transparent': string;
|
|
5
7
|
'laba-white': string;
|
|
6
8
|
'lpd-brand-base-white': string;
|
|
7
9
|
'lpd-brand-base-transparent': string;
|
|
8
10
|
'lpd-brand-base-white-responsive': string;
|
|
9
11
|
'lpd-brand-base-transparent-responsive': string;
|
|
10
|
-
'bill-brand-base
|
|
11
|
-
'bill-brand-base-
|
|
12
|
+
'bill-brand-base': string;
|
|
13
|
+
'bill-brand-base-responsive': string;
|
|
12
14
|
};
|
|
13
15
|
parent: {
|
|
14
16
|
'1': string;
|
|
@@ -23,12 +25,14 @@ export declare const configItemSidebar: {
|
|
|
23
25
|
divider: {
|
|
24
26
|
'payhere-brand-base-white': string;
|
|
25
27
|
'payhere-brand-base-transparent': string;
|
|
28
|
+
'payhere-brand-indigo-900-transparent': string;
|
|
29
|
+
'payhere-brand-blue-gray-900-transparent': string;
|
|
26
30
|
'laba-white': string;
|
|
27
31
|
'lpd-brand-base-white': string;
|
|
28
32
|
'lpd-brand-base-transparent': string;
|
|
29
33
|
'lpd-brand-base-white-responsive': string;
|
|
30
34
|
'lpd-brand-base-transparent-responsive': string;
|
|
31
|
-
'bill-brand-base
|
|
32
|
-
'bill-brand-base-
|
|
35
|
+
'bill-brand-base': string;
|
|
36
|
+
'bill-brand-base-responsive': string;
|
|
33
37
|
};
|
|
34
38
|
};
|
|
@@ -3,13 +3,15 @@ export declare const configSidebar: {
|
|
|
3
3
|
variants: {
|
|
4
4
|
'payhere-brand-base-white': string;
|
|
5
5
|
'payhere-brand-base-transparent': string;
|
|
6
|
+
'payhere-brand-indigo-900-transparent': string;
|
|
7
|
+
'payhere-brand-blue-gray-900-transparent': string;
|
|
6
8
|
'laba-white': string;
|
|
7
9
|
'lpd-brand-base-white': string;
|
|
8
10
|
'lpd-brand-base-transparent': string;
|
|
9
11
|
'lpd-brand-base-white-responsive': string;
|
|
10
12
|
'lpd-brand-base-transparent-responsive': string;
|
|
11
|
-
'bill-brand-base
|
|
12
|
-
'bill-brand-base-
|
|
13
|
+
'bill-brand-base': string;
|
|
14
|
+
'bill-brand-base-responsive': string;
|
|
13
15
|
};
|
|
14
16
|
mobileSupport: string[];
|
|
15
17
|
};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { IRefSidebar } from '../../interfaces/components/Sidebar';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: <T extends React.ElementType = "div">(props: import('
|
|
5
|
+
component: <T extends React.ElementType = "div">(props: import('..').ISidebar<T> & {
|
|
6
6
|
ref?: React.ForwardedRef<IRefSidebar>;
|
|
7
7
|
}) => React.ReactNode;
|
|
8
8
|
parameters: {
|
|
@@ -186,7 +186,7 @@ declare const meta: {
|
|
|
186
186
|
args: {
|
|
187
187
|
onChange: import('@vitest/spy').Mock<(...args: any[]) => any>;
|
|
188
188
|
};
|
|
189
|
-
render: (args: import('
|
|
189
|
+
render: (args: import('..').ISidebar<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>> & {
|
|
190
190
|
ref?: React.ForwardedRef<IRefSidebar>;
|
|
191
191
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
192
192
|
};
|
|
@@ -33,7 +33,7 @@ import { default as RadioCheckbox, DefaultCheckedChecboxIcon, DefaultRadioChecbo
|
|
|
33
33
|
import { default as RadioCheckboxLabel } from './RadioCheckbox/RadioCheckboxLabel';
|
|
34
34
|
import { default as Breadcrumbs } from './Breadcrumbs/Breadcrumbs';
|
|
35
35
|
import { default as Sidebar } from './Sidebar/Sidebar';
|
|
36
|
-
import { ISidebarModule, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar } from '../interfaces/components/Sidebar';
|
|
36
|
+
import { ISidebarModule, ISidebar, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar } from '../interfaces/components/Sidebar';
|
|
37
37
|
import { default as Collapse } from './Collapse/Collapse';
|
|
38
38
|
import { default as ModalDialog } from './Modal/ModalDialog';
|
|
39
39
|
import { components as SelectDropdownContainerComponents } from 'react-select';
|
|
@@ -45,7 +45,8 @@ import { IInputReguler, IInputFloatingInner, IInputNative } from '../interfaces/
|
|
|
45
45
|
import { ConfigTable } from './Table/Table.config';
|
|
46
46
|
import { default as PortalComponent } from './PortalComponent/PortalComponent';
|
|
47
47
|
import { ToastContainer as AlertContainer } from 'react-toastify';
|
|
48
|
-
import { TButtonVariants, TButtonSize } from '../interfaces/components/Button';
|
|
48
|
+
import { TButtonVariants, TButtonSize, IButton } from '../interfaces/components/Button';
|
|
49
|
+
import { TButtonIconVariants, TButtonIconSize, IButtonIcon } from '../interfaces/components/ButtonIcon';
|
|
49
50
|
import { default as UploadFile } from './Upload/UploadFile';
|
|
50
51
|
import { ITabsList, TTypeEventTabs } from '../interfaces/components/Tabs';
|
|
51
52
|
import { default as TruncateComponent } from './TruncateComponent/TruncateComponent';
|
|
@@ -83,4 +84,4 @@ import * as utilTable from '@tanstack/react-table';
|
|
|
83
84
|
import type * as SelectDropdownContainerType from 'react-select';
|
|
84
85
|
import type * as FilterContainerType from '../interfaces/components/FilterContainer';
|
|
85
86
|
export { TPublish, Button, Popover, Calendar, CalendarRange, DatePicker, DateRangePicker, FilterDate, InputFloatingInner, InputReguler, Pagination, Tabs, TabPanel, Table, TableVirtualization, ListVirtualization, SelectDropdownContainer, utilTable, Switch, ButtonIcon, Badges, Chips, RadioCheckbox, RadioCheckboxLabel, Breadcrumbs, Sidebar, Collapse, ModalDialog, SelectDropdownContainerComponents, Timeline, FilterContainer, NumberFormat, PatternFormat, DefaultCheckedChecboxIcon, DefaultRadioChecboxIcon, ConfigTable, PortalComponent, AlertContainer, UploadFile, TruncateComponent, UploadImage, Textarea, DoughnutChart, MonthYearPicker, CheckboxTable, InputNative, UploadMultipleFile, ErrorMessage, TextareaFloatingInner, Step, LineChart, Tooltip, ButtonPopover, GradientLineChart, GradientBarChart, StepIndicator, TextEditor, CollapseV2, TableSubComponent, TimeRange, TextareaInnerLabel, InputInnerLabel, };
|
|
86
|
-
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, ITableColumnBreakpoint, TTableRenderSubComponent, TTableHandlerRowClick, TKeyLocale, ITimeRangeListTime, ITimeRange, TTimeRangeValue, };
|
|
87
|
+
export type { ITableColumnDef, IRefPopover, IRefTableVirtualization, IRefListVirtualization, IRefSelectDropdownContainer, IChildrenSelectDropdownContainer, ISidebarModule, SelectDropdownContainerType, FilterContainerType, IInputReguler, IInputFloatingInner, ITableConfig, TButtonVariants, TButtonSize, ITabsList, TTypeEventTabs, ITextarea, IListVirtualization, ITableVirtualization, IRefSidebar, IChildrenIconCompany, ICloneElementSidebar, IDataDoughnutChart, IDataInnerLabelDoughnutChart, ISelectDropdownContainer, IDatePicker, IPopover, IInputNative, IUploadMultipleFileValue, IDataStepList, IDataLineChart, IChips, IRefButtonPopover, TGradientLineChartCustomTooltip, IGradientLineChart, IGradientLineChartDataSet, IGradientLineChartData, TGradientBarChartCustomTooltip, IGradientBarChart, IGradientBarChartDataSet, IGradientBarChartData, IFilterDateButtonList, TKeyFilterDateButtonListType, IDataGradientBarChartCustomTooltip, IDataGradientLineChartCustomTooltip, ITextEditorProps, ICollapse, ITableColumnBreakpoint, TTableRenderSubComponent, TTableHandlerRowClick, TKeyLocale, ITimeRangeListTime, ITimeRange, TTimeRangeValue, IButton, TButtonIconVariants, TButtonIconSize, IButtonIcon, ISidebar, };
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
* [ID] : Tipe varian tombol ikon.
|
|
4
4
|
* [EN] : Button icon variant types.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type TButtonIconVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700-dsb_laba-grey-06' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-05' | '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' | 'secondary-red-700' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700';
|
|
7
7
|
/**
|
|
8
8
|
* [ID] : Tipe ukuran tombol ikon.
|
|
9
9
|
* [EN] : Button icon size type.
|
|
@@ -23,7 +23,7 @@ export interface IButtonIcon extends React.ButtonHTMLAttributes<HTMLButtonElemen
|
|
|
23
23
|
* [ID] : Varian gaya tombol (opsional).
|
|
24
24
|
* [EN] : Button style variant (optional).
|
|
25
25
|
*/
|
|
26
|
-
variants?:
|
|
26
|
+
variants?: TButtonIconVariants;
|
|
27
27
|
/**
|
|
28
28
|
* [ID] : Konten anak (biasanya ikon).
|
|
29
29
|
* [EN] : Child content (usually icon).
|
|
@@ -75,4 +75,9 @@ export interface ICollapseV2 {
|
|
|
75
75
|
* [EN] : CSS class name for container (optional).
|
|
76
76
|
*/
|
|
77
77
|
classNameContainer?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* [ID] : Tinggi maksimum saat collapsed (opsional).
|
|
80
|
+
* [EN] : Maximum height when collapsed (optional).
|
|
81
|
+
*/
|
|
82
|
+
maxCollapsedHeight?: number | string;
|
|
78
83
|
}
|
|
@@ -42,7 +42,7 @@ export interface IRadioCheckboxLabel extends InputHTMLAttributes<HTMLInputElemen
|
|
|
42
42
|
* [ID] : Varian gaya (opsional).
|
|
43
43
|
* [EN] : Style variant (optional).
|
|
44
44
|
*/
|
|
45
|
-
variants?: 'blue-50' | 'laba-blue-01' | 'bill-secondary-50';
|
|
45
|
+
variants?: 'blue-50' | 'laba-blue-01' | 'bill-secondary-50' | 'transparent-text_orange-700' | 'transparent-text_green-700';
|
|
46
46
|
/**
|
|
47
47
|
* [ID] : Label input.
|
|
48
48
|
* [EN] : Input label.
|
|
@@ -3,7 +3,7 @@ import { default as React } from 'react';
|
|
|
3
3
|
* [ID] : Tipe varian sidebar.
|
|
4
4
|
* [EN] : Sidebar variant type.
|
|
5
5
|
*/
|
|
6
|
-
export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'laba-white' | 'lpd-brand-base-transparent' | 'lpd-brand-base-transparent-responsive' | 'lpd-brand-base-white' | 'lpd-brand-base-white-responsive' | 'bill-brand-base
|
|
6
|
+
export type TVariantSidebarType = 'payhere-brand-base-white' | 'payhere-brand-base-transparent' | 'payhere-brand-indigo-900-transparent' | 'payhere-brand-blue-gray-900-transparent' | 'laba-white' | 'lpd-brand-base-transparent' | 'lpd-brand-base-transparent-responsive' | 'lpd-brand-base-white' | 'lpd-brand-base-white-responsive' | 'bill-brand-base' | 'bill-brand-base-responsive';
|
|
7
7
|
/**
|
|
8
8
|
* [ID] : Interface untuk modul sidebar.
|
|
9
9
|
* [EN] : Interface for sidebar module.
|
|
@@ -4,7 +4,7 @@ import { TKeyLocale } from '../Calendar';
|
|
|
4
4
|
* [ID] : Tipe varian tab.
|
|
5
5
|
* [EN] : Tab variant type.
|
|
6
6
|
*/
|
|
7
|
-
export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800' | 'container-bill-secondary-800';
|
|
7
|
+
export type TVariantTabs = 'original-laba-blue-10' | 'container-payhere-brand-base' | 'container-payhere-brand-base-bg_white' | 'container-laba-blue-10' | 'container-laba-blue-10-bg_white' | 'original-bill-secondary-800' | 'container-bill-secondary-800' | 'original-payhere-primary-700';
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Tipe ukuran tab.
|
|
10
10
|
* [EN] : Tab size type.
|
|
@@ -54,6 +54,7 @@ export declare function transformSecondTime(secs: number, option?: {
|
|
|
54
54
|
minute: string | number;
|
|
55
55
|
second: string | number;
|
|
56
56
|
};
|
|
57
|
+
export declare function isObject(item: unknown): item is Record<string, unknown>;
|
|
57
58
|
export declare function mergeObjects<T>(target: T, ...sources: unknown[]): T;
|
|
58
59
|
export declare function deleteKeysMutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
59
60
|
export declare function deleteKeysImmutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
@@ -63,6 +64,11 @@ export declare function deepMerge<T, S>(target: T, source: S, options?: {
|
|
|
63
64
|
}): T & S;
|
|
64
65
|
export declare const transformNumber: (val: string) => number;
|
|
65
66
|
export declare const transformBigNumber: (val: TBigNumber) => string;
|
|
67
|
+
export declare const transformBigNumberOpt: (val: TBigNumber, options?: {
|
|
68
|
+
minimumFractionDigits?: number;
|
|
69
|
+
maximumFractionDigits?: number;
|
|
70
|
+
ignoreFractionLimit?: boolean;
|
|
71
|
+
}) => string;
|
|
66
72
|
export declare const transfromIsNan: (value: number) => number | undefined;
|
|
67
73
|
export declare const setDigit: (value: number | string) => string | 0 | null;
|
|
68
74
|
export declare function parseFileName(fileName: string): {
|