@arkyn/components 3.0.12 → 3.0.13
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/components/phoneInput/phoneInputMask/index.d.ts.map +1 -1
- package/dist/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/modules/components/phoneInput/phoneInputMask/index.js +6 -10
- package/dist/modules/components/phoneInput/phoneInputMask/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/phoneInput/phoneInputMask/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,aAAa,CAAC;AAErB,KAAK,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,cAAc,EAAE,WAAW,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AASF,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/phoneInput/phoneInputMask/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,aAAa,CAAC;AAErB,KAAK,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,cAAc,EAAE,WAAW,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AASF,QAAA,MAAM,cAAc,kHAiFnB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3661,16 +3661,12 @@ var jr = r((e, t) => /* @__PURE__ */ p("input", {
|
|
|
3661
3661
|
ref: t,
|
|
3662
3662
|
...e
|
|
3663
3663
|
})), Mr = r((e, t) => {
|
|
3664
|
-
let { onFocus: n, readonly: r, onBlur: i, size: a, onChange: s, value: c, currentCountry: u, disabled: d, id: f } = e, m = l(
|
|
3665
|
-
|
|
3666
|
-
let
|
|
3664
|
+
let { onFocus: n, readonly: r, onBlur: i, size: a, onChange: s, value: c, currentCountry: u, disabled: d, id: f } = e, m = l(s);
|
|
3665
|
+
m.current = s;
|
|
3666
|
+
let h = typeof u.mask == "string" ? u.mask : u.mask[0], g = l(h);
|
|
3667
3667
|
o(() => {
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
return;
|
|
3671
|
-
}
|
|
3672
|
-
h.current(g);
|
|
3673
|
-
}, [g]);
|
|
3668
|
+
g.current !== h && (g.current = h, m.current(h));
|
|
3669
|
+
}, [h]);
|
|
3674
3670
|
let _ = `phoneInputMask ${a}`;
|
|
3675
3671
|
function v(e) {
|
|
3676
3672
|
let t = xr(e.target.value), n = wr(t);
|
|
@@ -3696,7 +3692,7 @@ var jr = r((e, t) => /* @__PURE__ */ p("input", {
|
|
|
3696
3692
|
onFocus: n,
|
|
3697
3693
|
onBlur: i,
|
|
3698
3694
|
disabled: d,
|
|
3699
|
-
mask:
|
|
3695
|
+
mask: h,
|
|
3700
3696
|
showMask: !0,
|
|
3701
3697
|
replacement: { _: /\d/ },
|
|
3702
3698
|
ref: t
|