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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e534a0e0e952acf92b13ede8c1f7316960b4c33c5cbc139de313a5d99b0a0bb
4
- data.tar.gz: 547c1ac1600076cea049ce2566a075146e83479899e6ca8c1bfffa43fcce9c9c
3
+ metadata.gz: '0139336c42fa16df313511160bd10201f796824318b208fe99b5265968627597'
4
+ data.tar.gz: 8f72c790da5e7b7f83cfe397aa3cd4d0e7d71fc8bd4da55a23cf4dece9e6e8db
5
5
  SHA512:
6
- metadata.gz: b3f9f2f5f7c43f72ce2f35bb6c3d214575d90922039e847a736ea1517d5c11a903e25ac0601d7cd4155c9dd8b0915ef4990a88cf353d83d9ea60a7097bf48510
7
- data.tar.gz: a8e93ed7c8f629d6b4d0c47b6ccd064f76b01f100993ca07aa06cc99f6e45c677e397c86b3ecc9e89322573b4d7ab6c0bee37f203fe99ec627c53b5efce884c3
6
+ metadata.gz: 92e5cca935e9ccfc18ddf59cc4be1d385bf4e9be299c5c4c10a0e79134a19d84c1bdde8b664c3953ebba73d1e02d7615ad4f8dffd413cf946a1ae2a1639380fd
7
+ data.tar.gz: 3cd03b617d9a1a09e8531e54a21c24d325c3afc0ba1e9dcf1fe6bddb7db0e08e62ab6932e03004ffb62a1f5fb6e89d848c94b1cc75d861ed40606560ebd9d76a
@@ -11,7 +11,6 @@ examples:
11
11
  - select_error: Select w/ Error
12
12
  - select_inline: Select Inline
13
13
  - select_inline_compact: Select Inline Compact
14
- - select_attributes: Select W/ Attributes
15
14
 
16
15
 
17
16
 
@@ -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.all_attributes
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.38.0"
5
- VERSION = "12.38.0.pre.alpha.PLAYaddingdatapropselectkit1080"
5
+ VERSION = "12.38.0.pre.alpha.audiencesalpha1083"
6
6
  end
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.PLAYaddingdatapropselectkit1080
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