Skip to content

Commit

Permalink
Add Utrecht Unordered List component
Browse files Browse the repository at this point in the history
  • Loading branch information
markteekman committed May 14, 2024
1 parent 3ed9cd0 commit 0b5485a
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 0 deletions.
57 changes: 57 additions & 0 deletions packages/storybook/src/css-utrecht-unordered-list.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/* @license CC0-1.0 */

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

const meta = {
title: 'CSS Component/Unordered List',
id: 'css-utrecht-unordered-list',
component: UnorderedList,
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=828%3A920&t=Y2YZ0H2902enM7la-1',
},
docs: {
description: {
component: readme,
},
},
},
} satisfies Meta<typeof UnorderedList>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
name: 'Unordered list',
args: {
children: [
<UnorderedListItem>
In deze app staan niet de dagen waarop wij de wijkcontainers legen, alleen de huiscontainers (kliko’s)
</UnorderedListItem>,
<UnorderedListItem>
In deze app staan niet de dagen waarop wij de wijkcontainers legen, alleen de huiscontainers (kliko’s)
</UnorderedListItem>,
<UnorderedListItem>
In deze app staan niet de dagen waarop wij de wijkcontainers legen, alleen de huiscontainers (kliko’s)
</UnorderedListItem>,
],
},
};
3 changes: 3 additions & 0 deletions packages/storybook/src/documentation/unordered-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Unordered List

This is an unordered list.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"utrecht": {
"unordered-list": {
"color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"marker": {
"border-color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"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"
},
"padding-inline-start": {
"value": "{tilburg.space.inline.rabbit}",
"type": "spacing"
},
"item": {
"margin-block-end": {
"value": "{tilburg.space.block.ant}",
"type": "spacing"
},
"margin-block-start": {
"value": "{tilburg.space.block.ant}",
"type": "spacing"
}
}
}
}
}

0 comments on commit 0b5485a

Please sign in to comment.