@codecademy/brand 2.0.0-alpha.1d5fdc8d0a.0 → 2.0.0-alpha.2bc261aded.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 (369) hide show
  1. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +8 -7
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +4 -2
  3. package/dist/AppHeader/index.js +5 -2
  4. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +7 -5
  5. package/dist/FeatureList/index.js +4 -5
  6. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +9 -6
  7. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
  8. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
  9. package/dist/GlobalFooter/index.js +25 -17
  10. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  11. package/dist/GlobalHeader/index.js +49 -41
  12. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -3
  13. package/dist/LearningOutcomeCard/index.js +127 -184
  14. package/dist/LearningOutcomeTile/index.js +4 -2
  15. package/dist/index.js +3 -3
  16. package/dist/lib/catalogList/index.js +3 -3
  17. package/dist/lib/resourcesList/index.js +11 -2
  18. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +39 -169
  19. package/package.json +1 -1
  20. package/dist/AbbreviatedCommunityEventCard/index.d.ts +0 -8
  21. package/dist/AppBar/AppBarSection.d.ts +0 -10
  22. package/dist/AppBar/index.d.ts +0 -9
  23. package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +0 -14
  24. package/dist/AppBarDeprecated/index.d.ts +0 -14
  25. package/dist/AppBarDeprecated/styles/index.module.scss +0 -39
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +0 -7
  27. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -92
  28. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -13
  29. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +0 -13
  30. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +0 -3
  31. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +0 -3
  32. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +0 -4
  33. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +0 -2
  34. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +0 -12
  35. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +0 -48
  36. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +0 -15
  37. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +0 -14
  38. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +0 -6
  39. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +0 -14
  40. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +0 -18
  41. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +0 -9
  42. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +0 -9
  43. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +0 -10
  44. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +0 -7
  45. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +0 -13
  46. package/dist/AppHeader/Search/DefaultResults.d.ts +0 -10
  47. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +0 -7
  48. package/dist/AppHeader/Search/SearchButton.d.ts +0 -2
  49. package/dist/AppHeader/Search/SearchPane.d.ts +0 -6
  50. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +0 -18
  51. package/dist/AppHeader/Search/SearchWorker/index.d.ts +0 -5
  52. package/dist/AppHeader/Search/SearchWorker/src.d.ts +0 -1
  53. package/dist/AppHeader/Search/SearchWorker/types.d.ts +0 -37
  54. package/dist/AppHeader/Search/SearchWorker/worker.d.ts +0 -2
  55. package/dist/AppHeader/Search/consts.d.ts +0 -23
  56. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +0 -5
  57. package/dist/AppHeader/Search/safelyRedirect.d.ts +0 -5
  58. package/dist/AppHeader/Search/types.d.ts +0 -23
  59. package/dist/AppHeader/Search/useHeaderSearch.d.ts +0 -6
  60. package/dist/AppHeader/index.d.ts +0 -24
  61. package/dist/AppHeader/shared/elements.d.ts +0 -84
  62. package/dist/AppHeader/shared/index.d.ts +0 -4
  63. package/dist/AppHeader/shared/keyboardNav.d.ts +0 -23
  64. package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +0 -2
  65. package/dist/AppHeader/shared/testTypes.d.ts +0 -0
  66. package/dist/AppHeader/shared/types.d.ts +0 -107
  67. package/dist/AppHeader/shared/utils.d.ts +0 -16
  68. package/dist/AppHeader/utils/types.d.ts +0 -8
  69. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +0 -5
  70. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +0 -9
  71. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +0 -13
  72. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +0 -9
  73. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +0 -7
  74. package/dist/AppHeaderMobile/index.d.ts +0 -20
  75. package/dist/Avatar/Avatar.stories.d.ts +0 -6
  76. package/dist/Avatar/index.d.ts +0 -36
  77. package/dist/AvatarChooser/index.d.ts +0 -12
  78. package/dist/BackToTopAnchor/index.d.ts +0 -13
  79. package/dist/Banner/index.d.ts +0 -21
  80. package/dist/BetaSticker/index.d.ts +0 -6
  81. package/dist/CareerPathCard/index.d.ts +0 -19
  82. package/dist/Carousel/elements.d.ts +0 -27
  83. package/dist/Carousel/index.d.ts +0 -24
  84. package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +0 -2
  85. package/dist/CertificationPathCard/index.d.ts +0 -20
  86. package/dist/CommunityEventCard/EventTypeIcon.d.ts +0 -11
  87. package/dist/CommunityEventCard/index.d.ts +0 -28
  88. package/dist/CommunityEventToast/index.d.ts +0 -6
  89. package/dist/ContentGroupBaseCard/helpers.d.ts +0 -4
  90. package/dist/ContentGroupBaseCard/index.d.ts +0 -31
  91. package/dist/ContentGroupBaseCard/shared.d.ts +0 -8
  92. package/dist/ContentGroupBaseCard/types.d.ts +0 -10
  93. package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +0 -3
  94. package/dist/CourseCard/index.d.ts +0 -20
  95. package/dist/CurriculumCard/BottomTag/index.d.ts +0 -7
  96. package/dist/CurriculumCard/Difficulty/helpers.d.ts +0 -8
  97. package/dist/CurriculumCard/Difficulty/index.d.ts +0 -3
  98. package/dist/CurriculumCard/Difficulty/types.d.ts +0 -22
  99. package/dist/CurriculumCard/Footer/index.d.ts +0 -10
  100. package/dist/CurriculumCard/Image/index.d.ts +0 -9
  101. package/dist/CurriculumCard/Subtitle/helpers.d.ts +0 -1
  102. package/dist/CurriculumCard/Subtitle/index.d.ts +0 -8
  103. package/dist/CurriculumCard/index.d.ts +0 -59
  104. package/dist/DropdownButton/DropdownList.d.ts +0 -17
  105. package/dist/DropdownButton/index.d.ts +0 -76
  106. package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +0 -14
  107. package/dist/EditorialImage/index.d.ts +0 -10
  108. package/dist/EditorialImage/styles.module.scss +0 -36
  109. package/dist/EmptySection/index.d.ts +0 -28
  110. package/dist/ErrorContents/index.d.ts +0 -8
  111. package/dist/FeatureList/index.d.ts +0 -11
  112. package/dist/GlobalFooter/FooterHeading.d.ts +0 -9
  113. package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +0 -6
  114. package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +0 -5
  115. package/dist/GlobalFooter/FooterLegal/index.d.ts +0 -7
  116. package/dist/GlobalFooter/FooterLinks.d.ts +0 -18
  117. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +0 -7
  118. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +0 -12
  119. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +0 -7
  120. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +0 -2
  121. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +0 -4
  122. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +0 -3
  123. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +0 -4
  124. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +0 -2
  125. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +0 -45
  126. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  127. package/dist/GlobalFooter/FooterNavLinks/index.d.ts +0 -4
  128. package/dist/GlobalFooter/FooterSubHeading.d.ts +0 -9
  129. package/dist/GlobalFooter/index.d.ts +0 -23
  130. package/dist/GlobalFooter/types.d.ts +0 -13
  131. package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -25
  132. package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +0 -28
  133. package/dist/GlobalHeader/index.d.ts +0 -10
  134. package/dist/GlobalHeader/types.d.ts +0 -89
  135. package/dist/GlobalHeader/urlHelpers.d.ts +0 -2
  136. package/dist/GlobalPage/index.d.ts +0 -34
  137. package/dist/Grid/GridCollapse.d.ts +0 -41
  138. package/dist/Grid/Subgrid.d.ts +0 -23
  139. package/dist/Grid/getCSSFromColumnCount.d.ts +0 -6
  140. package/dist/Grid/index.d.ts +0 -3
  141. package/dist/HeaderHeightArea/index.d.ts +0 -9
  142. package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +0 -1
  143. package/dist/HorizontalScrollMenu/index.d.ts +0 -7
  144. package/dist/HubCard/index.d.ts +0 -8
  145. package/dist/InfoCard/index.d.ts +0 -19
  146. package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +0 -5
  147. package/dist/Konamimojisplosion/index.d.ts +0 -2
  148. package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +0 -1
  149. package/dist/LandingPage/CTA.d.ts +0 -9
  150. package/dist/LandingPage/Description.d.ts +0 -6
  151. package/dist/LandingPage/Feature.d.ts +0 -32
  152. package/dist/LandingPage/PageFAQs.d.ts +0 -10
  153. package/dist/LandingPage/PageFeatures.d.ts +0 -16
  154. package/dist/LandingPage/PageFeaturesEnhanced.d.ts +0 -7
  155. package/dist/LandingPage/PageFeaturesWithReferences.d.ts +0 -19
  156. package/dist/LandingPage/PageHero.d.ts +0 -7
  157. package/dist/LandingPage/PagePrefooter.d.ts +0 -5
  158. package/dist/LandingPage/PageSingleFeature.d.ts +0 -56
  159. package/dist/LandingPage/PageTestimonials.d.ts +0 -21
  160. package/dist/LandingPage/PageVideoGallery.d.ts +0 -11
  161. package/dist/LandingPage/Title.d.ts +0 -23
  162. package/dist/LandingPage/TitleWithEyebrow.d.ts +0 -11
  163. package/dist/LandingPage/index.d.ts +0 -14
  164. package/dist/LandingPage/types.d.ts +0 -28
  165. package/dist/LayoutMenu/AccordionMenu.d.ts +0 -25
  166. package/dist/LayoutMenu/LayoutMenu.d.ts +0 -43
  167. package/dist/LayoutMenu/LayoutMenuSection.d.ts +0 -16
  168. package/dist/LayoutMenu/SectionItemLink.d.ts +0 -7
  169. package/dist/LayoutMenu/SelectedSectionItem.d.ts +0 -3
  170. package/dist/LayoutMenu/index.d.ts +0 -3
  171. package/dist/LayoutMenuVariant/AccordionMenu.d.ts +0 -21
  172. package/dist/LayoutMenuVariant/LayoutMenu.d.ts +0 -39
  173. package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +0 -10
  174. package/dist/LayoutMenuVariant/SectionItemLink.d.ts +0 -8
  175. package/dist/LayoutMenuVariant/index.d.ts +0 -2
  176. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.d.ts +0 -8
  177. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
  178. package/dist/LearningOutcomeAssessmentScores/index.d.ts +0 -8
  179. package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
  180. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +0 -18
  181. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +0 -10
  182. package/dist/LearningOutcomeBadges/index.d.ts +0 -2
  183. package/dist/LearningOutcomeCard/index.d.ts +0 -26
  184. package/dist/LearningOutcomeFlyout/index.d.ts +0 -29
  185. package/dist/LearningOutcomeFlyout/index.js +0 -153
  186. package/dist/LearningOutcomePopover/index.d.ts +0 -10
  187. package/dist/LearningOutcomeTile/Tile.d.ts +0 -7
  188. package/dist/LearningOutcomeTile/index.d.ts +0 -3
  189. package/dist/LearningOutcomeTile/types.d.ts +0 -47
  190. package/dist/ListSection/index.d.ts +0 -21
  191. package/dist/Loading/index.d.ts +0 -5
  192. package/dist/Loading/styles.module.scss +0 -131
  193. package/dist/LoadingCurriculumCard/index.d.ts +0 -7
  194. package/dist/Logo/CodecademyLogo.d.ts +0 -2
  195. package/dist/Logo/CodecademyPremiumLogo.d.ts +0 -2
  196. package/dist/Logo/CodecademyProAltLogo.d.ts +0 -2
  197. package/dist/Logo/CodecademyProLockupLogo.d.ts +0 -2
  198. package/dist/Logo/CodecademyProLogo.d.ts +0 -2
  199. package/dist/Logo/CodecademyProMonoLogo.d.ts +0 -2
  200. package/dist/Logo/CodecademyProgramLogo.d.ts +0 -2
  201. package/dist/Logo/CodecademyTeamsLogo.d.ts +0 -2
  202. package/dist/Logo/index.d.ts +0 -8
  203. package/dist/LogoFromSkillsoft/index.d.ts +0 -227
  204. package/dist/LogoLXStudio/index.d.ts +0 -3
  205. package/dist/LogoProCutout/index.d.ts +0 -8
  206. package/dist/LogoProCutoutTransparent/index.d.ts +0 -7
  207. package/dist/MarketingToaster/index.d.ts +0 -8
  208. package/dist/NotFoundContent/404.svg +0 -1
  209. package/dist/NotFoundContent/index.d.ts +0 -8
  210. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +0 -7
  211. package/dist/NotificationList/EmptyNotification/index.d.ts +0 -1
  212. package/dist/NotificationList/NotificationItem.d.ts +0 -8
  213. package/dist/NotificationList/index.d.ts +0 -9
  214. package/dist/NotificationList/typings.d.ts +0 -16
  215. package/dist/Notifications/NotificationBell.d.ts +0 -10
  216. package/dist/Notifications/NotificationsContents.d.ts +0 -3
  217. package/dist/Notifications/NotificationsDropdown.d.ts +0 -2
  218. package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +0 -2
  219. package/dist/Notifications/__fixtures__/stubs.d.ts +0 -2
  220. package/dist/Notifications/constants.d.ts +0 -4
  221. package/dist/Notifications/elements.d.ts +0 -12
  222. package/dist/Notifications/types.d.ts +0 -24
  223. package/dist/Notifications/useHeaderNotifications.d.ts +0 -10
  224. package/dist/Notifications/useNotificationButtons.d.ts +0 -9
  225. package/dist/PageAlerts/PageAlerts.d.ts +0 -10
  226. package/dist/PageAlerts/PageAlertsProvider.d.ts +0 -11
  227. package/dist/PageAlerts/index.d.ts +0 -3
  228. package/dist/PageAlerts/types.d.ts +0 -17
  229. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +0 -19
  230. package/dist/PageLayoutWithSidebarMenu/index.d.ts +0 -1
  231. package/dist/PageSection/index.d.ts +0 -17
  232. package/dist/PastDue/PastDueModalContents/index.d.ts +0 -8
  233. package/dist/PastDue/index.d.ts +0 -2
  234. package/dist/PastDue/pastDueMessages.d.ts +0 -6
  235. package/dist/PausableImage/BaseImage/index.d.ts +0 -15
  236. package/dist/PausableImage/index.d.ts +0 -11
  237. package/dist/PlanCard/PlanCardBanner.d.ts +0 -7
  238. package/dist/PlanCard/PlanFeature.d.ts +0 -9
  239. package/dist/PlanCard/PopularBadge.d.ts +0 -3
  240. package/dist/PlanCard/PricingAmount.d.ts +0 -14
  241. package/dist/PlanCard/RecommendedBadge.d.ts +0 -3
  242. package/dist/PlanCard/consts.d.ts +0 -14
  243. package/dist/PlanCard/index.d.ts +0 -18
  244. package/dist/PlanCard/types.d.ts +0 -39
  245. package/dist/PlanCardTeams/consts.d.ts +0 -9
  246. package/dist/PlanCardTeams/index.d.ts +0 -8
  247. package/dist/PricingSection/PlanFeature.d.ts +0 -10
  248. package/dist/PricingSection/PricingCard/PricingAmount.d.ts +0 -10
  249. package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +0 -3
  250. package/dist/PricingSection/PricingCard/consts.d.ts +0 -14
  251. package/dist/PricingSection/PricingCard/index.d.ts +0 -12
  252. package/dist/PricingSection/ProductCTA.d.ts +0 -6
  253. package/dist/PricingSection/Products.d.ts +0 -11
  254. package/dist/PricingSection/config.d.ts +0 -8
  255. package/dist/PricingSection/index.d.ts +0 -13
  256. package/dist/PricingSection/types.d.ts +0 -30
  257. package/dist/ProLabel/index.d.ts +0 -376
  258. package/dist/ProLogo/index.d.ts +0 -15
  259. package/dist/ProLogoAlt/index.d.ts +0 -9
  260. package/dist/ProductFeatureShowcase/index.d.ts +0 -16
  261. package/dist/QuizScore/index.d.ts +0 -12
  262. package/dist/RatingsBar/index.d.ts +0 -12
  263. package/dist/ResourceCard/index.d.ts +0 -15
  264. package/dist/ScoreSummary/SubScores.d.ts +0 -28
  265. package/dist/ScoreSummary/helpers.d.ts +0 -11
  266. package/dist/ScoreSummary/index.d.ts +0 -21
  267. package/dist/ScoreSummary/types.d.ts +0 -310
  268. package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +0 -2
  269. package/dist/SkillPathCard/index.d.ts +0 -17
  270. package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +0 -13
  271. package/dist/SocialMediaSharing/index.d.ts +0 -49
  272. package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +0 -1
  273. package/dist/SocialMediaSharingDropdown/index.d.ts +0 -15
  274. package/dist/Testimonial/index.d.ts +0 -45
  275. package/dist/assets/darkQuotes.svg +0 -1
  276. package/dist/assets/dots.svg +0 -1
  277. package/dist/assets/lightQuotes.svg +0 -1
  278. package/dist/assets/navyQuotes.svg +0 -5
  279. package/dist/assets/orange_squiggle.svg +0 -1
  280. package/dist/index.d.ts +0 -90
  281. package/dist/lib/breakpointHooks/index.d.ts +0 -43
  282. package/dist/lib/catalogList/index.d.ts +0 -5
  283. package/dist/lib/resourcesList/index.d.ts +0 -5
  284. package/dist/png.d.ts +0 -4
  285. package/dist/react-freezeframe.d.ts +0 -1
  286. package/dist/remoteAssets/components.d.ts +0 -1
  287. package/dist/stories/Atoms/Avatar.stories.d.ts +0 -6
  288. package/dist/stories/Atoms/BetaSticker.stories.d.ts +0 -7
  289. package/dist/stories/Atoms/Logos/Logo.stories.d.ts +0 -13
  290. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +0 -6
  291. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +0 -6
  292. package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +0 -6
  293. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +0 -6
  294. package/dist/stories/Atoms/RatingsBar.stories.d.ts +0 -6
  295. package/dist/stories/Atoms/Subgrid.stories.d.ts +0 -6
  296. package/dist/stories/Molecules/AppBar.stories.d.ts +0 -15
  297. package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +0 -6
  298. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +0 -8
  299. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +0 -8
  300. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +0 -8
  301. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +0 -6
  302. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +0 -6
  303. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +0 -7
  304. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +0 -7
  305. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +0 -6
  306. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +0 -5
  307. package/dist/stories/Molecules/AvatarChooser.stories.d.ts +0 -7
  308. package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +0 -10
  309. package/dist/stories/Molecules/Banner.stories.d.ts +0 -16
  310. package/dist/stories/Molecules/Carousel.stories.d.ts +0 -7
  311. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +0 -13
  312. package/dist/stories/Molecules/CurriculumCard.stories.d.ts +0 -16
  313. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +0 -10
  314. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +0 -9
  315. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +0 -10
  316. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +0 -6
  317. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +0 -9
  318. package/dist/stories/Molecules/DropdownButton.stories.d.ts +0 -11
  319. package/dist/stories/Molecules/EditorialImage.stories.d.ts +0 -6
  320. package/dist/stories/Molecules/EmptySection.stories.d.ts +0 -13
  321. package/dist/stories/Molecules/ErrorContents.stories.d.ts +0 -7
  322. package/dist/stories/Molecules/GridCollapse.stories.d.ts +0 -6
  323. package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +0 -1
  324. package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +0 -6
  325. package/dist/stories/Molecules/HubCard.stories.d.ts +0 -7
  326. package/dist/stories/Molecules/InfoCard.stories.d.ts +0 -7
  327. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.d.ts +0 -6
  328. package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +0 -23
  329. package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +0 -15
  330. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.d.ts +0 -5
  331. package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +0 -34
  332. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +0 -6
  333. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +0 -6
  334. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +0 -5
  335. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +0 -10
  336. package/dist/stories/Molecules/ListSection.stories.d.ts +0 -9
  337. package/dist/stories/Molecules/Loading.stories.d.ts +0 -6
  338. package/dist/stories/Molecules/NotificationList.stories.d.ts +0 -7
  339. package/dist/stories/Molecules/PageSection.stories.d.ts +0 -8
  340. package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +0 -10
  341. package/dist/stories/Molecules/PausableImage.stories.d.ts +0 -6
  342. package/dist/stories/Molecules/ResourceCard.stories.d.ts +0 -6
  343. package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +0 -6
  344. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +0 -6
  345. package/dist/stories/Molecules/Testimonial.stories.d.ts +0 -10
  346. package/dist/stories/Organisms/GlobalFooter.stories.d.ts +0 -8
  347. package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +0 -10
  348. package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +0 -9
  349. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +0 -6
  350. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +0 -8
  351. package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +0 -8
  352. package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +0 -10
  353. package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +0 -6
  354. package/dist/stories/Organisms/GlobalPage.stories.d.ts +0 -9
  355. package/dist/stories/Organisms/LayoutMenu.stories.d.ts +0 -10
  356. package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +0 -9
  357. package/dist/stories/Organisms/PageAlerts.example.d.ts +0 -2
  358. package/dist/stories/Organisms/PageAlerts.stories.d.ts +0 -7
  359. package/dist/stories/Organisms/PageFeatures.stories.d.ts +0 -14
  360. package/dist/stories/Organisms/PageHero.stories.d.ts +0 -17
  361. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +0 -7
  362. package/dist/stories/Organisms/PagePrefooter.stories.d.ts +0 -10
  363. package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +0 -18
  364. package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +0 -10
  365. package/dist/stories/Organisms/PlanCard.stories.d.ts +0 -9
  366. package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +0 -7
  367. package/dist/stories/Organisms/ScoreSummary.stories.d.ts +0 -12
  368. package/dist/svg.d.ts +0 -8
  369. package/dist/theme.d.ts +0 -5
