@cooperco/cooper-component-library 0.1.41 → 0.1.43

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 (26) hide show
  1. package/dist/lib/component-lib.js +1890 -1866
  2. package/dist/lib/component-lib.umd.cjs +17 -17
  3. package/dist/lib/style.css +1 -1
  4. package/dist/types/components/Accordion/Accordion.d.ts +0 -1
  5. package/dist/types/components/Accordion/Accordion.vue.d.ts +0 -1
  6. package/dist/types/components/CarouselModule/CarouselModule.d.ts +0 -1
  7. package/dist/types/components/CarouselModule/CarouselModule.vue.d.ts +0 -1
  8. package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +0 -1
  9. package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +1 -3
  10. package/dist/types/components/ContainerModule/ContainerModule.d.ts +2 -1
  11. package/dist/types/components/ContainerModule/ContainerModule.vue.d.ts +1 -1
  12. package/dist/types/components/ContentModule/ContentModule.d.ts +0 -1
  13. package/dist/types/components/LogoCollectionModule/LogoCollectionModule.d.ts +0 -1
  14. package/dist/types/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +1 -3
  15. package/dist/types/components/SplitModule/SplitModule.d.ts +0 -1
  16. package/dist/types/components/SplitModule/SplitModule.vue.d.ts +1 -3
  17. package/dist/types/components/TileCollectionModule/TileCollectionModule.d.ts +0 -1
  18. package/dist/types/components/TileCollectionModule/TileCollectionModule.vue.d.ts +0 -1
  19. package/dist/types/components/TileContent/TileContent.d.ts +0 -1
  20. package/dist/types/components/TileContent/TileContentIconTile.vue.d.ts +0 -1
  21. package/dist/types/components/TileContent/TileContentImageTile.vue.d.ts +0 -1
  22. package/dist/types/components/TileContent/TileContentTextTile.vue.d.ts +0 -1
  23. package/dist/types/components/TileContent/TileContentVideoTile.vue.d.ts +0 -1
  24. package/dist/types/config/colorPalettes.d.ts +1 -8
  25. package/dist/types/config/defaultPassthrough/index.d.ts +4 -1
  26. package/package.json +1 -1
@@ -13,7 +13,6 @@ export interface Accordion extends Component {
13
13
  backgroundColor?: string;
14
14
  pt?: AccordionPassthrough;
15
15
  imageIcon?: Image;
16
- isProvider?: boolean;
17
16
  loadMoreButtonTitle?: string;
18
17
  startOpen?: boolean;
19
18
  }
@@ -1,6 +1,5 @@
1
1
  import { type Accordion } from './Accordion';
2
2
  declare const _default: import("vue").DefineComponent<Accordion, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Accordion> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  startOpen: boolean;
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -19,5 +19,4 @@ export interface Carousel extends Component {
19
19
  backgroundColor?: string;
20
20
  pt?: CarouselPassthrough;
21
21
  variant?: 'Hero' | 'Default';
22
- isProvider?: boolean;
23
22
  }
@@ -1,6 +1,5 @@
1
1
  import { Carousel as CarouselType } from './CarouselModule';
2
2
  declare const _default: import("vue").DefineComponent<CarouselType, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CarouselType> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  variant: "Hero" | "Default";
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -7,5 +7,4 @@ export interface ContainerCollectionModule extends Component {
7
7
  modules: Array<ContainerModule | SplitModule>;
8
8
  backgroundColor?: string;
9
9
  pt?: ComponentPassthrough;
10
- isProvider?: boolean;
11
10
  }
@@ -1,5 +1,3 @@
1
1
  import { ContainerCollectionModule } from './ContainerCollectionModule';
