diff --git a/src/components/Badge.stories.js b/src/components/Badge.stories.js index 0b5d08a1..d07effbe 100644 --- a/src/components/Badge.stories.js +++ b/src/components/Badge.stories.js @@ -7,30 +7,16 @@ export default { component: Badge, }; -export const allBadges = () => ( +export const all = () => (
Positive Negative Neutral Error Warning - - - with icon -
); -allBadges.story = { - name: 'all badges', -}; - -export const positive = () => Positive; -export const negative = () => Negative; -export const warning = () => Warning; -export const neutral = () => Neutral; -export const error = () => Error; - export const withIcon = () => ( diff --git a/src/components/Button.stories.js b/src/components/Button.stories.js index 1208261e..7e63edf7 100644 --- a/src/components/Button.stories.js +++ b/src/components/Button.stories.js @@ -23,18 +23,28 @@ export default { component: Button, }; -export const allButtons = () => ( -
+export const buttons = () => ( + <> - + -
+ +); + +export const loading = () => ( + <> @@ -50,99 +60,43 @@ export const allButtons = () => ( -
- - - - - - -
+ ); -allButtons.story = { - name: 'all buttons', -}; - export const buttonWrapper = () => (
Original Button Wrapper
- - - - - - -
- - - - - -
- - - - - - -
); @@ -156,140 +110,7 @@ export const anchorWrapper = () => ( Original Link Wrapper
- - - - - - -
- - - - - -
- - - - - - - ); diff --git a/src/components/Icon.stories.js b/src/components/Icon.stories.js index 64e4c1be..c86935ef 100644 --- a/src/components/Icon.stories.js +++ b/src/components/Icon.stories.js @@ -77,10 +77,6 @@ export const noLabels = () => ( ); -noLabels.story = { - name: 'no labels', -}; - export const inline = () => ( this is an inline icon (default) diff --git a/src/components/Link.stories.js b/src/components/Link.stories.js index 708a8a4f..66a52e0a 100644 --- a/src/components/Link.stories.js +++ b/src/components/Link.stories.js @@ -20,46 +20,54 @@ export default { }; export const all = () => ( -
- Default -
+ <> + default{' '} - Secondary - -
+ secondary + {' '} tertiary - -
+ {' '} nochrome - -
- - - With icon in front - -
- - - -
- - With arrow behind - -
+ {' '} - Inverted colors + inverse -
+ +); + +export const withArrow = () => ( + + withArrow shows an arrow behind the link + +); + +export const containsIcon = () => ( + + + +); + +export const icon = () => ( + + + Link with an icon in front + +); + +export const isButton = () => ( + /* eslint-disable-next-line */ + + is actually a button + +); + +export const hasLinkWrapper = () => ( + <> {/* gatsby and styled-components don't work nicely together */} - {/* eslint-disable-next-line */} - - is actually a button - -
has a LinkWrapper like GatsbyLink or NextLink @@ -67,5 +75,5 @@ export const all = () => ( has a LinkWrapper like GatsbyLink or NextLink with custom styling -
+ );