@fiscozen/dialog 0.1.29 → 0.1.31
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/CHANGELOG.md +14 -0
- package/dist/dialog.css +2 -0
- package/dist/dialog.js +2073 -1538
- package/dist/dialog.umd.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/src/FzConfirmDialog.vue.d.ts +183 -41
- package/dist/src/FzDialog.vue.d.ts +24 -34
- package/dist/src/types.d.ts +0 -1
- package/package.json +11 -11
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/style.css +0 -1
package/dist/dialog.js
CHANGED
|
@@ -1,1556 +1,2091 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createSlots as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, onBeforeUnmount as d, onMounted as f, onUnmounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, vShow as y, watch as b, withCtx as x, withDirectives as S, withModifiers as C } from "vue";
|
|
2
|
+
import { FzButton as w, FzIconButton as T } from "@fiscozen/button";
|
|
3
3
|
new DOMRect(0, 0, window.innerWidth, window.innerHeight);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
});
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region ../composables/src/composables/useClickOutside.ts
|
|
6
|
+
function E(e, t, n) {
|
|
7
|
+
if (!e) throw Error("A target component has to be provided.");
|
|
8
|
+
if (!t) throw Error("A callback has to be provided.");
|
|
9
|
+
let r = (n) => {
|
|
10
|
+
!e.value || n.target === e.value || n.composedPath().includes(e.value) || typeof t == "function" && t();
|
|
11
|
+
};
|
|
12
|
+
n && b(n, (e, t) => {
|
|
13
|
+
t && t.removeEventListener("click", r), e?.addEventListener("click", r);
|
|
14
|
+
}), f(() => {
|
|
15
|
+
n || document.addEventListener("click", r);
|
|
16
|
+
}), d(() => {
|
|
17
|
+
if (n) {
|
|
18
|
+
n.value?.removeEventListener("click", r);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
document.removeEventListener("click", r);
|
|
22
|
+
});
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../composables/src/composables/useKeyUp.ts
|
|
26
|
+
function D(e, t) {
|
|
27
|
+
if (!e || typeof e != "function") throw Error("A callback has to be provided.");
|
|
28
|
+
let n = (t) => {
|
|
29
|
+
e(t);
|
|
30
|
+
};
|
|
31
|
+
f(() => {
|
|
32
|
+
if (!t) {
|
|
33
|
+
document.addEventListener("keyup", n);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
t.value.addEventListener("keyup", n);
|
|
37
|
+
}), d(() => {
|
|
38
|
+
if (!t) {
|
|
39
|
+
document.removeEventListener("keyup", n);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
t.value.removeEventListener("keyup", n);
|
|
43
|
+
});
|
|
42
44
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
},
|
|
877
|
-
|
|
878
|
-
},
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
},
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
45
|
+
var O = {
|
|
46
|
+
global: {
|
|
47
|
+
blue: {
|
|
48
|
+
50: {
|
|
49
|
+
value: "#eff1ff",
|
|
50
|
+
type: "color"
|
|
51
|
+
},
|
|
52
|
+
100: {
|
|
53
|
+
value: "#dee2ff",
|
|
54
|
+
type: "color"
|
|
55
|
+
},
|
|
56
|
+
200: {
|
|
57
|
+
value: "#bdc5ff",
|
|
58
|
+
type: "color"
|
|
59
|
+
},
|
|
60
|
+
300: {
|
|
61
|
+
value: "#9ca8ff",
|
|
62
|
+
type: "color"
|
|
63
|
+
},
|
|
64
|
+
400: {
|
|
65
|
+
value: "#7b8bff",
|
|
66
|
+
type: "color"
|
|
67
|
+
},
|
|
68
|
+
500: {
|
|
69
|
+
value: "#5a6eff",
|
|
70
|
+
type: "color"
|
|
71
|
+
},
|
|
72
|
+
600: {
|
|
73
|
+
value: "#4858cc",
|
|
74
|
+
type: "color"
|
|
75
|
+
},
|
|
76
|
+
700: {
|
|
77
|
+
value: "#364299",
|
|
78
|
+
type: "color"
|
|
79
|
+
},
|
|
80
|
+
800: {
|
|
81
|
+
value: "#242c66",
|
|
82
|
+
type: "color"
|
|
83
|
+
},
|
|
84
|
+
900: {
|
|
85
|
+
value: "#1b214c",
|
|
86
|
+
type: "color"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
purple: {
|
|
90
|
+
50: {
|
|
91
|
+
value: "#f8f4ff",
|
|
92
|
+
type: "color"
|
|
93
|
+
},
|
|
94
|
+
100: {
|
|
95
|
+
value: "#f0e9ff",
|
|
96
|
+
type: "color"
|
|
97
|
+
},
|
|
98
|
+
200: {
|
|
99
|
+
value: "#e1d3ff",
|
|
100
|
+
type: "color"
|
|
101
|
+
},
|
|
102
|
+
300: {
|
|
103
|
+
value: "#d2bdff",
|
|
104
|
+
type: "color"
|
|
105
|
+
},
|
|
106
|
+
400: {
|
|
107
|
+
value: "#c3a7ff",
|
|
108
|
+
type: "color"
|
|
109
|
+
},
|
|
110
|
+
500: {
|
|
111
|
+
value: "#b491ff",
|
|
112
|
+
type: "color"
|
|
113
|
+
},
|
|
114
|
+
600: {
|
|
115
|
+
value: "#9074cc",
|
|
116
|
+
type: "color"
|
|
117
|
+
},
|
|
118
|
+
700: {
|
|
119
|
+
value: "#6c5799",
|
|
120
|
+
type: "color"
|
|
121
|
+
},
|
|
122
|
+
800: {
|
|
123
|
+
value: "#483a66",
|
|
124
|
+
type: "color"
|
|
125
|
+
},
|
|
126
|
+
900: {
|
|
127
|
+
value: "#241d33",
|
|
128
|
+
type: "color"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
orange: {
|
|
132
|
+
50: {
|
|
133
|
+
value: "#fff2ef",
|
|
134
|
+
type: "color"
|
|
135
|
+
},
|
|
136
|
+
100: {
|
|
137
|
+
value: "#ffe4de",
|
|
138
|
+
type: "color"
|
|
139
|
+
},
|
|
140
|
+
200: {
|
|
141
|
+
value: "#ffc9bd",
|
|
142
|
+
type: "color"
|
|
143
|
+
},
|
|
144
|
+
300: {
|
|
145
|
+
value: "#ffae9c",
|
|
146
|
+
type: "color"
|
|
147
|
+
},
|
|
148
|
+
400: {
|
|
149
|
+
value: "#ff937b",
|
|
150
|
+
type: "color"
|
|
151
|
+
},
|
|
152
|
+
500: {
|
|
153
|
+
value: "#ff785a",
|
|
154
|
+
type: "color"
|
|
155
|
+
},
|
|
156
|
+
600: {
|
|
157
|
+
value: "#cc6048",
|
|
158
|
+
type: "color"
|
|
159
|
+
},
|
|
160
|
+
700: {
|
|
161
|
+
value: "#994836",
|
|
162
|
+
type: "color"
|
|
163
|
+
},
|
|
164
|
+
800: {
|
|
165
|
+
value: "#663024",
|
|
166
|
+
type: "color"
|
|
167
|
+
},
|
|
168
|
+
900: {
|
|
169
|
+
value: "#331812",
|
|
170
|
+
type: "color"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
pink: {
|
|
174
|
+
50: {
|
|
175
|
+
value: "#fff5f5",
|
|
176
|
+
type: "color"
|
|
177
|
+
},
|
|
178
|
+
100: {
|
|
179
|
+
value: "#ffe0e0",
|
|
180
|
+
type: "color"
|
|
181
|
+
},
|
|
182
|
+
200: {
|
|
183
|
+
value: "#ffcbcb",
|
|
184
|
+
type: "color"
|
|
185
|
+
},
|
|
186
|
+
300: {
|
|
187
|
+
value: "#ffc0c0",
|
|
188
|
+
type: "color"
|
|
189
|
+
},
|
|
190
|
+
400: {
|
|
191
|
+
value: "#ffabab",
|
|
192
|
+
type: "color"
|
|
193
|
+
},
|
|
194
|
+
500: {
|
|
195
|
+
value: "#ff9696",
|
|
196
|
+
type: "color"
|
|
197
|
+
},
|
|
198
|
+
600: {
|
|
199
|
+
value: "#cc7878",
|
|
200
|
+
type: "color"
|
|
201
|
+
},
|
|
202
|
+
700: {
|
|
203
|
+
value: "#995a5a",
|
|
204
|
+
type: "color"
|
|
205
|
+
},
|
|
206
|
+
800: {
|
|
207
|
+
value: "#663c3c",
|
|
208
|
+
type: "color"
|
|
209
|
+
},
|
|
210
|
+
900: {
|
|
211
|
+
value: "#331e1e",
|
|
212
|
+
type: "color"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
yellow: {
|
|
216
|
+
50: {
|
|
217
|
+
value: "#fffbf4",
|
|
218
|
+
type: "color"
|
|
219
|
+
},
|
|
220
|
+
100: {
|
|
221
|
+
value: "#fff3de",
|
|
222
|
+
type: "color"
|
|
223
|
+
},
|
|
224
|
+
200: {
|
|
225
|
+
value: "#ffebc8",
|
|
226
|
+
type: "color"
|
|
227
|
+
},
|
|
228
|
+
300: {
|
|
229
|
+
value: "#ffe7bd",
|
|
230
|
+
type: "color"
|
|
231
|
+
},
|
|
232
|
+
400: {
|
|
233
|
+
value: "#ffdfa7",
|
|
234
|
+
type: "color"
|
|
235
|
+
},
|
|
236
|
+
500: {
|
|
237
|
+
value: "#ffd791",
|
|
238
|
+
type: "color"
|
|
239
|
+
},
|
|
240
|
+
600: {
|
|
241
|
+
value: "#ccac74",
|
|
242
|
+
type: "color"
|
|
243
|
+
},
|
|
244
|
+
700: {
|
|
245
|
+
value: "#998157",
|
|
246
|
+
type: "color"
|
|
247
|
+
},
|
|
248
|
+
800: {
|
|
249
|
+
value: "#806c49",
|
|
250
|
+
type: "color"
|
|
251
|
+
},
|
|
252
|
+
900: {
|
|
253
|
+
value: "#4c402b",
|
|
254
|
+
type: "color"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
semantic: {
|
|
258
|
+
error: {
|
|
259
|
+
50: {
|
|
260
|
+
value: "#fef3f3",
|
|
261
|
+
type: "color"
|
|
262
|
+
},
|
|
263
|
+
100: {
|
|
264
|
+
value: "#f8baba",
|
|
265
|
+
type: "color"
|
|
266
|
+
},
|
|
267
|
+
200: {
|
|
268
|
+
value: "#f04242",
|
|
269
|
+
type: "color"
|
|
270
|
+
},
|
|
271
|
+
300: {
|
|
272
|
+
value: "#aa2f2f",
|
|
273
|
+
type: "color"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
warning: {
|
|
277
|
+
50: {
|
|
278
|
+
value: "#fff8f3",
|
|
279
|
+
type: "color"
|
|
280
|
+
},
|
|
281
|
+
100: {
|
|
282
|
+
value: "#ffdabd",
|
|
283
|
+
type: "color"
|
|
284
|
+
},
|
|
285
|
+
200: {
|
|
286
|
+
value: "#ffae4f",
|
|
287
|
+
type: "color"
|
|
288
|
+
},
|
|
289
|
+
300: {
|
|
290
|
+
value: "#b47b38",
|
|
291
|
+
type: "color"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
success: {
|
|
295
|
+
50: {
|
|
296
|
+
value: "#f2f8f6",
|
|
297
|
+
type: "color"
|
|
298
|
+
},
|
|
299
|
+
100: {
|
|
300
|
+
value: "#b5d8ce",
|
|
301
|
+
type: "color"
|
|
302
|
+
},
|
|
303
|
+
200: {
|
|
304
|
+
value: "#0fa88c",
|
|
305
|
+
type: "color"
|
|
306
|
+
},
|
|
307
|
+
300: {
|
|
308
|
+
value: "#0b7763",
|
|
309
|
+
type: "color"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
info: {
|
|
313
|
+
50: {
|
|
314
|
+
value: "#f3f7ff",
|
|
315
|
+
type: "color"
|
|
316
|
+
},
|
|
317
|
+
100: {
|
|
318
|
+
value: "#b4c8e1",
|
|
319
|
+
type: "color"
|
|
320
|
+
},
|
|
321
|
+
200: {
|
|
322
|
+
value: "#4e9fff",
|
|
323
|
+
type: "color"
|
|
324
|
+
},
|
|
325
|
+
300: {
|
|
326
|
+
value: "#3770b4",
|
|
327
|
+
type: "color"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
background: {
|
|
332
|
+
"white-smoke": {
|
|
333
|
+
value: "#f7f6f3",
|
|
334
|
+
type: "color"
|
|
335
|
+
},
|
|
336
|
+
seashell: {
|
|
337
|
+
value: "#f8ece7",
|
|
338
|
+
type: "color"
|
|
339
|
+
},
|
|
340
|
+
"pale-purple": {
|
|
341
|
+
value: "#f2e6ff",
|
|
342
|
+
type: "color"
|
|
343
|
+
},
|
|
344
|
+
"alice-blue": {
|
|
345
|
+
value: "#ecf2fc",
|
|
346
|
+
type: "color"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
grey: {
|
|
350
|
+
100: {
|
|
351
|
+
value: "#e9edf0",
|
|
352
|
+
type: "color"
|
|
353
|
+
},
|
|
354
|
+
200: {
|
|
355
|
+
value: "#d1dde6",
|
|
356
|
+
type: "color"
|
|
357
|
+
},
|
|
358
|
+
300: {
|
|
359
|
+
value: "#9da9b2",
|
|
360
|
+
type: "color"
|
|
361
|
+
},
|
|
362
|
+
400: {
|
|
363
|
+
value: "#6e777e",
|
|
364
|
+
type: "color"
|
|
365
|
+
},
|
|
366
|
+
500: {
|
|
367
|
+
value: "#596167",
|
|
368
|
+
type: "color"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
core: {
|
|
372
|
+
white: {
|
|
373
|
+
value: "#ffffff",
|
|
374
|
+
type: "color"
|
|
375
|
+
},
|
|
376
|
+
black: {
|
|
377
|
+
value: "#2c282f",
|
|
378
|
+
type: "color"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
"font-sans": {
|
|
382
|
+
"sharp-grotesk": {
|
|
383
|
+
value: "\"Sharp Grotesk\", sans-serif",
|
|
384
|
+
type: "fontFamilies"
|
|
385
|
+
},
|
|
386
|
+
inter: {
|
|
387
|
+
value: "\"Inter\", sans-serif",
|
|
388
|
+
type: "fontFamilies"
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
font: {
|
|
392
|
+
light: {
|
|
393
|
+
value: "300",
|
|
394
|
+
type: "fontWeights"
|
|
395
|
+
},
|
|
396
|
+
normal: {
|
|
397
|
+
value: "400",
|
|
398
|
+
type: "fontWeights"
|
|
399
|
+
},
|
|
400
|
+
medium: {
|
|
401
|
+
value: "500",
|
|
402
|
+
type: "fontWeights"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
spacing: {
|
|
406
|
+
0: {
|
|
407
|
+
value: "0px",
|
|
408
|
+
type: "spacing"
|
|
409
|
+
},
|
|
410
|
+
1: {
|
|
411
|
+
value: "1px",
|
|
412
|
+
type: "spacing"
|
|
413
|
+
},
|
|
414
|
+
2: {
|
|
415
|
+
value: "2px",
|
|
416
|
+
type: "spacing"
|
|
417
|
+
},
|
|
418
|
+
4: {
|
|
419
|
+
value: "4px",
|
|
420
|
+
type: "spacing"
|
|
421
|
+
},
|
|
422
|
+
6: {
|
|
423
|
+
value: "6px",
|
|
424
|
+
type: "spacing"
|
|
425
|
+
},
|
|
426
|
+
8: {
|
|
427
|
+
value: "8px",
|
|
428
|
+
type: "spacing"
|
|
429
|
+
},
|
|
430
|
+
10: {
|
|
431
|
+
value: "10px",
|
|
432
|
+
type: "spacing"
|
|
433
|
+
},
|
|
434
|
+
12: {
|
|
435
|
+
value: "12px",
|
|
436
|
+
type: "spacing"
|
|
437
|
+
},
|
|
438
|
+
14: {
|
|
439
|
+
value: "14px",
|
|
440
|
+
type: "spacing"
|
|
441
|
+
},
|
|
442
|
+
16: {
|
|
443
|
+
value: "16px",
|
|
444
|
+
type: "spacing"
|
|
445
|
+
},
|
|
446
|
+
20: {
|
|
447
|
+
value: "20px",
|
|
448
|
+
type: "spacing"
|
|
449
|
+
},
|
|
450
|
+
24: {
|
|
451
|
+
value: "24px",
|
|
452
|
+
type: "spacing"
|
|
453
|
+
},
|
|
454
|
+
28: {
|
|
455
|
+
value: "28px",
|
|
456
|
+
type: "spacing"
|
|
457
|
+
},
|
|
458
|
+
32: {
|
|
459
|
+
value: "32px",
|
|
460
|
+
type: "spacing"
|
|
461
|
+
},
|
|
462
|
+
36: {
|
|
463
|
+
value: "36px",
|
|
464
|
+
type: "spacing"
|
|
465
|
+
},
|
|
466
|
+
40: {
|
|
467
|
+
value: "40px",
|
|
468
|
+
type: "spacing"
|
|
469
|
+
},
|
|
470
|
+
44: {
|
|
471
|
+
value: "44px",
|
|
472
|
+
type: "spacing"
|
|
473
|
+
},
|
|
474
|
+
48: {
|
|
475
|
+
value: "48px",
|
|
476
|
+
type: "spacing"
|
|
477
|
+
},
|
|
478
|
+
56: {
|
|
479
|
+
value: "56px",
|
|
480
|
+
type: "spacing"
|
|
481
|
+
},
|
|
482
|
+
64: {
|
|
483
|
+
value: "64px",
|
|
484
|
+
type: "spacing"
|
|
485
|
+
},
|
|
486
|
+
80: {
|
|
487
|
+
value: "80px",
|
|
488
|
+
type: "spacing"
|
|
489
|
+
},
|
|
490
|
+
96: {
|
|
491
|
+
value: "96px",
|
|
492
|
+
type: "spacing"
|
|
493
|
+
},
|
|
494
|
+
112: {
|
|
495
|
+
value: "112px",
|
|
496
|
+
type: "spacing"
|
|
497
|
+
},
|
|
498
|
+
128: {
|
|
499
|
+
value: "128px",
|
|
500
|
+
type: "spacing"
|
|
501
|
+
},
|
|
502
|
+
144: {
|
|
503
|
+
value: "144px",
|
|
504
|
+
type: "spacing"
|
|
505
|
+
},
|
|
506
|
+
160: {
|
|
507
|
+
value: "160px",
|
|
508
|
+
type: "spacing"
|
|
509
|
+
},
|
|
510
|
+
176: {
|
|
511
|
+
value: "176px",
|
|
512
|
+
type: "spacing"
|
|
513
|
+
},
|
|
514
|
+
192: {
|
|
515
|
+
value: "192px",
|
|
516
|
+
type: "spacing"
|
|
517
|
+
},
|
|
518
|
+
208: {
|
|
519
|
+
value: "208px",
|
|
520
|
+
type: "spacing"
|
|
521
|
+
},
|
|
522
|
+
224: {
|
|
523
|
+
value: "224px",
|
|
524
|
+
type: "spacing"
|
|
525
|
+
},
|
|
526
|
+
240: {
|
|
527
|
+
value: "240px",
|
|
528
|
+
type: "spacing"
|
|
529
|
+
},
|
|
530
|
+
256: {
|
|
531
|
+
value: "256px",
|
|
532
|
+
type: "spacing"
|
|
533
|
+
},
|
|
534
|
+
288: {
|
|
535
|
+
value: "288px",
|
|
536
|
+
type: "spacing"
|
|
537
|
+
},
|
|
538
|
+
320: {
|
|
539
|
+
value: "320px",
|
|
540
|
+
type: "spacing"
|
|
541
|
+
},
|
|
542
|
+
384: {
|
|
543
|
+
value: "384px",
|
|
544
|
+
type: "spacing"
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
border: {
|
|
548
|
+
0: {
|
|
549
|
+
value: "0px",
|
|
550
|
+
type: "borderWidth"
|
|
551
|
+
},
|
|
552
|
+
1: {
|
|
553
|
+
value: "1px",
|
|
554
|
+
type: "borderWidth"
|
|
555
|
+
},
|
|
556
|
+
2: {
|
|
557
|
+
value: "2px",
|
|
558
|
+
type: "borderWidth"
|
|
559
|
+
},
|
|
560
|
+
4: {
|
|
561
|
+
value: "4px",
|
|
562
|
+
type: "borderWidth"
|
|
563
|
+
},
|
|
564
|
+
8: {
|
|
565
|
+
value: "8px",
|
|
566
|
+
type: "borderWidth"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
rounded: {
|
|
570
|
+
none: {
|
|
571
|
+
value: "0px",
|
|
572
|
+
type: "borderRadius"
|
|
573
|
+
},
|
|
574
|
+
sm: {
|
|
575
|
+
value: "2px",
|
|
576
|
+
type: "borderRadius"
|
|
577
|
+
},
|
|
578
|
+
base: {
|
|
579
|
+
value: "4px",
|
|
580
|
+
type: "borderRadius"
|
|
581
|
+
},
|
|
582
|
+
md: {
|
|
583
|
+
value: "6px",
|
|
584
|
+
type: "borderRadius"
|
|
585
|
+
},
|
|
586
|
+
lg: {
|
|
587
|
+
value: "8px",
|
|
588
|
+
type: "borderRadius"
|
|
589
|
+
},
|
|
590
|
+
xl: {
|
|
591
|
+
value: "12px",
|
|
592
|
+
type: "borderRadius"
|
|
593
|
+
},
|
|
594
|
+
"2xl": {
|
|
595
|
+
value: "16px",
|
|
596
|
+
type: "borderRadius"
|
|
597
|
+
},
|
|
598
|
+
"3xl": {
|
|
599
|
+
value: "24px",
|
|
600
|
+
type: "borderRadius"
|
|
601
|
+
},
|
|
602
|
+
full: {
|
|
603
|
+
value: "9999px",
|
|
604
|
+
type: "borderRadius"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
breakpoint: {
|
|
608
|
+
xs: {
|
|
609
|
+
value: "376px",
|
|
610
|
+
type: "sizing"
|
|
611
|
+
},
|
|
612
|
+
sm: {
|
|
613
|
+
value: "640px",
|
|
614
|
+
type: "sizing"
|
|
615
|
+
},
|
|
616
|
+
md: {
|
|
617
|
+
value: "768px",
|
|
618
|
+
type: "sizing"
|
|
619
|
+
},
|
|
620
|
+
lg: {
|
|
621
|
+
value: "1024px",
|
|
622
|
+
type: "sizing"
|
|
623
|
+
},
|
|
624
|
+
xl: {
|
|
625
|
+
value: "1280px",
|
|
626
|
+
type: "sizing"
|
|
627
|
+
},
|
|
628
|
+
"2xl": {
|
|
629
|
+
value: "1440px",
|
|
630
|
+
type: "sizing"
|
|
631
|
+
},
|
|
632
|
+
"3xl": {
|
|
633
|
+
value: "1536px",
|
|
634
|
+
type: "sizing"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
shadow: {
|
|
638
|
+
none: {
|
|
639
|
+
value: {
|
|
640
|
+
color: "#000000",
|
|
641
|
+
type: "dropShadow",
|
|
642
|
+
x: "0",
|
|
643
|
+
y: "0",
|
|
644
|
+
blur: "0",
|
|
645
|
+
spread: "0"
|
|
646
|
+
},
|
|
647
|
+
type: "boxShadow"
|
|
648
|
+
},
|
|
649
|
+
sm: {
|
|
650
|
+
value: {
|
|
651
|
+
color: "#0000000d",
|
|
652
|
+
type: "dropShadow",
|
|
653
|
+
x: "0",
|
|
654
|
+
y: "1",
|
|
655
|
+
blur: "2",
|
|
656
|
+
spread: "0"
|
|
657
|
+
},
|
|
658
|
+
type: "boxShadow"
|
|
659
|
+
},
|
|
660
|
+
base: {
|
|
661
|
+
value: [{
|
|
662
|
+
color: "#0000000f",
|
|
663
|
+
type: "dropShadow",
|
|
664
|
+
x: "0",
|
|
665
|
+
y: "1",
|
|
666
|
+
blur: "2",
|
|
667
|
+
spread: "0"
|
|
668
|
+
}, {
|
|
669
|
+
color: "#0000001a",
|
|
670
|
+
type: "dropShadow",
|
|
671
|
+
x: "0",
|
|
672
|
+
y: "1",
|
|
673
|
+
blur: "3",
|
|
674
|
+
spread: "0"
|
|
675
|
+
}],
|
|
676
|
+
type: "boxShadow"
|
|
677
|
+
},
|
|
678
|
+
md: {
|
|
679
|
+
value: [{
|
|
680
|
+
color: "#0000000f",
|
|
681
|
+
type: "dropShadow",
|
|
682
|
+
x: "0",
|
|
683
|
+
y: "2",
|
|
684
|
+
blur: "4",
|
|
685
|
+
spread: "-1"
|
|
686
|
+
}, {
|
|
687
|
+
color: "#0000001a",
|
|
688
|
+
type: "dropShadow",
|
|
689
|
+
x: "0",
|
|
690
|
+
y: "4",
|
|
691
|
+
blur: "6",
|
|
692
|
+
spread: "-1"
|
|
693
|
+
}],
|
|
694
|
+
type: "boxShadow"
|
|
695
|
+
},
|
|
696
|
+
lg: {
|
|
697
|
+
value: [{
|
|
698
|
+
color: "#0000000d",
|
|
699
|
+
type: "dropShadow",
|
|
700
|
+
x: "0",
|
|
701
|
+
y: "4",
|
|
702
|
+
blur: "6",
|
|
703
|
+
spread: "-2"
|
|
704
|
+
}, {
|
|
705
|
+
color: "#0000001a",
|
|
706
|
+
type: "dropShadow",
|
|
707
|
+
x: "0",
|
|
708
|
+
y: "10",
|
|
709
|
+
blur: "15",
|
|
710
|
+
spread: "-3"
|
|
711
|
+
}],
|
|
712
|
+
type: "boxShadow"
|
|
713
|
+
},
|
|
714
|
+
xl: {
|
|
715
|
+
value: [{
|
|
716
|
+
color: "#0000000a",
|
|
717
|
+
type: "dropShadow",
|
|
718
|
+
x: "0",
|
|
719
|
+
y: "10",
|
|
720
|
+
blur: "10",
|
|
721
|
+
spread: "-5"
|
|
722
|
+
}, {
|
|
723
|
+
color: "#0000001a",
|
|
724
|
+
type: "dropShadow",
|
|
725
|
+
x: "0",
|
|
726
|
+
y: "20",
|
|
727
|
+
blur: "25",
|
|
728
|
+
spread: "-5"
|
|
729
|
+
}],
|
|
730
|
+
type: "boxShadow"
|
|
731
|
+
},
|
|
732
|
+
"2xl": {
|
|
733
|
+
value: {
|
|
734
|
+
color: "#00000040",
|
|
735
|
+
type: "dropShadow",
|
|
736
|
+
x: "0",
|
|
737
|
+
y: "25",
|
|
738
|
+
blur: "50",
|
|
739
|
+
spread: "-12"
|
|
740
|
+
},
|
|
741
|
+
type: "boxShadow"
|
|
742
|
+
},
|
|
743
|
+
inner: {
|
|
744
|
+
value: {
|
|
745
|
+
color: "#0000000f",
|
|
746
|
+
type: "innerShadow",
|
|
747
|
+
x: "0",
|
|
748
|
+
y: "2",
|
|
749
|
+
blur: "4",
|
|
750
|
+
spread: "0"
|
|
751
|
+
},
|
|
752
|
+
type: "boxShadow"
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
underline: {
|
|
756
|
+
value: "underline",
|
|
757
|
+
type: "textDecoration"
|
|
758
|
+
},
|
|
759
|
+
text: {
|
|
760
|
+
xs: {
|
|
761
|
+
value: "12px",
|
|
762
|
+
type: "fontSizes"
|
|
763
|
+
},
|
|
764
|
+
sm: {
|
|
765
|
+
value: "14px",
|
|
766
|
+
type: "fontSizes"
|
|
767
|
+
},
|
|
768
|
+
base: {
|
|
769
|
+
value: "16px",
|
|
770
|
+
type: "fontSizes"
|
|
771
|
+
},
|
|
772
|
+
lg: {
|
|
773
|
+
value: "18px",
|
|
774
|
+
type: "fontSizes"
|
|
775
|
+
},
|
|
776
|
+
xl: {
|
|
777
|
+
value: "20px",
|
|
778
|
+
type: "fontSizes"
|
|
779
|
+
},
|
|
780
|
+
"2xl": {
|
|
781
|
+
value: "24px",
|
|
782
|
+
type: "fontSizes"
|
|
783
|
+
},
|
|
784
|
+
"3xl": {
|
|
785
|
+
value: "30px",
|
|
786
|
+
type: "fontSizes"
|
|
787
|
+
},
|
|
788
|
+
"4xl": {
|
|
789
|
+
value: "36px",
|
|
790
|
+
type: "fontSizes"
|
|
791
|
+
},
|
|
792
|
+
"5xl": {
|
|
793
|
+
value: "48px",
|
|
794
|
+
type: "fontSizes"
|
|
795
|
+
},
|
|
796
|
+
"6xl": {
|
|
797
|
+
value: "60px",
|
|
798
|
+
type: "fontSizes"
|
|
799
|
+
},
|
|
800
|
+
"7xl": {
|
|
801
|
+
value: "72px",
|
|
802
|
+
type: "fontSizes"
|
|
803
|
+
},
|
|
804
|
+
"8xl": {
|
|
805
|
+
value: "96px",
|
|
806
|
+
type: "fontSizes"
|
|
807
|
+
},
|
|
808
|
+
"9xl": {
|
|
809
|
+
value: "128px",
|
|
810
|
+
type: "fontSizes"
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
leading: {
|
|
814
|
+
xs: {
|
|
815
|
+
value: "16px",
|
|
816
|
+
type: "lineHeights"
|
|
817
|
+
},
|
|
818
|
+
sm: {
|
|
819
|
+
value: "18px",
|
|
820
|
+
type: "lineHeights"
|
|
821
|
+
},
|
|
822
|
+
base: {
|
|
823
|
+
value: "20px",
|
|
824
|
+
type: "lineHeights"
|
|
825
|
+
},
|
|
826
|
+
lg: {
|
|
827
|
+
value: "24px",
|
|
828
|
+
type: "lineHeights"
|
|
829
|
+
},
|
|
830
|
+
xl: {
|
|
831
|
+
value: "28px",
|
|
832
|
+
type: "lineHeights"
|
|
833
|
+
},
|
|
834
|
+
"2xl": {
|
|
835
|
+
value: "32px",
|
|
836
|
+
type: "lineHeights"
|
|
837
|
+
},
|
|
838
|
+
"3xl": {
|
|
839
|
+
value: "36px",
|
|
840
|
+
type: "lineHeights"
|
|
841
|
+
},
|
|
842
|
+
"4xl": {
|
|
843
|
+
value: "40px",
|
|
844
|
+
type: "lineHeights"
|
|
845
|
+
},
|
|
846
|
+
"5xl": {
|
|
847
|
+
value: "48px",
|
|
848
|
+
type: "lineHeights"
|
|
849
|
+
},
|
|
850
|
+
"6xl": {
|
|
851
|
+
value: "60px",
|
|
852
|
+
type: "lineHeights"
|
|
853
|
+
},
|
|
854
|
+
"7xl": {
|
|
855
|
+
value: "72px",
|
|
856
|
+
type: "lineHeights"
|
|
857
|
+
},
|
|
858
|
+
"8xl": {
|
|
859
|
+
value: "96px",
|
|
860
|
+
type: "lineHeights"
|
|
861
|
+
},
|
|
862
|
+
"9xl": {
|
|
863
|
+
value: "128px",
|
|
864
|
+
type: "lineHeights"
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
alias: {
|
|
869
|
+
avatar: {
|
|
870
|
+
initials: {
|
|
871
|
+
"background-color": {
|
|
872
|
+
value: "{core.black}",
|
|
873
|
+
type: "color"
|
|
874
|
+
},
|
|
875
|
+
color: {
|
|
876
|
+
value: "{core.white}",
|
|
877
|
+
type: "color"
|
|
878
|
+
},
|
|
879
|
+
spacing: {
|
|
880
|
+
value: "{spacing.32}",
|
|
881
|
+
type: "spacing"
|
|
882
|
+
},
|
|
883
|
+
"border-radius": {
|
|
884
|
+
value: "{rounded.full}",
|
|
885
|
+
type: "borderRadius"
|
|
886
|
+
},
|
|
887
|
+
"font-family": {
|
|
888
|
+
value: "{font-sans.inter}",
|
|
889
|
+
type: "fontFamilies"
|
|
890
|
+
},
|
|
891
|
+
"font-weight": {
|
|
892
|
+
value: "{font.normal}",
|
|
893
|
+
type: "fontWeights"
|
|
894
|
+
},
|
|
895
|
+
"font-size": {
|
|
896
|
+
value: "{text.sm}",
|
|
897
|
+
type: "fontSizes"
|
|
898
|
+
},
|
|
899
|
+
"line-height": {
|
|
900
|
+
value: "{leading.sm}",
|
|
901
|
+
type: "lineHeights"
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
image: {
|
|
905
|
+
"border-radius": {
|
|
906
|
+
value: "{rounded.full}",
|
|
907
|
+
type: "borderRadius"
|
|
908
|
+
},
|
|
909
|
+
sm: {
|
|
910
|
+
value: "{spacing.16}",
|
|
911
|
+
type: "spacing"
|
|
912
|
+
},
|
|
913
|
+
md: {
|
|
914
|
+
value: "{spacing.24}",
|
|
915
|
+
type: "spacing"
|
|
916
|
+
},
|
|
917
|
+
lg: {
|
|
918
|
+
value: "{spacing.32}",
|
|
919
|
+
type: "spacing"
|
|
920
|
+
},
|
|
921
|
+
xl: {
|
|
922
|
+
value: "{spacing.40}",
|
|
923
|
+
type: "spacing"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
"nav-link": {
|
|
928
|
+
spacing: {
|
|
929
|
+
value: "{spacing.32}",
|
|
930
|
+
type: "spacing"
|
|
931
|
+
},
|
|
932
|
+
"border-radius": {
|
|
933
|
+
value: "{rounded.base}",
|
|
934
|
+
type: "borderRadius"
|
|
935
|
+
},
|
|
936
|
+
"font-family": {
|
|
937
|
+
value: "{font-sans.inter}",
|
|
938
|
+
type: "fontFamilies"
|
|
939
|
+
},
|
|
940
|
+
"font-weight": {
|
|
941
|
+
value: "{font.medium}",
|
|
942
|
+
type: "fontWeights"
|
|
943
|
+
},
|
|
944
|
+
"line-height": {
|
|
945
|
+
value: "{leading.sm}",
|
|
946
|
+
type: "lineHeights"
|
|
947
|
+
},
|
|
948
|
+
"font-size": {
|
|
949
|
+
value: "{text.sm}",
|
|
950
|
+
type: "fontSizes"
|
|
951
|
+
},
|
|
952
|
+
"background-color": {
|
|
953
|
+
default: {
|
|
954
|
+
value: "none",
|
|
955
|
+
type: "color"
|
|
956
|
+
},
|
|
957
|
+
hover: {
|
|
958
|
+
value: "{background.alice-blue}",
|
|
959
|
+
type: "color"
|
|
960
|
+
},
|
|
961
|
+
pressed: {
|
|
962
|
+
value: "{background.alice-blue}",
|
|
963
|
+
type: "color"
|
|
964
|
+
},
|
|
965
|
+
focus: {
|
|
966
|
+
value: "{background.alice-blue}",
|
|
967
|
+
type: "color"
|
|
968
|
+
},
|
|
969
|
+
disabled: {
|
|
970
|
+
value: "none",
|
|
971
|
+
type: "color"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
color: {
|
|
975
|
+
default: {
|
|
976
|
+
value: "{grey.500}",
|
|
977
|
+
type: "color"
|
|
978
|
+
},
|
|
979
|
+
hover: {
|
|
980
|
+
value: "{blue.500}",
|
|
981
|
+
type: "color"
|
|
982
|
+
},
|
|
983
|
+
pressed: {
|
|
984
|
+
value: "{blue.500}",
|
|
985
|
+
type: "color"
|
|
986
|
+
},
|
|
987
|
+
focus: {
|
|
988
|
+
value: "{blue.500}",
|
|
989
|
+
type: "color"
|
|
990
|
+
},
|
|
991
|
+
disabled: {
|
|
992
|
+
value: "{grey.100}",
|
|
993
|
+
type: "color"
|
|
994
|
+
}
|
|
995
|
+
},
|
|
996
|
+
border: {
|
|
997
|
+
default: {
|
|
998
|
+
value: "none",
|
|
999
|
+
type: "color"
|
|
1000
|
+
},
|
|
1001
|
+
hover: {
|
|
1002
|
+
value: "none",
|
|
1003
|
+
type: "color"
|
|
1004
|
+
},
|
|
1005
|
+
pressed: {
|
|
1006
|
+
value: "none",
|
|
1007
|
+
type: "color"
|
|
1008
|
+
},
|
|
1009
|
+
focus: {
|
|
1010
|
+
value: "{blue.500}",
|
|
1011
|
+
type: "color"
|
|
1012
|
+
},
|
|
1013
|
+
disabled: {
|
|
1014
|
+
value: "none",
|
|
1015
|
+
type: "color"
|
|
1016
|
+
}
|
|
1017
|
+
},
|
|
1018
|
+
"border-width": {
|
|
1019
|
+
default: {
|
|
1020
|
+
value: "none",
|
|
1021
|
+
type: "borderWidth"
|
|
1022
|
+
},
|
|
1023
|
+
hover: {
|
|
1024
|
+
value: "none",
|
|
1025
|
+
type: "borderWidth"
|
|
1026
|
+
},
|
|
1027
|
+
pressed: {
|
|
1028
|
+
value: "none",
|
|
1029
|
+
type: "borderWidth"
|
|
1030
|
+
},
|
|
1031
|
+
focus: {
|
|
1032
|
+
value: "{border.1}",
|
|
1033
|
+
type: "borderWidth"
|
|
1034
|
+
},
|
|
1035
|
+
disabled: {
|
|
1036
|
+
value: "none",
|
|
1037
|
+
type: "borderWidth"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"box-shadow": {
|
|
1041
|
+
default: {
|
|
1042
|
+
value: "{shadow.none}",
|
|
1043
|
+
type: "boxShadow"
|
|
1044
|
+
},
|
|
1045
|
+
hover: {
|
|
1046
|
+
value: "{shadow.none}",
|
|
1047
|
+
type: "boxShadow"
|
|
1048
|
+
},
|
|
1049
|
+
pressed: {
|
|
1050
|
+
value: "{shadow.inner}",
|
|
1051
|
+
type: "boxShadow"
|
|
1052
|
+
},
|
|
1053
|
+
focus: {
|
|
1054
|
+
value: "none",
|
|
1055
|
+
type: "boxShadow"
|
|
1056
|
+
},
|
|
1057
|
+
disabled: {
|
|
1058
|
+
value: "none",
|
|
1059
|
+
type: "boxShadow"
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"icon-button": {
|
|
1064
|
+
button: {
|
|
1065
|
+
sm: {
|
|
1066
|
+
value: "{spacing.28}",
|
|
1067
|
+
type: "spacing"
|
|
1068
|
+
},
|
|
1069
|
+
md: {
|
|
1070
|
+
value: "{spacing.32}",
|
|
1071
|
+
type: "spacing"
|
|
1072
|
+
},
|
|
1073
|
+
lg: {
|
|
1074
|
+
value: "{spacing.40}",
|
|
1075
|
+
type: "spacing"
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
icon: {
|
|
1079
|
+
sm: {
|
|
1080
|
+
value: "{spacing.16}",
|
|
1081
|
+
type: "spacing"
|
|
1082
|
+
},
|
|
1083
|
+
md: {
|
|
1084
|
+
value: "{spacing.20}",
|
|
1085
|
+
type: "spacing"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
primary: {
|
|
1089
|
+
"background-color": {
|
|
1090
|
+
default: {
|
|
1091
|
+
value: "{blue.500}",
|
|
1092
|
+
type: "color"
|
|
1093
|
+
},
|
|
1094
|
+
hover: {
|
|
1095
|
+
value: "{blue.600}",
|
|
1096
|
+
type: "color"
|
|
1097
|
+
},
|
|
1098
|
+
pressed: {
|
|
1099
|
+
value: "{blue.600}",
|
|
1100
|
+
type: "color"
|
|
1101
|
+
},
|
|
1102
|
+
focus: {
|
|
1103
|
+
value: "{blue.500}",
|
|
1104
|
+
type: "color"
|
|
1105
|
+
},
|
|
1106
|
+
disabled: {
|
|
1107
|
+
value: "{blue.200}",
|
|
1108
|
+
type: "color"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
color: {
|
|
1112
|
+
default: {
|
|
1113
|
+
value: "{core.white}",
|
|
1114
|
+
type: "color"
|
|
1115
|
+
},
|
|
1116
|
+
hover: {
|
|
1117
|
+
value: "{core.white}",
|
|
1118
|
+
type: "color"
|
|
1119
|
+
},
|
|
1120
|
+
pressed: {
|
|
1121
|
+
value: "{core.white}",
|
|
1122
|
+
type: "color"
|
|
1123
|
+
},
|
|
1124
|
+
focus: {
|
|
1125
|
+
value: "{core.white}",
|
|
1126
|
+
type: "color"
|
|
1127
|
+
},
|
|
1128
|
+
disabled: {
|
|
1129
|
+
value: "{core.white}",
|
|
1130
|
+
type: "color"
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
border: {
|
|
1134
|
+
default: {
|
|
1135
|
+
value: "none",
|
|
1136
|
+
type: "color"
|
|
1137
|
+
},
|
|
1138
|
+
hover: {
|
|
1139
|
+
value: "none",
|
|
1140
|
+
type: "color"
|
|
1141
|
+
},
|
|
1142
|
+
pressed: {
|
|
1143
|
+
value: "none",
|
|
1144
|
+
type: "color"
|
|
1145
|
+
},
|
|
1146
|
+
focus: {
|
|
1147
|
+
value: "{blue.600}",
|
|
1148
|
+
type: "color"
|
|
1149
|
+
},
|
|
1150
|
+
disabled: {
|
|
1151
|
+
value: "none",
|
|
1152
|
+
type: "color"
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
"border-width": {
|
|
1156
|
+
default: {
|
|
1157
|
+
value: "none",
|
|
1158
|
+
type: "borderWidth"
|
|
1159
|
+
},
|
|
1160
|
+
hover: {
|
|
1161
|
+
value: "none",
|
|
1162
|
+
type: "borderWidth"
|
|
1163
|
+
},
|
|
1164
|
+
pressed: {
|
|
1165
|
+
value: "none",
|
|
1166
|
+
type: "borderWidth"
|
|
1167
|
+
},
|
|
1168
|
+
focus: {
|
|
1169
|
+
value: "{border.1}",
|
|
1170
|
+
type: "borderWidth"
|
|
1171
|
+
},
|
|
1172
|
+
disabled: {
|
|
1173
|
+
value: "none",
|
|
1174
|
+
type: "borderWidth"
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
secondary: {
|
|
1179
|
+
"background-color": {
|
|
1180
|
+
default: {
|
|
1181
|
+
value: "none",
|
|
1182
|
+
type: "color"
|
|
1183
|
+
},
|
|
1184
|
+
hover: {
|
|
1185
|
+
value: "{grey.100}",
|
|
1186
|
+
type: "color"
|
|
1187
|
+
},
|
|
1188
|
+
pressed: {
|
|
1189
|
+
value: "{grey.100}",
|
|
1190
|
+
type: "color"
|
|
1191
|
+
},
|
|
1192
|
+
focus: {
|
|
1193
|
+
value: "none",
|
|
1194
|
+
type: "color"
|
|
1195
|
+
},
|
|
1196
|
+
disabled: {
|
|
1197
|
+
value: "none",
|
|
1198
|
+
type: "color"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
color: {
|
|
1202
|
+
default: {
|
|
1203
|
+
value: "{grey.500}",
|
|
1204
|
+
type: "color"
|
|
1205
|
+
},
|
|
1206
|
+
hover: {
|
|
1207
|
+
value: "{grey.500}",
|
|
1208
|
+
type: "color"
|
|
1209
|
+
},
|
|
1210
|
+
pressed: {
|
|
1211
|
+
value: "{grey.500}",
|
|
1212
|
+
type: "color"
|
|
1213
|
+
},
|
|
1214
|
+
focus: {
|
|
1215
|
+
value: "{grey.500}",
|
|
1216
|
+
type: "color"
|
|
1217
|
+
},
|
|
1218
|
+
disabled: {
|
|
1219
|
+
value: "{grey.100}",
|
|
1220
|
+
type: "color"
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
border: {
|
|
1224
|
+
default: {
|
|
1225
|
+
value: "{grey.200}",
|
|
1226
|
+
type: "color"
|
|
1227
|
+
},
|
|
1228
|
+
hover: {
|
|
1229
|
+
value: "{grey.200}",
|
|
1230
|
+
type: "color"
|
|
1231
|
+
},
|
|
1232
|
+
pressed: {
|
|
1233
|
+
value: "{grey.200}",
|
|
1234
|
+
type: "color"
|
|
1235
|
+
},
|
|
1236
|
+
focus: {
|
|
1237
|
+
value: "{blue.600}",
|
|
1238
|
+
type: "color"
|
|
1239
|
+
},
|
|
1240
|
+
disabled: {
|
|
1241
|
+
value: "{grey.100}",
|
|
1242
|
+
type: "color"
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
"border-width": {
|
|
1246
|
+
value: "{border.1}",
|
|
1247
|
+
type: "borderWidth"
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
notification: {
|
|
1251
|
+
"background-color": {
|
|
1252
|
+
default: {
|
|
1253
|
+
value: "none",
|
|
1254
|
+
type: "color"
|
|
1255
|
+
},
|
|
1256
|
+
hover: {
|
|
1257
|
+
value: "{grey.100}",
|
|
1258
|
+
type: "color"
|
|
1259
|
+
},
|
|
1260
|
+
pressed: {
|
|
1261
|
+
value: "{grey.100}",
|
|
1262
|
+
type: "color"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
color: {
|
|
1266
|
+
default: {
|
|
1267
|
+
value: "{grey.500}",
|
|
1268
|
+
type: "color"
|
|
1269
|
+
},
|
|
1270
|
+
hover: {
|
|
1271
|
+
value: "{grey.500}",
|
|
1272
|
+
type: "color"
|
|
1273
|
+
},
|
|
1274
|
+
pressed: {
|
|
1275
|
+
value: "{grey.500}",
|
|
1276
|
+
type: "color"
|
|
1277
|
+
},
|
|
1278
|
+
focus: {
|
|
1279
|
+
value: "{grey.500}",
|
|
1280
|
+
type: "color"
|
|
1281
|
+
},
|
|
1282
|
+
disabled: {
|
|
1283
|
+
value: "{grey.100}",
|
|
1284
|
+
type: "color"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
border: {
|
|
1288
|
+
default: {
|
|
1289
|
+
value: "{grey.200}",
|
|
1290
|
+
type: "color"
|
|
1291
|
+
},
|
|
1292
|
+
hover: {
|
|
1293
|
+
value: "{grey.200}",
|
|
1294
|
+
type: "color"
|
|
1295
|
+
},
|
|
1296
|
+
pressed: {
|
|
1297
|
+
value: "{grey.200}",
|
|
1298
|
+
type: "color"
|
|
1299
|
+
},
|
|
1300
|
+
focus: {
|
|
1301
|
+
value: "{grey.200}",
|
|
1302
|
+
type: "color"
|
|
1303
|
+
},
|
|
1304
|
+
disabled: {
|
|
1305
|
+
value: "{grey.100}",
|
|
1306
|
+
type: "color"
|
|
1307
|
+
}
|
|
1308
|
+
},
|
|
1309
|
+
"border-width": {
|
|
1310
|
+
value: "{border.1}",
|
|
1311
|
+
type: "borderWidth"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
"notification-badge": {
|
|
1315
|
+
"background-color": {
|
|
1316
|
+
default: {
|
|
1317
|
+
value: "{blue.500}",
|
|
1318
|
+
type: "color"
|
|
1319
|
+
},
|
|
1320
|
+
hover: {
|
|
1321
|
+
value: "{blue.500}",
|
|
1322
|
+
type: "color"
|
|
1323
|
+
},
|
|
1324
|
+
pressed: {
|
|
1325
|
+
value: "{blue.500}",
|
|
1326
|
+
type: "color"
|
|
1327
|
+
},
|
|
1328
|
+
focus: {
|
|
1329
|
+
value: "{blue.500}",
|
|
1330
|
+
type: "color"
|
|
1331
|
+
},
|
|
1332
|
+
disabled: {
|
|
1333
|
+
value: "{grey.200}",
|
|
1334
|
+
type: "color"
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
border: {
|
|
1338
|
+
default: {
|
|
1339
|
+
value: "{core.white}",
|
|
1340
|
+
type: "color"
|
|
1341
|
+
},
|
|
1342
|
+
hover: {
|
|
1343
|
+
value: "{core.white}",
|
|
1344
|
+
type: "color"
|
|
1345
|
+
},
|
|
1346
|
+
pressed: {
|
|
1347
|
+
value: "{core.white}",
|
|
1348
|
+
type: "color"
|
|
1349
|
+
},
|
|
1350
|
+
focus: {
|
|
1351
|
+
value: "{core.white}",
|
|
1352
|
+
type: "color"
|
|
1353
|
+
},
|
|
1354
|
+
disabled: {
|
|
1355
|
+
value: "{core.white}",
|
|
1356
|
+
type: "color"
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
sm: {
|
|
1360
|
+
value: "{spacing.6}",
|
|
1361
|
+
type: "spacing"
|
|
1362
|
+
},
|
|
1363
|
+
md: {
|
|
1364
|
+
value: "{spacing.8}",
|
|
1365
|
+
type: "spacing"
|
|
1366
|
+
},
|
|
1367
|
+
lg: {
|
|
1368
|
+
value: "{spacing.10}",
|
|
1369
|
+
type: "spacing"
|
|
1370
|
+
},
|
|
1371
|
+
"border-width": {
|
|
1372
|
+
value: "{border.1}",
|
|
1373
|
+
type: "borderWidth"
|
|
1374
|
+
}
|
|
1375
|
+
},
|
|
1376
|
+
invisible: {
|
|
1377
|
+
"background-color": {
|
|
1378
|
+
default: {
|
|
1379
|
+
value: "none",
|
|
1380
|
+
type: "color"
|
|
1381
|
+
},
|
|
1382
|
+
hover: {
|
|
1383
|
+
value: "{grey.100}",
|
|
1384
|
+
type: "color"
|
|
1385
|
+
},
|
|
1386
|
+
pressed: {
|
|
1387
|
+
value: "{grey.100}",
|
|
1388
|
+
type: "color"
|
|
1389
|
+
},
|
|
1390
|
+
focus: {
|
|
1391
|
+
value: "none",
|
|
1392
|
+
type: "color"
|
|
1393
|
+
},
|
|
1394
|
+
disabled: {
|
|
1395
|
+
value: "none",
|
|
1396
|
+
type: "color"
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
color: {
|
|
1400
|
+
default: {
|
|
1401
|
+
value: "{grey.500}",
|
|
1402
|
+
type: "color"
|
|
1403
|
+
},
|
|
1404
|
+
hover: {
|
|
1405
|
+
value: "{grey.500}",
|
|
1406
|
+
type: "color"
|
|
1407
|
+
},
|
|
1408
|
+
pressed: {
|
|
1409
|
+
value: "{grey.500}",
|
|
1410
|
+
type: "color"
|
|
1411
|
+
},
|
|
1412
|
+
focus: {
|
|
1413
|
+
value: "{grey.500}",
|
|
1414
|
+
type: "color"
|
|
1415
|
+
},
|
|
1416
|
+
disabled: {
|
|
1417
|
+
value: "{grey.100}",
|
|
1418
|
+
type: "color"
|
|
1419
|
+
}
|
|
1420
|
+
},
|
|
1421
|
+
border: {
|
|
1422
|
+
default: {
|
|
1423
|
+
value: "none",
|
|
1424
|
+
type: "color"
|
|
1425
|
+
},
|
|
1426
|
+
hover: {
|
|
1427
|
+
value: "none",
|
|
1428
|
+
type: "color"
|
|
1429
|
+
},
|
|
1430
|
+
pressed: {
|
|
1431
|
+
value: "none",
|
|
1432
|
+
type: "color"
|
|
1433
|
+
},
|
|
1434
|
+
focus: {
|
|
1435
|
+
value: "{blue.600}",
|
|
1436
|
+
type: "color"
|
|
1437
|
+
},
|
|
1438
|
+
disabled: {
|
|
1439
|
+
value: "{grey.100}",
|
|
1440
|
+
type: "color"
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
"border-width": {
|
|
1444
|
+
default: {
|
|
1445
|
+
value: "none",
|
|
1446
|
+
type: "borderWidth"
|
|
1447
|
+
},
|
|
1448
|
+
hover: {
|
|
1449
|
+
value: "none",
|
|
1450
|
+
type: "borderWidth"
|
|
1451
|
+
},
|
|
1452
|
+
pressed: {
|
|
1453
|
+
value: "none",
|
|
1454
|
+
type: "borderWidth"
|
|
1455
|
+
},
|
|
1456
|
+
focus: {
|
|
1457
|
+
value: "{border.1}",
|
|
1458
|
+
type: "borderWidth"
|
|
1459
|
+
},
|
|
1460
|
+
disabled: {
|
|
1461
|
+
value: "{border.1}",
|
|
1462
|
+
type: "borderWidth"
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
"border-radius": {
|
|
1467
|
+
value: "{rounded.base}",
|
|
1468
|
+
type: "borderRadius"
|
|
1469
|
+
},
|
|
1470
|
+
"box-shadow": {
|
|
1471
|
+
default: {
|
|
1472
|
+
value: "{shadow.none}",
|
|
1473
|
+
type: "boxShadow"
|
|
1474
|
+
},
|
|
1475
|
+
hover: {
|
|
1476
|
+
value: "{shadow.none}",
|
|
1477
|
+
type: "boxShadow"
|
|
1478
|
+
},
|
|
1479
|
+
pressed: {
|
|
1480
|
+
value: "{shadow.inner}",
|
|
1481
|
+
type: "boxShadow"
|
|
1482
|
+
},
|
|
1483
|
+
focus: {
|
|
1484
|
+
value: "none",
|
|
1485
|
+
type: "boxShadow"
|
|
1486
|
+
},
|
|
1487
|
+
disabled: {
|
|
1488
|
+
value: "none",
|
|
1489
|
+
type: "boxShadow"
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
breadcrumbs: {
|
|
1494
|
+
color: {
|
|
1495
|
+
"previous-page": {
|
|
1496
|
+
value: "{blue.500}",
|
|
1497
|
+
type: "color"
|
|
1498
|
+
},
|
|
1499
|
+
divider: {
|
|
1500
|
+
value: "{grey.300}",
|
|
1501
|
+
type: "color"
|
|
1502
|
+
},
|
|
1503
|
+
"current-page": {
|
|
1504
|
+
value: "{grey.500}",
|
|
1505
|
+
type: "color"
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
"font-family": {
|
|
1509
|
+
value: "{font-sans.inter}",
|
|
1510
|
+
type: "fontFamilies"
|
|
1511
|
+
},
|
|
1512
|
+
"font-weight": {
|
|
1513
|
+
value: "{font.normal}",
|
|
1514
|
+
type: "fontWeights"
|
|
1515
|
+
},
|
|
1516
|
+
"line-height": {
|
|
1517
|
+
value: "{leading.sm}",
|
|
1518
|
+
type: "lineHeights"
|
|
1519
|
+
},
|
|
1520
|
+
"font-size": {
|
|
1521
|
+
value: "{text.sm}",
|
|
1522
|
+
type: "fontSizes"
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
"main-content": {
|
|
1526
|
+
sm: {
|
|
1527
|
+
value: "{spacing.32}",
|
|
1528
|
+
type: "spacing"
|
|
1529
|
+
},
|
|
1530
|
+
base: {
|
|
1531
|
+
value: "{spacing.48}",
|
|
1532
|
+
type: "spacing"
|
|
1533
|
+
},
|
|
1534
|
+
lg: {
|
|
1535
|
+
value: "{spacing.64}",
|
|
1536
|
+
type: "spacing"
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"section-content": {
|
|
1540
|
+
none: {
|
|
1541
|
+
value: "{spacing.0}",
|
|
1542
|
+
type: "spacing"
|
|
1543
|
+
},
|
|
1544
|
+
xs: {
|
|
1545
|
+
value: "{spacing.8}",
|
|
1546
|
+
type: "spacing"
|
|
1547
|
+
},
|
|
1548
|
+
sm: {
|
|
1549
|
+
value: "{spacing.16}",
|
|
1550
|
+
type: "spacing"
|
|
1551
|
+
},
|
|
1552
|
+
base: {
|
|
1553
|
+
value: "{spacing.24}",
|
|
1554
|
+
type: "spacing"
|
|
1555
|
+
},
|
|
1556
|
+
lg: {
|
|
1557
|
+
value: "{spacing.32}",
|
|
1558
|
+
type: "spacing"
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
$themes: [],
|
|
1563
|
+
$metadata: { tokenSetOrder: ["global", "alias"] }
|
|
1564
|
+
}, k = {
|
|
1565
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1566
|
+
description: "Lista dei colori da includere nella safelist di Tailwind. Per aggiungere un nuovo colore, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
1567
|
+
safeColorNames: [
|
|
1568
|
+
"blue",
|
|
1569
|
+
"purple",
|
|
1570
|
+
"orange",
|
|
1571
|
+
"pink",
|
|
1572
|
+
"yellow",
|
|
1573
|
+
"grey",
|
|
1574
|
+
"core"
|
|
1575
|
+
]
|
|
1576
|
+
}, A = {
|
|
1577
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1578
|
+
description: "Lista dei colori semantici da includere nella safelist di Tailwind. Per aggiungere un nuovo colore semantico, aggiungi il suo nome qui e rigenera il build con 'pnpm run build'.",
|
|
1579
|
+
semanticColorNames: [
|
|
1580
|
+
"error",
|
|
1581
|
+
"warning",
|
|
1582
|
+
"success",
|
|
1583
|
+
"info"
|
|
1584
|
+
]
|
|
1585
|
+
}, j = k.safeColorNames, M = A.semanticColorNames, N = {};
|
|
1586
|
+
j.forEach((e) => {
|
|
1587
|
+
let t = O.global[e];
|
|
1588
|
+
t && Object.keys(t).forEach((n) => {
|
|
1589
|
+
let r = t[n]?.value;
|
|
1590
|
+
r && (N[e] || (N[e] = {}), N[e][n] = r);
|
|
1591
|
+
});
|
|
903
1592
|
});
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
var
|
|
921
|
-
(
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
function X(e, t) {
|
|
927
|
-
var o = "on" + t.type.toLowerCase();
|
|
928
|
-
return typeof e[o] == "function" && e[o](t), e.dispatchEvent(t);
|
|
1593
|
+
var P = O.global.semantic;
|
|
1594
|
+
P && M.forEach((e) => {
|
|
1595
|
+
let t = P[e];
|
|
1596
|
+
t && typeof t == "object" && Object.keys(t).forEach((n) => {
|
|
1597
|
+
let r = t[n]?.value;
|
|
1598
|
+
if (r) {
|
|
1599
|
+
let t = `semantic-${e}`;
|
|
1600
|
+
N[t] || (N[t] = {}), N[t][n] = r;
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}), Object.entries(O.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {});
|
|
1604
|
+
//#endregion
|
|
1605
|
+
//#region ../../node_modules/.pnpm/dialog-polyfill@0.5.6/node_modules/dialog-polyfill/dist/dialog-polyfill.esm.js
|
|
1606
|
+
var F = window.CustomEvent;
|
|
1607
|
+
(!F || typeof F == "object") && (F = function(e, t) {
|
|
1608
|
+
t ||= {};
|
|
1609
|
+
var n = document.createEvent("CustomEvent");
|
|
1610
|
+
return n.initCustomEvent(e, !!t.bubbles, !!t.cancelable, t.detail || null), n;
|
|
1611
|
+
}, F.prototype = window.Event.prototype);
|
|
1612
|
+
function I(e, t) {
|
|
1613
|
+
var n = "on" + t.type.toLowerCase();
|
|
1614
|
+
return typeof e[n] == "function" && e[n](t), e.dispatchEvent(t);
|
|
929
1615
|
}
|
|
930
|
-
function
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
return !1;
|
|
1616
|
+
function L(e) {
|
|
1617
|
+
for (; e && e !== document.body;) {
|
|
1618
|
+
var t = window.getComputedStyle(e), n = function(e, n) {
|
|
1619
|
+
return !(t[e] === void 0 || t[e] === n);
|
|
1620
|
+
};
|
|
1621
|
+
if (t.opacity < 1 || n("zIndex", "auto") || n("transform", "none") || n("mixBlendMode", "normal") || n("filter", "none") || n("perspective", "none") || t.isolation === "isolate" || t.position === "fixed" || t.webkitOverflowScrolling === "touch") return !0;
|
|
1622
|
+
e = e.parentElement;
|
|
1623
|
+
}
|
|
1624
|
+
return !1;
|
|
940
1625
|
}
|
|
941
|
-
function
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
);
|
|
948
|
-
e.parentElement ? e = e.parentElement : e.parentNode ? e = e.parentNode.host : e = null;
|
|
949
|
-
}
|
|
950
|
-
return null;
|
|
1626
|
+
function R(e) {
|
|
1627
|
+
for (; e;) {
|
|
1628
|
+
if (e.localName === "dialog") return e;
|
|
1629
|
+
e = e.parentElement ? e.parentElement : e.parentNode ? e.parentNode.host : null;
|
|
1630
|
+
}
|
|
1631
|
+
return null;
|
|
951
1632
|
}
|
|
952
|
-
function
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
e && e.blur && e !== document.body && e.blur();
|
|
1633
|
+
function z(e) {
|
|
1634
|
+
for (; e && e.shadowRoot && e.shadowRoot.activeElement;) e = e.shadowRoot.activeElement;
|
|
1635
|
+
e && e.blur && e !== document.body && e.blur();
|
|
956
1636
|
}
|
|
957
|
-
function
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
return !0;
|
|
961
|
-
return !1;
|
|
1637
|
+
function B(e, t) {
|
|
1638
|
+
for (var n = 0; n < e.length; ++n) if (e[n] === t) return !0;
|
|
1639
|
+
return !1;
|
|
962
1640
|
}
|
|
963
|
-
function
|
|
964
|
-
|
|
1641
|
+
function V(e) {
|
|
1642
|
+
return !e || !e.hasAttribute("method") ? !1 : e.getAttribute("method").toLowerCase() === "dialog";
|
|
965
1643
|
}
|
|
966
|
-
function
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1644
|
+
function H(e) {
|
|
1645
|
+
var t = [
|
|
1646
|
+
"button",
|
|
1647
|
+
"input",
|
|
1648
|
+
"keygen",
|
|
1649
|
+
"select",
|
|
1650
|
+
"textarea"
|
|
1651
|
+
].map(function(e) {
|
|
1652
|
+
return e + ":not([disabled])";
|
|
1653
|
+
});
|
|
1654
|
+
t.push("[tabindex]:not([disabled]):not([tabindex=\"\"])");
|
|
1655
|
+
var n = e.querySelector(t.join(", "));
|
|
1656
|
+
if (!n && "attachShadow" in Element.prototype) for (var r = e.querySelectorAll("*"), i = 0; i < r.length && !(r[i].tagName && r[i].shadowRoot && (n = H(r[i].shadowRoot), n)); i++);
|
|
1657
|
+
return n;
|
|
976
1658
|
}
|
|
977
|
-
function
|
|
978
|
-
|
|
1659
|
+
function U(e) {
|
|
1660
|
+
return e.isConnected || document.body.contains(e);
|
|
979
1661
|
}
|
|
980
|
-
function
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
return !o || o.form !== t ? null : o;
|
|
1662
|
+
function W(e) {
|
|
1663
|
+
if (e.submitter) return e.submitter;
|
|
1664
|
+
var t = e.target;
|
|
1665
|
+
if (!(t instanceof HTMLFormElement)) return null;
|
|
1666
|
+
var n = q.formSubmitter;
|
|
1667
|
+
if (!n) {
|
|
1668
|
+
var r = e.target;
|
|
1669
|
+
n = ("getRootNode" in r && r.getRootNode() || document).activeElement;
|
|
1670
|
+
}
|
|
1671
|
+
return !n || n.form !== t ? null : n;
|
|
992
1672
|
}
|
|
993
|
-
function
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
var l = S(t);
|
|
1001
|
-
if (l) {
|
|
1002
|
-
var n = a && a.getAttribute("formmethod") || t.getAttribute("method");
|
|
1003
|
-
n === "dialog" && (e.preventDefault(), o != null ? l.close(o) : l.close());
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1673
|
+
function G(e) {
|
|
1674
|
+
if (!e.defaultPrevented) {
|
|
1675
|
+
var t = e.target, n = q.imagemapUseValue, r = W(e);
|
|
1676
|
+
n === null && r && (n = r.value);
|
|
1677
|
+
var i = R(t);
|
|
1678
|
+
i && (r && r.getAttribute("formmethod") || t.getAttribute("method")) === "dialog" && (e.preventDefault(), n == null ? i.close() : i.close(n));
|
|
1679
|
+
}
|
|
1006
1680
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1681
|
+
function K(e) {
|
|
1682
|
+
if (this.dialog_ = e, this.replacedStyleTop_ = !1, this.openAsModal_ = !1, e.hasAttribute("role") || e.setAttribute("role", "dialog"), e.show = this.show.bind(this), e.showModal = this.showModal.bind(this), e.close = this.close.bind(this), e.addEventListener("submit", G, !1), "returnValue" in e || (e.returnValue = ""), "MutationObserver" in window) new MutationObserver(this.maybeHideModal.bind(this)).observe(e, {
|
|
1683
|
+
attributes: !0,
|
|
1684
|
+
attributeFilter: ["open"]
|
|
1685
|
+
});
|
|
1686
|
+
else {
|
|
1687
|
+
var t = !1, n = function() {
|
|
1688
|
+
t ? this.downgradeModal() : this.maybeHideModal(), t = !1;
|
|
1689
|
+
}.bind(this), r, i = function(i) {
|
|
1690
|
+
if (i.target === e) {
|
|
1691
|
+
var a = "DOMNodeRemoved";
|
|
1692
|
+
t |= i.type.substr(0, a.length) === a, window.clearTimeout(r), r = window.setTimeout(n, 0);
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1695
|
+
[
|
|
1696
|
+
"DOMAttrModified",
|
|
1697
|
+
"DOMNodeRemoved",
|
|
1698
|
+
"DOMNodeRemovedFromDocument"
|
|
1699
|
+
].forEach(function(t) {
|
|
1700
|
+
e.addEventListener(t, i);
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1703
|
+
Object.defineProperty(e, "open", {
|
|
1704
|
+
set: this.setOpen.bind(this),
|
|
1705
|
+
get: e.hasAttribute.bind(e, "open")
|
|
1706
|
+
}), this.backdrop_ = document.createElement("div"), this.backdrop_.className = "backdrop", this.backdrop_.addEventListener("mouseup", this.backdropMouseEvent_.bind(this)), this.backdrop_.addEventListener("mousedown", this.backdropMouseEvent_.bind(this)), this.backdrop_.addEventListener("click", this.backdropMouseEvent_.bind(this));
|
|
1028
1707
|
}
|
|
1029
|
-
|
|
1030
|
-
{
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
e.clientY,
|
|
1078
|
-
e.ctrlKey,
|
|
1079
|
-
e.altKey,
|
|
1080
|
-
e.shiftKey,
|
|
1081
|
-
e.metaKey,
|
|
1082
|
-
e.button,
|
|
1083
|
-
e.relatedTarget
|
|
1084
|
-
), this.dialog_.dispatchEvent(o), e.stopPropagation();
|
|
1085
|
-
},
|
|
1086
|
-
/**
|
|
1087
|
-
* Focuses on the first focusable element within the dialog. This will always blur the current
|
|
1088
|
-
* focus, even if nothing within the dialog is found.
|
|
1089
|
-
*/
|
|
1090
|
-
focus_: function() {
|
|
1091
|
-
var e = this.dialog_.querySelector("[autofocus]:not([disabled])");
|
|
1092
|
-
!e && this.dialog_.tabIndex >= 0 && (e = this.dialog_), e || (e = Z(this.dialog_)), Y(document.activeElement), e && e.focus();
|
|
1093
|
-
},
|
|
1094
|
-
/**
|
|
1095
|
-
* Sets the zIndex for the backdrop and dialog.
|
|
1096
|
-
*
|
|
1097
|
-
* @param {number} dialogZ
|
|
1098
|
-
* @param {number} backdropZ
|
|
1099
|
-
*/
|
|
1100
|
-
updateZIndex: function(e, t) {
|
|
1101
|
-
if (e < t)
|
|
1102
|
-
throw new Error("dialogZ should never be < backdropZ");
|
|
1103
|
-
this.dialog_.style.zIndex = e, this.backdrop_.style.zIndex = t;
|
|
1104
|
-
},
|
|
1105
|
-
/**
|
|
1106
|
-
* Shows the dialog. If the dialog is already open, this does nothing.
|
|
1107
|
-
*/
|
|
1108
|
-
show: function() {
|
|
1109
|
-
this.dialog_.open || (this.setOpen(!0), this.focus_());
|
|
1110
|
-
},
|
|
1111
|
-
/**
|
|
1112
|
-
* Show this dialog modally.
|
|
1113
|
-
*/
|
|
1114
|
-
showModal: function() {
|
|
1115
|
-
if (this.dialog_.hasAttribute("open"))
|
|
1116
|
-
throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");
|
|
1117
|
-
if (!j(this.dialog_))
|
|
1118
|
-
throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");
|
|
1119
|
-
if (!r.dm.pushDialog(this))
|
|
1120
|
-
throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");
|
|
1121
|
-
ye(this.dialog_.parentElement) && console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"), this.setOpen(!0), this.openAsModal_ = !0, r.needsCentering(this.dialog_) ? (r.reposition(this.dialog_), this.replacedStyleTop_ = !0) : this.replacedStyleTop_ = !1, this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling), this.focus_();
|
|
1122
|
-
},
|
|
1123
|
-
/**
|
|
1124
|
-
* Closes this HTMLDialogElement. This is optional vs clearing the open
|
|
1125
|
-
* attribute, however this fires a 'close' event.
|
|
1126
|
-
*
|
|
1127
|
-
* @param {string=} opt_returnValue to use as the returnValue
|
|
1128
|
-
*/
|
|
1129
|
-
close: function(e) {
|
|
1130
|
-
if (!this.dialog_.hasAttribute("open"))
|
|
1131
|
-
throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");
|
|
1132
|
-
this.setOpen(!1), e !== void 0 && (this.dialog_.returnValue = e);
|
|
1133
|
-
var t = new y("close", {
|
|
1134
|
-
bubbles: !1,
|
|
1135
|
-
cancelable: !1
|
|
1136
|
-
});
|
|
1137
|
-
X(this.dialog_, t);
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
var r = {};
|
|
1141
|
-
r.reposition = function(e) {
|
|
1142
|
-
var t = document.body.scrollTop || document.documentElement.scrollTop, o = t + (window.innerHeight - e.offsetHeight) / 2;
|
|
1143
|
-
e.style.top = Math.max(t, o) + "px";
|
|
1144
|
-
};
|
|
1145
|
-
r.isInlinePositionSetByStylesheet = function(e) {
|
|
1146
|
-
for (var t = 0; t < document.styleSheets.length; ++t) {
|
|
1147
|
-
var o = document.styleSheets[t], a = null;
|
|
1148
|
-
try {
|
|
1149
|
-
a = o.cssRules;
|
|
1150
|
-
} catch {
|
|
1151
|
-
}
|
|
1152
|
-
if (a)
|
|
1153
|
-
for (var l = 0; l < a.length; ++l) {
|
|
1154
|
-
var n = a[l], i = null;
|
|
1155
|
-
try {
|
|
1156
|
-
i = document.querySelectorAll(n.selectorText);
|
|
1157
|
-
} catch {
|
|
1158
|
-
}
|
|
1159
|
-
if (!(!i || !me(i, e))) {
|
|
1160
|
-
var c = n.style.getPropertyValue("top"), d = n.style.getPropertyValue("bottom");
|
|
1161
|
-
if (c && c !== "auto" || d && d !== "auto")
|
|
1162
|
-
return !0;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
return !1;
|
|
1167
|
-
};
|
|
1168
|
-
r.needsCentering = function(e) {
|
|
1169
|
-
var t = window.getComputedStyle(e);
|
|
1170
|
-
return t.position !== "absolute" || e.style.top !== "auto" && e.style.top !== "" || e.style.bottom !== "auto" && e.style.bottom !== "" ? !1 : !r.isInlinePositionSetByStylesheet(e);
|
|
1171
|
-
};
|
|
1172
|
-
r.forceRegisterDialog = function(e) {
|
|
1173
|
-
if ((window.HTMLDialogElement || e.showModal) && console.warn("This browser already supports <dialog>, the polyfill may not work correctly", e), e.localName !== "dialog")
|
|
1174
|
-
throw new Error("Failed to register dialog: The element is not a dialog.");
|
|
1175
|
-
new Q(
|
|
1176
|
-
/** @type {!HTMLDialogElement} */
|
|
1177
|
-
e
|
|
1178
|
-
);
|
|
1179
|
-
};
|
|
1180
|
-
r.registerDialog = function(e) {
|
|
1181
|
-
e.showModal || r.forceRegisterDialog(e);
|
|
1182
|
-
};
|
|
1183
|
-
r.DialogManager = function() {
|
|
1184
|
-
this.pendingDialogStack = [];
|
|
1185
|
-
var e = this.checkDOM_.bind(this);
|
|
1186
|
-
this.overlay = document.createElement("div"), this.overlay.className = "_dialog_overlay", this.overlay.addEventListener("click", (function(t) {
|
|
1187
|
-
this.forwardTab_ = void 0, t.stopPropagation(), e([]);
|
|
1188
|
-
}).bind(this)), this.handleKey_ = this.handleKey_.bind(this), this.handleFocus_ = this.handleFocus_.bind(this), this.zIndexLow_ = 1e5, this.zIndexHigh_ = 100150, this.forwardTab_ = void 0, "MutationObserver" in window && (this.mo_ = new MutationObserver(function(t) {
|
|
1189
|
-
var o = [];
|
|
1190
|
-
t.forEach(function(a) {
|
|
1191
|
-
for (var l = 0, n; n = a.removedNodes[l]; ++l) {
|
|
1192
|
-
if (n instanceof Element)
|
|
1193
|
-
n.localName === "dialog" && o.push(n);
|
|
1194
|
-
else continue;
|
|
1195
|
-
o = o.concat(n.querySelectorAll("dialog"));
|
|
1196
|
-
}
|
|
1197
|
-
}), o.length && e(o);
|
|
1198
|
-
}));
|
|
1199
|
-
};
|
|
1200
|
-
r.DialogManager.prototype.blockDocument = function() {
|
|
1201
|
-
document.documentElement.addEventListener("focus", this.handleFocus_, !0), document.addEventListener("keydown", this.handleKey_), this.mo_ && this.mo_.observe(document, { childList: !0, subtree: !0 });
|
|
1708
|
+
K.prototype = {
|
|
1709
|
+
get dialog() {
|
|
1710
|
+
return this.dialog_;
|
|
1711
|
+
},
|
|
1712
|
+
maybeHideModal: function() {
|
|
1713
|
+
this.dialog_.hasAttribute("open") && U(this.dialog_) || this.downgradeModal();
|
|
1714
|
+
},
|
|
1715
|
+
downgradeModal: function() {
|
|
1716
|
+
this.openAsModal_ && (this.openAsModal_ = !1, this.dialog_.style.zIndex = "", this.replacedStyleTop_ &&= (this.dialog_.style.top = "", !1), this.backdrop_.parentNode && this.backdrop_.parentNode.removeChild(this.backdrop_), q.dm.removeDialog(this));
|
|
1717
|
+
},
|
|
1718
|
+
setOpen: function(e) {
|
|
1719
|
+
e ? this.dialog_.hasAttribute("open") || this.dialog_.setAttribute("open", "") : (this.dialog_.removeAttribute("open"), this.maybeHideModal());
|
|
1720
|
+
},
|
|
1721
|
+
backdropMouseEvent_: function(e) {
|
|
1722
|
+
if (this.dialog_.hasAttribute("tabindex")) this.dialog_.focus();
|
|
1723
|
+
else {
|
|
1724
|
+
var t = document.createElement("div");
|
|
1725
|
+
this.dialog_.insertBefore(t, this.dialog_.firstChild), t.tabIndex = -1, t.focus(), this.dialog_.removeChild(t);
|
|
1726
|
+
}
|
|
1727
|
+
var n = document.createEvent("MouseEvents");
|
|
1728
|
+
n.initMouseEvent(e.type, e.bubbles, e.cancelable, window, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget), this.dialog_.dispatchEvent(n), e.stopPropagation();
|
|
1729
|
+
},
|
|
1730
|
+
focus_: function() {
|
|
1731
|
+
var e = this.dialog_.querySelector("[autofocus]:not([disabled])");
|
|
1732
|
+
!e && this.dialog_.tabIndex >= 0 && (e = this.dialog_), e ||= H(this.dialog_), z(document.activeElement), e && e.focus();
|
|
1733
|
+
},
|
|
1734
|
+
updateZIndex: function(e, t) {
|
|
1735
|
+
if (e < t) throw Error("dialogZ should never be < backdropZ");
|
|
1736
|
+
this.dialog_.style.zIndex = e, this.backdrop_.style.zIndex = t;
|
|
1737
|
+
},
|
|
1738
|
+
show: function() {
|
|
1739
|
+
this.dialog_.open || (this.setOpen(!0), this.focus_());
|
|
1740
|
+
},
|
|
1741
|
+
showModal: function() {
|
|
1742
|
+
if (this.dialog_.hasAttribute("open")) throw Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");
|
|
1743
|
+
if (!U(this.dialog_)) throw Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");
|
|
1744
|
+
if (!q.dm.pushDialog(this)) throw Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");
|
|
1745
|
+
L(this.dialog_.parentElement) && console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"), this.setOpen(!0), this.openAsModal_ = !0, q.needsCentering(this.dialog_) ? (q.reposition(this.dialog_), this.replacedStyleTop_ = !0) : this.replacedStyleTop_ = !1, this.dialog_.parentNode.insertBefore(this.backdrop_, this.dialog_.nextSibling), this.focus_();
|
|
1746
|
+
},
|
|
1747
|
+
close: function(e) {
|
|
1748
|
+
if (!this.dialog_.hasAttribute("open")) throw Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");
|
|
1749
|
+
this.setOpen(!1), e !== void 0 && (this.dialog_.returnValue = e);
|
|
1750
|
+
var t = new F("close", {
|
|
1751
|
+
bubbles: !1,
|
|
1752
|
+
cancelable: !1
|
|
1753
|
+
});
|
|
1754
|
+
I(this.dialog_, t);
|
|
1755
|
+
}
|
|
1202
1756
|
};
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1757
|
+
var q = {};
|
|
1758
|
+
if (q.reposition = function(e) {
|
|
1759
|
+
var t = document.body.scrollTop || document.documentElement.scrollTop, n = t + (window.innerHeight - e.offsetHeight) / 2;
|
|
1760
|
+
e.style.top = Math.max(t, n) + "px";
|
|
1761
|
+
}, q.isInlinePositionSetByStylesheet = function(e) {
|
|
1762
|
+
for (var t = 0; t < document.styleSheets.length; ++t) {
|
|
1763
|
+
var n = document.styleSheets[t], r = null;
|
|
1764
|
+
try {
|
|
1765
|
+
r = n.cssRules;
|
|
1766
|
+
} catch {}
|
|
1767
|
+
if (r) for (var i = 0; i < r.length; ++i) {
|
|
1768
|
+
var a = r[i], o = null;
|
|
1769
|
+
try {
|
|
1770
|
+
o = document.querySelectorAll(a.selectorText);
|
|
1771
|
+
} catch {}
|
|
1772
|
+
if (!(!o || !B(o, e))) {
|
|
1773
|
+
var s = a.style.getPropertyValue("top"), c = a.style.getPropertyValue("bottom");
|
|
1774
|
+
if (s && s !== "auto" || c && c !== "auto") return !0;
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
return !1;
|
|
1779
|
+
}, q.needsCentering = function(e) {
|
|
1780
|
+
return window.getComputedStyle(e).position !== "absolute" || e.style.top !== "auto" && e.style.top !== "" || e.style.bottom !== "auto" && e.style.bottom !== "" ? !1 : !q.isInlinePositionSetByStylesheet(e);
|
|
1781
|
+
}, q.forceRegisterDialog = function(e) {
|
|
1782
|
+
if ((window.HTMLDialogElement || e.showModal) && console.warn("This browser already supports <dialog>, the polyfill may not work correctly", e), e.localName !== "dialog") throw Error("Failed to register dialog: The element is not a dialog.");
|
|
1783
|
+
new K(e);
|
|
1784
|
+
}, q.registerDialog = function(e) {
|
|
1785
|
+
e.showModal || q.forceRegisterDialog(e);
|
|
1786
|
+
}, q.DialogManager = function() {
|
|
1787
|
+
this.pendingDialogStack = [];
|
|
1788
|
+
var e = this.checkDOM_.bind(this);
|
|
1789
|
+
this.overlay = document.createElement("div"), this.overlay.className = "_dialog_overlay", this.overlay.addEventListener("click", function(t) {
|
|
1790
|
+
this.forwardTab_ = void 0, t.stopPropagation(), e([]);
|
|
1791
|
+
}.bind(this)), this.handleKey_ = this.handleKey_.bind(this), this.handleFocus_ = this.handleFocus_.bind(this), this.zIndexLow_ = 1e5, this.zIndexHigh_ = 100150, this.forwardTab_ = void 0, "MutationObserver" in window && (this.mo_ = new MutationObserver(function(t) {
|
|
1792
|
+
var n = [];
|
|
1793
|
+
t.forEach(function(e) {
|
|
1794
|
+
for (var t = 0, r; r = e.removedNodes[t]; ++t) {
|
|
1795
|
+
if (r instanceof Element) r.localName === "dialog" && n.push(r);
|
|
1796
|
+
else continue;
|
|
1797
|
+
n = n.concat(r.querySelectorAll("dialog"));
|
|
1798
|
+
}
|
|
1799
|
+
}), n.length && e(n);
|
|
1800
|
+
}));
|
|
1801
|
+
}, q.DialogManager.prototype.blockDocument = function() {
|
|
1802
|
+
document.documentElement.addEventListener("focus", this.handleFocus_, !0), document.addEventListener("keydown", this.handleKey_), this.mo_ && this.mo_.observe(document, {
|
|
1803
|
+
childList: !0,
|
|
1804
|
+
subtree: !0
|
|
1805
|
+
});
|
|
1806
|
+
}, q.DialogManager.prototype.unblockDocument = function() {
|
|
1807
|
+
document.documentElement.removeEventListener("focus", this.handleFocus_, !0), document.removeEventListener("keydown", this.handleKey_), this.mo_ && this.mo_.disconnect();
|
|
1808
|
+
}, q.DialogManager.prototype.updateStacking = function() {
|
|
1809
|
+
for (var e = this.zIndexHigh_, t = 0, n; n = this.pendingDialogStack[t]; ++t) n.updateZIndex(--e, --e), t === 0 && (this.overlay.style.zIndex = --e);
|
|
1810
|
+
var r = this.pendingDialogStack[0];
|
|
1811
|
+
r ? (r.dialog.parentNode || document.body).appendChild(this.overlay) : this.overlay.parentNode && this.overlay.parentNode.removeChild(this.overlay);
|
|
1812
|
+
}, q.DialogManager.prototype.containedByTopDialog_ = function(e) {
|
|
1813
|
+
for (; e = R(e);) {
|
|
1814
|
+
for (var t = 0, n; n = this.pendingDialogStack[t]; ++t) if (n.dialog === e) return t === 0;
|
|
1815
|
+
e = e.parentElement;
|
|
1816
|
+
}
|
|
1817
|
+
return !1;
|
|
1818
|
+
}, q.DialogManager.prototype.handleFocus_ = function(e) {
|
|
1819
|
+
var t = e.composedPath ? e.composedPath()[0] : e.target;
|
|
1820
|
+
if (!this.containedByTopDialog_(t) && document.activeElement !== document.documentElement && (e.preventDefault(), e.stopPropagation(), z(t), this.forwardTab_ !== void 0)) {
|
|
1821
|
+
var n = this.pendingDialogStack[0];
|
|
1822
|
+
return n.dialog.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_PRECEDING && (this.forwardTab_ ? n.focus_() : t !== document.documentElement && document.documentElement.focus()), !1;
|
|
1823
|
+
}
|
|
1824
|
+
}, q.DialogManager.prototype.handleKey_ = function(e) {
|
|
1825
|
+
if (this.forwardTab_ = void 0, e.keyCode === 27) {
|
|
1826
|
+
e.preventDefault(), e.stopPropagation();
|
|
1827
|
+
var t = new F("cancel", {
|
|
1828
|
+
bubbles: !1,
|
|
1829
|
+
cancelable: !0
|
|
1830
|
+
}), n = this.pendingDialogStack[0];
|
|
1831
|
+
n && I(n.dialog, t) && n.dialog.close();
|
|
1832
|
+
} else e.keyCode === 9 && (this.forwardTab_ = !e.shiftKey);
|
|
1833
|
+
}, q.DialogManager.prototype.checkDOM_ = function(e) {
|
|
1834
|
+
this.pendingDialogStack.slice().forEach(function(t) {
|
|
1835
|
+
e.indexOf(t.dialog) === -1 ? t.maybeHideModal() : t.downgradeModal();
|
|
1836
|
+
});
|
|
1837
|
+
}, q.DialogManager.prototype.pushDialog = function(e) {
|
|
1838
|
+
var t = (this.zIndexHigh_ - this.zIndexLow_) / 2 - 1;
|
|
1839
|
+
return this.pendingDialogStack.length >= t ? !1 : (this.pendingDialogStack.unshift(e) === 1 && this.blockDocument(), this.updateStacking(), !0);
|
|
1840
|
+
}, q.DialogManager.prototype.removeDialog = function(e) {
|
|
1841
|
+
var t = this.pendingDialogStack.indexOf(e);
|
|
1842
|
+
t !== -1 && (this.pendingDialogStack.splice(t, 1), this.pendingDialogStack.length === 0 && this.unblockDocument(), this.updateStacking());
|
|
1843
|
+
}, q.dm = new q.DialogManager(), q.formSubmitter = null, q.imagemapUseValue = null, window.HTMLDialogElement === void 0) {
|
|
1844
|
+
var J = document.createElement("form");
|
|
1845
|
+
if (J.setAttribute("method", "dialog"), J.method !== "dialog") {
|
|
1846
|
+
var Y = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "method");
|
|
1847
|
+
if (Y) {
|
|
1848
|
+
var X = Y.get;
|
|
1849
|
+
Y.get = function() {
|
|
1850
|
+
return V(this) ? "dialog" : X.call(this);
|
|
1851
|
+
};
|
|
1852
|
+
var Z = Y.set;
|
|
1853
|
+
Y.set = function(e) {
|
|
1854
|
+
return typeof e == "string" && e.toLowerCase() === "dialog" ? this.setAttribute("method", e) : Z.call(this, e);
|
|
1855
|
+
}, Object.defineProperty(HTMLFormElement.prototype, "method", Y);
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
document.addEventListener("click", function(e) {
|
|
1859
|
+
if (q.formSubmitter = null, q.imagemapUseValue = null, !e.defaultPrevented) {
|
|
1860
|
+
var t = e.target;
|
|
1861
|
+
if ("composedPath" in e && (t = e.composedPath().shift() || t), !(!t || !V(t.form))) {
|
|
1862
|
+
if (!(t.type === "submit" && ["button", "input"].indexOf(t.localName) > -1)) {
|
|
1863
|
+
if (!(t.localName === "input" && t.type === "image")) return;
|
|
1864
|
+
q.imagemapUseValue = e.offsetX + "," + e.offsetY;
|
|
1865
|
+
}
|
|
1866
|
+
R(t) && (q.formSubmitter = t);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
}, !1), document.addEventListener("submit", function(e) {
|
|
1870
|
+
var t = e.target;
|
|
1871
|
+
if (!R(t)) {
|
|
1872
|
+
var n = W(e);
|
|
1873
|
+
(n && n.getAttribute("formmethod") || t.getAttribute("method")) === "dialog" && e.preventDefault();
|
|
1874
|
+
}
|
|
1875
|
+
});
|
|
1876
|
+
var Q = HTMLFormElement.prototype.submit, ee = function() {
|
|
1877
|
+
if (!V(this)) return Q.call(this);
|
|
1878
|
+
var e = R(this);
|
|
1879
|
+
e && e.close();
|
|
1880
|
+
};
|
|
1881
|
+
HTMLFormElement.prototype.submit = ee;
|
|
1311
1882
|
}
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
class: _([p, b, e.footerClasses])
|
|
1519
|
-
}, [
|
|
1520
|
-
e.cancelButtonEnabled ? (E(), O(A(V), {
|
|
1521
|
-
key: 0,
|
|
1522
|
-
variant: "invisible",
|
|
1523
|
-
onClick: P(x, ["prevent"]),
|
|
1524
|
-
value: "false"
|
|
1525
|
-
}, {
|
|
1526
|
-
default: w(() => [
|
|
1527
|
-
K(B(e.cancelLabel), 1)
|
|
1528
|
-
]),
|
|
1529
|
-
_: 1
|
|
1530
|
-
})) : M("", !0),
|
|
1531
|
-
e.confirmButtonEnabled ? (E(), O(A(V), {
|
|
1532
|
-
key: 1,
|
|
1533
|
-
class: "ml-12",
|
|
1534
|
-
onClick: P(D, ["prevent"]),
|
|
1535
|
-
disabled: e.disableConfirm,
|
|
1536
|
-
value: "true",
|
|
1537
|
-
variant: e.confirmButtonVariant
|
|
1538
|
-
}, {
|
|
1539
|
-
default: w(() => [
|
|
1540
|
-
K(B(e.confirmLabel), 1)
|
|
1541
|
-
]),
|
|
1542
|
-
_: 1
|
|
1543
|
-
}, 8, ["disabled", "variant"])) : M("", !0)
|
|
1544
|
-
], 2)
|
|
1545
|
-
])
|
|
1546
|
-
])
|
|
1547
|
-
]),
|
|
1548
|
-
key: "0"
|
|
1549
|
-
} : void 0
|
|
1550
|
-
]), 1040));
|
|
1551
|
-
}
|
|
1883
|
+
//#endregion
|
|
1884
|
+
//#region src/FzDialog.vue?vue&type=script&setup=true&lang.ts
|
|
1885
|
+
var te = { class: "flex items-center p-12 w-full border-b-1 border-grey-100 border-solid" }, ne = {
|
|
1886
|
+
key: 0,
|
|
1887
|
+
class: "flex flex-row p-12 border-t-1 border-grey-100 items-center border-solid"
|
|
1888
|
+
}, re = "flex flex-col bg-core-white", ie = "border-1 rounded border-grey-100 p-0 z-[42] top-0 bottom-0", $ = /* @__PURE__ */ ((e, t) => {
|
|
1889
|
+
let n = e.__vccOpts || e;
|
|
1890
|
+
for (let [e, r] of t) n[e] = r;
|
|
1891
|
+
return n;
|
|
1892
|
+
})(/* @__PURE__ */ c({
|
|
1893
|
+
__name: "FzDialog",
|
|
1894
|
+
props: {
|
|
1895
|
+
size: { default: "md" },
|
|
1896
|
+
title: {},
|
|
1897
|
+
confirmLabel: {},
|
|
1898
|
+
cancelLabel: {},
|
|
1899
|
+
text: {},
|
|
1900
|
+
isDrawer: { type: Boolean },
|
|
1901
|
+
closeOnBackdrop: {
|
|
1902
|
+
type: Boolean,
|
|
1903
|
+
default: !0
|
|
1904
|
+
},
|
|
1905
|
+
closeOnEscape: {
|
|
1906
|
+
type: Boolean,
|
|
1907
|
+
default: !0
|
|
1908
|
+
},
|
|
1909
|
+
bodyClasses: {},
|
|
1910
|
+
shouldAlwaysRender: { type: Boolean }
|
|
1911
|
+
},
|
|
1912
|
+
emits: ["fzmodal:cancel"],
|
|
1913
|
+
setup(t, { expose: a, emit: o }) {
|
|
1914
|
+
let s = t, c = o, l = h(), d = h(), _ = h(), v = h(!1), x = h(!1);
|
|
1915
|
+
function C() {
|
|
1916
|
+
l.value?.style.setProperty("--innerHeight", `${window.innerHeight}px`);
|
|
1917
|
+
}
|
|
1918
|
+
function w() {
|
|
1919
|
+
C(), q.registerDialog(l.value), l.value.show(), v.value = !0;
|
|
1920
|
+
}
|
|
1921
|
+
f(() => {
|
|
1922
|
+
window.addEventListener("resize", C);
|
|
1923
|
+
}), p(() => {
|
|
1924
|
+
window.removeEventListener("resize", C);
|
|
1925
|
+
});
|
|
1926
|
+
let T = () => {
|
|
1927
|
+
s.shouldAlwaysRender ? w() : x.value = !0;
|
|
1928
|
+
}, O = (e) => {
|
|
1929
|
+
l.value?.close(e);
|
|
1930
|
+
};
|
|
1931
|
+
function k() {
|
|
1932
|
+
v.value = !1, s.shouldAlwaysRender || (x.value = !1);
|
|
1933
|
+
}
|
|
1934
|
+
b(l, (e) => {
|
|
1935
|
+
e && x.value && w();
|
|
1936
|
+
}), a({
|
|
1937
|
+
show: T,
|
|
1938
|
+
close: O,
|
|
1939
|
+
visible: v
|
|
1940
|
+
}), E(_, () => {
|
|
1941
|
+
s.closeOnBackdrop && (l.value.close(), c("fzmodal:cancel"));
|
|
1942
|
+
}, d), D((e) => {
|
|
1943
|
+
!v.value || e.key !== "Escape" || !s.closeOnEscape || (l.value.close(), c("fzmodal:cancel"));
|
|
1944
|
+
});
|
|
1945
|
+
let A = e(() => {
|
|
1946
|
+
if (s.isDrawer) return "m-0 fixed top-0 ml-auto max-h-screen";
|
|
1947
|
+
switch (s.size) {
|
|
1948
|
+
case "md": return "xs:max-sm:m-0 xs:max-sm:max-h-screen xs:max-sm:h-dvh xs:max-sm:w-dvw xs:max-sm:max-w-screen-xl";
|
|
1949
|
+
case "lg": return "xs:max-md:m-0 xs:max-md:max-h-screen xs:max-md:h-dvh xs:max-md:w-dvw xs:max-md:max-w-screen-xl";
|
|
1950
|
+
case "xl": return "xs:max-xl:m-0 xs:max-xl:max-h-screen xs:max-xl:h-dvh xs:max-xl:w-dvw xs:max-xl:max-w-screen-xl";
|
|
1951
|
+
}
|
|
1952
|
+
}), j = e(() => {
|
|
1953
|
+
if (s.isDrawer) return "w-[480px] h-dvh";
|
|
1954
|
+
switch (s.size) {
|
|
1955
|
+
case "sm": return "w-[320px] min-h-[200px] max-h-[432px]";
|
|
1956
|
+
case "md": return "w-dvw sm:w-[480px] min-h-[300px] sm:max-h-[600px] h-dvh sm:h-auto";
|
|
1957
|
+
case "lg": return "w-dvw md:w-[640px] min-h-[300px] md:max-h-[600px] h-dvh md:h-auto";
|
|
1958
|
+
case "xl": return "w-dvw xl:w-[960px] min-h-[400px] xl:max-h-[600px] h-dvh xl:h-auto";
|
|
1959
|
+
}
|
|
1960
|
+
});
|
|
1961
|
+
return (e, a) => x.value || t.shouldAlwaysRender ? S((m(), r("div", {
|
|
1962
|
+
key: 0,
|
|
1963
|
+
ref_key: "backdrop",
|
|
1964
|
+
ref: d,
|
|
1965
|
+
class: "fz-dialog__backdrop w-screen h-screen fixed flex flex-col items-center justify-start sm:justify-center z-20"
|
|
1966
|
+
}, [i("dialog", {
|
|
1967
|
+
ref_key: "dialog",
|
|
1968
|
+
ref: l,
|
|
1969
|
+
onClose: k,
|
|
1970
|
+
class: u([ie, A.value])
|
|
1971
|
+
}, [i("div", {
|
|
1972
|
+
ref_key: "innerDialog",
|
|
1973
|
+
ref: _,
|
|
1974
|
+
class: u([re, j.value])
|
|
1975
|
+
}, [
|
|
1976
|
+
i("div", te, [g(e.$slots, "header", {}, void 0, !0)]),
|
|
1977
|
+
i("div", { class: u(["grow p-12 overflow-auto", t.bodyClasses]) }, [g(e.$slots, "body", {}, void 0, !0)], 2),
|
|
1978
|
+
e.$slots.footer ? (m(), r("div", ne, [g(e.$slots, "footer", {}, void 0, !0)])) : n("", !0)
|
|
1979
|
+
], 2)], 34)], 512)), [[y, v.value]]) : n("", !0);
|
|
1980
|
+
}
|
|
1981
|
+
}), [["__scopeId", "data-v-ba12262d"]]), ae = { class: "grow h-28 font-medium" }, oe = {
|
|
1982
|
+
method: "dialog",
|
|
1983
|
+
class: "w-full h-full"
|
|
1984
|
+
}, se = /* @__PURE__ */ c({
|
|
1985
|
+
__name: "FzConfirmDialog",
|
|
1986
|
+
props: {
|
|
1987
|
+
size: { default: "md" },
|
|
1988
|
+
title: {},
|
|
1989
|
+
confirmLabel: {},
|
|
1990
|
+
cancelLabel: {},
|
|
1991
|
+
text: {},
|
|
1992
|
+
isDrawer: { type: Boolean },
|
|
1993
|
+
closeOnBackdrop: { type: Boolean },
|
|
1994
|
+
closeOnEscape: { type: Boolean },
|
|
1995
|
+
bodyClasses: {},
|
|
1996
|
+
shouldAlwaysRender: { type: Boolean },
|
|
1997
|
+
footerEnabled: {
|
|
1998
|
+
type: Boolean,
|
|
1999
|
+
default: !0
|
|
2000
|
+
},
|
|
2001
|
+
cancelButtonEnabled: {
|
|
2002
|
+
type: Boolean,
|
|
2003
|
+
default: !0
|
|
2004
|
+
},
|
|
2005
|
+
disableConfirm: {
|
|
2006
|
+
type: Boolean,
|
|
2007
|
+
default: !1
|
|
2008
|
+
},
|
|
2009
|
+
confirmButtonEnabled: {
|
|
2010
|
+
type: Boolean,
|
|
2011
|
+
default: !0
|
|
2012
|
+
},
|
|
2013
|
+
confirmButtonVariant: {},
|
|
2014
|
+
doesConfirmButtonCloseDialog: {
|
|
2015
|
+
type: Boolean,
|
|
2016
|
+
default: !0
|
|
2017
|
+
},
|
|
2018
|
+
doesCancelButtonCloseDialog: {
|
|
2019
|
+
type: Boolean,
|
|
2020
|
+
default: !0
|
|
2021
|
+
},
|
|
2022
|
+
footerClasses: {}
|
|
2023
|
+
},
|
|
2024
|
+
emits: ["fzmodal:confirm", "fzmodal:cancel"],
|
|
2025
|
+
setup(r, { expose: c, emit: d }) {
|
|
2026
|
+
let f = r, p = d, y = h(), b = h(!1), S = ["flex flex-row items-center text-xl grow"], E = e(() => ({
|
|
2027
|
+
"h-32": f.isDrawer,
|
|
2028
|
+
"h-28": !f.isDrawer
|
|
2029
|
+
})), D = ["flex flex-row items-center h-32 grow justify-end"], O = {
|
|
2030
|
+
"h-32": !f.isDrawer,
|
|
2031
|
+
"h-40": f.isDrawer
|
|
2032
|
+
}, k = () => {
|
|
2033
|
+
y.value?.show(), b.value = !0;
|
|
2034
|
+
}, A = () => {
|
|
2035
|
+
y.value?.close(), b.value = !1;
|
|
2036
|
+
}, j = () => {
|
|
2037
|
+
f.doesCancelButtonCloseDialog && (y.value?.close(), b.value = !1), p("fzmodal:cancel");
|
|
2038
|
+
}, M = () => {
|
|
2039
|
+
f.doesConfirmButtonCloseDialog && (y.value?.close(), b.value = !1), p("fzmodal:confirm");
|
|
2040
|
+
};
|
|
2041
|
+
return c({
|
|
2042
|
+
handleCancel: j,
|
|
2043
|
+
handleConfirm: M,
|
|
2044
|
+
visible: b,
|
|
2045
|
+
show: k,
|
|
2046
|
+
close: A
|
|
2047
|
+
}), (e, c) => (m(), t($, l(f, {
|
|
2048
|
+
ref_key: "dialog",
|
|
2049
|
+
ref: y,
|
|
2050
|
+
"onFzmodal:cancel": c[0] ||= (e) => p("fzmodal:cancel")
|
|
2051
|
+
}), a({
|
|
2052
|
+
header: x(() => [g(e.$slots, "header", {}, () => [i("div", { class: u([S, E.value]) }, [i("div", ae, _(r.title), 1), s(v(T), {
|
|
2053
|
+
onClick: j,
|
|
2054
|
+
class: "ml-12",
|
|
2055
|
+
iconName: "xmark-large",
|
|
2056
|
+
size: "sm",
|
|
2057
|
+
variant: "invisible"
|
|
2058
|
+
})], 2)])]),
|
|
2059
|
+
body: x(() => [g(e.$slots, "body")]),
|
|
2060
|
+
_: 2
|
|
2061
|
+
}, [r.footerEnabled ? {
|
|
2062
|
+
name: "footer",
|
|
2063
|
+
fn: x(() => [g(e.$slots, "footer", {}, () => [i("form", oe, [i("div", { class: u([
|
|
2064
|
+
D,
|
|
2065
|
+
O,
|
|
2066
|
+
r.footerClasses
|
|
2067
|
+
]) }, [r.cancelButtonEnabled ? (m(), t(v(w), {
|
|
2068
|
+
key: 0,
|
|
2069
|
+
variant: "invisible",
|
|
2070
|
+
onClick: C(j, ["prevent"]),
|
|
2071
|
+
value: "false"
|
|
2072
|
+
}, {
|
|
2073
|
+
default: x(() => [o(_(r.cancelLabel), 1)]),
|
|
2074
|
+
_: 1
|
|
2075
|
+
})) : n("", !0), r.confirmButtonEnabled ? (m(), t(v(w), {
|
|
2076
|
+
key: 1,
|
|
2077
|
+
class: "ml-12",
|
|
2078
|
+
onClick: C(M, ["prevent"]),
|
|
2079
|
+
disabled: r.disableConfirm,
|
|
2080
|
+
value: "true",
|
|
2081
|
+
variant: r.confirmButtonVariant
|
|
2082
|
+
}, {
|
|
2083
|
+
default: x(() => [o(_(r.confirmLabel), 1)]),
|
|
2084
|
+
_: 1
|
|
2085
|
+
}, 8, ["disabled", "variant"])) : n("", !0)], 2)])])]),
|
|
2086
|
+
key: "0"
|
|
2087
|
+
} : void 0]), 1040));
|
|
2088
|
+
}
|
|
1552
2089
|
});
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
ze as FzDialog
|
|
1556
|
-
};
|
|
2090
|
+
//#endregion
|
|
2091
|
+
export { se as FzConfirmDialog, $ as FzDialog };
|