@codecademy/brand 1.18.4-alpha.d06aa06037.0 → 1.19.0-alpha.06f6183855.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/AppHeaderLinkSections/index.js +0 -0
  2. package/dist/CareerPathCard/index.d.ts +0 -2
  3. package/dist/CareerPathCard/index.js +1 -5
  4. package/dist/CertificationPathCard/index.d.ts +0 -2
  5. package/dist/CertificationPathCard/index.js +1 -5
  6. package/dist/ContentGroupBaseCard/index.d.ts +0 -5
  7. package/dist/ContentGroupBaseCard/index.js +6 -8
  8. package/dist/CourseCard/index.d.ts +0 -2
  9. package/dist/CourseCard/index.js +1 -5
  10. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
  11. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +57 -0
  12. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  13. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +35 -0
  14. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  15. package/dist/LearningOutcomeBadges/index.js +2 -0
  16. package/dist/LearningOutcomePopover/index.d.ts +11 -0
  17. package/dist/LearningOutcomePopover/index.js +125 -0
  18. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  19. package/dist/LearningOutcomeTile/Tile.js +79 -0
  20. package/dist/LearningOutcomeTile/index.d.ts +2 -0
  21. package/dist/LearningOutcomeTile/index.js +73 -0
  22. package/dist/LearningOutcomeTile/types.d.ts +38 -0
  23. package/dist/LearningOutcomeTile/types.js +6 -0
  24. package/dist/SkillPathCard/index.d.ts +0 -2
  25. package/dist/SkillPathCard/index.js +1 -5
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.js +2 -0
  28. package/dist/stories/Molecules/ContentGroupBaseCard.stories.d.ts +0 -1
  29. package/dist/stories/Molecules/ContentGroupBaseCard.stories.js +2 -28
  30. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
  31. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  32. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
  33. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  34. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
  35. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +40 -0
  36. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +10 -0
  37. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +199 -0
  38. package/package.json +1 -1
@@ -12,8 +12,6 @@ type CareerPathCardProps = {
12
12
  isFullSize?: boolean;
13
13
  headingLevel?: HeadingTags;
14
14
  timeToComplete?: number | null;
15
- header?: React.ReactNode;
16
- footer?: React.ReactNode;
17
15
  };
18
16
  export declare const CareerPathCard: React.FC<CareerPathCardProps>;
19
17
  export {};
