Releases: recursive-beast/mui-phone-textfield
Releases · recursive-beast/mui-phone-textfield
v5.1.0
v5.0.0
5.0.0 (2023-08-23)
Bug Fixes
- update state on country change (266b5e9)
Features
- add CountrySelect component (2df22e1)
- provide convenient event listeners instead of onChange (eee54b4)
- simplify component props (49390c7)
BREAKING CHANGES
- package has been rewritten
- simplified event listeners
- value state is now controlled from inside the component
- no need to configure bundler for image imports anymore
- the select component is hidden if no country is
provided - a select is used instead of a button that opens a menu,
this results in better accessibility
v5.0.0-pre-release.1
5.0.0-pre-release.1 (2023-08-23)
Bug Fixes
- update state on country change (266b5e9)
Features
- add CountrySelect component (2df22e1)
- provide convenient event listeners instead of onChange (eee54b4)
- simplify component props (49390c7)
BREAKING CHANGES
- package has been rewritten
- simplified event listeners
- value state is now controlled from inside the component
- no need to configure bundler for image imports anymore
- the select component is hidden if no country is
provided - a select is used instead of a button that opens a menu,
this results in better accessibility
v4.0.0
v3.1.1
v3.1.0
v3.0.0
v2.2.0
v2.1.0
v2.0.0
2.0.0 (2020-12-23)
Features
onChange
now receives a data object instead of the change event (3cc83d6)
BREAKING CHANGES
- The object passed to
onChange
has the following
properties:formattedValue
: The formatted value for the selected country. Extracted from the input value.phoneNumber
: An instance of the
PhoneNumber
class, orundefined
if no valid phone number could be parsed from the input value.event
: The original event that triggered theonChange
handler.