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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9e1489462a3801b52dfe684f47a206bd828e7acef14d05c33d0f82fc2338cee
|
4
|
+
data.tar.gz: 01d894ce63d37e36d7ba7cac5e6469c51f280b06d43a736046899300b3c6b230
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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", (
|
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
|
|
data/lib/playbook/version.rb
CHANGED
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
|
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-
|
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:
|
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: []
|