playbook_ui 13.27.0.pre.alpha.PBNTR48phonenumberform2852 → 13.27.0.pre.alpha.PLAY1250fixTextInpputaddonborderradiusformgroup2862

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95ac0ea9e7bb139ef4d92f659e024423095eae94e41850491e67c604bf11166a
4
- data.tar.gz: 5c7df5b7c03fe937e780f015f89c6f1b4d8a5444e0ad4c2b7403681d4d263df4
3
+ metadata.gz: 13b6125e3cb0229c3dcf449f12ae4ca3f34084a498dfea3d1c18095be1c65fd9
4
+ data.tar.gz: 319fb35a1e6950bd4b80cbae57ae064f35cddbf19adb2ce7685a883abbe016c4
5
5
  SHA512:
6
- metadata.gz: 3610fe5c23968bb7313a2b1402347ddf034e97aced69a7add3bf4eb032ce0ac457cfb84a7e1d9bae10c460163fe8aeec71b680737f318105ab448e3c95770ae3
7
- data.tar.gz: a3a8edacab61267f15694d6bce0c72e38f8915180b39d6e6b8f43a789634e46c0c897ca0d14b4a6013457efefd124a9e1ceb00dd4b6bc73450d946c7c054b9b6
6
+ metadata.gz: '087378f8eff02db4a21cdb6228e5ff5f109ec480840ae44df5735f56a538a9900e42f490847bea7cf175658670ccca90171c8b360ce724fb28abd47436134ad8'
7
+ data.tar.gz: 572e3262a0d53319e5b7e578dd83ea4126b19e3a1f72a0272ff0e3d81f21d9dc744b03a7f43b1c31fba883d4f0614ed390dda5a235965fb1650b444b3662012e
@@ -16,7 +16,7 @@
16
16
  <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
17
17
  <%= form.typeahead :example_user, props: { data: { typeahead_example1: true, user: {} }, placeholder: "Search for a user" } %>
18
18
  <%= form.text_field :example_text_field, props: { label: true } %>
19
- <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
19
+ <%= form.telephone_field :example_phone_field, props: { label: true } %>
20
20
  <%= form.email_field :example_email_field, props: { label: true } %>
21
21
  <%= form.number_field :example_number_field, props: { label: true } %>
22
22
  <%= form.search_field :example_search_field, props: { label: true } %>
@@ -15,7 +15,7 @@
15
15
 
16
16
  <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
17
17
  <%= form.text_field :example_text_field, props: { label: true, required: true } %>
18
- <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
18
+ <%= form.telephone_field :example_phone_field, props: { label: true, required: true, validation: { pattern: "[0-9]{3}-[0-9]{3}-[0-9]{4}", message: "Please enter a valid phone number (example: 888-888-8888)." } } %>
19
19
  <%= form.email_field :example_email_field, props: { label: true, required: true } %>
20
20
  <%= form.number_field :example_number_field, props: { label: true, required: true } %>
21
21
  <%= form.search_field :example_project_number, props: { label: true, required: true, validation: { pattern: "[0-9]{2}-[0-9]{5}", message: "Please enter a valid project number (example: 33-12345)." } } %>
@@ -33,6 +33,17 @@
33
33
  outline-offset: -1px;
34
34
  }
35
35
  }
36
+ .text_input_wrapper_add_on .add-on-right [class^=pb_card_kit] {
37
+ border-bottom-right-radius: 0;
38
+ border-top-right-radius: 0;
39
+ border-right-width: 0;
40
+ }
41
+ .text_input_wrapper_add_on .add-on-right.border_left_on .card-right-aligned {
42
+ border-left: 1px $border_light solid;
43
+ &.dark {
44
+ border-left: 1px rgba($white, 0.15) solid;
45
+ }
46
+ }
36
47
  }
37
48
 
38
49
  & > [class^=pb_text_input_kit]:not(:first-child) {
@@ -40,6 +51,10 @@
40
51
  border-bottom-left-radius: 0;
41
52
  border-top-left-radius: 0;
42
53
  }
54
+ .text_input_wrapper_add_on .add-on-left [class^=pb_card_kit] {
55
+ border-bottom-left-radius: 0;
56
+ border-top-left-radius: 0;
57
+ }
43
58
  }
44
59
 
45
60
  & > [class^=pb_button_kit]:not(:last-child) {
@@ -12,7 +12,6 @@ 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"
16
15
 
17
16
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
18
17
  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.PBNTR48phonenumberform2852"
5
+ VERSION = "13.27.0.pre.alpha.PLAY1250fixTextInpputaddonborderradiusformgroup2862"
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.PBNTR48phonenumberform2852
4
+ version: 13.27.0.pre.alpha.PLAY1250fixTextInpputaddonborderradiusformgroup2862
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -2898,7 +2898,6 @@ files:
2898
2898
  - lib/playbook/forms/builder/form_field_builder.rb
2899
2899
  - lib/playbook/forms/builder/intl_telephone_field.rb
2900
2900
  - lib/playbook/forms/builder/multi_level_select_field.rb
2901
- - lib/playbook/forms/builder/phone_number_field.rb
2902
2901
  - lib/playbook/forms/builder/select_field.rb
2903
2902
  - lib/playbook/forms/builder/typeahead_field.rb
2904
2903
  - lib/playbook/hover.rb
@@ -1,12 +0,0 @@
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