-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add component props parse feature
- Loading branch information
1 parent
7bb53a0
commit 987627d
Showing
19 changed files
with
330 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
import React from 'react' | ||
import t from 'prop-types' | ||
|
||
export const Button = ({ children }) => <button>{children}</button> | ||
const Button = ({ children }) => <button>{children}</button> | ||
|
||
Button.propTypes = { | ||
/** | ||
Button element children | ||
*/ | ||
children: t.any, | ||
color: t.string, | ||
} | ||
|
||
export default 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
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
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,39 @@ | ||
import styled from 'react-emotion' | ||
import { rem } from 'polished' | ||
|
||
import * as colors from '../styles/colors' | ||
|
||
export const Table = styled('table')` | ||
width: 100%; | ||
padding: 0; | ||
margin-bottom: ${rem(50)}; | ||
table-layout: fixed; | ||
box-shadow: 0 0 0 1px ${colors.border}; | ||
background-color: transparent; | ||
border-radius: 3px; | ||
border-spacing: 0; | ||
border-collapse: collapse; | ||
border-style: hidden; | ||
font-size: ${rem(14)}; | ||
& thead { | ||
background: ${colors.darkSnow}; | ||
} | ||
& thead th { | ||
text-align: left; | ||
font-weight: 400; | ||
padding: ${rem(20)} ${rem(20)}; | ||
} | ||
& tbody td { | ||
padding: ${rem(12)} ${rem(20)}; | ||
line-height: 2; | ||
font-weight: 200; | ||
} | ||
& tbody > tr { | ||
display: table-row; | ||
border-top: 1px solid ${colors.border}; | ||
} | ||
` |
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,9 +1,19 @@ | ||
export const BORDER = '#ced6e0' | ||
export const PURPLE = '#6554C0' | ||
export const BLUE = '#0052CC' | ||
export const OCEAN_BLUE = '#00B8D9' | ||
export const ORANGE = '#FF5630' | ||
export const GRAY = '#EAECEF' | ||
export const GRAY_LIGHT = '#F4F5F7' | ||
export const GRAY_MEDIUM = '#C1C7D0' | ||
export const GRAY_DARK = '#172B4D' | ||
export const snow = '#F9FAFC' | ||
export const darkSnow = '#EFF2F7' | ||
export const extraDarkSnow = '#E5E9F2' | ||
export const smoke = '#E0E6ED' | ||
export const darkSmoke = '#D3DCE6' | ||
export const extraDarkSmoke = '#C0CCDA' | ||
export const silver = '#8492A6' | ||
export const slate = '#3C4858' | ||
export const steel = '#273444' | ||
export const black = '#1F2D3D' | ||
|
||
export const purple = '#6554C0' | ||
export const blue = '#1FB6FF' | ||
|
||
export const textColor = slate | ||
export const linkColor = purple | ||
export const background = 'white' | ||
|
||
export const border = darkSmoke |
Oops, something went wrong.