@kystverket/styrbord 1.20.0 → 2.0.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 (54) hide show
  1. package/README.md +5 -3
  2. package/dist/src/components/designsystemet/Avatar/Avatar.d.ts +10 -2
  3. package/dist/src/components/designsystemet/Avatar/Avatar.helpers.d.ts +10 -0
  4. package/dist/src/components/designsystemet/Avatar/Avatar.stories.d.ts +1 -0
  5. package/dist/src/components/designsystemet/Button/Button.d.ts +23 -2
  6. package/dist/src/components/designsystemet/Button/Button.stories.d.ts +3 -0
  7. package/dist/src/components/designsystemet/Checkbox/Checkbox.stories.d.ts +15 -15
  8. package/dist/src/components/designsystemet/Chip/Chip.stories.d.ts +5 -13
  9. package/dist/src/components/designsystemet/Details/Details.stories.d.ts +2 -1
  10. package/dist/src/components/designsystemet/Dialog/Dialog.d.ts +2 -2
  11. package/dist/src/components/designsystemet/Dialog/Dialog.stories.d.ts +2 -2
  12. package/dist/src/components/designsystemet/NumberInput/NumberInput.d.ts +2 -2
  13. package/dist/src/components/designsystemet/Paragraph/typography.paragraph.stories.d.ts +6 -9
  14. package/dist/src/components/designsystemet/Tag/Tag.d.ts +3 -4
  15. package/dist/src/components/designsystemet/Tag/Tag.stories.d.ts +1 -1
  16. package/dist/src/components/designsystemet/TextArea/TextArea.d.ts +2 -2
  17. package/dist/src/components/designsystemet/TextArea/TextArea.stories.d.ts +1 -1
  18. package/dist/src/components/designsystemet/TextInput/TextInput.d.ts +2 -2
  19. package/dist/src/components/designsystemet/TextInput/TextInput.stories.d.ts +1 -1
  20. package/dist/src/components/kystverket/Alert/alert.d.ts +4 -4
  21. package/dist/src/components/kystverket/Alert/alert.stories.d.ts +2 -1
  22. package/dist/src/components/kystverket/Box/box.d.ts +10 -0
  23. package/dist/src/components/kystverket/ClickableCard/ClickableCard.stories.d.ts +10 -9
  24. package/dist/src/components/kystverket/ClickableCard/ClickableCard.types.d.ts +5 -6
  25. package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.d.ts +2 -2
  26. package/dist/src/components/kystverket/DateAndTimePickers/DateTimePicker/DateTimePicker.stories.d.ts +2 -2
  27. package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.d.ts +2 -2
  28. package/dist/src/components/kystverket/DateAndTimePickers/Datepicker/Datepicker.stories.d.ts +2 -2
  29. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.d.ts +2 -2
  30. package/dist/src/components/kystverket/DateAndTimePickers/TimePicker/TimePicker.stories.d.ts +2 -2
  31. package/dist/src/components/kystverket/Header/Header.d.ts +1 -1
  32. package/dist/src/components/kystverket/Image/svgImage.d.ts +2 -3
  33. package/dist/src/components/kystverket/PageHeading/PageHeading.d.ts +5 -5
  34. package/dist/src/components/kystverket/RichTextArea/richTextArea.stories.d.ts +1 -0
  35. package/dist/src/components/kystverket/SlotDialog/SlotDialog.d.ts +2 -2
  36. package/dist/src/components/kystverket/SlotDialog/SlotDialog.stories.d.ts +1 -1
  37. package/dist/src/components/kystverket/Stepper/stepper.d.ts +1 -1
  38. package/dist/src/components/kystverket/Surface/Surface.d.ts +28 -0
  39. package/dist/src/components/kystverket/Surface/Surface.stories.d.ts +80 -0
  40. package/dist/src/components/kystverket/Surface/Surface.types.d.ts +43 -0
  41. package/dist/src/components/kystverket/Typography/typography.accent.stories.d.ts +1 -1
  42. package/dist/src/components/kystverket/Typography/typography.d.ts +0 -5
  43. package/dist/src/components/kystverket/Typography/typography.label.stories.d.ts +1 -1
  44. package/dist/src/main.d.ts +13 -10
  45. package/dist/src/utils/input/input.d.ts +1 -1
  46. package/dist/style.css +1 -1
  47. package/dist/style.js +2639 -2460
  48. package/dist/style.umd.cjs +7 -7
  49. package/package.json +3 -1
  50. package/dist/src/components/designsystemet/Chip/Chip.d.ts +0 -14
  51. package/dist/src/components/designsystemet/Chip/index.d.ts +0 -36
  52. package/dist/src/components/designsystemet/Paragraph/Paragraph.d.ts +0 -10
  53. package/dist/src/components/designsystemet/Text/Text.d.ts +0 -13
  54. package/dist/src/components/designsystemet/Text/Text.stories.d.ts +0 -89
