@fiscozen/card 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/card.js CHANGED
@@ -1,1120 +1,1763 @@
1
- import { defineComponent as E, computed as r, createBlock as d, openBlock as n, resolveDynamicComponent as T, normalizeClass as s, withCtx as F, renderSlot as g, ref as B, onMounted as R, onUnmounted as Q, useSlots as Y, watch as q, createElementBlock as b, createCommentVNode as p, withDirectives as N, createElementVNode as w, toDisplayString as G, unref as i, withModifiers as P, vShow as $, createVNode as U } from "vue";
2
- import { FzIconButton as k, FzButton as H } from "@fiscozen/button";
3
- const J = /* @__PURE__ */ E({
4
- __name: "FzContainer",
5
- props: {
6
- main: { type: Boolean, default: !1 },
7
- gap: { default: "base" },
8
- tag: { default: "div" },
9
- alignItems: { default: void 0 },
10
- horizontal: { type: Boolean, default: !1 },
11
- layout: {}
12
- },
13
- setup(e) {
14
- const a = e, l = r(() => a.alignItems ?? (a.horizontal ? "center" : "stretch"));
15
- if (!a.horizontal && "layout" in a) {
16
- const o = a.layout;
17
- o && o !== "default" && console.error(
18
- `[FzContainer] The "layout" prop only works when horizontal is true. Current horizontal: ${a.horizontal}, layout: "${o}".`
19
- );
20
- }
21
- const t = r(() => {
22
- const o = a.main ? "main-content" : "section-content", y = [
23
- a.horizontal ? "fz-container--horizontal" : "fz-container--vertical",
24
- `gap-${o}-${a.gap}`,
25
- `align-items-${l.value}`
26
- ];
27
- if (a.horizontal) {
28
- const v = ("layout" in a ? a.layout : void 0) || "default";
29
- y.push(`layout-${v}`);
30
- }
31
- return y;
32
- });
33
- return (o, c) => (n(), d(T(a.tag), {
34
- class: s(["fz-container", t.value])
35
- }, {
36
- default: F(() => [
37
- g(o.$slots, "default", {}, void 0, !0)
38
- ]),
39
- _: 3
40
- }, 8, ["class"]));
41
- }
42
- }), K = (e, a) => {
43
- const l = e.__vccOpts || e;
44
- for (const [t, o] of a)
45
- l[t] = o;
46
- return l;
47
- }, X = /* @__PURE__ */ K(J, [["__scopeId", "data-v-8c40daeb"]]);
1
+ import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, onMounted as c, onUnmounted as l, openBlock as u, ref as d, renderSlot as f, resolveDynamicComponent as p, toDisplayString as m, unref as h, useSlots as g, vShow as _, watch as v, withCtx as y, withDirectives as b, withModifiers as x } from "vue";
2
+ import { FzButton as S, FzIconButton as C } from "@fiscozen/button";
3
+ //#endregion
4
+ //#region ../container/src/FzContainer.vue
5
+ var w = /* @__PURE__ */ ((e, t) => {
6
+ let n = e.__vccOpts || e;
7
+ for (let [e, r] of t) n[e] = r;
8
+ return n;
9
+ })(/* @__PURE__ */ o({
10
+ __name: "FzContainer",
11
+ props: {
12
+ main: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ gap: { default: "base" },
17
+ tag: { default: "div" },
18
+ alignItems: { default: void 0 },
19
+ horizontal: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ layout: {}
24
+ },
25
+ setup(n) {
26
+ let r = n, i = e(() => r.alignItems ?? (r.horizontal ? "center" : "stretch"));
27
+ if (!r.horizontal && "layout" in r) {
28
+ let e = r.layout;
29
+ e && e !== "default" && console.error(`[FzContainer] The "layout" prop only works when horizontal is true. Current horizontal: ${r.horizontal}, layout: "${e}".`);
30
+ }
31
+ let a = e(() => {
32
+ let e = r.main ? "main-content" : "section-content", t = [
33
+ r.horizontal ? "fz-container--horizontal" : "fz-container--vertical",
34
+ `gap-${e}-${r.gap}`,
35
+ `align-items-${i.value}`
36
+ ];
37
+ if (r.horizontal) {
38
+ let e = ("layout" in r ? r.layout : void 0) || "default";
39
+ t.push(`layout-${e}`);
40
+ }
41
+ return t;
42
+ });
43
+ return (e, n) => (u(), t(p(r.tag), { class: s(["fz-container", a.value]) }, {
44
+ default: y(() => [f(e.$slots, "default", {}, void 0, !0)]),
45
+ _: 3
46
+ }, 8, ["class"]));
47
+ }
48
+ }), [["__scopeId", "data-v-8c40daeb"]]);
48
49
  new DOMRect(0, 0, window.innerWidth, window.innerHeight);
