@codecademy/brand 2.6.0-alpha.f6d3f85aaf.0 → 2.7.0-alpha.192653a9f7.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 (38) hide show
  1. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +26 -5
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -5
  3. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +12 -56
  4. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +3 -5
  5. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavPanels.d.ts +4 -0
  6. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavPanels.js +99 -0
  7. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavSection.d.ts +15 -0
  8. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavSection.js +68 -0
  9. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/consts.d.ts +7 -0
  10. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/consts.js +39 -0
  11. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/index.d.ts +11 -0
  12. package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/index.js +68 -0
  13. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
  14. package/dist/Banner/EnhancedBanner.d.ts +1 -1
  15. package/dist/Banner/EnhancedBanner.js +5 -5
  16. package/dist/Banner/index.d.ts +1 -1
  17. package/dist/Banner/index.js +3 -3
  18. package/dist/CareerPathCard/index.d.ts +4 -1
  19. package/dist/CareerPathCard/index.js +15 -7
  20. package/dist/CertificationPathCard/index.d.ts +4 -1
  21. package/dist/CertificationPathCard/index.js +17 -9
  22. package/dist/ContentGroupBaseCard/index.d.ts +5 -3
  23. package/dist/ContentGroupBaseCard/index.js +129 -72
  24. package/dist/ContentGroupBaseCard/shared.js +29 -23
  25. package/dist/CourseCard/index.d.ts +4 -1
  26. package/dist/CourseCard/index.js +15 -11
  27. package/dist/GlobalHeader/context.d.ts +8 -0
  28. package/dist/GlobalHeader/context.js +9 -0
  29. package/dist/GlobalHeader/index.js +43 -37
  30. package/dist/Logos/shared.d.ts +0 -7
  31. package/dist/SkillPathCard/index.d.ts +4 -1
  32. package/dist/SkillPathCard/index.js +15 -7
  33. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +3 -1
  34. package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +3 -1
  35. package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +3 -1
  36. package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +3 -1
  37. package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +3 -1
  38. package/package.json +1 -1
@@ -46,9 +46,6 @@ declare const logoStyles: import("@codecademy/variance/dist/types/config").Parse
46
46
  readonly gridArea: {
47
47
  readonly property: "gridArea";
48
48
  };
49
- readonly containerType: {
50
- readonly property: "containerType";
51
- };
52
49
  readonly display: {
53
50
  readonly property: "display";
54
51
  };
