@codecademy/brand 1.41.0-alpha.d11c3ce902.0 → 1.41.0-alpha.d451663e4c.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/README.md +1 -1
  2. package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
  3. package/dist/AppBar/AppBarSection.d.ts +10 -0
  4. package/dist/AppBar/index.d.ts +9 -0
  5. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
  6. package/dist/AppBarDeprecated/index.d.ts +14 -0
  7. package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
  9. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +92 -0
  10. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
  29. package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
  30. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
  31. package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
  32. package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
  33. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
  34. package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
  35. package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
  36. package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
  37. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
  38. package/dist/AppHeader/Search/consts.d.ts +23 -0
  39. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
  40. package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
  41. package/dist/AppHeader/Search/types.d.ts +23 -0
  42. package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
  43. package/dist/AppHeader/index.d.ts +24 -0
  44. package/dist/AppHeader/shared/elements.d.ts +84 -0
  45. package/dist/AppHeader/shared/index.d.ts +4 -0
  46. package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
  47. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
  48. package/dist/AppHeader/shared/testTypes.d.ts +0 -0
  49. package/dist/AppHeader/shared/types.d.ts +107 -0
  50. package/dist/AppHeader/shared/utils.d.ts +16 -0
  51. package/dist/AppHeader/utils/types.d.ts +8 -0
  52. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
  53. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
  54. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
  55. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
  56. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
  57. package/dist/AppHeaderMobile/index.d.ts +20 -0
  58. package/dist/Avatar/Avatar.stories.d.ts +6 -0
  59. package/dist/Avatar/index.d.ts +36 -0
  60. package/dist/AvatarChooser/index.d.ts +12 -0
  61. package/dist/BackToTopAnchor/index.d.ts +13 -0
  62. package/dist/Banner/index.d.ts +21 -0
  63. package/dist/BetaSticker/index.d.ts +6 -0
  64. package/dist/CareerPathCard/index.d.ts +19 -0
  65. package/dist/CareerPathCard/index.js +7 -15
  66. package/dist/Carousel/elements.d.ts +27 -0
  67. package/dist/Carousel/index.d.ts +24 -0
  68. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
  69. package/dist/CertificationPathCard/index.d.ts +20 -0
  70. package/dist/CertificationPathCard/index.js +9 -17
  71. package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
  72. package/dist/CommunityEventCard/index.d.ts +28 -0
  73. package/dist/CommunityEventToast/index.d.ts +6 -0
  74. package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
  75. package/dist/ContentGroupBaseCard/index.d.ts +31 -0
  76. package/dist/ContentGroupBaseCard/index.js +74 -121
  77. package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
  78. package/dist/ContentGroupBaseCard/shared.js +23 -29
  79. package/dist/ContentGroupBaseCard/types.d.ts +10 -0
  80. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
  81. package/dist/CourseCard/index.d.ts +20 -0
  82. package/dist/CourseCard/index.js +11 -15
  83. package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
  84. package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
  85. package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
  86. package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
  87. package/dist/CurriculumCard/Footer/index.d.ts +10 -0
  88. package/dist/CurriculumCard/Image/index.d.ts +9 -0
  89. package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
  90. package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
  91. package/dist/CurriculumCard/index.d.ts +59 -0
  92. package/dist/DropdownButton/DropdownList.d.ts +17 -0
  93. package/dist/DropdownButton/index.d.ts +76 -0
  94. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
  95. package/dist/EditorialImage/index.d.ts +10 -0
  96. package/dist/EditorialImage/styles.module.scss +36 -0
  97. package/dist/EmptySection/index.d.ts +28 -0
  98. package/dist/ErrorContents/index.d.ts +8 -0
  99. package/dist/FeatureList/index.d.ts +11 -0
  100. package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
  101. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
  102. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
  103. package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
  104. package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
  105. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
  106. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
  107. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
  108. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
  109. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
  110. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
  111. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
  112. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
  113. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
  114. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  115. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
  116. package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
  117. package/dist/GlobalFooter/index.d.ts +23 -0
  118. package/dist/GlobalFooter/types.d.ts +13 -0
  119. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
  120. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
  121. package/dist/GlobalHeader/index.d.ts +10 -0
  122. package/dist/GlobalHeader/types.d.ts +89 -0
  123. package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
  124. package/dist/GlobalPage/index.d.ts +34 -0
  125. package/dist/Grid/GridCollapse.d.ts +41 -0
  126. package/dist/Grid/Subgrid.d.ts +23 -0
  127. package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
  128. package/dist/Grid/index.d.ts +3 -0
  129. package/dist/HeaderHeightArea/index.d.ts +9 -0
  130. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
  131. package/dist/HorizontalScrollMenu/index.d.ts +7 -0
  132. package/dist/HubCard/index.d.ts +8 -0
  133. package/dist/InfoCard/index.d.ts +19 -0
  134. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
  135. package/dist/Konamimojisplosion/index.d.ts +2 -0
  136. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
  137. package/dist/LandingPage/CTA.d.ts +9 -0
  138. package/dist/LandingPage/Description.d.ts +6 -0
  139. package/dist/LandingPage/Feature.d.ts +32 -0
  140. package/dist/LandingPage/PageFAQs.d.ts +10 -0
  141. package/dist/LandingPage/PageFeatures.d.ts +16 -0
  142. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
  143. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
  144. package/dist/LandingPage/PageHero.d.ts +7 -0
  145. package/dist/LandingPage/PagePrefooter.d.ts +5 -0
  146. package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
  147. package/dist/LandingPage/PageTestimonials.d.ts +21 -0
  148. package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
  149. package/dist/LandingPage/Title.d.ts +23 -0
  150. package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
  151. package/dist/LandingPage/index.d.ts +14 -0
  152. package/dist/LandingPage/types.d.ts +28 -0
  153. package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
  154. package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
  155. package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
  156. package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
  157. package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
  158. package/dist/LayoutMenu/index.d.ts +3 -0
  159. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
  160. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
  161. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
  162. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
  163. package/dist/LayoutMenuVariant/index.d.ts +2 -0
  164. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
  165. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  166. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  167. package/dist/LearningOutcomeCard/index.d.ts +29 -0
  168. package/dist/LearningOutcomePopover/index.d.ts +10 -0
  169. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  170. package/dist/LearningOutcomeTile/index.d.ts +2 -0
  171. package/dist/LearningOutcomeTile/types.d.ts +48 -0
  172. package/dist/ListSection/index.d.ts +21 -0
  173. package/dist/Loading/index.d.ts +5 -0
  174. package/dist/Loading/styles.module.scss +131 -0
  175. package/dist/LoadingCurriculumCard/index.d.ts +7 -0
  176. package/dist/Logo/CodecademyLogo.d.ts +2 -0
  177. package/dist/Logo/CodecademyPremiumLogo.d.ts +2 -0
  178. package/dist/Logo/CodecademyProAltLogo.d.ts +2 -0
  179. package/dist/Logo/CodecademyProLockupLogo.d.ts +2 -0
  180. package/dist/Logo/CodecademyProLogo.d.ts +2 -0
  181. package/dist/Logo/CodecademyProMonoLogo.d.ts +2 -0
  182. package/dist/Logo/CodecademyProgramLogo.d.ts +2 -0
  183. package/dist/Logo/CodecademyTeamsLogo.d.ts +2 -0
  184. package/dist/Logo/index.d.ts +8 -0
  185. package/dist/LogoFromSkillsoft/index.d.ts +227 -0
  186. package/dist/LogoLXStudio/index.d.ts +3 -0
  187. package/dist/LogoProCutout/index.d.ts +8 -0
  188. package/dist/LogoProCutoutTransparent/index.d.ts +7 -0
  189. package/dist/MarketingToaster/index.d.ts +8 -0
  190. package/dist/NotFoundContent/404.svg +1 -0
  191. package/dist/NotFoundContent/index.d.ts +8 -0
  192. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
  193. package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
  194. package/dist/NotificationList/NotificationItem.d.ts +8 -0
  195. package/dist/NotificationList/index.d.ts +9 -0
  196. package/dist/NotificationList/typings.d.ts +16 -0
  197. package/dist/Notifications/NotificationBell.d.ts +10 -0
  198. package/dist/Notifications/NotificationsContents.d.ts +3 -0
  199. package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
  200. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
  201. package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
  202. package/dist/Notifications/constants.d.ts +4 -0
  203. package/dist/Notifications/elements.d.ts +12 -0
  204. package/dist/Notifications/types.d.ts +24 -0
  205. package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
  206. package/dist/Notifications/useNotificationButtons.d.ts +9 -0
  207. package/dist/PageAlerts/PageAlerts.d.ts +10 -0
  208. package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
  209. package/dist/PageAlerts/index.d.ts +3 -0
  210. package/dist/PageAlerts/types.d.ts +17 -0
  211. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
  212. package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
  213. package/dist/PageSection/index.d.ts +17 -0
  214. package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
  215. package/dist/PastDue/index.d.ts +2 -0
  216. package/dist/PastDue/pastDueMessages.d.ts +6 -0
  217. package/dist/PausableImage/BaseImage/index.d.ts +15 -0
  218. package/dist/PausableImage/index.d.ts +11 -0
  219. package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
  220. package/dist/PlanCard/PlanFeature.d.ts +9 -0
  221. package/dist/PlanCard/PopularBadge.d.ts +3 -0
  222. package/dist/PlanCard/PricingAmount.d.ts +14 -0
  223. package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
  224. package/dist/PlanCard/consts.d.ts +14 -0
  225. package/dist/PlanCard/index.d.ts +18 -0
  226. package/dist/PlanCard/index.js +66 -28
  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/SkillPathCard/index.js +7 -15
  254. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
  255. package/dist/SocialMediaSharing/index.d.ts +49 -0
  256. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
  257. package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
  258. package/dist/Testimonial/index.d.ts +45 -0
  259. package/dist/assets/darkQuotes.svg +1 -0
  260. package/dist/assets/dots.svg +1 -0
  261. package/dist/assets/lightQuotes.svg +1 -0
  262. package/dist/assets/navyQuotes.svg +5 -0
  263. package/dist/assets/orange_squiggle.svg +1 -0
  264. package/dist/index.d.ts +88 -0
  265. package/dist/lib/breakpointHooks/index.d.ts +43 -0
  266. package/dist/lib/catalogList/index.d.ts +5 -0
  267. package/dist/lib/resourcesList/index.d.ts +5 -0
  268. package/dist/png.d.ts +4 -0
  269. package/dist/react-freezeframe.d.ts +1 -0
  270. package/dist/remoteAssets/components.d.ts +1 -0
  271. package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
  272. package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
  273. package/dist/stories/Atoms/Logos/Logo.stories.d.ts +13 -0
  274. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
  275. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
  276. package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +6 -0
  277. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +6 -0
  278. package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
  279. package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
  280. package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
  281. package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
  282. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
  283. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
  284. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
  285. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
  286. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
  287. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
  288. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
  289. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
  290. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
  291. package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
  292. package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
  293. package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
  294. package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
  295. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
  296. package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
  297. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
  298. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
  299. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
  300. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
  301. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
  302. package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
  303. package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
  304. package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -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,8 @@
