@incodetech/web 0.0.0-dev-20260331-a4ec4fe → 0.0.0-dev-20260331-b713a7b

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.
@@ -10,7 +10,7 @@ import { D as ee } from "./dropdownComposed-DFrqye1c.js";
10
10
  import { P as T } from "./page-DiscPBzz.js";
11
11
  import { S as re } from "./spinner-DfUoOZN4.js";
12
12
  import { r as oe } from "./incodeModule-C4XIllao.js";
13
- import { P as te } from "./phoneInputComposed-Dsf9ZDTj.js";
13
+ import { P as te } from "./phoneInputComposed-Bpmd54ur.js";
14
14
  const ae = ({ config: p, onFinish: s }) => {
15
15
  const { t: l } = $(), [a, d] = G(() => z({ config: p }));
16
16
  return q(() => {
@@ -9,7 +9,7 @@ import "../uiConfig-DmIn-g8M.js";
9
9
  import "../typography-zMrvftfB.js";
10
10
  import { a as L } from "../inputComposed-CJQTXKNA.js";
11
11
  import "../checkbox-CXnQVsbJ.js";
12
- import "../phoneInputComposed-Dsf9ZDTj.js";
12
+ import "../phoneInputComposed-Bpmd54ur.js";
13
13
  import "../dateInputComposed-DmlHvCmR.js";
14
14
  import "../captureOverlay-rwQkQuBD.js";
15
15
  import "../manualCaptureButton-CUq6VXLb.js";
@@ -11,11 +11,11 @@ import { C as q, P as z } from "./cameraView-CT9-WWcG.js";
11
11
  import { I as J, a as K } from "./inputComposed-CJQTXKNA.js";
12
12
  import { O as Q } from "./otpInput-CGlYkmvB.js";
13
13
  import { C as Y, a as Z } from "./checkbox-CXnQVsbJ.js";
14
- import { P as $ } from "./phoneInputComposed-Dsf9ZDTj.js";
14
+ import { P as $ } from "./phoneInputComposed-Bpmd54ur.js";
15
15
  import { D as ra, S as ea } from "./dropdownComposed-DFrqye1c.js";
16
16
  import { C as ta, D as sa } from "./dateInputComposed-DmlHvCmR.js";
17
17
  import { T as pa, a as ca } from "./captureOverlay-rwQkQuBD.js";
18
- import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-B48PXORR.js";
18
+ import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-CfOzpxYW.js";
19
19
  import { L as Ta, M as va } from "./manualCaptureButton-CUq6VXLb.js";
20
20
  import { a as Ba, C as Fa, b as Pa, d as La, c as Oa, H as ba, L as Ha } from "./captureFooter-B_3eu8kq.js";
21
21
  import { A as i, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
@@ -12,7 +12,7 @@ import { B as W } from "./permissions-DbPRF91z.js";
12
12
  import "@incodetech/core";
13
13
  import "./inputComposed-CJQTXKNA.js";
14
14
  import "./checkbox-CXnQVsbJ.js";
15
- import "./phoneInputComposed-Dsf9ZDTj.js";
15
+ import "./phoneInputComposed-Bpmd54ur.js";
16
16
  import "./dateInputComposed-DmlHvCmR.js";
17
17
  import "./countries-DfLkrF0x.js";
18
18
  const $ = ({
@@ -2003,7 +2003,7 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
2003
2003
  (e) => e.GovernmentValidation
2004
2004
  ),
2005
2005
  GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
2006
- EXTERNAL_VERIFICATION: () => import("../ekycModule-Hi5yRFs3.js").then((e) => e.EkycModule),
2006
+ EXTERNAL_VERIFICATION: () => import("../ekycModule-CIb3RYhf.js").then((e) => e.EkycModule),
2007
2007
  EKYB: () => import("../ekybModule-Ct3A65tt.js").then((e) => e.EkybModule),
2008
2008
  DOCUMENT_CAPTURE: () => import("../documentCapture-DYsIVkcU.js").then(
2009
2009
  (e) => e.DocumentCapture
package/dist/id/id.es.js CHANGED
@@ -5,7 +5,7 @@ import "@incodetech/core";
5
5
  import { P as f } from "../permissions-DbPRF91z.js";
6
6
  import { r as l } from "../incodeModule-C4XIllao.js";
7
7
  import { P as h } from "../processing-De8XWnFp.js";
8
- import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-B48PXORR.js";
8
+ import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-CfOzpxYW.js";
9
9
  import "../captureOverlay-rwQkQuBD.js";
10
10
  import "../uiConfig-DmIn-g8M.js";
11
11
  import "../typography-zMrvftfB.js";
@@ -6,7 +6,7 @@ import "@incodetech/core";
6
6
  import { C as y } from "../checkbox-CXnQVsbJ.js";
7
7
  import { O as k } from "../otpInput-CGlYkmvB.js";
8
8
  import { P as g } from "../page-DiscPBzz.js";
9
- import { P as R } from "../phoneInputComposed-Dsf9ZDTj.js";
9
+ import { P as R } from "../phoneInputComposed-Bpmd54ur.js";
10
10
  import { r as V } from "../incodeModule-C4XIllao.js";
11
11
  const B = ({
12
12
  config: i,
@@ -1,62 +1,68 @@
1
- import { u as r } from "./button-B2Ewo0rX.js";
2
- import { D as J, d as g, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
1
+ import { u as a } from "./button-B2Ewo0rX.js";
2
+ import { D as J, d as L, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
3
3
  import { w as X, g as I, c as j, b as k } from "./countries-DfLkrF0x.js";
4
4
  import { D as z } from "./dropdownComposed-DFrqye1c.js";
5
- import { E as q } from "./errorIcon-C-Zd24vb.js";
6
- import { S as _ } from "./successIcon-DyHNp_UT.js";
5
+ import { E as _ } from "./errorIcon-C-Zd24vb.js";
6
+ import { S as q } from "./successIcon-DyHNp_UT.js";
7
7
  import { a as e2 } from "./inputComposed-CJQTXKNA.js";
8
- import { P as n2, p as L, A as b } from "./AsYouType-D1H_js4X.js";
9
- function o2(e, o, a) {
8
+ import { P as n2, p as D, A as g } from "./AsYouType-D1H_js4X.js";
9
+ function o2(e, o, r) {
10
10
  if (o[e])
11
- return new n2(e, o[e], a);
11
+ return new n2(e, o[e], r);
12
12
  }
13
13
  function t2() {
14
14
  return X(o2, arguments);
15
15
  }
16
16
  const r2 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2684641234", AI: "2642351234", AL: "672123456", AM: "77123456", AO: "923123456", AR: "91123456789", AS: "6847331234", AT: "664123456", AU: "412345678", AW: "5601234", AX: "412345678", AZ: "401234567", BA: "61123456", BB: "2462501234", BD: "1812345678", BE: "470123456", BF: "70123456", BG: "43012345", BH: "36001234", BI: "79561234", BJ: "0195123456", BL: "690001234", BM: "4413701234", BN: "7123456", BO: "71234567", BQ: "3181234", BR: "11961234567", BS: "2423591234", BT: "17123456", BW: "71123456", BY: "294911911", BZ: "6221234", CA: "5062345678", CC: "412345678", CD: "991234567", CF: "70012345", CG: "061234567", CH: "781234567", CI: "0123456789", CK: "71234", CL: "221234567", CM: "671234567", CN: "13123456789", CO: "3211234567", CR: "83123456", CU: "51234567", CV: "9911234", CW: "95181234", CX: "412345678", CY: "96123456", CZ: "601123456", DE: "15123456789", DJ: "77831001", DK: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "60123456", MF: "690001234", MG: "321234567", MH: "2351234", MK: "72345678", ML: "65012345", MM: "92123456", MN: "88123456", MO: "66123456", MP: "6702345678", MQ: "696201234", MR: "22123456", MS: "6644923456", MT: "96961234", MU: "52512345", MV: "7712345", MW: "991234567", MX: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" };
17
- function y(e, o, a) {
18
- return new b(a).input(`${o}${e}`).replace(o, "").trimStart();
17
+ function b(e, o, r) {
18
+ return new g(r).input(`${o}${e}`).replace(o, "").trimStart();
19
19
  }
20
20
  function s2(e, o) {
21
- const a = e.replace(/\D/g, "");
22
- if (a === o) return e;
23
- if (!a.endsWith(o)) return null;
24
- const s = a.length - o.length;
25
- if (s <= 0) return e;
21
+ const r = e.replace(/\D/g, "");
22
+ if (r === o) return e;
23
+ if (!r.endsWith(o)) return null;
24
+ const l = r.length - o.length;
25
+ if (l <= 0) return e;
26
26
  let c = 0;
27
- for (let l = 0; l < e.length; l++)
28
- if (/\d/.test(e[l]) && (c++, c === s))
29
- return e.slice(l + 1).trimStart();
27
+ for (let s = 0; s < e.length; s++)
28
+ if (/\d/.test(e[s]) && (c++, c === l))
29
+ return e.slice(s + 1).trimStart();
30
30
  return e;
31
31
  }
32
- function a2(e) {
33
- const o = t2(e, r2);
34
- if (!o) return "";
35
- const a = o.formatNational(), s = s2(a, o.nationalNumber);
36
- if (s) return s;
37
- const c = `+${k(e)}`;
38
- return y(o.nationalNumber, c, e);
32
+ const a2 = {
33
+ US: "(123) 456-7890",
34
+ CA: "(123) 456-7890"
35
+ };
36
+ function l2(e) {
37
+ const o = a2[e];
38
+ if (o) return o;
39
+ const r = t2(e, r2);
40
+ if (!r) return "";
41
+ const l = r.formatNational(), c = s2(l, r.nationalNumber);
42
+ if (c) return c;
43
+ const s = `+${k(e)}`;
44
+ return b(r.nationalNumber, s, e);
39
45
  }
40
- const l2 = J(
46
+ const c2 = J(
41
47
  ({
42
48
  id: e,
43
49
  label: o,
44
- countryCode: a = "US",
45
- value: s,
50
+ countryCode: r = "US",
51
+ value: l,
46
52
  placeholder: c,
47
- error: l,
53
+ error: s,
48
54
  helper: h,
49
- showErrorIcon: D,
50
- showHelperIcon: K,
51
- disabled: N = !1,
52
- disableCountrySelector: R = !1,
55
+ showErrorIcon: R,
56
+ showHelperIcon: y,
57
+ disabled: E = !1,
58
+ disableCountrySelector: K = !1,
53
59
  required: P,
54
60
  onChange: S,
55
61
  "aria-labelledby": $,
56
- "data-testid": W,
57
- ...F
58
- }, H) => {
59
- const [d, T] = g(a), [u, f] = g(""), G = x(!1), U = M(
62
+ "data-testid": H,
63
+ ...W
64
+ }, U) => {
65
+ const [d, N] = L(r), [u, f] = L(""), T = x(!1), F = M(
60
66
  () => j.map((t) => ({
61
67
  value: t.code,
62
68
  label: `${t.emoji} ${t.callingCode} ${t.name}`
@@ -66,24 +72,24 @@ const l2 = J(
66
72
  () => I(d) ?? I("US"),
67
73
  [d]
68
74
  ), O = M(
69
- () => c ?? a2(d),
75
+ () => c ?? l2(d),
70
76
  [c, d]
71
77
  );
72
78
  Q(() => {
73
- if (G.current || !s || !i) return;
74
- G.current = !0;
75
- const t = s.startsWith("+") ? s : `+${s}`, n = L(t);
79
+ if (T.current || !l || !i) return;
80
+ T.current = !0;
81
+ const t = l.startsWith("+") ? l : `+${l}`, n = D(t);
76
82
  if (n?.isValid() && n.country) {
77
- n.country !== d && T(n.country);
78
- const p = new b(n.country);
83
+ n.country !== d && N(n.country);
84
+ const p = new g(n.country);
79
85
  f(p.input(n.nationalNumber));
80
86
  }
81
- }, [s, i, d]);
87
+ }, [l, i, d]);
82
88
  const C = A(
83
89
  (t, n) => {
84
90
  const p = `${n.callingCode}${t.replace(/\D/g, "")}`;
85
91
  try {
86
- const Y = L(p, n.code);
92
+ const Y = D(p, n.code);
87
93
  S?.(p, Y?.isValid() ?? !1);
88
94
  } catch {
89
95
  S?.(p, !1);
@@ -92,7 +98,7 @@ const l2 = J(
92
98
  [S]
93
99
  ), V = A(
94
100
  (t) => {
95
- T(t);
101
+ N(t);
96
102
  const n = I(t);
97
103
  n && u && C(u, n);
98
104
  },
@@ -104,7 +110,7 @@ const l2 = J(
104
110
  f(n);
105
111
  return;
106
112
  }
107
- const p = y(
113
+ const p = b(
108
114
  n,
109
115
  i.callingCode,
110
116
  i.code
@@ -112,9 +118,9 @@ const l2 = J(
112
118
  f(p), C(n, i);
113
119
  },
114
120
  [i, C]
115
- ), v = `${e}-country`, m = `${e}-phone`, E = `${m}-helper`, B = `${m}-error`, w = [h ? E : null, l ? B : null].filter(Boolean).join(" ");
116
- return /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposed", children: [
117
- o && /* @__PURE__ */ r(
121
+ ), v = `${e}-country`, m = `${e}-phone`, G = `${m}-helper`, B = `${m}-error`, w = [h ? G : null, s ? B : null].filter(Boolean).join(" ");
122
+ return /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposed", children: [
123
+ o && /* @__PURE__ */ a(
118
124
  "label",
119
125
  {
120
126
  class: "IncodePhoneInputComposedLabel",
@@ -122,18 +128,18 @@ const l2 = J(
122
128
  "data-testid": `${e}-label`,
123
129
  children: [
124
130
  o,
125
- P && /* @__PURE__ */ r("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
131
+ P && /* @__PURE__ */ a("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
126
132
  ]
127
133
  }
128
134
  ),
129
- /* @__PURE__ */ r(
135
+ /* @__PURE__ */ a(
130
136
  z,
131
137
  {
132
138
  id: v,
133
- options: U,
139
+ options: F,
134
140
  value: d,
135
141
  onChange: V,
136
- disabled: N || R,
142
+ disabled: E || K,
137
143
  required: P,
138
144
  searchable: !0,
139
145
  searchPlaceholder: "Search countries...",
@@ -144,56 +150,56 @@ const l2 = J(
144
150
  return n ? `${n.emoji} ${n.callingCode}` : t.label;
145
151
  },
146
152
  class: "IncodePhoneInputComposedDropdown",
147
- siblingElement: /* @__PURE__ */ r(
153
+ siblingElement: /* @__PURE__ */ a(
148
154
  e2,
149
155
  {
150
156
  id: m,
151
- ref: H,
157
+ ref: U,
152
158
  type: "tel",
153
159
  value: u,
154
160
  onInput: Z,
155
161
  placeholder: O,
156
- error: l,
157
- disabled: N,
162
+ error: s,
163
+ disabled: E,
158
164
  required: P,
159
165
  suppressMessages: !0,
160
166
  "aria-label": o ? void 0 : "Phone number",
161
167
  "aria-labelledby": $,
162
168
  "aria-describedby": w || void 0,
163
- "aria-invalid": l ? "true" : void 0,
164
- "data-testid": W,
165
- ...F
169
+ "aria-invalid": s ? "true" : void 0,
170
+ "data-testid": H,
171
+ ...W
166
172
  }
167
173
  )
168
174
  }
169
175
  ),
170
- l && /* @__PURE__ */ r(
176
+ s && /* @__PURE__ */ a(
171
177
  "div",
172
178
  {
173
179
  class: "IncodePhoneInputComposedErrorWrapper",
174
180
  role: "alert",
175
181
  "data-testid": `${e}-error-wrapper`,
176
182
  children: [
177
- D && /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ r(q, { size: 16 }) }),
178
- /* @__PURE__ */ r("p", { id: B, class: "IncodePhoneInputComposedError", children: l })
183
+ R && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(_, { size: 16 }) }),
184
+ /* @__PURE__ */ a("p", { id: B, class: "IncodePhoneInputComposedError", children: s })
179
185
  ]
180
186
  }
181
187
  ),
182
- h && !l && /* @__PURE__ */ r(
188
+ h && !s && /* @__PURE__ */ a(
183
189
  "div",
184
190
  {
185
191
  class: "IncodePhoneInputComposedHelperWrapper",
186
192
  "data-testid": `${e}-helper-wrapper`,
187
193
  children: [
188
- K && /* @__PURE__ */ r("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ r(_, { size: 16 }) }),
189
- /* @__PURE__ */ r("p", { id: E, class: "IncodePhoneInputComposedHelper", children: h })
194
+ y && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(q, { size: 16 }) }),
195
+ /* @__PURE__ */ a("p", { id: G, class: "IncodePhoneInputComposedHelper", children: h })
190
196
  ]
191
197
  }
192
198
  )
193
199
  ] });
194
200
  }
195
201
  );
196
- l2.displayName = "PhoneInputComposed";
202
+ c2.displayName = "PhoneInputComposed";
197
203
  export {
198
- l2 as P
204
+ c2 as P
199
205
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260331-a4ec4fe",
3
+ "version": "0.0.0-dev-20260331-b713a7b",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -136,7 +136,7 @@
136
136
  "preact-markup": "^2.1.1",
137
137
  "qrcode": "^1.5.4",
138
138
  "tailwindcss": "^4.1.17",
139
- "@incodetech/core": "0.0.0-dev-20260331-a4ec4fe"
139
+ "@incodetech/core": "0.0.0-dev-20260331-b713a7b"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@microsoft/api-extractor": "^7.53.3",