fleetio_spark 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: a69211017e472afe66c06bd0059b93335ae63505a5fd1a155bad98b0ad87e13e
4
- data.tar.gz: bb6e0a58abd9da5b5017af1fbd55de6343eb7fb5ac04c35c30ffdcfd09e5bd95
3
+ metadata.gz: 8c18dcc464d1439c17ff81fc63ab162a3d46a65a31ee29b3d35a5153f78cd62a
4
+ data.tar.gz: a2ab3f019a1593984cd3cf75c3e5909bb003bfee24b8ae674619870a54a7811a
5
5
  SHA512:
6
- metadata.gz: ecda7214cdb6eeebc7045668854a94d4d88e506500d8a6d9698b80eff9d1f6ccdbcd31bf528dae0032e5e108e4d9fa5b85b889e0f799f858952bffc4c981a550
7
- data.tar.gz: 48db81b45d45a9425ebdd10b74ea8d4ec4ffa13cdaa8c11754dd54f37df5275707db0266f3b62cac264f16a4f4ce76f543d4ffe28b8e8b3b8a874a1b5a769451
6
+ metadata.gz: d4d491dd735a52618802360677852ebb1b8453b80e2424ec93967eff29120fea258a34fa20c9af3466599acb7ece875d785c1d0be0c2be780b6c605f143b0c0e
7
+ data.tar.gz: 79abf70c16ac38871f3d1e27b476c38fbf3455ecd6c54d244b408e6d028f677e5d682792794ec8b340f6b6b157089274acb02c58ee80836f9072ec8900c70733
@@ -33,11 +33,29 @@
33
33
 
34
34
  &.trial-ending-soon {
35
35
  color: $fl-yellow-600;
36
- background-color: $fl-yellow-50;
36
+
37
+ .trial-status-link {
38
+ &,
39
+ &:hover,
40
+ &:focus {
41
+ color: $fl-white;
42
+ background-color: $fl-yellow-600;
43
+ border-color: transparent;
44
+ }
45
+ }
37
46
  }
38
47
 
39
48
  &.trial-ended {
40
49
  color: $fl-red-600;
41
- background-color: $fl-red-25;
50
+
51
+ .trial-status-link {
52
+ &,
53
+ &:hover,
54
+ &:focus {
55
+ color: $fl-white;
56
+ background-color: $fl-red-600;
57
+ border-color: transparent;
58
+ }
59
+ }
42
60
  }
43
61
  }
@@ -49,13 +49,20 @@ module Spark
49
49
  options = add_class( options, config[:base_class] + "-group" )
50
50
  options['role'] = 'group'
51
51
 
52
+ content = capture( &block )
53
+ return if content.empty? ||
54
+ ( options.include?('if') && !options.delete('if') ) ||
55
+ ( options.include?('unless') && !!options.delete('unless') )
56
+
52
57
  concat header( title ) if title
53
58
  content_tag( config[:group_tag], options, &block )
54
59
  end
55
60
 
56
61
  def item( content=nil, url=nil, options=nil, &block )
57
62
  content, url, options = parse_item_args( content, url, options, &block)
58
- return '' if options.delete('if') == false || options.delete('unless') == true
63
+
64
+ return if ( options.include?('if') && !options.delete('if') ) ||
65
+ ( options.include?('unless') && !!options.delete('unless') )
59
66
 
60
67
  if url
61
68
  content_tag( config[:item_tag], role: 'none', class: config[:base_class] + "-item-wrapper" ) do
@@ -44,7 +44,9 @@ module Spark
44
44
  def item_tree( name, options={}, &block )
45
45
  content, url, options = parse_item_args( "#", options, &block)
46
46
 
47
- return '' if options.delete('if') == false || options.delete('unless') == true
47
+ return if content.empty? ||
48
+ ( options.include?('if') && !options.delete('if') ) ||
49
+ ( options.include?('unless') && !!options.delete('unless') )
48
50
 
49
51
  node = Spark::Helpers.dasherize( name.strip.downcase ).gsub('-','_')
50
52
  active = !!(options.delete( 'active' ) || content.match(/item-active/))
@@ -71,39 +73,6 @@ module Spark
71
73
  end
72
74
  end
73
75
 
74
- #def group( name, options={}, &block )
75
- #options = options.deep_stringify_keys
76
- #content = capture( &block )
77
- #active = !!(options.delete( 'active' ) || content.match(/nav-item-active/))
78
- #new = is_new?( options.delete( 'new' ) ) || content.match(/nav-item-new/)
79
-
80
- #icon = options.delete('icon')
81
- #node = Spark::Helpers.dasherize( name.strip.downcase ).gsub('-','_')
82
-
83
- #item_options = {
84
- #role: 'treeitem',
85
- #'aria-expanded': active || is_expanded?(node),
86
- #'data-node': node,
87
- #active: active,
88
- #new: new,
89
- #icon: icon,
90
- #icon_options: { preset: 'icon_l' }
91
- #}
92
-
93
- #item('#', item_options ) {
94
- #concat use_svg( icon, preset: 'icon_l' ) if icon
95
- #concat name
96
- #if new
97
- #concat " "
98
- #concat content_tag( :span, class: 'nav-item-new' ) { "New" }
99
- #end
100
- #concat use_svg( 'chevron-down', height: 9, class: 'expand-tree-icon' )
101
-
102
- #concat content_tag( :ul, role: 'group', class: 'nav-tree-group', &block )
103
- #}
104
-
105
- #end
106
-
107
76
  private
108
77
 
109
78
  def _cookie
@@ -1,3 +1,3 @@
1
1
  module FleetioSpark
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -1240,11 +1240,17 @@ input:checked + .check-switch-panel {
1240
1240
  display: flex;
1241
1241
  margin-right: 16px; } }
1242
1242
  .trial-status.trial-ending-soon {
1243
- color: #F2AA2A;
1244
- background-color: #FFF1CF; }
1243
+ color: #F2AA2A; }
1244
+ .trial-status.trial-ending-soon .trial-status-link, .trial-status.trial-ending-soon .trial-status-link:hover, .trial-status.trial-ending-soon .trial-status-link:focus {
1245
+ color: #FFFFFF;
1246
+ background-color: #F2AA2A;
1247
+ border-color: transparent; }
1245
1248
  .trial-status.trial-ended {
1246
- color: #EA352B;
1247
- background-color: #FFF0EF; }
1249
+ color: #EA352B; }
1250
+ .trial-status.trial-ended .trial-status-link, .trial-status.trial-ended .trial-status-link:hover, .trial-status.trial-ended .trial-status-link:focus {
1251
+ color: #FFFFFF;
1252
+ background-color: #EA352B;
1253
+ border-color: transparent; }
1248
1254
 
1249
1255
  .search-panel {
1250
1256
  width: 100%;
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fleetio_spark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -180,10 +180,10 @@ files:
180
180
  - lib/fleetio_spark.rb
181
181
  - lib/fleetio_spark/helper.rb
182
182
  - lib/fleetio_spark/version.rb
183
- - public/spark-0.1.2.css
184
- - public/spark-0.1.2.css.gz
185
- - public/spark-0.1.2.js
186
- - public/spark-0.1.2.js.gz
183
+ - public/spark-0.1.3.css
184
+ - public/spark-0.1.3.css.gz
185
+ - public/spark-0.1.3.js
186
+ - public/spark-0.1.3.js.gz
187
187
  homepage:
188
188
  licenses:
189
189
  - MIT
Binary file