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
@@ -0,0 +1 @@
1
+ export { default } from 'ember-cli-bootstrap-bookingsync-sass/components/bsy-textarea';
@@ -57,4 +57,49 @@
57
57
  right: -1px;
58
58
  }
59
59
  }
60
+
61
+ & > .nav-pills {
62
+ background-color: $sheet-navbar-pills-bg;
63
+ margin: - $sheet-padding;
64
+ margin-right: $sheet-padding;
65
+ padding-right: 0;
66
+
67
+ > li > a {
68
+ margin-right: 0;
69
+ border-top: 0;
70
+ border-radius: 0;
71
+ color: $gray;
72
+ border-top: 1px solid transparent;
73
+ border-bottom: 1px solid transparent;
74
+ border-right: 1px solid $gray-lightest;
75
+
76
+ &:hover {
77
+ color: $gray;
78
+ background-color: $sheet-navbar-pills-bg-hover;
79
+ border-radius: 0;
80
+ }
81
+ }
82
+
83
+ > li.active a {
84
+ color: $brand-primary;
85
+ background-color: $sheet-bg;
86
+ border-top: 1px solid $gray-lightest;
87
+ border-bottom: 1px solid $gray-lightest;
88
+ border-right: 1px solid transparent;
89
+
90
+ &:hover {
91
+ color: $brand-primary;
92
+ background-color: $sheet-navbar-pills-bg-hover;
93
+ }
94
+ }
95
+
96
+ > li:first-of-type a,
97
+ > li:first-of-type a:hover {
98
+ border-top: 1px solid transparent;
99
+ }
100
+
101
+ &.nav-stacked > li + li {
102
+ margin-top: 0;
103
+ }
104
+ }
60
105
  }
@@ -318,6 +318,12 @@ $sheet-navbar-tabs-bg: $bs-lightpurple !default;
318
318
  $sheet-navbar-tabs-bg-hover: #FAFBFC !default; // rgba(255, 255, 255, 0.75);
319
319
 
320
320
 
321
+ //== Sheet Pills
322
+ //
323
+ $sheet-navbar-pills-bg: $bs-lightpurple !default;
324
+ $sheet-navbar-pills-bg-hover: #FAFBFC !default; // rgba(255, 255, 255, 0.75);
325
+
326
+
321
327
  //== Switch
322
328
  //
323
329
  $switch-label-size: 10px !default;
data/docs/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- bootstrap-bookingsync-sass (1.0.0.beta11)
4
+ bootstrap-bookingsync-sass (1.0.0.beta12)
5
5
  bootstrap-sass (>= 3.3.5)
6
6
 
7
7
  GEM
@@ -121,4 +121,4 @@ DEPENDENCIES
121
121
  uglifier
122
122
 
123
123
  BUNDLED WITH
124
- 1.12.5
124
+ 1.13.6
@@ -18,6 +18,8 @@
18
18
  class: "list-group-item") %></li>
19
19
  <li><%= link_to("Sheet with auto-stackable tabs", "#sheet-with-auto-stackable-tabs",
20
20
  class: "list-group-item") %></li>
21
+ <li><%= link_to("Sheet with stacked pills", "#sheet-with-stacked-pills",
22
+ class: "list-group-item") %></li>
21
23
  <li><%= link_to("Sheet with alerts", "#sheet-with-alerts", class: "list-group-item") %></li>
22
24
  <li><%= link_to("Chosen select", "#chosen-select", class: "list-group-item") %></li>
