@tipp/ui 2.1.17 → 2.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +28 -28
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +2 -2
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +3 -3
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +21 -21
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +20 -20
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +21 -21
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +3 -3
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +20 -20
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +3 -3
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +21 -21
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +22 -22
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +2 -2
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +2 -2
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +2 -2
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +2 -2
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +2 -2
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +2 -2
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +2 -2
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +2 -2
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +2 -2
- package/dist/chunk-2237ANNI.js +105 -0
- package/dist/chunk-2237ANNI.js.map +1 -0
- package/dist/chunk-355LM3DB.js +89 -0
- package/dist/chunk-355LM3DB.js.map +1 -0
- package/dist/chunk-36BJJUAS.js +69 -0
- package/dist/chunk-36BJJUAS.js.map +1 -0
- package/dist/chunk-3BVQLREH.js +61 -0
- package/dist/chunk-3BVQLREH.js.map +1 -0
- package/dist/chunk-3ISADA3F.js +129 -0
- package/dist/chunk-3ISADA3F.js.map +1 -0
- package/dist/chunk-3OX6ELQJ.js +281 -0
- package/dist/chunk-3OX6ELQJ.js.map +1 -0
- package/dist/chunk-4DN2SLKO.js +130 -0
- package/dist/chunk-4DN2SLKO.js.map +1 -0
- package/dist/chunk-4XL2JKHM.js +192 -0
- package/dist/chunk-4XL2JKHM.js.map +1 -0
- package/dist/chunk-5DF5DSL3.js +174 -0
- package/dist/chunk-5DF5DSL3.js.map +1 -0
- package/dist/chunk-5Z5Z3WXM.js +69 -0
- package/dist/chunk-5Z5Z3WXM.js.map +1 -0
- package/dist/chunk-65N5PZVT.js +29 -0
- package/dist/chunk-65N5PZVT.js.map +1 -0
- package/dist/chunk-66T7WFMA.js +37 -0
- package/dist/chunk-66T7WFMA.js.map +1 -0
- package/dist/chunk-6ALTJK5A.js +61 -0
- package/dist/chunk-6ALTJK5A.js.map +1 -0
- package/dist/chunk-6KJZFAP6.js +129 -0
- package/dist/chunk-6KJZFAP6.js.map +1 -0
- package/dist/chunk-6LLQIZ4B.js +101 -0
- package/dist/chunk-6LLQIZ4B.js.map +1 -0
- package/dist/chunk-6NFMP4ZK.js +61 -0
- package/dist/chunk-6NFMP4ZK.js.map +1 -0
- package/dist/chunk-7FFAUSLN.js +51 -0
- package/dist/chunk-7FFAUSLN.js.map +1 -0
- package/dist/chunk-7GTHXRVL.js +64 -0
- package/dist/chunk-7GTHXRVL.js.map +1 -0
- package/dist/chunk-7W75DKCA.js +89 -0
- package/dist/chunk-7W75DKCA.js.map +1 -0
- package/dist/chunk-7XJAVTGA.js +144 -0
- package/dist/chunk-7XJAVTGA.js.map +1 -0
- package/dist/chunk-A5EUKSYN.js +169 -0
- package/dist/chunk-A5EUKSYN.js.map +1 -0
- package/dist/chunk-AGEIKONV.js +150 -0
- package/dist/chunk-AGEIKONV.js.map +1 -0
- package/dist/chunk-AOBS7ZOS.js +89 -0
- package/dist/chunk-AOBS7ZOS.js.map +1 -0
- package/dist/chunk-AUAVIQSX.js +99 -0
- package/dist/chunk-AUAVIQSX.js.map +1 -0
- package/dist/chunk-B2W5SWKN.js +63 -0
- package/dist/chunk-B2W5SWKN.js.map +1 -0
- package/dist/chunk-B3ZQZRF5.js +64 -0
- package/dist/chunk-B3ZQZRF5.js.map +1 -0
- package/dist/chunk-B7L4J6V3.js +64 -0
- package/dist/chunk-B7L4J6V3.js.map +1 -0
- package/dist/chunk-BIPKDK2Z.js +145 -0
- package/dist/chunk-BIPKDK2Z.js.map +1 -0
- package/dist/chunk-BQMQFE3E.js +43 -0
- package/dist/chunk-BQMQFE3E.js.map +1 -0
- package/dist/chunk-BSARBHTX.js +64 -0
- package/dist/chunk-BSARBHTX.js.map +1 -0
- package/dist/chunk-BWIYHMVO.js +144 -0
- package/dist/chunk-BWIYHMVO.js.map +1 -0
- package/dist/chunk-BYMDSPXF.js +192 -0
- package/dist/chunk-BYMDSPXF.js.map +1 -0
- package/dist/chunk-C4SCLONC.js +89 -0
- package/dist/chunk-C4SCLONC.js.map +1 -0
- package/dist/chunk-C7LZF2Y4.js +49 -0
- package/dist/chunk-C7LZF2Y4.js.map +1 -0
- package/dist/chunk-CEK4NKTO.js +125 -0
- package/dist/chunk-CEK4NKTO.js.map +1 -0
- package/dist/chunk-CGNCDC6F.js +37 -0
- package/dist/chunk-CGNCDC6F.js.map +1 -0
- package/dist/chunk-CRDUMW6J.js +129 -0
- package/dist/chunk-CRDUMW6J.js.map +1 -0
- package/dist/chunk-CVDMLZYQ.js +64 -0
- package/dist/chunk-CVDMLZYQ.js.map +1 -0
- package/dist/chunk-CYAMEQLE.js +87 -0
- package/dist/chunk-CYAMEQLE.js.map +1 -0
- package/dist/chunk-CYZCDCID.js +89 -0
- package/dist/chunk-CYZCDCID.js.map +1 -0
- package/dist/chunk-CZOORZSI.js +146 -0
- package/dist/chunk-CZOORZSI.js.map +1 -0
- package/dist/chunk-DFBQRNOM.js +69 -0
- package/dist/chunk-DFBQRNOM.js.map +1 -0
- package/dist/chunk-DL56P5KJ.js +99 -0
- package/dist/chunk-DL56P5KJ.js.map +1 -0
- package/dist/chunk-DNBZ2TGH.js +150 -0
- package/dist/chunk-DNBZ2TGH.js.map +1 -0
- package/dist/chunk-DOGAIPKQ.js +63 -0
- package/dist/chunk-DOGAIPKQ.js.map +1 -0
- package/dist/chunk-EBXSN6LS.js +89 -0
- package/dist/chunk-EBXSN6LS.js.map +1 -0
- package/dist/chunk-EIQ7AJJF.js +79 -0
- package/dist/chunk-EIQ7AJJF.js.map +1 -0
- package/dist/chunk-EJFO62CX.js +69 -0
- package/dist/chunk-EJFO62CX.js.map +1 -0
- package/dist/chunk-F6YQBCJB.js +125 -0
- package/dist/chunk-F6YQBCJB.js.map +1 -0
- package/dist/chunk-FAHUTHEN.js +61 -0
- package/dist/chunk-FAHUTHEN.js.map +1 -0
- package/dist/chunk-FCJ5POHE.js +43 -0
- package/dist/chunk-FCJ5POHE.js.map +1 -0
- package/dist/chunk-FDV2M6HG.js +69 -0
- package/dist/chunk-FDV2M6HG.js.map +1 -0
- package/dist/chunk-FFAQAWP3.js +87 -0
- package/dist/chunk-FFAQAWP3.js.map +1 -0
- package/dist/chunk-FIE6TBJQ.js +51 -0
- package/dist/chunk-FIE6TBJQ.js.map +1 -0
- package/dist/chunk-FJGBBUNO.js +68 -0
- package/dist/chunk-FJGBBUNO.js.map +1 -0
- package/dist/chunk-FK6EYXCI.js +69 -0
- package/dist/chunk-FK6EYXCI.js.map +1 -0
- package/dist/chunk-FMO2RSJZ.js +89 -0
- package/dist/chunk-FMO2RSJZ.js.map +1 -0
- package/dist/chunk-FWKLC4ZV.js +146 -0
- package/dist/chunk-FWKLC4ZV.js.map +1 -0
- package/dist/chunk-G25JSUAF.js +68 -0
- package/dist/chunk-G25JSUAF.js.map +1 -0
- package/dist/chunk-GCEFHWF7.js +63 -0
- package/dist/chunk-GCEFHWF7.js.map +1 -0
- package/dist/chunk-GJXNSLUM.js +130 -0
- package/dist/chunk-GJXNSLUM.js.map +1 -0
- package/dist/chunk-GNQNKAB3.js +130 -0
- package/dist/chunk-GNQNKAB3.js.map +1 -0
- package/dist/chunk-GP3MBCNL.js +64 -0
- package/dist/chunk-GP3MBCNL.js.map +1 -0
- package/dist/chunk-HY6COCCB.js +354 -0
- package/dist/chunk-HY6COCCB.js.map +1 -0
- package/dist/chunk-IMNCUPKU.js +169 -0
- package/dist/chunk-IMNCUPKU.js.map +1 -0
- package/dist/chunk-IRXDPPGQ.js +101 -0
- package/dist/chunk-IRXDPPGQ.js.map +1 -0
- package/dist/chunk-IYQJIEVM.js +145 -0
- package/dist/chunk-IYQJIEVM.js.map +1 -0
- package/dist/chunk-J6BYDVYS.js +49 -0
- package/dist/chunk-J6BYDVYS.js.map +1 -0
- package/dist/chunk-JC452KO5.js +150 -0
- package/dist/chunk-JC452KO5.js.map +1 -0
- package/dist/chunk-JVOUAWAU.js +69 -0
- package/dist/chunk-JVOUAWAU.js.map +1 -0
- package/dist/chunk-K462NHDP.js +89 -0
- package/dist/chunk-K462NHDP.js.map +1 -0
- package/dist/chunk-KQKT7STR.js +49 -0
- package/dist/chunk-KQKT7STR.js.map +1 -0
- package/dist/chunk-KSD3QZLL.js +79 -0
- package/dist/chunk-KSD3QZLL.js.map +1 -0
- package/dist/chunk-KSK33PCP.js +87 -0
- package/dist/chunk-KSK33PCP.js.map +1 -0
- package/dist/chunk-KYA3VHDJ.js +125 -0
- package/dist/chunk-KYA3VHDJ.js.map +1 -0
- package/dist/chunk-L5IXFK4T.js +129 -0
- package/dist/chunk-L5IXFK4T.js.map +1 -0
- package/dist/chunk-LLWIPPUY.js +61 -0
- package/dist/chunk-LLWIPPUY.js.map +1 -0
- package/dist/chunk-LXBAM6C6.js +64 -0
- package/dist/chunk-LXBAM6C6.js.map +1 -0
- package/dist/chunk-MA54NI72.js +63 -0
- package/dist/chunk-MA54NI72.js.map +1 -0
- package/dist/chunk-MG7DTB4Z.js +51 -0
- package/dist/chunk-MG7DTB4Z.js.map +1 -0
- package/dist/chunk-MY4KSE5A.js +99 -0
- package/dist/chunk-MY4KSE5A.js.map +1 -0
- package/dist/chunk-N2Q6ESHU.js +70 -0
- package/dist/chunk-N2Q6ESHU.js.map +1 -0
- package/dist/chunk-NI52XKDL.js +129 -0
- package/dist/chunk-NI52XKDL.js.map +1 -0
- package/dist/chunk-NOOH3NEK.js +89 -0
- package/dist/chunk-NOOH3NEK.js.map +1 -0
- package/dist/chunk-NYHCFJJN.js +281 -0
- package/dist/chunk-NYHCFJJN.js.map +1 -0
- package/dist/chunk-NZECD7GB.js +57 -0
- package/dist/chunk-NZECD7GB.js.map +1 -0
- package/dist/chunk-OFIUIUCL.js +145 -0
- package/dist/chunk-OFIUIUCL.js.map +1 -0
- package/dist/chunk-OX4O4PXR.js +87 -0
- package/dist/chunk-OX4O4PXR.js.map +1 -0
- package/dist/chunk-PCVU2CLZ.js +117 -0
- package/dist/chunk-PCVU2CLZ.js.map +1 -0
- package/dist/chunk-PEY2BL3Z.js +151 -0
- package/dist/chunk-PEY2BL3Z.js.map +1 -0
- package/dist/chunk-PPN3M4TG.js +145 -0
- package/dist/chunk-PPN3M4TG.js.map +1 -0
- package/dist/chunk-PQR5QWVV.js +64 -0
- package/dist/chunk-PQR5QWVV.js.map +1 -0
- package/dist/chunk-PT7VTPTX.js +281 -0
- package/dist/chunk-PT7VTPTX.js.map +1 -0
- package/dist/chunk-PUNNF2RQ.js +87 -0
- package/dist/chunk-PUNNF2RQ.js.map +1 -0
- package/dist/chunk-QB3HETAB.js +29 -0
- package/dist/chunk-QB3HETAB.js.map +1 -0
- package/dist/chunk-R7E2YMA7.js +29 -0
- package/dist/chunk-R7E2YMA7.js.map +1 -0
- package/dist/chunk-RKZHP3AB.js +63 -0
- package/dist/chunk-RKZHP3AB.js.map +1 -0
- package/dist/chunk-RUWKQM3S.js +354 -0
- package/dist/chunk-RUWKQM3S.js.map +1 -0
- package/dist/chunk-S3IAYYAP.js +61 -0
- package/dist/chunk-S3IAYYAP.js.map +1 -0
- package/dist/chunk-S56BZMSU.js +69 -0
- package/dist/chunk-S56BZMSU.js.map +1 -0
- package/dist/chunk-S6BZOUN7.js +69 -0
- package/dist/chunk-S6BZOUN7.js.map +1 -0
- package/dist/chunk-SFRE4VOT.js +54 -0
- package/dist/chunk-SFRE4VOT.js.map +1 -0
- package/dist/chunk-SH7TZYI5.js +165 -0
- package/dist/chunk-SH7TZYI5.js.map +1 -0
- package/dist/chunk-SRHDGPWR.js +64 -0
- package/dist/chunk-SRHDGPWR.js.map +1 -0
- package/dist/chunk-SU5JT7SZ.js +99 -0
- package/dist/chunk-SU5JT7SZ.js.map +1 -0
- package/dist/chunk-SYSHJ76B.js +69 -0
- package/dist/chunk-SYSHJ76B.js.map +1 -0
- package/dist/chunk-SZ67SXUN.js +150 -0
- package/dist/chunk-SZ67SXUN.js.map +1 -0
- package/dist/chunk-T7O5SDN2.js +117 -0
- package/dist/chunk-T7O5SDN2.js.map +1 -0
- package/dist/chunk-T7V6N475.js +117 -0
- package/dist/chunk-T7V6N475.js.map +1 -0
- package/dist/chunk-TBACCK2P.js +61 -0
- package/dist/chunk-TBACCK2P.js.map +1 -0
- package/dist/chunk-TGPJJIBC.js +165 -0
- package/dist/chunk-TGPJJIBC.js.map +1 -0
- package/dist/chunk-U42HIPD5.js +89 -0
- package/dist/chunk-U42HIPD5.js.map +1 -0
- package/dist/chunk-UJJFMIUX.js +89 -0
- package/dist/chunk-UJJFMIUX.js.map +1 -0
- package/dist/chunk-UZWE2VAP.js +105 -0
- package/dist/chunk-UZWE2VAP.js.map +1 -0
- package/dist/chunk-VAJ2QFO7.js +165 -0
- package/dist/chunk-VAJ2QFO7.js.map +1 -0
- package/dist/chunk-VIBFBACK.js +43 -0
- package/dist/chunk-VIBFBACK.js.map +1 -0
- package/dist/chunk-VRDC6QLR.js +129 -0
- package/dist/chunk-VRDC6QLR.js.map +1 -0
- package/dist/chunk-VX33AZ3M.js +37 -0
- package/dist/chunk-VX33AZ3M.js.map +1 -0
- package/dist/chunk-W7EDWW3Q.js +69 -0
- package/dist/chunk-W7EDWW3Q.js.map +1 -0
- package/dist/chunk-WALCDA7S.js +354 -0
- package/dist/chunk-WALCDA7S.js.map +1 -0
- package/dist/chunk-WNTNIQVU.js +144 -0
- package/dist/chunk-WNTNIQVU.js.map +1 -0
- package/dist/chunk-X5BPR6VW.js +192 -0
- package/dist/chunk-X5BPR6VW.js.map +1 -0
- package/dist/chunk-X7A2DEQN.js +169 -0
- package/dist/chunk-X7A2DEQN.js.map +1 -0
- package/dist/chunk-XJNJDRQW.js +63 -0
- package/dist/chunk-XJNJDRQW.js.map +1 -0
- package/dist/chunk-XKJYONHV.js +64 -0
- package/dist/chunk-XKJYONHV.js.map +1 -0
- package/dist/chunk-XPMHC7UQ.js +101 -0
- package/dist/chunk-XPMHC7UQ.js.map +1 -0
- package/dist/chunk-XWSQS722.js +64 -0
- package/dist/chunk-XWSQS722.js.map +1 -0
- package/dist/chunk-YIJ6LY4T.js +68 -0
- package/dist/chunk-YIJ6LY4T.js.map +1 -0
- package/dist/chunk-ZF22BWAU.js +89 -0
- package/dist/chunk-ZF22BWAU.js.map +1 -0
- package/dist/chunk-ZZILBVVN.js +129 -0
- package/dist/chunk-ZZILBVVN.js.map +1 -0
- package/dist/icon.cjs +4 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/icon.js +5 -1
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +42 -38
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +9 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +3 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +4 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +11 -11
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +7 -4
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +13 -13
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +2 -2
- package/dist/molecules/curriculumV2/curriculum-context.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-context.js +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.cjs +7 -4
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +15 -15
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -4
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +3 -3
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +2 -2
- package/dist/molecules/index.cjs +7 -4
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +24 -24
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +2 -2
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +2 -2
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +3 -3
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +2 -2
- package/dist/types/curriculumContents.type.cjs.map +1 -1
- package/dist/types/curriculumContents.type.d.cts +4 -3
- package/dist/types/curriculumContents.type.d.ts +4 -3
- package/dist/utils/curriculum.utils.cjs.map +1 -1
- package/dist/utils/curriculum.utils.js +1 -1
- package/package.json +1 -1
- package/src/constrant/curriculum.schema.json +4 -2
- package/src/icon.ts +2 -0
- package/src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx +2 -1
- package/src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx +5 -3
- package/src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx +3 -1
- package/src/molecules/curriculumV2/curriculum-context.tsx +2 -2
- package/src/types/curriculumContents.type.ts +4 -3
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar
|
|
3
|
+
} from "./chunk-FC7WH2S6.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-LH57PIY2.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
CheckIcon
|
|
12
|
+
} from "./chunk-CEK4NKTO.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/stepper.tsx
|
|
15
|
+
import { createContext, Children, useContext, useMemo } from "react";
|
|
16
|
+
import { Separator } from "@radix-ui/themes";
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var StepContext = createContext({
|
|
19
|
+
active: false,
|
|
20
|
+
completed: false,
|
|
21
|
+
index: 0
|
|
22
|
+
});
|
|
23
|
+
function Root(props) {
|
|
24
|
+
const {
|
|
25
|
+
activeStep = 0,
|
|
26
|
+
children,
|
|
27
|
+
width,
|
|
28
|
+
minWidth,
|
|
29
|
+
maxWidth,
|
|
30
|
+
direction = "vertical"
|
|
31
|
+
} = props;
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
gap: "3",
|
|
36
|
+
style: {
|
|
37
|
+
width,
|
|
38
|
+
minWidth,
|
|
39
|
+
maxWidth
|
|
40
|
+
},
|
|
41
|
+
children: Children.map(children, (child, index) => {
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
43
|
+
StepContext.Provider,
|
|
44
|
+
{
|
|
45
|
+
value: {
|
|
46
|
+
active: index === activeStep,
|
|
47
|
+
completed: index < activeStep,
|
|
48
|
+
index,
|
|
49
|
+
direction
|
|
50
|
+
},
|
|
51
|
+
children: child
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function Step(props) {
|
|
59
|
+
const { Icon, children } = props;
|
|
60
|
+
const {
|
|
61
|
+
active,
|
|
62
|
+
completed,
|
|
63
|
+
index,
|
|
64
|
+
direction = "vertical"
|
|
65
|
+
} = useContext(StepContext);
|
|
66
|
+
const connector = index > 0 ? /* @__PURE__ */ jsx(
|
|
67
|
+
Separator,
|
|
68
|
+
{
|
|
69
|
+
style: {
|
|
70
|
+
width: `calc(100% - 40px)`,
|
|
71
|
+
position: "absolute",
|
|
72
|
+
top: 16,
|
|
73
|
+
right: `calc(50% + 26px)`
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
) : null;
|
|
77
|
+
const InnerStep = useMemo(() => {
|
|
78
|
+
if (active) {
|
|
79
|
+
return ActiveStep;
|
|
80
|
+
}
|
|
81
|
+
if (completed) {
|
|
82
|
+
return CompleteStep;
|
|
83
|
+
}
|
|
84
|
+
return IncompleteStep;
|
|
85
|
+
}, [completed, active]);
|
|
86
|
+
return /* @__PURE__ */ jsxs(
|
|
87
|
+
Flex,
|
|
88
|
+
{
|
|
89
|
+
align: "center",
|
|
90
|
+
direction: direction === "horizontal" ? "row" : "column",
|
|
91
|
+
gap: "4",
|
|
92
|
+
position: "relative",
|
|
93
|
+
style: { flex: 1 },
|
|
94
|
+
children: [
|
|
95
|
+
connector,
|
|
96
|
+
/* @__PURE__ */ jsx(InnerStep, { Icon, children })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
function CompleteStep(props) {
|
|
102
|
+
const { Icon, children } = props;
|
|
103
|
+
const { completed, active } = useContext(StepContext);
|
|
104
|
+
const background = "var(--accent-a4)";
|
|
105
|
+
const border = "1px solid var(--accent-7)";
|
|
106
|
+
const color = "var(--accent-contrast)";
|
|
107
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
108
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
109
|
+
Avatar,
|
|
110
|
+
{
|
|
111
|
+
fallback: /* @__PURE__ */ jsx(CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
112
|
+
radius: "full",
|
|
113
|
+
size: "medium",
|
|
114
|
+
style: {
|
|
115
|
+
border,
|
|
116
|
+
background
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", children })
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
function IncompleteStep(props) {
|
|
124
|
+
const { Icon, children } = props;
|
|
125
|
+
const { completed, active, index } = useContext(StepContext);
|
|
126
|
+
const background = "var(--gray-5)";
|
|
127
|
+
const color = "var(--gray-a11)";
|
|
128
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
129
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
130
|
+
Avatar,
|
|
131
|
+
{
|
|
132
|
+
fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, children: index + 1 }),
|
|
133
|
+
radius: "full",
|
|
134
|
+
size: "medium",
|
|
135
|
+
style: {
|
|
136
|
+
background
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
141
|
+
] });
|
|
142
|
+
}
|
|
143
|
+
function ActiveStep(props) {
|
|
144
|
+
const { Icon, children } = props;
|
|
145
|
+
const { completed, active, index } = useContext(StepContext);
|
|
146
|
+
const background = "var(--accent-10)";
|
|
147
|
+
const color = "var(--accent-contrast)";
|
|
148
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
149
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
150
|
+
Avatar,
|
|
151
|
+
{
|
|
152
|
+
fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
153
|
+
radius: "full",
|
|
154
|
+
size: "medium",
|
|
155
|
+
style: { background }
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
159
|
+
] });
|
|
160
|
+
}
|
|
161
|
+
var Stepper = {
|
|
162
|
+
Root,
|
|
163
|
+
Step
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export {
|
|
167
|
+
Stepper
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=chunk-IMNCUPKU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/stepper.tsx"],"sourcesContent":["import React, { createContext, Children, useContext, useMemo } from 'react';\nimport { Separator } from '@radix-ui/themes';\nimport { Flex } from '../atoms/flex';\nimport { Avatar } from '../atoms/avatar';\nimport { CheckIcon } from '../icon';\nimport { Typo } from '../atoms/typo';\n\ninterface StepState extends Pick<StepperProps, 'direction'> {\n active: boolean;\n completed: boolean;\n index: number;\n}\n\nconst StepContext = createContext<StepState>({\n active: false,\n completed: false,\n index: 0,\n});\n\ninterface StepperProps {\n // 활성화된 스텝 인덱스. 0부터 시작\n activeStep?: number;\n children?: React.ReactNode | React.ReactNode[];\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n /** icon과 children의 배치 방향. 기본 값 vertical */\n direction?: 'horizontal' | 'vertical';\n}\n\nfunction Root(props: StepperProps): React.ReactNode {\n const {\n activeStep = 0,\n children,\n width,\n minWidth,\n maxWidth,\n direction = 'vertical',\n } = props;\n\n return (\n <Flex\n gap=\"3\"\n style={{\n width,\n minWidth,\n maxWidth,\n }}\n >\n {Children.map(children, (child, index) => {\n return (\n <StepContext.Provider\n value={{\n active: index === activeStep,\n completed: index < activeStep,\n index,\n direction,\n }}\n >\n {child}\n </StepContext.Provider>\n );\n })}\n </Flex>\n );\n}\n\ninterface StepProps {\n children?: React.ReactNode;\n /** 아이콘 커스텀 필요시 사용 */\n Icon?: (args: { completed: boolean; active: boolean }) => React.ReactNode;\n}\n\nfunction Step(props: StepProps): React.ReactNode {\n const { Icon, children } = props;\n const {\n active,\n completed,\n index,\n direction = 'vertical',\n } = useContext(StepContext);\n\n const connector =\n index > 0 ? (\n <Separator\n style={{\n width: `calc(100% - 40px)`,\n position: 'absolute',\n top: 16,\n right: `calc(50% + 26px)`,\n }}\n />\n ) : null;\n\n const InnerStep = useMemo<(props: StepProps) => React.ReactNode>(() => {\n if (active) {\n return ActiveStep;\n }\n if (completed) {\n return CompleteStep;\n }\n return IncompleteStep;\n }, [completed, active]);\n\n return (\n <Flex\n align=\"center\"\n direction={direction === 'horizontal' ? 'row' : 'column'}\n gap=\"4\"\n position=\"relative\"\n style={{ flex: 1 }}\n >\n {connector}\n <InnerStep Icon={Icon}>{children}</InnerStep>\n </Flex>\n );\n}\n\nfunction CompleteStep(props: StepProps): React.ReactNode {\n const { Icon, children } = props;\n const { completed, active } = useContext(StepContext);\n const background = 'var(--accent-a4)';\n const border = '1px solid var(--accent-7)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<CheckIcon fill={color} height={16} width={16} />}\n radius=\"full\"\n size=\"medium\"\n style={{\n border,\n background,\n }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction IncompleteStep(props: StepProps): React.ReactNode {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--gray-5)';\n const color = 'var(--gray-a11)';\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<Typo style={{ color }}>{index + 1}</Typo>}\n radius=\"full\"\n size=\"medium\"\n style={{\n background,\n }}\n />\n )}\n <Typo align=\"center\" style={{ color }} variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction ActiveStep(props: StepProps): React.ReactNode {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--accent-10)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={\n <Typo style={{ color }} weight=\"bold\">\n {index + 1}\n </Typo>\n }\n radius=\"full\"\n size=\"medium\"\n style={{ background }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\" weight=\"bold\">\n {children}\n </Typo>\n </>\n );\n}\n\nexport const Stepper = {\n Root,\n Step,\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAgB,eAAe,UAAU,YAAY,eAAe;AACpE,SAAS,iBAAiB;AAkDhB,SA2EN,UA3EM,KAsDN,YAtDM;AAtCV,IAAM,cAAc,cAAyB;AAAA,EAC3C,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AACT,CAAC;AAaD,SAAS,KAAK,OAAsC;AAClD,QAAM;AAAA,IACJ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEC,mBAAS,IAAI,UAAU,CAAC,OAAO,UAAU;AACxC,eACE;AAAA,UAAC,YAAY;AAAA,UAAZ;AAAA,YACC,OAAO;AAAA,cACL,QAAQ,UAAU;AAAA,cAClB,WAAW,QAAQ;AAAA,cACnB;AAAA,cACA;AAAA,YACF;AAAA,YAEC;AAAA;AAAA,QACH;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ;AAQA,SAAS,KAAK,OAAmC;AAC/C,QAAM,EAAE,MAAM,SAAS,IAAI;AAC3B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI,WAAW,WAAW;AAE1B,QAAM,YACJ,QAAQ,IACN;AAAA,IAAC;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AAAA,MAAC;AAAA;AAAA,QACC,UAAU,oBAAC,QAAK,OAAO,EAAE,MAAM,GAAI,kBAAQ,GAAE;AAAA,QAC7C,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAO;AAAA,UACL;AAAA,QACF;AAAA;AAAA,IACF;AAAA,IAEF,oBAAC,QAAK,OAAM,UAAS,OAAO,EAAE,MAAM,GAAG,SAAQ,WAC5C,UACH;AAAA,KACF;AAEJ;AAEA,SAAS,WAAW,OAAmC;AACrD,QAAM,EAAE,MAAM,SAAS,IAAI;AAC3B,QAAM,EAAE,WAAW,QAAQ,MAAM,IAAI,WAAW,WAAW;AAC3D,QAAM,aAAa;AACnB,QAAM,QAAQ;AAEd,SACE,iCACG;AAAA,WACC,oBAAC,QAAK,QAAgB,WAAsB,IAE5C;AAAA,MAAC;AAAA;AAAA,QACC,UACE,oBAAC,QAAK,OAAO,EAAE,MAAM,GAAG,QAAO,QAC5B,kBAAQ,GACX;AAAA,QAEF,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAO,EAAE,WAAW;AAAA;AAAA,IACtB;AAAA,IAEF,oBAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,QAAO,QAC3C,UACH;AAAA,KACF;AAEJ;AAEO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ReviewQuestionContentHeader
|
|
3
|
+
} from "./chunk-BQMQFE3E.js";
|
|
4
|
+
import {
|
|
5
|
+
RadioButtonCard
|
|
6
|
+
} from "./chunk-SLXXCM56.js";
|
|
7
|
+
import {
|
|
8
|
+
Grid
|
|
9
|
+
} from "./chunk-EGEQY3KT.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-LH57PIY2.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
import {
|
|
20
|
+
Button
|
|
21
|
+
} from "./chunk-AFPH32MF.js";
|
|
22
|
+
import {
|
|
23
|
+
Card
|
|
24
|
+
} from "./chunk-HEDMSFPW.js";
|
|
25
|
+
|
|
26
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
27
|
+
import { useCallback, useMemo, useState } from "react";
|
|
28
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
+
var correctAnswerStyle = {
|
|
30
|
+
backgroundColor: "var(--green-a2)"
|
|
31
|
+
};
|
|
32
|
+
function ReviewQuestionRadio(props) {
|
|
33
|
+
const { question, answer, onChange } = props;
|
|
34
|
+
const [isCheckAnswer, setIsCheckAnswer] = useState(false);
|
|
35
|
+
const checkAnswer = useCallback(() => {
|
|
36
|
+
setIsCheckAnswer(true);
|
|
37
|
+
}, []);
|
|
38
|
+
const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;
|
|
39
|
+
const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;
|
|
40
|
+
const radioColor = useMemo(() => {
|
|
41
|
+
if (isCorrect) return "green";
|
|
42
|
+
if (isWrong) return "red";
|
|
43
|
+
return void 0;
|
|
44
|
+
}, [isCorrect, isWrong]);
|
|
45
|
+
return /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
46
|
+
/* @__PURE__ */ jsx(Card, { mb: "4", size: "2", children: /* @__PURE__ */ jsx(
|
|
47
|
+
ReviewQuestionContentHeader,
|
|
48
|
+
{
|
|
49
|
+
icon: question.icon,
|
|
50
|
+
question: question.question,
|
|
51
|
+
title: question.title,
|
|
52
|
+
type: question.type
|
|
53
|
+
}
|
|
54
|
+
) }),
|
|
55
|
+
/* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Box, { position: "relative", children: /* @__PURE__ */ jsx(
|
|
57
|
+
RadioButtonCard.Root,
|
|
58
|
+
{
|
|
59
|
+
color: radioColor,
|
|
60
|
+
onValueChange: onChange,
|
|
61
|
+
style: {
|
|
62
|
+
width: "100%",
|
|
63
|
+
height: "100%",
|
|
64
|
+
overflowY: "auto",
|
|
65
|
+
position: "absolute"
|
|
66
|
+
},
|
|
67
|
+
value: answer,
|
|
68
|
+
children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
69
|
+
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
70
|
+
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
71
|
+
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
72
|
+
const style = (() => {
|
|
73
|
+
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
74
|
+
return {};
|
|
75
|
+
})();
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
RadioButtonCard.Item,
|
|
78
|
+
{
|
|
79
|
+
style,
|
|
80
|
+
value: i.toString(),
|
|
81
|
+
children: /* @__PURE__ */ jsxs(Box, { children: [
|
|
82
|
+
/* @__PURE__ */ jsx(Typo, { as: "p", children: option.label }),
|
|
83
|
+
isThisOptionCorrect ? /* @__PURE__ */ jsx(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
84
|
+
isThisOptionWrong ? /* @__PURE__ */ jsx(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
85
|
+
] })
|
|
86
|
+
},
|
|
87
|
+
`${option.label}-${i}`
|
|
88
|
+
);
|
|
89
|
+
}) })
|
|
90
|
+
}
|
|
91
|
+
) }),
|
|
92
|
+
/* @__PURE__ */ jsx(Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ jsx(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
var review_question_radio_default = ReviewQuestionRadio;
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
review_question_radio_default
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=chunk-IRXDPPGQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from 'react';\nimport { Box, Button, Card, Flex, Grid, Typo } from '@/atoms';\nimport { type CurriculumReviewQuestionRadio } from '@/types/curriculumContents.type'; \nimport { RadioButtonCard } from \"../../../../radio-button-card\";\nimport { ReviewQuestionContentHeader } from './review-comp';\n\ninterface ReviewQuestionRadioProps {\n question: CurriculumReviewQuestionRadio;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nconst correctAnswerStyle: React.CSSProperties = {\n backgroundColor: 'var(--green-a2)',\n};\n\nfunction ReviewQuestionRadio(props: ReviewQuestionRadioProps): React.ReactNode {\n const { question, answer, onChange } = props;\n const [isCheckAnswer, setIsCheckAnswer] = useState(false);\n\n const checkAnswer = useCallback(() => {\n setIsCheckAnswer(true);\n }, []);\n\n const isCorrect = isCheckAnswer && Number(answer) === question.correctAnswer;\n const isWrong = isCheckAnswer && Number(answer) !== question.correctAnswer;\n const radioColor = useMemo(() => {\n if (isCorrect) return 'green';\n if (isWrong) return 'red';\n return undefined;\n }, [isCorrect, isWrong]);\n\n return (\n <Grid height=\"100%\" rows=\"auto 1fr\" width=\"100%\">\n <Card mb=\"4\" size=\"2\">\n <ReviewQuestionContentHeader\n icon={question.icon}\n question={question.question}\n title={question.title}\n type={question.type}\n />\n </Card>\n\n <Grid height=\"100%\" rows=\"1fr auto\" width=\"100%\">\n <Box position=\"relative\">\n <RadioButtonCard.Root\n color={radioColor}\n onValueChange={onChange}\n style={{\n width: '100%',\n height: '100%',\n overflowY: 'auto',\n position: 'absolute',\n }}\n value={answer}\n >\n <Flex direction=\"column\" gap=\"2\" width=\"100%\">\n {question.options.map((option, i) => {\n const isThisOptionCorrect =\n isCheckAnswer && i === question.correctAnswer;\n const isThisOptionSelected =\n isCheckAnswer && i === Number(answer);\n const isThisOptionWrong =\n isCheckAnswer &&\n isThisOptionSelected &&\n i !== question.correctAnswer;\n const style = (() => {\n if (isThisOptionCorrect) return correctAnswerStyle;\n return {};\n })();\n\n return (\n <RadioButtonCard.Item\n // eslint-disable-next-line react/no-array-index-key -- 조합 키로 중복 회피\n key={`${option.label}-${i}`}\n style={style}\n value={i.toString()}\n >\n <Box>\n <Typo as=\"p\">{option.label}</Typo>\n {isThisOptionCorrect ? (\n <Typo color=\"green\">정답입니다</Typo>\n ) : null}\n {isThisOptionWrong ? (\n <Typo color=\"red\">정답이 아닙니다</Typo>\n ) : null}\n </Box>\n </RadioButtonCard.Item>\n );\n })}\n </Flex>\n </RadioButtonCard.Root>\n </Box>\n <Flex justify=\"end\" mt=\"2\">\n <Button onClick={checkAnswer}>정답 확인</Button>\n </Flex>\n </Grid>\n </Grid>\n );\n}\n\nexport default ReviewQuestionRadio;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,SAAS,gBAAgB;AAoC9C,cA2CY,YA3CZ;AAvBR,IAAM,qBAA0C;AAAA,EAC9C,iBAAiB;AACnB;AAEA,SAAS,oBAAoB,OAAkD;AAC7E,QAAM,EAAE,UAAU,QAAQ,SAAS,IAAI;AACvC,QAAM,CAAC,eAAe,gBAAgB,IAAI,SAAS,KAAK;AAExD,QAAM,cAAc,YAAY,MAAM;AACpC,qBAAiB,IAAI;AAAA,EACvB,GAAG,CAAC,CAAC;AAEL,QAAM,YAAY,iBAAiB,OAAO,MAAM,MAAM,SAAS;AAC/D,QAAM,UAAU,iBAAiB,OAAO,MAAM,MAAM,SAAS;AAC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AAQ,IACxB;AAAA,mBACN;AAAA;AAAA,cAZK,GAAG,OAAO,KAAK,IAAI,CAAC;AAAA,YAa3B;AAAA,UAEJ,CAAC,GACH;AAAA;AAAA,MACF,GACF;AAAA,MACA,oBAAC,QAAK,SAAQ,OAAM,IAAG,KACrB,8BAAC,UAAO,SAAS,aAAa,uCAAK,GACrC;AAAA,OACF;AAAA,KACF;AAEJ;AAEA,IAAO,gCAAQ;","names":[]}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
2
|
+
import {
|
|
3
|
+
createContext,
|
|
4
|
+
useContext,
|
|
5
|
+
useState,
|
|
6
|
+
useMemo,
|
|
7
|
+
useCallback,
|
|
8
|
+
useRef,
|
|
9
|
+
useEffect
|
|
10
|
+
} from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var CurriculumContext = createContext(
|
|
13
|
+
void 0
|
|
14
|
+
);
|
|
15
|
+
function CurriculumProvider(props) {
|
|
16
|
+
const {
|
|
17
|
+
children,
|
|
18
|
+
curriculum,
|
|
19
|
+
onReviewSubmit,
|
|
20
|
+
onReviewValueChange,
|
|
21
|
+
curriculumReviewAnswers,
|
|
22
|
+
tempCurriculumReviewAnswers,
|
|
23
|
+
curriculumCompleteMap,
|
|
24
|
+
onChangeSelectedContent,
|
|
25
|
+
onActionButtonClick,
|
|
26
|
+
initialSelectedIndex
|
|
27
|
+
} = props;
|
|
28
|
+
const sidebarRef = useRef(null);
|
|
29
|
+
const scrollNavItem = useCallback((index) => {
|
|
30
|
+
var _a;
|
|
31
|
+
const element = (_a = sidebarRef.current) == null ? void 0 : _a.querySelector(
|
|
32
|
+
`[data-curriculum-item-index="${index}"]`
|
|
33
|
+
);
|
|
34
|
+
if (element) {
|
|
35
|
+
element.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
const list = curriculum.contents.list;
|
|
39
|
+
const selectableIndexes = useMemo(
|
|
40
|
+
() => list.map((item, i) => item.type !== "sectionTitle" ? i : null).filter((i) => i !== null),
|
|
41
|
+
[list]
|
|
42
|
+
);
|
|
43
|
+
const [selectedIndexState, setSelectedIndexState] = useState(
|
|
44
|
+
initialSelectedIndex != null ? initialSelectedIndex : selectableIndexes[0]
|
|
45
|
+
);
|
|
46
|
+
const setSelectedIndex = useCallback(
|
|
47
|
+
(idx) => {
|
|
48
|
+
if (selectableIndexes.includes(idx)) {
|
|
49
|
+
setSelectedIndexState(idx);
|
|
50
|
+
} else {
|
|
51
|
+
const next = selectableIndexes.find((i) => i > idx);
|
|
52
|
+
const prev = [...selectableIndexes].reverse().find((i) => i < idx);
|
|
53
|
+
if (next !== void 0) setSelectedIndexState(next);
|
|
54
|
+
else if (prev !== void 0) setSelectedIndexState(prev);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[selectableIndexes]
|
|
58
|
+
);
|
|
59
|
+
const selectablePos = useMemo(
|
|
60
|
+
() => selectableIndexes.indexOf(selectedIndexState),
|
|
61
|
+
[selectableIndexes, selectedIndexState]
|
|
62
|
+
);
|
|
63
|
+
const hasPrev = selectablePos > 0;
|
|
64
|
+
const hasNext = selectablePos < selectableIndexes.length - 1;
|
|
65
|
+
const selectPrev = useCallback(
|
|
66
|
+
(cb) => {
|
|
67
|
+
setSelectedIndexState((cur) => {
|
|
68
|
+
let prevIndex = cur;
|
|
69
|
+
const pos = selectableIndexes.indexOf(cur);
|
|
70
|
+
if (pos > 0) {
|
|
71
|
+
prevIndex = selectableIndexes[pos - 1];
|
|
72
|
+
}
|
|
73
|
+
if (cb) cb(prevIndex);
|
|
74
|
+
return prevIndex;
|
|
75
|
+
});
|
|
76
|
+
},
|
|
77
|
+
[selectableIndexes]
|
|
78
|
+
);
|
|
79
|
+
const selectNext = useCallback(
|
|
80
|
+
(cb) => {
|
|
81
|
+
setSelectedIndexState((cur) => {
|
|
82
|
+
let nextIndex = cur;
|
|
83
|
+
const pos = selectableIndexes.indexOf(cur);
|
|
84
|
+
if (pos < selectableIndexes.length - 1) {
|
|
85
|
+
nextIndex = selectableIndexes[pos + 1];
|
|
86
|
+
}
|
|
87
|
+
if (cb) cb(nextIndex);
|
|
88
|
+
return nextIndex;
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
[selectableIndexes]
|
|
92
|
+
);
|
|
93
|
+
const selectedId = useMemo(
|
|
94
|
+
() => {
|
|
95
|
+
var _a, _b;
|
|
96
|
+
return (_b = (_a = list[selectedIndexState]) == null ? void 0 : _a.uuid) != null ? _b : "";
|
|
97
|
+
},
|
|
98
|
+
[list, selectedIndexState]
|
|
99
|
+
);
|
|
100
|
+
const selectedItem = useMemo(() => {
|
|
101
|
+
return list[selectedIndexState];
|
|
102
|
+
}, [list, selectedIndexState]);
|
|
103
|
+
const selectedSectionTitle = useMemo(() => {
|
|
104
|
+
var _a;
|
|
105
|
+
const prevItems = list.slice(0, selectedIndexState).reverse();
|
|
106
|
+
return (_a = prevItems.find((item) => item.type === "sectionTitle")) != null ? _a : null;
|
|
107
|
+
}, [list, selectedIndexState]);
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(selectedItem);
|
|
110
|
+
}, [selectedItem]);
|
|
111
|
+
return /* @__PURE__ */ jsx(CurriculumContext.Provider, { value: {
|
|
112
|
+
curriculum,
|
|
113
|
+
scrollNavItem,
|
|
114
|
+
selectedIndex: selectedIndexState,
|
|
115
|
+
setSelectedIndex,
|
|
116
|
+
selectedId,
|
|
117
|
+
hasPrev,
|
|
118
|
+
hasNext,
|
|
119
|
+
selectPrev,
|
|
120
|
+
selectNext,
|
|
121
|
+
selectedSectionTitle,
|
|
122
|
+
selectedItem,
|
|
123
|
+
scrollAreaRef: sidebarRef,
|
|
124
|
+
onReviewSubmit,
|
|
125
|
+
onReviewValueChange,
|
|
126
|
+
curriculumReviewAnswers,
|
|
127
|
+
tempCurriculumReviewAnswers,
|
|
128
|
+
curriculumCompleteMap,
|
|
129
|
+
onActionButtonClick
|
|
130
|
+
}, children });
|
|
131
|
+
}
|
|
132
|
+
function useCurriculumContext() {
|
|
133
|
+
const ctx = useContext(CurriculumContext);
|
|
134
|
+
if (!ctx)
|
|
135
|
+
throw new Error(
|
|
136
|
+
"useCurriculumContext must be used within CurriculumProvider"
|
|
137
|
+
);
|
|
138
|
+
return ctx;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
CurriculumProvider,
|
|
143
|
+
useCurriculumContext
|
|
144
|
+
};
|
|
145
|
+
//# sourceMappingURL=chunk-IYQJIEVM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/curriculum-context.tsx"],"sourcesContent":["import React, {\n createContext,\n useContext,\n useState,\n useMemo,\n useCallback,\n useRef,\n useEffect,\n} from 'react';\nimport { \n type CurriculumSectionTitleContents,\n} from '@/types/curriculumContents.type';\nimport type { Curriculum, CurriculumListContents } from '@/types/curriculum.type';\n\n\nexport interface CurriculumContextValue {\n curriculum: Curriculum;\n selectedIndex: number;\n setSelectedIndex: (idx: number) => void;\n selectedId: string;\n hasPrev: boolean;\n hasNext: boolean;\n selectPrev: (cb?: (moveIndex: number) => void) => void;\n selectNext: (cb?: (moveIndex: number) => void) => void;\n selectedItem: CurriculumListContents;\n /** 선택된 아이템의 이전 아이템 중 가장 가까운 섹션 타이틀 */\n selectedSectionTitle: CurriculumSectionTitleContents | null;\n /** 컨텐츠 목록 스크롤 이동 함수 */\n scrollNavItem: (uuid: string) => void;\n /** 스크롤 영역 참조 */\n scrollAreaRef: React.RefObject<HTMLDivElement | null>;\n /** 리뷰 제출 함수 */\n onReviewSubmit: ({\n reviewId,\n answer,\n }: {\n reviewId: string;\n answer: Record<string, string>;\n }) => Promise<boolean>;\n /** 리뷰 응답 값 변경 시 호출 */\n onReviewValueChange: ({\n reviewId,\n answer,\n }: {\n reviewId: string;\n answer: Record<string, string>;\n }) => void;\n /** 과제 완료 후 저장된 값 */\n curriculumReviewAnswers: Record<string, string>;\n /** 과제 완료 전 임시 저장된 값 */\n tempCurriculumReviewAnswers: Record<string, string>; \n /** 항목 수강 완료 여부 */\n curriculumCompleteMap: Record<string, boolean>;\n /** action Button 클릭시 호출 */\n onActionButtonClick: (item: CurriculumListContents) => void;\n /** 초기 선택 인덱스 */\n initialSelectedIndex?: number;\n}\n\nconst CurriculumContext = createContext<CurriculumContextValue | undefined>(\n undefined\n);\n\nexport interface CurriculumProviderProps extends Pick<CurriculumContextValue, 'curriculum' | 'onReviewSubmit' | 'onReviewValueChange' | 'curriculumReviewAnswers' | 'tempCurriculumReviewAnswers' | 'curriculumCompleteMap' | 'onActionButtonClick' | 'initialSelectedIndex'> {\n children: React.ReactNode; \n onReviewValueChange: ({\n reviewId,\n answer,\n }: {\n reviewId: string;\n answer: Record<string, string>;\n }) => void; \n\n /** 현재 화면에 표시 중인 컨텐츠 인덱스 변경 시 호출 */\n onChangeSelectedContent?: (item: CurriculumListContents) => void;\n}\n\nexport function CurriculumProvider(props: CurriculumProviderProps): React.ReactElement {\n const {\n children,\n curriculum,\n onReviewSubmit, \n onReviewValueChange,\n curriculumReviewAnswers,\n tempCurriculumReviewAnswers, \n curriculumCompleteMap,\n onChangeSelectedContent,\n onActionButtonClick,\n initialSelectedIndex\n } = props;\n const sidebarRef = useRef<HTMLDivElement>(null);\n\n const scrollNavItem = useCallback((index: string) => {\n const element = sidebarRef.current?.querySelector(\n `[data-curriculum-item-index=\"${index}\"]`\n );\n if (element) {\n element.scrollIntoView({ behavior: 'smooth', block: 'start' });\n }\n }, []);\n\n const list = curriculum.contents.list;\n // 선택 가능한 인덱스만 추출\n const selectableIndexes = useMemo(\n () =>\n list\n .map((item, i) => (item.type !== 'sectionTitle' ? i : null))\n .filter((i): i is number => i !== null),\n [list]\n );\n // 최초 선택값: 첫 번째 선택 가능한 인덱스\n const [selectedIndexState, setSelectedIndexState] = useState<number>(\n initialSelectedIndex ?? selectableIndexes[0]\n );\n\n // 선택 인덱스 보정 함수\n const setSelectedIndex = useCallback(\n (idx: number) => {\n if (selectableIndexes.includes(idx)) {\n setSelectedIndexState(idx);\n } else {\n // idx가 선택 불가면, selectableIndexes에서 가장 가까운 다음 인덱스 선택\n const next = selectableIndexes.find((i) => i > idx);\n const prev = [...selectableIndexes].reverse().find((i) => i < idx);\n if (next !== undefined) setSelectedIndexState(next);\n else if (prev !== undefined) setSelectedIndexState(prev);\n }\n },\n [selectableIndexes]\n );\n\n // 현재 선택 인덱스가 selectableIndexes 내 몇 번째인지\n const selectablePos = useMemo(\n () => selectableIndexes.indexOf(selectedIndexState),\n [selectableIndexes, selectedIndexState]\n );\n const hasPrev = selectablePos > 0;\n const hasNext = selectablePos < selectableIndexes.length - 1;\n\n const selectPrev = useCallback(\n (cb?: (moveIndex: number) => void) => {\n setSelectedIndexState((cur) => {\n let prevIndex = cur;\n const pos = selectableIndexes.indexOf(cur);\n if (pos > 0) {\n prevIndex = selectableIndexes[pos - 1];\n }\n if (cb) cb(prevIndex);\n return prevIndex;\n });\n },\n [selectableIndexes]\n );\n const selectNext = useCallback(\n (cb?: (moveIndex: number) => void) => {\n setSelectedIndexState((cur) => {\n let nextIndex = cur;\n const pos = selectableIndexes.indexOf(cur);\n if (pos < selectableIndexes.length - 1) {\n nextIndex = selectableIndexes[pos + 1];\n }\n if (cb) cb(nextIndex);\n return nextIndex;\n });\n },\n [selectableIndexes]\n );\n\n const selectedId = useMemo(\n () => list[selectedIndexState]?.uuid ?? '',\n [list, selectedIndexState]\n );\n\n const selectedItem = useMemo(()=>{\n return list[selectedIndexState];\n },[list,selectedIndexState])\n\n const selectedSectionTitle = useMemo(() => {\n // selectedIndexState 이전 인덱스 중 가장 가까운 섹션 타이틀 찾기\n const prevItems = list.slice(0, selectedIndexState).reverse();\n return prevItems.find((item) => item.type === 'sectionTitle') ?? null;\n }, [list, selectedIndexState]);\n \n\n useEffect(()=>{ \n onChangeSelectedContent?.(selectedItem);\n // eslint-disable-next-line react-hooks/exhaustive-deps -- 트리거 최소화\n },[selectedItem])\n\n return (\n <CurriculumContext.Provider value={{\n curriculum,\n scrollNavItem,\n selectedIndex: selectedIndexState,\n setSelectedIndex,\n selectedId,\n hasPrev,\n hasNext,\n selectPrev,\n selectNext,\n selectedSectionTitle,\n selectedItem,\n scrollAreaRef: sidebarRef,\n onReviewSubmit, \n onReviewValueChange,\n curriculumReviewAnswers,\n tempCurriculumReviewAnswers, \n curriculumCompleteMap,\n onActionButtonClick\n }}>\n {children}\n </CurriculumContext.Provider>\n );\n}\n\nexport function useCurriculumContext(): CurriculumContextValue {\n const ctx = useContext(CurriculumContext);\n if (!ctx)\n throw new Error(\n 'useCurriculumContext must be used within CurriculumProvider'\n );\n return ctx;\n}\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAsLH;AAnIJ,IAAM,oBAAoB;AAAA,EACxB;AACF;AAgBO,SAAS,mBAAmB,OAAoD;AACrF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AACJ,QAAM,aAAa,OAAuB,IAAI;AAE9C,QAAM,gBAAgB,YAAY,CAAC,UAAkB;AA5FvD;AA6FI,UAAM,WAAU,gBAAW,YAAX,mBAAoB;AAAA,MAClC,gCAAgC,KAAK;AAAA;AAEvC,QAAI,SAAS;AACX,cAAQ,eAAe,EAAE,UAAU,UAAU,OAAO,QAAQ,CAAC;AAAA,IAC/D;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,OAAO,WAAW,SAAS;AAEjC,QAAM,oBAAoB;AAAA,IACxB,MACE,KACG,IAAI,CAAC,MAAM,MAAO,KAAK,SAAS,iBAAiB,IAAI,IAAK,EAC1D,OAAO,CAA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"./chunk-3F45OPXG.js";
|
|
7
|
+
import {
|
|
8
|
+
Grid
|
|
9
|
+
} from "./chunk-EGEQY3KT.js";
|
|
10
|
+
import {
|
|
11
|
+
Card
|
|
12
|
+
} from "./chunk-HEDMSFPW.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
function ReviewQuestionSatisfisText(props) {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
const { question, answer, onChange } = props;
|
|
19
|
+
return /* @__PURE__ */ jsx(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ jsxs(Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
21
|
+
ReviewQuestionContentHeader,
|
|
22
|
+
{
|
|
23
|
+
icon: question.icon,
|
|
24
|
+
question: (_a = question.question) != null ? _a : "\uC774\uBC88 \uD559\uC2B5\uC5D0 \uB300\uD574 \uCD94\uAC00\uB85C \uB0A8\uAE38 \uC758\uACAC\uC774 \uC788\uB2E4\uBA74 \uACF5\uC720\uD574\uC8FC\uC138\uC694.",
|
|
25
|
+
title: (_b = question.title) != null ? _b : "\uB9CC\uC871\uB3C4 \uC870\uC0AC",
|
|
26
|
+
type: question.type
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
TextArea,
|
|
31
|
+
{
|
|
32
|
+
mt: "2",
|
|
33
|
+
onChange: (e) => {
|
|
34
|
+
onChange(e.target.value);
|
|
35
|
+
},
|
|
36
|
+
placeholder: question.placeholder,
|
|
37
|
+
style: {
|
|
38
|
+
height: "100%"
|
|
39
|
+
},
|
|
40
|
+
value: answer
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }) });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
ReviewQuestionSatisfisText
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=chunk-J6BYDVYS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx"],"sourcesContent":["import React from 'react';\nimport { Card, Grid, TextArea } from '@/atoms';\nimport { type CurriculumReviewQuestionSatisfactionText } from '@/types/curriculumContents.type';\nimport { ReviewQuestionContentHeader } from './review-comp';\n\ninterface ReviewQuestionSatisfactionTextProps {\n question: CurriculumReviewQuestionSatisfactionText;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nexport default function ReviewQuestionSatisfisText(\n props: ReviewQuestionSatisfactionTextProps\n): React.ReactNode {\n const { question, answer, onChange } = props;\n\n return (\n <Card size=\"2\" style={{ height: '100%', width: '100%' }}>\n <Grid height=\"100%\" rows=\"auto 1fr\">\n <ReviewQuestionContentHeader\n icon={question.icon}\n question={\n question.question ??\n '이번 학습에 대해 추가로 남길 의견이 있다면 공유해주세요.'\n }\n title={question.title ?? '만족도 조사'}\n type={question.type}\n />\n <TextArea\n mt=\"2\"\n onChange={(e) => {\n onChange(e.target.value);\n }}\n placeholder={question.placeholder}\n style={{\n height: '100%',\n }}\n value={answer}\n />\n </Grid>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAmBM,SACE,KADF;AAPS,SAAR,2BACL,OACiB;AAdnB;AAeE,QAAM,EAAE,UAAU,QAAQ,SAAS,IAAI;AAEvC,SACE,oBAAC,QAAK,MAAK,KAAI,OAAO,EAAE,QAAQ,QAAQ,OAAO,OAAO,GACpD,+BAAC,QAAK,QAAO,QAAO,MAAK,YACvB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,SAAS;AAAA,QACf,WACE,cAAS,aAAT,YACA;AAAA,QAEF,QAAO,cAAS,UAAT,YAAkB;AAAA,QACzB,MAAM,SAAS;AAAA;AAAA,IACjB;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,UAAU,CAAC,MAAM;AACf,mBAAS,EAAE,OAAO,KAAK;AAAA,QACzB;AAAA,QACA,aAAa,SAAS;AAAA,QACtB,OAAO;AAAA,UACL,QAAQ;AAAA,QACV;AAAA,QACA,OAAO;AAAA;AAAA,IACT;AAAA,KACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCurriculumReviewContext
|
|
3
|
+
} from "./chunk-EBGKFGME.js";
|
|
4
|
+
import {
|
|
5
|
+
getCurriculumIcon,
|
|
6
|
+
getCurriculumQuestionIconColor,
|
|
7
|
+
getCurriculumQuestionTypeDescription
|
|
8
|
+
} from "./chunk-PAFFDZBG.js";
|
|
9
|
+
import {
|
|
10
|
+
Grid
|
|
11
|
+
} from "./chunk-EGEQY3KT.js";
|
|
12
|
+
import {
|
|
13
|
+
Heading
|
|
14
|
+
} from "./chunk-3IT3NVK6.js";
|
|
15
|
+
import {
|
|
16
|
+
Separator
|
|
17
|
+
} from "./chunk-HYITAA4J.js";
|
|
18
|
+
import {
|
|
19
|
+
Badge
|
|
20
|
+
} from "./chunk-FCIHNIOH.js";
|
|
21
|
+
import {
|
|
22
|
+
Box
|
|
23
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
24
|
+
import {
|
|
25
|
+
Flex
|
|
26
|
+
} from "./chunk-25HMMI7R.js";
|
|
27
|
+
import {
|
|
28
|
+
Typo
|
|
29
|
+
} from "./chunk-LH57PIY2.js";
|
|
30
|
+
import {
|
|
31
|
+
Button
|
|
32
|
+
} from "./chunk-AFPH32MF.js";
|
|
33
|
+
|
|
34
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
35
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
+
var renderPreviewContent = (args) => {
|
|
37
|
+
const { question } = args;
|
|
38
|
+
const Icon = getCurriculumIcon({
|
|
39
|
+
type: question.type,
|
|
40
|
+
icon: question.icon
|
|
41
|
+
});
|
|
42
|
+
const getDescription = () => {
|
|
43
|
+
return [
|
|
44
|
+
getCurriculumQuestionTypeDescription(question.type),
|
|
45
|
+
question.duration ? `${question.duration}\uBD84` : ""
|
|
46
|
+
].filter(Boolean).join(" | ");
|
|
47
|
+
};
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
Grid,
|
|
50
|
+
{
|
|
51
|
+
columns: "16px 1fr",
|
|
52
|
+
gap: "2",
|
|
53
|
+
px: "4",
|
|
54
|
+
py: "2",
|
|
55
|
+
width: "100%",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsx(Box, { mt: "1", children: /* @__PURE__ */ jsx(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
58
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
60
|
+
/* @__PURE__ */ jsx(Typo, { color: "gray", children: getDescription() })
|
|
61
|
+
] })
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
question.uuid
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
var getReviewContentValue = (question, answer) => {
|
|
68
|
+
var _a, _b, _c;
|
|
69
|
+
if (question.type === "question_satisfaction_option") {
|
|
70
|
+
return (_c = (_b = (_a = question.options) == null ? void 0 : _a.find((option) => option.value === Number(answer))) == null ? void 0 : _b.label) != null ? _c : "";
|
|
71
|
+
}
|
|
72
|
+
return answer;
|
|
73
|
+
};
|
|
74
|
+
var renderReviewContent = (args) => {
|
|
75
|
+
const { question, answer } = args;
|
|
76
|
+
const Icon = getCurriculumIcon({
|
|
77
|
+
type: question.type,
|
|
78
|
+
icon: question.icon
|
|
79
|
+
});
|
|
80
|
+
const color = getCurriculumQuestionIconColor(question.type);
|
|
81
|
+
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
82
|
+
const value = getReviewContentValue(question, answer);
|
|
83
|
+
return /* @__PURE__ */ jsxs(
|
|
84
|
+
Grid,
|
|
85
|
+
{
|
|
86
|
+
columns: "16px 1fr",
|
|
87
|
+
gap: "2",
|
|
88
|
+
px: "4",
|
|
89
|
+
py: "2",
|
|
90
|
+
width: "100%",
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Icon, { color }) }),
|
|
93
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
94
|
+
/* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
95
|
+
/* @__PURE__ */ jsx(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
96
|
+
] })
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
question.uuid
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
function StartReview({ onStart }) {
|
|
103
|
+
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
104
|
+
return /* @__PURE__ */ jsx(
|
|
105
|
+
Flex,
|
|
106
|
+
{
|
|
107
|
+
align: "center",
|
|
108
|
+
direction: "column",
|
|
109
|
+
height: "100%",
|
|
110
|
+
justify: "center",
|
|
111
|
+
width: "100%",
|
|
112
|
+
children: /* @__PURE__ */ jsxs(
|
|
113
|
+
Flex,
|
|
114
|
+
{
|
|
115
|
+
align: "center",
|
|
116
|
+
direction: "column",
|
|
117
|
+
height: "100%",
|
|
118
|
+
justify: "center",
|
|
119
|
+
maxWidth: "650px",
|
|
120
|
+
pb: "6",
|
|
121
|
+
pt: "4",
|
|
122
|
+
px: "4",
|
|
123
|
+
width: "100%",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx(Typo, { color: "gray", children: curriculum.title }),
|
|
126
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading3", children: reviewContents.title }),
|
|
127
|
+
/* @__PURE__ */ jsx(Separator, { my: "4", style: { width: 100 } }),
|
|
128
|
+
/* @__PURE__ */ jsxs(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
129
|
+
/* @__PURE__ */ jsx(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
130
|
+
/* @__PURE__ */ jsx(Typo, { children: reviewContents.description })
|
|
131
|
+
] }),
|
|
132
|
+
/* @__PURE__ */ jsx(Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
133
|
+
if (done) {
|
|
134
|
+
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
135
|
+
}
|
|
136
|
+
return renderPreviewContent({ question });
|
|
137
|
+
}) }),
|
|
138
|
+
/* @__PURE__ */ jsx(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
var start_review_default = StartReview;
|
|
146
|
+
|
|
147
|
+
export {
|
|
148
|
+
start_review_default
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=chunk-JC452KO5.js.map
|