@kystverket/styrbord 2.19.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/ColorSchemeToggle/ColorSchemeToggle.d.ts +2 -2
- package/dist/src/components/kystverket/ColorSchemeToggle/ColorSchemeToggle.stories.d.ts +7 -1
- package/dist/src/components/kystverket/ColorSchemeToggle/ColorSchemeToggle.types.d.ts +11 -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/main.d.ts +1 -1
- 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 +3457 -3238
- package/dist/style.umd.cjs +12 -12
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { SurfaceSize } from './Surface.types';
|
|
|
6
6
|
* spacing is a step on the Designsystemet size scale (`4` = `var(--ds-size-4)`), colour follows `data-color`,
|
|
7
7
|
* and all other `div` attributes and a `ref` are passed through.
|
|
8
8
|
*/
|
|
9
|
-
declare const Surface:
|
|
9
|
+
declare const Surface: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
|
|
10
10
|
horizontal?: boolean | import("../../../main").ScreenSize;
|
|
11
11
|
gap?: SurfaceSize;
|
|
12
12
|
align?: "normal" | "start" | "center" | "end" | "stretch";
|
|
@@ -24,5 +24,5 @@ declare const Surface: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes
|
|
|
24
24
|
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
25
25
|
'border-style'?: import("./Surface.types").SurfaceBorderStyle;
|
|
26
26
|
radius?: "none" | "default" | "sm" | "md" | "lg" | "xl" | "full";
|
|
27
|
-
} &
|
|
27
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
28
28
|
export default Surface;
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { DataColor } from '~/main';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
|
|
6
6
|
horizontal?: boolean | import("~/main").ScreenSize;
|
|
7
7
|
gap?: import("~/main").SurfaceSize;
|
|
8
8
|
align?: "normal" | "start" | "center" | "end" | "stretch";
|
|
@@ -20,8 +20,8 @@ declare const meta: {
|
|
|
20
20
|
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
21
21
|
'border-style'?: import("~/main").SurfaceBorderStyle;
|
|
22
22
|
radius?: "none" | "default" | "sm" | "md" | "lg" | "xl" | "full";
|
|
23
|
-
} &
|
|
24
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
23
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => import("react").JSX.Element)[];
|
|
25
25
|
tags: string[];
|
|
26
26
|
argTypes: {
|
|
27
27
|
'data-color': {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ strong, weight, size, className, children }: import("~/main").AccentTypographyProps) =>
|
|
5
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
4
|
+
component: ({ strong, weight, size, className, children }: import("~/main").AccentTypographyProps) => 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
|
};
|
|
@@ -17,8 +17,8 @@ export type LabelTypographyProps = TypographyProps & {
|
|
|
17
17
|
weight?: TypographyWeight;
|
|
18
18
|
inline?: boolean;
|
|
19
19
|
};
|
|
20
|
-
export declare const Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) =>
|
|
20
|
+
export declare const Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => import("react").JSX.Element;
|
|
21
21
|
export declare const Typography: {
|
|
22
|
-
Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) =>
|
|
23
|
-
Label: ({ strong, weight, size, className, children, inline }: LabelTypographyProps) =>
|
|
22
|
+
Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => import("react").JSX.Element;
|
|
23
|
+
Label: ({ strong, weight, size, className, children, inline }: LabelTypographyProps) => import("react").JSX.Element;
|
|
24
24
|
};
|
|
@@ -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
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
7
7
|
asChild?: boolean;
|
|
8
|
-
} &
|
|
9
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLHeadingElement> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
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
|
};
|
|
13
20
|
export default meta;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ strong, weight, size, className, children, inline }: import("~/main").LabelTypographyProps) =>
|
|
5
|
-
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) =>
|
|
4
|
+
component: ({ strong, weight, size, className, children, inline }: import("~/main").LabelTypographyProps) => 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
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useHorizontalDragScroll: () => {
|
|
2
|
-
scrollRef:
|
|
3
|
-
hasMovedRef:
|
|
2
|
+
scrollRef: import("react").RefObject<HTMLDivElement | null>;
|
|
3
|
+
hasMovedRef: import("react").RefObject<boolean>;
|
|
4
4
|
handlers: {
|
|
5
5
|
onMouseDown: (e: React.MouseEvent) => void;
|
|
6
6
|
onMouseMove: (e: React.MouseEvent) => void;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export type { LogoProps, LogoVariant } from './components/kystverket/Logo/Logo';
|
|
|
49
49
|
export { Search, SearchInput, SearchClear, SearchButton } from './components/kystverket/Search/Search';
|
|
50
50
|
export type { SearchProps, SearchInputProps, SearchClearProps, SearchButtonProps, } from './components/kystverket/Search/Search.types';
|
|
51
51
|
export { ColorSchemeToggle } from './components/kystverket/ColorSchemeToggle/ColorSchemeToggle';
|
|
52
|
-
export type { ColorScheme, ColorSchemeToggleProps, ColorSchemeToggleVariant, } from './components/kystverket/ColorSchemeToggle/ColorSchemeToggle.types';
|
|
52
|
+
export type { ColorScheme, ColorSchemeToggleProps, ColorSchemeToggleSize, ColorSchemeToggleVariant, } from './components/kystverket/ColorSchemeToggle/ColorSchemeToggle.types';
|
|
53
53
|
export { useColorScheme, COLOR_SCHEME_STORAGE_KEY } from './components/kystverket/ColorSchemeToggle/useColorScheme';
|
|
54
54
|
export { Footer } from './components/kystverket/Footer/Footer';
|
|
55
55
|
export type { FooterProps } from './components/kystverket/Footer/Footer';
|
|
@@ -2,5 +2,5 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
export declare const STYRBORD_TRANSLATIONS_NAMESPACE = "styrbord";
|
|
3
3
|
export declare const StyrbordTranslations: (props: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
}) =>
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
6
|
export declare const useTranslation: () => import("@kystverket/sprak-react").UseTranslationResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PartialStoryFn, StoryContext } from 'storybook/internal/types';
|
|
2
2
|
import './storybook-style.scss';
|
|
3
|
-
declare const StyrbordDecorator: (Story: PartialStoryFn, context: StoryContext) =>
|
|
3
|
+
declare const StyrbordDecorator: (Story: PartialStoryFn, context: StoryContext) => import("react").JSX.Element;
|
|
4
4
|
export default StyrbordDecorator;
|