Skip to content

Commit 7311e08

Browse files
eslookCharlotte Gieltjes
andauthored
docs: packages en stories voor form field label beschikbaar (#1035)
Onderdeel van #989 --------- Co-authored-by: Charlotte Gieltjes <charlotte.gieltjes@rebels.io>
1 parent ea437e5 commit 7311e08

File tree

11 files changed

+447
-0
lines changed

11 files changed

+447
-0
lines changed

.changeset/solid-taxes-see.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import type { Meta } from '@storybook/react-vite';
2+
import componentMarkdown from '../../docs/form-field-label-docs/docs/component.md?raw';
3+
import '../../components-css/form-field-label-css/src/form-field-label.scss';
4+
import packageJSON from '../../components-react/form-field-label-react/package.json';
5+
import { FormFieldLabel } from '../../components-react/form-field-label-react/src/form-field-label';
6+
7+
const meta = {
8+
argTypes: {
9+
// Vul aan door developer
10+
},
11+
component: FormFieldLabel,
12+
parameters: {
13+
docs: {
14+
description: {
15+
component: componentMarkdown,
16+
},
17+
},
18+
externalLinks: [
19+
{
20+
name: 'Open op NL Design System',
21+
url: 'https://nldesignsystem.nl/form-field-label',
22+
},
23+
{
24+
name: 'Open op GitHub',
25+
url: packageJSON.homepage,
26+
},
27+
],
28+
},
29+
title: 'Componenten/Form Field Label',
30+
} satisfies Meta<typeof FormFieldLabel>;
31+
32+
export default meta;
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import type { Meta } from '@storybook/react-vite';
2+
import '../../components-css/form-field-label-css/src/form-field-label.scss';
3+
import packageJSON from '../../components-react/form-field-label-react/package.json';
4+
import { FormFieldLabel } from '../../components-react/form-field-label-react/src/form-field-label';
5+
import componentMarkdown from '../../docs/form-field-label-docs/docs/component.md?raw';
6+
import tokens from '../../tokens/form-field-label-tokens/tokens.json';
7+
// import { } from '../src/WcagTests'; // Vul aan door toegankelijkheidsexpert
8+
9+
const meta = {
10+
argTypes: {
11+
// Vul aan door developer
12+
},
13+
component: FormFieldLabel,
14+
parameters: {
15+
docs: {
16+
description: {
17+
component: componentMarkdown,
18+
},
19+
},
20+
externalLinks: [
21+
{
22+
name: 'Open op NL Design System',
23+
url: 'https://nldesignsystem.nl/form-field-label',
24+
},
25+
{
26+
name: 'Open op GitHub',
27+
url: packageJSON.homepage,
28+
},
29+
],
30+
testResult: {
31+
notApplicable: [
32+
// Vul aan door toegankelijkheidsexpert
33+
],
34+
notTested: [
35+
// Vul aan door toegankelijkheidsexpert
36+
],
37+
pass: [],
38+
},
39+
tokens,
40+
},
41+
title: 'Componenten/Form Field Label',
42+
} satisfies Meta<typeof FormFieldLabel>;
43+
44+
export default meta;

packages/storybook/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"@nl-design-system-candidate/color-sample-react": "workspace:*",
3333
"@nl-design-system-candidate/data-badge-docs": "workspace:*",
3434
"@nl-design-system-candidate/data-badge-react": "workspace:*",
35+
"@nl-design-system-candidate/form-field-label-docs": "workspace:*",
36+
"@nl-design-system-candidate/form-field-label-react": "workspace:*",
3537
"@nl-design-system-candidate/heading-docs": "workspace:*",
3638
"@nl-design-system-candidate/heading-react": "workspace:*",
3739
"@nl-design-system-candidate/icon-docs": "workspace:*",
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { Meta } from '@storybook/react-vite';
2+
import packageJSON from '../../components-css/form-field-label-css/package.json';
3+
import { FormFieldLabel as FormFieldLabelComponent } from '@nl-design-system-candidate/form-field-label-react';
4+
import formFieldLabelMeta from '@nl-design-system-candidate/form-field-label-docs/stories/form-field-label.css.meta';
5+
// import * as Stories from '@nl-design-system-candidate/form-field-label-docs/stories/form-field-label.stories';
6+
import { mergeCssMeta } from '../src/helpers/merge-css-meta.js';
7+
import { getExternalLinks } from '../src/helpers/external-links.js';
8+
9+
const externalLinks = getExternalLinks('https://nldesignsystem.nl/form-field-label', packageJSON.homepage);
10+
11+
const meta = {
12+
...mergeCssMeta(formFieldLabelMeta, externalLinks),
13+
title: 'CSS Componenten/Form Field Label',
14+
id: 'css-form-field-label',
15+
} satisfies Meta<typeof FormFieldLabelComponent>;
16+
17+
export default meta;
18+
19+
// export const SomeStory = Stories.SomeStory;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { Meta } from '@storybook/react-vite';
2+
import packageJSON from '../../components-react/form-field-label-react/package.json';
3+
import { FormFieldLabel as FormFieldLabelComponent } from '@nl-design-system-candidate/form-field-label-react';
4+
import formFieldLabelMeta from '@nl-design-system-candidate/form-field-label-docs/stories/form-field-label.react.meta';
5+
// import * as Stories from '@nl-design-system-candidate/form-field-label-docs/stories/form-field-label.stories';
6+
import { getExternalLinks } from '../src/helpers/external-links.js';
7+
8+
const externalLinks = getExternalLinks('https://nldesignsystem.nl/form-field-label', packageJSON.homepage);
9+
10+
const meta = {
11+
...formFieldLabelMeta,
12+
...externalLinks,
13+
title: 'React Componenten/Form Field Label',
14+
id: 'form-field-label',
15+
} satisfies Meta<typeof FormFieldLabelComponent>;
16+
17+
export default meta;
18+
19+
// export const SomeStory = Stories.SomeStory;

0 commit comments

Comments
 (0)