playbook_ui 13.22.0.pre.alpha.playbookgemspecrailsversion2608 → 13.23.0.pre.alpha.PLAY1284investigation2657
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 +4 -4
- data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -6
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +28 -7
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb +26 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx +36 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md +3 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_body/_body.scss +3 -3
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +27 -19
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +4 -2
- data/app/pb_kits/playbook/pb_typeahead/components/index.tsx +19 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +51 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
- data/dist/playbook-rails.js +5 -5
- data/lib/playbook/kit_base.rb +21 -1
- data/lib/playbook/version.rb +2 -2
- metadata +7 -2
data/lib/playbook/kit_base.rb
CHANGED
@@ -31,6 +31,8 @@ require "playbook/right"
|
|
31
31
|
require "playbook/bottom"
|
32
32
|
|
33
33
|
module Playbook
|
34
|
+
include ActionView::Helpers
|
35
|
+
|
34
36
|
class KitBase < ViewComponent::Base
|
35
37
|
include Playbook::PbKitHelper
|
36
38
|
include Playbook::Props
|
@@ -78,8 +80,26 @@ module Playbook
|
|
78
80
|
default_html_options.merge(html_options.deep_merge(data_attributes))
|
79
81
|
end
|
80
82
|
|
83
|
+
# rubocop:disable Style/OptionalBooleanParameter
|
84
|
+
def pb_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block)
|
85
|
+
combined_options = options
|
86
|
+
.merge(combined_html_options)
|
87
|
+
.merge(default_options.merge(content_or_options_with_block))
|
88
|
+
content_tag(name, combined_options, options, escape, &block)
|
89
|
+
end
|
90
|
+
# rubocop:enable Style/OptionalBooleanParameter
|
91
|
+
|
81
92
|
private
|
82
93
|
|
94
|
+
def default_options
|
95
|
+
{
|
96
|
+
id: id,
|
97
|
+
data: data,
|
98
|
+
class: classname,
|
99
|
+
aria: aria,
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
83
103
|
def default_html_options
|
84
104
|
{}
|
85
105
|
end
|
@@ -88,7 +108,7 @@ module Playbook
|
|
88
108
|
{
|
89
109
|
data: data,
|
90
110
|
aria: aria,
|
91
|
-
}.transform_keys { |key| key.to_s.tr("_", "-") }
|
111
|
+
}.transform_keys { |key| key.to_s.tr("_", "-").to_sym }
|
92
112
|
end
|
93
113
|
end
|
94
114
|
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: 13.
|
4
|
+
version: 13.23.0.pre.alpha.PLAY1284investigation2657
|
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-04-
|
12
|
+
date: 2024-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -406,6 +406,9 @@ files:
|
|
406
406
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.html.erb
|
407
407
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.jsx
|
408
408
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
|
409
|
+
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
|
410
|
+
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
|
411
|
+
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
|
409
412
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.html.erb
|
410
413
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.jsx
|
411
414
|
- app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_spline.md
|
@@ -2602,10 +2605,12 @@ files:
|
|
2602
2605
|
- app/pb_kits/playbook/pb_typeahead/components/Option.tsx
|
2603
2606
|
- app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx
|
2604
2607
|
- app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx
|
2608
|
+
- app/pb_kits/playbook/pb_typeahead/components/index.tsx
|
2605
2609
|
- app/pb_kits/playbook/pb_typeahead/docs/_description.md
|
2606
2610
|
- app/pb_kits/playbook/pb_typeahead/docs/_footer.md
|
2607
2611
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx
|
2608
2612
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx
|
2613
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx
|
2609
2614
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb
|
2610
2615
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx
|
2611
2616
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.html.erb
|