ratchet_design 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ratchet/base/form.js +9 -3
  3. data/app/assets/javascripts/ratchet/base/sync-input-value.js +9 -18
  4. data/app/assets/javascripts/ratchet/core.js +9 -3
  5. data/app/assets/javascripts/ratchet/enhancement/lightbox.js +6 -6
  6. data/app/assets/javascripts/ratchet/enhancement/mapbox.js +48 -0
  7. data/app/assets/stylesheets/ratchet/_core.scss +4 -2
  8. data/app/assets/stylesheets/ratchet/base/_button.scss +15 -14
  9. data/app/assets/stylesheets/ratchet/base/_document.scss +30 -66
  10. data/app/assets/stylesheets/ratchet/base/_form.scss +162 -529
  11. data/app/assets/stylesheets/ratchet/base/_label-placeholder.scss +97 -0
  12. data/app/assets/stylesheets/ratchet/base/_media.scss +1 -1
  13. data/app/assets/stylesheets/ratchet/base/_multistep-form.scss +65 -11
  14. data/app/assets/stylesheets/ratchet/base/_section.scss +284 -0
  15. data/app/assets/stylesheets/ratchet/base/_table.scss +4 -4
  16. data/app/assets/stylesheets/ratchet/base/_text.scss +50 -45
  17. data/app/assets/stylesheets/ratchet/base/_validation.scss +83 -0
  18. data/app/assets/stylesheets/ratchet/enhancement/_hero.scss +39 -39
  19. data/app/assets/stylesheets/ratchet/utility/_color.scss +135 -0
  20. data/app/assets/stylesheets/ratchet/utility/_global.scss +21 -40
  21. data/app/assets/stylesheets/ratchet/utility/_loader.scss +1 -1
  22. data/app/helpers/ratchet/application_helper.rb +16 -10
  23. data/app/helpers/ratchet/form_helper.rb +302 -18
  24. data/app/views/layouts/ratchet/default.html.slim +2 -2
  25. data/app/views/shared/ratchet/_defs.html.slim +67 -0
  26. data/app/views/shared/ratchet/_footer.html.slim +6 -0
  27. data/app/views/shared/ratchet/_header.html.slim +5 -0
  28. data/app/views/shared/ratchet/_icons.html.slim +53 -6
  29. data/lib/ratchet_design/version.rb +1 -1
  30. data/public/{core-0.1.12.js → core-0.1.13.js} +66 -66
  31. data/public/core-0.1.13.js.gz +0 -0
  32. data/public/core-0.1.13.map.json +1 -0
  33. data/public/{fonts-woff-0.1.12.css → fonts-woff-0.1.13.css} +0 -0
  34. data/public/{fonts-woff-0.1.12.css.gz → fonts-woff-0.1.13.css.gz} +0 -0
  35. data/public/{fonts-woff2-0.1.12.css → fonts-woff2-0.1.13.css} +0 -0
  36. data/public/{fonts-woff2-0.1.12.css.gz → fonts-woff2-0.1.13.css.gz} +0 -0
  37. metadata +36 -32
  38. data/app/assets/javascripts/ratchet/utility/loader.js +0 -84
  39. data/app/assets/stylesheets/ratchet/enhancement/_contrast-section.scss +0 -22
  40. data/public/core-0.1.12.js.gz +0 -0
  41. data/public/core-0.1.12.map.json +0 -1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratchet_design
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-14 00:00:00.000000000 Z
12
+ date: 2017-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cyborg
@@ -17,84 +17,84 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.4'
20
+ version: '0.5'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.4'
27
+ version: '0.5'
28
28
  - !ruby/object:Gem::Dependency
29
- name: slim-rails
29
+ name: block_helpers
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '3.1'
34
+ version: 0.3.3
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '3.1'
41
+ version: 0.3.3
42
42
  - !ruby/object:Gem::Dependency
43
- name: country_select
43
+ name: to_words
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '2.5'
48
+ version: 1.1.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '2.5'
55
+ version: 1.1.0
56
56
  - !ruby/object:Gem::Dependency
57
- name: bundler
57
+ name: country_select
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '1.12'
63
- type: :development
62
+ version: '2.5'
63
+ type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '1.12'
69
+ version: '2.5'
70
70
  - !ruby/object:Gem::Dependency
