playbook_ui 12.38.0.pre.alpha.PLAYaddingdatapropselectkit1080 → 12.38.0.pre.alpha.audiencesalpha1083
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_select/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_select/select.html.erb +8 -2
- data/app/pb_kits/playbook/pb_select/select.rb +0 -14
- data/lib/playbook/version.rb +1 -1
- metadata +1 -3
- data/app/pb_kits/playbook/pb_select/docs/_select_attributes.html.erb +0 -26
- data/app/pb_kits/playbook/pb_select/docs/_select_attributes.md +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0139336c42fa16df313511160bd10201f796824318b208fe99b5265968627597'
|
4
|
+
data.tar.gz: 8f72c790da5e7b7f83cfe397aa3cd4d0e7d71fc8bd4da55a23cf4dece9e6e8db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92e5cca935e9ccfc18ddf59cc4be1d385bf4e9be299c5c4c10a0e79134a19d84c1bdde8b664c3953ebba73d1e02d7615ad4f8dffd413cf946a1ae2a1639380fd
|
7
|
+
data.tar.gz: 3cd03b617d9a1a09e8531e54a21c24d325c3afc0ba1e9dcf1fe6bddb7db0e08e62ab6932e03004ffb62a1f5fb6e89d848c94b1cc75d861ed40606560ebd9d76a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= content_tag(:div,
|
2
|
-
aria: object.aria,
|
3
2
|
data: object.data,
|
3
|
+
aria: object.aria,
|
4
4
|
class: object.classnames) do %>
|
5
5
|
<% if object.label %>
|
6
6
|
<label class="pb_select_kit_label" for="<%= object.name %>">
|
@@ -19,7 +19,13 @@
|
|
19
19
|
selected: object.selected,
|
20
20
|
disabled: object.disabled_options,
|
21
21
|
),
|
22
|
-
object.
|
22
|
+
id: object.id,
|
23
|
+
prompt: object.blank_selection,
|
24
|
+
disabled: object.disabled,
|
25
|
+
required: object.required,
|
26
|
+
multiple: object.multiple,
|
27
|
+
onchange: object.onchange,
|
28
|
+
include_blank: object.include_blank,
|
23
29
|
)
|
24
30
|
%>
|
25
31
|
<%= pb_rails("body", props: { status: "negative", text: object.error }) %>
|
@@ -6,8 +6,6 @@ require "action_view"
|
|
6
6
|
module Playbook
|
7
7
|
module PbSelect
|
8
8
|
class Select < Playbook::KitBase
|
9
|
-
prop :attributes, type: Playbook::Props::Hash,
|
10
|
-
default: {}
|
11
9
|
prop :blank_selection
|
12
10
|
prop :compact, type: Playbook::Props::Boolean, default: false
|
13
11
|
prop :disabled, type: Playbook::Props::Boolean, default: false
|
@@ -25,18 +23,6 @@ module Playbook
|
|
25
23
|
classname + inline_class + compact_class
|
26
24
|
end
|
27
25
|
|
28
|
-
def all_attributes
|
29
|
-
{
|
30
|
-
id: id,
|
31
|
-
prompt: blank_selection,
|
32
|
-
disabled: disabled,
|
33
|
-
required: required,
|
34
|
-
multiple: multiple,
|
35
|
-
onchange: onchange,
|
36
|
-
include_blank: include_blank,
|
37
|
-
}.merge(attributes)
|
38
|
-
end
|
39
|
-
|
40
26
|
def classname
|
41
27
|
generate_classname("pb_select", select_margin_bottom, separator: " ")
|
42
28
|
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: 12.38.0.pre.alpha.
|
4
|
+
version: 12.38.0.pre.alpha.audiencesalpha1083
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -1851,8 +1851,6 @@ files:
|
|
1851
1851
|
- app/pb_kits/playbook/pb_select/_select.tsx
|
1852
1852
|
- app/pb_kits/playbook/pb_select/docs/_description.md
|
1853
1853
|
- app/pb_kits/playbook/pb_select/docs/_footer.md
|
1854
|
-
- app/pb_kits/playbook/pb_select/docs/_select_attributes.html.erb
|
1855
|
-
- app/pb_kits/playbook/pb_select/docs/_select_attributes.md
|
1856
1854
|
- app/pb_kits/playbook/pb_select/docs/_select_blank.html.erb
|
1857
1855
|
- app/pb_kits/playbook/pb_select/docs/_select_blank.jsx
|
1858
1856
|
- app/pb_kits/playbook/pb_select/docs/_select_custom_select.html.erb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<%= pb_rails("select", props: {
|
2
|
-
attributes: {
|
3
|
-
data: { options: "data_attribute" },
|
4
|
-
},
|
5
|
-
label: "Favorite Food",
|
6
|
-
name: "food",
|
7
|
-
options: [
|
8
|
-
{
|
9
|
-
value: "1",
|
10
|
-
value_text: "Burgers",
|
11
|
-
},
|
12
|
-
{
|
13
|
-
value: "2",
|
14
|
-
selected: true,
|
15
|
-
value_text: "Pizza",
|
16
|
-
},
|
17
|
-
{
|
18
|
-
value: "3",
|
19
|
-
value_text: "Tacos",
|
20
|
-
},
|
21
|
-
{
|
22
|
-
value: "4",
|
23
|
-
value_text: "BBQ",
|
24
|
-
},
|
25
|
-
]
|
26
|
-
}) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Inspect the element and notice the data-attribute being added to the `<select>` element
|