@codecademy/brand 2.0.0-alpha.a3eb12cdcb.0 → 2.0.0-alpha.a67c1b58ff.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 +8 -7
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +4 -2
  3. package/dist/AppHeader/index.js +5 -2
  4. package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +7 -5
  5. package/dist/FeatureList/index.js +4 -5
  6. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +9 -6
  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 +25 -17
  10. package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
  11. package/dist/GlobalHeader/index.js +49 -41
  12. package/dist/LandingPage/PageFeaturesEnhanced.js +0 -3
  13. package/dist/LearningOutcomeCard/index.js +143 -0
  14. package/dist/LearningOutcomePopover/index.js +125 -0
  15. package/dist/LearningOutcomeTile/Tile.js +79 -0
  16. package/dist/LearningOutcomeTile/index.js +116 -0
  17. package/dist/LearningOutcomeTile/types.js +11 -0
  18. package/dist/ListSection/index.js +64 -0
  19. package/dist/Loading/index.js +82 -0
  20. package/dist/LoadingCurriculumCard/index.js +82 -0
  21. package/dist/Logo/CodecademyLogo.js +19 -0
  22. package/dist/Logo/CodecademyPremiumLogo.js +35 -0
  23. package/dist/Logo/CodecademyProAltLogo.js +19 -0
  24. package/dist/Logo/CodecademyProLockupLogo.js +13 -0
  25. package/dist/Logo/CodecademyProLogo.js +21 -0
  26. package/dist/Logo/CodecademyProMonoLogo.js +22 -0
  27. package/dist/Logo/CodecademyProgramLogo.js +14 -0
  28. package/dist/Logo/CodecademyTeamsLogo.js +41 -0
  29. package/dist/Logo/index.js +30 -0
  30. package/dist/LogoFromSkillsoft/index.js +55 -0
  31. package/dist/LogoLXStudio/index.js +47 -0
  32. package/dist/LogoProCutout/index.js +31 -0
  33. package/dist/LogoProCutoutTransparent/index.js +31 -0
  34. package/dist/MarketingToaster/index.js +67 -0
  35. package/dist/NotFoundContent/index.js +55 -0
  36. package/dist/NotificationList/EmptyNotification/emptyNotificationContents.js +23 -0
  37. package/dist/NotificationList/EmptyNotification/index.js +38 -0
  38. package/dist/NotificationList/NotificationItem.js +151 -0
  39. package/dist/NotificationList/index.js +46 -0
  40. package/dist/NotificationList/typings.js +1 -0
  41. package/dist/Notifications/NotificationBell.js +72 -0
  42. package/dist/Notifications/NotificationsContents.js +85 -0
  43. package/dist/Notifications/NotificationsDropdown.js +25 -0
  44. package/dist/Notifications/__fixtures__/NotificationTestComponent.js +12 -0
  45. package/dist/Notifications/__fixtures__/stubs.js +8 -0
  46. package/dist/Notifications/constants.js +4 -0
  47. package/dist/Notifications/elements.js +21 -0
  48. package/dist/Notifications/types.js +1 -0
  49. package/dist/Notifications/useHeaderNotifications.js +37 -0
  50. package/dist/Notifications/useNotificationButtons.js +56 -0
  51. package/dist/PageAlerts/PageAlerts.js +75 -0
  52. package/dist/PageAlerts/PageAlertsProvider.js +34 -0
  53. package/dist/PageAlerts/index.js +3 -0
  54. package/dist/PageAlerts/types.js +1 -0
  55. package/dist/PageLayoutWithSidebarMenu/PageLayoutWithSidebarMenu.js +53 -0
  56. package/dist/PageLayoutWithSidebarMenu/index.js +1 -0
  57. package/dist/PageSection/index.js +67 -0
  58. package/dist/PastDue/PastDueModalContents/index.js +30 -0
  59. package/dist/PastDue/index.js +2 -0
  60. package/dist/PastDue/pastDueMessages.js +48 -0
  61. package/dist/PausableImage/BaseImage/index.js +54 -0
  62. package/dist/PausableImage/index.js +37 -0
  63. package/dist/PlanCard/PlanCardBanner.js +28 -0
  64. package/dist/PlanCard/PlanFeature.js +83 -0
  65. package/dist/PlanCard/PopularBadge.js +13 -0
  66. package/dist/PlanCard/PricingAmount.js +117 -0
  67. package/dist/PlanCard/RecommendedBadge.js +24 -0
  68. package/dist/PlanCard/consts.js +135 -0
  69. package/dist/PlanCard/index.js +323 -0
  70. package/dist/PlanCard/types.js +62 -0
  71. package/dist/PlanCardTeams/consts.js +8 -0
  72. package/dist/PlanCardTeams/index.js +167 -0
  73. package/dist/PricingSection/PlanFeature.js +88 -0
  74. package/dist/PricingSection/PricingCard/PricingAmount.js +84 -0
  75. package/dist/PricingSection/PricingCard/RecommendedBadge.js +24 -0
  76. package/dist/PricingSection/PricingCard/consts.js +85 -0
  77. package/dist/PricingSection/PricingCard/index.js +241 -0
  78. package/dist/PricingSection/ProductCTA.js +44 -0
  79. package/dist/PricingSection/Products.js +74 -0
  80. package/dist/PricingSection/config.js +36 -0
  81. package/dist/PricingSection/index.js +58 -0
  82. package/dist/PricingSection/types.js +8 -0
  83. package/dist/ProLabel/index.js +59 -0
  84. package/dist/ProLogo/index.js +27 -0
  85. package/dist/ProLogoAlt/index.js +26 -0
  86. package/dist/ProductFeatureShowcase/index.js +120 -0
  87. package/dist/QuizScore/index.js +84 -0
  88. package/dist/RatingsBar/index.js +32 -0
  89. package/dist/ResourceCard/index.js +59 -0
  90. package/dist/ScoreSummary/SubScores.js +165 -0
  91. package/dist/ScoreSummary/helpers.js +20 -0
  92. package/dist/ScoreSummary/index.js +108 -0
  93. package/dist/ScoreSummary/types.js +1 -0
  94. package/dist/SkillPathCard/index.js +38 -0
  95. package/dist/SocialMediaSharing/SocialShareIconLink.js +49 -0
  96. package/dist/SocialMediaSharing/index.js +116 -0
  97. package/dist/SocialMediaSharingDropdown/index.js +111 -0
  98. package/dist/Testimonial/index.js +163 -0
  99. package/dist/index.js +87 -0
  100. package/dist/lib/breakpointHooks/index.js +60 -0
  101. package/dist/lib/catalogList/index.js +173 -0
  102. package/dist/lib/resourcesList/index.js +241 -0
  103. package/dist/remoteAssets/components.js +1 -0
  104. package/dist/stories/Atoms/Avatar.stories.js +16 -0
  105. package/dist/stories/Atoms/BetaSticker.stories.js +22 -0
  106. package/dist/stories/Atoms/Logos/Logo.stories.js +78 -0
  107. package/dist/stories/Atoms/Logos/LogoFromSkillsoft.stories.js +15 -0
  108. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +11 -0
  109. package/dist/stories/Atoms/Logos/ProLabel.stories.js +16 -0
  110. package/dist/stories/Atoms/Logos/ProLogoAlt.stories.js +24 -0
  111. package/dist/stories/Atoms/RatingsBar.stories.js +16 -0
  112. package/dist/stories/Atoms/Subgrid.stories.js +87 -0
  113. package/dist/stories/Molecules/AppBar.stories.js +32 -0
  114. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +84 -0
  115. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +67 -0
  116. package/dist/stories/Molecules/AppHeader/AppHeaderLink.stories.js +52 -0
  117. package/dist/stories/Molecules/AppHeader/AppHeaderLogo.stories.js +44 -0
  118. package/dist/stories/Molecules/AppHeader/AppHeaderMainMenuMobile.stories.js +34 -0
  119. package/dist/stories/Molecules/AppHeader/AppHeaderMobile.stories.js +40 -0
  120. package/dist/stories/Molecules/AppHeader/AppHeaderSubMenuMobile.stories.js +25 -0
  121. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +176 -0
  122. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +84 -0
  123. package/dist/stories/Molecules/AppHeader/MockAppHeaderElements.js +90 -0
  124. package/dist/stories/Molecules/AvatarChooser.stories.js +22 -0
  125. package/dist/stories/Molecules/BackToTopAnchor.stories.js +51 -0
  126. package/dist/stories/Molecules/Banner.stories.js +115 -0
  127. package/dist/stories/Molecules/Carousel.stories.js +47 -0
  128. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +173 -0
  129. package/dist/stories/Molecules/CurriculumCard.stories.js +208 -0
  130. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +92 -0
  131. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +65 -0
  132. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +83 -0
  133. package/dist/stories/Molecules/CurriculumCards/LoadingCurriculumCard.stories.js +20 -0
  134. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +90 -0
  135. package/dist/stories/Molecules/DropdownButton.stories.js +207 -0
  136. package/dist/stories/Molecules/EditorialImage.stories.js +17 -0
  137. package/dist/stories/Molecules/EmptySection.stories.js +168 -0
  138. package/dist/stories/Molecules/ErrorContents.stories.js +19 -0
  139. package/dist/stories/Molecules/GridCollapse.stories.js +42 -0
  140. package/dist/stories/Molecules/HorizontalScrollMenu.examples.js +67 -0
  141. package/dist/stories/Molecules/HorizontalScrollMenu.stories.js +11 -0
  142. package/dist/stories/Molecules/HubCard.stories.js +28 -0
  143. package/dist/stories/Molecules/InfoCard.stories.js +30 -0
  144. package/dist/stories/Molecules/LearningOutcomeCard.stories.js +59 -0
  145. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  146. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  147. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
  148. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +276 -0
  149. package/dist/stories/Molecules/ListSection.stories.js +97 -0
  150. package/dist/stories/Molecules/Loading.stories.js +10 -0
  151. package/dist/stories/Molecules/NotificationList.stories.js +100 -0
  152. package/dist/stories/Molecules/PageSection.stories.js +67 -0
  153. package/dist/stories/Molecules/PastDueModalContents.stories.js +62 -0
  154. package/dist/stories/Molecules/PausableImage.stories.js +16 -0
  155. package/dist/stories/Molecules/ResourceCard.stories.js +18 -0
  156. package/dist/stories/Molecules/SocialMediaSharing.stories.js +20 -0
  157. package/dist/stories/Molecules/SocialMediaSharingDropdown.stories.js +20 -0
  158. package/dist/stories/Molecules/Testimonial.stories.js +63 -0
  159. package/dist/stories/Organisms/GlobalFooter.stories.js +29 -0
  160. package/dist/stories/Organisms/GlobalHeader/About.stories.js +136 -0
  161. package/dist/stories/Organisms/GlobalHeader/Anon.stories.js +73 -0
  162. package/dist/stories/Organisms/GlobalHeader/Bootcamp.stories.js +32 -0
  163. package/dist/stories/Organisms/GlobalHeader/Enterprise.stories.js +108 -0
  164. package/dist/stories/Organisms/GlobalHeader/Free.stories.js +133 -0
  165. package/dist/stories/Organisms/GlobalHeader/Pro.stories.js +199 -0
  166. package/dist/stories/Organisms/GlobalHeader/Simple.stories.js +31 -0
  167. package/dist/stories/Organisms/GlobalPage.stories.js +142 -0
  168. package/dist/stories/Organisms/LayoutMenu.stories.js +242 -0
  169. package/dist/stories/Organisms/LayoutMenuVariant.stories.js +224 -0
  170. package/dist/stories/Organisms/PageAlerts.example.js +42 -0
  171. package/dist/stories/Organisms/PageAlerts.stories.js +15 -0
  172. package/dist/stories/Organisms/PageFeatures.stories.js +183 -0
  173. package/dist/stories/Organisms/PageHero.stories.js +145 -0
  174. package/dist/stories/Organisms/PageLayoutWithSidebarMenu.stories.js +34 -0
  175. package/dist/stories/Organisms/PagePrefooter.stories.js +62 -0
  176. package/dist/stories/Organisms/PageSingleFeature.stories.js +158 -0
  177. package/dist/stories/Organisms/PageVideoGallery.stories.js +70 -0
  178. package/dist/stories/Organisms/PlanCard.stories.js +98 -0
  179. package/dist/stories/Organisms/PlanCardTeams.stories.js +27 -0
  180. package/dist/stories/Organisms/ScoreSummary.stories.js +299 -0
  181. package/package.json +1 -1
  182. package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +0 -55
  183. package/dist/LearningOutcomeAssessmentScores/index.js +0 -24
