@kystverket/styrbord 1.8.4 → 1.8.6

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.
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { type DialogSize } from '~/main';
2
3
  import { SlotDialogButtons } from '~/components/kystverket/SlotDialog/Buttons/SlotDialogButtons';
3
4
  export interface SlotDialogProps {
4
5
  open?: boolean;
@@ -6,11 +7,12 @@ export interface SlotDialogProps {
6
7
  ref?: React.Ref<HTMLDialogElement>;
7
8
  /**Should be enabled with long content */
8
9
  longContent?: boolean;
10
+ size?: DialogSize;
9
11
  title: string;
10
12
  subtitle?: string;
11
13
  children: ReactNode;
12
14
  }
13
- declare function SlotDialogRoot({ title, subtitle, open, onClose, ref, children, longContent }: SlotDialogProps): React.JSX.Element;
15
+ declare function SlotDialogRoot({ title, subtitle, open, onClose, ref, children, longContent, size, }: Readonly<SlotDialogProps>): React.JSX.Element;
14
16
  type SlotDialogComponent = typeof SlotDialogRoot & {
15
17
  Buttons: typeof SlotDialogButtons;
16
18
  };
@@ -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 }: import("~/main").SlotDialogProps) => React.JSX.Element) & {
5
+ component: (({ title, subtitle, open, onClose, ref, children, longContent, size, }: Readonly<import("~/main").SlotDialogProps>) => React.JSX.Element) & {
6
6
  Buttons: typeof import("./Buttons/SlotDialogButtons").SlotDialogButtons;
7
7
  };
8
8
  tags: string[];
@@ -21,3 +21,4 @@ export declare const WithRef: StoryFn<typeof SlotDialog>;
21
21
  export declare const LotsOfContentWithLongContentProp: StoryFn<typeof SlotDialog>;
22
22
  export declare const NoButtons: StoryFn<typeof SlotDialog>;
23
23
  export declare const MultiplePages: StoryFn<typeof SlotDialog>;
24
+ export declare const Sizes: StoryFn<typeof SlotDialog>;
@@ -89,8 +89,9 @@ export type { ChipButtonProps, ChipCheckboxProps, ChipRadioProps, ChipRemovableP
89
89
  export { Chip, ChipButton, ChipCheckbox, ChipRadio, ChipRemovable } from '@digdir/designsystemet-react';
90
90
  export type { DetailsContentProps, DetailsProps, DetailsSummaryProps } from '@digdir/designsystemet-react';
91
91
  export { Details, DetailsContent, DetailsSummary } from '@digdir/designsystemet-react';
92
- export type { DialogBlockProps, DialogProps, DialogTriggerContextProps, DialogTriggerProps, } from '@digdir/designsystemet-react';
93
- export { Dialog, DialogBlock, DialogTrigger, DialogTriggerContext } from '@digdir/designsystemet-react';
92
+ export type { DialogBlockProps, DialogTriggerContextProps, DialogTriggerProps } from '@digdir/designsystemet-react';
93
+ export { DialogBlock, DialogTrigger, DialogTriggerContext } from '@digdir/designsystemet-react';
94
+ export { Dialog, type DialogProps, type DialogSize } from '~/components/designsystemet/Dialog/Dialog';
94
95
  export type { DividerProps } from '@digdir/designsystemet-react';
95
96
  export { Divider } from '@digdir/designsystemet-react';
96
97
  export type { DropdownButtonProps, DropdownHeadingProps, DropdownItemProps, DropdownListProps, DropdownProps, DropdownTriggerContextProps, } from '@digdir/designsystemet-react';