@explorer-1/vue 0.1.1 → 0.1.2
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/components.d.ts +2 -0
- package/dist/explorer-1-vue.js +4833 -4820
- package/dist/explorer-1-vue.umd.cjs +14 -14
- package/dist/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.d.ts +1 -1
- package/dist/src/components/BackToTop/BackToTop.stories.d.ts +2 -2
- package/dist/src/components/BaseAudio/BaseAudio.stories.d.ts +1 -1
- package/dist/src/components/BaseButton/BaseButton.stories.d.ts +2 -1
- package/dist/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.d.ts +24 -0
- package/dist/src/components/BaseHeading/BaseHeading.stories.d.ts +1 -1
- package/dist/src/components/BaseImage/BaseImage.stories.d.ts +1 -1
- package/dist/src/components/BaseImageCaption/BaseImageCaption.stories.d.ts +1 -1
- package/dist/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.d.ts +4 -1
- package/dist/src/components/BaseLink/BaseLink.stories.d.ts +2 -1
- package/dist/src/components/BaseModal/BaseModal.stories.d.ts +2 -2
- package/dist/src/components/BasePlaceholder/BasePlaceholder.stories.d.ts +2 -2
- package/dist/src/components/BaseRadioGroup/BaseRadioGroup.stories.d.ts +28 -0
- package/dist/src/components/BaseSwimlane/BaseSwimlane.stories.d.ts +25 -0
- package/dist/src/components/BaseTimer/BaseTimer.stories.d.ts +2 -1
- package/dist/src/components/BaseUnitToggle/BaseUnitToggle.stories.d.ts +2 -1
- package/dist/src/components/BaseVideo/BaseVideo.stories.d.ts +1 -1
- package/dist/src/components/BlockAudio/BlockAudio.stories.d.ts +1 -1
- package/dist/src/components/BlockCard/BlockCard.stories.d.ts +1 -1
- package/dist/src/components/BlockCardGroup/BlockCardGroup.stories.d.ts +1 -1
- package/dist/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.d.ts +1 -1
- package/dist/src/components/BlockCta/BlockCta.stories.d.ts +1 -1
- package/dist/src/components/BlockHeading/BlockHeading.stories.d.ts +1 -1
- package/dist/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.d.ts +1 -1
- package/dist/src/components/BlockImage/BlockImage.stories.d.ts +3 -2
- package/dist/src/components/BlockImageCarousel/BlockImageCarousel.stories.d.ts +1 -1
- package/dist/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.d.ts +1 -1
- package/dist/src/components/BlockImageComparison/BlockImageComparison.stories.d.ts +1 -1
- package/dist/src/components/BlockImageGallery/BlockImageGallery.stories.d.ts +1 -1
- package/dist/src/components/BlockInlineImage/BlockInlineImage.stories.d.ts +2 -1
- package/dist/src/components/BlockKeyPoints/BlockKeyPoints.stories.d.ts +1 -1
- package/dist/src/components/BlockLinkCard/BlockLinkCard.stories.d.ts +4 -2
- package/dist/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.d.ts +2 -1
- package/dist/src/components/BlockLinkTile/BlockLinkTile.stories.d.ts +2 -1
- package/dist/src/components/BlockListCards/BlockListCards.stories.d.ts +1 -1
- package/dist/src/components/BlockQuote/BlockQuote.stories.d.ts +2 -2
- package/dist/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.d.ts +1 -1
- package/dist/src/components/BlockStreamfield/BlockStreamfield.stories.d.ts +1 -1
- package/dist/src/components/BlockTable/BlockTable.stories.d.ts +1 -1
- package/dist/src/components/BlockTeaser/BlockTeaser.stories.d.ts +1 -1
- package/dist/src/components/BlockText/BlockText.stories.d.ts +1 -1
- package/dist/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.d.ts +1 -1
- package/dist/src/components/BlockVideo/BlockVideo.stories.d.ts +1 -1
- package/dist/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.d.ts +1 -1
- package/dist/src/components/CalendarButton/CalendarButton.stories.d.ts +2 -2
- package/dist/src/components/DetailHeadline/DetailHeadline.stories.d.ts +1 -1
- package/dist/src/components/DsnWidget/DsnWidget.stories.d.ts +1 -1
- package/dist/src/components/EventDetailHero/EventDetailHero.stories.d.ts +1 -1
- package/dist/src/components/FormContact/FormContact.stories.d.ts +2 -2
- package/dist/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.d.ts +2 -2
- package/dist/src/components/HeroLarge/HeroLarge.stories.d.ts +1 -1
- package/dist/src/components/HeroListingIndex/HeroListingIndex.stories.d.ts +1 -1
- package/dist/src/components/HeroMedia/HeroMedia.stories.d.ts +7 -2
- package/dist/src/components/HeroMedium/HeroMedium.stories.d.ts +19 -3
- package/dist/src/components/HeroMedium/HeroMedium.vue.d.ts +11 -0
- package/dist/src/components/HeroMedium/HeroSmall.stories.d.ts +90 -0
- package/dist/src/components/HomepageCarousel/HomepageCarousel.stories.d.ts +8 -6
- package/dist/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.d.ts +2 -1
- package/dist/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.d.ts +1 -1
- package/dist/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.d.ts +2 -1
- package/dist/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.d.ts +1 -1
- package/dist/src/components/HomepageStats/HomepageStats.stories.d.ts +2 -2
- package/dist/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.d.ts +3 -2
- package/dist/src/components/LogoCaltech/LogoCaltech.stories.d.ts +2 -2
- package/dist/src/components/LogoTribrand/LogoTribrand.stories.d.ts +3 -2
- package/dist/src/components/MissionDetailAbout/MissionDetailAbout.stories.d.ts +1 -1
- package/dist/src/components/MissionDetailHero/MissionDetailHero.stories.d.ts +2 -1
- package/dist/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.d.ts +2 -1
- package/dist/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.d.ts +1 -1
- package/dist/src/components/MissionDetailStats/MissionDetailStats.stories.d.ts +2 -1
- package/dist/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.d.ts +1 -1
- package/dist/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.d.ts +1 -1
- package/dist/src/components/MixinCarousel/MixinCarousel.stories.d.ts +1 -1
- package/dist/src/components/MixinVideoBg/MixinVideoBg.stories.d.ts +1 -9
- package/dist/src/components/NavDesktop/NavDesktop.stories.d.ts +2 -1
- package/dist/src/components/NavHeading/NavHeading.stories.d.ts +1 -1
- package/dist/src/components/NavHighlight/NavHighlight.stories.d.ts +1 -1
- package/dist/src/components/NavLinkList/NavLinkList.stories.d.ts +1 -1
- package/dist/src/components/NavLogoLinks/NavLogoLinks.stories.d.ts +1 -1
- package/dist/src/components/NavMobile/NavMobile.stories.d.ts +2 -1
- package/dist/src/components/NavSearchForm/NavSearchForm.stories.d.ts +1 -1
- package/dist/src/components/NavSecondary/NavSecondary.stories.d.ts +1 -1
- package/dist/src/components/NavSocial/NavSocial.stories.d.ts +2 -2
- package/dist/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.d.ts +1 -1
- package/dist/src/components/ParallaxContainer/ParallaxContainer.stories.d.ts +2 -2
- package/dist/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.d.ts +1 -1
- package/dist/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.d.ts +1 -1
- package/dist/src/components/SearchFilterGroup/SearchFilterGroup.stories.d.ts +2 -1
- package/dist/src/components/SearchInput/SearchInput.stories.d.ts +1 -1
- package/dist/src/components/SearchInput/SearchInput.vue.d.ts +9 -9
- package/dist/src/components/SearchPagination/SearchPagination.stories.d.ts +2 -1
- package/dist/src/components/SearchResultCard/SearchResultCard.stories.d.ts +2 -1
- package/dist/src/components/SearchResultGridItem/SearchResultGridItem.stories.d.ts +2 -1
- package/dist/src/components/SearchSelectMenu/SearchSelectMenu.stories.d.ts +1 -1
- package/dist/src/components/ShareButtons/ShareButtons.stories.d.ts +1 -1
- package/dist/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.d.ts +1 -1
- package/dist/src/components/SkipLink/SkipLink.stories.d.ts +1 -1
- package/dist/src/components/SwimlaneCTA/SwimlaneCTA.stories.d.ts +25 -0
- package/dist/src/components/TextArea/TextArea.stories.d.ts +30 -0
- package/dist/src/components/TextArea/TextArea.vue.d.ts +95 -0
- package/dist/src/components/TextInput/TextInput.stories.d.ts +33 -0
- package/dist/src/components/TextInput/TextInput.vue.d.ts +116 -0
- package/dist/src/components/TheFooter/TheFooter.stories.d.ts +6 -2
- package/dist/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailMore/TopicDetailMore.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.d.ts +1 -1
- package/dist/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.d.ts +1 -1
- package/dist/src/components/YearTicker/YearTicker.stories.d.ts +2 -2
- package/dist/src/docs/foundation/typography.stories.d.ts +0 -6
- package/dist/src/docs/guides/responsive.stories.d.ts +13 -0
- package/dist/src/docs/utils/ComponentItem.d.ts +2 -0
- package/dist/src/docs/utils/ComponentList.d.ts +2 -0
- package/dist/src/templates/PageContent/PageContent.stories.d.ts +1 -1
- package/dist/src/templates/PageEventDetail/PageEventDetail.stories.d.ts +1 -1
- package/dist/src/templates/PageNewsDetail/PageNewsDetail.stories.d.ts +44 -3178
- package/dist/src/templates/edu/PageEduNewsDetail.stories.d.ts +9 -772
- package/dist/style.css +1 -1
- package/lib/main.ts +2 -2
- package/package.json +3 -3
- package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +2 -2
- package/src/components/BackToTop/BackToTop.stories.js +3 -3
- package/src/components/BaseAudio/BaseAudio.stories.js +1 -1
- package/src/components/BaseButton/BaseButton.stories.ts +3 -2
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.js +39 -0
- package/src/components/BaseHeading/BaseHeading.stories.js +2 -2
- package/src/components/BaseImage/BaseImage.stories.ts +1 -1
- package/src/components/BaseImageCaption/BaseImageCaption.stories.js +1 -1
- package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +3 -1
- package/src/components/BaseLink/BaseLink.stories.js +3 -2
- package/src/components/BaseModal/BaseModal.stories.js +2 -2
- package/src/components/BasePlaceholder/BasePlaceholder.stories.js +3 -3
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.js +47 -0
- package/src/components/BaseSwimlane/BaseSwimlane.stories.js +45 -0
- package/src/components/BaseTag/BaseTag.stories.js +1 -1
- package/src/components/BaseTimer/BaseTimer.stories.js +2 -1
- package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +2 -1
- package/src/components/BaseVideo/BaseVideo.stories.js +1 -1
- package/src/components/BlockAudio/BlockAudio.stories.js +1 -1
- package/src/components/BlockCard/BlockCard.stories.js +1 -1
- package/src/components/BlockCardGroup/BlockCardGroup.stories.js +1 -1
- package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +1 -1
- package/src/components/BlockCta/BlockCta.stories.js +1 -1
- package/src/components/BlockHeading/BlockHeading.stories.js +1 -1
- package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +1 -1
- package/src/components/BlockImage/BlockImage.stories.js +3 -2
- package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +1 -1
- package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +1 -1
- package/src/components/BlockImageComparison/BlockImageComparison.stories.js +1 -1
- package/src/components/BlockImageGallery/BlockImageGallery.stories.js +1 -1
- package/src/components/BlockInlineImage/BlockInlineImage.stories.js +2 -1
- package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +1 -1
- package/src/components/BlockLinkCard/BlockLinkCard.stories.js +2 -1
- package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +2 -1
- package/src/components/BlockLinkTile/BlockLinkTile.stories.js +2 -1
- package/src/components/BlockListCards/BlockListCards.stories.js +1 -1
- package/src/components/BlockQuote/BlockQuote.stories.js +2 -2
- package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +1 -1
- package/src/components/BlockStreamfield/BlockStreamfield.stories.js +1 -1
- package/src/components/BlockTable/BlockTable.stories.js +1 -1
- package/src/components/BlockTeaser/BlockTeaser.stories.js +1 -1
- package/src/components/BlockText/BlockText.stories.js +1 -1
- package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +1 -1
- package/src/components/BlockVideo/BlockVideo.stories.js +1 -1
- package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +1 -1
- package/src/components/CalendarButton/CalendarButton.stories.js +3 -3
- package/src/components/DetailHeadline/DetailHeadline.stories.js +2 -2
- package/src/components/DsnWidget/DsnWidget.stories.js +2 -2
- package/src/components/EventDetailHero/EventDetailHero.stories.js +2 -2
- package/src/components/FormContact/FormContact.stories.js +3 -3
- package/src/components/FormContact/FormContact.vue +40 -87
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +3 -3
- package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +43 -90
- package/src/components/HeroLarge/HeroLarge.stories.js +2 -2
- package/src/components/HeroListingIndex/HeroListingIndex.stories.js +3 -2
- package/src/components/HeroMedia/HeroMedia.stories.js +8 -3
- package/src/components/HeroMedium/HeroMedium.stories.js +13 -2
- package/src/components/HeroMedium/HeroMedium.vue +21 -4
- package/src/components/HeroMedium/HeroSmall.stories.js +58 -0
- package/src/components/HomepageCarousel/HomepageCarousel.stories.js +3 -2
- package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +3 -2
- package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +2 -2
- package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +3 -2
- package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +2 -2
- package/src/components/HomepageStats/HomepageStats.stories.js +3 -3
- package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +4 -3
- package/src/components/Icons/Icons.stories.ts +1 -1
- package/src/components/LogoCaltech/LogoCaltech.stories.js +4 -4
- package/src/components/LogoTribrand/LogoTribrand.stories.js +6 -5
- package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +2 -2
- package/src/components/MissionDetailHero/MissionDetailHero.stories.js +3 -2
- package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +3 -2
- package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +2 -2
- package/src/components/MissionDetailStats/MissionDetailStats.stories.js +3 -2
- package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +2 -2
- package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +2 -2
- package/src/components/MixinCarousel/MixinCarousel.stories.js +3 -3
- package/src/components/MixinVideoBg/MixinVideoBg.stories.js +2 -12
- package/src/components/NavDesktop/NavDesktop.stories.js +3 -2
- package/src/components/NavDesktop/NavDesktopDropdown.vue +10 -10
- package/src/components/NavDesktop/NavDesktopDropdownContent.vue +1 -1
- package/src/components/NavDesktopEdu/NavDesktopEdu.stories.js +186 -0
- package/src/components/NavDesktopEdu/NavDesktopEdu.vue +315 -0
- package/src/components/{MixinDropdownToggle/MixinDropdownToggle.vue → NavDropdownToggle/NavDropdownToggle.vue} +2 -2
- package/src/components/NavHeading/NavHeading.stories.js +2 -2
- package/src/components/NavHeading/NavHeading.vue +2 -2
- package/src/components/NavHighlight/NavHighlight.stories.js +2 -2
- package/src/components/NavLinkList/NavLinkList.stories.js +2 -2
- package/src/components/NavLogoLinks/NavLogoLinks.stories.js +3 -6
- package/src/components/NavLogoLinks/NavLogoLinks.vue +0 -1
- package/src/components/NavMobile/NavMobile.stories.js +3 -2
- package/src/components/NavMobile/NavMobile.vue +40 -15
- package/src/components/NavMobile/NavMobileDropdown.vue +4 -4
- package/src/components/NavMobile/NavMobileEdu.stories.js +174 -0
- package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +5 -5
- package/src/components/NavSearchForm/NavSearchForm.stories.js +2 -2
- package/src/components/NavSecondary/NavSecondary.stories.js +2 -2
- package/src/components/NavSecondary/NavSecondaryDropdown.vue +5 -5
- package/src/components/NavSocial/NavSocial.stories.js +3 -3
- package/src/components/NavSocial/NavSocial.vue +70 -42
- package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +2 -2
- package/src/components/ParallaxContainer/ParallaxContainer.stories.js +4 -4
- package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +2 -2
- package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +2 -2
- package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +2 -1
- package/src/components/SearchInput/SearchInput.stories.js +1 -1
- package/src/components/SearchInput/SearchInput.vue +36 -36
- package/src/components/SearchPagination/SearchPagination.stories.js +2 -1
- package/src/components/SearchResultCard/SearchResultCard.stories.js +1 -1
- package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +2 -1
- package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +1 -1
- package/src/components/ShareButtons/ShareButtons.stories.js +2 -2
- package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +2 -2
- package/src/components/SkipLink/SkipLink.stories.js +2 -2
- package/src/components/SwimlaneCTA/SwimlaneCTA.stories.js +57 -0
- package/src/components/SwimlaneCTA/SwimlaneCTA.vue +12 -5
- package/src/components/TextArea/TextArea.stories.js +28 -0
- package/src/components/TextArea/TextArea.vue +74 -0
- package/src/components/TextInput/TextInput.stories.js +30 -0
- package/src/components/TextInput/TextInput.vue +87 -0
- package/src/components/TheFooter/TheFooter.stories.js +8 -3
- package/src/components/TheFooter/TheFooter.vue +31 -15
- package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +2 -2
- package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +2 -2
- package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +2 -2
- package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +2 -2
- package/src/components/TopicDetailMore/TopicDetailMore.stories.js +2 -2
- package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +2 -2
- package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +2 -2
- package/src/components/YearTicker/YearTicker.stories.js +3 -3
- package/src/docs/foundation/color.docs.mdx +1 -1
- package/src/docs/foundation/grid.stories.js +1 -1
- package/src/docs/foundation/grid_layouthelpers.stories.js +1 -1
- package/src/docs/foundation/themes.stories.js +1 -1
- package/src/docs/foundation/typography.stories.js +2 -3
- package/src/docs/getting-started/designer.docs.mdx +18 -0
- package/src/docs/getting-started/developer.docs.mdx +81 -0
- package/src/docs/guides/accessibility.docs.mdx +39 -0
- package/src/docs/guides/responsive.docs.mdx +67 -0
- package/src/docs/guides/responsive.stories.js +36 -0
- package/src/docs/introduction.docs.mdx +42 -0
- package/src/docs/overviews/base.docs.mdx +88 -0
- package/src/docs/overviews/blocks.docs.mdx.disabled +185 -0
- package/src/docs/overviews/components.docs.mdx +48 -0
- package/src/docs/overviews/forms.docs.mdx +59 -0
- package/src/docs/overviews/global.docs.mdx +15 -0
- package/src/docs/overviews/global_footers.docs.mdx +21 -0
- package/src/docs/overviews/global_headers.docs.mdx +29 -0
- package/src/docs/overviews/heroes.docs.mdx +57 -0
- package/src/docs/overviews/mixins.docs.mdx +39 -0
- package/src/docs/overviews/search.docs.mdx +30 -0
- package/src/docs/overviews/utilities.docs.mdx +22 -0
- package/src/docs/roadmap.docs.mdx +25 -0
- package/src/docs/utils/ComponentItem.jsx +102 -0
- package/src/docs/utils/ComponentList.jsx +17 -0
- package/src/templates/PageContent/PageContent.stories.js +1 -1
- package/src/templates/PageEventDetail/PageEventDetail.stories.js +1 -1
- package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +8 -8
- package/src/templates/edu/PageEduNewsDetail.stories.js +8 -3
- package/src/templates/edu/PageEduNewsDetail.vue +1 -1
- package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +0 -68
- package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +0 -68
- package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +0 -64
- package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +0 -77
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { TheFooterData } from './../TheFooter/TheFooter.stories'
|
|
2
|
+
import NavMobile from './NavMobile.vue'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Navigation/Headers/EDU/NavMobile',
|
|
6
|
+
component: NavMobile,
|
|
7
|
+
excludeStories: /.*Data$/,
|
|
8
|
+
parameters: {
|
|
9
|
+
viewMode: 'canvas',
|
|
10
|
+
viewport: {
|
|
11
|
+
defaultViewport: 'mobile2'
|
|
12
|
+
},
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: 'Doesn\'t look like EDU? Be sure to select "EDU Theme" in the toolbar dropdown.'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// data
|
|
22
|
+
export const NavMobileData = {
|
|
23
|
+
mobileBreadcrumb:
|
|
24
|
+
'{"/": [{"path": "http://www.jpl.nasa.gov/", "title": "Asteroid watch"}, {"path": "http://www.jpl.nasa.gov/", "title": "Asteroid fast facts"}, {"path": "http://www.jpl.nasa.gov/", "title": "Meteor shower viewing guide"}, {"path": "http://www.jpl.nasa.gov/", "title": "Yeoman\'s top 10"}, {"path": "http://www.jpl.nasa.gov/", "title": "Glossary of space rocks"}, {"path": "/robotics-at-jpl/", "title": "Robotics"}, {"path": "http://www.jpl.nasa.gov/", "title": "Apps"}, {"path": "/jpl-life/", "title": "JPL Life"}, {"path": "/stars-and-galaxies/", "title": "Stars and Galaxies"}, {"path": "/exoplanets/", "title": "Exoplanets"}, {"path": "/solar-system/", "title": "Solar System"}, {"path": "/asteroids/", "title": "Asteroids"}, {"path": "/comets/", "title": "Comets"}, {"path": "/technology/", "title": "Technology"}, {"path": "/mars/", "title": "Mars"}, {"path": "/earth/", "title": "Earth"}, {"path": "/climate-change/", "title": "Climate Change"}, {"path": "/earthquakes/", "title": "Earthquakes"}, {"path": "/weather/", "title": "Weather"}, {"path": "/robotics/", "title": "Robotics"}], "/missions/": [{"path": "/missions/", "title": "Current"}, {"path": "/missions/", "title": "Past"}, {"path": "/missions/", "title": "Future"}, {"path": "/missions/", "title": "Proposed"}, {"path": "/missions/", "title": "All"}], "/news/": [{"path": "/news/", "title": "All news"}, {"path": "/news/", "title": "Press kits"}, {"path": "/news/", "title": "Fact sheets"}, {"path": "/news/", "title": "Media Information"}, {"path": "/news/", "title": "JPL newsletter"}]}',
|
|
25
|
+
footerNavigation: TheFooterData.footerNavigation,
|
|
26
|
+
footerMoreFromJpl: TheFooterData.footerMoreFromJpl
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const NavMobileSecondaryNavData = [
|
|
30
|
+
{ path: '/custom', title: 'Secondary Nav' },
|
|
31
|
+
{
|
|
32
|
+
path: '/custom/placeholder-1',
|
|
33
|
+
title: 'First subpage'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: '/custom/placeholder-2',
|
|
37
|
+
title: 'Second subpage'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
path: '/custom/placeholder-3',
|
|
41
|
+
title: 'Third subpage'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: '/custom/placeholder-4',
|
|
45
|
+
title: 'Fourth subpage'
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
const NavMobileTertiaryNavData = [
|
|
50
|
+
{ path: '/go/test-site', title: 'Test Go Site', children: [] },
|
|
51
|
+
{
|
|
52
|
+
path: '/go/test-site/has-children',
|
|
53
|
+
title: 'Has Children',
|
|
54
|
+
children: [
|
|
55
|
+
{
|
|
56
|
+
path: '/go/test-site/has-children/level-3-no-children',
|
|
57
|
+
title: 'Lvl 3 No Children',
|
|
58
|
+
children: []
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: '/go/test-site/has-children/level-3-has-children',
|
|
62
|
+
title: 'Lvl 3 Has Children',
|
|
63
|
+
children: [
|
|
64
|
+
{
|
|
65
|
+
path: '/go/test-site/has-children/level-3-has-children/level-4-no-children-1',
|
|
66
|
+
title: 'Lvl 4 No Children 1',
|
|
67
|
+
children: []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
path: '/go/test-site/has-children/level-3-has-children/level-4-no-children-2',
|
|
71
|
+
title: 'Lvl 4 No Children 2',
|
|
72
|
+
children: []
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
path: '/go/test-site/has-children/level-3-no-children',
|
|
78
|
+
title: 'Lvl 3 No Children',
|
|
79
|
+
children: []
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{ path: '/go/test-site/no-children-1', title: 'No Children 1', children: [] },
|
|
84
|
+
{ path: '/go/test-site/no-children-2', title: 'No Children 2', children: [] },
|
|
85
|
+
{
|
|
86
|
+
path: '/go/test-site/has-children',
|
|
87
|
+
title: 'Has Children',
|
|
88
|
+
children: [
|
|
89
|
+
{
|
|
90
|
+
path: '/go/test-site/has-children/level-3-no-children',
|
|
91
|
+
title: 'Lvl 3 No Children',
|
|
92
|
+
children: []
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
path: '/go/test-site/has-children/level-3-has-children',
|
|
96
|
+
title: 'Lvl 3 Has Children',
|
|
97
|
+
children: [
|
|
98
|
+
{
|
|
99
|
+
path: '/go/test-site/has-children/level-3-has-children/level-4-no-children-1',
|
|
100
|
+
title: 'Lvl 4 No Children 1',
|
|
101
|
+
children: []
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
path: '/go/test-site/has-children/level-3-has-children/level-4-no-children-2',
|
|
105
|
+
title: 'Lvl 4 No Children 2',
|
|
106
|
+
children: []
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
path: '/go/test-site/has-children/level-3-no-children',
|
|
112
|
+
title: 'Lvl 3 No Children',
|
|
113
|
+
children: []
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
export const BaseStory = {
|
|
120
|
+
name: 'NavMobile',
|
|
121
|
+
args: {
|
|
122
|
+
data: NavMobileData,
|
|
123
|
+
headerVisible: true,
|
|
124
|
+
scrolledUp: false,
|
|
125
|
+
scrollTop: 0
|
|
126
|
+
},
|
|
127
|
+
render: (args) => ({
|
|
128
|
+
components: { NavMobile },
|
|
129
|
+
setup() {
|
|
130
|
+
return { args }
|
|
131
|
+
},
|
|
132
|
+
template: `<NavMobile
|
|
133
|
+
v-bind="args"
|
|
134
|
+
/>`
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export const WithSecondaryNav = {
|
|
139
|
+
args: {
|
|
140
|
+
data: NavMobileData,
|
|
141
|
+
headerVisible: true,
|
|
142
|
+
scrolledUp: false,
|
|
143
|
+
scrollTop: 0,
|
|
144
|
+
staticSecondaryData: NavMobileSecondaryNavData
|
|
145
|
+
},
|
|
146
|
+
render: (args) => ({
|
|
147
|
+
components: { NavMobile },
|
|
148
|
+
setup() {
|
|
149
|
+
return { args }
|
|
150
|
+
},
|
|
151
|
+
template: `<NavMobile
|
|
152
|
+
v-bind="args"
|
|
153
|
+
/>`
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export const WithTertiaryNav = {
|
|
158
|
+
args: {
|
|
159
|
+
data: NavMobileData,
|
|
160
|
+
headerVisible: true,
|
|
161
|
+
scrolledUp: false,
|
|
162
|
+
scrollTop: 0,
|
|
163
|
+
staticSecondaryData: NavMobileTertiaryNavData
|
|
164
|
+
},
|
|
165
|
+
render: (args) => ({
|
|
166
|
+
components: { NavMobile },
|
|
167
|
+
setup() {
|
|
168
|
+
return { args }
|
|
169
|
+
},
|
|
170
|
+
template: `<NavMobile
|
|
171
|
+
v-bind="args"
|
|
172
|
+
/>`
|
|
173
|
+
})
|
|
174
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="NavMobileSecondaryDropdown relative">
|
|
3
|
-
<
|
|
3
|
+
<NavDropdownToggle
|
|
4
4
|
:aria-expanded="dropdownVisible ? true : false"
|
|
5
5
|
:path="item.path"
|
|
6
6
|
class="w-full group cursor-pointer pl-12 flex items-center py-2 text-lg leading-tight"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
>
|
|
13
13
|
<span>{{ index === 0 ? 'Home' : item.title }}</span>
|
|
14
14
|
<IconCaret class="transform rotate-90 text-sm ml-2" />
|
|
15
|
-
</
|
|
15
|
+
</NavDropdownToggle>
|
|
16
16
|
<template v-if="dropdownVisible">
|
|
17
17
|
<slot>
|
|
18
18
|
<NavSecondaryDropdownContent
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
import { defineComponent } from 'vue'
|
|
29
29
|
import { mixinIsActivePath } from '../../utils/mixins'
|
|
30
30
|
import IconCaret from './../Icons/IconCaret.vue'
|
|
31
|
-
import
|
|
31
|
+
import NavDropdownToggle from './../NavDropdownToggle/NavDropdownToggle.vue'
|
|
32
32
|
import NavSecondaryDropdownContent from './../NavSecondary/NavSecondaryDropdownContent.vue'
|
|
33
33
|
|
|
34
34
|
export default defineComponent({
|
|
@@ -36,7 +36,7 @@ export default defineComponent({
|
|
|
36
36
|
|
|
37
37
|
components: {
|
|
38
38
|
IconCaret,
|
|
39
|
-
|
|
39
|
+
NavDropdownToggle,
|
|
40
40
|
NavSecondaryDropdownContent
|
|
41
41
|
},
|
|
42
42
|
props: {
|
|
@@ -103,7 +103,7 @@ export default defineComponent({
|
|
|
103
103
|
</script>
|
|
104
104
|
<style lang="scss">
|
|
105
105
|
.NavMobileSecondaryDropdown {
|
|
106
|
-
.
|
|
106
|
+
.NavDropdownToggle {
|
|
107
107
|
span {
|
|
108
108
|
@apply border-b border-transparent;
|
|
109
109
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import NavSearchForm from './NavSearchForm.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: '
|
|
4
|
+
title: 'Navigation/Elements/NavSearchForm',
|
|
5
5
|
component: NavSearchForm,
|
|
6
6
|
excludeStories: /.*Data$/
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const BaseStory = {
|
|
10
10
|
args: {
|
|
11
11
|
mobile: false
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import NavSecondary from './NavSecondary.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: '
|
|
4
|
+
title: 'Navigation/Secondary Navigation/NavSecondary',
|
|
5
5
|
component: NavSecondary,
|
|
6
6
|
excludeStories: /.*Data$/,
|
|
7
7
|
parameters: {
|
|
@@ -18,7 +18,7 @@ export const NavSecondaryData = {
|
|
|
18
18
|
'[{"path": "/go/test-site", "title": "Test Go Site", "children": []}, {"path": "/go/test-site/has-children", "title": "Has Children", "children": [{"path": "/go/test-site/has-children/level-3-has-children", "title": "Lvl 3 Has Children", "children": [{"path": "/go/test-site/has-children/level-3-has-children/level-4-no-children-1", "title": "Lvl 4 No Children 1"}, {"path": "/go/test-site/has-children/level-3-has-children/level-4-no-children-2", "title": "Lvl 4 No Children 2"}]}, {"path": "/go/test-site/has-children/level-3-no-children", "title": "Lvl 3 No Children", "children": []}]}, {"path": "/go/test-site/no-children-1", "title": "No Children 1", "children": []}, {"path": "/go/test-site/no-children-2", "title": "No Children 2", "children": []}, {"path": "/go/test-site/has-children", "title": "Has Children", "children": [{"path": "/go/test-site/has-children/level-3-has-children", "title": "Lvl 3 Has Children", "children": [{"path": "/go/test-site/has-children/level-3-has-children/level-4-no-children-1", "title": "Lvl 4 No Children 1"}, {"path": "/go/test-site/has-children/level-3-has-children/level-4-no-children-2", "title": "Lvl 4 No Children 2"}]}, {"path": "/go/test-site/has-children/level-3-no-children", "title": "Lvl 3 No Children", "children": []}]}]'
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export const
|
|
21
|
+
export const BaseStory = {
|
|
22
22
|
name: 'NavSecondary',
|
|
23
23
|
args: { breadcrumb: NavSecondaryData.breadcrumb }
|
|
24
24
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
'mr-auto': index === 0
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
9
|
+
<NavDropdownToggle
|
|
10
10
|
:aria-expanded="dropdownVisible ? true : false"
|
|
11
11
|
:path="item.path"
|
|
12
12
|
class="font-medium border-t-2 border-transparent block px-3 py-2"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<span>{{ item.title }}</span>
|
|
30
30
|
<IconCaret class="transform rotate-90 text-sm ml-2 pl-2 -mt-px" />
|
|
31
31
|
</span>
|
|
32
|
-
</
|
|
32
|
+
</NavDropdownToggle>
|
|
33
33
|
<transition name="navfade">
|
|
34
34
|
<div
|
|
35
35
|
v-if="dropdownVisible"
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
<script lang="ts">
|
|
49
49
|
import { defineComponent } from 'vue'
|
|
50
50
|
import IconCaret from './../Icons/IconCaret.vue'
|
|
51
|
-
import
|
|
51
|
+
import NavDropdownToggle from './../NavDropdownToggle/NavDropdownToggle.vue'
|
|
52
52
|
import NavSecondaryDropdownContent from './../NavSecondary/NavSecondaryDropdownContent.vue'
|
|
53
53
|
|
|
54
54
|
export default defineComponent({
|
|
55
55
|
name: 'NavSecondaryDropdown',
|
|
56
56
|
components: {
|
|
57
57
|
IconCaret,
|
|
58
|
-
|
|
58
|
+
NavDropdownToggle,
|
|
59
59
|
NavSecondaryDropdownContent
|
|
60
60
|
},
|
|
61
61
|
props: {
|
|
@@ -126,7 +126,7 @@ export default defineComponent({
|
|
|
126
126
|
</script>
|
|
127
127
|
<style lang="scss">
|
|
128
128
|
.NavSecondaryDropdown {
|
|
129
|
-
.
|
|
129
|
+
.NavDropdownToggle {
|
|
130
130
|
&.-open {
|
|
131
131
|
> span {
|
|
132
132
|
@apply border-black text-gray-dark #{!important};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import NavSocial from './NavSocial.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: '
|
|
4
|
+
title: 'Navigation/Elements/NavSocial',
|
|
5
5
|
component: NavSocial,
|
|
6
6
|
excludeStories: /.*Data$/
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const
|
|
9
|
+
export const BaseStory = { args: { dark: false } }
|
|
10
10
|
|
|
11
|
-
export const
|
|
11
|
+
export const Dark = {
|
|
12
12
|
args: { dark: true },
|
|
13
13
|
render: (args) => ({
|
|
14
14
|
components: { NavSocial },
|
|
@@ -1,54 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="NavSocial relative flex flex-row items-start border-collapse">
|
|
3
3
|
<BaseButton
|
|
4
|
+
v-for="(item, index) in socialLinks"
|
|
5
|
+
:key="index"
|
|
4
6
|
:variant="dark ? 'dark' : 'social'"
|
|
5
7
|
class="-facebook w-12 h-12 text-2xl"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
:class="{
|
|
9
|
+
'-facebook': item.facebook,
|
|
10
|
+
'-twitter': item.twitter,
|
|
11
|
+
'-instagram': item.instagram,
|
|
12
|
+
'-youtube': item.youtube
|
|
13
|
+
}"
|
|
14
|
+
:href="item.url"
|
|
15
|
+
:aria-label="item.label"
|
|
8
16
|
target="_blank"
|
|
9
17
|
rel="noopener"
|
|
10
18
|
>
|
|
11
19
|
<template #icon>
|
|
12
|
-
<IconSocialFacebook />
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
:variant="dark ? 'dark' : 'social'"
|
|
17
|
-
class="-twitter w-12 h-12 text-2xl"
|
|
18
|
-
:class="{ '-ml-px': !dark }"
|
|
19
|
-
href="https://x.com/NASAJPL"
|
|
20
|
-
aria-label="Follow JPL on X"
|
|
21
|
-
target="_blank"
|
|
22
|
-
rel="noopener"
|
|
23
|
-
>
|
|
24
|
-
<template #icon>
|
|
25
|
-
<IconSocialTwitter />
|
|
26
|
-
</template>
|
|
27
|
-
</BaseButton>
|
|
28
|
-
<BaseButton
|
|
29
|
-
:variant="dark ? 'dark' : 'social'"
|
|
30
|
-
class="-instagram w-12 h-12 text-2xl"
|
|
31
|
-
:class="{ '-ml-px': !dark }"
|
|
32
|
-
href="http://instagram.com/nasajpl"
|
|
33
|
-
aria-label="Follow JPL on Instagram"
|
|
34
|
-
target="_blank"
|
|
35
|
-
rel="noopener"
|
|
36
|
-
>
|
|
37
|
-
<template #icon>
|
|
38
|
-
<IconSocialInstagram />
|
|
39
|
-
</template>
|
|
40
|
-
</BaseButton>
|
|
41
|
-
<BaseButton
|
|
42
|
-
:variant="dark ? 'dark' : 'social'"
|
|
43
|
-
class="-youtube w-12 h-12 text-3xl"
|
|
44
|
-
:class="{ '-ml-px': !dark }"
|
|
45
|
-
href="http://www.youtube.com/user/JPLnews?sub_confirmation=1"
|
|
46
|
-
aria-label="Follow JPL on YouTube"
|
|
47
|
-
target="_blank"
|
|
48
|
-
rel="noopener"
|
|
49
|
-
>
|
|
50
|
-
<template #icon>
|
|
51
|
-
<IconSocialYoutube />
|
|
20
|
+
<IconSocialFacebook v-if="item.facebook" />
|
|
21
|
+
<IconSocialTwitter v-else-if="item.twitter" />
|
|
22
|
+
<IconSocialInstagram v-else-if="item.instagram" />
|
|
23
|
+
<IconSocialYoutube v-else-if="item.youtube" />
|
|
52
24
|
</template>
|
|
53
25
|
</BaseButton>
|
|
54
26
|
</div>
|
|
@@ -61,6 +33,52 @@ import IconSocialTwitter from './../Icons/IconSocialTwitter.vue'
|
|
|
61
33
|
import IconSocialInstagram from './../Icons/IconSocialInstagram.vue'
|
|
62
34
|
import IconSocialYoutube from './../Icons/IconSocialYoutube.vue'
|
|
63
35
|
|
|
36
|
+
const wwwSocialLinks = [
|
|
37
|
+
{
|
|
38
|
+
facebook: true,
|
|
39
|
+
url: 'http://www.facebook.com/NASAJPL',
|
|
40
|
+
label: 'Follow JPL on Facebook'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
twitter: true,
|
|
44
|
+
url: 'https://x.com/NASAJPL',
|
|
45
|
+
label: 'Follow JPL on X'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
instagram: true,
|
|
49
|
+
url: 'http://instagram.com/nasajpl',
|
|
50
|
+
label: 'Follow JPL on Instagram'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
youtube: true,
|
|
54
|
+
url: 'http://www.youtube.com/user/JPLnews?sub_confirmation=1',
|
|
55
|
+
label: 'Follow JPL on YouTube'
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
const eduSocialLinks = [
|
|
60
|
+
{
|
|
61
|
+
facebook: true,
|
|
62
|
+
url: 'http://facebook.com/nasajpledu',
|
|
63
|
+
label: 'Follow JPL Education on Facebook'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
twitter: true,
|
|
67
|
+
url: 'http://x.com/nasajpl_edu',
|
|
68
|
+
label: 'Follow JPL Education on X'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
instagram: true,
|
|
72
|
+
url: 'http://instagram.com/nasajpl_edu',
|
|
73
|
+
label: 'Follow JPL Education on Instagram'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
youtube: true,
|
|
77
|
+
url: 'https://www.youtube.com/@nasajpledu3401',
|
|
78
|
+
label: 'Follow JPL Education on YouTube'
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
|
|
64
82
|
export default defineComponent({
|
|
65
83
|
name: 'NavSocial',
|
|
66
84
|
components: {
|
|
@@ -75,6 +93,16 @@ export default defineComponent({
|
|
|
75
93
|
type: Boolean,
|
|
76
94
|
required: false,
|
|
77
95
|
default: false
|
|
96
|
+
},
|
|
97
|
+
edu: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
required: false,
|
|
100
|
+
default: false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
computed: {
|
|
104
|
+
socialLinks() {
|
|
105
|
+
return this.edu ? eduSocialLinks : wwwSocialLinks
|
|
78
106
|
}
|
|
79
107
|
}
|
|
80
108
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import NewsDetailMediaContact from './NewsDetailMediaContact.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: 'WWW/NewsDetail/NewsDetailMediaContact',
|
|
4
|
+
title: 'Components/WWW/NewsDetail/NewsDetailMediaContact',
|
|
5
5
|
component: NewsDetailMediaContact
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ const contacts = [
|
|
|
16
16
|
}
|
|
17
17
|
]
|
|
18
18
|
|
|
19
|
-
export const
|
|
19
|
+
export const BaseStory = { args: { contacts, releaseNumber: '2020-140' } }
|
|
20
20
|
|
|
21
21
|
export const Multiple = {
|
|
22
22
|
args: {
|
|
@@ -2,7 +2,7 @@ import ParallaxElement from './../ParallaxElement/ParallaxElement.vue'
|
|
|
2
2
|
import ParallaxContainer from './ParallaxContainer.vue'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title: 'Components/ParallaxContainer',
|
|
5
|
+
title: 'Components/Utilities/ParallaxContainer',
|
|
6
6
|
component: ParallaxContainer,
|
|
7
7
|
decorators: [
|
|
8
8
|
() => ({
|
|
@@ -39,9 +39,9 @@ const ParallaxContainerTemplate = (args) => ({
|
|
|
39
39
|
</ParallaxContainer>`
|
|
40
40
|
})
|
|
41
41
|
|
|
42
|
-
export const
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
export const BaseStory = ParallaxContainerTemplate.bind({})
|
|
43
|
+
BaseStory.storyName = 'ParallaxContainer'
|
|
44
|
+
BaseStory.args = {
|
|
45
45
|
invert: true,
|
|
46
46
|
overflow: true
|
|
47
47
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PodcastSeriesCarousel from './PodcastSeriesCarousel.vue'
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: 'WWW/PodcastDetail/PodcastSeriesCarousel',
|
|
4
|
+
title: 'Components/WWW/PodcastDetail/PodcastSeriesCarousel',
|
|
5
5
|
component: PodcastSeriesCarousel,
|
|
6
6
|
parameters: {
|
|
7
7
|
docs: {
|
|
@@ -225,7 +225,7 @@ export const PodcastSeriesCarouselData = {
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
export const
|
|
228
|
+
export const BaseStory = {
|
|
229
229
|
args: {
|
|
230
230
|
series: PodcastSeriesCarouselData.series,
|
|
231
231
|
initialSeasonId: PodcastSeriesCarouselData.parent?.id
|
|
@@ -2,7 +2,7 @@ import RoboticsDetailStats from './RoboticsDetailStats.vue'
|
|
|
2
2
|
import RoboticsDetailStatsMini from './RoboticsDetailStatsMini.vue'
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
title: 'WWW/RoboticsDetail/RoboticsDetailStats',
|
|
5
|
+
title: 'Components/WWW/RoboticsDetail/RoboticsDetailStats',
|
|
6
6
|
component: RoboticsDetailStats,
|
|
7
7
|
subcomponents: { RoboticsDetailStatsMini },
|
|
8
8
|
decorators: [
|
|
@@ -67,7 +67,7 @@ export const RoboticsDetailStatsData = {
|
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
export const
|
|
70
|
+
export const BaseStory = {
|
|
71
71
|
args: {
|
|
72
72
|
mass: RoboticsDetailStatsData.mass,
|
|
73
73
|
height: RoboticsDetailStatsData.height,
|
|
@@ -1,6 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { ref, onMounted } from 'vue'
|
|
3
|
+
import IconSearch from './../Icons/IconSearch.vue'
|
|
4
|
+
|
|
5
|
+
interface SearchInputProps {
|
|
6
|
+
underlinedInput?: boolean
|
|
7
|
+
underlinedInputValue?: string
|
|
8
|
+
placeholder?: string
|
|
9
|
+
autoFocus?: boolean
|
|
10
|
+
defaultColors?: boolean
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// define props
|
|
14
|
+
const props = withDefaults(defineProps<SearchInputProps>(), {
|
|
15
|
+
underlinedInput: false,
|
|
16
|
+
underlinedInputValue: undefined,
|
|
17
|
+
placeholder: '',
|
|
18
|
+
autoFocus: false,
|
|
19
|
+
defaultColors: true
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const emit = defineEmits(['input', 'esc'])
|
|
23
|
+
|
|
24
|
+
const model = defineModel()
|
|
25
|
+
const isFocused = ref(false)
|
|
26
|
+
const searchQueryRef = ref(undefined)
|
|
27
|
+
|
|
28
|
+
onMounted(() => {
|
|
29
|
+
if (props.autoFocus && searchQueryRef.value) {
|
|
30
|
+
const inputField = searchQueryRef.value as HTMLElement
|
|
31
|
+
inputField.focus()
|
|
32
|
+
isFocused.value = true
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
</script>
|
|
1
36
|
<template>
|
|
2
37
|
<!--
|
|
3
|
-
A somewhat generic component that can be used for
|
|
38
|
+
A somewhat generic component that can be used for handling search input
|
|
4
39
|
We do this in at least two places:
|
|
5
40
|
* on pages (such as the search page and listing pages)
|
|
6
41
|
* for site-wide search -->
|
|
@@ -48,41 +83,6 @@
|
|
|
48
83
|
/>
|
|
49
84
|
</div>
|
|
50
85
|
</template>
|
|
51
|
-
<script setup lang="ts">
|
|
52
|
-
import { ref, onMounted } from 'vue'
|
|
53
|
-
import IconSearch from './../Icons/IconSearch.vue'
|
|
54
|
-
|
|
55
|
-
interface SearchInputProps {
|
|
56
|
-
underlinedInput?: boolean
|
|
57
|
-
underlinedInputValue?: string
|
|
58
|
-
placeholder?: string
|
|
59
|
-
autoFocus?: boolean
|
|
60
|
-
defaultColors?: boolean
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// define props
|
|
64
|
-
const props = withDefaults(defineProps<SearchInputProps>(), {
|
|
65
|
-
underlinedInput: false,
|
|
66
|
-
underlinedInputValue: undefined,
|
|
67
|
-
placeholder: '',
|
|
68
|
-
autoFocus: false,
|
|
69
|
-
defaultColors: true
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
const emit = defineEmits(['input', 'esc'])
|
|
73
|
-
|
|
74
|
-
const model = defineModel()
|
|
75
|
-
const isFocused = ref(false)
|
|
76
|
-
const searchQueryRef = ref(undefined)
|
|
77
|
-
|
|
78
|
-
onMounted(() => {
|
|
79
|
-
if (props.autoFocus && searchQueryRef.value) {
|
|
80
|
-
const inputField = searchQueryRef.value as HTMLElement
|
|
81
|
-
inputField.focus()
|
|
82
|
-
isFocused.value = true
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
</script>
|
|
86
86
|
<style lang="scss" scoped>
|
|
87
87
|
.custom-focus {
|
|
88
88
|
input {
|
|
@@ -36,7 +36,7 @@ export const SearchResultCardData = {
|
|
|
36
36
|
featured: false
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export const
|
|
39
|
+
export const BaseStory = { name: 'Standard Result', args: SearchResultCardData }
|
|
40
40
|
|
|
41
41
|
export const FeaturedResult = {
|
|
42
42
|
args: { ...SearchResultCardData, featured: true }
|
|
@@ -46,7 +46,8 @@ export const SearchResultGridCardData = {
|
|
|
46
46
|
headingLevel: 'h2'
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export const
|
|
49
|
+
export const BaseStory = {
|
|
50
|
+
name: 'Standard Result',
|
|
50
51
|
args: {
|
|
51
52
|
...SearchResultGridCardData.page,
|
|
52
53
|
pageContentType: SearchResultGridCardData.page.content_type
|