Skip to content

Releases: recursive-beast/mui-phone-textfield

v1.0.1

23 Dec 15:06
Compare
Choose a tag to compare

1.0.1 (2020-12-23)

Bug Fixes

v1.0.0

22 Dec 14:10
Compare
Choose a tag to compare

1.0.0 (2020-12-22)

Features

  • props: value, error and country can now be passed to the component (3081b42)
  • props: country is now optional (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.