playbook_ui 14.3.2.pre.alpha.PBNTR480radiocustomchildrenprop3759 → 14.3.2.pre.alpha.PBNTR490multilevelselect3766
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_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -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-U4IQmb00.js} +2 -2
- data/dist/chunks/{_weekday_stacked-CZ5S17_d.js → _weekday_stacked-DGsDt_zY.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: 56cc8bebe81321d102489cd0ed941908032f49bbe82b696ab050e25a7fcdf606
|
4
|
+
data.tar.gz: 188c456256607f3bd8f5e8a54987d42f1b246572ecddd32f673d2ac8b9d5e356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa3f3d6515004b93eda38afdc9e0d36c863b886772c19f24da5612840367a6781bcf9882cbf3751f3a4fedd3e2bfe327566e01d4ccebec57f373c039812b17a
|
7
|
+
data.tar.gz: ce83ff82f4e7c1ebe2ca8a917d15200d5c5280d693ded092ef1435bfaa3fe510edcf0475429e8e8de0b5530ed5924b95165e1fcb80a0230c9848545c09f60a43
|
@@ -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")
|
@@ -266,6 +265,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
266
265
|
return
|
267
266
|
}
|
268
267
|
setIsDropdownClosed(!isDropdownClosed)
|
268
|
+
e.stopPropagation()
|
269
269
|
}
|
270
270
|
|
271
271
|
// Main function to handle any click inside dropdown
|
@@ -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
|