@bobbykim/mcl-cards 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +102 -164
- package/dist/mcl-cards.js +1628 -224
- package/dist/mcl-cards.umd.cjs +2 -2
- package/package.json +3 -3
package/dist/mcl-cards.js
CHANGED
|
@@ -1,10 +1,1414 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.perspective[data-v-
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.perspective[data-v-f748c495]{-webkit-perspective:1800px;perspective:1800px}.card[data-v-f748c495]{-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transform:rotateY(0deg);transform:rotateY(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.flip-card[data-v-f748c495]{-webkit-transform:rotateY(360deg);transform:rotateY(360deg)}.card[data-v-09214c6f]{background-size:cover;background-position:center center;background-repeat:no-repeat;padding:var(--border-width);background:conic-gradient(from var(--border-angle, 0deg),var(--tw-gradient-from) var(--tw-gradient-from-position),var(--tw-gradient-via),var(--tw-gradient-to));animation:bg-spin-09214c6f 4s linear infinite}@keyframes bg-spin-09214c6f{0%{--border-angle: 0deg}to{--border-angle: 360deg}}.card[data-v-09214c6f]:hover{animation-play-state:paused}@property --border-angle{syntax: "<angle>"; inherits: false; initial-value: 0deg;}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
import { defineComponent as w, ref as I, onMounted as G, useSlots as R, computed as p, openBlock as x, createElementBlock as C, normalizeClass as c, createElementVNode as n, createCommentVNode as v, unref as A, withModifiers as E, renderSlot as V, toDisplayString as O, normalizeStyle as W } from "vue";
|
|
3
|
+
import d from "@bobbykim/manguito-theme";
|
|
4
|
+
class N {
|
|
5
|
+
// body text class
|
|
6
|
+
bodyText = {
|
|
7
|
+
xs: "text-xs",
|
|
8
|
+
sm: "text-sm",
|
|
9
|
+
md: "text-md",
|
|
10
|
+
lg: "text-lg",
|
|
11
|
+
xl: "text-xl"
|
|
12
|
+
};
|
|
13
|
+
// font weight class
|
|
14
|
+
fontweight = {
|
|
15
|
+
light: "font-light",
|
|
16
|
+
normal: "font-normal",
|
|
17
|
+
bold: "font-bold"
|
|
18
|
+
};
|
|
19
|
+
// text alignment
|
|
20
|
+
textAlign = {
|
|
21
|
+
left: "text-left",
|
|
22
|
+
center: "text-center",
|
|
23
|
+
right: "text-right"
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
class H {
|
|
27
|
+
// Border width class
|
|
28
|
+
borderWidth = {
|
|
29
|
+
1: "border-[1px]",
|
|
30
|
+
2: "border-[2px]",
|
|
31
|
+
3: "border-[3px]",
|
|
32
|
+
4: "border-[4px]",
|
|
33
|
+
5: "border-[5px]",
|
|
34
|
+
6: "border-[6px]",
|
|
35
|
+
7: "border-[7px]",
|
|
36
|
+
8: "border-[8px]",
|
|
37
|
+
9: "border-[9px]",
|
|
38
|
+
10: "border-[10px]",
|
|
39
|
+
11: "border-[11px]",
|
|
40
|
+
12: "border-[12px]"
|
|
41
|
+
};
|
|
42
|
+
borderXWidth = {
|
|
43
|
+
1: "border-x-[1px]",
|
|
44
|
+
2: "border-x-[2px]",
|
|
45
|
+
3: "border-x-[3px]",
|
|
46
|
+
4: "border-x-[4px]",
|
|
47
|
+
5: "border-x-[5px]",
|
|
48
|
+
6: "border-x-[6px]",
|
|
49
|
+
7: "border-x-[7px]",
|
|
50
|
+
8: "border-x-[8px]",
|
|
51
|
+
9: "border-x-[9px]",
|
|
52
|
+
10: "border-x-[10px]",
|
|
53
|
+
11: "border-x-[11px]",
|
|
54
|
+
12: "border-x-[12px]"
|
|
55
|
+
};
|
|
56
|
+
borderYWidth = {
|
|
57
|
+
1: "border-y-[1px]",
|
|
58
|
+
2: "border-y-[2px]",
|
|
59
|
+
3: "border-y-[3px]",
|
|
60
|
+
4: "border-y-[4px]",
|
|
61
|
+
5: "border-y-[5px]",
|
|
62
|
+
6: "border-y-[6px]",
|
|
63
|
+
7: "border-y-[7px]",
|
|
64
|
+
8: "border-y-[8px]",
|
|
65
|
+
9: "border-y-[9px]",
|
|
66
|
+
10: "border-y-[10px]",
|
|
67
|
+
11: "border-y-[11px]",
|
|
68
|
+
12: "border-y-[12px]"
|
|
69
|
+
};
|
|
70
|
+
borderTopWidth = {
|
|
71
|
+
1: "border-t-[1px]",
|
|
72
|
+
2: "border-t-[2px]",
|
|
73
|
+
3: "border-t-[3px]",
|
|
74
|
+
4: "border-t-[4px]",
|
|
75
|
+
5: "border-t-[5px]",
|
|
76
|
+
6: "border-t-[6px]",
|
|
77
|
+
7: "border-t-[7px]",
|
|
78
|
+
8: "border-t-[8px]",
|
|
79
|
+
9: "border-t-[9px]",
|
|
80
|
+
10: "border-t-[10px]",
|
|
81
|
+
11: "border-t-[11px]",
|
|
82
|
+
12: "border-t-[12px]"
|
|
83
|
+
};
|
|
84
|
+
borderBottomWidth = {
|
|
85
|
+
1: "border-b-[1px]",
|
|
86
|
+
2: "border-b-[2px]",
|
|
87
|
+
3: "border-b-[3px]",
|
|
88
|
+
4: "border-b-[4px]",
|
|
89
|
+
5: "border-b-[5px]",
|
|
90
|
+
6: "border-b-[6px]",
|
|
91
|
+
7: "border-b-[7px]",
|
|
92
|
+
8: "border-b-[8px]",
|
|
93
|
+
9: "border-b-[9px]",
|
|
94
|
+
10: "border-b-[10px]",
|
|
95
|
+
11: "border-b-[11px]",
|
|
96
|
+
12: "border-b-[12px]"
|
|
97
|
+
};
|
|
98
|
+
borderLeftWidth = {
|
|
99
|
+
1: "border-l-[1px]",
|
|
100
|
+
2: "border-l-[2px]",
|
|
101
|
+
3: "border-l-[3px]",
|
|
102
|
+
4: "border-l-[4px]",
|
|
103
|
+
5: "border-l-[5px]",
|
|
104
|
+
6: "border-l-[6px]",
|
|
105
|
+
7: "border-l-[7px]",
|
|
106
|
+
8: "border-l-[8px]",
|
|
107
|
+
9: "border-l-[9px]",
|
|
108
|
+
10: "border-l-[10px]",
|
|
109
|
+
11: "border-l-[11px]",
|
|
110
|
+
12: "border-l-[12px]"
|
|
111
|
+
};
|
|
112
|
+
borderRightWidth = {
|
|
113
|
+
1: "border-r-[1px]",
|
|
114
|
+
2: "border-r-[2px]",
|
|
115
|
+
3: "border-r-[3px]",
|
|
116
|
+
4: "border-r-[4px]",
|
|
117
|
+
5: "border-r-[5px]",
|
|
118
|
+
6: "border-r-[6px]",
|
|
119
|
+
7: "border-r-[7px]",
|
|
120
|
+
8: "border-r-[8px]",
|
|
121
|
+
9: "border-r-[9px]",
|
|
122
|
+
10: "border-r-[10px]",
|
|
123
|
+
11: "border-r-[11px]",
|
|
124
|
+
12: "border-r-[12px]"
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
class M {
|
|
128
|
+
// bg color class
|
|
129
|
+
bgColor = {
|
|
130
|
+
primary: "bg-primary",
|
|
131
|
+
secondary: "bg-secondary",
|
|
132
|
+
success: "bg-success",
|
|
133
|
+
danger: "bg-danger",
|
|
134
|
+
info: "bg-info",
|
|
135
|
+
warning: "bg-warning",
|
|
136
|
+
"light-1": "bg-light-1",
|
|
137
|
+
"light-2": "bg-light-2",
|
|
138
|
+
"light-3": "bg-light-3",
|
|
139
|
+
"light-4": "bg-light-4",
|
|
140
|
+
"dark-1": "bg-dark-1",
|
|
141
|
+
"dark-2": "bg-dark-2",
|
|
142
|
+
"dark-3": "bg-dark-3",
|
|
143
|
+
"dark-4": "bg-dark-4",
|
|
144
|
+
black: "bg-black",
|
|
145
|
+
white: "bg-white",
|
|
146
|
+
transparent: "bg-transparent"
|
|
147
|
+
};
|
|
148
|
+
// hover: bg color class
|
|
149
|
+
hoverBgColor = {
|
|
150
|
+
primary: "hover:bg-primary",
|
|
151
|
+
secondary: "hover:bg-secondary",
|
|
152
|
+
success: "hover:bg-success",
|
|
153
|
+
danger: "hover:bg-danger",
|
|
154
|
+
info: "hover:bg-info",
|
|
155
|
+
warning: "hover:bg-warning",
|
|
156
|
+
"light-1": "hover:bg-light-1",
|
|
157
|
+
"light-2": "hover:bg-light-2",
|
|
158
|
+
"light-3": "hover:bg-light-3",
|
|
159
|
+
"light-4": "hover:bg-light-4",
|
|
160
|
+
"dark-1": "hover:bg-dark-1",
|
|
161
|
+
"dark-2": "hover:bg-dark-2",
|
|
162
|
+
"dark-3": "hover:bg-dark-3",
|
|
163
|
+
"dark-4": "hover:bg-dark-4",
|
|
164
|
+
black: "hover:bg-black",
|
|
165
|
+
white: "hover:bg-white",
|
|
166
|
+
transparent: "hover:bg-transparent"
|
|
167
|
+
};
|
|
168
|
+
// focus: bg color class
|
|
169
|
+
focusBgColor = {
|
|
170
|
+
primary: "focus:bg-primary",
|
|
171
|
+
secondary: "focus:bg-secondary",
|
|
172
|
+
success: "focus:bg-success",
|
|
173
|
+
danger: "focus:bg-danger",
|
|
174
|
+
info: "focus:bg-info",
|
|
175
|
+
warning: "focus:bg-warning",
|
|
176
|
+
"light-1": "focus:bg-light-1",
|
|
177
|
+
"light-2": "focus:bg-light-2",
|
|
178
|
+
"light-3": "focus:bg-light-3",
|
|
179
|
+
"light-4": "focus:bg-light-4",
|
|
180
|
+
"dark-1": "focus:bg-dark-1",
|
|
181
|
+
"dark-2": "focus:bg-dark-2",
|
|
182
|
+
"dark-3": "focus:bg-dark-3",
|
|
183
|
+
"dark-4": "focus:bg-dark-4",
|
|
184
|
+
black: "focus:bg-black",
|
|
185
|
+
white: "focus:bg-white",
|
|
186
|
+
transparent: "focus:bg-transparent"
|
|
187
|
+
};
|
|
188
|
+
// ::before bg color class
|
|
189
|
+
beforeBgColor = {
|
|
190
|
+
primary: "before:bg-primary",
|
|
191
|
+
secondary: "before:bg-secondary",
|
|
192
|
+
success: "before:bg-success",
|
|
193
|
+
danger: "before:bg-danger",
|
|
194
|
+
info: "before:bg-info",
|
|
195
|
+
warning: "before:bg-warning",
|
|
196
|
+
"light-1": "before:bg-light-1",
|
|
197
|
+
"light-2": "before:bg-light-2",
|
|
198
|
+
"light-3": "before:bg-light-3",
|
|
199
|
+
"light-4": "before:bg-light-4",
|
|
200
|
+
"dark-1": "before:bg-dark-1",
|
|
201
|
+
"dark-2": "before:bg-dark-2",
|
|
202
|
+
"dark-3": "before:bg-dark-3",
|
|
203
|
+
"dark-4": "before:bg-dark-4",
|
|
204
|
+
black: "before:bg-black",
|
|
205
|
+
white: "before:bg-white",
|
|
206
|
+
transparent: "before:bg-transparent"
|
|
207
|
+
};
|
|
208
|
+
// ::after bg color class
|
|
209
|
+
afterBgColor = {
|
|
210
|
+
primary: "after:bg-primary",
|
|
211
|
+
secondary: "after:bg-secondary",
|
|
212
|
+
success: "after:bg-success",
|
|
213
|
+
danger: "after:bg-danger",
|
|
214
|
+
info: "after:bg-info",
|
|
215
|
+
warning: "after:bg-warning",
|
|
216
|
+
"light-1": "after:bg-light-1",
|
|
217
|
+
"light-2": "after:bg-light-2",
|
|
218
|
+
"light-3": "after:bg-light-3",
|
|
219
|
+
"light-4": "after:bg-light-4",
|
|
220
|
+
"dark-1": "after:bg-dark-1",
|
|
221
|
+
"dark-2": "after:bg-dark-2",
|
|
222
|
+
"dark-3": "after:bg-dark-3",
|
|
223
|
+
"dark-4": "after:bg-dark-4",
|
|
224
|
+
black: "after:bg-black",
|
|
225
|
+
white: "after:bg-white",
|
|
226
|
+
transparent: "after:bg-transparent"
|
|
227
|
+
};
|
|
228
|
+
// active:bg color class
|
|
229
|
+
bgActiveColor = {
|
|
230
|
+
primary: "active:bg-primary",
|
|
231
|
+
secondary: "active:bg-secondary",
|
|
232
|
+
success: "active:bg-success",
|
|
233
|
+
danger: "active:bg-danger",
|
|
234
|
+
info: "active:bg-info",
|
|
235
|
+
warning: "active:bg-warning",
|
|
236
|
+
"light-1": "active:bg-light-1",
|
|
237
|
+
"light-2": "active:bg-light-2",
|
|
238
|
+
"light-3": "active:bg-light-3",
|
|
239
|
+
"light-4": "active:bg-light-4",
|
|
240
|
+
"dark-1": "active:bg-dark-1",
|
|
241
|
+
"dark-2": "active:bg-dark-2",
|
|
242
|
+
"dark-3": "active:bg-dark-3",
|
|
243
|
+
"dark-4": "active:bg-dark-4",
|
|
244
|
+
black: "active:bg-black",
|
|
245
|
+
white: "active:bg-white",
|
|
246
|
+
transparent: "active:bg-transparent"
|
|
247
|
+
};
|
|
248
|
+
// text color class
|
|
249
|
+
textColor = {
|
|
250
|
+
primary: "text-primary",
|
|
251
|
+
secondary: "text-secondary",
|
|
252
|
+
success: "text-success",
|
|
253
|
+
danger: "text-danger",
|
|
254
|
+
info: "text-info",
|
|
255
|
+
warning: "text-warning",
|
|
256
|
+
"light-1": "text-light-1",
|
|
257
|
+
"light-2": "text-light-2",
|
|
258
|
+
"light-3": "text-light-3",
|
|
259
|
+
"light-4": "text-light-4",
|
|
260
|
+
"dark-1": "text-dark-1",
|
|
261
|
+
"dark-2": "text-dark-2",
|
|
262
|
+
"dark-3": "text-dark-3",
|
|
263
|
+
"dark-4": "text-dark-4",
|
|
264
|
+
black: "text-black",
|
|
265
|
+
white: "text-white",
|
|
266
|
+
transparent: "text-transparent"
|
|
267
|
+
};
|
|
268
|
+
// hover text color class
|
|
269
|
+
hoverTextColor = {
|
|
270
|
+
primary: "hover:text-primary",
|
|
271
|
+
secondary: "hover:text-secondary",
|
|
272
|
+
success: "hover:text-success",
|
|
273
|
+
danger: "hover:text-danger",
|
|
274
|
+
info: "hover:text-info",
|
|
275
|
+
warning: "hover:text-warning",
|
|
276
|
+
"light-1": "hover:text-light-1",
|
|
277
|
+
"light-2": "hover:text-light-2",
|
|
278
|
+
"light-3": "hover:text-light-3",
|
|
279
|
+
"light-4": "hover:text-light-4",
|
|
280
|
+
"dark-1": "hover:text-dark-1",
|
|
281
|
+
"dark-2": "hover:text-dark-2",
|
|
282
|
+
"dark-3": "hover:text-dark-3",
|
|
283
|
+
"dark-4": "hover:text-dark-4",
|
|
284
|
+
black: "hover:text-black",
|
|
285
|
+
white: "hover:text-white",
|
|
286
|
+
transparent: "hover:text-transparent"
|
|
287
|
+
};
|
|
288
|
+
// focus text color class
|
|
289
|
+
focusTextColor = {
|
|
290
|
+
primary: "focus:text-primary",
|
|
291
|
+
secondary: "focus:text-secondary",
|
|
292
|
+
success: "focus:text-success",
|
|
293
|
+
danger: "focus:text-danger",
|
|
294
|
+
info: "focus:text-info",
|
|
295
|
+
warning: "focus:text-warning",
|
|
296
|
+
"light-1": "focus:text-light-1",
|
|
297
|
+
"light-2": "focus:text-light-2",
|
|
298
|
+
"light-3": "focus:text-light-3",
|
|
299
|
+
"light-4": "focus:text-light-4",
|
|
300
|
+
"dark-1": "focus:text-dark-1",
|
|
301
|
+
"dark-2": "focus:text-dark-2",
|
|
302
|
+
"dark-3": "focus:text-dark-3",
|
|
303
|
+
"dark-4": "focus:text-dark-4",
|
|
304
|
+
black: "focus:text-black",
|
|
305
|
+
white: "focus:text-white",
|
|
306
|
+
transparent: "focus:text-transparent"
|
|
307
|
+
};
|
|
308
|
+
// disabled text color class
|
|
309
|
+
disabledTextColor = {
|
|
310
|
+
primary: "disabled:text-primary",
|
|
311
|
+
secondary: "disabled:text-secondary",
|
|
312
|
+
success: "disabled:text-success",
|
|
313
|
+
danger: "disabled:text-danger",
|
|
314
|
+
info: "disabled:text-info",
|
|
315
|
+
warning: "disabled:text-warning",
|
|
316
|
+
"light-1": "disabled:text-light-1",
|
|
317
|
+
"light-2": "disabled:text-light-2",
|
|
318
|
+
"light-3": "disabled:text-light-3",
|
|
319
|
+
"light-4": "disabled:text-light-4",
|
|
320
|
+
"dark-1": "disabled:text-dark-1",
|
|
321
|
+
"dark-2": "disabled:text-dark-2",
|
|
322
|
+
"dark-3": "disabled:text-dark-3",
|
|
323
|
+
"dark-4": "disabled:text-dark-4",
|
|
324
|
+
black: "disabled:text-black",
|
|
325
|
+
white: "disabled:text-white",
|
|
326
|
+
transparent: "disabled:text-transparent"
|
|
327
|
+
};
|
|
328
|
+
// SVG fill color class
|
|
329
|
+
svgFillColor = {
|
|
330
|
+
primary: "fill-primary",
|
|
331
|
+
secondary: "fill-secondary",
|
|
332
|
+
success: "fill-success",
|
|
333
|
+
danger: "fill-danger",
|
|
334
|
+
info: "fill-info",
|
|
335
|
+
warning: "fill-warning",
|
|
336
|
+
"light-1": "fill-light-1",
|
|
337
|
+
"light-2": "fill-light-2",
|
|
338
|
+
"light-3": "fill-light-3",
|
|
339
|
+
"light-4": "fill-light-4",
|
|
340
|
+
"dark-1": "fill-dark-1",
|
|
341
|
+
"dark-2": "fill-dark-2",
|
|
342
|
+
"dark-3": "fill-dark-3",
|
|
343
|
+
"dark-4": "fill-dark-4",
|
|
344
|
+
black: "fill-black",
|
|
345
|
+
white: "fill-white",
|
|
346
|
+
transparent: "fill-transparent"
|
|
347
|
+
};
|
|
348
|
+
// ring color class
|
|
349
|
+
ringColor = {
|
|
350
|
+
primary: "ring-primary",
|
|
351
|
+
secondary: "ring-secondary",
|
|
352
|
+
success: "ring-success",
|
|
353
|
+
danger: "ring-danger",
|
|
354
|
+
info: "ring-info",
|
|
355
|
+
warning: "ring-warning",
|
|
356
|
+
"light-1": "ring-light-1",
|
|
357
|
+
"light-2": "ring-light-2",
|
|
358
|
+
"light-3": "ring-light-3",
|
|
359
|
+
"light-4": "ring-light-4",
|
|
360
|
+
"dark-1": "ring-dark-1",
|
|
361
|
+
"dark-2": "ring-dark-2",
|
|
362
|
+
"dark-3": "ring-dark-3",
|
|
363
|
+
"dark-4": "ring-dark-4",
|
|
364
|
+
black: "ring-black",
|
|
365
|
+
white: "ring-white",
|
|
366
|
+
transparent: "ring-transparent"
|
|
367
|
+
};
|
|
368
|
+
// focus:ring color class
|
|
369
|
+
ringFocusColor = {
|
|
370
|
+
primary: "focus:ring-primary",
|
|
371
|
+
secondary: "focus:ring-secondary",
|
|
372
|
+
success: "focus:ring-success",
|
|
373
|
+
danger: "focus:ring-danger",
|
|
374
|
+
info: "focus:ring-info",
|
|
375
|
+
warning: "focus:ring-warning",
|
|
376
|
+
"light-1": "focus:ring-light-1",
|
|
377
|
+
"light-2": "focus:ring-light-2",
|
|
378
|
+
"light-3": "focus:ring-light-3",
|
|
379
|
+
"light-4": "focus:ring-light-4",
|
|
380
|
+
"dark-1": "focus:ring-dark-1",
|
|
381
|
+
"dark-2": "focus:ring-dark-2",
|
|
382
|
+
"dark-3": "focus:ring-dark-3",
|
|
383
|
+
"dark-4": "focus:ring-dark-4",
|
|
384
|
+
black: "focus:ring-black",
|
|
385
|
+
white: "focus:ring-white",
|
|
386
|
+
transparent: "focus:ring-transparent"
|
|
387
|
+
};
|
|
388
|
+
// active:ring color class
|
|
389
|
+
ringActiveColor = {
|
|
390
|
+
primary: "active:ring-primary",
|
|
391
|
+
secondary: "active:ring-secondary",
|
|
392
|
+
success: "active:ring-success",
|
|
393
|
+
danger: "active:ring-danger",
|
|
394
|
+
info: "active:ring-info",
|
|
395
|
+
warning: "active:ring-warning",
|
|
396
|
+
"light-1": "active:ring-light-1",
|
|
397
|
+
"light-2": "active:ring-light-2",
|
|
398
|
+
"light-3": "active:ring-light-3",
|
|
399
|
+
"light-4": "active:ring-light-4",
|
|
400
|
+
"dark-1": "active:ring-dark-1",
|
|
401
|
+
"dark-2": "active:ring-dark-2",
|
|
402
|
+
"dark-3": "active:ring-dark-3",
|
|
403
|
+
"dark-4": "active:ring-dark-4",
|
|
404
|
+
black: "active:ring-black",
|
|
405
|
+
white: "active:ring-white",
|
|
406
|
+
transparent: "active:ring-transparent"
|
|
407
|
+
};
|
|
408
|
+
// ring-offset color class
|
|
409
|
+
ringOffsetColor = {
|
|
410
|
+
primary: "ring-offset-primary",
|
|
411
|
+
secondary: "ring-offset-secondary",
|
|
412
|
+
success: "ring-offset-success",
|
|
413
|
+
danger: "ring-offset-danger",
|
|
414
|
+
info: "ring-offset-info",
|
|
415
|
+
warning: "ring-offset-warning",
|
|
416
|
+
"light-1": "ring-offset-light-1",
|
|
417
|
+
"light-2": "ring-offset-light-2",
|
|
418
|
+
"light-3": "ring-offset-light-3",
|
|
419
|
+
"light-4": "ring-offset-light-4",
|
|
420
|
+
"dark-1": "ring-offset-dark-1",
|
|
421
|
+
"dark-2": "ring-offset-dark-2",
|
|
422
|
+
"dark-3": "ring-offset-dark-3",
|
|
423
|
+
"dark-4": "ring-offset-dark-4",
|
|
424
|
+
black: "ring-offset-black",
|
|
425
|
+
white: "ring-offset-white",
|
|
426
|
+
transparent: "ring-offset-transparent"
|
|
427
|
+
};
|
|
428
|
+
// outline class
|
|
429
|
+
outlineColor = {
|
|
430
|
+
primary: "outline-primary",
|
|
431
|
+
secondary: "outline-secondary",
|
|
432
|
+
success: "outline-success",
|
|
433
|
+
danger: "outline-danger",
|
|
434
|
+
info: "outline-info",
|
|
435
|
+
warning: "outline-warning",
|
|
436
|
+
"light-1": "outline-light-1",
|
|
437
|
+
"light-2": "outline-light-2",
|
|
438
|
+
"light-3": "outline-light-3",
|
|
439
|
+
"light-4": "outline-light-4",
|
|
440
|
+
"dark-1": "outline-dark-1",
|
|
441
|
+
"dark-2": "outline-dark-2",
|
|
442
|
+
"dark-3": "outline-dark-3",
|
|
443
|
+
"dark-4": "outline-dark-4",
|
|
444
|
+
black: "outline-black",
|
|
445
|
+
white: "outline-white",
|
|
446
|
+
transparent: "outline-transparent"
|
|
447
|
+
};
|
|
448
|
+
// focus:outline class
|
|
449
|
+
focusOutlineColor = {
|
|
450
|
+
primary: "focus:outline-primary",
|
|
451
|
+
secondary: "focus:outline-secondary",
|
|
452
|
+
success: "focus:outline-success",
|
|
453
|
+
danger: "focus:outline-danger",
|
|
454
|
+
info: "focus:outline-info",
|
|
455
|
+
warning: "focus:outline-warning",
|
|
456
|
+
"light-1": "focus:outline-light-1",
|
|
457
|
+
"light-2": "focus:outline-light-2",
|
|
458
|
+
"light-3": "focus:outline-light-3",
|
|
459
|
+
"light-4": "focus:outline-light-4",
|
|
460
|
+
"dark-1": "focus:outline-dark-1",
|
|
461
|
+
"dark-2": "focus:outline-dark-2",
|
|
462
|
+
"dark-3": "focus:outline-dark-3",
|
|
463
|
+
"dark-4": "focus:outline-dark-4",
|
|
464
|
+
black: "focus:outline-black",
|
|
465
|
+
white: "focus:outline-white",
|
|
466
|
+
transparent: "focus:outline-transparent"
|
|
467
|
+
};
|
|
468
|
+
// active:outline class
|
|
469
|
+
activeOutlineColor = {
|
|
470
|
+
primary: "active:outline-primary",
|
|
471
|
+
secondary: "active:outline-secondary",
|
|
472
|
+
success: "active:outline-success",
|
|
473
|
+
danger: "active:outline-danger",
|
|
474
|
+
info: "active:outline-info",
|
|
475
|
+
warning: "active:outline-warning",
|
|
476
|
+
"light-1": "active:outline-light-1",
|
|
477
|
+
"light-2": "active:outline-light-2",
|
|
478
|
+
"light-3": "active:outline-light-3",
|
|
479
|
+
"light-4": "active:outline-light-4",
|
|
480
|
+
"dark-1": "active:outline-dark-1",
|
|
481
|
+
"dark-2": "active:outline-dark-2",
|
|
482
|
+
"dark-3": "active:outline-dark-3",
|
|
483
|
+
"dark-4": "active:outline-dark-4",
|
|
484
|
+
black: "active:outline-black",
|
|
485
|
+
white: "active:outline-white",
|
|
486
|
+
transparent: "active:outline-transparent"
|
|
487
|
+
};
|
|
488
|
+
// btn color class
|
|
489
|
+
btnColor = {
|
|
490
|
+
primary: "btn-primary",
|
|
491
|
+
secondary: "btn-secondary",
|
|
492
|
+
success: "btn-success",
|
|
493
|
+
danger: "btn-danger",
|
|
494
|
+
info: "btn-info",
|
|
495
|
+
warning: "btn-warning",
|
|
496
|
+
"light-1": "btn-light-1",
|
|
497
|
+
"light-2": "btn-light-2",
|
|
498
|
+
"light-3": "btn-light-3",
|
|
499
|
+
"light-4": "btn-light-4",
|
|
500
|
+
"dark-1": "btn-dark-1",
|
|
501
|
+
"dark-2": "btn-dark-2",
|
|
502
|
+
"dark-3": "btn-dark-3",
|
|
503
|
+
"dark-4": "btn-dark-4",
|
|
504
|
+
black: "btn-black",
|
|
505
|
+
white: "btn-white",
|
|
506
|
+
transparent: "btn-transparent"
|
|
507
|
+
};
|
|
508
|
+
// list color class
|
|
509
|
+
listColor = {
|
|
510
|
+
primary: "mcl-list-primary",
|
|
511
|
+
secondary: "mcl-list-secondary",
|
|
512
|
+
success: "mcl-list-success",
|
|
513
|
+
danger: "mcl-list-danger",
|
|
514
|
+
info: "mcl-list-info",
|
|
515
|
+
warning: "mcl-list-warning",
|
|
516
|
+
"light-1": "mcl-list-light-1",
|
|
517
|
+
"light-2": "mcl-list-light-2",
|
|
518
|
+
"light-3": "mcl-list-light-3",
|
|
519
|
+
"light-4": "mcl-list-light-4",
|
|
520
|
+
"dark-1": "mcl-list-dark-1",
|
|
521
|
+
"dark-2": "mcl-list-dark-2",
|
|
522
|
+
"dark-3": "mcl-list-dark-3",
|
|
523
|
+
"dark-4": "mcl-list-dark-4",
|
|
524
|
+
black: "mcl-list-black",
|
|
525
|
+
white: "mcl-list-white",
|
|
526
|
+
transparent: "mcl-list-transparent"
|
|
527
|
+
};
|
|
528
|
+
// border color classes
|
|
529
|
+
borderColor = {
|
|
530
|
+
primary: "border-primary",
|
|
531
|
+
secondary: "border-secondary",
|
|
532
|
+
success: "border-success",
|
|
533
|
+
danger: "border-danger",
|
|
534
|
+
info: "border-info",
|
|
535
|
+
warning: "border-warning",
|
|
536
|
+
"light-1": "border-light-1",
|
|
537
|
+
"light-2": "border-light-2",
|
|
538
|
+
"light-3": "border-light-3",
|
|
539
|
+
"light-4": "border-light-4",
|
|
540
|
+
"dark-1": "border-dark-1",
|
|
541
|
+
"dark-2": "border-dark-2",
|
|
542
|
+
"dark-3": "border-dark-3",
|
|
543
|
+
"dark-4": "border-dark-4",
|
|
544
|
+
black: "border-black",
|
|
545
|
+
white: "border-white",
|
|
546
|
+
transparent: "border-transparent"
|
|
547
|
+
};
|
|
548
|
+
borderXColor = {
|
|
549
|
+
primary: "border-x-primary",
|
|
550
|
+
secondary: "border-x-secondary",
|
|
551
|
+
success: "border-x-success",
|
|
552
|
+
danger: "border-x-danger",
|
|
553
|
+
info: "border-x-info",
|
|
554
|
+
warning: "border-x-warning",
|
|
555
|
+
"light-1": "border-x-light-1",
|
|
556
|
+
"light-2": "border-x-light-2",
|
|
557
|
+
"light-3": "border-x-light-3",
|
|
558
|
+
"light-4": "border-x-light-4",
|
|
559
|
+
"dark-1": "border-x-dark-1",
|
|
560
|
+
"dark-2": "border-x-dark-2",
|
|
561
|
+
"dark-3": "border-x-dark-3",
|
|
562
|
+
"dark-4": "border-x-dark-4",
|
|
563
|
+
black: "border-x-black",
|
|
564
|
+
white: "border-x-white",
|
|
565
|
+
transparent: "border-x-transparent"
|
|
566
|
+
};
|
|
567
|
+
borderYColor = {
|
|
568
|
+
primary: "border-y-primary",
|
|
569
|
+
secondary: "border-y-secondary",
|
|
570
|
+
success: "border-y-success",
|
|
571
|
+
danger: "border-y-danger",
|
|
572
|
+
info: "border-y-info",
|
|
573
|
+
warning: "border-y-warning",
|
|
574
|
+
"light-1": "border-y-light-1",
|
|
575
|
+
"light-2": "border-y-light-2",
|
|
576
|
+
"light-3": "border-y-light-3",
|
|
577
|
+
"light-4": "border-y-light-4",
|
|
578
|
+
"dark-1": "border-y-dark-1",
|
|
579
|
+
"dark-2": "border-y-dark-2",
|
|
580
|
+
"dark-3": "border-y-dark-3",
|
|
581
|
+
"dark-4": "border-y-dark-4",
|
|
582
|
+
black: "border-y-black",
|
|
583
|
+
white: "border-y-white",
|
|
584
|
+
transparent: "border-y-transparent"
|
|
585
|
+
};
|
|
586
|
+
borderTopColor = {
|
|
587
|
+
primary: "border-t-primary",
|
|
588
|
+
secondary: "border-t-secondary",
|
|
589
|
+
success: "border-t-success",
|
|
590
|
+
danger: "border-t-danger",
|
|
591
|
+
info: "border-t-info",
|
|
592
|
+
warning: "border-t-warning",
|
|
593
|
+
"light-1": "border-t-light-1",
|
|
594
|
+
"light-2": "border-t-light-2",
|
|
595
|
+
"light-3": "border-t-light-3",
|
|
596
|
+
"light-4": "border-t-light-4",
|
|
597
|
+
"dark-1": "border-t-dark-1",
|
|
598
|
+
"dark-2": "border-t-dark-2",
|
|
599
|
+
"dark-3": "border-t-dark-3",
|
|
600
|
+
"dark-4": "border-t-dark-4",
|
|
601
|
+
black: "border-t-black",
|
|
602
|
+
white: "border-t-white",
|
|
603
|
+
transparent: "border-t-transparent"
|
|
604
|
+
};
|
|
605
|
+
borderBottomColor = {
|
|
606
|
+
primary: "border-b-primary",
|
|
607
|
+
secondary: "border-b-secondary",
|
|
608
|
+
success: "border-b-success",
|
|
609
|
+
danger: "border-b-danger",
|
|
610
|
+
info: "border-b-info",
|
|
611
|
+
warning: "border-b-warning",
|
|
612
|
+
"light-1": "border-b-light-1",
|
|
613
|
+
"light-2": "border-b-light-2",
|
|
614
|
+
"light-3": "border-b-light-3",
|
|
615
|
+
"light-4": "border-b-light-4",
|
|
616
|
+
"dark-1": "border-b-dark-1",
|
|
617
|
+
"dark-2": "border-b-dark-2",
|
|
618
|
+
"dark-3": "border-b-dark-3",
|
|
619
|
+
"dark-4": "border-b-dark-4",
|
|
620
|
+
black: "border-b-black",
|
|
621
|
+
white: "border-b-white",
|
|
622
|
+
transparent: "border-b-transparent"
|
|
623
|
+
};
|
|
624
|
+
borderLeftColor = {
|
|
625
|
+
primary: "border-l-primary",
|
|
626
|
+
secondary: "border-l-secondary",
|
|
627
|
+
success: "border-l-success",
|
|
628
|
+
danger: "border-l-danger",
|
|
629
|
+
info: "border-l-info",
|
|
630
|
+
warning: "border-l-warning",
|
|
631
|
+
"light-1": "border-l-light-1",
|
|
632
|
+
"light-2": "border-l-light-2",
|
|
633
|
+
"light-3": "border-l-light-3",
|
|
634
|
+
"light-4": "border-l-light-4",
|
|
635
|
+
"dark-1": "border-l-dark-1",
|
|
636
|
+
"dark-2": "border-l-dark-2",
|
|
637
|
+
"dark-3": "border-l-dark-3",
|
|
638
|
+
"dark-4": "border-l-dark-4",
|
|
639
|
+
black: "border-l-black",
|
|
640
|
+
white: "border-l-white",
|
|
641
|
+
transparent: "border-l-transparent"
|
|
642
|
+
};
|
|
643
|
+
borderRightColor = {
|
|
644
|
+
primary: "border-r-primary",
|
|
645
|
+
secondary: "border-r-secondary",
|
|
646
|
+
success: "border-r-success",
|
|
647
|
+
danger: "border-r-danger",
|
|
648
|
+
info: "border-r-info",
|
|
649
|
+
warning: "border-r-warning",
|
|
650
|
+
"light-1": "border-r-light-1",
|
|
651
|
+
"light-2": "border-r-light-2",
|
|
652
|
+
"light-3": "border-r-light-3",
|
|
653
|
+
"light-4": "border-r-light-4",
|
|
654
|
+
"dark-1": "border-r-dark-1",
|
|
655
|
+
"dark-2": "border-r-dark-2",
|
|
656
|
+
"dark-3": "border-r-dark-3",
|
|
657
|
+
"dark-4": "border-r-dark-4",
|
|
658
|
+
black: "border-r-black",
|
|
659
|
+
white: "border-r-white",
|
|
660
|
+
transparent: "border-r-transparent"
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
class X {
|
|
664
|
+
// h1 class
|
|
665
|
+
heading1 = {
|
|
666
|
+
sm: "h1-sm",
|
|
667
|
+
md: "h1-md",
|
|
668
|
+
lg: "h1-lg",
|
|
669
|
+
xl: "h1-xl"
|
|
670
|
+
};
|
|
671
|
+
// h2 class
|
|
672
|
+
heading2 = {
|
|
673
|
+
sm: "h2-sm",
|
|
674
|
+
md: "h2-md",
|
|
675
|
+
lg: "h2-lg",
|
|
676
|
+
xl: "h2-xl"
|
|
677
|
+
};
|
|
678
|
+
// h3 class
|
|
679
|
+
heading3 = {
|
|
680
|
+
sm: "h3-sm",
|
|
681
|
+
md: "h3-md",
|
|
682
|
+
lg: "h3-lg",
|
|
683
|
+
xl: "h3-xl"
|
|
684
|
+
};
|
|
685
|
+
// h4 class
|
|
686
|
+
heading4 = {
|
|
687
|
+
sm: "h4-sm",
|
|
688
|
+
md: "h4-md",
|
|
689
|
+
lg: "h4-lg",
|
|
690
|
+
xl: "h4-xl"
|
|
691
|
+
};
|
|
692
|
+
}
|
|
693
|
+
let F = class {
|
|
694
|
+
// opacity
|
|
695
|
+
backgroundOpacity = {
|
|
696
|
+
10: "bg-opacity-10",
|
|
697
|
+
20: "bg-opacity-20",
|
|
698
|
+
30: "bg-opacity-30",
|
|
699
|
+
40: "bg-opacity-40",
|
|
700
|
+
50: "bg-opacity-50",
|
|
701
|
+
60: "bg-opacity-60",
|
|
702
|
+
70: "bg-opacity-70",
|
|
703
|
+
80: "bg-opacity-80",
|
|
704
|
+
90: "bg-opacity-90",
|
|
705
|
+
100: "bg-opacity-100"
|
|
706
|
+
};
|
|
707
|
+
opacity = {
|
|
708
|
+
10: "opacity-10",
|
|
709
|
+
20: "opacity-20",
|
|
710
|
+
30: "opacity-30",
|
|
711
|
+
40: "opacity-40",
|
|
712
|
+
50: "opacity-50",
|
|
713
|
+
60: "opacity-60",
|
|
714
|
+
70: "opacity-70",
|
|
715
|
+
80: "opacity-80",
|
|
716
|
+
90: "opacity-90",
|
|
717
|
+
100: "opacity-100"
|
|
718
|
+
};
|
|
719
|
+
outlineOpacity = {
|
|
720
|
+
10: "outline-opacity-10",
|
|
721
|
+
20: "outline-opacity-20",
|
|
722
|
+
30: "outline-opacity-30",
|
|
723
|
+
40: "outline-opacity-40",
|
|
724
|
+
50: "outline-opacity-50",
|
|
725
|
+
60: "outline-opacity-60",
|
|
726
|
+
70: "outline-opacity-70",
|
|
727
|
+
80: "outline-opacity-80",
|
|
728
|
+
90: "outline-opacity-90",
|
|
729
|
+
100: "outline-opacity-100"
|
|
730
|
+
};
|
|
731
|
+
}, P = class {
|
|
732
|
+
// spacing: margin
|
|
733
|
+
margin = {
|
|
734
|
+
0: "m-0",
|
|
735
|
+
"3xs": "m-3xs",
|
|
736
|
+
"2xs": "m-2xs",
|
|
737
|
+
xs: "m-xs",
|
|
738
|
+
sm: "m-sm",
|
|
739
|
+
md: "m-md",
|
|
740
|
+
lg: "m-lg",
|
|
741
|
+
xl: "m-xl",
|
|
742
|
+
"2xl": "m-2xl",
|
|
743
|
+
"3xl": "m-3xl"
|
|
744
|
+
};
|
|
745
|
+
marginX = {
|
|
746
|
+
0: "mx-0",
|
|
747
|
+
"3xs": "mx-3xs",
|
|
748
|
+
"2xs": "mx-2xs",
|
|
749
|
+
xs: "mx-xs",
|
|
750
|
+
sm: "mx-sm",
|
|
751
|
+
md: "mx-md",
|
|
752
|
+
lg: "mx-lg",
|
|
753
|
+
xl: "mx-xl",
|
|
754
|
+
"2xl": "mx-2xl",
|
|
755
|
+
"3xl": "mx-3xl"
|
|
756
|
+
};
|
|
757
|
+
marginY = {
|
|
758
|
+
0: "my-0",
|
|
759
|
+
"3xs": "my-3xs",
|
|
760
|
+
"2xs": "my-2xs",
|
|
761
|
+
xs: "my-xs",
|
|
762
|
+
sm: "my-sm",
|
|
763
|
+
md: "my-md",
|
|
764
|
+
lg: "my-lg",
|
|
765
|
+
xl: "my-xl",
|
|
766
|
+
"2xl": "my-2xl",
|
|
767
|
+
"3xl": "my-3xl"
|
|
768
|
+
};
|
|
769
|
+
marginTop = {
|
|
770
|
+
0: "mt-0",
|
|
771
|
+
"3xs": "mt-3xs",
|
|
772
|
+
"2xs": "mt-2xs",
|
|
773
|
+
xs: "mt-xs",
|
|
774
|
+
sm: "mt-sm",
|
|
775
|
+
md: "mt-md",
|
|
776
|
+
lg: "mt-lg",
|
|
777
|
+
xl: "mt-xl",
|
|
778
|
+
"2xl": "mt-2xl",
|
|
779
|
+
"3xl": "mt-3xl"
|
|
780
|
+
};
|
|
781
|
+
marginBottom = {
|
|
782
|
+
0: "mb-0",
|
|
783
|
+
"3xs": "mb-3xs",
|
|
784
|
+
"2xs": "mb-2xs",
|
|
785
|
+
xs: "mb-xs",
|
|
786
|
+
sm: "mb-sm",
|
|
787
|
+
md: "mb-md",
|
|
788
|
+
lg: "mb-lg",
|
|
789
|
+
xl: "mb-xl",
|
|
790
|
+
"2xl": "mb-2xl",
|
|
791
|
+
"3xl": "mb-3xl"
|
|
792
|
+
};
|
|
793
|
+
marginLeft = {
|
|
794
|
+
0: "ml-0",
|
|
795
|
+
"3xs": "ml-3xs",
|
|
796
|
+
"2xs": "ml-2xs",
|
|
797
|
+
xs: "ml-xs",
|
|
798
|
+
sm: "ml-sm",
|
|
799
|
+
md: "ml-md",
|
|
800
|
+
lg: "ml-lg",
|
|
801
|
+
xl: "ml-xl",
|
|
802
|
+
"2xl": "ml-2xl",
|
|
803
|
+
"3xl": "ml-3xl"
|
|
804
|
+
};
|
|
805
|
+
marginRight = {
|
|
806
|
+
0: "mr-0",
|
|
807
|
+
"3xs": "mr-3xs",
|
|
808
|
+
"2xs": "mr-2xs",
|
|
809
|
+
xs: "mr-xs",
|
|
810
|
+
sm: "mr-sm",
|
|
811
|
+
md: "mr-md",
|
|
812
|
+
lg: "mr-lg",
|
|
813
|
+
xl: "mr-xl",
|
|
814
|
+
"2xl": "mr-2xl",
|
|
815
|
+
"3xl": "mr-3xl"
|
|
816
|
+
};
|
|
817
|
+
// spacing: padding
|
|
818
|
+
padding = {
|
|
819
|
+
0: "p-0",
|
|
820
|
+
"3xs": "p-3xs",
|
|
821
|
+
"2xs": "p-2xs",
|
|
822
|
+
xs: "p-xs",
|
|
823
|
+
sm: "p-sm",
|
|
824
|
+
md: "p-md",
|
|
825
|
+
lg: "p-lg",
|
|
826
|
+
xl: "p-xl",
|
|
827
|
+
"2xl": "p-2xl",
|
|
828
|
+
"3xl": "p-3xl"
|
|
829
|
+
};
|
|
830
|
+
paddingX = {
|
|
831
|
+
0: "px-0",
|
|
832
|
+
"3xs": "px-3xs",
|
|
833
|
+
"2xs": "px-2xs",
|
|
834
|
+
xs: "px-xs",
|
|
835
|
+
sm: "px-sm",
|
|
836
|
+
md: "px-md",
|
|
837
|
+
lg: "px-lg",
|
|
838
|
+
xl: "px-xl",
|
|
839
|
+
"2xl": "px-2xl",
|
|
840
|
+
"3xl": "px-3xl"
|
|
841
|
+
};
|
|
842
|
+
paddingY = {
|
|
843
|
+
0: "py-0",
|
|
844
|
+
"3xs": "py-3xs",
|
|
845
|
+
"2xs": "py-2xs",
|
|
846
|
+
xs: "py-xs",
|
|
847
|
+
sm: "py-sm",
|
|
848
|
+
md: "py-md",
|
|
849
|
+
lg: "py-lg",
|
|
850
|
+
xl: "py-xl",
|
|
851
|
+
"2xl": "py-2xl",
|
|
852
|
+
"3xl": "py-3xl"
|
|
853
|
+
};
|
|
854
|
+
paddingTop = {
|
|
855
|
+
0: "pt-0",
|
|
856
|
+
"3xs": "pt-3xs",
|
|
857
|
+
"2xs": "pt-2xs",
|
|
858
|
+
xs: "pt-xs",
|
|
859
|
+
sm: "pt-sm",
|
|
860
|
+
md: "pt-md",
|
|
861
|
+
lg: "pt-lg",
|
|
862
|
+
xl: "pt-xl",
|
|
863
|
+
"2xl": "pt-2xl",
|
|
864
|
+
"3xl": "pt-3xl"
|
|
865
|
+
};
|
|
866
|
+
paddingBottom = {
|
|
867
|
+
0: "pb-0",
|
|
868
|
+
"3xs": "pb-3xs",
|
|
869
|
+
"2xs": "pb-2xs",
|
|
870
|
+
xs: "pb-xs",
|
|
871
|
+
sm: "pb-sm",
|
|
872
|
+
md: "pb-md",
|
|
873
|
+
lg: "pb-lg",
|
|
874
|
+
xl: "pb-xl",
|
|
875
|
+
"2xl": "pb-2xl",
|
|
876
|
+
"3xl": "pb-3xl"
|
|
877
|
+
};
|
|
878
|
+
paddingLeft = {
|
|
879
|
+
0: "pl-0",
|
|
880
|
+
"3xs": "pl-3xs",
|
|
881
|
+
"2xs": "pl-2xs",
|
|
882
|
+
xs: "pl-xs",
|
|
883
|
+
sm: "pl-sm",
|
|
884
|
+
md: "pl-md",
|
|
885
|
+
lg: "pl-lg",
|
|
886
|
+
xl: "pl-xl",
|
|
887
|
+
"2xl": "pl-2xl",
|
|
888
|
+
"3xl": "pl-3xl"
|
|
889
|
+
};
|
|
890
|
+
paddingRight = {
|
|
891
|
+
0: "pr-0",
|
|
892
|
+
"3xs": "pr-3xs",
|
|
893
|
+
"2xs": "pr-2xs",
|
|
894
|
+
xs: "pr-xs",
|
|
895
|
+
sm: "pr-sm",
|
|
896
|
+
md: "pr-md",
|
|
897
|
+
lg: "pr-lg",
|
|
898
|
+
xl: "pr-xl",
|
|
899
|
+
"2xl": "pr-2xl",
|
|
900
|
+
"3xl": "pr-3xl"
|
|
901
|
+
};
|
|
902
|
+
// spacing gap class for flex/grid
|
|
903
|
+
gap = {
|
|
904
|
+
0: "gap-0",
|
|
905
|
+
"3xs": "gap-3xs",
|
|
906
|
+
"2xs": "gap-2xs",
|
|
907
|
+
xs: "gap-xs",
|
|
908
|
+
sm: "gap-sm",
|
|
909
|
+
md: "gap-md",
|
|
910
|
+
lg: "gap-lg",
|
|
911
|
+
xl: "gap-xl",
|
|
912
|
+
"2xl": "gap-2xl",
|
|
913
|
+
"3xl": "gap-3xl"
|
|
914
|
+
};
|
|
915
|
+
}, Y = class {
|
|
916
|
+
classType;
|
|
917
|
+
constructor(r) {
|
|
918
|
+
this.classType = r;
|
|
919
|
+
}
|
|
920
|
+
validateColorType(r) {
|
|
921
|
+
return typeof r != "string" || !/(primary|secondary|success|info|warning|danger|light-1|light-2|light-3|light-4|dark-1|dark-2|dark-3|dark-4|black|white|transparent)/.test(r) ? !1 : k.colorType.includes(this.classType);
|
|
922
|
+
}
|
|
923
|
+
validateSpaceType(r) {
|
|
924
|
+
return typeof r != "string" || !/(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/.test(r) ? !1 : k.spacingType.includes(this.classType);
|
|
925
|
+
}
|
|
926
|
+
validateHeadingTextSizeType(r) {
|
|
927
|
+
return typeof r != "string" || !/(sm|md|lg|xl)/.test(r) ? !1 : k.headingSizeType.includes(
|
|
928
|
+
this.classType
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
validateBodyTextSizeType(r) {
|
|
932
|
+
return typeof r != "string" || !/(xs|sm|md|lg|xl)/.test(r) ? !1 : k.textType.includes(this.classType);
|
|
933
|
+
}
|
|
934
|
+
validateFontWeightType(r) {
|
|
935
|
+
return typeof r != "string" || !/(light|normal|bold)/.test(r) ? !1 : k.fontWeightType.includes(
|
|
936
|
+
this.classType
|
|
937
|
+
);
|
|
938
|
+
}
|
|
939
|
+
validateOpacityType(r) {
|
|
940
|
+
return typeof r != "number" || !/\b(0|[1-9]0|100)\b/.test(r.toString()) ? !1 : k.scaleType.includes(this.classType);
|
|
941
|
+
}
|
|
942
|
+
validateRangeType(r) {
|
|
943
|
+
return typeof r != "number" || !/\b([1-9]|1[0-2])\b/.test(r.toString()) ? !1 : k.borderWidthType.includes(
|
|
944
|
+
this.classType
|
|
945
|
+
);
|
|
946
|
+
}
|
|
947
|
+
validateAlignment(r) {
|
|
948
|
+
return typeof r != "string" || !/(left|center|right)/.test(r) ? !1 : k.textAlignType.includes(
|
|
949
|
+
this.classType
|
|
950
|
+
);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
const k = {
|
|
954
|
+
colorType: [
|
|
955
|
+
"BGCOLOR",
|
|
956
|
+
"BEFOREBG",
|
|
957
|
+
"AFTERBG",
|
|
958
|
+
"HVBGCOLOR",
|
|
959
|
+
"FCBGCOLOR",
|
|
960
|
+
"ACTIVEBG",
|
|
961
|
+
"TEXTCOLOR",
|
|
962
|
+
"HVTEXTCOLOR",
|
|
963
|
+
"FCTEXTCOLOR",
|
|
964
|
+
"DISABLEDTEXTCOLOR",
|
|
965
|
+
"SVGFILL",
|
|
966
|
+
"RINGCOLOR",
|
|
967
|
+
"FOCUSRING",
|
|
968
|
+
"ACTIVERING",
|
|
969
|
+
"OUTLINE",
|
|
970
|
+
"FOCUSOUTLINE",
|
|
971
|
+
"ACTIVEOUTLINE",
|
|
972
|
+
"OFFSETRING",
|
|
973
|
+
"BTNCOLOR",
|
|
974
|
+
"LISTCOLOR",
|
|
975
|
+
"BORDER",
|
|
976
|
+
"BORDERX",
|
|
977
|
+
"BORDERY",
|
|
978
|
+
"BORDERT",
|
|
979
|
+
"BORDERB",
|
|
980
|
+
"BORDERL",
|
|
981
|
+
"BORDERR"
|
|
982
|
+
],
|
|
983
|
+
textType: ["BODYTEXT"],
|
|
984
|
+
fontWeightType: ["FONTWEIGHT"],
|
|
985
|
+
textAlignType: ["TEXTALIGN"],
|
|
986
|
+
headingSizeType: ["H1", "H2", "H3", "H4"],
|
|
987
|
+
borderWidthType: [
|
|
988
|
+
"BORDERW",
|
|
989
|
+
"BORDERXW",
|
|
990
|
+
"BORDERYW",
|
|
991
|
+
"BORDERTW",
|
|
992
|
+
"BORDERBW",
|
|
993
|
+
"BORDERLW",
|
|
994
|
+
"BORDERRW"
|
|
995
|
+
],
|
|
996
|
+
scaleType: ["BGOPACITY", "OPACITY", "OUTLINEOPACITY"],
|
|
997
|
+
spacingType: [
|
|
998
|
+
"MARGIN",
|
|
999
|
+
"MARGINX",
|
|
1000
|
+
"MARGINY",
|
|
1001
|
+
"MARGINT",
|
|
1002
|
+
"MARGINB",
|
|
1003
|
+
"MARGINL",
|
|
1004
|
+
"MARGINR",
|
|
1005
|
+
"PADDING",
|
|
1006
|
+
"PADDINGX",
|
|
1007
|
+
"PADDINGY",
|
|
1008
|
+
"PADDINGT",
|
|
1009
|
+
"PADDINGB",
|
|
1010
|
+
"PADDINGL",
|
|
1011
|
+
"PADDINGR",
|
|
1012
|
+
"GAP"
|
|
1013
|
+
]
|
|
1014
|
+
};
|
|
1015
|
+
class z {
|
|
1016
|
+
classType;
|
|
1017
|
+
classValue;
|
|
1018
|
+
colorClass;
|
|
1019
|
+
headingSizeClass;
|
|
1020
|
+
borderWidthClass;
|
|
1021
|
+
opacityClass;
|
|
1022
|
+
spacingClass;
|
|
1023
|
+
textClass;
|
|
1024
|
+
validator;
|
|
1025
|
+
constructor(r, e) {
|
|
1026
|
+
this.classType = r, this.classValue = e, this.colorClass = new M(), this.headingSizeClass = new X(), this.borderWidthClass = new H(), this.opacityClass = new F(), this.spacingClass = new P(), this.textClass = new N(), this.validator = new Y(r);
|
|
1027
|
+
}
|
|
1028
|
+
generateClass() {
|
|
1029
|
+
switch (this.classType) {
|
|
1030
|
+
// case: color classes
|
|
1031
|
+
case "BGCOLOR":
|
|
1032
|
+
return this.getBgColorClass();
|
|
1033
|
+
case "HVBGCOLOR":
|
|
1034
|
+
return this.getHoverBgColorClass();
|
|
1035
|
+
case "FCBGCOLOR":
|
|
1036
|
+
return this.getFocusBgColorClass();
|
|
1037
|
+
case "BEFOREBG":
|
|
1038
|
+
return this.getBeforeBgColorClass();
|
|
1039
|
+
case "AFTERBG":
|
|
1040
|
+
return this.getAfterBgColorClass();
|
|
1041
|
+
case "ACTIVEBG":
|
|
1042
|
+
return this.getActiveBgColorClass();
|
|
1043
|
+
case "TEXTCOLOR":
|
|
1044
|
+
return this.getTextColorClass();
|
|
1045
|
+
case "HVTEXTCOLOR":
|
|
1046
|
+
return this.getHoverTextColorClass();
|
|
1047
|
+
case "FCTEXTCOLOR":
|
|
1048
|
+
return this.getFocusTextColorClass();
|
|
1049
|
+
case "DISABLEDTEXTCOLOR":
|
|
1050
|
+
return this.getDisabledTextColorClass();
|
|
1051
|
+
case "SVGFILL":
|
|
1052
|
+
return this.getSvgFillColorClass();
|
|
1053
|
+
case "RINGCOLOR":
|
|
1054
|
+
return this.getRingColorClass();
|
|
1055
|
+
case "FOCUSRING":
|
|
1056
|
+
return this.getFocusRingColorClass();
|
|
1057
|
+
case "ACTIVERING":
|
|
1058
|
+
return this.getActiveRingColorClass();
|
|
1059
|
+
case "OFFSETRING":
|
|
1060
|
+
return this.getRingOffsetColorClass();
|
|
1061
|
+
case "OUTLINE":
|
|
1062
|
+
return this.getOutlineColorClass();
|
|
1063
|
+
case "FOCUSOUTLINE":
|
|
1064
|
+
return this.getFocusOutlineColorClass();
|
|
1065
|
+
case "ACTIVEOUTLINE":
|
|
1066
|
+
return this.getActiveOutlineColorClass();
|
|
1067
|
+
case "BTNCOLOR":
|
|
1068
|
+
return this.getBtnColorClass();
|
|
1069
|
+
case "LISTCOLOR":
|
|
1070
|
+
return this.getListColorClass();
|
|
1071
|
+
case "BORDER":
|
|
1072
|
+
return this.getBorderColorClass();
|
|
1073
|
+
case "BORDERX":
|
|
1074
|
+
return this.getBorderXColorClass();
|
|
1075
|
+
case "BORDERY":
|
|
1076
|
+
return this.getBorderYColorClass();
|
|
1077
|
+
case "BORDERT":
|
|
1078
|
+
return this.getBorderTopColorClass();
|
|
1079
|
+
case "BORDERB":
|
|
1080
|
+
return this.getBorderBottomColorClass();
|
|
1081
|
+
case "BORDERL":
|
|
1082
|
+
return this.getBorderLeftColorClass();
|
|
1083
|
+
case "BORDERR":
|
|
1084
|
+
return this.getBorderRightColorClass();
|
|
1085
|
+
// case: heading classes
|
|
1086
|
+
case "H1":
|
|
1087
|
+
return this.getH1Class();
|
|
1088
|
+
case "H2":
|
|
1089
|
+
return this.getH2Class();
|
|
1090
|
+
case "H3":
|
|
1091
|
+
return this.getH3Class();
|
|
1092
|
+
case "H4":
|
|
1093
|
+
return this.getH4Class();
|
|
1094
|
+
// case: body text class
|
|
1095
|
+
case "BODYTEXT":
|
|
1096
|
+
return this.getBodyTextSizeClass();
|
|
1097
|
+
// case: font weight class
|
|
1098
|
+
case "FONTWEIGHT":
|
|
1099
|
+
return this.getFontWeightClass();
|
|
1100
|
+
// case: text alignment class
|
|
1101
|
+
case "TEXTALIGN":
|
|
1102
|
+
return this.getTextAlignClass();
|
|
1103
|
+
// case: border width classes
|
|
1104
|
+
case "BORDERW":
|
|
1105
|
+
return this.getBorderWidthClass();
|
|
1106
|
+
case "BORDERXW":
|
|
1107
|
+
return this.getBorderXWidthClass();
|
|
1108
|
+
case "BORDERYW":
|
|
1109
|
+
return this.getBorderYWidthClass();
|
|
1110
|
+
case "BORDERTW":
|
|
1111
|
+
return this.getBorderTopWidthClass();
|
|
1112
|
+
case "BORDERBW":
|
|
1113
|
+
return this.getBorderBottomWidthClass();
|
|
1114
|
+
case "BORDERLW":
|
|
1115
|
+
return this.getBorderLeftWidthClass();
|
|
1116
|
+
case "BORDERRW":
|
|
1117
|
+
return this.getBorderRightWidthClass();
|
|
1118
|
+
// case: opacity classes
|
|
1119
|
+
case "OPACITY":
|
|
1120
|
+
return this.getOpacityClass();
|
|
1121
|
+
case "BGOPACITY":
|
|
1122
|
+
return this.getBgOpacityClass();
|
|
1123
|
+
case "OUTLINEOPACITY":
|
|
1124
|
+
return this.getOutlineOpacityClass();
|
|
1125
|
+
// case: margins
|
|
1126
|
+
case "MARGIN":
|
|
1127
|
+
return this.getMarginClass();
|
|
1128
|
+
case "MARGINX":
|
|
1129
|
+
return this.getMarginXClass();
|
|
1130
|
+
case "MARGINY":
|
|
1131
|
+
return this.getMarginYClass();
|
|
1132
|
+
case "MARGINT":
|
|
1133
|
+
return this.getMarginTopClass();
|
|
1134
|
+
case "MARGINB":
|
|
1135
|
+
return this.getMarginBottomClass();
|
|
1136
|
+
case "MARGINL":
|
|
1137
|
+
return this.getMarginLeftClass();
|
|
1138
|
+
case "MARGINR":
|
|
1139
|
+
return this.getMarginRightClass();
|
|
1140
|
+
// case: paddings
|
|
1141
|
+
case "PADDING":
|
|
1142
|
+
return this.getPaddingClass();
|
|
1143
|
+
case "PADDINGX":
|
|
1144
|
+
return this.getPaddingXClass();
|
|
1145
|
+
case "PADDINGY":
|
|
1146
|
+
return this.getPaddingYClass();
|
|
1147
|
+
case "PADDINGT":
|
|
1148
|
+
return this.getPaddingTopClass();
|
|
1149
|
+
case "PADDINGB":
|
|
1150
|
+
return this.getPaddingBottomClass();
|
|
1151
|
+
case "PADDINGL":
|
|
1152
|
+
return this.getPaddingLeftClass();
|
|
1153
|
+
case "PADDINGR":
|
|
1154
|
+
return this.getPaddingRightClass();
|
|
1155
|
+
// case: gap
|
|
1156
|
+
case "GAP":
|
|
1157
|
+
return this.getGapClass();
|
|
1158
|
+
default:
|
|
1159
|
+
return " ";
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
// handle color class
|
|
1163
|
+
// bg color
|
|
1164
|
+
getBgColorClass() {
|
|
1165
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.bgColor[this.classValue] : " ";
|
|
1166
|
+
}
|
|
1167
|
+
getHoverBgColorClass() {
|
|
1168
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.hoverBgColor[this.classValue] : " ";
|
|
1169
|
+
}
|
|
1170
|
+
getFocusBgColorClass() {
|
|
1171
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.focusBgColor[this.classValue] : " ";
|
|
1172
|
+
}
|
|
1173
|
+
getBeforeBgColorClass() {
|
|
1174
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.beforeBgColor[this.classValue] : " ";
|
|
1175
|
+
}
|
|
1176
|
+
getAfterBgColorClass() {
|
|
1177
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.afterBgColor[this.classValue] : " ";
|
|
1178
|
+
}
|
|
1179
|
+
getActiveBgColorClass() {
|
|
1180
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.bgActiveColor[this.classValue] : " ";
|
|
1181
|
+
}
|
|
1182
|
+
// text color
|
|
1183
|
+
getTextColorClass() {
|
|
1184
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.textColor[this.classValue] : " ";
|
|
1185
|
+
}
|
|
1186
|
+
getHoverTextColorClass() {
|
|
1187
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.hoverTextColor[this.classValue] : " ";
|
|
1188
|
+
}
|
|
1189
|
+
getFocusTextColorClass() {
|
|
1190
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.focusTextColor[this.classValue] : " ";
|
|
1191
|
+
}
|
|
1192
|
+
getDisabledTextColorClass() {
|
|
1193
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.disabledTextColor[this.classValue] : " ";
|
|
1194
|
+
}
|
|
1195
|
+
// svg color
|
|
1196
|
+
getSvgFillColorClass() {
|
|
1197
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.svgFillColor[this.classValue] : " ";
|
|
1198
|
+
}
|
|
1199
|
+
// ring color
|
|
1200
|
+
getRingColorClass() {
|
|
1201
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.ringColor[this.classValue] : " ";
|
|
1202
|
+
}
|
|
1203
|
+
getFocusRingColorClass() {
|
|
1204
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.ringFocusColor[this.classValue] : " ";
|
|
1205
|
+
}
|
|
1206
|
+
getActiveRingColorClass() {
|
|
1207
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.ringActiveColor[this.classValue] : " ";
|
|
1208
|
+
}
|
|
1209
|
+
getRingOffsetColorClass() {
|
|
1210
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.ringOffsetColor[this.classValue] : " ";
|
|
1211
|
+
}
|
|
1212
|
+
// outline color
|
|
1213
|
+
getOutlineColorClass() {
|
|
1214
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.outlineColor[this.classValue] : " ";
|
|
1215
|
+
}
|
|
1216
|
+
getFocusOutlineColorClass() {
|
|
1217
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.focusOutlineColor[this.classValue] : " ";
|
|
1218
|
+
}
|
|
1219
|
+
getActiveOutlineColorClass() {
|
|
1220
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.activeOutlineColor[this.classValue] : " ";
|
|
1221
|
+
}
|
|
1222
|
+
// btn & list
|
|
1223
|
+
getBtnColorClass() {
|
|
1224
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.btnColor[this.classValue] : " ";
|
|
1225
|
+
}
|
|
1226
|
+
getListColorClass() {
|
|
1227
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.listColor[this.classValue] : " ";
|
|
1228
|
+
}
|
|
1229
|
+
// border color
|
|
1230
|
+
getBorderColorClass() {
|
|
1231
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderColor[this.classValue] : " ";
|
|
1232
|
+
}
|
|
1233
|
+
getBorderXColorClass() {
|
|
1234
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderXColor[this.classValue] : " ";
|
|
1235
|
+
}
|
|
1236
|
+
getBorderYColorClass() {
|
|
1237
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderYColor[this.classValue] : " ";
|
|
1238
|
+
}
|
|
1239
|
+
getBorderTopColorClass() {
|
|
1240
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderTopColor[this.classValue] : " ";
|
|
1241
|
+
}
|
|
1242
|
+
getBorderBottomColorClass() {
|
|
1243
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderBottomColor[this.classValue] : " ";
|
|
1244
|
+
}
|
|
1245
|
+
getBorderLeftColorClass() {
|
|
1246
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderLeftColor[this.classValue] : " ";
|
|
1247
|
+
}
|
|
1248
|
+
getBorderRightColorClass() {
|
|
1249
|
+
return this.validator.validateColorType(this.classValue) ? this.colorClass.borderRightColor[this.classValue] : " ";
|
|
1250
|
+
}
|
|
1251
|
+
// handle heading classes
|
|
1252
|
+
getH1Class() {
|
|
1253
|
+
return this.validator.validateHeadingTextSizeType(this.classValue) ? this.headingSizeClass.heading1[this.classValue] : " ";
|
|
1254
|
+
}
|
|
1255
|
+
getH2Class() {
|
|
1256
|
+
return this.validator.validateHeadingTextSizeType(this.classValue) ? this.headingSizeClass.heading2[this.classValue] : " ";
|
|
1257
|
+
}
|
|
1258
|
+
getH3Class() {
|
|
1259
|
+
return this.validator.validateHeadingTextSizeType(this.classValue) ? this.headingSizeClass.heading3[this.classValue] : " ";
|
|
1260
|
+
}
|
|
1261
|
+
getH4Class() {
|
|
1262
|
+
return this.validator.validateHeadingTextSizeType(this.classValue) ? this.headingSizeClass.heading4[this.classValue] : " ";
|
|
1263
|
+
}
|
|
1264
|
+
// handle body text size classes
|
|
1265
|
+
getBodyTextSizeClass() {
|
|
1266
|
+
return this.validator.validateBodyTextSizeType(this.classValue) ? this.textClass.bodyText[this.classValue] : " ";
|
|
1267
|
+
}
|
|
1268
|
+
// handle font weight classes
|
|
1269
|
+
getFontWeightClass() {
|
|
1270
|
+
return this.validator.validateFontWeightType(this.classValue) ? this.textClass.fontweight[this.classValue] : " ";
|
|
1271
|
+
}
|
|
1272
|
+
// handle text align classes
|
|
1273
|
+
getTextAlignClass() {
|
|
1274
|
+
return this.validator.validateAlignment(this.classValue) ? this.textClass.textAlign[this.classValue] : " ";
|
|
1275
|
+
}
|
|
1276
|
+
// handle border width class
|
|
1277
|
+
getBorderWidthClass() {
|
|
1278
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderWidth[this.classValue] : " ";
|
|
1279
|
+
}
|
|
1280
|
+
getBorderXWidthClass() {
|
|
1281
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderXWidth[this.classValue] : " ";
|
|
1282
|
+
}
|
|
1283
|
+
getBorderYWidthClass() {
|
|
1284
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderYWidth[this.classValue] : " ";
|
|
1285
|
+
}
|
|
1286
|
+
getBorderTopWidthClass() {
|
|
1287
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderTopWidth[this.classValue] : " ";
|
|
1288
|
+
}
|
|
1289
|
+
getBorderBottomWidthClass() {
|
|
1290
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderBottomWidth[this.classValue] : " ";
|
|
1291
|
+
}
|
|
1292
|
+
getBorderLeftWidthClass() {
|
|
1293
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderLeftWidth[this.classValue] : " ";
|
|
1294
|
+
}
|
|
1295
|
+
getBorderRightWidthClass() {
|
|
1296
|
+
return this.validator.validateRangeType(this.classValue) ? this.borderWidthClass.borderRightWidth[this.classValue] : " ";
|
|
1297
|
+
}
|
|
1298
|
+
// handle opacity classes
|
|
1299
|
+
getOpacityClass() {
|
|
1300
|
+
return this.validator.validateOpacityType(this.classValue) ? this.opacityClass.opacity[this.classValue] : " ";
|
|
1301
|
+
}
|
|
1302
|
+
getBgOpacityClass() {
|
|
1303
|
+
return this.validator.validateOpacityType(this.classValue) ? this.opacityClass.backgroundOpacity[this.classValue] : " ";
|
|
1304
|
+
}
|
|
1305
|
+
getOutlineOpacityClass() {
|
|
1306
|
+
return this.validator.validateOpacityType(this.classValue) ? this.opacityClass.outlineOpacity[this.classValue] : " ";
|
|
1307
|
+
}
|
|
1308
|
+
// spacing classes
|
|
1309
|
+
// margins
|
|
1310
|
+
getMarginClass() {
|
|
1311
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.margin[this.classValue] : " ";
|
|
1312
|
+
}
|
|
1313
|
+
getMarginXClass() {
|
|
1314
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginX[this.classValue] : " ";
|
|
1315
|
+
}
|
|
1316
|
+
getMarginYClass() {
|
|
1317
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginY[this.classValue] : " ";
|
|
1318
|
+
}
|
|
1319
|
+
getMarginTopClass() {
|
|
1320
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginTop[this.classValue] : " ";
|
|
1321
|
+
}
|
|
1322
|
+
getMarginBottomClass() {
|
|
1323
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginBottom[this.classValue] : " ";
|
|
1324
|
+
}
|
|
1325
|
+
getMarginLeftClass() {
|
|
1326
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginLeft[this.classValue] : " ";
|
|
1327
|
+
}
|
|
1328
|
+
getMarginRightClass() {
|
|
1329
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.marginRight[this.classValue] : " ";
|
|
1330
|
+
}
|
|
1331
|
+
// paddings
|
|
1332
|
+
getPaddingClass() {
|
|
1333
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.padding[this.classValue] : " ";
|
|
1334
|
+
}
|
|
1335
|
+
getPaddingXClass() {
|
|
1336
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingX[this.classValue] : " ";
|
|
1337
|
+
}
|
|
1338
|
+
getPaddingYClass() {
|
|
1339
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingY[this.classValue] : " ";
|
|
1340
|
+
}
|
|
1341
|
+
getPaddingTopClass() {
|
|
1342
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingTop[this.classValue] : " ";
|
|
1343
|
+
}
|
|
1344
|
+
getPaddingBottomClass() {
|
|
1345
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingBottom[this.classValue] : " ";
|
|
1346
|
+
}
|
|
1347
|
+
getPaddingLeftClass() {
|
|
1348
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingLeft[this.classValue] : " ";
|
|
1349
|
+
}
|
|
1350
|
+
getPaddingRightClass() {
|
|
1351
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.paddingRight[this.classValue] : " ";
|
|
1352
|
+
}
|
|
1353
|
+
// gaps
|
|
1354
|
+
getGapClass() {
|
|
1355
|
+
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.gap[this.classValue] : " ";
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
const j = (t, r) => new z(t, r).generateClass();
|
|
1359
|
+
w({
|
|
1360
|
+
setup(t, { slots: r }) {
|
|
1361
|
+
const e = I(!1);
|
|
1362
|
+
return G(() => {
|
|
1363
|
+
e.value = !0;
|
|
1364
|
+
}), () => e.value && r.default ? r.default() : null;
|
|
1365
|
+
}
|
|
1366
|
+
});
|
|
4
1367
|
const $ = {
|
|
1368
|
+
xs: "backdrop-blur-xs",
|
|
1369
|
+
sm: "backdrop-blur-sm",
|
|
1370
|
+
md: "backdrop-blur-md",
|
|
1371
|
+
lg: "backdrop-blur-lg",
|
|
1372
|
+
xl: "backdrop-blur-xl"
|
|
1373
|
+
}, U = {
|
|
1374
|
+
primary: "mcl-glass-primary",
|
|
1375
|
+
secondary: "mcl-glass-secondary",
|
|
1376
|
+
success: "mcl-glass-success",
|
|
1377
|
+
info: "mcl-glass-info",
|
|
1378
|
+
danger: "mcl-glass-danger",
|
|
1379
|
+
warning: "mcl-glass-warning",
|
|
1380
|
+
"light-1": "mcl-glass-light-1",
|
|
1381
|
+
"light-2": "mcl-glass-light-2",
|
|
1382
|
+
"light-3": "mcl-glass-light-3",
|
|
1383
|
+
"light-4": "mcl-glass-light-4",
|
|
1384
|
+
"dark-1": "mcl-glass-dark-1",
|
|
1385
|
+
"dark-2": "mcl-glass-dark-2",
|
|
1386
|
+
"dark-3": "mcl-glass-dark-3",
|
|
1387
|
+
"dark-4": "mcl-glass-dark-4",
|
|
1388
|
+
black: "mcl-glass-black",
|
|
1389
|
+
white: "mcl-glass-white",
|
|
1390
|
+
transparent: "mcl-glass-transparent"
|
|
1391
|
+
}, q = {
|
|
1392
|
+
10: "mcl-depth-10",
|
|
1393
|
+
20: "mcl-depth-20",
|
|
1394
|
+
30: "mcl-depth-30",
|
|
1395
|
+
40: "mcl-depth-40",
|
|
1396
|
+
50: "mcl-depth-50",
|
|
1397
|
+
60: "mcl-depth-60",
|
|
1398
|
+
70: "mcl-depth-70",
|
|
1399
|
+
80: "mcl-depth-80",
|
|
1400
|
+
90: "mcl-depth-90",
|
|
1401
|
+
100: "mcl-depth-100"
|
|
1402
|
+
}, J = (t, r, e, g = 10) => [
|
|
1403
|
+
"mcl-glassmorphism",
|
|
1404
|
+
U[t],
|
|
1405
|
+
$[r],
|
|
1406
|
+
j("BGOPACITY", e),
|
|
1407
|
+
q[g]
|
|
1408
|
+
].filter(Boolean).join(" "), K = {
|
|
5
1409
|
key: 0,
|
|
6
1410
|
class: "relative"
|
|
7
|
-
},
|
|
1411
|
+
}, Q = ["src", "alt"], Z = ["innerHTML"], _ = { class: "flex h-full flex-col justify-between" }, tt = { class: "px-xs pt-sm flex-1" }, rt = ["innerHTML"], et = ["innerHTML"], at = { class: "px-xs w-full" }, st = ["href", "target"], yt = /* @__PURE__ */ w({
|
|
8
1412
|
__name: "MclCardA",
|
|
9
1413
|
props: {
|
|
10
1414
|
title: {},
|
|
@@ -36,123 +1440,123 @@ const $ = {
|
|
|
36
1440
|
displayShadow: { type: Boolean, default: !0 }
|
|
37
1441
|
},
|
|
38
1442
|
emits: ["card-click", "card-btn-click"],
|
|
39
|
-
setup(
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
const
|
|
1443
|
+
setup(t, { emit: r }) {
|
|
1444
|
+
const e = t;
|
|
1445
|
+
R();
|
|
1446
|
+
const g = r, m = p(() => {
|
|
43
1447
|
const {
|
|
44
|
-
borderColor:
|
|
45
|
-
bgColor:
|
|
46
|
-
rounded:
|
|
47
|
-
enlargeOnHover:
|
|
48
|
-
displayShadow:
|
|
49
|
-
glass:
|
|
50
|
-
glassBlur:
|
|
51
|
-
glassOpacity:
|
|
52
|
-
fullWidth:
|
|
53
|
-
} =
|
|
1448
|
+
borderColor: a,
|
|
1449
|
+
bgColor: l,
|
|
1450
|
+
rounded: s,
|
|
1451
|
+
enlargeOnHover: i,
|
|
1452
|
+
displayShadow: f,
|
|
1453
|
+
glass: b,
|
|
1454
|
+
glassBlur: B,
|
|
1455
|
+
glassOpacity: L,
|
|
1456
|
+
fullWidth: S
|
|
1457
|
+
} = e;
|
|
54
1458
|
return [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
!
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1459
|
+
d("BORDER", a),
|
|
1460
|
+
d("BGCOLOR", l),
|
|
1461
|
+
!S && "max-w-[450px] sm:max-w-[350px]",
|
|
1462
|
+
s ? "rounded-lg" : "rounded-sm",
|
|
1463
|
+
i && "hover:scale-105 transition ease-in duration-300",
|
|
1464
|
+
f && "drop-shadow-md",
|
|
1465
|
+
b && J(l, B, L)
|
|
62
1466
|
].filter(Boolean).join(" ");
|
|
63
1467
|
}), u = p(() => {
|
|
64
|
-
const { titleSize:
|
|
1468
|
+
const { titleSize: a, titleColor: l, displayHighlight: s } = e;
|
|
65
1469
|
return [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1470
|
+
d("H3", a),
|
|
1471
|
+
d("TEXTCOLOR", l),
|
|
1472
|
+
s ? "mb-2xs" : "mb-xs"
|
|
69
1473
|
].filter(Boolean).join(" ");
|
|
70
|
-
}),
|
|
71
|
-
const { labelTextColor:
|
|
1474
|
+
}), y = p(() => {
|
|
1475
|
+
const { labelTextColor: a, labelColor: l } = e;
|
|
72
1476
|
return [
|
|
73
|
-
|
|
74
|
-
|
|
1477
|
+
d("TEXTCOLOR", a),
|
|
1478
|
+
d("BGCOLOR", l)
|
|
75
1479
|
].filter(Boolean).join(" ");
|
|
76
|
-
}),
|
|
77
|
-
const { ctaColor:
|
|
1480
|
+
}), T = p(() => {
|
|
1481
|
+
const { ctaColor: a, rounded: l } = e, s = ["light-1", "light-2", "light-3", "light-4"];
|
|
78
1482
|
return [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
1483
|
+
d("BTNCOLOR", a),
|
|
1484
|
+
s.includes(a) ? "text-black" : "text-white",
|
|
1485
|
+
l && "btn-round"
|
|
82
1486
|
].filter(Boolean).join(" ");
|
|
83
|
-
}),
|
|
84
|
-
const { title:
|
|
85
|
-
title:
|
|
86
|
-
url:
|
|
87
|
-
target:
|
|
1487
|
+
}), o = (a) => {
|
|
1488
|
+
const { title: l, ctaLink: s, ctaTarget: i, ctaAsLink: f } = e, b = {
|
|
1489
|
+
title: l,
|
|
1490
|
+
url: s,
|
|
1491
|
+
target: i || "_self"
|
|
88
1492
|
};
|
|
89
|
-
!
|
|
90
|
-
},
|
|
91
|
-
const { title:
|
|
92
|
-
|
|
93
|
-
title:
|
|
94
|
-
url:
|
|
95
|
-
target:
|
|
1493
|
+
!f && a.preventDefault(), g("card-btn-click", a, b);
|
|
1494
|
+
}, h = (a) => {
|
|
1495
|
+
const { title: l, ctaLink: s, ctaTarget: i } = e;
|
|
1496
|
+
g("card-click", a, {
|
|
1497
|
+
title: l,
|
|
1498
|
+
url: s,
|
|
1499
|
+
target: i || "_self"
|
|
96
1500
|
});
|
|
97
1501
|
};
|
|
98
|
-
return (
|
|
99
|
-
class:
|
|
100
|
-
onClick:
|
|
1502
|
+
return (a, l) => (x(), C("div", {
|
|
1503
|
+
class: c(["xs:w-auto flex w-full flex-shrink-0 flex-grow cursor-pointer flex-col overflow-hidden border", m.value]),
|
|
1504
|
+
onClick: h
|
|
101
1505
|
}, [
|
|
102
|
-
t.displayImage ? (
|
|
103
|
-
|
|
1506
|
+
t.displayImage ? (x(), C("div", K, [
|
|
1507
|
+
n("img", {
|
|
104
1508
|
src: t.imageSource,
|
|
105
1509
|
alt: t.imageAlt,
|
|
106
1510
|
class: "aspect-video min-w-full object-cover object-top"
|
|
107
|
-
}, null, 8,
|
|
108
|
-
t.displayLabel ? (
|
|
1511
|
+
}, null, 8, Q),
|
|
1512
|
+
t.displayLabel ? (x(), C("span", {
|
|
109
1513
|
key: 0,
|
|
110
|
-
class:
|
|
1514
|
+
class: c(["py-3xs px-2xs ml-xs absolute bottom-0 inline-block translate-y-[50%] text-xs font-bold", y.value]),
|
|
111
1515
|
innerHTML: t.labelText
|
|
112
|
-
}, null, 10,
|
|
113
|
-
])) :
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
!t.displayImage && t.displayLabel ? (
|
|
1516
|
+
}, null, 10, Z)) : v("", !0)
|
|
1517
|
+
])) : v("", !0),
|
|
1518
|
+
n("div", _, [
|
|
1519
|
+
n("div", tt, [
|
|
1520
|
+
!t.displayImage && t.displayLabel ? (x(), C("span", {
|
|
117
1521
|
key: 0,
|
|
118
|
-
class:
|
|
1522
|
+
class: c(["py-3xs px-2xs mb-2xs inline-block text-xs font-bold", y.value]),
|
|
119
1523
|
innerHTML: t.labelText
|
|
120
|
-
}, null, 10,
|
|
121
|
-
|
|
122
|
-
class:
|
|
1524
|
+
}, null, 10, rt)) : v("", !0),
|
|
1525
|
+
n("h3", {
|
|
1526
|
+
class: c(u.value),
|
|
123
1527
|
innerHTML: t.title
|
|
124
|
-
}, null, 10,
|
|
125
|
-
t.displayHighlight ? (
|
|
1528
|
+
}, null, 10, et),
|
|
1529
|
+
t.displayHighlight ? (x(), C("div", {
|
|
126
1530
|
key: 1,
|
|
127
|
-
class:
|
|
128
|
-
}, null, 2)) :
|
|
129
|
-
|
|
1531
|
+
class: c(["mb-xs h-3xs w-md", A(d)("BGCOLOR", t.highlightColor)])
|
|
1532
|
+
}, null, 2)) : v("", !0),
|
|
1533
|
+
n("div", {
|
|
130
1534
|
class: "mb-sm cursor-default",
|
|
131
|
-
onClick:
|
|
1535
|
+
onClick: l[0] || (l[0] = E(() => {
|
|
132
1536
|
}, ["stop"]))
|
|
133
1537
|
}, [
|
|
134
|
-
|
|
1538
|
+
V(a.$slots, "default")
|
|
135
1539
|
])
|
|
136
1540
|
]),
|
|
137
|
-
t.displayCta ? (
|
|
1541
|
+
t.displayCta ? (x(), C("div", {
|
|
138
1542
|
key: 0,
|
|
139
1543
|
class: "pb-sm cursor-default border-0",
|
|
140
|
-
onClick:
|
|
1544
|
+
onClick: l[2] || (l[2] = E(() => {
|
|
141
1545
|
}, ["stop"]))
|
|
142
1546
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
1547
|
+
n("div", at, [
|
|
1548
|
+
n("a", {
|
|
145
1549
|
href: t.ctaLink,
|
|
146
1550
|
target: t.ctaTarget,
|
|
147
|
-
class:
|
|
148
|
-
onClick:
|
|
149
|
-
},
|
|
1551
|
+
class: c(["btn btn-full", T.value]),
|
|
1552
|
+
onClick: l[1] || (l[1] = (s) => o(s))
|
|
1553
|
+
}, O(t.ctaText), 11, st)
|
|
150
1554
|
])
|
|
151
|
-
])) :
|
|
1555
|
+
])) : v("", !0)
|
|
152
1556
|
])
|
|
153
1557
|
], 2));
|
|
154
1558
|
}
|
|
155
|
-
}),
|
|
1559
|
+
}), lt = ["href", "target"], it = { class: "z-15 p-xs peer absolute inset-0 flex flex-col items-start justify-end transition-opacity duration-200 hover:opacity-100 [@media(hover:hover)]:opacity-0" }, ot = ["innerHTML"], dt = ["src", "alt"], kt = /* @__PURE__ */ w({
|
|
156
1560
|
__name: "MclCardB",
|
|
157
1561
|
props: {
|
|
158
1562
|
title: {},
|
|
@@ -169,56 +1573,56 @@ const $ = {
|
|
|
169
1573
|
rounded: { type: Boolean, default: !1 }
|
|
170
1574
|
},
|
|
171
1575
|
emits: ["card-click"],
|
|
172
|
-
setup(
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
const
|
|
176
|
-
const { borderColor:
|
|
177
|
-
return
|
|
1576
|
+
setup(t, { emit: r }) {
|
|
1577
|
+
const e = t;
|
|
1578
|
+
R();
|
|
1579
|
+
const g = r, m = p(() => {
|
|
1580
|
+
const { borderColor: o, rounded: h } = e, a = [d("BORDER", o)];
|
|
1581
|
+
return a.push(h ? "rounded-md" : "rounded-sm"), a.join(" ");
|
|
178
1582
|
}), u = p(() => {
|
|
179
|
-
const { displayGrayScale:
|
|
180
|
-
return
|
|
181
|
-
}),
|
|
182
|
-
const { titleSize:
|
|
1583
|
+
const { displayGrayScale: o } = e;
|
|
1584
|
+
return o ? "[@media(hover:hover)]:grayscale peer-hover:grayscale-0" : "";
|
|
1585
|
+
}), y = p(() => {
|
|
1586
|
+
const { titleSize: o, titleColor: h, titleBlockColor: a } = e;
|
|
183
1587
|
return [
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
1588
|
+
d("H3", o),
|
|
1589
|
+
d("TEXTCOLOR", h),
|
|
1590
|
+
d("BGCOLOR", a)
|
|
187
1591
|
].join(" ");
|
|
188
|
-
}),
|
|
189
|
-
const { title:
|
|
190
|
-
!
|
|
191
|
-
const
|
|
192
|
-
title:
|
|
193
|
-
url:
|
|
194
|
-
target:
|
|
1592
|
+
}), T = (o) => {
|
|
1593
|
+
const { title: h, ctaLink: a, ctaTarget: l, ctaAsLink: s } = e;
|
|
1594
|
+
!s && o.preventDefault();
|
|
1595
|
+
const i = {
|
|
1596
|
+
title: h,
|
|
1597
|
+
url: a,
|
|
1598
|
+
target: l || "_self"
|
|
195
1599
|
};
|
|
196
|
-
console.log(
|
|
1600
|
+
console.log(i), g("card-click", o, i);
|
|
197
1601
|
};
|
|
198
|
-
return (
|
|
199
|
-
class:
|
|
1602
|
+
return (o, h) => (x(), C("div", {
|
|
1603
|
+
class: c(["max-w-112.5 sm:max-w-87.5 xs:w-auto relative w-full shrink-0 grow cursor-pointer overflow-hidden border", m.value])
|
|
200
1604
|
}, [
|
|
201
|
-
|
|
202
|
-
href:
|
|
203
|
-
target:
|
|
204
|
-
onClick:
|
|
1605
|
+
n("a", {
|
|
1606
|
+
href: t.ctaLink,
|
|
1607
|
+
target: t.ctaTarget,
|
|
1608
|
+
onClick: h[0] || (h[0] = (a) => T(a))
|
|
205
1609
|
}, [
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
innerHTML:
|
|
209
|
-
class:
|
|
210
|
-
}, null, 10,
|
|
211
|
-
|
|
1610
|
+
n("div", it, [
|
|
1611
|
+
n("h3", {
|
|
1612
|
+
innerHTML: t.title,
|
|
1613
|
+
class: c(["px-xs py-2xs mb-2xs pointer-events-none inline-block tracking-wide", y.value])
|
|
1614
|
+
}, null, 10, ot),
|
|
1615
|
+
V(o.$slots, "default")
|
|
212
1616
|
]),
|
|
213
|
-
|
|
214
|
-
src:
|
|
215
|
-
alt:
|
|
216
|
-
class:
|
|
217
|
-
}, null, 10,
|
|
218
|
-
], 8,
|
|
1617
|
+
n("img", {
|
|
1618
|
+
src: t.imageSource,
|
|
1619
|
+
alt: t.imageAlt,
|
|
1620
|
+
class: c(["aspect-3/4 relative z-10 h-full w-full object-cover object-center transition-all duration-200", u.value])
|
|
1621
|
+
}, null, 10, dt)
|
|
1622
|
+
], 8, lt)
|
|
219
1623
|
], 2));
|
|
220
1624
|
}
|
|
221
|
-
}),
|
|
1625
|
+
}), nt = ["src", "alt"], ct = /* @__PURE__ */ w({
|
|
222
1626
|
__name: "MclCardC",
|
|
223
1627
|
props: {
|
|
224
1628
|
imageSource: {},
|
|
@@ -233,61 +1637,61 @@ const $ = {
|
|
|
233
1637
|
cardColor: { default: "primary" }
|
|
234
1638
|
},
|
|
235
1639
|
emits: ["card-click"],
|
|
236
|
-
setup(
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
return
|
|
242
|
-
}),
|
|
1640
|
+
setup(t, { emit: r }) {
|
|
1641
|
+
const e = t;
|
|
1642
|
+
R();
|
|
1643
|
+
const g = I(!1), m = r, u = p(() => {
|
|
1644
|
+
const o = [d("BGCOLOR", e.cardColor)];
|
|
1645
|
+
return g.value && o.push("flip-card"), o.join(" ");
|
|
1646
|
+
}), y = p(() => {
|
|
243
1647
|
const {
|
|
244
|
-
titleSize:
|
|
245
|
-
titleColor:
|
|
246
|
-
displayHighlight:
|
|
247
|
-
highlightColor:
|
|
248
|
-
highlightOpacity:
|
|
249
|
-
} =
|
|
250
|
-
|
|
251
|
-
|
|
1648
|
+
titleSize: o,
|
|
1649
|
+
titleColor: h,
|
|
1650
|
+
displayHighlight: a,
|
|
1651
|
+
highlightColor: l,
|
|
1652
|
+
highlightOpacity: s
|
|
1653
|
+
} = e, i = [
|
|
1654
|
+
d("H3", o),
|
|
1655
|
+
d("TEXTCOLOR", h)
|
|
252
1656
|
];
|
|
253
|
-
return
|
|
254
|
-
}),
|
|
255
|
-
|
|
1657
|
+
return a && (i.push("px-xs py-2xs mb-2xs rounded"), i.push(d("BGCOLOR", l)), i.push(d("BGOPACITY", s))), i.join(" ");
|
|
1658
|
+
}), T = (o) => {
|
|
1659
|
+
o.preventDefault(), g.value && m("card-click", o), g.value = !0;
|
|
256
1660
|
};
|
|
257
|
-
return (
|
|
258
|
-
class:
|
|
259
|
-
onClick:
|
|
1661
|
+
return (o, h) => (x(), C("div", {
|
|
1662
|
+
class: c(["card duration-1600 max-h-100 relative aspect-square overflow-hidden transition", u.value]),
|
|
1663
|
+
onClick: T
|
|
260
1664
|
}, [
|
|
261
|
-
|
|
262
|
-
src:
|
|
263
|
-
alt:
|
|
264
|
-
class:
|
|
265
|
-
|
|
266
|
-
"absolute
|
|
1665
|
+
n("img", {
|
|
1666
|
+
src: t.imageSource,
|
|
1667
|
+
alt: t.imageAlt,
|
|
1668
|
+
class: c([
|
|
1669
|
+
g.value ? "opacity-100" : "opacity-0",
|
|
1670
|
+
"duration-800 absolute aspect-square h-full w-full object-cover object-center transition-opacity delay-500"
|
|
267
1671
|
])
|
|
268
|
-
}, null, 10,
|
|
269
|
-
|
|
270
|
-
class:
|
|
271
|
-
|
|
272
|
-
"relative flex flex-col justify-end
|
|
1672
|
+
}, null, 10, nt),
|
|
1673
|
+
n("div", {
|
|
1674
|
+
class: c([
|
|
1675
|
+
g.value ? "cursor-pointer opacity-100" : "opacity-0",
|
|
1676
|
+
"p-sm duration-800 relative flex h-full flex-col justify-end transition delay-500"
|
|
273
1677
|
])
|
|
274
1678
|
}, [
|
|
275
|
-
|
|
1679
|
+
t.displayTitle ? (x(), C("h3", {
|
|
276
1680
|
key: 0,
|
|
277
|
-
class:
|
|
1681
|
+
class: c(["relative self-start", y.value])
|
|
278
1682
|
}, [
|
|
279
|
-
|
|
280
|
-
], 2)) :
|
|
281
|
-
|
|
1683
|
+
n("span", null, O(t.title), 1)
|
|
1684
|
+
], 2)) : v("", !0),
|
|
1685
|
+
V(o.$slots, "card-body", {}, void 0, !0)
|
|
282
1686
|
], 2)
|
|
283
1687
|
], 2));
|
|
284
1688
|
}
|
|
285
|
-
}),
|
|
286
|
-
const
|
|
287
|
-
for (const [
|
|
288
|
-
|
|
289
|
-
return
|
|
290
|
-
},
|
|
1689
|
+
}), D = (t, r) => {
|
|
1690
|
+
const e = t.__vccOpts || t;
|
|
1691
|
+
for (const [g, m] of r)
|
|
1692
|
+
e[g] = m;
|
|
1693
|
+
return e;
|
|
1694
|
+
}, vt = /* @__PURE__ */ D(ct, [["__scopeId", "data-v-f748c495"]]), gt = { class: "flex flex-col overflow-hidden rounded-md" }, ht = ["src", "alt"], ut = ["href", "target"], bt = /* @__PURE__ */ w({
|
|
291
1695
|
__name: "MclCardD",
|
|
292
1696
|
props: {
|
|
293
1697
|
displayImage: { type: Boolean, default: !0 },
|
|
@@ -313,8 +1717,8 @@ const $ = {
|
|
|
313
1717
|
customColor: {}
|
|
314
1718
|
},
|
|
315
1719
|
emits: ["card-click"],
|
|
316
|
-
setup(
|
|
317
|
-
const
|
|
1720
|
+
setup(t, { emit: r }) {
|
|
1721
|
+
const e = {
|
|
318
1722
|
primary: "from-primary",
|
|
319
1723
|
secondary: "from-secondary",
|
|
320
1724
|
success: "from-success",
|
|
@@ -332,7 +1736,7 @@ const $ = {
|
|
|
332
1736
|
black: "from-black",
|
|
333
1737
|
white: "from-white",
|
|
334
1738
|
transparent: "from-transparent"
|
|
335
|
-
},
|
|
1739
|
+
}, g = {
|
|
336
1740
|
primary: "via-primary",
|
|
337
1741
|
secondary: "via-secondary",
|
|
338
1742
|
success: "via-success",
|
|
@@ -350,7 +1754,7 @@ const $ = {
|
|
|
350
1754
|
black: "via-black",
|
|
351
1755
|
white: "via-white",
|
|
352
1756
|
transparent: "via-transparent"
|
|
353
|
-
},
|
|
1757
|
+
}, m = {
|
|
354
1758
|
primary: "to-primary",
|
|
355
1759
|
secondary: "to-secondary",
|
|
356
1760
|
success: "to-success",
|
|
@@ -368,77 +1772,77 @@ const $ = {
|
|
|
368
1772
|
black: "to-black",
|
|
369
1773
|
white: "to-white",
|
|
370
1774
|
transparent: "to-transparent"
|
|
371
|
-
}, u =
|
|
372
|
-
|
|
373
|
-
const
|
|
374
|
-
const { titleSize:
|
|
1775
|
+
}, u = t;
|
|
1776
|
+
R();
|
|
1777
|
+
const y = r, T = p(() => {
|
|
1778
|
+
const { titleSize: s, titleColor: i } = u;
|
|
375
1779
|
return [
|
|
376
|
-
|
|
377
|
-
|
|
1780
|
+
d("H2", s),
|
|
1781
|
+
d("TEXTCOLOR", i)
|
|
378
1782
|
].join(" ");
|
|
379
|
-
}),
|
|
380
|
-
const { ctaButton:
|
|
381
|
-
return
|
|
382
|
-
}),
|
|
1783
|
+
}), o = p(() => {
|
|
1784
|
+
const { ctaButton: s, ctaButtonColor: i, ctaButtonBlock: f } = u, b = [], B = ["light-1", "light-2", "light-3", "light-4"];
|
|
1785
|
+
return s ? b.push("btn", d("BTNCOLOR", i)) : b.push("mcl-link"), s && f && b.push("btn-full"), s && !B.includes(i) && b.push("text-white"), b.join(" ");
|
|
1786
|
+
}), h = p(() => ({
|
|
383
1787
|
"--border-width": `${u.borderWidth}px`
|
|
384
|
-
})),
|
|
385
|
-
const
|
|
1788
|
+
})), a = p(() => {
|
|
1789
|
+
const s = e[u.borderColor], i = g[u.gradient1], f = m[u.gradient2];
|
|
386
1790
|
return [
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
1791
|
+
d("BORDER", u.borderColor),
|
|
1792
|
+
s,
|
|
1793
|
+
i,
|
|
1794
|
+
f
|
|
391
1795
|
].join(" ");
|
|
392
|
-
}),
|
|
393
|
-
const { title:
|
|
394
|
-
title:
|
|
395
|
-
url:
|
|
396
|
-
target:
|
|
1796
|
+
}), l = (s) => {
|
|
1797
|
+
const { title: i, ctaLink: f, ctaLinkTarget: b, ctaAsLink: B } = u, L = {
|
|
1798
|
+
title: i,
|
|
1799
|
+
url: f,
|
|
1800
|
+
target: b || "_self"
|
|
397
1801
|
};
|
|
398
|
-
!
|
|
1802
|
+
!B && s.preventDefault(), y("card-click", s, L);
|
|
399
1803
|
};
|
|
400
|
-
return (
|
|
401
|
-
class:
|
|
402
|
-
style:
|
|
1804
|
+
return (s, i) => (x(), C("div", {
|
|
1805
|
+
class: c(["card xs:w-auto max-w-112.5 sm:max-w-87.5 w-full shrink-0 grow overflow-hidden rounded-md border from-20%", a.value]),
|
|
1806
|
+
style: W(h.value)
|
|
403
1807
|
}, [
|
|
404
|
-
|
|
405
|
-
|
|
1808
|
+
n("div", gt, [
|
|
1809
|
+
t.displayImage ? (x(), C("img", {
|
|
406
1810
|
key: 0,
|
|
407
|
-
src:
|
|
408
|
-
class: "max-h-
|
|
409
|
-
alt:
|
|
410
|
-
}, null, 8,
|
|
411
|
-
|
|
412
|
-
class:
|
|
1811
|
+
src: t.imageSource,
|
|
1812
|
+
class: "max-h-50 min-w-full object-cover object-top",
|
|
1813
|
+
alt: t.imageAlt
|
|
1814
|
+
}, null, 8, ht)) : v("", !0),
|
|
1815
|
+
n("div", {
|
|
1816
|
+
class: c(["p-xs", A(d)("BGCOLOR", t.bgColor)])
|
|
413
1817
|
}, [
|
|
414
|
-
|
|
415
|
-
class:
|
|
416
|
-
},
|
|
417
|
-
|
|
1818
|
+
n("h3", {
|
|
1819
|
+
class: c(["mb-xs", T.value])
|
|
1820
|
+
}, O(t.title), 3),
|
|
1821
|
+
t.displayHighlight ? (x(), C("div", {
|
|
418
1822
|
key: 0,
|
|
419
|
-
class:
|
|
420
|
-
}, null, 2)) :
|
|
421
|
-
|
|
422
|
-
|
|
1823
|
+
class: c(["mb-xs h-3xs w-md", A(d)("BGCOLOR", t.highlightColor)])
|
|
1824
|
+
}, null, 2)) : v("", !0),
|
|
1825
|
+
n("div", null, [
|
|
1826
|
+
V(s.$slots, "default", {}, void 0, !0)
|
|
423
1827
|
]),
|
|
424
|
-
|
|
425
|
-
class:
|
|
1828
|
+
n("div", {
|
|
1829
|
+
class: c(["mt-xs", { "mb-2xs": !t.ctaButton }])
|
|
426
1830
|
}, [
|
|
427
|
-
|
|
428
|
-
href:
|
|
429
|
-
target:
|
|
430
|
-
class:
|
|
431
|
-
onClick:
|
|
432
|
-
},
|
|
1831
|
+
n("a", {
|
|
1832
|
+
href: t.ctaLink,
|
|
1833
|
+
target: t.ctaLinkTarget,
|
|
1834
|
+
class: c(o.value),
|
|
1835
|
+
onClick: l
|
|
1836
|
+
}, O(t.ctaText), 11, ut)
|
|
433
1837
|
], 2)
|
|
434
1838
|
], 2)
|
|
435
1839
|
])
|
|
436
1840
|
], 6));
|
|
437
1841
|
}
|
|
438
|
-
}),
|
|
1842
|
+
}), Tt = /* @__PURE__ */ D(bt, [["__scopeId", "data-v-09214c6f"]]);
|
|
439
1843
|
export {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
1844
|
+
yt as MclCardA,
|
|
1845
|
+
kt as MclCardB,
|
|
1846
|
+
vt as MclCardC,
|
|
1847
|
+
Tt as MclCardD
|
|
444
1848
|
};
|