@cooperco/cooper-component-library 0.1.78 → 0.1.80
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/0065-create-hello-banner.cjs +62 -0
- package/dist/cms/0066-add-tile-collection-to-container-module.cjs +86 -0
- package/dist/cms/0067-add-cta-to-tile-collection-module.cjs +37 -0
- package/dist/cms/0068-add-body-copy-alignment-to-tile-content.cjs +35 -0
- package/dist/cms/0069-add-footer-to-tile-content.cjs +25 -0
- package/dist/cms/containerModule.query.ts +22 -0
- package/dist/cms/contentful/migrations/drafts/create-hello-banner.cjs +62 -0
- package/dist/cms/contentful/migrations/scripts/0065-create-hello-banner.cjs +62 -0
- package/dist/cms/contentful/migrations/scripts/0066-add-tile-collection-to-container-module.cjs +86 -0
- package/dist/cms/contentful/migrations/scripts/0067-add-cta-to-tile-collection-module.cjs +37 -0
- package/dist/cms/contentful/migrations/scripts/0068-add-body-copy-alignment-to-tile-content.cjs +35 -0
- package/dist/cms/contentful/migrations/scripts/0069-add-footer-to-tile-content.cjs +25 -0
- package/dist/cms/contentful/queries/containerModule.query.js +22 -0
- package/dist/cms/contentful/queries/containerModule.query.ts +22 -0
- package/dist/cms/contentful/queries/fragments.js +2 -0
- package/dist/cms/contentful/queries/fragments.ts +2 -0
- package/dist/cms/contentful/queries/tileCollection.query.js +7 -1
- package/dist/cms/contentful/queries/tileCollection.query.ts +11 -1
- package/dist/cms/create-hello-banner.cjs +62 -0
- package/dist/cms/drafts/create-hello-banner.cjs +62 -0
- package/dist/cms/fragments.ts +2 -0
- package/dist/cms/migrations/drafts/create-hello-banner.cjs +62 -0
- package/dist/cms/migrations/scripts/0065-create-hello-banner.cjs +62 -0
- package/dist/cms/migrations/scripts/0066-add-tile-collection-to-container-module.cjs +86 -0
- package/dist/cms/migrations/scripts/0067-add-cta-to-tile-collection-module.cjs +37 -0
- package/dist/cms/migrations/scripts/0068-add-body-copy-alignment-to-tile-content.cjs +35 -0
- package/dist/cms/migrations/scripts/0069-add-footer-to-tile-content.cjs +25 -0
- package/dist/cms/queries/containerModule.query.ts +22 -0
- package/dist/cms/queries/fragments.ts +2 -0
- package/dist/cms/queries/tileCollection.query.ts +11 -1
- package/dist/cms/scripts/0065-create-hello-banner.cjs +62 -0
- package/dist/cms/scripts/0066-add-tile-collection-to-container-module.cjs +86 -0
- package/dist/cms/scripts/0067-add-cta-to-tile-collection-module.cjs +37 -0
- package/dist/cms/scripts/0068-add-body-copy-alignment-to-tile-content.cjs +35 -0
- package/dist/cms/scripts/0069-add-footer-to-tile-content.cjs +25 -0
- package/dist/cms/tileCollection.query.ts +11 -1
- package/dist/lib/component-lib.js +1693 -1687
- package/dist/lib/component-lib.umd.cjs +19 -19
- package/dist/lib/style.css +1 -1
- package/dist/types/src/components/HelloBanner/HelloBanner.d.ts +23 -0
- package/dist/types/src/components/HelloBanner/HelloBanner.vue.d.ts +3 -0
- package/dist/types/src/components/TileContent/TileContent.d.ts +1 -0
- package/dist/types/src/components/components.d.ts +1 -1
- package/dist/types/src/components/types.d.ts +1 -1
- package/dist/types/src/config/defaultPassthrough/index.d.ts +2 -2
- package/dist/types/src/config/defaultPassthrough/types.d.ts +3 -3
- package/package.json +116 -112
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, ComponentPassthrough } from '../../types';
|
|
2
|
+
import { CTA } from '../CTA/CTA';
|
|
3
|
+
export interface HelloBannerData {
|
|
4
|
+
active: boolean;
|
|
5
|
+
mobileCollapsed?: string;
|
|
6
|
+
fullCopy?: string;
|
|
7
|
+
cta?: CTA;
|
|
8
|
+
}
|
|
9
|
+
export interface HelloBannerPassthrough extends ComponentPassthrough {
|
|
10
|
+
root?: string;
|
|
11
|
+
container?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
mobileCollapsed?: string;
|
|
14
|
+
fullCopy?: string;
|
|
15
|
+
cta?: string;
|
|
16
|
+
toggle?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface HelloBanner extends Component {
|
|
19
|
+
__typename?: 'HelloBanner';
|
|
20
|
+
helloBannerData?: HelloBannerData;
|
|
21
|
+
pt?: HelloBannerPassthrough;
|
|
22
|
+
onSegmentCTAClick?: (type: string, label: string, url: string, section: string) => void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { HelloBanner } from './HelloBanner';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<HelloBanner, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HelloBanner> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -32,6 +32,7 @@ export interface TileContent extends Component {
|
|
|
32
32
|
tileLabel?: TileLabel;
|
|
33
33
|
tileLabelType?: TileLabelType;
|
|
34
34
|
alignment?: 'left' | 'center' | 'right';
|
|
35
|
+
bodyCopyAlignment?: 'left' | 'center' | 'right';
|
|
35
36
|
pt?: TileContentPassthrough;
|
|
36
37
|
listItems?: string[];
|
|
37
38
|
footer?: string;
|
|
@@ -24,4 +24,4 @@ export { default as TileContentVideoTile } from './TileContent/TileContentVideoT
|
|
|
24
24
|
export { default as TileContentImageStackedAnimatedTile } from './TileContent/TileContentImageStackedAnimatedTile.vue';
|
|
25
25
|
export { default as Video } from './Video/Video.vue';
|
|
26
26
|
export { default as AnimationWrapper } from './AnimationWrapper/AnimationWrapper.vue';
|
|
27
|
-
export { default as
|
|
27
|
+
export { default as HelloBanner } from './HelloBanner/HelloBanner.vue';
|
|
@@ -18,4 +18,4 @@ export type { TileCollection as TileCollectionModuleType } from './TileCollectio
|
|
|
18
18
|
export type { TileContent as TileContentType } from './TileContent/TileContent';
|
|
19
19
|
export type { Video as VideoType } from './Video/Video';
|
|
20
20
|
export type { AnimationWrapper as AnimationWrapperType } from './AnimationWrapper/AnimationWrapper';
|
|
21
|
-
export type {
|
|
21
|
+
export type { HelloBanner as HelloBannerType } from './HelloBanner/HelloBanner';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccordionPtVariants, ContainerModulePtVariants, CTAPtVariants, GenericComponentPassthrough } from './types';
|
|
2
2
|
import { ComponentPassthrough } from '../../types';
|
|
3
|
-
import {
|
|
3
|
+
import { HelloBannerPassthrough } from '../../components/HelloBanner/HelloBanner';
|
|
4
4
|
export declare const DEFAULT_PASSTHROUGH: ComponentPassthrough;
|
|
5
5
|
/**
|
|
6
6
|
* TODO: Need to define the types for the passthroughs.
|
|
@@ -71,4 +71,4 @@ export declare const TileLabelPt: {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
export declare const VideoPt: GenericComponentPassthrough;
|
|
74
|
-
export declare const
|
|
74
|
+
export declare const HelloBannerPt: HelloBannerPassthrough;
|
|
@@ -8,8 +8,8 @@ import { TestimonialModulePassthrough } from '../../components/TestimonialModule
|
|
|
8
8
|
import { TileContentPassthrough } from '../../components/TileContent/TileContent';
|
|
9
9
|
import { CTAPassthrough } from '../../components/CTA/CTA';
|
|
10
10
|
import { TileLabelPassthrough } from '../../components/TileLabel/TileLabel';
|
|
11
|
-
import {
|
|
12
|
-
export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough,
|
|
11
|
+
import { HelloBannerPassthrough } from '../../components/HelloBanner/HelloBanner';
|
|
12
|
+
export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough, HelloBannerPassthrough {
|
|
13
13
|
}
|
|
14
14
|
export interface AccordionPtVariants {
|
|
15
15
|
List: AccordionPassthrough;
|
|
@@ -34,7 +34,7 @@ export interface Pt_Overrides {
|
|
|
34
34
|
ContentModule?: GenericComponentPassthrough;
|
|
35
35
|
CTA?: CTAPtVariants;
|
|
36
36
|
FooterNavigation?: GenericComponentPassthrough;
|
|
37
|
-
|
|
37
|
+
HelloBanner?: HelloBannerPassthrough;
|
|
38
38
|
Image?: GenericComponentPassthrough;
|
|
39
39
|
LogoCollectionModule?: GenericComponentPassthrough;
|
|
40
40
|
NavigationElement?: GenericComponentPassthrough;
|
package/package.json
CHANGED
|
@@ -1,113 +1,117 @@
|
|
|
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
|
-
}
|
|
2
|
+
"name": "@cooperco/cooper-component-library",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.80",
|
|
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
|
+
"scripts": {
|
|
32
|
+
"dev": "vite",
|
|
33
|
+
"check-types": "vue-tsc",
|
|
34
|
+
"build:types": "vue-tsc --emitDeclarationOnly --outDir dist/types",
|
|
35
|
+
"build:cms": "tsc -p tsconfig.cms.json",
|
|
36
|
+
"build": "pnpm run build:types && pnpm run build:cms && vite build",
|
|
37
|
+
"preview": "vite preview",
|
|
38
|
+
"tail": "tailwind-config-viewer -o",
|
|
39
|
+
"storybook": "storybook dev -p 6006",
|
|
40
|
+
"build-storybook": "storybook build",
|
|
41
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
42
|
+
"prepare": "husky",
|
|
43
|
+
"lint": "eslint . --no-fix",
|
|
44
|
+
"lint:fix": "eslint . --fix --quiet",
|
|
45
|
+
"local-test": "pnpm run build && pnpm pack",
|
|
46
|
+
"release": "./scripts/release.sh",
|
|
47
|
+
"release:minor": "./scripts/release.sh minor",
|
|
48
|
+
"release:major": "./scripts/release.sh major"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@primevue/themes": "^4.0.0",
|
|
52
|
+
"@vueuse/components": "^11.1.0",
|
|
53
|
+
"@vueuse/core": "^11.1.0",
|
|
54
|
+
"contentful-management": "^11.68.0",
|
|
55
|
+
"contentful-migration": "^4.23.2",
|
|
56
|
+
"dotenv": "^17.2.3",
|
|
57
|
+
"graphql": "^16.9.0",
|
|
58
|
+
"graphql-tag": "^2.12.6",
|
|
59
|
+
"primeicons": "^7.0.0",
|
|
60
|
+
"primevue": "^3.0.0",
|
|
61
|
+
"tailwind-merge": "^2.4.0",
|
|
62
|
+
"vite-plugin-turbosnap": "^1.0.3",
|
|
63
|
+
"vue": "^3.5.6"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@chromatic-com/storybook": "^3.2.6",
|
|
67
|
+
"@cooperco/contentful-cli-migrations": "^0.5.2",
|
|
68
|
+
"@eslint/js": "^9.4.0",
|
|
69
|
+
"@storybook/addon-essentials": "^8.6.15",
|
|
70
|
+
"@storybook/addon-interactions": "^8.6.15",
|
|
71
|
+
"@storybook/addon-links": "^8.6.15",
|
|
72
|
+
"@storybook/blocks": "^8.6.15",
|
|
73
|
+
"@storybook/builder-vite": "^8.6.15",
|
|
74
|
+
"@storybook/test": "^8.6.15",
|
|
75
|
+
"@storybook/vue3": "^8.6.15",
|
|
76
|
+
"@storybook/vue3-vite": "^8.6.15",
|
|
77
|
+
"@tsconfig/node18": "^18.2.4",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^8.24.1",
|
|
79
|
+
"@typescript-eslint/parser": "^8.24.1",
|
|
80
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
81
|
+
"@vue/tsconfig": "^0.5.1",
|
|
82
|
+
"autoprefixer": "^10.4.19",
|
|
83
|
+
"chromatic": "^15.1.0",
|
|
84
|
+
"eslint": "^8.57.0",
|
|
85
|
+
"eslint-config-prettier": "^9.1.0",
|
|
86
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
87
|
+
"globals": "^15.3.0",
|
|
88
|
+
"husky": "^9.1.4",
|
|
89
|
+
"jsdom": "^24.1.0",
|
|
90
|
+
"lint-staged": "^15.2.8",
|
|
91
|
+
"patch-package": "^8.0.0",
|
|
92
|
+
"postcss": "^8.4.38",
|
|
93
|
+
"prettier": "3.3.1",
|
|
94
|
+
"storybook": "^8.6.15",
|
|
95
|
+
"storybook-vue3-router": "^5.0.0",
|
|
96
|
+
"tailwind-config-viewer": "^2.0.2",
|
|
97
|
+
"tailwindcss": "^3.4.4",
|
|
98
|
+
"typescript": "~5.3.3",
|
|
99
|
+
"typescript-eslint": "^7.17.0",
|
|
100
|
+
"unplugin-vue-components": "^0.27.0",
|
|
101
|
+
"vite": "^5.2.0",
|
|
102
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
103
|
+
"vite-plugin-static-copy": "^1.0.6",
|
|
104
|
+
"vue-eslint-parser": "^9.4.3",
|
|
105
|
+
"vue-router": "^4.4.3",
|
|
106
|
+
"vue-tsc": "^2.0.29"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"graphql-tag": "^2.12.6",
|
|
110
|
+
"vue": "^3.0.0"
|
|
111
|
+
},
|
|
112
|
+
"lint-staged": {
|
|
113
|
+
"*.{json,js,ts,jsx,tsx,html,vue}": [
|
|
114
|
+
"prettier --write --ignore-unknown"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|