@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,137 @@
|
|
|
1
|
+
import BlockImage from './BlockImage.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Blocks/BlockImage',
|
|
5
|
+
component: BlockImage,
|
|
6
|
+
argTypes: {
|
|
7
|
+
fullBleed: {
|
|
8
|
+
control: { type: 'boolean' }
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
excludeStories: /.*Data$/,
|
|
12
|
+
parameters: {
|
|
13
|
+
viewMode: 'docs',
|
|
14
|
+
docs: {
|
|
15
|
+
description: {
|
|
16
|
+
component:
|
|
17
|
+
'The combination of BaseImage and BaseImageCaption, plus adding support for expanding the image in a lightbox and styling it to be a full-bleed image.'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// shared data
|
|
24
|
+
export const BlockImageData = {
|
|
25
|
+
blockType: 'FullBleedImageBlock',
|
|
26
|
+
fullBleed: false,
|
|
27
|
+
image: {
|
|
28
|
+
alt: 'Fourth image',
|
|
29
|
+
caption:
|
|
30
|
+
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel porttitor urna. Maecenas at est laoreet, sagittis risus a, rutrum ipsum. Quisque tincidunt lacus nunc, dapibus facilisis felis scelerisque sit amet. </p>',
|
|
31
|
+
credit: 'NASA/JPL',
|
|
32
|
+
detailUrl: '/image/placeholder/',
|
|
33
|
+
original: 'https://picsum.photos/869/700',
|
|
34
|
+
src: {
|
|
35
|
+
height: 700,
|
|
36
|
+
url: 'https://picsum.photos/869/700',
|
|
37
|
+
width: 869
|
|
38
|
+
},
|
|
39
|
+
srcSet: 'https://picsum.photos/320/258 320w, https://picsum.photos/869/700 1024w'
|
|
40
|
+
},
|
|
41
|
+
imageFullBleed: {
|
|
42
|
+
alt: 'Fourth image',
|
|
43
|
+
caption:
|
|
44
|
+
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel porttitor urna. Maecenas at est laoreet, sagittis risus a, rutrum ipsum. Quisque tincidunt lacus nunc, dapibus facilisis felis scelerisque sit amet. </p>',
|
|
45
|
+
credit: 'NASA/JPL',
|
|
46
|
+
detailUrl: '/image/placeholder/',
|
|
47
|
+
original: 'https://picsum.photos/1800/600',
|
|
48
|
+
src: {
|
|
49
|
+
width: 1800,
|
|
50
|
+
height: 900,
|
|
51
|
+
url: 'https://picsum.photos/1800/600'
|
|
52
|
+
},
|
|
53
|
+
srcCropped: {
|
|
54
|
+
width: 1024,
|
|
55
|
+
height: 341,
|
|
56
|
+
url: 'https://picsum.photos/1024/341'
|
|
57
|
+
},
|
|
58
|
+
screenXs: {
|
|
59
|
+
url: 'https://picsum.photos/320/107',
|
|
60
|
+
width: 320
|
|
61
|
+
},
|
|
62
|
+
screenLg: {
|
|
63
|
+
url: 'https://picsum.photos/1024/341',
|
|
64
|
+
width: 1024
|
|
65
|
+
},
|
|
66
|
+
screenXl: {
|
|
67
|
+
url: 'https://picsum.photos/1280/427',
|
|
68
|
+
width: 1280
|
|
69
|
+
},
|
|
70
|
+
screenThreexl: {
|
|
71
|
+
url: 'https://picsum.photos/1800/600',
|
|
72
|
+
width: 1800
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// templates
|
|
78
|
+
const BlockImageTemplate = (args) => ({
|
|
79
|
+
components: { BlockImage },
|
|
80
|
+
setup() {
|
|
81
|
+
return { args }
|
|
82
|
+
},
|
|
83
|
+
template: `
|
|
84
|
+
<BlockImage v-bind="args" />`
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
export const Standard = BlockImageTemplate.bind({})
|
|
88
|
+
Standard.args = {
|
|
89
|
+
data: BlockImageData,
|
|
90
|
+
fullBleed: BlockImageData.fullBleed
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const Unconstrained = BlockImageTemplate.bind({})
|
|
94
|
+
Unconstrained.args = {
|
|
95
|
+
data: {
|
|
96
|
+
...BlockImageData,
|
|
97
|
+
constrain: false
|
|
98
|
+
},
|
|
99
|
+
fullBleed: BlockImageData.fullBleed
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const CustomCaption = BlockImageTemplate.bind({})
|
|
103
|
+
CustomCaption.args = {
|
|
104
|
+
data: {
|
|
105
|
+
...BlockImageData,
|
|
106
|
+
caption: '<p>My custom caption.</p>',
|
|
107
|
+
displayCaption: true
|
|
108
|
+
},
|
|
109
|
+
fullBleed: BlockImageData.fullBleed
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export const NoCaption = BlockImageTemplate.bind({})
|
|
113
|
+
NoCaption.args = {
|
|
114
|
+
data: {
|
|
115
|
+
...BlockImageData,
|
|
116
|
+
displayCaption: false
|
|
117
|
+
},
|
|
118
|
+
fullBleed: BlockImageData.fullBleed
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const FullBleed = BlockImageTemplate.bind({})
|
|
122
|
+
FullBleed.args = {
|
|
123
|
+
data: {
|
|
124
|
+
...BlockImageData,
|
|
125
|
+
constrain: true
|
|
126
|
+
},
|
|
127
|
+
fullBleed: true
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const FullBleedUnconstrained = BlockImageTemplate.bind({})
|
|
131
|
+
FullBleedUnconstrained.args = {
|
|
132
|
+
data: {
|
|
133
|
+
...BlockImageData,
|
|
134
|
+
constrain: false
|
|
135
|
+
},
|
|
136
|
+
fullBleed: true
|
|
137
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { defineComponent } from 'vue'
|
|
3
|
+
import BlockImageStandard from './BlockImageStandard.vue'
|
|
4
|
+
import BlockImageFullBleed from './BlockImageFullBleed.vue'
|
|
5
|
+
import LayoutHelper from './../LayoutHelper/LayoutHelper.vue'
|
|
6
|
+
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: 'BlockImage',
|
|
9
|
+
components: {
|
|
10
|
+
BlockImageStandard,
|
|
11
|
+
BlockImageFullBleed,
|
|
12
|
+
LayoutHelper
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
data: {
|
|
16
|
+
type: Object,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
fullBleed: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: false,
|
|
22
|
+
default: false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
</script>
|
|
27
|
+
<template>
|
|
28
|
+
<div v-if="data">
|
|
29
|
+
<template v-if="fullBleed && data.imageFullBleed">
|
|
30
|
+
<BlockImageFullBleed
|
|
31
|
+
:data="data.imageFullBleed"
|
|
32
|
+
:display-caption="data.displayCaption"
|
|
33
|
+
:caption="data.caption"
|
|
34
|
+
:constrain="data.constrain"
|
|
35
|
+
/>
|
|
36
|
+
</template>
|
|
37
|
+
<template v-else>
|
|
38
|
+
<LayoutHelper indent="col-2">
|
|
39
|
+
<BlockImageStandard
|
|
40
|
+
:data="data.image"
|
|
41
|
+
:display-caption="data.displayCaption"
|
|
42
|
+
:caption="data.caption"
|
|
43
|
+
:constrain="data.constrain"
|
|
44
|
+
/>
|
|
45
|
+
</LayoutHelper>
|
|
46
|
+
</template>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { defineComponent } from 'vue'
|
|
3
|
+
import type { PropType } from 'vue'
|
|
4
|
+
import MixinFancybox from './../MixinFancybox/MixinFancybox.vue'
|
|
5
|
+
import BaseImage from './../BaseImage/BaseImage.vue'
|
|
6
|
+
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
|
|
7
|
+
import BaseImageCaption from './../BaseImageCaption/BaseImageCaption.vue'
|
|
8
|
+
import type { ImageObject } from './../../interfaces'
|
|
9
|
+
import { mixinGetSrcSet } from './../../utils/mixins'
|
|
10
|
+
|
|
11
|
+
export default defineComponent({
|
|
12
|
+
name: 'BlockImageFullBleed',
|
|
13
|
+
components: {
|
|
14
|
+
MixinFancybox,
|
|
15
|
+
BaseImage,
|
|
16
|
+
BaseImagePlaceholder,
|
|
17
|
+
BaseImageCaption
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
data: {
|
|
21
|
+
type: Object as PropType<ImageObject>,
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
// if a caption should even be visible
|
|
25
|
+
displayCaption: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
// overrides caption provided with image model
|
|
30
|
+
caption: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
// if the image should be constrained to a fixed aspect ratio (21:9 on smaller screens, 2:1 on larger screens)
|
|
35
|
+
constrain: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
data() {
|
|
41
|
+
return {
|
|
42
|
+
openTab: 1
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
computed: {
|
|
46
|
+
theCaption(): string | undefined {
|
|
47
|
+
if (this.caption && this.caption.length > 2 && this.displayCaption) {
|
|
48
|
+
return this.caption
|
|
49
|
+
} else if (
|
|
50
|
+
this.displayCaption &&
|
|
51
|
+
this.data &&
|
|
52
|
+
this.data.caption &&
|
|
53
|
+
this.data.caption.length > 2
|
|
54
|
+
) {
|
|
55
|
+
return this.data.caption
|
|
56
|
+
}
|
|
57
|
+
return undefined
|
|
58
|
+
},
|
|
59
|
+
theSrcSet(): string | undefined {
|
|
60
|
+
return this.theData ? mixinGetSrcSet(this.theData) : undefined
|
|
61
|
+
},
|
|
62
|
+
// reform the data object with the computed caption
|
|
63
|
+
theData(): ImageObject | undefined {
|
|
64
|
+
if (this.data) {
|
|
65
|
+
return {
|
|
66
|
+
...this.data,
|
|
67
|
+
caption: this.theCaption
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return undefined
|
|
71
|
+
},
|
|
72
|
+
hasCaptionArea(): boolean {
|
|
73
|
+
if (this.data && (this.theCaption || this.data.credit || this.data.detailUrl)) {
|
|
74
|
+
return true
|
|
75
|
+
}
|
|
76
|
+
return false
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
</script>
|
|
81
|
+
<template>
|
|
82
|
+
<div v-if="theData">
|
|
83
|
+
<div class="bg-gray-light">
|
|
84
|
+
<div class="max-w-screen-3xl mx-auto">
|
|
85
|
+
<MixinFancybox
|
|
86
|
+
v-if="theData.src"
|
|
87
|
+
:src="theData.original"
|
|
88
|
+
:caption="theData.caption"
|
|
89
|
+
:credit="theData.credit"
|
|
90
|
+
:detail-url="theData.detailUrl"
|
|
91
|
+
>
|
|
92
|
+
<BaseImagePlaceholder
|
|
93
|
+
:aspect-ratio="constrain ? '16:9' : 'none'"
|
|
94
|
+
:responsive-aspect-ratio="constrain ? 'lg:aspect-ratio-two-one' : ''"
|
|
95
|
+
dark-mode
|
|
96
|
+
>
|
|
97
|
+
<BaseImage
|
|
98
|
+
v-if="theData.src && theData.srcCropped"
|
|
99
|
+
:src="constrain ? theData.srcCropped.url : theData.src.url"
|
|
100
|
+
:srcset="theData.srcSet && !constrain ? theData.srcSet : theSrcSet"
|
|
101
|
+
:width="constrain ? theData.srcCropped.width : theData.src.width"
|
|
102
|
+
:height="constrain ? theData.srcCropped.height : theData.src.height"
|
|
103
|
+
:alt="theData.alt"
|
|
104
|
+
:image-class="!constrain ? 'w-full h-auto' : undefined"
|
|
105
|
+
:object-fit-class="constrain ? 'cover' : undefined"
|
|
106
|
+
loading="lazy"
|
|
107
|
+
/>
|
|
108
|
+
</BaseImagePlaceholder>
|
|
109
|
+
</MixinFancybox>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div
|
|
113
|
+
v-if="data && hasCaptionArea"
|
|
114
|
+
class="max-w-screen-3xl p-4 pb-0 mx-auto"
|
|
115
|
+
>
|
|
116
|
+
<BaseImageCaption :data="theData" />
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { defineComponent } from 'vue'
|
|
3
|
+
import type { PropType } from 'vue'
|
|
4
|
+
|
|
5
|
+
import type { ImageObject } from './../../interfaces'
|
|
6
|
+
import MixinFancybox from './../MixinFancybox/MixinFancybox.vue'
|
|
7
|
+
import BaseImage from './../BaseImage/BaseImage.vue'
|
|
8
|
+
import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
|
|
9
|
+
import BaseImageCaption from './../BaseImageCaption/BaseImageCaption.vue'
|
|
10
|
+
|
|
11
|
+
export default defineComponent({
|
|
12
|
+
name: 'BlockImageStandard',
|
|
13
|
+
components: {
|
|
14
|
+
MixinFancybox,
|
|
15
|
+
BaseImage,
|
|
16
|
+
BaseImagePlaceholder,
|
|
17
|
+
BaseImageCaption
|
|
18
|
+
},
|
|
19
|
+
props: {
|
|
20
|
+
data: {
|
|
21
|
+
type: Object as PropType<ImageObject>,
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
// if a caption should even be visible
|
|
25
|
+
displayCaption: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
// overrides caption provided with image model
|
|
30
|
+
caption: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
// if the image should be constrained to a 16:9 aspect ratio
|
|
35
|
+
constrain: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
computed: {
|
|
41
|
+
theCaption(): string | undefined {
|
|
42
|
+
if (this.caption && this.caption.length > 2 && this.displayCaption) {
|
|
43
|
+
return this.caption
|
|
44
|
+
} else if (
|
|
45
|
+
this.displayCaption &&
|
|
46
|
+
this.data &&
|
|
47
|
+
this.data.caption &&
|
|
48
|
+
this.data.caption.length > 2
|
|
49
|
+
) {
|
|
50
|
+
return this.data.caption
|
|
51
|
+
}
|
|
52
|
+
return undefined
|
|
53
|
+
},
|
|
54
|
+
// reform the data object with the computed caption
|
|
55
|
+
theData(): ImageObject | undefined {
|
|
56
|
+
if (this.data) {
|
|
57
|
+
return {
|
|
58
|
+
...this.data,
|
|
59
|
+
caption: this.theCaption
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return undefined
|
|
63
|
+
},
|
|
64
|
+
hasCaptionArea(): boolean {
|
|
65
|
+
if (this.data && (this.theCaption || this.data.credit || this.data.detailUrl)) {
|
|
66
|
+
return true
|
|
67
|
+
}
|
|
68
|
+
return false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
</script>
|
|
73
|
+
<template>
|
|
74
|
+
<div v-if="theData">
|
|
75
|
+
<MixinFancybox
|
|
76
|
+
v-if="theData.src"
|
|
77
|
+
:src="theData.original"
|
|
78
|
+
:caption="theData.caption"
|
|
79
|
+
:credit="theData.credit"
|
|
80
|
+
:detail-url="theData.detailUrl"
|
|
81
|
+
>
|
|
82
|
+
<BaseImagePlaceholder
|
|
83
|
+
:aspect-ratio="constrain ? '16:9' : 'none'"
|
|
84
|
+
dark-mode
|
|
85
|
+
>
|
|
86
|
+
<BaseImage
|
|
87
|
+
v-if="theData.src"
|
|
88
|
+
:src="theData.src.url"
|
|
89
|
+
:srcset="theData.srcSet"
|
|
90
|
+
:width="theData.src.width"
|
|
91
|
+
:height="theData.src.height"
|
|
92
|
+
:alt="theData.alt"
|
|
93
|
+
:image-class="!constrain ? 'w-full h-auto' : undefined"
|
|
94
|
+
:object-fit-class="constrain ? 'contain' : undefined"
|
|
95
|
+
loading="lazy"
|
|
96
|
+
/>
|
|
97
|
+
</BaseImagePlaceholder>
|
|
98
|
+
</MixinFancybox>
|
|
99
|
+
<div
|
|
100
|
+
v-if="theData && hasCaptionArea"
|
|
101
|
+
class="lg:px-0 p-4 pb-0"
|
|
102
|
+
>
|
|
103
|
+
<BaseImageCaption :data="theData" />
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</template>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import BlockImageCarousel from './BlockImageCarousel.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Blocks/BlockImageCarousel',
|
|
5
|
+
component: BlockImageCarousel,
|
|
6
|
+
decorators: [
|
|
7
|
+
() => ({
|
|
8
|
+
template: `<div id="storyDecorator" class="container"><story/></div>`
|
|
9
|
+
})
|
|
10
|
+
],
|
|
11
|
+
argTypes: {
|
|
12
|
+
blockId: {
|
|
13
|
+
text: { type: 'string' },
|
|
14
|
+
required: false,
|
|
15
|
+
description:
|
|
16
|
+
'Fancybox: the block id is used to differentiate the fancybox of this carousel from others on the page. Generated by Wagtail.'
|
|
17
|
+
},
|
|
18
|
+
showTitle: {
|
|
19
|
+
text: { type: 'string' },
|
|
20
|
+
required: false,
|
|
21
|
+
description: "Fancybox: if image titles should be displayed in the carousel's fancybox"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
parameters: {
|
|
25
|
+
html: {
|
|
26
|
+
root: '#storyDecorator'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
excludeStories: /.*Data$/
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const BlockImageCarouselData = [
|
|
33
|
+
{
|
|
34
|
+
image: {
|
|
35
|
+
alt: 'First image',
|
|
36
|
+
title: 'Title of First image',
|
|
37
|
+
caption: 'Lorem ipsum dolor sit amet.',
|
|
38
|
+
credit: 'NASA/JPL-Caltech',
|
|
39
|
+
detailUrl: '/image/placeholder/',
|
|
40
|
+
original: 'https://picsum.photos/1024/576',
|
|
41
|
+
src: {
|
|
42
|
+
height: '576',
|
|
43
|
+
url: 'https://picsum.photos/1024/576',
|
|
44
|
+
width: '1024'
|
|
45
|
+
},
|
|
46
|
+
srcSet: 'https://picsum.photos/320/180 320w, https://picsum.photos/1024/576 1024w'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
image: {
|
|
51
|
+
alt: 'Second image',
|
|
52
|
+
title: 'Title of Second image',
|
|
53
|
+
caption: '',
|
|
54
|
+
credit: '',
|
|
55
|
+
detailUrl: '',
|
|
56
|
+
original: 'https://picsum.photos/1024/448',
|
|
57
|
+
src: {
|
|
58
|
+
height: '448',
|
|
59
|
+
url: 'https://picsum.photos/1024/448',
|
|
60
|
+
width: '1024'
|
|
61
|
+
},
|
|
62
|
+
srcSet: 'https://picsum.photos/320/140 320w, https://picsum.photos/1024/448 1024w'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
image: {
|
|
67
|
+
alt: 'Third image',
|
|
68
|
+
title: 'Title of Third image',
|
|
69
|
+
caption: '',
|
|
70
|
+
credit: 'NASA/JPL',
|
|
71
|
+
detailUrl: '',
|
|
72
|
+
original: 'https://picsum.photos/400/800',
|
|
73
|
+
src: {
|
|
74
|
+
height: '800',
|
|
75
|
+
url: 'https://picsum.photos/400/800',
|
|
76
|
+
width: '400'
|
|
77
|
+
},
|
|
78
|
+
srcSet: 'https://picsum.photos/320/640 320w, https://picsum.photos/400/800 1024w'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
image: {
|
|
83
|
+
alt: 'Fourth image',
|
|
84
|
+
title: 'Title of Fourth image',
|
|
85
|
+
caption:
|
|
86
|
+
'<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vel porttitor urna. Maecenas at est laoreet, sagittis risus a, rutrum ipsum. Quisque tincidunt lacus nunc, dapibus facilisis felis scelerisque sit amet. </p>',
|
|
87
|
+
credit: 'NASA/JPL',
|
|
88
|
+
detailUrl: '/image/placeholder/',
|
|
89
|
+
original: 'https://picsum.photos/869/700',
|
|
90
|
+
src: {
|
|
91
|
+
height: '700',
|
|
92
|
+
url: 'https://picsum.photos/869/700',
|
|
93
|
+
width: '869'
|
|
94
|
+
},
|
|
95
|
+
srcSet: 'https://picsum.photos/320/258 320w, https://picsum.photos/869/700 1024w'
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
// stories
|
|
101
|
+
export const Carousel = {
|
|
102
|
+
name: 'BlockImageCarousel',
|
|
103
|
+
args: {
|
|
104
|
+
blockId: 'ev106po56n',
|
|
105
|
+
showTitle: false,
|
|
106
|
+
items: BlockImageCarouselData
|
|
107
|
+
}
|
|
108
|
+
}
|