@codecademy/brand 0.17.2-alpha.f5221dbcfc.0 → 0.18.0-alpha.32ee3638f2.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 (62) hide show
  1. package/dist/AbbreviatedCommunityEventCard/index.js +2 -1
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderDropdown/index.js +34 -11
  3. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.d.ts +4 -1
  4. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/AppHeaderDropdownNavButton.js +22 -5
  5. package/dist/AppHeader/AppHeaderElements/AppHeaderNavButton/index.js +2 -0
  6. package/dist/AppHeader/Search/DefaultResults.js +2 -1
  7. package/dist/AppHeader/Search/QuizAndHelpCenterLinks.js +2 -1
  8. package/dist/AppHeader/Search/SearchPane.js +4 -2
  9. package/dist/AppHeader/index.d.ts +5 -12
  10. package/dist/AppHeader/index.js +12 -91
  11. package/dist/AppHeader/shared/elements.d.ts +13 -0
  12. package/dist/AppHeader/shared/elements.js +35 -12
  13. package/dist/AppHeader/shared/types.d.ts +1 -0
  14. package/dist/AppHeader/shared/utils.d.ts +14 -0
  15. package/dist/AppHeader/shared/utils.js +75 -0
  16. package/dist/AppHeaderMobile/index.js +16 -6
  17. package/dist/Avatar/index.js +2 -1
  18. package/dist/AvatarChooser/index.js +4 -2
  19. package/dist/Carousel/index.js +4 -2
  20. package/dist/CommunityEventCard/index.js +2 -1
  21. package/dist/GlobalFooter/FooterHeading.d.ts +2 -2
  22. package/dist/GlobalFooter/FooterHeading.js +12 -27
  23. package/dist/GlobalFooter/FooterLegal/LegalLinks.js +2 -1
  24. package/dist/GlobalFooter/FooterLegal/MadeIn.js +2 -1
  25. package/dist/GlobalFooter/FooterLinks.js +11 -19
  26. package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +29 -47
  27. package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +6 -3
  28. package/dist/GlobalFooter/FooterSubHeading.js +9 -19
  29. package/dist/Grid/GridCollapse.js +18 -23
  30. package/dist/HorizontalScrollMenu/index.js +4 -2
  31. package/dist/LandingPage/Feature.js +2 -1
  32. package/dist/LayoutMenuVariant/AccordionMenu.js +2 -1
  33. package/dist/LayoutMenuVariant/LayoutMenuSection.js +2 -1
  34. package/dist/ListSection/index.js +2 -1
  35. package/dist/Logo/index.d.ts +4 -1
  36. package/dist/Logo/index.js +6 -3
  37. package/dist/LogoFromSkillsoft/index.d.ts +4 -5
  38. package/dist/LogoFromSkillsoft/index.js +2 -2
  39. package/dist/LogoLXStudio/index.d.ts +3 -0
  40. package/dist/LogoLXStudio/index.js +48 -0
  41. package/dist/MarketingToaster/index.js +4 -2
  42. package/dist/PageAlerts/PageAlerts.js +4 -2
  43. package/dist/PausableImage/BaseImage/index.js +2 -1
  44. package/dist/PausableImage/index.js +2 -1
  45. package/dist/PlanCard/index.js +8 -4
  46. package/dist/PlanCardTeams/index.js +2 -1
  47. package/dist/PricingSection/PlanFeature.js +4 -2
  48. package/dist/PricingSection/PricingCard/index.js +2 -1
  49. package/dist/ProLabel/index.d.ts +1 -1
  50. package/dist/ProductFeatureShowcase/index.js +2 -1
  51. package/dist/Testimonial/index.js +4 -2
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +1 -0
  54. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.d.ts +6 -0
  55. package/dist/stories/Atoms/Logos/LogoLXStudio.stories.js +15 -0
  56. package/dist/stories/Molecules/AppHeader/AppHeader.stories.js +21 -1
  57. package/dist/stories/Molecules/AppHeader/AppHeaderDropdown.stories.js +2 -0
  58. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.d.ts +6 -0
  59. package/dist/stories/Molecules/AppHeader/LXStudioHeader.stories.js +80 -0
  60. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.d.ts +6 -0
  61. package/dist/stories/Molecules/AppHeader/LXStudioMobileHeader.stories.js +80 -0
  62. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export * from './Loading';
50
50
  export * from './LoadingCurriculumCard';
51
51
  export * from './Logo';
52
52
  export * from './LogoFromSkillsoft';
53
+ export * from './LogoLXStudio';
53
54
  export * from './MarketingToaster';
54
55
  export * from './NotificationList';
55
56
  export * from './NotificationList/NotificationItem';
