@incodetech/web 2.2.0 → 2.3.0-rc.1
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/THIRD_PARTY_NOTICES.txt +398 -0
- package/dist/ae-signature/ae-signature.es.js +4 -4
- package/dist/af-ZA-CiGNWICE.js +3043 -0
- package/dist/am-C5YehVGG.js +3043 -0
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/ar-AE-BMJuIKTB.js +3059 -0
- package/dist/ar-CUw7KMHb.js +3059 -0
- package/dist/ar-EG-ojf2Ene5.js +3059 -0
- package/dist/assets/dm-sans-latin-400-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-500-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-600-normal.woff2 +0 -0
- package/dist/assets/dm-sans-latin-700-normal.woff2 +0 -0
- package/dist/assets/rethink-sans-latin-800-normal.woff2 +0 -0
- package/dist/authentication/authentication.es.js +15 -11
- package/dist/{autoFocusTitle-DB-23sv_.js → autoFocusTitle-CVjuQOGZ.js} +2 -2
- package/dist/az-DsqjgKhY.js +3043 -0
- package/dist/{back-horizontal-hint-CjdigFZj.js → back-horizontal-hint-UQ7Nof6k.js} +1 -1
- package/dist/{back-vertical-hint-OhaKsINF.js → back-vertical-hint-Crc8ybfk.js} +1 -1
- package/dist/base.css +917 -283
- package/dist/baseTutorial-BM2Ho3QZ.js +172 -0
- package/dist/bn-Bbn6O_i2.js +3043 -0
- package/dist/bottomSheet-Cixb81_b.js +101 -0
- package/dist/bs-CYW5eATI.js +3047 -0
- package/dist/ca-D5u2Z71o.js +3043 -0
- package/dist/cameraOverlay-MpL3OBQu.js +2 -0
- package/dist/cameraOverlayHeader-BarDrIC9.js +43 -0
- package/dist/cameraView-BNqv7JUh.js +49 -0
- package/dist/captureFooter-De74TCQi.js +67 -0
- package/dist/ceb-tXsl4nyX.js +3043 -0
- package/dist/certificate-issuance/certificate-issuance.es.js +19 -14
- package/dist/certificate-issuance/styles.css.js +1 -0
- package/dist/{checkbox-FGA-Ij-D.js → checkbox-BR-RTI4R.js} +9 -8
- package/dist/{connectionError-BurQq_4R.js → connectionError-Haw33Di8.js} +4 -4
- package/dist/consent/consent.es.js +26 -33
- package/dist/consent/styles.css +4 -4
- package/dist/consent/styles.css.js +1 -0
- package/dist/countries-5e8kwG_m.js +8560 -0
- package/dist/{countrySelector-COZ7XQHp.js → countrySelector-Zbe2eGzy.js} +8 -10
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/cs-CZ-BUx_DNTa.js +3051 -0
- package/dist/cs-D_6Vg3XS.js +3051 -0
- package/dist/curp-validation/curp-validation.es.js +15 -22
- package/dist/curp-validation/styles.css.js +1 -0
- package/dist/custom-fields/styles.css.js +1 -0
- package/dist/{customFields-rVMTo1Yu.js → customFields-CEFWn2wC.js} +44 -19
- package/dist/{customWatchlist-DgpXtVRf.js → customWatchlist-Xn3d-zbf.js} +14 -11
- package/dist/da-DK-CsmjiCBo.js +3043 -0
- package/dist/{dashboardTheme-BUDq5UYs.js → dashboardTheme-B_YjGFDU.js} +31 -7
- package/dist/dateInputComposed-0tUVTT0_.js +1 -0
- package/dist/{dateInputComposed-DSgV0wnb.js → dateInputComposed-ByhgHDX8.js} +5 -5
- package/dist/de-BsJlhx6J.js +3043 -0
- package/dist/{manualCaptureButton-D58WsS-x.js → denied-CB1v3PyY.js} +270 -233
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +4 -4
- package/dist/document-capture/styles.css.js +1 -0
- package/dist/{documentCapture-sZj09g0I.js → documentCapture-Cj8G5Wgb.js} +16 -17
- package/dist/documentCapture-D0o4Xh1J.js +2 -0
- package/dist/dropdownComposed-BsEtJjhn.js +1 -0
- package/dist/{dropdownComposed-CEegNzG4.js → dropdownComposed-DptsxuHA.js} +9 -9
- package/dist/{dynamicForms-t3vepXqJ.js → dynamic-forms/dynamic-forms.es.js} +24 -19
- package/dist/dynamic-forms/styles.css +5 -0
- package/dist/dynamic-forms/styles.css.js +1 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +15 -13
- package/dist/ekyb/styles.css.js +1 -0
- package/dist/ekybModule-B-gioC08.js +2 -0
- package/dist/{ekybModule-Dvkf5WAr.js → ekybModule-DqA0hfNQ.js} +17 -30
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +17 -16
- package/dist/ekyc/styles.css.js +1 -0
- package/dist/ekycModule-CjkpPQ3f.js +2 -0
- package/dist/{ekycModule-C5QXVGP7.js → ekycModule-bRC6FW2H.js} +14 -29
- package/dist/el-Dq-L-4X5.js +3043 -0
- package/dist/el-GR-c9roJIs_.js +3043 -0
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/electronic-signature/styles.css +62 -2
- package/dist/electronic-signature/styles.css.js +1 -0
- package/dist/{electronic-signature-CyE8F7LZ.js → electronic-signature-DRMdCzdF.js} +65 -18
- package/dist/email/email.es.js +9 -8
- package/dist/email/styles.css.js +1 -0
- package/dist/{emailInput-CsT8_C01.js → emailInput-Dz8ukhAE.js} +4 -4
- package/dist/en-CmZT05w8.js +3043 -0
- package/dist/en-DG-BQHfwiXE.js +3043 -0
- package/dist/errorContent-aJuo21I4.js +58 -0
- package/dist/es-419-CoqfXTDl.js +3043 -0
- package/dist/es-DXFWBB40.js +3043 -0
- package/dist/es-ES-TOSb7vSR.js +3043 -0
- package/dist/es-MX-CpubyuFB.js +3043 -0
- package/dist/et-dg12JfIX.js +3043 -0
- package/dist/{expiredId-BQ1uPh7b.js → expiredId-BPgVum6e.js} +22 -27
- package/dist/extensibility.es.js +701 -24
- package/dist/fa-IR-TKcZgrd1.js +3043 -0
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +76 -40
- package/dist/face-match/styles.css.js +1 -0
- package/dist/{faceMatch-Rf-MMdto.js → faceMatch-BcScQR2O.js} +7 -8
- package/dist/faceMatch-BvaN_Ggn.js +2 -0
- package/dist/fi-FI-BP9vgY5F.js +3043 -0
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/field-comparison/styles.css +12 -0
- package/dist/field-comparison/styles.css.js +1 -0
- package/dist/fieldComparison-D4YoXJKX.js +2 -0
- package/dist/{fieldComparison-BnGj3nNp.js → fieldComparison-UKZsi875.js} +27 -11
- package/dist/fieldLabelHint-CxjArYkQ.js +16 -0
- package/dist/{finalSuccessScreen-B9uB3bST.js → finalSuccessScreen-7OX0TdIz.js} +13 -14
- package/dist/fiscal-qr/fiscal-qr.es.js +28 -9
- package/dist/fiscal-qr/styles.css +13 -1
- package/dist/fiscal-qr/styles.css.js +1 -0
- package/dist/{extensibility-C5XqL_A3.js → flipAnimation-BwI4pEJc.js} +608 -1005
- package/dist/flow/flow.es.js +308 -62
- package/dist/flow/shell/styles.css +402 -0
- package/dist/flow/shell/styles.css.js +1 -0
- package/dist/flow/styles.css +582 -312
- package/dist/formField-DWExlgnz.js +60 -0
- package/dist/fr-B4LoNDGy.js +3047 -0
- package/dist/fr-CA-CjN8CDsE.js +3047 -0
- package/dist/{front-horizontal-hint-Bhz1rq-w.js → front-horizontal-hint-mgovnJf3.js} +1 -1
- package/dist/{front-vertical-hint-C4FC1ksx.js → front-vertical-hint-qXMVdLri.js} +1 -1
- package/dist/geolocation/geolocation.es.js +9 -9
- package/dist/geolocation/styles.css +4 -4
- package/dist/geolocation/styles.css.js +1 -0
- package/dist/government-validation/government-validation.es.js +38 -86
- package/dist/government-validation/styles.css +2 -38
- package/dist/government-validation/styles.css.js +1 -0
- package/dist/he-CJNS0xku.js +3051 -0
- package/dist/hi-CoHu7PnX.js +3043 -0
- package/dist/hmn-qubMIB6T.js +3043 -0
- package/dist/{homeScreen-Bv9mUUOF.js → homeScreen-CqLbJbhW.js} +8 -7
- package/dist/hr-N3Dy9ndd.js +3047 -0
- package/dist/ht-iHGiGZhO.js +3043 -0
- package/dist/hu-hlQUlAJs.js +3043 -0
- package/dist/{icons-ChHV5iHi.js → icons-DNXYxUPA.js} +99 -11
- package/dist/id/id.es.js +576 -62
- package/dist/id/styles.css +114 -45
- package/dist/id/styles.css.js +1 -0
- package/dist/id-Dhk7ywrq.js +3037 -0
- package/dist/{id-back-of-card-C4XViC7W.js → id-back-of-card-B6EcmiCs.js} +1 -1
- package/dist/{id-back-of-card-vertical-DCz0rj8m.js → id-back-of-card-vertical-B3FXhPpj.js} +1 -1
- package/dist/{id-front-of-card-CUA1ocVF.js → id-front-of-card-V_BlLaZr.js} +1 -1
- package/dist/{id-front-of-card-vertical-Ddm_BwD3.js → id-front-of-card-vertical-CuZjL8kc.js} +1 -1
- package/dist/id-ocr/styles.css.js +1 -0
- package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -9
- package/dist/id-selfie-flow/styles.css +40 -8
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Da1-2sWY.js → idOcr-Bt0V72id.js} +13 -16
- package/dist/identity-reuse/identity-reuse.es.js +8 -113
- package/dist/identity-reuse/styles.css +1 -1
- package/dist/{incode-logo-DeIDDejm.js → incode-logo-BzJOZr3f.js} +1 -64
- package/dist/{incodeComponent-BtFz-bx2.js → incodeComponent-DeVV0gEn.js} +192 -22
- package/dist/{incodeModule-9K8KUs61.js → incodeModule-Do8qpZk7.js} +3 -3
- package/dist/index.es.js +4 -3
- package/dist/{inputComposed-C2zTEXsp.js → inputComposed-9aPipTS_.js} +9 -9
- package/dist/inputComposed-DZokKK4c.js +1 -0
- package/dist/it-CXYuJ5BQ.js +3043 -0
- package/dist/ja-B5OkMrWD.js +3037 -0
- package/dist/ja-JP-SlPp7xE2.js +3037 -0
- package/dist/jv-DduD6MhM.js +3037 -0
- package/dist/ka-CG2wabuB.js +3043 -0
- package/dist/kk-D984nBRQ.js +3043 -0
- package/dist/km-B-DaaNxL.js +3037 -0
- package/dist/ko-B8I6YPOu.js +3037 -0
- package/dist/ko-KP-BTQZdVex.js +3037 -0
- package/dist/ky-p_wAYlXq.js +3043 -0
- package/dist/lo-CS-RhXrt.js +3037 -0
- package/dist/lt-C1yAMYTU.js +3051 -0
- package/dist/lv-CiHCsaN9.js +3047 -0
- package/dist/{mandatoryConsent-CxShVycM.js → mandatoryConsent-BJcDf3s-.js} +10 -7
- package/dist/manualCaptureButton-2RTC1vZC.js +63 -0
- package/dist/{manualCaptureButton-DzJFIEfu.js → manualCaptureButton-CqwPCE8h.js} +10 -55
- package/dist/mk-VumecXcv.js +3043 -0
- package/dist/mn-DGMJpCs6.js +3043 -0
- package/dist/{modal-BH2wi8Q0.js → modal-H_YHBjxJ.js} +7 -6
- package/dist/{modal.hooks-DcakflQ4.js → modal.hooks-B0Wrc9s2.js} +7 -1
- package/dist/ms-CBk2NkZ1.js +3037 -0
- package/dist/my-BWcPvvs5.js +3037 -0
- package/dist/nb-NO-D7azau2s.js +3043 -0
- package/dist/ne-D9CU-qx6.js +3043 -0
- package/dist/nl-BVhLZVXm.js +3043 -0
- package/dist/{numberedStep-DqtXyT11.js → numberedStep-C8e_uPaz.js} +1 -1
- package/dist/{optionAccessibleLabel-C5iZCrlq.js → optionAccessibleLabel-C0BRq4LF.js} +6 -6
- package/dist/{otpInput-CvPR3ZpP.js → otpInput-C8mlw_Cm.js} +8 -83
- package/dist/{passport-horizontal-hint-DzkhjC8Q.js → passport-horizontal-hint-6Ghn2EEN.js} +1 -1
- package/dist/{passport-vertical-hint-Bd0BQn2Y.js → passport-vertical-hint-UPFFpdf4.js} +1 -1
- package/dist/passwordInputComposed-CDbxJKHR.js +74 -0
- package/dist/{pdf-BUoY_2gv.js → pdf-CFubyG0B.js} +1 -1
- package/dist/pdfViewer-CCu7pBQv.js +2 -0
- package/dist/{pdfViewer-TTZmPABh.js → pdfViewer-DTwxqwSD.js} +4 -4
- package/dist/permissions-B0ctl0V9.js +212 -0
- package/dist/phone/phone.es.js +10 -9
- package/dist/phone/styles.css +1 -1
- package/dist/phone/styles.css.js +1 -0
- package/dist/{phoneInputComposed-byyszNoS.js → phoneInputComposed-Bz37hY_u.js} +20 -8412
- package/dist/pl-DWKpY783.js +3051 -0
- package/dist/{processing-B2eaSGLu.js → processing-CrNgzN1u.js} +2 -2
- package/dist/pt-B2_-n4Z3.js +3043 -0
- package/dist/pt-BR-CC8MxgMX.js +3043 -0
- package/dist/pt-PT-vo9--bzz.js +3043 -0
- package/dist/qe-signature/qe-signature.es.js +4 -4
- package/dist/radioGroupComposed-BFzxJVpZ.js +1 -0
- package/dist/{radioGroupComposed-DQzTWutW.js → radioGroupComposed-BrawV4FU.js} +15 -71
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -178
- package/dist/redirect-to-mobile/styles.css +2 -27
- package/dist/redirect-to-mobile/styles.css.js +1 -0
- package/dist/{registerIncodeElement-DW2PE_DX.js → registerIncodeElement-CbZczi4S.js} +1 -1
- package/dist/resendTimer-C0HqF9VE.js +79 -0
- package/dist/{useModuleLoader-DxOEZ0vn.js → resolveApiKey-DU0APKTv.js} +70 -222
- package/dist/{richText-CEwM8jib.js → richText-BEuqr0as.js} +9 -9
- package/dist/ro-DOhwcTr3.js +3047 -0
- package/dist/ru-CD71PeIH.js +3051 -0
- package/dist/ru-RU-DLHiNY0O.js +3051 -0
- package/dist/selfie/selfie.es.js +184 -8
- package/dist/selfie/styles.css +225 -36
- package/dist/selfie/styles.css.js +1 -0
- package/dist/signature/signature.es.js +8 -9
- package/dist/signature/styles.css.js +1 -0
- package/dist/sk-DaVWjX4k.js +3051 -0
- package/dist/sl-YiCpfUol.js +3051 -0
- package/dist/smsTabContent-C1C1g4GT.js +172 -0
- package/dist/so-B2bRmOT5.js +3043 -0
- package/dist/{spacer-DLEDuWEx.js → spacer-DZ-t7RMQ.js} +10 -10
- package/dist/spinner-hjbTcmA1.js +88 -0
- package/dist/sr-BbjKCO-a.js +3047 -0
- package/dist/sr-Latn-D-xKaOqV.js +3047 -0
- package/dist/sr-YU-1ULH6b8i.js +3047 -0
- package/dist/{statusPage-BF4qGjF3.js → statusPage-DeP-KBHD.js} +4 -4
- package/dist/sv-SE-5wAQ-CsE.js +3043 -0
- package/dist/sw-DVj-0--U.js +3043 -0
- package/dist/{tabs-BGL1oRLb.js → tabs-C8WsKO4V.js} +2 -2
- package/dist/th-TH-DAqLZmwn.js +3037 -0
- package/dist/th-ubpxty9O.js +3037 -0
- package/dist/themes/dark.css +125 -0
- package/dist/themes/light.css +124 -0
- package/dist/tl-DCL6tS5T.js +3043 -0
- package/dist/tl-PH-Wftt86RZ.js +3043 -0
- package/dist/tr-B58sWy89.js +3043 -0
- package/dist/{tutorial-LQuJ4dse.js → tutorial-BP1F722m.js} +40 -226
- package/dist/types/certificate-issuance.d.ts +4 -4
- package/dist/types/dynamic-forms.d.ts +177 -0
- package/dist/types/extensibility.d.ts +75 -23
- package/dist/types/flow.d.ts +37 -0
- package/dist/types/government-validation.d.ts +2 -1
- package/dist/types/index.d.ts +28 -4
- package/dist/types/video-selfie.d.ts +6 -161
- package/dist/typography-CYO7ELEl.js +53 -0
- package/dist/{uiConfig-Dqnjankd.js → uiConfig-BcjOx3PY.js} +184 -8
- package/dist/uk-BaklGIxd.js +3051 -0
- package/dist/uk-UA-BoawOp_y.js +3051 -0
- package/dist/ur-MYw3j3wD.js +3043 -0
- package/dist/useModuleLoader-DpcbSKBH.js +176 -0
- package/dist/uz-DWfToWrZ.js +3043 -0
- package/dist/{vendor-preact-BPXMFRom.js → vendor-preact-C0jX1Cbq.js} +68 -181
- package/dist/{verificationResult-q_zD_Pxh.js → verificationResult-Bre5Fb7M.js} +32 -25
- package/dist/vi-IY_487Pk.js +3037 -0
- package/dist/video-selfie/styles.css +51 -17
- package/dist/video-selfie/styles.css.js +1 -0
- package/dist/video-selfie/video-selfie.es.js +35 -23
- package/dist/watchlist/watchlist.es.js +7 -7
- package/dist/watchlist-for-business/styles.css.js +1 -0
- package/dist/{watchlistForBusiness-C_zqdY4P.js → watchlistForBusiness-BIrl-mYj.js} +28 -16
- package/dist/workflow/styles.css +1073 -356
- package/dist/workflow/workflow.es.js +17 -15
- package/dist/zh-B1yRDjHf.js +3037 -0
- package/dist/zh-CN-B2Yvvabk.js +3037 -0
- package/dist/zh-HANT-CdNxQtKM.js +3037 -0
- package/dist/zh-TW-BgqFmnMA.js +3037 -0
- package/package.json +32 -22
- package/dist/bottomSheet-BWEUBq8m.js +0 -38
- package/dist/dateInputComposed-BGC37jC7.js +0 -1
- package/dist/documentCapture-CO9kIxru.js +0 -2
- package/dist/dropdownComposed-Bf4EcKFw.js +0 -1
- package/dist/ekybModule-uN0ComAn.js +0 -2
- package/dist/ekycModule-B7KRJ7l3.js +0 -2
- package/dist/faceMatch-DjD2hgBp.js +0 -2
- package/dist/fieldComparison-DFH4hUM_.js +0 -2
- package/dist/inputComposed-kKtrvJU5.js +0 -1
- package/dist/pdfViewer-C1B-07Wu.js +0 -2
- package/dist/requiredLabelHint-Dx0WS2cR.js +0 -17
- package/dist/snackbar-eBOj46AK.js +0 -16
- package/dist/spinner-CJCOHUKx.js +0 -95
- package/dist/successIcon-DS8BLsgy.js +0 -30
- package/dist/types/dynamic-forms/styles.d.ts +0 -1
- /package/dist/{aligndevicelottie-CfoZ5Uus.js → aligndevicelottie-B12hbVhG.js} +0 -0
- /package/dist/{back-tutorial-BHyRHyET.js → back-tutorial-XdmQ0Wml.js} +0 -0
- /package/dist/{backdevicelottie-yKkczgFy.js → backdevicelottie-m_DOD8xE.js} +0 -0
- /package/dist/{blurdevicelottie-8BbophdM.js → blurdevicelottie-DQo_hTMD.js} +0 -0
- /package/dist/{browser-ponyfill-CBjGwwPW.js → browser-ponyfill-ZkeBm4ji.js} +0 -0
- /package/dist/{defineProperty-BbpBna-2.js → defineProperty-BojnCa44.js} +0 -0
- /package/dist/{flip-animation-CvN8FLNc.js → flip-animation-VicedlT5.js} +0 -0
- /package/dist/{frontdevicelottie-CFcahVLk.js → frontdevicelottie-CyIerlMv.js} +0 -0
- /package/dist/{glaredevicelottie-Cnvah0kz.js → glaredevicelottie-QM2C6Ivp.js} +0 -0
- /package/dist/{id-laser-h-BaUHzX-d.js → id-laser-h-B0-iXcvl.js} +0 -0
- /package/dist/{id-laser-v-Dv9yEYJE.js → id-laser-v-Bqh6vimi.js} +0 -0
- /package/dist/{id-tutorial-BOOsXlAJ.js → id-tutorial-IhmAzrIF.js} +0 -0
- /package/dist/{lottie_light-Bv56F2Ae.js → lottie_light-CzZ3CHBk.js} +0 -0
- /package/dist/{passport-tutorial-CeSup6m9.js → passport-tutorial-61vlloJS.js} +0 -0
- /package/dist/{selfieTutorial-CYa8bq6B.js → selfieTutorial-BRQ2QNxQ.js} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as cn } from "./spacer-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as SuccessIcon } from "./successIcon-DS8BLsgy.js";
|
|
1
|
+
import { S as k, _ as y, c as A, f as d, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
2
|
+
import { d as cn } from "./spacer-DZ-t7RMQ.js";
|
|
3
|
+
import { b as ErrorIcon, d as CloseIcon, h as CheckmarkCompactIcon, i as SearchIcon, m as ChevronDown, r as SuccessIcon } from "./icons-DNXYxUPA.js";
|
|
4
|
+
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
6
5
|
//#region src/shared/dropdownComposed/dropdownComposed.tsx
|
|
7
6
|
var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option", value, options, onChange, error, helper, showErrorIcon, showHelperIcon, suppressMessages = false, disabled = false, required, searchable = false, searchPlaceholder = "Search...", noResultsText = "No results found", name, tabIndex, onKeyDown, onBlur, renderSelectedLabel, siblingElement, class: className, "aria-label": ariaLabel, "data-testid": dataTestId }) => {
|
|
8
7
|
const [isOpen, setIsOpen] = d(false);
|
|
@@ -202,10 +201,11 @@ var DropdownComposed = ({ id, label, labelHint, placeholder = "Choose an option"
|
|
|
202
201
|
id: labelId,
|
|
203
202
|
htmlFor: id,
|
|
204
203
|
"data-testid": `${id}-label`,
|
|
205
|
-
children: [label,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
204
|
+
children: [label, /* @__PURE__ */ u(FieldLabelHint, {
|
|
205
|
+
className: "IncodeDropdownComposedLabelHint",
|
|
206
|
+
hint: labelHint,
|
|
207
|
+
required,
|
|
208
|
+
testId: `${id}-label-hint`
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
211
211
|
/* @__PURE__ */ u("div", {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as VerificationResult } from "
|
|
6
|
-
import { t as InputComposed } from "
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as EmailInput } from "
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { p as g, u as T, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent } from "../incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { x as Button } from "../icons-DNXYxUPA.js";
|
|
5
|
+
import { t as VerificationResult } from "../verificationResult-Bre5Fb7M.js";
|
|
6
|
+
import { t as InputComposed } from "../inputComposed-9aPipTS_.js";
|
|
7
|
+
import { r as countries } from "../countries-5e8kwG_m.js";
|
|
8
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-Bz37hY_u.js";
|
|
9
|
+
import { t as DropdownComposed } from "../dropdownComposed-DptsxuHA.js";
|
|
10
|
+
import { t as DateInputComposed } from "../dateInputComposed-ByhgHDX8.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-Do8qpZk7.js";
|
|
12
|
+
import { t as EmailInput } from "../emailInput-Dz8ukhAE.js";
|
|
13
13
|
import { createDynamicFormsManager } from "@incodetech/core/dynamic-forms";
|
|
14
14
|
import { formatCPF, isValidCPF } from "@incodetech/core/id-ocr";
|
|
15
|
-
//#region src/modules/dynamic-forms/
|
|
15
|
+
//#region src/modules/dynamic-forms/dynamic-forms.tsx
|
|
16
16
|
function getEffectiveType(question) {
|
|
17
17
|
return question.inputType ?? question.overrides ?? "TEXT";
|
|
18
18
|
}
|
|
@@ -230,13 +230,13 @@ var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting =
|
|
|
230
230
|
const { t } = useTranslation();
|
|
231
231
|
const title = screen.hideTitle ? void 0 : screen.title || t("dynamicForms.title");
|
|
232
232
|
const titleId = g();
|
|
233
|
-
const hintMode = T(() => getRequiredHintMode(screen.questions.map((q) => !q.isOptional)), [screen]);
|
|
234
233
|
const prefilledSet = T(() => new Set(prefilledQuestionIds), [prefilledQuestionIds]);
|
|
235
234
|
const nonEditableSet = T(() => new Set(nonEditableQuestionIds), [nonEditableQuestionIds]);
|
|
236
235
|
return /* @__PURE__ */ u(Page, {
|
|
237
236
|
className: "IncodeDynamicFormsPage",
|
|
238
237
|
title,
|
|
239
238
|
titleId: title ? titleId : void 0,
|
|
239
|
+
subtitle: t("forms.subtitle"),
|
|
240
240
|
hideFooterBranding: true,
|
|
241
241
|
children: [
|
|
242
242
|
isSubmitting && /* @__PURE__ */ u("div", {
|
|
@@ -251,10 +251,7 @@ var ScreenForm = ({ screen, answers, validationErrors, canSubmit, isSubmitting =
|
|
|
251
251
|
const errorKey = validationErrors?.[question.questionId];
|
|
252
252
|
const isPrefilled = prefilledSet.has(question.questionId);
|
|
253
253
|
const isReadOnly = nonEditableSet.has(question.questionId);
|
|
254
|
-
const
|
|
255
|
-
let labelHint;
|
|
256
|
-
if (isPrefilled) labelHint = t("forms.prefill.fromId") ?? void 0;
|
|
257
|
-
else if (hint) labelHint = t(`forms.label.${hint}`) ?? void 0;
|
|
254
|
+
const labelHint = isPrefilled ? t("forms.prefill.fromId") ?? void 0 : void 0;
|
|
258
255
|
return /* @__PURE__ */ u(QuestionInput, {
|
|
259
256
|
question,
|
|
260
257
|
value: answers[question.questionId] ?? "",
|
|
@@ -316,9 +313,17 @@ var DynamicFormsContent = ({ config, manager: externalManager, onFinish }) => {
|
|
|
316
313
|
onSubmit: () => manager.submit()
|
|
317
314
|
}, state.screenIndex);
|
|
318
315
|
}
|
|
316
|
+
if (state.status === "submitFailed") return /* @__PURE__ */ u(VerificationResult, {
|
|
317
|
+
status: "failure",
|
|
318
|
+
failureTitle: t("common.somethingWrong"),
|
|
319
|
+
onRetry: () => manager.retry(),
|
|
320
|
+
retryLabel: t("common.tryAgain"),
|
|
321
|
+
hideFooterBranding: false
|
|
322
|
+
});
|
|
319
323
|
if (state.status === "success") return /* @__PURE__ */ u(VerificationResult, {
|
|
320
324
|
status: "success",
|
|
321
|
-
successTitle: t("dynamicForms.success")
|
|
325
|
+
successTitle: t("dynamicForms.success"),
|
|
326
|
+
hideFooterBranding: false
|
|
322
327
|
});
|
|
323
328
|
if (state.status === "misconfigured") return /* @__PURE__ */ u(VerificationResult, {
|
|
324
329
|
status: "failure",
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.IncodeDynamicFormsPage {
|
|
3
|
+
animation: fadeIn var(--motion-fade-in-duration, .7s) ease-out;
|
|
4
|
+
animation-fill-mode: both;
|
|
5
|
+
}
|
|
6
|
+
|
|
2
7
|
.IncodeDynamicFormsPage .IncodePageTitleContainer {
|
|
3
8
|
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
4
9
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodeDynamicFormsPage {\n animation: fadeIn var(--motion-fade-in-duration, .7s) ease-out;\n animation-fill-mode: both;\n}\n\n.IncodeDynamicFormsPage .IncodePageTitleContainer {\n margin-top: var(--spacing-24, var(--spacing-24, 24px));\n}\n\n@media (min-width: 48rem) {\n .IncodeDynamicFormsPage.IncodePageContainer {\n align-items: stretch;\n }\n\n .IncodeDynamicFormsPage .IncodePageInner {\n height: 100%;\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n }\n}\n\n.IncodeDynamicFormsPage .IncodePageContent {\n padding-bottom: var(--spacing-16, var(--spacing-16, 16px));\n align-items: center;\n}\n\n@media (min-width: 48rem) {\n .IncodeDynamicFormsPage .IncodePageContent {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n }\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsProgress {\n margin-bottom: var(--spacing-4, var(--spacing-4, 4px));\n text-align: center;\n font-size: var(--text-sm, .875rem);\n line-height: var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));\n color: var(--text-secondary);\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsFields {\n margin-top: var(--spacing-32, var(--spacing-32, 32px));\n flex-direction: column;\n width: 100%;\n display: flex;\n}\n\n@media (min-width: 48rem) {\n .IncodeDynamicFormsPage .IncodeDynamicFormsFields {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n padding-bottom: var(--spacing-8, var(--spacing-8, 8px));\n flex: 1;\n overflow-y: auto;\n }\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsFields {\n max-width: var(--incode-form-max-w);\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsField {\n margin-bottom: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n align-items: flex-start;\n width: 100%;\n display: flex;\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsField--prefilled .IncodeInputComposedLabel, .IncodeDynamicFormsPage .IncodeDynamicFormsField--prefilled .IncodeDropdownComposedLabel {\n justify-content: space-between;\n align-items: baseline;\n width: 100%;\n display: flex;\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsField--prefilled .IncodeInputComposedLabelHint, .IncodeDynamicFormsPage .IncodeDynamicFormsField--prefilled .IncodeDropdownComposedLabelHint {\n color: var(--color-text-body-secondary, var(--text-body-500-secondary));\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsFooter {\n width: 100%;\n padding-top: var(--spacing-16, var(--spacing-16, 16px));\n}\n\n@media (min-width: 48rem) {\n .IncodeDynamicFormsPage .IncodeDynamicFormsFooter {\n flex-shrink: 0;\n }\n}\n\n.IncodeDynamicFormsPage .IncodeDynamicFormsFooter {\n max-width: var(--incode-form-max-w);\n}\n\n.IncodeDynamicFormsPage .IncodeSrOnly {\n clip-path: inset(50%);\n white-space: nowrap;\n border-width: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n";
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-DqA0hfNQ.js";
|
|
2
2
|
export { EkybModule };
|
package/dist/ekyb/styles.css
CHANGED
|
@@ -17,6 +17,14 @@
|
|
|
17
17
|
display: flex;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
@media (min-width: 48rem) {
|
|
21
|
+
.IncodeEkybPage .IncodeEkybForm {
|
|
22
|
+
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
23
|
+
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
20
28
|
.IncodeEkybPage .IncodeEkybForm .IncodeInputComposed, .IncodeEkybPage .IncodeEkybForm .IncodeDropdownComposed, .IncodeEkybPage .IncodeEkybForm .IncodeCountrySelector, .IncodeEkybPage .IncodeEkybForm .IncodeFormField {
|
|
21
29
|
margin-inline: auto;
|
|
22
30
|
}
|
|
@@ -78,7 +86,7 @@
|
|
|
78
86
|
margin-inline: auto;
|
|
79
87
|
margin-top: var(--spacing-16, var(--spacing-16, 16px));
|
|
80
88
|
width: 100%;
|
|
81
|
-
max-width:
|
|
89
|
+
max-width: var(--incode-form-max-w);
|
|
82
90
|
padding-block: var(--spacing-12, var(--spacing-12, 12px));
|
|
83
91
|
}
|
|
84
92
|
|
|
@@ -86,27 +94,21 @@
|
|
|
86
94
|
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
87
95
|
}
|
|
88
96
|
|
|
89
|
-
@media (min-width:
|
|
97
|
+
@media (min-width: 48rem) {
|
|
98
|
+
.IncodeEkybPage .IncodeEkybFooter {
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
90
102
|
.IncodeEkybPage.IncodePageContainer {
|
|
91
103
|
margin-top: var(--spacing-0, var(--spacing-none, 0px));
|
|
92
104
|
max-height: none;
|
|
93
105
|
}
|
|
94
106
|
|
|
95
107
|
.IncodeEkybPage.IncodeEkybPageScrollable {
|
|
96
|
-
max-width:
|
|
108
|
+
max-width: var(--ekyb-scrollable-page);
|
|
97
109
|
}
|
|
98
110
|
|
|
99
111
|
.IncodeEkybPage .IncodePageContent {
|
|
100
112
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
101
113
|
}
|
|
102
|
-
|
|
103
|
-
.IncodeEkybPage .IncodeEkybForm {
|
|
104
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
105
|
-
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
106
|
-
overflow-y: auto;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.IncodeEkybPage .IncodeEkybFooter {
|
|
110
|
-
flex-shrink: 0;
|
|
111
|
-
}
|
|
112
114
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodeEkybPage {\n animation: fadeIn var(--motion-fade-in-duration, .7s) ease-out;\n margin-inline: auto;\n animation-fill-mode: both;\n}\n\n.IncodeEkybPage .IncodeEkybSpinner {\n flex: 1;\n}\n\n.IncodeEkybPage .IncodeEkybForm {\n margin-top: var(--spacing-32, var(--spacing-32, 32px));\n gap: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n width: 100%;\n display: flex;\n}\n\n@media (min-width: 48rem) {\n .IncodeEkybPage .IncodeEkybForm {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n padding-bottom: var(--spacing-8, var(--spacing-8, 8px));\n overflow-y: auto;\n }\n}\n\n.IncodeEkybPage .IncodeEkybForm .IncodeInputComposed, .IncodeEkybPage .IncodeEkybForm .IncodeDropdownComposed, .IncodeEkybPage .IncodeEkybForm .IncodeCountrySelector, .IncodeEkybPage .IncodeEkybForm .IncodeFormField {\n margin-inline: auto;\n}\n\n.IncodeEkybPage .IncodeEkybForm .IncodeFormField {\n margin-bottom: var(--spacing-0, var(--spacing-none, 0px));\n}\n\n.IncodeEkybPage .IncodeEkybForm .IncodeAddressAutocomplete {\n margin-inline: auto;\n}\n\n.IncodeEkybPage .IncodeEkybCountrySelector {\n width: 100%;\n}\n\n.IncodeEkybPage .IncodeEkybUbos, .IncodeEkybPage .IncodeEkybUboEntry {\n gap: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n display: flex;\n}\n\n.IncodeEkybPage .IncodeEkybRemoveUbo {\n font-family: var(--typography-body-family);\n font-size: var(--typography-body-s-regular-size);\n font-weight: var(--typography-body-s-regular-weight);\n line-height: var(--typography-body-s-regular-line-height);\n letter-spacing: var(--typography-body-s-regular-letter-spacing);\n color: var(--color-text-status-negative, var(--text-status-negative));\n text-decoration-line: none;\n}\n\n.IncodeEkybPage .IncodeEkybAddUbo {\n text-align: center;\n font-family: var(--typography-button-family);\n font-size: var(--typography-button-m-underlined-size);\n font-weight: var(--typography-button-m-underlined-weight);\n line-height: var(--typography-button-m-underlined-line-height);\n letter-spacing: var(--typography-button-m-underlined-letter-spacing);\n -webkit-text-decoration-skip-ink: none;\n text-decoration-skip-ink: none;\n color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));\n text-decoration-line: underline;\n text-decoration-style: solid;\n text-decoration-thickness: auto;\n}\n\n.IncodeEkybPage .IncodeEkybAddUbo:hover {\n opacity: .8;\n}\n\n.IncodeEkybPage .IncodeEkybSectionHeader {\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h3-size);\n font-weight: var(--typography-headline-h3-weight);\n line-height: var(--typography-headline-h3-line-height);\n letter-spacing: var(--typography-headline-h3-letter-spacing);\n color: var(--color-input-text-label-default, var(--input-text-label-default));\n margin-inline: auto;\n margin-top: var(--spacing-16, var(--spacing-16, 16px));\n width: 100%;\n max-width: var(--incode-form-max-w);\n padding-block: var(--spacing-12, var(--spacing-12, 12px));\n}\n\n.IncodeEkybPage .IncodeEkybFooter {\n margin-top: var(--spacing-24, var(--spacing-24, 24px));\n}\n\n@media (min-width: 48rem) {\n .IncodeEkybPage .IncodeEkybFooter {\n flex-shrink: 0;\n }\n\n .IncodeEkybPage.IncodePageContainer {\n margin-top: var(--spacing-0, var(--spacing-none, 0px));\n max-height: none;\n }\n\n .IncodeEkybPage.IncodeEkybPageScrollable {\n max-width: var(--ekyb-scrollable-page);\n }\n\n .IncodeEkybPage .IncodePageContent {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n }\n}\n";
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spacer } from "./spacer-
|
|
5
|
-
import { t as Spinner } from "./spinner-
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-C5iZCrlq.js";
|
|
15
|
-
import { t as CountrySelector$1 } from "./countrySelector-COZ7XQHp.js";
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { S as k, _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-DZ-t7RMQ.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-hjbTcmA1.js";
|
|
6
|
+
import { x as Button } from "./icons-DNXYxUPA.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-Bre5Fb7M.js";
|
|
8
|
+
import { t as InputComposed } from "./inputComposed-9aPipTS_.js";
|
|
9
|
+
import { n as translateError, t as FormField } from "./formField-DWExlgnz.js";
|
|
10
|
+
import { t as DropdownComposed } from "./dropdownComposed-DptsxuHA.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
12
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-C0BRq4LF.js";
|
|
13
|
+
import { t as CountrySelector$1 } from "./countrySelector-Zbe2eGzy.js";
|
|
16
14
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
17
15
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
18
16
|
var CountrySelector = ({ value, onChange }) => {
|
|
@@ -20,6 +18,7 @@ var CountrySelector = ({ value, onChange }) => {
|
|
|
20
18
|
return /* @__PURE__ */ u(CountrySelector$1, {
|
|
21
19
|
id: "ekyb-country",
|
|
22
20
|
label: t("ekyb.country"),
|
|
21
|
+
required: true,
|
|
23
22
|
value,
|
|
24
23
|
onChange,
|
|
25
24
|
countryCodes: SUPPORTED_COUNTRIES,
|
|
@@ -29,12 +28,11 @@ var CountrySelector = ({ value, onChange }) => {
|
|
|
29
28
|
};
|
|
30
29
|
//#endregion
|
|
31
30
|
//#region src/modules/ekyb/fieldInput.tsx
|
|
32
|
-
var FieldInput = ({ field, value, error, errorParams, country: _country,
|
|
31
|
+
var FieldInput = ({ field, value, error, errorParams, country: _country, onChange, onBlur }) => {
|
|
33
32
|
const { t } = useTranslation();
|
|
34
33
|
if (field.type === "dropdown") return /* @__PURE__ */ u(DropdownComposed, {
|
|
35
34
|
id: `ekyb-${field.name}`,
|
|
36
35
|
label: t(field.label),
|
|
37
|
-
labelHint,
|
|
38
36
|
placeholder: field.placeholder ? t(field.placeholder) : void 0,
|
|
39
37
|
value,
|
|
40
38
|
options: (field.options ?? []).map((o) => {
|
|
@@ -60,14 +58,13 @@ var FieldInput = ({ field, value, error, errorParams, country: _country, labelHi
|
|
|
60
58
|
error,
|
|
61
59
|
errorParams,
|
|
62
60
|
required: field.required,
|
|
63
|
-
labelHint,
|
|
64
61
|
onChange,
|
|
65
62
|
onBlur
|
|
66
63
|
});
|
|
67
64
|
};
|
|
68
65
|
//#endregion
|
|
69
66
|
//#region src/modules/ekyb/uboInputs.tsx
|
|
70
|
-
var UboInputs = ({ ubos, validationErrors, canAddUbo,
|
|
67
|
+
var UboInputs = ({ ubos, validationErrors, canAddUbo, onSetField, onBlur, onAdd, onRemove }) => {
|
|
71
68
|
const { t } = useTranslation();
|
|
72
69
|
const containerRef = A(null);
|
|
73
70
|
const addButtonRef = A(null);
|
|
@@ -94,7 +91,6 @@ var UboInputs = ({ ubos, validationErrors, canAddUbo, labelHint, onSetField, onB
|
|
|
94
91
|
/* @__PURE__ */ u(InputComposed, {
|
|
95
92
|
id: `ubo-${index}-name`,
|
|
96
93
|
label: nameLabel,
|
|
97
|
-
labelHint,
|
|
98
94
|
name: `ubo-${index}-name`,
|
|
99
95
|
value: ubo.name,
|
|
100
96
|
error: translateError$2(validationErrors?.[`ubo-${index}-name`]),
|
|
@@ -106,7 +102,6 @@ var UboInputs = ({ ubos, validationErrors, canAddUbo, labelHint, onSetField, onB
|
|
|
106
102
|
/* @__PURE__ */ u(InputComposed, {
|
|
107
103
|
id: `ubo-${index}-surname`,
|
|
108
104
|
label: surnameLabel,
|
|
109
|
-
labelHint,
|
|
110
105
|
name: `ubo-${index}-surname`,
|
|
111
106
|
value: ubo.surname,
|
|
112
107
|
error: translateError$2(validationErrors?.[`ubo-${index}-surname`]),
|
|
@@ -214,14 +209,10 @@ var EkybForm = ({ state, manager }) => {
|
|
|
214
209
|
}, [postalCodeErrorKey]);
|
|
215
210
|
const businessFields = fields.filter((f) => !ADDRESS_FIELD_NAMES.has(f.name));
|
|
216
211
|
const addressFields = fields.filter((f) => ADDRESS_FIELD_NAMES.has(f.name));
|
|
217
|
-
const mode = T(() => getRequiredHintMode(fields.map((f) => f.required)), [fields]);
|
|
218
|
-
const labelHintFor = (required) => {
|
|
219
|
-
const hint = getFieldHint(mode, required);
|
|
220
|
-
return hint ? t(`forms.label.${hint}`) : void 0;
|
|
221
|
-
};
|
|
222
212
|
return /* @__PURE__ */ u(Page, {
|
|
223
213
|
className: `IncodeEkybPage${isScrollable ? " IncodeEkybPageScrollable" : ""}`,
|
|
224
214
|
title: t("ekyb.title"),
|
|
215
|
+
subtitle: t("forms.subtitle"),
|
|
225
216
|
children: [/* @__PURE__ */ u("div", {
|
|
226
217
|
ref: formRef,
|
|
227
218
|
className: "IncodeEkybForm",
|
|
@@ -235,7 +226,6 @@ var EkybForm = ({ state, manager }) => {
|
|
|
235
226
|
value: values[field.name] ?? "",
|
|
236
227
|
error: translateError$1(validationErrors?.[field.name]),
|
|
237
228
|
country,
|
|
238
|
-
labelHint: labelHintFor(field.required),
|
|
239
229
|
onChange: (name, value) => manager.setField(name, value),
|
|
240
230
|
onBlur: (name) => manager.validateField(name)
|
|
241
231
|
}, field.name)),
|
|
@@ -243,7 +233,6 @@ var EkybForm = ({ state, manager }) => {
|
|
|
243
233
|
ubos,
|
|
244
234
|
validationErrors,
|
|
245
235
|
canAddUbo,
|
|
246
|
-
labelHint: labelHintFor(true),
|
|
247
236
|
onSetField: (index, field, value) => manager.setUboField(index, field, value),
|
|
248
237
|
onBlur: (fieldKey) => manager.validateField(fieldKey),
|
|
249
238
|
onAdd: () => manager.addUbo(),
|
|
@@ -255,7 +244,6 @@ var EkybForm = ({ state, manager }) => {
|
|
|
255
244
|
}), addressFields.map((field) => {
|
|
256
245
|
if (field.name === "street") return /* @__PURE__ */ u(AddressAutocomplete, {
|
|
257
246
|
label: field.label,
|
|
258
|
-
labelHint: labelHintFor(field.required),
|
|
259
247
|
value: values.street ?? "",
|
|
260
248
|
error: translateError$1(validationErrors?.street),
|
|
261
249
|
suggestions: addressSuggestions,
|
|
@@ -272,7 +260,6 @@ var EkybForm = ({ state, manager }) => {
|
|
|
272
260
|
value: values[field.name] ?? "",
|
|
273
261
|
error: translateError$1(validationErrors?.[field.name]),
|
|
274
262
|
country,
|
|
275
|
-
labelHint: labelHintFor(field.required),
|
|
276
263
|
onChange: (name, value) => manager.setField(name, value),
|
|
277
264
|
onBlur: (name) => manager.validateField(name)
|
|
278
265
|
})
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-bRC6FW2H.js";
|
|
2
2
|
export { EkycModule };
|
package/dist/ekyc/styles.css
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
@media (min-width: 48rem) {
|
|
9
9
|
.IncodeEkycPage .IncodePageInner {
|
|
10
|
+
height: 100%;
|
|
10
11
|
padding-inline: var(--spacing-0, var(--spacing-none, 0px));
|
|
11
12
|
padding-block: var(--spacing-0, var(--spacing-none, 0px));
|
|
12
13
|
}
|
|
@@ -25,6 +26,14 @@
|
|
|
25
26
|
display: flex;
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
@media (min-width: 48rem) {
|
|
30
|
+
.IncodeEkycPage .IncodeEkycForm {
|
|
31
|
+
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
32
|
+
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
33
|
+
overflow-y: auto;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
28
37
|
.IncodeEkycPage .IncodeEkycForm .IncodeInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDropdownComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDateInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodePhoneInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeAddressAutocomplete {
|
|
29
38
|
margin-inline: auto;
|
|
30
39
|
}
|
|
@@ -61,6 +70,12 @@
|
|
|
61
70
|
display: flex;
|
|
62
71
|
}
|
|
63
72
|
|
|
73
|
+
@media (min-width: 48rem) {
|
|
74
|
+
.IncodeEkycPage .IncodeEkycFooter {
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
64
79
|
.IncodeEkycPage .IncodeEkycFooter .IncodeEkycSubmitError {
|
|
65
80
|
margin-bottom: var(--spacing-12, var(--spacing-12, 12px));
|
|
66
81
|
text-align: center;
|
|
@@ -77,32 +92,18 @@
|
|
|
77
92
|
margin-bottom: var(--spacing-16, var(--spacing-16, 16px));
|
|
78
93
|
}
|
|
79
94
|
|
|
80
|
-
@media (min-width:
|
|
95
|
+
@media (min-width: 48rem) {
|
|
81
96
|
.IncodeEkycPage.IncodePageContainer {
|
|
82
97
|
margin-top: var(--spacing-0, var(--spacing-none, 0px));
|
|
83
98
|
height: 100%;
|
|
84
99
|
max-height: none;
|
|
85
100
|
}
|
|
86
101
|
|
|
87
|
-
.IncodeEkycPage .IncodePageInner {
|
|
88
|
-
height: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
102
|
.IncodeEkycPage.IncodeEkycPageScrollable {
|
|
92
|
-
max-width:
|
|
103
|
+
max-width: var(--ekyb-scrollable-page);
|
|
93
104
|
}
|
|
94
105
|
|
|
95
106
|
.IncodeEkycPage .IncodePageContent {
|
|
96
107
|
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
97
108
|
}
|
|
98
|
-
|
|
99
|
-
.IncodeEkycPage .IncodeEkycForm {
|
|
100
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
101
|
-
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
102
|
-
overflow-y: auto;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.IncodeEkycPage .IncodeEkycFooter {
|
|
106
|
-
flex-shrink: 0;
|
|
107
|
-
}
|
|
108
109
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default "/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */\n.IncodeEkycPage {\n animation: fadeIn var(--motion-fade-in-duration, .7s) ease-out;\n margin-inline: auto;\n animation-fill-mode: both;\n}\n\n@media (min-width: 48rem) {\n .IncodeEkycPage .IncodePageInner {\n height: 100%;\n padding-inline: var(--spacing-0, var(--spacing-none, 0px));\n padding-block: var(--spacing-0, var(--spacing-none, 0px));\n }\n}\n\n.IncodeEkycPage .IncodeEkycSpinner {\n flex: 1;\n}\n\n.IncodeEkycPage .IncodeEkycForm {\n margin-top: var(--spacing-32, var(--spacing-32, 32px));\n gap: var(--spacing-16, var(--spacing-16, 16px));\n flex-direction: column;\n width: 100%;\n height: 100%;\n display: flex;\n}\n\n@media (min-width: 48rem) {\n .IncodeEkycPage .IncodeEkycForm {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n padding-bottom: var(--spacing-8, var(--spacing-8, 8px));\n overflow-y: auto;\n }\n}\n\n.IncodeEkycPage .IncodeEkycForm .IncodeInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDropdownComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDateInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodePhoneInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeAddressAutocomplete {\n margin-inline: auto;\n}\n\n.IncodeEkycPage .IncodeEkycForm .IncodeFormField {\n margin-bottom: var(--spacing-0, var(--spacing-none, 0px));\n}\n\n.IncodeEkycPage .IncodeEkycSectionHeader {\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h3-size);\n font-weight: var(--typography-headline-h3-weight);\n line-height: var(--typography-headline-h3-line-height);\n letter-spacing: var(--typography-headline-h3-letter-spacing);\n color: var(--color-input-text-label-default, var(--input-text-label-default));\n margin-inline: auto;\n margin-top: var(--spacing-16, var(--spacing-16, 16px));\n width: 100%;\n max-width: var(--incode-form-max-w);\n padding-block: var(--spacing-12, var(--spacing-12, 12px));\n}\n\n.IncodeEkycPage .IncodeEkycRadioGroup {\n width: 100%;\n max-width: var(--incode-form-max-w);\n margin-inline: auto;\n}\n\n.IncodeEkycPage .IncodeEkycFooter {\n margin-top: var(--spacing-24, var(--spacing-24, 24px));\n align-items: center;\n gap: var(--spacing-12, var(--spacing-12, 12px));\n flex-direction: column;\n display: flex;\n}\n\n@media (min-width: 48rem) {\n .IncodeEkycPage .IncodeEkycFooter {\n flex-shrink: 0;\n }\n}\n\n.IncodeEkycPage .IncodeEkycFooter .IncodeEkycSubmitError {\n margin-bottom: var(--spacing-12, var(--spacing-12, 12px));\n text-align: center;\n font-family: var(--typography-headline-family);\n font-size: var(--typography-headline-h5-size);\n font-weight: var(--typography-headline-h5-weight);\n line-height: var(--typography-headline-h5-line-height);\n letter-spacing: var(--typography-headline-h5-letter-spacing);\n color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));\n margin-top: 0;\n}\n\n.IncodeEkycPage .IncodeEkycFooter button {\n margin-bottom: var(--spacing-16, var(--spacing-16, 16px));\n}\n\n@media (min-width: 48rem) {\n .IncodeEkycPage.IncodePageContainer {\n margin-top: var(--spacing-0, var(--spacing-none, 0px));\n height: 100%;\n max-height: none;\n }\n\n .IncodeEkycPage.IncodeEkycPageScrollable {\n max-width: var(--ekyb-scrollable-page);\n }\n\n .IncodeEkycPage .IncodePageContent {\n min-height: var(--spacing-0, var(--spacing-none, 0px));\n }\n}\n";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as Spinner } from "./spinner-
|
|
5
|
-
import {
|
|
6
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
7
|
-
import {
|
|
8
|
-
import { t as PhoneInputComposed } from "./phoneInputComposed-
|
|
9
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
10
|
-
import { t as DateInputComposed } from "./dateInputComposed-
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-BcjOx3PY.js";
|
|
2
|
+
import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
+
import { S as useManager, b as useModuleTerminalCallbacks, c as Page, i as withStandaloneModuleBootstrap, t as IncodeComponent, v as useFormScrollable } from "./incodeComponent-DeVV0gEn.js";
|
|
4
|
+
import { t as Spinner } from "./spinner-hjbTcmA1.js";
|
|
5
|
+
import { x as Button } from "./icons-DNXYxUPA.js";
|
|
6
|
+
import { t as VerificationResult } from "./verificationResult-Bre5Fb7M.js";
|
|
7
|
+
import { n as translateError, t as FormField } from "./formField-DWExlgnz.js";
|
|
8
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-Bz37hY_u.js";
|
|
9
|
+
import { t as DropdownComposed } from "./dropdownComposed-DptsxuHA.js";
|
|
10
|
+
import { t as DateInputComposed } from "./dateInputComposed-ByhgHDX8.js";
|
|
11
|
+
import { t as RadioGroupComposed } from "./radioGroupComposed-BrawV4FU.js";
|
|
12
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-Do8qpZk7.js";
|
|
13
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-C0BRq4LF.js";
|
|
14
14
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
15
15
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
16
16
|
/**
|
|
@@ -81,15 +81,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
81
81
|
const postalCodeFieldRef = A(null);
|
|
82
82
|
const previousPostalCodeErrorRef = A(void 0);
|
|
83
83
|
const isScrollable = useFormScrollable(formRef, fields.length);
|
|
84
|
-
const mode = T(() => getRequiredHintMode(fields.filter((f) => !(f.name === "email" && hideEmail)).map((f) => f.readonly || prefilled[f.name] ? false : f.required)), [
|
|
85
|
-
fields,
|
|
86
|
-
hideEmail,
|
|
87
|
-
prefilled
|
|
88
|
-
]);
|
|
89
|
-
const labelHintFor = (effectiveRequired) => {
|
|
90
|
-
const hint = getFieldHint(mode, effectiveRequired);
|
|
91
|
-
return hint ? t(`forms.label.${hint}`) : void 0;
|
|
92
|
-
};
|
|
93
84
|
const postalCodeErrorKey = validationErrors?.postalCode?.key;
|
|
94
85
|
y(() => {
|
|
95
86
|
const previous = previousPostalCodeErrorRef.current;
|
|
@@ -110,6 +101,7 @@ var EkycForm = ({ state, manager }) => {
|
|
|
110
101
|
return /* @__PURE__ */ u(Page, {
|
|
111
102
|
className: `IncodeEkycPage${isScrollable ? " IncodeEkycPageScrollable" : ""}`,
|
|
112
103
|
title: t("verification.title"),
|
|
104
|
+
subtitle: t("forms.subtitle"),
|
|
113
105
|
children: [/* @__PURE__ */ u("div", {
|
|
114
106
|
ref: formRef,
|
|
115
107
|
className: "IncodeEkycForm",
|
|
@@ -128,12 +120,10 @@ var EkycForm = ({ state, manager }) => {
|
|
|
128
120
|
}
|
|
129
121
|
const isReadonly = field.readonly || prefilled[field.name];
|
|
130
122
|
const isFieldRequired = isReadonly ? false : field.required;
|
|
131
|
-
const labelHint = labelHintFor(isFieldRequired);
|
|
132
123
|
const fieldValue = values[field.name] ?? "";
|
|
133
124
|
const fieldError = validationErrors?.[field.name];
|
|
134
125
|
if (field.name === "street" && field.section === "address") return /* @__PURE__ */ u("div", { children: [sectionHeader, /* @__PURE__ */ u(AddressAutocomplete, {
|
|
135
126
|
label: field.label,
|
|
136
|
-
labelHint,
|
|
137
127
|
value: fieldValue,
|
|
138
128
|
error: fieldError?.key,
|
|
139
129
|
errorParams: fieldError?.params,
|
|
@@ -150,7 +140,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
150
140
|
return /* @__PURE__ */ u("div", { children: [sectionHeader, /* @__PURE__ */ u(DropdownComposed, {
|
|
151
141
|
id: `ekyc-${field.name}`,
|
|
152
142
|
label: dropdownLabel,
|
|
153
|
-
labelHint,
|
|
154
143
|
placeholder: field.placeholder ? t(field.placeholder) : void 0,
|
|
155
144
|
value: fieldValue,
|
|
156
145
|
options: (field.options ?? []).map((o) => {
|
|
@@ -175,7 +164,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
175
164
|
return /* @__PURE__ */ u("div", { children: [sectionHeader, /* @__PURE__ */ u(DateInputComposed, {
|
|
176
165
|
id: `ekyc-${field.name}`,
|
|
177
166
|
label: dateLabel,
|
|
178
|
-
labelHint,
|
|
179
167
|
autoComplete: getEkycAutocomplete(field.name),
|
|
180
168
|
value: fieldValue,
|
|
181
169
|
error: translateError$1(fieldError),
|
|
@@ -194,7 +182,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
194
182
|
return /* @__PURE__ */ u("div", { children: [sectionHeader, /* @__PURE__ */ u(PhoneInputComposed, {
|
|
195
183
|
id: `ekyc-${field.name}`,
|
|
196
184
|
label: phoneLabel,
|
|
197
|
-
labelHint,
|
|
198
185
|
autoComplete: getEkycAutocomplete(field.name),
|
|
199
186
|
countryCode: fieldsCountry,
|
|
200
187
|
value: fieldValue,
|
|
@@ -212,7 +199,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
212
199
|
id: `ekyc-${field.name}`,
|
|
213
200
|
class: "IncodeEkycRadioGroup",
|
|
214
201
|
label: t(field.label),
|
|
215
|
-
labelHint,
|
|
216
202
|
value: fieldValue,
|
|
217
203
|
options: (field.options ?? []).map((option) => ({
|
|
218
204
|
value: option.value,
|
|
@@ -238,7 +224,6 @@ var EkycForm = ({ state, manager }) => {
|
|
|
238
224
|
placeholder: field.placeholder,
|
|
239
225
|
placeholderParams: field.placeholderParams,
|
|
240
226
|
required: isFieldRequired,
|
|
241
|
-
labelHint,
|
|
242
227
|
readonly: isReadonly,
|
|
243
228
|
maxLength: field.maxLength,
|
|
244
229
|
onChange: (name, value) => manager.setField(name, value),
|