@learncard/react 2.7.22 → 2.7.24

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 (59) hide show
  1. package/dist/cjs/{CertificateDisplayCard-c5583200.js → CertificateDisplayCard-d7f6c028.js} +3 -3
  2. package/dist/cjs/{CertificateDisplayCard-c5583200.js.map → CertificateDisplayCard-d7f6c028.js.map} +1 -1
  3. package/dist/cjs/{MeritBadgeDisplayCard-306c0f77.js → MeritBadgeDisplayCard-b952091c.js} +82 -62
  4. package/dist/cjs/MeritBadgeDisplayCard-b952091c.js.map +1 -0
  5. package/dist/cjs/{MeritBadgeSkillsCount-e48b2202.js → MeritBadgeSkillsCount-59548cbb.js} +2 -2
  6. package/dist/cjs/{MeritBadgeSkillsCount-e48b2202.js.map → MeritBadgeSkillsCount-59548cbb.js.map} +1 -1
  7. package/dist/cjs/{VCCard-4dbd6d24.js → VCCard-70f348fd.js} +3 -3
  8. package/dist/cjs/{VCCard-4dbd6d24.js.map → VCCard-70f348fd.js.map} +1 -1
  9. package/dist/cjs/{VCDisplayBackFace-0473d345.js → VCDisplayBackFace-aab5806b.js} +2 -2
  10. package/dist/cjs/{VCDisplayBackFace-0473d345.js.map → VCDisplayBackFace-aab5806b.js.map} +1 -1
  11. package/dist/cjs/{VCDisplayCard-4edf82c6.js → VCDisplayCard-ae0ee7c6.js} +3 -3
  12. package/dist/cjs/{VCDisplayCard-4edf82c6.js.map → VCDisplayCard-ae0ee7c6.js.map} +1 -1
  13. package/dist/cjs/{VCDisplayCard2-1720f1f1.js → VCDisplayCard2-653b08d5.js} +5 -5
  14. package/dist/cjs/{VCDisplayCard2-1720f1f1.js.map → VCDisplayCard2-653b08d5.js.map} +1 -1
  15. package/dist/cjs/{VerifierStateBadgeAndText-855df7d5.js → VerifierStateBadgeAndText-e5f83fc7.js} +6 -3
  16. package/dist/cjs/{VerifierStateBadgeAndText-855df7d5.js.map → VerifierStateBadgeAndText-e5f83fc7.js.map} +1 -1
  17. package/dist/cjs/{credential.helpers-04044bbd.js → credential.helpers-39c07250.js} +20 -12
  18. package/dist/cjs/credential.helpers-39c07250.js.map +1 -0
  19. package/dist/cjs/index.js +9 -9
  20. package/dist/cjs/index13.js +9 -9
  21. package/dist/cjs/index21.js +4 -4
  22. package/dist/cjs/index37.js +8 -8
  23. package/dist/cjs/index38.js +2 -2
  24. package/dist/cjs/index39.js +3 -3
  25. package/dist/cjs/index40.js +5 -5
  26. package/dist/cjs/index6.js +3 -3
  27. package/dist/esm/{CertificateDisplayCard-6b7a31bc.js → CertificateDisplayCard-7fbe6404.js} +3 -3
  28. package/dist/esm/{CertificateDisplayCard-6b7a31bc.js.map → CertificateDisplayCard-7fbe6404.js.map} +1 -1
  29. package/dist/esm/{MeritBadgeDisplayCard-0fd4c3c7.js → MeritBadgeDisplayCard-ec9d5238.js} +82 -62
  30. package/dist/esm/MeritBadgeDisplayCard-ec9d5238.js.map +1 -0
  31. package/dist/esm/{MeritBadgeSkillsCount-d0c9dd6e.js → MeritBadgeSkillsCount-1694dc2c.js} +2 -2
  32. package/dist/esm/{MeritBadgeSkillsCount-d0c9dd6e.js.map → MeritBadgeSkillsCount-1694dc2c.js.map} +1 -1
  33. package/dist/esm/{VCCard-aa590ccb.js → VCCard-85d16242.js} +3 -3
  34. package/dist/esm/{VCCard-aa590ccb.js.map → VCCard-85d16242.js.map} +1 -1
  35. package/dist/esm/{VCDisplayBackFace-ac7bbe0b.js → VCDisplayBackFace-e5f8f858.js} +2 -2
  36. package/dist/esm/{VCDisplayBackFace-ac7bbe0b.js.map → VCDisplayBackFace-e5f8f858.js.map} +1 -1
  37. package/dist/esm/{VCDisplayCard-b7dc3160.js → VCDisplayCard-edcd787f.js} +3 -3
  38. package/dist/esm/{VCDisplayCard-b7dc3160.js.map → VCDisplayCard-edcd787f.js.map} +1 -1
  39. package/dist/esm/{VCDisplayCard2-b8e77e57.js → VCDisplayCard2-599e7a65.js} +5 -5
  40. package/dist/esm/{VCDisplayCard2-b8e77e57.js.map → VCDisplayCard2-599e7a65.js.map} +1 -1
  41. package/dist/esm/{VerifierStateBadgeAndText-26578052.js → VerifierStateBadgeAndText-b042bf32.js} +6 -3
  42. package/dist/esm/{VerifierStateBadgeAndText-26578052.js.map → VerifierStateBadgeAndText-b042bf32.js.map} +1 -1
  43. package/dist/esm/{credential.helpers-93170224.js → credential.helpers-a5b16a5e.js} +20 -12
  44. package/dist/esm/credential.helpers-a5b16a5e.js.map +1 -0
  45. package/dist/esm/index.js +9 -9
  46. package/dist/esm/index13.js +9 -9
  47. package/dist/esm/index21.js +4 -4
  48. package/dist/esm/index37.js +8 -8
  49. package/dist/esm/index38.js +2 -2
  50. package/dist/esm/index39.js +3 -3
  51. package/dist/esm/index40.js +5 -5
  52. package/dist/esm/index6.js +3 -3
  53. package/dist/main.css +1 -1
  54. package/dist/main.js +1 -1
  55. package/package.json +2 -2
  56. package/dist/cjs/MeritBadgeDisplayCard-306c0f77.js.map +0 -1
  57. package/dist/cjs/credential.helpers-04044bbd.js.map +0 -1
  58. package/dist/esm/MeritBadgeDisplayCard-0fd4c3c7.js.map +0 -1
  59. package/dist/esm/credential.helpers-93170224.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { I as InfoIcon, g as getBaseUrl, a as VideoIcon, C as Camera, G as GenericDocumentIcon, L as LinkIcon, p as prettyBytes, c as capitalize, X, E as ExclamationPoint, A as AcuteCheckmark, b as LeftArrow, d as SkillsBox, R as RoundedCorner, e as IssuerSeal, V as VERIFIER_STATES, h as Line, f as Smiley, i as VerifierStateBadgeAndText, F as FatArrow } from './VerifierStateBadgeAndText-26578052.js';
