@kystverket/styrbord 1.16.0 → 1.17.1

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 (23) hide show
  1. package/dist/src/components/designsystemet/Paragraph/Paragraph.d.ts +10 -0
  2. package/dist/src/components/designsystemet/Paragraph/typography.paragraph.stories.d.ts +24 -0
  3. package/dist/src/components/designsystemet/Text/Text.d.ts +13 -0
  4. package/dist/src/components/designsystemet/Text/Text.stories.d.ts +89 -0
  5. package/dist/src/components/kystverket/{DateTimePicker → DateAndTimePickers/DateTimePicker}/DateTimePicker.d.ts +2 -1
  6. package/dist/src/components/kystverket/{DateTimePicker → DateAndTimePickers/DateTimePicker}/DateTimePicker.stories.d.ts +10 -2
  7. package/dist/src/components/kystverket/{Datepicker → DateAndTimePickers/Datepicker}/Datepicker.d.ts +3 -2
  8. package/dist/src/components/kystverket/{Datepicker → DateAndTimePickers/Datepicker}/Datepicker.stories.d.ts +12 -4
  9. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.d.ts +19 -0
  10. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.stories.d.ts +42 -0
  11. package/dist/src/components/kystverket/Icon/Icon.stories.d.ts +1 -1
  12. package/dist/src/components/kystverket/Icon/icon.types.d.ts +1 -1
  13. package/dist/src/components/kystverket/Typography/typography.accent.stories.d.ts +1 -1
  14. package/dist/src/components/kystverket/Typography/typography.d.ts +13 -10
  15. package/dist/src/components/kystverket/Typography/typography.label.stories.d.ts +1 -1
  16. package/dist/src/components/kystverket/Typography/typography.util.d.ts +4 -1
  17. package/dist/src/main.d.ts +8 -4
  18. package/dist/style.css +1 -1
  19. package/dist/style.js +2230 -2048
  20. package/dist/style.umd.cjs +7 -7
  21. package/package.json +1 -1
  22. package/dist/src/components/kystverket/Typography/typography.body.stories.d.ts +0 -12
  23. package/dist/src/components/kystverket/Typography/typography.paragraph.stories.d.ts +0 -15
