@incodetech/web 0.0.0-dev-20260325-72e1e24 → 0.0.0-dev-20260326-106dc21

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.
Files changed (69) hide show
  1. package/dist/{Trans-BQctqaWi.js → Trans-BSLSJO1_.js} +2 -2
  2. package/dist/{addressAutocomplete-CnuyGGR4.js → addressAutocomplete-BhUbJEuH.js} +6 -6
  3. package/dist/authentication/authentication.es.js +5 -5
  4. package/dist/{back-horizontal-hint-CktUy0An.js → back-horizontal-hint-CSlf9KI1.js} +1 -1
  5. package/dist/{back-vertical-hint-CMOWSEsc.js → back-vertical-hint-CNieqiCr.js} +1 -1
  6. package/dist/base.css +16 -3
  7. package/dist/{button-qiC4m4lf.js → button-B2Ewo0rX.js} +2 -2
  8. package/dist/cameraView-CT9-WWcG.js +55 -0
  9. package/dist/{captureFooter-BIPDtCn6.js → captureFooter-B_3eu8kq.js} +77 -127
  10. package/dist/captureOverlay-CB8lyLgp.js +399 -0
  11. package/dist/{checkbox-KYc1FnQr.js → checkbox-CXnQVsbJ.js} +3 -3
  12. package/dist/{chevronDown-J1Yx1Jy7.js → chevronDown-DKyU4xPP.js} +1 -1
  13. package/dist/{closeIcon-C5IKfu-j.js → closeIcon-DjWL_arL.js} +1 -1
  14. package/dist/consent/consent.es.js +8 -8
  15. package/dist/curp-validation/curp-validation.es.js +11 -11
  16. package/dist/curp-validation/styles.css +12 -0
  17. package/dist/{dateInputComposed-DzB7gNed.js → dateInputComposed-DmlHvCmR.js} +4 -4
  18. package/dist/{documentCapture-B4JcCGTV.js → documentCapture-DYsIVkcU.js} +14 -13
  19. package/dist/dropdownComposed-DFrqye1c.js +367 -0
  20. package/dist/{ekybModule-ly0wrPsV.js → ekybModule-Cve2s2tf.js} +10 -10
  21. package/dist/{ekycModule-BkTDINkE.js → ekycModule-Hi5yRFs3.js} +11 -11
  22. package/dist/email/email.es.js +97 -106
  23. package/dist/email/styles.css +0 -111
  24. package/dist/{errorContent-BudafcKL.js → errorContent-CqNelsXg.js} +6 -6
  25. package/dist/{errorIcon-DbJL-4MJ.js → errorIcon-C-Zd24vb.js} +1 -1
  26. package/dist/extensibility.es.js +92 -89
  27. package/dist/{faceMatch-DylE4LWy.js → faceMatch-BVsE7czZ.js} +6 -6
  28. package/dist/{fileIcon-ClvmLl6A.js → fileIcon-DIVwt0SD.js} +1 -1
  29. package/dist/{flipAnimation-CmG-kgPi.js → flipAnimation-CQ3So9XG.js} +269 -655
  30. package/dist/flow/flow.es.js +14 -14
  31. package/dist/flow/styles.css +12 -85
  32. package/dist/{formField-CMNAU-Eh.js → formField-CPfeaz8y.js} +8 -8
  33. package/dist/{front-horizontal-hint-Ca8ux7ED.js → front-horizontal-hint-lRLKd7vY.js} +1 -1
  34. package/dist/{front-vertical-hint-Cl9a47Kq.js → front-vertical-hint-qQoJXRE3.js} +1 -1
  35. package/dist/geolocation/geolocation.es.js +6 -6
  36. package/dist/governmentValidation/governmentValidation.es.js +10 -10
  37. package/dist/id/id.es.js +16 -15
  38. package/dist/{incodeModule-DtbbjNTQ.js → incodeModule-C4XIllao.js} +1 -1
  39. package/dist/index.es.js +3 -3
  40. package/dist/{inputComposed-7r-2MfA7.js → inputComposed-CJQTXKNA.js} +5 -5
  41. package/dist/{mandatoryConsent-BcbxGZN6.js → mandatoryConsent-B2zqptlI.js} +8 -8
  42. package/dist/manualCaptureButton-CUq6VXLb.js +371 -0
  43. package/dist/otpInput-CGlYkmvB.js +148 -0
  44. package/dist/{page-CH1_PpOG.js → page-DiscPBzz.js} +2 -2
  45. package/dist/{passport-horizontal-hint-CWnj6Kh1.js → passport-horizontal-hint-BCtpMp1Y.js} +1 -1
  46. package/dist/{passport-vertical-hint-DzkQdaag.js → passport-vertical-hint-GaLnzqHP.js} +1 -1
  47. package/dist/permissions-CDir4ckn.js +707 -0
  48. package/dist/phone/phone.es.js +66 -64
  49. package/dist/{phoneInput-C9tQVoqL.js → phoneInput-TwyIF7PG.js} +3 -3
  50. package/dist/{phoneInputComposed-B4OTfqLt.js → phoneInputComposed-Dsf9ZDTj.js} +27 -27
  51. package/dist/{processing-DW3Cq3ot.js → processing-De8XWnFp.js} +4 -4
  52. package/dist/{richText-Bh30370T.js → richText-DHl4ibE9.js} +2 -2
  53. package/dist/selfie/selfie.es.js +6 -6
  54. package/dist/signature/signature.es.js +7 -7
  55. package/dist/{spinner-_-QbAnd8.js → spinner-DfUoOZN4.js} +3 -3
  56. package/dist/{successIcon-C-3-t1kz.js → successIcon-DyHNp_UT.js} +1 -1
  57. package/dist/themes/dark.css +1 -0
  58. package/dist/themes/light.css +1 -0
  59. package/dist/{tutorial-BRvI-ZLU.js → tutorial-Cx_ANvlr.js} +42 -41
  60. package/dist/types/extensibility.d.ts +1 -0
  61. package/dist/{typography-DgyeaZWI.js → typography-zMrvftfB.js} +2 -2
  62. package/dist/{uiConfig-BSR3Bl6G.js → uiConfig-DmIn-g8M.js} +1 -1
  63. package/dist/{useMediaQuery-DN93efdT.js → useMediaQuery-lJdQBmC2.js} +1 -1
  64. package/dist/{vendor-preact-BY8u4mdq.js → vendor-preact-BoMmvSgn.js} +3 -3
  65. package/dist/{warningIcon-BEDHbr3Z.js → warningIcon-MsE5PaSQ.js} +1 -1
  66. package/package.json +2 -2
  67. package/dist/dropdownComposed-LjhdF9Jx.js +0 -345
  68. package/dist/manualCaptureButton-6WD7GhPe.js +0 -1071
  69. package/dist/otpInput-cZblmynr.js +0 -124
