@incodetech/web 0.0.0-dev-20260408-6210ce3 → 0.0.0-dev-20260408-a355630

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.
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./i18n-CcMrDzmw.js";
2
2
  import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
3
3
  import { a as o } from "./loadingIcon-DEN5B0ju.js";
4
- import { n as s } from "./formField-Dk2O1IqF.js";
4
+ import { n as s } from "./formField-BVEXt76v.js";
5
5
  import { t as c } from "./inputComposed-6ZSkf7Za.js";
6
6
  //#region src/modules/ekyc/addressAutocomplete.tsx
7
7
  var l = ({ label: l, value: u, error: d, errorParams: f, suggestions: p, readonly: m, optional: h, onChange: g, onSearch: _, onSelect: v, onBlur: y }) => {
@@ -4,7 +4,7 @@ import { c, n as l, r as u } from "./loadingIcon-DEN5B0ju.js";
4
4
  import { t as d } from "./spacer-DCljE53A.js";
5
5
  import { t as f } from "./button-D85zGTiU.js";
6
6
  import { t as p } from "./page-B61t4D13.js";
7
- import { _ as m, c as h, d as g, f as _, l as v, u as y, v as b } from "./extensibility-T2rA7GOm.js";
7
+ import { _ as m, c as h, d as g, f as _, l as v, u as y, v as b } from "./extensibility-CGYf1tlJ.js";
8
8
  import { t as x } from "./spinner-CBuVSVRP.js";
9
9
  import { a as S, d as C, r as w } from "./icons-CvPvuYCm.js";
10
10
  import { s as T } from "./tutorial-qFq58awW.js";
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekybModule-vYnH3tvt.js";
1
+ import { t as e } from "../ekybModule-BKCFm27J.js";
2
2
  export { e as EkybModule };
@@ -4,11 +4,11 @@ import { c, o as l, r as u } from "./loadingIcon-DEN5B0ju.js";
4
4
  import { t as d } from "./button-D85zGTiU.js";
5
5
  import { t as f } from "./page-B61t4D13.js";
6
6
  import { t as p } from "./spinner-CBuVSVRP.js";
7
- import { n as m, r as h, t as g } from "./formField-Dk2O1IqF.js";
7
+ import { n as m, r as h, t as g } from "./formField-BVEXt76v.js";
8
8
  import { t as _ } from "./inputComposed-6ZSkf7Za.js";
9
9
  import { t as v } from "./dropdownComposed-DbHLLS0N.js";
10
10
  import { t as y } from "./incodeModule-nXHV_p_Y.js";
11
- import { t as b } from "./addressAutocomplete-CHmV6Pu7.js";
11
+ import { t as b } from "./addressAutocomplete-BuldQv2L.js";
12
12
  import { DEV_ONLY_COUNTRIES as x, SUPPORTED_COUNTRIES as S, computeEkybDisplayErrors as C, createEkybManager as w } from "@incodetech/core/ekyb";
13
13
  //#region src/modules/ekyb/countrySelector.tsx
14
14
  function T(e) {
@@ -77,6 +77,7 @@ var k = ({ value: t, onChange: n }) => {
77
77
  return /* @__PURE__ */ s(g, {
78
78
  name: t.name,
79
79
  label: t.label,
80
+ displayLabel: t.displayLabel,
80
81
  value: n,
81
82
  error: r,
82
83
  errorParams: i,
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekybModule-BKCFm27J.js";
2
+ export { e as EkybModule };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../ekycModule-Cjxc4M99.js";
1
+ import { t as e } from "../ekycModule-BVXMAI6j.js";
2
2
  export { e as EkycModule };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekycModule-BVXMAI6j.js";
2
+ export { e as EkycModule };
@@ -4,12 +4,12 @@ import { c as s, o as c, r as l } from "./loadingIcon-DEN5B0ju.js";
4
4
  import { t as u } from "./button-D85zGTiU.js";
5
5
  import { t as d } from "./page-B61t4D13.js";
6
6
  import { t as f } from "./spinner-CBuVSVRP.js";
7
- import { n as p, r as m, t as h } from "./formField-Dk2O1IqF.js";
7
+ import { n as p, r as m, t as h } from "./formField-BVEXt76v.js";
8
8
  import { t as g } from "./phoneInputComposed-DbSTCw_p.js";
9
9
  import { t as _ } from "./dropdownComposed-DbHLLS0N.js";
10
10
  import { t as v } from "./dateInputComposed-DX7hO6l8.js";
11
11
  import { t as y } from "./incodeModule-nXHV_p_Y.js";
12
- import { t as b } from "./addressAutocomplete-CHmV6Pu7.js";
12
+ import { t as b } from "./addressAutocomplete-BuldQv2L.js";
13
13
  import { computeEkycDisplayErrors as x, createEkycManager as S } from "@incodetech/core/ekyc";
14
14
  //#region src/modules/ekyc/ekycModule.tsx
15
15
  var C = ({ config: n, onFinish: r }) => {
@@ -187,6 +187,7 @@ var C = ({ config: n, onFinish: r }) => {
187
187
  children: [t, /* @__PURE__ */ o(h, {
188
188
  name: e.name,
189
189
  label: e.label,
190
+ displayLabel: e.displayLabel,
190
191
  value: r,
191
192
  error: i,
192
193
  errorParams: z[e.name],
@@ -4,7 +4,7 @@ import { c as i, r as a } from "../loadingIcon-DEN5B0ju.js";
4
4
  import { t as o } from "../spacer-DCljE53A.js";
5
5
  import { t as s } from "../button-D85zGTiU.js";
6
6
  import { t as c } from "../page-B61t4D13.js";
7
- import "../extensibility-T2rA7GOm.js";
7
+ import "../extensibility-CGYf1tlJ.js";
8
8
  import { t as l } from "../inputComposed-6ZSkf7Za.js";
9
9
  import { t as u } from "../otpInput-DAwkcaQi.js";
10
10
  import { t as d } from "../incodeModule-nXHV_p_Y.js";
@@ -13,7 +13,7 @@ import "./processing-CD5TYh41.js";
13
13
  import { i as _, p as v, r as y, s as b, t as x, u as S } from "./icons-CvPvuYCm.js";
14
14
  import { a as C, i as w, o as T } from "./tutorial-qFq58awW.js";
15
15
  import { t as E } from "./successIcon-AHrfmJvv.js";
16
- import "./formField-Dk2O1IqF.js";
16
+ import "./formField-BVEXt76v.js";
17
17
  import "./inputComposed-6ZSkf7Za.js";
18
18
  import "./inputComposed-C2QhOo1q.js";
19
19
  import "./otpInput-DAwkcaQi.js";
@@ -4,14 +4,14 @@ import { c as n, i as r, r as i, s as a } from "./loadingIcon-DEN5B0ju.js";
4
4
  import { t as o } from "./spacer-DCljE53A.js";
5
5
  import { t as s } from "./button-D85zGTiU.js";
6
6
  import { t as c } from "./page-B61t4D13.js";
7
- import { _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E } from "./extensibility-T2rA7GOm.js";
7
+ import { _ as l, a as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E } from "./extensibility-CGYf1tlJ.js";
8
8
  import { a as D, i as O, n as k, o as A, s as j, t as M } from "./typography-PQSaYBgR.js";
9
9
  import { t as N } from "./spinner-CBuVSVRP.js";
10
10
  import { t as P } from "./processing-CD5TYh41.js";
11
11
  import { a as F, c as I, d as L, f as R, i as z, l as B, n as V, o as H, p as U, r as W, s as G, t as K, u as q } from "./icons-CvPvuYCm.js";
12
12
  import { a as J, i as Y, n as X, o as Z, r as Q, s as $, t as ee } from "./tutorial-qFq58awW.js";
13
13
  import { t as te } from "./successIcon-AHrfmJvv.js";
14
- import { r as ne, t as re } from "./formField-Dk2O1IqF.js";
14
+ import { r as ne, t as re } from "./formField-BVEXt76v.js";
15
15
  import { n as ie, t as ae } from "./inputComposed-6ZSkf7Za.js";
16
16
  import { t as oe } from "./otpInput-DAwkcaQi.js";
17
17
  import { t as se } from "./checkbox-CCxy6DN4.js";
@@ -1698,10 +1698,10 @@ var W = {
1698
1698
  CURP_VALIDATION: () => import("../curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
1699
1699
  GOVT_VALIDATION_PROVISIONING: () => import("../governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
1700
1700
  GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
1701
- EXTERNAL_VERIFICATION: () => import("../ekycModule-DFeql8lx.js").then((e) => e.EkycModule),
1702
- EKYB: () => import("../ekybModule-C0ODG0RA.js").then((e) => e.EkybModule),
1703
- DOCUMENT_CAPTURE: () => import("../documentCapture-W1BM-YSt.js").then((e) => e.DocumentCapture),
1704
- ADDRESS: () => import("../documentCapture-W1BM-YSt.js").then((e) => e.DocumentCapture),
1701
+ EXTERNAL_VERIFICATION: () => import("../ekycModule-B8z7i5gA.js").then((e) => e.EkycModule),
1702
+ EKYB: () => import("../ekybModule-DviRZ6bj.js").then((e) => e.EkybModule),
1703
+ DOCUMENT_CAPTURE: () => import("../documentCapture-CYW_KpEI.js").then((e) => e.DocumentCapture),
1704
+ ADDRESS: () => import("../documentCapture-CYW_KpEI.js").then((e) => e.DocumentCapture),
1705
1705
  COMBINED_CONSENT: () => import("../consent/consent.es.js").then((e) => e.Consent),
1706
1706
  MANDATORY_CONSENT: () => import("../mandatoryConsent-DpejBjwV.js").then((e) => e.MandatoryConsent),
1707
1707
  SIGNATURE: () => import("../signature/signature.es.js").then((e) => e.Signature),
@@ -62,36 +62,40 @@ var c = ({ status: s, submittingTitle: c, successTitle: l, failureTitle: u, onRe
62
62
  //#endregion
63
63
  //#region src/shared/errorParams.ts
64
64
  function l(e, t) {
65
- return t?.fieldName && typeof t.fieldName == "string" ? {
66
- ...t,
67
- fieldName: e(String(t.fieldName))
68
- } : t;
65
+ if (t?.fieldName && typeof t.fieldName == "string") {
66
+ let n = String(t.fieldName), r = n.includes(".") ? e(n) : n;
67
+ return {
68
+ ...t,
69
+ fieldName: r
70
+ };
71
+ }
72
+ return t;
69
73
  }
70
74
  function u(e, t, n) {
71
75
  if (t) return e(t, l(e, n));
72
76
  }
73
77
  //#endregion
74
78
  //#region src/shared/formField/formField.tsx
75
- var d = ({ name: n, label: r, value: i = "", error: a, errorParams: o, type: c = "text", placeholder: l, placeholderParams: d, required: f, readonly: p, maxLength: m, disabled: h, optional: g, onChange: _, onBlur: v }) => {
76
- let { t: y } = e(), b = y(r);
79
+ var d = ({ name: n, label: r, displayLabel: i, value: a = "", error: o, errorParams: c, type: l = "text", placeholder: d, placeholderParams: f, required: p, readonly: m, maxLength: h, disabled: g, optional: _, onChange: v, onBlur: y }) => {
80
+ let { t: b } = e(), x = i ?? b(r);
77
81
  return /* @__PURE__ */ t("div", {
78
82
  className: "IncodeFormField",
79
83
  children: /* @__PURE__ */ t(s, {
80
84
  id: n,
81
- label: g ? `${b} ${y("verification.labels.optional")}` : b,
85
+ label: _ ? `${x} ${b("verification.labels.optional")}` : x,
82
86
  name: n,
83
- type: c,
84
- value: i,
85
- placeholder: l ? y(l, d) : void 0,
86
- readOnly: p,
87
- disabled: h,
88
- maxLength: m,
89
- error: u(y, a, o),
87
+ type: l,
88
+ value: a,
89
+ placeholder: d ? b(d, f) : void 0,
90
+ readOnly: m,
91
+ disabled: g,
92
+ maxLength: h,
93
+ error: u(b, o, c),
90
94
  onInput: (e) => {
91
95
  let t = e.target;
92
- _(n, t.value);
96
+ v(n, t.value);
93
97
  },
94
- onBlur: v ? () => v(n) : void 0,
98
+ onBlur: y ? () => y(n) : void 0,
95
99
  "data-testid": `form-field-${n}`
96
100
  })
97
101
  });
package/dist/id/id.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as e, o as t, v as n } from "../vendor-preact-D6SntenC.js";
2
2
  import { c as r, r as i } from "../loadingIcon-DEN5B0ju.js";
3
- import { a, i as o, n as s, o as c, r as l, t as u } from "../extensibility-T2rA7GOm.js";
3
+ import { a, i as o, n as s, o as c, r as l, t as u } from "../extensibility-CGYf1tlJ.js";
4
4
  import { t as d } from "../processing-CD5TYh41.js";
5
5
  import { r as f } from "../tutorial-qFq58awW.js";
6
6
  import { t as p } from "../incodeModule-nXHV_p_Y.js";
@@ -306,6 +306,7 @@ export declare const FormField: FC<FormFieldProps>;
306
306
  declare type FormFieldProps = {
307
307
  name: string;
308
308
  label: string;
309
+ displayLabel?: string;
309
310
  value?: string;
310
311
  error?: string;
311
312
  errorParams?: Record<string, string | number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260408-6210ce3",
3
+ "version": "0.0.0-dev-20260408-a355630",
4
4
  "type": "module",
5
5
  "main": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -148,7 +148,7 @@
148
148
  "qrcode": "^1.5.4",
149
149
  "signature_pad": "^5.1.3",
150
150
  "tailwindcss": "^4.1.17",
151
- "@incodetech/core": "0.0.0-dev-20260408-6210ce3"
151
+ "@incodetech/core": "0.0.0-dev-20260408-a355630"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@microsoft/api-extractor": "^7.53.3",
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekybModule-vYnH3tvt.js";
2
- export { e as EkybModule };
@@ -1,2 +0,0 @@
1
- import { t as e } from "./ekycModule-Cjxc4M99.js";
2
- export { e as EkycModule };