Skip to content

Commit 4fbe97f

Browse files
author
Vlad Balin
committed
new build script, #6
1 parent 91d7ed4 commit 4fbe97f

File tree

11 files changed

+615
-399
lines changed

11 files changed

+615
-399
lines changed

example/main.app.js

Lines changed: 144 additions & 171 deletions
Large diffs are not rendered by default.

example/main.app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
border-color: red;
33
}
44

5+
.invalid.required {
6+
border-color: yellow;
7+
}
8+
59
.checkbox,.radio {
610
margin: 3px;
711
display: inline-block;

example/main.jsx

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import './main.css'
88
import React from 'react'
99
import ReactDOM from 'react-dom'
1010
import Link from 'valuelink'
11-
import { Input, NumberInput, Select, TextArea, Radio, Checkbox } from 'tags.jsx'
11+
import { Input, NumberInput, Select, TextArea, Radio, Checkbox } from 'tags'
1212

1313
const App = React.createClass( {
1414
getInitialState(){
@@ -134,12 +134,10 @@ const CheckboxObjGroup = ({ flagsLink }) => {
134134
<fieldset>
135135
<legend>Standard checkbox group bound to object</legend>
136136
<label>
137-
A:
138-
<Input type="checkbox" checkedLink={ links.a }/>
137+
A: <Input type="checkbox" checkedLink={ links.a }/>
139138
</label>
140139
<label>
141-
B:
142-
<Input type="checkbox" checkedLink={ links.b }/>
140+
B: <Input type="checkbox" checkedLink={ links.b }/>
143141
</label>
144142
</fieldset>
145143
);
@@ -149,12 +147,10 @@ const CustomCheckboxObjGroup = ({ flagsLink }) => (
149147
<fieldset>
150148
<legend>Custom checkbox group bound to object</legend>
151149
<label>
152-
A:
153-
<Checkbox checkedLink={ flagsLink.at( 'a' ) }/>
150+
A: <Checkbox checkedLink={ flagsLink.at( 'a' ) }/>
154151
</label>
155152
<label>
156-
B:
157-
<Checkbox checkedLink={ flagsLink.at( 'b' ) }/>
153+
B: <Checkbox checkedLink={ flagsLink.at( 'b' ) }/>
158154
</label>
159155
</fieldset>
160156
);
@@ -163,12 +159,10 @@ const CheckboxListGroup = ({ flagsLink }) => (
163159
<fieldset>
164160
<legend>Checkbox group bound to list</legend>
165161
<label>
166-
A:
167-
<Input type="checkbox" checkedLink={ flagsLink.contains( 'a' ) }/>
162+
A: <Input type="checkbox" checkedLink={ flagsLink.contains( 'a' ) }/>
168163
</label>
169164
<label>
170-
B:
171-
<Input type="checkbox" checkedLink={ flagsLink.contains( 'b' ) }/>
165+
B: <Input type="checkbox" checkedLink={ flagsLink.contains( 'b' ) }/>
172166
</label>
173167
</fieldset>
174168
);
@@ -177,12 +171,10 @@ const RadioGroup = ({ flagLink }) => (
177171
<fieldset>
178172
<legend>Radio group bound to value</legend>
179173
<label>
180-
A:
181-
<Input type="radio" valueLink={ flagLink } value="a" />
174+
A: <Input type="radio" valueLink={ flagLink } value="a" />
182175
</label>
183176
<label>
184-
B:
185-
<Input type="radio" valueLink={ flagLink } value="b" />
177+
B: <Input type="radio" valueLink={ flagLink } value="b" />
186178
</label>
187179
</fieldset>
188180
);
@@ -203,12 +195,10 @@ const CustomRadioGroup = ({ flagLink }) => (
203195
<fieldset>
204196
<legend>Custom Radio group bound to value</legend>
205197
<label>
206-
A:
207-
<Radio checkedLink={ flagLink.equals( 'a' ) } />
198+
A: <Radio checkedLink={ flagLink.equals( 'a' ) } />
208199
</label>
209200
<label>
210-
B:
211-
<Radio checkedLink={ flagLink.equals( 'b' ) } />
201+
B: <Radio checkedLink={ flagLink.equals( 'b' ) } />
212202
</label>
213203
</fieldset>
214204
);

0 commit comments

Comments
 (0)