luna-one 3.1.593 → 3.1.595
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +15 -294
- package/dist/luna/components/2x2/2x2.stories.js +456 -0
- package/dist/luna/components/2x2/2x2Documentation.mdx +77 -0
- package/dist/luna/components/Accordion/Accordion.stories.js +100 -0
- package/dist/luna/components/Accordion/AccordionDocumentation.mdx +46 -0
- package/dist/luna/components/AdminCategoryData/AdminCategoryData.stories.js +43 -0
- package/dist/luna/components/AdminCategoryData/CategoryTranslationData.js +4 -4
- package/dist/luna/components/AdminProductData/AdminProductData.js +4 -4
- package/dist/luna/components/AdminProductData/AdminProductData.stories.js +44 -0
- package/dist/luna/components/BlockListItems/BlockListItem.stories.js +2381 -0
- package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -0
- package/dist/luna/components/BrowserSupportBanner/BrowserSupportBrowser.stories.js +19 -0
- package/dist/luna/components/CTAButtons/CTAButtons.stories.js +142 -0
- package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -0
- package/dist/luna/components/Carousel/Carousel.stories.js +257 -0
- package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -0
- package/dist/luna/components/ComparisonTable/ComparisonTable.stories.js +608 -0
- package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -0
- package/dist/luna/components/CtaWithHeader/CTAHeaderText.stories.js +192 -0
- package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -0
- package/dist/luna/components/DataPoint/DataPoint.stories.js +235 -0
- package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -0
- package/dist/luna/components/EventCard/EventCard.js +3 -3
- package/dist/luna/components/EventCard/EventCard.stories.js +56 -0
- package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -0
- package/dist/luna/components/FilterHero/FilterHero.stories.js +129 -0
- package/dist/luna/components/FilterSection/FilterSection.stories.js +174 -0
- package/dist/luna/{other-organisms → components}/Flyout/Flyout.js +4 -5
- package/dist/luna/components/Flyout/Flyout.stories.js +216 -0
- package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -0
- package/dist/luna/components/Footer/Footer.stories.js +418 -0
- package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -0
- package/dist/{application → luna}/components/FooterHandler/FooterHandler.js +1 -1
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.stories.js +574 -0
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +94 -0
- package/dist/luna/components/HTMLEmbed/HTMLEmbed.stories.js +136 -0
- package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -0
- package/dist/luna/components/Header/Header.stories.js +75 -0
- package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -0
- package/dist/luna/components/IconTextList/IconTextList.stories.js +100 -0
- package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +46 -0
- package/dist/luna/components/ImageGallery/ImageGallery.stories.js +194 -0
- package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -0
- package/dist/luna/components/InPageJumpNav/InPageJumpNav.stories.js +104 -0
- package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +23 -0
- package/dist/luna/components/JobPosting/JobPosting.stories.js +76 -0
- package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -0
- package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.js +3 -4
- package/dist/luna/components/LanguageSelector/LanguageSelector.stories.js +128 -0
- package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +120 -0
- package/dist/luna/components/LinkList/LinkList.stories.js +170 -0
- package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -0
- package/dist/luna/components/LoadingSpinner/LoadingSpinner.stories.js +53 -0
- package/dist/luna/components/Login/Login.js +3 -4
- package/dist/luna/components/Login/Login.stories.js +86 -0
- package/dist/luna/components/MarketoForm/MarketoForm.stories.js +65 -0
- package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -0
- package/dist/luna/components/MegaMenu/MegaMenu.js +6 -7
- package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +4 -5
- package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +16 -14
- package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +13 -11
- package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +4 -5
- package/dist/luna/components/MobileLogin/MobileLogin.js +3 -4
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.js +6 -6
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuCategory.js +9 -9
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuPartialCategory.js +3 -3
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenuSubCategory.js +8 -9
- package/dist/luna/components/MobileNav/MobileNav.js +3 -4
- package/dist/luna/{other-organisms → components}/NavBar/NavMiniMenu.js +3 -4
- package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
- package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
- package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.js +5 -5
- package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
- package/dist/luna/components/NavBarTop/NavBarTop.js +9 -10
- package/dist/luna/components/NavSearch/NavSearch.js +1 -1
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.stories.js +118 -0
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -0
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesMethods.js +1 -1
- package/dist/luna/components/OverlayNotice/OverlayNotice.stories.js +96 -0
- package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -0
- package/dist/luna/components/ProductSummary/ProductSummary.stories.js +163 -0
- package/dist/luna/components/ProductsPackage/ProductsPackage.stories.js +384 -0
- package/dist/luna/components/ProseLayout/ProseLayout.stories.js +187 -0
- package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -0
- package/dist/luna/components/PullQuote/PullQuote.stories.js +556 -0
- package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -0
- package/dist/luna/components/RegionCard/RegionCard.js +4 -4
- package/dist/luna/components/ResourceGrid/ResourceGrid.stories.js +765 -0
- package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -0
- package/dist/luna/components/ScrollInPlace/ScrollInPlace.stories.js +171 -0
- package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -0
- package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.stories.js +91 -0
- package/dist/luna/components/SlideOutFeat/SlideOutFeat.stories.js +32 -0
- package/dist/luna/components/StoreFrontCard/StoreFrontCard.js +1 -2
- package/dist/luna/components/StoreFrontCard/StoreFrontCard.stories.js +46 -0
- package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
- package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +6 -7
- package/dist/luna/components/SuperHero/SuperHero.stories.js +806 -0
- package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -0
- package/dist/luna/components/SupportCard/SupportCard.stories.js +76 -0
- package/dist/luna/components/Tabs/Tabs.js +1 -2
- package/dist/luna/components/Tabs/Tabs.stories.js +585 -0
- package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -0
- package/dist/luna/components/TimeBasedList/TimeBasedList.stories.js +297 -0
- package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -0
- package/dist/luna/components/TrainerCard/TrainerCard.stories.js +39 -0
- package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.stories.js +69 -0
- package/dist/luna/components/VariableContentCard/VariableContentCard.js +4 -4
- package/dist/luna/components/Video/Video.stories.js +135 -0
- package/dist/luna/components/Video/VideoDocumentation.mdx +56 -0
- package/dist/luna/components/WaffleMenu/WaffleMenu.js +1 -1
- package/package.json +3 -3
- package/dist/application/components/HelmetHandler/HelmetHandler.js +0 -40
- package/dist/application/components/Loading/Loading.js +0 -22
- package/dist/application/components/Loading/Loading.scss +0 -10
- package/dist/application/components/Stack/Stack.js +0 -413
- package/dist/application/hooks/tests/useErrorPageData.test.js +0 -74
- package/dist/application/hooks/tests/useFetch.test.js +0 -70
- package/dist/application/hooks/tests/useFooterData.test.js +0 -106
- package/dist/application/hooks/tests/useFooterResponse.test.js +0 -70
- package/dist/application/hooks/tests/useFooterURL.test.js +0 -46
- package/dist/application/hooks/tests/useInnerPageNav.test.js +0 -36
- package/dist/application/hooks/tests/useLanguage.test.js +0 -57
- package/dist/application/hooks/tests/useLanguages.test.js +0 -133
- package/dist/application/hooks/tests/useMetadata.test.js +0 -33
- package/dist/application/hooks/tests/useNavResponse.test.js +0 -136
- package/dist/application/hooks/tests/useNavURL.test.js +0 -49
- package/dist/application/hooks/tests/usePageFetch.test.js +0 -203
- package/dist/application/hooks/tests/useRegions.test.js +0 -234
- package/dist/application/hooks/tests/useRoutes.test.js +0 -116
- package/dist/application/hooks/tests/useSiteData.test.js +0 -86
- package/dist/application/hooks/useErrorPageData.js +0 -59
- package/dist/application/hooks/useFetch.js +0 -67
- package/dist/application/hooks/useFooterData.js +0 -45
- package/dist/application/hooks/useFooterResponse.js +0 -56
- package/dist/application/hooks/useFooterURL.js +0 -32
- package/dist/application/hooks/useLanguage.js +0 -44
- package/dist/application/hooks/useLanguages.js +0 -66
- package/dist/application/hooks/useMetadata.js +0 -23
- package/dist/application/hooks/useNavData.js +0 -45
- package/dist/application/hooks/useNavResponse.js +0 -59
- package/dist/application/hooks/useNavURL.js +0 -41
- package/dist/application/hooks/usePageFetch.js +0 -109
- package/dist/application/hooks/useRegions.js +0 -149
- package/dist/application/hooks/useRoutes.js +0 -59
- package/dist/application/hooks/useScrollTo.js +0 -60
- package/dist/application/hooks/useSiteData.js +0 -58
- package/dist/application/methods/__mocks__/formatFooterDataMethods.js +0 -54
- package/dist/application/methods/formatContentSections.js +0 -130
- package/dist/application/methods/formatFooterDataMethods.js +0 -82
- package/dist/application/methods/formatMenuSiteData.js +0 -45
- package/dist/application/methods/formatMenus.js +0 -120
- package/dist/application/methods/locationRedirect.js +0 -16
- package/dist/application/methods/organismFormat/__mocks__/formatAnchors.js +0 -11
- package/dist/application/methods/organismFormat/__mocks__/formatCTAs.js +0 -10
- package/dist/application/methods/organismFormat/__mocks__/formatTheme.js +0 -15
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFive.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatFour.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatOne.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatSeven.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatThree.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoA.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoB.js +0 -12
- package/dist/application/methods/organismFormat/feats/__mocks__/formatFeatTwoBIcons.js +0 -14
- package/dist/application/methods/organismFormat/feats/__mocks__/formatPullQuote.js +0 -12
- package/dist/application/methods/organismFormat/feats/formatFeatFive.js +0 -39
- package/dist/application/methods/organismFormat/feats/formatFeatFour.js +0 -36
- package/dist/application/methods/organismFormat/feats/formatFeatOne.js +0 -52
- package/dist/application/methods/organismFormat/feats/formatFeatSeven.js +0 -193
- package/dist/application/methods/organismFormat/feats/formatFeatThree.js +0 -41
- package/dist/application/methods/organismFormat/feats/formatFeatTwoA.js +0 -37
- package/dist/application/methods/organismFormat/feats/formatFeatTwoAFolds.js +0 -27
- package/dist/application/methods/organismFormat/feats/formatFeatTwoB.js +0 -40
- package/dist/application/methods/organismFormat/feats/formatFeatTwoBIcons.js +0 -20
- package/dist/application/methods/organismFormat/feats/formatPullQuote.js +0 -49
- package/dist/application/methods/organismFormat/feats/tests/formatFeatFive.test.js +0 -173
- package/dist/application/methods/organismFormat/feats/tests/formatFeatFour.test.js +0 -140
- package/dist/application/methods/organismFormat/feats/tests/formatFeatOne.test.js +0 -204
- package/dist/application/methods/organismFormat/feats/tests/formatFeatSeven.test.js +0 -680
- package/dist/application/methods/organismFormat/feats/tests/formatFeatThree.test.js +0 -142
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoA.test.js +0 -342
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoAFolds.test.js +0 -99
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoB.test.js +0 -293
- package/dist/application/methods/organismFormat/feats/tests/formatFeatTwoBIcons.test.js +0 -78
- package/dist/application/methods/organismFormat/feats/tests/formatPullQuote.test.js +0 -178
- package/dist/application/methods/organismFormat/formatAnchors.js +0 -16
- package/dist/application/methods/organismFormat/formatCTAs.js +0 -34
- package/dist/application/methods/organismFormat/formatTheme.js +0 -29
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroFour.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroOne.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroSix.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroThree.js +0 -12
- package/dist/application/methods/organismFormat/heroes/__mocks__/formatHeroTwo.js +0 -12
- package/dist/application/methods/organismFormat/heroes/formatHeroFour.js +0 -39
- package/dist/application/methods/organismFormat/heroes/formatHeroOne.js +0 -56
- package/dist/application/methods/organismFormat/heroes/formatHeroSeven.js +0 -56
- package/dist/application/methods/organismFormat/heroes/formatHeroSix.js +0 -51
- package/dist/application/methods/organismFormat/heroes/formatHeroThree.js +0 -58
- package/dist/application/methods/organismFormat/heroes/formatHeroTwo.js +0 -42
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroFour.test.js +0 -245
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroOne.test.js +0 -165
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroSeven.test.js +0 -198
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroSix.test.js +0 -196
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroThree.test.js +0 -185
- package/dist/application/methods/organismFormat/heroes/tests/formatHeroTwo.test.js +0 -205
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFive.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFour.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatFourCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOne.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneCards.js +0 -17
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatOneV2Cards.js +0 -27
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSeven.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSevenCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSix.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatSixCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThree.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatThreeV2Cards.js +0 -32
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTopSection.js +0 -23
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwo.js +0 -12
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoCards.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatTwoV2Cards.js +0 -34
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatType.js +0 -10
- package/dist/application/methods/organismFormat/listFeats/__mocks__/formatListFeatV2.js +0 -33
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFive.js +0 -53
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveItemsV2.js +0 -32
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFiveV2.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFour.js +0 -35
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourCards.js +0 -24
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourDumplingsV2.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatFourV2.js +0 -38
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOne.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneCards.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2.js +0 -41
- package/dist/application/methods/organismFormat/listFeats/formatListFeatOneV2Cards.js +0 -64
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSeven.js +0 -37
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCards.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenCardsV2.js +0 -48
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSevenV2.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSix.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCards.js +0 -15
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixCardsV2.js +0 -16
- package/dist/application/methods/organismFormat/listFeats/formatListFeatSixV2.js +0 -38
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThree.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeCards.js +0 -48
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatThreeV2Cards.js +0 -39
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTopSection.js +0 -33
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwo.js +0 -36
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoCards.js +0 -34
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2.js +0 -40
- package/dist/application/methods/organismFormat/listFeats/formatListFeatTwoV2Cards.js +0 -46
- package/dist/application/methods/organismFormat/listFeats/formatListFeatType.js +0 -27
- package/dist/application/methods/organismFormat/listFeats/formatListFeatV2.js +0 -21
- package/dist/application/methods/organismFormat/listFeats/tests/formatFeatSevenV2.test.js +0 -463
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFive.test.js +0 -89
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFiveV2.test.js +0 -238
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFour.test.js +0 -75
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourCards.test.js +0 -65
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatFourV2.test.js +0 -358
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOne.test.js +0 -98
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneCards.test.js +0 -67
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2.test.js +0 -191
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatOneV2Cards.test.js +0 -87
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSeven.test.js +0 -120
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSevenCards.test.js +0 -111
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSix.test.js +0 -67
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixCards.test.js +0 -25
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatSixV2.test.js +0 -242
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThree.test.js +0 -96
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeCards.test.js +0 -94
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2.test.js +0 -242
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatThreeV2Cards.test.js +0 -96
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTopSection.test.js +0 -63
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwo.test.js +0 -86
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoCards.test.js +0 -81
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2.test.js +0 -299
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatTwoV2Cards.test.js +0 -159
- package/dist/application/methods/organismFormat/listFeats/tests/formatListFeatV2.test.js +0 -69
- package/dist/application/methods/organismFormat/listFeats/tests/mockData/listFeatOneV2MockData.js +0 -125
- package/dist/application/methods/organismFormat/tests/formatAnchors.test.js +0 -20
- package/dist/application/methods/organismFormat/tests/formatCTAs.test.js +0 -109
- package/dist/application/methods/organismFormat/tests/formatTheme.test.js +0 -54
- package/dist/application/methods/tests/formatContentSections.test.js +0 -237
- package/dist/application/methods/tests/formatFooterDataMethods.test.js +0 -138
- package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.js +0 -78
- package/dist/luna/components/MiniFeatDropdown/MiniFeatDropdown.scss +0 -107
- package/dist/luna/featurettes/CustomFeat/CustomFeat.js +0 -157
- package/dist/luna/featurettes/CustomFeat/CustomFeat.scss +0 -18
- package/dist/luna/featurettes/Feat1/Feat1.js +0 -122
- package/dist/luna/featurettes/Feat1/Feat1.scss +0 -110
- package/dist/luna/featurettes/Feat1/feat1Methods.js +0 -18
- package/dist/luna/featurettes/Feat1/feat1Methods.test.js +0 -21
- package/dist/luna/featurettes/Feat2A/Feat2A.js +0 -101
- package/dist/luna/featurettes/Feat2A/Feat2A.scss +0 -132
- package/dist/luna/featurettes/Feat2B/Feat2B.js +0 -131
- package/dist/luna/featurettes/Feat2B/Feat2B.scss +0 -231
- package/dist/luna/featurettes/Feat2B/Feat2BMethods.js +0 -75
- package/dist/luna/featurettes/Feat2B/Feat2BMethods.test.js +0 -38
- package/dist/luna/featurettes/Feat3/Feat3.js +0 -89
- package/dist/luna/featurettes/Feat3/Feat3.scss +0 -49
- package/dist/luna/featurettes/Feat4/Feat4.js +0 -95
- package/dist/luna/featurettes/Feat4/Feat4.scss +0 -86
- package/dist/luna/featurettes/Feat5/Feat5.js +0 -194
- package/dist/luna/featurettes/Feat5/Feat5.scss +0 -235
- package/dist/luna/featurettes/Feat5/Feat5Methods.js +0 -19
- package/dist/luna/featurettes/Feat5/Feat5Methods.test.js +0 -23
- package/dist/luna/featurettes/Feat7/Feat7.js +0 -79
- package/dist/luna/featurettes/Feat7/Feat7.scss +0 -49
- package/dist/luna/featurettes/Feat7/Feat7Methods.js +0 -41
- package/dist/luna/featurettes/Feat8/Feat8.js +0 -75
- package/dist/luna/featurettes/Feat8/Feat8.scss +0 -103
- package/dist/luna/featurettes/Feat8/feat8Methods.js +0 -18
- package/dist/luna/featurettes/Feat8/feat8Methods.test.js +0 -21
- package/dist/luna/heroes/Hero1/Hero1.js +0 -111
- package/dist/luna/heroes/Hero1/Hero1.scss +0 -223
- package/dist/luna/heroes/Hero1/Hero1Methods.js +0 -84
- package/dist/luna/heroes/Hero1/useWindowSize.js +0 -47
- package/dist/luna/heroes/Hero2/Hero2.js +0 -130
- package/dist/luna/heroes/Hero2/Hero2.scss +0 -165
- package/dist/luna/heroes/Hero3/Hero3.js +0 -246
- package/dist/luna/heroes/Hero3/Hero3.scss +0 -250
- package/dist/luna/heroes/Hero3/Hero3Methods.js +0 -37
- package/dist/luna/heroes/Hero4/Hero4.js +0 -175
- package/dist/luna/heroes/Hero4/Hero4.scss +0 -112
- package/dist/luna/heroes/Hero4/hero4Methods.js +0 -18
- package/dist/luna/heroes/Hero6/Hero6.js +0 -179
- package/dist/luna/heroes/Hero6/Hero6.scss +0 -127
- package/dist/luna/heroes/Hero7/Hero7.js +0 -118
- package/dist/luna/heroes/Hero7/Hero7.scss +0 -193
- package/dist/luna/heroes/Hero7/Hero7Methods.js +0 -39
- package/dist/luna/heroes/Hero7/Hero7Methods.test.js +0 -109
- package/dist/luna/heroes/Hero7/useWindowWidth.js +0 -40
- package/dist/luna/list-feats/ListFeat/ListFeat.js +0 -149
- package/dist/luna/list-feats/ListFeat/ListFeat.scss +0 -112
- package/dist/luna/list-feats/ListFeat1/ListFeat1.js +0 -91
- package/dist/luna/list-feats/ListFeat1/ListFeat1.scss +0 -94
- package/dist/luna/list-feats/ListFeat1/listFeat1Methods.js +0 -14
- package/dist/luna/list-feats/ListFeat1/listFeat1Methods.test.js +0 -17
- package/dist/luna/list-feats/ListFeat2/ListFeat2.js +0 -30
- package/dist/luna/list-feats/ListFeat2/ListFeat2.scss +0 -20
- package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.js +0 -33
- package/dist/luna/list-feats/ListFeat2/ListFeat2Methods.test.js +0 -11
- package/dist/luna/list-feats/ListFeat4/ListFeat4.js +0 -34
- package/dist/luna/list-feats/ListFeat4/ListFeat4.scss +0 -32
- package/dist/luna/list-feats/ListFeat5/ListFeat5.js +0 -28
- package/dist/luna/list-feats/ListFeat5/ListFeat5.scss +0 -27
- package/dist/luna/list-feats/ListFeat5/ListFeat5Methods.js +0 -24
- package/dist/luna/list-feats/ListFeat6/ListFeat6.js +0 -59
- package/dist/luna/list-feats/ListFeat6/ListFeat6.scss +0 -34
- package/dist/luna/list-feats/ListFeat7/ListFeat7.js +0 -51
- package/dist/luna/list-feats/ListFeat7/ListFeat7.scss +0 -14
- package/dist/luna/list-feats/ListFeat7/ListFeat7Methods.js +0 -49
- package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.js +0 -25
- package/dist/luna/list-feats/ListFeatCustom/ListFeatCustom.scss +0 -8
- package/dist/luna/list-feats/methods/listFeatMethods.js +0 -119
- /package/dist/luna/{featurettes → components}/Accordion/Accordion.js +0 -0
- /package/dist/luna/{featurettes → components}/Accordion/Accordion.scss +0 -0
- /package/dist/luna/{featurettes → components}/Accordion/AccordionItem.js +0 -0
- /package/dist/luna/{other-organisms → components}/Carousel/Carousel.js +0 -0
- /package/dist/luna/{other-organisms → components}/Carousel/Carousel.scss +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHero.js +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHero.scss +0 -0
- /package/dist/luna/{heroes → components}/FilterHero/FilterHeroMethods.js +0 -0
- /package/dist/luna/{other-organisms → components}/Flyout/Flyout.scss +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/ExportedFooter.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/Footer.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/Footer.scss +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/GlobalFooter.js +0 -0
- /package/dist/luna/{other-organisms → components}/Footer/SectorFooter.js +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.js +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHero.scss +0 -0
- /package/dist/luna/{heroes → components}/FullBackgroundHero/FullBackgroundHeroMethods.js +0 -0
- /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.js +0 -0
- /package/dist/luna/{featurettes → components}/IconTextList/IconTextList.scss +0 -0
- /package/dist/luna/{other-organisms → components}/LanguageSelector/LanguageSelector.scss +0 -0
- /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.js +0 -0
- /package/dist/luna/{other-organisms → components}/MarketoForm/MarketoForm.scss +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavBar.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavBar.scss +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/useNavPosition.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.js +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackage.scss +0 -0
- /package/dist/luna/{featurettes → components}/ProductsPackage/ProductsPackageMethods.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.js +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/PullQuote.scss +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote-white.svg +0 -0
- /package/dist/luna/{featurettes → components}/PullQuote/ico-quote.svg +0 -0
- /package/dist/luna/{other-organisms → components}/SubNav/SubNav.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHero.scss +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/SuperHeroMethods.js +0 -0
- /package/dist/luna/{heroes → components}/SuperHero/useCompareContainerHeights.js +0 -0
- /package/dist/{application/assets → luna}/images/carat-down.svg +0 -0
- /package/dist/{application/assets → luna}/images/carat-up.svg +0 -0
- /package/dist/{application/assets → luna}/images/close-blue.svg +0 -0
- /package/dist/{application/assets → luna}/images/close.svg +0 -0
- /package/dist/{application/assets → luna}/images/ellipses.svg +0 -0
- /package/dist/{application/assets → luna}/images/facebook.svg +0 -0
- /package/dist/{application/assets → luna}/images/favicon.ico +0 -0
- /package/dist/{application/assets → luna}/images/fpoBox.png +0 -0
- /package/dist/{application/assets → luna}/images/fpoSquare.png +0 -0
- /package/dist/{application/assets → luna}/images/instagram.svg +0 -0
- /package/dist/{application/assets → luna}/images/linkedin.svg +0 -0
- /package/dist/{application/assets → luna}/images/loading-mini.gif +0 -0
- /package/dist/{application/assets → luna}/images/trimble_logo.png +0 -0
- /package/dist/{application/assets → luna}/images/twitter.svg +0 -0
- /package/dist/{application/assets → luna}/images/youtube.svg +0 -0
- /package/dist/{application → luna/utils}/hooks/useInnerPageNav.js +0 -0
@@ -1,165 +0,0 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.ter-hero-2 {
|
4
|
-
&__hero-image {
|
5
|
-
width: 100%;
|
6
|
-
height: auto;
|
7
|
-
max-height: 600px;
|
8
|
-
margin: 0;
|
9
|
-
padding: 0;
|
10
|
-
img {
|
11
|
-
vertical-align: middle;
|
12
|
-
width: 100%;
|
13
|
-
height: auto;
|
14
|
-
display: block;
|
15
|
-
}
|
16
|
-
|
17
|
-
&--with-motion {
|
18
|
-
-webkit-animation: fade-in 0.5s;
|
19
|
-
animation: fade-in 0.5s;
|
20
|
-
}
|
21
|
-
|
22
|
-
&--4x1 {
|
23
|
-
display: none;
|
24
|
-
@media screen and (min-width: $breakpoint-sm) {
|
25
|
-
display: block;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
&--2x1 {
|
29
|
-
display: block;
|
30
|
-
@media screen and (min-width: $breakpoint-sm) {
|
31
|
-
display: none;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
&__focused-image {
|
36
|
-
img {
|
37
|
-
width: auto;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
.ter-card__body {
|
42
|
-
background: $white;
|
43
|
-
}
|
44
|
-
|
45
|
-
&__container {
|
46
|
-
padding-right: var(--outer-margin, 2rem);
|
47
|
-
padding-left: var(--outer-margin, 2rem);
|
48
|
-
box-sizing: border-box;
|
49
|
-
max-width: 64rem;
|
50
|
-
margin: 0 auto;
|
51
|
-
display: -webkit-box;
|
52
|
-
display: -ms-flexbox;
|
53
|
-
display: flex;
|
54
|
-
width: 100%;
|
55
|
-
height: auto;
|
56
|
-
-webkit-transform: translate(0, calc(#{spacing("xxl")} * -1));
|
57
|
-
-ms-transform: translate(0, calc(#{spacing("xxl")} * -1));
|
58
|
-
transform: translate(0, calc(#{spacing("xxl")} * -1));
|
59
|
-
-webkit-box-pack: center;
|
60
|
-
-ms-flex-pack: center;
|
61
|
-
justify-content: center;
|
62
|
-
position: relative;
|
63
|
-
@media screen and (min-width: $breakpoint-xs) {
|
64
|
-
-webkit-transform: translate(0, calc(#{spacing("super")} * -1));
|
65
|
-
-ms-transform: translate(0, calc(#{spacing("super")} * -1));
|
66
|
-
transform: translate(0, calc(#{spacing("super")} * -1));
|
67
|
-
}
|
68
|
-
|
69
|
-
&--with-motion {
|
70
|
-
-webkit-animation: fade-up 1s;
|
71
|
-
animation: fade-up 1s;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
&__card {
|
75
|
-
background-color: rgba(255, 255, 255, 0.95);
|
76
|
-
display: block;
|
77
|
-
-ms-flex-preferred-size: 550px;
|
78
|
-
flex-basis: 550px;
|
79
|
-
margin-top: auto;
|
80
|
-
margin-bottom: calc(#{spacing("md")} * -1);
|
81
|
-
-ms-flex-item-align: center;
|
82
|
-
-ms-grid-row-align: center;
|
83
|
-
align-self: center;
|
84
|
-
@media screen and (min-width: $breakpoint-xs) {
|
85
|
-
margin-bottom: calc(#{spacing("sm")} * -1);
|
86
|
-
}
|
87
|
-
}
|
88
|
-
&__header {
|
89
|
-
font-size: $heading-3-size;
|
90
|
-
@include benton-very-bold();
|
91
|
-
text-align: center;
|
92
|
-
}
|
93
|
-
|
94
|
-
.ter-hero-2__sub-header,
|
95
|
-
&__sub-header-container p, &__sub-header-container div, &__sub-header-container h1, &__sub-header-container h2, &__sub-header-container h3, &__sub-header-container h4, &__sub-header-container h5, &__sub-header-container h6, &__sub-header-container ul, &__sub-header-container ol, &__sub-header-container a {
|
96
|
-
font-size: $subheading-size;
|
97
|
-
@include benton-light();
|
98
|
-
margin-bottom: spacing("md");
|
99
|
-
text-align: center;
|
100
|
-
}
|
101
|
-
|
102
|
-
.ter-button {
|
103
|
-
text-align: center;
|
104
|
-
display: block;
|
105
|
-
}
|
106
|
-
|
107
|
-
.ter-cta-section {
|
108
|
-
margin: auto;
|
109
|
-
}
|
110
|
-
|
111
|
-
&__cta-section-wrapper {
|
112
|
-
display: -webkit-box;
|
113
|
-
display: -ms-flexbox;
|
114
|
-
display: flex;
|
115
|
-
-webkit-box-pack: justify;
|
116
|
-
-ms-flex-pack: justify;
|
117
|
-
justify-content: space-between;
|
118
|
-
}
|
119
|
-
}
|
120
|
-
@-webkit-keyframes fade-in {
|
121
|
-
0% {
|
122
|
-
opacity: 0;
|
123
|
-
}
|
124
|
-
100% {
|
125
|
-
opacity: 1;
|
126
|
-
}
|
127
|
-
}
|
128
|
-
@keyframes fade-in {
|
129
|
-
0% {
|
130
|
-
opacity: 0;
|
131
|
-
}
|
132
|
-
100% {
|
133
|
-
opacity: 1;
|
134
|
-
}
|
135
|
-
}
|
136
|
-
|
137
|
-
@-webkit-keyframes fade-up {
|
138
|
-
0% {
|
139
|
-
opacity: 0;
|
140
|
-
top: 100px;
|
141
|
-
}
|
142
|
-
30% {
|
143
|
-
opacity: 0;
|
144
|
-
top: 100px;
|
145
|
-
}
|
146
|
-
100% {
|
147
|
-
opacity: 1;
|
148
|
-
top: 0;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
@keyframes fade-up {
|
153
|
-
0% {
|
154
|
-
opacity: 0;
|
155
|
-
top: 100px;
|
156
|
-
}
|
157
|
-
30% {
|
158
|
-
opacity: 0;
|
159
|
-
top: 100px;
|
160
|
-
}
|
161
|
-
100% {
|
162
|
-
opacity: 1;
|
163
|
-
top: 0;
|
164
|
-
}
|
165
|
-
}
|
@@ -1,246 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard3 = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
6
|
-
value: true
|
7
|
-
});
|
8
|
-
exports["default"] = void 0;
|
9
|
-
var _interopRequireWildcard2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/interopRequireWildcard"));
|
10
|
-
var _react = _interopRequireWildcard3(require("react"));
|
11
|
-
require("./Hero3.scss");
|
12
|
-
var _terraOne = require("terra-one");
|
13
|
-
var _play = _interopRequireDefault(require("../../images/play.svg"));
|
14
|
-
var _reactPlayer = _interopRequireDefault(require("react-player"));
|
15
|
-
var _fpoSquare = _interopRequireDefault(require("../../images/fpo-square.png"));
|
16
|
-
var _generateID = _interopRequireDefault(require("../../utils/generateID"));
|
17
|
-
var _reactAwesomeReveal = require("react-awesome-reveal");
|
18
|
-
var _useVideo2 = require("../../utils/hooks/useVideo");
|
19
|
-
var _Hero3Methods = require("./Hero3Methods");
|
20
|
-
var _checkForDangerouslySet = _interopRequireDefault(require("../../utils/checkForDangerouslySet"));
|
21
|
-
var _removeSpaces = require("../../utils/removeSpaces");
|
22
|
-
var _useMouse2 = _interopRequireDefault(require("../../utils/hooks/useMouse"));
|
23
|
-
var _lodash = require("lodash");
|
24
|
-
var _checkForThemeProps = require("../../utils/checkForThemeProps");
|
25
|
-
var _useStyles2 = _interopRequireDefault(require("../../utils/hooks/useStyles"));
|
26
|
-
var _generateFocusedImageAlt = _interopRequireDefault(require("../../utils/generateFocusedImageAlt"));
|
27
|
-
var VidyardModal = /*#__PURE__*/_react["default"].lazy(function () {
|
28
|
-
return Promise.resolve().then(function () {
|
29
|
-
return (0, _interopRequireWildcard2["default"])(require("../../components/VidyardModal/VidyardModal"));
|
30
|
-
});
|
31
|
-
});
|
32
|
-
var Hero3 = function Hero3(_ref) {
|
33
|
-
var _focusedImage$focalPo, _content$video2;
|
34
|
-
var content = _ref.content,
|
35
|
-
id = _ref.id,
|
36
|
-
motion = _ref.motion,
|
37
|
-
zIndex = _ref.zIndex,
|
38
|
-
contentSide = _ref.contentSide;
|
39
|
-
var _useVideo = (0, _useVideo2.useVideo)(false, false, false),
|
40
|
-
hovering = _useVideo.hovering,
|
41
|
-
modalDeployed = _useVideo.modalDeployed,
|
42
|
-
playing = _useVideo.playing,
|
43
|
-
deployModal = _useVideo.deployModal,
|
44
|
-
hideModal = _useVideo.hideModal,
|
45
|
-
setHovering = _useVideo.setHovering,
|
46
|
-
togglePlaying = _useVideo.togglePlaying;
|
47
|
-
var wrapper = (0, _react.useRef)(null);
|
48
|
-
var _useMouse = (0, _useMouse2["default"])(),
|
49
|
-
mouse = _useMouse.mouse;
|
50
|
-
var themes = (0, _checkForThemeProps.checkForThemeProps)(content === null || content === void 0 ? void 0 : content.theme);
|
51
|
-
var _useStyles = (0, _useStyles2["default"])(themes),
|
52
|
-
backgroundColor = _useStyles.backgroundColor,
|
53
|
-
color = _useStyles.color;
|
54
|
-
var focusedImage = content === null || content === void 0 ? void 0 : content.focusedImage;
|
55
|
-
var previewImage = null;
|
56
|
-
// TODO - kevin look at this for alignement
|
57
|
-
|
58
|
-
var isVidyardReady = function isVidyardReady() {
|
59
|
-
var _content$video;
|
60
|
-
if (content !== null && content !== void 0 && content.video && content !== null && content !== void 0 && (_content$video = content.video) !== null && _content$video !== void 0 && _content$video.vidyard && modalDeployed && typeof window !== "undefined") {
|
61
|
-
return true;
|
62
|
-
} else return false;
|
63
|
-
};
|
64
|
-
var getReactPlayerClassName = function getReactPlayerClassName() {
|
65
|
-
return "ter-hero-three__video-wrapper ".concat(content.vidyard ? "ter-hero-three__video-wrapper--vidyard" : "ter-hero-three__video-wrapper--default", " ").concat(modalDeployed ? "ter-hero-three__video-wrapper--is-deployed" : "ter-hero-three__video-wrapper--is-hidden");
|
66
|
-
};
|
67
|
-
var getModalClassName = function getModalClassName() {
|
68
|
-
return "ter-hero-three__modal ".concat(modalDeployed ? "ter-hero-three__modal--is-deployed" : "ter-hero-three__modal--is-hidden");
|
69
|
-
};
|
70
|
-
var getHeroClassName = function getHeroClassName() {
|
71
|
-
return "ter-hero-three ".concat(modalDeployed ? "ter-hero-three--deployed" : "ter-hero-three--hidden", " ").concat((0, _Hero3Methods.generateVideoSide)(contentSide));
|
72
|
-
};
|
73
|
-
var getThumbnailSrc = function getThumbnailSrc() {
|
74
|
-
var _content$thumbnail, _content$thumbnail2, _content$thumbnail3, _content$thumbnail4;
|
75
|
-
return content !== null && content !== void 0 && (_content$thumbnail = content.thumbnail) !== null && _content$thumbnail !== void 0 && _content$thumbnail.url || content !== null && content !== void 0 && (_content$thumbnail2 = content.thumbnail) !== null && _content$thumbnail2 !== void 0 && _content$thumbnail2.src ? (0, _removeSpaces.removeSpaces)((content === null || content === void 0 ? void 0 : (_content$thumbnail3 = content.thumbnail) === null || _content$thumbnail3 === void 0 ? void 0 : _content$thumbnail3.url) || (content === null || content === void 0 ? void 0 : (_content$thumbnail4 = content.thumbnail) === null || _content$thumbnail4 === void 0 ? void 0 : _content$thumbnail4.src)) : _fpoSquare["default"];
|
76
|
-
};
|
77
|
-
var getThumbnailAlt = function getThumbnailAlt() {
|
78
|
-
var _content$thumbnail5, _content$thumbnail6;
|
79
|
-
return (content === null || content === void 0 ? void 0 : (_content$thumbnail5 = content.thumbnail) === null || _content$thumbnail5 === void 0 ? void 0 : _content$thumbnail5.altText) || (content === null || content === void 0 ? void 0 : (_content$thumbnail6 = content.thumbnail) === null || _content$thumbnail6 === void 0 ? void 0 : _content$thumbnail6.alt) || "placeholder image";
|
80
|
-
};
|
81
|
-
if (focusedImage !== null && focusedImage !== void 0 && (_focusedImage$focalPo = focusedImage.focalPointImage) !== null && _focusedImage$focalPo !== void 0 && _focusedImage$focalPo.url) {
|
82
|
-
previewImage = /*#__PURE__*/_react["default"].createElement(_terraOne.FocusedImage, {
|
83
|
-
focalPointImage: focusedImage === null || focusedImage === void 0 ? void 0 : focusedImage.focalPointImage,
|
84
|
-
alt: (0, _generateFocusedImageAlt["default"])(focusedImage),
|
85
|
-
imageSizes: {
|
86
|
-
desktop: {
|
87
|
-
width: 688,
|
88
|
-
height: 387,
|
89
|
-
ratio: {
|
90
|
-
width: 16,
|
91
|
-
height: 9
|
92
|
-
}
|
93
|
-
},
|
94
|
-
tablet: {
|
95
|
-
width: 688,
|
96
|
-
height: 387,
|
97
|
-
ratio: {
|
98
|
-
width: 16,
|
99
|
-
height: 9
|
100
|
-
}
|
101
|
-
},
|
102
|
-
mobile: {
|
103
|
-
width: 688,
|
104
|
-
height: 387,
|
105
|
-
ratio: {
|
106
|
-
width: 16,
|
107
|
-
height: 9
|
108
|
-
}
|
109
|
-
}
|
110
|
-
},
|
111
|
-
id: (0, _lodash.uniqueId)("id-"),
|
112
|
-
tabIndex: mouse ? "" : "0",
|
113
|
-
onKeyDown: function onKeyDown(e) {
|
114
|
-
return (0, _Hero3Methods.deployModalOnEnter)(e, mouse, deployModal);
|
115
|
-
},
|
116
|
-
onClick: function onClick() {
|
117
|
-
return deployModal();
|
118
|
-
},
|
119
|
-
onMouseOver: function onMouseOver() {
|
120
|
-
return setHovering(true);
|
121
|
-
},
|
122
|
-
onMouseLeave: function onMouseLeave() {
|
123
|
-
return setHovering(false);
|
124
|
-
},
|
125
|
-
className: "ter-hero-three__thumbnail ".concat(hovering ? "ter-hero-three__thumbnail--is-hovering" : "")
|
126
|
-
});
|
127
|
-
} else if (content !== null && content !== void 0 && content.thumbnail && content !== null && content !== void 0 && content.video) {
|
128
|
-
var _content$thumbnail7, _content$thumbnail8;
|
129
|
-
previewImage = /*#__PURE__*/_react["default"].createElement(_terraOne.Image, {
|
130
|
-
GatsbyImage: content !== null && content !== void 0 && content.GatsbyImage ? content === null || content === void 0 ? void 0 : content.GatsbyImage : null,
|
131
|
-
image: content !== null && content !== void 0 && (_content$thumbnail7 = content.thumbnail) !== null && _content$thumbnail7 !== void 0 && _content$thumbnail7.image ? content === null || content === void 0 ? void 0 : (_content$thumbnail8 = content.thumbnail) === null || _content$thumbnail8 === void 0 ? void 0 : _content$thumbnail8.image : null,
|
132
|
-
id: (0, _lodash.uniqueId)("id-"),
|
133
|
-
tabIndex: mouse ? "" : "0",
|
134
|
-
onKeyDown: function onKeyDown(e) {
|
135
|
-
return (0, _Hero3Methods.deployModalOnEnter)(e, mouse, deployModal);
|
136
|
-
},
|
137
|
-
onClick: function onClick() {
|
138
|
-
return deployModal();
|
139
|
-
},
|
140
|
-
onMouseOver: function onMouseOver() {
|
141
|
-
return setHovering(true);
|
142
|
-
},
|
143
|
-
onMouseLeave: function onMouseLeave() {
|
144
|
-
return setHovering(false);
|
145
|
-
},
|
146
|
-
className: "ter-hero-three__thumbnail ".concat(hovering ? "ter-hero-three__thumbnail--is-hovering" : ""),
|
147
|
-
alt: getThumbnailAlt(),
|
148
|
-
src: getThumbnailSrc(),
|
149
|
-
onError: function onError(e) {
|
150
|
-
e.target.onerror = null;
|
151
|
-
e.target.src = _fpoSquare["default"];
|
152
|
-
}
|
153
|
-
});
|
154
|
-
} else {
|
155
|
-
previewImage = null;
|
156
|
-
}
|
157
|
-
return /*#__PURE__*/_react["default"].createElement("section", {
|
158
|
-
className: getHeroClassName(),
|
159
|
-
style: {
|
160
|
-
zIndex: zIndex || "auto",
|
161
|
-
backgroundColor: backgroundColor
|
162
|
-
},
|
163
|
-
id: (0, _generateID["default"])(id, content.header),
|
164
|
-
ref: wrapper
|
165
|
-
}, /*#__PURE__*/_react["default"].createElement(_reactAwesomeReveal.Fade, {
|
166
|
-
direction: motion ? "up" : "",
|
167
|
-
delay: motion ? 200 : 0,
|
168
|
-
triggerOnce: true,
|
169
|
-
className: "ter-hero-three__content-container"
|
170
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, (content === null || content === void 0 ? void 0 : content.header) && /*#__PURE__*/_react["default"].createElement("h2", {
|
171
|
-
className: "ter-hero-three__header ter-hero__header",
|
172
|
-
style: {
|
173
|
-
color: color
|
174
|
-
}
|
175
|
-
}, content.header), (content === null || content === void 0 ? void 0 : content.text) && !(0, _checkForDangerouslySet["default"])(content.text) && /*#__PURE__*/_react["default"].createElement("p", {
|
176
|
-
className: "ter-hero-three__text",
|
177
|
-
style: {
|
178
|
-
color: color
|
179
|
-
}
|
180
|
-
}, content.text), (content === null || content === void 0 ? void 0 : content.text) && (0, _checkForDangerouslySet["default"])(content.text) && /*#__PURE__*/_react["default"].createElement("div", {
|
181
|
-
className: "ter-hero-three__text-holder dangerously-set-content",
|
182
|
-
style: {
|
183
|
-
color: color
|
184
|
-
},
|
185
|
-
dangerouslySetInnerHTML: {
|
186
|
-
__html: content.text
|
187
|
-
}
|
188
|
-
}), content.ctas && (content.ctas.ctaOne || content.ctas.ctaTwo) && /*#__PURE__*/_react["default"].createElement(_terraOne.CTASection, {
|
189
|
-
ctas: (0, _Hero3Methods.formatCTAs)(content === null || content === void 0 ? void 0 : content.ctas, deployModal)
|
190
|
-
}))), /*#__PURE__*/_react["default"].createElement(_reactAwesomeReveal.Fade, {
|
191
|
-
id: (0, _lodash.uniqueId)("id-"),
|
192
|
-
tabIndex: mouse ? "" : "0",
|
193
|
-
direction: motion ? "up" : "",
|
194
|
-
delay: motion ? 200 : 0,
|
195
|
-
triggerOnce: true,
|
196
|
-
className: "ter-hero-three__thumbnail-container"
|
197
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, previewImage && previewImage, /*#__PURE__*/_react["default"].createElement("img", {
|
198
|
-
onClick: function onClick() {
|
199
|
-
return deployModal();
|
200
|
-
},
|
201
|
-
onMouseOver: function onMouseOver() {
|
202
|
-
return setHovering(true);
|
203
|
-
},
|
204
|
-
onMouseLeave: function onMouseLeave() {
|
205
|
-
return setHovering(false);
|
206
|
-
},
|
207
|
-
src: _play["default"],
|
208
|
-
alt: "play button",
|
209
|
-
className: "ter-hero-three__play-btn ".concat(hovering ? "ter-hero-play-btn--is-hovering" : "")
|
210
|
-
}))), /*#__PURE__*/_react["default"].createElement("section", {
|
211
|
-
className: getModalClassName(),
|
212
|
-
onClick: function onClick() {
|
213
|
-
hideModal();
|
214
|
-
}
|
215
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
216
|
-
className: getReactPlayerClassName()
|
217
|
-
}, (content === null || content === void 0 ? void 0 : content.video) && !(content !== null && content !== void 0 && (_content$video2 = content.video) !== null && _content$video2 !== void 0 && _content$video2.vidyard) && modalDeployed && /*#__PURE__*/_react["default"].createElement(_reactPlayer["default"], {
|
218
|
-
url: content.video.url,
|
219
|
-
width: "100%",
|
220
|
-
height: "100%",
|
221
|
-
playing: playing,
|
222
|
-
controls: true,
|
223
|
-
onStart: function onStart() {
|
224
|
-
togglePlaying(true);
|
225
|
-
},
|
226
|
-
onPlay: function onPlay() {
|
227
|
-
togglePlaying(true);
|
228
|
-
},
|
229
|
-
onPause: function onPause() {
|
230
|
-
togglePlaying(false);
|
231
|
-
},
|
232
|
-
onEnded: function onEnded() {
|
233
|
-
togglePlaying(false);
|
234
|
-
},
|
235
|
-
onError: function onError() {
|
236
|
-
togglePlaying(false);
|
237
|
-
},
|
238
|
-
allowFullScreen: true
|
239
|
-
}), isVidyardReady() && /*#__PURE__*/_react["default"].createElement(_react["default"].Suspense, {
|
240
|
-
fallback: /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null)
|
241
|
-
}, typeof window !== "undefined" && /*#__PURE__*/_react["default"].createElement(VidyardModal, {
|
242
|
-
video: content.video
|
243
|
-
})))));
|
244
|
-
};
|
245
|
-
var _default = Hero3;
|
246
|
-
exports["default"] = _default;
|
@@ -1,250 +0,0 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.ter-hero-three {
|
4
|
-
@include organism-padding();
|
5
|
-
display: -webkit-box;
|
6
|
-
display: -ms-flexbox;
|
7
|
-
display: flex;
|
8
|
-
-webkit-box-align: center;
|
9
|
-
-ms-flex-align: center;
|
10
|
-
align-items: center;
|
11
|
-
margin: auto;
|
12
|
-
position: relative;
|
13
|
-
overflow: hidden;
|
14
|
-
@media screen and (max-width: 900px) {
|
15
|
-
display: block;
|
16
|
-
padding: 32px;
|
17
|
-
}
|
18
|
-
|
19
|
-
&--right {
|
20
|
-
-webkit-box-orient: horizontal;
|
21
|
-
-webkit-box-direction: reverse;
|
22
|
-
-ms-flex-direction: row-reverse;
|
23
|
-
flex-direction: row-reverse;
|
24
|
-
|
25
|
-
.ter-hero-three__content-container {
|
26
|
-
padding: 0 48px;
|
27
|
-
|
28
|
-
@media screen and (max-width: 900px) {
|
29
|
-
padding: 32px 0 0;
|
30
|
-
}
|
31
|
-
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
&--left {
|
36
|
-
-webkit-box-orient: horizontal;
|
37
|
-
-webkit-box-direction: reverse;
|
38
|
-
-ms-flex-direction: row-reverse;
|
39
|
-
flex-direction: row;
|
40
|
-
}
|
41
|
-
|
42
|
-
&__thumbnail {
|
43
|
-
-webkit-box-sizing: border-box;
|
44
|
-
box-sizing: border-box;
|
45
|
-
max-width: 100%;
|
46
|
-
height: auto;
|
47
|
-
display: block;
|
48
|
-
margin: auto;
|
49
|
-
-webkit-transition: 0.2s;
|
50
|
-
-o-transition: 0.2s;
|
51
|
-
transition: 0.2s;
|
52
|
-
|
53
|
-
&--is-hovering {
|
54
|
-
-webkit-transform: scale(1.03);
|
55
|
-
-ms-transform: scale(1.03);
|
56
|
-
transform: scale(1.03);
|
57
|
-
cursor: pointer;
|
58
|
-
}
|
59
|
-
|
60
|
-
@media screen and (max-width: 900px) {
|
61
|
-
padding: 0;
|
62
|
-
}
|
63
|
-
|
64
|
-
&-container {
|
65
|
-
-webkit-box-flex: 7;
|
66
|
-
-ms-flex: 7;
|
67
|
-
flex: 7;
|
68
|
-
position: relative;
|
69
|
-
|
70
|
-
@media screen and (max-width: 900px) {
|
71
|
-
max-width: 100vw;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
&__play-btn {
|
77
|
-
position: absolute;
|
78
|
-
top: 0;
|
79
|
-
bottom: 0;
|
80
|
-
left: 0;
|
81
|
-
right: 0;
|
82
|
-
margin: auto;
|
83
|
-
&--is-hovering {
|
84
|
-
-webkit-transform: scale(1.03);
|
85
|
-
-ms-transform: scale(1.03);
|
86
|
-
transform: scale(1.03);
|
87
|
-
cursor: pointer;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
&__content-container {
|
92
|
-
-webkit-box-flex: 5;
|
93
|
-
-ms-flex: 5;
|
94
|
-
flex: 5;
|
95
|
-
-ms-grid-column-align: center;
|
96
|
-
justify-self: center;
|
97
|
-
width: 100%;
|
98
|
-
@media (min-width: $breakpoint-sm) {
|
99
|
-
padding: 0 48px 0 0px;
|
100
|
-
}
|
101
|
-
|
102
|
-
@media (min-width: $breakpoint-md) {
|
103
|
-
display: -webkit-box;
|
104
|
-
display: -ms-flexbox;
|
105
|
-
display: flex;
|
106
|
-
-webkit-box-orient: vertical;
|
107
|
-
-webkit-box-direction: normal;
|
108
|
-
-ms-flex-direction: column;
|
109
|
-
flex-direction: column;
|
110
|
-
-webkit-box-pack: center;
|
111
|
-
-ms-flex-pack: center;
|
112
|
-
justify-content: center;
|
113
|
-
}
|
114
|
-
|
115
|
-
@media (max-width: 900px) {
|
116
|
-
padding: 32px 0 0;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
&__header {
|
121
|
-
font-size: $heading-3-size;
|
122
|
-
@include benton-very-bold();
|
123
|
-
}
|
124
|
-
|
125
|
-
&__text,
|
126
|
-
&__text-holder p {
|
127
|
-
font-size: $subheading-size;
|
128
|
-
@include benton-light();
|
129
|
-
margin-top: spacing("xs");
|
130
|
-
margin-bottom: spacing("xs");
|
131
|
-
}
|
132
|
-
|
133
|
-
.ter-cta-section {
|
134
|
-
min-width: 150px;
|
135
|
-
width: -webkit-min-content;
|
136
|
-
width: -moz-min-content;
|
137
|
-
width: min-content;
|
138
|
-
|
139
|
-
.ter-button {
|
140
|
-
margin: spacing("xs") auto 0;
|
141
|
-
text-align: center;
|
142
|
-
display: block;
|
143
|
-
}
|
144
|
-
|
145
|
-
@media screen and (max-width: 900px) {
|
146
|
-
margin-bottom: 36px;
|
147
|
-
}
|
148
|
-
}
|
149
|
-
|
150
|
-
.ter-cta-section__link {
|
151
|
-
text-align: center;
|
152
|
-
display: block;
|
153
|
-
clear: both;
|
154
|
-
}
|
155
|
-
|
156
|
-
// VIDEO MODAL STYLING //
|
157
|
-
|
158
|
-
&__video-wrapper {
|
159
|
-
position: relative;
|
160
|
-
-webkit-transition: 0.3s;
|
161
|
-
-o-transition: 0.3s;
|
162
|
-
transition: 0.3s;
|
163
|
-
-webkit-transform: translateY(50px);
|
164
|
-
-ms-transform: translateY(50px);
|
165
|
-
transform: translateY(50px);
|
166
|
-
|
167
|
-
&--default {
|
168
|
-
padding-bottom: 56.25%; /* 16:9 */
|
169
|
-
padding-top: 25px;
|
170
|
-
height: 0;
|
171
|
-
}
|
172
|
-
|
173
|
-
&--is-deployed {
|
174
|
-
-webkit-transform: translateY(0);
|
175
|
-
-ms-transform: translateY(0);
|
176
|
-
transform: translateY(0);
|
177
|
-
}
|
178
|
-
|
179
|
-
iframe {
|
180
|
-
position: absolute;
|
181
|
-
top: 0;
|
182
|
-
bottom: 0;
|
183
|
-
left: 0;
|
184
|
-
right: 0;
|
185
|
-
max-width: 70%;
|
186
|
-
max-height: 70%;
|
187
|
-
margin: 60px auto 0;
|
188
|
-
|
189
|
-
@media screen and (max-width: 1980px) {
|
190
|
-
max-width: 1200px;
|
191
|
-
max-height: 675px;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
}
|
195
|
-
|
196
|
-
&__modal {
|
197
|
-
position: fixed;
|
198
|
-
background: rgba(0, 0, 0, 0.5);
|
199
|
-
z-index: 100;
|
200
|
-
top: 0;
|
201
|
-
left: 0;
|
202
|
-
overflow: hidden;
|
203
|
-
-webkit-transition: 0.3s;
|
204
|
-
-o-transition: 0.3s;
|
205
|
-
transition: 0.3s;
|
206
|
-
opacity: 0;
|
207
|
-
-webkit-animation: fade-in 0.5s linear;
|
208
|
-
animation: fade-in 0.5s linear;
|
209
|
-
height: 100vh;
|
210
|
-
width: 100vw;
|
211
|
-
opacity: 0;
|
212
|
-
visibility: hidden;
|
213
|
-
display: -ms-grid;
|
214
|
-
display: grid;
|
215
|
-
-webkit-box-align: center;
|
216
|
-
-ms-flex-align: center;
|
217
|
-
align-items: center;
|
218
|
-
|
219
|
-
&--is-deployed {
|
220
|
-
opacity: 1;
|
221
|
-
visibility: visible;
|
222
|
-
}
|
223
|
-
}
|
224
|
-
|
225
|
-
.ter-hero-three__header,
|
226
|
-
.ter-hero-three__text,
|
227
|
-
.ter-hero-three__text-holder,
|
228
|
-
.ter-hero-three__thumbnail-container,
|
229
|
-
.ter-hero-three__thumbnail,
|
230
|
-
.ter-button {
|
231
|
-
opacity: 1;
|
232
|
-
-webkit-transition: opacity 0.2s;
|
233
|
-
-o-transition: opacity 0.2s;
|
234
|
-
transition: opacity 0.2s;
|
235
|
-
}
|
236
|
-
|
237
|
-
&--deployed {
|
238
|
-
overflow: visible;
|
239
|
-
|
240
|
-
.ter-hero-three__header,
|
241
|
-
.ter-hero-three__text,
|
242
|
-
.ter-hero-three__text-holder,
|
243
|
-
.ter-hero-three__thumbnail-container,
|
244
|
-
.ter-hero-three__thumbnail,
|
245
|
-
.ter-button {
|
246
|
-
opacity: 0 !important;
|
247
|
-
}
|
248
|
-
}
|
249
|
-
}
|
250
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports.generateVideoSide = exports.formatCTAs = exports.deployModalOnEnter = void 0;
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
9
|
-
var formatCTAs = function formatCTAs(ctas, deployModal) {
|
10
|
-
if (!ctas) {
|
11
|
-
return null;
|
12
|
-
}
|
13
|
-
var cta = (0, _objectSpread2["default"])({}, ctas);
|
14
|
-
if (cta.ctaOne) {
|
15
|
-
cta.ctaOne.onClick = deployModal;
|
16
|
-
}
|
17
|
-
return cta;
|
18
|
-
};
|
19
|
-
exports.formatCTAs = formatCTAs;
|
20
|
-
var deployModalOnEnter = function deployModalOnEnter(event, mouse, deployModal) {
|
21
|
-
//first we check that a user is not using the mouse
|
22
|
-
if (!mouse) {
|
23
|
-
// checks that a user hits the enter key to open the modal
|
24
|
-
if (event.keyCode === 13) {
|
25
|
-
deployModal();
|
26
|
-
}
|
27
|
-
}
|
28
|
-
};
|
29
|
-
exports.deployModalOnEnter = deployModalOnEnter;
|
30
|
-
var generateVideoSide = function generateVideoSide(contentSide) {
|
31
|
-
if (contentSide === "right") {
|
32
|
-
return "ter-hero-three--right";
|
33
|
-
} else {
|
34
|
-
return "ter-hero-three--left";
|
35
|
-
}
|
36
|
-
};
|
37
|
-
exports.generateVideoSide = generateVideoSide;
|