Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .claude/settings.json

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zou deze niet toevoegen aan de repo.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"permissions": {
"allow": ["Bash(python3 -c ' *)", "Bash(pnpm --filter @nl-design-system-unstable/storybook run build)"]
}
}
3 changes: 3 additions & 0 deletions packages/storybook/config/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ import '@nl-design-system-unstable/noordwijk-design-tokens/dist/index.css';
import '@nl-design-system-unstable/noordwijk-design-tokens/src/font';
import '@nl-design-system-unstable/provincie-zuid-holland-design-tokens/dist/index.css';
import '@nl-design-system-unstable/start-design-tokens/dist/theme.css';
import '@nl-design-system-community/sittard-geleen-design-tokens/src/font.js';
import '@nl-design-system-community/sittard-geleen-design-tokens/dist/theme.css';
import '@nl-design-system-community/sittard-geleen-design-tokens/dist/color-scheme-dark/theme.css';
import '@nl-design-system-unstable/stedebroec-design-tokens/dist/index.css';
import '@nl-design-system-unstable/tilburg-design-tokens/dist/index.css';
import '@nl-design-system-unstable/tubbergen-design-tokens/dist/index.css';
Expand Down
1 change: 1 addition & 0 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@nl-design-system-community/ma-design-tokens": "workspace:*",
"@nl-design-system-community/nora-design-tokens": "workspace:*",
"@nl-design-system-community/purmerend-design-tokens": "workspace:*",
"@nl-design-system-community/sittard-geleen-design-tokens": "workspace:*",
"@nl-design-system-community/voorne-aan-zee-design-tokens": "workspace:*",
"@nl-design-system-community/zaanstad-design-tokens": "workspace:*",
"@nl-design-system-unstable/basis-design-tokens": "workspace:*",
Expand Down
2 changes: 2 additions & 0 deletions packages/theme-toolkit/src/component-stories-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { ReactNode } from 'react';
export const STORY_GROUPS: { [index: string]: string } = {
ACTION_GROUP: 'Action Group',
AVATAR: 'Avatars',
BREADCRUMB_NAV: 'Breadcrumb Nav',
FORM_FIELD: 'Form Field',
ALERT: 'Alerts',
BUTTON_DEFAULT: 'Default Button',
BUTTON_LINK_DEFAULT: 'Link that looks like a button',
Expand Down
36 changes: 36 additions & 0 deletions packages/theme-toolkit/src/component-stories-utrecht.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { ComponentStory, STORY_GROUPS } from './component-stories-util';

import {
Alert,
BreadcrumbNav,
BreadcrumbNavLink,
BreadcrumbNavSeparator,
Button,
LinkButton,
ButtonLink,
Expand All @@ -28,6 +31,7 @@ import {
Checkbox,
// CustomCheckbox ,
// Emphasis,
FormField,
FormFieldDescription,
Fieldset,
FieldsetLegend,
Expand Down Expand Up @@ -2939,6 +2943,18 @@ export const UTRECHT_COMPONENT_STORIES: ComponentStory[] = [
</Fieldset>
),
},
{
storyId: 'react-utrecht-form-field--default',
group: STORY_GROUPS['FORM_FIELD'],
name: 'Utrecht Form Field',
render: () => (
<FormField
label={<FormFieldLabel>Label for form control</FormFieldLabel>}
input={<Textbox />}
description={<FormFieldDescription>Helper text for this field</FormFieldDescription>}
/>
),
},
{
storyId: 'react-utrecht-form-field-description--default',
group: STORY_GROUPS['FORM_FIELD_DESCRIPTION'],
Expand Down Expand Up @@ -3213,6 +3229,26 @@ export const UTRECHT_COMPONENT_STORIES: ComponentStory[] = [
name: 'Utrecht Icon',
render: () => <Icon>→</Icon>,
},
{
storyId: 'react-utrecht-breadcrumb-nav--default',
component: 'utrecht-breadcrumb-nav',
group: STORY_GROUPS['BREADCRUMB_NAV'],
name: 'Utrecht Breadcrumb Nav',
render: () => (
<BreadcrumbNav label="kruimelpad">
{[
{ href: 'https://example.com', label: 'Een' },
{ href: 'https://example.com/a', label: 'Twee' },
{ href: 'https://example.com/a/b', label: 'Drie' },
].map(({ href, label }) => (
<BreadcrumbNavLink key={label} href={href}>
{label}
</BreadcrumbNavLink>
))}
<BreadcrumbNavSeparator />
</BreadcrumbNav>
),
},
{
storyId: 'react-utrecht-action-group--default',
component: 'utrecht-action-group',
Expand Down
Loading