@@ -0,0 +1,10 @@
1
+ import { ParagraphProps as DsParagraphProps } from '@digdir/designsystemet-react';
2
+ export type ParagraphProps = DsParagraphProps & {
3
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
4
+ /** @deprecated Use `fontWeight="medium"` instead. */
5
+ strong?: boolean;
6
+ weight?: 'regular' | 'medium' | 'semibold';
7
+ 'data-color-subtle'?: boolean;
8
+ };
9
+ export declare const Paragraph: ({ size, strong, weight, "data-color-subtle": colorSubtle, className, children, ...props }: ParagraphProps) => React.JSX.Element;
10
+ export default Paragraph;
@@ -0,0 +1,24 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ size, strong, weight, "data-color-subtle": colorSubtle, className, children, ...props }: import("~/main").ParagraphProps) => React.JSX.Element;
5
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
6
+ tags: string[];
7
+ argTypes: {
8
+ size: {
9
+ control: "select";
10
+ options: string[];
11
+ };
12
+ weight: {
13
+ control: "select";
14
+ options: (string | undefined)[];
15
+ };
16
+ 'data-color-subtle': {
17
+ control: "boolean";
18
+ };
19
+ };
20
+ };
21
+ export default meta;
22
+ type Story = StoryObj<typeof meta>;
23
+ export declare const Preview: Story;
24
+ export declare const Examples: Story;
@@ -0,0 +1,13 @@
1
+ import { type ParagraphProps } from '../Paragraph/Paragraph';
2
+ import { HTMLAttributes } from 'react';
3
+ export declare const colorValues: readonly ["primary", "accent", "neutral", "extra1", "extra2", "success", "danger", "info", "warning", "focus", "hav", "stein", "gress", "sol", "lyng", "himmel", "sand", "fyr", "dyphav", "skog"];
4
+ export declare const textWrapValues: readonly ["wrap", "balance", "pretty", "nowrap"];
5
+ export declare const textTransformValues: readonly ["none", "capitalize", "uppercase", "lowercase"];
6
+ export declare const textAlignValues: readonly ["left", "center", "right", "justify"];
7
+ export type TextProps = Pick<ParagraphProps, 'weight' | 'data-color-subtle' | 'data-size' | 'size'> & Omit<HTMLAttributes<HTMLSpanElement>, 'color'> & {
8
+ ['data-color']?: (typeof colorValues)[number];
9
+ wrap?: (typeof textWrapValues)[number];
10
+ transform?: (typeof textTransformValues)[number];
11
+ align?: (typeof textAlignValues)[number];
12
+ };
13
+ export declare const Text: ({ weight, "data-color-subtle": colorSubtle, ["data-color"]: color, wrap, transform, align, className, style, children, ...props }: TextProps) => React.JSX.Element;
@@ -0,0 +1,89 @@
1
+ import type { StoryFn, StoryObj } from '@storybook/react-vite';
2
+ import { Text, TextProps } from '~/main';
3
+ declare const meta: {
4
+ title: string;
5
+ parameters: {
6
+ docs: {
7
+ description: {
8
+ component: string;
9
+ };
10
+ };
11
+ };
12
+ component: ({ weight, "data-color-subtle": colorSubtle, ["data-color"]: color, wrap, transform, align, className, style, children, ...props }: TextProps) => React.JSX.Element;
13
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
14
+ tags: string[];
15
+ argTypes: {
16
+ 'data-size': {
17
+ control: "select";
18
+ options: string[];
19
+ table: {
20
+ defaultValue: {
21
+ summary: string;
22
+ };
23
+ };
24
+ };
25
+ weight: {
26
+ control: "select";
27
+ options: (string | undefined)[];
28
+ table: {
29
+ defaultValue: {
30
+ summary: string;
31
+ };
32
+ };
33
+ };
34
+ "data-color": {
35
+ control: "select";
36
+ options: ("info" | "warning" | "hav" | "stein" | "gress" | "sol" | "lyng" | "himmel" | "sand" | "fyr" | "dyphav" | "skog" | "primary" | "accent" | "neutral" | "extra1" | "extra2" | "success" | "danger" | "focus" | undefined)[];
37
+ table: {
38
+ defaultValue: {
39
+ summary: string;
40
+ };
41
+ };
42
+ };
43
+ 'data-color-subtle': {
44
+ control: "boolean";
45
+ table: {
46
+ defaultValue: {
47
+ summary: string;
48
+ };
49
+ };
50
+ };
51
+ wrap: {
52
+ control: "select";
53
+ options: ("wrap" | "nowrap" | "balance" | "pretty" | undefined)[];
54
+ table: {
55
+ defaultValue: {
56
+ summary: string;
57
+ };
58
+ };
59
+ };
60
+ transform: {
61
+ control: "select";
62
+ options: ("none" | "capitalize" | "lowercase" | "uppercase" | undefined)[];
63
+ table: {
64
+ defaultValue: {
65
+ summary: string;
66
+ };
67
+ };
68
+ };
69
+ align: {
70
+ control: "select";
71
+ options: ("center" | "justify" | "left" | "right" | undefined)[];
72
+ table: {
73
+ defaultValue: {
74
+ summary: string;
75
+ };
76
+ };
77
+ };
78
+ };
79
+ };
80
+ export default meta;
81
+ type Story = StoryObj<typeof meta>;
82
+ export declare const Preview: Story;
83
+ export declare const Sizes: StoryFn<typeof Text>;
84
+ export declare const Weights: StoryFn<typeof Text>;
85
+ export declare const Colors: StoryFn<typeof Text>;
86
+ export declare const TextWrap: StoryFn<typeof Text>;
87
+ export declare const TextTransform: StoryFn<typeof Text>;
88
+ export declare const TextAlign: StoryFn<typeof Text>;
89
+ export declare const Examples: StoryFn<typeof Text>;
@@ -1,4 +1,4 @@
1
- import { InputSize } from '~/utils/input/input';
1
+ import { InputSize } from '~/main';
2
2
  export interface DateTimePickerProps {
3
3
  className?: string;
4
4
  optional?: boolean | string | undefined;
@@ -14,5 +14,6 @@ export interface DateTimePickerProps {
14
14
  maxDate?: Date;
15
15
  size?: InputSize;
16
16
  disabled?: boolean;
17
+ readOnly?: boolean;
17
18
  }
18
19
  export declare const DateTimePicker: ({ size, className, label, loading, required, optional, onChange, value, minDate, maxDate, ...props }: DateTimePickerProps) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import type { StoryObj } from '@storybook/react-vite';
2
2
  import { DateTimePickerProps } from './DateTimePicker';
3
+ import { InputSize } from '~/utils/input/input';
3
4
  declare const meta: {
4
5
  title: string;
5
6
  component: (props: DateTimePickerProps) => React.JSX.Element;
@@ -16,11 +17,17 @@ declare const meta: {
16
17
  onChange?: ((date: Date | undefined) => void) | undefined;
17
18
  minDate?: Date | undefined;
18
19
  maxDate?: Date | undefined;
19
- size?: import("../../../main").InputSize | undefined;
20
+ size?: InputSize | undefined;
20
21
  disabled?: boolean | undefined;
22
+ readOnly?: boolean | undefined;
21
23
  }>) => React.JSX.Element))[];
