@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,227 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { defineComponent } from 'vue'
|
|
3
|
+
import MixinAnimationCaret from './../MixinAnimationCaret/MixinAnimationCaret.vue'
|
|
4
|
+
|
|
5
|
+
interface Variants {
|
|
6
|
+
[name: string]: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const variants: Variants = {
|
|
10
|
+
primary: 'text-subtitle text-action can-hover:hover:text-action-dark',
|
|
11
|
+
secondary: 'text-subtitle text-action can-hover:hover:text-action-dark',
|
|
12
|
+
default: '-default underline text-action can-hover:hover:text-action-dark',
|
|
13
|
+
none: ''
|
|
14
|
+
}
|
|
15
|
+
export const primaryColorVariants: Variants = {
|
|
16
|
+
primary: 'text-subtitle text-primary can-hover:hover:text-primary-dark',
|
|
17
|
+
secondary: 'text-subtitle text-primary can-hover:hover:text-primary-dark',
|
|
18
|
+
default: '-default underline text-primary can-hover:hover:text-primary-dark',
|
|
19
|
+
none: ''
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default defineComponent({
|
|
23
|
+
// this component is useful when you need a link that can either be an 'a' or router link
|
|
24
|
+
// falls back to a <div> if no url is provided
|
|
25
|
+
name: 'BaseLink',
|
|
26
|
+
components: {
|
|
27
|
+
MixinAnimationCaret
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
variant: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false,
|
|
33
|
+
default: 'default',
|
|
34
|
+
validator: (prop: string): boolean => Object.keys(variants).includes(prop)
|
|
35
|
+
},
|
|
36
|
+
to: {
|
|
37
|
+
type: [String, Object],
|
|
38
|
+
default: undefined
|
|
39
|
+
},
|
|
40
|
+
exact: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
href: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: undefined
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined
|
|
51
|
+
},
|
|
52
|
+
ariaLabel: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: ''
|
|
55
|
+
},
|
|
56
|
+
linkClass: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ''
|
|
59
|
+
},
|
|
60
|
+
// this will always override the target
|
|
61
|
+
target: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: false,
|
|
64
|
+
default: undefined
|
|
65
|
+
},
|
|
66
|
+
// if external links should open in a new window
|
|
67
|
+
externalTargetBlank: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
required: false,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
// the 'primary' variant will always have the caret
|
|
73
|
+
caret: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
required: false,
|
|
76
|
+
default: false
|
|
77
|
+
},
|
|
78
|
+
// Class applied to the overall MixinAnimationCaret component
|
|
79
|
+
caretWrapperClass: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: ''
|
|
82
|
+
},
|
|
83
|
+
// Class applied to the caret itself
|
|
84
|
+
caretClass: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: ''
|
|
87
|
+
},
|
|
88
|
+
// if caret should be displayed inline with text
|
|
89
|
+
caretInline: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
required: false,
|
|
92
|
+
default: false
|
|
93
|
+
},
|
|
94
|
+
// to customize the caret color. also works with group-hover
|
|
95
|
+
caretColor: {
|
|
96
|
+
type: String,
|
|
97
|
+
required: false,
|
|
98
|
+
default: ''
|
|
99
|
+
},
|
|
100
|
+
caretMarginLeft: {
|
|
101
|
+
type: String,
|
|
102
|
+
required: false,
|
|
103
|
+
default: ''
|
|
104
|
+
},
|
|
105
|
+
usePrimaryColor: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
required: false,
|
|
108
|
+
default: false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
emits: ['linkClicked', 'specificLinkClicked'],
|
|
112
|
+
computed: {
|
|
113
|
+
computedVariants(): Variants {
|
|
114
|
+
if (this.usePrimaryColor) {
|
|
115
|
+
return primaryColorVariants
|
|
116
|
+
}
|
|
117
|
+
return variants
|
|
118
|
+
},
|
|
119
|
+
computedClass(): string {
|
|
120
|
+
let classes = this.computedVariants[this.variant]
|
|
121
|
+
if (this.to || this.href) {
|
|
122
|
+
classes = classes + ' cursor-pointer'
|
|
123
|
+
}
|
|
124
|
+
if (this.linkClass) {
|
|
125
|
+
classes = classes + ' ' + this.linkClass
|
|
126
|
+
}
|
|
127
|
+
return classes
|
|
128
|
+
},
|
|
129
|
+
theTarget(): string | undefined {
|
|
130
|
+
if (this.target) {
|
|
131
|
+
return this.target
|
|
132
|
+
} else if (this.href && this.externalTargetBlank) {
|
|
133
|
+
return '_blank'
|
|
134
|
+
}
|
|
135
|
+
return undefined
|
|
136
|
+
},
|
|
137
|
+
theRel(): string | undefined {
|
|
138
|
+
if (this.theTarget === '_blank') {
|
|
139
|
+
return 'noopener'
|
|
140
|
+
}
|
|
141
|
+
return undefined
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
clickEvent() {
|
|
146
|
+
this.$root?.$emit('linkClicked')
|
|
147
|
+
this.$emit('specificLinkClicked')
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
</script>
|
|
152
|
+
<template>
|
|
153
|
+
<div>
|
|
154
|
+
<!-- annoyingly repetive due to complexities around `to` and @click.native -->
|
|
155
|
+
<nuxt-link
|
|
156
|
+
v-if="to"
|
|
157
|
+
class="group"
|
|
158
|
+
:class="computedClass"
|
|
159
|
+
:to="to"
|
|
160
|
+
:target="theTarget"
|
|
161
|
+
:rel="theRel"
|
|
162
|
+
:aria-label="ariaLabel"
|
|
163
|
+
:title="title"
|
|
164
|
+
:exact="exact"
|
|
165
|
+
@click="clickEvent()"
|
|
166
|
+
>
|
|
167
|
+
<template v-if="caretInline && caret">
|
|
168
|
+
<MixinAnimationCaret
|
|
169
|
+
inline
|
|
170
|
+
:class="caretWrapperClass"
|
|
171
|
+
:arrow-class="caretClass"
|
|
172
|
+
:color="caretColor"
|
|
173
|
+
:margin-left="caretMarginLeft"
|
|
174
|
+
>
|
|
175
|
+
<slot></slot>
|
|
176
|
+
</MixinAnimationCaret>
|
|
177
|
+
</template>
|
|
178
|
+
<MixinAnimationCaret
|
|
179
|
+
v-else-if="variant === 'primary' || caret"
|
|
180
|
+
:class="caretWrapperClass"
|
|
181
|
+
:arrow-class="caretClass"
|
|
182
|
+
:color="caretColor"
|
|
183
|
+
:margin-left="caretMarginLeft"
|
|
184
|
+
>
|
|
185
|
+
<slot></slot>
|
|
186
|
+
</MixinAnimationCaret>
|
|
187
|
+
<template v-else>
|
|
188
|
+
<slot></slot>
|
|
189
|
+
</template>
|
|
190
|
+
</nuxt-link>
|
|
191
|
+
<a
|
|
192
|
+
v-else-if="href"
|
|
193
|
+
:href="href"
|
|
194
|
+
class="group"
|
|
195
|
+
:class="computedClass"
|
|
196
|
+
:target="theTarget"
|
|
197
|
+
:rel="theRel"
|
|
198
|
+
:aria-label="ariaLabel"
|
|
199
|
+
:title="title"
|
|
200
|
+
@click="clickEvent()"
|
|
201
|
+
>
|
|
202
|
+
<template v-if="caretInline && caret">
|
|
203
|
+
<MixinAnimationCaret
|
|
204
|
+
inline
|
|
205
|
+
:class="caretWrapperClass"
|
|
206
|
+
:arrow-class="caretClass"
|
|
207
|
+
:color="caretColor"
|
|
208
|
+
:margin-left="caretMarginLeft"
|
|
209
|
+
>
|
|
210
|
+
<slot></slot>
|
|
211
|
+
</MixinAnimationCaret>
|
|
212
|
+
</template>
|
|
213
|
+
<MixinAnimationCaret
|
|
214
|
+
v-else-if="variant === 'primary' || caret"
|
|
215
|
+
:class="caretWrapperClass"
|
|
216
|
+
:arrow-class="caretClass"
|
|
217
|
+
:color="caretColor"
|
|
218
|
+
:margin-left="caretMarginLeft"
|
|
219
|
+
>
|
|
220
|
+
<slot></slot>
|
|
221
|
+
</MixinAnimationCaret>
|
|
222
|
+
<template v-else>
|
|
223
|
+
<slot></slot>
|
|
224
|
+
</template>
|
|
225
|
+
</a>
|
|
226
|
+
</div>
|
|
227
|
+
</template>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
2
|
+
import BaseModal from './BaseModal.vue'
|
|
3
|
+
import BaseModalDialog from './BaseModalDialog.vue'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Components/Base/BaseModal',
|
|
7
|
+
component: BaseModal,
|
|
8
|
+
argTypes: {
|
|
9
|
+
bgClose: { control: { type: 'boolean' } }
|
|
10
|
+
},
|
|
11
|
+
excludeStories: /.*Data$/
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// templates
|
|
15
|
+
const BaseModalTemplate = (args) => ({
|
|
16
|
+
props: Object.keys(args),
|
|
17
|
+
components: { BaseModal },
|
|
18
|
+
template: `<BaseModal :bg-close="bgClose"><div>Modal content. Lorem ipsum dolor sit amet.</div></BaseModal>`
|
|
19
|
+
})
|
|
20
|
+
const BaseModalWithTriggerTemplate = (args) => ({
|
|
21
|
+
props: Object.keys(args),
|
|
22
|
+
components: { BaseModal, BaseButton },
|
|
23
|
+
template: `<BaseModal :bg-close="bgClose">
|
|
24
|
+
<template #modalTrigger>
|
|
25
|
+
<BaseButton variant="secondary">
|
|
26
|
+
Custom Trigger
|
|
27
|
+
</BaseButton>
|
|
28
|
+
</template>
|
|
29
|
+
<div>Modal content. Lorem ipsum dolor sit amet.</div>
|
|
30
|
+
</BaseModal>`
|
|
31
|
+
})
|
|
32
|
+
const BaseModalNested = (args) => ({
|
|
33
|
+
props: Object.keys(args),
|
|
34
|
+
components: { BaseModal, BaseButton },
|
|
35
|
+
template: `
|
|
36
|
+
<BaseModal :bg-close="bgClose">
|
|
37
|
+
<div>First Modal</div>
|
|
38
|
+
<BaseModal :bg-close="bgClose">
|
|
39
|
+
<template #modalTrigger>
|
|
40
|
+
<BaseButton variant="secondary" :compact="true">
|
|
41
|
+
Open Another
|
|
42
|
+
</BaseButton>
|
|
43
|
+
</template>
|
|
44
|
+
<div>Second Modal</div>
|
|
45
|
+
<BaseModal :bg-close="bgClose">
|
|
46
|
+
<template #modalTrigger>
|
|
47
|
+
<BaseButton variant="secondary" :compact="true">
|
|
48
|
+
Open Another
|
|
49
|
+
</BaseButton>
|
|
50
|
+
</template>
|
|
51
|
+
<div>Third Modal</div>
|
|
52
|
+
</BaseModal>
|
|
53
|
+
</BaseModal>
|
|
54
|
+
</BaseModal>`
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
const BaseModalDialogTemplate = (args) => ({
|
|
58
|
+
props: Object.keys(args),
|
|
59
|
+
components: { BaseModalDialog },
|
|
60
|
+
template: `<BaseModalDialog><template v-if="modalHeaderSlot" #modalHeader>{{ modalHeaderSlot }}</template><div>{{ modalContentSlot }}</div></BaseModalDialog>`
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
// data
|
|
64
|
+
export const BaseModalData = {
|
|
65
|
+
bgClose: true
|
|
66
|
+
}
|
|
67
|
+
export const BaseModalDialogData = {
|
|
68
|
+
modalHeaderSlot: 'Modal Header',
|
|
69
|
+
modalContentSlot:
|
|
70
|
+
'Modal content. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu arcu lacinia, fringilla dui sed, vestibulum augue. Nunc quis leo neque. Pellentesque tempor magna risus, vitae volutpat lorem mattis nec. '
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// stories
|
|
74
|
+
export const Default = BaseModalTemplate.bind({})
|
|
75
|
+
Default.args = { ...BaseModalData }
|
|
76
|
+
|
|
77
|
+
export const CustomTrigger = BaseModalWithTriggerTemplate.bind({})
|
|
78
|
+
CustomTrigger.args = { ...BaseModalData }
|
|
79
|
+
|
|
80
|
+
export const Nested = BaseModalNested.bind({})
|
|
81
|
+
Nested.args = { ...BaseModalData }
|
|
82
|
+
|
|
83
|
+
export const Dialog = BaseModalDialogTemplate.bind({})
|
|
84
|
+
Dialog.args = { ...BaseModalDialogData, modalHeaderSlot: '' }
|
|
85
|
+
|
|
86
|
+
export const DialogWithHeader = BaseModalDialogTemplate.bind({})
|
|
87
|
+
DialogWithHeader.args = {
|
|
88
|
+
...BaseModalDialogData,
|
|
89
|
+
modalHeaderSlot: 'Modal Header'
|
|
90
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<span @click="openModal()">
|
|
4
|
+
<slot name="modalTrigger"> Open Modal </slot>
|
|
5
|
+
</span>
|
|
6
|
+
<BaseModalDialog
|
|
7
|
+
v-show="showModal"
|
|
8
|
+
:bg-close="bgClose"
|
|
9
|
+
@close="closeModal()"
|
|
10
|
+
>
|
|
11
|
+
<template #modalHeader>
|
|
12
|
+
<slot name="modalHeader"></slot>
|
|
13
|
+
</template>
|
|
14
|
+
<slot></slot>
|
|
15
|
+
</BaseModalDialog>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts">
|
|
20
|
+
import { defineComponent } from 'vue'
|
|
21
|
+
import BaseModalDialog from './../BaseModal/BaseModalDialog.vue'
|
|
22
|
+
|
|
23
|
+
export default defineComponent({
|
|
24
|
+
name: 'BaseModal',
|
|
25
|
+
components: {
|
|
26
|
+
BaseModalDialog
|
|
27
|
+
},
|
|
28
|
+
props: {
|
|
29
|
+
bgClose: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
showModal: false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
methods: {
|
|
40
|
+
openModal() {
|
|
41
|
+
this.showModal = true
|
|
42
|
+
// prevents background scroll
|
|
43
|
+
document.body.classList.add('overflow-hidden')
|
|
44
|
+
},
|
|
45
|
+
closeModal() {
|
|
46
|
+
this.showModal = false
|
|
47
|
+
document.body.classList.remove('overflow-hidden')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
</script>
|
|
52
|
+
<style lang="scss" scoped>
|
|
53
|
+
// styles go here
|
|
54
|
+
</style>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="bg-gray-dark fixed top-0 left-0 z-50 flex w-full h-full overflow-auto bg-opacity-75"
|
|
4
|
+
@click="bgCloseModal"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
class="relative w-full max-w-xl p-8 m-auto bg-white"
|
|
8
|
+
@click.stop
|
|
9
|
+
>
|
|
10
|
+
<BaseHeading
|
|
11
|
+
v-if="$slots.modalHeader"
|
|
12
|
+
level="h2"
|
|
13
|
+
size="h3"
|
|
14
|
+
class="border-gray-light-mid pb-4 mb-4 border-b"
|
|
15
|
+
>
|
|
16
|
+
<slot name="modalHeader"></slot>
|
|
17
|
+
</BaseHeading>
|
|
18
|
+
<slot><div>Default content</div></slot>
|
|
19
|
+
<div class="text-right">
|
|
20
|
+
<BaseButton
|
|
21
|
+
class="mt-4"
|
|
22
|
+
@click="closeModal"
|
|
23
|
+
>
|
|
24
|
+
close
|
|
25
|
+
</BaseButton>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script lang="ts">
|
|
32
|
+
import { defineComponent } from 'vue'
|
|
33
|
+
import BaseButton from './../BaseButton/BaseButton.vue'
|
|
34
|
+
import BaseHeading from './../BaseHeading/BaseHeading.vue'
|
|
35
|
+
|
|
36
|
+
export default defineComponent({
|
|
37
|
+
name: 'BaseModalDialog',
|
|
38
|
+
components: {
|
|
39
|
+
BaseButton,
|
|
40
|
+
BaseHeading
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
bgClose: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
methods: {
|
|
49
|
+
closeModal() {
|
|
50
|
+
this.$emit('close')
|
|
51
|
+
},
|
|
52
|
+
bgCloseModal() {
|
|
53
|
+
if (this.bgClose) {
|
|
54
|
+
this.closeModal()
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
</script>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BasePlaceholder from './BasePlaceholder.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Base/BasePlaceholder',
|
|
5
|
+
component: BasePlaceholder,
|
|
6
|
+
excludeStories: /.*Data$/,
|
|
7
|
+
parameters: {
|
|
8
|
+
viewMode: 'docs',
|
|
9
|
+
docs: {
|
|
10
|
+
description: {
|
|
11
|
+
component: `An animated loading component frequently used as a placeholder for <a href="/story/components-search-searchresultcard--standard-result" target="_blank">SearchResultCard</a>`
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// shared data
|
|
18
|
+
const BasePlaceholderData = {}
|
|
19
|
+
|
|
20
|
+
// templates
|
|
21
|
+
const BasePlaceholderTemplate = (args) => ({
|
|
22
|
+
props: Object.keys(args),
|
|
23
|
+
components: { BasePlaceholder },
|
|
24
|
+
template: `<div><BasePlaceholder /></div>`
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
export const Base = BasePlaceholderTemplate.bind({})
|
|
28
|
+
Base.storyName = 'BasePlaceholder' // single story hoisting
|
|
29
|
+
Base.args = { ...BasePlaceholderData }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="BasePlaceholder">
|
|
3
|
+
<div class="border-bottom grid w-full grid-cols-12 mb-10">
|
|
4
|
+
<div class="col-span-9 pr-5">
|
|
5
|
+
<div class="bg-gray-light-mid animate-loading w-64 h-4 rounded-lg"></div>
|
|
6
|
+
<div class="bg-gray-light-mid animate-loading w-56 h-4 mt-5 rounded-lg"></div>
|
|
7
|
+
<div class="bg-gray-light-mid animate-loading pr-14 w-full h-4 mt-6 rounded-lg"></div>
|
|
8
|
+
<div class="bg-gray-light-mid animate-loading pr-14 w-5/6 h-4 mt-3 rounded-lg"></div>
|
|
9
|
+
<div class="bg-gray-light-mid animate-loading pr-14 w-1/2 h-4 mt-3 rounded-lg"></div>
|
|
10
|
+
<div class="bg-gray-light-mid animate-loading pr-14 w-30 h-4 mt-4 rounded-lg"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="flex justify-end col-span-3">
|
|
13
|
+
<div class="animate-loading h-38 w-38 rounded-none"></div>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<hr class="text-gray-light-mid mb-10" />
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script lang="ts">
|
|
21
|
+
import { defineComponent } from 'vue'
|
|
22
|
+
|
|
23
|
+
export default defineComponent({
|
|
24
|
+
name: 'BasePlaceholder'
|
|
25
|
+
})
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<style lang="scss">
|
|
29
|
+
@import '@explorer-1/common/src/scss/components/BasePlaceholder';
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
+
import BaseRadioGroup from './BaseRadioGroup.vue'
|
|
3
|
+
|
|
4
|
+
<Meta
|
|
5
|
+
title="Components/Base/BaseRadioGroup"
|
|
6
|
+
component={BaseRadioGroup}
|
|
7
|
+
parameters={{ viewMode: 'docs' }}
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
export const BaseRadioGroupData = {
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
id: 'breaking',
|
|
14
|
+
title: 'Breaking News',
|
|
15
|
+
text: 'All JPL News delivered immediately'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: 'daily',
|
|
19
|
+
title: 'Daily News',
|
|
20
|
+
text: 'Single Daily JPL News summary'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'weekly',
|
|
24
|
+
title: 'Weekly News',
|
|
25
|
+
text: 'Single Weekly JPL News summary'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'monthly',
|
|
29
|
+
title: 'Monthly News',
|
|
30
|
+
text: 'Monthly Digest for JPL News'
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
group: 'email',
|
|
34
|
+
preselected: 'breaking',
|
|
35
|
+
heading: 'JPL Forms',
|
|
36
|
+
subHeading: 'Choose how frequently you want to receive updates (opt out anytime):',
|
|
37
|
+
title: 'Email Groups'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const BaseRadioGroupTemplate = (args) => ({
|
|
41
|
+
props: Object.keys(args),
|
|
42
|
+
components: { BaseRadioGroup },
|
|
43
|
+
template: `<BaseRadioGroup :options="options" :group="group" :preselected="preselected" :heading="heading" :sub-heading="subHeading" :title="title"
|
|
44
|
+
></BaseRadioGroup>`
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
# Base Radio Group
|
|
48
|
+
|
|
49
|
+
## Usage
|
|
50
|
+
|
|
51
|
+
The BaseRadioGroup component is expected to contain an array of options and a grouping name with the goal of selecting a single option.
|
|
52
|
+
|
|
53
|
+
<Canvas>
|
|
54
|
+
<Story
|
|
55
|
+
name="Default"
|
|
56
|
+
args={BaseRadioGroupData}
|
|
57
|
+
>
|
|
58
|
+
{BaseRadioGroupTemplate.bind({})}
|
|
59
|
+
</Story>
|
|
60
|
+
</Canvas>
|
|
61
|
+
|
|
62
|
+
## Props
|
|
63
|
+
|
|
64
|
+
<ArgsTable for={BaseRadioGroup} />
|
|
65
|
+
|
|
66
|
+
## Example data
|
|
67
|
+
|
|
68
|
+
<code language="json">{JSON.stringify(BaseRadioGroupData, null, 2)}</code>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="BaseRadioGroup">
|
|
3
|
+
<label
|
|
4
|
+
v-if="heading"
|
|
5
|
+
class="text-lg font-semibold text-gray-900"
|
|
6
|
+
>{{ heading }}</label
|
|
7
|
+
>
|
|
8
|
+
<p
|
|
9
|
+
v-if="subHeading"
|
|
10
|
+
class="text-lg pt-4 pb-2 pr-4"
|
|
11
|
+
>
|
|
12
|
+
{{ subHeading }}
|
|
13
|
+
</p>
|
|
14
|
+
<fieldset class="mt-4">
|
|
15
|
+
<legend
|
|
16
|
+
v-if="title"
|
|
17
|
+
class="sr-only"
|
|
18
|
+
>
|
|
19
|
+
{{ title }}
|
|
20
|
+
</legend>
|
|
21
|
+
<div
|
|
22
|
+
v-if="options"
|
|
23
|
+
class="space-y-4 mb-2 pb-5"
|
|
24
|
+
>
|
|
25
|
+
<div
|
|
26
|
+
v-for="option in options"
|
|
27
|
+
:key="option.id"
|
|
28
|
+
class="flex items-center"
|
|
29
|
+
>
|
|
30
|
+
<input
|
|
31
|
+
:id="`${group}_${option.id}`"
|
|
32
|
+
:aria-describedby="option.text ? `${group}_${option.id}_description` : undefined"
|
|
33
|
+
:name="option.name"
|
|
34
|
+
:alt="option.alt"
|
|
35
|
+
:value="option.value"
|
|
36
|
+
type="radio"
|
|
37
|
+
:checked="option.id === preselected"
|
|
38
|
+
class="h-5 w-5"
|
|
39
|
+
/>
|
|
40
|
+
<label
|
|
41
|
+
:for="`${group}_${option.id}`"
|
|
42
|
+
class="ml-3 block text-md text-gray-700"
|
|
43
|
+
>
|
|
44
|
+
<span
|
|
45
|
+
v-if="option.title"
|
|
46
|
+
class="font-semibold"
|
|
47
|
+
>{{ option.title }}</span
|
|
48
|
+
>
|
|
49
|
+
<span v-if="option.text"> - </span>
|
|
50
|
+
<span
|
|
51
|
+
v-if="option.text"
|
|
52
|
+
:id="`${group}_${option.id}_description`"
|
|
53
|
+
class="font-light"
|
|
54
|
+
>{{ option.text }}</span
|
|
55
|
+
>
|
|
56
|
+
</label>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</fieldset>
|
|
60
|
+
</div>
|
|
61
|
+
</template>
|
|
62
|
+
|
|
63
|
+
<script lang="ts">
|
|
64
|
+
import { defineComponent } from 'vue'
|
|
65
|
+
import type { PropType } from 'vue'
|
|
66
|
+
import type { FormOption } from '../../interfaces'
|
|
67
|
+
export default defineComponent({
|
|
68
|
+
name: 'BaseRadioGroup',
|
|
69
|
+
props: {
|
|
70
|
+
group: {
|
|
71
|
+
type: String,
|
|
72
|
+
default: null,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
75
|
+
preselected: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: null,
|
|
78
|
+
required: false
|
|
79
|
+
},
|
|
80
|
+
heading: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: null,
|
|
83
|
+
required: false
|
|
84
|
+
},
|
|
85
|
+
subHeading: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: null,
|
|
88
|
+
required: false
|
|
89
|
+
},
|
|
90
|
+
title: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: null,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
95
|
+
options: {
|
|
96
|
+
type: Array as PropType<FormOption[]>,
|
|
97
|
+
default: null,
|
|
98
|
+
required: false
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
})
|
|
102
|
+
</script>
|