3
- import { a as getColorForVerificationStatus, b as getInfoFromCredential, d as getCategoryDarkColor, e as getCategoryLightColor, f as getCategoryIcon, h as getNameFromProfile, i as getImageFromProfile } from './credential.helpers-93170224.js';
2
+ import { I as InfoIcon, g as getBaseUrl, a as VideoIcon, C as Camera, G as GenericDocumentIcon, L as LinkIcon, p as prettyBytes, c as capitalize, X, E as ExclamationPoint, A as AcuteCheckmark, b as LeftArrow, d as SkillsBox, R as RoundedCorner, e as IssuerSeal, V as VERIFIER_STATES, h as Line, f as Smiley, i as VerifierStateBadgeAndText, F as FatArrow } from './VerifierStateBadgeAndText-b042bf32.js';
3
+ import { a as getColorForVerificationStatus, b as getInfoFromCredential, d as getCategoryDarkColor, e as getCategoryLightColor, f as getCategoryIcon, h as getNameFromProfile, i as getImageFromProfile } from './credential.helpers-a5b16a5e.js';
4
4
  import { a as LCCategoryEnum } from './index-28917993.js';
5
5
  import { V as VerificationStatusEnum } from './types.esm-3a1994d5.js';
6
6
  import CaretRightFilled from './CaretRightFilled.svg';
