@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.
Files changed (142) hide show
  1. package/dist/docs/skjema.md +11 -5
  2. package/dist/src/components/deprecated/Card/Card.d.ts +3 -3
  3. package/dist/src/components/deprecated/Card/Card.stories.d.ts +4 -4
  4. package/dist/src/components/deprecated/Details/Details.d.ts +1 -1
  5. package/dist/src/components/deprecated/Details/Details.stories.d.ts +2 -2
  6. package/dist/src/components/deprecated/ErrorLabel/errorLabel.d.ts +1 -1
  7. package/dist/src/components/deprecated/ErrorLabel/errorLabel.stories.d.ts +2 -2
  8. package/dist/src/components/deprecated/InputLabel/inputLabel.d.ts +1 -1
  9. package/dist/src/components/deprecated/InputLabel/inputLabel.stories.d.ts +2 -2
  10. package/dist/src/components/designsystemet/Avatar/Avatar.context.d.ts +2 -2
  11. package/dist/src/components/designsystemet/AvatarStack/AvatarStack.d.ts +1 -1
  12. package/dist/src/components/designsystemet/Button/Button.stories.d.ts +2 -2
  13. package/dist/src/components/designsystemet/Card/Card.stories.d.ts +11 -4
  14. package/dist/src/components/designsystemet/CardTitle/CardTitle.d.ts +1 -1
  15. package/dist/src/components/designsystemet/Checkbox/Checkbox.stories.d.ts +527 -527
  16. package/dist/src/components/designsystemet/Chip/Chip.stories.d.ts +10 -22
  17. package/dist/src/components/designsystemet/Details/Details.stories.d.ts +2 -2
  18. package/dist/src/components/designsystemet/Dialog/Dialog.d.ts +2 -2
  19. package/dist/src/components/designsystemet/Dialog/Dialog.stories.d.ts +2 -2
  20. package/dist/src/components/designsystemet/IconButton/IconButton.stories.d.ts +2 -2
  21. package/dist/src/components/designsystemet/Link/Link.d.ts +5 -1
  22. package/dist/src/components/designsystemet/List/List.stories.d.ts +9 -2
  23. package/dist/src/components/designsystemet/NumberInput/NumberInput.d.ts +1 -1
  24. package/dist/src/components/designsystemet/NumberInput/NumberInput.stories.d.ts +2 -2
  25. package/dist/src/components/designsystemet/Paragraph/typography.paragraph.stories.d.ts +10 -3
  26. package/dist/src/components/designsystemet/Popover/Popover.stories.d.ts +2 -2
  27. package/dist/src/components/designsystemet/Select/Select.d.ts +1 -1
  28. package/dist/src/components/designsystemet/Select/Select.stories.d.ts +2 -2
  29. package/dist/src/components/designsystemet/Suggestion/Suggestion.d.ts +1 -1
  30. package/dist/src/components/designsystemet/Suggestion/Suggestion.stories.d.ts +9 -9
  31. package/dist/src/components/designsystemet/Table/Table.d.ts +9 -9
  32. package/dist/src/components/designsystemet/Tabs/Tabs.d.ts +6 -6
  33. package/dist/src/components/designsystemet/Tag/Tag.d.ts +1 -1
  34. package/dist/src/components/designsystemet/Tag/Tag.stories.d.ts +3 -1
  35. package/dist/src/components/designsystemet/TextArea/TextArea.d.ts +1 -1
  36. package/dist/src/components/designsystemet/TextArea/TextArea.stories.d.ts +2 -2
  37. package/dist/src/components/designsystemet/TextInput/TextInput.d.ts +1 -1
  38. package/dist/src/components/designsystemet/TextInput/TextInput.stories.d.ts +2 -2
  39. package/dist/src/components/kystverket/Alert/alert.stories.d.ts +2 -2
  40. package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.d.ts +1 -1
  41. package/dist/src/components/kystverket/BorderedRadioGroup/borderedRadioGroup.stories.d.ts +2 -2
  42. package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.d.ts +1 -1
  43. package/dist/src/components/kystverket/BorderedToggleGroup/borderedToggleGroup.stories.d.ts +2 -2
  44. package/dist/src/components/kystverket/Box/box.d.ts +1 -1
  45. package/dist/src/components/kystverket/Box/box.stories.d.ts +2 -2
  46. package/dist/src/components/kystverket/ClickableCard/ClickableCard.d.ts +1 -1
  47. package/dist/src/components/kystverket/ClickableCard/ClickableCard.stories.d.ts +2 -2
  48. package/dist/src/components/kystverket/ColorSchemeToggle/ColorSchemeToggle.d.ts +2 -2
  49. package/dist/src/components/kystverket/ColorSchemeToggle/ColorSchemeToggle.stories.d.ts +7 -1
  50. package/dist/src/components/kystverket/ColorSchemeToggle/ColorSchemeToggle.types.d.ts +11 -2
  51. package/dist/src/components/kystverket/ColorTokenCollections/ColorTokenCollections.stories.d.ts +2 -2
  52. package/dist/src/components/kystverket/ColorTokenCollections/Colors.stories.d.ts +2 -2
  53. package/dist/src/components/kystverket/CompactDetails/CompactDetails.d.ts +1 -1
  54. package/dist/src/components/kystverket/CompactDetails/CompactDetails.stories.d.ts +2 -2
  55. package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.d.ts +5 -1
  56. package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.stories.d.ts +10 -3
  57. package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.d.ts +3 -1
  58. package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.stories.d.ts +10 -3
  59. package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/PickerControl.d.ts +29 -0
  60. package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/pickerKinds.d.ts +53 -0
  61. package/dist/src/components/kystverket/DateAndTimePickers/PickerControl/usePickerText.d.ts +27 -0
  62. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.d.ts +12 -1
  63. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.stories.d.ts +10 -3
  64. package/dist/src/components/kystverket/FilePreviewer/FilePreviewer-context.d.ts +2 -2
  65. package/dist/src/components/kystverket/FilePreviewer/FilePreviewer.stories.d.ts +2 -2
  66. package/dist/src/components/kystverket/FilePreviewer/dialog/FilePreviewer-dialog.d.ts +1 -1
  67. package/dist/src/components/kystverket/FilePreviewer/panel/FilePreviewer-panel.d.ts +1 -1
  68. package/dist/src/components/kystverket/FilePreviewer/renderer/FileRenderer.d.ts +1 -1
  69. package/dist/src/components/kystverket/FilePreviewer/thumbnail/FilePreviewer-thumbnail.d.ts +1 -1
  70. package/dist/src/components/kystverket/FileUploader/FileRetriever.context.d.ts +1 -1
  71. package/dist/src/components/kystverket/FileUploader/FileUploader.context.d.ts +1 -1
  72. package/dist/src/components/kystverket/FileUploader/FileUploader.d.ts +1 -1
  73. package/dist/src/components/kystverket/FileUploader/FileUploader.stories.d.ts +4 -4
  74. package/dist/src/components/kystverket/FileUploader/existingFilesDialog/ExistingFilesDialog.d.ts +1 -1
  75. package/dist/src/components/kystverket/FileUploader/fileUploadActions/FileUploadActions.d.ts +1 -1
  76. package/dist/src/components/kystverket/FileUploader/item/FileUploaderItem.d.ts +1 -1
  77. package/dist/src/components/kystverket/Footer/Footer.d.ts +1 -1
  78. package/dist/src/components/kystverket/Footer/Footer.stories.d.ts +1 -1
  79. package/dist/src/components/kystverket/Header/Header.d.ts +2 -2
  80. package/dist/src/components/kystverket/Header/Header.stories.d.ts +1 -1
  81. package/dist/src/components/kystverket/Header/HeaderApps.d.ts +1 -1
  82. package/dist/src/components/kystverket/Header/HeaderAvatar.d.ts +1 -1
  83. package/dist/src/components/kystverket/Header/HeaderMobile.d.ts +1 -1
  84. package/dist/src/components/kystverket/Header/HeaderProfile.d.ts +1 -1
  85. package/dist/src/components/kystverket/Header/headerContext.d.ts +2 -2
  86. package/dist/src/components/kystverket/Icon/FileIcon.d.ts +1 -1
  87. package/dist/src/components/kystverket/Icon/Icon.stories.d.ts +2 -2
  88. package/dist/src/components/kystverket/Icon/icon.d.ts +1 -1
  89. package/dist/src/components/kystverket/Image/svgImage.d.ts +55 -55
  90. package/dist/src/components/kystverket/Image/svgImage.stories.d.ts +2 -2
  91. package/dist/src/components/kystverket/KyvDivider/KyvDivider.d.ts +1 -1
  92. package/dist/src/components/kystverket/KyvDivider/KyvDivider.stories.d.ts +2 -2
  93. package/dist/src/components/kystverket/KyvSpinner/KyvSpinner.stories.d.ts +2 -2
  94. package/dist/src/components/kystverket/LabelContent/labelContent.d.ts +1 -1
  95. package/dist/src/components/kystverket/LabelContent/labelContent.stories.d.ts +2 -2
  96. package/dist/src/components/kystverket/Logo/Logo.d.ts +1 -1
  97. package/dist/src/components/kystverket/Logo/Logo.stories.d.ts +1 -1
  98. package/dist/src/components/kystverket/MarkdownToReact/markdownToReact.d.ts +1 -1
  99. package/dist/src/components/kystverket/MarkdownToReact/markdownToReact.stories.d.ts +3 -3
  100. package/dist/src/components/kystverket/PageHeading/PageHeading.d.ts +1 -1
  101. package/dist/src/components/kystverket/PageHeading/PageHeading.stories.d.ts +1 -1
  102. package/dist/src/components/kystverket/RichTextArea/components/LinkEditor/linkEditor.d.ts +1 -1
  103. package/dist/src/components/kystverket/RichTextArea/components/LinkEditor/linkEditor.stories.d.ts +2 -2
  104. package/dist/src/components/kystverket/RichTextArea/components/Toolbar/toolbar.d.ts +1 -1
  105. package/dist/src/components/kystverket/RichTextArea/components/Toolbar/toolbar.stories.d.ts +3 -3
  106. package/dist/src/components/kystverket/RichTextArea/richTextArea.d.ts +1 -1
  107. package/dist/src/components/kystverket/RichTextArea/richTextArea.stories.d.ts +5 -5
  108. package/dist/src/components/kystverket/SaksbehandlingShell/ItemCard/ItemCard.d.ts +1 -1
  109. package/dist/src/components/kystverket/SaksbehandlingShell/ItemList/ItemList.d.ts +1 -1
  110. package/dist/src/components/kystverket/SaksbehandlingShell/SaksbehandlingShell.d.ts +1 -1
  111. package/dist/src/components/kystverket/SaksbehandlingShell/SaksbehandlingShell.stories.d.ts +1 -1
  112. package/dist/src/components/kystverket/SaksbehandlingShell/ShellSideSheet/ShellSideSheet.d.ts +2 -2
  113. package/dist/src/components/kystverket/SideSheet/Buttons/ButtonsContext.d.ts +2 -2
  114. package/dist/src/components/kystverket/SideSheet/Layout/SideSheetLayout.d.ts +7 -2
  115. package/dist/src/components/kystverket/SideSheet/ResizeHandle/ResizeHandle.d.ts +3 -1
  116. package/dist/src/components/kystverket/SideSheet/SideSheet.d.ts +1 -1
  117. package/dist/src/components/kystverket/SideSheet/SideSheet.stories.d.ts +9 -6
  118. package/dist/src/components/kystverket/SideSheet/SideSheet.types.d.ts +11 -0
  119. package/dist/src/components/kystverket/Skillingsbuoye/skillingsbuoye.stories.d.ts +2 -2
  120. package/dist/src/components/kystverket/SlotDialog/Buttons/ButtonsContext.d.ts +2 -2
  121. package/dist/src/components/kystverket/SlotDialog/SlotDialog.d.ts +1 -1
  122. package/dist/src/components/kystverket/SlotDialog/SlotDialog.stories.d.ts +1 -1
  123. package/dist/src/components/kystverket/SprakProvider/SprakProviderAlt.stories.d.ts +2 -2
  124. package/dist/src/components/kystverket/SprakProvider/SprakProviderLink.stories.d.ts +2 -2
  125. package/dist/src/components/kystverket/Stepper/stepper.stories.d.ts +2 -2
  126. package/dist/src/components/kystverket/Summary/summary.d.ts +1 -1
  127. package/dist/src/components/kystverket/Summary/summary.stories.d.ts +2 -2
  128. package/dist/src/components/kystverket/Surface/Surface.d.ts +2 -2
  129. package/dist/src/components/kystverket/Surface/Surface.stories.d.ts +3 -3
  130. package/dist/src/components/kystverket/Typography/typography.accent.stories.d.ts +2 -2
  131. package/dist/src/components/kystverket/Typography/typography.d.ts +3 -3
  132. package/dist/src/components/kystverket/Typography/typography.heading.stories.d.ts +10 -3
  133. package/dist/src/components/kystverket/Typography/typography.label.stories.d.ts +2 -2
  134. package/dist/src/hooks/useHorizontalDragScroll.d.ts +2 -2
  135. package/dist/src/main.d.ts +1 -1
  136. package/dist/src/translations.d.ts +1 -1
  137. package/dist/src/utils/idContext.d.ts +1 -1
  138. package/dist/storybook/styrbordDecorator.d.ts +1 -1
  139. package/dist/style.css +1 -1
  140. package/dist/style.js +3457 -3238
  141. package/dist/style.umd.cjs +12 -12
  142. 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: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
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
- } & React.RefAttributes<HTMLDivElement>>;
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: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
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
- } & React.RefAttributes<HTMLDivElement>>;
24
- decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
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) => React.JSX.Element;
5
- decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
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) => React.JSX.Element;
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) => React.JSX.Element;
23
- Label: ({ strong, weight, size, className, children, inline }: LabelTypographyProps) => React.JSX.Element;
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: React.ForwardRefExoticComponent<{
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
- } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
9
- decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
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) => React.JSX.Element;
5
- decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
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: React.RefObject<HTMLDivElement | null>;
3
- hasMovedRef: React.RefObject<boolean>;
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;
@@ -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
- }) => React.JSX.Element;
5
+ }) => import("react").JSX.Element;
6
6
  export declare const useTranslation: () => import("@kystverket/sprak-react").UseTranslationResult;
@@ -1,7 +1,7 @@
1
1
  export declare function IdProvider({ id, children }: Readonly<{
2
2
  id: string;
3
3
  children: React.ReactNode;
4
- }>): React.JSX.Element;
4
+ }>): import("react").JSX.Element;
5
5
  export declare const useIdProvider: () => {
6
6
  getId: (...segments: unknown[]) => string;
7
7
  };
@@ -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) => React.JSX.Element;
3
+ declare const StyrbordDecorator: (Story: PartialStoryFn, context: StoryContext) => import("react").JSX.Element;
4
4
  export default StyrbordDecorator;