@bobbykim/mcl-cards 0.6.0 → 0.7.1
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 +503 -0
- package/dist/mcl-cards.js +434 -0
- package/dist/mcl-cards.umd.cjs +2 -0
- package/package.json +28 -6
- package/CHANGELOG.md +0 -67
- package/index.d.ts +0 -6
- package/index.js +0 -6
- package/index.ts +0 -7
- package/lib/common/index.types.d.ts +0 -6
- package/lib/common/index.types.js +0 -1
- package/lib/common/index.types.ts +0 -7
- package/lib/mcl-card-a/MclCardA.vue +0 -251
- package/lib/mcl-card-a/MclCardA.vue.d.ts +0 -152
- package/lib/mcl-card-b/MclCardB.vue +0 -134
- package/lib/mcl-card-b/MclCardB.vue.d.ts +0 -95
- package/lib/mcl-card-c/MclCardC.vue +0 -147
- package/lib/mcl-card-c/MclCardC.vue.d.ts +0 -84
- package/lib/mcl-card-d/MclCardD.vue +0 -268
- package/lib/mcl-card-d/MclCardD.vue.d.ts +0 -138
- package/lib/mcl-card-d/index.types.d.ts +0 -4
- package/lib/mcl-card-d/index.types.js +0 -1
- package/lib/mcl-card-d/index.types.ts +0 -5
- package/tsconfig.json +0 -5
- package/tsconfig.ts.json +0 -9
- package/tsconfig.vue.json +0 -9
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-7bb0ad8b]{height:calc(100% - 200px)}.perspective[data-v-4f321931]{perspective:1800px}.card[data-v-4f321931]{transform-style:preserve-3d;transform:rotateY(0);backface-visibility:hidden}.flip-card[data-v-4f321931]{transform:rotateY(360deg)}.card[data-v-09793bca]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);animation:bg-spin-09793bca 4s linear infinite}@keyframes bg-spin-09793bca{to{--border-angle: 360deg}}.card[data-v-09793bca]: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 w, useSlots as L, openBlock as f, createElementBlock as p, normalizeClass as i, createElementVNode as s, createCommentVNode as v, unref as A, withModifiers as x, renderSlot as T, toDisplayString as B, ref as R, computed as S, normalizeStyle as j } from "vue";
|
|
3
|
+
import o from "@bobbykim/manguito-theme";
|
|
4
|
+
const M = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "relative"
|
|
7
|
+
}, E = ["src", "alt", "crossorigin"], $ = ["innerHTML"], z = { class: "content-height flex flex-col justify-between" }, D = { class: "min-h-[100px] p-0" }, G = { class: "px-xs pt-sm" }, I = ["innerHTML"], X = ["innerHTML"], N = { class: "w-full px-xs" }, V = ["href", "target"], W = /* @__PURE__ */ w({
|
|
8
|
+
__name: "MclCardA",
|
|
9
|
+
props: {
|
|
10
|
+
title: {},
|
|
11
|
+
titleSize: { default: "md" },
|
|
12
|
+
titleColor: { default: "dark-3" },
|
|
13
|
+
borderColor: { default: "light-3" },
|
|
14
|
+
bgColor: { default: "light-1" },
|
|
15
|
+
displayImage: { type: Boolean, default: !0 },
|
|
16
|
+
imageSource: {},
|
|
17
|
+
imageAlt: {},
|
|
18
|
+
imageCors: { default: "anonymous" },
|
|
19
|
+
displayCta: { type: Boolean, default: !0 },
|
|
20
|
+
ctaAsLink: { type: Boolean, default: !1 },
|
|
21
|
+
ctaText: { default: "cta text" },
|
|
22
|
+
ctaColor: { default: "primary" },
|
|
23
|
+
ctaLink: { default: "#" },
|
|
24
|
+
ctaTarget: { default: "_self" },
|
|
25
|
+
displayLabel: { type: Boolean, default: !0 },
|
|
26
|
+
labelText: { default: "Lorem ipsum" },
|
|
27
|
+
labelTextColor: { default: "light-1" },
|
|
28
|
+
labelColor: { default: "dark-4" },
|
|
29
|
+
enlargeOnHover: { type: Boolean, default: !1 },
|
|
30
|
+
displayHighlight: { type: Boolean, default: !0 },
|
|
31
|
+
highlightColor: { default: "primary" },
|
|
32
|
+
rounded: { type: Boolean, default: !0 },
|
|
33
|
+
displayShadow: { type: Boolean, default: !0 }
|
|
34
|
+
},
|
|
35
|
+
emits: ["card-click", "card-btn-click"],
|
|
36
|
+
setup(m, { emit: C }) {
|
|
37
|
+
const h = m;
|
|
38
|
+
L();
|
|
39
|
+
const c = C, y = (e, r, t, l, u) => {
|
|
40
|
+
const n = [
|
|
41
|
+
o("BORDER", e),
|
|
42
|
+
o("BGCOLOR", r)
|
|
43
|
+
];
|
|
44
|
+
return t ? n.push("rounded-md") : n.push("rounded-sm"), l && n.push("hover:scale-105 transition ease-in duration-300"), u && n.push("drop-shadow-md"), n.join(" ");
|
|
45
|
+
}, g = (e, r, t) => {
|
|
46
|
+
const l = [
|
|
47
|
+
o("H3", e),
|
|
48
|
+
o("TEXTCOLOR", r)
|
|
49
|
+
];
|
|
50
|
+
return t ? l.push("mb-2xs") : l.push("mb-xs"), l.join(" ");
|
|
51
|
+
}, k = (e, r) => [
|
|
52
|
+
o("TEXTCOLOR", e),
|
|
53
|
+
o("BGCOLOR", r)
|
|
54
|
+
].join(" "), b = (e, r) => {
|
|
55
|
+
const t = [o("BTNCOLOR", e)];
|
|
56
|
+
let u = ["light-1", "light-2", "light-3", "light-4"].includes(e) ? "text-black" : "text-white";
|
|
57
|
+
return t.push(u), r && t.push("btn-round"), t.join(" ");
|
|
58
|
+
}, a = (e) => {
|
|
59
|
+
const { title: r, ctaLink: t, ctaTarget: l, ctaAsLink: u } = h, n = {
|
|
60
|
+
title: r,
|
|
61
|
+
url: t,
|
|
62
|
+
target: l || "_self"
|
|
63
|
+
};
|
|
64
|
+
!u && e.preventDefault(), c("card-btn-click", e, n);
|
|
65
|
+
}, d = (e) => {
|
|
66
|
+
const { title: r, ctaLink: t, ctaTarget: l } = h;
|
|
67
|
+
c("card-click", e, {
|
|
68
|
+
title: r,
|
|
69
|
+
url: t,
|
|
70
|
+
target: l || "_self"
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
return (e, r) => (f(), p("div", {
|
|
74
|
+
class: i([
|
|
75
|
+
"overflow-hidden border max-w-[450px] sm:max-w-[350px] w-full xs:w-auto flex-grow flex-shrink-0 cursor-pointer",
|
|
76
|
+
y(
|
|
77
|
+
e.borderColor,
|
|
78
|
+
e.bgColor,
|
|
79
|
+
e.rounded,
|
|
80
|
+
e.enlargeOnHover,
|
|
81
|
+
e.displayShadow
|
|
82
|
+
)
|
|
83
|
+
]),
|
|
84
|
+
onClick: d
|
|
85
|
+
}, [
|
|
86
|
+
e.displayImage ? (f(), p("div", M, [
|
|
87
|
+
s("img", {
|
|
88
|
+
src: e.imageSource,
|
|
89
|
+
alt: e.imageAlt,
|
|
90
|
+
crossorigin: e.imageCors,
|
|
91
|
+
class: "object-cover object-top h-[220px] min-w-full"
|
|
92
|
+
}, null, 8, E),
|
|
93
|
+
e.displayLabel ? (f(), p("span", {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: i(["py-3xs px-2xs ml-xs inline-block font-bold text-xs absolute bottom-0 translate-y-[50%]", k(e.labelTextColor, e.labelColor)]),
|
|
96
|
+
innerHTML: e.labelText
|
|
97
|
+
}, null, 10, $)) : v("", !0)
|
|
98
|
+
])) : v("", !0),
|
|
99
|
+
s("div", z, [
|
|
100
|
+
s("div", D, [
|
|
101
|
+
s("div", G, [
|
|
102
|
+
!e.displayImage && e.displayLabel ? (f(), p("span", {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: i(["py-3xs px-2xs mb-2xs inline-block font-bold text-xs", k(e.labelTextColor, e.labelColor)]),
|
|
105
|
+
innerHTML: e.labelText
|
|
106
|
+
}, null, 10, I)) : v("", !0),
|
|
107
|
+
s("h3", {
|
|
108
|
+
class: i(g(e.titleSize, e.titleColor, e.displayHighlight)),
|
|
109
|
+
innerHTML: e.title
|
|
110
|
+
}, null, 10, X),
|
|
111
|
+
e.displayHighlight ? (f(), p("div", {
|
|
112
|
+
key: 1,
|
|
113
|
+
class: i(["mb-xs h-3xs w-md", A(o)("BGCOLOR", e.highlightColor)])
|
|
114
|
+
}, null, 2)) : v("", !0),
|
|
115
|
+
s("div", {
|
|
116
|
+
class: "mb-sm cursor-default",
|
|
117
|
+
onClick: r[0] || (r[0] = x(() => {
|
|
118
|
+
}, ["stop"]))
|
|
119
|
+
}, [
|
|
120
|
+
T(e.$slots, "default", {}, void 0, !0)
|
|
121
|
+
])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
e.displayCta ? (f(), p("div", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: "pb-sm border-0 cursor-default",
|
|
127
|
+
onClick: r[2] || (r[2] = x(() => {
|
|
128
|
+
}, ["stop"]))
|
|
129
|
+
}, [
|
|
130
|
+
s("div", N, [
|
|
131
|
+
s("a", {
|
|
132
|
+
href: e.ctaLink,
|
|
133
|
+
target: e.ctaTarget,
|
|
134
|
+
class: i(["btn btn-full", b(e.ctaColor, e.rounded)]),
|
|
135
|
+
onClick: r[1] || (r[1] = (t) => a(t))
|
|
136
|
+
}, B(e.ctaText), 11, V)
|
|
137
|
+
])
|
|
138
|
+
])) : v("", !0)
|
|
139
|
+
])
|
|
140
|
+
], 2));
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
const _ = (m, C) => {
|
|
144
|
+
const h = m.__vccOpts || m;
|
|
145
|
+
for (const [c, y] of C)
|
|
146
|
+
h[c] = y;
|
|
147
|
+
return h;
|
|
148
|
+
}, le = /* @__PURE__ */ _(W, [["__scopeId", "data-v-7bb0ad8b"]]), q = ["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", "crossorigin"], re = /* @__PURE__ */ w({
|
|
149
|
+
__name: "MclCardB",
|
|
150
|
+
props: {
|
|
151
|
+
title: {},
|
|
152
|
+
titleSize: { default: "md" },
|
|
153
|
+
titleColor: { default: "light-1" },
|
|
154
|
+
titleBlockColor: { default: "dark-4" },
|
|
155
|
+
borderColor: { default: "light-3" },
|
|
156
|
+
imageSource: {},
|
|
157
|
+
imageAlt: {},
|
|
158
|
+
imageCors: { default: "anonymous" },
|
|
159
|
+
displayGrayScale: { type: Boolean, default: !0 },
|
|
160
|
+
ctaAsLink: { type: Boolean, default: !1 },
|
|
161
|
+
ctaLink: { default: "#" },
|
|
162
|
+
ctaTarget: { default: "_self" },
|
|
163
|
+
rounded: { type: Boolean, default: !1 }
|
|
164
|
+
},
|
|
165
|
+
emits: ["card-click"],
|
|
166
|
+
setup(m, { emit: C }) {
|
|
167
|
+
const h = m;
|
|
168
|
+
L();
|
|
169
|
+
const c = C, y = (a, d) => {
|
|
170
|
+
const e = [o("BORDER", a)];
|
|
171
|
+
return d ? e.push("rounded-md") : e.push("rounded-sm"), e.join(" ");
|
|
172
|
+
}, g = (a) => a ? "[@media(hover:hover)]:grayscale peer-hover:grayscale-0" : "", k = (a, d, e) => [
|
|
173
|
+
o("H3", a),
|
|
174
|
+
o("TEXTCOLOR", d),
|
|
175
|
+
o("BGCOLOR", e)
|
|
176
|
+
].join(" "), b = (a) => {
|
|
177
|
+
const { title: d, ctaLink: e, ctaTarget: r, ctaAsLink: t } = h;
|
|
178
|
+
!t && a.preventDefault();
|
|
179
|
+
const l = {
|
|
180
|
+
title: d,
|
|
181
|
+
url: e,
|
|
182
|
+
target: r || "_self"
|
|
183
|
+
};
|
|
184
|
+
console.log(l), c("card-click", a, l);
|
|
185
|
+
};
|
|
186
|
+
return (a, d) => (f(), p("div", {
|
|
187
|
+
class: i(["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", y(a.borderColor, a.rounded)])
|
|
188
|
+
}, [
|
|
189
|
+
s("a", {
|
|
190
|
+
href: a.ctaLink,
|
|
191
|
+
target: a.ctaTarget,
|
|
192
|
+
onClick: d[0] || (d[0] = (e) => b(e))
|
|
193
|
+
}, [
|
|
194
|
+
s("div", F, [
|
|
195
|
+
s("h3", {
|
|
196
|
+
innerHTML: a.title,
|
|
197
|
+
class: i(["inline-block px-xs py-2xs mb-2xs pointer-events-none tracking-wide", k(a.titleSize, a.titleColor, a.titleBlockColor)])
|
|
198
|
+
}, null, 10, P),
|
|
199
|
+
T(a.$slots, "default")
|
|
200
|
+
]),
|
|
201
|
+
s("img", {
|
|
202
|
+
src: a.imageSource,
|
|
203
|
+
alt: a.imageAlt,
|
|
204
|
+
crossorigin: a.imageCors,
|
|
205
|
+
class: i(["relative z-10 object-cover aspect-[3/4] transition-all duration-200", g(a.displayGrayScale)])
|
|
206
|
+
}, null, 10, Y)
|
|
207
|
+
], 8, q)
|
|
208
|
+
], 2));
|
|
209
|
+
}
|
|
210
|
+
}), J = ["src", "alt", "crossorigin"], K = /* @__PURE__ */ w({
|
|
211
|
+
__name: "MclCardC",
|
|
212
|
+
props: {
|
|
213
|
+
imageSource: {},
|
|
214
|
+
imageAlt: {},
|
|
215
|
+
title: {},
|
|
216
|
+
titleSize: { default: "md" },
|
|
217
|
+
titleColor: { default: "dark-3" },
|
|
218
|
+
displayHighlight: { type: Boolean, default: !1 },
|
|
219
|
+
highlightColor: { default: "light-3" },
|
|
220
|
+
highlightOpacity: { default: 80 },
|
|
221
|
+
displayTitle: { type: Boolean, default: !1 },
|
|
222
|
+
cardColor: { default: "primary" },
|
|
223
|
+
imageCors: { default: "anonymous" }
|
|
224
|
+
},
|
|
225
|
+
emits: ["card-click"],
|
|
226
|
+
setup(m, { emit: C }) {
|
|
227
|
+
const h = m;
|
|
228
|
+
L();
|
|
229
|
+
const c = R(!1), y = C, g = S(() => {
|
|
230
|
+
const a = [o("BGCOLOR", h.cardColor)];
|
|
231
|
+
return c.value && a.push("flip-card"), a.join(" ");
|
|
232
|
+
}), k = (a, d, e, r, t) => {
|
|
233
|
+
const l = [
|
|
234
|
+
o("H3", a),
|
|
235
|
+
o("TEXTCOLOR", d)
|
|
236
|
+
];
|
|
237
|
+
return e && (l.push("px-xs py-2xs mb-2xs rounded"), l.push(o("BGCOLOR", r)), l.push(o("BGOPACITY", t))), l.join(" ");
|
|
238
|
+
}, b = (a) => {
|
|
239
|
+
a.preventDefault(), c.value && y("card-click", a), c.value = !0;
|
|
240
|
+
};
|
|
241
|
+
return (a, d) => (f(), p("div", {
|
|
242
|
+
class: i(["relative aspect-square card transition duration-[1600ms] max-h-[400px] overflow-hidden", g.value]),
|
|
243
|
+
onClick: b
|
|
244
|
+
}, [
|
|
245
|
+
s("img", {
|
|
246
|
+
src: a.imageSource,
|
|
247
|
+
alt: a.imageAlt,
|
|
248
|
+
class: i([
|
|
249
|
+
c.value ? "opacity-100" : "opacity-0",
|
|
250
|
+
"absolute inset-0 object-cover object-center transition-opacity delay-500 duration-[800ms] grayscale-0 hover:grayscale"
|
|
251
|
+
]),
|
|
252
|
+
crossorigin: a.imageCors
|
|
253
|
+
}, null, 10, J),
|
|
254
|
+
s("div", {
|
|
255
|
+
class: i([
|
|
256
|
+
c.value ? "cursor-pointer opacity-100" : "opacity-0",
|
|
257
|
+
"relative flex flex-col justify-end p-sm h-full transition delay-500 duration-[800ms]"
|
|
258
|
+
])
|
|
259
|
+
}, [
|
|
260
|
+
a.displayTitle ? (f(), p("h3", {
|
|
261
|
+
key: 0,
|
|
262
|
+
class: i([
|
|
263
|
+
"relative self-start",
|
|
264
|
+
k(
|
|
265
|
+
a.titleSize,
|
|
266
|
+
a.titleColor,
|
|
267
|
+
a.displayHighlight,
|
|
268
|
+
a.highlightColor,
|
|
269
|
+
a.highlightOpacity
|
|
270
|
+
)
|
|
271
|
+
])
|
|
272
|
+
}, [
|
|
273
|
+
s("span", null, B(a.title), 1)
|
|
274
|
+
], 2)) : v("", !0),
|
|
275
|
+
T(a.$slots, "card-body", {}, void 0, !0)
|
|
276
|
+
], 2)
|
|
277
|
+
], 2));
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
const oe = /* @__PURE__ */ _(K, [["__scopeId", "data-v-4f321931"]]), Q = { class: "flex flex-col rounded-md overflow-hidden" }, U = ["src", "crossorigin", "alt"], Z = ["href", "target"], ee = /* @__PURE__ */ w({
|
|
281
|
+
__name: "MclCardD",
|
|
282
|
+
props: {
|
|
283
|
+
displayImage: { type: Boolean, default: !0 },
|
|
284
|
+
imageSource: {},
|
|
285
|
+
imageAlt: { default: "" },
|
|
286
|
+
imageCors: { default: "anonymous" },
|
|
287
|
+
title: {},
|
|
288
|
+
titleSize: { default: "md" },
|
|
289
|
+
titleColor: { default: "dark-4" },
|
|
290
|
+
bgColor: { default: "light-1" },
|
|
291
|
+
displayHighlight: { type: Boolean, default: !0 },
|
|
292
|
+
highlightColor: { default: "primary" },
|
|
293
|
+
ctaText: { default: "Read more" },
|
|
294
|
+
ctaLink: {},
|
|
295
|
+
ctaLinkTarget: { default: "_self" },
|
|
296
|
+
ctaAsLink: { type: Boolean, default: !1 },
|
|
297
|
+
ctaButton: { type: Boolean, default: !1 },
|
|
298
|
+
ctaButtonColor: { default: "warning" },
|
|
299
|
+
ctaButtonBlock: { type: Boolean, default: !1 },
|
|
300
|
+
borderWidth: { default: 3 },
|
|
301
|
+
borderColor: { default: "light-3" },
|
|
302
|
+
gradient1: { default: "primary" },
|
|
303
|
+
gradient2: { default: "secondary" },
|
|
304
|
+
customColor: {}
|
|
305
|
+
},
|
|
306
|
+
emits: ["card-click"],
|
|
307
|
+
setup(m, { emit: C }) {
|
|
308
|
+
const h = {
|
|
309
|
+
primary: "from-primary",
|
|
310
|
+
secondary: "from-secondary",
|
|
311
|
+
success: "from-success",
|
|
312
|
+
info: "from-info",
|
|
313
|
+
warning: "from-warning",
|
|
314
|
+
danger: "from-danger",
|
|
315
|
+
"light-1": "from-light-1",
|
|
316
|
+
"light-2": "from-light-2",
|
|
317
|
+
"light-3": "from-light-3",
|
|
318
|
+
"light-4": "from-light-4",
|
|
319
|
+
"dark-1": "from-dark-1",
|
|
320
|
+
"dark-2": "from-dark-2",
|
|
321
|
+
"dark-3": "from-dark-3",
|
|
322
|
+
"dark-4": "from-dark-4",
|
|
323
|
+
black: "from-black",
|
|
324
|
+
white: "from-white",
|
|
325
|
+
transparent: "from-transparent"
|
|
326
|
+
}, c = {
|
|
327
|
+
primary: "via-primary",
|
|
328
|
+
secondary: "via-secondary",
|
|
329
|
+
success: "via-success",
|
|
330
|
+
info: "via-info",
|
|
331
|
+
warning: "via-warning",
|
|
332
|
+
danger: "via-danger",
|
|
333
|
+
"light-1": "via-light-1",
|
|
334
|
+
"light-2": "via-light-2",
|
|
335
|
+
"light-3": "via-light-3",
|
|
336
|
+
"light-4": "via-light-4",
|
|
337
|
+
"dark-1": "via-dark-1",
|
|
338
|
+
"dark-2": "via-dark-2",
|
|
339
|
+
"dark-3": "via-dark-3",
|
|
340
|
+
"dark-4": "via-dark-4",
|
|
341
|
+
black: "via-black",
|
|
342
|
+
white: "via-white",
|
|
343
|
+
transparent: "via-transparent"
|
|
344
|
+
}, y = {
|
|
345
|
+
primary: "to-primary",
|
|
346
|
+
secondary: "to-secondary",
|
|
347
|
+
success: "to-success",
|
|
348
|
+
info: "to-info",
|
|
349
|
+
warning: "to-warning",
|
|
350
|
+
danger: "to-danger",
|
|
351
|
+
"light-1": "to-light-1",
|
|
352
|
+
"light-2": "to-light-2",
|
|
353
|
+
"light-3": "to-light-3",
|
|
354
|
+
"light-4": "to-light-4",
|
|
355
|
+
"dark-1": "to-dark-1",
|
|
356
|
+
"dark-2": "to-dark-2",
|
|
357
|
+
"dark-3": "to-dark-3",
|
|
358
|
+
"dark-4": "to-dark-4",
|
|
359
|
+
black: "to-black",
|
|
360
|
+
white: "to-white",
|
|
361
|
+
transparent: "to-transparent"
|
|
362
|
+
}, g = m;
|
|
363
|
+
L();
|
|
364
|
+
const k = C, b = (t, l) => [
|
|
365
|
+
o("H2", t),
|
|
366
|
+
o("TEXTCOLOR", l)
|
|
367
|
+
].join(" "), a = (t, l, u) => {
|
|
368
|
+
const n = [], O = ["light-1", "light-2", "light-3", "light-4"];
|
|
369
|
+
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(" ");
|
|
370
|
+
}, d = S(() => ({
|
|
371
|
+
"--border-width": `${g.borderWidth}px`
|
|
372
|
+
})), e = S(() => {
|
|
373
|
+
const t = h[g.borderColor], l = c[g.gradient1], u = y[g.gradient2];
|
|
374
|
+
return [
|
|
375
|
+
o("BORDER", g.borderColor),
|
|
376
|
+
t,
|
|
377
|
+
l,
|
|
378
|
+
u
|
|
379
|
+
].join(" ");
|
|
380
|
+
}), r = (t) => {
|
|
381
|
+
const { title: l, ctaLink: u, ctaLinkTarget: n, ctaAsLink: O } = g, H = {
|
|
382
|
+
title: l,
|
|
383
|
+
url: u,
|
|
384
|
+
target: n || "_self"
|
|
385
|
+
};
|
|
386
|
+
!O && t.preventDefault(), k("card-click", t, H);
|
|
387
|
+
};
|
|
388
|
+
return (t, l) => (f(), p("div", {
|
|
389
|
+
class: i(["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]),
|
|
390
|
+
style: j(d.value)
|
|
391
|
+
}, [
|
|
392
|
+
s("div", Q, [
|
|
393
|
+
t.displayImage ? (f(), p("img", {
|
|
394
|
+
key: 0,
|
|
395
|
+
src: t.imageSource,
|
|
396
|
+
crossorigin: t.imageCors,
|
|
397
|
+
class: "object-cover object-top max-h-[200px]",
|
|
398
|
+
alt: t.imageAlt
|
|
399
|
+
}, null, 8, U)) : v("", !0),
|
|
400
|
+
s("div", {
|
|
401
|
+
class: i(["p-xs", A(o)("BGCOLOR", t.bgColor)])
|
|
402
|
+
}, [
|
|
403
|
+
s("h3", {
|
|
404
|
+
class: i(["mb-xs", b(t.titleSize, t.titleColor)])
|
|
405
|
+
}, B(t.title), 3),
|
|
406
|
+
t.displayHighlight ? (f(), p("div", {
|
|
407
|
+
key: 0,
|
|
408
|
+
class: i(["mb-xs h-3xs w-md", A(o)("BGCOLOR", t.highlightColor)])
|
|
409
|
+
}, null, 2)) : v("", !0),
|
|
410
|
+
s("div", null, [
|
|
411
|
+
T(t.$slots, "default", {}, void 0, !0)
|
|
412
|
+
]),
|
|
413
|
+
s("div", {
|
|
414
|
+
class: i(["mt-xs", { "mb-2xs": !t.ctaButton }])
|
|
415
|
+
}, [
|
|
416
|
+
s("a", {
|
|
417
|
+
href: t.ctaLink,
|
|
418
|
+
target: t.ctaLinkTarget,
|
|
419
|
+
class: i(a(t.ctaButton, t.ctaButtonColor, t.ctaButtonBlock)),
|
|
420
|
+
onClick: r
|
|
421
|
+
}, B(t.ctaText), 11, Z)
|
|
422
|
+
], 2)
|
|
423
|
+
], 2)
|
|
424
|
+
])
|
|
425
|
+
], 6));
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
const se = /* @__PURE__ */ _(ee, [["__scopeId", "data-v-09793bca"]]);
|
|
429
|
+
export {
|
|
430
|
+
le as MclCardA,
|
|
431
|
+
re as MclCardB,
|
|
432
|
+
oe as MclCardC,
|
|
433
|
+
se as MclCardD
|
|
434
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.content-height[data-v-7bb0ad8b]{height:calc(100% - 200px)}.perspective[data-v-4f321931]{perspective:1800px}.card[data-v-4f321931]{transform-style:preserve-3d;transform:rotateY(0);backface-visibility:hidden}.flip-card[data-v-4f321931]{transform:rotateY(360deg)}.card[data-v-09793bca]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);animation:bg-spin-09793bca 4s linear infinite}@keyframes bg-spin-09793bca{to{--border-angle: 360deg}}.card[data-v-09793bca]: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(p,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):(p=typeof globalThis<"u"?globalThis:p||self,e(p.MclCards={},p.Vue,p.ManguitoTheme))})(this,function(p,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 f=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}=f,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}=f;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))}}),F="",k=(h,g)=>{const f=h.__vccOpts||h;for(const[d,u]of g)f[d]=u;return f},M=k(z,[["__scopeId","data-v-7bb0ad8b"]]),_=["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"},H=["innerHTML"],R=["src","alt","crossorigin"],x=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 f=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}=f;!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",j,[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,H),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,R)],8,_)],2))}}),$=["src","alt","crossorigin"],D=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 f=h;e.useSlots();const d=e.ref(!1),u=g,m=e.computed(()=>{const l=[i("BGCOLOR",f.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,$),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))}}),Y="",G=k(D,[["__scopeId","data-v-4f321931"]]),I={class:"flex flex-col rounded-md overflow-hidden"},X=["src","crossorigin","alt"],q=["href","target"],v=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 f={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=f[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))}}),J="",P=k(v,[["__scopeId","data-v-09793bca"]]);p.MclCardA=M,p.MclCardB=x,p.MclCardC=G,p.MclCardD=P,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/mcl-cards",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "0.7.1",
|
|
4
|
+
"description": "card components based on @bobbykim/manguito-theme",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/mcl-cards.umd.cjs",
|
|
10
|
+
"module": "./dist/mcl-cards.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/mcl-cards.js",
|
|
15
|
+
"require": "./dist/mcl-cards.umd.cjs",
|
|
16
|
+
"types": "./dist/index.d.ts"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
7
19
|
"scripts": {
|
|
8
|
-
"build": "
|
|
20
|
+
"build": "vite build"
|
|
9
21
|
},
|
|
10
22
|
"author": {
|
|
11
23
|
"name": "Bobby Kim",
|
|
@@ -21,7 +33,17 @@
|
|
|
21
33
|
},
|
|
22
34
|
"license": "MIT",
|
|
23
35
|
"dependencies": {
|
|
24
|
-
"@bobbykim/manguito-theme": "
|
|
36
|
+
"@bobbykim/manguito-theme": "0.20.0",
|
|
37
|
+
"vue": "^3.3.10"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@vitejs/plugin-vue": "^4.5.2",
|
|
41
|
+
"sass": "^1.69.5",
|
|
42
|
+
"typescript": "^5.3.3",
|
|
43
|
+
"vite": "^4.5.1",
|
|
44
|
+
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
45
|
+
"vite-plugin-dts": "^3.8.3",
|
|
46
|
+
"vue-tsc": "^1.8.25"
|
|
25
47
|
},
|
|
26
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "2e677770b8628a9616237cd3812af2dcb20ee5bb"
|
|
27
49
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [0.6.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-cards@0.5.0...@bobbykim/mcl-cards@0.6.0) (2024-04-01)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* ready for production ([4e2fc04](https://github.com/bobbykim89/manguito-component-library/commit/4e2fc048edd67791b4e917e0a764f301d4c610cb))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
# [0.5.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-cards@0.3.0...@bobbykim/mcl-cards@0.5.0) (2024-03-24)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Features
|
|
21
|
-
|
|
22
|
-
* build and release ([a372086](https://github.com/bobbykim89/manguito-component-library/commit/a3720861fb40dd6ec1d0e3dda1f06e2479967432))
|
|
23
|
-
* code refactor ([8a025e7](https://github.com/bobbykim89/manguito-component-library/commit/8a025e7cf870ff3dd0cb35878a08793e99ec5cef))
|
|
24
|
-
* **components/*:** prepublish build ([c8eb95a](https://github.com/bobbykim89/manguito-component-library/commit/c8eb95a0ede6727bf183d2e9ad634ae64af1411d))
|
|
25
|
-
* **mcl-header:** move deprecated items to deprecated folder in root dir, update configs, init mcl-header-b component ([19aa842](https://github.com/bobbykim89/manguito-component-library/commit/19aa842faa7f1594f7be030b97d5093014efe7cb))
|
|
26
|
-
* tsconfig update, slots and emits update ([c30ff80](https://github.com/bobbykim89/manguito-component-library/commit/c30ff804c961d205ac097e20cd51285a15ca8966))
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# [0.4.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-cards@0.3.0...@bobbykim/mcl-cards@0.4.0) (2024-03-21)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### Features
|
|
36
|
-
|
|
37
|
-
* code refactor ([8a025e7](https://github.com/bobbykim89/manguito-component-library/commit/8a025e7cf870ff3dd0cb35878a08793e99ec5cef))
|
|
38
|
-
* **mcl-header:** move deprecated items to deprecated folder in root dir, update configs, init mcl-header-b component ([19aa842](https://github.com/bobbykim89/manguito-component-library/commit/19aa842faa7f1594f7be030b97d5093014efe7cb))
|
|
39
|
-
* tsconfig update, slots and emits update ([c30ff80](https://github.com/bobbykim89/manguito-component-library/commit/c30ff804c961d205ac097e20cd51285a15ca8966))
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
# [0.3.0](https://github.com/bobbykim89/manguito-component-library/compare/@bobbykim/mcl-cards@0.2.0...@bobbykim/mcl-cards@0.3.0) (2024-02-27)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Features
|
|
49
|
-
|
|
50
|
-
* **/components/**/README.md,/deprecated:** update readme files, move deprecated packages to deprecated folder ([c0f8f7d](https://github.com/bobbykim89/manguito-component-library/commit/c0f8f7df158b8fcd99b4e3d191e02e3c8a9c144d))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
# 0.2.0 (2024-02-27)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Features
|
|
60
|
-
|
|
61
|
-
* **.storybook,mcl-cards:** add opengraph configuration, add mcl-cards components ([13a255c](https://github.com/bobbykim89/manguito-component-library/commit/13a255c26048ccc56ed837ebac0281ee23aaa03e))
|
|
62
|
-
* **manguito-theme,mcl-cards,mcl-header,mcl-footer,mcl-carousel:** add vueuse as one of dependencies, update code to make them ssr friendly ([119a327](https://github.com/bobbykim89/manguito-component-library/commit/119a327adf1ca9866e6ac063bce5acd4790db612))
|
|
63
|
-
* **mcl-card-d:** update gradient handling method ([4adcd5d](https://github.com/bobbykim89/manguito-component-library/commit/4adcd5d8522a761485ff09e3334ed3cd2bb50ac1))
|
|
64
|
-
* **mcl-card-d:** update prop name, add story file ([1c8e5a1](https://github.com/bobbykim89/manguito-component-library/commit/1c8e5a1fde09070e5366155b0d899cbc5d5348a4))
|
|
65
|
-
* **mcl-cards:** update prop name, add story files ([d3b4609](https://github.com/bobbykim89/manguito-component-library/commit/d3b460968bfd4cb8213e29b16da8f615477e4487))
|
|
66
|
-
* **stories/*:** ran package:build to build type declaration, move deprecated story files into deprecated folder ([ffc487d](https://github.com/bobbykim89/manguito-component-library/commit/ffc487dbcc093be7a3ccfeae98c5e10e8372a0e3))
|
|
67
|
-
* **stories:** add story for mcl-card-b ([7470f0d](https://github.com/bobbykim89/manguito-component-library/commit/7470f0ddee5b3ba3c9f5c37e52bd37f6a1a75202))
|
package/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import MclCardA from './lib/mcl-card-a/MclCardA.vue';
|
|
2
|
-
import MclCardB from './lib/mcl-card-b/MclCardB.vue';
|
|
3
|
-
import MclCardC from './lib/mcl-card-c/MclCardC.vue';
|
|
4
|
-
import MclCardD from './lib/mcl-card-d/MclCardD.vue';
|
|
5
|
-
export * from './lib/common/index.types';
|
|
6
|
-
export { MclCardA, MclCardB, MclCardC, MclCardD };
|
package/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import MclCardA from './lib/mcl-card-a/MclCardA.vue';
|
|
2
|
-
import MclCardB from './lib/mcl-card-b/MclCardB.vue';
|
|
3
|
-
import MclCardC from './lib/mcl-card-c/MclCardC.vue';
|
|
4
|
-
import MclCardD from './lib/mcl-card-d/MclCardD.vue';
|
|
5
|
-
export * from './lib/common/index.types';
|
|
6
|
-
export { MclCardA, MclCardB, MclCardC, MclCardD };
|
package/index.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import MclCardA from './lib/mcl-card-a/MclCardA.vue'
|
|
2
|
-
import MclCardB from './lib/mcl-card-b/MclCardB.vue'
|
|
3
|
-
import MclCardC from './lib/mcl-card-c/MclCardC.vue'
|
|
4
|
-
import MclCardD from './lib/mcl-card-d/MclCardD.vue'
|
|
5
|
-
|
|
6
|
-
export * from './lib/common/index.types'
|
|
7
|
-
export { MclCardA, MclCardB, MclCardC, MclCardD }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|