@cooperco/cooper-component-library 0.1.1 → 0.1.2

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 (117) hide show
  1. package/dist/{component-lib.js → lib/component-lib.js} +1924 -1488
  2. package/dist/lib/component-lib.umd.cjs +98 -0
  3. package/{src/assets → dist/lib/css}/main.css +3 -2
  4. package/dist/lib/style.css +1 -0
  5. package/dist/types/App.vue.d.ts +2 -0
  6. package/dist/types/components/Accordion/Accordion.d.ts +17 -0
  7. package/dist/types/components/Accordion/Accordion.vue.d.ts +29 -0
  8. package/dist/types/components/Accordion/AccordionItem.d.ts +23 -0
  9. package/dist/types/components/Accordion/AccordionItem.vue.d.ts +30 -0
  10. package/dist/types/components/Accordion/AccordionListItem.vue.d.ts +12 -0
  11. package/dist/types/components/Accordion/AccordionTileItem.vue.d.ts +16 -0
  12. package/dist/types/components/CTA/CTA.d.ts +19 -0
  13. package/dist/types/components/CTA/CTA.vue.d.ts +12 -0
  14. package/dist/types/components/CarouselModule/CarouselModule.d.ts +24 -0
  15. package/dist/types/components/CarouselModule/CarouselModule.vue.d.ts +26 -0
  16. package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.d.ts +11 -0
  17. package/dist/types/components/ContainerCollectionModule/ContainerCollectionModule.vue.d.ts +12 -0
  18. package/dist/types/components/ContainerModule/ContainerModule.d.ts +26 -0
  19. package/dist/types/components/ContainerModule/ContainerModule.vue.d.ts +36 -0
  20. package/dist/types/components/ContentModule/ContentModule.d.ts +28 -0
  21. package/dist/types/components/ContentModule/ContentModule.vue.d.ts +29 -0
  22. package/dist/types/components/FooterNavigation/FooterNavigation.d.ts +12 -0
  23. package/dist/types/components/FooterNavigation/FooterNavigation.vue.d.ts +12 -0
  24. package/dist/types/components/Image/Image.d.ts +13 -0
  25. package/dist/types/components/Image/Image.vue.d.ts +26 -0
  26. package/dist/types/components/LogoCollectionModule/LogoCollectionModule.d.ts +10 -0
  27. package/dist/types/components/LogoCollectionModule/LogoCollectionModule.vue.d.ts +12 -0
  28. package/dist/types/components/NavigationElement/NavigationElement.d.ts +17 -0
  29. package/dist/types/components/NavigationElement/NavigationElement.vue.d.ts +12 -0
  30. package/dist/types/components/PrimaryNavigation/PrimaryNavigation.d.ts +11 -0
  31. package/dist/types/components/PrimaryNavigation/PrimaryNavigation.vue.d.ts +12 -0
  32. package/dist/types/components/SplitModule/SplitModule.d.ts +16 -0
  33. package/dist/types/components/SplitModule/SplitModule.vue.d.ts +12 -0
  34. package/dist/types/components/TestimonialModule/TestimonialModule.d.ts +21 -0
  35. package/dist/types/components/TestimonialModule/TestimonialModule.vue.d.ts +12 -0
  36. package/dist/types/components/TileCollectionModule/TileCollectionModule.d.ts +14 -0
  37. package/dist/types/components/TileCollectionModule/TileCollectionModule.vue.d.ts +12 -0
  38. package/dist/types/components/TileContent/TileContent.d.ts +53 -0
  39. package/dist/types/components/TileContent/TileContentIconTile.vue.d.ts +12 -0
  40. package/dist/types/components/TileContent/TileContentImageStackedAnimatedTile.vue.d.ts +12 -0
  41. package/dist/types/components/TileContent/TileContentImageTile.vue.d.ts +12 -0
  42. package/dist/types/components/TileContent/TileContentTextTile.vue.d.ts +12 -0
  43. package/dist/types/components/TileContent/TileContentVideoTile.vue.d.ts +12 -0
  44. package/dist/types/components/TileLabel/TileLabel.d.ts +13 -0
  45. package/dist/types/components/TileLabel/TileLabel.vue.d.ts +29 -0
  46. package/dist/types/components/Video/Video.d.ts +8 -0
  47. package/dist/types/components/Video/Video.vue.d.ts +26 -0
  48. package/dist/types/components/components.d.ts +23 -0
  49. package/dist/types/components/types.d.ts +16 -0
  50. package/dist/types/config/defaultPassthrough.d.ts +96 -0
  51. package/dist/types/index.d.ts +8 -0
  52. package/dist/types/init.d.ts +3 -0
  53. package/dist/types/pages/index.vue.d.ts +2 -0
  54. package/dist/types/router.d.ts +5 -0
  55. package/dist/types/types.d.ts +49 -0
  56. package/package.json +21 -18
  57. package/dist/component-lib.umd.cjs +0 -98
  58. package/dist/style.css +0 -1
  59. package/src/components/Accordion/Accordion.ts +0 -20
  60. package/src/components/Accordion/Accordion.vue +0 -66
  61. package/src/components/Accordion/AccordionItem.ts +0 -25
  62. package/src/components/Accordion/AccordionItem.vue +0 -104
  63. package/src/components/Accordion/AccordionListItem.vue +0 -61
  64. package/src/components/Accordion/AccordionTileItem.vue +0 -75
  65. package/src/components/CTA/CTA.ts +0 -22
  66. package/src/components/CTA/CTA.vue +0 -65
  67. package/src/components/CarouselModule/CarouselModule.ts +0 -20
  68. package/src/components/CarouselModule/CarouselModule.vue +0 -64
  69. package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +0 -12
  70. package/src/components/ContainerCollectionModule/ContainerCollectionModule.vue +0 -42
  71. package/src/components/ContainerModule/ContainerModule.ts +0 -69
  72. package/src/components/ContainerModule/ContainerModule.vue +0 -113
  73. package/src/components/ContentModule/ContentModule.ts +0 -31
  74. package/src/components/ContentModule/ContentModule.vue +0 -65
  75. package/src/components/FooterNavigation/FooterNavigation.ts +0 -13
  76. package/src/components/FooterNavigation/FooterNavigation.vue +0 -59
  77. package/src/components/Image/Image.ts +0 -12
  78. package/src/components/Image/Image.vue +0 -17
  79. package/src/components/LogoCollectionModule/LogoCollectionModule.ts +0 -12
  80. package/src/components/LogoCollectionModule/LogoCollectionModule.vue +0 -40
  81. package/src/components/NavigationElement/NavigationElement.ts +0 -22
  82. package/src/components/NavigationElement/NavigationElement.vue +0 -101
  83. package/src/components/PrimaryNavigation/PrimaryNavigation.ts +0 -10
  84. package/src/components/PrimaryNavigation/PrimaryNavigation.vue +0 -71
  85. package/src/components/SplitModule/SplitModule.ts +0 -17
  86. package/src/components/SplitModule/SplitModule.vue +0 -57
  87. package/src/components/TestimonialModule/TestimonialModule.ts +0 -22
  88. package/src/components/TestimonialModule/TestimonialModule.vue +0 -51
  89. package/src/components/TileCollectionModule/TileCollectionModule.ts +0 -18
  90. package/src/components/TileCollectionModule/TileCollectionModule.vue +0 -58
  91. package/src/components/TileContent/TileContent.ts +0 -60
  92. package/src/components/TileContent/TileContent.vue +0 -116
  93. package/src/components/TileContent/TileContentIconTile.vue +0 -83
  94. package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +0 -121
  95. package/src/components/TileContent/TileContentImageTile.vue +0 -80
  96. package/src/components/TileContent/TileContentTextTile.vue +0 -63
  97. package/src/components/TileContent/TileContentVideoTile.vue +0 -81
  98. package/src/components/Video/Video.ts +0 -8
  99. package/src/components/Video/Video.vue +0 -18
  100. package/src/config/defaultPassthrough.ts +0 -261
  101. /package/{src/assets → dist/lib/css}/theme.css +0 -0
  102. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Bold.woff +0 -0
  103. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Bold.woff2 +0 -0
  104. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-LC-Bold.woff +0 -0
  105. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
  106. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-LC-Regular.woff +0 -0
  107. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
  108. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Medium.woff +0 -0
  109. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Medium.woff2 +0 -0
  110. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Regular.woff +0 -0
  111. /package/{src/assets → dist/lib}/fonts/GT-Walsheim-Regular.woff2 +0 -0
  112. /package/{src/assets → dist/lib}/fonts/fonts.scss +0 -0
  113. /package/{src/assets → dist/lib}/fonts/notosanssc-bold-webfont.woff +0 -0
  114. /package/{src/assets → dist/lib}/fonts/notosanssc-bold-webfont.woff2 +0 -0
  115. /package/{src/assets → dist/lib}/fonts/notosanssc-regular-webfont.woff +0 -0
  116. /package/{src/assets → dist/lib}/fonts/notosanssc-regular-webfont.woff2 +0 -0
  117. /package/dist/{vite.svg → lib/vite.svg} +0 -0
