@codecademy/brand 2.0.0-alpha.64890e8dbf.0 → 2.0.0-alpha.683b4b5c61.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/README.md +1 -1
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +7 -8
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.js +2 -4
- package/dist/AppHeader/Search/consts.js +1 -1
- package/dist/AppHeader/index.js +2 -5
- package/dist/AppHeaderMobile/AppHeaderSubMenuMobile/index.js +5 -7
- package/dist/FeatureList/index.js +5 -4
- package/dist/GlobalFooter/FooterNavLinks/CatalogLinks.js +6 -9
- package/dist/GlobalFooter/FooterNavLinks/CompanyLinks.js +1 -1
- package/dist/GlobalFooter/FooterNavLinks/ReferralRock/ReferAFriendLinkWithModal.js +3 -3
- package/dist/GlobalFooter/index.js +17 -25
- package/dist/GlobalHeader/GlobalHeaderItems.js +6 -3
- package/dist/GlobalHeader/GlobalHeaderVariants.js +33 -33
- package/dist/GlobalHeader/index.js +46 -49
- package/dist/LandingPage/PageFeaturesEnhanced.js +3 -0
- package/dist/LearningOutcomeAssessmentScores/AssessmentDetail.js +55 -0
- package/dist/LearningOutcomeAssessmentScores/index.js +24 -0
- package/dist/LearningOutcomeCard/index.js +61 -26
- package/dist/LearningOutcomeFlyout/index.js +168 -0
- package/dist/LearningOutcomeTile/index.js +1 -3
- package/dist/PlanCard/index.js +75 -28
- package/dist/index.js +3 -3
- package/dist/lib/catalogList/index.js +3 -3
- package/dist/lib/resourcesList/index.js +2 -11
- package/dist/stories/Molecules/LearningOutcomeAssessmentScores.stories.js +23 -0
- package/dist/stories/Molecules/LearningOutcomeCard.stories.js +16 -0
- package/dist/stories/Molecules/LearningOutcomeFlyout.stories.js +35 -0
- package/package.json +1 -1
|
@@ -56,7 +56,7 @@ export const footerResourcesList = [{
|
|
|
56
56
|
trackingTarget: 'workspaces',
|
|
57
57
|
text: 'Workspaces'
|
|
58
58
|
}];
|
|
59
|
-
export const getHeaderResourcesList =
|
|
59
|
+
export const getHeaderResourcesList = () => {
|
|
60
60
|
const inspirationSection = {
|
|
61
61
|
title: 'Inspiration & career',
|
|
62
62
|
links: [{
|
|
@@ -83,7 +83,7 @@ export const getHeaderResourcesList = isLiveLearningHubEnabled => {
|
|
|
83
83
|
trackingTarget: 'topnav_resources_inspiration_learning_tips',
|
|
84
84
|
type: 'link',
|
|
85
85
|
newTab: true
|
|
86
|
-
},
|
|
86
|
+
}, {
|
|
87
87
|
id: 'career-center',
|
|
88
88
|
href: '/career-center',
|
|
89
89
|
text: 'Career Center',
|
|
@@ -92,15 +92,6 @@ export const getHeaderResourcesList = isLiveLearningHubEnabled => {
|
|
|
92
92
|
type: 'link',
|
|
93
93
|
newTab: true,
|
|
94
94
|
badge: renderNewBadge()
|
|
95
|
-
} : {
|
|
96
|
-
id: 'job-readiness-check',
|
|
97
|
-
href: '/job-readiness',
|
|
98
|
-
text: 'Job-readiness checker',
|
|
99
|
-
description: 'Analyze your compatibility with tech roles using AI.',
|
|
100
|
-
trackingTarget: 'topnav_resources_inspiration_job_readiness_checker',
|
|
101
|
-
type: 'link',
|
|
102
|
-
newTab: true,
|
|
103
|
-
badge: renderNewBadge()
|
|
104
95
|
}]
|
|
105
96
|
};
|
|
106
97
|
return [{
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LearningOutcomeAssessmentScores } from '../../LearningOutcomeAssessmentScores';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
const meta = {
|
|
4
|
+
component: LearningOutcomeAssessmentScores,
|
|
5
|
+
args: {}
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export const Example = () => {
|
|
9
|
+
return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
|
|
10
|
+
highestScore: 100,
|
|
11
|
+
highestScoreAchievedAt: "10/01",
|
|
12
|
+
latestScore: 50,
|
|
13
|
+
latestScoreAchievedAt: "10/23"
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export const NoScores = () => {
|
|
17
|
+
return /*#__PURE__*/_jsx(LearningOutcomeAssessmentScores, {
|
|
18
|
+
highestScore: null,
|
|
19
|
+
highestScoreAchievedAt: null,
|
|
20
|
+
latestScore: null,
|
|
21
|
+
latestScoreAchievedAt: null
|
|
22
|
+
});
|
|
23
|
+
};
|
|
@@ -56,4 +56,20 @@ export const EmphasizedCardWithProgress100 = {
|
|
|
56
56
|
})
|
|
57
57
|
}),
|
|
58
58
|
name: 'Emphasized card displaying 100% progress, for use in the Learning Environment'
|
|
59
|
+
};
|
|
60
|
+
export const EmphasizedCardWithAnimation = {
|
|
61
|
+
render: args => /*#__PURE__*/_jsx(Background, {
|
|
62
|
+
bg: "navy",
|
|
63
|
+
p: 24,
|
|
64
|
+
children: /*#__PURE__*/_jsx(LearningOutcomeCard, {
|
|
65
|
+
emphasized: true,
|
|
66
|
+
progress: 80,
|
|
67
|
+
progressUpdateData: {
|
|
68
|
+
previousProgress: 50,
|
|
69
|
+
progressDuration: 500
|
|
70
|
+
},
|
|
71
|
+
...args
|
|
72
|
+
})
|
|
73
|
+
}),
|
|
74
|
+
name: 'Emphasized card first displays 50% progress then animates until showing 80%, for use in the Learning Environment'
|
|
59
75
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FillButton, FlexBox } from '@codecademy/gamut';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { LearningOutcomeFlyout } from '../../LearningOutcomeFlyout';
|
|
4
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
const meta = {
|
|
6
|
+
component: LearningOutcomeFlyout,
|
|
7
|
+
args: {}
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export const Example = () => {
|
|
11
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
12
|
+
const toggleOpen = () => setIsExpanded(!isExpanded);
|
|
13
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
14
|
+
children: [/*#__PURE__*/_jsx(FillButton, {
|
|
15
|
+
onClick: toggleOpen,
|
|
16
|
+
children: "Open Flyout"
|
|
17
|
+
}), /*#__PURE__*/_jsx(FlexBox, {
|
|
18
|
+
width: "100%",
|
|
19
|
+
children: /*#__PURE__*/_jsx(LearningOutcomeFlyout, {
|
|
20
|
+
expanded: isExpanded,
|
|
21
|
+
learningOutcome: {
|
|
22
|
+
highestScore: 100,
|
|
23
|
+
highestScoreAchievedAt: '10/01',
|
|
24
|
+
latestScore: 68,
|
|
25
|
+
latestScoreAchievedAt: '10/01',
|
|
26
|
+
level: 2,
|
|
27
|
+
outcome: 'Understand the basics of React',
|
|
28
|
+
percentComplete: 75
|
|
29
|
+
},
|
|
30
|
+
learningOutcomeHref: "/learning-outcomes/123",
|
|
31
|
+
onClose: () => setIsExpanded(false)
|
|
32
|
+
})
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
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.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.683b4b5c61.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/is-prop-valid": "^1.2.1",
|