@dipusevilla/componentes-iu 1.1.25 → 1.1.27
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/index.cjs.js +43 -43
- package/dist/index.es.js +2241 -2194
- package/dist/index.umd.js +65 -65
- package/dist/types/components/FileUploader.d.ts +6 -0
- package/dist/types/types/FormTypes.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Control } from 'react-hook-form';
|
|
3
3
|
type Size = 'sm' | 'md' | 'lg';
|
|
4
|
+
export interface ExistingFileInfo {
|
|
5
|
+
name: string;
|
|
6
|
+
downloadUrl?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
}
|
|
4
9
|
export interface FileUploaderProps {
|
|
5
10
|
control?: Control<any>;
|
|
6
11
|
name?: string;
|
|
@@ -16,6 +21,7 @@ export interface FileUploaderProps {
|
|
|
16
21
|
hasError?: boolean;
|
|
17
22
|
errorMessage?: string;
|
|
18
23
|
hideDropZone?: boolean;
|
|
24
|
+
existingFiles?: ExistingFileInfo[];
|
|
19
25
|
className?: string;
|
|
20
26
|
}
|
|
21
27
|
export declare function FileUploader(props: FileUploaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -153,6 +153,11 @@ export interface FieldSchema {
|
|
|
153
153
|
maxFiles?: number;
|
|
154
154
|
multiple?: boolean;
|
|
155
155
|
hideDropZone?: boolean;
|
|
156
|
+
existingFiles?: Array<{
|
|
157
|
+
name: string;
|
|
158
|
+
downloadUrl?: string;
|
|
159
|
+
description?: string;
|
|
160
|
+
}>;
|
|
156
161
|
/** Para optionGroup: disposición vertical. */
|
|
157
162
|
vertical?: boolean;
|
|
158
163
|
/** Etiqueta del grupo (solo para optionGroup). */
|