@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.
- package/dist/cjs/{CertificateDisplayCard-c5583200.js → CertificateDisplayCard-d7f6c028.js} +3 -3
- package/dist/cjs/{CertificateDisplayCard-c5583200.js.map → CertificateDisplayCard-d7f6c028.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-306c0f77.js → MeritBadgeDisplayCard-b952091c.js} +82 -62
- package/dist/cjs/MeritBadgeDisplayCard-b952091c.js.map +1 -0
- package/dist/cjs/{MeritBadgeSkillsCount-e48b2202.js → MeritBadgeSkillsCount-59548cbb.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-e48b2202.js.map → MeritBadgeSkillsCount-59548cbb.js.map} +1 -1
- package/dist/cjs/{VCCard-4dbd6d24.js → VCCard-70f348fd.js} +3 -3
- package/dist/cjs/{VCCard-4dbd6d24.js.map → VCCard-70f348fd.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-0473d345.js → VCDisplayBackFace-aab5806b.js} +2 -2
- package/dist/cjs/{VCDisplayBackFace-0473d345.js.map → VCDisplayBackFace-aab5806b.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-4edf82c6.js → VCDisplayCard-ae0ee7c6.js} +3 -3
- package/dist/cjs/{VCDisplayCard-4edf82c6.js.map → VCDisplayCard-ae0ee7c6.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-1720f1f1.js → VCDisplayCard2-653b08d5.js} +5 -5
- package/dist/cjs/{VCDisplayCard2-1720f1f1.js.map → VCDisplayCard2-653b08d5.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-855df7d5.js → VerifierStateBadgeAndText-e5f83fc7.js} +6 -3
- package/dist/cjs/{VerifierStateBadgeAndText-855df7d5.js.map → VerifierStateBadgeAndText-e5f83fc7.js.map} +1 -1
- package/dist/cjs/{credential.helpers-04044bbd.js → credential.helpers-39c07250.js} +20 -12
- package/dist/cjs/credential.helpers-39c07250.js.map +1 -0
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/index13.js +9 -9
- package/dist/cjs/index21.js +4 -4
- package/dist/cjs/index37.js +8 -8
- package/dist/cjs/index38.js +2 -2
- package/dist/cjs/index39.js +3 -3
- package/dist/cjs/index40.js +5 -5
- package/dist/cjs/index6.js +3 -3
- package/dist/esm/{CertificateDisplayCard-6b7a31bc.js → CertificateDisplayCard-7fbe6404.js} +3 -3
- package/dist/esm/{CertificateDisplayCard-6b7a31bc.js.map → CertificateDisplayCard-7fbe6404.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-0fd4c3c7.js → MeritBadgeDisplayCard-ec9d5238.js} +82 -62
- package/dist/esm/MeritBadgeDisplayCard-ec9d5238.js.map +1 -0
- package/dist/esm/{MeritBadgeSkillsCount-d0c9dd6e.js → MeritBadgeSkillsCount-1694dc2c.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-d0c9dd6e.js.map → MeritBadgeSkillsCount-1694dc2c.js.map} +1 -1
- package/dist/esm/{VCCard-aa590ccb.js → VCCard-85d16242.js} +3 -3
- package/dist/esm/{VCCard-aa590ccb.js.map → VCCard-85d16242.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-ac7bbe0b.js → VCDisplayBackFace-e5f8f858.js} +2 -2
- package/dist/esm/{VCDisplayBackFace-ac7bbe0b.js.map → VCDisplayBackFace-e5f8f858.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-b7dc3160.js → VCDisplayCard-edcd787f.js} +3 -3
- package/dist/esm/{VCDisplayCard-b7dc3160.js.map → VCDisplayCard-edcd787f.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-b8e77e57.js → VCDisplayCard2-599e7a65.js} +5 -5
- package/dist/esm/{VCDisplayCard2-b8e77e57.js.map → VCDisplayCard2-599e7a65.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-26578052.js → VerifierStateBadgeAndText-b042bf32.js} +6 -3
- package/dist/esm/{VerifierStateBadgeAndText-26578052.js.map → VerifierStateBadgeAndText-b042bf32.js.map} +1 -1
- package/dist/esm/{credential.helpers-93170224.js → credential.helpers-a5b16a5e.js} +20 -12
- package/dist/esm/credential.helpers-a5b16a5e.js.map +1 -0
- package/dist/esm/index.js +9 -9
- package/dist/esm/index13.js +9 -9
- package/dist/esm/index21.js +4 -4
- package/dist/esm/index37.js +8 -8
- package/dist/esm/index38.js +2 -2
- package/dist/esm/index39.js +3 -3
- package/dist/esm/index40.js +5 -5
- package/dist/esm/index6.js +3 -3
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/MeritBadgeDisplayCard-306c0f77.js.map +0 -1
- package/dist/cjs/credential.helpers-04044bbd.js.map +0 -1
- package/dist/esm/MeritBadgeDisplayCard-0fd4c3c7.js.map +0 -1
- 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-
|
|
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-
|
|
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: "
|
|
508
|
-
height: "
|
|
509
|
-
viewBox: "0 0
|
|
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: "
|
|
515
|
-
cy: "
|
|
516
|
-
r: "
|
|
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: "
|
|
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: "
|
|
528
|
-
y: "
|
|
529
|
-
width: "
|
|
530
|
-
height: "
|
|
531
|
-
rx: "
|
|
532
|
-
fill: "
|
|
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: "
|
|
535
|
-
y: "
|
|
536
|
-
width: "
|
|
537
|
-
height: "
|
|
538
|
-
rx: "
|
|
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: "
|
|
543
|
-
y: "
|
|
544
|
-
width: "
|
|
545
|
-
height: "
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
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-[
|
|
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-[
|
|
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-[
|
|
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-[-
|
|
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-[
|
|
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-[
|
|
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-
|
|
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: "
|
|
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(
|
|
718
|
-
|
|
719
|
-
|
|
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(
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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-
|
|
842
|
+
//# sourceMappingURL=MeritBadgeDisplayCard-ec9d5238.js.map
|