@grantbii/design-system 1.0.30 → 1.0.31
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.
package/core/atoms/LinkButton.js
CHANGED
package/package.json
CHANGED
|
@@ -6,6 +6,6 @@ export default meta;
|
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
7
7
|
export declare const Default: Story;
|
|
8
8
|
export declare const Icon: Story;
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
9
|
+
export declare const Closeable: Story;
|
|
10
|
+
export declare const LongText: Story;
|
|
11
11
|
export declare const Everything: Story;
|
|
@@ -24,13 +24,13 @@ export const Icon = {
|
|
|
24
24
|
text: DEFAULT_TEXT,
|
|
25
25
|
},
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const Closeable = {
|
|
28
28
|
args: {
|
|
29
29
|
text: DEFAULT_TEXT,
|
|
30
30
|
onClickClose: ON_CLICK_CLOSE,
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
|
-
export const
|
|
33
|
+
export const LongText = {
|
|
34
34
|
args: {
|
|
35
35
|
text: LONG_TEXT,
|
|
36
36
|
textWidthPixels: 160,
|
|
@@ -5,4 +5,6 @@ declare const meta: Meta<typeof LinkButton>;
|
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof meta>;
|
|
7
7
|
export declare const Default: Story;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const LeftIcon: Story;
|
|
9
|
+
export declare const RightIcon: Story;
|
|
10
|
+
export declare const BothIcons: Story;
|
|
@@ -16,7 +16,23 @@ export const Default = {
|
|
|
16
16
|
target: "_blank",
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
export const
|
|
19
|
+
export const LeftIcon = {
|
|
20
|
+
args: {
|
|
21
|
+
text: "Link",
|
|
22
|
+
href: "https://grantbii.com",
|
|
23
|
+
target: "_blank",
|
|
24
|
+
leftIcon: _jsx(Icons.PlusIcon, { size: 14 }),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const RightIcon = {
|
|
28
|
+
args: {
|
|
29
|
+
text: "Link",
|
|
30
|
+
href: "https://grantbii.com",
|
|
31
|
+
target: "_blank",
|
|
32
|
+
rightIcon: _jsx(Icons.MinusIcon, { size: 14 }),
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export const BothIcons = {
|
|
20
36
|
args: {
|
|
21
37
|
text: "Link",
|
|
22
38
|
href: "https://grantbii.com",
|