@learncard/react 2.8.60 → 2.8.62
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/base.css +1 -1
- package/dist/base.js +1 -1
- package/dist/cjs/{BoostGenericCard-dd01e934.js → BoostGenericCard-55f710ad.js} +41 -5
- package/dist/cjs/BoostGenericCard-55f710ad.js.map +1 -0
- package/dist/cjs/{CertificateDisplayCard-e228ff3d.js → CertificateDisplayCard-9f619468.js} +43 -7
- package/dist/cjs/CertificateDisplayCard-9f619468.js.map +1 -0
- package/dist/cjs/{MeritBadgeDisplayCard-5cbc63e8.js → MeritBadgeDisplayCard-81bd14b8.js} +7 -5
- package/dist/cjs/MeritBadgeDisplayCard-81bd14b8.js.map +1 -0
- package/dist/cjs/{MeritBadgeSkillsCount-54879719.js → MeritBadgeSkillsCount-85cf4a91.js} +3 -3
- package/dist/cjs/{MeritBadgeSkillsCount-54879719.js.map → MeritBadgeSkillsCount-85cf4a91.js.map} +1 -1
- package/dist/cjs/{Notification-d212fa7b.js → Notification-3fe4a359.js} +2 -2
- package/dist/cjs/{Notification-d212fa7b.js.map → Notification-3fe4a359.js.map} +1 -1
- package/dist/cjs/{NotificationBoostCard-cf2140c0.js → NotificationBoostCard-be514ddb.js} +2 -2
- package/dist/cjs/{NotificationBoostCard-cf2140c0.js.map → NotificationBoostCard-be514ddb.js.map} +1 -1
- package/dist/cjs/PuzzlePiece-088d2b00.js +77 -0
- package/dist/cjs/PuzzlePiece-088d2b00.js.map +1 -0
- package/dist/cjs/{SchoolIDCard-39a099d2.js → SchoolIDCard-42d7c96f.js} +628 -347
- package/dist/cjs/SchoolIDCard-42d7c96f.js.map +1 -0
- package/dist/cjs/{VCCard-32aeadb3.js → VCCard-f5bc1db8.js} +3 -3
- package/dist/cjs/{VCCard-32aeadb3.js.map → VCCard-f5bc1db8.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-4543749f.js → VCDisplayBackFace-6000a58b.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-4543749f.js.map → VCDisplayBackFace-6000a58b.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-353cc9ed.js → VCDisplayCard-9512d8f2.js} +3 -3
- package/dist/cjs/{VCDisplayCard-353cc9ed.js.map → VCDisplayCard-9512d8f2.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-50acd7c8.js → VCDisplayCard2-2a1d5f57.js} +11 -9
- package/dist/cjs/VCDisplayCard2-2a1d5f57.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-88723dfa.js → VCVerificationPill-d6303ad0.js} +2 -2
- package/dist/cjs/{VCVerificationPill-88723dfa.js.map → VCVerificationPill-d6303ad0.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-08aea854.js → VerifierStateBadgeAndText-67eddbaf.js} +2 -2
- package/dist/cjs/{VerifierStateBadgeAndText-08aea854.js.map → VerifierStateBadgeAndText-67eddbaf.js.map} +1 -1
- package/dist/cjs/{credential.helpers-90b66932.js → credential.helpers-60b421b9.js} +4 -4
- package/dist/cjs/{credential.helpers-90b66932.js.map → credential.helpers-60b421b9.js.map} +1 -1
- package/dist/cjs/{index-a9e3ddf5.js → index-0cac2c5b.js} +1 -1
- package/dist/cjs/{index-a9e3ddf5.js.map → index-0cac2c5b.js.map} +1 -1
- package/dist/cjs/index.js +78 -21
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index13.js +19 -20
- package/dist/cjs/index13.js.map +1 -1
- package/dist/cjs/index21.js +7 -7
- package/dist/cjs/index23.js +3 -3
- package/dist/cjs/index24.js +3 -3
- package/dist/cjs/index3.js +6 -7
- package/dist/cjs/index3.js.map +1 -1
- package/dist/cjs/index30.js +1 -1
- package/dist/cjs/index38.js +12 -13
- package/dist/cjs/index38.js.map +1 -1
- package/dist/cjs/index39.js +6 -6
- package/dist/cjs/index40.js +7 -7
- package/dist/cjs/index41.js +8 -9
- package/dist/cjs/index41.js.map +1 -1
- package/dist/cjs/index42.js +2 -2
- package/dist/cjs/index45.js +2 -2
- package/dist/cjs/index6.js +7 -8
- package/dist/cjs/index6.js.map +1 -1
- package/dist/cjs/{types-8eab1382.js → types-f01c65d1.js} +2 -2
- package/dist/cjs/{types-8eab1382.js.map → types-f01c65d1.js.map} +1 -1
- package/dist/cjs/{types.esm-6ce4cc67.js → types.esm-ae4cdf49.js} +1086 -1032
- package/dist/cjs/types.esm-ae4cdf49.js.map +1 -0
- package/dist/esm/{BoostGenericCard-5b70fa63.js → BoostGenericCard-4cfa6556.js} +41 -5
- package/dist/esm/BoostGenericCard-4cfa6556.js.map +1 -0
- package/dist/esm/{CertificateDisplayCard-d2a0d0e3.js → CertificateDisplayCard-58c52cdb.js} +42 -7
- package/dist/esm/CertificateDisplayCard-58c52cdb.js.map +1 -0
- package/dist/esm/{MeritBadgeDisplayCard-bc462990.js → MeritBadgeDisplayCard-c87b0271.js} +7 -5
- package/dist/esm/MeritBadgeDisplayCard-c87b0271.js.map +1 -0
- package/dist/esm/{MeritBadgeSkillsCount-d2408dfe.js → MeritBadgeSkillsCount-77ceb64c.js} +3 -3
- package/dist/esm/{MeritBadgeSkillsCount-d2408dfe.js.map → MeritBadgeSkillsCount-77ceb64c.js.map} +1 -1
- package/dist/esm/{Notification-95d159d2.js → Notification-76adb92c.js} +2 -2
- package/dist/esm/{Notification-95d159d2.js.map → Notification-76adb92c.js.map} +1 -1
- package/dist/esm/{NotificationBoostCard-42596c2c.js → NotificationBoostCard-e6f1ab86.js} +2 -2
- package/dist/esm/{NotificationBoostCard-42596c2c.js.map → NotificationBoostCard-e6f1ab86.js.map} +1 -1
- package/dist/esm/PuzzlePiece-4541648e.js +71 -0
- package/dist/esm/PuzzlePiece-4541648e.js.map +1 -0
- package/dist/esm/{SchoolIDCard-752092fb.js → SchoolIDCard-7c3ba74c.js} +628 -347
- package/dist/esm/SchoolIDCard-7c3ba74c.js.map +1 -0
- package/dist/esm/{VCCard-afbea3f5.js → VCCard-a5dda1f4.js} +3 -3
- package/dist/esm/{VCCard-afbea3f5.js.map → VCCard-a5dda1f4.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-f08563e9.js → VCDisplayBackFace-af01c8b3.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-f08563e9.js.map → VCDisplayBackFace-af01c8b3.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-7fc1dd02.js → VCDisplayCard-36f34504.js} +3 -3
- package/dist/esm/{VCDisplayCard-7fc1dd02.js.map → VCDisplayCard-36f34504.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-415128f5.js → VCDisplayCard2-04e304db.js} +11 -9
- package/dist/esm/VCDisplayCard2-04e304db.js.map +1 -0
- package/dist/esm/{VCVerificationPill-2ef031c2.js → VCVerificationPill-0e2c1172.js} +2 -2
- package/dist/esm/{VCVerificationPill-2ef031c2.js.map → VCVerificationPill-0e2c1172.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-151db666.js → VerifierStateBadgeAndText-2e5414f4.js} +2 -2
- package/dist/esm/{VerifierStateBadgeAndText-151db666.js.map → VerifierStateBadgeAndText-2e5414f4.js.map} +1 -1
- package/dist/esm/{credential.helpers-5731a09d.js → credential.helpers-97c7e3d4.js} +4 -4
- package/dist/esm/{credential.helpers-5731a09d.js.map → credential.helpers-97c7e3d4.js.map} +1 -1
- package/dist/esm/{index-1fa04a2d.js → index-eae3ca64.js} +1 -1
- package/dist/esm/{index-1fa04a2d.js.map → index-eae3ca64.js.map} +1 -1
- package/dist/esm/index.js +75 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index13.js +18 -19
- package/dist/esm/index13.js.map +1 -1
- package/dist/esm/index21.js +7 -7
- package/dist/esm/index23.js +3 -3
- package/dist/esm/index24.js +3 -3
- package/dist/esm/index3.js +6 -7
- package/dist/esm/index3.js.map +1 -1
- package/dist/esm/index30.js +1 -1
- package/dist/esm/index38.js +12 -13
- package/dist/esm/index38.js.map +1 -1
- package/dist/esm/index39.js +6 -6
- package/dist/esm/index40.js +7 -7
- package/dist/esm/index41.js +8 -9
- package/dist/esm/index41.js.map +1 -1
- package/dist/esm/index42.js +2 -2
- package/dist/esm/index45.js +2 -2
- package/dist/esm/index6.js +6 -7
- package/dist/esm/index6.js.map +1 -1
- package/dist/esm/{types-cfde3c2b.js → types-05bc737d.js} +2 -2
- package/dist/esm/{types-cfde3c2b.js.map → types-05bc737d.js.map} +1 -1
- package/dist/esm/{types.esm-00eeb9f6.js → types.esm-c7016566.js} +1086 -1032
- package/dist/esm/types.esm-c7016566.js.map +1 -0
- package/dist/index.d.ts +16 -2
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +10 -3
- package/dist/cjs/BoostGenericCard-dd01e934.js.map +0 -1
- package/dist/cjs/CertDisplayCardSkillsCount-8cc13d5b.js +0 -45
- package/dist/cjs/CertDisplayCardSkillsCount-8cc13d5b.js.map +0 -1
- package/dist/cjs/CertificateDisplayCard-e228ff3d.js.map +0 -1
- package/dist/cjs/MeritBadgeDisplayCard-5cbc63e8.js.map +0 -1
- package/dist/cjs/PuzzlePiece-937c216a.js +0 -31
- package/dist/cjs/PuzzlePiece-937c216a.js.map +0 -1
- package/dist/cjs/SchoolIDCard-39a099d2.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-50acd7c8.js.map +0 -1
- package/dist/cjs/types.esm-6ce4cc67.js.map +0 -1
- package/dist/esm/BoostGenericCard-5b70fa63.js.map +0 -1
- package/dist/esm/CertDisplayCardSkillsCount-c5a21373.js +0 -39
- package/dist/esm/CertDisplayCardSkillsCount-c5a21373.js.map +0 -1
- package/dist/esm/CertificateDisplayCard-d2a0d0e3.js.map +0 -1
- package/dist/esm/MeritBadgeDisplayCard-bc462990.js.map +0 -1
- package/dist/esm/PuzzlePiece-1fb12c2e.js +0 -25
- package/dist/esm/PuzzlePiece-1fb12c2e.js.map +0 -1
- package/dist/esm/SchoolIDCard-752092fb.js.map +0 -1
- package/dist/esm/VCDisplayCard2-415128f5.js.map +0 -1
- package/dist/esm/types.esm-00eeb9f6.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import React, { useRef, useEffect } from 'react';
|
|
1
2
|
export { A as AchievementCard } from './AchievementCard-d179d041.js';
|
|
2
|
-
export { B as BoostGenericCard } from './BoostGenericCard-
|
|
3
|
+
export { B as BoostGenericCard } from './BoostGenericCard-4cfa6556.js';
|
|
3
4
|
export { B as BoostSmallCard } from './BoostSmallCard-42980ebc.js';
|
|
4
5
|
export { B as Button } from './Button-5f805204.js';
|
|
5
|
-
export { C as CertDisplayCardSkillsCount } from './
|
|
6
|
-
export {
|
|
7
|
-
export { S as SelectedSkills, V as VERIFIER_STATES, a as VerifierStateBadgeAndText } from './VerifierStateBadgeAndText-151db666.js';
|
|
6
|
+
export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-58c52cdb.js';
|
|
7
|
+
export { S as SelectedSkills, V as VERIFIER_STATES, a as VerifierStateBadgeAndText } from './VerifierStateBadgeAndText-2e5414f4.js';
|
|
8
8
|
export { C as CircleCheckButton } from './CircleCheckButton-5a97f071.js';
|
|
9
9
|
export { a as CircleIcon, C as CountCircle } from './CircleIcon-4200733b.js';
|
|
10
10
|
export { C as CourseCard } from './CourseCard-663ff174.js';
|
|
@@ -18,32 +18,32 @@ export { L as LearnCardCreditCardFrontFace } from './LearnCardCreditCardFrontFac
|
|
|
18
18
|
export { L as LearnPill } from './LearnPill-74bcb08c.js';
|
|
19
19
|
export { L as Lightbox } from './Lightbox-2ae83d79.js';
|
|
20
20
|
export { C as CircleLoadingState } from './CircleSpinner-9b8b1a6b.js';
|
|
21
|
-
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-
|
|
22
|
-
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-
|
|
21
|
+
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-c87b0271.js';
|
|
22
|
+
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-77ceb64c.js';
|
|
23
23
|
export { M as MiniVCThumbnail } from './MiniVCThumbnail-6a07e810.js';
|
|
24
|
-
export { N as Notification } from './Notification-
|
|
25
|
-
export { N as NotificationTypeStyles } from './types-
|
|
26
|
-
export { N as NotificationBoostCard } from './NotificationBoostCard-
|
|
24
|
+
export { N as Notification } from './Notification-76adb92c.js';
|
|
25
|
+
export { N as NotificationTypeStyles } from './types-05bc737d.js';
|
|
26
|
+
export { N as NotificationBoostCard } from './NotificationBoostCard-e6f1ab86.js';
|
|
27
27
|
export { N as NotificationUserAcceptedBoostCard } from './NotificationUserAcceptedBoostCard-8c13bd3f.js';
|
|
28
28
|
export { N as NotificationUserCard } from './NotificationUserCard-dbcc80f9.js';
|
|
29
29
|
export { U as UserNotificationTypeStyles } from './types-b32d28d5.js';
|
|
30
30
|
export { Q as QRCodeCard } from './QRCodeCard-aa2b9967.js';
|
|
31
31
|
export { C as CheckmarkSvg, R as RoundedPill } from './RoundedPill-6a6e8aaf.js';
|
|
32
32
|
export { R as RoundedSquare, a as TYPE_TO_IMG_SRC, T as TYPE_TO_MINI_ICON, b as TYPE_TO_WALLET_COLOR, W as WALLET_SUBTYPES } from './constants-20055f35.js';
|
|
33
|
-
export { S as SchoolIDCard } from './SchoolIDCard-
|
|
33
|
+
export { S as SchoolIDCard } from './SchoolIDCard-7c3ba74c.js';
|
|
34
34
|
export { S as SkillTabCard } from './SkillTabCard-cfe117a2.js';
|
|
35
35
|
export { S as SkillVerticalCard } from './SkillVerticalCard-108f49bb.js';
|
|
36
36
|
export { a as SkillsCard, S as SkillsMeterSegment } from './SkillsCard-92a51db2.js';
|
|
37
37
|
export { S as SkillsStatsCard } from './SkillsStatsCard-1628fe9c.js';
|
|
38
38
|
export { S as SmallAchievementCard } from './SmallAchievementCard-d0220751.js';
|
|
39
39
|
export { U as UserProfilePicture } from './UserProfilePicture-ecc82a6c.js';
|
|
40
|
-
export { V as VCCard } from './VCCard-
|
|
41
|
-
export { V as VCDisplayBackFace } from './VCDisplayBackFace-
|
|
42
|
-
export { V as VCDisplayCard } from './VCDisplayCard-
|
|
43
|
-
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-
|
|
40
|
+
export { V as VCCard } from './VCCard-a5dda1f4.js';
|
|
41
|
+
export { V as VCDisplayBackFace } from './VCDisplayBackFace-af01c8b3.js';
|
|
42
|
+
export { V as VCDisplayCard } from './VCDisplayCard-36f34504.js';
|
|
43
|
+
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-04e304db.js';
|
|
44
44
|
export { V as VCThumbnail } from './VCThumbnail-3c254bda.js';
|
|
45
45
|
export { V as VCVerificationCheck, a as VCVerificationCheckWithSpinner, b as VCVerificationCheckWithText } from './VCVerificationCheck-80249524.js';
|
|
46
|
-
export { V as ValidationStateIndicator } from './VCVerificationPill-
|
|
46
|
+
export { V as ValidationStateIndicator } from './VCVerificationPill-0e2c1172.js';
|
|
47
47
|
export { A as AwardDisplayIcon, B as BadgeDisplayIcon, C as CertificateDisplayIcon, a as CourseDisplayIcon, I as IDDisplayIcon } from './IDDisplayIcon-82a851e7.js';
|
|
48
48
|
export { A as AwardRibbon, I as IDIcon, Q as QRCodeIcon } from './QRCodeIcon-e9569804.js';
|
|
49
49
|
export { B as Briefcase, G as Graduation, U as User } from './User-161c7f37.js';
|
|
@@ -53,7 +53,6 @@ export { G as GenericArrow } from './GenericArrow-0dba1707.js';
|
|
|
53
53
|
export { I as IDSleeve, L as Lightbulb } from './Lightbulb-b6eca510.js';
|
|
54
54
|
export { T as ThreeDotVertical } from './ThreeDotVertical-08294477.js';
|
|
55
55
|
export { T as Trophy } from './Trophy-ad67f46a.js';
|
|
56
|
-
import 'react';
|
|
57
56
|
import './index-b102febc.js';
|
|
58
57
|
import './walletcurrency.webp';
|
|
59
58
|
import './id-purple.png';
|
|
@@ -72,12 +71,12 @@ import './minitrophycolored.svg';
|
|
|
72
71
|
import './minigradcapcolored.svg';
|
|
73
72
|
import './minipuzzlecolored.svg';
|
|
74
73
|
import './index-28917993.js';
|
|
74
|
+
import './PuzzlePiece-4541648e.js';
|
|
75
|
+
import './credential.helpers-97c7e3d4.js';
|
|
76
|
+
import './index-eae3ca64.js';
|
|
77
|
+
import './types.esm-c7016566.js';
|
|
75
78
|
import './CaretRightFilled.svg';
|
|
76
79
|
import './addawardlight.svg';
|
|
77
|
-
import './PuzzlePiece-1fb12c2e.js';
|
|
78
|
-
import './credential.helpers-5731a09d.js';
|
|
79
|
-
import './index-1fa04a2d.js';
|
|
80
|
-
import './types.esm-00eeb9f6.js';
|
|
81
80
|
import './DotsThreeOutline.svg';
|
|
82
81
|
import './athletics.png';
|
|
83
82
|
import './business.png';
|
|
@@ -135,4 +134,60 @@ import './vc.check.svg';
|
|
|
135
134
|
import './RedXCircle.svg';
|
|
136
135
|
import './GreenCheckCircle.svg';
|
|
137
136
|
import './YellowWarningCircle.svg';
|
|
137
|
+
|
|
138
|
+
const useOnMomentumScrollEnd = ({
|
|
139
|
+
onScroll: _onScroll,
|
|
140
|
+
onMomentumScrollEnd,
|
|
141
|
+
debounceTime = 305
|
|
142
|
+
}) => {
|
|
143
|
+
const momentumScrollEndTimer = useRef();
|
|
144
|
+
useEffect(() => () => clearTimeout(momentumScrollEndTimer.current), []);
|
|
145
|
+
const onScroll = (e) => {
|
|
146
|
+
_onScroll == null ? void 0 : _onScroll(e);
|
|
147
|
+
clearTimeout(momentumScrollEndTimer.current);
|
|
148
|
+
momentumScrollEndTimer.current = setTimeout(() => {
|
|
149
|
+
onMomentumScrollEnd(e);
|
|
150
|
+
}, debounceTime);
|
|
151
|
+
};
|
|
152
|
+
return onScroll;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const useScrollBorders = ({
|
|
156
|
+
ref,
|
|
157
|
+
topShowClassName = "border-t border-t-[--color-grayscale-line]",
|
|
158
|
+
topHideClassName = "border-t border-t-transparent",
|
|
159
|
+
bottomShowClassName = "border-b border-b-[--color-grayscale-line]",
|
|
160
|
+
bottomHideClassName = "border-b border-b-transparent"
|
|
161
|
+
} = {}) => {
|
|
162
|
+
const internalRef = ref != null ? ref : React.createRef();
|
|
163
|
+
const updateBorderClasses = () => {
|
|
164
|
+
if (!internalRef.current || internalRef.current.scrollHeight <= internalRef.current.clientHeight)
|
|
165
|
+
return;
|
|
166
|
+
if (internalRef.current.scrollTop > 0) {
|
|
167
|
+
internalRef.current.classList.remove(...topHideClassName.split(" "));
|
|
168
|
+
internalRef.current.classList.add(...topShowClassName.split(" "));
|
|
169
|
+
} else {
|
|
170
|
+
internalRef.current.classList.remove(...topShowClassName.split(" "));
|
|
171
|
+
internalRef.current.classList.add(...topHideClassName.split(" "));
|
|
172
|
+
}
|
|
173
|
+
if (internalRef.current.scrollTop < internalRef.current.scrollHeight - internalRef.current.clientHeight) {
|
|
174
|
+
internalRef.current.classList.remove(...bottomHideClassName.split(" "));
|
|
175
|
+
internalRef.current.classList.add(...bottomShowClassName.split(" "));
|
|
176
|
+
} else {
|
|
177
|
+
internalRef.current.classList.remove(...bottomShowClassName.split(" "));
|
|
178
|
+
internalRef.current.classList.add(...bottomHideClassName.split(" "));
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
useEffect(() => {
|
|
182
|
+
const element = internalRef.current;
|
|
183
|
+
if (element) {
|
|
184
|
+
updateBorderClasses();
|
|
185
|
+
element.addEventListener("scroll", updateBorderClasses);
|
|
186
|
+
return () => element.removeEventListener("scroll", updateBorderClasses);
|
|
187
|
+
}
|
|
188
|
+
}, [internalRef]);
|
|
189
|
+
return internalRef;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export { useOnMomentumScrollEnd, useScrollBorders };
|
|
138
193
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/helpers/useOnMomentumScrollEnd.ts","../../src/helpers/useScrollBorders.ts"],"sourcesContent":["import React, { useEffect, useRef } from 'react';\n\nexport const useOnMomentumScrollEnd = ({\n onScroll: _onScroll,\n onMomentumScrollEnd,\n debounceTime = 305,\n}: {\n onScroll?: React.UIEventHandler;\n onMomentumScrollEnd: React.UIEventHandler;\n debounceTime?: number;\n}) => {\n const momentumScrollEndTimer = useRef<NodeJS.Timeout>();\n\n useEffect(() => () => clearTimeout(momentumScrollEndTimer.current), []);\n\n const onScroll: React.UIEventHandler = (e) => {\n _onScroll?.(e);\n\n clearTimeout(momentumScrollEndTimer.current);\n momentumScrollEndTimer.current = setTimeout(() => {\n onMomentumScrollEnd(e);\n }, debounceTime);\n };\n\n return onScroll;\n};\n\nexport default useOnMomentumScrollEnd;\n","import React, { useEffect, type RefObject } from 'react';\n\nexport const useScrollBorders = <Ref extends HTMLElement>({\n ref,\n topShowClassName = 'border-t border-t-[--color-grayscale-line]',\n topHideClassName = 'border-t border-t-transparent',\n bottomShowClassName = 'border-b border-b-[--color-grayscale-line]',\n bottomHideClassName = 'border-b border-b-transparent',\n}: {\n ref?: RefObject<Ref>;\n topShowClassName?: string;\n topHideClassName?: string;\n bottomShowClassName?: string;\n bottomHideClassName?: string;\n} = {}) => {\n const internalRef = ref ?? React.createRef<Ref>();\n\n const updateBorderClasses = () => {\n if (\n !internalRef.current ||\n internalRef.current.scrollHeight <= internalRef.current.clientHeight\n )\n return;\n\n // Top border\n if (internalRef.current.scrollTop > 0) {\n internalRef.current.classList.remove(...topHideClassName.split(' '));\n internalRef.current.classList.add(...topShowClassName.split(' '));\n } else {\n internalRef.current.classList.remove(...topShowClassName.split(' '));\n internalRef.current.classList.add(...topHideClassName.split(' '));\n }\n\n // Bottom border\n if (\n internalRef.current.scrollTop <\n internalRef.current.scrollHeight - internalRef.current.clientHeight\n ) {\n internalRef.current.classList.remove(...bottomHideClassName.split(' '));\n internalRef.current.classList.add(...bottomShowClassName.split(' '));\n } else {\n internalRef.current.classList.remove(...bottomShowClassName.split(' '));\n internalRef.current.classList.add(...bottomHideClassName.split(' '));\n }\n };\n\n useEffect(() => {\n const element = internalRef.current;\n if (element) {\n updateBorderClasses();\n\n element.addEventListener('scroll', updateBorderClasses);\n\n return () => element.removeEventListener('scroll', updateBorderClasses);\n }\n }, [internalRef]); // Re-run when ref changes\n\n return internalRef;\n};\n"],"names":[],"mappings":"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"}
|
package/dist/esm/index13.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export { A as AchievementCard } from './AchievementCard-d179d041.js';
|
|
2
|
-
export { B as BoostGenericCard } from './BoostGenericCard-
|
|
2
|
+
export { B as BoostGenericCard } from './BoostGenericCard-4cfa6556.js';
|
|
3
3
|
export { B as BoostSmallCard } from './BoostSmallCard-42980ebc.js';
|
|
4
4
|
export { B as Button } from './Button-5f805204.js';
|
|
5
|
-
export { C as CertDisplayCardSkillsCount } from './
|
|
6
|
-
export {
|
|
7
|
-
export { S as SelectedSkills, V as VERIFIER_STATES, a as VerifierStateBadgeAndText } from './VerifierStateBadgeAndText-151db666.js';
|
|
5
|
+
export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-58c52cdb.js';
|
|
6
|
+
export { S as SelectedSkills, V as VERIFIER_STATES, a as VerifierStateBadgeAndText } from './VerifierStateBadgeAndText-2e5414f4.js';
|
|
8
7
|
export { C as CircleCheckButton } from './CircleCheckButton-5a97f071.js';
|
|
9
8
|
export { a as CircleIcon, C as CountCircle } from './CircleIcon-4200733b.js';
|
|
10
9
|
export { C as CourseCard } from './CourseCard-663ff174.js';
|
|
@@ -18,32 +17,32 @@ export { L as LearnCardCreditCardFrontFace } from './LearnCardCreditCardFrontFac
|
|
|
18
17
|
export { L as LearnPill } from './LearnPill-74bcb08c.js';
|
|
19
18
|
export { L as Lightbox } from './Lightbox-2ae83d79.js';
|
|
20
19
|
export { C as CircleLoadingState } from './CircleSpinner-9b8b1a6b.js';
|
|
21
|
-
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-
|
|
22
|
-
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-
|
|
20
|
+
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-c87b0271.js';
|
|
21
|
+
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-77ceb64c.js';
|
|
23
22
|
export { M as MiniVCThumbnail } from './MiniVCThumbnail-6a07e810.js';
|
|
24
|
-
export { N as Notification } from './Notification-
|
|
25
|
-
export { N as NotificationTypeStyles } from './types-
|
|
26
|
-
export { N as NotificationBoostCard } from './NotificationBoostCard-
|
|
23
|
+
export { N as Notification } from './Notification-76adb92c.js';
|
|
24
|
+
export { N as NotificationTypeStyles } from './types-05bc737d.js';
|
|
25
|
+
export { N as NotificationBoostCard } from './NotificationBoostCard-e6f1ab86.js';
|
|
27
26
|
export { N as NotificationUserAcceptedBoostCard } from './NotificationUserAcceptedBoostCard-8c13bd3f.js';
|
|
28
27
|
export { N as NotificationUserCard } from './NotificationUserCard-dbcc80f9.js';
|
|
29
28
|
export { U as UserNotificationTypeStyles } from './types-b32d28d5.js';
|
|
30
29
|
export { Q as QRCodeCard } from './QRCodeCard-aa2b9967.js';
|
|
31
30
|
export { C as CheckmarkSvg, R as RoundedPill } from './RoundedPill-6a6e8aaf.js';
|
|
32
31
|
export { R as RoundedSquare, a as TYPE_TO_IMG_SRC, T as TYPE_TO_MINI_ICON, b as TYPE_TO_WALLET_COLOR, W as WALLET_SUBTYPES } from './constants-20055f35.js';
|
|
33
|
-
export { S as SchoolIDCard } from './SchoolIDCard-
|
|
32
|
+
export { S as SchoolIDCard } from './SchoolIDCard-7c3ba74c.js';
|
|
34
33
|
export { S as SkillTabCard } from './SkillTabCard-cfe117a2.js';
|
|
35
34
|
export { S as SkillVerticalCard } from './SkillVerticalCard-108f49bb.js';
|
|
36
35
|
export { a as SkillsCard, S as SkillsMeterSegment } from './SkillsCard-92a51db2.js';
|
|
37
36
|
export { S as SkillsStatsCard } from './SkillsStatsCard-1628fe9c.js';
|
|
38
37
|
export { S as SmallAchievementCard } from './SmallAchievementCard-d0220751.js';
|
|
39
38
|
export { U as UserProfilePicture } from './UserProfilePicture-ecc82a6c.js';
|
|
40
|
-
export { V as VCCard } from './VCCard-
|
|
41
|
-
export { V as VCDisplayBackFace } from './VCDisplayBackFace-
|
|
42
|
-
export { V as VCDisplayCard } from './VCDisplayCard-
|
|
43
|
-
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-
|
|
39
|
+
export { V as VCCard } from './VCCard-a5dda1f4.js';
|
|
40
|
+
export { V as VCDisplayBackFace } from './VCDisplayBackFace-af01c8b3.js';
|
|
41
|
+
export { V as VCDisplayCard } from './VCDisplayCard-36f34504.js';
|
|
42
|
+
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-04e304db.js';
|
|
44
43
|
export { V as VCThumbnail } from './VCThumbnail-3c254bda.js';
|
|
45
44
|
export { V as VCVerificationCheck, a as VCVerificationCheckWithSpinner, b as VCVerificationCheckWithText } from './VCVerificationCheck-80249524.js';
|
|
46
|
-
export { V as ValidationStateIndicator } from './VCVerificationPill-
|
|
45
|
+
export { V as ValidationStateIndicator } from './VCVerificationPill-0e2c1172.js';
|
|
47
46
|
export { A as AwardDisplayIcon, B as BadgeDisplayIcon, C as CertificateDisplayIcon, a as CourseDisplayIcon, I as IDDisplayIcon } from './IDDisplayIcon-82a851e7.js';
|
|
48
47
|
export { A as AwardRibbon, I as IDIcon, Q as QRCodeIcon } from './QRCodeIcon-e9569804.js';
|
|
49
48
|
export { B as Briefcase, G as Graduation, U as User } from './User-161c7f37.js';
|
|
@@ -72,12 +71,12 @@ import './minitrophycolored.svg';
|
|
|
72
71
|
import './minigradcapcolored.svg';
|
|
73
72
|
import './minipuzzlecolored.svg';
|
|
74
73
|
import './index-28917993.js';
|
|
74
|
+
import './PuzzlePiece-4541648e.js';
|
|
75
|
+
import './credential.helpers-97c7e3d4.js';
|
|
76
|
+
import './index-eae3ca64.js';
|
|
77
|
+
import './types.esm-c7016566.js';
|
|
75
78
|
import './CaretRightFilled.svg';
|
|
76
79
|
import './addawardlight.svg';
|
|
77
|
-
import './PuzzlePiece-1fb12c2e.js';
|
|
78
|
-
import './credential.helpers-5731a09d.js';
|
|
79
|
-
import './index-1fa04a2d.js';
|
|
80
|
-
import './types.esm-00eeb9f6.js';
|
|
81
80
|
import './DotsThreeOutline.svg';
|
|
82
81
|
import './athletics.png';
|
|
83
82
|
import './business.png';
|
package/dist/esm/index13.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index13.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index13.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index21.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import './CaretRightFilled.svg';
|
|
3
|
-
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-
|
|
4
|
-
import './index-
|
|
5
|
-
import './types.esm-
|
|
6
|
-
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-
|
|
7
|
-
import './VerifierStateBadgeAndText-
|
|
3
|
+
export { M as MeritBadgeBackFace, a as MeritBadgeDisplayCard, b as MeritBadgeFrontFace } from './MeritBadgeDisplayCard-c87b0271.js';
|
|
4
|
+
import './index-eae3ca64.js';
|
|
5
|
+
import './types.esm-c7016566.js';
|
|
6
|
+
export { M as MeritBadgeSkillsCount } from './MeritBadgeSkillsCount-77ceb64c.js';
|
|
7
|
+
import './VerifierStateBadgeAndText-2e5414f4.js';
|
|
8
8
|
import './athletics.png';
|
|
9
9
|
import './business.png';
|
|
10
10
|
import './creative.png';
|
|
@@ -14,8 +14,8 @@ import './medical.png';
|
|
|
14
14
|
import './social.png';
|
|
15
15
|
import './stem.png';
|
|
16
16
|
import './trade.png';
|
|
17
|
-
import './PuzzlePiece-
|
|
18
|
-
import './credential.helpers-
|
|
17
|
+
import './PuzzlePiece-4541648e.js';
|
|
18
|
+
import './credential.helpers-97c7e3d4.js';
|
|
19
19
|
import './index-28917993.js';
|
|
20
20
|
import './User-161c7f37.js';
|
|
21
21
|
import './Trophy-ad67f46a.js';
|
package/dist/esm/index23.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { N as Notification } from './Notification-
|
|
2
|
-
export { N as NotificationTypeStyles } from './types-
|
|
1
|
+
export { N as Notification } from './Notification-76adb92c.js';
|
|
2
|
+
export { N as NotificationTypeStyles } from './types-05bc737d.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './notifications-009bbd80.js';
|
|
5
5
|
import './Checkmark-d8b8f43d.js';
|
|
6
6
|
import './Trophy-ad67f46a.js';
|
|
7
7
|
import './Coins-ed119ec6.js';
|
|
8
8
|
import './User-161c7f37.js';
|
|
9
|
-
import './PuzzlePiece-
|
|
9
|
+
import './PuzzlePiece-4541648e.js';
|
|
10
10
|
//# sourceMappingURL=index23.js.map
|
package/dist/esm/index24.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { N as NotificationBoostCard } from './NotificationBoostCard-
|
|
1
|
+
export { N as NotificationBoostCard } from './NotificationBoostCard-e6f1ab86.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './X.svg';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-05bc737d.js';
|
|
5
5
|
import './notifications-009bbd80.js';
|
|
6
6
|
import './Trophy-ad67f46a.js';
|
|
7
7
|
import './Coins-ed119ec6.js';
|
|
8
8
|
import './User-161c7f37.js';
|
|
9
|
-
import './PuzzlePiece-
|
|
9
|
+
import './PuzzlePiece-4541648e.js';
|
|
10
10
|
import './Checkmark-d8b8f43d.js';
|
|
11
11
|
import './ArrowArcLeft.svg';
|
|
12
12
|
import './UserProfilePicture-ecc82a6c.js';
|
package/dist/esm/index3.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export { B as BoostGenericCard } from './BoostGenericCard-5b70fa63.js';
|
|
2
1
|
import 'react';
|
|
2
|
+
import './index-eae3ca64.js';
|
|
3
|
+
import './types.esm-c7016566.js';
|
|
4
|
+
export { B as BoostGenericCard } from './BoostGenericCard-4cfa6556.js';
|
|
3
5
|
import './index-28917993.js';
|
|
4
6
|
import './index-b102febc.js';
|
|
5
7
|
import './walletcurrency.webp';
|
|
@@ -19,14 +21,11 @@ import './minitrophycolored.svg';
|
|
|
19
21
|
import './minigradcapcolored.svg';
|
|
20
22
|
import './minipuzzlecolored.svg';
|
|
21
23
|
import './IDDisplayIcon-82a851e7.js';
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './PuzzlePiece-1fb12c2e.js';
|
|
25
|
-
import './credential.helpers-5731a09d.js';
|
|
26
|
-
import './index-1fa04a2d.js';
|
|
27
|
-
import './types.esm-00eeb9f6.js';
|
|
24
|
+
import './PuzzlePiece-4541648e.js';
|
|
25
|
+
import './credential.helpers-97c7e3d4.js';
|
|
28
26
|
import './User-161c7f37.js';
|
|
29
27
|
import './Trophy-ad67f46a.js';
|
|
28
|
+
import './ThreeDotVertical-08294477.js';
|
|
30
29
|
import './CircleCheckButton-5a97f071.js';
|
|
31
30
|
import './RoundedPill-6a6e8aaf.js';
|
|
32
31
|
import './icons-03afd795.js';
|
package/dist/esm/index3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index30.js
CHANGED
package/dist/esm/index38.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { V as VCCard } from './VCCard-
|
|
1
|
+
export { V as VCCard } from './VCCard-a5dda1f4.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@learncard/init';
|
|
4
|
-
import './VCDisplayCard-
|
|
4
|
+
import './VCDisplayCard-36f34504.js';
|
|
5
5
|
import './FlippyCard-a2de5cf1.js';
|
|
6
6
|
import './icon.green.fat-arrow.png';
|
|
7
7
|
import './UserProfilePicture-ecc82a6c.js';
|
|
8
8
|
import './VCVerificationCheck-80249524.js';
|
|
9
9
|
import './vc.check.svg';
|
|
10
10
|
import './CircleSpinner-9b8b1a6b.js';
|
|
11
|
-
import './credential.helpers-
|
|
12
|
-
import './index-
|
|
13
|
-
import './types.esm-
|
|
11
|
+
import './credential.helpers-97c7e3d4.js';
|
|
12
|
+
import './index-eae3ca64.js';
|
|
13
|
+
import './types.esm-c7016566.js';
|
|
14
14
|
import './index-28917993.js';
|
|
15
|
-
import './PuzzlePiece-
|
|
15
|
+
import './PuzzlePiece-4541648e.js';
|
|
16
16
|
import './User-161c7f37.js';
|
|
17
17
|
import './Trophy-ad67f46a.js';
|
|
18
|
-
import './VCDisplayBackFace-
|
|
19
|
-
import './VCVerificationPill-
|
|
18
|
+
import './VCDisplayBackFace-af01c8b3.js';
|
|
19
|
+
import './VCVerificationPill-0e2c1172.js';
|
|
20
20
|
import './RedXCircle.svg';
|
|
21
21
|
import './GreenCheckCircle.svg';
|
|
22
22
|
import './YellowWarningCircle.svg';
|
|
23
23
|
import './ArrowArcRight.svg';
|
|
24
|
-
import './VCDisplayCard2-
|
|
25
|
-
import './VerifierStateBadgeAndText-
|
|
24
|
+
import './VCDisplayCard2-04e304db.js';
|
|
25
|
+
import './VerifierStateBadgeAndText-2e5414f4.js';
|
|
26
26
|
import './athletics.png';
|
|
27
27
|
import './business.png';
|
|
28
28
|
import './creative.png';
|
|
@@ -34,11 +34,10 @@ import './stem.png';
|
|
|
34
34
|
import './trade.png';
|
|
35
35
|
import './Lightbox-2ae83d79.js';
|
|
36
36
|
import 'react-dom';
|
|
37
|
-
import './CertificateDisplayCard-
|
|
38
|
-
import './CertDisplayCardSkillsCount-c5a21373.js';
|
|
37
|
+
import './CertificateDisplayCard-58c52cdb.js';
|
|
39
38
|
import './CaretRightFilled.svg';
|
|
40
39
|
import './DotsThreeOutline.svg';
|
|
41
40
|
import './QRCodeIcon-e9569804.js';
|
|
42
41
|
import './id-sleeve.png';
|
|
43
|
-
import './MeritBadgeDisplayCard-
|
|
42
|
+
import './MeritBadgeDisplayCard-c87b0271.js';
|
|
44
43
|
//# sourceMappingURL=index38.js.map
|
package/dist/esm/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index38.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index39.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { V as VCDisplayBackFace } from './VCDisplayBackFace-
|
|
1
|
+
export { V as VCDisplayBackFace } from './VCDisplayBackFace-af01c8b3.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './VCVerificationCheck-80249524.js';
|
|
4
4
|
import './vc.check.svg';
|
|
5
5
|
import './CircleSpinner-9b8b1a6b.js';
|
|
6
|
-
import './VCVerificationPill-
|
|
7
|
-
import './types.esm-
|
|
6
|
+
import './VCVerificationPill-0e2c1172.js';
|
|
7
|
+
import './types.esm-c7016566.js';
|
|
8
8
|
import './RedXCircle.svg';
|
|
9
9
|
import './GreenCheckCircle.svg';
|
|
10
10
|
import './YellowWarningCircle.svg';
|
|
11
11
|
import './ArrowArcRight.svg';
|
|
12
|
-
import './credential.helpers-
|
|
13
|
-
import './index-
|
|
12
|
+
import './credential.helpers-97c7e3d4.js';
|
|
13
|
+
import './index-eae3ca64.js';
|
|
14
14
|
import './index-28917993.js';
|
|
15
|
-
import './PuzzlePiece-
|
|
15
|
+
import './PuzzlePiece-4541648e.js';
|
|
16
16
|
import './User-161c7f37.js';
|
|
17
17
|
import './Trophy-ad67f46a.js';
|
|
18
18
|
//# sourceMappingURL=index39.js.map
|
package/dist/esm/index40.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as VCDisplayCard } from './VCDisplayCard-
|
|
1
|
+
export { V as VCDisplayCard } from './VCDisplayCard-36f34504.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './FlippyCard-a2de5cf1.js';
|
|
4
4
|
import './icon.green.fat-arrow.png';
|
|
@@ -6,15 +6,15 @@ import './UserProfilePicture-ecc82a6c.js';
|
|
|
6
6
|
import './VCVerificationCheck-80249524.js';
|
|
7
7
|
import './vc.check.svg';
|
|
8
8
|
import './CircleSpinner-9b8b1a6b.js';
|
|
9
|
-
import './credential.helpers-
|
|
10
|
-
import './index-
|
|
11
|
-
import './types.esm-
|
|
9
|
+
import './credential.helpers-97c7e3d4.js';
|
|
10
|
+
import './index-eae3ca64.js';
|
|
11
|
+
import './types.esm-c7016566.js';
|
|
12
12
|
import './index-28917993.js';
|
|
13
|
-
import './PuzzlePiece-
|
|
13
|
+
import './PuzzlePiece-4541648e.js';
|
|
14
14
|
import './User-161c7f37.js';
|
|
15
15
|
import './Trophy-ad67f46a.js';
|
|
16
|
-
import './VCDisplayBackFace-
|
|
17
|
-
import './VCVerificationPill-
|
|
16
|
+
import './VCDisplayBackFace-af01c8b3.js';
|
|
17
|
+
import './VCVerificationPill-0e2c1172.js';
|
|
18
18
|
import './RedXCircle.svg';
|
|
19
19
|
import './GreenCheckCircle.svg';
|
|
20
20
|
import './YellowWarningCircle.svg';
|
package/dist/esm/index41.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { S as SelectedSkills } from './VerifierStateBadgeAndText-
|
|
2
|
+
export { S as SelectedSkills } from './VerifierStateBadgeAndText-2e5414f4.js';
|
|
3
3
|
import './athletics.png';
|
|
4
4
|
import './business.png';
|
|
5
5
|
import './creative.png';
|
|
@@ -9,25 +9,24 @@ import './medical.png';
|
|
|
9
9
|
import './social.png';
|
|
10
10
|
import './stem.png';
|
|
11
11
|
import './trade.png';
|
|
12
|
-
import './index-
|
|
13
|
-
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-
|
|
14
|
-
import './types.esm-
|
|
12
|
+
import './index-eae3ca64.js';
|
|
13
|
+
export { V as VCDisplayCard2, a as VCDisplayCardSkillsCount, b as VCIDDisplayCard } from './VCDisplayCard2-04e304db.js';
|
|
14
|
+
import './types.esm-c7016566.js';
|
|
15
15
|
import './CaretRightFilled.svg';
|
|
16
16
|
import './id-sleeve.png';
|
|
17
|
-
import './PuzzlePiece-
|
|
17
|
+
import './PuzzlePiece-4541648e.js';
|
|
18
18
|
import './VCVerificationCheck-80249524.js';
|
|
19
19
|
import './vc.check.svg';
|
|
20
20
|
import './CircleSpinner-9b8b1a6b.js';
|
|
21
21
|
import './UserProfilePicture-ecc82a6c.js';
|
|
22
|
-
import './credential.helpers-
|
|
22
|
+
import './credential.helpers-97c7e3d4.js';
|
|
23
23
|
import './index-28917993.js';
|
|
24
24
|
import './User-161c7f37.js';
|
|
25
25
|
import './Trophy-ad67f46a.js';
|
|
26
26
|
import './Lightbox-2ae83d79.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import './CertificateDisplayCard-
|
|
29
|
-
import './CertDisplayCardSkillsCount-c5a21373.js';
|
|
28
|
+
import './CertificateDisplayCard-58c52cdb.js';
|
|
30
29
|
import './DotsThreeOutline.svg';
|
|
31
30
|
import './QRCodeIcon-e9569804.js';
|
|
32
|
-
import './MeritBadgeDisplayCard-
|
|
31
|
+
import './MeritBadgeDisplayCard-c87b0271.js';
|
|
33
32
|
//# sourceMappingURL=index41.js.map
|
package/dist/esm/index41.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index41.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index41.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/index42.js
CHANGED
package/dist/esm/index45.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { V as ValidationStateIndicator } from './VCVerificationPill-
|
|
1
|
+
export { V as ValidationStateIndicator } from './VCVerificationPill-0e2c1172.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import './types.esm-
|
|
3
|
+
import './types.esm-c7016566.js';
|
|
4
4
|
import './RedXCircle.svg';
|
|
5
5
|
import './GreenCheckCircle.svg';
|
|
6
6
|
import './YellowWarningCircle.svg';
|
package/dist/esm/index6.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import './CaretRightFilled.svg';
|
|
3
|
-
export { C as CertDisplayCardSkillsCount } from './
|
|
4
|
-
|
|
5
|
-
import './
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import './PuzzlePiece-1fb12c2e.js';
|
|
9
|
-
import './credential.helpers-5731a09d.js';
|
|
3
|
+
export { C as CertDisplayCardSkillsCount, a as CertificateBackFace, b as CertificateDisplayCard, c as CertificateFrontFace } from './CertificateDisplayCard-58c52cdb.js';
|
|
4
|
+
import './index-eae3ca64.js';
|
|
5
|
+
import './types.esm-c7016566.js';
|
|
6
|
+
export { V as VERIFIER_STATES, a as VerifierStateBadgeAndText } from './VerifierStateBadgeAndText-2e5414f4.js';
|
|
7
|
+
import './credential.helpers-97c7e3d4.js';
|
|
10
8
|
import './index-28917993.js';
|
|
9
|
+
import './PuzzlePiece-4541648e.js';
|
|
11
10
|
import './User-161c7f37.js';
|
|
12
11
|
import './Trophy-ad67f46a.js';
|
|
13
12
|
import './UserProfilePicture-ecc82a6c.js';
|
package/dist/esm/index6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@ import { N as NotificationTypeEnum } from './notifications-009bbd80.js';
|
|
|
2
2
|
import { T as Trophy } from './Trophy-ad67f46a.js';
|
|
3
3
|
import { C as Coins } from './Coins-ed119ec6.js';
|
|
4
4
|
import { U as User, B as Briefcase, G as Graduation } from './User-161c7f37.js';
|
|
5
|
-
import { P as PuzzlePiece } from './PuzzlePiece-
|
|
5
|
+
import { P as PuzzlePiece } from './PuzzlePiece-4541648e.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
8
|
const ShieldChevron = ({ className }) => {
|
|
@@ -93,4 +93,4 @@ const NotificationTypeStyles = {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
export { NotificationTypeStyles as N };
|
|
96
|
-
//# sourceMappingURL=types-
|
|
96
|
+
//# sourceMappingURL=types-05bc737d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-05bc737d.js","sources":["../../src/components/svgs/ShieldChevron.tsx","../../src/components/Notification/types.ts"],"sourcesContent":["import React from 'react';\n\nconst ShieldChevron: React.FC<{ className?: string }> = ({ className }) => {\n return (\n <svg viewBox=\"0 0 46 46\" fill=\"none\" className={className} data-testid=\"socialBadge-icon\">\n <path\n d=\"M7.53125 19.25V8.9375C7.53125 8.56454 7.67941 8.20685 7.94313 7.94313C8.20685 7.67941 8.56454 7.53125 8.9375 7.53125H37.0625C37.4355 7.53125 37.7931 7.67941 38.0569 7.94313C38.3206 8.20685 38.4688 8.56454 38.4688 8.9375V19.25C38.4688 34.0183 25.9345 38.9112 23.4318 39.7409C23.152 39.8372 22.848 39.8372 22.5682 39.7409C20.0655 38.9112 7.53125 34.0183 7.53125 19.25Z\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M36.0785 29.3425L23 20.1875L9.92139 29.3425\"\n stroke=\"currentColor\"\n strokeWidth=\"4\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n};\n\nexport default ShieldChevron;\n","import { NotificationTypeEnum } from '../../constants/notifications';\n\nimport Trophy from '../svgs/Trophy';\nimport Coins from '../svgs/Coins';\nimport User from '../svgs/User';\nimport Briefcase from '../svgs/Briefcase';\nimport PuzzlePiece from '../svgs/PuzzlePiece';\nimport Graduation from '../svgs/Graduation';\nimport ShieldChevron from '../svgs/ShieldChevron';\n\nexport type NotificationProps = {\n notificationType: NotificationTypeEnum;\n title: string;\n issuerImage?: string;\n issueDate: string;\n className?: string;\n handleViewOnClick: () => void;\n claimStatus: boolean;\n handleClaimOnClick: () => void;\n loadingState: boolean;\n};\n\nexport const NotificationTypeStyles: {\n [key: NotificationTypeEnum | string]: {\n viewButtonStyles: string;\n unclaimedButtonStyles: string;\n claimedButtonStyles: string;\n textStyles: string;\n iconCircleStyles: string;\n IconComponent: any;\n typeText: string;\n };\n} = {\n [NotificationTypeEnum.Currency]: {\n viewButtonStyles: 'border-cyan-400 text-cyan-400',\n unclaimedButtonStyles: 'text-white bg-cyan-400 border-cyan-400 shadow-bottom',\n claimedButtonStyles: 'text-cyan-400 bg-cyan-50 border-cyan-50',\n textStyles: 'text-cyan-400 capitalize',\n iconCircleStyles: 'bg-cyan-400',\n IconComponent: Coins,\n typeText: 'Currency',\n },\n [NotificationTypeEnum.SocialBadges]: {\n viewButtonStyles: 'border-cyan-400 text-cyan-400',\n unclaimedButtonStyles: 'text-white bg-cyan-400 border-cyan-400 shadow-bottom',\n claimedButtonStyles: 'text-cyan-400 bg-cyan-50 border-cyan-50',\n textStyles: 'text-cyan-400 capitalize',\n iconCircleStyles: 'bg-cyan-400',\n IconComponent: ShieldChevron,\n typeText: 'Social Badge',\n },\n [NotificationTypeEnum.ID]: {\n viewButtonStyles: 'border-yellow-400 text-yellow-400',\n unclaimedButtonStyles: 'text-white bg-yellow-400 border-yellow-400 shadow-bottom',\n claimedButtonStyles: 'text-yellow-400 bg-yellow-50 border-yellow-50',\n textStyles: 'text-yellow-400 uppercase',\n iconCircleStyles: 'bg-yellow-400',\n IconComponent: User,\n typeText: 'ID',\n },\n [NotificationTypeEnum.Achievement]: {\n viewButtonStyles: 'border-spice-600 text-spice-400',\n unclaimedButtonStyles: 'text-white bg-spice-400 border-spice-400 shadow-bottom',\n claimedButtonStyles: 'text-spice-400 bg-spice-50 border-spice-50',\n textStyles: 'text-spice-400 capitalize',\n iconCircleStyles: 'bg-spice-400',\n IconComponent: Trophy,\n typeText: 'Achievement',\n },\n [NotificationTypeEnum.Skill]: {\n viewButtonStyles: 'border-indigo-400 text-indigo-400',\n unclaimedButtonStyles: 'text-white bg-indigo-400 border-indigo-400 shadow-bottom',\n claimedButtonStyles: 'text-indigo-400 bg-indigo-50 border-indigo-50',\n textStyles: 'text-indigo-400 capitalize',\n iconCircleStyles: 'bg-indigo-400',\n IconComponent: PuzzlePiece,\n typeText: 'Skill',\n },\n [NotificationTypeEnum.Job]: {\n viewButtonStyles: 'border-rose-400 text-rose-400',\n unclaimedButtonStyles: 'text-white bg-rose-400 border-rose-400 shadow-bottom',\n claimedButtonStyles: 'text-rose-400 bg-rose-50 border-rose-50',\n textStyles: 'text-rose-400 capitalize',\n iconCircleStyles: 'bg-rose-400',\n IconComponent: Briefcase,\n typeText: 'Work History',\n },\n [NotificationTypeEnum.Learning]: {\n viewButtonStyles: 'border-emerald-500 text-emerald-500',\n unclaimedButtonStyles: 'text-white bg-emerald-500 border-emerald-500 shadow-bottom',\n claimedButtonStyles: 'text-emerald-500 bg-emerald-50 border-emerald-50',\n textStyles: 'text-emerald-500 capitalize',\n iconCircleStyles: 'bg-emerald-500',\n IconComponent: Graduation,\n typeText: 'Learning History',\n },\n};\n"],"names":[],"mappings":"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"}
|