@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,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JobHistoryCardProps } from '../../types';
|
|
3
|
+
import GenericArrow from '../svgs/GenericArrow';
|
|
4
|
+
|
|
5
|
+
export const JobHistoryCard: React.FC<JobHistoryCardProps> = ({
|
|
6
|
+
className,
|
|
7
|
+
title,
|
|
8
|
+
company,
|
|
9
|
+
dateRange,
|
|
10
|
+
jobType,
|
|
11
|
+
showArrow = false,
|
|
12
|
+
onClick,
|
|
13
|
+
}) => {
|
|
14
|
+
const handleClick = () => {
|
|
15
|
+
onClick?.();
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
onClick={handleClick}
|
|
21
|
+
className={`job-history-card flex h-[88px] max-w-[335px] justify-between shadow-[0_0_8px_0px_rgba(0,0,0,0.2)] relative $ py-[10px] px-[15px] rounded-[20px] ${className}`}
|
|
22
|
+
>
|
|
23
|
+
{dateRange && (
|
|
24
|
+
<div className="flex flex-shrink-0 rounded-[20px] bg-emerald-600 pl-[15px] font-bold text-grayscale-50 job-card-date-display w-[108px] h-full items-center">
|
|
25
|
+
<p className="line-clamp-2">{dateRange}</p>
|
|
26
|
+
</div>
|
|
27
|
+
)}
|
|
28
|
+
<div className="flex flex-grow flex-col job-history-details-display pl-[12px]">
|
|
29
|
+
<p className="text-grayscale-900 font-bold line-clamp-1">{title}</p>
|
|
30
|
+
<p className="text-grayscale-600 text-sm line-clamp-1">{company}</p>
|
|
31
|
+
<p className="text-sm text-indigo-700 uppercase font-bold line-clamp-1">
|
|
32
|
+
{jobType}
|
|
33
|
+
</p>
|
|
34
|
+
</div>
|
|
35
|
+
{showArrow && (
|
|
36
|
+
<div className="flex justify-center items-center">
|
|
37
|
+
<GenericArrow />
|
|
38
|
+
</div>
|
|
39
|
+
)}
|
|
40
|
+
</div>
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export default JobHistoryCard;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story, Meta } from '@storybook/react';
|
|
3
|
+
import imgPlaceholder from '../../assets/images/photoplaceholder.png';
|
|
4
|
+
import JobListCard from './JobListCard';
|
|
5
|
+
import { JobListCardProps } from '../../types';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Job List Card',
|
|
9
|
+
component: JobListCard,
|
|
10
|
+
argTypes: {},
|
|
11
|
+
} as Meta<typeof JobListCard>;
|
|
12
|
+
|
|
13
|
+
const dummyQualificationDisplay = {
|
|
14
|
+
skills: {
|
|
15
|
+
fulfilledCount: 4,
|
|
16
|
+
totalRequiredCount: 5,
|
|
17
|
+
},
|
|
18
|
+
achievements: {
|
|
19
|
+
fulfilledCount: 35,
|
|
20
|
+
totalRequiredCount: 40,
|
|
21
|
+
},
|
|
22
|
+
courses: {
|
|
23
|
+
fulfilledCount: 125,
|
|
24
|
+
totalRequiredCount: 230,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const customButtonTest = (
|
|
29
|
+
<button type="button" onClick={() => console.log('custom button clicked')}>
|
|
30
|
+
BUTTON TEST{' '}
|
|
31
|
+
</button>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
const Template: Story<JobListCardProps> = args => <JobListCard {...args} />;
|
|
35
|
+
|
|
36
|
+
export const JobListCardTest = Template.bind({});
|
|
37
|
+
JobListCardTest.args = {
|
|
38
|
+
className: 'job-listing-card',
|
|
39
|
+
company: 'Company Name',
|
|
40
|
+
title: 'Job Listing Title',
|
|
41
|
+
compensation: '$45 per hour',
|
|
42
|
+
location: 'Cashville, TN',
|
|
43
|
+
locationRequirement: 'Partial Remote',
|
|
44
|
+
timeRequirement: 'Full-time',
|
|
45
|
+
qualificationDisplay: dummyQualificationDisplay,
|
|
46
|
+
percentQualifiedDisplay: '97%',
|
|
47
|
+
postDateDisplay: '2 days ago',
|
|
48
|
+
imgThumb: imgPlaceholder,
|
|
49
|
+
isBookmarked: false,
|
|
50
|
+
onBookmark: () => {},
|
|
51
|
+
onClick: () => {
|
|
52
|
+
console.log('clicked');
|
|
53
|
+
},
|
|
54
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JobListCardProps } from '../../types';
|
|
3
|
+
import { TYPE_TO_MINI_ICON } from '../../constants/';
|
|
4
|
+
import { LCSubtypes } from '../../types';
|
|
5
|
+
|
|
6
|
+
const TYPE_TO_COLOR: any = {
|
|
7
|
+
course: 'bg-emerald-50',
|
|
8
|
+
achievement: 'bg-spice-50',
|
|
9
|
+
skill: 'bg-indigo-50',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const TYPE_TO_TEXT_COLOR: any = {
|
|
13
|
+
course: 'text-emerald-700',
|
|
14
|
+
achievement: 'text-spice-500',
|
|
15
|
+
skill: 'text-indigo-600',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
type JobListingBubbleProps = {
|
|
19
|
+
count: number | string | undefined;
|
|
20
|
+
type: LCSubtypes.course | LCSubtypes.achievement | LCSubtypes.skill;
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const JobListingBubble: React.FC<JobListingBubbleProps> = ({
|
|
25
|
+
count = 0,
|
|
26
|
+
type = LCSubtypes.skill,
|
|
27
|
+
className,
|
|
28
|
+
}) => {
|
|
29
|
+
const imgSrc = TYPE_TO_MINI_ICON[type];
|
|
30
|
+
const bgColor = TYPE_TO_COLOR[type];
|
|
31
|
+
const textColor = TYPE_TO_TEXT_COLOR[type];
|
|
32
|
+
if (count === 0) return <></>;
|
|
33
|
+
return (
|
|
34
|
+
<div
|
|
35
|
+
className={`job-card-stat-bubble px-[10px] px-[5px] flex-nowrap rounded-[30px] flex ${bgColor} min-w-[48px] min-w-[90px] h-[30px] justify-center items-center ${className}`}
|
|
36
|
+
>
|
|
37
|
+
<img src={imgSrc} className="mr-[3px]" />
|
|
38
|
+
<span className={`flex items-center text-sm ${textColor} font-bold`}>{count}</span>
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const JobListCard: React.FC<JobListCardProps> = ({
|
|
44
|
+
company,
|
|
45
|
+
className = 'job-listing-card',
|
|
46
|
+
title,
|
|
47
|
+
compensation,
|
|
48
|
+
location,
|
|
49
|
+
locationRequirement,
|
|
50
|
+
timeRequirement,
|
|
51
|
+
qualificationDisplay,
|
|
52
|
+
percentQualifiedDisplay,
|
|
53
|
+
postDateDisplay,
|
|
54
|
+
customButtonComponent,
|
|
55
|
+
imgThumb,
|
|
56
|
+
isBookmarked,
|
|
57
|
+
onBookmark,
|
|
58
|
+
onClick,
|
|
59
|
+
}) => {
|
|
60
|
+
const courseReqCount = qualificationDisplay?.courses?.totalRequiredCount;
|
|
61
|
+
const achievementsReqCount = qualificationDisplay?.achievements?.totalRequiredCount;
|
|
62
|
+
const skillsReqCount = qualificationDisplay?.skills?.totalRequiredCount;
|
|
63
|
+
|
|
64
|
+
const courseCountDisplay =
|
|
65
|
+
courseReqCount &&
|
|
66
|
+
`${qualificationDisplay?.courses?.fulfilledCount ?? 0}/${
|
|
67
|
+
qualificationDisplay?.courses?.totalRequiredCount ?? 0
|
|
68
|
+
}`;
|
|
69
|
+
const achievementsCountDisplay =
|
|
70
|
+
achievementsReqCount &&
|
|
71
|
+
`${qualificationDisplay?.achievements?.fulfilledCount ?? 0}/${
|
|
72
|
+
qualificationDisplay?.achievements?.totalRequiredCount ?? 0
|
|
73
|
+
}`;
|
|
74
|
+
const skillsCountDisplay =
|
|
75
|
+
skillsReqCount &&
|
|
76
|
+
`${qualificationDisplay?.skills?.fulfilledCount ?? 0}/${
|
|
77
|
+
qualificationDisplay?.skills?.totalRequiredCount ?? 0
|
|
78
|
+
}`;
|
|
79
|
+
|
|
80
|
+
const qualifiedText = percentQualifiedDisplay
|
|
81
|
+
? `${percentQualifiedDisplay}% Qualified - Apply`
|
|
82
|
+
: 'Apply';
|
|
83
|
+
|
|
84
|
+
let topText = '';
|
|
85
|
+
if (!compensation && timeRequirement) topText = timeRequirement;
|
|
86
|
+
if (!timeRequirement && compensation) topText = compensation;
|
|
87
|
+
if (timeRequirement && compensation) topText = `${compensation} • ${timeRequirement}`;
|
|
88
|
+
|
|
89
|
+
let locationText = '';
|
|
90
|
+
if (!location && locationRequirement) locationText = locationRequirement;
|
|
91
|
+
if (!locationRequirement && location) locationText = location;
|
|
92
|
+
if (locationRequirement && location) locationText = `${locationRequirement} • ${location}`;
|
|
93
|
+
|
|
94
|
+
const defaultButton = (
|
|
95
|
+
<button
|
|
96
|
+
type="button"
|
|
97
|
+
onClick={onClick}
|
|
98
|
+
className="mt-[10px] bg-cyan-700 py-[15px] px-[2px] rounded-[40px] text-grayscale-50 text-[17px] font-bold"
|
|
99
|
+
>
|
|
100
|
+
{qualifiedText}
|
|
101
|
+
</button>
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const buttonComponent = customButtonComponent ? customButtonComponent : defaultButton;
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<div
|
|
108
|
+
className={`flex flex-col justify-between shadow-[0_0_8px_0px_rgba(0,0,0,0.2)] relative $ py-[10px] px-[15px] max-w-[400px] min-h-[260px] rounded-[20px] ${className}`}
|
|
109
|
+
>
|
|
110
|
+
<div className="job-listing-top flex">
|
|
111
|
+
<div className="flex text-grayscale-500 text-xs uppercase w-full line-clamp-1">
|
|
112
|
+
{topText}
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<p className="text-grayscale-500 text-xs line-clamp-1 flex-shrink-0">
|
|
116
|
+
{' '}
|
|
117
|
+
{postDateDisplay}
|
|
118
|
+
</p>
|
|
119
|
+
|
|
120
|
+
<div className="job-listing-center flex mt-[5px]">
|
|
121
|
+
{imgThumb && (
|
|
122
|
+
<img
|
|
123
|
+
className="object-cover w-[80px] flex-shrink-0 items-center justify-center rounded-[15px] mr-[10px]"
|
|
124
|
+
src={imgThumb}
|
|
125
|
+
/>
|
|
126
|
+
)}
|
|
127
|
+
|
|
128
|
+
<div className="job-listing-description flex flex-col">
|
|
129
|
+
<h4 className="text-lg font-bold line-clamp-2">{title}</h4>
|
|
130
|
+
<p className="text-sm line-clamp-1">{company}</p>
|
|
131
|
+
<span className="text-sm line-clamp-1">{locationText}</span>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div className="job-listing-qualifications mt-[10px]">
|
|
136
|
+
<div className="course-card-counts-container flex items-center flex-wrap">
|
|
137
|
+
<JobListingBubble
|
|
138
|
+
type={LCSubtypes.course}
|
|
139
|
+
count={courseCountDisplay}
|
|
140
|
+
className={'mr-[5px] min-w-[100px]'}
|
|
141
|
+
/>
|
|
142
|
+
|
|
143
|
+
<JobListingBubble
|
|
144
|
+
type={LCSubtypes.achievement}
|
|
145
|
+
count={achievementsCountDisplay}
|
|
146
|
+
className={'mr-[5px] min-w-[100px]'}
|
|
147
|
+
/>
|
|
148
|
+
|
|
149
|
+
<JobListingBubble
|
|
150
|
+
type={LCSubtypes.skill}
|
|
151
|
+
count={skillsCountDisplay}
|
|
152
|
+
className={'mr-[0px min-w-[100px]]'}
|
|
153
|
+
/>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
{buttonComponent}
|
|
158
|
+
</div>
|
|
159
|
+
);
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export default JobListCard;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story, Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
import LearnCardCreditCardBackFace from './LearnCardCreditCardBackFace';
|
|
5
|
+
|
|
6
|
+
import { LearnCardCreditCardBackFaceProps } from './types';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'LearnCardCreditCardBackFace',
|
|
10
|
+
component: LearnCardCreditCardBackFace,
|
|
11
|
+
argTypes: {},
|
|
12
|
+
} as Meta<typeof LearnCardCreditCardBackFace>;
|
|
13
|
+
|
|
14
|
+
const Template: Story<LearnCardCreditCardBackFaceProps> = args => (
|
|
15
|
+
<LearnCardCreditCardBackFace {...args} />
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export const LearnCardCreditCardBackFaceTest = Template.bind({});
|
|
19
|
+
LearnCardCreditCardBackFaceTest.args = {
|
|
20
|
+
className: '',
|
|
21
|
+
user: {
|
|
22
|
+
fullName: 'Jane Doe',
|
|
23
|
+
username: 'jane_doe_2022',
|
|
24
|
+
},
|
|
25
|
+
card: {
|
|
26
|
+
cardNumber: '0000 0000 0000 0000',
|
|
27
|
+
cardIssueDate: '2022',
|
|
28
|
+
cardExpirationDate: '00/00',
|
|
29
|
+
cardSecurityCode: '000',
|
|
30
|
+
},
|
|
31
|
+
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import ContactlessSymbol from '../../assets/images/contactless-symbol.svg';
|
|
4
|
+
|
|
5
|
+
import { LearnCardCreditCardBackFaceProps } from './types';
|
|
6
|
+
|
|
7
|
+
export const LearnCardCreditCardBackFace: React.FC<LearnCardCreditCardBackFaceProps> = ({
|
|
8
|
+
className,
|
|
9
|
+
card,
|
|
10
|
+
user,
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<div
|
|
14
|
+
className={`flex justify-center items-center max-w-[375px] rounded-[20px] ${className}`}
|
|
15
|
+
>
|
|
16
|
+
<div
|
|
17
|
+
className={`flex flex-col justify-start items-start w-full min-h-[220px] rounded-[20px] shadow-3xl bg-grayscale-900 relative overflow-hidden credit-card-front-face`}
|
|
18
|
+
>
|
|
19
|
+
<div className="flex justify-between items-center w-full px-3 pt-4 text-white">
|
|
20
|
+
<p className="text-[6px]">
|
|
21
|
+
Please visit LearnCard app or learncard.com for assistance
|
|
22
|
+
</p>
|
|
23
|
+
<p className="text-[6px]">854-000-000-24</p>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div className="w-full h-8 bg-white mt-1" />
|
|
27
|
+
|
|
28
|
+
<div className="flex justify-end items-center w-full px-3 mt-1 text-white">
|
|
29
|
+
<p className="text-[6px]">IDEMIA 0 00000 00000 0/00</p>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<div className="flex flex-row justify-between items-center px-3 pt-2 w-full text-white">
|
|
33
|
+
<div>
|
|
34
|
+
{user?.username && (
|
|
35
|
+
<p
|
|
36
|
+
className="text-[10px] font-medium"
|
|
37
|
+
data-testid="credit-card-backface-username"
|
|
38
|
+
>
|
|
39
|
+
{user?.username}
|
|
40
|
+
</p>
|
|
41
|
+
)}
|
|
42
|
+
|
|
43
|
+
<p
|
|
44
|
+
className="text-sm tracking-wider"
|
|
45
|
+
data-testid="credit-card-backface-fullname"
|
|
46
|
+
>
|
|
47
|
+
{user?.fullName ?? ''}
|
|
48
|
+
</p>
|
|
49
|
+
{card?.cardIssueDate && (
|
|
50
|
+
<p
|
|
51
|
+
className="text-[10px] tracking-wider"
|
|
52
|
+
data-testid="credit-card-backface-issueDate"
|
|
53
|
+
>
|
|
54
|
+
MEMBER SINCE {card?.cardIssueDate}
|
|
55
|
+
</p>
|
|
56
|
+
)}
|
|
57
|
+
</div>
|
|
58
|
+
<div>
|
|
59
|
+
<img src={ContactlessSymbol} alt="contactless icon" />
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div className="flex flex-row justify-between items-center px-3 pt-2 w-full text-white">
|
|
64
|
+
<div className="flex flex-col">
|
|
65
|
+
<p
|
|
66
|
+
className="text-sm tracking-wider"
|
|
67
|
+
data-testid="credit-card-backface-cardNum"
|
|
68
|
+
>
|
|
69
|
+
{card?.cardNumber ?? ''}
|
|
70
|
+
</p>
|
|
71
|
+
<div className="flex flex-row justify-between items-center">
|
|
72
|
+
<p
|
|
73
|
+
className="text-[10px] tracking-wider"
|
|
74
|
+
data-testid="credit-card-backface-expDate"
|
|
75
|
+
>
|
|
76
|
+
EXP {card?.cardExpirationDate ?? ''}
|
|
77
|
+
</p>
|
|
78
|
+
{card?.cardSecurityCode && (
|
|
79
|
+
<p
|
|
80
|
+
className="text-[10px] tracking-wider"
|
|
81
|
+
data-testid="credit-card-backface-secCode"
|
|
82
|
+
>
|
|
83
|
+
SEC {card?.cardSecurityCode ?? ''}
|
|
84
|
+
</p>
|
|
85
|
+
)}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<div>
|
|
89
|
+
<div className="h-[33px] w-[55px] rounded-[60px] bg-gradient-to-r from-[#F4F5F5] to-[#E3E5E8]" />
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div className="flex justify-start items-center w-full px-3 py-2 text-white">
|
|
94
|
+
<p className="text-[6px]">
|
|
95
|
+
Issued by the bank of Tennessee pursuant to license by Mastercard
|
|
96
|
+
International
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export default LearnCardCreditCardBackFace;
|
package/src/components/LearnCardCreditCardBackFace/__tests__/LearnCardCreditCardBackFace.test.tsx
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@testing-library/jest-dom';
|
|
3
|
+
import { render, screen } from '@testing-library/react';
|
|
4
|
+
|
|
5
|
+
import LearnCardCreditCardBackFace from '../LearnCardCreditCardBackFace';
|
|
6
|
+
import { LearnCardCreditCardUserProps, LearnCardCreditCardProps } from '../types';
|
|
7
|
+
|
|
8
|
+
describe('LearnCardCreditCardBackFace', () => {
|
|
9
|
+
test('Checks LearnCardCreditCardBackFace renders with props', () => {
|
|
10
|
+
const user: LearnCardCreditCardUserProps = {
|
|
11
|
+
fullName: 'Jane Doe',
|
|
12
|
+
username: 'jane_doe_2022',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const card: LearnCardCreditCardProps = {
|
|
16
|
+
cardNumber: '0000 0000 0000 0000',
|
|
17
|
+
cardIssueDate: '2022',
|
|
18
|
+
cardExpirationDate: '00/00',
|
|
19
|
+
cardSecurityCode: '000',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
render(<LearnCardCreditCardBackFace user={user} card={card} />);
|
|
23
|
+
|
|
24
|
+
const fullName = screen.getByTestId('credit-card-backface-fullname');
|
|
25
|
+
expect(fullName).toHaveTextContent('Jane Doe');
|
|
26
|
+
|
|
27
|
+
const username = screen.getByTestId('credit-card-backface-username');
|
|
28
|
+
expect(username).toHaveTextContent('jane_doe_2022');
|
|
29
|
+
|
|
30
|
+
const cardNumber = screen.getByTestId('credit-card-backface-cardNum');
|
|
31
|
+
expect(cardNumber).toHaveTextContent('0000 0000 0000 0000');
|
|
32
|
+
|
|
33
|
+
const cardIssueDate = screen.getByTestId('credit-card-backface-issueDate');
|
|
34
|
+
expect(cardIssueDate).toHaveTextContent('2022');
|
|
35
|
+
|
|
36
|
+
const cardExpDate = screen.getByTestId('credit-card-backface-expDate');
|
|
37
|
+
expect(cardExpDate).toHaveTextContent('EXP 00/00');
|
|
38
|
+
|
|
39
|
+
const cardSecurityCode = screen.getByTestId('credit-card-backface-secCode');
|
|
40
|
+
expect(cardSecurityCode).toHaveTextContent('SEC 000');
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
test('Checks LearnCardCreditCardBackFace renders without props', () => {
|
|
44
|
+
render(<LearnCardCreditCardBackFace />);
|
|
45
|
+
|
|
46
|
+
const fullName = screen.getByTestId('credit-card-backface-fullname');
|
|
47
|
+
expect(fullName).toBeEmptyDOMElement();
|
|
48
|
+
|
|
49
|
+
const username = screen.queryByTestId('credit-card-backface-username');
|
|
50
|
+
expect(username).not.toBeInTheDocument();
|
|
51
|
+
|
|
52
|
+
const cardNumber = screen.getByTestId('credit-card-backface-cardNum');
|
|
53
|
+
expect(cardNumber).toBeEmptyDOMElement();
|
|
54
|
+
|
|
55
|
+
const cardIssueDate = screen.queryByTestId('credit-card-backface-issueDate');
|
|
56
|
+
expect(cardIssueDate).not.toBeInTheDocument();
|
|
57
|
+
|
|
58
|
+
const cardExpDate = screen.getByTestId('credit-card-backface-expDate');
|
|
59
|
+
expect(cardExpDate).toHaveTextContent('EXP');
|
|
60
|
+
|
|
61
|
+
const cardSecurityCode = screen.queryByTestId('credit-card-backface-secCode');
|
|
62
|
+
expect(cardSecurityCode).not.toBeInTheDocument();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type LearnCardCreditCardBackFaceProps = {
|
|
2
|
+
/**
|
|
3
|
+
* custom className
|
|
4
|
+
* @type {string}
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
user: LearnCardCreditCardUserProps;
|
|
8
|
+
card: LearnCardCreditCardProps;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type LearnCardCreditCardUserProps = {
|
|
12
|
+
/**
|
|
13
|
+
* unique user handle / username
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
username?: string;
|
|
17
|
+
/**
|
|
18
|
+
* user full name
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
fullName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type LearnCardCreditCardProps = {
|
|
25
|
+
/**
|
|
26
|
+
* card number
|
|
27
|
+
* @type {number}
|
|
28
|
+
*/
|
|
29
|
+
cardNumber: string;
|
|
30
|
+
/**
|
|
31
|
+
* card issue date
|
|
32
|
+
* @type {string}
|
|
33
|
+
*/
|
|
34
|
+
cardIssueDate?: string;
|
|
35
|
+
/**
|
|
36
|
+
* card expiration date
|
|
37
|
+
* @type {string}
|
|
38
|
+
*/
|
|
39
|
+
cardExpirationDate: string;
|
|
40
|
+
/**
|
|
41
|
+
* card security code
|
|
42
|
+
* @type {string}
|
|
43
|
+
*/
|
|
44
|
+
cardSecurityCode?: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story, Meta } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
import LearnCardCreditCardFrontFace from './LearnCardCreditCardFrontFace';
|
|
5
|
+
|
|
6
|
+
import { LearnCardCreditCardFrontFaceProps } from './types';
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'LearnCardCreditCardFrontFace',
|
|
10
|
+
component: LearnCardCreditCardFrontFace,
|
|
11
|
+
argTypes: {},
|
|
12
|
+
} as Meta<typeof LearnCardCreditCardFrontFace>;
|
|
13
|
+
|
|
14
|
+
const Template: Story<LearnCardCreditCardFrontFaceProps> = args => (
|
|
15
|
+
<LearnCardCreditCardFrontFace {...args} />
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export const LearnCardCreditCardFrontFaceTest = Template.bind({});
|
|
19
|
+
LearnCardCreditCardFrontFaceTest.args = {
|
|
20
|
+
userImage:
|
|
21
|
+
'https://img.freepik.com/free-photo/pleasant-looking-serious-blonde-woman-with-long-hair-wears-blue-casual-sweater_273609-17050.jpg?w=2000',
|
|
22
|
+
qrCodeValue: 'https://www.npmjs.com/package/@learncard/react',
|
|
23
|
+
showActionButton: true,
|
|
24
|
+
actionButtonText: 'Open Card',
|
|
25
|
+
onClick: () => {},
|
|
26
|
+
className: '',
|
|
27
|
+
children: <></>,
|
|
28
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QRCodeSVG } from 'qrcode.react';
|
|
3
|
+
|
|
4
|
+
import { LearnCardCreditCardFrontFaceProps } from './types';
|
|
5
|
+
|
|
6
|
+
import CardChip from '../../assets/images/card-chip.svg';
|
|
7
|
+
import MasterCardLogo from '../../assets/images/master-card-logo.svg';
|
|
8
|
+
|
|
9
|
+
export const LearnCardCreditCardFrontFace: React.FC<LearnCardCreditCardFrontFaceProps> = ({
|
|
10
|
+
userImage,
|
|
11
|
+
userImageComponent = null,
|
|
12
|
+
qrCodeValue,
|
|
13
|
+
className,
|
|
14
|
+
showActionButton = false,
|
|
15
|
+
actionButtonText = 'Open Card',
|
|
16
|
+
onClick = () => {},
|
|
17
|
+
children,
|
|
18
|
+
}) => {
|
|
19
|
+
let userImageEl: React.ReactNode | null = null;
|
|
20
|
+
|
|
21
|
+
if (userImage) {
|
|
22
|
+
userImageEl = (
|
|
23
|
+
<div className="inline-block relative overflow-hidden rounded-full shadow-3xl h-0 bg-white w-1/2 pb-[50%] mt-2 ml-4">
|
|
24
|
+
<img
|
|
25
|
+
className="w-full h-full absolute rounded-full object-cover border-solid border-2 border-white"
|
|
26
|
+
src={userImage}
|
|
27
|
+
alt="user image"
|
|
28
|
+
data-testid="credit-card-frontface-userImg"
|
|
29
|
+
/>
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
} else if (!userImage && userImageComponent) {
|
|
33
|
+
userImageEl = userImageComponent;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div
|
|
38
|
+
className={`flex justify-center items-center max-w-[375px] rounded-[20px] ${className}`}
|
|
39
|
+
>
|
|
40
|
+
<div
|
|
41
|
+
className={`flex flex-row justify-center items-start pt-9 w-full min-h-[220px] rounded-[20px] shadow-3xl relative overflow-hidden credit-card-front-face`}
|
|
42
|
+
>
|
|
43
|
+
<div className="absolute top-[-40px] left-0 w-[55%] h-[140%] rounded-tr-[150px] rounded-br-[150px] bg-grayscale-900 credit-card-bubble" />
|
|
44
|
+
{showActionButton && (
|
|
45
|
+
<button
|
|
46
|
+
className="absolute top-2 right-4 bg-grayscale-500 border-[2px] rounded-3xl border-solid border-color-grayscale-900 min-w-[110px] p-[2px] font-bold text-xs tracking-wide leading-snug text-center text-white"
|
|
47
|
+
onClick={onClick}
|
|
48
|
+
data-testid="credit-card-frontface-button"
|
|
49
|
+
>
|
|
50
|
+
{actionButtonText}
|
|
51
|
+
</button>
|
|
52
|
+
)}
|
|
53
|
+
<div className="flex flex-row justify-between items-start w-full h-full relative">
|
|
54
|
+
<div className="flex flex-1 flex-col">
|
|
55
|
+
<div className="pl-8">
|
|
56
|
+
<p className="w-full text-xs text-white font-bold tracking-[7px] mb-2 credit-card-front-face-title">
|
|
57
|
+
LEARNCARD
|
|
58
|
+
</p>
|
|
59
|
+
<img
|
|
60
|
+
src={CardChip ?? ''}
|
|
61
|
+
alt="card chip"
|
|
62
|
+
className="h-[30px] w-[42px]"
|
|
63
|
+
/>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
{userImageEl}
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
{qrCodeValue && (
|
|
70
|
+
<div className="flex flex-1 justify-center items-center relative pl-10 credit-card-qr-code-container">
|
|
71
|
+
<div className="h-auto relative qr-code-container">
|
|
72
|
+
{/* <div className="qr-code-upper-left-yellow" />
|
|
73
|
+
<div className="qr-code-upper-right-pink-square" />
|
|
74
|
+
<div className="qr-code-bottom-left-purple-square" />
|
|
75
|
+
<div className="qr-code-green-blob" />
|
|
76
|
+
<div className="qr-code-green-blob-2" />
|
|
77
|
+
<div className="qr-code-blue-blob" />
|
|
78
|
+
<div className="qr-code-orange-blob" /> */}
|
|
79
|
+
<QRCodeSVG
|
|
80
|
+
className="h-full w-full"
|
|
81
|
+
value={qrCodeValue}
|
|
82
|
+
data-testid="credit-card-qr-code"
|
|
83
|
+
bgColor="transparent"
|
|
84
|
+
// fgColor="#999999"
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
)}
|
|
89
|
+
|
|
90
|
+
<img
|
|
91
|
+
src={MasterCardLogo ?? ''}
|
|
92
|
+
alt="mastercard icon"
|
|
93
|
+
className="absolute bottom-[-8px] right-4 learn-card-mastercard-logo"
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
{children}
|
|
98
|
+
</div>
|
|
99
|
+
);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export default LearnCardCreditCardFrontFace;
|