23
25
  <li><%= link_to("Chosen multiple select", "#chosen-multiple-select",
@@ -237,6 +237,39 @@
237
237
  </div>
238
238
  ~~~
239
239
 
240
+ <div class="example">
241
+ <div class="sheet-header">
242
+ <h3 id="sheet-with-stacked-pills">Sheet with stacked pills</h3>
243
+ </div>
244
+ <div class="bs-example bs-sheet"
245
+ data-example-id="sheet-with-stacked-tabs">
246
+ <div class="sheet row">
247
+ <ul class="nav nav-pills nav-stacked col-sm-3">
248
+ <li><a href="#">Tab 1</a></li>
249
+ <li class="active"><a href="#">Tab 2</a></li>
250
+ <li><a href="#">Tab 3</a></li>
251
+ <li><a href="#">Tab 4</a></li>
252
+ </ul>
253
+ <div class="col-sm-9">
254
+ <p>Text...</p>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ </div>
259
+ ~~~ html
260
+ <div class="sheet row">
261
+ <ul class="nav nav-pills nav-stacked col-sm-3">
262
+ <li><a href="#">Tab 1</a></li>
263
+ <li class="active"><a href="#">Tab 2</a></li>
264
+ <li><a href="#">Tab 3</a></li>
265
+ <li><a href="#">Tab 4</a></li>
266
+ </ul>
267
+ <div class="col-sm-9">
268
+ <p>Text...</p>
269
+ </div>
270
+ </div>
271
+ ~~~
272
+
240
273
  <div class="example">
241
274
  <div class="sheet-header">
242
275
  <h3 id="sheet-with-alerts">Sheet with alerts</h3>
@@ -1,5 +1,5 @@
1
1
  module Bootstrap
2
2
  module BookingSync
3
- VERSION = '1.0.0.beta11'
3
+ VERSION = "1.0.0.beta12"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli-bootstrap-bookingsync-sass",
3
- "version": "0.0.0",
3
+ "version": "1.0.0-beta.12",
4
4
  "description": "Sass-powered version of Bootstrap with BookingSync theme.",
5
5
  "directories": {
6
6
  "doc": "doc",
@@ -11,11 +11,11 @@
11
11
  "start": "ember server",
12
12
  "test": "ember try:testall"
13
13
  },
14
- "repository": "",
14
+ "repository": "https://github.com/BookingSync/bootstrap-bookingsync-sass",
15
15
  "engines": {
16
16
  "node": ">= 0.10.0"
17
17
  },
18
- "author": "",
18
+ "author": "Sebastien Grosjean",
19
19
  "license": "MIT",
20
20
  "devDependencies": {
21
21
  "broccoli-asset-rev": "^2.2.0",
@@ -39,6 +39,7 @@
39
39
  "ember-disable-proxy-controllers": "^1.0.1",
40
40
  "ember-export-application-global": "^1.0.4",
41
41
  "ember-load-initializers": "^0.5.0",
42
+ "ember-power-calendar": "0.1.4",
42
43
  "ember-resolver": "^2.0.3",
43
44
  "ember-try": "~0.0.8",
44
45
  "loader.js": "^4.0.0"
@@ -21,11 +21,10 @@ export default Ember.Controller.extend({
21
21
  actions: {
22
22
  toggleModal: function() {
23
23
  this.toggleProperty('isShowingModal');
24
- if (this.get('isShowingModal') === true) {
25
- $('body').addClass('modal-open');
26
- } else {
27
- $('body').removeClass('modal-open');
28
- }
24
+ },
25
+
26
+ sampleAction: function() {
27
+ alert("Sample action");
29
28
  }
30
29
  }
31
30
  });
@@ -1,3 +1,8 @@
1
1
  @import "ember-modal-dialog/ember-modal-structure";
2
2
  @import "bootstrap-bookingsync";
3
3
  @import "ember-power-select";
4
+ @import "ember-power-calendar";
5
+
6
+ .ember-power-calendar {
7
+ @include ember-power-calendar($cell-size: 40px);
8
+ }
@@ -1,7 +1,11 @@
1
- {{partial "sidebar"}}
2
- <div class="sided-content">
3
- {{partial "navbar"}}
4
- <section class="main-content">
5
- {{outlet}}
6
- </section>
7
- </div>
1
+ {{partial "navbar"}}
2
+ <section class="main-content container-fluid">
3
+ <div class="row">
4
+ <div class="col-sm-3">
5
+ {{partial "sidebar"}}
6
+ </div>
7
+ <div class="col-sm-9">
8
+ {{outlet}}
9
+ </div>
10
+ </div>
11
+ </section>