@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,207 +0,0 @@
1
- import { Box, FlexBox } from '@codecademy/gamut';
2
- import { SparkleIcon } from '@codecademy/gamut-icons';
3
- import { DropdownButton } from '../../index';
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- const items = [{
6
- id: 'one',
7
- text: 'I have an href',
8
- href: '#'
9
- }, {
10
- id: 'two',
11
- text: 'I have an onClick',
12
- // eslint-disable-next-line no-console
13
- clickHandler: () => console.log('hi')
14
- }];
15
- const extraItems = [{
16
- id: 'three',
17
- text: 'I have an href & onClick',
18
- href: '#',
19
- // eslint-disable-next-line no-console
20
- clickHandler: () => console.log('hi')
21
- }, 'separator', {
22
- id: 'four',
23
- text: 'I have an href & onClick & icon',
24
- href: '#',
25
- // eslint-disable-next-line no-console
26
- clickHandler: () => console.log('hi'),
27
- icon: SparkleIcon
28
- }];
29
- const meta = {
30
- component: DropdownButton,
31
- args: {
32
- buttonType: 'fill',
33
- dropdownItems: items,
34
- variant: 'primary'
35
- },
36
- parameters: {
37
- controls: {
38
- include: ['align', 'buttonType', 'children', 'dropDownItems', 'horizontalOffset', 'iconSize', 'isMenu', 'onClick', 'size', 'tipProps', 'variant', 'verticalOffset']
39
- }
40
- }
41
- };
42
- export default meta;
43
- export const Default = {
44
- args: {
45
- dropdownItems: [...items, ...extraItems],
46
- isMenu: false
47
- },
48
- render: args => /*#__PURE__*/_jsx(DropdownButton, {
49
- ...args,
50
- children: "click me"
51
- }),
52
- name: 'DropdownButton'
53
- };
54
- export const DropdownButtonTypes = {
55
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
56
- justifyContent: "space-between",
57
- p: 40,
58
- children: [/*#__PURE__*/_jsx(Box, {
59
- width: "fit-content",
60
- children: /*#__PURE__*/_jsx(DropdownButton, {
61
- ...args,
62
- buttonType: "fill",
63
- children: "Fill"
64
- })
65
- }), /*#__PURE__*/_jsx(Box, {
66
- width: "fit-content",
67
- children: /*#__PURE__*/_jsx(DropdownButton, {
68
- ...args,
69
- buttonType: "stroke",
70
- children: "Stroke"
71
- })
72
- }), /*#__PURE__*/_jsx(Box, {
73
- width: "fit-content",
74
- children: /*#__PURE__*/_jsx(DropdownButton, {
75
- ...args,
76
- buttonType: "text",
77
- children: "Text"
78
- })
79
- }), /*#__PURE__*/_jsx(Box, {
80
- width: "fit-content",
81
- children: /*#__PURE__*/_jsx(DropdownButton, {
82
- ...args,
83
- buttonType: "kebab"
84
- })
85
- }), /*#__PURE__*/_jsx(Box, {
86
- width: "fit-content",
87
- children: /*#__PURE__*/_jsx(DropdownButton, {
88
- ...args,
89
- buttonType: "horizontalKebab"
90
- })
91
- })]
92
- })
93
- };
94
- export const DropdownButtonVariants = {
95
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
96
- justifyContent: "space-around",
97
- children: [/*#__PURE__*/_jsx(Box, {
98
- width: "fit-content",
99
- children: /*#__PURE__*/_jsx(DropdownButton, {
100
- ...args,
101
- buttonType: "stroke",
102
- children: "Stroke primary"
103
- })
104
- }), /*#__PURE__*/_jsx(Box, {
105
- width: "fit-content",
106
- children: /*#__PURE__*/_jsx(DropdownButton, {
107
- ...args,
108
- buttonType: "stroke",
109
- variant: "secondary",
110
- children: "Stroke secondary"
111
- })
112
- })]
113
- })
114
- };
115
- export const DropdownTextButtonSizes = {
116
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
117
- justifyContent: "space-around",
118
- children: [/*#__PURE__*/_jsx(Box, {
119
- alignSelf: "center",
120
- width: "fit-content",
121
- children: /*#__PURE__*/_jsx(DropdownButton, {
122
- ...args,
123
- buttonType: "fill",
124
- size: "small",
125
- children: "Fill small"
126
- })
127
- }), /*#__PURE__*/_jsx(Box, {
128
- alignSelf: "center",
129
- width: "fit-content",
130
- children: /*#__PURE__*/_jsx(DropdownButton, {
131
- ...args,
132
- buttonType: "fill",
133
- size: "normal",
134
- children: "Fill normal"
135
- })
136
- }), /*#__PURE__*/_jsx(Box, {
137
- alignSelf: "center",
138
- width: "fit-content",
139
- children: /*#__PURE__*/_jsx(DropdownButton, {
140
- ...args,
141
- buttonType: "fill",
142
- size: "large",
143
- children: "Fill large"
144
- })
145
- })]
146
- })
147
- };
148
- export const DropdownIconButtonSizes = {
149
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
150
- row: true,
151
- justifyContent: "space-around",
152
- mt: 16,
153
- children: [/*#__PURE__*/_jsx(Box, {
154
- alignSelf: "center",
155
- width: "fit-content",
156
- children: /*#__PURE__*/_jsx(DropdownButton, {
157
- ...args,
158
- buttonType: "kebab",
159
- size: "small",
160
- iconSize: 12
161
- })
162
- }), /*#__PURE__*/_jsx(Box, {
163
- alignSelf: "center",
164
- width: "fit-content",
165
- children: /*#__PURE__*/_jsx(DropdownButton, {
166
- ...args,
167
- buttonType: "kebab",
168
- size: "normal"
169
- })
170
- }), /*#__PURE__*/_jsx(Box, {
171
- alignSelf: "center",
172
- width: "fit-content",
173
- children: /*#__PURE__*/_jsx(DropdownButton, {
174
- ...args,
175
- buttonType: "kebab",
176
- size: "large",
177
- iconSize: 20
178
- })
179
- })]
180
- })
181
- };
182
- export const DropdownPopoverAlignment = {
183
- render: args => /*#__PURE__*/_jsxs(FlexBox, {
184
- row: true,
185
- justifyContent: "space-around",
186
- mt: 16,
187
- children: [/*#__PURE__*/_jsx(Box, {
188
- width: "fit-content",
189
- children: /*#__PURE__*/_jsx(DropdownButton, {
190
- ...args,
191
- buttonType: "text",
192
- size: "small",
193
- align: "left",
194
- children: "Align left"
195
- })
196
- }), /*#__PURE__*/_jsx(Box, {
197
- width: "fit-content",
198
- children: /*#__PURE__*/_jsx(DropdownButton, {
199
- ...args,
200
- buttonType: "text",
201
- size: "small",
202
- align: "right",
203
- children: "Align right"
204
- })
205
- })]
206
- })
207
- };
@@ -1,17 +0,0 @@
1
- import { EditorialImage } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: EditorialImage,
5
- args: {
6
- image: 'https://images.ctfassets.net/go6kr6r0ykrq/4NI4czS6Y3DeaBBlVAoPTL/5a95deb01518e0cbb27bac8c6e00eaf6/broadway_2_70.jpg',
7
- alt: 'A picture of two Codecademy employees.',
8
- caption: 'You can remove this caption.'
9
- }
10
- };
11
- export default meta;
12
- export const Default = {
13
- render: args => /*#__PURE__*/_jsx(EditorialImage, {
14
- ...args
15
- }),
16
- name: 'EditorialImage'
17
- };
@@ -1,168 +0,0 @@
1
- import { Column, FillButton, LayoutGrid, Text } from '@codecademy/gamut';
2
- import { NumberBlocks } from '@codecademy/gamut-illustrations';
3
- import { DropdownButton, EmptySection } from '../../index';
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- const meta = {
6
- component: EmptySection,
7
- args: {
8
- bodyText: 'Body text',
9
- headingText: 'Heading text',
10
- illustration: NumberBlocks
11
- }
12
- };
13
- export default meta;
14
- export const IllustrationOnTheRight = {
15
- render: args => /*#__PURE__*/_jsx(EmptySection, {
16
- ...args,
17
- children: /*#__PURE__*/_jsx(FillButton, {
18
- children: "Do Something"
19
- })
20
- }),
21
- name: 'Illustration on the right'
22
- };
23
- export const IllustrationOnTheLeft = {
24
- render: args => /*#__PURE__*/_jsx(EmptySection, {
25
- ...args,
26
- children: /*#__PURE__*/_jsx(FillButton, {
27
- children: "Do Something"
28
- })
29
- }),
30
- name: 'Illustration on the left',
31
- args: {
32
- illustrationPosition: 'left'
33
- }
34
- };
35
- export const DotsStretchToTheLeft = {
36
- render: args => /*#__PURE__*/_jsx(EmptySection, {
37
- ...args,
38
- children: /*#__PURE__*/_jsx(FillButton, {
39
- children: "Do Something"
40
- })
41
- }),
42
- name: 'Dots stretch to the left'
43
- };
44
- export const DotsStretchToTheRight = {
45
- render: args => /*#__PURE__*/_jsx(EmptySection, {
46
- ...args,
47
- children: /*#__PURE__*/_jsx(FillButton, {
48
- children: "Do Something"
49
- })
50
- }),
51
- name: 'Dots stretch to the right',
52
- args: {
53
- stretchDirection: 'right'
54
- }
55
- };
56
- export const UsingADropdownButton = {
57
- render: args => /*#__PURE__*/_jsx(EmptySection, {
58
- ...args,
59
- children: /*#__PURE__*/_jsx(DropdownButton, {
60
- dropdownItems: [{
61
- id: '1',
62
- text: 'Option 1'
63
- }, {
64
- id: '2',
65
- text: 'Option 2'
66
- }, {
67
- id: '3',
68
- text: 'Option 3'
69
- }],
70
- children: "Click me!"
71
- })
72
- }),
73
- name: 'Using a dropdown button',
74
- args: {
75
- stretchDirection: 'left'
76
- }
77
- };
78
- export const AnotherSectionOnTheLeft = {
79
- render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
80
- gap: 16,
81
- children: [/*#__PURE__*/_jsx(Column, {
82
- size: {
83
- _: 12,
84
- sm: 4,
85
- md: 3
86
- },
87
- children: /*#__PURE__*/_jsx(Text, {
88
- children: `<other section>`
89
- })
90
- }), /*#__PURE__*/_jsx(Column, {
91
- size: {
92
- _: 12,
93
- sm: 8,
94
- md: 9
95
- },
96
- children: /*#__PURE__*/_jsx(EmptySection, {
97
- ...args,
98
- children: /*#__PURE__*/_jsx(DropdownButton, {
99
- dropdownItems: [{
100
- id: '1',
101
- text: 'Option 1'
102
- }, {
103
- id: '2',
104
- text: 'Option 2'
105
- }, {
106
- id: '3',
107
- text: 'Option 3'
108
- }],
109
- children: "Click me!"
110
- })
111
- })
112
- })]
113
- }),
114
- name: 'Another section on the left',
115
- args: {
116
- stretchDirection: 'right'
117
- }
118
- };
119
- export const AnotherSectionOnTheRight = {
120
- render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
121
- gap: 16,
122
- children: [/*#__PURE__*/_jsxs(Column, {
123
- size: {
124
- _: 12,
125
- sm: 8,
126
- md: 9
127
- },
128
- children: [/*#__PURE__*/_jsx(EmptySection, {
129
- ...args,
130
- children: /*#__PURE__*/_jsx(DropdownButton, {
131
- dropdownItems: [{
132
- id: '1',
133
- text: 'Option 1'
134
- }, {
135
- id: '2',
136
- text: 'Option 2'
137
- }, {
138
- id: '3',
139
- text: 'Option 3'
140
- }],
141
- children: "Click me!"
142
- })
143
- }), ' ']
144
- }), /*#__PURE__*/_jsx(Column, {
145
- size: {
146
- _: 12,
147
- sm: 4,
148
- md: 3
149
- },
150
- children: /*#__PURE__*/_jsx(Text, {
151
- children: `<other section>`
152
- })
153
- })]
154
- }),
155
- name: 'Another section on the right',
156
- args: {
157
- stretchDirection: 'left'
158
- }
159
- };
160
- export const Playground = {
161
- render: args => /*#__PURE__*/_jsx(EmptySection, {
162
- ...args,
163
- children: /*#__PURE__*/_jsx(FillButton, {
164
- children: "Do Something"
165
- })
166
- }),
167
- name: 'Playground'
168
- };
@@ -1,19 +0,0 @@
1
- import { ErrorContents } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: ErrorContents
5
- };
6
- export default meta;
7
- export const Default = {
8
- render: args => /*#__PURE__*/_jsx(ErrorContents, {
9
- ...args
10
- }),
11
- name: 'ErrorContents'
12
- };
13
- export const SupportInformation = {
14
- render: args => /*#__PURE__*/_jsx(ErrorContents, {
15
- ...args,
16
- supportInformation: [['User ID', 'abc123'], ['Timestamp', '123456789']]
17
- }),
18
- name: 'SupportInformation'
19
- };
@@ -1,42 +0,0 @@
1
- import { FlexBox } from '@codecademy/gamut';
2
- import { GridCollapse } from '../../index';
3
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: GridCollapse,
6
- args: {
7
- as: 'ol',
8
- columnCount: {
9
- _: 3
10
- },
11
- initialMaxShown: {
12
- _: 6
13
- },
14
- pageSize: {
15
- _: 6
16
- },
17
- onExpandClick: () => {},
18
- expandLabel: 'Show more',
19
- collapseLabel: 'Show fewer',
20
- gap: 8
21
- }
22
- };
23
- export default meta;
24
- const Item = ({
25
- number
26
- }) => /*#__PURE__*/_jsxs(FlexBox, {
27
- as: "li",
28
- p: 8,
29
- background: "#eee",
30
- borderRadius: "md",
31
- center: true,
32
- children: ["Item ", number + 1]
33
- });
34
- export const Default = {
35
- render: args => /*#__PURE__*/_jsx(GridCollapse, {
36
- ...args,
37
- children: [...Array(20)].map((_, i) => /*#__PURE__*/_jsx(Item, {
38
- number: i
39
- }))
40
- }),
41
- name: 'GridCollapse'
42
- };
@@ -1,67 +0,0 @@
1
- import { Box, ContentContainer } from '@codecademy/gamut';
2
- import { ContainerDifficulty, CurriculumCard, HorizontalScrollMenu } from '../../index';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const courseData = [{
5
- id: 'a',
6
- title: 'JavaScript',
7
- difficulty: ContainerDifficulty.Beginner,
8
- scope: {
9
- Lesson: 24
10
- },
11
- text: 'course'
12
- }, {
13
- id: 'b',
14
- title: 'Python',
15
- difficulty: ContainerDifficulty.Beginner,
16
- scope: {
17
- Lesson: 32
18
- },
19
- text: 'course'
20
- }, {
21
- id: 'c',
22
- title: 'Go',
23
- difficulty: ContainerDifficulty.Beginner,
24
- scope: {
25
- Lesson: 5
26
- },
27
- text: 'course'
28
- }, {
29
- id: 'd',
30
- title: 'React',
31
- difficulty: ContainerDifficulty.Beginner,
32
- scope: {
33
- Lesson: 18
34
- },
35
- text: 'course'
36
- }, {
37
- id: 'e',
38
- title: 'Intro to Django',
39
- difficulty: ContainerDifficulty.Beginner,
40
- scope: {
41
- Lesson: 29
42
- },
43
- text: 'course'
44
- }, {
45
- id: 'f',
46
- title: 'PHP',
47
- difficulty: ContainerDifficulty.Beginner,
48
- scope: {
49
- Lesson: 52
50
- },
51
- text: 'course'
52
- }];
53
- export const HorizontalScrollMenuExample = () => {
54
- return /*#__PURE__*/_jsx(ContentContainer, {
55
- my: 32,
56
- children: /*#__PURE__*/_jsx(HorizontalScrollMenu, {
57
- children: courseData.map(props => /*#__PURE__*/_jsx(Box, {
58
- minWidth: 400,
59
- maxWidth: 400,
60
- mx: 16,
61
- children: /*#__PURE__*/_jsx(CurriculumCard, {
62
- ...props
63
- })
64
- }, props.id))
65
- })
66
- });
67
- };
@@ -1,11 +0,0 @@
1
- import { HorizontalScrollMenu } from '../../index';
2
- import { HorizontalScrollMenuExample } from './HorizontalScrollMenu.examples';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: HorizontalScrollMenu
6
- };
7
- export default meta;
8
- export const Default = {
9
- render: () => /*#__PURE__*/_jsx(HorizontalScrollMenuExample, {}),
10
- name: 'Horizontal Scroll Menu'
11
- };
@@ -1,28 +0,0 @@
1
- import { HubCard } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: HubCard,
5
- args: {
6
- title: 'Subject Title',
7
- eyebrowTitle: 'Card Eyebrow',
8
- backgroundPosition: 'left',
9
- backgroundImage: 'https://static-assets.codecademy.com/assets/components/cards/explore-category-card/language/javascript.svg'
10
- }
11
- };
12
- export default meta;
13
- export const Default = {
14
- render: args => /*#__PURE__*/_jsx(HubCard, {
15
- ...args
16
- }),
17
- name: 'HubCard'
18
- };
19
- export const BackgroundRight = {
20
- render: args => /*#__PURE__*/_jsx(HubCard, {
21
- ...args
22
- }),
23
- name: 'Background Right',
24
- args: {
25
- backgroundImage: 'https://static-assets.codecademy.com/assets/components/cards/explore-category-card/subject/data-science.svg',
26
- backgroundPosition: 'right'
27
- }
28
- };
@@ -1,30 +0,0 @@
1
- import { InfoCard } from '../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: InfoCard,
5
- args: {
6
- topText: 'Portfolio Project ',
7
- title: 'Portfolio Website',
8
- subtitle: 'This is a portfolio project.',
9
- body: "In this project, you'll use knowledge of Express.js to build a small JSON API to serve up famous and interesting quotes about computers, technology, and programming.",
10
- href: 'https://www.codecademy.com/learn'
11
- }
12
- };
13
- export default meta;
14
- export const Default = {
15
- render: args => /*#__PURE__*/_jsx(InfoCard, {
16
- ...args
17
- }),
18
- name: 'Info Card'
19
- };
20
- export const InfoCardWithBottomTags = {
21
- render: args => /*#__PURE__*/_jsx(InfoCard, {
22
- ...args
23
- }),
24
- name: 'Info Card with bottom tags',
25
- args: {
26
- bottomLeftText: 'Independent, 5hrs',
27
- bottomRightTagText: 'Portfolio Ready',
28
- bottomRightTagColor: 'pink'
29
- }
30
- };
@@ -1,59 +0,0 @@
1
- import { Background } from '@codecademy/gamut-styles';
2
- import { LearningOutcomeCard } from '../../LearningOutcomeCard';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: LearningOutcomeCard,
6
- args: {
7
- level: 1,
8
- outcome: 'Implement sorting algorithms in Java.',
9
- skills: [{
10
- title: 'java'
11
- }, {
12
- title: 'skill'
13
- }, {
14
- title: 'computer science'
15
- }]
16
- }
17
- };
18
- export default meta;
19
- export const Default = {
20
- render: args => /*#__PURE__*/_jsx(LearningOutcomeCard, {
21
- ...args
22
- }),
23
- name: 'Learning Outcome Simple Card'
24
- };
25
- export const EmphasizedCard = {
26
- render: args => /*#__PURE__*/_jsx(Background, {
27
- bg: "navy",
28
- p: 24,
29
- children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
30
- emphasized: true,
31
- ...args
32
- })
33
- }),
34
- name: 'Emphasized Card'
35
- };
36
- export const EmphasizedCardWithProgress = {
37
- render: args => /*#__PURE__*/_jsx(Background, {
38
- bg: "navy",
39
- p: 24,
40
- children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
41
- emphasized: true,
42
- progress: 60,
43
- ...args
44
- })
45
- }),
46
- name: 'Emphasized card displaying progress, for use in the Learning Environment'
47
- };
48
- export const EmphasizedCardWithProgress100 = {
49
- render: args => /*#__PURE__*/_jsx(Background, {
50
- bg: "navy",
51
- p: 24,
52
- children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
53
- emphasized: true,
54
- progress: 100,
55
- ...args
56
- })
57
- }),
58
- name: 'Emphasized card displaying 100% progress, for use in the Learning Environment'
59
- };
@@ -1,20 +0,0 @@
1
- import { FlexBox } from '@codecademy/gamut';
2
- import { LearningOutcomeLevelBadge } from '../../LearningOutcomeBadges';
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- const meta = {
5
- component: LearningOutcomeLevelBadge
6
- };
7
- export default meta;
8
- export const AllLevels = {
9
- render: () => /*#__PURE__*/_jsxs(FlexBox, {
10
- gap: 16,
11
- children: [/*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
12
- level: 1
13
- }), /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
14
- level: 2
15
- }), /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
16
- level: 3
17
- })]
18
- }),
19
- name: 'Learning Outcome Level Badge - All Levels'
20
- };
@@ -1,10 +0,0 @@
1
- import { LearningOutcomeLowAssessmentBadge } from '../../LearningOutcomeBadges';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: LearningOutcomeLowAssessmentBadge
5
- };
6
- export default meta;
7
- export const Default = {
8
- render: () => /*#__PURE__*/_jsx(LearningOutcomeLowAssessmentBadge, {}),
9
- name: 'Learning Outcome Low Assessment Badge - Default'
10
- };