@cooperco/cooper-component-library 0.1.84 → 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 (27) hide show
  1. package/dist/cms/0073-add-body-copy-to-tile-collection.cjs +22 -0
  2. package/dist/cms/0074-fix-accordion-start-open-widget.cjs +27 -0
  3. package/dist/cms/0075-make-content-module-headline-optional.cjs +10 -0
  4. package/dist/cms/README.md +31 -101
  5. package/dist/cms/contentful/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  6. package/dist/cms/contentful/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  7. package/dist/cms/contentful/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  8. package/dist/cms/contentful/queries/tileCollection.query.js +1 -0
  9. package/dist/cms/contentful/queries/tileCollection.query.ts +1 -0
  10. package/dist/cms/migrations/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  11. package/dist/cms/migrations/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  12. package/dist/cms/migrations/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  13. package/dist/cms/queries/tileCollection.query.ts +1 -0
  14. package/dist/cms/scripts/0073-add-body-copy-to-tile-collection.cjs +22 -0
  15. package/dist/cms/scripts/0074-fix-accordion-start-open-widget.cjs +27 -0
  16. package/dist/cms/scripts/0075-make-content-module-headline-optional.cjs +10 -0
  17. package/dist/cms/tileCollection.query.ts +1 -0
  18. package/dist/lib/component-lib.js +1945 -1889
  19. package/dist/lib/component-lib.umd.cjs +34 -34
  20. package/dist/lib/css/main.css +7 -1
  21. package/dist/lib/style.css +1 -1
  22. package/dist/types/src/components/Accordion/Accordion.d.ts +1 -0
  23. package/dist/types/src/components/ContentModule/ContentModule.d.ts +8 -0
  24. package/dist/types/src/components/Image/Image.d.ts +2 -0
  25. package/dist/types/src/components/Image/Image.vue.d.ts +1 -0
  26. package/dist/types/src/types.d.ts +1 -0
  27. package/package.json +1 -1
@@ -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;
@@ -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.84",
4
+ "version": "0.1.85",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"