@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.
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogDropdown/index.js +26 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +0 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.js +12 -56
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +3 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavPanels.d.ts +4 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavPanels.js +99 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavSection.d.ts +15 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/NavSection.js +68 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/consts.d.ts +7 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/consts.js +39 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/index.d.ts +11 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSectionVariant/index.js +68 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
- package/dist/Banner/EnhancedBanner.d.ts +1 -1
- package/dist/Banner/EnhancedBanner.js +5 -5
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +3 -3
- package/dist/CareerPathCard/index.d.ts +4 -1
- package/dist/CareerPathCard/index.js +15 -7
- package/dist/CertificationPathCard/index.d.ts +4 -1
- package/dist/CertificationPathCard/index.js +17 -9
- package/dist/ContentGroupBaseCard/index.d.ts +5 -3
- package/dist/ContentGroupBaseCard/index.js +129 -72
- package/dist/ContentGroupBaseCard/shared.js +29 -23
- package/dist/CourseCard/index.d.ts +4 -1
- package/dist/CourseCard/index.js +15 -11
- package/dist/GlobalHeader/context.d.ts +8 -0
- package/dist/GlobalHeader/context.js +9 -0
- package/dist/GlobalHeader/index.js +43 -37
- package/dist/Logos/shared.d.ts +0 -7
- package/dist/SkillPathCard/index.d.ts +4 -1
- package/dist/SkillPathCard/index.js +15 -7
- package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +3 -1
- package/dist/stories/Molecules/CurriculumCards/CareerPathCard.stories.js +3 -1
- package/dist/stories/Molecules/CurriculumCards/CertificationPathCard.stories.js +3 -1
- package/dist/stories/Molecules/CurriculumCards/CourseCard.stories.js +3 -1
- package/dist/stories/Molecules/CurriculumCards/SkillPathCard.stories.js +3 -1
- package/package.json +1 -1
package/dist/Logos/shared.d.ts
CHANGED
|
@@ -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:
|
|
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
|
|
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
|
-
|
|
38
|
+
openInNewTab: openInNewTab,
|
|
39
|
+
href: href,
|
|
40
|
+
onClick: onClick,
|
|
41
|
+
ref: ref,
|
|
42
|
+
children: [/*#__PURE__*/_jsx(CourseCountComponent, {
|
|
35
43
|
count: courseCount
|
|
36
|
-
}), /*#__PURE__*/_jsx(
|
|
44
|
+
}), /*#__PURE__*/_jsx(CertificateComponent, {})]
|
|
37
45
|
});
|
|
38
|
-
};
|
|
46
|
+
});
|
|
@@ -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.
|
|
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",
|