@codecademy/brand 1.0.0-alpha.c7284ad1af.0 → 1.0.0-alpha.e97ad261ab.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/AppBar/AppBarSection.d.ts +10 -0
- package/dist/AppBar/AppBarSection.js +42 -0
- package/dist/AppBar/index.d.ts +9 -0
- package/dist/AppBar/index.js +21 -0
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/elements.d.ts +14 -14
- package/dist/AppHeader/AppHeaderElements/AppHeaderCatalogSection/index.js +3 -13
- package/dist/AppHeader/AppHeaderElements/AppHeaderLink/index.d.ts +5 -5
- package/dist/AppHeader/AppHeaderElements/AppHeaderListItem/index.d.ts +1 -1
- 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 +11 -12
- package/dist/AppHeader/Search/useHeaderSearch.js +2 -7
- package/dist/AppHeader/index.d.ts +1 -1
- package/dist/AppHeader/index.js +4 -3
- package/dist/AppHeader/shared/elements.d.ts +9 -9
- package/dist/AppHeader/shared/elements.js +8 -6
- package/dist/Carousel/elements.d.ts +2 -2
- package/dist/CertificationPathCard/index.js +6 -1
- package/dist/ContentGroupBaseCard/index.d.ts +1 -0
- package/dist/ContentGroupBaseCard/index.js +2 -3
- package/dist/GlobalFooter/FooterHeading.d.ts +2 -2
- package/dist/GlobalFooter/FooterLinks.d.ts +1 -1
- package/dist/GlobalFooter/FooterSubHeading.d.ts +2 -2
- 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/LayoutMenuVariant/AccordionMenu.d.ts +2 -0
- package/dist/LayoutMenuVariant/AccordionMenu.js +3 -3
- package/dist/LayoutMenuVariant/LayoutMenuSection.js +2 -1
- package/dist/LayoutMenuVariant/SectionItemLink.d.ts +2 -1
- package/dist/LayoutMenuVariant/SectionItemLink.js +2 -1
- package/dist/NotificationList/NotificationItem.js +3 -3
- package/dist/Notifications/elements.d.ts +2 -2
- package/dist/PlanCard/PricingAmount.d.ts +1 -1
- package/dist/PlanCard/PricingAmount.js +4 -4
- package/dist/PlanCard/index.d.ts +1 -1
- package/dist/PlanCard/index.js +14 -14
- package/dist/ProLabel/index.d.ts +1 -1
- package/dist/ResourceCard/index.d.ts +4 -3
- package/dist/ResourceCard/index.js +5 -2
- package/dist/Testimonial/index.d.ts +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/lib/catalogList/index.js +1 -8
- package/dist/stories/Atoms/Subgrid.stories.js +1 -1
- package/dist/stories/Molecules/AppBar.stories.d.ts +15 -0
- package/dist/stories/Molecules/AppBar.stories.js +32 -0
- 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 +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import { StyleProps } from '@codecademy/variance';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
declare const positionVariants: (props: import("@codecademy/variance/dist/types/config").VariantProps<"position", false | "center" | "left" | "right"> & {
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
}) => import("@codecademy/variance").CSSObject;
|
|
7
|
+
export interface AppBarSectionProps extends StyleProps<typeof positionVariants>, WithChildrenProp {
|
|
8
|
+
}
|
|
9
|
+
export declare const AppBarSection: React.FC<AppBarSectionProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _styled from "@emotion/styled/base";
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
import { styledOptions, variant } from '@codecademy/gamut-styles';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const positionVariants = variant({
|
|
7
|
+
prop: 'position',
|
|
8
|
+
base: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
height: '100%',
|
|
12
|
+
zIndex: 1
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
left: {
|
|
16
|
+
flex: 1
|
|
17
|
+
},
|
|
18
|
+
right: {
|
|
19
|
+
flex: 1,
|
|
20
|
+
justifyContent: 'flex-end'
|
|
21
|
+
},
|
|
22
|
+
center: {
|
|
23
|
+
flex: 2,
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
textAlign: 'center'
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
const StyledSection = /*#__PURE__*/_styled('div', _extends({}, {
|
|
30
|
+
target: "eszklt40",
|
|
31
|
+
label: "StyledSection"
|
|
32
|
+
}, styledOptions))(positionVariants, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9BcHBCYXIvQXBwQmFyU2VjdGlvbi50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBa0NzQiIsImZpbGUiOiIuLi8uLi9zcmMvQXBwQmFyL0FwcEJhclNlY3Rpb24udHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgV2l0aENoaWxkcmVuUHJvcCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IHN0eWxlZE9wdGlvbnMsIHZhcmlhbnQgfSBmcm9tICdAY29kZWNhZGVteS9nYW11dC1zdHlsZXMnO1xuaW1wb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ZW4sXG59KSA9PiB7XG4gIHJldHVybiA8U3R5bGVkU2VjdGlvbiBwb3NpdGlvbj17cG9zaXRpb259PntjaGlsZHJlbn08L1N0eWxlZFNlY3Rpb24+O1xufTtcbiJdfQ== */");
|
|
33
|
+
export const AppBarSection = _ref => {
|
|
34
|
+
let {
|
|
35
|
+
position,
|
|
36
|
+
children
|
|
37
|
+
} = _ref;
|
|
38
|
+
return /*#__PURE__*/_jsx(StyledSection, {
|
|
39
|
+
position: position,
|
|
40
|
+
children: children
|
|
41
|
+
});
|
|
42
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ContentContainer, WithChildrenProp } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface AppBarProps extends WithChildrenProp, Pick<React.ComponentProps<typeof ContentContainer>, 'aria-label' | 'as'> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the container should be larger than the default content size.
|
|
6
|
+
*/
|
|
7
|
+
wide?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const AppBar: React.FC<AppBarProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContentContainer } from '@codecademy/gamut';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
export const AppBar = _ref => {
|
|
5
|
+
let {
|
|
6
|
+
'aria-label': ariaLabel,
|
|
7
|
+
as,
|
|
8
|
+
wide,
|
|
9
|
+
children
|
|
10
|
+
} = _ref;
|
|
11
|
+
return /*#__PURE__*/_jsx(ContentContainer, {
|
|
12
|
+
"aria-label": ariaLabel,
|
|
13
|
+
as: as,
|
|
14
|
+
display: "flex",
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
height: "100%",
|
|
17
|
+
size: wide ? 'wide' : 'medium',
|
|
18
|
+
zIndex: 14,
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
};
|