mui-tel-input 8.0.0 → 8.0.1
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/index.d.ts +18 -0
- package/dist/mui-tel-input.es.js +151 -152
- package/package.json +12 -12
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { MuiTelInputContinent, MuiTelInputCountry, MuiTelInputFlagElement, MuiTelInputInfo, MuiTelInputProps, MuiTelInputReason } from './index.types';
|
|
2
|
+
export { AsYouType, getNumberType } from 'libphonenumber-js';
|
|
3
|
+
export type { MuiTelInputContinent, MuiTelInputCountry, MuiTelInputFlagElement, MuiTelInputInfo, MuiTelInputProps, MuiTelInputReason };
|
|
4
|
+
export { matchIsValidTel } from './shared/helpers/valid-phone-number';
|
|
5
|
+
export declare const textFieldClass = "MuiTelInput-TextField";
|
|
6
|
+
declare const MuiTelInput: (props: MuiTelInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const classes: {
|
|
8
|
+
readonly textField: "MuiTelInput-TextField";
|
|
9
|
+
readonly flagContainer: "MuiTelInput-Flag";
|
|
10
|
+
readonly flagImg: "MuiTelInput-FlagImg";
|
|
11
|
+
readonly flagButton: "MuiTelInput-IconButton";
|
|
12
|
+
readonly menu: "MuiTelInput-Menu";
|
|
13
|
+
readonly menuItem: "MuiTelInput-MenuItem";
|
|
14
|
+
readonly listItemIconFlag: "MuiTelInput-ListItemIcon-flag";
|
|
15
|
+
readonly listItemTextCountry: "MuiTelInput-ListItemText-country";
|
|
16
|
+
readonly callingCode: "MuiTelInput-Typography-calling-code";
|
|
17
|
+
};
|
|
18
|
+
export { MuiTelInput };
|
package/dist/mui-tel-input.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as v, jsxs as U, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import m from "react";
|
|
3
3
|
import hn from "react-dom";
|
|
4
4
|
import { styled as z } from "@mui/material/styles";
|
|
5
5
|
import Dt from "@mui/material/IconButton";
|
|
@@ -383,7 +383,7 @@ const Rn = {
|
|
|
383
383
|
className: o,
|
|
384
384
|
...u
|
|
385
385
|
}) => {
|
|
386
|
-
const $ =
|
|
386
|
+
const $ = m.useMemo(() => Te(t), [t]), l = /* @__PURE__ */ v(xe, { isoCode: a, children: a ? d(a, {
|
|
387
387
|
countryName: $.of(a) || "",
|
|
388
388
|
isSelected: !0,
|
|
389
389
|
imgProps: St({
|
|
@@ -465,7 +465,7 @@ const Rn = {
|
|
|
465
465
|
)
|
|
466
466
|
]
|
|
467
467
|
}
|
|
468
|
-
), kn =
|
|
468
|
+
), kn = m.memo(Ln), Bn = [], Gn = [], jn = [], Un = [], Re = "MuiTelInput-Menu", Wn = ({
|
|
469
469
|
anchorEl: e,
|
|
470
470
|
isoCode: n,
|
|
471
471
|
onSelectCountry: t,
|
|
@@ -478,7 +478,7 @@ const Rn = {
|
|
|
478
478
|
getFlagElement: $,
|
|
479
479
|
...l
|
|
480
480
|
}) => {
|
|
481
|
-
const h =
|
|
481
|
+
const h = m.useMemo(() => Te(i), [i]), f = Tn(In, h, {
|
|
482
482
|
onlyCountries: d,
|
|
483
483
|
excludedCountries: r,
|
|
484
484
|
continents: a,
|
|
@@ -523,7 +523,7 @@ function _e(e, n) {
|
|
|
523
523
|
return e.replace(n, "");
|
|
524
524
|
}
|
|
525
525
|
function Hn({ disabled: e, disableDropdown: n }) {
|
|
526
|
-
const t =
|
|
526
|
+
const t = m.useRef(null), [r, d] = m.useState(null);
|
|
527
527
|
return {
|
|
528
528
|
anchorRef: t,
|
|
529
529
|
anchorEl: r,
|
|
@@ -574,7 +574,7 @@ function Yn(e) {
|
|
|
574
574
|
continents: d,
|
|
575
575
|
forceCallingCode: i
|
|
576
576
|
} = e;
|
|
577
|
-
|
|
577
|
+
m.useEffect(() => {
|
|
578
578
|
if (t && r) {
|
|
579
579
|
const a = En(
|
|
580
580
|
t,
|
|
@@ -584,19 +584,19 @@ function Yn(e) {
|
|
|
584
584
|
`[mui-tel-input] Not expected to have the country ${a} to be included in the 'onlyCountries' AND 'excludedCountries' props`
|
|
585
585
|
);
|
|
586
586
|
}
|
|
587
|
-
}, [t, r]),
|
|
587
|
+
}, [t, r]), m.useEffect(() => {
|
|
588
588
|
n && r && r.includes(n) && L(
|
|
589
589
|
`[mui-tel-input] Not expected to have the 'defaultCountry' (${n}) prop excluded by the 'excludedCountries' prop`
|
|
590
590
|
);
|
|
591
|
-
}, [n, r]),
|
|
591
|
+
}, [n, r]), m.useEffect(() => {
|
|
592
592
|
n && t && !t.includes(n) && L(
|
|
593
593
|
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${n}) and a 'onlyCountries' prop but without included the 'defaultCountry' (${n})`
|
|
594
594
|
);
|
|
595
|
-
}, [n, t]),
|
|
595
|
+
}, [n, t]), m.useEffect(() => {
|
|
596
596
|
n && d && d.length > 0 && (d.some((o) => It[o].includes(n)) || L(
|
|
597
597
|
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${n}) and a 'continents' prop that are not contain the country (${n})`
|
|
598
598
|
));
|
|
599
|
-
}, [n, d]),
|
|
599
|
+
}, [n, d]), m.useEffect(() => {
|
|
600
600
|
i && !n && L(
|
|
601
601
|
"[mui-tel-input] 'forceCallingCode' needs 'defaultCountry' defined. Will default to US."
|
|
602
602
|
);
|
|
@@ -1177,8 +1177,8 @@ var vr = ";ext=", _ = function(n) {
|
|
|
1177
1177
|
return "([".concat(C, "]{1,").concat(n, "})");
|
|
1178
1178
|
};
|
|
1179
1179
|
function je(e) {
|
|
1180
|
-
var n = "20", t = "15", r = "9", d = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", h = "[ \\t]*", f = "(?:,{2}|;)", c = vr + _(n),
|
|
1181
|
-
return c + "|" +
|
|
1180
|
+
var n = "20", t = "15", r = "9", d = "6", i = "[ \\t,]*", a = "[:\\..]?[ \\t,-]*", o = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", $ = "(?:[xx##~~]|int|int)", l = "[- ]+", h = "[ \\t]*", f = "(?:,{2}|;)", c = vr + _(n), g = i + u + a + _(n) + o, N = i + $ + a + _(r) + o, y = l + _(d) + "#", F = h + f + a + _(t) + o, B = h + "(?:,)+" + a + _(r) + o;
|
|
1181
|
+
return c + "|" + g + "|" + N + "|" + y + "|" + F + "|" + B;
|
|
1182
1182
|
}
|
|
1183
1183
|
var Cr = "[" + C + "]{" + Ot + "}", Nr = "[" + q + "]{0,1}(?:[" + I + "]*[" + C + "]){3,}[" + I + C + "]*", br = new RegExp("^[" + q + "]{0,1}(?:[" + I + "]*[" + C + "]){1,2}$", "i"), Pr = Nr + // Phone number extensions
|
|
1184
1184
|
"(?:" + je() + ")?", Ar = new RegExp(
|
|
@@ -2010,16 +2010,16 @@ function bt(e, n, t) {
|
|
|
2010
2010
|
var c = new Ye(l, $, t.metadata);
|
|
2011
2011
|
return u && (c.country = u), f && (c.carrierCode = f), i && (c.ext = i), c.__countryCallingCodeSource = h, c;
|
|
2012
2012
|
}
|
|
2013
|
-
var
|
|
2013
|
+
var g = (n.extended ? t.hasSelectedNumberingPlan() : u) ? T($, t.nationalNumberPattern()) : !1;
|
|
2014
2014
|
return n.extended ? {
|
|
2015
2015
|
country: u,
|
|
2016
2016
|
countryCallingCode: l,
|
|
2017
2017
|
carrierCode: f,
|
|
2018
|
-
valid:
|
|
2019
|
-
possible:
|
|
2018
|
+
valid: g,
|
|
2019
|
+
possible: g ? !0 : !!(n.extended === !0 && t.possibleLengths() && We($, t)),
|
|
2020
2020
|
phone: $,
|
|
2021
2021
|
ext: i
|
|
2022
|
-
} :
|
|
2022
|
+
} : g ? Ad(u, $, i) : {};
|
|
2023
2023
|
}
|
|
2024
2024
|
function bd(e, n, t) {
|
|
2025
2025
|
if (e) {
|
|
@@ -2713,8 +2713,8 @@ function Pt(e, n, t) {
|
|
|
2713
2713
|
// matchedChars: ...
|
|
2714
2714
|
} : void 0;
|
|
2715
2715
|
case "[]":
|
|
2716
|
-
for (var c = ge(n.args),
|
|
2717
|
-
var N =
|
|
2716
|
+
for (var c = ge(n.args), g; !(g = c()).done; ) {
|
|
2717
|
+
var N = g.value;
|
|
2718
2718
|
if (e[0] === N)
|
|
2719
2719
|
return e.length === 1 ? {
|
|
2720
2720
|
match: !0,
|
|
@@ -2937,8 +2937,8 @@ var At = "9", h1 = 15, g1 = Y(At, h1), m1 = /[- ]/, y1 = function() {
|
|
|
2937
2937
|
international: i,
|
|
2938
2938
|
nationalPrefix: a
|
|
2939
2939
|
})) {
|
|
2940
|
-
var
|
|
2941
|
-
if (Q(t.nationalPrefixFormattingRule()) === (a || "") + Q("$1") && (f =
|
|
2940
|
+
var g = f.replace(Ve, t.nationalPrefixFormattingRule());
|
|
2941
|
+
if (Q(t.nationalPrefixFormattingRule()) === (a || "") + Q("$1") && (f = g, c = !0, a))
|
|
2942
2942
|
for (var N = a.length; N > 0; )
|
|
2943
2943
|
f = f.replace(/\d/, A), N--;
|
|
2944
2944
|
}
|
|
@@ -3640,14 +3640,14 @@ function t0({
|
|
|
3640
3640
|
disableFormatting: a,
|
|
3641
3641
|
forceCallingCode: o
|
|
3642
3642
|
}) {
|
|
3643
|
-
const u =
|
|
3643
|
+
const u = m.useRef(
|
|
3644
3644
|
t || null
|
|
3645
|
-
), $ =
|
|
3645
|
+
), $ = m.useRef(new R(t)), l = m.useRef(null), [h, f] = m.useState(t), [c, g] = m.useState(() => ft({
|
|
3646
3646
|
initialValue: e,
|
|
3647
3647
|
defaultCountry: t,
|
|
3648
3648
|
disableFormatting: a,
|
|
3649
3649
|
forceCallingCode: o
|
|
3650
|
-
})), [N, y] =
|
|
3650
|
+
})), [N, y] = m.useState(e), F = (s) => ({
|
|
3651
3651
|
countryCallingCode: $.current.getCallingCode() || null,
|
|
3652
3652
|
countryCode: $.current.getCountry() || null,
|
|
3653
3653
|
nationalNumber: $.current.getNationalNumber(),
|
|
@@ -3672,19 +3672,19 @@ function t0({
|
|
|
3672
3672
|
countryCode: null,
|
|
3673
3673
|
countryCallingCode: null,
|
|
3674
3674
|
nationalNumber: null
|
|
3675
|
-
}), y(b),
|
|
3675
|
+
}), y(b), g({
|
|
3676
3676
|
isoCode: null,
|
|
3677
3677
|
inputValue: b
|
|
3678
3678
|
});
|
|
3679
3679
|
else {
|
|
3680
3680
|
const P = a ? b : M;
|
|
3681
|
-
n?.(P, w), y(P),
|
|
3681
|
+
n?.(P, w), y(P), g({
|
|
3682
3682
|
isoCode: E,
|
|
3683
3683
|
inputValue: P
|
|
3684
3684
|
});
|
|
3685
3685
|
}
|
|
3686
3686
|
};
|
|
3687
|
-
|
|
3687
|
+
m.useEffect(() => {
|
|
3688
3688
|
if (e !== N) {
|
|
3689
3689
|
y(e);
|
|
3690
3690
|
const s = ft({
|
|
@@ -3693,7 +3693,7 @@ function t0({
|
|
|
3693
3693
|
forceCallingCode: o,
|
|
3694
3694
|
disableFormatting: a
|
|
3695
3695
|
});
|
|
3696
|
-
u.current = s.isoCode,
|
|
3696
|
+
u.current = s.isoCode, g(s);
|
|
3697
3697
|
}
|
|
3698
3698
|
}, [
|
|
3699
3699
|
e,
|
|
@@ -3701,7 +3701,7 @@ function t0({
|
|
|
3701
3701
|
t,
|
|
3702
3702
|
o,
|
|
3703
3703
|
a
|
|
3704
|
-
]),
|
|
3704
|
+
]), m.useEffect(() => {
|
|
3705
3705
|
if (t !== h) {
|
|
3706
3706
|
f(t), $.current = new R(t);
|
|
3707
3707
|
const { inputValue: s, isoCode: x } = ft({
|
|
@@ -3710,7 +3710,7 @@ function t0({
|
|
|
3710
3710
|
forceCallingCode: o,
|
|
3711
3711
|
disableFormatting: a
|
|
3712
3712
|
});
|
|
3713
|
-
y(s), $.current.input(s), u.current = $.current.getCountry() || null, n?.(s, F("country")),
|
|
3713
|
+
y(s), $.current.input(s), u.current = $.current.getCountry() || null, n?.(s, F("country")), g({
|
|
3714
3714
|
inputValue: s,
|
|
3715
3715
|
isoCode: x
|
|
3716
3716
|
});
|
|
@@ -3736,7 +3736,7 @@ function t0({
|
|
|
3736
3736
|
...F("country"),
|
|
3737
3737
|
// Some country have the same calling code, so we choose what the user has selected
|
|
3738
3738
|
countryCode: s
|
|
3739
|
-
}), u.current = s, y(b),
|
|
3739
|
+
}), u.current = s, y(b), g({
|
|
3740
3740
|
isoCode: s,
|
|
3741
3741
|
inputValue: b
|
|
3742
3742
|
});
|
|
@@ -3771,129 +3771,128 @@ function g0(e, n) {
|
|
|
3771
3771
|
}
|
|
3772
3772
|
return V1(e);
|
|
3773
3773
|
}
|
|
3774
|
-
const nn = "MuiTelInput-TextField", m0 =
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
},
|
|
3857
|
-
input: {
|
|
3858
|
-
startAdornment: /* @__PURE__ */ v(Cn, { position: "start", sx: { flexShrink: 0 }, children: /* @__PURE__ */ v(
|
|
3859
|
-
_n,
|
|
3860
|
-
{
|
|
3861
|
-
isFlagsMenuOpened: !!wt,
|
|
3862
|
-
isoCode: P,
|
|
3863
|
-
forceCallingCode: t,
|
|
3864
|
-
onClick: dn,
|
|
3865
|
-
disabled: c,
|
|
3866
|
-
getFlagElement: V,
|
|
3867
|
-
unknownFlagElement: s,
|
|
3868
|
-
disableDropdown: !!N,
|
|
3869
|
-
...x
|
|
3870
|
-
}
|
|
3871
|
-
) }),
|
|
3872
|
-
...h?.input
|
|
3873
|
-
}
|
|
3774
|
+
const nn = "MuiTelInput-TextField", m0 = (e) => {
|
|
3775
|
+
const {
|
|
3776
|
+
forceCallingCode: n = !1,
|
|
3777
|
+
onlyCountries: t,
|
|
3778
|
+
excludedCountries: r,
|
|
3779
|
+
defaultCountry: d,
|
|
3780
|
+
onDoubleClick: i,
|
|
3781
|
+
onFocus: a,
|
|
3782
|
+
onCopy: o,
|
|
3783
|
+
onBlur: u,
|
|
3784
|
+
value: $ = "",
|
|
3785
|
+
ref: l,
|
|
3786
|
+
slotProps: h,
|
|
3787
|
+
inputRef: f,
|
|
3788
|
+
disabled: c,
|
|
3789
|
+
onChange: g,
|
|
3790
|
+
disableDropdown: N,
|
|
3791
|
+
disableFormatting: y = !1,
|
|
3792
|
+
focusOnSelectCountry: F,
|
|
3793
|
+
langOfCountryName: B,
|
|
3794
|
+
continents: G,
|
|
3795
|
+
preferredCountries: dt,
|
|
3796
|
+
MenuProps: it,
|
|
3797
|
+
className: at,
|
|
3798
|
+
getFlagElement: V = Mn,
|
|
3799
|
+
unknownFlagElement: s = Dn,
|
|
3800
|
+
FlagIconButtonProps: x,
|
|
3801
|
+
...M
|
|
3802
|
+
} = e, j = n ? Sn(d) : d;
|
|
3803
|
+
Yn(e);
|
|
3804
|
+
const {
|
|
3805
|
+
onInputChange: E,
|
|
3806
|
+
onCountryChange: b,
|
|
3807
|
+
inputRef: w,
|
|
3808
|
+
isoCode: P,
|
|
3809
|
+
inputValue: Ft,
|
|
3810
|
+
buildInputInfo: rn
|
|
3811
|
+
} = t0({
|
|
3812
|
+
forceCallingCode: n,
|
|
3813
|
+
defaultCountry: j,
|
|
3814
|
+
value: $ ?? "",
|
|
3815
|
+
onChange: g,
|
|
3816
|
+
excludedCountries: r,
|
|
3817
|
+
onlyCountries: t,
|
|
3818
|
+
disableFormatting: y,
|
|
3819
|
+
continents: G
|
|
3820
|
+
}), { openMenu: dn, anchorEl: wt, anchorRef: an, closeMenu: Mt } = Hn({
|
|
3821
|
+
disabled: c,
|
|
3822
|
+
disableDropdown: N
|
|
3823
|
+
}), { handleDoubleClick: on, handleCopy: un, handleFocus: $n } = Zn({
|
|
3824
|
+
onDoubleClick: i,
|
|
3825
|
+
onCopy: o,
|
|
3826
|
+
onFocus: a,
|
|
3827
|
+
inputRef: w
|
|
3828
|
+
}), ln = (ot) => {
|
|
3829
|
+
hn.flushSync(() => {
|
|
3830
|
+
Mt(), b(ot);
|
|
3831
|
+
}), F && w.current && w.current.focus();
|
|
3832
|
+
}, sn = (ot) => {
|
|
3833
|
+
u?.(ot, rn("blur"));
|
|
3834
|
+
}, fn = P ? `+${K(P)}` : "", cn = n ? (
|
|
3835
|
+
// We removed the isoCode but no necessarily the space after
|
|
3836
|
+
_e(Ft, fn).trimStart()
|
|
3837
|
+
) : Ft;
|
|
3838
|
+
return /* @__PURE__ */ U(Pe, { children: [
|
|
3839
|
+
/* @__PURE__ */ v(
|
|
3840
|
+
Nn,
|
|
3841
|
+
{
|
|
3842
|
+
type: "tel",
|
|
3843
|
+
disabled: c,
|
|
3844
|
+
value: cn,
|
|
3845
|
+
ref: Bt([l, an]),
|
|
3846
|
+
onDoubleClick: on,
|
|
3847
|
+
inputRef: Bt([w, f]),
|
|
3848
|
+
className: `${nn} ${at || ""}`,
|
|
3849
|
+
onChange: E,
|
|
3850
|
+
onBlur: sn,
|
|
3851
|
+
onFocus: $n,
|
|
3852
|
+
slotProps: {
|
|
3853
|
+
htmlInput: {
|
|
3854
|
+
onCopy: un,
|
|
3855
|
+
...h?.htmlInput
|
|
3874
3856
|
},
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
}
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3857
|
+
input: {
|
|
3858
|
+
startAdornment: /* @__PURE__ */ v(Cn, { position: "start", sx: { flexShrink: 0 }, children: /* @__PURE__ */ v(
|
|
3859
|
+
_n,
|
|
3860
|
+
{
|
|
3861
|
+
isFlagsMenuOpened: !!wt,
|
|
3862
|
+
isoCode: P,
|
|
3863
|
+
forceCallingCode: n,
|
|
3864
|
+
onClick: dn,
|
|
3865
|
+
disabled: c,
|
|
3866
|
+
getFlagElement: V,
|
|
3867
|
+
unknownFlagElement: s,
|
|
3868
|
+
disableDropdown: !!N,
|
|
3869
|
+
...x
|
|
3870
|
+
}
|
|
3871
|
+
) }),
|
|
3872
|
+
...h?.input
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
...M
|
|
3876
|
+
}
|
|
3877
|
+
),
|
|
3878
|
+
N ? null : /* @__PURE__ */ v(
|
|
3879
|
+
Wn,
|
|
3880
|
+
{
|
|
3881
|
+
onlyCountries: t,
|
|
3882
|
+
excludedCountries: r,
|
|
3883
|
+
continents: G,
|
|
3884
|
+
anchorEl: wt,
|
|
3885
|
+
isoCode: P,
|
|
3886
|
+
preferredCountries: dt,
|
|
3887
|
+
onClose: Mt,
|
|
3888
|
+
langOfCountryName: B,
|
|
3889
|
+
onSelectCountry: ln,
|
|
3890
|
+
getFlagElement: V,
|
|
3891
|
+
...it
|
|
3892
|
+
}
|
|
3893
|
+
)
|
|
3894
|
+
] });
|
|
3895
|
+
}, y0 = {
|
|
3897
3896
|
textField: nn,
|
|
3898
3897
|
flagContainer: Ie,
|
|
3899
3898
|
flagImg: Et,
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/viclafouch/mui-tel-input/issues"
|
|
8
8
|
},
|
|
9
9
|
"homepage": "https://viclafouch.github.io/mui-tel-input",
|
|
10
|
-
"version": "8.0.
|
|
10
|
+
"version": "8.0.1",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"@emotion/react": "^11.14.0",
|
|
80
80
|
"@emotion/styled": "^11.14.0",
|
|
81
81
|
"@mui/material": "^6.4.6",
|
|
82
|
-
"@storybook/addon-actions": "^8.6.
|
|
83
|
-
"@storybook/addon-essentials": "^8.6.
|
|
84
|
-
"@storybook/addon-interactions": "^8.6.
|
|
85
|
-
"@storybook/addon-links": "^8.6.
|
|
86
|
-
"@storybook/react": "^8.6.
|
|
87
|
-
"@storybook/react-vite": "^8.6.
|
|
88
|
-
"@storybook/test": "^8.6.
|
|
82
|
+
"@storybook/addon-actions": "^8.6.3",
|
|
83
|
+
"@storybook/addon-essentials": "^8.6.3",
|
|
84
|
+
"@storybook/addon-interactions": "^8.6.3",
|
|
85
|
+
"@storybook/addon-links": "^8.6.3",
|
|
86
|
+
"@storybook/react": "^8.6.3",
|
|
87
|
+
"@storybook/react-vite": "^8.6.3",
|
|
88
|
+
"@storybook/test": "^8.6.3",
|
|
89
89
|
"@testing-library/dom": "^10.4.0",
|
|
90
90
|
"@testing-library/jest-dom": "^6.6.3",
|
|
91
91
|
"@testing-library/react": "^16.2.0",
|
|
@@ -97,17 +97,17 @@
|
|
|
97
97
|
"babel-loader": "^9.2.1",
|
|
98
98
|
"eslint": "^8.56.0",
|
|
99
99
|
"husky": "^9.1.7",
|
|
100
|
-
"jsdom": "^26.0.0",
|
|
101
|
-
"prettier": "^3.4.2",
|
|
102
100
|
"react": "^19.0.0",
|
|
103
101
|
"react-dom": "^19.0.0",
|
|
102
|
+
"jsdom": "^26.0.0",
|
|
103
|
+
"prettier": "^3.4.2",
|
|
104
104
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
105
105
|
"standard-version": "^9.5.0",
|
|
106
|
-
"storybook": "^8.6.
|
|
106
|
+
"storybook": "^8.6.3",
|
|
107
107
|
"typescript": "^5.8.2",
|
|
108
108
|
"vite": "6.2.0",
|
|
109
109
|
"vite-aliases": "^0.11.8",
|
|
110
|
-
"vite-plugin-dts": "^4.5.
|
|
110
|
+
"vite-plugin-dts": "^4.5.3",
|
|
111
111
|
"vitest": "^3.0.7"
|
|
112
112
|
}
|
|
113
113
|
}
|