@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.a67c1b58ff.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.
Files changed (183) hide show
  1. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +8 -7
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +4 -2
  3. package/dist/AppHeader/index.js +5 -2
  4. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +7 -5
  5. package/dist/FeatureList/index.js +4 -5
  6. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +9 -6
  7. package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
  8. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
  9. package/dist/GlobalFooter/index.js +25 -17
  10. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  11. package/dist/GlobalHeader/index.js +49 -41
  12. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -3
  13. package/dist/LearningOutcomeCard/index.js +143 -0
  14. package/dist/LearningOutcomePopover/index.js +125 -0
  15. package/dist/LearningOutcomeTile/Tile.js +79 -0
  16. package/dist/LearningOutcomeTile/index.js +116 -0
  17. package/dist/LearningOutcomeTile/types.js +11 -0
  18. package/dist/ListSection/index.js +64 -0
  19. package/dist/Loading/index.js +82 -0
  20. package/dist/LoadingCurriculumCard/index.js +82 -0
  21. package/dist/Logo/CodecademyLogo.js +19 -0
  22. package/dist/Logo/CodecademyPremiumLogo.js +35 -0
  23. package/dist/Logo/CodecademyProAltLogo.js +19 -0
  24. package/dist/Logo/CodecademyProLockupLogo.js +13 -0
  25. package/dist/Logo/CodecademyProLogo.js +21 -0
  26. package/dist/Logo/CodecademyProMonoLogo.js +22 -0
  27. package/dist/Logo/CodecademyProgramLogo.js +14 -0
  28. package/dist/Logo/CodecademyTeamsLogo.js +41 -0
  29. package/dist/Logo/index.js +30 -0
  30. package/dist/LogoFromSkillsoft/index.js +55 -0
  31. package/dist/LogoLXStudio/index.js +47 -0
  32. package/dist/LogoProCutout/index.js +31 -0
  33. package/dist/LogoProCutoutTransparent/index.js +31 -0
  34. package/dist/MarketingToaster/index.js +67 -0
  35. package/dist/NotFoundContent/index.js +55 -0
  36. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
  37. package/dist/NotificationList/EmptyNotification/index.js +38 -0
  38. package/dist/NotificationList/NotificationItem.js +151 -0
  39. package/dist/NotificationList/index.js +46 -0
  40. package/dist/NotificationList/typings.js +1 -0
  41. package/dist/Notifications/NotificationBell.js +72 -0
  42. package/dist/Notifications/NotificationsContents.js +85 -0
  43. package/dist/Notifications/NotificationsDropdown.js +25 -0
  44. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
  45. package/dist/Notifications/__fixtures__/stubs.js +8 -0
  46. package/dist/Notifications/constants.js +4 -0
  47. package/dist/Notifications/elements.js +21 -0
  48. package/dist/Notifications/types.js +1 -0
  49. package/dist/Notifications/useHeaderNotifications.js +37 -0
  50. package/dist/Notifications/useNotificationButtons.js +56 -0
  51. package/dist/PageAlerts/PageAlerts.js +75 -0
  52. package/dist/PageAlerts/PageAlertsProvider.js +34 -0
  53. package/dist/PageAlerts/index.js +3 -0
  54. package/dist/PageAlerts/types.js +1 -0
  55. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
  56. package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
  57. package/dist/PageSection/index.js +67 -0
  58. package/dist/PastDue/PastDueModalContents/index.js +30 -0
  59. package/dist/PastDue/index.js +2 -0
  60. package/dist/PastDue/pastDueMessages.js +48 -0
  61. package/dist/PausableImage/BaseImage/index.js +54 -0
  62. package/dist/PausableImage/index.js +37 -0
  63. package/dist/PlanCard/PlanCardBanner.js +28 -0
  64. package/dist/PlanCard/PlanFeature.js +83 -0
  65. package/dist/PlanCard/PopularBadge.js +13 -0
  66. package/dist/PlanCard/PricingAmount.js +117 -0
  67. package/dist/PlanCard/RecommendedBadge.js +24 -0
  68. package/dist/PlanCard/consts.js +135 -0
  69. package/dist/PlanCard/index.js +323 -0
  70. package/dist/PlanCard/types.js +62 -0
  71. package/dist/PlanCardTeams/consts.js +8 -0
  72. package/dist/PlanCardTeams/index.js +167 -0
  73. package/dist/PricingSection/PlanFeature.js +88 -0
  74. package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
  75. package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
  76. package/dist/PricingSection/PricingCard/consts.js +85 -0
  77. package/dist/PricingSection/PricingCard/index.js +241 -0
  78. package/dist/PricingSection/ProductCTA.js +44 -0
  79. package/dist/PricingSection/Products.js +74 -0
  80. package/dist/PricingSection/config.js +36 -0
  81. package/dist/PricingSection/index.js +58 -0
  82. package/dist/PricingSection/types.js +8 -0
  83. package/dist/ProLabel/index.js +59 -0
  84. package/dist/ProLogo/index.js +27 -0
  85. package/dist/ProLogoAlt/index.js +26 -0
  86. package/dist/ProductFeatureShowcase/index.js +120 -0
  87. package/dist/QuizScore/index.js +84 -0
  88. package/dist/RatingsBar/index.js +32 -0
  89. package/dist/ResourceCard/index.js +59 -0
  90. package/dist/ScoreSummary/SubScores.js +165 -0
  91. package/dist/ScoreSummary/helpers.js +20 -0
  92. package/dist/ScoreSummary/index.js +108 -0
  93. package/dist/ScoreSummary/types.js +1 -0
  94. package/dist/SkillPathCard/index.js +38 -0
  95. package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
  96. package/dist/SocialMediaSharing/index.js +116 -0
  97. package/dist/SocialMediaSharingDropdown/index.js +111 -0
  98. package/dist/Testimonial/index.js +163 -0
  99. package/dist/index.js +87 -0
  100. package/dist/lib/breakpointHooks/index.js +60 -0
  101. package/dist/lib/catalogList/index.js +173 -0
  102. package/dist/lib/resourcesList/index.js +241 -0
  103. package/dist/remoteAssets/components.js +1 -0
  104. package/dist/stories/Atoms/Avatar.stories.js +16 -0
  105. package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
  106. package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
  107. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +15 -0
  108. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
  109. package/dist/stories/Atoms/Logos/ProLabel.stories.js +16 -0
  110. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
  111. package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
  112. package/dist/stories/Atoms/Subgrid.stories.js +87 -0
  113. package/dist/stories/Molecules/AppBar.stories.js +32 -0
  114. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
  115. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
  116. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
  117. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
  118. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
  119. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
  120. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
  121. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
  122. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
  123. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
  124. package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
  125. package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
  126. package/dist/stories/Molecules/Banner.stories.js +115 -0
  127. package/dist/stories/Molecules/Carousel.stories.js +47 -0
  128. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
  129. package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
  130. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
  131. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
  132. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
  133. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
  134. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
  135. package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
  136. package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
  137. package/dist/stories/Molecules/EmptySection.stories.js +168 -0
  138. package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
  139. package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
  140. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
  141. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
  142. package/dist/stories/Molecules/HubCard.stories.js +28 -0
  143. package/dist/stories/Molecules/InfoCard.stories.js +30 -0
  144. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +59 -0
  145. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  146. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  147. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
  148. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
  149. package/dist/stories/Molecules/ListSection.stories.js +97 -0
  150. package/dist/stories/Molecules/Loading.stories.js +10 -0
  151. package/dist/stories/Molecules/NotificationList.stories.js +100 -0
  152. package/dist/stories/Molecules/PageSection.stories.js +67 -0
  153. package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
  154. package/dist/stories/Molecules/PausableImage.stories.js +16 -0
  155. package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
  156. package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
  157. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
  158. package/dist/stories/Molecules/Testimonial.stories.js +63 -0
  159. package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
  160. package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
  161. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
  162. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
  163. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
  164. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
  165. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
  166. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
  167. package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
  168. package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
  169. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
  170. package/dist/stories/Organisms/PageAlerts.example.js +42 -0
  171. package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
  172. package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
  173. package/dist/stories/Organisms/PageHero.stories.js +145 -0
  174. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
  175. package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
  176. package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
  177. package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
  178. package/dist/stories/Organisms/PlanCard.stories.js +98 -0
  179. package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
  180. package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
  181. package/package.json +1 -1
  182. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
  183. package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