@@ -1,23 +0,0 @@
1
- import { GridBox } from '@codecademy/gamut';
2
- import { ComponentProps, FC } from 'react';
3
- import { ColumnCount } from './getCSSFromColumnCount';
4
- /**
5
- * Subgrid is basically used as a stand-in for css subgrids, which are currently only supported in firefox.
6
- * Because the number of Subgrid columns is dependent on many factors (screen width, content type, whether
7
- * or not we're displaying contributors) and Subgrid is used in multiple places - sometimes nested within
8
- * subcomponents - we avoid prop-drilling and keep each instance in sync by defining the columns at each
9
- * breakpoint in react context. Usage example:
10
- *
11
- * import { Subgrid, subgridContext } from './Subgrid';
12
- *
13
- * export const MyComponent = () => (
14
- * <subgridContext.Provider value={{ _: 12, md: 6 }}>
15
- * ...
16
- * <Subgrid>...</Subgrid>
17
- * </subgridContext.Provider>
18
- * );
19
- *
20
- * here, all descendant Subgrids will have 6 columns at breakpoints md and above and 12 columns otherwise
21
- */
22
- export declare const subgridContext: import("react").Context<ColumnCount>;
23
- export declare const Subgrid: FC<ComponentProps<typeof GridBox>>;
@@ -1,6 +0,0 @@
1
- import { Column } from '@codecademy/gamut';
2
- import { MediaQueryMap } from '@codecademy/variance';
3
- import { ComponentProps } from 'react';
4
- export type ColumnCountKeys = Extract<ComponentProps<typeof Column>['size'], number>;
5
- export type ColumnCount = MediaQueryMap<ColumnCountKeys>;
6
- export declare const getCSSFromColumnCount: (columnCount: ColumnCount, valueFunction: (value: number) => string) => MediaQueryMap<string>;
@@ -1,3 +0,0 @@
1
- export * from './Subgrid';
2
- export * from './GridCollapse';
3
- export * from './getCSSFromColumnCount';
@@ -1,9 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import { ResponsiveProp } from '@codecademy/variance';
3
- import * as React from 'react';
4
- export interface HeaderHeightAreaProps extends WithChildrenProp {
5
- as?: React.ElementType<any>;
6
- display: ResponsiveProp<'none' | 'block'>;
7
- ariaLabel?: string;
8
- }
9
- export declare const HeaderHeightArea: React.FC<HeaderHeightAreaProps>;
@@ -1 +0,0 @@
1
- export declare const useIsInHeaderRegion: () => boolean;
@@ -1,7 +0,0 @@
1
- import 'intersection-observer';
2
- import { WithChildrenProp } from '@codecademy/gamut';
3
- import * as React from 'react';
4
- export interface HorizontalScrollMenuProps extends WithChildrenProp {
5
- className?: string;
6
- }
7
- export declare const HorizontalScrollMenu: React.FC<HorizontalScrollMenuProps>;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- export type HubCardProps = {
3
- eyebrowTitle: string;
4
- title: string;
5
- backgroundImage: string;
6
- backgroundPosition: 'left' | 'right';
7
- };
8
- export declare const HubCard: React.FC<HubCardProps>;
@@ -1,19 +0,0 @@
1
- import { BoxProps, HeadingTags } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- export type TagColor = 'blue' | 'green' | 'pink';
4
- export interface InfoCardProps {
5
- href: string;
6
- onClick?: () => void;
7
- topText: string;
8
- title: string;
9
- subtitle?: string;
10
- body?: string;
11
- bottomLeftText?: string;
12
- bottomRightTagText?: string;
13
- bottomRightTagColor?: TagColor;
14
- cardHeight?: string | number;
15
- cardPadding?: BoxProps['p'];
16
- titleHeadingLevel?: HeadingTags;
17
- rightContent?: React.ReactNode;
18
- }
19
- export declare const InfoCard: React.FC<InfoCardProps>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export type KonamimojisplosionProps = {
3
- onActivate?: () => void;
4
- };
5
- export declare const Konamimojisplosion: React.FC<KonamimojisplosionProps>;
@@ -1,2 +0,0 @@
1
- export * from './Konamimojisplosion';
2
- export * from './useKonamimojisplosion';
@@ -1 +0,0 @@
1
- export declare const useKonamimojisplosion: (onActivate?: () => void) => void;
@@ -1,9 +0,0 @@
1
- import { ButtonProps } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- export interface CTAProps extends Pick<ButtonProps, 'children'> {
4
- href: string;
5
- onClick?: React.MouseEventHandler;
6
- buttonType?: 'cta' | 'fill';
7
- mode?: 'light' | 'dark';
8
- }
9
- export declare const CTA: React.FC<CTAProps>;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { LandingPageBaseProps } from './types';
3
- export type DescriptionProps = {
4
- text: string;
5
- } & Pick<LandingPageBaseProps, 'onAnchorClick'>;
6
- export declare const Description: React.FC<DescriptionProps>;
@@ -1,32 +0,0 @@
1
- import { BoxProps, WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { LandingPageBaseProps } from './types';
4
- declare const Image: import("@emotion/styled").StyledComponent<{
5
- theme?: import("@emotion/react").Theme | undefined;
6
- as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
- } & BoxProps, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
8
- export type FeaturedImageProps = {
9
- src: string;
10
- alt: string;
11
- };
12
- export declare const FeaturedImage: React.FC<FeaturedImageProps>;
13
- export type FeaturedIconProps = {
14
- src: string;
15
- alt: string;
16
- props?: Omit<React.ComponentProps<typeof Image>, 'src' | 'alt' | 'data-testid'>;
17
- };
18
- export declare const FeaturedIcon: React.FC<FeaturedIconProps>;
19
- export declare const FeaturedStat: React.FC<WithChildrenProp>;
20
- export interface FeaturedTitleProps extends WithChildrenProp {
21
- as: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
22
- props?: Omit<BoxProps, 'as' | 'children'>;
23
- }
24
- export declare const FeaturedTitle: React.FC<FeaturedTitleProps>;
25
- export type FeaturedDescriptionProps = Pick<LandingPageBaseProps, 'desc' | 'onAnchorClick'>;
26
- export declare const FeaturedDescription: React.FC<FeaturedDescriptionProps>;
27
- export interface FeatureProps extends WithChildrenProp {
28
- testId?: string;
29
- props?: Omit<BoxProps, 'as' | 'children'>;
30
- }
31
- export declare const Feature: React.FC<FeatureProps>;
32
- export {};
@@ -1,10 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { LandingPageBaseProps } from './types';
4
- export interface PageFaqsProps extends LandingPageBaseProps, WithChildrenProp {
5
- faqs?: {
6
- question: string;
7
- answer: string;
8
- }[];
9
- }
10
- export declare const PageFaqs: React.FC<PageFaqsProps>;
@@ -1,16 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { LandingPageBaseProps } from './types';
4
- export interface PageFeaturesProps extends LandingPageBaseProps, WithChildrenProp {
5
- maxCols?: 1 | 2 | 3 | 4;
6
- featuresMedia?: 'image' | 'icon' | 'stat';
7
- features: {
8
- title?: string;
9
- desc?: string;
10
- imgSrc?: string;
11
- imgAlt?: string;
12
- statText?: string;
13
- testId?: string;
14
- }[];
15
- }
16
- export declare const PageFeatures: React.FC<PageFeaturesProps>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { PageFeaturesProps } from './PageFeatures';
3
- import { Eyebrow } from './PageSingleFeature';
4
- export interface PageFeaturesEnhancedProps extends PageFeaturesProps {
5
- eyebrow?: Eyebrow;
6
- }
7
- export declare const PageFeaturesEnhanced: React.FC<PageFeaturesEnhancedProps>;
@@ -1,19 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { FeatureListItem } from '../FeatureList';
4
- import { Eyebrow } from './PageSingleFeature';
5
- import { LandingPageBaseProps } from './types';
6
- export interface PageFeaturesWithReferencesProps extends LandingPageBaseProps, WithChildrenProp {
7
- /**
8
- * Object containing eyebrow text shown above title and optional accent boolean
9
- */
10
- eyebrow?: Eyebrow;
11
- maxCols?: 1 | 2 | 3 | 4;
12
- featureList?: FeatureListItem[];
13
- rightCoverImage?: {
14
- url: string;
15
- };
16
- rightCoverPattern?: 'DotLoose' | 'DotDense';
17
- showImageOnMobile?: boolean;
18
- }
19
- export declare const PageFeaturesWithReferences: React.FC<PageFeaturesWithReferencesProps>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { PageSingleFeatureProps } from './PageSingleFeature';
3
- export type PageHeroProps = Omit<PageSingleFeatureProps, 'mediaWidth' | 'hideImageOnMobile' | 'isPageHeading'> & {
4
- showImageOnMobile?: boolean;
5
- textLength?: 'short' | 'long';
6
- };
7
- export declare const PageHero: React.FC<PageHeroProps>;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
- import { CtaProps, LandingPageBaseProps } from './types';
3
- export declare const PagePrefooter: React.FC<LandingPageBaseProps & {
4
- additionalCtas?: CtaProps[];
5
- }>;
@@ -1,56 +0,0 @@
1
- import { ColumnProps, VideoProps } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { FeatureListItem } from '../FeatureList';
4
- import { CtaProps, LandingPageBaseProps } from './types';
5
- export type ColumnSize = Extract<ColumnProps['size'], number>;
6
- export type MediaColumnsSize = Extract<ColumnSize, 3 | 4 | 5 | 6>;
7
- export type ImageProps = {
8
- src: string;
9
- alt: string;
10
- };
11
- export type MediaProps = ({
12
- type: 'image';
13
- linkUrl?: string;
14
- } & ImageProps) | ({
15
- type: 'video';
16
- } & VideoProps);
17
- export type Eyebrow = {
18
- accent?: boolean;
19
- text: string;
20
- };
21
- export type FeaturedImageProps = ImageProps & {
22
- linkUrl?: string;
23
- hideImageOnMobile?: boolean;
24
- };
25
- export declare const FeaturedImage: React.FC<FeaturedImageProps>;
26
- export type PageSingleFeatureProps = LandingPageBaseProps & {
27
- /**
28
- * Object containing eyebrow text shown above title and optional accent boolean
29
- */
30
- eyebrow?: Eyebrow;
31
- /**
32
- * Whether the image should be hidden on mobile. Note that videos are always shown on mobile for accessibility
33
- */
34
- hideImageOnMobile?: boolean;
35
- /**
36
- * If the heading is the page h1 heading or a smaller heading
37
- */
38
- isPageHeading?: boolean;
39
- /**
40
- * Whether to show an image or a video, with the associated props to do so
41
- */
42
- media?: MediaProps;
43
- /**
44
- * Number of columns out of 12 that the media should take up, defaults to 6. The remaining columns will be used for the text
45
- */
46
- mediaWidth?: MediaColumnsSize;
47
- /**
48
- * Optional array of additional CTAs if more than one CTA is added to the section. These will appear after the provided singular CTA.
49
- */
50
- additionalCtas?: CtaProps[];
51
- /**
52
- * Optional array of features to display in a list.
53
- */
54
- featureList?: FeatureListItem[];
55
- };
56
- export declare const PageSingleFeature: React.FC<PageSingleFeatureProps>;
@@ -1,21 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- import { Eyebrow } from './PageSingleFeature';
4
- import { LandingPageBaseProps } from './types';
5
- export interface LiveLearningTestimonialItem {
6
- image: {
7
- url: string;
8
- };
9
- firstName: string;
10
- lastName: string;
11
- jobTitle: string;
12
- company: string;
13
- shortQuote: string;
14
- longQuote: string;
15
- href: string;
16
- }
17
- export interface PageTestimonialsProps extends LandingPageBaseProps, WithChildrenProp {
18
- eyebrow?: Eyebrow;
19
- testimonials?: LiveLearningTestimonialItem[];
20
- }
21
- export declare const PageTestimonials: React.FC<PageTestimonialsProps>;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { LandingPageBaseProps } from './types';
3
- export type PageVideo = {
4
- url: string;
5
- title: string;
6
- placeholderImage?: string;
7
- };
8
- export type PageVideoGalleryProps = LandingPageBaseProps & {
9
- videos: PageVideo[];
10
- };
11
- export declare const PageVideoGallery: React.FC<PageVideoGalleryProps>;
@@ -1,23 +0,0 @@
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>;
@@ -1,11 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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';
@@ -1,28 +0,0 @@
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'];
@@ -1,25 +0,0 @@
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>;
@@ -1,43 +0,0 @@
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>;
@@ -1,16 +0,0 @@
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>;
@@ -1,7 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import { WithChildrenProp } from '@codecademy/gamut';
2
- import * as React from 'react';
3
- export declare const SelectedSectionItem: React.FC<WithChildrenProp>;
@@ -1,3 +0,0 @@
1
- export * from './LayoutMenu';
2
- export * from './SectionItemLink';
3
- export * from './SelectedSectionItem';
@@ -1,21 +0,0 @@
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>;
@@ -1,39 +0,0 @@
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>;
@@ -1,10 +0,0 @@
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>;
@@ -1,8 +0,0 @@
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>;
@@ -1,2 +0,0 @@
1
- export * from './LayoutMenu';
2
- export * from './SectionItemLink';
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface AssessmentDetailProps {
3
- isHighestScore?: boolean;
4
- score?: number | null;
5
- scoreAchievedAt?: string | null;
6
- }
7
- export declare const AssessmentDetail: React.FC<AssessmentDetailProps>;
8
- export {};