@codecademy/brand 2.0.0-alpha.c9468c7def.0 → 2.0.0-alpha.cec6f5b270.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
- package/dist/AppBar/AppBarSection.d.ts +10 -0
- package/dist/AppBar/index.d.ts +9 -0
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
- package/dist/AppBarDeprecated/index.d.ts +14 -0
- package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +92 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +7 -8
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -4
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
- package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
- package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
- package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
- package/dist/AppHeader/Search/consts.d.ts +23 -0
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
- package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
- package/dist/AppHeader/Search/types.d.ts +23 -0
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
- package/dist/AppHeader/index.d.ts +24 -0
- package/dist/AppHeader/index.js +2 -5
- 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/AppHeaderSubMenuMobile/index.js +5 -7
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
- package/dist/AppHeaderMobile/index.d.ts +20 -0
- package/dist/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/Avatar/index.d.ts +36 -0
- package/dist/AvatarChooser/index.d.ts +12 -0
- package/dist/BackToTopAnchor/index.d.ts +13 -0
- package/dist/Banner/index.d.ts +21 -0
- package/dist/BetaSticker/index.d.ts +6 -0
- package/dist/CareerPathCard/index.d.ts +19 -0
- package/dist/Carousel/elements.d.ts +27 -0
- package/dist/Carousel/index.d.ts +24 -0
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/CertificationPathCard/index.d.ts +20 -0
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
- package/dist/CommunityEventCard/index.d.ts +28 -0
- package/dist/CommunityEventToast/index.d.ts +6 -0
- package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
- package/dist/ContentGroupBaseCard/index.d.ts +31 -0
- package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
- package/dist/ContentGroupBaseCard/types.d.ts +10 -0
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
- package/dist/CourseCard/index.d.ts +20 -0
- package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
- package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
- package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
- package/dist/CurriculumCard/Footer/index.d.ts +10 -0
- package/dist/CurriculumCard/Image/index.d.ts +9 -0
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
- package/dist/CurriculumCard/index.d.ts +59 -0
- package/dist/DropdownButton/DropdownList.d.ts +17 -0
- package/dist/DropdownButton/index.d.ts +76 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
- package/dist/EditorialImage/index.d.ts +10 -0
- package/dist/EditorialImage/styles.module.scss +36 -0
- package/dist/EmptySection/index.d.ts +28 -0
- package/dist/ErrorContents/index.d.ts +8 -0
- package/dist/FeatureList/index.d.ts +11 -0
- package/dist/FeatureList/index.js +5 -4
- 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/CatalogLinks.js +6 -9
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
- 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/index.js +17 -25
- package/dist/GlobalFooter/types.d.ts +13 -0
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
- package/dist/GlobalHeader/index.d.ts +10 -0
- package/dist/GlobalHeader/index.js +41 -49
- 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/PageFeaturesEnhanced.js +3 -0
- package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
- package/dist/LandingPage/PageHero.d.ts +7 -0
- package/dist/LandingPage/PagePrefooter.d.ts +5 -0
- package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
- package/dist/LandingPage/PageTestimonials.d.ts +21 -0
- package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
- package/dist/LandingPage/Title.d.ts +23 -0
- package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
- package/dist/LandingPage/index.d.ts +14 -0
- package/dist/LandingPage/types.d.ts +28 -0
- package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
- package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
- package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
- package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
- package/dist/LayoutMenu/index.d.ts +3 -0
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
- package/dist/LayoutMenuVariant/index.d.ts +2 -0
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.d.ts +8 -0
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
- package/dist/LearningOutcomeAssessmentScores/index.d.ts +8 -0
- package/dist/LearningOutcomeAssessmentScores/index.js +24 -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 +27 -0
- package/dist/LearningOutcomeCard/index.js +179 -126
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.d.ts +6 -0
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js +23 -0
- package/dist/LearningOutcomeFlyout/index.d.ts +35 -0
- package/dist/LearningOutcomeFlyout/index.js +166 -0
- package/dist/LearningOutcomePopover/index.d.ts +10 -0
- package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
- package/dist/LearningOutcomeTile/index.d.ts +3 -0
- package/dist/LearningOutcomeTile/index.js +2 -4
- package/dist/LearningOutcomeTile/types.d.ts +47 -0
- package/dist/ListSection/index.d.ts +21 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/styles.module.scss +131 -0
- package/dist/LoadingCurriculumCard/index.d.ts +7 -0
- package/dist/Logo/CodecademyLogo.d.ts +2 -0
- package/dist/Logo/CodecademyLogo.js +19 -0
- package/dist/Logo/CodecademyPremiumLogo.d.ts +2 -0
- package/dist/Logo/CodecademyPremiumLogo.js +35 -0
- package/dist/Logo/CodecademyProAltLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProAltLogo.js +19 -0
- package/dist/Logo/CodecademyProLockupLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProLockupLogo.js +13 -0
- package/dist/Logo/CodecademyProLogo.d.ts +2 -0
- package/dist/{Logos/LogoCodecademyPro/index.js → Logo/CodecademyProLogo.js} +7 -11
- package/dist/Logo/CodecademyProMonoLogo.d.ts +2 -0
- package/dist/{Logos/LogoCodecademy/index.js → Logo/CodecademyProMonoLogo.js} +15 -15
- package/dist/Logo/CodecademyProgramLogo.d.ts +2 -0
- package/dist/Logo/CodecademyProgramLogo.js +14 -0
- package/dist/Logo/CodecademyTeamsLogo.d.ts +2 -0
- package/dist/{Logos/LogoCodecademyTeams/index.js → Logo/CodecademyTeamsLogo.js} +4 -9
- package/dist/Logo/index.d.ts +8 -0
- package/dist/Logo/index.js +30 -0
- package/dist/LogoFromSkillsoft/index.d.ts +227 -0
- package/dist/LogoFromSkillsoft/index.js +55 -0
- package/dist/LogoLXStudio/index.d.ts +3 -0
- package/dist/LogoLXStudio/index.js +47 -0
- package/dist/LogoProCutout/index.d.ts +8 -0
- package/dist/{Logos/ProLabel/ProLabelCutout → LogoProCutout}/index.js +1 -1
- package/dist/LogoProCutoutTransparent/index.d.ts +7 -0
- package/dist/{Logos/ProLabel/ProLabelCutoutTransparent → LogoProCutoutTransparent}/index.js +1 -1
- package/dist/MarketingToaster/index.d.ts +8 -0
- package/dist/NotFoundContent/404.svg +1 -0
- package/dist/NotFoundContent/index.d.ts +8 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
- package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
- package/dist/NotificationList/NotificationItem.d.ts +8 -0
- package/dist/NotificationList/index.d.ts +9 -0
- package/dist/NotificationList/typings.d.ts +16 -0
- package/dist/Notifications/NotificationBell.d.ts +10 -0
- package/dist/Notifications/NotificationsContents.d.ts +3 -0
- package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
- package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
- package/dist/Notifications/constants.d.ts +4 -0
- package/dist/Notifications/elements.d.ts +12 -0
- package/dist/Notifications/types.d.ts +24 -0
- package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
- package/dist/Notifications/useNotificationButtons.d.ts +9 -0
- package/dist/PageAlerts/PageAlerts.d.ts +10 -0
- package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
- package/dist/PageAlerts/index.d.ts +3 -0
- package/dist/PageAlerts/types.d.ts +17 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
- package/dist/PageSection/index.d.ts +17 -0
- package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
- package/dist/PastDue/index.d.ts +2 -0
- package/dist/PastDue/pastDueMessages.d.ts +6 -0
- package/dist/PausableImage/BaseImage/index.d.ts +15 -0
- package/dist/PausableImage/index.d.ts +11 -0
- package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
- package/dist/PlanCard/PlanFeature.d.ts +9 -0
- package/dist/PlanCard/PopularBadge.d.ts +3 -0
- package/dist/PlanCard/PricingAmount.d.ts +14 -0
- package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
- package/dist/PlanCard/consts.d.ts +14 -0
- package/dist/PlanCard/index.d.ts +18 -0
- package/dist/PlanCard/types.d.ts +39 -0
- package/dist/PlanCardTeams/consts.d.ts +9 -0
- package/dist/PlanCardTeams/index.d.ts +8 -0
- package/dist/PricingSection/PlanFeature.d.ts +10 -0
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
- package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
- package/dist/PricingSection/PricingCard/index.d.ts +12 -0
- package/dist/PricingSection/ProductCTA.d.ts +6 -0
- package/dist/PricingSection/Products.d.ts +11 -0
- package/dist/PricingSection/config.d.ts +8 -0
- package/dist/PricingSection/index.d.ts +13 -0
- package/dist/PricingSection/types.d.ts +30 -0
- package/dist/ProLabel/index.d.ts +376 -0
- package/dist/ProLabel/index.js +59 -0
- package/dist/ProLogo/index.d.ts +15 -0
- package/dist/{Logos/ProLabel → ProLogo}/index.js +5 -5
- package/dist/ProLogoAlt/index.d.ts +9 -0
- package/dist/ProductFeatureShowcase/index.d.ts +16 -0
- package/dist/QuizScore/index.d.ts +12 -0
- package/dist/RatingsBar/index.d.ts +12 -0
- package/dist/ResourceCard/index.d.ts +15 -0
- package/dist/ScoreSummary/SubScores.d.ts +28 -0
- package/dist/ScoreSummary/helpers.d.ts +11 -0
- package/dist/ScoreSummary/index.d.ts +21 -0
- package/dist/ScoreSummary/types.d.ts +310 -0
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/SkillPathCard/index.d.ts +17 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
- package/dist/SocialMediaSharing/index.d.ts +49 -0
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
- package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
- package/dist/Testimonial/index.d.ts +45 -0
- package/dist/assets/darkQuotes.svg +1 -0
- package/dist/assets/dots.svg +1 -0
- package/dist/assets/lightQuotes.svg +1 -0
- package/dist/assets/navyQuotes.svg +5 -0
- package/dist/assets/orange_squiggle.svg +1 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +7 -1
- package/dist/lib/breakpointHooks/index.d.ts +43 -0
- package/dist/lib/catalogList/index.d.ts +5 -0
- package/dist/lib/catalogList/index.js +3 -3
- package/dist/lib/resourcesList/index.d.ts +5 -0
- package/dist/lib/resourcesList/index.js +2 -11
- package/dist/png.d.ts +4 -0
- package/dist/react-freezeframe.d.ts +1 -0
- package/dist/remoteAssets/components.d.ts +1 -0
- package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
- package/dist/stories/Atoms/Logos/Logo.stories.d.ts +13 -0
- package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +8 -2
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +1 -1
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +11 -10
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
- package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
- package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
- package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
- package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +15 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +169 -39
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.d.ts +5 -0
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +43 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
- package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
- package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
- package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
- package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
- package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
- package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
- package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
- package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
- package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
- package/dist/svg.d.ts +8 -0
- package/dist/theme.d.ts +5 -0
- package/package.json +2 -2
- package/dist/Logos/LogoCodecademyMini/index.js +0 -18
- package/dist/Logos/LogoFromSkillsoft/index.js +0 -47
- package/dist/Logos/LogoLXStudio/index.js +0 -40
- package/dist/Logos/index.js +0 -7
- package/dist/Logos/shared.js +0 -16
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +0 -8
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +0 -8
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CurriculumCard } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof CurriculumCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CurriculumCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CurriculumCardWithImage: Story;
|
|
8
|
+
export declare const CurriculumCardEnrolled: Story;
|
|
9
|
+
export declare const CurriculumCardInProgress: Story;
|
|
10
|
+
export declare const CurriculumCardCompleted: Story;
|
|
11
|
+
export declare const CurriculumCardBeta: Story;
|
|
12
|
+
export declare const CurriculumCardAlternativeSubtitle: Story;
|
|
13
|
+
export declare const CurriculumCardWithDescription: Story;
|
|
14
|
+
export declare const CareerPathVariant: Story;
|
|
15
|
+
export declare const HorizontalCurriculumCard: Story;
|
|
16
|
+
export declare const DifficultyScale: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CareerPathCard } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof CareerPathCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CareerPathCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CareerPathCardWithImage: Story;
|
|
8
|
+
export declare const CareerPathCardWithJourney: Story;
|
|
9
|
+
export declare const CareerPathCardWithTimeToComplete: Story;
|
|
10
|
+
export declare const CareerPathCardWithEnrollmentStatus: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CertificationPathCard } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof CertificationPathCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CertificationPathCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CertificationPathCardWithProviderLogo: Story;
|
|
8
|
+
export declare const CertificationPathCardWithTimeToComplete: Story;
|
|
9
|
+
export declare const CertificationPathCardWithEnrollmentStatus: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { CourseCard } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof CourseCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CourseCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ProCourseCard: Story;
|
|
8
|
+
export declare const CourseCardWithImage: Story;
|
|
9
|
+
export declare const CourseCardWithTimeToComplete: Story;
|
|
10
|
+
export declare const CourseCardWithEnrollmentStatus: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LoadingCurriculumCard } from '../../../LoadingCurriculumCard';
|
|
3
|
+
declare const meta: Meta<typeof LoadingCurriculumCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LoadingCurriculumCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SkillPathCard } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof SkillPathCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SkillPathCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const SkillPathCardWithImage: Story;
|
|
8
|
+
export declare const SkillPathCardWithTimeToComplete: Story;
|
|
9
|
+
export declare const SkillPathCardWithEnrollmentStatus: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DropdownButton } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof DropdownButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof DropdownButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const DropdownButtonTypes: Story;
|
|
8
|
+
export declare const DropdownButtonVariants: Story;
|
|
9
|
+
export declare const DropdownTextButtonSizes: Story;
|
|
10
|
+
export declare const DropdownIconButtonSizes: Story;
|
|
11
|
+
export declare const DropdownPopoverAlignment: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { EmptySection } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof EmptySection>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof EmptySection>;
|
|
6
|
+
export declare const IllustrationOnTheRight: Story;
|
|
7
|
+
export declare const IllustrationOnTheLeft: Story;
|
|
8
|
+
export declare const DotsStretchToTheLeft: Story;
|
|
9
|
+
export declare const DotsStretchToTheRight: Story;
|
|
10
|
+
export declare const UsingADropdownButton: Story;
|
|
11
|
+
export declare const AnotherSectionOnTheLeft: Story;
|
|
12
|
+
export declare const AnotherSectionOnTheRight: Story;
|
|
13
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ErrorContents } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof ErrorContents>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ErrorContents>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const SupportInformation: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const HorizontalScrollMenuExample: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { HorizontalScrollMenu } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof HorizontalScrollMenu>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HorizontalScrollMenu>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { HubCard } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof HubCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HubCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const BackgroundRight: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { InfoCard } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof InfoCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof InfoCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const InfoCardWithBottomTags: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeAssessmentScores } from '../../LearningOutcomeAssessmentScores';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeAssessmentScores>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const NoScores: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LearningOutcomeAssessmentScores } from '../../LearningOutcomeAssessmentScores';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: LearningOutcomeAssessmentScores,
|
|
5
|
+
args: {}
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Example = () => {
|
|
9
|
+
return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
|
|
10
|
+
highestScore: 100,
|
|
11
|
+
highestScoreAchievedAt: "10/01",
|
|
12
|
+
latestScore: 50,
|
|
13
|
+
latestScoreAchievedAt: "10/23"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export const NoScores = () => {
|
|
17
|
+
return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
|
|
18
|
+
highestScore: null,
|
|
19
|
+
highestScoreAchievedAt: null,
|
|
20
|
+
latestScore: null,
|
|
21
|
+
latestScoreAchievedAt: null
|
|
22
|
+
});
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeCard } from '../../LearningOutcomeCard';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LearningOutcomeCard>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export declare const BaseCardWithHover: Story;
|
|
8
|
+
export declare const BaseCardWithTopics: Story;
|
|
9
|
+
export declare const EmphasizedCard: Story;
|
|
10
|
+
export declare const EmphasizedCardWithHover: Story;
|
|
11
|
+
export declare const EmphasizedCardWithTopics: Story;
|
|
12
|
+
export declare const EmphasizedCardWithProgress: Story;
|
|
13
|
+
export declare const EmphasizedCardWithProgress100: Story;
|
|
14
|
+
export declare const EmphasizedCardWithProgressAnimation: Story;
|
|
15
|
+
export declare const EmphasizedCardWithProgress100Animation: Story;
|
|
@@ -1,59 +1,189 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlexBox } from '@codecademy/gamut';
|
|
2
2
|
import { LearningOutcomeCard } from '../../LearningOutcomeCard';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
4
|
const meta = {
|
|
5
5
|
component: LearningOutcomeCard,
|
|
6
6
|
args: {
|
|
7
|
+
outcome: 'Implement sorting algorithms in Java.'
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export const Base = {
|
|
12
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
13
|
+
gap: 16,
|
|
14
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
15
|
+
...args,
|
|
16
|
+
level: 1
|
|
17
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
18
|
+
...args,
|
|
19
|
+
level: 2
|
|
20
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
21
|
+
...args,
|
|
22
|
+
level: 3
|
|
23
|
+
})]
|
|
24
|
+
}),
|
|
25
|
+
name: 'Base card'
|
|
26
|
+
};
|
|
27
|
+
export const BaseCardWithHover = {
|
|
28
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
29
|
+
gap: 16,
|
|
30
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
31
|
+
...args,
|
|
32
|
+
level: 1,
|
|
33
|
+
isInteractive: true
|
|
34
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
35
|
+
...args,
|
|
36
|
+
level: 2,
|
|
37
|
+
isInteractive: true
|
|
38
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
39
|
+
...args,
|
|
40
|
+
level: 3,
|
|
41
|
+
isInteractive: true
|
|
42
|
+
})]
|
|
43
|
+
}),
|
|
44
|
+
name: 'Base card with hover'
|
|
45
|
+
};
|
|
46
|
+
export const BaseCardWithTopics = {
|
|
47
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
48
|
+
gap: 16,
|
|
49
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
50
|
+
...args,
|
|
51
|
+
level: 1,
|
|
52
|
+
skills: [{
|
|
53
|
+
title: 'java'
|
|
54
|
+
}, {
|
|
55
|
+
title: 'skill'
|
|
56
|
+
}, {
|
|
57
|
+
title: 'computer science'
|
|
58
|
+
}]
|
|
59
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
60
|
+
...args,
|
|
61
|
+
level: 2,
|
|
62
|
+
skills: [{
|
|
63
|
+
title: 'java'
|
|
64
|
+
}, {
|
|
65
|
+
title: 'skill'
|
|
66
|
+
}, {
|
|
67
|
+
title: 'computer science'
|
|
68
|
+
}]
|
|
69
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
70
|
+
...args,
|
|
71
|
+
level: 3,
|
|
72
|
+
skills: [{
|
|
73
|
+
title: 'java'
|
|
74
|
+
}, {
|
|
75
|
+
title: 'skill'
|
|
76
|
+
}, {
|
|
77
|
+
title: 'computer science'
|
|
78
|
+
}]
|
|
79
|
+
})]
|
|
80
|
+
}),
|
|
81
|
+
name: 'Base card with topics'
|
|
82
|
+
};
|
|
83
|
+
export const EmphasizedCard = {
|
|
84
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
85
|
+
...args,
|
|
7
86
|
level: 1,
|
|
8
|
-
|
|
87
|
+
mode: "emphasized"
|
|
88
|
+
}),
|
|
89
|
+
name: 'Emphasized card'
|
|
90
|
+
};
|
|
91
|
+
export const EmphasizedCardWithHover = {
|
|
92
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
93
|
+
...args,
|
|
94
|
+
level: 2,
|
|
95
|
+
mode: "emphasized",
|
|
96
|
+
isInteractive: true
|
|
97
|
+
}),
|
|
98
|
+
name: 'Emphasized card with hover'
|
|
99
|
+
};
|
|
100
|
+
export const EmphasizedCardWithTopics = {
|
|
101
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
102
|
+
...args,
|
|
103
|
+
level: 3,
|
|
9
104
|
skills: [{
|
|
10
105
|
title: 'java'
|
|
11
106
|
}, {
|
|
12
107
|
title: 'skill'
|
|
13
108
|
}, {
|
|
14
109
|
title: 'computer science'
|
|
15
|
-
}]
|
|
16
|
-
|
|
110
|
+
}],
|
|
111
|
+
mode: "emphasized",
|
|
112
|
+
isInteractive: true
|
|
113
|
+
}),
|
|
114
|
+
name: 'Emphasized card with topics'
|
|
17
115
|
};
|
|
18
|
-
export
|
|
19
|
-
export const Default = {
|
|
116
|
+
export const EmphasizedCardWithProgress = {
|
|
20
117
|
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
21
|
-
...args
|
|
118
|
+
...args,
|
|
119
|
+
level: 2,
|
|
120
|
+
progress: 60,
|
|
121
|
+
skills: [{
|
|
122
|
+
title: 'java'
|
|
123
|
+
}, {
|
|
124
|
+
title: 'skill'
|
|
125
|
+
}, {
|
|
126
|
+
title: 'computer science'
|
|
127
|
+
}],
|
|
128
|
+
mode: "emphasized",
|
|
129
|
+
isInteractive: true
|
|
22
130
|
}),
|
|
23
|
-
name: '
|
|
131
|
+
name: 'Emphasized card with progress'
|
|
24
132
|
};
|
|
25
|
-
export const
|
|
26
|
-
render: args => /*#__PURE__*/_jsx(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
133
|
+
export const EmphasizedCardWithProgress100 = {
|
|
134
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
135
|
+
...args,
|
|
136
|
+
level: 3,
|
|
137
|
+
progress: 100,
|
|
138
|
+
skills: [{
|
|
139
|
+
title: 'java'
|
|
140
|
+
}, {
|
|
141
|
+
title: 'skill'
|
|
142
|
+
}, {
|
|
143
|
+
title: 'computer science'
|
|
144
|
+
}],
|
|
145
|
+
mode: "emphasized",
|
|
146
|
+
isInteractive: true
|
|
33
147
|
}),
|
|
34
|
-
name: 'Emphasized
|
|
148
|
+
name: 'Emphasized card with 100% progress'
|
|
35
149
|
};
|
|
36
|
-
export const
|
|
37
|
-
render: args => /*#__PURE__*/_jsx(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
150
|
+
export const EmphasizedCardWithProgressAnimation = {
|
|
151
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
152
|
+
...args,
|
|
153
|
+
level: 2,
|
|
154
|
+
progress: 80,
|
|
155
|
+
progressUpdateData: {
|
|
156
|
+
previousProgress: 50,
|
|
157
|
+
progressDuration: 500
|
|
158
|
+
},
|
|
159
|
+
skills: [{
|
|
160
|
+
title: 'java'
|
|
161
|
+
}, {
|
|
162
|
+
title: 'skill'
|
|
163
|
+
}, {
|
|
164
|
+
title: 'computer science'
|
|
165
|
+
}],
|
|
166
|
+
mode: "emphasized"
|
|
45
167
|
}),
|
|
46
|
-
name: 'Emphasized card
|
|
168
|
+
name: 'Emphasized card with progress with animation'
|
|
47
169
|
};
|
|
48
|
-
export const
|
|
49
|
-
render: args => /*#__PURE__*/_jsx(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
170
|
+
export const EmphasizedCardWithProgress100Animation = {
|
|
171
|
+
render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
172
|
+
...args,
|
|
173
|
+
level: 2,
|
|
174
|
+
progress: 100,
|
|
175
|
+
progressUpdateData: {
|
|
176
|
+
previousProgress: 50,
|
|
177
|
+
completionDelay: 500
|
|
178
|
+
},
|
|
179
|
+
skills: [{
|
|
180
|
+
title: 'java'
|
|
181
|
+
}, {
|
|
182
|
+
title: 'skill'
|
|
183
|
+
}, {
|
|
184
|
+
title: 'computer science'
|
|
185
|
+
}],
|
|
186
|
+
mode: "emphasized"
|
|
187
|
+
}),
|
|
188
|
+
name: 'Emphasized card with 100% progress with animation'
|
|
59
189
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeFlyout } from '../../LearningOutcomeFlyout';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeFlyout>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { FillButton, FlexBox } from '@codecademy/gamut';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { LearningOutcomeFlyout } from '../../LearningOutcomeFlyout';
|
|
4
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: LearningOutcomeFlyout,
|
|
7
|
+
args: {}
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export const Example = () => {
|
|
11
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
12
|
+
const toggleOpen = () => setIsExpanded(!isExpanded);
|
|
13
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
14
|
+
children: [/*#__PURE__*/_jsx(FillButton, {
|
|
15
|
+
onClick: toggleOpen,
|
|
16
|
+
children: "Open Flyout"
|
|
17
|
+
}), /*#__PURE__*/_jsx(FlexBox, {
|
|
18
|
+
width: "100%",
|
|
19
|
+
children: /*#__PURE__*/_jsx(LearningOutcomeFlyout, {
|
|
20
|
+
expanded: isExpanded,
|
|
21
|
+
learningOutcome: {
|
|
22
|
+
highestScore: 100,
|
|
23
|
+
highestScoreAchievedAt: '10/01',
|
|
24
|
+
latestScore: 68,
|
|
25
|
+
latestScoreAchievedAt: '10/01',
|
|
26
|
+
level: 2,
|
|
27
|
+
outcome: 'Understand the basics of React',
|
|
28
|
+
percentComplete: 75,
|
|
29
|
+
parentLOs: [{
|
|
30
|
+
id: '1',
|
|
31
|
+
outcome: 'Build a React component',
|
|
32
|
+
level: 3
|
|
33
|
+
}, {
|
|
34
|
+
id: '2',
|
|
35
|
+
outcome: 'Manage state in React',
|
|
36
|
+
level: 3
|
|
37
|
+
}]
|
|
38
|
+
},
|
|
39
|
+
onClose: () => setIsExpanded(false)
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeLevelBadge } from '../../LearningOutcomeBadges';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeLevelBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LearningOutcomeLevelBadge>;
|
|
6
|
+
export declare const AllLevels: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeLowAssessmentBadge } from '../../LearningOutcomeBadges';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeLowAssessmentBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LearningOutcomeLowAssessmentBadge>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomePopover } from '../../LearningOutcomePopover';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomePopover>;
|
|
4
|
+
export default meta;
|
|
5
|
+
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LearningOutcomeTile } from '../../LearningOutcomeTile';
|
|
3
|
+
declare const meta: Meta<typeof LearningOutcomeTile>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LearningOutcomeTile>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithLowAssessments: Story;
|
|
8
|
+
export declare const WithPopover: Story;
|
|
9
|
+
export declare const Small: Story;
|
|
10
|
+
export declare const DarkMode: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ListSection } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof ListSection>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ListSection>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ListSectionWithEmptyState: Story;
|
|
8
|
+
export declare const ListSectionWithHeaderAndSecondaryHeaderButtons: Story;
|
|
9
|
+
export declare const ListSectionWithCustomHeaderAndSecondaryHeaderButtons: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { NotificationList } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof NotificationList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NotificationList>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PageSection } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof PageSection>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PageSection>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const PageSectionWithHeaderAndFooterButtons: Story;
|
|
8
|
+
export declare const PageSectionWithCustomHeaderAndFooterButtons: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { PastDueModalContents } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof PastDueModalContents>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PastDueModalContents>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ErrorAlert: {
|
|
8
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SocialMediaSharing } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof SocialMediaSharing>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SocialMediaSharing>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SocialMediaSharingDropdown } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof SocialMediaSharingDropdown>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SocialMediaSharingDropdown>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Testimonial } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Testimonial>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Testimonial>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LightMode: Story;
|
|
8
|
+
export declare const DarkMode: Story;
|
|
9
|
+
export declare const SmallLight: Story;
|
|
10
|
+
export declare const MediumDark: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GlobalFooter } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof GlobalFooter>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GlobalFooter>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const HidePricing: Story;
|
|
8
|
+
export declare const ClickableMadeIn: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GlobalHeader } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof GlobalHeader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GlobalHeader>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const GlobalHeaderWithSearchAndNotifications: Story;
|
|
8
|
+
export declare const GlobalHeaderOverBackgroundColor: Story;
|
|
9
|
+
export declare const GlobalHeaderWithAnActionFunction: Story;
|
|
10
|
+
export declare const Loading: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GlobalHeader } from '../../../index';
|
|
3
|
+
declare const meta: Meta<typeof GlobalHeader>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GlobalHeader>;
|
|
6
|
+
export declare const AnonymousUserDefault: Story;
|
|
7
|
+
export declare const AnonymousUserLandingPage: Story;
|
|
8
|
+
export declare const AnonymousUserLoginPage: Story;
|
|
9
|
+
export declare const AnonymousUserSignupPage: Story;
|