@smileid/web-components 10.0.6 → 11.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.
Files changed (142) hide show
  1. package/README.md +15 -15
  2. package/dist/README.md +15 -0
  3. package/dist/components/README.md +14 -0
  4. package/dist/components/document/src/README.md +111 -0
  5. package/dist/components/document/src/document-capture/README.md +90 -0
  6. package/dist/components/document/src/document-capture-instructions/README.md +56 -0
  7. package/dist/components/document/src/document-capture-review/README.md +79 -0
  8. package/dist/components/selfie/README.md +225 -0
  9. package/dist/components/smart-camera-web/src/README.md +207 -0
  10. package/dist/domain/camera/src/README.md +38 -0
  11. package/dist/domain/file-upload/README.md +35 -0
  12. package/dist/esm/{DocumentCaptureScreens-BjATTDqu.js → DocumentCaptureScreens-DmH2JZDA.js} +3 -3
  13. package/dist/esm/DocumentCaptureScreens-DmH2JZDA.js.map +1 -0
  14. package/dist/esm/EndUserConsent-D4fd1ovG.js.map +1 -1
  15. package/dist/esm/Navigation-CTjK6tLU.js.map +1 -1
  16. package/dist/esm/PoweredBySmileId-CxbaihMu.js.map +1 -1
  17. package/dist/esm/SelfieCaptureScreens-DbdN2zNk.js +7901 -0
  18. package/dist/esm/SelfieCaptureScreens-DbdN2zNk.js.map +1 -0
  19. package/dist/esm/SignaturePad-C7MtmT8m.js.map +1 -1
  20. package/dist/esm/TotpConsent-CQU5jQi4.js.map +1 -1
  21. package/dist/esm/combobox.js.map +1 -1
  22. package/dist/esm/document.js +1 -1
  23. package/dist/esm/main.js +2 -2
  24. package/dist/esm/{package-CZlW6BZn.js → package-bgeQiff6.js} +2 -2
  25. package/dist/esm/package-bgeQiff6.js.map +1 -0
  26. package/dist/esm/selfie.js +1 -1
  27. package/dist/esm/smart-camera-web.js +3 -3
  28. package/dist/esm/smart-camera-web.js.map +1 -1
  29. package/dist/esm/styles-BOEZtbuc.js.map +1 -1
  30. package/dist/package-lock.json +4948 -0
  31. package/dist/package.json +59 -0
  32. package/dist/smart-camera-web.js +72 -98
  33. package/dist/smart-camera-web.js.gz +0 -0
  34. package/dist/smart-camera-web.js.map +1 -1
  35. package/dist/src/components/combobox/src/index.js +2 -0
  36. package/dist/src/components/combobox/src/index.js.map +7 -0
  37. package/dist/src/components/document/src/index.js +2 -0
  38. package/dist/src/components/document/src/index.js.map +7 -0
  39. package/dist/src/components/end-user-consent/src/index.js +14 -0
  40. package/dist/src/components/end-user-consent/src/index.js.map +7 -0
  41. package/dist/src/components/selfie/src/index.js +2 -0
  42. package/dist/src/components/selfie/src/index.js.map +7 -0
  43. package/dist/src/components/signature-pad/src/index.js +10 -0
  44. package/dist/src/components/signature-pad/src/index.js.map +7 -0
  45. package/dist/src/components/smart-camera-web/src/SmartCameraWeb.js +2 -0
  46. package/dist/src/components/smart-camera-web/src/SmartCameraWeb.js.map +7 -0
  47. package/dist/src/components/totp-consent/src/index.js +14 -0
  48. package/dist/src/components/totp-consent/src/index.js.map +7 -0
  49. package/dist/src/index.js.map +7 -0
  50. package/dist/styles/README.md +3 -0
  51. package/dist/types/combobox.d.ts +19 -19
  52. package/dist/types/document.d.ts +19 -19
  53. package/dist/types/end-user-consent.d.ts +19 -19
  54. package/dist/types/main.d.ts +24 -20
  55. package/dist/types/navigation.d.ts +19 -19
  56. package/dist/types/selfie.d.ts +19 -19
  57. package/dist/types/signature-pad.d.ts +19 -19
  58. package/dist/types/smart-camera-web.d.ts +19 -19
  59. package/dist/types/totp-consent.d.ts +19 -19
  60. package/lib/components/README.md +14 -14
  61. package/lib/components/attribution/PoweredBySmileId.js +42 -42
  62. package/lib/components/camera-permission/CameraPermission.js +139 -139
  63. package/lib/components/camera-permission/CameraPermission.stories.js +27 -27
  64. package/lib/components/combobox/src/Combobox.js +589 -589
  65. package/lib/components/combobox/src/index.js +1 -1
  66. package/lib/components/document/src/DocumentCaptureScreens.js +410 -409
  67. package/lib/components/document/src/DocumentCaptureScreens.stories.js +57 -57
  68. package/lib/components/document/src/README.md +111 -111
  69. package/lib/components/document/src/document-capture/DocumentCapture.js +760 -760
  70. package/lib/components/document/src/document-capture/DocumentCapture.stories.js +78 -78
  71. package/lib/components/document/src/document-capture/README.md +90 -90
  72. package/lib/components/document/src/document-capture/index.js +3 -3
  73. package/lib/components/document/src/document-capture-instructions/DocumentCaptureInstructions.js +545 -545
  74. package/lib/components/document/src/document-capture-instructions/DocumentCaptureInstructions.stories.js +24 -24
  75. package/lib/components/document/src/document-capture-instructions/README.md +56 -56
  76. package/lib/components/document/src/document-capture-instructions/index.js +3 -3
  77. package/lib/components/document/src/document-capture-review/DocumentCaptureReview.js +360 -360
  78. package/lib/components/document/src/document-capture-review/DocumentCaptureReview.stories.js +24 -24
  79. package/lib/components/document/src/document-capture-review/README.md +79 -79
  80. package/lib/components/document/src/document-capture-review/index.js +3 -3
  81. package/lib/components/document/src/index.js +3 -3
  82. package/lib/components/end-user-consent/src/EndUserConsent.js +795 -795
  83. package/lib/components/end-user-consent/src/EndUserConsent.stories.js +29 -29
  84. package/lib/components/end-user-consent/src/index.js +4 -4
  85. package/lib/components/navigation/src/Navigation.js +171 -171
  86. package/lib/components/navigation/src/Navigation.stories.js +24 -24
  87. package/lib/components/navigation/src/index.js +3 -3
  88. package/lib/components/selfie/README.md +225 -225
  89. package/lib/components/selfie/src/SelfieCaptureScreens.js +420 -431
  90. package/lib/components/selfie/src/SelfieCaptureScreens.stories.js +29 -29
  91. package/lib/components/selfie/src/index.js +3 -3
  92. package/lib/components/selfie/src/selfie-capture/SelfieCapture.js +1099 -1084
  93. package/lib/components/selfie/src/selfie-capture/SelfieCapture.stories.js +36 -36
  94. package/lib/components/selfie/src/selfie-capture/index.js +3 -3
  95. package/lib/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.js +689 -689
  96. package/lib/components/selfie/src/selfie-capture-instructions/SelfieCaptureInstructions.stories.js +23 -23
  97. package/lib/components/selfie/src/selfie-capture-instructions/index.js +3 -3
  98. package/lib/components/selfie/src/selfie-capture-review/SelfieCaptureReview.js +209 -209
  99. package/lib/components/selfie/src/selfie-capture-review/SelfieCaptureReview.stories.js +24 -24
  100. package/lib/components/selfie/src/selfie-capture-review/index.js +3 -3
  101. package/lib/components/selfie/src/selfie-capture-wrapper/SelfieCaptureWrapper.tsx +256 -239
  102. package/lib/components/selfie/src/selfie-capture-wrapper/index.ts +1 -1
  103. package/lib/components/selfie/src/smartselfie-capture/OvalProgress.tsx +81 -81
  104. package/lib/components/selfie/src/smartselfie-capture/SmartSelfieCapture.tsx +265 -283
  105. package/lib/components/selfie/src/smartselfie-capture/components/AlertDisplay.tsx +34 -34
  106. package/lib/components/selfie/src/smartselfie-capture/components/CameraPreview.tsx +97 -97
  107. package/lib/components/selfie/src/smartselfie-capture/components/CaptureControls.tsx +78 -76
  108. package/lib/components/selfie/src/smartselfie-capture/components/index.ts +3 -3
  109. package/lib/components/selfie/src/smartselfie-capture/constants.ts +23 -23
  110. package/lib/components/selfie/src/smartselfie-capture/hooks/index.ts +2 -2
  111. package/lib/components/selfie/src/smartselfie-capture/hooks/useCamera.ts +238 -238
  112. package/lib/components/selfie/src/smartselfie-capture/hooks/useFaceCapture.ts +618 -617
  113. package/lib/components/selfie/src/smartselfie-capture/index.ts +1 -1
  114. package/lib/components/selfie/src/smartselfie-capture/utils/alertMessages.ts +13 -13
  115. package/lib/components/selfie/src/smartselfie-capture/utils/canvas.ts +105 -105
  116. package/lib/components/selfie/src/smartselfie-capture/utils/faceDetection.ts +129 -129
  117. package/lib/components/selfie/src/smartselfie-capture/utils/imageCapture.ts +64 -64
  118. package/lib/components/selfie/src/smartselfie-capture/utils/index.ts +4 -4
  119. package/lib/components/selfie/src/smartselfie-capture/utils/mediapipeManager.ts +77 -77
  120. package/lib/components/signature-pad/package-lock.json +3009 -3009
  121. package/lib/components/signature-pad/package.json +30 -30
  122. package/lib/components/signature-pad/src/SignaturePad.js +484 -484
  123. package/lib/components/signature-pad/src/SignaturePad.stories.js +32 -32
  124. package/lib/components/signature-pad/src/index.js +3 -3
  125. package/lib/components/smart-camera-web/src/README.md +206 -206
  126. package/lib/components/smart-camera-web/src/SmartCameraWeb.js +305 -305
  127. package/lib/components/smart-camera-web/src/SmartCameraWeb.stories.js +57 -57
  128. package/lib/components/totp-consent/src/TotpConsent.js +949 -949
  129. package/lib/components/totp-consent/src/index.js +4 -4
  130. package/lib/domain/camera/src/README.md +38 -38
  131. package/lib/domain/camera/src/SmartCamera.js +109 -109
  132. package/lib/domain/constants/src/Constants.js +27 -27
  133. package/lib/domain/file-upload/README.md +35 -35
  134. package/lib/domain/file-upload/src/SmartFileUpload.js +65 -65
  135. package/lib/styles/README.md +3 -3
  136. package/lib/styles/src/styles.js +372 -372
  137. package/lib/styles/src/typography.js +52 -52
  138. package/package.json +111 -112
  139. package/dist/esm/DocumentCaptureScreens-BjATTDqu.js.map +0 -1
  140. package/dist/esm/SelfieCaptureScreens-UUzZzl1A.js +0 -11361
  141. package/dist/esm/SelfieCaptureScreens-UUzZzl1A.js.map +0 -1
  142. package/dist/esm/package-CZlW6BZn.js.map +0 -1
