playbook_ui 13.27.0.pre.alpha.PLAY11782916 → 13.27.0.pre.alpha.dropdowncustomoptionfix2924

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  3. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md +61 -0
  4. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md +11 -0
  5. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +4 -1
  6. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md +32 -0
  7. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md +17 -0
  8. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md +19 -0
  9. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md +10 -0
  10. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md +17 -0
  11. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +7 -0
  12. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md +39 -0
  13. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md +39 -0
  14. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md +15 -0
  15. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md +78 -0
  16. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +6 -0
  17. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default_swift.md +20 -0
  18. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_props_swift.md +6 -0
  19. data/app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml +4 -0
  20. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +4 -0
  21. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -4
  22. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -3
  23. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +11 -6
  24. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +5 -2
  25. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +13 -8
  26. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +1 -1
  27. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +5 -2
  28. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +13 -8
  29. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +2 -8
  31. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +1 -5
  32. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +2 -12
  33. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md +23 -0
  34. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md +7 -0
  35. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md +9 -0
  36. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md +22 -0
  37. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md +9 -0
  38. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md +62 -0
  39. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +8 -0
  40. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +9 -0
  41. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  42. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  43. data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
  44. data/app/pb_kits/playbook/pb_select/_select.tsx +1 -13
  45. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +19 -0
  46. data/dist/playbook-rails.js +4 -4
  47. data/lib/playbook/forms/builder/phone_number_field.rb +12 -0
  48. data/lib/playbook/forms/builder.rb +1 -0
  49. data/lib/playbook/version.rb +1 -1
  50. metadata +23 -2
@@ -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"))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.27.0"
5
- VERSION = "13.27.0.pre.alpha.PLAY11782916"
5
+ VERSION = "13.27.0.pre.alpha.dropdowncustomoptionfix2924"
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.27.0.pre.alpha.PLAY11782916
4
+ version: 13.27.0.pre.alpha.dropdowncustomoptionfix2924
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-16 00:00:00.000000000 Z
12
+ date: 2024-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -889,6 +889,8 @@ files:
889
889
  - app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js
890
890
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb
891
891
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx
892
+ - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md
893
+ - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md
892
894
  - app/pb_kits/playbook/pb_date_range_inline/docs/_description.md
893
895
  - app/pb_kits/playbook/pb_date_range_inline/docs/example.yml
894
896
  - app/pb_kits/playbook/pb_date_range_inline/docs/index.js
@@ -912,12 +914,17 @@ files:
912
914
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_align.jsx
913
915
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.html.erb
914
916
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.jsx
917
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md
915
918
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.html.erb
916
919
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx
920
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md
917
921
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.html.erb
918
922
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.jsx
923
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md
924
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md
919
925
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.html.erb
920
926
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.jsx
927
+ - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md
921
928
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.html.erb
922
929
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.jsx
923
930
  - app/pb_kits/playbook/pb_date_stacked/docs/_description.md
@@ -931,10 +938,14 @@ files:
931
938
  - app/pb_kits/playbook/pb_date_time/date_time.rb
932
939
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.html.erb
933
940
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.jsx
941
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md
934
942
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.html.erb
935
943
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.jsx
944
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md
945
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md
936
946
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.html.erb
937
947
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.jsx
948
+ - app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md
938
949
  - app/pb_kits/playbook/pb_date_time/docs/_description.md
939
950
  - app/pb_kits/playbook/pb_date_time/docs/example.yml
940
951
  - app/pb_kits/playbook/pb_date_time/docs/index.js
@@ -955,6 +966,8 @@ files:
955
966
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.html.erb
956
967
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx
957
968
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.md
969
+ - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default_swift.md
970
+ - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_props_swift.md
958
971
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_description.md
959
972
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_footer.md
960
973
  - app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml
@@ -1166,15 +1179,22 @@ files:
1166
1179
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.html.erb
1167
1180
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.jsx
1168
1181
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.md
1182
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md
1169
1183
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb
1170
1184
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx
1185
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md
1171
1186
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb
1172
1187
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx
1188
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md
1189
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md
1173
1190
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb
1174
1191
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
1175
1192
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md
1193
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md
1176
1194
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb
1177
1195
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.jsx
1196
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md
1197
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md
1178
1198
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml
1179
1199
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js
1180
1200
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb
@@ -2904,6 +2924,7 @@ files:
2904
2924
  - lib/playbook/forms/builder/form_field_builder.rb
2905
2925
  - lib/playbook/forms/builder/intl_telephone_field.rb
2906
2926
  - lib/playbook/forms/builder/multi_level_select_field.rb
2927
+ - lib/playbook/forms/builder/phone_number_field.rb
2907
2928
  - lib/playbook/forms/builder/select_field.rb
2908
2929
  - lib/playbook/forms/builder/typeahead_field.rb
2909
2930
  - lib/playbook/hover.rb