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