@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,23 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface TitleProps extends WithChildrenProp {
|
|
4
|
+
isPageHeading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const titleProps: {
|
|
7
|
+
readonly heading: {
|
|
8
|
+
readonly as: "h1";
|
|
9
|
+
readonly fontSize: {
|
|
10
|
+
readonly _: 34;
|
|
11
|
+
readonly sm: 44;
|
|
12
|
+
readonly lg: 64;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly subheading: {
|
|
16
|
+
readonly as: "h2";
|
|
17
|
+
readonly fontSize: {
|
|
18
|
+
readonly _: 26;
|
|
19
|
+
readonly lg: 34;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const Title: React.FC<TitleProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextProps } from '@codecademy/gamut';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Eyebrow } from './PageSingleFeature';
|
|
4
|
+
export interface TitleWithEyebrowProps {
|
|
5
|
+
eyebrow: Eyebrow;
|
|
6
|
+
title: string | undefined;
|
|
7
|
+
isPageHeading: boolean | undefined;
|
|
8
|
+
titleStyle?: Omit<TextProps, 'as' | 'truncateLines' | 'truncate'>;
|
|
9
|
+
eyebrowStyle?: Omit<TextProps, 'as' | 'truncateLines' | 'truncate'>;
|
|
10
|
+
}
|
|
11
|
+
export declare const TitleWithEyebrow: React.FC<TitleWithEyebrowProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './PageHero';
|
|
2
|
+
export * from './PageSingleFeature';
|
|
3
|
+
export * from './PageFeatures';
|
|
4
|
+
export * from './PageFeaturesEnhanced';
|
|
5
|
+
export * from './PageFeaturesWithReferences';
|
|
6
|
+
export * from './PagePrefooter';
|
|
7
|
+
export * from './PageVideoGallery';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export * from './Title';
|
|
10
|
+
export * from './TitleWithEyebrow';
|
|
11
|
+
export * from './Description';
|
|
12
|
+
export * from './PageTestimonials';
|
|
13
|
+
export * from './PageFAQs';
|
|
14
|
+
export * from '../FeatureList';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type LandingPageBaseProps = {
|
|
2
|
+
title?: string;
|
|
3
|
+
/**
|
|
4
|
+
* Body text as markdown
|
|
5
|
+
*/
|
|
6
|
+
desc?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback when a markdown anchor tag is clicked
|
|
9
|
+
*/
|
|
10
|
+
onAnchorClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
11
|
+
/**
|
|
12
|
+
* text: button text
|
|
13
|
+
*
|
|
14
|
+
* href: url to navigate to when clicking the button
|
|
15
|
+
*
|
|
16
|
+
* onClick: callback when the button is clicked
|
|
17
|
+
*
|
|
18
|
+
* buttonType: whether to show a CTA button or a regular fill button, defaults to CTA button
|
|
19
|
+
*/
|
|
20
|
+
cta?: {
|
|
21
|
+
text: string;
|
|
22
|
+
href: string;
|
|
23
|
+
onClick?: React.MouseEventHandler;
|
|
24
|
+
buttonType?: 'cta' | 'fill';
|
|
25
|
+
};
|
|
26
|
+
testId?: string;
|
|
27
|
+
};
|
|
28
|
+
export type CtaProps = LandingPageBaseProps['cta'];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Scale } from '@codecademy/variance/dist/types/config';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type SectionItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
href: string;
|
|
7
|
+
onClick: (event: React.MouseEvent) => void;
|
|
8
|
+
badge?: JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export type Section = {
|
|
11
|
+
title: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
items: SectionItem[];
|
|
14
|
+
};
|
|
15
|
+
export type AccordionMenuProps = {
|
|
16
|
+
section: Section;
|
|
17
|
+
onSectionToggle: (sectionSlug: string) => void;
|
|
18
|
+
onItemClick: () => void;
|
|
19
|
+
selectedItem?: string;
|
|
20
|
+
verticalSpacing?: Scale<{
|
|
21
|
+
readonly property: 'padding';
|
|
22
|
+
readonly scale: 'spacing';
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
export declare const AccordionMenu: React.FC<AccordionMenuProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { Scale } from '@codecademy/variance/dist/types/config';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Section, SectionItem } from './AccordionMenu';
|
|
5
|
+
export interface LayoutMenuProps extends WithChildrenProp {
|
|
6
|
+
/**
|
|
7
|
+
* Accessibility label for the mobile Flyout's close button.
|
|
8
|
+
*/
|
|
9
|
+
closeLabel: string;
|
|
10
|
+
/**
|
|
11
|
+
* An array of sections containing the title, slug, and items, each of which will become an accordion. Each item contains a title, slug, and onClick.
|
|
12
|
+
*/
|
|
13
|
+
sections: Section[];
|
|
14
|
+
/**
|
|
15
|
+
* The slug of the current selected item
|
|
16
|
+
*/
|
|
17
|
+
selectedItem?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Callback to be run on click of the accordion button
|
|
20
|
+
*/
|
|
21
|
+
onSectionToggle: (sectionSlug: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Text shown in mobile button that opens flyout on click
|
|
24
|
+
*/
|
|
25
|
+
mobileButtonText: string;
|
|
26
|
+
/**
|
|
27
|
+
* Breakpoint above which the menu button displays as a full sidebar
|
|
28
|
+
*/
|
|
29
|
+
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
30
|
+
/**
|
|
31
|
+
* An array of section items, each of which become an additional link on top of the accordion section.
|
|
32
|
+
*/
|
|
33
|
+
topLinkSections?: SectionItem[];
|
|
34
|
+
/**
|
|
35
|
+
* Set fixed height for menu with overflow
|
|
36
|
+
*/
|
|
37
|
+
menuHeight?: 'sm' | 'md' | 'lg';
|
|
38
|
+
verticalSpacing?: Scale<{
|
|
39
|
+
readonly property: 'padding';
|
|
40
|
+
readonly scale: 'spacing';
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
export declare const LayoutMenu: React.FC<LayoutMenuProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { system } from '@codecademy/gamut-styles';
|
|
2
|
+
import { StyleProps } from '@codecademy/variance';
|
|
3
|
+
import { Scale } from '@codecademy/variance/dist/types/config';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { SectionItem } from './AccordionMenu';
|
|
6
|
+
export type LayoutMenuSectionStyles = StyleProps<typeof system.space>;
|
|
7
|
+
export type LayoutMenuSectionProps = LayoutMenuSectionStyles & {
|
|
8
|
+
items: SectionItem[];
|
|
9
|
+
selectedItem?: string;
|
|
10
|
+
onItemClick: () => void;
|
|
11
|
+
verticalSpacing?: Scale<{
|
|
12
|
+
readonly property: 'padding';
|
|
13
|
+
readonly scale: 'spacing';
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export declare const LayoutMenuSection: React.FC<LayoutMenuSectionProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface SectionItemLinkProps extends WithChildrenProp {
|
|
4
|
+
onClick: (event: React.MouseEvent) => void;
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const SectionItemLink: React.FC<SectionItemLinkProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Anchor } from '@codecademy/gamut';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type SectionItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
href: string;
|
|
7
|
+
onClick: (event: React.MouseEvent) => void;
|
|
8
|
+
badge?: JSX.Element;
|
|
9
|
+
variant?: React.ComponentProps<typeof Anchor>['variant'];
|
|
10
|
+
};
|
|
11
|
+
export type Section = {
|
|
12
|
+
title: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
items: SectionItem[];
|
|
15
|
+
};
|
|
16
|
+
export type AccordionMenuProps = {
|
|
17
|
+
section: Section;
|
|
18
|
+
onSectionToggle: (sectionSlug: string) => void;
|
|
19
|
+
onItemClick: () => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const AccordionMenu: React.FC<AccordionMenuProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { GamutIconProps } from '@codecademy/gamut-icons';
|
|
3
|
+
import React, { ComponentType } from 'react';
|
|
4
|
+
import { Section, SectionItem } from './AccordionMenu';
|
|
5
|
+
export interface LayoutMenuProps extends WithChildrenProp {
|
|
6
|
+
/**
|
|
7
|
+
* Accessibility label for the mobile Flyout's close button.
|
|
8
|
+
*/
|
|
9
|
+
closeLabel: string;
|
|
10
|
+
/**
|
|
11
|
+
* An array of sections containing the title, slug, and items, each of which will become an accordion. Each item contains a title, slug, and onClick.
|
|
12
|
+
*/
|
|
13
|
+
sections: Section[];
|
|
14
|
+
/**
|
|
15
|
+
* Callback to be run on click of the accordion button
|
|
16
|
+
*/
|
|
17
|
+
onSectionToggle: (sectionSlug: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Text shown in mobile button that opens flyout on click
|
|
20
|
+
*/
|
|
21
|
+
mobileButtonText: string;
|
|
22
|
+
/**
|
|
23
|
+
* Icon shown in mobile button that opens flyout on click
|
|
24
|
+
*/
|
|
25
|
+
mobileButtonIcon?: ComponentType<GamutIconProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Breakpoint above which the menu button displays as a full sidebar
|
|
28
|
+
*/
|
|
29
|
+
breakpoint?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
30
|
+
/**
|
|
31
|
+
* An array of section items, each of which become an additional link on top of the accordion section.
|
|
32
|
+
*/
|
|
33
|
+
topLinkSections?: SectionItem[];
|
|
34
|
+
/**
|
|
35
|
+
* Set fixed height for menu with overflow
|
|
36
|
+
*/
|
|
37
|
+
menuHeight?: 'sm' | 'md' | 'lg';
|
|
38
|
+
}
|
|
39
|
+
export declare const LayoutMenu: React.FC<LayoutMenuProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { system } from '@codecademy/gamut-styles';
|
|
2
|
+
import { StyleProps } from '@codecademy/variance';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SectionItem } from './AccordionMenu';
|
|
5
|
+
export type LayoutMenuSectionStyles = StyleProps<typeof system.space>;
|
|
6
|
+
export type LayoutMenuSectionProps = LayoutMenuSectionStyles & {
|
|
7
|
+
items: SectionItem[];
|
|
8
|
+
onItemClick: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const LayoutMenuSection: React.FC<LayoutMenuSectionProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Anchor, WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SectionItemLinkProps extends WithChildrenProp {
|
|
4
|
+
onClick: (event: React.MouseEvent) => void;
|
|
5
|
+
href: string;
|
|
6
|
+
variant?: React.ComponentProps<typeof Anchor>['variant'];
|
|
7
|
+
}
|
|
8
|
+
export declare const SectionItemLink: React.FC<SectionItemLinkProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TextProps } from '@codecademy/gamut';
|
|
2
|
+
export declare enum LearningOutcomeLevels {
|
|
3
|
+
One = 1,
|
|
4
|
+
Two = 2,
|
|
5
|
+
Three = 3
|
|
6
|
+
}
|
|
7
|
+
export declare const learningOutcomeLabels: {
|
|
8
|
+
1: string;
|
|
9
|
+
2: string;
|
|
10
|
+
3: string;
|
|
11
|
+
};
|
|
12
|
+
interface LearningOutcomeLevelBadgeProps extends Pick<TextProps, 'textColor'> {
|
|
13
|
+
level: LearningOutcomeLevels;
|
|
14
|
+
size?: 'sm' | 'base';
|
|
15
|
+
removeBackground?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const LearningOutcomeLevelBadge: React.FC<LearningOutcomeLevelBadgeProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const LearningOutcomeLowAssessmentDot: import("@emotion/styled").StyledComponent<{
|
|
2
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
3
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
4
|
+
} & import("@codecademy/gamut").BoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
} & {
|
|
7
|
+
hasBorder?: boolean;
|
|
8
|
+
small?: boolean;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const LearningOutcomeLowAssessmentBadge: React.FC;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HeadingTags } from '@codecademy/gamut';
|
|
2
|
+
declare enum LearningOutcomeLevels {
|
|
3
|
+
One = 1,
|
|
4
|
+
Two = 2,
|
|
5
|
+
Three = 3
|
|
6
|
+
}
|
|
7
|
+
export declare const levelTagText: {
|
|
8
|
+
1: string;
|
|
9
|
+
2: string;
|
|
10
|
+
3: string;
|
|
11
|
+
};
|
|
12
|
+
interface LearningOutcomeSkill {
|
|
13
|
+
title?: string | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
interface LearningOutcomeCardProps {
|
|
16
|
+
level: LearningOutcomeLevels | null | undefined;
|
|
17
|
+
outcome: string;
|
|
18
|
+
headingLevel?: HeadingTags;
|
|
19
|
+
emphasized?: boolean;
|
|
20
|
+
progress?: number;
|
|
21
|
+
skills?: LearningOutcomeSkill[] | null;
|
|
22
|
+
progressUpdateData?: {
|
|
23
|
+
previousProgress: number;
|
|
24
|
+
progressDuration: number;
|
|
25
|
+
completionDelay?: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare const LearningOutcomeCard: React.FC<LearningOutcomeCardProps>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LearningOutcomePopoverDetailsProps } from '../LearningOutcomeTile/types';
|
|
2
|
+
interface LearningOutcomePopoverProps {
|
|
3
|
+
activeElRef: React.RefObject<HTMLDivElement> | React.RefObject<HTMLAnchorElement>;
|
|
4
|
+
id: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
|
|
7
|
+
horizontalOffset?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const LearningOutcomePopover: React.FC<LearningOutcomePopoverProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TileProps } from './types';
|
|
2
|
+
export declare const Tile: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
} & import("@codecademy/gamut").FlexBoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
} & TileProps, {}, {}>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LearningOutcomeLevels } from '../LearningOutcomeBadges';
|
|
2
|
+
export declare enum Progress {
|
|
3
|
+
notStarted = "notStarted",
|
|
4
|
+
inProgress = "inProgress",
|
|
5
|
+
completed = "completed"
|
|
6
|
+
}
|
|
7
|
+
export type SizeType = 'small' | 'normal';
|
|
8
|
+
export interface TileProps {
|
|
9
|
+
hover: boolean;
|
|
10
|
+
progress: Progress;
|
|
11
|
+
size: SizeType;
|
|
12
|
+
}
|
|
13
|
+
interface LearningOutcomeTileDetailsProps {
|
|
14
|
+
id: string;
|
|
15
|
+
level: LearningOutcomeLevels;
|
|
16
|
+
outcome: string;
|
|
17
|
+
percentComplete: number | undefined | null;
|
|
18
|
+
latestScore?: number | undefined | null;
|
|
19
|
+
}
|
|
20
|
+
export interface LearningOutcomePopoverDetailsProps {
|
|
21
|
+
id: string;
|
|
22
|
+
level: LearningOutcomeLevels;
|
|
23
|
+
outcome: string;
|
|
24
|
+
percentComplete: number | undefined | null;
|
|
25
|
+
latestScore?: number | undefined | null;
|
|
26
|
+
highestScore?: number | undefined | null;
|
|
27
|
+
}
|
|
28
|
+
interface WithHoverAndWithPopover {
|
|
29
|
+
learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
|
|
30
|
+
hover: true;
|
|
31
|
+
popover: true;
|
|
32
|
+
}
|
|
33
|
+
interface WithHoverAndWithoutPopover {
|
|
34
|
+
learningOutcomeDetails: LearningOutcomeTileDetailsProps;
|
|
35
|
+
hover: true;
|
|
36
|
+
popover: false;
|
|
37
|
+
}
|
|
38
|
+
interface WithoutHoverAndWithoutPopover {
|
|
39
|
+
learningOutcomeDetails: LearningOutcomeTileDetailsProps;
|
|
40
|
+
hover?: false;
|
|
41
|
+
popover?: false;
|
|
42
|
+
}
|
|
43
|
+
export type LearningOutcomeTileProps = {
|
|
44
|
+
href: string;
|
|
45
|
+
onClick?: () => void;
|
|
46
|
+
size?: SizeType;
|
|
47
|
+
} & (WithHoverAndWithPopover | WithHoverAndWithoutPopover | WithoutHoverAndWithoutPopover);
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { SectionButton } from '..';
|
|
4
|
+
export interface ListSectionProps extends WithChildrenProp {
|
|
5
|
+
title: string;
|
|
6
|
+
headerButton?: SectionButton;
|
|
7
|
+
headerSecondaryButton?: SectionButton;
|
|
8
|
+
/**
|
|
9
|
+
* Number of items to be initally displayed
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* If the initial display amount matches the number of list items, Show All button will not appear.
|
|
13
|
+
*/
|
|
14
|
+
initialDisplayAmount?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Optional callback function that will be called when the user clicks the "Show All" / "Show less" button.
|
|
17
|
+
* This is usually used for things like metrics tracking.
|
|
18
|
+
*/
|
|
19
|
+
onShowAllOrLessClick?: (showAll: boolean) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ListSection: React.FC<ListSectionProps>;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@import "~@codecademy/gamut-styles/utils";
|
|
2
|
+
|
|
3
|
+
$c-offset: 169;
|
|
4
|
+
$inner-offset: 287;
|
|
5
|
+
$outer-offset: 361;
|
|
6
|
+
$underline-offset: 77;
|
|
7
|
+
$animation-duration: 3s;
|
|
8
|
+
|
|
9
|
+
@keyframes draw-c {
|
|
10
|
+
50% {
|
|
11
|
+
stroke-dashoffset: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@keyframes draw-c-fast {
|
|
15
|
+
10% {
|
|
16
|
+
stroke-dashoffset: $c-offset;
|
|
17
|
+
}
|
|
18
|
+
50% {
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
}
|
|
21
|
+
85% {
|
|
22
|
+
stroke-dashoffset: $c-offset;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes draw-inner {
|
|
27
|
+
50% {
|
|
28
|
+
stroke-dashoffset: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@keyframes draw-inner-fast {
|
|
32
|
+
10% {
|
|
33
|
+
stroke-dashoffset: $inner-offset;
|
|
34
|
+
}
|
|
35
|
+
50% {
|
|
36
|
+
stroke-dashoffset: 0;
|
|
37
|
+
}
|
|
38
|
+
85% {
|
|
39
|
+
stroke-dashoffset: $inner-offset;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes draw-outer {
|
|
44
|
+
50% {
|
|
45
|
+
stroke-dashoffset: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@keyframes draw-outer-fast {
|
|
49
|
+
10% {
|
|
50
|
+
stroke-dashoffset: $outer-offset;
|
|
51
|
+
}
|
|
52
|
+
50% {
|
|
53
|
+
stroke-dashoffset: 0;
|
|
54
|
+
}
|
|
55
|
+
85% {
|
|
56
|
+
stroke-dashoffset: $outer-offset;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes draw-underline {
|
|
61
|
+
50% {
|
|
62
|
+
stroke-dashoffset: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
@keyframes draw-underline-fast {
|
|
66
|
+
10% {
|
|
67
|
+
stroke-dashoffset: $underline-offset;
|
|
68
|
+
}
|
|
69
|
+
50% {
|
|
70
|
+
stroke-dashoffset: 0;
|
|
71
|
+
}
|
|
72
|
+
85% {
|
|
73
|
+
stroke-dashoffset: $underline-offset;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.fullPage {
|
|
78
|
+
width: 100%;
|
|
79
|
+
height: viewport-height(-($height-header));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.loading {
|
|
83
|
+
width: px-rem(120px);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.underline {
|
|
87
|
+
stroke-dasharray: $underline-offset;
|
|
88
|
+
stroke-dashoffset: $underline-offset;
|
|
89
|
+
}
|
|
90
|
+
.c {
|
|
91
|
+
stroke-dasharray: $c-offset;
|
|
92
|
+
stroke-dashoffset: $c-offset;
|
|
93
|
+
}
|
|
94
|
+
.inner {
|
|
95
|
+
stroke-dasharray: $inner-offset;
|
|
96
|
+
stroke-dashoffset: $inner-offset;
|
|
97
|
+
}
|
|
98
|
+
.outer {
|
|
99
|
+
stroke-dasharray: $outer-offset;
|
|
100
|
+
stroke-dashoffset: $outer-offset;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.path {
|
|
104
|
+
&.underline {
|
|
105
|
+
animation: draw-underline $animation-duration infinite;
|
|
106
|
+
}
|
|
107
|
+
&.c {
|
|
108
|
+
animation: draw-c $animation-duration infinite;
|
|
109
|
+
}
|
|
110
|
+
&.outer {
|
|
111
|
+
animation: draw-outer $animation-duration infinite;
|
|
112
|
+
}
|
|
113
|
+
&.inner {
|
|
114
|
+
animation: draw-inner $animation-duration infinite;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.pathTwo {
|
|
119
|
+
&.underline {
|
|
120
|
+
animation: draw-underline-fast $animation-duration infinite;
|
|
121
|
+
}
|
|
122
|
+
&.c {
|
|
123
|
+
animation: draw-c-fast $animation-duration infinite;
|
|
124
|
+
}
|
|
125
|
+
&.outer {
|
|
126
|
+
animation: draw-outer-fast $animation-duration infinite;
|
|
127
|
+
}
|
|
128
|
+
&.inner {
|
|
129
|
+
animation: draw-inner-fast $animation-duration infinite;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
export type LogoType = 'default' | 'pro' | 'proAlt' | 'proLockup' | 'program' | 'proMono' | 'premium' | 'teams';
|
|
3
|
+
export type LogoProps = SVGProps<SVGSVGElement> & {
|
|
4
|
+
height?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
type?: LogoType;
|
|
7
|
+
};
|
|
8
|
+
export declare function Logo({ type, height, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
|