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.
Add Utrecht Unordered List component
- Loading branch information
1 parent
3ed9cd0
commit 0b5485a
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
packages/storybook/src/css-utrecht-unordered-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,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>, | ||
], | ||
}, | ||
}; |
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 @@ | ||
# Unordered List | ||
|
||
This is an unordered list. |
46 changes: 46 additions & 0 deletions
46
proprietary/design-tokens/src/components/utrecht/unordered-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,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" | ||
} | ||
} | ||
} | ||
} | ||
} |