@incodetech/web 2.0.1-rc.0 → 2.1.0-rc.0
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/ae-signature/ae-signature.es.js +15 -13
- package/dist/ae-signature/styles.css +3 -17
- package/dist/ae-signature/styles2.css +15 -5
- package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
- package/dist/antifraud/antifraud.es.js +23 -16
- package/dist/authentication/authentication.es.js +42 -27
- package/dist/autoFocusTitle-BzkUiELM.js +29 -0
- package/dist/{back-horizontal-hint-B8Brxh3U.js → back-horizontal-hint-D_8LptLm.js} +26 -26
- package/dist/back-tutorial-vb1MxlrT.js +14597 -0
- package/dist/{back-vertical-hint-BBo36dxn.js → back-vertical-hint-C1evxxq2.js} +27 -27
- package/dist/backdevicelottie-HypPqBz7.js +16690 -0
- package/dist/base.css +1258 -104
- package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
- package/dist/bottomSheet-F1GJfQx_.js +39 -0
- package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
- package/dist/button-CM_hgyIP.js +35 -0
- package/dist/checkbox-BoeLHKgp.js +96 -0
- package/dist/consent/consent.es.js +89 -73
- package/dist/consent/styles.css +35 -22
- package/dist/countrySelector-mSWyHSy4.js +60 -0
- package/dist/cpf-ocr/cpf-ocr.es.js +2 -0
- package/dist/cpfOcr-MtpRztkG.js +92 -0
- package/dist/cpfOcr-jJkYCfsX.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -16
- package/dist/curp-validation/curp-validation.es.js +247 -203
- package/dist/customFields-DXXt9HGM.js +140 -0
- package/dist/customWatchlist-DsW04UF6.js +36 -0
- package/dist/dateInputComposed-C_mh4XBg.js +69 -0
- package/dist/dateInputComposed-Cy6a7ymh.js +1 -0
- package/dist/defineProperty-mefzVtTv.js +39 -0
- package/dist/document-capture/document-capture.es.js +2 -0
- package/dist/document-capture/styles.css +2 -5
- package/dist/documentCapture-8ypBJehw.js +2 -0
- package/dist/documentCapture-BDV_921m.js +880 -0
- package/dist/dropdownComposed-CEWBSdGl.js +1 -0
- package/dist/dropdownComposed-_fgAlo_C.js +380 -0
- package/dist/dynamic-forms/styles.css +25 -13
- package/dist/dynamicForms-DyfnsS7E.js +352 -0
- package/dist/ekyb/ekyb.es.js +2 -2
- package/dist/ekyb/styles.css +2 -0
- package/dist/ekybModule-CIPGmCvD.js +279 -0
- package/dist/ekybModule-DFoYpheB.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -2
- package/dist/ekyc/styles.css +9 -7
- package/dist/ekycModule-BGzwgjl1.js +2 -0
- package/dist/ekycModule-BuTaC5ct.js +257 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -2
- package/dist/electronic-signature-B-Q7M0wK.js +430 -0
- package/dist/email/email.es.js +199 -66
- package/dist/emailInput-KZmhjOdZ.js +39 -0
- package/dist/errorIcon-DJRZpd8j.js +26 -0
- package/dist/expiredId-Q1t6aVpk.js +85 -0
- package/dist/extensibility-Cs3KQQdC.js +3070 -0
- package/dist/extensibility.es.js +26 -25
- package/dist/face-match/face-match.es.js +2 -2
- package/dist/face-match/styles.css +0 -4
- package/dist/faceMatch--RDHJe4t.js +343 -0
- package/dist/faceMatch-yEKPYaym.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +2 -0
- package/dist/field-comparison/styles.css +16 -0
- package/dist/fieldComparison-CAF86bTC.js +88 -0
- package/dist/fieldComparison-D0an7T_g.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +224 -0
- package/dist/fiscal-qr/styles.css +71 -0
- package/dist/{flip-animation-CgwRsEmK.js → flip-animation-BGRvygw9.js} +4221 -4221
- package/dist/flow/flow.es.js +619 -484
- package/dist/flow/styles.css +378 -418
- package/dist/{front-horizontal-hint-DGGGi8e1.js → front-horizontal-hint-Uf5bHCsd.js} +70 -70
- package/dist/{front-vertical-hint-CNr5mE6Q.js → front-vertical-hint-DdWNA45v.js} +81 -81
- package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
- package/dist/geolocation/geolocation.es.js +486 -395
- package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
- package/dist/governmentValidation/governmentValidation.es.js +166 -93
- package/dist/governmentValidation/styles.css +0 -17
- package/dist/homeScreen-BZnIEDrV.js +264 -0
- package/dist/hooks-Da_yP_Dr.js +149 -0
- package/dist/i18n-CoCO2ZuN.js +2971 -0
- package/dist/icons-Dbs9ZfYM.js +360 -0
- package/dist/id/id.es.js +583 -414
- package/dist/id/styles.css +59 -43
- package/dist/id-laser-h-DX8UbVNH.js +467 -0
- package/dist/id-laser-v-DhnHdjlB.js +490 -0
- package/dist/id-tutorial-lj4iKtYT.js +13165 -0
- package/dist/id-verification/id-verification.es.js +21 -17
- package/dist/idOcr-CjGbb4dB.js +123 -0
- package/dist/identity-reuse/identity-reuse.es.js +311 -182
- package/dist/identity-reuse/styles.css +134 -80
- package/dist/incode-logo-57XFniXU.js +4 -0
- package/dist/incodeComponent-wfnHlnXx.js +63 -0
- package/dist/incodeModule-BUDoTwT9.js +13 -0
- package/dist/index.es.js +16 -13
- package/dist/inputComposed-BEn7_nZd.js +1 -0
- package/dist/inputComposed-CQ4AsvZg.js +99 -0
- package/dist/loadingIcon-B0ysgiNq.js +148 -0
- package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
- package/dist/mandatoryConsent-r0PQHmv-.js +107 -0
- package/dist/modal-nTSaG7nB.js +139 -0
- package/dist/modal.hooks-D2xhIuHA.js +195 -0
- package/dist/numberedStep-CEtwZqLp.js +13 -0
- package/dist/optionAccessibleLabel-CnA-mNAU.js +202 -0
- package/dist/otpInput-_JmtVwa0.js +195 -0
- package/dist/page-DxGQj7Gk.js +71 -0
- package/dist/{passport-horizontal-hint-Bgquwtac.js → passport-horizontal-hint-Bbm2mvSn.js} +55 -55
- package/dist/{passport-tutorial-DwRwtPVX.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
- package/dist/{passport-vertical-hint-BT1D5BrW.js → passport-vertical-hint-DJbCtBiM.js} +49 -49
- package/dist/pdf-BZA70WbM.js +22398 -0
- package/dist/pdfViewer-BK-yVIve.js +114 -0
- package/dist/phone/phone.es.js +214 -70
- package/dist/phoneInputComposed-DjNdsmPE.js +12142 -0
- package/dist/processing-BM-wT-1W.js +8 -0
- package/dist/qe-signature/qe-signature.es.js +15 -13
- package/dist/radioGroupComposed-BNuaopVr.js +215 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2774 -0
- package/dist/redirect-to-mobile/styles.css +19 -269
- package/dist/registerIncodeElement-77NGCDsy.js +11 -0
- package/dist/requiredLabelHint-DEadtiwx.js +17 -0
- package/dist/richText-Cf9aMOCk.js +3153 -0
- package/dist/rolldown-runtime--E5BIlTp.js +33 -0
- package/dist/selfie/selfie.es.js +54 -37
- package/dist/selfie/styles.css +0 -4
- package/dist/selfieTutorial-CtruLyO2.js +2689 -0
- package/dist/signature/signature.es.js +778 -405
- package/dist/snackbar-CxepGC3e.js +16 -0
- package/dist/spinner-B6RxGFrI.js +1 -0
- package/dist/spinner-D8a_2LvW.js +42 -0
- package/dist/statusPage-DMYPUwRZ.js +28 -0
- package/dist/successIcon-BAyDPT7I.js +30 -0
- package/dist/tabs-C8npVBbk.js +103 -0
- package/dist/themes/dark.css +5 -0
- package/dist/themes/light.css +4 -0
- package/dist/transitionSpinner-DRRz-NV8.js +26 -0
- package/dist/{tutorial-9vHAHvMK.js → tutorial-D1qaY2Tm.js} +1105 -856
- package/dist/types/ae-signature.d.ts +4 -1
- package/dist/types/antifraud.d.ts +9 -3
- package/dist/types/authentication.d.ts +4 -1
- package/dist/types/consent.d.ts +4 -1
- package/dist/types/cpf-ocr.d.ts +12 -0
- package/dist/types/cross-document-data-match.d.ts +4 -1
- package/dist/types/curp-validation.d.ts +9 -3
- package/dist/types/document-capture.d.ts +37 -0
- package/dist/types/ekyb.d.ts +4 -1
- package/dist/types/ekyc.d.ts +4 -1
- package/dist/types/electronic-signature.d.ts +4 -1
- package/dist/types/email.d.ts +4 -1
- package/dist/types/extensibility.d.ts +40 -15
- package/dist/types/face-match.d.ts +4 -1
- package/dist/types/field-comparison.d.ts +38 -0
- package/dist/types/fiscal-qr.d.ts +43 -0
- package/dist/types/flow.d.ts +5 -2
- package/dist/types/geolocation.d.ts +4 -1
- package/dist/types/governmentValidation.d.ts +4 -1
- package/dist/types/id-verification.d.ts +4 -1
- package/dist/types/id.d.ts +4 -1
- package/dist/types/identity-reuse.d.ts +4 -1
- package/dist/types/index.d.ts +20 -2
- package/dist/types/phone.d.ts +4 -1
- package/dist/types/qe-signature.d.ts +4 -1
- package/dist/types/redirect-to-mobile.d.ts +17 -0
- package/dist/types/selfie.d.ts +4 -1
- package/dist/types/signature.d.ts +4 -1
- package/dist/types/watchlist.d.ts +4 -1
- package/dist/types/workflow.d.ts +55 -11
- package/dist/typography-YLgHHuao.js +45 -0
- package/dist/uiConfig-D2_wawvr.js +25 -0
- package/dist/useModuleLoader-CeJ2jL25.js +672 -0
- package/dist/vendor-preact-DThS2ZQ_.js +955 -0
- package/dist/verificationResult-Do5SpZ6X.js +64 -0
- package/dist/verifiedByIncode-DjXOdCml.js +103 -0
- package/dist/watchlist/watchlist.es.js +31 -28
- package/dist/watchlistForBusiness-BFFXC9d-.js +80 -0
- package/dist/workflow/styles.css +449 -427
- package/dist/workflow/workflow.es.js +268 -182
- package/package.json +32 -10
- package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
- package/dist/autoFocusTitle-QexamZ4i.js +0 -16
- package/dist/back-tutorial-1NOQobGO.js +0 -14585
- package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
- package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
- package/dist/bottomSheet-DE_8TFEC.js +0 -31
- package/dist/browser-ponyfill-jOkuz57z.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-Cl57ltq_.js +0 -85
- package/dist/countrySelector-CE-JgIsv.js +0 -58
- package/dist/cpfOcr-D_tbwbvh.js +0 -78
- package/dist/customFields-CW38fQUv.js +0 -127
- package/dist/customWatchlist-D9_yjEQd.js +0 -33
- package/dist/dateInputComposed-BpAGsjN6.js +0 -55
- package/dist/dateInputComposed-DU3o6PAV.js +0 -1
- package/dist/defineProperty-Dh8nSJpJ.js +0 -39
- package/dist/documentCapture-xX-JT7ZY.js +0 -763
- package/dist/dropdownComposed-DFRBG22E.js +0 -284
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
- package/dist/ekybModule-BSs7mndb.js +0 -280
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekycModule-CU9pt5YN.js +0 -246
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/electronic-signature-COYXjGdd.js +0 -410
- package/dist/emailInput-DppGf9pv.js +0 -37
- package/dist/expiredId-BnmzE8T3.js +0 -70
- package/dist/extensibility-CzEJfRwo.js +0 -2586
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
- package/dist/faceMatch-BV8UD7tj.js +0 -201
- package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
- package/dist/glaredevicelottie-B10axYs_.js +0 -14466
- package/dist/homeScreen-DnP1jw9A.js +0 -227
- package/dist/hooks-BVnGysT7.js +0 -80
- package/dist/i18n-9s4OSqwi.js +0 -2010
- package/dist/icons-Cc7zwchP.js +0 -310
- package/dist/id-laser-h-mBAzHVOK.js +0 -467
- package/dist/id-laser-v-CrFg4bcJ.js +0 -483
- package/dist/id-tutorial-BCr42Pnn.js +0 -13153
- package/dist/idOcr-CCjfWQvH.js +0 -94
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-C1o4M0ZK.js +0 -50
- package/dist/incodeModule-BqCjVgEI.js +0 -18
- package/dist/inputComposed-APSw8C7o.js +0 -89
- package/dist/inputComposed-XYrarFxS.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/mandatoryConsent-DssKMC3v.js +0 -100
- package/dist/modal-NMxsQHAO.js +0 -135
- package/dist/modal.hooks-CAjcIFZK.js +0 -126
- package/dist/numberedStep-CT-alrK5.js +0 -11
- package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
- package/dist/otpInput-DqRA_egd.js +0 -145
- package/dist/page-C1yT4DLb.js +0 -69
- package/dist/pdf-BurGZ08w.js +0 -14967
- package/dist/pdfViewer-BGBNL1Ea.js +0 -63
- package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
- package/dist/processing-G_y3o32b.js +0 -6
- package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
- package/dist/redirectToMobile-C3k1gloW.js +0 -1514
- package/dist/requiredLabelHint-BLwgqozE.js +0 -13
- package/dist/richText-DbJ5sl2n.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
- package/dist/snackbar-BDp8x7Cv.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-CUI7ApcU.js +0 -28
- package/dist/successIcon-DbILeIz_.js +0 -28
- package/dist/tabs-DaPyP71c.js +0 -78
- package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
- package/dist/types/cpf-ocr/styles.d.ts +0 -1
- package/dist/types/document-capture/styles.d.ts +0 -1
- package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-BFiVA41N.js +0 -432
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-BrVbUJ4U.js +0 -97
- package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
- package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { n as cn } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
+
//#region src/shared/snackbar/snackbar.tsx
|
|
4
|
+
var Snackbar = ({ variant = "neutral", children, className, ariaLive = "polite" }) => {
|
|
5
|
+
return /* @__PURE__ */ u("div", {
|
|
6
|
+
role: "status",
|
|
7
|
+
"aria-live": ariaLive,
|
|
8
|
+
class: cn("IncodeSnackbar", `IncodeSnackbar--${variant}`, className),
|
|
9
|
+
children: /* @__PURE__ */ u("span", {
|
|
10
|
+
class: "IncodeSnackbarContent",
|
|
11
|
+
children
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Snackbar as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./spinner-D8a_2LvW.js";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { _ as y, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { n as cn, r as Spacer, t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
+
import { t as Title } from "./typography-YLgHHuao.js";
|
|
4
|
+
//#region src/shared/spinner/spinner.tsx
|
|
5
|
+
var sizeMap = {
|
|
6
|
+
small: 24,
|
|
7
|
+
medium: 48,
|
|
8
|
+
large: 64
|
|
9
|
+
};
|
|
10
|
+
var Spinner = ({ title, subtitle, size = "medium", fullScreen = true, className }) => {
|
|
11
|
+
const iconSize = sizeMap[size];
|
|
12
|
+
const titleRef = A(null);
|
|
13
|
+
y(() => {
|
|
14
|
+
if (title) titleRef.current?.focus();
|
|
15
|
+
}, [title]);
|
|
16
|
+
return /* @__PURE__ */ u("div", {
|
|
17
|
+
class: cn("IncodeSpinner", fullScreen && "IncodeSpinnerFullScreen", className),
|
|
18
|
+
"data-testid": "spinner",
|
|
19
|
+
"data-title": title,
|
|
20
|
+
"data-subtitle": subtitle,
|
|
21
|
+
"data-size": size,
|
|
22
|
+
role: "status",
|
|
23
|
+
"aria-live": "polite",
|
|
24
|
+
children: /* @__PURE__ */ u("div", {
|
|
25
|
+
class: "IncodeSpinnerContent",
|
|
26
|
+
children: [/* @__PURE__ */ u(LoadingIcon, { size: iconSize }), (title || subtitle) && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
|
|
27
|
+
class: "IncodeSpinnerText",
|
|
28
|
+
children: [title && /* @__PURE__ */ u(Title, {
|
|
29
|
+
ref: titleRef,
|
|
30
|
+
tabIndex: -1,
|
|
31
|
+
className: "IncodeSpinnerTitle",
|
|
32
|
+
children: title
|
|
33
|
+
}), subtitle && /* @__PURE__ */ u(k, { children: [title && /* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
|
|
34
|
+
class: "IncodeSpinnerSubtitle",
|
|
35
|
+
children: subtitle
|
|
36
|
+
})] })]
|
|
37
|
+
})] })]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Spinner as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
+
import { t as Page } from "./page-DxGQj7Gk.js";
|
|
4
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-BzkUiELM.js";
|
|
5
|
+
//#region src/shared/statusPage/statusPage.tsx
|
|
6
|
+
var StatusPage = ({ variant, icon, title, subtitle, hideFooterBranding }) => /* @__PURE__ */ u(Page, {
|
|
7
|
+
className: `IncodeStatusPage IncodeStatusPage--${variant}`,
|
|
8
|
+
hideFooterBranding,
|
|
9
|
+
children: /* @__PURE__ */ u("div", {
|
|
10
|
+
class: "IncodeStatusPageContainer",
|
|
11
|
+
role: variant === "loading" ? "status" : void 0,
|
|
12
|
+
"aria-live": variant === "loading" ? "polite" : void 0,
|
|
13
|
+
children: [
|
|
14
|
+
icon,
|
|
15
|
+
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
16
|
+
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
17
|
+
className: "IncodeStatusPageTitle",
|
|
18
|
+
children: title
|
|
19
|
+
}, variant),
|
|
20
|
+
subtitle && /* @__PURE__ */ u("p", {
|
|
21
|
+
class: "IncodeStatusPageSubtitle",
|
|
22
|
+
children: subtitle
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { StatusPage as t };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
//#region src/shared/icons/successIcon.tsx
|
|
3
|
+
var SuccessIcon = ({ size = 64 }) => {
|
|
4
|
+
return /* @__PURE__ */ u("svg", {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: size,
|
|
7
|
+
height: size,
|
|
8
|
+
viewBox: "0 0 64 64",
|
|
9
|
+
fill: "none",
|
|
10
|
+
class: "IncodeSuccessIcon",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ u("title", { children: "status" }),
|
|
14
|
+
/* @__PURE__ */ u("path", {
|
|
15
|
+
"fill-rule": "evenodd",
|
|
16
|
+
"clip-rule": "evenodd",
|
|
17
|
+
d: "M32 6.66669C18.032 6.66669 6.66663 18.032 6.66663 32C6.66663 45.9707 18.032 57.3334 32 57.3334C45.968 57.3334 57.3333 45.9707 57.3333 32C57.3333 18.032 45.968 6.66669 32 6.66669Z",
|
|
18
|
+
fill: "var(--icon-status-positive)"
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ u("path", {
|
|
21
|
+
"fill-rule": "evenodd",
|
|
22
|
+
"clip-rule": "evenodd",
|
|
23
|
+
d: "M42.648 27.2587L30.3333 39.5733C29.9413 39.9653 29.432 40.16 28.92 40.16C28.4053 40.16 27.896 39.9653 27.504 39.5733L21.3466 33.416C20.5653 32.6347 20.5653 31.368 21.3466 30.5867C22.128 29.8053 23.392 29.8053 24.1733 30.5867L28.92 35.3307L39.8186 24.4293C40.6 23.648 41.8666 23.648 42.648 24.4293C43.4293 25.2107 43.4293 26.4773 42.648 27.2587Z",
|
|
24
|
+
fill: "var(--icon-neutral-0)"
|
|
25
|
+
})
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SuccessIcon as t };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { b as Q, g as x, m as g, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { n as cn } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
+
//#region src/shared/tabs/tabs.tsx
|
|
4
|
+
var TabsContext = Q(null);
|
|
5
|
+
var useTabsContext = () => {
|
|
6
|
+
const ctx = x(TabsContext);
|
|
7
|
+
if (!ctx) throw new Error("Tabs compound components must be used within <Tabs>");
|
|
8
|
+
return ctx;
|
|
9
|
+
};
|
|
10
|
+
var tabId = (baseId, value) => `${baseId}-tab-${value}`;
|
|
11
|
+
var panelId = (baseId, value) => `${baseId}-panel-${value}`;
|
|
12
|
+
var TabsRoot = ({ defaultValue, value, onValueChange, orientation = "horizontal", activation = "manual", listClassName, triggerClassName, activeTriggerClassName, children }) => {
|
|
13
|
+
const baseId = g();
|
|
14
|
+
const [internalValue, setInternalValue] = d(defaultValue ?? value ?? "");
|
|
15
|
+
const activeValue = value ?? internalValue;
|
|
16
|
+
const setActiveValue = (next) => {
|
|
17
|
+
if (value === void 0) setInternalValue(next);
|
|
18
|
+
onValueChange?.(next);
|
|
19
|
+
};
|
|
20
|
+
return /* @__PURE__ */ u(TabsContext.Provider, {
|
|
21
|
+
value: {
|
|
22
|
+
baseId,
|
|
23
|
+
activeValue,
|
|
24
|
+
setActiveValue,
|
|
25
|
+
orientation,
|
|
26
|
+
activation,
|
|
27
|
+
listClassName,
|
|
28
|
+
triggerClassName,
|
|
29
|
+
activeTriggerClassName
|
|
30
|
+
},
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var TabsList = ({ label, labelledBy, children }) => {
|
|
35
|
+
const { listClassName, orientation } = useTabsContext();
|
|
36
|
+
return /* @__PURE__ */ u("div", {
|
|
37
|
+
role: "tablist",
|
|
38
|
+
"aria-orientation": orientation,
|
|
39
|
+
"aria-label": label,
|
|
40
|
+
"aria-labelledby": labelledBy,
|
|
41
|
+
class: listClassName,
|
|
42
|
+
children
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var TabsTrigger = ({ value, disabled, children }) => {
|
|
46
|
+
const { baseId, activeValue, setActiveValue, orientation, activation, triggerClassName, activeTriggerClassName } = useTabsContext();
|
|
47
|
+
const selected = activeValue === value;
|
|
48
|
+
const handleKeyDown = (event) => {
|
|
49
|
+
const horizontal = orientation === "horizontal";
|
|
50
|
+
const nextKey = horizontal ? "ArrowRight" : "ArrowDown";
|
|
51
|
+
const prevKey = horizontal ? "ArrowLeft" : "ArrowUp";
|
|
52
|
+
if (event.key !== nextKey && event.key !== prevKey && event.key !== "Home" && event.key !== "End") return;
|
|
53
|
+
const list = event.currentTarget.closest("[role=\"tablist\"]");
|
|
54
|
+
if (!list) return;
|
|
55
|
+
const tabs = Array.from(list.querySelectorAll("[role=\"tab\"]:not([disabled])"));
|
|
56
|
+
const currentIndex = tabs.indexOf(event.currentTarget);
|
|
57
|
+
if (currentIndex === -1) return;
|
|
58
|
+
let target;
|
|
59
|
+
if (event.key === nextKey) target = tabs[(currentIndex + 1) % tabs.length];
|
|
60
|
+
else if (event.key === prevKey) target = tabs[(currentIndex - 1 + tabs.length) % tabs.length];
|
|
61
|
+
else if (event.key === "Home") target = tabs[0];
|
|
62
|
+
else if (event.key === "End") target = tabs[tabs.length - 1];
|
|
63
|
+
if (!target) return;
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
target.focus();
|
|
66
|
+
if (activation === "automatic") {
|
|
67
|
+
const nextValue = target.dataset.value;
|
|
68
|
+
if (nextValue !== void 0) setActiveValue(nextValue);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
return /* @__PURE__ */ u("button", {
|
|
72
|
+
type: "button",
|
|
73
|
+
role: "tab",
|
|
74
|
+
id: tabId(baseId, value),
|
|
75
|
+
"aria-selected": selected,
|
|
76
|
+
"aria-controls": panelId(baseId, value),
|
|
77
|
+
tabIndex: selected ? 0 : -1,
|
|
78
|
+
disabled,
|
|
79
|
+
"data-value": value,
|
|
80
|
+
class: cn(triggerClassName, selected && activeTriggerClassName),
|
|
81
|
+
onClick: () => setActiveValue(value),
|
|
82
|
+
onKeyDown: handleKeyDown,
|
|
83
|
+
children
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
var TabsContent = ({ value, className, children }) => {
|
|
87
|
+
const { baseId, activeValue } = useTabsContext();
|
|
88
|
+
if (activeValue !== value) return null;
|
|
89
|
+
return /* @__PURE__ */ u("div", {
|
|
90
|
+
role: "tabpanel",
|
|
91
|
+
id: panelId(baseId, value),
|
|
92
|
+
"aria-labelledby": tabId(baseId, value),
|
|
93
|
+
class: className,
|
|
94
|
+
children
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
var Tabs = Object.assign(TabsRoot, {
|
|
98
|
+
List: TabsList,
|
|
99
|
+
Trigger: TabsTrigger,
|
|
100
|
+
Content: TabsContent
|
|
101
|
+
});
|
|
102
|
+
//#endregion
|
|
103
|
+
export { Tabs as t };
|
package/dist/themes/dark.css
CHANGED
|
@@ -729,6 +729,7 @@
|
|
|
729
729
|
--surface-neutral-400: var(--primitive-color-gray-400);
|
|
730
730
|
--surface-neutral-500: var(--primitive-color-gray-500);
|
|
731
731
|
--surface-neutral-600: var(--primitive-color-gray-600);
|
|
732
|
+
--surface-neutral-600-static: var(--primitive-color-gray-600);
|
|
732
733
|
--surface-neutral-700: var(--primitive-color-gray-700);
|
|
733
734
|
--surface-neutral-750: var(--primitive-color-gray-750);
|
|
734
735
|
--surface-neutral-800: var(--primitive-color-gray-800);
|
|
@@ -853,6 +854,7 @@
|
|
|
853
854
|
--surface-neutral-400: var(--primitive-color-gray-500);
|
|
854
855
|
--surface-neutral-500: var(--primitive-color-gray-300);
|
|
855
856
|
--surface-neutral-600: var(--primitive-color-gray-250);
|
|
857
|
+
--surface-neutral-600-static: var(--primitive-color-gray-600);
|
|
856
858
|
--surface-neutral-700: var(--primitive-color-gray-200);
|
|
857
859
|
--surface-neutral-750: var(--primitive-color-gray-150);
|
|
858
860
|
--surface-neutral-800: var(--primitive-color-gray-100);
|
|
@@ -1208,6 +1210,8 @@
|
|
|
1208
1210
|
--redirect-options-max-width: 752px;
|
|
1209
1211
|
--redirect-tabs-max-width: 676px;
|
|
1210
1212
|
--redirect-tab-description-max-width: 434px;
|
|
1213
|
+
--redirect-form-column-max-width: 326px;
|
|
1214
|
+
--redirect-phone-input-country-code-width: 130px;
|
|
1211
1215
|
--redirect-qr-wrapper-border-radius: 21px;
|
|
1212
1216
|
|
|
1213
1217
|
/* digital ID upload */
|
|
@@ -1240,6 +1244,7 @@
|
|
|
1240
1244
|
--surface-neutral-400: var(--primitive-color-gray-500);
|
|
1241
1245
|
--surface-neutral-500: var(--primitive-color-gray-300);
|
|
1242
1246
|
--surface-neutral-600: var(--primitive-color-gray-250);
|
|
1247
|
+
--surface-neutral-600-static: var(--primitive-color-gray-600);
|
|
1243
1248
|
--surface-neutral-700: var(--primitive-color-gray-200);
|
|
1244
1249
|
--surface-neutral-750: var(--primitive-color-gray-150);
|
|
1245
1250
|
--surface-neutral-800: var(--primitive-color-gray-100);
|
package/dist/themes/light.css
CHANGED
|
@@ -729,6 +729,7 @@
|
|
|
729
729
|
--surface-neutral-400: var(--primitive-color-gray-400);
|
|
730
730
|
--surface-neutral-500: var(--primitive-color-gray-500);
|
|
731
731
|
--surface-neutral-600: var(--primitive-color-gray-600);
|
|
732
|
+
--surface-neutral-600-static: var(--primitive-color-gray-600);
|
|
732
733
|
--surface-neutral-700: var(--primitive-color-gray-700);
|
|
733
734
|
--surface-neutral-750: var(--primitive-color-gray-750);
|
|
734
735
|
--surface-neutral-800: var(--primitive-color-gray-800);
|
|
@@ -853,6 +854,7 @@
|
|
|
853
854
|
--surface-neutral-400: var(--primitive-color-gray-500);
|
|
854
855
|
--surface-neutral-500: var(--primitive-color-gray-300);
|
|
855
856
|
--surface-neutral-600: var(--primitive-color-gray-250);
|
|
857
|
+
--surface-neutral-600-static: var(--primitive-color-gray-600);
|
|
856
858
|
--surface-neutral-700: var(--primitive-color-gray-200);
|
|
857
859
|
--surface-neutral-750: var(--primitive-color-gray-150);
|
|
858
860
|
--surface-neutral-800: var(--primitive-color-gray-100);
|
|
@@ -1208,6 +1210,8 @@
|
|
|
1208
1210
|
--redirect-options-max-width: 752px;
|
|
1209
1211
|
--redirect-tabs-max-width: 676px;
|
|
1210
1212
|
--redirect-tab-description-max-width: 434px;
|
|
1213
|
+
--redirect-form-column-max-width: 326px;
|
|
1214
|
+
--redirect-phone-input-country-code-width: 130px;
|
|
1211
1215
|
--redirect-qr-wrapper-border-radius: 21px;
|
|
1212
1216
|
|
|
1213
1217
|
/* digital ID upload */
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as useTranslation } from "./i18n-CoCO2ZuN.js";
|
|
2
|
+
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
+
import { t as Spinner } from "./spinner-D8a_2LvW.js";
|
|
4
|
+
import "./spinner-B6RxGFrI.js";
|
|
5
|
+
//#region src/shared/processing/transitionSpinner.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Canonical "we're getting ready / processing" loader.
|
|
8
|
+
*
|
|
9
|
+
* Renders a container-filling `Spinner` with the unified `loadingCircle.hangOn`
|
|
10
|
+
* / `loadingCircle.validating` copy at `size="large"` so every cross-module
|
|
11
|
+
* transition looks identical to the user. Optional `spinnerConfig` overrides
|
|
12
|
+
* any of `title`, `subtitle`, or `size` for consumers that already exposed
|
|
13
|
+
* those. Pass `hideText` to render the spinner icon on its own.
|
|
14
|
+
*/
|
|
15
|
+
var TransitionSpinner = ({ spinnerConfig, className, hideText = false }) => {
|
|
16
|
+
const { t } = useTranslation();
|
|
17
|
+
return /* @__PURE__ */ u(Spinner, {
|
|
18
|
+
title: hideText ? void 0 : spinnerConfig?.title ?? t("loadingCircle.hangOn"),
|
|
19
|
+
subtitle: hideText ? void 0 : spinnerConfig?.subtitle ?? t("loadingCircle.validating"),
|
|
20
|
+
size: spinnerConfig?.size ?? "large",
|
|
21
|
+
fullScreen: true,
|
|
22
|
+
className
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { TransitionSpinner as t };
|