22
24
  tags: string[];
23
- argTypes: {};
25
+ argTypes: {
26
+ size: {
27
+ control: "select";
28
+ options: InputSize[];
29
+ };
30
+ };
24
31
  };
25
32
  export default meta;
26
33
  type Story = StoryObj<typeof meta>;
@@ -35,3 +42,4 @@ export declare const WithMinDate: Story;
35
42
  export declare const WithMaxDate: Story;
36
43
  export declare const WithMinAndMaxDate: Story;
37
44
  export declare const Disabled: Story;
45
+ export declare const ReadOnly: Story;
@@ -3,8 +3,8 @@ export interface DatepickerProps {
3
3
  className?: string;
4
4
  loading?: boolean;
5
5
  size?: InputSize;
6
- optional?: boolean | string | undefined;
7
- required?: boolean | string | undefined;
6
+ optional?: boolean | string;
7
+ required?: boolean | string;
8
8
  label: string;
9
9
  description?: string;
10
10
  error?: string;
@@ -14,5 +14,6 @@ export interface DatepickerProps {
14
14
  minDate?: Date;
15
15
  maxDate?: Date;
16
16
  disabled?: boolean;
17
+ readOnly?: boolean;
17
18
  }
18
19
  export declare const Datepicker: ({ size, className, label, loading, required, optional, onChange, value, minDate, maxDate, ...props }: DatepickerProps) => React.JSX.Element;
@@ -1,14 +1,15 @@
1
1
  import type { StoryObj } from '@storybook/react-vite';
2
2
  import { DatepickerProps } from './Datepicker';
3
+ import { InputSize } from '~/utils/input/input';
3
4
  declare const meta: {
4
5
  title: string;
5
6
  component: (props: DatepickerProps) => React.JSX.Element;
6
7
  decorators: (((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element) | ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
7
8
  className?: string | undefined;
8
9
  loading?: boolean | undefined;
9
- size?: import("../../../main").InputSize | undefined;
10
- optional?: boolean | string | undefined | undefined;
11
- required?: boolean | string | undefined | undefined;
10
+ size?: InputSize | undefined;
11
+ optional?: boolean | string | undefined;
12
+ required?: boolean | string | undefined;
12
13
  label: string;
13
14
  description?: string | undefined;
14
15
  error?: string | undefined;
@@ -18,9 +19,15 @@ declare const meta: {
18
19
  minDate?: Date | undefined;
19
20
  maxDate?: Date | undefined;
20
21
  disabled?: boolean | undefined;
22
+ readOnly?: boolean | undefined;
21
23
  }>) => React.JSX.Element))[];
22
24
  tags: string[];
23
- argTypes: {};
25
+ argTypes: {
26
+ size: {
27
+ control: "select";
28
+ options: InputSize[];
29
+ };
30
+ };
24
31
  };
25
32
  export default meta;
26
33
  type Story = StoryObj<typeof meta>;
@@ -35,3 +42,4 @@ export declare const WithMinDate: Story;
35
42
  export declare const WithMaxDate: Story;
36
43
  export declare const WithMinAndMaxDate: Story;
37
44
  export declare const Disabled: Story;
