@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.bc135b46d4.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/README.md +1 -1
- 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/AppHeaderListItem/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +9 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
- package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
- package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
- package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
- package/dist/AppHeader/Search/consts.d.ts +23 -0
- package/dist/AppHeader/Search/consts.js +1 -1
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
- package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
- package/dist/AppHeader/Search/types.d.ts +23 -0
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
- package/dist/AppHeader/index.d.ts +24 -0
- package/dist/AppHeader/shared/elements.d.ts +84 -0
- package/dist/AppHeader/shared/index.d.ts +4 -0
- package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
- package/dist/AppHeader/shared/testTypes.d.ts +0 -0
- package/dist/AppHeader/shared/types.d.ts +107 -0
- package/dist/AppHeader/shared/utils.d.ts +16 -0
- package/dist/AppHeader/utils/types.d.ts +8 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
- package/dist/AppHeaderMobile/index.d.ts +20 -0
- package/dist/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/Avatar/index.d.ts +36 -0
- package/dist/AvatarChooser/index.d.ts +12 -0
- package/dist/BackToTopAnchor/index.d.ts +13 -0
- package/dist/Banner/CountdownTimer.d.ts +7 -0
- package/dist/Banner/CountdownTimer.js +110 -0
- package/dist/Banner/EnhancedBanner.d.ts +17 -0
- package/dist/Banner/EnhancedBanner.js +178 -0
- package/dist/Banner/index.d.ts +31 -0
- package/dist/Banner/index.js +27 -6
- package/dist/BetaSticker/index.d.ts +6 -0
- package/dist/CareerPathCard/index.d.ts +19 -0
- package/dist/Carousel/elements.d.ts +27 -0
- package/dist/Carousel/index.d.ts +24 -0
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/CertificationPathCard/index.d.ts +20 -0
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
- package/dist/CommunityEventCard/index.d.ts +28 -0
- package/dist/CommunityEventToast/index.d.ts +6 -0
- package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
- package/dist/ContentGroupBaseCard/index.d.ts +31 -0
- package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
- package/dist/ContentGroupBaseCard/types.d.ts +10 -0
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
- package/dist/CourseCard/index.d.ts +20 -0
- package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
- package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
- package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
- package/dist/CurriculumCard/Footer/index.d.ts +10 -0
- package/dist/CurriculumCard/Image/index.d.ts +9 -0
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
- package/dist/CurriculumCard/index.d.ts +59 -0
- package/dist/DropdownButton/DropdownList.d.ts +17 -0
- package/dist/DropdownButton/index.d.ts +76 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
- package/dist/EditorialImage/index.d.ts +10 -0
- package/dist/EditorialImage/styles.module.scss +36 -0
- package/dist/EmptySection/index.d.ts +28 -0
- package/dist/ErrorContents/index.d.ts +8 -0
- package/dist/FeatureList/index.d.ts +11 -0
- package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
- package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
- package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
- package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
- package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
- package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
- package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
- package/dist/GlobalFooter/index.d.ts +23 -0
- package/dist/GlobalFooter/types.d.ts +13 -0
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.js +1 -1
- package/dist/GlobalHeader/index.d.ts +10 -0
- package/dist/GlobalHeader/index.js +5 -0
- package/dist/GlobalHeader/types.d.ts +89 -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/LayoutMenu.js +4 -3
- 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/LayoutMenu.js +4 -3
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
- package/dist/LayoutMenuVariant/index.d.ts +2 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
- package/dist/LearningOutcomeBadges/index.d.ts +2 -0
- package/dist/LearningOutcomeCard/index.d.ts +29 -0
- package/dist/LearningOutcomeCard/index.js +178 -0
- package/dist/LearningOutcomePopover/index.d.ts +10 -0
- package/dist/LearningOutcomePopover/index.js +125 -0
- package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
- package/dist/LearningOutcomeTile/Tile.js +79 -0
- package/dist/LearningOutcomeTile/index.d.ts +2 -0
- package/dist/LearningOutcomeTile/index.js +116 -0
- package/dist/LearningOutcomeTile/types.d.ts +48 -0
- package/dist/LearningOutcomeTile/types.js +11 -0
- package/dist/ListSection/index.d.ts +21 -0
- package/dist/ListSection/index.js +64 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +82 -0
- package/dist/Loading/styles.module.scss +131 -0
- package/dist/LoadingCurriculumCard/index.d.ts +7 -0
- package/dist/LoadingCurriculumCard/index.js +82 -0
- package/dist/Logos/LogoCodecademy/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademy/index.js +22 -0
- package/dist/Logos/LogoCodecademyMini/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyMini/index.js +18 -0
- package/dist/Logos/LogoCodecademyPro/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyPro/index.js +25 -0
- package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyTeams/index.js +46 -0
- package/dist/Logos/LogoFromSkillsoft/index.d.ts +3 -0
- package/dist/Logos/LogoFromSkillsoft/index.js +47 -0
- package/dist/Logos/LogoLXStudio/index.d.ts +3 -0
- package/dist/Logos/LogoLXStudio/index.js +40 -0
- package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +8 -0
- package/dist/Logos/ProLabel/ProLabelCutout/index.js +31 -0
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +7 -0
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js +31 -0
- package/dist/Logos/ProLabel/index.d.ts +15 -0
- package/dist/Logos/ProLabel/index.js +27 -0
- package/dist/Logos/index.d.ts +7 -0
- package/dist/Logos/index.js +7 -0
- package/dist/Logos/shared.d.ts +636 -0
- package/dist/Logos/shared.js +16 -0
- package/dist/MarketingToaster/index.d.ts +8 -0
- package/dist/MarketingToaster/index.js +67 -0
- package/dist/NotFoundContent/404.svg +1 -0
- package/dist/NotFoundContent/index.d.ts +8 -0
- package/dist/NotFoundContent/index.js +55 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
- package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
- package/dist/NotificationList/EmptyNotification/index.js +38 -0
- package/dist/NotificationList/NotificationItem.d.ts +8 -0
- package/dist/NotificationList/NotificationItem.js +151 -0
- package/dist/NotificationList/index.d.ts +9 -0
- package/dist/NotificationList/index.js +46 -0
- package/dist/NotificationList/typings.d.ts +16 -0
- package/dist/NotificationList/typings.js +1 -0
- package/dist/Notifications/NotificationBell.d.ts +10 -0
- package/dist/Notifications/NotificationBell.js +72 -0
- package/dist/Notifications/NotificationsContents.d.ts +3 -0
- package/dist/Notifications/NotificationsContents.js +85 -0
- package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
- package/dist/Notifications/NotificationsDropdown.js +25 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
- package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
- package/dist/Notifications/__fixtures__/stubs.js +8 -0
- package/dist/Notifications/constants.d.ts +4 -0
- package/dist/Notifications/constants.js +4 -0
- package/dist/Notifications/elements.d.ts +12 -0
- package/dist/Notifications/elements.js +21 -0
- package/dist/Notifications/types.d.ts +24 -0
- package/dist/Notifications/types.js +1 -0
- package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
- package/dist/Notifications/useHeaderNotifications.js +37 -0
- package/dist/Notifications/useNotificationButtons.d.ts +9 -0
- package/dist/Notifications/useNotificationButtons.js +56 -0
- package/dist/PageAlerts/PageAlerts.d.ts +10 -0
- package/dist/PageAlerts/PageAlerts.js +75 -0
- package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
- package/dist/PageAlerts/PageAlertsProvider.js +34 -0
- package/dist/PageAlerts/index.d.ts +3 -0
- package/dist/PageAlerts/index.js +3 -0
- package/dist/PageAlerts/types.d.ts +17 -0
- package/dist/PageAlerts/types.js +1 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
- package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
- package/dist/PageSection/index.d.ts +17 -0
- package/dist/PageSection/index.js +67 -0
- package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
- package/dist/PastDue/PastDueModalContents/index.js +30 -0
- package/dist/PastDue/index.d.ts +2 -0
- package/dist/PastDue/index.js +2 -0
- package/dist/PastDue/pastDueMessages.d.ts +6 -0
- package/dist/PastDue/pastDueMessages.js +48 -0
- package/dist/PausableImage/BaseImage/index.d.ts +15 -0
- package/dist/PausableImage/BaseImage/index.js +54 -0
- package/dist/PausableImage/index.d.ts +11 -0
- package/dist/PausableImage/index.js +37 -0
- package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
- package/dist/PlanCard/PlanCardBanner.js +28 -0
- package/dist/PlanCard/PlanFeature.d.ts +9 -0
- package/dist/PlanCard/PlanFeature.js +83 -0
- package/dist/PlanCard/PopularBadge.d.ts +3 -0
- package/dist/PlanCard/PopularBadge.js +13 -0
- package/dist/PlanCard/PricingAmount.d.ts +14 -0
- package/dist/PlanCard/PricingAmount.js +117 -0
- package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
- package/dist/PlanCard/RecommendedBadge.js +24 -0
- package/dist/PlanCard/consts.d.ts +14 -0
- package/dist/PlanCard/consts.js +135 -0
- package/dist/PlanCard/index.d.ts +18 -0
- package/dist/PlanCard/index.js +370 -0
- package/dist/PlanCard/types.d.ts +39 -0
- package/dist/PlanCard/types.js +62 -0
- package/dist/PlanCardTeams/consts.d.ts +9 -0
- package/dist/PlanCardTeams/consts.js +8 -0
- package/dist/PlanCardTeams/index.d.ts +8 -0
- package/dist/PlanCardTeams/index.js +167 -0
- package/dist/PricingSection/PlanFeature.d.ts +10 -0
- package/dist/PricingSection/PlanFeature.js +88 -0
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
- package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
- package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
- package/dist/PricingSection/PricingCard/consts.js +85 -0
- package/dist/PricingSection/PricingCard/index.d.ts +12 -0
- package/dist/PricingSection/PricingCard/index.js +241 -0
- package/dist/PricingSection/ProductCTA.d.ts +6 -0
- package/dist/PricingSection/ProductCTA.js +44 -0
- package/dist/PricingSection/Products.d.ts +11 -0
- package/dist/PricingSection/Products.js +74 -0
- package/dist/PricingSection/config.d.ts +8 -0
- package/dist/PricingSection/config.js +36 -0
- package/dist/PricingSection/index.d.ts +13 -0
- package/dist/PricingSection/index.js +58 -0
- package/dist/PricingSection/types.d.ts +30 -0
- package/dist/PricingSection/types.js +8 -0
- package/dist/ProLogoAlt/index.d.ts +9 -0
- package/dist/ProLogoAlt/index.js +26 -0
- package/dist/ProductFeatureShowcase/index.d.ts +16 -0
- package/dist/ProductFeatureShowcase/index.js +120 -0
- package/dist/QuizScore/index.d.ts +12 -0
- package/dist/QuizScore/index.js +84 -0
- package/dist/RatingsBar/index.d.ts +12 -0
- package/dist/RatingsBar/index.js +32 -0
- package/dist/ResourceCard/index.d.ts +15 -0
- package/dist/ResourceCard/index.js +59 -0
- package/dist/ScoreSummary/SubScores.d.ts +28 -0
- package/dist/ScoreSummary/SubScores.js +165 -0
- package/dist/ScoreSummary/helpers.d.ts +11 -0
- package/dist/ScoreSummary/helpers.js +20 -0
- package/dist/ScoreSummary/index.d.ts +21 -0
- package/dist/ScoreSummary/index.js +108 -0
- package/dist/ScoreSummary/types.d.ts +310 -0
- package/dist/ScoreSummary/types.js +1 -0
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/SkillPathCard/index.d.ts +17 -0
- package/dist/SkillPathCard/index.js +38 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
- package/dist/SocialMediaSharing/index.d.ts +49 -0
- package/dist/SocialMediaSharing/index.js +116 -0
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
- package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
- package/dist/SocialMediaSharingDropdown/index.js +111 -0
- package/dist/Testimonial/index.d.ts +45 -0
- package/dist/Testimonial/index.js +163 -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 +85 -0
- package/dist/index.js +82 -0
- package/dist/lib/breakpointHooks/index.d.ts +43 -0
- package/dist/lib/breakpointHooks/index.js +60 -0
- package/dist/lib/catalogList/index.d.ts +5 -0
- package/dist/lib/catalogList/index.js +173 -0
- package/dist/lib/resourcesList/index.d.ts +5 -0
- package/dist/lib/resourcesList/index.js +232 -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/remoteAssets/components.js +1 -0
- package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
- package/dist/stories/Atoms/Avatar.stories.js +16 -0
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
- package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +9 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +8 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +29 -0
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
- package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
- package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
- package/dist/stories/Atoms/Subgrid.stories.js +87 -0
- package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
- package/dist/stories/Molecules/AppBar.stories.js +32 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
- package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
- package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
- package/dist/stories/Molecules/Banner.stories.js +115 -0
- package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
- package/dist/stories/Molecules/Carousel.stories.js +47 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
- package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
- package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
- package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
- package/dist/stories/Molecules/EmptySection.stories.js +168 -0
- package/dist/stories/Molecules/EnhancedBanner.stories.d.ts +10 -0
- package/dist/stories/Molecules/EnhancedBanner.stories.js +114 -0
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
- package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
- package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
- package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/HubCard.stories.js +28 -0
- package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/InfoCard.stories.js +30 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +75 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
- package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
- package/dist/stories/Molecules/ListSection.stories.js +97 -0
- package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
- package/dist/stories/Molecules/Loading.stories.js +10 -0
- package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
- package/dist/stories/Molecules/NotificationList.stories.js +100 -0
- package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
- package/dist/stories/Molecules/PageSection.stories.js +67 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
- package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/PausableImage.stories.js +16 -0
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
- package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
- package/dist/stories/Molecules/Testimonial.stories.js +63 -0
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
- package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
- package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
- package/dist/stories/Organisms/PageAlerts.example.js +42 -0
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
- package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
- package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
- package/dist/stories/Organisms/PageHero.stories.js +145 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
- package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
- package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
- package/dist/stories/Organisms/PlanCard.stories.js +98 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
- package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
- package/dist/svg.d.ts +8 -0
- package/dist/theme.d.ts +5 -0
- package/package.json +1 -1
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
- package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
2
|
+
import { PageVideoGallery } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const ctaArgs = {
|
|
5
|
+
text: 'Same as it ever was',
|
|
6
|
+
href: 'https://codecademy.com'
|
|
7
|
+
};
|
|
8
|
+
const meta = {
|
|
9
|
+
component: PageVideoGallery,
|
|
10
|
+
args: {
|
|
11
|
+
videos: [{
|
|
12
|
+
title: 'Steppin on the M83',
|
|
13
|
+
url: 'https://www.youtube.com/watch?v=-m2fVWj99x4',
|
|
14
|
+
placeholderImage: 'https://i.kym-cdn.com/entries/icons/mobile/000/010/275/x1080.jpg'
|
|
15
|
+
}, {
|
|
16
|
+
title: 'Once in a Lifetime performed by Kermit the Frog',
|
|
17
|
+
url: 'https://www.youtube.com/watch?v=PCY0aeUx-Ns',
|
|
18
|
+
placeholderImage: 'https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/slvzej9jmwy1ze8nknmr.jpg'
|
|
19
|
+
}, {
|
|
20
|
+
title: 'Spooky Scary Skeletons',
|
|
21
|
+
url: 'https://www.youtube.com/watch?v=K2rwxs1gH9w',
|
|
22
|
+
placeholderImage: 'https://image.pbs.org/video-assets/UWTcFJA-asset-mezzanine-16x9-NfmXh7O.jpg'
|
|
23
|
+
}],
|
|
24
|
+
title: 'You may find yourself living in a shotgun shack',
|
|
25
|
+
desc: 'And you may find yourself in another part of the world, and you may find yourself behind the wheel of a large automobile',
|
|
26
|
+
cta: {
|
|
27
|
+
...ctaArgs
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default meta;
|
|
32
|
+
export const VideoGallery = {
|
|
33
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
34
|
+
...args
|
|
35
|
+
}),
|
|
36
|
+
name: 'Video Gallery'
|
|
37
|
+
};
|
|
38
|
+
export const RegularButton = {
|
|
39
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
40
|
+
...args,
|
|
41
|
+
cta: {
|
|
42
|
+
...ctaArgs,
|
|
43
|
+
buttonType: 'fill'
|
|
44
|
+
}
|
|
45
|
+
}),
|
|
46
|
+
name: 'Regular Button'
|
|
47
|
+
};
|
|
48
|
+
export const WithoutDescription = {
|
|
49
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
50
|
+
...args,
|
|
51
|
+
desc: undefined
|
|
52
|
+
}),
|
|
53
|
+
name: 'Without Description'
|
|
54
|
+
};
|
|
55
|
+
export const GalleryOnly = {
|
|
56
|
+
render: args => /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
57
|
+
videos: args.videos
|
|
58
|
+
}),
|
|
59
|
+
name: 'Gallery Only'
|
|
60
|
+
};
|
|
61
|
+
export const DarkMode = {
|
|
62
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
63
|
+
bg: "navy",
|
|
64
|
+
p: 16,
|
|
65
|
+
children: /*#__PURE__*/_jsx(PageVideoGallery, {
|
|
66
|
+
...args
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
name: 'Dark Mode'
|
|
70
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PlanCard } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof PlanCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PlanCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Radio: Story;
|
|
8
|
+
export declare const DarkModeCard: Story;
|
|
9
|
+
export declare const HorizontalPlanCard: Story;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { GridBox } from '@codecademy/gamut';
|
|
2
|
+
import { ColorMode } from '@codecademy/gamut-styles';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { Currency, PlanCard } from '../../index';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const meta = {
|
|
7
|
+
component: PlanCard,
|
|
8
|
+
args: {
|
|
9
|
+
isSelected: false,
|
|
10
|
+
price: '17.49',
|
|
11
|
+
currency: Currency.USD,
|
|
12
|
+
termMonths: 1,
|
|
13
|
+
planType: 'pro-silver',
|
|
14
|
+
isMultiple: true,
|
|
15
|
+
inUpsellModal: false,
|
|
16
|
+
isIndiaUser: false,
|
|
17
|
+
ctaHref: 'www.email.com',
|
|
18
|
+
ctaLabel: 'Click Me'
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
export const Default = {
|
|
23
|
+
render: args => /*#__PURE__*/_jsx(PlanCard, {
|
|
24
|
+
...args
|
|
25
|
+
}),
|
|
26
|
+
name: 'Plan Card'
|
|
27
|
+
};
|
|
28
|
+
export const Radio = {
|
|
29
|
+
render: function Render(_args) {
|
|
30
|
+
const [selected, setSelected] = useState('plus');
|
|
31
|
+
return /*#__PURE__*/_jsxs(GridBox, {
|
|
32
|
+
role: "radiogroup",
|
|
33
|
+
gridTemplateColumns: {
|
|
34
|
+
_: '1fr',
|
|
35
|
+
sm: '1fr 1fr'
|
|
36
|
+
},
|
|
37
|
+
gap: 24,
|
|
38
|
+
children: [/*#__PURE__*/_jsx(PlanCard, {
|
|
39
|
+
isSelected: selected === 'plus',
|
|
40
|
+
price: "17.49",
|
|
41
|
+
currency: Currency.USD,
|
|
42
|
+
termMonths: 1,
|
|
43
|
+
onChange: () => {
|
|
44
|
+
setSelected('plus');
|
|
45
|
+
},
|
|
46
|
+
planType: "pro-silver"
|
|
47
|
+
}), /*#__PURE__*/_jsx(PlanCard, {
|
|
48
|
+
isSelected: selected === 'pro',
|
|
49
|
+
price: "29.99",
|
|
50
|
+
currency: Currency.USD,
|
|
51
|
+
termMonths: 1,
|
|
52
|
+
onChange: () => {
|
|
53
|
+
setSelected('pro');
|
|
54
|
+
},
|
|
55
|
+
planType: "pro-gold"
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
name: 'Interactive Plan Card'
|
|
60
|
+
};
|
|
61
|
+
export const DarkModeCard = {
|
|
62
|
+
render: () => /*#__PURE__*/_jsx(ColorMode, {
|
|
63
|
+
mode: "dark",
|
|
64
|
+
children: /*#__PURE__*/_jsx(GridBox, {
|
|
65
|
+
role: "radiogroup",
|
|
66
|
+
gridTemplateColumns: {
|
|
67
|
+
_: '1fr',
|
|
68
|
+
sm: '1fr 1fr'
|
|
69
|
+
},
|
|
70
|
+
gap: 24,
|
|
71
|
+
children: /*#__PURE__*/_jsx(PlanCard, {
|
|
72
|
+
isSelected: false,
|
|
73
|
+
price: "59.99",
|
|
74
|
+
currency: Currency.USD,
|
|
75
|
+
termMonths: 1,
|
|
76
|
+
onChange: () => {},
|
|
77
|
+
planType: "pro-gold"
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
name: 'Monthly Pro Card'
|
|
82
|
+
};
|
|
83
|
+
export const HorizontalPlanCard = {
|
|
84
|
+
render: () => /*#__PURE__*/_jsx(GridBox, {
|
|
85
|
+
role: "radiogroup",
|
|
86
|
+
gridTemplateColumns: "1fr",
|
|
87
|
+
children: /*#__PURE__*/_jsx(PlanCard, {
|
|
88
|
+
isSelected: true,
|
|
89
|
+
price: "17.49",
|
|
90
|
+
currency: Currency.USD,
|
|
91
|
+
termMonths: 12,
|
|
92
|
+
onChange: () => {},
|
|
93
|
+
planType: "pro-silver",
|
|
94
|
+
isMultiple: false
|
|
95
|
+
})
|
|
96
|
+
}),
|
|
97
|
+
name: 'Horizontal Plus Card'
|
|
98
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PlanCardTeams } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof PlanCardTeams>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PlanCardTeams>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const PlanCardTeamsGBP: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Currency, PlanCardTeams } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: PlanCardTeams,
|
|
5
|
+
args: {
|
|
6
|
+
price: '299',
|
|
7
|
+
currency: Currency.USD
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
render: function Render(args) {
|
|
13
|
+
return /*#__PURE__*/_jsx(PlanCardTeams, {
|
|
14
|
+
...args
|
|
15
|
+
});
|
|
16
|
+
},
|
|
17
|
+
name: 'Plan Card Teams'
|
|
18
|
+
};
|
|
19
|
+
export const PlanCardTeamsGBP = {
|
|
20
|
+
render: () => {
|
|
21
|
+
return /*#__PURE__*/_jsx(PlanCardTeams, {
|
|
22
|
+
price: "200",
|
|
23
|
+
currency: Currency.GBP
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
name: 'Plan Card Teams - GBP'
|
|
27
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ScoreSummary } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof ScoreSummary>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ScoreSummary>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const RowLayout: Story;
|
|
8
|
+
export declare const ColumnLayout: Story;
|
|
9
|
+
export declare const RowLayoutNoMaxWidth: Story;
|
|
10
|
+
export declare const Description: Story;
|
|
11
|
+
export declare const DescriptionInColumnLayout: Story;
|
|
12
|
+
export declare const ColorfulIcons: Story;
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { ScoreSummary } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: ScoreSummary,
|
|
5
|
+
args: {
|
|
6
|
+
subScores: {
|
|
7
|
+
'id-1': {
|
|
8
|
+
correct: 2,
|
|
9
|
+
slug: 'command-line',
|
|
10
|
+
title: 'Command Line',
|
|
11
|
+
total: 8
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
totalCorrect: 2,
|
|
15
|
+
totalQuestions: 8,
|
|
16
|
+
pathSlug: 'back-end-engineer-career-path',
|
|
17
|
+
trackSlug: 'becp-22-setting-up-a-dev-environment',
|
|
18
|
+
trackingData: {
|
|
19
|
+
context: 'feedback_page',
|
|
20
|
+
page_name: 'cumulative_assessment',
|
|
21
|
+
path_id: 'path-id',
|
|
22
|
+
target: 'review_concepts',
|
|
23
|
+
track_id: 'track-id'
|
|
24
|
+
},
|
|
25
|
+
untestedSubContent: [{
|
|
26
|
+
id: 'id-2',
|
|
27
|
+
slug: 'becp-22-text-editors',
|
|
28
|
+
title: 'Text Editors'
|
|
29
|
+
}],
|
|
30
|
+
trackUserClick: () => {},
|
|
31
|
+
percentToPass: 70
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
export const Default = {
|
|
36
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
37
|
+
...args
|
|
38
|
+
}),
|
|
39
|
+
name: 'Score Summary'
|
|
40
|
+
};
|
|
41
|
+
export const RowLayout = {
|
|
42
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
43
|
+
...args,
|
|
44
|
+
subScores: {
|
|
45
|
+
'id-1': {
|
|
46
|
+
correct: 5,
|
|
47
|
+
slug: 'becp-22-learn-html-elements-and-structure',
|
|
48
|
+
title: 'Learn HTML: Elements and Structure',
|
|
49
|
+
total: 24
|
|
50
|
+
},
|
|
51
|
+
'id-2': {
|
|
52
|
+
correct: 4,
|
|
53
|
+
slug: 'wdcp-22-learn-css-selectors-and-visual-roles',
|
|
54
|
+
title: 'Learn CSS: Selectors and Visual Rules',
|
|
55
|
+
total: 20
|
|
56
|
+
},
|
|
57
|
+
'id-3': {
|
|
58
|
+
correct: 2,
|
|
59
|
+
slug: 'wdcp-22-learn-javascript-syntax-objects',
|
|
60
|
+
title: 'Learn JavaScript Syntax: Objects',
|
|
61
|
+
total: 17
|
|
62
|
+
},
|
|
63
|
+
'id-4': {
|
|
64
|
+
correct: 2,
|
|
65
|
+
slug: 'wdcp-22-learn-javascript-syntax-arrays',
|
|
66
|
+
title: 'Learn JavaScript Syntax: Arrays',
|
|
67
|
+
total: 5
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
totalCorrect: 9,
|
|
71
|
+
totalQuestions: 44,
|
|
72
|
+
trackSlug: "becp-22-website-development-fundamentals",
|
|
73
|
+
untestedSubContent: [{
|
|
74
|
+
id: 'id-5',
|
|
75
|
+
slug: 'wdcp-22-the-internet-and-web-development',
|
|
76
|
+
title: 'The Internet and Web Development'
|
|
77
|
+
}, {
|
|
78
|
+
id: 'id-6',
|
|
79
|
+
slug: 'becp-22-going-off-platform-with-html-and-css',
|
|
80
|
+
title: 'Going off-platform with HTML and CSS'
|
|
81
|
+
}]
|
|
82
|
+
}),
|
|
83
|
+
name: 'Row Layout'
|
|
84
|
+
};
|
|
85
|
+
export const ColumnLayout = {
|
|
86
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
87
|
+
...args,
|
|
88
|
+
layout: "column",
|
|
89
|
+
subScores: {
|
|
90
|
+
'id-1': {
|
|
91
|
+
correct: 2,
|
|
92
|
+
slug: 'wdcp-22-learn-javascript-syntax-objects',
|
|
93
|
+
title: 'Learn JavaScript Syntax: Objects',
|
|
94
|
+
total: 17
|
|
95
|
+
},
|
|
96
|
+
'id-2': {
|
|
97
|
+
correct: 2,
|
|
98
|
+
slug: 'wdcp-22-learn-javascript-syntax-arrays',
|
|
99
|
+
title: 'Learn JavaScript Syntax: Arrays',
|
|
100
|
+
total: 5
|
|
101
|
+
},
|
|
102
|
+
'id-3': {
|
|
103
|
+
correct: 1,
|
|
104
|
+
slug: 'wdcp-22-learn-javascript-syntax-iterators',
|
|
105
|
+
title: 'Learn JavaScript Syntax: Iterators',
|
|
106
|
+
total: 7
|
|
107
|
+
},
|
|
108
|
+
'id-4': {
|
|
109
|
+
correct: 1,
|
|
110
|
+
slug: 'wdcp-22-learn-javascript-syntax-errors-and-debugging',
|
|
111
|
+
title: 'Learn JavaScript Syntax: Errors and Debugging',
|
|
112
|
+
total: 6
|
|
113
|
+
},
|
|
114
|
+
'id-5': {
|
|
115
|
+
correct: 0,
|
|
116
|
+
slug: 'wdcp-22-learn-javascript-syntax-loops',
|
|
117
|
+
title: 'Learn JavaScript Syntax: Loops',
|
|
118
|
+
total: 7
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
totalCorrect: 5,
|
|
122
|
+
totalQuestions: 42,
|
|
123
|
+
trackSlug: "becp-22-javascript-syntax-part-ii",
|
|
124
|
+
untestedSubContent: [{
|
|
125
|
+
id: 'id-6',
|
|
126
|
+
slug: 'wdcp-22-practice-javascript-syntax-arrays-loops-objects-iterators',
|
|
127
|
+
title: 'Practice JavaScript Syntax: Arrays, Loops, Objects, Iterators'
|
|
128
|
+
}]
|
|
129
|
+
}),
|
|
130
|
+
name: 'Column Layout'
|
|
131
|
+
};
|
|
132
|
+
export const RowLayoutNoMaxWidth = {
|
|
133
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
134
|
+
...args,
|
|
135
|
+
noMaxWidth: true,
|
|
136
|
+
subScores: {
|
|
137
|
+
'id-2': {
|
|
138
|
+
correct: 5,
|
|
139
|
+
slug: 'becp-22-learn-html-elements-and-structure',
|
|
140
|
+
title: 'Learn HTML: Elements and Structure',
|
|
141
|
+
total: 24
|
|
142
|
+
},
|
|
143
|
+
'id-3': {
|
|
144
|
+
correct: 4,
|
|
145
|
+
slug: 'wdcp-22-learn-css-selectors-and-visual-roles',
|
|
146
|
+
title: 'Learn CSS: Selectors and Visual Rules',
|
|
147
|
+
total: 20
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
totalCorrect: 9,
|
|
151
|
+
totalQuestions: 44,
|
|
152
|
+
trackSlug: "",
|
|
153
|
+
untestedSubContent: [{
|
|
154
|
+
id: 'id-5',
|
|
155
|
+
slug: 'wdcp-22-the-internet-and-web-development',
|
|
156
|
+
title: 'The Internet and Web Development'
|
|
157
|
+
}, {
|
|
158
|
+
id: 'id-6',
|
|
159
|
+
slug: 'becp-22-going-off-platform-with-html-and-css',
|
|
160
|
+
title: 'Going off-platform with HTML and CSS'
|
|
161
|
+
}]
|
|
162
|
+
}),
|
|
163
|
+
name: 'Row Layout noMaxWidth'
|
|
164
|
+
};
|
|
165
|
+
export const Description = {
|
|
166
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
167
|
+
...args,
|
|
168
|
+
description: "Try again! You can take the test again in 24 hours.",
|
|
169
|
+
subScores: {
|
|
170
|
+
'id-2': {
|
|
171
|
+
correct: 5,
|
|
172
|
+
slug: 'becp-22-learn-html-elements-and-structure',
|
|
173
|
+
title: 'Learn HTML: Elements and Structure',
|
|
174
|
+
total: 24
|
|
175
|
+
},
|
|
176
|
+
'id-3': {
|
|
177
|
+
correct: 4,
|
|
178
|
+
slug: 'wdcp-22-learn-css-selectors-and-visual-roles',
|
|
179
|
+
title: 'Learn CSS: Selectors and Visual Rules',
|
|
180
|
+
total: 20
|
|
181
|
+
},
|
|
182
|
+
'id-1': {
|
|
183
|
+
correct: 1,
|
|
184
|
+
slug: 'wdcp-22-learn-javascript-syntax-iterators',
|
|
185
|
+
title: 'Learn JavaScript Syntax: Iterators',
|
|
186
|
+
total: 7
|
|
187
|
+
},
|
|
188
|
+
'id-4': {
|
|
189
|
+
correct: 1,
|
|
190
|
+
slug: 'wdcp-22-learn-javascript-syntax-errors-and-debugging',
|
|
191
|
+
title: 'Learn JavaScript Syntax: Errors and Debugging',
|
|
192
|
+
total: 6
|
|
193
|
+
},
|
|
194
|
+
'id-5': {
|
|
195
|
+
correct: 0,
|
|
196
|
+
slug: 'wdcp-22-learn-javascript-syntax-loops',
|
|
197
|
+
title: 'Learn JavaScript Syntax: Loops',
|
|
198
|
+
total: 7
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
totalCorrect: 9,
|
|
202
|
+
totalQuestions: 44,
|
|
203
|
+
trackSlug: "becp-22-website-development-fundamentals",
|
|
204
|
+
untestedSubContent: [{
|
|
205
|
+
id: 'id-5',
|
|
206
|
+
slug: 'wdcp-22-the-internet-and-web-development',
|
|
207
|
+
title: 'The Internet and Web Development'
|
|
208
|
+
}, {
|
|
209
|
+
id: 'id-6',
|
|
210
|
+
slug: 'becp-22-going-off-platform-with-html-and-css',
|
|
211
|
+
title: 'Going off-platform with HTML and CSS'
|
|
212
|
+
}, {
|
|
213
|
+
id: 'id-6',
|
|
214
|
+
slug: 'wdcp-22-practice-javascript-syntax-arrays-loops-objects-iterators',
|
|
215
|
+
title: 'Practice JavaScript Syntax: Arrays, Loops, Objects, Iterators'
|
|
216
|
+
}]
|
|
217
|
+
}),
|
|
218
|
+
name: 'Description'
|
|
219
|
+
};
|
|
220
|
+
export const DescriptionInColumnLayout = {
|
|
221
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
222
|
+
...args,
|
|
223
|
+
layout: "column",
|
|
224
|
+
description: "A minimum score of 70% is required on all 6 certification exams to earn a professional certification",
|
|
225
|
+
subScores: {
|
|
226
|
+
'id-1': {
|
|
227
|
+
correct: 2,
|
|
228
|
+
slug: 'wdcp-22-learn-javascript-syntax-objects',
|
|
229
|
+
title: 'Learn JavaScript Syntax: Objects',
|
|
230
|
+
total: 17
|
|
231
|
+
},
|
|
232
|
+
'id-2': {
|
|
233
|
+
correct: 2,
|
|
234
|
+
slug: 'wdcp-22-learn-javascript-syntax-arrays',
|
|
235
|
+
title: 'Learn JavaScript Syntax: Arrays',
|
|
236
|
+
total: 5
|
|
237
|
+
},
|
|
238
|
+
'id-3': {
|
|
239
|
+
correct: 1,
|
|
240
|
+
slug: 'wdcp-22-learn-javascript-syntax-iterators',
|
|
241
|
+
title: 'Learn JavaScript Syntax: Iterators',
|
|
242
|
+
total: 7
|
|
243
|
+
},
|
|
244
|
+
'id-4': {
|
|
245
|
+
correct: 1,
|
|
246
|
+
slug: 'wdcp-22-learn-javascript-syntax-errors-and-debugging',
|
|
247
|
+
title: 'Learn JavaScript Syntax: Errors and Debugging',
|
|
248
|
+
total: 6
|
|
249
|
+
},
|
|
250
|
+
'id-5': {
|
|
251
|
+
correct: 0,
|
|
252
|
+
slug: 'wdcp-22-learn-javascript-syntax-loops',
|
|
253
|
+
title: 'Learn JavaScript Syntax: Loops',
|
|
254
|
+
total: 7
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
totalCorrect: 5,
|
|
258
|
+
totalQuestions: 42,
|
|
259
|
+
trackSlug: "becp-22-javascript-syntax-part-ii",
|
|
260
|
+
untestedSubContent: [{
|
|
261
|
+
id: 'id-6',
|
|
262
|
+
slug: 'wdcp-22-practice-javascript-syntax-arrays-loops-objects-iterators',
|
|
263
|
+
title: 'Practice JavaScript Syntax: Arrays, Loops, Objects, Iterators'
|
|
264
|
+
}]
|
|
265
|
+
}),
|
|
266
|
+
name: 'Description in Column Layout'
|
|
267
|
+
};
|
|
268
|
+
export const ColorfulIcons = {
|
|
269
|
+
render: args => /*#__PURE__*/_jsx(ScoreSummary, {
|
|
270
|
+
...args,
|
|
271
|
+
colorfulIcons: true,
|
|
272
|
+
totalCorrect: 18,
|
|
273
|
+
totalQuestions: 26,
|
|
274
|
+
layout: "column",
|
|
275
|
+
subScores: {
|
|
276
|
+
'id-2': {
|
|
277
|
+
correct: 5,
|
|
278
|
+
slug: 'becp-22-learn-html-elements-and-structure',
|
|
279
|
+
title: 'Learn HTML: Elements and Structure',
|
|
280
|
+
total: 10
|
|
281
|
+
},
|
|
282
|
+
'id-3': {
|
|
283
|
+
correct: 5,
|
|
284
|
+
slug: 'wdcp-22-learn-css-selectors-and-visual-roles',
|
|
285
|
+
title: 'Learn CSS: Selectors and Visual Rules',
|
|
286
|
+
total: 6
|
|
287
|
+
},
|
|
288
|
+
'id-1': {
|
|
289
|
+
correct: 8,
|
|
290
|
+
slug: 'wdcp-22-learn-javascript-syntax-objects',
|
|
291
|
+
title: 'Learn JavaScript Syntax: Objects',
|
|
292
|
+
total: 10
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
trackSlug: undefined,
|
|
296
|
+
untestedSubContent: []
|
|
297
|
+
}),
|
|
298
|
+
name: 'Colorful Icons'
|
|
299
|
+
};
|
package/dist/svg.d.ts
ADDED
package/dist/theme.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/brand",
|
|
3
3
|
"description": "Brand component library for Codecademy",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.bc135b46d4.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Box, FlexBox, Text } from '@codecademy/gamut';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
-
export const AssessmentDetail = ({
|
|
5
|
-
isHighestScore,
|
|
6
|
-
score,
|
|
7
|
-
scoreAchievedAt
|
|
8
|
-
}) => {
|
|
9
|
-
const hasPassedAssessment = score && score >= 70;
|
|
10
|
-
return /*#__PURE__*/_jsxs(FlexBox, {
|
|
11
|
-
borderColor: "background-hover",
|
|
12
|
-
borderRight: isHighestScore ? 1 : 'none',
|
|
13
|
-
width: "100%",
|
|
14
|
-
p: 16,
|
|
15
|
-
column: true,
|
|
16
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
17
|
-
fontWeight: 700,
|
|
18
|
-
children: isHighestScore ? 'Highest score' : 'Most recent'
|
|
19
|
-
}), score != null ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
20
|
-
children: [/*#__PURE__*/_jsxs(FlexBox, {
|
|
21
|
-
mt: 8,
|
|
22
|
-
alignItems: "center",
|
|
23
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
24
|
-
variant: "title-sm",
|
|
25
|
-
"data-testid": "score-percent",
|
|
26
|
-
mr: 4,
|
|
27
|
-
color: hasPassedAssessment ? 'green-700' : undefined,
|
|
28
|
-
children: `${score}%`
|
|
29
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
30
|
-
children: !hasPassedAssessment && /*#__PURE__*/_jsx(Box, {
|
|
31
|
-
"data-testid": "failed-assessment-indicator",
|
|
32
|
-
borderRadius: "full",
|
|
33
|
-
dimensions: 16,
|
|
34
|
-
bg: "orange-500",
|
|
35
|
-
mb: 4
|
|
36
|
-
})
|
|
37
|
-
})]
|
|
38
|
-
}), !!scoreAchievedAt && /*#__PURE__*/_jsx(Text, {
|
|
39
|
-
textColor: "text-secondary",
|
|
40
|
-
children: scoreAchievedAt
|
|
41
|
-
})]
|
|
42
|
-
}) : /*#__PURE__*/_jsxs(FlexBox, {
|
|
43
|
-
column: true,
|
|
44
|
-
color: "text-secondary",
|
|
45
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
46
|
-
fontWeight: 700,
|
|
47
|
-
my: 4,
|
|
48
|
-
"aria-hidden": true,
|
|
49
|
-
children: "-"
|
|
50
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
51
|
-
children: "Not tested yet"
|
|
52
|
-
})]
|
|
53
|
-
})]
|
|
54
|
-
});
|
|
55
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FlexBox } from '@codecademy/gamut';
|
|
2
|
-
import { AssessmentDetail } from './AssessmentDetail';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
export const LearningOutcomeAssessmentScores = ({
|
|
5
|
-
highestScore,
|
|
6
|
-
highestScoreAchievedAt,
|
|
7
|
-
latestScore,
|
|
8
|
-
latestScoreAchievedAt
|
|
9
|
-
}) => {
|
|
10
|
-
return /*#__PURE__*/_jsxs(FlexBox, {
|
|
11
|
-
borderColor: "background-hover",
|
|
12
|
-
border: 1,
|
|
13
|
-
borderRadius: "md",
|
|
14
|
-
width: "100%",
|
|
15
|
-
children: [/*#__PURE__*/_jsx(AssessmentDetail, {
|
|
16
|
-
isHighestScore: true,
|
|
17
|
-
score: highestScore,
|
|
18
|
-
scoreAchievedAt: highestScoreAchievedAt
|
|
19
|
-
}), /*#__PURE__*/_jsx(AssessmentDetail, {
|
|
20
|
-
score: latestScore,
|
|
21
|
-
scoreAchievedAt: latestScoreAchievedAt
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
};
|