playbook_ui 13.27.0.pre.alpha.testingcollapsible2917 → 13.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -5
  3. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -5
  5. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -5
  6. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +1 -6
  7. data/app/pb_kits/playbook/pb_badge/badge.html.erb +1 -6
  8. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  9. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +1 -6
  10. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -6
  11. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +1 -6
  12. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +1 -6
  13. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -6
  14. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +0 -1
  15. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.md +2 -4
  16. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb +0 -1
  17. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.md +2 -4
  18. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +73 -0
  19. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.md +3 -0
  20. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb +20 -0
  21. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.md +3 -0
  22. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +4 -0
  23. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -1
  24. data/app/pb_kits/playbook/pb_contact/contact.html.erb +1 -6
  25. data/app/pb_kits/playbook/pb_currency/currency.html.erb +1 -6
  26. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +1 -6
  27. data/app/pb_kits/playbook/pb_date/date.html.erb +1 -6
  28. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +1 -5
  29. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md +61 -0
  30. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md +11 -0
  31. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +4 -1
  32. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +1 -5
  33. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +1 -5
  34. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md +32 -0
  35. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md +17 -0
  36. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md +19 -0
  37. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md +10 -0
  38. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md +17 -0
  39. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +7 -0
  40. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +1 -6
  41. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md +39 -0
  42. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md +39 -0
  43. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md +15 -0
  44. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md +78 -0
  45. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +6 -0
  46. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +1 -6
  47. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +1 -5
  48. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +4 -0
  49. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -4
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -3
  51. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +11 -6
  52. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +5 -2
  53. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +13 -8
  54. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +1 -1
  55. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +5 -2
  56. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +13 -8
  57. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +2 -8
  59. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +1 -5
  60. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +2 -12
  61. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md +23 -0
  62. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md +7 -0
  63. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md +9 -0
  64. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md +22 -0
  65. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md +9 -0
  66. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md +62 -0
  67. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +8 -0
  68. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +9 -0
  69. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +1 -6
  70. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  71. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  72. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -6
  73. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -6
  74. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +1 -6
  75. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +1 -6
  76. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +1 -6
  77. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -5
  78. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -6
  79. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -6
  80. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +1 -6
  81. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +1 -1
  82. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -6
  83. data/app/pb_kits/playbook/pb_person/person.html.erb +1 -6
  84. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +1 -6
  85. data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -6
  86. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -6
  87. data/app/pb_kits/playbook/pb_select/_select.scss +8 -0
  88. data/app/pb_kits/playbook/pb_source/source.html.erb +1 -5
  89. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +1 -5
  90. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +1 -5
  91. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +19 -0
  92. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +1 -5
  93. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +1 -5
  94. data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -5
  95. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +1 -5
  96. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +1 -6
  97. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +1 -6
  98. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +1 -5
  99. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +1 -6
  100. data/dist/playbook-rails.js +4 -4
  101. data/lib/playbook/forms/builder/phone_number_field.rb +12 -0
  102. data/lib/playbook/forms/builder.rb +1 -0
  103. data/lib/playbook/kit_base.rb +1 -1
  104. data/lib/playbook/version.rb +1 -1
  105. metadata +28 -5
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module Forms
5
+ class Builder
6
+ def phone_number_field(name, props: {})
7
+ props[:name] = name
8
+ @template.pb_rails("phone_number_input", props: props)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -12,6 +12,7 @@ module Playbook
12
12
  require_relative "builder/typeahead_field"
13
13
  require_relative "builder/intl_telephone_field"
14
14
  require_relative "builder/multi_level_select_field"
15
+ require_relative "builder/phone_number_field"
15
16
 
16
17
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
17
18
  prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
@@ -81,7 +81,7 @@ module Playbook
81
81
  end
82
82
 
83
83
  # rubocop:disable Style/OptionalBooleanParameter
84
- def pb_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block)
84
+ def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
85
85
  combined_options = options