@@ -679,9 +679,9 @@ export {
679
679
  w_ as Q,
680
680
  qe as T,
681
681
  U as _,
682
- A_ as a,
683
- Ie as b,
684
- N_ as c,
682
+ Ie as a,
683
+ N_ as b,
684
+ A_ as c,
685
685
  n_ as d,
686
686
  S_ as g,
687
687
  E as k,
@@ -1,4 +1,4 @@
1
- import { u as n } from "./button-qiC4m4lf.js";
1
+ import { u as n } from "./button-B2Ewo0rX.js";
2
2
  const t = ({ size: i = 32 }) => /* @__PURE__ */ n(
3
3
  "svg",
4
4
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260325-72e1e24",
3
+ "version": "0.0.0-dev-20260326-106dc21",
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-20260325-72e1e24"
139
+ "@incodetech/core": "0.0.0-dev-20260326-106dc21"
140
140
  },
141
141
  "devDependencies": {
142
142
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,345 +0,0 @@
1
- import { u as o, c as M } from "./button-qiC4m4lf.js";
2
- import { d as D, A as p, y as C } from "./vendor-preact-BY8u4mdq.js";
3
- import { C as ce } from "./chevronDown-J1Yx1Jy7.js";
4
- import { E as de } from "./errorIcon-DbJL-4MJ.js";
5
- import { S as ie } from "./successIcon-C-3-t1kz.js";
6
- const le = ({ size: s = 20 }) => /* @__PURE__ */ o(
7
- "svg",
8
- {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- width: s,
11
- height: s,
12
- viewBox: "0 0 20 20",
13
- fill: "none",
14
- class: "IncodeSearchIcon",
15
- "aria-hidden": "true",
16
- children: [
17
- /* @__PURE__ */ o("title", { children: "Search" }),
18
- /* @__PURE__ */ o(
19
- "path",
20
- {
21
- d: "M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z",
22
- stroke: "var(--icon-neutral-300)",
23
- "stroke-width": "2",
24
- "stroke-linecap": "round",
25
- "stroke-linejoin": "round"
26
- }
27
- ),
28
- /* @__PURE__ */ o(
29
- "path",
30
- {
31
- d: "M19 19L14.65 14.65",
32
- stroke: "var(--icon-neutral-300)",
33
- "stroke-width": "2",
34
- "stroke-linecap": "round",
35
- "stroke-linejoin": "round"
36
- }
37
- )
38
- ]
39
- }
40
- ), ve = ({
41
- id: s,
42
- label: u,
43
- placeholder: b = "Choose an option",
44
- value: g,
45
- options: k,
46
- onChange: Q,
47
- error: l,
48
- helper: y,
49
- showErrorIcon: U,
50
- showHelperIcon: V,
51
- suppressMessages: S = !1,
52
- disabled: f = !1,
53
- required: T,
54
- searchable: w = !1,
55
- searchPlaceholder: W = "Search...",
56
- noResultsText: Z = "No results found",
57
- name: H,
58
- tabIndex: _,
59
- onKeyDown: G,
60
- onBlur: J,
61
- renderSelectedLabel: K,
62
- siblingElement: x,
63
- enterKeyHint: pe,
64
- class: P,
65
- "data-testid": X
66
- }) => {
67
- const [n, d] = D(!1), [Y, L] = D(!1), [a, t] = D(-1), [$, O] = D(""), B = p(null), m = p(null), j = p(null), R = p([]), A = p(null), E = p(""), h = p(), v = k.find((e) => e.value === g), c = w && $ ? k.filter(
68
- (e) => e.label.toLowerCase().includes($.toLowerCase())
69
- ) : k, F = `${s}-label`, z = `${s}-listbox`, N = `${s}-helper`, q = `${s}-error`, ee = S ? "" : [y ? N : null, l ? q : null].filter(Boolean).join(" ");
70
- C(() => {
71
- if (!n) return;
72
- const e = requestAnimationFrame(() => {
73
- w && A.current && A.current.focus(), requestAnimationFrame(() => {
74
- j.current?.scrollIntoView({
75
- behavior: "smooth",
76
- block: "nearest",
77
- inline: "nearest"
78
- });
79
- });
80
- });
81
- return () => cancelAnimationFrame(e);
82
- }, [n, w]), C(() => {
83
- n || (t(-1), O(""));
84
- }, [n]), C(() => {
85
- a >= 0 && R.current[a] && R.current[a]?.scrollIntoView({
86
- block: "nearest",
87
- inline: "nearest"
88
- });
89
- }, [a]), C(() => () => {
90
- h.current && clearTimeout(h.current);
91
- }, []);
92
- const oe = () => {
93
- f || d((e) => !e);
94
- }, I = (e) => {
95
- Q(e), d(!1), t(-1), m.current?.focus();
96
- }, re = () => {
97
- L(!0);
98
- }, ne = (e) => {
99
- L(!1), B.current?.contains(e.relatedTarget) || (d(!1), J?.());
100
- }, te = (e) => {
101
- if (f) return;
102
- G?.(e);
103
- const { key: i } = e;
104
- if (i.length === 1 && /^[a-zA-Z0-9]$/.test(i)) {
105
- e.preventDefault(), h.current && clearTimeout(h.current), E.current += i.toLowerCase();
106
- const r = c.findIndex(
107
- (se) => se.label.toLowerCase().startsWith(E.current)
108
- );
109
- r !== -1 && (n || d(!0), t(r)), h.current = setTimeout(() => {
110
- E.current = "";
111
- }, 500);
112
- return;
113
- }
114
- switch (i) {
115
- case "ArrowDown":
116
- e.preventDefault(), n ? t(
117
- (r) => r < c.length - 1 ? r + 1 : r
118
- ) : (d(!0), t(0));
119
- break;
120
- case "ArrowUp":
121
- e.preventDefault(), n ? t((r) => r > 0 ? r - 1 : r) : (d(!0), t(c.length - 1));
122
- break;
123
- case "Home":
124
- e.preventDefault(), n && t(0);
125
- break;
126
- case "End":
127
- e.preventDefault(), n && t(c.length - 1);
128
- break;
129
- case "Enter":
130
- e.preventDefault(), n && a >= 0 && c[a] ? I(c[a].value) : n || d(!0);
131
- break;
132
- case " ":
133
- e.preventDefault(), n && a >= 0 && c[a] ? I(c[a].value) : n || (d(!0), t(0));
134
- break;
135
- case "Escape":
136
- e.preventDefault(), n && (d(!1), t(-1), m.current?.focus());
137
- break;
138
- case "Tab":
139
- n && (d(!1), t(-1));
140
- break;
141
- }
142
- }, ae = (e) => {
143
- const { key: i } = e;
144
- switch (i) {
145
- case "ArrowDown":
146
- e.preventDefault(), t(
147
- (r) => r < c.length - 1 ? r + 1 : r
148
- );
149
- break;
150
- case "ArrowUp":
151
- e.preventDefault(), t((r) => r > 0 ? r - 1 : r);
152
- break;
153
- case "Home":
154
- e.preventDefault(), t(0);
155
- break;
156
- case "End":
157
- e.preventDefault(), t(c.length - 1);
158
- break;
159
- case "Enter":
160
- e.preventDefault(), a >= 0 && c[a] && I(c[a].value);
161
- break;
162
- case "Escape":
163
- e.preventDefault(), d(!1), t(-1), m.current?.focus();
164
- break;
165
- case "Tab":
166
- d(!1), t(-1);
167
- break;
168
- }
169
- };
170
- return /* @__PURE__ */ o(
171
- "div",
172
- {
173
- class: M("IncodeDropdownComposed", P),
174
- ref: B,
175
- onBlur: ne,
176
- children: [
177
- H && /* @__PURE__ */ o(
178
- "input",
179
- {
180
- type: "hidden",
181
- name: H,
182
- value: g || "",
183
- disabled: f,
184
- required: T
185
- }
186
- ),
187
- u && /* @__PURE__ */ o(
188
- "label",
189
- {
190
- class: "IncodeDropdownComposedLabel",
191
- id: F,
192
- htmlFor: s,
193
- "data-testid": `${s}-label`,
194
- children: [
195
- u,
196
- T && /* @__PURE__ */ o("span", { class: "IncodeDropdownComposedRequired", children: " *" })
197
- ]
198
- }
199
- ),
200
- /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedWrapper", children: [
201
- /* @__PURE__ */ o(
202
- "div",
203
- {
204
- class: M("IncodeDropdownComposedTriggerRow", {
205
- IncodeDropdownComposedTriggerRowWithSibling: !!x
206
- }),
207
- children: [
208
- /* @__PURE__ */ o(
209
- "button",
210
- {
211
- ref: m,
212
- type: "button",
213
- id: s,
214
- class: "IncodeDropdownComposedTrigger",
215
- onClick: oe,
216
- onFocus: re,
217
- onKeyDown: te,
218
- tabIndex: f ? -1 : _ ?? 0,
219
- disabled: f,
220
- "aria-haspopup": "listbox",
221
- "aria-expanded": n ? "true" : "false",
222
- "aria-disabled": f ? "true" : void 0,
223
- "aria-labelledby": u ? F : void 0,
224
- "aria-label": u ? void 0 : b,
225
- "aria-controls": n ? z : void 0,
226
- "aria-activedescendant": n && a >= 0 ? `${s}-option-${a}` : void 0,
227
- "aria-invalid": l ? "true" : void 0,
228
- "aria-required": T ? "true" : void 0,
229
- "aria-describedby": ee || void 0,
230
- "data-error": l ? "true" : void 0,
231
- "data-focused": Y || n ? "true" : void 0,
232
- "data-testid": X,
233
- children: [
234
- /* @__PURE__ */ o(
235
- "span",
236
- {
237
- class: v ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
238
- children: v ? K ? K(v) : v.label : b
239
- }
240
- ),
241
- /* @__PURE__ */ o(
242
- "span",
243
- {
244
- class: "IncodeDropdownComposedTriggerIcon",
245
- "aria-hidden": "true",
246
- "data-open": n,
247
- children: /* @__PURE__ */ o(ce, {})
248
- }
249
- )
250
- ]
251
- }
252
- ),
253
- x && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSibling", children: x })
254
- ]
255
- }
256
- ),
257
- n && /* @__PURE__ */ o(
258
- "div",
259
- {
260
- ref: j,
261
- id: z,
262
- class: "IncodeDropdownComposedList",
263
- role: "listbox",
264
- "aria-labelledby": u ? F : void 0,
265
- "aria-label": u ? void 0 : b,
266
- "data-error": l ? "true" : void 0,
267
- children: [
268
- w && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSearchWrapper", children: /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedSearchInner", children: [
269
- /* @__PURE__ */ o(
270
- "input",
271
- {
272
- ref: A,
273
- type: "text",
274
- class: "IncodeDropdownComposedSearchInput",
275
- value: $,
276
- onInput: (e) => {
277
- O(e.target.value), t(0);
278
- },
279
- onKeyDown: ae,
280
- placeholder: W,
281
- "aria-label": W,
282
- autocomplete: "off"
283
- }
284
- ),
285
- /* @__PURE__ */ o(
286
- "span",
287
- {
288
- class: "IncodeDropdownComposedSearchIcon",
289
- "aria-hidden": "true",
290
- children: /* @__PURE__ */ o(le, { size: 20 })
291
- }
292
- )
293
- ] }) }),
294
- /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedOptionsScroll", children: c.length === 0 ? /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedNoResults", children: Z }) : c.map((e, i) => /* @__PURE__ */ o(
295
- "div",
296
- {
297
- id: `${s}-option-${i}`,
298
- role: "option",
299
- "aria-selected": g === e.value ? "true" : "false",
300
- class: "IncodeDropdownComposedOption",
301
- "data-highlighted": a === i,
302
- ref: (r) => {
303
- R.current[i] = r;
304
- },
305
- onClick: () => I(e.value),
306
- onMouseDown: (r) => r.preventDefault(),
307
- onMouseEnter: () => t(i),
308
- children: e.label
309
- },
310
- e.value
311
- )) })
312
- ]
313
- }
314
- )
315
- ] }),
316
- !S && l && /* @__PURE__ */ o(
317
- "div",
318
- {
319
- class: "IncodeDropdownComposedErrorWrapper",
320
- "data-testid": `${s}-error-wrapper`,
321
- children: [
322
- U && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ o(de, { size: 17 }) }),
323
- /* @__PURE__ */ o("p", { id: q, class: "IncodeDropdownComposedError", children: l })
324
- ]
325
- }
326
- ),
327
- !S && y && !l && /* @__PURE__ */ o(
328
- "div",
329
- {
330
- class: "IncodeDropdownComposedHelperWrapper",
331
- "data-testid": `${s}-helper-wrapper`,
332
- children: [
333
- V && /* @__PURE__ */ o("div", { class: "IncodeDropdownComposedIconWrapper", children: /* @__PURE__ */ o(ie, { size: 17 }) }),
334
- /* @__PURE__ */ o("p", { id: N, class: "IncodeDropdownComposedHelper", children: y })
335
- ]
336
- }
337
- )
338
- ]
339
- }
340
- );
341
- };
342
- export {
343
- ve as D,
344
- le as S
345
- };