luna-one 3.1.592 → 3.1.594
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/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.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 +1 -0
- 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/luna/{other-organisms → components}/Footer/GlobalFooter.js +4 -4
- 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 +1 -1
- 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.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 +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/FullSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +1 -1
- package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +1 -1
- package/dist/luna/components/MobileNav/MobileNav.js +2 -2
- package/dist/luna/components/NavBar/NavigationBar.stories.js +2297 -0
- package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -0
- package/dist/{application → luna}/components/NavBarHandler/NavBarHandler.js +1 -1
- package/dist/luna/components/NavBarTop/NavBarTop.js +2 -2
- 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/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.stories.js +46 -0
- package/dist/luna/{other-organisms → components}/SubNav/SiblingsMenu.js +3 -3
- package/dist/luna/{other-organisms → components}/SubNav/SubNav.js +2 -2
- 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.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/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 +2 -2
- 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/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/NavMiniMenu.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/NavOption.js +0 -0
- /package/dist/luna/{other-organisms → components}/NavBar/UtilityNav.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
@@ -0,0 +1,245 @@
|
|
1
|
+
#### NavBar
|
2
|
+
|
3
|
+
###### Notes -
|
4
|
+
|
5
|
+
This component uses the `react-slidedown` library for the innerpage navigation links in the `utilityNav`. The `link.url` string should be a reference to the name of the `<Element>` that wraps the corresponding organism that the window should scroll to.
|
6
|
+
|
7
|
+
This parent component consists of the `<NavBarTop />`, `<UtilityNav />`, `<NavSearch />`, `<Flyout />`, `<LanguageSelector />`, `<Login />`, and various menu components. All props are listed below.
|
8
|
+
|
9
|
+
###### Props -
|
10
|
+
|
11
|
+
- `rightLinks` - array of objects used for generating links to the right of the search icon. Each object requires `url` and `text` strings.
|
12
|
+
- `logo` **(required)** - object consisting of `url` and `altText` strings (for generating the logo image) in addition to a link object with a `url` string for generating the `href` property.
|
13
|
+
- `divisionName` **(required)** - string used for generating the name of the Trimble division that is to the right of the logo.
|
14
|
+
- `featuredLink` - object consisting of `url` and `text`. This will display on the far right of the main (middle) section.
|
15
|
+
- `isExpanded` - boolean that determines if navigation menus are displayed as collapsed hierarchies or expanded lists. If `isExpanded` is set to true, only one level of menu will be displayed (tertiary navigation items will be ignored). Additionally, if `isExpanded` is set to true, Luna will check for `imageUrl` and `description` keys on each link object. If seen, the image and description will display instead of text.
|
16
|
+
- `disableSectorFlyout` - boolean that determines if the sector fly-out menu is displayed.
|
17
|
+
- `disableSearch` - boolean that determines if the search input is displayed.
|
18
|
+
- `disableLanguageRegion` - boolean that determines if the language/region selector item is displayed.
|
19
|
+
- `disableLogin` - boolean that determines if the login item is displayed.
|
20
|
+
- `navOptions` - array of objects used for generating the main (middle) section of the nav. All objects will have a type indicating whether to render a `<MegaMenu />` (type = 'category'), a simple drop down of links `<MiniMenu />` (type = 'links'), or a single link `singleLink` (type = 'link'). See examples below on how to load up these objects. The `MegaMenu` can render a child both with and without subcategories. `MegaMenu` can also hold an array of `featuredLinks` with a corresponding `featuredLinksTitle`.
|
21
|
+
- `utilityNav` - object consisting of a `pageTitle` string as well as a `links` array of objects consisting of `text` and `url` strings. See example below.
|
22
|
+
- `currentLanguage` - object with `region` and `language` strings that indicate the current region and language selected.
|
23
|
+
- `languageSelectorData` - object consisting of data needed to populate the `LanguageSelector` component. See example below.
|
24
|
+
- `setLanguage` - method used to set the region and language, which it takes as string key/values in an object as an argument
|
25
|
+
- `location` - prop used to close the mobile menu when a user clicks on one of the rightLinks. In your project, pass in `location={this.props.location}`
|
26
|
+
- `searchComponent` - react component used to render the search input and results.
|
27
|
+
- `searchDeployed` - boolean that determines if the search modal is displayed on initial render.
|
28
|
+
- `setSearchDeployed` **(required)** - method used to set the search modal state.
|
29
|
+
|
30
|
+
###### Example -
|
31
|
+
|
32
|
+
```
|
33
|
+
const rightLinks = [
|
34
|
+
{
|
35
|
+
url: "/link",
|
36
|
+
text: "Contact Us",
|
37
|
+
}
|
38
|
+
];
|
39
|
+
|
40
|
+
const logo = {
|
41
|
+
url: Logo (should be imported in the application),
|
42
|
+
altText: 'Trimble Logo',
|
43
|
+
link: {
|
44
|
+
url: 'www.trimble.com'
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
const divisionName = 'Geospatial';
|
49
|
+
const location = 'N. America';
|
50
|
+
|
51
|
+
const location = this.props.location
|
52
|
+
|
53
|
+
const utilityNav = {
|
54
|
+
pageTitle: "Trimble Accubid Enterprise",
|
55
|
+
links: [
|
56
|
+
{
|
57
|
+
text: "Product Anchor One",
|
58
|
+
url: "/#"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
text: "Product Anchor Two",
|
62
|
+
url: "/#"
|
63
|
+
}
|
64
|
+
]
|
65
|
+
};
|
66
|
+
|
67
|
+
const megaMenu = {
|
68
|
+
type: "category",
|
69
|
+
text: "Products",
|
70
|
+
featuredLinksTitle: "Featured Links",
|
71
|
+
featuredLinks: [
|
72
|
+
{
|
73
|
+
url: "/#products",
|
74
|
+
text: "All Products",
|
75
|
+
},
|
76
|
+
{
|
77
|
+
url: "/1",
|
78
|
+
text: "What's New",
|
79
|
+
},
|
80
|
+
],
|
81
|
+
links: [
|
82
|
+
{
|
83
|
+
text: "Mechanical",
|
84
|
+
links: [
|
85
|
+
{
|
86
|
+
url: "/#",
|
87
|
+
text: "BIM Collaboration"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
url: "/#",
|
91
|
+
text: "MEP Content"
|
92
|
+
}
|
93
|
+
]
|
94
|
+
},
|
95
|
+
{
|
96
|
+
text: "Electrical",
|
97
|
+
links: [
|
98
|
+
{
|
99
|
+
url: "/#",
|
100
|
+
text: "Design/Detailing"
|
101
|
+
},
|
102
|
+
{
|
103
|
+
url: "/#",
|
104
|
+
text: "Project Management"
|
105
|
+
}
|
106
|
+
]
|
107
|
+
},
|
108
|
+
{
|
109
|
+
text: "Plumbing",
|
110
|
+
link: {url: "/#"}
|
111
|
+
},
|
112
|
+
]
|
113
|
+
};
|
114
|
+
|
115
|
+
const miniMenus = [
|
116
|
+
{
|
117
|
+
type: "links",
|
118
|
+
text: "Services",
|
119
|
+
links: [
|
120
|
+
{
|
121
|
+
url: "/#",
|
122
|
+
text: "Link One"
|
123
|
+
},
|
124
|
+
{
|
125
|
+
url: "/#",
|
126
|
+
text: "Link Two"
|
127
|
+
}
|
128
|
+
]
|
129
|
+
},
|
130
|
+
{
|
131
|
+
type: "links",
|
132
|
+
text: "Resources",
|
133
|
+
links: [
|
134
|
+
{
|
135
|
+
url: "/#",
|
136
|
+
text: "Link One"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
url: "/#",
|
140
|
+
text: "Link Two"
|
141
|
+
}
|
142
|
+
]
|
143
|
+
}
|
144
|
+
];
|
145
|
+
|
146
|
+
const singleLink = {
|
147
|
+
type: "link",
|
148
|
+
url: "/#",
|
149
|
+
text: "Process"
|
150
|
+
};
|
151
|
+
|
152
|
+
const languageSelectorData = {
|
153
|
+
labels: {
|
154
|
+
currentRegion: "Current Region",
|
155
|
+
cancel: "Cancel",
|
156
|
+
save: "Save"
|
157
|
+
},
|
158
|
+
regions: [
|
159
|
+
{
|
160
|
+
region: "North America",
|
161
|
+
languages: [
|
162
|
+
"EN: English (US)",
|
163
|
+
"EN-UK: English (UK)",
|
164
|
+
"FR: French",
|
165
|
+
"DE: German",
|
166
|
+
"NL: Dutch"
|
167
|
+
]
|
168
|
+
},
|
169
|
+
{
|
170
|
+
region: "UK and Middle East",
|
171
|
+
languages: [
|
172
|
+
"EN: English (US)",
|
173
|
+
"EN-UK: English (UK)",
|
174
|
+
"FR: French",
|
175
|
+
"DE: German",
|
176
|
+
"NL: Dutch"
|
177
|
+
]
|
178
|
+
},
|
179
|
+
{
|
180
|
+
region: "France",
|
181
|
+
languages: [
|
182
|
+
"EN: English (US)",
|
183
|
+
"EN-UK: English (UK)",
|
184
|
+
"FR: French",
|
185
|
+
"DE: German",
|
186
|
+
"NL: Dutch"
|
187
|
+
]
|
188
|
+
},
|
189
|
+
{
|
190
|
+
region: "Germany and Austria",
|
191
|
+
languages: [
|
192
|
+
"EN: English (US)",
|
193
|
+
"EN-UK: English (UK)",
|
194
|
+
"FR: French",
|
195
|
+
"DE: German",
|
196
|
+
"NL: Dutch"
|
197
|
+
]
|
198
|
+
},
|
199
|
+
{
|
200
|
+
region: "Switzerland",
|
201
|
+
languages: [
|
202
|
+
"EN: English (US)",
|
203
|
+
"EN-UK: English (UK)",
|
204
|
+
"FR: French",
|
205
|
+
"DE: German",
|
206
|
+
"NL: Dutch"
|
207
|
+
]
|
208
|
+
}
|
209
|
+
],
|
210
|
+
currentRegionLanguage: {
|
211
|
+
region: "UK and Middle East",
|
212
|
+
language: "EN-UK"
|
213
|
+
},
|
214
|
+
|
215
|
+
activeRegion: {
|
216
|
+
region: "UK and Middle East",
|
217
|
+
language: "EN: English"
|
218
|
+
},
|
219
|
+
|
220
|
+
companyDivision: "MEP"
|
221
|
+
|
222
|
+
};
|
223
|
+
|
224
|
+
|
225
|
+
return (
|
226
|
+
<NavBar
|
227
|
+
location={location}
|
228
|
+
rightLinks={rightLinks}
|
229
|
+
currentLanguage={{ region: "N. America", language: "EN: English" }}
|
230
|
+
logo={logo}
|
231
|
+
divisionName="MEP"
|
232
|
+
navCTA={navCTA}
|
233
|
+
navOptions={[megaMenu, ...miniMenus, singleLink]}
|
234
|
+
utilityNav={utilityNav}
|
235
|
+
languageSelectorData={languageSelectorData}
|
236
|
+
isExpanded={false}
|
237
|
+
disableSectorFlyOut={false}
|
238
|
+
disableSearch={false}
|
239
|
+
disableLanguageRegion={false}
|
240
|
+
disableSectorFlyOut={true}
|
241
|
+
disableLogin={true}
|
242
|
+
/>
|
243
|
+
)
|
244
|
+
|
245
|
+
```
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
exports["default"] = void 0;
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
11
|
-
var _NavBar = _interopRequireDefault(require("
|
11
|
+
var _NavBar = _interopRequireDefault(require("../NavBar/NavBar"));
|
12
12
|
var NavBarHandler = function NavBarHandler(_ref) {
|
13
13
|
var _navCTAOverride$link, _navCTAOverride$link2;
|
14
14
|
var data = _ref.data,
|
@@ -13,10 +13,10 @@ var _iconSearch = _interopRequireDefault(require("../../images/icon-search.svg")
|
|
13
13
|
var _formatID = _interopRequireDefault(require("../../utils/formatID"));
|
14
14
|
var _lodash = require("lodash");
|
15
15
|
var _utilizeFocus = require("../../utils/utilizeFocus");
|
16
|
-
var _NavBar = require("
|
16
|
+
var _NavBar = require("../NavBar/NavBar");
|
17
17
|
var _terraOne = require("terra-one");
|
18
18
|
var _NavSearch = _interopRequireDefault(require("../NavSearch/NavSearch"));
|
19
|
-
var _LanguageSelector = _interopRequireDefault(require("
|
19
|
+
var _LanguageSelector = _interopRequireDefault(require("../LanguageSelector/LanguageSelector"));
|
20
20
|
var NavBarTop = function NavBarTop(props) {
|
21
21
|
var _languageSelectorData, _languageSelectorData2, _languageSelectorData3;
|
22
22
|
var searchField = props.searchField,
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
exports["default"] = void 0;
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
require("./NavSearch.scss");
|
10
|
-
var _closeBlue = _interopRequireDefault(require("
|
10
|
+
var _closeBlue = _interopRequireDefault(require("../../images/close-blue.svg"));
|
11
11
|
var NavSearch = function NavSearch(_ref) {
|
12
12
|
var deployed = _ref.deployed,
|
13
13
|
searchComponent = _ref.searchComponent,
|
@@ -0,0 +1,118 @@
|
|
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.ShortDescriptionNoImage = exports.ShortDescriptionGrouped = exports.ShortDescription = exports.LongDescription = void 0;
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
var _NonTimeBasedListEntries = _interopRequireDefault(require("./NonTimeBasedListEntries"));
|
10
|
+
var _NonTimeBasedListEntriesDocumentation = _interopRequireDefault(require("./NonTimeBasedListEntriesDocumentation.mdx"));
|
11
|
+
var sidebarImage = {
|
12
|
+
focalPointImage: {
|
13
|
+
height: 4000,
|
14
|
+
title: "dog",
|
15
|
+
url: "//images.ctfassets.net/citn2sn5tdjr/1VxW40ovs5rgwQVMGnB5vu/4e355963c7782b6e5d30d8cd64642e9e/board-of-directors-pattern3-400x1280.jpg",
|
16
|
+
width: 6000,
|
17
|
+
x: 0,
|
18
|
+
y: 0
|
19
|
+
},
|
20
|
+
alt: "Dog"
|
21
|
+
};
|
22
|
+
var placeHolderEntry1 = {
|
23
|
+
eyebrow: "Test Eyebrow",
|
24
|
+
header: "NO LINK HERE®",
|
25
|
+
subhead: "Test Subhead",
|
26
|
+
customAriaLabel: "Custom Aria Label",
|
27
|
+
image: {
|
28
|
+
focalPointImage: {
|
29
|
+
height: 240,
|
30
|
+
title: "test thumbnail image",
|
31
|
+
url: "https://picsum.photos/240",
|
32
|
+
width: 240,
|
33
|
+
x: 0,
|
34
|
+
y: 0
|
35
|
+
},
|
36
|
+
alt: "test thumbnail image"
|
37
|
+
},
|
38
|
+
summary: "<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src=\"/\">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>",
|
39
|
+
industryCategory: "Test Industry",
|
40
|
+
groupingCategory: "Test Category Group 1",
|
41
|
+
role: "test role"
|
42
|
+
};
|
43
|
+
var placeHolderEntry2 = {
|
44
|
+
eyebrow: "Test Eyebrow",
|
45
|
+
header: "Test Header",
|
46
|
+
subhead: "Test Subhead",
|
47
|
+
link: {
|
48
|
+
url: "/",
|
49
|
+
text: "Test Link Two"
|
50
|
+
},
|
51
|
+
customAriaLabel: "Custom Aria Label",
|
52
|
+
image: {
|
53
|
+
focalPointImage: {
|
54
|
+
height: 240,
|
55
|
+
title: "dog",
|
56
|
+
url: "https://picsum.photos/240",
|
57
|
+
width: 240,
|
58
|
+
x: 0,
|
59
|
+
y: 0
|
60
|
+
}
|
61
|
+
},
|
62
|
+
alt: "test thumbnail image",
|
63
|
+
summary: "<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src=\"/\">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>",
|
64
|
+
industryCategory: "Test Industry",
|
65
|
+
groupingCategory: "Test Category Group 2",
|
66
|
+
role: "test role"
|
67
|
+
};
|
68
|
+
var placeHolderEntry3 = {
|
69
|
+
eyebrow: "Test Eyebrow",
|
70
|
+
header: "Test Header",
|
71
|
+
subhead: "Test Subhead",
|
72
|
+
summary: "<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src=\"/\">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>",
|
73
|
+
industryCategory: "Test Industry",
|
74
|
+
role: "test role"
|
75
|
+
};
|
76
|
+
var entries = [placeHolderEntry1, placeHolderEntry1, placeHolderEntry2, placeHolderEntry1, placeHolderEntry2, placeHolderEntry2, placeHolderEntry3, placeHolderEntry3];
|
77
|
+
var _default = {
|
78
|
+
component: _NonTimeBasedListEntries["default"],
|
79
|
+
title: "MXP Components/Non Time Based List Entries",
|
80
|
+
parameters: {
|
81
|
+
docs: {
|
82
|
+
page: _NonTimeBasedListEntriesDocumentation["default"]
|
83
|
+
}
|
84
|
+
}
|
85
|
+
};
|
86
|
+
exports["default"] = _default;
|
87
|
+
var ShortDescription = function ShortDescription() {
|
88
|
+
return /*#__PURE__*/_react["default"].createElement(_NonTimeBasedListEntries["default"], {
|
89
|
+
variant: "short-description",
|
90
|
+
sidebarImage: sidebarImage,
|
91
|
+
entries: entries
|
92
|
+
});
|
93
|
+
};
|
94
|
+
exports.ShortDescription = ShortDescription;
|
95
|
+
var ShortDescriptionGrouped = function ShortDescriptionGrouped() {
|
96
|
+
return /*#__PURE__*/_react["default"].createElement(_NonTimeBasedListEntries["default"], {
|
97
|
+
variant: "short-description",
|
98
|
+
sidebarImage: sidebarImage,
|
99
|
+
entries: entries,
|
100
|
+
groupEntries: true
|
101
|
+
});
|
102
|
+
};
|
103
|
+
exports.ShortDescriptionGrouped = ShortDescriptionGrouped;
|
104
|
+
var ShortDescriptionNoImage = function ShortDescriptionNoImage() {
|
105
|
+
return /*#__PURE__*/_react["default"].createElement(_NonTimeBasedListEntries["default"], {
|
106
|
+
variant: "short-description",
|
107
|
+
entries: entries,
|
108
|
+
groupEntries: true
|
109
|
+
});
|
110
|
+
};
|
111
|
+
exports.ShortDescriptionNoImage = ShortDescriptionNoImage;
|
112
|
+
var LongDescription = function LongDescription() {
|
113
|
+
return /*#__PURE__*/_react["default"].createElement(_NonTimeBasedListEntries["default"], {
|
114
|
+
variant: "long-description",
|
115
|
+
entries: entries
|
116
|
+
});
|
117
|
+
};
|
118
|
+
exports.LongDescription = LongDescription;
|
@@ -0,0 +1,89 @@
|
|
1
|
+
#### Non Time Based List Entries
|
2
|
+
|
3
|
+
###### Props -
|
4
|
+
|
5
|
+
- `variant` - string that determines the list entries appearance (either short-description or long-description)
|
6
|
+
- `sidebarImage` - object containing the sidebar image information
|
7
|
+
- `src` - string containing the sidebar image source
|
8
|
+
- `alt` - string containing the sidebar image alt text
|
9
|
+
- `groupEntries` - boolean determining if short-description entries will be grouped
|
10
|
+
- `entries` - array of objects containing list entry information
|
11
|
+
- `eyebrow` - string containing the entry eyebrow text
|
12
|
+
- `header` - string containing the entry header text
|
13
|
+
- `subhead` - string containing the entry subhead text
|
14
|
+
- `link` - link object containing text and url:
|
15
|
+
- `url` - string for link url
|
16
|
+
- `text` - string for link text
|
17
|
+
- `customAriaLabel` - string containing the entry link aria label
|
18
|
+
- `image` - object containing the entry image
|
19
|
+
- `src` - string containing the image source
|
20
|
+
- `alt` - string containing the image alt text
|
21
|
+
- `summary` - HTML DOM string to be used as the entry description
|
22
|
+
- `industryCategory` - string containing the entry industry or category
|
23
|
+
- `groupingCategory` - string containing the entry grouping category (used when groupEntries is set to true)
|
24
|
+
- `role` - string containing the entry role text
|
25
|
+
- `paddingClass` - string containing the name of the padding class to be inserted into the wrapper
|
26
|
+
|
27
|
+
###### Example -
|
28
|
+
|
29
|
+
```
|
30
|
+
let sidebarImage = {
|
31
|
+
src: "https://picsum.photos/320/943",
|
32
|
+
alt: "Sidebar Image",
|
33
|
+
}
|
34
|
+
|
35
|
+
let placeHolderEntry1 = {
|
36
|
+
eyebrow: "Test Eyebrow",
|
37
|
+
header: "Test Header",
|
38
|
+
subhead: "Test Subhead",
|
39
|
+
link: "/",
|
40
|
+
customAriaLabel: "Custom Aria Label",
|
41
|
+
image: {
|
42
|
+
src: "https://picsum.photos/240",
|
43
|
+
alt: "test thumbnail image",
|
44
|
+
},
|
45
|
+
summary: `<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src="/">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>`,
|
46
|
+
industryCategory: "Test Industry",
|
47
|
+
groupingCategory: "Test Category Group 1",
|
48
|
+
role: "test role",
|
49
|
+
}
|
50
|
+
|
51
|
+
let placeHolderEntry2 = {
|
52
|
+
eyebrow: "Test Eyebrow",
|
53
|
+
header: "Test Header",
|
54
|
+
subhead: "Test Subhead",
|
55
|
+
link: "/",
|
56
|
+
customAriaLabel: "Custom Aria Label",
|
57
|
+
image: {
|
58
|
+
src: "https://picsum.photos/240",
|
59
|
+
alt: "test thumbnail image"
|
60
|
+
},
|
61
|
+
summary: `<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src="/">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>`,
|
62
|
+
industryCategory: "Test Industry",
|
63
|
+
groupingCategory: "Test Category Group 2",
|
64
|
+
role: "test role",
|
65
|
+
}
|
66
|
+
|
67
|
+
let placeHolderEntry3 = {
|
68
|
+
eyebrow: "Test Eyebrow",
|
69
|
+
header: "Test Header",
|
70
|
+
subhead: "Test Subhead",
|
71
|
+
summary: `<p>Short bio can have a limit on the character count. Aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales. Et, <a src="/">pellentesque sed natoque</a> sit. Ut vitae id feugiat ornare amet. In faucibus elit turpis lacus potenti tincidunt lectus leo.</p><p>Commodo est ullamco pariatur ut nostrud pariatur. Condimentum eu nulla consequat sed eget. Accumsan, sed consectetur molestie diam urna etiam sem enim. A orci tincidunt lectus semper morbi sit quis leo. Faucibus mattis egestas turpis tempor senectus mauris tellus lacus sodales.</p>`,
|
72
|
+
industryCategory: "Test Industry",
|
73
|
+
role: "test role",
|
74
|
+
}
|
75
|
+
|
76
|
+
let entries = [placeHolderEntry1, placeHolderEntry2, placeHolderEntry3]
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
return (
|
81
|
+
<NonTimeBasedListEntries
|
82
|
+
variant="short-description"
|
83
|
+
sidebarImage={sidebarImage}
|
84
|
+
entries={entries}
|
85
|
+
groupEntries={true}
|
86
|
+
paddingClass="test-padding-class"
|
87
|
+
/>
|
88
|
+
);
|
89
|
+
```
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
});
|
8
8
|
exports.ShortDescriptionCardWrapper = exports.ShortDescriptionCard = exports.LongDescriptionCard = exports.Group = exports.CalculatePageLimit = exports.CalculateGroupedEntriesTotal = void 0;
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
10
|
-
var _trimble_logo = _interopRequireDefault(require("
|
10
|
+
var _trimble_logo = _interopRequireDefault(require("../../images/trimble_logo.png"));
|
11
11
|
var _checkForExternalLink = _interopRequireDefault(require("../../utils/checkForExternalLink"));
|
12
12
|
var _terraOne = require("terra-one");
|
13
13
|
var _formatSpecialCharText = _interopRequireDefault(require("../../utils/formatSpecialCharText"));
|
@@ -0,0 +1,96 @@
|
|
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.ShortText = exports.OverMaxText = exports.MaxTextLink = exports.MaxText = void 0;
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
9
|
+
var _OverlayNotice = _interopRequireDefault(require("./OverlayNotice"));
|
10
|
+
var _OverlayNoticeDocumentation = _interopRequireDefault(require("./OverlayNoticeDocumentation.mdx"));
|
11
|
+
var _addonActions = require("@storybook/addon-actions");
|
12
|
+
var _default = {
|
13
|
+
component: _OverlayNotice["default"],
|
14
|
+
title: "MXP Components/Overlay Notice",
|
15
|
+
parameters: {
|
16
|
+
docs: {
|
17
|
+
page: _OverlayNoticeDocumentation["default"]
|
18
|
+
}
|
19
|
+
}
|
20
|
+
};
|
21
|
+
exports["default"] = _default;
|
22
|
+
var shortHeader = "Register for Dimensions 2022®";
|
23
|
+
var header = "Dimensions 2022 registration is now open®";
|
24
|
+
var longHeader = "This is a very long header. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur molestie.®";
|
25
|
+
var shortButton = {
|
26
|
+
text: "Register",
|
27
|
+
url: "/"
|
28
|
+
};
|
29
|
+
var button = {
|
30
|
+
text: "Register Now",
|
31
|
+
url: "/"
|
32
|
+
};
|
33
|
+
var buttonExternal = {
|
34
|
+
text: "Register Now",
|
35
|
+
url: "https://www.google.com",
|
36
|
+
external: true
|
37
|
+
};
|
38
|
+
var longButton = {
|
39
|
+
text: "This is exceptionally long button text",
|
40
|
+
url: "/"
|
41
|
+
};
|
42
|
+
var ShortContent = function ShortContent() {
|
43
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", null, "Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est sint laborum."));
|
44
|
+
};
|
45
|
+
var ContentNoLink = function ContentNoLink() {
|
46
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", null, "Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat."));
|
47
|
+
};
|
48
|
+
var ContentWithLink = function ContentWithLink() {
|
49
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", null, "Early-bird registrants now receive VIP access Day 1 of the event. View", " "), /*#__PURE__*/_react["default"].createElement("a", {
|
50
|
+
href: "/"
|
51
|
+
}, "Conference Details"), /*#__PURE__*/_react["default"].createElement("p", null, ". "));
|
52
|
+
};
|
53
|
+
var VeryLongContent = function VeryLongContent() {
|
54
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", null, "Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. 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."), /*#__PURE__*/_react["default"].createElement("p", null, "Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est sint laborum. Cillum et laboris aliquip consequat. Consectetur commodo nisi laborum voluptate. 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."));
|
55
|
+
};
|
56
|
+
var _handleClose = (0, _addonActions.action)("Banner dismissed");
|
57
|
+
var ShortText = function ShortText() {
|
58
|
+
return /*#__PURE__*/_react["default"].createElement(_OverlayNotice["default"], {
|
59
|
+
header: shortHeader,
|
60
|
+
button: shortButton,
|
61
|
+
details: /*#__PURE__*/_react["default"].createElement(ShortContent, null),
|
62
|
+
handleClose: _handleClose
|
63
|
+
});
|
64
|
+
};
|
65
|
+
exports.ShortText = ShortText;
|
66
|
+
ShortText.storyName = "Character count is below recommneded max ";
|
67
|
+
var MaxText = function MaxText() {
|
68
|
+
return /*#__PURE__*/_react["default"].createElement(_OverlayNotice["default"], {
|
69
|
+
header: header,
|
70
|
+
button: button,
|
71
|
+
details: /*#__PURE__*/_react["default"].createElement(ContentNoLink, null),
|
72
|
+
handleClose: _handleClose
|
73
|
+
});
|
74
|
+
};
|
75
|
+
exports.MaxText = MaxText;
|
76
|
+
MaxText.storyName = "Character count Recommended max ";
|
77
|
+
var MaxTextLink = function MaxTextLink() {
|
78
|
+
return /*#__PURE__*/_react["default"].createElement(_OverlayNotice["default"], {
|
79
|
+
header: header,
|
80
|
+
button: buttonExternal,
|
81
|
+
details: /*#__PURE__*/_react["default"].createElement(ContentWithLink, null),
|
82
|
+
handleClose: _handleClose
|
83
|
+
});
|
84
|
+
};
|
85
|
+
exports.MaxTextLink = MaxTextLink;
|
86
|
+
MaxTextLink.storyName = "Recommended max character count with link";
|
87
|
+
var OverMaxText = function OverMaxText() {
|
88
|
+
return /*#__PURE__*/_react["default"].createElement(_OverlayNotice["default"], {
|
89
|
+
header: longHeader,
|
90
|
+
button: longButton,
|
91
|
+
details: /*#__PURE__*/_react["default"].createElement(VeryLongContent, null),
|
92
|
+
handleClose: _handleClose
|
93
|
+
});
|
94
|
+
};
|
95
|
+
exports.OverMaxText = OverMaxText;
|
96
|
+
OverMaxText.storyName = "Recommended max character count exceeded";
|
@@ -0,0 +1,45 @@
|
|
1
|
+
#### Overlay Notice
|
2
|
+
|
3
|
+
###### Props -
|
4
|
+
|
5
|
+
- `header` - string containing the headline text.
|
6
|
+
- `button` - object containing the following properties:
|
7
|
+
- `url` - string containing the url that opens when the button is clicked.
|
8
|
+
- `text` - string containing the button text.
|
9
|
+
- `external` - boolean that determines if the link is external. If true, the 'external arrow' icon will render.
|
10
|
+
`details` - react component that renders the html for the details section. The styling of this component is equipped to handle `<p>` and `<a>` tags.
|
11
|
+
- `handleClose` - function that is called when the close button is pressed.
|
12
|
+
|
13
|
+
###### Example -
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
const shortHeader = "Register for Dimensions 2022";
|
18
|
+
|
19
|
+
const shortButton = {
|
20
|
+
text: "Register",
|
21
|
+
url: "/",
|
22
|
+
};
|
23
|
+
|
24
|
+
const ShortContent = () => (
|
25
|
+
<>
|
26
|
+
<p>
|
27
|
+
Anim aliquip aliqua aliqua id qui aute anim reprehenderit tempor velit est
|
28
|
+
sint laborum.
|
29
|
+
</p>
|
30
|
+
</>
|
31
|
+
);
|
32
|
+
|
33
|
+
const handleClose = () => {
|
34
|
+
console.log('Banner dismissed!');
|
35
|
+
}
|
36
|
+
|
37
|
+
return (
|
38
|
+
<OverlayNotice
|
39
|
+
header={shortHeader}
|
40
|
+
button={shortButton}
|
41
|
+
details={<ShortContent />}
|
42
|
+
handleClose={handleClose}
|
43
|
+
/>
|
44
|
+
);
|
45
|
+
```
|