Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 1.0.0 (2020-12-22) ### Features * **props:** `value`, `error` and `country` can now be passed to the component ([3081b42](3081b42)) * **props:** country is now optional ([28ba593](28ba593)) ### BREAKING CHANGES * **props:** the user is now responsible for controlling the input. - `onChange` receives the original input change event but with the additional properties `currentTarget.formattedValue`, and `phoneNumber` if a valid phone number is extracted from the input's value. - `onCountrySelect` receives a data object with the properties: - `country`: the selected country. - `formattedValue`: the formatted value for the selected country. - `phoneNumber`: a PhoneNumber instance if a valid phone number was extracted from the input's value.
- Loading branch information