@bobbykim/mcl-cards 0.2.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,135 @@
1
+ import type { ColorPalette, CrossOrigin, CtaTarget, HeadingSize } from '@bobbykim/manguito-theme';
2
+ import type { ColorMap } from './index.types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ displayImage?: boolean | undefined;
5
+ imageSource?: string | undefined;
6
+ imageAlt?: string | undefined;
7
+ imageCors?: CrossOrigin | undefined;
8
+ title: string;
9
+ titleSize?: HeadingSize | undefined;
10
+ titleColor?: ColorPalette | undefined;
11
+ bgColor?: ColorPalette | undefined;
12
+ displayHighlight?: boolean | undefined;
13
+ highlightColor?: ColorPalette | undefined;
14
+ ctaText?: string | undefined;
15
+ ctaLink: string;
16
+ ctaLinkTarget?: CtaTarget | undefined;
17
+ ctaAsLink?: boolean | undefined;
18
+ ctaButton?: boolean | undefined;
19
+ ctaButtonColor?: ColorPalette | undefined;
20
+ ctaButtonBlock?: boolean | undefined;
21
+ borderWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
22
+ borderColor?: ColorPalette | undefined;
23
+ gradient1?: ColorPalette | undefined;
24
+ gradient2?: ColorPalette | undefined;
25
+ customColor?: ColorMap | undefined;
26
+ }>, {
27
+ displayImage: boolean;
28
+ imageAlt: string;
29
+ imageCors: string;
30
+ titleSize: string;
31
+ titleColor: string;
32
+ bgColor: string;
33
+ displayHighlight: boolean;
34
+ highlightColor: string;
35
+ ctaText: string;
36
+ ctaLinkTarget: string;
37
+ ctaAsLink: boolean;
38
+ ctaButton: boolean;
39
+ ctaButtonColor: string;
40
+ ctaButtonBlock: boolean;
41
+ borderWidth: number;
42
+ borderColor: string;
43
+ gradient1: string;
44
+ gradient2: string;
45
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
+ "card-click": (...args: any[]) => void;
47
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
48
+ displayImage?: boolean | undefined;
49
+ imageSource?: string | undefined;
50
+ imageAlt?: string | undefined;
51
+ imageCors?: CrossOrigin | undefined;
52
+ title: string;
53
+ titleSize?: HeadingSize | undefined;
54
+ titleColor?: ColorPalette | undefined;
55
+ bgColor?: ColorPalette | undefined;
56
+ displayHighlight?: boolean | undefined;
57
+ highlightColor?: ColorPalette | undefined;
58
+ ctaText?: string | undefined;
59
+ ctaLink: string;
60
+ ctaLinkTarget?: CtaTarget | undefined;
61
+ ctaAsLink?: boolean | undefined;
62
+ ctaButton?: boolean | undefined;
63
+ ctaButtonColor?: ColorPalette | undefined;
64
+ ctaButtonBlock?: boolean | undefined;
65
+ borderWidth?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | undefined;
66
+ borderColor?: ColorPalette | undefined;
67
+ gradient1?: ColorPalette | undefined;
68
+ gradient2?: ColorPalette | undefined;
69
+ customColor?: ColorMap | undefined;
70
+ }>, {
71
+ displayImage: boolean;
72
+ imageAlt: string;
73
+ imageCors: string;
74
+ titleSize: string;
75
+ titleColor: string;
76
+ bgColor: string;
77
+ displayHighlight: boolean;
78
+ highlightColor: string;
79
+ ctaText: string;
80
+ ctaLinkTarget: string;
81
+ ctaAsLink: boolean;
82
+ ctaButton: boolean;
83
+ ctaButtonColor: string;
84
+ ctaButtonBlock: boolean;
85
+ borderWidth: number;
86
+ borderColor: string;
87
+ gradient1: string;
88
+ gradient2: string;
89
+ }>>> & {
90
+ "onCard-click"?: ((...args: any[]) => any) | undefined;
91
+ }, {
92
+ titleColor: ColorPalette;
93
+ titleSize: HeadingSize;
94
+ borderColor: ColorPalette;
95
+ bgColor: ColorPalette;
96
+ displayImage: boolean;
97
+ imageAlt: string;
98
+ imageCors: CrossOrigin;
99
+ ctaAsLink: boolean;
100
+ ctaText: string;
101
+ displayHighlight: boolean;
102
+ highlightColor: ColorPalette;
103
+ ctaLinkTarget: CtaTarget;
104
+ ctaButton: boolean;
105
+ ctaButtonColor: ColorPalette;
106
+ ctaButtonBlock: boolean;
107
+ borderWidth: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
108
+ gradient1: ColorPalette;
109
+ gradient2: ColorPalette;
110
+ }, {}>, {
111
+ default?(_: {}): any;
112
+ }>;
113
+ export default _default;
114
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
115
+ type __VLS_TypePropsToRuntimeProps<T> = {
116
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
117
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
118
+ } : {
119
+ type: import('vue').PropType<T[K]>;
120
+ required: true;
121
+ };
122
+ };
123
+ type __VLS_WithDefaults<P, D> = {
124
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
125
+ default: D[K];
126
+ }> : P[K];
127
+ };
128
+ type __VLS_Prettify<T> = {
129
+ [K in keyof T]: T[K];
130
+ } & {};
131
+ type __VLS_WithTemplateSlots<T, S> = T & {
132
+ new (): {
133
+ $slots: S;
134
+ };
135
+ };
@@ -0,0 +1,4 @@
1
+ import type { ColorPalette } from '@bobbykim/manguito-theme';
2
+ export type ColorMap = {
3
+ [key in ColorPalette]: string;
4
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type { ColorPalette } from '@bobbykim/manguito-theme'
2
+
3
+ export type ColorMap = {
4
+ [key in ColorPalette]: string
5
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@bobbykim/mcl-cards",
3
+ "version": "0.2.0",
4
+ "description": "",
5
+ "type": "module",
6
+ "main": "index.ts",
7
+ "scripts": {
8
+ "build": "vue-tsc --project tsconfig.vue.json && tsc"
9
+ },
10
+ "author": {
11
+ "name": "Bobby Kim",
12
+ "url": "https://www.devbobbykim.com/"
13
+ },
14
+ "homepage": "https://manguito-component-library.vercel.app/",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/bobbykim89/manguito-component-library.git"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "license": "MIT",
23
+ "dependencies": {
24
+ "@bobbykim/manguito-theme": "^0.14.0"
25
+ },
26
+ "gitHead": "4d94a8d34988d926c8d465891fd7aa535cffdf33"
27
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["./**/*.ts"],
4
+ "exclude": ["node_modules", "./**/*.vue.d.ts", "./**/*.vue"],
5
+ "compilerOptions": {
6
+ "skipLibCheck": true,
7
+ "declaration": true
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["./**/*.vue"],
4
+ "exclude": ["node_modules"],
5
+ "compilerOptions": {
6
+ "declaration": true,
7
+ "emitDeclarationOnly": true
8
+ }
9
+ }