@@ -0,0 +1,20 @@
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
+ };
@@ -0,0 +1,20 @@
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
+ };
@@ -0,0 +1,63 @@
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
+ };
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,136 @@
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
+ };
@@ -0,0 +1,73 @@
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
+ };
@@ -0,0 +1,32 @@
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
+ };
@@ -0,0 +1,108 @@
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 Enterprise = {
20
+ render: () => /*#__PURE__*/_jsx(GlobalHeader, {
21
+ action: () => {},
22
+ search: {
23
+ onEnable: () => {},
24
+ onSearch: () => {},
25
+ onTrackingClick: () => {},
26
+ onSearchAsYouType: () => {}
27
+ },
28
+ type: "enterprise",
29
+ user: {
30
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
31
+ displayName: 'Kallie',
32
+ isAccountManager: true
33
+ }
34
+ }),
35
+ name: 'Enterprise'
36
+ };
37
+ export const BusinessAccountManagerPro = {
38
+ render: () => /*#__PURE__*/_jsx(GlobalHeader, {
39
+ action: () => {},
40
+ notifications: {
41
+ notifications: [{
42
+ campaign: 'existence_is_pain',
43
+ date: '5 hours',
44
+ id: '1',
45
+ link: 'https://codecademy.com',
46
+ text: "Look at me! I'm Mr. Notification!",
47
+ unread: true
48
+ }],
49
+ onEnable: () => {},
50
+ actions: {
51
+ clear: () => {},
52
+ click: () => {},
53
+ dismiss: () => {},
54
+ read: () => {},
55
+ track: () => {}
56
+ }
57
+ },
58
+ search: {
59
+ onEnable: () => {},
60
+ onSearch: () => {},
61
+ onTrackingClick: () => {},
62
+ onSearchAsYouType: () => {}
63
+ },
64
+ type: "pro",
65
+ user: {
66
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
67
+ displayName: 'Kallie',
68
+ isAccountManager: true
69
+ }
70
+ }),
71
+ name: 'Business Account Manager - Pro'
72
+ };
73
+ export const BusinessAccountManagerFree = {
74
+ render: () => /*#__PURE__*/_jsx(GlobalHeader, {
75
+ action: () => {},
76
+ notifications: {
77
+ notifications: [{
78
+ campaign: 'existence_is_pain',
79
+ date: '5 hours',
80
+ id: '1',
81
+ link: 'https://codecademy.com',
82
+ text: "Look at me! I'm Mr. Notification!",
83
+ unread: true
84
+ }],
85
+ onEnable: () => {},
86
+ actions: {
87
+ clear: () => {},
88
+ click: () => {},
89
+ dismiss: () => {},
90
+ read: () => {},
91
+ track: () => {}
92
+ }
93
+ },
94
+ search: {
95
+ onEnable: () => {},
96
+ onSearch: () => {},
97
+ onTrackingClick: () => {},
98
+ onSearchAsYouType: () => {}
99
+ },
100
+ type: "free",
101
+ user: {
102
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
103
+ displayName: 'Kallie',
104
+ isAccountManager: true
105
+ }
106
+ }),
107
+ name: 'Business Account Manager - Free'
108
+ };
@@ -0,0 +1,133 @@
1
+ import { Box } from '@codecademy/gamut';
2
+ import { Background } from '@codecademy/gamut-styles';
3
+ import { GlobalHeader } from '../../../index';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const meta = {
6
+ component: GlobalHeader,
7
+ parameters: {
8
+ layout: 'fullscreen'
9
+ },
10
+ decorators: [Story => {
11
+ return /*#__PURE__*/_jsx(Box, {
12
+ style: {
13
+ width: '100%'
14
+ },
15
+ children: Story()
16
+ });
17
+ }]
18
+ };
19
+ export default meta;
20
+ export const FreeUserDefault = {
21
+ render: () => /*#__PURE__*/_jsxs(Background, {
22
+ bg: "background-primary",
23
+ position: "relative",
24
+ zIndex: 0,
25
+ children: [/*#__PURE__*/_jsx(GlobalHeader, {
26
+ action: () => {},
27
+ notifications: {
28
+ notifications: [{
29
+ campaign: 'existence_is_pain',
30
+ date: '5 hours',
31
+ id: '1',
32
+ link: 'https://codecademy.com',
33
+ text: "Look at me! I'm Mr. Notification!",
34
+ unread: true
35
+ }],
36
+ onEnable: () => {},
37
+ actions: {
38
+ clear: () => {},
39
+ click: () => {},
40
+ dismiss: () => {},
41
+ read: () => {},
42
+ track: () => {}
43
+ }
44
+ },
45
+ search: {
46
+ onEnable: () => {},
47
+ onSearch: () => {},
48
+ onTrackingClick: () => {},
49
+ onSearchAsYouType: () => {}
50
+ },
51
+ type: "free",
52
+ user: {
53
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
54
+ displayName: 'Codey'
55
+ }
56
+ }), /*#__PURE__*/_jsx(Box, {
57
+ children: "Page content would go here"
58
+ })]
59
+ }),
60
+ name: 'Free User - Default'
61
+ };
62
+ export const FreeUserCustomTrialCtaUrl = {
63
+ render: () => /*#__PURE__*/_jsx(GlobalHeader, {
64
+ action: () => {},
65
+ notifications: {
66
+ notifications: [{
67
+ campaign: 'existence_is_pain',
68
+ date: '5 hours',
69
+ id: '1',
70
+ link: 'https://codecademy.com',
71
+ text: "Look at me! I'm Mr. Notification!",
72
+ unread: true
73
+ }],
74
+ onEnable: () => {},
75
+ actions: {
76
+ clear: () => {},
77
+ click: () => {},
78
+ dismiss: () => {},
79
+ read: () => {},
80
+ track: () => {}
81
+ }
82
+ },
83
+ search: {
84
+ onEnable: () => {},
85
+ onSearch: () => {},
86
+ onTrackingClick: () => {},
87
+ onSearchAsYouType: () => {}
88
+ },
89
+ type: "free",
90
+ user: {
91
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
92
+ displayName: 'Codey',
93
+ proCheckoutUrl: 'https://www.codecademy.com'
94
+ }
95
+ }),
96
+ name: 'Free User - Custom Trial CTA URL'
97
+ };
98
+ export const FreeUserProUpgrade = {
99
+ render: () => /*#__PURE__*/_jsx(GlobalHeader, {
100
+ action: () => {},
101
+ notifications: {
102
+ notifications: [{
103
+ campaign: 'existence_is_pain',
104
+ date: '5 hours',
105
+ id: '1',
106
+ link: 'https://codecademy.com',
107
+ text: "Look at me! I'm Mr. Notification!",
108
+ unread: true
109
+ }],
110
+ onEnable: () => {},
111
+ actions: {
112
+ clear: () => {},
113
+ click: () => {},
114
+ dismiss: () => {},
115
+ read: () => {},
116
+ track: () => {}
117
+ }
118
+ },
119
+ search: {
120
+ onEnable: () => {},
121
+ onSearch: () => {},
122
+ onTrackingClick: () => {},
123
+ onSearchAsYouType: () => {}
124
+ },
125
+ type: "free",
126
+ user: {
127
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
128
+ displayName: 'Codey',
129
+ showProUpgrade: true
130
+ }
131
+ }),
132
+ name: 'Free User - Pro Upgrade'
133
+ };