@@ -504,64 +504,81 @@ const MeritBadgeCornerIcon = ({ categoryType, position }) => {
504
504
 
505
505
  const MeritBadgeRibbon = ({ className = "" }) => {
506
506
  return /* @__PURE__ */ React.createElement("svg", {
507
- width: "167",
508
- height: "131",
509
- viewBox: "0 0 167 131",
507
+ width: "207",
508
+ height: "170",
509
+ viewBox: "0 0 207 170",
510
510
  fill: "none",
511
511
  xmlns: "http://www.w3.org/2000/svg",
512
512
  className
513
+ }, /* @__PURE__ */ React.createElement("g", {
514
+ filter: "url(#filter0_d_10755_290433)"
513
515
  }, /* @__PURE__ */ React.createElement("circle", {
514
- cx: "83.1426",
515
- cy: "65.5",
516
- r: "64",
516
+ cx: "102.988",
517
+ cy: "83",
518
+ r: "81.5",
517
519
  fill: "white",
518
520
  stroke: "white",
519
521
  strokeWidth: "3"
520
522
  }), /* @__PURE__ */ React.createElement("path", {
521
- d: "M29.3926 3.70096C28.9354 3.437 28.3731 3.43281 27.912 3.68993C27.4509 3.94705 27.159 4.42762 27.1432 4.95531L26.3214 32.5274L2.85421 47.0252C2.40508 47.3026 2.13488 47.7958 2.14274 48.3236C2.15061 48.8515 2.43538 49.3363 2.89258 49.6003L137.608 127.378C138.065 127.642 138.627 127.646 139.088 127.389C139.549 127.132 139.841 126.651 139.857 126.124L140.679 98.5517L164.146 84.0539C164.595 83.7764 164.865 83.2833 164.857 82.7554C164.85 82.2276 164.565 81.7427 164.108 81.4787L29.3926 3.70096Z",
523
+ d: "M3.94446 50C3.41654 50 2.92748 50.2775 2.65674 50.7307C2.38599 51.1839 2.37343 51.7461 2.62365 52.211L19.4659 83.5L2.62365 114.789C2.37343 115.254 2.386 115.816 2.65674 116.269C2.92748 116.722 3.41654 117 3.94446 117L203.056 117C203.583 117 204.073 116.722 204.343 116.269C204.614 115.816 204.627 115.254 204.376 114.789L187.534 83.5L204.376 52.211C204.627 51.7461 204.614 51.1839 204.343 50.7307C204.073 50.2775 203.583 50 203.056 50L3.94446 50Z",
522
524
  fill: "#622599",
523
525
  stroke: "white",
524
526
  strokeWidth: "3",
525
527
  strokeLinejoin: "round"
526
528
  }), /* @__PURE__ */ React.createElement("rect", {
527
- x: "22.1426",
528
- y: "4.5",
529
- width: "123",
530
- height: "123",
531
- rx: "61.5",
532
- fill: "white"
529
+ x: "25.3273",
530
+ y: "5.34741",
531
+ width: "156.6",
532
+ height: "156.6",
533
+ rx: "78.2999",
534
+ fill: "#FBFBFC"
533
535
  }), /* @__PURE__ */ React.createElement("rect", {
534
- x: "22.1426",
535
- y: "4.5",
536
- width: "123",
537
- height: "123",
538
- rx: "61.5",
536
+ x: "25.3273",
537
+ y: "5.34741",
538
+ width: "156.6",
539
+ height: "156.6",
540
+ rx: "78.2999",
539
541
  stroke: "#622599",
540
542
  strokeWidth: "3"
541
543
  }), /* @__PURE__ */ React.createElement("rect", {
542
- x: "28.6426",
543
- y: "11",
544
- width: "110",
545
- height: "110",
546
- rx: "55",
547
- stroke: "#622599",
548
- strokeWidth: "2",
549
- strokeLinecap: "round",
550
- strokeDasharray: "5 5"
551
- }), /* @__PURE__ */ React.createElement("rect", {
552
- x: "33.6426",
553
- y: "16",
554
- width: "100",
555
- height: "100",
556
- fill: "url(#pattern0_10101_43072)"
557
- }), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("pattern", {
558
- id: "pattern0_10101_43072",
559
- patternContentUnits: "objectBoundingBox",
560
- width: "1",
561
- height: "1"
562
- }, /* @__PURE__ */ React.createElement("use", {
563
- xlinkHref: "#image0_10101_43072",
564
- transform: "scale(0.00416667)"
544
+ x: "29.8273",
545
+ y: "9.84741",
546
+ width: "147.6",
547
+ height: "147.6",
548
+ fill: "url(#pattern0_10755_290433)"
549
+ })), /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("filter", {
550
+ id: "filter0_d_10755_290433",
551
+ x: "0.944458",
552
+ y: "0",
553
+ width: "205.111",
554
+ height: "170",
555
+ filterUnits: "userSpaceOnUse",
556
+ colorInterpolationFilters: "sRGB"
557
+ }, /* @__PURE__ */ React.createElement("feFlood", {
558
+ floodOpacity: "0",
559
+ result: "BackgroundImageFix"
560
+ }), /* @__PURE__ */ React.createElement("feColorMatrix", {
561
+ in: "SourceAlpha",
562
+ type: "matrix",
563
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
564
+ result: "hardAlpha"
565
+ }), /* @__PURE__ */ React.createElement("feOffset", {
566
+ dy: "4"
567
+ }), /* @__PURE__ */ React.createElement("feComposite", {
568
+ in2: "hardAlpha",
569
+ operator: "out"
570
+ }), /* @__PURE__ */ React.createElement("feColorMatrix", {
571
+ type: "matrix",
572
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"
573
+ }), /* @__PURE__ */ React.createElement("feBlend", {
574
+ mode: "normal",
575
+ in2: "BackgroundImageFix",
576
+ result: "effect1_dropShadow_10755_290433"
577
+ }), /* @__PURE__ */ React.createElement("feBlend", {
578
+ mode: "normal",
579
+ in: "SourceGraphic",
580
+ in2: "effect1_dropShadow_10755_290433",
581
+ result: "shape"
565
582
  }))));
566
583
  };
567
584
 
@@ -570,9 +587,9 @@ const MeritBadgeImageDisplay = ({
570
587
  className = ""
571
588
  }) => {
572
589
  return /* @__PURE__ */ React.createElement("div", {
573
- className: `flex items-center justify-center w-[120px] h-[120px] rounded-full bg-white z-50 ${className}`
590
+ className: `flex items-center justify-center w-[176px] h-[176px] rounded-full bg-white z-50 ${className}`
574
591
  }, /* @__PURE__ */ React.createElement("div", {
575
- className: "relative left-[1px] top-[1px] w-full h-full p-[10px] flex items-center justify-center rounded-full overflow-hidden object-contain z-[2]"
592
+ className: "relative left-[-0.5px] top-[-1.5px] w-full h-full p-[13px] flex items-center justify-center rounded-full overflow-hidden object-contain z-[2]"
576
593
  }, /* @__PURE__ */ React.createElement("img", {
577
594
  src: imageUrl,
578
595
  alt: "merit badge thumbnail"
@@ -674,14 +691,14 @@ const MeritBadgeFrontFace = ({
674
691
  return /* @__PURE__ */ React.createElement("section", {
675
692
  role: "button",
676
693
  onClick: () => handleViewBackFace == null ? void 0 : handleViewBackFace(),
677
- className: "relative p-[13px] mt-[25px] bg-white border-[5px] rounded-[30px] border-soid border-grayscale-200 max-w-[300px]"
694
+ className: "relative p-[13px] mt-[68px] bg-white border-[5px] rounded-[30px] border-soid border-grayscale-200 min-w-[295px] max-w-[300px]"
678
695
  }, /* @__PURE__ */ React.createElement("div", {
679
- className: "w-[calc(100%-26px)] absolute top-[-19px]"
696
+ className: "w-[calc(100%-26px)] absolute top-[-72px]"
680
697
  }, /* @__PURE__ */ React.createElement(MeritBadgeImageDisplay, {
681
698
  imageUrl: imageUrl != null ? imageUrl : "",
682
699
  className: "mx-auto"
683
700
  })), /* @__PURE__ */ React.createElement("div", {
684
- className: `flex flex-col gap-[15px] items-center px-[20px] pt-[92px] pb-[50px] border-solid border-[4px] ${borderColor} rounded-[30px]`
701
+ className: `flex flex-col gap-[15px] items-center px-[20px] pt-[92px] pb-[19px] border-solid border-[4px] ${borderColor} rounded-[30px]`
685
702
  }, /* @__PURE__ */ React.createElement("div", {
686
703
  className: "flex flex-col gap-[5px]"
687
704
  }, /* @__PURE__ */ React.createElement("div", {
@@ -695,9 +712,9 @@ const MeritBadgeFrontFace = ({
695
712
  }, "has met the requirements for")), /* @__PURE__ */ React.createElement("div", {
696
713
  className: "flex flex-col items-center"
697
714
  }, /* @__PURE__ */ React.createElement("h1", {
698
- className: "text-grayscale-900 text-center text-[20px] font-jacques"
715
+ className: "text-grayscale-900 text-center text-[25px] font-jacques"
699
716
  }, title), /* @__PURE__ */ React.createElement("div", {
700
- className: `${textLightColor} uppercase text-[14px] font-poppins`
717
+ className: `${textLightColor} uppercase text-[14px] font-notoSans font-[600]`
701
718
  }, categoryTitle))), customBodyCardComponent, issueeImageExists && !customBodyCardComponent && /* @__PURE__ */ React.createElement(MeritBadgeProfileImageDisplay, {
702
719
  imageUrl: issueeImage,
703
720
  imageComponent: subjectImageComponent,
@@ -705,7 +722,7 @@ const MeritBadgeFrontFace = ({
705
722
  }), !issueeImageExists && !customBodyCardComponent && /* @__PURE__ */ React.createElement("div", {
706
723
  className: "h-[50px] w-[50px] rounded-full bg-grayscale-500 flex items-center justify-center"
707
724
  }, /* @__PURE__ */ React.createElement(Smiley, null)), /* @__PURE__ */ React.createElement("div", {
708
- className: "border-t-[2px] border-solid border-sp-purple-base flex flex-col py-[20px] w-full"
725
+ className: "flex flex-col w-full"
709
726
  }, /* @__PURE__ */ React.createElement("div", {
710
727
  className: "text-[14px] text-grayscale-900 flex flex-col items-center w-full mb-[10px]"
711
728
  }, /* @__PURE__ */ React.createElement("span", {
@@ -714,9 +731,13 @@ const MeritBadgeFrontFace = ({
714
731
  className: "flex flex-col gap-[5px] items-center w-full"
715
732
  }, /* @__PURE__ */ React.createElement("span", {
716
733
  className: "mb-[3px] pt-[3px] text-grayscale-900 text-[25px] leading-[90%] font-sacramento border-b-[1px] border-solid border-grayscale-200 w-full text-center overflow-ellipsis whitespace-normal scrollbar-hide"
717
- }, issuerName), /* @__PURE__ */ React.createElement(VerifierStateBadgeAndText, {
718
- verifierState
719
- })))), categoryType && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(MeritBadgeCornerIcon, {
734
+ }, issuerName))), /* @__PURE__ */ React.createElement(MeritBadgeProfileImageDisplay, {
735
+ imageUrl: issuerImage,
736
+ imageComponent: issuerImageComponent,
737
+ className: "w-[calc(100%-26px)] flex justify-center items-center text-sp-purple-base",
738
+ size: "small",
739
+ showSeal: true
740
+ })), categoryType && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(MeritBadgeCornerIcon, {
720
741
  categoryType,
721
742
  position: "top-left"
722
743
  }), /* @__PURE__ */ React.createElement(MeritBadgeCornerIcon, {
@@ -728,13 +749,12 @@ const MeritBadgeFrontFace = ({
728
749
  }), /* @__PURE__ */ React.createElement(MeritBadgeCornerIcon, {
729
750
  categoryType,
730
751
  position: "bottom-right"
731
- })), /* @__PURE__ */ React.createElement(MeritBadgeProfileImageDisplay, {
732
- imageUrl: issuerImage,
733
- imageComponent: issuerImageComponent,
734
- className: "w-[calc(100%-26px)] absolute bottom-0 flex justify-center items-center text-sp-purple-base",
735
- size: "small",
736
- showSeal: true
737
- }), /* @__PURE__ */ React.createElement("span", {
752
+ })), /* @__PURE__ */ React.createElement("div", {
753
+ className: "absolute bottom-0 w-[calc(100%-26px)] flex justify-center"
754
+ }, /* @__PURE__ */ React.createElement(VerifierStateBadgeAndText, {
755
+ verifierState,
756
+ className: "bg-white px-[5px] pb-[5px]"
757
+ })), /* @__PURE__ */ React.createElement("span", {
738
758
  className: "hidden border-rose-500 text-spice-500 border-spice-500 border-cyan-500 text-cyan-500 border-indigo-500 border-sp-purple-base"
739
759
  }));
740
760
  };
@@ -819,4 +839,4 @@ const MeritBadgeDisplayCard = ({
819
839
  };
820
840
 
821
841
  export { MeritBadgeBackFace as M, MeritBadgeDisplayCard as a, MeritBadgeFrontFace as b };
822
- //# sourceMappingURL=MeritBadgeDisplayCard-0fd4c3c7.js.map
842
+ //# sourceMappingURL=MeritBadgeDisplayCard-ec9d5238.js.map