-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typography): Adds first draft of all type styles
- Loading branch information
Adam Raider
committed
Feb 27, 2019
1 parent
a4396d4
commit 5531e55
Showing
9 changed files
with
202 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
import withPadding from './util/withPadding'; | ||
|
||
storiesOf('Buttons', module) | ||
.addWithJSX('primary', () => ( | ||
<button className="btn--primary">Hello World</button> | ||
)) | ||
.addWithJSX('secondary', () => ( | ||
<button className="btn--secondary">Hello World</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
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,47 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
import withPadding from './util/withPadding'; | ||
|
||
storiesOf('Forms', module) | ||
.addWithJSX('single field', () => | ||
withPadding( | ||
<div className="field"> | ||
<input id="email" type="text" placeholder="arya.stark@winterfell.com" /> | ||
<label for="email">Email address</label> | ||
</div> | ||
) | ||
) | ||
.addWithJSX('example form', () => | ||
withPadding( | ||
<React.Fragment> | ||
<h2 className="h3">Sign up</h2> | ||
<p className="p3" style={{ marginBottom: '1.5rem' }}> | ||
You have the opportunity to try new things, but also to make mistakes | ||
and fail without the pressure of being judged. | ||
</p> | ||
<div className="field"> | ||
<input id="name" type="text" placeholder="Arya Stark" /> | ||
<label for="name">Name</label> | ||
</div> | ||
<div className="field"> | ||
<input | ||
id="email" | ||
type="text" | ||
placeholder="arya.stark@winterfell.com" | ||
/> | ||
<label for="email">Email address</label> | ||
</div> | ||
<div className="field"> | ||
<input | ||
id="password" | ||
type="password" | ||
placeholder="the.north.remembers" | ||
/> | ||
<label for="password">Password</label> | ||
</div> | ||
|
||
<button className="btn--primary">Submit</button> | ||
</React.Fragment> | ||
) | ||
); |
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
packages/ray/stories/page/page.stories.js → packages/ray/stories/page.stories.js
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
File renamed without changes.
Oops, something went wrong.