71
- name: rack-cors
71
+ name: slim-rails
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '0.4'
77
- type: :development
76
+ version: '3.1'
77
+ type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '0.4'
83
+ version: '3.1'
84
84
  - !ruby/object:Gem::Dependency
85
- name: rake
85
+ name: gaffe
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '10.0'
91
- type: :development
90
+ version: '1'
91
+ type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '10.0'
97
+ version: '1'
98
98
  description: Add this gem to your Rails app to implement the Ratchet Design style
99
99
  guide.
100
100
  email:
@@ -118,23 +118,25 @@ files:
118
118
  - app/assets/javascripts/ratchet/enhancement/_switcheroo.js
119
119
  - app/assets/javascripts/ratchet/enhancement/_textcounter.js
120
120
  - app/assets/javascripts/ratchet/enhancement/lightbox.js
121
+ - app/assets/javascripts/ratchet/enhancement/mapbox.js
121
122
  - app/assets/javascripts/ratchet/enhancement/notice.js
122
123
  - app/assets/javascripts/ratchet/enhancement/sticky.js
123
124
  - app/assets/javascripts/ratchet/enhancement/waypoints.js
124
125
  - app/assets/javascripts/ratchet/shim/scope.js
125
126
  - app/assets/javascripts/ratchet/utility/load_font.js
126
127
  - app/assets/javascripts/ratchet/utility/load_script.js
127
- - app/assets/javascripts/ratchet/utility/loader.js
128
128
  - app/assets/stylesheets/ratchet/_core.scss
129
129
  - app/assets/stylesheets/ratchet/base/_button.scss
130
130
  - app/assets/stylesheets/ratchet/base/_document.scss
131
131
  - app/assets/stylesheets/ratchet/base/_form.scss
132
+ - app/assets/stylesheets/ratchet/base/_label-placeholder.scss
132
133
  - app/assets/stylesheets/ratchet/base/_list.scss
133
134
  - app/assets/stylesheets/ratchet/base/_media.scss
134
135
  - app/assets/stylesheets/ratchet/base/_multistep-form.scss
136
+ - app/assets/stylesheets/ratchet/base/_section.scss
135
137
  - app/assets/stylesheets/ratchet/base/_table.scss
136
138
  - app/assets/stylesheets/ratchet/base/_text.scss
137
- - app/assets/stylesheets/ratchet/enhancement/_contrast-section.scss
139
+ - app/assets/stylesheets/ratchet/base/_validation.scss
138
140
  - app/assets/stylesheets/ratchet/enhancement/_feature.scss
139
141
  - app/assets/stylesheets/ratchet/enhancement/_hero.scss
140
142
  - app/assets/stylesheets/ratchet/enhancement/_lightbox.scss
@@ -143,6 +145,7 @@ files:
143
145
  - app/assets/stylesheets/ratchet/enhancement/_tooltip.scss
144
146
  - app/assets/stylesheets/ratchet/fonts-woff.css
145
147
  - app/assets/stylesheets/ratchet/fonts-woff2.css
148
+ - app/assets/stylesheets/ratchet/utility/_color.scss
146
149
  - app/assets/stylesheets/ratchet/utility/_global.scss
147
150
  - app/assets/stylesheets/ratchet/utility/_grid.scss
148
151
  - app/assets/stylesheets/ratchet/utility/_loader.scss
@@ -160,18 +163,19 @@ files:
160
163
  - app/helpers/ratchet/application_helper.rb
161
164
  - app/helpers/ratchet/form_helper.rb
162
165
  - app/views/layouts/ratchet/default.html.slim
166
+ - app/views/shared/ratchet/_defs.html.slim
163
167
  - app/views/shared/ratchet/_footer.html.slim
164
168
  - app/views/shared/ratchet/_header.html.slim
165
169
  - app/views/shared/ratchet/_icons.html.slim
166
170
  - lib/ratchet_design.rb
167
171
  - lib/ratchet_design/version.rb
