This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
-
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.
feat(#95): finished stories for general ui components
- Loading branch information
Andreas Gasser
committed
Mar 28, 2019
1 parent
3be717a
commit c627bb8
Showing
13 changed files
with
94 additions
and
37 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
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,14 @@ | ||
import React from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
import { boolean } from '@storybook/addon-knobs'; | ||
|
||
import AppMessage from './AppMessage'; | ||
|
||
storiesOf('AppMessage', module) | ||
.add('default', () => ( | ||
<AppMessage show={boolean('show', true)}> | ||
<h1>AppMessage Example</h1> | ||
<p>Add some text in here and...</p> | ||
</AppMessage> | ||
)); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
import React from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
|
||
import Card from './Card'; | ||
|
||
storiesOf('Card', module) | ||
.add('default', () => ( | ||
<Card> | ||
<h1>Card Example</h1> | ||
<p>Add some text in here and...</p> | ||
</Card> | ||
)); |
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,21 @@ | ||
import React from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
import { action } from '@storybook/addon-actions'; | ||
|
||
import PreviousButton from './PreviousButton'; | ||
|
||
import styled from 'styled-components' | ||
import { Colors } from '../styles'; | ||
|
||
const StyledBackground = styled.div` | ||
padding: 3rem 1rem; | ||
background-color: ${Colors.ColorsPalette.White}; | ||
`; | ||
|
||
storiesOf('PreviousButton', module) | ||
.add('default', () => <StyledBackground> | ||
<PreviousButton | ||
onClick={action('on-click')} | ||
/> | ||
</StyledBackground>); |
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,34 @@ | ||
import React from 'react'; | ||
|
||
import { storiesOf } from '@storybook/react'; | ||
|
||
import View, { ViewHeading } from './View'; | ||
|
||
storiesOf('View', module) | ||
.add('default', () => (<View> | ||
<p> | ||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor | ||
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et | ||
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata | ||
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, | ||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et | ||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo | ||
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est | ||
Lorem ipsum dolor sit amet. | ||
</p> | ||
</View> | ||
)) | ||
.add('with ViewHeading', () => (<View> | ||
<ViewHeading>Default View Header</ViewHeading> | ||
<p> | ||
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor | ||
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et | ||
accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata | ||
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, | ||
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et | ||
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo | ||
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est | ||
Lorem ipsum dolor sit amet. | ||
</p> | ||
</View> | ||
)); |
File renamed without changes.