Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move example components to examples folder #34

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions src/Index.js → examples/Index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ import {
Example
} from '@compositor/kit'
import Page from './Page'
import Box from './Box'
import Box from '../src/Box'
import ExampleBox from './ExampleBox'
import UtilityBox from './UtilityBox'
import Flex from './Flex'
import Heading from './Heading'
import Link from './Link'
import Button from './Button'
import UtilityBox from '../src/UtilityBox'
import Flex from '../src/Flex'
import Heading from '../src/Heading'
import Link from '../src/Link'
import Button from '../src/Button'
import theme from './theme'
import Text from './Text'
import ButtonPrimary from './ButtonPrimary'
import ButtonSecondary from './ButtonSecondary'
import ButtonDanger from './ButtonDanger'
import Flash from './Flash'
import Text from '../src/Text'
import ButtonPrimary from '../src/ButtonPrimary'
import ButtonSecondary from '../src/ButtonSecondary'
import ButtonDanger from '../src/ButtonDanger'
import Flash from '../src/Flash'
import Octicon from '@github/octicons-react'
import StateLabel from './StateLabel'
import CounterLabel from './CounterLabel'
import StateLabel from '../src/StateLabel'
import CounterLabel from '../src/CounterLabel'

const Swatch = ({name, index, color, ...rest}) => (
<div {...rest} key={index}>
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/Page.js → examples/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ThemeProvider } from 'styled-components'
import theme from './theme'
import Meta from './Meta'
import CSS from './CSS'
import Box from './Box'
import Box from '../src/Box'

// Generic page wrapper component
const Page = props => (
Expand Down
File renamed without changes.
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"license": "MIT",
"main": "index.js",
"scripts": {
"start": "x0 dev src/Index.js -op 8888",
"build": "x0 build src/Index.js --out-dir docs",
"start": "x0 dev examples/Index.js -op 8888",
"build": "x0 build examples/Index.js --out-dir docs",
"test": "jest"
},
"x0": {
Expand Down