@codecademy/brand 0.16.1-alpha.6e91e8c71d.0 → 0.17.0-alpha.2ec7fcac4a.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/AppHeaderCatalogSection/index.js +3 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderResourcesDropdown/index.d.ts +1 -1
- package/dist/AppHeader/Search/SearchPane.d.ts +1 -3
- package/dist/AppHeader/Search/SearchPane.js +9 -10
- package/dist/AppHeader/Search/useHeaderSearch.js +2 -7
- package/dist/AppHeader/shared/elements.js +6 -8
- package/dist/GlobalHeader/index.d.ts +0 -3
- package/dist/GlobalHeader/index.js +31 -39
- package/dist/GlobalHeader/types.d.ts +0 -1
- package/dist/NotificationList/NotificationItem.js +3 -3
- package/dist/lib/catalogList/index.js +1 -8
- package/dist/stories/Atoms/Subgrid.stories.js +1 -1
- package/dist/stories/Organisms/GlobalHeader/About.stories.js +8 -8
- package/dist/stories/Organisms/GlobalPage.stories.js +4 -4
- package/dist/stories/Organisms/PlanCard.stories.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { TinyBlocks } from '@codecademy/gamut-illustrations';
|
|
|
4
4
|
import { Background } from '@codecademy/gamut-styles';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { useContext, useEffect, useRef } from 'react';
|
|
7
|
-
import {
|
|
7
|
+
import { HeaderQuizContext } from '../../../GlobalHeader';
|
|
8
8
|
import { careerPaths, getTopSubjects, topLanguages } from '../../../lib/catalogList';
|
|
9
9
|
import { DescriptionSectionContainer, LayoutGridAntiAliased, useMegaMenuHeaderResponsiveStyles } from '../../shared';
|
|
10
10
|
import { useAppHeaderDropdownContext } from '../AppHeaderDropdownProvider';
|
|
@@ -31,13 +31,6 @@ const catalogButtonData = {
|
|
|
31
31
|
href: '/catalog',
|
|
32
32
|
trackingTarget: 'topnav_catalog_explore_full'
|
|
33
33
|
};
|
|
34
|
-
const itHighlightData = {
|
|
35
|
-
text: 'Stand out in IT with new skill paths to prepare for top industry certifications.',
|
|
36
|
-
id: 'nav-highlight',
|
|
37
|
-
type: 'link',
|
|
38
|
-
href: '/catalog/subject/information-technology?type=skill-path',
|
|
39
|
-
trackingTarget: 'topnav_catalog_banner_it'
|
|
40
|
-
};
|
|
41
34
|
const certPrepHighlight = {
|
|
42
35
|
text: 'Prepare for top industry certifications — explore certification prep paths.',
|
|
43
36
|
id: 'nav-highlight',
|
|
@@ -61,9 +54,6 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
61
54
|
showOnboardingQuiz,
|
|
62
55
|
showSortingQuiz
|
|
63
56
|
} = useContext(HeaderQuizContext);
|
|
64
|
-
const {
|
|
65
|
-
newCertPathsEnabled
|
|
66
|
-
} = useContext(CertPathContext);
|
|
67
57
|
const tabIndex = isOpen === false ? -1 : 0;
|
|
68
58
|
const styles = useMegaMenuHeaderResponsiveStyles();
|
|
69
59
|
const bannerStyles = useBannerResponsiveStyles();
|
|
@@ -73,7 +63,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
73
63
|
setFirstItemRef(firstElemRef.current);
|
|
74
64
|
}
|
|
75
65
|
}, [setFirstItemRef, firstElemRef]);
|
|
76
|
-
const navHighlightData =
|
|
66
|
+
const navHighlightData = certPrepHighlight;
|
|
77
67
|
const topSubjects = getTopSubjects();
|
|
78
68
|
const onClick = (event, linkItem) => {
|
|
79
69
|
handleClose?.();
|
|
@@ -186,7 +176,7 @@ export const AppHeaderCatalogSection = /*#__PURE__*/React.forwardRef((_ref, ref)
|
|
|
186
176
|
children: /*#__PURE__*/_jsxs(FlexBox, {
|
|
187
177
|
alignItems: "center",
|
|
188
178
|
gap: 8,
|
|
189
|
-
children: [item.text,
|
|
179
|
+
children: [item.text, item.badge]
|
|
190
180
|
})
|
|
191
181
|
})
|
|
192
182
|
}, item.id)), topSubjects.map(item => /*#__PURE__*/_jsx(Box, {
|
|
@@ -2,6 +2,6 @@ import * as React from 'react';
|
|
|
2
2
|
import { AppHeaderAction, AppHeaderResourcesDropdownItem } from '../../shared';
|
|
3
3
|
export type AppHeaderResourceDropdownProps = AppHeaderAction & {
|
|
4
4
|
item: AppHeaderResourcesDropdownItem;
|
|
5
|
-
isAnon:
|
|
5
|
+
isAnon: Boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const AppHeaderResourcesDropdown: React.FC<AppHeaderResourceDropdownProps>;
|
|
@@ -3,6 +3,4 @@ import { SearchPaneProps } from './types';
|
|
|
3
3
|
export declare const SemiboldSearchIcon: import("@emotion/styled").StyledComponent<(import("@codecademy/gamut-icons").GamutIconProps & React.RefAttributes<SVGSVGElement>) & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
}, {}, {}>;
|
|
6
|
-
export declare const SearchPane: React.FC<SearchPaneProps
|
|
7
|
-
newCertPathsEnabled?: boolean;
|
|
8
|
-
}>;
|
|
6
|
+
export declare const SearchPane: React.FC<SearchPaneProps>;
|