@incodetech/web 0.0.0-dev-20260422-96fafd7 → 0.0.0-dev-20260422-0e68af3
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/{addressAutocomplete-DgObOJ6o.js → addressAutocomplete-BCTe9jwj.js} +4 -4
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/antifraud/antifraud.es.js +2 -2
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/{bottomSheet-D7Bcy6_9.js → bottomSheet-CGGwLnNk.js} +1 -1
- package/dist/consent/consent.es.js +5 -5
- package/dist/cross-document-data-match/cross-document-data-match.es.js +2 -2
- package/dist/curp-validation/curp-validation.es.js +7 -7
- package/dist/{customFields-DVVoO-1L.js → customFields-b8kG_fbg.js} +5 -5
- package/dist/dateInputComposed-Cl0jXQeM.js +1 -0
- package/dist/{documentCapture-DNi_TybD.js → documentCapture-BU03c8_o.js} +6 -6
- package/dist/dropdownComposed-CqGD8hIq.js +1 -0
- package/dist/{dropdownComposed-D33V63q7.js → dropdownComposed-DU_6BWvm.js} +79 -74
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DV8eZFTA.js → ekybModule-CzoycvEv.js} +53 -47
- package/dist/ekybModule-DZaBZRFw.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-DjNlvez8.js +2 -0
- package/dist/{ekycModule-Dyvfm_Jh.js → ekycModule-Gc2iyiED.js} +89 -84
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-BY_fGpGt.js → electronic-signature-BKwtUgEE.js} +4 -4
- package/dist/email/email.es.js +5 -5
- package/dist/{extensibility-65EUn2O_.js → extensibility-DB2FMvgl.js} +25 -25
- package/dist/extensibility.es.js +14 -14
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DebacUAf.js +2 -0
- package/dist/{faceMatch-BJCmMX5x.js → faceMatch-h23LiePK.js} +4 -4
- package/dist/flow/flow.es.js +6 -6
- package/dist/{formField-CXgBxbyE.js → formField-ClatQUGJ.js} +1 -1
- package/dist/geolocation/geolocation.es.js +4 -4
- package/dist/governmentValidation/governmentValidation.es.js +4 -4
- package/dist/{homeScreen-DUHiJ4GS.js → homeScreen-Bjhy5dd2.js} +26 -18
- package/dist/{i18n-ntrVdqVv.js → i18n-D6pCC7RL.js} +1 -1
- package/dist/id/id.es.js +10 -10
- package/dist/identity-reuse/identity-reuse.es.js +3 -3
- package/dist/{incodeComponent-pGWsrcca.js → incodeComponent-BWl9Ashv.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{mandatoryConsent-BrkTmUBW.js → mandatoryConsent-CDozBEhf.js} +5 -5
- package/dist/{modal-Cqqyt9fy.js → modal-Bf_qRThy.js} +1 -1
- package/dist/optionAccessibleLabel-BReW7dz0.js +7 -0
- package/dist/{otpInput-qhbE2Zg-.js → otpInput-DxAGjXgh.js} +1 -1
- package/dist/phone/phone.es.js +5 -5
- package/dist/{phoneInputComposed-DpKgzd72.js → phoneInputComposed-DCDOTz3f.js} +3 -2
- package/dist/{processing-CjYwR8Kd.js → processing-xR2O8tqC.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{redirectToMobile-DmpYpZzP.js → redirectToMobile-DxQlNvpk.js} +5 -5
- package/dist/{richText-BNC8z_ah.js → richText-DPdexfgN.js} +1 -1
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/{setup-I7T65zl7.js → setup-ChZeqzsD.js} +1 -1
- package/dist/signature/signature.es.js +4 -4
- package/dist/{transitionSpinner-tJrx3vrs.js → transitionSpinner-sh3UfuCy.js} +1 -1
- package/dist/{tutorial-DcOKYchw.js → tutorial-BOtBSUmR.js} +7 -7
- package/dist/types/extensibility.d.ts +1 -0
- package/dist/{useModuleLoader-DmFt81vp.js → useModuleLoader-z5MVR8Ii.js} +10 -10
- package/dist/{verificationResult-D7grOTth.js → verificationResult-BHMdAEeF.js} +1 -1
- package/dist/watchlist/watchlist.es.js +4 -4
- package/dist/workflow/workflow.es.js +6 -6
- package/package.json +2 -2
- package/dist/dateInputComposed-CUH00OCL.js +0 -1
- package/dist/dropdownComposed-PPsdKIj2.js +0 -1
- package/dist/ekybModule-DLvvDnRl.js +0 -2
- package/dist/ekycModule-CPcoffMp.js +0 -2
- package/dist/faceMatch-BnEBg97b.js +0 -2
- /package/dist/{aligndevicelottie-BhvH4U01.js → aligndevicelottie-DUyHV4eP.js} +0 -0
- /package/dist/{back-horizontal-hint-BEQsJQaS.js → back-horizontal-hint-ZM3I2Su5.js} +0 -0
- /package/dist/{back-tutorial-C4HG-Te-.js → back-tutorial-DhUXausb.js} +0 -0
- /package/dist/{back-vertical-hint-CSLZhIcN.js → back-vertical-hint-BoFBMTQl.js} +0 -0
- /package/dist/{backdevicelottie-D6IX_UYC.js → backdevicelottie-2h0aSor1.js} +0 -0
- /package/dist/{blurdevicelottie-BEU1SUJQ.js → blurdevicelottie-DZ0ZYTB5.js} +0 -0
- /package/dist/{browser-ponyfill-DRrmY6DO.js → browser-ponyfill-Dqca0y49.js} +0 -0
- /package/dist/{dateInputComposed-CvsKvXv5.js → dateInputComposed-CWYfz2YB.js} +0 -0
- /package/dist/{defineProperty-DB5OmvER.js → defineProperty-xczUyn-m.js} +0 -0
- /package/dist/{flip-animation-CRXEefAE.js → flip-animation-D88PnoMb.js} +0 -0
- /package/dist/{front-horizontal-hint-D0Lp8Tc3.js → front-horizontal-hint-BA7UvUjV.js} +0 -0
- /package/dist/{front-vertical-hint-DJQMKe8l.js → front-vertical-hint-RvpOhnkZ.js} +0 -0
- /package/dist/{frontdevicelottie-CL7-XewR.js → frontdevicelottie-J_Zc1ljM.js} +0 -0
- /package/dist/{glaredevicelottie-BDSlWlxa.js → glaredevicelottie-Didb-aCx.js} +0 -0
- /package/dist/{id-laser-h-CDewGAXj.js → id-laser-h-BCzdFxdH.js} +0 -0
- /package/dist/{id-laser-v-B-1IpVK0.js → id-laser-v-CJRj1dvt.js} +0 -0
- /package/dist/{id-tutorial-BOXQEtNg.js → id-tutorial-BhI3Igyz.js} +0 -0
- /package/dist/{incodeModule-BH9gV7jI.js → incodeModule-DcwjDRyJ.js} +0 -0
- /package/dist/{modal.hooks-B9B0KVgR.js → modal.hooks-CBKrvoyb.js} +0 -0
- /package/dist/{numberedStep-CSQrc-lB.js → numberedStep-PCuBJ6Se.js} +0 -0
- /package/dist/{passport-horizontal-hint-jl1fWxGQ.js → passport-horizontal-hint-W3GW8sLP.js} +0 -0
- /package/dist/{passport-tutorial-CEKyiZFm.js → passport-tutorial-DdIJCsab.js} +0 -0
- /package/dist/{passport-vertical-hint-BjR1TP5l.js → passport-vertical-hint-CrYbjg-J.js} +0 -0
- /package/dist/{phoneInput-C6mELMZ6.js → phoneInput-BAp0yrwm.js} +0 -0
- /package/dist/{radioButtonComposed-Db8-Oprl.js → radioButtonComposed-DiEo4Uj1.js} +0 -0
- /package/dist/{selfieTutorial-CZV5edrl.js → selfieTutorial-DewP31sm.js} +0 -0
- /package/dist/{statusPage-BlENJN0V.js → statusPage-DaLOUtil.js} +0 -0
- /package/dist/{tabs-DnpffRKI.js → tabs-BMnWocEX.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, h as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { r as o } from "./incodeComponent-
|
|
3
|
+
import { r as o } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as s } from "./inputComposed-BXGBX7oR.js";
|
|
5
|
-
import { n as c } from "./formField-
|
|
6
|
-
import { t as l } from "./bottomSheet-
|
|
5
|
+
import { n as c } from "./formField-ClatQUGJ.js";
|
|
6
|
+
import { t as l } from "./bottomSheet-CGGwLnNk.js";
|
|
7
7
|
//#region src/modules/ekyc/addressAutocomplete.tsx
|
|
8
8
|
var u = ({ label: u, value: d, error: f, errorParams: p, suggestions: m, readonly: h, optional: g, onChange: _, onSearch: v, onSelect: y, onBlur: b }) => {
|
|
9
9
|
let { t: x } = e(), [S, C] = i(!1), [w, T] = i(!1), [E, D] = i(""), [O, k] = i(-1), [A, j] = i(-1), M = r(null), N = "ekyc-address-listbox", P = "ekyc-address-mobile-listbox", F = "ekyc-address-modal-title", I = o(), L = x(u), R = g ? `${L} (${x("common.optional")})` : L;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { n as t } from "../electronic-signature-
|
|
3
|
-
import { t as n } from "../incodeModule-
|
|
2
|
+
import { n as t } from "../electronic-signature-BKwtUgEE.js";
|
|
3
|
+
import { t as n } from "../incodeModule-DcwjDRyJ.js";
|
|
4
4
|
//#region src/modules/ae-signature/ae-signature.tsx
|
|
5
5
|
var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
|
|
6
6
|
config: n ? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { o as n, t as r } from "../incodeComponent-
|
|
2
|
+
import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
|
|
3
3
|
import { t as i } from "../spinner-DyRQfsz_.js";
|
|
4
|
-
import { t as a } from "../incodeModule-
|
|
4
|
+
import { t as a } from "../incodeModule-DcwjDRyJ.js";
|
|
5
5
|
import { createAntifraudManager as o } from "@incodetech/core/antifraud";
|
|
6
6
|
//#region src/modules/antifraud/antifraud.tsx
|
|
7
7
|
var s = ({ onFinish: r }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as e } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { o as t, t as n } from "../incodeComponent-
|
|
3
|
-
import { n as r, r as i, t as a } from "../tutorial-
|
|
4
|
-
import { t as o } from "../incodeModule-
|
|
2
|
+
import { o as t, t as n } from "../incodeComponent-BWl9Ashv.js";
|
|
3
|
+
import { n as r, r as i, t as a } from "../tutorial-BOtBSUmR.js";
|
|
4
|
+
import { t as o } from "../incodeModule-DcwjDRyJ.js";
|
|
5
5
|
import { createAuthenticationManager as s } from "@incodetech/core/authentication";
|
|
6
6
|
//#region src/modules/authentication/authentication.tsx
|
|
7
7
|
var c = ({ config: n, authHint: o, manager: c, onFinish: l, onError: u }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as e, l as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
2
|
-
import { i as r, n as i, o as a, r as o, s } from "./modal.hooks-
|
|
2
|
+
import { i as r, n as i, o as a, r as o, s } from "./modal.hooks-CBKrvoyb.js";
|
|
3
3
|
//#region src/shared/bottomSheet/bottomSheet.tsx
|
|
4
4
|
var c = ({ isOpen: c = !1, onClose: l, labelledById: u, children: d }) => {
|
|
5
5
|
let f = t(null), p = t(null), m = e(() => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-D6pCC7RL.js";
|
|
2
2
|
import { v as t } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as n, t as r } from "../incodeComponent-
|
|
3
|
+
import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as i } from "../page-D5Mt-0zn.js";
|
|
5
|
-
import { t as a } from "../transitionSpinner-
|
|
5
|
+
import { t as a } from "../transitionSpinner-sh3UfuCy.js";
|
|
6
6
|
import { t as o } from "../button-4-ToV5B_.js";
|
|
7
7
|
import { t as s } from "../checkbox-CUOVvO_K.js";
|
|
8
|
-
import { t as c } from "../incodeModule-
|
|
9
|
-
import { t as l } from "../richText-
|
|
8
|
+
import { t as c } from "../incodeModule-DcwjDRyJ.js";
|
|
9
|
+
import { t as l } from "../richText-DPdexfgN.js";
|
|
10
10
|
import { createConsentManager as u } from "@incodetech/core/consent";
|
|
11
11
|
//#region src/modules/consent/consent.tsx
|
|
12
12
|
var d = ({ config: r, manager: c, onFinish: d, onError: f }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
|
|
2
|
-
import { o as n, t as r } from "../incodeComponent-
|
|
2
|
+
import { o as n, t as r } from "../incodeComponent-BWl9Ashv.js";
|
|
3
3
|
import { t as i } from "../spinner-DyRQfsz_.js";
|
|
4
|
-
import { t as a } from "../incodeModule-
|
|
4
|
+
import { t as a } from "../incodeModule-DcwjDRyJ.js";
|
|
5
5
|
import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";
|
|
6
6
|
//#region src/modules/cross-document-data-match/cross-document-data-match.tsx
|
|
7
7
|
var s = ({ onFinish: r }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-D6pCC7RL.js";
|
|
2
2
|
import { S as t, v as n } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as r, t as i } from "../incodeComponent-
|
|
3
|
+
import { o as r, t as i } from "../incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as a } from "../spacer-DCljE53A.js";
|
|
5
5
|
import { t as o } from "../page-D5Mt-0zn.js";
|
|
6
6
|
import { t as s } from "../spinner-DyRQfsz_.js";
|
|
@@ -9,11 +9,11 @@ import { t as c } from "../button-4-ToV5B_.js";
|
|
|
9
9
|
import { h as l } from "../icons-GsJu_yZn.js";
|
|
10
10
|
import { t as u } from "../successIcon-C4GI_9SU.js";
|
|
11
11
|
import { t as d } from "../inputComposed-BXGBX7oR.js";
|
|
12
|
-
import { t as f } from "../dropdownComposed-
|
|
13
|
-
import "../dropdownComposed-
|
|
14
|
-
import { t as p } from "../dateInputComposed-
|
|
15
|
-
import "../dateInputComposed-
|
|
16
|
-
import { t as m } from "../incodeModule-
|
|
12
|
+
import { t as f } from "../dropdownComposed-DU_6BWvm.js";
|
|
13
|
+
import "../dropdownComposed-CqGD8hIq.js";
|
|
14
|
+
import { t as p } from "../dateInputComposed-CWYfz2YB.js";
|
|
15
|
+
import "../dateInputComposed-Cl0jXQeM.js";
|
|
16
|
+
import { t as m } from "../incodeModule-DcwjDRyJ.js";
|
|
17
17
|
import { createCurpValidationManager as h, mexicanStates as g } from "@incodetech/core/curp-validation";
|
|
18
18
|
//#region src/modules/curp-validation/curpInput.tsx
|
|
19
19
|
var _ = ({ curp: t, isValid: r, onCurpChange: i, onVerify: o, onSwitchToGenerate: s, disabled: l = !1, placeholder: u, continueLabel: f, dontHaveLabel: p }) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, l as n, p as r, v as i } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as a, t as o } from "./incodeComponent-
|
|
3
|
+
import { o as a, t as o } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as s } from "./spacer-DCljE53A.js";
|
|
5
5
|
import { t as c } from "./page-D5Mt-0zn.js";
|
|
6
6
|
import { t as l } from "./loadingIcon-wTrHZMGC.js";
|
|
@@ -8,9 +8,9 @@ import { t as u } from "./button-4-ToV5B_.js";
|
|
|
8
8
|
import { t as d } from "./successIcon-C4GI_9SU.js";
|
|
9
9
|
import { t as f } from "./inputComposed-BXGBX7oR.js";
|
|
10
10
|
import { t as p } from "./checkbox-CUOVvO_K.js";
|
|
11
|
-
import { t as m } from "./dateInputComposed-
|
|
12
|
-
import { t as h } from "./incodeModule-
|
|
13
|
-
import { t as g } from "./statusPage-
|
|
11
|
+
import { t as m } from "./dateInputComposed-CWYfz2YB.js";
|
|
12
|
+
import { t as h } from "./incodeModule-DcwjDRyJ.js";
|
|
13
|
+
import { t as g } from "./statusPage-DaLOUtil.js";
|
|
14
14
|
import { createCustomFieldsManager as _ } from "@incodetech/core/custom-fields";
|
|
15
15
|
//#region src/modules/custom-fields/customFields.tsx
|
|
16
16
|
var v = {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dateInputComposed-CWYfz2YB.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { S as t, _ as n, h as r, l as i, m as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as c, r as l, t as u } from "./incodeComponent-
|
|
3
|
+
import { o as c, r as l, t as u } from "./incodeComponent-BWl9Ashv.js";
|
|
4
4
|
import { t as d } from "./spacer-DCljE53A.js";
|
|
5
5
|
import { t as f } from "./page-D5Mt-0zn.js";
|
|
6
|
-
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-
|
|
6
|
+
import { _ as p, c as m, d as h, f as g, l as _, u as v, v as y } from "./extensibility-DB2FMvgl.js";
|
|
7
7
|
import { n as b } from "./loadingIcon-wTrHZMGC.js";
|
|
8
8
|
import { t as x } from "./spinner-DyRQfsz_.js";
|
|
9
9
|
import { t as S } from "./button-4-ToV5B_.js";
|
|
10
10
|
import { a as C, f as w, r as T } from "./icons-GsJu_yZn.js";
|
|
11
|
-
import { o as E } from "./tutorial-
|
|
11
|
+
import { o as E } from "./tutorial-BOtBSUmR.js";
|
|
12
12
|
import { t as D } from "./successIcon-C4GI_9SU.js";
|
|
13
|
-
import { t as O } from "./bottomSheet-
|
|
14
|
-
import { t as k } from "./incodeModule-
|
|
13
|
+
import { t as O } from "./bottomSheet-CGGwLnNk.js";
|
|
14
|
+
import { t as k } from "./incodeModule-DcwjDRyJ.js";
|
|
15
15
|
import { createDocumentCaptureManager as A } from "@incodetech/core/document-capture";
|
|
16
16
|
//#region src/modules/document-capture/documentCameraView.tsx
|
|
17
17
|
function j(e) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./dropdownComposed-DU_6BWvm.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { _ as e, l as t, p as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
2
2
|
import { n as i } from "./loadingIcon-wTrHZMGC.js";
|
|
3
|
-
import { h as
|
|
4
|
-
import { t as
|
|
3
|
+
import { h as ee, l as a, n as o } from "./icons-GsJu_yZn.js";
|
|
4
|
+
import { t as s } from "./successIcon-C4GI_9SU.js";
|
|
5
5
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
6
|
-
var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, options: f, onChange: p, error: m, helper: h, showErrorIcon:
|
|
7
|
-
let [M, N] = n(!1), [
|
|
6
|
+
var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, options: f, onChange: p, error: m, helper: h, showErrorIcon: g, showHelperIcon: _, suppressMessages: v = !1, disabled: y = !1, required: b, searchable: x = !1, searchPlaceholder: S = "Search...", noResultsText: C = "No results found", name: w, tabIndex: T, onKeyDown: E, onBlur: te, renderSelectedLabel: D, siblingElement: O, enterKeyHint: ne, class: k, "aria-label": A, "data-testid": j }) => {
|
|
7
|
+
let [M, N] = n(!1), [P, F] = n(!1), [I, L] = n(-1), [R, z] = n(""), B = t(null), V = t(null), H = t(null), U = t([]), W = t(null), G = t(""), K = t(), q = f.find((e) => e.value === d), re = q ? D ? D(q) : q.label : u, J = x && R ? f.filter((e) => e.label.toLowerCase().includes(R.toLowerCase())) : f, Y = `${c}-label`, X = `${c}-listbox`, Z = `${c}-helper`, Q = `${c}-error`, ie = v ? "" : [h ? Z : null, m ? Q : null].filter(Boolean).join(" ");
|
|
8
8
|
e(() => {
|
|
9
9
|
if (!M) return;
|
|
10
10
|
let e = requestAnimationFrame(() => {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
x && W.current && W.current.focus(), requestAnimationFrame(() => {
|
|
12
|
+
H.current?.scrollIntoView({
|
|
13
13
|
behavior: "smooth",
|
|
14
14
|
block: "nearest",
|
|
15
15
|
inline: "nearest"
|
|
@@ -17,60 +17,60 @@ var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, optio
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
return () => cancelAnimationFrame(e);
|
|
20
|
-
}, [M,
|
|
21
|
-
M || (
|
|
20
|
+
}, [M, x]), e(() => {
|
|
21
|
+
M || (L(-1), z(""));
|
|
22
22
|
}, [M]), e(() => {
|
|
23
|
-
|
|
23
|
+
I >= 0 && U.current[I] && U.current[I]?.scrollIntoView({
|
|
24
24
|
block: "nearest",
|
|
25
25
|
inline: "nearest"
|
|
26
26
|
});
|
|
27
|
-
}, [
|
|
28
|
-
|
|
27
|
+
}, [I]), e(() => () => {
|
|
28
|
+
K.current && clearTimeout(K.current);
|
|
29
29
|
}, []);
|
|
30
30
|
let ae = () => {
|
|
31
|
-
|
|
31
|
+
y || N((e) => !e);
|
|
32
32
|
}, $ = (e) => {
|
|
33
|
-
p(e), N(!1),
|
|
33
|
+
p(e), N(!1), L(-1), V.current?.focus();
|
|
34
34
|
}, oe = () => {
|
|
35
|
-
|
|
35
|
+
F(!0);
|
|
36
36
|
}, se = (e) => {
|
|
37
|
-
|
|
37
|
+
F(!1), B.current?.contains(e.relatedTarget) || (N(!1), te?.());
|
|
38
38
|
}, ce = (e) => {
|
|
39
|
-
if (
|
|
40
|
-
|
|
39
|
+
if (y) return;
|
|
40
|
+
E?.(e);
|
|
41
41
|
let { key: t } = e;
|
|
42
42
|
if (t.length === 1 && /^[a-zA-Z0-9]$/.test(t)) {
|
|
43
|
-
e.preventDefault(),
|
|
44
|
-
let n = J.findIndex((e) => e.label.toLowerCase().startsWith(
|
|
45
|
-
n !== -1 && (M || N(!0),
|
|
46
|
-
|
|
43
|
+
e.preventDefault(), K.current && clearTimeout(K.current), G.current += t.toLowerCase();
|
|
44
|
+
let n = J.findIndex((e) => e.label.toLowerCase().startsWith(G.current));
|
|
45
|
+
n !== -1 && (M || N(!0), L(n)), K.current = setTimeout(() => {
|
|
46
|
+
G.current = "";
|
|
47
47
|
}, 500);
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
switch (t) {
|
|
51
51
|
case "ArrowDown":
|
|
52
|
-
e.preventDefault(), M ?
|
|
52
|
+
e.preventDefault(), M ? L((e) => e < J.length - 1 ? e + 1 : e) : (N(!0), L(0));
|
|
53
53
|
break;
|
|
54
54
|
case "ArrowUp":
|
|
55
|
-
e.preventDefault(), M ?
|
|
55
|
+
e.preventDefault(), M ? L((e) => e > 0 ? e - 1 : e) : (N(!0), L(J.length - 1));
|
|
56
56
|
break;
|
|
57
57
|
case "Home":
|
|
58
|
-
e.preventDefault(), M &&
|
|
58
|
+
e.preventDefault(), M && L(0);
|
|
59
59
|
break;
|
|
60
60
|
case "End":
|
|
61
|
-
e.preventDefault(), M &&
|
|
61
|
+
e.preventDefault(), M && L(J.length - 1);
|
|
62
62
|
break;
|
|
63
63
|
case "Enter":
|
|
64
|
-
e.preventDefault(), M &&
|
|
64
|
+
e.preventDefault(), M && I >= 0 && J[I] ? $(J[I].value) : M || N(!0);
|
|
65
65
|
break;
|
|
66
66
|
case " ":
|
|
67
|
-
e.preventDefault(), M &&
|
|
67
|
+
e.preventDefault(), M && I >= 0 && J[I] ? $(J[I].value) : M || (N(!0), L(0));
|
|
68
68
|
break;
|
|
69
69
|
case "Escape":
|
|
70
|
-
e.preventDefault(), M && (N(!1),
|
|
70
|
+
e.preventDefault(), M && (N(!1), L(-1), V.current?.focus());
|
|
71
71
|
break;
|
|
72
72
|
case "Tab":
|
|
73
|
-
M && (N(!1),
|
|
73
|
+
M && (N(!1), L(-1));
|
|
74
74
|
break;
|
|
75
75
|
default: break;
|
|
76
76
|
}
|
|
@@ -78,47 +78,47 @@ var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, optio
|
|
|
78
78
|
let { key: t } = e;
|
|
79
79
|
switch (t) {
|
|
80
80
|
case "ArrowDown":
|
|
81
|
-
e.preventDefault(),
|
|
81
|
+
e.preventDefault(), L((e) => e < J.length - 1 ? e + 1 : e);
|
|
82
82
|
break;
|
|
83
83
|
case "ArrowUp":
|
|
84
|
-
e.preventDefault(),
|
|
84
|
+
e.preventDefault(), L((e) => e > 0 ? e - 1 : e);
|
|
85
85
|
break;
|
|
86
86
|
case "Home":
|
|
87
|
-
e.preventDefault(),
|
|
87
|
+
e.preventDefault(), L(0);
|
|
88
88
|
break;
|
|
89
89
|
case "End":
|
|
90
|
-
e.preventDefault(),
|
|
90
|
+
e.preventDefault(), L(J.length - 1);
|
|
91
91
|
break;
|
|
92
92
|
case "Enter":
|
|
93
|
-
e.preventDefault(),
|
|
93
|
+
e.preventDefault(), I >= 0 && J[I] && $(J[I].value);
|
|
94
94
|
break;
|
|
95
95
|
case "Escape":
|
|
96
|
-
e.preventDefault(), N(!1),
|
|
96
|
+
e.preventDefault(), N(!1), L(-1), V.current?.focus();
|
|
97
97
|
break;
|
|
98
98
|
case "Tab":
|
|
99
|
-
N(!1),
|
|
99
|
+
N(!1), L(-1);
|
|
100
100
|
break;
|
|
101
101
|
default: break;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
return /* @__PURE__ */ r("div", {
|
|
105
105
|
class: i("IncodeDropdownComposed", k),
|
|
106
|
-
ref:
|
|
106
|
+
ref: B,
|
|
107
107
|
onBlur: se,
|
|
108
108
|
children: [
|
|
109
|
-
|
|
109
|
+
w && /* @__PURE__ */ r("input", {
|
|
110
110
|
type: "hidden",
|
|
111
|
-
name:
|
|
111
|
+
name: w,
|
|
112
112
|
value: d || "",
|
|
113
|
-
disabled:
|
|
114
|
-
required:
|
|
113
|
+
disabled: y,
|
|
114
|
+
required: b
|
|
115
115
|
}),
|
|
116
116
|
l && /* @__PURE__ */ r("label", {
|
|
117
117
|
class: "IncodeDropdownComposedLabel",
|
|
118
118
|
id: Y,
|
|
119
119
|
htmlFor: c,
|
|
120
120
|
"data-testid": `${c}-label`,
|
|
121
|
-
children: [l,
|
|
121
|
+
children: [l, b && /* @__PURE__ */ r("span", {
|
|
122
122
|
class: "IncodeDropdownComposedRequired",
|
|
123
123
|
children: " *"
|
|
124
124
|
})]
|
|
@@ -128,70 +128,71 @@ var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, optio
|
|
|
128
128
|
children: [/* @__PURE__ */ r("div", {
|
|
129
129
|
class: i("IncodeDropdownComposedTriggerRow", { IncodeDropdownComposedTriggerRowWithSibling: !!O }),
|
|
130
130
|
children: [/* @__PURE__ */ r("button", {
|
|
131
|
-
ref:
|
|
131
|
+
ref: V,
|
|
132
132
|
type: "button",
|
|
133
133
|
id: c,
|
|
134
134
|
class: "IncodeDropdownComposedTrigger",
|
|
135
135
|
onClick: ae,
|
|
136
136
|
onFocus: oe,
|
|
137
137
|
onKeyDown: ce,
|
|
138
|
-
tabIndex:
|
|
139
|
-
disabled:
|
|
138
|
+
tabIndex: y ? -1 : T ?? 0,
|
|
139
|
+
disabled: y,
|
|
140
140
|
"aria-haspopup": "listbox",
|
|
141
141
|
"aria-expanded": M ? "true" : "false",
|
|
142
|
-
"aria-disabled":
|
|
142
|
+
"aria-disabled": y ? "true" : void 0,
|
|
143
143
|
"aria-labelledby": l ? Y : void 0,
|
|
144
144
|
"aria-label": l ? void 0 : A,
|
|
145
145
|
"aria-controls": M ? X : void 0,
|
|
146
|
-
"aria-activedescendant": M &&
|
|
146
|
+
"aria-activedescendant": M && I >= 0 ? `${c}-option-${I}` : void 0,
|
|
147
147
|
"aria-invalid": m ? "true" : void 0,
|
|
148
|
-
"aria-required":
|
|
148
|
+
"aria-required": b ? "true" : void 0,
|
|
149
149
|
"aria-describedby": ie || void 0,
|
|
150
150
|
"data-error": m ? "true" : void 0,
|
|
151
|
-
"data-focused":
|
|
151
|
+
"data-focused": P || M ? "true" : void 0,
|
|
152
152
|
"data-testid": j,
|
|
153
153
|
children: [/* @__PURE__ */ r("span", {
|
|
154
|
-
class:
|
|
155
|
-
|
|
154
|
+
class: q ? "IncodeDropdownComposedTriggerText" : "IncodeDropdownComposedTriggerPlaceholder",
|
|
155
|
+
"aria-hidden": !l && A ? "true" : void 0,
|
|
156
|
+
children: re
|
|
156
157
|
}), /* @__PURE__ */ r("span", {
|
|
157
158
|
class: "IncodeDropdownComposedTriggerIcon",
|
|
158
159
|
"aria-hidden": "true",
|
|
159
160
|
"data-open": M,
|
|
160
|
-
children: /* @__PURE__ */ r(
|
|
161
|
+
children: /* @__PURE__ */ r(a, {})
|
|
161
162
|
})]
|
|
162
163
|
}), O && /* @__PURE__ */ r("div", {
|
|
163
164
|
class: "IncodeDropdownComposedSibling",
|
|
164
165
|
children: O
|
|
165
166
|
})]
|
|
166
167
|
}), M && /* @__PURE__ */ r("div", {
|
|
167
|
-
ref:
|
|
168
|
+
ref: H,
|
|
168
169
|
class: "IncodeDropdownComposedList",
|
|
169
170
|
"data-error": m ? "true" : void 0,
|
|
170
|
-
children: [
|
|
171
|
+
children: [x && /* @__PURE__ */ r("div", {
|
|
171
172
|
class: "IncodeDropdownComposedSearchWrapper",
|
|
172
173
|
children: /* @__PURE__ */ r("div", {
|
|
173
174
|
class: "IncodeDropdownComposedSearchInner",
|
|
174
175
|
children: [/* @__PURE__ */ r("input", {
|
|
175
|
-
ref:
|
|
176
|
+
ref: W,
|
|
176
177
|
type: "text",
|
|
177
178
|
class: "IncodeDropdownComposedSearchInput",
|
|
178
|
-
value:
|
|
179
|
+
value: R,
|
|
179
180
|
onInput: (e) => {
|
|
180
|
-
|
|
181
|
+
z(e.target.value), L(0);
|
|
181
182
|
},
|
|
182
183
|
onKeyDown: le,
|
|
183
|
-
placeholder:
|
|
184
|
+
placeholder: S,
|
|
184
185
|
role: "combobox",
|
|
185
186
|
"aria-autocomplete": "list",
|
|
186
187
|
"aria-expanded": "true",
|
|
187
188
|
"aria-controls": X,
|
|
188
|
-
"aria-activedescendant":
|
|
189
|
-
"aria-label":
|
|
189
|
+
"aria-activedescendant": I >= 0 ? `${c}-option-${I}` : void 0,
|
|
190
|
+
"aria-label": S,
|
|
190
191
|
autocomplete: "off"
|
|
191
192
|
}), /* @__PURE__ */ r("span", {
|
|
192
193
|
class: "IncodeDropdownComposedSearchIcon",
|
|
193
194
|
"aria-hidden": "true",
|
|
194
|
-
children: /* @__PURE__ */ r(
|
|
195
|
+
children: /* @__PURE__ */ r(o, { size: 20 })
|
|
195
196
|
})]
|
|
196
197
|
})
|
|
197
198
|
}), /* @__PURE__ */ r("div", {
|
|
@@ -202,49 +203,53 @@ var c = ({ id: c, label: l, placeholder: u = "Choose an option", value: d, optio
|
|
|
202
203
|
class: "IncodeDropdownComposedOptionsScroll",
|
|
203
204
|
children: J.length === 0 ? /* @__PURE__ */ r("div", {
|
|
204
205
|
class: "IncodeDropdownComposedNoResults",
|
|
205
|
-
children:
|
|
206
|
+
children: C
|
|
206
207
|
}) : J.map((e, t) => /* @__PURE__ */ r("div", {
|
|
207
208
|
id: `${c}-option-${t}`,
|
|
208
209
|
role: "option",
|
|
210
|
+
"aria-label": e.ariaLabel,
|
|
209
211
|
"aria-selected": d === e.value ? "true" : "false",
|
|
210
212
|
class: "IncodeDropdownComposedOption",
|
|
211
|
-
"data-highlighted":
|
|
213
|
+
"data-highlighted": I === t,
|
|
212
214
|
ref: (e) => {
|
|
213
|
-
|
|
215
|
+
U.current[t] = e;
|
|
214
216
|
},
|
|
215
217
|
onClick: () => $(e.value),
|
|
216
218
|
onMouseDown: (e) => e.preventDefault(),
|
|
217
|
-
onMouseEnter: () =>
|
|
218
|
-
children: e.
|
|
219
|
+
onMouseEnter: () => L(t),
|
|
220
|
+
children: e.ariaLabel ? /* @__PURE__ */ r("span", {
|
|
221
|
+
"aria-hidden": "true",
|
|
222
|
+
children: e.label
|
|
223
|
+
}) : e.label
|
|
219
224
|
}, e.value))
|
|
220
225
|
})]
|
|
221
226
|
})]
|
|
222
227
|
}),
|
|
223
|
-
|
|
228
|
+
x && /* @__PURE__ */ r("div", {
|
|
224
229
|
class: "IncodeDropdownComposedLiveRegion",
|
|
225
230
|
role: "status",
|
|
226
231
|
"aria-live": "polite",
|
|
227
232
|
"aria-atomic": "true",
|
|
228
|
-
children: M &&
|
|
233
|
+
children: M && R ? J.length === 0 ? C : `${J.length} result${J.length === 1 ? "" : "s"} available` : ""
|
|
229
234
|
}),
|
|
230
|
-
!
|
|
235
|
+
!v && m && /* @__PURE__ */ r("div", {
|
|
231
236
|
class: "IncodeDropdownComposedErrorWrapper",
|
|
232
237
|
"data-testid": `${c}-error-wrapper`,
|
|
233
|
-
children: [
|
|
238
|
+
children: [g && /* @__PURE__ */ r("div", {
|
|
234
239
|
class: "IncodeDropdownComposedIconWrapper",
|
|
235
|
-
children: /* @__PURE__ */ r(
|
|
240
|
+
children: /* @__PURE__ */ r(ee, { size: 17 })
|
|
236
241
|
}), /* @__PURE__ */ r("p", {
|
|
237
242
|
id: Q,
|
|
238
243
|
class: "IncodeDropdownComposedError",
|
|
239
244
|
children: m
|
|
240
245
|
})]
|
|
241
246
|
}),
|
|
242
|
-
!
|
|
247
|
+
!v && h && !m && /* @__PURE__ */ r("div", {
|
|
243
248
|
class: "IncodeDropdownComposedHelperWrapper",
|
|
244
249
|
"data-testid": `${c}-helper-wrapper`,
|
|
245
|
-
children: [
|
|
250
|
+
children: [_ && /* @__PURE__ */ r("div", {
|
|
246
251
|
class: "IncodeDropdownComposedIconWrapper",
|
|
247
|
-
children: /* @__PURE__ */ r(
|
|
252
|
+
children: /* @__PURE__ */ r(s, { size: 17 })
|
|
248
253
|
}), /* @__PURE__ */ r("p", {
|
|
249
254
|
id: Z,
|
|
250
255
|
class: "IncodeDropdownComposedHelper",
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ekybModule-
|
|
1
|
+
import { t as e } from "../ekybModule-CzoycvEv.js";
|
|
2
2
|
export { e as EkybModule };
|