@learncard/react 2.10.3 → 2.10.4
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/README.md +10 -10
- package/dist/base.css +1 -1
- package/dist/base.js +1 -1
- package/dist/cjs/{BoostGenericCard-0f68947f.js → BoostGenericCard-5a07339f.js} +2 -2
- package/dist/cjs/{BoostGenericCard-0f68947f.js.map → BoostGenericCard-5a07339f.js.map} +1 -1
- package/dist/cjs/{CertificateDisplayCard-6c30f6e6.js → CertificateDisplayCard-a7940558.js} +4 -4
- package/dist/cjs/{CertificateDisplayCard-6c30f6e6.js.map → CertificateDisplayCard-a7940558.js.map} +1 -1
- package/dist/cjs/CircleIcon-f0fa68c7.js.map +1 -1
- package/dist/cjs/{LearnCardCreditCardFrontFace-aca1b7bc.js → LearnCardCreditCardFrontFace-75fb4e44.js} +2 -2
- package/dist/cjs/{LearnCardCreditCardFrontFace-aca1b7bc.js.map → LearnCardCreditCardFrontFace-75fb4e44.js.map} +1 -1
- package/dist/cjs/{MeritBadgeDisplayCard-535853f5.js → MeritBadgeDisplayCard-1c614da9.js} +4 -4
- package/dist/cjs/{MeritBadgeDisplayCard-535853f5.js.map → MeritBadgeDisplayCard-1c614da9.js.map} +1 -1
- package/dist/cjs/{MeritBadgeSkillsCount-5cc7d16e.js → MeritBadgeSkillsCount-4dabf982.js} +2 -2
- package/dist/cjs/{MeritBadgeSkillsCount-5cc7d16e.js.map → MeritBadgeSkillsCount-4dabf982.js.map} +1 -1
- package/dist/cjs/{QRCodeCard-f0079bd9.js → QRCodeCard-2378411e.js} +2 -2
- package/dist/cjs/{QRCodeCard-f0079bd9.js.map → QRCodeCard-2378411e.js.map} +1 -1
- package/dist/cjs/{SchoolIDCard-e22d0d80.js → SchoolIDCard-2d3cbb2c.js} +13 -1189
- package/dist/cjs/SchoolIDCard-2d3cbb2c.js.map +1 -0
- package/dist/cjs/{VCCard-deabc204.js → VCCard-5bb95d29.js} +3 -3
- package/dist/cjs/{VCCard-deabc204.js.map → VCCard-5bb95d29.js.map} +1 -1
- package/dist/cjs/{VCDisplayBackFace-a15d5252.js → VCDisplayBackFace-864c35d5.js} +3 -3
- package/dist/cjs/{VCDisplayBackFace-a15d5252.js.map → VCDisplayBackFace-864c35d5.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard-a64fa405.js → VCDisplayCard-15af27c6.js} +3 -3
- package/dist/cjs/{VCDisplayCard-a64fa405.js.map → VCDisplayCard-15af27c6.js.map} +1 -1
- package/dist/cjs/{VCDisplayCard2-6c87eade.js → VCDisplayCard2-f3f5c6c4.js} +28 -22
- package/dist/cjs/VCDisplayCard2-f3f5c6c4.js.map +1 -0
- package/dist/cjs/{VCVerificationPill-e1cc6be2.js → VCVerificationPill-20ed4d3c.js} +2 -2
- package/dist/cjs/{VCVerificationPill-e1cc6be2.js.map → VCVerificationPill-20ed4d3c.js.map} +1 -1
- package/dist/cjs/{VerifierStateBadgeAndText-5229da1a.js → VerifierStateBadgeAndText-de5bd85f.js} +9 -11
- package/dist/cjs/VerifierStateBadgeAndText-de5bd85f.js.map +1 -0
- package/dist/cjs/{credential.helpers-473e89c5.js → credential.helpers-b4d27c8a.js} +3 -3
- package/dist/cjs/credential.helpers-b4d27c8a.js.map +1 -0
- package/dist/cjs/{index-ec1d26f1.js → index-330dcb9c.js} +1 -1
- package/dist/cjs/index-330dcb9c.js.map +1 -0
- package/dist/cjs/index-47efbf5b.js +1186 -0
- package/dist/cjs/index-47efbf5b.js.map +1 -0
- package/dist/cjs/{index-0cac2c5b.js → index-da255c9a.js} +1 -1
- package/dist/cjs/index-da255c9a.js.map +1 -0
- package/dist/cjs/index.js +18 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index14.js +18 -17
- package/dist/cjs/index14.js.map +1 -1
- package/dist/cjs/index18.js +2 -2
- package/dist/cjs/index22.js +6 -6
- package/dist/cjs/index28.js +2 -2
- package/dist/cjs/index31.js +2 -1
- package/dist/cjs/index31.js.map +1 -1
- package/dist/cjs/index39.js +12 -11
- package/dist/cjs/index39.js.map +1 -1
- package/dist/cjs/index4.js +4 -4
- package/dist/cjs/index40.js +5 -5
- package/dist/cjs/index41.js +6 -6
- package/dist/cjs/index42.js +8 -7
- package/dist/cjs/index42.js.map +1 -1
- package/dist/cjs/index43.js +2 -2
- package/dist/cjs/index46.js +2 -2
- package/dist/cjs/index7.js +5 -5
- package/dist/cjs/{types.esm-12bb5eed.js → types.esm-40b77196.js} +3 -2
- package/dist/cjs/types.esm-40b77196.js.map +1 -0
- package/dist/esm/{BoostGenericCard-b332a829.js → BoostGenericCard-997af0f5.js} +2 -2
- package/dist/esm/{BoostGenericCard-b332a829.js.map → BoostGenericCard-997af0f5.js.map} +1 -1
- package/dist/esm/{CertificateDisplayCard-fc148ca0.js → CertificateDisplayCard-d764151e.js} +4 -4
- package/dist/esm/{CertificateDisplayCard-fc148ca0.js.map → CertificateDisplayCard-d764151e.js.map} +1 -1
- package/dist/esm/CircleIcon-abd5ff06.js.map +1 -1
- package/dist/esm/{LearnCardCreditCardFrontFace-b7c917f5.js → LearnCardCreditCardFrontFace-13d29504.js} +2 -2
- package/dist/esm/{LearnCardCreditCardFrontFace-b7c917f5.js.map → LearnCardCreditCardFrontFace-13d29504.js.map} +1 -1
- package/dist/esm/{MeritBadgeDisplayCard-da9de0b8.js → MeritBadgeDisplayCard-907627ed.js} +4 -4
- package/dist/esm/{MeritBadgeDisplayCard-da9de0b8.js.map → MeritBadgeDisplayCard-907627ed.js.map} +1 -1
- package/dist/esm/{MeritBadgeSkillsCount-01e2756e.js → MeritBadgeSkillsCount-9474bd51.js} +2 -2
- package/dist/esm/{MeritBadgeSkillsCount-01e2756e.js.map → MeritBadgeSkillsCount-9474bd51.js.map} +1 -1
- package/dist/esm/{QRCodeCard-8f29c3c7.js → QRCodeCard-3abf9f33.js} +2 -2
- package/dist/esm/{QRCodeCard-8f29c3c7.js.map → QRCodeCard-3abf9f33.js.map} +1 -1
- package/dist/esm/{SchoolIDCard-8b151cd3.js → SchoolIDCard-fbd1cf6c.js} +12 -1188
- package/dist/esm/SchoolIDCard-fbd1cf6c.js.map +1 -0
- package/dist/esm/{VCCard-94dbe6bf.js → VCCard-ce4b451d.js} +3 -3
- package/dist/esm/{VCCard-94dbe6bf.js.map → VCCard-ce4b451d.js.map} +1 -1
- package/dist/esm/{VCDisplayBackFace-9c5b383f.js → VCDisplayBackFace-e347145c.js} +3 -3
- package/dist/esm/{VCDisplayBackFace-9c5b383f.js.map → VCDisplayBackFace-e347145c.js.map} +1 -1
- package/dist/esm/{VCDisplayCard-bd4d15e1.js → VCDisplayCard-3002776b.js} +3 -3
- package/dist/esm/{VCDisplayCard-bd4d15e1.js.map → VCDisplayCard-3002776b.js.map} +1 -1
- package/dist/esm/{VCDisplayCard2-c6a81e42.js → VCDisplayCard2-db880bbb.js} +28 -22
- package/dist/esm/VCDisplayCard2-db880bbb.js.map +1 -0
- package/dist/esm/{VCVerificationPill-d073557c.js → VCVerificationPill-5a05423b.js} +2 -2
- package/dist/esm/{VCVerificationPill-d073557c.js.map → VCVerificationPill-5a05423b.js.map} +1 -1
- package/dist/esm/{VerifierStateBadgeAndText-6946e820.js → VerifierStateBadgeAndText-bd1b0131.js} +9 -11
- package/dist/esm/VerifierStateBadgeAndText-bd1b0131.js.map +1 -0
- package/dist/esm/{credential.helpers-ff461699.js → credential.helpers-26e1a359.js} +3 -3
- package/dist/esm/credential.helpers-26e1a359.js.map +1 -0
- package/dist/esm/{index-2ef835bd.js → index-bc6b8b0b.js} +1 -1
- package/dist/{cjs/index-ec1d26f1.js.map → esm/index-bc6b8b0b.js.map} +1 -1
- package/dist/esm/{index-eae3ca64.js → index-cb3a593b.js} +1 -1
- package/dist/esm/index-cb3a593b.js.map +1 -0
- package/dist/esm/index-cbd2e9db.js +1184 -0
- package/dist/esm/index-cbd2e9db.js.map +1 -0
- package/dist/esm/index.js +18 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index14.js +18 -17
- package/dist/esm/index14.js.map +1 -1
- package/dist/esm/index18.js +2 -2
- package/dist/esm/index22.js +6 -6
- package/dist/esm/index28.js +2 -2
- package/dist/esm/index31.js +2 -1
- package/dist/esm/index31.js.map +1 -1
- package/dist/esm/index39.js +12 -11
- package/dist/esm/index39.js.map +1 -1
- package/dist/esm/index4.js +4 -4
- package/dist/esm/index40.js +5 -5
- package/dist/esm/index41.js +6 -6
- package/dist/esm/index42.js +8 -7
- package/dist/esm/index42.js.map +1 -1
- package/dist/esm/index43.js +2 -2
- package/dist/esm/index46.js +2 -2
- package/dist/esm/index7.js +5 -5
- package/dist/esm/{types.esm-f32fc00a.js → types.esm-13bb929b.js} +3 -2
- package/dist/esm/types.esm-13bb929b.js.map +1 -0
- package/dist/main.css +1 -1
- package/dist/main.js +1 -1
- package/package.json +102 -87
- package/src/assets/icons/accommodationsIcon.svg +5 -0
- package/src/assets/icons/accomplishmentsIcon.svg +4 -0
- package/src/assets/icons/achievementsIcon.svg +7 -0
- package/src/assets/icons/coursesIcon.svg +5 -0
- package/src/assets/icons/eventsIcon.svg +6 -0
- package/src/assets/icons/experiencesIcon.svg +4 -0
- package/src/assets/icons/goalsIcon.svg +5 -0
- package/src/assets/icons/idIcon.svg +4 -0
- package/src/assets/icons/membershipsIcon.svg +4 -0
- package/src/assets/icons/relationshipsIcon.svg +6 -0
- package/src/assets/icons/skillsIcon.svg +3 -0
- package/src/assets/icons/socialBadgesIcon.svg +7 -0
- package/src/assets/images/Accommodation-Hands.png +0 -0
- package/src/assets/images/ArrowArcLeft.svg +4 -0
- package/src/assets/images/ArrowArcRight.svg +4 -0
- package/src/assets/images/CaretRight.svg +3 -0
- package/src/assets/images/CaretRightFilled.svg +3 -0
- package/src/assets/images/DotsThreeOutline.svg +5 -0
- package/src/assets/images/GreenCheckCircle.svg +4 -0
- package/src/assets/images/RedXCircle.svg +5 -0
- package/src/assets/images/X.svg +4 -0
- package/src/assets/images/YellowWarningCircle.svg +4 -0
- package/src/assets/images/addawardlight.svg +8 -0
- package/src/assets/images/agriculture.png +0 -0
- package/src/assets/images/apple.png +0 -0
- package/src/assets/images/athletics.png +0 -0
- package/src/assets/images/award.svg +3 -0
- package/src/assets/images/backpack.png +0 -0
- package/src/assets/images/badge.png +0 -0
- package/src/assets/images/briefcase.svg +6 -0
- package/src/assets/images/business.png +0 -0
- package/src/assets/images/card-chip.svg +26 -0
- package/src/assets/images/check.svg +17 -0
- package/src/assets/images/coins.svg +3 -0
- package/src/assets/images/contactless-symbol.svg +3 -0
- package/src/assets/images/creative.png +0 -0
- package/src/assets/images/digital.png +0 -0
- package/src/assets/images/durable.png +0 -0
- package/src/assets/images/emptystate-death.png +0 -0
- package/src/assets/images/emptystate-dinocandle.png +0 -0
- package/src/assets/images/emptystate-ghost1.png +0 -0
- package/src/assets/images/eventsGraphic.png +0 -0
- package/src/assets/images/experience-mountain.png +0 -0
- package/src/assets/images/goals-target.png +0 -0
- package/src/assets/images/gradcaplight.svg +3 -0
- package/src/assets/images/graduation.svg +3 -0
- package/src/assets/images/icon.green.fat-arrow.png +0 -0
- package/src/assets/images/id-purple.png +0 -0
- package/src/assets/images/id-sleeve.png +0 -0
- package/src/assets/images/key-icon.svg +4 -0
- package/src/assets/images/lhplaceholder.png +0 -0
- package/src/assets/images/lightbulb.svg +3 -0
- package/src/assets/images/loveyou-icon.svg +5 -0
- package/src/assets/images/master-card-logo.svg +20 -0
- package/src/assets/images/medical.png +0 -0
- package/src/assets/images/membership-graphic.png +0 -0
- package/src/assets/images/membership-key.svg +9 -0
- package/src/assets/images/minigradcapcolored.svg +3 -0
- package/src/assets/images/minijob.svg +5 -0
- package/src/assets/images/minipuzzle.svg +3 -0
- package/src/assets/images/minipuzzlecolored.svg +3 -0
- package/src/assets/images/minitrophy.svg +3 -0
- package/src/assets/images/minitrophycolored.svg +3 -0
- package/src/assets/images/motlow-buckcard-bg.svg +32 -0
- package/src/assets/images/mountains-icon.svg +4 -0
- package/src/assets/images/photoplaceholder.png +0 -0
- package/src/assets/images/puzzle-icon.svg +3 -0
- package/src/assets/images/relationships-cats.png +0 -0
- package/src/assets/images/sample-badge.png +0 -0
- package/src/assets/images/skillgraph.svg +29 -0
- package/src/assets/images/skillplaceholder.png +0 -0
- package/src/assets/images/social-badge-2.png +0 -0
- package/src/assets/images/social-badge.png +0 -0
- package/src/assets/images/social-icon.svg +7 -0
- package/src/assets/images/social.png +0 -0
- package/src/assets/images/stem.png +0 -0
- package/src/assets/images/target-icon.svg +5 -0
- package/src/assets/images/trade.png +0 -0
- package/src/assets/images/trophy.svg +3 -0
- package/src/assets/images/user.svg +4 -0
- package/src/assets/images/users-icon.svg +6 -0
- package/src/assets/images/vc.check.svg +10 -0
- package/src/assets/images/verified-check.png +0 -0
- package/src/assets/images/walletTrophy.png +0 -0
- package/src/assets/images/walletcurrency.webp +0 -0
- package/src/assets/images/walletids.webp +0 -0
- package/src/assets/images/walletjobhistory.webp +0 -0
- package/src/assets/images/walletskills.webp +0 -0
- package/src/assets/styles/base.css +2 -0
- package/src/assets/styles/main.css +475 -0
- package/src/components/AchievementCard/AchievementCard.stories.tsx +31 -0
- package/src/components/AchievementCard/AchievementCard.tsx +88 -0
- package/src/components/AchievementCard/index.ts +5 -0
- package/src/components/BadgeThumbnailImg/BadgeThumbnailImg.test.tsx +47 -0
- package/src/components/BadgeThumbnailImg/BadgeThumbnailImg.tsx +72 -0
- package/src/components/BadgeThumbnailImg/index.ts +5 -0
- package/src/components/BoostGenericCard/AlignmentSkillsCount.tsx +54 -0
- package/src/components/BoostGenericCard/BoostGenericCard.stories.tsx +39 -0
- package/src/components/BoostGenericCard/BoostGenericCard.tsx +177 -0
- package/src/components/BoostGenericCard/index.ts +6 -0
- package/src/components/BoostSmallCard/BoostSmallCard.stories.tsx +57 -0
- package/src/components/BoostSmallCard/BoostSmallCard.tsx +178 -0
- package/src/components/BoostSmallCard/index.ts +5 -0
- package/src/components/Button/Button.stories.tsx +20 -0
- package/src/components/Button/Button.test.tsx +15 -0
- package/src/components/Button/Button.tsx +21 -0
- package/src/components/Button/index.ts +5 -0
- package/src/components/CertificateDisplayCard/AlignmentRow.tsx +26 -0
- package/src/components/CertificateDisplayCard/AlignmentsBox.tsx +70 -0
- package/src/components/CertificateDisplayCard/CertDisplayCardSkillsCount.tsx +66 -0
- package/src/components/CertificateDisplayCard/CertificateBackFace.tsx +130 -0
- package/src/components/CertificateDisplayCard/CertificateCornerIcon.tsx +48 -0
- package/src/components/CertificateDisplayCard/CertificateDisplayCard.stories.tsx +21 -0
- package/src/components/CertificateDisplayCard/CertificateDisplayCard.tsx +180 -0
- package/src/components/CertificateDisplayCard/CertificateFrontFace.tsx +308 -0
- package/src/components/CertificateDisplayCard/CertificateImageDisplay.test.tsx +43 -0
- package/src/components/CertificateDisplayCard/CertificateImageDisplay.tsx +68 -0
- package/src/components/CertificateDisplayCard/CertificateProfileImageDisplay.test.tsx +66 -0
- package/src/components/CertificateDisplayCard/CertificateProfileImageDisplay.tsx +64 -0
- package/src/components/CertificateDisplayCard/CertificateRibbon.tsx +43 -0
- package/src/components/CertificateDisplayCard/InfoBox.tsx +30 -0
- package/src/components/CertificateDisplayCard/MediaAttachmentsBox.tsx +347 -0
- package/src/components/CertificateDisplayCard/TruncateTextBox.tsx +73 -0
- package/src/components/CertificateDisplayCard/VerificationRow.tsx +67 -0
- package/src/components/CertificateDisplayCard/VerificationsBox.tsx +44 -0
- package/src/components/CertificateDisplayCard/VerifierStateBadgeAndText.tsx +100 -0
- package/src/components/CertificateDisplayCard/index.ts +20 -0
- package/src/components/CircleCheckButton/CircleCheckButton.stories.tsx +21 -0
- package/src/components/CircleCheckButton/CircleCheckButton.tsx +28 -0
- package/src/components/CircleCheckButton/index.ts +5 -0
- package/src/components/CircleIcon/CircleIcon.tsx +90 -0
- package/src/components/CircleIcon/__tests__/CircleIcon.test.tsx +38 -0
- package/src/components/CircleIcon/ci new +0 -0
- package/src/components/CircleIcon/index.ts +5 -0
- package/src/components/CourseCard/CourseCard.stories.tsx +23 -0
- package/src/components/CourseCard/CourseCard.tsx +94 -0
- package/src/components/CourseCard/index.ts +5 -0
- package/src/components/CourseVerticalCard/CourseVerticalCard.stories.tsx +31 -0
- package/src/components/CourseVerticalCard/CourseVerticalCard.tsx +118 -0
- package/src/components/CourseVerticalCard/index.ts +5 -0
- package/src/components/FlippyCard/FlippyCard.tsx +34 -0
- package/src/components/FlippyCard/__tests__/FlippyCard.test.tsx +41 -0
- package/src/components/FlippyCard/index.ts +5 -0
- package/src/components/GenericCard/GenericCard.stories.tsx +22 -0
- package/src/components/GenericCard/GenericCard.tsx +72 -0
- package/src/components/GenericCard/index.ts +5 -0
- package/src/components/JobHistoryCard/JobHistoryCard.stories.tsx +26 -0
- package/src/components/JobHistoryCard/JobHistoryCard.tsx +44 -0
- package/src/components/JobHistoryCard/index.ts +5 -0
- package/src/components/JobListCard/JobListCard.stories.tsx +54 -0
- package/src/components/JobListCard/JobListCard.tsx +162 -0
- package/src/components/JobListCard/index.ts +5 -0
- package/src/components/LearnCardCreditCardBackFace/LearnCardCreditCardBackFace.stories.tsx +31 -0
- package/src/components/LearnCardCreditCardBackFace/LearnCardCreditCardBackFace.tsx +104 -0
- package/src/components/LearnCardCreditCardBackFace/__tests__/LearnCardCreditCardBackFace.test.tsx +64 -0
- package/src/components/LearnCardCreditCardBackFace/index.ts +6 -0
- package/src/components/LearnCardCreditCardBackFace/types.ts +45 -0
- package/src/components/LearnCardCreditCardFrontFace/LearnCardCreditCardFrontFace.stories.tsx +28 -0
- package/src/components/LearnCardCreditCardFrontFace/LearnCardCreditCardFrontFace.tsx +102 -0
- package/src/components/LearnCardCreditCardFrontFace/__tests__/LearnCardCreditCardFrontFace.test.tsx +48 -0
- package/src/components/LearnCardCreditCardFrontFace/index.ts +6 -0
- package/src/components/LearnCardCreditCardFrontFace/types.ts +42 -0
- package/src/components/LearnPill/LearnPill.stories.tsx +20 -0
- package/src/components/LearnPill/LearnPill.tsx +35 -0
- package/src/components/LearnPill/index.ts +5 -0
- package/src/components/Lightbox/Lightbox.tsx +133 -0
- package/src/components/Lightbox/index.ts +5 -0
- package/src/components/Loading/CircleSpinner.tsx +52 -0
- package/src/components/Loading/index.ts +5 -0
- package/src/components/MeritBadgeDisplayCard/AlignmentRow.tsx +26 -0
- package/src/components/MeritBadgeDisplayCard/AlignmentsBox.tsx +70 -0
- package/src/components/MeritBadgeDisplayCard/InfoBox.tsx +30 -0
- package/src/components/MeritBadgeDisplayCard/MediaAttachmentsBox.tsx +347 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeBackFace.tsx +130 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeCornerIcon.tsx +46 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeDisplayCard.tsx +177 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeFrontFace.tsx +292 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeImageDisplay.tsx +22 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeProfileImageDisplay.test.tsx +70 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeProfileImageDisplay.tsx +66 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeRibbon.tsx +185 -0
- package/src/components/MeritBadgeDisplayCard/MeritBadgeSkillsCount.tsx +47 -0
- package/src/components/MeritBadgeDisplayCard/TruncateTextBox.tsx +73 -0
- package/src/components/MeritBadgeDisplayCard/VerificationRow.tsx +67 -0
- package/src/components/MeritBadgeDisplayCard/VerificationsBox.tsx +44 -0
- package/src/components/MeritBadgeDisplayCard/VerifierStateBadgeAndText.tsx +57 -0
- package/src/components/MeritBadgeDisplayCard/index.ts +20 -0
- package/src/components/MiniVCThumbnail/ MiniVCThumbnail.css +18 -0
- package/src/components/MiniVCThumbnail/ MiniVCThumbnail.stories.tsx +24 -0
- package/src/components/MiniVCThumbnail/MiniVCThumbnail.tsx +83 -0
- package/src/components/MiniVCThumbnail/__tests__/MiniVCThumbnail.test.tsx +59 -0
- package/src/components/MiniVCThumbnail/index.ts +6 -0
- package/src/components/MiniVCThumbnail/types.ts +32 -0
- package/src/components/Notification/Notification.stories.tsx +25 -0
- package/src/components/Notification/Notification.tsx +115 -0
- package/src/components/Notification/__tests__/Notification.test.tsx +111 -0
- package/src/components/Notification/index.ts +6 -0
- package/src/components/Notification/types.ts +97 -0
- package/src/components/NotificationBoostCard/NotificationBoostCard.stories.tsx +54 -0
- package/src/components/NotificationBoostCard/NotificationBoostCard.tsx +153 -0
- package/src/components/NotificationBoostCard/index.ts +6 -0
- package/src/components/NotificationBoostCard/types.ts +25 -0
- package/src/components/NotificationUserAcceptedBoostCard/NotificationUserAcceptedBoostCard.stories.tsx +28 -0
- package/src/components/NotificationUserAcceptedBoostCard/NotificationUserAcceptedBoostCard.tsx +96 -0
- package/src/components/NotificationUserAcceptedBoostCard/index.ts +6 -0
- package/src/components/NotificationUserAcceptedBoostCard/types.ts +13 -0
- package/src/components/NotificationUserCard/NotificationUserCard.stories.tsx +26 -0
- package/src/components/NotificationUserCard/NotificationUserCard.tsx +121 -0
- package/src/components/NotificationUserCard/index.ts +6 -0
- package/src/components/NotificationUserCard/types.ts +43 -0
- package/src/components/QRCodeCard/QRCodeCard.stories.tsx +26 -0
- package/src/components/QRCodeCard/QRCodeCard.tsx +54 -0
- package/src/components/QRCodeCard/__tests__/QRCodeCard.test.tsx +31 -0
- package/src/components/QRCodeCard/index.ts +6 -0
- package/src/components/QRCodeCard/types.ts +22 -0
- package/src/components/RoundedPill/RoundedPill.stories.tsx +21 -0
- package/src/components/RoundedPill/RoundedPill.tsx +137 -0
- package/src/components/RoundedPill/index.ts +5 -0
- package/src/components/RoundedSquare/RoundedSquare.stories.tsx +28 -0
- package/src/components/RoundedSquare/RoundedSquare.tsx +69 -0
- package/src/components/RoundedSquare/__tests__/RoundedSquare.test.tsx +35 -0
- package/src/components/RoundedSquare/constants.ts +63 -0
- package/src/components/RoundedSquare/index.ts +6 -0
- package/src/components/RoundedSquare/roudnedquarenew +0 -0
- package/src/components/SchoolIdCard/SchoolIDCard.stories.tsx +30 -0
- package/src/components/SchoolIdCard/SchoolIDCard.tsx +81 -0
- package/src/components/SchoolIdCard/index.ts +6 -0
- package/src/components/SchoolIdCard/types.ts +42 -0
- package/src/components/SkillTabCard/SkillTabCard.stories.tsx +25 -0
- package/src/components/SkillTabCard/SkillTabCard.tsx +44 -0
- package/src/components/SkillTabCard/index.ts +5 -0
- package/src/components/SkillVerticalCard/SkillVerticalCard.stories.tsx +20 -0
- package/src/components/SkillVerticalCard/SkillVerticalCard.tsx +32 -0
- package/src/components/SkillVerticalCard/index.ts +5 -0
- package/src/components/SkillsCard/SkillsCard.stories.tsx +24 -0
- package/src/components/SkillsCard/SkillsCard.tsx +68 -0
- package/src/components/SkillsCard/index.ts +5 -0
- package/src/components/SkillsStatsCard/SkillsStatsCard.stories.tsx +63 -0
- package/src/components/SkillsStatsCard/SkillsStatsCard.tsx +92 -0
- package/src/components/SkillsStatsCard/index.ts +5 -0
- package/src/components/SmallAchievementCard/SmallAchievementCard.stories.tsx +23 -0
- package/src/components/SmallAchievementCard/SmallAchievementCard.tsx +50 -0
- package/src/components/SmallAchievementCard/index.ts +5 -0
- package/src/components/UserProfilePicture/UserProfilePicture.test.tsx +44 -0
- package/src/components/UserProfilePicture/UserProfilePicture.tsx +119 -0
- package/src/components/UserProfilePicture/index.ts +5 -0
- package/src/components/VCCard/VCCard.stories.tsx +64 -0
- package/src/components/VCCard/VCCard.tsx +84 -0
- package/src/components/VCCard/index.ts +5 -0
- package/src/components/VCDisplayBackFace/VCDisplayBackFace.tsx +112 -0
- package/src/components/VCDisplayBackFace/index.ts +5 -0
- package/src/components/VCDisplayCard/VCDisplayCard.stories.tsx +167 -0
- package/src/components/VCDisplayCard/VCDisplayCard.tsx +98 -0
- package/src/components/VCDisplayCard/index.ts +5 -0
- package/src/components/VCDisplayCard2/FitText.tsx +85 -0
- package/src/components/VCDisplayCard2/InfoBox.tsx +30 -0
- package/src/components/VCDisplayCard2/IssueHistoryBox.tsx +50 -0
- package/src/components/VCDisplayCard2/MediaAttachmentsBox.tsx +306 -0
- package/src/components/VCDisplayCard2/RibbonEnd.tsx +67 -0
- package/src/components/VCDisplayCard2/SelectedSkills.tsx +70 -0
- package/src/components/VCDisplayCard2/SkillsBox.tsx +53 -0
- package/src/components/VCDisplayCard2/Subskill.tsx +50 -0
- package/src/components/VCDisplayCard2/TopLevelSkill.tsx +63 -0
- package/src/components/VCDisplayCard2/TruncateTextBox.tsx +89 -0
- package/src/components/VCDisplayCard2/VC2BackFace.tsx +185 -0
- package/src/components/VCDisplayCard2/VC2FrontFaceInfo.tsx +279 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2.stories.tsx +191 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2.tsx +526 -0
- package/src/components/VCDisplayCard2/VCDisplayCard2AvatarFallbacks.stories.tsx +312 -0
- package/src/components/VCDisplayCard2/VCDisplayCardCategoryType.tsx +19 -0
- package/src/components/VCDisplayCard2/VCDisplayCardSkillsCount.tsx +46 -0
- package/src/components/VCDisplayCard2/VCIDDIsplayCard.tsx +159 -0
- package/src/components/VCDisplayCard2/VCIDDisplayFrontFace.tsx +213 -0
- package/src/components/VCDisplayCard2/VerificationRow.tsx +69 -0
- package/src/components/VCDisplayCard2/VerificationsBox.tsx +44 -0
- package/src/components/VCDisplayCard2/__tests__/VC2FrontFaceInfo.test.tsx +134 -0
- package/src/components/VCDisplayCard2/index.ts +23 -0
- package/src/components/VCDisplayFrontFace/VCDisplayFrontFace.tsx +143 -0
- package/src/components/VCDisplayFrontFace/index.ts +5 -0
- package/src/components/VCThumbnail/VCThumbnail.stories.tsx +32 -0
- package/src/components/VCThumbnail/VCThumbnail.tsx +182 -0
- package/src/components/VCThumbnail/__tests__/VCThumbnail.test.tsx +114 -0
- package/src/components/VCThumbnail/index.ts +6 -0
- package/src/components/VCThumbnail/types.ts +46 -0
- package/src/components/VCVerificationCheck/VCVerificationCheck.tsx +89 -0
- package/src/components/VCVerificationCheck/index.ts +5 -0
- package/src/components/VCVerificationPill/VCVerificationPill.tsx +85 -0
- package/src/components/VCVerificationPill/index.ts +5 -0
- package/src/components/index.ts +48 -0
- package/src/components/svgs/AccommodationsIcon.tsx +38 -0
- package/src/components/svgs/AccomplishmentsIcon.tsx +34 -0
- package/src/components/svgs/AchievementWithTitle.tsx +137 -0
- package/src/components/svgs/AcuteCheckmark.tsx +25 -0
- package/src/components/svgs/AwardDisplayIcon.tsx +37 -0
- package/src/components/svgs/AwardRibbon.tsx +29 -0
- package/src/components/svgs/BadgeDisplayIcon.tsx +31 -0
- package/src/components/svgs/Briefcase.tsx +48 -0
- package/src/components/svgs/Camera.tsx +25 -0
- package/src/components/svgs/CertificateDisplayIcon.tsx +56 -0
- package/src/components/svgs/Checkmark.tsx +59 -0
- package/src/components/svgs/CircleWithText.tsx +36 -0
- package/src/components/svgs/Coins.tsx +14 -0
- package/src/components/svgs/CourseDisplayIcon.tsx +43 -0
- package/src/components/svgs/DownRightArrow.tsx +29 -0
- package/src/components/svgs/ExclamationPoint.tsx +25 -0
- package/src/components/svgs/ExperienceIcon.tsx +34 -0
- package/src/components/svgs/FatArrow.tsx +44 -0
- package/src/components/svgs/GenericArrow.tsx +29 -0
- package/src/components/svgs/GenericDocumentIcon.tsx +26 -0
- package/src/components/svgs/Graduation.tsx +24 -0
- package/src/components/svgs/IDDisplayIcon.tsx +63 -0
- package/src/components/svgs/IDIcon.tsx +59 -0
- package/src/components/svgs/IDSleeve.tsx +21 -0
- package/src/components/svgs/InfoIcon.tsx +26 -0
- package/src/components/svgs/IssuerSeal.tsx +26 -0
- package/src/components/svgs/KeyIcon.tsx +31 -0
- package/src/components/svgs/LeftArrow.tsx +27 -0
- package/src/components/svgs/Lightbulb.tsx +14 -0
- package/src/components/svgs/Line.tsx +22 -0
- package/src/components/svgs/LinkIcon.tsx +35 -0
- package/src/components/svgs/PdfIcon.tsx +38 -0
- package/src/components/svgs/PersonBadge.tsx +55 -0
- package/src/components/svgs/PuzzlePiece.tsx +89 -0
- package/src/components/svgs/QRCodeIcon.tsx +21 -0
- package/src/components/svgs/RedFlag.tsx +41 -0
- package/src/components/svgs/RoundedCorner.tsx +28 -0
- package/src/components/svgs/RoundedX.tsx +35 -0
- package/src/components/svgs/ScoutsLogo.tsx +41 -0
- package/src/components/svgs/ScoutsPledge.tsx +33 -0
- package/src/components/svgs/ShieldChevron.tsx +24 -0
- package/src/components/svgs/Smiley.tsx +43 -0
- package/src/components/svgs/SocialBadgesIcon.tsx +43 -0
- package/src/components/svgs/ThreeDotVertical.tsx +41 -0
- package/src/components/svgs/Trophy.tsx +25 -0
- package/src/components/svgs/UnknownVerifierBadge.tsx +25 -0
- package/src/components/svgs/User.tsx +34 -0
- package/src/components/svgs/VerifiedBadge.tsx +37 -0
- package/src/components/svgs/VideoIcon.tsx +28 -0
- package/src/components/svgs/X.tsx +35 -0
- package/src/components/svgs/index.ts +54 -0
- package/src/constants/icons.ts +87 -0
- package/src/constants/index.ts +109 -0
- package/src/constants/notifications.ts +14 -0
- package/src/constants/skills.ts +2202 -0
- package/src/declaration.d.ts +21 -0
- package/src/helpers/__tests__/credentialFormat.helpers.test.ts +100 -0
- package/src/helpers/color.helpers.ts +35 -0
- package/src/helpers/credential.helpers.test.ts +108 -0
- package/src/helpers/credential.helpers.tsx +249 -0
- package/src/helpers/credentialFormat.helpers.ts +68 -0
- package/src/helpers/did-display.helpers.ts +230 -0
- package/src/helpers/display.helpers.ts +53 -0
- package/src/helpers/string.helpers.ts +7 -0
- package/src/helpers/test.helpers.ts +680 -0
- package/src/helpers/url.helpers.ts +3 -0
- package/src/helpers/useHorizontalPages.ts +130 -0
- package/src/helpers/useOnMomentumScrollEnd.ts +28 -0
- package/src/helpers/useScrollBorders.ts +59 -0
- package/src/helpers/video.helpers.ts +125 -0
- package/src/hooks/useCredentialFormat.tsx +23 -0
- package/src/hooks/useParsedSdJwtVc.tsx +64 -0
- package/src/index.ts +16 -0
- package/src/types/index.ts +390 -0
- package/LICENSE +0 -21
- package/dist/cjs/SchoolIDCard-e22d0d80.js.map +0 -1
- package/dist/cjs/VCDisplayCard2-6c87eade.js.map +0 -1
- package/dist/cjs/VerifierStateBadgeAndText-5229da1a.js.map +0 -1
- package/dist/cjs/credential.helpers-473e89c5.js.map +0 -1
- package/dist/cjs/index-0cac2c5b.js.map +0 -1
- package/dist/cjs/types.esm-12bb5eed.js.map +0 -1
- package/dist/esm/SchoolIDCard-8b151cd3.js.map +0 -1
- package/dist/esm/VCDisplayCard2-c6a81e42.js.map +0 -1
- package/dist/esm/VerifierStateBadgeAndText-6946e820.js.map +0 -1
- package/dist/esm/credential.helpers-ff461699.js.map +0 -1
- package/dist/esm/index-2ef835bd.js.map +0 -1
- package/dist/esm/index-eae3ca64.js.map +0 -1
- package/dist/esm/types.esm-f32fc00a.js.map +0 -1
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import prettyBytes from 'pretty-bytes';
|
|
3
|
+
|
|
4
|
+
import Camera from '../svgs/Camera';
|
|
5
|
+
import LinkIcon from '../svgs/LinkIcon';
|
|
6
|
+
import VideoIcon from '../svgs/VideoIcon';
|
|
7
|
+
import GenericDocumentIcon from '../svgs/GenericDocumentIcon';
|
|
8
|
+
|
|
9
|
+
import { Attachment, MediaMetadata, VideoMetadata } from '../../types';
|
|
10
|
+
import { getBaseUrl } from '../../helpers/url.helpers';
|
|
11
|
+
import { Lightbox, LightboxItem } from '../Lightbox';
|
|
12
|
+
|
|
13
|
+
type MediaAttachmentsBoxProps = {
|
|
14
|
+
attachments: Attachment[];
|
|
15
|
+
getFileMetadata?: (url: string) => MediaMetadata;
|
|
16
|
+
getVideoMetadata?: (url: string) => VideoMetadata;
|
|
17
|
+
onMediaAttachmentClick?: (url: string, type: 'photo' | 'document' | 'video' | 'link') => void;
|
|
18
|
+
enableLightbox?: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const defaultGetFileMetadata = async (url: string) => {
|
|
22
|
+
console.log({ url });
|
|
23
|
+
const isFilestack = url.includes('filestack');
|
|
24
|
+
if (!isFilestack) return;
|
|
25
|
+
|
|
26
|
+
const urlParams = url.split('.com/')[1]?.split('/');
|
|
27
|
+
if (!urlParams) return;
|
|
28
|
+
const handle = urlParams[urlParams.length - 1];
|
|
29
|
+
|
|
30
|
+
let fetchFailed = false;
|
|
31
|
+
const data = await fetch(`https://cdn.filestackcontent.com/${handle}/metadata`)
|
|
32
|
+
.then(res => res.json())
|
|
33
|
+
.catch(() => (fetchFailed = true));
|
|
34
|
+
|
|
35
|
+
if (fetchFailed) return;
|
|
36
|
+
|
|
37
|
+
const fileExtension = data.filename.split('.')[1];
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
fileExtension,
|
|
41
|
+
sizeInBytes: data.size,
|
|
42
|
+
numberOfPages: undefined,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Function to determine if the URL is from YouTube
|
|
47
|
+
const isYoutubeUrl = (url: string) => {
|
|
48
|
+
const youtubeUrl = new URL(url);
|
|
49
|
+
return youtubeUrl.hostname === 'www.youtube.com';
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Function to get the YouTube video ID from the URL
|
|
53
|
+
const getYoutubeVideoId = (url: string) => {
|
|
54
|
+
const regex = /(?:\?v=|\.com\/embed\/)([^&]+)/;
|
|
55
|
+
const match = url.match(regex);
|
|
56
|
+
return match ? match[1] : '';
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// Function to get the cover image URL for YouTube videos
|
|
60
|
+
const getCoverImageUrl = (youtubeWatchUrl: string) => {
|
|
61
|
+
if (!isYoutubeUrl(youtubeWatchUrl)) {
|
|
62
|
+
return ''; // Return an empty string if the URL is not a YouTube URL
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const videoId = getYoutubeVideoId(youtubeWatchUrl);
|
|
66
|
+
// Construct and return the URL for the video's cover image
|
|
67
|
+
// This URL fetches the highest resolution image available
|
|
68
|
+
return videoId ? `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg` : '';
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const defaultGetVideoMetadata = async (url: string) => {
|
|
72
|
+
const isYoutube = isYoutubeUrl(url);
|
|
73
|
+
if (!isYoutube) return;
|
|
74
|
+
|
|
75
|
+
const metadataUrl = `http://youtube.com/oembed?url=${url}&format=json`;
|
|
76
|
+
|
|
77
|
+
let fetchFailed = false;
|
|
78
|
+
const metadata = await fetch(metadataUrl)
|
|
79
|
+
.then(res => res.json())
|
|
80
|
+
.catch(() => (fetchFailed = true));
|
|
81
|
+
|
|
82
|
+
const coverImageUrl = getCoverImageUrl(url);
|
|
83
|
+
|
|
84
|
+
if (fetchFailed) return { imageUrl: coverImageUrl };
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
title: metadata.title,
|
|
88
|
+
imageUrl: coverImageUrl,
|
|
89
|
+
videoLength: '', // TODO figure out how to get this
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const MediaAttachmentsBox: React.FC<MediaAttachmentsBoxProps> = ({
|
|
94
|
+
attachments,
|
|
95
|
+
getFileMetadata = defaultGetFileMetadata,
|
|
96
|
+
getVideoMetadata = defaultGetVideoMetadata,
|
|
97
|
+
onMediaAttachmentClick,
|
|
98
|
+
enableLightbox = false,
|
|
99
|
+
}) => {
|
|
100
|
+
const [documentMetadata, setDocumentMetadata] = useState<{
|
|
101
|
+
[documentUrl: string]: MediaMetadata | undefined;
|
|
102
|
+
}>({});
|
|
103
|
+
const [videoMetadata, setVideoMetadata] = useState<{
|
|
104
|
+
[videoUrl: string]: VideoMetadata | undefined;
|
|
105
|
+
}>({});
|
|
106
|
+
|
|
107
|
+
const mediaAttachments: Attachment[] = [];
|
|
108
|
+
const documentsAndLinks: Attachment[] = [];
|
|
109
|
+
attachments.forEach(a => {
|
|
110
|
+
switch (a.type) {
|
|
111
|
+
case 'document':
|
|
112
|
+
case 'link':
|
|
113
|
+
documentsAndLinks.push(a);
|
|
114
|
+
break;
|
|
115
|
+
case 'photo':
|
|
116
|
+
case 'video':
|
|
117
|
+
mediaAttachments.push(a);
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
const getMetadata = async (attachments: Attachment[]): Promise<any> => {
|
|
126
|
+
const docMetadata: { [docUrl: string]: MediaMetadata | undefined } = {};
|
|
127
|
+
const videoMetadata: { [videoUrl: string]: VideoMetadata | undefined } = {};
|
|
128
|
+
await Promise.all(
|
|
129
|
+
attachments.map(async attachment => {
|
|
130
|
+
if (attachment.type === 'document') {
|
|
131
|
+
docMetadata[attachment.url] = await getFileMetadata(attachment.url);
|
|
132
|
+
} else if (attachment.type === 'video') {
|
|
133
|
+
videoMetadata[attachment.url] = await getVideoMetadata(attachment.url);
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
setVideoMetadata(videoMetadata);
|
|
139
|
+
setDocumentMetadata(docMetadata);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
const videos = attachments.filter(a => a.type === 'video');
|
|
143
|
+
getMetadata([...documentsAndLinks, ...videos]);
|
|
144
|
+
}, []);
|
|
145
|
+
|
|
146
|
+
const [currentLightboxUrl, setCurrentLightboxUrl] = useState<string | undefined>(undefined);
|
|
147
|
+
const lightboxItems = mediaAttachments.filter(
|
|
148
|
+
a => a.type === 'photo' || a.type === 'video'
|
|
149
|
+
) as LightboxItem[];
|
|
150
|
+
const handleMediaAttachmentClick = (
|
|
151
|
+
url: string,
|
|
152
|
+
type: 'photo' | 'document' | 'video' | 'link'
|
|
153
|
+
) => {
|
|
154
|
+
if (type === 'photo' || type === 'video') {
|
|
155
|
+
setCurrentLightboxUrl(url);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
onMediaAttachmentClick?.(url, type);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
return (
|
|
162
|
+
<div className="bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom px-[15px] py-[20px] w-full">
|
|
163
|
+
<h3 className="text-[17px] text-grayscale-900 font-poppins">Attachments</h3>
|
|
164
|
+
{mediaAttachments.length > 0 && (
|
|
165
|
+
<div className="flex gap-[5px] justify-between flex-wrap w-full">
|
|
166
|
+
{enableLightbox && (
|
|
167
|
+
<Lightbox
|
|
168
|
+
items={lightboxItems}
|
|
169
|
+
currentUrl={currentLightboxUrl}
|
|
170
|
+
setCurrentUrl={setCurrentLightboxUrl}
|
|
171
|
+
/>
|
|
172
|
+
)}
|
|
173
|
+
{mediaAttachments.map((media, index) => {
|
|
174
|
+
let innerContent: React.ReactNode;
|
|
175
|
+
let title = media.title;
|
|
176
|
+
|
|
177
|
+
if (media.type === 'video') {
|
|
178
|
+
const metadata = videoMetadata[media.url];
|
|
179
|
+
title = (title || metadata?.title) ?? '';
|
|
180
|
+
const baseUrl = getBaseUrl(media.url);
|
|
181
|
+
|
|
182
|
+
innerContent = (
|
|
183
|
+
<div
|
|
184
|
+
className="bg-cover bg-no-repeat bg-center relative font-poppins text-white text-[12px] font-[400] leading-[17px] flex flex-col justify-end items-start p-[10px] text-left bg-rose-600 rounded-[15px] h-full"
|
|
185
|
+
style={{
|
|
186
|
+
backgroundImage: metadata?.imageUrl
|
|
187
|
+
? `linear-gradient(180deg, rgba(0, 0, 0, 0) 44.20%, rgba(0, 0, 0, 0.6) 69%), url(${
|
|
188
|
+
metadata?.imageUrl ?? ''
|
|
189
|
+
})`
|
|
190
|
+
: undefined,
|
|
191
|
+
}}
|
|
192
|
+
>
|
|
193
|
+
{!metadata?.imageUrl && (
|
|
194
|
+
<VideoIcon size="60" className="m-auto" />
|
|
195
|
+
)}
|
|
196
|
+
<div className="absolute bottom-[10px] left-[10px] z-10 flex items-center gap-[5px]">
|
|
197
|
+
{metadata?.imageUrl && <VideoIcon />}
|
|
198
|
+
{metadata?.videoLength && (
|
|
199
|
+
<span className="leading-[23px]">
|
|
200
|
+
{metadata.videoLength}
|
|
201
|
+
</span>
|
|
202
|
+
)}
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
);
|
|
206
|
+
} else {
|
|
207
|
+
innerContent = (
|
|
208
|
+
<div className="h-full w-full flex items-center justify-center">
|
|
209
|
+
<img className="object-cover h-full w-full" src={media.url} />
|
|
210
|
+
<Camera className="absolute bottom-[10px] left-[10px] z-10" />
|
|
211
|
+
</div>
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const className = `media-attachment ${media.type} w-[49%] pt-[49%] overflow-hidden relative`;
|
|
216
|
+
|
|
217
|
+
if (onMediaAttachmentClick || enableLightbox) {
|
|
218
|
+
return (
|
|
219
|
+
<div
|
|
220
|
+
key={index}
|
|
221
|
+
className="flex bg-grayscale-100 items-center rounded-[15px] w-full"
|
|
222
|
+
>
|
|
223
|
+
<button
|
|
224
|
+
className="relative h-[80px] w-[80px] rounded-[15px] overflow-hidden flex-shrink-0"
|
|
225
|
+
onClick={e => {
|
|
226
|
+
e.stopPropagation();
|
|
227
|
+
handleMediaAttachmentClick(media.url, media.type);
|
|
228
|
+
}}
|
|
229
|
+
>
|
|
230
|
+
{innerContent}
|
|
231
|
+
</button>
|
|
232
|
+
{title && (
|
|
233
|
+
<div className="text-[12px] text-grayscale-900 font-poppins px-[10px] line-clamp-3">
|
|
234
|
+
{title}
|
|
235
|
+
</div>
|
|
236
|
+
)}
|
|
237
|
+
</div>
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return (
|
|
242
|
+
<div key={index} className={className}>
|
|
243
|
+
{innerContent}
|
|
244
|
+
</div>
|
|
245
|
+
);
|
|
246
|
+
})}
|
|
247
|
+
</div>
|
|
248
|
+
)}
|
|
249
|
+
{documentsAndLinks.length > 0 && (
|
|
250
|
+
<div className="w-full flex flex-col gap-[5px]">
|
|
251
|
+
{documentsAndLinks.map((docOrLink, index) => {
|
|
252
|
+
const metadata =
|
|
253
|
+
docOrLink.type === 'document'
|
|
254
|
+
? documentMetadata[docOrLink.url]
|
|
255
|
+
: undefined;
|
|
256
|
+
const { fileExtension, sizeInBytes, numberOfPages } = metadata ?? {};
|
|
257
|
+
|
|
258
|
+
let baseUrl = '';
|
|
259
|
+
if (docOrLink.type === 'link') {
|
|
260
|
+
baseUrl = getBaseUrl(docOrLink.url);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
const innerContent = (
|
|
264
|
+
<div className="flex flex-col gap-[5px]">
|
|
265
|
+
<div className="flex gap-[5px] items-center">
|
|
266
|
+
{docOrLink.type === 'document' && (
|
|
267
|
+
<GenericDocumentIcon className="shrink-0" />
|
|
268
|
+
)}
|
|
269
|
+
{docOrLink.type === 'link' && <LinkIcon className="shrink-0" />}
|
|
270
|
+
<div className="flex flex-col w-full min-w-0">
|
|
271
|
+
<span className="text-grayscale-900 font-[400]">
|
|
272
|
+
{docOrLink.title ?? 'No title'}
|
|
273
|
+
</span>
|
|
274
|
+
{docOrLink.type === 'document' && metadata && (
|
|
275
|
+
<a
|
|
276
|
+
href={docOrLink.url}
|
|
277
|
+
target="_blank"
|
|
278
|
+
rel="noreferrer"
|
|
279
|
+
className="text-grayscale-700 font-[500] text-[12px] font-poppins hover:underline"
|
|
280
|
+
onClick={e => e.stopPropagation()}
|
|
281
|
+
>
|
|
282
|
+
{fileExtension && (
|
|
283
|
+
<span className="uppercase">
|
|
284
|
+
{fileExtension}
|
|
285
|
+
</span>
|
|
286
|
+
)}
|
|
287
|
+
{fileExtension &&
|
|
288
|
+
(numberOfPages || sizeInBytes) &&
|
|
289
|
+
' • '}
|
|
290
|
+
{numberOfPages && (
|
|
291
|
+
<span>
|
|
292
|
+
{numberOfPages} page
|
|
293
|
+
{numberOfPages === 1 ? '' : 's'}
|
|
294
|
+
</span>
|
|
295
|
+
)}
|
|
296
|
+
{numberOfPages && sizeInBytes && ' • '}
|
|
297
|
+
{sizeInBytes && (
|
|
298
|
+
<span>{prettyBytes(sizeInBytes)}</span>
|
|
299
|
+
)}
|
|
300
|
+
</a>
|
|
301
|
+
)}
|
|
302
|
+
{docOrLink.type === 'link' && (
|
|
303
|
+
<a
|
|
304
|
+
href={docOrLink.url}
|
|
305
|
+
target="_blank"
|
|
306
|
+
rel="noreferrer"
|
|
307
|
+
className="text-indigo-500 font-[500] text-[12px] font-poppins hover:underline"
|
|
308
|
+
onClick={e => e.stopPropagation()}
|
|
309
|
+
>
|
|
310
|
+
{baseUrl}
|
|
311
|
+
</a>
|
|
312
|
+
)}
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
</div>
|
|
316
|
+
);
|
|
317
|
+
|
|
318
|
+
const className = `row-attachment ${docOrLink.type} bg-grayscale-100 rounded-[15px] p-[10px] w-full font-poppins text-[12px] leading-[18px] tracking-[-0.33px] text-left`;
|
|
319
|
+
|
|
320
|
+
if (onMediaAttachmentClick) {
|
|
321
|
+
return (
|
|
322
|
+
<button
|
|
323
|
+
key={index}
|
|
324
|
+
className={className}
|
|
325
|
+
onClick={e => {
|
|
326
|
+
e.stopPropagation();
|
|
327
|
+
handleMediaAttachmentClick(docOrLink.url, docOrLink.type);
|
|
328
|
+
}}
|
|
329
|
+
>
|
|
330
|
+
{innerContent}
|
|
331
|
+
</button>
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
return (
|
|
336
|
+
<div key={index} className={className}>
|
|
337
|
+
{innerContent}
|
|
338
|
+
</div>
|
|
339
|
+
);
|
|
340
|
+
})}
|
|
341
|
+
</div>
|
|
342
|
+
)}
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
export default MediaAttachmentsBox;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
type TruncateTextBoxProps = {
|
|
4
|
+
headerText: string;
|
|
5
|
+
headerClassName?: string;
|
|
6
|
+
|
|
7
|
+
// the text to be truncated if it's too long
|
|
8
|
+
text: string;
|
|
9
|
+
|
|
10
|
+
truncateThreshold?: number;
|
|
11
|
+
|
|
12
|
+
// extra things to put at the bottom of the box
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const TruncateTextBox: React.FC<TruncateTextBoxProps> = ({
|
|
18
|
+
headerText,
|
|
19
|
+
headerClassName = '',
|
|
20
|
+
text,
|
|
21
|
+
truncateThreshold = 132,
|
|
22
|
+
children,
|
|
23
|
+
className = 'truncate-text-box',
|
|
24
|
+
}) => {
|
|
25
|
+
const needsTruncate = text?.length > truncateThreshold;
|
|
26
|
+
const [showFullText, setShowFullText] = useState(false);
|
|
27
|
+
const truncated = needsTruncate && !showFullText;
|
|
28
|
+
|
|
29
|
+
const displayText = truncated ? text.substring(0, truncateThreshold) : text;
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
className={`${className} w-full bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom p-[15px]`}
|
|
34
|
+
>
|
|
35
|
+
<h3 className={`${headerClassName} text-[17px] text-grayscale-900 font-poppins`}>
|
|
36
|
+
{headerText}
|
|
37
|
+
</h3>
|
|
38
|
+
|
|
39
|
+
<p className="text-[12px] text-grayscale-700 font-poppins mb-0 flex flex-col items-start">
|
|
40
|
+
{displayText}
|
|
41
|
+
{truncated && (
|
|
42
|
+
<>
|
|
43
|
+
...
|
|
44
|
+
<button
|
|
45
|
+
className="text-indigo-500 text-[12px]"
|
|
46
|
+
onClick={e => {
|
|
47
|
+
e.stopPropagation();
|
|
48
|
+
setShowFullText(true);
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
Show more
|
|
52
|
+
</button>
|
|
53
|
+
</>
|
|
54
|
+
)}
|
|
55
|
+
{needsTruncate && showFullText && (
|
|
56
|
+
<button
|
|
57
|
+
className="text-indigo-500 text-[12px]"
|
|
58
|
+
onClick={e => {
|
|
59
|
+
e.stopPropagation();
|
|
60
|
+
setShowFullText(false);
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
Show less
|
|
64
|
+
</button>
|
|
65
|
+
)}
|
|
66
|
+
</p>
|
|
67
|
+
|
|
68
|
+
{children}
|
|
69
|
+
</div>
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export default TruncateTextBox;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { VerificationItem, VerificationStatusEnum } from '@learncard/types';
|
|
3
|
+
import { getColorForVerificationStatus } from '../../helpers/credential.helpers';
|
|
4
|
+
|
|
5
|
+
import InfoBox from './InfoBox';
|
|
6
|
+
import InfoIcon from '../svgs/InfoIcon';
|
|
7
|
+
import AcuteCheckmark from '../svgs/AcuteCheckmark';
|
|
8
|
+
import ExclamationPoint from '../svgs/ExclamationPoint';
|
|
9
|
+
import X from '../svgs/X';
|
|
10
|
+
import { capitalize } from '../../helpers/string.helpers';
|
|
11
|
+
|
|
12
|
+
type VerificationRowProps = {
|
|
13
|
+
verification: VerificationItem;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const VerificationRow: React.FC<VerificationRowProps> = ({ verification }) => {
|
|
17
|
+
const [showInfo, setShowInfo] = useState(false);
|
|
18
|
+
const statusColor = getColorForVerificationStatus(verification.status);
|
|
19
|
+
|
|
20
|
+
const getIcon = () => {
|
|
21
|
+
switch (verification.status) {
|
|
22
|
+
case VerificationStatusEnum.Success:
|
|
23
|
+
return <AcuteCheckmark />;
|
|
24
|
+
case VerificationStatusEnum.Error:
|
|
25
|
+
return <ExclamationPoint />;
|
|
26
|
+
case VerificationStatusEnum.Failed:
|
|
27
|
+
return <X className="w-[15px] h-[15px]" />;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
let primaryText = verification.check
|
|
32
|
+
? `${verification.check}: ${verification.message}`
|
|
33
|
+
: verification.message;
|
|
34
|
+
if (verification.status === VerificationStatusEnum.Failed) {
|
|
35
|
+
primaryText = verification.message ?? verification.details ?? '';
|
|
36
|
+
}
|
|
37
|
+
primaryText = capitalize(primaryText);
|
|
38
|
+
|
|
39
|
+
const infoText = ''; // if we want certain verifications to have extra explanation, we can set this variable
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div className="verification-row flex flex-col gap-[5px] font-poppins border-b-[1px] border-grayscale-200 border-solid w-full py-[10px] last:border-0 last:pb-0">
|
|
43
|
+
<span
|
|
44
|
+
className="font-[700] text-[11px] uppercase flex items-center gap-[3px] select-none"
|
|
45
|
+
style={{ color: statusColor }}
|
|
46
|
+
>
|
|
47
|
+
{getIcon()}
|
|
48
|
+
{verification.status}
|
|
49
|
+
{infoText && (
|
|
50
|
+
<button className="ml-auto" onClick={() => setShowInfo(!showInfo)}>
|
|
51
|
+
<InfoIcon color={statusColor} />
|
|
52
|
+
</button>
|
|
53
|
+
)}
|
|
54
|
+
</span>
|
|
55
|
+
{showInfo && infoText && (
|
|
56
|
+
<InfoBox
|
|
57
|
+
text={infoText}
|
|
58
|
+
handleClose={() => setShowInfo(false)}
|
|
59
|
+
backgroundColor={statusColor}
|
|
60
|
+
/>
|
|
61
|
+
)}
|
|
62
|
+
<span className="text-[14px] text-grayscale-900 font-poppins">{primaryText}</span>
|
|
63
|
+
</div>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export default VerificationRow;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
import VerificationRow from './VerificationRow';
|
|
4
|
+
import InfoIcon from '../svgs/InfoIcon';
|
|
5
|
+
import InfoBox from './InfoBox';
|
|
6
|
+
|
|
7
|
+
import { VerificationItem } from '@learncard/types';
|
|
8
|
+
|
|
9
|
+
type VerificationsBoxProps = {
|
|
10
|
+
verificationItems: VerificationItem[];
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const VerificationsBox: React.FC<VerificationsBoxProps> = ({ verificationItems }) => {
|
|
14
|
+
const [showInfo, setShowInfo] = useState(false);
|
|
15
|
+
|
|
16
|
+
return (
|
|
17
|
+
<div className="bg-white flex flex-col items-start gap-[10px] rounded-[20px] shadow-bottom p-[15px] w-full">
|
|
18
|
+
<div className="flex w-full items-center">
|
|
19
|
+
<h3 className="text-[17px] text-grayscale-900 font-poppins">Verifications</h3>
|
|
20
|
+
<button
|
|
21
|
+
className="ml-auto"
|
|
22
|
+
onClick={e => {
|
|
23
|
+
e.stopPropagation();
|
|
24
|
+
setShowInfo(!showInfo);
|
|
25
|
+
}}
|
|
26
|
+
>
|
|
27
|
+
<InfoIcon color={showInfo ? '#6366F1' : undefined} />
|
|
28
|
+
</button>
|
|
29
|
+
</div>
|
|
30
|
+
{showInfo && (
|
|
31
|
+
<InfoBox
|
|
32
|
+
text="Credential verifications check the cryptographic proof of digital credentials to ensure their authenticity and accuracy."
|
|
33
|
+
handleClose={() => setShowInfo(false)}
|
|
34
|
+
/>
|
|
35
|
+
)}
|
|
36
|
+
|
|
37
|
+
{verificationItems.map((verification, index) => (
|
|
38
|
+
<VerificationRow key={index} verification={verification} />
|
|
39
|
+
))}
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default VerificationsBox;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import UnknownVerifierBadge from '../svgs/UnknownVerifierBadge';
|
|
3
|
+
import VerifiedBadge from '../svgs/VerifiedBadge';
|
|
4
|
+
import PersonBadge from '../svgs/PersonBadge';
|
|
5
|
+
import RedFlag from '../svgs/RedFlag';
|
|
6
|
+
|
|
7
|
+
export const VERIFIER_STATES = {
|
|
8
|
+
selfVerified: 'Self Issued',
|
|
9
|
+
trustedVerifier: 'Trusted Issuer',
|
|
10
|
+
unknownVerifier: 'Unknown Issuer',
|
|
11
|
+
appIssuer: 'App Issuer',
|
|
12
|
+
untrustedVerifier: 'Untrusted Issuer',
|
|
13
|
+
} as const;
|
|
14
|
+
export type VerifierState = (typeof VERIFIER_STATES)[keyof typeof VERIFIER_STATES];
|
|
15
|
+
|
|
16
|
+
export type VerifierStateBadgeAndTextProps = {
|
|
17
|
+
verifierState: VerifierState;
|
|
18
|
+
className?: string;
|
|
19
|
+
unknownVerifierTitle?: string;
|
|
20
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const VerifierStateBadgeAndText = forwardRef<HTMLButtonElement, VerifierStateBadgeAndTextProps>(
|
|
24
|
+
({ verifierState, className = '', unknownVerifierTitle, onClick }, ref) => {
|
|
25
|
+
// For Scouts: if we have a role-based title, show it with trusted styling
|
|
26
|
+
// BUT don't overwrite self-issued or untrusted status
|
|
27
|
+
const effectiveState =
|
|
28
|
+
unknownVerifierTitle &&
|
|
29
|
+
verifierState !== VERIFIER_STATES.selfVerified &&
|
|
30
|
+
verifierState !== VERIFIER_STATES.untrustedVerifier &&
|
|
31
|
+
verifierState !== VERIFIER_STATES.appIssuer
|
|
32
|
+
? VERIFIER_STATES.trustedVerifier
|
|
33
|
+
: verifierState;
|
|
34
|
+
|
|
35
|
+
const content = (
|
|
36
|
+
<>
|
|
37
|
+
{effectiveState === VERIFIER_STATES.selfVerified && (
|
|
38
|
+
<div className="flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-dark">
|
|
39
|
+
<PersonBadge />
|
|
40
|
+
<span className="whitespace-nowrap">Self Issued</span>
|
|
41
|
+
</div>
|
|
42
|
+
)}
|
|
43
|
+
{effectiveState === VERIFIER_STATES.trustedVerifier && (
|
|
44
|
+
<div className="flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-green-600">
|
|
45
|
+
<VerifiedBadge />
|
|
46
|
+
<span className="whitespace-nowrap">
|
|
47
|
+
{unknownVerifierTitle ?? 'Trusted Issuer'}
|
|
48
|
+
</span>
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
{effectiveState === VERIFIER_STATES.unknownVerifier && (
|
|
52
|
+
<div className="flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-orange-500">
|
|
53
|
+
<UnknownVerifierBadge />
|
|
54
|
+
<span className="whitespace-nowrap">
|
|
55
|
+
{unknownVerifierTitle ?? VERIFIER_STATES.unknownVerifier}
|
|
56
|
+
</span>
|
|
57
|
+
</div>
|
|
58
|
+
)}
|
|
59
|
+
{effectiveState === VERIFIER_STATES.appIssuer && (
|
|
60
|
+
<div className="flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-cyan-600">
|
|
61
|
+
<VerifiedBadge />
|
|
62
|
+
<span className="whitespace-nowrap">App Issuer</span>
|
|
63
|
+
</div>
|
|
64
|
+
)}
|
|
65
|
+
{effectiveState === VERIFIER_STATES.untrustedVerifier && (
|
|
66
|
+
<div className="flex items-center gap-0.5 font-poppins font-[500] text-[12px] leading-tight text-red-mastercard">
|
|
67
|
+
<RedFlag />
|
|
68
|
+
<span className="whitespace-nowrap">Untrusted Issuer</span>
|
|
69
|
+
</div>
|
|
70
|
+
)}
|
|
71
|
+
</>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<div className={`flex justify-center ${className}`}>
|
|
76
|
+
{onClick ? (
|
|
77
|
+
<button
|
|
78
|
+
ref={ref}
|
|
79
|
+
type="button"
|
|
80
|
+
className="appearance-none bg-transparent p-0 text-left"
|
|
81
|
+
onClick={event => {
|
|
82
|
+
event.stopPropagation();
|
|
83
|
+
onClick(event);
|
|
84
|
+
}}
|
|
85
|
+
onMouseDown={event => event.stopPropagation()}
|
|
86
|
+
aria-haspopup="dialog"
|
|
87
|
+
>
|
|
88
|
+
{content}
|
|
89
|
+
</button>
|
|
90
|
+
) : (
|
|
91
|
+
<div>{content}</div>
|
|
92
|
+
)}
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
VerifierStateBadgeAndText.displayName = 'VerifierStateBadgeAndText';
|
|
99
|
+
|
|
100
|
+
export default VerifierStateBadgeAndText;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by barrelsby.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export * from './AlignmentRow';
|
|
6
|
+
export * from './AlignmentsBox';
|
|
7
|
+
export * from './CertDisplayCardSkillsCount';
|
|
8
|
+
export * from './CertificateBackFace';
|
|
9
|
+
export * from './CertificateCornerIcon';
|
|
10
|
+
export * from './CertificateDisplayCard';
|
|
11
|
+
export * from './CertificateFrontFace';
|
|
12
|
+
export * from './CertificateImageDisplay';
|
|
13
|
+
export * from './CertificateProfileImageDisplay';
|
|
14
|
+
export * from './CertificateRibbon';
|
|
15
|
+
export * from './InfoBox';
|
|
16
|
+
export * from './MediaAttachmentsBox';
|
|
17
|
+
export * from './TruncateTextBox';
|
|
18
|
+
export * from './VerificationRow';
|
|
19
|
+
export * from './VerificationsBox';
|
|
20
|
+
export * from './VerifierStateBadgeAndText';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story, Meta } from '@storybook/react';
|
|
3
|
+
import { CircleCheckButtonProps } from '../../types';
|
|
4
|
+
import CircleCheckButton from './CircleCheckButton';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'CircleCheckButton',
|
|
8
|
+
component: CircleCheckButton,
|
|
9
|
+
argTypes: {},
|
|
10
|
+
} as Meta<typeof CircleCheckButton>;
|
|
11
|
+
|
|
12
|
+
const Template: Story<CircleCheckButtonProps> = args => <CircleCheckButton {...args} />;
|
|
13
|
+
|
|
14
|
+
export const CircleCheckButtonTest = Template.bind({});
|
|
15
|
+
CircleCheckButtonTest.args = {
|
|
16
|
+
onClick: () => {
|
|
17
|
+
console.log('Nice');
|
|
18
|
+
},
|
|
19
|
+
className: 'circle-btn-check',
|
|
20
|
+
checked: false,
|
|
21
|
+
};
|