@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,75 @@
1
+ import BaseHeading from './BaseHeading.vue'
2
+ import IconArrows from '@explorer-1/vue/src/components/Icons/IconArrows.vue'
3
+ import IconLocation from '@explorer-1/vue/src/components/Icons/IconLocation.vue'
4
+ import IconUser from '@explorer-1/vue/src/components/Icons/IconUser.vue'
5
+
6
+ export default {
7
+ title: 'Components/Base/BaseHeading',
8
+ component: BaseHeading,
9
+ argTypes: {
10
+ size: {
11
+ type: { name: 'string', required: true },
12
+ description: 'The display size of the heading.',
13
+ control: { type: 'select' },
14
+ options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
15
+ },
16
+ level: {
17
+ type: { name: 'string', required: false },
18
+ description:
19
+ 'The semantic heading tag if different from the display size (ex: a heading looks like an `h4`, but semantically, it is an `h1`.',
20
+ control: { type: 'select' },
21
+ options: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
22
+ }
23
+ },
24
+ parameters: {
25
+ slots: {
26
+ default: 'Default slot content'
27
+ },
28
+ viewMode: 'docs',
29
+ docs: {
30
+ description: {
31
+ component:
32
+ 'Base component for headings. Allows for retaining semantic markup while varying the text size.'
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ // stories
39
+ export const H1 = {
40
+ name: 'H1',
41
+ args: { size: 'h1', level: 'h1', default: 'Heading 1' }
42
+ }
43
+
44
+ export const H2 = {
45
+ name: 'H2',
46
+ args: { size: 'h2', level: 'h2', default: 'Heading 2' }
47
+ }
48
+ export const H3 = {
49
+ name: 'H3',
50
+ args: { size: 'h3', level: 'h3', default: 'Heading 3' }
51
+ }
52
+ export const H4 = {
53
+ name: 'H4',
54
+ args: { size: 'h4', level: 'h4', default: 'Heading 4' }
55
+ }
56
+ export const H5 = {
57
+ name: 'H5',
58
+ args: { size: 'h5', level: 'h5', default: 'Heading 5' }
59
+ }
60
+ export const H6 = {
61
+ name: 'H6',
62
+ args: { size: 'h6', level: 'h6', default: 'Heading 6' }
63
+ }
64
+
65
+ const TemplateHeadingsWithIcons = (args) => ({
66
+ components: { BaseHeading, IconArrows, IconLocation, IconUser },
67
+ setup() {
68
+ return { args }
69
+ },
70
+ template:
71
+ '<div><BaseHeading v-bind="args"><IconArrows class="inline" /> {{ args.default }}</BaseHeading><BaseHeading class="mt-8" v-bind="args"><IconLocation class="inline" /> {{ args.default }}</BaseHeading></div><BaseHeading class="mt-8" v-bind="args"><IconUser class="inline" /> {{ args.default }}</BaseHeading>'
72
+ })
73
+
74
+ export const HeadingsWithIcons = TemplateHeadingsWithIcons.bind({})
75
+ HeadingsWithIcons.args = { size: 'h1', level: 'h1', default: 'Heading 1' }
@@ -0,0 +1,58 @@
1
+ <script lang="ts">
2
+ import { defineComponent } from 'vue'
3
+ import type { Attributes } from './../../interfaces'
4
+ import type { PropType } from 'vue'
5
+
6
+ export type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'
7
+
8
+ const headings: Attributes = {
9
+ h1: 'text-h1',
10
+ h2: 'text-h2',
11
+ h3: 'text-h3',
12
+ h4: 'text-h4',
13
+ h5: 'text-h5',
14
+ h6: 'text-h6'
15
+ }
16
+
17
+ export default defineComponent({
18
+ name: 'BaseHeading',
19
+ props: {
20
+ level: {
21
+ type: (String as PropType<HeadingLevel>) || null,
22
+ required: false,
23
+ default: 'h2',
24
+ validator: (prop: string): boolean => Object.keys(headings).includes(prop)
25
+ },
26
+ size: {
27
+ type: String as PropType<HeadingLevel>,
28
+ required: false,
29
+ default: 'h2',
30
+ validator: (prop: string): boolean => Object.keys(headings).includes(prop)
31
+ }
32
+ },
33
+ computed: {
34
+ computedTag(): string {
35
+ if (this.level) {
36
+ return this.level
37
+ } else {
38
+ return this.size
39
+ }
40
+ },
41
+ computedClass(): string {
42
+ if (this.size) {
43
+ return headings[this.size]
44
+ } else {
45
+ return ''
46
+ }
47
+ }
48
+ }
49
+ })
50
+ </script>
51
+ <template>
52
+ <component
53
+ :is="computedTag"
54
+ :class="computedClass"
55
+ >
56
+ <slot />
57
+ </component>
58
+ </template>
@@ -0,0 +1,52 @@
1
+ import BaseImage, { objectFitClasses } from './BaseImage.vue'
2
+ export default {
3
+ title: 'Components/Base/BaseImage',
4
+ component: BaseImage,
5
+ excludeStories: /.*Data$/,
6
+ argTypes: {
7
+ objectFitClass: {
8
+ description:
9
+ 'Use Tailwind CSS object fit classes to specify how the image will scale within `BaseImagePlaceholder`',
10
+ control: { type: 'select' },
11
+ options: Object.keys(objectFitClasses)
12
+ }
13
+ },
14
+ parameters: {
15
+ docs: {
16
+ description: {
17
+ component:
18
+ 'The BaseImage component is a simple `<img />` tag wrapped in a `<div>` and is used to render an image with object-fit classes and lazy loading properties.'
19
+ }
20
+ }
21
+ }
22
+ }
23
+
24
+ export const BaseImageData = {
25
+ src: 'https://picsum.photos/800/400',
26
+ srcset: 'https://picsum.photos/800/400 800w, ',
27
+ alt: 'Alt text for image',
28
+ width: 800,
29
+ height: 400,
30
+ imageClass: '',
31
+ objectFitClass: 'contain'
32
+ }
33
+ // stories
34
+ export const Default = {
35
+ args: BaseImageData,
36
+ decorators: [() => ({ template: '<div class="max-w-full"><story /></div>' })]
37
+ }
38
+
39
+ export const LazyLoading = {
40
+ args: BaseImageData,
41
+ decorators: [
42
+ () => ({
43
+ template:
44
+ '<div class="max-w-full"><div style="height:3500px">Scroll down and watch the network tab ⬇️</div><div id="storyRoot"><story /></div></div>'
45
+ })
46
+ ],
47
+ parameters: {
48
+ html: {
49
+ root: '#storyRoot'
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,120 @@
1
+ <script lang="ts">
2
+ import { defineComponent } from 'vue'
3
+ import type { PropType } from 'vue'
4
+
5
+ export type ImageLoader = 'lazy' | 'eager' | undefined
6
+
7
+ interface ObjectFitClasses {
8
+ [name: string]: string
9
+ }
10
+
11
+ export const objectFitClasses: ObjectFitClasses = {
12
+ none: 'object-none',
13
+ contain: 'object-contain',
14
+ cover: 'object-cover',
15
+ fill: 'object-fill',
16
+ scaleDown: 'object-scale-down'
17
+ }
18
+
19
+ export default defineComponent({
20
+ name: 'BaseImage',
21
+ props: {
22
+ imageClass: {
23
+ type: String,
24
+ required: false
25
+ },
26
+ objectFitClass: {
27
+ type: String,
28
+ required: false,
29
+ default: 'contain',
30
+ validator: (prop: string): boolean => Object.keys(objectFitClasses).includes(prop)
31
+ },
32
+ src: {
33
+ type: String,
34
+ required: true
35
+ },
36
+ srcset: {
37
+ type: String,
38
+ required: false,
39
+ default: ''
40
+ },
41
+ alt: {
42
+ type: String
43
+ },
44
+ width: {
45
+ type: [Number, String]
46
+ },
47
+ height: {
48
+ type: [Number, String]
49
+ },
50
+ loading: {
51
+ type: String as PropType<ImageLoader>,
52
+ required: false,
53
+ default: 'lazy'
54
+ }
55
+ },
56
+ data() {
57
+ return {
58
+ lazyNative: true
59
+ }
60
+ },
61
+ computed: {
62
+ computedClass(): string {
63
+ let classes = ''
64
+ if (this.imageClass) {
65
+ classes = classes + ' ' + this.imageClass
66
+ }
67
+ if (this.objectFitClass) {
68
+ classes = classes + ' ' + objectFitClasses[this.objectFitClass]
69
+ }
70
+ if (!this.lazyNative) {
71
+ classes = classes + ' lazyload'
72
+ }
73
+ return classes
74
+ }
75
+ },
76
+ mounted() {
77
+ this.featureDetectImageLazyLoad()
78
+ },
79
+ methods: {
80
+ featureDetectImageLazyLoad() {
81
+ if ('loading' in HTMLImageElement.prototype) {
82
+ const image = this.$refs.BaseImage ? (this.$refs.BaseImage as HTMLImageElement) : null
83
+ this.lazyNative = true
84
+ // reassign dataset attributes
85
+ if (image && image.dataset.src) {
86
+ image.src = image.dataset.src
87
+ }
88
+ if (image && image.dataset.srcset) {
89
+ image.srcset = image.dataset.srcset
90
+ }
91
+ } else {
92
+ this.lazyNative = false
93
+ }
94
+ },
95
+ imageFailed() {
96
+ console.log('Image failed to load.')
97
+ }
98
+ }
99
+ })
100
+ </script>
101
+ <template>
102
+ <div>
103
+ <img
104
+ v-if="src"
105
+ ref="BaseImage"
106
+ class="BaseImage"
107
+ :class="computedClass"
108
+ :data-src="src"
109
+ :data-srcset="srcset"
110
+ :alt="alt"
111
+ :width="width"
112
+ :height="height"
113
+ :loading="loading"
114
+ @error="imageFailed"
115
+ />
116
+ </div>
117
+ </template>
118
+ <style lang="scss">
119
+ @import '@explorer-1/common/src/scss/components/BaseImage';
120
+ </style>
@@ -0,0 +1,27 @@
1
+ import BaseImageCaption from './BaseImageCaption.vue'
2
+ export default {
3
+ title: 'Components/Base/BaseImageCaption',
4
+ component: BaseImageCaption,
5
+ excludeStories: /.*Data$/,
6
+ parameters: {
7
+ docs: {
8
+ description: {
9
+ component: 'Caption text used with both images and videos.'
10
+ }
11
+ }
12
+ }
13
+ }
14
+
15
+ // data
16
+ export const BaseImageCaptionData = {
17
+ caption:
18
+ '<p>Aliquam finibus accumsan dapibus. In <a href="#">sagittis et sapien</a> nec vehicula. Suspendisse euismod consequat risus, vel dignissim elit scelerisque sed. Nullam elit ipsum, suscipit ut quam et, molestie aliquam leo.</p>',
19
+ credit: 'NASA/JPL',
20
+ detailUrl: '/image-detail/slug/'
21
+ }
22
+
23
+ export const Default = {
24
+ args: {
25
+ data: BaseImageCaptionData
26
+ }
27
+ }
@@ -0,0 +1,51 @@
1
+ <script lang="ts">
2
+ import { defineComponent } from 'vue'
3
+ import type { PropType } from 'vue'
4
+ import type { ImageObject } from '../../interfaces'
5
+ import BaseLink from './../BaseLink/BaseLink.vue'
6
+
7
+ export default defineComponent({
8
+ name: 'BaseImageCaption',
9
+ components: {
10
+ BaseLink
11
+ },
12
+ props: {
13
+ data: {
14
+ type: Object as PropType<Partial<ImageObject>>,
15
+ required: true,
16
+ default: undefined
17
+ }
18
+ }
19
+ })
20
+ </script>
21
+ <template>
22
+ <div
23
+ v-if="data"
24
+ class="BaseImageCaption text-body-sm"
25
+ >
26
+ <div class="inline mr-2">
27
+ <div
28
+ class="the-caption-text inline"
29
+ v-html="data.caption"
30
+ ></div>
31
+ <span
32
+ v-if="data.credit"
33
+ class="inline"
34
+ >
35
+ Credit: {{ data.credit }}
36
+ </span>
37
+ </div>
38
+ <BaseLink
39
+ v-if="data.detailUrl"
40
+ class="inline-block"
41
+ variant="default"
42
+ :to="data.detailUrl"
43
+ >
44
+ Full Image Details
45
+ </BaseLink>
46
+ </div>
47
+ </template>
48
+
49
+ <style lang="scss">
50
+ @import '@explorer-1/common/src/scss/components/BaseImageCaption';
51
+ </style>
@@ -0,0 +1,73 @@
1
+ import BaseImage from './BaseImage.vue'
2
+ import BaseImagePlaceholder, {
3
+ aspectRatios
4
+ } from './../BaseImagePlaceholder/BaseImagePlaceholder.vue'
5
+ export default {
6
+ title: 'Components/Base/BaseImagePlaceholder',
7
+ component: BaseImagePlaceholder,
8
+ excludeStories: /.*Data$/,
9
+ decorators: () => ({
10
+ template: '<div class="w-2/3"><story /></div>'
11
+ }),
12
+ tags: ['autodocs'],
13
+ parameters: {
14
+ slots: {
15
+ default: {
16
+ description: 'Slot for BaseImage',
17
+ components: { BaseImage },
18
+ template: `<BaseImage :object-fit-class="args.BaseImageProps.objectFitClass" :loading="args.BaseImageProps.loading" :src="args.BaseImageProps.src" :srcset="args.BaseImageProps.srcset" :alt="args.BaseImageProps.alt" :width="args.BaseImageProps.width" :height="args.BaseImageProps.height" />`
19
+ }
20
+ },
21
+ docs: {
22
+ description: {
23
+ component:
24
+ 'Aspect ratio CSS class. View dropdown to see all options. More classes can be added in `/src/scss/_aspect-ratios.scss`'
25
+ }
26
+ }
27
+ },
28
+ argTypes: {
29
+ aspectRatio: {
30
+ control: { type: 'select' },
31
+ options: Object.keys(aspectRatios)
32
+ },
33
+ responsiveAspectRatio: {
34
+ control: { type: 'text' }
35
+ }
36
+ }
37
+ }
38
+
39
+ // data
40
+ export const BaseImagePlaceholderData = {
41
+ aspectRatio: '12:9',
42
+ darkMode: true,
43
+ transparentMode: false
44
+ }
45
+
46
+ export const WithImage = {
47
+ args: {
48
+ ...BaseImagePlaceholderData,
49
+ BaseImageProps: {
50
+ src: 'https://picsum.photos/1200/900',
51
+ srcset: 'https://picsum.photos/1200/900 1200w,',
52
+ alt: 'alt text for image',
53
+ width: '1200',
54
+ height: '900',
55
+ objectFitClass: 'contain',
56
+ loading: 'lazy'
57
+ }
58
+ }
59
+ }
60
+ export const NoImage = {
61
+ args: {
62
+ ...BaseImagePlaceholderData,
63
+ BaseImageProps: {
64
+ src: '',
65
+ srcset: '',
66
+ alt: '',
67
+ width: '',
68
+ height: '',
69
+ objectFitClass: 'scaleDown',
70
+ loading: ''
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,90 @@
1
+ <script lang="ts">
2
+ import { defineComponent } from 'vue'
3
+
4
+ interface AspectRatios {
5
+ [name: string]: string
6
+ }
7
+
8
+ export const aspectRatios: AspectRatios = {
9
+ none: 'aspect-ratio-none',
10
+ portrait: 'aspect-ratio-four-five',
11
+ square: 'aspect-ratio-square',
12
+ '1:1': 'aspect-ratio-one-one',
13
+ '2:1': 'aspect-ratio-two-one',
14
+ '2:3': 'aspect-ratio-two-three',
15
+ '3:2': 'aspect-ratio-three-two',
16
+ '4:3': 'aspect-ratio-four-three',
17
+ '4:5': 'aspect-ratio-four-five',
18
+ '7:8': 'aspect-ratio-seven-eight',
19
+ '8:7': 'aspect-ratio-eight-seven',
20
+ '9:16': 'aspect-ratio-nine-sixteen',
21
+ '12:9': 'aspect-ratio-twelve-nine',
22
+ '16:7': 'aspect-ratio-sixteen-seven',
23
+ '16:9': 'aspect-ratio-sixteen-nine',
24
+ '21:9': 'aspect-ratio-twentyone-nine'
25
+ }
26
+
27
+ export default defineComponent({
28
+ name: 'BaseImagePlaceholder',
29
+ props: {
30
+ darkMode: {
31
+ type: Boolean,
32
+ required: false,
33
+ default: true
34
+ },
35
+ transparentMode: {
36
+ type: Boolean,
37
+ required: false,
38
+ default: false
39
+ },
40
+ noLogo: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ aspectRatio: {
45
+ type: String,
46
+ default: 'none',
47
+ validator: (prop: string): boolean => Object.keys(aspectRatios).includes(prop)
48
+ },
49
+ responsiveAspectRatio: {
50
+ type: String,
51
+ required: false
52
+ }
53
+ },
54
+ computed: {
55
+ computedClass(): string {
56
+ let classes = ''
57
+ if (this.aspectRatio) {
58
+ classes = classes + aspectRatios[this.aspectRatio]
59
+ }
60
+ if (this.responsiveAspectRatio) {
61
+ classes = `${classes} ${this.responsiveAspectRatio}`
62
+ }
63
+ if (this.transparentMode) {
64
+ classes = classes + ' transparent-theme'
65
+ } else if (this.darkMode) {
66
+ classes = classes + ' dark-theme'
67
+ } else {
68
+ classes = classes + ' light-theme'
69
+ }
70
+ if (this.noLogo) {
71
+ classes = classes + ' no-logo'
72
+ }
73
+
74
+ return classes
75
+ }
76
+ }
77
+ })
78
+ </script>
79
+ <template>
80
+ <div>
81
+ <div :class="'BaseImagePlaceholder ' + computedClass">
82
+ <slot></slot>
83
+ <slot name="lightbox"></slot>
84
+ </div>
85
+ </div>
86
+ </template>
87
+
88
+ <style lang="scss" scoped>
89
+ @import '@explorer-1/common/src/scss/components/BaseImagePlaceholder';
90
+ </style>
@@ -0,0 +1,45 @@
1
+ <template>
2
+ <button
3
+ ref="lightboxCloseButton"
4
+ aria-label="Close Lightbox"
5
+ class="BaseLightboxCloseButton text-5xl"
6
+ @click.prevent="clickHandler()"
7
+ >
8
+ <span class="icon">
9
+ <IconCloseLightbox />
10
+ </span>
11
+ </button>
12
+ </template>
13
+
14
+ <script lang="ts">
15
+ // @ts-nocheck
16
+ import { defineComponent } from 'vue'
17
+ import IconCloseLightbox from './../Icons/IconCloseLightbox.vue'
18
+
19
+ export default defineComponent({
20
+ name: 'BaseLightboxCloseButton',
21
+ components: {
22
+ IconCloseLightbox
23
+ },
24
+ mounted() {
25
+ this.focusButton()
26
+ },
27
+ methods: {
28
+ clickHandler() {
29
+ this.$emit('click')
30
+ },
31
+ focusButton() {
32
+ this.$refs.lightboxCloseButton.focus()
33
+ }
34
+ }
35
+ })
36
+ </script>
37
+
38
+ <style lang="scss">
39
+ .BaseLightboxCloseButton {
40
+ @apply bg-black z-50 px-px text-right w-full mb-auto;
41
+ @screen 2xl {
42
+ @apply w-auto -mr-20 -mt-5;
43
+ }
44
+ }
45
+ </style>
@@ -0,0 +1,46 @@
1
+ <template>
2
+ <div
3
+ ref="LightboxOpenButton"
4
+ class="BaseLightboxOpenButton"
5
+ aria-label="Open in Lightbox"
6
+ @click.prevent="clickHandler()"
7
+ >
8
+ <button
9
+ aria-label="Open in Lightbox"
10
+ class="BaseButton -primary -icon-only"
11
+ @click.prevent="clickHandler()"
12
+ >
13
+ <span class="icon">
14
+ <IconExpand />
15
+ </span>
16
+ </button>
17
+ </div>
18
+ </template>
19
+
20
+ <script lang="ts">
21
+ import { defineComponent } from 'vue'
22
+ import IconExpand from './../Icons/IconExpand.vue'
23
+
24
+ export default defineComponent({
25
+ name: 'BaseLightboxOpenButton',
26
+ components: {
27
+ IconExpand
28
+ },
29
+ methods: {
30
+ clickHandler() {
31
+ this.$emit('click')
32
+ }
33
+ }
34
+ })
35
+ </script>
36
+
37
+ <style lang="scss">
38
+ .BaseLightboxOpenButton {
39
+ // scoped styles for Lightbox Opener button
40
+ @apply relative lg:absolute lg:inset-0 cursor-pointer z-10;
41
+
42
+ .BaseButton {
43
+ @apply -top-px -right-px absolute focus:outline-none xl:text-xl inline-block;
44
+ }
45
+ }
46
+ </style>
@@ -0,0 +1,47 @@
1
+ import BaseLink, { variants } from './BaseLink.vue'
2
+ export default {
3
+ title: 'Components/Base/BaseLink',
4
+ component: BaseLink,
5
+ parameters: {
6
+ slots: {
7
+ default: 'Default slot content'
8
+ }
9
+ },
10
+ argTypes: {
11
+ variant: {
12
+ control: { type: 'select' },
13
+ options: Object.keys(variants)
14
+ }
15
+ },
16
+ excludeStories: /.*Data$/
17
+ }
18
+
19
+ // data
20
+ export const BaseLinkData = {
21
+ variant: 'primary',
22
+ to: '/',
23
+ href: '/',
24
+ caret: false,
25
+ caretColor: 'text-primary',
26
+ default: 'Link Text'
27
+ }
28
+
29
+ // stories
30
+ export const Primary = {
31
+ args: { ...BaseLinkData }
32
+ }
33
+
34
+ export const Secondary = {
35
+ args: { ...BaseLinkData, variant: 'secondary' }
36
+ }
37
+
38
+ export const DefaultBody = {
39
+ args: { ...BaseLinkData, variant: 'default' }
40
+ }
41
+
42
+ export const Unstyled = {
43
+ args: {
44
+ ...BaseLinkData,
45
+ variant: 'none'
46
+ }
47
+ }