@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.
Files changed (50) hide show
  1. package/dist/cms/0071-create-chart-module.cjs +122 -0
  2. package/dist/cms/0072-remove-comments-from-blog-article.cjs +23 -0
  3. package/dist/cms/0073-add-body-copy-to-tile-collection.cjs +22 -0
  4. package/dist/cms/0074-fix-accordion-start-open-widget.cjs +27 -0
  5. package/dist/cms/0075-make-content-module-headline-optional.cjs +10 -0
  6. package/dist/cms/README.md +31 -101
  7. package/dist/cms/chartModule.query.ts +26 -0
  8. package/dist/cms/contentful/migrations/scripts/0071-create-chart-module.cjs +122 -0
  9. package/dist/cms/contentful/migrations/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
  10. package/dist/cms/contentful/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  11. package/dist/cms/contentful/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  12. package/dist/cms/contentful/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  13. package/dist/cms/contentful/queries/chartModule.query.d.ts +2 -0
  14. package/dist/cms/contentful/queries/chartModule.query.js +24 -0
  15. package/dist/cms/contentful/queries/chartModule.query.ts +26 -0
  16. package/dist/cms/contentful/queries/index.d.ts +1 -0
  17. package/dist/cms/contentful/queries/index.js +1 -0
  18. package/dist/cms/contentful/queries/index.ts +1 -0
  19. package/dist/cms/contentful/queries/tileCollection.query.js +1 -0
  20. package/dist/cms/contentful/queries/tileCollection.query.ts +1 -0
  21. package/dist/cms/index.ts +1 -0
  22. package/dist/cms/migrations/scripts/0071-create-chart-module.cjs +122 -0
  23. package/dist/cms/migrations/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
  24. package/dist/cms/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  25. package/dist/cms/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  26. package/dist/cms/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  27. package/dist/cms/queries/chartModule.query.ts +26 -0
  28. package/dist/cms/queries/index.ts +1 -0
  29. package/dist/cms/queries/tileCollection.query.ts +1 -0
  30. package/dist/cms/scripts/0071-create-chart-module.cjs +122 -0
  31. package/dist/cms/scripts/0072-remove-comments-from-blog-article.cjs +23 -0
  32. package/dist/cms/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  33. package/dist/cms/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  34. package/dist/cms/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  35. package/dist/cms/tileCollection.query.ts +1 -0
  36. package/dist/lib/component-lib.js +11170 -3645
  37. package/dist/lib/component-lib.umd.cjs +47 -30
  38. package/dist/lib/css/main.css +7 -1
  39. package/dist/lib/style.css +1 -1
  40. package/dist/types/cms/contentful/queries/index.d.ts +1 -0
  41. package/dist/types/src/components/Accordion/Accordion.d.ts +1 -0
  42. package/dist/types/src/components/ContentModule/ContentModule.d.ts +8 -0
  43. package/dist/types/src/components/Image/Image.d.ts +2 -0
  44. package/dist/types/src/components/Image/Image.vue.d.ts +1 -0
  45. package/dist/types/src/components/components.d.ts +1 -0
  46. package/dist/types/src/components/types.d.ts +4 -0
  47. package/dist/types/src/config/defaultPassthrough/index.d.ts +1 -0
  48. package/dist/types/src/config/defaultPassthrough/types.d.ts +3 -1
  49. package/dist/types/src/types.d.ts +1 -0
  50. package/package.json +4 -2
@@ -16,3 +16,4 @@ export * from './productModule.query.js';
16
16
  export * from './testimonial.query.js';
17
17
  export * from './tileCollection.query.js';
18
18
  export * from './video.query.js';
19
+ export * from './chartModule.query.js';
@@ -9,6 +9,7 @@ export interface Accordion extends Component {
9
9
  modules: (AccordionItem | Accordion)[];
10
10
  headline?: string;
11
11
  isChild?: boolean;
12
+ isSubAccordion?: boolean;
12
13
  type: 'List' | 'Tile';
13
14
  backgroundColor?: string;
14
15
  parentBackgroundColor?: string;
@@ -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
  }
@@ -12,4 +12,6 @@ export interface Image extends Component {
12
12
  altTag?: string;
13
13
  isFullWidth?: boolean;
14
14
  animated?: boolean;
15
+ /** Breakpoint at which to swap from mobile to desktop image. Defaults to 'md' (768px). */
16
+ mobileBreakpoint?: 'sm' | 'md' | 'lg' | 'xl';
15
17
  }
@@ -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';
@@ -71,4 +71,5 @@ export declare const TileLabelPt: {
71
71
  };
72
72
  };
73
73
  export declare const VideoPt: GenericComponentPassthrough;
74
+ export declare const ChartModulePt: GenericComponentPassthrough;
74
75
  export declare const HelloBannerPt: HelloBannerPassthrough;
@@ -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
  }
@@ -56,6 +56,7 @@ export interface ComponentPassthrough {
56
56
  center?: string;
57
57
  end?: string;
58
58
  container?: string;
59
+ headingContainer?: string;
59
60
  root?: string;
60
61
  item?: string;
61
62
  }
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.83",
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",