@codecademy/brand 2.0.0-alpha.3a7b7c993e.0 → 2.0.0-alpha.4e24057d69.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/package.json +2 -2
- package/dist/AbbreviatedCommunityEventCard/index.js +0 -98
- package/dist/AppBar/AppBarSection.js +0 -41
- package/dist/AppBar/index.js +0 -20
- package/dist/AppBarDeprecated/AppBarSectionDeprecated.js +0 -25
- package/dist/AppBarDeprecated/index.js +0 -26
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +0 -98
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +0 -63
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +0 -440
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +0 -157
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderDropdownLink.js +0 -25
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/AppHeaderMenuItem.js +0 -26
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/elements/types.js +0 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownLinks/index.js +0 -2
- package/dist/AppHeader/AppHeaderElements/AppHeaderDropdownProvider/index.js +0 -26
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.js +0 -70
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -53
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.js +0 -32
- package/dist/AppHeader/AppHeaderElements/AppHeaderLogo/index.js +0 -57
- package/dist/AppHeader/AppHeaderElements/AppHeaderMenuProvider/index.js +0 -88
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.js +0 -50
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderMenuNavButton.js +0 -38
- package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +0 -36
- package/dist/AppHeader/AppHeaderElements/AppHeaderProvider/index.js +0 -19
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +0 -113
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesSection/index.js +0 -194
- package/dist/AppHeader/Search/DefaultResults.js +0 -112
- package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +0 -80
- package/dist/AppHeader/Search/SearchButton.js +0 -58
- package/dist/AppHeader/Search/SearchPane.js +0 -518
- package/dist/AppHeader/Search/SearchWorker/PromiseLookup.js +0 -35
- package/dist/AppHeader/Search/SearchWorker/index.js +0 -24
- package/dist/AppHeader/Search/SearchWorker/src.js +0 -307
- package/dist/AppHeader/Search/SearchWorker/types.js +0 -5
- package/dist/AppHeader/Search/SearchWorker/worker.js +0 -31
- package/dist/AppHeader/Search/consts.js +0 -40
- package/dist/AppHeader/Search/hooks/useUrlChangeDetection.js +0 -14
- package/dist/AppHeader/Search/safelyRedirect.js +0 -49
- package/dist/AppHeader/Search/types.js +0 -1
- package/dist/AppHeader/Search/useHeaderSearch.js +0 -39
- package/dist/AppHeader/index.js +0 -77
- package/dist/AppHeader/shared/elements.js +0 -151
- package/dist/AppHeader/shared/index.js +0 -4
- package/dist/AppHeader/shared/keyboardNav.js +0 -67
- package/dist/AppHeader/shared/mockAppHeaderItems.js +0 -10
- package/dist/AppHeader/shared/testTypes.js +0 -0
- package/dist/AppHeader/shared/types.js +0 -1
- package/dist/AppHeader/shared/utils.js +0 -103
- package/dist/AppHeader/utils/types.js +0 -1
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/MobileSearchBar.js +0 -77
- package/dist/AppHeaderMobile/AppHeaderMainMenuMobile/index.js +0 -111
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/elements.js +0 -30
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +0 -104
- package/dist/AppHeaderMobile/AppHeaderSubMenuTarget/index.js +0 -60
- package/dist/AppHeaderMobile/index.js +0 -226
- package/dist/Avatar/Avatar.stories.js +0 -15
- package/dist/Avatar/index.js +0 -45
- package/dist/AvatarChooser/index.js +0 -105
- package/dist/BackToTopAnchor/index.js +0 -38
- package/dist/Banner/index.js +0 -102
- package/dist/BetaSticker/index.js +0 -57
- package/dist/CareerPathCard/index.js +0 -41
- package/dist/Carousel/elements.js +0 -14
- package/dist/Carousel/index.js +0 -242
- package/dist/CertificationPathCard/index.js +0 -42
- package/dist/CommunityEventCard/EventTypeIcon.js +0 -59
- package/dist/CommunityEventCard/index.js +0 -305
- package/dist/CommunityEventToast/index.js +0 -32
- package/dist/ContentGroupBaseCard/helpers.js +0 -12
- package/dist/ContentGroupBaseCard/index.js +0 -178
- package/dist/ContentGroupBaseCard/shared.js +0 -76
- package/dist/ContentGroupBaseCard/types.js +0 -12
- package/dist/CourseCard/index.js +0 -47
- package/dist/CurriculumCard/BottomTag/index.js +0 -26
- package/dist/CurriculumCard/Difficulty/helpers.js +0 -13
- package/dist/CurriculumCard/Difficulty/index.js +0 -47
- package/dist/CurriculumCard/Difficulty/types.js +0 -20
- package/dist/CurriculumCard/Footer/index.js +0 -54
- package/dist/CurriculumCard/Image/index.js +0 -56
- package/dist/CurriculumCard/Subtitle/helpers.js +0 -8
- package/dist/CurriculumCard/Subtitle/index.js +0 -34
- package/dist/CurriculumCard/index.js +0 -129
- package/dist/DropdownButton/DropdownList.js +0 -73
- package/dist/DropdownButton/index.js +0 -169
- package/dist/DropdownButton/useDynamicPopoverPosition.js +0 -55
- package/dist/DropdownButton/useDynamicPopoverPosition.test.js +0 -85
- package/dist/EditorialImage/index.js +0 -22
- package/dist/EmptySection/index.js +0 -183
- package/dist/ErrorContents/index.js +0 -48
- package/dist/FeatureList/index.js +0 -41
- package/dist/GlobalFooter/FooterHeading.js +0 -30
- package/dist/GlobalFooter/FooterLegal/LegalLinks.js +0 -43
- package/dist/GlobalFooter/FooterLegal/MadeIn.js +0 -64
- package/dist/GlobalFooter/FooterLegal/index.js +0 -22
- package/dist/GlobalFooter/FooterLinks.js +0 -53
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +0 -298
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +0 -299
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +0 -268
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralFields.js +0 -29
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralForm.js +0 -74
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferralLinkSocialMediaSharing.js +0 -86
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/types.js +0 -1
- package/dist/GlobalFooter/FooterNavLinks/SocialMediaLinks.js +0 -50
- package/dist/GlobalFooter/FooterNavLinks/index.js +0 -45
- package/dist/GlobalFooter/FooterSubHeading.js +0 -22
- package/dist/GlobalFooter/index.js +0 -39
- package/dist/GlobalFooter/types.js +0 -1
- package/dist/GlobalHeader/GlobalHeaderItems.js +0 -405
- package/dist/GlobalHeader/GlobalHeaderVariants.js +0 -211
- package/dist/GlobalHeader/index.js +0 -106
- package/dist/GlobalHeader/types.js +0 -1
- package/dist/GlobalHeader/urlHelpers.js +0 -21
- package/dist/GlobalPage/index.js +0 -53
- package/dist/Grid/GridCollapse.js +0 -199
- package/dist/Grid/GridCollapse.test.js +0 -96
- package/dist/Grid/Subgrid.js +0 -37
- package/dist/Grid/getCSSFromColumnCount.js +0 -7
- package/dist/Grid/index.js +0 -3
- package/dist/HeaderHeightArea/index.js +0 -40
- package/dist/HeaderHeightArea/useIsInHeaderRegion.js +0 -15
- package/dist/HorizontalScrollMenu/index.js +0 -75
- package/dist/HubCard/index.js +0 -38
- package/dist/InfoCard/index.js +0 -157
- package/dist/Konamimojisplosion/Konamimojisplosion.js +0 -7
- package/dist/Konamimojisplosion/index.js +0 -2
- package/dist/Konamimojisplosion/useKonamimojisplosion.js +0 -34
- package/dist/LandingPage/CTA.js +0 -11
- package/dist/LandingPage/Description.js +0 -14
- package/dist/LandingPage/Feature.js +0 -96
- package/dist/LandingPage/PageFAQs.js +0 -42
- package/dist/LandingPage/PageFeatures.js +0 -112
- package/dist/LandingPage/PageFeaturesEnhanced.js +0 -159
- package/dist/LandingPage/PageFeaturesWithReferences.js +0 -136
- package/dist/LandingPage/PageHero.js +0 -22
- package/dist/LandingPage/PagePrefooter.js +0 -74
- package/dist/LandingPage/PageSingleFeature.js +0 -128
- package/dist/LandingPage/PageTestimonials.js +0 -113
- package/dist/LandingPage/PageVideoGallery.js +0 -49
- package/dist/LandingPage/Title.js +0 -28
- package/dist/LandingPage/TitleWithEyebrow.js +0 -40
- package/dist/LandingPage/index.js +0 -14
- package/dist/LandingPage/types.js +0 -1
- package/dist/LayoutMenu/AccordionMenu.js +0 -68
- package/dist/LayoutMenu/LayoutMenu.js +0 -96
- package/dist/LayoutMenu/LayoutMenuSection.js +0 -34
- package/dist/LayoutMenu/SectionItemLink.js +0 -16
- package/dist/LayoutMenu/SelectedSectionItem.js +0 -17
- package/dist/LayoutMenu/index.js +0 -3
- package/dist/LayoutMenuVariant/AccordionMenu.js +0 -85
- package/dist/LayoutMenuVariant/LayoutMenu.js +0 -92
- package/dist/LayoutMenuVariant/LayoutMenuSection.js +0 -42
- package/dist/LayoutMenuVariant/SectionItemLink.js +0 -17
- package/dist/LayoutMenuVariant/index.js +0 -2
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
- package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
- package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +0 -57
- package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +0 -35
- package/dist/LearningOutcomeBadges/index.js +0 -2
- package/dist/LearningOutcomeCard/index.js +0 -203
- package/dist/LearningOutcomeFlyout/LearningOutcomeCardList.js +0 -23
- package/dist/LearningOutcomeFlyout/index.js +0 -181
- package/dist/LearningOutcomePopover/index.js +0 -125
- package/dist/LearningOutcomeTile/Tile.js +0 -79
- package/dist/LearningOutcomeTile/index.js +0 -114
- package/dist/LearningOutcomeTile/types.js +0 -11
- package/dist/ListSection/index.js +0 -64
- package/dist/Loading/index.js +0 -82
- package/dist/LoadingCurriculumCard/index.js +0 -82
- package/dist/Logo/CodecademyLogo.js +0 -19
- package/dist/Logo/CodecademyPremiumLogo.js +0 -35
- package/dist/Logo/CodecademyProAltLogo.js +0 -19
- package/dist/Logo/CodecademyProLockupLogo.js +0 -13
- package/dist/Logo/CodecademyProLogo.js +0 -21
- package/dist/Logo/CodecademyProMonoLogo.js +0 -22
- package/dist/Logo/CodecademyProgramLogo.js +0 -14
- package/dist/Logo/CodecademyTeamsLogo.js +0 -41
- package/dist/Logo/index.js +0 -30
- package/dist/LogoFromSkillsoft/index.js +0 -55
- package/dist/LogoLXStudio/index.js +0 -47
- package/dist/LogoProCutout/index.js +0 -31
- package/dist/LogoProCutoutTransparent/index.js +0 -31
- package/dist/MarketingToaster/index.js +0 -67
- package/dist/NotFoundContent/index.js +0 -55
- package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +0 -23
- package/dist/NotificationList/EmptyNotification/index.js +0 -38
- package/dist/NotificationList/NotificationItem.js +0 -151
- package/dist/NotificationList/index.js +0 -46
- package/dist/NotificationList/typings.js +0 -1
- package/dist/Notifications/NotificationBell.js +0 -72
- package/dist/Notifications/NotificationsContents.js +0 -85
- package/dist/Notifications/NotificationsDropdown.js +0 -25
- package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
- package/dist/Notifications/__fixtures__/stubs.js +0 -8
- package/dist/Notifications/constants.js +0 -4
- package/dist/Notifications/elements.js +0 -21
- package/dist/Notifications/types.js +0 -1
- package/dist/Notifications/useHeaderNotifications.js +0 -37
- package/dist/Notifications/useNotificationButtons.js +0 -56
- package/dist/PageAlerts/PageAlerts.js +0 -75
- package/dist/PageAlerts/PageAlertsProvider.js +0 -34
- package/dist/PageAlerts/index.js +0 -3
- package/dist/PageAlerts/types.js +0 -1
- package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +0 -53
- package/dist/PageLayoutWithSidebarMenu/index.js +0 -1
- package/dist/PageSection/index.js +0 -67
- package/dist/PastDue/PastDueModalContents/index.js +0 -30
- package/dist/PastDue/index.js +0 -2
- package/dist/PastDue/pastDueMessages.js +0 -48
- package/dist/PausableImage/BaseImage/index.js +0 -54
- package/dist/PausableImage/index.js +0 -37
- package/dist/PlanCard/PlanCardBanner.js +0 -28
- package/dist/PlanCard/PlanFeature.js +0 -83
- package/dist/PlanCard/PopularBadge.js +0 -13
- package/dist/PlanCard/PricingAmount.js +0 -117
- package/dist/PlanCard/RecommendedBadge.js +0 -24
- package/dist/PlanCard/consts.js +0 -135
- package/dist/PlanCard/index.js +0 -370
- package/dist/PlanCard/types.js +0 -62
- package/dist/PlanCardTeams/consts.js +0 -8
- package/dist/PlanCardTeams/index.js +0 -167
- package/dist/PricingSection/PlanFeature.js +0 -88
- package/dist/PricingSection/PricingCard/PricingAmount.js +0 -84
- package/dist/PricingSection/PricingCard/RecommendedBadge.js +0 -24
- package/dist/PricingSection/PricingCard/consts.js +0 -85
- package/dist/PricingSection/PricingCard/index.js +0 -241
- package/dist/PricingSection/ProductCTA.js +0 -44
- package/dist/PricingSection/Products.js +0 -74
- package/dist/PricingSection/config.js +0 -36
- package/dist/PricingSection/index.js +0 -58
- package/dist/PricingSection/types.js +0 -8
- package/dist/ProLabel/index.js +0 -59
- package/dist/ProLogo/index.js +0 -27
- package/dist/ProLogoAlt/index.js +0 -26
- package/dist/ProductFeatureShowcase/index.js +0 -120
- package/dist/QuizScore/index.js +0 -84
- package/dist/RatingsBar/index.js +0 -32
- package/dist/ResourceCard/index.js +0 -59
- package/dist/ScoreSummary/SubScores.js +0 -165
- package/dist/ScoreSummary/helpers.js +0 -20
- package/dist/ScoreSummary/index.js +0 -108
- package/dist/ScoreSummary/types.js +0 -1
- package/dist/SkillPathCard/index.js +0 -38
- package/dist/SocialMediaSharing/SocialShareIconLink.js +0 -49
- package/dist/SocialMediaSharing/index.js +0 -116
- package/dist/SocialMediaSharingDropdown/index.js +0 -111
- package/dist/Testimonial/index.js +0 -163
- package/dist/index.js +0 -87
- package/dist/lib/breakpointHooks/index.js +0 -60
- package/dist/lib/catalogList/index.js +0 -173
- package/dist/lib/resourcesList/index.js +0 -232
- package/dist/remoteAssets/components.js +0 -1
- package/dist/stories/Atoms/Avatar.stories.js +0 -16
- package/dist/stories/Atoms/BetaSticker.stories.js +0 -22
- package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
- package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -15
- package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
- package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -16
- package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
- package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
- package/dist/stories/Atoms/Subgrid.stories.js +0 -87
- package/dist/stories/Molecules/AppBar.stories.js +0 -32
- package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
- package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
- package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -52
- package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -44
- package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
- package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
- package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
- package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
- package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
- package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
- package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
- package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
- package/dist/stories/Molecules/Banner.stories.js +0 -115
- package/dist/stories/Molecules/Carousel.stories.js +0 -47
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -173
- package/dist/stories/Molecules/CurriculumCard.stories.js +0 -208
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -92
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -65
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -83
- package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -90
- package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
- package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
- package/dist/stories/Molecules/EmptySection.stories.js +0 -168
- package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
- package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
- package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
- package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
- package/dist/stories/Molecules/HubCard.stories.js +0 -28
- package/dist/stories/Molecules/InfoCard.stories.js +0 -30
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +0 -23
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -189
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +0 -44
- package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
- package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
- package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
- package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
- package/dist/stories/Molecules/ListSection.stories.js +0 -97
- package/dist/stories/Molecules/Loading.stories.js +0 -10
- package/dist/stories/Molecules/NotificationList.stories.js +0 -100
- package/dist/stories/Molecules/PageSection.stories.js +0 -67
- package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
- package/dist/stories/Molecules/PausableImage.stories.js +0 -16
- package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
- package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
- package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
- package/dist/stories/Molecules/Testimonial.stories.js +0 -63
- package/dist/stories/Organisms/GlobalFooter.stories.js +0 -29
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -136
- package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -73
- package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -32
- package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -108
- package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -133
- package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -199
- package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -31
- package/dist/stories/Organisms/GlobalPage.stories.js +0 -142
- package/dist/stories/Organisms/LayoutMenu.stories.js +0 -242
- package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -224
- package/dist/stories/Organisms/PageAlerts.example.js +0 -42
- package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
- package/dist/stories/Organisms/PageFeatures.stories.js +0 -183
- package/dist/stories/Organisms/PageHero.stories.js +0 -145
- package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
- package/dist/stories/Organisms/PagePrefooter.stories.js +0 -62
- package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -158
- package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -70
- package/dist/stories/Organisms/PlanCard.stories.js +0 -98
- package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
- package/dist/stories/Organisms/ScoreSummary.stories.js +0 -299
|
@@ -1,100 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ResourceCard, ResourceType } from '../../index';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
const meta = {
|
|
4
|
-
component: ResourceCard,
|
|
5
|
-
args: {
|
|
6
|
-
title: 'Creating a React App',
|
|
7
|
-
description: 'Use create-react-app to easily create a React application on your computer.',
|
|
8
|
-
resourceType: ResourceType.Article,
|
|
9
|
-
headingLevel: 'h3'
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
export const Default = {
|
|
14
|
-
render: args => /*#__PURE__*/_jsx(ResourceCard, {
|
|
15
|
-
...args
|
|
16
|
-
}),
|
|
17
|
-
name: 'ResourceCard'
|
|
18
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SocialMediaSharing } from '../../index';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
const meta = {
|
|
4
|
-
component: SocialMediaSharing,
|
|
5
|
-
args: {
|
|
6
|
-
label: '',
|
|
7
|
-
mention: 'codecademy',
|
|
8
|
-
url: 'https://spacejam.com/1996',
|
|
9
|
-
message: 'Come on and slam, and welcome to the jam',
|
|
10
|
-
hashtags: ['bball', 'chaosdunk'],
|
|
11
|
-
size: 'normal'
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
export const Default = {
|
|
16
|
-
render: args => /*#__PURE__*/_jsx(SocialMediaSharing, {
|
|
17
|
-
...args
|
|
18
|
-
}),
|
|
19
|
-
name: 'SocialMediaSharing'
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SocialMediaSharingDropdown } from '../../index';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
const meta = {
|
|
4
|
-
component: SocialMediaSharingDropdown,
|
|
5
|
-
args: {
|
|
6
|
-
mention: 'codecademy',
|
|
7
|
-
url: 'https://spacejam.com/1996',
|
|
8
|
-
message: 'Come on and slam, and welcome to the jam',
|
|
9
|
-
hashtags: ['bball', 'chaosdunk'],
|
|
10
|
-
action: () => null,
|
|
11
|
-
defaultPosition: 'below'
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
export const Default = {
|
|
16
|
-
render: args => /*#__PURE__*/_jsx(SocialMediaSharingDropdown, {
|
|
17
|
-
...args
|
|
18
|
-
}),
|
|
19
|
-
name: 'SocialMediaSharingDropdown'
|
|
20
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { FlexBox } from '@codecademy/gamut';
|
|
2
|
-
import { Background } from '@codecademy/gamut-styles';
|
|
3
|
-
import { Testimonial } from '../../index';
|
|
4
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
const meta = {
|
|
6
|
-
component: Testimonial,
|
|
7
|
-
args: {
|
|
8
|
-
firstName: 'Lacey',
|
|
9
|
-
lastName: 'Bathala',
|
|
10
|
-
occupation: 'Data Analyst',
|
|
11
|
-
quote: "Coding isn't a rocket appliance, it’s just falsely intimidating.",
|
|
12
|
-
company: 'Microsoft',
|
|
13
|
-
imageUrl: 'http://images.ctfassets.net/go6kr6r0ykrq/4MdZk5XTPtg52O0uUBDMXB/e829b4fe7ea9e02220c4f86b0a17d7b3/lacey_bathala_480.png?w=120&h=120',
|
|
14
|
-
href: 'https://www.codecademy.com/learner-stories/data-science/1ogiwGOCDJNRTHczbLsyn8',
|
|
15
|
-
onClick: () => {
|
|
16
|
-
// eslint-disable-next-line no-console
|
|
17
|
-
console.log('You could add event tracking here.');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
export const Default = {
|
|
23
|
-
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
24
|
-
...args
|
|
25
|
-
}),
|
|
26
|
-
name: 'Testimonial'
|
|
27
|
-
};
|
|
28
|
-
export const LightMode = {
|
|
29
|
-
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
30
|
-
...args
|
|
31
|
-
}),
|
|
32
|
-
name: 'Light Mode'
|
|
33
|
-
};
|
|
34
|
-
export const DarkMode = {
|
|
35
|
-
render: args => /*#__PURE__*/_jsx(Background, {
|
|
36
|
-
bg: "navy",
|
|
37
|
-
children: /*#__PURE__*/_jsx(FlexBox, {
|
|
38
|
-
p: 16,
|
|
39
|
-
center: true,
|
|
40
|
-
children: /*#__PURE__*/_jsx(Testimonial, {
|
|
41
|
-
hidePhoto: true,
|
|
42
|
-
variant: "navy",
|
|
43
|
-
...args
|
|
44
|
-
})
|
|
45
|
-
})
|
|
46
|
-
}),
|
|
47
|
-
name: 'Dark Mode'
|
|
48
|
-
};
|
|
49
|
-
export const SmallLight = {
|
|
50
|
-
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
51
|
-
orientation: "vertical",
|
|
52
|
-
...args
|
|
53
|
-
}),
|
|
54
|
-
name: 'Small Light'
|
|
55
|
-
};
|
|
56
|
-
export const MediumDark = {
|
|
57
|
-
render: args => /*#__PURE__*/_jsx(Testimonial, {
|
|
58
|
-
...args,
|
|
59
|
-
orientation: "horizontal",
|
|
60
|
-
hidePhoto: true
|
|
61
|
-
}),
|
|
62
|
-
name: 'Medium Dark'
|
|
63
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { GlobalFooter } from '../../index';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
const meta = {
|
|
4
|
-
component: GlobalFooter,
|
|
5
|
-
parameters: {
|
|
6
|
-
layout: 'fullscreen'
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
export const Default = {
|
|
11
|
-
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
12
|
-
...args
|
|
13
|
-
}),
|
|
14
|
-
name: 'GlobalFooter'
|
|
15
|
-
};
|
|
16
|
-
export const HidePricing = {
|
|
17
|
-
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
18
|
-
hidePricing: true,
|
|
19
|
-
...args
|
|
20
|
-
}),
|
|
21
|
-
name: 'Hide Pricing'
|
|
22
|
-
};
|
|
23
|
-
export const ClickableMadeIn = {
|
|
24
|
-
render: args => /*#__PURE__*/_jsx(GlobalFooter, {
|
|
25
|
-
...args,
|
|
26
|
-
onMadeInClick: () => {}
|
|
27
|
-
}),
|
|
28
|
-
name: 'Clickable MadeIN'
|
|
29
|
-
};
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { Box } from '@codecademy/gamut';
|
|
2
|
-
import { GlobalHeader } from '../../../index';
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
const meta = {
|
|
5
|
-
component: GlobalHeader,
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: 'fullscreen'
|
|
8
|
-
},
|
|
9
|
-
decorators: [Story => {
|
|
10
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
-
style: {
|
|
12
|
-
width: '100%'
|
|
13
|
-
},
|
|
14
|
-
children: Story()
|
|
15
|
-
});
|
|
16
|
-
}]
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
export const Default = {
|
|
20
|
-
render: args => /*#__PURE__*/_jsxs(Box, {
|
|
21
|
-
position: "relative",
|
|
22
|
-
zIndex: 0,
|
|
23
|
-
children: [/*#__PURE__*/_jsx(GlobalHeader, {
|
|
24
|
-
...args
|
|
25
|
-
}), /*#__PURE__*/_jsx(Box, {
|
|
26
|
-
height: "120vh",
|
|
27
|
-
bg: "background-primary"
|
|
28
|
-
})]
|
|
29
|
-
}),
|
|
30
|
-
name: 'GlobalHeader',
|
|
31
|
-
args: {
|
|
32
|
-
type: 'free',
|
|
33
|
-
user: {
|
|
34
|
-
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
35
|
-
displayName: 'Codey'
|
|
36
|
-
},
|
|
37
|
-
action: () => {},
|
|
38
|
-
search: {
|
|
39
|
-
onEnable: () => {},
|
|
40
|
-
onSearch: () => {},
|
|
41
|
-
onTrackingClick: () => {},
|
|
42
|
-
onSearchAsYouType: () => {}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export const GlobalHeaderWithSearchAndNotifications = {
|
|
47
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
48
|
-
action: () => {},
|
|
49
|
-
search: {
|
|
50
|
-
onEnable: () => {},
|
|
51
|
-
onSearch: () => {},
|
|
52
|
-
onTrackingClick: () => {},
|
|
53
|
-
onSearchAsYouType: () => {}
|
|
54
|
-
},
|
|
55
|
-
notifications: {
|
|
56
|
-
actions: {
|
|
57
|
-
clear: () => null,
|
|
58
|
-
click: _notification => null,
|
|
59
|
-
dismiss: _notification => null,
|
|
60
|
-
read: _notifications => null,
|
|
61
|
-
track: _target => null
|
|
62
|
-
},
|
|
63
|
-
notifications: [],
|
|
64
|
-
onEnable: () => null
|
|
65
|
-
},
|
|
66
|
-
type: "pro",
|
|
67
|
-
user: {
|
|
68
|
-
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
69
|
-
displayName: 'Codey'
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
name: 'GlobalHeader With Search and Notifications'
|
|
73
|
-
};
|
|
74
|
-
export const GlobalHeaderOverBackgroundColor = {
|
|
75
|
-
render: () => /*#__PURE__*/_jsx(Box, {
|
|
76
|
-
bg: "beige",
|
|
77
|
-
width: "100%",
|
|
78
|
-
children: /*#__PURE__*/_jsx(GlobalHeader, {
|
|
79
|
-
action: () => {},
|
|
80
|
-
search: {
|
|
81
|
-
onEnable: () => {},
|
|
82
|
-
onSearch: () => {},
|
|
83
|
-
onTrackingClick: () => {},
|
|
84
|
-
onSearchAsYouType: () => {}
|
|
85
|
-
},
|
|
86
|
-
notifications: {
|
|
87
|
-
actions: {
|
|
88
|
-
clear: () => null,
|
|
89
|
-
click: _notification => null,
|
|
90
|
-
dismiss: _notification => null,
|
|
91
|
-
read: _notifications => null,
|
|
92
|
-
track: _target => null
|
|
93
|
-
},
|
|
94
|
-
notifications: [],
|
|
95
|
-
onEnable: () => null
|
|
96
|
-
},
|
|
97
|
-
type: "pro",
|
|
98
|
-
user: {
|
|
99
|
-
avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
|
|
100
|
-
displayName: 'Codey'
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
}),
|
|
104
|
-
name: 'GlobalHeader Over Background Color'
|
|
105
|
-
};
|
|
106
|
-
export const GlobalHeaderWithAnActionFunction = {
|
|
107
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
108
|
-
action: (event, item) => {
|
|
109
|
-
// eslint-disable-next-line no-console
|
|
110
|
-
console.log(event);
|
|
111
|
-
// eslint-disable-next-line no-console
|
|
112
|
-
console.log(item);
|
|
113
|
-
},
|
|
114
|
-
search: {
|
|
115
|
-
onEnable: () => {},
|
|
116
|
-
onSearch: () => {},
|
|
117
|
-
onTrackingClick: () => {},
|
|
118
|
-
onSearchAsYouType: () => {}
|
|
119
|
-
},
|
|
120
|
-
type: "anon"
|
|
121
|
-
}),
|
|
122
|
-
name: 'GlobalHeader With an Action Function'
|
|
123
|
-
};
|
|
124
|
-
export const Loading = {
|
|
125
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
126
|
-
action: () => {},
|
|
127
|
-
search: {
|
|
128
|
-
onEnable: () => {},
|
|
129
|
-
onSearch: () => {},
|
|
130
|
-
onTrackingClick: () => {},
|
|
131
|
-
onSearchAsYouType: () => {}
|
|
132
|
-
},
|
|
133
|
-
type: "loading"
|
|
134
|
-
}),
|
|
135
|
-
name: 'Loading'
|
|
136
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Box } from '@codecademy/gamut';
|
|
2
|
-
import { GlobalHeader } from '../../../index';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
const meta = {
|
|
5
|
-
component: GlobalHeader,
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: 'fullscreen'
|
|
8
|
-
},
|
|
9
|
-
decorators: [Story => {
|
|
10
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
-
style: {
|
|
12
|
-
width: '100%'
|
|
13
|
-
},
|
|
14
|
-
children: Story()
|
|
15
|
-
});
|
|
16
|
-
}]
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
export const AnonymousUserDefault = {
|
|
20
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
21
|
-
action: () => {},
|
|
22
|
-
search: {
|
|
23
|
-
onEnable: () => {},
|
|
24
|
-
onSearch: () => {},
|
|
25
|
-
onTrackingClick: () => {},
|
|
26
|
-
onSearchAsYouType: () => {}
|
|
27
|
-
},
|
|
28
|
-
type: "anon"
|
|
29
|
-
}),
|
|
30
|
-
name: 'Anonymous User - Default'
|
|
31
|
-
};
|
|
32
|
-
export const AnonymousUserLandingPage = {
|
|
33
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
34
|
-
action: () => {},
|
|
35
|
-
search: {
|
|
36
|
-
onEnable: () => {},
|
|
37
|
-
onSearch: () => {},
|
|
38
|
-
onTrackingClick: () => {},
|
|
39
|
-
onSearchAsYouType: () => {}
|
|
40
|
-
},
|
|
41
|
-
type: "anon",
|
|
42
|
-
variant: "landing"
|
|
43
|
-
}),
|
|
44
|
-
name: 'Anonymous User - Landing Page'
|
|
45
|
-
};
|
|
46
|
-
export const AnonymousUserLoginPage = {
|
|
47
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
48
|
-
action: () => {},
|
|
49
|
-
search: {
|
|
50
|
-
onEnable: () => {},
|
|
51
|
-
onSearch: () => {},
|
|
52
|
-
onTrackingClick: () => {},
|
|
53
|
-
onSearchAsYouType: () => {}
|
|
54
|
-
},
|
|
55
|
-
type: "anon",
|
|
56
|
-
variant: "login"
|
|
57
|
-
}),
|
|
58
|
-
name: 'Anonymous User - Login Page'
|
|
59
|
-
};
|
|
60
|
-
export const AnonymousUserSignupPage = {
|
|
61
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
62
|
-
action: () => {},
|
|
63
|
-
search: {
|
|
64
|
-
onEnable: () => {},
|
|
65
|
-
onSearch: () => {},
|
|
66
|
-
onTrackingClick: () => {},
|
|
67
|
-
onSearchAsYouType: () => {}
|
|
68
|
-
},
|
|
69
|
-
type: "anon",
|
|
70
|
-
variant: "signup"
|
|
71
|
-
}),
|
|
72
|
-
name: 'Anonymous User - Signup Page'
|
|
73
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Box } from '@codecademy/gamut';
|
|
2
|
-
import { GlobalHeader } from '../../../GlobalHeader';
|
|
3
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
const meta = {
|
|
5
|
-
component: GlobalHeader,
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: 'fullscreen'
|
|
8
|
-
},
|
|
9
|
-
decorators: [Story => {
|
|
10
|
-
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
-
style: {
|
|
12
|
-
width: '100%'
|
|
13
|
-
},
|
|
14
|
-
children: Story()
|
|
15
|
-
});
|
|
16
|
-
}]
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
export const Bootcamp = {
|
|
20
|
-
render: () => /*#__PURE__*/_jsx(GlobalHeader, {
|
|
21
|
-
action: () => {},
|
|
22
|
-
search: {
|
|
23
|
-
onEnable: () => {},
|
|
24
|
-
onSearch: () => {},
|
|
25
|
-
onTrackingClick: () => {},
|
|
26
|
-
onSearchAsYouType: () => {}
|
|
27
|
-
},
|
|
28
|
-
type: "bootcamp",
|
|
29
|
-
bootcampSlug: "bootcamp-slug"
|
|
30
|
-
}),
|
|
31
|
-
name: 'Bootcamp'
|
|
32
|
-
};
|