@kystverket/styrbord 1.5.8 → 1.5.9
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,7 +1,10 @@
|
|
|
1
1
|
import { TagProps as DsTagProps } from '@digdir/designsystemet-react';
|
|
2
|
+
import { IconId } from '~/components/kystverket/Icon/icon.types';
|
|
2
3
|
export type TagProps = DsTagProps & {
|
|
3
4
|
bordered?: boolean;
|
|
4
5
|
rounded?: boolean;
|
|
6
|
+
icon?: IconId;
|
|
7
|
+
plainBackground?: boolean;
|
|
5
8
|
};
|
|
6
|
-
declare const Tag: ({ bordered, rounded, className, ...props }: TagProps) => React.JSX.Element;
|
|
9
|
+
declare const Tag: ({ bordered, rounded, plainBackground, icon, children, className, ...props }: TagProps) => React.JSX.Element;
|
|
7
10
|
export default Tag;
|
|
@@ -3,7 +3,7 @@ import type { StoryFn, StoryObj } from '@storybook/react-vite';
|
|
|
3
3
|
type Story = StoryObj<typeof Tag>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ bordered, rounded, className, ...props }: TagProps) => React.JSX.Element;
|
|
6
|
+
component: ({ bordered, rounded, plainBackground, icon, children, className, ...props }: TagProps) => React.JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
8
|
parameters: {
|
|
9
9
|
customStyles: {
|
|
@@ -24,3 +24,9 @@ export declare const Borders: StoryFn<typeof Tag>;
|
|
|
24
24
|
export declare const Rounded: StoryFn<typeof Tag>;
|
|
25
25
|
export declare const RoundedWithSizes: StoryFn<typeof Tag>;
|
|
26
26
|
export declare const RoundedWithBorders: StoryFn<typeof Tag>;
|
|
27
|
+
export declare const WithIcon: Story;
|
|
28
|
+
export declare const PlainBackground: Story;
|
|
29
|
+
export declare const PlainBackgroundRoundedWithIcon: Story;
|
|
30
|
+
export declare const WithIconColors: StoryFn<typeof Tag>;
|
|
31
|
+
export declare const RoundedWithIconColors: StoryFn<typeof Tag>;
|
|
32
|
+
export declare const RoundedWithIconPlainColors: StoryFn<typeof Tag>;
|