generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Joost Wiechers <[email protected]>
- Loading branch information
1 parent
1d176c7
commit b973181
Showing
5 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
packages/storybook/src/css-utrecht-ordered-list.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
proprietary/design-tokens/src/components/utrecht/ordered-list.tokens.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters