@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,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,23 +0,0 @@
1
- import { LearningOutcomeAssessmentScores } from '../../LearningOutcomeAssessmentScores';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: LearningOutcomeAssessmentScores,
5
- args: {}
6
- };
7
- export default meta;
8
- export const Example = () => {
9
- return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
10
- highestScore: 100,
11
- highestScoreAchievedAt: "10/01",
12
- latestScore: 50,
13
- latestScoreAchievedAt: "10/23"
14
- });
15
- };
16
- export const NoScores = () => {
17
- return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
18
- highestScore: null,
19
- highestScoreAchievedAt: null,
20
- latestScore: null,
21
- latestScoreAchievedAt: null
22
- });
23
- };
@@ -1,75 +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
- };
60
- export const EmphasizedCardWithAnimation = {
61
- render: args => /*#__PURE__*/_jsx(Background, {
62
- bg: "navy",
63
- p: 24,
64
- children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
65
- emphasized: true,
66
- progress: 80,
67
- progressUpdateData: {
68
- previousProgress: 50,
69
- progressDuration: 500
70
- },
71
- ...args
72
- })
73
- }),
74
- name: 'Emphasized card first displays 50% progress then animates until showing 80%, for use in the Learning Environment'
75
- };