zuora_connect_ui 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61dbf28cd4e87b4b27c3e67576ca433246c8955c
4
- data.tar.gz: 3c020f29854c49496ae961ffd609ad0929acc86f
3
+ metadata.gz: 714d7801de18333460c5c07c46c4a8c45244e6bb
4
+ data.tar.gz: 8037a6ea750cc3f5371584e91108fde34ce68bdd
5
5
  SHA512:
6
- metadata.gz: 34c9ca321f8a4d94b2c055d4d4d10d73f051bfac879e50ce61906c1a3a64860f304229a139498993cfb0d239fb357a1ca806f4c0a307c3277821a03a5a8e36d0
7
- data.tar.gz: eca627769e9fb32fbd21e08efcee7b032a3a5b84e28d5c6c5c873f1d24a4a95a63b097872e897ad892d40989c6836afe00edbd5a719eebb24004051bba8e2264
6
+ metadata.gz: 08d4aae702723356b98d0544c2282572e540824563811c1d46351c61f92284136dba7a4912d05c63ba71f9b790187aeb5487b6d937a0f6328369eb93440565c2
7
+ data.tar.gz: b8a793fd2962399647c3024f41b1f4a1cd8883036fafa8bacf9ad1cbf24d9e0180cf5aee1f9854b069ac970504c41b9dd2e70e355c7196d1154cfffd8ff7cccb
data/README.md CHANGED
@@ -212,6 +212,16 @@ Label does not need the `for` html attribute, however the `div.radio` is require
212
212
  </div>
213
213
  ```
214
214
 
215
+ ### Date Picker
216
+
217
+ ```erb
218
+ <div class="zuo-datepicker date">
219
+ <%= f.text_field :Start_Date, value: Date.yesterday, class: "zuo-textbox" %>
220
+ <%= f.label :Start_Date, class: "zuo-floating-label floating" %>
221
+ <span class="input-group-addon z-icon-calendar"></span>
222
+ </div>
223
+ ```
224
+
215
225
 
216
226
  ### File Upload
217
227
 
@@ -16,6 +16,10 @@
16
16
  //= require select2_locale_zh-CN
17
17
  //
18
18
  //
19
+ // Bootstrap Datepicker
20
+ //
21
+ //= require bootstrap-datepicker
22
+ //
19
23
  // Datatables
20
24
  //
21
25
  //= require dataTables/jquery.dataTables
@@ -110,6 +110,9 @@ $check-icon: "\E936";
110
110
  @import "select2";
111
111
  @import "select2-bootstrap";
112
112
 
113
+ // Bootstrap Datepicker
114
+ @import "bootstrap-datepicker";
115
+
113
116
  // Glyphicon and FA
114
117
  @import "css/icons.scss";
115
118
 
@@ -119,6 +122,7 @@ $check-icon: "\E936";
119
122
  @import "zuora_connect_ui/breadcrumb_bar";
120
123
  @import "zuora_connect_ui/buttons";
121
124
  @import "zuora_connect_ui/datatables";
125
+ @import "zuora_connect_ui/datepicker";
122
126
  @import "zuora_connect_ui/grid_view";
123
127
  @import "zuora_connect_ui/input";
124
128
  @import "zuora_connect_ui/modal";
@@ -0,0 +1,79 @@
1
+ .datepicker {
2
+ padding: 0 1rem .5rem 1rem;
3
+ }
4
+
5
+ .datepicker-switch,
6
+ .datepicker .prev,
7
+ .datepicker .next {
8
+ padding: 1rem 0;
9
+ }
10
+
11
+ .datepicker-switch {
12
+ font-size: .9rem;
13
+ font-weight: 400;
14
+ min-width: 10rem;
15
+ }
16
+
17
+ .datepicker .prev,
18
+ .datepicker .next, {
19
+ color: $support-1;
20
+ font-size: .7rem;
21
+ font-weight: 700;
22
+ }
23
+
24
+ .datepicker .prev:hover,
25
+ .datepicker .next:hover,
26
+ .datepicker .datepicker-switch:hover {
27
+ background: $neutral-4;
28
+ }
29
+
30
+ .datepicker .dow {
31
+ font-size: .75rem;
32
+ font-weight: 400;
33
+ color: rgb(110, 124, 137);
34
+ padding-top: 0;
35
+ padding-bottom: .75rem;
36
+ }
37
+
38
+ .datepicker table tr td.day {
39
+ font-size: .75rem;
40
+ border-radius: 0;
41
+
42
+ &:hover {
43
+ background-color: $neutral-3;
44
+ }
45
+
46
+ &.active,
47
+ &.active:hover {
48
+ background-color: $support-1;
49
+ background-image: none;
50
+ }
51
+ }
52
+
53
+ .datepicker table tr td.disabled,
54
+ .datepicker table tr td.disabled:hover {
55
+ background: $neutral-2;
56
+ color: #a5a3b6;
57
+ cursor: not-allowed;
58
+ }
59
+
60
+ .zuo-datepicker.date {
61
+ display: block;
62
+
63
+ .input-group-addon {
64
+ font-size: 1.1rem;
65
+ color: $support-1;
66
+ background-color: transparent;
67
+ border: none;
68
+ padding: 1rem 0;
69
+ position: absolute;
70
+ top: 0;
71
+ right: 0;
72
+ width: unset;
73
+ cursor: pointer;
74
+ }
75
+ }
76
+
77
+ .zuo-textbox:focus + .input-group-addon {
78
+ border-bottom: 1px solid $support-1;
79
+ }
@@ -2,6 +2,7 @@ require 'zuora_connect_ui/version'
2
2
  require 'jquery-ui-rails'
3
3
  require 'bootstrap-sass'
4
4
  require 'select2-rails'
5
+ require 'bootstrap-datepicker-rails'
5
6
  require 'jquery-datatables-rails'
6
7
  require 'peek'
7
8
  require 'peek/views/connect'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraConnectUi
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bootstrap-sass
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bootstrap-datepicker-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: jquery-datatables-rails
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -140,6 +154,7 @@ files:
140
154
  - app/assets/stylesheets/zuora_connect_ui/breadcrumb_bar.scss
141
155
  - app/assets/stylesheets/zuora_connect_ui/buttons.scss
142
156
  - app/assets/stylesheets/zuora_connect_ui/datatables.scss
157
+ - app/assets/stylesheets/zuora_connect_ui/datepicker.scss
143
158
  - app/assets/stylesheets/zuora_connect_ui/grid_view.scss
144
159
  - app/assets/stylesheets/zuora_connect_ui/input.scss
145
160
  - app/assets/stylesheets/zuora_connect_ui/modal.scss