Skip to content

Commit

Permalink
Added ordered list to tokens (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: Joost Wiechers <[email protected]>
  • Loading branch information
joostacato and joostwiechers authored May 30, 2024
1 parent 1d176c7 commit b973181
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 2 deletions.
51 changes: 51 additions & 0 deletions packages/storybook/src/css-utrecht-ordered-list.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/* @license CC0-1.0 */

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

const meta = {
title: 'CSS Component/Ordered list',
id: 'css-utrecht-ordered-list',
component: OrderedList,
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=823-571&m=dev',
},
docs: {
description: {
component: readme,
},
},
},
} satisfies Meta<typeof OrderedList>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Default: Story = {
name: 'Ordered list',
args: {
children: [
<OrderedListItem>Gemeente Tilburg rekenkamer</OrderedListItem>,
<OrderedListItem>Gemeente Tilburg college</OrderedListItem>,
<OrderedListItem>Gemeente Tilburg contact</OrderedListItem>,
],
},
};
3 changes: 3 additions & 0 deletions packages/storybook/src/documentation/ordered-list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ordered list

An ordered list element to sum up a list of items in a specific order.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
"type": "sizing",
"value": "{tilburg.icon.functional.size}"
},
"margin-inline": {
"gap": {
"value": "{tilburg.space.text.beetle}",
"type": "spacing"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"utrecht": {
"ordered-list": {
"padding-inline-start": {
"value": "{tilburg.space.inline.rabbit}",
"type": "spacing"
},
"color": {
"type": "color",
"value": "{tilburg.document.color}"
},
"font-family": {
"value": "{tilburg.document.font-family}",
"type": "fontFamilies"
},
"font-weight": {
"value": "{tilburg.document.font-weight}",
"type": "fontWeights"
},
"font-size": {
"value": "{tilburg.document.font-size}",
"type": "fontSizes"
},
"line-height": {
"value": "{tilburg.document.line-height}",
"type": "lineHeights"
},
"item": {
"margin-block-end": {
"value": "{tilburg.space.block.ant}",
"type": "spacing"
},
"margin-block-start": {
"value": "{tilburg.space.block.ant}",
"type": "spacing"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"color": {
"type": "color",
"value": "{tilburg.document.color}"
"value": "{tilburg.color.blue.300}"
}
},
"font-family": {
Expand Down

0 comments on commit b973181

Please sign in to comment.