This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
6,968 additions
and
222 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-links/register'; |
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,9 @@ | ||
import { configure } from '@storybook/react'; | ||
|
||
// automatically import all files ending in *.stories.js | ||
const req = require.context('../stories', true, /\.stories\.js$/); | ||
function loadStories() { | ||
req.keys().forEach(filename => req(filename)); | ||
} | ||
|
||
configure(loadStories, module); |
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 @@ | ||
// Not yet implemented |
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 @@ | ||
// Not yet implemented |
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { layout, space, typography } from 'styled-system' | ||
import { layout, space, typography, color } from 'styled-system' | ||
import withDefaultProps from './withDefaultProps' | ||
|
||
const defaultProps = {} | ||
|
||
export default withDefaultProps(defaultProps, 'div')` | ||
${color}; | ||
${layout}; | ||
${props => props.textTransform && `text-transform: ${props.textTransform};`} | ||
${(props) => props.textTransform && `text-transform: ${props.textTransform};`} | ||
${space}; | ||
${typography}; | ||
` |
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,17 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { Avatar } from '../dist/index.es' | ||
|
||
storiesOf('Avatar', module) | ||
.add('default', () => <Avatar src="http://placekeanu.com/200/200" alt="" />) | ||
.add('with size', () => ( | ||
<Avatar size={80} src="http://placekeanu.com/200/200" alt="" /> | ||
)) | ||
.add('with size/border', () => ( | ||
<Avatar | ||
size={180} | ||
borderRadius="50%" | ||
src="http://placekeanu.com/200/200" | ||
alt="" | ||
/> | ||
)) |
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 { action } from '@storybook/addon-actions' | ||
import { Button } from '../dist/index.es' | ||
|
||
storiesOf('Button', module) | ||
.add('default', () => ( | ||
<Button onClick={action('clicked')}>Hello Button</Button> | ||
)) | ||
.add('with colors', () => ( | ||
<Button onClick={action('clicked')} bg="#000" color="#fff"> | ||
Hello Button | ||
</Button> | ||
)) |
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,12 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { Text } from '../dist/index.es' | ||
|
||
storiesOf('Text', module) | ||
.add('default', () => <Text>Hello Text</Text>) | ||
.add('with colors', () => <Text color="#cc343d">Hello Text</Text>) | ||
.add('with fontSize/Weight', () => ( | ||
<Text fontSize={24} fontWeight={600}> | ||
Hello Text | ||
</Text> | ||
)) |
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,11 @@ | ||
import React from 'react' | ||
import { storiesOf } from '@storybook/react' | ||
import { Tooltip, Text, Position } from '../dist/index.es' | ||
|
||
storiesOf('Tooltip', module).add('default', () => ( | ||
<Position position="relative" m={5}> | ||
<Tooltip text="Tooltip text"> | ||
<Text>Hello Tooltip</Text> | ||
</Tooltip> | ||
</Position> | ||
)) |
Oops, something went wrong.