@codecademy/brand 2.0.0-alpha.cf2cad7fcf.0 → 2.0.0-alpha.cfad6d7beb.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.
- package/README.md +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +7 -8
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +9 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -4
- package/dist/AppHeader/Search/consts.js +1 -1
- package/dist/AppHeader/index.js +2 -5
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +5 -7
- package/dist/FeatureList/index.js +5 -4
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +6 -9
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
- package/dist/GlobalFooter/index.js +17 -25
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
- package/dist/GlobalHeader/index.js +46 -49
- package/dist/LandingPage/PageFeaturesEnhanced.js +3 -0
- package/dist/LayoutMenu/LayoutMenu.js +3 -4
- package/dist/LayoutMenuVariant/LayoutMenu.js +3 -4
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
- package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
- package/dist/LearningOutcomeCard/index.js +187 -127
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js +23 -0
- package/dist/LearningOutcomeFlyout/index.js +181 -0
- package/dist/LearningOutcomeTile/index.js +2 -4
- package/dist/Logo/CodecademyLogo.js +19 -0
- package/dist/Logo/CodecademyPremiumLogo.js +35 -0
- package/dist/Logo/CodecademyProAltLogo.js +19 -0
- package/dist/Logo/CodecademyProLockupLogo.js +13 -0
- package/dist/{Logos/LogoCodecademyPro/index.js → Logo/CodecademyProLogo.js} +7 -11
- package/dist/{Logos/LogoCodecademy/index.js → Logo/CodecademyProMonoLogo.js} +15 -15
- package/dist/Logo/CodecademyProgramLogo.js +14 -0
- package/dist/{Logos/LogoCodecademyTeams/index.js → Logo/CodecademyTeamsLogo.js} +4 -9
- package/dist/Logo/index.js +30 -0
- package/dist/LogoFromSkillsoft/index.js +55 -0
- package/dist/LogoLXStudio/index.js +47 -0
- package/dist/{Logos/ProLabel/ProLabelCutout → LogoProCutout}/index.js +1 -1
- package/dist/{Logos/ProLabel/ProLabelCutoutTransparent → LogoProCutoutTransparent}/index.js +1 -1
- package/dist/PlanCard/index.js +75 -28
- package/dist/ProLabel/index.js +59 -0
- package/dist/{Logos/ProLabel → ProLogo}/index.js +5 -5
- package/dist/index.js +7 -1
- package/dist/lib/catalogList/index.js +3 -3
- package/dist/lib/resourcesList/index.js +2 -11
- package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +8 -2
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +1 -1
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +11 -10
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
- package/dist/stories/Molecules/AppBar.stories.js +2 -2
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +169 -39
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +44 -0
- package/package.json +2 -2
- package/dist/AbbreviatedCommunityEventCard/index.d.ts +0 -8
- package/dist/AppBar/AppBarSection.d.ts +0 -10
- package/dist/AppBar/index.d.ts +0 -9
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +0 -14
- package/dist/AppBarDeprecated/index.d.ts +0 -14
- package/dist/AppBarDeprecated/styles/index.module.scss +0 -39
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +0 -7
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -92
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +0 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +0 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +0 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +0 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +0 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +0 -12
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +0 -48
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +0 -15
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +0 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +0 -6
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +0 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +0 -18
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +0 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +0 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +0 -10
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +0 -7
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +0 -13
- package/dist/AppHeader/Search/DefaultResults.d.ts +0 -10
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +0 -7
- package/dist/AppHeader/Search/SearchButton.d.ts +0 -2
- package/dist/AppHeader/Search/SearchPane.d.ts +0 -6
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +0 -18
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +0 -5
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +0 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +0 -37
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +0 -2
- package/dist/AppHeader/Search/consts.d.ts +0 -23
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +0 -5
- package/dist/AppHeader/Search/safelyRedirect.d.ts +0 -5
- package/dist/AppHeader/Search/types.d.ts +0 -23
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +0 -6
- package/dist/AppHeader/index.d.ts +0 -24
- package/dist/AppHeader/shared/elements.d.ts +0 -84
- package/dist/AppHeader/shared/index.d.ts +0 -4
- package/dist/AppHeader/shared/keyboardNav.d.ts +0 -23
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +0 -2
- package/dist/AppHeader/shared/testTypes.d.ts +0 -0
- package/dist/AppHeader/shared/types.d.ts +0 -107
- package/dist/AppHeader/shared/utils.d.ts +0 -17
- package/dist/AppHeader/utils/types.d.ts +0 -8
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +0 -5
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +0 -9
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +0 -13
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +0 -9
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +0 -7
- package/dist/AppHeaderMobile/index.d.ts +0 -20
- package/dist/Avatar/Avatar.stories.d.ts +0 -6
- package/dist/Avatar/index.d.ts +0 -36
- package/dist/AvatarChooser/index.d.ts +0 -12
- package/dist/BackToTopAnchor/index.d.ts +0 -13
- package/dist/Banner/index.d.ts +0 -21
- package/dist/BetaSticker/index.d.ts +0 -6
- package/dist/CareerPathCard/index.d.ts +0 -19
- package/dist/Carousel/elements.d.ts +0 -27
- package/dist/Carousel/index.d.ts +0 -24
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +0 -2
- package/dist/CertificationPathCard/index.d.ts +0 -20
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +0 -11
- package/dist/CommunityEventCard/index.d.ts +0 -28
- package/dist/CommunityEventToast/index.d.ts +0 -6
- package/dist/ContentGroupBaseCard/helpers.d.ts +0 -4
- package/dist/ContentGroupBaseCard/index.d.ts +0 -31
- package/dist/ContentGroupBaseCard/shared.d.ts +0 -8
- package/dist/ContentGroupBaseCard/types.d.ts +0 -10
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +0 -3
- package/dist/CourseCard/index.d.ts +0 -20
- package/dist/CurriculumCard/BottomTag/index.d.ts +0 -7
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +0 -8
- package/dist/CurriculumCard/Difficulty/index.d.ts +0 -3
- package/dist/CurriculumCard/Difficulty/types.d.ts +0 -22
- package/dist/CurriculumCard/Footer/index.d.ts +0 -10
- package/dist/CurriculumCard/Image/index.d.ts +0 -9
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +0 -1
- package/dist/CurriculumCard/Subtitle/index.d.ts +0 -8
- package/dist/CurriculumCard/index.d.ts +0 -59
- package/dist/DropdownButton/DropdownList.d.ts +0 -17
- package/dist/DropdownButton/index.d.ts +0 -76
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +0 -14
- package/dist/EditorialImage/index.d.ts +0 -10
- package/dist/EditorialImage/styles.module.scss +0 -36
- package/dist/EmptySection/index.d.ts +0 -28
- package/dist/ErrorContents/index.d.ts +0 -8
- package/dist/FeatureList/index.d.ts +0 -11
- package/dist/GlobalFooter/FooterHeading.d.ts +0 -9
- package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +0 -6
- package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +0 -5
- package/dist/GlobalFooter/FooterLegal/index.d.ts +0 -7
- package/dist/GlobalFooter/FooterLinks.d.ts +0 -18
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +0 -7
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +0 -12
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +0 -7
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +0 -2
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +0 -4
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +0 -3
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +0 -4
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +0 -2
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +0 -45
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
- package/dist/GlobalFooter/FooterNavLinks/index.d.ts +0 -4
- package/dist/GlobalFooter/FooterSubHeading.d.ts +0 -9
- package/dist/GlobalFooter/index.d.ts +0 -24
- package/dist/GlobalFooter/types.d.ts +0 -13
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -25
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +0 -28
- package/dist/GlobalHeader/index.d.ts +0 -10
- package/dist/GlobalHeader/types.d.ts +0 -90
- package/dist/GlobalHeader/urlHelpers.d.ts +0 -2
- package/dist/GlobalPage/index.d.ts +0 -34
- package/dist/Grid/GridCollapse.d.ts +0 -41
- package/dist/Grid/Subgrid.d.ts +0 -23
- package/dist/Grid/getCSSFromColumnCount.d.ts +0 -6
- package/dist/Grid/index.d.ts +0 -3
- package/dist/HeaderHeightArea/index.d.ts +0 -9
- package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +0 -1
- package/dist/HorizontalScrollMenu/index.d.ts +0 -7
- package/dist/HubCard/index.d.ts +0 -8
- package/dist/InfoCard/index.d.ts +0 -19
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +0 -5
- package/dist/Konamimojisplosion/index.d.ts +0 -2
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +0 -1
- package/dist/LandingPage/CTA.d.ts +0 -9
- package/dist/LandingPage/Description.d.ts +0 -6
- package/dist/LandingPage/Feature.d.ts +0 -32
- package/dist/LandingPage/PageFAQs.d.ts +0 -10
- package/dist/LandingPage/PageFeatures.d.ts +0 -16
- package/dist/LandingPage/PageFeaturesEnhanced.d.ts +0 -7
- package/dist/LandingPage/PageFeaturesWithReferences.d.ts +0 -19
- package/dist/LandingPage/PageHero.d.ts +0 -7
- package/dist/LandingPage/PagePrefooter.d.ts +0 -5
- package/dist/LandingPage/PageSingleFeature.d.ts +0 -56
- package/dist/LandingPage/PageTestimonials.d.ts +0 -21
- package/dist/LandingPage/PageVideoGallery.d.ts +0 -11
- package/dist/LandingPage/Title.d.ts +0 -23
- package/dist/LandingPage/TitleWithEyebrow.d.ts +0 -11
- package/dist/LandingPage/index.d.ts +0 -14
- package/dist/LandingPage/types.d.ts +0 -28
- package/dist/LayoutMenu/AccordionMenu.d.ts +0 -25
- package/dist/LayoutMenu/LayoutMenu.d.ts +0 -43
- package/dist/LayoutMenu/LayoutMenuSection.d.ts +0 -16
- package/dist/LayoutMenu/SectionItemLink.d.ts +0 -7
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +0 -3
- package/dist/LayoutMenu/index.d.ts +0 -3
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +0 -21
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +0 -39
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +0 -10
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +0 -8
- package/dist/LayoutMenuVariant/index.d.ts +0 -2
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +0 -18
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +0 -10
- package/dist/LearningOutcomeBadges/index.d.ts +0 -2
- package/dist/LearningOutcomeCard/index.d.ts +0 -24
- package/dist/LearningOutcomePopover/index.d.ts +0 -10
- package/dist/LearningOutcomeTile/Tile.d.ts +0 -7
- package/dist/LearningOutcomeTile/index.d.ts +0 -2
- package/dist/LearningOutcomeTile/types.d.ts +0 -48
- package/dist/ListSection/index.d.ts +0 -21
- package/dist/Loading/index.d.ts +0 -5
- package/dist/Loading/styles.module.scss +0 -131
- package/dist/LoadingCurriculumCard/index.d.ts +0 -7
- package/dist/Logos/LogoCodecademy/index.d.ts +0 -2
- package/dist/Logos/LogoCodecademyMini/index.d.ts +0 -2
- package/dist/Logos/LogoCodecademyMini/index.js +0 -18
- package/dist/Logos/LogoCodecademyPro/index.d.ts +0 -2
- package/dist/Logos/LogoCodecademyTeams/index.d.ts +0 -2
- package/dist/Logos/LogoFromSkillsoft/index.d.ts +0 -3
- package/dist/Logos/LogoFromSkillsoft/index.js +0 -47
- package/dist/Logos/LogoLXStudio/index.d.ts +0 -3
- package/dist/Logos/LogoLXStudio/index.js +0 -40
- package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +0 -8
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +0 -7
- package/dist/Logos/ProLabel/index.d.ts +0 -15
- package/dist/Logos/index.d.ts +0 -7
- package/dist/Logos/index.js +0 -7
- package/dist/Logos/shared.d.ts +0 -636
- package/dist/Logos/shared.js +0 -16
- package/dist/MarketingToaster/index.d.ts +0 -8
- package/dist/NotFoundContent/404.svg +0 -1
- package/dist/NotFoundContent/index.d.ts +0 -8
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +0 -7
- package/dist/NotificationList/EmptyNotification/index.d.ts +0 -1
- package/dist/NotificationList/NotificationItem.d.ts +0 -8
- package/dist/NotificationList/index.d.ts +0 -9
- package/dist/NotificationList/typings.d.ts +0 -16
- package/dist/Notifications/NotificationBell.d.ts +0 -10
- package/dist/Notifications/NotificationsContents.d.ts +0 -3
- package/dist/Notifications/NotificationsDropdown.d.ts +0 -2
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +0 -2
- package/dist/Notifications/__fixtures__/stubs.d.ts +0 -2
- package/dist/Notifications/constants.d.ts +0 -4
- package/dist/Notifications/elements.d.ts +0 -12
- package/dist/Notifications/types.d.ts +0 -24
- package/dist/Notifications/useHeaderNotifications.d.ts +0 -10
- package/dist/Notifications/useNotificationButtons.d.ts +0 -9
- package/dist/PageAlerts/PageAlerts.d.ts +0 -10
- package/dist/PageAlerts/PageAlertsProvider.d.ts +0 -11
- package/dist/PageAlerts/index.d.ts +0 -3
- package/dist/PageAlerts/types.d.ts +0 -17
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +0 -19
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +0 -1
- package/dist/PageSection/index.d.ts +0 -17
- package/dist/PastDue/PastDueModalContents/index.d.ts +0 -8
- package/dist/PastDue/index.d.ts +0 -2
- package/dist/PastDue/pastDueMessages.d.ts +0 -6
- package/dist/PausableImage/BaseImage/index.d.ts +0 -15
- package/dist/PausableImage/index.d.ts +0 -11
- package/dist/PlanCard/PlanCardBanner.d.ts +0 -7
- package/dist/PlanCard/PlanFeature.d.ts +0 -9
- package/dist/PlanCard/PopularBadge.d.ts +0 -3
- package/dist/PlanCard/PricingAmount.d.ts +0 -14
- package/dist/PlanCard/RecommendedBadge.d.ts +0 -3
- package/dist/PlanCard/consts.d.ts +0 -14
- package/dist/PlanCard/index.d.ts +0 -18
- package/dist/PlanCard/types.d.ts +0 -39
- package/dist/PlanCardTeams/consts.d.ts +0 -9
- package/dist/PlanCardTeams/index.d.ts +0 -8
- package/dist/PricingSection/PlanFeature.d.ts +0 -10
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +0 -10
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +0 -3
- package/dist/PricingSection/PricingCard/consts.d.ts +0 -14
- package/dist/PricingSection/PricingCard/index.d.ts +0 -12
- package/dist/PricingSection/ProductCTA.d.ts +0 -6
- package/dist/PricingSection/Products.d.ts +0 -11
- package/dist/PricingSection/config.d.ts +0 -8
- package/dist/PricingSection/index.d.ts +0 -13
- package/dist/PricingSection/types.d.ts +0 -30
- package/dist/ProLogoAlt/index.d.ts +0 -9
- package/dist/ProductFeatureShowcase/index.d.ts +0 -16
- package/dist/QuizScore/index.d.ts +0 -12
- package/dist/RatingsBar/index.d.ts +0 -12
- package/dist/ResourceCard/index.d.ts +0 -15
- package/dist/ScoreSummary/SubScores.d.ts +0 -28
- package/dist/ScoreSummary/helpers.d.ts +0 -11
- package/dist/ScoreSummary/index.d.ts +0 -21
- package/dist/ScoreSummary/types.d.ts +0 -310
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +0 -2
- package/dist/SkillPathCard/index.d.ts +0 -17
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +0 -13
- package/dist/SocialMediaSharing/index.d.ts +0 -49
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +0 -1
- package/dist/SocialMediaSharingDropdown/index.d.ts +0 -15
- package/dist/Testimonial/index.d.ts +0 -45
- package/dist/assets/darkQuotes.svg +0 -1
- package/dist/assets/dots.svg +0 -1
- package/dist/assets/lightQuotes.svg +0 -1
- package/dist/assets/navyQuotes.svg +0 -5
- package/dist/assets/orange_squiggle.svg +0 -1
- package/dist/index.d.ts +0 -84
- package/dist/lib/breakpointHooks/index.d.ts +0 -43
- package/dist/lib/catalogList/index.d.ts +0 -5
- package/dist/lib/resourcesList/index.d.ts +0 -5
- package/dist/png.d.ts +0 -4
- package/dist/react-freezeframe.d.ts +0 -1
- package/dist/remoteAssets/components.d.ts +0 -1
- package/dist/stories/Atoms/Avatar.stories.d.ts +0 -6
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +0 -7
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +0 -7
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +0 -6
- package/dist/stories/Atoms/Subgrid.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppBar.stories.d.ts +0 -15
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +0 -7
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +0 -7
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +0 -5
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +0 -7
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +0 -10
- package/dist/stories/Molecules/Banner.stories.d.ts +0 -16
- package/dist/stories/Molecules/Carousel.stories.d.ts +0 -7
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +0 -13
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +0 -16
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +0 -10
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +0 -9
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +0 -10
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +0 -6
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +0 -9
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +0 -11
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +0 -6
- package/dist/stories/Molecules/EmptySection.stories.d.ts +0 -13
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +0 -7
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +0 -6
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +0 -1
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +0 -6
- package/dist/stories/Molecules/HubCard.stories.d.ts +0 -7
- package/dist/stories/Molecules/InfoCard.stories.d.ts +0 -7
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +0 -9
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +0 -6
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +0 -6
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +0 -5
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +0 -10
- package/dist/stories/Molecules/ListSection.stories.d.ts +0 -9
- package/dist/stories/Molecules/Loading.stories.d.ts +0 -6
- package/dist/stories/Molecules/NotificationList.stories.d.ts +0 -7
- package/dist/stories/Molecules/PageSection.stories.d.ts +0 -8
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +0 -10
- package/dist/stories/Molecules/PausableImage.stories.d.ts +0 -6
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +0 -6
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +0 -6
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +0 -6
- package/dist/stories/Molecules/Testimonial.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +0 -9
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +0 -6
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +0 -6
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +0 -9
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +0 -10
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +0 -9
- package/dist/stories/Organisms/PageAlerts.example.d.ts +0 -2
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +0 -7
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +0 -14
- package/dist/stories/Organisms/PageHero.stories.d.ts +0 -17
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +0 -7
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +0 -10
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +0 -18
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +0 -10
- package/dist/stories/Organisms/PlanCard.stories.d.ts +0 -9
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +0 -7
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +0 -12
- package/dist/svg.d.ts +0 -8
- package/dist/theme.d.ts +0 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ We recommend reading the [Browse Stories](https://storybook.js.org/docs/react/ge
|
|
|
24
24
|
|
|
25
25
|
## Writing stories
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
You can find more information about how to write stories [here](https://storybook.js.org/docs/react/writing-stories/introduction).
|
|
28
28
|
|
|
29
29
|
Eventually our stories will be colocated with their respective components, but in the meantime you can find them in the `./stories` folder.
|
|
30
30
|
|
|
@@ -4,7 +4,7 @@ import { TinyBlocks } from '@codecademy/gamut-illustrations';
|
|
|
4
4
|
import { Background } from '@codecademy/gamut-styles';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useContext, useEffect, useRef } from 'react';
|
|
7
|
-
import { HeaderQuizContext
|
|
7
|
+
import { HeaderQuizContext } from '../../../GlobalHeader';
|
|
8
8
|
import { careerPaths, getTopSubjects, liveLearningHubItems, topLanguages } from '../../../lib/catalogList';
|
|
9
9
|
import { DescriptionSectionContainer, LayoutGridAntiAliased, useMegaMenuHeaderResponsiveStyles } from '../../shared';
|
|
10
10
|
import { useAppHeaderDropdownContext } from '../AppHeaderDropdownProvider';
|
|
@@ -31,12 +31,12 @@ const catalogButtonData = {
|
|
|
31
31
|
href: '/catalog',
|
|
32
32
|
trackingTarget: 'topnav_catalog_explore_full'
|
|
33
33
|
};
|
|
34
|
-
const
|
|
35
|
-
text: '
|
|
34
|
+
const uxDesignerCareerPathHighlight = {
|
|
35
|
+
text: 'Want to help shape digital products? Check out the new UX Designer career path.',
|
|
36
36
|
id: 'nav-highlight',
|
|
37
37
|
type: 'link',
|
|
38
|
-
href: '/
|
|
39
|
-
trackingTarget: '
|
|
38
|
+
href: '/learn/paths/ux-designer-career-path',
|
|
39
|
+
trackingTarget: 'topnav_catalog_banner_ux_designer_career_path'
|
|
40
40
|
};
|
|
41
41
|
export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
42
42
|
action,
|
|
@@ -53,7 +53,6 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
|
53
53
|
showOnboardingQuiz,
|
|
54
54
|
showSortingQuiz
|
|
55
55
|
} = useContext(HeaderQuizContext);
|
|
56
|
-
const isLiveLearningHubEnabled = useContext(LiveLearningHubContext);
|
|
57
56
|
const tabIndex = isOpen === false ? -1 : 0;
|
|
58
57
|
const styles = useMegaMenuHeaderResponsiveStyles();
|
|
59
58
|
const bannerStyles = useBannerResponsiveStyles();
|
|
@@ -63,7 +62,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
|
63
62
|
setFirstItemRef(firstElemRef.current);
|
|
64
63
|
}
|
|
65
64
|
}, [setFirstItemRef, firstElemRef]);
|
|
66
|
-
const navHighlightData =
|
|
65
|
+
const navHighlightData = uxDesignerCareerPathHighlight;
|
|
67
66
|
const topSubjects = getTopSubjects();
|
|
68
67
|
const onClick = (event, linkItem) => {
|
|
69
68
|
handleClose?.();
|
|
@@ -289,7 +288,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef(({
|
|
|
289
288
|
})
|
|
290
289
|
})]
|
|
291
290
|
})
|
|
292
|
-
}, "Top career paths"),
|
|
291
|
+
}, "Top career paths"), /*#__PURE__*/_jsx(StyledColumn, {
|
|
293
292
|
as: "li",
|
|
294
293
|
size: 12,
|
|
295
294
|
children: /*#__PURE__*/_jsxs(LayoutGrid, {
|
|
File without changes
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { Anchor } from '@codecademy/gamut';
|
|
1
|
+
import { Anchor, Logo } from '@codecademy/gamut';
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import { LogoCodecademy, LogoCodecademyMini, LogoCodecademyPro, LogoFromSkillsoft } from '../../../Logos';
|
|
4
3
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
-
const
|
|
6
|
-
if (item.checkMini && showMini) return
|
|
7
|
-
if (item.enterprise) return
|
|
8
|
-
return item.pro ?
|
|
4
|
+
const getLogoVariant = (item, showMini) => {
|
|
5
|
+
if (item.checkMini && showMini) return 'mini';
|
|
6
|
+
if (item.enterprise) return 'enterprise';
|
|
7
|
+
return item.pro ? 'pro' : 'default';
|
|
9
8
|
};
|
|
10
9
|
export const AppHeaderLogo = ({
|
|
11
10
|
action,
|
|
@@ -29,11 +28,11 @@ export const AppHeaderLogo = ({
|
|
|
29
28
|
// Remove event listener on cleanup
|
|
30
29
|
return () => window.removeEventListener('resize', handleResize);
|
|
31
30
|
}, [item.checkMini, showMini]);
|
|
32
|
-
const LogoComponent = getLogoComponent(item, showMini);
|
|
33
31
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
34
|
-
children: item.removeAnchorLink ? /*#__PURE__*/_jsx(
|
|
32
|
+
children: item.removeAnchorLink ? /*#__PURE__*/_jsx(Logo, {
|
|
35
33
|
color: "text",
|
|
36
34
|
"data-testid": item.dataTestId,
|
|
35
|
+
variant: getLogoVariant(item, showMini),
|
|
37
36
|
height: item.enterprise ? 36 : 27,
|
|
38
37
|
verticalAlign: "text-bottom",
|
|
39
38
|
role: "img",
|
|
@@ -47,8 +46,9 @@ export const AppHeaderLogo = ({
|
|
|
47
46
|
onClick: event => action(event, item),
|
|
48
47
|
href: item.href,
|
|
49
48
|
tabIndex: 0,
|
|
50
|
-
children: /*#__PURE__*/_jsx(
|
|
49
|
+
children: /*#__PURE__*/_jsx(Logo, {
|
|
51
50
|
color: "currentColor",
|
|
51
|
+
variant: getLogoVariant(item, showMini),
|
|
52
52
|
height: item.enterprise ? 36 : 27,
|
|
53
53
|
verticalAlign: "text-bottom"
|
|
54
54
|
})
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { useCallback,
|
|
1
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { LiveLearningHubContext } from '../../../GlobalHeader';
|
|
4
3
|
import { getHeaderResourcesList } from '../../../lib/resourcesList';
|
|
5
4
|
import { AnimatedMegaMenuDropdown } from '../../shared';
|
|
6
5
|
import { AppHeaderDropdownProvider } from '../AppHeaderDropdownProvider';
|
|
@@ -24,11 +23,10 @@ export const AppHeaderResourcesDropdown = ({
|
|
|
24
23
|
lastOpenedDropdown,
|
|
25
24
|
setLastOpenedDropdown
|
|
26
25
|
} = useAppHeaderContext();
|
|
27
|
-
const isLiveLearningHubEnabled = useContext(LiveLearningHubContext);
|
|
28
26
|
|
|
29
27
|
// Add scrollbar for short screens after transition (otherwise scrollbar appears and dissapears for adequate heights during transition)
|
|
30
28
|
const [animationCompleteStyles, setAnimationCompleteStyles] = useState(false);
|
|
31
|
-
const headerResourcesList = getHeaderResourcesList(
|
|
29
|
+
const headerResourcesList = getHeaderResourcesList();
|
|
32
30
|
const animationFinished = () => {
|
|
33
31
|
setAnimationCompleteStyles(isOpen);
|
|
34
32
|
if (isOpen && dropdownRef.current) {
|
|
@@ -37,4 +37,4 @@ export const popularContent = [{
|
|
|
37
37
|
type: ContentType.DOC,
|
|
38
38
|
slug: 'html/concepts/elements'
|
|
39
39
|
}];
|
|
40
|
-
export const ALLOWED_HOSTS = ['skillsoft.com', 'percipio.com', 'localhost', 'codecademy.com'];
|
|
40
|
+
export const ALLOWED_HOSTS = ['skillsoft.com', 'percipio.com', 'localhost', 'codecademy.com', 'squads-dev.com'];
|
package/dist/AppHeader/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { LiveLearningHubContext } from '../GlobalHeader';
|
|
2
|
+
import { useMemo, useRef } from 'react';
|
|
4
3
|
import { HeaderHeightArea } from '../HeaderHeightArea';
|
|
5
4
|
import { NotificationsDropdown } from '../Notifications/NotificationsDropdown';
|
|
6
5
|
import { useHeaderNotifications } from '../Notifications/useHeaderNotifications';
|
|
@@ -25,7 +24,6 @@ export const AppHeader = ({
|
|
|
25
24
|
type = 'standard'
|
|
26
25
|
}) => {
|
|
27
26
|
const menuContainerRef = useRef(null);
|
|
28
|
-
const isLiveLearningHubEnabled = useContext(LiveLearningHubContext);
|
|
29
27
|
const [notificationsBell, notificationsView] = useHeaderNotifications({
|
|
30
28
|
settings: notifications,
|
|
31
29
|
Renderer: NotificationsDropdown
|
|
@@ -55,8 +53,7 @@ export const AppHeader = ({
|
|
|
55
53
|
isStandalone,
|
|
56
54
|
isTeams,
|
|
57
55
|
redirectParam,
|
|
58
|
-
spacing: dropdownSpacing
|
|
59
|
-
isLiveLearningHubEnabled
|
|
56
|
+
spacing: dropdownSpacing
|
|
60
57
|
})
|
|
61
58
|
}, item.id);
|
|
62
59
|
});
|
|
@@ -2,13 +2,12 @@ import _styled from "@emotion/styled/base";
|
|
|
2
2
|
import { Anchor, Menu, Text } from '@codecademy/gamut';
|
|
3
3
|
import { ArrowChevronLeftIcon } from '@codecademy/gamut-icons';
|
|
4
4
|
import { css } from '@codecademy/gamut-styles';
|
|
5
|
-
import {
|
|
5
|
+
import { useEffect, useRef } from 'react';
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { AppHeaderCatalogSection } from '../../AppHeader/AppHeaderElements/AppHeaderCatalogSection';
|
|
8
8
|
import { AppHeaderLinkSections } from '../../AppHeader/AppHeaderElements/AppHeaderLinkSections';
|
|
9
9
|
import { AppHeaderListItem } from '../../AppHeader/AppHeaderElements/AppHeaderListItem';
|
|
10
10
|
import { AppHeaderResourcesSection } from '../../AppHeader/AppHeaderElements/AppHeaderResourcesSection';
|
|
11
|
-
import { LiveLearningHubContext } from '../../GlobalHeader';
|
|
12
11
|
import { getHeaderResourcesList } from '../../lib/resourcesList';
|
|
13
12
|
import { MobileSubMenuWrapper, MobileUlWrapper } from './elements';
|
|
14
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -21,8 +20,8 @@ const StyledAnchor = /*#__PURE__*/_styled(Anchor, {
|
|
|
21
20
|
my: 24,
|
|
22
21
|
padding: 0,
|
|
23
22
|
width: 'calc(100% - 64px)'
|
|
24
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
25
|
-
const renderHeaderSection = (item, action, handleCloseMainMenu
|
|
23
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9BcHBIZWFkZXJNb2JpbGUvQXBwSGVhZGVyU3ViTWVudU1vYmlsZS9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUNxQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvQXBwSGVhZGVyTW9iaWxlL0FwcEhlYWRlclN1Yk1lbnVNb2JpbGUvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQW5jaG9yLCBNZW51LCBUZXh0IH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgQXJyb3dDaGV2cm9uTGVmdEljb24gfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1pY29ucyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuaW1wb3J0IHsgdXNlRWZmZWN0LCB1c2VSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7IEFwcEhlYWRlckNhdGFsb2dEcm9wZG93blByb3BzIH0gZnJvbSAnLi4vLi4vQXBwSGVhZGVyL0FwcEhlYWRlckVsZW1lbnRzL0FwcEhlYWRlckNhdGFsb2dEcm9wZG93bic7XG5pbXBvcnQgeyBBcHBIZWFkZXJDYXRhbG9nU2VjdG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XRlbS50ZXh0fVxuICAgICAgICA8L1RleHQ+XG4gICAgICAgIDxNZW51IHZhcmlhbnQ9XCJmaXhlZFwiIG14PXs4fSB3aWR0aD1cImNhbGMoMTAwJSAtIDE2cHgpXCI+XG4gICAgICAgICAge3JlbmRlckhlYWRlclNlY3Rpb24oaXRlbSwgYWN0aW9uLCBoYW5kbGVDbG9zZU1haW5NZW51KX1cbiAgICAgICAgPC9NZW51PlxuICAgICAgPC9Nb2JpbGVTdWJNZW51V3JhcHBlcj5cbiAgICA8L01vYmlsZVVsV3JhcHBlcj5cbiAgKTtcbn07XG4iXX0= */");
|
|
24
|
+
const renderHeaderSection = (item, action, handleCloseMainMenu) => {
|
|
26
25
|
switch (item.type) {
|
|
27
26
|
case 'catalog-dropdown':
|
|
28
27
|
return /*#__PURE__*/_jsx(AppHeaderCatalogSection, {
|
|
@@ -34,7 +33,7 @@ const renderHeaderSection = (item, action, handleCloseMainMenu, isLiveLearningHu
|
|
|
34
33
|
return /*#__PURE__*/_jsx(AppHeaderResourcesSection, {
|
|
35
34
|
action: action,
|
|
36
35
|
handleClose: handleCloseMainMenu,
|
|
37
|
-
resources: getHeaderResourcesList(
|
|
36
|
+
resources: getHeaderResourcesList()
|
|
38
37
|
});
|
|
39
38
|
default:
|
|
40
39
|
return /*#__PURE__*/_jsx(AppHeaderLinkSections, {
|
|
@@ -50,7 +49,6 @@ export const AppHeaderSubNavMobile = ({
|
|
|
50
49
|
handleCloseMainMenu,
|
|
51
50
|
item
|
|
52
51
|
}) => {
|
|
53
|
-
const isLiveLearningHubEnabled = useContext(LiveLearningHubContext);
|
|
54
52
|
const mainUlWrapper = useRef(null);
|
|
55
53
|
useEffect(() => {
|
|
56
54
|
if (mainUlWrapper?.current) {
|
|
@@ -99,7 +97,7 @@ export const AppHeaderSubNavMobile = ({
|
|
|
99
97
|
variant: "fixed",
|
|
100
98
|
mx: 8,
|
|
101
99
|
width: "calc(100% - 16px)",
|
|
102
|
-
children: renderHeaderSection(item, action, handleCloseMainMenu
|
|
100
|
+
children: renderHeaderSection(item, action, handleCloseMainMenu)
|
|
103
101
|
})]
|
|
104
102
|
})]
|
|
105
103
|
});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
2
|
import { FlexBox, Text } from '@codecademy/gamut';
|
|
3
|
+
import { theme } from '@codecademy/gamut-styles';
|
|
3
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
5
|
const StyledIconContainer = /*#__PURE__*/_styled(FlexBox, {
|
|
5
6
|
target: "e4ma61r0",
|
|
6
7
|
label: "StyledIconContainer"
|
|
7
8
|
})("color:", ({
|
|
8
9
|
iconColor
|
|
9
|
-
}) => iconColor, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
10
|
+
}) => iconColor, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9GZWF0dXJlTGlzdC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JrRSIsImZpbGUiOiIuLi8uLi9zcmMvRmVhdHVyZUxpc3QvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IEdhbXV0SWNvblByb3BzIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtaWNvbnMnO1xuaW1wb3J0IHsgdGhlbWUgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xuXG5leHBvcnQgdHlwZSBGZWF0dXJlTGlzdEl0ZW0gPSB7XG4gIHRpdGxlOiBzdH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bWUuY29sb3JzLnRleHR9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIDxmZWF0dXJlLmljb24gc2l6ZT17ZmVhdHVyZS5kZXNjcmlwdGlvbiA/IDI0IDogMjB9IC8+XG4gICAgICAgICAgICA8L1N0eWxlZEljb25Db250YWluZXI+XG4gICAgICAgICAgKX1cbiAgICAgICAgICA8RmxleEJveCBmbGV4RGlyZWN0aW9uPVwiY29sdW1uXCIgZ2FwPXtmZWF0dXJlLmRlc2NyaXB0aW9uID8gOCA6IDB9PlxuICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgZm9udFNpemU9ezE2fVxuICAgICAgICAgICAgICBmb250V2VpZ2h0PXtmZWF0dXJlLmRlc2NyaXB0aW9uID8gJ2JvbGQnIDogJ25vcm1hbCd9XG4gICAgICAgICAgICA+XG4gICAgICAgICAgICAgIHtmZWF0dXJlLnRpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAge2ZlYXR1cmUuZGVzY3JpcHRpb24gJiYgKFxuICAgICAgICAgICAgICA8VGV4dCBmb250U2l6ZT17MTR9PntmZWF0dXJlLmRlc2NyaXB0aW9ufTwvVGV4dD5cbiAgICAgICAgICAgICl9XG4gICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICApKX1cbiAgICA8L0ZsZXhCb3g+XG4gICk7XG59O1xuIl19 */"));
|
|
10
11
|
export const FeatureList = ({
|
|
11
12
|
featureList
|
|
12
13
|
}) => {
|
|
@@ -18,9 +19,9 @@ export const FeatureList = ({
|
|
|
18
19
|
flexDirection: "row",
|
|
19
20
|
gap: 12,
|
|
20
21
|
alignItems: feature.description ? 'flex-start' : 'center',
|
|
21
|
-
children: [/*#__PURE__*/_jsx(StyledIconContainer, {
|
|
22
|
-
iconColor: feature.iconColor ||
|
|
23
|
-
children:
|
|
22
|
+
children: [feature.icon && /*#__PURE__*/_jsx(StyledIconContainer, {
|
|
23
|
+
iconColor: feature.iconColor || theme.colors.text,
|
|
24
|
+
children: /*#__PURE__*/_jsx(feature.icon, {
|
|
24
25
|
size: feature.description ? 24 : 20
|
|
25
26
|
})
|
|
26
27
|
}), /*#__PURE__*/_jsxs(FlexBox, {
|