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