49
- function Z(e) {
50
- const a = window.matchMedia(e), l = B(a.matches);
51
- function t(o) {
52
- l.value = o.matches;
53
- }
54
- return R(() => {
55
- a.addEventListener("change", t);
56
- }), Q(() => {
57
- a.removeEventListener("change", t);
58
- }), r(() => l.value);
50
+ //#endregion
51
+ //#region ../composables/src/composables/useMediaQuery.ts
52
+ function T(t) {
53
+ let n = window.matchMedia(t), r = d(n.matches);
54
+ function i(e) {
55
+ r.value = e.matches;
56
+ }
57
+ return c(() => {
58
+ n.addEventListener("change", i);
59
+ }), l(() => {
60
+ n.removeEventListener("change", i);
61
+ }), e(() => r.value);
59
62
  }
60
- const _ = {
61
- blue: {
62
- 50: {
63
- value: "#eff1ff",
64
- type: "color"
65
- },
66
- 100: {
67
- value: "#dee2ff",
68
- type: "color"
69
- },
70
- 200: {
71
- value: "#bdc5ff",
72
- type: "color"
73
- },
74
- 300: {
75
- value: "#9ca8ff",
76
- type: "color"
77
- },
78
- 400: {
79
- value: "#7b8bff",
80
- type: "color"
81
- },
82
- 500: {
83
- value: "#5a6eff",
84
- type: "color"
85
- },
86
- 600: {
87
- value: "#4858cc",
88
- type: "color"
89
- },
90
- 700: {
91
- value: "#364299",
92
- type: "color"
93
- },
94
- 800: {
95
- value: "#242c66",
96
- type: "color"
97
- },
98
- 900: {
99
- value: "#1b214c",
100
- type: "color"
101
- }
102
- },
103
- purple: {
104
- 50: {
105
- value: "#f8f4ff",
106
- type: "color"
107
- },
108
- 100: {
109
- value: "#f0e9ff",
110
- type: "color"
111
- },
112
- 200: {
113
- value: "#e1d3ff",
114
- type: "color"
115
- },
116
- 300: {
117
- value: "#d2bdff",
118
- type: "color"
119
- },
120
- 400: {
121
- value: "#c3a7ff",
122
- type: "color"
123
- },
124
- 500: {
125
- value: "#b491ff",
126
- type: "color"
127
- },
128
- 600: {
129
- value: "#9074cc",
130
- type: "color"
131
- },
132
- 700: {
133
- value: "#6c5799",
134
- type: "color"
135
- },
136
- 800: {
137
- value: "#483a66",
138
- type: "color"
139
- },
140
- 900: {
141
- value: "#241d33",
142
- type: "color"
143
- }
144
- },
145
- orange: {
146
- 50: {
147
- value: "#fff2ef",
148
- type: "color"
149
- },
150
- 100: {
151
- value: "#ffe4de",
152
- type: "color"
153
- },
154
- 200: {
155
- value: "#ffc9bd",
156
- type: "color"
157
- },
158
- 300: {
159
- value: "#ffae9c",
160
- type: "color"
161
- },
162
- 400: {
163
- value: "#ff937b",
164
- type: "color"
165
- },
166
- 500: {
167
- value: "#ff785a",
168
- type: "color"
169
- },
170
- 600: {
171
- value: "#cc6048",
172
- type: "color"
173
- },
174
- 700: {
175
- value: "#994836",
176
- type: "color"
177
- },
178
- 800: {
179
- value: "#663024",
180
- type: "color"
181
- },
182
- 900: {
183
- value: "#331812",
184
- type: "color"
185
- }
186
- },
187
- pink: {
188
- 50: {
189
- value: "#fff5f5",
190
- type: "color"
191
- },
192
- 100: {
193
- value: "#ffe0e0",
194
- type: "color"
195
- },
196
- 200: {
197
- value: "#ffcbcb",
198
- type: "color"
199
- },
200
- 300: {
201
- value: "#ffc0c0",
202
- type: "color"
203
- },
204
- 400: {
205
- value: "#ffabab",
206
- type: "color"
207
- },
208
- 500: {
209
- value: "#ff9696",
210
- type: "color"
211
- },
212
- 600: {
213
- value: "#cc7878",
214
- type: "color"
215
- },
216
- 700: {
217
- value: "#995a5a",
218
- type: "color"
219
- },
220
- 800: {
221
- value: "#663c3c",
222
- type: "color"
223
- },
224
- 900: {
225
- value: "#331e1e",
226
- type: "color"
227
- }
228
- },
229
- yellow: {
230
- 50: {
231
- value: "#fffbf4",
232
- type: "color"
233
- },
234
- 100: {
235
- value: "#fff3de",
236
- type: "color"
237
- },
238
- 200: {
239
- value: "#ffebc8",
240
- type: "color"
241
- },
242
- 300: {
243
- value: "#ffe7bd",
244
- type: "color"
245
- },
246
- 400: {
247
- value: "#ffdfa7",
248
- type: "color"
249
- },
250
- 500: {
251
- value: "#ffd791",
252
- type: "color"
253
- },
254
- 600: {
255
- value: "#ccac74",
256
- type: "color"
257
- },
258
- 700: {
259
- value: "#998157",
260
- type: "color"
261
- },
262
- 800: {
263
- value: "#806c49",
264
- type: "color"
265
- },
266
- 900: {
267
- value: "#4c402b",
268
- type: "color"
269
- }
270
- },
271
- semantic: {
272
- error: {
273
- 50: {
274
- value: "#fef3f3",
275
- type: "color"
276
- },
277
- 100: {
278
- value: "#f8baba",
279
- type: "color"
280
- },
281
- 200: {
282
- value: "#f04242",
283
- type: "color"
284
- },
285
- 300: {
286
- value: "#aa2f2f",
287
- type: "color"
288
- }
289
- },
290
- warning: {
291
- 50: {
292
- value: "#fff8f3",
293
- type: "color"
294
- },
295
- 100: {
296
- value: "#ffdabd",
297
- type: "color"
298
- },
299
- 200: {
300
- value: "#ffae4f",
301
- type: "color"
302
- },
303
- 300: {
304
- value: "#b47b38",
305
- type: "color"
306
- }
307
- },
308
- success: {
309
- 50: {
310
- value: "#f2f8f6",
311
- type: "color"
312
- },
313
- 100: {
314
- value: "#b5d8ce",
315
- type: "color"
316
- },
317
- 200: {
318
- value: "#0fa88c",
319
- type: "color"
320
- },
321
- 300: {
322
- value: "#0b7763",
323
- type: "color"
324
- }
325
- },
326
- info: {
327
- 50: {
328
- value: "#f3f7ff",
329
- type: "color"
330
- },
331
- 100: {
332
- value: "#b4c8e1",
333
- type: "color"
334
- },
335
- 200: {
336
- value: "#4e9fff",
337
- type: "color"
338
- },
339
- 300: {
340
- value: "#3770b4",
341
- type: "color"
342
- }
343
- }
344
- },
345
- background: {
346
- "white-smoke": {
347
- value: "#f7f6f3",
348
- type: "color"
349
- },
350
- seashell: {
351
- value: "#f8ece7",
352
- type: "color"
353
- },
354
- "pale-purple": {
355
- value: "#f2e6ff",
356
- type: "color"
357
- },
358
- "alice-blue": {
359
- value: "#ecf2fc",
360
- type: "color"
361
- }
362
- },
363
- grey: {
364
- 100: {
365
- value: "#e9edf0",
366
- type: "color"
367
- },
368
- 200: {
369
- value: "#d1dde6",
370
- type: "color"
371
- },
372
- 300: {
373
- value: "#9da9b2",
374
- type: "color"
375
- },
376
- 400: {
377
- value: "#6e777e",
378
- type: "color"
379
- },
380
- 500: {
381
- value: "#596167",
382
- type: "color"
383
- }
384
- },
385
- core: {
386
- white: {
387
- value: "#ffffff",
388
- type: "color"
389
- },
390
- black: {
391
- value: "#2c282f",
392
- type: "color"
393
- }
394
- },
395
- "font-sans": {
396
- "sharp-grotesk": {
397
- value: '"Sharp Grotesk", sans-serif',
398
- type: "fontFamilies"
399
- },
400
- inter: {
401
- value: '"Inter", sans-serif',
402
- type: "fontFamilies"
403
- }
404
- },
405
- font: {
406
- light: {
407
- value: "300",
408
- type: "fontWeights"
409
- },
410
- normal: {
411
- value: "400",
412
- type: "fontWeights"
413
- },
414
- medium: {
415
- value: "500",
416
- type: "fontWeights"
417
- }
418
- },
419
- spacing: {
420
- 0: {
421
- value: "0px",
422
- type: "spacing"
423
- },
424
- 1: {
425
- value: "1px",
426
- type: "spacing"
427
- },
428
- 2: {
429
- value: "2px",
430
- type: "spacing"
431
- },
432
- 4: {
433
- value: "4px",
434
- type: "spacing"
435
- },
436
- 6: {
437
- value: "6px",
438
- type: "spacing"
439
- },
440
- 8: {
441
- value: "8px",
442
- type: "spacing"
443
- },
444
- 10: {
445
- value: "10px",
446
- type: "spacing"
447
- },
448
- 12: {
449
- value: "12px",
450
- type: "spacing"
451
- },
452
- 14: {
453
- value: "14px",
454
- type: "spacing"
455
- },
456
- 16: {
457
- value: "16px",
458
- type: "spacing"
459
- },
460
- 20: {
461
- value: "20px",
462
- type: "spacing"
463
- },
464
- 24: {
465
- value: "24px",
466
- type: "spacing"
467
- },
468
- 28: {
469
- value: "28px",
470
- type: "spacing"
471
- },
472
- 32: {
473
- value: "32px",
474
- type: "spacing"
475
- },
476
- 36: {
477
- value: "36px",
478
- type: "spacing"
479
- },
480
- 40: {
481
- value: "40px",
482
- type: "spacing"
483
- },
484
- 44: {
485
- value: "44px",
486
- type: "spacing"
487
- },
488
- 48: {
489
- value: "48px",
490
- type: "spacing"
491
- },
492
- 56: {
493
- value: "56px",
494
- type: "spacing"
495
- },
496
- 64: {
497
- value: "64px",
498
- type: "spacing"
499
- },
500
- 80: {
501
- value: "80px",
502
- type: "spacing"
503
- },
504
- 96: {
505
- value: "96px",
506
- type: "spacing"
507
- },
508
- 112: {
509
- value: "112px",
510
- type: "spacing"
511
- },
512
- 128: {
513
- value: "128px",
514
- type: "spacing"
515
- },
516
- 144: {
517
- value: "144px",
518
- type: "spacing"
519
- },
520
- 160: {
521
- value: "160px",
522
- type: "spacing"
523
- },
524
- 176: {
525
- value: "176px",
526
- type: "spacing"
527
- },
528
- 192: {
529
- value: "192px",
530
- type: "spacing"
531
- },
532
- 208: {
533
- value: "208px",
534
- type: "spacing"
535
- },
536
- 224: {
537
- value: "224px",
538
- type: "spacing"
539
- },
540
- 240: {
541
- value: "240px",
542
- type: "spacing"
543
- },
544
- 256: {
545
- value: "256px",
546
- type: "spacing"
547
- },
548
- 288: {
549
- value: "288px",
550
- type: "spacing"
551
- },
552
- 320: {
553
- value: "320px",
554
- type: "spacing"
555
- },
556
- 384: {
557
- value: "384px",
558
- type: "spacing"
559
- }
560
- },
561
- border: {
562
- 0: {
563
- value: "0px",
564
- type: "borderWidth"
565
- },
566
- 1: {
567
- value: "1px",
568
- type: "borderWidth"
569
- },
570
- 2: {
571
- value: "2px",
572
- type: "borderWidth"
573
- },
574
- 4: {
575
- value: "4px",
576
- type: "borderWidth"
577
- },
578
- 8: {
579
- value: "8px",
580
- type: "borderWidth"
581
- }
582
- },
583
- rounded: {
584
- none: {
585
- value: "0px",
586
- type: "borderRadius"
587
- },
588
- sm: {
589
- value: "2px",
590
- type: "borderRadius"
591
- },
592
- base: {
593
- value: "4px",
594
- type: "borderRadius"
595
- },
596
- md: {
597
- value: "6px",
598
- type: "borderRadius"
599
- },
600
- lg: {
601
- value: "8px",
602
- type: "borderRadius"
603
- },
604
- xl: {
605
- value: "12px",
606
- type: "borderRadius"
607
- },
608
- "2xl": {
609
- value: "16px",
610
- type: "borderRadius"
611
- },
612
- "3xl": {
613
- value: "24px",
614
- type: "borderRadius"
615
- },
616
- full: {
617
- value: "9999px",
618
- type: "borderRadius"
619
- }
620
- },
621
- breakpoint: {
622
- xs: {
623
- value: "376px",
624
- type: "sizing"
625
- },
626
- sm: {
627
- value: "640px",
628
- type: "sizing"
629
- },
630
- md: {
631
- value: "768px",
632
- type: "sizing"
633
- },
634
- lg: {
635
- value: "1024px",
636
- type: "sizing"
637
- },
638
- xl: {
639
- value: "1280px",
640
- type: "sizing"
641
- },
642
- "2xl": {
643
- value: "1440px",
644
- type: "sizing"
645
- },
646
- "3xl": {
647
- value: "1536px",
648
- type: "sizing"
649
- }
650
- },
651
- shadow: {
652
- none: {
653
- value: {
654
- color: "#000000",
655
- type: "dropShadow",
656
- x: "0",
657
- y: "0",
658
- blur: "0",
659
- spread: "0"
660
- },
661
- type: "boxShadow"
662
- },
663
- sm: {
664
- value: {
665
- color: "#0000000d",
666
- type: "dropShadow",
667
- x: "0",
668
- y: "1",
669
- blur: "2",
670
- spread: "0"
671
- },
672
- type: "boxShadow"
673
- },
674
- base: {
675
- value: [
676
- {
677
- color: "#0000000f",
678
- type: "dropShadow",
679
- x: "0",
680
- y: "1",
681
- blur: "2",
682
- spread: "0"
683
- },
684
- {
685
- color: "#0000001a",
686
- type: "dropShadow",
687
- x: "0",
688
- y: "1",
689
- blur: "3",
690
- spread: "0"
691
- }
692
- ],
693
- type: "boxShadow"
694
- },
695
- md: {
696
- value: [
697
- {
698
- color: "#0000000f",
699
- type: "dropShadow",
700
- x: "0",
701
- y: "2",
702
- blur: "4",
703
- spread: "-1"
704
- },
705
- {
706
- color: "#0000001a",
707
- type: "dropShadow",
708
- x: "0",
709
- y: "4",
710
- blur: "6",
711
- spread: "-1"
712
- }
713
- ],
714
- type: "boxShadow"
715
- },
716
- lg: {
717
- value: [
718
- {
719
- color: "#0000000d",
720
- type: "dropShadow",
721
- x: "0",
722
- y: "4",
723
- blur: "6",
724
- spread: "-2"
725
- },
726
- {
727
- color: "#0000001a",
728
- type: "dropShadow",
729
- x: "0",
730
- y: "10",
731
- blur: "15",
732
- spread: "-3"
733
- }
734
- ],
735
- type: "boxShadow"
736
- },
737
- xl: {
738
- value: [
739
- {
740
- color: "#0000000a",
741
- type: "dropShadow",
742
- x: "0",
743
- y: "10",
744
- blur: "10",
745
- spread: "-5"
746
- },
747
- {
748
- color: "#0000001a",
749
- type: "dropShadow",
750
- x: "0",
751
- y: "20",
752
- blur: "25",
753
- spread: "-5"
754
- }
755
- ],
756
- type: "boxShadow"
757
- },
758
- "2xl": {
759
- value: {
760
- color: "#00000040",
761
- type: "dropShadow",
762
- x: "0",
763
- y: "25",
764
- blur: "50",
765
- spread: "-12"
766
- },
767
- type: "boxShadow"
768
- },
769
- inner: {
770
- value: {
771
- color: "#0000000f",
772
- type: "innerShadow",
773
- x: "0",
774
- y: "2",
775
- blur: "4",
776
- spread: "0"
777
- },
778
- type: "boxShadow"
779
- }
780
- },
781
- underline: {
782
- value: "underline",
783
- type: "textDecoration"
784
- },
785
- text: {
786
- xs: {
787
- value: "12px",
788
- type: "fontSizes"
789
- },
790
- sm: {
791
- value: "14px",
792
- type: "fontSizes"
793
- },
794
- base: {
795
- value: "16px",
796
- type: "fontSizes"
797
- },
798
- lg: {
799
- value: "18px",
800
- type: "fontSizes"
801
- },
802
- xl: {
803
- value: "20px",
804
- type: "fontSizes"
805
- },
806
- "2xl": {
807
- value: "24px",
808
- type: "fontSizes"
809
- },
810
- "3xl": {
811
- value: "30px",
812
- type: "fontSizes"
813
- },
814
- "4xl": {
815
- value: "36px",
816
- type: "fontSizes"
817
- },
818
- "5xl": {
819
- value: "48px",
820
- type: "fontSizes"
821
- },
822
- "6xl": {
823
- value: "60px",
824
- type: "fontSizes"
825
- },
826
- "7xl": {
827
- value: "72px",
828
- type: "fontSizes"
829
- },
830
- "8xl": {
831
- value: "96px",
832
- type: "fontSizes"
833
- },
834
- "9xl": {
835
- value: "128px",
836
- type: "fontSizes"
837
- }
838
- },
839
- leading: {
840
- xs: {
841
- value: "16px",
842
- type: "lineHeights"
843
- },
844
- sm: {
845
- value: "18px",
846
- type: "lineHeights"
847
- },
848
- base: {
849
- value: "20px",
850
- type: "lineHeights"
851
- },
852
- lg: {
853
- value: "24px",
854
- type: "lineHeights"
855
- },
856
- xl: {
857
- value: "28px",
858
- type: "lineHeights"
859
- },
860
- "2xl": {
861
- value: "32px",
862
- type: "lineHeights"
863
- },
864
- "3xl": {
865
- value: "36px",
866
- type: "lineHeights"
867
- },
868
- "4xl": {
869
- value: "40px",
870
- type: "lineHeights"
871
- },
872
- "5xl": {
873
- value: "48px",
874
- type: "lineHeights"
875
- },
876
- "6xl": {
877
- value: "60px",
878
- type: "lineHeights"
879
- },
880
- "7xl": {
881
- value: "72px",
882
- type: "lineHeights"
883
- },
884
- "8xl": {
885
- value: "96px",
886
- type: "lineHeights"
887
- },
888
- "9xl": {
889
- value: "128px",
890
- type: "lineHeights"
891
- }
892
- }
893
- }, z = {
894
- global: _
895
- }, ee = [
896
- "blue",
897
- "purple",
898
- "orange",
899
- "pink",
900
- "yellow",
901
- "grey",
902
- "core"
903
- ], oe = {
904
- safeColorNames: ee
905
- }, ae = [
906
- "error",
907
- "warning",
908
- "success",
909
- "info"
910
- ], le = {
911
- semanticColorNames: ae
912
- }, te = oe.safeColorNames, re = le.semanticColorNames, x = {};
913
- te.forEach((e) => {
914
- const a = z.global[e];
915
- a && Object.keys(a).forEach((l) => {
916
- var o;
917
- const t = (o = a[l]) == null ? void 0 : o.value;
918
- t && (x[e] || (x[e] = {}), x[e][l] = t);
919
- });
63
+ var E = {
64
+ global: {
65
+ blue: {
66
+ 50: {
67
+ value: "#eff1ff",
68
+ type: "color"
69
+ },
70
+ 100: {
71
+ value: "#dee2ff",
72
+ type: "color"
73
+ },
74
+ 200: {
75
+ value: "#bdc5ff",
76
+ type: "color"
77
+ },
78
+ 300: {
79
+ value: "#9ca8ff",
80
+ type: "color"
81
+ },
82
+ 400: {
83
+ value: "#7b8bff",
84
+ type: "color"
85
+ },
86
+ 500: {
87
+ value: "#5a6eff",
88
+ type: "color"
89
+ },
90
+ 600: {
91
+ value: "#4858cc",
92
+ type: "color"
93
+ },
94
+ 700: {
95
+ value: "#364299",
96
+ type: "color"
97
+ },
98
+ 800: {
99
+ value: "#242c66",
100
+ type: "color"
101
+ },
102
+ 900: {
103
+ value: "#1b214c",
104
+ type: "color"
105
+ }
106
+ },
107
+ purple: {
108
+ 50: {
109
+ value: "#f8f4ff",
110
+ type: "color"
111
+ },
112
+ 100: {
113
+ value: "#f0e9ff",
114
+ type: "color"
115
+ },
116
+ 200: {
117
+ value: "#e1d3ff",
118
+ type: "color"
119
+ },
120
+ 300: {
121
+ value: "#d2bdff",
122
+ type: "color"
123
+ },
124
+ 400: {
125
+ value: "#c3a7ff",
126
+ type: "color"
127
+ },
128
+ 500: {
129
+ value: "#b491ff",
130
+ type: "color"
131
+ },
132
+ 600: {
133
+ value: "#9074cc",
134
+ type: "color"
135
+ },
136
+ 700: {
137
+ value: "#6c5799",
138
+ type: "color"
139
+ },
140
+ 800: {
141
+ value: "#483a66",
142
+ type: "color"
143
+ },
144
+ 900: {
145
+ value: "#241d33",
146
+ type: "color"
147
+ }
148
+ },
149
+ orange: {
150
+ 50: {
151
+ value: "#fff2ef",
152
+ type: "color"
153
+ },
154
+ 100: {
155
+ value: "#ffe4de",
156
+ type: "color"
157
+ },
158
+ 200: {
159
+ value: "#ffc9bd",
160
+ type: "color"
161
+ },
162
+ 300: {
163
+ value: "#ffae9c",
164
+ type: "color"
165
+ },
166
+ 400: {
167
+ value: "#ff937b",
168
+ type: "color"
169
+ },
170
+ 500: {
171
+ value: "#ff785a",
172
+ type: "color"
173
+ },
174
+ 600: {
175
+ value: "#cc6048",
176
+ type: "color"
177
+ },
178
+ 700: {
179
+ value: "#994836",
180
+ type: "color"
181
+ },
182
+ 800: {
183
+ value: "#663024",
184
+ type: "color"
185
+ },
186
+ 900: {
187
+ value: "#331812",
188
+ type: "color"
189
+ }
190
+ },
191
+ pink: {
192
+ 50: {
193
+ value: "#fff5f5",
194
+ type: "color"
195
+ },
196
+ 100: {
197
+ value: "#ffe0e0",
198
+ type: "color"
199
+ },
200
+ 200: {
201
+ value: "#ffcbcb",
202
+ type: "color"
203
+ },
204
+ 300: {
205
+ value: "#ffc0c0",
206
+ type: "color"
207
+ },
208
+ 400: {
209
+ value: "#ffabab",
210
+ type: "color"
211
+ },
212
+ 500: {
213
+ value: "#ff9696",
214
+ type: "color"
215
+ },
216
+ 600: {
217
+ value: "#cc7878",
218
+ type: "color"
219
+ },
220
+ 700: {
221
+ value: "#995a5a",
222
+ type: "color"
223
+ },
224
+ 800: {
225
+ value: "#663c3c",
226
+ type: "color"
227
+ },
228
+ 900: {
229
+ value: "#331e1e",
230
+ type: "color"
231
+ }
232
+ },
233
+ yellow: {
234
+ 50: {
235
+ value: "#fffbf4",
236
+ type: "color"
237
+ },
238
+ 100: {
239
+ value: "#fff3de",
240
+ type: "color"
241
+ },
242
+ 200: {
243
+ value: "#ffebc8",
244
+ type: "color"
245
+ },
246
+ 300: {
247
+ value: "#ffe7bd",
248
+ type: "color"
249
+ },
250
+ 400: {
251
+ value: "#ffdfa7",
252
+ type: "color"
253
+ },
254
+ 500: {
255
+ value: "#ffd791",
256
+ type: "color"
257
+ },
258
+ 600: {
259
+ value: "#ccac74",
260
+ type: "color"
261
+ },
262
+ 700: {
263
+ value: "#998157",
264
+ type: "color"
265
+ },
266
+ 800: {
267
+ value: "#806c49",
268
+ type: "color"
269
+ },
270
+ 900: {
271
+ value: "#4c402b",
272
+ type: "color"
273
+ }
274
+ },
275
+ semantic: {
276
+ error: {
277
+ 50: {
278
+ value: "#fef3f3",
279
+ type: "color"
280
+ },
281
+ 100: {
282
+ value: "#f8baba",
283
+ type: "color"
284
+ },
285
+ 200: {
286
+ value: "#f04242",
287
+ type: "color"
288
+ },
289
+ 300: {
290
+ value: "#aa2f2f",
291
+ type: "color"
292
+ }
293
+ },
294
+ warning: {
295
+ 50: {
296
+ value: "#fff8f3",
297
+ type: "color"
298
+ },
299
+ 100: {
300
+ value: "#ffdabd",
301
+ type: "color"
302
+ },
303
+ 200: {
304
+ value: "#ffae4f",
305
+ type: "color"
306
+ },
307
+ 300: {
308
+ value: "#b47b38",
309
+ type: "color"
310
+ }
311
+ },
312
+ success: {
313
+ 50: {
314
+ value: "#f2f8f6",
315
+ type: "color"
316
+ },
317
+ 100: {
318
+ value: "#b5d8ce",
319
+ type: "color"
320
+ },
321
+ 200: {
322
+ value: "#0fa88c",
323
+ type: "color"
324
+ },
325
+ 300: {
326
+ value: "#0b7763",
327
+ type: "color"
328
+ }
329
+ },
330
+ info: {
331
+ 50: {
332
+ value: "#f3f7ff",
333
+ type: "color"
334
+ },
335
+ 100: {
336
+ value: "#b4c8e1",
337
+ type: "color"
338
+ },
339
+ 200: {
340
+ value: "#4e9fff",
341
+ type: "color"
342
+ },
343
+ 300: {
344
+ value: "#3770b4",
345
+ type: "color"
346
+ }
347
+ }
348
+ },
349
+ background: {
350
+ "white-smoke": {
351
+ value: "#f7f6f3",
352
+ type: "color"
353
+ },
354
+ seashell: {
355
+ value: "#f8ece7",
356
+ type: "color"
357
+ },
358
+ "pale-purple": {
359
+ value: "#f2e6ff",
360
+ type: "color"
361
+ },
362
+ "alice-blue": {
363
+ value: "#ecf2fc",
364
+ type: "color"
365
+ }
366
+ },
367
+ grey: {
368
+ 100: {
369
+ value: "#e9edf0",
370
+ type: "color"
371
+ },
372
+ 200: {
373
+ value: "#d1dde6",
374
+ type: "color"
375
+ },
376
+ 300: {
377
+ value: "#9da9b2",
378
+ type: "color"
379
+ },
380
+ 400: {
381
+ value: "#6e777e",
382
+ type: "color"
383
+ },
384
+ 500: {
385
+ value: "#596167",
386
+ type: "color"
387
+ }
388
+ },
389
+ core: {
390
+ white: {
391
+ value: "#ffffff",
392
+ type: "color"
393
+ },
394
+ black: {
395
+ value: "#2c282f",
396
+ type: "color"
397
+ }
398
+ },
399
+ "font-sans": {
400
+ "sharp-grotesk": {
401
+ value: "\"Sharp Grotesk\", sans-serif",
402
+ type: "fontFamilies"
403
+ },
404
+ inter: {
405
+ value: "\"Inter\", sans-serif",
406
+ type: "fontFamilies"
407
+ }
408
+ },
409
+ font: {
410
+ light: {
411
+ value: "300",
412
+ type: "fontWeights"
413
+ },
414
+ normal: {
415
+ value: "400",
416
+ type: "fontWeights"
417
+ },
418
+ medium: {
419
+ value: "500",
420
+ type: "fontWeights"
421
+ }
422
+ },
423
+ spacing: {
424
+ 0: {
425
+ value: "0px",
426
+ type: "spacing"
427
+ },
428
+ 1: {
429
+ value: "1px",
430
+ type: "spacing"
431
+ },
432
+ 2: {
433
+ value: "2px",
434
+ type: "spacing"
435
+ },
436
+ 4: {
437
+ value: "4px",
438
+ type: "spacing"
439
+ },
440
+ 6: {
441
+ value: "6px",
442
+ type: "spacing"
443
+ },
444
+ 8: {
445
+ value: "8px",
446
+ type: "spacing"
447
+ },
448
+ 10: {
449
+ value: "10px",
450
+ type: "spacing"
451
+ },
452
+ 12: {
453
+ value: "12px",
454
+ type: "spacing"
455
+ },
456
+ 14: {
457
+ value: "14px",
458
+ type: "spacing"
459
+ },
460
+ 16: {
461
+ value: "16px",
462
+ type: "spacing"
463
+ },
464
+ 20: {
465
+ value: "20px",
466
+ type: "spacing"
467
+ },
468
+ 24: {
469
+ value: "24px",
470
+ type: "spacing"
471
+ },
472
+ 28: {
473
+ value: "28px",
474
+ type: "spacing"
475
+ },
476
+ 32: {
477
+ value: "32px",
478
+ type: "spacing"
479
+ },
480
+ 36: {
481
+ value: "36px",
482
+ type: "spacing"
483
+ },
484
+ 40: {
485
+ value: "40px",
486
+ type: "spacing"
487
+ },
488
+ 44: {
489
+ value: "44px",
490
+ type: "spacing"
491
+ },
492
+ 48: {
493
+ value: "48px",
494
+ type: "spacing"
495
+ },
496
+ 56: {
497
+ value: "56px",
498
+ type: "spacing"
499
+ },
500
+ 64: {
501
+ value: "64px",
502
+ type: "spacing"
503
+ },
504
+ 80: {
505
+ value: "80px",
506
+ type: "spacing"
507
+ },
508
+ 96: {
509
+ value: "96px",
510
+ type: "spacing"
511
+ },
512
+ 112: {
513
+ value: "112px",
514
+ type: "spacing"
515
+ },
516
+ 128: {
517
+ value: "128px",
518
+ type: "spacing"
519
+ },
520
+ 144: {
521
+ value: "144px",
522
+ type: "spacing"
523
+ },
524
+ 160: {
525
+ value: "160px",
526
+ type: "spacing"
527
+ },
528
+ 176: {
529
+ value: "176px",
530
+ type: "spacing"
531
+ },
532
+ 192: {
533
+ value: "192px",
534
+ type: "spacing"
535
+ },
536
+ 208: {
537
+ value: "208px",
538
+ type: "spacing"
539
+ },
540
+ 224: {
541
+ value: "224px",
542
+ type: "spacing"
543
+ },
544
+ 240: {
545
+ value: "240px",
546
+ type: "spacing"
547
+ },
548
+ 256: {
549
+ value: "256px",
550
+ type: "spacing"
551
+ },
552
+ 288: {
553
+ value: "288px",
554
+ type: "spacing"
555
+ },
556
+ 320: {
557
+ value: "320px",
558
+ type: "spacing"
559
+ },
560
+ 384: {
561
+ value: "384px",
562
+ type: "spacing"
563
+ }
564
+ },
565
+ border: {
566
+ 0: {
567
+ value: "0px",
568
+ type: "borderWidth"
569
+ },
570
+ 1: {
571
+ value: "1px",
572
+ type: "borderWidth"
573
+ },
574
+ 2: {
575
+ value: "2px",
576
+ type: "borderWidth"
577
+ },
578
+ 4: {
579
+ value: "4px",
580
+ type: "borderWidth"
581
+ },
582
+ 8: {
583
+ value: "8px",
584
+ type: "borderWidth"
585
+ }
586
+ },
587
+ rounded: {
588
+ none: {
589
+ value: "0px",
590
+ type: "borderRadius"
591
+ },
592
+ sm: {
593
+ value: "2px",
594
+ type: "borderRadius"
595
+ },
596
+ base: {
597
+ value: "4px",
598
+ type: "borderRadius"
599
+ },
600
+ md: {
601
+ value: "6px",
602
+ type: "borderRadius"
603
+ },
604
+ lg: {
605
+ value: "8px",
606
+ type: "borderRadius"
607
+ },
608
+ xl: {
609
+ value: "12px",
610
+ type: "borderRadius"
611
+ },
612
+ "2xl": {
613
+ value: "16px",
614
+ type: "borderRadius"
615
+ },
616
+ "3xl": {
617
+ value: "24px",
618
+ type: "borderRadius"
619
+ },
620
+ full: {
621
+ value: "9999px",
622
+ type: "borderRadius"
623
+ }
624
+ },
625
+ breakpoint: {
626
+ xs: {
627
+ value: "376px",
628
+ type: "sizing"
629
+ },
630
+ sm: {
631
+ value: "640px",
632
+ type: "sizing"
633
+ },
634
+ md: {
635
+ value: "768px",
636
+ type: "sizing"
637
+ },
638
+ lg: {
639
+ value: "1024px",
640
+ type: "sizing"
641
+ },
642
+ xl: {
643
+ value: "1280px",
644
+ type: "sizing"
645
+ },
646
+ "2xl": {
647
+ value: "1440px",
648
+ type: "sizing"
649
+ },
650
+ "3xl": {
651
+ value: "1536px",
652
+ type: "sizing"
653
+ }
654
+ },
655
+ shadow: {
656
+ none: {
657
+ value: {
658
+ color: "#000000",
659
+ type: "dropShadow",
660
+ x: "0",
661
+ y: "0",
662
+ blur: "0",
663
+ spread: "0"
664
+ },
665
+ type: "boxShadow"
666
+ },
667
+ sm: {
668
+ value: {
669
+ color: "#0000000d",
670
+ type: "dropShadow",
671
+ x: "0",
672
+ y: "1",
673
+ blur: "2",
674
+ spread: "0"
675
+ },
676
+ type: "boxShadow"
677
+ },
678
+ base: {
679
+ value: [{
680
+ color: "#0000000f",
681
+ type: "dropShadow",
682
+ x: "0",
683
+ y: "1",
684
+ blur: "2",
685
+ spread: "0"
686
+ }, {
687
+ color: "#0000001a",
688
+ type: "dropShadow",
689
+ x: "0",
690
+ y: "1",
691
+ blur: "3",
692
+ spread: "0"
693
+ }],
694
+ type: "boxShadow"
695
+ },
696
+ md: {
697
+ value: [{
698
+ color: "#0000000f",
699
+ type: "dropShadow",
700
+ x: "0",
701
+ y: "2",
702
+ blur: "4",
703
+ spread: "-1"
704
+ }, {
705
+ color: "#0000001a",
706
+ type: "dropShadow",
707
+ x: "0",
708
+ y: "4",
709
+ blur: "6",
710
+ spread: "-1"
711
+ }],
712
+ type: "boxShadow"
713
+ },
714
+ lg: {
715
+ value: [{
716
+ color: "#0000000d",
717
+ type: "dropShadow",
718
+ x: "0",
719
+ y: "4",
720
+ blur: "6",
721
+ spread: "-2"
722
+ }, {
723
+ color: "#0000001a",
724
+ type: "dropShadow",
725
+ x: "0",
726
+ y: "10",
727
+ blur: "15",
728
+ spread: "-3"
729
+ }],
730
+ type: "boxShadow"
731
+ },
732
+ xl: {
733
+ value: [{
734
+ color: "#0000000a",
735
+ type: "dropShadow",
736
+ x: "0",
737
+ y: "10",
738
+ blur: "10",
739
+ spread: "-5"
740
+ }, {
741
+ color: "#0000001a",
742
+ type: "dropShadow",
743
+ x: "0",
744
+ y: "20",
745
+ blur: "25",
746
+ spread: "-5"
747
+ }],
748
+ type: "boxShadow"
749
+ },
750
+ "2xl": {
751
+ value: {
752
+ color: "#00000040",
753
+ type: "dropShadow",
754
+ x: "0",
755
+ y: "25",
756
+ blur: "50",
757
+ spread: "-12"
758
+ },
759
+ type: "boxShadow"
760
+ },
761
+ inner: {
762
+ value: {
763
+ color: "#0000000f",
764
+ type: "innerShadow",
765
+ x: "0",
766
+ y: "2",
767
+ blur: "4",
768
+ spread: "0"
769
+ },
770
+ type: "boxShadow"
771
+ }
772
+ },
773
+ underline: {
774
+ value: "underline",
775
+ type: "textDecoration"
776
+ },
777
+ text: {
778
+ xs: {
779
+ value: "12px",
780
+ type: "fontSizes"
781
+ },
782
+ sm: {
783
+ value: "14px",
784
+ type: "fontSizes"
785
+ },
786
+ base: {
787
+ value: "16px",
788
+ type: "fontSizes"
789
+ },
790
+ lg: {
791
+ value: "18px",
792
+ type: "fontSizes"
793
+ },
794
+ xl: {
795
+ value: "20px",
796
+ type: "fontSizes"
797
+ },
798
+ "2xl": {
799
+ value: "24px",
800
+ type: "fontSizes"
801
+ },
802
+ "3xl": {
803
+ value: "30px",
804
+ type: "fontSizes"
805
+ },
806
+ "4xl": {
807
+ value: "36px",
808
+ type: "fontSizes"
809
+ },
810
+ "5xl": {
811
+ value: "48px",
812
+ type: "fontSizes"
813
+ },
814
+ "6xl": {
815
+ value: "60px",
816
+ type: "fontSizes"
817
+ },
818
+ "7xl": {
819
+ value: "72px",
820
+ type: "fontSizes"
821
+ },
822
+ "8xl": {
823
+ value: "96px",
824
+ type: "fontSizes"
825
+ },
826
+ "9xl": {
827
+ value: "128px",
828
+ type: "fontSizes"
829
+ }
830
+ },
831
+ leading: {
832
+ xs: {
833
+ value: "16px",
834
+ type: "lineHeights"
835
+ },
836
+ sm: {
837
+ value: "18px",
838
+ type: "lineHeights"
839
+ },
840
+ base: {
841
+ value: "20px",
842
+ type: "lineHeights"
843
+ },
844
+ lg: {
845
+ value: "24px",
846
+ type: "lineHeights"
847
+ },
848
+ xl: {
849
+ value: "28px",
850
+ type: "lineHeights"
851
+ },
852
+ "2xl": {
853
+ value: "32px",
854
+ type: "lineHeights"
855
+ },
856
+ "3xl": {
857
+ value: "36px",
858
+ type: "lineHeights"
859
+ },
860
+ "4xl": {
861
+ value: "40px",
862
+ type: "lineHeights"
863
+ },
864
+ "5xl": {
865
+ value: "48px",
866
+ type: "lineHeights"
867
+ },
868
+ "6xl": {
869
+ value: "60px",
870
+ type: "lineHeights"
871
+ },
872
+ "7xl": {
873
+ value: "72px",
874
+ type: "lineHeights"
875
+ },
876
+ "8xl": {
877
+ value: "96px",
878
+ type: "lineHeights"
879
+ },
880
+ "9xl": {
881
+ value: "128px",
882
+ type: "lineHeights"
883
+ }
884
+ }
885
+ },
886
+ alias: {
887
+ avatar: {
888
+ initials: {
889
+ "background-color": {
890
+ value: "{core.black}",
891
+ type: "color"
892
+ },
893
+ color: {
894
+ value: "{core.white}",
895
+ type: "color"
896
+ },
897
+ spacing: {
898
+ value: "{spacing.32}",
899
+ type: "spacing"
900
+ },
901
+ "border-radius": {
902
+ value: "{rounded.full}",
903
+ type: "borderRadius"
904
+ },
905
+ "font-family": {
906
+ value: "{font-sans.inter}",
907
+ type: "fontFamilies"
908
+ },
909
+ "font-weight": {
910
+ value: "{font.normal}",
911
+ type: "fontWeights"
912
+ },
913
+ "font-size": {
914
+ value: "{text.sm}",
915
+ type: "fontSizes"
916
+ },
917
+ "line-height": {
918
+ value: "{leading.sm}",
919
+ type: "lineHeights"
920
+ }
921
+ },
922
+ image: {
923
+ "border-radius": {
924
+ value: "{rounded.full}",
925
+ type: "borderRadius"
926
+ },
927
+ sm: {
928
+ value: "{spacing.16}",
929
+ type: "spacing"
930
+ },
931
+ md: {
932
+ value: "{spacing.24}",
933
+ type: "spacing"
934
+ },
935
+ lg: {
936
+ value: "{spacing.32}",
937
+ type: "spacing"
938
+ },
939
+ xl: {
940
+ value: "{spacing.40}",
941
+ type: "spacing"
942
+ }
943
+ }
944
+ },
945
+ "nav-link": {
946
+ spacing: {
947
+ value: "{spacing.32}",
948
+ type: "spacing"
949
+ },
950
+ "border-radius": {
951
+ value: "{rounded.base}",
952
+ type: "borderRadius"
953
+ },
954
+ "font-family": {
955
+ value: "{font-sans.inter}",
956
+ type: "fontFamilies"
957
+ },
958
+ "font-weight": {
959
+ value: "{font.medium}",
960
+ type: "fontWeights"
961
+ },
962
+ "line-height": {
963
+ value: "{leading.sm}",
964
+ type: "lineHeights"
965
+ },
966
+ "font-size": {
967
+ value: "{text.sm}",
968
+ type: "fontSizes"
969
+ },
970
+ "background-color": {
971
+ default: {
972
+ value: "none",
973
+ type: "color"
974
+ },
975
+ hover: {
976
+ value: "{background.alice-blue}",
977
+ type: "color"
978
+ },
979
+ pressed: {
980
+ value: "{background.alice-blue}",
981
+ type: "color"
982
+ },
983
+ focus: {
984
+ value: "{background.alice-blue}",
985
+ type: "color"
986
+ },
987
+ disabled: {
988
+ value: "none",
989
+ type: "color"
990
+ }
991
+ },
992
+ color: {
993
+ default: {
994
+ value: "{grey.500}",
995
+ type: "color"
996
+ },
997
+ hover: {
998
+ value: "{blue.500}",
999
+ type: "color"
1000
+ },
1001
+ pressed: {
1002
+ value: "{blue.500}",
1003
+ type: "color"
1004
+ },
1005
+ focus: {
1006
+ value: "{blue.500}",
1007
+ type: "color"
1008
+ },
1009
+ disabled: {
1010
+ value: "{grey.100}",
1011
+ type: "color"
1012
+ }
1013
+ },
1014
+ border: {
1015
+ default: {
1016
+ value: "none",
1017
+ type: "color"
1018
+ },
1019
+ hover: {
1020
+ value: "none",
1021
+ type: "color"
1022
+ },
1023
+ pressed: {
1024
+ value: "none",
1025
+ type: "color"
1026
+ },
1027
+ focus: {
1028
+ value: "{blue.500}",
1029
+ type: "color"
1030
+ },
1031
+ disabled: {
1032
+ value: "none",
1033
+ type: "color"
1034
+ }
1035
+ },
1036
+ "border-width": {
1037
+ default: {
1038
+ value: "none",
1039
+ type: "borderWidth"
1040
+ },
1041
+ hover: {
1042
+ value: "none",
1043
+ type: "borderWidth"
1044
+ },
1045
+ pressed: {
1046
+ value: "none",
1047
+ type: "borderWidth"
1048
+ },
1049
+ focus: {
1050
+ value: "{border.1}",
1051
+ type: "borderWidth"
1052
+ },
1053
+ disabled: {
1054
+ value: "none",
1055
+ type: "borderWidth"
1056
+ }
1057
+ },
1058
+ "box-shadow": {
1059
+ default: {
1060
+ value: "{shadow.none}",
1061
+ type: "boxShadow"
1062
+ },
1063
+ hover: {
1064
+ value: "{shadow.none}",
1065
+ type: "boxShadow"
1066
+ },
1067
+ pressed: {
1068
+ value: "{shadow.inner}",
1069
+ type: "boxShadow"
1070
+ },
1071
+ focus: {
1072
+ value: "none",
1073
+ type: "boxShadow"
1074
+ },
1075
+ disabled: {
1076
+ value: "none",
1077
+ type: "boxShadow"
1078
+ }
1079
+ }
1080
+ },
1081
+ "icon-button": {
1082
+ button: {
1083
+ sm: {
1084
+ value: "{spacing.28}",
1085
+ type: "spacing"
1086
+ },
1087
+ md: {
1088
+ value: "{spacing.32}",
1089
+ type: "spacing"
1090
+ },
1091
+ lg: {
1092
+ value: "{spacing.40}",
1093
+ type: "spacing"
1094
+ }
1095
+ },
1096
+ icon: {
1097
+ sm: {
1098
+ value: "{spacing.16}",
1099
+ type: "spacing"
1100
+ },
1101
+ md: {
1102
+ value: "{spacing.20}",
1103
+ type: "spacing"
1104
+ }
1105
+ },
1106
+ primary: {
1107
+ "background-color": {
1108
+ default: {
1109
+ value: "{blue.500}",
1110
+ type: "color"
1111
+ },
1112
+ hover: {
1113
+ value: "{blue.600}",
1114
+ type: "color"
1115
+ },
1116
+ pressed: {
1117
+ value: "{blue.600}",
1118
+ type: "color"
1119
+ },
1120
+ focus: {
1121
+ value: "{blue.500}",
1122
+ type: "color"
1123
+ },
1124
+ disabled: {
1125
+ value: "{blue.200}",
1126
+ type: "color"
1127
+ }
1128
+ },
1129
+ color: {
1130
+ default: {
1131
+ value: "{core.white}",
1132
+ type: "color"
1133
+ },
1134
+ hover: {
1135
+ value: "{core.white}",
1136
+ type: "color"
1137
+ },
1138
+ pressed: {
1139
+ value: "{core.white}",
1140
+ type: "color"
1141
+ },
1142
+ focus: {
1143
+ value: "{core.white}",
1144
+ type: "color"
1145
+ },
1146
+ disabled: {
1147
+ value: "{core.white}",
1148
+ type: "color"
1149
+ }
1150
+ },
1151
+ border: {
1152
+ default: {
1153
+ value: "none",
1154
+ type: "color"
1155
+ },
1156
+ hover: {
1157
+ value: "none",
1158
+ type: "color"
1159
+ },
1160
+ pressed: {
1161
+ value: "none",
1162
+ type: "color"
1163
+ },
1164
+ focus: {
1165
+ value: "{blue.600}",
1166
+ type: "color"
1167
+ },
1168
+ disabled: {
1169
+ value: "none",
1170
+ type: "color"
1171
+ }
1172
+ },
1173
+ "border-width": {
1174
+ default: {
1175
+ value: "none",
1176
+ type: "borderWidth"
1177
+ },
1178
+ hover: {
1179
+ value: "none",
1180
+ type: "borderWidth"
1181
+ },
1182
+ pressed: {
1183
+ value: "none",
1184
+ type: "borderWidth"
1185
+ },
1186
+ focus: {
1187
+ value: "{border.1}",
1188
+ type: "borderWidth"
1189
+ },
1190
+ disabled: {
1191
+ value: "none",
1192
+ type: "borderWidth"
1193
+ }
1194
+ }
1195
+ },
1196
+ secondary: {
1197
+ "background-color": {
1198
+ default: {
1199
+ value: "none",
1200
+ type: "color"
1201
+ },
1202
+ hover: {
1203
+ value: "{grey.100}",
1204
+ type: "color"
1205
+ },
1206
+ pressed: {
1207
+ value: "{grey.100}",
1208
+ type: "color"
1209
+ },
1210
+ focus: {
1211
+ value: "none",
1212
+ type: "color"
1213
+ },
1214
+ disabled: {
1215
+ value: "none",
1216
+ type: "color"
1217
+ }
1218
+ },
1219
+ color: {
1220
+ default: {
1221
+ value: "{grey.500}",
1222
+ type: "color"
1223
+ },
1224
+ hover: {
1225
+ value: "{grey.500}",
1226
+ type: "color"
1227
+ },
1228
+ pressed: {
1229
+ value: "{grey.500}",
1230
+ type: "color"
1231
+ },
1232
+ focus: {
1233
+ value: "{grey.500}",
1234
+ type: "color"
1235
+ },
1236
+ disabled: {
1237
+ value: "{grey.100}",
1238
+ type: "color"
1239
+ }
1240
+ },
1241
+ border: {
1242
+ default: {
1243
+ value: "{grey.200}",
1244
+ type: "color"
1245
+ },
1246
+ hover: {
1247
+ value: "{grey.200}",
1248
+ type: "color"
1249
+ },
1250
+ pressed: {
1251
+ value: "{grey.200}",
1252
+ type: "color"
1253
+ },
1254
+ focus: {
1255
+ value: "{blue.600}",
1256
+ type: "color"
1257
+ },
1258
+ disabled: {
1259
+ value: "{grey.100}",
1260
+ type: "color"
1261
+ }
1262
+ },
1263
+ "border-width": {
1264
+ value: "{border.1}",
1265
+ type: "borderWidth"
1266
+ }
1267
+ },
1268
+ notification: {
1269
+ "background-color": {
1270
+ default: {
1271
+ value: "none",
1272
+ type: "color"
1273
+ },
1274
+ hover: {
1275
+ value: "{grey.100}",
1276
+ type: "color"
1277
+ },
1278
+ pressed: {
1279
+ value: "{grey.100}",
1280
+ type: "color"
1281
+ }
1282
+ },
1283
+ color: {
1284
+ default: {
1285
+ value: "{grey.500}",
1286
+ type: "color"
1287
+ },
1288
+ hover: {
1289
+ value: "{grey.500}",
1290
+ type: "color"
1291
+ },
1292
+ pressed: {
1293
+ value: "{grey.500}",
1294
+ type: "color"
1295
+ },
1296
+ focus: {
1297
+ value: "{grey.500}",
1298
+ type: "color"
1299
+ },
1300
+ disabled: {
1301
+ value: "{grey.100}",
1302
+ type: "color"
1303
+ }
1304
+ },
1305
+ border: {
1306
+ default: {
1307
+ value: "{grey.200}",
1308
+ type: "color"
1309
+ },
1310
+ hover: {
1311
+ value: "{grey.200}",
1312
+ type: "color"
1313
+ },
1314
+ pressed: {
1315
+ value: "{grey.200}",
1316
+ type: "color"
1317
+ },
1318
+ focus: {
1319
+ value: "{grey.200}",
1320
+ type: "color"
1321
+ },
1322
+ disabled: {
1323
+ value: "{grey.100}",
1324
+ type: "color"
1325
+ }
1326
+ },
1327
+ "border-width": {
1328
+ value: "{border.1}",
1329
+ type: "borderWidth"
1330
+ }
1331
+ },
1332
+ "notification-badge": {
1333
+ "background-color": {
1334
+ default: {
1335
+ value: "{blue.500}",
1336
+ type: "color"
1337
+ },
1338
+ hover: {
1339
+ value: "{blue.500}",
1340
+ type: "color"
1341
+ },
1342
+ pressed: {
1343
+ value: "{blue.500}",
1344
+ type: "color"
1345
+ },
1346
+ focus: {
1347
+ value: "{blue.500}",
1348
+ type: "color"
1349
+ },
1350
+ disabled: {
1351
+ value: "{grey.200}",
1352
+ type: "color"
1353
+ }
1354
+ },
1355
+ border: {
1356
+ default: {
1357
+ value: "{core.white}",
1358
+ type: "color"
1359
+ },
1360
+ hover: {
1361
+ value: "{core.white}",
1362
+ type: "color"
1363
+ },
1364
+ pressed: {
1365
+ value: "{core.white}",
1366
+ type: "color"
1367
+ },
1368
+ focus: {
1369
+ value: "{core.white}",
1370
+ type: "color"
1371
+ },
1372
+ disabled: {
1373
+ value: "{core.white}",
1374
+ type: "color"
1375
+ }
1376
+ },
1377
+ sm: {
1378
+ value: "{spacing.6}",
1379
+ type: "spacing"
1380
+ },
1381
+ md: {
1382
+ value: "{spacing.8}",
1383
+ type: "spacing"
1384
+ },
1385
+ lg: {
1386
+ value: "{spacing.10}",
1387
+ type: "spacing"
1388
+ },
1389
+ "border-width": {
1390
+ value: "{border.1}",
1391
+ type: "borderWidth"
1392
+ }
1393
+ },
1394
+ invisible: {
1395
+ "background-color": {
1396
+ default: {
1397
+ value: "none",
1398
+ type: "color"
1399
+ },
1400
+ hover: {
1401
+ value: "{grey.100}",
1402
+ type: "color"
1403
+ },
1404
+ pressed: {
1405
+ value: "{grey.100}",
1406
+ type: "color"
1407
+ },
1408
+ focus: {
1409
+ value: "none",
1410
+ type: "color"
1411
+ },
1412
+ disabled: {
1413
+ value: "none",
1414
+ type: "color"
1415
+ }
1416
+ },
1417
+ color: {
1418
+ default: {
1419
+ value: "{grey.500}",
1420
+ type: "color"
1421
+ },
1422
+ hover: {
1423
+ value: "{grey.500}",
1424
+ type: "color"
1425
+ },
1426
+ pressed: {
1427
+ value: "{grey.500}",
1428
+ type: "color"
1429
+ },
1430
+ focus: {
1431
+ value: "{grey.500}",
1432
+ type: "color"
1433
+ },
1434
+ disabled: {
1435
+ value: "{grey.100}",
1436
+ type: "color"
1437
+ }
1438
+ },
1439
+ border: {
1440
+ default: {
1441
+ value: "none",
1442
+ type: "color"
1443
+ },
1444
+ hover: {
1445
+ value: "none",
1446
+ type: "color"
1447
+ },
1448
+ pressed: {
1449
+ value: "none",
1450
+ type: "color"
1451
+ },
1452
+ focus: {
1453
+ value: "{blue.600}",
1454
+ type: "color"
1455
+ },
1456
+ disabled: {
1457
+ value: "{grey.100}",
1458
+ type: "color"
1459
+ }
1460
+ },
1461
+ "border-width": {
1462
+ default: {
1463
+ value: "none",
1464
+ type: "borderWidth"
1465
+ },
1466
+ hover: {
1467
+ value: "none",
1468
+ type: "borderWidth"
1469
+ },
1470
+ pressed: {
1471
+ value: "none",
1472
+ type: "borderWidth"
1473
+ },
1474
+ focus: {
1475
+ value: "{border.1}",
1476
+ type: "borderWidth"
1477
+ },
1478
+ disabled: {
1479
+ value: "{border.1}",
1480
+ type: "borderWidth"
1481
+ }
1482
+ }
1483
+ },
1484
+ "border-radius": {
1485
+ value: "{rounded.base}",
1486
+ type: "borderRadius"
1487
+ },
1488
+ "box-shadow": {
1489
+ default: {
1490
+ value: "{shadow.none}",
1491
+ type: "boxShadow"
1492
+ },
1493
+ hover: {
1494
+ value: "{shadow.none}",
1495
+ type: "boxShadow"
1496
+ },
1497
+ pressed: {
1498
+ value: "{shadow.inner}",
1499
+ type: "boxShadow"
1500
+ },
1501
+ focus: {
1502
+ value: "none",
1503
+ type: "boxShadow"
1504
+ },
1505
+ disabled: {
1506
+ value: "none",
1507
+ type: "boxShadow"
1508
+ }
1509
+ }
1510
+ },
1511
+ breadcrumbs: {
1512
+ color: {
1513
+ "previous-page": {
1514
+ value: "{blue.500}",
1515
+ type: "color"
1516
+ },
1517
+ divider: {
1518
+ value: "{grey.300}",
1519
+ type: "color"
1520
+ },
1521
+ "current-page": {
1522
+ value: "{grey.500}",
1523
+ type: "color"
1524
+ }
1525
+ },
1526
+ "font-family": {
1527
+ value: "{font-sans.inter}",
1528
+ type: "fontFamilies"
1529
+ },
1530
+ "font-weight": {
1531
+ value: "{font.normal}",
1532
+ type: "fontWeights"
1533
+ },
1534
+ "line-height": {
1535
+ value: "{leading.sm}",
1536
+ type: "lineHeights"
1537
+ },
1538
+ "font-size": {
1539
+ value: "{text.sm}",
1540
+ type: "fontSizes"
1541
+ }
1542
+ },
1543
+ "main-content": {
1544
+ sm: {
1545
+ value: "{spacing.32}",
1546
+ type: "spacing"
1547
+ },
1548
+ base: {
1549
+ value: "{spacing.48}",
1550
+ type: "spacing"
1551
+ },
1552
+ lg: {
1553
+ value: "{spacing.64}",
1554
+ type: "spacing"
1555
+ }
1556
+ },
1557
+ "section-content": {
1558
+ none: {
1559
+ value: "{spacing.0}",
1560
+ type: "spacing"
1561
+ },
1562
+ xs: {
1563
+ value: "{spacing.8}",
1564
+ type: "spacing"
1565
+ },
1566
+ sm: {
1567
+ value: "{spacing.16}",
1568
+ type: "spacing"
1569
+ },
1570
+ base: {
1571
+ value: "{spacing.24}",
1572
+ type: "spacing"
1573
+ },
1574
+ lg: {
1575
+ value: "{spacing.32}",
1576
+ type: "spacing"
1577
+ }
1578
+ }
1579
+ },
1580
+ $themes: [],
1581
+ $metadata: { tokenSetOrder: ["global", "alias"] }
1582
+ }, D = {
1583
+ $schema: "http://json-schema.org/draft-07/schema#",
1584
+ 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'.",
1585
+ safeColorNames: [
1586
+ "blue",
1587
+ "purple",
1588
+ "orange",
1589
+ "pink",
1590
+ "yellow",
1591
+ "grey",
1592
+ "core"
1593
+ ]
1594
+ }, O = {
1595
+ $schema: "http://json-schema.org/draft-07/schema#",
1596
+ 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'.",
1597
+ semanticColorNames: [
1598
+ "error",
1599
+ "warning",
1600
+ "success",
1601
+ "info"
1602
+ ]
1603
+ }, k = D.safeColorNames, A = O.semanticColorNames, j = {};
1604
+ k.forEach((e) => {
1605
+ let t = E.global[e];
1606
+ t && Object.keys(t).forEach((n) => {
1607
+ let r = t[n]?.value;
1608
+ r && (j[e] || (j[e] = {}), j[e][n] = r);
1609
+ });
920
1610
  });
921
- const O = z.global.semantic;
922
- O && re.forEach((e) => {
923
- const a = O[e];
924
- a && typeof a == "object" && Object.keys(a).forEach((l) => {
925
- var o;
926
- const t = (o = a[l]) == null ? void 0 : o.value;
927
- if (t) {
928
- const c = `semantic-${e}`;
929
- x[c] || (x[c] = {}), x[c][l] = t;
930
- }
931
- });
1611
+ var M = E.global.semantic;
1612
+ M && A.forEach((e) => {
1613
+ let t = M[e];
1614
+ t && typeof t == "object" && Object.keys(t).forEach((n) => {
1615
+ let r = t[n]?.value;
1616
+ if (r) {
1617
+ let t = `semantic-${e}`;
1618
+ j[t] || (j[t] = {}), j[t][n] = r;
1619
+ }
1620
+ });
932
1621
  });
933
- const ne = Object.entries(z.global.breakpoint).reduce(
934
- (e, [a, l]) => (e[a] = l.value, e),
935
- {}
936
- ), ce = ["title"], ie = { class: "flex flex-row gap-8 items-start" }, se = "border-1 border-solid rounded flex flex-col", pe = "border-solid pt-16 px-16 flex flex-row justify-between", ue = "border-solid pt-0 px-16 pb-16 flex gap-12 items-center", fe = /* @__PURE__ */ E({
937
- __name: "FzCard",
938
- props: {
939
- title: {},
940
- color: {},
941
- primaryAction: {},
942
- secondaryAction: {},
943
- tertiaryAction: {},
944
- contentClass: {},
945
- collapsible: { type: Boolean },
946
- defaultExpanded: { type: Boolean },
947
- alwaysAlive: { type: Boolean },
948
- hasInfoIcon: { type: Boolean },
949
- environment: { default: "frontoffice" }
950
- },
951
- emits: ["fzprimary:click", "fzsecondary:click", "fztertiary:click", "fzcard:click-info"],
952
- setup(e, { expose: a, emit: l }) {
953
- const t = Z(`(max-width: ${ne.sm})`), o = e, c = l, y = Y(), v = B(o.defaultExpanded ?? !1);
954
- q(
955
- () => o.color === "aliceblue",
956
- (f) => {
957
- f && console.warn(
958
- "[FzCard] The color prop value 'aliceblue' is deprecated and will be removed in a future version. Please use 'blue' instead. The component will automatically map 'aliceblue' to 'blue' for now."
959
- );
960
- },
961
- { immediate: !0 }
962
- );
963
- const C = r(() => o.color === "aliceblue" ? "blue" : o.color), m = r(() => v.value || !o.collapsible), S = r(() => o.alwaysAlive || m.value), I = r(
964
- () => o.title || y.header || y["header-content"]
965
- ), W = r(() => [
966
- o.collapsible ? "cursor-pointer" : ""
967
- ]), j = r(() => o.environment === "backoffice" ? "py-2" : "py-8"), M = r(() => {
968
- switch (C.value) {
969
- case "blue":
970
- return "bg-background-alice-blue";
971
- case "orange":
972
- return "bg-background-seashell";
973
- case "purple":
974
- return "bg-background-pale-purple";
975
- case "grey":
976
- return "bg-background-white-smoke";
977
- case "yellow":
978
- return "bg-semantic-warning-50";
979
- case "red":
980
- return "bg-semantic-error-50";
981
- default:
982
- return "bg-core-white";
983
- }
984
- }), D = r(() => "text-core-black"), L = r(() => {
985
- switch (C.value) {
986
- case "blue":
987
- return "border-background-alice-blue";
988
- case "orange":
989
- return "border-background-seashell";
990
- case "purple":
991
- return "border-background-pale-purple";
992
- case "grey":
993
- return "border-background-white-smoke";
994
- case "yellow":
995
- return "border-semantic-warning-50";
996
- case "red":
997
- return "border-semantic-error-50";
998
- default:
999
- return "border-grey-100";
1000
- }
1001
- }), V = r(
1002
- () => o.primaryAction !== void 0 || o.secondaryAction !== void 0 || o.tertiaryAction !== void 0
1003
- );
1004
- function A() {
1005
- o.collapsible && (v.value = !v.value);
1006
- }
1007
- return R(() => {
1008
- o.tertiaryAction && !o.secondaryAction && !o.primaryAction ? console.warn(
1009
- "[Fiscozen Design System]: You should set primaryAction and secondaryAction if you want to set tertiaryAction"
1010
- ) : o.secondaryAction && !o.primaryAction && console.warn(
1011
- "[Fiscozen Design System]: You should set primaryAction if you want to set secondaryAction"
1012
- );
1013
- }), a({
1014
- /**
1015
- * Method to toggle the card open/closed state
1016
- */
1017
- toggleOpen: A
1018
- }), (f, u) => (n(), b("section", {
1019
- class: s([
1020
- se,
1021
- M.value,
1022
- D.value,
1023
- L.value,
1024
- { "pb-16": !m.value }
1025
- ])
1026
- }, [
1027
- I.value ? (n(), b("header", {
1028
- key: 0,
1029
- class: s([W.value]),
1030
- onClick: A
1031
- }, [
1032
- w("div", {
1033
- class: s(pe)
1034
- }, [
1035
- w("div", {
1036
- class: s(["flex flex-row gap-12 items-start", j.value])
1037
- }, [
1038
- e.title ? (n(), b("h2", {
1039
- key: 0,
1040
- class: "text-core-black font-medium text-xl m-0 p-0 break-words overflow-wrap-anywhere min-w-0 flex-shrink",
1041
- title: e.title
1042
- }, G(e.title), 9, ce)) : p("", !0),
1043
- g(f.$slots, "header")
1044
- ], 2),
1045
- w("div", ie, [
1046
- e.hasInfoIcon ? (n(), d(i(k), {
1047
- key: 0,
1048
- iconName: "circle-question",
1049
- variant: "invisible",
1050
- environment: e.environment,
1051
- onClick: u[0] || (u[0] = P((h) => c("fzcard:click-info"), ["stop"]))
1052
- }, null, 8, ["environment"])) : p("", !0),
1053
- e.collapsible ? (n(), d(i(k), {
1054
- key: 1,
1055
- iconName: v.value ? "chevron-up" : "chevron-down",
1056
- variant: "invisible",
1057
- environment: e.environment
1058
- }, null, 8, ["iconName", "environment"])) : p("", !0)
1059
- ])
1060
- ]),
1061
- g(f.$slots, "header-content")
1062
- ], 2)) : p("", !0),
1063
- S.value ? N((n(), b("article", {
1064
- key: 1,
1065
- class: s(["p-16", e.contentClass])
1066
- }, [
1067
- g(f.$slots, "default")
1068
- ], 2)), [
1069
- [$, m.value]
1070
- ]) : p("", !0),
1071
- (y.footer || V.value) && S.value ? N((n(), b("footer", {
1072
- key: 2,
1073
- class: s([ue, { "justify-end": !i(t) }])
1074
- }, [
1075
- g(f.$slots, "footer", {}, () => [
1076
- U(i(X), {
1077
- horizontal: "",
1078
- gap: "sm",
1079
- class: s({ "w-full": i(t) })
1080
- }, {
1081
- default: F(() => [
1082
- e.tertiaryAction ? (n(), d(i(k), {
1083
- key: 0,
1084
- onClick: u[1] || (u[1] = (h) => c("fztertiary:click")),
1085
- iconName: e.tertiaryAction.icon,
1086
- variant: "invisible",
1087
- environment: e.environment,
1088
- disabled: e.tertiaryAction.disabled
1089
- }, null, 8, ["iconName", "environment", "disabled"])) : p("", !0),
1090
- e.secondaryAction ? (n(), d(i(H), {
1091
- key: 1,
1092
- class: s({ "flex-grow": i(t) }),
1093
- onClick: u[2] || (u[2] = (h) => c("fzsecondary:click")),
1094
- label: e.secondaryAction.label,
1095
- variant: "secondary",
1096
- environment: e.environment,
1097
- disabled: e.secondaryAction.disabled
1098
- }, null, 8, ["class", "label", "environment", "disabled"])) : p("", !0),
1099
- e.primaryAction ? (n(), d(i(H), {
1100
- key: 2,
1101
- class: s({ "flex-grow": i(t) }),
1102
- onClick: u[3] || (u[3] = (h) => c("fzprimary:click")),
1103
- label: e.primaryAction.label,
1104
- variant: "primary",
1105
- environment: e.environment,
1106
- disabled: e.primaryAction.disabled
1107
- }, null, 8, ["class", "label", "environment", "disabled"])) : p("", !0)
1108
- ]),
1109
- _: 1
1110
- }, 8, ["class"])
1111
- ])
1112
- ], 2)), [
1113
- [$, m.value]
1114
- ]) : p("", !0)
1115
- ], 2));
1116
- }
1622
+ //#endregion
1623
+ //#region ../style/src/constants.ts
1624
+ var N = Object.entries(E.global.breakpoint).reduce((e, [t, n]) => (e[t] = n.value, e), {}), P = ["title"], F = { class: "flex flex-row gap-8 items-start" }, I = "border-1 border-solid rounded flex flex-col", L = "border-solid pt-16 px-16 flex flex-row justify-between", R = "border-solid pt-0 px-16 pb-16 flex gap-12 items-center", z = /* @__PURE__ */ o({
1625
+ __name: "FzCard",
1626
+ props: {
1627
+ title: {},
1628
+ color: {},
1629
+ primaryAction: {},
1630
+ secondaryAction: {},
1631
+ tertiaryAction: {},
1632
+ contentClass: {},
1633
+ collapsible: { type: Boolean },
1634
+ defaultExpanded: { type: Boolean },
1635
+ alwaysAlive: { type: Boolean },
1636
+ hasInfoIcon: { type: Boolean },
1637
+ environment: { default: "frontoffice" }
1638
+ },
1639
+ emits: [
1640
+ "fzprimary:click",
1641
+ "fzsecondary:click",
1642
+ "fztertiary:click",
1643
+ "fzcard:click-info"
1644
+ ],
1645
+ setup(o, { expose: l, emit: p }) {
1646
+ let E = T(`(max-width: ${N.sm})`), D = o, O = p, k = g(), A = d(D.defaultExpanded ?? !1);
1647
+ v(() => D.color === "aliceblue", (e) => {
1648
+ e && console.warn("[FzCard] The color prop value 'aliceblue' is deprecated and will be removed in a future version. Please use 'blue' instead. The component will automatically map 'aliceblue' to 'blue' for now.");
1649
+ }, { immediate: !0 });
1650
+ let j = e(() => D.color === "aliceblue" ? "blue" : D.color), M = e(() => A.value || !D.collapsible), z = e(() => D.alwaysAlive || M.value), B = e(() => D.title || k.header || k["header-content"]), V = e(() => [D.collapsible ? "cursor-pointer" : ""]), H = e(() => D.environment === "backoffice" ? "py-2" : "py-8"), U = e(() => {
1651
+ switch (j.value) {
1652
+ case "blue": return "bg-background-alice-blue";
1653
+ case "orange": return "bg-background-seashell";
1654
+ case "purple": return "bg-background-pale-purple";
1655
+ case "grey": return "bg-background-white-smoke";
1656
+ case "yellow": return "bg-semantic-warning-50";
1657
+ case "red": return "bg-semantic-error-50";
1658
+ default: return "bg-core-white";
1659
+ }
1660
+ }), W = e(() => "text-core-black"), G = e(() => {
1661
+ switch (j.value) {
1662
+ case "blue": return "border-background-alice-blue";
1663
+ case "orange": return "border-background-seashell";
1664
+ case "purple": return "border-background-pale-purple";
1665
+ case "grey": return "border-background-white-smoke";
1666
+ case "yellow": return "border-semantic-warning-50";
1667
+ case "red": return "border-semantic-error-50";
1668
+ default: return "border-grey-100";
1669
+ }
1670
+ }), K = e(() => D.primaryAction !== void 0 || D.secondaryAction !== void 0 || D.tertiaryAction !== void 0);
1671
+ function q() {
1672
+ D.collapsible && (A.value = !A.value);
1673
+ }
1674
+ return c(() => {
1675
+ D.tertiaryAction && !D.secondaryAction && !D.primaryAction ? console.warn("[Fiscozen Design System]: You should set primaryAction and secondaryAction if you want to set tertiaryAction") : D.secondaryAction && !D.primaryAction && console.warn("[Fiscozen Design System]: You should set primaryAction if you want to set secondaryAction");
1676
+ }), l({ toggleOpen: q }), (e, c) => (u(), r("section", { class: s([
1677
+ I,
1678
+ U.value,
1679
+ W.value,
1680
+ G.value,
1681
+ { "pb-16": !M.value }
1682
+ ]) }, [
1683
+ B.value ? (u(), r("header", {
1684
+ key: 0,
1685
+ class: s([V.value]),
1686
+ onClick: q
1687
+ }, [i("div", { class: s(L) }, [i("div", { class: s(["flex flex-row gap-12 items-start", H.value]) }, [o.title ? (u(), r("h2", {
1688
+ key: 0,
1689
+ class: "text-core-black font-medium text-xl m-0 p-0 break-words overflow-wrap-anywhere min-w-0 flex-shrink",
1690
+ title: o.title
1691
+ }, m(o.title), 9, P)) : n("", !0), f(e.$slots, "header")], 2), i("div", F, [o.hasInfoIcon ? (u(), t(h(C), {
1692
+ key: 0,
1693
+ iconName: "circle-question",
1694
+ variant: "invisible",
1695
+ environment: o.environment,
1696
+ onClick: c[0] ||= x((e) => O("fzcard:click-info"), ["stop"])
1697
+ }, null, 8, ["environment"])) : n("", !0), o.collapsible ? (u(), t(h(C), {
1698
+ key: 1,
1699
+ iconName: A.value ? "chevron-up" : "chevron-down",
1700
+ variant: "invisible",
1701
+ environment: o.environment
1702
+ }, null, 8, ["iconName", "environment"])) : n("", !0)])]), f(e.$slots, "header-content")], 2)) : n("", !0),
1703
+ z.value ? b((u(), r("article", {
1704
+ key: 1,
1705
+ class: s(["p-16", o.contentClass])
1706
+ }, [f(e.$slots, "default")], 2)), [[_, M.value]]) : n("", !0),
1707
+ (k.footer || K.value) && z.value ? b((u(), r("footer", {
1708
+ key: 2,
1709
+ class: s([R, { "justify-end": !h(E) }])
1710
+ }, [f(e.$slots, "footer", {}, () => [a(h(w), {
1711
+ horizontal: "",
1712
+ gap: "sm",
1713
+ class: s({ "w-full": h(E) })
1714
+ }, {
1715
+ default: y(() => [
1716
+ o.tertiaryAction ? (u(), t(h(C), {
1717
+ key: 0,
1718
+ onClick: c[1] ||= (e) => O("fztertiary:click"),
1719
+ iconName: o.tertiaryAction.icon,
1720
+ variant: "invisible",
1721
+ environment: o.environment,
1722
+ disabled: o.tertiaryAction.disabled
1723
+ }, null, 8, [
1724
+ "iconName",
1725
+ "environment",
1726
+ "disabled"
1727
+ ])) : n("", !0),
1728
+ o.secondaryAction ? (u(), t(h(S), {
1729
+ key: 1,
1730
+ class: s({ "flex-grow": h(E) }),
1731
+ onClick: c[2] ||= (e) => O("fzsecondary:click"),
1732
+ label: o.secondaryAction.label,
1733
+ variant: "secondary",
1734
+ environment: o.environment,
1735
+ disabled: o.secondaryAction.disabled
1736
+ }, null, 8, [
1737
+ "class",
1738
+ "label",
1739
+ "environment",
1740
+ "disabled"
1741
+ ])) : n("", !0),
1742
+ o.primaryAction ? (u(), t(h(S), {
1743
+ key: 2,
1744
+ class: s({ "flex-grow": h(E) }),
1745
+ onClick: c[3] ||= (e) => O("fzprimary:click"),
1746
+ label: o.primaryAction.label,
1747
+ variant: "primary",
1748
+ environment: o.environment,
1749
+ disabled: o.primaryAction.disabled
1750
+ }, null, 8, [
1751
+ "class",
1752
+ "label",
1753
+ "environment",
1754
+ "disabled"
1755
+ ])) : n("", !0)
1756
+ ]),
1757
+ _: 1
1758
+ }, 8, ["class"])])], 2)), [[_, M.value]]) : n("", !0)
1759
+ ], 2));
1760
+ }
1117
1761
  });
1118
- export {
1119
- fe as FzCard
1120
- };
1762
+ //#endregion
1763
+ export { z as FzCard };