@@ -230,9 +227,6 @@ declare const composedLogoStyles: import("@codecademy/variance/dist/types/config
230
227
  readonly gridArea: {
231
228
  readonly property: "gridArea";
232
229
  };
233
- readonly containerType: {
234
- readonly property: "containerType";
235
- };
236
230
  readonly display: {
237
231
  readonly property: "display";
238
232
  };
@@ -460,7 +454,6 @@ export declare const StyledSVGWrapper: import("@emotion/styled").StyledComponent
460
454
  gridArea?: import("@codecademy/variance/dist/types/config").Scale<{
461
455
  readonly property: "gridArea";
462
456
  }>;
463
- containerType?: unknown;
464
457
  display?: import("@codecademy/variance/dist/types/config").Scale<{
465
458
  readonly property: "display";
466
459
  }>;
@@ -13,5 +13,8 @@ export interface SkillPathCardProps {
13
13
  timeToComplete?: number | null;
14
14
  header?: React.ReactNode;
15
15
  footer?: React.ReactNode;
16
+ openInNewTab?: boolean;
17
+ href: string;
18
+ onClick: () => void;
16
19
  }
17
- export declare const SkillPathCard: React.FC<SkillPathCardProps>;
20
+ export declare const SkillPathCard: import("react").ForwardRefExoticComponent<SkillPathCardProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -1,8 +1,9 @@
1
+ import { forwardRef } from 'react';
1
2
  import { ContentGroupBaseCard } from '../ContentGroupBaseCard';
2
3
  import { getPathImageUrl } from '../ContentGroupBaseCard/helpers';
3
- import { CertificateComponent, CourseCountComponent, Divider } from '../ContentGroupBaseCard/shared';
4
+ import { CertificateComponent, CourseCountComponent } from '../ContentGroupBaseCard/shared';
4
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
- export const SkillPathCard = ({
6
+ export const SkillPathCard = /*#__PURE__*/forwardRef(({
6
7
  title,
7
8
  shortDescription,
8
9
  difficulty,
@@ -14,8 +15,11 @@ export const SkillPathCard = ({
14
15
  isFullSize = false,
15
16
  timeToComplete,
16
17
  header,
17
- footer
18
- }) => {
18
+ footer,
19
+ openInNewTab = false,
20
+ href,
21
+ onClick
22
+ }, ref) => {
19
23
  return /*#__PURE__*/_jsxs(ContentGroupBaseCard, {
20
24
  headerBackgroundColor: "blue-100",
21
25
  headerText: "Skill path",
@@ -31,8 +35,12 @@ export const SkillPathCard = ({
31
35
  timeToComplete: timeToComplete,
32
36
  header: header,
33
37
  footer: footer,
34
- children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CourseCountComponent, {
38
+ openInNewTab: openInNewTab,
39
+ href: href,
40
+ onClick: onClick,
41
+ ref: ref,
42
+ children: [/*#__PURE__*/_jsx(CourseCountComponent, {
35
43
  count: courseCount
36
- }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CertificateComponent, {})]
44
+ }), /*#__PURE__*/_jsx(CertificateComponent, {})]
37
45
  });
38
- };
46
+ });
@@ -8,7 +8,9 @@ const meta = {
8
8
  headerBackgroundColor: 'pink',
9
9
  headerText: 'Course',
10
10
  title: 'Python 101',
11
- numLessons: 20
11
+ numLessons: 20,
12
+ href: '/learn/python-101',
13
+ onClick: () => {}
12
14
  }
13
15
  };
14
16
  export default meta;
@@ -9,7 +9,9 @@ const meta = {
9
9
  difficulty: CourseDifficulty.Beginner,
10
10
  title: 'Python 101',
11
11
  imageUrl: 'https://static-assets.codecademy.com/components/curriculum/path/front-end-engineer-career-path/curriculum-card.svg',
12
- timeToComplete: 15
12
+ timeToComplete: 15,
13
+ href: '/learn/paths/python-101',
14
+ onClick: () => {}
13
15
  }
14
16
  };
15
17
  export default meta;
@@ -7,7 +7,9 @@ const meta = {
7
7
  title: 'CLF-C02: AWS Certified Cloud Practitioner',
8
8
  courseCount: 16,
9
9
  shortDescription: 'Master AWS Cloud fundamentals, security, and migration strategies to prepare for the AWS Certified Cloud Practitioner exam (CLF-C02) and enhance your cloud skills.',
10
- difficulty: CourseDifficulty.Beginner
10
+ difficulty: CourseDifficulty.Beginner,
11
+ href: '/learn/ext-paths/certification-prep-clf-c02',
12
+ onClick: () => {}
11
13
  }
12
14
  };
13
15
  export default meta;
@@ -9,7 +9,9 @@ const meta = {
9
9
  pro: false,
10
10
  shortDescription: 'Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.',
11
11
  difficulty: CourseDifficulty.Beginner,
12
- timeToComplete: 3
12
+ timeToComplete: 3,
13
+ href: '/learn/javascript',
14
+ onClick: () => {}
13
15
  }
14
16
  };
15
17
  export default meta;
@@ -9,7 +9,9 @@ const meta = {
9
9
  shortDescription: 'Web applications are constantly under threat. Authentication and authorization, protected data, and secure code will protect your web app.',
10
10
  difficulty: CourseDifficulty.Intermediate,
11
11
  imageUrl: 'https://static-assets.codecademy.com/components/curriculum/path/securing-express-applications/curriculum-card.svg',
12
- timeToComplete: 10
12
+ timeToComplete: 10,
13
+ href: '/learn/paths/securing-express-applications',
14
+ onClick: () => {}
13
15
  }
14
16
  };
15
17
  export default meta;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
3
  "description": "Brand component library for Codecademy",
4
- "version": "2.6.0-alpha.f6d3f85aaf.0",
4
+ "version": "2.7.0-alpha.192653a9f7.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",