1
+ export declare const Divider: React.FC;
2
+ export declare const CertificateComponent: React.FC<{
3
+ professionalCert?: boolean;
4
+ }>;
5
+ export declare const FreeModuleComponent: React.FC;
6
+ export declare const CourseCountComponent: React.FC<{
7
+ count: number;
8
+ }>;
@@ -4,7 +4,7 @@ import { CertificateIcon, UnlockIcon } from '@codecademy/gamut-icons';
4
4
  import { CheckerDense } from '@codecademy/gamut-patterns';
5
5
  import { css } from '@codecademy/gamut-styles';
6
6
  import pluralize from 'pluralize';
7
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
8
8
  const DottedLine = /*#__PURE__*/_styled(CheckerDense, {
9
9
  target: "e16fp6ou0",
10
10
  label: "DottedLine"
@@ -13,7 +13,7 @@ const DottedLine = /*#__PURE__*/_styled(CheckerDense, {
13
13
  display: 'flex',
14
14
  position: 'absolute',
15
15
  marginTop: '-1px'
16
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9zaGFyZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9tQiIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvc2hhcmVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJveCwgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IENlcnRpZmljYXRlSWNvbiwgVW5sb2NrSWNvbiB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCB7IENoZWNrZXJEZW5zZSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXBhdHRlcm5zJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgcGx1cmFsaXplIGZyb20gJ3BsdXJhbGl6ZSc7XG5cbmNvbnN0IERvdHRlZExpbmUgPSBzdHlsZWQoQ2hlY2tlckRlbnNlKShcbiAgY3NzKHtcbiAgICBoZWlnaHQ6ICcxcHgnLFxuICAgIGRpc3BsYXk6ICdmbGV4JyxcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICBtYXJnaW5Ub3A6ICctMXB4JyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEaXZpZGVyOiBSZWFjdC5GQyA9ICgpID0+IHtcbiAgcmV0dXJuIChcbiAgICAvLyB0aGUgaGVpZ2h0IGFuZCBwb3NpdGlvbiBwcm9wZXJ0aWVzIGFyZSBuZWNlc3NhcnkgZm9yIGlPUyBkZXZpY2VzXG4gICAgPEJveCBweT17NH0gaGVpZ2h0PXswfSBwb3NpdGlvbj1cInJlbGF0aXZlXCIgYXJpYS1oaWRkZW4+XG4gICAgICA8RG90dGVkTGluZSAvPlxuICAgIDwvQm94PlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IENlcnRpZmljYXRlQ29tcG9uZW50OiBSZWFjdC5GQzx7IHByb2Zlc3Npb25hbENlcnQ/OiBib29sZWFuIH0+ID0gKHtcbiAgcHJvZmVzc2lvbmFsQ2VydCxcbn0pID0+IHtcbiAgY29uc3QgY2VydGlmaWNhdGVUeXBlID0gcHJvZmVzc2lvbmFsQ2VydFxuICAgID8gYFByb2Zlc3Npb25hbCBDZXJ0aWZpY2F0aW9uYFxuICAgIDogYENlcnRpZmljYXRlYDtcbiAgcmV0dXJuIChcbiAgICA8Qm94IGFzPVwibGlcIj5cbiAgICAgIDxEaXZpZGVyIC8+XG4gICAgICA8RmxleEJveCBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICAgIDxDZXJ0aWZpY2F0ZUljb24gLz5cbiAgICAgICAgPFRleHQgc2NyZWVucmVhZGVyPntgV2l0aCAke2NlcnRpZmljYXRlVHlwZX1gfTwvVGV4dD5cbiAgICAgICAgPFRleHQgdmFyaWFudD1cInAtc21hbGxcIiBwbD17OH0gYXJpYS1oaWRkZW4+XG4gICAgICAgICAgV2l0aCA8Yj57Y2VydGlmaWNhdGVUeXBlfTwvYj5cbiAgICAgICAgPC9UZXh0PlxuICAgICAgPC9GbGV4Qm94PlxuICAgIDwvQm94PlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IEZyZWVNb2R1bGVDb21wb25lbnQ6IFJlYWN0LkZDID0gKCkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxCb3ggYXM9XCJsaVwiPlxuICAgICAgPERpdmlkZXIgLz5cbiAgICAgIDxGbGV4Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgPFVubG9ja0ljb24gLz5cbiAgICAgICAgPFRleHQgdmFyaWFudD1cInAtc21hbGxcIiBwbD17OH0+XG4gICAgICAgICAgU3RhcnQgY291cnNlIHdpdGggeW91ciBCYXNpYyBwbGFuXG4gICAgICAgIDwvVGV4dD5cbiAgICAgIDwvRmxleEJveD5cbiAgICA8L0JveD5cbiAgKTtcbn07XG5cbmV4cG9ydCBjb25zdCBDb3Vyc2VDb3VudENvbXBvbmVudDogUmVhY3QuRkM8eyBjb3VudDogbnVtYmVyIH0+ID0gKHtcbiAgY291bnQsXG59KSA9PiB7XG4gIGNvbnN0IGxhYmVsID0gcGx1cmFsaXplKCdDb3Vyc2VzJywgY291bnQpO1xuXG4gIHJldHVybiAoXG4gICAgPEJveCBhcz1cImxpXCI+XG4gICAgICA8RGl2aWRlciAvPlxuICAgICAgPFRleHQgc2NyZWVucmVhZGVyPntgSW5jbHVkZXMgJHtjb3VudH0gJHtsYWJlbH1gfTwvVGV4dD5cbiAgICAgIDxUZXh0IHZhcmlhbnQ9XCJwLXNtYWxsXCIgYXJpYS1oaWRkZW4+XG4gICAgICAgIEluY2x1ZGVzeycgJ31cbiAgICAgICAgPGI+XG4gICAgICAgICAge2NvdW50fSB7bGFiZWx9XG4gICAgICAgIDwvYj5cbiAgICAgIDwvVGV4dD5cbiAgICA8L0JveD5cbiAgKTtcbn07XG4iXX0= */");
16
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9zaGFyZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9tQiIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvc2hhcmVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJveCwgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IENlcnRpZmljYXRlSWNvbiwgVW5sb2NrSWNvbiB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCB7IENoZWNrZXJEZW5zZSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXBhdHRlcm5zJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgcGx1cmFsaXplIGZyb20gJ3BsdXJhbGl6ZSc7XG5cbmNvbnN0IERvdHRlZExpbmUgPSBzdHlsZWQoQ2hlY2tlckRlbnNlKShcbiAgY3NzKHtcbiAgICBoZWlnaHQ6ICcxcHgnLFxuICAgIGRpc3BsYXk6ICdmbGV4JyxcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICBtYXJnaW5Ub3A6ICctMXB4JyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEaXZpZGVyOiBSZWFjdC5GQyA9ICgpID0+IHtcbiAgcmV0dXJuIChcbiAgICAvLyB0aGUgaGVpZ2h0IGFuZCBwb3NpdGlvbiBwcm9wZXJ0aWVzIGFyZSBuZWNlc3NhcnkgZm9yIGlPUyBkZXZpY2VzXG4gICAgPEJveCBweT17NH0gaGVpZ2h0PXswfSBwb3NpdGlvbj1cInJlbGF0aXZlXCI+XG4gICAgICA8RG90dGVkTGluZSAvPlxuICAgIDwvQm94PlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IENlcnRpZmljYXRlQ29tcG9uZW50OiBSZWFjdC5GQzx7IHByb2Zlc3Npb25hbENlcnQ/OiBib29sZWFuIH0+ID0gKHtcbiAgcHJvZmVzc2lvbmFsQ2VydCxcbn0pID0+IHtcbiAgY29uc3QgY2VydGlmaWNhdGVUeXBlID0gcHJvZmVzc2lvbmFsQ2VydFxuICAgID8gYFByb2Zlc3Npb25hbCBDZXJ0aWZpY2F0aW9uYFxuICAgIDogYENlcnRpZmljYXRlYDtcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEZsZXhCb3ggYWxpZ25JdGVtcz1cImNlbnRlclwiPlxuICAgICAgICA8RmxleEJveCBwcj17NH0+XG4gICAgICAgICAgPENlcnRpZmljYXRlSWNvbiAvPlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgIDxUZXh0IHZhcmlhbnQ9XCJwLXNtYWxsXCIgcGw9ezR9IGFyaWEtbGFiZWw9e2BXaXRoICR7Y2VydGlmaWNhdGVUeXBlfWB9PlxuICAgICAgICAgIFdpdGggPGI+e2NlcnRpZmljYXRlVHlwZX08L2I+XG4gICAgICAgIDwvVGV4dD5cbiAgICAgIDwvRmxleEJveD5cbiAgICA8Lz5cbiAgKTtcbn07XG5cbmV4cG9ydCBjb25zdCBGcmVlTW9kdWxlQ29tcG9uZW50OiBSZWFjdC5GQyA9ICgpID0+IHtcbiAgcmV0dXJuIChcbiAgICA8PlxuICAgICAgPEZsZXhCb3ggYWxpZ25JdGVtcz1cImNlbnRlclwiPlxuICAgICAgICA8RmxleEJveCBwcj17NH0+XG4gICAgICAgICAgPFVubG9ja0ljb24gLz5cbiAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICA8VGV4dCB2YXJpYW50PVwicC1zbWFsbFwiIHBsPXs0fT5cbiAgICAgICAgICBTdGFydCBjb3Vyc2Ugd2l0aCB5b3VyIEJhc2ljIHBsYW5cbiAgICAgICAgPC9UZXh0PlxuICAgICAgPC9GbGV4Qm94PlxuICAgIDwvPlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IENvdXJzZUNvdW50Q29tcG9uZW50OiBSZWFjdC5GQzx7IGNvdW50OiBudW1iZXIgfT4gPSAoe1xuICBjb3VudCxcbn0pID0+IHtcbiAgY29uc3QgbGFiZWwgPSBwbHVyYWxpemUoJ0NvdXJzZXMnLCBjb3VudCk7XG5cbiAgcmV0dXJuIChcbiAgICA8VGV4dCB2YXJpYW50PVwicC1zbWFsbFwiIGFyaWEtbGFiZWw9e2BJbmNsdWRlcyAke2NvdW50fSAke2xhYmVsfWB9PlxuICAgICAgSW5jbHVkZXN7JyAnfVxuICAgICAgPGI+XG4gICAgICAgIHtjb3VudH0ge2xhYmVsfVxuICAgICAgPC9iPlxuICAgIDwvVGV4dD5cbiAgKTtcbn07XG4iXX0= */");
17
17
  export const Divider = () => {
18
18
  return (
19
19
  /*#__PURE__*/
@@ -22,7 +22,6 @@ export const Divider = () => {
22
22
  py: 4,
23
23
  height: 0,
24
24
  position: "relative",
25
- "aria-hidden": true,
26
25
  children: /*#__PURE__*/_jsx(DottedLine, {})
27
26
  })
28
27
  );
@@ -31,52 +30,47 @@ export const CertificateComponent = ({
31
30
  professionalCert
32
31
  }) => {
33
32
  const certificateType = professionalCert ? `Professional Certification` : `Certificate`;
34
- return /*#__PURE__*/_jsxs(Box, {
35
- as: "li",
36
- children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs(FlexBox, {
33
+ return /*#__PURE__*/_jsx(_Fragment, {
34
+ children: /*#__PURE__*/_jsxs(FlexBox, {
37
35
  alignItems: "center",
38
- children: [/*#__PURE__*/_jsx(CertificateIcon, {}), /*#__PURE__*/_jsx(Text, {
39
- screenreader: true,
40
- children: `With ${certificateType}`
36
+ children: [/*#__PURE__*/_jsx(FlexBox, {
37
+ pr: 4,
38
+ children: /*#__PURE__*/_jsx(CertificateIcon, {})
41
39
  }), /*#__PURE__*/_jsxs(Text, {
42
40
  variant: "p-small",
43
- pl: 8,
44
- "aria-hidden": true,
41
+ pl: 4,
42
+ "aria-label": `With ${certificateType}`,
45
43
  children: ["With ", /*#__PURE__*/_jsx("b", {
46
44
  children: certificateType
47
45
  })]
48
46
  })]
49
- })]
47
+ })
50
48
  });
51
49
  };
52
50
  export const FreeModuleComponent = () => {
53
- return /*#__PURE__*/_jsxs(Box, {
54
- as: "li",
55
- children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs(FlexBox, {
51
+ return /*#__PURE__*/_jsx(_Fragment, {
52
+ children: /*#__PURE__*/_jsxs(FlexBox, {
56
53
  alignItems: "center",
57
- children: [/*#__PURE__*/_jsx(UnlockIcon, {}), /*#__PURE__*/_jsx(Text, {
54
+ children: [/*#__PURE__*/_jsx(FlexBox, {
55
+ pr: 4,
56
+ children: /*#__PURE__*/_jsx(UnlockIcon, {})
57
+ }), /*#__PURE__*/_jsx(Text, {
58
58
  variant: "p-small",
59
- pl: 8,
59
+ pl: 4,
60
60
  children: "Start course with your Basic plan"
61
61
  })]
62
- })]
62
+ })
63
63
  });
64
64
  };
65
65
  export const CourseCountComponent = ({
66
66
  count
67
67
  }) => {
68
68
  const label = pluralize('Courses', count);
69
- return /*#__PURE__*/_jsxs(Box, {
70
- as: "li",
71
- children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Text, {
72
- screenreader: true,
73
- children: `Includes ${count} ${label}`
74
- }), /*#__PURE__*/_jsxs(Text, {
75
- variant: "p-small",
76
- "aria-hidden": true,
77
- children: ["Includes", ' ', /*#__PURE__*/_jsxs("b", {
78
- children: [count, " ", label]
79
- })]
69
+ return /*#__PURE__*/_jsxs(Text, {
70
+ variant: "p-small",
71
+ "aria-label": `Includes ${count} ${label}`,
72
+ children: ["Includes", ' ', /*#__PURE__*/_jsxs("b", {
73
+ children: [count, " ", label]
80
74
  })]
81
75
  });
82
76
  };
@@ -0,0 +1,10 @@
1
+ export declare enum CourseDifficulty {
2
+ Beginner = "Beginner",
3
+ Intermediate = "Intermediate",
4
+ Advanced = "Advanced"
5
+ }
6
+ export declare enum EnrollmentStatus {
7
+ InProgress = "inProgress",
8
+ Completed = "completed",
9
+ None = "none"
10
+ }
@@ -0,0 +1,3 @@
1
+ import { CourseCardProps } from '../..';
2
+ export declare const mockFreeCourseContent: CourseCardProps;
3
+ export declare const mockProCourseContent: CourseCardProps;
@@ -0,0 +1,20 @@
1
+ import { HeadingTags } from '@codecademy/gamut';
2
+ import { CourseDifficulty, EnrollmentStatus } from '../ContentGroupBaseCard/types';
3
+ export type CourseCardProps = {
4
+ title: string;
5
+ lessonCount: number;
6
+ contentModuleIds: string[];
7
+ grantsCertificate: boolean;
8
+ enrollmentStatus: EnrollmentStatus;
9
+ pro: boolean;
10
+ shortDescription?: string | null;
11
+ difficulty?: CourseDifficulty | null;
12
+ isFullSize?: boolean;
13
+ headingLevel?: HeadingTags;
14
+ timeToComplete?: number | null;
15
+ isProUser?: boolean;
16
+ isInOpenFirstModuleVariant?: boolean;
17
+ header?: React.ReactNode;
18
+ footer?: React.ReactNode;
19
+ };
20
+ export declare const CourseCard: React.FC<CourseCardProps>;
@@ -1,8 +1,7 @@
1
1
  import { ContentGroupBaseCard } from '../ContentGroupBaseCard';
2
- import { CertificateComponent, FreeModuleComponent } from '../ContentGroupBaseCard/shared';
3
- import { forwardRef } from 'react';
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- export const CourseCard = /*#__PURE__*/forwardRef(({
2
+ import { CertificateComponent, Divider, FreeModuleComponent } from '../ContentGroupBaseCard/shared';
3
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export const CourseCard = ({
6
5
  title,
7
6
  lessonCount,
8
7
  contentModuleIds,
@@ -17,11 +16,8 @@ export const CourseCard = /*#__PURE__*/forwardRef(({
17
16
  isProUser = false,
18
17
  isInOpenFirstModuleVariant = false,
19
18
  header,
20
- footer,
21
- openInNewTab = false,
22
- href,
23
- onClick
24
- }, ref) => {
19
+ footer
20
+ }) => {
25
21
  // only show certificates for pro exclusive courses, since only pro users can do pro courses & only pro users can gain certificates
26
22
  // edge case here: pro users who are logged in wont be able to tell - from the card - that a free course can grant them a cert as well
27
23
  const showCertificate = grantsCertificate && pro;
@@ -42,10 +38,10 @@ export const CourseCard = /*#__PURE__*/forwardRef(({
42
38
  timeToComplete: timeToComplete,
43
39
  header: header,
44
40
  footer: footer,
45
- openInNewTab: openInNewTab,
46
- href: href,
47
- onClick: onClick,
48
- ref: ref,
49
- children: [showFreeFirstModule && /*#__PURE__*/_jsx(FreeModuleComponent, {}), showCertificate && /*#__PURE__*/_jsx(CertificateComponent, {})]
41
+ children: [showFreeFirstModule && /*#__PURE__*/_jsxs(_Fragment, {
42
+ children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(FreeModuleComponent, {})]
43
+ }), showCertificate && /*#__PURE__*/_jsxs(_Fragment, {
44
+ children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CertificateComponent, {})]
45
+ })]
50
46
  });
51
- });
47
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export type TagColor = 'blue' | 'green' | 'pink';
3
+ export type BottomTagProps = {
4
+ text: string;
5
+ color: TagColor;
6
+ };
7
+ export declare const BottomTag: React.FC<BottomTagProps>;
@@ -0,0 +1,8 @@
1
+ import { ContainerDifficulty, ContainerDifficultyUnion } from './types';
2
+ /**
3
+ * calculate the number associated with the difficulty level for a particular content
4
+ *
5
+ * @param difficulty level of difficulty for a particular content
6
+ * @returns 0 indicating beginner, 1 intermediate and 2 for advanced content.
7
+ */
8
+ export declare const getDifficultyNumber: <Type extends ContainerDifficultyUnion | ContainerDifficulty>(difficulty: Type) => 0 | 1 | 2;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { ContentDifficultyProps } from './types';
3
+ export declare const Difficulty: React.FC<ContentDifficultyProps>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Exported enums sometimes come up undefined when used in Jest tests because of the way they are compiled. Be careful when using this in test mocks.
3
+ */
4
+ export declare enum ContainerDifficulty {
5
+ Beginner = "Beginner",
6
+ Intermediate = "Intermediate",
7
+ Advanced = "Advanced"
8
+ }
9
+ /**
10
+ * converting ContainerDifficulty enum into union type
11
+ */
12
+ export type ContainerDifficultyUnion = `${ContainerDifficulty}`;
13
+ export type DifficultyVariant = 'small' | 'medium';
14
+ export type ContentDifficultyProps = {
15
+ difficulty: ContainerDifficulty | ContainerDifficultyUnion;
16
+ variant?: DifficultyVariant;
17
+ };
18
+ export declare enum DifficultyString {
19
+ 'Beginner friendly' = 0,
20
+ 'Intermediate' = 1,
21
+ 'Advanced' = 2
22
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { TagColor } from '../BottomTag/index';
3
+ export type FooterProps = {
4
+ beta?: boolean;
5
+ progressState?: 'completed' | 'inProgress';
6
+ tag?: string;
7
+ tagColor?: TagColor;
8
+ footerTextVariant?: 'enrolled' | 'inProgress';
9
+ };
10
+ export declare const Footer: React.FC<FooterProps>;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ type ProgressState = 'inProgress' | 'completed';
3
+ export type ImageProps = {
4
+ image: string;
5
+ progressState?: ProgressState;
6
+ isSmall?: boolean;
7
+ };
8
+ export declare const Image: React.FC<ImageProps>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare const pluralizeWithS: (scope: string, scopeCount: number) => string;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { ContentDifficultyProps, DifficultyVariant } from '../Difficulty/types';
3
+ export type SubtitleProps = Pick<ContentDifficultyProps, 'difficulty'> & {
4
+ scope: Record<string, number>;
5
+ showAltSubtitle?: boolean;
6
+ difficultyVariant?: DifficultyVariant;
7
+ };
8
+ export declare const Subtitle: React.FC<SubtitleProps>;
@@ -0,0 +1,59 @@
1
+ import { Card, HeadingTags } from '@codecademy/gamut';
2
+ import * as React from 'react';
3
+ import { TagColor } from './BottomTag/index';
4
+ import { SubtitleProps } from './Subtitle';
5
+ export type ProgressState = 'inProgress' | 'completed';
6
+ export type FooterTextVariantType = 'enrolled' | 'inProgress';
7
+ export type CardProps = React.ComponentProps<typeof Card>;
8
+ export type CurriculumCardProps = SubtitleProps & {
9
+ beta?: boolean;
10
+ /**
11
+ * Displays the curriculum type above the title
12
+ */
13
+ text: string;
14
+ title: string;
15
+ headingLevel?: HeadingTags;
16
+ image?: string;
17
+ isFullSize?: boolean;
18
+ isStaticSize?: boolean;
19
+ progressState?: ProgressState;
20
+ showProLogo?: boolean;
21
+ tag?: string;
22
+ tagColor?: TagColor;
23
+ showAltSubtitle?: boolean;
24
+ /**
25
+ * Changes In Progress card footer text from "Enrolled..." to "In Progress..."
26
+ */
27
+ footerTextVariant?: FooterTextVariantType;
28
+ /**
29
+ * optional text to be displayed below card subtitle
30
+ */
31
+ description?: string;
32
+ /**
33
+ * allows description to be shown in card body.
34
+ */
35
+ showDescription?: boolean;
36
+ /**
37
+ * career path cards are displayed with a variant style / decorative element
38
+ */
39
+ showCareerPathVariant?: boolean;
40
+ /**
41
+ * displays inner content with a horizontal orientation
42
+ */
43
+ horizontalOrientation?: boolean;
44
+ /**
45
+ * custom minimum height for curriculum card in pixels
46
+ */
47
+ minHeight?: CardProps['minHeight'];
48
+ /**
49
+ * custom minimum width for curriculum card in pixels
50
+ */
51
+ minWidth?: CardProps['minWidth'];
52
+ };
53
+ /**
54
+ *
55
+ * @deprecated This component is deprecated
56
+ *
57
+ * Please use the CareerPathCard, SkillPathCard, or CourseCard instead
58
+ */
59
+ export declare const CurriculumCard: React.FC<CurriculumCardProps>;
@@ -0,0 +1,17 @@
1
+ import { GamutIconProps } from '@codecademy/gamut-icons';
2
+ import * as React from 'react';
3
+ import { DropdownButtonProps } from '.';
4
+ type AnchorProps = Partial<Pick<HTMLAnchorElement, 'href' | 'target' | 'ariaLabel'>>;
5
+ export type DropdownItem = {
6
+ id: string;
7
+ icon?: React.ComponentType<GamutIconProps>;
8
+ text: string;
9
+ clickHandler?: (event: React.MouseEvent) => void;
10
+ } & AnchorProps;
11
+ export type DropdownListProps = {
12
+ dropdownItems: (DropdownItem | 'separator')[];
13
+ menuButtonId?: string;
14
+ onClose?: () => void;
15
+ } & Pick<DropdownButtonProps, 'isMenu'>;
16
+ export declare const DropdownList: React.FC<DropdownListProps>;
17
+ export {};
@@ -0,0 +1,76 @@
1
+ import { ButtonProps, IconButton, PopoverProps, PopoverYPositionType } from '@codecademy/gamut';
2
+ import { PropsWithChildren } from 'react';
3
+ import * as React from 'react';
4
+ import { DropdownListProps } from './DropdownList';
5
+ export type DropdownButtonRefType = {
6
+ focus: HTMLButtonElement['focus'];
7
+ };
8
+ export type DropdownButtonProps = PropsWithChildren<{
9
+ align?: PopoverProps['align'];
10
+ buttonType?: 'fill' | 'stroke' | 'text' | 'kebab' | 'horizontalKebab';
11
+ defaultPosition?: PopoverYPositionType['position'];
12
+ dropdownItems: DropdownListProps['dropdownItems'];
13
+ horizontalOffset?: number;
14
+ /**
15
+ * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
16
+ */
17
+ iconSize?: number;
18
+ /**
19
+ * If the dropdown should semantically be a menu
20
+ */
21
+ isMenu?: boolean;
22
+ onClick?: (event: React.MouseEvent) => void;
23
+ tipProps?: React.ComponentProps<typeof IconButton>['tipProps'];
24
+ verticalOffset?: number;
25
+ } & ButtonProps>;
26
+ export declare const DropdownButton: React.ForwardRefExoticComponent<(Omit<{
27
+ align?: PopoverProps["align"];
28
+ buttonType?: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
29
+ defaultPosition?: PopoverYPositionType["position"];
30
+ dropdownItems: DropdownListProps["dropdownItems"];
31
+ horizontalOffset?: number;
32
+ /**
33
+ * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
34
+ */
35
+ iconSize?: number;
36
+ /**
37
+ * If the dropdown should semantically be a menu
38
+ */
39
+ isMenu?: boolean;
40
+ onClick?: (event: React.MouseEvent) => void;
41
+ tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
42
+ verticalOffset?: number;
43
+ } & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
44
+ theme?: import("@emotion/react").Theme | undefined;
45
+ as?: import("react" /**
46
+ * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
47
+ */).ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
48
+ } & {
49
+ theme?: import("@emotion/react").Theme | undefined;
50
+ } & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "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" | "type" | "form" | "name" | "disabled" | keyof React.ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
51
+ children?: React.ReactNode | undefined;
52
+ }, "ref"> | Omit<{
53
+ align?: PopoverProps["align"];
54
+ buttonType?: "fill" | "stroke" | "text" | "kebab" | "horizontalKebab";
55
+ defaultPosition?: PopoverYPositionType["position"];
56
+ dropdownItems: DropdownListProps["dropdownItems"];
57
+ horizontalOffset?: number;
58
+ /**
59
+ * Sets the size of the down arrow icon in the buttons that have text or the kebab and horizontal kebab icons.
60
+ */
61
+ iconSize?: number;
62
+ /**
63
+ * If the dropdown should semantically be a menu
64
+ */
65
+ isMenu?: boolean;
66
+ onClick?: (event: React.MouseEvent) => void;
67
+ tipProps?: React.ComponentProps<typeof IconButton>["tipProps"];
68
+ verticalOffset?: number;
69
+ } & import("@codecademy/gamut/dist/Button/shared").ButtonBaseProps & Omit<{
70
+ theme?: import("@emotion/react").Theme | undefined;
71
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
72
+ } & {
73
+ theme?: import("@emotion/react").Theme | undefined;
74
+ } & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "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" | "type" | "form" | "name" | "disabled" | keyof React.ClassAttributes<HTMLButtonElement> | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value"> & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "onClick" | "href" | "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" | "media" | "target" | "type" | keyof React.ClassAttributes<HTMLAnchorElement> | "download" | "hrefLang" | "ping" | "referrerPolicy">, "ref"> & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement> & {
75
+ children?: React.ReactNode | undefined;
76
+ }, "ref">) & React.RefAttributes<DropdownButtonRefType>>;
@@ -0,0 +1,14 @@
1
+ import { PopoverYPositionType } from '@codecademy/gamut';
2
+ import { RefCallback, RefObject } from 'react';
3
+ type Position = Required<PopoverYPositionType>['position'];
4
+ export type UseDynamicPopoverPositionProps = {
5
+ targetRef: RefObject<HTMLElement>;
6
+ verticalOffset: number;
7
+ defaultPosition: Position;
8
+ };
9
+ export type UseDynamicPopoverPositionReturn = {
10
+ position: Position;
11
+ popoverContainerRefCallback: RefCallback<HTMLElement | null>;
12
+ };
13
+ export declare const useDynamicPopoverPosition: ({ targetRef, verticalOffset, defaultPosition, }: UseDynamicPopoverPositionProps) => UseDynamicPopoverPositionReturn;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export type EditorialImageProps = {
3
+ /** The URL used for the image src */
4
+ image: string;
5
+ /** Alternative text for the image */
6
+ alt: string;
7
+ /** An optional caption that will display below the image */
8
+ caption?: string;
9
+ };
10
+ export declare const EditorialImage: React.FC<EditorialImageProps>;
@@ -0,0 +1,36 @@
1
+ @import "~@codecademy/gamut-styles/utils";
2
+
3
+ .imageContainer {
4
+ position: relative;
5
+ width: calc(100% - 1rem);
6
+ @include screen-size-gte($grid-xs-min) {
7
+ width: inherit;
8
+ }
9
+ }
10
+
11
+ .image {
12
+ width: 100%;
13
+ position: relative;
14
+ }
15
+
16
+ .imageContainer::before {
17
+ content: "";
18
+ position: absolute;
19
+ left: 1rem;
20
+ top: 2rem;
21
+ background-image: url("../assets/dots.svg");
22
+ background-repeat: repeat;
23
+ height: calc(100% - 1rem);
24
+ width: 100%;
25
+ z-index: 0;
26
+ filter: invert(19%) sepia(50%) saturate(3200%) hue-rotate(-24deg)
27
+ brightness(95%) contrast(97%);
28
+ }
29
+
30
+ .caption {
31
+ color: $color-white;
32
+ opacity: 0.7;
33
+ font-weight: bold;
34
+ margin: 1rem 1rem 0;
35
+ display: block;
36
+ }
@@ -0,0 +1,28 @@
1
+ import { ButtonProps } from '@codecademy/gamut';
2
+ import { IllustrationProps } from '@codecademy/gamut-illustrations';
3
+ import * as React from 'react';
4
+ import { DropdownButtonProps } from '..';
5
+ export type EmptySectionProps = {
6
+ /**
7
+ * Paragraph text that displays beneath the heading text
8
+ */
9
+ bodyText?: string;
10
+ /**
11
+ * Button or dropdown button with an action for the user to take
12
+ */
13
+ children?: React.ReactElement<ButtonProps | DropdownButtonProps>;
14
+ /**
15
+ * The larger heading text that appears over the body text
16
+ */
17
+ headingText: string;
18
+ illustration: React.ComponentType<IllustrationProps>;
19
+ /**
20
+ * Whether the illustration appears to the left or right of the rest of the section's content
21
+ */
22
+ illustrationPosition?: 'left' | 'right';
23
+ /**
24
+ * Whether the pattern background stretches to the end of the left or right of the viewport
25
+ */
26
+ stretchDirection: 'left' | 'right' | 'none';
27
+ };
28
+ export declare const EmptySection: React.FC<EmptySectionProps>;
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export type ErrorContentsProps = {
3
+ /**
4
+ * Any debug info to display, such as ["User ID", <user-id>].
5
+ */
6
+ supportInformation?: [string, string][];
7
+ };
8
+ export declare const ErrorContents: React.FC<ErrorContentsProps>;
@@ -0,0 +1,11 @@
1
+ import { GamutIconProps } from '@codecademy/gamut-icons';
2
+ export type FeatureListItem = {
3
+ title: string;
4
+ description: string | null;
5
+ icon: React.ComponentType<React.PropsWithChildren<GamutIconProps>> | null;
6
+ iconColor: string | null;
7
+ };
8
+ export interface IFeatureListProps {
9
+ featureList: FeatureListItem[];
10
+ }
11
+ export declare const FeatureList: ({ featureList }: IFeatureListProps) => import("react/jsx-runtime").JSX.Element;