@smileid/web-components 11.5.0 → 11.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/DocumentCaptureScreens-DjSTdVP-.js +5398 -0
- package/dist/esm/DocumentCaptureScreens-DjSTdVP-.js.map +1 -0
- package/dist/esm/{Navigation-Xg565kcu.js → Navigation-6DH3vF4-.js} +2 -2
- package/dist/esm/{Navigation-Xg565kcu.js.map → Navigation-6DH3vF4-.js.map} +1 -1
- package/dist/esm/{PoweredBySmileId-CxbaihMu.js → PoweredBySmileId-DoKwoPUd.js} +424 -6
- package/dist/esm/PoweredBySmileId-DoKwoPUd.js.map +1 -0
- package/dist/esm/{SelfieCaptureScreens-D3KuMzZA.js → SelfieCaptureScreens-CtX-4Tco.js} +5 -6
- package/dist/esm/SelfieCaptureScreens-CtX-4Tco.js.map +1 -0
- package/dist/esm/combobox.js +1 -1
- package/dist/esm/document.js +1 -1
- package/dist/esm/end-user-consent.js +713 -2
- package/dist/esm/end-user-consent.js.map +1 -1
- package/dist/esm/index-BqyuTk9f.js +1366 -0
- package/dist/esm/{index-CUwa6MPI.js.map → index-BqyuTk9f.js.map} +1 -1
- package/dist/esm/localisation.js +1 -1
- package/dist/esm/main.js +14 -14
- package/dist/esm/navigation.js +1 -1
- package/dist/esm/{package-BmVbDNny.js → package-CjZI-cNQ.js} +177 -172
- package/dist/esm/{package-BmVbDNny.js.map → package-CjZI-cNQ.js.map} +1 -1
- package/dist/esm/selfie.js +1 -1
- package/dist/esm/smart-camera-web.js +32 -18
- package/dist/esm/smart-camera-web.js.map +1 -1
- package/dist/esm/totp-consent.js +731 -2
- package/dist/esm/totp-consent.js.map +1 -1
- package/dist/esm/validate.js +31 -0
- package/dist/esm/validate.js.map +1 -0
- package/dist/smart-camera-web.js +696 -321
- package/dist/smart-camera-web.js.map +1 -1
- package/dist/types/main.d.ts +7 -1
- package/dist/types/validate.d.ts +21 -0
- package/lib/components/document/src/DocumentCaptureScreens.js +97 -18
- package/lib/components/document/src/assets/lottie.d.ts +12 -0
- package/lib/components/document/src/assets/svg-inline.d.ts +8 -0
- package/lib/components/document/src/document-auto-capture/DocumentAutoCapture.stories.js +75 -0
- package/lib/components/document/src/document-auto-capture/DocumentAutoCapture.tsx +1458 -0
- package/lib/components/document/src/document-auto-capture/README.md +73 -0
- package/lib/components/document/src/document-auto-capture/assets/Greenbook_Shimmer.svg +42 -0
- package/lib/components/document/src/document-auto-capture/assets/ID_Back_Shimmer.svg +8 -0
- package/lib/components/document/src/document-auto-capture/assets/ID_Front_Shimmer.svg +20 -0
- package/lib/components/document/src/document-auto-capture/assets/Passport-Shimmer.svg +143 -0
- package/lib/components/document/src/document-auto-capture/assets/shimmers.ts +21 -0
- package/lib/components/document/src/document-auto-capture/assets/svg-raw.d.ts +4 -0
- package/lib/components/document/src/document-auto-capture/components/CaptureButton.tsx +122 -0
- package/lib/components/document/src/document-auto-capture/components/Overlay.tsx +167 -0
- package/lib/components/document/src/document-auto-capture/components/TuningPanel.tsx +856 -0
- package/lib/components/document/src/document-auto-capture/constants/captureLayout.ts +58 -0
- package/lib/components/document/src/document-auto-capture/detection/cvErrorRecovery.ts +40 -0
- package/lib/components/document/src/document-auto-capture/detection/documentAspect.ts +20 -0
- package/lib/components/document/src/document-auto-capture/detection/qualityScoring.ts +35 -0
- package/lib/components/document/src/document-auto-capture/detection/seamRejection.ts +209 -0
- package/lib/components/document/src/document-auto-capture/detection/synthesisTiming.ts +10 -0
- package/lib/components/document/src/document-auto-capture/hooks/useCamera.ts +117 -0
- package/lib/components/document/src/document-auto-capture/hooks/useCardDetection.ts +3059 -0
- package/lib/components/document/src/document-auto-capture/index.ts +4 -0
- package/lib/components/document/src/document-auto-capture/theme.ts +40 -0
- package/lib/components/document/src/document-auto-capture/utils/debug.ts +25 -0
- package/lib/components/document/src/document-auto-capture/utils/opencvLoader.ts +86 -0
- package/lib/components/document/src/document-capture-instructions/DocumentCaptureInstructions.tsx +327 -244
- package/lib/components/document/src/document-capture-review/DocumentCaptureReview.js +153 -189
- package/lib/components/document/src/document-capture-submission/DocumentCaptureSubmission.tsx +432 -0
- package/lib/components/document/src/document-capture-submission/index.js +3 -0
- package/lib/components/selfie/README.md +13 -0
- package/lib/components/signature-pad/package.json +1 -1
- package/lib/components/smart-camera-web/src/README.md +11 -0
- package/lib/components/smart-camera-web/src/SmartCameraWeb.js +25 -1
- package/lib/components/totp-consent/src/TotpConsent.js +1 -1
- package/package.json +8 -4
- package/dist/esm/DocumentCaptureScreens-ucJDu5nH.js +0 -2232
- package/dist/esm/DocumentCaptureScreens-ucJDu5nH.js.map +0 -1
- package/dist/esm/EndUserConsent-CsiwoThZ.js +0 -717
- package/dist/esm/EndUserConsent-CsiwoThZ.js.map +0 -1
- package/dist/esm/PoweredBySmileId-CxbaihMu.js.map +0 -1
- package/dist/esm/SelfieCaptureScreens-D3KuMzZA.js.map +0 -1
- package/dist/esm/TotpConsent-CRtmtudl.js +0 -734
- package/dist/esm/TotpConsent-CRtmtudl.js.map +0 -1
- package/dist/esm/index-CUwa6MPI.js +0 -1363
- package/dist/esm/styles-BTEClL7R.js +0 -419
- package/dist/esm/styles-BTEClL7R.js.map +0 -1
- /package/lib/components/document/src/assets/lottie/{taking photo of green book passport.lottie → greenbook.lottie} +0 -0
- /package/lib/components/document/src/assets/lottie/{taking photo of ID FLIP 2D.lottie → id-card-flip.lottie} +0 -0
- /package/lib/components/document/src/assets/lottie/{taking photo of ID.lottie → id-card.lottie} +0 -0
- /package/lib/components/document/src/assets/lottie/{taking photo of passport 2.lottie → passport.lottie} +0 -0
|
@@ -1,419 +0,0 @@
|
|
|
1
|
-
const t = `
|
|
2
|
-
.text-xs {
|
|
3
|
-
font-size: 0.75rem;
|
|
4
|
-
line-height: 1rem;
|
|
5
|
-
}
|
|
6
|
-
.text-sm {
|
|
7
|
-
font-size: 0.875rem;
|
|
8
|
-
line-height: 1.125rem;
|
|
9
|
-
}
|
|
10
|
-
.text-base {
|
|
11
|
-
font-size: 1rem;
|
|
12
|
-
line-height: 1rem;
|
|
13
|
-
}
|
|
14
|
-
.text-lg {
|
|
15
|
-
font-size: 1.125rem;
|
|
16
|
-
line-height: 1.75rem;
|
|
17
|
-
}
|
|
18
|
-
.text-xl {
|
|
19
|
-
font-size: 1.25rem;
|
|
20
|
-
line-height: 1.75rem;
|
|
21
|
-
}
|
|
22
|
-
.text-2xl {
|
|
23
|
-
font-size: 1.5rem;
|
|
24
|
-
line-height: 2rem;
|
|
25
|
-
}
|
|
26
|
-
.text-3xl {
|
|
27
|
-
font-size: 1.875rem;
|
|
28
|
-
line-height: 2.25rem;
|
|
29
|
-
}
|
|
30
|
-
.text-4xl {
|
|
31
|
-
font-size: 2rem;
|
|
32
|
-
line-height: 2.5rem;
|
|
33
|
-
}
|
|
34
|
-
.text-5xl {
|
|
35
|
-
font-size: 2.25rem;
|
|
36
|
-
line-height: 2.5rem;
|
|
37
|
-
}
|
|
38
|
-
.font-bold {
|
|
39
|
-
font-weight: 700;
|
|
40
|
-
}
|
|
41
|
-
.font-semibold {
|
|
42
|
-
font-weight: 600;
|
|
43
|
-
}
|
|
44
|
-
.font-medium {
|
|
45
|
-
font-weight: 500;
|
|
46
|
-
}
|
|
47
|
-
.font-normal {
|
|
48
|
-
font-weight: 400;
|
|
49
|
-
}
|
|
50
|
-
`, o = (e) => `<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
51
|
-
<link
|
|
52
|
-
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap"
|
|
53
|
-
rel="stylesheet"
|
|
54
|
-
as="style"
|
|
55
|
-
/>
|
|
56
|
-
<style>
|
|
57
|
-
${t}
|
|
58
|
-
:host {
|
|
59
|
-
--theme-color: ${e || "#001096"};
|
|
60
|
-
--color-active: #001096;
|
|
61
|
-
--color-default: #2d2b2a;
|
|
62
|
-
--color-disabled: #848282;
|
|
63
|
-
--web-digital-blue: #001096;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
* {
|
|
67
|
-
font-family: "DM Sans", sans-serif;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
[hidden] {
|
|
71
|
-
display: none !important;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[disabled] {
|
|
75
|
-
cursor: not-allowed !important;
|
|
76
|
-
filter: grayscale(75%);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.visually-hidden {
|
|
80
|
-
border: 0;
|
|
81
|
-
clip: rect(1px 1px 1px 1px);
|
|
82
|
-
clip: rect(1px, 1px, 1px, 1px);
|
|
83
|
-
height: auto;
|
|
84
|
-
margin: 0;
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
padding: 0;
|
|
87
|
-
position: absolute;
|
|
88
|
-
white-space: nowrap;
|
|
89
|
-
width: 1px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
img {
|
|
93
|
-
height: auto;
|
|
94
|
-
max-width: 100%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
video {
|
|
98
|
-
background-color: black;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
a {
|
|
102
|
-
color: currentColor;
|
|
103
|
-
text-decoration: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
svg {
|
|
107
|
-
max-width: 100%;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.color-gray {
|
|
111
|
-
color: #797979;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.color-red {
|
|
115
|
-
color: red;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.color-richblue {
|
|
119
|
-
color: #4e6577;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.color-richblue-shade {
|
|
123
|
-
color: #0e1b42;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.color-digital-blue {
|
|
127
|
-
color: var(--web-digital-blue) !important;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.color-deep-blue {
|
|
131
|
-
color: #001096;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.title-color {
|
|
135
|
-
color: ${e || "#001096"};
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.theme-color {
|
|
139
|
-
color: ${e || "#001096"};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.center {
|
|
143
|
-
text-align: center;
|
|
144
|
-
margin-left: auto;
|
|
145
|
-
margin-right: auto;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.font-size-small {
|
|
149
|
-
font-size: 0.75rem;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.font-size-large {
|
|
153
|
-
font-size: 1.5rem;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.text-transform-uppercase {
|
|
157
|
-
text-transform: uppercase;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
[id*=-"screen"] {
|
|
161
|
-
min-block-size: 100%;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
[data-variant~="full-width"] {
|
|
165
|
-
inline-size: 100%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.flow > * + * {
|
|
169
|
-
margin-top: var(--flow-space, 1rem);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.button {
|
|
173
|
-
--button-color: ${e || "var(--active-color)"};
|
|
174
|
-
-webkit-appearance: none;
|
|
175
|
-
appearance: none;
|
|
176
|
-
border-radius: 2.5rem;
|
|
177
|
-
border: 0;
|
|
178
|
-
background-color: transparent;
|
|
179
|
-
color: #fff;
|
|
180
|
-
cursor: pointer;
|
|
181
|
-
display: block;
|
|
182
|
-
font-size: 18px;
|
|
183
|
-
font-weight: 600;
|
|
184
|
-
padding: 0.75rem 1.5rem;
|
|
185
|
-
text-align: center;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.button:hover,
|
|
189
|
-
.button:focus,
|
|
190
|
-
.button:active {
|
|
191
|
-
--button-color: var(--color-default);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.button:disabled {
|
|
195
|
-
--button-color: var(--color-disabled);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.button[data-variant~="solid"] {
|
|
199
|
-
background-color: var(--button-color);
|
|
200
|
-
border: 2px solid var(--button-color);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.button[data-variant~="outline"] {
|
|
204
|
-
color: var(--button-color);
|
|
205
|
-
border: 2px solid var(--button-color);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.button[data-variant~="ghost"] {
|
|
209
|
-
padding: 0px;
|
|
210
|
-
color: var(--button-color);
|
|
211
|
-
background-color: transparent;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.icon-btn {
|
|
215
|
-
appearance: none;
|
|
216
|
-
background: none;
|
|
217
|
-
border: none;
|
|
218
|
-
color: hsl(0deg 0% 94%);
|
|
219
|
-
cursor: pointer;
|
|
220
|
-
display: flex;
|
|
221
|
-
align-items: center;
|
|
222
|
-
justify-content: center;
|
|
223
|
-
padding: 4px 8px;
|
|
224
|
-
}
|
|
225
|
-
.justify-right {
|
|
226
|
-
justify-content: end !important;
|
|
227
|
-
}
|
|
228
|
-
.nav {
|
|
229
|
-
display: flex;
|
|
230
|
-
justify-content: space-between;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.back-wrapper {
|
|
234
|
-
display: flex;
|
|
235
|
-
align-items: center;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
.back-button-text {
|
|
239
|
-
font-size: 11px;
|
|
240
|
-
line-height: 11px;
|
|
241
|
-
color: rgb(21, 31, 114);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
.selfie-capture-review-image {
|
|
246
|
-
overflow: hidden;
|
|
247
|
-
aspect-ratio: 1/1;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
#review-image {
|
|
251
|
-
scale: 1.75;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
@media (max-aspect-ratio: 1/1) {
|
|
255
|
-
#review-image {
|
|
256
|
-
transform: scaleX(-1) translateY(-10%);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.tips,
|
|
261
|
-
.powered-by {
|
|
262
|
-
align-items: center;
|
|
263
|
-
border-radius: 0.25rem;
|
|
264
|
-
color: #4e6577;
|
|
265
|
-
display: flex;
|
|
266
|
-
justify-content: center;
|
|
267
|
-
letter-spacing: 0.075em;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.powered-by {
|
|
271
|
-
box-shadow: 0px 2.57415px 2.57415px rgba(0, 0, 0, 0.06);
|
|
272
|
-
display: inline-flex;
|
|
273
|
-
font-size: 0.5rem;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.tips {
|
|
277
|
-
margin-left: auto;
|
|
278
|
-
margin-right: auto;
|
|
279
|
-
max-width: 17rem;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
.tips > * + *,
|
|
283
|
-
.powered-by > * + * {
|
|
284
|
-
display: inline-block;
|
|
285
|
-
margin-left: 0.5em;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.powered-by .company {
|
|
289
|
-
color: #18406d;
|
|
290
|
-
font-weight: 700;
|
|
291
|
-
letter-spacing: 0.15rem;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.logo-mark {
|
|
295
|
-
background-color: #004071;
|
|
296
|
-
display: inline-block;
|
|
297
|
-
padding: 0.25em 0.5em;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
.logo-mark svg {
|
|
301
|
-
height: auto;
|
|
302
|
-
justify-self: center;
|
|
303
|
-
width: 0.75em;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
#document-capture-instructions-screen,
|
|
307
|
-
#back-of-document-capture-instructions-screen {
|
|
308
|
-
box-sizing: border-box;
|
|
309
|
-
height: 100%;
|
|
310
|
-
padding: 1rem;
|
|
311
|
-
display: flex;
|
|
312
|
-
flex-direction: column;
|
|
313
|
-
max-block-size: 100%;
|
|
314
|
-
max-inline-size: 40ch;
|
|
315
|
-
justify-content: space-between;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
#document-capture-instructions-screen header p {
|
|
319
|
-
margin-block: 0 !important;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.description {
|
|
323
|
-
color: var(--neutral-off-black, #2D2B2A);
|
|
324
|
-
text-align: center;
|
|
325
|
-
|
|
326
|
-
/* p */
|
|
327
|
-
font-family: DM Sans;
|
|
328
|
-
font-size: 0.875rem;
|
|
329
|
-
font-style: normal;
|
|
330
|
-
font-weight: 400;
|
|
331
|
-
line-height: 18px;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
.padding-bottom-2 {
|
|
335
|
-
padding-bottom: 2rem;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
smart-camera-web, selfie-capture-screens, selfie-capture-instructions, document-capture-screens, document-capture-instructions, document-capture-instructions-v2 {
|
|
339
|
-
height: 100%;
|
|
340
|
-
display: block;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.instructions-wrapper {
|
|
344
|
-
display: inline-flex;
|
|
345
|
-
flex-direction: column;
|
|
346
|
-
gap: 1rem;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
@media (min-width: 40rem) {
|
|
350
|
-
.instructions-wrapper {
|
|
351
|
-
gap: 1.75rem;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.instructions {
|
|
356
|
-
display: flex;
|
|
357
|
-
align-items: center;
|
|
358
|
-
text-align: initial;
|
|
359
|
-
gap: 0.5rem;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
.instructions svg {
|
|
363
|
-
flex-shrink: 0;
|
|
364
|
-
margin-inline-end: 0.25rem;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.instructions p {
|
|
368
|
-
margin-block: 0;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.instruction {
|
|
372
|
-
display: flex;
|
|
373
|
-
flex-direction: column;
|
|
374
|
-
gap: 0.5rem;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
.instruction-body {
|
|
378
|
-
font-size: 0.75rem;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.instruction-header {
|
|
382
|
-
color: ${e};
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.flex-column {
|
|
386
|
-
display: flex;
|
|
387
|
-
flex-direction: column;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
@keyframes spin {
|
|
391
|
-
0% {
|
|
392
|
-
transform: translate3d(-50%, -50%, 0) rotate(0deg);
|
|
393
|
-
}
|
|
394
|
-
100% {
|
|
395
|
-
transform: translate3d(-50%, -50%, 0) rotate(360deg);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.spinner {
|
|
400
|
-
animation: 1.5s linear infinite spin;
|
|
401
|
-
animation-play-state: inherit;
|
|
402
|
-
border: solid 5px #cfd0d1;
|
|
403
|
-
border-bottom-color: var(--color-active);
|
|
404
|
-
border-radius: 50%;
|
|
405
|
-
content: "";
|
|
406
|
-
display: block;
|
|
407
|
-
height: 25px;
|
|
408
|
-
width: 25px;
|
|
409
|
-
will-change: transform;
|
|
410
|
-
position: relative;
|
|
411
|
-
top: .675rem;
|
|
412
|
-
left: 1.25rem;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
</style>`;
|
|
416
|
-
export {
|
|
417
|
-
o as s
|
|
418
|
-
};
|
|
419
|
-
//# sourceMappingURL=styles-BTEClL7R.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles-BTEClL7R.js","sources":["../../lib/styles/src/typography.js","../../lib/styles/src/styles.js"],"sourcesContent":["const typography = `\n .text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n .text-sm {\n font-size: 0.875rem;\n line-height: 1.125rem;\n }\n .text-base {\n font-size: 1rem;\n line-height: 1rem;\n }\n .text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n }\n .text-xl {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n .text-2xl {\n font-size: 1.5rem;\n line-height: 2rem;\n }\n .text-3xl {\n font-size: 1.875rem;\n line-height: 2.25rem;\n }\n .text-4xl {\n font-size: 2rem;\n line-height: 2.5rem;\n }\n .text-5xl {\n font-size: 2.25rem;\n line-height: 2.5rem;\n }\n .font-bold {\n font-weight: 700;\n }\n .font-semibold {\n font-weight: 600;\n }\n .font-medium {\n font-weight: 500;\n }\n .font-normal {\n font-weight: 400;\n }\n`;\n\nexport default typography;\n","import typography from './typography';\n\nconst styles = (\n themeColor,\n) => `<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" />\n<link\n href=\"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap\"\n rel=\"stylesheet\"\n as=\"style\"\n/>\n<style>\n${typography}\n:host {\n --theme-color: ${themeColor || '#001096'};\n --color-active: #001096;\n --color-default: #2d2b2a;\n --color-disabled: #848282;\n --web-digital-blue: #001096;\n }\n\n * {\n font-family: \"DM Sans\", sans-serif;\n }\n\n [hidden] {\n display: none !important;\n }\n\n [disabled] {\n cursor: not-allowed !important;\n filter: grayscale(75%);\n }\n\n .visually-hidden {\n border: 0;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n height: auto;\n margin: 0;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n\n img {\n height: auto;\n max-width: 100%;\n }\n\n video {\n background-color: black;\n }\n\n a {\n color: currentColor;\n text-decoration: none;\n }\n\n svg {\n max-width: 100%;\n }\n\n .color-gray {\n color: #797979;\n }\n\n .color-red {\n color: red;\n }\n\n .color-richblue {\n color: #4e6577;\n }\n\n .color-richblue-shade {\n color: #0e1b42;\n }\n\n .color-digital-blue {\n color: var(--web-digital-blue) !important;\n }\n\n .color-deep-blue {\n color: #001096;\n }\n\n .title-color {\n color: ${themeColor || '#001096'};\n }\n \n .theme-color {\n color: ${themeColor || '#001096'};\n }\n\n .center {\n text-align: center;\n margin-left: auto;\n margin-right: auto;\n }\n\n .font-size-small {\n font-size: 0.75rem;\n }\n\n .font-size-large {\n font-size: 1.5rem;\n }\n\n .text-transform-uppercase {\n text-transform: uppercase;\n }\n\n [id*=-\"screen\"] {\n min-block-size: 100%;\n }\n\n [data-variant~=\"full-width\"] {\n inline-size: 100%;\n }\n\n .flow > * + * {\n margin-top: var(--flow-space, 1rem);\n }\n\n .button {\n --button-color: ${themeColor || 'var(--active-color)'};\n -webkit-appearance: none;\n appearance: none;\n border-radius: 2.5rem;\n border: 0;\n background-color: transparent;\n color: #fff;\n cursor: pointer;\n display: block;\n font-size: 18px;\n font-weight: 600;\n padding: 0.75rem 1.5rem;\n text-align: center;\n }\n\n .button:hover,\n .button:focus,\n .button:active {\n --button-color: var(--color-default);\n }\n\n .button:disabled {\n --button-color: var(--color-disabled);\n }\n\n .button[data-variant~=\"solid\"] {\n background-color: var(--button-color);\n border: 2px solid var(--button-color);\n }\n\n .button[data-variant~=\"outline\"] {\n color: var(--button-color);\n border: 2px solid var(--button-color);\n }\n\n .button[data-variant~=\"ghost\"] {\n padding: 0px;\n color: var(--button-color);\n background-color: transparent;\n }\n\n .icon-btn {\n appearance: none;\n background: none;\n border: none;\n color: hsl(0deg 0% 94%);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 4px 8px;\n }\n .justify-right {\n justify-content: end !important;\n }\n .nav {\n display: flex;\n justify-content: space-between;\n }\n\n .back-wrapper {\n display: flex;\n align-items: center;\n }\n\n .back-button-text {\n font-size: 11px;\n line-height: 11px;\n color: rgb(21, 31, 114);\n }\n\n\n .selfie-capture-review-image {\n overflow: hidden;\n aspect-ratio: 1/1;\n }\n\n #review-image {\n scale: 1.75;\n }\n\n @media (max-aspect-ratio: 1/1) {\n #review-image {\n transform: scaleX(-1) translateY(-10%);\n }\n }\n\n .tips,\n .powered-by {\n align-items: center;\n border-radius: 0.25rem;\n color: #4e6577;\n display: flex;\n justify-content: center;\n letter-spacing: 0.075em;\n }\n\n .powered-by {\n box-shadow: 0px 2.57415px 2.57415px rgba(0, 0, 0, 0.06);\n display: inline-flex;\n font-size: 0.5rem;\n }\n\n .tips {\n margin-left: auto;\n margin-right: auto;\n max-width: 17rem;\n }\n\n .tips > * + *,\n .powered-by > * + * {\n display: inline-block;\n margin-left: 0.5em;\n }\n\n .powered-by .company {\n color: #18406d;\n font-weight: 700;\n letter-spacing: 0.15rem;\n }\n\n .logo-mark {\n background-color: #004071;\n display: inline-block;\n padding: 0.25em 0.5em;\n }\n\n .logo-mark svg {\n height: auto;\n justify-self: center;\n width: 0.75em;\n }\n\n #document-capture-instructions-screen,\n #back-of-document-capture-instructions-screen {\n box-sizing: border-box;\n height: 100%;\n padding: 1rem;\n display: flex;\n flex-direction: column;\n max-block-size: 100%;\n max-inline-size: 40ch;\n justify-content: space-between;\n }\n\n #document-capture-instructions-screen header p {\n margin-block: 0 !important;\n }\n\n .description {\n color: var(--neutral-off-black, #2D2B2A);\n text-align: center;\n\n /* p */\n font-family: DM Sans;\n font-size: 0.875rem;\n font-style: normal;\n font-weight: 400;\n line-height: 18px;\n }\n\n .padding-bottom-2 {\n padding-bottom: 2rem;\n }\n\n smart-camera-web, selfie-capture-screens, selfie-capture-instructions, document-capture-screens, document-capture-instructions, document-capture-instructions-v2 {\n height: 100%;\n display: block;\n }\n\n .instructions-wrapper {\n display: inline-flex;\n flex-direction: column;\n gap: 1rem;\n }\n \n @media (min-width: 40rem) {\n .instructions-wrapper {\n gap: 1.75rem;\n }\n }\n\n .instructions {\n display: flex;\n align-items: center;\n text-align: initial;\n gap: 0.5rem;\n }\n\n .instructions svg {\n flex-shrink: 0;\n margin-inline-end: 0.25rem;\n }\n\n .instructions p {\n margin-block: 0;\n }\n\n .instruction {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n }\n\n .instruction-body {\n font-size: 0.75rem;\n }\n\n .instruction-header {\n color: ${themeColor};\n }\n\n .flex-column {\n display: flex;\n flex-direction: column;\n }\n\n @keyframes spin {\n 0% {\n transform: translate3d(-50%, -50%, 0) rotate(0deg);\n }\n 100% {\n transform: translate3d(-50%, -50%, 0) rotate(360deg);\n }\n}\n\n.spinner {\n animation: 1.5s linear infinite spin;\n animation-play-state: inherit;\n border: solid 5px #cfd0d1;\n border-bottom-color: var(--color-active);\n border-radius: 50%;\n content: \"\";\n display: block;\n height: 25px;\n width: 25px;\n will-change: transform;\n position: relative;\n top: .675rem;\n left: 1.25rem;\n }\n\n</style>`;\n\nexport default styles;\n"],"names":["typography","styles","themeColor"],"mappings":"AAAA,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GCEbC,IAAS,CACbC,MACG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOHF,CAAU;AAAA;AAAA,qBAESE,KAAc,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aA4E/BA,KAAc,SAAS;AAAA;AAAA;AAAA;AAAA,aAIvBA,KAAc,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAkCdA,KAAc,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAiN5CA,CAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
File without changes
|
|
File without changes
|
/package/lib/components/document/src/assets/lottie/{taking photo of ID.lottie → id-card.lottie}
RENAMED
|
File without changes
|
|
File without changes
|