@explorer-1/vue 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -0
  3. package/components.d.ts +215 -0
  4. package/index.html +18 -0
  5. package/lib/main.ts +78 -0
  6. package/package.json +54 -0
  7. package/postcss.config.js +7 -0
  8. package/public/edu/.gitkeep +0 -0
  9. package/public/edu/explorer-1/bg-stars-edu.png +0 -0
  10. package/public/edu/explorer-1/bg-stars.jpg +0 -0
  11. package/public/explorer-1/bg-stars-edu.png +0 -0
  12. package/public/explorer-1/bg-stars.jpg +0 -0
  13. package/src/App.vue +30 -0
  14. package/src/assets/fonts/README.md +12 -0
  15. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-Bold.woff2 +0 -0
  16. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-BoldItalic.woff2 +0 -0
  17. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBold.woff2 +0 -0
  18. package/src/assets/fonts/archivo-narrow/ArchivoNarrow-SemiBoldItalic.woff2 +0 -0
  19. package/src/assets/fonts/metropolis/Metropolis-Bold.woff2 +0 -0
  20. package/src/assets/fonts/metropolis/Metropolis-BoldItalic.woff2 +0 -0
  21. package/src/assets/fonts/metropolis/Metropolis-ExtraBold.woff2 +0 -0
  22. package/src/assets/fonts/metropolis/Metropolis-Medium.woff2 +0 -0
  23. package/src/assets/fonts/metropolis/Metropolis-MediumItalic.woff2 +0 -0
  24. package/src/assets/fonts/metropolis/Metropolis-Regular.woff2 +0 -0
  25. package/src/assets/fonts/metropolis/Metropolis-RegularItalic.woff2 +0 -0
  26. package/src/assets/fonts/metropolis/Metropolis-SemiBold.woff2 +0 -0
  27. package/src/assets/fonts/metropolis/Metropolis-SemiBoldItalic.woff2 +0 -0
  28. package/src/assets/scss/styles.scss +1 -0
  29. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.stories.js +156 -0
  30. package/src/components/AsteroidWatchWidget/AsteroidWatchWidget.vue +156 -0
  31. package/src/components/BackToTop/BackToTop.stories.js +24 -0
  32. package/src/components/BackToTop/BackToTop.vue +76 -0
  33. package/src/components/BaseAudio/BaseAudio.stories.js +29 -0
  34. package/src/components/BaseAudio/BaseAudio.vue +359 -0
  35. package/src/components/BaseButton/BaseButton.stories.ts +65 -0
  36. package/src/components/BaseButton/BaseButton.vue +114 -0
  37. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.stories.mdx +68 -0
  38. package/src/components/BaseCheckboxGroup/BaseCheckboxGroup.vue +101 -0
  39. package/src/components/BaseHeading/BaseHeading.stories.js +75 -0
  40. package/src/components/BaseHeading/BaseHeading.vue +58 -0
  41. package/src/components/BaseImage/BaseImage.stories.ts +52 -0
  42. package/src/components/BaseImage/BaseImage.vue +120 -0
  43. package/src/components/BaseImageCaption/BaseImageCaption.stories.js +27 -0
  44. package/src/components/BaseImageCaption/BaseImageCaption.vue +51 -0
  45. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.stories.js +73 -0
  46. package/src/components/BaseImagePlaceholder/BaseImagePlaceholder.vue +90 -0
  47. package/src/components/BaseLightboxCloseButton/BaseLightboxCloseButton.vue +45 -0
  48. package/src/components/BaseLightboxOpenButton/BaseLightboxOpenButton.vue +46 -0
  49. package/src/components/BaseLink/BaseLink.stories.js +47 -0
  50. package/src/components/BaseLink/BaseLink.vue +227 -0
  51. package/src/components/BaseModal/BaseModal.stories.js +90 -0
  52. package/src/components/BaseModal/BaseModal.vue +54 -0
  53. package/src/components/BaseModal/BaseModalDialog.vue +59 -0
  54. package/src/components/BasePlaceholder/BasePlaceholder.stories.js +29 -0
  55. package/src/components/BasePlaceholder/BasePlaceholder.vue +30 -0
  56. package/src/components/BaseRadioGroup/BaseRadioGroup.stories.mdx +68 -0
  57. package/src/components/BaseRadioGroup/BaseRadioGroup.vue +102 -0
  58. package/src/components/BaseSwimlane/BaseSwimlane.stories.mdx +64 -0
  59. package/src/components/BaseSwimlane/BaseSwimlane.vue +204 -0
  60. package/src/components/BaseTag/BaseTag.stories.js +34 -0
  61. package/src/components/BaseTag/BaseTag.vue +36 -0
  62. package/src/components/BaseTimer/BaseTimer.stories.js +78 -0
  63. package/src/components/BaseTimer/BaseTimer.test.js +15 -0
  64. package/src/components/BaseTimer/BaseTimer.vue +270 -0
  65. package/src/components/BaseUnitToggle/BaseUnitToggle.stories.js +86 -0
  66. package/src/components/BaseUnitToggle/BaseUnitToggle.test.js +26 -0
  67. package/src/components/BaseUnitToggle/BaseUnitToggle.vue +255 -0
  68. package/src/components/BaseVideo/BaseVideo.stories.js +31 -0
  69. package/src/components/BaseVideo/BaseVideo.vue +73 -0
  70. package/src/components/BlockAnchor/BlockAnchor.vue +38 -0
  71. package/src/components/BlockAudio/BlockAudio.stories.js +29 -0
  72. package/src/components/BlockAudio/BlockAudio.vue +78 -0
  73. package/src/components/BlockCard/BlockCard.stories.js +24 -0
  74. package/src/components/BlockCard/BlockCard.vue +88 -0
  75. package/src/components/BlockCardGroup/BlockCardGroup.stories.js +71 -0
  76. package/src/components/BlockCardGroup/BlockCardGroup.vue +61 -0
  77. package/src/components/BlockCircleImageCard/BlockCircleImageCard.stories.js +55 -0
  78. package/src/components/BlockCircleImageCard/BlockCircleImageCard.vue +120 -0
  79. package/src/components/BlockCta/BlockCta.stories.js +35 -0
  80. package/src/components/BlockCta/BlockCta.vue +55 -0
  81. package/src/components/BlockHeading/BlockHeading.stories.js +22 -0
  82. package/src/components/BlockHeading/BlockHeading.vue +27 -0
  83. package/src/components/BlockIframeEmbed/BlockIframeEmbed.stories.js +40 -0
  84. package/src/components/BlockIframeEmbed/BlockIframeEmbed.vue +84 -0
  85. package/src/components/BlockImage/BlockImage.stories.js +137 -0
  86. package/src/components/BlockImage/BlockImage.vue +48 -0
  87. package/src/components/BlockImage/BlockImageFullBleed.vue +119 -0
  88. package/src/components/BlockImage/BlockImageStandard.vue +106 -0
  89. package/src/components/BlockImageCarousel/BlockImageCarousel.stories.js +108 -0
  90. package/src/components/BlockImageCarousel/BlockImageCarousel.vue +201 -0
  91. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.stories.js +63 -0
  92. package/src/components/BlockImageCarouselItem/BlockImageCarouselItem.vue +120 -0
  93. package/src/components/BlockImageComparison/BlockImageComparison.stories.js +46 -0
  94. package/src/components/BlockImageComparison/BlockImageComparison.vue +59 -0
  95. package/src/components/BlockImageGallery/BlockImageGallery.stories.js +55 -0
  96. package/src/components/BlockImageGallery/BlockImageGallery.vue +128 -0
  97. package/src/components/BlockInlineImage/BlockInlineImage.stories.js +68 -0
  98. package/src/components/BlockInlineImage/BlockInlineImage.vue +124 -0
  99. package/src/components/BlockKeyPoints/BlockKeyPoints.stories.js +28 -0
  100. package/src/components/BlockKeyPoints/BlockKeyPoints.vue +48 -0
  101. package/src/components/BlockLinkCard/BlockLinkCard.stories.js +102 -0
  102. package/src/components/BlockLinkCard/BlockLinkCard.vue +197 -0
  103. package/src/components/BlockLinkCarousel/BlockLinkCarousel.stories.js +217 -0
  104. package/src/components/BlockLinkCarousel/BlockLinkCarousel.vue +68 -0
  105. package/src/components/BlockLinkTile/BlockLinkTile.stories.js +72 -0
  106. package/src/components/BlockLinkTile/BlockLinkTile.vue +193 -0
  107. package/src/components/BlockListCards/BlockListCards.stories.js +69 -0
  108. package/src/components/BlockListCards/BlockListCards.vue +129 -0
  109. package/src/components/BlockQuote/BlockQuote.stories.js +84 -0
  110. package/src/components/BlockQuote/BlockQuote.vue +87 -0
  111. package/src/components/BlockRelatedLinks/BlockRelatedLinks.stories.js +60 -0
  112. package/src/components/BlockRelatedLinks/BlockRelatedLinks.vue +77 -0
  113. package/src/components/BlockRelatedLinks/RelatedLink.vue +85 -0
  114. package/src/components/BlockStreamfield/BlockStreamfield.stories.js +88 -0
  115. package/src/components/BlockStreamfield/BlockStreamfield.vue +333 -0
  116. package/src/components/BlockTable/BlockTable.stories.js +20 -0
  117. package/src/components/BlockTable/BlockTable.vue +73 -0
  118. package/src/components/BlockTeaser/BlockTeaser.stories.js +74 -0
  119. package/src/components/BlockTeaser/BlockTeaser.test.js +12 -0
  120. package/src/components/BlockTeaser/BlockTeaser.vue +174 -0
  121. package/src/components/BlockText/BlockText.stories.js +21 -0
  122. package/src/components/BlockText/BlockText.vue +44 -0
  123. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.stories.js +19 -0
  124. package/src/components/BlockTwitterEmbed/BlockTwitterEmbed.vue +61 -0
  125. package/src/components/BlockVideo/BlockVideo.stories.js +23 -0
  126. package/src/components/BlockVideo/BlockVideo.vue +41 -0
  127. package/src/components/BlockVideoEmbed/BlockVideoEmbed.stories.js +20 -0
  128. package/src/components/BlockVideoEmbed/BlockVideoEmbed.vue +71 -0
  129. package/src/components/CalendarButton/CalendarButton.stories.js +36 -0
  130. package/src/components/CalendarButton/CalendarButton.vue +86 -0
  131. package/src/components/DetailHeadline/DetailHeadline.stories.js +48 -0
  132. package/src/components/DetailHeadline/DetailHeadline.vue +143 -0
  133. package/src/components/DsnWidget/DsnWidget.stories.js +29 -0
  134. package/src/components/DsnWidget/DsnWidget.vue +96 -0
  135. package/src/components/EventCard/EventCard.vue +188 -0
  136. package/src/components/EventDetailHero/EventDetailHero.stories.js +53 -0
  137. package/src/components/EventDetailHero/EventDetailHero.vue +64 -0
  138. package/src/components/FormContact/FormContact.stories.js +16 -0
  139. package/src/components/FormContact/FormContact.vue +202 -0
  140. package/src/components/FormNewsletterSignup/FormNewsletterSignup.stories.js +16 -0
  141. package/src/components/FormNewsletterSignup/FormNewsletterSignup.vue +355 -0
  142. package/src/components/HeroLarge/HeroLarge.stories.js +46 -0
  143. package/src/components/HeroLarge/HeroLarge.vue +93 -0
  144. package/src/components/HeroListingIndex/HeroListingIndex.stories.js +156 -0
  145. package/src/components/HeroListingIndex/HeroListingIndex.vue +80 -0
  146. package/src/components/HeroMedia/HeroMedia.stories.js +135 -0
  147. package/src/components/HeroMedia/HeroMedia.vue +174 -0
  148. package/src/components/HeroMedium/HeroMedium.stories.js +73 -0
  149. package/src/components/HeroMedium/HeroMedium.vue +166 -0
  150. package/src/components/HomepageCarousel/HomepageCarousel.stories.js +112 -0
  151. package/src/components/HomepageCarousel/HomepageCarousel.vue +382 -0
  152. package/src/components/HomepageCarouselItem/HomepageCarouselItem.stories.js +60 -0
  153. package/src/components/HomepageCarouselItem/HomepageCarouselItem.vue +168 -0
  154. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.stories.js +35 -0
  155. package/src/components/HomepageEmbedBlock/HomepageEmbedBlock.vue +39 -0
  156. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.stories.js +93 -0
  157. package/src/components/HomepageFeaturedRobot/HomepageFeaturedRobot.vue +129 -0
  158. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.stories.js +153 -0
  159. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarousel.vue +282 -0
  160. package/src/components/HomepageMissionsCarousel/HomepageMissionsCarouselItem.vue +143 -0
  161. package/src/components/HomepageStats/HomepageStats.stories.js +155 -0
  162. package/src/components/HomepageStats/HomepageStats.vue +362 -0
  163. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.stories.js +90 -0
  164. package/src/components/HomepageTeaserBlock/HomepageTeaserBlock.vue +156 -0
  165. package/src/components/HomepageTeaserBlock/HomepageTeaserBlockCardImage.vue +58 -0
  166. package/src/components/Icons/Icon360.vue +29 -0
  167. package/src/components/Icons/IconArrow.vue +26 -0
  168. package/src/components/Icons/IconArrows.vue +43 -0
  169. package/src/components/Icons/IconAudio.vue +27 -0
  170. package/src/components/Icons/IconBook.vue +21 -0
  171. package/src/components/Icons/IconBookUser.vue +21 -0
  172. package/src/components/Icons/IconBriefcase.vue +21 -0
  173. package/src/components/Icons/IconCalendar.vue +25 -0
  174. package/src/components/Icons/IconCaret.vue +26 -0
  175. package/src/components/Icons/IconCheckbox.vue +26 -0
  176. package/src/components/Icons/IconCheckboxSelected.vue +35 -0
  177. package/src/components/Icons/IconClose.vue +27 -0
  178. package/src/components/Icons/IconCloseLightbox.vue +25 -0
  179. package/src/components/Icons/IconDownload.vue +31 -0
  180. package/src/components/Icons/IconDropdown.vue +25 -0
  181. package/src/components/Icons/IconEnvelope.vue +21 -0
  182. package/src/components/Icons/IconExpand.vue +28 -0
  183. package/src/components/Icons/IconExternal.vue +25 -0
  184. package/src/components/Icons/IconFilter.vue +25 -0
  185. package/src/components/Icons/IconForwardTen.vue +38 -0
  186. package/src/components/Icons/IconGrid.vue +25 -0
  187. package/src/components/Icons/IconHand.vue +21 -0
  188. package/src/components/Icons/IconInfo.vue +26 -0
  189. package/src/components/Icons/IconLink.vue +27 -0
  190. package/src/components/Icons/IconList.vue +25 -0
  191. package/src/components/Icons/IconLocation.vue +37 -0
  192. package/src/components/Icons/IconMagnifyingGlass.vue +21 -0
  193. package/src/components/Icons/IconMedal.vue +21 -0
  194. package/src/components/Icons/IconMenu.vue +27 -0
  195. package/src/components/Icons/IconMinus.vue +26 -0
  196. package/src/components/Icons/IconMute.vue +27 -0
  197. package/src/components/Icons/IconNext.vue +25 -0
  198. package/src/components/Icons/IconPause.vue +28 -0
  199. package/src/components/Icons/IconPlay.vue +28 -0
  200. package/src/components/Icons/IconPlus.vue +25 -0
  201. package/src/components/Icons/IconPrev.vue +25 -0
  202. package/src/components/Icons/IconRewindTen.vue +42 -0
  203. package/src/components/Icons/IconSearch.vue +25 -0
  204. package/src/components/Icons/IconShare.vue +30 -0
  205. package/src/components/Icons/IconSlideshow.vue +30 -0
  206. package/src/components/Icons/IconSocialEmail.vue +26 -0
  207. package/src/components/Icons/IconSocialFacebook.vue +26 -0
  208. package/src/components/Icons/IconSocialGoogleClassroom.vue +26 -0
  209. package/src/components/Icons/IconSocialInstagram.vue +35 -0
  210. package/src/components/Icons/IconSocialPinterest.vue +26 -0
  211. package/src/components/Icons/IconSocialReddit.vue +25 -0
  212. package/src/components/Icons/IconSocialTwitter.vue +25 -0
  213. package/src/components/Icons/IconSocialYoutube.vue +35 -0
  214. package/src/components/Icons/IconStop.vue +27 -0
  215. package/src/components/Icons/IconTime.vue +25 -0
  216. package/src/components/Icons/IconUniversity.vue +21 -0
  217. package/src/components/Icons/IconUser.vue +26 -0
  218. package/src/components/Icons/IconVolume.vue +27 -0
  219. package/src/components/Icons/Icons.stories.ts +440 -0
  220. package/src/components/ImageDetailContextImage/ImageDetailContextImage.vue +125 -0
  221. package/src/components/LayoutHelper/LayoutHelper.vue +38 -0
  222. package/src/components/LoadingTransition/LoadingTransition.vue +48 -0
  223. package/src/components/LogoCaltech/LogoCaltech.stories.js +39 -0
  224. package/src/components/LogoCaltech/LogoCaltech.vue +29 -0
  225. package/src/components/LogoTribrand/LogoTribrand.stories.js +76 -0
  226. package/src/components/LogoTribrand/LogoTribrand.vue +93 -0
  227. package/src/components/MissionDetailAbout/MissionDetailAbout.stories.js +70 -0
  228. package/src/components/MissionDetailAbout/MissionDetailAbout.vue +204 -0
  229. package/src/components/MissionDetailHero/MissionDetailHero.stories.js +303 -0
  230. package/src/components/MissionDetailHero/MissionDetailHero.vue +292 -0
  231. package/src/components/MissionDetailHighlights/MissionDetailHighlights.stories.js +278 -0
  232. package/src/components/MissionDetailHighlights/MissionDetailHighlights.vue +332 -0
  233. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarousel.vue +160 -0
  234. package/src/components/MissionDetailHighlights/MissionDetailHighlightsCarouselItem.vue +123 -0
  235. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.stories.js +43 -0
  236. package/src/components/MissionDetailInlineImage/MissionDetailInlineImage.vue +97 -0
  237. package/src/components/MissionDetailStats/DistanceStats.test.js +133 -0
  238. package/src/components/MissionDetailStats/DistanceStats.vue +250 -0
  239. package/src/components/MissionDetailStats/MissionDetailStats.stories.js +95 -0
  240. package/src/components/MissionDetailStats/MissionDetailStats.test.js +23 -0
  241. package/src/components/MissionDetailStats/MissionDetailStats.vue +187 -0
  242. package/src/components/MissionDetailStats/MissionDetailStatsMicro.vue +52 -0
  243. package/src/components/MissionDetailStats/MissionDetailStatsMini.vue +109 -0
  244. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.stories.js +55 -0
  245. package/src/components/MissionDetailStreamfield/MissionDetailStreamfield.vue +95 -0
  246. package/src/components/MixinAnimationCaret/MixinAnimationCaret.stories.ts +24 -0
  247. package/src/components/MixinAnimationCaret/MixinAnimationCaret.vue +81 -0
  248. package/src/components/MixinCarousel/MixinCarousel.docs.mdx +33 -0
  249. package/src/components/MixinCarousel/MixinCarousel.stories.js +53 -0
  250. package/src/components/MixinCarousel/MixinCarousel.vue +236 -0
  251. package/src/components/MixinDropdownToggle/MixinDropdownToggle.vue +53 -0
  252. package/src/components/MixinFancybox/MixinFancybox.vue +405 -0
  253. package/src/components/MixinFancybox/MixinFancyboxOpenButton.vue +35 -0
  254. package/src/components/MixinVideoBg/MixinVideoBg.stories.js +23 -0
  255. package/src/components/MixinVideoBg/MixinVideoBg.vue +39 -0
  256. package/src/components/NavDesktop/NavDesktop.stories.js +254 -0
  257. package/src/components/NavDesktop/NavDesktop.vue +355 -0
  258. package/src/components/NavDesktop/NavDesktopDropdown.vue +201 -0
  259. package/src/components/NavDesktop/NavDesktopDropdownContent.vue +87 -0
  260. package/src/components/NavDesktop/NavDesktopDropdownMore.vue +112 -0
  261. package/src/components/NavDesktop/NavDesktopTopHat.vue +56 -0
  262. package/src/components/NavHeading/NavHeading.stories.js +23 -0
  263. package/src/components/NavHeading/NavHeading.vue +40 -0
  264. package/src/components/NavHighlight/NavHighlight.stories.js +42 -0
  265. package/src/components/NavHighlight/NavHighlight.vue +67 -0
  266. package/src/components/NavLinkList/NavLinkList.stories.js +46 -0
  267. package/src/components/NavLinkList/NavLinkList.vue +66 -0
  268. package/src/components/NavLogoLinks/NavLogoLinks.stories.js +22 -0
  269. package/src/components/NavLogoLinks/NavLogoLinks.vue +57 -0
  270. package/src/components/NavMobile/NavMobile.stories.js +231 -0
  271. package/src/components/NavMobile/NavMobile.vue +280 -0
  272. package/src/components/NavMobile/NavMobileDropdown.vue +175 -0
  273. package/src/components/NavMobile/NavMobileLink.vue +69 -0
  274. package/src/components/NavMobile/NavMobileSecondaryDropdown.vue +124 -0
  275. package/src/components/NavSearchForm/NavSearchForm.stories.js +13 -0
  276. package/src/components/NavSearchForm/NavSearchForm.vue +102 -0
  277. package/src/components/NavSecondary/NavSecondary.stories.js +24 -0
  278. package/src/components/NavSecondary/NavSecondary.vue +191 -0
  279. package/src/components/NavSecondary/NavSecondaryDropdown.vue +181 -0
  280. package/src/components/NavSecondary/NavSecondaryDropdownContent.vue +140 -0
  281. package/src/components/NavSecondary/NavSecondaryLink.vue +62 -0
  282. package/src/components/NavSocial/NavSocial.stories.js +20 -0
  283. package/src/components/NavSocial/NavSocial.vue +97 -0
  284. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.stories.js +60 -0
  285. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.test.js +30 -0
  286. package/src/components/NewsDetailMediaContact/NewsDetailMediaContact.vue +73 -0
  287. package/src/components/ParallaxContainer/ParallaxContainer.stories.js +47 -0
  288. package/src/components/ParallaxContainer/ParallaxContainer.vue +76 -0
  289. package/src/components/ParallaxElement/ParallaxElement.vue +25 -0
  290. package/src/components/PastEventsCarousel/PastEventsCarousel.vue +86 -0
  291. package/src/components/PodcastEpisodeCard/PodcastEpisodeCard.vue +251 -0
  292. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.stories.js +235 -0
  293. package/src/components/PodcastSeriesCarousel/PodcastSeriesCarousel.vue +171 -0
  294. package/src/components/ProfileDetailSectionGroup/ProfileDetailSectionGroup.vue +84 -0
  295. package/src/components/RoboticsDetailStats/RoboticsDetailStats.stories.js +97 -0
  296. package/src/components/RoboticsDetailStats/RoboticsDetailStats.test.js +21 -0
  297. package/src/components/RoboticsDetailStats/RoboticsDetailStats.vue +217 -0
  298. package/src/components/RoboticsDetailStats/RoboticsDetailStatsMini.vue +182 -0
  299. package/src/components/SearchFilterGroup/SearchFilterGroup.stories.js +59 -0
  300. package/src/components/SearchFilterGroup/SearchFilterGroup.vue +221 -0
  301. package/src/components/SearchInput/SearchInput.stories.js +35 -0
  302. package/src/components/SearchInput/SearchInput.vue +93 -0
  303. package/src/components/SearchPagination/SearchPagination.stories.js +55 -0
  304. package/src/components/SearchPagination/SearchPagination.vue +173 -0
  305. package/src/components/SearchResultCard/SearchResultCard.stories.js +57 -0
  306. package/src/components/SearchResultCard/SearchResultCard.vue +282 -0
  307. package/src/components/SearchResultGridItem/SearchResultGridItem.stories.js +70 -0
  308. package/src/components/SearchResultGridItem/SearchResultGridItem.vue +140 -0
  309. package/src/components/SearchResultsList/SearchResultsList.vue +183 -0
  310. package/src/components/SearchSelectMenu/SearchSelectMenu.stories.js +25 -0
  311. package/src/components/SearchSelectMenu/SearchSelectMenu.vue +86 -0
  312. package/src/components/ShareButtons/ShareButtons.stories.js +16 -0
  313. package/src/components/ShareButtons/ShareButtons.vue +132 -0
  314. package/src/components/ShareButtonsEdu/ShareButtonsEdu.stories.js +14 -0
  315. package/src/components/ShareButtonsEdu/ShareButtonsEdu.vue +215 -0
  316. package/src/components/SkipLink/SkipLink.stories.js +9 -0
  317. package/src/components/SkipLink/SkipLink.vue +53 -0
  318. package/src/components/SwimlaneCTA/SwimlaneCTA.stories.mdx +77 -0
  319. package/src/components/SwimlaneCTA/SwimlaneCTA.vue +281 -0
  320. package/src/components/TheFooter/TheFooter.stories.js +602 -0
  321. package/src/components/TheFooter/TheFooter.vue +228 -0
  322. package/src/components/TheFooter/TheFooterSignUp.vue +61 -0
  323. package/src/components/ThumbnailCarousel/ThumbnailCarousel.stories.js +106 -0
  324. package/src/components/ThumbnailCarousel/ThumbnailCarousel.vue +76 -0
  325. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.stories.js +93 -0
  326. package/src/components/TopicDetailMissionCarousel/TopicDetailMissionCarousel.vue +68 -0
  327. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.stories.js +38 -0
  328. package/src/components/TopicDetailMissionCarouselItem/TopicDetailMissionCarouselItem.vue +104 -0
  329. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.stories.js +84 -0
  330. package/src/components/TopicDetailMissionSpotlight/TopicDetailMissionSpotlight.vue +112 -0
  331. package/src/components/TopicDetailMore/TopicDetailMore.stories.js +221 -0
  332. package/src/components/TopicDetailMore/TopicDetailMore.vue +124 -0
  333. package/src/components/TopicDetailMore/TopicDetailMoreVisibility.vue +51 -0
  334. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.stories.js +116 -0
  335. package/src/components/TopicDetailMoreItem/TopicDetailMoreItem.vue +130 -0
  336. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.stories.js +34 -0
  337. package/src/components/TopicDetailStreamfield/TopicDetailStreamfield.vue +98 -0
  338. package/src/components/YearTicker/YearTicker.stories.js +37 -0
  339. package/src/components/YearTicker/YearTicker.vue +132 -0
  340. package/src/docs/foundation/DynamicTokens.vue +106 -0
  341. package/src/docs/foundation/FontVariants.vue +80 -0
  342. package/src/docs/foundation/color.docs.mdx +112 -0
  343. package/src/docs/foundation/grid.docs.mdx +189 -0
  344. package/src/docs/foundation/grid.stories.js +263 -0
  345. package/src/docs/foundation/grid_layouthelpers.docs.mdx +78 -0
  346. package/src/docs/foundation/grid_layouthelpers.stories.js +53 -0
  347. package/src/docs/foundation/themes.docs.mdx +71 -0
  348. package/src/docs/foundation/themes.stories.js +63 -0
  349. package/src/docs/foundation/typography.docs.mdx +50 -0
  350. package/src/docs/foundation/typography.stories.js +119 -0
  351. package/src/interfaces.ts +129 -0
  352. package/src/main.ts +34 -0
  353. package/src/store/header.ts +40 -0
  354. package/src/store/theme.ts +27 -0
  355. package/src/templates/PageContent/PageContent.stories.js +92 -0
  356. package/src/templates/PageContent/PageContent.vue +140 -0
  357. package/src/templates/PageEventDetail/PageEventDetail.stories.js +104 -0
  358. package/src/templates/PageEventDetail/PageEventDetail.vue +358 -0
  359. package/src/templates/PageNewsDetail/PageNewsDetail.stories.js +158 -0
  360. package/src/templates/PageNewsDetail/PageNewsDetail.vue +242 -0
  361. package/src/templates/edu/PageEduNewsDetail.stories.js +64 -0
  362. package/src/templates/edu/PageEduNewsDetail.vue +155 -0
  363. package/src/templates/www/HomePage/HomePage.vue +30 -0
  364. package/src/utils/dayjs.js +32 -0
  365. package/src/utils/filters.js +33 -0
  366. package/src/utils/mixins.ts +353 -0
  367. package/src/vite-env.d.ts +1 -0
  368. package/tailwind.config.js +24 -0
  369. package/tsconfig.json +29 -0
  370. package/tsconfig.node.json +11 -0
  371. package/vite.config.ts +55 -0
