1mpacto-react-ui 1.0.3 → 1.0.5

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.3",
4
+ "version": "1.0.5",
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;
@@ -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
  };
@@ -141,7 +141,7 @@ export interface ITable<T = unknown> {
141
141
  * [ID] : Jenis tabel (opsional).
142
142
  * [EN] : Table kind (optional).
143
143
  */
144
- kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler' | 'laba-rounded-md-extra-small';
144
+ kind?: 'laba-reguler' | 'payhere-reguler' | 'laba-small' | 'bill-reguler' | 'laba-rounded-md-extra-small' | 'laba-small_body-small';
145
145
  /**
146
146
  * [ID] : Varian tabel (opsional).
147
147
  * [EN] : Table variant (optional).
@@ -468,6 +468,7 @@ export interface ITableConfig {
468
468
  'laba-small': string;
469
469
  'bill-reguler': string;
470
470
  'laba-rounded-md-extra-small': string;
471
+ 'laba-small_body-small': string;
471
472
  };
472
473
  /**
473
474
  * [ID] : Konfigurasi sub-mobile.
@@ -479,6 +480,7 @@ export interface ITableConfig {
479
480
  'laba-small': string;
480
481
  'bill-reguler': string;
481
482
  'laba-rounded-md-extra-small': string;
483
+ 'laba-small_body-small': string;
482
484
  };
483
485
  /**
484
486
  * [ID] : Konfigurasi pointer.
@@ -490,6 +492,7 @@ export interface ITableConfig {
490
492
  'laba-small': string;
491
493
  'bill-reguler': string;
492
494
  'laba-rounded-md-extra-small': string;
495
+ 'laba-small_body-small': string;
493
496
  };
494
497
  /**
495
498
  * [ID] : Konfigurasi utilitas.
@@ -523,6 +526,10 @@ export interface ITableConfig {
523
526
  asc: Element | React.ReactNode | React.ReactNode[];
524
527
  desc: Element | React.ReactNode | React.ReactNode[];
525
528
  };
529
+ 'laba-small_body-small': {
530
+ asc: Element | React.ReactNode | React.ReactNode[];
531
+ desc: Element | React.ReactNode | React.ReactNode[];
532
+ };
526
533
  };
527
534
  /**
528
535
  * [ID] : Konfigurasi varian.
@@ -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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "1.0.3",
4
+ "version": "1.0.5",
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
+ }