@codecademy/brand 1.42.1-alpha.c4dacfe122.0 → 1.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/package.json +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.d.ts +0 -8
- package/dist/AppBar/AppBarSection.d.ts +0 -10
- package/dist/AppBar/index.d.ts +0 -9
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +0 -14
- package/dist/AppBarDeprecated/index.d.ts +0 -14
- package/dist/AppBarDeprecated/styles/index.module.scss +0 -39
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +0 -7
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -92
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +0 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +0 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +0 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +0 -3
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +0 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +0 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +0 -12
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +0 -48
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +0 -15
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +0 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +0 -6
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +0 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +0 -18
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +0 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +0 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +0 -10
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +0 -7
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +0 -13
- package/dist/AppHeader/Search/DefaultResults.d.ts +0 -10
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +0 -7
- package/dist/AppHeader/Search/SearchButton.d.ts +0 -2
- package/dist/AppHeader/Search/SearchPane.d.ts +0 -6
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +0 -18
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +0 -5
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +0 -1
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +0 -37
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +0 -2
- package/dist/AppHeader/Search/consts.d.ts +0 -23
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +0 -5
- package/dist/AppHeader/Search/safelyRedirect.d.ts +0 -5
- package/dist/AppHeader/Search/types.d.ts +0 -23
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +0 -6
- package/dist/AppHeader/index.d.ts +0 -24
- package/dist/AppHeader/shared/elements.d.ts +0 -84
- package/dist/AppHeader/shared/index.d.ts +0 -4
- package/dist/AppHeader/shared/keyboardNav.d.ts +0 -23
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +0 -2
- package/dist/AppHeader/shared/testTypes.d.ts +0 -0
- package/dist/AppHeader/shared/types.d.ts +0 -107
- package/dist/AppHeader/shared/utils.d.ts +0 -16
- package/dist/AppHeader/utils/types.d.ts +0 -8
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +0 -5
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +0 -9
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +0 -13
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +0 -9
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +0 -7
- package/dist/AppHeaderMobile/index.d.ts +0 -20
- package/dist/Avatar/Avatar.stories.d.ts +0 -6
- package/dist/Avatar/index.d.ts +0 -36
- package/dist/AvatarChooser/index.d.ts +0 -12
- package/dist/BackToTopAnchor/index.d.ts +0 -13
- package/dist/Banner/index.d.ts +0 -21
- package/dist/BetaSticker/index.d.ts +0 -6
- package/dist/CareerPathCard/index.d.ts +0 -19
- package/dist/Carousel/elements.d.ts +0 -27
- package/dist/Carousel/index.d.ts +0 -24
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +0 -2
- package/dist/CertificationPathCard/index.d.ts +0 -20
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +0 -11
- package/dist/CommunityEventCard/index.d.ts +0 -28
- package/dist/CommunityEventToast/index.d.ts +0 -6
- package/dist/ContentGroupBaseCard/helpers.d.ts +0 -4
- package/dist/ContentGroupBaseCard/index.d.ts +0 -31
- package/dist/ContentGroupBaseCard/shared.d.ts +0 -8
- package/dist/ContentGroupBaseCard/types.d.ts +0 -10
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +0 -3
- package/dist/CourseCard/index.d.ts +0 -20
- package/dist/CurriculumCard/BottomTag/index.d.ts +0 -7
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +0 -8
- package/dist/CurriculumCard/Difficulty/index.d.ts +0 -3
- package/dist/CurriculumCard/Difficulty/types.d.ts +0 -22
- package/dist/CurriculumCard/Footer/index.d.ts +0 -10
- package/dist/CurriculumCard/Image/index.d.ts +0 -9
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +0 -1
- package/dist/CurriculumCard/Subtitle/index.d.ts +0 -8
- package/dist/CurriculumCard/index.d.ts +0 -59
- package/dist/DropdownButton/DropdownList.d.ts +0 -17
- package/dist/DropdownButton/index.d.ts +0 -76
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +0 -14
- package/dist/EditorialImage/index.d.ts +0 -10
- package/dist/EditorialImage/styles.module.scss +0 -36
- package/dist/EmptySection/index.d.ts +0 -28
- package/dist/ErrorContents/index.d.ts +0 -8
- package/dist/FeatureList/index.d.ts +0 -11
- package/dist/GlobalFooter/FooterHeading.d.ts +0 -9
- package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +0 -6
- package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +0 -5
- package/dist/GlobalFooter/FooterLegal/index.d.ts +0 -7
- package/dist/GlobalFooter/FooterLinks.d.ts +0 -18
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +0 -7
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +0 -12
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +0 -7
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +0 -2
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +0 -4
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +0 -3
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +0 -4
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +0 -2
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +0 -45
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
- package/dist/GlobalFooter/FooterNavLinks/index.d.ts +0 -4
- package/dist/GlobalFooter/FooterSubHeading.d.ts +0 -9
- package/dist/GlobalFooter/index.d.ts +0 -23
- package/dist/GlobalFooter/types.d.ts +0 -13
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +0 -25
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +0 -28
- package/dist/GlobalHeader/index.d.ts +0 -10
- package/dist/GlobalHeader/types.d.ts +0 -89
- package/dist/GlobalHeader/urlHelpers.d.ts +0 -2
- package/dist/GlobalPage/index.d.ts +0 -34
- package/dist/Grid/GridCollapse.d.ts +0 -41
- package/dist/Grid/Subgrid.d.ts +0 -23
- package/dist/Grid/getCSSFromColumnCount.d.ts +0 -6
- package/dist/Grid/index.d.ts +0 -3
- package/dist/HeaderHeightArea/index.d.ts +0 -9
- package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +0 -1
- package/dist/HorizontalScrollMenu/index.d.ts +0 -7
- package/dist/HubCard/index.d.ts +0 -8
- package/dist/InfoCard/index.d.ts +0 -19
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +0 -5
- package/dist/Konamimojisplosion/index.d.ts +0 -2
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +0 -1
- package/dist/LandingPage/CTA.d.ts +0 -9
- package/dist/LandingPage/Description.d.ts +0 -6
- package/dist/LandingPage/Feature.d.ts +0 -32
- package/dist/LandingPage/PageFAQs.d.ts +0 -10
- package/dist/LandingPage/PageFeatures.d.ts +0 -16
- package/dist/LandingPage/PageFeaturesEnhanced.d.ts +0 -7
- package/dist/LandingPage/PageFeaturesWithReferences.d.ts +0 -19
- package/dist/LandingPage/PageHero.d.ts +0 -7
- package/dist/LandingPage/PagePrefooter.d.ts +0 -5
- package/dist/LandingPage/PageSingleFeature.d.ts +0 -56
- package/dist/LandingPage/PageTestimonials.d.ts +0 -21
- package/dist/LandingPage/PageVideoGallery.d.ts +0 -11
- package/dist/LandingPage/Title.d.ts +0 -23
- package/dist/LandingPage/TitleWithEyebrow.d.ts +0 -11
- package/dist/LandingPage/index.d.ts +0 -14
- package/dist/LandingPage/types.d.ts +0 -28
- package/dist/LayoutMenu/AccordionMenu.d.ts +0 -25
- package/dist/LayoutMenu/LayoutMenu.d.ts +0 -43
- package/dist/LayoutMenu/LayoutMenuSection.d.ts +0 -16
- package/dist/LayoutMenu/SectionItemLink.d.ts +0 -7
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +0 -3
- package/dist/LayoutMenu/index.d.ts +0 -3
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +0 -21
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +0 -39
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +0 -10
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +0 -8
- package/dist/LayoutMenuVariant/index.d.ts +0 -2
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +0 -18
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +0 -10
- package/dist/LearningOutcomeBadges/index.d.ts +0 -2
- package/dist/LearningOutcomeCard/index.d.ts +0 -29
- package/dist/LearningOutcomePopover/index.d.ts +0 -10
- package/dist/LearningOutcomeTile/Tile.d.ts +0 -7
- package/dist/LearningOutcomeTile/index.d.ts +0 -2
- package/dist/LearningOutcomeTile/types.d.ts +0 -48
- package/dist/ListSection/index.d.ts +0 -21
- package/dist/Loading/index.d.ts +0 -5
- package/dist/Loading/styles.module.scss +0 -131
- package/dist/LoadingCurriculumCard/index.d.ts +0 -7
- package/dist/Logo/CodecademyLogo.d.ts +0 -2
- package/dist/Logo/CodecademyPremiumLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProAltLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProLockupLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProMonoLogo.d.ts +0 -2
- package/dist/Logo/CodecademyProgramLogo.d.ts +0 -2
- package/dist/Logo/CodecademyTeamsLogo.d.ts +0 -2
- package/dist/Logo/index.d.ts +0 -8
- package/dist/LogoFromSkillsoft/index.d.ts +0 -227
- package/dist/LogoLXStudio/index.d.ts +0 -3
- package/dist/LogoProCutout/index.d.ts +0 -8
- package/dist/LogoProCutoutTransparent/index.d.ts +0 -7
- package/dist/MarketingToaster/index.d.ts +0 -8
- package/dist/NotFoundContent/404.svg +0 -1
- package/dist/NotFoundContent/index.d.ts +0 -8
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +0 -7
- package/dist/NotificationList/EmptyNotification/index.d.ts +0 -1
- package/dist/NotificationList/NotificationItem.d.ts +0 -8
- package/dist/NotificationList/index.d.ts +0 -9
- package/dist/NotificationList/typings.d.ts +0 -16
- package/dist/Notifications/NotificationBell.d.ts +0 -10
- package/dist/Notifications/NotificationsContents.d.ts +0 -3
- package/dist/Notifications/NotificationsDropdown.d.ts +0 -2
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +0 -2
- package/dist/Notifications/__fixtures__/stubs.d.ts +0 -2
- package/dist/Notifications/constants.d.ts +0 -4
- package/dist/Notifications/elements.d.ts +0 -12
- package/dist/Notifications/types.d.ts +0 -24
- package/dist/Notifications/useHeaderNotifications.d.ts +0 -10
- package/dist/Notifications/useNotificationButtons.d.ts +0 -9
- package/dist/PageAlerts/PageAlerts.d.ts +0 -10
- package/dist/PageAlerts/PageAlertsProvider.d.ts +0 -11
- package/dist/PageAlerts/index.d.ts +0 -3
- package/dist/PageAlerts/types.d.ts +0 -17
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +0 -19
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +0 -1
- package/dist/PageSection/index.d.ts +0 -17
- package/dist/PastDue/PastDueModalContents/index.d.ts +0 -8
- package/dist/PastDue/index.d.ts +0 -2
- package/dist/PastDue/pastDueMessages.d.ts +0 -6
- package/dist/PausableImage/BaseImage/index.d.ts +0 -15
- package/dist/PausableImage/index.d.ts +0 -11
- package/dist/PlanCard/PlanCardBanner.d.ts +0 -7
- package/dist/PlanCard/PlanFeature.d.ts +0 -9
- package/dist/PlanCard/PopularBadge.d.ts +0 -3
- package/dist/PlanCard/PricingAmount.d.ts +0 -14
- package/dist/PlanCard/RecommendedBadge.d.ts +0 -3
- package/dist/PlanCard/consts.d.ts +0 -14
- package/dist/PlanCard/index.d.ts +0 -18
- package/dist/PlanCard/types.d.ts +0 -39
- package/dist/PlanCardTeams/consts.d.ts +0 -9
- package/dist/PlanCardTeams/index.d.ts +0 -8
- package/dist/PricingSection/PlanFeature.d.ts +0 -10
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +0 -10
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +0 -3
- package/dist/PricingSection/PricingCard/consts.d.ts +0 -14
- package/dist/PricingSection/PricingCard/index.d.ts +0 -12
- package/dist/PricingSection/ProductCTA.d.ts +0 -6
- package/dist/PricingSection/Products.d.ts +0 -11
- package/dist/PricingSection/config.d.ts +0 -8
- package/dist/PricingSection/index.d.ts +0 -13
- package/dist/PricingSection/types.d.ts +0 -30
- package/dist/ProLabel/index.d.ts +0 -376
- package/dist/ProLogo/index.d.ts +0 -15
- package/dist/ProLogoAlt/index.d.ts +0 -9
- package/dist/ProductFeatureShowcase/index.d.ts +0 -16
- package/dist/QuizScore/index.d.ts +0 -12
- package/dist/RatingsBar/index.d.ts +0 -12
- package/dist/ResourceCard/index.d.ts +0 -15
- package/dist/ScoreSummary/SubScores.d.ts +0 -28
- package/dist/ScoreSummary/helpers.d.ts +0 -11
- package/dist/ScoreSummary/index.d.ts +0 -21
- package/dist/ScoreSummary/types.d.ts +0 -310
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +0 -2
- package/dist/SkillPathCard/index.d.ts +0 -17
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +0 -13
- package/dist/SocialMediaSharing/index.d.ts +0 -49
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +0 -1
- package/dist/SocialMediaSharingDropdown/index.d.ts +0 -15
- package/dist/Testimonial/index.d.ts +0 -45
- package/dist/assets/darkQuotes.svg +0 -1
- package/dist/assets/dots.svg +0 -1
- package/dist/assets/lightQuotes.svg +0 -1
- package/dist/assets/navyQuotes.svg +0 -5
- package/dist/assets/orange_squiggle.svg +0 -1
- package/dist/index.d.ts +0 -88
- package/dist/lib/breakpointHooks/index.d.ts +0 -43
- package/dist/lib/catalogList/index.d.ts +0 -5
- package/dist/lib/resourcesList/index.d.ts +0 -5
- package/dist/png.d.ts +0 -4
- package/dist/react-freezeframe.d.ts +0 -1
- package/dist/remoteAssets/components.d.ts +0 -1
- package/dist/stories/Atoms/Avatar.stories.d.ts +0 -6
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +0 -7
- package/dist/stories/Atoms/Logos/Logo.stories.d.ts +0 -13
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +0 -6
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +0 -6
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +0 -6
- package/dist/stories/Atoms/Subgrid.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppBar.stories.d.ts +0 -15
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +0 -8
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +0 -7
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +0 -7
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +0 -6
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +0 -5
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +0 -7
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +0 -10
- package/dist/stories/Molecules/Banner.stories.d.ts +0 -16
- package/dist/stories/Molecules/Carousel.stories.d.ts +0 -7
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +0 -13
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +0 -16
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +0 -10
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +0 -9
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +0 -10
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +0 -6
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +0 -9
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +0 -11
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +0 -6
- package/dist/stories/Molecules/EmptySection.stories.d.ts +0 -13
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +0 -7
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +0 -6
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +0 -1
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +0 -6
- package/dist/stories/Molecules/HubCard.stories.d.ts +0 -7
- package/dist/stories/Molecules/InfoCard.stories.d.ts +0 -7
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +0 -10
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +0 -6
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +0 -6
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +0 -5
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +0 -10
- package/dist/stories/Molecules/ListSection.stories.d.ts +0 -9
- package/dist/stories/Molecules/Loading.stories.d.ts +0 -6
- package/dist/stories/Molecules/NotificationList.stories.d.ts +0 -7
- package/dist/stories/Molecules/PageSection.stories.d.ts +0 -8
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +0 -10
- package/dist/stories/Molecules/PausableImage.stories.d.ts +0 -6
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +0 -6
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +0 -6
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +0 -6
- package/dist/stories/Molecules/Testimonial.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +0 -9
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +0 -6
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +0 -8
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +0 -10
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +0 -6
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +0 -9
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +0 -10
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +0 -9
- package/dist/stories/Organisms/PageAlerts.example.d.ts +0 -2
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +0 -7
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +0 -14
- package/dist/stories/Organisms/PageHero.stories.d.ts +0 -17
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +0 -7
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +0 -10
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +0 -18
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +0 -10
- package/dist/stories/Organisms/PlanCard.stories.d.ts +0 -9
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +0 -7
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +0 -12
- package/dist/svg.d.ts +0 -8
- package/dist/theme.d.ts +0 -5
package/dist/Grid/Subgrid.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
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>;
|
package/dist/Grid/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useIsInHeaderRegion: () => boolean;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
package/dist/HubCard/index.d.ts
DELETED
package/dist/InfoCard/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useKonamimojisplosion: (onActivate?: () => void) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
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>;
|
|
@@ -1,32 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,19 +0,0 @@
|
|
|
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>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,56 +0,0 @@
|
|
|
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>;
|
|
@@ -1,21 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,23 +0,0 @@
|
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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';
|
|
@@ -1,28 +0,0 @@
|
|
|
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'];
|
|
@@ -1,25 +0,0 @@
|
|
|
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>;
|
|
@@ -1,43 +0,0 @@
|
|
|
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>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1,21 +0,0 @@
|
|
|
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>;
|
|
@@ -1,39 +0,0 @@
|
|
|
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>;
|
|
@@ -1,10 +0,0 @@
|
|
|
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>;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|