@explorer-1/vue 0.3.0 → 0.3.1
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/CHANGELOG.md +7 -0
- package/README.md +53 -5
- package/package.json +6 -3
- package/src/components/BasePill/BasePill.stories.js +16 -7
- package/src/components/BaseTimer/BaseTimer.stories.js +6 -1
- package/src/components/BaseTimer/BaseTimer.vue +6 -2
- package/src/components/BaseVideo/BaseVideo.vue +1 -0
- package/src/components/BlockDialog/BlockDialog.stories.mdx +1 -1
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +2 -1
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +6 -0
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +2 -7
- package/src/components/HeroLarge/HeroLarge.vue +1 -0
- package/src/components/HeroMedium/HeroMedium.vue +1 -0
- package/src/components/MetadataEduResource/MetadataEduResource.stories.js +1 -0
- package/src/components/MixinCarousel/MixinCarousel.docs.mdx +2 -2
- package/src/components/MixinCarousel/MixinCarousel.vue +16 -0
- package/src/components/MixinVideoBg/MixinVideoBg.vue +1 -0
- package/src/components/NavDesktopEdu/NavDesktopEdu.stories.js +1 -0
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +1 -0
- package/src/components/SearchResultCard/SearchResultCard.stories.js +1 -0
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +1 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +1 -0
- package/src/components/TimelineDialog/TimelineDialog.stories.mdx +1 -1
- package/src/docs/foundation/color.docs.mdx +1 -1
- package/src/docs/foundation/grid.docs.mdx +1 -1
- package/src/docs/foundation/grid_layouthelpers.docs.mdx +1 -1
- package/src/docs/foundation/themes.docs.mdx +1 -1
- package/src/docs/foundation/typography.docs.mdx +1 -1
- package/src/docs/foundation/typography.stories.js +1 -1
- package/src/docs/getting-started/designer.docs.mdx +1 -1
- package/src/docs/getting-started/developer.docs.mdx +3 -25
- package/src/docs/guides/accessibility.docs.mdx +1 -1
- package/src/docs/guides/responsive.docs.mdx +1 -1
- package/src/docs/introduction.docs.mdx +29 -1
- package/src/docs/overviews/base.docs.mdx +1 -1
- package/src/docs/overviews/blocks.docs.mdx.disabled +1 -1
- package/src/docs/overviews/cards.docs.mdx +1 -1
- package/src/docs/overviews/components.docs.mdx +1 -1
- package/src/docs/overviews/forms.docs.mdx +1 -1
- package/src/docs/overviews/global.docs.mdx +1 -1
- package/src/docs/overviews/global_footers.docs.mdx +1 -1
- package/src/docs/overviews/global_headers.docs.mdx +1 -1
- package/src/docs/overviews/heroes.docs.mdx +1 -1
- package/src/docs/overviews/mixins.docs.mdx +1 -1
- package/src/docs/overviews/search.docs.mdx +1 -1
- package/src/docs/overviews/utilities.docs.mdx +1 -1
- package/src/docs/roadmap.docs.mdx +1 -1
- package/src/docs/utils/ComponentItem.jsx +1 -1
- package/src/templates/edu/PageContentEdu.stories.js +1 -0
- package/src/templates/edu/PageEduCollectionsDetail/PageEduCollectionsDetail.stories.js +1 -0
- package/src/templates/edu/PageEduEventDetail/PageEduEventDetail.stories.js +1 -0
- package/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.js +1 -0
- package/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.js +1 -0
- package/src/templates/edu/PageEduHome/PageEduHome.stories.js +1 -0
- package/src/templates/edu/PageEduLesson/PageEduLesson.stories.js +1 -15
- package/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.stories.js +1 -0
- package/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.js +1 -0
- package/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.js +1 -0
- package/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.stories.js +1 -0
- package/src/templates/www/PageTimeline/PageTimeline.vue +1 -0
- package/tailwind.config.js +3 -13
- package/dist/edu/.gitkeep +0 -0
- package/dist/edu/explorer-1/bg-stars-edu.png +0 -0
- package/dist/edu/explorer-1/bg-stars.jpg +0 -0
- package/dist/explorer-1/bg-stars-edu.png +0 -0
- package/dist/explorer-1/bg-stars.jpg +0 -0
- package/dist/explorer-1-vue.d.ts +0 -1
- package/dist/explorer-1-vue.js +0 -25799
- package/dist/explorer-1-vue.umd.cjs +0 -52
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Artists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Communicators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Designers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Disruptors.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Dreamers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Educators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Innovators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Inventors.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Makers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Problem_Solvers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Robiticists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Scientists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Software_Engineers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Thinkers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImages/JPL_is__Visualizers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Artists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Communicators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Designers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Disruptors.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Dreamers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Educators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Innovators.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Inventors.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Makers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Problem_Solvers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Robiticists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Scientists.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Software_Engineers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Thinkers.jpg +0 -0
- package/dist/img/SwimlaneCTA/backgroundImagesSmall/JPL_is__Visualizers.jpg +0 -0
- package/dist/src/components/AboutTheAuthor/AboutTheAuthor.stories.d.ts +0 -30
- package/dist/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.d.ts +0 -52
- package/dist/src/components/BackToTop/BackToTop.stories.d.ts +0 -145
- package/dist/src/components/BackToTop/BackToTop.vue.d.ts +0 -127
- package/dist/src/components/BaseAccordionItem/BaseAccordionItem.stories.d.ts +0 -99
- package/dist/src/components/BaseAccordionItem/BaseAccordionItem.vue.d.ts +0 -56
- package/dist/src/components/BaseAudio/BaseAudio.stories.d.ts +0 -24
- package/dist/src/components/BaseAudio/BaseAudio.vue.d.ts +0 -66
- package/dist/src/components/BaseButton/BaseButton.stories.d.ts +0 -167
- package/dist/src/components/BaseButton/BaseButton.vue.d.ts +0 -95
- package/dist/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.d.ts +0 -24
- package/dist/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +0 -63
- package/dist/src/components/BaseHeading/BaseHeading.stories.d.ts +0 -178
- package/dist/src/components/BaseHeading/BaseHeading.vue.d.ts +0 -33
- package/dist/src/components/BaseImage/BaseImage.stories.d.ts +0 -140
- package/dist/src/components/BaseImage/BaseImage.vue.d.ts +0 -85
- package/dist/src/components/BaseImageCaption/BaseImageCaption.stories.d.ts +0 -24
- package/dist/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.d.ts +0 -89
- package/dist/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue.d.ts +0 -61
- package/dist/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue.d.ts +0 -7
- package/dist/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue.d.ts +0 -6
- package/dist/src/components/BaseLink/BaseLink.stories.d.ts +0 -56
- package/dist/src/components/BaseLink/BaseLink.vue.d.ts +0 -247
- package/dist/src/components/BaseModal/BaseModal.stories.d.ts +0 -994
- package/dist/src/components/BaseModal/BaseModal.vue.d.ts +0 -156
- package/dist/src/components/BaseModal/BaseModalDialog.vue.d.ts +0 -137
- package/dist/src/components/BasePill/BasePill.stories.d.ts +0 -65
- package/dist/src/components/BasePill/BasePill.vue.d.ts +0 -41
- package/dist/src/components/BasePlaceholder/BasePlaceholder.stories.d.ts +0 -25
- package/dist/src/components/BasePlaceholder/BasePlaceholder.vue.d.ts +0 -2
- package/dist/src/components/BaseRadioGroup/BaseRadioGroup.stories.d.ts +0 -28
- package/dist/src/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +0 -74
- package/dist/src/components/BaseSwimlane/BaseSwimlane.stories.d.ts +0 -25
- package/dist/src/components/BaseSwimlane/BaseSwimlane.vue.d.ts +0 -85
- package/dist/src/components/BaseTimer/BaseTimer.stories.d.ts +0 -107
- package/dist/src/components/BaseTimer/BaseTimer.test.d.ts +0 -1
- package/dist/src/components/BaseTimer/BaseTimer.vue.d.ts +0 -88
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.stories.d.ts +0 -259
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.test.d.ts +0 -1
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.vue.d.ts +0 -83
- package/dist/src/components/BaseVideo/BaseVideo.stories.d.ts +0 -26
- package/dist/src/components/BaseVideo/BaseVideo.vue.d.ts +0 -79
- package/dist/src/components/BlockAccordion/BlockAccordion.stories.d.ts +0 -83
- package/dist/src/components/BlockAccordion/BlockAccordion.vue.d.ts +0 -51
- package/dist/src/components/BlockAnchor/BlockAnchor.vue.d.ts +0 -12
- package/dist/src/components/BlockAudio/BlockAudio.stories.d.ts +0 -34
- package/dist/src/components/BlockAudio/BlockAudio.vue.d.ts +0 -236
- package/dist/src/components/BlockCardGrid/BlockCardGrid.stories.d.ts +0 -111
- package/dist/src/components/BlockCardGridItem/BlockCardGridItem.stories.d.ts +0 -48
- package/dist/src/components/BlockCardGridItem/BlockCardGridItemElement.vue.d.ts +0 -221
- package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.d.ts +0 -58
- package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.vue.d.ts +0 -224
- package/dist/src/components/BlockCta/BlockCta.stories.d.ts +0 -36
- package/dist/src/components/BlockCta/BlockCta.vue.d.ts +0 -117
- package/dist/src/components/BlockDialog/BlockDialog.stories.d.ts +0 -83
- package/dist/src/components/BlockGist/BlockGist.stories.d.ts +0 -19
- package/dist/src/components/BlockGist/BlockGist.vue.d.ts +0 -19
- package/dist/src/components/BlockGist/GitHub404.vue.d.ts +0 -2
- package/dist/src/components/BlockHeading/BlockHeading.stories.d.ts +0 -20
- package/dist/src/components/BlockHeading/BlockHeading.vue.d.ts +0 -67
- package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.d.ts +0 -37
- package/dist/src/components/BlockImageCarousel/BlockImageCarousel.stories.d.ts +0 -61
- package/dist/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.d.ts +0 -68
- package/dist/src/components/BlockImageComparison/BlockImageComparison.stories.d.ts +0 -46
- package/dist/src/components/BlockImageGallery/BlockImageGallery.stories.d.ts +0 -103
- package/dist/src/components/BlockInlineImage/BlockInlineImage.stories.d.ts +0 -73
- package/dist/src/components/BlockKeyPoints/BlockKeyPoints.stories.d.ts +0 -20
- package/dist/src/components/BlockKeyPoints/BlockKeyPoints.vue.d.ts +0 -96
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +0 -411
- package/dist/src/components/BlockLinkCard/BlockLinkCardCollectionLg.vue.d.ts +0 -47
- package/dist/src/components/BlockLinkCardList/BlockLinkCardList.stories.d.ts +0 -142
- package/dist/src/components/BlockLinkCardList/BlockLinkCardList.vue.d.ts +0 -30
- package/dist/src/components/BlockLinkTile/BlockLinkTile.stories.d.ts +0 -82
- package/dist/src/components/BlockListCards/BlockListCards.stories.d.ts +0 -57
- package/dist/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.d.ts +0 -44
- package/dist/src/components/BlockRichTable/BlockRichTable.stories.d.ts +0 -204
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +0 -743
- package/dist/src/components/BlockTeaser/BlockTeaser.stories.d.ts +0 -61
- package/dist/src/components/BlockTeaser/BlockTeaser.test.d.ts +0 -1
- package/dist/src/components/BlockTeaser/BlockTeaser.vue.d.ts +0 -269
- package/dist/src/components/BlockText/BlockText.stories.d.ts +0 -53
- package/dist/src/components/BlockText/BlockText.vue.d.ts +0 -32
- package/dist/src/components/BlockVideo/BlockVideo.stories.d.ts +0 -23
- package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.d.ts +0 -25
- package/dist/src/components/CalendarButton/CalendarButton.stories.d.ts +0 -19
- package/dist/src/components/CalendarButton/CalendarButton.vue.d.ts +0 -179
- package/dist/src/components/CalendarChip/CalendarChip.vue.d.ts +0 -36
- package/dist/src/components/DetailHeadline/DetailHeadline.stories.d.ts +0 -77
- package/dist/src/components/DsnWidget/DsnWidget.stories.d.ts +0 -29
- package/dist/src/components/EventDetailHero/EventDetailHero.stories.d.ts +0 -48
- package/dist/src/components/EventDetailHero/EventDetailHero.vue.d.ts +0 -234
- package/dist/src/components/FormContact/FormContact.stories.d.ts +0 -382
- package/dist/src/components/FormContact/FormContact.vue.d.ts +0 -369
- package/dist/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.d.ts +0 -444
- package/dist/src/components/FormNewsletterSignup/FormNewsletterSignup.vue.d.ts +0 -431
- package/dist/src/components/HeroLarge/HeroLarge.stories.d.ts +0 -65
- package/dist/src/components/HeroLarge/HeroLarge.vue.d.ts +0 -135
- package/dist/src/components/HeroListingIndex/HeroListingIndex.stories.d.ts +0 -137
- package/dist/src/components/HeroMedia/HeroMedia.stories.d.ts +0 -173
- package/dist/src/components/HeroMedium/HeroMedium.stories.d.ts +0 -93
- package/dist/src/components/HeroMedium/HeroSmall.stories.d.ts +0 -91
- package/dist/src/components/HomepageCarousel/HomepageCarousel.stories.d.ts +0 -353
- package/dist/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.d.ts +0 -57
- package/dist/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.d.ts +0 -27
- package/dist/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.d.ts +0 -94
- package/dist/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue.d.ts +0 -292
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.d.ts +0 -80
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue.d.ts +0 -149
- package/dist/src/components/Icons/Icon360.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconArrow.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconArrows.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconAudio.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconBook.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconBookUser.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconBriefcase.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconCalendar.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconCaret.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconCheckbox.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconCheckboxSelected.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconClose.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconCloseLightbox.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconDownload.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconDropdown.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconEnvelope.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconExpand.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconExternal.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconFilter.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconForwardTen.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconGrid.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconHand.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconInfo.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconLink.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconList.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconLocation.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconMagnifyingGlass.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconMedal.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconMenu.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconMinus.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconMute.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconNext.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconPause.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconPlay.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconPlus.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconPrev.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconProfile.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconRewindTen.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSearch.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconShare.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSlideshow.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialEmail.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialFacebook.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialGoogleClassroom.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialInstagram.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialPinterest.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialReddit.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialTwitter.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSocialYoutube.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconStop.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconSubject.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconTime.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconUniversity.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconUser.vue.d.ts +0 -2
- package/dist/src/components/Icons/IconVolume.vue.d.ts +0 -2
- package/dist/src/components/Icons/Icons.stories.d.ts +0 -509
- package/dist/src/components/ImageDetailContextImage/ImageDetailContextImage.vue.d.ts +0 -152
- package/dist/src/components/LayoutHelper/LayoutHelper.vue.d.ts +0 -33
- package/dist/src/components/LoadingTransition/LoadingTransition.vue.d.ts +0 -7
- package/dist/src/components/LogoCaltech/LogoCaltech.stories.d.ts +0 -41
- package/dist/src/components/LogoCaltech/LogoCaltech.vue.d.ts +0 -2
- package/dist/src/components/LogoTribrand/LogoTribrand.stories.d.ts +0 -111
- package/dist/src/components/LogoTribrand/LogoTribrand.vue.d.ts +0 -14
- package/dist/src/components/MetaPanel/MetaPanel.stories.d.ts +0 -58
- package/dist/src/components/MetaPanelItems/MetaPanelItems.stories.d.ts +0 -25
- package/dist/src/components/MetadataEduResource/MetadataEduResource.stories.d.ts +0 -59
- package/dist/src/components/MetadataEduResource/MetadataEduResource.vue.d.ts +0 -42
- package/dist/src/components/MetadataEvent/MetadataEvent.stories.d.ts +0 -32
- package/dist/src/components/MetadataEvent/MetadataEvent.vue.d.ts +0 -46
- package/dist/src/components/MissionDetailAbout/MissionDetailAbout.stories.d.ts +0 -27
- package/dist/src/components/MissionDetailAbout/MissionDetailAbout.vue.d.ts +0 -118
- package/dist/src/components/MissionDetailHero/MissionDetailHero.stories.d.ts +0 -417
- package/dist/src/components/MissionDetailHero/MissionDetailHero.vue.d.ts +0 -240
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.d.ts +0 -282
- package/dist/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.d.ts +0 -50
- package/dist/src/components/MissionDetailStats/DistanceStats.test.d.ts +0 -1
- package/dist/src/components/MissionDetailStats/DistanceStats.vue.d.ts +0 -170
- package/dist/src/components/MissionDetailStats/MissionDetailStats.stories.d.ts +0 -698
- package/dist/src/components/MissionDetailStats/MissionDetailStats.test.d.ts +0 -1
- package/dist/src/components/MissionDetailStats/MissionDetailStats.vue.d.ts +0 -302
- package/dist/src/components/MissionDetailStats/MissionDetailStatsMicro.vue.d.ts +0 -80
- package/dist/src/components/MissionDetailStats/MissionDetailStatsMini.vue.d.ts +0 -228
- package/dist/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.d.ts +0 -76
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.d.ts +0 -83
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.vue.d.ts +0 -64
- package/dist/src/components/MixinFancybox/MixinFancybox.vue.d.ts +0 -157
- package/dist/src/components/MixinFancybox/MixinFancyboxOpenButton.vue.d.ts +0 -4
- package/dist/src/components/MixinVideoBg/MixinVideoBg.stories.d.ts +0 -14
- package/dist/src/components/MixinVideoBg/MixinVideoBg.vue.d.ts +0 -12
- package/dist/src/components/NavDesktop/NavDesktopDropdown.vue.d.ts +0 -71
- package/dist/src/components/NavDropdownToggle/NavDropdownToggle.vue.d.ts +0 -40
- package/dist/src/components/NavHeading/NavHeading.stories.d.ts +0 -22
- package/dist/src/components/NavHighlight/NavHighlight.stories.d.ts +0 -43
- package/dist/src/components/NavJumpMenu/NavJumpMenu.stories.d.ts +0 -44
- package/dist/src/components/NavLinkList/NavLinkList.stories.d.ts +0 -39
- package/dist/src/components/NavSearchForm/NavSearchForm.stories.d.ts +0 -12
- package/dist/src/components/NavSearchForm/NavSearchForm.vue.d.ts +0 -38
- package/dist/src/components/NavSecondary/NavSecondary.stories.d.ts +0 -32
- package/dist/src/components/NavSocial/NavSocial.stories.d.ts +0 -178
- package/dist/src/components/NavSocial/NavSocial.vue.d.ts +0 -152
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.d.ts +0 -36
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.d.ts +0 -1
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue.d.ts +0 -31
- package/dist/src/components/ParallaxContainer/ParallaxContainer.stories.d.ts +0 -91
- package/dist/src/components/ParallaxContainer/ParallaxContainer.vue.d.ts +0 -37
- package/dist/src/components/ParallaxElement/ParallaxElement.vue.d.ts +0 -23
- package/dist/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.d.ts +0 -50
- package/dist/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue.d.ts +0 -86
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.d.ts +0 -170
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.test.d.ts +0 -1
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.vue.d.ts +0 -87
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue.d.ts +0 -85
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.stories.d.ts +0 -82
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.vue.d.ts +0 -190
- package/dist/src/components/SearchFilterGroupAccordionItem/SearchFilterGroupAccordionItem.vue.d.ts +0 -44
- package/dist/src/components/SearchInput/SearchInput.stories.d.ts +0 -42
- package/dist/src/components/SearchInput/SearchInput.vue.d.ts +0 -69
- package/dist/src/components/SearchPagination/SearchPagination.stories.d.ts +0 -68
- package/dist/src/components/SearchPagination/SearchPagination.vue.d.ts +0 -110
- package/dist/src/components/SearchResultCard/SearchResultCard.stories.d.ts +0 -99
- package/dist/src/components/SearchResultGridItem/SearchResultGridItem.stories.d.ts +0 -79
- package/dist/src/components/SearchResultsList/SearchResultsList.stories.d.ts +0 -404
- package/dist/src/components/SearchSelectMenu/SearchSelectMenu.stories.d.ts +0 -18
- package/dist/src/components/SearchSelectMenu/SearchSelectMenu.vue.d.ts +0 -39
- package/dist/src/components/ShareButtons/ShareButtons.stories.d.ts +0 -16
- package/dist/src/components/ShareButtons/ShareButtons.vue.d.ts +0 -134
- package/dist/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.d.ts +0 -14
- package/dist/src/components/ShareButtonsEdu/ShareButtonsEdu.vue.d.ts +0 -16
- package/dist/src/components/SkipLink/SkipLink.stories.d.ts +0 -8
- package/dist/src/components/SkipLink/SkipLink.vue.d.ts +0 -98
- package/dist/src/components/SwimlaneCTA/SwimlaneCTA.stories.d.ts +0 -25
- package/dist/src/components/TextArea/TextArea.stories.d.ts +0 -30
- package/dist/src/components/TextArea/TextArea.vue.d.ts +0 -95
- package/dist/src/components/TextInput/TextInput.stories.d.ts +0 -33
- package/dist/src/components/TextInput/TextInput.vue.d.ts +0 -119
- package/dist/src/components/TheFooter/TheFooter.stories.d.ts +0 -87
- package/dist/src/components/TheFooter/TheFooterSignUp.vue.d.ts +0 -8
- package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.d.ts +0 -32
- package/dist/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.d.ts +0 -45
- package/dist/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.d.ts +0 -37
- package/dist/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.d.ts +0 -77
- package/dist/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue.d.ts +0 -325
- package/dist/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue.d.ts +0 -8
- package/dist/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.d.ts +0 -157
- package/dist/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.d.ts +0 -95
- package/dist/src/components/YearTicker/YearTicker.stories.d.ts +0 -40
- package/dist/src/components/YearTicker/YearTicker.vue.d.ts +0 -17
- package/dist/src/constants.d.ts +0 -14
- package/dist/src/docs/foundation/grid.stories.d.ts +0 -69
- package/dist/src/docs/foundation/grid_layouthelpers.stories.d.ts +0 -194
- package/dist/src/docs/foundation/themes.stories.d.ts +0 -21
- package/dist/src/docs/foundation/typography.stories.d.ts +0 -92
- package/dist/src/docs/guides/responsive.stories.d.ts +0 -13
- package/dist/src/docs/utils/ComponentItem.d.ts +0 -2
- package/dist/src/docs/utils/ComponentList.d.ts +0 -2
- package/dist/src/interfaces.d.ts +0 -284
- package/dist/src/main.d.ts +0 -1
- package/dist/src/store/curatedGallery.d.ts +0 -6
- package/dist/src/store/header.d.ts +0 -20
- package/dist/src/store/search.d.ts +0 -10
- package/dist/src/store/theme.d.ts +0 -14
- package/dist/src/templates/PageAudioDetail/PageAudioDetail.stories.d.ts +0 -102
- package/dist/src/templates/PageContent/PageContent.stories.d.ts +0 -197
- package/dist/src/templates/PageEventDetail/PageEventDetail.stories.d.ts +0 -94
- package/dist/src/templates/PageImageDetail/PageImageDetail.stories.d.ts +0 -185
- package/dist/src/templates/PageNewsDetail/PageNewsDetail.stories.d.ts +0 -1843
- package/dist/src/templates/PageVideoDetail/PageVideoDetail.stories.d.ts +0 -56
- package/dist/src/templates/edu/PageContentEdu.stories.d.ts +0 -205
- package/dist/src/templates/edu/PageEduCollectionsDetail/PageEduCollectionsDetail.stories.d.ts +0 -124
- package/dist/src/templates/edu/PageEduEventDetail/PageEduEventDetail.stories.d.ts +0 -297
- package/dist/src/templates/edu/PageEduExplainerArticle/PageEduExplainerArticle.stories.d.ts +0 -446
- package/dist/src/templates/edu/PageEduGalleryDetail/PageEduGalleryDetail.stories.d.ts +0 -284
- package/dist/src/templates/edu/PageEduHome/PageEduHome.stories.d.ts +0 -70
- package/dist/src/templates/edu/PageEduLesson/PageEduLesson.stories.d.ts +0 -623
- package/dist/src/templates/edu/PageEduMultimediaDetail/PageEduMultimediaDetail.stories.d.ts +0 -359
- package/dist/src/templates/edu/PageEduNewsDetail/PageEduNewsDetail.stories.d.ts +0 -2094
- package/dist/src/templates/edu/PageEduStudentProject/PageEduStudentProject.stories.d.ts +0 -890
- package/dist/src/templates/edu/PageEduTeachableMoment/PageEduTeachableMoment.stories.d.ts +0 -412
- package/dist/src/templates/www/PageAsteroidWatchContent/PageAsteroidWatchContent.stories.d.ts +0 -99
- package/dist/src/templates/www/PageAsteroidWatchIndex/PageAsteroidWatchIndex.stories.d.ts +0 -645
- package/dist/src/templates/www/PageCuratedGallery/PageCuratedGallery.stories.d.ts +0 -142
- package/dist/src/templates/www/PageGoDirectory/PageGoDirectory.stories.d.ts +0 -56
- package/dist/src/templates/www/PageHomepage/PageHomepage.stories.d.ts +0 -705
- package/dist/src/templates/www/PageInfographicDetail/PageInfographicDetail.stories.d.ts +0 -41
- package/dist/src/templates/www/PageMaintenanceMode/PageMaintenanceMode.stories.d.ts +0 -14
- package/dist/src/templates/www/PageMissionDetail/PageMissionDetail.stories.d.ts +0 -875
- package/dist/src/templates/www/PagePodcast/PagePodcast.stories.d.ts +0 -115
- package/dist/src/templates/www/PagePodcastSeason/PagePodcastSeason.stories.d.ts +0 -84
- package/dist/src/templates/www/PagePressKitIndex/PagePressKitIndex.stories.d.ts +0 -64
- package/dist/src/templates/www/PageProfileDetail/PageProfileDetail.stories.d.ts +0 -60
- package/dist/src/templates/www/PageRoboticsDetail/PageRoboticsDetail.stories.d.ts +0 -256
- package/dist/src/templates/www/PageTimeline/PageTimeline.stories.d.ts +0 -339
- package/dist/src/templates/www/PageTopicDetail/PageTopicDetail.stories.d.ts +0 -297
- package/dist/src/utils/dayjs.d.ts +0 -2
- package/dist/src/utils/eventBus.d.ts +0 -1
- package/dist/src/utils/filters.d.ts +0 -4
- package/dist/src/utils/generateHash.d.ts +0 -1
- package/dist/src/utils/getHeadingId.d.ts +0 -1
- package/dist/src/utils/lookupContentType.d.ts +0 -3
- package/dist/src/utils/mixins.d.ts +0 -59
- package/dist/src/utils/rangeifyGrades.d.ts +0 -3
- package/dist/style.css +0 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,9 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @explorer-1/vue
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
- [Prerequisites](#prerequisites)
|
|
4
|
+
- [Getting Started](#getting-started)
|
|
5
|
+
- [Configuration (Vite)](#configuration-vite)
|
|
6
|
+
- [Preloading Fonts](#preloading-fonts)
|
|
7
|
+
- [Using Components](#using-components)
|
|
4
8
|
|
|
5
|
-
##
|
|
9
|
+
## Prerequisites
|
|
6
10
|
|
|
7
|
-
-
|
|
11
|
+
- Recommended build tool: [Vite](https://vite.dev/)
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
## Getting Started
|
|
14
|
+
|
|
15
|
+
Install `@explorer-1/vue` and `@explorer-1/common` with [npm](https://www.npmjs.com/) or similar:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install --save @explorer-1/vue @explorer-1/common
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Install secondary dependencies:
|
|
22
|
+
|
|
23
|
+
- @tailwindcss/forms
|
|
24
|
+
- click-outside-vue3
|
|
25
|
+
- dayjs
|
|
26
|
+
- mitt
|
|
27
|
+
- swiper
|
|
28
|
+
- vue
|
|
29
|
+
- vue-bind-once
|
|
30
|
+
- vue3-compare-image
|
|
31
|
+
- vue3-observe-visibility
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install --save @tailwindcss/forms click-outside-vue3 dayjs mitt swiper vue vue-bind-once vue3-compare-image vue3-observe-visibility
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Configuration (Vite)
|
|
38
|
+
|
|
39
|
+
View files in the `@explorer-1/vue` package for examples on how to configure your Vue app with Vite.
|
|
40
|
+
|
|
41
|
+
- [vite.config.ts](./vite.config.ts)
|
|
42
|
+
- [postcss.config.js](./postcss.config.js)
|
|
43
|
+
- [tailwind.config.js](./tailwind.config.js)
|
|
44
|
+
- [index.html](./index.html) -- Vite entrypoint
|
|
45
|
+
- [main.ts](./src/main.ts) -- Vue app entrypoint
|
|
46
|
+
- [App.vue](./src/App.vue)
|
|
47
|
+
|
|
48
|
+
### Preloading Fonts
|
|
49
|
+
|
|
50
|
+
In the example `App.vue`, `@explorer-1/vue/src/assets/scss/styles-with-fonts.scss` is the main SCSS include. However, if you need to preload your fonts separately, you can do so by including `./assets/scss/styles.scss` instead (excludes font declarations). You can then preload fonts using a dedicated stylesheet:
|
|
51
|
+
|
|
52
|
+
1. Replace `@explorer-1/vue/src/assets/scss/styles-with-fonts.scss` with `@explorer-1/vue/src/assets/scss/styles.scss`
|
|
53
|
+
2. Preload fonts with this dedicated stylesheet:`@explorer-1/common/dist/assets/css/font-face.css`
|
|
54
|
+
|
|
55
|
+
## Using Components
|
|
56
|
+
|
|
57
|
+
Available components and usage guidance is documented in our [Storybook](https://nasa-jpl.github.io/explorer-1/).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorer-1/vue",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"author": "DesignLab",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/nasa-jpl/explorer-1"
|
|
11
|
+
"url": "https://github.com/nasa-jpl/explorer-1/tree/main/packages/vue"
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"prettier": "@explorer-1/prettier-config",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"vue-bind-once": "^0.2.1",
|
|
32
32
|
"vue3-compare-image": "^1.2.5",
|
|
33
33
|
"vue3-observe-visibility": "^1.0.1",
|
|
34
|
-
"@explorer-1/common": "1.2.
|
|
34
|
+
"@explorer-1/common": "1.2.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
"vue-tsc": "^2.0.6",
|
|
47
47
|
"@explorer-1/prettier-config": "1.0.0"
|
|
48
48
|
},
|
|
49
|
+
"storybook": {
|
|
50
|
+
"url": "https://main--668c47cbeb95392cd79c3c0d.chromatic.com"
|
|
51
|
+
},
|
|
49
52
|
"scripts": {
|
|
50
53
|
"dev": "pnpm prepare && vite",
|
|
51
54
|
"build": "pnpm prepare && vue-tsc && vite build",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BasePill from './BasePill.vue'
|
|
2
|
+
import { eduMetadataDictionary } from './../../constants'
|
|
2
3
|
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Components/Base/BasePill',
|
|
@@ -15,20 +16,28 @@ export default {
|
|
|
15
16
|
description: 'The size of the tag',
|
|
16
17
|
control: { type: 'select' },
|
|
17
18
|
options: ['sm', 'md', 'lg']
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
default: 'BaseStory slot'
|
|
19
|
+
},
|
|
20
|
+
contentType: {
|
|
21
|
+
control: { type: 'select' },
|
|
22
|
+
options: Object.keys(eduMetadataDictionary)
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// stories
|
|
28
28
|
export const PrimaryMedium = {
|
|
29
|
-
args: {
|
|
29
|
+
args: {
|
|
30
|
+
size: 'md',
|
|
31
|
+
variant: 'primary',
|
|
32
|
+
text: 'Psyche Asteroid',
|
|
33
|
+
contentType: 'EDULessonPage'
|
|
34
|
+
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
37
|
export const SecondarySmall = {
|
|
33
|
-
args: { size: 'sm', variant: 'secondary',
|
|
38
|
+
args: { size: 'sm', variant: 'secondary', text: 'Do it yourself' }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export const WithType = {
|
|
42
|
+
args: { size: 'sm', variant: 'secondary', text: 'Do it yourself' }
|
|
34
43
|
}
|
|
@@ -2,7 +2,12 @@ import BaseTimer from './BaseTimer.vue'
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Components/Base/BaseTimer',
|
|
5
|
-
component: BaseTimer
|
|
5
|
+
component: BaseTimer,
|
|
6
|
+
decorators: [
|
|
7
|
+
() => ({
|
|
8
|
+
template: `<div id="storyDecorator" class="w-full"><story/></div>`
|
|
9
|
+
})
|
|
10
|
+
]
|
|
6
11
|
}
|
|
7
12
|
|
|
8
13
|
export const BaseStory = {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<component
|
|
3
3
|
:is="diff ? 'time' : 'div'"
|
|
4
|
-
class="BaseTimer whitespace-nowrap"
|
|
4
|
+
class="BaseTimer whitespace-nowrap block"
|
|
5
5
|
:datetime="diff ? diff.toISOString() : null"
|
|
6
6
|
:class="{ '-inline': inline }"
|
|
7
|
+
data-chromatic="ignore"
|
|
7
8
|
>
|
|
8
9
|
<span :hidden="!!diff">Loading…</span>
|
|
9
10
|
<span
|
|
@@ -40,7 +41,10 @@
|
|
|
40
41
|
<template v-else>{{ unitValue(unit) }}</template>
|
|
41
42
|
</span>
|
|
42
43
|
<br v-if="!inline" />
|
|
43
|
-
<span
|
|
44
|
+
<span
|
|
45
|
+
class="unit text-body-xs uppercase"
|
|
46
|
+
data-chromatic="ignore"
|
|
47
|
+
>
|
|
44
48
|
{{ shortLabel(unit) }}
|
|
45
49
|
</span>
|
|
46
50
|
</span>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:height="data.height"
|
|
13
13
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
14
14
|
allowfullscreen
|
|
15
|
+
data-chromatic="ignore"
|
|
15
16
|
></iframe>
|
|
16
17
|
</template>
|
|
17
18
|
<template v-else>
|
|
@@ -29,10 +30,10 @@
|
|
|
29
30
|
class="w-full border-none"
|
|
30
31
|
:title="data.title"
|
|
31
32
|
:src="data.url"
|
|
32
|
-
data-chromatic="ignore"
|
|
33
33
|
width="90%"
|
|
34
34
|
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
|
35
35
|
allowfullscreen
|
|
36
|
+
data-chromatic="ignore"
|
|
36
37
|
></iframe>
|
|
37
38
|
</div>
|
|
38
39
|
</BaseImagePlaceholder>
|
|
@@ -181,6 +181,7 @@ export const EduLesson = {
|
|
|
181
181
|
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
|
|
182
182
|
})
|
|
183
183
|
],
|
|
184
|
+
globals: { theme: 'ThemeEdu' },
|
|
184
185
|
args: {
|
|
185
186
|
...BlockLinkCardData,
|
|
186
187
|
size: 'sm',
|
|
@@ -210,6 +211,7 @@ export const EduExplainerArticle = {
|
|
|
210
211
|
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
|
|
211
212
|
})
|
|
212
213
|
],
|
|
214
|
+
globals: { theme: 'ThemeEdu' },
|
|
213
215
|
args: {
|
|
214
216
|
...BlockLinkCardData,
|
|
215
217
|
data: {
|
|
@@ -234,6 +236,7 @@ export const EduExplainerArticle = {
|
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
export const LargeEduExplainerArticle = {
|
|
239
|
+
globals: { theme: 'ThemeEdu' },
|
|
237
240
|
args: {
|
|
238
241
|
...BlockLinkCardData,
|
|
239
242
|
size: 'lg',
|
|
@@ -260,6 +263,7 @@ export const LargeEduExplainerArticle = {
|
|
|
260
263
|
}
|
|
261
264
|
|
|
262
265
|
export const EduCollection = {
|
|
266
|
+
globals: { theme: 'ThemeEdu' },
|
|
263
267
|
decorators: [
|
|
264
268
|
() => ({
|
|
265
269
|
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
|
|
@@ -296,6 +300,7 @@ export const EduCollection = {
|
|
|
296
300
|
}
|
|
297
301
|
}
|
|
298
302
|
export const EduCollectionLarge = {
|
|
303
|
+
globals: { theme: 'ThemeEdu' },
|
|
299
304
|
args: {
|
|
300
305
|
...BlockLinkCardData,
|
|
301
306
|
size: 'lg',
|
|
@@ -328,6 +333,7 @@ export const EduCollectionLarge = {
|
|
|
328
333
|
}
|
|
329
334
|
|
|
330
335
|
export const EduNewsItem = {
|
|
336
|
+
globals: { theme: 'ThemeEdu' },
|
|
331
337
|
decorators: [
|
|
332
338
|
() => ({
|
|
333
339
|
template: `<div id="storyDecorator" class="relative grid grid-cols-2 gap-3"><story/></div>`
|
|
@@ -46,12 +46,7 @@ export const BlockStreamfieldMinimalData = {
|
|
|
46
46
|
{
|
|
47
47
|
blockType: 'RichTextBlock',
|
|
48
48
|
value:
|
|
49
|
-
'<p>
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
blockType: 'RichTextBlock',
|
|
53
|
-
value:
|
|
54
|
-
'<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'
|
|
49
|
+
'<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.</p>\n'
|
|
55
50
|
}
|
|
56
51
|
]
|
|
57
52
|
}
|
|
@@ -61,7 +56,7 @@ export const BlockStreamfieldTruncatedData = {
|
|
|
61
56
|
{
|
|
62
57
|
blockType: 'RichTextBlock',
|
|
63
58
|
value:
|
|
64
|
-
'<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
|
|
59
|
+
'<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>\n'
|
|
65
60
|
},
|
|
66
61
|
{ ...BlockHeadingData, blockId: Math.random().toString(36).slice(2) },
|
|
67
62
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, Story, Canvas } from '@storybook/addon-docs'
|
|
1
|
+
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'
|
|
2
2
|
import * as Stories from './MixinCarousel.stories'
|
|
3
3
|
|
|
4
4
|
<Meta of={Stories} />
|
|
@@ -30,4 +30,4 @@ And with a link using the `link` and `linkTitle` props:
|
|
|
30
30
|
|
|
31
31
|
## Used in the following components
|
|
32
32
|
|
|
33
|
-
See [all usage in the repository](https://github.com/nasa-jpl/
|
|
33
|
+
See [all usage in the repository](https://github.com/nasa-jpl/explorer-1/search?q=MixinCarousel&type=code).
|
|
@@ -196,11 +196,27 @@ export default defineComponent({
|
|
|
196
196
|
sliderOptions: {
|
|
197
197
|
...MixinCarouselOptions,
|
|
198
198
|
initialSlide: this.initialSlide,
|
|
199
|
+
watchSlidesProgress: true,
|
|
199
200
|
a11y: {
|
|
200
201
|
prevSlideMessage: this.heading ? this.heading + ' - Previous slide' : 'Previous slide',
|
|
201
202
|
nextSlideMessage: this.heading ? this.heading + ' - Next slide' : 'Next slide',
|
|
202
203
|
slideRole: 'link'
|
|
203
204
|
},
|
|
205
|
+
on: {
|
|
206
|
+
...MixinCarouselOptions.on,
|
|
207
|
+
progress(swiper) {
|
|
208
|
+
const classList = swiper.el.classList
|
|
209
|
+
classList.replace('opacity-0', 'opacity-100')
|
|
210
|
+
swiper.slides.forEach((slide) => {
|
|
211
|
+
if (slide.classList.contains('swiper-slide-fully-visible')) {
|
|
212
|
+
slide.setAttribute('aria-hidden', 'false')
|
|
213
|
+
slide.setAttribute('role', 'link')
|
|
214
|
+
} else {
|
|
215
|
+
slide.setAttribute('role', 'presentation')
|
|
216
|
+
}
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
},
|
|
204
220
|
breakpoints: {
|
|
205
221
|
...MixinCarouselOptions.breakpoints,
|
|
206
222
|
1024: {
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
|
|
8
8
|
export const BaseStory = {
|
|
9
9
|
name: 'ShareButtonsEdu',
|
|
10
|
+
globals: { theme: 'ThemeEdu' },
|
|
10
11
|
args: {
|
|
11
12
|
url: 'https://jpl.nasa.gov/edu/news/nasas-ingenuity-mars-helicopter-recharges-its-batteries-in-flight',
|
|
12
13
|
title: "NASA's Ingenuity Mars Helicopter Recharges Its Batteries in Flight"
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
v-bind-once="{ style: 'background-image: url(' + randomizeImage + ');' }"
|
|
14
14
|
role="presentation"
|
|
15
15
|
:class="'SwimlaneCTA lg:block hidden' + computedClass"
|
|
16
|
+
data-chromatic="ignore"
|
|
16
17
|
>
|
|
17
18
|
<div class="absolute inset-0 z-10 bg-black bg-opacity-25"></div>
|
|
18
19
|
<div
|
|
@@ -109,7 +109,7 @@ export const HeadingIcons = {
|
|
|
109
109
|
export const TextContrast = {
|
|
110
110
|
args: {},
|
|
111
111
|
render: () => ({
|
|
112
|
-
template: `<div style="background-image: url('https://picsum.photos/1000/
|
|
112
|
+
template: `<div style="background-image: url('https://fastly.picsum.photos/id/1015/1000/40.jpg?hmac=fpUcZPtNEqNVb9cio8CwkUIBZKywJSfhaxdieF0Uxgk');" class="bg-cover bg-no-repeat bg-center">
|
|
113
113
|
<div class="p-10 bg-black/30">
|
|
114
114
|
<span class="text-h3 text-white text-contrast">
|
|
115
115
|
This text uses a text shadow that increases readability when used with a semi-transparent overlay.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks'
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks'
|
|
2
2
|
|
|
3
3
|
<Meta title="Getting Started/Developer" />
|
|
4
4
|
|
|
@@ -39,29 +39,7 @@ Explorer 1 comprises components that range from very simple, single-purpose elem
|
|
|
39
39
|
|
|
40
40
|
### HTML templates
|
|
41
41
|
|
|
42
|
-
HTML templates are provided by this Storybook in
|
|
43
|
-
|
|
44
|
-
#### How to copy HTML snippets from Docs view
|
|
45
|
-
|
|
46
|
-
1. Find the story block you want to copy.
|
|
47
|
-
2. In the bottom right corner of the block, click on "Show code".
|
|
48
|
-
3. In the bottom right corner of the now-visible code block, click on "Copy".
|
|
49
|
-
|
|
50
|
-
<details className="pl-4 -mt-3 text-sm">
|
|
51
|
-
<summary> <span className="font-medium border-b border-blue hover:border-gray-dark">Watch how to copy snippets from Docs view</span></summary>
|
|
52
|
-
|
|
53
|
-

|
|
54
|
-
|
|
55
|
-
</details>
|
|
56
|
-
|
|
57
|
-
4. You can customize the component by modifying the controls. The code will update to match.
|
|
58
|
-
|
|
59
|
-
<details className="pl-4 -mt-3 text-sm">
|
|
60
|
-
<summary> <span className="font-medium border-b border-blue hover:border-gray-dark">Watch how to customize a component</span></summary>
|
|
61
|
-
|
|
62
|
-

|
|
63
|
-
|
|
64
|
-
</details>
|
|
42
|
+
HTML templates are provided by this Storybook in Canvas view only. To customize component options, modify the component "controls."
|
|
65
43
|
|
|
66
44
|
#### How to copy HTML snippets from Canvas view
|
|
67
45
|
|
|
@@ -71,7 +49,7 @@ Canvas view is useful to isolate your view to a single rendition of the componen
|
|
|
71
49
|
2. Make sure addons (the tabbed pane under the rendered component) are enabled by clicking on the three dots to the right of the JPL logo and checking "Show addons", or by typing `A`. If you still don't see the addons pane, you may need to toggle "Change addons orientation" in the menu (or type `D`) a couple times.
|
|
72
50
|
3. Click on the "HTML" tab within the addons pane.
|
|
73
51
|
4. Click on "Copy" in the bottom right of the screen or manually copy and paste the code block.
|
|
74
|
-
5. You can
|
|
52
|
+
5. You can customize the component by modifying the controls in the "Controls" tab within the Add-ons viewer. The code will update to match.
|
|
75
53
|
|
|
76
54
|
<details className="pl-4 text-sm">
|
|
77
55
|
<summary> <span className="font-medium border-b border-blue hover:border-gray-dark">Watch how to copy snippets from Canvas view</span></summary>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, Description } from '@storybook/blocks'
|
|
1
|
+
import { Meta, Description } from '@storybook/addon-docs/blocks'
|
|
2
2
|
|
|
3
3
|
<Meta title="Introduction" />
|
|
4
4
|
|
|
@@ -40,3 +40,31 @@ This website uses [Storybook](https://storybook.js.org/) to display our document
|
|
|
40
40
|
---
|
|
41
41
|
|
|
42
42
|
Maintained by [DesignLab](https://www.behance.net/JPL-DesignLab)
|
|
43
|
+
|
|
44
|
+
<div>
|
|
45
|
+
<table
|
|
46
|
+
class="w-auto text-left"
|
|
47
|
+
style={{ width: 'unset' }}
|
|
48
|
+
>
|
|
49
|
+
<thead>
|
|
50
|
+
<tr class="text-left">
|
|
51
|
+
<th>Package</th>
|
|
52
|
+
<th>Version</th>
|
|
53
|
+
</tr>
|
|
54
|
+
</thead>
|
|
55
|
+
<tbody>
|
|
56
|
+
<tr>
|
|
57
|
+
<td>[@explorer-1/common](https://www.npmjs.com/package/@explorer-1/common)</td>
|
|
58
|
+
<td>
|
|
59
|
+
<code>{packageVersions.__VERSION__EXPLORER_1_COMMON__}</code>
|
|
60
|
+
</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>[@explorer-1/vue](https://www.npmjs.com/package/@explorer-1/vue)</td>
|
|
64
|
+
<td>
|
|
65
|
+
<code>{packageVersions.__VERSION__EXPLORER_1_VUE__}</code>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</tbody>
|
|
69
|
+
</table>
|
|
70
|
+
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks'
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks'
|
|
2
2
|
import { ComponentList } from './../utils/ComponentList'
|
|
3
3
|
import * as BaseButtonStories from './../../components/BaseButton/BaseButton.stories'
|
|
4
4
|
import * as BaseHeadingStories from './../../components/BaseHeading/BaseHeading.stories'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{/* TODO: refactor to include all blocks in the vue storybook */}
|
|
2
|
-
import { Meta } from '@storybook/blocks'
|
|
2
|
+
import { Meta } from '@storybook/addon-docs/blocks'
|
|
3
3
|
import { ComponentList } from './../utils/ComponentList'
|
|
4
4
|
import _ as BlockAccordionStories from './../../components/BlockAccordion/BlockAccordion.stories'
|
|
5
5
|
import _ as BlockCardGridStories from './../../components/BlockCardGrid/BlockCardGrid.stories'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks'
|
|
1
|
+
import { Meta } from '@storybook/addon-docs/blocks'
|
|
2
2
|
import { ComponentList } from './../utils/ComponentList'
|
|
3
3
|
import * as BlockCardGridItemStories from './../../components/BlockCardGridItem/BlockCardGridItem.stories'
|
|
4
4
|
import * as BlockCircleImageCardStories from './../../components/BlockCircleImageCard/BlockCircleImageCard.stories'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, Canvas, Story } from '@storybook/blocks'
|
|
1
|
+
import { Meta, Canvas, Story } from '@storybook/addon-docs/blocks'
|
|
2
2
|
import { ComponentList } from './../utils/ComponentList'
|
|
3
3
|
import * as BaseImageStories from './../../components/BaseImage/BaseImage.stories'
|
|
4
4
|
import * as BaseImageCaptionStories from './../../components/BaseImageCaption/BaseImageCaption.stories'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Meta, Canvas, Story } from '@storybook/blocks'
|
|
1
|
+
import { Meta, Canvas, Story } from '@storybook/addon-docs/blocks'
|
|
2
2
|
import { ComponentList } from './../utils/ComponentList'
|
|
3
3
|
import * as FormContactStories from './../../components/FormContact/FormContact.stories'
|
|
4
4
|
import * as TextInputStories from './../../components/TextInput/TextInput.stories'
|