playbook_ui 13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953 → 13.28.0.pre.alpha.PLAY1338alpha3001

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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +40 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md +3 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +14 -4
  9. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +10 -2
  10. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +34 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +31 -0
  14. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +1 -2
  15. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +53 -0
  16. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +14 -8
  17. data/app/pb_kits/playbook/pb_collapsible/collapsible.test.js +24 -0
  18. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -0
  19. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -2
  20. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
  21. data/app/pb_kits/playbook/pb_tooltip/index.js +1 -0
  22. data/dist/playbook-rails.js +2 -2
  23. data/lib/playbook/forms/builder/dropdown_field.rb +14 -0
  24. data/lib/playbook/forms/builder.rb +1 -0
  25. data/lib/playbook/version.rb +1 -1
  26. metadata +8 -2
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module Forms
5
+ class Builder
6
+ def dropdown_field(name, props: {})
7
+ props[:name] = name
8
+ props[:margin_bottom] = "sm"
9
+ props[:label] = @template.label(@object_name, name) if props[:label] == true
10
+ @template.pb_rails("dropdown", props: props)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -13,6 +13,7 @@ module Playbook
13
13
  require_relative "builder/intl_telephone_field"
14
14
  require_relative "builder/multi_level_select_field"
15
15
  require_relative "builder/phone_number_field"
16
+ require_relative "builder/dropdown_field"
16
17
 
17
18
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
18
19
  prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.28.0"
5
- VERSION = "13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953"
5
+ VERSION = "13.28.0.pre.alpha.PLAY1338alpha3001"
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: 13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953
4
+ version: 13.28.0.pre.alpha.PLAY1338alpha3001
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-24 00:00:00.000000000 Z
12
+ date: 2024-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -263,6 +263,8 @@ files:
263
263
  - app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx
264
264
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb
265
265
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md
266
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb
267
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md
266
268
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx
267
269
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
268
270
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx
@@ -297,6 +299,8 @@ files:
297
299
  - app/pb_kits/playbook/pb_advanced_table/table_header.rb
298
300
  - app/pb_kits/playbook/pb_advanced_table/table_row.html.erb
299
301
  - app/pb_kits/playbook/pb_advanced_table/table_row.rb
302
+ - app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb
303
+ - app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb
300
304
  - app/pb_kits/playbook/pb_avatar/Utilities/GetPlacementPropsHelper.tsx
301
305
  - app/pb_kits/playbook/pb_avatar/_avatar.scss
302
306
  - app/pb_kits/playbook/pb_avatar/_avatar.tsx
@@ -669,6 +673,7 @@ files:
669
673
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_footer.md
670
674
  - app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml
671
675
  - app/pb_kits/playbook/pb_circle_icon_button/docs/index.js
676
+ - app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap
672
677
  - app/pb_kits/playbook/pb_collapsible/_collapsible.scss
673
678
  - app/pb_kits/playbook/pb_collapsible/_collapsible.tsx
674
679
  - app/pb_kits/playbook/pb_collapsible/_helper_functions.ts
@@ -2930,6 +2935,7 @@ files:
2930
2935
  - lib/playbook/forms/builder/checkbox_field.rb
2931
2936
  - lib/playbook/forms/builder/collection_select_field.rb
2932
2937
  - lib/playbook/forms/builder/date_picker_field.rb
2938
+ - lib/playbook/forms/builder/dropdown_field.rb
2933
2939
  - lib/playbook/forms/builder/form_field_builder.rb
2934
2940
  - lib/playbook/forms/builder/intl_telephone_field.rb
2935
2941
  - lib/playbook/forms/builder/multi_level_select_field.rb