@fiscozen/card 1.0.0 → 1.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,6 +1,939 @@
1
- import { defineComponent as O, useSlots as j, ref as M, watch as T, computed as n, onMounted as V, createElementBlock as i, openBlock as r, normalizeClass as a, createCommentVNode as t, withDirectives as A, createElementVNode as f, renderSlot as m, toDisplayString as Y, createBlock as s, unref as c, withModifiers as q, vShow as C } from "vue";
2
- import { FzIconButton as k, FzButton as h } from "@fiscozen/button";
3
- const x = { class: "flex flex-row gap-12 items-center" }, H = ["title"], L = { class: "flex flex-row gap-8 items-center" }, P = "border-1 border-solid border-grey-100 rounded flex flex-col", G = "border-solid pt-16 px-16 flex flex-row justify-between", J = "border-solid pt-0 px-16 pb-16 flex justify-end gap-12 items-center", R = /* @__PURE__ */ O({
1
+ import { defineComponent as E, computed as n, createBlock as d, openBlock as r, 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 l = e, a = n(() => l.alignItems ?? (l.horizontal ? "center" : "stretch"));
15
+ if (!l.horizontal && "layout" in l) {
16
+ const o = l.layout;
17
+ o && o !== "default" && console.error(
18
+ `[FzContainer] The "layout" prop only works when horizontal is true. Current horizontal: ${l.horizontal}, layout: "${o}".`
19
+ );
20
+ }
21
+ const t = n(() => {
22
+ const o = l.main ? "main-content" : "section-content", y = [
23
+ l.horizontal ? "fz-container--horizontal" : "fz-container--vertical",
24
+ `gap-${o}-${l.gap}`,
25
+ `align-items-${a.value}`
26
+ ];
27
+ if (l.horizontal) {
28
+ const v = ("layout" in l ? l.layout : void 0) || "default";
29
+ y.push(`layout-${v}`);
30
+ }
31
+ return y;
32
+ });
33
+ return (o, c) => (r(), d(T(l.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, l) => {
43
+ const a = e.__vccOpts || e;
44
+ for (const [t, o] of l)
45
+ a[t] = o;
46
+ return a;
47
+ }, X = /* @__PURE__ */ K(J, [["__scopeId", "data-v-8c40daeb"]]);
48
+ new DOMRect(0, 0, window.innerWidth, window.innerHeight);
49
+ function Z(e) {
50
+ const l = window.matchMedia(e), a = B(l.matches);
51
+ function t(o) {
52
+ a.value = o.matches;
53
+ }
54
+ return R(() => {
55
+ l.addEventListener("change", t);
56
+ }), Q(() => {
57
+ l.removeEventListener("change", t);
58
+ }), n(() => a.value);
59
+ }
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
+ }, le = [
906
+ "error",
907
+ "warning",
908
+ "success",
909
+ "info"
910
+ ], ae = {
911
+ semanticColorNames: le
912
+ }, te = oe.safeColorNames, ne = ae.semanticColorNames, x = {};
913
+ te.forEach((e) => {
914
+ const l = z.global[e];
915
+ l && Object.keys(l).forEach((a) => {
916
+ var o;
917
+ const t = (o = l[a]) == null ? void 0 : o.value;
918
+ t && (x[e] || (x[e] = {}), x[e][a] = t);
919
+ });
920
+ });
921
+ const O = z.global.semantic;
922
+ O && ne.forEach((e) => {
923
+ const l = O[e];
924
+ l && typeof l == "object" && Object.keys(l).forEach((a) => {
925
+ var o;
926
+ const t = (o = l[a]) == null ? void 0 : o.value;
927
+ if (t) {
928
+ const c = `semantic-${e}`;
929
+ x[c] || (x[c] = {}), x[c][a] = t;
930
+ }
931
+ });
932
+ });
933
+ const re = Object.entries(z.global.breakpoint).reduce(
934
+ (e, [l, a]) => (e[l] = a.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({
4
937
  __name: "FzCard",
5
938
  props: {
6
939
  title: {},
@@ -16,23 +949,23 @@ const x = { class: "flex flex-row gap-12 items-center" }, H = ["title"], L = { c
16
949
  environment: { default: "frontoffice" }
17
950
  },
18
951
  emits: ["fzprimary:click", "fzsecondary:click", "fztertiary:click", "fzcard:click-info"],
19
- setup(z, { expose: B, emit: S }) {
20
- const o = z, u = S, v = j(), d = M(o.defaultExpanded ?? !1);
21
- T(
952
+ setup(e, { expose: l, emit: a }) {
953
+ const t = Z(`(max-width: ${re.sm})`), o = e, c = a, y = Y(), v = B(o.defaultExpanded ?? !1);
954
+ q(
22
955
  () => o.color === "aliceblue",
23
- (e) => {
24
- e && console.warn(
956
+ (f) => {
957
+ f && console.warn(
25
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."
26
959
  );
27
960
  },
28
961
  { immediate: !0 }
29
962
  );
30
- const y = n(() => o.color === "aliceblue" ? "blue" : o.color), p = n(() => d.value || !o.collapsible), g = n(() => o.alwaysAlive || p.value), $ = n(
31
- () => o.title || v.header || v["header-content"]
32
- ), F = n(() => [
963
+ const C = n(() => o.color === "aliceblue" ? "blue" : o.color), m = n(() => v.value || !o.collapsible), S = n(() => o.alwaysAlive || m.value), I = n(
964
+ () => o.title || y.header || y["header-content"]
965
+ ), W = n(() => [
33
966
  o.collapsible ? "cursor-pointer" : ""
34
- ]), N = n(() => {
35
- switch (y.value) {
967
+ ]), j = n(() => o.environment === "backoffice" ? "py-2" : "py-8"), M = n(() => {
968
+ switch (C.value) {
36
969
  case "blue":
37
970
  return "bg-background-alice-blue";
38
971
  case "orange":
@@ -44,126 +977,130 @@ const x = { class: "flex flex-row gap-12 items-center" }, H = ["title"], L = { c
44
977
  default:
45
978
  return "bg-core-white";
46
979
  }
47
- }), I = n(() => "text-core-black"), D = n(() => {
48
- switch (y.value) {
980
+ }), D = n(() => "text-core-black"), L = n(() => {
981
+ switch (C.value) {
49
982
  case "blue":
50
983
  return "border-background-alice-blue";
51
984
  case "orange":
52
- return "border-orange-200";
985
+ return "border-background-seashell";
53
986
  case "purple":
54
- return "border-purple-200";
987
+ return "border-background-pale-purple";
55
988
  case "grey":
56
- return "border-grey-200";
989
+ return "border-background-white-smoke";
57
990
  default:
58
991
  return "border-grey-100";
59
992
  }
60
- });
61
- n(() => {
62
- switch (y.value) {
63
- case "blue":
64
- case "orange":
65
- case "purple":
66
- case "grey":
67
- return "border-0";
68
- default:
69
- return "border-1";
70
- }
71
- });
72
- const E = n(
993
+ }), V = n(
73
994
  () => o.primaryAction !== void 0 || o.secondaryAction !== void 0 || o.tertiaryAction !== void 0
74
995
  );
75
- function w() {
76
- o.collapsible && (d.value = !d.value);
996
+ function A() {
997
+ o.collapsible && (v.value = !v.value);
77
998
  }
78
- return V(() => {
999
+ return R(() => {
79
1000
  o.tertiaryAction && !o.secondaryAction && !o.primaryAction ? console.warn(
80
1001
  "[Fiscozen Design System]: You should set primaryAction and secondaryAction if you want to set tertiaryAction"
81
1002
  ) : o.secondaryAction && !o.primaryAction && console.warn(
82
1003
  "[Fiscozen Design System]: You should set primaryAction if you want to set secondaryAction"
83
1004
  );
84
- }), B({
1005
+ }), l({
85
1006
  /**
86
1007
  * Method to toggle the card open/closed state
87
1008
  */
88
- toggleOpen: w
89
- }), (e, l) => (r(), i("section", {
90
- class: a([P, N.value, I.value, D.value, { "pb-16": !p.value }])
1009
+ toggleOpen: A
1010
+ }), (f, u) => (r(), b("section", {
1011
+ class: s([se, M.value, D.value, L.value, { "pb-16": !m.value }])
91
1012
  }, [
92
- $.value ? (r(), i("header", {
1013
+ I.value ? (r(), b("header", {
93
1014
  key: 0,
94
- class: a([F.value]),
95
- onClick: w
1015
+ class: s([W.value]),
1016
+ onClick: A
96
1017
  }, [
97
- f("div", {
98
- class: a(G)
1018
+ w("div", {
1019
+ class: s(pe)
99
1020
  }, [
100
- f("div", x, [
101
- e.title ? (r(), i("h2", {
1021
+ w("div", {
1022
+ class: s(["flex flex-row gap-12 items-start", j.value])
1023
+ }, [
1024
+ e.title ? (r(), b("h2", {
102
1025
  key: 0,
103
- class: "text-core-black font-medium text-xl m-0 p-0 break-words",
1026
+ class: "text-core-black font-medium text-xl m-0 p-0 break-words overflow-wrap-anywhere min-w-0 flex-shrink",
104
1027
  title: e.title
105
- }, Y(e.title), 9, H)) : t("", !0),
106
- m(e.$slots, "header")
107
- ]),
108
- f("div", L, [
109
- e.hasInfoIcon ? (r(), s(c(k), {
1028
+ }, G(e.title), 9, ce)) : p("", !0),
1029
+ g(f.$slots, "header")
1030
+ ], 2),
1031
+ w("div", ie, [
1032
+ e.hasInfoIcon ? (r(), d(i(k), {
110
1033
  key: 0,
111
1034
  iconName: "circle-question",
112
1035
  variant: "invisible",
113
1036
  environment: e.environment,
114
- onClick: l[0] || (l[0] = q((b) => u("fzcard:click-info"), ["stop"]))
115
- }, null, 8, ["environment"])) : t("", !0),
116
- e.collapsible ? (r(), s(c(k), {
1037
+ onClick: u[0] || (u[0] = P((h) => c("fzcard:click-info"), ["stop"]))
1038
+ }, null, 8, ["environment"])) : p("", !0),
1039
+ e.collapsible ? (r(), d(i(k), {
117
1040
  key: 1,
118
- iconName: d.value ? "chevron-up" : "chevron-down",
1041
+ iconName: v.value ? "chevron-up" : "chevron-down",
119
1042
  variant: "invisible",
120
1043
  environment: e.environment
121
- }, null, 8, ["iconName", "environment"])) : t("", !0)
1044
+ }, null, 8, ["iconName", "environment"])) : p("", !0)
122
1045
  ])
123
1046
  ]),
124
- m(e.$slots, "header-content")
125
- ], 2)) : t("", !0),
126
- g.value ? A((r(), i("article", {
1047
+ g(f.$slots, "header-content")
1048
+ ], 2)) : p("", !0),
1049
+ S.value ? N((r(), b("article", {
127
1050
  key: 1,
128
- class: a(["p-20", e.contentClass])
1051
+ class: s(["p-16", e.contentClass])
129
1052
  }, [
130
- m(e.$slots, "default")
1053
+ g(f.$slots, "default")
131
1054
  ], 2)), [
132
- [C, p.value]
133
- ]) : t("", !0),
134
- (v.footer || E.value) && g.value ? A((r(), i("footer", {
1055
+ [$, m.value]
1056
+ ]) : p("", !0),
1057
+ (y.footer || V.value) && S.value ? N((r(), b("footer", {
135
1058
  key: 2,
136
- class: a([J])
1059
+ class: s([ue, { "justify-end": !i(t) }])
137
1060
  }, [
138
- m(e.$slots, "footer", {}, () => [
139
- e.tertiaryAction ? (r(), s(c(k), {
140
- key: 0,
141
- onClick: l[1] || (l[1] = (b) => u("fztertiary:click")),
142
- iconName: e.tertiaryAction.icon,
143
- variant: "invisible",
144
- environment: e.environment
145
- }, null, 8, ["iconName", "environment"])) : t("", !0),
146
- e.secondaryAction ? (r(), s(c(h), {
147
- key: 1,
148
- onClick: l[2] || (l[2] = (b) => u("fzsecondary:click")),
149
- label: e.secondaryAction.label,
150
- variant: "secondary",
151
- environment: e.environment
152
- }, null, 8, ["label", "environment"])) : t("", !0),
153
- e.primaryAction ? (r(), s(c(h), {
154
- key: 2,
155
- onClick: l[3] || (l[3] = (b) => u("fzprimary:click")),
156
- label: e.primaryAction.label,
157
- variant: "primary",
158
- environment: e.environment
159
- }, null, 8, ["label", "environment"])) : t("", !0)
1061
+ g(f.$slots, "footer", {}, () => [
1062
+ U(i(X), {
1063
+ horizontal: "",
1064
+ gap: "sm",
1065
+ class: s({ "w-full": i(t) })
1066
+ }, {
1067
+ default: F(() => [
1068
+ e.tertiaryAction ? (r(), d(i(k), {
1069
+ key: 0,
1070
+ onClick: u[1] || (u[1] = (h) => c("fztertiary:click")),
1071
+ iconName: e.tertiaryAction.icon,
1072
+ variant: "invisible",
1073
+ environment: e.environment,
1074
+ disabled: e.tertiaryAction.disabled
1075
+ }, null, 8, ["iconName", "environment", "disabled"])) : p("", !0),
1076
+ e.secondaryAction ? (r(), d(i(H), {
1077
+ key: 1,
1078
+ class: s({ "flex-grow": i(t) }),
1079
+ onClick: u[2] || (u[2] = (h) => c("fzsecondary:click")),
1080
+ label: e.secondaryAction.label,
1081
+ variant: "secondary",
1082
+ environment: e.environment,
1083
+ disabled: e.secondaryAction.disabled
1084
+ }, null, 8, ["class", "label", "environment", "disabled"])) : p("", !0),
1085
+ e.primaryAction ? (r(), d(i(H), {
1086
+ key: 2,
1087
+ class: s({ "flex-grow": i(t) }),
1088
+ onClick: u[3] || (u[3] = (h) => c("fzprimary:click")),
1089
+ label: e.primaryAction.label,
1090
+ variant: "primary",
1091
+ environment: e.environment,
1092
+ disabled: e.primaryAction.disabled
1093
+ }, null, 8, ["class", "label", "environment", "disabled"])) : p("", !0)
1094
+ ]),
1095
+ _: 1
1096
+ }, 8, ["class"])
160
1097
  ])
161
1098
  ], 2)), [
162
- [C, p.value]
163
- ]) : t("", !0)
1099
+ [$, m.value]
1100
+ ]) : p("", !0)
164
1101
  ], 2));
165
1102
  }
166
1103
  });
167
1104
  export {
168
- R as FzCard
1105
+ fe as FzCard
169
1106
  };