@kystverket/styrbord 1.4.2 → 1.4.3

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.
@@ -4,8 +4,9 @@ export type ButtonProps = {
4
4
  variant?: 'filled' | 'subtle' | 'outline' | 'ghost' | 'dashed';
5
5
  color?: 'primary' | 'neutral' | 'danger';
6
6
  size?: 'sm' | 'md' | 'lg';
7
+ disabled?: boolean;
7
8
  text?: string;
8
9
  href?: string;
9
10
  target?: string;
10
- } & Omit<DsButtonProps, 'variant' | 'data-color' | 'data-size'>;
11
+ } & Omit<DsButtonProps, 'variant' | 'data-color' | 'data-size' | 'disabled'>;
11
12
  export declare const Button: FC<ButtonProps>;
@@ -30,3 +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;
@@ -0,0 +1,43 @@
1
+ import type { StoryObj } from '@storybook/react-vite';
2
+ type DataColor = 'primary' | 'neutral' | 'danger';
3
+ type DataColorSchemes = 'light' | 'dark';
4
+ type StoryArgs = {
5
+ dataColor: DataColor;
6
+ dataColorScheme: DataColorSchemes;
7
+ };
8
+ declare const meta: {
9
+ title: string;
10
+ tags: string[];
11
+ component: ({ dataColor, dataColorScheme }: StoryArgs) => React.JSX.Element;
12
+ args: {
13
+ dataColor: "primary";
14
+ dataColorScheme: "light";
15
+ };
16
+ argTypes: {
17
+ dataColor: {
18
+ options: DataColor[];
19
+ control: {
20
+ type: "inline-radio";
21
+ };
22
+ description: string;
23
+ };
24
+ dataColorScheme: {
25
+ options: DataColorSchemes[];
26
+ control: {
27
+ type: "inline-radio";
28
+ };
29
+ description: string;
30
+ };
31
+ };
32
+ parameters: {
33
+ docs: {
34
+ description: {
35
+ component: string;
36
+ };
37
+ };
38
+ };
39
+ render: (args: StoryArgs) => React.JSX.Element;
40
+ };
41
+ export default meta;
42
+ type Story = StoryObj<typeof meta>;
43
+ export declare const AllCollectionTokens: Story;