@@ -1,372 +1,372 @@
1
- import typography from './typography';
2
-
3
- const styles = (
4
- themeColor,
5
- ) => `<link rel="preconnect" href="https://fonts.gstatic.com" />
6
- <link
7
- href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap"
8
- rel="stylesheet"
9
- as="style"
10
- />
11
- <style>
12
- ${typography}
13
- :host {
14
- --theme-color: ${themeColor || '#001096'};
15
- --color-active: #001096;
16
- --color-default: #2d2b2a;
17
- --color-disabled: #848282;
18
- --web-digital-blue: #001096;
19
- }
20
-
21
- * {
22
- font-family: "DM Sans", sans-serif;
23
- }
24
-
25
- [hidden] {
26
- display: none !important;
27
- }
28
-
29
- [disabled] {
30
- cursor: not-allowed !important;
31
- filter: grayscale(75%);
32
- }
33
-
34
- .visually-hidden {
35
- border: 0;
36
- clip: rect(1px 1px 1px 1px);
37
- clip: rect(1px, 1px, 1px, 1px);
38
- height: auto;
39
- margin: 0;
40
- overflow: hidden;
41
- padding: 0;
42
- position: absolute;
43
- white-space: nowrap;
44
- width: 1px;
45
- }
46
-
47
- img {
48
- height: auto;
49
- max-width: 100%;
50
- }
51
-
52
- video {
53
- background-color: black;
54
- }
55
-
56
- a {
57
- color: currentColor;
58
- text-decoration: none;
59
- }
60
-
61
- svg {
62
- max-width: 100%;
63
- }
64
-
65
- .color-gray {
66
- color: #797979;
67
- }
68
-
69
- .color-red {
70
- color: red;
71
- }
72
-
73
- .color-richblue {
74
- color: #4e6577;
75
- }
76
-
77
- .color-richblue-shade {
78
- color: #0e1b42;
79
- }
80
-
81
- .color-digital-blue {
82
- color: var(--web-digital-blue) !important;
83
- }
84
-
85
- .color-deep-blue {
86
- color: #001096;
87
- }
88
-
89
- .title-color {
90
- color: ${themeColor || '#001096'};
91
- }
92
-
93
- .theme-color {
94
- color: ${themeColor || '#001096'};
95
- }
96
-
97
- .center {
98
- text-align: center;
99
- margin-left: auto;
100
- margin-right: auto;
101
- }
102
-
103
- .font-size-small {
104
- font-size: 0.75rem;
105
- }
106
-
107
- .font-size-large {
108
- font-size: 1.5rem;
109
- }
110
-
111
- .text-transform-uppercase {
112
- text-transform: uppercase;
113
- }
114
-
115
- [id*=-"screen"] {
116
- min-block-size: 100%;
117
- }
118
-
119
- [data-variant~="full-width"] {
120
- inline-size: 100%;
121
- }
122
-
123
- .flow > * + * {
124
- margin-top: var(--flow-space, 1rem);
125
- }
126
-
127
- .button {
128
- --button-color: ${themeColor || 'var(--active-color)'};
129
- -webkit-appearance: none;
130
- appearance: none;
131
- border-radius: 2.5rem;
132
- border: 0;
133
- background-color: transparent;
134
- color: #fff;
135
- cursor: pointer;
136
- display: block;
137
- font-size: 18px;
138
- font-weight: 600;
139
- padding: 0.75rem 1.5rem;
140
- text-align: center;
141
- }
142
-
143
- .button:hover,
144
- .button:focus,
145
- .button:active {
146
- --button-color: var(--color-default);
147
- }
148
-
149
- .button:disabled {
150
- --button-color: var(--color-disabled);
151
- }
152
-
153
- .button[data-variant~="solid"] {
154
- background-color: var(--button-color);
155
- border: 2px solid var(--button-color);
156
- }
157
-
158
- .button[data-variant~="outline"] {
159
- color: var(--button-color);
160
- border: 2px solid var(--button-color);
161
- }
162
-
163
- .button[data-variant~="ghost"] {
164
- padding: 0px;
165
- color: var(--button-color);
166
- background-color: transparent;
167
- }
168
-
169
- .icon-btn {
170
- appearance: none;
171
- background: none;
172
- border: none;
173
- color: hsl(0deg 0% 94%);
174
- cursor: pointer;
175
- display: flex;
176
- align-items: center;
177
- justify-content: center;
178
- padding: 4px 8px;
179
- }
180
- .justify-right {
181
- justify-content: end !important;
182
- }
183
- .nav {
184
- display: flex;
185
- justify-content: space-between;
186
- }
187
-
188
- .back-wrapper {
189
- display: flex;
190
- align-items: center;
191
- }
192
-
193
- .back-button-text {
194
- font-size: 11px;
195
- line-height: 11px;
196
- color: rgb(21, 31, 114);
197
- }
198
-
199
-
200
- .selfie-capture-review-image {
201
- overflow: hidden;
202
- aspect-ratio: 1/1;
203
- }
204
-
205
- #review-image {
206
- scale: 1.75;
207
- }
208
-
209
- @media (max-aspect-ratio: 1/1) {
210
- #review-image {
211
- transform: scaleX(-1) translateY(-10%);
212
- }
213
- }
214
-
215
- .tips,
216
- .powered-by {
217
- align-items: center;
218
- border-radius: 0.25rem;
219
- color: #4e6577;
220
- display: flex;
221
- justify-content: center;
222
- letter-spacing: 0.075em;
223
- }
224
-
225
- .powered-by {
226
- box-shadow: 0px 2.57415px 2.57415px rgba(0, 0, 0, 0.06);
227
- display: inline-flex;
228
- font-size: 0.5rem;
229
- }
230
-
231
- .tips {
232
- margin-left: auto;
233
- margin-right: auto;
234
- max-width: 17rem;
235
- }
236
-
237
- .tips > * + *,
238
- .powered-by > * + * {
239
- display: inline-block;
240
- margin-left: 0.5em;
241
- }
242
-
243
- .powered-by .company {
244
- color: #18406d;
245
- font-weight: 700;
246
- letter-spacing: 0.15rem;
247
- }
248
-
249
- .logo-mark {
250
- background-color: #004071;
251
- display: inline-block;
252
- padding: 0.25em 0.5em;
253
- }
254
-
255
- .logo-mark svg {
256
- height: auto;
257
- justify-self: center;
258
- width: 0.75em;
259
- }
260
-
261
- #document-capture-instructions-screen,
262
- #back-of-document-capture-instructions-screen {
263
- box-sizing: border-box;
264
- height: 100%;
265
- padding: 1rem;
266
- display: flex;
267
- flex-direction: column;
268
- max-block-size: 100%;
269
- max-inline-size: 40ch;
270
- justify-content: space-between;
271
- }
272
-
273
- #document-capture-instructions-screen header p {
274
- margin-block: 0 !important;
275
- }
276
-
277
- .description {
278
- color: var(--neutral-off-black, #2D2B2A);
279
- text-align: center;
280
-
281
- /* p */
282
- font-family: DM Sans;
283
- font-size: 0.875rem;
284
- font-style: normal;
285
- font-weight: 400;
286
- line-height: 18px;
287
- }
288
-
289
- .padding-bottom-2 {
290
- padding-bottom: 2rem;
291
- }
292
-
293
- smart-camera-web, selfie-capture-screens, selfie-capture-instructions, document-capture-screens, document-capture-instructions {
294
- height: 100%;
295
- display: block;
296
- }
297
-
298
- .instructions-wrapper {
299
- display: inline-flex;
300
- flex-direction: column;
301
- gap: 1rem;
302
- }
303
-
304
- @media (min-width: 40rem) {
305
- .instructions-wrapper {
306
- gap: 1.75rem;
307
- }
308
- }
309
-
310
- .instructions {
311
- display: flex;
312
- align-items: center;
313
- text-align: initial;
314
- gap: 0.5rem;
315
- }
316
-
317
- .instructions svg {
318
- flex-shrink: 0;
319
- margin-inline-end: 0.25rem;
320
- }
321
-
322
- .instructions p {
323
- margin-block: 0;
324
- }
325
-
326
- .instruction {
327
- display: flex;
328
- flex-direction: column;
329
- gap: 0.5rem;
330
- }
331
-
332
- .instruction-body {
333
- font-size: 0.75rem;
334
- }
335
-
336
- .instruction-header {
337
- color: ${themeColor};
338
- }
339
-
340
- .flex-column {
341
- display: flex;
342
- flex-direction: column;
343
- }
344
-
345
- @keyframes spin {
346
- 0% {
347
- transform: translate3d(-50%, -50%, 0) rotate(0deg);
348
- }
349
- 100% {
350
- transform: translate3d(-50%, -50%, 0) rotate(360deg);
351
- }
352
- }
353
-
354
- .spinner {
355
- animation: 1.5s linear infinite spin;
356
- animation-play-state: inherit;
357
- border: solid 5px #cfd0d1;
358
- border-bottom-color: var(--color-active);
359
- border-radius: 50%;
360
- content: "";
361
- display: block;
362
- height: 25px;
363
- width: 25px;
364
- will-change: transform;
365
- position: relative;
366
- top: .675rem;
367
- left: 1.25rem;
368
- }
369
-
370
- </style>`;
371
-
372
- export default styles;
1
+ import typography from './typography';
2
+
3
+ const styles = (
4
+ themeColor,
5
+ ) => `<link rel="preconnect" href="https://fonts.gstatic.com" />
6
+ <link
7
+ href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap"
8
+ rel="stylesheet"
9
+ as="style"
10
+ />
11
+ <style>
12
+ ${typography}
13
+ :host {
14
+ --theme-color: ${themeColor || '#001096'};
15
+ --color-active: #001096;
16
+ --color-default: #2d2b2a;
17
+ --color-disabled: #848282;
18
+ --web-digital-blue: #001096;
19
+ }
20
+
21
+ * {
22
+ font-family: "DM Sans", sans-serif;
23
+ }
24
+
25
+ [hidden] {
26
+ display: none !important;
27
+ }
28
+
29
+ [disabled] {
30
+ cursor: not-allowed !important;
31
+ filter: grayscale(75%);
32
+ }
33
+
34
+ .visually-hidden {
35
+ border: 0;
36
+ clip: rect(1px 1px 1px 1px);
37
+ clip: rect(1px, 1px, 1px, 1px);
38
+ height: auto;
39
+ margin: 0;
40
+ overflow: hidden;
41
+ padding: 0;
42
+ position: absolute;
43
+ white-space: nowrap;
44
+ width: 1px;
45
+ }
46
+
47
+ img {
48
+ height: auto;
49
+ max-width: 100%;
50
+ }
51
+
52
+ video {
53
+ background-color: black;
54
+ }
55
+
56
+ a {
57
+ color: currentColor;
58
+ text-decoration: none;
59
+ }
60
+
61
+ svg {
62
+ max-width: 100%;
63
+ }
64
+
65
+ .color-gray {
66
+ color: #797979;
67
+ }
68
+
69
+ .color-red {
70
+ color: red;
71
+ }
72
+
73
+ .color-richblue {
74
+ color: #4e6577;
75
+ }
76
+
77
+ .color-richblue-shade {
78
+ color: #0e1b42;
79
+ }
80
+
81
+ .color-digital-blue {
82
+ color: var(--web-digital-blue) !important;
83
+ }
84
+
85
+ .color-deep-blue {
86
+ color: #001096;
87
+ }
88
+
89
+ .title-color {
90
+ color: ${themeColor || '#001096'};
91
+ }
92
+
93
+ .theme-color {
94
+ color: ${themeColor || '#001096'};
95
+ }
96
+
97
+ .center {
98
+ text-align: center;
99
+ margin-left: auto;
100
+ margin-right: auto;
101
+ }
102
+
103
+ .font-size-small {
104
+ font-size: 0.75rem;
105
+ }
106
+
107
+ .font-size-large {
108
+ font-size: 1.5rem;
109
+ }
110
+
111
+ .text-transform-uppercase {
112
+ text-transform: uppercase;
113
+ }
114
+
115
+ [id*=-"screen"] {
116
+ min-block-size: 100%;
117
+ }
118
+
119
+ [data-variant~="full-width"] {
120
+ inline-size: 100%;
121
+ }
122
+
123
+ .flow > * + * {
124
+ margin-top: var(--flow-space, 1rem);
125
+ }
126
+
127
+ .button {
128
+ --button-color: ${themeColor || 'var(--active-color)'};
129
+ -webkit-appearance: none;
130
+ appearance: none;
131
+ border-radius: 2.5rem;
132
+ border: 0;
133
+ background-color: transparent;
134
+ color: #fff;
135
+ cursor: pointer;
136
+ display: block;
137
+ font-size: 18px;
138
+ font-weight: 600;
139
+ padding: 0.75rem 1.5rem;
140
+ text-align: center;
141
+ }
142
+
143
+ .button:hover,
144
+ .button:focus,
145
+ .button:active {
146
+ --button-color: var(--color-default);
147
+ }
148
+
149
+ .button:disabled {
150
+ --button-color: var(--color-disabled);
151
+ }
152
+
153
+ .button[data-variant~="solid"] {
154
+ background-color: var(--button-color);
155
+ border: 2px solid var(--button-color);
156
+ }
157
+
158
+ .button[data-variant~="outline"] {
159
+ color: var(--button-color);
160
+ border: 2px solid var(--button-color);
161
+ }
162
+
163
+ .button[data-variant~="ghost"] {
164
+ padding: 0px;
165
+ color: var(--button-color);
166
+ background-color: transparent;
167
+ }
168
+
169
+ .icon-btn {
170
+ appearance: none;
171
+ background: none;
172
+ border: none;
173
+ color: hsl(0deg 0% 94%);
174
+ cursor: pointer;
175
+ display: flex;
176
+ align-items: center;
177
+ justify-content: center;
178
+ padding: 4px 8px;
179
+ }
180
+ .justify-right {
181
+ justify-content: end !important;
182
+ }
183
+ .nav {
184
+ display: flex;
185
+ justify-content: space-between;
186
+ }
187
+
188
+ .back-wrapper {
189
+ display: flex;
190
+ align-items: center;
191
+ }
192
+
193
+ .back-button-text {
194
+ font-size: 11px;
195
+ line-height: 11px;
196
+ color: rgb(21, 31, 114);
197
+ }
198
+
199
+
200
+ .selfie-capture-review-image {
201
+ overflow: hidden;
202
+ aspect-ratio: 1/1;
203
+ }
204
+
205
+ #review-image {
206
+ scale: 1.75;
207
+ }
208
+
209
+ @media (max-aspect-ratio: 1/1) {
210
+ #review-image {
211
+ transform: scaleX(-1) translateY(-10%);
212
+ }
213
+ }
214
+
215
+ .tips,
216
+ .powered-by {
217
+ align-items: center;
218
+ border-radius: 0.25rem;
219
+ color: #4e6577;
220
+ display: flex;
221
+ justify-content: center;
222
+ letter-spacing: 0.075em;
223
+ }
224
+
225
+ .powered-by {
226
+ box-shadow: 0px 2.57415px 2.57415px rgba(0, 0, 0, 0.06);
227
+ display: inline-flex;
228
+ font-size: 0.5rem;
229
+ }
230
+
231
+ .tips {
232
+ margin-left: auto;
233
+ margin-right: auto;
234
+ max-width: 17rem;
235
+ }
236
+
237
+ .tips > * + *,
238
+ .powered-by > * + * {
239
+ display: inline-block;
240
+ margin-left: 0.5em;
241
+ }
242
+
243
+ .powered-by .company {
244
+ color: #18406d;
245
+ font-weight: 700;
246
+ letter-spacing: 0.15rem;
247
+ }
248
+
249
+ .logo-mark {
250
+ background-color: #004071;
251
+ display: inline-block;
252
+ padding: 0.25em 0.5em;
253
+ }
254
+
255
+ .logo-mark svg {
256
+ height: auto;
257
+ justify-self: center;
258
+ width: 0.75em;
259
+ }
260
+
261
+ #document-capture-instructions-screen,
262
+ #back-of-document-capture-instructions-screen {
263
+ box-sizing: border-box;
264
+ height: 100%;
265
+ padding: 1rem;
266
+ display: flex;
267
+ flex-direction: column;
268
+ max-block-size: 100%;
269
+ max-inline-size: 40ch;
270
+ justify-content: space-between;
271
+ }
272
+
273
+ #document-capture-instructions-screen header p {
274
+ margin-block: 0 !important;
275
+ }
276
+
277
+ .description {
278
+ color: var(--neutral-off-black, #2D2B2A);
279
+ text-align: center;
280
+
281
+ /* p */
282
+ font-family: DM Sans;
283
+ font-size: 0.875rem;
284
+ font-style: normal;
285
+ font-weight: 400;
286
+ line-height: 18px;
287
+ }
288
+
289
+ .padding-bottom-2 {
290
+ padding-bottom: 2rem;
291
+ }
292
+
293
+ smart-camera-web, selfie-capture-screens, selfie-capture-instructions, document-capture-screens, document-capture-instructions {
294
+ height: 100%;
295
+ display: block;
296
+ }
297
+
298
+ .instructions-wrapper {
299
+ display: inline-flex;
300
+ flex-direction: column;
301
+ gap: 1rem;
302
+ }
303
+
304
+ @media (min-width: 40rem) {
305
+ .instructions-wrapper {
306
+ gap: 1.75rem;
307
+ }
308
+ }
309
+
310
+ .instructions {
311
+ display: flex;
312
+ align-items: center;
313
+ text-align: initial;
314
+ gap: 0.5rem;
315
+ }
316
+
317
+ .instructions svg {
318
+ flex-shrink: 0;
319
+ margin-inline-end: 0.25rem;
320
+ }
321
+
322
+ .instructions p {
323
+ margin-block: 0;
324
+ }
325
+
326
+ .instruction {
327
+ display: flex;
328
+ flex-direction: column;
329
+ gap: 0.5rem;
330
+ }
331
+
332
+ .instruction-body {
333
+ font-size: 0.75rem;
334
+ }
335
+
336
+ .instruction-header {
337
+ color: ${themeColor};
338
+ }
339
+
340
+ .flex-column {
341
+ display: flex;
342
+ flex-direction: column;
343
+ }
344
+
345
+ @keyframes spin {
346
+ 0% {
347
+ transform: translate3d(-50%, -50%, 0) rotate(0deg);
348
+ }
349
+ 100% {
350
+ transform: translate3d(-50%, -50%, 0) rotate(360deg);
351
+ }
352
+ }
353
+
354
+ .spinner {
355
+ animation: 1.5s linear infinite spin;
356
+ animation-play-state: inherit;
357
+ border: solid 5px #cfd0d1;
358
+ border-bottom-color: var(--color-active);
359
+ border-radius: 50%;
360
+ content: "";
361
+ display: block;
362
+ height: 25px;
363
+ width: 25px;
364
+ will-change: transform;
365
+ position: relative;
366
+ top: .675rem;
367
+ left: 1.25rem;
368
+ }
369
+
370
+ </style>`;
371
+
372
+ export default styles;