@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,236 @@
1
+ <template>
2
+ <component
3
+ :is="noLinks ? 'div' : 'nav'"
4
+ class="MixinCarousel w-full overflow-x-hidden"
5
+ :class="variantClass"
6
+ :aria-label="heading"
7
+ >
8
+ <div
9
+ class="BaseGrid container overflow-x-visible"
10
+ :class="{ 'mx-auto': center }"
11
+ >
12
+ <div
13
+ v-if="heading || link"
14
+ :class="colStart"
15
+ class="lg:pl-0 col-start-1 col-end-13 px-4 mb-1"
16
+ >
17
+ <div class="sm:flex flex-wrap items-center justify-between">
18
+ <h2
19
+ v-if="heading"
20
+ class="font-primary text-gray-dark lg:text-6xl text-3xl font-semibold leading-normal tracking-normal uppercase"
21
+ >
22
+ {{ heading }}
23
+ </h2>
24
+ <BaseLink
25
+ v-if="link"
26
+ class="sm:block hidden"
27
+ variant="primary"
28
+ :to="typeof link === 'object' ? link : undefined"
29
+ :href="typeof link != 'object' ? link : undefined"
30
+ v-bind="$attrs"
31
+ >
32
+ {{ linkTitle || link }}
33
+ </BaseLink>
34
+ </div>
35
+ </div>
36
+ <div
37
+ :class="colStart"
38
+ class="lg:pl-0 sm:col-end-11 3xl:col-end-12 col-start-1 col-end-13 pl-4 overflow-x-visible"
39
+ >
40
+ <!-- Slider main container -->
41
+ <div
42
+ ref="MixinCarousel"
43
+ class="swiper transition-opacity duration-500 ease-in opacity-0"
44
+ >
45
+ <!-- Additional required wrapper -->
46
+ <div class="swiper-wrapper">
47
+ <slot />
48
+ </div>
49
+ <div class="swiper-navigation xl:block absolute top-0 left-0 hidden w-full">
50
+ <div class="xl:-ml-22 top-1/2 absolute left-0 z-30 -ml-20">
51
+ <BaseButton
52
+ class="swiper-prev xl:text-xl"
53
+ :aria-label="heading + ' - Previous slide'"
54
+ >
55
+ <template #icon>
56
+ <span
57
+ class="arrow-wrapper"
58
+ aria-hidden="true"
59
+ >
60
+ <span class="arrow">
61
+ <IconPrev />
62
+ </span>
63
+ <span class="arrow-fixed">
64
+ <IconPrev />
65
+ </span>
66
+ </span>
67
+ </template>
68
+ </BaseButton>
69
+ </div>
70
+ <div class="xl:-mr-22 top-1/2 absolute right-0 z-30 -mr-20">
71
+ <BaseButton
72
+ class="swiper-next xl:text-xl"
73
+ :aria-label="heading + ' - Next slide'"
74
+ >
75
+ <template #icon>
76
+ <span
77
+ class="arrow-wrapper"
78
+ aria-hidden="true"
79
+ >
80
+ <span class="arrow">
81
+ <IconNext />
82
+ </span>
83
+ <span class="arrow-fixed">
84
+ <IconNext />
85
+ </span>
86
+ </span>
87
+ </template>
88
+ </BaseButton>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </component>
95
+ </template>
96
+ <script lang="ts">
97
+ // @ts-nocheck
98
+ import { defineComponent } from 'vue'
99
+ import Swiper from 'swiper'
100
+ import { A11y, Navigation } from 'swiper/modules'
101
+ import type { SwiperOptions } from 'swiper/types'
102
+ import swiperOptions from '@explorer-1/common/src/js/_swiperOptions'
103
+
104
+ import IconPrev from './../Icons/IconPrev.vue'
105
+ import IconNext from './../Icons/IconNext.vue'
106
+ import BaseLink from './../BaseLink/BaseLink.vue'
107
+ import BaseButton from './../BaseButton/BaseButton.vue'
108
+
109
+ const MixinCarouselOptions = swiperOptions.MixinCarousel
110
+
111
+ Swiper.use([Navigation, A11y])
112
+
113
+ interface Variants {
114
+ [name: string]: string
115
+ }
116
+
117
+ export const variants: Variants = {
118
+ cards: '-cards',
119
+ tiles: '-tiles'
120
+ }
121
+
122
+ interface Indents {
123
+ [name: string]: string
124
+ }
125
+
126
+ export const indents: Indents = {
127
+ 'col-1': '',
128
+ 'col-2': 'lg:col-start-2',
129
+ 'col-3': 'lg:col-start-3'
130
+ }
131
+
132
+ export default defineComponent({
133
+ name: 'MixinCarousel',
134
+ components: {
135
+ BaseLink,
136
+ BaseButton,
137
+ IconPrev,
138
+ IconNext
139
+ },
140
+ props: {
141
+ // set to true if the carousel items don't link to anything
142
+ noLinks: {
143
+ type: Boolean,
144
+ required: false,
145
+ default: false
146
+ },
147
+ heading: {
148
+ type: String,
149
+ required: false
150
+ },
151
+ link: {
152
+ type: [String, Object],
153
+ required: false
154
+ },
155
+ linkTitle: {
156
+ type: String,
157
+ required: false
158
+ },
159
+ variant: {
160
+ type: String,
161
+ required: false,
162
+ default: 'cards',
163
+ validator: (prop: string): boolean => Object.keys(variants).includes(prop)
164
+ },
165
+ slidesPerView: {
166
+ type: Number,
167
+ required: false,
168
+ default: 2
169
+ },
170
+ indent: {
171
+ type: String,
172
+ required: false,
173
+ default: 'col-2',
174
+ validator: (prop: string): boolean => Object.keys(indents).includes(prop)
175
+ },
176
+ center: {
177
+ type: Boolean,
178
+ required: false,
179
+ default: true
180
+ },
181
+ initialSlide: {
182
+ type: Number,
183
+ required: false,
184
+ default: 0
185
+ }
186
+ },
187
+ data(): {
188
+ slider: Swiper | null
189
+ sliderOptions: SwiperOptions
190
+ } {
191
+ return {
192
+ slider: null,
193
+ // provide a few more options using props
194
+ sliderOptions: {
195
+ ...MixinCarouselOptions,
196
+ initialSlide: this.initialSlide,
197
+ a11y: {
198
+ prevSlideMessage: this.heading ? this.heading + ' - Previous slide' : 'Previous slide',
199
+ nextSlideMessage: this.heading ? this.heading + ' - Next slide' : 'Next slide'
200
+ },
201
+ breakpoints: {
202
+ ...MixinCarouselOptions.breakpoints,
203
+ 1024: {
204
+ slidesPerView: this.slidesPerView
205
+ },
206
+ 1280: {
207
+ slidesPerView: this.slidesPerView,
208
+ spaceBetween: 56
209
+ }
210
+ }
211
+ }
212
+ }
213
+ },
214
+ computed: {
215
+ variantClass(): string {
216
+ return variants[this.variant]
217
+ },
218
+ colStart(): string {
219
+ return indents[this.indent]
220
+ }
221
+ },
222
+ mounted() {
223
+ this.init()
224
+ },
225
+ methods: {
226
+ init() {
227
+ this.slider = new Swiper(this.$refs.MixinCarousel as HTMLElement, this.sliderOptions)
228
+ this.slider.init()
229
+ }
230
+ }
231
+ })
232
+ </script>
233
+ <style lang="scss">
234
+ @import 'swiper/swiper-bundle.css';
235
+ @import '@explorer-1/common/src/scss/components/MixinCarousel';
236
+ </style>
@@ -0,0 +1,53 @@
1
+ <template>
2
+ <button
3
+ class="MixinDropdownToggle group cursor-pointer"
4
+ :class="{ '-active': isActivePath }"
5
+ :aria-expanded="ariaExpanded"
6
+ @click="clickEvent()"
7
+ @keydown.esc="escEvent()"
8
+ >
9
+ <slot></slot>
10
+ </button>
11
+ </template>
12
+ <script lang="ts">
13
+ import { defineComponent } from 'vue'
14
+ import { mixinIsActivePath } from './../../utils/mixins'
15
+
16
+ export default defineComponent({
17
+ /* Accessible dropdown toggle that emits click and keyboard events
18
+ * Also checks if the user is on a page within the dropdown's path, if provided.
19
+ * Used in:
20
+ * - NavSecondaryDropdown
21
+ * - NavMobileSecondaryDropdown
22
+ * - NavMobileDropdown
23
+ */
24
+
25
+ name: 'MixinDropdownToggle',
26
+ props: {
27
+ path: {
28
+ type: String,
29
+ required: false
30
+ },
31
+ ariaExpanded: {
32
+ type: Boolean,
33
+ required: false
34
+ }
35
+ },
36
+ computed: {
37
+ isActivePath() {
38
+ if (this.path) {
39
+ return mixinIsActivePath(this.path)
40
+ }
41
+ return false
42
+ }
43
+ },
44
+ methods: {
45
+ clickEvent() {
46
+ this.$emit('toggleClicked')
47
+ },
48
+ escEvent() {
49
+ this.$emit('closeDropdown')
50
+ }
51
+ }
52
+ })
53
+ </script>
@@ -0,0 +1,405 @@
1
+ <script lang="ts">
2
+ // @ts-nocheck
3
+ import { defineComponent } from 'vue'
4
+ import { Fancybox } from '@fancyapps/ui'
5
+ import { Fullscreen } from '@fancyapps/ui/src/shared/utils/Fullscreen.js'
6
+ import '@fancyapps/ui/dist/fancybox.css'
7
+ import MixinFancyboxOpenButton from './MixinFancyboxOpenButton.vue'
8
+
9
+ export const fancyboxThemes = {
10
+ // Normal (Vanilla fancybox theme)
11
+ normal: 'fancybox-theme-normal ThemeVariantLight',
12
+ // Light (WCP default lighter lightbox)
13
+ light: 'fancybox-theme-light ThemeVariantLight',
14
+ // Dark (WWW default black lightbox)
15
+ dark: 'fancybox-theme-dark ThemeVariantDark'
16
+ }
17
+
18
+ export default defineComponent({
19
+ name: 'MixinFancybox',
20
+ components: {
21
+ MixinFancyboxOpenButton
22
+ },
23
+ filters: {
24
+ truncate(value) {
25
+ if (value && value.length > 280) {
26
+ value = value.substring(0, 277) + '...'
27
+ }
28
+ return value
29
+ }
30
+ },
31
+ props: {
32
+ infinite: {
33
+ type: Boolean,
34
+ required: false,
35
+ default: true
36
+ },
37
+ showThumbnails: {
38
+ type: Boolean,
39
+ required: false,
40
+ default: false
41
+ },
42
+ animated: {
43
+ type: Boolean,
44
+ required: false,
45
+ default: false
46
+ },
47
+ galleryName: {
48
+ type: String,
49
+ required: false,
50
+ default: null
51
+ },
52
+ src: {
53
+ type: String,
54
+ required: false
55
+ },
56
+ srcSet: {
57
+ type: String,
58
+ required: false
59
+ },
60
+ sizes: {
61
+ type: String,
62
+ required: false
63
+ },
64
+ downloadSrc: {
65
+ type: String,
66
+ required: false
67
+ },
68
+ caption: {
69
+ type: String,
70
+ required: false
71
+ },
72
+ credit: {
73
+ type: String,
74
+ required: false
75
+ },
76
+ title: {
77
+ type: String,
78
+ required: false
79
+ },
80
+ detailUrl: {
81
+ type: String,
82
+ required: false
83
+ },
84
+ width: {
85
+ type: String,
86
+ required: false
87
+ },
88
+ height: {
89
+ type: String,
90
+ required: false
91
+ },
92
+ theme: {
93
+ type: String,
94
+ required: false,
95
+ default: 'dark',
96
+ validator: (prop) => Object.keys(fancyboxThemes).includes(prop)
97
+ }
98
+ },
99
+ computed: {
100
+ computedClass() {
101
+ return fancyboxThemes[this.theme]
102
+ },
103
+ computedCaption() {
104
+ let caption =
105
+ this.caption && this.caption.length ? this.$options.filters.truncate(this.caption, 180) : ''
106
+ if (this.credit) {
107
+ caption = `${caption} Credit: ${this.credit}`
108
+ }
109
+ return caption
110
+ }
111
+ },
112
+ mounted() {
113
+ return Fancybox.bind('[data-fancybox]', {
114
+ infinite: this.infinite,
115
+ // mainClass from theme variants
116
+ mainClass: this.computedClass ? this.computedClass : fancyboxThemes.dark,
117
+ showClass: 'fancybox-fadeIn', // "fancybox-fadeIn" | "fancybox-zoomInUp" | false
118
+ hideClass: 'fancybox-fadeOut', // "fancybox-fadeOut" | "fancybox-zoomOutDown" | false
119
+ autoFocus: true,
120
+ maxScale: 6,
121
+ slideshow: {
122
+ delay: 10000
123
+ },
124
+ // see https://fancyapps.com/docs/ui/fancybox#animations
125
+ animated: this.animated,
126
+ Image: {
127
+ zoom: this.animated
128
+ },
129
+ Thumbs: {
130
+ autoStart: this.showThumbnails
131
+ },
132
+ Toolbar: {
133
+ items: {
134
+ counter: {
135
+ type: 'div',
136
+ class: 'fancybox__counter',
137
+ html: '<span data-fancybox-index=""></span>&nbsp;/&nbsp;<span data-fancybox-count=""></span>',
138
+ tabindex: -1,
139
+ position: 'left'
140
+ },
141
+ prev: {
142
+ type: 'button',
143
+ class: 'fancybox__button--prev',
144
+ label: 'PREV',
145
+ html: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 4l-8 8 8 8"/></svg>',
146
+ click(event) {
147
+ event.preventDefault()
148
+
149
+ this.fancybox.prev()
150
+ }
151
+ },
152
+ next: {
153
+ type: 'button',
154
+ class: 'fancybox__button--next',
155
+ label: 'NEXT',
156
+ html: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M8 4l8 8-8 8"/></svg>',
157
+ click(event) {
158
+ event.preventDefault()
159
+
160
+ this.fancybox.next()
161
+ }
162
+ },
163
+ fullscreen: {
164
+ type: 'button',
165
+ class: 'fancybox__button--fullscreen',
166
+ label: 'TOGGLE_FULLSCREEN',
167
+ html: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><g><path d="M3 8 V3h5"></path><path d="M21 8V3h-5"></path><path d="M8 21H3v-5"></path><path d="M16 21h5v-5"></path></g><g><path d="M7 2v5H2M17 2v5h5M2 17h5v5M22 17h-5v5"/></g></svg>`,
168
+ click(event) {
169
+ event.preventDefault()
170
+
171
+ if (Fullscreen.element()) {
172
+ Fullscreen.deactivate()
173
+ } else {
174
+ Fullscreen.activate(this.fancybox.$container)
175
+ }
176
+ }
177
+ },
178
+ slideshow: {
179
+ type: 'button',
180
+ class: 'fancybox__button--slideshow',
181
+ label: 'TOGGLE_SLIDESHOW',
182
+ html: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><g><path d="M6 4v16"/><path d="M20 12L6 20"/><path d="M20 12L6 4"/></g><g><path d="M7 4v15M17 4v15"/></g></svg>`,
183
+ click(event) {
184
+ event.preventDefault()
185
+
186
+ this.Slideshow.toggle()
187
+ }
188
+ },
189
+ zoom: {
190
+ type: 'button',
191
+ class: 'fancybox__button--zoom',
192
+ label: 'TOGGLE_ZOOM',
193
+ html: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><circle cx="10" cy="10" r="7"></circle><path d="M16 16 L21 21"></svg>',
194
+ click(event) {
195
+ event.preventDefault()
196
+
197
+ const panzoom = this.fancybox.getSlide().Panzoom
198
+
199
+ if (panzoom) {
200
+ panzoom.toggleZoom()
201
+ }
202
+ }
203
+ },
204
+ download: {
205
+ type: 'link',
206
+ label: 'DOWNLOAD',
207
+ class: 'fancybox__button--download',
208
+ html: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M12 15V3m0 12l-4-4m4 4l4-4M2 17l.62 2.48A2 2 0 004.56 21h14.88a2 2 0 001.94-1.51L22 17"/></svg>',
209
+ click(event) {
210
+ event.stopPropagation()
211
+ }
212
+ },
213
+ thumbs: {
214
+ type: 'button',
215
+ label: 'TOGGLE_THUMBS',
216
+ class: 'fancybox__button--thumbs',
217
+ html: '<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 576 512" width="24" height="21" stroke-width="3px"><path stroke-width="3px" fill="white" d="M512 0C547.3 0 576 28.65 576 64V288C576 323.3 547.3 352 512 352H64C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H512zM512 64H64V288H512V64zM0 448C0 430.3 14.33 416 32 416H64C81.67 416 96 430.3 96 448V480C96 497.7 81.67 512 64 512H32C14.33 512 0 497.7 0 480V448zM224 416C241.7 416 256 430.3 256 448V480C256 497.7 241.7 512 224 512H192C174.3 512 160 497.7 160 480V448C160 430.3 174.3 416 192 416H224zM320 448C320 430.3 334.3 416 352 416H384C401.7 416 416 430.3 416 448V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V448zM544 416C561.7 416 576 430.3 576 448V480C576 497.7 561.7 512 544 512H512C494.3 512 480 497.7 480 480V448C480 430.3 494.3 416 512 416H544z"/></svg>',
218
+ click(event) {
219
+ event.stopPropagation()
220
+
221
+ const thumbs = this.fancybox.plugins.Thumbs
222
+
223
+ if (thumbs) {
224
+ thumbs.toggle()
225
+ }
226
+ }
227
+ },
228
+ close: {
229
+ type: 'button',
230
+ label: 'CLOSE',
231
+ class: 'fancybox__button--close',
232
+ html: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"></path></svg>',
233
+ tabindex: 1,
234
+ click(event) {
235
+ event.stopPropagation()
236
+ event.preventDefault()
237
+
238
+ this.fancybox.close()
239
+ }
240
+ }
241
+ },
242
+ display: [
243
+ { id: 'counter', position: 'left' },
244
+ 'zoom',
245
+ 'slideshow',
246
+ 'fullscreen',
247
+ // 'download',
248
+ 'thumbs',
249
+ 'captions',
250
+ 'close'
251
+ ]
252
+ },
253
+ caption(_fancybox, _carousel, slide) {
254
+ let caption = slide.caption
255
+
256
+ if (slide.type === 'image') {
257
+ caption = `<div class="mx-auto container">
258
+ ${slide.title ? `<h6 class="font-semibold text-4xl mb-1">${slide.title}</h6>` : ''}
259
+ ${
260
+ caption.length
261
+ ? `<div class="caption inline sm:flex text-body-md pb-2 mr-2 sm:mr-0"><div class="inline">${caption}</div></div>`
262
+ : ''
263
+ }
264
+ ${
265
+ slide.url
266
+ ? `<a href="${slide.url}" class="inline-block text-body-md whitespace-nowrap relative text-primary can-hover:hover:text-primary-dark cursor-pointer focus:outline-none" title="Full Image Details">Full Image Details</a>`
267
+ : ''
268
+ }
269
+ </div>`
270
+ }
271
+
272
+ return caption
273
+ }
274
+ })
275
+ },
276
+ methods: {
277
+ clickHandler() {
278
+ this.$emit('click')
279
+ }
280
+ }
281
+ })
282
+ </script>
283
+ <template>
284
+ <a
285
+ class="MixinFancybox group cursor-pointer block"
286
+ aria-label="Open in Lightbox"
287
+ :href="src"
288
+ :data-fancybox="galleryName || ''"
289
+ :data-src="src"
290
+ :data-width="src ? src.width : null"
291
+ :data-height="src ? src.height : null"
292
+ :data-srcset="srcSet"
293
+ :data-sizes="sizes"
294
+ :data-theme="computedClass"
295
+ :data-caption="computedCaption"
296
+ :data-title="title"
297
+ :data-animated="animated"
298
+ :data-download-src="downloadSrc"
299
+ :data-url="detailUrl"
300
+ :data-max-width="src ? src.width : null"
301
+ @click="$emit('click')"
302
+ >
303
+ <MixinFancyboxOpenButton />
304
+ <slot></slot>
305
+ </a>
306
+ </template>
307
+
308
+ <style lang="scss">
309
+ .MixinFancybox {
310
+ @apply relative;
311
+
312
+ &:active {
313
+ outline: none;
314
+ }
315
+
316
+ .MixinFancyboxOpenButton {
317
+ @apply can-hover:opacity-0 opacity-70 transition-opacity duration-300 block top-px right-px z-10;
318
+ }
319
+
320
+ &:hover {
321
+ .MixinFancyboxOpenButton {
322
+ @apply can-hover:opacity-100 duration-200;
323
+ }
324
+ }
325
+
326
+ &:focus {
327
+ .MixinFancyboxOpenButton {
328
+ @apply can-hover:opacity-100;
329
+ }
330
+ }
331
+
332
+ img {
333
+ @apply min-w-full h-auto block;
334
+ }
335
+ }
336
+
337
+ // Fancybox overrides for various themes
338
+ .fancybox-theme-dark.fancybox__container {
339
+ z-index: 9999;
340
+
341
+ --fancybox-color: rgba(255, 255, 255, var(--tw-text-opacity));
342
+ --fancybox-bg: #000000;
343
+ --fancybox-accent-color: #ffffff;
344
+ --fancybox-thumbs-width: 100px;
345
+ --fancybox-thumbs-border-radius: 0;
346
+ --fancybox-thumbs-ratio: 1 / 1;
347
+ --carousel-button-bg: rgba(0, 0, 0, 0.9);
348
+ --carousel-button-border-radius: 0;
349
+ --carousel-button-svg-width: 30px;
350
+ --carousel-button-svg-height: 30px;
351
+ --carousel-button-svg-stroke-width: 3;
352
+ --carousel-button-svg-filter: none;
353
+
354
+ .fancybox__content {
355
+ @apply z-50;
356
+ }
357
+
358
+ .fancybox__nav {
359
+ @apply hidden;
360
+
361
+ @screen sm {
362
+ @apply block;
363
+ }
364
+ }
365
+
366
+ .fancybox__caption {
367
+ @apply z-40 text-left relative inline-block pt-3 lg:pt-4 w-full;
368
+
369
+ h1 {
370
+ text-overflow: ellipsis;
371
+ }
372
+
373
+ p {
374
+ @apply inline;
375
+ }
376
+ }
377
+
378
+ .fancybox__slide.has-image.has-caption.is-draggable {
379
+ .fancybox__caption {
380
+ @apply opacity-0 transition-opacity duration-200;
381
+ }
382
+ }
383
+
384
+ .fancybox__slide.has-image:not(.is-draggable),
385
+ .fancybox__slide.has-image.has-caption.can-zoom_in,
386
+ .fancybox__slide.has-image.has-caption.is-selected:not(.is-draggable) {
387
+ .fancybox__caption {
388
+ @apply opacity-100 transition-opacity duration-200;
389
+ }
390
+ }
391
+
392
+ .caption-width {
393
+ background: rgba(0, 0, 0, 0.95);
394
+ -webkit-transition: max-width 0.15s ease;
395
+ transition: max-width 0.15s ease;
396
+ width: 100%;
397
+ }
398
+
399
+ @screen lg {
400
+ .fancybox__toolbar {
401
+ padding: 25px;
402
+ }
403
+ }
404
+ }
405
+ </style>