@bobbykim/mcl-cards 0.6.0 → 0.7.0

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.
@@ -0,0 +1,503 @@
1
+ import { ColorPalette } from '@bobbykim/manguito-theme';
2
+ import { ComponentOptionsMixin } from 'vue';
3
+ import { CrossOrigin } from '@bobbykim/manguito-theme';
4
+ import { CtaTarget } from '@bobbykim/manguito-theme';
5
+ import { DefineComponent } from 'vue';
6
+ import { ExtractPropTypes } from 'vue';
7
+ import { HeadingSize } from '@bobbykim/manguito-theme';
8
+ import { OpacityRange } from '@bobbykim/manguito-theme';
9
+ import { PropType } from 'vue';
10
+ import { PublicProps } from 'vue';
11
+
12
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+
14
+ declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
15
+
16
+ declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
17
+
18
+ declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
19
+
20
+ declare type __VLS_Prettify<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
23
+
24
+ declare type __VLS_Prettify_2<T> = {
25
+ [K in keyof T]: T[K];
26
+ } & {};
27
+
28
+ declare type __VLS_Prettify_3<T> = {
29
+ [K in keyof T]: T[K];
30
+ } & {};
31
+
32
+ declare type __VLS_Prettify_4<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
35
+
36
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
44
+
45
+ declare type __VLS_TypePropsToRuntimeProps_2<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
48
+ } : {
49
+ type: PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
53
+
54
+ declare type __VLS_TypePropsToRuntimeProps_3<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
57
+ } : {
58
+ type: PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
62
+
63
+ declare type __VLS_TypePropsToRuntimeProps_4<T> = {
64
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
65
+ type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
66
+ } : {
67
+ type: PropType<T[K]>;
68
+ required: true;
69
+ };
70
+ };
71
+
72
+ declare type __VLS_WithDefaults<P, D> = {
73
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
74
+ default: D[K];
75
+ }> : P[K];
76
+ };
77
+
78
+ declare type __VLS_WithDefaults_2<P, D> = {
79
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
80
+ default: D[K];
81
+ }> : P[K];
82
+ };
83
+
84
+ declare type __VLS_WithDefaults_3<P, D> = {
85
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
86
+ default: D[K];
87
+ }> : P[K];
88
+ };
89
+
90
+ declare type __VLS_WithDefaults_4<P, D> = {
91
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
92
+ default: D[K];
93
+ }> : P[K];
94
+ };
95
+
96
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
97
+ new (): {
98
+ $slots: S;
99
+ };
100
+ };
101
+
102
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
107
+
108
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
109
+ new (): {
110
+ $slots: S;
111
+ };
112
+ };
113
+
114
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
115
+ new (): {
116
+ $slots: S;
117
+ };
118
+ };
119
+
120
+ export declare interface CardClickEvent {
121
+ title: string;
122
+ url: string;
123
+ target?: CtaTarget;
124
+ }
125
+
126
+ declare type ColorMap = {
127
+ [key in ColorPalette]: string;
128
+ };
129
+
130
+ export declare const MclCardA: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
131
+ title: string;
132
+ titleSize?: HeadingSize | undefined;
133
+ titleColor?: ColorPalette | undefined;
134
+ borderColor?: ColorPalette | undefined;
135
+ bgColor?: ColorPalette | undefined;
136
+ displayImage?: boolean | undefined;
137
+ imageSource?: string | undefined;
138
+ imageAlt?: string | undefined;
139
+ imageCors?: CrossOrigin | undefined;
140
+ displayCta?: boolean | undefined;
141
+ ctaAsLink?: boolean | undefined;
142
+ ctaText?: string | undefined;
143
+ ctaColor?: ColorPalette | undefined;
144
+ ctaLink?: string | undefined;
145
+ ctaTarget?: CtaTarget | undefined;
146
+ displayLabel?: boolean | undefined;
147
+ labelText?: string | undefined;
148
+ labelTextColor?: ColorPalette | undefined;
149
+ labelColor?: ColorPalette | undefined;
150
+ enlargeOnHover?: boolean | undefined;
151
+ displayHighlight?: boolean | undefined;
152
+ highlightColor?: ColorPalette | undefined;
153
+ rounded?: boolean | undefined;
154
+ displayShadow?: boolean | undefined;
155
+ }>, {
156
+ titleSize: string;
157
+ titleColor: string;
158
+ borderColor: string;
159
+ bgColor: string;
160
+ displayImage: boolean;
161
+ imageCors: string;
162
+ displayCta: boolean;
163
+ ctaAsLink: boolean;
164
+ ctaColor: string;
165
+ ctaLink: string;
166
+ ctaTarget: string;
167
+ ctaText: string;
168
+ displayLabel: boolean;
169
+ labelText: string;
170
+ labelTextColor: string;
171
+ labelColor: string;
172
+ displayHighlight: boolean;
173
+ highlightColor: string;
174
+ enlargeOnHover: boolean;
175
+ rounded: boolean;
176
+ displayShadow: boolean;
177
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
178
+ "card-click": (event: Event, item: CardClickEvent) => void;
179
+ "card-btn-click": (event: Event, item: CardClickEvent) => void;
180
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
181
+ title: string;
182
+ titleSize?: HeadingSize | undefined;
183
+ titleColor?: ColorPalette | undefined;
184
+ borderColor?: ColorPalette | undefined;
185
+ bgColor?: ColorPalette | undefined;
186
+ displayImage?: boolean | undefined;
187
+ imageSource?: string | undefined;
188
+ imageAlt?: string | undefined;
189
+ imageCors?: CrossOrigin | undefined;
190
+ displayCta?: boolean | undefined;
191
+ ctaAsLink?: boolean | undefined;
192
+ ctaText?: string | undefined;
193
+ ctaColor?: ColorPalette | undefined;
194
+ ctaLink?: string | undefined;
195
+ ctaTarget?: CtaTarget | undefined;
196
+ displayLabel?: boolean | undefined;
197
+ labelText?: string | undefined;
198
+ labelTextColor?: ColorPalette | undefined;
199
+ labelColor?: ColorPalette | undefined;
200
+ enlargeOnHover?: boolean | undefined;
201
+ displayHighlight?: boolean | undefined;
202
+ highlightColor?: ColorPalette | undefined;
203
+ rounded?: boolean | undefined;
204
+ displayShadow?: boolean | undefined;
205
+ }>, {
206
+ titleSize: string;
207
+ titleColor: string;
208
+ borderColor: string;
209
+ bgColor: string;
210
+ displayImage: boolean;
211
+ imageCors: string;
212
+ displayCta: boolean;
213
+ ctaAsLink: boolean;
214
+ ctaColor: string;
215
+ ctaLink: string;
216
+ ctaTarget: string;
217
+ ctaText: string;
218
+ displayLabel: boolean;
219
+ labelText: string;
220
+ labelTextColor: string;
221
+ labelColor: string;
222
+ displayHighlight: boolean;
223
+ highlightColor: string;
224
+ enlargeOnHover: boolean;
225
+ rounded: boolean;
226
+ displayShadow: boolean;
227
+ }>>> & {
228
+ "onCard-click"?: ((event: Event, item: CardClickEvent) => any) | undefined;
229
+ "onCard-btn-click"?: ((event: Event, item: CardClickEvent) => any) | undefined;
230
+ }, {
231
+ titleSize: HeadingSize;
232
+ titleColor: ColorPalette;
233
+ borderColor: ColorPalette;
234
+ bgColor: ColorPalette;
235
+ displayImage: boolean;
236
+ imageCors: CrossOrigin;
237
+ displayCta: boolean;
238
+ ctaAsLink: boolean;
239
+ ctaText: string;
240
+ ctaColor: ColorPalette;
241
+ ctaLink: string;
242
+ ctaTarget: CtaTarget;
243
+ displayLabel: boolean;
244
+ labelText: string;
245
+ labelTextColor: ColorPalette;
246
+ labelColor: ColorPalette;
247
+ enlargeOnHover: boolean;
248
+ displayHighlight: boolean;
249
+ highlightColor: ColorPalette;
250
+ rounded: boolean;
251
+ displayShadow: boolean;
252
+ }, {}>, Readonly<{
253
+ default: any;
254
+ }> & {
255
+ default: any;
256
+ }>;
257
+
258
+ export declare const MclCardB: __VLS_WithTemplateSlots_2<DefineComponent<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
259
+ title: string;
260
+ titleSize?: HeadingSize | undefined;
261
+ titleColor?: ColorPalette | undefined;
262
+ titleBlockColor?: ColorPalette | undefined;
263
+ borderColor?: ColorPalette | undefined;
264
+ imageSource?: string | undefined;
265
+ imageAlt?: string | undefined;
266
+ imageCors?: CrossOrigin | undefined;
267
+ displayGrayScale?: boolean | undefined;
268
+ ctaAsLink?: boolean | undefined;
269
+ ctaLink?: string | undefined;
270
+ ctaTarget?: CtaTarget | undefined;
271
+ rounded?: boolean | undefined;
272
+ }>, {
273
+ titleSize: string;
274
+ titleColor: string;
275
+ titleBlockColor: string;
276
+ borderColor: string;
277
+ displayGrayScale: boolean;
278
+ imageCors: string;
279
+ ctaAsLink: boolean;
280
+ ctaLink: string;
281
+ ctaTarget: string;
282
+ rounded: boolean;
283
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
284
+ "card-click": (event: Event, item: CardClickEvent) => void;
285
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
286
+ title: string;
287
+ titleSize?: HeadingSize | undefined;
288
+ titleColor?: ColorPalette | undefined;
289
+ titleBlockColor?: ColorPalette | undefined;
290
+ borderColor?: ColorPalette | undefined;
291
+ imageSource?: string | undefined;
292
+ imageAlt?: string | undefined;
293
+ imageCors?: CrossOrigin | undefined;
294
+ displayGrayScale?: boolean | undefined;
295
+ ctaAsLink?: boolean | undefined;
296
+ ctaLink?: string | undefined;
297
+ ctaTarget?: CtaTarget | undefined;
298
+ rounded?: boolean | undefined;
299
+ }>, {
300
+ titleSize: string;
301
+ titleColor: string;
302
+ titleBlockColor: string;
303
+ borderColor: string;
304
+ displayGrayScale: boolean;
305
+ imageCors: string;
306
+ ctaAsLink: boolean;
307
+ ctaLink: string;
308
+ ctaTarget: string;
309
+ rounded: boolean;
310
+ }>>> & {
311
+ "onCard-click"?: ((event: Event, item: CardClickEvent) => any) | undefined;
312
+ }, {
313
+ titleSize: HeadingSize;
314
+ titleColor: ColorPalette;
315
+ borderColor: ColorPalette;
316
+ imageCors: CrossOrigin;
317
+ ctaAsLink: boolean;
318
+ ctaLink: string;
319
+ ctaTarget: CtaTarget;
320
+ rounded: boolean;
321
+ titleBlockColor: ColorPalette;
322
+ displayGrayScale: boolean;
323
+ }, {}>, Readonly<{
324
+ default: any;
325
+ }> & {
326
+ default: any;
327
+ }>;
328
+
329
+ export declare const MclCardC: __VLS_WithTemplateSlots_3<DefineComponent<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
330
+ imageSource: string;
331
+ imageAlt?: string | undefined;
332
+ title?: string | undefined;
333
+ titleSize?: HeadingSize | undefined;
334
+ titleColor?: ColorPalette | undefined;
335
+ displayHighlight?: boolean | undefined;
336
+ highlightColor?: ColorPalette | undefined;
337
+ highlightOpacity?: OpacityRange | undefined;
338
+ displayTitle?: boolean | undefined;
339
+ cardColor?: ColorPalette | undefined;
340
+ imageCors?: CrossOrigin | undefined;
341
+ }>, {
342
+ titleSize: string;
343
+ titleColor: string;
344
+ displayHighlight: boolean;
345
+ highlightColor: string;
346
+ highlightOpacity: number;
347
+ displayTitle: boolean;
348
+ cardColor: string;
349
+ imageCors: string;
350
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
351
+ "card-click": (event: Event) => void;
352
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
353
+ imageSource: string;
354
+ imageAlt?: string | undefined;
355
+ title?: string | undefined;
356
+ titleSize?: HeadingSize | undefined;
357
+ titleColor?: ColorPalette | undefined;
358
+ displayHighlight?: boolean | undefined;
359
+ highlightColor?: ColorPalette | undefined;
360
+ highlightOpacity?: OpacityRange | undefined;
361
+ displayTitle?: boolean | undefined;
362
+ cardColor?: ColorPalette | undefined;
363
+ imageCors?: CrossOrigin | undefined;
364
+ }>, {
365
+ titleSize: string;
366
+ titleColor: string;
367
+ displayHighlight: boolean;
368
+ highlightColor: string;
369
+ highlightOpacity: number;
370
+ displayTitle: boolean;
371
+ cardColor: string;
372
+ imageCors: string;
373
+ }>>> & {
374
+ "onCard-click"?: ((event: Event) => any) | undefined;
375
+ }, {
376
+ titleSize: HeadingSize;
377
+ titleColor: ColorPalette;
378
+ imageCors: CrossOrigin;
379
+ displayHighlight: boolean;
380
+ highlightColor: ColorPalette;
381
+ highlightOpacity: OpacityRange;
382
+ displayTitle: boolean;
383
+ cardColor: ColorPalette;
384
+ }, {}>, Readonly<{
385
+ 'card-body': any;
386
+ }> & {
387
+ 'card-body': any;
388
+ }>;
389
+
390
+ export declare const MclCardD: __VLS_WithTemplateSlots_4<DefineComponent<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
391
+ displayImage?: boolean | undefined;
392
+ imageSource?: string | undefined;
393
+ imageAlt?: string | undefined;
394
+ imageCors?: CrossOrigin | undefined;
395
+ title: string;
396
+ titleSize?: HeadingSize | undefined;
397
+ titleColor?: ColorPalette | undefined;
398
+ bgColor?: ColorPalette | undefined;
399
+ displayHighlight?: boolean | undefined;
400
+ highlightColor?: ColorPalette | undefined;
401
+ ctaText?: string | undefined;
402
+ ctaLink: string;
403
+ ctaLinkTarget?: CtaTarget | undefined;
404
+ ctaAsLink?: boolean | undefined;
405
+ ctaButton?: boolean | undefined;
406
+ ctaButtonColor?: ColorPalette | undefined;
407
+ ctaButtonBlock?: boolean | undefined;
408
+ borderWidth?: 1 | 3 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
409
+ borderColor?: ColorPalette | undefined;
410
+ gradient1?: ColorPalette | undefined;
411
+ gradient2?: ColorPalette | undefined;
412
+ customColor?: ColorMap | undefined;
413
+ }>, {
414
+ displayImage: boolean;
415
+ imageAlt: string;
416
+ imageCors: string;
417
+ titleSize: string;
418
+ titleColor: string;
419
+ bgColor: string;
420
+ displayHighlight: boolean;
421
+ highlightColor: string;
422
+ ctaText: string;
423
+ ctaLinkTarget: string;
424
+ ctaAsLink: boolean;
425
+ ctaButton: boolean;
426
+ ctaButtonColor: string;
427
+ ctaButtonBlock: boolean;
428
+ borderWidth: number;
429
+ borderColor: string;
430
+ gradient1: string;
431
+ gradient2: string;
432
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
433
+ "card-click": (event: Event, item: CardClickEvent) => void;
434
+ }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_4<{
435
+ displayImage?: boolean | undefined;
436
+ imageSource?: string | undefined;
437
+ imageAlt?: string | undefined;
438
+ imageCors?: CrossOrigin | undefined;
439
+ title: string;
440
+ titleSize?: HeadingSize | undefined;
441
+ titleColor?: ColorPalette | undefined;
442
+ bgColor?: ColorPalette | undefined;
443
+ displayHighlight?: boolean | undefined;
444
+ highlightColor?: ColorPalette | undefined;
445
+ ctaText?: string | undefined;
446
+ ctaLink: string;
447
+ ctaLinkTarget?: CtaTarget | undefined;
448
+ ctaAsLink?: boolean | undefined;
449
+ ctaButton?: boolean | undefined;
450
+ ctaButtonColor?: ColorPalette | undefined;
451
+ ctaButtonBlock?: boolean | undefined;
452
+ borderWidth?: 1 | 3 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
453
+ borderColor?: ColorPalette | undefined;
454
+ gradient1?: ColorPalette | undefined;
455
+ gradient2?: ColorPalette | undefined;
456
+ customColor?: ColorMap | undefined;
457
+ }>, {
458
+ displayImage: boolean;
459
+ imageAlt: string;
460
+ imageCors: string;
461
+ titleSize: string;
462
+ titleColor: string;
463
+ bgColor: string;
464
+ displayHighlight: boolean;
465
+ highlightColor: string;
466
+ ctaText: string;
467
+ ctaLinkTarget: string;
468
+ ctaAsLink: boolean;
469
+ ctaButton: boolean;
470
+ ctaButtonColor: string;
471
+ ctaButtonBlock: boolean;
472
+ borderWidth: number;
473
+ borderColor: string;
474
+ gradient1: string;
475
+ gradient2: string;
476
+ }>>> & {
477
+ "onCard-click"?: ((event: Event, item: CardClickEvent) => any) | undefined;
478
+ }, {
479
+ titleSize: HeadingSize;
480
+ titleColor: ColorPalette;
481
+ borderColor: ColorPalette;
482
+ bgColor: ColorPalette;
483
+ displayImage: boolean;
484
+ imageAlt: string;
485
+ imageCors: CrossOrigin;
486
+ ctaAsLink: boolean;
487
+ ctaText: string;
488
+ displayHighlight: boolean;
489
+ highlightColor: ColorPalette;
490
+ ctaLinkTarget: CtaTarget;
491
+ ctaButton: boolean;
492
+ ctaButtonColor: ColorPalette;
493
+ ctaButtonBlock: boolean;
494
+ borderWidth: 1 | 3 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
495
+ gradient1: ColorPalette;
496
+ gradient2: ColorPalette;
497
+ }, {}>, Readonly<{
498
+ default: any;
499
+ }> & {
500
+ default: any;
501
+ }>;
502
+
503
+ export { }