1mpacto-react-ui 1.0.4 → 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.
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -128,7 +128,6 @@ declare const _default: {
128
128
  "react-virtuoso": "^4.7.11",
129
129
  "tinymce": "^7.9.1"
130
130
  }
131
- }
132
- ;
131
+ };
133
132
 
134
133
  export default _default;
@@ -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-bluegray-500_text-bill-body-sm': string;
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
- box: string;
3
- nude: string;
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;
@@ -20,6 +20,7 @@ export declare const configRadioCheckboxLabel: {
20
20
  variants: {
21
21
  'laba-blue-01': string;
22
22
  'blue-50': string;
23
+ 'bill-secondary-50': string;
23
24
  };
24
25
  };
25
26
  export declare const keysConfigRadioCheckboxLabelVariant: string[];
@@ -1,4 +1,4 @@
1
1
  import { IUploadMultipleFile } from '../../interfaces/components/UploadFile';
2
2
 
3
- declare const UploadMultipleFile: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, }: IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
3
+ declare const UploadMultipleFile: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, idItemAttachment, }: IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
4
4
  export default UploadMultipleFile;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, }: import('../../interfaces/components/UploadFile').IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ value, validateFile, classNameContainer, classNameButton, textUpload, buttonProps, maxFile, maxSize, error, removeElement, onChange, handlerDownload, priorityError, eventError, locationRemoveElement, idItemAttachment, }: import('../../interfaces/components/UploadFile').IUploadMultipleFile) => import("react/jsx-runtime").JSX.Element;
6
6
  parameters: {
7
7
  layout: string;
8
8
  };
@@ -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-bluegray-500_text-bill-body-sm';
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 { default as React } from 'react';
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 React.HTMLProps<HTMLInputElement> {
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.
@@ -177,9 +177,10 @@ export interface IUploadMultipleFile {
177
177
  * [ID] : Fungsi render elemen hapus (opsional).
178
178
  * [EN] : Remove element render function (optional).
179
179
  * @param value - [ID] : Nilai file. [EN] : File value.
180
- * @returns [ID] : Node React. [EN] : React Node.
180
+ * @param index - [ID] : Indeks file dalam daftar. [EN] : Index of the file in the list.
181
+ * @returns [ID] : Node React atau array Node React. [EN] : React Node or array of React Nodes.
181
182
  */
182
- removeElement?: (value: IUploadMultipleFileValue) => React.ReactNode | React.ReactNode[];
183
+ removeElement?: (value: IUploadMultipleFileValue, index: number) => React.ReactNode | React.ReactNode[];
183
184
  /**
184
185
  * [ID] : Pesan error (opsional).
185
186
  * [EN] : Error message (optional).
@@ -207,6 +208,11 @@ export interface IUploadMultipleFile {
207
208
  * [EN] : Remove element location (optional).
208
209
  */
209
210
  locationRemoveElement?: 'left' | 'right';
211
+ /**
212
+ * [ID] : ID item attachment (opsional).
213
+ * [EN] : Item attachment ID (optional).
214
+ */
215
+ idItemAttachment?: string;
210
216
  }
211
217
  /**
212
218
  * [ID] : Interface untuk nilai UploadMultipleFile.
@@ -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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.4",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=20.19.4",
@@ -128,4 +128,4 @@
128
128
  "react-virtuoso": "^4.7.11",
129
129
  "tinymce": "^7.9.1"
130
130
  }
131
- }
131
+ }