@treely/strapi-slices 2.3.0 → 2.4.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/README.md +79 -0
- package/dist/components/CreditsAvailableBadge/messages.de.d.ts +2 -2
- package/dist/components/CreditsAvailableBadge/messages.en.d.ts +2 -2
- package/dist/components/portfolio/DocumentsDownloadList/messages.de.d.ts +2 -2
- package/dist/components/portfolio/DocumentsDownloadList/messages.en.d.ts +2 -2
- package/dist/components/portfolio/ProjectInfo/messages.de.d.ts +2 -2
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +2 -2
- package/dist/components/portfolio/SmallCheckout/messages.de.d.ts +2 -2
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/slices/Comparison/messages.de.d.ts +2 -2
- package/dist/slices/Comparison/messages.en.d.ts +2 -2
- package/dist/slices/Cta/messages.de.d.ts +2 -2
- package/dist/slices/Cta/messages.en.d.ts +2 -2
- package/dist/slices/CustomerStories/messages.de.d.ts +2 -2
- package/dist/slices/CustomerStories/messages.en.d.ts +2 -2
- package/dist/slices/FullWidthImageSlider/styles.d.ts +1 -1
- package/dist/slices/Glossary/messages.de.d.ts +2 -2
- package/dist/slices/Glossary/messages.en.d.ts +2 -2
- package/dist/slices/ProjectFacts/messages.de.d.ts +2 -2
- package/dist/slices/ProjectFacts/messages.en.d.ts +2 -2
- package/dist/slices/ProjectsMap/messages.de.d.ts +2 -2
- package/dist/slices/ProjectsMap/messages.en.d.ts +2 -2
- package/dist/slices/ShopCheckout/messages.de.d.ts +2 -2
- package/dist/slices/ShopCheckout/messages.en.d.ts +2 -2
- package/dist/slices/TextCarousel/styles.d.ts +2 -2
- package/dist/strapi-slices.cjs.development.js +36 -36
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +36 -36
- package/dist/strapi-slices.esm.js.map +1 -1
- package/dist/unit.messages.de.d.ts +2 -2
- package/dist/unit.messages.en.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/CreditsAvailableBadge/messages.de.ts +2 -1
- package/src/components/CreditsAvailableBadge/messages.en.ts +2 -1
- package/src/components/portfolio/DocumentsDownloadList/messages.de.ts +2 -1
- package/src/components/portfolio/DocumentsDownloadList/messages.en.ts +2 -1
- package/src/components/portfolio/ProjectInfo/messages.de.ts +2 -1
- package/src/components/portfolio/ProjectInfo/messages.en.ts +2 -1
- package/src/components/portfolio/SmallCheckout/messages.de.ts +2 -1
- package/src/components/portfolio/SmallCheckout/messages.en.ts +2 -1
- package/src/index.tsx +4 -0
- package/src/slices/Comparison/messages.de.ts +2 -1
- package/src/slices/Comparison/messages.en.ts +2 -1
- package/src/slices/Cta/Cta.tsx +2 -2
- package/src/slices/Cta/messages.de.ts +2 -1
- package/src/slices/Cta/messages.en.ts +2 -1
- package/src/slices/CustomerStories/messages.de.ts +2 -1
- package/src/slices/CustomerStories/messages.en.ts +2 -1
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx +1 -1
- package/src/slices/FullWidthImageSlider/styles.ts +1 -1
- package/src/slices/Glossary/messages.de.ts +2 -1
- package/src/slices/Glossary/messages.en.ts +2 -1
- package/src/slices/ProjectFacts/messages.de.ts +2 -1
- package/src/slices/ProjectFacts/messages.en.ts +2 -1
- package/src/slices/ProjectsMap/mapboxStyle.ts +3 -3
- package/src/slices/ProjectsMap/messages.de.ts +2 -1
- package/src/slices/ProjectsMap/messages.en.ts +2 -1
- package/src/slices/ShopCheckout/messages.de.ts +2 -1
- package/src/slices/ShopCheckout/messages.en.ts +2 -1
- package/src/slices/TextCarousel/TextCarousel.tsx +2 -2
- package/src/slices/TextCarousel/styles.ts +6 -6
- package/src/unit.messages.de.ts +2 -1
- package/src/unit.messages.en.ts +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesDe = {
|
|
2
2
|
'components.creditsAvailableBadge.text.yes': 'Credits verfügbar',
|
|
3
3
|
'components.creditsAvailableBadge.text.some': 'Einige verbleibende Credits',
|
|
4
4
|
'components.creditsAvailableBadge.text.no': 'Keine verbleibenden Credits',
|
|
5
5
|
'components.creditsAvailableBadge.text.notYet':
|
|
6
6
|
'Noch keine Credits verfügbar',
|
|
7
7
|
};
|
|
8
|
+
export default messagesDe;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesEn = {
|
|
2
2
|
'components.creditsAvailableBadge.text.yes': 'Credits available',
|
|
3
3
|
'components.creditsAvailableBadge.text.some': 'Some remaining credits',
|
|
4
4
|
'components.creditsAvailableBadge.text.no': 'No remaining credits',
|
|
5
5
|
'components.creditsAvailableBadge.text.notYet': 'No credits available yet',
|
|
6
6
|
};
|
|
7
|
+
export default messagesEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesDe = {
|
|
2
2
|
'features.projectInfo.projectInfo.value': 'Projekt Infos',
|
|
3
3
|
'features.projectInfo.properties.area': 'Projekt Fläche',
|
|
4
4
|
'features.projectInfo.properties.location': 'Standort',
|
|
@@ -17,3 +17,4 @@ export default {
|
|
|
17
17
|
'features.projectInfo.properties.year':
|
|
18
18
|
'{years} {years, plural, one {Jahr} other {Jahre} }',
|
|
19
19
|
};
|
|
20
|
+
export default messagesDe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesEn = {
|
|
2
2
|
'features.projectInfo.projectInfo.value': 'Project Infos',
|
|
3
3
|
'features.projectInfo.properties.area': 'Project Area',
|
|
4
4
|
'features.projectInfo.properties.location': 'Location',
|
|
@@ -17,3 +17,4 @@ export default {
|
|
|
17
17
|
'features.projectInfo.properties.year':
|
|
18
18
|
'{years} {years, plural, one {year} other {years} }',
|
|
19
19
|
};
|
|
20
|
+
export default messagesEn;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesDe = {
|
|
2
2
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF':
|
|
3
3
|
'Geben Sie den Beitrag in Fr. ein',
|
|
4
4
|
'portfolio.smallCheckout.contributionValueCurrency.label.EUR':
|
|
@@ -24,3 +24,4 @@ export default {
|
|
|
24
24
|
'Für Unternehmenskunden bieten wir individuelle Lösungen an. Kontaktieren Sie uns.',
|
|
25
25
|
'portfolio.smallCheckout.cta.button': 'Unser Vertriebsteam kontaktieren',
|
|
26
26
|
};
|
|
27
|
+
export default messagesDe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesEn = {
|
|
2
2
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF':
|
|
3
3
|
'Contribution Amount in CHF',
|
|
4
4
|
'portfolio.smallCheckout.contributionValueCurrency.label.EUR':
|
|
@@ -24,3 +24,4 @@ export default {
|
|
|
24
24
|
'For enterprise-customers we offer custom solutions. Feel free to contact us.',
|
|
25
25
|
'portfolio.smallCheckout.cta.button': 'Contact our Sales Team',
|
|
26
26
|
};
|
|
27
|
+
export default messagesEn;
|
package/src/index.tsx
CHANGED
|
@@ -40,8 +40,10 @@ import StrapiTopBanner from './models/strapi/StrapiTopBanner';
|
|
|
40
40
|
|
|
41
41
|
import HeaderType from './models/HeaderType';
|
|
42
42
|
import Image from './models/Image';
|
|
43
|
+
import Locale from './models/Locale';
|
|
43
44
|
import PageMetadata from './models/PageMetadata';
|
|
44
45
|
import PageProps from './models/PageProps';
|
|
46
|
+
import PortfolioProject from './models/PortfolioProject';
|
|
45
47
|
|
|
46
48
|
import mergeGlobalAndStrapiBlogPostData from './utils/mergeGlobalAndStrapiBlogPostData';
|
|
47
49
|
import mergeGlobalAndStrapiCustomerStoryData from './utils/mergeGlobalAndStrapiCustomerStoryData';
|
|
@@ -119,6 +121,8 @@ export type {
|
|
|
119
121
|
// Models
|
|
120
122
|
HeaderType,
|
|
121
123
|
Image,
|
|
124
|
+
Locale,
|
|
122
125
|
PageMetadata,
|
|
123
126
|
PageProps,
|
|
127
|
+
PortfolioProject,
|
|
124
128
|
};
|
package/src/slices/Cta/Cta.tsx
CHANGED
|
@@ -300,7 +300,7 @@ export const Cta: React.FC<CtaProps> = ({ slice }: CtaProps) => {
|
|
|
300
300
|
minWidth={[null, null, null, null, '50%']}
|
|
301
301
|
>
|
|
302
302
|
<Image
|
|
303
|
-
src={strapiMediaUrl(ctaCard.image.img, '
|
|
303
|
+
src={strapiMediaUrl(ctaCard.image.img, 'xLarge')}
|
|
304
304
|
alt={ctaCard.image.alt}
|
|
305
305
|
fill
|
|
306
306
|
style={{
|
|
@@ -390,7 +390,7 @@ export const Cta: React.FC<CtaProps> = ({ slice }: CtaProps) => {
|
|
|
390
390
|
minWidth={[null, null, null, null, '50%']}
|
|
391
391
|
>
|
|
392
392
|
<Image
|
|
393
|
-
src={strapiMediaUrl(ctaCard.image.img, '
|
|
393
|
+
src={strapiMediaUrl(ctaCard.image.img, 'xLarge')}
|
|
394
394
|
alt={ctaCard.image.alt}
|
|
395
395
|
fill
|
|
396
396
|
style={{
|
|
@@ -97,7 +97,7 @@ export const FullWidthImageSlider: React.FC<FullWidthImageSliderProps> = ({
|
|
|
97
97
|
</SliderInnerContainer>
|
|
98
98
|
</SliderContainer>
|
|
99
99
|
|
|
100
|
-
<ButtonsContainer show={allowScroll && !isOpen}>
|
|
100
|
+
<ButtonsContainer show={(allowScroll && !isOpen).toString()}>
|
|
101
101
|
<Box>
|
|
102
102
|
<AnimatePresence>
|
|
103
103
|
{canMoveLeft && (
|
|
@@ -26,7 +26,7 @@ export const SliderContainer = styled(Box)`
|
|
|
26
26
|
`;
|
|
27
27
|
|
|
28
28
|
interface ButtonsContainerProps {
|
|
29
|
-
show:
|
|
29
|
+
show: string;
|
|
30
30
|
}
|
|
31
31
|
export const ButtonsContainer = styled(Box)<ButtonsContainerProps>`
|
|
32
32
|
display: ${({ show }: ButtonsContainerProps) => (show ? 'flex' : 'none')};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesDe = {
|
|
2
2
|
'sections.glossary.copyButtonLabel':
|
|
3
3
|
'Kopiere den Link zu diesem Abschnitt in die Zwischenablage',
|
|
4
4
|
'sections.glossary.copySuccessMessage': 'Link in die Zwischenablage kopiert',
|
|
5
5
|
'sections.glossary.copyFailureMessage':
|
|
6
6
|
'Link konnte nicht in die Zwischenablage kopiert werden',
|
|
7
7
|
};
|
|
8
|
+
export default messagesDe;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesEn = {
|
|
2
2
|
'sections.glossary.copyButtonLabel':
|
|
3
3
|
'Copy a link to this section to your clipboard',
|
|
4
4
|
'sections.glossary.copySuccessMessage': 'Copied the link to your clipboard',
|
|
5
5
|
'sections.glossary.copyFailureMessage': 'Could not copy link to clipboard',
|
|
6
6
|
};
|
|
7
|
+
export default messagesEn;
|
|
@@ -142,13 +142,13 @@ const mapboxStyle = css`
|
|
|
142
142
|
.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
|
|
143
143
|
opacity: 0.25;
|
|
144
144
|
}
|
|
145
|
-
.mapboxgl-ctrl-group button:first-
|
|
145
|
+
.mapboxgl-ctrl-group button:first-of-type {
|
|
146
146
|
border-radius: 4px 4px 0 0;
|
|
147
147
|
}
|
|
148
|
-
.mapboxgl-ctrl-group button:last-
|
|
148
|
+
.mapboxgl-ctrl-group button:last-of-type {
|
|
149
149
|
border-radius: 0 0 4px 4px;
|
|
150
150
|
}
|
|
151
|
-
.mapboxgl-ctrl-group button:only-
|
|
151
|
+
.mapboxgl-ctrl-group button:only-of-type {
|
|
152
152
|
border-radius: inherit;
|
|
153
153
|
}
|
|
154
154
|
.mapboxgl-ctrl button:not(:disabled):hover {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesDe = {
|
|
2
2
|
'sections.shopCheckout.intro.price': 'Preis',
|
|
3
3
|
|
|
4
4
|
'sections.shopCheckout.contributionValue.label.EUR':
|
|
@@ -21,3 +21,4 @@ export default {
|
|
|
21
21
|
|
|
22
22
|
'sections.shopCheckout.submit': 'Kaufen',
|
|
23
23
|
};
|
|
24
|
+
export default messagesDe;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
const messagesEn = {
|
|
2
2
|
'sections.shopCheckout.intro.price': 'Price',
|
|
3
3
|
|
|
4
4
|
'sections.shopCheckout.contributionValue.label.EUR':
|
|
@@ -21,3 +21,4 @@ export default {
|
|
|
21
21
|
|
|
22
22
|
'sections.shopCheckout.submit': 'Checkout',
|
|
23
23
|
};
|
|
24
|
+
export default messagesEn;
|
|
@@ -51,10 +51,10 @@ export const TextCarousel: React.FC<TextCarouselProps> = ({
|
|
|
51
51
|
<CarouselInnerContainer
|
|
52
52
|
drag="x"
|
|
53
53
|
dragConstraints={containerRef}
|
|
54
|
-
|
|
54
|
+
numberofitems={slice.slides.length}
|
|
55
55
|
>
|
|
56
56
|
{slice.slides.map(({ id, title, text, icon }) => (
|
|
57
|
-
<CardContainer key={id}
|
|
57
|
+
<CardContainer key={id} numberofitems={slice.slides.length}>
|
|
58
58
|
<TextCardWithIcon
|
|
59
59
|
title={title}
|
|
60
60
|
text={text}
|
|
@@ -20,7 +20,7 @@ export const CarouselContainer = styled(Box)`
|
|
|
20
20
|
`;
|
|
21
21
|
|
|
22
22
|
interface CarouselInnerContainerProps {
|
|
23
|
-
|
|
23
|
+
numberofitems: number;
|
|
24
24
|
}
|
|
25
25
|
export const CarouselInnerContainer = styled(
|
|
26
26
|
motion.div
|
|
@@ -29,7 +29,7 @@ export const CarouselInnerContainer = styled(
|
|
|
29
29
|
justify-content: center;
|
|
30
30
|
width: calc(
|
|
31
31
|
(var(--boemly-sizes-sm) + var(--boemly-space-16)) *
|
|
32
|
-
${({
|
|
32
|
+
${({ numberofitems }: CarouselInnerContainerProps) => numberofitems} +
|
|
33
33
|
var(--boemly-space-16)
|
|
34
34
|
);
|
|
35
35
|
min-width: var(--boemly-sizes-full);
|
|
@@ -37,18 +37,18 @@ export const CarouselInnerContainer = styled(
|
|
|
37
37
|
@media screen and (max-width: ${BREAKPOINT_MD}) {
|
|
38
38
|
width: calc(
|
|
39
39
|
(var(--boemly-sizes-xs) + var(--boemly-space-4)) *
|
|
40
|
-
${({
|
|
40
|
+
${({ numberofitems }: CarouselInnerContainerProps) => numberofitems} +
|
|
41
41
|
var(--boemly-space-6)
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
44
|
`;
|
|
45
45
|
|
|
46
46
|
interface CardContainerProps {
|
|
47
|
-
|
|
47
|
+
numberofitems: number;
|
|
48
48
|
}
|
|
49
49
|
export const CardContainer = styled(Box)<CardContainerProps>`
|
|
50
|
-
width: ${({
|
|
51
|
-
|
|
50
|
+
width: ${({ numberofitems }: CardContainerProps) =>
|
|
51
|
+
numberofitems === 3 ? 'var(--boemly-sizes-xl)' : 'var(--boemly-sizes-sm)'};
|
|
52
52
|
|
|
53
53
|
margin-right: var(--boemly-space-16);
|
|
54
54
|
|
package/src/unit.messages.de.ts
CHANGED
package/src/unit.messages.en.ts
CHANGED