Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/utrecht paragraph #13

Merged
merged 2 commits into from
May 14, 2024
Merged
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
63 changes: 63 additions & 0 deletions packages/storybook/src/css-utrecht-paragraph.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/* @license CC0-1.0 */

import type { Meta, StoryObj } from '@storybook/react';
import { Paragraph } from '@utrecht/component-library-react/dist/css-module';
import readme from './documentation/paragraph.md?raw';

const meta = {
title: 'CSS Component/Paragraph',
id: 'css-utrecht-paragraph',
component: Paragraph,
argTypes: {
children: {
name: 'Content',
type: {
name: 'string',
required: true,
},
defaultValue: '',
},
},
args: {
children: '',
},
tags: ['autodocs'],
parameters: {
design: {
type: 'figma',
url: 'https://www.figma.com/design/ck81CE8SNzePi30jCEu7MK/NLDS---Gemeente-Tilburg---Bibliotheek?node-id=150-734&t=nrvRAztL0ecku9kp-0',
},
docs: {
description: {
component: readme,
},
},
},
} satisfies Meta<typeof Paragraph>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
name: 'Paragraph',
args: {
children:
'"Tilburg, gelegen in het zuiden van Nederland, is een levendige stad met een rijke geschiedenis en een bruisende cultuur. Bekend om zijn textielindustrie in het verleden, heeft Tilburg zich ontwikkeld tot een moderne stad vol met kunst, muziek, en culinaire hoogstandjes. Wandel door de sfeervolle straten van de binnenstad en ontdek de vele boetiekjes, gezellige cafés en restaurants. Breng een bezoek aan de indrukwekkende musea, zoals het Textielmuseum of het De Pont Museum voor hedendaagse kunst, waar je kunt genieten van inspirerende tentoonstellingen. Verken het groene landschap rondom Tilburg, met prachtige parken en natuurgebieden zoals de Oude Warande en de Loonse en Drunense Duinen. Of geniet van een avondje uit in een van de vele theaters of concertzalen die de stad te bieden heeft. Met zijn diverse aanbod aan activiteiten en bezienswaardigheden is Tilburg een stad die voor ieder wat wils biedt',
},
};
export const LeadParagraph: Story = {
name: 'Lead paragraph',
args: {
...Default.args,
lead: true,
},
};

export const SmallPrintParagraph: Story = {
name: 'Small print',
args: {
...Default.args,
small: true,
},
};
3 changes: 3 additions & 0 deletions packages/storybook/src/documentation/paragraph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Paragraph

This is a paragraph.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"utrecht": {
"paragraph": {
"color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"font-family": {
"value": "{tilburg.document.font-family}",
"type": "fontFamilies"
},
"font-size": {
"value": "{tilburg.document.font-size}",
"type": "fontSizes"
},
"font-weight": {
"value": "{tilburg.document.font-weight}",
"type": "fontWeights"
},
"line-height": {
"value": "{tilburg.document.line-height}",
"type": "lineHeights"
}
},
"paragraph-lead": {
"color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"font-family": {
"value": "{tilburg.document.font-family}",
"type": "fontFamilies"
},
"font-size": {
"value": "{tilburg.typography.font-size.lg}",
"type": "fontSizes"
},
"font-weight": {
"value": "{tilburg.document.font-weight}",
"type": "fontWeights"
},
"line-height": {
"value": "{tilburg.document.line-height}",
"type": "lineHeights"
}
},
"paragraph-small": {
"color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"font-family": {
"value": "{tilburg.document.font-family}",
"type": "fontFamilies"
},
"font-size": {
"value": "{tilburg.typography.font-size.sm}",
"type": "fontSizes"
},
"font-weight": {
"value": "{tilburg.document.font-weight}",
"type": "fontWeights"
},
"line-height": {
"value": "{tilburg.document.line-height}",
"type": "lineHeights"
}
}
}
}