addCustomToken wip

This commit is contained in:
mmv 2019-04-19 17:36:42 +04:00
parent 163e82c99d
commit 6379e0f67c
6 changed files with 46 additions and 18 deletions

View File

@ -1,5 +1,4 @@
.block { .block {
} }
.xs { .xs {

View File

@ -8,6 +8,7 @@ const cx = classNames.bind(styles)
type Props = { type Props = {
align?: 'right' | 'center' | 'left', align?: 'right' | 'center' | 'left',
noMargin?: boolean, noMargin?: boolean,
noPadding?: boolean,
weight?: 'light' | 'regular' | 'bolder' | 'bold', weight?: 'light' | 'regular' | 'bolder' | 'bold',
size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl', size?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl',
color?: 'soft' | 'medium' | 'dark' | 'white' | 'fancy' | 'primary' | 'secondary' | 'warning' | 'disabled', color?: 'soft' | 'medium' | 'dark' | 'white' | 'fancy' | 'primary' | 'secondary' | 'warning' | 'disabled',
@ -25,7 +26,7 @@ class Paragraph extends React.PureComponent<Props> {
return ( return (
<p <p
className={cx(styles.paragraph, className, weight, { noMargin }, { dot }, size, color, transform, align)} className={cx(styles.paragraph, className, weight, { noMargin, dot }, size, color, transform, align)}
{...props} {...props}
> >
{children} {children}

View File

@ -40,15 +40,15 @@
} }
.capitalize { .capitalize {
text-transform: capitalize text-transform: capitalize;
} }
.lowercase { .lowercase {
text-transform: lowercase text-transform: lowercase;
} }
.uppercase { .uppercase {
text-transform: uppercase text-transform: uppercase;
} }
.noMargin { .noMargin {

View File

@ -1,14 +1,26 @@
// @flow // @flow
import React, { Component } from 'react' import React, { Component } from 'react'
import { withStyles } from '@material-ui/core/styles'
import Block from '~/components/layout/Block'
import Paragraph from '~/components/layout/Paragraph'
import { styles } from './style'
class AddCustomToken extends Component { class AddCustomToken extends Component {
render() { render() {
const { classes } = this.props
return ( return (
<div> <React.Fragment>
Add a token :) <Block>
</div> <Paragraph noMargin className={classes.title} size="lg">
Add custom token
</Paragraph>
</Block>
</React.Fragment>
) )
} }
} }
export default AddCustomToken const AddCustomTokenComponent = withStyles(styles)(AddCustomToken)
export default AddCustomTokenComponent

View File

@ -0,0 +1,9 @@
// @flow
import { lg, bolderFont } from '~/theme/variables'
export const styles = () => ({
title: {
padding: `${lg}`,
fontWeight: bolderFont,
},
})

View File

@ -15,10 +15,14 @@ export const styles = () => ({
padding: `0 ${md}`, padding: `0 ${md}`,
}, },
add: { add: {
fontSize: '11px',
fontWeight: 'normal', fontWeight: 'normal',
paddingRight: md, paddingRight: md,
paddingLeft: md, paddingLeft: md,
}, },
actions: {
height: '50px',
},
list: { list: {
overflow: 'hidden', overflow: 'hidden',
overflowY: 'scroll', overflowY: 'scroll',
@ -32,7 +36,7 @@ export const styles = () => ({
searchInput: { searchInput: {
backgroundColor: 'transparent', backgroundColor: 'transparent',
lineHeight: 'initial', lineHeight: 'initial',
fontSize: mediumFontSize, fontSize: '13px',
padding: 0, padding: 0,
'& > input::placeholder': { '& > input::placeholder': {
letterSpacing: '-0.5px', letterSpacing: '-0.5px',
@ -51,9 +55,12 @@ export const styles = () => ({
searchRoot: { searchRoot: {
letterSpacing: '-0.5px', letterSpacing: '-0.5px',
fontFamily: 'Roboto Mono, monospace', fontFamily: 'Roboto Mono, monospace',
fontSize: mediumFontSize, fontSize: '13px',
border: 'none', border: 'none',
boxShadow: 'none', boxShadow: 'none',
'& > button': {
display: 'none',
},
}, },
searchIcon: { searchIcon: {
'&:hover': { '&:hover': {