@codecademy/brand 2.0.0-alpha.794867a4a8.0 → 2.0.0-alpha.85c0743647.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 (674) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
  2. package/dist/AbbreviatedCommunityEventCard/index.js +98 -0
  3. package/dist/AppBar/AppBarSection.d.ts +10 -0
  4. package/dist/AppBar/AppBarSection.js +41 -0
  5. package/dist/AppBar/index.d.ts +9 -0
  6. package/dist/AppBar/index.js +20 -0
  7. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
  8. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +25 -0
  9. package/dist/AppBarDeprecated/index.d.ts +14 -0
  10. package/dist/AppBarDeprecated/index.js +26 -0
  11. package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +98 -0
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +92 -0
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +63 -0
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +440 -0
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +157 -0
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.js +25 -0
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.js +26 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.js +1 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.js +2 -0
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +26 -0
  30. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
  31. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +70 -0
  32. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
  33. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +53 -0
  34. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
  35. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +32 -0
  36. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
  37. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +57 -0
  38. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
  39. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +88 -0
  40. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
  41. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.js +50 -0
  42. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
  43. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.js +38 -0
  44. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
  45. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +36 -0
  46. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
  47. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +19 -0
  48. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
  49. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +113 -0
  50. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
  51. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +194 -0
  52. package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
  53. package/dist/AppHeader/Search/DefaultResults.js +112 -0
  54. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
  55. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +80 -0
  56. package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
  57. package/dist/AppHeader/Search/SearchButton.js +58 -0
  58. package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
  59. package/dist/AppHeader/Search/SearchPane.js +518 -0
  60. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
  61. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +35 -0
  62. package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
  63. package/dist/AppHeader/Search/SearchWorker/index.js +24 -0
  64. package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
  65. package/dist/AppHeader/Search/SearchWorker/src.js +307 -0
  66. package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
  67. package/dist/AppHeader/Search/SearchWorker/types.js +5 -0
  68. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
  69. package/dist/AppHeader/Search/SearchWorker/worker.js +31 -0
  70. package/dist/AppHeader/Search/consts.d.ts +23 -0
  71. package/dist/AppHeader/Search/consts.js +40 -0
  72. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
  73. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +14 -0
  74. package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
  75. package/dist/AppHeader/Search/safelyRedirect.js +49 -0
  76. package/dist/AppHeader/Search/types.d.ts +23 -0
  77. package/dist/AppHeader/Search/types.js +1 -0
  78. package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
  79. package/dist/AppHeader/Search/useHeaderSearch.js +39 -0
  80. package/dist/AppHeader/index.d.ts +24 -0
  81. package/dist/AppHeader/index.js +77 -0
  82. package/dist/AppHeader/shared/elements.d.ts +84 -0
  83. package/dist/AppHeader/shared/elements.js +151 -0
  84. package/dist/AppHeader/shared/index.d.ts +4 -0
  85. package/dist/AppHeader/shared/index.js +4 -0
  86. package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
  87. package/dist/AppHeader/shared/keyboardNav.js +67 -0
  88. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
  89. package/dist/AppHeader/shared/mockAppHeaderItems.js +10 -0
  90. package/dist/AppHeader/shared/testTypes.d.ts +0 -0
  91. package/dist/AppHeader/shared/testTypes.js +0 -0
  92. package/dist/AppHeader/shared/types.d.ts +107 -0
  93. package/dist/AppHeader/shared/types.js +1 -0
  94. package/dist/AppHeader/shared/utils.d.ts +16 -0
  95. package/dist/AppHeader/shared/utils.js +103 -0
  96. package/dist/AppHeader/utils/types.d.ts +8 -0
  97. package/dist/AppHeader/utils/types.js +1 -0
  98. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
  99. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.js +77 -0
  100. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
  101. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +111 -0
  102. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
  103. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +30 -0
  104. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
  105. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +104 -0
  106. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
  107. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +60 -0
  108. package/dist/AppHeaderMobile/index.d.ts +20 -0
  109. package/dist/AppHeaderMobile/index.js +226 -0
  110. package/dist/Avatar/Avatar.stories.d.ts +6 -0
  111. package/dist/Avatar/Avatar.stories.js +15 -0
  112. package/dist/Avatar/index.d.ts +36 -0
  113. package/dist/Avatar/index.js +45 -0
  114. package/dist/AvatarChooser/index.d.ts +12 -0
  115. package/dist/AvatarChooser/index.js +105 -0
  116. package/dist/BackToTopAnchor/index.d.ts +13 -0
  117. package/dist/BackToTopAnchor/index.js +38 -0
  118. package/dist/Banner/index.d.ts +21 -0
  119. package/dist/Banner/index.js +102 -0
  120. package/dist/BetaSticker/index.d.ts +6 -0
  121. package/dist/BetaSticker/index.js +57 -0
  122. package/dist/CareerPathCard/index.d.ts +19 -0
  123. package/dist/CareerPathCard/index.js +41 -0
  124. package/dist/Carousel/elements.d.ts +27 -0
  125. package/dist/Carousel/elements.js +14 -0
  126. package/dist/Carousel/index.d.ts +24 -0
  127. package/dist/Carousel/index.js +242 -0
  128. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  129. package/dist/CertificationPathCard/index.d.ts +20 -0
  130. package/dist/CertificationPathCard/index.js +42 -0
  131. package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
  132. package/dist/CommunityEventCard/EventTypeIcon.js +59 -0
  133. package/dist/CommunityEventCard/index.d.ts +28 -0
  134. package/dist/CommunityEventCard/index.js +305 -0
  135. package/dist/CommunityEventToast/index.d.ts +6 -0
  136. package/dist/CommunityEventToast/index.js +32 -0
  137. package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
  138. package/dist/ContentGroupBaseCard/helpers.js +12 -0
  139. package/dist/ContentGroupBaseCard/index.d.ts +31 -0
  140. package/dist/ContentGroupBaseCard/index.js +178 -0
  141. package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
  142. package/dist/ContentGroupBaseCard/shared.js +76 -0
  143. package/dist/ContentGroupBaseCard/types.d.ts +10 -0
  144. package/dist/ContentGroupBaseCard/types.js +12 -0
  145. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
  146. package/dist/CourseCard/index.d.ts +20 -0
  147. package/dist/CourseCard/index.js +47 -0
  148. package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
  149. package/dist/CurriculumCard/BottomTag/index.js +26 -0
  150. package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
  151. package/dist/CurriculumCard/Difficulty/helpers.js +13 -0
  152. package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
  153. package/dist/CurriculumCard/Difficulty/index.js +47 -0
  154. package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
  155. package/dist/CurriculumCard/Difficulty/types.js +20 -0
  156. package/dist/CurriculumCard/Footer/index.d.ts +10 -0
  157. package/dist/CurriculumCard/Footer/index.js +54 -0
  158. package/dist/CurriculumCard/Image/index.d.ts +9 -0
  159. package/dist/CurriculumCard/Image/index.js +56 -0
  160. package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
  161. package/dist/CurriculumCard/Subtitle/helpers.js +8 -0
  162. package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
  163. package/dist/CurriculumCard/Subtitle/index.js +34 -0
  164. package/dist/CurriculumCard/index.d.ts +59 -0
  165. package/dist/CurriculumCard/index.js +129 -0
  166. package/dist/DropdownButton/DropdownList.d.ts +17 -0
  167. package/dist/DropdownButton/DropdownList.js +73 -0
  168. package/dist/DropdownButton/index.d.ts +76 -0
  169. package/dist/DropdownButton/index.js +169 -0
  170. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
  171. package/dist/DropdownButton/useDynamicPopoverPosition.js +55 -0
  172. package/dist/DropdownButton/useDynamicPopoverPosition.test.js +85 -0
  173. package/dist/EditorialImage/index.d.ts +10 -0
  174. package/dist/EditorialImage/index.js +22 -0
  175. package/dist/EditorialImage/styles.module.scss +36 -0
  176. package/dist/EmptySection/index.d.ts +28 -0
  177. package/dist/EmptySection/index.js +183 -0
  178. package/dist/ErrorContents/index.d.ts +8 -0
  179. package/dist/ErrorContents/index.js +48 -0
  180. package/dist/FeatureList/index.d.ts +11 -0
  181. package/dist/FeatureList/index.js +41 -0
  182. package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
  183. package/dist/GlobalFooter/FooterHeading.js +30 -0
  184. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
  185. package/dist/GlobalFooter/FooterLegal/LegalLinks.js +43 -0
  186. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
  187. package/dist/GlobalFooter/FooterLegal/MadeIn.js +64 -0
  188. package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
  189. package/dist/GlobalFooter/FooterLegal/index.js +22 -0
  190. package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
  191. package/dist/GlobalFooter/FooterLinks.js +53 -0
  192. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
  193. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +298 -0
  194. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
  195. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +299 -0
  196. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
  197. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +268 -0
  198. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
  199. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +29 -0
  200. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
  201. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +74 -0
  202. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
  203. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +86 -0
  204. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
  205. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +1 -0
  206. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
  207. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +50 -0
  208. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
  209. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  210. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
  211. package/dist/GlobalFooter/FooterNavLinks/index.js +45 -0
  212. package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
  213. package/dist/GlobalFooter/FooterSubHeading.js +22 -0
  214. package/dist/GlobalFooter/index.d.ts +23 -0
  215. package/dist/GlobalFooter/index.js +39 -0
  216. package/dist/GlobalFooter/types.d.ts +13 -0
  217. package/dist/GlobalFooter/types.js +1 -0
  218. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
  219. package/dist/GlobalHeader/GlobalHeaderItems.js +402 -0
  220. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
  221. package/dist/GlobalHeader/GlobalHeaderVariants.js +211 -0
  222. package/dist/GlobalHeader/index.d.ts +10 -0
  223. package/dist/GlobalHeader/index.js +101 -0
  224. package/dist/GlobalHeader/types.d.ts +89 -0
  225. package/dist/GlobalHeader/types.js +1 -0
  226. package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
  227. package/dist/GlobalHeader/urlHelpers.js +21 -0
  228. package/dist/GlobalPage/index.d.ts +34 -0
  229. package/dist/GlobalPage/index.js +53 -0
  230. package/dist/Grid/GridCollapse.d.ts +41 -0
  231. package/dist/Grid/GridCollapse.js +199 -0
  232. package/dist/Grid/GridCollapse.test.js +96 -0
  233. package/dist/Grid/Subgrid.d.ts +23 -0
  234. package/dist/Grid/Subgrid.js +37 -0
  235. package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
  236. package/dist/Grid/getCSSFromColumnCount.js +7 -0
  237. package/dist/Grid/index.d.ts +3 -0
  238. package/dist/Grid/index.js +3 -0
  239. package/dist/HeaderHeightArea/index.d.ts +9 -0
  240. package/dist/HeaderHeightArea/index.js +40 -0
  241. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
  242. package/dist/HeaderHeightArea/useIsInHeaderRegion.js +15 -0
  243. package/dist/HorizontalScrollMenu/index.d.ts +7 -0
  244. package/dist/HorizontalScrollMenu/index.js +75 -0
  245. package/dist/HubCard/index.d.ts +8 -0
  246. package/dist/HubCard/index.js +38 -0
  247. package/dist/InfoCard/index.d.ts +19 -0
  248. package/dist/InfoCard/index.js +157 -0
  249. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
  250. package/dist/Konamimojisplosion/Konamimojisplosion.js +7 -0
  251. package/dist/Konamimojisplosion/index.d.ts +2 -0
  252. package/dist/Konamimojisplosion/index.js +2 -0
  253. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
  254. package/dist/Konamimojisplosion/useKonamimojisplosion.js +34 -0
  255. package/dist/LandingPage/CTA.d.ts +9 -0
  256. package/dist/LandingPage/CTA.js +11 -0
  257. package/dist/LandingPage/Description.d.ts +6 -0
  258. package/dist/LandingPage/Description.js +14 -0
  259. package/dist/LandingPage/Feature.d.ts +32 -0
  260. package/dist/LandingPage/Feature.js +96 -0
  261. package/dist/LandingPage/PageFAQs.d.ts +10 -0
  262. package/dist/LandingPage/PageFAQs.js +42 -0
  263. package/dist/LandingPage/PageFeatures.d.ts +16 -0
  264. package/dist/LandingPage/PageFeatures.js +112 -0
  265. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
  266. package/dist/LandingPage/PageFeaturesEnhanced.js +159 -0
  267. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
  268. package/dist/LandingPage/PageFeaturesWithReferences.js +136 -0
  269. package/dist/LandingPage/PageHero.d.ts +7 -0
  270. package/dist/LandingPage/PageHero.js +22 -0
  271. package/dist/LandingPage/PagePrefooter.d.ts +5 -0
  272. package/dist/LandingPage/PagePrefooter.js +74 -0
  273. package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
  274. package/dist/LandingPage/PageSingleFeature.js +128 -0
  275. package/dist/LandingPage/PageTestimonials.d.ts +21 -0
  276. package/dist/LandingPage/PageTestimonials.js +113 -0
  277. package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
  278. package/dist/LandingPage/PageVideoGallery.js +49 -0
  279. package/dist/LandingPage/Title.d.ts +23 -0
  280. package/dist/LandingPage/Title.js +28 -0
  281. package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
  282. package/dist/LandingPage/TitleWithEyebrow.js +40 -0
  283. package/dist/LandingPage/index.d.ts +14 -0
  284. package/dist/LandingPage/index.js +14 -0
  285. package/dist/LandingPage/types.d.ts +28 -0
  286. package/dist/LandingPage/types.js +1 -0
  287. package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
  288. package/dist/LayoutMenu/AccordionMenu.js +68 -0
  289. package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
  290. package/dist/LayoutMenu/LayoutMenu.js +96 -0
  291. package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
  292. package/dist/LayoutMenu/LayoutMenuSection.js +34 -0
  293. package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
  294. package/dist/LayoutMenu/SectionItemLink.js +16 -0
  295. package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
  296. package/dist/LayoutMenu/SelectedSectionItem.js +17 -0
  297. package/dist/LayoutMenu/index.d.ts +3 -0
  298. package/dist/LayoutMenu/index.js +3 -0
  299. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
  300. package/dist/LayoutMenuVariant/AccordionMenu.js +85 -0
  301. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
  302. package/dist/LayoutMenuVariant/LayoutMenu.js +92 -0
  303. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
  304. package/dist/LayoutMenuVariant/LayoutMenuSection.js +42 -0
  305. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
  306. package/dist/LayoutMenuVariant/SectionItemLink.js +17 -0
  307. package/dist/LayoutMenuVariant/index.d.ts +2 -0
  308. package/dist/LayoutMenuVariant/index.js +2 -0
  309. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.d.ts +8 -0
  310. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
  311. package/dist/LearningOutcomeAssessmentScores/index.d.ts +8 -0
  312. package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
  313. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +19 -0
  314. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +59 -0
  315. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  316. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +35 -0
  317. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  318. package/dist/LearningOutcomeBadges/index.js +2 -0
  319. package/dist/LearningOutcomeCard/index.d.ts +26 -0
  320. package/dist/LearningOutcomeCard/index.js +192 -0
  321. package/dist/LearningOutcomeFlyout/index.d.ts +29 -0
  322. package/dist/LearningOutcomeFlyout/index.js +153 -0
  323. package/dist/LearningOutcomePopover/index.d.ts +10 -0
  324. package/dist/LearningOutcomePopover/index.js +125 -0
  325. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  326. package/dist/LearningOutcomeTile/Tile.js +79 -0
  327. package/dist/LearningOutcomeTile/index.d.ts +3 -0
  328. package/dist/LearningOutcomeTile/index.js +114 -0
  329. package/dist/LearningOutcomeTile/types.d.ts +47 -0
  330. package/dist/LearningOutcomeTile/types.js +11 -0
  331. package/dist/ListSection/index.d.ts +21 -0
  332. package/dist/ListSection/index.js +64 -0
  333. package/dist/Loading/index.d.ts +5 -0
  334. package/dist/Loading/index.js +82 -0
  335. package/dist/Loading/styles.module.scss +131 -0
  336. package/dist/LoadingCurriculumCard/index.d.ts +7 -0
  337. package/dist/LoadingCurriculumCard/index.js +82 -0
  338. package/dist/Logo/CodecademyLogo.d.ts +2 -0
  339. package/dist/Logo/CodecademyLogo.js +19 -0
  340. package/dist/Logo/CodecademyPremiumLogo.d.ts +2 -0
  341. package/dist/Logo/CodecademyPremiumLogo.js +35 -0
  342. package/dist/Logo/CodecademyProAltLogo.d.ts +2 -0
  343. package/dist/Logo/CodecademyProAltLogo.js +19 -0
  344. package/dist/Logo/CodecademyProLockupLogo.d.ts +2 -0
  345. package/dist/Logo/CodecademyProLockupLogo.js +13 -0
  346. package/dist/Logo/CodecademyProLogo.d.ts +2 -0
  347. package/dist/Logo/CodecademyProLogo.js +21 -0
  348. package/dist/Logo/CodecademyProMonoLogo.d.ts +2 -0
  349. package/dist/Logo/CodecademyProMonoLogo.js +22 -0
  350. package/dist/Logo/CodecademyProgramLogo.d.ts +2 -0
  351. package/dist/Logo/CodecademyProgramLogo.js +14 -0
  352. package/dist/Logo/CodecademyTeamsLogo.d.ts +2 -0
  353. package/dist/Logo/CodecademyTeamsLogo.js +41 -0
  354. package/dist/Logo/index.d.ts +8 -0
  355. package/dist/Logo/index.js +30 -0
  356. package/dist/LogoFromSkillsoft/index.d.ts +227 -0
  357. package/dist/LogoFromSkillsoft/index.js +55 -0
  358. package/dist/LogoLXStudio/index.d.ts +3 -0
  359. package/dist/LogoLXStudio/index.js +47 -0
  360. package/dist/LogoProCutout/index.d.ts +8 -0
  361. package/dist/LogoProCutout/index.js +31 -0
  362. package/dist/LogoProCutoutTransparent/index.d.ts +7 -0
  363. package/dist/LogoProCutoutTransparent/index.js +31 -0
  364. package/dist/MarketingToaster/index.d.ts +8 -0
  365. package/dist/MarketingToaster/index.js +67 -0
  366. package/dist/NotFoundContent/404.svg +1 -0
  367. package/dist/NotFoundContent/index.d.ts +8 -0
  368. package/dist/NotFoundContent/index.js +55 -0
  369. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
  370. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
  371. package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
  372. package/dist/NotificationList/EmptyNotification/index.js +38 -0
  373. package/dist/NotificationList/NotificationItem.d.ts +8 -0
  374. package/dist/NotificationList/NotificationItem.js +151 -0
  375. package/dist/NotificationList/index.d.ts +9 -0
  376. package/dist/NotificationList/index.js +46 -0
  377. package/dist/NotificationList/typings.d.ts +16 -0
  378. package/dist/NotificationList/typings.js +1 -0
  379. package/dist/Notifications/NotificationBell.d.ts +10 -0
  380. package/dist/Notifications/NotificationBell.js +72 -0
  381. package/dist/Notifications/NotificationsContents.d.ts +3 -0
  382. package/dist/Notifications/NotificationsContents.js +85 -0
  383. package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
  384. package/dist/Notifications/NotificationsDropdown.js +25 -0
  385. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
  386. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
  387. package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
  388. package/dist/Notifications/__fixtures__/stubs.js +8 -0
  389. package/dist/Notifications/constants.d.ts +4 -0
  390. package/dist/Notifications/constants.js +4 -0
  391. package/dist/Notifications/elements.d.ts +12 -0
  392. package/dist/Notifications/elements.js +21 -0
  393. package/dist/Notifications/types.d.ts +24 -0
  394. package/dist/Notifications/types.js +1 -0
  395. package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
  396. package/dist/Notifications/useHeaderNotifications.js +37 -0
  397. package/dist/Notifications/useNotificationButtons.d.ts +9 -0
  398. package/dist/Notifications/useNotificationButtons.js +56 -0
  399. package/dist/PageAlerts/PageAlerts.d.ts +10 -0
  400. package/dist/PageAlerts/PageAlerts.js +75 -0
  401. package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
  402. package/dist/PageAlerts/PageAlertsProvider.js +34 -0
  403. package/dist/PageAlerts/index.d.ts +3 -0
  404. package/dist/PageAlerts/index.js +3 -0
  405. package/dist/PageAlerts/types.d.ts +17 -0
  406. package/dist/PageAlerts/types.js +1 -0
  407. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
  408. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
  409. package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
  410. package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
  411. package/dist/PageSection/index.d.ts +17 -0
  412. package/dist/PageSection/index.js +67 -0
  413. package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
  414. package/dist/PastDue/PastDueModalContents/index.js +30 -0
  415. package/dist/PastDue/index.d.ts +2 -0
  416. package/dist/PastDue/index.js +2 -0
  417. package/dist/PastDue/pastDueMessages.d.ts +6 -0
  418. package/dist/PastDue/pastDueMessages.js +48 -0
  419. package/dist/PausableImage/BaseImage/index.d.ts +15 -0
  420. package/dist/PausableImage/BaseImage/index.js +54 -0
  421. package/dist/PausableImage/index.d.ts +11 -0
  422. package/dist/PausableImage/index.js +37 -0
  423. package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
  424. package/dist/PlanCard/PlanCardBanner.js +28 -0
  425. package/dist/PlanCard/PlanFeature.d.ts +9 -0
  426. package/dist/PlanCard/PlanFeature.js +83 -0
  427. package/dist/PlanCard/PopularBadge.d.ts +3 -0
  428. package/dist/PlanCard/PopularBadge.js +13 -0
  429. package/dist/PlanCard/PricingAmount.d.ts +14 -0
  430. package/dist/PlanCard/PricingAmount.js +117 -0
  431. package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
  432. package/dist/PlanCard/RecommendedBadge.js +24 -0
  433. package/dist/PlanCard/consts.d.ts +14 -0
  434. package/dist/PlanCard/consts.js +135 -0
  435. package/dist/PlanCard/index.d.ts +18 -0
  436. package/dist/PlanCard/index.js +323 -0
  437. package/dist/PlanCard/types.d.ts +39 -0
  438. package/dist/PlanCard/types.js +62 -0
  439. package/dist/PlanCardTeams/consts.d.ts +9 -0
  440. package/dist/PlanCardTeams/consts.js +8 -0
  441. package/dist/PlanCardTeams/index.d.ts +8 -0
  442. package/dist/PlanCardTeams/index.js +167 -0
  443. package/dist/PricingSection/PlanFeature.d.ts +10 -0
  444. package/dist/PricingSection/PlanFeature.js +88 -0
  445. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
  446. package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
  447. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
  448. package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
  449. package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
  450. package/dist/PricingSection/PricingCard/consts.js +85 -0
  451. package/dist/PricingSection/PricingCard/index.d.ts +12 -0
  452. package/dist/PricingSection/PricingCard/index.js +241 -0
  453. package/dist/PricingSection/ProductCTA.d.ts +6 -0
  454. package/dist/PricingSection/ProductCTA.js +44 -0
  455. package/dist/PricingSection/Products.d.ts +11 -0
  456. package/dist/PricingSection/Products.js +74 -0
  457. package/dist/PricingSection/config.d.ts +8 -0
  458. package/dist/PricingSection/config.js +36 -0
  459. package/dist/PricingSection/index.d.ts +13 -0
  460. package/dist/PricingSection/index.js +58 -0
  461. package/dist/PricingSection/types.d.ts +30 -0
  462. package/dist/PricingSection/types.js +8 -0
  463. package/dist/ProLabel/index.d.ts +376 -0
  464. package/dist/ProLabel/index.js +59 -0
  465. package/dist/ProLogo/index.d.ts +15 -0
  466. package/dist/ProLogo/index.js +27 -0
  467. package/dist/ProLogoAlt/index.d.ts +9 -0
  468. package/dist/ProLogoAlt/index.js +26 -0
  469. package/dist/ProductFeatureShowcase/index.d.ts +16 -0
  470. package/dist/ProductFeatureShowcase/index.js +120 -0
  471. package/dist/QuizScore/index.d.ts +12 -0
  472. package/dist/QuizScore/index.js +84 -0
  473. package/dist/RatingsBar/index.d.ts +12 -0
  474. package/dist/RatingsBar/index.js +32 -0
  475. package/dist/ResourceCard/index.d.ts +15 -0
  476. package/dist/ResourceCard/index.js +59 -0
  477. package/dist/ScoreSummary/SubScores.d.ts +28 -0
  478. package/dist/ScoreSummary/SubScores.js +165 -0
  479. package/dist/ScoreSummary/helpers.d.ts +11 -0
  480. package/dist/ScoreSummary/helpers.js +20 -0
  481. package/dist/ScoreSummary/index.d.ts +21 -0
  482. package/dist/ScoreSummary/index.js +108 -0
  483. package/dist/ScoreSummary/types.d.ts +310 -0
  484. package/dist/ScoreSummary/types.js +1 -0
  485. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  486. package/dist/SkillPathCard/index.d.ts +17 -0
  487. package/dist/SkillPathCard/index.js +38 -0
  488. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
  489. package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
  490. package/dist/SocialMediaSharing/index.d.ts +49 -0
  491. package/dist/SocialMediaSharing/index.js +116 -0
  492. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
  493. package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
  494. package/dist/SocialMediaSharingDropdown/index.js +111 -0
  495. package/dist/Testimonial/index.d.ts +45 -0
  496. package/dist/Testimonial/index.js +163 -0
  497. package/dist/assets/darkQuotes.svg +1 -0
  498. package/dist/assets/dots.svg +1 -0
  499. package/dist/assets/lightQuotes.svg +1 -0
  500. package/dist/assets/navyQuotes.svg +5 -0
  501. package/dist/assets/orange_squiggle.svg +1 -0
  502. package/dist/index.d.ts +90 -0
  503. package/dist/index.js +87 -0
  504. package/dist/lib/breakpointHooks/index.d.ts +43 -0
  505. package/dist/lib/breakpointHooks/index.js +60 -0
  506. package/dist/lib/catalogList/index.d.ts +5 -0
  507. package/dist/lib/catalogList/index.js +173 -0
  508. package/dist/lib/resourcesList/index.d.ts +5 -0
  509. package/dist/lib/resourcesList/index.js +232 -0
  510. package/dist/png.d.ts +4 -0
  511. package/dist/react-freezeframe.d.ts +1 -0
  512. package/dist/remoteAssets/components.d.ts +1 -0
  513. package/dist/remoteAssets/components.js +1 -0
  514. package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
  515. package/dist/stories/Atoms/Avatar.stories.js +16 -0
  516. package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
  517. package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
  518. package/dist/stories/Atoms/Logos/Logo.stories.d.ts +13 -0
  519. package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
  520. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
  521. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +15 -0
  522. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
  523. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
  524. package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +6 -0
  525. package/dist/stories/Atoms/Logos/ProLabel.stories.js +16 -0
  526. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +6 -0
  527. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
  528. package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
  529. package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
  530. package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
  531. package/dist/stories/Atoms/Subgrid.stories.js +87 -0
  532. package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
  533. package/dist/stories/Molecules/AppBar.stories.js +32 -0
  534. package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
  535. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
  536. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
  537. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
  538. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
  539. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
  540. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
  541. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
  542. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
  543. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
  544. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
  545. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
  546. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
  547. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
  548. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
  549. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
  550. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
  551. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
  552. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
  553. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
  554. package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
  555. package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
  556. package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
  557. package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
  558. package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
  559. package/dist/stories/Molecules/Banner.stories.js +115 -0
  560. package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
  561. package/dist/stories/Molecules/Carousel.stories.js +47 -0
  562. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
  563. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
  564. package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
  565. package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
  566. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
  567. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
  568. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
  569. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
  570. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
  571. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
  572. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
  573. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
  574. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
  575. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
  576. package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
  577. package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
  578. package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
  579. package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
  580. package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
  581. package/dist/stories/Molecules/EmptySection.stories.js +168 -0
  582. package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
  583. package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
  584. package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
  585. package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
  586. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
  587. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
  588. package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
  589. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
  590. package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
  591. package/dist/stories/Molecules/HubCard.stories.js +28 -0
  592. package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
  593. package/dist/stories/Molecules/InfoCard.stories.js +30 -0
  594. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.d.ts +6 -0
  595. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
  596. package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +15 -0
  597. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +189 -0
  598. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.d.ts +5 -0
  599. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +34 -0
  600. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
  601. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  602. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
  603. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  604. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
  605. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
  606. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
  607. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
  608. package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
  609. package/dist/stories/Molecules/ListSection.stories.js +97 -0
  610. package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
  611. package/dist/stories/Molecules/Loading.stories.js +10 -0
  612. package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
  613. package/dist/stories/Molecules/NotificationList.stories.js +100 -0
  614. package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
  615. package/dist/stories/Molecules/PageSection.stories.js +67 -0
  616. package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
  617. package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
  618. package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
  619. package/dist/stories/Molecules/PausableImage.stories.js +16 -0
  620. package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
  621. package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
  622. package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
  623. package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
  624. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
  625. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
  626. package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
  627. package/dist/stories/Molecules/Testimonial.stories.js +63 -0
  628. package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
  629. package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
  630. package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
  631. package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
  632. package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
  633. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
  634. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
  635. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
  636. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
  637. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
  638. package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
  639. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
  640. package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
  641. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
  642. package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
  643. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
  644. package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
  645. package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
  646. package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
  647. package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
  648. package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
  649. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
  650. package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
  651. package/dist/stories/Organisms/PageAlerts.example.js +42 -0
  652. package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
  653. package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
  654. package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
  655. package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
  656. package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
  657. package/dist/stories/Organisms/PageHero.stories.js +145 -0
  658. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
  659. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
  660. package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
  661. package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
  662. package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
  663. package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
  664. package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
  665. package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
  666. package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
  667. package/dist/stories/Organisms/PlanCard.stories.js +98 -0
  668. package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
  669. package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
  670. package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
  671. package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
  672. package/dist/svg.d.ts +8 -0
  673. package/dist/theme.d.ts +5 -0
  674. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ export interface AbbreviatedEventCardProps {
2
+ title: string;
3
+ startDate: string;
4
+ endDate: string;
5
+ url: string;
6
+ type?: string | null;
7
+ }
8
+ export declare const AbbreviatedEventCard: React.FC<AbbreviatedEventCardProps>;
@@ -0,0 +1,98 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
3
+ import { Anchor, Box, Card, FlexBox, Text } from '@codecademy/gamut';
4
+ import { ArrowChevronRightIcon, ClockIcon } from '@codecademy/gamut-icons';
5
+ import { format, parseJSON } from 'date-fns';
6
+ import upperCase from 'lodash/upperCase';
7
+ import { formatTime } from '../CommunityEventCard';
8
+ import { EventTypeIcon } from '../CommunityEventCard/EventTypeIcon';
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
+ export const AbbreviatedEventCard = ({
11
+ title,
12
+ startDate,
13
+ endDate,
14
+ url,
15
+ type
16
+ }) => {
17
+ const StyledLink = /*#__PURE__*/_styled(Anchor, {
18
+ target: "e7686yp0",
19
+ label: "StyledLink"
20
+ })(process.env.NODE_ENV === "production" ? {
21
+ name: "1cp29tz",
22
+ styles: "text-decoration:none;&:focus{text-decoration:none;}"
23
+ } : {
24
+ name: "1cp29tz",
25
+ styles: "text-decoration:none;&:focus{text-decoration:none;}/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BYmJyZXZpYXRlZENvbW11bml0eUV2ZW50Q2FyZC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0JtQyIsImZpbGUiOiIuLi8uLi9zcmMvQWJicmV2aWF0ZWRDb21tdW5pdHlFdmVudENhcmQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQW5jaG9yLCBCb3gsIENhcmQsIEZsZXhCb3gsIFRleHQgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dCc7XG5pbXBvcnQgeyBBcnJvd0NoZXZyb25SaWdodEljb24sIENsb2NrSWNvbiB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IGZvcm1hdCwgcGFyc2VKU09OIH0gZnJvbSAnZGF0ZS1mbnMnO1xuaW1wb3J0IHVwcGVyQ2FzZSBmcm9tICdsb2Rhc2gvdXBwZXJDYXNlJztcblxuaW1wb3J0IHsgZm9ybWF0VGltZSB9IGZyb20gJy4uL0NvbW11bml0eUV2ZW50Q2FyZCc7XG5pbXBvcnQgeyBFdmVudFR5cGVJY29uIH0gZnJvbSAnLi4vQ29tbXVuaXR5RXZlbnRDYXJkL0V2ZW50VHlwZUljb24nO1xuXG5leHBvcnQgaW50ZXJmYWNlIEFiYnJldmlhdGVkRXZlbnRDYXJkUHJvcHMge1xuICB0aXRsZTogc3RyaW5nO1xuICBzdGFydERhdGU6IHN0cmluZztcbiAgZW5kRGF0ZTogc3RyaW5nO1xuICB1cmw6IHN0cmluZztcbiAgdHlwZT86IHN0cmluZyB8IG51bGw7XG59XG5cbmV4cG9ydCBjb25zdCBBYmJyZXZpYXRlZEV2ZW50Q2FyZDogUmVhY3QuRkM8QWJicmV2aWF0ZWRFdmVudENhcmRQcm9wcz4gPSAoe1xuICB0aXRsZSxcbiAgc3RhcnREYXRlLFxuICBlbmREYXRlLFxuICB1cmwsXG4gIHR5cGUsXG59KSA9PiB7XG4gIGNvbnN0IFN0eWxlZExpbmsgPSBzdHlsZWQoQW5jaG9yKWBcbiAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gICAgJjpmb2N1cyB7XG4gICAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gICAgfVxuICBgO1xuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZExpbmsgaHJlZj17dXJsfSB0YXJnZXQ9XCJfYmxhbmtcIj5cbiAgICAgIDxDYXJkIGlzSW50ZXJhY3RpdmU+XG4gICAgICAgIDxGbGV4Qm94IGdhcD17MTZ9IGhlaWdodD1cIjEwMCVcIj5cbiAgICAgICAgICA8Qm94XG4gICAgICAgICAgICBhbGlnbkNvbnRlbnQ9XCJjZW50ZXJcIlxuICAgICAgICAgICAgYmc9XCJuYXZ5XCJcbiAgICAgICAgICAgIGJvcmRlclJhZGl1cz1cIm1kXCJcbiAgICAgICAgICAgIGNvbG9yPVwid2hpdGVcIlxuICAgICAgICAgICAgaGVpZ2h0PXs4MH1cbiAgICAgICAgICAgIGp1c3RpZnlDb250ZW50PVwiY2VudGVyXCJcbiAgICAgICAgICAgIHB4PXsxMn1cbiAgICAgICAgICAgIHdpZHRoPXs4MH1cbiAgICAgICAgICA+XG4gICAgICAgICAgICA8VGV4dCBmb250RmFtaWx5PVwiYWNjZW50XCIgZm9udFNpemU9ezI2fSBsaW5lSGVpZ2h0PVwibm9ybWFsXCI+XG4gICAgICAgICAgICAgIHt1cHBlckNhc2UoZm9ybWF0KHBhcnNlSlNPTihzdGFydERhdGUpLCAnTExMIGRkJykpfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgIDwvQm94PlxuICAgICAgICAgIDxGbGV4Qm94XG4gICAgICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgICAgIGdhcD17MTZ9XG4gICAgICAgICAgICBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIlxuICAgICAgICAgICAgbWluV2lkdGg9ezB9XG4gICAgICAgICAgICB3aWR0aD1cIjEwMCVcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxGbGV4Qm94IGZsZXhEaXJlY3Rpb249XCJjb2x1bW5cIiBnYXA9ezh9IG1pbldpZHRoPXswfSB3aWR0aD1cIjEwMCVcIj5cbiAgICAgICAgICAgICAgPFRleHQgYXM9XCJoM1wiIGZvbnRTaXplPXsyMn0gdHJ1bmNhdGU9XCJlbGxpcHNpc1wiIHRydW5jYXRlTGluZXM9ezF9PlxuICAgICAgICAgICAgICAgIHt0aXRsZX1cbiAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgICA8RmxleEJveCBhbGlnbkl0ZW1zPVwiY2VudGVyXCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICAgICAgICAgICAgPEZsZXhCb3ggYWxpZ25JdGVtcz1cImNlbnRlclwiIGdhcD17OH0gbWluV2lkdGg9ezB9PlxuICAgICAgICAgICAgICAgICAgPENsb2NrSWNvbiAvPlxuICAgICAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICAgICAgZm9udEZhbWlseT1cImFjY2VudFwiXG4gICAgICAgICAgICAgICAgICAgIGZvbnRTaXplPXsxNH1cbiAgICAgICAgICAgICAgICAgICAgdHJ1bmNhdGU9XCJlbGxpcHNpc1wiXG4gICAgICAgICAgICAgICAgICAgIHRydW5jYXRlTGluZXM9ezF9XG4gICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgIHtmb3JtYXRUaW1lKHN0YXJ0RGF0ZSwgZW5kRGF0ZSl9XG4gICAgICAgICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgICAgIHt0eXBlICYmIChcbiAgICAgICAgICAgICAgICAgIDxGbGV4Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIiBnYXA9ezh9IG1pbldpZHRoPXswfT5cbiAgICAgICAgICAgICAgICAgICAgPEV2ZW50VHlwZUljb24gZXZlbnRUeXBlPXt0eXBlfSAvPlxuICAgICAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgIDwvRmxleEJveD5cbiAgICAgICAgICAgIDwvRmxleEJveD5cbiAgICAgICAgICAgIDxBcnJvd0NoZXZyb25SaWdodEljb24gc2l6ZT17MjR9IC8+XG4gICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICA8L0NhcmQ+XG4gICAgPC9TdHlsZWRMaW5rPlxuICApO1xufTtcbiJdfQ== */",
26
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
27
+ });
28
+ return /*#__PURE__*/_jsx(StyledLink, {
29
+ href: url,
30
+ target: "_blank",
31
+ children: /*#__PURE__*/_jsx(Card, {
32
+ isInteractive: true,
33
+ children: /*#__PURE__*/_jsxs(FlexBox, {
34
+ gap: 16,
35
+ height: "100%",
36
+ children: [/*#__PURE__*/_jsx(Box, {
37
+ alignContent: "center",
38
+ bg: "navy",
39
+ borderRadius: "md",
40
+ color: "white",
41
+ height: 80,
42
+ justifyContent: "center",
43
+ px: 12,
44
+ width: 80,
45
+ children: /*#__PURE__*/_jsx(Text, {
46
+ fontFamily: "accent",
47
+ fontSize: 26,
48
+ lineHeight: "normal",
49
+ children: upperCase(format(parseJSON(startDate), 'LLL dd'))
50
+ })
51
+ }), /*#__PURE__*/_jsxs(FlexBox, {
52
+ alignItems: "center",
53
+ gap: 16,
54
+ justifyContent: "space-between",
55
+ minWidth: 0,
56
+ width: "100%",
57
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
58
+ flexDirection: "column",
59
+ gap: 8,
60
+ minWidth: 0,
61
+ width: "100%",
62
+ children: [/*#__PURE__*/_jsx(Text, {
63
+ as: "h3",
64
+ fontSize: 22,
65
+ truncate: "ellipsis",
66
+ truncateLines: 1,
67
+ children: title
68
+ }), /*#__PURE__*/_jsxs(FlexBox, {
69
+ alignItems: "center",
70
+ justifyContent: "space-between",
71
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
72
+ alignItems: "center",
73
+ gap: 8,
74
+ minWidth: 0,
75
+ children: [/*#__PURE__*/_jsx(ClockIcon, {}), /*#__PURE__*/_jsx(Text, {
76
+ fontFamily: "accent",
77
+ fontSize: 14,
78
+ truncate: "ellipsis",
79
+ truncateLines: 1,
80
+ children: formatTime(startDate, endDate)
81
+ })]
82
+ }), type && /*#__PURE__*/_jsx(FlexBox, {
83
+ alignItems: "center",
84
+ gap: 8,
85
+ minWidth: 0,
86
+ children: /*#__PURE__*/_jsx(EventTypeIcon, {
87
+ eventType: type
88
+ })
89
+ })]
90
+ })]
91
+ }), /*#__PURE__*/_jsx(ArrowChevronRightIcon, {
92
+ size: 24
93
+ })]
94
+ })]
95
+ })
96
+ })
97
+ });
98
+ };
@@ -0,0 +1,10 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import { StyleProps } from '@codecademy/variance';
3
+ import * as React from 'react';
4
+ declare const positionVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"position", false | "center" | "left" | "right"> & {
5
+ theme?: import("@emotion/react").Theme;
6
+ }) => import("@codecademy/variance").CSSObject;
7
+ export interface AppBarSectionProps extends StyleProps<typeof positionVariants>, WithChildrenProp {
8
+ }
9
+ export declare const AppBarSection: React.FC<AppBarSectionProps>;
10
+ export {};
@@ -0,0 +1,41 @@
1
+ import _styled from "@emotion/styled/base";
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ import { styledOptions, variant } from '@codecademy/gamut-styles';
4
+ import * as React from 'react';
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ const positionVariants = variant({
7
+ prop: 'position',
8
+ base: {
9
+ display: 'flex',
10
+ alignItems: 'center',
11
+ height: '100%',
12
+ zIndex: 1
13
+ },
14
+ variants: {
15
+ left: {
16
+ flex: 1
17
+ },
18
+ right: {
19
+ flex: 1,
20
+ justifyContent: 'flex-end'
21
+ },
22
+ center: {
23
+ flex: 2,
24
+ justifyContent: 'center',
25
+ textAlign: 'center'
26
+ }
27
+ }
28
+ });
29
+ const StyledSection = /*#__PURE__*/_styled('div', _extends({}, {
30
+ target: "eszklt40",
31
+ label: "StyledSection"
32
+ }, styledOptions))(positionVariants, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BcHBCYXIvQXBwQmFyU2VjdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0NzQiIsImZpbGUiOiIuLi8uLi9zcmMvQXBwQmFyL0FwcEJhclNlY3Rpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgV2l0aENoaWxkcmVuUHJvcCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IHN0eWxlZE9wdGlvbnMsIHZhcmlhbnQgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHsgU3R5bGVQcm9wcyB9IGZyb20gJ0Bjb2RlY2FkZW15L3ZhcmlhbmNlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuY29uc3QgcG9zaXRpb25WYXJpYW50cyA9IHZhcmlhbnQoe1xuICBwcm9wOiAncG9zaXRpb24nLFxuICBiYXNlOiB7XG4gICAgZGlzcGxheTogJ2ZsZXgnLFxuICAgIGFsaWduSXRlbXM6ICdjZW50ZXInLFxuICAgIGhlaWdodDogJzEwMCUnLFxuICAgIHpJbmRleDogMSxcbiAgfSxcbiAgdmFyaWFudHM6IHtcbiAgICBsZWZ0OiB7XG4gICAgICBmbGV4OiAxLFxuICAgIH0sXG4gICAgcmlnaHQ6IHtcbiAgICAgIGZsZXg6IDEsXG4gICAgICBqdXN0aWZ5Q29udGVudDogJ2ZsZXgtZW5kJyxcbiAgICB9LFxuICAgIGNlbnRlcjoge1xuICAgICAgZmxleDogMixcbiAgICAgIGp1c3RpZnlDb250ZW50OiAnY2VudGVyJyxcbiAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgfSxcbiAgfSxcbn0pO1xuXG5leHBvcnQgaW50ZXJmYWNlIEFwcEJhclNlY3Rpb25Qcm9wc1xuICBleHRlbmRzIFN0eWxlUHJvcHM8dHlwZW9mIHBvc2l0aW9uVmFyaWFudHM+LFxuICAgIFdpdGhDaGlsZHJlblByb3Age31cblxuY29uc3QgU3R5bGVkU2VjdGlvbiA9IHN0eWxlZChcbiAgJ2RpdicsXG4gIHN0eWxlZE9wdGlvbnNcbik8QXBwQmFyU2VjdGlvblByb3BzPihwb3NpdGlvblZhcmlhbnRzKTtcblxuZXhwb3J0IGNvbnN0IEFwcEJhclNlY3Rpb246IFJlYWN0LkZDPEFwcEJhclNlY3Rpb25Qcm9wcz4gPSAoe1xuICBwb3NpdGlvbixcbiAgY2hpbGRyZW4sXG59KSA9PiB7XG4gIHJldHVybiA8U3R5bGVkU2VjdGlvbiBwb3NpdGlvbj17cG9zaXRpb259PntjaGlsZHJlbn08L1N0eWxlZFNlY3Rpb24+O1xufTtcbiJdfQ== */");
33
+ export const AppBarSection = ({
34
+ position,
35
+ children
36
+ }) => {
37
+ return /*#__PURE__*/_jsx(StyledSection, {
38
+ position: position,
39
+ children: children
40
+ });
41
+ };
@@ -0,0 +1,9 @@
1
+ import { ContentContainer, WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export interface AppBarProps extends WithChildrenProp, Pick<React.ComponentProps<typeof ContentContainer>, 'aria-label' | 'as'> {
4
+ /**
5
+ * Whether the container should be larger than the default content size.
6
+ */
7
+ wide?: boolean;
8
+ }
9
+ export declare const AppBar: React.FC<AppBarProps>;
@@ -0,0 +1,20 @@
1
+ import { ContentContainer } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ export const AppBar = ({
5
+ 'aria-label': ariaLabel,
6
+ as,
7
+ wide,
8
+ children
9
+ }) => {
10
+ return /*#__PURE__*/_jsx(ContentContainer, {
11
+ "aria-label": ariaLabel,
12
+ as: as,
13
+ display: "flex",
14
+ alignItems: "center",
15
+ height: "100%",
16
+ size: wide ? 'wide' : 'medium',
17
+ zIndex: 14,
18
+ children: children
19
+ });
20
+ };
@@ -0,0 +1,14 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export interface AppBarSectionPropsDeprecated extends WithChildrenProp {
4
+ /**
5
+ * Position of the the section within the AppBar.
6
+ */
7
+ position?: 'left' | 'center' | 'right';
8
+ className?: string;
9
+ }
10
+ /**
11
+ * @deprecated use `<AppBarSection>` instead
12
+ * this component still exists since `<Footer>` in le-shared uses classnames
13
+ */
14
+ export declare const AppBarSectionDeprecated: React.FC<AppBarSectionPropsDeprecated>;
@@ -0,0 +1,25 @@
1
+ import cx from 'classnames';
2
+ import * as React from 'react';
3
+
4
+ // eslint-disable-next-line gamut/no-css-standalone
5
+ import styles from './styles/index.module.scss';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ /**
8
+ * @deprecated use `<AppBarSection>` instead
9
+ * this component still exists since `<Footer>` in le-shared uses classnames
10
+ */
11
+ export const AppBarSectionDeprecated = ({
12
+ position,
13
+ className,
14
+ children
15
+ }) => {
16
+ const classes = cx(styles.section, {
17
+ [styles.sectionRight]: position === 'right',
18
+ [styles.sectionLeft]: position === 'left',
19
+ [styles.sectionCenter]: position === 'center'
20
+ }, className);
21
+ return /*#__PURE__*/_jsx("div", {
22
+ className: classes,
23
+ children: children
24
+ });
25
+ };
@@ -0,0 +1,14 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export interface AppBarPropsDeprecated extends WithChildrenProp {
4
+ className?: string;
5
+ /**
6
+ * Whether the container should be larger than the default content size.
7
+ */
8
+ wide?: boolean;
9
+ }
10
+ /**
11
+ * @deprecated use `<AppBar>` instead
12
+ * this component still exists since `<Footer>` in le-shared uses classnames
13
+ */
14
+ export declare const AppBarDeprecated: React.FC<AppBarPropsDeprecated>;
@@ -0,0 +1,26 @@
1
+ import { ContentContainer } from '@codecademy/gamut';
2
+ import cx from 'classnames';
3
+ import * as React from 'react';
4
+
5
+ // eslint-disable-next-line gamut/no-css-standalone
6
+ import styles from './styles/index.module.scss';
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ /**
9
+ * @deprecated use `<AppBar>` instead
10
+ * this component still exists since `<Footer>` in le-shared uses classnames
11
+ */
12
+ export const AppBarDeprecated = ({
13
+ wide,
14
+ children,
15
+ className
16
+ }) => {
17
+ const classes = cx(styles.wrapper, className);
18
+ return /*#__PURE__*/_jsx(ContentContainer, {
19
+ className: classes,
20
+ display: "flex",
21
+ alignItems: "center",
22
+ height: "100%",
23
+ size: wide ? 'wide' : 'medium',
24
+ children: children
25
+ });
26
+ };
@@ -0,0 +1,39 @@
1
+ @import "~@codecademy/gamut-styles/utils";
2
+
3
+ $appbar-gutter: px-rem(8px);
4
+ $appbar-tab-width: px-rem(48px);
5
+ $appbar-z: 14;
6
+
7
+ .wrapper {
8
+ display: flex;
9
+ align-items: center;
10
+ height: 100%;
11
+ z-index: $appbar-z;
12
+ }
13
+
14
+ .section {
15
+ display: flex;
16
+ align-items: center;
17
+ height: 100%;
18
+ z-index: 1;
19
+ }
20
+
21
+ .sectionRight {
22
+ justify-content: flex-end;
23
+ white-space: nowrap;
24
+ }
25
+
26
+ .sectionLeft {
27
+ flex: 1;
28
+ }
29
+
30
+ .sectionRight,
31
+ .sectionLeft {
32
+ flex: 1;
33
+ }
34
+
35
+ .sectionCenter {
36
+ flex: 2;
37
+ justify-content: center;
38
+ text-align: center;
39
+ }
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { AppHeaderAction, AppHeaderCatalogDropdownItem } from '../../shared';
3
+ export type AppHeaderCatalogDropdownProps = AppHeaderAction & {
4
+ item: AppHeaderCatalogDropdownItem;
5
+ isAnon: boolean;
6
+ };
7
+ export declare const AppHeaderCatalogDropdown: React.FC<AppHeaderCatalogDropdownProps>;
@@ -0,0 +1,98 @@
1
+ import { useCallback, useEffect, useRef, useState } from 'react';
2
+ import * as React from 'react';
3
+ import { AnimatedMegaMenuDropdown } from '../../shared';
4
+ import { AppHeaderCatalogSection } from '../AppHeaderCatalogSection';
5
+ import { AppHeaderDropdownProvider } from '../AppHeaderDropdownProvider';
6
+ import { AppHeaderDropdownNavButton } from '../AppHeaderNavButton/AppHeaderDropdownNavButton';
7
+ import { useAppHeaderContext } from '../AppHeaderProvider';
8
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
+ export const AppHeaderCatalogDropdown = ({
10
+ action,
11
+ item,
12
+ isAnon
13
+ }) => {
14
+ const {
15
+ text
16
+ } = item;
17
+ const containerRef = useRef(null);
18
+ const buttonRef = useRef(null);
19
+ const [isOpen, setIsOpen] = useState(false);
20
+ const {
21
+ lastOpenedDropdown,
22
+ setLastOpenedDropdown
23
+ } = useAppHeaderContext();
24
+ const focusButton = () => {
25
+ buttonRef?.current?.focus();
26
+ };
27
+ const toggleIsOpen = () => setIsOpen(prev => !prev);
28
+ const handleOnClick = event => {
29
+ toggleIsOpen();
30
+ if (!isOpen) {
31
+ action(event, item);
32
+ if (setLastOpenedDropdown) {
33
+ setLastOpenedDropdown(text);
34
+ }
35
+ }
36
+ };
37
+ const handleClose = useCallback(() => {
38
+ setIsOpen(false);
39
+ focusButton();
40
+ }, []);
41
+ useEffect(() => {
42
+ if (lastOpenedDropdown !== text && isOpen) {
43
+ setIsOpen(false);
44
+ }
45
+ // eslint-disable-next-line react-hooks/exhaustive-deps
46
+ }, [lastOpenedDropdown]);
47
+ useEffect(() => {
48
+ function handleClickOutside(event) {
49
+ const container = containerRef?.current;
50
+ const button = buttonRef?.current;
51
+ if (isOpen && container && !container.contains(event.target) && button && !button.contains(event.target)) {
52
+ handleClose();
53
+ }
54
+ }
55
+ document.addEventListener('mousedown', handleClickOutside);
56
+ document.addEventListener('blur', handleClickOutside);
57
+ return () => {
58
+ document.removeEventListener('mousedown', handleClickOutside);
59
+ document.removeEventListener('blur', handleClickOutside);
60
+ };
61
+ }, [containerRef, handleClose, isOpen]);
62
+ return /*#__PURE__*/_jsxs(AppHeaderDropdownProvider, {
63
+ handleClose: handleClose,
64
+ children: [/*#__PURE__*/_jsx(AppHeaderDropdownNavButton, {
65
+ buttonRef: buttonRef,
66
+ handleOnClick: handleOnClick,
67
+ isOpen: isOpen,
68
+ title: text
69
+ }), /*#__PURE__*/_jsx(AnimatedMegaMenuDropdown, {
70
+ style: {
71
+ top: '3.5rem',
72
+ minWidth: '64rem',
73
+ left: isAnon ? '-9rem' : '-14rem'
74
+ },
75
+ initial: {
76
+ borderWidth: 0,
77
+ height: 0
78
+ },
79
+ animate: {
80
+ borderWidth: isOpen ? 1 : 0,
81
+ height: isOpen ? 'fit-content' : 0
82
+ },
83
+ transition: {
84
+ duration: 0.175
85
+ },
86
+ "aria-hidden": !isOpen,
87
+ "data-testid": "catalog-menu-dropdown",
88
+ children: /*#__PURE__*/_jsx(AppHeaderCatalogSection, {
89
+ action: action,
90
+ item: item,
91
+ ref: containerRef,
92
+ id: `menu-container${item.text}`,
93
+ isOpen: isOpen,
94
+ handleClose: () => setIsOpen(false)
95
+ })
96
+ })]
97
+ });
98
+ };