@worldcoin/idkit 2.2.1 → 2.3.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/build/{chunk-5OWPJUHG.js → chunk-3HCETHXP.js} +1 -1
- package/build/index.cjs +544 -424
- package/build/index.js +534 -414
- package/build/internal.cjs +1 -1
- package/build/internal.js +1 -1
- package/package.json +1 -2
package/build/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
QRCode_default,
|
|
3
3
|
__,
|
|
4
4
|
idkit_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3HCETHXP.js";
|
|
6
6
|
|
|
7
7
|
// src/hooks/useIDKit.ts
|
|
8
8
|
import { useEffect } from "react";
|
|
@@ -25,9 +25,6 @@ var useIDKit_default = useIDKit;
|
|
|
25
25
|
// src/components/IDKitWidget/index.tsx
|
|
26
26
|
import { memo } from "react";
|
|
27
27
|
|
|
28
|
-
// src/components/IDKitWidget/BaseWidget.tsx
|
|
29
|
-
import root from "react-shadow";
|
|
30
|
-
|
|
31
28
|
// src/hooks/useMedia.ts
|
|
32
29
|
import { useEffect as useEffect2, useState } from "react";
|
|
33
30
|
var useMedia = () => {
|
|
@@ -55,13 +52,78 @@ var useMedia_default = useMedia;
|
|
|
55
52
|
import { createPortal } from "react-dom";
|
|
56
53
|
|
|
57
54
|
// src/styles/styles.css
|
|
58
|
-
var styles_default = `/*
|
|
59
|
-
@
|
|
60
|
-
|
|
55
|
+
var styles_default = `/* Remote TWK Lausanne font definitions */
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'TWK Lausanne';
|
|
58
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-200.woff2') format('woff2');
|
|
59
|
+
font-weight: 200;
|
|
60
|
+
font-style: normal;
|
|
61
|
+
font-display: swap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: 'TWK Lausanne';
|
|
66
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-300.woff2') format('woff2');
|
|
67
|
+
font-weight: 300;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-display: swap;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@font-face {
|
|
73
|
+
font-family: 'TWK Lausanne';
|
|
74
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-350.woff2') format('woff2');
|
|
75
|
+
font-weight: 350;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-display: swap;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: 'TWK Lausanne';
|
|
82
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-400.woff2') format('woff2');
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
font-display: swap;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@font-face {
|
|
89
|
+
font-family: 'TWK Lausanne';
|
|
90
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-450.woff2') format('woff2');
|
|
91
|
+
font-weight: 450;
|
|
92
|
+
font-style: normal;
|
|
93
|
+
font-display: swap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@font-face {
|
|
97
|
+
font-family: 'TWK Lausanne';
|
|
98
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-500.woff2') format('woff2');
|
|
99
|
+
font-weight: 500;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-display: swap;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@font-face {
|
|
105
|
+
font-family: 'TWK Lausanne';
|
|
106
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-550.woff2') format('woff2');
|
|
107
|
+
font-weight: 550;
|
|
108
|
+
font-style: normal;
|
|
109
|
+
font-display: swap;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@font-face {
|
|
113
|
+
font-family: 'TWK Lausanne';
|
|
114
|
+
src: url('https://world-id-assets.com/fonts/TWKLausanne-600.woff2') format('woff2');
|
|
115
|
+
font-weight: 600;
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-display: swap;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* ! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com */
|
|
121
|
+
|
|
61
122
|
/*
|
|
62
123
|
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
63
124
|
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
64
125
|
*/
|
|
126
|
+
|
|
65
127
|
*,
|
|
66
128
|
::before,
|
|
67
129
|
::after {
|
|
@@ -70,10 +132,12 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
|
|
|
70
132
|
border-style: solid; /* 2 */
|
|
71
133
|
border-color: #e5e7eb; /* 2 */
|
|
72
134
|
}
|
|
135
|
+
|
|
73
136
|
::before,
|
|
74
137
|
::after {
|
|
75
138
|
--tw-content: '';
|
|
76
139
|
}
|
|
140
|
+
|
|
77
141
|
/*
|
|
78
142
|
1. Use a consistent sensible line-height in all browsers.
|
|
79
143
|
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
@@ -83,6 +147,7 @@ var styles_default = `/* TODO: Use an alternative to avoid the extra request to
|
|
|
83
147
|
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
84
148
|
7. Disable tap highlights on iOS
|
|
85
149
|
*/
|
|
150
|
+
|
|
86
151
|
html,
|
|
87
152
|
:host {
|
|
88
153
|
line-height: 1.5; /* 1 */
|
|
@@ -90,39 +155,47 @@ html,
|
|
|
90
155
|
-moz-tab-size: 4; /* 3 */
|
|
91
156
|
-o-tab-size: 4;
|
|
92
157
|
tab-size: 4; /* 3 */
|
|
93
|
-
font-family:
|
|
158
|
+
font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
|
|
94
159
|
font-feature-settings: normal; /* 5 */
|
|
95
160
|
font-variation-settings: normal; /* 6 */
|
|
96
161
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
97
162
|
}
|
|
163
|
+
|
|
98
164
|
/*
|
|
99
165
|
1. Remove the margin in all browsers.
|
|
100
166
|
2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.
|
|
101
167
|
*/
|
|
168
|
+
|
|
102
169
|
body {
|
|
103
170
|
margin: 0; /* 1 */
|
|
104
171
|
line-height: inherit; /* 2 */
|
|
105
172
|
}
|
|
173
|
+
|
|
106
174
|
/*
|
|
107
175
|
1. Add the correct height in Firefox.
|
|
108
176
|
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
|
|
109
177
|
3. Ensure horizontal rules are visible by default.
|
|
110
178
|
*/
|
|
179
|
+
|
|
111
180
|
hr {
|
|
112
181
|
height: 0; /* 1 */
|
|
113
182
|
color: inherit; /* 2 */
|
|
114
183
|
border-top-width: 1px; /* 3 */
|
|
115
184
|
}
|
|
185
|
+
|
|
116
186
|
/*
|
|
117
187
|
Add the correct text decoration in Chrome, Edge, and Safari.
|
|
118
188
|
*/
|
|
189
|
+
|
|
119
190
|
abbr:where([title]) {
|
|
120
191
|
-webkit-text-decoration: underline dotted;
|
|
121
192
|
text-decoration: underline dotted;
|
|
122
193
|
}
|
|
194
|
+
|
|
123
195
|
/*
|
|
124
196
|
Remove the default font size and weight for headings.
|
|
125
197
|
*/
|
|
198
|
+
|
|
126
199
|
h1,
|
|
127
200
|
h2,
|
|
128
201
|
h3,
|
|
@@ -132,26 +205,32 @@ h6 {
|
|
|
132
205
|
font-size: inherit;
|
|
133
206
|
font-weight: inherit;
|
|
134
207
|
}
|
|
208
|
+
|
|
135
209
|
/*
|
|
136
210
|
Reset links to optimize for opt-in styling instead of opt-out.
|
|
137
211
|
*/
|
|
212
|
+
|
|
138
213
|
a {
|
|
139
214
|
color: inherit;
|
|
140
215
|
text-decoration: inherit;
|
|
141
216
|
}
|
|
217
|
+
|
|
142
218
|
/*
|
|
143
219
|
Add the correct font weight in Edge and Safari.
|
|
144
220
|
*/
|
|
221
|
+
|
|
145
222
|
b,
|
|
146
223
|
strong {
|
|
147
224
|
font-weight: bolder;
|
|
148
225
|
}
|
|
226
|
+
|
|
149
227
|
/*
|
|
150
228
|
1. Use the user's configured \`mono\` font-family by default.
|
|
151
229
|
2. Use the user's configured \`mono\` font-feature-settings by default.
|
|
152
230
|
3. Use the user's configured \`mono\` font-variation-settings by default.
|
|
153
231
|
4. Correct the odd \`em\` font sizing in all browsers.
|
|
154
232
|
*/
|
|
233
|
+
|
|
155
234
|
code,
|
|
156
235
|
kbd,
|
|
157
236
|
samp,
|
|
@@ -161,15 +240,19 @@ pre {
|
|
|
161
240
|
font-variation-settings: normal; /* 3 */
|
|
162
241
|
font-size: 1em; /* 4 */
|
|
163
242
|
}
|
|
243
|
+
|
|
164
244
|
/*
|
|
165
245
|
Add the correct font size in all browsers.
|
|
166
246
|
*/
|
|
247
|
+
|
|
167
248
|
small {
|
|
168
249
|
font-size: 80%;
|
|
169
250
|
}
|
|
251
|
+
|
|
170
252
|
/*
|
|
171
253
|
Prevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.
|
|
172
254
|
*/
|
|
255
|
+
|
|
173
256
|
sub,
|
|
174
257
|
sup {
|
|
175
258
|
font-size: 75%;
|
|
@@ -177,27 +260,33 @@ sup {
|
|
|
177
260
|
position: relative;
|
|
178
261
|
vertical-align: baseline;
|
|
179
262
|
}
|
|
263
|
+
|
|
180
264
|
sub {
|
|
181
265
|
bottom: -0.25em;
|
|
182
266
|
}
|
|
267
|
+
|
|
183
268
|
sup {
|
|
184
269
|
top: -0.5em;
|
|
185
270
|
}
|
|
271
|
+
|
|
186
272
|
/*
|
|
187
273
|
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
|
|
188
274
|
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
|
|
189
275
|
3. Remove gaps between table borders by default.
|
|
190
276
|
*/
|
|
277
|
+
|
|
191
278
|
table {
|
|
192
279
|
text-indent: 0; /* 1 */
|
|
193
280
|
border-color: inherit; /* 2 */
|
|
194
281
|
border-collapse: collapse; /* 3 */
|
|
195
282
|
}
|
|
283
|
+
|
|
196
284
|
/*
|
|
197
285
|
1. Change the font styles in all browsers.
|
|
198
286
|
2. Remove the margin in Firefox and Safari.
|
|
199
287
|
3. Remove default padding in all browsers.
|
|
200
288
|
*/
|
|
289
|
+
|
|
201
290
|
button,
|
|
202
291
|
input,
|
|
203
292
|
optgroup,
|
|
@@ -214,17 +303,21 @@ textarea {
|
|
|
214
303
|
margin: 0; /* 2 */
|
|
215
304
|
padding: 0; /* 3 */
|
|
216
305
|
}
|
|
306
|
+
|
|
217
307
|
/*
|
|
218
308
|
Remove the inheritance of text transform in Edge and Firefox.
|
|
219
309
|
*/
|
|
310
|
+
|
|
220
311
|
button,
|
|
221
312
|
select {
|
|
222
313
|
text-transform: none;
|
|
223
314
|
}
|
|
315
|
+
|
|
224
316
|
/*
|
|
225
317
|
1. Correct the inability to style clickable types in iOS and Safari.
|
|
226
318
|
2. Remove default button styles.
|
|
227
319
|
*/
|
|
320
|
+
|
|
228
321
|
button,
|
|
229
322
|
input:where([type='button']),
|
|
230
323
|
input:where([type='reset']),
|
|
@@ -233,62 +326,80 @@ input:where([type='submit']) {
|
|
|
233
326
|
background-color: transparent; /* 2 */
|
|
234
327
|
background-image: none; /* 2 */
|
|
235
328
|
}
|
|
329
|
+
|
|
236
330
|
/*
|
|
237
331
|
Use the modern Firefox focus style for all focusable elements.
|
|
238
332
|
*/
|
|
333
|
+
|
|
239
334
|
:-moz-focusring {
|
|
240
335
|
outline: auto;
|
|
241
336
|
}
|
|
337
|
+
|
|
242
338
|
/*
|
|
243
339
|
Remove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
|
|
244
340
|
*/
|
|
341
|
+
|
|
245
342
|
:-moz-ui-invalid {
|
|
246
343
|
box-shadow: none;
|
|
247
344
|
}
|
|
345
|
+
|
|
248
346
|
/*
|
|
249
347
|
Add the correct vertical alignment in Chrome and Firefox.
|
|
250
348
|
*/
|
|
349
|
+
|
|
251
350
|
progress {
|
|
252
351
|
vertical-align: baseline;
|
|
253
352
|
}
|
|
353
|
+
|
|
254
354
|
/*
|
|
255
355
|
Correct the cursor style of increment and decrement buttons in Safari.
|
|
256
356
|
*/
|
|
357
|
+
|
|
257
358
|
::-webkit-inner-spin-button,
|
|
258
359
|
::-webkit-outer-spin-button {
|
|
259
360
|
height: auto;
|
|
260
361
|
}
|
|
362
|
+
|
|
261
363
|
/*
|
|
262
364
|
1. Correct the odd appearance in Chrome and Safari.
|
|
263
365
|
2. Correct the outline style in Safari.
|
|
264
366
|
*/
|
|
367
|
+
|
|
265
368
|
[type='search'] {
|
|
266
369
|
-webkit-appearance: textfield; /* 1 */
|
|
267
370
|
outline-offset: -2px; /* 2 */
|
|
268
371
|
}
|
|
372
|
+
|
|
269
373
|
/*
|
|
270
374
|
Remove the inner padding in Chrome and Safari on macOS.
|
|
271
375
|
*/
|
|
376
|
+
|
|
272
377
|
::-webkit-search-decoration {
|
|
273
378
|
-webkit-appearance: none;
|
|
274
379
|
}
|
|
380
|
+
|
|
275
381
|
/*
|
|
276
382
|
1. Correct the inability to style clickable types in iOS and Safari.
|
|
277
383
|
2. Change font properties to \`inherit\` in Safari.
|
|
278
384
|
*/
|
|
385
|
+
|
|
279
386
|
::-webkit-file-upload-button {
|
|
280
387
|
-webkit-appearance: button; /* 1 */
|
|
281
388
|
font: inherit; /* 2 */
|
|
282
389
|
}
|
|
390
|
+
|
|
283
391
|
/*
|
|
284
392
|
Add the correct display in Chrome and Safari.
|
|
285
393
|
*/
|
|
394
|
+
|
|
286
395
|
summary {
|
|
287
396
|
display: list-item;
|
|
288
397
|
}
|
|
398
|
+
|
|
289
399
|
/*
|
|
290
400
|
Removes the default spacing and border for appropriate elements.
|
|
291
401
|
*/
|
|
402
|
+
|
|
292
403
|
blockquote,
|
|
293
404
|
dl,
|
|
294
405
|
dd,
|
|
@@ -304,13 +415,16 @@ p,
|
|
|
304
415
|
pre {
|
|
305
416
|
margin: 0;
|
|
306
417
|
}
|
|
418
|
+
|
|
307
419
|
fieldset {
|
|
308
420
|
margin: 0;
|
|
309
421
|
padding: 0;
|
|
310
422
|
}
|
|
423
|
+
|
|
311
424
|
legend {
|
|
312
425
|
padding: 0;
|
|
313
426
|
}
|
|
427
|
+
|
|
314
428
|
ol,
|
|
315
429
|
ul,
|
|
316
430
|
menu {
|
|
@@ -318,49 +432,62 @@ menu {
|
|
|
318
432
|
margin: 0;
|
|
319
433
|
padding: 0;
|
|
320
434
|
}
|
|
435
|
+
|
|
321
436
|
/*
|
|
322
437
|
Reset default styling for dialogs.
|
|
323
438
|
*/
|
|
439
|
+
|
|
324
440
|
dialog {
|
|
325
441
|
padding: 0;
|
|
326
442
|
}
|
|
443
|
+
|
|
327
444
|
/*
|
|
328
445
|
Prevent resizing textareas horizontally by default.
|
|
329
446
|
*/
|
|
447
|
+
|
|
330
448
|
textarea {
|
|
331
449
|
resize: vertical;
|
|
332
450
|
}
|
|
451
|
+
|
|
333
452
|
/*
|
|
334
453
|
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
335
454
|
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
336
455
|
*/
|
|
456
|
+
|
|
337
457
|
input::-moz-placeholder, textarea::-moz-placeholder {
|
|
338
458
|
opacity: 1; /* 1 */
|
|
339
459
|
color: #9ca3af; /* 2 */
|
|
340
460
|
}
|
|
461
|
+
|
|
341
462
|
input::placeholder,
|
|
342
463
|
textarea::placeholder {
|
|
343
464
|
opacity: 1; /* 1 */
|
|
344
465
|
color: #9ca3af; /* 2 */
|
|
345
466
|
}
|
|
467
|
+
|
|
346
468
|
/*
|
|
347
469
|
Set the default cursor for buttons.
|
|
348
470
|
*/
|
|
471
|
+
|
|
349
472
|
button,
|
|
350
473
|
[role="button"] {
|
|
351
474
|
cursor: pointer;
|
|
352
475
|
}
|
|
476
|
+
|
|
353
477
|
/*
|
|
354
478
|
Make sure disabled buttons don't get the pointer cursor.
|
|
355
479
|
*/
|
|
480
|
+
|
|
356
481
|
:disabled {
|
|
357
482
|
cursor: default;
|
|
358
483
|
}
|
|
484
|
+
|
|
359
485
|
/*
|
|
360
486
|
1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
361
487
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
362
488
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
363
489
|
*/
|
|
490
|
+
|
|
364
491
|
img,
|
|
365
492
|
svg,
|
|
366
493
|
video,
|
|
@@ -372,19 +499,24 @@ object {
|
|
|
372
499
|
display: block; /* 1 */
|
|
373
500
|
vertical-align: middle; /* 2 */
|
|
374
501
|
}
|
|
502
|
+
|
|
375
503
|
/*
|
|
376
504
|
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
377
505
|
*/
|
|
506
|
+
|
|
378
507
|
img,
|
|
379
508
|
video {
|
|
380
509
|
max-width: 100%;
|
|
381
510
|
height: auto;
|
|
382
511
|
}
|
|
512
|
+
|
|
383
513
|
/* Make elements with the HTML hidden attribute stay hidden by default */
|
|
514
|
+
|
|
384
515
|
[hidden] {
|
|
385
516
|
display: none;
|
|
386
517
|
}
|
|
387
|
-
|
|
518
|
+
|
|
519
|
+
[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
|
|
388
520
|
-webkit-appearance: none;
|
|
389
521
|
-moz-appearance: none;
|
|
390
522
|
appearance: none;
|
|
@@ -400,7 +532,8 @@ video {
|
|
|
400
532
|
line-height: 1.5rem;
|
|
401
533
|
--tw-shadow: 0 0 #0000;
|
|
402
534
|
}
|
|
403
|
-
|
|
535
|
+
|
|
536
|
+
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
|
|
404
537
|
outline: 2px solid transparent;
|
|
405
538
|
outline-offset: 2px;
|
|
406
539
|
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
|
|
@@ -412,29 +545,36 @@ video {
|
|
|
412
545
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
413
546
|
border-color: #2563eb;
|
|
414
547
|
}
|
|
415
|
-
|
|
548
|
+
|
|
549
|
+
input::-moz-placeholder, textarea::-moz-placeholder {
|
|
416
550
|
color: #6b7280;
|
|
417
551
|
opacity: 1;
|
|
418
552
|
}
|
|
419
|
-
|
|
553
|
+
|
|
554
|
+
input::placeholder,textarea::placeholder {
|
|
420
555
|
color: #6b7280;
|
|
421
556
|
opacity: 1;
|
|
422
557
|
}
|
|
423
|
-
|
|
558
|
+
|
|
559
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
424
560
|
padding: 0;
|
|
425
561
|
}
|
|
426
|
-
|
|
562
|
+
|
|
563
|
+
::-webkit-date-and-time-value {
|
|
427
564
|
min-height: 1.5em;
|
|
428
565
|
text-align: inherit;
|
|
429
566
|
}
|
|
430
|
-
|
|
567
|
+
|
|
568
|
+
::-webkit-datetime-edit {
|
|
431
569
|
display: inline-flex;
|
|
432
570
|
}
|
|
433
|
-
|
|
571
|
+
|
|
572
|
+
::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
|
|
434
573
|
padding-top: 0;
|
|
435
574
|
padding-bottom: 0;
|
|
436
575
|
}
|
|
437
|
-
|
|
576
|
+
|
|
577
|
+
select {
|
|
438
578
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
|
439
579
|
background-position: right 0.5rem center;
|
|
440
580
|
background-repeat: no-repeat;
|
|
@@ -443,7 +583,8 @@ select{
|
|
|
443
583
|
-webkit-print-color-adjust: exact;
|
|
444
584
|
print-color-adjust: exact;
|
|
445
585
|
}
|
|
446
|
-
|
|
586
|
+
|
|
587
|
+
[multiple],[size]:where(select:not([size="1"])) {
|
|
447
588
|
background-image: initial;
|
|
448
589
|
background-position: initial;
|
|
449
590
|
background-repeat: unset;
|
|
@@ -452,7 +593,8 @@ select{
|
|
|
452
593
|
-webkit-print-color-adjust: unset;
|
|
453
594
|
print-color-adjust: unset;
|
|
454
595
|
}
|
|
455
|
-
|
|
596
|
+
|
|
597
|
+
[type='checkbox'],[type='radio'] {
|
|
456
598
|
-webkit-appearance: none;
|
|
457
599
|
-moz-appearance: none;
|
|
458
600
|
appearance: none;
|
|
@@ -474,13 +616,16 @@ select{
|
|
|
474
616
|
border-width: 1px;
|
|
475
617
|
--tw-shadow: 0 0 #0000;
|
|
476
618
|
}
|
|
477
|
-
|
|
619
|
+
|
|
620
|
+
[type='checkbox'] {
|
|
478
621
|
border-radius: 0px;
|
|
479
622
|
}
|
|
480
|
-
|
|
623
|
+
|
|
624
|
+
[type='radio'] {
|
|
481
625
|
border-radius: 100%;
|
|
482
626
|
}
|
|
483
|
-
|
|
627
|
+
|
|
628
|
+
[type='checkbox']:focus,[type='radio']:focus {
|
|
484
629
|
outline: 2px solid transparent;
|
|
485
630
|
outline-offset: 2px;
|
|
486
631
|
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
|
|
@@ -491,38 +636,45 @@ select{
|
|
|
491
636
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
492
637
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
493
638
|
}
|
|
494
|
-
|
|
639
|
+
|
|
640
|
+
[type='checkbox']:checked,[type='radio']:checked {
|
|
495
641
|
border-color: transparent;
|
|
496
642
|
background-color: currentColor;
|
|
497
643
|
background-size: 100% 100%;
|
|
498
644
|
background-position: center;
|
|
499
645
|
background-repeat: no-repeat;
|
|
500
646
|
}
|
|
501
|
-
|
|
647
|
+
|
|
648
|
+
[type='checkbox']:checked {
|
|
502
649
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
|
503
650
|
}
|
|
504
|
-
|
|
505
|
-
|
|
651
|
+
|
|
652
|
+
@media (forced-colors: active) {
|
|
653
|
+
[type='checkbox']:checked {
|
|
506
654
|
-webkit-appearance: auto;
|
|
507
655
|
-moz-appearance: auto;
|
|
508
656
|
appearance: auto;
|
|
509
657
|
}
|
|
510
658
|
}
|
|
511
|
-
|
|
659
|
+
|
|
660
|
+
[type='radio']:checked {
|
|
512
661
|
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
|
513
662
|
}
|
|
514
|
-
|
|
515
|
-
|
|
663
|
+
|
|
664
|
+
@media (forced-colors: active) {
|
|
665
|
+
[type='radio']:checked {
|
|
516
666
|
-webkit-appearance: auto;
|
|
517
667
|
-moz-appearance: auto;
|
|
518
668
|
appearance: auto;
|
|
519
669
|
}
|
|
520
670
|
}
|
|
521
|
-
|
|
671
|
+
|
|
672
|
+
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
|
|
522
673
|
border-color: transparent;
|
|
523
674
|
background-color: currentColor;
|
|
524
675
|
}
|
|
525
|
-
|
|
676
|
+
|
|
677
|
+
[type='checkbox']:indeterminate {
|
|
526
678
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
|
|
527
679
|
border-color: transparent;
|
|
528
680
|
background-color: currentColor;
|
|
@@ -530,18 +682,21 @@ select{
|
|
|
530
682
|
background-position: center;
|
|
531
683
|
background-repeat: no-repeat;
|
|
532
684
|
}
|
|
533
|
-
|
|
534
|
-
|
|
685
|
+
|
|
686
|
+
@media (forced-colors: active) {
|
|
687
|
+
[type='checkbox']:indeterminate {
|
|
535
688
|
-webkit-appearance: auto;
|
|
536
689
|
-moz-appearance: auto;
|
|
537
690
|
appearance: auto;
|
|
538
691
|
}
|
|
539
692
|
}
|
|
540
|
-
|
|
693
|
+
|
|
694
|
+
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
|
|
541
695
|
border-color: transparent;
|
|
542
696
|
background-color: currentColor;
|
|
543
697
|
}
|
|
544
|
-
|
|
698
|
+
|
|
699
|
+
[type='file'] {
|
|
545
700
|
background: unset;
|
|
546
701
|
border-color: inherit;
|
|
547
702
|
border-width: 0;
|
|
@@ -550,11 +705,13 @@ select{
|
|
|
550
705
|
font-size: unset;
|
|
551
706
|
line-height: inherit;
|
|
552
707
|
}
|
|
553
|
-
|
|
708
|
+
|
|
709
|
+
[type='file']:focus {
|
|
554
710
|
outline: 1px solid ButtonText;
|
|
555
711
|
outline: 1px auto -webkit-focus-ring-color;
|
|
556
712
|
}
|
|
557
|
-
|
|
713
|
+
|
|
714
|
+
*, ::before, ::after {
|
|
558
715
|
--tw-border-spacing-x: 0;
|
|
559
716
|
--tw-border-spacing-y: 0;
|
|
560
717
|
--tw-translate-x: 0;
|
|
@@ -607,7 +764,8 @@ select{
|
|
|
607
764
|
--tw-contain-paint: ;
|
|
608
765
|
--tw-contain-style: ;
|
|
609
766
|
}
|
|
610
|
-
|
|
767
|
+
|
|
768
|
+
::backdrop {
|
|
611
769
|
--tw-border-spacing-x: 0;
|
|
612
770
|
--tw-border-spacing-y: 0;
|
|
613
771
|
--tw-translate-x: 0;
|
|
@@ -660,523 +818,525 @@ select{
|
|
|
660
818
|
--tw-contain-paint: ;
|
|
661
819
|
--tw-contain-style: ;
|
|
662
820
|
}
|
|
663
|
-
.container{
|
|
821
|
+
.container {
|
|
664
822
|
width: 100%;
|
|
665
823
|
}
|
|
666
|
-
@media (min-width: 414px){
|
|
667
|
-
.container{
|
|
824
|
+
@media (min-width: 414px) {
|
|
825
|
+
.container {
|
|
668
826
|
max-width: 414px;
|
|
669
827
|
}
|
|
670
828
|
}
|
|
671
|
-
@media (min-width: 640px){
|
|
672
|
-
.container{
|
|
829
|
+
@media (min-width: 640px) {
|
|
830
|
+
.container {
|
|
673
831
|
max-width: 640px;
|
|
674
832
|
}
|
|
675
833
|
}
|
|
676
|
-
@media (min-width: 768px){
|
|
677
|
-
.container{
|
|
834
|
+
@media (min-width: 768px) {
|
|
835
|
+
.container {
|
|
678
836
|
max-width: 768px;
|
|
679
837
|
}
|
|
680
838
|
}
|
|
681
|
-
@media (min-width: 1024px){
|
|
682
|
-
.container{
|
|
839
|
+
@media (min-width: 1024px) {
|
|
840
|
+
.container {
|
|
683
841
|
max-width: 1024px;
|
|
684
842
|
}
|
|
685
843
|
}
|
|
686
|
-
@media (min-width: 1280px){
|
|
687
|
-
.container{
|
|
844
|
+
@media (min-width: 1280px) {
|
|
845
|
+
.container {
|
|
688
846
|
max-width: 1280px;
|
|
689
847
|
}
|
|
690
848
|
}
|
|
691
|
-
@media (min-width: 1536px){
|
|
692
|
-
.container{
|
|
849
|
+
@media (min-width: 1536px) {
|
|
850
|
+
.container {
|
|
693
851
|
max-width: 1536px;
|
|
694
852
|
}
|
|
695
853
|
}
|
|
696
|
-
.visible{
|
|
854
|
+
.visible {
|
|
697
855
|
visibility: visible;
|
|
698
856
|
}
|
|
699
|
-
.fixed{
|
|
857
|
+
.fixed {
|
|
700
858
|
position: fixed;
|
|
701
859
|
}
|
|
702
|
-
.absolute{
|
|
860
|
+
.absolute {
|
|
703
861
|
position: absolute;
|
|
704
862
|
}
|
|
705
|
-
.relative{
|
|
863
|
+
.relative {
|
|
706
864
|
position: relative;
|
|
707
865
|
}
|
|
708
|
-
.inset-0{
|
|
866
|
+
.inset-0 {
|
|
709
867
|
inset: 0;
|
|
710
868
|
}
|
|
711
|
-
.z-50{
|
|
869
|
+
.z-50 {
|
|
712
870
|
z-index: 50;
|
|
713
871
|
}
|
|
714
|
-
.z-\\[9999\\]{
|
|
872
|
+
.z-\\[9999\\] {
|
|
715
873
|
z-index: 9999;
|
|
716
874
|
}
|
|
717
|
-
.mx-6{
|
|
875
|
+
.mx-6 {
|
|
718
876
|
margin-left: 24px;
|
|
719
877
|
margin-right: 24px;
|
|
720
878
|
}
|
|
721
|
-
.mx-auto{
|
|
879
|
+
.mx-auto {
|
|
722
880
|
margin-left: auto;
|
|
723
881
|
margin-right: auto;
|
|
724
882
|
}
|
|
725
|
-
.-mt-5{
|
|
883
|
+
.-mt-5 {
|
|
726
884
|
margin-top: -20px;
|
|
727
885
|
}
|
|
728
|
-
.-mt-6{
|
|
886
|
+
.-mt-6 {
|
|
729
887
|
margin-top: -24px;
|
|
730
888
|
}
|
|
731
|
-
.mb-10{
|
|
889
|
+
.mb-10 {
|
|
732
890
|
margin-bottom: 40px;
|
|
733
891
|
}
|
|
734
|
-
.mb-
|
|
735
|
-
margin-bottom: 48px;
|
|
736
|
-
}
|
|
737
|
-
.mb-3{
|
|
892
|
+
.mb-3 {
|
|
738
893
|
margin-bottom: 12px;
|
|
739
894
|
}
|
|
740
|
-
.mb-4{
|
|
895
|
+
.mb-4 {
|
|
741
896
|
margin-bottom: 16px;
|
|
742
897
|
}
|
|
743
|
-
.mb-6{
|
|
898
|
+
.mb-6 {
|
|
744
899
|
margin-bottom: 24px;
|
|
745
900
|
}
|
|
746
|
-
.
|
|
747
|
-
margin-right: 4px;
|
|
748
|
-
}
|
|
749
|
-
.mr-1\\.5{
|
|
750
|
-
margin-right: 6px;
|
|
751
|
-
}
|
|
752
|
-
.mt-2{
|
|
901
|
+
.mt-2 {
|
|
753
902
|
margin-top: 8px;
|
|
754
903
|
}
|
|
755
|
-
.mt-3{
|
|
904
|
+
.mt-3 {
|
|
756
905
|
margin-top: 12px;
|
|
757
906
|
}
|
|
758
|
-
.mt-4{
|
|
907
|
+
.mt-4 {
|
|
759
908
|
margin-top: 16px;
|
|
760
909
|
}
|
|
761
|
-
.inline{
|
|
910
|
+
.inline {
|
|
762
911
|
display: inline;
|
|
763
912
|
}
|
|
764
|
-
.flex{
|
|
913
|
+
.flex {
|
|
765
914
|
display: flex;
|
|
766
915
|
}
|
|
767
|
-
.inline-flex{
|
|
916
|
+
.inline-flex {
|
|
768
917
|
display: inline-flex;
|
|
769
918
|
}
|
|
770
|
-
.hidden{
|
|
919
|
+
.hidden {
|
|
771
920
|
display: none;
|
|
772
921
|
}
|
|
773
|
-
.size-
|
|
774
|
-
width:
|
|
775
|
-
height:
|
|
922
|
+
.size-14 {
|
|
923
|
+
width: 56px;
|
|
924
|
+
height: 56px;
|
|
776
925
|
}
|
|
777
|
-
.size-24{
|
|
926
|
+
.size-24 {
|
|
778
927
|
width: 96px;
|
|
779
928
|
height: 96px;
|
|
780
929
|
}
|
|
781
|
-
.size-
|
|
930
|
+
.size-4 {
|
|
931
|
+
width: 16px;
|
|
932
|
+
height: 16px;
|
|
933
|
+
}
|
|
934
|
+
.size-5 {
|
|
782
935
|
width: 20px;
|
|
783
936
|
height: 20px;
|
|
784
937
|
}
|
|
785
|
-
.size-6{
|
|
938
|
+
.size-6 {
|
|
786
939
|
width: 24px;
|
|
787
940
|
height: 24px;
|
|
788
941
|
}
|
|
789
|
-
.size
|
|
790
|
-
width:
|
|
791
|
-
height:
|
|
942
|
+
.size-8 {
|
|
943
|
+
width: 32px;
|
|
944
|
+
height: 32px;
|
|
792
945
|
}
|
|
793
|
-
.
|
|
794
|
-
|
|
946
|
+
.size-\\[200px\\] {
|
|
947
|
+
width: 200px;
|
|
948
|
+
height: 200px;
|
|
795
949
|
}
|
|
796
|
-
.min-h-full{
|
|
950
|
+
.min-h-full {
|
|
797
951
|
min-height: 100%;
|
|
798
952
|
}
|
|
799
|
-
.min-h-screen{
|
|
953
|
+
.min-h-screen {
|
|
800
954
|
min-height: 100vh;
|
|
801
955
|
}
|
|
802
|
-
.w-24{
|
|
956
|
+
.w-24 {
|
|
803
957
|
width: 96px;
|
|
804
958
|
}
|
|
805
|
-
.w-full{
|
|
959
|
+
.w-full {
|
|
806
960
|
width: 100%;
|
|
807
961
|
}
|
|
808
|
-
.max-w-\\[224px\\]{
|
|
962
|
+
.max-w-\\[224px\\] {
|
|
809
963
|
max-width: 224px;
|
|
810
964
|
}
|
|
811
|
-
.
|
|
965
|
+
.max-w-\\[260px\\] {
|
|
966
|
+
max-width: 260px;
|
|
967
|
+
}
|
|
968
|
+
.flex-1 {
|
|
812
969
|
flex: 1 1 0%;
|
|
813
970
|
}
|
|
814
|
-
@keyframes pulse{
|
|
815
|
-
50%{
|
|
971
|
+
@keyframes pulse {
|
|
972
|
+
50% {
|
|
816
973
|
opacity: .5;
|
|
817
974
|
}
|
|
818
975
|
}
|
|
819
|
-
.animate-pulse{
|
|
976
|
+
.animate-pulse {
|
|
820
977
|
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
821
978
|
}
|
|
822
|
-
@keyframes spin{
|
|
823
|
-
to{
|
|
979
|
+
@keyframes spin {
|
|
980
|
+
to {
|
|
824
981
|
transform: rotate(360deg);
|
|
825
982
|
}
|
|
826
983
|
}
|
|
827
|
-
.animate-spin{
|
|
984
|
+
.animate-spin {
|
|
828
985
|
animation: spin 1s linear infinite;
|
|
829
986
|
}
|
|
830
|
-
.cursor-pointer{
|
|
987
|
+
.cursor-pointer {
|
|
831
988
|
cursor: pointer;
|
|
832
989
|
}
|
|
833
|
-
.flex-col{
|
|
990
|
+
.flex-col {
|
|
834
991
|
flex-direction: column;
|
|
835
992
|
}
|
|
836
|
-
.items-end{
|
|
993
|
+
.items-end {
|
|
837
994
|
align-items: flex-end;
|
|
838
995
|
}
|
|
839
|
-
.items-center{
|
|
996
|
+
.items-center {
|
|
840
997
|
align-items: center;
|
|
841
998
|
}
|
|
842
|
-
.justify-
|
|
843
|
-
justify-content:
|
|
999
|
+
.justify-end {
|
|
1000
|
+
justify-content: flex-end;
|
|
844
1001
|
}
|
|
845
|
-
.justify-
|
|
846
|
-
justify-content:
|
|
1002
|
+
.justify-center {
|
|
1003
|
+
justify-content: center;
|
|
847
1004
|
}
|
|
848
|
-
.space-x-2 > :not([hidden]) ~ :not([hidden]){
|
|
1005
|
+
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
|
849
1006
|
--tw-space-x-reverse: 0;
|
|
850
1007
|
margin-right: calc(8px * var(--tw-space-x-reverse));
|
|
851
1008
|
margin-left: calc(8px * calc(1 - var(--tw-space-x-reverse)));
|
|
852
1009
|
}
|
|
853
|
-
.space-x-4 > :not([hidden]) ~ :not([hidden]){
|
|
1010
|
+
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
854
1011
|
--tw-space-x-reverse: 0;
|
|
855
1012
|
margin-right: calc(16px * var(--tw-space-x-reverse));
|
|
856
1013
|
margin-left: calc(16px * calc(1 - var(--tw-space-x-reverse)));
|
|
857
1014
|
}
|
|
858
|
-
.space-y-10 > :not([hidden]) ~ :not([hidden]){
|
|
1015
|
+
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
|
|
859
1016
|
--tw-space-y-reverse: 0;
|
|
860
1017
|
margin-top: calc(40px * calc(1 - var(--tw-space-y-reverse)));
|
|
861
1018
|
margin-bottom: calc(40px * var(--tw-space-y-reverse));
|
|
862
1019
|
}
|
|
863
|
-
.space-y-4 > :not([hidden]) ~ :not([hidden]){
|
|
1020
|
+
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
864
1021
|
--tw-space-y-reverse: 0;
|
|
865
1022
|
margin-top: calc(16px * calc(1 - var(--tw-space-y-reverse)));
|
|
866
1023
|
margin-bottom: calc(16px * var(--tw-space-y-reverse));
|
|
867
1024
|
}
|
|
868
|
-
.space-y-5 > :not([hidden]) ~ :not([hidden]){
|
|
1025
|
+
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
|
|
869
1026
|
--tw-space-y-reverse: 0;
|
|
870
1027
|
margin-top: calc(20px * calc(1 - var(--tw-space-y-reverse)));
|
|
871
1028
|
margin-bottom: calc(20px * var(--tw-space-y-reverse));
|
|
872
1029
|
}
|
|
873
|
-
.space-y-6 > :not([hidden]) ~ :not([hidden]){
|
|
1030
|
+
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
|
|
874
1031
|
--tw-space-y-reverse: 0;
|
|
875
1032
|
margin-top: calc(24px * calc(1 - var(--tw-space-y-reverse)));
|
|
876
1033
|
margin-bottom: calc(24px * var(--tw-space-y-reverse));
|
|
877
1034
|
}
|
|
878
|
-
.space-y-8 > :not([hidden]) ~ :not([hidden]){
|
|
1035
|
+
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
|
|
879
1036
|
--tw-space-y-reverse: 0;
|
|
880
1037
|
margin-top: calc(32px * calc(1 - var(--tw-space-y-reverse)));
|
|
881
1038
|
margin-bottom: calc(32px * var(--tw-space-y-reverse));
|
|
882
1039
|
}
|
|
883
|
-
.overflow-y-hidden{
|
|
1040
|
+
.overflow-y-hidden {
|
|
884
1041
|
overflow-y: hidden;
|
|
885
1042
|
}
|
|
886
|
-
.rounded-2xl{
|
|
1043
|
+
.rounded-2xl {
|
|
887
1044
|
border-radius: 1rem;
|
|
888
1045
|
}
|
|
889
|
-
.rounded-full{
|
|
1046
|
+
.rounded-full {
|
|
890
1047
|
border-radius: 9999px;
|
|
891
1048
|
}
|
|
892
|
-
.rounded-lg{
|
|
1049
|
+
.rounded-lg {
|
|
893
1050
|
border-radius: 0.5rem;
|
|
894
1051
|
}
|
|
895
|
-
.border{
|
|
1052
|
+
.border {
|
|
896
1053
|
border-width: 1px;
|
|
897
1054
|
}
|
|
898
|
-
.border
|
|
1055
|
+
.border-\\[1\\.2px\\] {
|
|
1056
|
+
border-width: 1.2px;
|
|
1057
|
+
}
|
|
1058
|
+
.border-t {
|
|
899
1059
|
border-top-width: 1px;
|
|
900
1060
|
}
|
|
901
|
-
.border-
|
|
1061
|
+
.border-solid {
|
|
1062
|
+
border-style: solid;
|
|
1063
|
+
}
|
|
1064
|
+
.border-\\[\\#EBECEF\\] {
|
|
902
1065
|
--tw-border-opacity: 1;
|
|
903
1066
|
border-color: rgb(235 236 239 / var(--tw-border-opacity));
|
|
904
1067
|
}
|
|
905
|
-
.border-
|
|
1068
|
+
.border-ebecef {
|
|
1069
|
+
--tw-border-opacity: 1;
|
|
1070
|
+
border-color: rgb(235 236 239 / var(--tw-border-opacity));
|
|
1071
|
+
}
|
|
1072
|
+
.border-f1f5f8 {
|
|
906
1073
|
--tw-border-opacity: 1;
|
|
907
1074
|
border-color: rgb(241 245 248 / var(--tw-border-opacity));
|
|
908
1075
|
}
|
|
909
|
-
.border-f5f5f7{
|
|
1076
|
+
.border-f5f5f7 {
|
|
910
1077
|
--tw-border-opacity: 1;
|
|
911
1078
|
border-color: rgb(245 245 247 / var(--tw-border-opacity));
|
|
912
1079
|
}
|
|
913
|
-
.border-transparent{
|
|
1080
|
+
.border-transparent {
|
|
914
1081
|
border-color: transparent;
|
|
915
1082
|
}
|
|
916
|
-
.bg-0d151d{
|
|
1083
|
+
.bg-0d151d {
|
|
917
1084
|
--tw-bg-opacity: 1;
|
|
918
1085
|
background-color: rgb(13 21 29 / var(--tw-bg-opacity));
|
|
919
1086
|
}
|
|
920
|
-
.bg-black\\/50{
|
|
1087
|
+
.bg-black\\/50 {
|
|
921
1088
|
background-color: rgb(0 0 0 / 0.5);
|
|
922
1089
|
}
|
|
923
|
-
.bg-transparent{
|
|
1090
|
+
.bg-transparent {
|
|
924
1091
|
background-color: transparent;
|
|
925
1092
|
}
|
|
926
|
-
.bg-white{
|
|
1093
|
+
.bg-white {
|
|
927
1094
|
--tw-bg-opacity: 1;
|
|
928
1095
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
929
1096
|
}
|
|
930
|
-
.p-
|
|
931
|
-
padding:
|
|
1097
|
+
.p-3 {
|
|
1098
|
+
padding: 12px;
|
|
932
1099
|
}
|
|
933
|
-
.p-4{
|
|
1100
|
+
.p-4 {
|
|
934
1101
|
padding: 16px;
|
|
935
1102
|
}
|
|
936
|
-
.p-7{
|
|
1103
|
+
.p-7 {
|
|
937
1104
|
padding: 28px;
|
|
938
1105
|
}
|
|
939
|
-
.px-2{
|
|
1106
|
+
.px-2 {
|
|
940
1107
|
padding-left: 8px;
|
|
941
1108
|
padding-right: 8px;
|
|
942
1109
|
}
|
|
943
|
-
.px-8{
|
|
1110
|
+
.px-8 {
|
|
944
1111
|
padding-left: 32px;
|
|
945
1112
|
padding-right: 32px;
|
|
946
1113
|
}
|
|
947
|
-
.py-1{
|
|
1114
|
+
.py-1 {
|
|
948
1115
|
padding-top: 4px;
|
|
949
1116
|
padding-bottom: 4px;
|
|
950
1117
|
}
|
|
951
|
-
.py-3{
|
|
1118
|
+
.py-3 {
|
|
952
1119
|
padding-top: 12px;
|
|
953
1120
|
padding-bottom: 12px;
|
|
954
1121
|
}
|
|
955
|
-
.pt-6{
|
|
1122
|
+
.pt-6 {
|
|
956
1123
|
padding-top: 24px;
|
|
957
1124
|
}
|
|
958
|
-
.text-center{
|
|
1125
|
+
.text-center {
|
|
959
1126
|
text-align: center;
|
|
960
1127
|
}
|
|
961
|
-
.font-sans{
|
|
962
|
-
font-family:
|
|
1128
|
+
.font-sans {
|
|
1129
|
+
font-family: TWK Lausanne, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
963
1130
|
}
|
|
964
|
-
.
|
|
965
|
-
font-family: Sora, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
966
|
-
}
|
|
967
|
-
.text-2xl{
|
|
1131
|
+
.text-2xl {
|
|
968
1132
|
font-size: 24px;
|
|
969
1133
|
line-height: 32px;
|
|
970
1134
|
}
|
|
971
|
-
.text-lg{
|
|
1135
|
+
.text-lg {
|
|
972
1136
|
font-size: 18px;
|
|
973
1137
|
line-height: 28px;
|
|
974
1138
|
}
|
|
975
|
-
.text-sm{
|
|
1139
|
+
.text-sm {
|
|
976
1140
|
font-size: 14px;
|
|
977
1141
|
line-height: 20px;
|
|
978
1142
|
}
|
|
979
|
-
.text-xs{
|
|
1143
|
+
.text-xs {
|
|
980
1144
|
font-size: 12px;
|
|
981
1145
|
line-height: 16px;
|
|
982
1146
|
}
|
|
983
|
-
.font-
|
|
984
|
-
font-weight:
|
|
1147
|
+
.font-light {
|
|
1148
|
+
font-weight: 300;
|
|
985
1149
|
}
|
|
986
|
-
.font-medium{
|
|
1150
|
+
.font-medium {
|
|
987
1151
|
font-weight: 500;
|
|
988
1152
|
}
|
|
989
|
-
.font-semibold{
|
|
1153
|
+
.font-semibold {
|
|
990
1154
|
font-weight: 600;
|
|
991
1155
|
}
|
|
992
|
-
.text-0d151d{
|
|
1156
|
+
.text-0d151d {
|
|
993
1157
|
--tw-text-opacity: 1;
|
|
994
1158
|
color: rgb(13 21 29 / var(--tw-text-opacity));
|
|
995
1159
|
}
|
|
996
|
-
.text-29343f{
|
|
1160
|
+
.text-29343f {
|
|
997
1161
|
--tw-text-opacity: 1;
|
|
998
1162
|
color: rgb(41 52 63 / var(--tw-text-opacity));
|
|
999
1163
|
}
|
|
1000
|
-
.text-3c424b{
|
|
1164
|
+
.text-3c424b {
|
|
1001
1165
|
--tw-text-opacity: 1;
|
|
1002
1166
|
color: rgb(60 66 75 / var(--tw-text-opacity));
|
|
1003
1167
|
}
|
|
1004
|
-
.text-657080{
|
|
1168
|
+
.text-657080 {
|
|
1005
1169
|
--tw-text-opacity: 1;
|
|
1006
1170
|
color: rgb(101 112 128 / var(--tw-text-opacity));
|
|
1007
1171
|
}
|
|
1008
|
-
.text-70868f{
|
|
1172
|
+
.text-70868f {
|
|
1009
1173
|
--tw-text-opacity: 1;
|
|
1010
1174
|
color: rgb(112 134 143 / var(--tw-text-opacity));
|
|
1011
1175
|
}
|
|
1012
|
-
.text-9ba3ae{
|
|
1176
|
+
.text-9ba3ae {
|
|
1013
1177
|
--tw-text-opacity: 1;
|
|
1014
1178
|
color: rgb(155 163 174 / var(--tw-text-opacity));
|
|
1015
1179
|
}
|
|
1016
|
-
.text-9eafc0{
|
|
1180
|
+
.text-9eafc0 {
|
|
1017
1181
|
--tw-text-opacity: 1;
|
|
1018
1182
|
color: rgb(158 175 192 / var(--tw-text-opacity));
|
|
1019
1183
|
}
|
|
1020
|
-
.text-black{
|
|
1184
|
+
.text-black {
|
|
1021
1185
|
--tw-text-opacity: 1;
|
|
1022
1186
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1023
1187
|
}
|
|
1024
|
-
.text-gray-900{
|
|
1188
|
+
.text-gray-900 {
|
|
1025
1189
|
--tw-text-opacity: 1;
|
|
1026
1190
|
color: rgb(17 24 39 / var(--tw-text-opacity));
|
|
1027
1191
|
}
|
|
1028
|
-
.text-
|
|
1029
|
-
--tw-text-opacity: 1;
|
|
1030
|
-
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
1031
|
-
}
|
|
1032
|
-
.text-white{
|
|
1192
|
+
.text-white {
|
|
1033
1193
|
--tw-text-opacity: 1;
|
|
1034
1194
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1035
1195
|
}
|
|
1036
|
-
.opacity-40{
|
|
1196
|
+
.opacity-40 {
|
|
1037
1197
|
opacity: 0.4;
|
|
1038
1198
|
}
|
|
1039
|
-
.shadow{
|
|
1199
|
+
.shadow {
|
|
1040
1200
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1041
1201
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
1042
1202
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1043
1203
|
}
|
|
1044
|
-
.shadow-sm{
|
|
1204
|
+
.shadow-sm {
|
|
1045
1205
|
--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1046
1206
|
--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
|
|
1047
1207
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1048
1208
|
}
|
|
1049
|
-
.blur-lg{
|
|
1209
|
+
.blur-lg {
|
|
1050
1210
|
--tw-blur: blur(16px);
|
|
1051
1211
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1052
1212
|
}
|
|
1053
|
-
.filter{
|
|
1213
|
+
.filter {
|
|
1054
1214
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1055
1215
|
}
|
|
1056
|
-
.backdrop-blur-lg{
|
|
1216
|
+
.backdrop-blur-lg {
|
|
1057
1217
|
--tw-backdrop-blur: blur(16px);
|
|
1058
1218
|
-webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1059
1219
|
backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
1060
1220
|
}
|
|
1061
|
-
.transition{
|
|
1221
|
+
.transition {
|
|
1062
1222
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
|
|
1063
1223
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
1064
1224
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
|
|
1065
1225
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1066
1226
|
transition-duration: 150ms;
|
|
1067
1227
|
}
|
|
1068
|
-
.duration-300{
|
|
1228
|
+
.duration-300 {
|
|
1069
1229
|
transition-duration: 300ms;
|
|
1070
1230
|
}
|
|
1071
|
-
.duration-500{
|
|
1231
|
+
.duration-500 {
|
|
1072
1232
|
transition-duration: 500ms;
|
|
1073
1233
|
}
|
|
1074
|
-
.ease-in-out{
|
|
1234
|
+
.ease-in-out {
|
|
1075
1235
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1076
1236
|
}
|
|
1077
1237
|
input[type='number']::-webkit-inner-spin-button,
|
|
1078
|
-
input[type='number']::-webkit-outer-spin-button{
|
|
1238
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
1079
1239
|
-webkit-appearance: none;
|
|
1080
1240
|
appearance: none;
|
|
1081
1241
|
}
|
|
1082
|
-
.hover\\:underline:hover{
|
|
1242
|
+
.hover\\:underline:hover {
|
|
1083
1243
|
text-decoration-line: underline;
|
|
1084
1244
|
}
|
|
1085
|
-
.hover\\:shadow:hover{
|
|
1245
|
+
.hover\\:shadow:hover {
|
|
1086
1246
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1087
1247
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
1088
1248
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1089
1249
|
}
|
|
1090
|
-
.focus\\:outline-none:focus{
|
|
1250
|
+
.focus\\:outline-none:focus {
|
|
1091
1251
|
outline: 2px solid transparent;
|
|
1092
1252
|
outline-offset: 2px;
|
|
1093
1253
|
}
|
|
1094
|
-
.focus\\:ring-2:focus{
|
|
1254
|
+
.focus\\:ring-2:focus {
|
|
1095
1255
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1096
1256
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1097
1257
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1098
1258
|
}
|
|
1099
|
-
.focus\\:ring-indigo-500:focus{
|
|
1259
|
+
.focus\\:ring-indigo-500:focus {
|
|
1100
1260
|
--tw-ring-opacity: 1;
|
|
1101
1261
|
--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity));
|
|
1102
1262
|
}
|
|
1103
|
-
.focus\\:ring-offset-2:focus{
|
|
1263
|
+
.focus\\:ring-offset-2:focus {
|
|
1104
1264
|
--tw-ring-offset-width: 2px;
|
|
1105
1265
|
}
|
|
1106
|
-
.focus-visible\\:ring:focus-visible{
|
|
1266
|
+
.focus-visible\\:ring:focus-visible {
|
|
1107
1267
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1108
1268
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1109
1269
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1110
1270
|
}
|
|
1111
|
-
.focus-visible\\:ring-purple-500\\/75:focus-visible{
|
|
1271
|
+
.focus-visible\\:ring-purple-500\\/75:focus-visible {
|
|
1112
1272
|
--tw-ring-color: rgb(168 85 247 / 0.75);
|
|
1113
1273
|
}
|
|
1114
|
-
.disabled\\:cursor-not-allowed:disabled{
|
|
1274
|
+
.disabled\\:cursor-not-allowed:disabled {
|
|
1115
1275
|
cursor: not-allowed;
|
|
1116
1276
|
}
|
|
1117
|
-
.disabled\\:opacity-40:disabled{
|
|
1277
|
+
.disabled\\:opacity-40:disabled {
|
|
1118
1278
|
opacity: 0.4;
|
|
1119
1279
|
}
|
|
1120
|
-
@media (prefers-reduced-motion: reduce){
|
|
1121
|
-
@keyframes spin{
|
|
1122
|
-
to{
|
|
1280
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1281
|
+
@keyframes spin {
|
|
1282
|
+
to {
|
|
1123
1283
|
transform: rotate(360deg);
|
|
1124
1284
|
}
|
|
1125
1285
|
}
|
|
1126
|
-
.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{
|
|
1286
|
+
.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\] {
|
|
1127
1287
|
animation: spin 1.5s linear infinite;
|
|
1128
1288
|
}
|
|
1129
1289
|
}
|
|
1130
|
-
.dark\\:border-f1f5f8\\/10:is(.dark *){
|
|
1290
|
+
.dark\\:border-f1f5f8\\/10:is(.dark *) {
|
|
1131
1291
|
border-color: rgb(241 245 248 / 0.1);
|
|
1132
1292
|
}
|
|
1133
|
-
.dark\\:bg-0d151d:is(.dark *){
|
|
1293
|
+
.dark\\:bg-0d151d:is(.dark *) {
|
|
1134
1294
|
--tw-bg-opacity: 1;
|
|
1135
1295
|
background-color: rgb(13 21 29 / var(--tw-bg-opacity));
|
|
1136
1296
|
}
|
|
1137
|
-
.dark\\:bg-white:is(.dark *){
|
|
1297
|
+
.dark\\:bg-white:is(.dark *) {
|
|
1138
1298
|
--tw-bg-opacity: 1;
|
|
1139
1299
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1140
1300
|
}
|
|
1141
|
-
.dark\\:text-0d151d:is(.dark *){
|
|
1301
|
+
.dark\\:text-0d151d:is(.dark *) {
|
|
1142
1302
|
--tw-text-opacity: 1;
|
|
1143
1303
|
color: rgb(13 21 29 / var(--tw-text-opacity));
|
|
1144
1304
|
}
|
|
1145
|
-
.dark\\:text-9eafc0:is(.dark *){
|
|
1305
|
+
.dark\\:text-9eafc0:is(.dark *) {
|
|
1146
1306
|
--tw-text-opacity: 1;
|
|
1147
1307
|
color: rgb(158 175 192 / var(--tw-text-opacity));
|
|
1148
1308
|
}
|
|
1149
|
-
.dark\\:text-white:is(.dark *){
|
|
1309
|
+
.dark\\:text-white:is(.dark *) {
|
|
1150
1310
|
--tw-text-opacity: 1;
|
|
1151
1311
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
1152
1312
|
}
|
|
1153
|
-
@media (min-width: 768px){
|
|
1154
|
-
.md\\:mt-2{
|
|
1313
|
+
@media (min-width: 768px) {
|
|
1314
|
+
.md\\:mt-2 {
|
|
1155
1315
|
margin-top: 8px;
|
|
1156
1316
|
}
|
|
1157
|
-
.md\\:hidden{
|
|
1317
|
+
.md\\:hidden {
|
|
1158
1318
|
display: none;
|
|
1159
1319
|
}
|
|
1160
|
-
.md\\:min-h-\\[35rem\\]{
|
|
1320
|
+
.md\\:min-h-\\[35rem\\] {
|
|
1161
1321
|
min-height: 35rem;
|
|
1162
1322
|
}
|
|
1163
|
-
.md\\:max-w-md{
|
|
1323
|
+
.md\\:max-w-md {
|
|
1164
1324
|
max-width: 448px;
|
|
1165
1325
|
}
|
|
1166
|
-
.md\\:items-center{
|
|
1326
|
+
.md\\:items-center {
|
|
1167
1327
|
align-items: center;
|
|
1168
1328
|
}
|
|
1169
|
-
.md\\:overflow-y-auto{
|
|
1329
|
+
.md\\:overflow-y-auto {
|
|
1170
1330
|
overflow-y: auto;
|
|
1171
1331
|
}
|
|
1172
|
-
.md\\:rounded
|
|
1173
|
-
border-radius:
|
|
1332
|
+
.md\\:rounded-\\[24px\\] {
|
|
1333
|
+
border-radius: 24px;
|
|
1174
1334
|
}
|
|
1175
|
-
.md\\:rounded-b-2xl{
|
|
1335
|
+
.md\\:rounded-b-2xl {
|
|
1176
1336
|
border-bottom-right-radius: 1rem;
|
|
1177
1337
|
border-bottom-left-radius: 1rem;
|
|
1178
1338
|
}
|
|
1179
|
-
.md\\:p-4{
|
|
1339
|
+
.md\\:p-4 {
|
|
1180
1340
|
padding: 16px;
|
|
1181
1341
|
}
|
|
1182
1342
|
}
|
|
@@ -1187,12 +1347,30 @@ import { jsx } from "react/jsx-runtime";
|
|
|
1187
1347
|
var Styles = () => /* @__PURE__ */ jsx("style", { children: styles_default });
|
|
1188
1348
|
var Styles_default = Styles;
|
|
1189
1349
|
|
|
1350
|
+
// src/components/IDKitWidget/ShadowHost.tsx
|
|
1351
|
+
import ReactDOM from "react-dom";
|
|
1352
|
+
import { useState as useState2, useCallback } from "react";
|
|
1353
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1354
|
+
var ShadowHost = ({ id, children, mode = "open", delegatesFocus = false }) => {
|
|
1355
|
+
const [shadowRoot, setShadowRoot] = useState2(null);
|
|
1356
|
+
const hostRef = useCallback(
|
|
1357
|
+
(node) => {
|
|
1358
|
+
if (node) {
|
|
1359
|
+
const root = node.shadowRoot ?? node.attachShadow({ mode, delegatesFocus });
|
|
1360
|
+
setShadowRoot(root);
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
[mode, delegatesFocus]
|
|
1364
|
+
);
|
|
1365
|
+
return /* @__PURE__ */ jsx2("div", { ref: hostRef, id, children: shadowRoot && ReactDOM.createPortal(children, shadowRoot) });
|
|
1366
|
+
};
|
|
1367
|
+
|
|
1190
1368
|
// src/components/IDKitWidget/BaseWidget.tsx
|
|
1191
1369
|
import { shallow as shallow2 } from "zustand/shallow";
|
|
1192
1370
|
|
|
1193
1371
|
// src/components/Icons/XMarkIcon.tsx
|
|
1194
|
-
import { jsx as
|
|
1195
|
-
var XMarkIcon = (props) => /* @__PURE__ */
|
|
1372
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1373
|
+
var XMarkIcon = (props) => /* @__PURE__ */ jsx3("svg", { ...props, xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx3(
|
|
1196
1374
|
"path",
|
|
1197
1375
|
{
|
|
1198
1376
|
strokeWidth: "1.5",
|
|
@@ -1220,51 +1398,51 @@ function clsx() {
|
|
|
1220
1398
|
}
|
|
1221
1399
|
var clsx_default = clsx;
|
|
1222
1400
|
|
|
1401
|
+
// src/components/IDKitWidget/States/ErrorState.tsx
|
|
1402
|
+
import { useEffect as useEffect4 } from "react";
|
|
1403
|
+
|
|
1223
1404
|
// src/components/Icons/ErrorIcon.tsx
|
|
1224
|
-
import { jsx as
|
|
1225
|
-
var ErrorIcon = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
1226
|
-
/* @__PURE__ */
|
|
1227
|
-
/* @__PURE__ */
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
] }),
|
|
1231
|
-
/* @__PURE__ */ jsx3(
|
|
1405
|
+
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
1406
|
+
var ErrorIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1407
|
+
/* @__PURE__ */ jsx4("rect", { width: "88", height: "88", rx: "44", fill: "#9BA3AE" }),
|
|
1408
|
+
/* @__PURE__ */ jsx4("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3198)" }),
|
|
1409
|
+
/* @__PURE__ */ jsx4("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3198)" }),
|
|
1410
|
+
/* @__PURE__ */ jsx4(
|
|
1232
1411
|
"path",
|
|
1233
1412
|
{
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
strokeWidth: "3.75",
|
|
1238
|
-
d: "m57.5 42.5-15 14.999m15 .001-15-14.999"
|
|
1413
|
+
d: "M33.0146 53.9853L43.4999 43.5M53.9851 33.0147L43.4999 43.5M43.4999 43.5L33.0146 33.0147M43.4999 43.5L53.9851 53.9853",
|
|
1414
|
+
stroke: "white",
|
|
1415
|
+
strokeWidth: "3"
|
|
1239
1416
|
}
|
|
1240
1417
|
),
|
|
1241
1418
|
/* @__PURE__ */ jsxs("defs", { children: [
|
|
1242
|
-
/* @__PURE__ */ jsxs("linearGradient", { id: "a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1243
|
-
/* @__PURE__ */ jsx3("stop", { stopColor: "#FFA483" }),
|
|
1244
|
-
/* @__PURE__ */ jsx3("stop", { offset: "1", stopColor: "#FFA483", stopOpacity: "0" })
|
|
1245
|
-
] }),
|
|
1246
|
-
/* @__PURE__ */ jsxs("linearGradient", { id: "b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1247
|
-
/* @__PURE__ */ jsx3("stop", { stopColor: "#FFA483" }),
|
|
1248
|
-
/* @__PURE__ */ jsx3("stop", { offset: ".713", stopColor: "#FFA483", stopOpacity: "0" })
|
|
1249
|
-
] }),
|
|
1250
1419
|
/* @__PURE__ */ jsxs(
|
|
1251
|
-
"
|
|
1420
|
+
"radialGradient",
|
|
1421
|
+
{
|
|
1422
|
+
id: "paint0_radial_117706_3198",
|
|
1423
|
+
cx: "0",
|
|
1424
|
+
cy: "0",
|
|
1425
|
+
r: "1",
|
|
1426
|
+
gradientUnits: "userSpaceOnUse",
|
|
1427
|
+
gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
|
|
1428
|
+
children: [
|
|
1429
|
+
/* @__PURE__ */ jsx4("stop", { stopColor: "white" }),
|
|
1430
|
+
/* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1431
|
+
]
|
|
1432
|
+
}
|
|
1433
|
+
),
|
|
1434
|
+
/* @__PURE__ */ jsxs(
|
|
1435
|
+
"linearGradient",
|
|
1252
1436
|
{
|
|
1253
|
-
id: "
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
filterUnits: "userSpaceOnUse",
|
|
1437
|
+
id: "paint1_linear_117706_3198",
|
|
1438
|
+
x1: "44",
|
|
1439
|
+
y1: "0",
|
|
1440
|
+
x2: "44",
|
|
1441
|
+
y2: "88",
|
|
1442
|
+
gradientUnits: "userSpaceOnUse",
|
|
1260
1443
|
children: [
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
/* @__PURE__ */ jsx3("feOffset", { dy: "1.875" }),
|
|
1264
|
-
/* @__PURE__ */ jsx3("feGaussianBlur", { stdDeviation: "1.875" }),
|
|
1265
|
-
/* @__PURE__ */ jsx3("feColorMatrix", { values: "0 0 0 0 1 0 0 0 0 0.788235 0 0 0 0 0.678431 0 0 0 0.45 0" }),
|
|
1266
|
-
/* @__PURE__ */ jsx3("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_740" }),
|
|
1267
|
-
/* @__PURE__ */ jsx3("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_740", result: "shape" })
|
|
1444
|
+
/* @__PURE__ */ jsx4("stop", { stopColor: "white", stopOpacity: "0.3" }),
|
|
1445
|
+
/* @__PURE__ */ jsx4("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1268
1446
|
]
|
|
1269
1447
|
}
|
|
1270
1448
|
)
|
|
@@ -1275,75 +1453,47 @@ var ErrorIcon_default = ErrorIcon;
|
|
|
1275
1453
|
// src/components/IDKitWidget/States/ErrorState.tsx
|
|
1276
1454
|
import { AppErrorCodes } from "@worldcoin/idkit-core";
|
|
1277
1455
|
|
|
1278
|
-
// src/components/Icons/ReloadIcon.tsx
|
|
1279
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1280
|
-
var ReloadIcon = (props) => /* @__PURE__ */ jsx4("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx4(
|
|
1281
|
-
"path",
|
|
1282
|
-
{
|
|
1283
|
-
d: "M12.3809 1.6665L13.3626 4.24214C12.3754 3.66434 11.2263 3.33317 9.99992 3.33317C6.31802 3.33317 3.33325 6.31794 3.33325 9.99984C3.33325 11.2141 3.6579 12.3526 4.22513 13.3332M7.61897 18.3332L6.63719 15.7575C7.62438 16.3353 8.77348 16.6665 9.99992 16.6665C13.6818 16.6665 16.6666 13.6817 16.6666 9.99984C16.6666 8.78555 16.3419 7.64708 15.7747 6.6665",
|
|
1284
|
-
stroke: "#3C424B",
|
|
1285
|
-
strokeWidth: "1.5",
|
|
1286
|
-
strokeLinecap: "round",
|
|
1287
|
-
strokeLinejoin: "round"
|
|
1288
|
-
}
|
|
1289
|
-
) });
|
|
1290
|
-
var ReloadIcon_default = ReloadIcon;
|
|
1291
|
-
|
|
1292
1456
|
// src/components/Icons/WarningIcon.tsx
|
|
1293
1457
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1294
|
-
var WarningIcon = (props) => /* @__PURE__ */ jsxs2("svg", {
|
|
1295
|
-
/* @__PURE__ */ jsx5(
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
cx: "50",
|
|
1299
|
-
cy: "50",
|
|
1300
|
-
r: "49.375",
|
|
1301
|
-
fill: "url(#warning-a)",
|
|
1302
|
-
fillOpacity: ".65",
|
|
1303
|
-
stroke: "url(#warning-b)",
|
|
1304
|
-
strokeWidth: "1.25"
|
|
1305
|
-
}
|
|
1306
|
-
),
|
|
1307
|
-
/* @__PURE__ */ jsxs2("g", { filter: "url(#warning-c)", children: [
|
|
1308
|
-
/* @__PURE__ */ jsx5("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
|
|
1309
|
-
/* @__PURE__ */ jsx5("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#FFE999", strokeWidth: "1.136" })
|
|
1310
|
-
] }),
|
|
1458
|
+
var WarningIcon = (props) => /* @__PURE__ */ jsxs2("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1459
|
+
/* @__PURE__ */ jsx5("rect", { width: "88", height: "88", rx: "44", fill: "#FFAE00" }),
|
|
1460
|
+
/* @__PURE__ */ jsx5("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3182)" }),
|
|
1461
|
+
/* @__PURE__ */ jsx5("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3182)" }),
|
|
1311
1462
|
/* @__PURE__ */ jsx5(
|
|
1312
1463
|
"path",
|
|
1313
1464
|
{
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
d: "M47.46 40.207c1.107-1.943 3.973-1.943 5.08 0l9.59 16.834c1.076 1.888-.324 4.209-2.54 4.209H40.41c-2.216 0-3.616-2.32-2.54-4.21l9.59-16.833Zm3.79 16.043a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0Zm-.313-10a.937.937 0 1 0-1.875 0v6.25a.938.938 0 0 0 1.875 0v-6.25Z",
|
|
1317
|
-
clipRule: "evenodd"
|
|
1465
|
+
d: "M64.1707 59.5415H22.8298L43.4998 22.3354L64.1707 59.5415ZM42.1208 51.3003L42.1218 54.0503H44.8992L44.8982 51.3003H42.1208ZM42.1248 46.7085H44.8748V36.6255H42.1248V46.7085Z",
|
|
1466
|
+
fill: "white"
|
|
1318
1467
|
}
|
|
1319
1468
|
),
|
|
1320
1469
|
/* @__PURE__ */ jsxs2("defs", { children: [
|
|
1321
|
-
/* @__PURE__ */ jsxs2("linearGradient", { id: "warning-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1322
|
-
/* @__PURE__ */ jsx5("stop", { stopColor: "#FFDA66" }),
|
|
1323
|
-
/* @__PURE__ */ jsx5("stop", { offset: "1", stopColor: "#FFDA66", stopOpacity: "0" })
|
|
1324
|
-
] }),
|
|
1325
|
-
/* @__PURE__ */ jsxs2("linearGradient", { id: "warning-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1326
|
-
/* @__PURE__ */ jsx5("stop", { stopColor: "#FFDA66" }),
|
|
1327
|
-
/* @__PURE__ */ jsx5("stop", { offset: ".713", stopColor: "#FFDA66", stopOpacity: "0" })
|
|
1328
|
-
] }),
|
|
1329
1470
|
/* @__PURE__ */ jsxs2(
|
|
1330
|
-
"
|
|
1471
|
+
"radialGradient",
|
|
1472
|
+
{
|
|
1473
|
+
id: "paint0_radial_117706_3182",
|
|
1474
|
+
cx: "0",
|
|
1475
|
+
cy: "0",
|
|
1476
|
+
r: "1",
|
|
1477
|
+
gradientUnits: "userSpaceOnUse",
|
|
1478
|
+
gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
|
|
1479
|
+
children: [
|
|
1480
|
+
/* @__PURE__ */ jsx5("stop", { stopColor: "white" }),
|
|
1481
|
+
/* @__PURE__ */ jsx5("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1482
|
+
]
|
|
1483
|
+
}
|
|
1484
|
+
),
|
|
1485
|
+
/* @__PURE__ */ jsxs2(
|
|
1486
|
+
"linearGradient",
|
|
1331
1487
|
{
|
|
1332
|
-
id: "
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
filterUnits: "userSpaceOnUse",
|
|
1488
|
+
id: "paint1_linear_117706_3182",
|
|
1489
|
+
x1: "44",
|
|
1490
|
+
y1: "0",
|
|
1491
|
+
x2: "44",
|
|
1492
|
+
y2: "88",
|
|
1493
|
+
gradientUnits: "userSpaceOnUse",
|
|
1339
1494
|
children: [
|
|
1340
|
-
/* @__PURE__ */ jsx5("
|
|
1341
|
-
/* @__PURE__ */ jsx5("
|
|
1342
|
-
/* @__PURE__ */ jsx5("feOffset", { dy: "1.875" }),
|
|
1343
|
-
/* @__PURE__ */ jsx5("feGaussianBlur", { stdDeviation: "1.875" }),
|
|
1344
|
-
/* @__PURE__ */ jsx5("feColorMatrix", { values: "0 0 0 0 1 0 0 0 0 0.913725 0 0 0 0 0.6 0 0 0 0.45 0" }),
|
|
1345
|
-
/* @__PURE__ */ jsx5("feBlend", { in2: "BackgroundImageFix", result: "effect1_dropShadow_39_758" }),
|
|
1346
|
-
/* @__PURE__ */ jsx5("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_39_758", result: "shape" })
|
|
1495
|
+
/* @__PURE__ */ jsx5("stop", { stopColor: "white", stopOpacity: "0.3" }),
|
|
1496
|
+
/* @__PURE__ */ jsx5("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1347
1497
|
]
|
|
1348
1498
|
}
|
|
1349
1499
|
)
|
|
@@ -1366,39 +1516,35 @@ var ERROR_MESSAGES = {
|
|
|
1366
1516
|
"You have already verified the maximum number of times for this action."
|
|
1367
1517
|
),
|
|
1368
1518
|
[AppErrorCodes.CredentialUnavailable]: __("It seems you do not have the verification level required by this app."),
|
|
1369
|
-
[AppErrorCodes.MalformedRequest]: __(
|
|
1370
|
-
"There was a problem with this request. Please try again or contact the app owner."
|
|
1371
|
-
),
|
|
1372
1519
|
[AppErrorCodes.InvalidNetwork]: __(
|
|
1373
1520
|
"Invalid network. If you are the app owner, visit docs.world.org/test for details."
|
|
1374
1521
|
),
|
|
1375
|
-
[AppErrorCodes.InclusionProofFailed]: __("There was an issue fetching your credential. Please try again."),
|
|
1376
1522
|
[AppErrorCodes.InclusionProofPending]: __(
|
|
1377
1523
|
"Your identity is still being registered. Please wait a few minutes and try again."
|
|
1378
1524
|
),
|
|
1379
|
-
[AppErrorCodes.GenericError]: __("
|
|
1380
|
-
[AppErrorCodes.UnexpectedResponse]: __("Unexpected response from your wallet. Please try again."),
|
|
1381
|
-
[AppErrorCodes.FailedByHostApp]: __("Verification failed by the app. Please contact the app owner for details.")
|
|
1525
|
+
[AppErrorCodes.GenericError]: __("We couldn't complete your request. Please try again.")
|
|
1382
1526
|
};
|
|
1383
1527
|
var ErrorState = (props) => {
|
|
1384
1528
|
const { retryFlow, errorState } = idkit_default(getParams);
|
|
1385
1529
|
const { show_modal } = props;
|
|
1530
|
+
useEffect4(() => {
|
|
1531
|
+
if (errorState) {
|
|
1532
|
+
console.error(`Error state: `, errorState);
|
|
1533
|
+
}
|
|
1534
|
+
}, [errorState]);
|
|
1386
1535
|
return /* @__PURE__ */ jsxs3("div", { className: "space-y-8", children: [
|
|
1387
1536
|
/* @__PURE__ */ jsx6("div", { className: clsx_default("flex items-center justify-center", show_modal ? "-mt-5" : ""), children: errorState?.code == AppErrorCodes.VerificationRejected ? /* @__PURE__ */ jsx6(WarningIcon_default, { className: "w-24" }) : /* @__PURE__ */ jsx6(ErrorIcon_default, { className: "w-24" }) }),
|
|
1388
1537
|
/* @__PURE__ */ jsxs3("div", { children: [
|
|
1389
1538
|
/* @__PURE__ */ jsx6("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: (errorState?.code && ERROR_TITLES[errorState.code]) ?? ERROR_TITLES[AppErrorCodes.GenericError] }),
|
|
1390
|
-
/* @__PURE__ */ jsx6("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: errorState?.
|
|
1539
|
+
/* @__PURE__ */ jsx6("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-657080", children: (errorState?.code && ERROR_MESSAGES[errorState.code]) ?? ERROR_MESSAGES[AppErrorCodes.GenericError] })
|
|
1391
1540
|
] }),
|
|
1392
|
-
/* @__PURE__ */ jsx6("div", { className: "flex justify-center", children: /* @__PURE__ */
|
|
1541
|
+
/* @__PURE__ */ jsx6("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx6(
|
|
1393
1542
|
"button",
|
|
1394
1543
|
{
|
|
1395
1544
|
type: "button",
|
|
1396
1545
|
onClick: retryFlow,
|
|
1397
|
-
className: "inline-flex items-center rounded-
|
|
1398
|
-
children:
|
|
1399
|
-
/* @__PURE__ */ jsx6(ReloadIcon_default, { className: "mr-1.5 size-5" }),
|
|
1400
|
-
__("Try Again")
|
|
1401
|
-
]
|
|
1546
|
+
className: "inline-flex items-center rounded-full border-[1.2px] border-ebecef bg-transparent px-8 py-3 font-semibold text-gray-900 shadow-sm transition duration-300 hover:shadow focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40",
|
|
1547
|
+
children: __("Try Again")
|
|
1402
1548
|
}
|
|
1403
1549
|
) })
|
|
1404
1550
|
] });
|
|
@@ -1410,60 +1556,39 @@ import * as Toast from "@radix-ui/react-toast";
|
|
|
1410
1556
|
|
|
1411
1557
|
// src/components/Icons/CheckIcon.tsx
|
|
1412
1558
|
import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1413
|
-
var CheckIcon = (props) => /* @__PURE__ */ jsxs4("svg", {
|
|
1414
|
-
/* @__PURE__ */ jsx7(
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
cy: "50",
|
|
1419
|
-
r: "49.375",
|
|
1420
|
-
fill: "url(#success-a)",
|
|
1421
|
-
fillOpacity: ".65",
|
|
1422
|
-
stroke: "url(#success-b)",
|
|
1423
|
-
strokeWidth: "1.25"
|
|
1424
|
-
}
|
|
1425
|
-
),
|
|
1426
|
-
/* @__PURE__ */ jsxs4("g", { filter: "url(#success-c)", children: [
|
|
1427
|
-
/* @__PURE__ */ jsx7("circle", { cx: "50", cy: "50", r: "35", fill: "#fff" }),
|
|
1428
|
-
/* @__PURE__ */ jsx7("circle", { cx: "50", cy: "50", r: "34.432", stroke: "#CCEBCC", strokeWidth: "1.136" })
|
|
1429
|
-
] }),
|
|
1430
|
-
/* @__PURE__ */ jsx7(
|
|
1431
|
-
"path",
|
|
1432
|
-
{
|
|
1433
|
-
stroke: "#090",
|
|
1434
|
-
strokeLinecap: "round",
|
|
1435
|
-
strokeLinejoin: "round",
|
|
1436
|
-
strokeWidth: "3.75",
|
|
1437
|
-
d: "m41.25 52.5 4.375 4.375 13.125-13.75"
|
|
1438
|
-
}
|
|
1439
|
-
),
|
|
1559
|
+
var CheckIcon = (props) => /* @__PURE__ */ jsxs4("svg", { width: "88", height: "88", viewBox: "0 0 88 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1560
|
+
/* @__PURE__ */ jsx7("rect", { width: "88", height: "88", rx: "44", fill: "#00C230" }),
|
|
1561
|
+
/* @__PURE__ */ jsx7("rect", { opacity: "0.2", width: "88", height: "88", rx: "44", fill: "url(#paint0_radial_117706_3174)" }),
|
|
1562
|
+
/* @__PURE__ */ jsx7("rect", { x: "0.5", y: "0.5", width: "87", height: "87", rx: "43.5", stroke: "url(#paint1_linear_117706_3174)" }),
|
|
1563
|
+
/* @__PURE__ */ jsx7("path", { d: "M29.5 45.5L37.5 53.5L57.5 33.5", stroke: "white", strokeWidth: "3" }),
|
|
1440
1564
|
/* @__PURE__ */ jsxs4("defs", { children: [
|
|
1441
|
-
/* @__PURE__ */ jsxs4("linearGradient", { id: "success-a", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1442
|
-
/* @__PURE__ */ jsx7("stop", { stopColor: "#99D699" }),
|
|
1443
|
-
/* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "#99D699", stopOpacity: "0" })
|
|
1444
|
-
] }),
|
|
1445
|
-
/* @__PURE__ */ jsxs4("linearGradient", { id: "success-b", x1: "50", x2: "50", y1: "0", y2: "100", gradientUnits: "userSpaceOnUse", children: [
|
|
1446
|
-
/* @__PURE__ */ jsx7("stop", { stopColor: "#99D699" }),
|
|
1447
|
-
/* @__PURE__ */ jsx7("stop", { offset: ".713", stopColor: "#99D699", stopOpacity: "0" })
|
|
1448
|
-
] }),
|
|
1449
1565
|
/* @__PURE__ */ jsxs4(
|
|
1450
|
-
"
|
|
1566
|
+
"radialGradient",
|
|
1451
1567
|
{
|
|
1452
|
-
id: "
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
filterUnits: "userSpaceOnUse",
|
|
1568
|
+
id: "paint0_radial_117706_3174",
|
|
1569
|
+
cx: "0",
|
|
1570
|
+
cy: "0",
|
|
1571
|
+
r: "1",
|
|
1572
|
+
gradientUnits: "userSpaceOnUse",
|
|
1573
|
+
gradientTransform: "translate(20 -1.6729e-06) rotate(63.4349) scale(98.387 97.9627)",
|
|
1459
1574
|
children: [
|
|
1460
|
-
/* @__PURE__ */ jsx7("
|
|
1461
|
-
/* @__PURE__ */ jsx7("
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1575
|
+
/* @__PURE__ */ jsx7("stop", { stopColor: "white" }),
|
|
1576
|
+
/* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1577
|
+
]
|
|
1578
|
+
}
|
|
1579
|
+
),
|
|
1580
|
+
/* @__PURE__ */ jsxs4(
|
|
1581
|
+
"linearGradient",
|
|
1582
|
+
{
|
|
1583
|
+
id: "paint1_linear_117706_3174",
|
|
1584
|
+
x1: "44",
|
|
1585
|
+
y1: "0",
|
|
1586
|
+
x2: "44",
|
|
1587
|
+
y2: "88",
|
|
1588
|
+
gradientUnits: "userSpaceOnUse",
|
|
1589
|
+
children: [
|
|
1590
|
+
/* @__PURE__ */ jsx7("stop", { stopColor: "white", stopOpacity: "0.3" }),
|
|
1591
|
+
/* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "white", stopOpacity: "0" })
|
|
1467
1592
|
]
|
|
1468
1593
|
}
|
|
1469
1594
|
)
|
|
@@ -1477,8 +1602,8 @@ var SuccessState = (props) => {
|
|
|
1477
1602
|
return /* @__PURE__ */ jsxs5("div", { className: "space-y-6", children: [
|
|
1478
1603
|
/* @__PURE__ */ jsx8("div", { className: clsx_default("flex items-center justify-center", props.show_modal ? "-mt-5" : ""), children: /* @__PURE__ */ jsx8(CheckIcon_default, { className: "w-24 text-white" }) }),
|
|
1479
1604
|
/* @__PURE__ */ jsxs5("div", { children: [
|
|
1480
|
-
/* @__PURE__ */ jsx8("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("
|
|
1481
|
-
/* @__PURE__ */ jsx8("p", { className: "mx-auto mt-2 max-w-[
|
|
1605
|
+
/* @__PURE__ */ jsx8("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("All set!") }),
|
|
1606
|
+
/* @__PURE__ */ jsx8("p", { className: "mx-auto mt-2 max-w-[260px] text-center text-lg text-657080", children: __("Your World ID is now connected") })
|
|
1482
1607
|
] })
|
|
1483
1608
|
] });
|
|
1484
1609
|
};
|
|
@@ -1486,16 +1611,16 @@ var SuccessState_default = SuccessState;
|
|
|
1486
1611
|
|
|
1487
1612
|
// src/components/IDKitWidget/States/WorldID/QRState.tsx
|
|
1488
1613
|
import copy from "copy-to-clipboard";
|
|
1489
|
-
import { useCallback, useState as
|
|
1614
|
+
import { useCallback as useCallback2, useState as useState3 } from "react";
|
|
1490
1615
|
import { AnimatePresence, motion } from "framer-motion";
|
|
1491
1616
|
|
|
1492
1617
|
// src/components/Icons/WorldcoinIcon.tsx
|
|
1493
1618
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1494
|
-
var WorldcoinIcon = (props) => /* @__PURE__ */ jsx9("svg", {
|
|
1619
|
+
var WorldcoinIcon = (props) => /* @__PURE__ */ jsx9("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", ...props, children: /* @__PURE__ */ jsx9(
|
|
1495
1620
|
"path",
|
|
1496
1621
|
{
|
|
1497
|
-
|
|
1498
|
-
|
|
1622
|
+
d: "M30.7367 9.77239C29.9301 7.86586 28.7772 6.15721 27.3084 4.68831C25.8397 3.21941 24.1275 2.06636 22.225 1.2596C20.2502 0.422405 18.1574 0 15.9962 0C13.8388 0 11.7422 0.422405 9.76742 1.2596C7.86112 2.06636 6.15268 3.21941 4.68395 4.68831C3.21522 6.15721 2.06231 7.86966 1.25565 9.77239C0.422354 11.7436 0 13.8404 0 15.9981C0 18.1558 0.422354 20.2526 1.25945 22.2276C2.06611 24.1341 3.21903 25.8428 4.68775 27.3117C6.15648 28.7806 7.86873 29.9336 9.77122 30.7404C11.746 31.5738 13.8388 32 16 32C18.1574 32 20.254 31.5776 22.2288 30.7404C24.1351 29.9336 25.8435 28.7806 27.3122 27.3117C28.781 25.8428 29.9339 24.1303 30.7405 22.2276C31.5738 20.2526 32 18.1596 32 15.9981C31.9962 13.8404 31.57 11.7436 30.7367 9.77239ZM10.6844 14.4949C11.3503 11.9377 13.679 10.0464 16.4452 10.0464H27.552C28.2673 11.4278 28.7239 12.9309 28.9027 14.4949H10.6844ZM28.9027 17.5012C28.7239 19.0653 28.2635 20.5684 27.552 21.9498H16.4452C13.6828 21.9498 11.3541 20.0585 10.6844 17.5012H28.9027ZM6.81094 6.81175C9.26516 4.35724 12.526 3.0063 15.9962 3.0063C19.4663 3.0063 22.7272 4.35724 25.1815 6.81175C25.2576 6.88786 25.3298 6.96397 25.4021 7.04008H16.4452C14.0518 7.04008 11.8031 7.97241 10.1099 9.66583C8.77812 10.9977 7.91819 12.6759 7.60999 14.4988H3.09346C3.42449 11.5952 4.71439 8.90855 6.81094 6.81175ZM15.9962 28.9937C12.526 28.9937 9.26516 27.6428 6.81094 25.1883C4.71439 23.0915 3.42449 20.4048 3.09346 17.5051H7.60999C7.91439 19.3279 8.77812 21.0061 10.1099 22.338C11.8031 24.0314 14.0518 24.9637 16.4452 24.9637H25.4059C25.3337 25.0398 25.2576 25.1159 25.1853 25.1921C22.731 27.639 19.4663 28.9937 15.9962 28.9937Z",
|
|
1623
|
+
fill: "currentColor"
|
|
1499
1624
|
}
|
|
1500
1625
|
) });
|
|
1501
1626
|
var WorldcoinIcon_default = WorldcoinIcon;
|
|
@@ -1616,8 +1741,8 @@ var QRPlaceholderIcon_default = QRPlaceholderIcon;
|
|
|
1616
1741
|
import { Fragment, jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1617
1742
|
var QRState = ({ qrData, showQR, setShowQR }) => {
|
|
1618
1743
|
const media = useMedia_default();
|
|
1619
|
-
const [copiedLink, setCopiedLink] =
|
|
1620
|
-
const copyLink =
|
|
1744
|
+
const [copiedLink, setCopiedLink] = useState3(false);
|
|
1745
|
+
const copyLink = useCallback2(() => {
|
|
1621
1746
|
copy(qrData ?? "");
|
|
1622
1747
|
setCopiedLink(true);
|
|
1623
1748
|
setTimeout(() => setCopiedLink(false), 2e3);
|
|
@@ -1705,10 +1830,10 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
|
|
|
1705
1830
|
},
|
|
1706
1831
|
"copied"
|
|
1707
1832
|
) }),
|
|
1708
|
-
/* @__PURE__ */ jsx11("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-
|
|
1833
|
+
/* @__PURE__ */ jsx11("div", { className: "relative inline-flex items-center justify-center rounded-2xl border border-f1f5f8 p-3 dark:border-f1f5f8/10", children: /* @__PURE__ */ jsx11("div", { className: "text-29343f dark:text-white", children: qrData ? (
|
|
1709
1834
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
1710
|
-
/* @__PURE__ */ jsx11("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ jsx11(QRCode_default, { data: qrData, size:
|
|
1711
|
-
) : /* @__PURE__ */ jsx11("div", { className: "flex size-[
|
|
1835
|
+
/* @__PURE__ */ jsx11("div", { onClick: copyLink, className: "cursor-pointer", children: /* @__PURE__ */ jsx11(QRCode_default, { data: qrData, size: 200 }) })
|
|
1836
|
+
) : /* @__PURE__ */ jsx11("div", { className: "flex size-[200px] items-center justify-center", children: /* @__PURE__ */ jsx11(QRPlaceholderIcon_default, { className: "size-[200px] animate-pulse" }) }) }) })
|
|
1712
1837
|
] })
|
|
1713
1838
|
] });
|
|
1714
1839
|
};
|
|
@@ -1716,15 +1841,15 @@ var QRState_default = QRState;
|
|
|
1716
1841
|
|
|
1717
1842
|
// src/components/IDKitWidget/States/WorldIDState.tsx
|
|
1718
1843
|
import { shallow } from "zustand/shallow";
|
|
1719
|
-
import { useEffect as
|
|
1844
|
+
import { useEffect as useEffect6, useState as useState4 } from "react";
|
|
1720
1845
|
|
|
1721
1846
|
// src/services/wld-bridge.ts
|
|
1722
|
-
import { useEffect as
|
|
1847
|
+
import { useEffect as useEffect5, useRef as useRef2 } from "react";
|
|
1723
1848
|
import { useWorldBridgeStore } from "@worldcoin/idkit-core";
|
|
1724
1849
|
var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, action_description, partner) => {
|
|
1725
|
-
const ref_verification_level =
|
|
1850
|
+
const ref_verification_level = useRef2(verification_level);
|
|
1726
1851
|
const { reset, result, connectorURI, createClient, pollForUpdates, verificationState, errorCode } = useWorldBridgeStore();
|
|
1727
|
-
|
|
1852
|
+
useEffect5(() => {
|
|
1728
1853
|
if (!connectorURI) {
|
|
1729
1854
|
void createClient({
|
|
1730
1855
|
app_id,
|
|
@@ -1747,7 +1872,7 @@ var useWorldBridge = (app_id, action, signal, bridge_url, verification_level, ac
|
|
|
1747
1872
|
connectorURI,
|
|
1748
1873
|
partner
|
|
1749
1874
|
]);
|
|
1750
|
-
|
|
1875
|
+
useEffect5(() => {
|
|
1751
1876
|
if (!connectorURI || result || errorCode) return;
|
|
1752
1877
|
const interval = setInterval(() => void pollForUpdates(), 3e3);
|
|
1753
1878
|
return () => clearInterval(interval);
|
|
@@ -1796,7 +1921,7 @@ var getOptions = (store) => ({
|
|
|
1796
1921
|
});
|
|
1797
1922
|
var WorldIDState = (props) => {
|
|
1798
1923
|
const media = useMedia_default();
|
|
1799
|
-
const [showQR, setShowQR] =
|
|
1924
|
+
const [showQR, setShowQR] = useState4(false);
|
|
1800
1925
|
const {
|
|
1801
1926
|
app_id,
|
|
1802
1927
|
action,
|
|
@@ -1818,8 +1943,8 @@ var WorldIDState = (props) => {
|
|
|
1818
1943
|
action_description,
|
|
1819
1944
|
partner
|
|
1820
1945
|
);
|
|
1821
|
-
|
|
1822
|
-
|
|
1946
|
+
useEffect6(() => reset, [reset]);
|
|
1947
|
+
useEffect6(() => {
|
|
1823
1948
|
if (verificationState === VerificationState.Failed) {
|
|
1824
1949
|
setStage("ERROR" /* ERROR */);
|
|
1825
1950
|
setErrorState({ code: errorCode ?? AppErrorCodes2.GenericError });
|
|
@@ -1844,22 +1969,16 @@ var WorldIDState = (props) => {
|
|
|
1844
1969
|
),
|
|
1845
1970
|
children: [
|
|
1846
1971
|
/* @__PURE__ */ jsxs9("div", { className: clsx_default(!show_modal ? "hidden" : ""), children: [
|
|
1847
|
-
/* @__PURE__ */ jsx13("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx13(WorldcoinIcon_default, { className: "
|
|
1848
|
-
/* @__PURE__ */ jsx13("p", { className: "
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
"Use your camera to scan the QR code. ",
|
|
1851
|
-
/* @__PURE__ */ jsx13("br", {}),
|
|
1852
|
-
" ",
|
|
1853
|
-
/* @__PURE__ */ jsx13("span", { className: "text-red-500", children: "Keep this window open after scanning." })
|
|
1854
|
-
] })
|
|
1972
|
+
/* @__PURE__ */ jsx13("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx13("div", { className: "flex size-14 items-center justify-center rounded-full border-[1.2px] border-solid border-[#EBECEF]", children: /* @__PURE__ */ jsx13(WorldcoinIcon_default, { className: "size-8 text-0d151d dark:text-white" }) }) }),
|
|
1973
|
+
/* @__PURE__ */ jsx13("p", { className: "text-2xl font-semibold text-gray-900 dark:text-white", children: __("Connect your World ID") }),
|
|
1974
|
+
/* @__PURE__ */ jsx13("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: __("Use phone camera to scan the QR code") })
|
|
1855
1975
|
] }),
|
|
1856
1976
|
/* @__PURE__ */ jsxs9("div", { className: "relative w-full", children: [
|
|
1857
1977
|
verificationState === VerificationState.WaitingForApp && /* @__PURE__ */ jsxs9("div", { className: "absolute inset-0 flex flex-col items-center justify-center space-y-6", children: [
|
|
1858
1978
|
/* @__PURE__ */ jsx13(LoadingIcon_default, { className: "size-6" }),
|
|
1859
1979
|
/* @__PURE__ */ jsxs9("div", { children: [
|
|
1860
|
-
/* @__PURE__ */ jsx13("p", { className: "font-
|
|
1861
|
-
/* @__PURE__ */ jsx13("p", { className: "text-sm text-657080", children: "Please continue in app" })
|
|
1862
|
-
/* @__PURE__ */ jsx13("p", { className: clsx_default(show_modal ? "" : "hidden", "mt-2 text-sm font-bold text-red-500"), children: "Don't close this window" })
|
|
1980
|
+
/* @__PURE__ */ jsx13("p", { className: "font-medium text-657080", children: __("Connecting...") }),
|
|
1981
|
+
/* @__PURE__ */ jsx13("p", { className: "text-sm font-light text-657080", children: __("Please continue in app") })
|
|
1863
1982
|
] })
|
|
1864
1983
|
] }),
|
|
1865
1984
|
/* @__PURE__ */ jsx13(
|
|
@@ -1881,7 +2000,7 @@ var WorldIDState_default = WorldIDState;
|
|
|
1881
2000
|
|
|
1882
2001
|
// src/components/IDKitWidget/BaseWidget.tsx
|
|
1883
2002
|
import * as Dialog from "@radix-ui/react-dialog";
|
|
1884
|
-
import { Fragment as Fragment2, useEffect as
|
|
2003
|
+
import { Fragment as Fragment2, useEffect as useEffect7, useMemo } from "react";
|
|
1885
2004
|
import { AnimatePresence as AnimatePresence2, motion as motion2 } from "framer-motion";
|
|
1886
2005
|
|
|
1887
2006
|
// src/components/IDKitWidget/States/HostAppVerificationState.tsx
|
|
@@ -1896,11 +2015,12 @@ var HostAppVerificationState_default = HostAppVerificationState;
|
|
|
1896
2015
|
|
|
1897
2016
|
// src/components/IDKitWidget/BaseWidget.tsx
|
|
1898
2017
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1899
|
-
var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions }) => ({
|
|
2018
|
+
var getParams2 = ({ open, processing, onOpenChange, stage, setStage, setOptions, setErrorState }) => ({
|
|
1900
2019
|
stage,
|
|
1901
2020
|
setStage,
|
|
1902
2021
|
processing,
|
|
1903
2022
|
setOptions,
|
|
2023
|
+
setErrorState,
|
|
1904
2024
|
isOpen: open,
|
|
1905
2025
|
onOpenChange
|
|
1906
2026
|
});
|
|
@@ -1912,8 +2032,8 @@ var IDKitWidget = ({
|
|
|
1912
2032
|
...config
|
|
1913
2033
|
}) => {
|
|
1914
2034
|
const media = useMedia_default();
|
|
1915
|
-
const { isOpen, onOpenChange, stage, setOptions } = idkit_default(getParams2, shallow2);
|
|
1916
|
-
|
|
2035
|
+
const { isOpen, onOpenChange, stage, setStage, setOptions, setErrorState } = idkit_default(getParams2, shallow2);
|
|
2036
|
+
useEffect7(() => {
|
|
1917
2037
|
if (config.action === "") {
|
|
1918
2038
|
throw new Error(__("Action cannot be an empty string."));
|
|
1919
2039
|
}
|
|
@@ -1933,7 +2053,7 @@ var IDKitWidget = ({
|
|
|
1933
2053
|
throw new Error(__("Invalid IDKitStage :stage.", { stage }));
|
|
1934
2054
|
}
|
|
1935
2055
|
}, [stage, show_modal]);
|
|
1936
|
-
const widgetContent = /* @__PURE__ */ jsxs11(
|
|
2056
|
+
const widgetContent = /* @__PURE__ */ jsxs11(ShadowHost, { mode: "open", id: "idkit-widget", children: [
|
|
1937
2057
|
/* @__PURE__ */ jsx15(Styles_default, {}),
|
|
1938
2058
|
/* @__PURE__ */ jsxs11(Toast.Provider, { children: [
|
|
1939
2059
|
/* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
|
|
@@ -1961,7 +2081,7 @@ var IDKitWidget = ({
|
|
|
1961
2081
|
};
|
|
1962
2082
|
return /* @__PURE__ */ jsxs11(Dialog.Root, { open: isOpen, onOpenChange, children: [
|
|
1963
2083
|
children?.({ open: () => onOpenChange(true) }),
|
|
1964
|
-
/* @__PURE__ */ jsx15(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ jsx15(Fragment2, { children: /* @__PURE__ */ jsx15(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs11(
|
|
2084
|
+
/* @__PURE__ */ jsx15(Dialog.Portal, { forceMount: true, children: /* @__PURE__ */ jsx15(Fragment2, { children: /* @__PURE__ */ jsx15(AnimatePresence2, { children: isOpen && /* @__PURE__ */ jsxs11(ShadowHost, { mode: "open", id: "idkit-widget", children: [
|
|
1965
2085
|
/* @__PURE__ */ jsx15(Styles_default, {}),
|
|
1966
2086
|
/* @__PURE__ */ jsxs11("div", { id: "modal", className: "fixed z-[9999] font-sans", children: [
|
|
1967
2087
|
/* @__PURE__ */ jsx15(Dialog.Overlay, { asChild: true, children: /* @__PURE__ */ jsx15(
|
|
@@ -1995,10 +2115,10 @@ var IDKitWidget = ({
|
|
|
1995
2115
|
animateMob: { translateY: 0 }
|
|
1996
2116
|
},
|
|
1997
2117
|
transition: { layout: { duration: 0.15 } },
|
|
1998
|
-
className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-
|
|
2118
|
+
className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-[24px]",
|
|
1999
2119
|
children: /* @__PURE__ */ jsxs11(Toast.Provider, { children: [
|
|
2000
2120
|
/* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
|
|
2001
|
-
/* @__PURE__ */ jsx15("div", { className: "mx-6
|
|
2121
|
+
/* @__PURE__ */ jsx15("div", { className: "mx-6 flex items-center justify-end", children: /* @__PURE__ */ jsx15(Dialog.Close, { className: "flex size-8 items-center justify-center rounded-full border-[1.2px] border-solid border-[#EBECEF] text-black dark:text-white", children: /* @__PURE__ */ jsx15(XMarkIcon_default, { className: "size-4" }) }) }),
|
|
2002
2122
|
/* @__PURE__ */ jsx15("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
|
|
2003
2123
|
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ jsx15(
|
|
2004
2124
|
"a",
|
|
@@ -2031,7 +2151,7 @@ import { verifyCloudProof } from "@worldcoin/idkit-core/backend";
|
|
|
2031
2151
|
import { VerificationLevel as VerificationLevel2, VerificationState as VerificationState3 } from "@worldcoin/idkit-core";
|
|
2032
2152
|
|
|
2033
2153
|
// src/hooks/useSession.ts
|
|
2034
|
-
import { useEffect as
|
|
2154
|
+
import { useEffect as useEffect8 } from "react";
|
|
2035
2155
|
import { useShallow } from "zustand/react/shallow";
|
|
2036
2156
|
import { VerificationState as VerificationState2 } from "@worldcoin/idkit-core";
|
|
2037
2157
|
import { useWorldBridgeStore as useWorldBridgeStore2 } from "@worldcoin/idkit-core";
|
|
@@ -2048,12 +2168,12 @@ function useSession(config) {
|
|
|
2048
2168
|
errorCode: state.errorCode
|
|
2049
2169
|
}))
|
|
2050
2170
|
);
|
|
2051
|
-
|
|
2171
|
+
useEffect8(() => {
|
|
2052
2172
|
if (verificationState === VerificationState2.PreparingClient && !connectorURI) {
|
|
2053
2173
|
void createClient(config);
|
|
2054
2174
|
}
|
|
2055
2175
|
}, [verificationState, connectorURI, createClient, config]);
|
|
2056
|
-
|
|
2176
|
+
useEffect8(() => {
|
|
2057
2177
|
if (TERMINAL_STATES.includes(verificationState)) return;
|
|
2058
2178
|
const interval = setInterval(() => {
|
|
2059
2179
|
void pollForUpdates();
|