Skip to content
Open
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
20 changes: 20 additions & 0 deletions packages/theme-toolkit/src/component-stories-candidate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { SkipLink } from '@nl-design-system-candidate/skip-link-react/css';
export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
{
storyId: 'react-nl-code--default',
component: 'nl-code',
group: STORY_GROUPS['CODE'],
name: 'Candidate Code',
render: () => <Code>{'<input type="url" value="https://nldesignsystem.nl">'}</Code>,
detectTokens: {
Expand All @@ -22,6 +24,8 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-code-block--default',
component: 'nl-code-block',
group: STORY_GROUPS['CODE_BLOCK'],
name: 'Candidate Code Block',
render: () => (
<CodeBlock>
Expand Down Expand Up @@ -52,6 +56,8 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-color-sample--default',
component: 'nl-color-sample',
group: STORY_GROUPS['COLOR_SAMPLE'],
name: 'Candidate Color Sample',
render: () => <ColorSample value="#007DAD" />,
detectTokens: {
Expand All @@ -67,6 +73,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-data-badge--default',
component: 'nl-data-badge',
group: STORY_GROUPS['BADGES'],
name: 'Candidate Data Badge',
render: () => <DataBadge>Category 1</DataBadge>,
Expand Down Expand Up @@ -198,6 +205,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--active',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Active',
inline: true,
Expand All @@ -212,6 +220,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--default',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link',
inline: true,
Expand All @@ -228,6 +237,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--hover',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Hover',
state: true,
Expand All @@ -243,6 +253,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--placeholder',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Placeholder',
state: true,
Expand All @@ -254,6 +265,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--visited',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Visited',
state: true,
Expand All @@ -269,6 +281,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--current',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Current',
state: true,
Expand All @@ -284,6 +297,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-link--disabled',
component: 'nl-link',
group: STORY_GROUPS['LINK'],
name: 'Candidate Link: Disabled',
state: true,
Expand All @@ -299,6 +313,8 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-mark--default',
component: 'nl-mark',
group: STORY_GROUPS['MARK'],
name: 'Candidate Mark',
render: () => <Mark>Mark my words!</Mark>,
detectTokens: {
Expand All @@ -307,6 +323,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-number-badge--default',
component: 'nl-number-badge',
group: STORY_GROUPS['BADGES'],
name: 'Candidate Number Badge',
render: () => <NumberBadge>42</NumberBadge>,
Expand All @@ -329,6 +346,7 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-paragraph--default',
component: 'nl-paragraph',
group: STORY_GROUPS['PARAGRAPH'],
name: 'Candidate Paragraph',
render: () => <Paragraph>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Paragraph>,
Expand Down Expand Up @@ -363,6 +381,8 @@ export const CANDIDATE_COMPONENT_STORIES: ComponentStory[] = [
},
{
storyId: 'react-nl-skip-link',
component: 'nl-skip-link',
group: STORY_GROUPS['SKIP_LINK'],
name: 'Candidate Skip Link',
render: () => <SkipLink href="main" />,
detectTokens: {
Expand Down
5 changes: 5 additions & 0 deletions packages/theme-toolkit/src/component-stories-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ export const STORY_GROUPS: { [index: string]: string } = {
DATE_INPUT: 'Date Input',
FIGURE: 'Figure',
PASSWORD_INPUT: 'Password Input',
CODE: 'Code',
CODE_BLOCK: 'Code Block',
COLOR_SAMPLE: 'Color Sample',
SKIP_LINK: 'Skip Link',
MARK: 'Mark',
};

export interface ComponentStory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const VoorbeeldTheme = {
},
};

export const BasisTheme = {
export const StartTheme = {
...Stories.Link,
name: 'Start theme',
parameters: {
Expand Down