package/dist/index.js CHANGED
@@ -50,6 +50,7 @@ export * from './Loading';
50
50
  export * from './LoadingCurriculumCard';
51
51
  export * from './Logo';
52
52
  export * from './LogoFromSkillsoft';
53
+ export * from './LogoLXStudio';
53
54
  export * from './MarketingToaster';
54
55
  export * from './NotificationList';
55
56
  export * from './NotificationList/NotificationItem';
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { LogoLXStudio } from '../../../index';
3
+ declare const meta: Meta<typeof LogoLXStudio>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LogoLXStudio>;
6
+ export declare const Default: Story;
@@ -0,0 +1,15 @@
1
+ import { LogoLXStudio } from '../../../index';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ args: {
5
+ height: 40
6
+ },
7
+ component: LogoLXStudio
8
+ };
9
+ export default meta;
10
+ export const Default = {
11
+ render: args => /*#__PURE__*/_jsx(LogoLXStudio, {
12
+ ...args
13
+ }),
14
+ name: 'LogoFromSkillsoft'
15
+ };
@@ -1,5 +1,5 @@
1
1
  import { IconButton } from '@codecademy/gamut';
2
- import { FaviconIcon } from '@codecademy/gamut-icons';
2
+ import { FaviconIcon, PersonIcon } from '@codecademy/gamut-icons';
3
3
  import { AppHeader } from '../../../index';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  const meta = {
@@ -36,6 +36,25 @@ const meta = {
36
36
  href: 'http://codecademy.com',
37
37
  trackingTarget: 'tracking-target',
38
38
  type: 'text-button'
39
+ }, {
40
+ id: 'target',
41
+ text: 'Dropdown Target',
42
+ icon: PersonIcon,
43
+ popover: [{
44
+ id: 'sublink-1',
45
+ text: 'A Link',
46
+ href: 'http://codecademy.com',
47
+ trackingTarget: '',
48
+ type: 'link'
49
+ }, {
50
+ id: 'sublink-2',
51
+ text: 'Another Link',
52
+ href: 'http://codecademy.com',
53
+ trackingTarget: '',
54
+ type: 'link'
55
+ }],
56
+ trackingTarget: '',
57
+ type: 'dropdown'
39
58
  }, {
40
59
  id: 'fill-button',
41
60
  text: 'FillButton',
@@ -44,6 +63,7 @@ const meta = {
44
63
  type: 'fill-button'
45
64
  }]
46
65
  },
