@tipp/ui 2.2.2 → 2.2.3
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 +6 -3
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +53 -53
- package/dist/app/platform/coach-question-list.cjs +4 -1
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +26 -26
- package/dist/app/platform/contents-card.cjs +4 -1
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +26 -26
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs +6 -3
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +41 -41
- package/dist/app/platform/edit-service-type.cjs +5 -2
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +41 -41
- package/dist/app/platform/goal-manage-card-edit.cjs +6 -3
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +42 -42
- package/dist/app/platform/goal-manage-card-read.cjs +4 -1
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +26 -26
- package/dist/app/platform/on-offline-radio-card.cjs +5 -2
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +41 -41
- package/dist/app/platform/report-card.cjs +4 -1
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +26 -26
- package/dist/app/platform/reservation-card.cjs +6 -3
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +42 -42
- package/dist/app/platform/session-card.cjs +6 -3
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +42 -42
- package/dist/app/platform/session-review-simple-read.cjs +4 -1
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +4 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +28 -28
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +4 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +4 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +26 -26
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +4 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +25 -25
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +4 -1
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +25 -25
- package/dist/app/platform/userInfos/utils.cjs +4 -1
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +25 -25
- package/dist/atoms/index.cjs +28 -6
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +62 -62
- package/dist/atoms/list.cjs +28 -6
- package/dist/atoms/list.cjs.map +1 -1
- package/dist/atoms/list.d.cts +3 -0
- package/dist/atoms/list.d.ts +3 -0
- package/dist/atoms/list.js +1 -1
- package/dist/chunk-2EQJDJYM.js +101 -0
- package/dist/chunk-2EQJDJYM.js.map +1 -0
- package/dist/chunk-2MOOBN5C.js +89 -0
- package/dist/chunk-2MOOBN5C.js.map +1 -0
- package/dist/chunk-3KPDWI34.js +145 -0
- package/dist/chunk-3KPDWI34.js.map +1 -0
- package/dist/chunk-3O476TUU.js +169 -0
- package/dist/chunk-3O476TUU.js.map +1 -0
- package/dist/chunk-46CZ4UER.js +74 -0
- package/dist/chunk-46CZ4UER.js.map +1 -0
- package/dist/chunk-4UQULOMW.js +64 -0
- package/dist/chunk-4UQULOMW.js.map +1 -0
- package/dist/chunk-5O7X52HC.js +37 -0
- package/dist/chunk-5O7X52HC.js.map +1 -0
- package/dist/chunk-65TSYJ74.js +89 -0
- package/dist/chunk-65TSYJ74.js.map +1 -0
- package/dist/chunk-6M4TKPFU.js +363 -0
- package/dist/chunk-6M4TKPFU.js.map +1 -0
- package/dist/chunk-7NH52DGC.js +74 -0
- package/dist/chunk-7NH52DGC.js.map +1 -0
- package/dist/chunk-7V3R3M75.js +47 -0
- package/dist/chunk-7V3R3M75.js.map +1 -0
- package/dist/chunk-AVTT5HWW.js +47 -0
- package/dist/chunk-AVTT5HWW.js.map +1 -0
- package/dist/chunk-AWZGFP6I.js +64 -0
- package/dist/chunk-AWZGFP6I.js.map +1 -0
- package/dist/chunk-AZXDKQTU.js +49 -0
- package/dist/chunk-AZXDKQTU.js.map +1 -0
- package/dist/chunk-BXEU65XG.js +47 -0
- package/dist/chunk-BXEU65XG.js.map +1 -0
- package/dist/chunk-CZTHP3LQ.js +30 -0
- package/dist/chunk-CZTHP3LQ.js.map +1 -0
- package/dist/chunk-D32EAZMA.js +68 -0
- package/dist/chunk-D32EAZMA.js.map +1 -0
- package/dist/chunk-DDFAMGNW.js +117 -0
- package/dist/chunk-DDFAMGNW.js.map +1 -0
- package/dist/chunk-EU666CUH.js +54 -0
- package/dist/chunk-EU666CUH.js.map +1 -0
- package/dist/chunk-F3JZQYPT.js +30 -0
- package/dist/chunk-F3JZQYPT.js.map +1 -0
- package/dist/chunk-FF2UDVNV.js +58 -0
- package/dist/chunk-FF2UDVNV.js.map +1 -0
- package/dist/chunk-FFE3SS5B.js +69 -0
- package/dist/chunk-FFE3SS5B.js.map +1 -0
- package/dist/chunk-FOBIJN2V.js +47 -0
- package/dist/chunk-FOBIJN2V.js.map +1 -0
- package/dist/chunk-FZCEMRC4.js +63 -0
- package/dist/chunk-FZCEMRC4.js.map +1 -0
- package/dist/chunk-G4B3S4C7.js +64 -0
- package/dist/chunk-G4B3S4C7.js.map +1 -0
- package/dist/chunk-GAEBWJDO.js +196 -0
- package/dist/chunk-GAEBWJDO.js.map +1 -0
- package/dist/chunk-GDQT2HUH.js +145 -0
- package/dist/chunk-GDQT2HUH.js.map +1 -0
- package/dist/chunk-GMRXEZIY.js +63 -0
- package/dist/chunk-GMRXEZIY.js.map +1 -0
- package/dist/chunk-GXMSHT3N.js +63 -0
- package/dist/chunk-GXMSHT3N.js.map +1 -0
- package/dist/chunk-HAC5DGNI.js +165 -0
- package/dist/chunk-HAC5DGNI.js.map +1 -0
- package/dist/chunk-HCT3LMGE.js +74 -0
- package/dist/chunk-HCT3LMGE.js.map +1 -0
- package/dist/chunk-IDLWTGG3.js +144 -0
- package/dist/chunk-IDLWTGG3.js.map +1 -0
- package/dist/chunk-J4CSQ6AW.js +74 -0
- package/dist/chunk-J4CSQ6AW.js.map +1 -0
- package/dist/chunk-J4YBXKP5.js +87 -0
- package/dist/chunk-J4YBXKP5.js.map +1 -0
- package/dist/chunk-JSOXMJ6K.js +43 -0
- package/dist/chunk-JSOXMJ6K.js.map +1 -0
- package/dist/chunk-K52ONO7C.js +101 -0
- package/dist/chunk-K52ONO7C.js.map +1 -0
- package/dist/chunk-KKJDGONH.js +99 -0
- package/dist/chunk-KKJDGONH.js.map +1 -0
- package/dist/chunk-KWHMRJC6.js +69 -0
- package/dist/chunk-KWHMRJC6.js.map +1 -0
- package/dist/chunk-LKU34QXP.js +163 -0
- package/dist/chunk-LKU34QXP.js.map +1 -0
- package/dist/chunk-LLXJRWHR.js +196 -0
- package/dist/chunk-LLXJRWHR.js.map +1 -0
- package/dist/chunk-M3P6YIO2.js +47 -0
- package/dist/chunk-M3P6YIO2.js.map +1 -0
- package/dist/chunk-MGDEKKA5.js +151 -0
- package/dist/chunk-MGDEKKA5.js.map +1 -0
- package/dist/chunk-MK4PHJAX.js +196 -0
- package/dist/chunk-MK4PHJAX.js.map +1 -0
- package/dist/chunk-NID37EIP.js +61 -0
- package/dist/chunk-NID37EIP.js.map +1 -0
- package/dist/chunk-OAQZ5XEP.js +39 -0
- package/dist/chunk-OAQZ5XEP.js.map +1 -0
- package/dist/chunk-OKHSIITN.js +74 -0
- package/dist/chunk-OKHSIITN.js.map +1 -0
- package/dist/chunk-PAFFDZBG.js +105 -0
- package/dist/chunk-PAFFDZBG.js.map +1 -0
- package/dist/chunk-PPAOS4LE.js +69 -0
- package/dist/chunk-PPAOS4LE.js.map +1 -0
- package/dist/chunk-QQ4ZK4BW.js +37 -0
- package/dist/chunk-QQ4ZK4BW.js.map +1 -0
- package/dist/chunk-S2HAUOAM.js +61 -0
- package/dist/chunk-S2HAUOAM.js.map +1 -0
- package/dist/chunk-TMIPXDK3.js +228 -0
- package/dist/chunk-TMIPXDK3.js.map +1 -0
- package/dist/chunk-TPJM2QDL.js +74 -0
- package/dist/chunk-TPJM2QDL.js.map +1 -0
- package/dist/chunk-UPZMRMK7.js +29 -0
- package/dist/chunk-UPZMRMK7.js.map +1 -0
- package/dist/chunk-UWRJ53C5.js +47 -0
- package/dist/chunk-UWRJ53C5.js.map +1 -0
- package/dist/chunk-V4VPWOSB.js +89 -0
- package/dist/chunk-V4VPWOSB.js.map +1 -0
- package/dist/chunk-V7KM5QTU.js +61 -0
- package/dist/chunk-V7KM5QTU.js.map +1 -0
- package/dist/chunk-VME3UMWT.js +58 -0
- package/dist/chunk-VME3UMWT.js.map +1 -0
- package/dist/chunk-VN5DG43B.js +64 -0
- package/dist/chunk-VN5DG43B.js.map +1 -0
- package/dist/chunk-WB2EZAD2.js +87 -0
- package/dist/chunk-WB2EZAD2.js.map +1 -0
- package/dist/chunk-WD5UQYQX.js +51 -0
- package/dist/chunk-WD5UQYQX.js.map +1 -0
- package/dist/chunk-WFJ3KSZ6.js +63 -0
- package/dist/chunk-WFJ3KSZ6.js.map +1 -0
- package/dist/chunk-X5QN3PGA.js +74 -0
- package/dist/chunk-X5QN3PGA.js.map +1 -0
- package/dist/chunk-XHLO7WZC.js +51 -0
- package/dist/chunk-XHLO7WZC.js.map +1 -0
- package/dist/chunk-XT5EJDW7.js +74 -0
- package/dist/chunk-XT5EJDW7.js.map +1 -0
- package/dist/chunk-YOXVR4DB.js +151 -0
- package/dist/chunk-YOXVR4DB.js.map +1 -0
- package/dist/chunk-Z6TXDHX6.js +117 -0
- package/dist/chunk-Z6TXDHX6.js.map +1 -0
- package/dist/chunk-ZAX4EGCS.js +74 -0
- package/dist/chunk-ZAX4EGCS.js.map +1 -0
- package/dist/index.cjs +30 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -3
- package/dist/index.js +100 -100
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +30 -30
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +4 -1
- 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 +29 -29
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +4 -1
- 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 +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +4 -1
- 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 +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs +4 -1
- 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 +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +4 -1
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +4 -1
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +4 -1
- 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 +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +4 -1
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +32 -32
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +33 -33
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +35 -35
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs +4 -1
- 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 +25 -25
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +25 -25
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +28 -28
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +4 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +27 -27
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +4 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +25 -25
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs +4 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +25 -25
- package/dist/molecules/curriculumV2/index.cjs +4 -1
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +38 -38
- package/dist/molecules/date-picker/date-picker-button.cjs +6 -3
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +25 -25
- package/dist/molecules/date-picker/index.cjs +4 -1
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +25 -25
- package/dist/molecules/expand-table/index.cjs +4 -1
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +25 -25
- package/dist/molecules/expand-table/row.cjs +4 -1
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +25 -25
- package/dist/molecules/index.cjs +6 -3
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +41 -41
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.cjs +4 -1
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +25 -25
- package/dist/molecules/radio-button-card.cjs +4 -1
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +25 -25
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs +4 -1
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +26 -26
- package/dist/molecules/time-select.cjs +4 -1
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +25 -25
- package/package.json +3 -3
- package/src/atoms/list.tsx +53 -31
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ReviewQuestionContentHeader
|
|
3
|
+
} from "./chunk-JSOXMJ6K.js";
|
|
4
|
+
import {
|
|
5
|
+
TextArea
|
|
6
|
+
} from "./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-AZXDKQTU.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,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-PARGQUJB.js";
|
|
7
|
+
import {
|
|
8
|
+
mapWithResponsive
|
|
9
|
+
} from "./chunk-LDBWASUA.js";
|
|
10
|
+
|
|
11
|
+
// src/atoms/list.tsx
|
|
12
|
+
import { createContext, useContext, useMemo } from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
function Root(props) {
|
|
15
|
+
const { variant, size = "large", children } = props;
|
|
16
|
+
const Comp = variant === "ol" ? "ol" : "ul";
|
|
17
|
+
return /* @__PURE__ */ jsx(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(Flex, { asChild: true, direction: "column", gap: "1", children: /* @__PURE__ */ jsx(Comp, { children }) }) });
|
|
18
|
+
}
|
|
19
|
+
function Item(props) {
|
|
20
|
+
const { children } = props;
|
|
21
|
+
const { size } = useList();
|
|
22
|
+
const variant = useMemo(() => {
|
|
23
|
+
return mapWithResponsive({
|
|
24
|
+
value: size,
|
|
25
|
+
mapFn: (sizeValue) => {
|
|
26
|
+
return sizeValue === "small" ? "caption" : "body";
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}, [size]);
|
|
30
|
+
return /* @__PURE__ */ jsx(Typo, { asChild: true, variant, children: /* @__PURE__ */ jsx("li", { children }) });
|
|
31
|
+
}
|
|
32
|
+
var ListContext = createContext({
|
|
33
|
+
size: "large"
|
|
34
|
+
});
|
|
35
|
+
function useList() {
|
|
36
|
+
return useContext(ListContext);
|
|
37
|
+
}
|
|
38
|
+
var List = {
|
|
39
|
+
Root,
|
|
40
|
+
Item
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
useList,
|
|
45
|
+
List
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=chunk-BXEU65XG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/list.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: boolean;\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const { variant, size = 'large', children } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\">\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n"],"mappings":";;;;;;;;;;;AACA,SAAgB,eAAe,YAAY,eAAe;AAkBlD;AANR,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,OAAO,SAAS,SAAS,IAAI;AAC9C,QAAM,OAAO,YAAY,OAAO,OAAO;AACvC,SACE,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAE,KAAK,GAClC,8BAAC,QAAK,SAAO,MAAC,WAAU,UAAS,KAAI,KACnC,8BAAC,QAAM,UAAS,GAClB,GACF;AAEJ;AAMA,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,EAAE,KAAK,IAAI,QAAQ;AAEzB,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,kBAAkB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,oBAAC,QAAK,SAAO,MAAC,SACZ,8BAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,cAAc,cAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,SAAO,WAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CoachingCustomerInfoLarge
|
|
3
|
+
} from "./chunk-G4B3S4C7.js";
|
|
4
|
+
import {
|
|
5
|
+
CoachingCustomerInfoMedium
|
|
6
|
+
} from "./chunk-J4CSQ6AW.js";
|
|
7
|
+
import {
|
|
8
|
+
CoachingCustomerInfoSmall
|
|
9
|
+
} from "./chunk-DWYEA2Q4.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
__spreadValues
|
|
15
|
+
} from "./chunk-2NMEKWO5.js";
|
|
16
|
+
|
|
17
|
+
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
18
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
function CoachingCustomerInfo(props) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
22
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
23
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
CoachingCustomerInfo
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-CZTHP3LQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { CoachingCustomerInfoSmall } from './small';\nimport { CoachingCustomerInfoMedium } from './medium';\nimport { CoachingCustomerInfoLarge } from './large';\n\nexport {\n CoachingCustomerInfoLarge,\n CoachingCustomerInfoMedium,\n CoachingCustomerInfoSmall,\n};\n\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactNode {\n return (\n <>\n <Box display={{ initial: 'block', sm: 'none', md: 'none' }}>\n <CoachingCustomerInfoSmall {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'block', md: 'none' }}>\n <CoachingCustomerInfoMedium {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'none', md: 'block' }}>\n <CoachingCustomerInfoLarge {...props} />\n </Box>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACiB;AACjB,SACE,iCACE;AAAA,wBAAC,OAAI,SAAS,EAAE,SAAS,SAAS,IAAI,QAAQ,IAAI,OAAO,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,SAAS,IAAI,OAAO,GACvD,8BAAC,+CAA+B,MAAO,GACzC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,QAAQ,IAAI,QAAQ,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Heading
|
|
3
|
+
} from "./chunk-34OQDUQR.js";
|
|
4
|
+
import {
|
|
5
|
+
Box
|
|
6
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
7
|
+
import {
|
|
8
|
+
Typo
|
|
9
|
+
} from "./chunk-PARGQUJB.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
Button
|
|
15
|
+
} from "./chunk-BW46WIN5.js";
|
|
16
|
+
import {
|
|
17
|
+
Card
|
|
18
|
+
} from "./chunk-HEDMSFPW.js";
|
|
19
|
+
import {
|
|
20
|
+
DownloadIcon
|
|
21
|
+
} from "./chunk-V5XKNSCK.js";
|
|
22
|
+
|
|
23
|
+
// src/app/platform/report-card.tsx
|
|
24
|
+
import { useCallback } from "react";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
function ReportCard(props) {
|
|
27
|
+
const { title, file, status, subtitle } = props;
|
|
28
|
+
const onClickDownload = useCallback(() => {
|
|
29
|
+
if (!file) return;
|
|
30
|
+
const { url, fileName } = file;
|
|
31
|
+
const link = document.createElement("a");
|
|
32
|
+
link.href = url;
|
|
33
|
+
link.download = fileName;
|
|
34
|
+
link.target = "_blank";
|
|
35
|
+
document.body.appendChild(link);
|
|
36
|
+
link.click();
|
|
37
|
+
document.body.removeChild(link);
|
|
38
|
+
}, [file]);
|
|
39
|
+
if (status) {
|
|
40
|
+
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: title }),
|
|
42
|
+
status
|
|
43
|
+
] }) });
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(
|
|
46
|
+
Flex,
|
|
47
|
+
{
|
|
48
|
+
direction: { initial: "column", xs: "row" },
|
|
49
|
+
gapY: "2",
|
|
50
|
+
justify: "between",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
53
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: title }),
|
|
54
|
+
subtitle ? /* @__PURE__ */ jsx(Typo, { color: "gray", children: subtitle }) : null
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ jsx(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ jsxs(Flex, { gap: "2", width: "100%", children: [
|
|
57
|
+
/* @__PURE__ */ jsx(DownloadIcon, {}),
|
|
58
|
+
file == null ? void 0 : file.buttonName
|
|
59
|
+
] }) }, file == null ? void 0 : file.url)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
) });
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
ReportCard
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=chunk-D32EAZMA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/report-card.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { Box, Button, Card, Flex, Heading, Typo } from '@/atoms';\nimport type { Attachment } from '@/molecules';\nimport { DownloadIcon } from '@/icon';\n\ntype File = Attachment & { buttonName: string };\nexport interface ReportCardProps {\n title?: string;\n file?: File;\n status?: React.ReactNode;\n subtitle?: string;\n}\n\nexport function ReportCard(props: ReportCardProps): React.ReactNode {\n const { title, file, status, subtitle } = props;\n\n const onClickDownload = useCallback(() => {\n if (!file) return;\n const { url, fileName } = file;\n const link = document.createElement('a');\n link.href = url;\n link.download = fileName;\n link.target = '_blank';\n\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n }, [file]);\n\n if (status) {\n return (\n <Card>\n <Flex align=\"center\" justify=\"between\">\n <Heading variant=\"heading4\">{title}</Heading>\n {status}\n </Flex>\n </Card>\n );\n }\n\n return (\n <Card>\n <Flex\n direction={{ initial: 'column', xs: 'row' }}\n gapY=\"2\"\n justify=\"between\"\n >\n <Box>\n <Heading variant=\"heading4\">{title}</Heading>\n {subtitle ? <Typo color=\"gray\">{subtitle}</Typo> : null}\n </Box>\n <Button key={file?.url} onClick={onClickDownload} variant=\"surface\">\n <Flex gap=\"2\" width=\"100%\">\n <DownloadIcon />\n {file?.buttonName}\n </Flex>\n </Button>\n </Flex>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,mBAAmB;AAgC3B,SACE,KADF;AAnBD,SAAS,WAAW,OAAyC;AAClE,QAAM,EAAE,OAAO,MAAM,QAAQ,SAAS,IAAI;AAE1C,QAAM,kBAAkB,YAAY,MAAM;AACxC,QAAI,CAAC,KAAM;AACX,UAAM,EAAE,KAAK,SAAS,IAAI;AAC1B,UAAM,OAAO,SAAS,cAAc,GAAG;AACvC,SAAK,OAAO;AACZ,SAAK,WAAW;AAChB,SAAK,SAAS;AAEd,aAAS,KAAK,YAAY,IAAI;AAC9B,SAAK,MAAM;AACX,aAAS,KAAK,YAAY,IAAI;AAAA,EAChC,GAAG,CAAC,IAAI,CAAC;AAET,MAAI,QAAQ;AACV,WACE,oBAAC,QACC,+BAAC,QAAK,OAAM,UAAS,SAAQ,WAC3B;AAAA,0BAAC,WAAQ,SAAQ,YAAY,iBAAM;AAAA,MAClC;AAAA,OACH,GACF;AAAA,EAEJ;AAEA,SACE,oBAAC,QACC;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,EAAE,SAAS,UAAU,IAAI,MAAM;AAAA,MAC1C,MAAK;AAAA,MACL,SAAQ;AAAA,MAER;AAAA,6BAAC,OACC;AAAA,8BAAC,WAAQ,SAAQ,YAAY,iBAAM;AAAA,UAClC,WAAW,oBAAC,QAAK,OAAM,QAAQ,oBAAS,IAAU;AAAA,WACrD;AAAA,QACA,oBAAC,UAAuB,SAAS,iBAAiB,SAAQ,WACxD,+BAAC,QAAK,KAAI,KAAI,OAAM,QAClB;AAAA,8BAAC,gBAAa;AAAA,UACb,6BAAM;AAAA,WACT,KAJW,6BAAM,GAKnB;AAAA;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Skeleton
|
|
3
|
+
} from "./chunk-5H3YPCZK.js";
|
|
4
|
+
import {
|
|
5
|
+
Inset
|
|
6
|
+
} from "./chunk-XQOL7UBI.js";
|
|
7
|
+
import {
|
|
8
|
+
DropdownMenu
|
|
9
|
+
} from "./chunk-HYE34QEM.js";
|
|
10
|
+
import {
|
|
11
|
+
Grid
|
|
12
|
+
} from "./chunk-EGEQY3KT.js";
|
|
13
|
+
import {
|
|
14
|
+
Heading
|
|
15
|
+
} from "./chunk-34OQDUQR.js";
|
|
16
|
+
import {
|
|
17
|
+
Box
|
|
18
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
19
|
+
import {
|
|
20
|
+
Typo
|
|
21
|
+
} from "./chunk-PARGQUJB.js";
|
|
22
|
+
import {
|
|
23
|
+
Flex
|
|
24
|
+
} from "./chunk-25HMMI7R.js";
|
|
25
|
+
import {
|
|
26
|
+
Button
|
|
27
|
+
} from "./chunk-BW46WIN5.js";
|
|
28
|
+
import {
|
|
29
|
+
Card
|
|
30
|
+
} from "./chunk-HEDMSFPW.js";
|
|
31
|
+
import {
|
|
32
|
+
DotsVerticalIcon
|
|
33
|
+
} from "./chunk-V5XKNSCK.js";
|
|
34
|
+
|
|
35
|
+
// src/app/platform/contents-card.tsx
|
|
36
|
+
import { forwardRef } from "react";
|
|
37
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
38
|
+
var ContentsCard = forwardRef(
|
|
39
|
+
({
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
imageSrc,
|
|
43
|
+
footer,
|
|
44
|
+
dropdownItems,
|
|
45
|
+
onClickCard,
|
|
46
|
+
isLoading = false
|
|
47
|
+
}, ref) => {
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
Card,
|
|
50
|
+
{
|
|
51
|
+
onClick: onClickCard,
|
|
52
|
+
ref,
|
|
53
|
+
style: {
|
|
54
|
+
height: "100%",
|
|
55
|
+
width: "100%",
|
|
56
|
+
display: "grid",
|
|
57
|
+
cursor: "pointer",
|
|
58
|
+
maxHeight: "450px"
|
|
59
|
+
},
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(
|
|
62
|
+
Box,
|
|
63
|
+
{
|
|
64
|
+
height: "210px",
|
|
65
|
+
style: {
|
|
66
|
+
backgroundImage: `url(${imageSrc})`,
|
|
67
|
+
backgroundSize: "cover",
|
|
68
|
+
backgroundPosition: "center"
|
|
69
|
+
},
|
|
70
|
+
width: "100%"
|
|
71
|
+
}
|
|
72
|
+
) }) }),
|
|
73
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
74
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Heading, { mb: "3", variant: "heading5", children: title }) }),
|
|
76
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Typo, { as: "p", variant: "caption", children: description }) })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ jsxs(
|
|
79
|
+
Grid,
|
|
80
|
+
{
|
|
81
|
+
align: "center",
|
|
82
|
+
columns: "1fr auto",
|
|
83
|
+
justify: "between",
|
|
84
|
+
pt: "2",
|
|
85
|
+
style: { marginTop: "auto" },
|
|
86
|
+
width: "100%",
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
89
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsx(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ jsx(DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
91
|
+
/* @__PURE__ */ jsx(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ jsx(
|
|
92
|
+
DropdownMenu.Item,
|
|
93
|
+
{
|
|
94
|
+
onClick: (e) => {
|
|
95
|
+
e.stopPropagation();
|
|
96
|
+
item.onClick();
|
|
97
|
+
},
|
|
98
|
+
children: item.label
|
|
99
|
+
},
|
|
100
|
+
item.label
|
|
101
|
+
)) })
|
|
102
|
+
] })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
ContentsCard.displayName = "ContentsCard";
|
|
113
|
+
|
|
114
|
+
export {
|
|
115
|
+
ContentsCard
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=chunk-DDFAMGNW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/contents-card.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Heading } from '@/atoms/heading';\nimport { Button } from '@/atoms/button';\nimport { DropdownMenu } from '@/atoms/dropdown-menu';\nimport { Box } from '@/atoms/box';\nimport { Flex } from '@/atoms/flex';\nimport { Grid } from '@/atoms/grid';\nimport { Skeleton } from '@/atoms/skeleton';\nimport { Typo } from '@/atoms/typo';\nimport { DotsVerticalIcon } from '@/icon';\nimport { Card, Inset } from '@/atoms';\n\nexport interface ContentsCardProps {\n title?: React.ReactNode;\n description?: string;\n id?: string;\n imageSrc?: string | null;\n imageAlt?: string;\n footer?: React.ReactNode;\n dropdownItems?: {\n label: string;\n onClick: () => void;\n }[];\n onClickCard?: () => void;\n isLoading?: boolean;\n}\n\nexport const ContentsCard = forwardRef<HTMLDivElement, ContentsCardProps>(\n (\n {\n title,\n description,\n imageSrc,\n footer,\n dropdownItems,\n onClickCard,\n isLoading = false,\n },\n ref\n ): React.ReactNode => {\n return (\n <Card\n onClick={onClickCard}\n ref={ref}\n style={{\n height: '100%',\n width: '100%',\n display: 'grid',\n cursor: 'pointer',\n maxHeight: '450px',\n }}\n >\n {/* 섬네일 */}\n <Inset clip=\"padding-box\" pb=\"0\" side=\"top\">\n <Skeleton loading={isLoading}>\n <Box\n height=\"210px\"\n style={{\n backgroundImage: `url(${imageSrc})`,\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n }}\n width=\"100%\"\n />\n </Skeleton>\n </Inset>\n {/* 제목, 설명 */}\n <Flex direction=\"column\" p=\"4\" pb=\"3\">\n <Box>\n <Skeleton loading={isLoading}>\n <Heading mb=\"3\" variant=\"heading5\">\n {title}\n </Heading>\n </Skeleton>\n <Skeleton loading={isLoading}>\n <Typo as=\"p\" variant=\"caption\">\n {description}\n </Typo>\n </Skeleton>\n </Box>\n <Grid\n align=\"center\"\n columns=\"1fr auto\"\n justify=\"between\"\n pt=\"2\"\n style={{ marginTop: 'auto' }}\n width=\"100%\"\n >\n <Skeleton loading={isLoading}>\n <Flex gap=\"3\" overflow=\"hidden\">\n {footer}\n </Flex>\n </Skeleton>\n {Boolean(dropdownItems?.length) && (\n <DropdownMenu.Root>\n <DropdownMenu.Trigger>\n <Button size=\"large\" variant=\"transparent\">\n <DotsVerticalIcon color=\"gray\" height=\"20px\" width=\"20px\" />\n </Button>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content>\n {dropdownItems?.map((item) => (\n <DropdownMenu.Item\n key={item.label}\n onClick={(e) => {\n e.stopPropagation();\n item.onClick();\n }}\n >\n {item.label}\n </DropdownMenu.Item>\n ))}\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n )}\n </Grid>\n </Flex>\n </Card>\n );\n }\n);\nContentsCard.displayName = 'ContentsCard';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAuDtB,cAaF,YAbE;AA5BL,IAAM,eAAe;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,GACA,QACoB;AACpB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,SAAS;AAAA,UACT,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QAGA;AAAA,8BAAC,SAAM,MAAK,eAAc,IAAG,KAAI,MAAK,OACpC,8BAAC,YAAS,SAAS,WACjB;AAAA,YAAC;AAAA;AAAA,cACC,QAAO;AAAA,cACP,OAAO;AAAA,gBACL,iBAAiB,OAAO,QAAQ;AAAA,gBAChC,gBAAgB;AAAA,gBAChB,oBAAoB;AAAA,cACtB;AAAA,cACA,OAAM;AAAA;AAAA,UACR,GACF,GACF;AAAA,UAEA,qBAAC,QAAK,WAAU,UAAS,GAAE,KAAI,IAAG,KAChC;AAAA,iCAAC,OACC;AAAA,kCAAC,YAAS,SAAS,WACjB,8BAAC,WAAQ,IAAG,KAAI,SAAQ,YACrB,iBACH,GACF;AAAA,cACA,oBAAC,YAAS,SAAS,WACjB,8BAAC,QAAK,IAAG,KAAI,SAAQ,WAClB,uBACH,GACF;AAAA,eACF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,SAAQ;AAAA,gBACR,IAAG;AAAA,gBACH,OAAO,EAAE,WAAW,OAAO;AAAA,gBAC3B,OAAM;AAAA,gBAEN;AAAA,sCAAC,YAAS,SAAS,WACjB,8BAAC,QAAK,KAAI,KAAI,UAAS,UACpB,kBACH,GACF;AAAA,kBACC,QAAQ,+CAAe,MAAM,KAC5B,qBAAC,aAAa,MAAb,EACC;AAAA,wCAAC,aAAa,SAAb,EACC,8BAAC,UAAO,MAAK,SAAQ,SAAQ,eAC3B,8BAAC,oBAAiB,OAAM,QAAO,QAAO,QAAO,OAAM,QAAO,GAC5D,GACF;AAAA,oBACA,oBAAC,aAAa,SAAb,EACE,yDAAe,IAAI,CAAC,SACnB;AAAA,sBAAC,aAAa;AAAA,sBAAb;AAAA,wBAEC,SAAS,CAAC,MAAM;AACd,4BAAE,gBAAgB;AAClB,+BAAK,QAAQ;AAAA,wBACf;AAAA,wBAEC,eAAK;AAAA;AAAA,sBAND,KAAK;AAAA,oBAOZ,IAEJ;AAAA,qBACF;AAAA;AAAA;AAAA,YAEJ;AAAA,aACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-PARGQUJB.js";
|
|
7
|
+
import {
|
|
8
|
+
mapWithResponsive
|
|
9
|
+
} from "./chunk-LDBWASUA.js";
|
|
10
|
+
|
|
11
|
+
// src/atoms/list.tsx
|
|
12
|
+
import { createContext, useContext, useMemo } from "react";
|
|
13
|
+
import clsx from "clsx";
|
|
14
|
+
import { jsx } from "react/jsx-runtime";
|
|
15
|
+
function Root(props) {
|
|
16
|
+
const { variant, size = "large", children, preSpace } = props;
|
|
17
|
+
const Comp = variant === "ol" ? "ol" : "ul";
|
|
18
|
+
const className = clsx(
|
|
19
|
+
{
|
|
20
|
+
"pre-large-small": preSpace === "small"
|
|
21
|
+
},
|
|
22
|
+
props.className
|
|
23
|
+
);
|
|
24
|
+
return /* @__PURE__ */ jsx(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(Flex, { asChild: true, direction: "column", gap: "1", children: /* @__PURE__ */ jsx(Comp, { children }) }) });
|
|
25
|
+
}
|
|
26
|
+
function Item(props) {
|
|
27
|
+
const { children } = props;
|
|
28
|
+
const { size } = useList();
|
|
29
|
+
const variant = useMemo(() => {
|
|
30
|
+
return mapWithResponsive({
|
|
31
|
+
value: size,
|
|
32
|
+
mapFn: (sizeValue) => {
|
|
33
|
+
return sizeValue === "small" ? "caption" : "body";
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}, [size]);
|
|
37
|
+
return /* @__PURE__ */ jsx(Typo, { asChild: true, variant, children: /* @__PURE__ */ jsx("li", { children }) });
|
|
38
|
+
}
|
|
39
|
+
var ListContext = createContext({
|
|
40
|
+
size: "large"
|
|
41
|
+
});
|
|
42
|
+
function useList() {
|
|
43
|
+
return useContext(ListContext);
|
|
44
|
+
}
|
|
45
|
+
var List = {
|
|
46
|
+
Root,
|
|
47
|
+
Item
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
useList,
|
|
52
|
+
List
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-EU666CUH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/list.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\nimport clsx from 'clsx';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: 'regular' | 'small';\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const { variant, size = 'large', children, preSpace } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n\n const className = clsx(\n {\n 'pre-large-small': preSpace === 'small',\n },\n props.className\n );\n\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\">\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n"],"mappings":";;;;;;;;;;;AACA,SAAgB,eAAe,YAAY,eAAe;AAI1D,OAAO,UAAU;AAuBT;AAdR,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,OAAO,SAAS,UAAU,SAAS,IAAI;AACxD,QAAM,OAAO,YAAY,OAAO,OAAO;AAEvC,QAAM,YAAY;AAAA,IAChB;AAAA,MACE,mBAAmB,aAAa;AAAA,IAClC;AAAA,IACA,MAAM;AAAA,EACR;AAEA,SACE,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAE,KAAK,GAClC,8BAAC,QAAK,SAAO,MAAC,WAAU,UAAS,KAAI,KACnC,8BAAC,QAAM,UAAS,GAClB,GACF;AAEJ;AAMA,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,EAAE,KAAK,IAAI,QAAQ;AAEzB,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,kBAAkB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,oBAAC,QAAK,SAAO,MAAC,SACZ,8BAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,cAAc,cAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,SAAO,WAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CoachingCustomerInfoSmall
|
|
3
|
+
} from "./chunk-DWYEA2Q4.js";
|
|
4
|
+
import {
|
|
5
|
+
CoachingCustomerInfoLarge
|
|
6
|
+
} from "./chunk-G4B3S4C7.js";
|
|
7
|
+
import {
|
|
8
|
+
CoachingCustomerInfoMedium
|
|
9
|
+
} from "./chunk-J4CSQ6AW.js";
|
|
10
|
+
import {
|
|
11
|
+
Box
|
|
12
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
+
import {
|
|
14
|
+
__spreadValues
|
|
15
|
+
} from "./chunk-2NMEKWO5.js";
|
|
16
|
+
|
|
17
|
+
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
18
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
function CoachingCustomerInfo(props) {
|
|
20
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
22
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
23
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
CoachingCustomerInfo
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-F3JZQYPT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { CoachingCustomerInfoSmall } from './small';\nimport { CoachingCustomerInfoMedium } from './medium';\nimport { CoachingCustomerInfoLarge } from './large';\n\nexport {\n CoachingCustomerInfoLarge,\n CoachingCustomerInfoMedium,\n CoachingCustomerInfoSmall,\n};\n\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactNode {\n return (\n <>\n <Box display={{ initial: 'block', sm: 'none', md: 'none' }}>\n <CoachingCustomerInfoSmall {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'block', md: 'none' }}>\n <CoachingCustomerInfoMedium {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'none', md: 'block' }}>\n <CoachingCustomerInfoLarge {...props} />\n </Box>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACiB;AACjB,SACE,iCACE;AAAA,wBAAC,OAAI,SAAS,EAAE,SAAS,SAAS,IAAI,QAAQ,IAAI,OAAO,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,SAAS,IAAI,OAAO,GACvD,8BAAC,+CAA+B,MAAO,GACzC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,QAAQ,IAAI,QAAQ,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-PARGQUJB.js";
|
|
7
|
+
import {
|
|
8
|
+
mapWithResponsive
|
|
9
|
+
} from "./chunk-LDBWASUA.js";
|
|
10
|
+
import {
|
|
11
|
+
__spreadProps,
|
|
12
|
+
__spreadValues
|
|
13
|
+
} from "./chunk-2NMEKWO5.js";
|
|
14
|
+
|
|
15
|
+
// src/atoms/list.tsx
|
|
16
|
+
import { createContext, useContext, useMemo } from "react";
|
|
17
|
+
import clsx from "clsx";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
function Root(props) {
|
|
20
|
+
const { variant, size = "large", children, preSpace } = props;
|
|
21
|
+
const Comp = variant === "ol" ? "ol" : "ul";
|
|
22
|
+
const className = clsx(
|
|
23
|
+
{
|
|
24
|
+
"pre-large-small": preSpace === "small"
|
|
25
|
+
},
|
|
26
|
+
props.className
|
|
27
|
+
);
|
|
28
|
+
return /* @__PURE__ */ jsx(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(Flex, __spreadProps(__spreadValues({ asChild: true, direction: "column", gap: "1" }, props), { children: /* @__PURE__ */ jsx(Comp, { children }) })) });
|
|
29
|
+
}
|
|
30
|
+
function Item(props) {
|
|
31
|
+
const { children } = props;
|
|
32
|
+
const { size } = useList();
|
|
33
|
+
const variant = useMemo(() => {
|
|
34
|
+
return mapWithResponsive({
|
|
35
|
+
value: size,
|
|
36
|
+
mapFn: (sizeValue) => {
|
|
37
|
+
return sizeValue === "small" ? "caption" : "body";
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}, [size]);
|
|
41
|
+
return /* @__PURE__ */ jsx(Typo, { asChild: true, variant, children: /* @__PURE__ */ jsx("li", { children }) });
|
|
42
|
+
}
|
|
43
|
+
var ListContext = createContext({
|
|
44
|
+
size: "large"
|
|
45
|
+
});
|
|
46
|
+
function useList() {
|
|
47
|
+
return useContext(ListContext);
|
|
48
|
+
}
|
|
49
|
+
var List = {
|
|
50
|
+
Root,
|
|
51
|
+
Item
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
useList,
|
|
56
|
+
List
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=chunk-FF2UDVNV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/list.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\nimport clsx from 'clsx';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: 'regular' | 'small';\n className?: string;\n style?: React.CSSProperties;\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const { variant, size = 'large', children, preSpace } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n\n const className = clsx(\n {\n 'pre-large-small': preSpace === 'small',\n },\n props.className\n );\n\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\" {...props}>\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n"],"mappings":";;;;;;;;;;;;;;;AACA,SAAgB,eAAe,YAAY,eAAe;AAI1D,OAAO,UAAU;AAyBT;AAdR,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,OAAO,SAAS,UAAU,SAAS,IAAI;AACxD,QAAM,OAAO,YAAY,OAAO,OAAO;AAEvC,QAAM,YAAY;AAAA,IAChB;AAAA,MACE,mBAAmB,aAAa;AAAA,IAClC;AAAA,IACA,MAAM;AAAA,EACR;AAEA,SACE,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAE,KAAK,GAClC,8BAAC,qCAAK,SAAO,MAAC,WAAU,UAAS,KAAI,OAAQ,QAA5C,EACC,8BAAC,QAAM,UAAS,IAClB,GACF;AAEJ;AAMA,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,EAAE,KAAK,IAAI,QAAQ;AAEzB,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,kBAAkB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,oBAAC,QAAK,SAAO,MAAC,SACZ,8BAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,cAAc,cAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,SAAO,WAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
review_question_satisfaction_option_default
|
|
3
|
+
} from "./chunk-QQ4ZK4BW.js";
|
|
4
|
+
import {
|
|
5
|
+
ReviewQuestionSatisfisText
|
|
6
|
+
} from "./chunk-AZXDKQTU.js";
|
|
7
|
+
import {
|
|
8
|
+
review_question_text_default
|
|
9
|
+
} from "./chunk-WB2EZAD2.js";
|
|
10
|
+
import {
|
|
11
|
+
review_question_radio_default
|
|
12
|
+
} from "./chunk-2EQJDJYM.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
function ReviewQuestionBody(props) {
|
|
17
|
+
const { question, answer, error, onChange } = props;
|
|
18
|
+
if (question.type === "question_radio") {
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
review_question_radio_default,
|
|
21
|
+
{
|
|
22
|
+
answer,
|
|
23
|
+
error,
|
|
24
|
+
onChange,
|
|
25
|
+
question
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
if (question.type === "question_text") {
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
review_question_text_default,
|
|
32
|
+
{
|
|
33
|
+
answer,
|
|
34
|
+
error,
|
|
35
|
+
onChange,
|
|
36
|
+
question
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
if (question.type === "question_satisfaction_option") {
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
review_question_satisfaction_option_default,
|
|
43
|
+
{
|
|
44
|
+
answer,
|
|
45
|
+
error,
|
|
46
|
+
onChange,
|
|
47
|
+
question
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
if (question.type === "question_satisfaction_text") {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
ReviewQuestionSatisfisText,
|
|
54
|
+
{
|
|
55
|
+
answer,
|
|
56
|
+
error,
|
|
57
|
+
onChange,
|
|
58
|
+
question
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
var review_question_body_default = ReviewQuestionBody;
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
review_question_body_default
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=chunk-FFE3SS5B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx"],"sourcesContent":["import React from 'react'; \nimport type { ReviewQuestionElement } from '@/types/curriculum.type';\nimport ReviewQuestionRadio from './review-question-radio';\nimport ReviewQuestionText from './review-question-text';\nimport ReviewQuestionSatisfactionOption from './review-question-satisfaction-option';\nimport ReviewQuestionSatisfactionText from './review-question-satisfaction-text';\n\ninterface ReviewQuestionBodyProps {\n question: ReviewQuestionElement;\n answer: string;\n error?: string;\n onChange: (value: string) => void;\n}\n\nfunction ReviewQuestionBody(props: ReviewQuestionBodyProps): React.ReactNode {\n const { question, answer, error, onChange } = props;\n \n if (question.type === 'question_radio') {\n return (\n <ReviewQuestionRadio\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n if (question.type === 'question_text') {\n return (\n <ReviewQuestionText\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n if (question.type === 'question_satisfaction_option') {\n return (\n <ReviewQuestionSatisfactionOption\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- 그 외의 타입이 있을 경우 있음\n if (question.type === 'question_satisfaction_text') {\n return (\n <ReviewQuestionSatisfactionText\n answer={answer}\n error={error}\n onChange={onChange}\n question={question}\n />\n );\n }\n\n return null;\n}\nexport default ReviewQuestionBody;\n"],"mappings":";;;;;;;;;;;;;;AAmBM;AALN,SAAS,mBAAmB,OAAiD;AAC3E,QAAM,EAAE,UAAU,QAAQ,OAAO,SAAS,IAAI;AAE9C,MAAI,SAAS,SAAS,kBAAkB;AACtC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AACA,MAAI,SAAS,SAAS,iBAAiB;AACrC,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AACA,MAAI,SAAS,SAAS,gCAAgC;AACpD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAGA,MAAI,SAAS,SAAS,8BAA8B;AAClD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,EAEJ;AAEA,SAAO;AACT;AACA,IAAO,+BAAQ;","names":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-PARGQUJB.js";
|
|
7
|
+
import {
|
|
8
|
+
mapWithResponsive
|
|
9
|
+
} from "./chunk-LDBWASUA.js";
|
|
10
|
+
|
|
11
|
+
// src/atoms/list.tsx
|
|
12
|
+
import { createContext, useContext, useMemo } from "react";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
function Root(props) {
|
|
15
|
+
const { variant, size = "large", children } = props;
|
|
16
|
+
const Comp = variant === "ol" ? "ol" : "ul";
|
|
17
|
+
return /* @__PURE__ */ jsx(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ jsx(Flex, { asChild: true, direction: "column", gap: "1", children: /* @__PURE__ */ jsx(Comp, { children }) }) });
|
|
18
|
+
}
|
|
19
|
+
function Item(props) {
|
|
20
|
+
const { children } = props;
|
|
21
|
+
const { size } = useList();
|
|
22
|
+
const variant = useMemo(() => {
|
|
23
|
+
return mapWithResponsive({
|
|
24
|
+
value: size,
|
|
25
|
+
mapFn: (sizeValue) => {
|
|
26
|
+
return sizeValue === "small" ? "caption" : "body";
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}, [size]);
|
|
30
|
+
return /* @__PURE__ */ jsx(Typo, { asChild: true, variant, children: /* @__PURE__ */ jsx("li", { children }) });
|
|
31
|
+
}
|
|
32
|
+
var ListContext = createContext({
|
|
33
|
+
size: "large"
|
|
34
|
+
});
|
|
35
|
+
function useList() {
|
|
36
|
+
return useContext(ListContext);
|
|
37
|
+
}
|
|
38
|
+
var List = {
|
|
39
|
+
Root,
|
|
40
|
+
Item
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
useList,
|
|
45
|
+
List
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=chunk-FOBIJN2V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/list.tsx"],"sourcesContent":["import type { Responsive } from '@radix-ui/themes/props';\nimport React, { createContext, useContext, useMemo } from 'react';\nimport { mapWithResponsive } from '@/utils/map-with-responsive';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\n\nexport interface ListRootProps {\n variant?: 'ol' | 'ul';\n size?: Responsive<'small' | 'large'>;\n children?: React.ReactNode;\n preSpace?: 'large';\n}\n\nfunction Root(props: ListRootProps): React.ReactElement {\n const { variant, size = 'large', children } = props;\n const Comp = variant === 'ol' ? 'ol' : 'ul';\n return (\n <ListContext.Provider value={{ size }}>\n <Flex asChild direction=\"column\" gap=\"1\">\n <Comp>{children}</Comp>\n </Flex>\n </ListContext.Provider>\n );\n}\n\nexport interface ListItemProps {\n children?: React.ReactNode;\n}\n\nfunction Item(props: ListItemProps): React.ReactElement {\n const { children } = props;\n const { size } = useList();\n\n const variant = useMemo(() => {\n return mapWithResponsive({\n value: size,\n mapFn: (sizeValue) => {\n return sizeValue === 'small' ? 'caption' : 'body';\n },\n });\n }, [size]);\n\n return (\n <Typo asChild variant={variant}>\n <li>{children}</li>\n </Typo>\n );\n}\n\nconst ListContext = createContext<{ size: Responsive<'small' | 'large'> }>({\n size: 'large',\n});\n\nexport function useList(): { size: Responsive<'small' | 'large'> } {\n return useContext(ListContext);\n}\n\nexport const List = {\n Root,\n Item,\n};\n"],"mappings":";;;;;;;;;;;AACA,SAAgB,eAAe,YAAY,eAAe;AAkBlD;AANR,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,OAAO,SAAS,SAAS,IAAI;AAC9C,QAAM,OAAO,YAAY,OAAO,OAAO;AACvC,SACE,oBAAC,YAAY,UAAZ,EAAqB,OAAO,EAAE,KAAK,GAClC,8BAAC,QAAK,SAAO,MAAC,WAAU,UAAS,KAAI,KACnC,8BAAC,QAAM,UAAS,GAClB,GACF;AAEJ;AAMA,SAAS,KAAK,OAA0C;AACtD,QAAM,EAAE,SAAS,IAAI;AACrB,QAAM,EAAE,KAAK,IAAI,QAAQ;AAEzB,QAAM,UAAU,QAAQ,MAAM;AAC5B,WAAO,kBAAkB;AAAA,MACvB,OAAO;AAAA,MACP,OAAO,CAAC,cAAc;AACpB,eAAO,cAAc,UAAU,YAAY;AAAA,MAC7C;AAAA,IACF,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,CAAC;AAET,SACE,oBAAC,QAAK,SAAO,MAAC,SACZ,8BAAC,QAAI,UAAS,GAChB;AAEJ;AAEA,IAAM,cAAc,cAAuD;AAAA,EACzE,MAAM;AACR,CAAC;AAEM,SAAS,UAAmD;AACjE,SAAO,WAAW,WAAW;AAC/B;AAEO,IAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;","names":[]}
|