@bobbykim/mcl-cards 0.10.2 → 0.10.4

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/mcl-cards.js CHANGED
@@ -1,1172 +1,11 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.perspective[data-v-eac7e2f0]{-webkit-perspective:1800px;perspective:1800px}.card[data-v-eac7e2f0]{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotateY(0deg);transform:rotateY(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.flip-card[data-v-eac7e2f0]{-webkit-transform:rotateY(360deg);transform:rotateY(360deg)}.card[data-v-8bf2cac0]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);background:conic-gradient(from var(--border-angle, 0deg),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-via),var(--tw-gradient-to));animation:bg-spin-8bf2cac0 4s linear infinite}@keyframes bg-spin-8bf2cac0{0%{--border-angle: 0deg}to{--border-angle: 360deg}}.card[data-v-8bf2cac0]:hover{animation-play-state:paused}@property --border-angle{syntax: "<angle>"; inherits: false; initial-value: 0deg;}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { defineComponent as B, ref as $, onMounted as R, useSlots as L, computed as f, openBlock as k, createElementBlock as y, normalizeClass as h, createElementVNode as b, createCommentVNode as V, unref as S, withModifiers as z, renderSlot as A, toDisplayString as T, normalizeStyle as D } from "vue";
3
- import { generateClass as g } from "@bobbykim/manguito-theme";
4
- function H(r) {
5
- var n, a, i = "";
6
- if (typeof r == "string" || typeof r == "number") i += r;
7
- else if (typeof r == "object") if (Array.isArray(r)) {
8
- var m = r.length;
9
- for (n = 0; n < m; n++) r[n] && (a = H(r[n])) && (i && (i += " "), i += a);
10
- } else for (a in r) r[a] && (i && (i += " "), i += a);
11
- return i;
12
- }
13
- function I() {
14
- for (var r, n, a = 0, i = "", m = arguments.length; a < m; a++) (r = arguments[a]) && (n = H(r)) && (i && (i += " "), i += n);
15
- return i;
16
- }
17
- const M = (r) => typeof r == "boolean" ? `${r}` : r === 0 ? "0" : r, O = I, t = (r, n) => (a) => {
18
- var i;
19
- if (n?.variants == null) return O(r, a?.class, a?.className);
20
- const { variants: m, defaultVariants: x } = n, v = Object.keys(m).map((c) => {
21
- const e = a?.[c], o = x?.[c];
22
- if (e === null) return null;
23
- const l = M(e) || M(o);
24
- return m[c][l];
25
- }), w = a && Object.entries(a).reduce((c, e) => {
26
- let [o, l] = e;
27
- return l === void 0 || (c[o] = l), c;
28
- }, {}), d = n == null || (i = n.compoundVariants) === null || i === void 0 ? void 0 : i.reduce((c, e) => {
29
- let { class: o, className: l, ...s } = e;
30
- return Object.entries(s).every((p) => {
31
- let [u, C] = p;
32
- return Array.isArray(C) ? C.includes({
33
- ...x,
34
- ...w
35
- }[u]) : {
36
- ...x,
37
- ...w
38
- }[u] === C;
39
- }) ? [
40
- ...c,
41
- o,
42
- l
43
- ] : c;
44
- }, []);
45
- return O(r, v, d, a?.class, a?.className);
46
- }, N = t("", {
47
- variants: {
48
- color: {
49
- primary: "mcl-bg-primary",
50
- secondary: "mcl-bg-secondary",
51
- success: "mcl-bg-success",
52
- danger: "mcl-bg-danger",
53
- info: "mcl-bg-info",
54
- warning: "mcl-bg-warning",
55
- "light-1": "mcl-bg-light-1",
56
- "light-2": "mcl-bg-light-2",
57
- "light-3": "mcl-bg-light-3",
58
- "light-4": "mcl-bg-light-4",
59
- "dark-1": "mcl-bg-dark-1",
60
- "dark-2": "mcl-bg-dark-2",
61
- "dark-3": "mcl-bg-dark-3",
62
- "dark-4": "mcl-bg-dark-4",
63
- black: "mcl-bg-black",
64
- white: "mcl-bg-white",
65
- transparent: "mcl-bg-transparent"
66
- }
67
- }
68
- }), X = t("", {
69
- variants: {
70
- color: {
71
- primary: "hover:bg-primary",
72
- secondary: "hover:bg-secondary",
73
- success: "hover:bg-success",
74
- danger: "hover:bg-danger",
75
- info: "hover:bg-info",
76
- warning: "hover:bg-warning",
77
- "light-1": "hover:bg-light-1",
78
- "light-2": "hover:bg-light-2",
79
- "light-3": "hover:bg-light-3",
80
- "light-4": "hover:bg-light-4",
81
- "dark-1": "hover:bg-dark-1",
82
- "dark-2": "hover:bg-dark-2",
83
- "dark-3": "hover:bg-dark-3",
84
- "dark-4": "hover:bg-dark-4",
85
- black: "hover:bg-black",
86
- white: "hover:bg-white",
87
- transparent: "hover:bg-transparent"
88
- }
89
- }
90
- }), Y = t("", {
91
- variants: {
92
- color: {
93
- primary: "focus:bg-primary",
94
- secondary: "focus:bg-secondary",
95
- success: "focus:bg-success",
96
- danger: "focus:bg-danger",
97
- info: "focus:bg-info",
98
- warning: "focus:bg-warning",
99
- "light-1": "focus:bg-light-1",
100
- "light-2": "focus:bg-light-2",
101
- "light-3": "focus:bg-light-3",
102
- "light-4": "focus:bg-light-4",
103
- "dark-1": "focus:bg-dark-1",
104
- "dark-2": "focus:bg-dark-2",
105
- "dark-3": "focus:bg-dark-3",
106
- "dark-4": "focus:bg-dark-4",
107
- black: "focus:bg-black",
108
- white: "focus:bg-white",
109
- transparent: "focus:bg-transparent"
110
- }
111
- }
112
- }), q = t("", {
113
- variants: {
114
- color: {
115
- primary: "before:bg-primary",
116
- secondary: "before:bg-secondary",
117
- success: "before:bg-success",
118
- danger: "before:bg-danger",
119
- info: "before:bg-info",
120
- warning: "before:bg-warning",
121
- "light-1": "before:bg-light-1",
122
- "light-2": "before:bg-light-2",
123
- "light-3": "before:bg-light-3",
124
- "light-4": "before:bg-light-4",
125
- "dark-1": "before:bg-dark-1",
126
- "dark-2": "before:bg-dark-2",
127
- "dark-3": "before:bg-dark-3",
128
- "dark-4": "before:bg-dark-4",
129
- black: "before:bg-black",
130
- white: "before:bg-white",
131
- transparent: "before:bg-transparent"
132
- }
133
- }
134
- }), F = t("", {
135
- variants: {
136
- color: {
137
- primary: "after:bg-primary",
138
- secondary: "after:bg-secondary",
139
- success: "after:bg-success",
140
- danger: "after:bg-danger",
141
- info: "after:bg-info",
142
- warning: "after:bg-warning",
143
- "light-1": "after:bg-light-1",
144
- "light-2": "after:bg-light-2",
145
- "light-3": "after:bg-light-3",
146
- "light-4": "after:bg-light-4",
147
- "dark-1": "after:bg-dark-1",
148
- "dark-2": "after:bg-dark-2",
149
- "dark-3": "after:bg-dark-3",
150
- "dark-4": "after:bg-dark-4",
151
- black: "after:bg-black",
152
- white: "after:bg-white",
153
- transparent: "after:bg-transparent"
154
- }
155
- }
156
- }), G = t("", {
157
- variants: {
158
- color: {
159
- primary: "active:bg-primary",
160
- secondary: "active:bg-secondary",
161
- success: "active:bg-success",
162
- danger: "active:bg-danger",
163
- info: "active:bg-info",
164
- warning: "active:bg-warning",
165
- "light-1": "active:bg-light-1",
166
- "light-2": "active:bg-light-2",
167
- "light-3": "active:bg-light-3",
168
- "light-4": "active:bg-light-4",
169
- "dark-1": "active:bg-dark-1",
170
- "dark-2": "active:bg-dark-2",
171
- "dark-3": "active:bg-dark-3",
172
- "dark-4": "active:bg-dark-4",
173
- black: "active:bg-black",
174
- white: "active:bg-white",
175
- transparent: "active:bg-transparent"
176
- }
177
- }
178
- }), J = t("", {
179
- variants: {
180
- color: {
181
- primary: "text-primary",
182
- secondary: "text-secondary",
183
- success: "text-success",
184
- danger: "text-danger",
185
- info: "text-info",
186
- warning: "text-warning",
187
- "light-1": "text-light-1",
188
- "light-2": "text-light-2",
189
- "light-3": "text-light-3",
190
- "light-4": "text-light-4",
191
- "dark-1": "text-dark-1",
192
- "dark-2": "text-dark-2",
193
- "dark-3": "text-dark-3",
194
- "dark-4": "text-dark-4",
195
- black: "text-black",
196
- white: "text-white",
197
- transparent: "text-transparent"
198
- }
199
- }
200
- }), K = t("", {
201
- variants: {
202
- color: {
203
- primary: "hover:text-primary",
204
- secondary: "hover:text-secondary",
205
- success: "hover:text-success",
206
- danger: "hover:text-danger",
207
- info: "hover:text-info",
208
- warning: "hover:text-warning",
209
- "light-1": "hover:text-light-1",
210
- "light-2": "hover:text-light-2",
211
- "light-3": "hover:text-light-3",
212
- "light-4": "hover:text-light-4",
213
- "dark-1": "hover:text-dark-1",
214
- "dark-2": "hover:text-dark-2",
215
- "dark-3": "hover:text-dark-3",
216
- "dark-4": "hover:text-dark-4",
217
- black: "hover:text-black",
218
- white: "hover:text-white",
219
- transparent: "hover:text-transparent"
220
- }
221
- }
222
- }), P = t("", {
223
- variants: {
224
- color: {
225
- primary: "focus:text-primary",
226
- secondary: "focus:text-secondary",
227
- success: "focus:text-success",
228
- danger: "focus:text-danger",
229
- info: "focus:text-info",
230
- warning: "focus:text-warning",
231
- "light-1": "focus:text-light-1",
232
- "light-2": "focus:text-light-2",
233
- "light-3": "focus:text-light-3",
234
- "light-4": "focus:text-light-4",
235
- "dark-1": "focus:text-dark-1",
236
- "dark-2": "focus:text-dark-2",
237
- "dark-3": "focus:text-dark-3",
238
- "dark-4": "focus:text-dark-4",
239
- black: "focus:text-black",
240
- white: "focus:text-white",
241
- transparent: "focus:text-transparent"
242
- }
243
- }
244
- }), Q = t("", {
245
- variants: {
246
- color: {
247
- primary: "disabled:text-primary",
248
- secondary: "disabled:text-secondary",
249
- success: "disabled:text-success",
250
- danger: "disabled:text-danger",
251
- info: "disabled:text-info",
252
- warning: "disabled:text-warning",
253
- "light-1": "disabled:text-light-1",
254
- "light-2": "disabled:text-light-2",
255
- "light-3": "disabled:text-light-3",
256
- "light-4": "disabled:text-light-4",
257
- "dark-1": "disabled:text-dark-1",
258
- "dark-2": "disabled:text-dark-2",
259
- "dark-3": "disabled:text-dark-3",
260
- "dark-4": "disabled:text-dark-4",
261
- black: "disabled:text-black",
262
- white: "disabled:text-white",
263
- transparent: "disabled:text-transparent"
264
- }
265
- }
266
- }), U = t("", {
267
- variants: {
268
- color: {
269
- primary: "fill-primary",
270
- secondary: "fill-secondary",
271
- success: "fill-success",
272
- danger: "fill-danger",
273
- info: "fill-info",
274
- warning: "fill-warning",
275
- "light-1": "fill-light-1",
276
- "light-2": "fill-light-2",
277
- "light-3": "fill-light-3",
278
- "light-4": "fill-light-4",
279
- "dark-1": "fill-dark-1",
280
- "dark-2": "fill-dark-2",
281
- "dark-3": "fill-dark-3",
282
- "dark-4": "fill-dark-4",
283
- black: "fill-black",
284
- white: "fill-white",
285
- transparent: "fill-transparent"
286
- }
287
- }
288
- }), Z = t("", {
289
- variants: {
290
- color: {
291
- primary: "ring-primary",
292
- secondary: "ring-secondary",
293
- success: "ring-success",
294
- danger: "ring-danger",
295
- info: "ring-info",
296
- warning: "ring-warning",
297
- "light-1": "ring-light-1",
298
- "light-2": "ring-light-2",
299
- "light-3": "ring-light-3",
300
- "light-4": "ring-light-4",
301
- "dark-1": "ring-dark-1",
302
- "dark-2": "ring-dark-2",
303
- "dark-3": "ring-dark-3",
304
- "dark-4": "ring-dark-4",
305
- black: "ring-black",
306
- white: "ring-white",
307
- transparent: "ring-transparent"
308
- }
309
- }
310
- }), _ = t("", {
311
- variants: {
312
- color: {
313
- primary: "focus:ring-primary",
314
- secondary: "focus:ring-secondary",
315
- success: "focus:ring-success",
316
- danger: "focus:ring-danger",
317
- info: "focus:ring-info",
318
- warning: "focus:ring-warning",
319
- "light-1": "focus:ring-light-1",
320
- "light-2": "focus:ring-light-2",
321
- "light-3": "focus:ring-light-3",
322
- "light-4": "focus:ring-light-4",
323
- "dark-1": "focus:ring-dark-1",
324
- "dark-2": "focus:ring-dark-2",
325
- "dark-3": "focus:ring-dark-3",
326
- "dark-4": "focus:ring-dark-4",
327
- black: "focus:ring-black",
328
- white: "focus:ring-white",
329
- transparent: "focus:ring-transparent"
330
- }
331
- }
332
- }), rr = t("", {
333
- variants: {
334
- color: {
335
- primary: "active:ring-primary",
336
- secondary: "active:ring-secondary",
337
- success: "active:ring-success",
338
- danger: "active:ring-danger",
339
- info: "active:ring-info",
340
- warning: "active:ring-warning",
341
- "light-1": "active:ring-light-1",
342
- "light-2": "active:ring-light-2",
343
- "light-3": "active:ring-light-3",
344
- "light-4": "active:ring-light-4",
345
- "dark-1": "active:ring-dark-1",
346
- "dark-2": "active:ring-dark-2",
347
- "dark-3": "active:ring-dark-3",
348
- "dark-4": "active:ring-dark-4",
349
- black: "active:ring-black",
350
- white: "active:ring-white",
351
- transparent: "active:ring-transparent"
352
- }
353
- }
354
- }), tr = t("", {
355
- variants: {
356
- color: {
357
- primary: "ring-offset-primary",
358
- secondary: "ring-offset-secondary",
359
- success: "ring-offset-success",
360
- danger: "ring-offset-danger",
361
- info: "ring-offset-info",
362
- warning: "ring-offset-warning",
363
- "light-1": "ring-offset-light-1",
364
- "light-2": "ring-offset-light-2",
365
- "light-3": "ring-offset-light-3",
366
- "light-4": "ring-offset-light-4",
367
- "dark-1": "ring-offset-dark-1",
368
- "dark-2": "ring-offset-dark-2",
369
- "dark-3": "ring-offset-dark-3",
370
- "dark-4": "ring-offset-dark-4",
371
- black: "ring-offset-black",
372
- white: "ring-offset-white",
373
- transparent: "ring-offset-transparent"
374
- }
375
- }
376
- }), ar = t("", {
377
- variants: {
378
- color: {
379
- primary: "mcl-outline-primary",
380
- secondary: "mcl-outline-secondary",
381
- success: "mcl-outline-success",
382
- danger: "mcl-outline-danger",
383
- info: "mcl-outline-info",
384
- warning: "mcl-outline-warning",
385
- "light-1": "mcl-outline-light-1",
386
- "light-2": "mcl-outline-light-2",
387
- "light-3": "mcl-outline-light-3",
388
- "light-4": "mcl-outline-light-4",
389
- "dark-1": "mcl-outline-dark-1",
390
- "dark-2": "mcl-outline-dark-2",
391
- "dark-3": "mcl-outline-dark-3",
392
- "dark-4": "mcl-outline-dark-4",
393
- black: "mcl-outline-black",
394
- white: "mcl-outline-white",
395
- transparent: "mcl-outline-transparent"
396
- }
397
- }
398
- }), er = t("", {
399
- variants: {
400
- color: {
401
- primary: "focus:mcl-outline-primary",
402
- secondary: "focus:mcl-outline-secondary",
403
- success: "focus:mcl-outline-success",
404
- danger: "focus:mcl-outline-danger",
405
- info: "focus:mcl-outline-info",
406
- warning: "focus:mcl-outline-warning",
407
- "light-1": "focus:mcl-outline-light-1",
408
- "light-2": "focus:mcl-outline-light-2",
409
- "light-3": "focus:mcl-outline-light-3",
410
- "light-4": "focus:mcl-outline-light-4",
411
- "dark-1": "focus:mcl-outline-dark-1",
412
- "dark-2": "focus:mcl-outline-dark-2",
413
- "dark-3": "focus:mcl-outline-dark-3",
414
- "dark-4": "focus:mcl-outline-dark-4",
415
- black: "focus:mcl-outline-black",
416
- white: "focus:mcl-outline-white",
417
- transparent: "focus:mcl-outline-transparent"
418
- }
419
- }
420
- }), lr = t("", {
421
- variants: {
422
- color: {
423
- primary: "active:mcl-outline-primary",
424
- secondary: "active:mcl-outline-secondary",
425
- success: "active:mcl-outline-success",
426
- danger: "active:mcl-outline-danger",
427
- info: "active:mcl-outline-info",
428
- warning: "active:mcl-outline-warning",
429
- "light-1": "active:mcl-outline-light-1",
430
- "light-2": "active:mcl-outline-light-2",
431
- "light-3": "active:mcl-outline-light-3",
432
- "light-4": "active:mcl-outline-light-4",
433
- "dark-1": "active:mcl-outline-dark-1",
434
- "dark-2": "active:mcl-outline-dark-2",
435
- "dark-3": "active:mcl-outline-dark-3",
436
- "dark-4": "active:mcl-outline-dark-4",
437
- black: "active:mcl-outline-black",
438
- white: "active:mcl-outline-white",
439
- transparent: "active:mcl-outline-transparent"
440
- }
441
- }
442
- }), ir = t("", {
443
- variants: {
444
- color: {
445
- primary: "btn-primary",
446
- secondary: "btn-secondary",
447
- success: "btn-success",
448
- danger: "btn-danger",
449
- info: "btn-info",
450
- warning: "btn-warning",
451
- "light-1": "btn-light-1",
452
- "light-2": "btn-light-2",
453
- "light-3": "btn-light-3",
454
- "light-4": "btn-light-4",
455
- "dark-1": "btn-dark-1",
456
- "dark-2": "btn-dark-2",
457
- "dark-3": "btn-dark-3",
458
- "dark-4": "btn-dark-4",
459
- black: "btn-black",
460
- white: "btn-white",
461
- transparent: "btn-transparent"
462
- }
463
- }
464
- }), or = t("", {
465
- variants: {
466
- color: {
467
- primary: "mcl-list-primary",
468
- secondary: "mcl-list-secondary",
469
- success: "mcl-list-success",
470
- danger: "mcl-list-danger",
471
- info: "mcl-list-info",
472
- warning: "mcl-list-warning",
473
- "light-1": "mcl-list-light-1",
474
- "light-2": "mcl-list-light-2",
475
- "light-3": "mcl-list-light-3",
476
- "light-4": "mcl-list-light-4",
477
- "dark-1": "mcl-list-dark-1",
478
- "dark-2": "mcl-list-dark-2",
479
- "dark-3": "mcl-list-dark-3",
480
- "dark-4": "mcl-list-dark-4",
481
- black: "mcl-list-black",
482
- white: "mcl-list-white",
483
- transparent: "mcl-list-transparent"
484
- }
485
- }
486
- }), nr = t("", {
487
- variants: {
488
- color: {
489
- primary: "border-primary",
490
- secondary: "border-secondary",
491
- success: "border-success",
492
- danger: "border-danger",
493
- info: "border-info",
494
- warning: "border-warning",
495
- "light-1": "border-light-1",
496
- "light-2": "border-light-2",
497
- "light-3": "border-light-3",
498
- "light-4": "border-light-4",
499
- "dark-1": "border-dark-1",
500
- "dark-2": "border-dark-2",
501
- "dark-3": "border-dark-3",
502
- "dark-4": "border-dark-4",
503
- black: "border-black",
504
- white: "border-white",
505
- transparent: "border-transparent"
506
- }
507
- }
508
- }), sr = t("", {
509
- variants: {
510
- color: {
511
- primary: "border-x-primary",
512
- secondary: "border-x-secondary",
513
- success: "border-x-success",
514
- danger: "border-x-danger",
515
- info: "border-x-info",
516
- warning: "border-x-warning",
517
- "light-1": "border-x-light-1",
518
- "light-2": "border-x-light-2",
519
- "light-3": "border-x-light-3",
520
- "light-4": "border-x-light-4",
521
- "dark-1": "border-x-dark-1",
522
- "dark-2": "border-x-dark-2",
523
- "dark-3": "border-x-dark-3",
524
- "dark-4": "border-x-dark-4",
525
- black: "border-x-black",
526
- white: "border-x-white",
527
- transparent: "border-x-transparent"
528
- }
529
- }
530
- }), dr = t("", {
531
- variants: {
532
- color: {
533
- primary: "border-y-primary",
534
- secondary: "border-y-secondary",
535
- success: "border-y-success",
536
- danger: "border-y-danger",
537
- info: "border-y-info",
538
- warning: "border-y-warning",
539
- "light-1": "border-y-light-1",
540
- "light-2": "border-y-light-2",
541
- "light-3": "border-y-light-3",
542
- "light-4": "border-y-light-4",
543
- "dark-1": "border-y-dark-1",
544
- "dark-2": "border-y-dark-2",
545
- "dark-3": "border-y-dark-3",
546
- "dark-4": "border-y-dark-4",
547
- black: "border-y-black",
548
- white: "border-y-white",
549
- transparent: "border-y-transparent"
550
- }
551
- }
552
- }), cr = t("", {
553
- variants: {
554
- color: {
555
- primary: "border-t-primary",
556
- secondary: "border-t-secondary",
557
- success: "border-t-success",
558
- danger: "border-t-danger",
559
- info: "border-t-info",
560
- warning: "border-t-warning",
561
- "light-1": "border-t-light-1",
562
- "light-2": "border-t-light-2",
563
- "light-3": "border-t-light-3",
564
- "light-4": "border-t-light-4",
565
- "dark-1": "border-t-dark-1",
566
- "dark-2": "border-t-dark-2",
567
- "dark-3": "border-t-dark-3",
568
- "dark-4": "border-t-dark-4",
569
- black: "border-t-black",
570
- white: "border-t-white",
571
- transparent: "border-t-transparent"
572
- }
573
- }
574
- }), gr = t("", {
575
- variants: {
576
- color: {
577
- primary: "border-b-primary",
578
- secondary: "border-b-secondary",
579
- success: "border-b-success",
580
- danger: "border-b-danger",
581
- info: "border-b-info",
582
- warning: "border-b-warning",
583
- "light-1": "border-b-light-1",
584
- "light-2": "border-b-light-2",
585
- "light-3": "border-b-light-3",
586
- "light-4": "border-b-light-4",
587
- "dark-1": "border-b-dark-1",
588
- "dark-2": "border-b-dark-2",
589
- "dark-3": "border-b-dark-3",
590
- "dark-4": "border-b-dark-4",
591
- black: "border-b-black",
592
- white: "border-b-white",
593
- transparent: "border-b-transparent"
594
- }
595
- }
596
- }), br = t("", {
597
- variants: {
598
- color: {
599
- primary: "border-l-primary",
600
- secondary: "border-l-secondary",
601
- success: "border-l-success",
602
- danger: "border-l-danger",
603
- info: "border-l-info",
604
- warning: "border-l-warning",
605
- "light-1": "border-l-light-1",
606
- "light-2": "border-l-light-2",
607
- "light-3": "border-l-light-3",
608
- "light-4": "border-l-light-4",
609
- "dark-1": "border-l-dark-1",
610
- "dark-2": "border-l-dark-2",
611
- "dark-3": "border-l-dark-3",
612
- "dark-4": "border-l-dark-4",
613
- black: "border-l-black",
614
- white: "border-l-white",
615
- transparent: "border-l-transparent"
616
- }
617
- }
618
- }), hr = t("", {
619
- variants: {
620
- color: {
621
- primary: "border-r-primary",
622
- secondary: "border-r-secondary",
623
- success: "border-r-success",
624
- danger: "border-r-danger",
625
- info: "border-r-info",
626
- warning: "border-r-warning",
627
- "light-1": "border-r-light-1",
628
- "light-2": "border-r-light-2",
629
- "light-3": "border-r-light-3",
630
- "light-4": "border-r-light-4",
631
- "dark-1": "border-r-dark-1",
632
- "dark-2": "border-r-dark-2",
633
- "dark-3": "border-r-dark-3",
634
- "dark-4": "border-r-dark-4",
635
- black: "border-r-black",
636
- white: "border-r-white",
637
- transparent: "border-r-transparent"
638
- }
639
- }
640
- }), xr = t("", {
641
- variants: {
642
- size: {
643
- xs: "text-xs",
644
- sm: "text-sm",
645
- md: "text-md",
646
- lg: "text-lg",
647
- xl: "text-xl"
648
- }
649
- }
650
- }), mr = t("", {
651
- variants: {
652
- weight: {
653
- light: "font-light",
654
- normal: "font-normal",
655
- bold: "font-bold"
656
- }
657
- }
658
- }), ur = t("", {
659
- variants: {
660
- align: {
661
- left: "text-left",
662
- center: "text-center",
663
- right: "text-right"
664
- }
665
- }
666
- }), pr = t("", {
667
- variants: {
668
- size: {
669
- sm: "h1-sm",
670
- md: "h1-md",
671
- lg: "h1-lg",
672
- xl: "h1-xl"
673
- }
674
- }
675
- }), fr = t("", {
676
- variants: {
677
- size: {
678
- sm: "h2-sm",
679
- md: "h2-md",
680
- lg: "h2-lg",
681
- xl: "h2-xl"
682
- }
683
- }
684
- }), kr = t("", {
685
- variants: {
686
- size: {
687
- sm: "h3-sm",
688
- md: "h3-md",
689
- lg: "h3-lg",
690
- xl: "h3-xl"
691
- }
692
- }
693
- }), yr = t("", {
694
- variants: {
695
- size: {
696
- sm: "h4-sm",
697
- md: "h4-md",
698
- lg: "h4-lg",
699
- xl: "h4-xl"
700
- }
701
- }
702
- }), vr = {
703
- 1: "border-[1px]",
704
- 2: "border-[2px]",
705
- 3: "border-[3px]",
706
- 4: "border-[4px]",
707
- 5: "border-[5px]",
708
- 6: "border-[6px]",
709
- 7: "border-[7px]",
710
- 8: "border-[8px]",
711
- 9: "border-[9px]",
712
- 10: "border-[10px]",
713
- 11: "border-[11px]",
714
- 12: "border-[12px]"
715
- }, wr = {
716
- 1: "border-x-[1px]",
717
- 2: "border-x-[2px]",
718
- 3: "border-x-[3px]",
719
- 4: "border-x-[4px]",
720
- 5: "border-x-[5px]",
721
- 6: "border-x-[6px]",
722
- 7: "border-x-[7px]",
723
- 8: "border-x-[8px]",
724
- 9: "border-x-[9px]",
725
- 10: "border-x-[10px]",
726
- 11: "border-x-[11px]",
727
- 12: "border-x-[12px]"
728
- }, Cr = {
729
- 1: "border-y-[1px]",
730
- 2: "border-y-[2px]",
731
- 3: "border-y-[3px]",
732
- 4: "border-y-[4px]",
733
- 5: "border-y-[5px]",
734
- 6: "border-y-[6px]",
735
- 7: "border-y-[7px]",
736
- 8: "border-y-[8px]",
737
- 9: "border-y-[9px]",
738
- 10: "border-y-[10px]",
739
- 11: "border-y-[11px]",
740
- 12: "border-y-[12px]"
741
- }, Vr = {
742
- 1: "border-t-[1px]",
743
- 2: "border-t-[2px]",
744
- 3: "border-t-[3px]",
745
- 4: "border-t-[4px]",
746
- 5: "border-t-[5px]",
747
- 6: "border-t-[6px]",
748
- 7: "border-t-[7px]",
749
- 8: "border-t-[8px]",
750
- 9: "border-t-[9px]",
751
- 10: "border-t-[10px]",
752
- 11: "border-t-[11px]",
753
- 12: "border-t-[12px]"
754
- }, Br = {
755
- 1: "border-b-[1px]",
756
- 2: "border-b-[2px]",
757
- 3: "border-b-[3px]",
758
- 4: "border-b-[4px]",
759
- 5: "border-b-[5px]",
760
- 6: "border-b-[6px]",
761
- 7: "border-b-[7px]",
762
- 8: "border-b-[8px]",
763
- 9: "border-b-[9px]",
764
- 10: "border-b-[10px]",
765
- 11: "border-b-[11px]",
766
- 12: "border-b-[12px]"
767
- }, Tr = {
768
- 1: "border-l-[1px]",
769
- 2: "border-l-[2px]",
770
- 3: "border-l-[3px]",
771
- 4: "border-l-[4px]",
772
- 5: "border-l-[5px]",
773
- 6: "border-l-[6px]",
774
- 7: "border-l-[7px]",
775
- 8: "border-l-[8px]",
776
- 9: "border-l-[9px]",
777
- 10: "border-l-[10px]",
778
- 11: "border-l-[11px]",
779
- 12: "border-l-[12px]"
780
- }, Lr = {
781
- 1: "border-r-[1px]",
782
- 2: "border-r-[2px]",
783
- 3: "border-r-[3px]",
784
- 4: "border-r-[4px]",
785
- 5: "border-r-[5px]",
786
- 6: "border-r-[6px]",
787
- 7: "border-r-[7px]",
788
- 8: "border-r-[8px]",
789
- 9: "border-r-[9px]",
790
- 10: "border-r-[10px]",
791
- 11: "border-r-[11px]",
792
- 12: "border-r-[12px]"
793
- }, Ar = (r) => vr[r.width] ?? "", jr = (r) => wr[r.width] ?? "", Sr = (r) => Cr[r.width] ?? "", zr = (r) => Vr[r.width] ?? "", Mr = (r) => Br[r.width] ?? "", Or = (r) => Tr[r.width] ?? "", $r = (r) => Lr[r.width] ?? "", Hr = {
794
- 10: "opacity-10",
795
- 20: "opacity-20",
796
- 30: "opacity-30",
797
- 40: "opacity-40",
798
- 50: "opacity-50",
799
- 60: "opacity-60",
800
- 70: "opacity-70",
801
- 80: "opacity-80",
802
- 90: "opacity-90",
803
- 100: "opacity-100"
804
- }, Wr = {
805
- 10: "bg-opacity-10",
806
- 20: "bg-opacity-20",
807
- 30: "bg-opacity-30",
808
- 40: "bg-opacity-40",
809
- 50: "bg-opacity-50",
810
- 60: "bg-opacity-60",
811
- 70: "bg-opacity-70",
812
- 80: "bg-opacity-80",
813
- 90: "bg-opacity-90",
814
- 100: "bg-opacity-100"
815
- }, Er = {
816
- 10: "outline-opacity-10",
817
- 20: "outline-opacity-20",
818
- 30: "outline-opacity-30",
819
- 40: "outline-opacity-40",
820
- 50: "outline-opacity-50",
821
- 60: "outline-opacity-60",
822
- 70: "outline-opacity-70",
823
- 80: "outline-opacity-80",
824
- 90: "outline-opacity-90",
825
- 100: "outline-opacity-100"
826
- }, Rr = (r) => Hr[r.opacity] ?? "", Dr = (r) => Wr[r.opacity] ?? "", Ir = (r) => Er[r.opacity] ?? "", Nr = t("", {
827
- variants: {
828
- spacing: {
829
- 0: "m-0",
830
- "3xs": "m-3xs",
831
- "2xs": "m-2xs",
832
- xs: "m-xs",
833
- sm: "m-sm",
834
- md: "m-md",
835
- lg: "m-lg",
836
- xl: "m-xl",
837
- "2xl": "m-2xl",
838
- "3xl": "m-3xl"
839
- }
840
- }
841
- }), Xr = t("", {
842
- variants: {
843
- spacing: {
844
- 0: "mx-0",
845
- "3xs": "mx-3xs",
846
- "2xs": "mx-2xs",
847
- xs: "mx-xs",
848
- sm: "mx-sm",
849
- md: "mx-md",
850
- lg: "mx-lg",
851
- xl: "mx-xl",
852
- "2xl": "mx-2xl",
853
- "3xl": "mx-3xl"
854
- }
855
- }
856
- }), Yr = t("", {
857
- variants: {
858
- spacing: {
859
- 0: "my-0",
860
- "3xs": "my-3xs",
861
- "2xs": "my-2xs",
862
- xs: "my-xs",
863
- sm: "my-sm",
864
- md: "my-md",
865
- lg: "my-lg",
866
- xl: "my-xl",
867
- "2xl": "my-2xl",
868
- "3xl": "my-3xl"
869
- }
870
- }
871
- }), qr = t("", {
872
- variants: {
873
- spacing: {
874
- 0: "mt-0",
875
- "3xs": "mt-3xs",
876
- "2xs": "mt-2xs",
877
- xs: "mt-xs",
878
- sm: "mt-sm",
879
- md: "mt-md",
880
- lg: "mt-lg",
881
- xl: "mt-xl",
882
- "2xl": "mt-2xl",
883
- "3xl": "mt-3xl"
884
- }
885
- }
886
- }), Fr = t("", {
887
- variants: {
888
- spacing: {
889
- 0: "mb-0",
890
- "3xs": "mb-3xs",
891
- "2xs": "mb-2xs",
892
- xs: "mb-xs",
893
- sm: "mb-sm",
894
- md: "mb-md",
895
- lg: "mb-lg",
896
- xl: "mb-xl",
897
- "2xl": "mb-2xl",
898
- "3xl": "mb-3xl"
899
- }
900
- }
901
- }), Gr = t("", {
902
- variants: {
903
- spacing: {
904
- 0: "ml-0",
905
- "3xs": "ml-3xs",
906
- "2xs": "ml-2xs",
907
- xs: "ml-xs",
908
- sm: "ml-sm",
909
- md: "ml-md",
910
- lg: "ml-lg",
911
- xl: "ml-xl",
912
- "2xl": "ml-2xl",
913
- "3xl": "ml-3xl"
914
- }
915
- }
916
- }), Jr = t("", {
917
- variants: {
918
- spacing: {
919
- 0: "mr-0",
920
- "3xs": "mr-3xs",
921
- "2xs": "mr-2xs",
922
- xs: "mr-xs",
923
- sm: "mr-sm",
924
- md: "mr-md",
925
- lg: "mr-lg",
926
- xl: "mr-xl",
927
- "2xl": "mr-2xl",
928
- "3xl": "mr-3xl"
929
- }
930
- }
931
- }), Kr = t("", {
932
- variants: {
933
- spacing: {
934
- 0: "p-0",
935
- "3xs": "p-3xs",
936
- "2xs": "p-2xs",
937
- xs: "p-xs",
938
- sm: "p-sm",
939
- md: "p-md",
940
- lg: "p-lg",
941
- xl: "p-xl",
942
- "2xl": "p-2xl",
943
- "3xl": "p-3xl"
944
- }
945
- }
946
- }), Pr = t("", {
947
- variants: {
948
- spacing: {
949
- 0: "px-0",
950
- "3xs": "px-3xs",
951
- "2xs": "px-2xs",
952
- xs: "px-xs",
953
- sm: "px-sm",
954
- md: "px-md",
955
- lg: "px-lg",
956
- xl: "px-xl",
957
- "2xl": "px-2xl",
958
- "3xl": "px-3xl"
959
- }
960
- }
961
- }), Qr = t("", {
962
- variants: {
963
- spacing: {
964
- 0: "py-0",
965
- "3xs": "py-3xs",
966
- "2xs": "py-2xs",
967
- xs: "py-xs",
968
- sm: "py-sm",
969
- md: "py-md",
970
- lg: "py-lg",
971
- xl: "py-xl",
972
- "2xl": "py-2xl",
973
- "3xl": "py-3xl"
974
- }
975
- }
976
- }), Ur = t("", {
977
- variants: {
978
- spacing: {
979
- 0: "pt-0",
980
- "3xs": "pt-3xs",
981
- "2xs": "pt-2xs",
982
- xs: "pt-xs",
983
- sm: "pt-sm",
984
- md: "pt-md",
985
- lg: "pt-lg",
986
- xl: "pt-xl",
987
- "2xl": "pt-2xl",
988
- "3xl": "pt-3xl"
989
- }
990
- }
991
- }), Zr = t("", {
992
- variants: {
993
- spacing: {
994
- 0: "pb-0",
995
- "3xs": "pb-3xs",
996
- "2xs": "pb-2xs",
997
- xs: "pb-xs",
998
- sm: "pb-sm",
999
- md: "pb-md",
1000
- lg: "pb-lg",
1001
- xl: "pb-xl",
1002
- "2xl": "pb-2xl",
1003
- "3xl": "pb-3xl"
1004
- }
1005
- }
1006
- }), _r = t("", {
1007
- variants: {
1008
- spacing: {
1009
- 0: "pl-0",
1010
- "3xs": "pl-3xs",
1011
- "2xs": "pl-2xs",
1012
- xs: "pl-xs",
1013
- sm: "pl-sm",
1014
- md: "pl-md",
1015
- lg: "pl-lg",
1016
- xl: "pl-xl",
1017
- "2xl": "pl-2xl",
1018
- "3xl": "pl-3xl"
1019
- }
1020
- }
1021
- }), rt = t("", {
1022
- variants: {
1023
- spacing: {
1024
- 0: "pr-0",
1025
- "3xs": "pr-3xs",
1026
- "2xs": "pr-2xs",
1027
- xs: "pr-xs",
1028
- sm: "pr-sm",
1029
- md: "pr-md",
1030
- lg: "pr-lg",
1031
- xl: "pr-xl",
1032
- "2xl": "pr-2xl",
1033
- "3xl": "pr-3xl"
1034
- }
1035
- }
1036
- }), tt = t("", {
1037
- variants: {
1038
- spacing: {
1039
- 0: "gap-0",
1040
- "3xs": "gap-3xs",
1041
- "2xs": "gap-2xs",
1042
- xs: "gap-xs",
1043
- sm: "gap-sm",
1044
- md: "gap-md",
1045
- lg: "gap-lg",
1046
- xl: "gap-xl",
1047
- "2xl": "gap-2xl",
1048
- "3xl": "gap-3xl"
1049
- }
1050
- }
1051
- }), at = {
1052
- // color
1053
- bgColorVariant: N,
1054
- hoverBgColorVariant: X,
1055
- focusBgColorVariant: Y,
1056
- beforeBgColorVariant: q,
1057
- afterBgColorVariant: F,
1058
- activeBgColorVariant: G,
1059
- textColorVariant: J,
1060
- hoverTextColorVariant: K,
1061
- focusTextColorVariant: P,
1062
- disabledTextColorVariant: Q,
1063
- svgFillColorVariant: U,
1064
- ringColorVariant: Z,
1065
- focusRingColorVariant: _,
1066
- activeRingColorVariant: rr,
1067
- ringOffsetColorVariant: tr,
1068
- outlineColorVariant: ar,
1069
- focusOutlineColorVariant: er,
1070
- activeOutlineColorVariant: lr,
1071
- btnColorVariant: ir,
1072
- listColorVariant: or,
1073
- borderColorVariant: nr,
1074
- borderXColorVariant: sr,
1075
- borderYColorVariant: dr,
1076
- borderTopColorVariant: cr,
1077
- borderBottomColorVariant: gr,
1078
- borderLeftColorVariant: br,
1079
- borderRightColorVariant: hr,
1080
- // typography
1081
- bodyTextVariant: xr,
1082
- fontWeightVariant: mr,
1083
- textAlignVariant: ur,
1084
- h1Variant: pr,
1085
- h2Variant: fr,
1086
- h3Variant: kr,
1087
- h4Variant: yr,
1088
- // border width
1089
- borderWidthVariant: Ar,
1090
- borderXWidthVariant: jr,
1091
- borderYWidthVariant: Sr,
1092
- borderTopWidthVariant: zr,
1093
- borderBottomWidthVariant: Mr,
1094
- borderLeftWidthVariant: Or,
1095
- borderRightWidthVariant: $r,
1096
- // opacity
1097
- opacityVariant: Rr,
1098
- bgOpacityVariant: Dr,
1099
- outlineOpacityVariant: Ir,
1100
- // spacing
1101
- marginVariant: Nr,
1102
- marginXVariant: Xr,
1103
- marginYVariant: Yr,
1104
- marginTopVariant: qr,
1105
- marginBottomVariant: Fr,
1106
- marginLeftVariant: Gr,
1107
- marginRightVariant: Jr,
1108
- paddingVariant: Kr,
1109
- paddingXVariant: Pr,
1110
- paddingYVariant: Qr,
1111
- paddingTopVariant: Ur,
1112
- paddingBottomVariant: Zr,
1113
- paddingLeftVariant: _r,
1114
- paddingRightVariant: rt,
1115
- gapVariant: tt
1116
- };
1117
- B({
1118
- setup(r, { slots: n }) {
1119
- const a = $(!1);
1120
- return R(() => {
1121
- a.value = !0;
1122
- }), () => a.value && n.default ? n.default() : null;
1123
- }
1124
- });
1125
- const et = {
1126
- xs: "backdrop-blur-xs",
1127
- sm: "backdrop-blur-sm",
1128
- md: "backdrop-blur-md",
1129
- lg: "backdrop-blur-lg",
1130
- xl: "backdrop-blur-xl"
1131
- }, lt = {
1132
- primary: "mcl-glass-primary",
1133
- secondary: "mcl-glass-secondary",
1134
- success: "mcl-glass-success",
1135
- info: "mcl-glass-info",
1136
- danger: "mcl-glass-danger",
1137
- warning: "mcl-glass-warning",
1138
- "light-1": "mcl-glass-light-1",
1139
- "light-2": "mcl-glass-light-2",
1140
- "light-3": "mcl-glass-light-3",
1141
- "light-4": "mcl-glass-light-4",
1142
- "dark-1": "mcl-glass-dark-1",
1143
- "dark-2": "mcl-glass-dark-2",
1144
- "dark-3": "mcl-glass-dark-3",
1145
- "dark-4": "mcl-glass-dark-4",
1146
- black: "mcl-glass-black",
1147
- white: "mcl-glass-white",
1148
- transparent: "mcl-glass-transparent"
1149
- }, it = {
1150
- 10: "mcl-depth-10",
1151
- 20: "mcl-depth-20",
1152
- 30: "mcl-depth-30",
1153
- 40: "mcl-depth-40",
1154
- 50: "mcl-depth-50",
1155
- 60: "mcl-depth-60",
1156
- 70: "mcl-depth-70",
1157
- 80: "mcl-depth-80",
1158
- 90: "mcl-depth-90",
1159
- 100: "mcl-depth-100"
1160
- }, ot = (r, n, a, i = 10) => [
1161
- "mcl-glassmorphism",
1162
- lt[r],
1163
- et[n],
1164
- at.bgOpacityVariant({ opacity: a }),
1165
- it[i]
1166
- ].filter(Boolean).join(" "), nt = {
2
+ import { defineComponent as L, useSlots as T, computed as g, openBlock as m, createElementBlock as C, normalizeClass as c, createElementVNode as s, createCommentVNode as x, unref as S, withModifiers as j, renderSlot as A, toDisplayString as B, ref as z, normalizeStyle as $ } from "vue";
3
+ import { generateClass as i } from "@bobbykim/manguito-theme";
4
+ import { getGlassmorphismClass as E } from "@bobbykim/manguito-theme/util";
5
+ const O = {
1167
6
  key: 0,
1168
7
  class: "relative"
1169
- }, st = ["src", "alt"], dt = ["innerHTML"], ct = { class: "flex h-full flex-col justify-between" }, gt = { class: "flex-1 px-xs pt-sm" }, bt = ["innerHTML"], ht = ["innerHTML"], xt = { class: "w-full px-xs" }, mt = ["href", "target"], At = /* @__PURE__ */ B({
8
+ }, D = ["src", "alt"], I = ["innerHTML"], W = { class: "flex h-full flex-col justify-between" }, G = { class: "flex-1 px-xs pt-sm" }, q = ["innerHTML"], N = ["innerHTML"], F = { class: "w-full px-xs" }, R = ["href", "target"], ot = /* @__PURE__ */ L({
1170
9
  __name: "MclCardA",
1171
10
  props: {
1172
11
  title: {},
@@ -1198,123 +37,123 @@ const et = {
1198
37
  showShadow: { type: Boolean, default: !0 }
1199
38
  },
1200
39
  emits: ["card-click", "card-btn-click"],
1201
- setup(r, { emit: n }) {
1202
- const a = r;
1203
- L();
1204
- const i = n, m = f(() => {
40
+ setup(t, { emit: v }) {
41
+ const n = t;
42
+ T();
43
+ const u = v, b = g(() => {
1205
44
  const {
1206
45
  borderColor: e,
1207
- bgColor: o,
1208
- rounded: l,
1209
- enlargeOnHover: s,
1210
- showShadow: p,
1211
- glass: u,
1212
- glassBlur: C,
1213
- glassOpacity: j,
1214
- fullWidth: E
1215
- } = a;
46
+ bgColor: l,
47
+ rounded: a,
48
+ enlargeOnHover: o,
49
+ showShadow: k,
50
+ glass: f,
51
+ glassBlur: p,
52
+ glassOpacity: V,
53
+ fullWidth: M
54
+ } = n;
1216
55
  return [
1217
- g.borderColorVariant({ color: e }),
1218
- g.bgColorVariant({ color: o }),
1219
- !E && "max-w-[450px] sm:max-w-[350px]",
1220
- l ? "rounded-lg" : "rounded-sm",
1221
- s && "hover:scale-105 transition ease-in duration-300",
1222
- p && "drop-shadow-md",
1223
- u && ot(o, C, j)
56
+ i.borderColorVariant({ color: e }),
57
+ i.bgColorVariant({ color: l }),
58
+ !M && "max-w-[450px] sm:max-w-[350px]",
59
+ a ? "rounded-lg" : "rounded-sm",
60
+ o && "hover:scale-105 transition ease-in duration-300",
61
+ k && "drop-shadow-md",
62
+ f && E(l, p, V)
1224
63
  ].filter(Boolean).join(" ");
1225
- }), x = f(() => {
1226
- const { titleSize: e, titleColor: o, showHighlight: l } = a;
64
+ }), h = g(() => {
65
+ const { titleSize: e, titleColor: l, showHighlight: a } = n;
1227
66
  return [
1228
- g.h3Variant({ size: e }),
1229
- g.textColorVariant({ color: o }),
1230
- l ? "mb-2xs" : "mb-xs"
67
+ i.h3Variant({ size: e }),
68
+ i.textColorVariant({ color: l }),
69
+ a ? "mb-2xs" : "mb-xs"
1231
70
  ].filter(Boolean).join(" ");
1232
- }), v = f(() => {
1233
- const { labelTextColor: e, labelColor: o } = a;
71
+ }), y = g(() => {
72
+ const { labelTextColor: e, labelColor: l } = n;
1234
73
  return [
1235
- g.textColorVariant({ color: e }),
1236
- g.bgColorVariant({ color: o })
74
+ i.textColorVariant({ color: e }),
75
+ i.bgColorVariant({ color: l })
1237
76
  ].filter(Boolean).join(" ");
1238
- }), w = f(() => {
1239
- const { ctaColor: e, rounded: o } = a, l = ["light-1", "light-2", "light-3", "light-4"];
77
+ }), w = g(() => {
78
+ const { ctaColor: e, rounded: l } = n, a = ["light-1", "light-2", "light-3", "light-4"];
1240
79
  return [
1241
- g.btnColorVariant({ color: e }),
1242
- l.includes(e) ? "text-black" : "text-white",
1243
- o && "btn-round"
80
+ i.btnColorVariant({ color: e }),
81
+ a.includes(e) ? "text-black" : "text-white",
82
+ l && "btn-round"
1244
83
  ].filter(Boolean).join(" ");
1245
- }), d = (e) => {
1246
- const { title: o, ctaLink: l, ctaTarget: s, ctaAsLink: p } = a, u = {
1247
- title: o,
1248
- url: l,
1249
- target: s || "_self"
84
+ }), r = (e) => {
85
+ const { title: l, ctaLink: a, ctaTarget: o, ctaAsLink: k } = n, f = {
86
+ title: l,
87
+ url: a,
88
+ target: o || "_self"
1250
89
  };
1251
- !p && e.preventDefault(), i("card-btn-click", e, u);
1252
- }, c = (e) => {
1253
- const { title: o, ctaLink: l, ctaTarget: s } = a;
1254
- i("card-click", e, {
1255
- title: o,
1256
- url: l,
1257
- target: s || "_self"
90
+ !k && e.preventDefault(), u("card-btn-click", e, f);
91
+ }, d = (e) => {
92
+ const { title: l, ctaLink: a, ctaTarget: o } = n;
93
+ u("card-click", e, {
94
+ title: l,
95
+ url: a,
96
+ target: o || "_self"
1258
97
  });
1259
98
  };
1260
- return (e, o) => (k(), y("div", {
1261
- class: h(["xs:w-auto flex w-full flex-shrink-0 flex-grow cursor-pointer flex-col overflow-hidden border", m.value]),
1262
- onClick: c
99
+ return (e, l) => (m(), C("div", {
100
+ class: c(["xs:w-auto flex w-full flex-shrink-0 flex-grow cursor-pointer flex-col overflow-hidden border", b.value]),
101
+ onClick: d
1263
102
  }, [
1264
- r.showImage ? (k(), y("div", nt, [
1265
- b("img", {
1266
- src: r.imageSource,
1267
- alt: r.imageAlt,
103
+ t.showImage ? (m(), C("div", O, [
104
+ s("img", {
105
+ src: t.imageSource,
106
+ alt: t.imageAlt,
1268
107
  class: "aspect-video min-w-full object-cover object-top"
1269
- }, null, 8, st),
1270
- r.showLabel ? (k(), y("span", {
108
+ }, null, 8, D),
109
+ t.showLabel ? (m(), C("span", {
1271
110
  key: 0,
1272
- class: h(["absolute bottom-0 ml-xs inline-block translate-y-[50%] px-2xs py-3xs text-xs font-bold", v.value]),
1273
- innerHTML: r.labelText
1274
- }, null, 10, dt)) : V("", !0)
1275
- ])) : V("", !0),
1276
- b("div", ct, [
1277
- b("div", gt, [
1278
- !r.showImage && r.showLabel ? (k(), y("span", {
111
+ class: c(["absolute bottom-0 ml-xs inline-block translate-y-[50%] px-2xs py-3xs text-xs font-bold", y.value]),
112
+ innerHTML: t.labelText
113
+ }, null, 10, I)) : x("", !0)
114
+ ])) : x("", !0),
115
+ s("div", W, [
116
+ s("div", G, [
117
+ !t.showImage && t.showLabel ? (m(), C("span", {
1279
118
  key: 0,
1280
- class: h(["mb-2xs inline-block px-2xs py-3xs text-xs font-bold", v.value]),
1281
- innerHTML: r.labelText
1282
- }, null, 10, bt)) : V("", !0),
1283
- b("h3", {
1284
- class: h(x.value),
1285
- innerHTML: r.title
1286
- }, null, 10, ht),
1287
- r.showHighlight ? (k(), y("div", {
119
+ class: c(["mb-2xs inline-block px-2xs py-3xs text-xs font-bold", y.value]),
120
+ innerHTML: t.labelText
121
+ }, null, 10, q)) : x("", !0),
122
+ s("h3", {
123
+ class: c(h.value),
124
+ innerHTML: t.title
125
+ }, null, 10, N),
126
+ t.showHighlight ? (m(), C("div", {
1288
127
  key: 1,
1289
- class: h(["mb-xs h-3xs w-md", S(g).bgColorVariant({ color: r.highlightColor })])
1290
- }, null, 2)) : V("", !0),
1291
- b("div", {
128
+ class: c(["mb-xs h-3xs w-md", S(i).bgColorVariant({ color: t.highlightColor })])
129
+ }, null, 2)) : x("", !0),
130
+ s("div", {
1292
131
  class: "mb-sm cursor-default",
1293
- onClick: o[0] || (o[0] = z(() => {
132
+ onClick: l[0] || (l[0] = j(() => {
1294
133
  }, ["stop"]))
1295
134
  }, [
1296
135
  A(e.$slots, "default")
1297
136
  ])
1298
137
  ]),
1299
- r.showCta ? (k(), y("div", {
138
+ t.showCta ? (m(), C("div", {
1300
139
  key: 0,
1301
140
  class: "cursor-default border-0 pb-sm",
1302
- onClick: o[2] || (o[2] = z(() => {
141
+ onClick: l[2] || (l[2] = j(() => {
1303
142
  }, ["stop"]))
1304
143
  }, [
1305
- b("div", xt, [
1306
- b("a", {
1307
- href: r.ctaLink,
1308
- target: r.ctaTarget,
1309
- class: h(["btn btn-full", w.value]),
1310
- onClick: o[1] || (o[1] = (l) => d(l))
1311
- }, T(r.ctaText), 11, mt)
144
+ s("div", F, [
145
+ s("a", {
146
+ href: t.ctaLink,
147
+ target: t.ctaTarget,
148
+ class: c(["btn btn-full", w.value]),
149
+ onClick: l[1] || (l[1] = (a) => r(a))
150
+ }, B(t.ctaText), 11, R)
1312
151
  ])
1313
- ])) : V("", !0)
152
+ ])) : x("", !0)
1314
153
  ])
1315
154
  ], 2));
1316
155
  }
1317
- }), ut = ["href", "target"], pt = { class: "peer absolute inset-0 z-15 flex flex-col items-start justify-end p-xs transition-opacity duration-200 hover:opacity-100 [@media(hover:hover)]:opacity-0" }, ft = ["innerHTML"], kt = ["src", "alt"], jt = /* @__PURE__ */ B({
156
+ }), J = ["href", "target"], K = { class: "peer absolute inset-0 z-15 flex flex-col items-start justify-end p-xs transition-opacity duration-200 hover:opacity-100 [@media(hover:hover)]:opacity-0" }, P = ["innerHTML"], Q = ["src", "alt"], rt = /* @__PURE__ */ L({
1318
157
  __name: "MclCardB",
1319
158
  props: {
1320
159
  title: {},
@@ -1331,58 +170,58 @@ const et = {
1331
170
  rounded: { type: Boolean, default: !1 }
1332
171
  },
1333
172
  emits: ["card-click"],
1334
- setup(r, { emit: n }) {
1335
- const a = r;
1336
- L();
1337
- const i = n, m = f(() => {
1338
- const { borderColor: d, rounded: c } = a, e = [
1339
- g.borderColorVariant({ color: d })
173
+ setup(t, { emit: v }) {
174
+ const n = t;
175
+ T();
176
+ const u = v, b = g(() => {
177
+ const { borderColor: r, rounded: d } = n, e = [
178
+ i.borderColorVariant({ color: r })
1340
179
  ];
1341
- return e.push(c ? "rounded-md" : "rounded-sm"), e.join(" ");
1342
- }), x = f(() => {
1343
- const { showGrayScale: d } = a;
1344
- return d ? "[@media(hover:hover)]:grayscale peer-hover:grayscale-0" : "";
1345
- }), v = f(() => {
1346
- const { titleSize: d, titleColor: c, titleBlockColor: e } = a;
180
+ return e.push(d ? "rounded-md" : "rounded-sm"), e.join(" ");
181
+ }), h = g(() => {
182
+ const { showGrayScale: r } = n;
183
+ return r ? "[@media(hover:hover)]:grayscale peer-hover:grayscale-0" : "";
184
+ }), y = g(() => {
185
+ const { titleSize: r, titleColor: d, titleBlockColor: e } = n;
1347
186
  return [
1348
- g.h3Variant({ size: d }),
1349
- g.textColorVariant({ color: c }),
1350
- g.bgColorVariant({ color: e })
187
+ i.h3Variant({ size: r }),
188
+ i.textColorVariant({ color: d }),
189
+ i.bgColorVariant({ color: e })
1351
190
  ].join(" ");
1352
- }), w = (d) => {
1353
- const { title: c, ctaLink: e, ctaTarget: o, ctaAsLink: l } = a;
1354
- !l && d.preventDefault();
1355
- const s = {
1356
- title: c,
191
+ }), w = (r) => {
192
+ const { title: d, ctaLink: e, ctaTarget: l, ctaAsLink: a } = n;
193
+ !a && r.preventDefault();
194
+ const o = {
195
+ title: d,
1357
196
  url: e,
1358
- target: o || "_self"
197
+ target: l || "_self"
1359
198
  };
1360
- console.log(s), i("card-click", d, s);
199
+ console.log(o), u("card-click", r, o);
1361
200
  };
1362
- return (d, c) => (k(), y("div", {
1363
- class: h(["xs:w-auto relative w-full max-w-112.5 shrink-0 grow cursor-pointer overflow-hidden border sm:max-w-87.5", m.value])
201
+ return (r, d) => (m(), C("div", {
202
+ class: c(["xs:w-auto relative w-full max-w-112.5 shrink-0 grow cursor-pointer overflow-hidden border sm:max-w-87.5", b.value])
1364
203
  }, [
1365
- b("a", {
1366
- href: r.ctaLink,
1367
- target: r.ctaTarget,
1368
- onClick: c[0] || (c[0] = (e) => w(e))
204
+ s("a", {
205
+ href: t.ctaLink,
206
+ target: t.ctaTarget,
207
+ onClick: d[0] || (d[0] = (e) => w(e))
1369
208
  }, [
1370
- b("div", pt, [
1371
- b("h3", {
1372
- innerHTML: r.title,
1373
- class: h(["pointer-events-none mb-2xs inline-block px-xs py-2xs tracking-wide", v.value])
1374
- }, null, 10, ft),
1375
- A(d.$slots, "default")
209
+ s("div", K, [
210
+ s("h3", {
211
+ innerHTML: t.title,
212
+ class: c(["pointer-events-none mb-2xs inline-block px-xs py-2xs tracking-wide", y.value])
213
+ }, null, 10, P),
214
+ A(r.$slots, "default")
1376
215
  ]),
1377
- b("img", {
1378
- src: r.imageSource,
1379
- alt: r.imageAlt,
1380
- class: h(["relative z-10 aspect-3/4 h-full w-full object-cover object-center transition-all duration-200", x.value])
1381
- }, null, 10, kt)
1382
- ], 8, ut)
216
+ s("img", {
217
+ src: t.imageSource,
218
+ alt: t.imageAlt,
219
+ class: c(["relative z-10 aspect-3/4 h-full w-full object-cover object-center transition-all duration-200", h.value])
220
+ }, null, 10, Q)
221
+ ], 8, J)
1383
222
  ], 2));
1384
223
  }
1385
- }), yt = ["src", "alt"], vt = /* @__PURE__ */ B({
224
+ }), U = ["src", "alt"], X = /* @__PURE__ */ L({
1386
225
  __name: "MclCardC",
1387
226
  props: {
1388
227
  imageSource: {},
@@ -1397,65 +236,65 @@ const et = {
1397
236
  cardColor: { default: "primary" }
1398
237
  },
1399
238
  emits: ["card-click"],
1400
- setup(r, { emit: n }) {
1401
- const a = r;
1402
- L();
1403
- const i = $(!1), m = n, x = f(() => {
1404
- const d = [
1405
- g.bgColorVariant({ color: a.cardColor })
239
+ setup(t, { emit: v }) {
240
+ const n = t;
241
+ T();
242
+ const u = z(!1), b = v, h = g(() => {
243
+ const r = [
244
+ i.bgColorVariant({ color: n.cardColor })
1406
245
  ];
1407
- return i.value && d.push("flip-card"), d.join(" ");
1408
- }), v = f(() => {
246
+ return u.value && r.push("flip-card"), r.join(" ");
247
+ }), y = g(() => {
1409
248
  const {
1410
- titleSize: d,
1411
- titleColor: c,
249
+ titleSize: r,
250
+ titleColor: d,
1412
251
  showHighlight: e,
1413
- highlightColor: o,
1414
- highlightOpacity: l
1415
- } = a, s = [
1416
- g.h3Variant({ size: d }),
1417
- g.textColorVariant({ color: c })
252
+ highlightColor: l,
253
+ highlightOpacity: a
254
+ } = n, o = [
255
+ i.h3Variant({ size: r }),
256
+ i.textColorVariant({ color: d })
1418
257
  ];
1419
- return e && (s.push("px-xs py-2xs mb-2xs rounded"), s.push(g.bgColorVariant({ color: o })), s.push(
1420
- g.bgOpacityVariant({ opacity: l })
1421
- )), s.join(" ");
1422
- }), w = (d) => {
1423
- d.preventDefault(), i.value && m("card-click", d), i.value = !0;
258
+ return e && (o.push("px-xs py-2xs mb-2xs rounded"), o.push(i.bgColorVariant({ color: l })), o.push(
259
+ i.bgOpacityVariant({ opacity: a })
260
+ )), o.join(" ");
261
+ }), w = (r) => {
262
+ r.preventDefault(), u.value && b("card-click", r), u.value = !0;
1424
263
  };
1425
- return (d, c) => (k(), y("div", {
1426
- class: h(["card relative aspect-square max-h-100 overflow-hidden transition duration-1600", x.value]),
264
+ return (r, d) => (m(), C("div", {
265
+ class: c(["card relative aspect-square max-h-100 overflow-hidden transition duration-1600", h.value]),
1427
266
  onClick: w
1428
267
  }, [
1429
- b("img", {
1430
- src: r.imageSource,
1431
- alt: r.imageAlt,
1432
- class: h([
1433
- i.value ? "opacity-100" : "opacity-0",
268
+ s("img", {
269
+ src: t.imageSource,
270
+ alt: t.imageAlt,
271
+ class: c([
272
+ u.value ? "opacity-100" : "opacity-0",
1434
273
  "absolute aspect-square h-full w-full object-cover object-center transition-opacity delay-500 duration-800"
1435
274
  ])
1436
- }, null, 10, yt),
1437
- b("div", {
1438
- class: h([
1439
- i.value ? "cursor-pointer opacity-100" : "opacity-0",
275
+ }, null, 10, U),
276
+ s("div", {
277
+ class: c([
278
+ u.value ? "cursor-pointer opacity-100" : "opacity-0",
1440
279
  "relative flex h-full flex-col justify-end p-sm transition delay-500 duration-800"
1441
280
  ])
1442
281
  }, [
1443
- r.showTitle ? (k(), y("h3", {
282
+ t.showTitle ? (m(), C("h3", {
1444
283
  key: 0,
1445
- class: h(["relative self-start", v.value])
284
+ class: c(["relative self-start", y.value])
1446
285
  }, [
1447
- b("span", null, T(r.title), 1)
1448
- ], 2)) : V("", !0),
1449
- A(d.$slots, "card-body", {}, void 0, !0)
286
+ s("span", null, B(t.title), 1)
287
+ ], 2)) : x("", !0),
288
+ A(r.$slots, "card-body", {}, void 0, !0)
1450
289
  ], 2)
1451
290
  ], 2));
1452
291
  }
1453
- }), W = (r, n) => {
1454
- const a = r.__vccOpts || r;
1455
- for (const [i, m] of n)
1456
- a[i] = m;
1457
- return a;
1458
- }, St = /* @__PURE__ */ W(vt, [["__scopeId", "data-v-eac7e2f0"]]), wt = { class: "flex flex-col overflow-hidden rounded-md" }, Ct = ["src", "alt"], Vt = ["href", "target"], Bt = /* @__PURE__ */ B({
292
+ }), H = (t, v) => {
293
+ const n = t.__vccOpts || t;
294
+ for (const [u, b] of v)
295
+ n[u] = b;
296
+ return n;
297
+ }, it = /* @__PURE__ */ H(X, [["__scopeId", "data-v-eac7e2f0"]]), Y = { class: "flex flex-col overflow-hidden rounded-md" }, Z = ["src", "alt"], _ = ["href", "target"], tt = /* @__PURE__ */ L({
1459
298
  __name: "MclCardD",
1460
299
  props: {
1461
300
  showImage: { type: Boolean, default: !0 },
@@ -1481,8 +320,8 @@ const et = {
1481
320
  customColor: {}
1482
321
  },
1483
322
  emits: ["card-click"],
1484
- setup(r, { emit: n }) {
1485
- const a = {
323
+ setup(t, { emit: v }) {
324
+ const n = {
1486
325
  primary: "from-primary",
1487
326
  secondary: "from-secondary",
1488
327
  success: "from-success",
@@ -1500,7 +339,7 @@ const et = {
1500
339
  black: "from-black",
1501
340
  white: "from-white",
1502
341
  transparent: "from-transparent"
1503
- }, i = {
342
+ }, u = {
1504
343
  primary: "via-primary",
1505
344
  secondary: "via-secondary",
1506
345
  success: "via-success",
@@ -1518,7 +357,7 @@ const et = {
1518
357
  black: "via-black",
1519
358
  white: "via-white",
1520
359
  transparent: "via-transparent"
1521
- }, m = {
360
+ }, b = {
1522
361
  primary: "to-primary",
1523
362
  secondary: "to-secondary",
1524
363
  success: "to-success",
@@ -1536,80 +375,80 @@ const et = {
1536
375
  black: "to-black",
1537
376
  white: "to-white",
1538
377
  transparent: "to-transparent"
1539
- }, x = r;
1540
- L();
1541
- const v = n, w = f(() => {
1542
- const { titleSize: l, titleColor: s } = x;
378
+ }, h = t;
379
+ T();
380
+ const y = v, w = g(() => {
381
+ const { titleSize: a, titleColor: o } = h;
1543
382
  return [
1544
- g.h2Variant({ size: l }),
1545
- g.textColorVariant({ color: s })
383
+ i.h2Variant({ size: a }),
384
+ i.textColorVariant({ color: o })
1546
385
  ].join(" ");
1547
- }), d = f(() => {
1548
- const { ctaButton: l, ctaButtonColor: s, ctaButtonBlock: p } = x, u = [], C = ["light-1", "light-2", "light-3", "light-4"];
1549
- return l ? u.push(
386
+ }), r = g(() => {
387
+ const { ctaButton: a, ctaButtonColor: o, ctaButtonBlock: k } = h, f = [], p = ["light-1", "light-2", "light-3", "light-4"];
388
+ return a ? f.push(
1550
389
  "btn",
1551
- g.btnColorVariant({ color: s })
1552
- ) : u.push("mcl-link"), l && p && u.push("btn-full"), l && !C.includes(s) && u.push("text-white"), u.join(" ");
1553
- }), c = f(() => ({
1554
- "--border-width": `${x.borderWidth}px`
1555
- })), e = f(() => {
1556
- const l = a[x.borderColor], s = i[x.gradient1], p = m[x.gradient2];
390
+ i.btnColorVariant({ color: o })
391
+ ) : f.push("mcl-link"), a && k && f.push("btn-full"), a && !p.includes(o) && f.push("text-white"), f.join(" ");
392
+ }), d = g(() => ({
393
+ "--border-width": `${h.borderWidth}px`
394
+ })), e = g(() => {
395
+ const a = n[h.borderColor], o = u[h.gradient1], k = b[h.gradient2];
1557
396
  return [
1558
- g.borderColorVariant({ color: x.borderColor }),
1559
- l,
1560
- s,
1561
- p
397
+ i.borderColorVariant({ color: h.borderColor }),
398
+ a,
399
+ o,
400
+ k
1562
401
  ].join(" ");
1563
- }), o = (l) => {
1564
- const { title: s, ctaLink: p, ctaLinkTarget: u, ctaAsLink: C } = x, j = {
1565
- title: s,
1566
- url: p,
1567
- target: u || "_self"
402
+ }), l = (a) => {
403
+ const { title: o, ctaLink: k, ctaLinkTarget: f, ctaAsLink: p } = h, V = {
404
+ title: o,
405
+ url: k,
406
+ target: f || "_self"
1568
407
  };
1569
- !C && l.preventDefault(), v("card-click", l, j);
408
+ !p && a.preventDefault(), y("card-click", a, V);
1570
409
  };
1571
- return (l, s) => (k(), y("div", {
1572
- class: h(["card xs:w-auto w-full max-w-112.5 shrink-0 grow overflow-hidden rounded-md border from-20% sm:max-w-87.5", e.value]),
1573
- style: D(c.value)
410
+ return (a, o) => (m(), C("div", {
411
+ class: c(["card xs:w-auto w-full max-w-112.5 shrink-0 grow overflow-hidden rounded-md border from-20% sm:max-w-87.5", e.value]),
412
+ style: $(d.value)
1574
413
  }, [
1575
- b("div", wt, [
1576
- r.showImage ? (k(), y("img", {
414
+ s("div", Y, [
415
+ t.showImage ? (m(), C("img", {
1577
416
  key: 0,
1578
- src: r.imageSource,
417
+ src: t.imageSource,
1579
418
  class: "max-h-50 min-w-full object-cover object-top",
1580
- alt: r.imageAlt
1581
- }, null, 8, Ct)) : V("", !0),
1582
- b("div", {
1583
- class: h(["p-xs", S(g).bgColorVariant({ color: r.bgColor })])
419
+ alt: t.imageAlt
420
+ }, null, 8, Z)) : x("", !0),
421
+ s("div", {
422
+ class: c(["p-xs", S(i).bgColorVariant({ color: t.bgColor })])
1584
423
  }, [
1585
- b("h3", {
1586
- class: h(["mb-xs", w.value])
1587
- }, T(r.title), 3),
1588
- r.showHighlight ? (k(), y("div", {
424
+ s("h3", {
425
+ class: c(["mb-xs", w.value])
426
+ }, B(t.title), 3),
427
+ t.showHighlight ? (m(), C("div", {
1589
428
  key: 0,
1590
- class: h(["mb-xs h-3xs w-md", S(g).bgColorVariant({ color: r.highlightColor })])
1591
- }, null, 2)) : V("", !0),
1592
- b("div", null, [
1593
- A(l.$slots, "default", {}, void 0, !0)
429
+ class: c(["mb-xs h-3xs w-md", S(i).bgColorVariant({ color: t.highlightColor })])
430
+ }, null, 2)) : x("", !0),
431
+ s("div", null, [
432
+ A(a.$slots, "default", {}, void 0, !0)
1594
433
  ]),
1595
- b("div", {
1596
- class: h(["mt-xs", { "mb-2xs": !r.ctaButton }])
434
+ s("div", {
435
+ class: c(["mt-xs", { "mb-2xs": !t.ctaButton }])
1597
436
  }, [
1598
- b("a", {
1599
- href: r.ctaLink,
1600
- target: r.ctaLinkTarget,
1601
- class: h(d.value),
1602
- onClick: o
1603
- }, T(r.ctaText), 11, Vt)
437
+ s("a", {
438
+ href: t.ctaLink,
439
+ target: t.ctaLinkTarget,
440
+ class: c(r.value),
441
+ onClick: l
442
+ }, B(t.ctaText), 11, _)
1604
443
  ], 2)
1605
444
  ], 2)
1606
445
  ])
1607
446
  ], 6));
1608
447
  }
1609
- }), zt = /* @__PURE__ */ W(Bt, [["__scopeId", "data-v-8bf2cac0"]]);
448
+ }), st = /* @__PURE__ */ H(tt, [["__scopeId", "data-v-8bf2cac0"]]);
1610
449
  export {
1611
- At as MclCardA,
1612
- jt as MclCardB,
1613
- St as MclCardC,
1614
- zt as MclCardD
450
+ ot as MclCardA,
451
+ rt as MclCardB,
452
+ it as MclCardC,
453
+ st as MclCardD
1615
454
  };