@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.
- package/dist/lib/component-lib.js +1890 -1866
- package/dist/lib/component-lib.umd.cjs +17 -17
- package/dist/lib/style.css +1 -1
- package/dist/types/components/Accordion/Accordion.d.ts +0 -1
- package/dist/types/components/Accordion/Accordion.vue.d.ts +0 -1
- package/dist/types/components/CarouselModule/CarouselModule.d.ts +0 -1
- package/dist/types/components/CarouselModule/CarouselModule.vue.d.ts +0 -1
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +0 -1
- package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +1 -3
- package/dist/types/components/ContainerModule/ContainerModule.d.ts +2 -1
- package/dist/types/components/ContainerModule/ContainerModule.vue.d.ts +1 -1
- package/dist/types/components/ContentModule/ContentModule.d.ts +0 -1
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.d.ts +0 -1
- package/dist/types/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +1 -3
- package/dist/types/components/SplitModule/SplitModule.d.ts +0 -1
- package/dist/types/components/SplitModule/SplitModule.vue.d.ts +1 -3
- package/dist/types/components/TileCollectionModule/TileCollectionModule.d.ts +0 -1
- package/dist/types/components/TileCollectionModule/TileCollectionModule.vue.d.ts +0 -1
- package/dist/types/components/TileContent/TileContent.d.ts +0 -1
- package/dist/types/components/TileContent/TileContentIconTile.vue.d.ts +0 -1
- package/dist/types/components/TileContent/TileContentImageTile.vue.d.ts +0 -1
- package/dist/types/components/TileContent/TileContentTextTile.vue.d.ts +0 -1
- package/dist/types/components/TileContent/TileContentVideoTile.vue.d.ts +0 -1
- package/dist/types/config/colorPalettes.d.ts +1 -8
- package/dist/types/config/defaultPassthrough/index.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
-
|
|
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
|
}>;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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
|
|
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:
|
|
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: {
|