playbook_ui 12.10.0.pre.alpha.PLAY705phonenumberreturn372 → 12.10.0

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: 203044cb15b22597397b39bf38a531a0c158c55ec72ae4e3cdebe8ad8ec6a64a
4
- data.tar.gz: e8fa151f4da651ffbf4789f3b160fbef3f5e70a0762512c0b1350b2c457f8459
3
+ metadata.gz: f9e1489462a3801b52dfe684f47a206bd828e7acef14d05c33d0f82fc2338cee
4
+ data.tar.gz: 01d894ce63d37e36d7ba7cac5e6469c51f280b06d43a736046899300b3c6b230
5
5
  SHA512:
6
- metadata.gz: 7498a9c8f75ce5a49924ca0df255b9a62c71197b850c443ee2f7216298583018fb43d106d217b3afd230356c1e1d2f642fa0d0f4e85fc12a70c8e4a3ceadff5e
7
- data.tar.gz: 235cbf4d84f40cf6c557fb986acc5c8665a0d837895740609957445c9a810fab8c2d306dc10bd9518d94a4a3d8c27f548ef00484c4f5210cc5f18527837b885f
6
+ metadata.gz: 4ce7e5fa512dfe372904d822f263888f05557305935ff171c48582aa1d80a67ddbfb772a92598ecffce4d39a6399a6b34e27b754b4f11f46da116cb5db358030
7
+ data.tar.gz: 47eccdf4be23394775ab3ebd74e0797d0b49290906dd0ae7da66d289b04702f374152cbc1180963ee5a0c9d8c31988d61a7421d00adeb34aa55ca1c150a81671
@@ -121,15 +121,10 @@ const PhoneNumberInput = (props: PhoneNumberInputProps) => {
121
121
  validateOnlyNumbers()
122
122
  }
123
123
 
124
- const getCurrentSelectedData = (itiInit: any, inputValue: string) => {
125
- return {...itiInit.getSelectedCountryData(), number: inputValue}
126
- }
127
-
128
124
  const handleOnChange = (evt: React.ChangeEvent<HTMLInputElement>) => {
129
125
  setInputValue(evt.target.value)
130
126
  validateTooLongNumber(itiInit)
131
- const selectedData = getCurrentSelectedData(itiInit, evt.target.value)
132
- onChange(selectedData)
127
+ onChange(evt)
133
128
  isValid(itiInit.isValidNumber())
134
129
  }
135
130
 
@@ -149,12 +144,7 @@ const PhoneNumberInput = (props: PhoneNumberInputProps) => {
149
144
  }
150
145
  )
151
146
 
152
- inputRef.current.addEventListener("countrychange", (evt: Event) => {
153
- validateTooLongNumber(telInputInit)
154
- const selectedData = getCurrentSelectedData(telInputInit, (evt.target as HTMLInputElement).value)
155
- onChange(selectedData)
156
- })
157
-
147
+ inputRef.current.addEventListener("countrychange", () => validateTooLongNumber(telInputInit))
158
148
  inputRef.current.addEventListener("open:countrydropdown", () => setDropDownIsOpen(true))
159
149
  inputRef.current.addEventListener("close:countrydropdown", () => setDropDownIsOpen(false))
160
150
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "12.10.0"
5
- VERSION = "12.10.0.pre.alpha.PLAY705phonenumberreturn372"
4
+ PREVIOUS_VERSION = "12.9.1"
5
+ VERSION = "12.10.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: 12.10.0.pre.alpha.PLAY705phonenumberreturn372
4
+ version: 12.10.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: 2023-03-23 00:00:00.000000000 Z
12
+ date: 2023-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2453,7 +2453,7 @@ homepage: http://playbook.powerapp.cloud
2453
2453
  licenses:
2454
2454
  - ISC
2455
2455
  metadata: {}
2456
- post_install_message:
2456
+ post_install_message:
2457
2457
  rdoc_options: []
2458
2458
  require_paths:
2459
2459
  - lib
@@ -2464,12 +2464,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2464
2464
  version: '0'
2465
2465
  required_rubygems_version: !ruby/object:Gem::Requirement
2466
2466
  requirements:
2467
- - - ">"
2467
+ - - ">="
2468
2468
  - !ruby/object:Gem::Version
2469
- version: 1.3.1
2469
+ version: '0'
2470
2470
  requirements: []
2471
2471
  rubygems_version: 3.3.7
2472
- signing_key:
2472
+ signing_key:
2473
2473
  specification_version: 4
2474
2474
  summary: Playbook Design System
2475
2475
  test_files: []