@@ -13,9 +13,7 @@ export const CareerPathCard = ({
13
13
  isFullSize,
14
14
  hasCareerJourney,
15
15
  headingLevel = 'h3',
16
- timeToComplete,
17
- header,
18
- footer
16
+ timeToComplete
19
17
  }) => {
20
18
  return /*#__PURE__*/_jsxs(ContentGroupBaseCard, {
21
19
  headerBackgroundColor: "navy",
@@ -30,8 +28,6 @@ export const CareerPathCard = ({
30
28
  isFullSize: isFullSize,
31
29
  enrollmentStatus: enrollmentStatus,
32
30
  timeToComplete: timeToComplete,
33
- header: header,
34
- footer: footer,
35
31
  children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CourseCountComponent, {
36
32
  count: courseCount
37
33
  }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CertificateComponent, {
@@ -13,8 +13,6 @@ export interface CertificationPathCardProps {
13
13
  certificationProvider?: CertificationProviderDetails | null;
14
14
  headingLevel?: HeadingTags;
15
15
  timeToComplete?: number | null;
16
- header?: React.ReactNode;
17
- footer?: React.ReactNode;
18
16
  }
19
17
  export declare const CertificationPathCard: React.FC<CertificationPathCardProps>;
20
18
  export {};
@@ -9,9 +9,7 @@ export const CertificationPathCard = ({
9
9
  difficulty,
10
10
  certificationProvider,
11
11
  headingLevel,
12
- timeToComplete,
13
- header,
14
- footer
12
+ timeToComplete
15
13
  }) => {
16
14
  const logoWidthOverrides = {
17
15
  AWS: 28,
@@ -33,8 +31,6 @@ export const CertificationPathCard = ({
33
31
  logoUrl: certificationProvider?.logoUrl || '',
34
32
  logoHeight: logoWidthOverrides[certificationProvider?.name || ''] || 24
35
33
  },
36
- header: header,
37
- footer: footer,
38
34
  children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CourseCountComponent, {
39
35
  count: courseCount
40
36
  })]
@@ -21,11 +21,6 @@ type ContentGroupBaseCardProps = {
21
21
  logoHeight: number;
22
22
  };
23
23
  children?: React.ReactNode;
24
- header?: React.ReactNode;
25
- footer?: React.ReactNode;
26
24
  };
27
- export declare const ContentGroupBaseCardHeaderBackground: import("@emotion/styled").StyledComponent<Omit<import("@codecademy/gamut-styles").BackgroundProps, "ref"> & React.RefAttributes<HTMLDivElement> & {
28
- theme?: import("@emotion/react").Theme;
29
- }, {}, {}>;
30
25
  export declare const ContentGroupBaseCard: React.FC<ContentGroupBaseCardProps>;
31
26
  export {};
@@ -12,16 +12,16 @@ const Image = Box.withComponent('img', {
12
12
  target: "e1a33thh1",
13
13
  label: "Image"
14
14
  });
15
- export const ContentGroupBaseCardHeaderBackground = /*#__PURE__*/_styled(Background, {
15
+ const HeaderBackground = /*#__PURE__*/_styled(Background, {
16
16
  target: "e1a33thh0",
17
- label: "ContentGroupBaseCardHeaderBackground"
17
+ label: "HeaderBackground"
18
18
  })(css({
19
19
  pl: 12,
20
20
  py: 4,
21
21
  borderRadiusTop: 'md',
22
22
  borderRadiusBottom: 'none',
23
23
  boxShadow: `inset 0 0 0 1px ${theme.colors.white}`
24
- }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBd0RvRCIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQm94LFxuICBDYXJkLFxuICBGbGV4Qm94LFxuICBHcmlkQm94LFxuICBIZWFkaW5nVGFncyxcbiAgVGV4dCxcbn0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgTGV2ZWxJY29uIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtaWNvbnMnO1xuaW1wb3J0IHsgQmFja2dyb3VuZCwgQ29sb3JzLCBjc3MsIHRoZW1lIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBwbHVyYWxpemUgZnJvbSAncGx1cmFsaXplJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7XG4gIGdldFRpbWVUb0NvbXBsZXRlRGlzcGxheUFtb3VudCxcbiAgZ2V0VGltZVRvQ29tcGxldGVEaXNwbGF5RHVyYXRpb24sXG59IGZyb20gJy4vaGVscGVycyc7XG5pbXBvcnQgeyBEaXZpZGVyIH0gZnJvbSAnLi9zaGFyZWQnO1xuaW1wb3J0IHsgQ291cnNlRGlmZmljdWx0eSwgRW5yb2xsbWVudFN0YXR1cyB9IGZyb20gJy4vdHlwZXMnO1xuXG5jb25zdCBJbWFnZSA9IEJveC53aXRoQ29tcG9uZW50KCdpbWcnKTtcblxudHlwZ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W5kQ29sb3JcbiAgICAgICAgICB9XG4gICAgICAgID5cbiAgICAgICAgICA8VGV4dCBmb250RmFtaWx5PVwiYWNjZW50XCIgZm9udFNpemU9ezE0fT5cbiAgICAgICAgICAgIHtlbnJvbGxtZW50U3RhdHVzXG4gICAgICAgICAgICAgID8gZW5yb2xsbWVudEFzc2V0c1tlbnJvbGxtZW50U3RhdHVzXS50ZXh0XG4gICAgICAgICAgICAgIDogaGVhZGVyVGV4dH1cbiAgICAgICAgICA8L1RleHQ+XG4gICAgICAgIDwvQ29udGVudEdyb3VwQmFzZUNhcmRIZWFkZXJCYWNrZ3JvdW5kPlxuICAgICAgKX1cbiAgICAgIDxHcmlkQm94XG4gICAgICAgIGdyaWRBdXRvRmxvdz1cImNvbHVtblwiXG4gICAgICAgIGNvbHVtbkdhcD17aXNGdWxsU2l6ZSA/IDE2IDogdW5kZWZpbmVkfVxuICAgICAgICBweD17MTJ9XG4gICAgICAgIHB0PXs0fVxuICAgICAgICBwYj17NH1cbiAgICAgICAgaGVpZ2h0PVwiMTAwJVwiXG4gICAgICA+XG4gICAgICAgIDxGbGV4Qm94IGZsZXhEaXJlY3Rpb249XCJjb2x1bW5cIiB0ZXh0QWxpZ249XCJsZWZ0XCI+XG4gICAgICAgICAgPEZsZXhCb3ggZmxleERpcmVjdGlvbj1cImNvbHVtblwiIGFsaWduSXRlbXM9XCJmbGV4LXN0YXJ0XCI+XG4gICAgICAgICAgICB7YnJhbmREZXRhaWxzPy5sb2dvVXJsICYmIChcbiAgICAgICAgICAgICAgPEltYWdlXG4gICAgICAgICAgICAgICAgc3JjPXticmFuZERldGFpbHMubG9nb1VybH1cbiAgICAgICAgICAgICAgICBhcmlhLWxhYmVsPXticmFuZERldGFpbHMubmFtZX1cbiAgICAgICAgICAgICAgICB3aWR0aD1cImF1dG9cIlxuICAgICAgICAgICAgICAgIGhlaWdodD17YnJhbmREZXRhaWxzLmxvZ29IZWlnaHR9XG4gICAgICAgICAgICAgICAgbXQ9ezEyfVxuICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgKX1cbiAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgIHZhcmlhbnQ9XCJ0aXRsZS14c1wiXG4gICAgICAgICAgICAgIGFzPXtoZWFkaW5nTGV2ZWx9XG4gICAgICAgICAgICAgIHB0PXticmFuZERldGFpbHM/LmxvZ29VcmwgPyA4IDogMTJ9XG4gICAgICAgICAgICAgIHBiPXs0fVxuICAgICAgICAgICAgPlxuICAgICAgICAgICAgICB7dGl0bGV9XG4gICAgICAgICAgICA8L1RleHQ+XG4gICAgICAgICAgICB7ZGVzY3JpcHRpb24gJiYgKFxuICAgICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJwLXNtYWxsXCJcbiAgICAgICAgICAgICAgICB0cnVuY2F0ZT1cImVsbGlwc2lzXCJcbiAgICAgICAgICAgICAgICB0cnVuY2F0ZUxpbmVzPXszfVxuICAgICAgICAgICAgICAgIG1iPXsxNn1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIHtkZXNjcmlwdGlvbn1cbiAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgKX1cbiAgICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgICAgPEJveCBtdD1cImF1dG9cIj5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgICAgIDxEaXZpZGVyIC8+XG4gICAgICAgICAgICA8RmxleEJveCBqdXN0aWZ5Q29udGVudD1cInNwYWNlLWJldHdlZW5cIiBmbGV4V3JhcD1cIndyYXBcIj5cbiAgICAgICAgICAgICAge2RpZmZpY3VsdHkgJiYgKFxuICAgICAgICAgICAgICAgIDxGbGV4Qm94IGFsaWduSXRlbXM9XCJjZW50ZXJcIj5cbiAgICAgICAgICAgICAgICAgIDxGbGV4Qm94IHByPXs0fT5cbiAgICAgICAgICAgICAgICAgICAgPExldmVsSWNvbiAvPlxuICAgICAgICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICAgICAgdmFyaWFudD1cInAtc21hbGxcIlxuICAgICAgICAgICAgICAgICAgICBwbD17NH1cbiAgICAgICAgICAgICAgICAgICAgd2hpdGVTcGFjZT1cIm5vd3JhcFwiXG4gICAgICAgICAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiY2FyZC1kaWZmaWN1bHR5XCJcbiAgICAgICAgICAgICAgICAgICAgYXJpYS1sYWJlbD17YCR7ZGlmZmljdWx0eX0ke1xuICAgICAgICAgICAgICAgICAgICAgIGlzQmVnaW5uZXJDb250YWluZXIgPyAnIEZyaWVuZGx5JyA6ICcnXG4gICAgICAgICAgICAgICAgICAgIH1gfVxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICA8Yj57ZGlmZmljdWx0eX08L2I+XG4gICAgICAgICAgICAgICAgICAgIHtpc0JlZ2lubmVyQ29udGFpbmVyICYmIDw+IEZyaWVuZGx5PC8+fVxuICAgICAgICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAgICAgIDwvRmxleEJveD5cbiAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAge3JlbmRlclRpbWVUb0NvbXBsZXRlT3JOdW1MZXNzb25zKCl9XG4gICAgICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgICAgICB7Zm9vdGVyfVxuICAgICAgICAgIDwvQm94PlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgIDxCb3hcbiAgICAgICAgICBkaXNwbGF5PXtpc0Z1bGxTaXplID8geyBfOiAnbm9uZScsIG1kOiAnZmxleCcgfSA6ICdub25lJ31cbiAgICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgICBweD17NjR9XG4gICAgICAgID5cbiAgICAgICAgICA8SW1hZ2UgYXJpYS1oaWRkZW4gd2lkdGg9ezEwMH0gaGVpZ2h0PXsxMDB9IHNyYz17aW1hZ2VTcmN9IC8+XG4gICAgICAgIDwvQm94PlxuICAgICAgPC9HcmlkQm94PlxuICAgIDwvQ2FyZD5cbiAgKTtcbn07XG4iXX0= */");
24
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9Db250ZW50R3JvdXBCYXNlQ2FyZC9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0R5QiIsImZpbGUiOiIuLi8uLi9zcmMvQ29udGVudEdyb3VwQmFzZUNhcmQvaW5kZXgudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcbiAgQm94LFxuICBDYXJkLFxuICBGbGV4Qm94LFxuICBHcmlkQm94LFxuICBIZWFkaW5nVGFncyxcbiAgVGV4dCxcbn0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgTGV2ZWxJY29uIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtaWNvbnMnO1xuaW1wb3J0IHsgQmFja2dyb3VuZCwgQ29sb3JzLCBjc3MsIHRoZW1lIH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQtc3R5bGVzJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCBwbHVyYWxpemUgZnJvbSAncGx1cmFsaXplJztcbmltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5cbmltcG9ydCB7XG4gIGdldFRpbWVUb0NvbXBsZXRlRGlzcGxheUFtb3VudCxcbiAgZ2V0VGltZVRvQ29tcGxldGVEaXNwbGF5RHVyYXRpb24sXG59IGZyb20gJy4vaGVscGVycyc7XG5pbXBvcnQgeyBEaXZpZGVyIH0gZnJvbSAnLi9zaGFyZWQnO1xuaW1wb3J0IHsgQ291cnNlRGlmZmljdWx0eSwgRW5yb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bUxlc3NvbnMpO1xuICAgICAgcmV0dXJuIChcbiAgICAgICAgPFRleHRcbiAgICAgICAgICB2YXJpYW50PVwicC1zbWFsbFwiXG4gICAgICAgICAgcGw9ezR9XG4gICAgICAgICAgd2hpdGVTcGFjZT1cIm5vd3JhcFwiXG4gICAgICAgICAgYXJpYS1sYWJlbD17YCR7bnVtTGVzc29uc30gJHtsYWJlbH1gfVxuICAgICAgICA+XG4gICAgICAgICAgPGI+e251bUxlc3NvbnN9PC9iPiB7bGFiZWx9XG4gICAgICAgIDwvVGV4dD5cbiAgICAgICk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG51bGw7XG4gIH07XG5cbiAgcmV0dXJuIChcbiAgICA8Q2FyZFxuICAgICAgdmFyaWFudD17aXNFbnJvbGxlZCA/ICdiZWlnZScgOiAnd2hpdGUnfVxuICAgICAgYm9yZGVyUmFkaXVzPVwibWRcIlxuICAgICAgYm9yZGVyQ29sb3I9XCJib3JkZXItcHJpbWFyeVwiXG4gICAgICBvdmVyZmxvdz1cImhpZGRlblwiXG4gICAgICBkaXNwbGF5PVwiZmxleFwiXG4gICAgICBmbGV4RGlyZWN0aW9uPVwiY29sdW1uXCJcbiAgICAgIHNoYWRvdz17c2hhZG93fVxuICAgICAgaXNJbnRlcmFjdGl2ZVxuICAgICAgcD17MH1cbiAgICAgIGhlaWdodD1cIjEwMCVcIlxuICAgID5cbiAgICAgIDxIZWFkZXJCYWNrZ3JvdW5kXG4gICAgICAgIGJnPXtcbiAgICAgICAgICBlbnJvbGxtZW50U3RhdHVzXG4gICAgICAgICAgICA/IGVucm9sbG1lbnRBc3NldHNbZW5yb2xsbWVudFN0YXR1c10uYmFja2dyb3VuZENvbG9yXG4gICAgICAgICAgICA6IGhlYWRlckJhY2tncm91bmRDb2xvclxuICAgICAgICB9XG4gICAgICA+XG4gICAgICAgIDxUZXh0IGZvbnRGYW1pbHk9XCJhY2NlbnRcIiBmb250U2l6ZT17MTR9PlxuICAgICAgICAgIHtlbnJvbGxtZW50U3RhdHVzXG4gICAgICAgICAgICA/IGVucm9sbG1lbnRBc3NldHNbZW5yb2xsbWVudFN0YXR1c10udGV4dFxuICAgICAgICAgICAgOiBoZWFkZXJUZXh0fVxuICAgICAgICA8L1RleHQ+XG4gICAgICA8L0hlYWRlckJhY2tncm91bmQ+XG4gICAgICA8R3JpZEJveFxuICAgICAgICBncmlkQXV0b0Zsb3c9XCJjb2x1bW5cIlxuICAgICAgICBjb2x1bW5HYXA9e2lzRnVsbFNpemUgPyAxNiA6IHVuZGVmaW5lZH1cbiAgICAgICAgcHg9ezEyfVxuICAgICAgICBwdD17NH1cbiAgICAgICAgcGI9ezR9XG4gICAgICAgIGhlaWdodD1cIjEwMCVcIlxuICAgICAgPlxuICAgICAgICA8RmxleEJveCBmbGV4RGlyZWN0aW9uPVwiY29sdW1uXCIgdGV4dEFsaWduPVwibGVmdFwiPlxuICAgICAgICAgIDxGbGV4Qm94IGZsZXhEaXJlY3Rpb249XCJjb2x1bW5cIiBhbGlnbkl0ZW1zPVwiZmxleC1zdGFydFwiPlxuICAgICAgICAgICAge2JyYW5kRGV0YWlscz8ubG9nb1VybCAmJiAoXG4gICAgICAgICAgICAgIDxJbWFnZVxuICAgICAgICAgICAgICAgIHNyYz17YnJhbmREZXRhaWxzLmxvZ29Vcmx9XG4gICAgICAgICAgICAgICAgYXJpYS1sYWJlbD17YnJhbmREZXRhaWxzLm5hbWV9XG4gICAgICAgICAgICAgICAgd2lkdGg9XCJhdXRvXCJcbiAgICAgICAgICAgICAgICBoZWlnaHQ9e2JyYW5kRGV0YWlscy5sb2dvSGVpZ2h0fVxuICAgICAgICAgICAgICAgIG10PXsxMn1cbiAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICl9XG4gICAgICAgICAgICA8VGV4dFxuICAgICAgICAgICAgICB2YXJpYW50PVwidGl0bGUteHNcIlxuICAgICAgICAgICAgICBhcz17aGVhZGluZ0xldmVsfVxuICAgICAgICAgICAgICBwdD17YnJhbmREZXRhaWxzPy5sb2dvVXJsID8gOCA6IDEyfVxuICAgICAgICAgICAgICBwYj17NH1cbiAgICAgICAgICAgID5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9UZXh0PlxuICAgICAgICAgICAge2Rlc2NyaXB0aW9uICYmIChcbiAgICAgICAgICAgICAgPFRleHRcbiAgICAgICAgICAgICAgICB2YXJpYW50PVwicC1zbWFsbFwiXG4gICAgICAgICAgICAgICAgdHJ1bmNhdGU9XCJlbGxpcHNpc1wiXG4gICAgICAgICAgICAgICAgdHJ1bmNhdGVMaW5lcz17M31cbiAgICAgICAgICAgICAgICBtYj17MTZ9XG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICB7ZGVzY3JpcHRpb259XG4gICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICl9XG4gICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgIDxCb3ggbXQ9XCJhdXRvXCI+XG4gICAgICAgICAgICB7Y2hpbGRyZW59XG4gICAgICAgICAgICA8RGl2aWRlciAvPlxuICAgICAgICAgICAgPEZsZXhCb3gganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCIgZmxleFdyYXA9XCJ3cmFwXCI+XG4gICAgICAgICAgICAgIHtkaWZmaWN1bHR5ICYmIChcbiAgICAgICAgICAgICAgICA8RmxleEJveCBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICAgICAgICAgICAgICA8RmxleEJveCBwcj17NH0+XG4gICAgICAgICAgICAgICAgICAgIDxMZXZlbEljb24gLz5cbiAgICAgICAgICAgICAgICAgIDwvRmxleEJveD5cbiAgICAgICAgICAgICAgICAgIDxUZXh0XG4gICAgICAgICAgICAgICAgICAgIHZhcmlhbnQ9XCJwLXNtYWxsXCJcbiAgICAgICAgICAgICAgICAgICAgcGw9ezR9XG4gICAgICAgICAgICAgICAgICAgIHdoaXRlU3BhY2U9XCJub3dyYXBcIlxuICAgICAgICAgICAgICAgICAgICBkYXRhLXRlc3RpZD1cImNhcmQtZGlmZmljdWx0eVwiXG4gICAgICAgICAgICAgICAgICAgIGFyaWEtbGFiZWw9e2Ake2RpZmZpY3VsdHl9JHtcbiAgICAgICAgICAgICAgICAgICAgICBpc0JlZ2lubmVyQ29udGFpbmVyID8gJyBGcmllbmRseScgOiAnJ1xuICAgICAgICAgICAgICAgICAgICB9YH1cbiAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPGI+e2RpZmZpY3VsdHl9PC9iPlxuICAgICAgICAgICAgICAgICAgICB7aXNCZWdpbm5lckNvbnRhaW5lciAmJiA8PiBGcmllbmRseTwvPn1cbiAgICAgICAgICAgICAgICAgIDwvVGV4dD5cbiAgICAgICAgICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgIHtyZW5kZXJUaW1lVG9Db21wbGV0ZU9yTnVtTGVzc29ucygpfVxuICAgICAgICAgICAgPC9GbGV4Qm94PlxuICAgICAgICAgIDwvQm94PlxuICAgICAgICA8L0ZsZXhCb3g+XG4gICAgICAgIDxCb3hcbiAgICAgICAgICBkaXNwbGF5PXtpc0Z1bGxTaXplID8geyBfOiAnbm9uZScsIG1kOiAnZmxleCcgfSA6ICdub25lJ31cbiAgICAgICAgICBhbGlnbkl0ZW1zPVwiY2VudGVyXCJcbiAgICAgICAgICBweD17NjR9XG4gICAgICAgID5cbiAgICAgICAgICA8SW1hZ2UgYXJpYS1oaWRkZW4gd2lkdGg9ezEwMH0gaGVpZ2h0PXsxMDB9IHNyYz17aW1hZ2VTcmN9IC8+XG4gICAgICAgIDwvQm94PlxuICAgICAgPC9HcmlkQm94PlxuICAgIDwvQ2FyZD5cbiAgKTtcbn07XG4iXX0= */");
25
25
  export const ContentGroupBaseCard = ({
26
26
  headerBackgroundColor,
27
27
  headerText,
@@ -36,9 +36,7 @@ export const ContentGroupBaseCard = ({
36
36
  enrollmentStatus,
37
37
  timeToComplete,
38
38
  brandDetails,
39
- children,
40
- header,
41
- footer
39
+ children
42
40
  }) => {
43
41
  const enrollmentAssets = {
44
42
  completed: {
@@ -95,7 +93,7 @@ export const ContentGroupBaseCard = ({
95
93
  isInteractive: true,
96
94
  p: 0,
97
95
  height: "100%",
98
- children: [header || /*#__PURE__*/_jsx(ContentGroupBaseCardHeaderBackground, {
96
+ children: [/*#__PURE__*/_jsx(HeaderBackground, {
99
97
  bg: enrollmentStatus ? enrollmentAssets[enrollmentStatus].backgroundColor : headerBackgroundColor,
100
98
  children: /*#__PURE__*/_jsx(Text, {
101
99
  fontFamily: "accent",
@@ -157,7 +155,7 @@ export const ContentGroupBaseCard = ({
157
155
  })]
158
156
  })]
159
157
  }), renderTimeToCompleteOrNumLessons()]
160
- }), footer]
158
+ })]
161
159
  })]
162
160
  }), /*#__PURE__*/_jsx(Box, {
163
161
  display: isFullSize ? {
@@ -14,7 +14,5 @@ export type CourseCardProps = {
14
14
  timeToComplete?: number | null;
15
15
  isProUser?: boolean;
16
16
  isInOpenFirstModuleVariant?: boolean;
17
- header?: React.ReactNode;
18
- footer?: React.ReactNode;
19
17
  };
20
18
  export declare const CourseCard: React.FC<CourseCardProps>;
@@ -14,9 +14,7 @@ export const CourseCard = ({
14
14
  headingLevel = 'h3',
15
15
  timeToComplete,
16
16
  isProUser = false,
17
- isInOpenFirstModuleVariant = false,
18
- header,
19
- footer
17
+ isInOpenFirstModuleVariant = false
20
18
  }) => {
21
19
  // only show certificates for pro exclusive courses, since only pro users can do pro courses & only pro users can gain certificates
22
20
  // edge case here: pro users who are logged in wont be able to tell - from the card - that a free course can grant them a cert as well
@@ -36,8 +34,6 @@ export const CourseCard = ({
36
34
  imageSrc: "https://static-assets.codecademy.com/Courses/Course-Cards/pillars.svg",
37
35
  enrollmentStatus: enrollmentStatus,
38
36
  timeToComplete: timeToComplete,
39
- header: header,
40
- footer: footer,
41
37
  children: [showFreeFirstModule && /*#__PURE__*/_jsxs(_Fragment, {
42
38
  children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(FreeModuleComponent, {})]
43
39
  }), showCertificate && /*#__PURE__*/_jsxs(_Fragment, {
@@ -0,0 +1,18 @@
1
+ import { TextProps } from '@codecademy/gamut';
2
+ export declare enum LearningOutcomeLevels {
3
+ One = 1,
4
+ Two = 2,
5
+ Three = 3
6
+ }
7
+ export declare const learningOutcomeLabels: {
8
+ 1: string;
9
+ 2: string;
10
+ 3: string;
11
+ };
12
+ interface LearningOutcomeLevelBadgeProps extends Pick<TextProps, 'textColor'> {
13
+ level: LearningOutcomeLevels;
14
+ size?: 'sm' | 'base';
15
+ removeBackground?: boolean;
16
+ }
17
+ export declare const LearningOutcomeLevelBadge: React.FC<LearningOutcomeLevelBadgeProps>;
18
+ export {};
@@ -0,0 +1,57 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { Badge, FlexBox, Text } from '@codecademy/gamut';
3
+ import { css, variant } from '@codecademy/gamut-styles';
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ export let LearningOutcomeLevels = /*#__PURE__*/function (LearningOutcomeLevels) {
6
+ LearningOutcomeLevels[LearningOutcomeLevels["One"] = 1] = "One";
7
+ LearningOutcomeLevels[LearningOutcomeLevels["Two"] = 2] = "Two";
8
+ LearningOutcomeLevels[LearningOutcomeLevels["Three"] = 3] = "Three";
9
+ return LearningOutcomeLevels;
10
+ }({});
11
+ export const learningOutcomeLabels = {
12
+ [LearningOutcomeLevels.One]: 'Subskill',
13
+ [LearningOutcomeLevels.Two]: 'Skill',
14
+ [LearningOutcomeLevels.Three]: 'Skill set'
15
+ };
16
+ const StyledBadge = /*#__PURE__*/_styled(Badge, {
17
+ target: "e187pstn0",
18
+ label: "StyledBadge"
19
+ })(css({
20
+ borderColor: 'border-tertiary'
21
+ }), variant({
22
+ prop: 'level',
23
+ variants: {
24
+ [LearningOutcomeLevels.One]: {
25
+ bg: 'background-selected'
26
+ },
27
+ [LearningOutcomeLevels.Two]: {
28
+ bg: 'green-100'
29
+ },
30
+ [LearningOutcomeLevels.Three]: {
31
+ bg: 'blue-100'
32
+ }
33
+ }
34
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MZWFybmluZ091dGNvbWVCYWRnZXMvTGVhcm5pbmdPdXRjb21lTGV2ZWxCYWRnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JvQiIsImZpbGUiOiIuLi8uLi9zcmMvTGVhcm5pbmdPdXRjb21lQmFkZ2VzL0xlYXJuaW5nT3V0Y29tZUxldmVsQmFkZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFkZ2UsIEZsZXhCb3gsIFRleHQsIFRleHRQcm9wcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IGNzcywgdmFyaWFudCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmV4cG9ydCBlbnVtIExlYXJuaW5nT3V0Y29tZUxldmVscyB7XG4gIE9uZSA9IDEsXG4gIFR3byA9IDIsXG4gIFRocmVlID0gMyxcbn1cblxuZXhwb3J0IGNvbnN0IGxlYXJuaW5nT3V0Y29tZUxhYmVscyA9IHtcbiAgW0xlYXJuaW5nT3V0Y29tZUxldmVscy5PbmVdOiAnU3Vic2tpbGwnLFxuICBbTGVhcm5pbmdPdXRjb21lTGV2ZWxzLlR3b106ICdTa2lsbCcsXG4gIFtMZWFybmluZ091dGNvbWVMZXZlbHMuVGhyZWVdOiAnU2tpbGwgc2V0Jyxcbn07XG5cbmNvbnN0IFN0eWxlZEJhZGdlID0gc3R5bGVkKEJhZGdlKTx7IGxldmVsOiBMZWFybmluZ091dGNvbWVMZXZlbHMgfT4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m9yZGVyUmFkaXVzPVwieGxcIlxuICAgID5cbiAgICAgIDxTdHlsZWRCYWRnZVxuICAgICAgICBkYXRhLXRlc3RpZD1cImxlYXJuaW5nLW91dGNvbWUtYmFkZ2VcIlxuICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICB2YXJpYW50PVwidGVydGlhcnlcIlxuICAgICAgICBsZXZlbD17bGV2ZWx9XG4gICAgICA+XG4gICAgICAgIDxUZXh0IGNvbG9yPXt0ZXh0Q29sb3IgfHwgJ3RleHQnfT57bGVhcm5pbmdPdXRjb21lTGFiZWxzW2xldmVsXX08L1RleHQ+XG4gICAgICA8L1N0eWxlZEJhZGdlPlxuICAgIDwvRmxleEJveD5cbiAgKTtcbn07XG4iXX0= */");
35
+ export const LearningOutcomeLevelBadge = ({
36
+ level,
37
+ size = 'sm',
38
+ textColor,
39
+ removeBackground
40
+ }) => {
41
+ return /*#__PURE__*/_jsx(FlexBox, {
42
+ bg: removeBackground ? 'transparent' : 'white',
43
+ height: "min-content",
44
+ width: "min-content",
45
+ borderRadius: "xl",
46
+ children: /*#__PURE__*/_jsx(StyledBadge, {
47
+ "data-testid": "learning-outcome-badge",
48
+ size: size,
49
+ variant: "tertiary",
50
+ level: level,
51
+ children: /*#__PURE__*/_jsx(Text, {
52
+ color: textColor || 'text',
53
+ children: learningOutcomeLabels[level]
54
+ })
55
+ })
56
+ });
57
+ };
@@ -0,0 +1,10 @@
1
+ export declare const LearningOutcomeLowAssessmentDot: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme | undefined;
3
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
4
+ } & import("@codecademy/gamut").BoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
5
+ theme?: import("@emotion/react").Theme;
6
+ } & {
7
+ hasBorder?: boolean;
8
+ small?: boolean;
9
+ }, {}, {}>;
10
+ export declare const LearningOutcomeLowAssessmentBadge: React.FC;
@@ -0,0 +1,35 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { Badge, Box, Text } from '@codecademy/gamut';
3
+ import { css, states } from '@codecademy/gamut-styles';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ export const LearningOutcomeLowAssessmentDot = /*#__PURE__*/_styled(Box, {
6
+ target: "ege7mnh0",
7
+ label: "LearningOutcomeLowAssessmentDot"
8
+ })(css({
9
+ bg: 'orange-500',
10
+ borderRadius: 'full',
11
+ height: 16,
12
+ width: 16
13
+ }), states({
14
+ hasBorder: {
15
+ border: 2,
16
+ borderColor: 'background-contrast'
17
+ },
18
+ small: {
19
+ height: 8,
20
+ width: 8
21
+ }
22
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MZWFybmluZ091dGNvbWVCYWRnZXMvTGVhcm5pbmdPdXRjb21lTG93QXNzZXNzbWVudEJhZGdlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJK0MiLCJmaWxlIjoiLi4vLi4vc3JjL0xlYXJu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V4dCBtbD17NH0+TmVlZHMgcmV2aWV3PC9UZXh0PlxuICAgIDwvQmFkZ2U+XG4gICk7XG59O1xuIl19 */");
23
+ export const LearningOutcomeLowAssessmentBadge = () => {
24
+ return /*#__PURE__*/_jsxs(Badge, {
25
+ variant: "custom",
26
+ size: "sm",
27
+ bg: "orange-100",
28
+ children: [/*#__PURE__*/_jsx(LearningOutcomeLowAssessmentDot, {
29
+ small: true
30
+ }), /*#__PURE__*/_jsx(Text, {
31
+ ml: 4,
32
+ children: "Needs review"
33
+ })]
34
+ });
35
+ };
@@ -0,0 +1,2 @@
1
+ export * from './LearningOutcomeLevelBadge';
2
+ export * from './LearningOutcomeLowAssessmentBadge';
@@ -0,0 +1,2 @@
1
+ export * from './LearningOutcomeLevelBadge';
2
+ export * from './LearningOutcomeLowAssessmentBadge';
@@ -0,0 +1,11 @@
1
+ import { LearningOutcomePopoverDetailsProps } from '../LearningOutcomeTile/types';
2
+ interface LearningOutcomePopoverProps {
3
+ activeElRef: React.RefObject<HTMLDivElement>;
4
+ id: string;
5
+ isOpen: boolean;
6
+ learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
7
+ setIsOpen: (isOpen: boolean) => void;
8
+ horizontalOffset?: number;
9
+ }
10
+ export declare const LearningOutcomePopover: React.FC<LearningOutcomePopoverProps>;
11
+ export {};
@@ -0,0 +1,125 @@
1
+ import { FlexBox, Popover, Text } from '@codecademy/gamut';
2
+ import { SmallCheckIcon } from '@codecademy/gamut-icons';
3
+ import { LearningOutcomeLevelBadge, LearningOutcomeLowAssessmentBadge } from '../LearningOutcomeBadges';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const POPOVER_WIDTH = 332;
6
+ const POPOVER_HORIZONTAL_PADDING = 16;
7
+ const ASSESSMENT_WIDTH = (POPOVER_WIDTH - POPOVER_HORIZONTAL_PADDING * 2) / 2;
8
+ const Assessment = ({
9
+ score,
10
+ type,
11
+ noBorderLeft
12
+ }) => /*#__PURE__*/_jsxs(FlexBox, {
13
+ borderTop: 1,
14
+ borderBottom: 1,
15
+ borderRight: 1,
16
+ borderLeft: !noBorderLeft ? 1 : undefined,
17
+ borderColor: "background-hover",
18
+ p: 8,
19
+ gap: 4,
20
+ width: ASSESSMENT_WIDTH,
21
+ children: [/*#__PURE__*/_jsx(Text, {
22
+ variant: "p-small",
23
+ color: "text-secondary",
24
+ children: type === 'highest' ? 'Highest score:' : 'Most recent:'
25
+ }), score != null ? /*#__PURE__*/_jsx(Text, {
26
+ variant: "p-small",
27
+ color: score && score >= 70 ? 'green-700' : 'text',
28
+ fontWeight: 700,
29
+ children: `${score}%`
30
+ }) : /*#__PURE__*/_jsx(Text, {
31
+ variant: "p-small",
32
+ color: "text-disabled",
33
+ children: "-"
34
+ })]
35
+ });
36
+ export const LearningOutcomePopover = ({
37
+ activeElRef,
38
+ isOpen,
39
+ setIsOpen,
40
+ learningOutcomeDetails,
41
+ ...rest
42
+ }) => {
43
+ const {
44
+ level,
45
+ outcome,
46
+ latestScore,
47
+ highestScore,
48
+ percentComplete = 0
49
+ } = learningOutcomeDetails || {};
50
+ const lowLatestAssessment = Boolean(latestScore != null && latestScore < 70);
51
+ const renderProgress = () => /*#__PURE__*/_jsxs(FlexBox, {
52
+ children: [Boolean(percentComplete === 100) && /*#__PURE__*/_jsx(FlexBox, {
53
+ width: 16,
54
+ height: 16,
55
+ borderRadius: "md",
56
+ bg: "primary",
57
+ mr: 4,
58
+ alignItems: "center",
59
+ justifyContent: "center",
60
+ children: /*#__PURE__*/_jsx(SmallCheckIcon, {
61
+ size: 11,
62
+ color: "white"
63
+ })
64
+ }), /*#__PURE__*/_jsx(Text, {
65
+ color: "text",
66
+ variant: "p-small",
67
+ children: `${percentComplete}% progress`
68
+ })]
69
+ });
70
+ return /*#__PURE__*/_jsx(Popover, {
71
+ ...rest,
72
+ isOpen: isOpen,
73
+ targetRef: activeElRef,
74
+ onRequestClose: () => setIsOpen(false),
75
+ position: "above",
76
+ beak: "center",
77
+ outline: true,
78
+ children: /*#__PURE__*/_jsxs(FlexBox, {
79
+ width: POPOVER_WIDTH,
80
+ pt: 24,
81
+ pb: 4,
82
+ px: POPOVER_HORIZONTAL_PADDING,
83
+ gap: 24,
84
+ column: true,
85
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
86
+ gap: 16,
87
+ column: true,
88
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
89
+ justifyContent: "space-between",
90
+ children: [!!level && /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
91
+ level: level
92
+ }), lowLatestAssessment && /*#__PURE__*/_jsx(LearningOutcomeLowAssessmentBadge, {})]
93
+ }), /*#__PURE__*/_jsx(Text, {
94
+ color: "text",
95
+ textAlign: "left",
96
+ variant: "title-xs",
97
+ whiteSpace: "break-spaces",
98
+ children: outcome
99
+ }), renderProgress()]
100
+ }), /*#__PURE__*/_jsxs(FlexBox, {
101
+ alignItems: "flex-start",
102
+ gap: 4,
103
+ pt: 16,
104
+ pb: 12,
105
+ borderTop: 1,
106
+ borderColor: "background-hover",
107
+ column: true,
108
+ children: [/*#__PURE__*/_jsx(Text, {
109
+ variant: "p-small",
110
+ fontWeight: 700,
111
+ children: "Evaluation results"
112
+ }), /*#__PURE__*/_jsxs(FlexBox, {
113
+ children: [/*#__PURE__*/_jsx(Assessment, {
114
+ score: highestScore,
115
+ type: "highest"
116
+ }), /*#__PURE__*/_jsx(Assessment, {
117
+ score: latestScore,
118
+ type: "latest",
119
+ noBorderLeft: true
120
+ })]
121
+ })]
122
+ })]
123
+ })
124
+ });
125
+ };
@@ -0,0 +1,7 @@
1
+ import { TileProps } from './types';
2
+ export declare const Tile: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ } & import("@codecademy/gamut").FlexBoxProps & Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "onClick" | "slot" | "style" | "title" | "children" | "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("react").ClassAttributes<HTMLDivElement>> & {
6
+ theme?: import("@emotion/react").Theme;
7
+ } & TileProps, {}, {}>;
@@ -0,0 +1,79 @@
1
+ import _styled from "@emotion/styled/base";
2
+ import { FlexBox } from '@codecademy/gamut';
3
+ import { variant } from '@codecademy/gamut-styles';
4
+ import { Progress } from './types';
5
+ const tileStyles = {
6
+ alignItems: 'center',
7
+ justifyContent: 'center',
8
+ borderRadius: 'md',
9
+ cursor: 'default',
10
+ position: 'relative'
11
+ };
12
+ const hoverVariants = hover => variant({
13
+ prop: 'progress',
14
+ variants: {
15
+ [Progress.notStarted]: {
16
+ '&:hover': {
17
+ bg: hover ? 'background-hover' : undefined
18
+ }
19
+ },
20
+ [Progress.inProgress]: {
21
+ '&:hover': {
22
+ bg: hover ? 'rgba(85, 51, 255, 0.12)' : undefined
23
+ } // this is primary-hover color with 12% opacity
24
+ },
25
+ [Progress.completed]: {
26
+ '&:hover': {
27
+ bg: hover ? 'primary-hover' : undefined
28
+ }
29
+ }
30
+ }
31
+ });
32
+ const sizeVariants = size => variant({
33
+ prop: 'progress',
34
+ base: {
35
+ border: size === 'small' ? 'none' : 2
36
+ },
37
+ variants: {
38
+ [Progress.notStarted]: {
39
+ width: size === 'small' ? 32 : 40,
40
+ height: size === 'small' ? 24 : 40
41
+ },
42
+ [Progress.inProgress]: {
43
+ width: size === 'small' ? 32 : 40,
44
+ height: size === 'small' ? 24 : 40
45
+ },
46
+ [Progress.completed]: {
47
+ width: size === 'small' ? 20 : 40,
48
+ height: size === 'small' ? 20 : 40
49
+ }
50
+ }
51
+ });
52
+ export const Tile = /*#__PURE__*/_styled(FlexBox, {
53
+ target: "e4znlwe0",
54
+ label: "Tile"
55
+ })(props => ({
56
+ ...hoverVariants(props.hover)(props),
57
+ ...sizeVariants(props.size)(props),
58
+ ...variant({
59
+ prop: 'progress',
60
+ base: {
61
+ ...tileStyles
62
+ },
63
+ variants: {
64
+ [Progress.notStarted]: {
65
+ bg: 'background-selected',
66
+ borderColor: 'background-hover'
67
+ },
68
+ [Progress.inProgress]: {
69
+ bg: 'rgba(58, 16, 229, 0.12)',
70
+ // this is primary color with 12% opacity
71
+ borderColor: 'primary'
72
+ },
73
+ [Progress.completed]: {
74
+ bg: 'primary',
75
+ borderColor: 'border-tertiary'
76
+ }
77
+ }
78
+ })(props)
79
+ }), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MZWFybmluZ091dGNvbWVUaWxlL1RpbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNEb0IiLCJmaWxlIjoiLi4vLi4vc3JjL0xlYXJuaW5nT3V0Y29tZVRpbGUvVGlsZS50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGbGV4Qm94IH0gZnJvbSAnQGNvZGVjYWRlbXkvZ2FtdXQnO1xuaW1wb3J0IHsgdmFyaWFudCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IFByb2dyZXNzLCBT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cicsXG4gICAgICB9LFxuICAgICAgW1Byb2dyZXNzLmluUHJvZ3Jlc3NdOiB7XG4gICAgICAgIGJnOiAncmdiYSg1OCwgMTYsIDIyOSwgMC4xMiknIGFzIG5ldmVyLCAvLyB0aGlzIGlzIHByaW1hcnkgY29sb3Igd2l0aCAxMiUgb3BhY2l0eVxuICAgICAgICBib3JkZXJDb2xvcjogJ3ByaW1hcnknLFxuICAgICAgfSxcbiAgICAgIFtQcm9ncmVzcy5jb21wbGV0ZWRdOiB7XG4gICAgICAgIGJnOiAncHJpbWFyeScsXG4gICAgICAgIGJvcmRlckNvbG9yOiAnYm9yZGVyLXRlcnRpYXJ5JyxcbiAgICAgIH0sXG4gICAgfSxcbiAgfSkocHJvcHMpLFxufSkpO1xuIl19 */");
@@ -0,0 +1,2 @@
1
+ import { LearningOutcomeTileProps } from './types';
2
+ export declare const LearningOutcomeTile: React.FC<LearningOutcomeTileProps>;
@@ -0,0 +1,73 @@
1
+ import { Text } from '@codecademy/gamut';
2
+ import { SmallCheckIcon } from '@codecademy/gamut-icons';
3
+ import { useRef, useState } from 'react';
4
+ import { LearningOutcomeLowAssessmentDot } from '../LearningOutcomeBadges';
5
+ import { LearningOutcomePopover } from '../LearningOutcomePopover';
6
+ import { Tile } from './Tile';
7
+ import { Progress } from './types';
8
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
9
+ const progressState = percentComplete => {
10
+ if (percentComplete === 0) {
11
+ return Progress.notStarted;
12
+ }
13
+ if (percentComplete > 0 && percentComplete < 100) {
14
+ return Progress.inProgress;
15
+ }
16
+ return Progress.completed;
17
+ };
18
+ export const LearningOutcomeTile = ({
19
+ learningOutcomeDetails,
20
+ popover = false,
21
+ hover = false,
22
+ size = 'normal'
23
+ }) => {
24
+ const {
25
+ id,
26
+ latestScore,
27
+ percentComplete = 0
28
+ } = learningOutcomeDetails || {};
29
+ const [isOpen, setIsOpen] = useState(false);
30
+ const activeElRef = useRef(null);
31
+ const hoverProps = popover && hover ? {
32
+ ref: activeElRef,
33
+ tabIndex: 0,
34
+ onMouseEnter: () => setIsOpen(true),
35
+ onMouseLeave: () => setIsOpen(false),
36
+ onFocus: () => setIsOpen(true),
37
+ // For keyboard users
38
+ onBlur: () => setIsOpen(false),
39
+ // Close on blur
40
+ 'aria-describedby': `${id}-popover`
41
+ } : {};
42
+ const lowLatestAssessment = Boolean(latestScore != null && latestScore < 70);
43
+ const showLowAssessmentDot = lowLatestAssessment && size !== 'small';
44
+ const progress = progressState(percentComplete);
45
+ return /*#__PURE__*/_jsxs(_Fragment, {
46
+ children: [/*#__PURE__*/_jsxs(Tile, {
47
+ hover: hover,
48
+ progress: progress,
49
+ size: size,
50
+ ...hoverProps,
51
+ children: [progress === Progress.completed ? /*#__PURE__*/_jsx(SmallCheckIcon, {
52
+ size: size === 'small' ? 12 : 16,
53
+ textColor: "background-contrast"
54
+ }) : /*#__PURE__*/_jsx(Text, {
55
+ fontSize: 14,
56
+ fontWeight: 700,
57
+ children: `${percentComplete}%`
58
+ }), showLowAssessmentDot && /*#__PURE__*/_jsx(LearningOutcomeLowAssessmentDot, {
59
+ position: "absolute",
60
+ top: "-20%",
61
+ right: "-20%",
62
+ hasBorder: true
63
+ })]
64
+ }), isOpen && /*#__PURE__*/_jsx(LearningOutcomePopover, {
65
+ id: `${id}-popover`,
66
+ activeElRef: activeElRef,
67
+ isOpen: isOpen,
68
+ setIsOpen: setIsOpen,
69
+ horizontalOffset: size === 'small' || showLowAssessmentDot ? 150 : 175,
70
+ learningOutcomeDetails: learningOutcomeDetails
71
+ })]
72
+ });
73
+ };
@@ -0,0 +1,38 @@
1
+ export declare enum Progress {
2
+ notStarted = "notStarted",
3
+ inProgress = "inProgress",
4
+ completed = "completed"
5
+ }
6
+ export type SizeType = 'small' | 'normal';
7
+ export interface TileProps {
8
+ hover: boolean;
9
+ progress: Progress;
10
+ size: SizeType;
11
+ }
12
+ interface LearningOutcomeTileDetailsProps {
13
+ id: string;
14
+ percentComplete: number | undefined;
15
+ latestScore?: number;
16
+ }
17
+ export interface LearningOutcomePopoverDetailsProps {
18
+ id: string;
19
+ percentComplete: number | undefined;
20
+ level: number;
21
+ outcome: string;
22
+ latestScore?: number;
23
+ highestScore?: number;
24
+ }
25
+ interface LearningOutcomeTileWithPopover {
26
+ learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
27
+ hover?: boolean;
28
+ popover: true;
29
+ size?: SizeType;
30
+ }
31
+ interface LearningOutcomeTileWithoutPopover {
32
+ learningOutcomeDetails: LearningOutcomeTileDetailsProps;
33
+ hover?: boolean;
34
+ popover?: boolean;
35
+ size?: SizeType;
36
+ }
37
+ export type LearningOutcomeTileProps = LearningOutcomeTileWithPopover | LearningOutcomeTileWithoutPopover;
38
+ export {};
@@ -0,0 +1,6 @@
1
+ export let Progress = /*#__PURE__*/function (Progress) {
2
+ Progress["notStarted"] = "notStarted";
3
+ Progress["inProgress"] = "inProgress";
4
+ Progress["completed"] = "completed";
5
+ return Progress;
6
+ }({});
@@ -11,7 +11,5 @@ export interface SkillPathCardProps {
11
11
  isFullSize?: boolean;
12
12
  headingLevel?: HeadingTags;
13
13
  timeToComplete?: number | null;
14
- header?: React.ReactNode;
15
- footer?: React.ReactNode;
16
14
  }
17
15
  export declare const SkillPathCard: React.FC<SkillPathCardProps>;
@@ -12,9 +12,7 @@ export const SkillPathCard = ({
12
12
  enrollmentStatus,
13
13
  headingLevel = 'h3',
14
14
  isFullSize = false,
15
- timeToComplete,
16
- header,
17
- footer
15
+ timeToComplete
18
16
  }) => {
19
17
  return /*#__PURE__*/_jsxs(ContentGroupBaseCard, {
20
18
  headerBackgroundColor: "blue-100",
@@ -29,8 +27,6 @@ export const SkillPathCard = ({
29
27
  isFullSize: isFullSize,
30
28
  enrollmentStatus: enrollmentStatus,
31
29
  timeToComplete: timeToComplete,
32
- header: header,
33
- footer: footer,
34
30
  children: [/*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CourseCountComponent, {
35
31
  count: courseCount
36
32
  }), /*#__PURE__*/_jsx(Divider, {}), /*#__PURE__*/_jsx(CertificateComponent, {})]
package/dist/index.d.ts CHANGED
@@ -45,7 +45,9 @@ export * from './InfoCard';
45
45
  export * from './Konamimojisplosion';
46
46
  export * from './LandingPage';
47
47
  export * from './LayoutMenu';
48
+ export * from './LearningOutcomeBadges';
48
49
  export * from './LearningOutcomeCard';
50
+ export * from './LearningOutcomeTile';
49
51
  export * from './lib/breakpointHooks';
50
52
  export * from './ListSection';
51
53
  export * from './Loading';
package/dist/index.js CHANGED
@@ -45,7 +45,9 @@ export * from './InfoCard';
45
45
  export * from './Konamimojisplosion';
46
46
  export * from './LandingPage';
47
47
  export * from './LayoutMenu';
48
+ export * from './LearningOutcomeBadges';
48
49
  export * from './LearningOutcomeCard';
50
+ export * from './LearningOutcomeTile';
49
51
  export * from './lib/breakpointHooks';
50
52
  export * from './ListSection';
51
53
  export * from './Loading';
@@ -10,4 +10,3 @@ export declare const ContentGroupBaseCardWithImage: Story;
10
10
  export declare const ContentGroupBaseCardWithShadowVariants: Story;
11
11
  export declare const ContentGroupBaseCardWithEnrollmentStatus: Story;
12
12
  export declare const ContentGroupBaseCardWithTimeToComplete: Story;
13
- export declare const ContentGroupBaseCardWithCustomHeaderAndFooter: Story;
@@ -1,6 +1,5 @@
1
- import { Column, FlexBox, LayoutGrid, Text } from '@codecademy/gamut';
2
- import { CheckFilledIcon } from '@codecademy/gamut-icons';
3
- import { ContentGroupBaseCard, ContentGroupBaseCardHeaderBackground, CourseDifficulty, EnrollmentStatus } from '../../index';
1
+ import { Column, LayoutGrid, Text } from '@codecademy/gamut';
2
+ import { ContentGroupBaseCard, CourseDifficulty, EnrollmentStatus } from '../../index';
4
3
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
4
  const meta = {
6
5
  component: ContentGroupBaseCard,
@@ -145,29 +144,4 @@ export const ContentGroupBaseCardWithTimeToComplete = {
145
144
  })]
146
145
  }),
147
146
  name: 'ContentGroupBaseCard with Time to Complete'
148
- };
149
- export const ContentGroupBaseCardWithCustomHeaderAndFooter = {
150
- render: args => /*#__PURE__*/_jsx(LayoutGrid, {
151
- gap: 24,
152
- children: /*#__PURE__*/_jsxs(Column, {
153
- size: 6,
154
- children: ["Hours", /*#__PURE__*/_jsx(ContentGroupBaseCard, {
155
- ...args,
156
- header: /*#__PURE__*/_jsx(ContentGroupBaseCardHeaderBackground, {
157
- bg: "hyper",
158
- children: /*#__PURE__*/_jsxs(FlexBox, {
159
- alignItems: "center",
160
- justifyContent: "center",
161
- gap: 4,
162
- children: [/*#__PURE__*/_jsx(CheckFilledIcon, {}), " Custom Header"]
163
- })
164
- }),
165
- footer: /*#__PURE__*/_jsx(Text, {
166
- textColor: "navy-500",
167
- children: "Custom Footer"
168
- })
169
- })]
170
- })
171
- }),
172
- name: 'ContentGroupBaseCard with custom header and footer'
173
147
  };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { LearningOutcomeLevelBadge } from '../../LearningOutcomeBadges';
3
+ declare const meta: Meta<typeof LearningOutcomeLevelBadge>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LearningOutcomeLevelBadge>;
6
+ export declare const AllLevels: Story;
@@ -0,0 +1,20 @@
1
+ import { FlexBox } from '@codecademy/gamut';
2
+ import { LearningOutcomeLevelBadge } from '../../LearningOutcomeBadges';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ const meta = {
5
+ component: LearningOutcomeLevelBadge
6
+ };
7
+ export default meta;
8
+ export const AllLevels = {
9
+ render: () => /*#__PURE__*/_jsxs(FlexBox, {
10
+ gap: 16,
11
+ children: [/*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
12
+ level: 1
13
+ }), /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
14
+ level: 2
15
+ }), /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
16
+ level: 3
17
+ })]
18
+ }),
19
+ name: 'Learning Outcome Level Badge - All Levels'
20
+ };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { LearningOutcomeLowAssessmentBadge } from '../../LearningOutcomeBadges';
3
+ declare const meta: Meta<typeof LearningOutcomeLowAssessmentBadge>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LearningOutcomeLowAssessmentBadge>;
6
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ import { LearningOutcomeLowAssessmentBadge } from '../../LearningOutcomeBadges';
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ const meta = {
4
+ component: LearningOutcomeLowAssessmentBadge
5
+ };
6
+ export default meta;
7
+ export const Default = {
8
+ render: () => /*#__PURE__*/_jsx(LearningOutcomeLowAssessmentBadge, {}),
9
+ name: 'Learning Outcome Low Assessment Badge - Default'
10
+ };
@@ -0,0 +1,5 @@
1
+ import type { Meta } from '@storybook/react';
2
+ import { LearningOutcomePopover } from '../../LearningOutcomePopover';
3
+ declare const meta: Meta<typeof LearningOutcomePopover>;
4
+ export default meta;
5
+ export declare const Example: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { Box, FillButton, FlexBox } from '@codecademy/gamut';
2
+ import { useRef, useState } from 'react';
3
+ import { LearningOutcomePopover } from '../../LearningOutcomePopover';
4
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const meta = {
6
+ component: LearningOutcomePopover,
7
+ args: {}
8
+ };
9
+ export default meta;
10
+ export const Example = () => {
11
+ const [open, setOpen] = useState(false);
12
+ const activeElRef = useRef(null);
13
+ const toggleOpen = () => setOpen(!open);
14
+ return /*#__PURE__*/_jsxs(_Fragment, {
15
+ children: [/*#__PURE__*/_jsx(Box, {
16
+ ref: activeElRef,
17
+ children: /*#__PURE__*/_jsx(FillButton, {
18
+ onClick: toggleOpen,
19
+ children: "Open Popover"
20
+ })
21
+ }), /*#__PURE__*/_jsx(FlexBox, {
22
+ width: "100%",
23
+ children: /*#__PURE__*/_jsx(LearningOutcomePopover, {
24
+ id: "learning-outcome-popover",
25
+ activeElRef: activeElRef,
26
+ isOpen: open,
27
+ setIsOpen: setOpen,
28
+ learningOutcomeDetails: {
29
+ id: '1',
30
+ level: 2,
31
+ outcome: 'Understand the basics of React',
32
+ latestScore: 68,
33
+ highestScore: 100,
34
+ percentComplete: 75
35
+ },
36
+ horizontalOffset: 90
37
+ })
38
+ })]
39
+ });
40
+ };
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { LearningOutcomeTile } from '../../LearningOutcomeTile';
3
+ declare const meta: Meta<typeof LearningOutcomeTile>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LearningOutcomeTile>;
6
+ export declare const Default: Story;
7
+ export declare const WithLowAssessments: Story;
8
+ export declare const WithPopover: Story;
9
+ export declare const Small: Story;
10
+ export declare const DarkMode: Story;
@@ -0,0 +1,199 @@
1
+ import { FlexBox } from '@codecademy/gamut';
2
+ import { Background } from '@codecademy/gamut-styles';
3
+ import { LearningOutcomeTile } from '../../LearningOutcomeTile';
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ const meta = {
6
+ component: LearningOutcomeTile,
7
+ args: {
8
+ learningOutcomeDetails: {
9
+ id: '1',
10
+ percentComplete: 0
11
+ },
12
+ size: 'normal'
13
+ }
14
+ };
15
+ export default meta;
16
+ export const Default = {
17
+ render: args => /*#__PURE__*/_jsxs(FlexBox, {
18
+ gap: 16,
19
+ children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
20
+ ...args,
21
+ hover: true
22
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
23
+ ...args,
24
+ learningOutcomeDetails: {
25
+ id: '2',
26
+ percentComplete: 50
27
+ },
28
+ hover: true
29
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
30
+ ...args,
31
+ learningOutcomeDetails: {
32
+ id: '3',
33
+ percentComplete: 100
34
+ },
35
+ hover: true
36
+ })]
37
+ }),
38
+ name: 'Learning Outcome Tile - Default'
39
+ };
40
+ export const WithLowAssessments = {
41
+ render: args => /*#__PURE__*/_jsxs(FlexBox, {
42
+ gap: 16,
43
+ children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
44
+ ...args,
45
+ learningOutcomeDetails: {
46
+ id: '1',
47
+ percentComplete: 0,
48
+ latestScore: 50
49
+ },
50
+ hover: true
51
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
52
+ ...args,
53
+ learningOutcomeDetails: {
54
+ id: '2',
55
+ percentComplete: 50,
56
+ latestScore: 50
57
+ },
58
+ hover: true
59
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
60
+ ...args,
61
+ learningOutcomeDetails: {
62
+ id: '3',
63
+ percentComplete: 100,
64
+ latestScore: 50
65
+ },
66
+ hover: true
67
+ })]
68
+ }),
69
+ name: 'Learning Outcome Tile - with Low Assessment Indicator'
70
+ };
71
+ export const WithPopover = {
72
+ render: args => /*#__PURE__*/_jsxs(FlexBox, {
73
+ gap: 16,
74
+ children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
75
+ ...args,
76
+ learningOutcomeDetails: {
77
+ id: '1',
78
+ level: 1,
79
+ outcome: 'Understand the basics of programming',
80
+ percentComplete: 0
81
+ },
82
+ hover: true,
83
+ popover: true
84
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
85
+ ...args,
86
+ learningOutcomeDetails: {
87
+ id: '2',
88
+ level: 2,
89
+ outcome: 'Apply programming fundamentals',
90
+ percentComplete: 50,
91
+ highestScore: 65,
92
+ latestScore: 50
93
+ },
94
+ hover: true,
95
+ popover: true
96
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
97
+ ...args,
98
+ learningOutcomeDetails: {
99
+ id: '3',
100
+ level: 3,
101
+ outcome: 'Master advanced programming concepts',
102
+ percentComplete: 100,
103
+ highestScore: 70,
104
+ latestScore: 70
105
+ },
106
+ hover: true,
107
+ popover: true
108
+ })]
109
+ }),
110
+ name: 'Learning Outcome Tile - with Popover'
111
+ };
112
+ export const Small = {
113
+ render: args => /*#__PURE__*/_jsxs(FlexBox, {
114
+ gap: 16,
115
+ children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
116
+ ...args,
117
+ hover: true,
118
+ size: "small"
119
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
120
+ ...args,
121
+ learningOutcomeDetails: {
122
+ id: '2',
123
+ percentComplete: 50
124
+ },
125
+ hover: true,
126
+ size: "small"
127
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
128
+ ...args,
129
+ learningOutcomeDetails: {
130
+ id: '3',
131
+ percentComplete: 100
132
+ },
133
+ size: "small"
134
+ })]
135
+ }),
136
+ name: 'Learning Outcome Tile - Small'
137
+ };
138
+ export const DarkMode = {
139
+ render: args => /*#__PURE__*/_jsx(Background, {
140
+ bg: "navy",
141
+ p: 24,
142
+ children: /*#__PURE__*/_jsxs(FlexBox, {
143
+ gap: 16,
144
+ children: [/*#__PURE__*/_jsx(LearningOutcomeTile, {
145
+ ...args,
146
+ learningOutcomeDetails: {
147
+ id: '1',
148
+ percentComplete: 0,
149
+ latestScore: 50
150
+ },
151
+ hover: true
152
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
153
+ ...args,
154
+ learningOutcomeDetails: {
155
+ id: '2',
156
+ percentComplete: 50,
157
+ latestScore: 50
158
+ },
159
+ hover: true
160
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
161
+ ...args,
162
+ learningOutcomeDetails: {
163
+ id: '3',
164
+ percentComplete: 100,
165
+ latestScore: 50
166
+ },
167
+ hover: true
168
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
169
+ ...args,
170
+ learningOutcomeDetails: {
171
+ id: '4',
172
+ percentComplete: 0,
173
+ latestScore: 50
174
+ },
175
+ size: "small",
176
+ hover: true
177
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
178
+ ...args,
179
+ learningOutcomeDetails: {
180
+ id: '5',
181
+ percentComplete: 50,
182
+ latestScore: 50
183
+ },
184
+ size: "small",
185
+ hover: true
186
+ }), /*#__PURE__*/_jsx(LearningOutcomeTile, {
187
+ ...args,
188
+ learningOutcomeDetails: {
189
+ id: '6',
190
+ percentComplete: 100,
191
+ latestScore: 50
192
+ },
193
+ size: "small",
194
+ hover: true
195
+ })]
196
+ })
197
+ }),
198
+ name: 'Learning Outcome Tile - Dark Mode'
199
+ };
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": "1.18.4-alpha.d06aa06037.0",
4
+ "version": "1.19.0-alpha.06f6183855.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",