@bobbykim/mcl-cards 0.7.3 → 0.7.5
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/index.d.ts +0 -21
- package/dist/mcl-cards.js +190 -198
- package/dist/mcl-cards.umd.cjs +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ColorPalette } from '@bobbykim/manguito-theme';
|
|
2
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
3
|
-
import { CrossOrigin } from '@bobbykim/manguito-theme';
|
|
4
3
|
import { CtaTarget } from '@bobbykim/manguito-theme';
|
|
5
4
|
import { DefineComponent } from 'vue';
|
|
6
5
|
import { ExtractPropTypes } from 'vue';
|
|
@@ -136,7 +135,6 @@ bgColor?: ColorPalette | undefined;
|
|
|
136
135
|
displayImage?: boolean | undefined;
|
|
137
136
|
imageSource?: string | undefined;
|
|
138
137
|
imageAlt?: string | undefined;
|
|
139
|
-
imageCors?: CrossOrigin | undefined;
|
|
140
138
|
displayCta?: boolean | undefined;
|
|
141
139
|
ctaAsLink?: boolean | undefined;
|
|
142
140
|
ctaText?: string | undefined;
|
|
@@ -158,7 +156,6 @@ titleColor: string;
|
|
|
158
156
|
borderColor: string;
|
|
159
157
|
bgColor: string;
|
|
160
158
|
displayImage: boolean;
|
|
161
|
-
imageCors: string;
|
|
162
159
|
displayCta: boolean;
|
|
163
160
|
ctaAsLink: boolean;
|
|
164
161
|
ctaColor: string;
|
|
@@ -186,7 +183,6 @@ bgColor?: ColorPalette | undefined;
|
|
|
186
183
|
displayImage?: boolean | undefined;
|
|
187
184
|
imageSource?: string | undefined;
|
|
188
185
|
imageAlt?: string | undefined;
|
|
189
|
-
imageCors?: CrossOrigin | undefined;
|
|
190
186
|
displayCta?: boolean | undefined;
|
|
191
187
|
ctaAsLink?: boolean | undefined;
|
|
192
188
|
ctaText?: string | undefined;
|
|
@@ -208,7 +204,6 @@ titleColor: string;
|
|
|
208
204
|
borderColor: string;
|
|
209
205
|
bgColor: string;
|
|
210
206
|
displayImage: boolean;
|
|
211
|
-
imageCors: string;
|
|
212
207
|
displayCta: boolean;
|
|
213
208
|
ctaAsLink: boolean;
|
|
214
209
|
ctaColor: string;
|
|
@@ -233,7 +228,6 @@ titleColor: ColorPalette;
|
|
|
233
228
|
borderColor: ColorPalette;
|
|
234
229
|
bgColor: ColorPalette;
|
|
235
230
|
displayImage: boolean;
|
|
236
|
-
imageCors: CrossOrigin;
|
|
237
231
|
displayCta: boolean;
|
|
238
232
|
ctaAsLink: boolean;
|
|
239
233
|
ctaText: string;
|
|
@@ -263,7 +257,6 @@ titleBlockColor?: ColorPalette | undefined;
|
|
|
263
257
|
borderColor?: ColorPalette | undefined;
|
|
264
258
|
imageSource?: string | undefined;
|
|
265
259
|
imageAlt?: string | undefined;
|
|
266
|
-
imageCors?: CrossOrigin | undefined;
|
|
267
260
|
displayGrayScale?: boolean | undefined;
|
|
268
261
|
ctaAsLink?: boolean | undefined;
|
|
269
262
|
ctaLink?: string | undefined;
|
|
@@ -275,7 +268,6 @@ titleColor: string;
|
|
|
275
268
|
titleBlockColor: string;
|
|
276
269
|
borderColor: string;
|
|
277
270
|
displayGrayScale: boolean;
|
|
278
|
-
imageCors: string;
|
|
279
271
|
ctaAsLink: boolean;
|
|
280
272
|
ctaLink: string;
|
|
281
273
|
ctaTarget: string;
|
|
@@ -290,7 +282,6 @@ titleBlockColor?: ColorPalette | undefined;
|
|
|
290
282
|
borderColor?: ColorPalette | undefined;
|
|
291
283
|
imageSource?: string | undefined;
|
|
292
284
|
imageAlt?: string | undefined;
|
|
293
|
-
imageCors?: CrossOrigin | undefined;
|
|
294
285
|
displayGrayScale?: boolean | undefined;
|
|
295
286
|
ctaAsLink?: boolean | undefined;
|
|
296
287
|
ctaLink?: string | undefined;
|
|
@@ -302,7 +293,6 @@ titleColor: string;
|
|
|
302
293
|
titleBlockColor: string;
|
|
303
294
|
borderColor: string;
|
|
304
295
|
displayGrayScale: boolean;
|
|
305
|
-
imageCors: string;
|
|
306
296
|
ctaAsLink: boolean;
|
|
307
297
|
ctaLink: string;
|
|
308
298
|
ctaTarget: string;
|
|
@@ -313,7 +303,6 @@ rounded: boolean;
|
|
|
313
303
|
titleSize: HeadingSize;
|
|
314
304
|
titleColor: ColorPalette;
|
|
315
305
|
borderColor: ColorPalette;
|
|
316
|
-
imageCors: CrossOrigin;
|
|
317
306
|
ctaAsLink: boolean;
|
|
318
307
|
ctaLink: string;
|
|
319
308
|
ctaTarget: CtaTarget;
|
|
@@ -337,7 +326,6 @@ highlightColor?: ColorPalette | undefined;
|
|
|
337
326
|
highlightOpacity?: OpacityRange | undefined;
|
|
338
327
|
displayTitle?: boolean | undefined;
|
|
339
328
|
cardColor?: ColorPalette | undefined;
|
|
340
|
-
imageCors?: CrossOrigin | undefined;
|
|
341
329
|
}>, {
|
|
342
330
|
titleSize: string;
|
|
343
331
|
titleColor: string;
|
|
@@ -346,7 +334,6 @@ highlightColor: string;
|
|
|
346
334
|
highlightOpacity: number;
|
|
347
335
|
displayTitle: boolean;
|
|
348
336
|
cardColor: string;
|
|
349
|
-
imageCors: string;
|
|
350
337
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
351
338
|
"card-click": (event: Event) => void;
|
|
352
339
|
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
|
|
@@ -360,7 +347,6 @@ highlightColor?: ColorPalette | undefined;
|
|
|
360
347
|
highlightOpacity?: OpacityRange | undefined;
|
|
361
348
|
displayTitle?: boolean | undefined;
|
|
362
349
|
cardColor?: ColorPalette | undefined;
|
|
363
|
-
imageCors?: CrossOrigin | undefined;
|
|
364
350
|
}>, {
|
|
365
351
|
titleSize: string;
|
|
366
352
|
titleColor: string;
|
|
@@ -369,13 +355,11 @@ highlightColor: string;
|
|
|
369
355
|
highlightOpacity: number;
|
|
370
356
|
displayTitle: boolean;
|
|
371
357
|
cardColor: string;
|
|
372
|
-
imageCors: string;
|
|
373
358
|
}>>> & {
|
|
374
359
|
"onCard-click"?: ((event: Event) => any) | undefined;
|
|
375
360
|
}, {
|
|
376
361
|
titleSize: HeadingSize;
|
|
377
362
|
titleColor: ColorPalette;
|
|
378
|
-
imageCors: CrossOrigin;
|
|
379
363
|
displayHighlight: boolean;
|
|
380
364
|
highlightColor: ColorPalette;
|
|
381
365
|
highlightOpacity: OpacityRange;
|
|
@@ -391,7 +375,6 @@ export declare const MclCardD: __VLS_WithTemplateSlots_4<DefineComponent<__VLS_W
|
|
|
391
375
|
displayImage?: boolean | undefined;
|
|
392
376
|
imageSource?: string | undefined;
|
|
393
377
|
imageAlt?: string | undefined;
|
|
394
|
-
imageCors?: CrossOrigin | undefined;
|
|
395
378
|
title: string;
|
|
396
379
|
titleSize?: HeadingSize | undefined;
|
|
397
380
|
titleColor?: ColorPalette | undefined;
|
|
@@ -413,7 +396,6 @@ customColor?: ColorMap | undefined;
|
|
|
413
396
|
}>, {
|
|
414
397
|
displayImage: boolean;
|
|
415
398
|
imageAlt: string;
|
|
416
|
-
imageCors: string;
|
|
417
399
|
titleSize: string;
|
|
418
400
|
titleColor: string;
|
|
419
401
|
bgColor: string;
|
|
@@ -435,7 +417,6 @@ gradient2: string;
|
|
|
435
417
|
displayImage?: boolean | undefined;
|
|
436
418
|
imageSource?: string | undefined;
|
|
437
419
|
imageAlt?: string | undefined;
|
|
438
|
-
imageCors?: CrossOrigin | undefined;
|
|
439
420
|
title: string;
|
|
440
421
|
titleSize?: HeadingSize | undefined;
|
|
441
422
|
titleColor?: ColorPalette | undefined;
|
|
@@ -457,7 +438,6 @@ customColor?: ColorMap | undefined;
|
|
|
457
438
|
}>, {
|
|
458
439
|
displayImage: boolean;
|
|
459
440
|
imageAlt: string;
|
|
460
|
-
imageCors: string;
|
|
461
441
|
titleSize: string;
|
|
462
442
|
titleColor: string;
|
|
463
443
|
bgColor: string;
|
|
@@ -482,7 +462,6 @@ borderColor: ColorPalette;
|
|
|
482
462
|
bgColor: ColorPalette;
|
|
483
463
|
displayImage: boolean;
|
|
484
464
|
imageAlt: string;
|
|
485
|
-
imageCors: CrossOrigin;
|
|
486
465
|
ctaAsLink: boolean;
|
|
487
466
|
ctaText: string;
|
|
488
467
|
displayHighlight: boolean;
|
package/dist/mcl-cards.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-
|
|
2
|
-
import { defineComponent as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-9021bcb6]{height:calc(100% - 200px)}.perspective[data-v-0d2f293c]{perspective:1800px}.card[data-v-0d2f293c]{transform-style:preserve-3d;transform:rotateY(0);backface-visibility:hidden}.flip-card[data-v-0d2f293c]{transform:rotateY(360deg)}.card[data-v-237930d5]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);animation:bg-spin-237930d5 4s linear infinite}@keyframes bg-spin-237930d5{to{--border-angle: 360deg}}.card[data-v-237930d5]:hover{animation-play-state:paused}@property --border-angle{syntax: "<angle>"; inherits: true; initial-value: 0deg;}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { defineComponent as B, useSlots as L, computed as h, openBlock as g, createElementBlock as m, normalizeClass as n, createElementVNode as s, createCommentVNode as b, unref as A, withModifiers as S, renderSlot as T, toDisplayString as w, ref as R, normalizeStyle as H } from "vue";
|
|
3
3
|
import o from "@bobbykim/manguito-theme";
|
|
4
|
-
const
|
|
4
|
+
const M = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "relative"
|
|
7
|
-
},
|
|
7
|
+
}, E = ["src", "alt"], $ = ["innerHTML"], z = { class: "content-height flex flex-col justify-between" }, G = { class: "min-h-[100px] p-0" }, D = { class: "px-xs pt-sm" }, I = ["innerHTML"], X = ["innerHTML"], N = { class: "w-full px-xs" }, V = ["href", "target"], q = /* @__PURE__ */ B({
|
|
8
8
|
__name: "MclCardA",
|
|
9
9
|
props: {
|
|
10
10
|
title: {},
|
|
@@ -15,7 +15,6 @@ const E = {
|
|
|
15
15
|
displayImage: { type: Boolean, default: !0 },
|
|
16
16
|
imageSource: {},
|
|
17
17
|
imageAlt: {},
|
|
18
|
-
imageCors: { default: "anonymous" },
|
|
19
18
|
displayCta: { type: Boolean, default: !0 },
|
|
20
19
|
ctaAsLink: { type: Boolean, default: !1 },
|
|
21
20
|
ctaText: { default: "cta text" },
|
|
@@ -33,118 +32,111 @@ const E = {
|
|
|
33
32
|
displayShadow: { type: Boolean, default: !0 }
|
|
34
33
|
},
|
|
35
34
|
emits: ["card-click", "card-btn-click"],
|
|
36
|
-
setup(
|
|
37
|
-
const
|
|
35
|
+
setup(y, { emit: C }) {
|
|
36
|
+
const i = y;
|
|
38
37
|
L();
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
o("BORDER",
|
|
38
|
+
const u = C, v = h(() => {
|
|
39
|
+
const { borderColor: t, bgColor: r, rounded: e, enlargeOnHover: l, displayShadow: p } = i, d = [
|
|
40
|
+
o("BORDER", t),
|
|
42
41
|
o("BGCOLOR", r)
|
|
43
42
|
];
|
|
44
|
-
return
|
|
45
|
-
},
|
|
46
|
-
const l = [
|
|
47
|
-
o("H3",
|
|
43
|
+
return d.push(e ? "rounded-md" : "rounded-sm"), l && d.push("hover:scale-105 transition ease-in duration-300"), p && d.push("drop-shadow-md"), d.join(" ");
|
|
44
|
+
}), f = h(() => {
|
|
45
|
+
const { titleSize: t, titleColor: r, displayHighlight: e } = i, l = [
|
|
46
|
+
o("H3", t),
|
|
48
47
|
o("TEXTCOLOR", r)
|
|
49
48
|
];
|
|
50
|
-
return
|
|
51
|
-
}, k = (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
49
|
+
return l.push(e ? "mb-2xs" : "mb-xs"), l.join(" ");
|
|
50
|
+
}), k = h(() => {
|
|
51
|
+
const { labelTextColor: t, labelColor: r } = i;
|
|
52
|
+
return [
|
|
53
|
+
o("TEXTCOLOR", t),
|
|
54
|
+
o("BGCOLOR", r)
|
|
55
|
+
].join(" ");
|
|
56
|
+
}), x = h(() => {
|
|
57
|
+
const { ctaColor: t, rounded: r } = i, e = [o("BTNCOLOR", t)];
|
|
58
|
+
let p = ["light-1", "light-2", "light-3", "light-4"].includes(t) ? "text-black" : "text-white";
|
|
59
|
+
return e.push(p), r && e.push("btn-round"), e.join(" ");
|
|
60
|
+
}), a = (t) => {
|
|
61
|
+
const { title: r, ctaLink: e, ctaTarget: l, ctaAsLink: p } = i, d = {
|
|
60
62
|
title: r,
|
|
61
|
-
url:
|
|
63
|
+
url: e,
|
|
62
64
|
target: l || "_self"
|
|
63
65
|
};
|
|
64
|
-
!
|
|
65
|
-
},
|
|
66
|
-
const { title: r, ctaLink:
|
|
67
|
-
|
|
66
|
+
!p && t.preventDefault(), u("card-btn-click", t, d);
|
|
67
|
+
}, c = (t) => {
|
|
68
|
+
const { title: r, ctaLink: e, ctaTarget: l } = i;
|
|
69
|
+
u("card-click", t, {
|
|
68
70
|
title: r,
|
|
69
|
-
url:
|
|
71
|
+
url: e,
|
|
70
72
|
target: l || "_self"
|
|
71
73
|
});
|
|
72
74
|
};
|
|
73
|
-
return (
|
|
74
|
-
class:
|
|
75
|
-
|
|
76
|
-
y(
|
|
77
|
-
e.borderColor,
|
|
78
|
-
e.bgColor,
|
|
79
|
-
e.rounded,
|
|
80
|
-
e.enlargeOnHover,
|
|
81
|
-
e.displayShadow
|
|
82
|
-
)
|
|
83
|
-
]),
|
|
84
|
-
onClick: d
|
|
75
|
+
return (t, r) => (g(), m("div", {
|
|
76
|
+
class: n(["overflow-hidden border max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer", v.value]),
|
|
77
|
+
onClick: c
|
|
85
78
|
}, [
|
|
86
|
-
|
|
79
|
+
t.displayImage ? (g(), m("div", M, [
|
|
87
80
|
s("img", {
|
|
88
|
-
src:
|
|
89
|
-
alt:
|
|
90
|
-
crossorigin: e.imageCors,
|
|
81
|
+
src: t.imageSource,
|
|
82
|
+
alt: t.imageAlt,
|
|
91
83
|
class: "object-cover object-top h-[220px] min-w-full"
|
|
92
|
-
}, null, 8,
|
|
93
|
-
|
|
84
|
+
}, null, 8, E),
|
|
85
|
+
t.displayLabel ? (g(), m("span", {
|
|
94
86
|
key: 0,
|
|
95
|
-
class:
|
|
96
|
-
innerHTML:
|
|
97
|
-
}, null, 10,
|
|
98
|
-
])) :
|
|
99
|
-
s("div",
|
|
100
|
-
s("div",
|
|
101
|
-
s("div",
|
|
102
|
-
!
|
|
87
|
+
class: n(["py-3xs px-2xs ml-xs inline-block font-bold text-xs absolute bottom-0 translate-y-[50%]", k.value]),
|
|
88
|
+
innerHTML: t.labelText
|
|
89
|
+
}, null, 10, $)) : b("", !0)
|
|
90
|
+
])) : b("", !0),
|
|
91
|
+
s("div", z, [
|
|
92
|
+
s("div", G, [
|
|
93
|
+
s("div", D, [
|
|
94
|
+
!t.displayImage && t.displayLabel ? (g(), m("span", {
|
|
103
95
|
key: 0,
|
|
104
|
-
class:
|
|
105
|
-
innerHTML:
|
|
106
|
-
}, null, 10,
|
|
96
|
+
class: n(["py-3xs px-2xs mb-2xs inline-block font-bold text-xs", k.value]),
|
|
97
|
+
innerHTML: t.labelText
|
|
98
|
+
}, null, 10, I)) : b("", !0),
|
|
107
99
|
s("h3", {
|
|
108
|
-
class:
|
|
109
|
-
innerHTML:
|
|
110
|
-
}, null, 10,
|
|
111
|
-
|
|
100
|
+
class: n(f.value),
|
|
101
|
+
innerHTML: t.title
|
|
102
|
+
}, null, 10, X),
|
|
103
|
+
t.displayHighlight ? (g(), m("div", {
|
|
112
104
|
key: 1,
|
|
113
|
-
class:
|
|
114
|
-
}, null, 2)) :
|
|
105
|
+
class: n(["mb-xs h-3xs w-md", A(o)("BGCOLOR", t.highlightColor)])
|
|
106
|
+
}, null, 2)) : b("", !0),
|
|
115
107
|
s("div", {
|
|
116
108
|
class: "mb-sm cursor-default",
|
|
117
|
-
onClick: r[0] || (r[0] =
|
|
109
|
+
onClick: r[0] || (r[0] = S(() => {
|
|
118
110
|
}, ["stop"]))
|
|
119
111
|
}, [
|
|
120
|
-
T(
|
|
112
|
+
T(t.$slots, "default", {}, void 0, !0)
|
|
121
113
|
])
|
|
122
114
|
])
|
|
123
115
|
]),
|
|
124
|
-
|
|
116
|
+
t.displayCta ? (g(), m("div", {
|
|
125
117
|
key: 0,
|
|
126
118
|
class: "pb-sm border-0 cursor-default",
|
|
127
|
-
onClick: r[2] || (r[2] =
|
|
119
|
+
onClick: r[2] || (r[2] = S(() => {
|
|
128
120
|
}, ["stop"]))
|
|
129
121
|
}, [
|
|
130
|
-
s("div",
|
|
122
|
+
s("div", N, [
|
|
131
123
|
s("a", {
|
|
132
|
-
href:
|
|
133
|
-
target:
|
|
134
|
-
class:
|
|
135
|
-
onClick: r[1] || (r[1] = (
|
|
136
|
-
},
|
|
124
|
+
href: t.ctaLink,
|
|
125
|
+
target: t.ctaTarget,
|
|
126
|
+
class: n(["btn btn-full", x.value]),
|
|
127
|
+
onClick: r[1] || (r[1] = (e) => a(e))
|
|
128
|
+
}, w(t.ctaText), 11, V)
|
|
137
129
|
])
|
|
138
|
-
])) :
|
|
130
|
+
])) : b("", !0)
|
|
139
131
|
])
|
|
140
132
|
], 2));
|
|
141
133
|
}
|
|
142
|
-
}),
|
|
143
|
-
const
|
|
144
|
-
for (const [
|
|
145
|
-
|
|
146
|
-
return
|
|
147
|
-
},
|
|
134
|
+
}), _ = (y, C) => {
|
|
135
|
+
const i = y.__vccOpts || y;
|
|
136
|
+
for (const [u, v] of C)
|
|
137
|
+
i[u] = v;
|
|
138
|
+
return i;
|
|
139
|
+
}, lt = /* @__PURE__ */ _(q, [["__scopeId", "data-v-9021bcb6"]]), W = ["href", "target"], F = { class: "absolute z-[15] flex flex-col justify-end items-start inset-0 p-xs [@media(hover:hover)]:opacity-0 hover:opacity-100 peer transition-opacity duration-200" }, P = ["innerHTML"], Y = ["src", "alt"], rt = /* @__PURE__ */ B({
|
|
148
140
|
__name: "MclCardB",
|
|
149
141
|
props: {
|
|
150
142
|
title: {},
|
|
@@ -154,7 +146,6 @@ const E = {
|
|
|
154
146
|
borderColor: { default: "light-3" },
|
|
155
147
|
imageSource: {},
|
|
156
148
|
imageAlt: {},
|
|
157
|
-
imageCors: { default: "anonymous" },
|
|
158
149
|
displayGrayScale: { type: Boolean, default: !0 },
|
|
159
150
|
ctaAsLink: { type: Boolean, default: !1 },
|
|
160
151
|
ctaLink: { default: "#" },
|
|
@@ -162,51 +153,56 @@ const E = {
|
|
|
162
153
|
rounded: { type: Boolean, default: !1 }
|
|
163
154
|
},
|
|
164
155
|
emits: ["card-click"],
|
|
165
|
-
setup(
|
|
166
|
-
const
|
|
156
|
+
setup(y, { emit: C }) {
|
|
157
|
+
const i = y;
|
|
167
158
|
L();
|
|
168
|
-
const
|
|
169
|
-
const
|
|
170
|
-
return
|
|
171
|
-
},
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
159
|
+
const u = C, v = h(() => {
|
|
160
|
+
const { borderColor: a, rounded: c } = i, t = [o("BORDER", a)];
|
|
161
|
+
return t.push(c ? "rounded-md" : "rounded-sm"), t.join(" ");
|
|
162
|
+
}), f = h(() => {
|
|
163
|
+
const { displayGrayScale: a } = i;
|
|
164
|
+
return a ? "[@media(hover:hover)]:grayscale peer-hover:grayscale-0" : "";
|
|
165
|
+
}), k = h(() => {
|
|
166
|
+
const { titleSize: a, titleColor: c, titleBlockColor: t } = i;
|
|
167
|
+
return [
|
|
168
|
+
o("H3", a),
|
|
169
|
+
o("TEXTCOLOR", c),
|
|
170
|
+
o("BGCOLOR", t)
|
|
171
|
+
].join(" ");
|
|
172
|
+
}), x = (a) => {
|
|
173
|
+
const { title: c, ctaLink: t, ctaTarget: r, ctaAsLink: e } = i;
|
|
174
|
+
!e && a.preventDefault();
|
|
178
175
|
const l = {
|
|
179
|
-
title:
|
|
180
|
-
url:
|
|
176
|
+
title: c,
|
|
177
|
+
url: t,
|
|
181
178
|
target: r || "_self"
|
|
182
179
|
};
|
|
183
|
-
console.log(l),
|
|
180
|
+
console.log(l), u("card-click", a, l);
|
|
184
181
|
};
|
|
185
|
-
return (a,
|
|
186
|
-
class:
|
|
182
|
+
return (a, c) => (g(), m("div", {
|
|
183
|
+
class: n(["relative max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer overflow-hidden border", v.value])
|
|
187
184
|
}, [
|
|
188
185
|
s("a", {
|
|
189
186
|
href: a.ctaLink,
|
|
190
187
|
target: a.ctaTarget,
|
|
191
|
-
onClick:
|
|
188
|
+
onClick: c[0] || (c[0] = (t) => x(t))
|
|
192
189
|
}, [
|
|
193
|
-
s("div",
|
|
190
|
+
s("div", F, [
|
|
194
191
|
s("h3", {
|
|
195
192
|
innerHTML: a.title,
|
|
196
|
-
class:
|
|
197
|
-
}, null, 10,
|
|
193
|
+
class: n(["inline-block px-xs py-2xs mb-2xs pointer-events-none tracking-wide", k.value])
|
|
194
|
+
}, null, 10, P),
|
|
198
195
|
T(a.$slots, "default")
|
|
199
196
|
]),
|
|
200
197
|
s("img", {
|
|
201
198
|
src: a.imageSource,
|
|
202
199
|
alt: a.imageAlt,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
], 8, F)
|
|
200
|
+
class: n(["relative h-full w-full z-10 object-cover object-center aspect-[3/4] transition-all duration-200", f.value])
|
|
201
|
+
}, null, 10, Y)
|
|
202
|
+
], 8, W)
|
|
207
203
|
], 2));
|
|
208
204
|
}
|
|
209
|
-
}),
|
|
205
|
+
}), J = ["src", "alt"], K = /* @__PURE__ */ B({
|
|
210
206
|
__name: "MclCardC",
|
|
211
207
|
props: {
|
|
212
208
|
imageSource: {},
|
|
@@ -218,70 +214,64 @@ const E = {
|
|
|
218
214
|
highlightColor: { default: "light-3" },
|
|
219
215
|
highlightOpacity: { default: 80 },
|
|
220
216
|
displayTitle: { type: Boolean, default: !1 },
|
|
221
|
-
cardColor: { default: "primary" }
|
|
222
|
-
imageCors: { default: "anonymous" }
|
|
217
|
+
cardColor: { default: "primary" }
|
|
223
218
|
},
|
|
224
219
|
emits: ["card-click"],
|
|
225
|
-
setup(
|
|
226
|
-
const
|
|
220
|
+
setup(y, { emit: C }) {
|
|
221
|
+
const i = y;
|
|
227
222
|
L();
|
|
228
|
-
const
|
|
229
|
-
const a = [o("BGCOLOR",
|
|
230
|
-
return
|
|
231
|
-
}), k = (
|
|
232
|
-
const
|
|
223
|
+
const u = R(!1), v = C, f = h(() => {
|
|
224
|
+
const a = [o("BGCOLOR", i.cardColor)];
|
|
225
|
+
return u.value && a.push("flip-card"), a.join(" ");
|
|
226
|
+
}), k = h(() => {
|
|
227
|
+
const {
|
|
228
|
+
titleSize: a,
|
|
229
|
+
titleColor: c,
|
|
230
|
+
displayHighlight: t,
|
|
231
|
+
highlightColor: r,
|
|
232
|
+
highlightOpacity: e
|
|
233
|
+
} = i, l = [
|
|
233
234
|
o("H3", a),
|
|
234
|
-
o("TEXTCOLOR",
|
|
235
|
+
o("TEXTCOLOR", c)
|
|
235
236
|
];
|
|
236
|
-
return
|
|
237
|
-
},
|
|
238
|
-
a.preventDefault(),
|
|
237
|
+
return t && (l.push("px-xs py-2xs mb-2xs rounded"), l.push(o("BGCOLOR", r)), l.push(o("BGOPACITY", e))), l.join(" ");
|
|
238
|
+
}), x = (a) => {
|
|
239
|
+
a.preventDefault(), u.value && v("card-click", a), u.value = !0;
|
|
239
240
|
};
|
|
240
|
-
return (a,
|
|
241
|
-
class:
|
|
242
|
-
onClick:
|
|
241
|
+
return (a, c) => (g(), m("div", {
|
|
242
|
+
class: n(["relative aspect-square card transition duration-[1600ms] max-h-[400px] overflow-hidden", f.value]),
|
|
243
|
+
onClick: x
|
|
243
244
|
}, [
|
|
244
245
|
s("img", {
|
|
245
246
|
src: a.imageSource,
|
|
246
247
|
alt: a.imageAlt,
|
|
247
|
-
class:
|
|
248
|
-
|
|
249
|
-
"absolute
|
|
250
|
-
])
|
|
251
|
-
|
|
252
|
-
}, null, 10, K),
|
|
248
|
+
class: n([
|
|
249
|
+
u.value ? "opacity-100" : "opacity-0",
|
|
250
|
+
"absolute w-full h-full object-cover object-center aspect-square transition-opacity delay-500 duration-[800ms]"
|
|
251
|
+
])
|
|
252
|
+
}, null, 10, J),
|
|
253
253
|
s("div", {
|
|
254
|
-
class:
|
|
255
|
-
|
|
254
|
+
class: n([
|
|
255
|
+
u.value ? "cursor-pointer opacity-100" : "opacity-0",
|
|
256
256
|
"relative flex flex-col justify-end p-sm h-full transition delay-500 duration-[800ms]"
|
|
257
257
|
])
|
|
258
258
|
}, [
|
|
259
|
-
a.displayTitle ? (
|
|
259
|
+
a.displayTitle ? (g(), m("h3", {
|
|
260
260
|
key: 0,
|
|
261
|
-
class:
|
|
262
|
-
"relative self-start",
|
|
263
|
-
k(
|
|
264
|
-
a.titleSize,
|
|
265
|
-
a.titleColor,
|
|
266
|
-
a.displayHighlight,
|
|
267
|
-
a.highlightColor,
|
|
268
|
-
a.highlightOpacity
|
|
269
|
-
)
|
|
270
|
-
])
|
|
261
|
+
class: n(["relative self-start", k.value])
|
|
271
262
|
}, [
|
|
272
|
-
s("span", null,
|
|
273
|
-
], 2)) :
|
|
263
|
+
s("span", null, w(a.title), 1)
|
|
264
|
+
], 2)) : b("", !0),
|
|
274
265
|
T(a.$slots, "card-body", {}, void 0, !0)
|
|
275
266
|
], 2)
|
|
276
267
|
], 2));
|
|
277
268
|
}
|
|
278
|
-
}),
|
|
269
|
+
}), ot = /* @__PURE__ */ _(K, [["__scopeId", "data-v-0d2f293c"]]), Q = { class: "flex flex-col rounded-md overflow-hidden" }, U = ["src", "alt"], Z = ["href", "target"], tt = /* @__PURE__ */ B({
|
|
279
270
|
__name: "MclCardD",
|
|
280
271
|
props: {
|
|
281
272
|
displayImage: { type: Boolean, default: !0 },
|
|
282
273
|
imageSource: {},
|
|
283
274
|
imageAlt: { default: "" },
|
|
284
|
-
imageCors: { default: "anonymous" },
|
|
285
275
|
title: {},
|
|
286
276
|
titleSize: { default: "md" },
|
|
287
277
|
titleColor: { default: "dark-4" },
|
|
@@ -302,8 +292,8 @@ const E = {
|
|
|
302
292
|
customColor: {}
|
|
303
293
|
},
|
|
304
294
|
emits: ["card-click"],
|
|
305
|
-
setup(
|
|
306
|
-
const
|
|
295
|
+
setup(y, { emit: C }) {
|
|
296
|
+
const i = {
|
|
307
297
|
primary: "from-primary",
|
|
308
298
|
secondary: "from-secondary",
|
|
309
299
|
success: "from-success",
|
|
@@ -321,7 +311,7 @@ const E = {
|
|
|
321
311
|
black: "from-black",
|
|
322
312
|
white: "from-white",
|
|
323
313
|
transparent: "from-transparent"
|
|
324
|
-
},
|
|
314
|
+
}, u = {
|
|
325
315
|
primary: "via-primary",
|
|
326
316
|
secondary: "via-secondary",
|
|
327
317
|
success: "via-success",
|
|
@@ -339,7 +329,7 @@ const E = {
|
|
|
339
329
|
black: "via-black",
|
|
340
330
|
white: "via-white",
|
|
341
331
|
transparent: "via-transparent"
|
|
342
|
-
},
|
|
332
|
+
}, v = {
|
|
343
333
|
primary: "to-primary",
|
|
344
334
|
secondary: "to-secondary",
|
|
345
335
|
success: "to-success",
|
|
@@ -357,75 +347,77 @@ const E = {
|
|
|
357
347
|
black: "to-black",
|
|
358
348
|
white: "to-white",
|
|
359
349
|
transparent: "to-transparent"
|
|
360
|
-
},
|
|
350
|
+
}, f = y;
|
|
361
351
|
L();
|
|
362
|
-
const k = C,
|
|
363
|
-
|
|
364
|
-
o("TEXTCOLOR", l)
|
|
365
|
-
].join(" "), a = (t, l, u) => {
|
|
366
|
-
const n = [], O = ["light-1", "light-2", "light-3", "light-4"];
|
|
367
|
-
return t || n.push("mcl-link"), t && (n.push("btn"), n.push(o("BTNCOLOR", l))), t && u && n.push("btn-full"), t && !O.includes(l) && n.push("text-white"), n.join(" ");
|
|
368
|
-
}, d = S(() => ({
|
|
369
|
-
"--border-width": `${g.borderWidth}px`
|
|
370
|
-
})), e = S(() => {
|
|
371
|
-
const t = p[g.borderColor], l = c[g.gradient1], u = y[g.gradient2];
|
|
352
|
+
const k = C, x = h(() => {
|
|
353
|
+
const { titleSize: e, titleColor: l } = f;
|
|
372
354
|
return [
|
|
373
|
-
o("
|
|
374
|
-
|
|
355
|
+
o("H2", e),
|
|
356
|
+
o("TEXTCOLOR", l)
|
|
357
|
+
].join(" ");
|
|
358
|
+
}), a = h(() => {
|
|
359
|
+
const { ctaButton: e, ctaButtonColor: l, ctaButtonBlock: p } = f, d = [], O = ["light-1", "light-2", "light-3", "light-4"];
|
|
360
|
+
return e ? d.push("btn", o("BTNCOLOR", l)) : d.push("mcl-link"), e && p && d.push("btn-full"), e && !O.includes(l) && d.push("text-white"), d.join(" ");
|
|
361
|
+
}), c = h(() => ({
|
|
362
|
+
"--border-width": `${f.borderWidth}px`
|
|
363
|
+
})), t = h(() => {
|
|
364
|
+
const e = i[f.borderColor], l = u[f.gradient1], p = v[f.gradient2];
|
|
365
|
+
return [
|
|
366
|
+
o("BORDER", f.borderColor),
|
|
367
|
+
e,
|
|
375
368
|
l,
|
|
376
|
-
|
|
369
|
+
p
|
|
377
370
|
].join(" ");
|
|
378
|
-
}), r = (
|
|
379
|
-
const { title: l, ctaLink:
|
|
371
|
+
}), r = (e) => {
|
|
372
|
+
const { title: l, ctaLink: p, ctaLinkTarget: d, ctaAsLink: O } = f, j = {
|
|
380
373
|
title: l,
|
|
381
|
-
url:
|
|
382
|
-
target:
|
|
374
|
+
url: p,
|
|
375
|
+
target: d || "_self"
|
|
383
376
|
};
|
|
384
|
-
!O &&
|
|
377
|
+
!O && e.preventDefault(), k("card-click", e, j);
|
|
385
378
|
};
|
|
386
|
-
return (
|
|
387
|
-
class:
|
|
388
|
-
style:
|
|
379
|
+
return (e, l) => (g(), m("div", {
|
|
380
|
+
class: n(["card [--border-angle:0deg] bg-[conic-gradient(from_var(--border-angle),var(--tw-gradient-stops))] from-20% overflow-hidden rounded-md max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 border", t.value]),
|
|
381
|
+
style: H(c.value)
|
|
389
382
|
}, [
|
|
390
|
-
s("div",
|
|
391
|
-
|
|
383
|
+
s("div", Q, [
|
|
384
|
+
e.displayImage ? (g(), m("img", {
|
|
392
385
|
key: 0,
|
|
393
|
-
src:
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}, null, 8, Z)) : v("", !0),
|
|
386
|
+
src: e.imageSource,
|
|
387
|
+
class: "object-cover object-top max-h-[200px] min-w-full",
|
|
388
|
+
alt: e.imageAlt
|
|
389
|
+
}, null, 8, U)) : b("", !0),
|
|
398
390
|
s("div", {
|
|
399
|
-
class:
|
|
391
|
+
class: n(["p-xs", A(o)("BGCOLOR", e.bgColor)])
|
|
400
392
|
}, [
|
|
401
393
|
s("h3", {
|
|
402
|
-
class:
|
|
403
|
-
},
|
|
404
|
-
|
|
394
|
+
class: n(["mb-xs", x.value])
|
|
395
|
+
}, w(e.title), 3),
|
|
396
|
+
e.displayHighlight ? (g(), m("div", {
|
|
405
397
|
key: 0,
|
|
406
|
-
class:
|
|
407
|
-
}, null, 2)) :
|
|
398
|
+
class: n(["mb-xs h-3xs w-md", A(o)("BGCOLOR", e.highlightColor)])
|
|
399
|
+
}, null, 2)) : b("", !0),
|
|
408
400
|
s("div", null, [
|
|
409
|
-
T(
|
|
401
|
+
T(e.$slots, "default", {}, void 0, !0)
|
|
410
402
|
]),
|
|
411
403
|
s("div", {
|
|
412
|
-
class:
|
|
404
|
+
class: n(["mt-xs", { "mb-2xs": !e.ctaButton }])
|
|
413
405
|
}, [
|
|
414
406
|
s("a", {
|
|
415
|
-
href:
|
|
416
|
-
target:
|
|
417
|
-
class:
|
|
407
|
+
href: e.ctaLink,
|
|
408
|
+
target: e.ctaLinkTarget,
|
|
409
|
+
class: n(a.value),
|
|
418
410
|
onClick: r
|
|
419
|
-
},
|
|
411
|
+
}, w(e.ctaText), 11, Z)
|
|
420
412
|
], 2)
|
|
421
413
|
], 2)
|
|
422
414
|
])
|
|
423
415
|
], 6));
|
|
424
416
|
}
|
|
425
|
-
}),
|
|
417
|
+
}), st = /* @__PURE__ */ _(tt, [["__scopeId", "data-v-237930d5"]]);
|
|
426
418
|
export {
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
419
|
+
lt as MclCardA,
|
|
420
|
+
rt as MclCardB,
|
|
421
|
+
ot as MclCardC,
|
|
422
|
+
st as MclCardD
|
|
431
423
|
};
|
package/dist/mcl-cards.umd.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-
|
|
2
|
-
(function(f,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@bobbykim/manguito-theme")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme"],e):(f=typeof globalThis<"u"?globalThis:f||self,e(f.MclCards={},f.Vue,f.ManguitoTheme))})(this,function(f,e,i){"use strict";const B={key:0,class:"relative"},T=["src","alt","crossorigin"],w=["innerHTML"],E={class:"content-height flex flex-col justify-between"},L={class:"min-h-[100px] p-0"},O={class:"px-xs pt-sm"},S=["innerHTML"],A=["innerHTML"],N={class:"w-full px-xs"},V=["href","target"],z=e.defineComponent({__name:"MclCardA",props:{title:{},titleSize:{default:"md"},titleColor:{default:"dark-3"},borderColor:{default:"light-3"},bgColor:{default:"light-1"},displayImage:{type:Boolean,default:!0},imageSource:{},imageAlt:{},imageCors:{default:"anonymous"},displayCta:{type:Boolean,default:!0},ctaAsLink:{type:Boolean,default:!1},ctaText:{default:"cta text"},ctaColor:{default:"primary"},ctaLink:{default:"#"},ctaTarget:{default:"_self"},displayLabel:{type:Boolean,default:!0},labelText:{default:"Lorem ipsum"},labelTextColor:{default:"light-1"},labelColor:{default:"dark-4"},enlargeOnHover:{type:Boolean,default:!1},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},rounded:{type:Boolean,default:!0},displayShadow:{type:Boolean,default:!0}},emits:["card-click","card-btn-click"],setup(h,{emit:g}){const p=h;e.useSlots();const d=g,u=(t,r,o,a,c)=>{const s=[i("BORDER",t),i("BGCOLOR",r)];return o?s.push("rounded-md"):s.push("rounded-sm"),a&&s.push("hover:scale-105 transition ease-in duration-300"),c&&s.push("drop-shadow-md"),s.join(" ")},m=(t,r,o)=>{const a=[i("H3",t),i("TEXTCOLOR",r)];return o?a.push("mb-2xs"):a.push("mb-xs"),a.join(" ")},C=(t,r)=>[i("TEXTCOLOR",t),i("BGCOLOR",r)].join(" "),y=(t,r)=>{const o=[i("BTNCOLOR",t)];let c=["light-1","light-2","light-3","light-4"].includes(t)?"text-black":"text-white";return o.push(c),r&&o.push("btn-round"),o.join(" ")},l=t=>{const{title:r,ctaLink:o,ctaTarget:a,ctaAsLink:c}=p,s={title:r,url:o,target:a||"_self"};!c&&t.preventDefault(),d("card-btn-click",t,s)},n=t=>{const{title:r,ctaLink:o,ctaTarget:a}=p;d("card-click",t,{title:r,url:o,target:a||"_self"})};return(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["overflow-hidden border max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer",u(t.borderColor,t.bgColor,t.rounded,t.enlargeOnHover,t.displayShadow)]),onClick:n},[t.displayImage?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("img",{src:t.imageSource,alt:t.imageAlt,crossorigin:t.imageCors,class:"object-cover object-top h-[220px] min-w-full"},null,8,T),t.displayLabel?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["py-3xs px-2xs ml-xs inline-block font-bold text-xs absolute bottom-0 translate-y-[50%]",C(t.labelTextColor,t.labelColor)]),innerHTML:t.labelText},null,10,w)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",E,[e.createElementVNode("div",L,[e.createElementVNode("div",O,[!t.displayImage&&t.displayLabel?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["py-3xs px-2xs mb-2xs inline-block font-bold text-xs",C(t.labelTextColor,t.labelColor)]),innerHTML:t.labelText},null,10,S)):e.createCommentVNode("",!0),e.createElementVNode("h3",{class:e.normalizeClass(m(t.titleSize,t.titleColor,t.displayHighlight)),innerHTML:t.title},null,10,A),t.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["mb-xs h-3xs w-md",e.unref(i)("BGCOLOR",t.highlightColor)])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"mb-sm cursor-default",onClick:r[0]||(r[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),t.displayCta?(e.openBlock(),e.createElementBlock("div",{key:0,class:"pb-sm border-0 cursor-default",onClick:r[2]||(r[2]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",N,[e.createElementVNode("a",{href:t.ctaLink,target:t.ctaTarget,class:e.normalizeClass(["btn btn-full",y(t.ctaColor,t.rounded)]),onClick:r[1]||(r[1]=o=>l(o))},e.toDisplayString(t.ctaText),11,V)])])):e.createCommentVNode("",!0)])],2))}}),k=(h,g)=>{const p=h.__vccOpts||h;for(const[d,u]of g)p[d]=u;return p},M=k(z,[["__scopeId","data-v-7bb0ad8b"]]),j=["href","target"],H={class:"absolute z-[15] flex flex-col justify-end items-start inset-0 p-xs [@media(hover:hover)]:opacity-0 hover:opacity-100 peer transition-opacity duration-200"},R=["innerHTML"],x=["src","alt","crossorigin"],$=e.defineComponent({__name:"MclCardB",props:{title:{},titleSize:{default:"md"},titleColor:{default:"light-1"},titleBlockColor:{default:"dark-4"},borderColor:{default:"light-3"},imageSource:{},imageAlt:{},imageCors:{default:"anonymous"},displayGrayScale:{type:Boolean,default:!0},ctaAsLink:{type:Boolean,default:!1},ctaLink:{default:"#"},ctaTarget:{default:"_self"},rounded:{type:Boolean,default:!1}},emits:["card-click"],setup(h,{emit:g}){const p=h;e.useSlots();const d=g,u=(l,n)=>{const t=[i("BORDER",l)];return n?t.push("rounded-md"):t.push("rounded-sm"),t.join(" ")},m=l=>l?"[@media(hover:hover)]:grayscale peer-hover:grayscale-0":"",C=(l,n,t)=>[i("H3",l),i("TEXTCOLOR",n),i("BGCOLOR",t)].join(" "),y=l=>{const{title:n,ctaLink:t,ctaTarget:r,ctaAsLink:o}=p;!o&&l.preventDefault();const a={title:n,url:t,target:r||"_self"};console.log(a),d("card-click",l,a)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer overflow-hidden border border-light-3",u(l.borderColor,l.rounded)])},[e.createElementVNode("a",{href:l.ctaLink,target:l.ctaTarget,onClick:n[0]||(n[0]=t=>y(t))},[e.createElementVNode("div",H,[e.createElementVNode("h3",{innerHTML:l.title,class:e.normalizeClass(["inline-block px-xs py-2xs mb-2xs pointer-events-none tracking-wide",C(l.titleSize,l.titleColor,l.titleBlockColor)])},null,10,R),e.renderSlot(l.$slots,"default")]),e.createElementVNode("img",{src:l.imageSource,alt:l.imageAlt,crossorigin:l.imageCors,class:e.normalizeClass(["relative z-10 object-cover aspect-[3/4] transition-all duration-200",m(l.displayGrayScale)])},null,10,x)],8,j)],2))}}),D=["src","alt","crossorigin"],G=k(e.defineComponent({__name:"MclCardC",props:{imageSource:{},imageAlt:{},title:{},titleSize:{default:"md"},titleColor:{default:"dark-3"},displayHighlight:{type:Boolean,default:!1},highlightColor:{default:"light-3"},highlightOpacity:{default:80},displayTitle:{type:Boolean,default:!1},cardColor:{default:"primary"},imageCors:{default:"anonymous"}},emits:["card-click"],setup(h,{emit:g}){const p=h;e.useSlots();const d=e.ref(!1),u=g,m=e.computed(()=>{const l=[i("BGCOLOR",p.cardColor)];return d.value&&l.push("flip-card"),l.join(" ")}),C=(l,n,t,r,o)=>{const a=[i("H3",l),i("TEXTCOLOR",n)];return t&&(a.push("px-xs py-2xs mb-2xs rounded"),a.push(i("BGCOLOR",r)),a.push(i("BGOPACITY",o))),a.join(" ")},y=l=>{l.preventDefault(),d.value&&u("card-click",l),d.value=!0};return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["relative aspect-square card transition duration-[1600ms] max-h-[400px] overflow-hidden",m.value]),onClick:y},[e.createElementVNode("img",{src:l.imageSource,alt:l.imageAlt,class:e.normalizeClass([d.value?"opacity-100":"opacity-0","absolute inset-0 object-cover object-center transition-opacity delay-500 duration-[800ms] grayscale-0 hover:grayscale"]),crossorigin:l.imageCors},null,10,D),e.createElementVNode("div",{class:e.normalizeClass([d.value?"cursor-pointer opacity-100":"opacity-0","relative flex flex-col justify-end p-sm h-full transition delay-500 duration-[800ms]"])},[l.displayTitle?(e.openBlock(),e.createElementBlock("h3",{key:0,class:e.normalizeClass(["relative self-start",C(l.titleSize,l.titleColor,l.displayHighlight,l.highlightColor,l.highlightOpacity)])},[e.createElementVNode("span",null,e.toDisplayString(l.title),1)],2)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"card-body",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-4f321931"]]),I={class:"flex flex-col rounded-md overflow-hidden"},X=["src","crossorigin","alt"],q=["href","target"],P=k(e.defineComponent({__name:"MclCardD",props:{displayImage:{type:Boolean,default:!0},imageSource:{},imageAlt:{default:""},imageCors:{default:"anonymous"},title:{},titleSize:{default:"md"},titleColor:{default:"dark-4"},bgColor:{default:"light-1"},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},ctaText:{default:"Read more"},ctaLink:{},ctaLinkTarget:{default:"_self"},ctaAsLink:{type:Boolean,default:!1},ctaButton:{type:Boolean,default:!1},ctaButtonColor:{default:"warning"},ctaButtonBlock:{type:Boolean,default:!1},borderWidth:{default:3},borderColor:{default:"light-3"},gradient1:{default:"primary"},gradient2:{default:"secondary"},customColor:{}},emits:["card-click"],setup(h,{emit:g}){const p={primary:"from-primary",secondary:"from-secondary",success:"from-success",info:"from-info",warning:"from-warning",danger:"from-danger","light-1":"from-light-1","light-2":"from-light-2","light-3":"from-light-3","light-4":"from-light-4","dark-1":"from-dark-1","dark-2":"from-dark-2","dark-3":"from-dark-3","dark-4":"from-dark-4",black:"from-black",white:"from-white",transparent:"from-transparent"},d={primary:"via-primary",secondary:"via-secondary",success:"via-success",info:"via-info",warning:"via-warning",danger:"via-danger","light-1":"via-light-1","light-2":"via-light-2","light-3":"via-light-3","light-4":"via-light-4","dark-1":"via-dark-1","dark-2":"via-dark-2","dark-3":"via-dark-3","dark-4":"via-dark-4",black:"via-black",white:"via-white",transparent:"via-transparent"},u={primary:"to-primary",secondary:"to-secondary",success:"to-success",info:"to-info",warning:"to-warning",danger:"to-danger","light-1":"to-light-1","light-2":"to-light-2","light-3":"to-light-3","light-4":"to-light-4","dark-1":"to-dark-1","dark-2":"to-dark-2","dark-3":"to-dark-3","dark-4":"to-dark-4",black:"to-black",white:"to-white",transparent:"to-transparent"},m=h;e.useSlots();const C=g,y=(o,a)=>[i("H2",o),i("TEXTCOLOR",a)].join(" "),l=(o,a,c)=>{const s=[],b=["light-1","light-2","light-3","light-4"];return o||s.push("mcl-link"),o&&(s.push("btn"),s.push(i("BTNCOLOR",a))),o&&c&&s.push("btn-full"),o&&!b.includes(a)&&s.push("text-white"),s.join(" ")},n=e.computed(()=>({"--border-width":`${m.borderWidth}px`})),t=e.computed(()=>{const o=p[m.borderColor],a=d[m.gradient1],c=u[m.gradient2];return[i("BORDER",m.borderColor),o,a,c].join(" ")}),r=o=>{const{title:a,ctaLink:c,ctaLinkTarget:s,ctaAsLink:b}=m,W={title:a,url:c,target:s||"_self"};!b&&o.preventDefault(),C("card-click",o,W)};return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["card [--border-angle:0deg] bg-[conic-gradient(from_var(--border-angle),var(--tw-gradient-stops))] from-20% overflow-hidden rounded-md max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 border",t.value]),style:e.normalizeStyle(n.value)},[e.createElementVNode("div",I,[o.displayImage?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.imageSource,crossorigin:o.imageCors,class:"object-cover object-top max-h-[200px]",alt:o.imageAlt},null,8,X)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["p-xs",e.unref(i)("BGCOLOR",o.bgColor)])},[e.createElementVNode("h3",{class:e.normalizeClass(["mb-xs",y(o.titleSize,o.titleColor)])},e.toDisplayString(o.title),3),o.displayHighlight?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mb-xs h-3xs w-md",e.unref(i)("BGCOLOR",o.highlightColor)])},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",null,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),e.createElementVNode("div",{class:e.normalizeClass(["mt-xs",{"mb-2xs":!o.ctaButton}])},[e.createElementVNode("a",{href:o.ctaLink,target:o.ctaLinkTarget,class:e.normalizeClass(l(o.ctaButton,o.ctaButtonColor,o.ctaButtonBlock)),onClick:r},e.toDisplayString(o.ctaText),11,q)],2)],2)])],6))}}),[["__scopeId","data-v-09793bca"]]);f.MclCardA=M,f.MclCardB=$,f.MclCardC=G,f.MclCardD=P,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-9021bcb6]{height:calc(100% - 200px)}.perspective[data-v-0d2f293c]{perspective:1800px}.card[data-v-0d2f293c]{transform-style:preserve-3d;transform:rotateY(0);backface-visibility:hidden}.flip-card[data-v-0d2f293c]{transform:rotateY(360deg)}.card[data-v-237930d5]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);animation:bg-spin-237930d5 4s linear infinite}@keyframes bg-spin-237930d5{to{--border-angle: 360deg}}.card[data-v-237930d5]:hover{animation-play-state:paused}@property --border-angle{syntax: "<angle>"; inherits: true; initial-value: 0deg;}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
(function(f,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@bobbykim/manguito-theme")):typeof define=="function"&&define.amd?define(["exports","vue","@bobbykim/manguito-theme"],t):(f=typeof globalThis<"u"?globalThis:f||self,t(f.MclCards={},f.Vue,f.ManguitoTheme))})(this,function(f,t,i){"use strict";const B={key:0,class:"relative"},w=["src","alt"],x=["innerHTML"],E={class:"content-height flex flex-col justify-between"},L={class:"min-h-[100px] p-0"},T={class:"px-xs pt-sm"},O=["innerHTML"],S=["innerHTML"],_={class:"w-full px-xs"},A=["href","target"],N=t.defineComponent({__name:"MclCardA",props:{title:{},titleSize:{default:"md"},titleColor:{default:"dark-3"},borderColor:{default:"light-3"},bgColor:{default:"light-1"},displayImage:{type:Boolean,default:!0},imageSource:{},imageAlt:{},displayCta:{type:Boolean,default:!0},ctaAsLink:{type:Boolean,default:!1},ctaText:{default:"cta text"},ctaColor:{default:"primary"},ctaLink:{default:"#"},ctaTarget:{default:"_self"},displayLabel:{type:Boolean,default:!0},labelText:{default:"Lorem ipsum"},labelTextColor:{default:"light-1"},labelColor:{default:"dark-4"},enlargeOnHover:{type:Boolean,default:!1},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},rounded:{type:Boolean,default:!0},displayShadow:{type:Boolean,default:!0}},emits:["card-click","card-btn-click"],setup(h,{emit:u}){const s=h;t.useSlots();const d=u,g=t.computed(()=>{const{borderColor:e,bgColor:r,rounded:l,enlargeOnHover:a,displayShadow:p}=s,n=[i("BORDER",e),i("BGCOLOR",r)];return n.push(l?"rounded-md":"rounded-sm"),a&&n.push("hover:scale-105 transition ease-in duration-300"),p&&n.push("drop-shadow-md"),n.join(" ")}),m=t.computed(()=>{const{titleSize:e,titleColor:r,displayHighlight:l}=s,a=[i("H3",e),i("TEXTCOLOR",r)];return a.push(l?"mb-2xs":"mb-xs"),a.join(" ")}),k=t.computed(()=>{const{labelTextColor:e,labelColor:r}=s;return[i("TEXTCOLOR",e),i("BGCOLOR",r)].join(" ")}),y=t.computed(()=>{const{ctaColor:e,rounded:r}=s,l=[i("BTNCOLOR",e)];let p=["light-1","light-2","light-3","light-4"].includes(e)?"text-black":"text-white";return l.push(p),r&&l.push("btn-round"),l.join(" ")}),o=e=>{const{title:r,ctaLink:l,ctaTarget:a,ctaAsLink:p}=s,n={title:r,url:l,target:a||"_self"};!p&&e.preventDefault(),d("card-btn-click",e,n)},c=e=>{const{title:r,ctaLink:l,ctaTarget:a}=s;d("card-click",e,{title:r,url:l,target:a||"_self"})};return(e,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["overflow-hidden border max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer",g.value]),onClick:c},[e.displayImage?(t.openBlock(),t.createElementBlock("div",B,[t.createElementVNode("img",{src:e.imageSource,alt:e.imageAlt,class:"object-cover object-top h-[220px] min-w-full"},null,8,w),e.displayLabel?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["py-3xs px-2xs ml-xs inline-block font-bold text-xs absolute bottom-0 translate-y-[50%]",k.value]),innerHTML:e.labelText},null,10,x)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",E,[t.createElementVNode("div",L,[t.createElementVNode("div",T,[!e.displayImage&&e.displayLabel?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["py-3xs px-2xs mb-2xs inline-block font-bold text-xs",k.value]),innerHTML:e.labelText},null,10,O)):t.createCommentVNode("",!0),t.createElementVNode("h3",{class:t.normalizeClass(m.value),innerHTML:e.title},null,10,S),e.displayHighlight?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["mb-xs h-3xs w-md",t.unref(i)("BGCOLOR",e.highlightColor)])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"mb-sm cursor-default",onClick:r[0]||(r[0]=t.withModifiers(()=>{},["stop"]))},[t.renderSlot(e.$slots,"default",{},void 0,!0)])])]),e.displayCta?(t.openBlock(),t.createElementBlock("div",{key:0,class:"pb-sm border-0 cursor-default",onClick:r[2]||(r[2]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",_,[t.createElementVNode("a",{href:e.ctaLink,target:e.ctaTarget,class:t.normalizeClass(["btn btn-full",y.value]),onClick:r[1]||(r[1]=l=>o(l))},t.toDisplayString(e.ctaText),11,A)])])):t.createCommentVNode("",!0)])],2))}}),C=(h,u)=>{const s=h.__vccOpts||h;for(const[d,g]of u)s[d]=g;return s},V=C(N,[["__scopeId","data-v-9021bcb6"]]),z=["href","target"],j={class:"absolute z-[15] flex flex-col justify-end items-start inset-0 p-xs [@media(hover:hover)]:opacity-0 hover:opacity-100 peer transition-opacity duration-200"},M=["innerHTML"],R=["src","alt"],H=t.defineComponent({__name:"MclCardB",props:{title:{},titleSize:{default:"md"},titleColor:{default:"light-1"},titleBlockColor:{default:"dark-4"},borderColor:{default:"light-3"},imageSource:{},imageAlt:{},displayGrayScale:{type:Boolean,default:!0},ctaAsLink:{type:Boolean,default:!1},ctaLink:{default:"#"},ctaTarget:{default:"_self"},rounded:{type:Boolean,default:!1}},emits:["card-click"],setup(h,{emit:u}){const s=h;t.useSlots();const d=u,g=t.computed(()=>{const{borderColor:o,rounded:c}=s,e=[i("BORDER",o)];return e.push(c?"rounded-md":"rounded-sm"),e.join(" ")}),m=t.computed(()=>{const{displayGrayScale:o}=s;return o?"[@media(hover:hover)]:grayscale peer-hover:grayscale-0":""}),k=t.computed(()=>{const{titleSize:o,titleColor:c,titleBlockColor:e}=s;return[i("H3",o),i("TEXTCOLOR",c),i("BGCOLOR",e)].join(" ")}),y=o=>{const{title:c,ctaLink:e,ctaTarget:r,ctaAsLink:l}=s;!l&&o.preventDefault();const a={title:c,url:e,target:r||"_self"};console.log(a),d("card-click",o,a)};return(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["relative max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer overflow-hidden border",g.value])},[t.createElementVNode("a",{href:o.ctaLink,target:o.ctaTarget,onClick:c[0]||(c[0]=e=>y(e))},[t.createElementVNode("div",j,[t.createElementVNode("h3",{innerHTML:o.title,class:t.normalizeClass(["inline-block px-xs py-2xs mb-2xs pointer-events-none tracking-wide",k.value])},null,10,M),t.renderSlot(o.$slots,"default")]),t.createElementVNode("img",{src:o.imageSource,alt:o.imageAlt,class:t.normalizeClass(["relative h-full w-full z-10 object-cover object-center aspect-[3/4] transition-all duration-200",m.value])},null,10,R)],8,z)],2))}}),$=["src","alt"],D=C(t.defineComponent({__name:"MclCardC",props:{imageSource:{},imageAlt:{},title:{},titleSize:{default:"md"},titleColor:{default:"dark-3"},displayHighlight:{type:Boolean,default:!1},highlightColor:{default:"light-3"},highlightOpacity:{default:80},displayTitle:{type:Boolean,default:!1},cardColor:{default:"primary"}},emits:["card-click"],setup(h,{emit:u}){const s=h;t.useSlots();const d=t.ref(!1),g=u,m=t.computed(()=>{const o=[i("BGCOLOR",s.cardColor)];return d.value&&o.push("flip-card"),o.join(" ")}),k=t.computed(()=>{const{titleSize:o,titleColor:c,displayHighlight:e,highlightColor:r,highlightOpacity:l}=s,a=[i("H3",o),i("TEXTCOLOR",c)];return e&&(a.push("px-xs py-2xs mb-2xs rounded"),a.push(i("BGCOLOR",r)),a.push(i("BGOPACITY",l))),a.join(" ")}),y=o=>{o.preventDefault(),d.value&&g("card-click",o),d.value=!0};return(o,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["relative aspect-square card transition duration-[1600ms] max-h-[400px] overflow-hidden",m.value]),onClick:y},[t.createElementVNode("img",{src:o.imageSource,alt:o.imageAlt,class:t.normalizeClass([d.value?"opacity-100":"opacity-0","absolute w-full h-full object-cover object-center aspect-square transition-opacity delay-500 duration-[800ms]"])},null,10,$),t.createElementVNode("div",{class:t.normalizeClass([d.value?"cursor-pointer opacity-100":"opacity-0","relative flex flex-col justify-end p-sm h-full transition delay-500 duration-[800ms]"])},[o.displayTitle?(t.openBlock(),t.createElementBlock("h3",{key:0,class:t.normalizeClass(["relative self-start",k.value])},[t.createElementVNode("span",null,t.toDisplayString(o.title),1)],2)):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"card-body",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-0d2f293c"]]),G={class:"flex flex-col rounded-md overflow-hidden"},I=["src","alt"],X=["href","target"],q=C(t.defineComponent({__name:"MclCardD",props:{displayImage:{type:Boolean,default:!0},imageSource:{},imageAlt:{default:""},title:{},titleSize:{default:"md"},titleColor:{default:"dark-4"},bgColor:{default:"light-1"},displayHighlight:{type:Boolean,default:!0},highlightColor:{default:"primary"},ctaText:{default:"Read more"},ctaLink:{},ctaLinkTarget:{default:"_self"},ctaAsLink:{type:Boolean,default:!1},ctaButton:{type:Boolean,default:!1},ctaButtonColor:{default:"warning"},ctaButtonBlock:{type:Boolean,default:!1},borderWidth:{default:3},borderColor:{default:"light-3"},gradient1:{default:"primary"},gradient2:{default:"secondary"},customColor:{}},emits:["card-click"],setup(h,{emit:u}){const s={primary:"from-primary",secondary:"from-secondary",success:"from-success",info:"from-info",warning:"from-warning",danger:"from-danger","light-1":"from-light-1","light-2":"from-light-2","light-3":"from-light-3","light-4":"from-light-4","dark-1":"from-dark-1","dark-2":"from-dark-2","dark-3":"from-dark-3","dark-4":"from-dark-4",black:"from-black",white:"from-white",transparent:"from-transparent"},d={primary:"via-primary",secondary:"via-secondary",success:"via-success",info:"via-info",warning:"via-warning",danger:"via-danger","light-1":"via-light-1","light-2":"via-light-2","light-3":"via-light-3","light-4":"via-light-4","dark-1":"via-dark-1","dark-2":"via-dark-2","dark-3":"via-dark-3","dark-4":"via-dark-4",black:"via-black",white:"via-white",transparent:"via-transparent"},g={primary:"to-primary",secondary:"to-secondary",success:"to-success",info:"to-info",warning:"to-warning",danger:"to-danger","light-1":"to-light-1","light-2":"to-light-2","light-3":"to-light-3","light-4":"to-light-4","dark-1":"to-dark-1","dark-2":"to-dark-2","dark-3":"to-dark-3","dark-4":"to-dark-4",black:"to-black",white:"to-white",transparent:"to-transparent"},m=h;t.useSlots();const k=u,y=t.computed(()=>{const{titleSize:l,titleColor:a}=m;return[i("H2",l),i("TEXTCOLOR",a)].join(" ")}),o=t.computed(()=>{const{ctaButton:l,ctaButtonColor:a,ctaButtonBlock:p}=m,n=[],b=["light-1","light-2","light-3","light-4"];return l?n.push("btn",i("BTNCOLOR",a)):n.push("mcl-link"),l&&p&&n.push("btn-full"),l&&!b.includes(a)&&n.push("text-white"),n.join(" ")}),c=t.computed(()=>({"--border-width":`${m.borderWidth}px`})),e=t.computed(()=>{const l=s[m.borderColor],a=d[m.gradient1],p=g[m.gradient2];return[i("BORDER",m.borderColor),l,a,p].join(" ")}),r=l=>{const{title:a,ctaLink:p,ctaLinkTarget:n,ctaAsLink:b}=m,P={title:a,url:p,target:n||"_self"};!b&&l.preventDefault(),k("card-click",l,P)};return(l,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card [--border-angle:0deg] bg-[conic-gradient(from_var(--border-angle),var(--tw-gradient-stops))] from-20% overflow-hidden rounded-md max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 border",e.value]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",G,[l.displayImage?(t.openBlock(),t.createElementBlock("img",{key:0,src:l.imageSource,class:"object-cover object-top max-h-[200px] min-w-full",alt:l.imageAlt},null,8,I)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["p-xs",t.unref(i)("BGCOLOR",l.bgColor)])},[t.createElementVNode("h3",{class:t.normalizeClass(["mb-xs",y.value])},t.toDisplayString(l.title),3),l.displayHighlight?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["mb-xs h-3xs w-md",t.unref(i)("BGCOLOR",l.highlightColor)])},null,2)):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.renderSlot(l.$slots,"default",{},void 0,!0)]),t.createElementVNode("div",{class:t.normalizeClass(["mt-xs",{"mb-2xs":!l.ctaButton}])},[t.createElementVNode("a",{href:l.ctaLink,target:l.ctaLinkTarget,class:t.normalizeClass(o.value),onClick:r},t.toDisplayString(l.ctaText),11,X)],2)],2)])],6))}}),[["__scopeId","data-v-237930d5"]]);f.MclCardA=V,f.MclCardB=H,f.MclCardC=D,f.MclCardD=q,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/mcl-cards",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "card components based on @bobbykim/manguito-theme",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@bobbykim/manguito-theme": "0.22.
|
|
36
|
+
"@bobbykim/manguito-theme": "0.22.1",
|
|
37
37
|
"vue": "^3.3.10"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"vite-plugin-dts": "^3.8.3",
|
|
46
46
|
"vue-tsc": "^1.8.25"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5bfdabc58aa5740b8c9ec576f2f64cf0fa3b230e"
|
|
49
49
|
}
|