@epigraph/solutions 0.0.4-alpha → 0.1.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.
@@ -1,1214 +0,0 @@
1
- import { n as $, r as v, bw as f, i as b } from "./three.module-CYfxkCtM.js";
2
- /**
3
- * @license
4
- * Copyright 2017 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- function C(r) {
8
- return $({ ...r, state: !0, attribute: !1 });
9
- }
10
- const d = '@font-face{font-family:Helvetica Neue;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaNeue/HelveticaNeue-Light.otf) format("opentype");font-weight:300;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Light.otf) format("opentype");font-weight:300;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-LightOblique.otf) format("opentype");font-weight:300;font-style:italic}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Light.otf) format("opentype");font-weight:400;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-LightOblique.otf) format("opentype");font-weight:400;font-style:italic}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Roman.otf) format("opentype");font-weight:500;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Oblique.otf) format("opentype");font-weight:500;font-style:italic}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Bold.otf) format("opentype");font-weight:700;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-BoldOblique.otf) format("opentype");font-weight:700;font-style:italic}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-Black.otf) format("opentype");font-weight:900;font-style:normal}@font-face{font-family:Helvetica LT Pro;src:url(https://asset.myepigraph.com/design-assets/fonts/HelveticaLTPro/HelveticaLTPro-BlackOblique.otf) format("opentype");font-weight:900;font-style:italic}@font-face{font-family:PPMori-Regular;src:url(https://asset.myepigraph.com/design-assets/fonts/PPMori/PPMori-Regular.woff2) format("woff2")}@font-face{font-family:PPMori-Bold;src:url(https://asset.myepigraph.com/design-assets/fonts/PPMori/PPMori-Bold.woff2) format("woff2")}', g = {
11
- Color: {
12
- Black: {
13
- 25: {
14
- $type: "color",
15
- $value: "rgba(12, 12, 13, 0.0250)"
16
- },
17
- 50: {
18
- $type: "color",
19
- $value: "rgba(12, 12, 13, 0.0500)"
20
- },
21
- 100: {
22
- $type: "color",
23
- $value: "rgba(12, 12, 13, 0.1000)"
24
- },
25
- 200: {
26
- $type: "color",
27
- $value: "rgba(12, 12, 13, 0.2000)"
28
- },
29
- 300: {
30
- $type: "color",
31
- $value: "rgba(12, 12, 13, 0.3000)"
32
- },
33
- 400: {
34
- $type: "color",
35
- $value: "rgba(12, 12, 13, 0.4000)"
36
- },
37
- 500: {
38
- $type: "color",
39
- $value: "rgba(12, 12, 13, 0.5000)"
40
- },
41
- 600: {
42
- $type: "color",
43
- $value: "rgba(12, 12, 13, 0.6000)"
44
- },
45
- 700: {
46
- $type: "color",
47
- $value: "rgba(12, 12, 13, 0.7000)"
48
- },
49
- 800: {
50
- $type: "color",
51
- $value: "rgba(12, 12, 13, 0.8000)"
52
- },
53
- 900: {
54
- $type: "color",
55
- $value: "rgba(12, 12, 13, 0.9000)"
56
- },
57
- 1e3: {
58
- $type: "color",
59
- $value: "#0c0c0d"
60
- }
61
- },
62
- White: {
63
- 25: {
64
- $type: "color",
65
- $value: "rgba(255, 255, 255, 0.0250)"
66
- },
67
- 50: {
68
- $type: "color",
69
- $value: "rgba(255, 255, 255, 0.0500)"
70
- },
71
- 100: {
72
- $type: "color",
73
- $value: "rgba(255, 255, 255, 0.1000)"
74
- },
75
- 200: {
76
- $type: "color",
77
- $value: "rgba(255, 255, 255, 0.2000)"
78
- },
79
- 300: {
80
- $type: "color",
81
- $value: "rgba(255, 255, 255, 0.3000)"
82
- },
83
- 400: {
84
- $type: "color",
85
- $value: "rgba(255, 255, 255, 0.4000)"
86
- },
87
- 500: {
88
- $type: "color",
89
- $value: "rgba(255, 255, 255, 0.5000)"
90
- },
91
- 600: {
92
- $type: "color",
93
- $value: "rgba(255, 255, 255, 0.6000)"
94
- },
95
- 700: {
96
- $type: "color",
97
- $value: "rgba(255, 255, 255, 0.7000)"
98
- },
99
- 800: {
100
- $type: "color",
101
- $value: "rgba(255, 255, 255, 0.8000)"
102
- },
103
- 900: {
104
- $type: "color",
105
- $value: "rgba(255, 255, 255, 0.9000)"
106
- },
107
- 1e3: {
108
- $type: "color",
109
- $value: "#ffffff"
110
- }
111
- },
112
- Green: {
113
- 100: {
114
- $type: "color",
115
- $value: "#ebffee"
116
- },
117
- 200: {
118
- $type: "color",
119
- $value: "#cff7d3"
120
- },
121
- 300: {
122
- $type: "color",
123
- $value: "#aff4c6"
124
- },
125
- 400: {
126
- $type: "color",
127
- $value: "#85e0a3"
128
- },
129
- 500: {
130
- $type: "color",
131
- $value: "#14ae5c"
132
- },
133
- 600: {
134
- $type: "color",
135
- $value: "#009951"
136
- },
137
- 700: {
138
- $type: "color",
139
- $value: "#008043"
140
- },
141
- 800: {
142
- $type: "color",
143
- $value: "#02542d"
144
- },
145
- 900: {
146
- $type: "color",
147
- $value: "#024023"
148
- },
149
- 1e3: {
150
- $type: "color",
151
- $value: "#062d1b"
152
- }
153
- },
154
- Red: {
155
- 100: {
156
- $type: "color",
157
- $value: "#fee9e7"
158
- },
159
- 200: {
160
- $type: "color",
161
- $value: "#fdd3d0"
162
- },
163
- 300: {
164
- $type: "color",
165
- $value: "#fcb3ad"
166
- },
167
- 400: {
168
- $type: "color",
169
- $value: "#f4776a"
170
- },
171
- 500: {
172
- $type: "color",
173
- $value: "#ec221f"
174
- },
175
- 600: {
176
- $type: "color",
177
- $value: "#c00f0c"
178
- },
179
- 700: {
180
- $type: "color",
181
- $value: "#900b09"
182
- },
183
- 800: {
184
- $type: "color",
185
- $value: "#690807"
186
- },
187
- 900: {
188
- $type: "color",
189
- $value: "#4d0b0a"
190
- },
191
- 1e3: {
192
- $type: "color",
193
- $value: "#300603"
194
- }
195
- },
196
- Yellow: {
197
- 100: {
198
- $type: "color",
199
- $value: "#fffbeb"
200
- },
201
- 200: {
202
- $type: "color",
203
- $value: "#fff1c2"
204
- },
205
- 300: {
206
- $type: "color",
207
- $value: "#ffe8a3"
208
- },
209
- 400: {
210
- $type: "color",
211
- $value: "#e8b931"
212
- },
213
- 500: {
214
- $type: "color",
215
- $value: "#e5a000"
216
- },
217
- 600: {
218
- $type: "color",
219
- $value: "#bf6a02"
220
- },
221
- 700: {
222
- $type: "color",
223
- $value: "#975102"
224
- },
225
- 800: {
226
- $type: "color",
227
- $value: "#682d03"
228
- },
229
- 900: {
230
- $type: "color",
231
- $value: "#522504"
232
- },
233
- 1e3: {
234
- $type: "color",
235
- $value: "#401b01"
236
- }
237
- },
238
- Blue: {
239
- 100: {
240
- $type: "color",
241
- $value: "#fbfdff"
242
- },
243
- 200: {
244
- $type: "color",
245
- $value: "#eaf4ff"
246
- },
247
- 300: {
248
- $type: "color",
249
- $value: "#d5ebff"
250
- },
251
- 400: {
252
- $type: "color",
253
- $value: "#c0e1ff"
254
- },
255
- 500: {
256
- $type: "color",
257
- $value: "#91d0ff"
258
- },
259
- 600: {
260
- $type: "color",
261
- $value: "#0094d5"
262
- },
263
- 700: {
264
- $type: "color",
265
- $value: "#00679b"
266
- },
267
- 800: {
268
- $type: "color",
269
- $value: "#003a5a"
270
- },
271
- 900: {
272
- $type: "color",
273
- $value: "#003a5a"
274
- },
275
- 1e3: {
276
- $type: "color",
277
- $value: "#002133"
278
- }
279
- },
280
- Slate: {
281
- 100: {
282
- $type: "color",
283
- $value: "#f5f5f5"
284
- },
285
- 200: {
286
- $type: "color",
287
- $value: "#e3e3e3"
288
- },
289
- 300: {
290
- $type: "color",
291
- $value: "#cdcdcd"
292
- },
293
- 400: {
294
- $type: "color",
295
- $value: "#b2b2b2"
296
- },
297
- 500: {
298
- $type: "color",
299
- $value: "#949494"
300
- },
301
- 600: {
302
- $type: "color",
303
- $value: "#767676"
304
- },
305
- 700: {
306
- $type: "color",
307
- $value: "#5a5a5a"
308
- },
309
- 800: {
310
- $type: "color",
311
- $value: "#434343"
312
- },
313
- 900: {
314
- $type: "color",
315
- $value: "#303030"
316
- },
317
- 1e3: {
318
- $type: "color",
319
- $value: "#242424"
320
- }
321
- },
322
- Grey: {
323
- 25: {
324
- $type: "color",
325
- $value: "#f5f5f5"
326
- },
327
- 50: {
328
- $type: "color",
329
- $value: "#f2f2f2"
330
- },
331
- 100: {
332
- $type: "color",
333
- $value: "#e6e6e6"
334
- },
335
- 200: {
336
- $type: "color",
337
- $value: "#cccccc"
338
- },
339
- 300: {
340
- $type: "color",
341
- $value: "#b3b3b3"
342
- },
343
- 400: {
344
- $type: "color",
345
- $value: "#999999"
346
- },
347
- 500: {
348
- $type: "color",
349
- $value: "#7b7b7b"
350
- },
351
- 600: {
352
- $type: "color",
353
- $value: "#666666"
354
- },
355
- 700: {
356
- $type: "color",
357
- $value: "#4d4d4d"
358
- },
359
- 800: {
360
- $type: "color",
361
- $value: "#333333"
362
- },
363
- 900: {
364
- $type: "color",
365
- $value: "#1a1a1a"
366
- },
367
- 1e3: {
368
- $type: "color",
369
- $value: "#0d0d0d"
370
- }
371
- },
372
- GreyAlpha: {
373
- 25: {
374
- $type: "color",
375
- $value: "rgba(248, 248, 248, 0.8000)"
376
- },
377
- 100: {
378
- $type: "color",
379
- $value: "rgba(242, 242, 242, 0.8000)"
380
- },
381
- 500: {
382
- $type: "color",
383
- $value: "rgba(204, 204, 204, 0.2000)"
384
- },
385
- 700: {
386
- $type: "color",
387
- $value: "rgba(204, 204, 204, 0.6000)"
388
- },
389
- 800: {
390
- $type: "color",
391
- $value: "rgba(186, 186, 186, 0.6000)"
392
- },
393
- 900: {
394
- $type: "color",
395
- $value: "rgba(50, 50, 50, 0.9000)"
396
- },
397
- "05": {
398
- $type: "color",
399
- $value: "rgba(253, 253, 253, 0.8000)"
400
- }
401
- }
402
- },
403
- Unit: {
404
- Space: {
405
- 0: {
406
- $type: "number",
407
- $value: "0px"
408
- },
409
- 100: {
410
- $type: "number",
411
- $value: "4px"
412
- },
413
- 150: {
414
- $type: "number",
415
- $value: "6px"
416
- },
417
- 200: {
418
- $type: "number",
419
- $value: "8px"
420
- },
421
- 300: {
422
- $type: "number",
423
- $value: "12px"
424
- },
425
- 400: {
426
- $type: "number",
427
- $value: "16px"
428
- },
429
- 500: {
430
- $type: "number",
431
- $value: "20px"
432
- },
433
- 600: {
434
- $type: "number",
435
- $value: "24px"
436
- },
437
- 800: {
438
- $type: "number",
439
- $value: "32px"
440
- },
441
- 1e3: {
442
- $type: "number",
443
- $value: "40px"
444
- },
445
- 1200: {
446
- $type: "number",
447
- $value: "48px"
448
- },
449
- 1600: {
450
- $type: "number",
451
- $value: "64px"
452
- },
453
- 2e3: {
454
- $type: "number",
455
- $value: "80px"
456
- },
457
- 2400: {
458
- $type: "number",
459
- $value: "96px"
460
- },
461
- 2800: {
462
- $type: "number",
463
- $value: "112px"
464
- },
465
- 3200: {
466
- $type: "number",
467
- $value: "128px"
468
- },
469
- 3600: {
470
- $type: "number",
471
- $value: "144px"
472
- },
473
- 4e3: {
474
- $type: "number",
475
- $value: "160px"
476
- },
477
- 4400: {
478
- $type: "number",
479
- $value: "176px"
480
- },
481
- 4800: {
482
- $type: "number",
483
- $value: "192px"
484
- },
485
- 5200: {
486
- $type: "number",
487
- $value: "208px"
488
- },
489
- 5600: {
490
- $type: "number",
491
- $value: "224px"
492
- },
493
- 6e3: {
494
- $type: "number",
495
- $value: "240px"
496
- },
497
- 6400: {
498
- $type: "number",
499
- $value: "256px"
500
- },
501
- 7200: {
502
- $type: "number",
503
- $value: "288px"
504
- },
505
- 8e3: {
506
- $type: "number",
507
- $value: "320px"
508
- },
509
- 9600: {
510
- $type: "number",
511
- $value: "384px"
512
- },
513
- "0125": {
514
- $type: "number",
515
- $value: "0.5px"
516
- },
517
- "025": {
518
- $type: "number",
519
- $value: "1px"
520
- },
521
- "0325": {
522
- $type: "number",
523
- $value: "1.5px"
524
- },
525
- "050": {
526
- $type: "number",
527
- $value: "2px"
528
- }
529
- },
530
- Stack: {
531
- 100: {
532
- $type: "number",
533
- $value: "-4px"
534
- },
535
- 200: {
536
- $type: "number",
537
- $value: "-8px"
538
- },
539
- 300: {
540
- $type: "number",
541
- $value: "-12px"
542
- },
543
- 400: {
544
- $type: "number",
545
- $value: "-16px"
546
- },
547
- 800: {
548
- $type: "number",
549
- $value: "-32px"
550
- },
551
- 1e3: {
552
- $type: "number",
553
- $value: "-40px"
554
- },
555
- 1600: {
556
- $type: "number",
557
- $value: "-64px"
558
- },
559
- 2400: {
560
- $type: "number",
561
- $value: "-96px"
562
- },
563
- 3200: {
564
- $type: "number",
565
- $value: "-128px"
566
- },
567
- 4e3: {
568
- $type: "number",
569
- $value: "-160px"
570
- },
571
- 4800: {
572
- $type: "number",
573
- $value: "-192px"
574
- },
575
- 5600: {
576
- $type: "number",
577
- $value: "-224px"
578
- },
579
- 7200: {
580
- $type: "number",
581
- $value: "-288px"
582
- },
583
- 9600: {
584
- $type: "number",
585
- $value: "-384px"
586
- },
587
- "0125": {
588
- $type: "number",
589
- $value: "-0.5px"
590
- },
591
- "025": {
592
- $type: "number",
593
- $value: "-1px"
594
- },
595
- "0325": {
596
- $type: "number",
597
- $value: "-1.5px"
598
- },
599
- "050": {
600
- $type: "number",
601
- $value: "-2px"
602
- },
603
- "075": {
604
- $type: "number",
605
- $value: "-3px"
606
- }
607
- },
608
- Size: {
609
- 4: {
610
- $type: "number",
611
- $value: "4px"
612
- },
613
- 6: {
614
- $type: "number",
615
- $value: "6px"
616
- },
617
- 8: {
618
- $type: "number",
619
- $value: "8px"
620
- },
621
- 10: {
622
- $type: "number",
623
- $value: "10px"
624
- },
625
- 12: {
626
- $type: "number",
627
- $value: "12px"
628
- },
629
- 14: {
630
- $type: "number",
631
- $value: "14px"
632
- },
633
- 16: {
634
- $type: "number",
635
- $value: "16px"
636
- },
637
- 18: {
638
- $type: "number",
639
- $value: "18px"
640
- },
641
- 20: {
642
- $type: "number",
643
- $value: "20px"
644
- },
645
- 22: {
646
- $type: "number",
647
- $value: "22px"
648
- },
649
- 24: {
650
- $type: "number",
651
- $value: "24px"
652
- },
653
- 28: {
654
- $type: "number",
655
- $value: "28px"
656
- },
657
- 30: {
658
- $type: "number",
659
- $value: "30px"
660
- },
661
- 32: {
662
- $type: "number",
663
- $value: "32px"
664
- },
665
- 40: {
666
- $type: "number",
667
- $value: "40px"
668
- },
669
- 48: {
670
- $type: "number",
671
- $value: "48px"
672
- },
673
- 64: {
674
- $type: "number",
675
- $value: "64px"
676
- },
677
- 80: {
678
- $type: "number",
679
- $value: "80px"
680
- },
681
- 96: {
682
- $type: "number",
683
- $value: "96px"
684
- },
685
- 112: {
686
- $type: "number",
687
- $value: "112px"
688
- },
689
- 128: {
690
- $type: "number",
691
- $value: "128px"
692
- },
693
- 144: {
694
- $type: "number",
695
- $value: "144px"
696
- },
697
- 160: {
698
- $type: "number",
699
- $value: "160px"
700
- },
701
- 176: {
702
- $type: "number",
703
- $value: "176px"
704
- },
705
- 224: {
706
- $type: "number",
707
- $value: "224px"
708
- }
709
- },
710
- Resolution: {
711
- XxsmallScreenMin: {
712
- $type: "number",
713
- $value: "375px"
714
- },
715
- XsmallScreenMin: {
716
- $type: "number",
717
- $value: "480px"
718
- },
719
- SmallScreenMin: {
720
- $type: "number",
721
- $value: "576px"
722
- },
723
- MediumScreenMin: {
724
- $type: "number",
725
- $value: "768px"
726
- },
727
- LargeScreenMin: {
728
- $type: "number",
729
- $value: "992px"
730
- },
731
- XlargeScreenMin: {
732
- $type: "number",
733
- $value: "1200px"
734
- },
735
- XxlargeScreenMin: {
736
- $type: "number",
737
- $value: "1400px"
738
- },
739
- XxxsmallScreenMax: {
740
- $type: "number",
741
- $value: "374px"
742
- },
743
- XxsmallScreenMax: {
744
- $type: "number",
745
- $value: "479px"
746
- },
747
- XsmallScreenMax: {
748
- $type: "number",
749
- $value: "575px"
750
- },
751
- SmallScreenMax: {
752
- $type: "number",
753
- $value: "767px"
754
- },
755
- MediumScreenMax: {
756
- $type: "number",
757
- $value: "991px"
758
- },
759
- LargeScreenMax: {
760
- $type: "number",
761
- $value: "1199px"
762
- },
763
- XlargeScreenMax: {
764
- $type: "number",
765
- $value: "1399px"
766
- },
767
- XxlargeScreenMax: {
768
- $type: "number",
769
- $value: "1920px"
770
- }
771
- }
772
- },
773
- Font: {
774
- Family: {
775
- Main: {
776
- $type: "string",
777
- $value: "PP Mori"
778
- },
779
- Body: {
780
- $type: "string",
781
- $value: "Helvetica LT Pro"
782
- },
783
- Epigraph: {
784
- $type: "string",
785
- $value: "PP Mori"
786
- }
787
- }
788
- }
789
- }, y = {
790
- Color: {
791
- Brand: {
792
- Base: {
793
- $type: "color",
794
- $value: "#335166",
795
- $web: "var(--color-brand-base)"
796
- },
797
- BaseSecondary: {
798
- $type: "color",
799
- $value: "#2b4354",
800
- $web: "var(--color-brand-base-secondary)"
801
- },
802
- BaseTertiary: {
803
- $type: "color",
804
- $value: "#202f3a",
805
- $web: "var(--color-brand-base-tertiary)"
806
- },
807
- Accent: {
808
- $type: "color",
809
- $value: "#4276cf",
810
- $web: "var(--color-brand-accent)"
811
- },
812
- AccentSecondary: {
813
- $type: "color",
814
- $value: "#3761a8",
815
- $web: "var(--color-brand-accent-secondary)"
816
- },
817
- AccentTertiary: {
818
- $type: "color",
819
- $value: "#3761a8",
820
- $web: "var(--color-brand-accent-tertiary)"
821
- },
822
- Light: {
823
- $type: "color",
824
- $value: "#f8fbf6",
825
- $web: "var(--color-brand-light)"
826
- },
827
- Dark: {
828
- $type: "color",
829
- $value: "#111b22",
830
- $web: "var(--color-brand-dark)"
831
- }
832
- }
833
- },
834
- Font: {
835
- Brand: {
836
- Heading: {
837
- $type: "string",
838
- $value: "PP Mori",
839
- $web: "var(--font-brand-heading)"
840
- },
841
- Body: {
842
- $type: "string",
843
- $value: "Helvetica LT Pro",
844
- $web: "var(--font-brand-body)"
845
- }
846
- }
847
- },
848
- Unit: {
849
- Brand: {
850
- Radius: {
851
- $type: "number",
852
- $value: "4px",
853
- $web: "var(--unit-brand-radius)"
854
- }
855
- }
856
- }
857
- }, P = {
858
- Color: {
859
- Surface: {
860
- Plain: {
861
- $value: "{Primitives.Color.White.1000}"
862
- },
863
- NeutralPrimary: {
864
- $value: "{Primitives.Color.Grey.100}"
865
- },
866
- NeutralSecondary: {
867
- $value: "{Primitives.Color.Grey.50}"
868
- },
869
- NeutralTertiary: {
870
- $value: "{Primitives.Color.Grey.25}"
871
- },
872
- ShadowSecondary: {
873
- $value: "{Primitives.Color.Black.200}"
874
- }
875
- },
876
- Fill: {
877
- Accent: {
878
- $value: "{BrandPrimitives.Color.Brand.Accent}"
879
- },
880
- AccentHover: {
881
- $value: "{BrandPrimitives.Color.Brand.AccentSecondary}"
882
- },
883
- AccentPress: {
884
- $value: "{BrandPrimitives.Color.Brand.AccentTertiary}"
885
- },
886
- Base: {
887
- $value: "{BrandPrimitives.Color.Brand.Base}"
888
- },
889
- BaseHover: {
890
- $value: "{BrandPrimitives.Color.Brand.BaseSecondary}"
891
- },
892
- BasePress: {
893
- $value: "{BrandPrimitives.Color.Brand.BaseTertiary}"
894
- },
895
- NeutralPrimary: {
896
- $value: "{Primitives.Color.Grey.700}"
897
- },
898
- NeutralSecondary: {
899
- $value: "{Primitives.Color.Grey.300}"
900
- },
901
- NeutralTertiary: {
902
- $value: "{Primitives.Color.Grey.100}"
903
- },
904
- SubtlePrimary: {
905
- $value: "{Primitives.Color.GreyAlpha.100}"
906
- },
907
- SubtleSecondary: {
908
- $value: "{Primitives.Color.GreyAlpha.25}"
909
- },
910
- ErrorPrimary: {
911
- $value: "{Primitives.Color.Red.600}"
912
- },
913
- Disabled: {
914
- $value: "{Primitives.Color.Grey.200}"
915
- },
916
- HotspotSecondary: {
917
- $value: "{Primitives.Color.GreyAlpha.800}"
918
- }
919
- },
920
- Icon: {
921
- NeutralPrimary: {
922
- $value: "{Primitives.Color.Grey.800}"
923
- }
924
- },
925
- Text: {
926
- Invert: {
927
- $value: "{Primitives.Color.White.1000}"
928
- },
929
- NeutralPrimary: {
930
- $value: "{Primitives.Color.Grey.800}"
931
- },
932
- NeutralSecondary: {
933
- $value: "{Primitives.Color.Grey.700}"
934
- },
935
- Disabled: {
936
- $value: "{Primitives.Color.Grey.300}"
937
- }
938
- },
939
- Border: {
940
- AltContrast: {
941
- $value: "{BrandPrimitives.Color.Brand.Dark}"
942
- },
943
- SubtlePrimary: {
944
- $value: "{Primitives.Color.Grey.300}"
945
- }
946
- }
947
- },
948
- Size: {
949
- Text: {
950
- Small: {
951
- $value: "{Primitives.Unit.Size.16}"
952
- },
953
- Medium: {
954
- $value: "{Primitives.Unit.Size.18}"
955
- },
956
- Large: {
957
- $value: "{Primitives.Unit.Size.20}"
958
- }
959
- },
960
- Icon: {
961
- Small: {
962
- $value: "{Primitives.Unit.Size.20}"
963
- },
964
- Medium: {
965
- $value: "{Primitives.Unit.Size.24}"
966
- },
967
- Large: {
968
- $value: "{Primitives.Unit.Size.28}"
969
- }
970
- },
971
- Radius: {
972
- Medium: {
973
- $value: "{Primitives.Unit.Space.150}"
974
- },
975
- Full: {
976
- $value: "{Primitives.Unit.Space.6000}"
977
- }
978
- },
979
- Stroke: {
980
- Regular: {
981
- $value: "{Primitives.Unit.Space.025}"
982
- },
983
- Thick: {
984
- $value: "{Primitives.Unit.Space.050}"
985
- }
986
- },
987
- Shadow: {
988
- None: {
989
- $value: "{Primitives.Unit.Space.0}"
990
- },
991
- Xsmall: {
992
- $value: "{Primitives.Unit.Space.025}"
993
- },
994
- Small: {
995
- $value: "{Primitives.Unit.Space.0325}"
996
- }
997
- },
998
- Blur: {
999
- Small: {
1000
- $value: "{Primitives.Unit.Space.100}"
1001
- }
1002
- }
1003
- },
1004
- Space: {
1005
- Padding: {
1006
- Small: {
1007
- $value: "{Primitives.Unit.Space.300}"
1008
- },
1009
- Medium: {
1010
- $value: "{Primitives.Unit.Space.400}"
1011
- },
1012
- Regular: {
1013
- $value: "{Primitives.Unit.Space.600}"
1014
- }
1015
- },
1016
- Gap: {
1017
- Small: {
1018
- $value: "{Primitives.Unit.Space.200}"
1019
- },
1020
- Regular: {
1021
- $value: "{Primitives.Unit.Space.400}"
1022
- },
1023
- Xxlarge: {
1024
- $value: "{Primitives.Unit.Space.800}"
1025
- }
1026
- }
1027
- },
1028
- Font: {
1029
- Family: {
1030
- Main: {
1031
- $value: "Helvetica Neue"
1032
- },
1033
- Body: {
1034
- $value: "Helvetica Neue"
1035
- }
1036
- },
1037
- Tracking: {
1038
- Normal: {
1039
- $value: "{Primitives.Unit.Space.0}"
1040
- }
1041
- }
1042
- }
1043
- };
1044
- function x(r) {
1045
- const t = /\{Primitives\.(.*?)}/, e = String(r).match(t), n = /\{BrandPrimitives\.(.*?)}/, l = String(r).match(n);
1046
- let o = r;
1047
- if (e) {
1048
- const a = e[1].split(".");
1049
- o = g[a[0]][a[1]][a[2]].$value;
1050
- } else if (l) {
1051
- const a = l[1].split("."), p = y[a[0]][a[1]][a[2]], c = p.$web;
1052
- o = `${c.substring(0, c.length - 1)}, ${p.$value})`;
1053
- }
1054
- return v(o);
1055
- }
1056
- const T = {
1057
- arImage: "/Images/phone.png",
1058
- poweredByEpigraphFooterText: "https://asset.myepigraph.com/design-assets/icons/powered-by-epigraph-footer-text.png",
1059
- sampleQrCode: "https://asset.myepigraph.com/design-assets/icons/sample-qr-code.png"
1060
- };
1061
- function h() {
1062
- const r = {};
1063
- for (const [t, e] of Object.entries(y))
1064
- for (const [n, l] of Object.entries(e))
1065
- for (const [o, a] of Object.entries(l)) {
1066
- const p = `${t}${n}${o}`;
1067
- r[p] = {
1068
- name: v(a.$web),
1069
- defaultValue: a.$value,
1070
- argType: {
1071
- control: a.$type
1072
- }
1073
- };
1074
- }
1075
- return r;
1076
- }
1077
- const H = h(), i = {
1078
- size: {
1079
- name: "size",
1080
- defaultValue: "small",
1081
- argType: {
1082
- options: ["small", "medium", "large"],
1083
- control: "select"
1084
- }
1085
- },
1086
- theme: {
1087
- name: "theme",
1088
- defaultValue: "light",
1089
- argType: {
1090
- options: ["light", "dark"],
1091
- control: "select"
1092
- }
1093
- },
1094
- disabled: {
1095
- name: "disabled",
1096
- defaultValue: !1,
1097
- argType: {
1098
- control: "boolean"
1099
- }
1100
- }
1101
- };
1102
- var S = Object.defineProperty, s = (r, t, e, n) => {
1103
- for (var l = void 0, o = r.length - 1, a; o >= 0; o--)
1104
- (a = r[o]) && (l = a(t, e, l) || l);
1105
- return l && S(t, e, l), l;
1106
- };
1107
- const u = class m extends f {
1108
- constructor() {
1109
- super(), this.epgOnClickEventName = "epgonclick", this.disabled = !1, this.theme = i.theme.defaultValue.toString(), this.size = i.size.defaultValue.toString(), m.ensureFontsAreLoaded();
1110
- }
1111
- static {
1112
- this.styles = [
1113
- b`
1114
- :host {
1115
- font-family: ${x(P.Font.Family.Main.$value)};
1116
- letter-spacing: 0.5px;
1117
- }
1118
-
1119
- :host([disabled]) {
1120
- cursor: not-allowed;
1121
- }
1122
-
1123
- :host([size="small"]) {
1124
- --size: "small";
1125
- }
1126
-
1127
- :host([size="medium"]) {
1128
- --size: "medium";
1129
- }
1130
-
1131
- :host([size="large"]) {
1132
- --size: "large";
1133
- }
1134
-
1135
- :host([theme="light"]) {
1136
- --theme: "light";
1137
- }
1138
-
1139
- :host([theme="dark"]) {
1140
- --theme: "dark";
1141
- }
1142
-
1143
- .hide {
1144
- display: none;
1145
- }
1146
- `
1147
- ];
1148
- }
1149
- /**
1150
- * We have to do this hack because:
1151
- * 1. Vite doesn't bundle nested imports as expected when bundled with "?inline" on font imports.
1152
- * 2. The way chrome vs safari load font face in different scopes https://github.com/lit/lit-element/issues/793
1153
- */
1154
- static ensureFontsAreLoaded() {
1155
- const t = "epigraphFonts";
1156
- document.head.querySelector(`#${t}`) || document.head.insertAdjacentHTML(
1157
- "beforeend",
1158
- `<style id=${t}>${d}</style>`
1159
- );
1160
- }
1161
- /**
1162
- * Conveniencne method to effectively get the slot children.
1163
- * If the the slot has injected elements, this method would return those,
1164
- * otherwise, return the default children.
1165
- *
1166
- * @param {HTMLSlotElement} slotElem The slot to be processes.
1167
- * @returns {Array<Element>}
1168
- */
1169
- getSlottedElements(t) {
1170
- const e = t.assignedElements();
1171
- return [...e.length > 0 ? e : t.children];
1172
- }
1173
- doClick() {
1174
- if (this.disabled)
1175
- return;
1176
- typeof this.onClickCallback == "function" && this.onClickCallback();
1177
- const t = new CustomEvent("epgonclick");
1178
- this.dispatchEvent(t);
1179
- }
1180
- showElement(t) {
1181
- const e = t.target;
1182
- e && (e.classList.remove("hide"), e.ariaHidden = "true");
1183
- }
1184
- hideElement(t) {
1185
- const e = t.target;
1186
- e && (e.classList.add("hide"), e.ariaHidden = "true");
1187
- }
1188
- showPlaceholderImage(t) {
1189
- const e = t.target;
1190
- e && (e.src = "https://placehold.co/100");
1191
- }
1192
- };
1193
- s([
1194
- $({ type: Boolean, attribute: i.disabled.name, reflect: !0 })
1195
- ], u.prototype, "disabled");
1196
- s([
1197
- $({ attribute: i.theme.name, type: String, reflect: !0 })
1198
- ], u.prototype, "theme");
1199
- s([
1200
- $({ attribute: i.size.name, type: String, reflect: !0 })
1201
- ], u.prototype, "size");
1202
- s([
1203
- $({ attribute: !1 })
1204
- ], u.prototype, "onClickCallback");
1205
- let L = u;
1206
- export {
1207
- L as B,
1208
- P as D,
1209
- T as E,
1210
- H as a,
1211
- i as b,
1212
- x as g,
1213
- C as r
1214
- };