@kingteza/crud-component 1.22.2 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.cjs.js +1 -0
- package/dist/_virtual/_commonjsHelpers.es.js +6 -0
- package/dist/_virtual/index.cjs.js +1 -0
- package/dist/_virtual/index.cjs2.js +1 -0
- package/dist/_virtual/index.cjs3.js +1 -0
- package/dist/_virtual/index.cjs4.js +1 -0
- package/dist/_virtual/index.cjs5.js +1 -0
- package/dist/_virtual/index.es.js +7 -0
- package/dist/_virtual/index.es2.js +7 -0
- package/dist/_virtual/index.es3.js +4 -0
- package/dist/_virtual/index.es4.js +4 -0
- package/dist/_virtual/index.es5.js +4 -0
- package/dist/_virtual/react-is.development.cjs.js +1 -0
- package/dist/_virtual/react-is.development.es.js +4 -0
- package/dist/_virtual/react-is.production.min.cjs.js +1 -0
- package/dist/_virtual/react-is.production.min.es.js +4 -0
- package/dist/common/text-field/PhoneNumberField.cjs.js +1 -1
- package/dist/common/text-field/PhoneNumberField.d.ts +9 -1
- package/dist/common/text-field/PhoneNumberField.es.js +70 -15
- package/dist/common/text-field/index.d.ts +1 -0
- package/dist/crud/CrudComponent.d.ts +5 -0
- package/dist/crud/CrudField.cjs.js +1 -1
- package/dist/crud/CrudField.es.js +238 -213
- package/dist/crud/import/CrudImportComponent.cjs.js +2 -2
- package/dist/crud/import/CrudImportComponent.es.js +14 -15
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.cjs.js +5 -0
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.es.js +42 -0
- package/dist/node_modules/.pnpm/country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/react/3x2/index.cjs.js +1 -0
- package/dist/node_modules/.pnpm/country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/react/3x2/index.es.js +6214 -0
- package/dist/node_modules/.pnpm/country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/unicode.cjs.js +1 -0
- package/dist/node_modules/.pnpm/country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/unicode.es.js +9 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/closeBraces.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/closeBraces.es.js +9 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/dom.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/dom.es.js +43 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/edit.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/edit.es.js +17 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/format.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/format.es.js +28 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/helpers.cjs.js +2 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/helpers.es.js +37 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/inputControl.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/inputControl.es.js +36 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/parse.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/parse.es.js +15 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/react/Input.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/react/Input.es.js +86 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/react/useInput.cjs.js +1 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/react/useInput.es.js +69 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/templateFormatter.cjs.js +2 -0
- package/dist/node_modules/.pnpm/input-format@0.3.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/input-format/modules/templateFormatter.es.js +62 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouType.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouType.es.js +366 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.cjs.js +4 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.es.js +172 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.es.js +157 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.es.js +49 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.es.js +264 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.es.js +63 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeParser.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeParser.es.js +265 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeState.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/AsYouTypeState.es.js +110 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/ParseError.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/ParseError.es.js +89 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/PhoneNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/PhoneNumber.es.js +188 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/constants.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/constants.es.js +10 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/format.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/format.es.js +98 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.es.js +7 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/getCountries.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/getCountries.es.js +7 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/RFC3966.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/RFC3966.es.js +11 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.es.js +7 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.es.js +16 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.es.js +11 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.es.js +18 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.es.js +47 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.es.js +22 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.es.js +23 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.es.js +39 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.es.js +31 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.es.js +23 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.es.js +27 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.es.js +12 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.es.js +45 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.es.js +12 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getNumberType.es.js +50 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.es.js +14 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/isObject.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/isObject.es.js +7 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.es.js +20 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.es.js +6 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/parseDigits.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/parseDigits.es.js +112 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.es.js +19 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isPossible.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isPossible.es.js +42 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValid.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValid.es.js +12 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValidPhoneNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValidPhoneNumber.es.js +59 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/metadata.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/metadata.es.js +473 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/normalizeArguments.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/normalizeArguments.es.js +108 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parse.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parse.es.js +119 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs.js +2 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.es.js +47 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber.es.js +9 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.es.js +55 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber_.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber_.es.js +62 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/tools/semver-compare.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/tools/semver-compare.es.js +14 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/metadata.min.json.cjs.js +1 -0
- package/dist/node_modules/.pnpm/libphonenumber-js@1.12.36/node_modules/libphonenumber-js/metadata.min.json.es.js +4 -0
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.cjs.js +5 -0
- package/dist/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.es.js +54 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/checkPropTypes.es.js +54 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithThrowingShims.es.js +52 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.cjs.js +2 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.es.js +329 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.es.js +17 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/ReactPropTypesSecret.es.js +10 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.cjs.js +1 -0
- package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/lib/has.es.js +7 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.cjs.js +8 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.es.js +95 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.cjs.js +8 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.es.js +78 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.es.js +10 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/locale/en.json.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/locale/en.json.es.js +263 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/min/index.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/min/index.es.js +20 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/CountryIcon.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/CountryIcon.es.js +69 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/CountrySelect.cjs.js +2 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/CountrySelect.es.js +158 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/Flag.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/Flag.es.js +62 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InputBasic.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InputBasic.es.js +113 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InputSmart.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InputSmart.es.js +106 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InternationalIcon.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/InternationalIcon.es.js +122 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.es.js +830 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.es.js +50 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PropTypes.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/PropTypes.es.js +9 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/countries.cjs.js +2 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/countries.es.js +78 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/getInternationalPhoneNumberPrefix.es.js +8 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/getPhoneInputWithCountryStateUpdateFromNewProps.es.js +141 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/inputValuePrefix.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/inputValuePrefix.es.js +12 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/isE164Number.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/isE164Number.es.js +17 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/parsePhoneNumberCharacter.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/parsePhoneNumberCharacter.es.js +17 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/phoneInputHelpers.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/helpers/phoneInputHelpers.es.js +203 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/useExternalRef.cjs.js +2 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/useExternalRef.es.js +39 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/useInputKeyDownHandler.cjs.js +1 -0
- package/dist/node_modules/.pnpm/react-phone-number-input@3.4.14_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-phone-number-input/modules/useInputKeyDownHandler.es.js +18 -0
- package/dist/style.css +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
ext: "ext.",
|
|
3
|
+
country: "Phone number country",
|
|
4
|
+
phone: "Phone",
|
|
5
|
+
AC: "Ascension Island",
|
|
6
|
+
AD: "Andorra",
|
|
7
|
+
AE: "United Arab Emirates",
|
|
8
|
+
AF: "Afghanistan",
|
|
9
|
+
AG: "Antigua and Barbuda",
|
|
10
|
+
AI: "Anguilla",
|
|
11
|
+
AL: "Albania",
|
|
12
|
+
AM: "Armenia",
|
|
13
|
+
AO: "Angola",
|
|
14
|
+
AQ: "Antarctica",
|
|
15
|
+
AR: "Argentina",
|
|
16
|
+
AS: "American Samoa",
|
|
17
|
+
AT: "Austria",
|
|
18
|
+
AU: "Australia",
|
|
19
|
+
AW: "Aruba",
|
|
20
|
+
AX: "Åland Islands",
|
|
21
|
+
AZ: "Azerbaijan",
|
|
22
|
+
BA: "Bosnia and Herzegovina",
|
|
23
|
+
BB: "Barbados",
|
|
24
|
+
BD: "Bangladesh",
|
|
25
|
+
BE: "Belgium",
|
|
26
|
+
BF: "Burkina Faso",
|
|
27
|
+
BG: "Bulgaria",
|
|
28
|
+
BH: "Bahrain",
|
|
29
|
+
BI: "Burundi",
|
|
30
|
+
BJ: "Benin",
|
|
31
|
+
BL: "Saint Barthélemy",
|
|
32
|
+
BM: "Bermuda",
|
|
33
|
+
BN: "Brunei Darussalam",
|
|
34
|
+
BO: "Bolivia",
|
|
35
|
+
BQ: "Bonaire, Sint Eustatius and Saba",
|
|
36
|
+
BR: "Brazil",
|
|
37
|
+
BS: "Bahamas",
|
|
38
|
+
BT: "Bhutan",
|
|
39
|
+
BV: "Bouvet Island",
|
|
40
|
+
BW: "Botswana",
|
|
41
|
+
BY: "Belarus",
|
|
42
|
+
BZ: "Belize",
|
|
43
|
+
CA: "Canada",
|
|
44
|
+
CC: "Cocos (Keeling) Islands",
|
|
45
|
+
CD: "Congo, Democratic Republic of the",
|
|
46
|
+
CF: "Central African Republic",
|
|
47
|
+
CG: "Congo",
|
|
48
|
+
CH: "Switzerland",
|
|
49
|
+
CI: "Cote d'Ivoire",
|
|
50
|
+
CK: "Cook Islands",
|
|
51
|
+
CL: "Chile",
|
|
52
|
+
CM: "Cameroon",
|
|
53
|
+
CN: "China",
|
|
54
|
+
CO: "Colombia",
|
|
55
|
+
CR: "Costa Rica",
|
|
56
|
+
CU: "Cuba",
|
|
57
|
+
CV: "Cape Verde",
|
|
58
|
+
CW: "Curaçao",
|
|
59
|
+
CX: "Christmas Island",
|
|
60
|
+
CY: "Cyprus",
|
|
61
|
+
CZ: "Czech Republic",
|
|
62
|
+
DE: "Germany",
|
|
63
|
+
DJ: "Djibouti",
|
|
64
|
+
DK: "Denmark",
|
|
65
|
+
DM: "Dominica",
|
|
66
|
+
DO: "Dominican Republic",
|
|
67
|
+
DZ: "Algeria",
|
|
68
|
+
EC: "Ecuador",
|
|
69
|
+
EE: "Estonia",
|
|
70
|
+
EG: "Egypt",
|
|
71
|
+
EH: "Western Sahara",
|
|
72
|
+
ER: "Eritrea",
|
|
73
|
+
ES: "Spain",
|
|
74
|
+
ET: "Ethiopia",
|
|
75
|
+
FI: "Finland",
|
|
76
|
+
FJ: "Fiji",
|
|
77
|
+
FK: "Falkland Islands",
|
|
78
|
+
FM: "Federated States of Micronesia",
|
|
79
|
+
FO: "Faroe Islands",
|
|
80
|
+
FR: "France",
|
|
81
|
+
GA: "Gabon",
|
|
82
|
+
GB: "United Kingdom",
|
|
83
|
+
GD: "Grenada",
|
|
84
|
+
GE: "Georgia",
|
|
85
|
+
GF: "French Guiana",
|
|
86
|
+
GG: "Guernsey",
|
|
87
|
+
GH: "Ghana",
|
|
88
|
+
GI: "Gibraltar",
|
|
89
|
+
GL: "Greenland",
|
|
90
|
+
GM: "Gambia",
|
|
91
|
+
GN: "Guinea",
|
|
92
|
+
GP: "Guadeloupe",
|
|
93
|
+
GQ: "Equatorial Guinea",
|
|
94
|
+
GR: "Greece",
|
|
95
|
+
GS: "South Georgia and the South Sandwich Islands",
|
|
96
|
+
GT: "Guatemala",
|
|
97
|
+
GU: "Guam",
|
|
98
|
+
GW: "Guinea-Bissau",
|
|
99
|
+
GY: "Guyana",
|
|
100
|
+
HK: "Hong Kong",
|
|
101
|
+
HM: "Heard Island and McDonald Islands",
|
|
102
|
+
HN: "Honduras",
|
|
103
|
+
HR: "Croatia",
|
|
104
|
+
HT: "Haiti",
|
|
105
|
+
HU: "Hungary",
|
|
106
|
+
ID: "Indonesia",
|
|
107
|
+
IE: "Ireland",
|
|
108
|
+
IL: "Israel",
|
|
109
|
+
IM: "Isle of Man",
|
|
110
|
+
IN: "India",
|
|
111
|
+
IO: "British Indian Ocean Territory",
|
|
112
|
+
IQ: "Iraq",
|
|
113
|
+
IR: "Iran",
|
|
114
|
+
IS: "Iceland",
|
|
115
|
+
IT: "Italy",
|
|
116
|
+
JE: "Jersey",
|
|
117
|
+
JM: "Jamaica",
|
|
118
|
+
JO: "Jordan",
|
|
119
|
+
JP: "Japan",
|
|
120
|
+
KE: "Kenya",
|
|
121
|
+
KG: "Kyrgyzstan",
|
|
122
|
+
KH: "Cambodia",
|
|
123
|
+
KI: "Kiribati",
|
|
124
|
+
KM: "Comoros",
|
|
125
|
+
KN: "Saint Kitts and Nevis",
|
|
126
|
+
KP: "North Korea",
|
|
127
|
+
KR: "South Korea",
|
|
128
|
+
KW: "Kuwait",
|
|
129
|
+
KY: "Cayman Islands",
|
|
130
|
+
KZ: "Kazakhstan",
|
|
131
|
+
LA: "Laos",
|
|
132
|
+
LB: "Lebanon",
|
|
133
|
+
LC: "Saint Lucia",
|
|
134
|
+
LI: "Liechtenstein",
|
|
135
|
+
LK: "Sri Lanka",
|
|
136
|
+
LR: "Liberia",
|
|
137
|
+
LS: "Lesotho",
|
|
138
|
+
LT: "Lithuania",
|
|
139
|
+
LU: "Luxembourg",
|
|
140
|
+
LV: "Latvia",
|
|
141
|
+
LY: "Libya",
|
|
142
|
+
MA: "Morocco",
|
|
143
|
+
MC: "Monaco",
|
|
144
|
+
MD: "Moldova",
|
|
145
|
+
ME: "Montenegro",
|
|
146
|
+
MF: "Saint Martin (French Part)",
|
|
147
|
+
MG: "Madagascar",
|
|
148
|
+
MH: "Marshall Islands",
|
|
149
|
+
MK: "North Macedonia",
|
|
150
|
+
ML: "Mali",
|
|
151
|
+
MM: "Myanmar",
|
|
152
|
+
MN: "Mongolia",
|
|
153
|
+
MO: "Macao",
|
|
154
|
+
MP: "Northern Mariana Islands",
|
|
155
|
+
MQ: "Martinique",
|
|
156
|
+
MR: "Mauritania",
|
|
157
|
+
MS: "Montserrat",
|
|
158
|
+
MT: "Malta",
|
|
159
|
+
MU: "Mauritius",
|
|
160
|
+
MV: "Maldives",
|
|
161
|
+
MW: "Malawi",
|
|
162
|
+
MX: "Mexico",
|
|
163
|
+
MY: "Malaysia",
|
|
164
|
+
MZ: "Mozambique",
|
|
165
|
+
NA: "Namibia",
|
|
166
|
+
NC: "New Caledonia",
|
|
167
|
+
NE: "Niger",
|
|
168
|
+
NF: "Norfolk Island",
|
|
169
|
+
NG: "Nigeria",
|
|
170
|
+
NI: "Nicaragua",
|
|
171
|
+
NL: "Netherlands",
|
|
172
|
+
NO: "Norway",
|
|
173
|
+
NP: "Nepal",
|
|
174
|
+
NR: "Nauru",
|
|
175
|
+
NU: "Niue",
|
|
176
|
+
NZ: "New Zealand",
|
|
177
|
+
OM: "Oman",
|
|
178
|
+
PA: "Panama",
|
|
179
|
+
PE: "Peru",
|
|
180
|
+
PF: "French Polynesia",
|
|
181
|
+
PG: "Papua New Guinea",
|
|
182
|
+
PH: "Philippines",
|
|
183
|
+
PK: "Pakistan",
|
|
184
|
+
PL: "Poland",
|
|
185
|
+
PM: "Saint Pierre and Miquelon",
|
|
186
|
+
PN: "Pitcairn",
|
|
187
|
+
PR: "Puerto Rico",
|
|
188
|
+
PS: "Palestine",
|
|
189
|
+
PT: "Portugal",
|
|
190
|
+
PW: "Palau",
|
|
191
|
+
PY: "Paraguay",
|
|
192
|
+
QA: "Qatar",
|
|
193
|
+
RE: "Reunion",
|
|
194
|
+
RO: "Romania",
|
|
195
|
+
RS: "Serbia",
|
|
196
|
+
RU: "Russia",
|
|
197
|
+
RW: "Rwanda",
|
|
198
|
+
SA: "Saudi Arabia",
|
|
199
|
+
SB: "Solomon Islands",
|
|
200
|
+
SC: "Seychelles",
|
|
201
|
+
SD: "Sudan",
|
|
202
|
+
SE: "Sweden",
|
|
203
|
+
SG: "Singapore",
|
|
204
|
+
SH: "Saint Helena",
|
|
205
|
+
SI: "Slovenia",
|
|
206
|
+
SJ: "Svalbard and Jan Mayen",
|
|
207
|
+
SK: "Slovakia",
|
|
208
|
+
SL: "Sierra Leone",
|
|
209
|
+
SM: "San Marino",
|
|
210
|
+
SN: "Senegal",
|
|
211
|
+
SO: "Somalia",
|
|
212
|
+
SR: "Suriname",
|
|
213
|
+
SS: "South Sudan",
|
|
214
|
+
ST: "Sao Tome and Principe",
|
|
215
|
+
SV: "El Salvador",
|
|
216
|
+
SX: "Sint Maarten",
|
|
217
|
+
SY: "Syria",
|
|
218
|
+
SZ: "Swaziland",
|
|
219
|
+
TA: "Tristan da Cunha",
|
|
220
|
+
TC: "Turks and Caicos Islands",
|
|
221
|
+
TD: "Chad",
|
|
222
|
+
TF: "French Southern Territories",
|
|
223
|
+
TG: "Togo",
|
|
224
|
+
TH: "Thailand",
|
|
225
|
+
TJ: "Tajikistan",
|
|
226
|
+
TK: "Tokelau",
|
|
227
|
+
TL: "Timor-Leste",
|
|
228
|
+
TM: "Turkmenistan",
|
|
229
|
+
TN: "Tunisia",
|
|
230
|
+
TO: "Tonga",
|
|
231
|
+
TR: "Turkey",
|
|
232
|
+
TT: "Trinidad and Tobago",
|
|
233
|
+
TV: "Tuvalu",
|
|
234
|
+
TW: "Taiwan",
|
|
235
|
+
TZ: "Tanzania",
|
|
236
|
+
UA: "Ukraine",
|
|
237
|
+
UG: "Uganda",
|
|
238
|
+
UM: "United States Minor Outlying Islands",
|
|
239
|
+
US: "United States",
|
|
240
|
+
UY: "Uruguay",
|
|
241
|
+
UZ: "Uzbekistan",
|
|
242
|
+
VA: "Holy See (Vatican City State)",
|
|
243
|
+
VC: "Saint Vincent and the Grenadines",
|
|
244
|
+
VE: "Venezuela",
|
|
245
|
+
VG: "Virgin Islands, British",
|
|
246
|
+
VI: "Virgin Islands, U.S.",
|
|
247
|
+
VN: "Vietnam",
|
|
248
|
+
VU: "Vanuatu",
|
|
249
|
+
WF: "Wallis and Futuna",
|
|
250
|
+
WS: "Samoa",
|
|
251
|
+
XA: "Abkhazia",
|
|
252
|
+
XK: "Kosovo",
|
|
253
|
+
XO: "South Ossetia",
|
|
254
|
+
YE: "Yemen",
|
|
255
|
+
YT: "Mayotte",
|
|
256
|
+
ZA: "South Africa",
|
|
257
|
+
ZM: "Zambia",
|
|
258
|
+
ZW: "Zimbabwe",
|
|
259
|
+
ZZ: "International"
|
|
260
|
+
};
|
|
261
|
+
export {
|
|
262
|
+
a as default
|
|
263
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/metadata.min.json.cjs.js"),o=require("../modules/PhoneInputWithCountryDefault.cjs.js"),a=require("../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber.cjs.js"),s=require("../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValidPhoneNumber.cjs.js");function n(t,u){var e=Array.prototype.slice.call(u);return e.push(r),t.apply(this,e)}const i=o.createPhoneInput(r);function l(){return n(a,arguments)}function c(){return n(s,arguments)}exports.default=i;exports.isValidPhoneNumber=c;exports.parsePhoneNumber=l;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import e from "../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/metadata.min.json.es.js";
|
|
2
|
+
import { createPhoneInput as a } from "../modules/PhoneInputWithCountryDefault.es.js";
|
|
3
|
+
import u from "../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parsePhoneNumber.es.js";
|
|
4
|
+
import m from "../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/isValidPhoneNumber.es.js";
|
|
5
|
+
function t(o, n) {
|
|
6
|
+
var r = Array.prototype.slice.call(n);
|
|
7
|
+
return r.push(e), o.apply(this, r);
|
|
8
|
+
}
|
|
9
|
+
const c = a(e);
|
|
10
|
+
function f() {
|
|
11
|
+
return t(u, arguments);
|
|
12
|
+
}
|
|
13
|
+
function h() {
|
|
14
|
+
return t(m, arguments);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
c as default,
|
|
18
|
+
h as isValidPhoneNumber,
|
|
19
|
+
f as parsePhoneNumber
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),u=require("../../../../../../_virtual/index.cjs.js"),b=require("../../../../../../_virtual/index.cjs2.js"),y=require("./InternationalIcon.cjs.js"),v=require("./Flag.cjs.js");var h=["country","label","aspectRatio"];function s(){return s=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},s.apply(this,arguments)}function d(t,o){if(t==null)return{};var r=C(t,o),n,e;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(e=0;e<a.length;e++)n=a[e],!(o.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function C(t,o){if(t==null)return{};var r={},n=Object.keys(t),e,a;for(a=0;a<n.length;a++)e=n[a],!(o.indexOf(e)>=0)&&(r[e]=t[e]);return r}function f(t){var o=t.flags,r=t.flagUrl,n=t.flagComponent,e=t.internationalIcon;function a(i){var c=i.country,p=i.label,m=i.aspectRatio,I=d(i,h),g=e===y?m:void 0;return l.createElement("div",s({},I,{className:b("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":c})}),c?l.createElement(n,{country:c,countryName:p,flags:o,flagUrl:r,className:"PhoneInputCountryIconImg"}):l.createElement(e,{title:p,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return a.propTypes={country:u.string,label:u.string.isRequired,aspectRatio:u.number},a}f({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:v,internationalIcon:y});exports.createCountryIconComponent=f;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import c from "react";
|
|
2
|
+
import p from "../../../../../../_virtual/index.es.js";
|
|
3
|
+
import I from "../../../../../../_virtual/index.es2.js";
|
|
4
|
+
import f from "./InternationalIcon.es.js";
|
|
5
|
+
import b from "./Flag.es.js";
|
|
6
|
+
var h = ["country", "label", "aspectRatio"];
|
|
7
|
+
function u() {
|
|
8
|
+
return u = Object.assign ? Object.assign.bind() : function(t) {
|
|
9
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
10
|
+
var o = arguments[r];
|
|
11
|
+
for (var n in o)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
|
|
13
|
+
}
|
|
14
|
+
return t;
|
|
15
|
+
}, u.apply(this, arguments);
|
|
16
|
+
}
|
|
17
|
+
function v(t, r) {
|
|
18
|
+
if (t == null) return {};
|
|
19
|
+
var o = C(t, r), n, e;
|
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
|
21
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
22
|
+
for (e = 0; e < a.length; e++)
|
|
23
|
+
n = a[e], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
|
|
24
|
+
}
|
|
25
|
+
return o;
|
|
26
|
+
}
|
|
27
|
+
function C(t, r) {
|
|
28
|
+
if (t == null) return {};
|
|
29
|
+
var o = {}, n = Object.keys(t), e, a;
|
|
30
|
+
for (a = 0; a < n.length; a++)
|
|
31
|
+
e = n[a], !(r.indexOf(e) >= 0) && (o[e] = t[e]);
|
|
32
|
+
return o;
|
|
33
|
+
}
|
|
34
|
+
function O(t) {
|
|
35
|
+
var r = t.flags, o = t.flagUrl, n = t.flagComponent, e = t.internationalIcon;
|
|
36
|
+
function a(i) {
|
|
37
|
+
var l = i.country, s = i.label, g = i.aspectRatio, y = v(i, h), m = e === f ? g : void 0;
|
|
38
|
+
return /* @__PURE__ */ c.createElement("div", u({}, y, {
|
|
39
|
+
className: I("PhoneInputCountryIcon", {
|
|
40
|
+
"PhoneInputCountryIcon--square": m === 1,
|
|
41
|
+
"PhoneInputCountryIcon--border": l
|
|
42
|
+
})
|
|
43
|
+
}), l ? /* @__PURE__ */ c.createElement(n, {
|
|
44
|
+
country: l,
|
|
45
|
+
countryName: s,
|
|
46
|
+
flags: r,
|
|
47
|
+
flagUrl: o,
|
|
48
|
+
className: "PhoneInputCountryIconImg"
|
|
49
|
+
}) : /* @__PURE__ */ c.createElement(e, {
|
|
50
|
+
title: s,
|
|
51
|
+
aspectRatio: m,
|
|
52
|
+
className: "PhoneInputCountryIconImg"
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
return a.propTypes = {
|
|
56
|
+
country: p.string,
|
|
57
|
+
label: p.string.isRequired,
|
|
58
|
+
aspectRatio: p.number
|
|
59
|
+
}, a;
|
|
60
|
+
}
|
|
61
|
+
O({
|
|
62
|
+
// Must be equal to `defaultProps.flagUrl` in `./PhoneInputWithCountry.js`.
|
|
63
|
+
flagUrl: "https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",
|
|
64
|
+
flagComponent: b,
|
|
65
|
+
internationalIcon: f
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
O as createCountryIconComponent
|
|
69
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react"),i=require("../../../../../../_virtual/index.cjs.js"),C=require("../../../../../../_virtual/index.cjs2.js"),O=require("../../../../country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/unicode.cjs.js");var I=["value","onChange","options","disabled","readOnly"],S=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function j(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=w(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(e,t){if(e){if(typeof e=="string")return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}}function y(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function m(e,t){if(e==null)return{};var n=A(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function v(e){var t=e.value,n=e.onChange,r=e.options,o=e.disabled,a=e.readOnly,f=m(e,I),s=l.useCallback(function(c){var u=c.target.value;n(u==="ZZ"?void 0:u)},[n]);return l.useMemo(function(){return g(r,t)},[r,t]),l.createElement("select",p({},f,{disabled:o||a,readOnly:a,value:t||"ZZ",onChange:s}),r.map(function(c){var u=c.value,h=c.label,d=c.divider;return l.createElement("option",{key:d?"|":u||"ZZ",value:d?"|":u||"ZZ",disabled:!!d,style:d?E:void 0},h)}))}v.propTypes={value:i.string,onChange:i.func.isRequired,options:i.arrayOf(i.shape({value:i.string,label:i.string,divider:i.bool})).isRequired,disabled:i.bool,readOnly:i.bool};var E={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function b(e){var t=e.value,n=e.options,r=e.className,o=e.iconComponent;e.getIconAspectRatio;var a=e.arrowComponent,f=a===void 0?P:a,s=e.unicodeFlags,c=m(e,S),u=l.useMemo(function(){return g(n,t)},[n,t]);return l.createElement("div",{className:"PhoneInputCountry"},l.createElement(v,p({},c,{value:t,options:n,className:C("PhoneInputCountrySelect",r)})),u&&(s&&t?l.createElement("div",{className:"PhoneInputCountryIconUnicode"},O(t)):l.createElement(o,{"aria-hidden":!0,country:t,label:u.label,aspectRatio:s?1:void 0})),l.createElement(f,null))}b.propTypes={iconComponent:i.elementType,arrowComponent:i.elementType,unicodeFlags:i.bool};function P(){return l.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function g(e,t){for(var n=j(e),r;!(r=n()).done;){var o=r.value;if(!o.divider&&T(o.value,t))return o}}function T(e,t){return e==null?t==null:e===t}exports.CountrySelectWithIcon=b;exports.default=v;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import u, { useMemo as v, useCallback as C } from "react";
|
|
2
|
+
import i from "../../../../../../_virtual/index.es.js";
|
|
3
|
+
import O from "../../../../../../_virtual/index.es2.js";
|
|
4
|
+
import I from "../../../../country-flag-icons@1.6.12/node_modules/country-flag-icons/modules/unicode.es.js";
|
|
5
|
+
var S = ["value", "onChange", "options", "disabled", "readOnly"], w = ["value", "options", "className", "iconComponent", "getIconAspectRatio", "arrowComponent", "unicodeFlags"];
|
|
6
|
+
function A(e, n) {
|
|
7
|
+
var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(e)).next.bind(t);
|
|
9
|
+
if (Array.isArray(e) || (t = j(e)) || n) {
|
|
10
|
+
t && (e = t);
|
|
11
|
+
var r = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
18
|
+
}
|
|
19
|
+
function j(e, n) {
|
|
20
|
+
if (e) {
|
|
21
|
+
if (typeof e == "string") return m(e, n);
|
|
22
|
+
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
23
|
+
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
|
|
24
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return m(e, n);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function m(e, n) {
|
|
28
|
+
(n == null || n > e.length) && (n = e.length);
|
|
29
|
+
for (var t = 0, r = new Array(n); t < n; t++) r[t] = e[t];
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function p() {
|
|
33
|
+
return p = Object.assign ? Object.assign.bind() : function(e) {
|
|
34
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
35
|
+
var t = arguments[n];
|
|
36
|
+
for (var r in t)
|
|
37
|
+
Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
|
|
38
|
+
}
|
|
39
|
+
return e;
|
|
40
|
+
}, p.apply(this, arguments);
|
|
41
|
+
}
|
|
42
|
+
function y(e, n) {
|
|
43
|
+
if (e == null) return {};
|
|
44
|
+
var t = E(e, n), r, o;
|
|
45
|
+
if (Object.getOwnPropertySymbols) {
|
|
46
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
47
|
+
for (o = 0; o < a.length; o++)
|
|
48
|
+
r = a[o], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
function E(e, n) {
|
|
53
|
+
if (e == null) return {};
|
|
54
|
+
var t = {}, r = Object.keys(e), o, a;
|
|
55
|
+
for (a = 0; a < r.length; a++)
|
|
56
|
+
o = r[a], !(n.indexOf(o) >= 0) && (t[o] = e[o]);
|
|
57
|
+
return t;
|
|
58
|
+
}
|
|
59
|
+
function b(e) {
|
|
60
|
+
var n = e.value, t = e.onChange, r = e.options, o = e.disabled, a = e.readOnly, f = y(e, S), s = C(function(c) {
|
|
61
|
+
var l = c.target.value;
|
|
62
|
+
t(l === "ZZ" ? void 0 : l);
|
|
63
|
+
}, [t]);
|
|
64
|
+
return v(function() {
|
|
65
|
+
return g(r, n);
|
|
66
|
+
}, [r, n]), /* @__PURE__ */ u.createElement("select", p({}, f, {
|
|
67
|
+
disabled: o || a,
|
|
68
|
+
readOnly: a,
|
|
69
|
+
value: n || "ZZ",
|
|
70
|
+
onChange: s
|
|
71
|
+
}), r.map(function(c) {
|
|
72
|
+
var l = c.value, h = c.label, d = c.divider;
|
|
73
|
+
return /* @__PURE__ */ u.createElement("option", {
|
|
74
|
+
key: d ? "|" : l || "ZZ",
|
|
75
|
+
value: d ? "|" : l || "ZZ",
|
|
76
|
+
disabled: !!d,
|
|
77
|
+
style: d ? P : void 0
|
|
78
|
+
}, h);
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
b.propTypes = {
|
|
82
|
+
/**
|
|
83
|
+
* A two-letter country code.
|
|
84
|
+
* Example: "US", "RU", etc.
|
|
85
|
+
*/
|
|
86
|
+
value: i.string,
|
|
87
|
+
/**
|
|
88
|
+
* A function of `value: string`.
|
|
89
|
+
* Updates the `value` property.
|
|
90
|
+
*/
|
|
91
|
+
onChange: i.func.isRequired,
|
|
92
|
+
// `<select/>` options.
|
|
93
|
+
options: i.arrayOf(i.shape({
|
|
94
|
+
value: i.string,
|
|
95
|
+
label: i.string,
|
|
96
|
+
divider: i.bool
|
|
97
|
+
})).isRequired,
|
|
98
|
+
// `readonly` attribute doesn't work on a `<select/>`.
|
|
99
|
+
// https://github.com/catamphetamine/react-phone-number-input/issues/419#issuecomment-1764384480
|
|
100
|
+
// https://www.delftstack.com/howto/html/html-select-readonly/
|
|
101
|
+
// To work around that, if `readOnly: true` property is passed
|
|
102
|
+
// to this component, it behaves analogous to `disabled: true`.
|
|
103
|
+
disabled: i.bool,
|
|
104
|
+
readOnly: i.bool
|
|
105
|
+
};
|
|
106
|
+
var P = {
|
|
107
|
+
fontSize: "1px",
|
|
108
|
+
backgroundColor: "currentColor",
|
|
109
|
+
color: "inherit"
|
|
110
|
+
};
|
|
111
|
+
function T(e) {
|
|
112
|
+
var n = e.value, t = e.options, r = e.className, o = e.iconComponent;
|
|
113
|
+
e.getIconAspectRatio;
|
|
114
|
+
var a = e.arrowComponent, f = a === void 0 ? N : a, s = e.unicodeFlags, c = y(e, w), l = v(function() {
|
|
115
|
+
return g(t, n);
|
|
116
|
+
}, [t, n]);
|
|
117
|
+
return /* @__PURE__ */ u.createElement("div", {
|
|
118
|
+
className: "PhoneInputCountry"
|
|
119
|
+
}, /* @__PURE__ */ u.createElement(b, p({}, c, {
|
|
120
|
+
value: n,
|
|
121
|
+
options: t,
|
|
122
|
+
className: O("PhoneInputCountrySelect", r)
|
|
123
|
+
})), l && (s && n ? /* @__PURE__ */ u.createElement("div", {
|
|
124
|
+
className: "PhoneInputCountryIconUnicode"
|
|
125
|
+
}, I(n)) : /* @__PURE__ */ u.createElement(o, {
|
|
126
|
+
"aria-hidden": !0,
|
|
127
|
+
country: n,
|
|
128
|
+
label: l.label,
|
|
129
|
+
aspectRatio: s ? 1 : void 0
|
|
130
|
+
})), /* @__PURE__ */ u.createElement(f, null));
|
|
131
|
+
}
|
|
132
|
+
T.propTypes = {
|
|
133
|
+
// Country flag component.
|
|
134
|
+
iconComponent: i.elementType,
|
|
135
|
+
// Select arrow component.
|
|
136
|
+
arrowComponent: i.elementType,
|
|
137
|
+
// Set to `true` to render Unicode flag icons instead of SVG images.
|
|
138
|
+
unicodeFlags: i.bool
|
|
139
|
+
};
|
|
140
|
+
function N() {
|
|
141
|
+
return /* @__PURE__ */ u.createElement("div", {
|
|
142
|
+
className: "PhoneInputCountrySelectArrow"
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function g(e, n) {
|
|
146
|
+
for (var t = A(e), r; !(r = t()).done; ) {
|
|
147
|
+
var o = r.value;
|
|
148
|
+
if (!o.divider && Z(o.value, n))
|
|
149
|
+
return o;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
function Z(e, n) {
|
|
153
|
+
return e == null ? n == null : e === n;
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
T as CountrySelectWithIcon,
|
|
157
|
+
b as default
|
|
158
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react"),o=require("../../../../../../_virtual/index.cjs.js");require("../../../../../../_virtual/index.cjs2.js");var c=["country","countryName","flags","flagUrl"];function l(){return l=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},l.apply(this,arguments)}function f(t,r){if(t==null)return{};var n=g(t,r),e,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)e=a[i],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(n[e]=t[e])}return n}function g(t,r){if(t==null)return{};var n={},e=Object.keys(t),i,a;for(a=0;a<e.length;a++)i=e[a],!(r.indexOf(i)>=0)&&(n[i]=t[i]);return n}function u(t){var r=t.country,n=t.countryName,e=t.flags,i=t.flagUrl,a=f(t,c);return e&&e[r]?e[r]({title:n}):s.createElement("img",l({},a,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",r).replace("{xx}",r.toLowerCase())}))}u.propTypes={country:o.string.isRequired,countryName:o.string.isRequired,flags:o.objectOf(o.elementType),flagUrl:o.string.isRequired};module.exports=u;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import u from "react";
|
|
2
|
+
import i from "../../../../../../_virtual/index.es.js";
|
|
3
|
+
import "../../../../../../_virtual/index.es2.js";
|
|
4
|
+
var f = ["country", "countryName", "flags", "flagUrl"];
|
|
5
|
+
function l() {
|
|
6
|
+
return l = Object.assign ? Object.assign.bind() : function(t) {
|
|
7
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
8
|
+
var n = arguments[r];
|
|
9
|
+
for (var e in n)
|
|
10
|
+
Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}, l.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
function p(t, r) {
|
|
16
|
+
if (t == null) return {};
|
|
17
|
+
var n = s(t, r), e, a;
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
20
|
+
for (a = 0; a < o.length; a++)
|
|
21
|
+
e = o[a], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
|
|
22
|
+
}
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
function s(t, r) {
|
|
26
|
+
if (t == null) return {};
|
|
27
|
+
var n = {}, e = Object.keys(t), a, o;
|
|
28
|
+
for (o = 0; o < e.length; o++)
|
|
29
|
+
a = e[o], !(r.indexOf(a) >= 0) && (n[a] = t[a]);
|
|
30
|
+
return n;
|
|
31
|
+
}
|
|
32
|
+
function c(t) {
|
|
33
|
+
var r = t.country, n = t.countryName, e = t.flags, a = t.flagUrl, o = p(t, f);
|
|
34
|
+
return e && e[r] ? e[r]({
|
|
35
|
+
title: n
|
|
36
|
+
}) : /* @__PURE__ */ u.createElement("img", l({}, o, {
|
|
37
|
+
alt: n,
|
|
38
|
+
role: n ? void 0 : "presentation",
|
|
39
|
+
src: a.replace("{XX}", r).replace("{xx}", r.toLowerCase())
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
c.propTypes = {
|
|
43
|
+
// The country to be selected by default.
|
|
44
|
+
// Two-letter country code ("ISO 3166-1 alpha-2").
|
|
45
|
+
country: i.string.isRequired,
|
|
46
|
+
// Will be HTML `title` attribute of the `<img/>`.
|
|
47
|
+
countryName: i.string.isRequired,
|
|
48
|
+
// Country flag icon components.
|
|
49
|
+
// By default flag icons are inserted as `<img/>`s
|
|
50
|
+
// with their `src` pointed to `country-flag-icons` gitlab pages website.
|
|
51
|
+
// There might be cases (e.g. an offline application)
|
|
52
|
+
// where having a large (3 megabyte) `<svg/>` flags
|
|
53
|
+
// bundle is more appropriate.
|
|
54
|
+
// `import flags from 'react-phone-number-input/flags'`.
|
|
55
|
+
flags: i.objectOf(i.elementType),
|
|
56
|
+
// A URL for a country flag icon.
|
|
57
|
+
// By default it points to `country-flag-icons` gitlab pages website.
|
|
58
|
+
flagUrl: i.string.isRequired
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
c as default
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react"),i=require("../../../../../../_virtual/index.cjs.js"),O=require("./helpers/inputValuePrefix.cjs.js"),P=require("./useInputKeyDownHandler.cjs.js"),T=require("../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs.js"),j=require("../../../../libphonenumber-js@1.12.36/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.cjs.js");var F=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function s(){return s=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},s.apply(this,arguments)}function R(t,r){if(t==null)return{};var e=q(t,r),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],!(r.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(e[n]=t[n])}return e}function q(t,r){if(t==null)return{};var e={},n=Object.keys(t),o,a;for(a=0;a<n.length;a++)o=n[a],!(r.indexOf(o)>=0)&&(e[o]=t[o]);return e}function b(t){function r(e,n){var o=e.value,a=e.onChange,h=e.onKeyDown,l=e.country,f=e.inputFormat,v=e.metadata,p=v===void 0?t:v,d=e.inputComponent,N=d===void 0?"input":d;e.international,e.withCountryCallingCode;var I=R(e,F),c=O.getPrefixForFormattingValueAsPhoneNumber({inputFormat:f,country:l,metadata:p}),C=m.useCallback(function(g){var u=T.default(g.target.value);if(u===o){var A=y(c,u,l,p);A.indexOf(g.target.value)===0&&(u=u.slice(0,-1))}a(u)},[c,o,a,l,p]),w=P({onKeyDown:h,inputFormat:f});return m.createElement(N,s({},I,{ref:n,value:y(c,o,l,p),onChange:C,onKeyDown:w}))}return r=m.forwardRef(r),r.propTypes={value:i.string.isRequired,onChange:i.func.isRequired,onKeyDown:i.func,country:i.string,inputFormat:i.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:i.object,inputComponent:i.elementType},r}const x=b();function y(t,r,e,n){return O.removePrefixFromFormattedPhoneNumber(j(t+r,e,n),t)}exports.createInput=b;exports.default=x;
|