@@ -7,7 +7,7 @@ declare const meta: {
7
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
8
  className?: string | undefined;
9
9
  loading?: boolean | undefined;
10
- size?: InputSize | undefined;
10
+ width?: InputSize | undefined;
11
11
  optional?: boolean | string | undefined;
12
12
  required?: boolean | string | undefined;
13
13
  label: string;
@@ -23,7 +23,7 @@ declare const meta: {
23
23
  }>) => React.JSX.Element))[];
24
24
  tags: string[];
25
25
  argTypes: {
26
- size: {
26
+ width: {
27
27
  control: "select";
28
28
  options: InputSize[];
29
29
  };
@@ -2,7 +2,7 @@ import { InputSize } from '~/main';
2
2
  export interface TimePickerProps {
3
3
  className?: string;
4
4
  loading?: boolean;
5
- size?: InputSize;
5
+ width?: InputSize;
6
6
  optional?: boolean | string;
7
7
  required?: boolean | string;
8
8
  label: string;
@@ -16,4 +16,4 @@ export interface TimePickerProps {
16
16
  disabled?: boolean;
17
17
  readOnly?: boolean;
18
18
  }
19
- export declare const TimePicker: ({ size, className, label, loading, required, optional, onChange, value, minTime, maxTime, ...props }: TimePickerProps) => React.JSX.Element;
19
+ export declare const TimePicker: ({ width, className, label, loading, required, optional, onChange, value, minTime, maxTime, ...props }: TimePickerProps) => React.JSX.Element;
@@ -7,7 +7,7 @@ declare const meta: {
7
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
8
  className?: string | undefined;
9
9
  loading?: boolean | undefined;
10
- size?: InputSize | undefined;
10
+ width?: InputSize | undefined;
11
11
  optional?: boolean | string | undefined;
12
12
  required?: boolean | string | undefined;
13
13
  label: string;
@@ -23,7 +23,7 @@ declare const meta: {
23
23
  }>) => React.JSX.Element))[];
24
24
  tags: string[];
25
25
  argTypes: {
26
- size: {
26
+ width: {
27
27
  control: "select";
28
28
  options: InputSize[];
29
29
  };
@@ -40,7 +40,7 @@ export interface HeaderProps {
40
40
  type HeaderProfile = {
41
41
  name: string;
42
42
  department?: string;
43
- avatarStyle?: Pick<AvatarProps, 'data-color' | 'data-color-variant' | 'border'>;
43
+ avatarStyle?: Pick<AvatarProps, 'data-color' | 'data-color-variant' | 'border-style'>;
44
44
  };
45
45
  export declare const nameToInitials: (name?: string) => string;
46
46
  export declare function MainLinkItem(props: HeaderLinkItemWithOnClick): React.JSX.Element;
@@ -1,8 +1,7 @@
1
- export declare const svgImageColors: readonly ["primary", "info", "accent", "sand", "neutral", "white"];
2
- export type SvgImageColor = (typeof svgImageColors)[number];
1
+ import { DataColor } from '~/main';
3
2
  export type SvgImageSize = number;
4
3
  export type SvgImageProps = {
5
- 'data-color'?: SvgImageColor;
4
+ 'data-color'?: DataColor;
6
5
  size?: SvgImageSize;
7
6
  className?: string;
8
7
  };
@@ -1,13 +1,13 @@
1
+ import { SurfaceProps } from '~/main';
1
2
  import { ReactNode } from 'react';
2
- import { Spacing } from '../Box/box.types';
3
3
  export interface PageHeadingProps {
4
4
  heading?: string;
5
5
  headingSize?: 'sm' | 'md' | 'lg' | 'xl';
6
6
  aboveSection?: ReactNode;
7
7
  rightSection?: ReactNode;
8
8
  children?: ReactNode;
9
- border?: boolean;
10
- px?: Spacing;
11
- contentWidth?: 'container' | 'full' | 'form' | 'fit';
9
+ underline?: boolean;
10
+ px?: SurfaceProps['px'];
11
+ contentWidth?: SurfaceProps['width'];
12
12
  }
13
- export declare function PageHeading({ children, aboveSection, rightSection, heading, border, headingSize, contentWidth, px, }: PageHeadingProps): React.JSX.Element;
13
+ export declare function PageHeading({ children, aboveSection, rightSection, heading, underline, headingSize, contentWidth, px, }: Readonly<PageHeadingProps>): React.JSX.Element;
@@ -26,6 +26,7 @@ export default meta;
26
26
  type Story = StoryObj<typeof meta>;
27
27
  export declare const Default: Story;
28
28
  export declare const Disabled: Story;
29
+ export declare const WithCodeFormatting: Story;
29
30
  export declare const WithError: Story;
30
31
  export declare const WithBottomToolbar: Story;
31
32
  /**
@@ -9,12 +9,12 @@ export interface SlotDialogProps {
9
9
  style?: CSSProperties;
10
10
  /**Should be enabled with long content */
11
11
  longContent?: boolean;
12
- size?: DialogSize;
12
+ 'max-width'?: DialogSize;
13
13
  title: string;
14
14
  subtitle?: string;
15
15
  children: ReactNode;
16
16
  }
17
- declare function SlotDialogRoot({ title, subtitle, open, onClose, ref, children, longContent, size, style, className, }: Readonly<SlotDialogProps>): React.JSX.Element;
17
+ declare function SlotDialogRoot({ title, subtitle, open, onClose, ref, children, longContent, 'max-width': maxWidth, style, className, }: Readonly<SlotDialogProps>): React.JSX.Element;
18
18
  type SlotDialogComponent = typeof SlotDialogRoot & {
19
19
  Buttons: typeof SlotDialogButtons;
20
20
  };
@@ -2,7 +2,7 @@ import type { StoryFn } from '@storybook/react-vite';
2
2
  import { SlotDialog } from '~/main';
3
3
  declare const _default: {
4
4
  title: string;
5
- component: (({ title, subtitle, open, onClose, ref, children, longContent, size, style, className, }: Readonly<import("~/main").SlotDialogProps>) => React.JSX.Element) & {
5
+ component: (({ title, subtitle, open, onClose, ref, children, longContent, "max-width": maxWidth, style, className, }: Readonly<import("~/main").SlotDialogProps>) => React.JSX.Element) & {
6
6
  Buttons: typeof import("./Buttons/SlotDialogButtons").SlotDialogButtons;
7
7
  };
8
8
  tags: string[];
@@ -7,7 +7,7 @@ export interface StepItem {
7
7
  label: string;
8
8
  icon?: IconId | 'index' | 'auto';
9
9
  'data-color'?: StepItemColor;
10
- style?: 'auto' | 'filled' | 'subtle' | 'outline';
10
+ variant?: 'auto' | 'filled' | 'subtle' | 'outline';
11
11
  onClick?: (item: StepItem) => void;
12
12
  }
13
13
  export interface StepperProps {
@@ -0,0 +1,28 @@
1
+ import { SurfaceSize } from './Surface.types';
2
+ /**
3
+ * A flex container with token-based spacing, colour, border and radius. Replaces `Box`, which is deprecated.
4
+ *
5
+ * Unlike `Box`, every property is opt-in: a bare `<Surface>` is only `display: flex; flex-direction: column`,
6
+ * spacing is a step on the Designsystemet size scale (`4` = `var(--ds-size-4)`), colour follows `data-color`,
7
+ * and all other `div` attributes and a `ref` are passed through.
8
+ */
9
+ declare const Surface: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
10
+ horizontal?: boolean | import("../../../main").ScreenSize;
11
+ gap?: SurfaceSize;
12
+ align?: "normal" | "start" | "center" | "end" | "stretch";
13
+ justify?: "start" | "center" | "end" | "between" | "stretch";
14
+ wrap?: boolean | "reverse";
15
+ grow?: boolean | number;
16
+ shrink?: boolean | number;
17
+ basis?: "auto" | SurfaceSize;
18
+ width?: import("./Surface.types").SurfaceWidth;
19
+ show?: import("../../../main").ScreenSize;
20
+ hide?: import("../../../main").ScreenSize;
21
+ container?: "size" | "inline-size";
22
+ 'data-color'?: import("../../../main").DataColor;
23
+ 'data-color-variant'?: import("./Surface.types").SurfaceColorVariant;
24
+ 'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
25
+ 'border-style'?: import("./Surface.types").SurfaceBorderStyle;
26
+ radius?: "none" | "default" | "sm" | "md" | "lg" | "xl" | "full";
27
+ } & React.RefAttributes<HTMLDivElement>>;
28
+ export default Surface;
@@ -0,0 +1,80 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ import { DataColor } from '~/main';
3
+ declare const meta: {
4
+ title: string;
5
+ component: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "color"> & import("./Surface.types").SurfaceSpacingProps & {
6
+ horizontal?: boolean | import("~/main").ScreenSize;
7
+ gap?: import("~/main").SurfaceSize;
8
+ align?: "normal" | "start" | "center" | "end" | "stretch";
9
+ justify?: "start" | "center" | "end" | "between" | "stretch";
10
+ wrap?: boolean | "reverse";
11
+ grow?: boolean | number;
12
+ shrink?: boolean | number;
13
+ basis?: "auto" | import("~/main").SurfaceSize;
14
+ width?: import("~/main").SurfaceWidth;
15
+ show?: import("~/main").ScreenSize;
16
+ hide?: import("~/main").ScreenSize;
17
+ container?: "size" | "inline-size";
18
+ 'data-color'?: DataColor;
19
+ 'data-color-variant'?: import("~/main").SurfaceColorVariant;
20
+ 'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
21
+ 'border-style'?: import("~/main").SurfaceBorderStyle;
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)[];
25
+ tags: string[];
26
+ argTypes: {
27
+ 'data-color': {
28
+ options: ("info" | "warning" | "lyng" | "hav" | "stein" | "gress" | "sol" | "himmel" | "sand" | "fyr" | "dyphav" | "skog" | "primary" | "accent" | "neutral" | "extra1" | "extra2" | "success" | "danger" | "focus" | undefined)[];
29
+ control: {
30
+ type: "select";
31
+ };
32
+ };
33
+ 'data-color-variant': {
34
+ options: ("base" | "subtle" | "tinted" | undefined)[];
35
+ control: {
36
+ type: "radio";
37
+ };
38
+ };
39
+ 'border-style': {
40
+ options: readonly ["none", "solid", "dashed", "dotted", "double"];
41
+ control: {
42
+ type: "radio";
43
+ };
44
+ };
45
+ gap: {
46
+ options: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 22, 26, 30];
47
+ control: {
48
+ type: "select";
49
+ };
50
+ };
51
+ p: {
52
+ options: (0 | 3 | 1 | 14 | 10 | 11 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 15 | 18 | 22 | 26 | 30 | undefined)[];
53
+ control: {
54
+ type: "select";
55
+ };
56
+ };
57
+ m: {
58
+ options: (0 | 3 | 1 | 14 | 10 | 11 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 12 | 13 | 15 | 18 | 22 | 26 | 30 | undefined)[];
59
+ control: {
60
+ type: "select";
61
+ };
62
+ };
63
+ };
64
+ };
65
+ export default meta;
66
+ type Story = StoryObj<typeof meta>;
67
+ export declare const Default: Story;
68
+ export declare const Horizontal: Story;
69
+ export declare const Gap: Story;
70
+ export declare const HorizontalJustifyEnd: Story;
71
+ export declare const HorizontalJustifyBetween: Story;
72
+ export declare const Spacings: Story;
73
+ export declare const Sizes: Story;
74
+ export declare const DataSize: Story;
75
+ export declare const Colors: Story;
76
+ export declare const BorderStyles: Story;
77
+ export declare const Radius: Story;
78
+ export declare const WrapAndBasis: Story;
79
+ export declare const HorizontalBreakpoints: Story;
80
+ export declare const ShowAndHide: Story;
@@ -0,0 +1,43 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { DataColor } from '~/main';
3
+ import type { ScreenSize } from '~/utils/types';
4
+ /** Steps of the Designsystemet size scale — `4` or `'4'` resolves to `var(--ds-size-4)`. */
5
+ export declare const surfaceSizes: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 22, 26, 30];
6
+ type SurfaceSizeStep = (typeof surfaceSizes)[number];
7
+ export type SurfaceSize = SurfaceSizeStep | `${SurfaceSizeStep}`;
8
+ export declare const surfaceSpacingKeys: readonly ["p", "px", "py", "pt", "pb", "pl", "pr", "m", "mx", "my", "mt", "mb", "ml", "mr"];
9
+ export type SurfaceSpacingKey = (typeof surfaceSpacingKeys)[number];
10
+ export type SurfaceSpacingProps = {
11
+ [K in SurfaceSpacingKey]?: SurfaceSize;
12
+ };
13
+ export declare const surfaceColorVariants: readonly ["subtle", "tinted", "base"];
14
+ export type SurfaceColorVariant = (typeof surfaceColorVariants)[number];
15
+ export declare const surfaceBorderStyles: readonly ["none", "solid", "dashed", "dotted", "double"];
16
+ export type SurfaceBorderStyle = (typeof surfaceBorderStyles)[number];
17
+ export type SurfaceWidth = 'auto' | 'fit' | 'full' | 'container' | 'form' | 'form-sidebar';
18
+ export type SurfaceProps = Omit<HTMLAttributes<HTMLDivElement>, 'color'> & SurfaceSpacingProps & {
19
+ /** Lay children out in a row. A screen size makes it a row from that breakpoint and up. */
20
+ horizontal?: boolean | ScreenSize;
21
+ gap?: SurfaceSize;
22
+ align?: 'normal' | 'start' | 'center' | 'end' | 'stretch';
23
+ justify?: 'start' | 'center' | 'end' | 'between' | 'stretch';
24
+ wrap?: boolean | 'reverse';
25
+ grow?: boolean | number;
26
+ shrink?: boolean | number;
27
+ basis?: 'auto' | SurfaceSize;
28
+ width?: SurfaceWidth;
29
+ show?: ScreenSize;
30
+ hide?: ScreenSize;
31
+ container?: 'size' | 'inline-size';
32
+ /** Gives the surface a background, text and border colour from this family. */
33
+ 'data-color'?: DataColor;
34
+ /**
35
+ * `subtle` = `background-tinted`, `tinted` = `surface-tinted`, `base` = `base-default` with contrast text.
36
+ * Only has an effect together with `data-color`.
37
+ */
38
+ 'data-color-variant'?: SurfaceColorVariant;
39
+ 'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
40
+ 'border-style'?: SurfaceBorderStyle;
41
+ radius?: 'none' | 'default' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
42
+ };
43
+ export {};
@@ -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, weight, size, className, children }: import("./typography").AccentTypographyProps) => React.JSX.Element;
4
+ component: ({ strong, weight, size, className, children }: import("~/main").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,11 +1,9 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { TypographyWeight } from './typography.util';
3
- import { ParagraphProps } from '~/components/designsystemet/Paragraph/Paragraph';
4
3
  export interface TypographyProps {
5
4
  className?: string;
6
5
  children?: ReactNode | undefined;
7
6
  }
8
- export type BodyTypographyProps = ParagraphProps;
9
7
  export type AccentTypographyProps = TypographyProps & {
10
8
  size?: 'sm' | 'md';
11
9
  /** @deprecated Use `weight="medium"` instead. */
@@ -19,11 +17,8 @@ export type LabelTypographyProps = TypographyProps & {
19
17
  weight?: TypographyWeight;
20
18
  inline?: boolean;
21
19
  };
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
20
  export declare const Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => React.JSX.Element;
25
21
  export declare const Typography: {
26
- Body: ({ size, strong, weight, "data-color-subtle": colorSubtle, className, children, ...props }: ParagraphProps) => React.JSX.Element;
27
22
  Accent: ({ strong, weight, size, className, children }: AccentTypographyProps) => React.JSX.Element;
28
23
  Label: ({ strong, weight, size, className, children, inline }: LabelTypographyProps) => React.JSX.Element;
29
24
  };
@@ -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, weight, size, className, children, inline }: import("./typography").LabelTypographyProps) => React.JSX.Element;
4
+ component: ({ strong, weight, size, className, children, inline }: import("~/main").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,5 +1,8 @@
1
+ import { StyrbordPaletteColor, StyrbordSemanticColor } from '@kystverket/styrbord-tokens/colors';
1
2
  import './css/index.scss';
2
3
  import '@material-symbols/font-400/outlined.css';
4
+ export type DataColor = StyrbordSemanticColor | StyrbordPaletteColor;
5
+ export type DataColorVariant = 'base' | 'tinted';
3
6
  export type { SupportedLanguage, ScreenSize } from './utils/types';
4
7
  export { AIS_SHIP_TYPES, getShipTypeByAisCode, getShipTypeById } from './data/ais/shipTypes';
5
8
  export type { AisShipType, AisShipTypeEntry, AisShipTypeId, AisCode } from './data/ais/shipTypes';
@@ -21,6 +24,8 @@ export { default as Alert } from './components/kystverket/Alert/alert';
21
24
  export type { AlertProps } from './components/kystverket/Alert/alert';
22
25
  export { default as Box } from './components/kystverket/Box/box';
23
26
  export type { BoxProps } from './components/kystverket/Box/box';
27
+ export { default as Surface } from './components/kystverket/Surface/Surface';
28
+ export type { SurfaceProps, SurfaceSize, SurfaceColorVariant, SurfaceWidth, SurfaceBorderStyle, } from './components/kystverket/Surface/Surface.types';
24
29
  export { default as Stepper } from './components/kystverket/Stepper/stepper';
25
30
  export type { StepperProps } from './components/kystverket/Stepper/stepper';
26
31
  export { default as KyvSpinner } from './components/kystverket/KyvSpinner/KyvSpinner';
@@ -31,8 +36,8 @@ export type { IconId } from './components/kystverket/Icon/icon.types';
31
36
  export type { MaterialIconProps } from './components/kystverket/Icon/icon';
32
37
  export * from './components/kystverket/Image/svgImage';
33
38
  export { default as Skillingsbuoye } from './components/kystverket/Skillingsbuoye/skillingsbuoye';
34
- export { Body, Accent, Typography } from './components/kystverket/Typography/typography';
35
- export type { TypographyProps, BodyTypographyProps, AccentTypographyProps, LabelTypographyProps, } from './components/kystverket/Typography/typography';
39
+ export { Accent, Typography } from './components/kystverket/Typography/typography';
40
+ export type { TypographyProps, AccentTypographyProps, LabelTypographyProps, } from './components/kystverket/Typography/typography';
36
41
  export { default as BorderedToggleGroup } from './components/kystverket/BorderedToggleGroup/borderedToggleGroup';
37
42
  export type { BorderedToggleGroupProps } from './components/kystverket/BorderedToggleGroup/borderedToggleGroup';
38
43
  export { default as BorderedRadioGroup } from './components/kystverket/BorderedRadioGroup/borderedRadioGroup';
@@ -59,7 +64,7 @@ export { default as CardTitle, type CardTitleProps } from './components/designsy
59
64
  export { default as CompactDetails } from './components/kystverket/CompactDetails/CompactDetails';
60
65
  export type { CompactDetailsProps } from './components/kystverket/CompactDetails/CompactDetails.types';
61
66
  export { default as ClickableCard } from './components/kystverket/ClickableCard/ClickableCard';
62
- export type { ClickableCardProps, ClickableCardColor, ClickableCardVariant, } from './components/kystverket/ClickableCard/ClickableCard.types';
67
+ export type { ClickableCardProps } from './components/kystverket/ClickableCard/ClickableCard.types';
63
68
  export { SaksbehandlingShell } from './components/kystverket/SaksbehandlingShell/SaksbehandlingShell';
64
69
  export type { SaksbehandlingShellProps, SaksbehandlingItem, } from './components/kystverket/SaksbehandlingShell/SaksbehandlingShell.types';
65
70
  export { Button } from './components/designsystemet/Button/Button';
@@ -83,13 +88,9 @@ export { default as Tag } from './components/designsystemet/Tag/Tag';
83
88
  export type { TagProps } from './components/designsystemet/Tag/Tag';
84
89
  export { Link } from './components/designsystemet/Link/Link';
85
90
  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';
90
91
  export { default as Table } from './components/designsystemet/Table/Table';
91
92
  export { Avatar } from './components/designsystemet/Avatar/Avatar';
92
- export type { AvatarProps } from './components/designsystemet/Avatar/Avatar';
93
+ export type { AvatarProps, AvatarBoringVariant } from './components/designsystemet/Avatar/Avatar';
93
94
  export { AvatarStack } from './components/designsystemet/AvatarStack/AvatarStack';
94
95
  export type { AvatarStackProps } from './components/designsystemet/AvatarStack/AvatarStack';
95
96
  export { SlotDialog, type SlotDialogProps } from './components/kystverket/SlotDialog/SlotDialog';
@@ -97,8 +98,6 @@ export { SideSheet, type SideSheetProps } from './components/kystverket/SideShee
97
98
  export type { SideSheetSize, SideSheetPlacement, SideSheetLayoutProps, } from './components/kystverket/SideSheet/SideSheet.types';
98
99
  export { Suggestion } from './components/designsystemet/Suggestion/Suggestion';
99
100
  export type { SuggestionProps } from './components/designsystemet/Suggestion/Suggestion';
100
- export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableProps, } from './components/designsystemet/Chip';
101
- export { Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from './components/designsystemet/Chip';
102
101
  export { RovingFocusItem, RovingFocusRoot, omit, useCheckboxGroup, useDebounceCallback, useIsomorphicLayoutEffect, usePagination, useRadioGroup, useSynchronizedAnimation, } from '@digdir/designsystemet-react';
103
102
  export type { Size, UseRadioGroupProps, UseCheckboxGroupProps, UsePaginationProps, MergeRight, LabelRequired, } from '@digdir/designsystemet-react';
104
103
  export type { BadgePositionProps, BadgeProps } from '@digdir/designsystemet-react';
@@ -109,6 +108,8 @@ export type { ComboboxEmptyProps, ComboboxOptionProps, ComboboxProps } from '@di
109
108
  export { Combobox, ComboboxEmpty, ComboboxOption } from '@digdir/designsystemet-react';
110
109
  export type { CardBlockProps, CardProps } from '@digdir/designsystemet-react';
111
110
  export { Card, CardBlock } from '@digdir/designsystemet-react';
111
+ export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableProps, } from '@digdir/designsystemet-react';
112
+ export { ChipCheckbox, ChipRadio, ChipRemovable, Chip, ChipButton } from '@digdir/designsystemet-react';
112
113
  export type { CheckboxProps } from '@digdir/designsystemet-react';
113
114
  export { Checkbox } from '@digdir/designsystemet-react';
114
115
  export type { DetailsContentProps, DetailsProps, DetailsSummaryProps } from '@digdir/designsystemet-react';
@@ -130,6 +131,8 @@ export type { HeadingProps } from '@digdir/designsystemet-react';
130
131
  export { Heading } from '@digdir/designsystemet-react';
131
132
  export type { InputProps } from '@digdir/designsystemet-react';
132
133
  export { Input } from '@digdir/designsystemet-react';
134
+ export type { ParagraphProps } from '@digdir/designsystemet-react';
135
+ export { Paragraph } from '@digdir/designsystemet-react';
133
136
  export type { LabelProps } from '@digdir/designsystemet-react';
134
137
  export { Label } from '@digdir/designsystemet-react';
135
138
  export type { ListItemProps, ListOrderedProps, ListUnorderedProps } from '@digdir/designsystemet-react';
@@ -1,2 +1,2 @@
1
1
  export type InputSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'fit' | 'full';
2
- export declare const inputSizeClass: (size: InputSize) => string;
2
+ export declare const inputWidthClass: (size: InputSize) => string;