@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.bc135b46d4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AbbreviatedCommunityEventCard/index.d.ts +8 -0
- package/dist/AppBar/AppBarSection.d.ts +10 -0
- package/dist/AppBar/index.d.ts +9 -0
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.d.ts +14 -0
- package/dist/AppBarDeprecated/index.d.ts +14 -0
- package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +92 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.d.ts +13 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.d.ts +3 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.d.ts +4 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.d.ts +2 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.d.ts +12 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +48 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.d.ts +15 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.d.ts +6 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +9 -9
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.d.ts +14 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +18 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.d.ts +9 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.d.ts +10 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.d.ts +13 -0
- package/dist/AppHeader/Search/DefaultResults.d.ts +10 -0
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.d.ts +7 -0
- package/dist/AppHeader/Search/SearchButton.d.ts +2 -0
- package/dist/AppHeader/Search/SearchPane.d.ts +6 -0
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.d.ts +18 -0
- package/dist/AppHeader/Search/SearchWorker/index.d.ts +5 -0
- package/dist/AppHeader/Search/SearchWorker/src.d.ts +1 -0
- package/dist/AppHeader/Search/SearchWorker/types.d.ts +37 -0
- package/dist/AppHeader/Search/SearchWorker/worker.d.ts +2 -0
- package/dist/AppHeader/Search/consts.d.ts +23 -0
- package/dist/AppHeader/Search/consts.js +1 -1
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.d.ts +5 -0
- package/dist/AppHeader/Search/safelyRedirect.d.ts +5 -0
- package/dist/AppHeader/Search/types.d.ts +23 -0
- package/dist/AppHeader/Search/useHeaderSearch.d.ts +6 -0
- package/dist/AppHeader/index.d.ts +24 -0
- package/dist/AppHeader/shared/elements.d.ts +84 -0
- package/dist/AppHeader/shared/index.d.ts +4 -0
- package/dist/AppHeader/shared/keyboardNav.d.ts +23 -0
- package/dist/AppHeader/shared/mockAppHeaderItems.d.ts +2 -0
- package/dist/AppHeader/shared/testTypes.d.ts +0 -0
- package/dist/AppHeader/shared/types.d.ts +107 -0
- package/dist/AppHeader/shared/utils.d.ts +16 -0
- package/dist/AppHeader/utils/types.d.ts +8 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.d.ts +5 -0
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.d.ts +13 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.d.ts +9 -0
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.d.ts +7 -0
- package/dist/AppHeaderMobile/index.d.ts +20 -0
- package/dist/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/Avatar/index.d.ts +36 -0
- package/dist/AvatarChooser/index.d.ts +12 -0
- package/dist/BackToTopAnchor/index.d.ts +13 -0
- package/dist/Banner/CountdownTimer.d.ts +7 -0
- package/dist/Banner/CountdownTimer.js +110 -0
- package/dist/Banner/EnhancedBanner.d.ts +17 -0
- package/dist/Banner/EnhancedBanner.js +178 -0
- package/dist/Banner/index.d.ts +31 -0
- package/dist/Banner/index.js +27 -6
- package/dist/BetaSticker/index.d.ts +6 -0
- package/dist/CareerPathCard/index.d.ts +19 -0
- package/dist/Carousel/elements.d.ts +27 -0
- package/dist/Carousel/index.d.ts +24 -0
- package/dist/CertificationPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/CertificationPathCard/index.d.ts +20 -0
- package/dist/CommunityEventCard/EventTypeIcon.d.ts +11 -0
- package/dist/CommunityEventCard/index.d.ts +28 -0
- package/dist/CommunityEventToast/index.d.ts +6 -0
- package/dist/ContentGroupBaseCard/helpers.d.ts +4 -0
- package/dist/ContentGroupBaseCard/index.d.ts +31 -0
- package/dist/ContentGroupBaseCard/shared.d.ts +8 -0
- package/dist/ContentGroupBaseCard/types.d.ts +10 -0
- package/dist/CourseCard/__tests__/__fixtures__/index.d.ts +3 -0
- package/dist/CourseCard/index.d.ts +20 -0
- package/dist/CurriculumCard/BottomTag/index.d.ts +7 -0
- package/dist/CurriculumCard/Difficulty/helpers.d.ts +8 -0
- package/dist/CurriculumCard/Difficulty/index.d.ts +3 -0
- package/dist/CurriculumCard/Difficulty/types.d.ts +22 -0
- package/dist/CurriculumCard/Footer/index.d.ts +10 -0
- package/dist/CurriculumCard/Image/index.d.ts +9 -0
- package/dist/CurriculumCard/Subtitle/helpers.d.ts +1 -0
- package/dist/CurriculumCard/Subtitle/index.d.ts +8 -0
- package/dist/CurriculumCard/index.d.ts +59 -0
- package/dist/DropdownButton/DropdownList.d.ts +17 -0
- package/dist/DropdownButton/index.d.ts +76 -0
- package/dist/DropdownButton/useDynamicPopoverPosition.d.ts +14 -0
- package/dist/EditorialImage/index.d.ts +10 -0
- package/dist/EditorialImage/styles.module.scss +36 -0
- package/dist/EmptySection/index.d.ts +28 -0
- package/dist/ErrorContents/index.d.ts +8 -0
- package/dist/FeatureList/index.d.ts +11 -0
- package/dist/GlobalFooter/FooterHeading.d.ts +9 -0
- package/dist/GlobalFooter/FooterLegal/LegalLinks.d.ts +6 -0
- package/dist/GlobalFooter/FooterLegal/MadeIn.d.ts +5 -0
- package/dist/GlobalFooter/FooterLegal/index.d.ts +7 -0
- package/dist/GlobalFooter/FooterLinks.d.ts +18 -0
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.d.ts +12 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.d.ts +7 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.d.ts +3 -0
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.d.ts +4 -0
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.d.ts +2 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
- package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
- package/dist/GlobalFooter/FooterNavLinks/index.d.ts +4 -0
- package/dist/GlobalFooter/FooterSubHeading.d.ts +9 -0
- package/dist/GlobalFooter/index.d.ts +23 -0
- package/dist/GlobalFooter/types.d.ts +13 -0
- package/dist/GlobalHeader/GlobalHeaderItems.d.ts +25 -0
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/dist/GlobalHeader/GlobalHeaderVariants.d.ts +28 -0
- package/dist/GlobalHeader/GlobalHeaderVariants.js +1 -1
- package/dist/GlobalHeader/index.d.ts +10 -0
- package/dist/GlobalHeader/index.js +5 -0
- package/dist/GlobalHeader/types.d.ts +89 -0
- package/dist/GlobalHeader/urlHelpers.d.ts +2 -0
- package/dist/GlobalPage/index.d.ts +34 -0
- package/dist/Grid/GridCollapse.d.ts +41 -0
- package/dist/Grid/Subgrid.d.ts +23 -0
- package/dist/Grid/getCSSFromColumnCount.d.ts +6 -0
- package/dist/Grid/index.d.ts +3 -0
- package/dist/HeaderHeightArea/index.d.ts +9 -0
- package/dist/HeaderHeightArea/useIsInHeaderRegion.d.ts +1 -0
- package/dist/HorizontalScrollMenu/index.d.ts +7 -0
- package/dist/HubCard/index.d.ts +8 -0
- package/dist/InfoCard/index.d.ts +19 -0
- package/dist/Konamimojisplosion/Konamimojisplosion.d.ts +5 -0
- package/dist/Konamimojisplosion/index.d.ts +2 -0
- package/dist/Konamimojisplosion/useKonamimojisplosion.d.ts +1 -0
- package/dist/LandingPage/CTA.d.ts +9 -0
- package/dist/LandingPage/Description.d.ts +6 -0
- package/dist/LandingPage/Feature.d.ts +32 -0
- package/dist/LandingPage/PageFAQs.d.ts +10 -0
- package/dist/LandingPage/PageFeatures.d.ts +16 -0
- package/dist/LandingPage/PageFeaturesEnhanced.d.ts +7 -0
- package/dist/LandingPage/PageFeaturesWithReferences.d.ts +19 -0
- package/dist/LandingPage/PageHero.d.ts +7 -0
- package/dist/LandingPage/PagePrefooter.d.ts +5 -0
- package/dist/LandingPage/PageSingleFeature.d.ts +56 -0
- package/dist/LandingPage/PageTestimonials.d.ts +21 -0
- package/dist/LandingPage/PageVideoGallery.d.ts +11 -0
- package/dist/LandingPage/Title.d.ts +23 -0
- package/dist/LandingPage/TitleWithEyebrow.d.ts +11 -0
- package/dist/LandingPage/index.d.ts +14 -0
- package/dist/LandingPage/types.d.ts +28 -0
- package/dist/LayoutMenu/AccordionMenu.d.ts +25 -0
- package/dist/LayoutMenu/LayoutMenu.d.ts +43 -0
- package/dist/LayoutMenu/LayoutMenu.js +4 -3
- package/dist/LayoutMenu/LayoutMenuSection.d.ts +16 -0
- package/dist/LayoutMenu/SectionItemLink.d.ts +7 -0
- package/dist/LayoutMenu/SelectedSectionItem.d.ts +3 -0
- package/dist/LayoutMenu/index.d.ts +3 -0
- package/dist/LayoutMenuVariant/AccordionMenu.d.ts +21 -0
- package/dist/LayoutMenuVariant/LayoutMenu.d.ts +39 -0
- package/dist/LayoutMenuVariant/LayoutMenu.js +4 -3
- package/dist/LayoutMenuVariant/LayoutMenuSection.d.ts +10 -0
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +8 -0
- package/dist/LayoutMenuVariant/index.d.ts +2 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
- package/dist/LearningOutcomeBadges/index.d.ts +2 -0
- package/dist/LearningOutcomeCard/index.d.ts +29 -0
- package/dist/LearningOutcomeCard/index.js +178 -0
- package/dist/LearningOutcomePopover/index.d.ts +10 -0
- package/dist/LearningOutcomePopover/index.js +125 -0
- package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
- package/dist/LearningOutcomeTile/Tile.js +79 -0
- package/dist/LearningOutcomeTile/index.d.ts +2 -0
- package/dist/LearningOutcomeTile/index.js +116 -0
- package/dist/LearningOutcomeTile/types.d.ts +48 -0
- package/dist/LearningOutcomeTile/types.js +11 -0
- package/dist/ListSection/index.d.ts +21 -0
- package/dist/ListSection/index.js +64 -0
- package/dist/Loading/index.d.ts +5 -0
- package/dist/Loading/index.js +82 -0
- package/dist/Loading/styles.module.scss +131 -0
- package/dist/LoadingCurriculumCard/index.d.ts +7 -0
- package/dist/LoadingCurriculumCard/index.js +82 -0
- package/dist/Logos/LogoCodecademy/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademy/index.js +22 -0
- package/dist/Logos/LogoCodecademyMini/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyMini/index.js +18 -0
- package/dist/Logos/LogoCodecademyPro/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyPro/index.js +25 -0
- package/dist/Logos/LogoCodecademyTeams/index.d.ts +2 -0
- package/dist/Logos/LogoCodecademyTeams/index.js +46 -0
- package/dist/Logos/LogoFromSkillsoft/index.d.ts +3 -0
- package/dist/Logos/LogoFromSkillsoft/index.js +47 -0
- package/dist/Logos/LogoLXStudio/index.d.ts +3 -0
- package/dist/Logos/LogoLXStudio/index.js +40 -0
- package/dist/Logos/ProLabel/ProLabelCutout/index.d.ts +8 -0
- package/dist/Logos/ProLabel/ProLabelCutout/index.js +31 -0
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.d.ts +7 -0
- package/dist/Logos/ProLabel/ProLabelCutoutTransparent/index.js +31 -0
- package/dist/Logos/ProLabel/index.d.ts +15 -0
- package/dist/Logos/ProLabel/index.js +27 -0
- package/dist/Logos/index.d.ts +7 -0
- package/dist/Logos/index.js +7 -0
- package/dist/Logos/shared.d.ts +636 -0
- package/dist/Logos/shared.js +16 -0
- package/dist/MarketingToaster/index.d.ts +8 -0
- package/dist/MarketingToaster/index.js +67 -0
- package/dist/NotFoundContent/404.svg +1 -0
- package/dist/NotFoundContent/index.d.ts +8 -0
- package/dist/NotFoundContent/index.js +55 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.d.ts +7 -0
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
- package/dist/NotificationList/EmptyNotification/index.d.ts +1 -0
- package/dist/NotificationList/EmptyNotification/index.js +38 -0
- package/dist/NotificationList/NotificationItem.d.ts +8 -0
- package/dist/NotificationList/NotificationItem.js +151 -0
- package/dist/NotificationList/index.d.ts +9 -0
- package/dist/NotificationList/index.js +46 -0
- package/dist/NotificationList/typings.d.ts +16 -0
- package/dist/NotificationList/typings.js +1 -0
- package/dist/Notifications/NotificationBell.d.ts +10 -0
- package/dist/Notifications/NotificationBell.js +72 -0
- package/dist/Notifications/NotificationsContents.d.ts +3 -0
- package/dist/Notifications/NotificationsContents.js +85 -0
- package/dist/Notifications/NotificationsDropdown.d.ts +2 -0
- package/dist/Notifications/NotificationsDropdown.js +25 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.d.ts +2 -0
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
- package/dist/Notifications/__fixtures__/stubs.d.ts +2 -0
- package/dist/Notifications/__fixtures__/stubs.js +8 -0
- package/dist/Notifications/constants.d.ts +4 -0
- package/dist/Notifications/constants.js +4 -0
- package/dist/Notifications/elements.d.ts +12 -0
- package/dist/Notifications/elements.js +21 -0
- package/dist/Notifications/types.d.ts +24 -0
- package/dist/Notifications/types.js +1 -0
- package/dist/Notifications/useHeaderNotifications.d.ts +10 -0
- package/dist/Notifications/useHeaderNotifications.js +37 -0
- package/dist/Notifications/useNotificationButtons.d.ts +9 -0
- package/dist/Notifications/useNotificationButtons.js +56 -0
- package/dist/PageAlerts/PageAlerts.d.ts +10 -0
- package/dist/PageAlerts/PageAlerts.js +75 -0
- package/dist/PageAlerts/PageAlertsProvider.d.ts +11 -0
- package/dist/PageAlerts/PageAlertsProvider.js +34 -0
- package/dist/PageAlerts/index.d.ts +3 -0
- package/dist/PageAlerts/index.js +3 -0
- package/dist/PageAlerts/types.d.ts +17 -0
- package/dist/PageAlerts/types.js +1 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.d.ts +19 -0
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
- package/dist/PageLayoutWithSidebarMenu/index.d.ts +1 -0
- package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
- package/dist/PageSection/index.d.ts +17 -0
- package/dist/PageSection/index.js +67 -0
- package/dist/PastDue/PastDueModalContents/index.d.ts +8 -0
- package/dist/PastDue/PastDueModalContents/index.js +30 -0
- package/dist/PastDue/index.d.ts +2 -0
- package/dist/PastDue/index.js +2 -0
- package/dist/PastDue/pastDueMessages.d.ts +6 -0
- package/dist/PastDue/pastDueMessages.js +48 -0
- package/dist/PausableImage/BaseImage/index.d.ts +15 -0
- package/dist/PausableImage/BaseImage/index.js +54 -0
- package/dist/PausableImage/index.d.ts +11 -0
- package/dist/PausableImage/index.js +37 -0
- package/dist/PlanCard/PlanCardBanner.d.ts +7 -0
- package/dist/PlanCard/PlanCardBanner.js +28 -0
- package/dist/PlanCard/PlanFeature.d.ts +9 -0
- package/dist/PlanCard/PlanFeature.js +83 -0
- package/dist/PlanCard/PopularBadge.d.ts +3 -0
- package/dist/PlanCard/PopularBadge.js +13 -0
- package/dist/PlanCard/PricingAmount.d.ts +14 -0
- package/dist/PlanCard/PricingAmount.js +117 -0
- package/dist/PlanCard/RecommendedBadge.d.ts +3 -0
- package/dist/PlanCard/RecommendedBadge.js +24 -0
- package/dist/PlanCard/consts.d.ts +14 -0
- package/dist/PlanCard/consts.js +135 -0
- package/dist/PlanCard/index.d.ts +18 -0
- package/dist/PlanCard/index.js +370 -0
- package/dist/PlanCard/types.d.ts +39 -0
- package/dist/PlanCard/types.js +62 -0
- package/dist/PlanCardTeams/consts.d.ts +9 -0
- package/dist/PlanCardTeams/consts.js +8 -0
- package/dist/PlanCardTeams/index.d.ts +8 -0
- package/dist/PlanCardTeams/index.js +167 -0
- package/dist/PricingSection/PlanFeature.d.ts +10 -0
- package/dist/PricingSection/PlanFeature.js +88 -0
- package/dist/PricingSection/PricingCard/PricingAmount.d.ts +10 -0
- package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.d.ts +3 -0
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
- package/dist/PricingSection/PricingCard/consts.d.ts +14 -0
- package/dist/PricingSection/PricingCard/consts.js +85 -0
- package/dist/PricingSection/PricingCard/index.d.ts +12 -0
- package/dist/PricingSection/PricingCard/index.js +241 -0
- package/dist/PricingSection/ProductCTA.d.ts +6 -0
- package/dist/PricingSection/ProductCTA.js +44 -0
- package/dist/PricingSection/Products.d.ts +11 -0
- package/dist/PricingSection/Products.js +74 -0
- package/dist/PricingSection/config.d.ts +8 -0
- package/dist/PricingSection/config.js +36 -0
- package/dist/PricingSection/index.d.ts +13 -0
- package/dist/PricingSection/index.js +58 -0
- package/dist/PricingSection/types.d.ts +30 -0
- package/dist/PricingSection/types.js +8 -0
- package/dist/ProLogoAlt/index.d.ts +9 -0
- package/dist/ProLogoAlt/index.js +26 -0
- package/dist/ProductFeatureShowcase/index.d.ts +16 -0
- package/dist/ProductFeatureShowcase/index.js +120 -0
- package/dist/QuizScore/index.d.ts +12 -0
- package/dist/QuizScore/index.js +84 -0
- package/dist/RatingsBar/index.d.ts +12 -0
- package/dist/RatingsBar/index.js +32 -0
- package/dist/ResourceCard/index.d.ts +15 -0
- package/dist/ResourceCard/index.js +59 -0
- package/dist/ScoreSummary/SubScores.d.ts +28 -0
- package/dist/ScoreSummary/SubScores.js +165 -0
- package/dist/ScoreSummary/helpers.d.ts +11 -0
- package/dist/ScoreSummary/helpers.js +20 -0
- package/dist/ScoreSummary/index.d.ts +21 -0
- package/dist/ScoreSummary/index.js +108 -0
- package/dist/ScoreSummary/types.d.ts +310 -0
- package/dist/ScoreSummary/types.js +1 -0
- package/dist/SkillPathCard/__tests__/__fixtures__/index.d.ts +2 -0
- package/dist/SkillPathCard/index.d.ts +17 -0
- package/dist/SkillPathCard/index.js +38 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.d.ts +13 -0
- package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
- package/dist/SocialMediaSharing/index.d.ts +49 -0
- package/dist/SocialMediaSharing/index.js +116 -0
- package/dist/SocialMediaSharingDropdown/__tests__/SocialMediaSharingDropdown-test.d.ts +1 -0
- package/dist/SocialMediaSharingDropdown/index.d.ts +15 -0
- package/dist/SocialMediaSharingDropdown/index.js +111 -0
- package/dist/Testimonial/index.d.ts +45 -0
- package/dist/Testimonial/index.js +163 -0
- package/dist/assets/darkQuotes.svg +1 -0
- package/dist/assets/dots.svg +1 -0
- package/dist/assets/lightQuotes.svg +1 -0
- package/dist/assets/navyQuotes.svg +5 -0
- package/dist/assets/orange_squiggle.svg +1 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +82 -0
- package/dist/lib/breakpointHooks/index.d.ts +43 -0
- package/dist/lib/breakpointHooks/index.js +60 -0
- package/dist/lib/catalogList/index.d.ts +5 -0
- package/dist/lib/catalogList/index.js +173 -0
- package/dist/lib/resourcesList/index.d.ts +5 -0
- package/dist/lib/resourcesList/index.js +232 -0
- package/dist/png.d.ts +4 -0
- package/dist/react-freezeframe.d.ts +1 -0
- package/dist/remoteAssets/components.d.ts +1 -0
- package/dist/remoteAssets/components.js +1 -0
- package/dist/stories/Atoms/Avatar.stories.d.ts +6 -0
- package/dist/stories/Atoms/Avatar.stories.js +16 -0
- package/dist/stories/Atoms/BetaSticker.stories.d.ts +7 -0
- package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademy.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyMini.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyPro.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoCodecademyTeams.stories.js +8 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +9 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.d.ts +8 -0
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +29 -0
- package/dist/stories/Atoms/RatingsBar.stories.d.ts +6 -0
- package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
- package/dist/stories/Atoms/Subgrid.stories.d.ts +6 -0
- package/dist/stories/Atoms/Subgrid.stories.js +87 -0
- package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
- package/dist/stories/Molecules/AppBar.stories.js +32 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.d.ts +8 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +7 -0
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.d.ts +5 -0
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
- package/dist/stories/Molecules/AvatarChooser.stories.d.ts +7 -0
- package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.d.ts +10 -0
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
- package/dist/stories/Molecules/Banner.stories.d.ts +16 -0
- package/dist/stories/Molecules/Banner.stories.js +115 -0
- package/dist/stories/Molecules/Carousel.stories.d.ts +7 -0
- package/dist/stories/Molecules/Carousel.stories.js +47 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +13 -0
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
- package/dist/stories/Molecules/CurriculumCard.stories.d.ts +16 -0
- package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.d.ts +9 -0
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
- package/dist/stories/Molecules/DropdownButton.stories.d.ts +11 -0
- package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
- package/dist/stories/Molecules/EditorialImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
- package/dist/stories/Molecules/EmptySection.stories.d.ts +13 -0
- package/dist/stories/Molecules/EmptySection.stories.js +168 -0
- package/dist/stories/Molecules/EnhancedBanner.stories.d.ts +10 -0
- package/dist/stories/Molecules/EnhancedBanner.stories.js +114 -0
- package/dist/stories/Molecules/ErrorContents.stories.d.ts +7 -0
- package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
- package/dist/stories/Molecules/GridCollapse.stories.d.ts +6 -0
- package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.d.ts +1 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.d.ts +6 -0
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
- package/dist/stories/Molecules/HubCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/HubCard.stories.js +28 -0
- package/dist/stories/Molecules/InfoCard.stories.d.ts +7 -0
- package/dist/stories/Molecules/InfoCard.stories.js +30 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.d.ts +10 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +75 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
- package/dist/stories/Molecules/ListSection.stories.d.ts +9 -0
- package/dist/stories/Molecules/ListSection.stories.js +97 -0
- package/dist/stories/Molecules/Loading.stories.d.ts +6 -0
- package/dist/stories/Molecules/Loading.stories.js +10 -0
- package/dist/stories/Molecules/NotificationList.stories.d.ts +7 -0
- package/dist/stories/Molecules/NotificationList.stories.js +100 -0
- package/dist/stories/Molecules/PageSection.stories.d.ts +8 -0
- package/dist/stories/Molecules/PageSection.stories.js +67 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.d.ts +10 -0
- package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
- package/dist/stories/Molecules/PausableImage.stories.d.ts +6 -0
- package/dist/stories/Molecules/PausableImage.stories.js +16 -0
- package/dist/stories/Molecules/ResourceCard.stories.d.ts +6 -0
- package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.d.ts +6 -0
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
- package/dist/stories/Molecules/Testimonial.stories.d.ts +10 -0
- package/dist/stories/Molecules/Testimonial.stories.js +63 -0
- package/dist/stories/Organisms/GlobalFooter.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.d.ts +8 -0
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.d.ts +10 -0
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.d.ts +6 -0
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
- package/dist/stories/Organisms/GlobalPage.stories.d.ts +9 -0
- package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
- package/dist/stories/Organisms/LayoutMenu.stories.d.ts +10 -0
- package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.d.ts +9 -0
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
- package/dist/stories/Organisms/PageAlerts.example.d.ts +2 -0
- package/dist/stories/Organisms/PageAlerts.example.js +42 -0
- package/dist/stories/Organisms/PageAlerts.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
- package/dist/stories/Organisms/PageFeatures.stories.d.ts +14 -0
- package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
- package/dist/stories/Organisms/PageHero.stories.d.ts +17 -0
- package/dist/stories/Organisms/PageHero.stories.js +145 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.d.ts +7 -0
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
- package/dist/stories/Organisms/PagePrefooter.stories.d.ts +10 -0
- package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.d.ts +18 -0
- package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.d.ts +10 -0
- package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
- package/dist/stories/Organisms/PlanCard.stories.d.ts +9 -0
- package/dist/stories/Organisms/PlanCard.stories.js +98 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.d.ts +7 -0
- package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
- package/dist/stories/Organisms/ScoreSummary.stories.d.ts +12 -0
- package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
- package/dist/svg.d.ts +8 -0
- package/dist/theme.d.ts +5 -0
- package/package.json +1 -1
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
- package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { FlexBox } from '@codecademy/gamut';
|
|
2
|
+
import { Background } from '@codecademy/gamut-styles';
|
|
3
|
+
import { LearningOutcomeTile } from '../../LearningOutcomeTile';
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: LearningOutcomeTile,
|
|
7
|
+
args: {
|
|
8
|
+
learningOutcomeDetails: {
|
|
9
|
+
id: '1',
|
|
10
|
+
percentComplete: 0,
|
|
11
|
+
level: 2,
|
|
12
|
+
outcome: 'Apply programming fundamentals'
|
|
13
|
+
},
|
|
14
|
+
size: 'normal'
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export const Default = {
|
|
19
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
20
|
+
gap: 16,
|
|
21
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
22
|
+
...args,
|
|
23
|
+
popover: false,
|
|
24
|
+
hover: true
|
|
25
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
26
|
+
...args,
|
|
27
|
+
learningOutcomeDetails: {
|
|
28
|
+
id: '2',
|
|
29
|
+
level: 2,
|
|
30
|
+
outcome: 'Apply programming fundamentals',
|
|
31
|
+
percentComplete: 50
|
|
32
|
+
},
|
|
33
|
+
popover: false,
|
|
34
|
+
hover: true
|
|
35
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
36
|
+
...args,
|
|
37
|
+
learningOutcomeDetails: {
|
|
38
|
+
id: '3',
|
|
39
|
+
level: 3,
|
|
40
|
+
outcome: 'Apply programming fundamentals',
|
|
41
|
+
percentComplete: 100
|
|
42
|
+
},
|
|
43
|
+
popover: false,
|
|
44
|
+
hover: true
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
name: 'Learning Outcome Tile - Default'
|
|
48
|
+
};
|
|
49
|
+
export const WithLowAssessments = {
|
|
50
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
51
|
+
gap: 16,
|
|
52
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
53
|
+
...args,
|
|
54
|
+
learningOutcomeDetails: {
|
|
55
|
+
id: '1',
|
|
56
|
+
level: 2,
|
|
57
|
+
outcome: 'Apply programming fundamentals',
|
|
58
|
+
percentComplete: 0,
|
|
59
|
+
latestScore: 50
|
|
60
|
+
},
|
|
61
|
+
popover: false,
|
|
62
|
+
hover: true
|
|
63
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
64
|
+
...args,
|
|
65
|
+
learningOutcomeDetails: {
|
|
66
|
+
id: '2',
|
|
67
|
+
level: 2,
|
|
68
|
+
outcome: 'Apply programming fundamentals',
|
|
69
|
+
percentComplete: 50,
|
|
70
|
+
latestScore: 50
|
|
71
|
+
},
|
|
72
|
+
popover: false,
|
|
73
|
+
hover: true
|
|
74
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
75
|
+
...args,
|
|
76
|
+
learningOutcomeDetails: {
|
|
77
|
+
id: '3',
|
|
78
|
+
level: 2,
|
|
79
|
+
outcome: 'Apply programming fundamentals',
|
|
80
|
+
percentComplete: 100,
|
|
81
|
+
latestScore: 50
|
|
82
|
+
},
|
|
83
|
+
popover: false,
|
|
84
|
+
hover: true
|
|
85
|
+
})]
|
|
86
|
+
}),
|
|
87
|
+
name: 'Learning Outcome Tile - with Low Assessment Indicator'
|
|
88
|
+
};
|
|
89
|
+
export const WithPopover = {
|
|
90
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
91
|
+
gap: 16,
|
|
92
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
93
|
+
...args,
|
|
94
|
+
learningOutcomeDetails: {
|
|
95
|
+
id: '1',
|
|
96
|
+
level: 1,
|
|
97
|
+
outcome: 'Understand the basics of programming',
|
|
98
|
+
percentComplete: 0
|
|
99
|
+
},
|
|
100
|
+
hover: true,
|
|
101
|
+
popover: true
|
|
102
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
103
|
+
...args,
|
|
104
|
+
learningOutcomeDetails: {
|
|
105
|
+
id: '2',
|
|
106
|
+
level: 2,
|
|
107
|
+
outcome: 'Apply programming fundamentals',
|
|
108
|
+
percentComplete: 50,
|
|
109
|
+
highestScore: 65,
|
|
110
|
+
latestScore: 50
|
|
111
|
+
},
|
|
112
|
+
hover: true,
|
|
113
|
+
popover: true
|
|
114
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
115
|
+
...args,
|
|
116
|
+
learningOutcomeDetails: {
|
|
117
|
+
id: '3',
|
|
118
|
+
level: 3,
|
|
119
|
+
outcome: 'Master advanced programming concepts',
|
|
120
|
+
percentComplete: 100,
|
|
121
|
+
highestScore: 70,
|
|
122
|
+
latestScore: 70
|
|
123
|
+
},
|
|
124
|
+
hover: true,
|
|
125
|
+
popover: true
|
|
126
|
+
})]
|
|
127
|
+
}),
|
|
128
|
+
name: 'Learning Outcome Tile - with Popover'
|
|
129
|
+
};
|
|
130
|
+
export const Small = {
|
|
131
|
+
render: args => /*#__PURE__*/_jsxs(FlexBox, {
|
|
132
|
+
gap: 16,
|
|
133
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
134
|
+
...args,
|
|
135
|
+
size: "small",
|
|
136
|
+
popover: false,
|
|
137
|
+
hover: true
|
|
138
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
139
|
+
...args,
|
|
140
|
+
size: "small",
|
|
141
|
+
learningOutcomeDetails: {
|
|
142
|
+
id: '2',
|
|
143
|
+
level: 2,
|
|
144
|
+
outcome: 'Apply programming fundamentals',
|
|
145
|
+
percentComplete: 50
|
|
146
|
+
},
|
|
147
|
+
popover: false,
|
|
148
|
+
hover: true
|
|
149
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
150
|
+
...args,
|
|
151
|
+
size: "small",
|
|
152
|
+
learningOutcomeDetails: {
|
|
153
|
+
id: '3',
|
|
154
|
+
level: 2,
|
|
155
|
+
outcome: 'Apply programming fundamentals',
|
|
156
|
+
percentComplete: 100
|
|
157
|
+
},
|
|
158
|
+
popover: false,
|
|
159
|
+
hover: true
|
|
160
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
161
|
+
...args,
|
|
162
|
+
size: "small",
|
|
163
|
+
learningOutcomeDetails: {
|
|
164
|
+
id: '2',
|
|
165
|
+
percentComplete: 0,
|
|
166
|
+
outcome: 'Apply programming fundamentals',
|
|
167
|
+
level: 2
|
|
168
|
+
},
|
|
169
|
+
hover: true,
|
|
170
|
+
popover: true
|
|
171
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
172
|
+
...args,
|
|
173
|
+
size: "small",
|
|
174
|
+
learningOutcomeDetails: {
|
|
175
|
+
id: '2',
|
|
176
|
+
percentComplete: 50,
|
|
177
|
+
outcome: 'Apply programming fundamentals',
|
|
178
|
+
level: 2
|
|
179
|
+
},
|
|
180
|
+
hover: true,
|
|
181
|
+
popover: true
|
|
182
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
183
|
+
...args,
|
|
184
|
+
size: "small",
|
|
185
|
+
learningOutcomeDetails: {
|
|
186
|
+
id: '3',
|
|
187
|
+
percentComplete: 100,
|
|
188
|
+
outcome: 'Apply programming fundamentals',
|
|
189
|
+
level: 2
|
|
190
|
+
},
|
|
191
|
+
hover: true,
|
|
192
|
+
popover: true
|
|
193
|
+
})]
|
|
194
|
+
}),
|
|
195
|
+
name: 'Learning Outcome Tile - Small'
|
|
196
|
+
};
|
|
197
|
+
export const DarkMode = {
|
|
198
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
199
|
+
bg: "navy",
|
|
200
|
+
p: 24,
|
|
201
|
+
children: /*#__PURE__*/_jsxs(FlexBox, {
|
|
202
|
+
gap: 16,
|
|
203
|
+
children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
204
|
+
...args,
|
|
205
|
+
learningOutcomeDetails: {
|
|
206
|
+
id: '1',
|
|
207
|
+
level: 2,
|
|
208
|
+
outcome: 'Apply programming fundamentals',
|
|
209
|
+
percentComplete: 0,
|
|
210
|
+
latestScore: 50
|
|
211
|
+
},
|
|
212
|
+
popover: false,
|
|
213
|
+
hover: true
|
|
214
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
215
|
+
...args,
|
|
216
|
+
learningOutcomeDetails: {
|
|
217
|
+
id: '2',
|
|
218
|
+
level: 2,
|
|
219
|
+
outcome: 'Apply programming fundamentals',
|
|
220
|
+
percentComplete: 50,
|
|
221
|
+
latestScore: 50
|
|
222
|
+
},
|
|
223
|
+
popover: false,
|
|
224
|
+
hover: true
|
|
225
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
226
|
+
...args,
|
|
227
|
+
learningOutcomeDetails: {
|
|
228
|
+
id: '3',
|
|
229
|
+
level: 2,
|
|
230
|
+
outcome: 'Apply programming fundamentals',
|
|
231
|
+
percentComplete: 100,
|
|
232
|
+
latestScore: 50
|
|
233
|
+
},
|
|
234
|
+
popover: false,
|
|
235
|
+
hover: true
|
|
236
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
237
|
+
...args,
|
|
238
|
+
learningOutcomeDetails: {
|
|
239
|
+
id: '4',
|
|
240
|
+
level: 2,
|
|
241
|
+
outcome: 'Apply programming fundamentals',
|
|
242
|
+
percentComplete: 0,
|
|
243
|
+
latestScore: 50
|
|
244
|
+
},
|
|
245
|
+
size: "small",
|
|
246
|
+
popover: false,
|
|
247
|
+
hover: true
|
|
248
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
249
|
+
...args,
|
|
250
|
+
learningOutcomeDetails: {
|
|
251
|
+
id: '5',
|
|
252
|
+
level: 2,
|
|
253
|
+
outcome: 'Apply programming fundamentals',
|
|
254
|
+
percentComplete: 50,
|
|
255
|
+
latestScore: 50
|
|
256
|
+
},
|
|
257
|
+
size: "small",
|
|
258
|
+
popover: false,
|
|
259
|
+
hover: true
|
|
260
|
+
}), /*#__PURE__*/_jsx(LearningOutcomeTile, {
|
|
261
|
+
...args,
|
|
262
|
+
learningOutcomeDetails: {
|
|
263
|
+
id: '6',
|
|
264
|
+
level: 2,
|
|
265
|
+
outcome: 'Apply programming fundamentals',
|
|
266
|
+
percentComplete: 100,
|
|
267
|
+
latestScore: 50
|
|
268
|
+
},
|
|
269
|
+
size: "small",
|
|
270
|
+
popover: false,
|
|
271
|
+
hover: true
|
|
272
|
+
})]
|
|
273
|
+
})
|
|
274
|
+
}),
|
|
275
|
+
name: 'Learning Outcome Tile - Dark Mode'
|
|
276
|
+
};
|
|
@@ -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,97 @@
|
|
|
1
|
+
import { Card, FillButton, IconButton, Text } from '@codecademy/gamut';
|
|
2
|
+
import { SearchIcon } from '@codecademy/gamut-icons';
|
|
3
|
+
import { ListSection } from '../../index';
|
|
4
|
+
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
|
+
const listItems = [{
|
|
6
|
+
title: '1'
|
|
7
|
+
}, {
|
|
8
|
+
title: '2'
|
|
9
|
+
}, {
|
|
10
|
+
title: '3'
|
|
11
|
+
}, {
|
|
12
|
+
title: '4'
|
|
13
|
+
}];
|
|
14
|
+
const meta = {
|
|
15
|
+
component: ListSection,
|
|
16
|
+
args: {
|
|
17
|
+
title: 'List Section Title'
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
export const Default = {
|
|
22
|
+
render: args => /*#__PURE__*/_jsxs(_Fragment, {
|
|
23
|
+
children: [/*#__PURE__*/_jsx(ListSection, {
|
|
24
|
+
...args,
|
|
25
|
+
title: "List Section 1",
|
|
26
|
+
children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
|
|
27
|
+
children: ["List Item", item.title]
|
|
28
|
+
}))
|
|
29
|
+
}), /*#__PURE__*/_jsx(ListSection, {
|
|
30
|
+
...args,
|
|
31
|
+
title: "List Section 2",
|
|
32
|
+
initialDisplayAmount: 2,
|
|
33
|
+
children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
|
|
34
|
+
children: ["List Item", item.title]
|
|
35
|
+
}))
|
|
36
|
+
}), /*#__PURE__*/_jsxs(ListSection, {
|
|
37
|
+
...args,
|
|
38
|
+
title: "List Section 3",
|
|
39
|
+
initialDisplayAmount: 2,
|
|
40
|
+
children: [/*#__PURE__*/_jsx(Card, {
|
|
41
|
+
children: "List Item 1"
|
|
42
|
+
}), /*#__PURE__*/_jsx(Card, {
|
|
43
|
+
children: "List Item 2"
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
}),
|
|
47
|
+
name: 'ListSection'
|
|
48
|
+
};
|
|
49
|
+
export const ListSectionWithEmptyState = {
|
|
50
|
+
render: args => /*#__PURE__*/_jsx(_Fragment, {
|
|
51
|
+
children: /*#__PURE__*/_jsx(ListSection, {
|
|
52
|
+
...args,
|
|
53
|
+
title: "List Section 1",
|
|
54
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
55
|
+
children: "I am an Empty State."
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
}),
|
|
59
|
+
name: 'ListSection with Empty State'
|
|
60
|
+
};
|
|
61
|
+
export const ListSectionWithHeaderAndSecondaryHeaderButtons = {
|
|
62
|
+
render: args => /*#__PURE__*/_jsx(ListSection, {
|
|
63
|
+
...args,
|
|
64
|
+
title: "List Section 1",
|
|
65
|
+
headerButton: {
|
|
66
|
+
text: 'Edit',
|
|
67
|
+
href: '',
|
|
68
|
+
onClick: () => {}
|
|
69
|
+
},
|
|
70
|
+
headerSecondaryButton: {
|
|
71
|
+
text: 'Share',
|
|
72
|
+
href: '',
|
|
73
|
+
onClick: () => {}
|
|
74
|
+
},
|
|
75
|
+
children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
|
|
76
|
+
children: ["List Item", item.title]
|
|
77
|
+
}))
|
|
78
|
+
}),
|
|
79
|
+
name: 'ListSection with Header and SecondaryHeader Buttons'
|
|
80
|
+
};
|
|
81
|
+
export const ListSectionWithCustomHeaderAndSecondaryHeaderButtons = {
|
|
82
|
+
render: args => /*#__PURE__*/_jsx(ListSection, {
|
|
83
|
+
...args,
|
|
84
|
+
title: "List Section 1",
|
|
85
|
+
headerButton: /*#__PURE__*/_jsx(IconButton, {
|
|
86
|
+
icon: SearchIcon,
|
|
87
|
+
tip: "Search"
|
|
88
|
+
}),
|
|
89
|
+
headerSecondaryButton: /*#__PURE__*/_jsx(FillButton, {
|
|
90
|
+
children: "Share"
|
|
91
|
+
}),
|
|
92
|
+
children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
|
|
93
|
+
children: ["List Item", item.title]
|
|
94
|
+
}))
|
|
95
|
+
}),
|
|
96
|
+
name: 'ListSection with custom Header and SecondaryHeader Buttons'
|
|
97
|
+
};
|
|
@@ -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,100 @@
|
|
|
1
|
+
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import { NotificationList } from '../../index';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const notifications = [{
|
|
5
|
+
campaign: 'python-livestream',
|
|
6
|
+
date: '5 minutes',
|
|
7
|
+
type: 'curriculum_blast',
|
|
8
|
+
id: 'abc',
|
|
9
|
+
link: 'https://www.codecademy.com/courses/livestreams/projects/livestream-intro-to-statistics-in-python',
|
|
10
|
+
text: 'Check out our Python livestream!'
|
|
11
|
+
}, {
|
|
12
|
+
campaign: 'pro-trial',
|
|
13
|
+
type: 'marketing_blast',
|
|
14
|
+
date: '3 hours',
|
|
15
|
+
id: '1237',
|
|
16
|
+
text: 'Meet your fellow learners and stay motivated. Join the conversation in your cohort!'
|
|
17
|
+
}, {
|
|
18
|
+
campaign: 'cohort v0.2',
|
|
19
|
+
date: '1 hour',
|
|
20
|
+
id: '333',
|
|
21
|
+
text: 'Welcome to you Front-End Cohort!',
|
|
22
|
+
type: 'cohort_blast'
|
|
23
|
+
}, {
|
|
24
|
+
campaign: 'other-notification',
|
|
25
|
+
date: '2 days',
|
|
26
|
+
id: '1234',
|
|
27
|
+
link: 'http://google.com',
|
|
28
|
+
imageUrl: 'https://bit.ly/2Ckp4eW',
|
|
29
|
+
text: 'notiifcation with img url provided'
|
|
30
|
+
}, {
|
|
31
|
+
campaign: 'discourse-comment',
|
|
32
|
+
date: '1 hour',
|
|
33
|
+
id: '333',
|
|
34
|
+
link: 'https://discuss.codecademy.com',
|
|
35
|
+
text: 'discourse comment notification',
|
|
36
|
+
type: 'forum_comment'
|
|
37
|
+
}, {
|
|
38
|
+
campaign: 'discourse-message',
|
|
39
|
+
date: '1 minute',
|
|
40
|
+
id: '444',
|
|
41
|
+
link: 'https://discuss.codecademy.com',
|
|
42
|
+
text: 'discourse message notification',
|
|
43
|
+
type: 'forum_message'
|
|
44
|
+
}, {
|
|
45
|
+
campaign: 'discourse-mention',
|
|
46
|
+
date: '10 minutes',
|
|
47
|
+
id: '444',
|
|
48
|
+
link: 'https://discuss.codecademy.com',
|
|
49
|
+
text: 'discourse mention notification',
|
|
50
|
+
type: 'forum_mention'
|
|
51
|
+
}, {
|
|
52
|
+
campaign: 'discourse-like',
|
|
53
|
+
date: '3 minutes',
|
|
54
|
+
id: '555',
|
|
55
|
+
link: 'https://discuss.codecademy.com',
|
|
56
|
+
text: 'discourse like notification',
|
|
57
|
+
type: 'forum_like'
|
|
58
|
+
}, {
|
|
59
|
+
campaign: 'pro-trial',
|
|
60
|
+
date: '3 hours',
|
|
61
|
+
id: '123',
|
|
62
|
+
text: 'Notification with no image or type provided; default Bell icon!'
|
|
63
|
+
}, {
|
|
64
|
+
campaign: 'same-tab',
|
|
65
|
+
date: '5 hours',
|
|
66
|
+
id: '1',
|
|
67
|
+
link: window.location.origin,
|
|
68
|
+
text: 'Notification with an internal link (opens in the same tab)'
|
|
69
|
+
}, {
|
|
70
|
+
campaign: 'new-tab',
|
|
71
|
+
date: '5 hours',
|
|
72
|
+
id: '2',
|
|
73
|
+
link: 'https://help.codecademy.com',
|
|
74
|
+
text: 'Notification with an external link (opens in a new tab)'
|
|
75
|
+
}];
|
|
76
|
+
const meta = {
|
|
77
|
+
component: NotificationList,
|
|
78
|
+
args: {
|
|
79
|
+
notifications,
|
|
80
|
+
onDismiss: () => {
|
|
81
|
+
action('notification dismissed');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export default meta;
|
|
86
|
+
export const Default = {
|
|
87
|
+
render: args => /*#__PURE__*/_jsx(NotificationList, {
|
|
88
|
+
...args
|
|
89
|
+
}),
|
|
90
|
+
name: 'NotificationList'
|
|
91
|
+
};
|
|
92
|
+
export const Empty = {
|
|
93
|
+
render: args => /*#__PURE__*/_jsx(NotificationList, {
|
|
94
|
+
...args
|
|
95
|
+
}),
|
|
96
|
+
name: 'Empty',
|
|
97
|
+
args: {
|
|
98
|
+
notifications: []
|
|
99
|
+
}
|
|
100
|
+
};
|
|
@@ -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,67 @@
|
|
|
1
|
+
import { FillButton, IconButton, StrokeButton } from '@codecademy/gamut';
|
|
2
|
+
import { SearchIcon } from '@codecademy/gamut-icons';
|
|
3
|
+
import { PageSection } from '../../index';
|
|
4
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: PageSection,
|
|
7
|
+
args: {
|
|
8
|
+
title: 'Page Section Title Text'
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
render: args => /*#__PURE__*/_jsxs(_Fragment, {
|
|
14
|
+
children: [/*#__PURE__*/_jsx(PageSection, {
|
|
15
|
+
...args,
|
|
16
|
+
title: "Section 1 Title",
|
|
17
|
+
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pulvinar urna at orci bibendum pharetra. Sed nec nibh id nulla molestie vestibulum. Proin efficitur venenatis vulputate. Morbi dolor odio, efficitur in volutpat nec, pharetra at dolor. Maecenas imperdiet, augue eget congue feugiat, diam sapien consequat tellus, id rutrum odio velit eu libero. Suspendisse auctor mauris metus, sed convallis ipsum facilisis id."
|
|
18
|
+
}), /*#__PURE__*/_jsx(PageSection, {
|
|
19
|
+
...args,
|
|
20
|
+
title: "Section 2 Title",
|
|
21
|
+
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pulvinar urna at orci bibendum pharetra. Sed nec nibh id nulla molestie vestibulum. Proin efficitur venenatis vulputate. Morbi dolor odio, efficitur in volutpat nec, pharetra at dolor. Maecenas imperdiet, augue eget congue feugiat, diam sapien consequat tellus, id rutrum odio velit eu libero. Suspendisse auctor mauris metus, sed convallis ipsum facilisis id."
|
|
22
|
+
})]
|
|
23
|
+
}),
|
|
24
|
+
name: 'PageSection'
|
|
25
|
+
};
|
|
26
|
+
export const PageSectionWithHeaderAndFooterButtons = {
|
|
27
|
+
render: args => /*#__PURE__*/_jsx(PageSection, {
|
|
28
|
+
...args,
|
|
29
|
+
headerButton: {
|
|
30
|
+
text: 'Edit',
|
|
31
|
+
href: '',
|
|
32
|
+
onClick: () => {}
|
|
33
|
+
},
|
|
34
|
+
headerSecondaryButton: {
|
|
35
|
+
text: 'Share',
|
|
36
|
+
href: '',
|
|
37
|
+
onClick: () => {}
|
|
38
|
+
},
|
|
39
|
+
footerButton: {
|
|
40
|
+
text: 'Show more',
|
|
41
|
+
href: '',
|
|
42
|
+
onClick: () => {}
|
|
43
|
+
},
|
|
44
|
+
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pulvinar urna at orci bibendum pharetra. Sed nec nibh id nulla molestie vestibulum. Proin efficitur venenatis vulputate. Morbi dolor odio, efficitur in volutpat nec, pharetra at dolor. Maecenas imperdiet, augue eget congue feugiat, diam sapien consequat tellus, id rutrum odio velit eu libero. Suspendisse auctor mauris metus, sed convallis ipsum facilisis id..."
|
|
45
|
+
}),
|
|
46
|
+
name: 'PageSection with Header and Footer Buttons'
|
|
47
|
+
};
|
|
48
|
+
export const PageSectionWithCustomHeaderAndFooterButtons = {
|
|
49
|
+
render: args => /*#__PURE__*/_jsx(PageSection, {
|
|
50
|
+
...args,
|
|
51
|
+
headerButton: /*#__PURE__*/_jsx(IconButton, {
|
|
52
|
+
icon: SearchIcon,
|
|
53
|
+
tip: "Search Codecademy content",
|
|
54
|
+
tipProps: {
|
|
55
|
+
alignment: 'bottom-center'
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
headerSecondaryButton: /*#__PURE__*/_jsx(FillButton, {
|
|
59
|
+
children: "Share"
|
|
60
|
+
}),
|
|
61
|
+
footerButton: /*#__PURE__*/_jsx(StrokeButton, {
|
|
62
|
+
children: "NEXT"
|
|
63
|
+
}),
|
|
64
|
+
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum pulvinar urna at orci bibendum pharetra. Sed nec nibh id nulla molestie vestibulum. Proin efficitur venenatis vulputate. Morbi dolor odio, efficitur in volutpat nec, pharetra at dolor. Maecenas imperdiet, augue eget congue feugiat, diam sapien consequat tellus, id rutrum odio velit eu libero. Suspendisse auctor mauris metus, sed convallis ipsum facilisis id..."
|
|
65
|
+
}),
|
|
66
|
+
name: 'PageSection with custom Header and Footer Buttons'
|
|
67
|
+
};
|
|
@@ -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,62 @@
|
|
|
1
|
+
import { Alert, FillButton, TextButton } from '@codecademy/gamut';
|
|
2
|
+
import { pastDueErrorMessages, PastDueModalContents } from '../../index';
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
+
const meta = {
|
|
5
|
+
component: PastDueModalContents,
|
|
6
|
+
argTypes: {
|
|
7
|
+
pastDueErrorCode: {
|
|
8
|
+
options: ['default', 'declined', 'insufficient_funds', 'temporary_hold', 'invalid_transaction', 'invalid_account_number', 'expired_card'],
|
|
9
|
+
control: {
|
|
10
|
+
type: 'select'
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
closeButton: {
|
|
14
|
+
control: {
|
|
15
|
+
type: 'boolean'
|
|
16
|
+
},
|
|
17
|
+
mapping: {
|
|
18
|
+
false: '',
|
|
19
|
+
true: /*#__PURE__*/_jsx(TextButton, {
|
|
20
|
+
mr: 16,
|
|
21
|
+
children: "Close"
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
updatePaymentButton: {
|
|
26
|
+
control: {
|
|
27
|
+
type: 'boolean'
|
|
28
|
+
},
|
|
29
|
+
mapping: {
|
|
30
|
+
false: '',
|
|
31
|
+
true: /*#__PURE__*/_jsx(FillButton, {
|
|
32
|
+
variant: "primary",
|
|
33
|
+
children: "Update payment"
|
|
34
|
+
})
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
isSilverPlan: {
|
|
38
|
+
control: 'boolean'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
export default meta;
|
|
43
|
+
export const Default = {
|
|
44
|
+
render: args => /*#__PURE__*/_jsx(PastDueModalContents, {
|
|
45
|
+
...args
|
|
46
|
+
}),
|
|
47
|
+
name: 'PastDueModalContents'
|
|
48
|
+
};
|
|
49
|
+
export const ErrorAlert = {
|
|
50
|
+
render: () => {
|
|
51
|
+
const {
|
|
52
|
+
text1,
|
|
53
|
+
text2
|
|
54
|
+
} = pastDueErrorMessages(true, true).default;
|
|
55
|
+
return /*#__PURE__*/_jsxs(Alert, {
|
|
56
|
+
type: "error",
|
|
57
|
+
placement: "inline",
|
|
58
|
+
children: [text1, text2]
|
|
59
|
+
});
|
|
60
|
+
},
|
|
61
|
+
name: 'Error message in alert'
|
|
62
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PausableImage } from '../../index';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: PausableImage
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = {
|
|
8
|
+
render: args => /*#__PURE__*/_jsx(PausableImage, {
|
|
9
|
+
...args
|
|
10
|
+
}),
|
|
11
|
+
name: 'PausableImage',
|
|
12
|
+
args: {
|
|
13
|
+
src: '//images.ctfassets.net/go6kr6r0ykrq/2vjTCK9DmJ6BOd5NtFxNIG/e5ced4209aef5241cd581841fa6e2511/learn-css_box-model_06.16.gif',
|
|
14
|
+
alt: 'demonstration of learning environment'
|
|
15
|
+
}
|
|
16
|
+
};
|