From 840778b64fb1014afde544f96f5a217ce63429f2 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Wed, 11 Jan 2017 14:03:48 +0100 Subject: [PATCH] Remove JS input config --- src/components/fields/ColorField.jsx | 2 - src/components/fields/DocLabel.jsx | 46 +++------------- src/components/fields/SpecField.jsx | 2 - src/components/fields/ZoomSpecField.jsx | 2 - src/components/inputs/ArrayInput.jsx | 1 - src/components/inputs/AutocompleteInput.jsx | 31 ++++------- src/components/inputs/CheckboxInput.jsx | 1 - src/components/inputs/FontInput.jsx | 11 +--- src/components/inputs/IconInput.jsx | 2 - src/components/inputs/InputBlock.jsx | 1 - src/components/inputs/MultiButtonInput.jsx | 19 +------ src/components/inputs/NumberInput.jsx | 1 - src/components/inputs/SelectInput.jsx | 1 - src/components/inputs/StringInput.jsx | 1 - src/config/input.js | 51 ----------------- src/styles/_components.scss | 61 +++++++++++++-------- src/styles/_input.scss | 39 +++++++++++++ src/styles/_toolbar.scss | 9 +++ 18 files changed, 108 insertions(+), 173 deletions(-) delete mode 100644 src/config/input.js diff --git a/src/components/fields/ColorField.jsx b/src/components/fields/ColorField.jsx index a064e38..aaecb16 100644 --- a/src/components/fields/ColorField.jsx +++ b/src/components/fields/ColorField.jsx @@ -2,8 +2,6 @@ import React from 'react' import Color from 'color' import ChromePicker from 'react-color/lib/components/chrome/Chrome' -import input from '../../config/input.js' - function formatColor(color) { const rgb = color.rgb return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${rgb.a})` diff --git a/src/components/fields/DocLabel.jsx b/src/components/fields/DocLabel.jsx index 6f7c872..d13efb6 100644 --- a/src/components/fields/DocLabel.jsx +++ b/src/components/fields/DocLabel.jsx @@ -1,7 +1,4 @@ import React from 'react' -import input from '../../config/input.js' -import colors from '../../config/colors.js' -import { margins, fontSizes } from '../../config/scales.js' export default class DocLabel extends React.Component { static propTypes = { @@ -10,45 +7,16 @@ export default class DocLabel extends React.Component { React.PropTypes.string ]).isRequired, doc: React.PropTypes.string.isRequired, - style: React.PropTypes.object, - cursorTargetStyle: React.PropTypes.object, - } - - constructor(props) { - super(props) - this.state = { showDoc: false } } render() { - return