@kystverket/styrbord 1.9.5 → 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.
@@ -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';