86
86
  .merge(combined_html_options)
87
87
  .merge(default_options.merge(content_or_options_with_block))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.27.0"
5
- VERSION = "13.27.0.pre.alpha.testingcollapsible2917"
5
+ VERSION = "13.28.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.27.0.pre.alpha.testingcollapsible2917
4
+ version: 13.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-05-16 00:00:00.000000000 Z
12
+ date: 2024-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -693,6 +693,10 @@ files:
693
693
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.md
694
694
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb
695
695
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.md
696
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx
697
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.md
698
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb
699
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.md
696
700
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb
697
701
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx
698
702
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default_swift.md
@@ -896,6 +900,8 @@ files:
896
900
  - app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js
897
901
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb
898
902
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx
903
+ - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md
904
+ - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md
899
905
  - app/pb_kits/playbook/pb_date_range_inline/docs/_description.md
900
906
  - app/pb_kits/playbook/pb_date_range_inline/docs/example.yml
901
907
  - app/pb_kits/playbook/pb_date_range_inline/docs/index.js
@@ -919,12 +925,17 @@ files:
919
925
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_align.jsx
920
926
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.html.erb
921
927
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.jsx
928
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md
922
929
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.html.erb
923
930
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx
931
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md
924
932
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.html.erb
925
933
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.jsx
934
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md
935
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md
926
936
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.html.erb
927
937
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.jsx
938
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md
928
939
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.html.erb
929
940
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.jsx
930
941
  - app/pb_kits/playbook/pb_date_stacked/docs/_description.md
@@ -938,10 +949,14 @@ files:
938
949
  - app/pb_kits/playbook/pb_date_time/date_time.rb
939
950
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.html.erb
940
951
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.jsx
952
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md
941
953
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.html.erb
942
954
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.jsx
955
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md
956
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md
943
957
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.html.erb
944
958
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.jsx
959
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md
945
960
  - app/pb_kits/playbook/pb_date_time/docs/_description.md
946
961
  - app/pb_kits/playbook/pb_date_time/docs/example.yml
947
962
  - app/pb_kits/playbook/pb_date_time/docs/index.js
@@ -1173,15 +1188,22 @@ files:
1173
1188
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.html.erb
1174
1189
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.jsx
1175
1190
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.md
1191
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md
1176
1192
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb
1177
1193
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx
1194
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md
1178
1195
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb
1179
1196
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx
1197
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md
1198
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md
1180
1199
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb
1181
1200
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
1182
1201
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md
1202
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md
1183
1203
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb
1184
1204
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.jsx
1205
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md
1206
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md
1185
1207
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml
1186
1208
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js
1187
1209
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb
@@ -2911,6 +2933,7 @@ files:
2911
2933
  - lib/playbook/forms/builder/form_field_builder.rb
2912
2934
  - lib/playbook/forms/builder/intl_telephone_field.rb
2913
2935
  - lib/playbook/forms/builder/multi_level_select_field.rb
2936
+ - lib/playbook/forms/builder/phone_number_field.rb
2914
2937
  - lib/playbook/forms/builder/select_field.rb
2915
2938
  - lib/playbook/forms/builder/typeahead_field.rb
2916
2939
  - lib/playbook/hover.rb
@@ -2957,7 +2980,7 @@ homepage: https://playbook.powerapp.cloud/
2957
2980
  licenses:
2958
2981
  - ISC
2959
2982
  metadata: {}
2960
- post_install_message:
2983
+ post_install_message:
2961
2984
  rdoc_options: []
2962
2985
  require_paths:
2963
2986
  - lib
@@ -2973,7 +2996,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2973
2996
  version: '0'
2974
2997
  requirements: []
2975
2998
  rubygems_version: 3.5.3
2976
- signing_key:
2999
+ signing_key:
2977
3000
  specification_version: 4
2978
3001
  summary: Playbook Design System
2979
3002
  test_files: []