playbook_ui 12.26.1.pre.alpha.railsmultilevelimprovements842 → 12.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +11 -9
  3. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_month_and_year_styles.scss +1 -1
  4. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_week_styles.scss +1 -1
  5. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +1 -1
  6. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -3
  7. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +109 -44
  8. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +14 -0
  9. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +60 -0
  10. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +3 -1
  11. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +1 -0
  12. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +6 -0
  13. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +110 -62
  14. data/app/pb_kits/playbook/pb_rich_text_editor/_trix_styles.scss +2 -2
  15. data/app/pb_kits/playbook/pb_title/_title.scss +1 -1
  16. data/app/pb_kits/playbook/pb_title/_title.tsx +2 -3
  17. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.html.erb +1 -0
  18. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.jsx +6 -0
  19. data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.md +1 -2
  20. data/app/pb_kits/playbook/pb_title/title.rb +3 -10
  21. data/app/pb_kits/playbook/pb_title/title.test.js +3 -3
  22. data/app/pb_kits/playbook/utilities/object.ts +3 -0
  23. data/dist/playbook-rails.js +3 -3
  24. data/lib/playbook/forms/builder/intl_telephone_field.rb +12 -0
  25. data/lib/playbook/forms/builder.rb +1 -0
  26. data/lib/playbook/version.rb +1 -1
  27. metadata +10 -6
@@ -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
  require_relative "builder/multi_level_select_field"
14
15
 
15
16
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.26.1"
5
- VERSION = "12.26.1.pre.alpha.railsmultilevelimprovements842"
5
+ VERSION = "12.27.0"
6
6
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.26.1.pre.alpha.railsmultilevelimprovements842
4
+ version: 12.27.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
12
  date: 2023-06-27 00:00:00.000000000 Z
@@ -1601,6 +1601,8 @@ files:
1601
1601
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb
1602
1602
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx
1603
1603
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
1604
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb
1605
+ - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx
1604
1606
  - app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
1605
1607
  - app/pb_kits/playbook/pb_phone_number_input/docs/index.js
1606
1608
  - app/pb_kits/playbook/pb_phone_number_input/phone_number_input.html.erb
@@ -2412,6 +2414,7 @@ files:
2412
2414
  - app/pb_kits/playbook/utilities/flexbox_global_props/_justify_self.scss
2413
2415
  - app/pb_kits/playbook/utilities/flexbox_global_props/_order.scss
2414
2416
  - app/pb_kits/playbook/utilities/globalProps.ts
2417
+ - app/pb_kits/playbook/utilities/object.ts
2415
2418
  - app/pb_kits/playbook/utilities/props.ts
2416
2419
  - app/pb_kits/playbook/utilities/test-utils.js
2417
2420
  - app/pb_kits/playbook/utilities/test/globalProps/alignContent.test.js
@@ -2450,6 +2453,7 @@ files:
2450
2453
  - lib/playbook/forms/builder/collection_select_field.rb
2451
2454
  - lib/playbook/forms/builder/date_picker_field.rb
2452
2455
  - lib/playbook/forms/builder/form_field_builder.rb
2456
+ - lib/playbook/forms/builder/intl_telephone_field.rb
2453
2457
  - lib/playbook/forms/builder/multi_level_select_field.rb
2454
2458
  - lib/playbook/forms/builder/select_field.rb
2455
2459
  - lib/playbook/forms/builder/typeahead_field.rb
@@ -2489,7 +2493,7 @@ homepage: https://playbook.powerapp.cloud/
2489
2493
  licenses:
2490
2494
  - ISC
2491
2495
  metadata: {}
2492
- post_install_message:
2496
+ post_install_message:
2493
2497
  rdoc_options: []
2494
2498
  require_paths:
2495
2499
  - lib
@@ -2500,12 +2504,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2500
2504
  version: '0'
2501
2505
  required_rubygems_version: !ruby/object:Gem::Requirement
2502
2506
  requirements:
2503
- - - ">"
2507
+ - - ">="
2504
2508
  - !ruby/object:Gem::Version
2505
- version: 1.3.1
2509
+ version: '0'
2506
2510
  requirements: []
2507
2511
  rubygems_version: 3.3.7
2508
- signing_key:
2512
+ signing_key:
2509
2513
  specification_version: 4
2510
2514
  summary: Playbook Design System
2511
2515
  test_files: []