Skip to content

Commit

Permalink
chore(release): 1.0.0 [skip ci]
Browse files Browse the repository at this point in the history
# 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
semantic-release-bot committed Dec 22, 2020
1 parent 28ba593 commit 62b3ef3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 1.0.0 (2020-12-22)


### Features

* **props:** `value`, `error` and `country` can now be passed to the component ([3081b42](https://github.com/soufyakoub/mui-phone-textfield/commit/3081b425dd7cb8d8f0fb1710196c68a699eb09a7))
* **props:** country is now optional ([28ba593](https://github.com/soufyakoub/mui-phone-textfield/commit/28ba593b281e887195a066903fe30df3abbea4b1))


### 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.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mui-phone-textfield",
"version": "0.0.0",
"version": "1.0.0",
"description": "A phone number input for Material-UI.",
"main": "dist/cjs/bundle.js",
"module": "dist/esm/bundle.js",
Expand Down

0 comments on commit 62b3ef3

Please sign in to comment.