@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export * as LayoutMenuVariant from './LayoutMenuVariant';
|
|
2
|
+
export * from './AbbreviatedCommunityEventCard';
|
|
3
|
+
export * from './AppBar';
|
|
4
|
+
export * from './AppBar/AppBarSection';
|
|
5
|
+
export * from './AppBarDeprecated';
|
|
6
|
+
export * from './AppBarDeprecated/AppBarSectionDeprecated';
|
|
7
|
+
export * from './AppHeader';
|
|
8
|
+
export * from './AppHeader/AppHeaderElements/AppHeaderDropdown';
|
|
9
|
+
export * from './AppHeader/AppHeaderElements/AppHeaderLink';
|
|
10
|
+
export * from './AppHeader/AppHeaderElements/AppHeaderLogo';
|
|
11
|
+
export * from './AppHeader/shared/types';
|
|
12
|
+
export * from './AppHeaderMobile';
|
|
13
|
+
export * from './AppHeaderMobile/AppHeaderMainMenuMobile';
|
|
14
|
+
export * from './AppHeaderMobile/AppHeaderSubMenuMobile';
|
|
15
|
+
export * from './Avatar';
|
|
16
|
+
export * from './AvatarChooser';
|
|
17
|
+
export * from './BackToTopAnchor';
|
|
18
|
+
export * from './Banner';
|
|
19
|
+
export * from './Banner/CountdownTimer';
|
|
20
|
+
export * from './BetaSticker';
|
|
21
|
+
export * from './CareerPathCard';
|
|
22
|
+
export * from './Carousel';
|
|
23
|
+
export * from './CertificationPathCard';
|
|
24
|
+
export * from './CommunityEventCard';
|
|
25
|
+
export * from './CommunityEventToast';
|
|
26
|
+
export * from './ContentGroupBaseCard';
|
|
27
|
+
export * from './ContentGroupBaseCard/types';
|
|
28
|
+
export * from './ContentGroupBaseCard/helpers';
|
|
29
|
+
export * from './CourseCard';
|
|
30
|
+
export * from './CurriculumCard';
|
|
31
|
+
export * from './CurriculumCard/Difficulty';
|
|
32
|
+
export * from './CurriculumCard/Difficulty/types';
|
|
33
|
+
export * from './CurriculumCard/Difficulty/helpers';
|
|
34
|
+
export * from './DropdownButton';
|
|
35
|
+
export * from './EditorialImage';
|
|
36
|
+
export * from './EmptySection';
|
|
37
|
+
export * from './NotFoundContent';
|
|
38
|
+
export * from './ErrorContents';
|
|
39
|
+
export * from './GlobalFooter';
|
|
40
|
+
export * from './GlobalHeader';
|
|
41
|
+
export * from './GlobalPage';
|
|
42
|
+
export * from './Grid';
|
|
43
|
+
export * from './HorizontalScrollMenu';
|
|
44
|
+
export * from './HubCard';
|
|
45
|
+
export * from './InfoCard';
|
|
46
|
+
export * from './Konamimojisplosion';
|
|
47
|
+
export * from './LandingPage';
|
|
48
|
+
export * from './LayoutMenu';
|
|
49
|
+
export * from './LearningOutcomeBadges';
|
|
50
|
+
export * from './LearningOutcomeCard';
|
|
51
|
+
export * from './LearningOutcomeTile';
|
|
52
|
+
export * from './lib/breakpointHooks';
|
|
53
|
+
export * from './ListSection';
|
|
54
|
+
export * from './Loading';
|
|
55
|
+
export * from './LoadingCurriculumCard';
|
|
56
|
+
export * from './Logos';
|
|
57
|
+
export * from './MarketingToaster';
|
|
58
|
+
export * from './NotificationList';
|
|
59
|
+
export * from './NotificationList/NotificationItem';
|
|
60
|
+
export * from './NotificationList/typings';
|
|
61
|
+
export * from './PageAlerts';
|
|
62
|
+
export * from './PageLayoutWithSidebarMenu';
|
|
63
|
+
export * from './PageSection';
|
|
64
|
+
export * from './PastDue';
|
|
65
|
+
export * from './PausableImage';
|
|
66
|
+
export * from './PlanCard';
|
|
67
|
+
export * from './PlanCardTeams';
|
|
68
|
+
export * from './PlanCard/PlanCardBanner';
|
|
69
|
+
export * from './PlanCard/types';
|
|
70
|
+
export * from './PricingSection';
|
|
71
|
+
export * from './ProductFeatureShowcase';
|
|
72
|
+
export * from './ProLogoAlt';
|
|
73
|
+
export * from './RatingsBar';
|
|
74
|
+
export * from './ResourceCard';
|
|
75
|
+
export * from './ScoreSummary';
|
|
76
|
+
export * from './ScoreSummary/SubScores';
|
|
77
|
+
export * from './ScoreSummary/types';
|
|
78
|
+
export * from './SkillPathCard';
|
|
79
|
+
export * from './SocialMediaSharing';
|
|
80
|
+
export * from './SocialMediaSharingDropdown';
|
|
81
|
+
export * from './Testimonial';
|
|
82
|
+
export * from './AppHeader/Search/SearchWorker';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type Breakpoint = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2
|
+
export type BreakpointMinWidths = Record<Breakpoint, number>;
|
|
3
|
+
export declare const breakpoints: BreakpointMinWidths;
|
|
4
|
+
/**
|
|
5
|
+
* useBreakpoint will provide the current breakpoint to a React component.
|
|
6
|
+
*
|
|
7
|
+
* If you think you need this, make sure to think twice. It is really nice
|
|
8
|
+
* to allow your styles layer to concern itself about the appearance of a
|
|
9
|
+
* component at different screen sizes, and not have to maintain two different
|
|
10
|
+
* components that could drift from eachother. That being said, sometimes
|
|
11
|
+
* The content, layout, and/or functionality of a mobile page/component can
|
|
12
|
+
* be so different that it is non-performant or difficult to maintain the
|
|
13
|
+
* changes in only styles. For those cases where it is actually easier to maintain
|
|
14
|
+
* two components or a programatic distinction of the breakpoint, this helper
|
|
15
|
+
* exists.
|
|
16
|
+
*
|
|
17
|
+
* @deprecated
|
|
18
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
19
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
20
|
+
* @see https://web.dev/cls
|
|
21
|
+
*/
|
|
22
|
+
export declare const useBreakpoint: () => keyof typeof breakpoints;
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
26
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
27
|
+
* @see https://web.dev/cls
|
|
28
|
+
*/
|
|
29
|
+
export declare function useBreakpointAtOrAbove(breakpoint: Breakpoint): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
33
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
34
|
+
* @see https://web.dev/cls
|
|
35
|
+
*/
|
|
36
|
+
export declare function useBreakpointAt(breakpoint: Breakpoint): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
40
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
41
|
+
* @see https://web.dev/cls
|
|
42
|
+
*/
|
|
43
|
+
export declare function useBreakpointAtOrBelow(breakpoint: Breakpoint): boolean;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { breakpoints as originalBreakpoints } from '@codecademy/gamut-styles';
|
|
2
|
+
import mapValues from 'lodash/mapValues';
|
|
3
|
+
import { createBreakpoint } from 'react-use';
|
|
4
|
+
export const breakpoints = mapValues({
|
|
5
|
+
xxs: 0,
|
|
6
|
+
...originalBreakpoints
|
|
7
|
+
}, value => parseInt(value, 10));
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* useBreakpoint will provide the current breakpoint to a React component.
|
|
11
|
+
*
|
|
12
|
+
* If you think you need this, make sure to think twice. It is really nice
|
|
13
|
+
* to allow your styles layer to concern itself about the appearance of a
|
|
14
|
+
* component at different screen sizes, and not have to maintain two different
|
|
15
|
+
* components that could drift from eachother. That being said, sometimes
|
|
16
|
+
* The content, layout, and/or functionality of a mobile page/component can
|
|
17
|
+
* be so different that it is non-performant or difficult to maintain the
|
|
18
|
+
* changes in only styles. For those cases where it is actually easier to maintain
|
|
19
|
+
* two components or a programatic distinction of the breakpoint, this helper
|
|
20
|
+
* exists.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated
|
|
23
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
24
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
25
|
+
* @see https://web.dev/cls
|
|
26
|
+
*/
|
|
27
|
+
export const useBreakpoint = createBreakpoint(breakpoints);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
32
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
33
|
+
* @see https://web.dev/cls
|
|
34
|
+
*/
|
|
35
|
+
export function useBreakpointAtOrAbove(breakpoint) {
|
|
36
|
+
const currentBreakpoint = useBreakpoint();
|
|
37
|
+
return breakpoints[currentBreakpoint] >= breakpoints[breakpoint];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
43
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
44
|
+
* @see https://web.dev/cls
|
|
45
|
+
*/
|
|
46
|
+
export function useBreakpointAt(breakpoint) {
|
|
47
|
+
const currentBreakpoint = useBreakpoint();
|
|
48
|
+
return breakpoints[currentBreakpoint] === breakpoints[breakpoint];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
* Use Box, LayoutGrid, or other responsive Gamut components instead.
|
|
54
|
+
* JavaScript-time screen size checks are notorious for worsening page performance.
|
|
55
|
+
* @see https://web.dev/cls
|
|
56
|
+
*/
|
|
57
|
+
export function useBreakpointAtOrBelow(breakpoint) {
|
|
58
|
+
const currentBreakpoint = useBreakpoint();
|
|
59
|
+
return breakpoints[currentBreakpoint] <= breakpoints[breakpoint];
|
|
60
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AppHeaderLinkItem, AppHeaderResourcesDataItem } from '../../AppHeader/shared';
|
|
2
|
+
export declare const careerPaths: AppHeaderLinkItem[];
|
|
3
|
+
export declare const liveLearningHubItems: AppHeaderResourcesDataItem;
|
|
4
|
+
export declare const topLanguages: AppHeaderLinkItem[];
|
|
5
|
+
export declare const getTopSubjects: () => AppHeaderLinkItem[];
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { renderNewBadge } from '../resourcesList';
|
|
2
|
+
export const careerPaths = [{
|
|
3
|
+
id: 'full-stack-engineer-career-path',
|
|
4
|
+
href: '/learn/paths/full-stack-engineer-career-path',
|
|
5
|
+
trackingTarget: 'topnav_catalog_career_full_stack_engineer',
|
|
6
|
+
text: 'Full-Stack Engineer',
|
|
7
|
+
type: 'link'
|
|
8
|
+
}, {
|
|
9
|
+
id: 'back-end-engineer-career-path',
|
|
10
|
+
href: '/learn/paths/back-end-engineer-career-path',
|
|
11
|
+
trackingTarget: 'topnav_catalog_career_back-end-engineer',
|
|
12
|
+
text: 'Back-End Engineer',
|
|
13
|
+
type: 'link'
|
|
14
|
+
}, {
|
|
15
|
+
id: 'ios-developer',
|
|
16
|
+
href: '/learn/paths/ios-developer',
|
|
17
|
+
trackingTarget: 'topnav_catalog_career_ios-developer',
|
|
18
|
+
text: 'iOS Developer',
|
|
19
|
+
type: 'link'
|
|
20
|
+
}, {
|
|
21
|
+
id: 'front-end-engineer-career-path',
|
|
22
|
+
href: '/learn/paths/front-end-engineer-career-path',
|
|
23
|
+
trackingTarget: 'topnav_catalog_career_front-end-engineer',
|
|
24
|
+
text: 'Front-End Engineer',
|
|
25
|
+
type: 'link'
|
|
26
|
+
}, {
|
|
27
|
+
id: 'computer-science',
|
|
28
|
+
href: '/learn/paths/computer-science',
|
|
29
|
+
trackingTarget: 'topnav_catalog_career_computer-science',
|
|
30
|
+
text: 'Computer Science',
|
|
31
|
+
type: 'link'
|
|
32
|
+
}, {
|
|
33
|
+
id: 'data-science',
|
|
34
|
+
href: '/pages/data-science-career-specializations',
|
|
35
|
+
trackingTarget: 'topnav_catalog_career_data_science',
|
|
36
|
+
text: 'Data Scientist',
|
|
37
|
+
type: 'link'
|
|
38
|
+
}];
|
|
39
|
+
export const liveLearningHubItems = {
|
|
40
|
+
title: 'Live Learning',
|
|
41
|
+
description: 'Build skills faster through live learning with expert instructors.',
|
|
42
|
+
data: [{
|
|
43
|
+
id: 'bootcamps',
|
|
44
|
+
href: '/live-learning',
|
|
45
|
+
text: 'Bootcamps',
|
|
46
|
+
description: 'Learn live from industry experts.',
|
|
47
|
+
trackingTarget: 'topnav_catalog_live_learning_bootcamps',
|
|
48
|
+
type: 'link',
|
|
49
|
+
newTab: true,
|
|
50
|
+
badge: renderNewBadge()
|
|
51
|
+
}, {
|
|
52
|
+
id: 'gk',
|
|
53
|
+
href: '/live-learning#GKLiveLearning',
|
|
54
|
+
text: 'Codecademy x GK',
|
|
55
|
+
description: 'Instructor-led courses, offered via our partner organization.',
|
|
56
|
+
trackingTarget: 'topnav_catalog_live_learning_gk_codecademy',
|
|
57
|
+
type: 'link',
|
|
58
|
+
newTab: true,
|
|
59
|
+
badge: renderNewBadge()
|
|
60
|
+
}]
|
|
61
|
+
};
|
|
62
|
+
export const topLanguages = [{
|
|
63
|
+
id: 'python',
|
|
64
|
+
href: '/catalog/language/python',
|
|
65
|
+
trackingTarget: 'topnav_catalog_skill_python',
|
|
66
|
+
text: 'Python',
|
|
67
|
+
type: 'link'
|
|
68
|
+
}, {
|
|
69
|
+
id: 'javascript',
|
|
70
|
+
href: '/catalog/language/javascript',
|
|
71
|
+
trackingTarget: 'topnav_catalog_skill_javascript',
|
|
72
|
+
text: 'JavaScript',
|
|
73
|
+
type: 'link'
|
|
74
|
+
}, {
|
|
75
|
+
id: 'html-css',
|
|
76
|
+
href: '/catalog/language/html-css',
|
|
77
|
+
trackingTarget: 'topnav_catalog_skill_html-css',
|
|
78
|
+
text: 'HTML & CSS',
|
|
79
|
+
type: 'link'
|
|
80
|
+
}, {
|
|
81
|
+
id: 'sql',
|
|
82
|
+
href: '/catalog/language/sql',
|
|
83
|
+
trackingTarget: 'topnav_catalog_skill_sql',
|
|
84
|
+
text: 'SQL',
|
|
85
|
+
type: 'link'
|
|
86
|
+
}, {
|
|
87
|
+
id: 'java',
|
|
88
|
+
href: '/catalog/language/java',
|
|
89
|
+
trackingTarget: 'topnav_catalog_skill_java',
|
|
90
|
+
text: 'Java',
|
|
91
|
+
type: 'link'
|
|
92
|
+
}, {
|
|
93
|
+
id: 'c-plus-plus',
|
|
94
|
+
href: '/catalog/language/c-plus-plus',
|
|
95
|
+
trackingTarget: 'topnav_catalog_skill_c-plus-plus',
|
|
96
|
+
text: 'C++',
|
|
97
|
+
type: 'link'
|
|
98
|
+
}, {
|
|
99
|
+
id: 'c-sharp',
|
|
100
|
+
href: '/catalog/language/c-sharp',
|
|
101
|
+
trackingTarget: 'topnav_catalog_skill_c-sharp',
|
|
102
|
+
text: 'C#',
|
|
103
|
+
type: 'link'
|
|
104
|
+
}, {
|
|
105
|
+
id: 'c',
|
|
106
|
+
href: '/catalog/language/c',
|
|
107
|
+
trackingTarget: 'topnav_catalog_skill_c',
|
|
108
|
+
text: 'C',
|
|
109
|
+
type: 'link'
|
|
110
|
+
}, {
|
|
111
|
+
id: 'php',
|
|
112
|
+
href: '/catalog/language/php',
|
|
113
|
+
trackingTarget: 'topnav_catalog_skill_php',
|
|
114
|
+
text: 'PHP',
|
|
115
|
+
type: 'link'
|
|
116
|
+
}, {
|
|
117
|
+
id: 'r',
|
|
118
|
+
href: '/catalog/language/r',
|
|
119
|
+
trackingTarget: 'topnav_catalog_skill_r',
|
|
120
|
+
text: 'R',
|
|
121
|
+
type: 'link'
|
|
122
|
+
}, {
|
|
123
|
+
id: 'it',
|
|
124
|
+
href: '/catalog/subject/information-technology',
|
|
125
|
+
trackingTarget: 'topnav_catalog_skill_it',
|
|
126
|
+
text: 'IT',
|
|
127
|
+
type: 'link'
|
|
128
|
+
}, {
|
|
129
|
+
id: 'cybersecurity',
|
|
130
|
+
href: '/catalog/subject/cybersecurity',
|
|
131
|
+
trackingTarget: 'topnav_catalog_skill_cybersecurity',
|
|
132
|
+
text: 'Cybersecurity',
|
|
133
|
+
type: 'link'
|
|
134
|
+
}];
|
|
135
|
+
export const getTopSubjects = () => {
|
|
136
|
+
return [{
|
|
137
|
+
id: 'cloud-computing',
|
|
138
|
+
href: '/catalog/subject/cloud-computing',
|
|
139
|
+
trackingTarget: 'topnav_catalog_skill_cloud-computing',
|
|
140
|
+
text: 'Cloud computing',
|
|
141
|
+
type: 'link'
|
|
142
|
+
}, {
|
|
143
|
+
id: 'artificial-intelligence',
|
|
144
|
+
href: '/catalog/subject/artificial-intelligence',
|
|
145
|
+
trackingTarget: 'topnav_catalog_skill_ai',
|
|
146
|
+
text: 'AI',
|
|
147
|
+
type: 'link'
|
|
148
|
+
}, {
|
|
149
|
+
id: 'web-development',
|
|
150
|
+
href: '/catalog/subject/web-development',
|
|
151
|
+
trackingTarget: 'topnav_catalog_skill_web_development',
|
|
152
|
+
text: 'Web development',
|
|
153
|
+
type: 'link'
|
|
154
|
+
}, {
|
|
155
|
+
id: 'data-science',
|
|
156
|
+
href: '/catalog/subject/data-science',
|
|
157
|
+
trackingTarget: 'topnav_catalog_skill_data-science',
|
|
158
|
+
text: 'Data science',
|
|
159
|
+
type: 'link'
|
|
160
|
+
}, {
|
|
161
|
+
id: 'web-design',
|
|
162
|
+
href: '/catalog/subject/web-design',
|
|
163
|
+
trackingTarget: 'topnav_catalog_skill_web-design',
|
|
164
|
+
text: 'Web design',
|
|
165
|
+
type: 'link'
|
|
166
|
+
}, {
|
|
167
|
+
id: 'professional-skills',
|
|
168
|
+
href: '/catalog/subject/professional-skills',
|
|
169
|
+
trackingTarget: 'topnav_catalog_skill_professional-skills',
|
|
170
|
+
text: 'Professional skills',
|
|
171
|
+
type: 'link'
|
|
172
|
+
}];
|
|
173
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AppFooterResourcesDataItem, AppHeaderResourcesDataItem } from '../../AppHeader/shared';
|
|
2
|
+
export declare const renderBadge: (text: string) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const renderNewBadge: (mt?: number) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const footerResourcesList: AppFooterResourcesDataItem[];
|
|
5
|
+
export declare const getHeaderResourcesList: () => AppHeaderResourcesDataItem[];
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { Badge } from '@codecademy/gamut';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
export const renderBadge = text => /*#__PURE__*/_jsx(Badge, {
|
|
4
|
+
size: "sm",
|
|
5
|
+
ml: 8,
|
|
6
|
+
alignSelf: "center",
|
|
7
|
+
children: text
|
|
8
|
+
});
|
|
9
|
+
export const renderNewBadge = (mt = 2) => /*#__PURE__*/_jsx(Badge, {
|
|
10
|
+
size: "sm",
|
|
11
|
+
mt: mt,
|
|
12
|
+
ml: 8,
|
|
13
|
+
alignSelf: "start",
|
|
14
|
+
variant: "accent",
|
|
15
|
+
children: "New"
|
|
16
|
+
});
|
|
17
|
+
export const footerResourcesList = [{
|
|
18
|
+
id: 'articles',
|
|
19
|
+
href: '/articles',
|
|
20
|
+
trackingTarget: 'articles',
|
|
21
|
+
text: 'Articles'
|
|
22
|
+
}, {
|
|
23
|
+
id: 'blog',
|
|
24
|
+
href: 'https://codecademy.com/resources/blog',
|
|
25
|
+
trackingTarget: 'blog',
|
|
26
|
+
text: 'Blog',
|
|
27
|
+
newTab: true
|
|
28
|
+
}, {
|
|
29
|
+
id: 'cheatsheets',
|
|
30
|
+
href: '/resources/cheatsheets/all',
|
|
31
|
+
trackingTarget: 'cheatsheets_home',
|
|
32
|
+
text: 'Cheatsheets'
|
|
33
|
+
}, {
|
|
34
|
+
id: 'challenges',
|
|
35
|
+
href: '/code-challenges',
|
|
36
|
+
trackingTarget: 'challenges',
|
|
37
|
+
text: 'Code challenges'
|
|
38
|
+
}, {
|
|
39
|
+
id: 'docs',
|
|
40
|
+
href: '/resources/docs',
|
|
41
|
+
trackingTarget: 'docs',
|
|
42
|
+
text: 'Docs'
|
|
43
|
+
}, {
|
|
44
|
+
id: 'projects',
|
|
45
|
+
href: '/projects',
|
|
46
|
+
trackingTarget: 'projects',
|
|
47
|
+
text: 'Projects'
|
|
48
|
+
}, {
|
|
49
|
+
id: 'videos',
|
|
50
|
+
href: '/resources/videos',
|
|
51
|
+
trackingTarget: 'videos_homepage',
|
|
52
|
+
text: 'Videos'
|
|
53
|
+
}, {
|
|
54
|
+
id: 'workspaces',
|
|
55
|
+
href: 'https://codecademy.com/pages/workspaces',
|
|
56
|
+
trackingTarget: 'workspaces',
|
|
57
|
+
text: 'Workspaces'
|
|
58
|
+
}];
|
|
59
|
+
export const getHeaderResourcesList = () => {
|
|
60
|
+
const inspirationSection = {
|
|
61
|
+
title: 'Inspiration & career',
|
|
62
|
+
links: [{
|
|
63
|
+
text: 'View all blog topics',
|
|
64
|
+
href: '/resources/blog',
|
|
65
|
+
id: 'view-all-inspiration',
|
|
66
|
+
trackingTarget: 'topnav_resources_inspiration_all',
|
|
67
|
+
type: 'link',
|
|
68
|
+
newTab: true
|
|
69
|
+
}],
|
|
70
|
+
data: [{
|
|
71
|
+
id: 'career-advice',
|
|
72
|
+
href: '/resources/blog/category/career/',
|
|
73
|
+
text: 'Career advice',
|
|
74
|
+
description: 'Get answers to questions about coding careers.',
|
|
75
|
+
trackingTarget: 'topnav_resources_inspiration_career_advice',
|
|
76
|
+
type: 'link',
|
|
77
|
+
newTab: true
|
|
78
|
+
}, {
|
|
79
|
+
id: 'learning-tips',
|
|
80
|
+
href: '/resources/blog/category/learning-tips/',
|
|
81
|
+
text: 'Learning tips',
|
|
82
|
+
description: 'Learn where to start and how to stay motivated.',
|
|
83
|
+
trackingTarget: 'topnav_resources_inspiration_learning_tips',
|
|
84
|
+
type: 'link',
|
|
85
|
+
newTab: true
|
|
86
|
+
}, {
|
|
87
|
+
id: 'career-center',
|
|
88
|
+
href: '/career-center',
|
|
89
|
+
text: 'Career Center',
|
|
90
|
+
description: 'Get tools to reach your tech career goals.',
|
|
91
|
+
trackingTarget: 'topnav_resources_inspiration_career_center',
|
|
92
|
+
type: 'link',
|
|
93
|
+
newTab: true,
|
|
94
|
+
badge: renderNewBadge()
|
|
95
|
+
}]
|
|
96
|
+
};
|
|
97
|
+
return [{
|
|
98
|
+
title: 'Docs',
|
|
99
|
+
description: 'Find definitions, code syntax, and more -- or contribute your own code documentation.',
|
|
100
|
+
links: [{
|
|
101
|
+
text: 'View all docs',
|
|
102
|
+
href: '/resources/docs',
|
|
103
|
+
id: 'view-all-docs',
|
|
104
|
+
trackingTarget: 'topnav_resources_docs_all',
|
|
105
|
+
type: 'link'
|
|
106
|
+
}, {
|
|
107
|
+
text: 'Contribute to docs',
|
|
108
|
+
href: '/pages/contribute-docs',
|
|
109
|
+
id: 'contribute-to-docs',
|
|
110
|
+
trackingTarget: 'topnav_resources_contribution_guide',
|
|
111
|
+
type: 'link'
|
|
112
|
+
}],
|
|
113
|
+
data: [{
|
|
114
|
+
id: 'c',
|
|
115
|
+
href: '/resources/docs/c',
|
|
116
|
+
trackingTarget: 'topnav_resources_docs_c',
|
|
117
|
+
text: 'C',
|
|
118
|
+
type: 'link'
|
|
119
|
+
}, {
|
|
120
|
+
id: 'html',
|
|
121
|
+
href: '/resources/docs/html',
|
|
122
|
+
trackingTarget: 'topnav_resources_docs_html',
|
|
123
|
+
text: 'HTML',
|
|
124
|
+
type: 'link'
|
|
125
|
+
}, {
|
|
126
|
+
id: 'python',
|
|
127
|
+
href: '/resources/docs/python',
|
|
128
|
+
trackingTarget: 'topnav_resources_docs_python',
|
|
129
|
+
text: 'Python',
|
|
130
|
+
type: 'link'
|
|
131
|
+
}, {
|
|
132
|
+
id: 'cpp',
|
|
133
|
+
href: '/resources/docs/cpp',
|
|
134
|
+
trackingTarget: 'topnav_resources_docs_cpp',
|
|
135
|
+
text: 'C++',
|
|
136
|
+
type: 'link'
|
|
137
|
+
}, {
|
|
138
|
+
id: 'java',
|
|
139
|
+
href: '/resources/docs/java',
|
|
140
|
+
trackingTarget: 'topnav_resources_docs_java',
|
|
141
|
+
text: 'Java',
|
|
142
|
+
type: 'link'
|
|
143
|
+
}, {
|
|
144
|
+
id: 'react',
|
|
145
|
+
href: '/resources/docs/react',
|
|
146
|
+
trackingTarget: 'topnav_resources_docs_react',
|
|
147
|
+
text: 'React',
|
|
148
|
+
type: 'link'
|
|
149
|
+
}, {
|
|
150
|
+
id: 'css',
|
|
151
|
+
href: '/resources/docs/css',
|
|
152
|
+
trackingTarget: 'topnav_resources_docs_css',
|
|
153
|
+
text: 'CSS',
|
|
154
|
+
type: 'link'
|
|
155
|
+
}, {
|
|
156
|
+
id: 'javascript',
|
|
157
|
+
href: '/resources/docs/javascript',
|
|
158
|
+
trackingTarget: 'topnav_resources_docs_javascript',
|
|
159
|
+
text: 'JavaScript',
|
|
160
|
+
type: 'link'
|
|
161
|
+
}, {
|
|
162
|
+
id: 'sql',
|
|
163
|
+
href: '/resources/docs/sql',
|
|
164
|
+
trackingTarget: 'topnav_resources_docs_sql',
|
|
165
|
+
text: 'SQL',
|
|
166
|
+
type: 'link'
|
|
167
|
+
}, {
|
|
168
|
+
id: 'git',
|
|
169
|
+
href: '/resources/docs/git',
|
|
170
|
+
trackingTarget: 'topnav_resources_docs_git',
|
|
171
|
+
text: 'Git',
|
|
172
|
+
type: 'link'
|
|
173
|
+
}, {
|
|
174
|
+
id: 'php',
|
|
175
|
+
href: '/resources/docs/php',
|
|
176
|
+
trackingTarget: 'topnav_resources_docs_php',
|
|
177
|
+
text: 'PHP',
|
|
178
|
+
type: 'link'
|
|
179
|
+
}, {
|
|
180
|
+
id: 'uiux',
|
|
181
|
+
href: '/resources/docs/uiux',
|
|
182
|
+
trackingTarget: 'topnav_resources_docs_uiux',
|
|
183
|
+
text: 'UI/UX',
|
|
184
|
+
type: 'link'
|
|
185
|
+
}]
|
|
186
|
+
}, {
|
|
187
|
+
title: 'Learning & practice tools',
|
|
188
|
+
data: [{
|
|
189
|
+
id: 'articles',
|
|
190
|
+
href: '/articles',
|
|
191
|
+
text: 'Articles',
|
|
192
|
+
description: 'Learn about technical concepts.',
|
|
193
|
+
trackingTarget: 'topnav_resources_learning_articles',
|
|
194
|
+
type: 'link'
|
|
195
|
+
}, {
|
|
196
|
+
id: 'cheatsheets',
|
|
197
|
+
href: '/resources/cheatsheets/all',
|
|
198
|
+
text: 'Cheatsheets',
|
|
199
|
+
description: 'Review concepts from your courses.',
|
|
200
|
+
trackingTarget: 'topnav_resources_learning_cheatsheets',
|
|
201
|
+
type: 'link'
|
|
202
|
+
}, {
|
|
203
|
+
id: 'code-challenges',
|
|
204
|
+
href: '/code-challenges',
|
|
205
|
+
text: 'Code challenges',
|
|
206
|
+
description: 'Test your knowledge and prep for interviews.',
|
|
207
|
+
trackingTarget: 'topnav_resources_learning_code_challenges',
|
|
208
|
+
type: 'link'
|
|
209
|
+
}, {
|
|
210
|
+
id: 'projects',
|
|
211
|
+
href: '/projects',
|
|
212
|
+
text: 'Projects',
|
|
213
|
+
description: 'Practice and build your portfolio.',
|
|
214
|
+
trackingTarget: 'topnav_resources_learning_projects',
|
|
215
|
+
type: 'link'
|
|
216
|
+
}, {
|
|
217
|
+
id: 'videos',
|
|
218
|
+
href: '/resources/videos',
|
|
219
|
+
text: 'Videos',
|
|
220
|
+
description: 'Watch tutorials, project walkthroughs, and more.',
|
|
221
|
+
trackingTarget: 'topnav_resources_learning_videos',
|
|
222
|
+
type: 'link'
|
|
223
|
+
}, {
|
|
224
|
+
id: 'workspaces',
|
|
225
|
+
href: '/pages/workspaces',
|
|
226
|
+
text: 'Workspaces',
|
|
227
|
+
description: 'Build and share projects in your browser.',
|
|
228
|
+
trackingTarget: 'topnav_resources_learning_workspaces',
|
|
229
|
+
type: 'link'
|
|
230
|
+
}]
|
|
231
|
+
}, inspirationSection];
|
|
232
|
+
};
|
package/dist/png.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'react-freezeframe';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BASE_STATIC_ASSET_PATH = "https://static-assets.codecademy.com/components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const BASE_STATIC_ASSET_PATH = 'https://static-assets.codecademy.com/components';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Avatar } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: Avatar,
|
|
5
|
+
args: {
|
|
6
|
+
alt: 'The Codey character drinking Boba tea',
|
|
7
|
+
src: 'https://content.codecademy.com/courses/free/boba.svg'
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Default = {
|
|
12
|
+
render: args => /*#__PURE__*/_jsx(Avatar, {
|
|
13
|
+
...args
|
|
14
|
+
}),
|
|
15
|
+
name: 'Avatar'
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { BetaSticker } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof BetaSticker>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof BetaSticker>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BetaSticker } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: BetaSticker,
|
|
5
|
+
args: {}
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Default = {
|
|
9
|
+
render: args => /*#__PURE__*/_jsx(BetaSticker, {
|
|
10
|
+
...args
|
|
11
|
+
}),
|
|
12
|
+
name: 'BetaSticker'
|
|
13
|
+
};
|
|
14
|
+
export const Small = {
|
|
15
|
+
render: args => /*#__PURE__*/_jsx(BetaSticker, {
|
|
16
|
+
...args
|
|
17
|
+
}),
|
|
18
|
+
name: 'Small',
|
|
19
|
+
args: {
|
|
20
|
+
size: 'small'
|
|
21
|
+
}
|
|
22
|
+
};
|