bootstrap-bookingsync-sass 1.0.0.beta11 → 1.0.0.beta12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/addon/components/bsy-alert.js +28 -0
  4. data/addon/components/bsy-annotated-section/annotation.js +8 -0
  5. data/addon/components/bsy-annotated-section/content.js +8 -0
  6. data/addon/components/bsy-annotated-section.js +8 -0
  7. data/addon/components/bsy-button/close.js +12 -0
  8. data/addon/components/bsy-checkbox.js +8 -0
  9. data/addon/components/bsy-input-addon/addon.js +8 -0
  10. data/addon/components/bsy-input-addon/input.js +14 -0
  11. data/addon/components/bsy-input-addon.js +8 -0
  12. data/addon/components/bsy-input.js +15 -0
  13. data/addon/components/bsy-modal/body.js +8 -0
  14. data/addon/components/bsy-modal/close.js +7 -0
  15. data/addon/components/bsy-modal/footer.js +8 -0
  16. data/addon/components/bsy-modal/header.js +8 -0
  17. data/addon/components/bsy-modal.js +17 -0
  18. data/addon/components/bsy-nav/item.js +19 -0
  19. data/addon/components/bsy-nav/link.js +19 -0
  20. data/addon/components/bsy-nav.js +8 -0
  21. data/addon/components/bsy-radio-buttons/button.js +22 -0
  22. data/addon/components/bsy-radio-buttons.js +10 -0
  23. data/addon/components/bsy-radio.js +14 -0
  24. data/addon/components/bsy-select-multiple.js +14 -0
  25. data/addon/components/bsy-select.js +14 -0
  26. data/addon/components/bsy-sheet/header.js +7 -0
  27. data/addon/components/bsy-sheet.js +7 -0
  28. data/addon/components/bsy-textarea.js +14 -0
  29. data/addon/templates/components/bsy-alert.hbs +6 -0
  30. data/addon/templates/components/bsy-annotated-section/annotation.hbs +1 -0
  31. data/addon/templates/components/bsy-annotated-section/content.hbs +1 -0
  32. data/addon/templates/components/bsy-annotated-section.hbs +1 -0
  33. data/addon/templates/components/bsy-button/close.hbs +1 -0
  34. data/addon/templates/components/bsy-checkbox.hbs +7 -0
  35. data/addon/templates/components/bsy-input-addon/addon.hbs +1 -0
  36. data/addon/templates/components/bsy-input-addon/input.hbs +8 -0
  37. data/addon/templates/components/bsy-input-addon.hbs +3 -0
  38. data/addon/templates/components/bsy-input.hbs +8 -0
  39. data/addon/templates/components/bsy-modal/body.hbs +1 -0
  40. data/addon/templates/components/bsy-modal/close.hbs +1 -0
  41. data/addon/templates/components/bsy-modal/footer.hbs +1 -0
  42. data/addon/templates/components/bsy-modal/header.hbs +2 -0
  43. data/addon/templates/components/bsy-modal.hbs +8 -0
  44. data/addon/templates/components/bsy-nav/item.hbs +1 -0
  45. data/addon/templates/components/bsy-nav/link.hbs +1 -0
  46. data/addon/templates/components/bsy-nav.hbs +1 -0
  47. data/addon/templates/components/bsy-radio-buttons/button.hbs +6 -0
  48. data/addon/templates/components/bsy-radio-buttons.hbs +3 -0
  49. data/addon/templates/components/bsy-radio.hbs +8 -0
  50. data/addon/templates/components/bsy-select-multiple.hbs +11 -0
  51. data/addon/templates/components/bsy-select.hbs +12 -0
  52. data/addon/templates/components/bsy-sheet/header.hbs +1 -0
  53. data/addon/templates/components/bsy-sheet.hbs +1 -0
  54. data/addon/templates/components/bsy-textarea.hbs +8 -0
  55. data/app/components/bsy-alert.js +1 -0
  56. data/app/components/bsy-annotated-section/annotation.js +1 -0
  57. data/app/components/bsy-annotated-section/content.js +1 -0
  58. data/app/components/bsy-annotated-section.js +1 -0
  59. data/app/components/bsy-button/close.js +1 -0
  60. data/app/components/bsy-button.js +1 -1
  61. data/app/components/bsy-checkbox.js +1 -0
  62. data/app/components/bsy-input-addon/addon.js +1 -0
  63. data/app/components/bsy-input-addon/input.js +1 -0
  64. data/app/components/bsy-input-addon.js +1 -0
  65. data/app/components/bsy-input.js +1 -0
  66. data/app/components/bsy-modal/body.js +1 -0
  67. data/app/components/bsy-modal/close.js +1 -0
  68. data/app/components/bsy-modal/footer.js +1 -0
  69. data/app/components/bsy-modal/header.js +1 -0
  70. data/app/components/bsy-modal.js +1 -0
  71. data/app/components/bsy-nav/item.js +1 -0
  72. data/app/components/bsy-nav/link.js +1 -0
  73. data/app/components/bsy-nav.js +1 -0
  74. data/app/components/bsy-radio-buttons/button.js +1 -0
  75. data/app/components/bsy-radio-buttons.js +1 -0
  76. data/app/components/bsy-radio.js +1 -0
  77. data/app/components/bsy-select-multiple.js +1 -0
  78. data/app/components/bsy-select.js +1 -0
  79. data/app/components/bsy-sheet/header.js +1 -0
  80. data/app/components/bsy-sheet.js +1 -0
  81. data/app/components/bsy-textarea.js +1 -0
  82. data/assets/stylesheets/bookingsync/_navs.scss +45 -0
  83. data/assets/stylesheets/bookingsync/_variables.scss +6 -0
  84. data/docs/Gemfile.lock +2 -2
  85. data/docs/content/components/_navbar.html +2 -0
  86. data/docs/content/components/sheet.md +33 -0
  87. data/lib/bootstrap/bookingsync/version.rb +1 -1
  88. data/package.json +4 -3
  89. data/tests/dummy/app/controllers/index.js +4 -5
  90. data/tests/dummy/app/styles/app.scss +5 -0
  91. data/tests/dummy/app/templates/application.hbs +11 -7
  92. data/tests/dummy/app/templates/index.hbs +226 -259
  93. data/tests/dummy/app/templates/navbar.hbs +9 -14
  94. data/tests/dummy/app/templates/sidebar.hbs +45 -47
  95. data/tests/integration/components/bsy-alert-test.js +24 -0
  96. data/tests/integration/components/bsy-nav/item-test.js +24 -0
  97. data/tests/integration/components/bsy-nav/link-test.js +24 -0
  98. data/tests/integration/components/bsy-nav-test.js +24 -0
  99. data/tests/integration/components/bsy-sheet/header-test.js +24 -0
  100. data/tests/integration/components/bsy-sheet-test.js +24 -0
  101. data/tests/integration/components/bsy-sheet.header-test.js +24 -0
  102. data/yarn.lock +5356 -0
  103. metadata +89 -4
