@codecademy/brand 1.35.0 → 1.36.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 +92 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
- 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/index.js +0 -4
- 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 +17 -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/index.d.ts +21 -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 +24 -0
- package/dist/GlobalFooter/types.d.ts +13 -0
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
- package/dist/GlobalHeader/index.d.ts +10 -0
- 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 +24 -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 +88 -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/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 +9 -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,10 @@
|
|
|
1
|
+
import { ButtonBaseElements } from '@codecademy/gamut';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { Notification } from '../NotificationList/typings';
|
|
4
|
+
export type NotificationBellProps = {
|
|
5
|
+
bellRef: React.RefObject<ButtonBaseElements>;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
notifications: Notification[];
|
|
9
|
+
};
|
|
10
|
+
export declare const NotificationBell: React.FC<NotificationBellProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const NotificationsWrapper: 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
|
+
export declare const NotificationDialog: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & 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>> & {
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ButtonBaseElements } from '@codecademy/gamut';
|
|
2
|
+
import { Notification } from '../NotificationList/typings';
|
|
3
|
+
export type NotificationActions = {
|
|
4
|
+
clear: () => void;
|
|
5
|
+
click: (notification: Notification) => void;
|
|
6
|
+
dismiss: (notification: Notification) => void;
|
|
7
|
+
read: (notifications: Notification[]) => void;
|
|
8
|
+
track: (target: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export type AppHeaderNotificationSettings = {
|
|
11
|
+
actions: NotificationActions;
|
|
12
|
+
notifications: Notification[];
|
|
13
|
+
onEnable: () => void;
|
|
14
|
+
};
|
|
15
|
+
export interface NotificationsProps {
|
|
16
|
+
actions: NotificationActions;
|
|
17
|
+
handleClose: () => void;
|
|
18
|
+
notifications: Notification[];
|
|
19
|
+
notificationListRef?: React.RefObject<HTMLDivElement>;
|
|
20
|
+
}
|
|
21
|
+
export interface NotificationsDropdownProps extends NotificationsProps {
|
|
22
|
+
bellRef: React.RefObject<ButtonBaseElements>;
|
|
23
|
+
isOpen: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppHeaderNotificationSettings, NotificationsDropdownProps } from './types';
|
|
2
|
+
export type HeaderNotificationProps = {
|
|
3
|
+
settings: AppHeaderNotificationSettings | undefined;
|
|
4
|
+
Renderer: React.ComponentType<NotificationsDropdownProps>;
|
|
5
|
+
};
|
|
6
|
+
export declare const useHeaderNotifications: ({ settings, Renderer, }: HeaderNotificationProps) => null[] | readonly [{
|
|
7
|
+
readonly id: "notifications";
|
|
8
|
+
readonly type: "render-element";
|
|
9
|
+
readonly renderElement: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
}, import("react/jsx-runtime").JSX.Element];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { NotificationsProps } from './types';
|
|
3
|
+
interface NotificationButtons extends Pick<NotificationsProps, 'notifications'> {
|
|
4
|
+
clearAllButton: ReactElement | null;
|
|
5
|
+
closeButton: ReactElement;
|
|
6
|
+
showMoreButton: ReactElement | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const useNotificationButtons: ({ actions, handleClose, notifications, notificationListRef, }: NotificationsProps) => NotificationButtons;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PageAlert } from './types';
|
|
3
|
+
export type PageAlertsProps = {
|
|
4
|
+
extra?: PageAlert[];
|
|
5
|
+
};
|
|
6
|
+
export declare const AlertArea: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const PageAlerts: React.FC<PageAlertsProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { PageAlert } from './types';
|
|
4
|
+
export declare const usePageAlertsContext: () => PageAlertsContextValue;
|
|
5
|
+
export type PageAlertsContextValue = {
|
|
6
|
+
alerts: PageAlert[];
|
|
7
|
+
addAlert: (alert: PageAlert) => void;
|
|
8
|
+
closeAlert: (alertMessage: string) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const PageAlertsContext: React.Context<PageAlertsContextValue>;
|
|
11
|
+
export declare const PageAlertsProvider: React.FC<WithChildrenProp>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Alert } from '@codecademy/gamut';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
type AlertProps = Required<ComponentProps<typeof Alert>>;
|
|
4
|
+
type LimitedCTAProps = 'target' | 'children' | 'onClick' | 'text';
|
|
5
|
+
type ExtractableCTAProps = {
|
|
6
|
+
[Prop in Extract<keyof AlertProps['cta'], LimitedCTAProps>]?: AlertProps['cta'][Prop];
|
|
7
|
+
};
|
|
8
|
+
export type PageAlert = {
|
|
9
|
+
cta?: ExtractableCTAProps & {
|
|
10
|
+
href?: string;
|
|
11
|
+
};
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
type: Exclude<AlertProps['type'], 'subtle'>;
|
|
14
|
+
message: string;
|
|
15
|
+
permanent?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { UserClickData } from '@codecademy/tracking';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type Cols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
+
export type PageLayoutWithSidebarMenuProps = WithChildrenProp & {
|
|
6
|
+
pageName: string;
|
|
7
|
+
leftSidebar: {
|
|
8
|
+
content: React.ReactNode;
|
|
9
|
+
cols: Cols;
|
|
10
|
+
};
|
|
11
|
+
rightSidebar?: {
|
|
12
|
+
content: React.ReactNode;
|
|
13
|
+
cols: Cols;
|
|
14
|
+
};
|
|
15
|
+
hasBackToTop?: boolean;
|
|
16
|
+
trackUserClick: (data: UserClickData) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const PageLayoutWithSidebarMenu: React.FC<PageLayoutWithSidebarMenuProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageLayoutWithSidebarMenu';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { AriaAttributes, ReactNode } from 'react';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
type TextButtonMinimumProps = AriaAttributes & {
|
|
5
|
+
text: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
export type SectionButton = TextButtonMinimumProps | ReactNode;
|
|
10
|
+
export interface PageSectionProps extends WithChildrenProp {
|
|
11
|
+
title: string;
|
|
12
|
+
headerButton?: SectionButton;
|
|
13
|
+
headerSecondaryButton?: SectionButton;
|
|
14
|
+
footerButton?: SectionButton;
|
|
15
|
+
}
|
|
16
|
+
export declare const PageSection: React.FC<PageSectionProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface PastDueModalProps {
|
|
3
|
+
pastDueErrorCode: string;
|
|
4
|
+
isSilverPlan: boolean;
|
|
5
|
+
closeButton: React.ReactNode;
|
|
6
|
+
updatePaymentButton: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const PastDueModalContents: React.FC<React.PropsWithChildren<PastDueModalProps>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BaseImageProps {
|
|
3
|
+
alt: string;
|
|
4
|
+
src: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const PlayingImage: import("@emotion/styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
|
+
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
14
|
+
export declare const BaseImage: React.FC<BaseImageProps>;
|
|
15
|
+
export default BaseImage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface PauseableImageProps {
|
|
3
|
+
src: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const imageStyles: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
|
+
}, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
10
|
+
export declare const PausableImage: React.FC<PauseableImageProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Currency, PlanType } from './types';
|
|
3
|
+
interface PricingAmountProps {
|
|
4
|
+
product: PlanType;
|
|
5
|
+
price: string;
|
|
6
|
+
monthlyPrice?: string;
|
|
7
|
+
currency: Currency;
|
|
8
|
+
termMonths?: number;
|
|
9
|
+
compact?: boolean;
|
|
10
|
+
isMultiple: boolean;
|
|
11
|
+
inUpsellModal?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const PricingAmount: React.FC<PricingAmountProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Detail {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
isLite: boolean;
|
|
6
|
+
features: {
|
|
7
|
+
name: string;
|
|
8
|
+
available: boolean;
|
|
9
|
+
isNew?: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
type PlanDetails = Record<string, Detail>;
|
|
13
|
+
export declare const planDetails: PlanDetails;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ChangeEvent } from 'react';
|
|
2
|
+
import { Currency, PlanType } from './types';
|
|
3
|
+
export interface PlanCardProps {
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
isStudentPlan?: boolean;
|
|
6
|
+
price: string;
|
|
7
|
+
currency: Currency;
|
|
8
|
+
termMonths: number;
|
|
9
|
+
onChange: (changeEvent: ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
11
|
+
planType: PlanType;
|
|
12
|
+
inUpsellModal?: boolean;
|
|
13
|
+
isMultiple?: boolean;
|
|
14
|
+
isIndiaUser?: boolean;
|
|
15
|
+
ctaHref?: string;
|
|
16
|
+
ctaLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const PlanCard: React.FC<PlanCardProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type PlanType = 'basic' | 'pro' | 'pro-silver' | 'pro-gold';
|
|
2
|
+
export declare enum CurrencySymbol {
|
|
3
|
+
DOLLAR = "$",
|
|
4
|
+
POUND = "\u00A3",
|
|
5
|
+
EURO = "\u20AC",
|
|
6
|
+
RUPEE = "\u20B9",
|
|
7
|
+
KRONA = "kr",
|
|
8
|
+
KRONE = "kr",
|
|
9
|
+
ZLOTY = "z\u0142",
|
|
10
|
+
REAL = "R$",
|
|
11
|
+
LEV = "\u041B\u0432.",
|
|
12
|
+
FRANC = "Fr.",
|
|
13
|
+
KORUNA = "K\u010D",
|
|
14
|
+
KUNA = "kn",
|
|
15
|
+
FORINT = "Ft",
|
|
16
|
+
PESO = "$",
|
|
17
|
+
LEU = "L"
|
|
18
|
+
}
|
|
19
|
+
export declare enum Currency {
|
|
20
|
+
USD = "USD",
|
|
21
|
+
EUR = "EUR",
|
|
22
|
+
CAD = "CAD",
|
|
23
|
+
GBP = "GBP",
|
|
24
|
+
AUD = "AUD",
|
|
25
|
+
INR = "INR",
|
|
26
|
+
SEK = "SEK",
|
|
27
|
+
NOK = "NOK",
|
|
28
|
+
PLN = "PLN",
|
|
29
|
+
DKK = "DKK",
|
|
30
|
+
BRL = "BRL",
|
|
31
|
+
BGN = "BGN",
|
|
32
|
+
CHF = "CHF",
|
|
33
|
+
CZK = "CZK",
|
|
34
|
+
HRK = "HRK",
|
|
35
|
+
HUF = "HUF",
|
|
36
|
+
MXN = "MXN",
|
|
37
|
+
RON = "RON"
|
|
38
|
+
}
|
|
39
|
+
export declare const getCurrencySymbol: (currency: Currency) => CurrencySymbol;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Product } from '../types';
|
|
2
|
+
interface PricingAmountProps {
|
|
3
|
+
product: Product;
|
|
4
|
+
price: string;
|
|
5
|
+
isUserInIndia: boolean;
|
|
6
|
+
monthlyPrice?: string;
|
|
7
|
+
termMonths?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const PricingAmount: React.FC<PricingAmountProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface Detail {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
isLite: boolean;
|
|
6
|
+
features: {
|
|
7
|
+
label: string;
|
|
8
|
+
isEnabled: boolean;
|
|
9
|
+
description?: string;
|
|
10
|
+
}[];
|
|
11
|
+
}
|
|
12
|
+
type PlanDetails = Record<string, Detail>;
|
|
13
|
+
export declare const planDetails: PlanDetails;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlansByType } from '../config';
|
|
2
|
+
import { CopyConfig, CtaConfig, Product, ProductDetails } from '../types';
|
|
3
|
+
export declare const smSize = 728;
|
|
4
|
+
export declare const PricingCard: React.FC<{
|
|
5
|
+
product: Product;
|
|
6
|
+
productDetails: ProductDetails;
|
|
7
|
+
plansByType: PlansByType;
|
|
8
|
+
isUserInIndia: boolean;
|
|
9
|
+
isCurrentPlan?: boolean;
|
|
10
|
+
ctaConfig?: CtaConfig[keyof CtaConfig];
|
|
11
|
+
copyConfig?: CopyConfig[keyof CopyConfig];
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlansByType } from './config';
|
|
2
|
+
import { CopyConfig, CtaConfig, User } from './types';
|
|
3
|
+
interface ProductsProps {
|
|
4
|
+
plansByType: PlansByType;
|
|
5
|
+
ctaConfig?: CtaConfig;
|
|
6
|
+
copyConfig?: CopyConfig;
|
|
7
|
+
user?: User;
|
|
8
|
+
isUserInIndia: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Products: React.FC<ProductsProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Product, ProductDetails } from './types';
|
|
2
|
+
type Period = 'annual' | 'monthly';
|
|
3
|
+
type PlansByPeriod = Record<Period, ProductDetails>;
|
|
4
|
+
export type PlansByType = Record<Product, PlansByPeriod>;
|
|
5
|
+
export declare const getProductDescription: (product: Product) => "" | "Start learning something new with basic access" | "Build in-demand technical skills for work or a personal project" | "Develop the skills and experience to land a job in tech";
|
|
6
|
+
export declare const getProductDetails: (products: PlansByType, product: Product) => ProductDetails;
|
|
7
|
+
export declare const groupPlansByType: (products: ProductDetails[]) => PlansByType;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import type { CopyConfig, CtaConfig, PlanType, ProductDetails, User } from './types';
|
|
3
|
+
type PricingSectionProps = Omit<Partial<React.ComponentProps<typeof Background>>, 'title'> & {
|
|
4
|
+
products: ProductDetails[];
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
planTypes?: PlanType[];
|
|
7
|
+
ctaConfig?: CtaConfig;
|
|
8
|
+
copyConfig?: CopyConfig;
|
|
9
|
+
user?: User;
|
|
10
|
+
isUserInIndia: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const PricingSection: React.FC<PricingSectionProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum Product {
|
|
2
|
+
Basic = "free",
|
|
3
|
+
Pro = "pro",
|
|
4
|
+
Teams = "teams",
|
|
5
|
+
Silver = "pro-silver",
|
|
6
|
+
Gold = "pro-gold"
|
|
7
|
+
}
|
|
8
|
+
export interface ProductDetails {
|
|
9
|
+
isTrialPlan?: boolean | null | undefined;
|
|
10
|
+
price: string;
|
|
11
|
+
planId?: string | null | undefined;
|
|
12
|
+
displayName: string;
|
|
13
|
+
planType: string;
|
|
14
|
+
savings?: string | null | undefined;
|
|
15
|
+
includedTaxRate?: string | null | undefined;
|
|
16
|
+
}
|
|
17
|
+
export type PlanType = 'basic' | 'pro-silver' | 'pro-gold' | 'teams';
|
|
18
|
+
export type CtaConfig = Partial<Record<PlanType, {
|
|
19
|
+
label?: string;
|
|
20
|
+
href?: string;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
}>>;
|
|
23
|
+
export type CopyConfig = Partial<Record<PlanType, {
|
|
24
|
+
description: string;
|
|
25
|
+
}>>;
|
|
26
|
+
export interface User {
|
|
27
|
+
anonymous?: boolean;
|
|
28
|
+
proSilver?: boolean;
|
|
29
|
+
proGold?: boolean;
|
|
30
|
+
}
|