@incodetech/web 2.0.0 → 2.0.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/dist/ae-signature/ae-signature.es.js +15 -0
- package/dist/ae-signature/styles.css +348 -0
- package/dist/ae-signature/styles2.css +107 -0
- package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
- package/dist/antifraud/antifraud.es.js +18 -0
- package/dist/antifraud/styles.css +2 -0
- package/dist/authentication/authentication.es.js +29 -0
- package/dist/autoFocusTitle-QexamZ4i.js +16 -0
- package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
- package/dist/back-tutorial-1NOQobGO.js +14585 -0
- package/dist/back-vertical-hint-BBo36dxn.js +128 -0
- package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
- package/dist/base.css +8146 -0
- package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
- package/dist/bottomSheet-DE_8TFEC.js +31 -0
- package/dist/browser-ponyfill-jOkuz57z.js +299 -0
- package/dist/button-DcCUEn2n.js +24 -0
- package/dist/checkbox-Cl57ltq_.js +85 -0
- package/dist/consent/consent.es.js +90 -0
- package/dist/consent/styles.css +116 -0
- package/dist/countrySelector-CE-JgIsv.js +58 -0
- package/dist/cpf-ocr/styles.css +45 -0
- package/dist/cpfOcr-D_tbwbvh.js +78 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
- package/dist/curp-validation/curp-validation.es.js +279 -0
- package/dist/curp-validation/styles.css +82 -0
- package/dist/custom-fields/styles.css +22 -0
- package/dist/customFields-CW38fQUv.js +127 -0
- package/dist/customWatchlist-D9_yjEQd.js +33 -0
- package/dist/dateInputComposed-BpAGsjN6.js +55 -0
- package/dist/dateInputComposed-DU3o6PAV.js +1 -0
- package/dist/defineProperty-Dh8nSJpJ.js +39 -0
- package/dist/document-capture/styles.css +367 -0
- package/dist/documentCapture-xX-JT7ZY.js +763 -0
- package/dist/dropdownComposed-DFRBG22E.js +284 -0
- package/dist/dropdownComposed-DwTzc2YU.js +1 -0
- package/dist/dynamic-forms/styles.css +36 -0
- package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
- package/dist/ekyb/ekyb.es.js +2 -0
- package/dist/ekyb/styles.css +137 -0
- package/dist/ekybModule-BSs7mndb.js +280 -0
- package/dist/ekybModule-D9M3E2Gm.js +2 -0
- package/dist/ekyc/ekyc.es.js +2 -0
- package/dist/ekyc/styles.css +106 -0
- package/dist/ekycModule-CU9pt5YN.js +246 -0
- package/dist/ekycModule-CZw9cLno.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -0
- package/dist/electronic-signature-COYXjGdd.js +410 -0
- package/dist/email/email.es.js +87 -0
- package/dist/email/styles.css +12 -0
- package/dist/emailInput-DppGf9pv.js +37 -0
- package/dist/expiredId-BnmzE8T3.js +70 -0
- package/dist/extensibility-CzEJfRwo.js +2586 -0
- package/dist/extensibility.es.js +25 -0
- package/dist/face-match/face-match.es.js +2 -0
- package/dist/face-match/styles.css +1078 -0
- package/dist/faceMatch-B8j0g0Yo.js +2 -0
- package/dist/faceMatch-BV8UD7tj.js +201 -0
- package/dist/flip-animation-CgwRsEmK.js +6983 -0
- package/dist/flow/flow.es.js +661 -0
- package/dist/flow/styles.css +8478 -0
- package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
- package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
- package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
- package/dist/geolocation/geolocation.es.js +857 -0
- package/dist/geolocation/styles.css +158 -0
- package/dist/glaredevicelottie-B10axYs_.js +14466 -0
- package/dist/governmentValidation/governmentValidation.es.js +98 -0
- package/dist/governmentValidation/styles.css +58 -0
- package/dist/homeScreen-DnP1jw9A.js +227 -0
- package/dist/hooks-BVnGysT7.js +80 -0
- package/dist/i18n-9s4OSqwi.js +2010 -0
- package/dist/icons-Cc7zwchP.js +310 -0
- package/dist/id/id.es.js +832 -0
- package/dist/id/styles.css +1287 -0
- package/dist/id-laser-h-mBAzHVOK.js +467 -0
- package/dist/id-laser-v-CrFg4bcJ.js +483 -0
- package/dist/id-ocr/styles.css +46 -0
- package/dist/id-tutorial-BCr42Pnn.js +13153 -0
- package/dist/id-verification/id-verification.es.js +20 -0
- package/dist/idOcr-CCjfWQvH.js +94 -0
- package/dist/identity-reuse/identity-reuse.es.js +198 -0
- package/dist/identity-reuse/styles.css +163 -0
- package/dist/incode-logo-DX016usY.js +4 -0
- package/dist/incodeComponent-C1o4M0ZK.js +50 -0
- package/dist/incodeModule-BqCjVgEI.js +18 -0
- package/dist/index.es.js +16 -0
- package/dist/inputComposed-APSw8C7o.js +89 -0
- package/dist/inputComposed-XYrarFxS.js +1 -0
- package/dist/loadingIcon-BN5YRQUb.js +104 -0
- package/dist/mandatoryConsent-DssKMC3v.js +100 -0
- package/dist/modal-NMxsQHAO.js +135 -0
- package/dist/modal.hooks-CAjcIFZK.js +126 -0
- package/dist/numberedStep-CT-alrK5.js +11 -0
- package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
- package/dist/otpInput-DqRA_egd.js +145 -0
- package/dist/page-C1yT4DLb.js +69 -0
- package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
- package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
- package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
- package/dist/pdf-BurGZ08w.js +14967 -0
- package/dist/pdfViewer-BGBNL1Ea.js +63 -0
- package/dist/phone/phone.es.js +98 -0
- package/dist/phone/styles.css +11 -0
- package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
- package/dist/processing-G_y3o32b.js +6 -0
- package/dist/qe-signature/qe-signature.es.js +15 -0
- package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
- package/dist/redirect-to-mobile/styles.css +588 -0
- package/dist/redirectToMobile-C3k1gloW.js +1514 -0
- package/dist/requiredLabelHint-BLwgqozE.js +13 -0
- package/dist/richText-DbJ5sl2n.js +1973 -0
- package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
- package/dist/selfie/selfie.es.js +43 -0
- package/dist/selfie/styles.css +1144 -0
- package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
- package/dist/signature/signature.es.js +546 -0
- package/dist/snackbar-BDp8x7Cv.js +14 -0
- package/dist/spinner-B4dcie2T.js +1 -0
- package/dist/spinner-CKnjVHxw.js +39 -0
- package/dist/statusPage-CUI7ApcU.js +28 -0
- package/dist/successIcon-DbILeIz_.js +28 -0
- package/dist/tabs-DaPyP71c.js +78 -0
- package/dist/themes/dark.css +1347 -0
- package/dist/themes/light.css +1225 -0
- package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
- package/dist/tutorial-9vHAHvMK.js +2587 -0
- package/dist/types/ae-signature.d.ts +40 -0
- package/dist/types/antifraud.d.ts +40 -0
- package/dist/types/authentication.d.ts +45 -0
- package/dist/types/base.d.ts +1 -0
- package/dist/types/consent.d.ts +41 -0
- package/dist/types/cpf-ocr/styles.d.ts +1 -0
- package/dist/types/cross-document-data-match.d.ts +34 -0
- package/dist/types/curp-validation.d.ts +40 -0
- package/dist/types/custom-fields/styles.d.ts +1 -0
- package/dist/types/dark.d.ts +1 -0
- package/dist/types/document-capture/styles.d.ts +1 -0
- package/dist/types/dynamic-forms/styles.d.ts +1 -0
- package/dist/types/ekyb.d.ts +34 -0
- package/dist/types/ekyc.d.ts +34 -0
- package/dist/types/electronic-signature.d.ts +43 -0
- package/dist/types/email.d.ts +67 -0
- package/dist/types/extensibility.d.ts +981 -0
- package/dist/types/face-match.d.ts +59 -0
- package/dist/types/flow.d.ts +137 -0
- package/dist/types/geolocation.d.ts +41 -0
- package/dist/types/governmentValidation.d.ts +34 -0
- package/dist/types/id-ocr/styles.d.ts +1 -0
- package/dist/types/id-verification.d.ts +40 -0
- package/dist/types/id.d.ts +41 -0
- package/dist/types/identity-reuse.d.ts +43 -0
- package/dist/types/index.d.ts +32 -0
- package/dist/types/light.d.ts +1 -0
- package/dist/types/mandatory-consent/styles.d.ts +1 -0
- package/dist/types/phone.d.ts +68 -0
- package/dist/types/qe-signature.d.ts +40 -0
- package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
- package/dist/types/selfie.d.ts +41 -0
- package/dist/types/signature.d.ts +40 -0
- package/dist/types/styles.d.ts +1 -0
- package/dist/types/themes/dark.d.ts +1 -0
- package/dist/types/themes/light.d.ts +1 -0
- package/dist/types/watchlist-for-business/styles.d.ts +1 -0
- package/dist/types/watchlist.d.ts +40 -0
- package/dist/types/workflow.d.ts +91 -0
- package/dist/typography-CxjaknHN.js +28 -0
- package/dist/uiConfig-CwpQ-IM6.js +20 -0
- package/dist/useModuleLoader-BFiVA41N.js +432 -0
- package/dist/vendor-preact-D6SntenC.js +958 -0
- package/dist/verificationResult-BrVbUJ4U.js +97 -0
- package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
- package/dist/watchlist/watchlist.es.js +33 -0
- package/dist/watchlist-for-business/styles.css +18 -0
- package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
- package/dist/workflow/styles.css +7480 -0
- package/dist/workflow/workflow.es.js +244 -0
- package/package.json +2 -2
|
@@ -0,0 +1,981 @@
|
|
|
1
|
+
import { ComponentChildren } from 'preact';
|
|
2
|
+
import { CountryCode } from 'libphonenumber-js';
|
|
3
|
+
import { CSSProperties } from 'preact';
|
|
4
|
+
import { FC } from 'preact/compat';
|
|
5
|
+
import { FunctionalComponent } from 'preact';
|
|
6
|
+
import { HTMLAttributes } from 'preact';
|
|
7
|
+
import { HTMLAttributes as HTMLAttributes_2 } from 'preact/compat';
|
|
8
|
+
import { i18n } from 'i18next';
|
|
9
|
+
import { IdCaptureManager } from '@incodetech/core/id';
|
|
10
|
+
import { IdCaptureState } from '@incodetech/core/id';
|
|
11
|
+
import { InputHTMLAttributes } from 'preact';
|
|
12
|
+
import { JSX } from 'preact';
|
|
13
|
+
import { default as LightningIcon } from './lightningIcon.svg?react';
|
|
14
|
+
import { PermissionStatus as PermissionStatus_2 } from '@incodetech/core/camera';
|
|
15
|
+
import { PropsWithoutRef } from 'preact/compat';
|
|
16
|
+
import { Ref } from 'preact';
|
|
17
|
+
import { RefObject } from 'preact';
|
|
18
|
+
import { SelfieManager } from '@incodetech/core/selfie';
|
|
19
|
+
import { SelfieState } from '@incodetech/core/selfie';
|
|
20
|
+
import { TargetedEvent } from 'preact';
|
|
21
|
+
import { TFunction } from 'i18next';
|
|
22
|
+
import { VNode } from 'preact';
|
|
23
|
+
|
|
24
|
+
export declare const BaseTutorial: ({ className, animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, stopFramePosition, }: BaseTutorialProps) => JSX.Element;
|
|
25
|
+
|
|
26
|
+
declare type BaseTutorialProps = {
|
|
27
|
+
className?: string;
|
|
28
|
+
animationData: LottieAnimationData | null;
|
|
29
|
+
title: string;
|
|
30
|
+
titleId?: string;
|
|
31
|
+
subtitle: string;
|
|
32
|
+
onContinue: () => void;
|
|
33
|
+
buttonText: string;
|
|
34
|
+
disclaimerText: string;
|
|
35
|
+
isLoading?: boolean;
|
|
36
|
+
stopFramePosition?: 'first' | 'middle' | 'last';
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export declare const BottomSheet: FC<BottomSheetProps>;
|
|
40
|
+
|
|
41
|
+
declare type BottomSheetProps = {
|
|
42
|
+
isOpen?: boolean;
|
|
43
|
+
onClose?: () => void;
|
|
44
|
+
labelledById: string;
|
|
45
|
+
children: ComponentChildren;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export declare const Button: FunctionalComponent<PropsWithoutRef<ButtonProps> & {
|
|
49
|
+
ref?: Ref<HTMLButtonElement> | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
|
|
52
|
+
declare type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'class' | 'type' | 'icon'> & {
|
|
53
|
+
isLoading?: boolean;
|
|
54
|
+
children?: ComponentChildren;
|
|
55
|
+
class?: string;
|
|
56
|
+
type?: 'button' | 'submit' | 'reset';
|
|
57
|
+
variant?: 'primary' | 'secondary' | 'link';
|
|
58
|
+
size?: ButtonSize;
|
|
59
|
+
icon?: ComponentChildren;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
declare type ButtonSize = 'L' | 'M' | 'S';
|
|
64
|
+
|
|
65
|
+
export declare const CalendarIcon: FC<CalendarIconProps>;
|
|
66
|
+
|
|
67
|
+
declare type CalendarIconProps = {
|
|
68
|
+
class?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export declare const CameraFrame: FunctionalComponent<PropsWithoutRef<CameraFrameProps> & {
|
|
72
|
+
ref?: Ref<HTMLDivElement> | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
|
|
75
|
+
declare type CameraFrameProps = {
|
|
76
|
+
variant: CameraFrameVariant;
|
|
77
|
+
aspectRatio?: string;
|
|
78
|
+
orientation?: 'horizontal' | 'vertical';
|
|
79
|
+
frameState?: CameraFrameState;
|
|
80
|
+
className?: string;
|
|
81
|
+
children?: ComponentChildren;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
declare type CameraFrameState = 'idle' | 'capturing' | 'error' | 'focus' | 'success' | 'analyzing';
|
|
85
|
+
|
|
86
|
+
declare type CameraFrameVariant = 'fill' | 'locked';
|
|
87
|
+
|
|
88
|
+
export declare const CameraIcon: FC<CameraIconProps>;
|
|
89
|
+
|
|
90
|
+
declare type CameraIconProps = {
|
|
91
|
+
size?: number | string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Absolute-positioned flex-column overlay that sits on top of the camera video.
|
|
96
|
+
*
|
|
97
|
+
* Expected child order:
|
|
98
|
+
* 1. (optional) Module-specific header extras (e.g. CaptureNotification)
|
|
99
|
+
* 2. CameraOverlayHeader
|
|
100
|
+
* 3. CameraFrame
|
|
101
|
+
* 4. CaptureFooter
|
|
102
|
+
*/
|
|
103
|
+
export declare const CameraOverlay: FC<CameraOverlayProps>;
|
|
104
|
+
|
|
105
|
+
export declare const CameraOverlayHeader: FC<CameraOverlayHeaderProps>;
|
|
106
|
+
|
|
107
|
+
declare type CameraOverlayHeaderProps = {
|
|
108
|
+
title: string;
|
|
109
|
+
subtitle?: string;
|
|
110
|
+
visible?: boolean;
|
|
111
|
+
className?: string;
|
|
112
|
+
titleId?: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
declare type CameraOverlayProps = {
|
|
116
|
+
children: ComponentChildren;
|
|
117
|
+
className?: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export declare const CameraView: FC<CameraViewProps>;
|
|
121
|
+
|
|
122
|
+
declare type CameraViewProps = {
|
|
123
|
+
stream: MediaStream | undefined;
|
|
124
|
+
children: ComponentChildren;
|
|
125
|
+
videoRef?: Ref<HTMLVideoElement>;
|
|
126
|
+
onPlaying?: () => void;
|
|
127
|
+
className?: string;
|
|
128
|
+
'data-testid'?: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export declare const CaptureButtonIcon: FC<CaptureButtonIconProps>;
|
|
132
|
+
|
|
133
|
+
declare type CaptureButtonIconProps = {
|
|
134
|
+
className?: string;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export declare const CaptureFooter: FC<CaptureFooterProps>;
|
|
138
|
+
|
|
139
|
+
declare type CaptureFooterProps = {
|
|
140
|
+
onOpenHelp: () => void;
|
|
141
|
+
onCapture?: () => void;
|
|
142
|
+
isManualCapture?: boolean;
|
|
143
|
+
captureAriaLabel?: string;
|
|
144
|
+
captureAriaDescribedBy?: string;
|
|
145
|
+
helpAriaLabel?: string;
|
|
146
|
+
helpButtonRef?: Ref<HTMLButtonElement>;
|
|
147
|
+
captureButtonRef?: Ref<HTMLButtonElement>;
|
|
148
|
+
encryptionLabel?: string;
|
|
149
|
+
children?: ComponentChildren;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
declare type CaptureProps = {
|
|
153
|
+
manager: SelfieManager;
|
|
154
|
+
state: CaptureState;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare type CaptureProps_2 = {
|
|
158
|
+
manager: IdCaptureManager;
|
|
159
|
+
state: CaptureState_2;
|
|
160
|
+
onFinish?: () => void;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
declare type CaptureState = Extract<SelfieState, {
|
|
164
|
+
status: 'capture';
|
|
165
|
+
}>;
|
|
166
|
+
|
|
167
|
+
declare type CaptureState_2 = Extract<IdCaptureState, {
|
|
168
|
+
status: 'capture';
|
|
169
|
+
}>;
|
|
170
|
+
|
|
171
|
+
export declare const Checkbox: FunctionalComponent<PropsWithoutRef<CheckboxProps> & {
|
|
172
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
|
|
175
|
+
declare type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'class' | 'type' | 'size'> & {
|
|
176
|
+
id: string;
|
|
177
|
+
label?: string | ComponentChildren;
|
|
178
|
+
labelHint?: string;
|
|
179
|
+
size?: 's' | 'm';
|
|
180
|
+
error?: string;
|
|
181
|
+
helper?: string;
|
|
182
|
+
showErrorIcon?: boolean;
|
|
183
|
+
class?: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export declare const CheckmarkCompactIcon: FC<CheckmarkCompactIconProps>;
|
|
187
|
+
|
|
188
|
+
declare type CheckmarkCompactIconProps = {
|
|
189
|
+
size?: number | string;
|
|
190
|
+
fillColor?: string;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export declare const CheckmarkIcon: FC<CheckmarkIconProps>;
|
|
194
|
+
|
|
195
|
+
declare type CheckmarkIconProps = {
|
|
196
|
+
size?: number | string;
|
|
197
|
+
fillColor?: string;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export declare const ChevronDown: FC<ChevronDownProps>;
|
|
201
|
+
|
|
202
|
+
declare type ChevronDownProps = {
|
|
203
|
+
class?: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* ChevronLeftIcon component - mirror of ChevronRightIcon. Two different SVGs
|
|
208
|
+
* for three variants. For "xs" variant - icon is bolder; for "s" and "m"
|
|
209
|
+
* variants - icon is thinner.
|
|
210
|
+
*/
|
|
211
|
+
export declare const ChevronLeftIcon: ({ size, class: className, variant, }: ChevronLeftIconProps) => JSX.Element;
|
|
212
|
+
|
|
213
|
+
declare type ChevronLeftIconProps = {
|
|
214
|
+
size?: number;
|
|
215
|
+
class?: string;
|
|
216
|
+
variant?: 'xs' | 's' | 'm';
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* ChevronRightIcon component - there are two different SVGs for three variants. For "xs" variant - icon is bolder, and for "s" and "m" variants - icon is thinner.
|
|
221
|
+
*/
|
|
222
|
+
export declare const ChevronRightIcon: ({ size, class: className, variant, }: ChevronRightIconProps) => JSX.Element;
|
|
223
|
+
|
|
224
|
+
declare type ChevronRightIconProps = {
|
|
225
|
+
size?: number;
|
|
226
|
+
class?: string;
|
|
227
|
+
variant?: 'xs' | 's' | 'm';
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
declare type ChooserProps = {
|
|
231
|
+
manager: IdCaptureManager;
|
|
232
|
+
state: Extract<IdCaptureState, {
|
|
233
|
+
status: 'chooser';
|
|
234
|
+
}>;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
declare type CloseButtonOptions = {
|
|
238
|
+
show?: boolean;
|
|
239
|
+
onClose?: () => void;
|
|
240
|
+
position?: 'left' | 'right';
|
|
241
|
+
offset?: string;
|
|
242
|
+
onCancel?: () => void;
|
|
243
|
+
color?: string;
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
declare type CloseButtonOptions_2 = {
|
|
247
|
+
show?: boolean;
|
|
248
|
+
onClose?: () => void;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export declare const CloseIcon: FC<CloseIconProps>;
|
|
252
|
+
|
|
253
|
+
declare type CloseIconProps = {
|
|
254
|
+
width?: number | string;
|
|
255
|
+
height?: number | string;
|
|
256
|
+
class?: string;
|
|
257
|
+
fillColor?: string;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export declare const countries: CountryData[];
|
|
261
|
+
|
|
262
|
+
declare type CountryData = {
|
|
263
|
+
code: CountryCode;
|
|
264
|
+
emoji: string;
|
|
265
|
+
name: string;
|
|
266
|
+
callingCode: string;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
export declare const DateInputComposed: FunctionalComponent<PropsWithoutRef<DateInputComposedProps> & {
|
|
270
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
271
|
+
}>;
|
|
272
|
+
|
|
273
|
+
declare type DateInputComposedProps = Omit<InputComposedProps, 'type' | 'closeButton' | 'rightIcon'> & {
|
|
274
|
+
value: string;
|
|
275
|
+
onInput: (e: Event) => void;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export declare const DropdownComposed: FC<DropdownComposedProps>;
|
|
279
|
+
|
|
280
|
+
declare type DropdownComposedProps = {
|
|
281
|
+
id: string;
|
|
282
|
+
label?: string;
|
|
283
|
+
labelHint?: string;
|
|
284
|
+
placeholder?: string;
|
|
285
|
+
value: string;
|
|
286
|
+
options: DropdownOption[];
|
|
287
|
+
onChange: (value: string) => void;
|
|
288
|
+
error?: string;
|
|
289
|
+
helper?: string;
|
|
290
|
+
showErrorIcon?: boolean;
|
|
291
|
+
showHelperIcon?: boolean;
|
|
292
|
+
suppressMessages?: boolean;
|
|
293
|
+
disabled?: boolean;
|
|
294
|
+
required?: boolean;
|
|
295
|
+
searchable?: boolean;
|
|
296
|
+
searchPlaceholder?: string;
|
|
297
|
+
noResultsText?: string;
|
|
298
|
+
name?: string;
|
|
299
|
+
tabIndex?: number;
|
|
300
|
+
onKeyDown?: (e: KeyboardEvent) => void;
|
|
301
|
+
onBlur?: () => void;
|
|
302
|
+
renderSelectedLabel?: (option: DropdownOption) => string;
|
|
303
|
+
siblingElement?: ComponentChildren;
|
|
304
|
+
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
305
|
+
class?: string;
|
|
306
|
+
'aria-label'?: string;
|
|
307
|
+
'data-testid'?: string;
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
declare type DropdownOption = {
|
|
311
|
+
value: string;
|
|
312
|
+
label: string;
|
|
313
|
+
ariaLabel?: string;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
export declare const ErrorContent: ({ title, description, attemptsRemaining, onButtonClick, "data-testid": testId, }: ErrorContentProps) => JSX.Element;
|
|
317
|
+
|
|
318
|
+
declare type ErrorContentProps = {
|
|
319
|
+
title: string;
|
|
320
|
+
description: string;
|
|
321
|
+
attemptsRemaining: number;
|
|
322
|
+
onButtonClick: () => void;
|
|
323
|
+
'data-testid'?: string;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export declare const ErrorIcon: FC<ErrorIconProps>;
|
|
327
|
+
|
|
328
|
+
declare type ErrorIconProps = {
|
|
329
|
+
size?: number | string;
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export declare const FileIcon: FC<FileIconProps>;
|
|
333
|
+
|
|
334
|
+
declare type FileIconProps = {
|
|
335
|
+
size?: number | string;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
declare type FlipAnimationProps = {
|
|
339
|
+
manager: IdCaptureManager;
|
|
340
|
+
direction: 'toBack' | 'toFront';
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export declare const FormField: FC<FormFieldProps>;
|
|
344
|
+
|
|
345
|
+
declare type FormFieldProps = {
|
|
346
|
+
name: string;
|
|
347
|
+
label: string;
|
|
348
|
+
displayLabel?: string;
|
|
349
|
+
value?: string;
|
|
350
|
+
error?: string;
|
|
351
|
+
errorParams?: Record<string, string | number>;
|
|
352
|
+
type?: string;
|
|
353
|
+
placeholder?: string;
|
|
354
|
+
placeholderParams?: Record<string, string>;
|
|
355
|
+
required?: boolean;
|
|
356
|
+
readonly?: boolean;
|
|
357
|
+
maxLength?: number;
|
|
358
|
+
disabled?: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Pre-translated text rendered next to the label (e.g. "(optional)").
|
|
361
|
+
* Forms derive this via the majority rule (`getRequiredHintMode` +
|
|
362
|
+
* `getFieldHint`).
|
|
363
|
+
*/
|
|
364
|
+
labelHint?: string;
|
|
365
|
+
onChange: (name: string, value: string) => void;
|
|
366
|
+
onBlur?: (name: string) => void;
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
export declare function getCountryByCallingCode(callingCode: string): CountryData | undefined;
|
|
370
|
+
|
|
371
|
+
export declare function getCountryByCode(code: string | undefined): CountryData | undefined;
|
|
372
|
+
|
|
373
|
+
export declare const HelpIcon: FC<HelpIconProps>;
|
|
374
|
+
|
|
375
|
+
declare type HelpIconProps = {
|
|
376
|
+
className?: string;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
export declare const IdCapture: FC<CaptureProps_2>;
|
|
380
|
+
|
|
381
|
+
export declare const IdChooser: FC<ChooserProps>;
|
|
382
|
+
|
|
383
|
+
export declare const IdError: FC<IdErrorProps>;
|
|
384
|
+
|
|
385
|
+
declare type IdErrorProps = {
|
|
386
|
+
manager: IdCaptureManager;
|
|
387
|
+
state: Extract<IdCaptureState, {
|
|
388
|
+
status: 'error';
|
|
389
|
+
}>;
|
|
390
|
+
onError?: (error: string | undefined) => void;
|
|
391
|
+
blurImage?: boolean;
|
|
392
|
+
} | {
|
|
393
|
+
manager: IdCaptureManager;
|
|
394
|
+
state: Extract<IdCaptureState, {
|
|
395
|
+
status: 'capture';
|
|
396
|
+
}>;
|
|
397
|
+
blurImage?: boolean;
|
|
398
|
+
};
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Flow / SDK 1 UXv2 capture-side expired-document screen — thin wrapper that
|
|
402
|
+
* wires `idCaptureManager.retryCapture()` and forwards the
|
|
403
|
+
* `attemptsRemaining` counter into the shared `<ExpiredId>` primitive.
|
|
404
|
+
*
|
|
405
|
+
* Workflow's verify-side node uses its own wrapper in the `id-verification`
|
|
406
|
+
* module that passes only `onContinue` (no attempts concept), matching the
|
|
407
|
+
* legacy SDK 1 `Workflow.tsx → ProcessId.jsx → ExpiredId` one-shot Continue
|
|
408
|
+
* behavior.
|
|
409
|
+
*/
|
|
410
|
+
export declare const IdExpired: FC<IdExpiredProps>;
|
|
411
|
+
|
|
412
|
+
declare type IdExpiredProps = {
|
|
413
|
+
manager: IdCaptureManager;
|
|
414
|
+
attemptsRemaining: number;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
export declare const IdFlipAnimation: FC<FlipAnimationProps>;
|
|
418
|
+
|
|
419
|
+
export declare const IdTutorial: FC<TutorialProps_2>;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Wraps UI modules with the standard container.
|
|
423
|
+
* Shows a landscape blocker overlay on mobile (excluding iPad) when device is rotated to landscape.
|
|
424
|
+
*/
|
|
425
|
+
export declare function IncodeComponent({ children }: IncodeComponentProps): VNode;
|
|
426
|
+
|
|
427
|
+
declare type IncodeComponentProps = {
|
|
428
|
+
children?: ComponentChildren;
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
export declare type IncodeModuleProps<TConfig, TResult = void, TManager = unknown> = {
|
|
432
|
+
/**
|
|
433
|
+
* Module configuration required to render the flow.
|
|
434
|
+
* For Web Components, this is typically assigned via `element.config = ...`.
|
|
435
|
+
*/
|
|
436
|
+
config?: TConfig;
|
|
437
|
+
/**
|
|
438
|
+
* Optional pre-built manager. When provided, the module does not create or manage the manager lifecycle.
|
|
439
|
+
*/
|
|
440
|
+
manager?: TManager;
|
|
441
|
+
/**
|
|
442
|
+
* Callback invoked when the module completes successfully.
|
|
443
|
+
* @param result - Optional result data from the module completion
|
|
444
|
+
*/
|
|
445
|
+
onFinish?: (result?: TResult) => void;
|
|
446
|
+
/**
|
|
447
|
+
* Callback invoked when a fatal module error occurs.
|
|
448
|
+
*
|
|
449
|
+
* @param error - Human-readable error message.
|
|
450
|
+
* @param errorCode - Optional numeric code (e.g. HTTP status). Populated by
|
|
451
|
+
* the workflow and flow modules on QR validation failures —
|
|
452
|
+
* `4026` (`expiredUUID`), `4081` (`invalidQRuuid`) or `4083` (`onboardingUrlAlreadyUsed`).
|
|
453
|
+
*/
|
|
454
|
+
onError?: (error: string | undefined, errorCode?: number) => void;
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
declare type InferState<T> = T extends {
|
|
458
|
+
getState: () => infer S;
|
|
459
|
+
} ? S : never;
|
|
460
|
+
|
|
461
|
+
export declare const Input: FunctionalComponent<PropsWithoutRef<InputProps> & {
|
|
462
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
463
|
+
}>;
|
|
464
|
+
|
|
465
|
+
export declare const InputComposed: FunctionalComponent<PropsWithoutRef<InputComposedProps> & {
|
|
466
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
467
|
+
}>;
|
|
468
|
+
|
|
469
|
+
declare type InputComposedProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'class'> & {
|
|
470
|
+
id: string;
|
|
471
|
+
label?: string;
|
|
472
|
+
labelHint?: string;
|
|
473
|
+
error?: string;
|
|
474
|
+
helper?: string;
|
|
475
|
+
showErrorIcon?: boolean;
|
|
476
|
+
showHelperIcon?: boolean;
|
|
477
|
+
closeButton?: CloseButtonOptions_2;
|
|
478
|
+
rightIcon?: ComponentChildren;
|
|
479
|
+
suppressMessages?: boolean;
|
|
480
|
+
class?: string;
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
declare type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'class' | 'type'> & {
|
|
484
|
+
class?: string;
|
|
485
|
+
type?: string;
|
|
486
|
+
'data-has-value'?: boolean;
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
export declare function LandscapeBlocker(): VNode | null;
|
|
490
|
+
|
|
491
|
+
export { LightningIcon }
|
|
492
|
+
|
|
493
|
+
export declare const LockIcon: FC<LockIconProps>;
|
|
494
|
+
|
|
495
|
+
declare type LockIconProps = {
|
|
496
|
+
className?: string;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
export declare function Lottie({ animationData, loop, autoplay, reverse, style, className, onComplete, onControlsReady, }: LottieProps): JSX.Element;
|
|
500
|
+
|
|
501
|
+
declare type LottieAnimationData = {
|
|
502
|
+
fr: number;
|
|
503
|
+
v: string;
|
|
504
|
+
ip: number;
|
|
505
|
+
op: number;
|
|
506
|
+
w: number;
|
|
507
|
+
h: number;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
declare type LottieControls = {
|
|
511
|
+
setSpeed: (speed: number) => void;
|
|
512
|
+
play: () => void;
|
|
513
|
+
pause: () => void;
|
|
514
|
+
stop: () => void;
|
|
515
|
+
goToAndPlay: (value: number, isFrame?: boolean) => void;
|
|
516
|
+
goToAndStop: (value: number, isFrame?: boolean) => void;
|
|
517
|
+
getTotalFrames: () => number | null;
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
declare type LottieProps = {
|
|
521
|
+
animationData: LottieAnimationData;
|
|
522
|
+
loop?: boolean;
|
|
523
|
+
autoplay?: boolean;
|
|
524
|
+
reverse?: boolean;
|
|
525
|
+
style?: CSSProperties;
|
|
526
|
+
className?: string;
|
|
527
|
+
onComplete?: () => void;
|
|
528
|
+
onControlsReady?: (controls: LottieControls | null) => void;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
export declare const ManualCapture: FC<ManualCaptureProps>;
|
|
532
|
+
|
|
533
|
+
declare type ManualCaptureProps = {
|
|
534
|
+
stream: MediaStream;
|
|
535
|
+
onCapture: (imageBase64: string) => void;
|
|
536
|
+
disabled?: boolean;
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
export declare const Modal: {
|
|
540
|
+
Root: typeof ModalRoot;
|
|
541
|
+
Content: typeof ModalContent;
|
|
542
|
+
Close: typeof ModalClose;
|
|
543
|
+
Icon: typeof ModalIcon;
|
|
544
|
+
TitleSection: typeof ModalTitleSection;
|
|
545
|
+
Title: typeof ModalTitle;
|
|
546
|
+
Subtitle: typeof ModalSubtitle;
|
|
547
|
+
Actions: typeof ModalActions;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
declare function ModalActions({ children, class: className, orientation, }: ModalActionsProps): JSX.Element;
|
|
551
|
+
|
|
552
|
+
declare type ModalActionsProps = {
|
|
553
|
+
children: ComponentChildren;
|
|
554
|
+
class?: string;
|
|
555
|
+
orientation?: 'vertical' | 'horizontal';
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
declare function ModalClose({ 'aria-label': ariaLabel, title: titleAttr, class: className, onClick, }: ModalCloseProps): JSX.Element | null;
|
|
559
|
+
|
|
560
|
+
declare type ModalCloseProps = {
|
|
561
|
+
'aria-label'?: string;
|
|
562
|
+
title?: string;
|
|
563
|
+
class?: string;
|
|
564
|
+
onClick?: () => Promise<void> | void;
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
declare function ModalContent({ children, class: className }: ModalContentProps): JSX.Element;
|
|
568
|
+
|
|
569
|
+
declare type ModalContentProps = {
|
|
570
|
+
children: ComponentChildren;
|
|
571
|
+
class?: string;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
declare function ModalIcon({ children, class: className }: ModalIconProps): JSX.Element;
|
|
575
|
+
|
|
576
|
+
declare type ModalIconProps = {
|
|
577
|
+
children: ComponentChildren;
|
|
578
|
+
class?: string;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
declare function ModalRoot({ open, children, onOpenChange, dismissible, portalContainer, class: className, hasBackdrop, manageInitialFocus, returnFocusRef, }: ModalRootProps): VNode<any> | null;
|
|
582
|
+
|
|
583
|
+
declare type ModalRootProps = {
|
|
584
|
+
open: boolean;
|
|
585
|
+
children: ComponentChildren;
|
|
586
|
+
onOpenChange?: (open: boolean) => void;
|
|
587
|
+
/** When false, Escape, overlay click, and Close do not dismiss. */
|
|
588
|
+
dismissible?: boolean;
|
|
589
|
+
/** Mount portal here instead of a dedicated node under document.body. */
|
|
590
|
+
portalContainer?: HTMLElement | null;
|
|
591
|
+
class?: string;
|
|
592
|
+
hasBackdrop?: boolean;
|
|
593
|
+
/** When false, Modal won't auto-focus the first interactive element on open. Defaults to true. */
|
|
594
|
+
manageInitialFocus?: boolean;
|
|
595
|
+
returnFocusRef?: RefObject<HTMLElement | null>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
declare function ModalSubtitle({ children, class: className }: ModalSubtitleProps): JSX.Element;
|
|
599
|
+
|
|
600
|
+
declare type ModalSubtitleProps = {
|
|
601
|
+
children: ComponentChildren;
|
|
602
|
+
class?: string;
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
declare function ModalTitle({ children, ref, class: className }: ModalTitleProps): JSX.Element;
|
|
606
|
+
|
|
607
|
+
declare type ModalTitleProps = {
|
|
608
|
+
children: ComponentChildren;
|
|
609
|
+
class?: string;
|
|
610
|
+
ref?: Ref<HTMLHeadingElement>;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
declare function ModalTitleSection({ children, align, }: ModalTitleSectionProps): JSX.Element;
|
|
614
|
+
|
|
615
|
+
/** Wrap Modal.Title and Modal.Subtitle for 12px between them and 24px above actions. */
|
|
616
|
+
declare type ModalTitleSectionProps = {
|
|
617
|
+
children: ComponentChildren;
|
|
618
|
+
align?: 'center' | 'left';
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
export declare const OtpInput: FC<OtpInputProps>;
|
|
622
|
+
|
|
623
|
+
declare type OtpInputProps = {
|
|
624
|
+
resendTimer: number;
|
|
625
|
+
canResend: boolean;
|
|
626
|
+
error?: string;
|
|
627
|
+
onSubmit: (code: string) => void;
|
|
628
|
+
onResend: () => void;
|
|
629
|
+
onBack: () => void;
|
|
630
|
+
/**
|
|
631
|
+
* Custom text for the back link (e.g., "change email address").
|
|
632
|
+
* Defaults to "change phone number" if not provided.
|
|
633
|
+
*/
|
|
634
|
+
backLinkText?: string;
|
|
635
|
+
/** Whether the inputs and buttons should be disabled */
|
|
636
|
+
disabled?: boolean;
|
|
637
|
+
/** Whether the submit button should show loading state */
|
|
638
|
+
isLoading?: boolean;
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
export declare const Overlay: FC<OverlayProps>;
|
|
642
|
+
|
|
643
|
+
declare type OverlayProps = {
|
|
644
|
+
children: ComponentChildren;
|
|
645
|
+
'aria-labelledby'?: string;
|
|
646
|
+
class?: string;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
export declare const Page: ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus, }: PageProps) => JSX.Element;
|
|
650
|
+
|
|
651
|
+
declare type PageProps = {
|
|
652
|
+
children?: ComponentChildren;
|
|
653
|
+
title?: string;
|
|
654
|
+
titleId?: string;
|
|
655
|
+
subtitle?: string;
|
|
656
|
+
/** Optional content rendered above the title (e.g. a status icon). */
|
|
657
|
+
titleTopSlot?: ComponentChildren;
|
|
658
|
+
className?: string;
|
|
659
|
+
logo?: {
|
|
660
|
+
src?: string;
|
|
661
|
+
height?: string;
|
|
662
|
+
};
|
|
663
|
+
hideFooterBranding?: boolean;
|
|
664
|
+
hideHeader?: boolean;
|
|
665
|
+
closeButton?: CloseButtonOptions;
|
|
666
|
+
'data-testid'?: string;
|
|
667
|
+
'data-permission-status'?: string;
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
declare const Permissions_2: FC<PermissionsProps>;
|
|
671
|
+
export { Permissions_2 as Permissions }
|
|
672
|
+
|
|
673
|
+
declare type PermissionsManager = {
|
|
674
|
+
requestPermission: () => void;
|
|
675
|
+
goToLearnMore: () => void;
|
|
676
|
+
close: () => void;
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
declare type PermissionsProps = {
|
|
680
|
+
manager: PermissionsManager;
|
|
681
|
+
permissionStatus: PermissionStatus_2;
|
|
682
|
+
};
|
|
683
|
+
|
|
684
|
+
export declare const PhoneInputComposed: FunctionalComponent<PropsWithoutRef<PhoneInputComposedProps> & {
|
|
685
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
686
|
+
}>;
|
|
687
|
+
|
|
688
|
+
declare type PhoneInputComposedProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'onChange' | 'class'> & PhoneInputOwnProps;
|
|
689
|
+
|
|
690
|
+
declare type PhoneInputOwnProps = {
|
|
691
|
+
id: string;
|
|
692
|
+
label?: string;
|
|
693
|
+
labelHint?: string;
|
|
694
|
+
countryCode?: string;
|
|
695
|
+
value?: string;
|
|
696
|
+
placeholder?: string;
|
|
697
|
+
error?: string;
|
|
698
|
+
helper?: string;
|
|
699
|
+
showErrorIcon?: boolean;
|
|
700
|
+
showHelperIcon?: boolean;
|
|
701
|
+
disabled?: boolean;
|
|
702
|
+
disableCountrySelector?: boolean;
|
|
703
|
+
required?: boolean;
|
|
704
|
+
onChange?: (fullNumber: string, isValid: boolean) => void;
|
|
705
|
+
'aria-labelledby'?: string;
|
|
706
|
+
'data-testid'?: string;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
export declare const Processing: FC;
|
|
710
|
+
|
|
711
|
+
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
712
|
+
|
|
713
|
+
declare type ProgressBarProps = {
|
|
714
|
+
progress: number;
|
|
715
|
+
label?: string;
|
|
716
|
+
className?: string;
|
|
717
|
+
};
|
|
718
|
+
|
|
719
|
+
export declare const RadioButtonComposed: FunctionalComponent<PropsWithoutRef<RadioButtonComposedProps> & {
|
|
720
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
721
|
+
}>;
|
|
722
|
+
|
|
723
|
+
declare type RadioButtonComposedProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'id' | 'class' | 'type' | 'size'> & {
|
|
724
|
+
id: string;
|
|
725
|
+
label?: string;
|
|
726
|
+
labelHint?: string;
|
|
727
|
+
checked?: boolean;
|
|
728
|
+
defaultChecked?: boolean;
|
|
729
|
+
disabled?: boolean;
|
|
730
|
+
required?: boolean;
|
|
731
|
+
name?: string;
|
|
732
|
+
value?: string;
|
|
733
|
+
onChange?: (event: TargetedEvent<HTMLInputElement, Event>) => void;
|
|
734
|
+
error?: string;
|
|
735
|
+
helper?: string;
|
|
736
|
+
showErrorIcon?: boolean;
|
|
737
|
+
class?: string;
|
|
738
|
+
'aria-label'?: string;
|
|
739
|
+
'aria-labelledby'?: string;
|
|
740
|
+
'aria-describedby'?: string;
|
|
741
|
+
'aria-invalid'?: boolean;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
export declare const RadioGroupComposed: FunctionalComponent<PropsWithoutRef<RadioGroupComposedProps> & {
|
|
745
|
+
ref?: Ref<HTMLDivElement> | undefined;
|
|
746
|
+
}>;
|
|
747
|
+
|
|
748
|
+
declare type RadioGroupComposedProps = {
|
|
749
|
+
id: string;
|
|
750
|
+
label: string;
|
|
751
|
+
labelHint?: string;
|
|
752
|
+
options: RadioGroupOption[];
|
|
753
|
+
value?: string;
|
|
754
|
+
defaultValue?: string;
|
|
755
|
+
error?: string;
|
|
756
|
+
helper?: string;
|
|
757
|
+
required?: boolean;
|
|
758
|
+
disabled?: boolean;
|
|
759
|
+
name?: string;
|
|
760
|
+
orientation?: 'row' | 'column';
|
|
761
|
+
onChange?: (value: string, event: TargetedEvent<HTMLInputElement, Event>) => void;
|
|
762
|
+
onBlur?: (event: FocusEvent) => void;
|
|
763
|
+
class?: string;
|
|
764
|
+
'data-testid'?: string;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
declare type RadioGroupOption = {
|
|
768
|
+
value: string;
|
|
769
|
+
label: string;
|
|
770
|
+
disabled?: boolean;
|
|
771
|
+
};
|
|
772
|
+
|
|
773
|
+
export declare const SearchIcon: FC<SearchIconProps>;
|
|
774
|
+
|
|
775
|
+
declare type SearchIconProps = {
|
|
776
|
+
size?: number | string;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* ⚠️ Experimental — do not use in forms.
|
|
781
|
+
*
|
|
782
|
+
* Use `DateInputComposed` instead. See the file-level note at the top of this
|
|
783
|
+
* module for context.
|
|
784
|
+
*
|
|
785
|
+
* @experimental
|
|
786
|
+
*/
|
|
787
|
+
export declare const SegmentedDateInput: FunctionalComponent<PropsWithoutRef<SegmentedDateInputProps> & {
|
|
788
|
+
ref?: Ref<HTMLInputElement> | undefined;
|
|
789
|
+
}>;
|
|
790
|
+
|
|
791
|
+
export declare type SegmentedDateInputProps = Omit<InputComposedProps, 'type' | 'closeButton' | 'rightIcon'> & {
|
|
792
|
+
value: string;
|
|
793
|
+
onInput: (e: Event) => void;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export declare const SelfieCapture: FC<CaptureProps>;
|
|
797
|
+
|
|
798
|
+
export declare const SelfieTutorial: ({ manager, ageAssurance }: TutorialProps) => JSX.Element;
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Sets global UI configuration defaults for `@incodetech/ui`.
|
|
802
|
+
*/
|
|
803
|
+
export declare function setUiConfig(next: UiConfig): void;
|
|
804
|
+
|
|
805
|
+
export declare const Spacer: ({ size, className, direction, }: SpacerProps) => JSX.Element;
|
|
806
|
+
|
|
807
|
+
declare type SpacerProps = {
|
|
808
|
+
size?: number | string;
|
|
809
|
+
direction?: 'horizontal' | 'vertical';
|
|
810
|
+
className?: string;
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
export declare const Spinner: FC<SpinnerProps>;
|
|
814
|
+
|
|
815
|
+
declare type SpinnerProps = {
|
|
816
|
+
/** Title text to display below the spinner */
|
|
817
|
+
title?: string;
|
|
818
|
+
/** Subtitle text to display below the title */
|
|
819
|
+
subtitle?: string;
|
|
820
|
+
/** Size of the spinner icon */
|
|
821
|
+
size?: SpinnerSize;
|
|
822
|
+
/** Whether to fill the SDK container */
|
|
823
|
+
fullScreen?: boolean;
|
|
824
|
+
/** Additional CSS class name */
|
|
825
|
+
className?: string;
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
export declare type SpinnerSize = 'small' | 'medium' | 'large';
|
|
829
|
+
|
|
830
|
+
export declare const SuccessIcon: FC<SuccessIconProps>;
|
|
831
|
+
|
|
832
|
+
declare type SuccessIconProps = {
|
|
833
|
+
size?: number | string;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
export declare const TextArea: FunctionalComponent<PropsWithoutRef<TextAreaProps> & {
|
|
837
|
+
ref?: Ref<HTMLTextAreaElement> | undefined;
|
|
838
|
+
}>;
|
|
839
|
+
|
|
840
|
+
export declare const TextAreaComposed: FunctionalComponent<PropsWithoutRef<TextAreaComposedProps> & {
|
|
841
|
+
ref?: Ref<HTMLTextAreaElement> | undefined;
|
|
842
|
+
}>;
|
|
843
|
+
|
|
844
|
+
declare type TextAreaComposedProps = Omit<JSX.IntrinsicElements['textarea'], 'id' | 'class'> & {
|
|
845
|
+
id: string;
|
|
846
|
+
label?: string;
|
|
847
|
+
labelHint?: string;
|
|
848
|
+
error?: string;
|
|
849
|
+
helper?: string;
|
|
850
|
+
showErrorIcon?: boolean;
|
|
851
|
+
showHelperIcon?: boolean;
|
|
852
|
+
rows?: number;
|
|
853
|
+
class?: string;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
declare type TextAreaProps = Omit<JSX.IntrinsicElements['textarea'], 'class'> & {
|
|
857
|
+
class?: string;
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
export declare const Title: FunctionalComponent<PropsWithoutRef<TitleProps> & {
|
|
861
|
+
ref?: Ref<HTMLHeadingElement> | undefined;
|
|
862
|
+
}>;
|
|
863
|
+
|
|
864
|
+
declare type TitleProps = HTMLAttributes_2<HTMLHeadingElement> & {
|
|
865
|
+
children: ComponentChildren;
|
|
866
|
+
className?: string;
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
declare type TutorialProps = {
|
|
870
|
+
manager: SelfieManager;
|
|
871
|
+
ageAssurance?: boolean;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* ID capture tutorial (front, back, or passport).
|
|
876
|
+
* Translation keys used: idv2.capture.passport.*, idv2.tutorial.*, idv2.tutorial.v2.*,
|
|
877
|
+
* and for back-only / US Smart ID: idv2.backTutorial.title, idv2.backTutorial.subtitle, idv2.backTutorial.disclaimer.
|
|
878
|
+
*/
|
|
879
|
+
declare type TutorialProps_2 = {
|
|
880
|
+
manager: IdCaptureManager;
|
|
881
|
+
state: Extract<IdCaptureState, {
|
|
882
|
+
status: 'tutorial';
|
|
883
|
+
}>;
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
export declare const TypographyH1: FunctionalComponent<PropsWithoutRef<TitleProps> & {
|
|
887
|
+
ref?: Ref<HTMLHeadingElement> | undefined;
|
|
888
|
+
}>;
|
|
889
|
+
|
|
890
|
+
export declare const TypographyH3: FC<TitleProps>;
|
|
891
|
+
|
|
892
|
+
export declare const TypographyH4: FC<TitleProps>;
|
|
893
|
+
|
|
894
|
+
export declare const TypographyH5: FC<TitleProps>;
|
|
895
|
+
|
|
896
|
+
export declare const TypographyP: FC<TitleProps>;
|
|
897
|
+
|
|
898
|
+
export declare type UiConfig = {
|
|
899
|
+
logoSrc?: string;
|
|
900
|
+
logoHeight?: string;
|
|
901
|
+
subtitle?: string;
|
|
902
|
+
hideHeader?: boolean;
|
|
903
|
+
hideFooterBranding?: boolean;
|
|
904
|
+
};
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Hook for subscribing to manager state updates
|
|
908
|
+
* @param factory - Factory function that creates the manager instance
|
|
909
|
+
* @param options - Configuration options
|
|
910
|
+
* @returns Tuple of [state, manager]
|
|
911
|
+
*/
|
|
912
|
+
export declare function useManager<TManager extends {
|
|
913
|
+
getState: () => TState;
|
|
914
|
+
subscribe: (listener: (state: TState) => void) => () => void;
|
|
915
|
+
load?: () => void;
|
|
916
|
+
stop?: () => void;
|
|
917
|
+
}, TState = InferState<TManager>>(factory: () => TManager, options?: UseManagerOptions): [TState, TManager];
|
|
918
|
+
|
|
919
|
+
declare type UseManagerOptions = {
|
|
920
|
+
autoLoad?: boolean;
|
|
921
|
+
manageLifecycle?: boolean;
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Hook that returns whether the device is in landscape mode on mobile (excluding iPad and desktop).
|
|
926
|
+
* Use this to show a landscape blocker overlay when true.
|
|
927
|
+
*/
|
|
928
|
+
export declare function useScreenOrientation(): {
|
|
929
|
+
isLandscapeMobile: boolean;
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
export declare function useTranslation(): UseTranslationReturn;
|
|
933
|
+
|
|
934
|
+
declare type UseTranslationReturn = {
|
|
935
|
+
t: TFunction;
|
|
936
|
+
ready: boolean;
|
|
937
|
+
i18n: i18n;
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
export declare function VerificationOptionCard({ icon: Icon, title, testId, onClick, tag, }: Readonly<VerificationOptionCardProps>): JSX.Element;
|
|
941
|
+
|
|
942
|
+
export declare function VerificationOptionCardList({ children, }: Readonly<VerificationOptionCardListProps>): JSX.Element;
|
|
943
|
+
|
|
944
|
+
declare type VerificationOptionCardListProps = {
|
|
945
|
+
children: ComponentChildren;
|
|
946
|
+
};
|
|
947
|
+
|
|
948
|
+
declare type VerificationOptionCardProps = {
|
|
949
|
+
icon: FC<{
|
|
950
|
+
className?: string;
|
|
951
|
+
}>;
|
|
952
|
+
title: string;
|
|
953
|
+
testId: string;
|
|
954
|
+
onClick: () => void;
|
|
955
|
+
tag?: string;
|
|
956
|
+
};
|
|
957
|
+
|
|
958
|
+
export declare const VerificationResult: FC<VerificationResultProps>;
|
|
959
|
+
|
|
960
|
+
declare type VerificationResultProps = {
|
|
961
|
+
status: 'submitting' | 'success' | 'failure' | 'warning';
|
|
962
|
+
submittingTitle?: string;
|
|
963
|
+
submittingSubtitle?: string;
|
|
964
|
+
successTitle?: string;
|
|
965
|
+
failureTitle?: string;
|
|
966
|
+
warningTitle?: string;
|
|
967
|
+
errorMessage?: string;
|
|
968
|
+
onRetry?: () => void;
|
|
969
|
+
onSkip?: () => void;
|
|
970
|
+
retryLabel?: string;
|
|
971
|
+
skipLabel?: string;
|
|
972
|
+
hideFooterBranding?: boolean;
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
export declare const WarningIcon: FC<WarningIconProps>;
|
|
976
|
+
|
|
977
|
+
declare type WarningIconProps = {
|
|
978
|
+
size?: number | string;
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
export { }
|