@oniratec/onira-react-ui 1.2.9 → 1.2.11
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +630 -618
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ declare interface FieldProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
|
241
241
|
|
|
242
242
|
export declare const FilePicker: typeof FileUpload;
|
|
243
243
|
|
|
244
|
-
export declare function FileUpload({ label, helperText, error, disabled, multiple, accept, files, defaultFiles, onFilesChange, id, name, allowDrop, placeholder, showPreview, previewMode, maxPreviewItems, }: FileUploadProps): JSX.Element;
|
|
244
|
+
export declare function FileUpload({ label, helperText, error, disabled, multiple, accept, files, defaultFiles, onFilesChange, id, name, allowDrop, placeholder, showPreview, previewMode, maxPreviewItems, defaultPreviewUrl, }: FileUploadProps): JSX.Element;
|
|
245
245
|
|
|
246
246
|
declare type FileUploadField<T extends FieldValues> = BaseFieldCommon<T> & {
|
|
247
247
|
kind: 'fileUpload';
|
|
@@ -250,6 +250,7 @@ declare type FileUploadField<T extends FieldValues> = BaseFieldCommon<T> & {
|
|
|
250
250
|
helperText?: string;
|
|
251
251
|
allowDrop?: boolean;
|
|
252
252
|
placeholder?: string;
|
|
253
|
+
defaultPreviewUrl?: string;
|
|
253
254
|
};
|
|
254
255
|
|
|
255
256
|
export declare type FileUploadProps = {
|
|
@@ -268,6 +269,7 @@ export declare type FileUploadProps = {
|
|
|
268
269
|
placeholder?: string;
|
|
269
270
|
showPreview?: boolean;
|
|
270
271
|
previewMode?: 'auto' | 'image' | 'none';
|
|
272
|
+
defaultPreviewUrl?: string | null;
|
|
271
273
|
maxPreviewItems?: number;
|
|
272
274
|
};
|
|
273
275
|
|