@codecademy/brand 2.0.0-alpha.5243a9d11b.0 → 2.0.0-alpha.59fc3715fe.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 (324) hide show
  1. package/package.json +2 -2
  2. package/dist/AbbreviatedCommunityEventCard/index.js +0 -98
  3. package/dist/AppBar/AppBarSection.js +0 -41
  4. package/dist/AppBar/index.js +0 -20
  5. package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +0 -25
  6. package/dist/AppBarDeprecated/index.js +0 -26
  7. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +0 -98
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +0 -63
  9. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +0 -441
  10. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +0 -157
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.js +0 -25
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.js +0 -26
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.js +0 -1
  14. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.js +0 -2
  15. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +0 -26
  16. package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +0 -70
  17. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -53
  18. package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +0 -32
  19. package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +0 -57
  20. package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +0 -88
  21. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.js +0 -50
  22. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.js +0 -38
  23. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +0 -36
  24. package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +0 -19
  25. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +0 -115
  26. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +0 -194
  27. package/dist/AppHeader/Search/DefaultResults.js +0 -112
  28. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +0 -80
  29. package/dist/AppHeader/Search/SearchButton.js +0 -58
  30. package/dist/AppHeader/Search/SearchPane.js +0 -518
  31. package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +0 -35
  32. package/dist/AppHeader/Search/SearchWorker/index.js +0 -24
  33. package/dist/AppHeader/Search/SearchWorker/src.js +0 -307
  34. package/dist/AppHeader/Search/SearchWorker/types.js +0 -5
  35. package/dist/AppHeader/Search/SearchWorker/worker.js +0 -31
  36. package/dist/AppHeader/Search/consts.js +0 -40
  37. package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +0 -14
  38. package/dist/AppHeader/Search/safelyRedirect.js +0 -49
  39. package/dist/AppHeader/Search/types.js +0 -1
  40. package/dist/AppHeader/Search/useHeaderSearch.js +0 -39
  41. package/dist/AppHeader/index.js +0 -80
  42. package/dist/AppHeader/shared/elements.js +0 -151
  43. package/dist/AppHeader/shared/index.js +0 -4
  44. package/dist/AppHeader/shared/keyboardNav.js +0 -67
  45. package/dist/AppHeader/shared/mockAppHeaderItems.js +0 -10
  46. package/dist/AppHeader/shared/testTypes.js +0 -0
  47. package/dist/AppHeader/shared/types.js +0 -1
  48. package/dist/AppHeader/shared/utils.js +0 -103
  49. package/dist/AppHeader/utils/types.js +0 -1
  50. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.js +0 -77
  51. package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +0 -111
  52. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +0 -30
  53. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +0 -106
  54. package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +0 -60
  55. package/dist/AppHeaderMobile/index.js +0 -226
  56. package/dist/Avatar/Avatar.stories.js +0 -15
  57. package/dist/Avatar/index.js +0 -45
  58. package/dist/AvatarChooser/index.js +0 -105
  59. package/dist/BackToTopAnchor/index.js +0 -38
  60. package/dist/Banner/index.js +0 -102
  61. package/dist/BetaSticker/index.js +0 -57
  62. package/dist/CareerPathCard/index.js +0 -41
  63. package/dist/Carousel/elements.js +0 -14
  64. package/dist/Carousel/index.js +0 -242
  65. package/dist/CertificationPathCard/index.js +0 -42
  66. package/dist/CommunityEventCard/EventTypeIcon.js +0 -59
  67. package/dist/CommunityEventCard/index.js +0 -305
  68. package/dist/CommunityEventToast/index.js +0 -32
  69. package/dist/ContentGroupBaseCard/helpers.js +0 -12
  70. package/dist/ContentGroupBaseCard/index.js +0 -178
  71. package/dist/ContentGroupBaseCard/shared.js +0 -76
  72. package/dist/ContentGroupBaseCard/types.js +0 -12
  73. package/dist/CourseCard/index.js +0 -47
  74. package/dist/CurriculumCard/BottomTag/index.js +0 -26
  75. package/dist/CurriculumCard/Difficulty/helpers.js +0 -13
  76. package/dist/CurriculumCard/Difficulty/index.js +0 -47
  77. package/dist/CurriculumCard/Difficulty/types.js +0 -20
  78. package/dist/CurriculumCard/Footer/index.js +0 -54
  79. package/dist/CurriculumCard/Image/index.js +0 -56
  80. package/dist/CurriculumCard/Subtitle/helpers.js +0 -8
  81. package/dist/CurriculumCard/Subtitle/index.js +0 -34
  82. package/dist/CurriculumCard/index.js +0 -129
  83. package/dist/DropdownButton/DropdownList.js +0 -73
  84. package/dist/DropdownButton/index.js +0 -169
  85. package/dist/DropdownButton/useDynamicPopoverPosition.js +0 -55
  86. package/dist/DropdownButton/useDynamicPopoverPosition.test.js +0 -85
  87. package/dist/EditorialImage/index.js +0 -22
  88. package/dist/EmptySection/index.js +0 -183
  89. package/dist/ErrorContents/index.js +0 -48
  90. package/dist/FeatureList/index.js +0 -40
  91. package/dist/GlobalFooter/FooterHeading.js +0 -30
  92. package/dist/GlobalFooter/FooterLegal/LegalLinks.js +0 -43
  93. package/dist/GlobalFooter/FooterLegal/MadeIn.js +0 -64
  94. package/dist/GlobalFooter/FooterLegal/index.js +0 -22
  95. package/dist/GlobalFooter/FooterLinks.js +0 -53
  96. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +0 -301
  97. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +0 -299
  98. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +0 -268
  99. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +0 -29
  100. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +0 -74
  101. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +0 -86
  102. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +0 -1
  103. package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +0 -50
  104. package/dist/GlobalFooter/FooterNavLinks/index.js +0 -45
  105. package/dist/GlobalFooter/FooterSubHeading.js +0 -22
  106. package/dist/GlobalFooter/index.js +0 -47
  107. package/dist/GlobalFooter/types.js +0 -1
  108. package/dist/GlobalHeader/GlobalHeaderItems.js +0 -402
  109. package/dist/GlobalHeader/GlobalHeaderVariants.js +0 -211
  110. package/dist/GlobalHeader/index.js +0 -109
  111. package/dist/GlobalHeader/types.js +0 -1
  112. package/dist/GlobalHeader/urlHelpers.js +0 -21
  113. package/dist/GlobalPage/index.js +0 -53
  114. package/dist/Grid/GridCollapse.js +0 -199
  115. package/dist/Grid/GridCollapse.test.js +0 -96
  116. package/dist/Grid/Subgrid.js +0 -37
  117. package/dist/Grid/getCSSFromColumnCount.js +0 -7
  118. package/dist/Grid/index.js +0 -3
  119. package/dist/HeaderHeightArea/index.js +0 -40
  120. package/dist/HeaderHeightArea/useIsInHeaderRegion.js +0 -15
  121. package/dist/HorizontalScrollMenu/index.js +0 -75
  122. package/dist/HubCard/index.js +0 -38
  123. package/dist/InfoCard/index.js +0 -157
  124. package/dist/Konamimojisplosion/Konamimojisplosion.js +0 -7
  125. package/dist/Konamimojisplosion/index.js +0 -2
  126. package/dist/Konamimojisplosion/useKonamimojisplosion.js +0 -34
  127. package/dist/LandingPage/CTA.js +0 -11
  128. package/dist/LandingPage/Description.js +0 -14
  129. package/dist/LandingPage/Feature.js +0 -96
  130. package/dist/LandingPage/PageFAQs.js +0 -42
  131. package/dist/LandingPage/PageFeatures.js +0 -112
  132. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -156
  133. package/dist/LandingPage/PageFeaturesWithReferences.js +0 -136
  134. package/dist/LandingPage/PageHero.js +0 -22
  135. package/dist/LandingPage/PagePrefooter.js +0 -74
  136. package/dist/LandingPage/PageSingleFeature.js +0 -128
  137. package/dist/LandingPage/PageTestimonials.js +0 -113
  138. package/dist/LandingPage/PageVideoGallery.js +0 -49
  139. package/dist/LandingPage/Title.js +0 -28
  140. package/dist/LandingPage/TitleWithEyebrow.js +0 -40
  141. package/dist/LandingPage/index.js +0 -14
  142. package/dist/LandingPage/types.js +0 -1
  143. package/dist/LayoutMenu/AccordionMenu.js +0 -68
  144. package/dist/LayoutMenu/LayoutMenu.js +0 -96
  145. package/dist/LayoutMenu/LayoutMenuSection.js +0 -34
  146. package/dist/LayoutMenu/SectionItemLink.js +0 -16
  147. package/dist/LayoutMenu/SelectedSectionItem.js +0 -17
  148. package/dist/LayoutMenu/index.js +0 -3
  149. package/dist/LayoutMenuVariant/AccordionMenu.js +0 -85
  150. package/dist/LayoutMenuVariant/LayoutMenu.js +0 -92
  151. package/dist/LayoutMenuVariant/LayoutMenuSection.js +0 -42
  152. package/dist/LayoutMenuVariant/SectionItemLink.js +0 -17
  153. package/dist/LayoutMenuVariant/index.js +0 -2
  154. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +0 -57
  155. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +0 -35
  156. package/dist/LearningOutcomeBadges/index.js +0 -2
  157. package/dist/LearningOutcomeCard/index.js +0 -143
  158. package/dist/LearningOutcomePopover/index.js +0 -125
  159. package/dist/LearningOutcomeTile/Tile.js +0 -79
  160. package/dist/LearningOutcomeTile/index.js +0 -116
  161. package/dist/LearningOutcomeTile/types.js +0 -11
  162. package/dist/ListSection/index.js +0 -64
  163. package/dist/Loading/index.js +0 -82
  164. package/dist/LoadingCurriculumCard/index.js +0 -82
  165. package/dist/Logo/CodecademyLogo.js +0 -19
  166. package/dist/Logo/CodecademyPremiumLogo.js +0 -35
  167. package/dist/Logo/CodecademyProAltLogo.js +0 -19
  168. package/dist/Logo/CodecademyProLockupLogo.js +0 -13
  169. package/dist/Logo/CodecademyProLogo.js +0 -21
  170. package/dist/Logo/CodecademyProMonoLogo.js +0 -22
  171. package/dist/Logo/CodecademyProgramLogo.js +0 -14
  172. package/dist/Logo/CodecademyTeamsLogo.js +0 -41
  173. package/dist/Logo/index.js +0 -30
  174. package/dist/LogoFromSkillsoft/index.js +0 -55
  175. package/dist/LogoLXStudio/index.js +0 -47
  176. package/dist/LogoProCutout/index.js +0 -31
  177. package/dist/LogoProCutoutTransparent/index.js +0 -31
  178. package/dist/MarketingToaster/index.js +0 -67
  179. package/dist/NotFoundContent/index.js +0 -55
  180. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +0 -23
  181. package/dist/NotificationList/EmptyNotification/index.js +0 -38
  182. package/dist/NotificationList/NotificationItem.js +0 -151
  183. package/dist/NotificationList/index.js +0 -46
  184. package/dist/NotificationList/typings.js +0 -1
  185. package/dist/Notifications/NotificationBell.js +0 -72
  186. package/dist/Notifications/NotificationsContents.js +0 -85
  187. package/dist/Notifications/NotificationsDropdown.js +0 -25
  188. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
  189. package/dist/Notifications/__fixtures__/stubs.js +0 -8
  190. package/dist/Notifications/constants.js +0 -4
  191. package/dist/Notifications/elements.js +0 -21
  192. package/dist/Notifications/types.js +0 -1
  193. package/dist/Notifications/useHeaderNotifications.js +0 -37
  194. package/dist/Notifications/useNotificationButtons.js +0 -56
  195. package/dist/PageAlerts/PageAlerts.js +0 -75
  196. package/dist/PageAlerts/PageAlertsProvider.js +0 -34
  197. package/dist/PageAlerts/index.js +0 -3
  198. package/dist/PageAlerts/types.js +0 -1
  199. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +0 -53
  200. package/dist/PageLayoutWithSidebarMenu/index.js +0 -1
  201. package/dist/PageSection/index.js +0 -67
  202. package/dist/PastDue/PastDueModalContents/index.js +0 -30
  203. package/dist/PastDue/index.js +0 -2
  204. package/dist/PastDue/pastDueMessages.js +0 -48
  205. package/dist/PausableImage/BaseImage/index.js +0 -54
  206. package/dist/PausableImage/index.js +0 -37
  207. package/dist/PlanCard/PlanCardBanner.js +0 -28
  208. package/dist/PlanCard/PlanFeature.js +0 -83
  209. package/dist/PlanCard/PopularBadge.js +0 -13
  210. package/dist/PlanCard/PricingAmount.js +0 -117
  211. package/dist/PlanCard/RecommendedBadge.js +0 -24
  212. package/dist/PlanCard/consts.js +0 -135
  213. package/dist/PlanCard/index.js +0 -323
  214. package/dist/PlanCard/types.js +0 -62
  215. package/dist/PlanCardTeams/consts.js +0 -8
  216. package/dist/PlanCardTeams/index.js +0 -167
  217. package/dist/PricingSection/PlanFeature.js +0 -88
  218. package/dist/PricingSection/PricingCard/PricingAmount.js +0 -84
  219. package/dist/PricingSection/PricingCard/RecommendedBadge.js +0 -24
  220. package/dist/PricingSection/PricingCard/consts.js +0 -85
  221. package/dist/PricingSection/PricingCard/index.js +0 -241
  222. package/dist/PricingSection/ProductCTA.js +0 -44
  223. package/dist/PricingSection/Products.js +0 -74
  224. package/dist/PricingSection/config.js +0 -36
  225. package/dist/PricingSection/index.js +0 -58
  226. package/dist/PricingSection/types.js +0 -8
  227. package/dist/ProLabel/index.js +0 -59
  228. package/dist/ProLogo/index.js +0 -27
  229. package/dist/ProLogoAlt/index.js +0 -26
  230. package/dist/ProductFeatureShowcase/index.js +0 -120
  231. package/dist/QuizScore/index.js +0 -84
  232. package/dist/RatingsBar/index.js +0 -32
  233. package/dist/ResourceCard/index.js +0 -59
  234. package/dist/ScoreSummary/SubScores.js +0 -165
  235. package/dist/ScoreSummary/helpers.js +0 -20
  236. package/dist/ScoreSummary/index.js +0 -108
  237. package/dist/ScoreSummary/types.js +0 -1
  238. package/dist/SkillPathCard/index.js +0 -38
  239. package/dist/SocialMediaSharing/SocialShareIconLink.js +0 -49
  240. package/dist/SocialMediaSharing/index.js +0 -116
  241. package/dist/SocialMediaSharingDropdown/index.js +0 -111
  242. package/dist/Testimonial/index.js +0 -163
  243. package/dist/index.js +0 -87
  244. package/dist/lib/breakpointHooks/index.js +0 -60
  245. package/dist/lib/catalogList/index.js +0 -173
  246. package/dist/lib/resourcesList/index.js +0 -241
  247. package/dist/remoteAssets/components.js +0 -1
  248. package/dist/stories/Atoms/Avatar.stories.js +0 -16
  249. package/dist/stories/Atoms/BetaSticker.stories.js +0 -22
  250. package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
  251. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -15
  252. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
  253. package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -16
  254. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
  255. package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
  256. package/dist/stories/Atoms/Subgrid.stories.js +0 -87
  257. package/dist/stories/Molecules/AppBar.stories.js +0 -32
  258. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
  259. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
  260. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -52
  261. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -44
  262. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
  263. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
  264. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
  265. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
  266. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
  267. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
  268. package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
  269. package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
  270. package/dist/stories/Molecules/Banner.stories.js +0 -115
  271. package/dist/stories/Molecules/Carousel.stories.js +0 -47
  272. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -173
  273. package/dist/stories/Molecules/CurriculumCard.stories.js +0 -208
  274. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -92
  275. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -65
  276. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -83
  277. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
  278. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -90
  279. package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
  280. package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
  281. package/dist/stories/Molecules/EmptySection.stories.js +0 -168
  282. package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
  283. package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
  284. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
  285. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
  286. package/dist/stories/Molecules/HubCard.stories.js +0 -28
  287. package/dist/stories/Molecules/InfoCard.stories.js +0 -30
  288. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -59
  289. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
  290. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
  291. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
  292. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
  293. package/dist/stories/Molecules/ListSection.stories.js +0 -97
  294. package/dist/stories/Molecules/Loading.stories.js +0 -10
  295. package/dist/stories/Molecules/NotificationList.stories.js +0 -100
  296. package/dist/stories/Molecules/PageSection.stories.js +0 -67
  297. package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
  298. package/dist/stories/Molecules/PausableImage.stories.js +0 -16
  299. package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
  300. package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
  301. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
  302. package/dist/stories/Molecules/Testimonial.stories.js +0 -63
  303. package/dist/stories/Organisms/GlobalFooter.stories.js +0 -29
  304. package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -136
  305. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -73
  306. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -32
  307. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -108
  308. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -133
  309. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -199
  310. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -31
  311. package/dist/stories/Organisms/GlobalPage.stories.js +0 -142
  312. package/dist/stories/Organisms/LayoutMenu.stories.js +0 -242
  313. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -224
  314. package/dist/stories/Organisms/PageAlerts.example.js +0 -42
  315. package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
  316. package/dist/stories/Organisms/PageFeatures.stories.js +0 -183
  317. package/dist/stories/Organisms/PageHero.stories.js +0 -145
  318. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
  319. package/dist/stories/Organisms/PagePrefooter.stories.js +0 -62
  320. package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -158
  321. package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -70
  322. package/dist/stories/Organisms/PlanCard.stories.js +0 -98
  323. package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
  324. package/dist/stories/Organisms/ScoreSummary.stories.js +0 -299
