@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,87 +0,0 @@
1
- import { Column, FlexBox, GridBox, LayoutGrid } from '@codecademy/gamut';
2
- import { Subgrid, subgridContext } from '../../index';
3
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
- const meta = {
5
- component: Subgrid,
6
- args: {}
7
- };
8
- export default meta;
9
- const Item = ({
10
- children
11
- }) => /*#__PURE__*/_jsx(FlexBox, {
12
- as: "li",
13
- p: 8,
14
- background: "#eee",
15
- borderRadius: "md",
16
- center: true,
17
- children: children
18
- });
19
- export const Default = {
20
- render: _args => /*#__PURE__*/_jsxs(LayoutGrid, {
21
- children: [/*#__PURE__*/_jsx(Column, {
22
- size: {
23
- _: 12,
24
- sm: 2,
25
- md: 3
26
- },
27
- pr: 8,
28
- children: /*#__PURE__*/_jsx(Item, {
29
- children: "Sidebar"
30
- })
31
- }), /*#__PURE__*/_jsx(subgridContext.Provider, {
32
- value: {
33
- _: 12,
34
- sm: 10,
35
- md: 9
36
- },
37
- children: /*#__PURE__*/_jsxs(Column, {
38
- size: {
39
- sm: 10,
40
- md: 9
41
- },
42
- children: [/*#__PURE__*/_jsxs(GridBox, {
43
- gridTemplateColumns: {
44
- _: 'repeat(12, 1fr)',
45
- sm: 'repeat(10, 1fr)',
46
- md: 'repeat(9, 1fr)'
47
- },
48
- children: [/*#__PURE__*/_jsx(Column, {
49
- size: 3,
50
- children: /*#__PURE__*/_jsx(Item, {
51
- children: "GridBox Column 1"
52
- })
53
- }), /*#__PURE__*/_jsx(Column, {
54
- size: 3,
55
- children: /*#__PURE__*/_jsx(Item, {
56
- children: "GridBox Column 2"
57
- })
58
- }), /*#__PURE__*/_jsx(Column, {
59
- size: 3,
60
- children: /*#__PURE__*/_jsx(Item, {
61
- children: "GridBox Column 3"
62
- })
63
- })]
64
- }), /*#__PURE__*/_jsxs(Subgrid, {
65
- mt: 8,
66
- children: [/*#__PURE__*/_jsx(Column, {
67
- size: 3,
68
- children: /*#__PURE__*/_jsx(Item, {
69
- children: "Subgrid Column 1"
70
- })
71
- }), /*#__PURE__*/_jsx(Column, {
72
- size: 3,
73
- children: /*#__PURE__*/_jsx(Item, {
74
- children: "Subgrid Column 2"
75
- })
76
- }), /*#__PURE__*/_jsx(Column, {
77
- size: 3,
78
- children: /*#__PURE__*/_jsx(Item, {
79
- children: "Subgrid Column 3"
80
- })
81
- })]
82
- })]
83
- })
84
- })]
85
- }),
86
- name: 'Subgrid'
87
- };
@@ -1,32 +0,0 @@
1
- import { AppBar, AppBarSection, Logo } from '../../index';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- export default {
4
- component: AppBar,
5
- subcomponents: {
6
- AppBarSection
7
- }
8
- };
9
- export const Default = {
10
- render: () => /*#__PURE__*/_jsx(AppBar, {
11
- children: /*#__PURE__*/_jsx(AppBarSection, {
12
- position: "left",
13
- children: "In Left Position"
14
- })
15
- }),
16
- name: 'AppBar'
17
- };
18
- export const Header = {
19
- render: () => /*#__PURE__*/_jsxs(AppBar, {
20
- children: [/*#__PURE__*/_jsx(AppBarSection, {
21
- position: "left",
22
- children: /*#__PURE__*/_jsx(Logo, {})
23
- }), /*#__PURE__*/_jsx(AppBarSection, {
24
- position: "center",
25
- children: "Pricing"
26
- }), /*#__PURE__*/_jsx(AppBarSection, {
27
- position: "right",
28
- children: "Sign In"
29
- })]
30
- }),
31
- name: 'Header'
32
- };
@@ -1,84 +0,0 @@
1
- import { IconButton } from '@codecademy/gamut';
2
- import { FaviconIcon, PersonIcon } from '@codecademy/gamut-icons';
3
- import { AppHeader } from '../../../index';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- const meta = {
6
- component: AppHeader,
7
- parameters: {
8
- layout: 'fullscreen'
9
- },
10
- args: {
11
- items: {
12
- left: [{
13
- id: 'logo-1',
14
- href: 'http://codecademy.com',
15
- pro: false,
16
- trackingTarget: 'tracking-target',
17
- type: 'logo',
18
- enterprise: false
19
- }, {
20
- id: 'link',
21
- href: 'http://codecademy.com',
22
- trackingTarget: 'tracking-target',
23
- text: 'AppHeaderLink',
24
- type: 'link'
25
- }],
26
- right: [{
27
- id: 'render-element',
28
- renderElement: () => /*#__PURE__*/_jsx(IconButton, {
29
- icon: FaviconIcon,
30
- tip: "Link",
31
- tipProps: {
32
- alignment: 'bottom-center'
33
- }
34
- }),
35
- type: 'render-element'
36
- }, {
37
- id: 'text-button',
38
- text: 'TextButton',
39
- href: 'http://codecademy.com',
40
- trackingTarget: 'tracking-target',
41
- type: 'text-button'
42
- }, {
43
- id: 'target',
44
- text: 'Dropdown Target',
45
- icon: PersonIcon,
46
- popover: [{
47
- id: 'sublink-1',
48
- text: 'A Link',
49
- href: 'http://codecademy.com',
50
- trackingTarget: '',
51
- type: 'link'
52
- }, {
53
- id: 'sublink-2',
54
- text: 'Another Link',
55
- href: 'http://codecademy.com',
56
- trackingTarget: '',
57
- type: 'link'
58
- }],
59
- trackingTarget: '',
60
- type: 'dropdown'
61
- }, {
62
- id: 'fill-button',
63
- text: 'FillButton',
64
- href: 'http://codecademy.com',
65
- trackingTarget: 'tracking-target',
66
- type: 'fill-button'
67
- }]
68
- },
69
- isStandalone: true,
70
- search: {
71
- onEnable: () => {},
72
- onSearch: () => {},
73
- onTrackingClick: () => {},
74
- onSearchAsYouType: () => {}
75
- }
76
- }
77
- };
78
- export default meta;
79
- export const Default = {
80
- render: args => /*#__PURE__*/_jsx(AppHeader, {
81
- ...args
82
- }),
83
- name: 'AppHeader'
84
- };
@@ -1,67 +0,0 @@
1
- import { Box } from '@codecademy/gamut';
2
- import { PersonIcon } from '@codecademy/gamut-icons';
3
- import { AppHeaderDropdown } from '../../../index';
4
- import { MOCK_PROFILE_DROPDOWN } from './MockAppHeaderElements';
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
- const meta = {
7
- component: AppHeaderDropdown,
8
- args: {
9
- item: {
10
- id: 'target',
11
- text: 'Dropdown Target',
12
- icon: PersonIcon,
13
- popover: [{
14
- id: 'sublink-1',
15
- text: 'A Link',
16
- href: 'http://codecademy.com',
17
- trackingTarget: '',
18
- type: 'link'
19
- }, {
20
- id: 'sublink-2',
21
- text: 'Another Link',
22
- href: 'http://codecademy.com',
23
- trackingTarget: '',
24
- type: 'link'
25
- }],
26
- trackingTarget: '',
27
- type: 'dropdown'
28
- }
29
- }
30
- };
31
- export default meta;
32
- export const Default = {
33
- render: args => /*#__PURE__*/_jsx(AppHeaderDropdown, {
34
- ...args
35
- }),
36
- name: 'AppHeaderDropdown'
37
- };
38
- export const AppHeaderSeparatedDropdown = {
39
- render: args => /*#__PURE__*/_jsx(Box, {
40
- height: "200",
41
- children: /*#__PURE__*/_jsx(Box, {
42
- position: "absolute",
43
- left: "225",
44
- children: /*#__PURE__*/_jsx(AppHeaderDropdown, {
45
- ...args
46
- })
47
- })
48
- }),
49
- args: {
50
- item: MOCK_PROFILE_DROPDOWN
51
- },
52
- name: 'AppHeaderSeparatedDropdown'
53
- };
54
- export const AppHeaderStandaloneDropdown = {
55
- render: args => /*#__PURE__*/_jsx(Box, {
56
- height: "200",
57
- children: /*#__PURE__*/_jsx(Box, {
58
- children: /*#__PURE__*/_jsx(AppHeaderDropdown, {
59
- ...args
60
- })
61
- })
62
- }),
63
- args: {
64
- standalone: true
65
- },
66
- name: 'AppHeaderStandaloneDropdown'
67
- };
@@ -1,52 +0,0 @@
1
- import { AppHeaderLink } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: AppHeaderLink,
5
- args: {
6
- item: {
7
- id: 'link',
8
- href: 'http://codecademy.com',
9
- text: 'Nav Link',
10
- trackingTarget: 'tracking-target',
11
- type: 'link'
12
- }
13
- }
14
- };
15
- export default meta;
16
- export const Default = {
17
- render: args => /*#__PURE__*/_jsx(AppHeaderLink, {
18
- ...args
19
- }),
20
- name: 'AppHeaderLink'
21
- };
22
- export const CurrentTab = {
23
- render: args => /*#__PURE__*/_jsx(AppHeaderLink, {
24
- ...args
25
- }),
26
- name: 'Current Tab',
27
- args: {
28
- item: {
29
- id: 'link-current-tab',
30
- href: 'http://codecademy.com',
31
- text: 'Current Tab',
32
- trackingTarget: 'tracking-target',
33
- type: 'link'
34
- }
35
- }
36
- };
37
- export const NewTab = {
38
- render: args => /*#__PURE__*/_jsx(AppHeaderLink, {
39
- ...args
40
- }),
41
- name: 'New Tab',
42
- args: {
43
- item: {
44
- id: 'link-new-tab',
45
- href: 'http://codecademy.com',
46
- newTab: true,
47
- text: 'New Tab',
48
- trackingTarget: 'tracking-target',
49
- type: 'link'
50
- }
51
- }
52
- };
@@ -1,44 +0,0 @@
1
- import { AppHeaderLogo } from '../../../index';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- const meta = {
4
- component: AppHeaderLogo,
5
- args: {
6
- item: {
7
- enterprise: false,
8
- href: 'http://codecademy.com',
9
- id: 'pro-logo',
10
- pro: true,
11
- trackingTarget: 'test',
12
- type: 'logo'
13
- }
14
- }
15
- };
16
- export default meta;
17
- export const Default = {
18
- render: args => /*#__PURE__*/_jsx(AppHeaderLogo, {
19
- ...args
20
- }),
21
- name: 'AppHeaderLogo'
22
- };
23
- export const Pro = {
24
- render: args => /*#__PURE__*/_jsx(AppHeaderLogo, {
25
- ...args
26
- }),
27
- name: 'Pro'
28
- };
29
- export const FreeAnon = {
30
- render: args => /*#__PURE__*/_jsx(AppHeaderLogo, {
31
- ...args
32
- }),
33
- name: 'Free + Anon',
34
- args: {
35
- item: {
36
- pro: false,
37
- href: 'http://codecademy.com',
38
- trackingTarget: 'test',
39
- type: 'logo',
40
- enterprise: false,
41
- id: 'free-anon-logo'
42
- }
43
- }
44
- };
@@ -1,34 +0,0 @@
1
- import { BookFlipPageIcon, HouseEntranceIcon } from '@codecademy/gamut-icons';
2
- import { AppHeaderMainMenuMobile } from '../../../index';
3
- import { MOCK_DROPDOWN_1, MOCK_DROPDOWN_2, MOCK_PROFILE_DROPDOWN } from './MockAppHeaderElements';
4
- import { jsx as _jsx } from "react/jsx-runtime";
5
- const meta = {
6
- component: AppHeaderMainMenuMobile,
7
- args: {
8
- action: () => {},
9
- items: [{
10
- dataTestId: 'header-catalog',
11
- icon: BookFlipPageIcon,
12
- id: 'course-catalog',
13
- text: 'Course Catalog',
14
- href: '/catalog',
15
- trackingTarget: 'topnav_catalog',
16
- type: 'link'
17
- }, {
18
- dataTestId: 'header-home',
19
- icon: HouseEntranceIcon,
20
- id: 'my-home',
21
- text: 'My Home',
22
- href: '/learn',
23
- trackingTarget: 'topnav_home',
24
- type: 'link'
25
- }, MOCK_DROPDOWN_1, MOCK_DROPDOWN_2, MOCK_PROFILE_DROPDOWN]
26
- }
27
- };
28
- export default meta;
29
- export const Default = {
30
- render: args => /*#__PURE__*/_jsx(AppHeaderMainMenuMobile, {
31
- ...args
32
- }),
33
- name: 'AppHeaderMainMenuMobile'
34
- };
@@ -1,40 +0,0 @@
1
- import { AppHeaderMobile } from '../../../index';
2
- import { MOCK_DROPDOWN_1, MOCK_DROPDOWN_2, MOCK_LINK, MOCK_PROFILE_DROPDOWN } from './MockAppHeaderElements';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: AppHeaderMobile,
6
- args: {
7
- action: () => {},
8
- items: {
9
- left: [{
10
- id: 'logo-1',
11
- href: 'http://codecademy.com',
12
- pro: false,
13
- trackingTarget: 'tracking-target',
14
- type: 'logo',
15
- enterprise: false
16
- }],
17
- right: [{
18
- id: 'text-button',
19
- text: 'Log in',
20
- href: 'http://codecademy.com',
21
- trackingTarget: 'tracking-target',
22
- type: 'text-button'
23
- }, {
24
- id: 'fill-button',
25
- text: 'Sign up',
26
- href: 'http://codecademy.com',
27
- trackingTarget: 'tracking-target',
28
- type: 'fill-button'
29
- }],
30
- mainMenu: [MOCK_LINK, MOCK_DROPDOWN_1, MOCK_DROPDOWN_2, MOCK_PROFILE_DROPDOWN]
31
- }
32
- }
33
- };
34
- export default meta;
35
- export const Default = {
36
- render: args => /*#__PURE__*/_jsx(AppHeaderMobile, {
37
- ...args
38
- }),
39
- name: 'AppHeaderMobile'
40
- };
@@ -1,25 +0,0 @@
1
- import { AppHeaderSubNavMobile } from '../../../index';
2
- import { MOCK_DROPDOWN_1, MOCK_PROFILE_DROPDOWN } from './MockAppHeaderElements';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- const meta = {
5
- component: AppHeaderSubNavMobile,
6
- args: {
7
- item: MOCK_DROPDOWN_1
8
- }
9
- };
10
- export default meta;
11
- export const Default = {
12
- render: args => /*#__PURE__*/_jsx(AppHeaderSubNavMobile, {
13
- ...args
14
- }),
15
- name: 'AppHeaderSubMenuMobile'
16
- };
17
- export const AppHeaderSubMenuMobileProfile = {
18
- render: args => /*#__PURE__*/_jsx(AppHeaderSubNavMobile, {
19
- ...args
20
- }),
21
- args: {
22
- item: MOCK_PROFILE_DROPDOWN
23
- },
24
- name: 'AppHeaderSubMenuMobile - Profile'
25
- };
@@ -1,176 +0,0 @@
1
- import { Box, FlexBox, Text } from '@codecademy/gamut';
2
- import { ArrowDashRightIcon, CloudCheckIcon, CommentsIcon, ConversationChatIcon, EarthIcon, GearIcon, LayoutModuleIcon, MiniArrowLeftIcon, PercipioIcon, PersonIcon, SupportIcon, TrashIcon } from '@codecademy/gamut-icons';
3
- import { AppHeader, LogoLXStudio } from '../../../index';
4
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- const meta = {
6
- component: AppHeader,
7
- parameters: {
8
- layout: 'fullscreen'
9
- },
10
- args: {
11
- action: () => {},
12
- dropdownSpacing: 'condensed',
13
- isStandalone: true,
14
- hideRightButtonDefaults: true,
15
- items: {
16
- left: [{
17
- id: 'render-element',
18
- renderElement: () => /*#__PURE__*/_jsx(Box, {
19
- children: /*#__PURE__*/_jsx(LogoLXStudio, {
20
- height: 40,
21
- width: 196.92
22
- })
23
- }),
24
- type: 'render-element'
25
- }],
26
- right: [{
27
- id: 'menu',
28
- text: 'Menu',
29
- icon: LayoutModuleIcon,
30
- isIconOnly: true,
31
- popover: [{
32
- id: 'sublink-1',
33
- text: 'Percipio',
34
- href: 'http://codecademy.com',
35
- type: 'link',
36
- icon: PercipioIcon
37
- }],
38
- trackingTarget: '',
39
- type: 'dropdown'
40
- }, {
41
- id: 'profile-dropdown',
42
- type: 'profile-dropdown',
43
- avatar: 'https://avatarfiles.alphacoders.com/367/367474.png',
44
- userDisplayName: 'cinnamoroll',
45
- popover: [[{
46
- id: 'sublink-1',
47
- icon: PersonIcon,
48
- text: 'My profile',
49
- href: 'http://codecademy.com',
50
- type: 'link'
51
- }, {
52
- id: 'sublink-2',
53
- icon: GearIcon,
54
- text: 'Settings',
55
- href: 'http://codecademy.com',
56
- type: 'link'
57
- }, {
58
- id: 'sublink-3',
59
- icon: SupportIcon,
60
- text: 'Help',
61
- href: 'http://codecademy.com',
62
- type: 'link'
63
- }, {
64
- id: 'sublink-4',
65
- icon: TrashIcon,
66
- text: 'Deleted items',
67
- href: 'http://codecademy.com',
68
- type: 'link'
69
- }, {
70
- id: 'sublink-5',
71
- icon: ArrowDashRightIcon,
72
- text: 'Log out',
73
- href: 'http://codecademy.com',
74
- type: 'link'
75
- }]],
76
- text: 'string;',
77
- trackingTarget: 'string'
78
- }]
79
- }
80
- }
81
- };
82
- export default meta;
83
- export const Default = {
84
- render: args => /*#__PURE__*/_jsx(AppHeader, {
85
- ...args
86
- }),
87
- name: 'LXStudio AppHeader'
88
- };
89
- export const ButtonsWithTitle = {
90
- render: args => /*#__PURE__*/_jsx(AppHeader, {
91
- ...args
92
- }),
93
- args: {
94
- action: () => {},
95
- dropdownSpacing: 'condensed',
96
- isStandalone: true,
97
- hideRightButtonDefaults: true,
98
- items: {
99
- left: [{
100
- id: 'exit',
101
- type: 'text-button',
102
- text: 'Exit',
103
- icon: MiniArrowLeftIcon,
104
- href: ''
105
- }, {
106
- id: 'caisy-title',
107
- renderElement: () => /*#__PURE__*/_jsxs(FlexBox, {
108
- borderColor: "border-secondary",
109
- borderLeft: 1,
110
- center: true,
111
- height: "100%",
112
- width: "fit-content",
113
- pl: 16,
114
- children: [/*#__PURE__*/_jsx(ConversationChatIcon, {
115
- size: 26,
116
- ml: 4,
117
- color: "primary"
118
- }), /*#__PURE__*/_jsx(Text, {
119
- as: "h1",
120
- ml: 16,
121
- variant: "title-xs",
122
- children: "CAISY\u2122: Something else entirely"
123
- })]
124
- }),
125
- type: 'render-element'
126
- }],
127
- right: [{
128
- id: 'draft-zone',
129
- renderElement: () => /*#__PURE__*/_jsxs(FlexBox, {
130
- center: true,
131
- color: "text-secondary",
132
- height: "24px",
133
- width: "fit-content",
134
- children: [/*#__PURE__*/_jsx(CloudCheckIcon, {}), /*#__PURE__*/_jsx(Text, {
135
- ml: 8,
136
- children: "Draft auto-saved"
137
- })]
138
- }),
139
- type: 'render-element'
140
- }, {
141
- id: 'globe-button',
142
- text: 'Language',
143
- icon: EarthIcon,
144
- type: 'icon-button',
145
- href: '',
146
- variant: 'primary'
147
- }, {
148
- id: 'chat-button',
149
- text: 'Comments',
150
- icon: CommentsIcon,
151
- type: 'icon-button',
152
- href: '',
153
- variant: 'primary'
154
- }, {
155
- id: 'preview-button',
156
- text: 'Preview',
157
- type: 'stroke-button',
158
- href: '',
159
- variant: 'primary'
160
- }, {
161
- id: 'share-button',
162
- text: 'Share',
163
- type: 'stroke-button',
164
- href: '',
165
- variant: 'primary'
166
- }, {
167
- id: 'publish-button',
168
- text: 'Publish',
169
- type: 'fill-button',
170
- href: '',
171
- variant: 'primary'
172
- }]
173
- }
174
- },
175
- name: 'LXStudio Buttons with Title'
176
- };