@kystverket/styrbord 2.20.0 → 2.21.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/docs/skjema.md +11 -5
- package/dist/src/components/deprecated/Card/Card.d.ts +3 -3
- package/dist/src/components/deprecated/Card/Card.stories.d.ts +4 -4
- package/dist/src/components/deprecated/Details/Details.d.ts +1 -1
- package/dist/src/components/deprecated/Details/Details.stories.d.ts +2 -2
- package/dist/src/components/deprecated/ErrorLabel/errorLabel.d.ts +1 -1
- package/dist/src/components/deprecated/ErrorLabel/errorLabel.stories.d.ts +2 -2
- package/dist/src/components/deprecated/InputLabel/inputLabel.d.ts +1 -1
- package/dist/src/components/deprecated/InputLabel/inputLabel.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Avatar/Avatar.context.d.ts +2 -2
- package/dist/src/components/designsystemet/AvatarStack/AvatarStack.d.ts +1 -1
- package/dist/src/components/designsystemet/Button/Button.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Card/Card.stories.d.ts +11 -4
- package/dist/src/components/designsystemet/CardTitle/CardTitle.d.ts +1 -1
- package/dist/src/components/designsystemet/Checkbox/Checkbox.stories.d.ts +527 -527
- package/dist/src/components/designsystemet/Chip/Chip.stories.d.ts +10 -22
- package/dist/src/components/designsystemet/Details/Details.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Dialog/Dialog.d.ts +2 -2
- package/dist/src/components/designsystemet/Dialog/Dialog.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/IconButton/IconButton.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Link/Link.d.ts +5 -1
- package/dist/src/components/designsystemet/List/List.stories.d.ts +9 -2
- package/dist/src/components/designsystemet/NumberInput/NumberInput.d.ts +1 -1
- package/dist/src/components/designsystemet/NumberInput/NumberInput.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Paragraph/typography.paragraph.stories.d.ts +10 -3
- package/dist/src/components/designsystemet/Popover/Popover.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Select/Select.d.ts +1 -1
- package/dist/src/components/designsystemet/Select/Select.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/Suggestion/Suggestion.d.ts +1 -1
- package/dist/src/components/designsystemet/Suggestion/Suggestion.stories.d.ts +9 -9
- package/dist/src/components/designsystemet/Table/Table.d.ts +9 -9
- package/dist/src/components/designsystemet/Tabs/Tabs.d.ts +6 -6
- package/dist/src/components/designsystemet/Tag/Tag.d.ts +1 -1
- package/dist/src/components/designsystemet/Tag/Tag.stories.d.ts +3 -1
- package/dist/src/components/designsystemet/TextArea/TextArea.d.ts +1 -1
- package/dist/src/components/designsystemet/TextArea/TextArea.stories.d.ts +2 -2
- package/dist/src/components/designsystemet/TextInput/TextInput.d.ts +1 -1
- package/dist/src/components/designsystemet/TextInput/TextInput.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Alert/alert.stories.d.ts +2 -2
- package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.d.ts +1 -1
- package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.stories.d.ts +2 -2
- package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.d.ts +1 -1
- package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Box/box.d.ts +1 -1
- package/dist/src/components/kystverket/Box/box.stories.d.ts +2 -2
- package/dist/src/components/kystverket/ClickableCard/ClickableCard.d.ts +1 -1
- package/dist/src/components/kystverket/ClickableCard/ClickableCard.stories.d.ts +2 -2
- package/dist/src/components/kystverket/ColorTokenCollections/ColorTokenCollections.stories.d.ts +2 -2
- package/dist/src/components/kystverket/ColorTokenCollections/Colors.stories.d.ts +2 -2
- package/dist/src/components/kystverket/CompactDetails/CompactDetails.d.ts +1 -1
- package/dist/src/components/kystverket/CompactDetails/CompactDetails.stories.d.ts +2 -2
- package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.d.ts +5 -1
- package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.stories.d.ts +10 -3
- package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.d.ts +3 -1
- package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.stories.d.ts +10 -3
- package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/PickerControl.d.ts +29 -0
- package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/pickerKinds.d.ts +53 -0
- package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/usePickerText.d.ts +27 -0
- package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.d.ts +12 -1
- package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.stories.d.ts +10 -3
- package/dist/src/components/kystverket/FilePreviewer/FilePreviewer-context.d.ts +2 -2
- package/dist/src/components/kystverket/FilePreviewer/FilePreviewer.stories.d.ts +2 -2
- package/dist/src/components/kystverket/FilePreviewer/dialog/FilePreviewer-dialog.d.ts +1 -1
- package/dist/src/components/kystverket/FilePreviewer/panel/FilePreviewer-panel.d.ts +1 -1
- package/dist/src/components/kystverket/FilePreviewer/renderer/FileRenderer.d.ts +1 -1
- package/dist/src/components/kystverket/FilePreviewer/thumbnail/FilePreviewer-thumbnail.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/FileRetriever.context.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.context.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/FileUploader.stories.d.ts +4 -4
- package/dist/src/components/kystverket/FileUploader/existingFilesDialog/ExistingFilesDialog.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/fileUploadActions/FileUploadActions.d.ts +1 -1
- package/dist/src/components/kystverket/FileUploader/item/FileUploaderItem.d.ts +1 -1
- package/dist/src/components/kystverket/Footer/Footer.d.ts +1 -1
- package/dist/src/components/kystverket/Footer/Footer.stories.d.ts +1 -1
- package/dist/src/components/kystverket/Header/Header.d.ts +2 -2
- package/dist/src/components/kystverket/Header/Header.stories.d.ts +1 -1
- package/dist/src/components/kystverket/Header/HeaderApps.d.ts +1 -1
- package/dist/src/components/kystverket/Header/HeaderAvatar.d.ts +1 -1
- package/dist/src/components/kystverket/Header/HeaderMobile.d.ts +1 -1
- package/dist/src/components/kystverket/Header/HeaderProfile.d.ts +1 -1
- package/dist/src/components/kystverket/Header/headerContext.d.ts +2 -2
- package/dist/src/components/kystverket/Icon/FileIcon.d.ts +1 -1
- package/dist/src/components/kystverket/Icon/Icon.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Icon/icon.d.ts +1 -1
- package/dist/src/components/kystverket/Image/svgImage.d.ts +55 -55
- package/dist/src/components/kystverket/Image/svgImage.stories.d.ts +2 -2
- package/dist/src/components/kystverket/KyvDivider/KyvDivider.d.ts +1 -1
- package/dist/src/components/kystverket/KyvDivider/KyvDivider.stories.d.ts +2 -2
- package/dist/src/components/kystverket/KyvSpinner/KyvSpinner.stories.d.ts +2 -2
- package/dist/src/components/kystverket/LabelContent/labelContent.d.ts +1 -1
- package/dist/src/components/kystverket/LabelContent/labelContent.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Logo/Logo.d.ts +1 -1
- package/dist/src/components/kystverket/Logo/Logo.stories.d.ts +1 -1
- package/dist/src/components/kystverket/MarkdownToReact/markdownToReact.d.ts +1 -1
- package/dist/src/components/kystverket/MarkdownToReact/markdownToReact.stories.d.ts +3 -3
- package/dist/src/components/kystverket/PageHeading/PageHeading.d.ts +1 -1
- package/dist/src/components/kystverket/PageHeading/PageHeading.stories.d.ts +1 -1
- package/dist/src/components/kystverket/RichTextArea/components/LinkEditor/linkEditor.d.ts +1 -1
- package/dist/src/components/kystverket/RichTextArea/components/LinkEditor/linkEditor.stories.d.ts +2 -2
- package/dist/src/components/kystverket/RichTextArea/components/Toolbar/toolbar.d.ts +1 -1
- package/dist/src/components/kystverket/RichTextArea/components/Toolbar/toolbar.stories.d.ts +3 -3
- package/dist/src/components/kystverket/RichTextArea/richTextArea.d.ts +1 -1
- package/dist/src/components/kystverket/RichTextArea/richTextArea.stories.d.ts +5 -5
- package/dist/src/components/kystverket/SaksbehandlingShell/ItemCard/ItemCard.d.ts +1 -1
- package/dist/src/components/kystverket/SaksbehandlingShell/ItemList/ItemList.d.ts +1 -1
- package/dist/src/components/kystverket/SaksbehandlingShell/SaksbehandlingShell.d.ts +1 -1
- package/dist/src/components/kystverket/SaksbehandlingShell/SaksbehandlingShell.stories.d.ts +1 -1
- package/dist/src/components/kystverket/SaksbehandlingShell/ShellSideSheet/ShellSideSheet.d.ts +2 -2
- package/dist/src/components/kystverket/SideSheet/Buttons/ButtonsContext.d.ts +2 -2
- package/dist/src/components/kystverket/SideSheet/Layout/SideSheetLayout.d.ts +7 -2
- package/dist/src/components/kystverket/SideSheet/ResizeHandle/ResizeHandle.d.ts +3 -1
- package/dist/src/components/kystverket/SideSheet/SideSheet.d.ts +1 -1
- package/dist/src/components/kystverket/SideSheet/SideSheet.stories.d.ts +9 -6
- package/dist/src/components/kystverket/SideSheet/SideSheet.types.d.ts +11 -0
- package/dist/src/components/kystverket/Skillingsbuoye/skillingsbuoye.stories.d.ts +2 -2
- package/dist/src/components/kystverket/SlotDialog/Buttons/ButtonsContext.d.ts +2 -2
- package/dist/src/components/kystverket/SlotDialog/SlotDialog.d.ts +1 -1
- package/dist/src/components/kystverket/SlotDialog/SlotDialog.stories.d.ts +1 -1
- package/dist/src/components/kystverket/SprakProvider/SprakProviderAlt.stories.d.ts +2 -2
- package/dist/src/components/kystverket/SprakProvider/SprakProviderLink.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Stepper/stepper.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Summary/summary.d.ts +1 -1
- package/dist/src/components/kystverket/Summary/summary.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Surface/Surface.d.ts +2 -2
- package/dist/src/components/kystverket/Surface/Surface.stories.d.ts +3 -3
- package/dist/src/components/kystverket/Typography/typography.accent.stories.d.ts +2 -2
- package/dist/src/components/kystverket/Typography/typography.d.ts +3 -3
- package/dist/src/components/kystverket/Typography/typography.heading.stories.d.ts +10 -3
- package/dist/src/components/kystverket/Typography/typography.label.stories.d.ts +2 -2
- package/dist/src/hooks/useHorizontalDragScroll.d.ts +2 -2
- package/dist/src/translations.d.ts +1 -1
- package/dist/src/utils/idContext.d.ts +1 -1
- package/dist/storybook/styrbordDecorator.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/style.js +3440 -3232
- package/dist/style.umd.cjs +12 -12
- package/package.json +1 -1
|
@@ -1,23 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Chip } from '~/main';
|
|
2
2
|
import type { StoryObj } from '@storybook/react-vite';
|
|
3
|
-
declare const chipVariants: readonly ["Radio", "Checkbox", "Removable", "Button"];
|
|
4
|
-
type ChipVariant = (typeof chipVariants)[number];
|
|
5
|
-
type ChipStoryArgs = {
|
|
6
|
-
variant: ChipVariant;
|
|
7
|
-
label: string;
|
|
8
|
-
color: ChipColor;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
};
|
|
11
|
-
type ChipColor = NonNullable<ChipButtonProps['data-color']>;
|
|
12
3
|
declare const meta: {
|
|
13
4
|
title: string;
|
|
14
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "type">, keyof {
|
|
15
6
|
asChild?: boolean;
|
|
16
7
|
'data-wrap'?: "nowrap" | "wrap";
|
|
17
8
|
}> & {
|
|
18
9
|
asChild?: boolean;
|
|
19
10
|
'data-wrap'?: "nowrap" | "wrap";
|
|
20
|
-
} &
|
|
11
|
+
} & import("react").RefAttributes<HTMLLabelElement>>;
|
|
21
12
|
tags: string[];
|
|
22
13
|
parameters: {
|
|
23
14
|
customStyles: {
|
|
@@ -32,42 +23,39 @@ declare const meta: {
|
|
|
32
23
|
};
|
|
33
24
|
};
|
|
34
25
|
export default meta;
|
|
35
|
-
type Story = StoryObj<
|
|
26
|
+
type Story = StoryObj<typeof Chip.Radio>;
|
|
36
27
|
export declare const Preview: Story;
|
|
37
|
-
/**
|
|
38
|
-
* Go into the story itself to have an option to switch between variants
|
|
39
|
-
*/
|
|
40
28
|
export declare const Sizes: Story;
|
|
41
29
|
export declare const Colors: Story;
|
|
42
30
|
export declare const Checkbox: {
|
|
43
|
-
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps & Omit<
|
|
31
|
+
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "type">, keyof {
|
|
44
32
|
asChild?: boolean;
|
|
45
33
|
'data-wrap'?: "nowrap" | "wrap";
|
|
46
34
|
}> & {
|
|
47
35
|
asChild?: boolean;
|
|
48
36
|
'data-wrap'?: "nowrap" | "wrap";
|
|
49
|
-
} &
|
|
37
|
+
} & import("react").RefAttributes<HTMLLabelElement>) => import("react").JSX.Element;
|
|
50
38
|
};
|
|
51
39
|
export declare const Removable: {
|
|
52
|
-
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps &
|
|
40
|
+
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").ButtonHTMLAttributes<HTMLButtonElement>, keyof {
|
|
53
41
|
asChild?: boolean;
|
|
54
42
|
'data-wrap'?: "nowrap" | "wrap";
|
|
55
43
|
}> & {
|
|
56
44
|
asChild?: boolean;
|
|
57
45
|
'data-wrap'?: "nowrap" | "wrap";
|
|
58
|
-
} &
|
|
46
|
+
} & import("react").RefAttributes<HTMLButtonElement>) => import("react").JSX.Element;
|
|
59
47
|
args: {
|
|
60
48
|
'aria-label': string;
|
|
61
49
|
};
|
|
62
50
|
};
|
|
63
51
|
export declare const Button: {
|
|
64
|
-
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps &
|
|
52
|
+
render: (args: Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").ButtonHTMLAttributes<HTMLButtonElement>, keyof {
|
|
65
53
|
asChild?: boolean;
|
|
66
54
|
'data-wrap'?: "nowrap" | "wrap";
|
|
67
55
|
}> & {
|
|
68
56
|
asChild?: boolean;
|
|
69
57
|
'data-wrap'?: "nowrap" | "wrap";
|
|
70
|
-
} &
|
|
58
|
+
} & import("react").RefAttributes<HTMLButtonElement>) => import("react").JSX.Element;
|
|
71
59
|
parameters: {
|
|
72
60
|
customStyles: {
|
|
73
61
|
flexWrap: string;
|
|
@@ -2,11 +2,11 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { DetailsProps } from '~/main';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<DetailsProps & import("react").RefAttributes<HTMLDetailsElement>> & {
|
|
6
6
|
Summary: typeof import("@digdir/designsystemet-react").DetailsSummary;
|
|
7
7
|
Content: typeof import("@digdir/designsystemet-react").DetailsContent;
|
|
8
8
|
};
|
|
9
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
9
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
10
10
|
tags: string[];
|
|
11
11
|
argTypes: {};
|
|
12
12
|
parameters: {
|
|
@@ -3,7 +3,7 @@ export type DialogSize = 'sm' | 'md' | 'lg';
|
|
|
3
3
|
export type DialogProps = DSDialogProps & {
|
|
4
4
|
'max-width'?: DialogSize;
|
|
5
5
|
};
|
|
6
|
-
declare const DialogRoot:
|
|
6
|
+
declare const DialogRoot: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").DialogHTMLAttributes<HTMLDialogElement>, "asChild" | "open" | "onClose" | "placement" | "closeButton" | "closedby" | "modal"> & {
|
|
7
7
|
closeButton?: string | false;
|
|
8
8
|
closedby?: "none" | "closerequest" | "any";
|
|
9
9
|
placement?: "center" | "left" | "right" | "top" | "bottom";
|
|
@@ -13,7 +13,7 @@ declare const DialogRoot: React.ForwardRefExoticComponent<Omit<import("@digdir/d
|
|
|
13
13
|
asChild?: boolean;
|
|
14
14
|
} & {
|
|
15
15
|
'max-width'?: DialogSize;
|
|
16
|
-
} &
|
|
16
|
+
} & import("react").RefAttributes<HTMLDialogElement>>;
|
|
17
17
|
type DialogComponent = typeof DialogRoot & {
|
|
18
18
|
/**
|
|
19
19
|
* @deprecated Will be removed in the next major version. Connect a `Button` to the dialog with
|
|
@@ -2,7 +2,7 @@ import { Dialog } from '~/main';
|
|
|
2
2
|
import type { StoryFn } from '@storybook/react-vite';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").DialogHTMLAttributes<HTMLDialogElement>, "asChild" | "open" | "onClose" | "placement" | "closeButton" | "closedby" | "modal"> & {
|
|
6
6
|
closeButton?: string | false;
|
|
7
7
|
closedby?: "none" | "closerequest" | "any";
|
|
8
8
|
placement?: "center" | "left" | "right" | "top" | "bottom";
|
|
@@ -12,7 +12,7 @@ declare const _default: {
|
|
|
12
12
|
asChild?: boolean;
|
|
13
13
|
} & {
|
|
14
14
|
'max-width'?: import("~/main").DialogSize;
|
|
15
|
-
} &
|
|
15
|
+
} & import("react").RefAttributes<HTMLDialogElement>> & {
|
|
16
16
|
TriggerContext: typeof import("@digdir/designsystemet-react").DialogTriggerContext;
|
|
17
17
|
Trigger: typeof import("@digdir/designsystemet-react").DialogTrigger;
|
|
18
18
|
Block: typeof import("@digdir/designsystemet-react").DialogBlock;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
5
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
4
|
+
component: import("react").FC<import("~/main").IconButtonProps>;
|
|
5
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {};
|
|
8
8
|
parameters: {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { LinkProps as DsLinkProps, MergeRight } from '@digdir/designsystemet-react';
|
|
3
3
|
import { IconId } from '~/main';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* `color` er utelatt: det er et foreldet HTML-attributt som React sender rett til `<a>`, der det
|
|
6
|
+
* er ugyldig markup og ikke gjør noe. Bruk `data-color` for å velge farge.
|
|
7
|
+
*/
|
|
8
|
+
export type LinkProps = MergeRight<Omit<DsLinkProps, 'color'>, {
|
|
5
9
|
underline?: boolean;
|
|
6
10
|
icon?: IconId;
|
|
7
11
|
}>;
|
|
@@ -3,10 +3,17 @@ import type { StoryFn } from '@storybook/react-vite';
|
|
|
3
3
|
type Story = StoryFn<typeof List.Unordered>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component:
|
|
6
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
} & import("@digdir/designsystemet-react").DefaultProps & Omit<
|
|
8
|
+
} & import("@digdir/designsystemet-react").DefaultProps & Omit<import("react").HTMLAttributes<HTMLUListElement>, "size"> & import("react").RefAttributes<HTMLUListElement>>;
|
|
9
9
|
tags: string[];
|
|
10
|
+
parameters: {
|
|
11
|
+
docs: {
|
|
12
|
+
description: {
|
|
13
|
+
component: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
10
17
|
};
|
|
11
18
|
export default _default;
|
|
12
19
|
export declare const Preview: Story;
|
|
@@ -21,4 +21,4 @@ export interface NumberInputProps {
|
|
|
21
21
|
width?: InputSize;
|
|
22
22
|
id?: string;
|
|
23
23
|
}
|
|
24
|
-
export declare const NumberInput: ({ width, inputMode, className, align, ...props }: NumberInputProps) =>
|
|
24
|
+
export declare const NumberInput: ({ width, inputMode, className, align, ...props }: NumberInputProps) => import("react").JSX.Element;
|
|
@@ -4,8 +4,8 @@ declare const meta: {
|
|
|
4
4
|
title: string;
|
|
5
5
|
component: (props: NumberInputProps & {
|
|
6
6
|
externallyChanging?: boolean;
|
|
7
|
-
}) =>
|
|
8
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
9
9
|
tags: string[];
|
|
10
10
|
argTypes: {};
|
|
11
11
|
};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component:
|
|
4
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
5
5
|
'data-size'?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
6
|
variant?: "long" | "default" | "short";
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
} &
|
|
9
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
9
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
10
10
|
tags: string[];
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
11
18
|
argTypes: {
|
|
12
19
|
'data-size': {
|
|
13
20
|
control: "select";
|
|
@@ -2,7 +2,7 @@ import type { StoryFn } from '@storybook/react-vite';
|
|
|
2
2
|
import { Popover } from '~/main';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").HTMLAttributes<HTMLDivElement>, "id" | "asChild" | "variant" | "open" | "onClose" | "placement" | "autoPlacement" | "onOpen"> & {
|
|
6
6
|
id?: string;
|
|
7
7
|
placement?: import("@digdir/designsystemet-react").Placement;
|
|
8
8
|
open?: boolean;
|
|
@@ -11,7 +11,7 @@ declare const _default: {
|
|
|
11
11
|
onClose?: () => void;
|
|
12
12
|
autoPlacement?: boolean;
|
|
13
13
|
asChild?: boolean;
|
|
14
|
-
} &
|
|
14
|
+
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
15
15
|
TriggerContext: typeof import("@digdir/designsystemet-react").PopoverTriggerContext;
|
|
16
16
|
Trigger: typeof import("@digdir/designsystemet-react").PopoverTrigger;
|
|
17
17
|
};
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { SelectProps } from './Select';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ ...props }: SelectProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ ...props }: SelectProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
parameters: {
|
|
@@ -5,7 +5,7 @@ export type SuggestionProps = {
|
|
|
5
5
|
optional?: boolean | string;
|
|
6
6
|
error?: string;
|
|
7
7
|
} & DsSuggestionProps;
|
|
8
|
-
declare function SuggestionRoot({ children, label, className, required, optional, error, ...props }: SuggestionProps):
|
|
8
|
+
declare function SuggestionRoot({ children, label, className, required, optional, error, ...props }: SuggestionProps): import("react").JSX.Element;
|
|
9
9
|
type SuggestionComponent = typeof SuggestionRoot & {
|
|
10
10
|
Clear: typeof DsSuggestion.Clear;
|
|
11
11
|
Empty: typeof DsSuggestion.Empty;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (({ children, label, className, required, optional, error, ...props }: import("~/main").SuggestionProps) =>
|
|
5
|
-
Clear:
|
|
4
|
+
component: (({ children, label, className, required, optional, error, ...props }: import("~/main").SuggestionProps) => import("react").JSX.Element) & {
|
|
5
|
+
Clear: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & {
|
|
6
6
|
'aria-label'?: string;
|
|
7
|
-
} &
|
|
8
|
-
Empty:
|
|
7
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
Empty: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").DefaultProps & import("react").OptionHTMLAttributes<HTMLOptionElement> & {
|
|
9
9
|
'data-empty'?: string;
|
|
10
|
-
} &
|
|
11
|
-
Input:
|
|
12
|
-
List:
|
|
10
|
+
} & import("react").RefAttributes<HTMLOptionElement>>;
|
|
11
|
+
Input: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").SuggestionInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
|
+
List: import("react").ForwardRefExoticComponent<Omit<import("@digdir/designsystemet-react").DefaultProps & import("react").HTMLAttributes<HTMLDataListElement>, "autoPlacement" | "singular" | "plural"> & {
|
|
13
13
|
singular?: string;
|
|
14
14
|
plural?: string;
|
|
15
15
|
autoPlacement?: boolean;
|
|
16
|
-
} &
|
|
17
|
-
Option:
|
|
16
|
+
} & import("react").RefAttributes<HTMLDataListElement>>;
|
|
17
|
+
Option: import("react").ForwardRefExoticComponent<import("react").OptionHTMLAttributes<HTMLOptionElement> & import("@digdir/designsystemet-react").DefaultProps & import("react").RefAttributes<HTMLOptionElement>>;
|
|
18
18
|
};
|
|
19
19
|
tags: string[];
|
|
20
20
|
args: {
|
|
@@ -6,14 +6,14 @@ export type TableProps = DsTableProps & {
|
|
|
6
6
|
'cell-padding'?: 'sm' | 'md' | 'lg';
|
|
7
7
|
};
|
|
8
8
|
declare const Table: {
|
|
9
|
-
({ header, body, radius, className, "cell-padding": cellPadding, ...props }: TableProps):
|
|
10
|
-
Cell:
|
|
11
|
-
HeaderCell:
|
|
12
|
-
sort?:
|
|
13
|
-
} &
|
|
14
|
-
Head:
|
|
15
|
-
Body:
|
|
16
|
-
Row:
|
|
17
|
-
Foot:
|
|
9
|
+
({ header, body, radius, className, "cell-padding": cellPadding, ...props }: TableProps): import("react").JSX.Element;
|
|
10
|
+
Cell: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TableCellProps & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
11
|
+
HeaderCell: import("react").ForwardRefExoticComponent<{
|
|
12
|
+
sort?: import("react").AriaAttributes["aria-sort"];
|
|
13
|
+
} & import("react").ThHTMLAttributes<HTMLTableCellElement> & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
14
|
+
Head: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TableHeadProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
15
|
+
Body: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
16
|
+
Row: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TableRowProps & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
17
|
+
Foot: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TableFootProps & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
18
18
|
};
|
|
19
19
|
export default Table;
|
|
@@ -3,13 +3,13 @@ export type TabsProps = DsTabsProps & {
|
|
|
3
3
|
underlined?: boolean;
|
|
4
4
|
};
|
|
5
5
|
declare const Tabs: {
|
|
6
|
-
({ underlined, className, ...props }: TabsProps):
|
|
7
|
-
List:
|
|
8
|
-
Tab:
|
|
6
|
+
({ underlined, className, ...props }: TabsProps): import("react").JSX.Element;
|
|
7
|
+
List: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").TabsListProps & import("react").RefAttributes<import("@digdir/designsystemet-web").DSTabListElement>>;
|
|
8
|
+
Tab: import("react").ForwardRefExoticComponent<{
|
|
9
9
|
value: string;
|
|
10
|
-
} & Omit<
|
|
11
|
-
Panel:
|
|
10
|
+
} & Omit<import("react").HTMLAttributes<import("@digdir/designsystemet-web").DSTabElement>, "value"> & import("react").RefAttributes<import("@digdir/designsystemet-web").DSTabElement>>;
|
|
11
|
+
Panel: import("react").ForwardRefExoticComponent<{
|
|
12
12
|
value: string;
|
|
13
|
-
} & Omit<
|
|
13
|
+
} & Omit<import("react").HTMLAttributes<import("@digdir/designsystemet-web").DSTabPanelElement>, "value"> & import("react").RefAttributes<import("@digdir/designsystemet-web").DSTabPanelElement>>;
|
|
14
14
|
};
|
|
15
15
|
export default Tabs;
|
|
@@ -5,5 +5,5 @@ export type TagProps = DsTagProps & {
|
|
|
5
5
|
icon?: IconId;
|
|
6
6
|
'data-color-transparent'?: boolean;
|
|
7
7
|
};
|
|
8
|
-
declare const Tag: ({ radius, icon, children, className, ...props }: TagProps) =>
|
|
8
|
+
declare const Tag: ({ radius, icon, children, className, ...props }: TagProps) => import("react").JSX.Element;
|
|
9
9
|
export default Tag;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn, StoryObj } from '@storybook/react-vite';
|
|
|
3
3
|
type Story = StoryObj<typeof Tag>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ radius, icon, children, className, ...props }: TagProps) =>
|
|
6
|
+
component: ({ radius, icon, children, className, ...props }: TagProps) => import("react").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {
|
|
9
9
|
'data-size': {
|
|
@@ -31,6 +31,8 @@ export declare const Rounded: StoryFn<typeof Tag>;
|
|
|
31
31
|
export declare const RoundedWithSizes: StoryFn<typeof Tag>;
|
|
32
32
|
export declare const RoundedWithBorders: StoryFn<typeof Tag>;
|
|
33
33
|
export declare const WithIcon: Story;
|
|
34
|
+
/** The icon follows the tag's size, whether `data-size` is set on the tag or inherited from an ancestor. */
|
|
35
|
+
export declare const WithIconSizes: StoryFn<typeof Tag>;
|
|
34
36
|
export declare const PlainBackground: Story;
|
|
35
37
|
export declare const PlainBackgroundRoundedWithIcon: Story;
|
|
36
38
|
export declare const WithIconColors: StoryFn<typeof Tag>;
|
|
@@ -19,4 +19,4 @@ export interface TextAreaProps {
|
|
|
19
19
|
width?: InputSize;
|
|
20
20
|
id?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare const TextArea: ({ width, className, label, required, optional, onChange, value, maxLength, minHeight, error, ...props }: TextAreaProps) =>
|
|
22
|
+
export declare const TextArea: ({ width, className, label, required, optional, onChange, value, maxLength, minHeight, error, ...props }: TextAreaProps) => import("react").JSX.Element;
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { TextAreaProps } from './TextArea';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ width, className, label, required, optional, onChange, value, maxLength, minHeight, error, ...props }: TextAreaProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ width, className, label, required, optional, onChange, value, maxLength, minHeight, error, ...props }: TextAreaProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
parameters: {
|
|
@@ -22,4 +22,4 @@ export interface TextInputProps {
|
|
|
22
22
|
width?: InputSize;
|
|
23
23
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
24
24
|
}
|
|
25
|
-
export declare const TextInput: ({ width, type, className, label, loading, required, optional, onChange, value, ...props }: TextInputProps) =>
|
|
25
|
+
export declare const TextInput: ({ width, type, className, label, loading, required, optional, onChange, value, ...props }: TextInputProps) => import("react").JSX.Element;
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { TextInputProps } from './TextInput';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ width, type, className, label, loading, required, optional, onChange, value, ...props }: TextInputProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ width, type, className, label, loading, required, optional, onChange, value, ...props }: TextInputProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
parameters: {
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { AlertProps } from './alert';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ title, "data-size": dataSize, text, width, className, "border-style": borderStyle, ...props }: AlertProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ title, "data-size": dataSize, text, width, className, "border-style": borderStyle, ...props }: AlertProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
parameters: {
|
|
@@ -8,5 +8,5 @@ export type BorderedRadioGroupProps = BorderedGroupProps & {
|
|
|
8
8
|
}[];
|
|
9
9
|
onChange?: (value: RadioGroupValueType) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const BorderedRadioGroup: (props: BorderedRadioGroupProps) =>
|
|
11
|
+
declare const BorderedRadioGroup: (props: BorderedRadioGroupProps) => import("react").JSX.Element;
|
|
12
12
|
export default BorderedRadioGroup;
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { BorderedRadioGroupProps } from './borderedRadioGroup';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (props: BorderedRadioGroupProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: (props: BorderedRadioGroupProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
};
|
|
@@ -9,5 +9,5 @@ export type BorderedToggleGroupProps = BorderedGroupProps & {
|
|
|
9
9
|
onChanges?: (values: ToggleValue[]) => void;
|
|
10
10
|
onChange?: (value: ToggleValue) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const BorderedToggleGroup: (props: BorderedToggleGroupProps) =>
|
|
12
|
+
declare const BorderedToggleGroup: (props: BorderedToggleGroupProps) => import("react").JSX.Element | null;
|
|
13
13
|
export default BorderedToggleGroup;
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { BorderedToggleGroupProps } from './borderedToggleGroup';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ values: propValues, ...props }: BorderedToggleGroupProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ values: propValues, ...props }: BorderedToggleGroupProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
};
|
|
@@ -42,5 +42,5 @@ export type BoxProps = (VerticalBoxProps | HorizontalBoxProps) & SpacingProps &
|
|
|
42
42
|
*
|
|
43
43
|
* @deprecated Use `Surface`. `Box` will be removed in a future major version.
|
|
44
44
|
*/
|
|
45
|
-
declare const Box: ({ className, radius, width, gap, wrap, align, grow, shrink, basis, show, hide, container, children, ...props }: BoxProps) =>
|
|
45
|
+
declare const Box: ({ className, radius, width, gap, wrap, align, grow, shrink, basis, show, hide, container, children, ...props }: BoxProps) => import("react").JSX.Element;
|
|
46
46
|
export default Box;
|
|
@@ -2,8 +2,8 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { BoxProps } from './box';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ className, radius, width, gap, wrap, align, grow, shrink, basis, show, hide, container, children, ...props }: BoxProps) =>
|
|
6
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
5
|
+
component: ({ className, radius, width, gap, wrap, align, grow, shrink, basis, show, hide, container, children, ...props }: BoxProps) => import("react").JSX.Element;
|
|
6
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
7
7
|
tags: string[];
|
|
8
8
|
argTypes: {};
|
|
9
9
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryFn, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (props: import("~/main").ClickableCardProps) =>
|
|
5
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
4
|
+
component: (props: import("~/main").ClickableCardProps) => import("react").JSX.Element;
|
|
5
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {
|
|
8
8
|
'data-color-variant': {
|
package/dist/src/components/kystverket/ColorTokenCollections/ColorTokenCollections.stories.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type StoryArgs = {
|
|
|
8
8
|
declare const meta: {
|
|
9
9
|
title: string;
|
|
10
10
|
tags: string[];
|
|
11
|
-
component: ({ dataColor, dataColorScheme }: StoryArgs) =>
|
|
11
|
+
component: ({ dataColor, dataColorScheme }: StoryArgs) => import("react").JSX.Element;
|
|
12
12
|
args: {
|
|
13
13
|
dataColor: "primary";
|
|
14
14
|
dataColorScheme: "light";
|
|
@@ -36,7 +36,7 @@ declare const meta: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
render: (args: StoryArgs) =>
|
|
39
|
+
render: (args: StoryArgs) => import("react").JSX.Element;
|
|
40
40
|
};
|
|
41
41
|
export default meta;
|
|
42
42
|
type Story = StoryObj<typeof meta>;
|
|
@@ -6,7 +6,7 @@ type StoryArgs = {
|
|
|
6
6
|
declare const meta: {
|
|
7
7
|
title: string;
|
|
8
8
|
tags: string[];
|
|
9
|
-
component: ({ colorScheme }: StoryArgs) =>
|
|
9
|
+
component: ({ colorScheme }: StoryArgs) => import("react").JSX.Element;
|
|
10
10
|
args: {
|
|
11
11
|
colorScheme: "light";
|
|
12
12
|
};
|
|
@@ -26,7 +26,7 @@ declare const meta: {
|
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
render: (args: StoryArgs) =>
|
|
29
|
+
render: (args: StoryArgs) => import("react").JSX.Element;
|
|
30
30
|
};
|
|
31
31
|
export default meta;
|
|
32
32
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CompactDetailsProps } from './CompactDetails.types';
|
|
2
|
-
declare const CompactDetails: ({ label, children, open, defaultOpen, onOpenChange, id, className, }: CompactDetailsProps) =>
|
|
2
|
+
declare const CompactDetails: ({ label, children, open, defaultOpen, onOpenChange, id, className, }: CompactDetailsProps) => import("react").JSX.Element;
|
|
3
3
|
export default CompactDetails;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ label, children, open, defaultOpen, onOpenChange, id, className, }: import("~/main").CompactDetailsProps) =>
|
|
5
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
4
|
+
component: ({ label, children, open, defaultOpen, onOpenChange, id, className, }: import("~/main").CompactDetailsProps) => import("react").JSX.Element;
|
|
5
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
6
6
|
tags: string[];
|
|
7
7
|
argTypes: {};
|
|
8
8
|
parameters: {
|
package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.d.ts
CHANGED
|
@@ -7,15 +7,19 @@ export interface DateTimePickerProps {
|
|
|
7
7
|
required?: boolean | string | undefined;
|
|
8
8
|
label: string;
|
|
9
9
|
description?: string;
|
|
10
|
+
/** Takes precedence over the built-in format and min/max messages. */
|
|
10
11
|
error?: string;
|
|
11
12
|
loading?: boolean;
|
|
12
13
|
onBlur?: () => void;
|
|
13
14
|
value: Date | undefined;
|
|
15
|
+
/** Called with a valid date and time, or `undefined` when the field is emptied or the typed text is invalid. */
|
|
14
16
|
onChange?: (date: Date | undefined) => void;
|
|
17
|
+
/** Compared to the minute. */
|
|
15
18
|
minDate?: Date;
|
|
19
|
+
/** Compared to the minute. */
|
|
16
20
|
maxDate?: Date;
|
|
17
21
|
width?: InputSize;
|
|
18
22
|
disabled?: boolean;
|
|
19
23
|
readOnly?: boolean;
|
|
20
24
|
}
|
|
21
|
-
export declare const DateTimePicker: ({ width, className, label, loading, required, optional, onChange, value, minDate, maxDate, ...props }: DateTimePickerProps) =>
|
|
25
|
+
export declare const DateTimePicker: ({ width, className, label, loading, required, optional, onChange, onBlur, value, minDate, maxDate, disabled, readOnly, ...props }: DateTimePickerProps) => import("react").JSX.Element;
|