@codecademy/brand 1.20.0-alpha.e6d035e395.0 → 1.20.0-alpha.eb1e4e5e3b.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 (45) hide show
  1. package/dist/AppBarDeprecated/styles/index.module.scss +39 -0
  2. package/dist/AppHeader/AppHeaderElements/AppHeaderLinkSections/index.js +0 -0
  3. package/dist/DropdownButton/index.d.ts +302 -51
  4. package/dist/DropdownButton/index.js +7 -7
  5. package/dist/EditorialImage/styles.module.scss +36 -0
  6. package/dist/GlobalFooter/FooterNavLinks/assets/download-on-the-app-store.svg +45 -0
  7. package/dist/GlobalFooter/FooterNavLinks/assets/get-it-on-google-play.png +0 -0
  8. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.d.ts +18 -0
  9. package/dist/LearningOutcomeBadges/LearningOutcomeLevelBadge.js +57 -0
  10. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.d.ts +10 -0
  11. package/dist/LearningOutcomeBadges/LearningOutcomeLowAssessmentBadge.js +35 -0
  12. package/dist/LearningOutcomeBadges/index.d.ts +2 -0
  13. package/dist/LearningOutcomeBadges/index.js +2 -0
  14. package/dist/LearningOutcomePopover/index.d.ts +10 -0
  15. package/dist/LearningOutcomePopover/index.js +124 -0
  16. package/dist/LearningOutcomeTile/Tile.d.ts +7 -0
  17. package/dist/LearningOutcomeTile/Tile.js +79 -0
  18. package/dist/LearningOutcomeTile/index.d.ts +1 -8
  19. package/dist/LearningOutcomeTile/index.js +79 -92
  20. package/dist/LearningOutcomeTile/types.d.ts +47 -0
  21. package/dist/LearningOutcomeTile/types.js +11 -0
  22. package/dist/Loading/styles.module.scss +131 -0
  23. package/dist/NotFoundContent/404.svg +1 -0
  24. package/dist/assets/darkQuotes.svg +1 -0
  25. package/dist/assets/dots.svg +1 -0
  26. package/dist/assets/lightQuotes.svg +1 -0
  27. package/dist/assets/navyQuotes.svg +5 -0
  28. package/dist/assets/orange_squiggle.svg +1 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/png.d.ts +4 -0
  32. package/dist/react-freezeframe.d.ts +1 -0
  33. package/dist/stories/Molecules/DropdownButton.stories.d.ts +0 -5
  34. package/dist/stories/Molecules/DropdownButton.stories.js +3 -177
  35. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.d.ts +6 -0
  36. package/dist/stories/Molecules/LearningOutcomeLevelBadge.stories.js +20 -0
  37. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.d.ts +6 -0
  38. package/dist/stories/Molecules/LearningOutcomeLowAssessmentBadge.stories.js +10 -0
  39. package/dist/stories/Molecules/LearningOutcomePopover.stories.d.ts +5 -0
  40. package/dist/stories/Molecules/LearningOutcomePopover.stories.js +39 -0
  41. package/dist/stories/Molecules/LearningOutcomeTile.stories.d.ts +1 -0
  42. package/dist/stories/Molecules/LearningOutcomeTile.stories.js +192 -25
  43. package/dist/svg.d.ts +8 -0
  44. package/dist/theme.d.ts +5 -0
  45. package/package.json +2 -2