168
- - public/core-0.1.12.js
169
- - public/core-0.1.12.js.gz
170
- - public/core-0.1.12.map.json
171
- - public/fonts-woff-0.1.12.css
172
- - public/fonts-woff-0.1.12.css.gz
173
- - public/fonts-woff2-0.1.12.css
174
- - public/fonts-woff2-0.1.12.css.gz
172
+ - public/core-0.1.13.js
173
+ - public/core-0.1.13.js.gz
174
+ - public/core-0.1.13.map.json
175
+ - public/fonts-woff-0.1.13.css
176
+ - public/fonts-woff-0.1.13.css.gz
177
+ - public/fonts-woff2-0.1.13.css
178
+ - public/fonts-woff2-0.1.13.css.gz
175
179
  homepage:
176
180
  licenses:
177
181
  - MIT
@@ -192,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
196
  version: '0'
193
197
  requirements: []
194
198
  rubyforge_project:
195
- rubygems_version: 2.6.6
199
+ rubygems_version: 2.5.1
196
200
  signing_key:
197
201
  specification_version: 4
198
202
  summary: The Ratchet Design System
@@ -1,84 +0,0 @@
1
- /**
2
- * Loader 0.0.1
3
- * Compose loader module
4
- * @author Kyle Foster (@hkfoster)
5
- * @license MIT
6
- **/
7
-
8
- var toolbox = require( 'compose-toolbox' )
9
-
10
- // Public API function
11
- var loader = function( settings ) {
12
-
13
- // Overridable defaults
14
- var defaults = {
15
- selector : document.body,
16
- loaderClass : 'loader',
17
- loadingMessage : 'Hang tight…',
18
- loadingClass : 'loading',
19
- successMessage : 'Got it!',
20
- successClass : 'success',
21
- failureMessage : 'Hold up!',
22
- failureClass : 'failure'
23
- };
24
-
25
- // Extend defaults
26
- var options = toolbox.merge( defaults, settings );
27
-
28
- // If it doesn’t already exist
29
- if ( !document.querySelector( 'div.' + options.loaderClass ) ) {
30
-
31
- // Create and prepend loader element
32
- options.selector.insertAdjacentHTML( 'afterbegin', '<div class="' + options.loaderClass + '"></div>' );
33
-
34
- }
35
-
36
- // Cache loader element
37
- var element = document.querySelector( 'div.' + options.loaderClass );
38
-
39
- // Show loader icon function
40
- var show = function( state, message ) {
41
-
42
- // Loader pending state
43
- if ( state === 'pending' ) {
44
-
45
- element.textContent = message || options.loadingMessage;
46
- element.classList.remove( options.successClass, options.failureClass );
47
- element.classList.add( options.loadingClass );
48
-
49
- // Loader failure state
50
- } else if ( state === 'failure' ) {
51
-
52
- element.textContent = message || options.failureMessage;
53
- element.classList.remove( options.loadingClass );
54
- element.classList.add( options.failureClass );
55
-
56
- // Loader success state
57
- } else if ( state === 'success' ) {
58
-
59
- element.textContent = message || options.successMessage;
60
- element.classList.remove( options.loadingClass );
61
- element.classList.add( options.successClass );
62
-
63
- }
64
-
65
- };
66
-
67
- // Hide loader icon function
68
- var hide = function() {
69
-
70
- // Remove state classes altogether
71
- element.classList.remove( options.loadingClass, options.successClass, options.failureClass );
72
-
73
- };
74
-
75
- // Public functions
76
- return {
77
- show : show,
78
- hide : hide
79
- };
80
-
81
- };
82
-
83
- // Public API
84
- module.exports = loader;
@@ -1,22 +0,0 @@
1
- /* ========================================================================== *
2
- * Contrast section
3
- * -------------------------------------------------------------------------- */
4
-
5
- /* ===================================== *
6
- * a. Utilities
7
- * ------------------------------------- */
8
-
9
- // Full-width, spaced, colored section mixin
10
- @mixin contrast-section($background: $alabaster, $spacing: vr(4), $border-color: $iron) {
11
- padding-top: $spacing;
12
- padding-bottom: $spacing;
13
- border: solid transparent;
14
- border-width: $spacing 0;
15
- @include cover-background($background);
16
-
17
- &:before {
18
- box-shadow:
19
- inset 0 1px $border-color,
20
- inset 0 -1px $border-color;
21
- }
22
- }
Binary file