@cooperco/cooper-component-library 0.1.75 → 0.1.77
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/cms/accordion.query.ts +9 -1
- package/dist/cms/contentful/queries/accordion.query.js +9 -1
- package/dist/cms/contentful/queries/accordion.query.ts +9 -1
- package/dist/cms/contentful/queries/fragments.js +1 -0
- package/dist/cms/contentful/queries/fragments.ts +1 -0
- package/dist/cms/fragments.ts +1 -0
- package/dist/cms/queries/accordion.query.ts +9 -1
- package/dist/cms/queries/fragments.ts +1 -0
- package/dist/lib/component-lib.js +430 -427
- package/dist/lib/component-lib.umd.cjs +17 -17
- package/dist/types/cms/contentful/queries/chartModule.query.d.ts +2 -0
- package/dist/types/src/components/ChartModule/ChartModule.d.ts +51 -0
- package/dist/types/src/components/ChartModule/ChartModule.vue.d.ts +7 -0
- package/dist/types/src/components/_internal/SimpleCard.vue.d.ts +16 -0
- package/dist/types/src/components/_internal/SimpleCarousel.vue.d.ts +63 -0
- package/dist/types/src/config/defaultPassthrough/ChartModulePt.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +112 -113
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Component, ComponentPassthrough } from '../../types';
|
|
2
|
+
export interface ChartModulePassthrough extends ComponentPassthrough {
|
|
3
|
+
chart?: string;
|
|
4
|
+
legend?: string;
|
|
5
|
+
legendItem?: string;
|
|
6
|
+
legendCircle?: string;
|
|
7
|
+
tabs?: string;
|
|
8
|
+
tab?: string;
|
|
9
|
+
tabActive?: string;
|
|
10
|
+
footer?: string;
|
|
11
|
+
backButton?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ChartDataItem {
|
|
14
|
+
label: string;
|
|
15
|
+
value: number;
|
|
16
|
+
color: string;
|
|
17
|
+
drillDown?: ChartDrillDown;
|
|
18
|
+
}
|
|
19
|
+
export interface ChartDrillDown {
|
|
20
|
+
variant: 'Single' | 'Multi';
|
|
21
|
+
headline?: string;
|
|
22
|
+
subHeadline?: string;
|
|
23
|
+
bodyCopy?: string;
|
|
24
|
+
chartType?: 'pie' | 'doughnut';
|
|
25
|
+
chartData: ChartDataItem[];
|
|
26
|
+
tabs?: ChartTab[];
|
|
27
|
+
}
|
|
28
|
+
export interface ChartTab {
|
|
29
|
+
label: string;
|
|
30
|
+
headline?: string;
|
|
31
|
+
subHeadline?: string;
|
|
32
|
+
chartType?: 'pie' | 'doughnut';
|
|
33
|
+
chartData: ChartDataItem[];
|
|
34
|
+
}
|
|
35
|
+
export interface ChartModule extends Component {
|
|
36
|
+
__typename?: 'ChartModule';
|
|
37
|
+
variant: 'Single' | 'Multi' | 'Section';
|
|
38
|
+
headline?: string;
|
|
39
|
+
subHeadline?: string;
|
|
40
|
+
bodyCopy?: string;
|
|
41
|
+
chartHeadline?: string;
|
|
42
|
+
chartBodyCopy?: string;
|
|
43
|
+
footer?: string;
|
|
44
|
+
chartType?: 'pie' | 'doughnut';
|
|
45
|
+
chartData: ChartDataItem[];
|
|
46
|
+
tabs?: ChartTab[];
|
|
47
|
+
backgroundColor?: string;
|
|
48
|
+
parentBackgroundColor?: string;
|
|
49
|
+
pt?: ChartModulePassthrough;
|
|
50
|
+
isChild?: boolean;
|
|
51
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ChartModule } from './ChartModule';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<ChartModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChartModule> & Readonly<{}>, {
|
|
3
|
+
isChild: boolean;
|
|
4
|
+
variant: "Single" | "Multi" | "Section";
|
|
5
|
+
chartType: "pie" | "doughnut";
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SimpleCardProps {
|
|
2
|
+
rootClass?: string;
|
|
3
|
+
bodyClass?: string;
|
|
4
|
+
contentClass?: string;
|
|
5
|
+
footerClass?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<SimpleCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SimpleCardProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
8
|
+
content?(_: {}): any;
|
|
9
|
+
footer?(_: {}): any;
|
|
10
|
+
}>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _default: <T extends {
|
|
2
|
+
__typename?: string | undefined;
|
|
3
|
+
}>(__VLS_props: {
|
|
4
|
+
items: T[];
|
|
5
|
+
page?: number | undefined;
|
|
6
|
+
class?: string | undefined;
|
|
7
|
+
pt?: Record<string, string> | undefined;
|
|
8
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
9
|
+
attrs: any;
|
|
10
|
+
slots: {
|
|
11
|
+
header?(_: {}): any;
|
|
12
|
+
item?(_: {
|
|
13
|
+
data: T;
|
|
14
|
+
index: number;
|
|
15
|
+
}): any;
|
|
16
|
+
footer?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
emit: {};
|
|
19
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
|
20
|
+
props: {
|
|
21
|
+
items: T[];
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
class?: string | undefined;
|
|
24
|
+
pt?: Record<string, string> | undefined;
|
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
26
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
27
|
+
attrs: any;
|
|
28
|
+
slots: {
|
|
29
|
+
header?(_: {}): any;
|
|
30
|
+
item?(_: {
|
|
31
|
+
data: T;
|
|
32
|
+
index: number;
|
|
33
|
+
}): any;
|
|
34
|
+
footer?(_: {}): any;
|
|
35
|
+
};
|
|
36
|
+
emit: {};
|
|
37
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}> & {
|
|
40
|
+
__ctx?: {
|
|
41
|
+
props: {
|
|
42
|
+
items: T[];
|
|
43
|
+
page?: number | undefined;
|
|
44
|
+
class?: string | undefined;
|
|
45
|
+
pt?: Record<string, string> | undefined;
|
|
46
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
|
47
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
48
|
+
attrs: any;
|
|
49
|
+
slots: {
|
|
50
|
+
header?(_: {}): any;
|
|
51
|
+
item?(_: {
|
|
52
|
+
data: T;
|
|
53
|
+
index: number;
|
|
54
|
+
}): any;
|
|
55
|
+
footer?(_: {}): any;
|
|
56
|
+
};
|
|
57
|
+
emit: {};
|
|
58
|
+
} | undefined;
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_Prettify<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChartModulePt: import("./types").GenericComponentPassthrough;
|
|
@@ -5,6 +5,7 @@ import './assets/css/main.css';
|
|
|
5
5
|
import './assets/css/theme.css';
|
|
6
6
|
export * from './components/components';
|
|
7
7
|
export * from './components/types';
|
|
8
|
+
export * from './types';
|
|
8
9
|
import initGlobalComponents from './init';
|
|
9
10
|
import { overridePalette } from './config/colorPalettes';
|
|
10
11
|
import { overridePassthrough } from './config/defaultPassthrough/config';
|
package/package.json
CHANGED
|
@@ -1,114 +1,113 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
2
|
+
"name": "@cooperco/cooper-component-library",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.77",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/lib/component-lib.umd.cjs",
|
|
10
|
+
"module": "./dist/lib/component-lib.js",
|
|
11
|
+
"types": "./dist/types/src/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/lib/component-lib.js",
|
|
15
|
+
"require": "./dist/lib/component-lib.umd.cjs",
|
|
16
|
+
"types": "./dist/types/src/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./css/main.css": {
|
|
19
|
+
"import": "./dist/lib/css/main.css",
|
|
20
|
+
"require": "./dist/lib/css/main.css"
|
|
21
|
+
},
|
|
22
|
+
"./css/theme.css": {
|
|
23
|
+
"import": "./dist/lib/css/theme.css",
|
|
24
|
+
"require": "./dist/lib/css/theme.css"
|
|
25
|
+
},
|
|
26
|
+
"./cms/contentful/graphql": {
|
|
27
|
+
"import": "./dist/cms/contentful/queries/index.js",
|
|
28
|
+
"types": "./dist/cms/contentful/queries/index.d.ts"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@primevue/themes": "^4.0.0",
|
|
33
|
+
"@vueuse/components": "^11.1.0",
|
|
34
|
+
"@vueuse/core": "^11.1.0",
|
|
35
|
+
"contentful-management": "^11.68.0",
|
|
36
|
+
"contentful-migration": "^4.23.2",
|
|
37
|
+
"dotenv": "^17.2.3",
|
|
38
|
+
"graphql": "^16.9.0",
|
|
39
|
+
"graphql-tag": "^2.12.6",
|
|
40
|
+
"primeicons": "^7.0.0",
|
|
41
|
+
"primevue": "^3.0.0",
|
|
42
|
+
"tailwind-merge": "^2.4.0",
|
|
43
|
+
"vite-plugin-turbosnap": "^1.0.3",
|
|
44
|
+
"vue": "^3.5.6"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
48
|
+
"@cooperco/contentful-cli-migrations": "^0.5.2",
|
|
49
|
+
"@eslint/js": "^9.4.0",
|
|
50
|
+
"@storybook/addon-essentials": "^8.6.15",
|
|
51
|
+
"@storybook/addon-interactions": "^8.6.15",
|
|
52
|
+
"@storybook/addon-links": "^8.6.15",
|
|
53
|
+
"@storybook/blocks": "^8.6.15",
|
|
54
|
+
"@storybook/builder-vite": "^8.6.15",
|
|
55
|
+
"@storybook/test": "^8.6.15",
|
|
56
|
+
"@storybook/vue3": "^8.6.15",
|
|
57
|
+
"@storybook/vue3-vite": "^8.6.15",
|
|
58
|
+
"@tsconfig/node18": "^18.2.4",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
60
|
+
"@typescript-eslint/parser": "^8.24.1",
|
|
61
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
62
|
+
"@vue/tsconfig": "^0.5.1",
|
|
63
|
+
"autoprefixer": "^10.4.19",
|
|
64
|
+
"chromatic": "^15.1.0",
|
|
65
|
+
"eslint": "^8.57.0",
|
|
66
|
+
"eslint-config-prettier": "^9.1.0",
|
|
67
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
68
|
+
"globals": "^15.3.0",
|
|
69
|
+
"husky": "^9.1.4",
|
|
70
|
+
"jsdom": "^24.1.0",
|
|
71
|
+
"lint-staged": "^15.2.8",
|
|
72
|
+
"patch-package": "^8.0.0",
|
|
73
|
+
"postcss": "^8.4.38",
|
|
74
|
+
"prettier": "3.3.1",
|
|
75
|
+
"storybook": "^8.6.15",
|
|
76
|
+
"storybook-vue3-router": "^5.0.0",
|
|
77
|
+
"tailwind-config-viewer": "^2.0.2",
|
|
78
|
+
"tailwindcss": "^3.4.4",
|
|
79
|
+
"typescript": "~5.3.3",
|
|
80
|
+
"typescript-eslint": "^7.17.0",
|
|
81
|
+
"unplugin-vue-components": "^0.27.0",
|
|
82
|
+
"vite": "^5.2.0",
|
|
83
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
84
|
+
"vite-plugin-static-copy": "^1.0.6",
|
|
85
|
+
"vue-eslint-parser": "^9.4.3",
|
|
86
|
+
"vue-router": "^4.4.3",
|
|
87
|
+
"vue-tsc": "^2.0.29"
|
|
88
|
+
},
|
|
89
|
+
"peerDependencies": {
|
|
90
|
+
"graphql-tag": "^2.12.6",
|
|
91
|
+
"vue": "^3.0.0"
|
|
92
|
+
},
|
|
93
|
+
"lint-staged": {
|
|
94
|
+
"*.{json,js,ts,jsx,tsx,html,vue}": [
|
|
95
|
+
"prettier --write --ignore-unknown"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"dev": "vite",
|
|
100
|
+
"check-types": "vue-tsc",
|
|
101
|
+
"build:types": "vue-tsc --emitDeclarationOnly --outDir dist/types",
|
|
102
|
+
"build:cms": "tsc -p tsconfig.cms.json",
|
|
103
|
+
"build": "pnpm run build:types && pnpm run build:cms && vite build",
|
|
104
|
+
"preview": "vite preview",
|
|
105
|
+
"tail": "tailwind-config-viewer -o",
|
|
106
|
+
"storybook": "storybook dev -p 6006",
|
|
107
|
+
"build-storybook": "storybook build",
|
|
108
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
109
|
+
"lint": "eslint . --no-fix",
|
|
110
|
+
"lint:fix": "eslint . --fix --quiet",
|
|
111
|
+
"local-test": "pnpm run build && pnpm pack"
|
|
112
|
+
}
|
|
113
|
+
}
|