66
+ isStandalone: true,
47
67
  search: {
48
68
  onEnable: () => {},
49
69
  onSearch: () => {},
@@ -1,4 +1,5 @@
1
1
  import { Box } from '@codecademy/gamut';
2
+ import { PersonIcon } from '@codecademy/gamut-icons';
2
3
  import { AppHeaderDropdown } from '../../../index';
3
4
  import { MOCK_PROFILE_DROPDOWN } from './MockAppHeaderElements';
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -8,6 +9,7 @@ const meta = {
8
9
  item: {
9
10
  id: 'target',
10
11
  text: 'Dropdown Target',
12
+ icon: PersonIcon,
11
13
  popover: [{
12
14
  id: 'sublink-1',
13
15
  text: 'A Link',
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AppHeader } from '../../../index';
3
+ declare const meta: Meta<typeof AppHeader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppHeader>;
6
+ export declare const Default: Story;
@@ -0,0 +1,80 @@
1
+ import { GearIcon, LayoutModuleIcon, PercipioIcon, PersonIcon, SupportIcon } from '@codecademy/gamut-icons';
2
+ import { AppHeader, LogoLXStudio } from '../../../index';
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ const meta = {
5
+ component: AppHeader,
6
+ args: {
7
+ action: () => {},
8
+ isStandalone: true,
9
+ hideRightButtonDefaults: true,
10
+ items: {
11
+ left: [{
12
+ id: 'render-element',
13
+ renderElement: () => /*#__PURE__*/_jsx(LogoLXStudio, {
14
+ height: 1,
15
+ width: 1
16
+ }),
17
+ type: 'render-element'
18
+ }],
19
+ right: [{
20
+ id: 'menu',
21
+ text: 'Menu',
22
+ icon: LayoutModuleIcon,
23
+ isIconOnly: true,
24
+ popover: [{
25
+ id: 'sublink-1',
26
+ text: 'Percipio',
27
+ href: 'http://codecademy.com',
28
+ trackingTarget: '',
29
+ type: 'link',
30
+ icon: PercipioIcon
31
+ }],
32
+ trackingTarget: '',
33
+ type: 'dropdown'
34
+ }, {
35
+ id: 'profile-dropdown',
36
+ type: 'profile-dropdown',
37
+ avatar: 'https://pbs.twimg.com/media/F9QcGzgXEAAPqLo?format=jpg&name=small',
38
+ userDisplayName: 'cinnamoroll',
39
+ popover: [[{
40
+ id: 'sublink-1',
41
+ icon: PersonIcon,
42
+ text: 'My profile',
43
+ href: 'http://codecademy.com',
44
+ trackingTarget: '',
45
+ type: 'link'
46
+ }, {
47
+ id: 'sublink-2',
48
+ icon: GearIcon,
49
+ text: 'Settings',
50
+ href: 'http://codecademy.com',
51
+ trackingTarget: '',
52
+ type: 'link'
53
+ }, {
54
+ id: 'sublink-2',
55
+ icon: SupportIcon,
56
+ text: 'Help',
57
+ href: 'http://codecademy.com',
58
+ trackingTarget: '',
59
+ type: 'link'
60
+ }], [{
61
+ id: 'sublink-2',
62
+ icon: PersonIcon,
63
+ text: 'Log out',
64
+ href: 'http://codecademy.com',
65
+ trackingTarget: '',
66
+ type: 'link'
67
+ }]],
68
+ text: 'string;',
69
+ trackingTarget: 'string'
70
+ }]
71
+ }
72
+ }
73
+ };
74
+ export default meta;
75
+ export const Default = {
76
+ render: args => /*#__PURE__*/_jsx(AppHeader, {
77
+ ...args
78
+ }),
79
+ name: 'LXStudio AppHeader'
80
+ };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AppHeaderMobile } from '../../../index';
3
+ declare const meta: Meta<typeof AppHeaderMobile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppHeaderMobile>;
6
+ export declare const Default: Story;
@@ -0,0 +1,80 @@
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
+ args: {
7
+ action: () => {},
8
+ isEnterprise: true,
9
+ items: {
10
+ left: [{
11
+ id: 'render-element',
12
+ renderElement: () => /*#__PURE__*/_jsx(LogoLXStudio, {
13
+ height: 1,
14
+ width: 1
15
+ }),
16
+ type: 'render-element'
17
+ }],
18
+ right: [],
19
+ mainMenu: [{
20
+ id: 'menu',
21
+ text: 'Menu',
22
+ icon: LayoutModuleIcon,
23
+ isIconOnly: true,
24
+ popover: [{
25
+ id: 'sublink-1',
26
+ text: 'Percipio',
27
+ href: 'http://codecademy.com',
28
+ trackingTarget: '',
29
+ type: 'link',
30
+ icon: PercipioIcon
31
+ }],
32
+ trackingTarget: '',
33
+ type: 'dropdown'
34
+ }, {
35
+ id: 'profile-dropdown',
36
+ type: 'profile-dropdown',
37
+ avatar: 'https://pbs.twimg.com/media/F9QcGzgXEAAPqLo?format=jpg&name=small',
38
+ userDisplayName: 'cinnamoroll',
39
+ popover: [[{
40
+ id: 'sublink-1',
41
+ icon: PersonIcon,
42
+ text: 'My profile',
43
+ href: 'http://codecademy.com',
44
+ trackingTarget: '',
45
+ type: 'link'
46
+ }, {
47
+ id: 'sublink-2',
48
+ icon: GearIcon,
49
+ text: 'Settings',
50
+ href: 'http://codecademy.com',
51
+ trackingTarget: '',
52
+ type: 'link'
53
+ }, {
54
+ id: 'sublink-2',
55
+ icon: SupportIcon,
56
+ text: 'Help',
57
+ href: 'http://codecademy.com',
58
+ trackingTarget: '',
59
+ type: 'link'
60
+ }], [{
61
+ id: 'sublink-2',
62
+ icon: PersonIcon,
63
+ text: 'Log out',
64
+ href: 'http://codecademy.com',
65
+ trackingTarget: '',
66
+ type: 'link'
67
+ }]],
68
+ text: 'string;',
69
+ trackingTarget: 'string'
70
+ }]
71
+ }
72
+ }
73
+ };
74
+ export default meta;
75
+ export const Default = {
76
+ render: args => /*#__PURE__*/_jsx(AppHeaderMobile, {
77
+ ...args
78
+ }),
79
+ name: 'LXStudio AppHeaderMobile'
80
+ };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
3
  "description": "Brand component library for Codecademy",
4
- "version": "0.17.2-alpha.f5221dbcfc.0",
4
+ "version": "0.18.0-alpha.32ee3638f2.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
- "@emotion/is-prop-valid": "^1.2.1",
7
+ "@emotion/is-prop-valid": "1.2.1",
8
8
  "@splidejs/react-splide": "^0.7.12",
9
9
  "@splidejs/splide": "4.1.3",
10
10
  "classnames": "^2.3.2",