45
+ export declare const ReadOnly: Story;
@@ -0,0 +1,19 @@
1
+ import { InputSize } from '~/main';
2
+ export interface TimePickerProps {
3
+ className?: string;
4
+ loading?: boolean;
5
+ size?: InputSize;
6
+ optional?: boolean | string;
7
+ required?: boolean | string;
8
+ label: string;
9
+ description?: string;
10
+ error?: string;
11
+ onBlur?: () => void;
12
+ value: Date | undefined;
13
+ onChange?: (date: Date | undefined) => void;
14
+ minTime?: Date;
15
+ maxTime?: Date;
16
+ disabled?: boolean;
17
+ readOnly?: boolean;
18
+ }
19
+ export declare const TimePicker: ({ size, className, label, loading, required, optional, onChange, value, minTime, maxTime, ...props }: TimePickerProps) => React.JSX.Element;
@@ -0,0 +1,42 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ import { TimePickerProps } from './TimePicker';
3
+ import { InputSize } from '~/utils/input/input';
4
+ declare const meta: {
5
+ title: string;
6
+ component: (props: TimePickerProps) => React.JSX.Element;
7
+ decorators: (((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element) | ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
8
+ className?: string | undefined;
9
+ loading?: boolean | undefined;
10
+ size?: InputSize | undefined;
11
+ optional?: boolean | string | undefined;
12
+ required?: boolean | string | undefined;
13
+ label: string;
14
+ description?: string | undefined;
15
+ error?: string | undefined;
16
+ onBlur?: (() => void) | undefined;
17
+ value: Date | undefined;
18
+ onChange?: ((date: Date | undefined) => void) | undefined;
19
+ minTime?: Date | undefined;
20
+ maxTime?: Date | undefined;
21
+ disabled?: boolean | undefined;
22
+ readOnly?: boolean | undefined;
23
+ }>) => React.JSX.Element))[];
24
+ tags: string[];
25
+ argTypes: {
26
+ size: {
27
+ control: "select";
28
+ options: InputSize[];
29
+ };
30
+ };
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Default: Story;
35
+ export declare const WithoutDescription: Story;
36
+ export declare const WithValue: Story;
37
+ export declare const Optional: Story;
38
+ export declare const OptionalText: Story;
39
+ export declare const Required: Story;
40
+ export declare const WithError: Story;
41
+ export declare const Disabled: Story;
42
+ export declare const ReadOnly: Story;
@@ -1,7 +1,7 @@
1
1
  import type { StoryFn } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ material, indicator, indicatorPosition, className, size, title, background, }: import("~/components/kystverket/Icon/icon").MaterialIconProps) => React.JSX.Element;
4
+ component: ({ material, indicator, indicatorPosition, className, size, title, background, }: import("~/main").MaterialIconProps) => React.JSX.Element;
5
5
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
6
6
  tags: string[];
7
7
  argTypes: {};
