1mpacto-react-ui 1.0.4 → 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.4",
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
  };
@@ -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.4",
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
+ }