1
1
/** @jsx React.DOM */
2
- var React = require ( 'react' )
3
- var BS = require ( '../cjs' )
4
- var Button = BS . Button
5
- var DropdownButton = BS . DropdownButton
6
- var MenuItem = BS . MenuItem
7
- var Accordion = BS . Accordion
8
- var Panel = BS . Panel
9
- var ButtonToolbar = BS . ButtonToolbar
10
- var OverlayTrigger = BS . OverlayTrigger
11
- var Tooltip = BS . Tooltip
12
- var Alert = BS . Alert
13
- var TabbedArea = BS . TabbedArea
14
- var TabPane = BS . TabPane
15
- var Modal = BS . Modal
16
- var OverlayMixin = BS . OverlayMixin
17
- var Popover = BS . Popover
18
- var Carousel = BS . Carousel
19
- var CarouselItem = BS . CarouselItem
20
-
21
-
22
-
2
+ var React = require ( 'react' ) ;
3
+ var Button = require ( '../cjs/Button' ) ;
4
+ var DropdownButton = require ( '../cjs/DropdownButton' ) ;
5
+ var MenuItem = require ( '../cjs/MenuItem' ) ;
6
+ var Accordion = require ( '../cjs/Accordion' ) ;
7
+ var Panel = require ( '../cjs/Panel' ) ;
8
+ var ButtonToolbar = require ( '../cjs/ButtonToolbar' ) ;
9
+ var OverlayTrigger = require ( '../cjs/OverlayTrigger' ) ;
10
+ var Tooltip = require ( '../cjs/Tooltip' ) ;
11
+ var Alert = require ( '../cjs/Alert' ) ;
12
+ var TabbedArea = require ( '../cjs/TabbedArea' ) ;
13
+ var TabPane = require ( '../cjs/TabPane' ) ;
14
+ var Modal = require ( '../cjs/Modal' ) ;
15
+ var OverlayMixin = require ( '../cjs/OverlayMixin' ) ;
16
+ var Popover = require ( '../cjs/Popover' ) ;
17
+ var Carousel = require ( '../cjs/Carousel' ) ;
18
+ var CarouselItem = require ( '../cjs/CarouselItem' ) ;
23
19
24
20
var dropdownInstance = (
25
21
< DropdownButton title = "Dropdown" >
26
22
< MenuItem key = "1" > Item 1</ MenuItem >
27
23
< MenuItem key = "2" > Item 2</ MenuItem >
28
24
</ DropdownButton >
29
- )
30
-
31
-
32
-
25
+ ) ;
33
26
34
27
var accordionInstance = (
35
28
< Accordion >
@@ -45,9 +38,6 @@ var accordionInstance = (
45
38
</ Accordion >
46
39
) ;
47
40
48
-
49
-
50
-
51
41
var positionerInstance = (
52
42
< ButtonToolbar >
53
43
< OverlayTrigger placement = "left" overlay = { < Tooltip > < strong > Holy guacamole!</ strong > Check this info.</ Tooltip > } >
@@ -65,8 +55,6 @@ var positionerInstance = (
65
55
</ ButtonToolbar >
66
56
) ;
67
57
68
-
69
-
70
58
var popoverInstance = (
71
59
< ButtonToolbar >
72
60
< OverlayTrigger trigger = "click" placement = "left" overlay = { < Popover title = "Popover left" > < strong > Holy guacamole!</ strong > Check this info.</ Popover > } >
@@ -84,20 +72,13 @@ var popoverInstance = (
84
72
</ ButtonToolbar >
85
73
) ;
86
74
87
-
88
-
89
-
90
-
91
75
var tabbedAreaInstance = (
92
76
< TabbedArea defaultActiveKey = { 2 } >
93
77
< TabPane key = { 1 } tab = "Tab 1" > TabPane 1 content</ TabPane >
94
78
< TabPane key = { 2 } tab = "Tab 2" > TabPane 2 content</ TabPane >
95
79
</ TabbedArea >
96
80
) ;
97
81
98
-
99
-
100
-
101
82
var AlertAutoDismissable = React . createClass ( {
102
83
getInitialState : function ( ) {
103
84
return {
@@ -129,9 +110,6 @@ var AlertAutoDismissable = React.createClass({
129
110
}
130
111
} ) ;
131
112
132
-
133
-
134
-
135
113
var CustomModalTrigger = React . createClass ( {
136
114
mixins : [ OverlayMixin ] ,
137
115
@@ -174,31 +152,30 @@ var CustomModalTrigger = React.createClass({
174
152
} ) ;
175
153
176
154
var carouselInstance = (
177
- < Carousel style = { { width : 900 } } >
178
- < CarouselItem >
179
- < img width = { 900 } height = { 500 } alt = "900x500" src = "/assets/carousel.png" />
180
- < div className = "carousel-caption" >
181
- < h3 > First slide label</ h3 >
182
- < p > Nulla vitae elit libero, a pharetra augue mollis interdum.</ p >
183
- </ div >
184
- </ CarouselItem >
185
- < CarouselItem >
186
- < img width = { 900 } height = { 500 } alt = "900x500" src = "/assets/carousel.png" />
187
- < div className = "carousel-caption" >
188
- < h3 > Second slide label</ h3 >
189
- < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit.</ p >
190
- </ div >
191
- </ CarouselItem >
192
- < CarouselItem >
193
- < img width = { 900 } height = { 500 } alt = "900x500" src = "/assets/carousel.png" />
194
- < div className = "carousel-caption" >
195
- < h3 > Third slide label</ h3 >
196
- < p > Praesent commodo cursus magna, vel scelerisque nisl consectetur.</ p >
197
- </ div >
198
- </ CarouselItem >
199
- </ Carousel >
200
- ) ;
201
-
155
+ < Carousel style = { { width : 900 } } >
156
+ < CarouselItem >
157
+ < img width = { 900 } height = { 500 } alt = "900x500" src = "assets/carousel.png" />
158
+ < div className = "carousel-caption" >
159
+ < h3 > First slide label</ h3 >
160
+ < p > Nulla vitae elit libero, a pharetra augue mollis interdum.</ p >
161
+ </ div >
162
+ </ CarouselItem >
163
+ < CarouselItem >
164
+ < img width = { 900 } height = { 500 } alt = "900x500" src = "assets/carousel.png" />
165
+ < div className = "carousel-caption" >
166
+ < h3 > Second slide label</ h3 >
167
+ < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit.</ p >
168
+ </ div >
169
+ </ CarouselItem >
170
+ < CarouselItem >
171
+ < img width = { 900 } height = { 500 } alt = "900x500" src = "assets/carousel.png" />
172
+ < div className = "carousel-caption" >
173
+ < h3 > Third slide label</ h3 >
174
+ < p > Praesent commodo cursus magna, vel scelerisque nisl consectetur.</ p >
175
+ </ div >
176
+ </ CarouselItem >
177
+ </ Carousel >
178
+ ) ;
202
179
203
180
var allTests = (
204
181
< div >
@@ -225,8 +202,7 @@ var allTests = (
225
202
226
203
< h2 > Carousel</ h2 >
227
204
{ carouselInstance }
228
-
229
205
</ div >
230
- )
206
+ ) ;
231
207
232
- React . renderComponent ( allTests , document . body )
208
+ React . renderComponent ( allTests , document . body ) ;
0 commit comments