@@ -0,0 +1,201 @@
1
+ <template>
2
+ <div class="NavDesktopDropdown">
3
+ <MixinDropdownToggle
4
+ v-click-outside="closeDropdown"
5
+ :aria-expanded="dropdownVisible ? true : false"
6
+ class="group relative z-20 px-4 font-medium border-t-2 border-transparent"
7
+ :class="{
8
+ '-open': dropdownVisible
9
+ }"
10
+ @toggle-clicked="toggleDropdown()"
11
+ @close-dropdown="closeDropdown()"
12
+ >
13
+ <span
14
+ class="inline-block py-2 transition-colors duration-100 ease-in border-b-2"
15
+ :class="{ hasSecondary: hasSecondary }"
16
+ >
17
+ <slot name="dropdownLabel">Dropdown</slot>
18
+ </span>
19
+ </MixinDropdownToggle>
20
+
21
+ <transition name="navfade">
22
+ <div
23
+ v-if="dropdownVisible"
24
+ class="absolute inset-0 w-full"
25
+ >
26
+ <!-- @click.stop so the v-click-outside directive will ignore clicks inside the dropdown -->
27
+ <div
28
+ class="max-w-screen-3xl mx-auto"
29
+ @click.stop
30
+ >
31
+ <slot></slot>
32
+ </div>
33
+ </div>
34
+ </transition>
35
+ </div>
36
+ </template>
37
+
38
+ <script lang="ts">
39
+ import { defineComponent } from 'vue'
40
+ import { mapStores } from 'pinia'
41
+ import { useHeaderStore } from './../../store/header'
42
+ import MixinDropdownToggle from './../MixinDropdownToggle/MixinDropdownToggle.vue'
43
+
44
+ export default defineComponent({
45
+ name: 'NavDesktopDropdown',
46
+ components: {
47
+ MixinDropdownToggle
48
+ },
49
+ props: {
50
+ parentScrolled: {
51
+ type: Number,
52
+ required: false,
53
+ default: 0
54
+ }
55
+ },
56
+ data() {
57
+ return {
58
+ dropdownVisible: false
59
+ }
60
+ },
61
+ computed: {
62
+ ...mapStores(useHeaderStore),
63
+ hasSecondary(): boolean {
64
+ if (this.headerStore) {
65
+ return !this.headerStore.highlightPrimary
66
+ }
67
+ return false
68
+ }
69
+ },
70
+ watch: {
71
+ $route() {
72
+ if (this.dropdownVisible) {
73
+ this.closeDropdown()
74
+ }
75
+ },
76
+ parentScrolled() {
77
+ if (this.dropdownVisible) {
78
+ this.closeDropdown()
79
+ }
80
+ }
81
+ },
82
+ mounted() {
83
+ // TODO: VUE3: find solution for emitting event from slot
84
+ // TODO: find a cleaner way to do this w/o using mounted or root level events
85
+ // scoped slots? https://github.com/vuejs/vue/issues/4332
86
+ // this.$root?.$on('linkClicked', this.closeDropdown)
87
+ },
88
+ methods: {
89
+ toggleDropdown() {
90
+ if (this.dropdownVisible) {
91
+ this.closeDropdown()
92
+ } else {
93
+ this.openDropdown()
94
+ }
95
+ },
96
+ closeDropdown() {
97
+ if (this.dropdownVisible) {
98
+ this.dropdownVisible = false
99
+ this.$emit('closeDropdown')
100
+ }
101
+ },
102
+ openDropdown() {
103
+ if (!this.dropdownVisible) {
104
+ this.dropdownVisible = true
105
+ this.$emit('openDropdown')
106
+ }
107
+ }
108
+ }
109
+ })
110
+ </script>
111
+ <style lang="scss">
112
+ .NavDesktopDropdown {
113
+ // pushes the dropdown below the closest parent div that has position:relative (e.g. the header)
114
+ > div {
115
+ &::before {
116
+ content: '';
117
+ @apply relative z-0 w-full h-full block;
118
+ }
119
+ }
120
+
121
+ > button {
122
+ > span {
123
+ @apply border-transparent;
124
+ }
125
+
126
+ &.-open {
127
+ > span {
128
+ @apply border-jpl-red;
129
+
130
+ .-transparent & {
131
+ @apply border-white;
132
+ }
133
+
134
+ .-transparent.-scrolled & {
135
+ @apply border-jpl-red;
136
+ }
137
+ }
138
+ }
139
+ @include hover {
140
+ > span {
141
+ @apply border-jpl-red;
142
+
143
+ .-transparent & {
144
+ @apply border-white;
145
+ }
146
+
147
+ .-transparent.-scrolled & {
148
+ @apply border-jpl-red;
149
+ }
150
+ }
151
+ }
152
+ }
153
+ // parent div is active
154
+ &.-active {
155
+ > button {
156
+ > span {
157
+ @apply border-jpl-red font-bold;
158
+
159
+ .-transparent & {
160
+ @apply border-white;
161
+ }
162
+
163
+ .-transparent.-scrolled & {
164
+ @apply border-jpl-red;
165
+ }
166
+
167
+ &.hasSecondary {
168
+ @apply border-transparent #{!important};
169
+ }
170
+ }
171
+ }
172
+ }
173
+
174
+ // transitions
175
+ .navfade-enter-to,
176
+ .navfade-enter-active {
177
+ @apply transition-all ease-out transform duration-500;
178
+ }
179
+
180
+ .navfade-leave-active,
181
+ .navfade-leave-to {
182
+ @apply transition-all ease-out transform duration-100;
183
+ }
184
+
185
+ .navfade-enter-active {
186
+ @apply opacity-0 translate-y-2;
187
+ }
188
+
189
+ .navfade-enter-to {
190
+ @apply opacity-100 translate-y-0;
191
+ }
192
+
193
+ .navfade-leave-to {
194
+ @apply opacity-100; // translate-y-0
195
+ }
196
+
197
+ .navfade-leave-active {
198
+ @apply opacity-0; // -translate-y-2
199
+ }
200
+ }
201
+ </style>
@@ -0,0 +1,87 @@
1
+ <template>
2
+ <div
3
+ v-if="data"
4
+ class="NavDesktopDropdownContent bg-dark-blue bg-opacity-98 3xl:px-0 px-4 py-10 text-white"
5
+ >
6
+ <div
7
+ v-if="data.menuColumns"
8
+ class="BaseGrid container mx-auto"
9
+ >
10
+ <template v-for="(item, index) in data.menuColumns">
11
+ <!-- featured story -->
12
+ <div
13
+ v-if="item.blockType === 'MenuHighlightColumn'"
14
+ :key="`MenuHighlightColumn${index}`"
15
+ class="order-1 col-span-4 col-start-1"
16
+ >
17
+ <div class="grid grid-cols-4">
18
+ <NavHighlight
19
+ :highlight="item.highlight"
20
+ :custom-label="item.label"
21
+ class="col-span-3"
22
+ />
23
+ </div>
24
+ </div>
25
+
26
+ <!-- heading and summary -->
27
+ <div
28
+ v-else-if="item.blockType === 'MenuDescriptionColumn'"
29
+ :key="`MenuDescriptionColumn${index}`"
30
+ class="order-2 col-span-3"
31
+ >
32
+ <p class="text-medium text-6xl">{{ item.title }}</p>
33
+ <p class="text-sm leading-relaxed">
34
+ {{ item.description }}
35
+ </p>
36
+ </div>
37
+ </template>
38
+
39
+ <!-- container for link cols -->
40
+ <div
41
+ v-if="linkColumns"
42
+ class="grid order-3 grid-cols-4 col-span-4 col-start-9 gap-6"
43
+ >
44
+ <NavLinkList
45
+ v-for="(col, index) in linkColumns"
46
+ :key="index"
47
+ :data="col"
48
+ class="col-span-2"
49
+ />
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </template>
54
+
55
+ <script lang="ts">
56
+ import { defineComponent } from 'vue'
57
+ import _map from 'lodash/map'
58
+ import _without from 'lodash/without'
59
+ import NavLinkList from './../NavLinkList/NavLinkList.vue'
60
+ import NavHighlight from './../NavHighlight/NavHighlight.vue'
61
+
62
+ export default defineComponent({
63
+ name: 'NavDesktopDropdownContent',
64
+ components: {
65
+ NavLinkList,
66
+ NavHighlight
67
+ },
68
+ props: {
69
+ data: {
70
+ type: Object,
71
+ required: false
72
+ }
73
+ },
74
+ computed: {
75
+ linkColumns() {
76
+ let columns = undefined
77
+ columns = this.data
78
+ ? _map(this.data.menuColumns, function (o) {
79
+ if (o.blockType.includes('MenuLinkColumnWithHeader')) return o
80
+ })
81
+ : undefined
82
+ columns = _without(columns, undefined) // remove null
83
+ return columns
84
+ }
85
+ }
86
+ })
87
+ </script>
@@ -0,0 +1,112 @@
1
+ <template>
2
+ <div
3
+ v-if="data"
4
+ class="NavDesktopDropdownMore bg-dark-blue bg-opacity-98 3xl:px-0 w-full px-4 py-10 text-white"
5
+ >
6
+ <div class="BaseGrid container mx-auto">
7
+ <div
8
+ v-if="linkColumns"
9
+ class="grid order-1 grid-cols-2 col-span-9 grid-rows-2 gap-10"
10
+ >
11
+ <!-- link columns -->
12
+ <template v-for="(col, index) in linkColumns">
13
+ <div
14
+ v-if="index === 0"
15
+ :key="`rowSpan1${index}`"
16
+ class="row-span-1"
17
+ >
18
+ <NavLinkList
19
+ :data="col"
20
+ auto-col
21
+ />
22
+ </div>
23
+ <div
24
+ v-else-if="index === 1"
25
+ :key="`rowSpan2${index}`"
26
+ class="row-span-2"
27
+ >
28
+ <NavLinkList
29
+ :data="col"
30
+ auto-col
31
+ />
32
+ </div>
33
+ </template>
34
+
35
+ <!-- summary text and social media links -->
36
+ <div class="row-span-1 row-start-2">
37
+ <p
38
+ v-if="data.strapline"
39
+ class="text-medium pr-5 mb-8 text-6xl leading-tight"
40
+ >
41
+ {{ data.strapline }}
42
+ </p>
43
+ <NavSocial dark />
44
+ </div>
45
+ </div>
46
+
47
+ <!-- highlights -->
48
+ <div
49
+ v-if="highlightsColumn"
50
+ class="order-2 col-span-3 col-start-10"
51
+ >
52
+ <NavHeading :data="highlightsColumn" />
53
+ <div
54
+ v-for="(highlight, index) in highlightsColumn.highlights"
55
+ :key="index"
56
+ :class="{ 'mb-10': index + 1 !== highlightsColumn.highlights.length }"
57
+ >
58
+ <NavHighlight :highlight="highlight.highlight" />
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </template>
64
+
65
+ <script lang="ts">
66
+ import { defineComponent } from 'vue'
67
+ import _map from 'lodash/map'
68
+ import _without from 'lodash/without'
69
+
70
+ import NavLinkList from './../NavLinkList/NavLinkList.vue'
71
+ import NavSocial from './../NavSocial/NavSocial.vue'
72
+ import NavHighlight from './../NavHighlight/NavHighlight.vue'
73
+ import NavHeading from './../NavHeading/NavHeading.vue'
74
+
75
+ export default defineComponent({
76
+ name: 'NavDesktopDropdownMore',
77
+ components: {
78
+ NavLinkList,
79
+ NavSocial,
80
+ NavHighlight,
81
+ NavHeading
82
+ },
83
+ props: {
84
+ data: {
85
+ type: Object,
86
+ required: false
87
+ }
88
+ },
89
+ computed: {
90
+ linkColumns() {
91
+ let columns = undefined
92
+ columns = this.data
93
+ ? _map(this.data.menuColumns, function (o) {
94
+ if (o.blockType.includes('MenuLinkColumnWithHeader')) return o
95
+ })
96
+ : undefined
97
+ columns = _without(columns, undefined) // remove null
98
+ return columns
99
+ },
100
+ highlightsColumn() {
101
+ let columns = undefined
102
+ columns = this.data
103
+ ? _map(this.data.menuColumns, function (o) {
104
+ if (o.blockType.includes('MenuMoreHighlightsColumn')) return o
105
+ })
106
+ : undefined
107
+ columns = _without(columns, undefined) // remove null
108
+ return columns?.length ? columns[0] : undefined
109
+ }
110
+ }
111
+ })
112
+ </script>
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <div class="NavDesktopTopHat z-50 px-4 bg-black">
3
+ <div class="container mx-auto">
4
+ <nav
5
+ aria-label="JPL Sites"
6
+ class="flex items-center text-sm font-medium text-white bg-black"
7
+ >
8
+ <BaseLink
9
+ v-for="(item, index) in data"
10
+ :key="index"
11
+ variant="none"
12
+ external-target-blank
13
+ :href="item.path ? item.path : undefined"
14
+ :to="item.linkPage ? item.linkPage.url : undefined"
15
+ class="group flex px-3 border-t-2 border-transparent"
16
+ :class="{ '-ml-3': index === 0 }"
17
+ >
18
+ <span
19
+ class="can-hover:group-hover:border-jpl-red-light inline-block py-2 border-b-2"
20
+ :class="index === 0 ? 'border-jpl-red-light' : 'border-transparent'"
21
+ >
22
+ {{ getLinkText(item) }}
23
+ </span>
24
+ </BaseLink>
25
+ </nav>
26
+ </div>
27
+ </div>
28
+ </template>
29
+ <script lang="ts">
30
+ import { defineComponent } from 'vue'
31
+ import { mixinGetRouterLink, mixinGetLinkText } from './../../utils/mixins'
32
+ import BaseLink from './../BaseLink/BaseLink.vue'
33
+ import type { LinkObject } from './../../utils/mixins'
34
+ import type { PropType } from 'vue'
35
+
36
+ export default defineComponent({
37
+ name: 'NavDesktopTopHat',
38
+ components: {
39
+ BaseLink
40
+ },
41
+ props: {
42
+ data: {
43
+ type: Array as PropType<LinkObject[]>,
44
+ required: false
45
+ }
46
+ },
47
+ methods: {
48
+ getRouterLink(link: LinkObject): string | undefined {
49
+ return mixinGetRouterLink(link)
50
+ },
51
+ getLinkText(link: LinkObject): string | undefined {
52
+ return mixinGetLinkText(link)
53
+ }
54
+ }
55
+ })
56
+ </script>
@@ -0,0 +1,23 @@
1
+ import { MenuLinkColumnWithHeaderData } from './../NavLinkList/NavLinkList.stories'
2
+ import NavHeading from './NavHeading.vue'
3
+
4
+ export default {
5
+ title: 'WWW/Header & Footer/Elements/NavHeading',
6
+ component: NavHeading,
7
+ decorators: [
8
+ () => ({
9
+ template: `<div id="storyDecorator" class="p-8 bg-dark-blue"><story/></div>`
10
+ })
11
+ ],
12
+ parameters: {
13
+ html: {
14
+ root: '#storyDecorator'
15
+ },
16
+ viewMode: 'docs'
17
+ },
18
+ excludeStories: /.*Data$/
19
+ }
20
+
21
+ export const Default = {
22
+ args: { data: MenuLinkColumnWithHeaderData }
23
+ }
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <div
3
+ v-if="data"
4
+ class="-mt-2 -ml-2"
5
+ >
6
+ <template v-if="data.headingPage && data.heading">
7
+ <BaseLink
8
+ variant="none"
9
+ class="text-subtitle text-blue inline-block mb-4"
10
+ link-class="p-2"
11
+ :to="data.headingPage.url"
12
+ >
13
+ {{ data.heading }}
14
+ </BaseLink>
15
+ </template>
16
+ <template v-else-if="data.heading">
17
+ <div class="text-subtitle text-blue inline-block mb-4">
18
+ <span class="p-2">{{ data.heading }}</span>
19
+ </div>
20
+ </template>
21
+ </div>
22
+ </template>
23
+
24
+ <script lang="ts">
25
+ import { defineComponent } from 'vue'
26
+ import BaseLink from './../BaseLink/BaseLink.vue'
27
+
28
+ export default defineComponent({
29
+ name: 'NavHeading',
30
+ components: {
31
+ BaseLink
32
+ },
33
+ props: {
34
+ data: {
35
+ type: Object,
36
+ required: false
37
+ }
38
+ }
39
+ })
40
+ </script>
@@ -0,0 +1,42 @@
1
+ import NavHighlight from './NavHighlight.vue'
2
+
3
+ export default {
4
+ title: 'WWW/Header & Footer/Elements/NavHighlight',
5
+ component: NavHighlight,
6
+ decorators: [
7
+ () => ({
8
+ template: `<div id="storyDecorator" class="lg:BaseGrid container"><div class="col-span-5"><story/></div></div>`
9
+ })
10
+ ],
11
+ parameters: {
12
+ html: {
13
+ root: '#storyDecorator'
14
+ },
15
+ viewMode: 'docs'
16
+ },
17
+ excludeStories: /.*Data$/
18
+ }
19
+
20
+ export const MenuHighlightColumnData = {
21
+ blockType: 'MenuHighlightColumn',
22
+ label: 'Custom Label Override',
23
+ highlight: {
24
+ label: 'Solar System',
25
+ title: 'Gravity Recovery and Climate Experiment Follow-On',
26
+ url: '/missions/gravity-recovery-and-climate-experiment-follow-on-grace-fo/',
27
+ thumbnailImage: {
28
+ src: {
29
+ url: 'https://picsum.photos/400/225',
30
+ width: 400,
31
+ height: 225
32
+ }
33
+ }
34
+ }
35
+ }
36
+
37
+ export const Default = {
38
+ args: {
39
+ customLabel: MenuHighlightColumnData.label,
40
+ highlight: MenuHighlightColumnData.highlight
41
+ }
42
+ }
@@ -0,0 +1,67 @@
1
+ <template>
2
+ <div v-if="highlight">
3
+ <BaseLink
4
+ variant="none"
5
+ external-target-blank
6
+ link-class="block"
7
+ :to="highlight.url"
8
+ >
9
+ <div
10
+ v-if="highlight.thumbnailImage"
11
+ class="mb-4"
12
+ >
13
+ <BaseImagePlaceholder
14
+ aspect-ratio="16:9"
15
+ dark-mode
16
+ no-logo
17
+ >
18
+ <BaseImage
19
+ v-if="highlight.thumbnailImage.src"
20
+ :src="highlight.thumbnailImage.src.url"
21
+ :width="highlight.thumbnailImage.src.width"
22
+ :height="highlight.thumbnailImage.src.height"
23
+ alt=""
24
+ object-fit-class="cover"
25
+ image-class="can-hover:group-hover:scale-100 transition duration-300 ease-in-out transform scale-105"
26
+ loading="lazy"
27
+ />
28
+ </BaseImagePlaceholder>
29
+ </div>
30
+
31
+ <p
32
+ v-if="customLabel || highlight.label"
33
+ class="text-subtitle-sm mb-2"
34
+ >
35
+ {{ customLabel || highlight.label }}
36
+ </p>
37
+ <span class="sr-only">.</span>
38
+ <p v-if="highlight.title">{{ highlight.title }}</p>
39
+ </BaseLink>
40
+ </div>
41
+ </template>
42
+
43
+ <script lang="ts">
44
+ import { defineComponent } from 'vue'
45
+ import BaseLink from './../BaseLink/BaseLink.vue'
46
+ import BaseImage from './../BaseImage/BaseImage.vue'
47
+ import BaseImagePlaceholder from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
48
+
49
+ export default defineComponent({
50
+ name: 'NavHighlight',
51
+ components: {
52
+ BaseLink,
53
+ BaseImage,
54
+ BaseImagePlaceholder
55
+ },
56
+ props: {
57
+ highlight: {
58
+ type: Object,
59
+ required: false
60
+ },
61
+ customLabel: {
62
+ type: String,
63
+ required: false
64
+ }
65
+ }
66
+ })
67
+ </script>
@@ -0,0 +1,46 @@
1
+ import NavLinkList from './NavLinkList.vue'
2
+
3
+ export default {
4
+ title: 'WWW/Header & Footer/Elements/NavLinkList',
5
+ component: NavLinkList,
6
+ decorators: [
7
+ () => ({
8
+ template: `<div id="storyDecorator" class="bg-dark-blue p-8"><story/></div>`
9
+ })
10
+ ],
11
+ parameters: {
12
+ html: {
13
+ root: '#storyDecorator'
14
+ }
15
+ },
16
+ excludeStories: /.*Data$/
17
+ }
18
+
19
+ export const MenuLinkColumnWithHeaderData = {
20
+ blockType: 'MenuLinkColumnWithHeader',
21
+ heading: 'The Heading',
22
+ headingPage: {
23
+ url: '/solar-system/'
24
+ },
25
+ links: [
26
+ {
27
+ linkPage: {
28
+ title: 'Missions',
29
+ url: '/missions/aquarius/'
30
+ },
31
+ title: 'Recent Missions',
32
+ path: null
33
+ },
34
+ {
35
+ linkPage: null,
36
+ title: 'External Link Test',
37
+ path: 'https://nasa.gov'
38
+ }
39
+ ]
40
+ }
41
+
42
+ export const Default = {
43
+ args: {
44
+ data: MenuLinkColumnWithHeaderData
45
+ }
46
+ }