playbook_ui 13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953 → 13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986
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_advanced_table/advanced_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +40 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +14 -4
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +10 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +34 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +31 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +1 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +10 -0
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -2
- data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -1
- data/app/pb_kits/playbook/pb_tooltip/index.js +1 -0
- data/dist/playbook-rails.js +2 -2
- data/lib/playbook/forms/builder/dropdown_field.rb +14 -0
- data/lib/playbook/forms/builder.rb +1 -0
- data/lib/playbook/version.rb +1 -1
- metadata +7 -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"))
|
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: 13.28.0.pre.alpha.
|
4
|
+
version: 13.28.0.pre.alpha.PLAY1343fixTooltiprunwayissue2986
|
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-
|
12
|
+
date: 2024-05-29 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
|
@@ -2930,6 +2934,7 @@ files:
|
|
2930
2934
|
- lib/playbook/forms/builder/checkbox_field.rb
|
2931
2935
|
- lib/playbook/forms/builder/collection_select_field.rb
|
2932
2936
|
- lib/playbook/forms/builder/date_picker_field.rb
|
2937
|
+
- lib/playbook/forms/builder/dropdown_field.rb
|
2933
2938
|
- lib/playbook/forms/builder/form_field_builder.rb
|
2934
2939
|
- lib/playbook/forms/builder/intl_telephone_field.rb
|
2935
2940
|
- lib/playbook/forms/builder/multi_level_select_field.rb
|