@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,39 +0,0 @@
1
- import { Box, FillButton, FlexBox } from '@codecademy/gamut';
2
- import { useRef, useState } from 'react';
3
- import { LearningOutcomePopover } from '../../LearningOutcomePopover';
4
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
5
- const meta = {
6
- component: LearningOutcomePopover,
7
- args: {}
8
- };
9
- export default meta;
10
- export const Example = () => {
11
- const [open, setOpen] = useState(false);
12
- const activeElRef = useRef(null);
13
- const toggleOpen = () => setOpen(!open);
14
- return /*#__PURE__*/_jsxs(_Fragment, {
15
- children: [/*#__PURE__*/_jsx(Box, {
16
- ref: activeElRef,
17
- children: /*#__PURE__*/_jsx(FillButton, {
18
- onClick: toggleOpen,
19
- children: "Open Popover"
20
- })
21
- }), /*#__PURE__*/_jsx(FlexBox, {
22
- width: "100%",
23
- children: /*#__PURE__*/_jsx(LearningOutcomePopover, {
24
- id: "learning-outcome-popover",
25
- activeElRef: activeElRef,
26
- isOpen: open,
27
- learningOutcomeDetails: {
28
- id: '1',
29
- level: 2,
30
- outcome: 'Understand the basics of React',
31
- latestScore: 68,
32
- highestScore: 100,
33
- percentComplete: 75
34
- },
35
- horizontalOffset: 90
36
- })
37
- })]
38
- });
39
- };
@@ -1,276 +0,0 @@
1
- import { FlexBox } from '@codecademy/gamut';
2
- import { Background } from '@codecademy/gamut-styles';
3
- import { LearningOutcomeTile } from '../../LearningOutcomeTile';
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- const meta = {
6
- component: LearningOutcomeTile,
7
- args: {
8
- learningOutcomeDetails: {
9
- id: '1',
10
- percentComplete: 0,
11
- level: 2,
12
- outcome: 'Apply programming fundamentals'
13
- },
14
- size: 'normal'
15
- }
16
- };
17
- export default meta;
18
- export const Default = {
19
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
20
- gap: 16,
21
- children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
22
- ...args,
23
- popover: false,
24
- hover: true
25
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
26
- ...args,
27
- learningOutcomeDetails: {
28
- id: '2',
29
- level: 2,
30
- outcome: 'Apply programming fundamentals',
31
- percentComplete: 50
32
- },
33
- popover: false,
34
- hover: true
35
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
36
- ...args,
37
- learningOutcomeDetails: {
38
- id: '3',
39
- level: 3,
40
- outcome: 'Apply programming fundamentals',
41
- percentComplete: 100
42
- },
43
- popover: false,
44
- hover: true
45
- })]
46
- }),
47
- name: 'Learning Outcome Tile - Default'
48
- };
49
- export const WithLowAssessments = {
50
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
51
- gap: 16,
52
- children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
53
- ...args,
54
- learningOutcomeDetails: {
55
- id: '1',
56
- level: 2,
57
- outcome: 'Apply programming fundamentals',
58
- percentComplete: 0,
59
- latestScore: 50
60
- },
61
- popover: false,
62
- hover: true
63
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
64
- ...args,
65
- learningOutcomeDetails: {
66
- id: '2',
67
- level: 2,
68
- outcome: 'Apply programming fundamentals',
69
- percentComplete: 50,
70
- latestScore: 50
71
- },
72
- popover: false,
73
- hover: true
74
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
75
- ...args,
76
- learningOutcomeDetails: {
77
- id: '3',
78
- level: 2,
79
- outcome: 'Apply programming fundamentals',
80
- percentComplete: 100,
81
- latestScore: 50
82
- },
83
- popover: false,
84
- hover: true
85
- })]
86
- }),
87
- name: 'Learning Outcome Tile - with Low Assessment Indicator'
88
- };
89
- export const WithPopover = {
90
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
91
- gap: 16,
92
- children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
93
- ...args,
94
- learningOutcomeDetails: {
95
- id: '1',
96
- level: 1,
97
- outcome: 'Understand the basics of programming',
98
- percentComplete: 0
99
- },
100
- hover: true,
101
- popover: true
102
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
103
- ...args,
104
- learningOutcomeDetails: {
105
- id: '2',
106
- level: 2,
107
- outcome: 'Apply programming fundamentals',
108
- percentComplete: 50,
109
- highestScore: 65,
110
- latestScore: 50
111
- },
112
- hover: true,
113
- popover: true
114
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
115
- ...args,
116
- learningOutcomeDetails: {
117
- id: '3',
118
- level: 3,
119
- outcome: 'Master advanced programming concepts',
120
- percentComplete: 100,
121
- highestScore: 70,
122
- latestScore: 70
123
- },
124
- hover: true,
125
- popover: true
126
- })]
127
- }),
128
- name: 'Learning Outcome Tile - with Popover'
129
- };
130
- export const Small = {
131
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
132
- gap: 16,
133
- children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
134
- ...args,
135
- size: "small",
136
- popover: false,
137
- hover: true
138
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
139
- ...args,
140
- size: "small",
141
- learningOutcomeDetails: {
142
- id: '2',
143
- level: 2,
144
- outcome: 'Apply programming fundamentals',
145
- percentComplete: 50
146
- },
147
- popover: false,
148
- hover: true
149
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
150
- ...args,
151
- size: "small",
152
- learningOutcomeDetails: {
153
- id: '3',
154
- level: 2,
155
- outcome: 'Apply programming fundamentals',
156
- percentComplete: 100
157
- },
158
- popover: false,
159
- hover: true
160
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
161
- ...args,
162
- size: "small",
163
- learningOutcomeDetails: {
164
- id: '2',
165
- percentComplete: 0,
166
- outcome: 'Apply programming fundamentals',
167
- level: 2
168
- },
169
- hover: true,
170
- popover: true
171
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
172
- ...args,
173
- size: "small",
174
- learningOutcomeDetails: {
175
- id: '2',
176
- percentComplete: 50,
177
- outcome: 'Apply programming fundamentals',
178
- level: 2
179
- },
180
- hover: true,
181
- popover: true
182
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
183
- ...args,
184
- size: "small",
185
- learningOutcomeDetails: {
186
- id: '3',
187
- percentComplete: 100,
188
- outcome: 'Apply programming fundamentals',
189
- level: 2
190
- },
191
- hover: true,
192
- popover: true
193
- })]
194
- }),
195
- name: 'Learning Outcome Tile - Small'
196
- };
197
- export const DarkMode = {
198
- render: args => /*#__PURE__*/_jsx(Background, {
199
- bg: "navy",
200
- p: 24,
201
- children: /*#__PURE__*/_jsxs(FlexBox, {
202
- gap: 16,
203
- children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
204
- ...args,
205
- learningOutcomeDetails: {
206
- id: '1',
207
- level: 2,
208
- outcome: 'Apply programming fundamentals',
209
- percentComplete: 0,
210
- latestScore: 50
211
- },
212
- popover: false,
213
- hover: true
214
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
215
- ...args,
216
- learningOutcomeDetails: {
217
- id: '2',
218
- level: 2,
219
- outcome: 'Apply programming fundamentals',
220
- percentComplete: 50,
221
- latestScore: 50
222
- },
223
- popover: false,
224
- hover: true
225
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
226
- ...args,
227
- learningOutcomeDetails: {
228
- id: '3',
229
- level: 2,
230
- outcome: 'Apply programming fundamentals',
231
- percentComplete: 100,
232
- latestScore: 50
233
- },
234
- popover: false,
235
- hover: true
236
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
237
- ...args,
238
- learningOutcomeDetails: {
239
- id: '4',
240
- level: 2,
241
- outcome: 'Apply programming fundamentals',
242
- percentComplete: 0,
243
- latestScore: 50
244
- },
245
- size: "small",
246
- popover: false,
247
- hover: true
248
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
249
- ...args,
250
- learningOutcomeDetails: {
251
- id: '5',
252
- level: 2,
253
- outcome: 'Apply programming fundamentals',
254
- percentComplete: 50,
255
- latestScore: 50
256
- },
257
- size: "small",
258
- popover: false,
259
- hover: true
260
- }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
261
- ...args,
262
- learningOutcomeDetails: {
263
- id: '6',
264
- level: 2,
265
- outcome: 'Apply programming fundamentals',
266
- percentComplete: 100,
267
- latestScore: 50
268
- },
269
- size: "small",
270
- popover: false,
271
- hover: true
272
- })]
273
- })
274
- }),
275
- name: 'Learning Outcome Tile - Dark Mode'
276
- };
@@ -1,97 +0,0 @@
1
- import { Card, FillButton, IconButton, Text } from '@codecademy/gamut';
2
- import { SearchIcon } from '@codecademy/gamut-icons';
3
- import { ListSection } from '../../index';
4
- import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
- const listItems = [{
6
- title: '1'
7
- }, {
8
- title: '2'
9
- }, {
10
- title: '3'
11
- }, {
12
- title: '4'
13
- }];
14
- const meta = {
15
- component: ListSection,
16
- args: {
17
- title: 'List Section Title'
18
- }
19
- };
20
- export default meta;
21
- export const Default = {
22
- render: args => /*#__PURE__*/_jsxs(_Fragment, {
23
- children: [/*#__PURE__*/_jsx(ListSection, {
24
- ...args,
25
- title: "List Section 1",
26
- children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
27
- children: ["List Item", item.title]
28
- }))
29
- }), /*#__PURE__*/_jsx(ListSection, {
30
- ...args,
31
- title: "List Section 2",
32
- initialDisplayAmount: 2,
33
- children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
34
- children: ["List Item", item.title]
35
- }))
36
- }), /*#__PURE__*/_jsxs(ListSection, {
37
- ...args,
38
- title: "List Section 3",
39
- initialDisplayAmount: 2,
40
- children: [/*#__PURE__*/_jsx(Card, {
41
- children: "List Item 1"
42
- }), /*#__PURE__*/_jsx(Card, {
43
- children: "List Item 2"
44
- })]
45
- })]
46
- }),
47
- name: 'ListSection'
48
- };
49
- export const ListSectionWithEmptyState = {
50
- render: args => /*#__PURE__*/_jsx(_Fragment, {
51
- children: /*#__PURE__*/_jsx(ListSection, {
52
- ...args,
53
- title: "List Section 1",
54
- children: /*#__PURE__*/_jsx(Text, {
55
- children: "I am an Empty State."
56
- })
57
- })
58
- }),
59
- name: 'ListSection with Empty State'
60
- };
61
- export const ListSectionWithHeaderAndSecondaryHeaderButtons = {
62
- render: args => /*#__PURE__*/_jsx(ListSection, {
63
- ...args,
64
- title: "List Section 1",
65
- headerButton: {
66
- text: 'Edit',
67
- href: '',
68
- onClick: () => {}
69
- },
70
- headerSecondaryButton: {
71
- text: 'Share',
72
- href: '',
73
- onClick: () => {}
74
- },
75
- children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
76
- children: ["List Item", item.title]
77
- }))
78
- }),
79
- name: 'ListSection with Header and SecondaryHeader Buttons'
80
- };
81
- export const ListSectionWithCustomHeaderAndSecondaryHeaderButtons = {
82
- render: args => /*#__PURE__*/_jsx(ListSection, {
83
- ...args,
84
- title: "List Section 1",
85
- headerButton: /*#__PURE__*/_jsx(IconButton, {
86
- icon: SearchIcon,
87
- tip: "Search"
88
- }),
89
- headerSecondaryButton: /*#__PURE__*/_jsx(FillButton, {
90
- children: "Share"
91
- }),
92
- children: listItems.map(item => /*#__PURE__*/_jsxs(Card, {
93
- children: ["List Item", item.title]
94
- }))
95
- }),
96
- name: 'ListSection with custom Header and SecondaryHeader Buttons'
97
- };
@@ -1,10 +0,0 @@
1
- import { Loading } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: Loading
5
- };
6
- export default meta;
7
- export const Default = {
8
- render: () => /*#__PURE__*/_jsx(Loading, {}),
9
- name: 'Loading'
10
- };
@@ -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
- };