playbook_ui 14.3.2.pre.alpha.PBNTR480radiocustomchildrenprop3759 → 14.3.2.pre.alpha.PBNTR490multilevelselect3771
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_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_radio/radio.html.erb +16 -40
- data/app/pb_kits/playbook/pb_radio/radio.rb +1 -3
- data/dist/chunks/{_typeahead-DbAz2Okr.js → _typeahead-CYcao65q.js} +2 -2
- data/dist/chunks/{_weekday_stacked-CZ5S17_d.js → _weekday_stacked-K9QS-9TH.js} +1 -1
- data/dist/chunks/{lib-D9uVVKnh.js → lib--ErPKv63.js} +1 -1
- data/dist/chunks/{pb_form_validation-u2wnZ3oe.js → pb_form_validation-CHMFwDfe.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/lib/playbook/version.rb +1 -1
- metadata +6 -9
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -48
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +0 -1
- data/app/pb_kits/playbook/pb_radio/index.js +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 513a13f4fa7d1b9c5af075eef59b336ab0ef1cc20ed7c5ec5cf0097fdb4c11eb
|
4
|
+
data.tar.gz: bfa4b8f9ca73aae5d1e8a462a54ae982aad13c88af7feffeb347bcc9de3c5ecd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99aad5a77f8c6174ee9036fe2af22ae6a58e66e87f4348d95a802312f31f5ca954cc4db48fa6f236d51c164eaeced69eacaaa71531b71fee01053493a4b467c2
|
7
|
+
data.tar.gz: 133f9873e4a3eec167fb0adb746f08df4ef6166196b3d67c7eff901e5c4a94308823c83793ae143ea563af8d4960beb1c00f6a918f061ee3b0e9143618d8882a
|
@@ -9,7 +9,7 @@ module Playbook
|
|
9
9
|
prop :border, type: Playbook::Props::Boolean,
|
10
10
|
default: false
|
11
11
|
prop :fixed_width, type: Playbook::Props::Boolean,
|
12
|
-
default:
|
12
|
+
default: true
|
13
13
|
prop :flip, type: Playbook::Props::Enum,
|
14
14
|
values: ["horizontal", "vertical", "both", nil],
|
15
15
|
default: nil
|
@@ -258,7 +258,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
258
258
|
|
259
259
|
// Handle click on input wrapper(entire div with pills, typeahead, etc) so it doesn't close when input or form pill is clicked
|
260
260
|
const handleInputWrapperClick = (e: any) => {
|
261
|
-
e.stopPropagation()
|
262
261
|
if (
|
263
262
|
e.target.id === "multiselect_input" ||
|
264
263
|
e.target.classList.contains("pb_form_pill_tag")
|
@@ -1,42 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}) do %>
|
10
|
-
<%= content_tag(:label,
|
11
|
-
checked: object.checked,
|
12
|
-
class: object.classname,
|
13
|
-
data: object.data,
|
14
|
-
id: object.id,
|
15
|
-
value: object.value,
|
16
|
-
**combined_html_options) do %>
|
17
|
-
<%= input %>
|
18
|
-
<span class="pb_radio_button"></span>
|
19
|
-
<% end %>
|
20
|
-
<div data-pb-radio-children-wrapper="true"> <%= content %> </div>
|
21
|
-
<% end %>
|
22
|
-
</div>
|
23
|
-
<% else %>
|
24
|
-
<%= content_tag(:label,
|
25
|
-
aria: object.aria,
|
26
|
-
checked: object.checked,
|
27
|
-
class: object.classname,
|
28
|
-
data: object.data,
|
29
|
-
id: object.id,
|
30
|
-
value: object.value,
|
31
|
-
**combined_html_options) do %>
|
1
|
+
<%= content_tag(:label,
|
2
|
+
aria: object.aria,
|
3
|
+
checked: object.checked,
|
4
|
+
class: object.classname,
|
5
|
+
data: object.data,
|
6
|
+
id: object.id,
|
7
|
+
value: object.value,
|
8
|
+
**combined_html_options) do %>
|
32
9
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
10
|
+
<% if content.present? %>
|
11
|
+
<%= content %>
|
12
|
+
<% else %>
|
13
|
+
<%= radio_button_tag object.name, object.value, object.selected, object.input_options %>
|
14
|
+
<% end %>
|
38
15
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
<% end %>
|
16
|
+
<span class="pb_radio_button"></span>
|
17
|
+
<%= pb_rails("body", props: { status: object.body_status, text: object.text, dark: object.dark }) %>
|
18
|
+
<% end %>
|
@@ -20,8 +20,6 @@ module Playbook
|
|
20
20
|
default: "Radio Text"
|
21
21
|
prop :value, type: Playbook::Props::String,
|
22
22
|
default: "radio_text"
|
23
|
-
prop :custom_children, type: Playbook::Props::Boolean,
|
24
|
-
default: false
|
25
23
|
|
26
24
|
def classname
|
27
25
|
generate_classname("pb_radio_kit") + error_class + alignment_class
|
@@ -36,7 +34,7 @@ module Playbook
|
|
36
34
|
end
|
37
35
|
|
38
36
|
def input
|
39
|
-
radio_button_tag(name, value, checked, input_options.merge(disabled: disabled
|
37
|
+
radio_button_tag(name, value, checked, input_options.merge(disabled: disabled))
|
40
38
|
end
|
41
39
|
|
42
40
|
private
|