@@ -0,0 +1,45 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="120" height="40" viewBox="0 0 120 40">
2
+ <g>
3
+ <g>
4
+ <g>
5
+ <path d="M110.13477,0H9.53468c-.3667,0-.729,0-1.09473.002-.30615.002-.60986.00781-.91895.0127A13.21476,13.21476,0,0,0,5.5171.19141a6.66509,6.66509,0,0,0-1.90088.627A6.43779,6.43779,0,0,0,1.99757,1.99707,6.25844,6.25844,0,0,0,.81935,3.61816a6.60119,6.60119,0,0,0-.625,1.90332,12.993,12.993,0,0,0-.1792,2.002C.00587,7.83008.00489,8.1377,0,8.44434V31.5586c.00489.3105.00587.6113.01515.9219a12.99232,12.99232,0,0,0,.1792,2.0019,6.58756,6.58756,0,0,0,.625,1.9043A6.20778,6.20778,0,0,0,1.99757,38.001a6.27445,6.27445,0,0,0,1.61865,1.1787,6.70082,6.70082,0,0,0,1.90088.6308,13.45514,13.45514,0,0,0,2.0039.1768c.30909.0068.6128.0107.91895.0107C8.80567,40,9.168,40,9.53468,40H110.13477c.3594,0,.7246,0,1.084-.002.3047,0,.6172-.0039.9219-.0107a13.279,13.279,0,0,0,2-.1768,6.80432,6.80432,0,0,0,1.9082-.6308,6.27742,6.27742,0,0,0,1.6172-1.1787,6.39482,6.39482,0,0,0,1.1816-1.6143,6.60413,6.60413,0,0,0,.6191-1.9043,13.50643,13.50643,0,0,0,.1856-2.0019c.0039-.3106.0039-.6114.0039-.9219.0078-.3633.0078-.7246.0078-1.0938V9.53613c0-.36621,0-.72949-.0078-1.09179,0-.30664,0-.61426-.0039-.9209a13.5071,13.5071,0,0,0-.1856-2.002,6.6177,6.6177,0,0,0-.6191-1.90332,6.46619,6.46619,0,0,0-2.7988-2.7998,6.76754,6.76754,0,0,0-1.9082-.627,13.04394,13.04394,0,0,0-2-.17676c-.3047-.00488-.6172-.01074-.9219-.01269-.3594-.002-.7246-.002-1.084-.002Z" style="fill: #a6a6a6"/>
6
+ <path d="M8.44483,39.125c-.30468,0-.602-.0039-.90429-.0107a12.68714,12.68714,0,0,1-1.86914-.1631,5.88381,5.88381,0,0,1-1.65674-.5479,5.40573,5.40573,0,0,1-1.397-1.0166,5.32082,5.32082,0,0,1-1.02051-1.3965,5.72186,5.72186,0,0,1-.543-1.6572,12.41351,12.41351,0,0,1-.1665-1.875c-.00634-.2109-.01464-.9131-.01464-.9131V8.44434S.88185,7.75293.8877,7.5498a12.37039,12.37039,0,0,1,.16553-1.87207,5.7555,5.7555,0,0,1,.54346-1.6621A5.37349,5.37349,0,0,1,2.61183,2.61768,5.56543,5.56543,0,0,1,4.01417,1.59521a5.82309,5.82309,0,0,1,1.65332-.54394A12.58589,12.58589,0,0,1,7.543.88721L8.44532.875H111.21387l.9131.0127a12.38493,12.38493,0,0,1,1.8584.16259,5.93833,5.93833,0,0,1,1.6709.54785,5.59374,5.59374,0,0,1,2.415,2.41993,5.76267,5.76267,0,0,1,.5352,1.64892,12.995,12.995,0,0,1,.1738,1.88721c.0029.2832.0029.5874.0029.89014.0079.375.0079.73193.0079,1.09179V30.4648c0,.3633,0,.7178-.0079,1.0752,0,.3252,0,.6231-.0039.9297a12.73126,12.73126,0,0,1-.1709,1.8535,5.739,5.739,0,0,1-.54,1.67,5.48029,5.48029,0,0,1-1.0156,1.3857,5.4129,5.4129,0,0,1-1.3994,1.0225,5.86168,5.86168,0,0,1-1.668.5498,12.54218,12.54218,0,0,1-1.8692.1631c-.2929.0068-.5996.0107-.8974.0107l-1.084.002Z"/>
7
+ </g>
8
+ <g id="_Group_" data-name="&lt;Group&gt;">
9
+ <g id="_Group_2" data-name="&lt;Group&gt;">
10
+ <g id="_Group_3" data-name="&lt;Group&gt;">
11
+ <path id="_Path_" data-name="&lt;Path&gt;" d="M24.76888,20.30068a4.94881,4.94881,0,0,1,2.35656-4.15206,5.06566,5.06566,0,0,0-3.99116-2.15768c-1.67924-.17626-3.30719,1.00483-4.1629,1.00483-.87227,0-2.18977-.98733-3.6085-.95814a5.31529,5.31529,0,0,0-4.47292,2.72787c-1.934,3.34842-.49141,8.26947,1.3612,10.97608.9269,1.32535,2.01018,2.8058,3.42763,2.7533,1.38706-.05753,1.9051-.88448,3.5794-.88448,1.65876,0,2.14479.88448,3.591.8511,1.48838-.02416,2.42613-1.33124,3.32051-2.66914a10.962,10.962,0,0,0,1.51842-3.09251A4.78205,4.78205,0,0,1,24.76888,20.30068Z" style="fill: #fff"/>
12
+ <path id="_Path_2" data-name="&lt;Path&gt;" d="M22.03725,12.21089a4.87248,4.87248,0,0,0,1.11452-3.49062,4.95746,4.95746,0,0,0-3.20758,1.65961,4.63634,4.63634,0,0,0-1.14371,3.36139A4.09905,4.09905,0,0,0,22.03725,12.21089Z" style="fill: #fff"/>
13
+ </g>
14
+ </g>
15
+ <g>
16
+ <path d="M42.30227,27.13965h-4.7334l-1.13672,3.35645H34.42727l4.4834-12.418h2.083l4.4834,12.418H43.438ZM38.0591,25.59082h3.752l-1.84961-5.44727h-.05176Z" style="fill: #fff"/>
17
+ <path d="M55.15969,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H48.4302v1.50586h.03418a3.21162,3.21162,0,0,1,2.88281-1.60059C53.645,21.34766,55.15969,23.16406,55.15969,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C52.30227,29.01563,53.24953,27.81934,53.24953,25.96973Z" style="fill: #fff"/>
18
+ <path d="M65.12453,25.96973c0,2.81348-1.50586,4.62109-3.77832,4.62109a3.0693,3.0693,0,0,1-2.84863-1.584h-.043v4.48438h-1.8584V21.44238H58.395v1.50586h.03418A3.21162,3.21162,0,0,1,61.312,21.34766C63.60988,21.34766,65.12453,23.16406,65.12453,25.96973Zm-1.91016,0c0-1.833-.94727-3.03809-2.39258-3.03809-1.41992,0-2.375,1.23047-2.375,3.03809,0,1.82422.95508,3.0459,2.375,3.0459C62.26711,29.01563,63.21438,27.81934,63.21438,25.96973Z" style="fill: #fff"/>
19
+ <path d="M71.71047,27.03613c.1377,1.23145,1.334,2.04,2.96875,2.04,1.56641,0,2.69336-.80859,2.69336-1.91895,0-.96387-.67969-1.541-2.28906-1.93652l-1.60937-.3877c-2.28027-.55078-3.33887-1.61719-3.33887-3.34766,0-2.14258,1.86719-3.61426,4.51855-3.61426,2.624,0,4.42285,1.47168,4.4834,3.61426h-1.876c-.1123-1.23926-1.13672-1.9873-2.63379-1.9873s-2.52148.75684-2.52148,1.8584c0,.87793.6543,1.39453,2.25488,1.79l1.36816.33594c2.54785.60254,3.60645,1.626,3.60645,3.44238,0,2.32324-1.85059,3.77832-4.79395,3.77832-2.75391,0-4.61328-1.4209-4.7334-3.667Z" style="fill: #fff"/>
20
+ <path d="M83.34621,19.2998v2.14258h1.72168v1.47168H83.34621v4.99121c0,.77539.34473,1.13672,1.10156,1.13672a5.80752,5.80752,0,0,0,.61133-.043v1.46289a5.10351,5.10351,0,0,1-1.03223.08594c-1.833,0-2.54785-.68848-2.54785-2.44434V22.91406H80.16262V21.44238H81.479V19.2998Z" style="fill: #fff"/>
21
+ <path d="M86.065,25.96973c0-2.84863,1.67773-4.63867,4.29395-4.63867,2.625,0,4.29492,1.79,4.29492,4.63867,0,2.85645-1.66113,4.63867-4.29492,4.63867C87.72609,30.6084,86.065,28.82617,86.065,25.96973Zm6.69531,0c0-1.9541-.89551-3.10742-2.40137-3.10742s-2.40039,1.16211-2.40039,3.10742c0,1.96191.89453,3.10645,2.40039,3.10645S92.76027,27.93164,92.76027,25.96973Z" style="fill: #fff"/>
22
+ <path d="M96.18606,21.44238h1.77246v1.541h.043a2.1594,2.1594,0,0,1,2.17773-1.63574,2.86616,2.86616,0,0,1,.63672.06934v1.73828a2.59794,2.59794,0,0,0-.835-.1123,1.87264,1.87264,0,0,0-1.93652,2.083v5.37012h-1.8584Z" style="fill: #fff"/>
23
+ <path d="M109.3843,27.83691c-.25,1.64355-1.85059,2.77148-3.89844,2.77148-2.63379,0-4.26855-1.76465-4.26855-4.5957,0-2.83984,1.64355-4.68164,4.19043-4.68164,2.50488,0,4.08008,1.7207,4.08008,4.46582v.63672h-6.39453v.1123a2.358,2.358,0,0,0,2.43555,2.56445,2.04834,2.04834,0,0,0,2.09082-1.27344Zm-6.28223-2.70215h4.52637a2.1773,2.1773,0,0,0-2.2207-2.29785A2.292,2.292,0,0,0,103.10207,25.13477Z" style="fill: #fff"/>
24
+ </g>
25
+ </g>
26
+ </g>
27
+ <g id="_Group_4" data-name="&lt;Group&gt;">
28
+ <g>
29
+ <path d="M37.82619,8.731a2.63964,2.63964,0,0,1,2.80762,2.96484c0,1.90625-1.03027,3.002-2.80762,3.002H35.67092V8.731Zm-1.22852,5.123h1.125a1.87588,1.87588,0,0,0,1.96777-2.146,1.881,1.881,0,0,0-1.96777-2.13379h-1.125Z" style="fill: #fff"/>
30
+ <path d="M41.68068,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C44.57522,13.99463,45.01369,13.42432,45.01369,12.44434Z" style="fill: #fff"/>
31
+ <path d="M51.57326,14.69775h-.92187l-.93066-3.31641h-.07031l-.92676,3.31641h-.91309l-1.24121-4.50293h.90137l.80664,3.436h.06641l.92578-3.436h.85254l.92578,3.436h.07031l.80273-3.436h.88867Z" style="fill: #fff"/>
32
+ <path d="M53.85354,10.19482H54.709v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915h-.88867V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" style="fill: #fff"/>
33
+ <path d="M59.09377,8.437h.88867v6.26074h-.88867Z" style="fill: #fff"/>
34
+ <path d="M61.21779,12.44434a2.13346,2.13346,0,1,1,4.24756,0,2.1338,2.1338,0,1,1-4.24756,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C64.11232,13.99463,64.5508,13.42432,64.5508,12.44434Z" style="fill: #fff"/>
35
+ <path d="M66.4009,13.42432c0-.81055.60352-1.27783,1.6748-1.34424l1.21973-.07031v-.38867c0-.47559-.31445-.74414-.92187-.74414-.49609,0-.83984.18213-.93848.50049h-.86035c.09082-.77344.81836-1.26953,1.83984-1.26953,1.12891,0,1.76563.562,1.76563,1.51318v3.07666h-.85547v-.63281h-.07031a1.515,1.515,0,0,1-1.35254.707A1.36026,1.36026,0,0,1,66.4009,13.42432Zm2.89453-.38477v-.37646l-1.09961.07031c-.62012.0415-.90137.25244-.90137.64941,0,.40527.35156.64111.835.64111A1.0615,1.0615,0,0,0,69.29543,13.03955Z" style="fill: #fff"/>
36
+ <path d="M71.34816,12.44434c0-1.42285.73145-2.32422,1.86914-2.32422a1.484,1.484,0,0,1,1.38086.79h.06641V8.437h.88867v6.26074h-.85156v-.71143h-.07031a1.56284,1.56284,0,0,1-1.41406.78564C72.0718,14.772,71.34816,13.87061,71.34816,12.44434Zm.918,0c0,.95508.4502,1.52979,1.20313,1.52979.749,0,1.21191-.583,1.21191-1.52588,0-.93848-.46777-1.52979-1.21191-1.52979C72.72121,10.91846,72.26613,11.49707,72.26613,12.44434Z" style="fill: #fff"/>
37
+ <path d="M79.23,12.44434a2.13323,2.13323,0,1,1,4.24707,0,2.13358,2.13358,0,1,1-4.24707,0Zm3.333,0c0-.97607-.43848-1.54687-1.208-1.54687-.77246,0-1.207.5708-1.207,1.54688,0,.98389.43457,1.55029,1.207,1.55029C82.12453,13.99463,82.563,13.42432,82.563,12.44434Z" style="fill: #fff"/>
38
+ <path d="M84.66945,10.19482h.85547v.71533h.06641a1.348,1.348,0,0,1,1.34375-.80225,1.46456,1.46456,0,0,1,1.55859,1.6748v2.915H87.605V12.00586c0-.72363-.31445-1.0835-.97168-1.0835a1.03294,1.03294,0,0,0-1.0752,1.14111v2.63428h-.88867Z" style="fill: #fff"/>
39
+ <path d="M93.51516,9.07373v1.1416h.97559v.74854h-.97559V13.2793c0,.47168.19434.67822.63672.67822a2.96657,2.96657,0,0,0,.33887-.02051v.74023a2.9155,2.9155,0,0,1-.4834.04541c-.98828,0-1.38184-.34766-1.38184-1.21582v-2.543h-.71484v-.74854h.71484V9.07373Z" style="fill: #fff"/>
40
+ <path d="M95.70461,8.437h.88086v2.48145h.07031a1.3856,1.3856,0,0,1,1.373-.80664,1.48339,1.48339,0,0,1,1.55078,1.67871v2.90723H98.69v-2.688c0-.71924-.335-1.0835-.96289-1.0835a1.05194,1.05194,0,0,0-1.13379,1.1416v2.62988h-.88867Z" style="fill: #fff"/>
41
+ <path d="M104.76125,13.48193a1.828,1.828,0,0,1-1.95117,1.30273A2.04531,2.04531,0,0,1,100.73,12.46045a2.07685,2.07685,0,0,1,2.07617-2.35254c1.25293,0,2.00879.856,2.00879,2.27V12.688h-3.17969v.0498a1.1902,1.1902,0,0,0,1.19922,1.29,1.07934,1.07934,0,0,0,1.07129-.5459Zm-3.126-1.45117h2.27441a1.08647,1.08647,0,0,0-1.1084-1.1665A1.15162,1.15162,0,0,0,101.63527,12.03076Z" style="fill: #fff"/>
42
+ </g>
43
+ </g>
44
+ </g>
45
+ </svg>
@@ -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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MZWFybmluZ091dGNvbWVCYWRnZXMvTGVhcm5pbmdPdXRjb21lTGV2ZWxCYWRnZS50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0JvQiIsImZpbGUiOiIuLi8uLi9zcmMvTGVhcm5pbmdPdXRjb21lQmFkZ2VzL0xlYXJuaW5nT3V0Y29tZUxldmVsQmFkZ2UudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQmFkZ2UsIEZsZXhCb3gsIFRleHQsIFRleHRQcm9wcyB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0JztcbmltcG9ydCB7IGNzcywgdmFyaWFudCB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmV4cG9ydCBlbnVtIExlYXJuaW5nT3V0Y29tZUxldmVscyB7XG4gIE9uZSA9IDEsXG4gIFR3byA9IDIsXG4gIFRocmVlID0gMyxcbn1cblxuZXhwb3J0IGNvbnN0IGxlYXJuaW5nT3V0Y29tZUxhYmVscyA9IHtcbiAgW0xlYXJuaW5nT3V0Y29tZUxldmVscy5PbmVdOiAnU3Vic2tpbGwnLFxuICBbTGVhcm5pbmdPdXRjb21lTGV2ZWx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cmV0dXJuIChcbiAgICA8RmxleEJveFxuICAgICAgYmc9e3JlbW92ZUJhY2tncm91bmQgPyAndHJhbnNwYXJlbnQnIDogJ3doaXRlJ31cbiAgICAgIGhlaWdodD1cIm1pbi1jb250ZW50XCJcbiAgICAgIHdpZHRoPVwibWluLWNvbnRlbnRcIlxuICAgICAgYm9yZGVyUmFkaXVzPVwieGxcIlxuICAgID5cbiAgICAgIDxTdHlsZWRCYWRnZVxuICAgICAgICBkYXRhLXRlc3RpZD1cImxlYXJuaW5nLW91dGNvbWUtYmFkZ2VcIlxuICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICB2YXJpYW50PVwidGVydGlhcnlcIlxuICAgICAgICBsZXZlbD17bGV2ZWx9XG4gICAgICA+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,eyJ2ZXJzaW9uIjozLCJ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oKSA9PiB7XG4gIHJldHVybiAoXG4gICAgPEJhZGdlIHZhcmlhbnQ9XCJjdXN0b21cIiBzaXplPVwic21cIiBiZz1cIm9yYW5nZS0xMDBcIj5cbiAgICAgIDxMZWFybmluZ091dGNvbWVMb3dBc3Nlc3NtZW50RG90IHNtYWxsIC8+XG4gICAgICA8VGV4dCBtbD17NH0+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,10 @@
1
+ import { LearningOutcomePopoverDetailsProps } from '../LearningOutcomeTile/types';
2
+ interface LearningOutcomePopoverProps {
3
+ activeElRef: React.RefObject<HTMLDivElement> | React.RefObject<HTMLAnchorElement>;
4
+ id: string;
5
+ isOpen: boolean;
6
+ learningOutcomeDetails: LearningOutcomePopoverDetailsProps;
7
+ horizontalOffset?: number;
8
+ }
9
+ export declare const LearningOutcomePopover: React.FC<LearningOutcomePopoverProps>;
10
+ export {};
@@ -0,0 +1,124 @@
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
+ learningOutcomeDetails,
40
+ ...rest
41
+ }) => {
42
+ const {
43
+ level,
44
+ outcome,
45
+ latestScore,
46
+ highestScore,
47
+ percentComplete = 0
48
+ } = learningOutcomeDetails || {};
49
+ const lowLatestAssessment = Boolean(latestScore != null && latestScore < 70);
50
+ const renderProgress = () => /*#__PURE__*/_jsxs(FlexBox, {
51
+ children: [Boolean(percentComplete === 100) && /*#__PURE__*/_jsx(FlexBox, {
52
+ width: 16,
53
+ height: 16,
54
+ borderRadius: "md",
55
+ bg: "primary",
56
+ mr: 4,
57
+ alignItems: "center",
58
+ justifyContent: "center",
59
+ children: /*#__PURE__*/_jsx(SmallCheckIcon, {
60
+ size: 11,
61
+ color: "white"
62
+ })
63
+ }), /*#__PURE__*/_jsx(Text, {
64
+ color: "text",
65
+ variant: "p-small",
66
+ children: `${percentComplete}% progress`
67
+ })]
68
+ });
69
+ return /*#__PURE__*/_jsx(Popover, {
70
+ ...rest,
71
+ isOpen: isOpen,
72
+ targetRef: activeElRef,
73
+ position: "above",
74
+ beak: "center",
75
+ outline: true,
76
+ skipFocusTrap: true,
77
+ children: /*#__PURE__*/_jsxs(FlexBox, {
78
+ width: POPOVER_WIDTH,
79
+ pt: 24,
80
+ pb: 4,
81
+ px: POPOVER_HORIZONTAL_PADDING,
82
+ gap: 24,
83
+ column: true,
84
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
85
+ gap: 16,
86
+ column: true,
87
+ children: [/*#__PURE__*/_jsxs(FlexBox, {
88
+ justifyContent: "space-between",
89
+ children: [!!level && /*#__PURE__*/_jsx(LearningOutcomeLevelBadge, {
90
+ level: level
91
+ }), lowLatestAssessment && /*#__PURE__*/_jsx(LearningOutcomeLowAssessmentBadge, {})]
92
+ }), /*#__PURE__*/_jsx(Text, {
93
+ color: "text",
94
+ textAlign: "left",
95
+ variant: "title-xs",
96
+ whiteSpace: "break-spaces",
97
+ children: outcome
98
+ }), renderProgress()]
99
+ }), /*#__PURE__*/_jsxs(FlexBox, {
100
+ alignItems: "flex-start",
101
+ gap: 4,
102
+ pt: 16,
103
+ pb: 12,
104
+ borderTop: 1,
105
+ borderColor: "background-hover",
106
+ column: true,
107
+ children: [/*#__PURE__*/_jsx(Text, {
108
+ variant: "p-small",
109
+ fontWeight: 700,
110
+ children: "Evaluation results"
111
+ }), /*#__PURE__*/_jsxs(FlexBox, {
112
+ children: [/*#__PURE__*/_jsx(Assessment, {
113
+ score: highestScore,
114
+ type: "highest"
115
+ }), /*#__PURE__*/_jsx(Assessment, {
116
+ score: latestScore,
117
+ type: "latest",
118
+ noBorderLeft: true
119
+ })]
120
+ })]
121
+ })]
122
+ })
123
+ });
124
+ };
@@ -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
+ position: 'relative'
10
+ };
11
+ const hoverVariants = hover => variant({
12
+ prop: 'progress',
13
+ variants: {
14
+ [Progress.notStarted]: {
15
+ '&:hover': {
16
+ bg: hover ? 'background-hover' : undefined
17
+ }
18
+ },
19
+ [Progress.inProgress]: {
20
+ '&:hover': {
21
+ bg: hover ? 'rgba(85, 51, 255, 0.12)' : undefined,
22
+ borderColor: hover ? 'rgba(85, 51, 255, 0.12)' : undefined
23
+ } // this is primary-hover color with 12% opacity (LXP-7705 when lighter primary-hover color is available)
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' ? 1 : 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 (LXP-7705 when lighter primary color is available)
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9MZWFybmluZ091dGNvbWVUaWxlL1RpbGUudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXNEb0IiLCJmaWxlIjoiLi4vLi4vc3JjL0xlYXJuaW5nT3V0Y29tZVRpbGUvVGlsZS50c3giLCJzb3VyY2VzQ29udGVudCI6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mhvdmVyVmFyaWFudHMocHJvcHMuaG92ZXIpKHByb3BzKSxcbiAgLi4uc2l6ZVZhcmlhbnRzKHByb3BzLnNpemUpKHByb3BzKSxcbiAgLi4udmFyaWFudCh7XG4gICAgcHJvcDogJ3Byb2dyZXNzJyxcbiAgICBiYXNlOiB7XG4gICAgICAuLi50aWxlU3R5bGVzLFxuICAgIH0sXG4gICAgdmFyaWFudHM6IHtcbiAgICAgIFtQcm9ncmVzcy5ub3RTdGFydGVkXToge1xuICAgICAgICBiZzogJ2JhY2tncm91bmQtc2VsZWN0ZWQnLFxuICAgICAgICBib3JkZXJDb2xvcjogJ2JhY2tncm91bmQtaG92ZXInLFxuICAgICAgfSxcbiAgICAgIFtQcm9ncmVzcy5pblByb2dyZXNzXToge1xuICAgICAgICBiZzogJ3JnYmEoNTgsIDE2LCAyMjksIDAuMTIpJyBhcyBuZXZlciwgLy8gdGhpcyBpcyBwcmltYXJ5IGNvbG9yIHdpdGggMTIlIG9wYWNpdHkgKExYUC03NzA1IHdoZW4gbGlnaHRlciBwcmltYXJ5IGNvbG9yIGlzIGF2YWlsYWJsZSlcbiAgICAgICAgYm9yZGVyQ29sb3I6ICdwcmltYXJ5JyxcbiAgICAgIH0sXG4gICAgICBbUHJvZ3Jlc3MuY29tcGxldGVkXToge1xuICAgICAgICBiZzogJ3ByaW1hcnknLFxuICAgICAgICBib3JkZXJDb2xvcjogJ2JvcmRlci10ZXJ0aWFyeScsXG4gICAgICB9LFxuICAgIH0sXG4gIH0pKHByb3BzKSxcbn0pKTtcbiJdfQ== */");
@@ -1,9 +1,2 @@
1
- type SizeType = 'small' | 'normal';
2
- interface LearningOutcomeTileProps {
3
- progressPercentage: number | undefined;
4
- assessmentPercentage?: number;
5
- hover?: boolean;
6
- size?: SizeType;
7
- }
1
+ import { LearningOutcomeTileProps } from './types';
8
2
  export declare const LearningOutcomeTile: React.FC<LearningOutcomeTileProps>;
9
- export {};