@codecademy/brand 1.46.0 → 1.47.0-alpha.72688a5a84.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/AbbreviatedCommunityEventCard/index.d.ts +8 -0
- package/dist/AppBar/AppBarSection.d.ts +10 -0
- package/dist/AppBar/index.d.ts +9 -0
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
- package/dist/AppBarDeprecated/index.d.ts +14 -0
- package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +97 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +56 -12
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +5 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
- package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
- package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
- package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
- package/dist/AppHeader/Search/consts.d.ts +23 -0
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
- package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
- package/dist/AppHeader/Search/types.d.ts +23 -0
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
- package/dist/AppHeader/index.d.ts +24 -0
- package/dist/AppHeader/shared/elements.d.ts +84 -0
- package/dist/AppHeader/shared/index.d.ts +4 -0
- package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
- package/dist/AppHeader/shared/testTypes.d.ts +0 -0
- package/dist/AppHeader/shared/types.d.ts +107 -0
- package/dist/AppHeader/shared/utils.d.ts +16 -0
- package/dist/AppHeader/utils/types.d.ts +8 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
- package/dist/AppHeaderMobile/index.d.ts +20 -0
- package/dist/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/Avatar/index.d.ts +36 -0
- package/dist/AvatarChooser/index.d.ts +12 -0
- package/dist/BackToTopAnchor/index.d.ts +13 -0
- package/dist/Banner/CountdownTimer.d.ts +7 -0
- package/dist/Banner/EnhancedBanner.d.ts +17 -0
- package/dist/Banner/index.d.ts +31 -0
- package/dist/BetaSticker/index.d.ts +6 -0
- package/dist/CareerPathCard/index.d.ts +19 -0
- package/dist/Carousel/elements.d.ts +27 -0
- package/dist/Carousel/index.d.ts +24 -0
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/CertificationPathCard/index.d.ts +20 -0
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
- package/dist/CommunityEventCard/index.d.ts +28 -0
- package/dist/CommunityEventToast/index.d.ts +6 -0
- package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
- package/dist/ContentGroupBaseCard/index.d.ts +31 -0
- package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
- package/dist/ContentGroupBaseCard/types.d.ts +10 -0
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
- package/dist/CourseCard/index.d.ts +20 -0
- package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
- package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
- package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
- package/dist/CurriculumCard/Footer/index.d.ts +10 -0
- package/dist/CurriculumCard/Image/index.d.ts +9 -0
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
- package/dist/CurriculumCard/index.d.ts +59 -0
- package/dist/DropdownButton/DropdownList.d.ts +17 -0
- package/dist/DropdownButton/index.d.ts +76 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
- package/dist/EditorialImage/index.d.ts +10 -0
- package/dist/EditorialImage/styles.module.scss +36 -0
- package/dist/EmptySection/index.d.ts +28 -0
- package/dist/ErrorContents/index.d.ts +8 -0
- package/dist/FeatureList/index.d.ts +11 -0
- package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
- package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
- package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
- package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
- package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
- package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
- package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
- package/dist/GlobalFooter/index.d.ts +23 -0
- package/dist/GlobalFooter/types.d.ts +13 -0
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
- package/dist/GlobalHeader/GlobalHeaderItems.js +1 -1
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.js +1 -1
- package/dist/GlobalHeader/index.d.ts +11 -0
- package/dist/GlobalHeader/index.js +41 -37
- package/dist/GlobalHeader/types.d.ts +90 -0
- package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
- package/dist/GlobalPage/index.d.ts +34 -0
- package/dist/Grid/GridCollapse.d.ts +41 -0
- package/dist/Grid/Subgrid.d.ts +23 -0
- package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
- package/dist/Grid/index.d.ts +3 -0
- package/dist/HeaderHeightArea/index.d.ts +9 -0
- package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
- package/dist/HorizontalScrollMenu/index.d.ts +7 -0
- package/dist/HubCard/index.d.ts +8 -0
- package/dist/InfoCard/index.d.ts +19 -0
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
- package/dist/Konamimojisplosion/index.d.ts +2 -0
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
- package/dist/LandingPage/CTA.d.ts +9 -0
- package/dist/LandingPage/Description.d.ts +6 -0
- package/dist/LandingPage/Feature.d.ts +32 -0
- package/dist/LandingPage/PageFAQs.d.ts +10 -0
- package/dist/LandingPage/PageFeatures.d.ts +16 -0
- package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
- package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
- package/dist/LandingPage/PageHero.d.ts +7 -0
- package/dist/LandingPage/PagePrefooter.d.ts +5 -0
- package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
- package/dist/LandingPage/PageTestimonials.d.ts +21 -0
- package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
- package/dist/LandingPage/Title.d.ts +23 -0
- package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
- package/dist/LandingPage/index.d.ts +14 -0
- package/dist/LandingPage/types.d.ts +28 -0
- package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
- package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
- package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
- package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
- package/dist/LayoutMenu/index.d.ts +3 -0
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
- package/dist/LayoutMenuVariant/index.d.ts +2 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
- package/dist/LearningOutcomeBadges/index.d.ts +2 -0
- package/dist/LearningOutcomeCard/index.d.ts +29 -0
- package/dist/LearningOutcomePopover/index.d.ts +10 -0
- package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
- package/dist/LearningOutcomeTile/index.d.ts +2 -0
- package/dist/LearningOutcomeTile/types.d.ts +48 -0
- package/dist/ListSection/index.d.ts +21 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/styles.module.scss +131 -0
- package/dist/LoadingCurriculumCard/index.d.ts +7 -0
- package/dist/Logo/CodecademyLogo.d.ts +2 -0
- package/dist/Logo/CodecademyPremiumLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProAltLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProLockupLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProMonoLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProgramLogo.d.ts +2 -0
- package/dist/Logo/CodecademyTeamsLogo.d.ts +2 -0
- package/dist/Logo/index.d.ts +8 -0
- package/dist/LogoFromSkillsoft/index.d.ts +227 -0
- package/dist/LogoLXStudio/index.d.ts +3 -0
- package/dist/LogoProCutout/index.d.ts +8 -0
- package/dist/LogoProCutoutTransparent/index.d.ts +7 -0
- package/dist/MarketingToaster/index.d.ts +8 -0
- package/dist/NotFoundContent/404.svg +1 -0
- package/dist/NotFoundContent/index.d.ts +8 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
- package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
- package/dist/NotificationList/NotificationItem.d.ts +8 -0
- package/dist/NotificationList/index.d.ts +9 -0
- package/dist/NotificationList/typings.d.ts +16 -0
- package/dist/Notifications/NotificationBell.d.ts +10 -0
- package/dist/Notifications/NotificationsContents.d.ts +3 -0
- package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
- package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
- package/dist/Notifications/constants.d.ts +4 -0
- package/dist/Notifications/elements.d.ts +12 -0
- package/dist/Notifications/types.d.ts +24 -0
- package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
- package/dist/Notifications/useNotificationButtons.d.ts +9 -0
- package/dist/PageAlerts/PageAlerts.d.ts +10 -0
- package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
- package/dist/PageAlerts/index.d.ts +3 -0
- package/dist/PageAlerts/types.d.ts +17 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
- package/dist/PageSection/index.d.ts +17 -0
- package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
- package/dist/PastDue/index.d.ts +2 -0
- package/dist/PastDue/pastDueMessages.d.ts +6 -0
- package/dist/PausableImage/BaseImage/index.d.ts +15 -0
- package/dist/PausableImage/index.d.ts +11 -0
- package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
- package/dist/PlanCard/PlanFeature.d.ts +9 -0
- package/dist/PlanCard/PopularBadge.d.ts +3 -0
- package/dist/PlanCard/PricingAmount.d.ts +14 -0
- package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
- package/dist/PlanCard/consts.d.ts +14 -0
- package/dist/PlanCard/index.d.ts +18 -0
- package/dist/PlanCard/types.d.ts +39 -0
- package/dist/PlanCardTeams/consts.d.ts +9 -0
- package/dist/PlanCardTeams/index.d.ts +8 -0
- package/dist/PricingSection/PlanFeature.d.ts +10 -0
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
- package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
- package/dist/PricingSection/PricingCard/index.d.ts +12 -0
- package/dist/PricingSection/ProductCTA.d.ts +6 -0
- package/dist/PricingSection/Products.d.ts +11 -0
- package/dist/PricingSection/config.d.ts +8 -0
- package/dist/PricingSection/index.d.ts +13 -0
- package/dist/PricingSection/types.d.ts +30 -0
- package/dist/ProLabel/index.d.ts +376 -0
- package/dist/ProLogo/index.d.ts +15 -0
- package/dist/ProLogoAlt/index.d.ts +9 -0
- package/dist/ProductFeatureShowcase/index.d.ts +16 -0
- package/dist/QuizScore/index.d.ts +12 -0
- package/dist/RatingsBar/index.d.ts +12 -0
- package/dist/ResourceCard/index.d.ts +15 -0
- package/dist/ScoreSummary/SubScores.d.ts +28 -0
- package/dist/ScoreSummary/helpers.d.ts +11 -0
- package/dist/ScoreSummary/index.d.ts +21 -0
- package/dist/ScoreSummary/types.d.ts +310 -0
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/SkillPathCard/index.d.ts +17 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
- package/dist/SocialMediaSharing/index.d.ts +49 -0
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
- package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
- package/dist/Testimonial/index.d.ts +45 -0
- package/dist/assets/darkQuotes.svg +1 -0
- package/dist/assets/dots.svg +1 -0
- package/dist/assets/lightQuotes.svg +1 -0
- package/dist/assets/navyQuotes.svg +5 -0
- package/dist/assets/orange_squiggle.svg +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/lib/breakpointHooks/index.d.ts +43 -0
- package/dist/lib/catalogList/index.d.ts +5 -0
- package/dist/lib/resourcesList/index.d.ts +5 -0
- package/dist/png.d.ts +4 -0
- package/dist/react-freezeframe.d.ts +1 -0
- package/dist/remoteAssets/components.d.ts +1 -0
- package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
- package/dist/stories/Atoms/Logos/Logo.stories.d.ts +13 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +6 -0
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
- package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
- package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
- package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
- package/dist/stories/Molecules/EnhancedBanner.stories.d.ts +10 -0
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
- package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
- package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
- package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
- package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
- package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
- package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
- package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
- package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
- package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
- package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
- package/dist/svg.d.ts +8 -0
- package/dist/theme.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AppHeaderItem, FormattedAppHeaderItems, FormattedMobileAppHeaderItems } from '../AppHeader/shared';
|
|
2
|
+
import { GlobalHeaderProps } from '.';
|
|
3
|
+
import { User } from './types';
|
|
4
|
+
export declare const anonDefaultHeaderItems: (hidePricing?: boolean, user?: User) => FormattedAppHeaderItems;
|
|
5
|
+
export declare const anonDefaultMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
6
|
+
export declare const anonLandingHeaderItems: (hidePricing?: boolean, user?: User) => FormattedAppHeaderItems;
|
|
7
|
+
export declare const anonLandingMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
8
|
+
export declare const anonLoginHeaderItems: (hidePricing?: boolean, user?: User) => FormattedAppHeaderItems;
|
|
9
|
+
export declare const anonLoginMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
10
|
+
export declare const anonSignupHeaderItems: (hidePricing?: boolean, user?: User) => FormattedAppHeaderItems;
|
|
11
|
+
export declare const anonSignupMobileHeaderItems: (hidePricing?: boolean, user?: User) => FormattedMobileAppHeaderItems;
|
|
12
|
+
export declare const freeHeaderItems: (user: User, hidePricing?: boolean) => FormattedAppHeaderItems;
|
|
13
|
+
export declare const freeMobileHeaderItems: (user: User, hidePricing?: boolean) => FormattedMobileAppHeaderItems;
|
|
14
|
+
export declare const enterpriseHeaderItems: (user: User, props: GlobalHeaderProps) => {
|
|
15
|
+
left: AppHeaderItem[];
|
|
16
|
+
right: never[];
|
|
17
|
+
};
|
|
18
|
+
export declare const proHeaderItems: (user: User) => FormattedAppHeaderItems;
|
|
19
|
+
export declare const teamsHeaderItems: (user: User) => FormattedAppHeaderItems;
|
|
20
|
+
export declare const enterpriseMobileHeaderItems: (user: User, props: GlobalHeaderProps) => FormattedMobileAppHeaderItems;
|
|
21
|
+
export declare const proMobileHeaderItems: (user: User) => FormattedMobileAppHeaderItems;
|
|
22
|
+
export declare const teamsMobileHeaderItems: (user: User) => FormattedMobileAppHeaderItems;
|
|
23
|
+
export declare const loadingHeaderItems: FormattedAppHeaderItems;
|
|
24
|
+
export declare const loadingMobileHeaderItems: FormattedMobileAppHeaderItems;
|
|
25
|
+
export declare const simpleHeaderItems: FormattedAppHeaderItems;
|
|
26
|
+
export declare const simpleMobileHeaderItems: FormattedMobileAppHeaderItems;
|
|
27
|
+
export declare const simpleBootcampHeaderItems: (bootcampSlug: string) => FormattedAppHeaderItems;
|
|
28
|
+
export declare const simpleBootcampMobileHeaderItems: (bootcampSlug: string) => FormattedMobileAppHeaderItems;
|
|
@@ -92,7 +92,7 @@ export const freeMobileHeaderItems = (user, hidePricing) => {
|
|
|
92
92
|
const leftItems = [specialLogo];
|
|
93
93
|
const rightItems = [];
|
|
94
94
|
const upgradeButton = upgradeToPro(user.proCheckoutUrl);
|
|
95
|
-
const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions, freeProfile(user
|
|
95
|
+
const mainMenuItems = [myHome, catalogDropdown(user?.hideCareerPaths), resourcesDropdown(), communityDropdown(), ...(hidePricing ? [] : [pricingDropdown]), liveLearningHub, businessSolutions, freeProfile(user), user.showProUpgrade ? upgradeButton : tryProForFree(user.proCheckoutUrl)];
|
|
96
96
|
return {
|
|
97
97
|
left: leftItems,
|
|
98
98
|
right: rightItems,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AnonHeader, EnterpriseHeader, FreeHeader, LoadingHeader, ProHeader, SimpleBootcampHeader, SimpleHeader, TeamsHeader } from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export declare const LiveLearningHubContext: React.Context<boolean>;
|
|
5
|
+
export declare const HeaderQuizContext: React.Context<{
|
|
6
|
+
showOnboardingQuiz?: boolean;
|
|
7
|
+
showSortingQuiz?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const GlobalNavRedesignContext: React.Context<boolean>;
|
|
10
|
+
export type GlobalHeaderProps = AnonHeader | FreeHeader | ProHeader | EnterpriseHeader | TeamsHeader | LoadingHeader | SimpleHeader | SimpleBootcampHeader;
|
|
11
|
+
export declare const GlobalHeader: React.FC<GlobalHeaderProps>;
|
|
@@ -11,6 +11,7 @@ export const HeaderQuizContext = /*#__PURE__*/React.createContext({
|
|
|
11
11
|
showOnboardingQuiz: false,
|
|
12
12
|
showSortingQuiz: false
|
|
13
13
|
});
|
|
14
|
+
export const GlobalNavRedesignContext = /*#__PURE__*/React.createContext(false);
|
|
14
15
|
|
|
15
16
|
// Overloading getAppHeaderItems function to return different types based on mobile parameter
|
|
16
17
|
|
|
@@ -64,43 +65,46 @@ export const GlobalHeader = props => {
|
|
|
64
65
|
showOnboardingQuiz,
|
|
65
66
|
showSortingQuiz
|
|
66
67
|
},
|
|
67
|
-
children: /*#__PURE__*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
68
|
+
children: /*#__PURE__*/_jsx(GlobalNavRedesignContext.Provider, {
|
|
69
|
+
value: !!props.displayGlobalNavRedesign,
|
|
70
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
71
|
+
as: "header",
|
|
72
|
+
position: "sticky",
|
|
73
|
+
top: 0,
|
|
74
|
+
zIndex: theme.elements.headerZ,
|
|
75
|
+
overflow: {
|
|
76
|
+
_: 'hidden',
|
|
77
|
+
sm: 'visible'
|
|
78
|
+
} // Prevent tooltip overflow on mobile
|
|
79
|
+
,
|
|
80
|
+
children: [/*#__PURE__*/_jsx(AppHeader, {
|
|
81
|
+
action: combinedAction,
|
|
82
|
+
items: getAppHeaderItems(props, false),
|
|
83
|
+
search: props.search,
|
|
84
|
+
...(props.type === 'anon' ? {
|
|
85
|
+
redirectParam: props.redirectParam
|
|
86
|
+
} : hideNotification ? {} : {
|
|
87
|
+
notifications: props.notifications
|
|
88
|
+
}),
|
|
89
|
+
hideRightButtonDefaults: hideNotification,
|
|
90
|
+
isAnon: props.type === 'anon',
|
|
91
|
+
isTeams: props.type === 'teams',
|
|
92
|
+
type: hideNotification ? 'enterprise' : 'standard'
|
|
93
|
+
}), /*#__PURE__*/_jsx(AppHeaderMobile, {
|
|
94
|
+
action: combinedAction,
|
|
95
|
+
items: getAppHeaderItems(props, true),
|
|
96
|
+
...(props.type === 'anon' || hideNotification ? {} : {
|
|
97
|
+
notifications: props.notifications
|
|
98
|
+
}),
|
|
99
|
+
search: props.search,
|
|
100
|
+
redirectParam: props.type === 'anon' ? props.redirectParam : undefined,
|
|
101
|
+
isEnterprise: props.type === 'enterprise',
|
|
102
|
+
isAnon: props.type === 'anon',
|
|
103
|
+
isSimple: props.type === 'simple',
|
|
104
|
+
hideRightMenuButton: props.type === 'simple' || props.type === 'loading',
|
|
105
|
+
navigationMenuFormattedLabel: props?.localizedLabels?.navigationMenuFormattedLabel
|
|
106
|
+
}), props.children]
|
|
107
|
+
})
|
|
104
108
|
})
|
|
105
109
|
});
|
|
106
110
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { AppHeaderAction, AppHeaderClickHandler, AppHeaderItemWithHref, AppHeaderSearch } from '..';
|
|
4
|
+
import { AppHeaderNotificationSettings } from '../Notifications/types';
|
|
5
|
+
type RenderProfile = {
|
|
6
|
+
desktop: () => ReactNode;
|
|
7
|
+
mobile: () => ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type NavigationMenuFormattedLabel = Record<'openMenuTip' | 'closeMenuTip' | 'siteNavigation', string>;
|
|
10
|
+
export type ResourceDropdownFormattedLabel = {
|
|
11
|
+
title?: string;
|
|
12
|
+
workspaces?: string;
|
|
13
|
+
docs?: string;
|
|
14
|
+
articles?: string;
|
|
15
|
+
};
|
|
16
|
+
type localizedLabels = {
|
|
17
|
+
enterpriseFormattedHomeLabel?: string;
|
|
18
|
+
resourcesDropdown?: ResourceDropdownFormattedLabel;
|
|
19
|
+
navigationMenuFormattedLabel?: NavigationMenuFormattedLabel;
|
|
20
|
+
};
|
|
21
|
+
interface BaseHeader extends WithChildrenProp, AppHeaderAction {
|
|
22
|
+
/** A method to be called on click/activating a header item */
|
|
23
|
+
action: AppHeaderClickHandler;
|
|
24
|
+
/** A method to be called only on click/activating a *link* header item */
|
|
25
|
+
onLinkAction?: AppHeaderClickHandler<AppHeaderItemWithHref>;
|
|
26
|
+
className?: string;
|
|
27
|
+
hidePricing?: boolean;
|
|
28
|
+
hideHeaderLinksInChromeless?: boolean;
|
|
29
|
+
hideHeaderResourcesDropdown?: boolean;
|
|
30
|
+
hideEnterpriseHeader?: boolean;
|
|
31
|
+
localizedLabels?: localizedLabels;
|
|
32
|
+
search: AppHeaderSearch;
|
|
33
|
+
displayGlobalNavRedesign?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export type User = {
|
|
36
|
+
avatar: string;
|
|
37
|
+
displayName: string;
|
|
38
|
+
enterpriseUrl?: string;
|
|
39
|
+
isAdmin?: boolean;
|
|
40
|
+
isBusinessAdmin?: boolean;
|
|
41
|
+
isBusinessSsoUser?: boolean;
|
|
42
|
+
isCustomerSupport?: boolean;
|
|
43
|
+
isAccountManager?: boolean;
|
|
44
|
+
isPaused?: boolean;
|
|
45
|
+
isPlusUser?: boolean;
|
|
46
|
+
isBusinessUser?: boolean;
|
|
47
|
+
inBusinessTrial?: boolean;
|
|
48
|
+
isSkillsoftUser?: boolean;
|
|
49
|
+
hasBusinessSubscription?: boolean;
|
|
50
|
+
proCheckoutUrl?: string;
|
|
51
|
+
showProUpgrade?: boolean;
|
|
52
|
+
hideCareerPaths?: boolean;
|
|
53
|
+
enrolledInTwoOrMoreContainers?: boolean;
|
|
54
|
+
};
|
|
55
|
+
type LoggedInHeader = BaseHeader & {
|
|
56
|
+
notifications: AppHeaderNotificationSettings;
|
|
57
|
+
renderProfile?: RenderProfile;
|
|
58
|
+
user: User;
|
|
59
|
+
};
|
|
60
|
+
export type AnonHeaderVariant = 'landing' | 'login' | 'signup';
|
|
61
|
+
export type AnonHeader = BaseHeader & {
|
|
62
|
+
redirectParam?: string;
|
|
63
|
+
type: 'anon';
|
|
64
|
+
variant?: AnonHeaderVariant;
|
|
65
|
+
user?: User;
|
|
66
|
+
};
|
|
67
|
+
export type FreeHeader = LoggedInHeader & {
|
|
68
|
+
type: 'free';
|
|
69
|
+
};
|
|
70
|
+
export type ProHeader = LoggedInHeader & {
|
|
71
|
+
type: 'pro';
|
|
72
|
+
};
|
|
73
|
+
export type TeamsHeader = LoggedInHeader & {
|
|
74
|
+
type: 'teams';
|
|
75
|
+
};
|
|
76
|
+
export type EnterpriseHeader = BaseHeader & {
|
|
77
|
+
type: 'enterprise';
|
|
78
|
+
user: User;
|
|
79
|
+
};
|
|
80
|
+
export type LoadingHeader = BaseHeader & {
|
|
81
|
+
type: 'loading';
|
|
82
|
+
};
|
|
83
|
+
export type SimpleHeader = BaseHeader & {
|
|
84
|
+
type: 'simple';
|
|
85
|
+
};
|
|
86
|
+
export type SimpleBootcampHeader = BaseHeader & {
|
|
87
|
+
type: 'bootcamp';
|
|
88
|
+
bootcampSlug: string;
|
|
89
|
+
};
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ModalProps, WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { BannerProps } from '../Banner';
|
|
4
|
+
import { GlobalFooterProps } from '../GlobalFooter';
|
|
5
|
+
import { GlobalHeaderProps } from '../GlobalHeader';
|
|
6
|
+
export type GlobalPageBackgroundColor = 'beige' | 'background' | 'background-contrast' | 'navy' | 'paleBlue' | 'paleGreen' | 'palePink' | 'paleYellow' | 'white';
|
|
7
|
+
export interface GlobalPageProps extends WithChildrenProp {
|
|
8
|
+
backgroundColor?: GlobalPageBackgroundColor;
|
|
9
|
+
/**
|
|
10
|
+
* Props directly passed to the Banner.
|
|
11
|
+
*/
|
|
12
|
+
banner?: BannerProps;
|
|
13
|
+
/**
|
|
14
|
+
* Element type to render around the children.
|
|
15
|
+
*/
|
|
16
|
+
contentAs?: 'div' | 'main';
|
|
17
|
+
/**
|
|
18
|
+
* Props directly passed to the GlobalFooter.
|
|
19
|
+
*/
|
|
20
|
+
footer?: GlobalFooterProps;
|
|
21
|
+
/**
|
|
22
|
+
* Props directly passed to the GlobalHeader.
|
|
23
|
+
*/
|
|
24
|
+
header: GlobalHeaderProps;
|
|
25
|
+
/**
|
|
26
|
+
* Props directly passed to the Modal.
|
|
27
|
+
*/
|
|
28
|
+
modal?: ModalProps;
|
|
29
|
+
/**
|
|
30
|
+
* Custom element ID to link to by the SkipToContent control, if not a default one at the beginning of the page.
|
|
31
|
+
*/
|
|
32
|
+
skipToContentId?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare const GlobalPage: React.FC<GlobalPageProps>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Box, GridBox } from '@codecademy/gamut';
|
|
2
|
+
import { MediaQueryMap } from '@codecademy/variance';
|
|
3
|
+
import React, { ComponentProps } from 'react';
|
|
4
|
+
import { ColumnCount } from './getCSSFromColumnCount';
|
|
5
|
+
export declare const getMediaQuery: ({ css, start, end, }: {
|
|
6
|
+
css: string;
|
|
7
|
+
start: string;
|
|
8
|
+
end?: string;
|
|
9
|
+
}) => string;
|
|
10
|
+
export type GridCollapseProps = ComponentProps<typeof GridBox> & {
|
|
11
|
+
/**
|
|
12
|
+
* the number of columns per row in the grid
|
|
13
|
+
*/
|
|
14
|
+
columnCount: ColumnCount;
|
|
15
|
+
/**
|
|
16
|
+
* the number of items to display when collapsed
|
|
17
|
+
*/
|
|
18
|
+
initialMaxShown: MediaQueryMap<number>;
|
|
19
|
+
/**
|
|
20
|
+
* the number of new items to display on each "expand" click; if not provided, a binary toggle is used
|
|
21
|
+
* note: must include exactly the same keys as initialMaxShown
|
|
22
|
+
*/
|
|
23
|
+
pageSize?: MediaQueryMap<number>;
|
|
24
|
+
/**
|
|
25
|
+
* text to display when "show more" is available
|
|
26
|
+
*/
|
|
27
|
+
expandLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* text to display when "show fewer" is available
|
|
30
|
+
*/
|
|
31
|
+
collapseLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* called when clicking the show more/see less toggle; accepts the current expanded state as an arg
|
|
34
|
+
*/
|
|
35
|
+
onExpandClick?: (expanded?: boolean) => void;
|
|
36
|
+
/**
|
|
37
|
+
* props to pass to the expand/collapse container (useful for changing the margin between the grid and controls)
|
|
38
|
+
*/
|
|
39
|
+
expandCollapseProps?: ComponentProps<typeof Box>;
|
|
40
|
+
};
|
|
41
|
+
export declare const GridCollapse: React.FC<GridCollapseProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GridBox } from '@codecademy/gamut';
|
|
2
|
+
import { ComponentProps, FC } from 'react';
|
|
3
|
+
import { ColumnCount } from './getCSSFromColumnCount';
|
|
4
|
+
/**
|
|
5
|
+
* Subgrid is basically used as a stand-in for css subgrids, which are currently only supported in firefox.
|
|
6
|
+
* Because the number of Subgrid columns is dependent on many factors (screen width, content type, whether
|
|
7
|
+
* or not we're displaying contributors) and Subgrid is used in multiple places - sometimes nested within
|
|
8
|
+
* subcomponents - we avoid prop-drilling and keep each instance in sync by defining the columns at each
|
|
9
|
+
* breakpoint in react context. Usage example:
|
|
10
|
+
*
|
|
11
|
+
* import { Subgrid, subgridContext } from './Subgrid';
|
|
12
|
+
*
|
|
13
|
+
* export const MyComponent = () => (
|
|
14
|
+
* <subgridContext.Provider value={{ _: 12, md: 6 }}>
|
|
15
|
+
* ...
|
|
16
|
+
* <Subgrid>...</Subgrid>
|
|
17
|
+
* </subgridContext.Provider>
|
|
18
|
+
* );
|
|
19
|
+
*
|
|
20
|
+
* here, all descendant Subgrids will have 6 columns at breakpoints md and above and 12 columns otherwise
|
|
21
|
+
*/
|
|
22
|
+
export declare const subgridContext: import("react").Context<ColumnCount>;
|
|
23
|
+
export declare const Subgrid: FC<ComponentProps<typeof GridBox>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Column } from '@codecademy/gamut';
|
|
2
|
+
import { MediaQueryMap } from '@codecademy/variance';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
export type ColumnCountKeys = Extract<ComponentProps<typeof Column>['size'], number>;
|
|
5
|
+
export type ColumnCount = MediaQueryMap<ColumnCountKeys>;
|
|
6
|
+
export declare const getCSSFromColumnCount: (columnCount: ColumnCount, valueFunction: (value: number) => string) => MediaQueryMap<string>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { ResponsiveProp } from '@codecademy/variance';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface HeaderHeightAreaProps extends WithChildrenProp {
|
|
5
|
+
as?: React.ElementType<any>;
|
|
6
|
+
display: ResponsiveProp<'none' | 'block'>;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const HeaderHeightArea: React.FC<HeaderHeightAreaProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsInHeaderRegion: () => boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import 'intersection-observer';
|
|
2
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface HorizontalScrollMenuProps extends WithChildrenProp {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const HorizontalScrollMenu: React.FC<HorizontalScrollMenuProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BoxProps, HeadingTags } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type TagColor = 'blue' | 'green' | 'pink';
|
|
4
|
+
export interface InfoCardProps {
|
|
5
|
+
href: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
topText: string;
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
body?: string;
|
|
11
|
+
bottomLeftText?: string;
|
|
12
|
+
bottomRightTagText?: string;
|
|
13
|
+
bottomRightTagColor?: TagColor;
|
|
14
|
+
cardHeight?: string | number;
|
|
15
|
+
cardPadding?: BoxProps['p'];
|
|
16
|
+
titleHeadingLevel?: HeadingTags;
|
|
17
|
+
rightContent?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare const InfoCard: React.FC<InfoCardProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useKonamimojisplosion: (onActivate?: () => void) => void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ButtonProps } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface CTAProps extends Pick<ButtonProps, 'children'> {
|
|
4
|
+
href: string;
|
|
5
|
+
onClick?: React.MouseEventHandler;
|
|
6
|
+
buttonType?: 'cta' | 'fill';
|
|
7
|
+
mode?: 'light' | 'dark';
|
|
8
|
+
}
|
|
9
|
+
export declare const CTA: React.FC<CTAProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BoxProps, WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LandingPageBaseProps } from './types';
|
|
4
|
+
declare const Image: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
+
} & BoxProps, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
8
|
+
export type FeaturedImageProps = {
|
|
9
|
+
src: string;
|
|
10
|
+
alt: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const FeaturedImage: React.FC<FeaturedImageProps>;
|
|
13
|
+
export type FeaturedIconProps = {
|
|
14
|
+
src: string;
|
|
15
|
+
alt: string;
|
|
16
|
+
props?: Omit<React.ComponentProps<typeof Image>, 'src' | 'alt' | 'data-testid'>;
|
|
17
|
+
};
|
|
18
|
+
export declare const FeaturedIcon: React.FC<FeaturedIconProps>;
|
|
19
|
+
export declare const FeaturedStat: React.FC<WithChildrenProp>;
|
|
20
|
+
export interface FeaturedTitleProps extends WithChildrenProp {
|
|
21
|
+
as: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
22
|
+
props?: Omit<BoxProps, 'as' | 'children'>;
|
|
23
|
+
}
|
|
24
|
+
export declare const FeaturedTitle: React.FC<FeaturedTitleProps>;
|
|
25
|
+
export type FeaturedDescriptionProps = Pick<LandingPageBaseProps, 'desc' | 'onAnchorClick'>;
|
|
26
|
+
export declare const FeaturedDescription: React.FC<FeaturedDescriptionProps>;
|
|
27
|
+
export interface FeatureProps extends WithChildrenProp {
|
|
28
|
+
testId?: string;
|
|
29
|
+
props?: Omit<BoxProps, 'as' | 'children'>;
|
|
30
|
+
}
|
|
31
|
+
export declare const Feature: React.FC<FeatureProps>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LandingPageBaseProps } from './types';
|
|
4
|
+
export interface PageFaqsProps extends LandingPageBaseProps, WithChildrenProp {
|
|
5
|
+
faqs?: {
|
|
6
|
+
question: string;
|
|
7
|
+
answer: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
export declare const PageFaqs: React.FC<PageFaqsProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { LandingPageBaseProps } from './types';
|
|
4
|
+
export interface PageFeaturesProps extends LandingPageBaseProps, WithChildrenProp {
|
|
5
|
+
maxCols?: 1 | 2 | 3 | 4;
|
|
6
|
+
featuresMedia?: 'image' | 'icon' | 'stat';
|
|
7
|
+
features: {
|
|
8
|
+
title?: string;
|
|
9
|
+
desc?: string;
|
|
10
|
+
imgSrc?: string;
|
|
11
|
+
imgAlt?: string;
|
|
12
|
+
statText?: string;
|
|
13
|
+
testId?: string;
|
|
14
|
+
}[];
|
|
15
|
+
}
|
|
16
|
+
export declare const PageFeatures: React.FC<PageFeaturesProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PageFeaturesProps } from './PageFeatures';
|
|
3
|
+
import { Eyebrow } from './PageSingleFeature';
|
|
4
|
+
export interface PageFeaturesEnhancedProps extends PageFeaturesProps {
|
|
5
|
+
eyebrow?: Eyebrow;
|
|
6
|
+
}
|
|
7
|
+
export declare const PageFeaturesEnhanced: React.FC<PageFeaturesEnhancedProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { FeatureListItem } from '../FeatureList';
|
|
4
|
+
import { Eyebrow } from './PageSingleFeature';
|
|
5
|
+
import { LandingPageBaseProps } from './types';
|
|
6
|
+
export interface PageFeaturesWithReferencesProps extends LandingPageBaseProps, WithChildrenProp {
|
|
7
|
+
/**
|
|
8
|
+
* Object containing eyebrow text shown above title and optional accent boolean
|
|
9
|
+
*/
|
|
10
|
+
eyebrow?: Eyebrow;
|
|
11
|
+
maxCols?: 1 | 2 | 3 | 4;
|
|
12
|
+
featureList?: FeatureListItem[];
|
|
13
|
+
rightCoverImage?: {
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
16
|
+
rightCoverPattern?: 'DotLoose' | 'DotDense';
|
|
17
|
+
showImageOnMobile?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare const PageFeaturesWithReferences: React.FC<PageFeaturesWithReferencesProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PageSingleFeatureProps } from './PageSingleFeature';
|
|
3
|
+
export type PageHeroProps = Omit<PageSingleFeatureProps, 'mediaWidth' | 'hideImageOnMobile' | 'isPageHeading'> & {
|
|
4
|
+
showImageOnMobile?: boolean;
|
|
5
|
+
textLength?: 'short' | 'long';
|
|
6
|
+
};
|
|
7
|
+
export declare const PageHero: React.FC<PageHeroProps>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ColumnProps, VideoProps } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { FeatureListItem } from '../FeatureList';
|
|
4
|
+
import { CtaProps, LandingPageBaseProps } from './types';
|
|
5
|
+
export type ColumnSize = Extract<ColumnProps['size'], number>;
|
|
6
|
+
export type MediaColumnsSize = Extract<ColumnSize, 3 | 4 | 5 | 6>;
|
|
7
|
+
export type ImageProps = {
|
|
8
|
+
src: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
};
|
|
11
|
+
export type MediaProps = ({
|
|
12
|
+
type: 'image';
|
|
13
|
+
linkUrl?: string;
|
|
14
|
+
} & ImageProps) | ({
|
|
15
|
+
type: 'video';
|
|
16
|
+
} & VideoProps);
|
|
17
|
+
export type Eyebrow = {
|
|
18
|
+
accent?: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
};
|
|
21
|
+
export type FeaturedImageProps = ImageProps & {
|
|
22
|
+
linkUrl?: string;
|
|
23
|
+
hideImageOnMobile?: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const FeaturedImage: React.FC<FeaturedImageProps>;
|
|
26
|
+
export type PageSingleFeatureProps = LandingPageBaseProps & {
|
|
27
|
+
/**
|
|
28
|
+
* Object containing eyebrow text shown above title and optional accent boolean
|
|
29
|
+
*/
|
|
30
|
+
eyebrow?: Eyebrow;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the image should be hidden on mobile. Note that videos are always shown on mobile for accessibility
|
|
33
|
+
*/
|
|
34
|
+
hideImageOnMobile?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If the heading is the page h1 heading or a smaller heading
|
|
37
|
+
*/
|
|
38
|
+
isPageHeading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to show an image or a video, with the associated props to do so
|
|
41
|
+
*/
|
|
42
|
+
media?: MediaProps;
|
|
43
|
+
/**
|
|
44
|
+
* Number of columns out of 12 that the media should take up, defaults to 6. The remaining columns will be used for the text
|
|
45
|
+
*/
|
|
46
|
+
mediaWidth?: MediaColumnsSize;
|
|
47
|
+
/**
|
|
48
|
+
* Optional array of additional CTAs if more than one CTA is added to the section. These will appear after the provided singular CTA.
|
|
49
|
+
*/
|
|
50
|
+
additionalCtas?: CtaProps[];
|
|
51
|
+
/**
|
|
52
|
+
* Optional array of features to display in a list.
|
|
53
|
+
*/
|
|
54
|
+
featureList?: FeatureListItem[];
|
|
55
|
+
};
|
|
56
|
+
export declare const PageSingleFeature: React.FC<PageSingleFeatureProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Eyebrow } from './PageSingleFeature';
|
|
4
|
+
import { LandingPageBaseProps } from './types';
|
|
5
|
+
export interface LiveLearningTestimonialItem {
|
|
6
|
+
image: {
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
firstName: string;
|
|
10
|
+
lastName: string;
|
|
11
|
+
jobTitle: string;
|
|
12
|
+
company: string;
|
|
13
|
+
shortQuote: string;
|
|
14
|
+
longQuote: string;
|
|
15
|
+
href: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PageTestimonialsProps extends LandingPageBaseProps, WithChildrenProp {
|
|
18
|
+
eyebrow?: Eyebrow;
|
|
19
|
+
testimonials?: LiveLearningTestimonialItem[];
|
|
20
|
+
}
|
|
21
|
+
export declare const PageTestimonials: React.FC<PageTestimonialsProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LandingPageBaseProps } from './types';
|
|
3
|
+
export type PageVideo = {
|
|
4
|
+
url: string;
|
|
5
|
+
title: string;
|
|
6
|
+
placeholderImage?: string;
|
|
7
|
+
};
|
|
8
|
+
export type PageVideoGalleryProps = LandingPageBaseProps & {
|
|
9
|
+
videos: PageVideo[];
|
|
10
|
+
};
|
|
11
|
+
export declare const PageVideoGallery: React.FC<PageVideoGalleryProps>;
|