@kystverket/styrbord 1.17.1 → 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.
- package/dist/src/components/kystverket/Alert/alert.d.ts +3 -1
- package/dist/src/components/kystverket/Alert/alert.stories.d.ts +2 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.d.ts +6 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.stories.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/style.js +1372 -1383
- package/dist/style.umd.cjs +7 -7
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export type AlertProps = DsAlertProps & {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
role?: 'status';
|
|
12
12
|
onDismiss?: () => void;
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
rounded?: boolean;
|
|
13
15
|
};
|
|
14
|
-
declare const Alert: ({ level, title, "data-size": dataSize, text, width, className, ...props }: AlertProps) => React.JSX.Element;
|
|
16
|
+
declare const Alert: ({ level, title, "data-size": dataSize, text, width, className, bordered, rounded, ...props }: AlertProps) => React.JSX.Element;
|
|
15
17
|
export default Alert;
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { AlertProps } from './alert';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ level, title, "data-size": dataSize, text, width, className, ...props }: AlertProps) => React.JSX.Element;
|
|
5
|
+
component: ({ level, title, "data-size": dataSize, text, width, className, bordered, rounded, ...props }: AlertProps) => React.JSX.Element;
|
|
6
6
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
@@ -26,3 +26,4 @@ export declare const NormalSize: Story;
|
|
|
26
26
|
export declare const LargeSizeWithDismiss: Story;
|
|
27
27
|
export declare const DefaultKort: Story;
|
|
28
28
|
export declare const WithErrorDismiss: Story;
|
|
29
|
+
export declare const WithoutBorderAndRoundedCorners: Story;
|
|
@@ -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;
|