Comparing version 1.0.93 to 1.0.94
@@ -43,3 +43,3 @@ 'use strict'; | ||
{ required: el.required, key: 'el-input-' + el.key, widths: 'equal' }, | ||
_react2['default'].createElement(_semanticUiReact.Form.Field, { required: el.required, control: _semanticUiReact.Input, label: el.title, placeholder: el.title, onChange: this.props.handleChange.bind(this, el, null), value: el.value }) | ||
_react2['default'].createElement(_semanticUiReact.Form.Field, { required: el.required, control: _semanticUiReact.Input, label: el.title, placeholder: el.title, onChange: this.props.handleChange.bind(this, el), value: el.value }) | ||
); | ||
@@ -51,3 +51,3 @@ } | ||
{ required: el.required, key: 'el-input-' + el.key, widths: 'equal' }, | ||
_react2['default'].createElement(_semanticUiReact.Form.Field, { required: el.required, control: _semanticUiReact.TextArea, label: el.title, placeholder: el.title, onChange: this.props.handleChange.bind(this, el, null), value: el.value }) | ||
_react2['default'].createElement(_semanticUiReact.Form.Field, { required: el.required, control: _semanticUiReact.TextArea, label: el.title, placeholder: el.title, onChange: this.props.handleChange.bind(this, el), value: el.value }) | ||
); | ||
@@ -73,3 +73,3 @@ } | ||
{ key: 'el-option-' + el.key + '-' + option.value }, | ||
_react2['default'].createElement(_semanticUiReact.Checkbox, { onChange: _this.props.handleChange.bind(_this, el, option.value), label: option.value, value: option.value, checked: el.value.indexOf(option.value) !== -1 }) | ||
_react2['default'].createElement(_semanticUiReact.Checkbox, { onChange: _this.props.handleChange.bind(_this, el), label: option.value, value: option.value, checked: el.value.indexOf(option.value) !== -1 }) | ||
); | ||
@@ -97,3 +97,3 @@ }) | ||
{ key: 'el-option-' + el.key + '-' + option.value }, | ||
_react2['default'].createElement(_semanticUiReact.Radio, { onChange: _this.props.handleChange.bind(_this, el, option.value), label: option.value, value: option.value, checked: el.value === option.value }) | ||
_react2['default'].createElement(_semanticUiReact.Radio, { onChange: _this.props.handleChange.bind(_this, el), label: option.value, value: option.value, checked: el.value === option.value }) | ||
); | ||
@@ -120,3 +120,3 @@ }) | ||
), | ||
_react2['default'].createElement(_semanticUiReact.Select, { onChange: this.props.handleChange.bind(this, el, null), placeholder: el.title, options: options }) | ||
_react2['default'].createElement(_semanticUiReact.Select, { onChange: this.props.handleChange.bind(this, el), placeholder: el.title, options: options }) | ||
) | ||
@@ -123,0 +123,0 @@ ); |
{ | ||
"name": "compounds", | ||
"version": "1.0.93", | ||
"version": "1.0.94", | ||
"description": "Compounds and Cosmic stuff", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -9,3 +9,3 @@ import React, { Component } from 'react' | ||
<Form.Group required={ el.required } key={ 'el-input-' + el.key } widths='equal'> | ||
<Form.Field required={ el.required } control={ Input } label={ el.title } placeholder={ el.title } onChange={ this.props.handleChange.bind(this, el, null) } value={ el.value }/> | ||
<Form.Field required={ el.required } control={ Input } label={ el.title } placeholder={ el.title } onChange={ this.props.handleChange.bind(this, el) } value={ el.value }/> | ||
</Form.Group> | ||
@@ -17,3 +17,3 @@ ) | ||
<Form.Group required={ el.required } key={ 'el-input-' + el.key } widths='equal'> | ||
<Form.Field required={ el.required } control={ TextArea } label={ el.title } placeholder={ el.title } onChange={ this.props.handleChange.bind(this, el, null) } value={ el.value }/> | ||
<Form.Field required={ el.required } control={ TextArea } label={ el.title } placeholder={ el.title } onChange={ this.props.handleChange.bind(this, el) } value={ el.value }/> | ||
</Form.Group> | ||
@@ -31,3 +31,3 @@ ) | ||
options.map(option => { | ||
return <Form.Field key={ 'el-option-' + el.key + '-' + option.value }><Checkbox onChange={ this.props.handleChange.bind(this, el, option.value) } label={ option.value } value={ option.value } checked={el.value.indexOf(option.value) !== -1}/></Form.Field> | ||
return <Form.Field key={ 'el-option-' + el.key + '-' + option.value }><Checkbox onChange={ this.props.handleChange.bind(this, el) } label={ option.value } value={ option.value } checked={el.value.indexOf(option.value) !== -1}/></Form.Field> | ||
}) | ||
@@ -47,3 +47,3 @@ } | ||
options.map(option => { | ||
return <Form.Field key={ 'el-option-' + el.key + '-' + option.value }><Radio onChange={ this.props.handleChange.bind(this, el, option.value) } label={ option.value } value={ option.value } checked={el.value === option.value}/></Form.Field> | ||
return <Form.Field key={ 'el-option-' + el.key + '-' + option.value }><Radio onChange={ this.props.handleChange.bind(this, el) } label={ option.value } value={ option.value } checked={el.value === option.value}/></Form.Field> | ||
}) | ||
@@ -65,3 +65,3 @@ } | ||
<label>{ el.title }</label> | ||
<Select onChange={ this.props.handleChange.bind(this, el, null) } placeholder={ el.title } options={options} /> | ||
<Select onChange={ this.props.handleChange.bind(this, el) } placeholder={ el.title } options={options} /> | ||
</Form.Field> | ||
@@ -68,0 +68,0 @@ </Form.Group> |
19103