@kystverket/styrbord 1.18.0 → 1.19.0
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.
|
@@ -27,7 +27,12 @@ export interface FileUploaderProps {
|
|
|
27
27
|
*/
|
|
28
28
|
withCaptureButton?: boolean;
|
|
29
29
|
existingFilesProvider?: () => Promise<ExistingFilesProviderItem[]>;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* 'capture' shows only the "Open camera" button, hiding the default upload button.
|
|
32
|
+
* On devices that ignore the camera capture attribute (typically desktop) it falls
|
|
33
|
+
* back to rendering the default upload button.
|
|
34
|
+
*/
|
|
35
|
+
variant?: 'dropzone' | 'buttons' | 'capture';
|
|
31
36
|
/**
|
|
32
37
|
* Enables file preview using the FilePreviewer component.
|
|
33
38
|
* When enabled, a preview button appears on each uploaded file that can be previewed.
|
|
@@ -18,7 +18,7 @@ declare const meta: {
|
|
|
18
18
|
optional?: boolean | string | undefined;
|
|
19
19
|
withCaptureButton?: boolean | undefined;
|
|
20
20
|
existingFilesProvider?: (() => Promise<ExistingFilesProviderItem[]>) | undefined;
|
|
21
|
-
variant?: "dropzone" | "buttons" | undefined;
|
|
21
|
+
variant?: "dropzone" | "buttons" | "capture" | undefined;
|
|
22
22
|
allowFilePreview?: boolean | undefined;
|
|
23
23
|
}>) => React.JSX.Element))[];
|
|
24
24
|
tags: string[];
|
|
@@ -35,6 +35,7 @@ export declare const Dropzone: Story;
|
|
|
35
35
|
export declare const DropzoneWithExistingFiles: Story;
|
|
36
36
|
export declare const WithError: Story;
|
|
37
37
|
export declare const WithCaptureButton: Story;
|
|
38
|
+
export declare const CaptureOnly: Story;
|
|
38
39
|
export declare const WithExistingFiles: Story;
|
|
39
40
|
export declare const withFileSizeLimit: Story;
|
|
40
41
|
export declare const withPreviews: Story;
|