playbook_ui 14.10.0.pre.rc.8 → 14.10.0.pre.rc.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +5 -3
- data/app/pb_kits/playbook/utilities/_hover.scss +11 -2
- data/app/pb_kits/playbook/utilities/globalProps.ts +2 -0
- data/app/pb_kits/playbook/utilities/test/globalProps/hover.test.js +15 -0
- data/dist/chunks/{_typeahead-B8fkIeXA.js → _typeahead-DW9yLrAA.js} +1 -1
- data/dist/chunks/{_weekday_stacked-B6zpg7_x.js → _weekday_stacked-Czv-yJw4.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/hover.rb +7 -1
- data/lib/playbook/version.rb +1 -1
- metadata +3 -3
data/lib/playbook/hover.rb
CHANGED
@@ -29,12 +29,16 @@ module Playbook
|
|
29
29
|
[]
|
30
30
|
end
|
31
31
|
|
32
|
+
def hover_underline_values
|
33
|
+
[true, false]
|
34
|
+
end
|
35
|
+
|
32
36
|
def hover_values
|
33
37
|
hover_options.keys.select { |sk| try(sk) }
|
34
38
|
end
|
35
39
|
|
36
40
|
def hover_attributes
|
37
|
-
%w[background shadow scale color]
|
41
|
+
%w[background shadow scale color underline]
|
38
42
|
end
|
39
43
|
|
40
44
|
def hover_props
|
@@ -51,6 +55,8 @@ module Playbook
|
|
51
55
|
value.each do |key, val|
|
52
56
|
if %i[background color].include?(key)
|
53
57
|
css += "#{prefix}_#{key}-#{val} " if hover_attributes.include?(key.to_s)
|
58
|
+
elsif %i[underline].include?(key) && val == true
|
59
|
+
css += "hover_underline "
|
54
60
|
elsif hover_attributes.include?(key.to_s) && send("hover_#{key}_values").include?(val.to_s)
|
55
61
|
css += "#{prefix}_#{key}_#{val} "
|
56
62
|
end
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.10.0.pre.rc.
|
4
|
+
version: 14.10.0.pre.rc.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -3189,8 +3189,8 @@ files:
|
|
3189
3189
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3190
3190
|
- app/pb_kits/playbook/utilities/text.ts
|
3191
3191
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3192
|
-
- dist/chunks/_typeahead-
|
3193
|
-
- dist/chunks/_weekday_stacked-
|
3192
|
+
- dist/chunks/_typeahead-DW9yLrAA.js
|
3193
|
+
- dist/chunks/_weekday_stacked-Czv-yJw4.js
|
3194
3194
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3195
3195
|
- dist/chunks/lib-SyD3buPZ.js
|
3196
3196
|
- dist/chunks/pb_form_validation-Dt8UJgrJ.js
|