@@ -1,2 +1,2 @@
1
- export declare const iconIdList: readonly ["add_box", "add_location_alt", "add_location", "add_notes", "add", "adjust", "air", "alternate_email", "anchor", "apps", "archive", "arrow_back", "arrow_downward", "arrow_forward", "arrow_right_alt", "arrow_upward", "article", "assignment", "attach_email", "attach_file", "autorenew", "backspace", "backup", "book_4", "bottom_panel_close", "bottom_panel_open", "cached", "calendar_month", "change_history", "chat_add_on", "chat_bubble", "chat", "check_circle", "check", "chevron_left", "chevron_right", "circle", "close", "cloud_alert", "cloud_done", "code_blocks", "comment", "compare_arrows", "compare", "content_copy", "conversation", "copy_all", "cycle", "dark_mode", "data_table", "delete_history", "delete", "description", "difference", "directions_boat", "directory_sync", "distance", "document_search", "domain", "download", "drafts", "edit_document", "edit_location_alt", "edit_location", "edit_square", "edit", "error", "event", "explore_nearby", "explore", "export_notes", "exposure_zero", "favorite", "file_map_stack", "file_map", "file_save", "folder_check_2", "folder_match", "folder_off", "folder_open", "folder_supervised", "folder", "format_align_center", "format_align_justify", "format_align_left", "format_align_right", "format_bold", "format_italic", "format_list_bulleted", "format_list_numbered", "format_size", "forum", "forward_to_inbox", "forward", "globe_uk", "groups", "history_off", "history_toggle_off", "history", "image", "inbox", "info_i", "info", "keep_off", "keep", "keyboard_arrow_down", "keyboard_arrow_up", "language", "layers", "left_panel_close", "left_panel_open", "light_mode", "lightbulb", "link", "location_chip", "lock", "login", "logout", "mail_shield", "mail", "manage_history", "manage_search", "map_pin_heart", "map", "mark_as_unread", "mark_chat_read", "mark_chat_unread", "mark_email_read", "mark_email_unread", "match_case", "menu_open", "menu", "mode_cool", "more_vert", "move_to_inbox", "move", "note_stack_add", "note_stack", "notification_add", "numbers", "open_in_new", "pan_zoom", "pending_actions", "person_add", "person_pin_circle", "person_pin", "person", "photo_camera", "picture_as_pdf", "pin_drop", "pin_history", "question_exchange", "radio_button_checked", "radio_button_unchecked", "redo", "reply_all", "reply", "right_panel_close", "right_panel_open", "sailing", "save", "send_and_archive", "send", "settings_input_antenna", "settings", "severe_cold", "sort", "source_environment", "splitscreen_landscape", "stacked_email", "stylus", "sync", "text_compare", "text_snippet", "timeline", "top_panel_close", "top_panel_open", "tsunami", "undo", "unknown_document", "upload", "vertical_align_bottom", "vertical_align_top", "video_library", "videocam", "view_list", "visibility", "vital_signs", "warning", "water", "waves", "zoom_in_map", "zoom_out_map"];
1
+ export declare const iconIdList: readonly ["add_box", "add_location_alt", "add_location", "add_notes", "add", "adjust", "air", "alternate_email", "anchor", "apps", "archive", "arrow_back", "arrow_downward", "arrow_forward", "arrow_right_alt", "arrow_upward", "article", "assignment", "attach_email", "attach_file", "autorenew", "backspace", "backup", "book_4", "bottom_panel_close", "bottom_panel_open", "cached", "calendar_month", "change_history", "chat_add_on", "chat_bubble", "chat", "check_circle", "check", "chevron_left", "chevron_right", "circle", "close", "cloud_alert", "cloud_done", "code_blocks", "comment", "compare_arrows", "compare", "content_copy", "conversation", "copy_all", "cycle", "dark_mode", "data_table", "delete_history", "delete", "description", "difference", "directions_boat", "directory_sync", "distance", "document_search", "domain", "download", "drafts", "edit_document", "edit_location_alt", "edit_location", "edit_square", "edit", "error", "event", "explore_nearby", "explore", "export_notes", "exposure_zero", "favorite", "file_map_stack", "file_map", "file_save", "folder_check_2", "folder_match", "folder_off", "folder_open", "folder_supervised", "folder", "format_align_center", "format_align_justify", "format_align_left", "format_align_right", "format_bold", "format_italic", "format_list_bulleted", "format_list_numbered", "format_size", "forum", "forward_to_inbox", "forward", "globe_uk", "groups", "history_off", "history_toggle_off", "history", "image", "inbox", "info_i", "info", "keep_off", "keep", "keyboard_arrow_down", "keyboard_arrow_up", "language", "layers", "left_panel_close", "left_panel_open", "light_mode", "lightbulb", "link", "location_chip", "lock", "login", "logout", "mail_shield", "mail", "manage_history", "manage_search", "map_pin_heart", "map", "mark_as_unread", "mark_chat_read", "mark_chat_unread", "mark_email_read", "mark_email_unread", "match_case", "menu_open", "menu", "mode_cool", "more_vert", "move_to_inbox", "move", "note_stack_add", "note_stack", "notification_add", "numbers", "open_in_new", "pan_zoom", "pending_actions", "person_add", "person_pin_circle", "person_pin", "person", "photo_camera", "picture_as_pdf", "pin_drop", "pin_history", "question_exchange", "radio_button_checked", "radio_button_unchecked", "redo", "reply_all", "reply", "right_panel_close", "right_panel_open", "sailing", "save", "schedule", "send_and_archive", "send", "settings_input_antenna", "settings", "severe_cold", "sort", "source_environment", "splitscreen_landscape", "stacked_email", "stylus", "sync", "text_compare", "text_snippet", "timeline", "top_panel_close", "top_panel_open", "tsunami", "undo", "unknown_document", "upload", "vertical_align_bottom", "vertical_align_top", "video_library", "videocam", "view_list", "visibility", "vital_signs", "warning", "water", "waves", "zoom_in_map", "zoom_out_map"];
2
2
  export type IconId = (typeof iconIdList)[number];
