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,78 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = 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 _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
13
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
15
|
-
var _checkForDangerouslySet = _interopRequireDefault(require("../../utils/checkForDangerouslySet"));
|
16
|
-
var _terraOne = require("terra-one");
|
17
|
-
require("./MiniFeatDropdown.scss");
|
18
|
-
var MiniFeatDropdown = /*#__PURE__*/function (_Component) {
|
19
|
-
(0, _inherits2["default"])(MiniFeatDropdown, _Component);
|
20
|
-
var _super = (0, _createSuper2["default"])(MiniFeatDropdown);
|
21
|
-
function MiniFeatDropdown() {
|
22
|
-
var _this;
|
23
|
-
(0, _classCallCheck2["default"])(this, MiniFeatDropdown);
|
24
|
-
_this = _super.call(this);
|
25
|
-
_this.handleDropdownSelect = function (selection, name) {
|
26
|
-
_this.setState((0, _defineProperty2["default"])({}, name, selection));
|
27
|
-
_this.props.handleDropdownSelect(selection, name);
|
28
|
-
};
|
29
|
-
_this.generateDropdowns = function () {
|
30
|
-
return _this.props.dropdowns.map(function (dropdown, index) {
|
31
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
32
|
-
className: "mini-feat-dropdown__single-dropdown-wrapper",
|
33
|
-
key: "".concat(dropdown.name, "-").concat(index, "-dropdown")
|
34
|
-
}, /*#__PURE__*/_react["default"].createElement("p", {
|
35
|
-
className: "mini-feat-dropdown__dropdown-label"
|
36
|
-
}, dropdown.name), /*#__PURE__*/_react["default"].createElement(_terraOne.Dropdown, {
|
37
|
-
name: dropdown.name,
|
38
|
-
options: dropdown.options,
|
39
|
-
handleSelection: _this.handleDropdownSelect,
|
40
|
-
selection: _this.state[dropdown.name],
|
41
|
-
defaultText: dropdown.defaultText
|
42
|
-
}));
|
43
|
-
});
|
44
|
-
};
|
45
|
-
_this.state = {};
|
46
|
-
return _this;
|
47
|
-
}
|
48
|
-
(0, _createClass2["default"])(MiniFeatDropdown, [{
|
49
|
-
key: "render",
|
50
|
-
value: function render() {
|
51
|
-
var content = this.props.content;
|
52
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
53
|
-
className: "mini-feat-dropdown"
|
54
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
55
|
-
className: "mini-feat-dropdown__text-container"
|
56
|
-
}, content && content.header && !(0, _checkForDangerouslySet["default"])(content.header) && /*#__PURE__*/_react["default"].createElement("h3", {
|
57
|
-
className: "mini-feat-dropdown__header"
|
58
|
-
}, content.header), content && content.header && (0, _checkForDangerouslySet["default"])(content.header) && /*#__PURE__*/_react["default"].createElement("div", {
|
59
|
-
className: "mini-feat-dropdown__header dangerously-set-content",
|
60
|
-
dangerouslySetInnerHTML: {
|
61
|
-
__html: content.header
|
62
|
-
}
|
63
|
-
}), content && content.text && !(0, _checkForDangerouslySet["default"])(content.text) && /*#__PURE__*/_react["default"].createElement("p", {
|
64
|
-
className: "mini-feat-dropdown__text"
|
65
|
-
}, content.text), content && content.text && (0, _checkForDangerouslySet["default"])(content.text) && /*#__PURE__*/_react["default"].createElement("div", {
|
66
|
-
className: "mini-feat-dropdown__text dangerously-set-content",
|
67
|
-
dangerouslySetInnerHTML: {
|
68
|
-
__html: content.text
|
69
|
-
}
|
70
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
71
|
-
className: "mini-feat-dropdown__dropdown-container"
|
72
|
-
}, this.generateDropdowns()));
|
73
|
-
}
|
74
|
-
}]);
|
75
|
-
return MiniFeatDropdown;
|
76
|
-
}(_react.Component);
|
77
|
-
var _default = MiniFeatDropdown;
|
78
|
-
exports["default"] = _default;
|
@@ -1,107 +0,0 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.mini-feat-dropdown {
|
4
|
-
display: -webkit-box;
|
5
|
-
display: -ms-flexbox;
|
6
|
-
display: flex;
|
7
|
-
padding: 0 calc((100vw - 1200px) / 2) 0;
|
8
|
-
min-height: 228px;
|
9
|
-
margin: 0 auto;
|
10
|
-
background-color: $trimble-blue;
|
11
|
-
&__text-container {
|
12
|
-
margin: 16px;
|
13
|
-
max-width: 800px;
|
14
|
-
position: relative;
|
15
|
-
top: 16px;
|
16
|
-
-ms-flex-item-align: center;
|
17
|
-
-ms-grid-row-align: center;
|
18
|
-
align-self: center;
|
19
|
-
}
|
20
|
-
&__header {
|
21
|
-
-webkit-box-align: center;
|
22
|
-
-ms-flex-align: center;
|
23
|
-
align-items: center;
|
24
|
-
-webkit-box-pack: center;
|
25
|
-
-ms-flex-pack: center;
|
26
|
-
justify-content: center;
|
27
|
-
color: $concrete-gray-1;
|
28
|
-
font-size: $heading-3-size; // TODO REMOVE THIS WHEN POSSIBLE - CONTAINS LINE HEIGHT DECLARATIONS + OTHERS
|
29
|
-
font-size: $heading-2-size;
|
30
|
-
margin: 0;
|
31
|
-
font-weight: bold;
|
32
|
-
}
|
33
|
-
|
34
|
-
&__text {
|
35
|
-
color: $concrete-gray-1;
|
36
|
-
font-size: $subheading-size;
|
37
|
-
line-height: 32px;
|
38
|
-
padding-top: 12px;
|
39
|
-
margin: 0;
|
40
|
-
}
|
41
|
-
|
42
|
-
&__dropdown-label {
|
43
|
-
margin-bottom: 0;
|
44
|
-
@include benton-medium();
|
45
|
-
font-size: $large-body-font-size;
|
46
|
-
color: $concrete-gray-1;
|
47
|
-
}
|
48
|
-
|
49
|
-
&__dropdown-container {
|
50
|
-
margin: 16px;
|
51
|
-
position: relative;
|
52
|
-
top: 8px;
|
53
|
-
-ms-flex-item-align: center;
|
54
|
-
-ms-grid-row-align: center;
|
55
|
-
align-self: center;
|
56
|
-
-webkit-box-pack: center;
|
57
|
-
-ms-flex-pack: center;
|
58
|
-
justify-content: center;
|
59
|
-
width: 400px;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
@media screen and (max-width: 1200px) {
|
64
|
-
.mini-feat-dropdown {
|
65
|
-
&__text-container {
|
66
|
-
margin: 32px;
|
67
|
-
}
|
68
|
-
&__dropdown-container {
|
69
|
-
margin: 32px;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
@media screen and (max-width: 775px) {
|
75
|
-
.mini-feat-dropdown {
|
76
|
-
display: -ms-grid;
|
77
|
-
display: grid;
|
78
|
-
-ms-grid-rows: 1fr 100px;
|
79
|
-
grid-template-rows: 1fr 100px;
|
80
|
-
|
81
|
-
&__dropdown-container {
|
82
|
-
padding-bottom: 48px !important;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
@media screen and (max-width: 460px) {
|
88
|
-
.mini-feat-dropdown {
|
89
|
-
&__text-container {
|
90
|
-
width: 325px;
|
91
|
-
}
|
92
|
-
&__dropdown-container {
|
93
|
-
width: 300px;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
@media screen and (max-width: 365px) {
|
99
|
-
.mini-feat-dropdown {
|
100
|
-
&__text-container {
|
101
|
-
width: 255px;
|
102
|
-
}
|
103
|
-
&__dropdown-container {
|
104
|
-
width: 265px;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
}
|
@@ -1,157 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = 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 _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/classCallCheck"));
|
10
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createClass"));
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/inherits"));
|
12
|
-
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/createSuper"));
|
13
|
-
var _react = _interopRequireWildcard(require("react"));
|
14
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
15
|
-
var _reactAwesomeReveal = require("react-awesome-reveal");
|
16
|
-
require("./CustomFeat.scss");
|
17
|
-
var CustomFeat = /*#__PURE__*/function (_Component) {
|
18
|
-
(0, _inherits2["default"])(CustomFeat, _Component);
|
19
|
-
var _super = (0, _createSuper2["default"])(CustomFeat);
|
20
|
-
function CustomFeat() {
|
21
|
-
var _this;
|
22
|
-
(0, _classCallCheck2["default"])(this, CustomFeat);
|
23
|
-
_this = _super.call(this);
|
24
|
-
_this.createIframe = function () {
|
25
|
-
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
26
|
-
return;
|
27
|
-
}
|
28
|
-
// this checks if we are getting an iframe from JSON and if we are, we do not need to recreate the iframe. we can render our given iframe.
|
29
|
-
if (_this.props.content.embeddedCode.match(/\<iframe.*\/iframe\>/)) {
|
30
|
-
return;
|
31
|
-
|
32
|
-
// this checks if we are getting a url to imnput into an iframe
|
33
|
-
} else if (_this.checkForURl(_this.props.content.embeddedCode) === true) {
|
34
|
-
return;
|
35
|
-
|
36
|
-
// this checks to see if we are getting an html blob that needs to be transformed into an iframe
|
37
|
-
} else if (_this.checkForScriptTag(_this.props.content.embeddedCode) === true) {
|
38
|
-
// here we create our iframe
|
39
|
-
var iframe = document.createElement("iframe");
|
40
|
-
_this.setState({
|
41
|
-
iframe: iframe
|
42
|
-
});
|
43
|
-
var html = _this.props.content.embeddedCode;
|
44
|
-
iframe.id = "iframe-id";
|
45
|
-
iframe.srcdoc = "data:text/html;charset=utf-8," + encodeURI(html);
|
46
|
-
iframe.style.height = "100%";
|
47
|
-
iframe.style.width = "100%";
|
48
|
-
iframe.style.padding = "0 calc((100vw - 1275px) / 2) 48px";
|
49
|
-
iframe.style.margin = "0 auto";
|
50
|
-
iframe.style.border = "none";
|
51
|
-
iframe.style.display = "block";
|
52
|
-
iframe.setAttribute("srcdoc", html);
|
53
|
-
iframe.referrerPolicy = "strict-origin-when-cross-origin";
|
54
|
-
document.body.appendChild(iframe);
|
55
|
-
iframe.onerror = function (e) {
|
56
|
-
console.log(e);
|
57
|
-
};
|
58
|
-
} else {
|
59
|
-
return;
|
60
|
-
}
|
61
|
-
};
|
62
|
-
_this.resizeIframe = function () {
|
63
|
-
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
64
|
-
return;
|
65
|
-
}
|
66
|
-
var content = _this.props.content;
|
67
|
-
if (content.embeddedCode.charAt(0) === "<") {
|
68
|
-
_this.setState({
|
69
|
-
rawHTML: true
|
70
|
-
});
|
71
|
-
} else {
|
72
|
-
// this sets an iframe's height if only a url is provided. We check which height is greatest and multiply it by 3 ( multiplying it by 3 isn't the best solution, but without doing so, the iframe is still too small, I need to look into a better solution for this ). This removes the scrolling default that iFrames wthout a height inherently have
|
73
|
-
|
74
|
-
var _this$container$conte = _this.container.contentWindow.document,
|
75
|
-
body = _this$container$conte.body,
|
76
|
-
documentElement = _this$container$conte.documentElement;
|
77
|
-
var contentHeight = Math.max(body.clientHeight, body.offsetHeight, body.scrollHeight, documentElement.clientHeight, documentElement.offsetHeight, documentElement.scrollHeight) * 3;
|
78
|
-
_this.setState({
|
79
|
-
contentHeight: contentHeight
|
80
|
-
});
|
81
|
-
}
|
82
|
-
};
|
83
|
-
_this.checkForURl = function (string) {
|
84
|
-
// checks if string STARTS with https or http
|
85
|
-
return /^(http|https)/.test(string);
|
86
|
-
};
|
87
|
-
_this.checkForScriptTag = function (string) {
|
88
|
-
return /\<script.*>/.test(string);
|
89
|
-
};
|
90
|
-
_this.state = {
|
91
|
-
contentHeight: null,
|
92
|
-
rawHTML: false,
|
93
|
-
iframe: null
|
94
|
-
};
|
95
|
-
return _this;
|
96
|
-
}
|
97
|
-
(0, _createClass2["default"])(CustomFeat, [{
|
98
|
-
key: "componentDidMount",
|
99
|
-
value: function componentDidMount() {
|
100
|
-
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
101
|
-
this.resizeIframe();
|
102
|
-
this.createIframe();
|
103
|
-
}
|
104
|
-
}
|
105
|
-
}, {
|
106
|
-
key: "componentWillUnmount",
|
107
|
-
value: function componentWillUnmount() {
|
108
|
-
if (typeof document !== "undefined" && typeof window !== "undefined") {
|
109
|
-
// This conditional shouldn't be necessary, but we're seeing errors in Sentry, so here we are
|
110
|
-
if (this.state.iframe && this.state.iframe.parentNode && this.state.iframe.parentNode.contains && this.state.iframe.parentNode.contains(this.state.iframe)) {
|
111
|
-
this.state.iframe.parentNode.removeChild(this.state.iframe);
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}, {
|
116
|
-
key: "render",
|
117
|
-
value: function render() {
|
118
|
-
var _this2 = this;
|
119
|
-
var content = this.props.content;
|
120
|
-
var embeddedCode = content.embeddedCode;
|
121
|
-
var iframeStyle = {
|
122
|
-
margin: "50px auto",
|
123
|
-
padding: "0 calc((100vw - 1275px) / 2) 48px",
|
124
|
-
width: "100%",
|
125
|
-
height: this.state.contentHeight || "auto",
|
126
|
-
border: "none"
|
127
|
-
};
|
128
|
-
if (embeddedCode.charAt(0) === "<" && this.checkForScriptTag(embeddedCode) === false) {
|
129
|
-
// checks to see if embeddedCode is a standard HTML blob, and if so, we return the HTML
|
130
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
131
|
-
className: "custom-feat dangerously-set-content",
|
132
|
-
dangerouslySetInnerHTML: {
|
133
|
-
__html: embeddedCode
|
134
|
-
}
|
135
|
-
});
|
136
|
-
} else if (this.checkForURl(embeddedCode) === true) {
|
137
|
-
// if embeddedCode is NOT an html blob and a url, we insert the url into the src if the iframe
|
138
|
-
return /*#__PURE__*/_react["default"].createElement("iframe", {
|
139
|
-
className: "custom-feat",
|
140
|
-
ref: function ref(container) {
|
141
|
-
_this2.container = container;
|
142
|
-
},
|
143
|
-
style: iframeStyle,
|
144
|
-
src: embeddedCode
|
145
|
-
});
|
146
|
-
} else {
|
147
|
-
// if iframe was created dynamically, it will render here.
|
148
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
149
|
-
className: "custom-feat"
|
150
|
-
});
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}]);
|
154
|
-
return CustomFeat;
|
155
|
-
}(_react.Component);
|
156
|
-
var _default = CustomFeat;
|
157
|
-
exports["default"] = _default;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.custom-feat {
|
4
|
-
padding: spacing("super") calc((100vw - 1200px) / 2);
|
5
|
-
margin: 0 auto;
|
6
|
-
text-align: center;
|
7
|
-
overflow: hidden;
|
8
|
-
position: relative
|
9
|
-
|
10
|
-
iframe {
|
11
|
-
border: 0;
|
12
|
-
height: 100%;
|
13
|
-
left: 0;
|
14
|
-
position: absolute;
|
15
|
-
top: 0;
|
16
|
-
width: 100%;
|
17
|
-
}
|
18
|
-
}
|
@@ -1,122 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _interopRequireWildcard = 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 _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
11
|
-
require("./Feat1.scss");
|
12
|
-
var _terraOne = require("terra-one");
|
13
|
-
var _generateThemeClassName = _interopRequireDefault(require("../../utils/generateThemeClassName"));
|
14
|
-
var _generateBackgroundImage = _interopRequireDefault(require("../../utils/generateBackgroundImage"));
|
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 _getOffsetTop = _interopRequireDefault(require("../../utils/getOffsetTop"));
|
19
|
-
var _checkForDangerouslySet = _interopRequireDefault(require("../../utils/checkForDangerouslySet"));
|
20
|
-
var _feat1Methods = require("./feat1Methods");
|
21
|
-
var _removeSpaces = require("../../utils/removeSpaces");
|
22
|
-
var _checkForThemeProps = require("../../utils/checkForThemeProps");
|
23
|
-
var _useStyles2 = _interopRequireDefault(require("../../utils/hooks/useStyles"));
|
24
|
-
var Feat1 = function Feat1(_ref) {
|
25
|
-
var _ref$content = _ref.content,
|
26
|
-
content = _ref$content === void 0 ? {} : _ref$content,
|
27
|
-
_ref$background = _ref.background,
|
28
|
-
background = _ref$background === void 0 ? {} : _ref$background,
|
29
|
-
id = _ref.id,
|
30
|
-
motion = _ref.motion,
|
31
|
-
zIndex = _ref.zIndex,
|
32
|
-
parallaxPosition = _ref.parallaxPosition;
|
33
|
-
var image = content.image,
|
34
|
-
header = content.header,
|
35
|
-
subHeader = content.subHeader,
|
36
|
-
text = content.text,
|
37
|
-
cta = content.cta,
|
38
|
-
ctas = content.ctas,
|
39
|
-
theme = content.theme,
|
40
|
-
Link = content.Link,
|
41
|
-
_content$contentSide = content.contentSide,
|
42
|
-
contentSide = _content$contentSide === void 0 ? "right" : _content$contentSide,
|
43
|
-
GatsbyImage = content.GatsbyImage;
|
44
|
-
var themes = (0, _checkForThemeProps.checkForThemeProps)(theme);
|
45
|
-
var _useStyles = (0, _useStyles2["default"])(themes),
|
46
|
-
backgroundColor = _useStyles.backgroundColor,
|
47
|
-
color = _useStyles.color,
|
48
|
-
ctaOne = _useStyles.ctaOne,
|
49
|
-
ctaTwo = _useStyles.ctaTwo;
|
50
|
-
var wrapper = (0, _react.useRef)(null);
|
51
|
-
var style = background.image ? (0, _generateBackgroundImage["default"])((0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, background), {}, {
|
52
|
-
zIndex: zIndex,
|
53
|
-
parallaxPosition: parallaxPosition,
|
54
|
-
elementPosition: (0, _getOffsetTop["default"])(wrapper)
|
55
|
-
})) : {};
|
56
|
-
return /*#__PURE__*/_react["default"].createElement("section", {
|
57
|
-
ref: wrapper,
|
58
|
-
id: (0, _generateID["default"])(id, header),
|
59
|
-
className: "ter-feat-one ter-feat-one--".concat(contentSide),
|
60
|
-
style: {
|
61
|
-
zIndex: zIndex + 1 || "auto",
|
62
|
-
background: backgroundColor
|
63
|
-
}
|
64
|
-
}, background.image && /*#__PURE__*/_react["default"].createElement("div", {
|
65
|
-
className: "ter-feat-one__background-image",
|
66
|
-
alt: (background === null || background === void 0 ? void 0 : background.altText) || (background === null || background === void 0 ? void 0 : background.alt) || "placeholder image",
|
67
|
-
style: (0, _objectSpread2["default"])({}, style)
|
68
|
-
}), /*#__PURE__*/_react["default"].createElement(_reactAwesomeReveal.Fade, {
|
69
|
-
className: "ter-feat-one__image-wrapper",
|
70
|
-
direction: motion ? "up" : "",
|
71
|
-
delay: motion ? 100 : 0,
|
72
|
-
triggerOnce: true
|
73
|
-
}, /*#__PURE__*/_react["default"].createElement("figure", null, /*#__PURE__*/_react["default"].createElement(_terraOne.Image, {
|
74
|
-
image: image === null || image === void 0 ? void 0 : image.image,
|
75
|
-
GatsbyImage: GatsbyImage ? GatsbyImage : null,
|
76
|
-
src: image ? (0, _removeSpaces.removeSpaces)((image === null || image === void 0 ? void 0 : image.url) || (image === null || image === void 0 ? void 0 : image.src)) : _fpoSquare["default"],
|
77
|
-
alt: (image === null || image === void 0 ? void 0 : image.altText) || (image === null || image === void 0 ? void 0 : image.alt) || "placeholder image",
|
78
|
-
className: "ter-feat-one__image",
|
79
|
-
onError: function onError(e) {
|
80
|
-
e.target.onerror = null;
|
81
|
-
e.target.src = _fpoSquare["default"];
|
82
|
-
}
|
83
|
-
}))), /*#__PURE__*/_react["default"].createElement(_reactAwesomeReveal.Fade, {
|
84
|
-
className: "ter-feat-one__content-container ",
|
85
|
-
direction: motion ? "up" : "",
|
86
|
-
delay: motion ? 200 : 0,
|
87
|
-
triggerOnce: true
|
88
|
-
}, /*#__PURE__*/_react["default"].createElement("aside", null, header && /*#__PURE__*/_react["default"].createElement("h3", {
|
89
|
-
className: "ter-feat-one__header ter-feat__header",
|
90
|
-
style: {
|
91
|
-
color: color
|
92
|
-
}
|
93
|
-
}, header), subHeader && /*#__PURE__*/_react["default"].createElement("h5", {
|
94
|
-
className: "ter-feat-one__sub-header ter-feat__sub-header",
|
95
|
-
style: {
|
96
|
-
color: color
|
97
|
-
}
|
98
|
-
}, subHeader), text && !(0, _checkForDangerouslySet["default"])(text) && /*#__PURE__*/_react["default"].createElement("p", {
|
99
|
-
className: "ter-feat-one__text",
|
100
|
-
style: {
|
101
|
-
color: color
|
102
|
-
}
|
103
|
-
}, text), text && (0, _checkForDangerouslySet["default"])(text) && /*#__PURE__*/_react["default"].createElement("div", {
|
104
|
-
className: "ter-feat-one__text-holder dangerously-set-content",
|
105
|
-
style: {
|
106
|
-
color: color
|
107
|
-
},
|
108
|
-
dangerouslySetInnerHTML: {
|
109
|
-
__html: text
|
110
|
-
}
|
111
|
-
}), cta && !ctas && cta.url && cta.text && (cta.text !== "" || cta.text !== null) && (cta.url !== "" || cta.url !== null) && /*#__PURE__*/_react["default"].createElement(_terraOne.Button, {
|
112
|
-
Link: Link,
|
113
|
-
url: cta.url,
|
114
|
-
text: cta.text,
|
115
|
-
className: theme !== null && theme !== void 0 && theme.ctaOne ? "ter-button--".concat(theme === null || theme === void 0 ? void 0 : theme.ctaOne) : "ter-button--primary--1",
|
116
|
-
external: cta.external
|
117
|
-
}), ctas && (ctas.ctaOne || ctas.ctaTwo) && /*#__PURE__*/_react["default"].createElement(_terraOne.CTASection, {
|
118
|
-
ctas: ctas
|
119
|
-
}))));
|
120
|
-
};
|
121
|
-
var _default = Feat1;
|
122
|
-
exports["default"] = _default;
|
@@ -1,110 +0,0 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.ter-feat-one {
|
4
|
-
margin: auto;
|
5
|
-
@include organism-padding();
|
6
|
-
position: relative;
|
7
|
-
|
8
|
-
@media (min-width: $breakpoint-xs) {
|
9
|
-
padding-top: spacing("mega");
|
10
|
-
}
|
11
|
-
|
12
|
-
@media (min-width: $breakpoint-sm) {
|
13
|
-
@include grid-container;
|
14
|
-
}
|
15
|
-
|
16
|
-
&__background-image {
|
17
|
-
position: absolute;
|
18
|
-
}
|
19
|
-
|
20
|
-
@media (min-width: $breakpoint-sm) {
|
21
|
-
@include organism-padding();
|
22
|
-
-webkit-box-align: center;
|
23
|
-
-ms-flex-align: center;
|
24
|
-
align-items: center;
|
25
|
-
}
|
26
|
-
|
27
|
-
&__image-wrapper {
|
28
|
-
margin-bottom: spacing("md");
|
29
|
-
|
30
|
-
@media (min-width: $breakpoint-sm) {
|
31
|
-
@include grid-column(6);
|
32
|
-
margin-bottom: 0;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
&__image {
|
37
|
-
width: 100%;
|
38
|
-
}
|
39
|
-
|
40
|
-
&__content-container {
|
41
|
-
@media (min-width: $breakpoint-sm) {
|
42
|
-
@include grid-column(6);
|
43
|
-
padding-left: 16px;
|
44
|
-
}
|
45
|
-
|
46
|
-
@media (min-width: $breakpoint-md) {
|
47
|
-
@include grid-column(6);
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
&__header {
|
52
|
-
font-size: $heading-3-size;
|
53
|
-
}
|
54
|
-
|
55
|
-
&__sub-header {
|
56
|
-
font-size: $card-title-size;
|
57
|
-
line-height: 29.3px;
|
58
|
-
@include benton-light();
|
59
|
-
}
|
60
|
-
|
61
|
-
&__text,
|
62
|
-
&__text-holder p {
|
63
|
-
margin-top: spacing("md");
|
64
|
-
font-size: $subheading-size;
|
65
|
-
@include benton-light();
|
66
|
-
p {
|
67
|
-
margin-bottom: 0;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
&--left {
|
72
|
-
.ter-feat-one__image-wrapper {
|
73
|
-
@media (min-width: $breakpoint-sm) {
|
74
|
-
grid-column: 7 / 13;
|
75
|
-
grid-row: 1;
|
76
|
-
margin-bottom: 0;
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
.ter-feat-one__content-container {
|
81
|
-
padding-left: 0;
|
82
|
-
@media (min-width: $breakpoint-sm) {
|
83
|
-
grid-column: 0;
|
84
|
-
|
85
|
-
grid-row: 1;
|
86
|
-
}
|
87
|
-
|
88
|
-
@media (min-width: $breakpoint-md) {
|
89
|
-
grid-column: 0;
|
90
|
-
|
91
|
-
grid-row: 1;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
.ter-button {
|
97
|
-
display: block;
|
98
|
-
margin-top: spacing("md");
|
99
|
-
|
100
|
-
@media (min-width: $breakpoint-xs) {
|
101
|
-
display: inline-block;
|
102
|
-
padding-right: spacing("lg");
|
103
|
-
padding-left: spacing("lg");
|
104
|
-
}
|
105
|
-
|
106
|
-
@media (min-width: $breakpoint-md) {
|
107
|
-
margin-top: spacing("md");
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.contentFadeDelay = void 0;
|
7
|
-
var contentFadeDelay = function contentFadeDelay(motion) {
|
8
|
-
var _window;
|
9
|
-
if (!motion) {
|
10
|
-
return null;
|
11
|
-
}
|
12
|
-
if (typeof window !== "undefined" && ((_window = window) === null || _window === void 0 ? void 0 : _window.innerWidth) >= 900) {
|
13
|
-
return 200;
|
14
|
-
} else {
|
15
|
-
return 0;
|
16
|
-
}
|
17
|
-
};
|
18
|
-
exports.contentFadeDelay = contentFadeDelay;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _feat1Methods = require("./feat1Methods");
|
4
|
-
describe("feat1Methods", function () {
|
5
|
-
describe("contentFadeDelay", function () {
|
6
|
-
it("should return null", function () {
|
7
|
-
var result = (0, _feat1Methods.contentFadeDelay)();
|
8
|
-
expect(result).toEqual(null);
|
9
|
-
});
|
10
|
-
it("should return 200", function () {
|
11
|
-
global.innerWidth = 1000;
|
12
|
-
var result = (0, _feat1Methods.contentFadeDelay)(true);
|
13
|
-
expect(result).toEqual(200);
|
14
|
-
});
|
15
|
-
it("should return 0", function () {
|
16
|
-
global.innerWidth = 4;
|
17
|
-
var result = (0, _feat1Methods.contentFadeDelay)(true);
|
18
|
-
expect(result).toEqual(0);
|
19
|
-
});
|
20
|
-
});
|
21
|
-
});
|