playbook_ui 12.25.0.pre.alpha.PLAY818multilevelrebuild779 → 12.25.0.pre.alpha.play824786

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/index.js +1 -0
  4. data/app/pb_kits/playbook/pb_detail/_detail.scss +44 -0
  5. data/app/pb_kits/playbook/pb_detail/_detail.tsx +55 -0
  6. data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +29 -0
  7. data/app/pb_kits/playbook/pb_detail/detail.html.erb +7 -0
  8. data/app/pb_kits/playbook/pb_detail/detail.rb +31 -0
  9. data/app/pb_kits/playbook/pb_detail/detail.test.jsx +46 -0
  10. data/app/pb_kits/playbook/pb_detail/docs/_description.md +1 -0
  11. data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.html.erb +34 -0
  12. data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.jsx +49 -0
  13. data/app/pb_kits/playbook/pb_detail/docs/_detail_bold.md +1 -0
  14. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb +24 -0
  15. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +38 -0
  16. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.md +6 -0
  17. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.html.erb +3 -0
  18. data/app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx +13 -0
  19. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.html.erb +22 -0
  20. data/app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx +32 -0
  21. data/app/pb_kits/playbook/pb_detail/docs/example.yml +11 -0
  22. data/app/pb_kits/playbook/pb_detail/docs/index.js +4 -0
  23. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +109 -44
  24. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +14 -0
  25. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +60 -0
  26. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -1
  27. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
  28. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +6 -0
  29. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +110 -62
  30. data/app/pb_kits/playbook/playbook-doc.js +2 -0
  31. data/app/pb_kits/playbook/utilities/object.ts +3 -0
  32. data/dist/menu.yml +1 -0
  33. data/dist/playbook-rails.js +2 -2
  34. data/lib/playbook/forms/builder/intl_telephone_field.rb +12 -0
  35. data/lib/playbook/forms/builder.rb +1 -0
  36. data/lib/playbook/version.rb +1 -1
  37. metadata +24 -1
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module Forms
5
+ class Builder
6
+ def intl_telephone(name, props: {})
7
+ props[:name] = name
8
+ @template.pb_rails("phone_number_input", props: props)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -10,6 +10,7 @@ module Playbook
10
10
  require_relative "builder/form_field_builder"
11
11
  require_relative "builder/select_field"
12
12
  require_relative "builder/typeahead_field"
13
+ require_relative "builder/intl_telephone_field"
13
14
 
14
15
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
15
16
  prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.25.0"
5
- VERSION = "12.25.0.pre.alpha.PLAY818multilevelrebuild779"
5
+ VERSION = "12.25.0.pre.alpha.play824786"
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: 12.25.0.pre.alpha.PLAY818multilevelrebuild779
4
+ version: 12.25.0.pre.alpha.play824786
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -823,6 +823,25 @@ files:
823
823
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_footer.md
824
824
  - app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml
825
825
  - app/pb_kits/playbook/pb_date_year_stacked/docs/index.js
826
+ - app/pb_kits/playbook/pb_detail/_detail.scss
827
+ - app/pb_kits/playbook/pb_detail/_detail.tsx
828
+ - app/pb_kits/playbook/pb_detail/_detail_mixins.scss
829
+ - app/pb_kits/playbook/pb_detail/detail.html.erb
830
+ - app/pb_kits/playbook/pb_detail/detail.rb
831
+ - app/pb_kits/playbook/pb_detail/detail.test.jsx
832
+ - app/pb_kits/playbook/pb_detail/docs/_description.md
833
+ - app/pb_kits/playbook/pb_detail/docs/_detail_bold.html.erb
834
+ - app/pb_kits/playbook/pb_detail/docs/_detail_bold.jsx
835
+ - app/pb_kits/playbook/pb_detail/docs/_detail_bold.md
836
+ - app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb
837
+ - app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx
838
+ - app/pb_kits/playbook/pb_detail/docs/_detail_colors.md
839
+ - app/pb_kits/playbook/pb_detail/docs/_detail_default.html.erb
840
+ - app/pb_kits/playbook/pb_detail/docs/_detail_default.jsx
841
+ - app/pb_kits/playbook/pb_detail/docs/_detail_styled.html.erb
842
+ - app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx
843
+ - app/pb_kits/playbook/pb_detail/docs/example.yml
844
+ - app/pb_kits/playbook/pb_detail/docs/index.js
826
845
  - app/pb_kits/playbook/pb_dialog/_close_icon.tsx
827
846
  - app/pb_kits/playbook/pb_dialog/_dialog.scss
828
847
  - app/pb_kits/playbook/pb_dialog/_dialog.tsx
@@ -1581,6 +1600,8 @@ files:
1581
1600
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb
1582
1601
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx
1583
1602
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
1603
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb
1604
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx
1584
1605
  - app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
1585
1606
  - app/pb_kits/playbook/pb_phone_number_input/docs/index.js
1586
1607
  - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.html.erb
@@ -2392,6 +2413,7 @@ files:
2392
2413
  - app/pb_kits/playbook/utilities/flexbox_global_props/_justify_self.scss
2393
2414
  - app/pb_kits/playbook/utilities/flexbox_global_props/_order.scss
2394
2415
  - app/pb_kits/playbook/utilities/globalProps.ts
2416
+ - app/pb_kits/playbook/utilities/object.ts
2395
2417
  - app/pb_kits/playbook/utilities/props.ts
2396
2418
  - app/pb_kits/playbook/utilities/test-utils.js
2397
2419
  - app/pb_kits/playbook/utilities/test/globalProps/alignContent.test.js
@@ -2430,6 +2452,7 @@ files:
2430
2452
  - lib/playbook/forms/builder/collection_select_field.rb
2431
2453
  - lib/playbook/forms/builder/date_picker_field.rb
2432
2454
  - lib/playbook/forms/builder/form_field_builder.rb
2455
+ - lib/playbook/forms/builder/intl_telephone_field.rb
2433
2456
  - lib/playbook/forms/builder/select_field.rb
2434
2457
  - lib/playbook/forms/builder/typeahead_field.rb
2435
2458
  - lib/playbook/justify_content.rb