ozkary / UISpark

UISpark is a powerful library designed to simplify and supercharge your web forms.
Apache License 2.0
1 stars 1 forks source link

Enhance PhoneMask to Support International Numbers #1

Open ozkary opened 1 month ago

ozkary commented 1 month ago

Enhancement Proposal: Support for International Phone Numbers

Component: PhoneMask

Current Behavior

The current implementation of PhoneMask formats phone numbers in the format xxx-xxx-xxxx. This does not support international phone number formats which can vary widely.

Expected Behavior

Enhance the PhoneMask component to support international phone number formats, such as 1-111-222-3333, +44 20 7123 4567, etc.

Suggested Approach

  1. Detect the country code and format the number accordingly.
  2. Use a library or implement logic to handle different international formats.

Additional Context

This enhancement will make PhoneMask more versatile and applicable in a global context.

Label: enhancement

gitdevjin commented 1 month ago

I would like to try this :)