From 497e0134d868757cfc594c8706b458fbdb8481df Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 8 Aug 2025 12:59:27 +0200 Subject: [PATCH] mobile optimizations --- components/PhoneInputDemo.vue | 103 +++++--- components/PhoneInputWrapper.vue | 406 +++++++++++++++++++++++++++++-- 2 files changed, 466 insertions(+), 43 deletions(-) diff --git a/components/PhoneInputDemo.vue b/components/PhoneInputDemo.vue index 1014729..5d63e56 100644 --- a/components/PhoneInputDemo.vue +++ b/components/PhoneInputDemo.vue @@ -2,7 +2,7 @@
- ๐Ÿ“ฑ Perfect Phone Input - Like Screenshot 2 + ๐Ÿ“ฑ Professional Phone Input - Desktop & Mobile Optimized @@ -11,30 +11,42 @@ v-model="phoneNumber" label="Phone Number" placeholder="Enter your phone number" - help-text="Clean Vuetify design with compact flag dropdown" + help-text="Clean Vuetify design with advanced mobile optimization" @phone-data="handlePhoneData" @country-changed="handleCountryChange" /> - - Test: (917) 932-4061 - - - - Test: Monaco +377 - +
+ + Test: (917) 932-4061 + + + + Test: Monaco +377 + + + + Test: France +33 + +
@@ -45,13 +57,14 @@

Valid: {{ phoneData?.isValid ? 'โœ… Valid' : 'โŒ Invalid' }}

Country: {{ phoneData?.country?.name }} ({{ phoneData?.country?.iso2 }})

Dial Code: {{ phoneData?.country?.dialCode }}

+

Device: {{ isMobile ? '๐Ÿ“ฑ Mobile' : '๐Ÿ–ฅ๏ธ Desktop' }}

- +