@@ -1,275 +1,242 @@
1
- <section class="annotated-section">
2
- <header class="annotated-section-annotation">
3
- <h2 class="annotated-section-title">Forms</h2>
4
- </header>
5
- <div class="annotated-section-content">
6
- <form>
7
- <div class="form-group">
8
- <label for="email">Email address</label>
9
- {{one-way-input
10
- value=currentEmail
11
- update=(action (mut currentEmail))
12
- class="form-control"
13
- type="email"
14
- id="email"
1
+ {{#bsy-sheet id="forms"}}
2
+ {{#bsy-sheet.header}}
3
+ <h2>Forms</h2>
4
+ {{/bsy-sheet.header}}
5
+ <form>
6
+ {{bsy-input currentEmail
7
+ label="Email address"
8
+ update=(action (mut currentEmail))
9
+ type="email"
10
+ inputId="email"
11
+ }}
12
+
13
+ <div class="row">
14
+ <div class="col-xs-6">
15
+ {{bsy-input currentFirstName
16
+ label="First name"
17
+ update=(action (mut currentFirstName))
18
+ inputId="firstname"
15
19
  }}
16
20
  </div>
17
21
 
18
- <div class="row">
19
- <div class="col-xs-6">
20
- <div class="form-group">
21
- <label for="firstname">First name</label>
22
- {{one-way-input
23
- value=currentFirstName
24
- update=(action (mut currentFirstName))
25
- class="form-control"
26
- id="firstname"
27
- }}
28
- </div>
29
- </div>
30
-
31
- <div class="col-xs-6">
32
- <div class="form-group">
33
- <label for="lastname">Last name</label>
34
- {{one-way-input
35
- value=currentLastName
36
- update=(action (mut currentLastName))
37
- class="form-control"
38
- id="lastname"
39
- }}
40
- </div>
41
- </div>
42
- </div>
43
-
44
- <div class="form-group">
45
- <div class="input-group">
46
- <div class="input-group-addon">$</div>
47
- <label class="control-label" for="amount">Amount</label>
48
- {{one-way-input
49
- value=currentAmount
50
- update=(action (mut currentAmount))
51
- class="form-control"
52
- type="number"
53
- id="amount"
54
- }}
55
- <div class="input-group-addon">.00</div>
56
- </div>
57
- </div>
58
-
59
- <div class="row">
60
- <div class="col-xs-4">
61
- <div class="select">
62
- <label for="destination">Destination</label>
63
- {{#power-select
64
- selected=currentDestination
65
- options=cities
66
- onchange=(action (mut currentDestination))
67
- id="destination"
68
- class="form-control"
69
- as |name|
70
- }}
71
- {{name}}
72
- {{/power-select}}
73
- </div>
74
- </div>
75
-
76
- <div class="col-xs-4">
77
- <div class="select">
78
- <label for="destination2">Destination</label>
79
- {{#power-select
80
- selected=currentDestination
81
- options=cities
82
- searchEnabled=false
83
- onchange=(action (mut currentDestination))
84
- id="destination2"
85
- class="form-control"
86
- as |name|
87
- }}
88
- {{name}}
89
- {{/power-select}}
90
- </div>
91
- </div>
92
-
93
- <div class="col-xs-4">
94
- <div class="select">
95
- <label for="destinations">Destinations</label>
96
- {{#power-select-multiple
97
- selected=currentDestinations
98
- options=cities
99
- onchange=(action (mut currentDestinations))
100
- id="destinations"
101
- class="form-control"
102
- as |name|
103
- }}
104
- {{name}}
105
- {{/power-select-multiple}}
106
- </div>
107
- </div>
108
- </div>
109
-
110
- <div class="form-group">
111
- <label for="comment">Comment</label>
112
- {{one-way-textarea
113
- value=currentComment
114
- update=(action (mut currentComment))
115
- class="form-control"
116
- id="comment"
117
- rows=3
22
+ <div class="col-xs-6">
23
+ {{bsy-input currentLastName
24
+ label="Last name"
25
+ update=(action (mut currentLastName))
26
+ inputId="lastname"
118
27
  }}
119
28
  </div>
120
-
121
- <div class="checkbox">
122
- <label>
123
- {{one-way-checkbox
124
- isChecked
125
- update=(action (mut isChecked))
126
- }}
127
- Check me out
128
- </label>
129
- </div>
130
-
131
- <div class="radio">
132
- <label>
133
- {{one-way-radio
134
- selectedRentalType
135
- option="apartment"
136
- update=(action (mut selectedRentalType))
137
- }}
138
- Apartment
139
- </label>
140
- </div>
141
- <div class="radio">
142
- <label>
143
- {{one-way-radio
144
- selectedRentalType
145
- option="house"
146
- update=(action (mut selectedRentalType))
147
- }}
148
- House
149
- </label>
150
- </div>
151
- <div class="radio">
152
- <label>
153
- {{one-way-radio
154
- selectedRentalType
155
- option="villa"
156
- update=(action (mut selectedRentalType))
157
- }}
158
- Villa
159
- </label>
160
- </div>
161
-
162
- <h3>Radio buttons</h3>
163
- <div class="btn-group" role="group" aria-label="...">
164
- <div class="btn-group" data-toggle="buttons">
165
- <label class="btn btn-secondary active">
166
- {{one-way-radio
167
- selectedRentalType
168
- option="apartment"
169
- update=(action (mut selectedRentalType))
170
- }}
171
- Apartment
172
- </label>
173
- <label class="btn btn-secondary">
174
- {{one-way-radio
175
- selectedRentalType
176
- option="house"
177
- update=(action (mut selectedRentalType))
178
- }}
179
- House
180
- </label>
181
- <label class="btn btn-secondary">
182
- {{one-way-radio
183
- selectedRentalType
184
- option="villa"
185
- update=(action (mut selectedRentalType))
186
- }}
187
- Villa
188
- </label>
189
- </div>
29
+ </div>
30
+
31
+ {{#bsy-input-addon}}
32
+ {{#bsy-input-addon.addon}}${{/bsy-input-addon.addon}}
33
+ {{bsy-input-addon.input currentAmount
34
+ label="Amount"
35
+ update=(action (mut currentAmount))
36
+ type="number"
37
+ inputId="amount"
38
+ }}
39
+ {{#bsy-input-addon.addon}}.00{{/bsy-input-addon.addon}}
40
+ {{/bsy-input-addon}}
41
+
42
+ <div class="row">
43
+ <div class="col-xs-4">
44
+ {{#bsy-select currentDestination
45
+ label="Destination"
46
+ options=cities
47
+ onchange=(action (mut currentDestination))
48
+ inputId="destination"
49
+ as |name|
50
+ }}
51
+ {{name}}
52
+ {{/bsy-select}}
190
53
  </div>
191
- </form>
192
54
 
193
- <h3>Inline form</h3>
194
- <form class="form-inline">
195
- <div class="form-group">
196
- <label for="name2">Name</label>
197
- {{one-way-input
198
- value=currentName
199
- update=(action (mut currentName))
200
- class="form-control"
201
- id="name2"
55
+ <div class="col-xs-4">
56
+ {{#bsy-select currentDestination
57
+ label="Destination"
58
+ options=cities
59
+ searchEnabled=false
60
+ onchange=(action (mut currentDestination))
61
+ inputId="destination2"
62
+ as |name|
202
63
  }}
64
+ {{name}}
65
+ {{/bsy-select}}
203
66
  </div>
204
67
 
205
- <div class="form-group">
206
- <label for="email2">Email address</label>
207
- {{one-way-input
208
- value=currentEmail
209
- update=(action (mut currentEmail))
210
- class="form-control"
211
- type="email"
212
- id="email2"
68
+ <div class="col-xs-4">
69
+ {{#bsy-select-multiple currentDestinations
70
+ label="Destinations"
71
+ options=cities
72
+ onchange=(action (mut currentDestinations))
73
+ inputId="destinations"
74
+ as |name|
213
75
  }}
76
+ {{name}}
77
+ {{/bsy-select-multiple}}
214
78
  </div>
215
-
216
- {{#bsy-button type="submit" loadingLabel="Sending..."}}Send invitation{{/bsy-button}}
217
- </form>
218
- </div>
219
- </section>
220
-
221
- <section class="annotated-section">
222
- <header class="annotated-section-annotation">
223
- <h2 class="annotated-section-title">Buttons</h2>
224
- </header>
225
- <div class="annotated-section-content">
226
- {{#bsy-button type="primary"}}Primary{{/bsy-button}}
227
- {{#bsy-button type="secondary"}}Secondary{{/bsy-button}}
228
- {{#bsy-button type="secondary-inverse" class="btn-round" loadingLabel=""}}
229
- <span>&times;</span>
230
- {{/bsy-button}}
231
- {{#bsy-button type="danger"}}Danger{{/bsy-button}}
232
- {{#bsy-button type="link"}}Link{{/bsy-button}}
233
- </div>
234
- </section>
235
-
236
- <section class="annotated-section">
237
- <header class="annotated-section-annotation">
238
- <h2 class="annotated-section-title">Modal</h2>
239
- </header>
240
- <div class="annotated-section-content">
241
- {{#bsy-button type="primary" click=(action "toggleModal")}}Toggle Modal{{/bsy-button}}
242
-
243
- {{#if isShowingModal}}
244
- {{#modal-dialog close="toggleModal"
245
- targetAttachment="none"
246
- translucentOverlay=true
247
- overlay-class='modal in'
248
- container-class='modal-dialog'}}
249
- <div class="modal-content">
250
- <div class="modal-header">
251
- {{#bsy-button type="secondary-inverse" class="btn-sm btn-round btn-modal-close"
252
- loadingLabel="" click=(action "toggleModal")}}
253
- <span>&times;</span>
254
- {{/bsy-button}}
255
- <h3 class="modal-title">Modal Name or Headline</h3>
79
+ </div>
80
+
81
+ {{bsy-textarea currentComment
82
+ label="Comment"
83
+ update=(action (mut currentComment))
84
+ inputId="comment"
85
+ rows=3
86
+ }}
87
+
88
+ {{bsy-checkbox isChecked
89
+ label="Check me out"
90
+ update=(action (mut isChecked))
91
+ }}
92
+
93
+ {{bsy-radio selectedRentalType
94
+ label="Apartment"
95
+ option="apartment"
96
+ update=(action (mut selectedRentalType))
97
+ }}
98
+ {{bsy-radio selectedRentalType
99
+ label="House"
100
+ option="house"
101
+ update=(action (mut selectedRentalType))
102
+ }}
103
+ {{bsy-radio selectedRentalType
104
+ label="Villa"
105
+ option="villa"
106
+ update=(action (mut selectedRentalType))
107
+ }}
108
+
109
+ <h3>Radio buttons</h3>
110
+ {{#bsy-radio-buttons aria-label="Rental Type"}}
111
+ {{bsy-radio-buttons.button selectedRentalType
112
+ label="Apartment"
113
+ option="apartment"
114
+ update=(action (mut selectedRentalType))
115
+ }}
116
+ {{bsy-radio-buttons.button selectedRentalType
117
+ label="House"
118
+ option="house"
119
+ update=(action (mut selectedRentalType))
120
+ }}
121
+ {{bsy-radio-buttons.button selectedRentalType
122
+ label="Villa"
123
+ option="villa"
124
+ update=(action (mut selectedRentalType))
125
+ }}
126
+ {{/bsy-radio-buttons}}
127
+ </form>
128
+
129
+ <h3>Inline form</h3>
130
+ <form class="form-inline">
131
+ {{bsy-input currentName
132
+ label="Name"
133
+ update=(action (mut currentName))
134
+ inputId="name2"
135
+ }}
136
+
137
+ {{bsy-input currentEmail
138
+ label="Email address"
139
+ update=(action (mut currentEmail))
140
+ inputId="email2"
141
+ }}
142
+
143
+ {{#bsy-button type="submit" loadingLabel="Sending..."}}Send invitation{{/bsy-button}}
144
+ </form>
145
+ {{/bsy-sheet}}
146
+
147
+ {{#bsy-sheet id="buttons"}}
148
+ {{#bsy-sheet.header}}
149
+ <h2>Buttons</h2>
150
+ {{/bsy-sheet.header}}
151
+ {{#bsy-button type="primary"}}Primary{{/bsy-button}}
152
+ {{#bsy-button type="secondary"}}Secondary{{/bsy-button}}
153
+ {{bsy-button.close}}
154
+ {{#bsy-button type="danger"}}Danger{{/bsy-button}}
155
+ {{#bsy-button type="link"}}Link{{/bsy-button}}
156
+ {{/bsy-sheet}}
157
+
158
+ {{#bsy-sheet id="modal"}}
159
+ {{#bsy-sheet.header}}
160
+ <h2>Modal</h2>
161
+ {{/bsy-sheet.header}}
162
+ {{#bsy-button type="primary" click=(action "toggleModal")}}Toggle Modal{{/bsy-button}}
163
+
164
+ {{#if isShowingModal}}
165
+ {{#bsy-modal}}
166
+ {{#bsy-modal.header close=(action "toggleModal")}}
167
+ <h3 class="modal-title">Modal Name or Headline</h3>
168
+ {{/bsy-modal.header}}
169
+ {{#bsy-modal.body}}
170
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec luctus felis. Nulla a lacus libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam mollis tortor sodales libero euismod, eget suscipit arcu mollis. Nam nibh libero, tempus eu urna convallis, tempor efficitur ex. Donec molestie nibh ac luctus imperdiet. Nulla vitae vulputate ipsum. Phasellus porta gravida odio, in iaculis quam cursus et. Ut ac vehicula erat. Nulla sapien turpis, dapibus vel pellentesque sed, suscipit sit amet nibh. Pellentesque rhoncus nibh porttitor, posuere nulla quis, auctor nunc. Pellentesque fermentum tempor justo, a interdum nulla. Nullam lacus odio, posuere ut posuere hendrerit, semper non velit.</p>
171
+ <p>Cras sed consequat nunc. Phasellus sed sagittis nibh. Aliquam a vulputate risus. Vestibulum molestie bibendum dolor, vel blandit ipsum malesuada et. Praesent enim nibh, finibus vel luctus id, bibendum vitae eros. Aliquam vel semper diam. Cras elementum molestie eros, ac venenatis quam. Proin fermentum ante eros, mollis vestibulum eros consequat eu. Cras quis lorem vel metus hendrerit porttitor. Nunc hendrerit vitae nunc ut pellentesque. Etiam quis urna ac lorem eleifend ornare. Donec nibh ante, bibendum id pellentesque non, dignissim ut urna. Phasellus congue ultricies ipsum, ut luctus augue pulvinar nec.</p>
172
+ {{/bsy-modal.body}}
173
+ {{#bsy-modal.footer}}
174
+ <div class="row">
175
+ <div class="col-xs-6">
176
+ {{#bsy-button type="secondary" class="btn-block" click=(action "toggleModal")}}Close{{/bsy-button}}
256
177
  </div>
257
- <div class="modal-body">
258
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc nec luctus felis. Nulla a lacus libero. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Etiam mollis tortor sodales libero euismod, eget suscipit arcu mollis. Nam nibh libero, tempus eu urna convallis, tempor efficitur ex. Donec molestie nibh ac luctus imperdiet. Nulla vitae vulputate ipsum. Phasellus porta gravida odio, in iaculis quam cursus et. Ut ac vehicula erat. Nulla sapien turpis, dapibus vel pellentesque sed, suscipit sit amet nibh. Pellentesque rhoncus nibh porttitor, posuere nulla quis, auctor nunc. Pellentesque fermentum tempor justo, a interdum nulla. Nullam lacus odio, posuere ut posuere hendrerit, semper non velit.</p>
259
- <p>Cras sed consequat nunc. Phasellus sed sagittis nibh. Aliquam a vulputate risus. Vestibulum molestie bibendum dolor, vel blandit ipsum malesuada et. Praesent enim nibh, finibus vel luctus id, bibendum vitae eros. Aliquam vel semper diam. Cras elementum molestie eros, ac venenatis quam. Proin fermentum ante eros, mollis vestibulum eros consequat eu. Cras quis lorem vel metus hendrerit porttitor. Nunc hendrerit vitae nunc ut pellentesque. Etiam quis urna ac lorem eleifend ornare. Donec nibh ante, bibendum id pellentesque non, dignissim ut urna. Phasellus congue ultricies ipsum, ut luctus augue pulvinar nec.</p>
260
- </div>
261
- <div class="modal-footer">
262
- <div class="row">
263
- <div class="col-xs-6">
264
- {{#bsy-button type="secondary" class="btn-block" click=(action "toggleModal")}}Close{{/bsy-button}}
265
- </div>
266
- <div class="col-xs-6">
267
- {{#bsy-button type="primary" class="btn-block"}}Save Changes{{/bsy-button}}
268
- </div>
269
- </div>
178
+ <div class="col-xs-6">
179
+ {{#bsy-button type="primary" class="btn-block"}}Save Changes{{/bsy-button}}
270
180
  </div>
271
181
  </div>
272
- {{/modal-dialog}}
273
- {{/if}}
182
+ {{/bsy-modal.footer}}
183
+ {{/bsy-modal}}
184
+ {{/if}}
185
+ {{/bsy-sheet}}
186
+
187
+ {{#bsy-sheet id="tabs"}}
188
+ {{#bsy-nav class="nav-tabs"}}
189
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 1{{/bsy-nav.item}}
190
+ {{#bsy-nav.item active=true click=(action "sampleAction")}}Tab 2{{/bsy-nav.item}}
191
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 3{{/bsy-nav.item}}
192
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 4{{/bsy-nav.item}}
193
+ {{/bsy-nav}}
194
+ <div>
195
+ <p>Text...</p>
196
+ </div>
197
+ {{/bsy-sheet}}
198
+
199
+ {{#bsy-sheet id="pills" class="row"}}
200
+ {{#bsy-nav class="nav-pills nav-stacked col-sm-3"}}
201
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 1{{/bsy-nav.item}}
202
+ {{#bsy-nav.item active=true click=(action "sampleAction")}}Tab 2{{/bsy-nav.item}}
203
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 3{{/bsy-nav.item}}
204
+ {{#bsy-nav.item click=(action "sampleAction")}}Tab 4{{/bsy-nav.item}}
205
+ {{/bsy-nav}}
206
+ <div class="col-sm-9">
207
+ <p>Text...</p>
274
208
  </div>
275
- </section>
209
+ {{/bsy-sheet}}
210
+
211
+ {{#bsy-sheet id="calendar"}}
212
+ {{#bsy-sheet.header}}
213
+ <h2>Calendar</h2>
214
+ {{/bsy-sheet.header}}
215
+ {{#power-calendar as |calendar|}}
216
+ <div class="calendar">
217
+ {{calendar.nav}}
218
+ {{calendar.days}}
219
+ </div>
220
+ {{/power-calendar}}
221
+ {{/bsy-sheet}}
222
+
223
+ {{#bsy-sheet id="alerts"}}
224
+ {{#bsy-sheet.header}}
225
+ <h2>Alerts</h2>
226
+ {{/bsy-sheet.header}}
227
+ {{#bsy-alert type="success"}}
228
+ <strong>Well done!</strong> You successfully read this important alert message.
229
+ {{/bsy-alert}}
230
+ {{#bsy-alert type="info"}}
231
+ <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
232
+ {{/bsy-alert}}
233
+ {{#bsy-alert type="warning"}}
234
+ <strong>Warning!</strong> Better check yourself, you're not looking too good.
235
+ {{/bsy-alert}}
236
+ {{#bsy-alert type="danger"}}
237
+ <strong>Oh snap!</strong> Change a few things up and try submitting again.
238
+ {{/bsy-alert}}
239
+ {{#bsy-alert type="warning" dismissible=true}}
240
+ <strong>Warning!</strong> Better check yourself, you're not looking too good.
241
+ {{/bsy-alert}}
242
+ {{/bsy-sheet}}
@@ -1,24 +1,19 @@
1
1
  <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
2
2
  <div class="container-fluid">
3
3
  <div class="navbar-header">
4
- <button type="button" class="navbar-toggle navbar-toggle-context"
5
- data-toggle="collapse" data-target=".navbar-top-collapse">
6
- <span class="sr-only">Toggle Navigation</span>
7
- <span class="icon-bar"></span>
8
- <span class="icon-bar"></span>
9
- <span class="icon-bar"></span>
10
- </button>
11
4
  <div class="navbar-brand-container">
12
5
  <span class="navbar-brand">
13
- <h1><i class="icon-reviews"></i> Section Name</h1>
6
+ <h1>
7
+ <span class="navbar-breadcrumb">
8
+ <a href="https://www.bookingsync.com" class="navbar-breadcrumb-brand-logo">
9
+ <img src="/assets/images/bookingsync.png" alt="BookingSync">
10
+ </a>
11
+ /
12
+ </span>
13
+ Ember Addon
14
+ </h1>
14
15
  </span>
15
16
  </div>
16
17
  </div>
17
- <div class="collapse navbar-collapse navbar-top-collapse">
18
- <div class="navbar-right">
19
- {{#bsy-button type="secondary" class="navbar-btn"}}Secondary Button{{/bsy-button}}
20
- {{#bsy-button type="primary" class="navbar-btn"}}Call To Action{{/bsy-button}}
21
- </div>
22
- </div>
23
18
  </div>
24
19
  </nav>
@@ -1,47 +1,45 @@
1
- <nav class="menu menu-fixed flex-col">
2
- <header class="dropdown">
3
- <div class="bar">
4
- <img src="/assets/images/bookingsync_white.svg" class="brand-logo"
5
- alt="BookingSync">
6
- </div>
7
- </header>
8
- <div class="body flex-1">
9
- <ol>
10
- <li role="presentation" class="active">
11
- <a href="brand">
12
- <i class="bs-icon-bookingsync"></i>
13
- <span>Brand</span>
14
- </a>
15
- </li>
16
- <li role="presentation">
17
- <a href="forms">
18
- <i class="styleguide-icon-forms"></i>
19
- <span>Forms</span>
20
- </a>
21
- </li>
22
- <li role="presentation">
23
- <a href="buttons">
24
- <i class="styleguide-icon-buttons"></i>
25
- <span>Buttons</span></a>
26
- </li>
27
- <li role="presentation">
28
- <a href="utilities">
29
- <i class="styleguide-icon-utilities"></i>
30
- <span>Utilities</span>
31
- </a>
32
- </li>
33
- <li role="presentation">
34
- <a href="components">
35
- <i class="styleguide-icon-components"></i>
36
- <span>Components</span>
37
- </a>
38
- </li>
39
- <li role="presentation">
40
- <a href="ember/">
41
- <i class="styleguide-icon-ember"></i>
42
- <span>Ember Addon</span>
43
- </a>
44
- </li>
45
- </ol>
46
- </div>
47
- </nav>
1
+ <div class="panel panel-default">
2
+ <ul class="list-group list-group-with-icon list-unstyled">
3
+ <li>
4
+ <a href="/brand" class="list-group-item">
5
+ <i class="bs-icon-bookingsync bs-icon-fw"></i>&nbsp; <span>Brand</span>
6
+ </a>
7
+ </li>
8
+ <li>
9
+ <a href="/forms" class="list-group-item">
10
+ <i class="styleguide-icon-forms bs-icon-fw"></i>&nbsp; <span>Forms</span>
11
+ </a>
12
+ </li>
13
+ <li>
14
+ <a href="/buttons" class="list-group-item">
15
+ <i class="styleguide-icon-buttons bs-icon-fw"></i>&nbsp; <span>Buttons</span>
16
+ </a>
17
+ </li>
18
+ <li>
19
+ <a href="/utilities" class="list-group-item">
20
+ <i class="styleguide-icon-utilities bs-icon-fw"></i>&nbsp; <span>Utilities</span>
21
+ </a>
22
+ </li>
23
+ <li>
24
+ <a href="/components" class="list-group-item">
25
+ <i class="styleguide-icon-components bs-icon-fw"></i>&nbsp; <span>Components</span>
26
+ </a>
27
+ </li>
28
+ <li>
29
+ <a href="/compositions" class="list-group-item">
30
+ <i class="styleguide-icon-compositions bs-icon-fw"></i>&nbsp; <span>Compositions</span>
31
+ </a>
32
+ </li>
33
+ <li class="expanded active">
34
+ <a href="/brand" class="list-group-item">
35
+ <i class="styleguide-icon-ember bs-icon-fw"></i>&nbsp; <span>Ember Addon</span>
36
+ </a>
37
+ <ul class="list-group list-unstyled">
38
+ <li><a class="list-group-item" href="#forms">Forms</a></li>
39
+ <li><a class="list-group-item" href="#buttons">Buttons</a></li>
40
+ <li><a class="list-group-item" href="#modal">Modal</a></li>
41
+ <li><a class="list-group-item" href="#calendar">Calendar</a></li>
42
+ </ul>
43
+ </li>
44
+ </ul>
45
+ </div>
@@ -0,0 +1,24 @@
1
+ import { moduleForComponent, test } from 'ember-qunit';
2
+ import hbs from 'htmlbars-inline-precompile';
3
+
4
+ moduleForComponent('bsy-alert', 'Integration | Component | bsy alert', {
5
+ integration: true
6
+ });
7
+
8
+ test('it renders', function(assert) {
9
+ // Set any properties with this.set('myProperty', 'value');
10
+ // Handle any actions with this.on('myAction', function(val) { ... });"
11
+
12
+ this.render(hbs`{{bsy-alert}}`);
13
+
14
+ assert.equal(this.$().text().trim(), '');
15
+
16
+ // Template block usage:"
17
+ this.render(hbs`
18
+ {{#bsy-alert}}
19
+ template block text
20
+ {{/bsy-alert}}
21
+ `);
22
+
23
+ assert.equal(this.$().text().trim(), 'template block text');
24
+ });