@cooperco/cooper-component-library 0.0.10 → 0.1.1
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/component-lib.js +6960 -0
- package/dist/component-lib.umd.cjs +98 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +16 -0
- package/package.json +93 -84
- package/src/assets/fonts/GT-Walsheim-Bold.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Bold.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Bold.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Regular.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-Medium.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Medium.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-Regular.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Regular.woff2 +0 -0
- package/src/assets/fonts/fonts.scss +60 -0
- package/src/assets/fonts/notosanssc-bold-webfont.woff +0 -0
- package/src/assets/fonts/notosanssc-bold-webfont.woff2 +0 -0
- package/src/assets/fonts/notosanssc-regular-webfont.woff +0 -0
- package/src/assets/fonts/notosanssc-regular-webfont.woff2 +0 -0
- package/src/assets/main.css +18 -114
- package/src/assets/theme.css +5 -1
- package/src/components/{types → Accordion}/Accordion.ts +8 -6
- package/src/components/Accordion/Accordion.vue +66 -0
- package/src/components/Accordion/AccordionItem.ts +25 -0
- package/src/components/Accordion/AccordionItem.vue +104 -0
- package/src/components/{AccordionItem.vue → Accordion/AccordionListItem.vue} +22 -14
- package/src/components/Accordion/AccordionTileItem.vue +75 -0
- package/src/components/CTA/CTA.ts +22 -0
- package/src/components/CTA/CTA.vue +65 -0
- package/src/components/CarouselModule/CarouselModule.ts +20 -0
- package/src/components/{CarouselModule.vue → CarouselModule/CarouselModule.vue} +25 -7
- package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +12 -0
- package/src/components/{ContainerCollectionModule.vue → ContainerCollectionModule/ContainerCollectionModule.vue} +12 -3
- package/src/components/ContainerModule/ContainerModule.ts +69 -0
- package/src/components/{ContainerModule.vue → ContainerModule/ContainerModule.vue} +33 -36
- package/src/components/ContentModule/ContentModule.ts +31 -0
- package/src/components/ContentModule/ContentModule.vue +65 -0
- package/src/components/{types → FooterNavigation}/FooterNavigation.ts +3 -2
- package/src/components/{FooterNavigation.vue → FooterNavigation/FooterNavigation.vue} +4 -2
- package/src/components/Image/Image.vue +17 -0
- package/src/components/{types → LogoCollectionModule}/LogoCollectionModule.ts +3 -3
- package/src/components/{LogoCollectionModule.vue → LogoCollectionModule/LogoCollectionModule.vue} +13 -3
- package/src/components/{types → NavigationElement}/NavigationElement.ts +6 -3
- package/src/components/{NavigationElement.vue → NavigationElement/NavigationElement.vue} +18 -9
- package/src/components/{types → PrimaryNavigation}/PrimaryNavigation.ts +2 -2
- package/src/components/{PrimaryNavigation.vue → PrimaryNavigation/PrimaryNavigation.vue} +7 -4
- package/src/components/{types → SplitModule}/SplitModule.ts +6 -5
- package/src/components/SplitModule/SplitModule.vue +57 -0
- package/src/components/TestimonialModule/TestimonialModule.ts +22 -0
- package/src/components/TestimonialModule/TestimonialModule.vue +51 -0
- package/src/components/TileCollectionModule/TileCollectionModule.ts +18 -0
- package/src/components/TileCollectionModule/TileCollectionModule.vue +58 -0
- package/src/components/TileContent/TileContent.ts +60 -0
- package/src/components/{TileContent.vue → TileContent/TileContent.vue} +25 -14
- package/src/components/TileContent/TileContentIconTile.vue +83 -0
- package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +121 -0
- package/src/components/TileContent/TileContentImageTile.vue +80 -0
- package/src/components/TileContent/TileContentTextTile.vue +63 -0
- package/src/components/TileContent/TileContentVideoTile.vue +81 -0
- package/src/components/{types → Video}/Video.ts +1 -1
- package/src/components/{Video.vue → Video/Video.vue} +1 -1
- package/src/config/defaultPassthrough.ts +261 -0
- package/src/assets/usercard.jpg +0 -0
- package/src/assets/vue.svg +0 -1
- package/src/components/Accordion.vue +0 -33
- package/src/components/CTA.vue +0 -39
- package/src/components/ContentAndImage.vue +0 -34
- package/src/components/ContentMediaModule.vue +0 -50
- package/src/components/ContentModule.vue +0 -51
- package/src/components/IconChevron.vue +0 -107
- package/src/components/Image.vue +0 -15
- package/src/components/LogoContainerModule.vue +0 -30
- package/src/components/SplitModule.vue +0 -42
- package/src/components/Testimonial.vue +0 -48
- package/src/components/TestimonialModule.vue +0 -48
- package/src/components/TileCollection.vue +0 -37
- package/src/components/TileCollectionModule.vue +0 -45
- package/src/components/types/AccordionItem.ts +0 -19
- package/src/components/types/CTA.ts +0 -13
- package/src/components/types/CarouselModule.ts +0 -21
- package/src/components/types/ContainerCollectionModule.ts +0 -12
- package/src/components/types/ContainerModule.ts +0 -35
- package/src/components/types/ContentAndImage.ts +0 -14
- package/src/components/types/ContentMediaModule.ts +0 -14
- package/src/components/types/ContentModule.ts +0 -21
- package/src/components/types/LogoContainerModule.ts +0 -12
- package/src/components/types/Testimonial.ts +0 -17
- package/src/components/types/TileCollection.ts +0 -14
- package/src/components/types/TileContent.ts +0 -34
- package/src/components/types/index.ts +0 -10
- package/src/presets/aura/accordion/index.js +0 -81
- package/src/presets/aura/autocomplete/index.js +0 -280
- package/src/presets/aura/avatar/index.js +0 -46
- package/src/presets/aura/badge/index.js +0 -43
- package/src/presets/aura/badgedirective/index.js +0 -49
- package/src/presets/aura/blockui/index.js +0 -8
- package/src/presets/aura/breadcrumb/index.js +0 -63
- package/src/presets/aura/button/index.js +0 -511
- package/src/presets/aura/calendar/index.js +0 -702
- package/src/presets/aura/card/index.js +0 -53
- package/src/presets/aura/carousel/index.js +0 -160
- package/src/presets/aura/cascadeselect/index.js +0 -220
- package/src/presets/aura/checkbox/index.js +0 -107
- package/src/presets/aura/chip/index.js +0 -45
- package/src/presets/aura/chips/index.js +0 -126
- package/src/presets/aura/colorpicker/index.js +0 -132
- package/src/presets/aura/confirmpopup/index.js +0 -111
- package/src/presets/aura/contextmenu/index.js +0 -132
- package/src/presets/aura/datatable/index.js +0 -1290
- package/src/presets/aura/dataview/index.js +0 -40
- package/src/presets/aura/deferred/index.js +0 -3
- package/src/presets/aura/dialog/index.js +0 -250
- package/src/presets/aura/divider/index.js +0 -72
- package/src/presets/aura/dock/index.js +0 -97
- package/src/presets/aura/dropdown/index.js +0 -297
- package/src/presets/aura/fieldset/index.js +0 -95
- package/src/presets/aura/fileupload/index.js +0 -175
- package/src/presets/aura/floatlabel/index.js +0 -26
- package/src/presets/aura/galleria/index.js +0 -353
- package/src/presets/aura/global.js +0 -90
- package/src/presets/aura/iconfield/index.js +0 -22
- package/src/presets/aura/image/index.js +0 -206
- package/src/presets/aura/index.js +0 -181
- package/src/presets/aura/inlinemessage/index.js +0 -46
- package/src/presets/aura/inplace/index.js +0 -27
- package/src/presets/aura/inputgroup/index.js +0 -5
- package/src/presets/aura/inputgroupaddon/index.js +0 -28
- package/src/presets/aura/inputmask/index.js +0 -47
- package/src/presets/aura/inputnumber/index.js +0 -293
- package/src/presets/aura/inputotp/index.js +0 -69
- package/src/presets/aura/inputswitch/index.js +0 -94
- package/src/presets/aura/inputtext/index.js +0 -63
- package/src/presets/aura/knob/index.js +0 -47
- package/src/presets/aura/listbox/index.js +0 -158
- package/src/presets/aura/megamenu/index.js +0 -206
- package/src/presets/aura/menu/index.js +0 -122
- package/src/presets/aura/menubar/index.js +0 -184
- package/src/presets/aura/message/index.js +0 -112
- package/src/presets/aura/metergroup/index.js +0 -110
- package/src/presets/aura/multiselect/index.js +0 -579
- package/src/presets/aura/orderlist/index.js +0 -281
- package/src/presets/aura/organizationchart/index.js +0 -142
- package/src/presets/aura/overlaypanel/index.js +0 -34
- package/src/presets/aura/paginator/index.js +0 -566
- package/src/presets/aura/panel/index.js +0 -102
- package/src/presets/aura/panelmenu/index.js +0 -130
- package/src/presets/aura/password/index.js +0 -143
- package/src/presets/aura/picklist/index.js +0 -718
- package/src/presets/aura/progressbar/index.js +0 -64
- package/src/presets/aura/progressspinner/index.js +0 -51
- package/src/presets/aura/radiobutton/index.js +0 -121
- package/src/presets/aura/rating/index.js +0 -95
- package/src/presets/aura/ripple/index.js +0 -6
- package/src/presets/aura/scrollpanel/index.js +0 -77
- package/src/presets/aura/scrolltop/index.js +0 -45
- package/src/presets/aura/selectbutton/index.js +0 -66
- package/src/presets/aura/sidebar/index.js +0 -160
- package/src/presets/aura/skeleton/index.js +0 -19
- package/src/presets/aura/slider/index.js +0 -144
- package/src/presets/aura/speeddial/index.js +0 -579
- package/src/presets/aura/splitbutton/index.js +0 -1185
- package/src/presets/aura/splitter/index.js +0 -71
- package/src/presets/aura/stepper/index.js +0 -183
- package/src/presets/aura/steps/index.js +0 -117
- package/src/presets/aura/tabmenu/index.js +0 -75
- package/src/presets/aura/tabview/index.js +0 -162
- package/src/presets/aura/tag/index.js +0 -44
- package/src/presets/aura/terminal/index.js +0 -60
- package/src/presets/aura/textarea/index.js +0 -49
- package/src/presets/aura/tieredmenu/index.js +0 -125
- package/src/presets/aura/timeline/index.js +0 -114
- package/src/presets/aura/toast/index.js +0 -151
- package/src/presets/aura/togglebutton/index.js +0 -98
- package/src/presets/aura/toolbar/index.js +0 -28
- package/src/presets/aura/tooltip/index.js +0 -73
- package/src/presets/aura/tree/index.js +0 -294
- package/src/presets/aura/treeselect/index.js +0 -404
- package/src/presets/aura/treetable/index.js +0 -513
- package/src/presets/aura/tristatecheckbox/index.js +0 -121
- /package/src/components/{types → Image}/Image.ts +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Testimonial } from './types/Testimonial'
|
|
3
|
-
import { MediaOptions } from '../types'
|
|
4
|
-
import { computed } from 'vue'
|
|
5
|
-
|
|
6
|
-
const props = defineProps<Testimonial>()
|
|
7
|
-
|
|
8
|
-
const mediaTypeValue = computed(() => {
|
|
9
|
-
if (!props.media) {
|
|
10
|
-
return null
|
|
11
|
-
}
|
|
12
|
-
return MediaOptions[props.media.mediaType]
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const computedStyle = computed(() => {
|
|
16
|
-
return {
|
|
17
|
-
'background-color': props.backgroundColor ?? 'transparent',
|
|
18
|
-
color: props.textColor ?? 'inherit',
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<template>
|
|
24
|
-
<div class="testimonial p-5" :style="computedStyle">
|
|
25
|
-
<div
|
|
26
|
-
:class="`container mx-auto flex flex-col items-center lg:flex-row gap-5 ${pt?.container ?? ''}`"
|
|
27
|
-
>
|
|
28
|
-
<div v-if="media" :class="`testimonial-media ${pt?.media}`">
|
|
29
|
-
<component :is="mediaTypeValue" :="media" />
|
|
30
|
-
</div>
|
|
31
|
-
<div
|
|
32
|
-
v-if="headline || quote"
|
|
33
|
-
:class="`testimonial-text ${pt?.text ?? ''}`"
|
|
34
|
-
>
|
|
35
|
-
<h3
|
|
36
|
-
v-if="headline"
|
|
37
|
-
:class="`testimonial-headline ${pt?.headline ?? ''}`"
|
|
38
|
-
>
|
|
39
|
-
{{ headline }}
|
|
40
|
-
</h3>
|
|
41
|
-
|
|
42
|
-
<p v-if="quote" :class="`testimonial-quote ${pt?.quote ?? ''}`">
|
|
43
|
-
{{ quote }}
|
|
44
|
-
</p>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { Testimonial } from './types/Testimonial'
|
|
3
|
-
import { MediaOptions } from '../types'
|
|
4
|
-
import { computed } from 'vue'
|
|
5
|
-
|
|
6
|
-
const props = defineProps<Testimonial>()
|
|
7
|
-
|
|
8
|
-
const mediaTypeValue = computed(() => {
|
|
9
|
-
if (!props.media) {
|
|
10
|
-
return null
|
|
11
|
-
}
|
|
12
|
-
return MediaOptions[props.media.mediaType]
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
const computedStyle = computed(() => {
|
|
16
|
-
return {
|
|
17
|
-
'background-color': props.backgroundColor ?? 'transparent',
|
|
18
|
-
color: props.textColor ?? 'inherit',
|
|
19
|
-
}
|
|
20
|
-
})
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<template>
|
|
24
|
-
<div class="testimonial p-5" :style="computedStyle">
|
|
25
|
-
<div
|
|
26
|
-
:class="`container mx-auto flex flex-col items-center lg:flex-row gap-5 ${pt?.container ?? ''}`"
|
|
27
|
-
>
|
|
28
|
-
<div v-if="media" :class="`testimonial-media ${pt?.media}`">
|
|
29
|
-
<component :is="mediaTypeValue" :="media" />
|
|
30
|
-
</div>
|
|
31
|
-
<div
|
|
32
|
-
v-if="headline || quote"
|
|
33
|
-
:class="`testimonial-text ${pt?.text ?? ''}`"
|
|
34
|
-
>
|
|
35
|
-
<h3
|
|
36
|
-
v-if="headline"
|
|
37
|
-
:class="`testimonial-headline ${pt?.headline ?? ''}`"
|
|
38
|
-
>
|
|
39
|
-
{{ headline }}
|
|
40
|
-
</h3>
|
|
41
|
-
|
|
42
|
-
<p v-if="quote" :class="`testimonial-quote ${pt?.quote ?? ''}`">
|
|
43
|
-
{{ quote }}
|
|
44
|
-
</p>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { TileCollection } from './types/TileCollection'
|
|
3
|
-
import TileContent from './TileContent.vue'
|
|
4
|
-
import { computed } from 'vue'
|
|
5
|
-
|
|
6
|
-
const props = defineProps<TileCollection>()
|
|
7
|
-
|
|
8
|
-
const computedStyle = computed(() => {
|
|
9
|
-
return {
|
|
10
|
-
'background-color': props.backgroundColor ?? 'transparent',
|
|
11
|
-
color: props.textColor ?? 'inherit',
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<section :class="`tile-collection ${variant}`" :style="computedStyle">
|
|
18
|
-
<div :class="`container mx-auto ${pt?.container ?? ''}`">
|
|
19
|
-
<h2
|
|
20
|
-
v-if="headline"
|
|
21
|
-
:class="`tile-collection-headline ${pt?.headline ?? ''}`"
|
|
22
|
-
>
|
|
23
|
-
{{ headline }}
|
|
24
|
-
</h2>
|
|
25
|
-
<ul
|
|
26
|
-
v-if="modules"
|
|
27
|
-
:class="`tile-collection-content flex flex-col md:flex-row justify-center gap-3 ${pt?.content ?? ''}`"
|
|
28
|
-
>
|
|
29
|
-
<TileContent
|
|
30
|
-
v-for="(item, index) in modules"
|
|
31
|
-
:class="`tile-collection-content-item-${index}`"
|
|
32
|
-
:="item"
|
|
33
|
-
/>
|
|
34
|
-
</ul>
|
|
35
|
-
</div>
|
|
36
|
-
</section>
|
|
37
|
-
</template>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { TileCollection } from './types/TileCollection'
|
|
3
|
-
import TileContent from './TileContent.vue'
|
|
4
|
-
import { computed } from 'vue'
|
|
5
|
-
|
|
6
|
-
const props = defineProps<TileCollection>()
|
|
7
|
-
|
|
8
|
-
const computedStyle = computed(() => {
|
|
9
|
-
return {
|
|
10
|
-
'background-color': props.backgroundColor ?? 'transparent',
|
|
11
|
-
color: props.textColor ?? 'inherit',
|
|
12
|
-
}
|
|
13
|
-
})
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<template>
|
|
17
|
-
<section :class="`tile-collection ${variant}`" :style="computedStyle">
|
|
18
|
-
<div :class="`container mx-auto ${pt?.container ?? ''}`">
|
|
19
|
-
<h2
|
|
20
|
-
v-if="headline"
|
|
21
|
-
:class="`tile-collection-headline ${pt?.headline ?? ''}`"
|
|
22
|
-
>
|
|
23
|
-
{{ headline }}
|
|
24
|
-
</h2>
|
|
25
|
-
<h3
|
|
26
|
-
v-if="description"
|
|
27
|
-
:class="`tile-collection-description ${pt?.description ?? ''}`"
|
|
28
|
-
>
|
|
29
|
-
{{ description }}
|
|
30
|
-
</h3>
|
|
31
|
-
<ul
|
|
32
|
-
v-if="modules"
|
|
33
|
-
:class="`tile-collection-content flex flex-col md:flex-row justify-center gap-3 ${pt?.content ?? ''}`"
|
|
34
|
-
>
|
|
35
|
-
<TileContent
|
|
36
|
-
v-for="(item, index) in modules"
|
|
37
|
-
:class="`tile-collection-content-item-${index}`"
|
|
38
|
-
:isImageStacked="variant === 'ImageStackedAnimated'"
|
|
39
|
-
:="item"
|
|
40
|
-
/>
|
|
41
|
-
</ul>
|
|
42
|
-
<!-- TODO: need to add the CTA -->
|
|
43
|
-
</div>
|
|
44
|
-
</section>
|
|
45
|
-
</template>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { Image } from './Image'
|
|
3
|
-
|
|
4
|
-
interface AccordionItemOverrides extends ClassOverrides {
|
|
5
|
-
icon?: string
|
|
6
|
-
button?: string
|
|
7
|
-
imageIcon?: string
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface AccordionItem {
|
|
11
|
-
__typename?: 'AccordionItem'
|
|
12
|
-
itemNumber?: number
|
|
13
|
-
title?: string
|
|
14
|
-
content?: string
|
|
15
|
-
pt?: AccordionItemOverrides
|
|
16
|
-
isFirst?: boolean
|
|
17
|
-
isLast?: boolean
|
|
18
|
-
imageIcon?: Image
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { URLRef } from '../../types'
|
|
2
|
-
|
|
3
|
-
export interface CTA {
|
|
4
|
-
__typename?: 'CTA'
|
|
5
|
-
title: string
|
|
6
|
-
url: URLRef
|
|
7
|
-
color: string
|
|
8
|
-
textColor: string
|
|
9
|
-
buttonType: 'fill' | 'outline' | 'link'
|
|
10
|
-
ariaLabel: string
|
|
11
|
-
anchor?: string
|
|
12
|
-
target?: string
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { ContainerModule } from './ContainerModule'
|
|
3
|
-
import { ContentMediaModule } from './ContentMediaModule'
|
|
4
|
-
import { Testimonial } from './Testimonial'
|
|
5
|
-
import { TileContent } from './TileContent'
|
|
6
|
-
|
|
7
|
-
interface CarouselPassthrough extends ClassOverrides {
|
|
8
|
-
item?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Carousel
|
|
12
|
-
export interface Carousel {
|
|
13
|
-
__typename?: 'CarouselModule'
|
|
14
|
-
headline: string
|
|
15
|
-
modules: (ContentMediaModule | Testimonial | TileContent | ContainerModule)[]
|
|
16
|
-
textColor?: string
|
|
17
|
-
backgroundColor?: string
|
|
18
|
-
backgroundImage?: string
|
|
19
|
-
pt?: CarouselPassthrough
|
|
20
|
-
variant?: 'Hero' | 'Default'
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { ContainerModule } from './ContainerModule'
|
|
3
|
-
import { SplitModule } from './SplitModule'
|
|
4
|
-
|
|
5
|
-
export interface ContainerCollectionModule {
|
|
6
|
-
__typename?: 'ContainerCollection'
|
|
7
|
-
entryTitle?: string
|
|
8
|
-
headline: string
|
|
9
|
-
modules: Array<ContainerModule | SplitModule>
|
|
10
|
-
backgroundColor?: string
|
|
11
|
-
pt?: ClassOverrides
|
|
12
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Video } from '../../types'
|
|
2
|
-
import { Image } from './Image'
|
|
3
|
-
import { Accordion } from './Accordion'
|
|
4
|
-
import { ContentModule } from './ContentModule'
|
|
5
|
-
import { Testimonial } from './Testimonial'
|
|
6
|
-
import { TileCollection } from './TileCollection'
|
|
7
|
-
import { TileContent } from './TileContent'
|
|
8
|
-
import { ClassOverrides } from '.'
|
|
9
|
-
|
|
10
|
-
interface ContainerClassOverrides extends ClassOverrides {
|
|
11
|
-
inner?: string
|
|
12
|
-
fullWidthContent?: string
|
|
13
|
-
}
|
|
14
|
-
export interface ContainerModule {
|
|
15
|
-
__typename?: 'ContainerModule'
|
|
16
|
-
headline: string
|
|
17
|
-
subHeadline?: string
|
|
18
|
-
fullWidthContent?:
|
|
19
|
-
| Image
|
|
20
|
-
| Video
|
|
21
|
-
| ContentModule
|
|
22
|
-
| ContainerModule
|
|
23
|
-
| TileCollection
|
|
24
|
-
| TileContent
|
|
25
|
-
| Accordion
|
|
26
|
-
start?: Image | Video | ContentModule | TileContent | Accordion | Testimonial
|
|
27
|
-
end?: Image | Video | ContentModule | TileContent | Accordion | Testimonial
|
|
28
|
-
textColor?: string
|
|
29
|
-
backgroundColor?: string
|
|
30
|
-
backgroundImage?: string
|
|
31
|
-
variant?: 'Centered' | 'Hero'
|
|
32
|
-
// types only used in code, based on placement from contentful
|
|
33
|
-
isChild?: boolean
|
|
34
|
-
pt?: ContainerClassOverrides
|
|
35
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Image } from '../../types'
|
|
2
|
-
import { ContentModule } from './ContentModule'
|
|
3
|
-
|
|
4
|
-
export interface ContentAndImage {
|
|
5
|
-
__typename?: 'ContentAndImage'
|
|
6
|
-
headline: string
|
|
7
|
-
fullWidthContent?: boolean
|
|
8
|
-
content: ContentModule
|
|
9
|
-
image?: Image
|
|
10
|
-
textColor?: string
|
|
11
|
-
backgroundColor?: string
|
|
12
|
-
// types only used in code, based on placement from contentful
|
|
13
|
-
isChild: boolean
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Image } from '../../types'
|
|
2
|
-
import { ContentModule } from './ContentModule'
|
|
3
|
-
|
|
4
|
-
export interface ContentMediaModule {
|
|
5
|
-
__typename?: 'ContentMediaModule'
|
|
6
|
-
fullWidthContent?: boolean
|
|
7
|
-
content: ContentModule
|
|
8
|
-
media?: Image
|
|
9
|
-
textColor?: string
|
|
10
|
-
backgroundColor?: string
|
|
11
|
-
variant: 'VideoLeft' | 'Hero'
|
|
12
|
-
// types only used in code, based on placement from contentful
|
|
13
|
-
isChild: boolean
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { CTA } from './CTA'
|
|
3
|
-
import { Image } from './Image'
|
|
4
|
-
|
|
5
|
-
interface ContentModuleOverrides extends ClassOverrides {
|
|
6
|
-
container?: string
|
|
7
|
-
ctas?: string
|
|
8
|
-
logo?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ContentModule {
|
|
12
|
-
__typename?: 'ContentModule'
|
|
13
|
-
headline?: string
|
|
14
|
-
subHeadline?: string
|
|
15
|
-
description?: string
|
|
16
|
-
CTAs?: CTA[]
|
|
17
|
-
textColor?: string
|
|
18
|
-
backgroundColor?: string
|
|
19
|
-
pt?: ContentModuleOverrides
|
|
20
|
-
logo?: Image
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { Image } from './Image'
|
|
3
|
-
|
|
4
|
-
// Logos
|
|
5
|
-
export interface LogoContainerModule {
|
|
6
|
-
__typename?: 'LogoContainerModule'
|
|
7
|
-
headline: string
|
|
8
|
-
modules: Image[]
|
|
9
|
-
textColor?: string
|
|
10
|
-
backgroundColor?: string
|
|
11
|
-
pt?: ClassOverrides
|
|
12
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { Image, Video } from '../../types'
|
|
3
|
-
|
|
4
|
-
interface TestimonialPassthrough extends ClassOverrides {
|
|
5
|
-
quote?: string
|
|
6
|
-
media?: string
|
|
7
|
-
text?: string
|
|
8
|
-
}
|
|
9
|
-
export interface Testimonial {
|
|
10
|
-
__typename?: 'Testimonial'
|
|
11
|
-
headline: string
|
|
12
|
-
quote: string
|
|
13
|
-
media?: Video | Image
|
|
14
|
-
textColor?: string
|
|
15
|
-
backgroundColor?: string
|
|
16
|
-
pt?: TestimonialPassthrough
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { TileContent } from './TileContent'
|
|
3
|
-
|
|
4
|
-
export interface TileCollection {
|
|
5
|
-
__typename?: 'TileCollection'
|
|
6
|
-
headline: string
|
|
7
|
-
description?: string
|
|
8
|
-
modules: TileContent[]
|
|
9
|
-
textColor?: string
|
|
10
|
-
backgroundColor?: string
|
|
11
|
-
variant?: 'IconCard' | 'ImageCard' | 'VideoCard' | 'ImageStackedAnimated'
|
|
12
|
-
pt?: ClassOverrides
|
|
13
|
-
description?: string
|
|
14
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ClassOverrides } from '.'
|
|
2
|
-
import { CardLabel, Video } from '../../types'
|
|
3
|
-
import { CTA } from './CTA'
|
|
4
|
-
import { Image } from './Image'
|
|
5
|
-
|
|
6
|
-
interface TileContentOverrides extends ClassOverrides {
|
|
7
|
-
media?: string
|
|
8
|
-
mediaContainer?: string
|
|
9
|
-
ctas?: string
|
|
10
|
-
label?: string
|
|
11
|
-
cta?: string
|
|
12
|
-
body?: string
|
|
13
|
-
list?: string
|
|
14
|
-
listItem?: string
|
|
15
|
-
price?: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface TileContent {
|
|
19
|
-
__typename?: 'TileContent'
|
|
20
|
-
Image?: Image
|
|
21
|
-
Video?: Video
|
|
22
|
-
headline: string
|
|
23
|
-
subheadline?: string
|
|
24
|
-
description: string
|
|
25
|
-
CTAs?: CTA[]
|
|
26
|
-
textColor?: string
|
|
27
|
-
backgroundColor?: string
|
|
28
|
-
cardLabel?: CardLabel
|
|
29
|
-
alignment?: 'left' | 'center' | 'right'
|
|
30
|
-
isImageStacked?: boolean
|
|
31
|
-
pt?: TileContentOverrides
|
|
32
|
-
listItems?: string[]
|
|
33
|
-
price?: string
|
|
34
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
accordiontab: {
|
|
3
|
-
root: {
|
|
4
|
-
class: ['mb-0', 'border-b border-surface-200 dark:border-surface-700'],
|
|
5
|
-
},
|
|
6
|
-
header: ({ props }) => ({
|
|
7
|
-
class: [
|
|
8
|
-
// State
|
|
9
|
-
{
|
|
10
|
-
'select-none pointer-events-none cursor-default opacity-60':
|
|
11
|
-
props?.disabled,
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
}),
|
|
15
|
-
headerAction: {
|
|
16
|
-
class: [
|
|
17
|
-
//Font
|
|
18
|
-
'font-semibold',
|
|
19
|
-
'leading-none',
|
|
20
|
-
|
|
21
|
-
// Alignments
|
|
22
|
-
'flex justify-between items-center',
|
|
23
|
-
'flex-row-reverse',
|
|
24
|
-
'relative',
|
|
25
|
-
|
|
26
|
-
// Sizing
|
|
27
|
-
'p-[1.125rem]',
|
|
28
|
-
|
|
29
|
-
// Shape
|
|
30
|
-
'rounded-md',
|
|
31
|
-
'border-0',
|
|
32
|
-
|
|
33
|
-
// Color
|
|
34
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
35
|
-
'text-surface-600 dark:text-surface-0/80',
|
|
36
|
-
|
|
37
|
-
// Transition
|
|
38
|
-
'transition duration-200 ease-in-out',
|
|
39
|
-
'transition-shadow duration-200',
|
|
40
|
-
|
|
41
|
-
// States
|
|
42
|
-
'focus:outline-none focus:outline-offset-0 focus-visible:ring-1 focus-visible:ring-primary-400 dark:focus-visible:ring-primary-300', // Focus
|
|
43
|
-
|
|
44
|
-
// Misc
|
|
45
|
-
'cursor-pointer no-underline select-none',
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
headerIcon: ({ context }) => ({
|
|
49
|
-
class: [
|
|
50
|
-
'inline-block ml-2',
|
|
51
|
-
{ 'text-surface-900 dark:text-surface-0': context.active },
|
|
52
|
-
],
|
|
53
|
-
}),
|
|
54
|
-
headerTitle: {
|
|
55
|
-
class: 'leading-none',
|
|
56
|
-
},
|
|
57
|
-
content: {
|
|
58
|
-
class: [
|
|
59
|
-
// Spacing
|
|
60
|
-
'p-[1.125rem] pt-0',
|
|
61
|
-
|
|
62
|
-
//Shape
|
|
63
|
-
'border-0 rounded-none',
|
|
64
|
-
|
|
65
|
-
// Color
|
|
66
|
-
'bg-surface-0 dark:bg-surface-900',
|
|
67
|
-
'text-surface-600 dark:text-surface-0/70',
|
|
68
|
-
],
|
|
69
|
-
},
|
|
70
|
-
transition: {
|
|
71
|
-
enterFromClass: 'max-h-0',
|
|
72
|
-
enterActiveClass:
|
|
73
|
-
'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
|
|
74
|
-
enterToClass: 'max-h-[1000px]',
|
|
75
|
-
leaveFromClass: 'max-h-[1000px]',
|
|
76
|
-
leaveActiveClass:
|
|
77
|
-
'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
|
|
78
|
-
leaveToClass: 'max-h-0',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
}
|