@cooperco/cooper-component-library 0.1.10 → 0.1.11
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/package.json
CHANGED
|
@@ -1,99 +1,98 @@
|
|
|
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
|
-
}
|
|
2
|
+
"name": "@cooperco/cooper-component-library",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.11",
|
|
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/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/lib/component-lib.js",
|
|
15
|
+
"require": "./dist/lib/component-lib.umd.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./css/main.css": {
|
|
18
|
+
"import": "./dist/lib/css/main.css",
|
|
19
|
+
"require": "./dist/lib/css/main.css"
|
|
20
|
+
},
|
|
21
|
+
"./css/theme.css": {
|
|
22
|
+
"import": "./dist/lib/css/theme.css",
|
|
23
|
+
"require": "./dist/lib/css/theme.css"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@primevue/themes": "^4.0.0",
|
|
28
|
+
"contentful-migration": "^4.23.2",
|
|
29
|
+
"graphql": "^16.9.0",
|
|
30
|
+
"graphql-tag": "^2.12.6",
|
|
31
|
+
"primeicons": "^7.0.0",
|
|
32
|
+
"primevue": "^3.0.0",
|
|
33
|
+
"tailwind-merge": "^2.4.0",
|
|
34
|
+
"vite-plugin-turbosnap": "^1.0.3",
|
|
35
|
+
"vue": "^3.5.6"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
39
|
+
"@cooperco/contentful-cli-migrations": "^0.5.1",
|
|
40
|
+
"@eslint/js": "^9.4.0",
|
|
41
|
+
"@storybook/addon-essentials": "^8.2.8",
|
|
42
|
+
"@storybook/addon-interactions": "^8.2.8",
|
|
43
|
+
"@storybook/addon-links": "^8.2.8",
|
|
44
|
+
"@storybook/blocks": "^8.2.8",
|
|
45
|
+
"@storybook/builder-vite": "^8.2.8",
|
|
46
|
+
"@storybook/test": "^8.2.8",
|
|
47
|
+
"@storybook/vue3": "^8.2.8",
|
|
48
|
+
"@storybook/vue3-vite": "^8.2.8",
|
|
49
|
+
"@tsconfig/node18": "^18.2.4",
|
|
50
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
51
|
+
"@vue/tsconfig": "^0.5.1",
|
|
52
|
+
"autoprefixer": "^10.4.19",
|
|
53
|
+
"chromatic": "^11.4.0",
|
|
54
|
+
"eslint": "^8.57.0",
|
|
55
|
+
"eslint-config-prettier": "^9.1.0",
|
|
56
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
57
|
+
"globals": "^15.3.0",
|
|
58
|
+
"husky": "^9.1.4",
|
|
59
|
+
"jsdom": "^24.1.0",
|
|
60
|
+
"lint-staged": "^15.2.8",
|
|
61
|
+
"postcss": "^8.4.38",
|
|
62
|
+
"prettier": "3.3.1",
|
|
63
|
+
"storybook": "^8.2.8",
|
|
64
|
+
"storybook-vue3-router": "^5.0.0",
|
|
65
|
+
"tailwind-config-viewer": "^2.0.2",
|
|
66
|
+
"tailwindcss": "^3.4.4",
|
|
67
|
+
"typescript": "~5.3.3",
|
|
68
|
+
"typescript-eslint": "^7.17.0",
|
|
69
|
+
"unplugin-vue-components": "^0.27.0",
|
|
70
|
+
"vite": "^5.2.0",
|
|
71
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
72
|
+
"vite-plugin-static-copy": "^1.0.6",
|
|
73
|
+
"vue-eslint-parser": "^9.4.3",
|
|
74
|
+
"vue-router": "^4.4.3",
|
|
75
|
+
"vue-tsc": "^2.0.29"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"vue": "^3.0.0"
|
|
79
|
+
},
|
|
80
|
+
"lint-staged": {
|
|
81
|
+
"*.{json,js,ts,jsx,tsx,html,vue}": [
|
|
82
|
+
"prettier --write --ignore-unknown"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"scripts": {
|
|
86
|
+
"dev": "vite",
|
|
87
|
+
"check-types": "vue-tsc",
|
|
88
|
+
"build:types": "vue-tsc --emitDeclarationOnly --outDir dist/types",
|
|
89
|
+
"build": "pnpm run build:types && vite build",
|
|
90
|
+
"preview": "vite preview",
|
|
91
|
+
"tail": "tailwind-config-viewer -o",
|
|
92
|
+
"storybook": "storybook dev -p 6006",
|
|
93
|
+
"build-storybook": "storybook build",
|
|
94
|
+
"chromatic": "chromatic --exit-zero-on-changes",
|
|
95
|
+
"lint": "eslint . --no-fix",
|
|
96
|
+
"lint:fix": "eslint . --fix --quiet"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { socialMedia } from '../../types';
|
|
2
|
-
import { Image } from '../Image/Image';
|
|
3
|
-
import { NavigationElement } from '../NavigationElement/NavigationElement';
|
|
4
|
-
export interface FooterNavigation {
|
|
5
|
-
title?: string;
|
|
6
|
-
logo?: Image;
|
|
7
|
-
legalText?: string;
|
|
8
|
-
textColor?: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
navigation?: NavigationElement[];
|
|
11
|
-
socialMediaRef?: socialMedia[];
|
|
12
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type FooterNavigation } from './FooterNavigation';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<FooterNavigation, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<FooterNavigation> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { ComponentPassthrough } from '../types';
|
|
2
|
-
import { ContainerModulePassthrough } from '../components/ContainerModule/ContainerModule';
|
|
3
|
-
import { AccordionItemPassthrough } from '../components/Accordion/AccordionItem';
|
|
4
|
-
import { AccordionPassthrough } from '../components/Accordion/Accordion';
|
|
5
|
-
import { CarouselPassthrough } from '../components/CarouselModule/CarouselModule';
|
|
6
|
-
import { ContentModulePassthrough } from '../components/ContentModule/ContentModule';
|
|
7
|
-
import { TestimonialModulePassthrough } from '../components/TestimonialModule/TestimonialModule';
|
|
8
|
-
import { TileContentPassthrough } from '../components/TileContent/TileContent';
|
|
9
|
-
import { CTAPassthrough } from '../components/CTA/CTA';
|
|
10
|
-
import { TileLabelPassthrough } from '../components/TileLabel/TileLabel';
|
|
11
|
-
export declare const DEFAULT_PASSTHROUGH: ComponentPassthrough;
|
|
12
|
-
interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* TODO: Need to define the types for the passthroughs.
|
|
16
|
-
* REMOVE eslint-disable once types are defined
|
|
17
|
-
*/
|
|
18
|
-
export declare const combinePassthroughs: <PtType extends GenericComponentPassthrough, OverrideType extends GenericComponentPassthrough>(passthrough: PtType, overrides: OverrideType) => GenericComponentPassthrough;
|
|
19
|
-
export interface AccordionPtVariants {
|
|
20
|
-
List: AccordionPassthrough;
|
|
21
|
-
Tile: AccordionPassthrough;
|
|
22
|
-
}
|
|
23
|
-
export declare const AccordionPt: AccordionPtVariants;
|
|
24
|
-
export declare const AccordionItemPt: GenericComponentPassthrough;
|
|
25
|
-
export declare const AccordionListItemPt: GenericComponentPassthrough;
|
|
26
|
-
export declare const AccordionTileItemPt: GenericComponentPassthrough;
|
|
27
|
-
export declare const CarouselModulePt: {
|
|
28
|
-
headline: string | undefined;
|
|
29
|
-
root: string;
|
|
30
|
-
bodyCopy: string;
|
|
31
|
-
container: string;
|
|
32
|
-
previousbutton: string;
|
|
33
|
-
nextbutton: string;
|
|
34
|
-
itemscontent: string;
|
|
35
|
-
itemscontainer: string;
|
|
36
|
-
item: string;
|
|
37
|
-
indicators: string;
|
|
38
|
-
indicator: string;
|
|
39
|
-
indicatorbutton: string;
|
|
40
|
-
};
|
|
41
|
-
export declare const CarouselModuleAltPt: GenericComponentPassthrough;
|
|
42
|
-
export declare const ContainerCollectionModulePt: GenericComponentPassthrough;
|
|
43
|
-
export interface ContainerModulePtVariants {
|
|
44
|
-
Hero: ContainerModulePassthrough;
|
|
45
|
-
Centered: ContainerModulePassthrough;
|
|
46
|
-
}
|
|
47
|
-
export declare const ContainerModulePt: ContainerModulePtVariants;
|
|
48
|
-
export declare const ContentModulePt: GenericComponentPassthrough;
|
|
49
|
-
export interface CTAPtVariants {
|
|
50
|
-
fill: CTAPassthrough;
|
|
51
|
-
logo: CTAPassthrough;
|
|
52
|
-
link: CTAPassthrough;
|
|
53
|
-
outline: CTAPassthrough;
|
|
54
|
-
}
|
|
55
|
-
export declare const CTAPt: CTAPtVariants;
|
|
56
|
-
export declare const FooterNavigationPt: GenericComponentPassthrough;
|
|
57
|
-
export declare const ImagePt: GenericComponentPassthrough;
|
|
58
|
-
export declare const LogoCollectionModulePt: GenericComponentPassthrough;
|
|
59
|
-
export declare const NavigationElementPt: GenericComponentPassthrough;
|
|
60
|
-
export declare const PrimaryNavigationPt: GenericComponentPassthrough;
|
|
61
|
-
export declare const SplitModulePt: GenericComponentPassthrough;
|
|
62
|
-
export declare const TestimonialModulePt: GenericComponentPassthrough;
|
|
63
|
-
export interface TileCollectionPtVariants {
|
|
64
|
-
IconTile: ComponentPassthrough;
|
|
65
|
-
ImageTile: ComponentPassthrough;
|
|
66
|
-
VideoTile: ComponentPassthrough;
|
|
67
|
-
TextTile: ComponentPassthrough;
|
|
68
|
-
ImageStackedAnimatedTile: ComponentPassthrough;
|
|
69
|
-
}
|
|
70
|
-
export declare const TileCollectionModulePt: GenericComponentPassthrough;
|
|
71
|
-
export declare const TileContentPt: {
|
|
72
|
-
root: string;
|
|
73
|
-
headline: string;
|
|
74
|
-
cta: string;
|
|
75
|
-
ctas: string;
|
|
76
|
-
container: string;
|
|
77
|
-
description: string;
|
|
78
|
-
body: string;
|
|
79
|
-
footer: string;
|
|
80
|
-
footerContent: string;
|
|
81
|
-
};
|
|
82
|
-
export declare const TileContentIconTilePt: GenericComponentPassthrough;
|
|
83
|
-
export declare const TileContentImageStackedAnimatedTilePt: GenericComponentPassthrough;
|
|
84
|
-
export declare const TileContentImageTilePt: GenericComponentPassthrough;
|
|
85
|
-
export declare const TileContentTextTilePt: GenericComponentPassthrough;
|
|
86
|
-
export declare const TileContentVideoTilePt: GenericComponentPassthrough;
|
|
87
|
-
export declare const TileLabelPt: {
|
|
88
|
-
Numeric: {
|
|
89
|
-
root: string;
|
|
90
|
-
};
|
|
91
|
-
Text: {
|
|
92
|
-
root: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
export declare const VideoPt: GenericComponentPassthrough;
|
|
96
|
-
export {};
|