luna-one 3.1.593 → 3.1.595
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
5
6
|
value: true
|
6
7
|
});
|
7
8
|
exports["default"] = void 0;
|
8
|
-
var _react =
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
9
10
|
require("./EventCard.scss");
|
10
11
|
var _generateLinks = require("../../utils/generateLinks");
|
11
12
|
var _removeSpaces = require("../../utils/removeSpaces");
|
12
13
|
var _useMouse2 = _interopRequireDefault(require("../../utils/hooks/useMouse"));
|
13
|
-
var _lodash = require("lodash");
|
14
14
|
var _terraOne = require("terra-one");
|
15
15
|
var EventCard = function EventCard(_ref) {
|
16
16
|
var _ref$content = _ref.content,
|
@@ -54,7 +54,7 @@ var EventCard = function EventCard(_ref) {
|
|
54
54
|
url: link.url || "",
|
55
55
|
Link: Link
|
56
56
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
57
|
-
id: (0,
|
57
|
+
id: (0, _react.useId)(),
|
58
58
|
tabIndex: mouse ? "" : "0",
|
59
59
|
className: mouse ? "" : "mep-event-card__focus"
|
60
60
|
}, /*#__PURE__*/_react["default"].createElement(_terraOne.Icon, {
|
@@ -0,0 +1,56 @@
|
|
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"] = exports.Default = void 0;
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
var _EventCard = _interopRequireDefault(require("./EventCard"));
|
10
|
+
var _EventCardDocumentation = _interopRequireDefault(require("./EventCardDocumentation.mdx"));
|
11
|
+
var date = "Nov 18 - Nov 19";
|
12
|
+
var year = "2019";
|
13
|
+
var image = {
|
14
|
+
url: "http://fpoimg.com/95x95"
|
15
|
+
};
|
16
|
+
var industry = "Construction";
|
17
|
+
var industryLabel = "Industry";
|
18
|
+
// const name = "Trimble Digital Construction Summit - The Bridge to BIM";
|
19
|
+
var name = "Test Event Two";
|
20
|
+
var description = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua consequat.";
|
21
|
+
var location = "Denver, CO";
|
22
|
+
var content = {
|
23
|
+
date: date,
|
24
|
+
year: year,
|
25
|
+
image: image,
|
26
|
+
industry: industry,
|
27
|
+
industryLabel: industryLabel,
|
28
|
+
name: name,
|
29
|
+
location: location,
|
30
|
+
description: description,
|
31
|
+
link: {
|
32
|
+
url: "/wut"
|
33
|
+
}
|
34
|
+
};
|
35
|
+
var _default = {
|
36
|
+
component: _EventCard["default"],
|
37
|
+
title: "MXP Components/EventCard",
|
38
|
+
parameters: {
|
39
|
+
docs: {
|
40
|
+
page: _EventCardDocumentation["default"]
|
41
|
+
}
|
42
|
+
}
|
43
|
+
};
|
44
|
+
exports["default"] = _default;
|
45
|
+
var Default = function Default() {
|
46
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
47
|
+
style: {
|
48
|
+
maxWidth: "1200px",
|
49
|
+
margin: "auto",
|
50
|
+
padding: "0 32px"
|
51
|
+
}
|
52
|
+
}, /*#__PURE__*/_react["default"].createElement(_EventCard["default"], {
|
53
|
+
content: content
|
54
|
+
}));
|
55
|
+
};
|
56
|
+
exports.Default = Default;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#### EventCard
|
2
|
+
|
3
|
+
###### Props -
|
4
|
+
|
5
|
+
- `content` - object containing date, year, image, industry, industryLabel, name, description, link, and location
|
6
|
+
- `year` - string to represent year
|
7
|
+
- `date` - string to represent date
|
8
|
+
- `image` - object with key value pair `url` to reprensent image path
|
9
|
+
- `industry` - string to represent industry type
|
10
|
+
- `industryLabel` - string to represent industry label
|
11
|
+
- `name` - string to represent name of event
|
12
|
+
- `description` - string to represent description of event
|
13
|
+
- `location` - string to represent location of event
|
14
|
+
- `link` - object with key value pair `url` to represent url path
|
15
|
+
|
16
|
+
###### Example
|
17
|
+
|
18
|
+
```
|
19
|
+
|
20
|
+
const date = "Nov 18 - Nov 19";
|
21
|
+
const year = "2019";
|
22
|
+
const image = { url: "http://fpoimg.com/95x95" };
|
23
|
+
const industry = "Construction";
|
24
|
+
const industryLabel = "Industry";
|
25
|
+
const name = "Test Event Two";
|
26
|
+
const description =
|
27
|
+
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua consequat.";
|
28
|
+
const location = "Denver, CO";
|
29
|
+
const content = {
|
30
|
+
date,
|
31
|
+
year,
|
32
|
+
image,
|
33
|
+
industry,
|
34
|
+
industryLabel,
|
35
|
+
name,
|
36
|
+
location,
|
37
|
+
description,
|
38
|
+
link: { url: "/wut" }
|
39
|
+
};
|
40
|
+
|
41
|
+
return (
|
42
|
+
|
43
|
+
<EventCard content={content} />
|
44
|
+
)
|
45
|
+
|
46
|
+
```
|
@@ -0,0 +1,129 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
4
|
+
var _react = _interopRequireDefault(require("react"));
|
5
|
+
var _react2 = require("@storybook/react");
|
6
|
+
var _addonActions = require("@storybook/addon-actions");
|
7
|
+
var _FilterHero = _interopRequireDefault(require("./FilterHero"));
|
8
|
+
var theme1 = {
|
9
|
+
color: "#363545",
|
10
|
+
backgroundColor: "#ffffff"
|
11
|
+
};
|
12
|
+
var theme2 = {
|
13
|
+
color: "#363545",
|
14
|
+
backgroundColor: "#f9f9fb"
|
15
|
+
};
|
16
|
+
var theme3 = {
|
17
|
+
color: "#363545",
|
18
|
+
backgroundColor: "#eaeaef"
|
19
|
+
};
|
20
|
+
var theme4 = {
|
21
|
+
color: "#ffffff",
|
22
|
+
backgroundColor: "#005f9e"
|
23
|
+
};
|
24
|
+
var theme5 = {
|
25
|
+
color: "#ffffff",
|
26
|
+
backgroundColor: "#002d5b"
|
27
|
+
};
|
28
|
+
var header = "Filter Hero Header";
|
29
|
+
var text = "Consectetur labore do incididunt labore minim aute voluptate eiusmod nostrud reprehenderit ut ullamco consequat nisi. Voluptate officia qui et est labore quis tempor Lorem consectetur laboris fugiat.";
|
30
|
+
var dropdownOne = {
|
31
|
+
options: ["trade one", "trade two", "trade three"],
|
32
|
+
defaultText: "All",
|
33
|
+
name: "Trade"
|
34
|
+
};
|
35
|
+
var dropdownTwo = {
|
36
|
+
options: ["category one", "category two", "category three"],
|
37
|
+
defaultText: "All",
|
38
|
+
name: "Category"
|
39
|
+
};
|
40
|
+
var dropdowns = [dropdownOne, dropdownTwo];
|
41
|
+
var checkboxOne = {
|
42
|
+
name: "Checkbox One"
|
43
|
+
};
|
44
|
+
var checkboxTwo = {
|
45
|
+
name: "Checkbox Two"
|
46
|
+
};
|
47
|
+
var checkboxes = [checkboxOne, checkboxTwo];
|
48
|
+
|
49
|
+
// storiesOf("Not Yet Implemented/Filter Bar", module)
|
50
|
+
// .add("Filter Bar", () => {
|
51
|
+
// return (
|
52
|
+
// <FilterHero
|
53
|
+
// header={header}
|
54
|
+
// text={text}
|
55
|
+
// dropdowns={dropdowns}
|
56
|
+
// checkboxes={checkboxes}
|
57
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
58
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
59
|
+
// theme={theme1}
|
60
|
+
// />
|
61
|
+
// );
|
62
|
+
// })
|
63
|
+
// .add("Filter Bar w/ motion", () => {
|
64
|
+
// return (
|
65
|
+
// <FilterHero
|
66
|
+
// header={header}
|
67
|
+
// text={text}
|
68
|
+
// dropdowns={dropdowns}
|
69
|
+
// checkboxes={checkboxes}
|
70
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
71
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
72
|
+
// motion={true}
|
73
|
+
// motionDirection="bottom"
|
74
|
+
// theme={theme1}
|
75
|
+
// />
|
76
|
+
// );
|
77
|
+
// })
|
78
|
+
// .add("Filter Bar - Light Grey", () => {
|
79
|
+
// return (
|
80
|
+
// <FilterHero
|
81
|
+
// header={header}
|
82
|
+
// text={text}
|
83
|
+
// dropdowns={dropdowns}
|
84
|
+
// checkboxes={checkboxes}
|
85
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
86
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
87
|
+
// theme={theme2}
|
88
|
+
// />
|
89
|
+
// );
|
90
|
+
// })
|
91
|
+
// .add("Filter Bar - Dark Grey", () => {
|
92
|
+
// return (
|
93
|
+
// <FilterHero
|
94
|
+
// header={header}
|
95
|
+
// text={text}
|
96
|
+
// dropdowns={dropdowns}
|
97
|
+
// checkboxes={checkboxes}
|
98
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
99
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
100
|
+
// theme={theme3}
|
101
|
+
// />
|
102
|
+
// );
|
103
|
+
// })
|
104
|
+
// .add("Filter Bar - Trimble Mid Blue", () => {
|
105
|
+
// return (
|
106
|
+
// <FilterHero
|
107
|
+
// header={header}
|
108
|
+
// text={text}
|
109
|
+
// dropdowns={dropdowns}
|
110
|
+
// checkboxes={checkboxes}
|
111
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
112
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
113
|
+
// theme={theme4}
|
114
|
+
// />
|
115
|
+
// );
|
116
|
+
// })
|
117
|
+
// .add("Filter Bar - Dark Blue", () => {
|
118
|
+
// return (
|
119
|
+
// <FilterHero
|
120
|
+
// header={header}
|
121
|
+
// text={text}
|
122
|
+
// dropdowns={dropdowns}
|
123
|
+
// checkboxes={checkboxes}
|
124
|
+
// handleDropdownSelect={action("Dropdown Selected")}
|
125
|
+
// handleCheckboxChange={action("Checkbox Changed")}
|
126
|
+
// theme={theme5}
|
127
|
+
// />
|
128
|
+
// );
|
129
|
+
// });
|
@@ -0,0 +1,174 @@
|
|
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"] = exports.Default = void 0;
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
var _FilterSection = _interopRequireDefault(require("./FilterSection"));
|
10
|
+
var _CtaWithHeader = _interopRequireDefault(require("../CtaWithHeader/CtaWithHeader"));
|
11
|
+
// placeholder for parent state
|
12
|
+
var activeFilters = [{
|
13
|
+
name: "Content Type One",
|
14
|
+
value: "contentTypeOne",
|
15
|
+
id: "93123"
|
16
|
+
}, {
|
17
|
+
name: "Topic Two",
|
18
|
+
value: "topicTwo",
|
19
|
+
id: "143121313"
|
20
|
+
}, {
|
21
|
+
name: "Category Two",
|
22
|
+
value: "categoryTwo",
|
23
|
+
id: "1230"
|
24
|
+
}];
|
25
|
+
var filterOptionClickHandler = function filterOptionClickHandler(e, filter) {
|
26
|
+
e.stopPropagation();
|
27
|
+
console.log("Clicked on Option", filter);
|
28
|
+
};
|
29
|
+
var removeActiveFilterHandler = function removeActiveFilterHandler(e, filter) {
|
30
|
+
e.stopPropagation();
|
31
|
+
console.log("Removing filter: ", filter);
|
32
|
+
};
|
33
|
+
var clearAllFiltersHandler = function clearAllFiltersHandler(e) {
|
34
|
+
activeFilters = [];
|
35
|
+
console.log("Cleared all Filters");
|
36
|
+
};
|
37
|
+
var IntroSection = function IntroSection() {
|
38
|
+
return /*#__PURE__*/_react["default"].createElement(_CtaWithHeader["default"], {
|
39
|
+
eyebrow: "Eyebrow",
|
40
|
+
headline: "Filtering content",
|
41
|
+
subhead: null,
|
42
|
+
content: "<p>Anim aliquip aliqua aliqua™ id qui aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Commodo est ullamco pariatur ut nostrud pariatur. Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat.</p>"
|
43
|
+
});
|
44
|
+
};
|
45
|
+
var content = {
|
46
|
+
introSection: /*#__PURE__*/_react["default"].createElement(IntroSection, null),
|
47
|
+
filtersTitle: "Filter Content",
|
48
|
+
allFilters: [{
|
49
|
+
name: "Topics",
|
50
|
+
value: "topics",
|
51
|
+
id: "1234",
|
52
|
+
options: [{
|
53
|
+
name: "Topic One",
|
54
|
+
value: "topicOne",
|
55
|
+
id: "143123"
|
56
|
+
}, {
|
57
|
+
name: "Topic Two",
|
58
|
+
value: "topicTwo",
|
59
|
+
id: "143121313"
|
60
|
+
}, {
|
61
|
+
name: "Topic Three",
|
62
|
+
value: "topicThree",
|
63
|
+
id: "123312"
|
64
|
+
}, {
|
65
|
+
name: "Topic Four",
|
66
|
+
value: "topicFour",
|
67
|
+
id: "319876"
|
68
|
+
}]
|
69
|
+
}, {
|
70
|
+
name: "Industry",
|
71
|
+
value: "industry",
|
72
|
+
id: "143",
|
73
|
+
options: [{
|
74
|
+
name: "Industry One",
|
75
|
+
value: "industryOne",
|
76
|
+
id: "1431236"
|
77
|
+
}, {
|
78
|
+
name: "Industry Two",
|
79
|
+
value: "industryTwo",
|
80
|
+
id: "123"
|
81
|
+
}]
|
82
|
+
}, {
|
83
|
+
name: "Category",
|
84
|
+
value: "category",
|
85
|
+
id: "7171",
|
86
|
+
options: [{
|
87
|
+
name: "Category One",
|
88
|
+
value: "categoryOne",
|
89
|
+
id: "3123"
|
90
|
+
}, {
|
91
|
+
name: "Category Two",
|
92
|
+
value: "categoryTwo",
|
93
|
+
id: "1230"
|
94
|
+
}]
|
95
|
+
}, {
|
96
|
+
name: "Solutions",
|
97
|
+
value: "solution",
|
98
|
+
id: "412341651",
|
99
|
+
options: [{
|
100
|
+
name: "Solution One",
|
101
|
+
value: "solutionOne",
|
102
|
+
id: "432"
|
103
|
+
}, {
|
104
|
+
name: "Solution Two",
|
105
|
+
value: "solutionTwo",
|
106
|
+
id: "41413"
|
107
|
+
}, {
|
108
|
+
name: "Solution Three",
|
109
|
+
value: "solutionThree",
|
110
|
+
id: "93124"
|
111
|
+
}, {
|
112
|
+
name: "Solution Four",
|
113
|
+
value: "solutionFour",
|
114
|
+
id: "171"
|
115
|
+
}, {
|
116
|
+
name: "Solution Five",
|
117
|
+
value: "solutionFive",
|
118
|
+
id: "941312312143"
|
119
|
+
}, {
|
120
|
+
name: "Solution Six",
|
121
|
+
value: "solutionSix",
|
122
|
+
id: "3123"
|
123
|
+
}]
|
124
|
+
}, {
|
125
|
+
name: "Content Type",
|
126
|
+
value: "contentType",
|
127
|
+
id: "6143123",
|
128
|
+
options: [{
|
129
|
+
name: "Content Type One",
|
130
|
+
value: "contentTypeOne",
|
131
|
+
id: "93123"
|
132
|
+
}, {
|
133
|
+
name: "Content Type Two",
|
134
|
+
value: "contentTypeTwo",
|
135
|
+
id: "26263"
|
136
|
+
}, {
|
137
|
+
name: "Content Type Three",
|
138
|
+
value: "contentTypeThree",
|
139
|
+
id: "93124"
|
140
|
+
}, {
|
141
|
+
name: "Content Type Four",
|
142
|
+
value: "contentTypeFour",
|
143
|
+
id: "262631"
|
144
|
+
}, {
|
145
|
+
name: "Content Type Five",
|
146
|
+
value: "contentTypeFive",
|
147
|
+
id: "9312143"
|
148
|
+
}, {
|
149
|
+
name: "Content Type Six",
|
150
|
+
value: "contentTypeSix",
|
151
|
+
id: "2622263"
|
152
|
+
}]
|
153
|
+
}],
|
154
|
+
filterOptionClickHandler: filterOptionClickHandler,
|
155
|
+
clearAllFiltersHandler: clearAllFiltersHandler,
|
156
|
+
activeFilters: activeFilters,
|
157
|
+
removeActiveFilterHandler: removeActiveFilterHandler
|
158
|
+
};
|
159
|
+
var _default = {
|
160
|
+
component: _FilterSection["default"],
|
161
|
+
title: "MXP Components/Filter Section",
|
162
|
+
parameters: {
|
163
|
+
docs: {
|
164
|
+
// page: AccordionDocumentation,
|
165
|
+
}
|
166
|
+
}
|
167
|
+
};
|
168
|
+
exports["default"] = _default;
|
169
|
+
var Default = function Default() {
|
170
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_FilterSection["default"], {
|
171
|
+
content: content
|
172
|
+
}));
|
173
|
+
};
|
174
|
+
exports.Default = Default;
|
@@ -12,7 +12,6 @@ require("./Flyout.scss");
|
|
12
12
|
var _removeSpaces = require("../../utils/removeSpaces");
|
13
13
|
var _formatID = _interopRequireDefault(require("../../utils/formatID"));
|
14
14
|
var _externalArrowWhiteTheme = _interopRequireDefault(require("../../images/external-arrow-white-theme.svg"));
|
15
|
-
var _lodash = require("lodash");
|
16
15
|
var _useMouse2 = _interopRequireDefault(require("../../utils/hooks/useMouse"));
|
17
16
|
var _utilizeFocus = require("../../utils/utilizeFocus");
|
18
17
|
var _rightCaretLightGray = _interopRequireDefault(require("../../images/right-caret-light-gray.svg"));
|
@@ -125,7 +124,7 @@ var Flyout = function Flyout(_ref) {
|
|
125
124
|
className: "flyout-links__item",
|
126
125
|
key: index
|
127
126
|
}, /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
|
128
|
-
id: (0, _formatID["default"])("".concat(link === null || link === void 0 ? void 0 : link.text, "-flyout-link")),
|
127
|
+
id: (0, _formatID["default"])("".concat(link === null || link === void 0 ? void 0 : link.text, "-flyout-link-").concat((0, _react.useId)())),
|
129
128
|
tabIndex: mouse ? "" : "0",
|
130
129
|
key: "".concat(link === null || link === void 0 ? void 0 : link.text, "-").concat(index),
|
131
130
|
"aria-label": "link to ".concat(link === null || link === void 0 ? void 0 : link.text),
|
@@ -145,7 +144,7 @@ var Flyout = function Flyout(_ref) {
|
|
145
144
|
height: "20px",
|
146
145
|
width: "20px"
|
147
146
|
},
|
148
|
-
id: (0,
|
147
|
+
id: (0, _react.useId)(),
|
149
148
|
src: _externalArrowWhiteTheme["default"],
|
150
149
|
alt: "link to ".concat(link === null || link === void 0 ? void 0 : link.text)
|
151
150
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
@@ -180,7 +179,7 @@ var Flyout = function Flyout(_ref) {
|
|
180
179
|
src: _rightCaretLightGray["default"],
|
181
180
|
alt: "caret icon"
|
182
181
|
})), /*#__PURE__*/_react["default"].createElement(_terraOne.LunaLink, {
|
183
|
-
id: (0, _formatID["default"])("".concat(logo === null || logo === void 0 ? void 0 : logo.altText, "-flyout-logo-link")),
|
182
|
+
id: (0, _formatID["default"])("".concat(logo === null || logo === void 0 ? void 0 : logo.altText, "-flyout-logo-link-").concat((0, _react.useId)())),
|
184
183
|
tabIndex: mouse ? "" : "0",
|
185
184
|
"aria-label": "link to homepage",
|
186
185
|
to: logo === null || logo === void 0 ? void 0 : (_logo$link = logo.link) === null || _logo$link === void 0 ? void 0 : _logo$link.url,
|
@@ -215,7 +214,7 @@ var Flyout = function Flyout(_ref) {
|
|
215
214
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
216
215
|
className: "ter-flyout__search-text"
|
217
216
|
}, searchPlaceholder), /*#__PURE__*/_react["default"].createElement("img", {
|
218
|
-
id: (0,
|
217
|
+
id: (0, _react.useId)(),
|
219
218
|
src: _searchHighlighted["default"],
|
220
219
|
alt: "Search"
|
221
220
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|