playbook_ui 14.6.2.pre.alpha.PBNTR666advancedtablefirstcolumn4406 → 14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424
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/_advanced_table.tsx +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx +2 -2
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +8 -7
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +63 -12
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +7 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +2 -0
- data/app/pb_kits/playbook/utilities/_hover.scss +46 -43
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +6 -1
- data/dist/chunks/{_typeahead-BJrdFWHc.js → _typeahead-5m7Pr_Rh.js} +1 -1
- data/dist/chunks/_weekday_stacked-B4YQ6Z-d.js +45 -0
- 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/forms/builder/typeahead_field.rb +1 -0
- data/lib/playbook/hover.rb +4 -1
- data/lib/playbook/version.rb +1 -1
- metadata +4 -4
- data/dist/chunks/_weekday_stacked-C5GUey9h.js +0 -45
@@ -5,6 +5,7 @@ module Playbook
|
|
5
5
|
class Builder
|
6
6
|
def typeahead(name, _options = {}, _html_options = {}, props: {})
|
7
7
|
props[:name] = name
|
8
|
+
props[:label] = props[:label] == true ? name.to_s.underscore.humanize : props[:label]
|
8
9
|
@template.pb_rails("typeahead", props: props)
|
9
10
|
end
|
10
11
|
end
|
data/lib/playbook/hover.rb
CHANGED
@@ -4,6 +4,7 @@ module Playbook
|
|
4
4
|
module Hover
|
5
5
|
def self.included(base)
|
6
6
|
base.prop :hover
|
7
|
+
base.prop :group_hover, type: Playbook::Props::Boolean, default: false
|
7
8
|
end
|
8
9
|
|
9
10
|
def hover_options
|
@@ -38,7 +39,8 @@ module Playbook
|
|
38
39
|
|
39
40
|
def hover_props
|
40
41
|
selected_props = hover_options.keys.select { |sk| try(sk) }
|
41
|
-
|
42
|
+
|
43
|
+
return nil if selected_props.nil? && group_hover.nil?
|
42
44
|
|
43
45
|
responsive = selected_props.present? && try(selected_props.first).is_a?(::Hash)
|
44
46
|
css = ""
|
@@ -58,6 +60,7 @@ module Playbook
|
|
58
60
|
end
|
59
61
|
end
|
60
62
|
|
63
|
+
css += "group_hover " if group_hover
|
61
64
|
css.strip unless css.blank?
|
62
65
|
end
|
63
66
|
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.6.2.pre.alpha.
|
4
|
+
version: 14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-11-
|
12
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -3133,8 +3133,8 @@ files:
|
|
3133
3133
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3134
3134
|
- app/pb_kits/playbook/utilities/text.ts
|
3135
3135
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3136
|
-
- dist/chunks/_typeahead-
|
3137
|
-
- dist/chunks/_weekday_stacked-
|
3136
|
+
- dist/chunks/_typeahead-5m7Pr_Rh.js
|
3137
|
+
- dist/chunks/_weekday_stacked-B4YQ6Z-d.js
|
3138
3138
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3139
3139
|
- dist/chunks/lib-D-mTv-kp.js
|
3140
3140
|
- dist/chunks/pb_form_validation-BkWGwJsl.js
|