@intl-tel-input/react 29.1.1 → 29.1.2
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/IntlTelInput.js +47 -35
- package/dist/IntlTelInputWithUtils.d.ts +1 -1
- package/dist/IntlTelInputWithUtils.js +67 -103
- package/package.json +2 -2
package/dist/IntlTelInput.js
CHANGED
|
@@ -2455,7 +2455,7 @@ var Numerals = class _Numerals {
|
|
|
2455
2455
|
|
|
2456
2456
|
// packages/core/src/js/core/ui.ts
|
|
2457
2457
|
var supportsCssAnchor = typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --x");
|
|
2458
|
-
var UI = class
|
|
2458
|
+
var UI = class {
|
|
2459
2459
|
// private
|
|
2460
2460
|
#options;
|
|
2461
2461
|
#id;
|
|
@@ -2465,6 +2465,7 @@ var UI = class _UI {
|
|
|
2465
2465
|
#searchTokens;
|
|
2466
2466
|
#searchDebounceTimer = null;
|
|
2467
2467
|
#inlineDropdownHeight;
|
|
2468
|
+
#cssAnchorPositioningDone = false;
|
|
2468
2469
|
#countryContainerEl;
|
|
2469
2470
|
#selectedCountryEl;
|
|
2470
2471
|
#selectedFlagEl;
|
|
@@ -2657,16 +2658,6 @@ var UI = class _UI {
|
|
|
2657
2658
|
if (countrySearch) {
|
|
2658
2659
|
this.#updateSearchResultsA11yText();
|
|
2659
2660
|
}
|
|
2660
|
-
if (!isFullscreen) {
|
|
2661
|
-
const { height, width } = this.#getHiddenInlineDropdownSize();
|
|
2662
|
-
this.#inlineDropdownHeight = height;
|
|
2663
|
-
if (countrySearch) {
|
|
2664
|
-
this.#countrySelectorEl.style.height = `${height}px`;
|
|
2665
|
-
if (!matchDropdownWidth && width > 0) {
|
|
2666
|
-
this.#countrySelectorEl.style.width = `${width}px`;
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
2661
|
if (detachedParent) {
|
|
2671
2662
|
const wrapperClasses = buildClassNames({
|
|
2672
2663
|
iti: true,
|
|
@@ -2677,9 +2668,6 @@ var UI = class _UI {
|
|
|
2677
2668
|
});
|
|
2678
2669
|
this.#detachedCountrySelectorEl = createEl("div", { class: wrapperClasses });
|
|
2679
2670
|
this.#detachedCountrySelectorEl.appendChild(this.#countrySelectorEl);
|
|
2680
|
-
if (!isFullscreen) {
|
|
2681
|
-
this.#setupCssAnchorPositioning();
|
|
2682
|
-
}
|
|
2683
2671
|
} else {
|
|
2684
2672
|
this.#countryContainerEl.appendChild(this.#countrySelectorEl);
|
|
2685
2673
|
}
|
|
@@ -2852,24 +2840,16 @@ var UI = class _UI {
|
|
|
2852
2840
|
});
|
|
2853
2841
|
this.#resizeObserver.observe(this.#selectedCountryEl);
|
|
2854
2842
|
}
|
|
2855
|
-
static #getBody() {
|
|
2856
|
-
let body;
|
|
2857
|
-
try {
|
|
2858
|
-
body = window.top.document.body;
|
|
2859
|
-
} catch (e) {
|
|
2860
|
-
body = document.body;
|
|
2861
|
-
}
|
|
2862
|
-
return body;
|
|
2863
|
-
}
|
|
2864
2843
|
//* When input is in a hidden container during init, we cannot calculate the selected country width.
|
|
2865
2844
|
//* Fix: clone the markup, make it invisible, add it to the end of the DOM, and then measure it's width.
|
|
2866
2845
|
//* To get the right styling to apply, all we need is a shallow clone of the container,
|
|
2867
2846
|
//* and then to inject a deep clone of the selectedCountryEl element.
|
|
2847
|
+
//* Measures in the LOCAL document.body: appending to the local body escapes any hidden ancestor container, and the input's own frame is where intl-tel-input's styles live (so the clone lays out correctly). We deliberately do NOT escape to window.top: that only measures correctly in the rare case where the top frame also loads the library's styles, and measures wrong when it doesn't (e.g. a same-origin iframe whose outer frame lacks the styles — cf. #2178). If the local frame itself isn't laid out yet (e.g. an iframe hidden during init), this returns 0 and the caller falls back to a sane constant; the ResizeObserver in #observeSelectedCountryResize then corrects the padding once the input becomes visible.
|
|
2868
2848
|
#getHiddenSelectedCountryWidth() {
|
|
2869
2849
|
if (!this.telInputEl.parentNode) {
|
|
2870
2850
|
return 0;
|
|
2871
2851
|
}
|
|
2872
|
-
const body =
|
|
2852
|
+
const body = document.body;
|
|
2873
2853
|
const containerClone = this.telInputEl.parentNode.cloneNode(
|
|
2874
2854
|
false
|
|
2875
2855
|
);
|
|
@@ -2885,21 +2865,43 @@ var UI = class _UI {
|
|
|
2885
2865
|
body.removeChild(containerClone);
|
|
2886
2866
|
return width;
|
|
2887
2867
|
}
|
|
2888
|
-
|
|
2868
|
+
//* Measure the inline dropdown size once, lazily, on first open — see #getHiddenInlineDropdownSize for why measuring forces a reflow. Memoised via #inlineDropdownHeight so subsequent opens are free.
|
|
2869
|
+
//* Captured for two uses: (1) on open, decide whether to position the dropdown above or below the input; (2) when countrySearch is enabled, pin the dropdown height (and, when matchDropdownWidth is disabled, width) so it doesn't jump around as the country list is filtered.
|
|
2870
|
+
#ensureInlineDropdownSizeMeasured() {
|
|
2871
|
+
if (this.#inlineDropdownHeight !== void 0) {
|
|
2872
|
+
return;
|
|
2873
|
+
}
|
|
2874
|
+
const { countrySearch, matchDropdownWidth } = this.#options;
|
|
2875
|
+
const { height, width } = this.#getHiddenInlineDropdownSize();
|
|
2876
|
+
this.#inlineDropdownHeight = height;
|
|
2877
|
+
if (countrySearch) {
|
|
2878
|
+
this.#countrySelectorEl.style.height = `${height}px`;
|
|
2879
|
+
if (!matchDropdownWidth && width > 0) {
|
|
2880
|
+
this.#countrySelectorEl.style.width = `${width}px`;
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
// Measure the dropdown by moving it into a temporary hidden container on the body (it needs the right ancestor classes to lay out correctly). Restores it to its original position afterwards — a no-op during init (when it is still detached) but required when called lazily on first open (when it is already inserted).
|
|
2885
|
+
//* Deliberately measures in the LOCAL document.body (not window.top): this runs on first open, when the input's own frame is visibly rendered and styled. Escaping to the top frame breaks when the input is inside a same-origin iframe whose outer frame lacks intl-tel-input's styles (e.g. Storybook), as the dropdown would then be measured unstyled and come out far too tall (issue #2178).
|
|
2889
2886
|
#getHiddenInlineDropdownSize() {
|
|
2890
|
-
const body =
|
|
2891
|
-
this.#countrySelectorEl
|
|
2887
|
+
const body = document.body;
|
|
2888
|
+
const selectorEl = this.#countrySelectorEl;
|
|
2889
|
+
const originalParent = selectorEl.parentNode;
|
|
2890
|
+
const originalNextSibling = selectorEl.nextSibling;
|
|
2891
|
+
selectorEl.classList.remove(CLASSES.HIDE);
|
|
2892
2892
|
const tempContainer = createEl("div", {
|
|
2893
2893
|
class: "iti iti--inline-country-selector"
|
|
2894
2894
|
});
|
|
2895
|
-
tempContainer.appendChild(
|
|
2895
|
+
tempContainer.appendChild(selectorEl);
|
|
2896
2896
|
tempContainer.style.visibility = "hidden";
|
|
2897
2897
|
body.appendChild(tempContainer);
|
|
2898
|
-
const height =
|
|
2899
|
-
const width =
|
|
2898
|
+
const height = selectorEl.offsetHeight;
|
|
2899
|
+
const width = selectorEl.offsetWidth;
|
|
2900
2900
|
body.removeChild(tempContainer);
|
|
2901
|
-
|
|
2902
|
-
|
|
2901
|
+
selectorEl.classList.add(CLASSES.HIDE);
|
|
2902
|
+
if (originalParent) {
|
|
2903
|
+
originalParent.insertBefore(selectorEl, originalNextSibling);
|
|
2904
|
+
}
|
|
2903
2905
|
return {
|
|
2904
2906
|
height: height > 0 ? height : LAYOUT.FALLBACK_DROPDOWN_HEIGHT,
|
|
2905
2907
|
width
|
|
@@ -3063,6 +3065,9 @@ var UI = class _UI {
|
|
|
3063
3065
|
openCountrySelector(onSelect, onClose) {
|
|
3064
3066
|
const { countrySearch, dropdownAlwaysOpen } = this.#options;
|
|
3065
3067
|
this.#countrySelectorAbortController = new AbortController();
|
|
3068
|
+
if (this.#options.countrySelectorMode !== COUNTRY_SELECTOR_MODE.FULLSCREEN) {
|
|
3069
|
+
this.#ensureInlineDropdownSizeMeasured();
|
|
3070
|
+
}
|
|
3066
3071
|
this.ensureDropdownWidthSet();
|
|
3067
3072
|
if (this.#detachedCountrySelectorEl) {
|
|
3068
3073
|
this.#injectAndPositionDetachedCountrySelector();
|
|
@@ -3335,7 +3340,10 @@ var UI = class _UI {
|
|
|
3335
3340
|
this.#detachedCountrySelectorEl.style.paddingLeft = `${inputPos.left}px`;
|
|
3336
3341
|
this.#detachedCountrySelectorEl.style.paddingRight = `${window.innerWidth - inputPos.right}px`;
|
|
3337
3342
|
}
|
|
3338
|
-
} else
|
|
3343
|
+
} else {
|
|
3344
|
+
this.#setupCssAnchorPositioning();
|
|
3345
|
+
}
|
|
3346
|
+
if (!isFullscreen && !supportsCssAnchor) {
|
|
3339
3347
|
const inputPos = this.telInputEl.getBoundingClientRect();
|
|
3340
3348
|
this.#detachedCountrySelectorEl.style.left = `${inputPos.left}px`;
|
|
3341
3349
|
if (this.#shouldPositionDropdownBelowInput()) {
|
|
@@ -3348,13 +3356,17 @@ var UI = class _UI {
|
|
|
3348
3356
|
detachedParent.appendChild(this.#detachedCountrySelectorEl);
|
|
3349
3357
|
}
|
|
3350
3358
|
//* Wire up CSS Anchor Positioning between the input and the detached country selector using a
|
|
3351
|
-
//* unique anchor name per instance. Called
|
|
3359
|
+
//* unique anchor name per instance. Called lazily on first open (memoised) — the matching styles in
|
|
3352
3360
|
//* intlTelInput.css only take effect in browsers that support anchor(); elsewhere these
|
|
3353
3361
|
//* properties are inert. We append our name to any existing anchor-name (read via
|
|
3354
3362
|
//* getComputedStyle so we pick up CSS-defined values), so consumer-set anchors on the input
|
|
3355
3363
|
//* are preserved. Caveat: this snapshots the consumer's value once — if they later change
|
|
3356
3364
|
//* anchor-name via CSS (e.g. a class swap), our inline write will shadow the change.
|
|
3357
3365
|
#setupCssAnchorPositioning() {
|
|
3366
|
+
if (this.#cssAnchorPositioningDone) {
|
|
3367
|
+
return;
|
|
3368
|
+
}
|
|
3369
|
+
this.#cssAnchorPositioningDone = true;
|
|
3358
3370
|
const anchorName = `--iti-anchor-${this.#id}`;
|
|
3359
3371
|
const existing = getComputedStyle(this.telInputEl).anchorName;
|
|
3360
3372
|
this.telInputEl.style.anchorName = existing && existing !== "none" ? `${existing}, ${anchorName}` : anchorName;
|
|
@@ -4829,7 +4841,7 @@ var intlTelInput = Object.assign(
|
|
|
4829
4841
|
attachUtils,
|
|
4830
4842
|
startedLoadingUtils: false,
|
|
4831
4843
|
startedLoadingAutoCountry: false,
|
|
4832
|
-
version: "29.1.
|
|
4844
|
+
version: "29.1.2",
|
|
4833
4845
|
NUMBER_FORMAT,
|
|
4834
4846
|
NUMBER_TYPE,
|
|
4835
4847
|
VALIDATION_ERROR,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import intlTelInput from "intl-tel-input";
|
|
2
2
|
export { intlTelInput };
|
|
3
|
-
export type { IntlTelInputRef } from "./IntlTelInput.js";
|
|
3
|
+
export type { IntlTelInputRef, StrictRejectSource, StrictRejectReason } from "./IntlTelInput.js";
|
|
4
4
|
export { default } from "./IntlTelInput.js";
|
|
@@ -2455,7 +2455,7 @@ var Numerals = class _Numerals {
|
|
|
2455
2455
|
|
|
2456
2456
|
// packages/core/src/js/core/ui.ts
|
|
2457
2457
|
var supportsCssAnchor = typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --x");
|
|
2458
|
-
var UI = class
|
|
2458
|
+
var UI = class {
|
|
2459
2459
|
// private
|
|
2460
2460
|
#options;
|
|
2461
2461
|
#id;
|
|
@@ -2465,6 +2465,7 @@ var UI = class _UI {
|
|
|
2465
2465
|
#searchTokens;
|
|
2466
2466
|
#searchDebounceTimer = null;
|
|
2467
2467
|
#inlineDropdownHeight;
|
|
2468
|
+
#cssAnchorPositioningDone = false;
|
|
2468
2469
|
#countryContainerEl;
|
|
2469
2470
|
#selectedCountryEl;
|
|
2470
2471
|
#selectedFlagEl;
|
|
@@ -2657,16 +2658,6 @@ var UI = class _UI {
|
|
|
2657
2658
|
if (countrySearch) {
|
|
2658
2659
|
this.#updateSearchResultsA11yText();
|
|
2659
2660
|
}
|
|
2660
|
-
if (!isFullscreen) {
|
|
2661
|
-
const { height, width } = this.#getHiddenInlineDropdownSize();
|
|
2662
|
-
this.#inlineDropdownHeight = height;
|
|
2663
|
-
if (countrySearch) {
|
|
2664
|
-
this.#countrySelectorEl.style.height = `${height}px`;
|
|
2665
|
-
if (!matchDropdownWidth && width > 0) {
|
|
2666
|
-
this.#countrySelectorEl.style.width = `${width}px`;
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
2661
|
if (detachedParent) {
|
|
2671
2662
|
const wrapperClasses = buildClassNames({
|
|
2672
2663
|
iti: true,
|
|
@@ -2677,9 +2668,6 @@ var UI = class _UI {
|
|
|
2677
2668
|
});
|
|
2678
2669
|
this.#detachedCountrySelectorEl = createEl("div", { class: wrapperClasses });
|
|
2679
2670
|
this.#detachedCountrySelectorEl.appendChild(this.#countrySelectorEl);
|
|
2680
|
-
if (!isFullscreen) {
|
|
2681
|
-
this.#setupCssAnchorPositioning();
|
|
2682
|
-
}
|
|
2683
2671
|
} else {
|
|
2684
2672
|
this.#countryContainerEl.appendChild(this.#countrySelectorEl);
|
|
2685
2673
|
}
|
|
@@ -2852,24 +2840,16 @@ var UI = class _UI {
|
|
|
2852
2840
|
});
|
|
2853
2841
|
this.#resizeObserver.observe(this.#selectedCountryEl);
|
|
2854
2842
|
}
|
|
2855
|
-
static #getBody() {
|
|
2856
|
-
let body;
|
|
2857
|
-
try {
|
|
2858
|
-
body = window.top.document.body;
|
|
2859
|
-
} catch (e) {
|
|
2860
|
-
body = document.body;
|
|
2861
|
-
}
|
|
2862
|
-
return body;
|
|
2863
|
-
}
|
|
2864
2843
|
//* When input is in a hidden container during init, we cannot calculate the selected country width.
|
|
2865
2844
|
//* Fix: clone the markup, make it invisible, add it to the end of the DOM, and then measure it's width.
|
|
2866
2845
|
//* To get the right styling to apply, all we need is a shallow clone of the container,
|
|
2867
2846
|
//* and then to inject a deep clone of the selectedCountryEl element.
|
|
2847
|
+
//* Measures in the LOCAL document.body: appending to the local body escapes any hidden ancestor container, and the input's own frame is where intl-tel-input's styles live (so the clone lays out correctly). We deliberately do NOT escape to window.top: that only measures correctly in the rare case where the top frame also loads the library's styles, and measures wrong when it doesn't (e.g. a same-origin iframe whose outer frame lacks the styles — cf. #2178). If the local frame itself isn't laid out yet (e.g. an iframe hidden during init), this returns 0 and the caller falls back to a sane constant; the ResizeObserver in #observeSelectedCountryResize then corrects the padding once the input becomes visible.
|
|
2868
2848
|
#getHiddenSelectedCountryWidth() {
|
|
2869
2849
|
if (!this.telInputEl.parentNode) {
|
|
2870
2850
|
return 0;
|
|
2871
2851
|
}
|
|
2872
|
-
const body =
|
|
2852
|
+
const body = document.body;
|
|
2873
2853
|
const containerClone = this.telInputEl.parentNode.cloneNode(
|
|
2874
2854
|
false
|
|
2875
2855
|
);
|
|
@@ -2885,21 +2865,43 @@ var UI = class _UI {
|
|
|
2885
2865
|
body.removeChild(containerClone);
|
|
2886
2866
|
return width;
|
|
2887
2867
|
}
|
|
2888
|
-
|
|
2868
|
+
//* Measure the inline dropdown size once, lazily, on first open — see #getHiddenInlineDropdownSize for why measuring forces a reflow. Memoised via #inlineDropdownHeight so subsequent opens are free.
|
|
2869
|
+
//* Captured for two uses: (1) on open, decide whether to position the dropdown above or below the input; (2) when countrySearch is enabled, pin the dropdown height (and, when matchDropdownWidth is disabled, width) so it doesn't jump around as the country list is filtered.
|
|
2870
|
+
#ensureInlineDropdownSizeMeasured() {
|
|
2871
|
+
if (this.#inlineDropdownHeight !== void 0) {
|
|
2872
|
+
return;
|
|
2873
|
+
}
|
|
2874
|
+
const { countrySearch, matchDropdownWidth } = this.#options;
|
|
2875
|
+
const { height, width } = this.#getHiddenInlineDropdownSize();
|
|
2876
|
+
this.#inlineDropdownHeight = height;
|
|
2877
|
+
if (countrySearch) {
|
|
2878
|
+
this.#countrySelectorEl.style.height = `${height}px`;
|
|
2879
|
+
if (!matchDropdownWidth && width > 0) {
|
|
2880
|
+
this.#countrySelectorEl.style.width = `${width}px`;
|
|
2881
|
+
}
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
// Measure the dropdown by moving it into a temporary hidden container on the body (it needs the right ancestor classes to lay out correctly). Restores it to its original position afterwards — a no-op during init (when it is still detached) but required when called lazily on first open (when it is already inserted).
|
|
2885
|
+
//* Deliberately measures in the LOCAL document.body (not window.top): this runs on first open, when the input's own frame is visibly rendered and styled. Escaping to the top frame breaks when the input is inside a same-origin iframe whose outer frame lacks intl-tel-input's styles (e.g. Storybook), as the dropdown would then be measured unstyled and come out far too tall (issue #2178).
|
|
2889
2886
|
#getHiddenInlineDropdownSize() {
|
|
2890
|
-
const body =
|
|
2891
|
-
this.#countrySelectorEl
|
|
2887
|
+
const body = document.body;
|
|
2888
|
+
const selectorEl = this.#countrySelectorEl;
|
|
2889
|
+
const originalParent = selectorEl.parentNode;
|
|
2890
|
+
const originalNextSibling = selectorEl.nextSibling;
|
|
2891
|
+
selectorEl.classList.remove(CLASSES.HIDE);
|
|
2892
2892
|
const tempContainer = createEl("div", {
|
|
2893
2893
|
class: "iti iti--inline-country-selector"
|
|
2894
2894
|
});
|
|
2895
|
-
tempContainer.appendChild(
|
|
2895
|
+
tempContainer.appendChild(selectorEl);
|
|
2896
2896
|
tempContainer.style.visibility = "hidden";
|
|
2897
2897
|
body.appendChild(tempContainer);
|
|
2898
|
-
const height =
|
|
2899
|
-
const width =
|
|
2898
|
+
const height = selectorEl.offsetHeight;
|
|
2899
|
+
const width = selectorEl.offsetWidth;
|
|
2900
2900
|
body.removeChild(tempContainer);
|
|
2901
|
-
|
|
2902
|
-
|
|
2901
|
+
selectorEl.classList.add(CLASSES.HIDE);
|
|
2902
|
+
if (originalParent) {
|
|
2903
|
+
originalParent.insertBefore(selectorEl, originalNextSibling);
|
|
2904
|
+
}
|
|
2903
2905
|
return {
|
|
2904
2906
|
height: height > 0 ? height : LAYOUT.FALLBACK_DROPDOWN_HEIGHT,
|
|
2905
2907
|
width
|
|
@@ -3063,6 +3065,9 @@ var UI = class _UI {
|
|
|
3063
3065
|
openCountrySelector(onSelect, onClose) {
|
|
3064
3066
|
const { countrySearch, dropdownAlwaysOpen } = this.#options;
|
|
3065
3067
|
this.#countrySelectorAbortController = new AbortController();
|
|
3068
|
+
if (this.#options.countrySelectorMode !== COUNTRY_SELECTOR_MODE.FULLSCREEN) {
|
|
3069
|
+
this.#ensureInlineDropdownSizeMeasured();
|
|
3070
|
+
}
|
|
3066
3071
|
this.ensureDropdownWidthSet();
|
|
3067
3072
|
if (this.#detachedCountrySelectorEl) {
|
|
3068
3073
|
this.#injectAndPositionDetachedCountrySelector();
|
|
@@ -3335,7 +3340,10 @@ var UI = class _UI {
|
|
|
3335
3340
|
this.#detachedCountrySelectorEl.style.paddingLeft = `${inputPos.left}px`;
|
|
3336
3341
|
this.#detachedCountrySelectorEl.style.paddingRight = `${window.innerWidth - inputPos.right}px`;
|
|
3337
3342
|
}
|
|
3338
|
-
} else
|
|
3343
|
+
} else {
|
|
3344
|
+
this.#setupCssAnchorPositioning();
|
|
3345
|
+
}
|
|
3346
|
+
if (!isFullscreen && !supportsCssAnchor) {
|
|
3339
3347
|
const inputPos = this.telInputEl.getBoundingClientRect();
|
|
3340
3348
|
this.#detachedCountrySelectorEl.style.left = `${inputPos.left}px`;
|
|
3341
3349
|
if (this.#shouldPositionDropdownBelowInput()) {
|
|
@@ -3348,13 +3356,17 @@ var UI = class _UI {
|
|
|
3348
3356
|
detachedParent.appendChild(this.#detachedCountrySelectorEl);
|
|
3349
3357
|
}
|
|
3350
3358
|
//* Wire up CSS Anchor Positioning between the input and the detached country selector using a
|
|
3351
|
-
//* unique anchor name per instance. Called
|
|
3359
|
+
//* unique anchor name per instance. Called lazily on first open (memoised) — the matching styles in
|
|
3352
3360
|
//* intlTelInput.css only take effect in browsers that support anchor(); elsewhere these
|
|
3353
3361
|
//* properties are inert. We append our name to any existing anchor-name (read via
|
|
3354
3362
|
//* getComputedStyle so we pick up CSS-defined values), so consumer-set anchors on the input
|
|
3355
3363
|
//* are preserved. Caveat: this snapshots the consumer's value once — if they later change
|
|
3356
3364
|
//* anchor-name via CSS (e.g. a class swap), our inline write will shadow the change.
|
|
3357
3365
|
#setupCssAnchorPositioning() {
|
|
3366
|
+
if (this.#cssAnchorPositioningDone) {
|
|
3367
|
+
return;
|
|
3368
|
+
}
|
|
3369
|
+
this.#cssAnchorPositioningDone = true;
|
|
3358
3370
|
const anchorName = `--iti-anchor-${this.#id}`;
|
|
3359
3371
|
const existing = getComputedStyle(this.telInputEl).anchorName;
|
|
3360
3372
|
this.telInputEl.style.anchorName = existing && existing !== "none" ? `${existing}, ${anchorName}` : anchorName;
|
|
@@ -4829,7 +4841,7 @@ var intlTelInput = Object.assign(
|
|
|
4829
4841
|
attachUtils,
|
|
4830
4842
|
startedLoadingUtils: false,
|
|
4831
4843
|
startedLoadingAutoCountry: false,
|
|
4832
|
-
version: "29.1.
|
|
4844
|
+
version: "29.1.2",
|
|
4833
4845
|
NUMBER_FORMAT,
|
|
4834
4846
|
NUMBER_TYPE,
|
|
4835
4847
|
VALIDATION_ERROR,
|
|
@@ -6357,7 +6369,7 @@ var _scope = {};
|
|
|
6357
6369
|
CM: [, [, , "[26]\\d{8}|88\\d{6,7}", , , , , , , [8, 9]], [, , "2(?:22|33)\\d{6}", , , , "222123456", , , [9]], [
|
|
6358
6370
|
,
|
|
6359
6371
|
,
|
|
6360
|
-
"(?:24[23]|6(?:[25-9]\\d|4[
|
|
6372
|
+
"(?:24[23]|6(?:[25-9]\\d|4[0-2]))\\d{6}",
|
|
6361
6373
|
,
|
|
6362
6374
|
,
|
|
6363
6375
|
,
|
|
@@ -6898,37 +6910,15 @@ var _scope = {};
|
|
|
6898
6910
|
["[178]"],
|
|
6899
6911
|
"0$1"
|
|
6900
6912
|
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6901
|
-
ES: [
|
|
6902
|
-
,
|
|
6903
|
-
[, , "[5-9]\\d{8}", , , , , , , [9]],
|
|
6904
|
-
[, , "96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}", , , , "810123456"],
|
|
6905
|
-
[, , "96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}", , , , "612345678"],
|
|
6906
|
-
[, , "[89]00\\d{6}", , , , "800123456"],
|
|
6907
|
-
[, , "80[367]\\d{6}", , , , "803123456"],
|
|
6908
|
-
[, , "90[12]\\d{6}", , , , "901123456"],
|
|
6909
|
-
[, , "70\\d{7}", , , , "701234567"],
|
|
6910
|
-
[, , , , , , , , , [-1]],
|
|
6911
|
-
"ES",
|
|
6912
|
-
34,
|
|
6913
|
-
"00",
|
|
6914
|
-
,
|
|
6913
|
+
ES: [, [, , "(?:400|[5-9]\\d\\d)\\d{6}", , , , , , , [9]], [, , "96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:400|8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}", , , , "810123456"], [, , "96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}", , , , "612345678"], [, , "[89]00\\d{6}", , , , "800123456"], [
|
|
6915
6914
|
,
|
|
6916
6915
|
,
|
|
6916
|
+
"80[367]\\d{6}",
|
|
6917
6917
|
,
|
|
6918
6918
|
,
|
|
6919
6919
|
,
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
[[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]],
|
|
6923
|
-
[, , , , , , , , , [-1]],
|
|
6924
|
-
,
|
|
6925
|
-
,
|
|
6926
|
-
[, , , , , , , , , [-1]],
|
|
6927
|
-
[, , "51\\d{7}", , , , "511234567"],
|
|
6928
|
-
,
|
|
6929
|
-
,
|
|
6930
|
-
[, , , , , , , , , [-1]]
|
|
6931
|
-
],
|
|
6920
|
+
"803123456"
|
|
6921
|
+
], [, , "90[12]\\d{6}", , , , "901123456"], [, , "70\\d{7}", , , , "701234567"], [, , , , , , , , , [-1]], "ES", 34, "00", , , , , , , , [[, "(\\d{4})", "$1", ["905"]], [, "(\\d{6})", "$1", ["[79]9"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[4-9]"]]], [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[4-9]"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "51\\d{7}", , , , "511234567"], , , [, , , , , , , , , [-1]]],
|
|
6932
6922
|
ET: [, [
|
|
6933
6923
|
,
|
|
6934
6924
|
,
|
|
@@ -7334,7 +7324,7 @@ var _scope = {};
|
|
|
7334
7324
|
,
|
|
7335
7325
|
,
|
|
7336
7326
|
"2201234"
|
|
7337
|
-
], [, , "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|
|
|
7327
|
+
], [, , "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|[78]0))\\d{4}", , , , "6091234"], [, , "(?:289|8(?:00|6[28]|88|99))\\d{4}", , , , "2891234"], [, , "9008\\d{3}", , , , "9008123"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "515\\d{4}", , , , "5151234"], "GY", 592, "001", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7338
7328
|
HK: [
|
|
7339
7329
|
,
|
|
7340
7330
|
[, , "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", , , , , , , [5, 6, 7, 8, 9, 11]],
|
|
@@ -7391,7 +7381,7 @@ var _scope = {};
|
|
|
7391
7381
|
HN: [, [, , "8\\d{10}|[237-9]\\d{7}", , , , , , , [8, 11]], [
|
|
7392
7382
|
,
|
|
7393
7383
|
,
|
|
7394
|
-
"2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-
|
|
7384
|
+
"2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-8]|5[57]|6[2458]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589]|80)|5(?:0[2357-9]|1[1-6]|4[03-58]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|2[01]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",
|
|
7395
7385
|
,
|
|
7396
7386
|
,
|
|
7397
7387
|
,
|
|
@@ -8707,7 +8697,7 @@ var _scope = {};
|
|
|
8707
8697
|
,
|
|
8708
8698
|
[-1]
|
|
8709
8699
|
], , , [, , , , , , , , , [-1]]],
|
|
8710
|
-
MZ: [, [, , "(?:2|8\\d)\\d{7}", , , , , , , [8, 9]], [, , "2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}", , , , "21123456", , , [8]], [, , "8[2-79]\\d{
|
|
8700
|
+
MZ: [, [, , "(?:2|8\\d)\\d{7}", , , , , , , [8, 9]], [, , "2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}", , , , "21123456", , , [8]], [, , "8(?:[2-79]\\d|80)\\d{6}", , , , "821234567", , , [9]], [, , "800\\d{6}", , , , "800123456", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "MZ", 258, "00", , , , , , , , [[, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-9]"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8711
8701
|
NA: [, [
|
|
8712
8702
|
,
|
|
8713
8703
|
,
|
|
@@ -9525,7 +9515,7 @@ var _scope = {};
|
|
|
9525
9515
|
"$1 $2 $3",
|
|
9526
9516
|
["[346-9]"]
|
|
9527
9517
|
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
9528
|
-
SR: [, [, , "(?:[2-5]|[6-9]\\d)\\d{5}", , , , , , , [6, 7]], [, , "(?:2[1-3]|3[0-7]|4\\d|5[2-578])\\d{4}", , , , "211234", , , [6]], [, , "(?:6[08]|7[
|
|
9518
|
+
SR: [, [, , "(?:[2-5]|[6-9]\\d)\\d{5}", , , , , , , [6, 7]], [, , "(?:2[1-3]|3[0-7]|4\\d|5[2-578])\\d{4}", , , , "211234", , , [6]], [, , "(?:6[08]|7[1-7]|8[1-9])\\d{5}", , , , "7412345", , , [7]], [, , "80\\d{5}", , , , "8012345", , , [7]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:56|91\\d)\\d{4}", , , , "561234"], "SR", 597, "00", , , , , , , , [
|
|
9529
9519
|
[, "(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]],
|
|
9530
9520
|
[, "(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]],
|
|
9531
9521
|
[, "(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]
|
|
@@ -9692,10 +9682,10 @@ var _scope = {};
|
|
|
9692
9682
|
,
|
|
9693
9683
|
[8]
|
|
9694
9684
|
], [, , "80\\d{5}", , , , "8012345", , , [7]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , "70\\d{5}", , , , "7012345", , , [7]], [, , , , , , , , , [-1]], "TL", 670, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["7"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
9695
|
-
TM: [, [, , "
|
|
9685
|
+
TM: [, [, , "[1-7]\\d{7}", , , , , , , [8]], [, , "(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}", , , , "12345678"], [
|
|
9696
9686
|
,
|
|
9697
9687
|
,
|
|
9698
|
-
"(?:6\\d|
|
|
9688
|
+
"(?:6\\d|7[12])\\d{6}",
|
|
9699
9689
|
,
|
|
9700
9690
|
,
|
|
9701
9691
|
,
|
|
@@ -9787,48 +9777,22 @@ var _scope = {};
|
|
|
9787
9777
|
["83"],
|
|
9788
9778
|
"0$1"
|
|
9789
9779
|
], [, "(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["82"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[25]0|37|49|8[09]"], "0$1"], [, "(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], [, "(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "50[0-46-9]\\d{6}", , , , "500123456", , , [9]], , , [, , , , , , , , , [-1]]],
|
|
9790
|
-
TZ: [
|
|
9791
|
-
,
|
|
9792
|
-
[
|
|
9793
|
-
,
|
|
9794
|
-
,
|
|
9795
|
-
"(?:[25-8]\\d|41|90)\\d{7}",
|
|
9796
|
-
,
|
|
9797
|
-
,
|
|
9798
|
-
,
|
|
9799
|
-
,
|
|
9800
|
-
,
|
|
9801
|
-
,
|
|
9802
|
-
[9]
|
|
9803
|
-
],
|
|
9804
|
-
[, , "2[2-8]\\d{7}", , , , "222345678"],
|
|
9805
|
-
[, , "(?:6[1-35-9]|7[013-9])\\d{7}", , , , "621234567"],
|
|
9806
|
-
[, , "80[08]\\d{6}", , , , "800123456"],
|
|
9807
|
-
[, , "90\\d{7}", , , , "900123456"],
|
|
9808
|
-
[, , "8(?:40|6[01])\\d{6}", , , , "840123456"],
|
|
9809
|
-
[, , , , , , , , , [-1]],
|
|
9810
|
-
[, , "41\\d{7}", , , , "412345678"],
|
|
9811
|
-
"TZ",
|
|
9812
|
-
255,
|
|
9813
|
-
"00[056]",
|
|
9814
|
-
"0",
|
|
9780
|
+
TZ: [, [
|
|
9815
9781
|
,
|
|
9816
9782
|
,
|
|
9817
|
-
"
|
|
9783
|
+
"(?:[25-8]\\d|41|90)\\d{7}",
|
|
9818
9784
|
,
|
|
9819
9785
|
,
|
|
9820
9786
|
,
|
|
9821
|
-
[[, "(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], [, "(\\d{2})(\\d{7})", "$1 $2", ["5"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]],
|
|
9822
9787
|
,
|
|
9823
|
-
[, , , , , , , , , [-1]],
|
|
9824
9788
|
,
|
|
9825
9789
|
,
|
|
9826
|
-
[
|
|
9827
|
-
|
|
9790
|
+
[9]
|
|
9791
|
+
], [, , "2[2-8]\\d{7}", , , , "222345678"], [, , "(?:6[1-35-9]|7\\d)\\d{7}", , , , "621234567"], [, , "80[08]\\d{6}", , , , "800123456"], [, , "90\\d{7}", , , , "900123456"], [, , "8(?:40|6[01])\\d{6}", , , , "840123456"], [, , , , , , , , , [-1]], [, , "41\\d{7}", , , , "412345678"], "TZ", 255, "00[056]", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], [, "(\\d{2})(\\d{7})", "$1 $2", ["5"]], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], , [, , , , , , , , , [-1]], , , [
|
|
9828
9792
|
,
|
|
9829
9793
|
,
|
|
9830
|
-
[
|
|
9831
|
-
],
|
|
9794
|
+
"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"
|
|
9795
|
+
], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
9832
9796
|
UA: [
|
|
9833
9797
|
,
|
|
9834
9798
|
[, , "[89]\\d{9}|[3-9]\\d{8}", , , , , , , [9, 10], [5, 6, 7]],
|
|
@@ -9900,7 +9864,7 @@ var _scope = {};
|
|
|
9900
9864
|
US: [, [, , "[2-9]\\d{9}|3\\d{6}", , , , , , , [10], [7]], [
|
|
9901
9865
|
,
|
|
9902
9866
|
,
|
|
9903
|
-
"(?:
|
|
9867
|
+
"(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
|
|
9904
9868
|
,
|
|
9905
9869
|
,
|
|
9906
9870
|
,
|
|
@@ -9912,7 +9876,7 @@ var _scope = {};
|
|
|
9912
9876
|
], [
|
|
9913
9877
|
,
|
|
9914
9878
|
,
|
|
9915
|
-
"(?:
|
|
9879
|
+
"(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
|
|
9916
9880
|
,
|
|
9917
9881
|
,
|
|
9918
9882
|
,
|
|
@@ -9950,7 +9914,7 @@ var _scope = {};
|
|
|
9950
9914
|
,
|
|
9951
9915
|
[-1]
|
|
9952
9916
|
], , , [, , , , , , , , , [-1]], [, , "21\\d{2,3}", , , , "21123", , , [4, 5]], , , [, , , , , , , , , [-1]]],
|
|
9953
|
-
UZ: [, [, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:
|
|
9917
|
+
UZ: [, [, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"], [
|
|
9954
9918
|
,
|
|
9955
9919
|
,
|
|
9956
9920
|
"(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/react",
|
|
3
|
-
"version": "29.1.
|
|
3
|
+
"version": "29.1.2",
|
|
4
4
|
"description": "A React component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"intl-tel-input": "^29.1.
|
|
37
|
+
"intl-tel-input": "^29.1.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": ">=18",
|