@incodetech/prizma-core-screens 0.2.4 → 0.2.12
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/BiometricConsentScreen.d.ts +95 -0
- package/dist/BiometricConsentScreen.js +91 -0
- package/dist/BiometricConsentStrings.d.ts +84 -0
- package/dist/BiometricConsentStrings.js +31 -0
- package/dist/CaptureScreen.d.ts +13 -0
- package/dist/CaptureScreen.js +2 -2
- package/dist/CurpEnterScreen.d.ts +7 -0
- package/dist/CurpEnterScreen.js +17 -3
- package/dist/CurpGenerateScreen.d.ts +8 -0
- package/dist/CurpGenerateScreen.js +28 -13
- package/dist/CurpLayout.css +8 -34
- package/dist/CurpStrings.d.ts +16 -2
- package/dist/DemoScreensLayout.css +16 -0
- package/dist/DemoScreensRedirectScreen.d.ts +6 -1
- package/dist/DemoScreensRedirectScreen.js +3 -2
- package/dist/DemoScreensStrings.d.ts +5 -0
- package/dist/DigitalIdUploadErrorScreen.d.ts +31 -0
- package/dist/DigitalIdUploadErrorScreen.js +26 -0
- package/dist/DigitalIdUploadFileTooLargeScreen.d.ts +27 -0
- package/dist/DigitalIdUploadFileTooLargeScreen.js +21 -0
- package/dist/DigitalIdUploadReviewScreen.d.ts +57 -0
- package/dist/DigitalIdUploadReviewScreen.js +44 -0
- package/dist/DigitalIdUploadStrings.d.ts +64 -0
- package/dist/DigitalIdUploadStrings.js +19 -0
- package/dist/DigitalIdUploadTutorialScreen.d.ts +28 -0
- package/dist/DigitalIdUploadTutorialScreen.js +23 -0
- package/dist/DocumentCaptureIllustration.d.ts +1 -1
- package/dist/EkybAddressDetailsScreen.d.ts +7 -0
- package/dist/EkybAddressDetailsScreen.js +25 -7
- package/dist/EkybBusinessDetailsScreen.d.ts +6 -0
- package/dist/EkybBusinessDetailsScreen.js +23 -6
- package/dist/EkybCountryScreen.d.ts +13 -5
- package/dist/EkybCountryScreen.js +41 -10
- package/dist/EkybOwnersScreen.d.ts +8 -0
- package/dist/EkybOwnersScreen.js +26 -3
- package/dist/EkybStrings.d.ts +32 -10
- package/dist/EkycCountryCatalog.d.ts +4 -1
- package/dist/EkycCountryCatalog.js +5 -3
- package/dist/EkycCountryFormScreen.d.ts +12 -3
- package/dist/EkycCountryFormScreen.js +28 -10
- package/dist/EkycDetailsScreen.d.ts +7 -0
- package/dist/EkycDetailsScreen.js +21 -4
- package/dist/EkycStrings.d.ts +14 -2
- package/dist/ElectronicSignatureLayout.css +6 -0
- package/dist/EmailInputStrings.d.ts +11 -1
- package/dist/EmailInputVerifyScreen.d.ts +7 -0
- package/dist/EmailInputVerifyScreen.js +17 -3
- package/dist/ErrorScreensScreen.d.ts +5 -2
- package/dist/ErrorScreensScreen.js +15 -4
- package/dist/ErrorScreensStrings.d.ts +17 -2
- package/dist/ErrorScreensStrings.js +18 -10
- package/dist/FaceCaptureCapturingScreen.d.ts +63 -0
- package/dist/FaceCaptureCapturingScreen.js +62 -2
- package/dist/FaceCaptureLayout.css +69 -4
- package/dist/FaceCaptureStrings.d.ts +23 -0
- package/dist/FaceMatchComparisonScreen.d.ts +3 -3
- package/dist/FaceMatchLayout.css +21 -12
- package/dist/FormScreen.css +30 -0
- package/dist/FormScreen.d.ts +28 -0
- package/dist/FormScreen.js +3 -2
- package/dist/FormsLongFormScreen.d.ts +8 -0
- package/dist/FormsLongFormScreen.js +34 -13
- package/dist/FormsStrings.d.ts +11 -1
- package/dist/GeolocationBrowserStepsScreen.d.ts +6 -2
- package/dist/GeolocationBrowserStepsScreen.js +7 -3
- package/dist/GeolocationStrings.d.ts +3 -0
- package/dist/IdCaptureLayout.css +205 -2
- package/dist/IdCaptureStageScreen.d.ts +47 -0
- package/dist/IdCaptureStageScreen.js +39 -3
- package/dist/IdCaptureStrings.d.ts +19 -0
- package/dist/ListScreen.d.ts +21 -0
- package/dist/ListScreen.js +7 -2
- package/dist/LoaderScreen.d.ts +7 -5
- package/dist/LoaderScreen.js +7 -5
- package/dist/LoadersStrings.d.ts +18 -5
- package/dist/OcrReviewErrorScreen.d.ts +30 -0
- package/dist/OcrReviewErrorScreen.js +24 -0
- package/dist/OcrReviewLayout.css +24 -0
- package/dist/OcrReviewLoadingScreen.d.ts +25 -0
- package/dist/OcrReviewLoadingScreen.js +19 -0
- package/dist/OcrReviewScreen.d.ts +76 -0
- package/dist/OcrReviewScreen.js +65 -0
- package/dist/OcrReviewStrings.d.ts +47 -0
- package/dist/OcrReviewStrings.js +17 -0
- package/dist/OcrReviewSuccessScreen.d.ts +30 -0
- package/dist/OcrReviewSuccessScreen.js +24 -0
- package/dist/PermissionsAllowScreen.d.ts +8 -11
- package/dist/PermissionsAllowScreen.js +8 -11
- package/dist/PermissionsAskScreen.d.ts +41 -0
- package/dist/PermissionsAskScreen.js +43 -0
- package/dist/PermissionsBrowserStepsScreen.d.ts +9 -2
- package/dist/PermissionsBrowserStepsScreen.js +12 -3
- package/dist/PermissionsLayout.css +47 -0
- package/dist/PermissionsStrings.d.ts +20 -9
- package/dist/PermissionsStrings.js +10 -4
- package/dist/PhoneInputLayout.css +10 -9
- package/dist/PhoneInputOtpScreen.d.ts +8 -0
- package/dist/PhoneInputOtpScreen.js +26 -19
- package/dist/PhoneInputStrings.d.ts +22 -4
- package/dist/PhoneInputVerifyScreen.d.ts +8 -0
- package/dist/PhoneInputVerifyScreen.js +36 -7
- package/dist/QualifiedSignatureAcceptScreen.js +6 -1
- package/dist/QualifiedSignatureDocumentScreen.d.ts +17 -10
- package/dist/QualifiedSignatureDocumentScreen.js +22 -17
- package/dist/QualifiedSignatureLayout.css +76 -0
- package/dist/QualifiedSignatureResultScreen.d.ts +16 -13
- package/dist/QualifiedSignatureResultScreen.js +17 -18
- package/dist/QualifiedSignatureStrings.d.ts +19 -2
- package/dist/ResultScreen.d.ts +8 -0
- package/dist/ResultScreen.js +14 -3
- package/dist/ReusabilityCredentialSelectionScreen.d.ts +95 -0
- package/dist/ReusabilityCredentialSelectionScreen.js +94 -0
- package/dist/ReusabilityLayout.css +241 -0
- package/dist/ReusabilityPrivacyPolicyScreen.d.ts +55 -0
- package/dist/ReusabilityPrivacyPolicyScreen.js +44 -0
- package/dist/ReusabilityStrings.d.ts +85 -0
- package/dist/ReusabilityStrings.js +37 -0
- package/dist/ReviewScreen.d.ts +38 -12
- package/dist/ReviewScreen.js +41 -8
- package/dist/ScreenLayout.css +382 -6
- package/dist/ScreenNav.css +8 -0
- package/dist/ScreenNav.d.ts +15 -2
- package/dist/ScreenNav.js +10 -3
- package/dist/VideoSelfieErrorScreen.js +1 -1
- package/dist/VideoSelfieIdCaptureScreen.d.ts +10 -3
- package/dist/VideoSelfieIdCaptureScreen.js +45 -14
- package/dist/VideoSelfieLayout.css +467 -34
- package/dist/VideoSelfieSelfieCaptureScreen.d.ts +44 -27
- package/dist/VideoSelfieSelfieCaptureScreen.js +65 -39
- package/dist/VideoSelfieSpeakScreen.js +19 -2
- package/dist/VideoSelfieStrings.d.ts +82 -13
- package/dist/VideoSelfieTurnHeadScreen.d.ts +51 -0
- package/dist/VideoSelfieTurnHeadScreen.js +66 -0
- package/dist/VideoSelfieTutorialScreen.d.ts +9 -0
- package/dist/VideoSelfieTutorialScreen.js +22 -5
- package/dist/VideoSelfieWaveScreen.d.ts +53 -0
- package/dist/VideoSelfieWaveScreen.js +62 -0
- package/dist/ViewfinderScreen.css +36 -0
- package/dist/WatchlistBusinessFormScreen.d.ts +11 -7
- package/dist/WatchlistBusinessFormScreen.js +27 -13
- package/dist/WatchlistBusinessStrings.d.ts +21 -7
- package/dist/flows.d.ts +8 -0
- package/dist/flows.js +17 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.js +14 -0
- package/dist/styles.css +3 -0
- package/dist/types.d.ts +3 -1
- package/package.json +79 -3
- package/samples/video-selfie-camera-wide.jpg +0 -0
- package/samples/video-selfie-room-wide.jpg +0 -0
- package/samples/video-selfie-room.png +0 -0
- package/src/BiometricConsentScreen.tsx +192 -0
- package/src/BiometricConsentStrings.ts +119 -0
- package/src/CaptureScreen.tsx +17 -0
- package/src/CurpEnterScreen.tsx +21 -4
- package/src/CurpGenerateScreen.tsx +46 -22
- package/src/CurpLayout.css +8 -34
- package/src/CurpStrings.ts +22 -2
- package/src/DemoScreensLayout.css +16 -0
- package/src/DemoScreensRedirectScreen.tsx +14 -6
- package/src/DemoScreensStrings.ts +5 -0
- package/src/DigitalIdUploadErrorScreen.tsx +83 -0
- package/src/DigitalIdUploadFileTooLargeScreen.tsx +67 -0
- package/src/DigitalIdUploadReviewScreen.tsx +119 -0
- package/src/DigitalIdUploadStrings.ts +88 -0
- package/src/DigitalIdUploadTutorialScreen.tsx +59 -0
- package/src/DocumentCaptureIllustration.tsx +1 -1
- package/src/EkybAddressDetailsScreen.tsx +32 -4
- package/src/EkybBusinessDetailsScreen.tsx +23 -5
- package/src/EkybCountryScreen.tsx +45 -7
- package/src/EkybOwnersScreen.tsx +34 -3
- package/src/EkybStrings.ts +34 -10
- package/src/EkycCountryCatalog.ts +9 -4
- package/src/EkycCountryFormScreen.tsx +51 -12
- package/src/EkycDetailsScreen.tsx +22 -1
- package/src/EkycStrings.ts +14 -2
- package/src/ElectronicSignatureLayout.css +6 -0
- package/src/EmailInputStrings.ts +12 -1
- package/src/EmailInputVerifyScreen.tsx +21 -4
- package/src/ErrorScreensScreen.tsx +15 -4
- package/src/ErrorScreensStrings.ts +37 -12
- package/src/FaceCaptureCapturingScreen.tsx +102 -13
- package/src/FaceCaptureLayout.css +69 -4
- package/src/FaceCaptureStrings.ts +24 -0
- package/src/FaceMatchComparisonScreen.tsx +3 -3
- package/src/FaceMatchLayout.css +21 -12
- package/src/FormScreen.css +30 -0
- package/src/FormScreen.tsx +34 -0
- package/src/FormsLongFormScreen.tsx +41 -13
- package/src/FormsStrings.ts +12 -1
- package/src/GeolocationBrowserStepsScreen.tsx +6 -3
- package/src/GeolocationStrings.ts +3 -0
- package/src/IdCaptureLayout.css +205 -2
- package/src/IdCaptureStageScreen.tsx +75 -0
- package/src/IdCaptureStrings.ts +19 -0
- package/src/ListScreen.tsx +58 -10
- package/src/LoaderScreen.tsx +7 -5
- package/src/LoadersStrings.ts +18 -5
- package/src/OcrReviewErrorScreen.tsx +53 -0
- package/src/OcrReviewLayout.css +24 -0
- package/src/OcrReviewLoadingScreen.tsx +48 -0
- package/src/OcrReviewScreen.tsx +190 -0
- package/src/OcrReviewStrings.ts +69 -0
- package/src/OcrReviewSuccessScreen.tsx +52 -0
- package/src/PermissionsAllowScreen.tsx +9 -10
- package/src/PermissionsAskScreen.tsx +105 -0
- package/src/PermissionsBrowserStepsScreen.tsx +11 -3
- package/src/PermissionsLayout.css +47 -0
- package/src/PermissionsStrings.ts +42 -12
- package/src/PhoneInputLayout.css +10 -9
- package/src/PhoneInputOtpScreen.tsx +23 -3
- package/src/PhoneInputStrings.ts +23 -4
- package/src/PhoneInputVerifyScreen.tsx +41 -5
- package/src/QualifiedSignatureAcceptScreen.tsx +12 -1
- package/src/QualifiedSignatureDocumentScreen.tsx +31 -19
- package/src/QualifiedSignatureLayout.css +76 -0
- package/src/QualifiedSignatureResultScreen.tsx +28 -26
- package/src/QualifiedSignatureStrings.ts +19 -2
- package/src/ResultScreen.tsx +33 -2
- package/src/ReusabilityCredentialSelectionScreen.tsx +246 -0
- package/src/ReusabilityLayout.css +241 -0
- package/src/ReusabilityPrivacyPolicyScreen.tsx +109 -0
- package/src/ReusabilityStrings.ts +127 -0
- package/src/ReviewScreen.tsx +96 -27
- package/src/ScreenLayout.css +382 -6
- package/src/ScreenNav.css +8 -0
- package/src/ScreenNav.tsx +35 -5
- package/src/VideoSelfieErrorScreen.tsx +1 -1
- package/src/VideoSelfieIdCaptureScreen.tsx +125 -31
- package/src/VideoSelfieLayout.css +467 -34
- package/src/VideoSelfieSelfieCaptureScreen.tsx +110 -57
- package/src/VideoSelfieSpeakScreen.tsx +34 -15
- package/src/VideoSelfieStrings.ts +89 -14
- package/src/VideoSelfieTurnHeadScreen.tsx +162 -0
- package/src/VideoSelfieTutorialScreen.tsx +45 -23
- package/src/VideoSelfieWaveScreen.tsx +143 -0
- package/src/ViewfinderScreen.css +36 -0
- package/src/WatchlistBusinessFormScreen.tsx +35 -16
- package/src/WatchlistBusinessStrings.ts +21 -7
- package/src/flows.ts +25 -0
- package/src/index.ts +88 -3
- package/src/styles.css +3 -0
- package/src/types.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/prizma-core-screens",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Prizma Design System — SDK module screens: composed, responsive, brand-themeable React screens built from @incodetech/prizma-core-web.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"import": "./dist/index.js"
|
|
17
17
|
},
|
|
18
|
+
"./biometric-consent-screen": {
|
|
19
|
+
"source": "./src/BiometricConsentScreen.tsx",
|
|
20
|
+
"types": "./dist/BiometricConsentScreen.d.ts",
|
|
21
|
+
"import": "./dist/BiometricConsentScreen.js"
|
|
22
|
+
},
|
|
18
23
|
"./capture-overlay": {
|
|
19
24
|
"source": "./src/CaptureOverlay.tsx",
|
|
20
25
|
"types": "./dist/CaptureOverlay.d.ts",
|
|
@@ -115,6 +120,26 @@
|
|
|
115
120
|
"types": "./dist/DemoScreensTermsScreen.d.ts",
|
|
116
121
|
"import": "./dist/DemoScreensTermsScreen.js"
|
|
117
122
|
},
|
|
123
|
+
"./digital-id-upload-error-screen": {
|
|
124
|
+
"source": "./src/DigitalIdUploadErrorScreen.tsx",
|
|
125
|
+
"types": "./dist/DigitalIdUploadErrorScreen.d.ts",
|
|
126
|
+
"import": "./dist/DigitalIdUploadErrorScreen.js"
|
|
127
|
+
},
|
|
128
|
+
"./digital-id-upload-file-too-large-screen": {
|
|
129
|
+
"source": "./src/DigitalIdUploadFileTooLargeScreen.tsx",
|
|
130
|
+
"types": "./dist/DigitalIdUploadFileTooLargeScreen.d.ts",
|
|
131
|
+
"import": "./dist/DigitalIdUploadFileTooLargeScreen.js"
|
|
132
|
+
},
|
|
133
|
+
"./digital-id-upload-review-screen": {
|
|
134
|
+
"source": "./src/DigitalIdUploadReviewScreen.tsx",
|
|
135
|
+
"types": "./dist/DigitalIdUploadReviewScreen.d.ts",
|
|
136
|
+
"import": "./dist/DigitalIdUploadReviewScreen.js"
|
|
137
|
+
},
|
|
138
|
+
"./digital-id-upload-tutorial-screen": {
|
|
139
|
+
"source": "./src/DigitalIdUploadTutorialScreen.tsx",
|
|
140
|
+
"types": "./dist/DigitalIdUploadTutorialScreen.d.ts",
|
|
141
|
+
"import": "./dist/DigitalIdUploadTutorialScreen.js"
|
|
142
|
+
},
|
|
118
143
|
"./document-capture-capture-screen": {
|
|
119
144
|
"source": "./src/DocumentCaptureCaptureScreen.tsx",
|
|
120
145
|
"types": "./dist/DocumentCaptureCaptureScreen.d.ts",
|
|
@@ -495,11 +520,36 @@
|
|
|
495
520
|
"types": "./dist/NfcTutorialScreen.d.ts",
|
|
496
521
|
"import": "./dist/NfcTutorialScreen.js"
|
|
497
522
|
},
|
|
523
|
+
"./ocr-review-error-screen": {
|
|
524
|
+
"source": "./src/OcrReviewErrorScreen.tsx",
|
|
525
|
+
"types": "./dist/OcrReviewErrorScreen.d.ts",
|
|
526
|
+
"import": "./dist/OcrReviewErrorScreen.js"
|
|
527
|
+
},
|
|
528
|
+
"./ocr-review-loading-screen": {
|
|
529
|
+
"source": "./src/OcrReviewLoadingScreen.tsx",
|
|
530
|
+
"types": "./dist/OcrReviewLoadingScreen.d.ts",
|
|
531
|
+
"import": "./dist/OcrReviewLoadingScreen.js"
|
|
532
|
+
},
|
|
533
|
+
"./ocr-review-screen": {
|
|
534
|
+
"source": "./src/OcrReviewScreen.tsx",
|
|
535
|
+
"types": "./dist/OcrReviewScreen.d.ts",
|
|
536
|
+
"import": "./dist/OcrReviewScreen.js"
|
|
537
|
+
},
|
|
538
|
+
"./ocr-review-success-screen": {
|
|
539
|
+
"source": "./src/OcrReviewSuccessScreen.tsx",
|
|
540
|
+
"types": "./dist/OcrReviewSuccessScreen.d.ts",
|
|
541
|
+
"import": "./dist/OcrReviewSuccessScreen.js"
|
|
542
|
+
},
|
|
498
543
|
"./permissions-allow-screen": {
|
|
499
544
|
"source": "./src/PermissionsAllowScreen.tsx",
|
|
500
545
|
"types": "./dist/PermissionsAllowScreen.d.ts",
|
|
501
546
|
"import": "./dist/PermissionsAllowScreen.js"
|
|
502
547
|
},
|
|
548
|
+
"./permissions-ask-screen": {
|
|
549
|
+
"source": "./src/PermissionsAskScreen.tsx",
|
|
550
|
+
"types": "./dist/PermissionsAskScreen.d.ts",
|
|
551
|
+
"import": "./dist/PermissionsAskScreen.js"
|
|
552
|
+
},
|
|
503
553
|
"./permissions-browser-steps-screen": {
|
|
504
554
|
"source": "./src/PermissionsBrowserStepsScreen.tsx",
|
|
505
555
|
"types": "./dist/PermissionsBrowserStepsScreen.d.ts",
|
|
@@ -575,6 +625,16 @@
|
|
|
575
625
|
"types": "./dist/ResultScreen.d.ts",
|
|
576
626
|
"import": "./dist/ResultScreen.js"
|
|
577
627
|
},
|
|
628
|
+
"./reusability-credential-selection-screen": {
|
|
629
|
+
"source": "./src/ReusabilityCredentialSelectionScreen.tsx",
|
|
630
|
+
"types": "./dist/ReusabilityCredentialSelectionScreen.d.ts",
|
|
631
|
+
"import": "./dist/ReusabilityCredentialSelectionScreen.js"
|
|
632
|
+
},
|
|
633
|
+
"./reusability-privacy-policy-screen": {
|
|
634
|
+
"source": "./src/ReusabilityPrivacyPolicyScreen.tsx",
|
|
635
|
+
"types": "./dist/ReusabilityPrivacyPolicyScreen.d.ts",
|
|
636
|
+
"import": "./dist/ReusabilityPrivacyPolicyScreen.js"
|
|
637
|
+
},
|
|
578
638
|
"./review-screen": {
|
|
579
639
|
"source": "./src/ReviewScreen.tsx",
|
|
580
640
|
"types": "./dist/ReviewScreen.d.ts",
|
|
@@ -655,11 +715,21 @@
|
|
|
655
715
|
"types": "./dist/VideoSelfieSuccessScreen.d.ts",
|
|
656
716
|
"import": "./dist/VideoSelfieSuccessScreen.js"
|
|
657
717
|
},
|
|
718
|
+
"./video-selfie-turn-head-screen": {
|
|
719
|
+
"source": "./src/VideoSelfieTurnHeadScreen.tsx",
|
|
720
|
+
"types": "./dist/VideoSelfieTurnHeadScreen.d.ts",
|
|
721
|
+
"import": "./dist/VideoSelfieTurnHeadScreen.js"
|
|
722
|
+
},
|
|
658
723
|
"./video-selfie-tutorial-screen": {
|
|
659
724
|
"source": "./src/VideoSelfieTutorialScreen.tsx",
|
|
660
725
|
"types": "./dist/VideoSelfieTutorialScreen.d.ts",
|
|
661
726
|
"import": "./dist/VideoSelfieTutorialScreen.js"
|
|
662
727
|
},
|
|
728
|
+
"./video-selfie-wave-screen": {
|
|
729
|
+
"source": "./src/VideoSelfieWaveScreen.tsx",
|
|
730
|
+
"types": "./dist/VideoSelfieWaveScreen.d.ts",
|
|
731
|
+
"import": "./dist/VideoSelfieWaveScreen.js"
|
|
732
|
+
},
|
|
663
733
|
"./viewfinder-screen": {
|
|
664
734
|
"source": "./src/ViewfinderScreen.tsx",
|
|
665
735
|
"types": "./dist/ViewfinderScreen.d.ts",
|
|
@@ -694,8 +764,11 @@
|
|
|
694
764
|
"./forms-layout.css": "./dist/FormsLayout.css",
|
|
695
765
|
"./id-capture-layout.css": "./dist/IdCaptureLayout.css",
|
|
696
766
|
"./nfc-layout.css": "./dist/NfcLayout.css",
|
|
767
|
+
"./ocr-review-layout.css": "./dist/OcrReviewLayout.css",
|
|
768
|
+
"./permissions-layout.css": "./dist/PermissionsLayout.css",
|
|
697
769
|
"./phone-input-layout.css": "./dist/PhoneInputLayout.css",
|
|
698
770
|
"./qualified-signature-layout.css": "./dist/QualifiedSignatureLayout.css",
|
|
771
|
+
"./reusability-layout.css": "./dist/ReusabilityLayout.css",
|
|
699
772
|
"./screen-layout.css": "./dist/ScreenLayout.css",
|
|
700
773
|
"./screen-nav.css": "./dist/ScreenNav.css",
|
|
701
774
|
"./screen-shell.css": "./dist/ScreenShell.css",
|
|
@@ -720,7 +793,10 @@
|
|
|
720
793
|
"./samples/selfie-hat.png": "./samples/selfie-hat.png",
|
|
721
794
|
"./samples/selfie-mask.png": "./samples/selfie-mask.png",
|
|
722
795
|
"./samples/selfie.png": "./samples/selfie.png",
|
|
796
|
+
"./samples/video-selfie-camera-wide.jpg": "./samples/video-selfie-camera-wide.jpg",
|
|
723
797
|
"./samples/video-selfie-camera.png": "./samples/video-selfie-camera.png",
|
|
798
|
+
"./samples/video-selfie-room-wide.jpg": "./samples/video-selfie-room-wide.jpg",
|
|
799
|
+
"./samples/video-selfie-room.png": "./samples/video-selfie-room.png",
|
|
724
800
|
"./package.json": "./package.json"
|
|
725
801
|
},
|
|
726
802
|
"files": [
|
|
@@ -739,8 +815,8 @@
|
|
|
739
815
|
},
|
|
740
816
|
"dependencies": {
|
|
741
817
|
"@incodetech/prizma-core-icons": "^0.4.0",
|
|
742
|
-
"@incodetech/prizma-core-tokens": "^0.
|
|
743
|
-
"@incodetech/prizma-core-web": "^0.
|
|
818
|
+
"@incodetech/prizma-core-tokens": "^0.15.2",
|
|
819
|
+
"@incodetech/prizma-core-web": "^0.15.2"
|
|
744
820
|
},
|
|
745
821
|
"devDependencies": {
|
|
746
822
|
"@types/react": "^18.3.12",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { PrizmaCheckbox } from '@incodetech/prizma-core-web/checkbox';
|
|
3
|
+
import { PrizmaModalContent } from '@incodetech/prizma-core-web/modal';
|
|
4
|
+
import { PrizmaFormScreen, type PrizmaFormScreenProps } from './FormScreen';
|
|
5
|
+
import type { PrizmaScreenActionHandler, PrizmaScreenOverrides } from './types';
|
|
6
|
+
import type { BiometricConsentState, BiometricConsentStrings } from './BiometricConsentStrings';
|
|
7
|
+
import './ScreenLayout.css';
|
|
8
|
+
|
|
9
|
+
export interface BiometricConsentScreenProps
|
|
10
|
+
extends Omit<
|
|
11
|
+
PrizmaFormScreenProps,
|
|
12
|
+
| 'title'
|
|
13
|
+
| 'subtitle'
|
|
14
|
+
| 'ctaLabel'
|
|
15
|
+
| 'ctaDisabled'
|
|
16
|
+
| 'verifiedLabel'
|
|
17
|
+
| 'children'
|
|
18
|
+
| 'navLabel'
|
|
19
|
+
| 'linkLabel'
|
|
20
|
+
| 'linkDisabled'
|
|
21
|
+
| 'linkContent'
|
|
22
|
+
| 'overlay'
|
|
23
|
+
// The column shape is the section's, not a host's.
|
|
24
|
+
| 'fieldsOffset'
|
|
25
|
+
| 'fieldsGap'
|
|
26
|
+
| 'fieldsAlign'
|
|
27
|
+
| 'scrollFields'
|
|
28
|
+
> {
|
|
29
|
+
/** Module copy — this screen reads the `consent` and `quit` slices. */
|
|
30
|
+
strings: BiometricConsentStrings;
|
|
31
|
+
/** Which of the two section states to render. Default `default`. */
|
|
32
|
+
state?: BiometricConsentState;
|
|
33
|
+
/**
|
|
34
|
+
* Cancel was pressed: present the quit confirmation over the consent. The
|
|
35
|
+
* consent underneath keeps its `state` — the box is whatever the person had.
|
|
36
|
+
* Its two answers: the confirm emits `cta` (the session ends), the dismiss
|
|
37
|
+
* emits `secondary` (back to the consent). DEVIATIONS #BC-7.
|
|
38
|
+
*/
|
|
39
|
+
quitConfirm?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* The box was ticked or unticked. A REAL change event from Core's own
|
|
42
|
+
* `<input type="checkbox">` — the card is a `<label>`, so tapping the copy
|
|
43
|
+
* toggles it too, which is the behaviour the request named ("tapping the body
|
|
44
|
+
* also toggles the checkbox"). The screen stays controlled by `state`; this
|
|
45
|
+
* only reports the press so a host (or the Core Lab prototype) can move the
|
|
46
|
+
* state itself. The sibling consent screen forwards no such handler and its
|
|
47
|
+
* prototype had to listen on a wrapper instead — this closes that gap for this
|
|
48
|
+
* module.
|
|
49
|
+
*/
|
|
50
|
+
onConsentChange?: (checked: boolean) => void;
|
|
51
|
+
screenId?: string;
|
|
52
|
+
overrides?: PrizmaScreenOverrides;
|
|
53
|
+
onAction?: PrizmaScreenActionHandler;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Biometric Consent — the mandatory biometric-processing consent, built on the
|
|
58
|
+
* Form archetype (GUIDELINES.md §6-E, `PrizmaFormScreen`).
|
|
59
|
+
*
|
|
60
|
+
* ONE screen for the whole `biometricConsent` section (2001:16315): the two
|
|
61
|
+
* state frames (`empty` 2001:16361, `checked` 2001:16372) share an identical
|
|
62
|
+
* skeleton — nav → Title (H2 + H5) → one consent card → Continue → Cancel →
|
|
63
|
+
* tag — and differ ONLY in whether the box is ticked and the CTA released.
|
|
64
|
+
* Plus the quit confirmation (`quitConfirm`), a Core sheet or dialog presented
|
|
65
|
+
* over either state when Cancel is pressed.
|
|
66
|
+
*
|
|
67
|
+
* WHY ARCHETYPE E. The same reason the sibling consent screen gives: a
|
|
68
|
+
* `PrizmaCheckbox` is a real `<input type="checkbox">` that joins the form, and
|
|
69
|
+
* the gated CTA is the whole point of a consent screen — `PrizmaListScreen` has
|
|
70
|
+
* no `ctaDisabled` slot. E also carries the one tertiary action under the
|
|
71
|
+
* primary (`linkLabel`), which is exactly where the frame draws Cancel.
|
|
72
|
+
*
|
|
73
|
+
* THE CARD SITS AT THE BOTTOM OF THE COLUMN, NOT UNDER THE TITLE. The frame's
|
|
74
|
+
* middle (2001:15150) is a `justify-between` column: the Title block at the top,
|
|
75
|
+
* the consent card flush against the CTA band with the frame's Spacing/16
|
|
76
|
+
* between them, and everything in between left empty. That is the opposite of
|
|
77
|
+
* every other Form consumer, whose stack hangs off the title, so the screen
|
|
78
|
+
* SELECTS it through the archetype's `fieldsAlign="end"` slot rather than
|
|
79
|
+
* declaring a layout of its own — the value lives once, in `FormScreen.css`.
|
|
80
|
+
* DEVIATIONS #BC-1.
|
|
81
|
+
*
|
|
82
|
+
* Five things are deliberate:
|
|
83
|
+
*
|
|
84
|
+
* 1. The consent card is Core's `PrizmaCheckbox size="L"` — the component IS
|
|
85
|
+
* the tinted container Figma draws (padding, radius, `Surface/Brand/50`,
|
|
86
|
+
* the 28×28 box, the Size-S body). Its `segments` carry the inline
|
|
87
|
+
* "Incode's Privacy Policy" link, which opens the document without toggling
|
|
88
|
+
* the box. Nothing about the card is composed here.
|
|
89
|
+
* 2. The box is CONTROLLED by `state`, like every other spec state in this
|
|
90
|
+
* package, and the real change event is forwarded through `onConsentChange`
|
|
91
|
+
* so a host can drive it. `disabled` is NOT used — the frame draws the card
|
|
92
|
+
* on the live surface in both states (#PI-6: never borrow a semantic state
|
|
93
|
+
* to make something inert).
|
|
94
|
+
* 3. The CTA is gated by `ctaDisabled`, Core's own
|
|
95
|
+
* `button/primary/surface|text/disabled` treatment, until the box is ticked
|
|
96
|
+
* — the behaviour the requesting engineer asked for and the two sibling
|
|
97
|
+
* consents already ship. The frame paints Continue blue in both states;
|
|
98
|
+
* recorded, not resolved silently (DEVIATIONS #BC-2).
|
|
99
|
+
* 4. Cancel is the archetype's `tertiary-link` button and emits `secondary`.
|
|
100
|
+
* The frame draws it as the Button group's "Tertiary CTA" slot in body-800
|
|
101
|
+
* ink with no underline on the ES/PT copies and in brand blue on the EN one
|
|
102
|
+
* — Core ships one L tertiary (underlined, `button/tertiary/text/default`)
|
|
103
|
+
* and the component wins (DEVIATIONS #BC-4).
|
|
104
|
+
* 5. The quit confirmation rides archetype E's `overlay` slot: the screen owns
|
|
105
|
+
* the scrim and the placement (the foundation's `__sheet-scrim` /
|
|
106
|
+
* `__modal-panel` recipes), Core owns the card — `PrizmaModalContent`,
|
|
107
|
+
* the `default` variant exactly as the design system documents it: close
|
|
108
|
+
* icon, title, optional subtitle, and its own `vertical-v1` Button Group
|
|
109
|
+
* (Quit over Cancel). Placed the way Core's presenter places a modal —
|
|
110
|
+
* pinned to the bottom of the frame with a Spacing/12 margin, never
|
|
111
|
+
* centred — on EVERY platform. The owner ruled out a bottom sheet on the
|
|
112
|
+
* phone, then a centred card (Camila, 2026-10-13): "use the default modal
|
|
113
|
+
* … so we try with an existing component". The close icon dismisses, the
|
|
114
|
+
* same as Cancel. Nothing is drawn behind it that the consent did not
|
|
115
|
+
* already draw. DEVIATIONS #BC-7, #BC-8.
|
|
116
|
+
*/
|
|
117
|
+
export const BiometricConsentScreen = forwardRef<HTMLDivElement, BiometricConsentScreenProps>(
|
|
118
|
+
(
|
|
119
|
+
{
|
|
120
|
+
strings,
|
|
121
|
+
state = 'default',
|
|
122
|
+
quitConfirm = false,
|
|
123
|
+
onConsentChange,
|
|
124
|
+
screenId = quitConfirm ? 'biometric-consent-quit' : `biometric-consent-${state}`,
|
|
125
|
+
overrides,
|
|
126
|
+
onAction,
|
|
127
|
+
...shell
|
|
128
|
+
},
|
|
129
|
+
ref,
|
|
130
|
+
) => {
|
|
131
|
+
const accepted = state === 'accepted';
|
|
132
|
+
|
|
133
|
+
const quit = quitConfirm ? (
|
|
134
|
+
<>
|
|
135
|
+
<div className="prizma-screen-layout__sheet-scrim" aria-hidden="true" />
|
|
136
|
+
<div className="prizma-screen-layout__modal-panel">
|
|
137
|
+
<PrizmaModalContent
|
|
138
|
+
variant="default"
|
|
139
|
+
title={strings.quit.title}
|
|
140
|
+
subtitle={strings.quit.subtitle}
|
|
141
|
+
closeLabel={strings.quit.closeLabel}
|
|
142
|
+
onClose={() => onAction?.({ type: 'secondary', screenId })}
|
|
143
|
+
buttonGroupProps={{
|
|
144
|
+
primaryLabel: strings.quit.confirmLabel,
|
|
145
|
+
secondaryLabel: strings.quit.dismissLabel,
|
|
146
|
+
onPrimaryClick: () => onAction?.({ type: 'cta', screenId }),
|
|
147
|
+
onSecondaryClick: () => onAction?.({ type: 'secondary', screenId }),
|
|
148
|
+
}}
|
|
149
|
+
/>
|
|
150
|
+
</div>
|
|
151
|
+
</>
|
|
152
|
+
) : undefined;
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
<PrizmaFormScreen
|
|
156
|
+
ref={ref}
|
|
157
|
+
title={strings.consent.title}
|
|
158
|
+
subtitle={strings.consent.subtitle}
|
|
159
|
+
/* The card hangs off the CTA band, not the title — the frame's
|
|
160
|
+
justify-between middle. Selected from the archetype, not declared. */
|
|
161
|
+
fieldsAlign="end"
|
|
162
|
+
ctaLabel={strings.consent.ctaLabel}
|
|
163
|
+
/* "Continue" stays inert until the box is ticked. */
|
|
164
|
+
ctaDisabled={!accepted}
|
|
165
|
+
linkLabel={strings.consent.cancelLabel}
|
|
166
|
+
verifiedLabel={strings.verifiedLabel}
|
|
167
|
+
navLabel={strings.navLabel}
|
|
168
|
+
screenId={screenId}
|
|
169
|
+
overrides={overrides}
|
|
170
|
+
/* With the sheet up, the consent's own buttons are under the scrim and
|
|
171
|
+
must not report: the sheet's two answers are the only actions. */
|
|
172
|
+
onAction={quitConfirm ? undefined : onAction}
|
|
173
|
+
overlay={quit}
|
|
174
|
+
{...shell}
|
|
175
|
+
>
|
|
176
|
+
<PrizmaCheckbox
|
|
177
|
+
size="L"
|
|
178
|
+
checked={accepted}
|
|
179
|
+
/* Mandatory for a11y (`aria-required`); the L container never paints
|
|
180
|
+
a `*` and the frame draws none. */
|
|
181
|
+
required
|
|
182
|
+
aria-label={strings.consent.ariaLabel}
|
|
183
|
+
segments={strings.consent.body}
|
|
184
|
+
onCheckedChange={quitConfirm ? undefined : onConsentChange}
|
|
185
|
+
/>
|
|
186
|
+
</PrizmaFormScreen>
|
|
187
|
+
);
|
|
188
|
+
},
|
|
189
|
+
);
|
|
190
|
+
BiometricConsentScreen.displayName = 'BiometricConsentScreen';
|
|
191
|
+
|
|
192
|
+
export default BiometricConsentScreen;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Biometric Consent — copy contract.
|
|
2
|
+
//
|
|
3
|
+
// The mandatory biometric consent the BACKEND decides to show — at the start of
|
|
4
|
+
// a flow, or right after ID capture — when the session comes from a protected
|
|
5
|
+
// geography (Illinois BIPA and the handful of states like it), or when the state
|
|
6
|
+
// on the captured ID says so. It is NOT the User Consent / Data Sharing Consent
|
|
7
|
+
// module: it is the flow builder's "Required biometric consent" setting, it uses
|
|
8
|
+
// its own endpoint, and declining it is a hard stop. Uros Milivojevic
|
|
9
|
+
// (#uxp-design, 2026-09-01): "Compared to User Consent it has a Cancel button
|
|
10
|
+
// next to Continue, a subtitle, and a long consent body loaded from the BE with
|
|
11
|
+
// tappable links (tapping the body also toggles the checkbox)."
|
|
12
|
+
//
|
|
13
|
+
// Figma: `Biometric Consent Screen` (vXvIMQF5DSJgkQHhFAQcWC), section
|
|
14
|
+
// `biometricConsent` (2001:16315). ONE screen, drawn across:
|
|
15
|
+
// · 2001:16361 `biometricConsent.empty` the master — box unticked
|
|
16
|
+
// · 2001:16372 `biometricConsent.checked` the box ticked
|
|
17
|
+
// · `🔧 Behavior`, `🖤 Dark mode`, `🇪🇸 ES`, `🇵🇹 PT` and the six device
|
|
18
|
+
// sections are the same two states re-presented: dark is token-driven
|
|
19
|
+
// (`[data-prizma-theme='dark']`), the locales are the host's locale pack,
|
|
20
|
+
// and the widths are excluded by the no-per-width-variants rule (DEVIATIONS
|
|
21
|
+
// #17).
|
|
22
|
+
//
|
|
23
|
+
// The screen is: nav → Title (H2 + H5 subtitle) → one consent card pinned to
|
|
24
|
+
// the BOTTOM of the column → Continue → Cancel → tag. No disclosure paragraph —
|
|
25
|
+
// unlike the consent screen the two sibling modules share, the legal body here
|
|
26
|
+
// lives INSIDE the card, and the backend supplies it.
|
|
27
|
+
//
|
|
28
|
+
// No hardcoded English anywhere in a screen: every visible string arrives here,
|
|
29
|
+
// so the host's locale pack drives the module (the Figma file ships ES + PT
|
|
30
|
+
// columns beside the EN one).
|
|
31
|
+
|
|
32
|
+
import type { PrizmaConsentSegment } from '@incodetech/prizma-core-web/checkbox';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The two states the section draws. Both share ONE layout — nav → Title →
|
|
36
|
+
* (space) → consent card → Continue → Cancel → tag — and differ only in whether
|
|
37
|
+
* the box is ticked and, with it, whether Continue is released:
|
|
38
|
+
*
|
|
39
|
+
* - `default` — `biometricConsent.empty` (2001:16361): the box unticked.
|
|
40
|
+
* Continue is DISABLED. The frame paints it brand blue; the
|
|
41
|
+
* requesting engineer asked for it greyed until the box is
|
|
42
|
+
* ticked, "like in Data Sharing Consent" (Uros, #uxp-design
|
|
43
|
+
* 2026-09-02), which is also what the two sibling consent
|
|
44
|
+
* screens do. DEVIATIONS #BC-2 — flip `ctaDisabled` in the
|
|
45
|
+
* screen if the frame is the final word.
|
|
46
|
+
* - `accepted` — `biometricConsent.checked` (2001:16372): the box ticked,
|
|
47
|
+
* Continue released to brand blue.
|
|
48
|
+
*
|
|
49
|
+
* There is NO refusal state. With Continue gated, "pressed with nothing ticked"
|
|
50
|
+
* cannot happen, and the file draws no such frame — the sibling modules' added
|
|
51
|
+
* `rejected` state is deliberately not copied here (DEVIATIONS #BC-3).
|
|
52
|
+
*
|
|
53
|
+
* The quit confirmation is NOT a third state: it is a dialog presented over
|
|
54
|
+
* either state (`quitConfirm` on the screen), because what is underneath — the
|
|
55
|
+
* box empty or ticked — is whatever the person had before they pressed Cancel.
|
|
56
|
+
*/
|
|
57
|
+
export type BiometricConsentState = 'default' | 'accepted';
|
|
58
|
+
|
|
59
|
+
export interface BiometricConsentStrings {
|
|
60
|
+
/** "verified by" attribution in the footer tag. */
|
|
61
|
+
verifiedLabel: string;
|
|
62
|
+
/** Accessible name for the logo nav row. */
|
|
63
|
+
navLabel?: string;
|
|
64
|
+
|
|
65
|
+
/** The `biometricConsent` section. */
|
|
66
|
+
consent: {
|
|
67
|
+
/** H2 ("Request for Biometric Processing"). Centered, per the section. */
|
|
68
|
+
title: string;
|
|
69
|
+
/** H5 under the title ("Your verification is powered by Incode…"). The
|
|
70
|
+
* section draws one on every frame. */
|
|
71
|
+
subtitle: string;
|
|
72
|
+
/**
|
|
73
|
+
* The consent card's copy, as ordered segments: a plain string renders as
|
|
74
|
+
* body copy, an object renders as an inline `<a>` that opens the document
|
|
75
|
+
* WITHOUT toggling the box. Core's own `PrizmaConsentSegment` contract — the
|
|
76
|
+
* multi-link path on `PrizmaCheckbox size="L"` — so a consent citing two
|
|
77
|
+
* documents stays expressible (#PI-10: each link is separately actionable).
|
|
78
|
+
* In production this body arrives from the backend.
|
|
79
|
+
*/
|
|
80
|
+
body: PrizmaConsentSegment[];
|
|
81
|
+
/** Accessible name for the box — the card copy is a paragraph, too long to
|
|
82
|
+
* serve as one. */
|
|
83
|
+
ariaLabel?: string;
|
|
84
|
+
/** Primary CTA ("Continue"). Disabled until the box is ticked. */
|
|
85
|
+
ctaLabel: string;
|
|
86
|
+
/** The tertiary action under Continue ("Cancel"). Declining is a hard stop:
|
|
87
|
+
* the session cannot process the person's biometrics without this consent. */
|
|
88
|
+
cancelLabel: string;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The confirmation presented when Cancel is pressed, before the session ends.
|
|
93
|
+
*
|
|
94
|
+
* NOT IN THE FIGMA FILE, and not in the shipped Web SDK either — today
|
|
95
|
+
* `manager.cancel()` ends the session the moment Cancel is tapped. Added at
|
|
96
|
+
* the owner's request (Camila, 2026-10-13): Cancel is irreversible here, the
|
|
97
|
+
* person cannot be verified without the consent, and a mis-tap on the
|
|
98
|
+
* tertiary under Continue should not cost them the session. It is Core's
|
|
99
|
+
* Modal, `default` variant, on EVERY platform — the existing component as
|
|
100
|
+
* the design system documents it, close icon and all, pinned to the bottom
|
|
101
|
+
* of the frame the way Core's presenter places it; not a bottom sheet and
|
|
102
|
+
* not a centred card (owner calls, same day). The copy is the
|
|
103
|
+
* SDK's own close dialog (`page.close.confirmQuit` / `page.close.confirm` /
|
|
104
|
+
* `page.close.cancel`), so nothing is invented. DEVIATIONS #BC-7.
|
|
105
|
+
*/
|
|
106
|
+
quit: {
|
|
107
|
+
/** Dialog title ("Are you sure you want to quit?"). */
|
|
108
|
+
title: string;
|
|
109
|
+
/** Optional supporting line. The SDK's close dialog carries none. */
|
|
110
|
+
subtitle?: string;
|
|
111
|
+
/** The destructive confirmation ("Quit") — primary, on top. */
|
|
112
|
+
confirmLabel: string;
|
|
113
|
+
/** Dismiss and stay on the consent ("Cancel") — secondary, below it. */
|
|
114
|
+
dismissLabel: string;
|
|
115
|
+
/** Accessible name of the card's close icon ("Close"), which also
|
|
116
|
+
* dismisses. Core's Default modal always draws the icon. */
|
|
117
|
+
closeLabel: string;
|
|
118
|
+
};
|
|
119
|
+
}
|
package/src/CaptureScreen.tsx
CHANGED
|
@@ -39,6 +39,19 @@ export interface PrizmaCaptureScreenProps
|
|
|
39
39
|
manualFeedbackText?: string;
|
|
40
40
|
/** Per-state status copy (uploading / success / error / warning). */
|
|
41
41
|
statusLabels?: Partial<Record<PrizmaSelfieCaptureState, string>>;
|
|
42
|
+
/**
|
|
43
|
+
* A notice band above the footer — a Snackbar the module raises over the live
|
|
44
|
+
* feed without taking the camera away (Face Capture's "Need more time?" offer
|
|
45
|
+
* is the first consumer).
|
|
46
|
+
*
|
|
47
|
+
* ANCHORED, like the footer and the control strip, and for the same reason:
|
|
48
|
+
* the owner's rule is that anchored chrome sits at the same position on every
|
|
49
|
+
* screen (2026-08-18). Flowing it would push Core's ring up, and the ring
|
|
50
|
+
* offset is the one thing this archetype is forbidden to touch
|
|
51
|
+
* (DEVIATIONS #12). It rides the empty band under the instruction line, which
|
|
52
|
+
* is where the module Figma puts it.
|
|
53
|
+
*/
|
|
54
|
+
notice?: ReactNode;
|
|
42
55
|
/** "verified by" attribution copy for the footer tag. */
|
|
43
56
|
verifiedLabel: string;
|
|
44
57
|
navLabel?: string;
|
|
@@ -72,6 +85,7 @@ export const PrizmaCaptureScreen = forwardRef<HTMLDivElement, PrizmaCaptureScree
|
|
|
72
85
|
isManual,
|
|
73
86
|
manualFeedbackText,
|
|
74
87
|
statusLabels,
|
|
88
|
+
notice,
|
|
75
89
|
verifiedLabel,
|
|
76
90
|
navLabel,
|
|
77
91
|
screenId,
|
|
@@ -107,6 +121,9 @@ export const PrizmaCaptureScreen = forwardRef<HTMLDivElement, PrizmaCaptureScree
|
|
|
107
121
|
manualFeedbackText={manualFeedbackText}
|
|
108
122
|
statusLabels={statusLabels}
|
|
109
123
|
/>
|
|
124
|
+
{notice ? (
|
|
125
|
+
<div className="prizma-screen-layout__capture-notice">{notice}</div>
|
|
126
|
+
) : null}
|
|
110
127
|
{showFooter ? (
|
|
111
128
|
<div className="prizma-screen-layout__footer prizma-screen-layout__footer--pinned">
|
|
112
129
|
<PrizmaTag label={verifiedLabel} />
|
package/src/CurpEnterScreen.tsx
CHANGED
|
@@ -54,6 +54,13 @@ export interface CurpEnterScreenProps
|
|
|
54
54
|
* `linkContent` slot: no primitive is invented, no layout is declared, and the
|
|
55
55
|
* two actions stay distinguishable (`cta` vs `secondary`, the #PI-10 rule).
|
|
56
56
|
* The gap is reported for promotion — see the module's DEVIATIONS rows.
|
|
57
|
+
*
|
|
58
|
+
* `emptyError` is the empty-submit state (rule from Elena, 2026-09-30,
|
|
59
|
+
* GUIDELINES §6-E empty-submit rule): "Continue" was pressed with nothing
|
|
60
|
+
* typed. The field renders empty with no placeholder, in Core's error state
|
|
61
|
+
* with `requiredError`, and the primary CTA is disabled, following the drawn
|
|
62
|
+
* precedent in `FormsFieldScreen`. The resting `default` keeps the CTA enabled
|
|
63
|
+
* so the user can reach this state.
|
|
57
64
|
*/
|
|
58
65
|
export const CurpEnterScreen = forwardRef<HTMLDivElement, CurpEnterScreenProps>(
|
|
59
66
|
(
|
|
@@ -77,6 +84,9 @@ export const CurpEnterScreen = forwardRef<HTMLDivElement, CurpEnterScreenProps>(
|
|
|
77
84
|
// surface.
|
|
78
85
|
const busy = state === 'loading';
|
|
79
86
|
const invalid = state === 'error';
|
|
87
|
+
// Empty submit: the field stays empty, drops its placeholder and takes
|
|
88
|
+
// Core's error state with the shared "required" row; the CTA greys.
|
|
89
|
+
const emptyError = state === 'emptyError';
|
|
80
90
|
const focused = state === 'focused' || state === 'filled';
|
|
81
91
|
|
|
82
92
|
return (
|
|
@@ -100,6 +110,7 @@ export const CurpEnterScreen = forwardRef<HTMLDivElement, CurpEnterScreenProps>(
|
|
|
100
110
|
ctaLabel={strings.enter.ctaLabel}
|
|
101
111
|
/* The `loading` section swaps the CTA label for Core's spinner. */
|
|
102
112
|
ctaLoading={busy}
|
|
113
|
+
ctaDisabled={emptyError}
|
|
103
114
|
ctaLoadingLabel={strings.enter.ctaLoadingLabel}
|
|
104
115
|
linkContent={
|
|
105
116
|
<PrizmaButton
|
|
@@ -125,15 +136,21 @@ export const CurpEnterScreen = forwardRef<HTMLDivElement, CurpEnterScreenProps>(
|
|
|
125
136
|
carry the meaning — so the copy rides `aria-label` rather than
|
|
126
137
|
Core's visible `label` slot (DEVIATIONS #PI-4). */
|
|
127
138
|
aria-label={strings.enter.fieldLabel}
|
|
128
|
-
placeholder={strings.enter.placeholder}
|
|
129
|
-
defaultValue={value ?? ''}
|
|
139
|
+
placeholder={emptyError ? undefined : strings.enter.placeholder}
|
|
140
|
+
defaultValue={emptyError ? '' : value ?? ''}
|
|
130
141
|
/* A CURP is an 18-character uppercase key. */
|
|
131
142
|
autoCapitalize="characters"
|
|
132
143
|
autoComplete="off"
|
|
133
144
|
spellCheck={false}
|
|
134
145
|
disabled={busy}
|
|
135
|
-
error={invalid}
|
|
136
|
-
errorText={
|
|
146
|
+
error={invalid || emptyError}
|
|
147
|
+
errorText={
|
|
148
|
+
invalid
|
|
149
|
+
? strings.enter.errorText
|
|
150
|
+
: emptyError
|
|
151
|
+
? strings.requiredError
|
|
152
|
+
: undefined
|
|
153
|
+
}
|
|
137
154
|
/* The clear ✕ is drawn only on the error section (76:36434); the
|
|
138
155
|
`filled` section (79:1553) draws none. Core still owns WHEN it
|
|
139
156
|
shows — its `--show` state needs a value in the field. */
|