@treely/strapi-slices 1.0.0
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/LICENSE +21 -0
- package/README.md +5 -0
- package/dist/components/CreditsAvailableBadge/CreditsAvailableBadge.d.ts +7 -0
- package/dist/components/CreditsAvailableBadge/index.d.ts +2 -0
- package/dist/components/CreditsAvailableBadge/messages.de.d.ts +7 -0
- package/dist/components/CreditsAvailableBadge/messages.en.d.ts +7 -0
- package/dist/components/FullScreenImage/FullScreenImage.d.ts +8 -0
- package/dist/components/FullScreenImage/ZoomableImage.d.ts +7 -0
- package/dist/components/FullScreenImage/index.d.ts +2 -0
- package/dist/components/MinimalProviders/MinimalProviders.d.ts +7 -0
- package/dist/components/MinimalProviders/index.d.ts +2 -0
- package/dist/components/SliceRenderer/SliceRenderer.d.ts +12 -0
- package/dist/components/SliceRenderer/index.d.ts +2 -0
- package/dist/components/StrapiLinkButton/StrapiLinkButton.d.ts +18 -0
- package/dist/components/StrapiLinkButton/index.d.ts +2 -0
- package/dist/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.d.ts +7 -0
- package/dist/components/StrapiLinkButtonWithIcon/index.d.ts +2 -0
- package/dist/components/portfolio/Contact/Contact.d.ts +10 -0
- package/dist/components/portfolio/Contact/index.d.ts +2 -0
- package/dist/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.d.ts +6 -0
- package/dist/components/portfolio/DocumentsDownloadList/index.d.ts +2 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.de.d.ts +5 -0
- package/dist/components/portfolio/DocumentsDownloadList/messages.en.d.ts +5 -0
- package/dist/components/portfolio/ProjectInfo/ProjectInfo.d.ts +18 -0
- package/dist/components/portfolio/ProjectInfo/index.d.ts +2 -0
- package/dist/components/portfolio/ProjectInfo/messages.de.d.ts +15 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +15 -0
- package/dist/components/portfolio/SmallCheckout/SmallCheckout.d.ts +13 -0
- package/dist/components/portfolio/SmallCheckout/index.d.ts +2 -0
- package/dist/components/portfolio/SmallCheckout/messages.de.d.ts +16 -0
- package/dist/components/portfolio/SmallCheckout/messages.en.d.ts +16 -0
- package/dist/constants/animations.d.ts +1 -0
- package/dist/constants/api.d.ts +3 -0
- package/dist/constants/breakpoints.d.ts +8 -0
- package/dist/constants/domain.d.ts +2 -0
- package/dist/constants/fontCustomizations.d.ts +6 -0
- package/dist/constants/formatter.d.ts +6 -0
- package/dist/constants/globalStyle.d.ts +1 -0
- package/dist/constants/mapbox.d.ts +17 -0
- package/dist/constants/strapi.d.ts +1 -0
- package/dist/icons/LinkedInIcon.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/models/BBox.d.ts +2 -0
- package/dist/models/CreditsAvailableState.d.ts +7 -0
- package/dist/models/Locale.d.ts +2 -0
- package/dist/models/PortfolioProject.d.ts +7 -0
- package/dist/models/forms/CheckoutForm.d.ts +4 -0
- package/dist/models/fpm/FPMProject.d.ts +37 -0
- package/dist/models/fpm/Issuer.d.ts +6 -0
- package/dist/models/strapi/IStrapi.d.ts +4 -0
- package/dist/models/strapi/IStrapiData.d.ts +5 -0
- package/dist/models/strapi/IStrapiResponse.d.ts +13 -0
- package/dist/models/strapi/StrapiAuthor.d.ts +10 -0
- package/dist/models/strapi/StrapiAvatarWithName.d.ts +8 -0
- package/dist/models/strapi/StrapiBanner.d.ts +9 -0
- package/dist/models/strapi/StrapiBlogPost.d.ts +25 -0
- package/dist/models/strapi/StrapiButtonWithVariant.d.ts +6 -0
- package/dist/models/strapi/StrapiCategory.d.ts +8 -0
- package/dist/models/strapi/StrapiContactArea.d.ts +10 -0
- package/dist/models/strapi/StrapiCustomerStory.d.ts +21 -0
- package/dist/models/strapi/StrapiDefaultHeader.d.ts +6 -0
- package/dist/models/strapi/StrapiGlobal.d.ts +26 -0
- package/dist/models/strapi/StrapiGlossaryItem.d.ts +6 -0
- package/dist/models/strapi/StrapiHeroCard.d.ts +13 -0
- package/dist/models/strapi/StrapiImage.d.ts +10 -0
- package/dist/models/strapi/StrapiImageFormat.d.ts +12 -0
- package/dist/models/strapi/StrapiImageWithLink.d.ts +6 -0
- package/dist/models/strapi/StrapiLink.d.ts +11 -0
- package/dist/models/strapi/StrapiLinkList.d.ts +7 -0
- package/dist/models/strapi/StrapiLinkPage.d.ts +10 -0
- package/dist/models/strapi/StrapiLinkWithIcon.d.ts +7 -0
- package/dist/models/strapi/StrapiLocalization.d.ts +7 -0
- package/dist/models/strapi/StrapiMedia.d.ts +27 -0
- package/dist/models/strapi/StrapiMetadata.d.ts +13 -0
- package/dist/models/strapi/StrapiNavMenu.d.ts +13 -0
- package/dist/models/strapi/StrapiPage.d.ts +17 -0
- package/dist/models/strapi/StrapiPortfolio.d.ts +10 -0
- package/dist/models/strapi/StrapiPortfolioCard.d.ts +15 -0
- package/dist/models/strapi/StrapiProject.d.ts +23 -0
- package/dist/models/strapi/StrapiProjectCard.d.ts +18 -0
- package/dist/models/strapi/StrapiQuoteCard.d.ts +7 -0
- package/dist/models/strapi/StrapiShapesCard.d.ts +11 -0
- package/dist/models/strapi/StrapiTextCardWithIcons.d.ts +8 -0
- package/dist/models/strapi/StrapiTopBanner.d.ts +7 -0
- package/dist/rootMessages.de.d.ts +58 -0
- package/dist/rootMessages.en.d.ts +58 -0
- package/dist/slices/Blog/Blog.d.ts +10 -0
- package/dist/slices/Blog/index.d.ts +2 -0
- package/dist/slices/Blog/styles.d.ts +9 -0
- package/dist/slices/BlogCards/BlogCards.d.ts +18 -0
- package/dist/slices/BlogCards/BlogCards.stories.d.ts +5 -0
- package/dist/slices/BlogCards/index.d.ts +2 -0
- package/dist/slices/Comparison/Comparison.d.ts +33 -0
- package/dist/slices/Comparison/Comparison.stories.d.ts +6 -0
- package/dist/slices/Comparison/Icon.d.ts +7 -0
- package/dist/slices/Comparison/index.d.ts +2 -0
- package/dist/slices/Comparison/messages.de.d.ts +4 -0
- package/dist/slices/Comparison/messages.en.d.ts +4 -0
- package/dist/slices/Cta/Cta.d.ts +26 -0
- package/dist/slices/Cta/Cta.stories.d.ts +9 -0
- package/dist/slices/Cta/index.d.ts +2 -0
- package/dist/slices/Cta/messages.de.d.ts +5 -0
- package/dist/slices/Cta/messages.en.d.ts +5 -0
- package/dist/slices/CtaOnly/CtaOnly.d.ts +8 -0
- package/dist/slices/CtaOnly/CtaOnly.stories.d.ts +3 -0
- package/dist/slices/CtaOnly/index.d.ts +2 -0
- package/dist/slices/CustomerStories/CustomerStories.d.ts +10 -0
- package/dist/slices/CustomerStories/CustomerStories.stories.d.ts +3 -0
- package/dist/slices/CustomerStories/index.d.ts +2 -0
- package/dist/slices/CustomerStories/messages.de.d.ts +4 -0
- package/dist/slices/CustomerStories/messages.en.d.ts +4 -0
- package/dist/slices/Facts/Facts.d.ts +16 -0
- package/dist/slices/Facts/Facts.stories.d.ts +7 -0
- package/dist/slices/Facts/index.d.ts +2 -0
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.d.ts +10 -0
- package/dist/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.stories.d.ts +4 -0
- package/dist/slices/FullWidthHighlightQuote/index.d.ts +2 -0
- package/dist/slices/FullWidthImage/FullWidthImage.d.ts +11 -0
- package/dist/slices/FullWidthImage/FullWidthImage.stories.d.ts +5 -0
- package/dist/slices/FullWidthImage/index.d.ts +2 -0
- package/dist/slices/FullWidthImage/styles.d.ts +5 -0
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.d.ts +12 -0
- package/dist/slices/FullWidthImageSlider/FullWidthImageSlider.stories.d.ts +3 -0
- package/dist/slices/FullWidthImageSlider/index.d.ts +2 -0
- package/dist/slices/FullWidthImageSlider/styles.d.ts +295 -0
- package/dist/slices/FullWidthImageSlider/utils.d.ts +1 -0
- package/dist/slices/Glossary/Glossary.d.ts +9 -0
- package/dist/slices/Glossary/Glossary.stories.d.ts +3 -0
- package/dist/slices/Glossary/index.d.ts +2 -0
- package/dist/slices/Glossary/messages.de.d.ts +6 -0
- package/dist/slices/Glossary/messages.en.d.ts +6 -0
- package/dist/slices/Hero/Hero.d.ts +17 -0
- package/dist/slices/Hero/Hero.stories.d.ts +9 -0
- package/dist/slices/Hero/index.d.ts +2 -0
- package/dist/slices/Hero/styles.d.ts +17 -0
- package/dist/slices/IconGrid/IconGrid.d.ts +18 -0
- package/dist/slices/IconGrid/IconGrid.stories.d.ts +5 -0
- package/dist/slices/IconGrid/index.d.ts +2 -0
- package/dist/slices/IconGrid/styles.d.ts +9 -0
- package/dist/slices/ImageGrid/ImageGrid.d.ts +18 -0
- package/dist/slices/ImageGrid/ImageGrid.stories.d.ts +5 -0
- package/dist/slices/ImageGrid/index.d.ts +2 -0
- package/dist/slices/ImageGrid/styles.d.ts +5 -0
- package/dist/slices/ImageTextSequence/ImageTextSequence.d.ts +19 -0
- package/dist/slices/ImageTextSequence/ImageTextSequence.stories.d.ts +7 -0
- package/dist/slices/ImageTextSequence/index.d.ts +2 -0
- package/dist/slices/ImageTextSequence/styles.d.ts +13 -0
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.d.ts +17 -0
- package/dist/slices/LeftTextRightCard/LeftTextRightCard.stories.d.ts +8 -0
- package/dist/slices/LeftTextRightCard/index.d.ts +2 -0
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.d.ts +18 -0
- package/dist/slices/LinkCardsGrid/LinkCardsGrid.stories.d.ts +5 -0
- package/dist/slices/LinkCardsGrid/index.d.ts +2 -0
- package/dist/slices/LogoGridWithText/LogoGridWithText.d.ts +12 -0
- package/dist/slices/LogoGridWithText/LogoGridWithText.stories.d.ts +6 -0
- package/dist/slices/LogoGridWithText/index.d.ts +2 -0
- package/dist/slices/LogoGridWithText/styles.d.ts +5 -0
- package/dist/slices/MapHero/MapHero.d.ts +15 -0
- package/dist/slices/MapHero/MapHero.stories.d.ts +8 -0
- package/dist/slices/MapHero/index.d.ts +2 -0
- package/dist/slices/MapHero/styles.d.ts +21 -0
- package/dist/slices/ProjectFacts/ProjectFacts.d.ts +34 -0
- package/dist/slices/ProjectFacts/ProjectFacts.stories.d.ts +6 -0
- package/dist/slices/ProjectFacts/index.d.ts +2 -0
- package/dist/slices/ProjectFacts/messages.de.d.ts +5 -0
- package/dist/slices/ProjectFacts/messages.en.d.ts +5 -0
- package/dist/slices/ProjectsGrid/ProjectsGrid.d.ts +8 -0
- package/dist/slices/ProjectsGrid/ProjectsGrid.stories.d.ts +3 -0
- package/dist/slices/ProjectsGrid/index.d.ts +2 -0
- package/dist/slices/ProjectsMap/MapMarker.d.ts +10 -0
- package/dist/slices/ProjectsMap/ProjectsMap.d.ts +17 -0
- package/dist/slices/ProjectsMap/ProjectsMap.stories.d.ts +6 -0
- package/dist/slices/ProjectsMap/index.d.ts +2 -0
- package/dist/slices/ProjectsMap/messages.de.d.ts +4 -0
- package/dist/slices/ProjectsMap/messages.en.d.ts +4 -0
- package/dist/slices/QAndA/QAndA.d.ts +43 -0
- package/dist/slices/QAndA/QAndA.stories.d.ts +7 -0
- package/dist/slices/QAndA/index.d.ts +2 -0
- package/dist/slices/QuoteCards/QuoteCards.d.ts +15 -0
- package/dist/slices/QuoteCards/QuoteCards.stories.d.ts +8 -0
- package/dist/slices/QuoteCards/index.d.ts +2 -0
- package/dist/slices/QuoteCards/styles.d.ts +13 -0
- package/dist/slices/RichTextSection/RichTextSection.d.ts +7 -0
- package/dist/slices/RichTextSection/RichTextSection.stories.d.ts +3 -0
- package/dist/slices/RichTextSection/index.d.ts +2 -0
- package/dist/slices/ShopCheckout/ShopCheckout.d.ts +16 -0
- package/dist/slices/ShopCheckout/ShopCheckout.stories.d.ts +7 -0
- package/dist/slices/ShopCheckout/index.d.ts +2 -0
- package/dist/slices/ShopCheckout/messages.de.d.ts +15 -0
- package/dist/slices/ShopCheckout/messages.en.d.ts +15 -0
- package/dist/slices/SideBySideImages/SideBySideImages.d.ts +12 -0
- package/dist/slices/SideBySideImages/SideBySideImages.stories.d.ts +3 -0
- package/dist/slices/SideBySideImages/index.d.ts +2 -0
- package/dist/slices/SmallHero/SmallHero.d.ts +20 -0
- package/dist/slices/SmallHero/SmallHero.stories.d.ts +11 -0
- package/dist/slices/SmallHero/index.d.ts +2 -0
- package/dist/slices/SmallHero/styles.d.ts +9 -0
- package/dist/slices/Steps/Steps.d.ts +19 -0
- package/dist/slices/Steps/Steps.stories.d.ts +7 -0
- package/dist/slices/Steps/index.d.ts +2 -0
- package/dist/slices/Steps/styles.d.ts +25 -0
- package/dist/slices/TextCardGrid/TextCardGrid.d.ts +20 -0
- package/dist/slices/TextCardGrid/TextCardGrid.stories.d.ts +8 -0
- package/dist/slices/TextCardGrid/index.d.ts +2 -0
- package/dist/slices/TextCarousel/TextCarousel.d.ts +13 -0
- package/dist/slices/TextCarousel/TextCarousel.stories.d.ts +6 -0
- package/dist/slices/TextCarousel/index.d.ts +2 -0
- package/dist/slices/TextCarousel/styles.d.ts +284 -0
- package/dist/slices/TextWithCard/TextWithCard.d.ts +20 -0
- package/dist/slices/TextWithCard/TextWithCard.stories.d.ts +9 -0
- package/dist/slices/TextWithCard/index.d.ts +2 -0
- package/dist/slices/TextWithTextCards/TextWithTextCards.d.ts +15 -0
- package/dist/slices/TextWithTextCards/TextWithTextCards.stories.d.ts +7 -0
- package/dist/slices/TextWithTextCards/index.d.ts +2 -0
- package/dist/slices/TextWithTextCards/styles.d.ts +5 -0
- package/dist/slices/Video/Video.d.ts +10 -0
- package/dist/slices/Video/Video.stories.d.ts +3 -0
- package/dist/slices/Video/index.d.ts +2 -0
- package/dist/strapi-slices.cjs.development.js +39 -0
- package/dist/strapi-slices.cjs.development.js.map +1 -0
- package/dist/strapi-slices.cjs.production.min.js +2 -0
- package/dist/strapi-slices.cjs.production.min.js.map +1 -0
- package/dist/strapi-slices.esm.js +36 -0
- package/dist/strapi-slices.esm.js.map +1 -0
- package/dist/test/defaultMocks/next.d.ts +2 -0
- package/dist/test/integrationMocks/fpmProjectMock.d.ts +3 -0
- package/dist/test/mocks/portfolioProjectMock.d.ts +3 -0
- package/dist/test/setupTests.d.ts +1 -0
- package/dist/test/storybookMocks/storybookMedia.d.ts +1 -0
- package/dist/test/storybookMocks/storybookStrapiMedia.d.ts +8 -0
- package/dist/test/strapiMocks/minimalGlobalData.d.ts +4 -0
- package/dist/test/strapiMocks/strapiAvatarWithName.d.ts +12 -0
- package/dist/test/strapiMocks/strapiBlogPost.d.ts +3 -0
- package/dist/test/strapiMocks/strapiContact.d.ts +2 -0
- package/dist/test/strapiMocks/strapiCustomerStory.d.ts +3 -0
- package/dist/test/strapiMocks/strapiHeroCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiLinkPage.d.ts +3 -0
- package/dist/test/strapiMocks/strapiMedia.d.ts +3 -0
- package/dist/test/strapiMocks/strapiMetadata.d.ts +2 -0
- package/dist/test/strapiMocks/strapiPage.d.ts +3 -0
- package/dist/test/strapiMocks/strapiPortfolioCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiPortfolioMock.d.ts +3 -0
- package/dist/test/strapiMocks/strapiProject.d.ts +3 -0
- package/dist/test/strapiMocks/strapiProjectCard.d.ts +2 -0
- package/dist/test/strapiMocks/strapiQuoteCard.d.ts +2 -0
- package/dist/test/testUtils.d.ts +6 -0
- package/dist/unit.messages.de.d.ts +5 -0
- package/dist/unit.messages.en.d.ts +5 -0
- package/dist/utils/convertAreaM2ToHa.d.ts +2 -0
- package/dist/utils/convertCo2AmountKgToTons.d.ts +2 -0
- package/dist/utils/convertToKebabCase.d.ts +2 -0
- package/dist/utils/getTimeSpanInYears.d.ts +2 -0
- package/dist/utils/mergeBoundingBoxes.d.ts +3 -0
- package/dist/utils/mergeDeep.d.ts +12 -0
- package/dist/utils/openHubSpotChat.d.ts +2 -0
- package/dist/utils/strapiLinkUrl.d.ts +3 -0
- package/dist/utils/strapiMediaUrl.d.ts +5 -0
- package/package.json +132 -0
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.test.tsx +65 -0
- package/src/components/CreditsAvailableBadge/CreditsAvailableBadge.tsx +55 -0
- package/src/components/CreditsAvailableBadge/index.ts +3 -0
- package/src/components/CreditsAvailableBadge/messages.de.ts +7 -0
- package/src/components/CreditsAvailableBadge/messages.en.ts +6 -0
- package/src/components/FullScreenImage/FullScreenImage.test.tsx +45 -0
- package/src/components/FullScreenImage/FullScreenImage.tsx +119 -0
- package/src/components/FullScreenImage/ZoomableImage.tsx +84 -0
- package/src/components/FullScreenImage/index.ts +3 -0
- package/src/components/MinimalProviders/MinimalProviders.tsx +25 -0
- package/src/components/MinimalProviders/index.ts +3 -0
- package/src/components/SliceRenderer/SliceRenderer.test.tsx +35 -0
- package/src/components/SliceRenderer/SliceRenderer.tsx +294 -0
- package/src/components/SliceRenderer/index.ts +3 -0
- package/src/components/StrapiLinkButton/StrapiLinkButton.test.tsx +58 -0
- package/src/components/StrapiLinkButton/StrapiLinkButton.tsx +55 -0
- package/src/components/StrapiLinkButton/index.ts +3 -0
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.test.tsx +57 -0
- package/src/components/StrapiLinkButtonWithIcon/StrapiLinkButtonWithIcon.tsx +36 -0
- package/src/components/StrapiLinkButtonWithIcon/index.ts +3 -0
- package/src/components/portfolio/Contact/Contact.test.tsx +51 -0
- package/src/components/portfolio/Contact/Contact.tsx +73 -0
- package/src/components/portfolio/Contact/index.ts +3 -0
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.test.tsx +49 -0
- package/src/components/portfolio/DocumentsDownloadList/DocumentsDownloadList.tsx +76 -0
- package/src/components/portfolio/DocumentsDownloadList/index.ts +3 -0
- package/src/components/portfolio/DocumentsDownloadList/messages.de.ts +6 -0
- package/src/components/portfolio/DocumentsDownloadList/messages.en.ts +6 -0
- package/src/components/portfolio/ProjectInfo/ProjectInfo.test.tsx +81 -0
- package/src/components/portfolio/ProjectInfo/ProjectInfo.tsx +252 -0
- package/src/components/portfolio/ProjectInfo/index.ts +3 -0
- package/src/components/portfolio/ProjectInfo/messages.de.ts +19 -0
- package/src/components/portfolio/ProjectInfo/messages.en.ts +19 -0
- package/src/components/portfolio/SmallCheckout/SmallCheckout.test.tsx +166 -0
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +265 -0
- package/src/components/portfolio/SmallCheckout/index.ts +3 -0
- package/src/components/portfolio/SmallCheckout/messages.de.ts +26 -0
- package/src/components/portfolio/SmallCheckout/messages.en.ts +26 -0
- package/src/constants/animations.ts +1 -0
- package/src/constants/api.ts +5 -0
- package/src/constants/breakpoints.ts +9 -0
- package/src/constants/domain.ts +3 -0
- package/src/constants/fontCustomizations.ts +6 -0
- package/src/constants/formatter.ts +29 -0
- package/src/constants/globalStyle.ts +55 -0
- package/src/constants/mapbox.ts +24 -0
- package/src/constants/strapi.ts +2 -0
- package/src/icons/LinkedInIcon.tsx +23 -0
- package/src/index.tsx +1 -0
- package/src/models/BBox.ts +3 -0
- package/src/models/CreditsAvailableState.ts +8 -0
- package/src/models/Locale.ts +3 -0
- package/src/models/PortfolioProject.ts +9 -0
- package/src/models/forms/CheckoutForm.ts +5 -0
- package/src/models/fpm/FPMProject.ts +41 -0
- package/src/models/fpm/Issuer.ts +7 -0
- package/src/models/strapi/IStrapi.ts +5 -0
- package/src/models/strapi/IStrapiData.ts +6 -0
- package/src/models/strapi/IStrapiResponse.ts +15 -0
- package/src/models/strapi/StrapiAuthor.ts +12 -0
- package/src/models/strapi/StrapiAvatarWithName.ts +10 -0
- package/src/models/strapi/StrapiBanner.ts +11 -0
- package/src/models/strapi/StrapiBlogPost.ts +27 -0
- package/src/models/strapi/StrapiButtonWithVariant.ts +8 -0
- package/src/models/strapi/StrapiCategory.ts +10 -0
- package/src/models/strapi/StrapiContactArea.ts +12 -0
- package/src/models/strapi/StrapiCustomerStory.ts +23 -0
- package/src/models/strapi/StrapiDefaultHeader.ts +7 -0
- package/src/models/strapi/StrapiGlobal.ts +28 -0
- package/src/models/strapi/StrapiGlossaryItem.ts +7 -0
- package/src/models/strapi/StrapiHeroCard.ts +15 -0
- package/src/models/strapi/StrapiImage.ts +12 -0
- package/src/models/strapi/StrapiImageFormat.ts +13 -0
- package/src/models/strapi/StrapiImageWithLink.ts +8 -0
- package/src/models/strapi/StrapiLink.ts +13 -0
- package/src/models/strapi/StrapiLinkList.ts +9 -0
- package/src/models/strapi/StrapiLinkPage.ts +12 -0
- package/src/models/strapi/StrapiLinkWithIcon.ts +9 -0
- package/src/models/strapi/StrapiLocalization.ts +9 -0
- package/src/models/strapi/StrapiMedia.ts +29 -0
- package/src/models/strapi/StrapiMetadata.ts +15 -0
- package/src/models/strapi/StrapiNavMenu.ts +16 -0
- package/src/models/strapi/StrapiPage.ts +19 -0
- package/src/models/strapi/StrapiPortfolio.ts +12 -0
- package/src/models/strapi/StrapiPortfolioCard.ts +17 -0
- package/src/models/strapi/StrapiProject.ts +25 -0
- package/src/models/strapi/StrapiProjectCard.ts +20 -0
- package/src/models/strapi/StrapiQuoteCard.ts +9 -0
- package/src/models/strapi/StrapiShapesCard.ts +13 -0
- package/src/models/strapi/StrapiTextCardWithIcons.ts +10 -0
- package/src/models/strapi/StrapiTopBanner.ts +9 -0
- package/src/rootMessages.de.ts +41 -0
- package/src/rootMessages.en.ts +41 -0
- package/src/slices/Blog/Blog.test.tsx +146 -0
- package/src/slices/Blog/Blog.tsx +114 -0
- package/src/slices/Blog/index.ts +3 -0
- package/src/slices/Blog/styles.ts +34 -0
- package/src/slices/BlogCards/BlogCards.stories.tsx +148 -0
- package/src/slices/BlogCards/BlogCards.test.tsx +277 -0
- package/src/slices/BlogCards/BlogCards.tsx +210 -0
- package/src/slices/BlogCards/index.ts +3 -0
- package/src/slices/Comparison/Comparison.stories.tsx +123 -0
- package/src/slices/Comparison/Comparison.test.tsx +173 -0
- package/src/slices/Comparison/Comparison.tsx +265 -0
- package/src/slices/Comparison/Icon.test.tsx +43 -0
- package/src/slices/Comparison/Icon.tsx +34 -0
- package/src/slices/Comparison/index.ts +3 -0
- package/src/slices/Comparison/messages.de.ts +3 -0
- package/src/slices/Comparison/messages.en.ts +3 -0
- package/src/slices/Cta/Cta.stories.tsx +149 -0
- package/src/slices/Cta/Cta.test.tsx +249 -0
- package/src/slices/Cta/Cta.tsx +412 -0
- package/src/slices/Cta/index.ts +3 -0
- package/src/slices/Cta/messages.de.ts +4 -0
- package/src/slices/Cta/messages.en.ts +4 -0
- package/src/slices/CtaOnly/CtaOnly.stories.tsx +47 -0
- package/src/slices/CtaOnly/CtaOnly.test.tsx +26 -0
- package/src/slices/CtaOnly/CtaOnly.tsx +17 -0
- package/src/slices/CtaOnly/index.ts +3 -0
- package/src/slices/CustomerStories/CustomerStories.stories.tsx +20 -0
- package/src/slices/CustomerStories/CustomerStories.test.tsx +43 -0
- package/src/slices/CustomerStories/CustomerStories.tsx +84 -0
- package/src/slices/CustomerStories/index.ts +3 -0
- package/src/slices/CustomerStories/messages.de.ts +3 -0
- package/src/slices/CustomerStories/messages.en.ts +3 -0
- package/src/slices/Facts/Facts.stories.tsx +97 -0
- package/src/slices/Facts/Facts.test.tsx +99 -0
- package/src/slices/Facts/Facts.tsx +140 -0
- package/src/slices/Facts/index.ts +3 -0
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.stories.tsx +41 -0
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.test.tsx +39 -0
- package/src/slices/FullWidthHighlightQuote/FullWidthHighlightQuote.tsx +57 -0
- package/src/slices/FullWidthHighlightQuote/index.ts +3 -0
- package/src/slices/FullWidthImage/FullWidthImage.stories.tsx +40 -0
- package/src/slices/FullWidthImage/FullWidthImage.test.tsx +33 -0
- package/src/slices/FullWidthImage/FullWidthImage.tsx +63 -0
- package/src/slices/FullWidthImage/index.ts +3 -0
- package/src/slices/FullWidthImage/styles.ts +17 -0
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.stories.tsx +75 -0
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.test.tsx +49 -0
- package/src/slices/FullWidthImageSlider/FullWidthImageSlider.tsx +149 -0
- package/src/slices/FullWidthImageSlider/index.ts +3 -0
- package/src/slices/FullWidthImageSlider/styles.ts +96 -0
- package/src/slices/FullWidthImageSlider/utils.test.ts +10 -0
- package/src/slices/FullWidthImageSlider/utils.ts +17 -0
- package/src/slices/Glossary/Glossary.stories.tsx +42 -0
- package/src/slices/Glossary/Glossary.test.tsx +102 -0
- package/src/slices/Glossary/Glossary.tsx +107 -0
- package/src/slices/Glossary/index.ts +3 -0
- package/src/slices/Glossary/messages.de.ts +7 -0
- package/src/slices/Glossary/messages.en.ts +6 -0
- package/src/slices/Hero/Hero.stories.tsx +129 -0
- package/src/slices/Hero/Hero.test.tsx +89 -0
- package/src/slices/Hero/Hero.tsx +95 -0
- package/src/slices/Hero/index.ts +3 -0
- package/src/slices/Hero/styles.ts +52 -0
- package/src/slices/IconGrid/IconGrid.stories.tsx +178 -0
- package/src/slices/IconGrid/IconGrid.test.tsx +81 -0
- package/src/slices/IconGrid/IconGrid.tsx +97 -0
- package/src/slices/IconGrid/index.ts +3 -0
- package/src/slices/IconGrid/styles.ts +21 -0
- package/src/slices/ImageGrid/ImageGrid.stories.tsx +92 -0
- package/src/slices/ImageGrid/ImageGrid.test.tsx +82 -0
- package/src/slices/ImageGrid/ImageGrid.tsx +89 -0
- package/src/slices/ImageGrid/index.ts +3 -0
- package/src/slices/ImageGrid/styles.ts +12 -0
- package/src/slices/ImageTextSequence/ImageTextSequence.stories.tsx +124 -0
- package/src/slices/ImageTextSequence/ImageTextSequence.test.tsx +91 -0
- package/src/slices/ImageTextSequence/ImageTextSequence.tsx +143 -0
- package/src/slices/ImageTextSequence/index.ts +3 -0
- package/src/slices/ImageTextSequence/styles.ts +33 -0
- package/src/slices/LeftTextRightCard/LeftTextRightCard.stories.tsx +93 -0
- package/src/slices/LeftTextRightCard/LeftTextRightCard.test.tsx +72 -0
- package/src/slices/LeftTextRightCard/LeftTextRightCard.tsx +108 -0
- package/src/slices/LeftTextRightCard/index.ts +3 -0
- package/src/slices/LinkCardsGrid/LinkCardsGrid.stories.tsx +60 -0
- package/src/slices/LinkCardsGrid/LinkCardsGrid.test.tsx +36 -0
- package/src/slices/LinkCardsGrid/LinkCardsGrid.tsx +95 -0
- package/src/slices/LinkCardsGrid/index.ts +3 -0
- package/src/slices/LogoGridWithText/LogoGridWithText.stories.tsx +73 -0
- package/src/slices/LogoGridWithText/LogoGridWithText.test.tsx +55 -0
- package/src/slices/LogoGridWithText/LogoGridWithText.tsx +95 -0
- package/src/slices/LogoGridWithText/index.ts +3 -0
- package/src/slices/LogoGridWithText/styles.ts +13 -0
- package/src/slices/MapHero/MapHero.stories.tsx +112 -0
- package/src/slices/MapHero/MapHero.test.tsx +85 -0
- package/src/slices/MapHero/MapHero.tsx +89 -0
- package/src/slices/MapHero/index.ts +3 -0
- package/src/slices/MapHero/styles.ts +105 -0
- package/src/slices/ProjectFacts/ProjectFacts.stories.tsx +91 -0
- package/src/slices/ProjectFacts/ProjectFacts.test.tsx +34 -0
- package/src/slices/ProjectFacts/ProjectFacts.tsx +95 -0
- package/src/slices/ProjectFacts/index.ts +3 -0
- package/src/slices/ProjectFacts/messages.de.ts +4 -0
- package/src/slices/ProjectFacts/messages.en.ts +4 -0
- package/src/slices/ProjectsGrid/ProjectsGrid.stories.tsx +72 -0
- package/src/slices/ProjectsGrid/ProjectsGrid.test.tsx +31 -0
- package/src/slices/ProjectsGrid/ProjectsGrid.tsx +80 -0
- package/src/slices/ProjectsGrid/index.ts +3 -0
- package/src/slices/ProjectsMap/MapMarker.test.tsx +79 -0
- package/src/slices/ProjectsMap/MapMarker.tsx +99 -0
- package/src/slices/ProjectsMap/ProjectsMap.stories.tsx +101 -0
- package/src/slices/ProjectsMap/ProjectsMap.test.tsx +95 -0
- package/src/slices/ProjectsMap/ProjectsMap.tsx +150 -0
- package/src/slices/ProjectsMap/index.ts +3 -0
- package/src/slices/ProjectsMap/messages.de.ts +3 -0
- package/src/slices/ProjectsMap/messages.en.ts +3 -0
- package/src/slices/QAndA/QAndA.stories.tsx +103 -0
- package/src/slices/QAndA/QAndA.test.tsx +67 -0
- package/src/slices/QAndA/QAndA.tsx +157 -0
- package/src/slices/QAndA/index.ts +3 -0
- package/src/slices/QuoteCards/QuoteCards.stories.tsx +118 -0
- package/src/slices/QuoteCards/QuoteCards.test.tsx +52 -0
- package/src/slices/QuoteCards/QuoteCards.tsx +135 -0
- package/src/slices/QuoteCards/index.ts +3 -0
- package/src/slices/QuoteCards/styles.ts +17 -0
- package/src/slices/RichTextSection/RichTextSection.stories.tsx +27 -0
- package/src/slices/RichTextSection/RichTextSection.test.tsx +20 -0
- package/src/slices/RichTextSection/RichTextSection.tsx +27 -0
- package/src/slices/RichTextSection/index.ts +3 -0
- package/src/slices/ShopCheckout/ShopCheckout.stories.tsx +76 -0
- package/src/slices/ShopCheckout/ShopCheckout.test.tsx +186 -0
- package/src/slices/ShopCheckout/ShopCheckout.tsx +228 -0
- package/src/slices/ShopCheckout/index.ts +3 -0
- package/src/slices/ShopCheckout/messages.de.ts +23 -0
- package/src/slices/ShopCheckout/messages.en.ts +23 -0
- package/src/slices/SideBySideImages/SideBySideImages.stories.tsx +39 -0
- package/src/slices/SideBySideImages/SideBySideImages.test.tsx +52 -0
- package/src/slices/SideBySideImages/SideBySideImages.tsx +57 -0
- package/src/slices/SideBySideImages/index.ts +3 -0
- package/src/slices/SmallHero/SmallHero.stories.tsx +138 -0
- package/src/slices/SmallHero/SmallHero.test.tsx +70 -0
- package/src/slices/SmallHero/SmallHero.tsx +116 -0
- package/src/slices/SmallHero/index.ts +3 -0
- package/src/slices/SmallHero/styles.ts +39 -0
- package/src/slices/Steps/Steps.stories.tsx +95 -0
- package/src/slices/Steps/Steps.test.tsx +68 -0
- package/src/slices/Steps/Steps.tsx +178 -0
- package/src/slices/Steps/index.ts +3 -0
- package/src/slices/Steps/styles.ts +64 -0
- package/src/slices/TextCardGrid/TextCardGrid.stories.tsx +156 -0
- package/src/slices/TextCardGrid/TextCardGrid.test.tsx +103 -0
- package/src/slices/TextCardGrid/TextCardGrid.tsx +285 -0
- package/src/slices/TextCardGrid/index.ts +3 -0
- package/src/slices/TextCarousel/TextCarousel.stories.tsx +104 -0
- package/src/slices/TextCarousel/TextCarousel.test.tsx +90 -0
- package/src/slices/TextCarousel/TextCarousel.tsx +91 -0
- package/src/slices/TextCarousel/index.ts +3 -0
- package/src/slices/TextCarousel/styles.ts +65 -0
- package/src/slices/TextWithCard/TextWithCard.stories.tsx +113 -0
- package/src/slices/TextWithCard/TextWithCard.test.tsx +87 -0
- package/src/slices/TextWithCard/TextWithCard.tsx +115 -0
- package/src/slices/TextWithCard/index.ts +3 -0
- package/src/slices/TextWithTextCards/TextWithTextCards.stories.tsx +121 -0
- package/src/slices/TextWithTextCards/TextWithTextCards.test.tsx +57 -0
- package/src/slices/TextWithTextCards/TextWithTextCards.tsx +167 -0
- package/src/slices/TextWithTextCards/index.ts +3 -0
- package/src/slices/TextWithTextCards/styles.ts +26 -0
- package/src/slices/Video/Video.stories.tsx +18 -0
- package/src/slices/Video/Video.test.tsx +26 -0
- package/src/slices/Video/Video.tsx +35 -0
- package/src/slices/Video/index.ts +3 -0
- package/src/test/defaultMocks/next.ts +29 -0
- package/src/test/integrationMocks/fpmProjectMock.ts +37 -0
- package/src/test/mocks/portfolioProjectMock.ts +11 -0
- package/src/test/setupTests.ts +5 -0
- package/src/test/storybookMocks/storybookMedia.ts +2 -0
- package/src/test/storybookMocks/storybookStrapiMedia.ts +58 -0
- package/src/test/strapiMocks/minimalGlobalData.ts +24 -0
- package/src/test/strapiMocks/strapiAvatarWithName.ts +12 -0
- package/src/test/strapiMocks/strapiBlogPost.ts +216 -0
- package/src/test/strapiMocks/strapiContact.ts +15 -0
- package/src/test/strapiMocks/strapiCustomerStory.ts +195 -0
- package/src/test/strapiMocks/strapiHeroCard.ts +7 -0
- package/src/test/strapiMocks/strapiLinkPage.ts +14 -0
- package/src/test/strapiMocks/strapiMedia.ts +91 -0
- package/src/test/strapiMocks/strapiMetadata.ts +12 -0
- package/src/test/strapiMocks/strapiPage.ts +683 -0
- package/src/test/strapiMocks/strapiPortfolioCard.ts +40 -0
- package/src/test/strapiMocks/strapiPortfolioMock.ts +20 -0
- package/src/test/strapiMocks/strapiProject.ts +34 -0
- package/src/test/strapiMocks/strapiProjectCard.ts +20 -0
- package/src/test/strapiMocks/strapiQuoteCard.ts +8 -0
- package/src/test/testUtils.tsx +25 -0
- package/src/unit.messages.de.ts +4 -0
- package/src/unit.messages.en.ts +4 -0
- package/src/utils/convertAreaM2ToHa.test.ts +9 -0
- package/src/utils/convertAreaM2ToHa.ts +4 -0
- package/src/utils/convertCo2AmountKgToTons.ts +4 -0
- package/src/utils/convertToKebabCase.test.ts +9 -0
- package/src/utils/convertToKebabCase.ts +10 -0
- package/src/utils/getTimeSpanInYears.test.ts +35 -0
- package/src/utils/getTimeSpanInYears.ts +14 -0
- package/src/utils/mergeBoundingBoxes.test.ts +13 -0
- package/src/utils/mergeBoundingBoxes.ts +19 -0
- package/src/utils/mergeDeep.ts +31 -0
- package/src/utils/openHubSpotChat.ts +15 -0
- package/src/utils/strapiLinkUrl.test.ts +26 -0
- package/src/utils/strapiLinkUrl.ts +13 -0
- package/src/utils/strapiMediaUrl.test.ts +54 -0
- package/src/utils/strapiMediaUrl.ts +32 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { storybookStrapiCoverMock } from '@/test/storybookMocks/storybookStrapiMedia';
|
|
4
|
+
import SmallHero from '.';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'sections/SmallHero',
|
|
8
|
+
component: SmallHero,
|
|
9
|
+
} as Meta<typeof SmallHero>;
|
|
10
|
+
|
|
11
|
+
const Template: StoryFn<typeof SmallHero> = (args) => <SmallHero {...args} />;
|
|
12
|
+
|
|
13
|
+
export const Minimal = Template.bind({});
|
|
14
|
+
Minimal.args = {
|
|
15
|
+
slice: {
|
|
16
|
+
title: 'Title',
|
|
17
|
+
},
|
|
18
|
+
theme: 'dark',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const WithSubTitle = Template.bind({});
|
|
22
|
+
WithSubTitle.args = {
|
|
23
|
+
slice: {
|
|
24
|
+
title: 'Title',
|
|
25
|
+
subTitle: 'Sub title',
|
|
26
|
+
},
|
|
27
|
+
theme: 'dark',
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const WithTagline = Template.bind({});
|
|
31
|
+
WithTagline.args = {
|
|
32
|
+
slice: {
|
|
33
|
+
tagline: 'Tagline',
|
|
34
|
+
title: 'Title',
|
|
35
|
+
subTitle: 'Sub title',
|
|
36
|
+
},
|
|
37
|
+
theme: 'dark',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const WithImage = Template.bind({});
|
|
41
|
+
WithImage.args = {
|
|
42
|
+
slice: {
|
|
43
|
+
tagline: 'Tagline',
|
|
44
|
+
title: 'Title',
|
|
45
|
+
subTitle: 'Sub title',
|
|
46
|
+
image: {
|
|
47
|
+
id: 1,
|
|
48
|
+
alt: 'Alt text',
|
|
49
|
+
img: { data: storybookStrapiCoverMock },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
theme: 'dark',
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export const WithImageGradient = Template.bind({});
|
|
56
|
+
WithImageGradient.args = {
|
|
57
|
+
slice: {
|
|
58
|
+
tagline: 'Tagline',
|
|
59
|
+
title: 'Title',
|
|
60
|
+
subTitle: 'Sub title',
|
|
61
|
+
image: {
|
|
62
|
+
id: 1,
|
|
63
|
+
alt: 'Alt text',
|
|
64
|
+
img: { data: storybookStrapiCoverMock },
|
|
65
|
+
},
|
|
66
|
+
gradient: true,
|
|
67
|
+
},
|
|
68
|
+
theme: 'dark',
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export const WithTags = Template.bind({});
|
|
72
|
+
WithTags.args = {
|
|
73
|
+
slice: {
|
|
74
|
+
tags: [
|
|
75
|
+
{ id: 1, text: 'Tag 1', colorScheme: 'green' },
|
|
76
|
+
{ id: 2, text: 'Tag 2', colorScheme: 'gray' },
|
|
77
|
+
],
|
|
78
|
+
title: 'Title',
|
|
79
|
+
subTitle: 'Sub title',
|
|
80
|
+
image: {
|
|
81
|
+
id: 1,
|
|
82
|
+
alt: 'Alt text',
|
|
83
|
+
img: { data: storybookStrapiCoverMock },
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
theme: 'dark',
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export const WithTagsAndButton = Template.bind({});
|
|
90
|
+
WithTagsAndButton.args = {
|
|
91
|
+
slice: {
|
|
92
|
+
tags: [
|
|
93
|
+
{ id: 1, text: 'Tag 1', colorScheme: 'green' },
|
|
94
|
+
{ id: 2, text: 'Tag 2', colorScheme: 'gray' },
|
|
95
|
+
],
|
|
96
|
+
title: 'Title',
|
|
97
|
+
subTitle: 'Sub title',
|
|
98
|
+
button: {
|
|
99
|
+
id: 1,
|
|
100
|
+
text: 'Button',
|
|
101
|
+
url: 'https://tree.ly',
|
|
102
|
+
},
|
|
103
|
+
image: {
|
|
104
|
+
id: 1,
|
|
105
|
+
alt: 'Alt text',
|
|
106
|
+
img: { data: storybookStrapiCoverMock },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
theme: 'dark',
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export const LightTheme = Template.bind({});
|
|
113
|
+
LightTheme.args = {
|
|
114
|
+
slice: {
|
|
115
|
+
tagline: 'Tagline',
|
|
116
|
+
title: 'Title',
|
|
117
|
+
subTitle: 'Sub title',
|
|
118
|
+
},
|
|
119
|
+
theme: 'light',
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const LightThemeWithTagsAndButton = Template.bind({});
|
|
123
|
+
LightThemeWithTagsAndButton.args = {
|
|
124
|
+
slice: {
|
|
125
|
+
tags: [
|
|
126
|
+
{ id: 1, text: 'Tag 1', colorScheme: 'green' },
|
|
127
|
+
{ id: 2, text: 'Tag 2', colorScheme: 'blue' },
|
|
128
|
+
],
|
|
129
|
+
title: 'Title',
|
|
130
|
+
subTitle: 'Sub title',
|
|
131
|
+
button: {
|
|
132
|
+
id: 1,
|
|
133
|
+
text: 'Button',
|
|
134
|
+
url: 'https://tree.ly',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
theme: 'light',
|
|
138
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { render, screen } from '@/test/testUtils';
|
|
2
|
+
import { strapiMediaMock } from '@/test/strapiMocks/strapiMedia';
|
|
3
|
+
import SmallHero from '.';
|
|
4
|
+
import { SmallHeroProps } from './SmallHero';
|
|
5
|
+
|
|
6
|
+
const defaultProps: SmallHeroProps = {
|
|
7
|
+
slice: {
|
|
8
|
+
title: 'Title',
|
|
9
|
+
},
|
|
10
|
+
theme: 'dark',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const setup = (props = {}) => {
|
|
14
|
+
const combinedProps = { ...defaultProps, ...props };
|
|
15
|
+
render(<SmallHero {...combinedProps} />);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
describe('The SmallHero component', () => {
|
|
19
|
+
it('displays the section header', () => {
|
|
20
|
+
setup();
|
|
21
|
+
|
|
22
|
+
expect(screen.getByTestId('default-section-header')).toBeInTheDocument();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('displays a subtitle if there is a subtitle in the slice', () => {
|
|
26
|
+
setup({ slice: { ...defaultProps.slice, subTitle: 'Sub title' } });
|
|
27
|
+
|
|
28
|
+
expect(screen.getByText('Sub title')).toBeInTheDocument();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('displays a tagline if there is a tagline in the slice', () => {
|
|
32
|
+
setup({ slice: { ...defaultProps.slice, tagline: 'Tagline' } });
|
|
33
|
+
|
|
34
|
+
expect(screen.getByText('Tagline')).toBeInTheDocument();
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('displays a tag if there is a tag in the slice', () => {
|
|
38
|
+
setup({
|
|
39
|
+
slice: { ...defaultProps.slice, tags: [{ id: 1, text: 'Tag' }] },
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
expect(screen.getByText('Tag')).toBeInTheDocument();
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it('displays a link if there is a button in the slice', () => {
|
|
46
|
+
setup({
|
|
47
|
+
slice: { ...defaultProps.slice, button: { url: 'url', text: 'Link' } },
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
expect(screen.getByRole('link')).toBeInTheDocument();
|
|
51
|
+
expect(screen.getByText('Link')).toBeInTheDocument();
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('displays no image if there is no image in the slice', () => {
|
|
55
|
+
setup();
|
|
56
|
+
|
|
57
|
+
expect(screen.queryByRole('img')).not.toBeInTheDocument();
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it('displays an image if there is an image in the slice', () => {
|
|
61
|
+
setup({
|
|
62
|
+
slice: {
|
|
63
|
+
...defaultProps.slice,
|
|
64
|
+
image: { id: 1, img: { data: strapiMediaMock }, alt: 'Image alt text' },
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
expect(screen.getByRole('img')).toHaveAttribute('alt', 'Image alt text');
|
|
69
|
+
});
|
|
70
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
DefaultSectionHeader,
|
|
4
|
+
Flex,
|
|
5
|
+
Gradient,
|
|
6
|
+
Tag,
|
|
7
|
+
Wrapper,
|
|
8
|
+
} from 'boemly';
|
|
9
|
+
import Image from 'next/image';
|
|
10
|
+
import StrapiLinkButton from '@/components/StrapiLinkButton';
|
|
11
|
+
import StrapiImage from '@/models/strapi/StrapiImage';
|
|
12
|
+
import StrapiLink from '@/models/strapi/StrapiLink';
|
|
13
|
+
import strapiMediaUrl from '@/utils/strapiMediaUrl';
|
|
14
|
+
import { HeadingContainer } from './styles';
|
|
15
|
+
|
|
16
|
+
export interface SmallHeroProps {
|
|
17
|
+
slice: {
|
|
18
|
+
tags?: {
|
|
19
|
+
id: number;
|
|
20
|
+
text: string;
|
|
21
|
+
colorScheme: string;
|
|
22
|
+
}[];
|
|
23
|
+
tagline?: string;
|
|
24
|
+
title: string;
|
|
25
|
+
subTitle?: string;
|
|
26
|
+
button?: StrapiLink;
|
|
27
|
+
image?: StrapiImage;
|
|
28
|
+
gradient?: boolean;
|
|
29
|
+
};
|
|
30
|
+
theme: 'dark' | 'light';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const colors = {
|
|
34
|
+
dark: {
|
|
35
|
+
tagline: 'white',
|
|
36
|
+
title: 'white',
|
|
37
|
+
text: 'white',
|
|
38
|
+
background: 'gray.900',
|
|
39
|
+
},
|
|
40
|
+
light: {
|
|
41
|
+
tagline: 'primary.500',
|
|
42
|
+
title: 'black',
|
|
43
|
+
text: 'gray.500',
|
|
44
|
+
background: 'primary.50',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const SmallHero: React.FC<SmallHeroProps> = ({
|
|
49
|
+
slice,
|
|
50
|
+
theme,
|
|
51
|
+
}: SmallHeroProps) => (
|
|
52
|
+
<Box
|
|
53
|
+
position="relative"
|
|
54
|
+
width="full"
|
|
55
|
+
height="xl"
|
|
56
|
+
backgroundColor={colors[theme].background}
|
|
57
|
+
>
|
|
58
|
+
{slice.image && (
|
|
59
|
+
<>
|
|
60
|
+
<Image
|
|
61
|
+
src={strapiMediaUrl(slice.image.img, 'xLarge')}
|
|
62
|
+
alt={slice.image.alt}
|
|
63
|
+
fill
|
|
64
|
+
style={{ objectFit: slice.image.objectFit || 'cover' }}
|
|
65
|
+
/>
|
|
66
|
+
{slice.gradient && <Gradient />}
|
|
67
|
+
</>
|
|
68
|
+
)}
|
|
69
|
+
<HeadingContainer>
|
|
70
|
+
<Wrapper>
|
|
71
|
+
<>
|
|
72
|
+
{slice.tags && (
|
|
73
|
+
<Flex direction="row" justify="center" gap="2" mb="4" wrap="wrap">
|
|
74
|
+
{slice.tags.map(({ id, text, colorScheme }) => (
|
|
75
|
+
<Tag
|
|
76
|
+
key={id}
|
|
77
|
+
colorScheme={colorScheme}
|
|
78
|
+
size="md"
|
|
79
|
+
variant="subtle"
|
|
80
|
+
>
|
|
81
|
+
{text}
|
|
82
|
+
</Tag>
|
|
83
|
+
))}
|
|
84
|
+
</Flex>
|
|
85
|
+
)}
|
|
86
|
+
<DefaultSectionHeader
|
|
87
|
+
isHero
|
|
88
|
+
tagline={slice.tagline}
|
|
89
|
+
title={slice.title}
|
|
90
|
+
text={slice.subTitle}
|
|
91
|
+
taglineProps={{
|
|
92
|
+
color: colors[theme].tagline,
|
|
93
|
+
textAlign: 'center',
|
|
94
|
+
mx: 'auto',
|
|
95
|
+
}}
|
|
96
|
+
titleProps={{
|
|
97
|
+
color: colors[theme].title,
|
|
98
|
+
maxW: '4xl',
|
|
99
|
+
textAlign: 'center',
|
|
100
|
+
mx: 'auto',
|
|
101
|
+
}}
|
|
102
|
+
textProps={{
|
|
103
|
+
maxW: '2xl',
|
|
104
|
+
textAlign: 'center',
|
|
105
|
+
mx: 'auto',
|
|
106
|
+
color: colors[theme].text,
|
|
107
|
+
}}
|
|
108
|
+
/>
|
|
109
|
+
{slice.button && (
|
|
110
|
+
<StrapiLinkButton link={slice.button} mt="6" size="lg" />
|
|
111
|
+
)}
|
|
112
|
+
</>
|
|
113
|
+
</Wrapper>
|
|
114
|
+
</HeadingContainer>
|
|
115
|
+
</Box>
|
|
116
|
+
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled from '@emotion/styled';
|
|
2
|
+
import { BREAKPOINT_MD, BREAKPOINT_XL } from '@/constants/breakpoints';
|
|
3
|
+
|
|
4
|
+
export const HeadingContainer = styled.div`
|
|
5
|
+
position: absolute;
|
|
6
|
+
left: 0;
|
|
7
|
+
top: 60%;
|
|
8
|
+
width: 100vw;
|
|
9
|
+
text-align: center;
|
|
10
|
+
transform: translateY(-50%);
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
export const ShapeContainer = styled.div`
|
|
14
|
+
position: absolute;
|
|
15
|
+
|
|
16
|
+
height: var(--boemly-sizes-sm);
|
|
17
|
+
width: var(--boemly-sizes-sm);
|
|
18
|
+
|
|
19
|
+
right: var(--boemly-space-24);
|
|
20
|
+
bottom: 0;
|
|
21
|
+
|
|
22
|
+
border-top-right-radius: 100%;
|
|
23
|
+
& span,
|
|
24
|
+
div {
|
|
25
|
+
border-top-right-radius: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media screen and (max-width: ${BREAKPOINT_XL}) {
|
|
29
|
+
height: var(--boemly-sizes-2xs);
|
|
30
|
+
width: var(--boemly-sizes-2xs);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media screen and (max-width: ${BREAKPOINT_MD}) {
|
|
34
|
+
right: calc(var(--boemly-space-16) * -1);
|
|
35
|
+
|
|
36
|
+
height: var(--boemly-sizes-3xs);
|
|
37
|
+
width: var(--boemly-sizes-3xs);
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
storybookStrapiCoverMock,
|
|
5
|
+
storybookStrapiGradientBottomUpMock,
|
|
6
|
+
storybookStrapiGradientTopDownMock,
|
|
7
|
+
} from '@/test/storybookMocks/storybookStrapiMedia';
|
|
8
|
+
import Steps from '.';
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'sections/Steps',
|
|
12
|
+
component: Steps,
|
|
13
|
+
} as Meta<typeof Steps>;
|
|
14
|
+
|
|
15
|
+
const Template: StoryFn<typeof Steps> = (args) => <Steps {...args} />;
|
|
16
|
+
|
|
17
|
+
const steps = [
|
|
18
|
+
{ id: 1, step: 1, title: 'Title 1', text: 'Text' },
|
|
19
|
+
{ id: 2, step: 2, title: 'Title 2' },
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
export const Minimal = Template.bind({});
|
|
23
|
+
Minimal.args = {
|
|
24
|
+
slice: {
|
|
25
|
+
title: 'Title',
|
|
26
|
+
steps,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const WithTagline = Template.bind({});
|
|
31
|
+
WithTagline.args = {
|
|
32
|
+
slice: {
|
|
33
|
+
tagline: 'Tagline',
|
|
34
|
+
title: 'Title',
|
|
35
|
+
steps,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const WithTaglineAndText = Template.bind({});
|
|
40
|
+
WithTaglineAndText.args = {
|
|
41
|
+
slice: {
|
|
42
|
+
tagline: 'Tagline',
|
|
43
|
+
title: 'Title',
|
|
44
|
+
text: 'Text',
|
|
45
|
+
steps,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const WithImage = Template.bind({});
|
|
50
|
+
WithImage.args = {
|
|
51
|
+
slice: {
|
|
52
|
+
tagline: 'Tagline',
|
|
53
|
+
title: 'Title',
|
|
54
|
+
text: 'Text',
|
|
55
|
+
steps,
|
|
56
|
+
image: {
|
|
57
|
+
id: 1,
|
|
58
|
+
alt: 'Image alt text',
|
|
59
|
+
img: { data: storybookStrapiCoverMock },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const WithCard = Template.bind({});
|
|
65
|
+
WithCard.args = {
|
|
66
|
+
slice: {
|
|
67
|
+
tagline: 'Tagline',
|
|
68
|
+
title: 'Title',
|
|
69
|
+
text: 'Text',
|
|
70
|
+
steps,
|
|
71
|
+
image: {
|
|
72
|
+
id: 1,
|
|
73
|
+
alt: 'Image alt text',
|
|
74
|
+
img: { data: storybookStrapiCoverMock },
|
|
75
|
+
},
|
|
76
|
+
card: {
|
|
77
|
+
id: 1,
|
|
78
|
+
title: 'Title',
|
|
79
|
+
text: 'Text',
|
|
80
|
+
button: { id: 1, text: 'Button', url: 'https://tree.ly' },
|
|
81
|
+
shapes: [
|
|
82
|
+
{
|
|
83
|
+
id: 1,
|
|
84
|
+
alt: 'Shape 1',
|
|
85
|
+
img: { data: storybookStrapiGradientBottomUpMock },
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 2,
|
|
89
|
+
alt: 'Shape 2',
|
|
90
|
+
img: { data: storybookStrapiGradientTopDownMock },
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { render, screen } from '@/test/testUtils';
|
|
2
|
+
import { strapiMediaMock } from '@/test/strapiMocks/strapiMedia';
|
|
3
|
+
import Steps from '.';
|
|
4
|
+
import { StepsProps } from './Steps';
|
|
5
|
+
|
|
6
|
+
const defaultProps: StepsProps = {
|
|
7
|
+
slice: {
|
|
8
|
+
title: 'Title',
|
|
9
|
+
steps: [
|
|
10
|
+
{
|
|
11
|
+
id: 1,
|
|
12
|
+
step: 1,
|
|
13
|
+
title: 'Step Title',
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const setup = (props = {}) => {
|
|
20
|
+
const combinedProps = { ...defaultProps, ...props };
|
|
21
|
+
render(<Steps {...combinedProps} />);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
describe('The Steps component', () => {
|
|
25
|
+
it('displays the section header', () => {
|
|
26
|
+
setup();
|
|
27
|
+
|
|
28
|
+
expect(screen.getByTestId('default-section-header')).toBeInTheDocument();
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('displays the number of the steps', () => {
|
|
32
|
+
setup();
|
|
33
|
+
|
|
34
|
+
expect(
|
|
35
|
+
screen.getByText(defaultProps.slice.steps[0].step)
|
|
36
|
+
).toBeInTheDocument();
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it('displays the titles of the steps', () => {
|
|
40
|
+
setup();
|
|
41
|
+
|
|
42
|
+
expect(
|
|
43
|
+
screen.getByText(defaultProps.slice.steps[0].title)
|
|
44
|
+
).toBeInTheDocument();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('displays the texts of the steps if there is one in the slice', () => {
|
|
48
|
+
setup({
|
|
49
|
+
slice: {
|
|
50
|
+
...defaultProps.slice,
|
|
51
|
+
steps: [{ id: 1, step: 1, title: 'Step title', text: 'Step text' }],
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
expect(screen.getByText('Step text')).toBeInTheDocument();
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('displays the background image if there is one in the slice', () => {
|
|
59
|
+
setup({
|
|
60
|
+
slice: {
|
|
61
|
+
...defaultProps.slice,
|
|
62
|
+
image: { id: 1, alt: 'Alt text', img: { data: strapiMediaMock } },
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
expect(screen.getByRole('img')).toHaveAttribute('alt', 'Alt text');
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
DefaultSectionContainer,
|
|
4
|
+
DefaultSectionHeader,
|
|
5
|
+
Gradient,
|
|
6
|
+
Heading,
|
|
7
|
+
RichText,
|
|
8
|
+
ShapesCard,
|
|
9
|
+
Text,
|
|
10
|
+
useToken,
|
|
11
|
+
Wrapper,
|
|
12
|
+
} from 'boemly';
|
|
13
|
+
import Image from 'next/image';
|
|
14
|
+
import { createRef, useEffect, useRef, useState } from 'react';
|
|
15
|
+
import { useWindowScroll, useWindowSize } from 'react-use';
|
|
16
|
+
import { useRouter } from 'next/router';
|
|
17
|
+
import StrapiShapesCard from '@/models/strapi/StrapiShapesCard';
|
|
18
|
+
import StrapiDefaultHeader from '@/models/strapi/StrapiDefaultHeader';
|
|
19
|
+
import strapiMediaUrl from '@/utils/strapiMediaUrl';
|
|
20
|
+
import strapiLinkUrl from '@/utils/strapiLinkUrl';
|
|
21
|
+
import StrapiImage from '@/models/strapi/StrapiImage';
|
|
22
|
+
import {
|
|
23
|
+
ImageContainer,
|
|
24
|
+
ProgressDivider,
|
|
25
|
+
StepContainer,
|
|
26
|
+
StepNumber,
|
|
27
|
+
StepsContainer,
|
|
28
|
+
} from './styles';
|
|
29
|
+
|
|
30
|
+
interface StepsSlice extends StrapiDefaultHeader {
|
|
31
|
+
steps: {
|
|
32
|
+
id: number;
|
|
33
|
+
step: number;
|
|
34
|
+
title: string;
|
|
35
|
+
text?: string;
|
|
36
|
+
}[];
|
|
37
|
+
image?: StrapiImage;
|
|
38
|
+
card?: StrapiShapesCard;
|
|
39
|
+
}
|
|
40
|
+
export interface StepsProps {
|
|
41
|
+
slice: StepsSlice;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export const Steps: React.FC<StepsProps> = ({ slice }: StepsProps) => {
|
|
45
|
+
const { push } = useRouter();
|
|
46
|
+
const [gray900] = useToken('colors', ['gray.900']);
|
|
47
|
+
|
|
48
|
+
const containerRef = useRef<HTMLDivElement>(null);
|
|
49
|
+
|
|
50
|
+
const [stepRefs, setStepRefs] = useState(new Array(slice.steps.length));
|
|
51
|
+
const [stepProgress, setStepProgress] = useState(
|
|
52
|
+
new Array(slice.steps.length)
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
const { y: offsetY } = useWindowScroll();
|
|
56
|
+
const { height: windowHeight } = useWindowSize();
|
|
57
|
+
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
setStepRefs(slice.steps.map(() => createRef()));
|
|
60
|
+
}, []);
|
|
61
|
+
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
const containerOffsetTop = containerRef.current?.offsetTop || 0;
|
|
64
|
+
setStepProgress(
|
|
65
|
+
stepRefs.map((ref) => {
|
|
66
|
+
const currentItemOffsetTop = ref.current?.offsetTop || 0;
|
|
67
|
+
return containerOffsetTop + currentItemOffsetTop <
|
|
68
|
+
offsetY + windowHeight / 3
|
|
69
|
+
? 100
|
|
70
|
+
: 0;
|
|
71
|
+
})
|
|
72
|
+
);
|
|
73
|
+
}, [offsetY]);
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<div ref={containerRef}>
|
|
77
|
+
<DefaultSectionContainer backgroundColor={gray900} title={slice.title}>
|
|
78
|
+
<>
|
|
79
|
+
{slice.image && (
|
|
80
|
+
<ImageContainer>
|
|
81
|
+
<Image
|
|
82
|
+
src={strapiMediaUrl(slice.image.img, 'xLarge')}
|
|
83
|
+
alt={slice.image.alt}
|
|
84
|
+
fill
|
|
85
|
+
style={{ objectFit: slice.image.objectFit || 'cover' }}
|
|
86
|
+
/>
|
|
87
|
+
<Gradient />
|
|
88
|
+
</ImageContainer>
|
|
89
|
+
)}
|
|
90
|
+
</>
|
|
91
|
+
<Wrapper>
|
|
92
|
+
<>
|
|
93
|
+
<DefaultSectionHeader
|
|
94
|
+
tagline={slice.tagline}
|
|
95
|
+
title={slice.title}
|
|
96
|
+
text={slice.text}
|
|
97
|
+
taglineProps={{ textAlign: 'center' }}
|
|
98
|
+
titleProps={{
|
|
99
|
+
textAlign: 'center',
|
|
100
|
+
maxW: '2xl',
|
|
101
|
+
marginX: 'auto',
|
|
102
|
+
color: 'white',
|
|
103
|
+
}}
|
|
104
|
+
textProps={{
|
|
105
|
+
textAlign: 'center',
|
|
106
|
+
maxW: 'xl',
|
|
107
|
+
marginX: 'auto',
|
|
108
|
+
color: 'whiteAlpha.800',
|
|
109
|
+
}}
|
|
110
|
+
/>
|
|
111
|
+
|
|
112
|
+
<StepsContainer>
|
|
113
|
+
{slice.steps.map(({ id, step, title, text }, index) => (
|
|
114
|
+
<StepContainer key={id}>
|
|
115
|
+
<StepNumber>
|
|
116
|
+
<Text size="smRegularNormal" color="black">
|
|
117
|
+
{step}
|
|
118
|
+
</Text>
|
|
119
|
+
</StepNumber>
|
|
120
|
+
<Heading size="lg" color="white" mt="4" textAlign="center">
|
|
121
|
+
{title}
|
|
122
|
+
</Heading>
|
|
123
|
+
{text && (
|
|
124
|
+
<Box maxW="xl" mt="4">
|
|
125
|
+
<RichText
|
|
126
|
+
options={{ forceBlock: true }}
|
|
127
|
+
content={text}
|
|
128
|
+
textProps={{
|
|
129
|
+
size: 'mdRegularNormal',
|
|
130
|
+
color: 'whiteAlpha.700',
|
|
131
|
+
textAlign: 'center',
|
|
132
|
+
}}
|
|
133
|
+
/>
|
|
134
|
+
</Box>
|
|
135
|
+
)}
|
|
136
|
+
{(index + 1 < slice.steps.length || slice.card) && (
|
|
137
|
+
<ProgressDivider
|
|
138
|
+
ref={stepRefs[index]}
|
|
139
|
+
progress={stepProgress[index]}
|
|
140
|
+
>
|
|
141
|
+
<div className="dotted" />
|
|
142
|
+
<div className="progress" />
|
|
143
|
+
</ProgressDivider>
|
|
144
|
+
)}
|
|
145
|
+
</StepContainer>
|
|
146
|
+
))}
|
|
147
|
+
</StepsContainer>
|
|
148
|
+
|
|
149
|
+
{slice.card && (
|
|
150
|
+
<ShapesCard
|
|
151
|
+
tagline={slice.card.tagline}
|
|
152
|
+
title={slice.card.title}
|
|
153
|
+
text={slice.card.text}
|
|
154
|
+
shapes={
|
|
155
|
+
slice.card.shapes &&
|
|
156
|
+
slice.card.shapes?.map((shape) => (
|
|
157
|
+
<Image
|
|
158
|
+
src={strapiMediaUrl(shape.img, 'small')}
|
|
159
|
+
alt={shape.alt}
|
|
160
|
+
fill
|
|
161
|
+
style={{ objectFit: shape.objectFit || 'cover' }}
|
|
162
|
+
/>
|
|
163
|
+
))
|
|
164
|
+
}
|
|
165
|
+
button={
|
|
166
|
+
slice.card.button && {
|
|
167
|
+
text: slice.card.button.text,
|
|
168
|
+
onClick: () => push(strapiLinkUrl(slice.card?.button)),
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/>
|
|
172
|
+
)}
|
|
173
|
+
</>
|
|
174
|
+
</Wrapper>
|
|
175
|
+
</DefaultSectionContainer>
|
|
176
|
+
</div>
|
|
177
|
+
);
|
|
178
|
+
};
|