@@ -1,7 +1,7 @@
1
1
  import type { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ strong, size, className, children }: import("./typography").AccentTypographyProps) => React.JSX.Element;
4
+ component: ({ strong, weight, size, className, children }: import("./typography").AccentTypographyProps) => React.JSX.Element;
5
5
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
6
6
  tags: string[];
7
7
  argTypes: {};
@@ -1,26 +1,29 @@
1
1
  import { ReactNode } from 'react';
2
+ import { TypographyWeight } from './typography.util';
3
+ import { ParagraphProps } from '~/components/designsystemet/Paragraph/Paragraph';
2
4
  export interface TypographyProps {
3
5
  className?: string;
4
6
  children?: ReactNode | undefined;
5
7
  }
6
- export type BodyTypographyProps = TypographyProps & {
7
- size?: 'sm' | 'md' | 'lg' | 'xl';
8
- strong?: boolean;
9
- inline?: boolean;
10
- };
8
+ export type BodyTypographyProps = ParagraphProps;
11
9
  export type AccentTypographyProps = TypographyProps & {
12
10
  size?: 'sm' | 'md';
11
+ /** @deprecated Use `weight="medium"` instead. */
13
12
  strong?: boolean;
13
+ weight?: TypographyWeight;
14
14
  };
15
15
  export type LabelTypographyProps = TypographyProps & {
16
16
  size?: 'sm' | 'md' | 'lg' | 'xl';
17
+ /** @deprecated Use `weight="medium"` instead. */
17
18
  strong?: boolean;
19
+ weight?: TypographyWeight;
18
20
  inline?: boolean;
19
21
  };
20
- export declare const Body: ({ inline, strong, size, className, children }: BodyTypographyProps) => React.JSX.Element;
21
- export declare const Accent: ({ strong, size, className, children }: AccentTypographyProps) => React.JSX.Element;
22
+ /** @deprecated Replaced by Paragraph, and extended props in Text component*/
23
+ export declare const Body: ({ size, strong, weight, "data-color-subtle": colorSubtle, className, children, ...props }: ParagraphProps) => React.JSX.Element;
24
+ export declare const Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => React.JSX.Element;
22
25
  export declare const Typography: {
23
- Body: ({ inline, strong, size, className, children }: BodyTypographyProps) => React.JSX.Element;
24
- Accent: ({ strong, size, className, children }: AccentTypographyProps) => React.JSX.Element;
25
- Label: ({ strong, size, className, children, inline }: LabelTypographyProps) => React.JSX.Element;
26
+ Body: ({ size, strong, weight, "data-color-subtle": colorSubtle, className, children, ...props }: ParagraphProps) => React.JSX.Element;
27
+ Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => React.JSX.Element;
28
+ Label: ({ strong, weight, size, className, children, inline }: LabelTypographyProps) => React.JSX.Element;
26
29
  };
@@ -1,7 +1,7 @@
1
1
  import type { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ strong, size, className, children, inline }: import("./typography").LabelTypographyProps) => React.JSX.Element;
4
+ component: ({ strong, weight, size, className, children, inline }: import("./typography").LabelTypographyProps) => React.JSX.Element;
5
5
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
6
6
  tags: string[];
7
7
  argTypes: {};
@@ -1,14 +1,17 @@
1
1
  export type TypographyPrefix = 'body' | 'accent' | 'label';
2
2
  export type AllSizes = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
3
3
  export type TypographyColor = 'accent' | 'neutral';
4
+ export type TypographyWeight = 'regular' | 'medium' | 'semibold';
4
5
  type BuildTypographyProps = {
5
6
  type: TypographyPrefix;
6
7
  size?: AllSizes;
8
+ /** @deprecated Use `weight="medium"` instead. */
7
9
  strong?: boolean;
10
+ weight?: TypographyWeight;
8
11
  inline?: boolean;
9
12
  color?: TypographyColor;
10
13
  margin?: boolean;
11
14
  className?: string;
12
15
  };
