@codecademy/brand 2.0.0-alpha.9eaf2316c2.0 → 2.0.0-alpha.a3eb12cdcb.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 +7 -8
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -4
  3. package/dist/AppHeader/index.js +2 -5
  4. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +5 -7
  5. package/dist/FeatureList/index.js +5 -4
  6. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +6 -9
  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 +17 -25
  10. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  11. package/dist/GlobalHeader/index.js +41 -49
  12. package/dist/LandingPage/PageFeaturesEnhanced.js +3 -0
  13. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
  14. package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
  15. package/package.json +1 -1
  16. package/dist/LearningOutcomeCard/index.js +0 -143
  17. package/dist/LearningOutcomePopover/index.js +0 -125
  18. package/dist/LearningOutcomeTile/Tile.js +0 -79
  19. package/dist/LearningOutcomeTile/index.js +0 -116
  20. package/dist/LearningOutcomeTile/types.js +0 -11
  21. package/dist/ListSection/index.js +0 -64
  22. package/dist/Loading/index.js +0 -82
  23. package/dist/LoadingCurriculumCard/index.js +0 -82
  24. package/dist/Logo/CodecademyLogo.js +0 -19
  25. package/dist/Logo/CodecademyPremiumLogo.js +0 -35
  26. package/dist/Logo/CodecademyProAltLogo.js +0 -19
  27. package/dist/Logo/CodecademyProLockupLogo.js +0 -13
  28. package/dist/Logo/CodecademyProLogo.js +0 -21
  29. package/dist/Logo/CodecademyProMonoLogo.js +0 -22
  30. package/dist/Logo/CodecademyProgramLogo.js +0 -14
  31. package/dist/Logo/CodecademyTeamsLogo.js +0 -41
  32. package/dist/Logo/index.js +0 -30
  33. package/dist/LogoFromSkillsoft/index.js +0 -55
  34. package/dist/LogoLXStudio/index.js +0 -47
  35. package/dist/LogoProCutout/index.js +0 -31
  36. package/dist/LogoProCutoutTransparent/index.js +0 -31
  37. package/dist/MarketingToaster/index.js +0 -67
  38. package/dist/NotFoundContent/index.js +0 -55
  39. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +0 -23
  40. package/dist/NotificationList/EmptyNotification/index.js +0 -38
  41. package/dist/NotificationList/NotificationItem.js +0 -151
  42. package/dist/NotificationList/index.js +0 -46
  43. package/dist/NotificationList/typings.js +0 -1
  44. package/dist/Notifications/NotificationBell.js +0 -72
  45. package/dist/Notifications/NotificationsContents.js +0 -85
  46. package/dist/Notifications/NotificationsDropdown.js +0 -25
  47. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +0 -12
  48. package/dist/Notifications/__fixtures__/stubs.js +0 -8
  49. package/dist/Notifications/constants.js +0 -4
  50. package/dist/Notifications/elements.js +0 -21
  51. package/dist/Notifications/types.js +0 -1
  52. package/dist/Notifications/useHeaderNotifications.js +0 -37
  53. package/dist/Notifications/useNotificationButtons.js +0 -56
  54. package/dist/PageAlerts/PageAlerts.js +0 -75
  55. package/dist/PageAlerts/PageAlertsProvider.js +0 -34
  56. package/dist/PageAlerts/index.js +0 -3
  57. package/dist/PageAlerts/types.js +0 -1
  58. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +0 -53
  59. package/dist/PageLayoutWithSidebarMenu/index.js +0 -1
  60. package/dist/PageSection/index.js +0 -67
  61. package/dist/PastDue/PastDueModalContents/index.js +0 -30
  62. package/dist/PastDue/index.js +0 -2
  63. package/dist/PastDue/pastDueMessages.js +0 -48
  64. package/dist/PausableImage/BaseImage/index.js +0 -54
  65. package/dist/PausableImage/index.js +0 -37
  66. package/dist/PlanCard/PlanCardBanner.js +0 -28
  67. package/dist/PlanCard/PlanFeature.js +0 -83
  68. package/dist/PlanCard/PopularBadge.js +0 -13
  69. package/dist/PlanCard/PricingAmount.js +0 -117
  70. package/dist/PlanCard/RecommendedBadge.js +0 -24
  71. package/dist/PlanCard/consts.js +0 -135
  72. package/dist/PlanCard/index.js +0 -323
  73. package/dist/PlanCard/types.js +0 -62
  74. package/dist/PlanCardTeams/consts.js +0 -8
  75. package/dist/PlanCardTeams/index.js +0 -167
  76. package/dist/PricingSection/PlanFeature.js +0 -88
  77. package/dist/PricingSection/PricingCard/PricingAmount.js +0 -84
  78. package/dist/PricingSection/PricingCard/RecommendedBadge.js +0 -24
  79. package/dist/PricingSection/PricingCard/consts.js +0 -85
  80. package/dist/PricingSection/PricingCard/index.js +0 -241
  81. package/dist/PricingSection/ProductCTA.js +0 -44
  82. package/dist/PricingSection/Products.js +0 -74
  83. package/dist/PricingSection/config.js +0 -36
  84. package/dist/PricingSection/index.js +0 -58
  85. package/dist/PricingSection/types.js +0 -8
  86. package/dist/ProLabel/index.js +0 -59
  87. package/dist/ProLogo/index.js +0 -27
  88. package/dist/ProLogoAlt/index.js +0 -26
  89. package/dist/ProductFeatureShowcase/index.js +0 -120
  90. package/dist/QuizScore/index.js +0 -84
  91. package/dist/RatingsBar/index.js +0 -32
  92. package/dist/ResourceCard/index.js +0 -59
  93. package/dist/ScoreSummary/SubScores.js +0 -165
  94. package/dist/ScoreSummary/helpers.js +0 -20
  95. package/dist/ScoreSummary/index.js +0 -108
  96. package/dist/ScoreSummary/types.js +0 -1
  97. package/dist/SkillPathCard/index.js +0 -38
  98. package/dist/SocialMediaSharing/SocialShareIconLink.js +0 -49
  99. package/dist/SocialMediaSharing/index.js +0 -116
  100. package/dist/SocialMediaSharingDropdown/index.js +0 -111
  101. package/dist/Testimonial/index.js +0 -163
  102. package/dist/index.js +0 -87
  103. package/dist/lib/breakpointHooks/index.js +0 -60
  104. package/dist/lib/catalogList/index.js +0 -173
  105. package/dist/lib/resourcesList/index.js +0 -241
  106. package/dist/remoteAssets/components.js +0 -1
  107. package/dist/stories/Atoms/Avatar.stories.js +0 -16
  108. package/dist/stories/Atoms/BetaSticker.stories.js +0 -22
  109. package/dist/stories/Atoms/Logos/Logo.stories.js +0 -78
  110. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +0 -15
  111. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +0 -11
  112. package/dist/stories/Atoms/Logos/ProLabel.stories.js +0 -16
  113. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +0 -24
  114. package/dist/stories/Atoms/RatingsBar.stories.js +0 -16
  115. package/dist/stories/Atoms/Subgrid.stories.js +0 -87
  116. package/dist/stories/Molecules/AppBar.stories.js +0 -32
  117. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +0 -84
  118. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +0 -67
  119. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +0 -52
  120. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +0 -44
  121. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +0 -34
  122. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +0 -40
  123. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +0 -25
  124. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +0 -176
  125. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +0 -84
  126. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +0 -90
  127. package/dist/stories/Molecules/AvatarChooser.stories.js +0 -22
  128. package/dist/stories/Molecules/BackToTopAnchor.stories.js +0 -51
  129. package/dist/stories/Molecules/Banner.stories.js +0 -115
  130. package/dist/stories/Molecules/Carousel.stories.js +0 -47
  131. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +0 -173
  132. package/dist/stories/Molecules/CurriculumCard.stories.js +0 -208
  133. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +0 -92
  134. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +0 -65
  135. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +0 -83
  136. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +0 -20
  137. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +0 -90
  138. package/dist/stories/Molecules/DropdownButton.stories.js +0 -207
  139. package/dist/stories/Molecules/EditorialImage.stories.js +0 -17
  140. package/dist/stories/Molecules/EmptySection.stories.js +0 -168
  141. package/dist/stories/Molecules/ErrorContents.stories.js +0 -19
  142. package/dist/stories/Molecules/GridCollapse.stories.js +0 -42
  143. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +0 -67
  144. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +0 -11
  145. package/dist/stories/Molecules/HubCard.stories.js +0 -28
  146. package/dist/stories/Molecules/InfoCard.stories.js +0 -30
  147. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +0 -59
  148. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +0 -20
  149. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +0 -10
  150. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +0 -39
  151. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +0 -276
  152. package/dist/stories/Molecules/ListSection.stories.js +0 -97
  153. package/dist/stories/Molecules/Loading.stories.js +0 -10
  154. package/dist/stories/Molecules/NotificationList.stories.js +0 -100
  155. package/dist/stories/Molecules/PageSection.stories.js +0 -67
  156. package/dist/stories/Molecules/PastDueModalContents.stories.js +0 -62
  157. package/dist/stories/Molecules/PausableImage.stories.js +0 -16
  158. package/dist/stories/Molecules/ResourceCard.stories.js +0 -18
  159. package/dist/stories/Molecules/SocialMediaSharing.stories.js +0 -20
  160. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +0 -20
  161. package/dist/stories/Molecules/Testimonial.stories.js +0 -63
  162. package/dist/stories/Organisms/GlobalFooter.stories.js +0 -29
  163. package/dist/stories/Organisms/GlobalHeader/About.stories.js +0 -136
  164. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +0 -73
  165. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +0 -32
  166. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +0 -108
  167. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +0 -133
  168. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +0 -199
  169. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +0 -31
  170. package/dist/stories/Organisms/GlobalPage.stories.js +0 -142
  171. package/dist/stories/Organisms/LayoutMenu.stories.js +0 -242
  172. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +0 -224
  173. package/dist/stories/Organisms/PageAlerts.example.js +0 -42
  174. package/dist/stories/Organisms/PageAlerts.stories.js +0 -15
  175. package/dist/stories/Organisms/PageFeatures.stories.js +0 -183
  176. package/dist/stories/Organisms/PageHero.stories.js +0 -145
  177. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +0 -34
  178. package/dist/stories/Organisms/PagePrefooter.stories.js +0 -62
  179. package/dist/stories/Organisms/PageSingleFeature.stories.js +0 -158
  180. package/dist/stories/Organisms/PageVideoGallery.stories.js +0 -70
  181. package/dist/stories/Organisms/PlanCard.stories.js +0 -98
  182. package/dist/stories/Organisms/PlanCardTeams.stories.js +0 -27
  183. package/dist/stories/Organisms/ScoreSummary.stories.js +0 -299
@@ -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
- };
@@ -1,108 +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 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
- };
@@ -1,133 +0,0 @@
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
- };