@codecademy/brand 1.43.0-alpha.fe034b0cf3.0 → 1.44.0-alpha.02ec495179.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/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/Banner/index.js +6 -27
- package/dist/CareerPathCard/index.js +15 -7
- package/dist/CertificationPathCard/index.js +17 -9
- package/dist/ContentGroupBaseCard/index.js +122 -74
- package/dist/ContentGroupBaseCard/shared.js +29 -23
- package/dist/CourseCard/index.js +15 -11
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/dist/GlobalHeader/index.js +5 -0
- package/dist/SkillPathCard/index.js +15 -7
- package/dist/index.js +0 -1
- package/package.json +1 -1
- 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 -16
- 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/CountdownTimer.d.ts +0 -7
- package/dist/Banner/CountdownTimer.js +0 -127
- package/dist/Banner/EnhancedBanner.d.ts +0 -17
- package/dist/Banner/EnhancedBanner.js +0 -222
- package/dist/Banner/index.d.ts +0 -31
- 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 -23
- 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 -89
- 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 -29
- 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/Logo/CodecademyLogo.d.ts +0 -2
- package/dist/Logo/CodecademyPremiumLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProAltLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProLockupLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProMonoLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProgramLogo.d.ts +0 -2
- package/dist/Logo/CodecademyTeamsLogo.d.ts +0 -2
- package/dist/Logo/index.d.ts +0 -8
- package/dist/LogoFromSkillsoft/index.d.ts +0 -227
- package/dist/LogoLXStudio/index.d.ts +0 -3
- package/dist/LogoProCutout/index.d.ts +0 -8
- package/dist/LogoProCutoutTransparent/index.d.ts +0 -7
- 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/ProLabel/index.d.ts +0 -376
- package/dist/ProLogo/index.d.ts +0 -15
- 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 -89
- 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/Logo.stories.d.ts +0 -13
- 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 -6
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +0 -6
- 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 -10
- 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
|
@@ -4,7 +4,7 @@ import { CertificateIcon, UnlockIcon } from '@codecademy/gamut-icons';
|
|
|
4
4
|
import { CheckerDense } from '@codecademy/gamut-patterns';
|
|
5
5
|
import { css } from '@codecademy/gamut-styles';
|
|
6
6
|
import pluralize from 'pluralize';
|
|
7
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const DottedLine = /*#__PURE__*/_styled(CheckerDense, {
|
|
9
9
|
target: "e16fp6ou0",
|
|
10
10
|
label: "DottedLine"
|
|
@@ -13,7 +13,7 @@ const DottedLine = /*#__PURE__*/_styled(CheckerDense, {
|
|
|
13
13
|
display: 'flex',
|
|
14
14
|
position: 'absolute',
|
|
15
15
|
marginTop: '-1px'
|
|
16
|
-
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9zaGFyZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9tQiIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvc2hhcmVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJveCwgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IENlcnRpZmljYXRlSWNvbiwgVW5sb2NrSWNvbiB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCB7IENoZWNrZXJEZW5zZSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXBhdHRlcm5zJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgcGx1cmFsaXplIGZyb20gJ3BsdXJhbGl6ZSc7XG5cbmNvbnN0IERvdHRlZExpbmUgPSBzdHlsZWQoQ2hlY2tlckRlbnNlKShcbiAgY3NzKHtcbiAgICBoZWlnaHQ6ICcxcHgnLFxuICAgIGRpc3BsYXk6ICdmbGV4JyxcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICBtYXJnaW5Ub3A6ICctMXB4JyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEaXZpZGVyOiBSZWFjdC5GQyA9ICgpID0+
|
|
16
|
+
}), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9zaGFyZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9tQiIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvc2hhcmVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJveCwgRmxleEJveCwgVGV4dCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IENlcnRpZmljYXRlSWNvbiwgVW5sb2NrSWNvbiB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LWljb25zJztcbmltcG9ydCB7IENoZWNrZXJEZW5zZSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXBhdHRlcm5zJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgcGx1cmFsaXplIGZyb20gJ3BsdXJhbGl6ZSc7XG5cbmNvbnN0IERvdHRlZExpbmUgPSBzdHlsZWQoQ2hlY2tlckRlbnNlKShcbiAgY3NzKHtcbiAgICBoZWlnaHQ6ICcxcHgnLFxuICAgIGRpc3BsYXk6ICdmbGV4JyxcbiAgICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgICBtYXJnaW5Ub3A6ICctMXB4JyxcbiAgfSlcbik7XG5cbmV4cG9ydCBjb25zdCBEaXZpZGVyOiBSZWFjdC5GQyA9ICgpID0+IHtcbiAgcmV0dXJuIChcbiAgICAvLyB0aGUgaGVpZ2h0IGFuZCBwb3NpdGlvbiBwcm9wZXJ0aWVzIGFyZSBuZWNlc3NhcnkgZm9yIGlPUyBkZXZpY2VzXG4gICAgPEJveCBweT17NH0gaGVpZ2h0PXswfSBwb3NpdGlvbj1cInJlbGF0aXZlXCIgYXJpYS1oaWRkZW4+XG4gICAgICA8RG90dGVkTGluZSAvPlxuICAgIDwvQm94PlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IENlcnRpZmljYXRlQ29tcG9uZW50OiBSZWFjdC5GQzx7IHByb2Zlc3Npb25hbENlcnQ/OiBib29sZWFuIH0+ID0gKHtcbiAgcHJvZmVzc2lvbmFsQ2VydCxcbn0pID0+IHtcbiAgY29uc3QgY2VydGlmaWNhdGVUeXBlID0gcHJvZmVzc2lvbmFsQ2VydFxuICAgID8gYFByb2Zlc3Npb25hbCBDZXJ0aWZpY2F0aW9uYFxuICAgIDogYENlcnRpZmljYXRlYDtcbiAgcmV0dXJuIChcbiAgICA8Qm94IGFzPVwibGlcIj5cbiAgICAgIDxEaXZpZGVyIC8+XG4gICAgICA8RmxleEJveCBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICAgIDxDZXJ0aWZpY2F0ZUljb24gLz5cbiAgICAgICAgPFRleHQgc2NyZWVucmVhZGVyPntgV2l0aCAke2NlcnRpZmljYXRlVHlwZX1gfTwvVGV4dD5cbiAgICAgICAgPFRleHQgdmFyaWFudD1cInAtc21hbGxcIiBwbD17OH0gYXJpYS1oaWRkZW4+XG4gICAgICAgICAgV2l0aCA8Yj57Y2VydGlmaWNhdGVUeXBlfTwvYj5cbiAgICAgICAgPC9UZXh0PlxuICAgICAgPC9GbGV4Qm94PlxuICAgIDwvQm94PlxuICApO1xufTtcblxuZXhwb3J0IGNvbnN0IEZyZWVNb2R1bGVDb21wb25lbnQ6IFJlYWN0LkZDID0gKCkgPT4ge1xuICByZXR1cm4gKFxuICAgIDxCb3ggYXM9XCJsaVwiPlxuICAgICAgPERpdmlkZXIgLz5cbiAgICAgIDxGbGV4Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgPFVubG9ja0ljb24gLz5cbiAgICAgICAgPFRleHQgdmFyaWFudD1cInAtc21hbGxcIiBwbD17OH0+XG4gICAgICAgICAgU3RhcnQgY291cnNlIHdpdGggeW91ciBCYXNpYyBwbGFuXG4gICAgICAgIDwvVGV4dD5cbiAgICAgIDwvRmxleEJveD5cbiAgICA8L0JveD5cbiAgKTtcbn07XG5cbmV4cG9ydCBjb25zdCBDb3Vyc2VDb3VudENvbXBvbmVudDogUmVhY3QuRkM8eyBjb3VudDogbnVtYmVyIH0+ID0gKHtcbiAgY291bnQsXG59KSA9PiB7XG4gIGNvbnN0IGxhYmVsID0gcGx1cmFsaXplKCdDb3Vyc2VzJywgY291bnQpO1xuXG4gIHJldHVybiAoXG4gICAgPEJveCBhcz1cImxpXCI+XG4gICAgICA8RGl2aWRlciAvPlxuICAgICAgPFRleHQgc2NyZWVucmVhZGVyPntgSW5jbHVkZXMgJHtjb3VudH0gJHtsYWJlbH1gfTwvVGV4dD5cbiAgICAgIDxUZXh0IHZhcmlhbnQ9XCJwLXNtYWxsXCIgYXJpYS1oaWRkZW4+XG4gICAgICAgIEluY2x1ZGVzeycgJ31cbiAgICAgICAgPGI+XG4gICAgICAgICAge2NvdW50fSB7bGFiZWx9XG4gICAgICAgIDwvYj5cbiAgICAgIDwvVGV4dD5cbiAgICA8L0JveD5cbiAgKTtcbn07XG4iXX0= */");
|
|
17
17
|
export const Divider = () => {
|
|
18
18
|
return (
|
|
19
19
|
/*#__PURE__*/
|
|
@@ -22,6 +22,7 @@ export const Divider = () => {
|
|
|
22
22
|
py: 4,
|
|
23
23
|
height: 0,
|
|
24
24
|
position: "relative",
|
|
25
|
+
"aria-hidden": true,
|
|
25
26
|
children: /*#__PURE__*/_jsx(DottedLine, {})
|
|
26
27
|
})
|
|
27
28
|
);
|
|
@@ -30,47 +31,52 @@ export const CertificateComponent = ({
|
|
|
30
31
|
professionalCert
|
|
31
32
|
}) => {
|
|
32
33
|
const certificateType = professionalCert ? `Professional Certification` : `Certificate`;
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
-
|
|
34
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
35
|
+
as: "li",
|
|
36
|
+
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs(FlexBox, {
|
|
35
37
|
alignItems: "center",
|
|
36
|
-
children: [/*#__PURE__*/_jsx(
|
|
37
|
-
|
|
38
|
-
children:
|
|
38
|
+
children: [/*#__PURE__*/_jsx(CertificateIcon, {}), /*#__PURE__*/_jsx(Text, {
|
|
39
|
+
screenreader: true,
|
|
40
|
+
children: `With ${certificateType}`
|
|
39
41
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
40
42
|
variant: "p-small",
|
|
41
|
-
pl:
|
|
42
|
-
"aria-
|
|
43
|
+
pl: 8,
|
|
44
|
+
"aria-hidden": true,
|
|
43
45
|
children: ["With ", /*#__PURE__*/_jsx("b", {
|
|
44
46
|
children: certificateType
|
|
45
47
|
})]
|
|
46
48
|
})]
|
|
47
|
-
})
|
|
49
|
+
})]
|
|
48
50
|
});
|
|
49
51
|
};
|
|
50
52
|
export const FreeModuleComponent = () => {
|
|
51
|
-
return /*#__PURE__*/
|
|
52
|
-
|
|
53
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
54
|
+
as: "li",
|
|
55
|
+
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsxs(FlexBox, {
|
|
53
56
|
alignItems: "center",
|
|
54
|
-
children: [/*#__PURE__*/_jsx(
|
|
55
|
-
pr: 4,
|
|
56
|
-
children: /*#__PURE__*/_jsx(UnlockIcon, {})
|
|
57
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
57
|
+
children: [/*#__PURE__*/_jsx(UnlockIcon, {}), /*#__PURE__*/_jsx(Text, {
|
|
58
58
|
variant: "p-small",
|
|
59
|
-
pl:
|
|
59
|
+
pl: 8,
|
|
60
60
|
children: "Start course with your Basic plan"
|
|
61
61
|
})]
|
|
62
|
-
})
|
|
62
|
+
})]
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
65
|
export const CourseCountComponent = ({
|
|
66
66
|
count
|
|
67
67
|
}) => {
|
|
68
68
|
const label = pluralize('Courses', count);
|
|
69
|
-
return /*#__PURE__*/_jsxs(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
children:
|
|
69
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
70
|
+
as: "li",
|
|
71
|
+
children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(Text, {
|
|
72
|
+
screenreader: true,
|
|
73
|
+
children: `Includes ${count} ${label}`
|
|
74
|
+
}), /*#__PURE__*/_jsxs(Text, {
|
|
75
|
+
variant: "p-small",
|
|
76
|
+
"aria-hidden": true,
|
|
77
|
+
children: ["Includes", ' ', /*#__PURE__*/_jsxs("b", {
|
|
78
|
+
children: [count, " ", label]
|
|
79
|
+
})]
|
|
74
80
|
})]
|
|
75
81
|
});
|
|
76
82
|
};
|
package/dist/CourseCard/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { ContentGroupBaseCard } from '../ContentGroupBaseCard';
|
|
2
|
-
import { CertificateComponent,
|
|
3
|
-
import { jsx as _jsx,
|
|
4
|
-
export const CourseCard = ({
|
|
3
|
+
import { CertificateComponent, FreeModuleComponent } from '../ContentGroupBaseCard/shared';
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const CourseCard = /*#__PURE__*/forwardRef(({
|
|
5
6
|
title,
|
|
6
7
|
lessonCount,
|
|
7
8
|
contentModuleIds,
|
|
@@ -16,8 +17,11 @@ export const CourseCard = ({
|
|
|
16
17
|
isProUser = false,
|
|
17
18
|
isInOpenFirstModuleVariant = false,
|
|
18
19
|
header,
|
|
19
|
-
footer
|
|
20
|
-
|
|
20
|
+
footer,
|
|
21
|
+
openInNewTab = false,
|
|
22
|
+
href,
|
|
23
|
+
onClick
|
|
24
|
+
}, ref) => {
|
|
21
25
|
// only show certificates for pro exclusive courses, since only pro users can do pro courses & only pro users can gain certificates
|
|
22
26
|
// edge case here: pro users who are logged in wont be able to tell - from the card - that a free course can grant them a cert as well
|
|
23
27
|
const showCertificate = grantsCertificate && pro;
|
|
@@ -38,10 +42,10 @@ export const CourseCard = ({
|
|
|
38
42
|
timeToComplete: timeToComplete,
|
|
39
43
|
header: header,
|
|
40
44
|
footer: footer,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})]
|
|
45
|
+
openInNewTab: openInNewTab,
|
|
46
|
+
href: href,
|
|
47
|
+
onClick: onClick,
|
|
48
|
+
ref: ref,
|
|
49
|
+
children: [showFreeFirstModule && /*#__PURE__*/_jsx(FreeModuleComponent, {}), showCertificate && /*#__PURE__*/_jsx(CertificateComponent, {})]
|
|
46
50
|
});
|
|
47
|
-
};
|
|
51
|
+
});
|
|
@@ -3,6 +3,9 @@ import { AccountingCoinsIcon, ArrowThickCircleUpIcon, ArticleIcon, BookFlipPageI
|
|
|
3
3
|
import { renderNewBadge } from '../lib/resourcesList';
|
|
4
4
|
import { formatEnterpriseUrl } from './urlHelpers';
|
|
5
5
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const shouldShowBusinessDashboardLink = user => {
|
|
7
|
+
return (user?.isAccountManager || user?.isBusinessAdmin) && !user?.isSkillsoftUser;
|
|
8
|
+
};
|
|
6
9
|
export const loading = {
|
|
7
10
|
id: 'header-loading',
|
|
8
11
|
type: 'render-element',
|
|
@@ -282,13 +285,13 @@ const profileLogOut = {
|
|
|
282
285
|
text: 'Log Out',
|
|
283
286
|
type: 'link'
|
|
284
287
|
};
|
|
285
|
-
export const freeProfile =
|
|
288
|
+
export const freeProfile = user => {
|
|
286
289
|
const topSection = [profileMyProfile];
|
|
287
290
|
if (user?.isBusinessAdmin || !user?.isBusinessSsoUser) {
|
|
288
291
|
topSection.push(profileAccount);
|
|
289
292
|
}
|
|
290
293
|
topSection.push(profileMyHome);
|
|
291
|
-
if (
|
|
294
|
+
if (shouldShowBusinessDashboardLink(user)) {
|
|
292
295
|
topSection.push(profileBusinessAccount);
|
|
293
296
|
}
|
|
294
297
|
topSection.push(profileHelpCenter);
|
|
@@ -314,7 +317,7 @@ export const proProfile = user => {
|
|
|
314
317
|
topSection.push(profileHelpCenter);
|
|
315
318
|
topSection.push(profileFeedback);
|
|
316
319
|
const teamsAdminSection = [];
|
|
317
|
-
if ((user
|
|
320
|
+
if (shouldShowBusinessDashboardLink(user)) {
|
|
318
321
|
teamsAdminSection.push(profileBusinessAccount);
|
|
319
322
|
}
|
|
320
323
|
const middleSection = [];
|
|
@@ -69,6 +69,11 @@ export const GlobalHeader = props => {
|
|
|
69
69
|
position: "sticky",
|
|
70
70
|
top: 0,
|
|
71
71
|
zIndex: theme.elements.headerZ,
|
|
72
|
+
overflow: {
|
|
73
|
+
_: 'hidden',
|
|
74
|
+
sm: 'visible'
|
|
75
|
+
} // Prevent tooltip overflow on mobile
|
|
76
|
+
,
|
|
72
77
|
children: [/*#__PURE__*/_jsx(AppHeader, {
|
|
73
78
|
action: combinedAction,
|
|
74
79
|
items: getAppHeaderItems(props, false),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { forwardRef } from 'react';
|
|
1
2
|
import { ContentGroupBaseCard } from '../ContentGroupBaseCard';
|
|
2
3
|
import { getPathImageUrl } from '../ContentGroupBaseCard/helpers';
|
|
3
|
-
import { CertificateComponent, CourseCountComponent
|
|
4
|
+
import { CertificateComponent, CourseCountComponent } from '../ContentGroupBaseCard/shared';
|
|
4
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
export const SkillPathCard = ({
|
|
6
|
+
export const SkillPathCard = /*#__PURE__*/forwardRef(({
|
|
6
7
|
title,
|
|
7
8
|
shortDescription,
|
|
8
9
|
difficulty,
|
|
@@ -14,8 +15,11 @@ export const SkillPathCard = ({
|
|
|
14
15
|
isFullSize = false,
|
|
15
16
|
timeToComplete,
|
|
16
17
|
header,
|
|
17
|
-
footer
|
|
18
|
-
|
|
18
|
+
footer,
|
|
19
|
+
openInNewTab = false,
|
|
20
|
+
href,
|
|
21
|
+
onClick
|
|
22
|
+
}, ref) => {
|
|
19
23
|
return /*#__PURE__*/_jsxs(ContentGroupBaseCard, {
|
|
20
24
|
headerBackgroundColor: "blue-100",
|
|
21
25
|
headerText: "Skill path",
|
|
@@ -31,8 +35,12 @@ export const SkillPathCard = ({
|
|
|
31
35
|
timeToComplete: timeToComplete,
|
|
32
36
|
header: header,
|
|
33
37
|
footer: footer,
|
|
34
|
-
|
|
38
|
+
openInNewTab: openInNewTab,
|
|
39
|
+
href: href,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
ref: ref,
|
|
42
|
+
children: [/*#__PURE__*/_jsx(CourseCountComponent, {
|
|
35
43
|
count: courseCount
|
|
36
|
-
}), /*#__PURE__*/_jsx(
|
|
44
|
+
}), /*#__PURE__*/_jsx(CertificateComponent, {})]
|
|
37
45
|
});
|
|
38
|
-
};
|
|
46
|
+
});
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,6 @@ export * from './Avatar';
|
|
|
16
16
|
export * from './AvatarChooser';
|
|
17
17
|
export * from './BackToTopAnchor';
|
|
18
18
|
export * from './Banner';
|
|
19
|
-
export * from './Banner/CountdownTimer';
|
|
20
19
|
export * from './BetaSticker';
|
|
21
20
|
export * from './CareerPathCard';
|
|
22
21
|
export * from './Carousel';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.44.0-alpha.02ec495179.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
-
import { StyleProps } from '@codecademy/variance';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
declare const positionVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"position", false | "center" | "left" | "right"> & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
}) => import("@codecademy/variance").CSSObject;
|
|
7
|
-
export interface AppBarSectionProps extends StyleProps<typeof positionVariants>, WithChildrenProp {
|
|
8
|
-
}
|
|
9
|
-
export declare const AppBarSection: React.FC<AppBarSectionProps>;
|
|
10
|
-
export {};
|
package/dist/AppBar/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ContentContainer, WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface AppBarProps extends WithChildrenProp, Pick<React.ComponentProps<typeof ContentContainer>, 'aria-label' | 'as'> {
|
|
4
|
-
/**
|
|
5
|
-
* Whether the container should be larger than the default content size.
|
|
6
|
-
*/
|
|
7
|
-
wide?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare const AppBar: React.FC<AppBarProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface AppBarSectionPropsDeprecated extends WithChildrenProp {
|
|
4
|
-
/**
|
|
5
|
-
* Position of the the section within the AppBar.
|
|
6
|
-
*/
|
|
7
|
-
position?: 'left' | 'center' | 'right';
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated use `<AppBarSection>` instead
|
|
12
|
-
* this component still exists since `<Footer>` in le-shared uses classnames
|
|
13
|
-
*/
|
|
14
|
-
export declare const AppBarSectionDeprecated: React.FC<AppBarSectionPropsDeprecated>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export interface AppBarPropsDeprecated extends WithChildrenProp {
|
|
4
|
-
className?: string;
|
|
5
|
-
/**
|
|
6
|
-
* Whether the container should be larger than the default content size.
|
|
7
|
-
*/
|
|
8
|
-
wide?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated use `<AppBar>` instead
|
|
12
|
-
* this component still exists since `<Footer>` in le-shared uses classnames
|
|
13
|
-
*/
|
|
14
|
-
export declare const AppBarDeprecated: React.FC<AppBarPropsDeprecated>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@import "~@codecademy/gamut-styles/utils";
|
|
2
|
-
|
|
3
|
-
$appbar-gutter: px-rem(8px);
|
|
4
|
-
$appbar-tab-width: px-rem(48px);
|
|
5
|
-
$appbar-z: 14;
|
|
6
|
-
|
|
7
|
-
.wrapper {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
height: 100%;
|
|
11
|
-
z-index: $appbar-z;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.section {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
height: 100%;
|
|
18
|
-
z-index: 1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.sectionRight {
|
|
22
|
-
justify-content: flex-end;
|
|
23
|
-
white-space: nowrap;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.sectionLeft {
|
|
27
|
-
flex: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.sectionRight,
|
|
31
|
-
.sectionLeft {
|
|
32
|
-
flex: 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.sectionCenter {
|
|
36
|
-
flex: 2;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
text-align: center;
|
|
39
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AppHeaderAction, AppHeaderCatalogDropdownItem } from '../../shared';
|
|
3
|
-
export type AppHeaderCatalogDropdownProps = AppHeaderAction & {
|
|
4
|
-
item: AppHeaderCatalogDropdownItem;
|
|
5
|
-
isAnon: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const AppHeaderCatalogDropdown: React.FC<AppHeaderCatalogDropdownProps>;
|