@@ -0,0 +1,84 @@
1
+ import { GearIcon, LayoutModuleIcon, PercipioIcon, PersonIcon, SupportIcon } from '@codecademy/gamut-icons';
2
+ import { AppHeaderMobile, LogoLXStudio } from '../../../index';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const meta = {
5
+ component: AppHeaderMobile,
6
+ parameters: {
7
+ layout: 'fullscreen'
8
+ },
9
+ args: {
10
+ action: () => {},
11
+ isEnterprise: true,
12
+ items: {
13
+ left: [{
14
+ id: 'render-element',
15
+ renderElement: () => /*#__PURE__*/_jsx(LogoLXStudio, {
16
+ maxWidth: "40vw",
17
+ width: "225px",
18
+ pb: 4
19
+ }),
20
+ type: 'render-element'
21
+ }],
22
+ right: [],
23
+ mainMenu: [{
24
+ id: 'menu',
25
+ text: 'Menu',
26
+ icon: LayoutModuleIcon,
27
+ isIconOnly: true,
28
+ popover: [{
29
+ id: 'sublink-1',
30
+ text: 'Percipio',
31
+ href: 'http://codecademy.com',
32
+ trackingTarget: '',
33
+ type: 'link',
34
+ icon: PercipioIcon
35
+ }],
36
+ trackingTarget: '',
37
+ type: 'dropdown'
38
+ }, {
39
+ id: 'profile-dropdown',
40
+ type: 'profile-dropdown',
41
+ avatar: 'https://pbs.twimg.com/media/F9QcGzgXEAAPqLo?format=jpg&name=small',
42
+ userDisplayName: 'cinnamoroll',
43
+ popover: [[{
44
+ id: 'sublink-1',
45
+ icon: PersonIcon,
46
+ text: 'My profile',
47
+ href: 'http://codecademy.com',
48
+ trackingTarget: '',
49
+ type: 'link'
50
+ }, {
51
+ id: 'sublink-2',
52
+ icon: GearIcon,
53
+ text: 'Settings',
54
+ href: 'http://codecademy.com',
55
+ trackingTarget: '',
56
+ type: 'link'
57
+ }, {
58
+ id: 'sublink-3',
59
+ icon: SupportIcon,
60
+ text: 'Help',
61
+ href: 'http://codecademy.com',
62
+ trackingTarget: '',
63
+ type: 'link'
64
+ }], [{
65
+ id: 'sublink-4',
66
+ icon: PersonIcon,
67
+ text: 'Log out',
68
+ href: 'http://codecademy.com',
69
+ trackingTarget: '',
70
+ type: 'link'
71
+ }]],
72
+ text: 'string;',
73
+ trackingTarget: 'string'
74
+ }]
75
+ }
76
+ }
77
+ };
78
+ export default meta;
79
+ export const Default = {
80
+ render: args => /*#__PURE__*/_jsx(AppHeaderMobile, {
81
+ ...args
82
+ }),
83
+ name: 'LXStudio AppHeaderMobile'
84
+ };
@@ -0,0 +1,90 @@
1
+ import { CommunityIcon, GearIcon, HouseEntranceIcon, PersonIcon } from '@codecademy/gamut-icons';
2
+ export const MOCK_LINK = {
3
+ id: 'home',
4
+ href: 'https://codecademy.com/',
5
+ icon: HouseEntranceIcon,
6
+ text: 'Home',
7
+ trackingTarget: 'nav-link',
8
+ type: 'link'
9
+ };
10
+ export const MOCK_DROPDOWN_1 = {
11
+ id: 'dropdown',
12
+ text: 'Dropdown Target',
13
+ icon: CommunityIcon,
14
+ popover: [{
15
+ id: 'sublink-1',
16
+ href: 'http://codecademy.com',
17
+ trackingTarget: 'tracking-target',
18
+ text: 'Link 1',
19
+ type: 'link'
20
+ }, {
21
+ id: 'sublink-2',
22
+ href: 'http://codecademy.com',
23
+ trackingTarget: 'tracking-target',
24
+ text: 'Link 2',
25
+ type: 'link'
26
+ }],
27
+ trackingTarget: 'tracking-target',
28
+ type: 'dropdown'
29
+ };
30
+ export const MOCK_DROPDOWN_2 = {
31
+ id: 'dropdown-target-2',
32
+ text: 'Resources Target',
33
+ icon: HouseEntranceIcon,
34
+ popover: [{
35
+ id: 'sublink-1',
36
+ text: 'Cheatsheets',
37
+ href: 'http://codecademy.com',
38
+ trackingTarget: '',
39
+ type: 'link'
40
+ }, {
41
+ id: 'sublink-2',
42
+ text: 'Blog',
43
+ href: 'http://codecademy.com',
44
+ trackingTarget: '',
45
+ type: 'link'
46
+ }],
47
+ trackingTarget: '',
48
+ type: 'dropdown'
49
+ };
50
+ export const MOCK_PROFILE_DROPDOWN = {
51
+ avatar: 'https://www.gravatar.com/avatar/1c959a9a1e2f9f9f1ac06b05cccc1d60?s=150&d=retro',
52
+ userDisplayName: 'Codey',
53
+ id: 'profile',
54
+ text: 'Profile',
55
+ popover: [[{
56
+ id: 'sublink-1',
57
+ icon: PersonIcon,
58
+ text: 'A Link With Icon',
59
+ href: 'http://codecademy.com',
60
+ trackingTarget: '',
61
+ type: 'link'
62
+ }, {
63
+ id: 'sublink-2',
64
+ icon: GearIcon,
65
+ text: 'Another Link With Icon',
66
+ href: 'http://codecademy.com',
67
+ trackingTarget: '',
68
+ type: 'link'
69
+ }], [{
70
+ id: 'sublink-3',
71
+ text: 'A Link In Another Section',
72
+ href: 'http://codecademy.com',
73
+ trackingTarget: '',
74
+ type: 'link'
75
+ }, {
76
+ id: 'sublink-4',
77
+ text: 'Another Link',
78
+ href: 'http://codecademy.com',
79
+ trackingTarget: '',
80
+ type: 'link'
81
+ }], [{
82
+ id: 'sublink-5',
83
+ text: 'One More Link',
84
+ href: 'http://codecademy.com',
85
+ trackingTarget: '',
86
+ type: 'link'
87
+ }]],
88
+ trackingTarget: 'profile',
89
+ type: 'profile-dropdown'
90
+ };
@@ -0,0 +1,22 @@
1
+ import { AvatarChooser } from '../../index';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ component: AvatarChooser,
5
+ args: {
6
+ src: 'https://content.codecademy.com/courses/free/boba.svg'
7
+ }
8
+ };
9
+ export default meta;
10
+ export const Default = {
11
+ render: args => /*#__PURE__*/_jsx(AvatarChooser, {
12
+ ...args
13
+ }),
14
+ name: 'AvatarChooser'
15
+ };
16
+ export const AvatarChooserWithError = {
17
+ render: args => /*#__PURE__*/_jsx(AvatarChooser, {
18
+ ...args,
19
+ error: "Please upload a png or jpeg image"
20
+ }),
21
+ name: 'AvatarChooser with error'
22
+ };
@@ -0,0 +1,51 @@
1
+ import { BackToTopAnchor } from '../../index';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ component: BackToTopAnchor,
5
+ args: {
6
+ targetId: 'fakeTargetId',
7
+ onClick: () => {}
8
+ }
9
+ };
10
+ export default meta;
11
+ export const Default = {
12
+ render: args => /*#__PURE__*/_jsx(BackToTopAnchor, {
13
+ ...args
14
+ }),
15
+ name: 'BackToTopAnchor'
16
+ };
17
+ export const Inline = {
18
+ render: args => /*#__PURE__*/_jsx(BackToTopAnchor, {
19
+ ...args
20
+ }),
21
+ name: 'Standard Variant',
22
+ args: {
23
+ variant: 'inline'
24
+ }
25
+ };
26
+ export const Standard = {
27
+ render: args => /*#__PURE__*/_jsx(BackToTopAnchor, {
28
+ ...args
29
+ }),
30
+ name: 'Interface Variant',
31
+ args: {
32
+ variant: 'standard'
33
+ }
34
+ };
35
+ export const Small = {
36
+ render: args => /*#__PURE__*/_jsx(BackToTopAnchor, {
37
+ ...args
38
+ }),
39
+ name: 'Small Size',
40
+ args: {
41
+ showIcon: false,
42
+ size: 'small'
43
+ }
44
+ };
45
+ export const WithoutIcons = {
46
+ render: args => /*#__PURE__*/_jsx(BackToTopAnchor, {
47
+ showIcon: false,
48
+ ...args
49
+ }),
50
+ name: 'Without Arrow Icon'
51
+ };
@@ -0,0 +1,115 @@
1
+ import { Banner } from '../../index';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ component: Banner,
5
+ args: {
6
+ children: 'Happy Holidays! We have a Student discount for Codecademy **Pro**. [Learn More](https://gamut.codecademy.com)',
7
+ variant: 'navy'
8
+ }
9
+ };
10
+ export default meta;
11
+ export const Default = {
12
+ render: args => /*#__PURE__*/_jsx(Banner, {
13
+ ...args
14
+ }),
15
+ name: 'Banner'
16
+ };
17
+ export const Navy = {
18
+ render: args => /*#__PURE__*/_jsx(Banner, {
19
+ ...args
20
+ }),
21
+ name: 'Navy',
22
+ args: {
23
+ children: 'Navy',
24
+ variant: 'navy'
25
+ }
26
+ };
27
+ export const Yellow = {
28
+ render: args => /*#__PURE__*/_jsx(Banner, {
29
+ ...args
30
+ }),
31
+ name: 'Yellow',
32
+ args: {
33
+ children: 'Yellow',
34
+ variant: 'yellow'
35
+ }
36
+ };
37
+ export const Subtle = {
38
+ render: args => /*#__PURE__*/_jsx(Banner, {
39
+ ...args
40
+ }),
41
+ name: 'Subtle',
42
+ args: {
43
+ children: 'Subtle',
44
+ variant: 'subtle'
45
+ }
46
+ };
47
+ export const NavyWithLink = {
48
+ render: args => /*#__PURE__*/_jsx(Banner, {
49
+ ...args
50
+ }),
51
+ name: 'Navy with link',
52
+ args: {
53
+ children: 'Navy but with a link! [Learn more](https://gamut.codecademy.com)',
54
+ variant: 'navy'
55
+ }
56
+ };
57
+ export const YellowWithLink = {
58
+ render: args => /*#__PURE__*/_jsx(Banner, {
59
+ ...args
60
+ }),
61
+ name: 'Yellow with link',
62
+ args: {
63
+ children: 'Yellow but with a link! [Learn more](https://gamut.codecademy.com)',
64
+ variant: 'yellow'
65
+ }
66
+ };
67
+ export const SubtleWithLink = {
68
+ render: args => /*#__PURE__*/_jsx(Banner, {
69
+ ...args
70
+ }),
71
+ name: 'Subtle with link',
72
+ args: {
73
+ children: 'Subtle but with a link! [Learn more](https://gamut.codecademy.com)',
74
+ variant: 'subtle'
75
+ }
76
+ };
77
+ export const NavyClose = {
78
+ render: args => /*#__PURE__*/_jsx(Banner, {
79
+ ...args,
80
+ onClose: () => {}
81
+ }),
82
+ name: 'Navy',
83
+ args: {
84
+ children: 'Navy but with a link and a close button! [Learn more](https://gamut.codecademy.com)',
85
+ variant: 'navy'
86
+ }
87
+ };
88
+ export const YellowClose = {
89
+ render: args => /*#__PURE__*/_jsx(Banner, {
90
+ ...args,
91
+ onClose: () => {}
92
+ }),
93
+ name: 'Yellow',
94
+ args: {
95
+ children: 'Yellow but with a link and a close button! [Learn more](https://gamut.codecademy.com)',
96
+ variant: 'yellow'
97
+ }
98
+ };
99
+ export const SubtleClose = {
100
+ render: args => /*#__PURE__*/_jsx(Banner, {
101
+ ...args,
102
+ onClose: () => {}
103
+ }),
104
+ name: 'Subtle',
105
+ args: {
106
+ children: 'Subtle but with a link and a close button! [Learn more](https://gamut.codecademy.com)',
107
+ variant: 'subtle'
108
+ }
109
+ };
110
+ export const CallToAction = {
111
+ render: args => /*#__PURE__*/_jsx(Banner, {
112
+ ...args
113
+ }),
114
+ name: 'Call to Action'
115
+ };
@@ -0,0 +1,47 @@
1
+ import { Box, Text } from '@codecademy/gamut';
2
+ import noop from 'lodash/fp/noop';
3
+ import { Carousel } from '../../Carousel';
4
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
+ const items = [/*#__PURE__*/_jsx(Box, {
6
+ children: "Item 1"
7
+ }), /*#__PURE__*/_jsx(Box, {
8
+ children: "Item 2"
9
+ }), /*#__PURE__*/_jsx(Box, {
10
+ children: "Item 3"
11
+ }), /*#__PURE__*/_jsx(Box, {
12
+ children: "Item 4"
13
+ })];
14
+ const title = /*#__PURE__*/_jsx(Text, {
15
+ variant: "title-sm",
16
+ children: "Example Carousel"
17
+ });
18
+ const meta = {
19
+ component: Carousel,
20
+ args: {
21
+ items: [],
22
+ onArrowClick: () => noop,
23
+ options: {},
24
+ title: /*#__PURE__*/_jsx(_Fragment, {}),
25
+ variant: 'catalog_home'
26
+ }
27
+ };
28
+ export default meta;
29
+ export const Default = {
30
+ render: args => /*#__PURE__*/_jsx(Carousel, {
31
+ ...args,
32
+ items: items,
33
+ title: title
34
+ }),
35
+ name: 'Carousel'
36
+ };
37
+ export const PatternedBackground = {
38
+ render: args => /*#__PURE__*/_jsx(Carousel, {
39
+ ...args,
40
+ items: items,
41
+ title: title
42
+ }),
43
+ name: 'PatternedBackground',
44
+ args: {
45
+ patternedBackground: true
46
+ }
47
+ };
@@ -0,0 +1,173 @@
1
+ import { Column, FlexBox, LayoutGrid, Text } from '@codecademy/gamut';
2
+ import { CheckFilledIcon } from '@codecademy/gamut-icons';
3
+ import { ContentGroupBaseCard, ContentGroupBaseCardHeaderBackground, CourseDifficulty, EnrollmentStatus } from '../../index';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const meta = {
6
+ component: ContentGroupBaseCard,
7
+ args: {
8
+ headerBackgroundColor: 'pink',
9
+ headerText: 'Course',
10
+ title: 'Python 101',
11
+ numLessons: 20
12
+ }
13
+ };
14
+ export default meta;
15
+ export const Default = {
16
+ render: args => /*#__PURE__*/_jsx(ContentGroupBaseCard, {
17
+ ...args
18
+ }),
19
+ name: 'ContentGroupBaseCard'
20
+ };
21
+ export const ContentGroupBaseCardWithDifficulty = {
22
+ render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
23
+ gap: 24,
24
+ pb: 8,
25
+ children: [/*#__PURE__*/_jsxs(Column, {
26
+ size: 4,
27
+ children: [/*#__PURE__*/_jsx(Text, {
28
+ variant: "p-large",
29
+ pb: 4,
30
+ children: "Beginner ('Friendly' is appended automatically)"
31
+ }), /*#__PURE__*/_jsx(ContentGroupBaseCard, {
32
+ ...args,
33
+ difficulty: CourseDifficulty.Beginner
34
+ })]
35
+ }), /*#__PURE__*/_jsxs(Column, {
36
+ size: 4,
37
+ children: [/*#__PURE__*/_jsx(Text, {
38
+ variant: "p-large",
39
+ pb: 4,
40
+ children: "Intermediate"
41
+ }), /*#__PURE__*/_jsx(ContentGroupBaseCard, {
42
+ ...args,
43
+ difficulty: CourseDifficulty.Intermediate
44
+ })]
45
+ }), /*#__PURE__*/_jsxs(Column, {
46
+ size: 4,
47
+ children: [/*#__PURE__*/_jsx(Text, {
48
+ variant: "p-large",
49
+ pb: 4,
50
+ children: "Advanced"
51
+ }), /*#__PURE__*/_jsx(ContentGroupBaseCard, {
52
+ ...args,
53
+ difficulty: CourseDifficulty.Advanced
54
+ })]
55
+ })]
56
+ }),
57
+ name: 'ContentGroupBaseCard with Difficulty'
58
+ };
59
+ export const ContentGroupBaseCardWithDescription = {
60
+ render: args => /*#__PURE__*/_jsx(ContentGroupBaseCard, {
61
+ ...args
62
+ }),
63
+ name: 'ContentGroupBaseCard with Description',
64
+ args: {
65
+ description: 'Filler text is text that shares some characteristics of a real written text, but is random or otherwise generated.'
66
+ }
67
+ };
68
+ export const ContentGroupBaseCardWithImage = {
69
+ render: args => /*#__PURE__*/_jsx(ContentGroupBaseCard, {
70
+ ...args
71
+ }),
72
+ name: 'ContentGroupBaseCard with Image',
73
+ args: {
74
+ isFullSize: true,
75
+ imageSrc: 'https://static-assets.codecademy.com/components/curriculum/path/front-end-engineer-career-path/curriculum-card.svg'
76
+ }
77
+ };
78
+ export const ContentGroupBaseCardWithShadowVariants = {
79
+ render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
80
+ gap: 24,
81
+ pb: 8,
82
+ children: [/*#__PURE__*/_jsxs(Column, {
83
+ size: 4,
84
+ children: [/*#__PURE__*/_jsx(Text, {
85
+ variant: "p-large",
86
+ pb: 4,
87
+ children: "Without an outline"
88
+ }), /*#__PURE__*/_jsx(ContentGroupBaseCard, {
89
+ ...args
90
+ })]
91
+ }), /*#__PURE__*/_jsxs(Column, {
92
+ size: 4,
93
+ children: [/*#__PURE__*/_jsx(Text, {
94
+ variant: "p-large",
95
+ pb: 4,
96
+ children: "Outline"
97
+ }), /*#__PURE__*/_jsx(ContentGroupBaseCard, {
98
+ ...args,
99
+ shadow: "outline"
100
+ })]
101
+ })]
102
+ }),
103
+ name: 'ContentGroupBaseCard with Shadow Variants'
104
+ };
105
+ export const ContentGroupBaseCardWithEnrollmentStatus = {
106
+ render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
107
+ gap: 24,
108
+ children: [/*#__PURE__*/_jsx(Column, {
109
+ size: 6,
110
+ children: /*#__PURE__*/_jsx(ContentGroupBaseCard, {
111
+ ...args,
112
+ enrollmentStatus: EnrollmentStatus.InProgress
113
+ })
114
+ }), /*#__PURE__*/_jsx(Column, {
115
+ size: 6,
116
+ children: /*#__PURE__*/_jsx(ContentGroupBaseCard, {
117
+ ...args,
118
+ enrollmentStatus: EnrollmentStatus.Completed
119
+ })
120
+ })]
121
+ }),
122
+ name: 'ContentGroupBaseCard with Enrollment Status'
123
+ };
124
+ export const ContentGroupBaseCardWithTimeToComplete = {
125
+ render: args => /*#__PURE__*/_jsxs(LayoutGrid, {
126
+ gap: 24,
127
+ children: [/*#__PURE__*/_jsxs(Column, {
128
+ size: 6,
129
+ children: ["Hours", /*#__PURE__*/_jsx(ContentGroupBaseCard, {
130
+ ...args,
131
+ timeToComplete: 5
132
+ })]
133
+ }), /*#__PURE__*/_jsxs(Column, {
134
+ size: 6,
135
+ children: ["If the duration (hours) is less than 1", /*#__PURE__*/_jsx(ContentGroupBaseCard, {
136
+ ...args,
137
+ timeToComplete: 0
138
+ })]
139
+ }), /*#__PURE__*/_jsxs(Column, {
140
+ size: 6,
141
+ children: ["If the duration is exactly 1", /*#__PURE__*/_jsx(ContentGroupBaseCard, {
142
+ ...args,
143
+ timeToComplete: 1
144
+ })]
145
+ })]
146
+ }),
147
+ name: 'ContentGroupBaseCard with Time to Complete'
148
+ };
149
+ export const ContentGroupBaseCardWithCustomHeaderAndFooter = {
150
+ render: args => /*#__PURE__*/_jsx(LayoutGrid, {
151
+ gap: 24,
152
+ children: /*#__PURE__*/_jsx(Column, {
153
+ size: 6,
154
+ children: /*#__PURE__*/_jsx(ContentGroupBaseCard, {
155
+ ...args,
156
+ header: /*#__PURE__*/_jsx(ContentGroupBaseCardHeaderBackground, {
157
+ bg: "hyper",
158
+ children: /*#__PURE__*/_jsxs(FlexBox, {
159
+ alignItems: "center",
160
+ justifyContent: "center",
161
+ gap: 4,
162
+ children: [/*#__PURE__*/_jsx(CheckFilledIcon, {}), " Custom Header"]
163
+ })
164
+ }),
165
+ footer: /*#__PURE__*/_jsx(Text, {
166
+ textColor: "navy-500",
167
+ children: "Custom Footer"
168
+ })
169
+ })
170
+ })
171
+ }),
172
+ name: 'ContentGroupBaseCard with custom header and footer'
173
+ };