2
- declare const _default: import("vue").DefineComponent<ContainerCollectionModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerCollectionModule> & Readonly<{}>, {
3
- isProvider: boolean;
4
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<ContainerCollectionModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerCollectionModule> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
3
  export default _default;
@@ -20,8 +20,9 @@ export interface ContainerModule extends Component {
20
20
  textColor?: string;
21
21
  backgroundColor?: string;
22
22
  backgroundImage?: Image;
23
+ backgroundImageClass?: string;
23
24
  variant?: 'Centered' | 'Hero';
24
25
  isChild?: boolean;
25
26
  pt?: ContainerModulePassthrough;
26
- isProvider?: boolean;
27
+ mobileImagePosition?: 'Top' | 'Bottom';
27
28
  }
@@ -1,8 +1,8 @@
1
1
  import { ContainerModule as ContainerModuleType } from './ContainerModule';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<ContainerModuleType, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerModuleType> & Readonly<{}>, {
3
3
  isChild: boolean;
4
- isProvider: boolean;
5
4
  variant: "Centered" | "Hero";
5
+ mobileImagePosition: "Top" | "Bottom";
6
6
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
7
7
  default?(_: {}): any;
8
8
  }>;
@@ -26,5 +26,4 @@ export interface ContentModule extends Component {
26
26
  isHero?: boolean;
27
27
  alignment?: contentModuleAlignmentEnum;
28
28
  isChild?: boolean;
29
- isProvider?: boolean;
30
29
  }
@@ -6,5 +6,4 @@ export interface LogoCollectionModule extends Component {
6
6
  logos: Image[];
7
7
  backgroundColor?: string;
8
8
  pt?: ComponentPassthrough;
9
- isProvider?: boolean;
10
9
  }
@@ -1,5 +1,3 @@
1
1
  import { LogoCollectionModule } from './LogoCollectionModule';
2
- declare const _default: import("vue").DefineComponent<LogoCollectionModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoCollectionModule> & Readonly<{}>, {
3
- isProvider: boolean;
4
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<LogoCollectionModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LogoCollectionModule> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
3
  export default _default;
@@ -13,5 +13,4 @@ export interface SplitModule extends Component {
13
13
  backgroundColor?: string;
14
14
  pt?: ComponentPassthrough;
15
15
  isChild?: boolean;
16
- isProvider?: boolean;
17
16
  }
@@ -1,5 +1,3 @@
1
1
  import { SplitModule } from './SplitModule';
2
- declare const _default: import("vue").DefineComponent<SplitModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitModule> & Readonly<{}>, {
3
- isProvider: boolean;
4
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const _default: import("vue").DefineComponent<SplitModule, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SplitModule> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
3
  export default _default;
@@ -15,5 +15,4 @@ export interface TileCollection extends Component {
15
15
  cols?: number;
16
16
  variant: 'IconTile' | 'ImageTile' | 'VideoTile' | 'ImageStackedAnimatedTile' | 'TextTile';
17
17
  pt?: ComponentPassthrough;
18
- isProvider?: boolean;
19
18
  }
@@ -1,6 +1,5 @@
1
1
  import { TileCollection } from './TileCollectionModule';
2
2
  declare const _default: import("vue").DefineComponent<TileCollection, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TileCollection> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  includeDecoration: boolean;
5
4
  cols: number;
6
5
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -34,7 +34,6 @@ export interface TileContent extends Component {
34
34
  pt?: TileContentPassthrough;
35
35
  listItems?: string[];
36
36
  footer?: string;
37
- isProvider?: boolean;
38
37
  }
39
38
  export interface TileContentTextTile extends Omit<TileContent, '__typename'> {
40
39
  __typename?: 'TileContentTextTile';
@@ -1,6 +1,5 @@
1
1
  import { TileContentIconTile } from './TileContent';
2
2
  declare const _default: import("vue").DefineComponent<TileContentIconTile, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TileContentIconTile> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  alignment: "left" | "center" | "right";
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { TileContentImageTile } from './TileContent';
2
2
  declare const _default: import("vue").DefineComponent<TileContentImageTile, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TileContentImageTile> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  alignment: "left" | "center" | "right";
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { TileContentTextTile } from './TileContent';
2
2
  declare const _default: import("vue").DefineComponent<TileContentTextTile, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TileContentTextTile> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  alignment: "left" | "center" | "right";
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { TileContentVideoTile } from './TileContent';
2
2
  declare const _default: import("vue").DefineComponent<TileContentVideoTile, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TileContentVideoTile> & Readonly<{}>, {
3
- isProvider: boolean;
4
3
  alignment: "left" | "center" | "right";
5
4
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
@@ -36,20 +36,13 @@ export declare const DEFAULT_PALETTES: {
36
36
  [key: string]: ColorPalette;
37
37
  };
38
38
  /**
39
- * This function will either provide its background color (if it's a provider) or
39
+ * This function will either provide its background color or
40
40
  * will consume (inject) a parent's background color to determine the color palette
41
41
  * that should be used.
42
42
  *
43
43
  * The `backgroundColor` in the `props` object will be used over the parent's backgroundColor.
44
44
  * That means you can give a child its own palette, separate from the parent.
45
45
  *
46
- * `isProvider` just means that the component calling this function should provide its
47
- * backgroundColor to any children.
48
- *
49
- * Many of the main container modules (ContainerModule, SplitModule, TileCollection, etc)
50
- * are defaulted to being a provider. Make sure to pass `false` to the `is-provider` prop
51
- * if any child is a provider.
52
- *
53
46
  * @param props Props from the component
54
47
  * @returns
55
48
  */
@@ -7,7 +7,10 @@ export declare const DEFAULT_PASSTHROUGH: ComponentPassthrough;
7
7
  */
8
8
  export declare const combinePassthroughs: <PtType extends GenericComponentPassthrough, OverrideType extends GenericComponentPassthrough>(passthrough: PtType, overrides: OverrideType) => GenericComponentPassthrough;
9
9
  export declare const AccordionPt: AccordionPtVariants;
10
- export declare const AccordionItemPt: GenericComponentPassthrough;
10
+ export declare const AccordionItemPt: {
11
+ headline: string;
12
+ image: string;
13
+ };
11
14
  export declare const AccordionListItemPt: GenericComponentPassthrough;
12
15
  export declare const AccordionTileItemPt: GenericComponentPassthrough;
13
16
  export declare const CarouselModulePt: {
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.41",
4
+ "version": "0.1.43",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"