@codecademy/brand 1.46.0 → 1.47.0-alpha.72688a5a84.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 (350) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
  2. package/dist/AppBar/AppBarSection.d.ts +10 -0
  3. package/dist/AppBar/index.d.ts +9 -0
  4. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
  5. package/dist/AppBarDeprecated/index.d.ts +14 -0
  6. package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
  7. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +97 -0
  9. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +56 -12
  10. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +5 -3
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
  30. package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
  31. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
  32. package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
  33. package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
  34. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
  35. package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
  36. package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
  37. package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
  38. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
  39. package/dist/AppHeader/Search/consts.d.ts +23 -0
  40. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
  41. package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
  42. package/dist/AppHeader/Search/types.d.ts +23 -0
  43. package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
  44. package/dist/AppHeader/index.d.ts +24 -0
  45. package/dist/AppHeader/shared/elements.d.ts +84 -0
  46. package/dist/AppHeader/shared/index.d.ts +4 -0
  47. package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
  48. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
  49. package/dist/AppHeader/shared/testTypes.d.ts +0 -0
  50. package/dist/AppHeader/shared/types.d.ts +107 -0
  51. package/dist/AppHeader/shared/utils.d.ts +16 -0
  52. package/dist/AppHeader/utils/types.d.ts +8 -0
  53. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
  54. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
  55. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
  56. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
  57. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
  58. package/dist/AppHeaderMobile/index.d.ts +20 -0
  59. package/dist/Avatar/Avatar.stories.d.ts +6 -0
  60. package/dist/Avatar/index.d.ts +36 -0
  61. package/dist/AvatarChooser/index.d.ts +12 -0
  62. package/dist/BackToTopAnchor/index.d.ts +13 -0
  63. package/dist/Banner/CountdownTimer.d.ts +7 -0
  64. package/dist/Banner/EnhancedBanner.d.ts +17 -0
  65. package/dist/Banner/index.d.ts +31 -0
  66. package/dist/BetaSticker/index.d.ts +6 -0
  67. package/dist/CareerPathCard/index.d.ts +19 -0
  68. package/dist/Carousel/elements.d.ts +27 -0
  69. package/dist/Carousel/index.d.ts +24 -0
  70. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  71. package/dist/CertificationPathCard/index.d.ts +20 -0
  72. package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
  73. package/dist/CommunityEventCard/index.d.ts +28 -0
  74. package/dist/CommunityEventToast/index.d.ts +6 -0
  75. package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
  76. package/dist/ContentGroupBaseCard/index.d.ts +31 -0
  77. package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
  78. package/dist/ContentGroupBaseCard/types.d.ts +10 -0
  79. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
  80. package/dist/CourseCard/index.d.ts +20 -0
  81. package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
  82. package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
  83. package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
  84. package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
  85. package/dist/CurriculumCard/Footer/index.d.ts +10 -0
  86. package/dist/CurriculumCard/Image/index.d.ts +9 -0
  87. package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
  88. package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
  89. package/dist/CurriculumCard/index.d.ts +59 -0
  90. package/dist/DropdownButton/DropdownList.d.ts +17 -0
  91. package/dist/DropdownButton/index.d.ts +76 -0
  92. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
  93. package/dist/EditorialImage/index.d.ts +10 -0
  94. package/dist/EditorialImage/styles.module.scss +36 -0
  95. package/dist/EmptySection/index.d.ts +28 -0
  96. package/dist/ErrorContents/index.d.ts +8 -0
  97. package/dist/FeatureList/index.d.ts +11 -0
  98. package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
  99. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
  100. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
  101. package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
  102. package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
  103. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
  104. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
  105. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
  106. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
  107. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
  108. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
  109. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
  110. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
  111. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
  112. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  113. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
  114. package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
  115. package/dist/GlobalFooter/index.d.ts +23 -0
  116. package/dist/GlobalFooter/types.d.ts +13 -0
  117. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
  118. package/dist/GlobalHeader/GlobalHeaderItems.js +1 -1
  119. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
  120. package/dist/GlobalHeader/GlobalHeaderVariants.js +1 -1
  121. package/dist/GlobalHeader/index.d.ts +11 -0
  122. package/dist/GlobalHeader/index.js +41 -37
  123. package/dist/GlobalHeader/types.d.ts +90 -0
  124. package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
  125. package/dist/GlobalPage/index.d.ts +34 -0
  126. package/dist/Grid/GridCollapse.d.ts +41 -0
  127. package/dist/Grid/Subgrid.d.ts +23 -0
  128. package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
  129. package/dist/Grid/index.d.ts +3 -0
  130. package/dist/HeaderHeightArea/index.d.ts +9 -0
  131. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
  132. package/dist/HorizontalScrollMenu/index.d.ts +7 -0
  133. package/dist/HubCard/index.d.ts +8 -0
  134. package/dist/InfoCard/index.d.ts +19 -0
  135. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
  136. package/dist/Konamimojisplosion/index.d.ts +2 -0
  137. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
  138. package/dist/LandingPage/CTA.d.ts +9 -0
  139. package/dist/LandingPage/Description.d.ts +6 -0
  140. package/dist/LandingPage/Feature.d.ts +32 -0
  141. package/dist/LandingPage/PageFAQs.d.ts +10 -0
  142. package/dist/LandingPage/PageFeatures.d.ts +16 -0
  143. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
  144. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
  145. package/dist/LandingPage/PageHero.d.ts +7 -0
  146. package/dist/LandingPage/PagePrefooter.d.ts +5 -0
  147. package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
  148. package/dist/LandingPage/PageTestimonials.d.ts +21 -0
  149. package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
  150. package/dist/LandingPage/Title.d.ts +23 -0
  151. package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
  152. package/dist/LandingPage/index.d.ts +14 -0
  153. package/dist/LandingPage/types.d.ts +28 -0
  154. package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
  155. package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
  156. package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
  157. package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
  158. package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
  159. package/dist/LayoutMenu/index.d.ts +3 -0
  160. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
  161. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
  162. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
  163. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
  164. package/dist/LayoutMenuVariant/index.d.ts +2 -0
  165. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
  166. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  167. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  168. package/dist/LearningOutcomeCard/index.d.ts +29 -0
  169. package/dist/LearningOutcomePopover/index.d.ts +10 -0
  170. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  171. package/dist/LearningOutcomeTile/index.d.ts +2 -0
  172. package/dist/LearningOutcomeTile/types.d.ts +48 -0
  173. package/dist/ListSection/index.d.ts +21 -0
  174. package/dist/Loading/index.d.ts +5 -0
  175. package/dist/Loading/styles.module.scss +131 -0
  176. package/dist/LoadingCurriculumCard/index.d.ts +7 -0
  177. package/dist/Logo/CodecademyLogo.d.ts +2 -0
  178. package/dist/Logo/CodecademyPremiumLogo.d.ts +2 -0
  179. package/dist/Logo/CodecademyProAltLogo.d.ts +2 -0
  180. package/dist/Logo/CodecademyProLockupLogo.d.ts +2 -0
  181. package/dist/Logo/CodecademyProLogo.d.ts +2 -0
  182. package/dist/Logo/CodecademyProMonoLogo.d.ts +2 -0
  183. package/dist/Logo/CodecademyProgramLogo.d.ts +2 -0
  184. package/dist/Logo/CodecademyTeamsLogo.d.ts +2 -0
  185. package/dist/Logo/index.d.ts +8 -0
  186. package/dist/LogoFromSkillsoft/index.d.ts +227 -0
  187. package/dist/LogoLXStudio/index.d.ts +3 -0
  188. package/dist/LogoProCutout/index.d.ts +8 -0
  189. package/dist/LogoProCutoutTransparent/index.d.ts +7 -0
  190. package/dist/MarketingToaster/index.d.ts +8 -0
  191. package/dist/NotFoundContent/404.svg +1 -0
  192. package/dist/NotFoundContent/index.d.ts +8 -0
  193. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
  194. package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
  195. package/dist/NotificationList/NotificationItem.d.ts +8 -0
  196. package/dist/NotificationList/index.d.ts +9 -0
  197. package/dist/NotificationList/typings.d.ts +16 -0
  198. package/dist/Notifications/NotificationBell.d.ts +10 -0
  199. package/dist/Notifications/NotificationsContents.d.ts +3 -0
  200. package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
  201. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
  202. package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
  203. package/dist/Notifications/constants.d.ts +4 -0
  204. package/dist/Notifications/elements.d.ts +12 -0
  205. package/dist/Notifications/types.d.ts +24 -0
  206. package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
  207. package/dist/Notifications/useNotificationButtons.d.ts +9 -0
  208. package/dist/PageAlerts/PageAlerts.d.ts +10 -0
  209. package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
  210. package/dist/PageAlerts/index.d.ts +3 -0
  211. package/dist/PageAlerts/types.d.ts +17 -0
  212. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
  213. package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
  214. package/dist/PageSection/index.d.ts +17 -0
  215. package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
  216. package/dist/PastDue/index.d.ts +2 -0
  217. package/dist/PastDue/pastDueMessages.d.ts +6 -0
  218. package/dist/PausableImage/BaseImage/index.d.ts +15 -0
  219. package/dist/PausableImage/index.d.ts +11 -0
  220. package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
  221. package/dist/PlanCard/PlanFeature.d.ts +9 -0
  222. package/dist/PlanCard/PopularBadge.d.ts +3 -0
  223. package/dist/PlanCard/PricingAmount.d.ts +14 -0
  224. package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
  225. package/dist/PlanCard/consts.d.ts +14 -0
  226. package/dist/PlanCard/index.d.ts +18 -0
  227. package/dist/PlanCard/types.d.ts +39 -0
  228. package/dist/PlanCardTeams/consts.d.ts +9 -0
  229. package/dist/PlanCardTeams/index.d.ts +8 -0
  230. package/dist/PricingSection/PlanFeature.d.ts +10 -0
  231. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
  232. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
  233. package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
  234. package/dist/PricingSection/PricingCard/index.d.ts +12 -0
  235. package/dist/PricingSection/ProductCTA.d.ts +6 -0
  236. package/dist/PricingSection/Products.d.ts +11 -0
  237. package/dist/PricingSection/config.d.ts +8 -0
  238. package/dist/PricingSection/index.d.ts +13 -0
  239. package/dist/PricingSection/types.d.ts +30 -0
  240. package/dist/ProLabel/index.d.ts +376 -0
  241. package/dist/ProLogo/index.d.ts +15 -0
  242. package/dist/ProLogoAlt/index.d.ts +9 -0
  243. package/dist/ProductFeatureShowcase/index.d.ts +16 -0
  244. package/dist/QuizScore/index.d.ts +12 -0
  245. package/dist/RatingsBar/index.d.ts +12 -0
  246. package/dist/ResourceCard/index.d.ts +15 -0
  247. package/dist/ScoreSummary/SubScores.d.ts +28 -0
  248. package/dist/ScoreSummary/helpers.d.ts +11 -0
  249. package/dist/ScoreSummary/index.d.ts +21 -0
  250. package/dist/ScoreSummary/types.d.ts +310 -0
  251. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  252. package/dist/SkillPathCard/index.d.ts +17 -0
  253. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
  254. package/dist/SocialMediaSharing/index.d.ts +49 -0
  255. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
  256. package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
  257. package/dist/Testimonial/index.d.ts +45 -0
  258. package/dist/assets/darkQuotes.svg +1 -0
  259. package/dist/assets/dots.svg +1 -0
  260. package/dist/assets/lightQuotes.svg +1 -0
  261. package/dist/assets/navyQuotes.svg +5 -0
  262. package/dist/assets/orange_squiggle.svg +1 -0
  263. package/dist/index.d.ts +89 -0
  264. package/dist/lib/breakpointHooks/index.d.ts +43 -0
  265. package/dist/lib/catalogList/index.d.ts +5 -0
  266. package/dist/lib/resourcesList/index.d.ts +5 -0
  267. package/dist/png.d.ts +4 -0
  268. package/dist/react-freezeframe.d.ts +1 -0
  269. package/dist/remoteAssets/components.d.ts +1 -0
  270. package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
  271. package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
  272. package/dist/stories/Atoms/Logos/Logo.stories.d.ts +13 -0
  273. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
  274. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
  275. package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +6 -0
  276. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +6 -0
  277. package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
  278. package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
  279. package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
  280. package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
  281. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
  282. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
  283. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
  284. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
  285. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
  286. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
  287. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
  288. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
  289. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
  290. package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
  291. package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
  292. package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
  293. package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
  294. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
  295. package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
  296. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
  297. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
  298. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
  299. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
  300. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
  301. package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
  302. package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
  303. package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
  304. package/dist/stories/Molecules/EnhancedBanner.stories.d.ts +10 -0
  305. package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
  306. package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
  307. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
  308. package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
  309. package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
  310. package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
  311. package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +10 -0
  312. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
  313. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
  314. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
  315. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
  316. package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
  317. package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
  318. package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
  319. package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
  320. package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
  321. package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
  322. package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
  323. package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
  324. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
  325. package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
  326. package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
  327. package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
  328. package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
  329. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
  330. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
  331. package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
  332. package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
  333. package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
  334. package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
  335. package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
  336. package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
  337. package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
  338. package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
  339. package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
  340. package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
  341. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
  342. package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
  343. package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
  344. package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
  345. package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
  346. package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
  347. package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
  348. package/dist/svg.d.ts +8 -0
  349. package/dist/theme.d.ts +5 -0
  350. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export interface TitleProps extends WithChildrenProp {
4
+ isPageHeading?: boolean;
5
+ }
6
+ export declare const titleProps: {
7
+ readonly heading: {
8
+ readonly as: "h1";
9
+ readonly fontSize: {
10
+ readonly _: 34;
11
+ readonly sm: 44;
12
+ readonly lg: 64;
13
+ };
14
+ };
15
+ readonly subheading: {
16
+ readonly as: "h2";
17
+ readonly fontSize: {
18
+ readonly _: 26;
19
+ readonly lg: 34;
20
+ };
21
+ };
22
+ };
23
+ export declare const Title: React.FC<TitleProps>;
@@ -0,0 +1,11 @@
1
+ import { TextProps } from '@codecademy/gamut';
2
+ import React from 'react';
3
+ import { Eyebrow } from './PageSingleFeature';
4
+ export interface TitleWithEyebrowProps {
5
+ eyebrow: Eyebrow;
6
+ title: string | undefined;
7
+ isPageHeading: boolean | undefined;
8
+ titleStyle?: Omit<TextProps, 'as' | 'truncateLines' | 'truncate'>;
9
+ eyebrowStyle?: Omit<TextProps, 'as' | 'truncateLines' | 'truncate'>;
10
+ }
11
+ export declare const TitleWithEyebrow: React.FC<TitleWithEyebrowProps>;
@@ -0,0 +1,14 @@
1
+ export * from './PageHero';
2
+ export * from './PageSingleFeature';
3
+ export * from './PageFeatures';
4
+ export * from './PageFeaturesEnhanced';
5
+ export * from './PageFeaturesWithReferences';
6
+ export * from './PagePrefooter';
7
+ export * from './PageVideoGallery';
8
+ export * from './types';
9
+ export * from './Title';
10
+ export * from './TitleWithEyebrow';
11
+ export * from './Description';
12
+ export * from './PageTestimonials';
13
+ export * from './PageFAQs';
14
+ export * from '../FeatureList';
@@ -0,0 +1,28 @@
1
+ export type LandingPageBaseProps = {
2
+ title?: string;
3
+ /**
4
+ * Body text as markdown
5
+ */
6
+ desc?: string;
7
+ /**
8
+ * Callback when a markdown anchor tag is clicked
9
+ */
10
+ onAnchorClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
11
+ /**
12
+ * text: button text
13
+ *
14
+ * href: url to navigate to when clicking the button
15
+ *
16
+ * onClick: callback when the button is clicked
17
+ *
18
+ * buttonType: whether to show a CTA button or a regular fill button, defaults to CTA button
19
+ */
20
+ cta?: {
21
+ text: string;
22
+ href: string;
23
+ onClick?: React.MouseEventHandler;
24
+ buttonType?: 'cta' | 'fill';
25
+ };
26
+ testId?: string;
27
+ };
28
+ export type CtaProps = LandingPageBaseProps['cta'];
@@ -0,0 +1,25 @@
1
+ import { Scale } from '@codecademy/variance/dist/types/config';
2
+ import * as React from 'react';
3
+ export type SectionItem = {
4
+ title: string;
5
+ slug: string;
6
+ href: string;
7
+ onClick: (event: React.MouseEvent) => void;
8
+ badge?: JSX.Element;
9
+ };
10
+ export type Section = {
11
+ title: string;
12
+ slug: string;
13
+ items: SectionItem[];
14
+ };
15
+ export type AccordionMenuProps = {
16
+ section: Section;
17
+ onSectionToggle: (sectionSlug: string) => void;
18
+ onItemClick: () => void;
19
+ selectedItem?: string;
20
+ verticalSpacing?: Scale<{
21
+ readonly property: 'padding';
22
+ readonly scale: 'spacing';
23
+ }>;
24
+ };
25
+ export declare const AccordionMenu: React.FC<AccordionMenuProps>;
@@ -0,0 +1,43 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import { Scale } from '@codecademy/variance/dist/types/config';
3
+ import * as React from 'react';
4
+ import { Section, SectionItem } from './AccordionMenu';
5
+ export interface LayoutMenuProps extends WithChildrenProp {
6
+ /**
7
+ * Accessibility label for the mobile Flyout's close button.
8
+ */
9
+ closeLabel: string;
10
+ /**
11
+ * An array of sections containing the title, slug, and items, each of which will become an accordion. Each item contains a title, slug, and onClick.
12
+ */
13
+ sections: Section[];
14
+ /**
15
+ * The slug of the current selected item
16
+ */
17
+ selectedItem?: string;
18
+ /**
19
+ * Callback to be run on click of the accordion button
20
+ */
21
+ onSectionToggle: (sectionSlug: string) => void;
22
+ /**
23
+ * Text shown in mobile button that opens flyout on click
24
+ */
25
+ mobileButtonText: string;
26
+ /**
27
+ * Breakpoint above which the menu button displays as a full sidebar
28
+ */
29
+ breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
30
+ /**
31
+ * An array of section items, each of which become an additional link on top of the accordion section.
32
+ */
33
+ topLinkSections?: SectionItem[];
34
+ /**
35
+ * Set fixed height for menu with overflow
36
+ */
37
+ menuHeight?: 'sm' | 'md' | 'lg';
38
+ verticalSpacing?: Scale<{
39
+ readonly property: 'padding';
40
+ readonly scale: 'spacing';
41
+ }>;
42
+ }
43
+ export declare const LayoutMenu: React.FC<LayoutMenuProps>;
@@ -0,0 +1,16 @@
1
+ import { system } from '@codecademy/gamut-styles';
2
+ import { StyleProps } from '@codecademy/variance';
3
+ import { Scale } from '@codecademy/variance/dist/types/config';
4
+ import * as React from 'react';
5
+ import { SectionItem } from './AccordionMenu';
6
+ export type LayoutMenuSectionStyles = StyleProps<typeof system.space>;
7
+ export type LayoutMenuSectionProps = LayoutMenuSectionStyles & {
8
+ items: SectionItem[];
9
+ selectedItem?: string;
10
+ onItemClick: () => void;
11
+ verticalSpacing?: Scale<{
12
+ readonly property: 'padding';
13
+ readonly scale: 'spacing';
14
+ }>;
15
+ };
16
+ export declare const LayoutMenuSection: React.FC<LayoutMenuSectionProps>;
@@ -0,0 +1,7 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export interface SectionItemLinkProps extends WithChildrenProp {
4
+ onClick: (event: React.MouseEvent) => void;
5
+ href: string;
6
+ }
7
+ export declare const SectionItemLink: React.FC<SectionItemLinkProps>;
@@ -0,0 +1,3 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ export declare const SelectedSectionItem: React.FC<WithChildrenProp>;
@@ -0,0 +1,3 @@
1
+ export * from './LayoutMenu';
2
+ export * from './SectionItemLink';
3
+ export * from './SelectedSectionItem';
@@ -0,0 +1,21 @@
1
+ import { Anchor } from '@codecademy/gamut';
2
+ import React from 'react';
3
+ export type SectionItem = {
4
+ title: string;
5
+ slug: string;
6
+ href: string;
7
+ onClick: (event: React.MouseEvent) => void;
8
+ badge?: JSX.Element;
9
+ variant?: React.ComponentProps<typeof Anchor>['variant'];
10
+ };
11
+ export type Section = {
12
+ title: string;
13
+ slug: string;
14
+ items: SectionItem[];
15
+ };
16
+ export type AccordionMenuProps = {
17
+ section: Section;
18
+ onSectionToggle: (sectionSlug: string) => void;
19
+ onItemClick: () => void;
20
+ };
21
+ export declare const AccordionMenu: React.FC<AccordionMenuProps>;
@@ -0,0 +1,39 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import { GamutIconProps } from '@codecademy/gamut-icons';
3
+ import React, { ComponentType } from 'react';
4
+ import { Section, SectionItem } from './AccordionMenu';
5
+ export interface LayoutMenuProps extends WithChildrenProp {
6
+ /**
7
+ * Accessibility label for the mobile Flyout's close button.
8
+ */
9
+ closeLabel: string;
10
+ /**
11
+ * An array of sections containing the title, slug, and items, each of which will become an accordion. Each item contains a title, slug, and onClick.
12
+ */
13
+ sections: Section[];
14
+ /**
15
+ * Callback to be run on click of the accordion button
16
+ */
17
+ onSectionToggle: (sectionSlug: string) => void;
18
+ /**
19
+ * Text shown in mobile button that opens flyout on click
20
+ */
21
+ mobileButtonText: string;
22
+ /**
23
+ * Icon shown in mobile button that opens flyout on click
24
+ */
25
+ mobileButtonIcon?: ComponentType<GamutIconProps>;
26
+ /**
27
+ * Breakpoint above which the menu button displays as a full sidebar
28
+ */
29
+ breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
30
+ /**
31
+ * An array of section items, each of which become an additional link on top of the accordion section.
32
+ */
33
+ topLinkSections?: SectionItem[];
34
+ /**
35
+ * Set fixed height for menu with overflow
36
+ */
37
+ menuHeight?: 'sm' | 'md' | 'lg';
38
+ }
39
+ export declare const LayoutMenu: React.FC<LayoutMenuProps>;
@@ -0,0 +1,10 @@
1
+ import { system } from '@codecademy/gamut-styles';
2
+ import { StyleProps } from '@codecademy/variance';
3
+ import React from 'react';
4
+ import { SectionItem } from './AccordionMenu';
5
+ export type LayoutMenuSectionStyles = StyleProps<typeof system.space>;
6
+ export type LayoutMenuSectionProps = LayoutMenuSectionStyles & {
7
+ items: SectionItem[];
8
+ onItemClick: () => void;
9
+ };
10
+ export declare const LayoutMenuSection: React.FC<LayoutMenuSectionProps>;
@@ -0,0 +1,8 @@
1
+ import { Anchor, WithChildrenProp } from '@codecademy/gamut';
2
+ import React from 'react';
3
+ export interface SectionItemLinkProps extends WithChildrenProp {
4
+ onClick: (event: React.MouseEvent) => void;
5
+ href: string;
6
+ variant?: React.ComponentProps<typeof Anchor>['variant'];
7
+ }
8
+ export declare const SectionItemLink: React.FC<SectionItemLinkProps>;
@@ -0,0 +1,2 @@
1
+ export * from './LayoutMenu';
2
+ export * from './SectionItemLink';
@@ -0,0 +1,18 @@
1
+ import { TextProps } from '@codecademy/gamut';
2
+ export declare enum LearningOutcomeLevels {
3
+ One = 1,
4
+ Two = 2,
5
+ Three = 3
6
+ }
7
+ export declare const learningOutcomeLabels: {
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ };
12
+ interface LearningOutcomeLevelBadgeProps extends Pick<TextProps, 'textColor'> {
13
+ level: LearningOutcomeLevels;
14
+ size?: 'sm' | 'base';
15
+ removeBackground?: boolean;
16
+ }
17
+ export declare const LearningOutcomeLevelBadge: React.FC<LearningOutcomeLevelBadgeProps>;
18
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const LearningOutcomeLowAssessmentDot: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme | undefined;
3
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
4
+ } & import("@codecademy/gamut").BoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
5
+ theme?: import("@emotion/react").Theme;
6
+ } & {
7
+ hasBorder?: boolean;
8
+ small?: boolean;
9
+ }, {}, {}>;
10
+ export declare const LearningOutcomeLowAssessmentBadge: React.FC;
@@ -0,0 +1,2 @@
1
+ export * from './LearningOutcomeLevelBadge';
2
+ export * from './LearningOutcomeLowAssessmentBadge';
@@ -0,0 +1,29 @@
1
+ import { HeadingTags } from '@codecademy/gamut';
2
+ declare enum LearningOutcomeLevels {
3
+ One = 1,
4
+ Two = 2,
5
+ Three = 3
6
+ }
7
+ export declare const levelTagText: {
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ };
12
+ interface LearningOutcomeSkill {
13
+ title?: string | null | undefined;
14
+ }
15
+ interface LearningOutcomeCardProps {
16
+ level: LearningOutcomeLevels | null | undefined;
17
+ outcome: string;
18
+ headingLevel?: HeadingTags;
19
+ emphasized?: boolean;
20
+ progress?: number;
21
+ skills?: LearningOutcomeSkill[] | null;
22
+ progressUpdateData?: {
23
+ previousProgress: number;
24
+ progressDuration: number;
25
+ completionDelay?: number;
26
+ };
27
+ }
28
+ export declare const LearningOutcomeCard: React.FC<LearningOutcomeCardProps>;
29
+ export {};
@@ -0,0 +1,10 @@
1
+ import { LearningOutcomePopoverDetailsProps } from '../LearningOutcomeTile/types';
2
+ interface LearningOutcomePopoverProps {
3
+ activeElRef: React.RefObject<HTMLDivElement> | React.RefObject<HTMLAnchorElement>;
4
+ id: string;
5
+ isOpen: boolean;
6
+ learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
7
+ horizontalOffset?: number;
8
+ }
9
+ export declare const LearningOutcomePopover: React.FC<LearningOutcomePopoverProps>;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { TileProps } from './types';
2
+ export declare const Tile: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ } & import("@codecademy/gamut").FlexBoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
6
+ theme?: import("@emotion/react").Theme;
7
+ } & TileProps, {}, {}>;
@@ -0,0 +1,2 @@
1
+ import { LearningOutcomeTileProps } from './types';
2
+ export declare const LearningOutcomeTile: React.FC<LearningOutcomeTileProps>;
@@ -0,0 +1,48 @@
1
+ import { LearningOutcomeLevels } from '../LearningOutcomeBadges';
2
+ export declare enum Progress {
3
+ notStarted = "notStarted",
4
+ inProgress = "inProgress",
5
+ completed = "completed"
6
+ }
7
+ export type SizeType = 'small' | 'normal';
8
+ export interface TileProps {
9
+ hover: boolean;
10
+ progress: Progress;
11
+ size: SizeType;
12
+ }
13
+ interface LearningOutcomeTileDetailsProps {
14
+ id: string;
15
+ level: LearningOutcomeLevels;
16
+ outcome: string;
17
+ percentComplete: number | undefined | null;
18
+ latestScore?: number | undefined | null;
19
+ }
20
+ export interface LearningOutcomePopoverDetailsProps {
21
+ id: string;
22
+ level: LearningOutcomeLevels;
23
+ outcome: string;
24
+ percentComplete: number | undefined | null;
25
+ latestScore?: number | undefined | null;
26
+ highestScore?: number | undefined | null;
27
+ }
28
+ interface WithHoverAndWithPopover {
29
+ learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
30
+ hover: true;
31
+ popover: true;
32
+ }
33
+ interface WithHoverAndWithoutPopover {
34
+ learningOutcomeDetails: LearningOutcomeTileDetailsProps;
35
+ hover: true;
36
+ popover: false;
37
+ }
38
+ interface WithoutHoverAndWithoutPopover {
39
+ learningOutcomeDetails: LearningOutcomeTileDetailsProps;
40
+ hover?: false;
41
+ popover?: false;
42
+ }
43
+ export type LearningOutcomeTileProps = {
44
+ href: string;
45
+ onClick?: () => void;
46
+ size?: SizeType;
47
+ } & (WithHoverAndWithPopover | WithHoverAndWithoutPopover | WithoutHoverAndWithoutPopover);
48
+ export {};
@@ -0,0 +1,21 @@
1
+ import { WithChildrenProp } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { SectionButton } from '..';
4
+ export interface ListSectionProps extends WithChildrenProp {
5
+ title: string;
6
+ headerButton?: SectionButton;
7
+ headerSecondaryButton?: SectionButton;
8
+ /**
9
+ * Number of items to be initally displayed
10
+ *
11
+ * @remarks
12
+ * If the initial display amount matches the number of list items, Show All button will not appear.
13
+ */
14
+ initialDisplayAmount?: number;
15
+ /**
16
+ * Optional callback function that will be called when the user clicks the "Show All" / "Show less" button.
17
+ * This is usually used for things like metrics tracking.
18
+ */
19
+ onShowAllOrLessClick?: (showAll: boolean) => void;
20
+ }
21
+ export declare const ListSection: React.FC<ListSectionProps>;
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export type LoadingProps = {
3
+ className?: string;
4
+ };
5
+ export declare const Loading: React.FC<LoadingProps>;
@@ -0,0 +1,131 @@
1
+ @import "~@codecademy/gamut-styles/utils";
2
+
3
+ $c-offset: 169;
4
+ $inner-offset: 287;
5
+ $outer-offset: 361;
6
+ $underline-offset: 77;
7
+ $animation-duration: 3s;
8
+
9
+ @keyframes draw-c {
10
+ 50% {
11
+ stroke-dashoffset: 0;
12
+ }
13
+ }
14
+ @keyframes draw-c-fast {
15
+ 10% {
16
+ stroke-dashoffset: $c-offset;
17
+ }
18
+ 50% {
19
+ stroke-dashoffset: 0;
20
+ }
21
+ 85% {
22
+ stroke-dashoffset: $c-offset;
23
+ }
24
+ }
25
+
26
+ @keyframes draw-inner {
27
+ 50% {
28
+ stroke-dashoffset: 0;
29
+ }
30
+ }
31
+ @keyframes draw-inner-fast {
32
+ 10% {
33
+ stroke-dashoffset: $inner-offset;
34
+ }
35
+ 50% {
36
+ stroke-dashoffset: 0;
37
+ }
38
+ 85% {
39
+ stroke-dashoffset: $inner-offset;
40
+ }
41
+ }
42
+
43
+ @keyframes draw-outer {
44
+ 50% {
45
+ stroke-dashoffset: 0;
46
+ }
47
+ }
48
+ @keyframes draw-outer-fast {
49
+ 10% {
50
+ stroke-dashoffset: $outer-offset;
51
+ }
52
+ 50% {
53
+ stroke-dashoffset: 0;
54
+ }
55
+ 85% {
56
+ stroke-dashoffset: $outer-offset;
57
+ }
58
+ }
59
+
60
+ @keyframes draw-underline {
61
+ 50% {
62
+ stroke-dashoffset: 0;
63
+ }
64
+ }
65
+ @keyframes draw-underline-fast {
66
+ 10% {
67
+ stroke-dashoffset: $underline-offset;
68
+ }
69
+ 50% {
70
+ stroke-dashoffset: 0;
71
+ }
72
+ 85% {
73
+ stroke-dashoffset: $underline-offset;
74
+ }
75
+ }
76
+
77
+ .fullPage {
78
+ width: 100%;
79
+ height: viewport-height(-($height-header));
80
+ }
81
+
82
+ .loading {
83
+ width: px-rem(120px);
84
+ }
85
+
86
+ .underline {
87
+ stroke-dasharray: $underline-offset;
88
+ stroke-dashoffset: $underline-offset;
89
+ }
90
+ .c {
91
+ stroke-dasharray: $c-offset;
92
+ stroke-dashoffset: $c-offset;
93
+ }
94
+ .inner {
95
+ stroke-dasharray: $inner-offset;
96
+ stroke-dashoffset: $inner-offset;
97
+ }
98
+ .outer {
99
+ stroke-dasharray: $outer-offset;
100
+ stroke-dashoffset: $outer-offset;
101
+ }
102
+
103
+ .path {
104
+ &.underline {
105
+ animation: draw-underline $animation-duration infinite;
106
+ }
107
+ &.c {
108
+ animation: draw-c $animation-duration infinite;
109
+ }
110
+ &.outer {
111
+ animation: draw-outer $animation-duration infinite;
112
+ }
113
+ &.inner {
114
+ animation: draw-inner $animation-duration infinite;
115
+ }
116
+ }
117
+
118
+ .pathTwo {
119
+ &.underline {
120
+ animation: draw-underline-fast $animation-duration infinite;
121
+ }
122
+ &.c {
123
+ animation: draw-c-fast $animation-duration infinite;
124
+ }
125
+ &.outer {
126
+ animation: draw-outer-fast $animation-duration infinite;
127
+ }
128
+ &.inner {
129
+ animation: draw-inner-fast $animation-duration infinite;
130
+ }
131
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { CardProps } from '../CurriculumCard';
3
+ type LoadingCurriculumCardProps = {
4
+ variant?: CardProps['variant'];
5
+ };
6
+ export declare const LoadingCurriculumCard: React.FC<LoadingCurriculumCardProps>;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyPremiumLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyProAltLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyProLockupLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyProLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyProMonoLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyProgramLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function CodecademyTeamsLogo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { SVGProps } from 'react';
2
+ export type LogoType = 'default' | 'pro' | 'proAlt' | 'proLockup' | 'program' | 'proMono' | 'premium' | 'teams';
3
+ export type LogoProps = SVGProps<SVGSVGElement> & {
4
+ height?: number;
5
+ width?: number;
6
+ type?: LogoType;
7
+ };
8
+ export declare function Logo({ type, height, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;