@@ -1,402 +0,0 @@
1
- import { Shimmer, Text } from '@codecademy/gamut';
2
- import { AccountingCoinsIcon, ArrowThickCircleUpIcon, ArticleIcon, BookFlipPageIcon, BriefcaseIcon, CalendarIcon, ChatIcon, CommunityIcon, EarthIcon, GearIcon, HouseEntranceIcon, MiniArrowRightIcon, NotebookIcon, OfficeBuildingDoubleIcon, OnlineClassStudentIcon, PersonIcon, PersonPonytailIcon, PieLineGraphIcon, SupportIcon } from '@codecademy/gamut-icons';
3
- import { renderNewBadge } from '../lib/resourcesList';
4
- import { formatEnterpriseUrl } from './urlHelpers';
5
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
6
- export const loading = {
7
- id: 'header-loading',
8
- type: 'render-element',
9
- renderElement: () => /*#__PURE__*/_jsxs(_Fragment, {
10
- children: [/*#__PURE__*/_jsx(Shimmer, {
11
- "aria-hidden": true,
12
- height: 36,
13
- width: 128
14
- }), /*#__PURE__*/_jsx(Text, {
15
- screenreader: true,
16
- children: "Loading menu bar"
17
- })]
18
- })
19
- };
20
- export const logo = {
21
- dataTestId: 'header-logo',
22
- id: 'logo',
23
- href: '/',
24
- enterprise: false,
25
- pro: false,
26
- trackingTarget: 'topnav_logo',
27
- type: 'logo'
28
- };
29
- export const enterpriseLogo = (user, removeAnchorLink) => {
30
- return {
31
- dataTestId: 'header-logo',
32
- id: 'logo',
33
- href: formatEnterpriseUrl(user?.enterpriseUrl) ?? 'https://www.skillsoft.com/login-skillsoft',
34
- enterprise: true,
35
- pro: false,
36
- trackingTarget: 'topnav_enterprise_logo',
37
- type: 'logo',
38
- removeAnchorLink
39
- };
40
- };
41
- export const myHome = {
42
- dataTestId: 'header-home',
43
- icon: HouseEntranceIcon,
44
- id: 'my-home',
45
- text: 'My Home',
46
- href: '/learn',
47
- trackingTarget: 'topnav_home',
48
- type: 'link'
49
- };
50
- export const liveLearningHub = {
51
- dataTestId: 'header-live-learning-hub',
52
- icon: OnlineClassStudentIcon,
53
- id: 'live-learning-hub',
54
- text: 'Live Learning',
55
- href: '/live-learning',
56
- trackingTarget: 'topnav_live_learning_hub',
57
- type: 'link',
58
- badge: renderNewBadge(4)
59
- };
60
- export const myPercipioHome = (user, customTitle) => {
61
- return {
62
- dataTestId: 'header-percihome',
63
- icon: HouseEntranceIcon,
64
- id: 'my-home',
65
- text: customTitle || 'Home',
66
- ariaLabel: 'Home, opens in a new tab',
67
- href: formatEnterpriseUrl(user?.enterpriseUrl) ?? 'https://www.skillsoft.com/login-skillsoft',
68
- newTab: true,
69
- trackingTarget: 'topnav_enterprise_home',
70
- type: 'link'
71
- };
72
- };
73
- export const catalogDropdown = hideCareerPaths => ({
74
- dataTestId: 'header-catalog',
75
- icon: BookFlipPageIcon,
76
- id: 'catalog-dropdown',
77
- text: 'Catalog',
78
- trackingTarget: 'topnav_catalog',
79
- type: 'catalog-dropdown',
80
- hideCareerPaths
81
- });
82
- export const resourcesDropdown = () => ({
83
- dataTestId: 'header-resources',
84
- icon: NotebookIcon,
85
- id: 'resources-dropdown',
86
- text: 'Resources',
87
- trackingTarget: 'topnav_resources',
88
- type: 'resources-dropdown'
89
- });
90
- export const simpleResourcesDropdown = {
91
- dataTestId: 'header-resources',
92
- icon: NotebookIcon,
93
- id: 'resources-simple-dropdown',
94
- text: 'Resources',
95
- popover: [{
96
- id: 'articles',
97
- href: '/articles',
98
- trackingTarget: 'topnav_enterprise_articles',
99
- text: 'Articles',
100
- type: 'link'
101
- }, {
102
- id: 'docs',
103
- href: '/resources/docs',
104
- trackingTarget: 'topnav_enterprise_docs',
105
- text: 'Docs',
106
- type: 'link'
107
- }, {
108
- id: 'workspaces',
109
- href: '/users/me/workspaces',
110
- trackingTarget: 'topnav_enterprise_workspaces',
111
- text: 'Workspaces',
112
- type: 'link'
113
- }],
114
- trackingTarget: 'topnav_resources',
115
- type: 'resources-simple-dropdown'
116
- };
117
- export const communityDropdown = () => ({
118
- icon: CommunityIcon,
119
- id: 'community',
120
- text: 'Community',
121
- popover: [{
122
- id: 'visit-community',
123
- href: 'https://community.codecademy.com/c/start-here/',
124
- newTab: true,
125
- trackingTarget: 'topnav_visit_community',
126
- text: 'Visit Community',
127
- type: 'link',
128
- icon: EarthIcon
129
- }, {
130
- id: 'events',
131
- href: '/events',
132
- trackingTarget: 'topnav_community_events',
133
- text: 'Events',
134
- type: 'link',
135
- icon: CalendarIcon
136
- }, {
137
- id: 'learner-stories',
138
- href: '/resources/blog/category/learner-stories/',
139
- trackingTarget: 'topnav_learner_stories_hub',
140
- text: 'Learner Stories',
141
- type: 'link',
142
- icon: ArticleIcon
143
- }, {
144
- id: 'code-crew',
145
- href: 'https://try.codecademy.com/code-crew/',
146
- newTab: true,
147
- trackingTarget: 'topnav_code_crew',
148
- text: 'Code Crew',
149
- type: 'link',
150
- icon: PersonPonytailIcon
151
- }],
152
- trackingTarget: 'topnav_community',
153
- type: 'dropdown'
154
- });
155
- export const pricingDropdown = {
156
- icon: AccountingCoinsIcon,
157
- id: 'pricing',
158
- text: 'Pricing',
159
- popover: [{
160
- id: 'pro-membership',
161
- href: '/pricing',
162
- trackingTarget: 'topnav_pro_membership',
163
- text: 'For Individuals',
164
- type: 'link'
165
- }, {
166
- id: 'for-students',
167
- href: '/student-center',
168
- trackingTarget: 'topnav_pricing_students',
169
- text: 'For Students',
170
- type: 'link'
171
- }, {
172
- id: 'for-teams',
173
- href: '/business#section-pricing-table',
174
- trackingTarget: 'topnav_pricing_business',
175
- text: 'For Business',
176
- type: 'link'
177
- }],
178
- trackingTarget: 'topnav_pricing',
179
- type: 'dropdown'
180
- };
181
- export const upgradePlan = {
182
- icon: ArrowThickCircleUpIcon,
183
- id: 'upgrade-plan',
184
- trackingTarget: 'topnav_upgrade_plan',
185
- text: 'Upgrade',
186
- href: '/pricing',
187
- type: 'link'
188
- };
189
- export const businessSolutions = {
190
- icon: OfficeBuildingDoubleIcon,
191
- id: 'business-solutions',
192
- trackingTarget: 'topnav_business',
193
- text: 'For Business',
194
- href: '/business',
195
- type: 'link'
196
- };
197
- export const careerCenter = {
198
- icon: BriefcaseIcon,
199
- id: 'career-center',
200
- trackingTarget: 'topnav_career_center',
201
- text: 'Career Center',
202
- href: '/career-center',
203
- type: 'link'
204
- };
205
- const profileMyProfile = {
206
- id: 'my-profile',
207
- icon: PersonIcon,
208
- href: '/profiles/me',
209
- trackingTarget: 'avatar_my_profile',
210
- text: 'Profile',
211
- type: 'link'
212
- };
213
- const profileAccount = {
214
- id: 'account',
215
- icon: GearIcon,
216
- href: '/account',
217
- trackingTarget: 'avatar_settings',
218
- text: 'Account + Billing',
219
- type: 'link'
220
- };
221
- const profileMyHome = {
222
- id: 'my-home',
223
- icon: HouseEntranceIcon,
224
- href: '/learn',
225
- trackingTarget: 'avatar_dashboard',
226
- text: 'My Home',
227
- type: 'link'
228
- };
229
- const profileBusinessAccount = {
230
- id: 'business',
231
- icon: PieLineGraphIcon,
232
- href: '/business/plans',
233
- trackingTarget: 'avatar_business',
234
- text: 'Admin Dashboard',
235
- type: 'link'
236
- };
237
- const profileHelpCenter = {
238
- id: 'help-center',
239
- icon: SupportIcon,
240
- href: '/help',
241
- newTab: true,
242
- trackingTarget: 'avatar_help',
243
- text: 'Help Center',
244
- type: 'link'
245
- };
246
- const profileFeedback = {
247
- id: 'give_feedback',
248
- icon: ChatIcon,
249
- href: 'https://a.sprig.com/ZTFvMkttQTI0fnNpZDo4YzNkNDBiYS0zZDBmLTQyZDktOGQ3Yy00YzRhZWUxYzZkOGU=',
250
- newTab: true,
251
- trackingTarget: 'avatar_give_feedback',
252
- text: 'Give Feedback',
253
- type: 'link'
254
- };
255
- const profileAdmin = {
256
- id: 'admin',
257
- dataTestId: 'admin-link',
258
- href: '/admin',
259
- trackingTarget: 'avatar_admin',
260
- text: 'Admin',
261
- type: 'link'
262
- };
263
- const profileCustomerSupport = {
264
- id: 'customer-support',
265
- href: '/admin/concessions',
266
- trackingTarget: 'avatar_customer_support',
267
- text: 'Customer Support',
268
- type: 'link'
269
- };
270
- const profileReportBug = {
271
- id: 'report-bug',
272
- href: 'https://codecademy.atlassian.net/servicedesk/customer/portal/9',
273
- newTab: true,
274
- trackingTarget: 'avatar_report_bug',
275
- text: 'Report a Bug [ADMIN]',
276
- type: 'link'
277
- };
278
- const profileLogOut = {
279
- id: 'log-out',
280
- href: '/sign_out',
281
- trackingTarget: 'avatar_log_out',
282
- text: 'Log Out',
283
- type: 'link'
284
- };
285
- export const freeProfile = (user, isMobile) => {
286
- const topSection = [profileMyProfile];
287
- if (user?.isBusinessAdmin || !user?.isBusinessSsoUser) {
288
- topSection.push(profileAccount);
289
- }
290
- topSection.push(profileMyHome);
291
- if (!isMobile && user?.isAccountManager && !user?.hideBusinessAccount) {
292
- topSection.push(profileBusinessAccount);
293
- }
294
- topSection.push(profileHelpCenter);
295
- topSection.push(profileFeedback);
296
- const bottomSection = [profileLogOut];
297
- const popover = [topSection, bottomSection];
298
- return {
299
- avatar: user.avatar,
300
- userDisplayName: user.displayName,
301
- id: 'profile',
302
- text: 'Profile',
303
- popover,
304
- trackingTarget: 'topnav_profile',
305
- type: 'profile-dropdown'
306
- };
307
- };
308
- export const proProfile = user => {
309
- const topSection = [profileMyProfile];
310
- if (user.isBusinessAdmin || !user.isBusinessSsoUser) {
311
- topSection.push(profileAccount);
312
- }
313
- topSection.push(profileMyHome);
314
- topSection.push(profileHelpCenter);
315
- topSection.push(profileFeedback);
316
- const teamsAdminSection = [];
317
- if ((user?.isAccountManager || user?.isBusinessAdmin) && !user?.hideBusinessAccount) {
318
- teamsAdminSection.push(profileBusinessAccount);
319
- }
320
- const middleSection = [];
321
- if (user.isAdmin) {
322
- middleSection.push(profileAdmin);
323
- }
324
- if (user.isCustomerSupport) {
325
- middleSection.push(profileCustomerSupport);
326
- }
327
- if (user.isAdmin) {
328
- middleSection.push(profileReportBug);
329
- }
330
- const bottomSection = [profileLogOut];
331
- const popover = [topSection, teamsAdminSection, middleSection, bottomSection];
332
- return {
333
- avatar: user.avatar,
334
- userDisplayName: user.displayName,
335
- id: 'profile',
336
- text: 'Profile',
337
- popover,
338
- trackingTarget: 'topnav_profile',
339
- type: 'profile-dropdown'
340
- };
341
- };
342
- export const addPayment = {
343
- dataTestId: 'add-payment-link',
344
- id: 'add-payment',
345
- text: 'Add payment',
346
- href: '/business/checkout?plan_type=upgrade',
347
- trackingTarget: 'topnav_add_payment',
348
- type: 'fill-button'
349
- };
350
- export const tryProForFree = checkoutUrl => ({
351
- dataTestId: 'upgrade-link',
352
- id: 'try-pro',
353
- text: 'Start free trial',
354
- href: checkoutUrl || '/pages/pro',
355
- trackingTarget: 'topnav_pro_trial',
356
- type: 'fill-button'
357
- });
358
- export const upgradeToPro = checkoutUrl => ({
359
- dataTestId: 'upgrade-link',
360
- id: 'upgrade-to-pro',
361
- text: 'Upgrade plan',
362
- href: checkoutUrl || '/pages/pro',
363
- trackingTarget: 'topnav_pro_upgrade',
364
- type: 'fill-button'
365
- });
366
- export const unpausePro = {
367
- dataTestId: 'unpause-link',
368
- id: 'unpause-pro',
369
- text: 'Unpause Now',
370
- href: '/account/billing',
371
- trackingTarget: 'topnav_pro_unpause',
372
- type: 'fill-button'
373
- };
374
- export const login = {
375
- dataTestId: 'header-sign-in',
376
- id: 'login',
377
- text: 'Log In',
378
- href: '/login',
379
- trackingTarget: 'topnav_login',
380
- type: 'text-button',
381
- redirect: true
382
- };
383
- export const signUp = {
384
- dataTestId: 'header-sign-up',
385
- id: 'signup',
386
- text: 'Sign Up',
387
- href: '/register',
388
- trackingTarget: 'topnav_signup',
389
- type: 'fill-button',
390
- redirect: true
391
- };
392
- export const bootcampCta = bootcampSlug => ({
393
- dataTestId: 'bootcamp-header-cta',
394
- id: 'bootcamp-header-cta',
395
- text: 'Register Now',
396
- href: `/pay/bootcamp/${bootcampSlug}`,
397
- trackingTarget: 'topnav_bootcamp_cta',
398
- type: 'fill-button',
399
- variant: 'secondary',
400
- icon: MiniArrowRightIcon,
401
- iconPosition: 'right'
402
- });
@@ -1,211 +0,0 @@
1
- import { addPayment, bootcampCta, businessSolutions, careerCenter, catalogDropdown, communityDropdown, enterpriseLogo, freeProfile, liveLearningHub, loading, login, logo, myHome, myPercipioHome, pricingDropdown, proProfile, resourcesDropdown, signUp, simpleResourcesDropdown, tryProForFree, unpausePro, upgradePlan, upgradeToPro } from './GlobalHeaderItems';
2
- const transformSimpleResourcesDropdownlabels = resourcesLabel => ({
3
- ...simpleResourcesDropdown,
4
- text: resourcesLabel?.title || simpleResourcesDropdown.text,
5
- popover: simpleResourcesDropdown.popover.map(item => ({
6
- ...item,
7
- text: resourcesLabel?.[item.id] || item.text
8
- }))
9
- });
10
- const anonHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
11
- const specialLogo = {
12
- ...logo,
13
- checkMini: true
14
- };
15
- const leftItems = [specialLogo, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
16
- const rightItems = [];
17
- if (renderLogin) {
18
- rightItems.push(login);
19
- }
20
- if (renderSignUp) {
21
- rightItems.push(signUp);
22
- }
23
- return {
24
- left: leftItems,
25
- right: rightItems
26
- };
27
- };
28
- const anonMobileHeaderItems = (renderLogin, renderSignUp, hidePricing, user, isLiveLearningHubEnabled) => {
29
- const specialLogo = {
30
- ...logo,
31
- checkMini: true
32
- };
33
- const leftItems = [specialLogo];
34
- const rightItems = [];
35
- if (renderLogin) {
36
- rightItems.push(login);
37
- }
38
- if (renderSignUp) {
39
- rightItems.push(signUp);
40
- }
41
- const mainMenuItems = [catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
42
- return {
43
- left: leftItems,
44
- right: rightItems,
45
- mainMenu: mainMenuItems
46
- };
47
- };
48
- export const anonDefaultHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
49
- return anonHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
50
- };
51
- export const anonDefaultMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
52
- return anonMobileHeaderItems(true, true, hidePricing, user, isLiveLearningHubEnabled);
53
- };
54
- export const anonLandingHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
55
- return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
56
- };
57
- export const anonLandingMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
58
- return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
59
- };
60
- export const anonLoginHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
61
- return anonHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
62
- };
63
- export const anonLoginMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
64
- return anonMobileHeaderItems(false, true, hidePricing, user, isLiveLearningHubEnabled);
65
- };
66
- export const anonSignupHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
67
- return anonHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
68
- };
69
- export const anonSignupMobileHeaderItems = (hidePricing, user, isLiveLearningHubEnabled) => {
70
- return anonMobileHeaderItems(true, false, hidePricing, user, isLiveLearningHubEnabled);
71
- };
72
- export const freeHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
73
- const specialLogo = {
74
- ...logo,
75
- checkMini: true
76
- };
77
- const leftItems = [specialLogo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
78
- const upgradeButton = upgradeToPro(user.proCheckoutUrl);
79
- const rightItems = [];
80
- rightItems.push(freeProfile(user));
81
- rightItems.push(user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl));
82
- return {
83
- left: leftItems,
84
- right: rightItems
85
- };
86
- };
87
- export const freeMobileHeaderItems = (user, hidePricing, isLiveLearningHubEnabled) => {
88
- const specialLogo = {
89
- ...logo,
90
- checkMini: true
91
- };
92
- const leftItems = [specialLogo];
93
- const rightItems = [];
94
- const upgradeButton = upgradeToPro(user.proCheckoutUrl);
95
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions, freeProfile(user, true), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
96
- return {
97
- left: leftItems,
98
- right: rightItems,
99
- mainMenu: mainMenuItems
100
- };
101
- };
102
- export const enterpriseHeaderItems = (user, props) => {
103
- const {
104
- hideHeaderLinksInChromeless,
105
- hideHeaderResourcesDropdown,
106
- localizedLabels
107
- } = props;
108
- const leftItems = hideHeaderLinksInChromeless ? [enterpriseLogo(user, true)] : [enterpriseLogo(user, true), myPercipioHome(user, localizedLabels?.enterpriseFormattedHomeLabel)];
109
- if (!hideHeaderResourcesDropdown) leftItems.push(transformSimpleResourcesDropdownlabels(localizedLabels?.resourcesDropdown));
110
- return {
111
- left: leftItems,
112
- right: []
113
- };
114
- };
115
- export const proHeaderItems = (user, isLiveLearningHubEnabled) => {
116
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions];
117
- const rightItems = [];
118
- rightItems.push(proProfile(user));
119
- if (user.isPaused) {
120
- rightItems.push(unpausePro);
121
- }
122
- return {
123
- left: leftItems,
124
- right: rightItems
125
- };
126
- };
127
- export const teamsHeaderItems = (user, isLiveLearningHubEnabled) => {
128
- const leftItems = [logo, myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), isLiveLearningHubEnabled ? liveLearningHub : careerCenter];
129
- const rightItems = [];
130
- if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
131
- rightItems.push(addPayment);
132
- }
133
- rightItems.push(proProfile(user));
134
- return {
135
- left: leftItems,
136
- right: rightItems
137
- };
138
- };
139
- export const enterpriseMobileHeaderItems = (user, props) => {
140
- const {
141
- hideHeaderLinksInChromeless,
142
- hideHeaderResourcesDropdown,
143
- localizedLabels
144
- } = props;
145
- const leftItems = [enterpriseLogo(user, true)];
146
- const rightItems = [];
147
- const mainMenuItems = hideHeaderLinksInChromeless ? [] : [myPercipioHome(user, localizedLabels?.enterpriseFormattedHomeLabel)];
148
- if (!hideHeaderResourcesDropdown) mainMenuItems.push(transformSimpleResourcesDropdownlabels(localizedLabels?.resourcesDropdown));
149
- return {
150
- left: leftItems,
151
- right: rightItems,
152
- mainMenu: mainMenuItems
153
- };
154
- };
155
- export const proMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
156
- const leftItems = [logo];
157
- const rightItems = [];
158
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(user.isPlusUser ? [upgradePlan] : []), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, businessSolutions, proProfile(user)];
159
- if (user.isPaused) {
160
- mainMenuItems.push(unpausePro);
161
- }
162
- return {
163
- left: leftItems,
164
- right: rightItems,
165
- mainMenu: mainMenuItems
166
- };
167
- };
168
- export const teamsMobileHeaderItems = (user, isLiveLearningHubEnabled) => {
169
- const leftItems = [logo];
170
- const rightItems = [];
171
- const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), isLiveLearningHubEnabled ? liveLearningHub : careerCenter, proProfile(user)];
172
- if (user.isAccountManager && user.inBusinessTrial && !user.hasBusinessSubscription) {
173
- mainMenuItems.push(addPayment);
174
- }
175
- return {
176
- left: leftItems,
177
- right: rightItems,
178
- mainMenu: mainMenuItems
179
- };
180
- };
181
- export const loadingHeaderItems = {
182
- left: [loading],
183
- right: []
184
- };
185
- export const loadingMobileHeaderItems = {
186
- left: [loading],
187
- right: [],
188
- mainMenu: []
189
- };
190
- export const simpleHeaderItems = {
191
- left: [logo],
192
- right: []
193
- };
194
- export const simpleMobileHeaderItems = {
195
- left: [logo],
196
- right: [],
197
- mainMenu: []
198
- };
199
- export const simpleBootcampHeaderItems = bootcampSlug => {
200
- return {
201
- left: [logo],
202
- right: [bootcampCta(bootcampSlug)]
203
- };
204
- };
205
- export const simpleBootcampMobileHeaderItems = bootcampSlug => {
206
- return {
207
- left: [logo],
208
- right: [bootcampCta(bootcampSlug)],
209
- mainMenu: []
210
- };
211
- };