@kystverket/styrbord 0.305.4 → 0.305.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.
- package/dist/main.js +529 -527
- package/dist/main.umd.cjs +8 -8
- package/dist/src/components/designsystemet/Select/Select.stories.d.ts +3 -0
- package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.d.ts +2 -0
- package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.stories.d.ts +3 -0
- package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.d.ts +2 -0
- package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.stories.d.ts +3 -0
- package/dist/src/components/kystverket/DateTimePicker/Datepicker.stories.d.ts +3 -0
- package/dist/src/components/kystverket/Datepicker/Datepicker.stories.d.ts +3 -0
- package/dist/src/components/kystverket/FileUploader/FileUploader.d.ts +3 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.stories.d.ts +3 -0
- package/package.json +1 -1
|
@@ -11,3 +11,6 @@ export default meta;
|
|
|
11
11
|
type Story = StoryObj<typeof meta>;
|
|
12
12
|
export declare const Default: Story;
|
|
13
13
|
export declare const WithValue: Story;
|
|
14
|
+
export declare const Optional: Story;
|
|
15
|
+
export declare const OptionalText: Story;
|
|
16
|
+
export declare const Required: Story;
|
|
@@ -11,6 +11,8 @@ export interface BorderedRadioGroupProps {
|
|
|
11
11
|
onChange?: (value: RadioGroupValueType) => void;
|
|
12
12
|
onBlur?: () => void;
|
|
13
13
|
error?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
optional?: boolean | string;
|
|
14
16
|
}
|
|
15
17
|
declare const BorderedRadioGroup: (props: BorderedRadioGroupProps) => React.JSX.Element;
|
|
16
18
|
export default BorderedRadioGroup;
|
|
@@ -13,3 +13,6 @@ export declare const Default: Story;
|
|
|
13
13
|
export declare const WithLongOptionText: Story;
|
|
14
14
|
export declare const WithReactElementDescription: Story;
|
|
15
15
|
export declare const WithError: Story;
|
|
16
|
+
export declare const Optional: Story;
|
|
17
|
+
export declare const OptionalText: Story;
|
|
18
|
+
export declare const Required: Story;
|
|
@@ -12,6 +12,8 @@ export interface BorderedToggleGroupProps {
|
|
|
12
12
|
onChange?: (value: ToggleValue) => void;
|
|
13
13
|
onBlur?: () => void;
|
|
14
14
|
error?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
optional?: boolean | string;
|
|
15
17
|
}
|
|
16
18
|
declare const BorderedRadioGroup: (props: BorderedToggleGroupProps) => React.JSX.Element | null;
|
|
17
19
|
export default BorderedRadioGroup;
|
|
@@ -13,3 +13,6 @@ export declare const Default: Story;
|
|
|
13
13
|
export declare const WithLongOptionText: Story;
|
|
14
14
|
export declare const WithReactElementDescription: Story;
|
|
15
15
|
export declare const WithError: Story;
|
|
16
|
+
export declare const Optional: Story;
|
|
17
|
+
export declare const OptionalText: Story;
|
|
18
|
+
export declare const Required: Story;
|
|
@@ -10,6 +10,9 @@ declare const meta: {
|
|
|
10
10
|
export default meta;
|
|
11
11
|
type Story = StoryObj<typeof meta>;
|
|
12
12
|
export declare const Default: Story;
|
|
13
|
+
export declare const Optional: Story;
|
|
14
|
+
export declare const OptionalText: Story;
|
|
15
|
+
export declare const Required: Story;
|
|
13
16
|
export declare const WithoutDescription: Story;
|
|
14
17
|
export declare const WithValue: Story;
|
|
15
18
|
export declare const WithError: Story;
|
|
@@ -12,4 +12,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
12
12
|
export declare const Default: Story;
|
|
13
13
|
export declare const WithoutDescription: Story;
|
|
14
14
|
export declare const WithValue: Story;
|
|
15
|
+
export declare const Optional: Story;
|
|
16
|
+
export declare const OptionalText: Story;
|
|
17
|
+
export declare const Required: Story;
|
|
15
18
|
export declare const WithError: Story;
|
|
@@ -10,5 +10,7 @@ export interface FileUploaderProps {
|
|
|
10
10
|
maxFiles?: number;
|
|
11
11
|
onChange: (files: FileInfo[]) => void;
|
|
12
12
|
allowedFileTypes?: string[];
|
|
13
|
+
required?: boolean;
|
|
14
|
+
optional?: boolean | string;
|
|
13
15
|
}
|
|
14
|
-
export declare const FileUploader: ({ label, buttonLabel, description, error, multiple, files, maxFiles, onChange, allowedFileTypes, }: FileUploaderProps) => React.JSX.Element;
|
|
16
|
+
export declare const FileUploader: ({ label, required, optional, buttonLabel, description, error, multiple, files, maxFiles, onChange, allowedFileTypes, }: FileUploaderProps) => React.JSX.Element;
|
|
@@ -10,4 +10,7 @@ declare const meta: {
|
|
|
10
10
|
export default meta;
|
|
11
11
|
type Story = StoryObj<typeof meta>;
|
|
12
12
|
export declare const Default: Story;
|
|
13
|
+
export declare const Optional: Story;
|
|
14
|
+
export declare const OptionalText: Story;
|
|
15
|
+
export declare const Required: Story;
|
|
13
16
|
export declare const WithError: Story;
|