@kystverket/styrbord 1.9.4 → 1.9.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.
@@ -0,0 +1 @@
1
+ export { EXPERIMENTAL_AvatarStack as AvatarStack, type AvatarStackProps } from '@digdir/designsystemet-react';
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryFn } from '@storybook/react-vite';
2
+ import { AvatarStack } from '~/main';
3
+ type Story = StoryFn<typeof AvatarStack>;
4
+ declare const meta: Meta<typeof AvatarStack>;
5
+ export default meta;
6
+ export declare const Preview: Story;
7
+ export declare const Sizes: Story;
8
+ export declare const Overlap: Story;
9
+ export declare const Gap: Story;
10
+ export declare const Expandable: Story;
11
+ export declare const WithSuffix: Story;
12
+ export declare const ShapeVariants: Story;
13
+ export declare const ExpandableWithTooltips: Story;
@@ -8,5 +8,6 @@ export type ButtonProps = {
8
8
  text?: string;
9
9
  href?: string;
10
10
  target?: string;
11
+ tooltip?: string;
11
12
  } & Omit<DsButtonProps, 'variant' | 'data-color' | 'data-size' | 'disabled'>;
12
13
  export declare const Button: FC<ButtonProps>;
@@ -30,4 +30,4 @@ export declare const Large: Story;
30
30
  export declare const Loading: Story;
31
31
  export declare const Disabled: Story;
32
32
  export declare const WithIcon: Story;
33
- export declare const IconButton: Story;
33
+ export declare const WithTooltip: Story;
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ import { ButtonProps } from '../Button/Button';
3
+ export type IconButtonProps = Omit<ButtonProps, 'text' | 'icon'> & {
4
+ 'aria-label': string;
5
+ };
6
+ export declare const IconButton: FC<IconButtonProps>;
@@ -0,0 +1,22 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ declare const meta: {
3
+ title: string;
4
+ component: React.FC<import("~/main").IconButtonProps>;
5
+ decorators: ((Story: import("storybook/internal/csf").PartialStoryFn, context: import("storybook/internal/csf").StoryContext) => React.JSX.Element)[];
6
+ tags: string[];
7
+ argTypes: {};
8
+ parameters: {
9
+ docs: {
10
+ description: {
11
+ component: string;
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const Small: Story;
20
+ export declare const Medium: Story;
21
+ export declare const Large: Story;
22
+ export declare const WithTooltip: Story;
@@ -54,6 +54,8 @@ export { default as ClickableCard } from './components/kystverket/ClickableCard/
54
54
  export type { ClickableCardProps, ClickableCardColor, ClickableCardVariant, } from './components/kystverket/ClickableCard/ClickableCard.types';
55
55
  export { Button } from './components/designsystemet/Button/Button';
56
56
  export type { ButtonProps } from './components/designsystemet/Button/Button';
57
+ export { IconButton } from './components/designsystemet/IconButton/IconButton';
58
+ export type { IconButtonProps } from './components/designsystemet/IconButton/IconButton';
57
59
  export { TextInput } from './components/designsystemet/TextInput/TextInput';
58
60
  export type { TextInputProps } from './components/designsystemet/TextInput/TextInput';
59
61
  export { NumberInput } from './components/designsystemet/NumberInput/NumberInput';
@@ -74,6 +76,8 @@ export type { LinkProps } from './components/designsystemet/Link/Link';
74
76
  export { default as Table } from './components/designsystemet/Table/Table';
75
77
  export { Avatar } from './components/designsystemet/Avatar/Avatar';
76
78
  export type { AvatarProps } from './components/designsystemet/Avatar/Avatar';
79
+ export { AvatarStack } from './components/designsystemet/AvatarStack/AvatarStack';
80
+ export type { AvatarStackProps } from './components/designsystemet/AvatarStack/AvatarStack';
77
81
  export { IdProvider, useIdProvider } from './utils/idContext';
78
82
  export { SlotDialog, type SlotDialogProps } from './components/kystverket/SlotDialog/SlotDialog';
79
83
  export { SideSheet, type SideSheetProps } from './components/kystverket/SideSheet/SideSheet';