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,413 +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["default"] = void 0;
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
10
|
-
var _Hero = _interopRequireDefault(require("../../../luna/heroes/Hero1/Hero1"));
|
11
|
-
var _Hero2 = _interopRequireDefault(require("../../../luna/heroes/Hero2/Hero2"));
|
12
|
-
var _Hero3 = _interopRequireDefault(require("../../../luna/heroes/Hero3/Hero3"));
|
13
|
-
var _Hero4 = _interopRequireDefault(require("../../../luna/heroes/Hero4/Hero4"));
|
14
|
-
var _Hero5 = _interopRequireDefault(require("../../../luna/heroes/Hero6/Hero6"));
|
15
|
-
var _Hero6 = _interopRequireDefault(require("../../../luna/heroes/Hero7/Hero7"));
|
16
|
-
var _Feat = _interopRequireDefault(require("../../../luna/featurettes/Feat1/Feat1"));
|
17
|
-
var _Feat2A = _interopRequireDefault(require("../../../luna/featurettes/Feat2A/Feat2A"));
|
18
|
-
var _Feat2B = _interopRequireDefault(require("../../../luna/featurettes/Feat2B/Feat2B"));
|
19
|
-
var _Feat2 = _interopRequireDefault(require("../../../luna/featurettes/Feat3/Feat3"));
|
20
|
-
var _Feat3 = _interopRequireDefault(require("../../../luna/featurettes/Feat4/Feat4"));
|
21
|
-
var _Feat4 = _interopRequireDefault(require("../../../luna/featurettes/Feat5/Feat5"));
|
22
|
-
var _PullQuote = _interopRequireDefault(require("../../../luna/featurettes/PullQuote/PullQuote"));
|
23
|
-
var _Feat5 = _interopRequireDefault(require("../../../luna/featurettes/Feat7/Feat7"));
|
24
|
-
var _ListFeat = _interopRequireDefault(require("../../../luna/list-feats/ListFeat/ListFeat"));
|
25
|
-
var _terraOne = require("terra-one");
|
26
|
-
var _reactScroll = require("react-scroll");
|
27
|
-
var _useScrollTo = _interopRequireDefault(require("../../hooks/useScrollTo"));
|
28
|
-
var Stack = function Stack(_ref) {
|
29
|
-
var content = _ref.content,
|
30
|
-
_ref$customMethods = _ref.customMethods,
|
31
|
-
customMethods = _ref$customMethods === void 0 ? {} : _ref$customMethods;
|
32
|
-
// Responsible for iterating over the content array passed down from Page and rendering corresponding organisms
|
33
|
-
// Custom organisms can be added here by creating a new method and adding the new organism's type and method name to the methods array
|
34
|
-
|
35
|
-
(0, _useScrollTo["default"])();
|
36
|
-
var renderContent = function renderContent() {
|
37
|
-
var combinedMethods = (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, methods), customMethods);
|
38
|
-
return content.map(function (organism, index) {
|
39
|
-
if (organism && organism.type && combinedMethods[organism.type]) {
|
40
|
-
return combinedMethods[organism.type]((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, organism), {}, {
|
41
|
-
index: index
|
42
|
-
}));
|
43
|
-
} else {
|
44
|
-
return /*#__PURE__*/_react["default"].createElement("div", null);
|
45
|
-
}
|
46
|
-
});
|
47
|
-
};
|
48
|
-
var renderHeroOne = function renderHeroOne(_ref2) {
|
49
|
-
var content = _ref2.content,
|
50
|
-
theme = _ref2.theme,
|
51
|
-
type = _ref2.type,
|
52
|
-
index = _ref2.index;
|
53
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero["default"], {
|
54
|
-
key: "".concat(index, "-").concat(type),
|
55
|
-
content: content,
|
56
|
-
motion: true,
|
57
|
-
theme: theme
|
58
|
-
});
|
59
|
-
};
|
60
|
-
var renderHeroTwo = function renderHeroTwo(_ref3) {
|
61
|
-
var content = _ref3.content,
|
62
|
-
type = _ref3.type,
|
63
|
-
index = _ref3.index;
|
64
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero2["default"], {
|
65
|
-
key: "".concat(index, "-").concat(type),
|
66
|
-
content: content,
|
67
|
-
motion: true,
|
68
|
-
theme: "theme-2"
|
69
|
-
});
|
70
|
-
};
|
71
|
-
var renderHeroThree = function renderHeroThree(_ref4) {
|
72
|
-
var content = _ref4.content,
|
73
|
-
theme = _ref4.theme,
|
74
|
-
type = _ref4.type,
|
75
|
-
index = _ref4.index;
|
76
|
-
// const { content, theme } = formatHeroThree(data);
|
77
|
-
|
78
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero3["default"], {
|
79
|
-
key: "".concat(index, "-").concat(type),
|
80
|
-
content: content,
|
81
|
-
theme: theme,
|
82
|
-
motion: true
|
83
|
-
});
|
84
|
-
};
|
85
|
-
var renderHeroFour = function renderHeroFour(_ref5) {
|
86
|
-
var content = _ref5.content,
|
87
|
-
theme = _ref5.theme,
|
88
|
-
type = _ref5.type,
|
89
|
-
index = _ref5.index;
|
90
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero4["default"], {
|
91
|
-
key: "".concat(index, "-").concat(type),
|
92
|
-
content: content,
|
93
|
-
motion: true,
|
94
|
-
theme: theme
|
95
|
-
});
|
96
|
-
};
|
97
|
-
var renderHeroFive = function renderHeroFive(_ref6) {
|
98
|
-
var content = _ref6.content,
|
99
|
-
theme = _ref6.theme,
|
100
|
-
type = _ref6.type,
|
101
|
-
index = _ref6.index;
|
102
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero4["default"], {
|
103
|
-
key: "".concat(index, "-").concat(type),
|
104
|
-
content: content,
|
105
|
-
motion: true,
|
106
|
-
theme: theme
|
107
|
-
});
|
108
|
-
};
|
109
|
-
var renderHeroSix = function renderHeroSix(_ref7) {
|
110
|
-
var content = _ref7.content,
|
111
|
-
theme = _ref7.theme,
|
112
|
-
type = _ref7.type,
|
113
|
-
index = _ref7.index;
|
114
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero5["default"], {
|
115
|
-
key: "".concat(index, "-").concat(type),
|
116
|
-
content: content,
|
117
|
-
theme: theme,
|
118
|
-
motion: true
|
119
|
-
});
|
120
|
-
};
|
121
|
-
var renderHeroSeven = function renderHeroSeven(_ref8) {
|
122
|
-
var content = _ref8.content,
|
123
|
-
theme = _ref8.theme,
|
124
|
-
type = _ref8.type,
|
125
|
-
index = _ref8.index;
|
126
|
-
return /*#__PURE__*/_react["default"].createElement(_Hero6["default"], {
|
127
|
-
key: "".concat(index, "-").concat(type),
|
128
|
-
content: content,
|
129
|
-
theme: theme,
|
130
|
-
motion: true
|
131
|
-
});
|
132
|
-
};
|
133
|
-
var renderFeatOne = function renderFeatOne(_ref9) {
|
134
|
-
var content = _ref9.content,
|
135
|
-
theme = _ref9.theme,
|
136
|
-
type = _ref9.type,
|
137
|
-
index = _ref9.index,
|
138
|
-
anchor = _ref9.anchor;
|
139
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
140
|
-
key: "".concat(index, "-").concat(type),
|
141
|
-
name: anchor
|
142
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat["default"], {
|
143
|
-
content: content,
|
144
|
-
motion: true,
|
145
|
-
theme: theme
|
146
|
-
}));
|
147
|
-
};
|
148
|
-
var renderFeatTwoA = function renderFeatTwoA(_ref10) {
|
149
|
-
var content = _ref10.content,
|
150
|
-
theme = _ref10.theme,
|
151
|
-
type = _ref10.type,
|
152
|
-
index = _ref10.index,
|
153
|
-
anchor = _ref10.anchor;
|
154
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
155
|
-
key: "".concat(index, "-").concat(type),
|
156
|
-
name: anchor
|
157
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat2A["default"], {
|
158
|
-
image: content.image,
|
159
|
-
content: content,
|
160
|
-
header: content.header,
|
161
|
-
text: content.text,
|
162
|
-
theme: theme,
|
163
|
-
motion: true
|
164
|
-
}, renderAccordionFolds(content.children)));
|
165
|
-
};
|
166
|
-
var renderAccordionFolds = function renderAccordionFolds(data) {
|
167
|
-
// Feat2A renders AccordionFolds as children
|
168
|
-
return data.map(function (fold) {
|
169
|
-
return /*#__PURE__*/_react["default"].createElement(_terraOne.AccordionFold, {
|
170
|
-
header: fold.header || "header",
|
171
|
-
key: fold.header
|
172
|
-
}, fold.text || "text");
|
173
|
-
});
|
174
|
-
};
|
175
|
-
var renderFeatTwoB = function renderFeatTwoB(_ref11) {
|
176
|
-
var content = _ref11.content,
|
177
|
-
theme = _ref11.theme,
|
178
|
-
type = _ref11.type,
|
179
|
-
index = _ref11.index,
|
180
|
-
anchor = _ref11.anchor;
|
181
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
182
|
-
key: "".concat(index, "-").concat(type),
|
183
|
-
name: anchor
|
184
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat2B["default"], {
|
185
|
-
content: content,
|
186
|
-
header: content.header,
|
187
|
-
text: content.text,
|
188
|
-
theme: theme,
|
189
|
-
motion: true
|
190
|
-
}));
|
191
|
-
};
|
192
|
-
var renderFeatThree = function renderFeatThree(_ref12) {
|
193
|
-
var content = _ref12.content,
|
194
|
-
theme = _ref12.theme,
|
195
|
-
type = _ref12.type,
|
196
|
-
index = _ref12.index,
|
197
|
-
anchor = _ref12.anchor;
|
198
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
199
|
-
key: "".concat(index, "-").concat(type),
|
200
|
-
name: anchor
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat2["default"], {
|
202
|
-
content: content,
|
203
|
-
theme: theme,
|
204
|
-
motion: true
|
205
|
-
}));
|
206
|
-
};
|
207
|
-
var renderFeatFour = function renderFeatFour(_ref13) {
|
208
|
-
var content = _ref13.content,
|
209
|
-
theme = _ref13.theme,
|
210
|
-
type = _ref13.type,
|
211
|
-
index = _ref13.index,
|
212
|
-
anchor = _ref13.anchor;
|
213
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
214
|
-
key: "".concat(index, "-").concat(type),
|
215
|
-
name: anchor
|
216
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat3["default"], {
|
217
|
-
content: content,
|
218
|
-
theme: theme,
|
219
|
-
motion: true
|
220
|
-
}));
|
221
|
-
};
|
222
|
-
var renderFeatFive = function renderFeatFive(_ref14) {
|
223
|
-
var content = _ref14.content,
|
224
|
-
theme = _ref14.theme,
|
225
|
-
type = _ref14.type,
|
226
|
-
index = _ref14.index,
|
227
|
-
anchor = _ref14.anchor;
|
228
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
229
|
-
key: "".concat(index, "-").concat(type),
|
230
|
-
name: anchor
|
231
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat4["default"], {
|
232
|
-
content: content,
|
233
|
-
motion: true,
|
234
|
-
theme: theme
|
235
|
-
}));
|
236
|
-
};
|
237
|
-
var renderPullQuote = function renderPullQuote(_ref15) {
|
238
|
-
var content = _ref15.content,
|
239
|
-
theme = _ref15.theme,
|
240
|
-
type = _ref15.type,
|
241
|
-
index = _ref15.index,
|
242
|
-
anchor = _ref15.anchor;
|
243
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
244
|
-
key: "".concat(index, "-").concat(type),
|
245
|
-
name: anchor
|
246
|
-
}, /*#__PURE__*/_react["default"].createElement(_PullQuote["default"], {
|
247
|
-
content: content,
|
248
|
-
motion: true,
|
249
|
-
theme: theme
|
250
|
-
}));
|
251
|
-
};
|
252
|
-
var renderFeatSeven = function renderFeatSeven(_ref16) {
|
253
|
-
var _content$tabs;
|
254
|
-
var content = _ref16.content,
|
255
|
-
type = _ref16.type,
|
256
|
-
index = _ref16.index,
|
257
|
-
anchor = _ref16.anchor;
|
258
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
259
|
-
key: "".concat(index, "-").concat(type),
|
260
|
-
name: anchor
|
261
|
-
}, /*#__PURE__*/_react["default"].createElement(_Feat5["default"], {
|
262
|
-
content: content,
|
263
|
-
motion: true
|
264
|
-
}, content === null || content === void 0 ? void 0 : (_content$tabs = content.tabs) === null || _content$tabs === void 0 ? void 0 : _content$tabs.map(function (tab) {
|
265
|
-
return /*#__PURE__*/_react["default"].createElement(_terraOne.TabsPanel, {
|
266
|
-
name: tab.header
|
267
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
268
|
-
type: tab.type,
|
269
|
-
content: tab
|
270
|
-
}));
|
271
|
-
})));
|
272
|
-
};
|
273
|
-
var renderListFeatOne = function renderListFeatOne(_ref17) {
|
274
|
-
var content = _ref17.content,
|
275
|
-
theme = _ref17.theme,
|
276
|
-
type = _ref17.type,
|
277
|
-
index = _ref17.index,
|
278
|
-
anchor = _ref17.anchor;
|
279
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
280
|
-
key: "".concat(index, "-").concat(type),
|
281
|
-
name: anchor
|
282
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
283
|
-
type: "list_feat_1",
|
284
|
-
content: content,
|
285
|
-
theme: theme,
|
286
|
-
motion: true
|
287
|
-
}));
|
288
|
-
};
|
289
|
-
var renderListFeatTwo = function renderListFeatTwo(_ref18) {
|
290
|
-
var content = _ref18.content,
|
291
|
-
theme = _ref18.theme,
|
292
|
-
type = _ref18.type,
|
293
|
-
index = _ref18.index,
|
294
|
-
anchor = _ref18.anchor;
|
295
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
296
|
-
key: "".concat(index, "-").concat(type),
|
297
|
-
name: anchor
|
298
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
299
|
-
type: type,
|
300
|
-
content: content,
|
301
|
-
theme: theme,
|
302
|
-
motion: true
|
303
|
-
}));
|
304
|
-
};
|
305
|
-
var renderListFeatThree = function renderListFeatThree(_ref19) {
|
306
|
-
var content = _ref19.content,
|
307
|
-
theme = _ref19.theme,
|
308
|
-
type = _ref19.type,
|
309
|
-
index = _ref19.index,
|
310
|
-
anchor = _ref19.anchor;
|
311
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
312
|
-
key: "".concat(index, "-").concat(type),
|
313
|
-
name: anchor
|
314
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
315
|
-
type: "list_feat_3",
|
316
|
-
content: content,
|
317
|
-
theme: theme,
|
318
|
-
motion: true
|
319
|
-
}));
|
320
|
-
};
|
321
|
-
var renderListFeatFour = function renderListFeatFour(_ref20) {
|
322
|
-
var content = _ref20.content,
|
323
|
-
theme = _ref20.theme,
|
324
|
-
type = _ref20.type,
|
325
|
-
index = _ref20.index,
|
326
|
-
anchor = _ref20.anchor;
|
327
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
328
|
-
key: "".concat(index, "-").concat(type),
|
329
|
-
name: anchor
|
330
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
331
|
-
type: type,
|
332
|
-
content: content,
|
333
|
-
theme: theme,
|
334
|
-
motion: true
|
335
|
-
}));
|
336
|
-
};
|
337
|
-
var renderListFeatFive = function renderListFeatFive(_ref21) {
|
338
|
-
var content = _ref21.content,
|
339
|
-
theme = _ref21.theme,
|
340
|
-
type = _ref21.type,
|
341
|
-
index = _ref21.index,
|
342
|
-
anchor = _ref21.anchor;
|
343
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
344
|
-
key: "".concat(index, "-").concat(type),
|
345
|
-
name: anchor
|
346
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
347
|
-
type: type,
|
348
|
-
content: content,
|
349
|
-
theme: theme,
|
350
|
-
motion: true
|
351
|
-
}));
|
352
|
-
};
|
353
|
-
var renderListFeatSix = function renderListFeatSix(_ref22) {
|
354
|
-
var content = _ref22.content,
|
355
|
-
theme = _ref22.theme,
|
356
|
-
type = _ref22.type,
|
357
|
-
index = _ref22.index,
|
358
|
-
anchor = _ref22.anchor;
|
359
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
360
|
-
key: "".concat(index, "-").concat(type),
|
361
|
-
name: anchor
|
362
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
363
|
-
type: "list_feat_6",
|
364
|
-
content: content,
|
365
|
-
theme: theme || "theme-1",
|
366
|
-
motion: true
|
367
|
-
}));
|
368
|
-
};
|
369
|
-
var renderListFeatSeven = function renderListFeatSeven(_ref23) {
|
370
|
-
var content = _ref23.content,
|
371
|
-
theme = _ref23.theme,
|
372
|
-
type = _ref23.type,
|
373
|
-
index = _ref23.index,
|
374
|
-
anchor = _ref23.anchor;
|
375
|
-
return /*#__PURE__*/_react["default"].createElement(_reactScroll.Element, {
|
376
|
-
key: "".concat(index, "-").concat(type),
|
377
|
-
name: anchor
|
378
|
-
}, /*#__PURE__*/_react["default"].createElement(_ListFeat["default"], {
|
379
|
-
type: type,
|
380
|
-
content: content,
|
381
|
-
theme: theme,
|
382
|
-
motion: true
|
383
|
-
}));
|
384
|
-
};
|
385
|
-
var methods = {
|
386
|
-
// keys are references to the organism type from JSON, values are the corresponding methods that return the specific organism
|
387
|
-
pbo_hero_1: renderHeroOne,
|
388
|
-
pbo_hero_2: renderHeroTwo,
|
389
|
-
pbo_hero_3: renderHeroThree,
|
390
|
-
pbo_hero_4: renderHeroFour,
|
391
|
-
pbo_hero_5: renderHeroFive,
|
392
|
-
pbo_hero_6: renderHeroSix,
|
393
|
-
pbo_hero_7: renderHeroSeven,
|
394
|
-
pbo_feat_1: renderFeatOne,
|
395
|
-
feat_2a: renderFeatTwoA,
|
396
|
-
feat_2b: renderFeatTwoB,
|
397
|
-
pbo_feat_3: renderFeatThree,
|
398
|
-
pbo_feat_4: renderFeatFour,
|
399
|
-
pbo_feat_5: renderFeatFive,
|
400
|
-
pbo_pull_quote: renderPullQuote,
|
401
|
-
feat_7: renderFeatSeven,
|
402
|
-
list_feat_1: renderListFeatOne,
|
403
|
-
list_feat_2: renderListFeatTwo,
|
404
|
-
list_feat_3: renderListFeatThree,
|
405
|
-
list_feat_4: renderListFeatFour,
|
406
|
-
list_feat_5: renderListFeatFive,
|
407
|
-
list_feat_6: renderListFeatSix,
|
408
|
-
list_feat_7: renderListFeatSeven
|
409
|
-
};
|
410
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, renderContent());
|
411
|
-
};
|
412
|
-
var _default = Stack;
|
413
|
-
exports["default"] = _default;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _reactHooks = require("@testing-library/react-hooks");
|
5
|
-
var _useErrorPageData = _interopRequireDefault(require("../useErrorPageData"));
|
6
|
-
var mockData = {
|
7
|
-
fourOhFourHeader: "404 test header",
|
8
|
-
fourOhFourText: "404 test text",
|
9
|
-
fourOhFourFiveHundredImage: "404/500 Test url",
|
10
|
-
homeButtonText: "Test Home text",
|
11
|
-
fiveHundredHeader: "500 test header",
|
12
|
-
fiveHundredText: "500 test text"
|
13
|
-
};
|
14
|
-
var mockDataTwo = {
|
15
|
-
fourOhFourText: "404 test text",
|
16
|
-
fourOhFourFiveHundredImage: "404/500 Test url",
|
17
|
-
homeButtonText: "Test Home text",
|
18
|
-
fiveHundredHeader: "500 test header",
|
19
|
-
fiveHundredText: "500 test text"
|
20
|
-
};
|
21
|
-
describe("useErrorPageData", function () {
|
22
|
-
test("should have initial state", function () {
|
23
|
-
var _renderHook = (0, _reactHooks.renderHook)(function () {
|
24
|
-
return (0, _useErrorPageData["default"])();
|
25
|
-
}),
|
26
|
-
result = _renderHook.result;
|
27
|
-
var expected = {};
|
28
|
-
expect(result.current).toStrictEqual(expected);
|
29
|
-
});
|
30
|
-
test("should not update state with missing dependencies", function () {
|
31
|
-
var _renderHook2 = (0, _reactHooks.renderHook)(function () {
|
32
|
-
return (0, _useErrorPageData["default"])(mockDataTwo);
|
33
|
-
}),
|
34
|
-
result = _renderHook2.result;
|
35
|
-
var expected = {};
|
36
|
-
expect(result.current).toStrictEqual(expected);
|
37
|
-
});
|
38
|
-
test("should update state when passed data", function () {
|
39
|
-
var _renderHook3 = (0, _reactHooks.renderHook)(function () {
|
40
|
-
return (0, _useErrorPageData["default"])(mockData);
|
41
|
-
}),
|
42
|
-
result = _renderHook3.result;
|
43
|
-
var expected = {
|
44
|
-
fourOhFourData: {
|
45
|
-
header: "404 test header",
|
46
|
-
text: "404 test text",
|
47
|
-
image: {
|
48
|
-
url: "404/500 Test url",
|
49
|
-
altText: "404"
|
50
|
-
},
|
51
|
-
ctas: {
|
52
|
-
ctaOne: {
|
53
|
-
url: "/",
|
54
|
-
text: "Test Home text"
|
55
|
-
}
|
56
|
-
}
|
57
|
-
},
|
58
|
-
fiveHundredData: {
|
59
|
-
header: "500 test header",
|
60
|
-
text: "500 test text",
|
61
|
-
image: {
|
62
|
-
altText: "500"
|
63
|
-
},
|
64
|
-
ctas: {
|
65
|
-
ctaOne: {
|
66
|
-
url: "/",
|
67
|
-
text: "Test Home text"
|
68
|
-
}
|
69
|
-
}
|
70
|
-
}
|
71
|
-
};
|
72
|
-
expect(result.current).toMatchObject(expected);
|
73
|
-
});
|
74
|
-
});
|
@@ -1,70 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/regeneratorRuntime"));
|
5
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
6
|
-
var _reactHooks = require("@testing-library/react-hooks");
|
7
|
-
var _useFetch = _interopRequireDefault(require("../useFetch"));
|
8
|
-
var _axios = _interopRequireDefault(require("axios"));
|
9
|
-
// MOCKS
|
10
|
-
|
11
|
-
describe("useFetch", function () {
|
12
|
-
test("should have initial state", function () {
|
13
|
-
var _renderHook = (0, _reactHooks.renderHook)(function () {
|
14
|
-
return (0, _useFetch["default"])();
|
15
|
-
}),
|
16
|
-
result = _renderHook.result;
|
17
|
-
expect(result.current.response).toEqual(null);
|
18
|
-
});
|
19
|
-
test("should have initial state", function () {
|
20
|
-
var _renderHook2 = (0, _reactHooks.renderHook)(function () {
|
21
|
-
return (0, _useFetch["default"])();
|
22
|
-
}),
|
23
|
-
result = _renderHook2.result;
|
24
|
-
expect(result.current.response).toEqual(null);
|
25
|
-
});
|
26
|
-
test("should return an update method", function () {
|
27
|
-
var _renderHook3 = (0, _reactHooks.renderHook)(function () {
|
28
|
-
return (0, _useFetch["default"])();
|
29
|
-
}),
|
30
|
-
result = _renderHook3.result;
|
31
|
-
expect(typeof result.current.setResponse).toBe("function");
|
32
|
-
(0, _reactHooks.act)(function () {
|
33
|
-
result.current.setResponse({
|
34
|
-
data: "mock data"
|
35
|
-
});
|
36
|
-
});
|
37
|
-
var expected = {
|
38
|
-
data: "mock data"
|
39
|
-
};
|
40
|
-
expect(result.current.response).toEqual(expected);
|
41
|
-
});
|
42
|
-
test("should call fetch and set data", /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/(0, _regeneratorRuntime2["default"])().mark(function _callee() {
|
43
|
-
var _renderHook4, result, waitForNextUpdate, expected;
|
44
|
-
return (0, _regeneratorRuntime2["default"])().wrap(function _callee$(_context) {
|
45
|
-
while (1) switch (_context.prev = _context.next) {
|
46
|
-
case 0:
|
47
|
-
jest.spyOn(_axios["default"], "get").mockImplementationOnce(function () {
|
48
|
-
return Promise.resolve({
|
49
|
-
data: {
|
50
|
-
data: "Fetched mock data"
|
51
|
-
}
|
52
|
-
});
|
53
|
-
});
|
54
|
-
_renderHook4 = (0, _reactHooks.renderHook)(function () {
|
55
|
-
return (0, _useFetch["default"])("www.mock.com");
|
56
|
-
}), result = _renderHook4.result, waitForNextUpdate = _renderHook4.waitForNextUpdate;
|
57
|
-
_context.next = 4;
|
58
|
-
return waitForNextUpdate();
|
59
|
-
case 4:
|
60
|
-
expected = {
|
61
|
-
data: "Fetched mock data"
|
62
|
-
};
|
63
|
-
expect(result.current.response).toMatchObject(expected);
|
64
|
-
case 6:
|
65
|
-
case "end":
|
66
|
-
return _context.stop();
|
67
|
-
}
|
68
|
-
}, _callee);
|
69
|
-
})));
|
70
|
-
});
|
@@ -1,106 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
-
var _reactHooks = require("@testing-library/react-hooks");
|
5
|
-
var _useFooterData = _interopRequireDefault(require("../useFooterData"));
|
6
|
-
// MOCKS
|
7
|
-
jest.mock("../../methods/formatFooterDataMethods");
|
8
|
-
describe("useFooterData", function () {
|
9
|
-
beforeEach(function () {
|
10
|
-
jest.clearAllMocks();
|
11
|
-
});
|
12
|
-
test("should have initial state", function () {
|
13
|
-
var _renderHook = (0, _reactHooks.renderHook)(function () {
|
14
|
-
return (0, _useFooterData["default"])();
|
15
|
-
}),
|
16
|
-
result = _renderHook.result;
|
17
|
-
expect(result.current.footerData).toEqual(null);
|
18
|
-
});
|
19
|
-
test("should return an update method", function () {
|
20
|
-
var _renderHook2 = (0, _reactHooks.renderHook)(function () {
|
21
|
-
return (0, _useFooterData["default"])();
|
22
|
-
}),
|
23
|
-
result = _renderHook2.result;
|
24
|
-
expect(typeof result.current.setFooterData).toBe("function");
|
25
|
-
(0, _reactHooks.act)(function () {
|
26
|
-
result.current.setFooterData({
|
27
|
-
data: "mock data"
|
28
|
-
});
|
29
|
-
});
|
30
|
-
var expected = {
|
31
|
-
data: "mock data"
|
32
|
-
};
|
33
|
-
expect(result.current.footerData).toEqual(expected);
|
34
|
-
});
|
35
|
-
test("should set footer data", function () {
|
36
|
-
var _setFooterURL = jest.fn();
|
37
|
-
var _setFooterResponse = jest.fn();
|
38
|
-
var _renderHook3 = (0, _reactHooks.renderHook)(function () {
|
39
|
-
return (0, _useFooterData["default"])("en", {
|
40
|
-
data: "footer response data"
|
41
|
-
}, _setFooterURL, _setFooterResponse);
|
42
|
-
}),
|
43
|
-
result = _renderHook3.result;
|
44
|
-
var expected = {
|
45
|
-
logo: {
|
46
|
-
url: "mock-url.com",
|
47
|
-
altText: "Trimble Logo"
|
48
|
-
},
|
49
|
-
trimbleLink: {
|
50
|
-
url: "link-url-mock.com",
|
51
|
-
text: "Test Link"
|
52
|
-
},
|
53
|
-
siteLink: {
|
54
|
-
url: "link-url-mock.com",
|
55
|
-
text: "Test Link"
|
56
|
-
},
|
57
|
-
linksOne: ["link one", "link two"],
|
58
|
-
linksTwo: ["link one", "link two"],
|
59
|
-
socialLinks: [{
|
60
|
-
icon: {
|
61
|
-
altText: "icon 1",
|
62
|
-
url: "/icon-1.jpg"
|
63
|
-
},
|
64
|
-
link: {
|
65
|
-
url: "www.link-1.com"
|
66
|
-
}
|
67
|
-
}, {
|
68
|
-
icon: {
|
69
|
-
altText: "icon 2",
|
70
|
-
url: "/icon-2.jpg"
|
71
|
-
},
|
72
|
-
link: {
|
73
|
-
url: "www.link-2.com"
|
74
|
-
}
|
75
|
-
}],
|
76
|
-
legalStuff: [{
|
77
|
-
text: "one"
|
78
|
-
}, {
|
79
|
-
text: "two"
|
80
|
-
}, {
|
81
|
-
text: "three"
|
82
|
-
}]
|
83
|
-
};
|
84
|
-
expect(result.current.footerData).toMatchObject(expected);
|
85
|
-
});
|
86
|
-
test("should call setFooterResponse", function () {
|
87
|
-
var _setFooterURL = jest.fn();
|
88
|
-
var _setFooterResponse = jest.fn();
|
89
|
-
(0, _reactHooks.renderHook)(function () {
|
90
|
-
return (0, _useFooterData["default"])("en", {
|
91
|
-
data: "footer response data"
|
92
|
-
}, _setFooterURL, _setFooterResponse);
|
93
|
-
});
|
94
|
-
expect(_setFooterResponse).toHaveBeenCalled();
|
95
|
-
});
|
96
|
-
test("should call setFooterURL", function () {
|
97
|
-
var _setFooterURL = jest.fn();
|
98
|
-
var _setFooterResponse = jest.fn();
|
99
|
-
(0, _reactHooks.renderHook)(function () {
|
100
|
-
return (0, _useFooterData["default"])("en", {
|
101
|
-
data: "footer response data"
|
102
|
-
}, _setFooterURL, _setFooterResponse);
|
103
|
-
});
|
104
|
-
expect(_setFooterURL).toHaveBeenCalled();
|
105
|
-
});
|
106
|
-
});
|