@cooperco/cooper-component-library 0.1.83 → 0.1.85
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/0071-create-chart-module.cjs +122 -0
- package/dist/cms/0072-remove-comments-from-blog-article.cjs +23 -0
- package/dist/cms/0073-add-body-copy-to-tile-collection.cjs +22 -0
- package/dist/cms/0074-fix-accordion-start-open-widget.cjs +27 -0
- package/dist/cms/0075-make-content-module-headline-optional.cjs +10 -0
- package/dist/cms/README.md +31 -101
- package/dist/cms/chartModule.query.ts +26 -0
- package/dist/cms/contentful/migrations/scripts/0071-create-chart-module.cjs +122 -0
- package/dist/cms/contentful/migrations/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
- package/dist/cms/contentful/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
- package/dist/cms/contentful/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
- package/dist/cms/contentful/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
- package/dist/cms/contentful/queries/chartModule.query.d.ts +2 -0
- package/dist/cms/contentful/queries/chartModule.query.js +24 -0
- package/dist/cms/contentful/queries/chartModule.query.ts +26 -0
- package/dist/cms/contentful/queries/index.d.ts +1 -0
- package/dist/cms/contentful/queries/index.js +1 -0
- package/dist/cms/contentful/queries/index.ts +1 -0
- package/dist/cms/contentful/queries/tileCollection.query.js +1 -0
- package/dist/cms/contentful/queries/tileCollection.query.ts +1 -0
- package/dist/cms/index.ts +1 -0
- package/dist/cms/migrations/scripts/0071-create-chart-module.cjs +122 -0
- package/dist/cms/migrations/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
- package/dist/cms/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
- package/dist/cms/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
- package/dist/cms/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
- package/dist/cms/queries/chartModule.query.ts +26 -0
- package/dist/cms/queries/index.ts +1 -0
- package/dist/cms/queries/tileCollection.query.ts +1 -0
- package/dist/cms/scripts/0071-create-chart-module.cjs +122 -0
- package/dist/cms/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
- package/dist/cms/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
- package/dist/cms/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
- package/dist/cms/scripts/0075-make-content-module-headline-optional.cjs +10 -0
- package/dist/cms/tileCollection.query.ts +1 -0
- package/dist/lib/component-lib.js +11170 -3645
- package/dist/lib/component-lib.umd.cjs +47 -30
- package/dist/lib/css/main.css +7 -1
- package/dist/lib/style.css +1 -1
- package/dist/types/cms/contentful/queries/index.d.ts +1 -0
- package/dist/types/src/components/Accordion/Accordion.d.ts +1 -0
- package/dist/types/src/components/ContentModule/ContentModule.d.ts +8 -0
- package/dist/types/src/components/Image/Image.d.ts +2 -0
- package/dist/types/src/components/Image/Image.vue.d.ts +1 -0
- package/dist/types/src/components/components.d.ts +1 -0
- package/dist/types/src/components/types.d.ts +4 -0
- package/dist/types/src/config/defaultPassthrough/index.d.ts +1 -0
- package/dist/types/src/config/defaultPassthrough/types.d.ts +3 -1
- package/dist/types/src/types.d.ts +1 -0
- package/package.json +4 -2
|
@@ -28,6 +28,14 @@ export interface ContentModule extends Component {
|
|
|
28
28
|
isHero?: boolean;
|
|
29
29
|
alignment?: contentModuleAlignmentEnum;
|
|
30
30
|
isChild?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* When true, the headline renders as an h3 (child heading) instead of h2.
|
|
33
|
+
* Set by ContainerModule when the parent has its own headline — the parent headline
|
|
34
|
+
* is the h2, so the child drops to h3. When the parent has no headline, the child
|
|
35
|
+
* remains h2 as the primary heading in that section.
|
|
36
|
+
* Has no effect when isHero is true (hero headlines are always h1).
|
|
37
|
+
*/
|
|
38
|
+
useChildHeadline?: boolean;
|
|
31
39
|
parentHasBackgroundImage?: boolean;
|
|
32
40
|
parentBackgroundColor?: string;
|
|
33
41
|
}
|
|
@@ -2,5 +2,6 @@ import { Image } from './Image';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<Image, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Image> & Readonly<{}>, {
|
|
3
3
|
isFullWidth: boolean;
|
|
4
4
|
animated: boolean;
|
|
5
|
+
mobileBreakpoint: "sm" | "md" | "lg" | "xl";
|
|
5
6
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
7
|
export default _default;
|
|
@@ -25,3 +25,4 @@ export { default as TileContentImageStackedAnimatedTile } from './TileContent/Ti
|
|
|
25
25
|
export { default as Video } from './Video/Video.vue';
|
|
26
26
|
export { default as AnimationWrapper } from './AnimationWrapper/AnimationWrapper.vue';
|
|
27
27
|
export { default as HelloBanner } from './HelloBanner/HelloBanner.vue';
|
|
28
|
+
export { default as ChartModule } from './ChartModule/ChartModule.vue';
|
|
@@ -19,3 +19,7 @@ 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
21
|
export type { HelloBanner as HelloBannerType } from './HelloBanner/HelloBanner';
|
|
22
|
+
export type { ChartModule as ChartModuleType } from './ChartModule/ChartModule';
|
|
23
|
+
export type { ChartDataItem as ChartDataItemType } from './ChartModule/ChartModule';
|
|
24
|
+
export type { ChartTab as ChartTabType } from './ChartModule/ChartModule';
|
|
25
|
+
export type { ChartDrillDown as ChartDrillDownType } from './ChartModule/ChartModule';
|
|
@@ -8,8 +8,9 @@ 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 { ChartModulePassthrough } from '../../components/ChartModule/ChartModule';
|
|
11
12
|
import { HelloBannerPassthrough } from '../../components/HelloBanner/HelloBanner';
|
|
12
|
-
export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough, HelloBannerPassthrough {
|
|
13
|
+
export interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough, HelloBannerPassthrough, ChartModulePassthrough {
|
|
13
14
|
}
|
|
14
15
|
export interface AccordionPtVariants {
|
|
15
16
|
List: AccordionPassthrough;
|
|
@@ -50,4 +51,5 @@ export interface Pt_Overrides {
|
|
|
50
51
|
TileContentVideoTile?: GenericComponentPassthrough;
|
|
51
52
|
TileLabel?: GenericComponentPassthrough;
|
|
52
53
|
Video?: GenericComponentPassthrough;
|
|
54
|
+
ChartModule?: ChartModulePassthrough;
|
|
53
55
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cooperco/cooper-component-library",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.85",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@primevue/themes": "^4.0.0",
|
|
33
33
|
"@vueuse/components": "^11.1.0",
|
|
34
34
|
"@vueuse/core": "^11.1.0",
|
|
35
|
+
"chart.js": "^4.5.1",
|
|
35
36
|
"contentful-management": "^11.68.0",
|
|
36
37
|
"contentful-migration": "^4.23.2",
|
|
37
38
|
"dotenv": "^17.2.3",
|
|
@@ -41,7 +42,8 @@
|
|
|
41
42
|
"primevue": "^3.0.0",
|
|
42
43
|
"tailwind-merge": "^2.4.0",
|
|
43
44
|
"vite-plugin-turbosnap": "^1.0.3",
|
|
44
|
-
"vue": "^3.5.6"
|
|
45
|
+
"vue": "^3.5.6",
|
|
46
|
+
"vue-chartjs": "^5.3.3"
|
|
45
47
|
},
|
|
46
48
|
"devDependencies": {
|
|
47
49
|
"@chromatic-com/storybook": "^3.2.6",
|