6
6
ButtonGroup ,
7
7
Card ,
8
8
CardBody ,
9
- CardDeck ,
10
9
CardFooter ,
11
10
CardHeader ,
12
11
CardImg ,
@@ -20,14 +19,10 @@ import {
20
19
Fade ,
21
20
Form ,
22
21
FormFeedback ,
23
- FormGroup ,
24
22
Input ,
25
- Jumbotron ,
26
23
Label ,
27
24
ListGroup ,
28
25
ListGroupItem ,
29
- ListGroupItemHeading ,
30
- ListGroupItemText ,
31
26
NavbarSimple ,
32
27
NavItem ,
33
28
NavLink ,
@@ -60,12 +55,12 @@ const CollapseComponent = ({children}) => {
60
55
} ;
61
56
62
57
const FadeComponent = ( { children} ) => {
63
- const [ isOpen , setIsOpen ] = useState ( false ) ;
58
+ const [ isIn , setIsIn ] = useState ( false ) ;
64
59
65
60
return (
66
61
< div >
67
- < Button onClick = { ( ) => setIsOpen ( ! isOpen ) } > Toggle fade</ Button >
68
- < Fade is_open = { isOpen } > { children } </ Fade >
62
+ < Button onClick = { ( ) => setIsOpen ( ! isIn ) } > Toggle fade</ Button >
63
+ < Fade is_in = { isIn } > { children } </ Fade >
69
64
</ div >
70
65
) ;
71
66
} ;
@@ -180,12 +175,6 @@ const Demo = () => (
180
175
</ Button >
181
176
</ div >
182
177
183
- < h4 > Block button</ h4 >
184
- < div >
185
- < Button block = { true } color = "primary" >
186
- primary block
187
- </ Button > { ' ' }
188
- </ div >
189
178
< h4 > Button Group</ h4 >
190
179
< div >
191
180
< ButtonGroup size = "sm" >
@@ -243,37 +232,6 @@ const Demo = () => (
243
232
</ Col >
244
233
</ Row >
245
234
246
- < h4 > Card deck</ h4 >
247
- < CardDeck >
248
- < Card >
249
- < CardBody >
250
- < h5 className = "card-title" > The first card</ h5 >
251
- < p className = "card-text" >
252
- This is a card with some text on it, it's the first one in the
253
- deck.
254
- </ p >
255
- </ CardBody >
256
- </ Card >
257
- < Card >
258
- < CardBody >
259
- < h5 className = "card-title" > The second card</ h5 >
260
- < p className = "card-text" >
261
- This is a card with some text on it, it's the second one in the
262
- deck. It has a bit more text in it so that we can see how the
263
- vertical spacing will work.
264
- </ p >
265
- </ CardBody >
266
- </ Card >
267
- < Card outline = { true } color = "primary" >
268
- < CardBody >
269
- < h5 className = "card-title" > The third card</ h5 >
270
- < h6 className = "card-subtitle" > ...and the last :(</ h6 >
271
- < p className = "card-text" > This card doesn't have much text...</ p >
272
- < Button color = "danger" > Click me</ Button >
273
- </ CardBody >
274
- </ Card >
275
- </ CardDeck >
276
-
277
235
< h2 > Collapse</ h2 >
278
236
< CollapseComponent >
279
237
< Card >
@@ -316,41 +274,6 @@ const Demo = () => (
316
274
</ Col >
317
275
</ Row >
318
276
319
- < h4 > Row with no gutters</ h4 >
320
- < Row no_gutters = { true } >
321
- < Col md = { 3 } >
322
- < div
323
- style = { {
324
- borderStyle : 'solid' ,
325
- padding : '10px'
326
- } }
327
- >
328
- < h4 > A quarter width column</ h4 >
329
- </ div >
330
- </ Col >
331
- < Col md = { 6 } >
332
- < div
333
- style = { {
334
- borderStyle : 'solid' ,
335
- padding : '10px'
336
- } }
337
- >
338
- < h4 > A half width column</ h4 >
339
- < p > With some text below</ p >
340
- </ div >
341
- </ Col >
342
- < Col md = { 3 } >
343
- < div
344
- style = { {
345
- borderStyle : 'solid' ,
346
- padding : '10px'
347
- } }
348
- >
349
- < h4 > A quarter width column</ h4 >
350
- </ div >
351
- </ Col >
352
- </ Row >
353
-
354
277
< h2 > DropdownMenu</ h2 >
355
278
< DropdownMenu label = "Toggle" caret = { true } >
356
279
< DropdownMenuItem header = { true } > Heading</ DropdownMenuItem >
@@ -372,42 +295,35 @@ const Demo = () => (
372
295
373
296
< h2 > Form</ h2 >
374
297
< Form >
375
- < FormGroup >
376
- < Label for = "exampleEmail" > Email</ Label >
298
+ < div >
299
+ < Label html_for = "exampleEmail" > Email</ Label >
377
300
< Input
378
301
type = "email"
379
302
name = "email"
380
303
id = "exampleEmail"
381
304
placeholder = "with a placeholder"
382
- valid
305
+ valid = { true }
383
306
/>
384
- < FormFeedback valid > That email is valid!</ FormFeedback >
385
- </ FormGroup >
386
- < FormGroup >
387
- < Label for = "examplePassword" > Password</ Label >
307
+ < FormFeedback type = " valid" > That email is valid!</ FormFeedback >
308
+ </ div >
309
+ < div >
310
+ < Label html_for = "examplePassword" > Password</ Label >
388
311
< Input
389
312
type = "password"
390
313
name = "password"
391
314
id = "examplePassword"
392
315
placeholder = "password placeholder"
393
- invalid
316
+ invalid = { true }
394
317
/>
395
318
< FormFeedback > That password is invalid... :(</ FormFeedback >
396
- </ FormGroup >
397
- < FormGroup >
398
- < Label for = "exampleText" > Text Area</ Label >
319
+ </ div >
320
+ < div >
321
+ < Label html_for = "exampleText" > Text Area</ Label >
399
322
< Textarea id = "exampleText" />
400
- </ FormGroup >
323
+ </ div >
401
324
< Button > Submit</ Button >
402
325
</ Form >
403
326
404
- < h2 > Jumbotron</ h2 >
405
- < Jumbotron >
406
- < h2 > This is a jumbotron</ h2 >
407
- < p > Pretty big huh?</ p >
408
- < Button color = "danger" > Click here</ Button >
409
- </ Jumbotron >
410
-
411
327
< h2 > ListGroup</ h2 >
412
328
413
329
< ListGroup >
@@ -417,8 +333,8 @@ const Demo = () => (
417
333
< ListGroupItem disabled = { true } > Item 2</ ListGroupItem >
418
334
< ListGroupItem > Item 3</ ListGroupItem >
419
335
< ListGroupItem >
420
- < ListGroupItemHeading > Item 4 heading</ ListGroupItemHeading >
421
- < ListGroupItemText > Item 4 text</ ListGroupItemText >
336
+ < h3 > Item 4 heading</ h3 >
337
+ < p > Item 4 text</ p >
422
338
</ ListGroupItem >
423
339
</ ListGroup >
424
340
0 commit comments