13
- export declare const buildTypographyClasses: ({ type, size, strong, inline, className, }: BuildTypographyProps) => string;
16
+ export declare const buildTypographyClasses: ({ type, size, strong, weight, inline, className, }: BuildTypographyProps) => string;
14
17
  export {};
@@ -28,6 +28,7 @@ export type { KyvSpinnerProps } from './components/kystverket/KyvSpinner/KyvSpin
28
28
  export { default as LabelContent, type LabelContentProps } from './components/kystverket/LabelContent/labelContent';
29
29
  export { default as Icon } from './components/kystverket/Icon/icon';
30
30
  export type { IconId } from './components/kystverket/Icon/icon.types';
31
+ export type { MaterialIconProps } from './components/kystverket/Icon/icon';
31
32
  export * from './components/kystverket/Image/svgImage';
32
33
  export { default as Skillingsbuoye } from './components/kystverket/Skillingsbuoye/skillingsbuoye';
33
34
  export { Body, Accent, Typography } from './components/kystverket/Typography/typography';
@@ -46,8 +47,9 @@ export { Header } from './components/kystverket/Header/Header';
46
47
  export type { HeaderProps } from './components/kystverket/Header/Header';
47
48
  export { HeaderContext, ApplicationHeaderContext } from './components/kystverket/Header/headerContext';
48
49
  export type { HeaderContextProps, ApplicationHeaderContextProps } from './components/kystverket/Header/headerContext';
49
- export { Datepicker, type DatepickerProps } from './components/kystverket/Datepicker/Datepicker';
50
- export { DateTimePicker, type DateTimePickerProps } from './components/kystverket/DateTimePicker/DateTimePicker';
50
+ export { Datepicker, type DatepickerProps } from './components/kystverket/DateAndTimePickers/Datepicker/Datepicker';
51
+ export { DateTimePicker, type DateTimePickerProps, } from './components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker';
52
+ export { TimePicker, type TimePickerProps } from './components/kystverket/DateAndTimePickers/TimePicker/TimePicker';
51
53
  export { FileUploader, type FileUploaderProps, type ExistingFilesProviderItem, } from './components/kystverket/FileUploader/FileUploader';
52
54
  export { FileUploaderContext, type FileUploaderContextProps, } from './components/kystverket/FileUploader/FileUploader.context';
53
55
  export { FileRetrieverContext, type FileRetrieverContextProps, } from './components/kystverket/FileUploader/FileRetriever.context';
@@ -81,6 +83,10 @@ export { default as Tag } from './components/designsystemet/Tag/Tag';
81
83
  export type { TagProps } from './components/designsystemet/Tag/Tag';
82
84
  export { Link } from './components/designsystemet/Link/Link';
83
85
  export type { LinkProps } from './components/designsystemet/Link/Link';
86
+ export { default as Paragraph } from './components/designsystemet/Paragraph/Paragraph';
87
+ export type { ParagraphProps } from './components/designsystemet/Paragraph/Paragraph';
88
+ export { Text } from './components/designsystemet/Text/Text';
89
+ export type { TextProps } from './components/designsystemet/Text/Text';
84
90
  export { default as Table } from './components/designsystemet/Table/Table';
85
91
  export { Avatar } from './components/designsystemet/Avatar/Avatar';
86
92
  export type { AvatarProps } from './components/designsystemet/Avatar/Avatar';
@@ -130,8 +136,6 @@ export type { ListItemProps, ListOrderedProps, ListUnorderedProps } from '@digdi
130
136
  export { List, ListItem, ListOrdered, ListUnordered } from '@digdir/designsystemet-react';
131
137
  export type { PaginationButtonProps, PaginationItemProps, PaginationListProps, PaginationProps, } from '@digdir/designsystemet-react';
132
138
  export { Pagination, PaginationButton, PaginationItem, PaginationList } from '@digdir/designsystemet-react';
133
- export type { ParagraphProps } from '@digdir/designsystemet-react';
134
- export { Paragraph } from '@digdir/designsystemet-react';
135
139
  export type { PopoverProps, PopoverTriggerContextProps, PopoverTriggerProps } from '@digdir/designsystemet-react';
136
140
  export { Popover, PopoverTrigger, PopoverTriggerContext } from '@digdir/designsystemet-react';
137
141
  export type { RadioProps } from '@digdir/designsystemet-react';