-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from primer/release-0.0.7-beta
0.0.7 Beta Release Tracking
- Loading branch information
Showing
68 changed files
with
4,698 additions
and
3,729 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,4 +1,5 @@ | ||
.DS_Store | ||
coverage/ | ||
dist/ | ||
node_modules | ||
npm-debug.log |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
import React from 'react' | ||
import { NavLink } from 'react-router-dom' | ||
import CSS from './doc-components/CSS' | ||
import PropTypes from 'prop-types' | ||
import {NavLink} from 'react-router-dom' | ||
import Styles from './doc-components/Styles' | ||
|
||
const Page = ({ render }) => ( | ||
const Page = ({render}) => ( | ||
<React.Fragment> | ||
<CSS /> | ||
<div className='text-dark-gray'> | ||
<nav className='UnderlineNav'> | ||
<div className='UnderlineNav-body'> | ||
<NavLink to='/components' className='UnderlineNav-item no-underline' activeClassName='selected'>primer-react</NavLink> | ||
<NavLink to='/demos' className='UnderlineNav-item no-underline' activeClassName='selected'>Demos</NavLink> | ||
<NavLink to='/sandbox' className='UnderlineNav-item no-underline' activeClassName='selected'>Sandbox</NavLink> | ||
<Styles /> | ||
<div className="text-dark-gray"> | ||
<nav className="UnderlineNav"> | ||
<div className="UnderlineNav-body"> | ||
<NavLink to="/components" className="UnderlineNav-item no-underline" activeClassName="selected"> | ||
primer-react | ||
</NavLink> | ||
<NavLink to="/demos" className="UnderlineNav-item no-underline" activeClassName="selected"> | ||
Demos | ||
</NavLink> | ||
<NavLink to="/sandbox" className="UnderlineNav-item no-underline" activeClassName="selected"> | ||
Sandbox | ||
</NavLink> | ||
</div> | ||
</nav> | ||
{render()} | ||
</div> | ||
</React.Fragment> | ||
) | ||
|
||
Page.propTypes = { | ||
render: PropTypes.func | ||
} | ||
|
||
export default Page |
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,25 +1,22 @@ | ||
import React from 'react' | ||
import { Block } from '../../src' | ||
import {Block} from '../../src' | ||
import GitHubAvatar from '../doc-components/GitHubAvatar' | ||
|
||
const AvatarExample = | ||
{ | ||
name: 'Avatar', | ||
element: ( | ||
<div> | ||
<Block mb={2}> | ||
<GitHubAvatar username='primer' size={128} /> | ||
</Block> | ||
<Block mb={2}> | ||
<GitHubAvatar username='github' size={64} /> | ||
</Block> | ||
<Block mb={2}> | ||
<GitHubAvatar username='reactjs' size={32} /> | ||
{' '} | ||
<GitHubAvatar username='npm' /> | ||
</Block> | ||
</div> | ||
) | ||
} | ||
const AvatarExample = { | ||
name: 'Avatar', | ||
element: ( | ||
<div> | ||
<Block mb={2}> | ||
<GitHubAvatar username="primer" size={128} /> | ||
</Block> | ||
<Block mb={2}> | ||
<GitHubAvatar username="github" size={64} /> | ||
</Block> | ||
<Block mb={2}> | ||
<GitHubAvatar username="reactjs" size={32} /> <GitHubAvatar username="npm" /> | ||
</Block> | ||
</div> | ||
) | ||
} | ||
|
||
export default AvatarExample |
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,20 +1,31 @@ | ||
import React from 'react' | ||
import { Box } from '../../src' | ||
import {Box} from '../../src' | ||
|
||
const BoxExample = | ||
{ | ||
name: 'Box', | ||
element: ( | ||
<div> | ||
<Box m={2}>This is a box</Box> | ||
<Box p={2} m={2}>This is a box with padding.</Box> | ||
<Box shadow p={2} m={2}>This is a box with shadow.</Box> | ||
<Box shadow='medium' p={2} m={2}>This is a box with a medium shadow.</Box> | ||
<Box shadow='large' p={2} m={2}>This is a box with a large shadow.</Box> | ||
<Box shadow='extra-large' p={2} m={2}>This is a box with an extra-large shadow.</Box> | ||
<Box border={[true, 'green']} p={2} m={2}>This is a box with a green border.</Box> | ||
</div> | ||
) | ||
} | ||
const BoxExample = { | ||
name: 'Box', | ||
element: ( | ||
<div> | ||
<Box m={2}>This is a box</Box> | ||
<Box p={2} m={2}> | ||
This is a box with padding. | ||
</Box> | ||
<Box shadow p={2} m={2}> | ||
This is a box with shadow. | ||
</Box> | ||
<Box shadow="medium" p={2} m={2}> | ||
This is a box with a medium shadow. | ||
</Box> | ||
<Box shadow="large" p={2} m={2}> | ||
This is a box with a large shadow. | ||
</Box> | ||
<Box shadow="extra-large" p={2} m={2}> | ||
This is a box with an extra-large shadow. | ||
</Box> | ||
<Box border={[true, 'green']} p={2} m={2}> | ||
This is a box with a green border. | ||
</Box> | ||
</div> | ||
) | ||
} | ||
|
||
export default BoxExample |
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,19 +1,20 @@ | ||
import React from 'react' | ||
import { Block, Caret, Text, Box } from '../../src' | ||
import {Block, Caret, Text, Box} from '../../src' | ||
|
||
const CaretExample = | ||
{ | ||
name: 'Caret', | ||
element: ( | ||
<Block p={4}> | ||
{Caret.locations.map((loc, i) => ( | ||
<Box p={2} mb={4} position='relative' maxWidth={300} minHeight={96} shadow key={i}> | ||
<Text fontSize={1} mono>location='{loc}'</Text> | ||
<Caret location={loc} /> | ||
</Box> | ||
))} | ||
</Block> | ||
) | ||
} | ||
const CaretExample = { | ||
name: 'Caret', | ||
element: ( | ||
<Block p={4}> | ||
{Caret.locations.map(loc => ( | ||
<Box p={2} mb={4} position="relative" maxWidth={300} minHeight={96} shadow key={loc}> | ||
<Text fontSize={1} mono> | ||
location='{loc}' | ||
</Text> | ||
<Caret location={loc} /> | ||
</Box> | ||
))} | ||
</Block> | ||
) | ||
} | ||
|
||
export default CaretExample |
Oops, something went wrong.