@input-kit/phone 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,17 @@ Headless React phone input with a complete world country-code dataset, searchabl
|
|
|
4
4
|
|
|
5
5
|
## Latest update
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**0.2.0** highlights:
|
|
8
|
+
|
|
9
|
+
- Structured validation: `ValidationReason`, unified `validatePhoneNumber` (`reason`, `message`, `error`), and `onValidationChange` on the hook
|
|
10
|
+
- `parsePhoneValue(phone, country?)` for `{ country, nationalNumber, e164, isValid }`
|
|
11
|
+
- `getCountryOptions()` for sorted, filterable country lists (locale and allow/exclude lists)
|
|
12
|
+
- `PhoneInput` click-outside close, improved listbox ARIA (`aria-activedescendant`), and RTL coverage in tests
|
|
13
|
+
- Integration guide ([docs/integrations.md](./docs/integrations.md)), CI on Bun, and refreshed 0.1.x migration notes in this README
|
|
14
|
+
|
|
15
|
+
Full release history: [CHANGELOG.md on GitHub](https://github.com/input-kit/input-kit-phone/blob/main/CHANGELOG.md) (not included in the npm package).
|
|
16
|
+
|
|
17
|
+
**0.2.1** — documentation only: README changelog link fix for npm readers.
|
|
8
18
|
|
|
9
19
|
## Features
|
|
10
20
|
|
package/package.json
CHANGED