@@ -0,0 +1,53 @@
1
+ import { Component, ComponentPassthrough } from '../../types';
2
+ import { CTA } from '../CTA/CTA';
3
+ import { Image } from '../Image/Image';
4
+ import { TileLabel, TileLabelType } from '../TileLabel/TileLabel';
5
+ import { Video } from '../Video/Video';
6
+ export interface TileContentPassthrough extends ComponentPassthrough {
7
+ media?: string;
8
+ mediaContainer?: string;
9
+ ctas?: string;
10
+ label?: string;
11
+ numericLabel?: string;
12
+ cta?: string;
13
+ body?: string;
14
+ text?: string;
15
+ list?: string;
16
+ listItem?: string;
17
+ footer?: string;
18
+ footerContent?: string;
19
+ }
20
+ export interface TileContent extends Component {
21
+ __typename?: 'TileContent';
22
+ index?: number;
23
+ Image?: Image;
24
+ Video?: Video;
25
+ headline?: string;
26
+ subheadline?: string;
27
+ description?: string;
28
+ ctas?: CTA[];
29
+ textColor?: string;
30
+ backgroundColor?: string;
31
+ tileLabel?: TileLabel;
32
+ tileLabelType?: TileLabelType;
33
+ alignment?: 'left' | 'center' | 'right';
34
+ isImageStacked?: boolean;
35
+ pt?: TileContentPassthrough;
36
+ listItems?: string[];
37
+ footer?: string;
38
+ }
39
+ export interface TileContentTextTile extends Omit<TileContent, '__typename'> {
40
+ __typename?: 'TileContentTextTile';
41
+ }
42
+ export interface TileContentIconTile extends Omit<TileContent, '__typename'> {
43
+ __typename?: 'TileContentIconTile';
44
+ }
45
+ export interface TileContentImageTile extends Omit<TileContent, '__typename'> {
46
+ __typename?: 'TileContentImageTile';
47
+ }
48
+ export interface TileContentVideoTile extends Omit<TileContent, '__typename'> {
49
+ __typename?: 'TileContentVideoTile';
50
+ }
51
+ export interface TileContentImageStackedAnimatedTile extends Omit<TileContent, '__typename'> {
52
+ __typename?: 'TileContentImageStackedAnimatedTile';
53
+ }
@@ -0,0 +1,12 @@
1
+ import { TileContentIconTile } from './TileContent';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TileContentIconTile>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TileContentIconTile>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,12 @@
1
+ import { TileContentImageStackedAnimatedTile } from './TileContent';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TileContentImageStackedAnimatedTile>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TileContentImageStackedAnimatedTile>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,12 @@
1
+ import { TileContentImageTile } from './TileContent';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TileContentImageTile>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TileContentImageTile>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,12 @@
1
+ import { TileContentTextTile } from './TileContent';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TileContentTextTile>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TileContentTextTile>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,12 @@
1
+ import { TileContentVideoTile } from './TileContent';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TileContentVideoTile>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TileContentVideoTile>>>, {}, {}>;
3
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToOption<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -0,0 +1,13 @@
1
+ export interface TileLabelPassthrough {
2
+ root?: string;
3
+ }
4
+ export type TileLabelType = 'Text' | 'Numeric';
5
+ export interface TileLabel {
6
+ __typename?: 'TileLabel';
7
+ copy?: string;
8
+ type?: TileLabelType;
9
+ backgroundColor?: string;
10
+ alignment?: 'left' | 'right';
11
+ pt?: TileLabelPassthrough;
12
+ index?: number;
13
+ }
@@ -0,0 +1,29 @@
1
+ import { TileLabel } from './TileLabel';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TileLabel>, {
3
+ alignment: string;
4
+ type: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TileLabel>, {
6
+ alignment: string;
7
+ type: string;
8
+ }>>>, {
9
+ type: import("./TileLabel").TileLabelType;
10
+ alignment: "left" | "right";
11
+ }, {}>;
12
+ export default _default;
13
+ type __VLS_WithDefaults<P, D> = {
14
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
15
+ default: D[K];
16
+ }> : P[K];
17
+ };
18
+ type __VLS_Prettify<T> = {
19
+ [K in keyof T]: T[K];
20
+ } & {};
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToOption<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -0,0 +1,8 @@
1
+ import { Component } from '../../types';
2
+ import { ImageMedia } from '../Image/Image';
3
+ export interface Video extends Component {
4
+ __typename?: 'Video';
5
+ media: ImageMedia;
6
+ altTag?: string;
7
+ isEmbedded?: boolean;
8
+ }
@@ -0,0 +1,26 @@
1
+ import { Video } from './Video';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Video>, {
3
+ isEmbedded: boolean;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Video>, {
5
+ isEmbedded: boolean;
6
+ }>>>, {
7
+ isEmbedded: boolean;
8
+ }, {}>;
9
+ export default _default;
10
+ type __VLS_WithDefaults<P, D> = {
11
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
12
+ default: D[K];
13
+ }> : P[K];
14
+ };
15
+ type __VLS_Prettify<T> = {
16
+ [K in keyof T]: T[K];
17
+ } & {};
18
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ type __VLS_TypePropsToOption<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
@@ -0,0 +1,23 @@
1
+ export { default as Accordion } from './Accordion/Accordion.vue';
2
+ export { default as AccordionItem } from './Accordion/AccordionItem.vue';
3
+ export { default as AccordionListItem } from './Accordion/AccordionListItem.vue';
4
+ export { default as AccordionTileItem } from './Accordion/AccordionTileItem.vue';
5
+ export { default as CarouselModule } from './CarouselModule/CarouselModule.vue';
6
+ export { default as ContainerModule } from './ContainerModule/ContainerModule.vue';
7
+ export { default as ContentModule } from './ContentModule/ContentModule.vue';
8
+ export { default as ContainerCollectionModule } from './ContainerCollectionModule/ContainerCollectionModule.vue';
9
+ export { default as CTA } from './CTA/CTA.vue';
10
+ export { default as FooterNavigation } from './FooterNavigation/FooterNavigation.vue';
11
+ export { default as Image } from './Image/Image.vue';
12
+ export { default as LogoCollectionModule } from './LogoCollectionModule/LogoCollectionModule.vue';
13
+ export { default as NavigationElement } from './NavigationElement/NavigationElement.vue';
14
+ export { default as PrimaryNavigation } from './PrimaryNavigation/PrimaryNavigation.vue';
15
+ export { default as SplitModule } from './SplitModule/SplitModule.vue';
16
+ export { default as TestimonialModule } from './TestimonialModule/TestimonialModule.vue';
17
+ export { default as TileCollectionModule } from './TileCollectionModule/TileCollectionModule.vue';
18
+ export { default as TileContentIconTile } from './TileContent/TileContentIconTile.vue';
19
+ export { default as TileContentImageTile } from './TileContent/TileContentImageTile.vue';
20
+ export { default as TileContentTextTile } from './TileContent/TileContentTextTile.vue';
21
+ export { default as TileContentVideoTile } from './TileContent/TileContentTextTile.vue';
22
+ export { default as TileContentImageStackedAnimatedTile } from './TileContent/TileContentImageStackedAnimatedTile.vue';
23
+ export { default as Video } from './Video/Video.vue';
@@ -0,0 +1,16 @@
1
+ export type { Accordion as AccordionType } from './Accordion/Accordion';
2
+ export type { Carousel as CarouselModuleType } from './CarouselModule/CarouselModule';
3
+ export type { ContainerModule as ContainerModuleType } from './ContainerModule/ContainerModule';
4
+ export type { ContentModule as ContentModuleType } from './ContentModule/ContentModule';
5
+ export type { ContainerCollectionModule as ContainerCollectionModuleType } from './ContainerCollectionModule/ContainerCollectionModule';
6
+ export type { CTA as CTAType } from './CTA/CTA';
7
+ export type { FooterNavigation as FooterNavigationType } from './FooterNavigation/FooterNavigation';
8
+ export type { Image as ImageType } from './Image/Image';
9
+ export type { LogoCollectionModule as LogoCollectionModuleType } from './LogoCollectionModule/LogoCollectionModule';
10
+ export type { NavigationElement as NavigationElementType } from './NavigationElement/NavigationElement';
11
+ export type { PrimaryNavigation as PrimaryNavigationType } from './PrimaryNavigation/PrimaryNavigation';
12
+ export type { SplitModule as SplitModuleType } from './SplitModule/SplitModule';
13
+ export type { TestimonialModule as TestimonialModuleType } from './TestimonialModule/TestimonialModule';
14
+ export type { TileCollection as TileCollectionModuleType } from './TileCollectionModule/TileCollectionModule';
15
+ export type { TileContent as TileContentType } from './TileContent/TileContent';
16
+ export type { Video as VideoType } from './Video/Video';
@@ -0,0 +1,96 @@
1
+ import { ComponentPassthrough } from '../types';
2
+ import { ContainerModulePassthrough } from '../components/ContainerModule/ContainerModule';
3
+ import { AccordionItemPassthrough } from '../components/Accordion/AccordionItem';
4
+ import { AccordionPassthrough } from '../components/Accordion/Accordion';
5
+ import { CarouselPassthrough } from '../components/CarouselModule/CarouselModule';
6
+ import { ContentModulePassthrough } from '../components/ContentModule/ContentModule';
7
+ import { TestimonialModulePassthrough } from '../components/TestimonialModule/TestimonialModule';
8
+ import { TileContentPassthrough } from '../components/TileContent/TileContent';
9
+ import { CTAPassthrough } from '../components/CTA/CTA';
10
+ import { TileLabelPassthrough } from '../components/TileLabel/TileLabel';
11
+ export declare const DEFAULT_PASSTHROUGH: ComponentPassthrough;
12
+ interface GenericComponentPassthrough extends ComponentPassthrough, TileLabelPassthrough, AccordionPassthrough, AccordionItemPassthrough, CarouselPassthrough, ContainerModulePassthrough, ContentModulePassthrough, CTAPassthrough, TestimonialModulePassthrough, TileContentPassthrough {
13
+ }
14
+ /**
15
+ * TODO: Need to define the types for the passthroughs.
16
+ * REMOVE eslint-disable once types are defined
17
+ */
18
+ export declare const combinePassthroughs: <PtType extends GenericComponentPassthrough, OverrideType extends GenericComponentPassthrough>(passthrough: PtType, overrides: OverrideType) => GenericComponentPassthrough;
19
+ export interface AccordionPtVariants {
20
+ List: AccordionPassthrough;
21
+ Tile: AccordionPassthrough;
22
+ }
23
+ export declare const AccordionPt: AccordionPtVariants;
24
+ export declare const AccordionItemPt: GenericComponentPassthrough;
25
+ export declare const AccordionListItemPt: GenericComponentPassthrough;
26
+ export declare const AccordionTileItemPt: GenericComponentPassthrough;
27
+ export declare const CarouselModulePt: {
28
+ headline: string | undefined;
29
+ root: string;
30
+ content: string;
31
+ container: string;
32
+ previousbutton: string;
33
+ nextbutton: string;
34
+ itemscontent: string;
35
+ itemscontainer: string;
36
+ item: string;
37
+ indicators: string;
38
+ indicator: string;
39
+ indicatorbutton: string;
40
+ };
41
+ export declare const CarouselModuleAltPt: GenericComponentPassthrough;
42
+ export declare const ContainerCollectionModulePt: GenericComponentPassthrough;
43
+ export interface ContainerModulePtVariants {
44
+ Hero: ContainerModulePassthrough;
45
+ Centered: ContainerModulePassthrough;
46
+ }
47
+ export declare const ContainerModulePt: ContainerModulePtVariants;
48
+ export declare const ContentModulePt: GenericComponentPassthrough;
49
+ export interface CTAPtVariants {
50
+ fill: CTAPassthrough;
51
+ logo: CTAPassthrough;
52
+ link: CTAPassthrough;
53
+ outline: CTAPassthrough;
54
+ }
55
+ export declare const CTAPt: CTAPtVariants;
56
+ export declare const FooterNavigationPt: GenericComponentPassthrough;
57
+ export declare const ImagePt: GenericComponentPassthrough;
58
+ export declare const LogoCollectionModulePt: GenericComponentPassthrough;
59
+ export declare const NavigationElementPt: GenericComponentPassthrough;
60
+ export declare const PrimaryNavigationPt: GenericComponentPassthrough;
61
+ export declare const SplitModulePt: GenericComponentPassthrough;
62
+ export declare const TestimonialModulePt: GenericComponentPassthrough;
63
+ export interface TileCollectionPtVariants {
64
+ IconTile: ComponentPassthrough;
65
+ ImageTile: ComponentPassthrough;
66
+ VideoTile: ComponentPassthrough;
67
+ TextTile: ComponentPassthrough;
68
+ ImageStackedAnimatedTile: ComponentPassthrough;
69
+ }
70
+ export declare const TileCollectionModulePt: GenericComponentPassthrough;
71
+ export declare const TileContentPt: {
72
+ root: string;
73
+ headline: string;
74
+ cta: string;
75
+ ctas: string;
76
+ container: string;
77
+ description: string;
78
+ body: string;
79
+ footer: string;
80
+ footerContent: string;
81
+ };
82
+ export declare const TileContentIconTilePt: GenericComponentPassthrough;
83
+ export declare const TileContentImageStackedAnimatedTilePt: GenericComponentPassthrough;
84
+ export declare const TileContentImageTilePt: GenericComponentPassthrough;
85
+ export declare const TileContentTextTilePt: GenericComponentPassthrough;
86
+ export declare const TileContentVideoTilePt: GenericComponentPassthrough;
87
+ export declare const TileLabelPt: {
88
+ Numeric: {
89
+ root: string;
90
+ };
91
+ Text: {
92
+ root: string;
93
+ };
94
+ };
95
+ export declare const VideoPt: GenericComponentPassthrough;
96
+ export {};
@@ -0,0 +1,8 @@
1
+ export * from './config/defaultPassthrough';
2
+ import 'primeicons/primeicons.css';
3
+ import './assets/css/main.css';
4
+ import './assets/css/theme.css';
5
+ export * from './components/components';
6
+ export * from './components/types';
7
+ import initGlobalComponents from './init';
8
+ export { initGlobalComponents };
@@ -0,0 +1,3 @@
1
+ import { App } from 'vue';
2
+ declare const initGlobalComponents: (app: App) => void;
3
+ export default initGlobalComponents;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export declare const routes: {
2
+ path: string;
3
+ component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
4
+ }[];
5
+ export declare const router: import("vue-router").Router;
@@ -0,0 +1,49 @@
1
+ import { Image } from './components/Image/Image';
2
+ export interface URLRef {
3
+ link?: string;
4
+ page?: string;
5
+ }
6
+ export declare enum VariantOptions {
7
+ 'IconTile' = 0,
8
+ 'ImageTile' = 1,
9
+ 'VideoTile' = 2,
10
+ 'ImageStackedAnimatedTile' = 3,
11
+ 'VideoLeft' = 4,
12
+ 'Hero' = 5,
13
+ 'Centered' = 6
14
+ }
15
+ export declare enum MediaOptions {
16
+ 'Image' = "img",
17
+ 'Video' = "iframe"
18
+ }
19
+ export declare enum CTAOptions {
20
+ 'fill' = 0,
21
+ 'outline' = 1,
22
+ 'link' = 2,
23
+ 'logo' = 3
24
+ }
25
+ export interface tileLabel {
26
+ content: string;
27
+ type: 'Label' | 'Numeric';
28
+ textColor?: string;
29
+ backgroundColor?: string;
30
+ }
31
+ export interface socialMedia {
32
+ icon: Image;
33
+ url: URLRef;
34
+ }
35
+ export interface Component {
36
+ class?: string;
37
+ }
38
+ export interface ComponentPassthrough {
39
+ headline?: string;
40
+ subheadline?: string;
41
+ content?: string;
42
+ description?: string;
43
+ start?: string;
44
+ center?: string;
45
+ end?: string;
46
+ container?: string;
47
+ root?: string;
48
+ item?: string;
49
+ }
package/package.json CHANGED
@@ -1,30 +1,32 @@
1
1
  {
2
2
  "name": "@cooperco/cooper-component-library",
3
3
  "private": false,
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "type": "module",
6
6
  "files": [
7
- "dist",
8
- "src/components/",
9
- "src/assets/",
10
- "src/config/"
7
+ "dist"
11
8
  ],
12
- "main": "./dist/component-lib.umd.cjs",
13
- "module": "./dist/component-lib.js",
9
+ "main": "./dist/lib/component-lib.umd.cjs",
10
+ "module": "./dist/lib/component-lib.js",
11
+ "types": "./dist/types/index.d.ts",
14
12
  "exports": {
15
13
  ".": {
16
- "import": "./dist/component-lib.js",
17
- "require": "./dist/component-lib.umd.cjs"
14
+ "import": "./dist/lib/component-lib.js",
15
+ "require": "./dist/lib/component-lib.umd.cjs"
18
16
  },
19
- "./dist/style.css": {
20
- "import": "./dist/style.css",
21
- "require": "./dist/style.css"
17
+ "./css/main.css": {
18
+ "import": "./dist/lib/css/main.css",
19
+ "require": "./dist/lib/css/main.css"
22
20
  },
23
- "./components/*": "./dist/components/*",
24
- "./assets/*": "./dist/assets/*"
21
+ "./css/theme.css": {
22
+ "import": "./dist/lib/css/theme.css",
23
+ "require": "./dist/lib/css/theme.css"
24
+ }
25
25
  },
26
26
  "dependencies": {
27
27
  "@primevue/themes": "^4.0.0",
28
+ "graphql": "^16.9.0",
29
+ "graphql-tag": "^2.12.6",
28
30
  "primeicons": "^7.0.0",
29
31
  "primevue": "^3.0.0",
30
32
  "tailwind-merge": "^2.4.0",
@@ -65,13 +67,13 @@
65
67
  "typescript-eslint": "^7.17.0",
66
68
  "unplugin-vue-components": "^0.27.0",
67
69
  "vite": "^5.2.0",
70
+ "vite-plugin-css-injected-by-js": "^3.5.1",
71
+ "vite-plugin-static-copy": "^1.0.6",
68
72
  "vue-eslint-parser": "^9.4.3",
69
73
  "vue-router": "^4.4.3",
70
74
  "vue-tsc": "^2.0.29"
71
75
  },
72
76
  "peerDependencies": {
73
- "primevue": "^3.0.0",
74
- "tailwindcss": "^3.0.0",
75
77
  "vue": "^3.0.0"
76
78
  },
77
79
  "lint-staged": {
@@ -81,8 +83,9 @@
81
83
  },
82
84
  "scripts": {
83
85
  "dev": "vite",
84
- "check-types": "vue-tsc --noEmit",
85
- "build": "vite build",
86
+ "check-types": "vue-tsc",
87
+ "build:types": "vue-tsc --emitDeclarationOnly --outDir dist/types",
88
+ "build": "pnpm run build:types && vite build",
86
89
  "preview": "vite preview",
87
90
  "tail": "tailwind-config-viewer -o",
88
91
  "storybook": "storybook dev -p 6006",