@kystverket/styrbord 1.3.4 → 1.3.6
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/README.md +3 -1
- package/dist/src/components/designsystemet/List/List.stories.d.ts +1 -0
- package/dist/src/components/designsystemet/Tag/Tag.stories.d.ts +1 -0
- package/dist/src/components/kystverket/DateTimePicker/DateTimePicker.stories.d.ts +36 -0
- package/dist/src/components/kystverket/Datepicker/Datepicker.stories.d.ts +14 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/components/kystverket/DateTimePicker/Datepicker.stories.d.ts +0 -22
package/README.md
CHANGED
|
@@ -11,7 +11,9 @@ som den du finner her.
|
|
|
11
11
|
|
|
12
12
|
Alle komponentene og typene i Designsystemet er tilgjengelig i Styrbord med følgende merknader:
|
|
13
13
|
|
|
14
|
-
-
|
|
14
|
+
- Komponenter merket med ⚓ i menyen er utviklet av Kystverket og har ikke nødvendigvis noe til felles med Designsystemet. De kan riktignok bruke Designsystem-komponenter i implementasjonen.
|
|
15
|
+
- Komponenter merket med 🌈 i menyen er uendret fra Designsystemet.
|
|
16
|
+
- Komponenter merket med 🌈+⚓ i menyen er Designsystem-komponenter som er utvidet med Kystverkets behov. Bruk og egenskap skal i stor grad overlappe.
|
|
15
17
|
|
|
16
18
|
## Versjonering
|
|
17
19
|
|
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
component: React.ForwardRefExoticComponent<{
|
|
7
7
|
asChild?: boolean;
|
|
8
8
|
} & import("@digdir/designsystemet-react/dist/types/types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLUListElement>>;
|
|
9
|
+
tags: string[];
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
|
11
12
|
export declare const Preview: Story;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { DateTimePickerProps } from './DateTimePicker';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: DateTimePickerProps) => React.JSX.Element;
|
|
6
|
+
decorators: (((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element) | ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
7
|
+
optional?: boolean | string | undefined | undefined;
|
|
8
|
+
required?: boolean | string | undefined | undefined;
|
|
9
|
+
label: string;
|
|
10
|
+
dateTimeFormat?: string | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
onBlur?: (() => void) | undefined;
|
|
14
|
+
value: Date | undefined;
|
|
15
|
+
timeInputLabel?: string | undefined;
|
|
16
|
+
onChange?: ((date: Date | undefined) => void) | undefined;
|
|
17
|
+
showCalendarIcon?: boolean | undefined;
|
|
18
|
+
minDate?: Date | undefined;
|
|
19
|
+
maxDate?: Date | undefined;
|
|
20
|
+
}>) => React.JSX.Element))[];
|
|
21
|
+
tags: string[];
|
|
22
|
+
argTypes: {};
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
export declare const WithoutCalendarIcon: Story;
|
|
28
|
+
export declare const Optional: Story;
|
|
29
|
+
export declare const OptionalText: Story;
|
|
30
|
+
export declare const Required: Story;
|
|
31
|
+
export declare const WithoutDescription: Story;
|
|
32
|
+
export declare const WithValue: Story;
|
|
33
|
+
export declare const WithError: Story;
|
|
34
|
+
export declare const WithMinDate: Story;
|
|
35
|
+
export declare const WithMaxDate: Story;
|
|
36
|
+
export declare const WithMinAndMaxDate: Story;
|
|
@@ -3,7 +3,20 @@ import { DatepickerProps } from './Datepicker';
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: (props: DatepickerProps) => React.JSX.Element;
|
|
6
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element)
|
|
6
|
+
decorators: (((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element) | ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
7
|
+
optional?: boolean | string | undefined | undefined;
|
|
8
|
+
required?: boolean | string | undefined | undefined;
|
|
9
|
+
label: string;
|
|
10
|
+
dateFormat?: string | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
|
+
error?: string | undefined;
|
|
13
|
+
onBlur?: (() => void) | undefined;
|
|
14
|
+
value: Date | undefined;
|
|
15
|
+
onChange?: ((date: Date | undefined) => void) | undefined;
|
|
16
|
+
showCalendarIcon?: boolean | undefined;
|
|
17
|
+
minDate?: Date | undefined;
|
|
18
|
+
maxDate?: Date | undefined;
|
|
19
|
+
}>) => React.JSX.Element))[];
|
|
7
20
|
tags: string[];
|
|
8
21
|
argTypes: {};
|
|
9
22
|
};
|