|
1 | | -import { Meta, StoryObj } from '@storybook/react'; |
2 | | -import { Link } from '@nl-design-system-candidate/link-react/css'; |
| 1 | +import { Meta } from '@storybook/react'; |
| 2 | +import * as Stories from '@nl-design-system-candidate/link-docs/stories/link.stories'; |
| 3 | +import reactMeta from '@nl-design-system-candidate/link-docs/stories/link.react.meta'; |
3 | 4 |
|
4 | 5 | const meta = { |
5 | 6 | id: 'nl-link', |
6 | 7 | title: 'Components/Link/Candidate', |
7 | | - component: Link, |
8 | 8 | parameters: { actions: { disable: true } }, |
9 | | - args: { |
10 | | - children: 'Lees meer', |
11 | | - href: 'https://www.example.com', |
12 | | - }, |
13 | | - argTypes: { |
14 | | - external: { |
15 | | - name: 'external', |
16 | | - type: { name: 'boolean', required: false }, |
17 | | - table: { |
18 | | - category: 'API', |
19 | | - defaultValue: { summary: 'false' }, |
20 | | - }, |
21 | | - }, |
22 | | - href: { |
23 | | - name: 'href', |
24 | | - type: { name: 'string', required: false }, |
25 | | - table: { |
26 | | - category: 'HTML attribute', |
27 | | - defaultValue: { summary: '' }, |
28 | | - }, |
29 | | - }, |
30 | | - 'aria-current': { |
31 | | - name: 'aria-current', |
32 | | - type: { name: 'string', required: false }, |
33 | | - options: [undefined, 'page', 'step', 'location', 'date', 'time', 'true', 'false'], |
34 | | - table: { |
35 | | - category: 'HTML attribute', |
36 | | - defaultValue: { summary: '' }, |
37 | | - }, |
38 | | - }, |
39 | | - hrefLang: { |
40 | | - name: 'hrefLang', |
41 | | - type: { name: 'string', required: false }, |
42 | | - table: { |
43 | | - category: 'HTML attribute', |
44 | | - defaultValue: { summary: '' }, |
45 | | - }, |
46 | | - }, |
47 | | - lang: { |
48 | | - name: 'lang', |
49 | | - type: { name: 'string', required: false }, |
50 | | - table: { |
51 | | - category: 'HTML attribute', |
52 | | - defaultValue: { summary: '' }, |
53 | | - }, |
54 | | - }, |
55 | | - placeholder: { |
56 | | - name: 'placeholder', |
57 | | - type: { name: 'boolean', required: false }, |
58 | | - table: { |
59 | | - category: 'API', |
60 | | - defaultValue: { summary: '' }, |
61 | | - }, |
62 | | - }, |
63 | | - rel: { |
64 | | - name: 'rel', |
65 | | - type: { name: 'string', required: false }, |
66 | | - table: { |
67 | | - category: 'HTML attribute', |
68 | | - defaultValue: { summary: '' }, |
69 | | - }, |
70 | | - }, |
71 | | - target: { |
72 | | - name: 'target', |
73 | | - type: { name: 'string', required: false }, |
74 | | - table: { |
75 | | - category: 'HTML attribute', |
76 | | - defaultValue: { summary: '' }, |
77 | | - }, |
78 | | - }, |
79 | | - }, |
80 | | -} satisfies Meta<typeof Link>; |
| 9 | + ...reactMeta, |
| 10 | +} satisfies Meta; |
81 | 11 |
|
82 | 12 | export default meta; |
83 | | -type Story = StoryObj<typeof meta>; |
84 | 13 |
|
85 | | -export const VoorbeeldTheme: Story = { |
| 14 | +export const VoorbeeldTheme = { |
| 15 | + ...Stories.Link, |
86 | 16 | name: 'Voorbeeld theme', |
87 | 17 | parameters: { |
88 | 18 | theme: 'voorbeeld-theme', |
89 | 19 | }, |
90 | 20 | }; |
91 | | -export const BasisTheme: Story = { |
| 21 | + |
| 22 | +export const BasisTheme = { |
| 23 | + ...Stories.Link, |
92 | 24 | name: 'Start theme', |
93 | 25 | parameters: { |
94 | 26 | theme: 'start-theme', |
|
0 commit comments