feat(phone-input): integrate phone number input component and validation

- Added `libphonenumber-js` dependency for improved phone number handling.
- Refactored `CreateAdmin` form to utilize a new `PhoneNumberInput` component with validation rules.
- Updated `useCreateAdminPresenter` to normalize phone number input before submission.
- Enhanced error messages for phone validation in `Texts` constant.
- Modified `User` schema to validate phone numbers using E.164 format.
This commit is contained in:
AmirReza Jamali
2026-05-16 10:28:03 +03:30
parent f79348312b
commit d9a945904a
11 changed files with 378 additions and 25 deletions
+1
View File
@@ -29,6 +29,7 @@
"gsap": "^3.15.0",
"js-cookie": "^3.0.5",
"jsvectormap": "^1.6.0",
"libphonenumber-js": "^1.13.2",
"lottie-react": "^2.4.1",
"moment": "^2.30.1",
"next": "15.1.9",