@explorer-1/vue 0.0.0
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/LICENSE +21 -0
- package/README.md +9 -0
- package/components.d.ts +215 -0
- package/index.html +18 -0
- package/lib/main.ts +78 -0
- package/package.json +54 -0
- package/postcss.config.js +7 -0
- package/public/edu/.gitkeep +0 -0
- package/public/edu/explorer-1/bg-stars-edu.png +0 -0
- package/public/edu/explorer-1/bg-stars.jpg +0 -0
- package/public/explorer-1/bg-stars-edu.png +0 -0
- package/public/explorer-1/bg-stars.jpg +0 -0
- package/src/App.vue +30 -0
- package/src/assets/fonts/README.md +12 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
- package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
- package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
- package/src/assets/scss/styles.scss +1 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
- package/src/components/BackToTop/BackToTop.stories.js +24 -0
- package/src/components/BackToTop/BackToTop.vue +76 -0
- package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
- package/src/components/BaseAudio/BaseAudio.vue +359 -0
- package/src/components/BaseButton/BaseButton.stories.ts +65 -0
- package/src/components/BaseButton/BaseButton.vue +114 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
- package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
- package/src/components/BaseHeading/BaseHeading.vue +58 -0
- package/src/components/BaseImage/BaseImage.stories.ts +52 -0
- package/src/components/BaseImage/BaseImage.vue +120 -0
- package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
- package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
- package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
- package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
- package/src/components/BaseLink/BaseLink.stories.js +47 -0
- package/src/components/BaseLink/BaseLink.vue +227 -0
- package/src/components/BaseModal/BaseModal.stories.js +90 -0
- package/src/components/BaseModal/BaseModal.vue +54 -0
- package/src/components/BaseModal/BaseModalDialog.vue +59 -0
- package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
- package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
- package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
- package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
- package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
- package/src/components/BaseTag/BaseTag.stories.js +34 -0
- package/src/components/BaseTag/BaseTag.vue +36 -0
- package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
- package/src/components/BaseTimer/BaseTimer.test.js +15 -0
- package/src/components/BaseTimer/BaseTimer.vue +270 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
- package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
- package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
- package/src/components/BaseVideo/BaseVideo.vue +73 -0
- package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
- package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
- package/src/components/BlockAudio/BlockAudio.vue +78 -0
- package/src/components/BlockCard/BlockCard.stories.js +24 -0
- package/src/components/BlockCard/BlockCard.vue +88 -0
- package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
- package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
- package/src/components/BlockCta/BlockCta.stories.js +35 -0
- package/src/components/BlockCta/BlockCta.vue +55 -0
- package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
- package/src/components/BlockHeading/BlockHeading.vue +27 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
- package/src/components/BlockImage/BlockImage.stories.js +137 -0
- package/src/components/BlockImage/BlockImage.vue +48 -0
- package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
- package/src/components/BlockImage/BlockImageStandard.vue +106 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
- package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
- package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
- package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
- package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
- package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
- package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
- package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
- package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
- package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
- package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
- package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
- package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
- package/src/components/BlockListCards/BlockListCards.vue +129 -0
- package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
- package/src/components/BlockQuote/BlockQuote.vue +87 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
- package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
- package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
- package/src/components/BlockTable/BlockTable.stories.js +20 -0
- package/src/components/BlockTable/BlockTable.vue +73 -0
- package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
- package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
- package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
- package/src/components/BlockText/BlockText.stories.js +21 -0
- package/src/components/BlockText/BlockText.vue +44 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
- package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
- package/src/components/BlockVideo/BlockVideo.vue +41 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
- package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
- package/src/components/CalendarButton/CalendarButton.vue +86 -0
- package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
- package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
- package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
- package/src/components/DsnWidget/DsnWidget.vue +96 -0
- package/src/components/EventCard/EventCard.vue +188 -0
- package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
- package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
- package/src/components/FormContact/FormContact.stories.js +16 -0
- package/src/components/FormContact/FormContact.vue +202 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
- package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
- package/src/components/HeroLarge/HeroLarge.vue +93 -0
- package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
- package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
- package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
- package/src/components/HeroMedia/HeroMedia.vue +174 -0
- package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
- package/src/components/HeroMedium/HeroMedium.vue +166 -0
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
- package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
- package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
- package/src/components/HomepageStats/HomepageStats.vue +362 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
- package/src/components/Icons/Icon360.vue +29 -0
- package/src/components/Icons/IconArrow.vue +26 -0
- package/src/components/Icons/IconArrows.vue +43 -0
- package/src/components/Icons/IconAudio.vue +27 -0
- package/src/components/Icons/IconBook.vue +21 -0
- package/src/components/Icons/IconBookUser.vue +21 -0
- package/src/components/Icons/IconBriefcase.vue +21 -0
- package/src/components/Icons/IconCalendar.vue +25 -0
- package/src/components/Icons/IconCaret.vue +26 -0
- package/src/components/Icons/IconCheckbox.vue +26 -0
- package/src/components/Icons/IconCheckboxSelected.vue +35 -0
- package/src/components/Icons/IconClose.vue +27 -0
- package/src/components/Icons/IconCloseLightbox.vue +25 -0
- package/src/components/Icons/IconDownload.vue +31 -0
- package/src/components/Icons/IconDropdown.vue +25 -0
- package/src/components/Icons/IconEnvelope.vue +21 -0
- package/src/components/Icons/IconExpand.vue +28 -0
- package/src/components/Icons/IconExternal.vue +25 -0
- package/src/components/Icons/IconFilter.vue +25 -0
- package/src/components/Icons/IconForwardTen.vue +38 -0
- package/src/components/Icons/IconGrid.vue +25 -0
- package/src/components/Icons/IconHand.vue +21 -0
- package/src/components/Icons/IconInfo.vue +26 -0
- package/src/components/Icons/IconLink.vue +27 -0
- package/src/components/Icons/IconList.vue +25 -0
- package/src/components/Icons/IconLocation.vue +37 -0
- package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
- package/src/components/Icons/IconMedal.vue +21 -0
- package/src/components/Icons/IconMenu.vue +27 -0
- package/src/components/Icons/IconMinus.vue +26 -0
- package/src/components/Icons/IconMute.vue +27 -0
- package/src/components/Icons/IconNext.vue +25 -0
- package/src/components/Icons/IconPause.vue +28 -0
- package/src/components/Icons/IconPlay.vue +28 -0
- package/src/components/Icons/IconPlus.vue +25 -0
- package/src/components/Icons/IconPrev.vue +25 -0
- package/src/components/Icons/IconRewindTen.vue +42 -0
- package/src/components/Icons/IconSearch.vue +25 -0
- package/src/components/Icons/IconShare.vue +30 -0
- package/src/components/Icons/IconSlideshow.vue +30 -0
- package/src/components/Icons/IconSocialEmail.vue +26 -0
- package/src/components/Icons/IconSocialFacebook.vue +26 -0
- package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
- package/src/components/Icons/IconSocialInstagram.vue +35 -0
- package/src/components/Icons/IconSocialPinterest.vue +26 -0
- package/src/components/Icons/IconSocialReddit.vue +25 -0
- package/src/components/Icons/IconSocialTwitter.vue +25 -0
- package/src/components/Icons/IconSocialYoutube.vue +35 -0
- package/src/components/Icons/IconStop.vue +27 -0
- package/src/components/Icons/IconTime.vue +25 -0
- package/src/components/Icons/IconUniversity.vue +21 -0
- package/src/components/Icons/IconUser.vue +26 -0
- package/src/components/Icons/IconVolume.vue +27 -0
- package/src/components/Icons/Icons.stories.ts +440 -0
- package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
- package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
- package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
- package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
- package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
- package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
- package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
- package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
- package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
- package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
- package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
- package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
- package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
- package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
- package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
- package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
- package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
- package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
- package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
- package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
- package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
- package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
- package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
- package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
- package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
- package/src/components/NavDesktop/NavDesktop.vue +355 -0
- package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
- package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
- package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
- package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
- package/src/components/NavHeading/NavHeading.stories.js +23 -0
- package/src/components/NavHeading/NavHeading.vue +40 -0
- package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
- package/src/components/NavHighlight/NavHighlight.vue +67 -0
- package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
- package/src/components/NavLinkList/NavLinkList.vue +66 -0
- package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
- package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
- package/src/components/NavMobile/NavMobile.stories.js +231 -0
- package/src/components/NavMobile/NavMobile.vue +280 -0
- package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
- package/src/components/NavMobile/NavMobileLink.vue +69 -0
- package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
- package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
- package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
- package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
- package/src/components/NavSecondary/NavSecondary.vue +191 -0
- package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
- package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
- package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
- package/src/components/NavSocial/NavSocial.stories.js +20 -0
- package/src/components/NavSocial/NavSocial.vue +97 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
- package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
- package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
- package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
- package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
- package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
- package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
- package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
- package/src/components/SearchInput/SearchInput.stories.js +35 -0
- package/src/components/SearchInput/SearchInput.vue +93 -0
- package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
- package/src/components/SearchPagination/SearchPagination.vue +173 -0
- package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
- package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
- package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
- package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
- package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
- package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
- package/src/components/ShareButtons/ShareButtons.vue +132 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
- package/src/components/SkipLink/SkipLink.stories.js +9 -0
- package/src/components/SkipLink/SkipLink.vue +53 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
- package/src/components/TheFooter/TheFooter.stories.js +602 -0
- package/src/components/TheFooter/TheFooter.vue +228 -0
- package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
- package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
- package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
- package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
- package/src/components/YearTicker/YearTicker.stories.js +37 -0
- package/src/components/YearTicker/YearTicker.vue +132 -0
- package/src/docs/foundation/DynamicTokens.vue +106 -0
- package/src/docs/foundation/FontVariants.vue +80 -0
- package/src/docs/foundation/color.docs.mdx +112 -0
- package/src/docs/foundation/grid.docs.mdx +189 -0
- package/src/docs/foundation/grid.stories.js +263 -0
- package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
- package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
- package/src/docs/foundation/themes.docs.mdx +71 -0
- package/src/docs/foundation/themes.stories.js +63 -0
- package/src/docs/foundation/typography.docs.mdx +50 -0
- package/src/docs/foundation/typography.stories.js +119 -0
- package/src/interfaces.ts +129 -0
- package/src/main.ts +34 -0
- package/src/store/header.ts +40 -0
- package/src/store/theme.ts +27 -0
- package/src/templates/PageContent/PageContent.stories.js +92 -0
- package/src/templates/PageContent/PageContent.vue +140 -0
- package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
- package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
- package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
- package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
- package/src/templates/edu/PageEduNewsDetail.vue +155 -0
- package/src/templates/www/HomePage/HomePage.vue +30 -0
- package/src/utils/dayjs.js +32 -0
- package/src/utils/filters.js +33 -0
- package/src/utils/mixins.ts +353 -0
- package/src/vite-env.d.ts +1 -0
- package/tailwind.config.js +24 -0
- package/tsconfig.json +29 -0
- package/tsconfig.node.json +11 -0
- package/vite.config.ts +55 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
v-if="data && data.items && data.items.length > 0"
|
|
4
|
+
class="BlockListCards"
|
|
5
|
+
>
|
|
6
|
+
<template
|
|
7
|
+
v-for="(item, index) in data.items"
|
|
8
|
+
:key="index"
|
|
9
|
+
>
|
|
10
|
+
<div
|
|
11
|
+
class="md:flex"
|
|
12
|
+
:class="{
|
|
13
|
+
'lg:pb-10 lg:mb-10 mb-8 border-gray-light-mid pb-6 border-b':
|
|
14
|
+
index + 1 !== data.items.length
|
|
15
|
+
}"
|
|
16
|
+
>
|
|
17
|
+
<div class="md:mr-6 lg:mr-8 md:mb-0 flex-shrink-0 w-40 mb-6">
|
|
18
|
+
<BaseImagePlaceholder aspect-ratio="1:1">
|
|
19
|
+
<BaseImage
|
|
20
|
+
v-if="item.image && item.image.src"
|
|
21
|
+
:src="item.image.src.url"
|
|
22
|
+
:width="item.image.src.width"
|
|
23
|
+
:height="item.image.src.height"
|
|
24
|
+
alt=""
|
|
25
|
+
class="object-cover"
|
|
26
|
+
loading="lazy"
|
|
27
|
+
/>
|
|
28
|
+
</BaseImagePlaceholder>
|
|
29
|
+
</div>
|
|
30
|
+
<div>
|
|
31
|
+
<BaseHeading
|
|
32
|
+
v-if="item.heading"
|
|
33
|
+
size="h5"
|
|
34
|
+
level="h2"
|
|
35
|
+
class="mb-3"
|
|
36
|
+
>
|
|
37
|
+
{{ item.heading }}
|
|
38
|
+
</BaseHeading>
|
|
39
|
+
<BlockText
|
|
40
|
+
v-if="item.description"
|
|
41
|
+
:text="item.description"
|
|
42
|
+
variant="medium"
|
|
43
|
+
/>
|
|
44
|
+
<div
|
|
45
|
+
v-if="item.links && item.links.length > 1"
|
|
46
|
+
class="mt-3"
|
|
47
|
+
>
|
|
48
|
+
<!-- When more than one link is present, use default link variant -->
|
|
49
|
+
<ul class="pl-4 list-square">
|
|
50
|
+
<template
|
|
51
|
+
v-for="(link, index_link) in item.links"
|
|
52
|
+
:key="index_link"
|
|
53
|
+
>
|
|
54
|
+
<li class="my-2">
|
|
55
|
+
<BaseLink
|
|
56
|
+
:key="index_link"
|
|
57
|
+
variant="default"
|
|
58
|
+
class=""
|
|
59
|
+
link-class="no-underline"
|
|
60
|
+
:href="getExternalLink(link) ? getExternalLink(link) : undefined"
|
|
61
|
+
:to="link.page ? link.page.url : null"
|
|
62
|
+
external-target-blank
|
|
63
|
+
>
|
|
64
|
+
{{ link.text }}
|
|
65
|
+
</BaseLink>
|
|
66
|
+
</li>
|
|
67
|
+
</template>
|
|
68
|
+
</ul>
|
|
69
|
+
</div>
|
|
70
|
+
<div
|
|
71
|
+
v-else-if="item.links && item.links.length === 1"
|
|
72
|
+
class="mt-3"
|
|
73
|
+
>
|
|
74
|
+
<!-- When exactly one link, use primary link variant -->
|
|
75
|
+
<template
|
|
76
|
+
v-for="(link, _index_link) in item.links"
|
|
77
|
+
:key="_index_link"
|
|
78
|
+
>
|
|
79
|
+
<BaseLink
|
|
80
|
+
variant="primary"
|
|
81
|
+
class="-mb-1"
|
|
82
|
+
link-class="inline-block"
|
|
83
|
+
caret-wrapper-class="py-2"
|
|
84
|
+
:href="getExternalLink(link) ? getExternalLink(link) : undefined"
|
|
85
|
+
:to="link.page ? link.page.url : null"
|
|
86
|
+
external-target-blank
|
|
87
|
+
>
|
|
88
|
+
{{ link.text }}
|
|
89
|
+
</BaseLink>
|
|
90
|
+
</template>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</template>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<script lang="ts">
|
|
99
|
+
import { defineComponent } from 'vue'
|
|
100
|
+
import { mixinGetExternalLink } from './../../utils/mixins'
|
|
101
|
+
import type { RelatedLinkObject } from '../../interfaces'
|
|
102
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
103
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
104
|
+
import BaseImage from './../BaseImage/BaseImage.vue'
|
|
105
|
+
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
|
|
106
|
+
import BlockText from './../BlockText/BlockText.vue'
|
|
107
|
+
|
|
108
|
+
export default defineComponent({
|
|
109
|
+
name: 'BlockListCards',
|
|
110
|
+
components: {
|
|
111
|
+
BaseHeading,
|
|
112
|
+
BaseLink,
|
|
113
|
+
BaseImage,
|
|
114
|
+
BaseImagePlaceholder,
|
|
115
|
+
BlockText
|
|
116
|
+
},
|
|
117
|
+
props: {
|
|
118
|
+
data: {
|
|
119
|
+
type: Object,
|
|
120
|
+
required: false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
methods: {
|
|
124
|
+
getExternalLink(link: RelatedLinkObject): string | undefined {
|
|
125
|
+
return mixinGetExternalLink(link)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
</script>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import BlockQuote from './BlockQuote.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Blocks/BlockQuote',
|
|
5
|
+
component: BlockQuote,
|
|
6
|
+
excludeStories: /.*Data$/,
|
|
7
|
+
parameters: {
|
|
8
|
+
viewMode: 'docs',
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component:
|
|
12
|
+
'A big, fancy pull quote, with optional attribution and link. Can also be used for non-quotation callouts.'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// shared data
|
|
19
|
+
export const BlockQuoteData = {
|
|
20
|
+
blockType: 'QuoteBlock',
|
|
21
|
+
quote:
|
|
22
|
+
"“A nice thing about it is it doesn't shatter. If impacted, it bends rather than breaks and still has good optical properties”",
|
|
23
|
+
attribution: 'Amy Ross, Spacesuit Designer',
|
|
24
|
+
quoteLink: [
|
|
25
|
+
{
|
|
26
|
+
externalLink: '',
|
|
27
|
+
page: {
|
|
28
|
+
url: '/'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
thumbnail: {
|
|
33
|
+
src: 'https://picsum.photos/80/80',
|
|
34
|
+
alt: 'An image'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// template
|
|
39
|
+
const BlockQuoteTemplate = (args) => ({
|
|
40
|
+
components: { BlockQuote },
|
|
41
|
+
setup() {
|
|
42
|
+
return { args }
|
|
43
|
+
},
|
|
44
|
+
template: `<BlockQuote v-bind="args" />`
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
export const Default = BlockQuoteTemplate.bind({})
|
|
48
|
+
Default.args = {
|
|
49
|
+
data: {
|
|
50
|
+
quote: BlockQuoteData.quote,
|
|
51
|
+
attribution: BlockQuoteData.attribution,
|
|
52
|
+
quoteLink: []
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export const WithImage = BlockQuoteTemplate.bind({})
|
|
56
|
+
WithImage.args = {
|
|
57
|
+
data: {
|
|
58
|
+
quote: BlockQuoteData.quote,
|
|
59
|
+
attribution: BlockQuoteData.attribution,
|
|
60
|
+
thumbnail: BlockQuoteData.thumbnail
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export const ExternalLinkedAttribution = BlockQuoteTemplate.bind({})
|
|
64
|
+
ExternalLinkedAttribution.args = {
|
|
65
|
+
data: {
|
|
66
|
+
quote: BlockQuoteData.quote,
|
|
67
|
+
attribution: BlockQuoteData.attribution,
|
|
68
|
+
quoteLink: [
|
|
69
|
+
{
|
|
70
|
+
externalLink: 'https://www.jpl.nasa.gov'
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export const ImageWithLocalLinkedAttribution = BlockQuoteTemplate.bind({})
|
|
76
|
+
ImageWithLocalLinkedAttribution.args = {
|
|
77
|
+
data: BlockQuoteData
|
|
78
|
+
}
|
|
79
|
+
export const NoAttribution = BlockQuoteTemplate.bind({})
|
|
80
|
+
NoAttribution.args = {
|
|
81
|
+
data: {
|
|
82
|
+
quote: BlockQuoteData.quote
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="BlockQuote md:px-0 px-4 mx-auto text-center">
|
|
3
|
+
<hr
|
|
4
|
+
aria-hidden="true"
|
|
5
|
+
class="lg:mb-6 mb-3"
|
|
6
|
+
/>
|
|
7
|
+
<p
|
|
8
|
+
class="quote"
|
|
9
|
+
v-html="data.quote"
|
|
10
|
+
></p>
|
|
11
|
+
<template v-if="data.attribution">
|
|
12
|
+
<div class="inline-block">
|
|
13
|
+
<div class="flex items-center justify-center">
|
|
14
|
+
<img
|
|
15
|
+
v-if="data.thumbnail && Object.keys(data.thumbnail).length > 0 && data.thumbnail.src"
|
|
16
|
+
loading="lazy"
|
|
17
|
+
class="attribution-image"
|
|
18
|
+
:src="data.thumbnail.src"
|
|
19
|
+
:alt="data.thumbnail.alt"
|
|
20
|
+
/>
|
|
21
|
+
|
|
22
|
+
<BaseLink
|
|
23
|
+
v-if="data.quoteLink && data.quoteLink.length > 0"
|
|
24
|
+
variant="none"
|
|
25
|
+
class="attribution-text"
|
|
26
|
+
:href="data.quoteLink[0].externalLink ? data.quoteLink[0].externalLink : undefined"
|
|
27
|
+
:to="data.quoteLink[0].page ? data.quoteLink[0].page.url : undefined"
|
|
28
|
+
caret-margin-left="ml-1"
|
|
29
|
+
caret-color="text-primary"
|
|
30
|
+
caret
|
|
31
|
+
external-target-blank
|
|
32
|
+
>
|
|
33
|
+
{{ data.attribution }}
|
|
34
|
+
</BaseLink>
|
|
35
|
+
|
|
36
|
+
<div
|
|
37
|
+
v-else
|
|
38
|
+
class="attribution-text"
|
|
39
|
+
>
|
|
40
|
+
<span>{{ data.attribution }}</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
<hr
|
|
46
|
+
aria-hidden="true"
|
|
47
|
+
class="lg:mt-6 mt-3"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<script lang="ts">
|
|
52
|
+
import { defineComponent } from 'vue'
|
|
53
|
+
import type { PropType } from 'vue'
|
|
54
|
+
import BaseLink from './../BaseLink/BaseLink.vue'
|
|
55
|
+
|
|
56
|
+
export interface BlockQuoteAttributes {
|
|
57
|
+
quote: string
|
|
58
|
+
attribution: string
|
|
59
|
+
quoteLink: {
|
|
60
|
+
externalLink?: string
|
|
61
|
+
page?: {
|
|
62
|
+
url: string
|
|
63
|
+
}
|
|
64
|
+
}[]
|
|
65
|
+
thumbnail: {
|
|
66
|
+
src: string
|
|
67
|
+
alt: string
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default defineComponent({
|
|
72
|
+
name: 'BlockQuote',
|
|
73
|
+
components: {
|
|
74
|
+
BaseLink
|
|
75
|
+
},
|
|
76
|
+
props: {
|
|
77
|
+
data: {
|
|
78
|
+
type: Object as PropType<BlockQuoteAttributes>,
|
|
79
|
+
required: true,
|
|
80
|
+
default: () => ({})
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
})
|
|
84
|
+
</script>
|
|
85
|
+
<style lang="scss">
|
|
86
|
+
@import '@explorer-1/common/src/scss/components/BlockQuote';
|
|
87
|
+
</style>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import BlockRelatedLinks from './BlockRelatedLinks.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Blocks/BlockRelatedLinks',
|
|
5
|
+
component: BlockRelatedLinks,
|
|
6
|
+
excludeStories: /.*Data$/,
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component:
|
|
11
|
+
'A list of links formatted with background colors and icons indicating the type of link.'
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// data
|
|
18
|
+
export const BlockRelatedLinksData = {
|
|
19
|
+
data: {
|
|
20
|
+
blockType: 'RelatedLinksBlock',
|
|
21
|
+
heading: 'Read more about this',
|
|
22
|
+
links: [
|
|
23
|
+
{
|
|
24
|
+
text: 'A document download',
|
|
25
|
+
document: {
|
|
26
|
+
url: 'https://www.jpl.nasa.gov/'
|
|
27
|
+
},
|
|
28
|
+
page: '',
|
|
29
|
+
externalLink: ''
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
text: 'An internal link',
|
|
33
|
+
document: '',
|
|
34
|
+
page: {
|
|
35
|
+
url: '/placeholder'
|
|
36
|
+
},
|
|
37
|
+
externalLink: ''
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
text: 'An external Link',
|
|
41
|
+
document: '',
|
|
42
|
+
page: '',
|
|
43
|
+
externalLink: 'https://www.jpl.nasa.gov/'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
text: 'preventlongurlsfrombreakingoutofcontainerpreventlongurlsfrombreakingoutofcontainerpreventlongurlsfrombreakingoutofcontainerpreventlongurlsfrombreakingoutofcontainer',
|
|
47
|
+
document: '',
|
|
48
|
+
page: '',
|
|
49
|
+
externalLink: 'https://www.jpl.nasa.gov/'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const Default = {
|
|
56
|
+
name: 'BlockRelatedLinks',
|
|
57
|
+
args: {
|
|
58
|
+
...BlockRelatedLinksData
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="hasContent">
|
|
3
|
+
<BaseHeading
|
|
4
|
+
v-if="data.heading"
|
|
5
|
+
level="h2"
|
|
6
|
+
class="md:mb-8 mb-5"
|
|
7
|
+
>
|
|
8
|
+
{{ data.heading }}
|
|
9
|
+
</BaseHeading>
|
|
10
|
+
<div
|
|
11
|
+
v-for="(link, index) in data.links"
|
|
12
|
+
:key="index"
|
|
13
|
+
class="sm:w-3/4 md:w-2/3 lg:w-3/4 xl:w-2/3 mb-2"
|
|
14
|
+
>
|
|
15
|
+
<template v-if="link.externalLink">
|
|
16
|
+
<RelatedLink
|
|
17
|
+
variant="external"
|
|
18
|
+
:href="link.externalLink"
|
|
19
|
+
>
|
|
20
|
+
{{ link.text }}
|
|
21
|
+
</RelatedLink>
|
|
22
|
+
</template>
|
|
23
|
+
<template v-else-if="link.document">
|
|
24
|
+
<RelatedLink
|
|
25
|
+
variant="document"
|
|
26
|
+
:href="link.document.url"
|
|
27
|
+
>
|
|
28
|
+
{{ link.text }}
|
|
29
|
+
</RelatedLink>
|
|
30
|
+
</template>
|
|
31
|
+
<template v-else-if="link.page">
|
|
32
|
+
<RelatedLink
|
|
33
|
+
variant="page"
|
|
34
|
+
:to="link.page.url"
|
|
35
|
+
>
|
|
36
|
+
{{ link.text }}
|
|
37
|
+
</RelatedLink>
|
|
38
|
+
</template>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
<script lang="ts">
|
|
43
|
+
import { defineComponent } from 'vue'
|
|
44
|
+
import type { PropType } from 'vue'
|
|
45
|
+
import type { BlockData, RelatedLinkObject } from './../../interfaces'
|
|
46
|
+
|
|
47
|
+
import RelatedLink from './../BlockRelatedLinks/RelatedLink.vue'
|
|
48
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
49
|
+
|
|
50
|
+
export interface BlockRelatedLinksObject extends BlockData {
|
|
51
|
+
heading: string
|
|
52
|
+
links: RelatedLinkObject[]
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default defineComponent({
|
|
56
|
+
name: 'BlockRelatedLinks',
|
|
57
|
+
components: {
|
|
58
|
+
RelatedLink,
|
|
59
|
+
BaseHeading
|
|
60
|
+
},
|
|
61
|
+
props: {
|
|
62
|
+
data: {
|
|
63
|
+
type: Object as PropType<BlockRelatedLinksObject>,
|
|
64
|
+
required: true,
|
|
65
|
+
default: () => ({})
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
computed: {
|
|
69
|
+
hasContent() {
|
|
70
|
+
if (this.data?.links?.length) {
|
|
71
|
+
return true
|
|
72
|
+
}
|
|
73
|
+
return false
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
</script>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="tag"
|
|
4
|
+
:to="to"
|
|
5
|
+
:href="href"
|
|
6
|
+
class="bg-gray-light group text-body-lg flex items-center justify-between px-4 py-4 cursor-pointer"
|
|
7
|
+
:target="target"
|
|
8
|
+
rel="noopener"
|
|
9
|
+
>
|
|
10
|
+
<span class="can-hover:group-hover:underline min-w-12 block w-auto break-words">
|
|
11
|
+
<slot />
|
|
12
|
+
</span>
|
|
13
|
+
<component
|
|
14
|
+
:is="icon"
|
|
15
|
+
class="text-action xl:mx-4 flex-none ml-4 text-2xl leading-normal"
|
|
16
|
+
:class="variant === 'external' ? 'text-lg' : 'text-3xl'"
|
|
17
|
+
/>
|
|
18
|
+
</component>
|
|
19
|
+
</template>
|
|
20
|
+
<script lang="ts">
|
|
21
|
+
import { defineComponent } from 'vue'
|
|
22
|
+
import IconArrow from './../Icons/IconArrow.vue'
|
|
23
|
+
import IconDownload from './../Icons/IconDownload.vue'
|
|
24
|
+
import IconExternal from './../Icons/IconExternal.vue'
|
|
25
|
+
|
|
26
|
+
interface Variants {
|
|
27
|
+
[name: string]: string
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const variants: Variants = {
|
|
31
|
+
page: 'page',
|
|
32
|
+
external: 'external',
|
|
33
|
+
document: 'document'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export default defineComponent({
|
|
37
|
+
name: 'BlockRelatedLinks',
|
|
38
|
+
components: {
|
|
39
|
+
IconArrow,
|
|
40
|
+
IconDownload,
|
|
41
|
+
IconExternal
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
variant: {
|
|
45
|
+
type: String,
|
|
46
|
+
required: true,
|
|
47
|
+
default: 'page',
|
|
48
|
+
validator: (prop: string): boolean => Object.keys(variants).includes(prop)
|
|
49
|
+
},
|
|
50
|
+
to: {
|
|
51
|
+
type: [String, Object],
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
href: {
|
|
55
|
+
type: String,
|
|
56
|
+
required: false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
computed: {
|
|
60
|
+
tag() {
|
|
61
|
+
if (this.to) {
|
|
62
|
+
return 'nuxt-link'
|
|
63
|
+
} else {
|
|
64
|
+
return 'a'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
target() {
|
|
68
|
+
if (this.to) {
|
|
69
|
+
return '_self'
|
|
70
|
+
} else {
|
|
71
|
+
return '_blank'
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
icon() {
|
|
75
|
+
if (this.variant === 'document') {
|
|
76
|
+
return 'IconDownload'
|
|
77
|
+
} else if (this.variant === 'page') {
|
|
78
|
+
return 'IconArrow'
|
|
79
|
+
} else {
|
|
80
|
+
return 'IconExternal'
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
</script>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { BlockCtaData } from './../BlockCta/BlockCta.stories'
|
|
2
|
+
import { BlockHeadingData } from './../BlockHeading/BlockHeading.stories'
|
|
3
|
+
import { BlockImageCarouselData } from './../BlockImageCarousel/BlockImageCarousel.stories'
|
|
4
|
+
import { BlockImageComparisonData } from './../BlockImageComparison/BlockImageComparison.stories'
|
|
5
|
+
import { BlockImageData } from './../BlockImage/BlockImage.stories'
|
|
6
|
+
import { BlockImageGalleryData } from './../BlockImageGallery/BlockImageGallery.stories'
|
|
7
|
+
import { BlockInlineImageData } from './../BlockInlineImage/BlockInlineImage.stories'
|
|
8
|
+
import { BlockKeyPointsData } from './../BlockKeyPoints/BlockKeyPoints.stories'
|
|
9
|
+
import { BlockListCardsData } from './../BlockListCards/BlockListCards.stories'
|
|
10
|
+
import { BlockQuoteData } from './../BlockQuote/BlockQuote.stories'
|
|
11
|
+
import { BlockRelatedLinksData } from './../BlockRelatedLinks/BlockRelatedLinks.stories'
|
|
12
|
+
import { BlockTableData } from './../BlockTable/BlockTable.stories'
|
|
13
|
+
import { BlockTeaserData } from './../BlockTeaser/BlockTeaser.stories'
|
|
14
|
+
import { BlockIframeEmbedData } from './../BlockIframeEmbed/BlockIframeEmbed.stories'
|
|
15
|
+
import { BlockVideoData } from './../BlockVideo/BlockVideo.stories'
|
|
16
|
+
import { BlockVideoEmbedData } from './../BlockVideoEmbed/BlockVideoEmbed.stories'
|
|
17
|
+
import BlockStreamfield, { variants } from './BlockStreamfield.vue'
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
title: 'Components/Blocks/BlockStreamfield',
|
|
21
|
+
component: BlockStreamfield,
|
|
22
|
+
argTypes: {
|
|
23
|
+
variant: {
|
|
24
|
+
control: { type: 'select' },
|
|
25
|
+
options: Object.keys(variants)
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
decorators: [
|
|
29
|
+
() => ({
|
|
30
|
+
template: `<div id="storyDecorator" class="absolute inset-0"><story/></div>`
|
|
31
|
+
})
|
|
32
|
+
],
|
|
33
|
+
parameters: {
|
|
34
|
+
html: {
|
|
35
|
+
root: '#storyDecorator'
|
|
36
|
+
},
|
|
37
|
+
viewMode: 'canvas'
|
|
38
|
+
},
|
|
39
|
+
excludeStories: /.*(Data)$/
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const BlockStreamfieldData = {
|
|
43
|
+
body: [
|
|
44
|
+
BlockKeyPointsData,
|
|
45
|
+
{ ...BlockHeadingData, level: 'h2', size: 'h2' },
|
|
46
|
+
{
|
|
47
|
+
blockType: 'RichTextBlock',
|
|
48
|
+
value:
|
|
49
|
+
'<p>Lorem ipsum <a href="/missions/test-mission/">dolor</a> sit amet, consectetur adipiscing elit. Quisque vitae justo quis justo malesuada molestie. Cras sed tincidunt dui.</p><p>Integer imperdiet blandit neque vitae euismod. Nulla aliquet lacus nibh, vel tincidunt urna efficitur non. In et eros vitae ex posuere maximus quis eget urna. Suspendisse fringilla posuere velit sit amet posuere. Morbi malesuada bibendum vehicula. Donec faucibus ut erat ut mattis. Suspendisse ornare, quam at placerat cursus, dolor mi lacinia nunc, eget maximus augue nulla in dolor.</p>\n'
|
|
50
|
+
},
|
|
51
|
+
BlockInlineImageData.block,
|
|
52
|
+
{
|
|
53
|
+
blockType: 'RichTextBlock',
|
|
54
|
+
value:
|
|
55
|
+
'<p>Cras sed tincidunt dui.</p><p>Integer imperdiet blandit neque vitae euismod. Nulla aliquet lacus nibh, vel tincidunt urna efficitur non. In et eros vitae ex posuere maximus quis eget urna. Morbi malesuada bibendum vehicula. Donec faucibus ut erat ut mattis. Suspendisse ornare, quam at placerat cursus, dolor mi lacinia nunc, eget maximus augue nulla in dolor.</p>\n'
|
|
56
|
+
},
|
|
57
|
+
BlockCtaData,
|
|
58
|
+
BlockQuoteData,
|
|
59
|
+
BlockListCardsData,
|
|
60
|
+
BlockRelatedLinksData.data,
|
|
61
|
+
{ blockType: 'TeaserBlock', ...BlockTeaserData },
|
|
62
|
+
BlockVideoData.block,
|
|
63
|
+
{ blockType: 'CarouselBlock', showTitle: true, items: BlockImageCarouselData },
|
|
64
|
+
{ blockType: 'VideoEmbedBlock', ...BlockVideoEmbedData.data },
|
|
65
|
+
BlockImageData,
|
|
66
|
+
{ ...BlockImageData, fullBleed: true },
|
|
67
|
+
BlockImageComparisonData,
|
|
68
|
+
// BlockTwitterEmbedData,
|
|
69
|
+
BlockIframeEmbedData,
|
|
70
|
+
BlockImageGalleryData.block,
|
|
71
|
+
{
|
|
72
|
+
...BlockInlineImageData.block,
|
|
73
|
+
alignTo: 'left'
|
|
74
|
+
},
|
|
75
|
+
BlockTableData
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const Default = {
|
|
80
|
+
args: { data: BlockStreamfieldData.body, variant: 'default' }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export const MatchingWidths = {
|
|
84
|
+
args: {
|
|
85
|
+
data: BlockStreamfieldData.body,
|
|
86
|
+
variant: 'fluid'
|
|
87
|
+
}
|
|
88
|
+
}
|