@kystverket/styrbord 1.1.28 → 1.2.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.
@@ -333,8 +333,8 @@ export declare const Disabled: {
333
333
  formMethod?: string | undefined | undefined;
334
334
  formNoValidate?: boolean | undefined | undefined;
335
335
  formTarget?: string | undefined | undefined;
336
- accept?: string | undefined | undefined;
337
336
  alt?: string | undefined | undefined;
337
+ accept?: string | undefined | undefined;
338
338
  autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
339
339
  capture?: boolean | "user" | "environment" | undefined | undefined;
340
340
  checked?: boolean | undefined | undefined;
@@ -648,8 +648,8 @@ export declare const Disabled: {
648
648
  formMethod?: string | undefined | undefined;
649
649
  formNoValidate?: boolean | undefined | undefined;
650
650
  formTarget?: string | undefined | undefined;
651
- accept?: string | undefined | undefined;
652
651
  alt?: string | undefined | undefined;
652
+ accept?: string | undefined | undefined;
653
653
  autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
654
654
  capture?: boolean | "user" | "environment" | undefined | undefined;
655
655
  checked?: boolean | undefined | undefined;
@@ -963,8 +963,8 @@ export declare const Disabled: {
963
963
  formMethod?: string | undefined | undefined;
964
964
  formNoValidate?: boolean | undefined | undefined;
965
965
  formTarget?: string | undefined | undefined;
966
- accept?: string | undefined | undefined;
967
966
  alt?: string | undefined | undefined;
967
+ accept?: string | undefined | undefined;
968
968
  autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
969
969
  capture?: boolean | "user" | "environment" | undefined | undefined;
970
970
  checked?: boolean | undefined | undefined;
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import { AlertLevel, TextSize, Width } from './alert.types';
3
- export interface AlertProps {
4
- level: AlertLevel;
5
- size?: TextSize;
2
+ import { AlertProps as DsAlertProps } from '@digdir/designsystemet-react';
3
+ export type AlertProps = DsAlertProps & {
4
+ level?: 'info' | 'success' | 'warning' | 'error';
6
5
  title?: string;
7
6
  text?: string;
8
7
  children?: React.ReactNode;
9
- width?: Width;
8
+ width?: 'content' | 'md' | 'full';
9
+ 'data-size'?: 'sm' | 'md' | 'lg';
10
10
  className?: string;
11
11
  role?: 'status';
12
12
  onDismiss?: () => void;
13
- }
14
- declare const Alert: ({ level, size, width, title, text, className, ...props }: AlertProps) => React.JSX.Element;
13
+ };
14
+ declare const Alert: ({ level, title, "data-size": dataSize, text, width, className, ...props }: AlertProps) => React.JSX.Element;
15
15
  export default Alert;
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { AlertProps } from './alert';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ level, size, width, title, text, className, ...props }: AlertProps) => React.JSX.Element;
5
+ component: ({ level, title, "data-size": dataSize, text, width, className, ...props }: AlertProps) => React.JSX.Element;
6
6
  decorators: ((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element)[];
7
7
  tags: string[];
8
8
  argTypes: {};
@@ -10,8 +10,12 @@ declare const meta: {
10
10
  export default meta;
11
11
  type Story = StoryObj<typeof meta>;
12
12
  export declare const Default: Story;
13
- export declare const Small: Story;
13
+ export declare const Warning: Story;
14
+ export declare const Success: Story;
15
+ export declare const Danger: Story;
16
+ export declare const DangerAlt: Story;
17
+ export declare const SmallSize: Story;
18
+ export declare const NormalSize: Story;
19
+ export declare const LargeSizeWithDismiss: Story;
14
20
  export declare const DefaultKort: Story;
15
- export declare const LargeWithDismiss: Story;
16
- export declare const ClassNameCustomWidth: Story;
17
21
  export declare const WithErrorDismiss: Story;
@@ -1,2 +1,2 @@
1
- export declare const iconIdList: readonly ["add_location_alt", "add_location", "add", "adjust", "anchor", "archive", "arrow_back", "arrow_forward", "arrow_right_alt", "article", "calendar_month", "change_history", "chat", "check_circle", "check", "chevron_left", "chevron_right", "circle", "close", "cloud_alert", "cloud_done", "content_copy", "data_table", "delete", "description", "directions_boat", "distance", "domain", "download", "edit_document", "edit_location_alt", "edit_location", "edit_square", "edit", "error", "event", "explore_nearby", "explore", "favorite", "file_map", "file_save", "format_align_center", "format_align_left", "format_align_right", "globe_uk", "inbox", "info", "keyboard_arrow_down", "keyboard_arrow_up", "layers", "lightbulb", "link", "location_chip", "lock", "login", "logout", "mail", "map_pin_heart", "map", "menu", "mode_cool", "more_vert", "move", "numbers", "open_in_new", "pending_actions", "person_add", "person_pin_circle", "person_pin", "person", "pin_drop", "radio_button_checked", "radio_button_unchecked", "sailing", "save", "send", "settings_input_antenna", "settings", "severe_cold", "source_environment", "stylus", "timeline", "video_library", "videocam", "view_list", "warning", "zoom_in_map", "zoom_out_map", "picture_as_pdf", "pan_zoom"];
1
+ export declare const iconIdList: readonly ["add_location_alt", "add_location", "add", "adjust", "anchor", "archive", "arrow_back", "arrow_forward", "arrow_right_alt", "article", "calendar_month", "change_history", "chat", "check_circle", "check", "chevron_left", "chevron_right", "circle", "close", "cloud_alert", "cloud_done", "content_copy", "data_table", "delete", "description", "directions_boat", "distance", "domain", "download", "edit_document", "edit_location_alt", "edit_location", "edit_square", "edit", "error", "event", "explore_nearby", "explore", "favorite", "file_map", "file_save", "format_align_center", "format_align_left", "format_align_right", "globe_uk", "inbox", "info", "info_i", "keyboard_arrow_down", "keyboard_arrow_up", "layers", "lightbulb", "link", "location_chip", "lock", "login", "logout", "mail", "map_pin_heart", "map", "menu", "mode_cool", "more_vert", "move", "numbers", "open_in_new", "pending_actions", "person_add", "person_pin_circle", "person_pin", "person", "pin_drop", "radio_button_checked", "radio_button_unchecked", "sailing", "save", "send", "settings_input_antenna", "settings", "severe_cold", "source_environment", "stylus", "timeline", "video_library", "videocam", "view_list", "warning", "zoom_in_map", "zoom_out_map", "picture_as_pdf", "pan_zoom"];
2
2
  export type IconId = (typeof iconIdList)[number];
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const Skillingsbuoye: () => React.JSX.Element;
3
+ export default Skillingsbuoye;
@@ -0,0 +1,18 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: () => React.JSX.Element;
5
+ decorators: ((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element)[];
6
+ tags: string[];
7
+ parameters: {
8
+ docs: {
9
+ description: {
10
+ component: string;
11
+ };
12
+ };
13
+ };
14
+ argTypes: {};
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Preview: Story;
@@ -8,7 +8,6 @@ export { default as DeprecatedCard, type CardProps as DeprecatedCardProps } from
8
8
  export { FilePreviewer, type FilePreviewerProps } from './components/kystverket/FilePreviewer';
9
9
  export { default as KyvDivider } from './components/kystverket/KyvDivider/kyvDivider';
10
10
  export { default as Alert } from './components/kystverket/Alert/alert';
11
- export type { AlertLevel } from './components/kystverket/Alert/alert.types';
12
11
  export type { AlertProps } from './components/kystverket/Alert/alert';
13
12
  export { default as Box } from './components/kystverket/Box/box';
14
13
  export type { BoxProps } from './components/kystverket/Box/box';
@@ -18,6 +17,7 @@ export { default as LabelContent, type LabelContentProps } from './components/ky
18
17
  export { default as Icon } from './components/kystverket/Icon/icon';
19
18
  export type { IconId } from './components/kystverket/Icon/icon.types';
20
19
  export * from './components/kystverket/Image/svgImage';
20
+ export { default as Skillingsbuoye } from './components/kystverket/Skillingsbuoye/skillingsbuoye';
21
21
  export { Body, Accent, Typography } from './components/kystverket/Typography/typography';
22
22
  export type { TypographyProps, BodyTypographyProps, AccentTypographyProps, LabelTypographyProps, } from './components/kystverket/Typography/typography';
23
23
  export { default as BorderedToggleGroup } from './components/kystverket/BorderedToggleGroup/borderedToggleGroup';