generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapped Utrecht-button as LUX-button --------- Co-authored-by: Jaap-Hein Wester <j.h.wester@setonix.nl> Co-authored-by: AlineNap <59806622+AlineNap@users.noreply.github.com> Co-authored-by: Remy Parzinski <remypar5@users.noreply.github.com>
- Loading branch information
1 parent
a1010e4
commit 86a6afd
Showing
28 changed files
with
2,656 additions
and
302 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
{ | ||
"extends": ["stylelint-config-standard-scss"], | ||
"rules": { | ||
"selector-class-pattern": "^(dt-[a-z]+(--[a-z]+(-[a-z])+)?|docs-story|visual-regression-wrapper|section)" | ||
"selector-class-pattern": [ | ||
"^(sb-?|storybook-|docs-|lux-|lsb-)([a-z-]+)+$", | ||
{ | ||
"message": "Please use the prefix `lsb-` for our custom Storybook components." | ||
} | ||
] | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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,75 @@ | ||
import { Canvas, Controls, Description, Markdown, Meta } from "@storybook/blocks"; | ||
import markdown from "@utrecht/button-css/README.md?raw"; | ||
import * as ButtonStories from "./button.stories"; | ||
|
||
<Meta of={ButtonStories} /> | ||
|
||
<cite className="lsb-citation"> | ||
Documentatie afkomstig van | ||
<a href="https://nl-design-system.github.io/utrecht/storybook-css/index.html?path=/docs/css-button--docs">Utrecht Button</a> | ||
</cite> | ||
<Markdown>{markdown}</Markdown> | ||
|
||
## Playground | ||
|
||
<Canvas of={ButtonStories.Playground} /> | ||
<Controls of={ButtonStories.Playground} /> | ||
|
||
## Variants (appearance) | ||
|
||
Voor Lux zijn er drie varianten van de button. In de community komen ook andere varianten voor. Kies je een variant die | ||
niet bestaat in onze tokens dan zal je een paarse styling zien, als visuele waarschuwing. | ||
|
||
### Primary / primary action Button | ||
|
||
<Description of={ButtonStories.Primary} /> | ||
<Canvas of={ButtonStories.Primary} /> | ||
|
||
### Secondary / secondary action button | ||
|
||
<Description of={ButtonStories.Secondary} /> | ||
<Canvas of={ButtonStories.Secondary} /> | ||
|
||
### Tertiary / subtle button | ||
|
||
<Description of={ButtonStories.Tertiary} /> | ||
<Canvas of={ButtonStories.Tertiary} /> | ||
|
||
## States | ||
|
||
### Active | ||
|
||
<Description of={ButtonStories.Active} /> | ||
<Canvas of={ButtonStories.Active} sourceState="none" /> | ||
|
||
### Hover | ||
|
||
<Description of={ButtonStories.Hover} /> | ||
<Canvas of={ButtonStories.Hover} sourceState="none" /> | ||
|
||
### Focus | ||
|
||
<Description of={ButtonStories.Focus} /> | ||
<Canvas of={ButtonStories.Focus} sourceState="none" /> | ||
|
||
### Busy | ||
|
||
<Description of={ButtonStories.Busy} /> | ||
<Canvas of={ButtonStories.Busy} sourceState="hidden" /> | ||
|
||
### Toggle / Pressed | ||
|
||
<Description of={ButtonStories.Toggle} /> | ||
<Canvas of={ButtonStories.Toggle} sourceState="hidden" /> | ||
|
||
## Icons | ||
|
||
### Start Icon | ||
|
||
<Description of={ButtonStories.WithStartIcon} /> | ||
<Canvas of={ButtonStories.WithStartIcon} sourceState="hidden" /> | ||
|
||
### End Icon | ||
|
||
<Description of={ButtonStories.WithEndIcon} /> | ||
<Canvas of={ButtonStories.WithEndIcon} sourceState="hidden" /> |
Oops, something went wrong.