playbook_ui 15.0.0.pre.alpha.PLAY2426textfieldaccessibility10330 → 15.0.0.pre.alpha.PLAY2467contactkitinternational10329

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.
@@ -6,7 +6,7 @@ module Playbook
6
6
  class FormFieldBuilder < Module
7
7
  def initialize(method_name, kit_name:)
8
8
  define_method method_name do |name, props: {}, **options, &block|
9
- props = props.dup
9
+ props[:label] = @template.label(@object_name, name) if props[:label] == true
10
10
  options = Hash(options)
11
11
 
12
12
  options[:skip_default_ids] = false unless options.key?(:skip_default_ids)
@@ -21,14 +21,6 @@ module Playbook
21
21
 
22
22
  input = super(name, **options, &block)
23
23
 
24
- input_id = input[/\bid="([^"]+)"/, 1] || "#{@object_name}_#{name}"
25
-
26
- if props[:label] == true
27
- props[:label] = @template.label(@object_name, name)
28
- elsif props[:label].is_a?(String)
29
- props[:label] = @template.label_tag(input_id, props[:label])
30
- end
31
-
32
24
  @template.pb_rails(kit_name, props: props) do
33
25
  input
34
26
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "15.0.0"
5
- VERSION = "15.0.0.pre.alpha.PLAY2426textfieldaccessibility10330"
5
+ VERSION = "15.0.0.pre.alpha.PLAY2467contactkitinternational10329"
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: 15.0.0.pre.alpha.PLAY2426textfieldaccessibility10330
4
+ version: 15.0.0.pre.alpha.PLAY2467contactkitinternational10329
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -889,6 +889,7 @@ files:
889
889
  - app/pb_kits/playbook/pb_contact/contact.test.js
890
890
  - app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb
891
891
  - app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx
892
+ - app/pb_kits/playbook/pb_contact/docs/_contact_default.md
892
893
  - app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md
893
894
  - app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md
894
895
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb
@@ -3622,7 +3623,7 @@ files:
3622
3623
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3623
3624
  - dist/chunks/_line_graph-CApw7aQD.js
3624
3625
  - dist/chunks/_typeahead-J1_avqdO.js
3625
- - dist/chunks/_weekday_stacked-C3QAjEFv.js
3626
+ - dist/chunks/_weekday_stacked-BSRRJewP.js
3626
3627
  - dist/chunks/lazysizes-B7xYodB-.js
3627
3628
  - dist/chunks/lib-CY5ZPzic.js
3628
3629
  - dist/chunks/pb_form_validation-D3b0JKHH.js