1mpacto-react-ui 1.0.5 → 1.0.6
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 +91 -90
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +8395 -8294
- package/dist/package.json.d.ts +1 -1
- package/dist/src/components/Button/Button.config.d.ts +2 -1
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +14 -0
- package/dist/src/components/Pagination/Pagination.config.d.ts +18 -2
- package/dist/src/components/Pagination/Pagination.d.ts +1 -1
- package/dist/src/components/Pagination/Pagination.stories.d.ts +14 -1
- package/dist/src/components/RadioCheckbox/RadioCheckboxLabel.config.d.ts +1 -0
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Checkbox/index.d.ts +2 -7
- package/dist/src/interfaces/components/Pagination/index.d.ts +6 -0
- package/dist/src/interfaces/components/RadioCheckbox/RadioCheckboxLabel.d.ts +1 -1
- package/dist/src/utils/common.d.ts +4 -0
- package/package.json +1 -1
package/dist/package.json.d.ts
CHANGED
|
@@ -65,7 +65,8 @@ export declare const configButton: {
|
|
|
65
65
|
'secondary-bill-secondary-800': string;
|
|
66
66
|
'tertiary-bill-secondary-800': string;
|
|
67
67
|
'primary-bill-red-700': string;
|
|
68
|
-
'filled-bill-
|
|
68
|
+
'filled-bill-blue-gray-500_bg-blue-gray-50': string;
|
|
69
|
+
'filled-bill-secondary-800_bg-white': string;
|
|
69
70
|
};
|
|
70
71
|
};
|
|
71
72
|
export declare const keysConfigButtonVariant: string[];
|
|
@@ -8,6 +8,11 @@ export declare const configButton: {
|
|
|
8
8
|
m: string;
|
|
9
9
|
s: string;
|
|
10
10
|
xs: string;
|
|
11
|
+
'bill-l': string;
|
|
12
|
+
'bill-m': string;
|
|
13
|
+
'bill-s': string;
|
|
14
|
+
'bill-xs': string;
|
|
15
|
+
'bill-xxs': string;
|
|
11
16
|
};
|
|
12
17
|
loadingSize: {
|
|
13
18
|
large: string;
|
|
@@ -18,6 +23,11 @@ export declare const configButton: {
|
|
|
18
23
|
m: string;
|
|
19
24
|
s: string;
|
|
20
25
|
xs: string;
|
|
26
|
+
'bill-l': string;
|
|
27
|
+
'bill-m': string;
|
|
28
|
+
'bill-s': string;
|
|
29
|
+
'bill-xs': string;
|
|
30
|
+
'bill-xxs': string;
|
|
21
31
|
};
|
|
22
32
|
variants: {
|
|
23
33
|
'primary-laba-blue-10': string;
|
|
@@ -46,6 +56,10 @@ export declare const configButton: {
|
|
|
46
56
|
'nude-laba-red-05': string;
|
|
47
57
|
'primary-red-700': string;
|
|
48
58
|
'secondary-red-700': string;
|
|
59
|
+
'primary-bill-primary-600': string;
|
|
60
|
+
'secondary-bill-secondary-800': string;
|
|
61
|
+
'tertiary-bill-secondary-800': string;
|
|
62
|
+
'primary-bill-red-700': string;
|
|
49
63
|
};
|
|
50
64
|
};
|
|
51
65
|
export declare const keysConfigButtonVariant: string[];
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
export declare const configPagination: {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
kind: {
|
|
3
|
+
box: string;
|
|
4
|
+
nude: string;
|
|
5
|
+
};
|
|
6
|
+
fonts: {
|
|
7
|
+
inter: {
|
|
8
|
+
value: string;
|
|
9
|
+
typographyButtonLabel: string;
|
|
10
|
+
};
|
|
11
|
+
lato: {
|
|
12
|
+
value: string;
|
|
13
|
+
typographyButtonLabel: string;
|
|
14
|
+
};
|
|
15
|
+
pJakartaSans: {
|
|
16
|
+
value: string;
|
|
17
|
+
typographyButtonLabel: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
4
20
|
};
|
|
5
21
|
export declare const keysConfigPaginationKind: string[];
|
|
@@ -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, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const Pagination: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, fonts, }: IPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Pagination;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, }: import('../../interfaces/components/Pagination').IPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ totalData, totalPage, pageNumber, pageSize, className, id, kind, prevIcon, nextIcon, onChange, optionPageSize, offset, zIndex, withGotoPage, withMorePage, withOptionPageSize, locale, fonts, }: import('../../interfaces/components/Pagination').IPaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -78,6 +78,19 @@ declare const meta: {
|
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
fonts: {
|
|
82
|
+
control: {
|
|
83
|
+
type: "select";
|
|
84
|
+
};
|
|
85
|
+
options: string[];
|
|
86
|
+
description: string;
|
|
87
|
+
table: {
|
|
88
|
+
category: string;
|
|
89
|
+
type: {
|
|
90
|
+
summary: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
81
94
|
className: {
|
|
82
95
|
control: "text";
|
|
83
96
|
description: string;
|
|
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
* [ID] : Tipe varian tombol yang tersedia.
|
|
5
5
|
* [EN] : Available button variant types.
|
|
6
6
|
*/
|
|
7
|
-
export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | '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' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-
|
|
7
|
+
export type TButtonVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | 'ghost-laba-blue-10' | 'ghost-red-700' | 'ghost-green-700' | 'ghost-blue-gray-100-bg_white' | 'ghost-laba-green-10' | 'ghost-blue-gray-100-bg_white-text_blue-gray-400' | 'ghost-laba-blue-05' | 'nude-laba-blue-10' | 'nude-red-700' | 'nude-green-700' | 'nude-gray-500' | 'nude-laba-red-10' | 'nude-laba-red-08' | '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' | 'ghost-laba-blue-01' | 'filled-laba-white_laba-blue-10' | 'filled-laba-white_laba-red-05' | 'secondary-red-700' | 'tertiary-black' | 'primary-bill-primary-600' | 'secondary-bill-secondary-800' | 'tertiary-bill-secondary-800' | 'primary-bill-red-700' | 'filled-bill-blue-gray-500_bg-blue-gray-50' | 'filled-bill-secondary-800_bg-white';
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Tipe ukuran tombol.
|
|
10
10
|
* [EN] : Button size type.
|
|
@@ -4,12 +4,12 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
* [ID] : Tipe varian tombol ikon.
|
|
5
5
|
* [EN] : Button icon variant types.
|
|
6
6
|
*/
|
|
7
|
-
export type TButtonIcomVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | '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';
|
|
7
|
+
export type TButtonIcomVariants = 'primary-laba-blue-10' | 'primary-red-700-dsb_laba-grey-06' | 'primary-green-700' | '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';
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Tipe ukuran tombol ikon.
|
|
10
10
|
* [EN] : Button icon size type.
|
|
11
11
|
*/
|
|
12
|
-
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs';
|
|
12
|
+
export type TButtonIconSize = 'large' | 'reguler' | 'small' | 'extra-small' | 'l' | 'm' | 's' | 'xs' | 'bill-l' | 'bill-m' | 'bill-s' | 'bill-xs' | 'bill-xxs';
|
|
13
13
|
/**
|
|
14
14
|
* [ID] : Interface untuk komponen ButtonIcon.
|
|
15
15
|
* [EN] : Interface for ButtonIcon component.
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRadioCheckbox } from '../RadioCheckbox/RadioCheckbox';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* [ID] : Interface untuk komponen CheckboxTable.
|
|
5
5
|
* [EN] : Interface for CheckboxTable component.
|
|
6
6
|
*/
|
|
7
|
-
export interface ICheckboxTable extends
|
|
7
|
+
export interface ICheckboxTable extends IRadioCheckbox {
|
|
8
8
|
/**
|
|
9
9
|
* [ID] : Menentukan status indeterminate (setengah dicentang) (opsional).
|
|
10
10
|
* [EN] : Determines indeterminate status (half-checked) (optional).
|
|
11
11
|
*/
|
|
12
12
|
indeterminate?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* [ID] : Nama kelas CSS untuk kontainer (opsional).
|
|
15
|
-
* [EN] : CSS class name for container (optional).
|
|
16
|
-
*/
|
|
17
|
-
classNameContainer?: string;
|
|
18
13
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OffsetOptions } from '@floating-ui/react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { TKeyLocale } from '../Calendar';
|
|
4
|
+
import { TFont } from '../../../config/components/font';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* [ID] : Tipe jenis pagination.
|
|
@@ -49,6 +50,11 @@ export interface IPaginationProps extends IPagination {
|
|
|
49
50
|
* [EN] : Pagination kind (optional).
|
|
50
51
|
*/
|
|
51
52
|
kind?: TKindPaginationType;
|
|
53
|
+
/**
|
|
54
|
+
* [ID] : Tipe font (opsional).
|
|
55
|
+
* [EN] : Font type (optional).
|
|
56
|
+
*/
|
|
57
|
+
fonts?: TFont;
|
|
52
58
|
/**
|
|
53
59
|
* [ID] : Nama kelas CSS (opsional).
|
|
54
60
|
* [EN] : CSS class name (optional).
|
|
@@ -43,7 +43,7 @@ export interface IRadioCheckboxLabel extends InputHTMLAttributes<HTMLInputElemen
|
|
|
43
43
|
* [ID] : Varian gaya (opsional).
|
|
44
44
|
* [EN] : Style variant (optional).
|
|
45
45
|
*/
|
|
46
|
-
variants?: 'blue-50' | 'laba-blue-01';
|
|
46
|
+
variants?: 'blue-50' | 'laba-blue-01' | 'bill-secondary-50';
|
|
47
47
|
/**
|
|
48
48
|
* [ID] : Label input.
|
|
49
49
|
* [EN] : Input label.
|
|
@@ -56,6 +56,10 @@ export declare function transformSecondTime(secs: number, option?: {
|
|
|
56
56
|
export declare function mergeObjects<T>(target: T, ...sources: unknown[]): T;
|
|
57
57
|
export declare function deleteKeysMutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
58
58
|
export declare function deleteKeysImmutable<T = Record<string | number, unknown>>(obj: T, paths: string | string[]): T;
|
|
59
|
+
export declare function deepMerge<T, S>(target: T, source: S, options?: {
|
|
60
|
+
keepKeys?: string[];
|
|
61
|
+
arrayMergeStrategy?: 'combine' | 'overwrite' | 'sync';
|
|
62
|
+
}): T & S;
|
|
59
63
|
export declare const transformNumber: (val: string) => number;
|
|
60
64
|
export declare const transformBigNumber: (val: TBigNumber) => string;
|
|
61
65
|
export declare const transfromIsNan: (value: number) => number | undefined;
|