@tipp/ui 2.2.0 → 2.2.1
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 +612 -582
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +64 -64
- package/dist/app/platform/coach-question-list.cjs +214 -184
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +27 -27
- package/dist/app/platform/contents-card.cjs +133 -103
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +27 -27
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs +344 -314
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +49 -49
- package/dist/app/platform/edit-service-type.cjs +330 -300
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +49 -49
- package/dist/app/platform/goal-manage-card-edit.cjs +330 -300
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +49 -49
- package/dist/app/platform/goal-manage-card-read.cjs +256 -226
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +27 -27
- package/dist/app/platform/on-offline-radio-card.cjs +309 -279
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +48 -48
- package/dist/app/platform/report-card.cjs +219 -189
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +27 -27
- package/dist/app/platform/reservation-card.cjs +353 -323
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +49 -49
- package/dist/app/platform/session-card.cjs +399 -369
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +51 -51
- package/dist/app/platform/session-review-simple-read.cjs +217 -187
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +248 -218
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +225 -195
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +28 -28
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +228 -198
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +28 -28
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +214 -184
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +26 -26
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +224 -194
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +28 -28
- package/dist/app/platform/userInfos/utils.cjs +216 -186
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +27 -27
- package/dist/atoms/button.cjs +1 -1
- package/dist/atoms/button.cjs.map +1 -1
- package/dist/atoms/button.js +1 -1
- package/dist/atoms/dialog.cjs +76 -13
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +3 -2
- package/dist/atoms/drawer.cjs +74 -11
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +3 -2
- package/dist/atoms/icon-button.cjs +93 -1
- package/dist/atoms/icon-button.cjs.map +1 -1
- package/dist/atoms/icon-button.d.cts +12 -1
- package/dist/atoms/icon-button.d.ts +12 -1
- package/dist/atoms/icon-button.js +2 -1
- package/dist/atoms/index.cjs +286 -256
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +2 -1
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +63 -63
- package/dist/atoms/pagination.cjs +95 -32
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +3 -2
- package/dist/{chunk-CVRGXNMT.js → chunk-22326A76.js} +2 -2
- package/dist/{chunk-GCOMTYEP.js → chunk-22N7RF76.js} +3 -3
- package/dist/{chunk-VPERT2RQ.js → chunk-2JMG2NYA.js} +5 -5
- package/dist/chunk-2KGTWSTP.js +29 -0
- package/dist/chunk-2KGTWSTP.js.map +1 -0
- package/dist/{chunk-KOWWLQ4T.js → chunk-3V23BLWS.js} +2 -2
- package/dist/{chunk-A6Q3HZ7S.js → chunk-424YTQ7S.js} +6 -6
- package/dist/{chunk-GMRXEZIY.js → chunk-4EO3MXIL.js} +7 -7
- package/dist/{chunk-6OSTER2K.js → chunk-4F74LXWN.js} +4 -4
- package/dist/chunk-4NZLC2ND.js +135 -0
- package/dist/chunk-4NZLC2ND.js.map +1 -0
- package/dist/{chunk-MRHOKDVM.js → chunk-4OFHCKSF.js} +6 -6
- package/dist/chunk-4OYTRVXP.js +101 -0
- package/dist/chunk-4YMLJSQH.js +37 -0
- package/dist/{chunk-TZGMNQ2W.js → chunk-56GG45EL.js} +2 -2
- package/dist/{chunk-DKJPEXEA.js → chunk-57IYTFMO.js} +15 -15
- package/dist/chunk-5K4VOWNF.js +84 -0
- package/dist/chunk-5K4VOWNF.js.map +1 -0
- package/dist/{chunk-I2ZOU3LX.js → chunk-5QBPSCEV.js} +2 -2
- package/dist/{chunk-U2QL5DES.js → chunk-6I6CUDF5.js} +5 -5
- package/dist/{chunk-U75O4N7J.js → chunk-6JAQTZEG.js} +2 -2
- package/dist/{chunk-VQAHPLVU.js → chunk-6U5KRAEQ.js} +4 -4
- package/dist/{chunk-LCCC6IFX.js → chunk-6X4TZP6Q.js} +6 -6
- package/dist/{chunk-FU6AFL6I.js → chunk-6Z5DLCPL.js} +6 -6
- package/dist/{chunk-CGRAKSYL.js → chunk-7BTR777N.js} +8 -8
- package/dist/{chunk-6RHEORCQ.js → chunk-7GSUDUZQ.js} +5 -5
- package/dist/chunk-7N4YCPV5.js +144 -0
- package/dist/chunk-7N4YCPV5.js.map +1 -0
- package/dist/chunk-7WEVW6IN.js +28 -0
- package/dist/chunk-7WEVW6IN.js.map +1 -0
- package/dist/chunk-A75LCRKO.js +45 -0
- package/dist/chunk-A75LCRKO.js.map +1 -0
- package/dist/{chunk-EFCQZTUA.js → chunk-AKZQJZ2S.js} +2 -2
- package/dist/chunk-ANBURRYG.js +54 -0
- package/dist/chunk-AZBEZTN5.js +174 -0
- package/dist/chunk-AZBEZTN5.js.map +1 -0
- package/dist/chunk-B6UVPLZH.js +231 -0
- package/dist/chunk-B6UVPLZH.js.map +1 -0
- package/dist/chunk-BLB53742.js +53 -0
- package/dist/chunk-BLB53742.js.map +1 -0
- package/dist/{chunk-AFPH32MF.js → chunk-BW46WIN5.js} +2 -2
- package/dist/chunk-BW46WIN5.js.map +1 -0
- package/dist/chunk-BXQCEPIO.js +125 -0
- package/dist/chunk-BXQCEPIO.js.map +1 -0
- package/dist/{chunk-3O476TUU.js → chunk-C4IWE6EG.js} +6 -6
- package/dist/chunk-CIVXII3C.js +145 -0
- package/dist/chunk-CIVXII3C.js.map +1 -0
- package/dist/chunk-D4KXDUGF.js +49 -0
- package/dist/chunk-D4KXDUGF.js.map +1 -0
- package/dist/{chunk-AYBPPRAY.js → chunk-EI7DPTLJ.js} +10 -10
- package/dist/chunk-EN6GXHBD.js +46 -0
- package/dist/chunk-EN6GXHBD.js.map +1 -0
- package/dist/{chunk-J4YBXKP5.js → chunk-EN6XRDGV.js} +7 -7
- package/dist/chunk-FCVIM5YX.js +145 -0
- package/dist/chunk-FCVIM5YX.js.map +1 -0
- package/dist/{chunk-4U5AKVSR.js → chunk-FEGUI44C.js} +2 -2
- package/dist/chunk-FWRJFBQW.js +57 -0
- package/dist/chunk-FWRJFBQW.js.map +1 -0
- package/dist/chunk-HDOOS52D.js +47 -0
- package/dist/chunk-HDOOS52D.js.map +1 -0
- package/dist/chunk-HHY23LXP.js +53 -0
- package/dist/chunk-HHY23LXP.js.map +1 -0
- package/dist/chunk-HVY2MX5O.js +165 -0
- package/dist/chunk-HVY2MX5O.js.map +1 -0
- package/dist/{chunk-CPRGYWTZ.js → chunk-HWQEBPBR.js} +5 -5
- package/dist/chunk-IE3IGV6B.js +63 -0
- package/dist/chunk-IE3IGV6B.js.map +1 -0
- package/dist/{chunk-PEPH3MRE.js → chunk-IEHOS5PX.js} +7 -7
- package/dist/chunk-IGITJK3X.js +43 -0
- package/dist/chunk-IGITJK3X.js.map +1 -0
- package/dist/chunk-IME3WMKT.js +63 -0
- package/dist/chunk-IME3WMKT.js.map +1 -0
- package/dist/{chunk-NID37EIP.js → chunk-IUBKC6AB.js} +2 -2
- package/dist/{chunk-D66MNGFU.js → chunk-JAE7ZKUY.js} +4 -4
- package/dist/chunk-JKMJRGAJ.js +74 -0
- package/dist/chunk-JKMJRGAJ.js.map +1 -0
- package/dist/{chunk-HWSNR2KC.js → chunk-JRLU7NHI.js} +6 -6
- package/dist/{chunk-VOUGO25C.js → chunk-KHPEYFDT.js} +5 -5
- package/dist/{chunk-X2V77FMW.js → chunk-KMXJJC2C.js} +5 -5
- package/dist/chunk-LDLTDHAT.js +163 -0
- package/dist/chunk-LDLTDHAT.js.map +1 -0
- package/dist/{chunk-KKJDGONH.js → chunk-LGQ65LMH.js} +4 -4
- package/dist/chunk-M2SQB6ZY.js +23 -0
- package/dist/chunk-M2SQB6ZY.js.map +1 -0
- package/dist/{chunk-6AZDWFW7.js → chunk-MAVXX7FU.js} +8 -8
- package/dist/chunk-N3DAYFXZ.js +169 -0
- package/dist/chunk-N3DAYFXZ.js.map +1 -0
- package/dist/{chunk-JHXDNCGN.js → chunk-NERZEY7E.js} +3 -3
- package/dist/{chunk-L5EAP7M6.js → chunk-NP7D63VZ.js} +6 -6
- package/dist/chunk-NU5YU2WS.js +231 -0
- package/dist/chunk-NU5YU2WS.js.map +1 -0
- package/dist/{chunk-PN4HBSXS.js → chunk-OEZ56BOH.js} +5 -5
- package/dist/chunk-OEZ56BOH.js.map +1 -0
- package/dist/chunk-OHFEMVML.js +228 -0
- package/dist/{chunk-XHLO7WZC.js → chunk-OQ72S67G.js} +5 -5
- package/dist/{chunk-RHZT4IHH.js → chunk-OY5IR4M2.js} +2 -2
- package/dist/{chunk-5O7X52HC.js → chunk-OY7GKEXW.js} +4 -4
- package/dist/chunk-OY7GKEXW.js.map +1 -0
- package/dist/chunk-P2VBB4C5.js +65 -0
- package/dist/chunk-P2VBB4C5.js.map +1 -0
- package/dist/chunk-PEH6343K.js +174 -0
- package/dist/chunk-PEH6343K.js.map +1 -0
- package/dist/{chunk-NIGZA3RF.js → chunk-PPQCQYC5.js} +3 -3
- package/dist/chunk-PPQCQYC5.js.map +1 -0
- package/dist/chunk-Q6IJXFUX.js +228 -0
- package/dist/chunk-Q6IJXFUX.js.map +1 -0
- package/dist/{chunk-GUC4TZFH.js → chunk-QH7PSBOT.js} +8 -8
- package/dist/{chunk-2NIEBPWK.js → chunk-QQAHPXJN.js} +5 -5
- package/dist/chunk-QSKFPLOE.js +70 -0
- package/dist/chunk-QSKFPLOE.js.map +1 -0
- package/dist/chunk-QTVX2ERL.js +99 -0
- package/dist/chunk-QTVX2ERL.js.map +1 -0
- package/dist/{chunk-GJBFYFCK.js → chunk-QV2A3LAV.js} +5 -5
- package/dist/chunk-R33GWQU3.js +125 -0
- package/dist/chunk-R33GWQU3.js.map +1 -0
- package/dist/{chunk-DQKOZ26N.js → chunk-R63TXRXJ.js} +8 -8
- package/dist/{chunk-M7MGOW2G.js → chunk-R654DYKB.js} +4 -4
- package/dist/chunk-RDGBBV7A.js +53 -0
- package/dist/chunk-RDGBBV7A.js.map +1 -0
- package/dist/{chunk-6ALL7KH4.js → chunk-RN7BGXP5.js} +2 -2
- package/dist/chunk-RRSOFWUV.js +196 -0
- package/dist/chunk-RRSOFWUV.js.map +1 -0
- package/dist/chunk-RY2ACFCX.js +87 -0
- package/dist/chunk-RY2ACFCX.js.map +1 -0
- package/dist/chunk-S6DBYAOB.js +363 -0
- package/dist/chunk-S6DBYAOB.js.map +1 -0
- package/dist/chunk-SGTWNEBH.js +64 -0
- package/dist/chunk-SGTWNEBH.js.map +1 -0
- package/dist/{chunk-GPLLJ4CH.js → chunk-SMJZUZOV.js} +5 -5
- package/dist/chunk-SR7GCXL2.js +68 -0
- package/dist/chunk-SR7GCXL2.js.map +1 -0
- package/dist/chunk-T322YCWC.js +58 -0
- package/dist/chunk-T322YCWC.js.map +1 -0
- package/dist/chunk-TDIII52V.js +144 -0
- package/dist/chunk-TDIII52V.js.map +1 -0
- package/dist/chunk-TJ5TPX5S.js +192 -0
- package/dist/chunk-TJ5TPX5S.js.map +1 -0
- package/dist/chunk-TQL3UNNC.js +79 -0
- package/dist/chunk-TQL3UNNC.js.map +1 -0
- package/dist/chunk-ULT5TSRG.js +54 -0
- package/dist/chunk-ULT5TSRG.js.map +1 -0
- package/dist/chunk-UYWN75ZH.js +90 -0
- package/dist/chunk-UYWN75ZH.js.map +1 -0
- package/dist/chunk-VE737SXT.js +30 -0
- package/dist/chunk-VE737SXT.js.map +1 -0
- package/dist/{chunk-IGFQAHJL.js → chunk-VEF2SP6E.js} +12 -12
- package/dist/chunk-VEF2SP6E.js.map +1 -0
- package/dist/{chunk-MXPVB463.js → chunk-VW3RIZLP.js} +2 -2
- package/dist/chunk-W4ELCM47.js +192 -0
- package/dist/chunk-W4ELCM47.js.map +1 -0
- package/dist/{chunk-OAQZ5XEP.js → chunk-W5PMKWQ4.js} +4 -4
- package/dist/chunk-WXXSBDY4.js +125 -0
- package/dist/chunk-WXXSBDY4.js.map +1 -0
- package/dist/chunk-X775MNAU.js +63 -0
- package/dist/chunk-X775MNAU.js.map +1 -0
- package/dist/chunk-XDDFTDPJ.js +151 -0
- package/dist/chunk-XDDFTDPJ.js.map +1 -0
- package/dist/chunk-XO53DZ6R.js +165 -0
- package/dist/chunk-XO53DZ6R.js.map +1 -0
- package/dist/chunk-XR6VJ2UB.js +117 -0
- package/dist/chunk-XR6VJ2UB.js.map +1 -0
- package/dist/chunk-XZWX5NQR.js +192 -0
- package/dist/chunk-XZWX5NQR.js.map +1 -0
- package/dist/chunk-YHJMXPFV.js +63 -0
- package/dist/chunk-YHJMXPFV.js.map +1 -0
- package/dist/chunk-YOIAYFQM.js +39 -0
- package/dist/chunk-YOIAYFQM.js.map +1 -0
- package/dist/chunk-ZLULLHNN.js +53 -0
- package/dist/chunk-ZLULLHNN.js.map +1 -0
- package/dist/chunk-ZMHUWLB2.js +101 -0
- package/dist/chunk-ZMHUWLB2.js.map +1 -0
- package/dist/chunk-ZOFENAZJ.js +46 -0
- package/dist/chunk-ZOFENAZJ.js.map +1 -0
- package/dist/chunk-ZPUTUMDC.js +73 -0
- package/dist/chunk-ZPUTUMDC.js.map +1 -0
- package/dist/chunk-ZR2J7ELI.js +100 -0
- package/dist/chunk-ZR2J7ELI.js.map +1 -0
- package/dist/index.cjs +1059 -1019
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +161 -11
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +111 -111
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +298 -268
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +32 -32
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +214 -184
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +264 -234
- 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 +30 -30
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +217 -187
- 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 +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.cjs +219 -189
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.cjs +217 -187
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +240 -210
- 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 +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +218 -188
- 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 +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +218 -188
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +225 -195
- 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 +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +225 -195
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +334 -304
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +35 -35
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +233 -203
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +220 -190
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +397 -367
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +36 -36
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs +215 -185
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +420 -390
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +38 -38
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs +212 -182
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.cjs +211 -181
- 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 +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +137 -107
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs +212 -182
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +238 -208
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +148 -118
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +26 -26
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +241 -201
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +27 -27
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs +216 -186
- package/dist/molecules/curriculumV2/curriculum-v2-layout.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +26 -26
- package/dist/molecules/curriculumV2/index.cjs +479 -439
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +39 -39
- package/dist/molecules/date-picker/date-picker-button.cjs +242 -212
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +28 -28
- package/dist/molecules/date-picker/index.cjs +232 -202
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +27 -27
- package/dist/molecules/download-card.cjs +72 -9
- package/dist/molecules/download-card.cjs.map +1 -1
- package/dist/molecules/download-card.js +3 -2
- package/dist/molecules/expand-table/index.cjs +270 -240
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +27 -27
- package/dist/molecules/expand-table/row.cjs +223 -193
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +26 -26
- package/dist/molecules/ghost-post.cjs +1 -1
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +2 -2
- package/dist/molecules/index.cjs +742 -702
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +48 -48
- package/dist/molecules/learning-post.cjs +1 -1
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +3 -3
- package/dist/molecules/navigation.cjs +214 -184
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +27 -27
- package/dist/molecules/radio-button-card.cjs +218 -188
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +26 -26
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs +173 -143
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +27 -27
- package/dist/molecules/time-select.cjs +216 -186
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +26 -26
- package/package.json +1 -1
- package/src/atoms/button.tsx +1 -1
- package/src/atoms/icon-button.tsx +38 -1
- package/src/atoms/pagination.tsx +1 -1
- package/src/molecules/curriculumV2/curriculum-sub-nav.tsx +9 -3
- package/src/molecules/download-card.tsx +1 -1
- package/dist/chunk-254QAU26.js +0 -58
- package/dist/chunk-254QAU26.js.map +0 -1
- package/dist/chunk-2PNPGJNV.js +0 -58
- package/dist/chunk-2PNPGJNV.js.map +0 -1
- package/dist/chunk-3FYPNG5T.js +0 -58
- package/dist/chunk-3FYPNG5T.js.map +0 -1
- package/dist/chunk-3HV7OUY6.js +0 -46
- package/dist/chunk-3HV7OUY6.js.map +0 -1
- package/dist/chunk-3KSFECIS.js +0 -58
- package/dist/chunk-3KSFECIS.js.map +0 -1
- package/dist/chunk-4TQ6ARGU.js +0 -45
- package/dist/chunk-4TQ6ARGU.js.map +0 -1
- package/dist/chunk-5BNNETQW.js +0 -58
- package/dist/chunk-5BNNETQW.js.map +0 -1
- package/dist/chunk-6RMDENPS.js +0 -64
- package/dist/chunk-6RMDENPS.js.map +0 -1
- package/dist/chunk-7JGVZ5VX.js +0 -63
- package/dist/chunk-7JGVZ5VX.js.map +0 -1
- package/dist/chunk-7Q3LC67E.js +0 -58
- package/dist/chunk-7Q3LC67E.js.map +0 -1
- package/dist/chunk-A5SWN2EW.js +0 -58
- package/dist/chunk-A5SWN2EW.js.map +0 -1
- package/dist/chunk-AFPH32MF.js.map +0 -1
- package/dist/chunk-AV6XWZSS.js +0 -57
- package/dist/chunk-AV6XWZSS.js.map +0 -1
- package/dist/chunk-BZPNKUJI.js +0 -72
- package/dist/chunk-BZPNKUJI.js.map +0 -1
- package/dist/chunk-CJGCPAG4.js +0 -58
- package/dist/chunk-CJGCPAG4.js.map +0 -1
- package/dist/chunk-CPXLJ6WP.js +0 -41
- package/dist/chunk-CPXLJ6WP.js.map +0 -1
- package/dist/chunk-DRPITBVU.js +0 -45
- package/dist/chunk-DRPITBVU.js.map +0 -1
- package/dist/chunk-FYMLBAXF.js +0 -58
- package/dist/chunk-FYMLBAXF.js.map +0 -1
- package/dist/chunk-GDMVAFBR.js +0 -52
- package/dist/chunk-GDMVAFBR.js.map +0 -1
- package/dist/chunk-GMRRCZJE.js +0 -58
- package/dist/chunk-GMRRCZJE.js.map +0 -1
- package/dist/chunk-GQHVCZC2.js +0 -53
- package/dist/chunk-GQHVCZC2.js.map +0 -1
- package/dist/chunk-HNHY2UPD.js +0 -41
- package/dist/chunk-HNHY2UPD.js.map +0 -1
- package/dist/chunk-IHHHNFM6.js +0 -41
- package/dist/chunk-IHHHNFM6.js.map +0 -1
- package/dist/chunk-J63WDE5C.js +0 -58
- package/dist/chunk-J63WDE5C.js.map +0 -1
- package/dist/chunk-JCCPAOT2.js +0 -58
- package/dist/chunk-JCCPAOT2.js.map +0 -1
- package/dist/chunk-JNYQMWHZ.js +0 -58
- package/dist/chunk-JNYQMWHZ.js.map +0 -1
- package/dist/chunk-JZG3HCC7.js +0 -58
- package/dist/chunk-JZG3HCC7.js.map +0 -1
- package/dist/chunk-KCY2I6MG.js +0 -79
- package/dist/chunk-KCY2I6MG.js.map +0 -1
- package/dist/chunk-LT7TO4ZL.js +0 -68
- package/dist/chunk-LT7TO4ZL.js.map +0 -1
- package/dist/chunk-MNQDWW4K.js +0 -58
- package/dist/chunk-MNQDWW4K.js.map +0 -1
- package/dist/chunk-MSUEJHST.js +0 -45
- package/dist/chunk-MSUEJHST.js.map +0 -1
- package/dist/chunk-NE6RFUQH.js +0 -58
- package/dist/chunk-NE6RFUQH.js.map +0 -1
- package/dist/chunk-O3DNDMV3.js +0 -7
- package/dist/chunk-O3DNDMV3.js.map +0 -1
- package/dist/chunk-OC5QUZVM.js +0 -58
- package/dist/chunk-OC5QUZVM.js.map +0 -1
- package/dist/chunk-OIFEF5VB.js +0 -42
- package/dist/chunk-OIFEF5VB.js.map +0 -1
- package/dist/chunk-OINQZRKE.js +0 -58
- package/dist/chunk-OINQZRKE.js.map +0 -1
- package/dist/chunk-ORTZF3HP.js +0 -58
- package/dist/chunk-ORTZF3HP.js.map +0 -1
- package/dist/chunk-PAVRUXYL.js +0 -58
- package/dist/chunk-PAVRUXYL.js.map +0 -1
- package/dist/chunk-PN5IG2E2.js +0 -45
- package/dist/chunk-PN5IG2E2.js.map +0 -1
- package/dist/chunk-QQGWKBEZ.js +0 -58
- package/dist/chunk-QQGWKBEZ.js.map +0 -1
- package/dist/chunk-R4GUD2VA.js +0 -60
- package/dist/chunk-R4GUD2VA.js.map +0 -1
- package/dist/chunk-RF4YDZZ4.js +0 -58
- package/dist/chunk-RF4YDZZ4.js.map +0 -1
- package/dist/chunk-RKMEMSNF.js +0 -58
- package/dist/chunk-RKMEMSNF.js.map +0 -1
- package/dist/chunk-SOOUKL7Y.js +0 -68
- package/dist/chunk-SOOUKL7Y.js.map +0 -1
- package/dist/chunk-T5Q5FCHS.js +0 -63
- package/dist/chunk-T5Q5FCHS.js.map +0 -1
- package/dist/chunk-VJZWXCR7.js +0 -45
- package/dist/chunk-VJZWXCR7.js.map +0 -1
- package/dist/chunk-VXP6OHK4.js +0 -58
- package/dist/chunk-VXP6OHK4.js.map +0 -1
- package/dist/chunk-W5BNZRVH.js +0 -58
- package/dist/chunk-W5BNZRVH.js.map +0 -1
- package/dist/chunk-WONX63YC.js +0 -58
- package/dist/chunk-WONX63YC.js.map +0 -1
- package/dist/chunk-WSJ2CEUB.js +0 -58
- package/dist/chunk-WSJ2CEUB.js.map +0 -1
- package/dist/chunk-WW5KIOBM.js +0 -52
- package/dist/chunk-WW5KIOBM.js.map +0 -1
- package/dist/chunk-XI365RDH.js +0 -58
- package/dist/chunk-XI365RDH.js.map +0 -1
- package/dist/chunk-XQDU2EAW.js +0 -58
- package/dist/chunk-XQDU2EAW.js.map +0 -1
- package/dist/chunk-Z5PFJO4K.js +0 -72
- package/dist/chunk-Z5PFJO4K.js.map +0 -1
- package/dist/chunk-ZAPTCVQ4.js +0 -79
- package/dist/chunk-ZAPTCVQ4.js.map +0 -1
- package/dist/chunk-ZPKFO5Y3.js +0 -45
- package/dist/chunk-ZPKFO5Y3.js.map +0 -1
- /package/dist/{chunk-CVRGXNMT.js.map → chunk-22326A76.js.map} +0 -0
- /package/dist/{chunk-GCOMTYEP.js.map → chunk-22N7RF76.js.map} +0 -0
- /package/dist/{chunk-LCCC6IFX.js.map → chunk-2JMG2NYA.js.map} +0 -0
- /package/dist/{chunk-KOWWLQ4T.js.map → chunk-3V23BLWS.js.map} +0 -0
- /package/dist/{chunk-A6Q3HZ7S.js.map → chunk-424YTQ7S.js.map} +0 -0
- /package/dist/{chunk-GMRXEZIY.js.map → chunk-4EO3MXIL.js.map} +0 -0
- /package/dist/{chunk-6OSTER2K.js.map → chunk-4F74LXWN.js.map} +0 -0
- /package/dist/{chunk-L5EAP7M6.js.map → chunk-4OFHCKSF.js.map} +0 -0
- /package/dist/{chunk-PN4HBSXS.js.map → chunk-4OYTRVXP.js.map} +0 -0
- /package/dist/{chunk-5O7X52HC.js.map → chunk-4YMLJSQH.js.map} +0 -0
- /package/dist/{chunk-TZGMNQ2W.js.map → chunk-56GG45EL.js.map} +0 -0
- /package/dist/{chunk-DKJPEXEA.js.map → chunk-57IYTFMO.js.map} +0 -0
- /package/dist/{chunk-I2ZOU3LX.js.map → chunk-5QBPSCEV.js.map} +0 -0
- /package/dist/{chunk-U2QL5DES.js.map → chunk-6I6CUDF5.js.map} +0 -0
- /package/dist/{chunk-U75O4N7J.js.map → chunk-6JAQTZEG.js.map} +0 -0
- /package/dist/{chunk-CPRGYWTZ.js.map → chunk-6U5KRAEQ.js.map} +0 -0
- /package/dist/{chunk-VPERT2RQ.js.map → chunk-6X4TZP6Q.js.map} +0 -0
- /package/dist/{chunk-FU6AFL6I.js.map → chunk-6Z5DLCPL.js.map} +0 -0
- /package/dist/{chunk-CGRAKSYL.js.map → chunk-7BTR777N.js.map} +0 -0
- /package/dist/{chunk-6RHEORCQ.js.map → chunk-7GSUDUZQ.js.map} +0 -0
- /package/dist/{chunk-EFCQZTUA.js.map → chunk-AKZQJZ2S.js.map} +0 -0
- /package/dist/{chunk-NIGZA3RF.js.map → chunk-ANBURRYG.js.map} +0 -0
- /package/dist/{chunk-3O476TUU.js.map → chunk-C4IWE6EG.js.map} +0 -0
- /package/dist/{chunk-AYBPPRAY.js.map → chunk-EI7DPTLJ.js.map} +0 -0
- /package/dist/{chunk-J4YBXKP5.js.map → chunk-EN6XRDGV.js.map} +0 -0
- /package/dist/{chunk-4U5AKVSR.js.map → chunk-FEGUI44C.js.map} +0 -0
- /package/dist/{chunk-VQAHPLVU.js.map → chunk-HWQEBPBR.js.map} +0 -0
- /package/dist/{chunk-PEPH3MRE.js.map → chunk-IEHOS5PX.js.map} +0 -0
- /package/dist/{chunk-NID37EIP.js.map → chunk-IUBKC6AB.js.map} +0 -0
- /package/dist/{chunk-D66MNGFU.js.map → chunk-JAE7ZKUY.js.map} +0 -0
- /package/dist/{chunk-HWSNR2KC.js.map → chunk-JRLU7NHI.js.map} +0 -0
- /package/dist/{chunk-VOUGO25C.js.map → chunk-KHPEYFDT.js.map} +0 -0
- /package/dist/{chunk-X2V77FMW.js.map → chunk-KMXJJC2C.js.map} +0 -0
- /package/dist/{chunk-KKJDGONH.js.map → chunk-LGQ65LMH.js.map} +0 -0
- /package/dist/{chunk-6AZDWFW7.js.map → chunk-MAVXX7FU.js.map} +0 -0
- /package/dist/{chunk-JHXDNCGN.js.map → chunk-NERZEY7E.js.map} +0 -0
- /package/dist/{chunk-MRHOKDVM.js.map → chunk-NP7D63VZ.js.map} +0 -0
- /package/dist/{chunk-IGFQAHJL.js.map → chunk-OHFEMVML.js.map} +0 -0
- /package/dist/{chunk-XHLO7WZC.js.map → chunk-OQ72S67G.js.map} +0 -0
- /package/dist/{chunk-RHZT4IHH.js.map → chunk-OY5IR4M2.js.map} +0 -0
- /package/dist/{chunk-GUC4TZFH.js.map → chunk-QH7PSBOT.js.map} +0 -0
- /package/dist/{chunk-2NIEBPWK.js.map → chunk-QQAHPXJN.js.map} +0 -0
- /package/dist/{chunk-DQKOZ26N.js.map → chunk-QV2A3LAV.js.map} +0 -0
- /package/dist/{chunk-GJBFYFCK.js.map → chunk-R63TXRXJ.js.map} +0 -0
- /package/dist/{chunk-M7MGOW2G.js.map → chunk-R654DYKB.js.map} +0 -0
- /package/dist/{chunk-6ALL7KH4.js.map → chunk-RN7BGXP5.js.map} +0 -0
- /package/dist/{chunk-GPLLJ4CH.js.map → chunk-SMJZUZOV.js.map} +0 -0
- /package/dist/{chunk-MXPVB463.js.map → chunk-VW3RIZLP.js.map} +0 -0
- /package/dist/{chunk-OAQZ5XEP.js.map → chunk-W5PMKWQ4.js.map} +0 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EditCoachingTime
|
|
3
|
+
} from "./chunk-PEH6343K.js";
|
|
4
|
+
import {
|
|
5
|
+
EditServiceType
|
|
6
|
+
} from "./chunk-ULT5TSRG.js";
|
|
7
|
+
import {
|
|
8
|
+
Grid
|
|
9
|
+
} from "./chunk-EGEQY3KT.js";
|
|
10
|
+
import {
|
|
11
|
+
DataList
|
|
12
|
+
} from "./chunk-VTJZMOSP.js";
|
|
13
|
+
import {
|
|
14
|
+
Dialog
|
|
15
|
+
} from "./chunk-22326A76.js";
|
|
16
|
+
import {
|
|
17
|
+
Heading
|
|
18
|
+
} from "./chunk-34OQDUQR.js";
|
|
19
|
+
import {
|
|
20
|
+
Card
|
|
21
|
+
} from "./chunk-HEDMSFPW.js";
|
|
22
|
+
import {
|
|
23
|
+
BulletText
|
|
24
|
+
} from "./chunk-VE737SXT.js";
|
|
25
|
+
import {
|
|
26
|
+
Flex
|
|
27
|
+
} from "./chunk-25HMMI7R.js";
|
|
28
|
+
import {
|
|
29
|
+
Button
|
|
30
|
+
} from "./chunk-BW46WIN5.js";
|
|
31
|
+
import {
|
|
32
|
+
Pencil1Icon
|
|
33
|
+
} from "./chunk-V5XKNSCK.js";
|
|
34
|
+
import {
|
|
35
|
+
__objRest,
|
|
36
|
+
__spreadProps,
|
|
37
|
+
__spreadValues
|
|
38
|
+
} from "./chunk-2NMEKWO5.js";
|
|
39
|
+
|
|
40
|
+
// src/app/platform/session-card.tsx
|
|
41
|
+
import { useCallback, useMemo } from "react";
|
|
42
|
+
import { format } from "date-fns";
|
|
43
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var preventDefault = (e) => {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
};
|
|
47
|
+
function SessionCard(props) {
|
|
48
|
+
const _a = props, {
|
|
49
|
+
sessionNumber,
|
|
50
|
+
userName,
|
|
51
|
+
error,
|
|
52
|
+
ExtraButtons,
|
|
53
|
+
TitleExtra,
|
|
54
|
+
editable,
|
|
55
|
+
onSaveDate,
|
|
56
|
+
onSaveSessionType,
|
|
57
|
+
startAt,
|
|
58
|
+
endAt,
|
|
59
|
+
sessionType
|
|
60
|
+
} = _a, rest = __objRest(_a, [
|
|
61
|
+
"sessionNumber",
|
|
62
|
+
"userName",
|
|
63
|
+
"error",
|
|
64
|
+
"ExtraButtons",
|
|
65
|
+
"TitleExtra",
|
|
66
|
+
"editable",
|
|
67
|
+
"onSaveDate",
|
|
68
|
+
"onSaveSessionType",
|
|
69
|
+
"startAt",
|
|
70
|
+
"endAt",
|
|
71
|
+
"sessionType"
|
|
72
|
+
]);
|
|
73
|
+
const renderEditButton = useCallback(() => {
|
|
74
|
+
return /* @__PURE__ */ jsx(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ jsx(Pencil1Icon, {}) });
|
|
75
|
+
}, []);
|
|
76
|
+
const sessionTimeStr = useMemo(() => {
|
|
77
|
+
if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
|
|
78
|
+
return `${format(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${format(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
79
|
+
}, [startAt, endAt]);
|
|
80
|
+
return /* @__PURE__ */ jsx(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
|
|
81
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
|
|
82
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
83
|
+
TitleExtra,
|
|
84
|
+
error ? /* @__PURE__ */ jsx(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ jsxs(DataList.Root, { children: [
|
|
87
|
+
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
88
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
89
|
+
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
90
|
+
sessionTimeStr,
|
|
91
|
+
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
93
|
+
/* @__PURE__ */ jsx(
|
|
94
|
+
Dialog.Content,
|
|
95
|
+
{
|
|
96
|
+
onOpenAutoFocus: preventDefault,
|
|
97
|
+
style: { overflow: "visible" },
|
|
98
|
+
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
99
|
+
children: /* @__PURE__ */ jsx(
|
|
100
|
+
EditCoachingTime,
|
|
101
|
+
{
|
|
102
|
+
defaultEndAt: endAt,
|
|
103
|
+
defaultStartAt: startAt,
|
|
104
|
+
onClickSave: onSaveDate
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
] }) : null
|
|
110
|
+
] })
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ jsxs(Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
113
|
+
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
114
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
115
|
+
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
116
|
+
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
117
|
+
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
118
|
+
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
Dialog.Content,
|
|
121
|
+
{
|
|
122
|
+
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
123
|
+
children: /* @__PURE__ */ jsx(
|
|
124
|
+
EditServiceType,
|
|
125
|
+
{
|
|
126
|
+
defaultServiceType: sessionType,
|
|
127
|
+
onClickSave: onSaveSessionType
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }) : null
|
|
133
|
+
] })
|
|
134
|
+
] }),
|
|
135
|
+
/* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
136
|
+
] })
|
|
137
|
+
] })
|
|
138
|
+
] }) }));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export {
|
|
142
|
+
SessionCard
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=chunk-TDIII52V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/session-card.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { format } from 'date-fns';\nimport type { ServiceType } from '@/types/biz.type';\nimport type { CardProps } from '../../atoms';\nimport {\n BulletText,\n Button,\n Card,\n DataList,\n Dialog,\n Flex,\n Grid,\n Heading,\n} from '../../atoms';\nimport { Pencil1Icon } from '../../icon';\nimport { EditCoachingTime } from './edit-coaching-time';\nimport { EditServiceType } from './edit-service-type';\n\nconst preventDefault = (e: Event): void => {\n e.preventDefault();\n};\nexport type SessionCardProps = Omit<CardProps, 'error'> & {\n error?: string;\n startAt?: Date;\n endAt?: Date;\n sessionType?: ServiceType;\n userName?: string;\n sessionNumber?: number;\n ExtraButtons?: React.ReactNode;\n editable?: boolean;\n TitleExtra?: React.ReactNode;\n onSaveDate?: (startTime: Date, endTime: Date) => void;\n onSaveSessionType?: (sessionType: string) => void;\n};\n\nexport function SessionCard(props: SessionCardProps): React.ReactNode {\n const {\n sessionNumber,\n userName,\n error,\n ExtraButtons,\n TitleExtra,\n editable,\n onSaveDate,\n onSaveSessionType,\n startAt,\n endAt,\n sessionType,\n ...rest\n } = props;\n\n const renderEditButton = useCallback((): React.ReactNode => {\n return (\n <Button color=\"gray\" ml=\"2\" variant=\"transparent\">\n <Pencil1Icon />\n </Button>\n );\n }, []);\n\n const sessionTimeStr = useMemo(() => {\n if (!startAt || !endAt) return '알 수 없음';\n\n return `${format(startAt, 'yyyy년 MM월 dd일 HH시 mm분')} ~ ${format(endAt, 'HH시 mm분')}`;\n }, [startAt, endAt]);\n\n return (\n <Card error={Boolean(error)} {...rest}>\n <Flex direction=\"column\" gap=\"3\">\n <Flex align=\"center\" width=\"100%\">\n <Heading variant=\"heading4\">\n {`${userName || '알 수 없음'}님 ${sessionNumber || '-'}회차`}\n </Heading>\n {TitleExtra}\n {error ? (\n <BulletText as=\"p\" color=\"red\" variant=\"caption\">\n {error}\n </BulletText>\n ) : null}\n </Flex>\n <DataList.Root>\n <DataList.Item>\n <DataList.Label>코칭 일시</DataList.Label>\n <DataList.Value>\n {sessionTimeStr}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n onOpenAutoFocus={preventDefault}\n style={{ overflow: 'visible' }}\n title={`${sessionNumber}회차 세션 일시 변경하기`}\n >\n <EditCoachingTime\n defaultEndAt={endAt}\n defaultStartAt={startAt}\n onClickSave={onSaveDate}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n <Grid columns={{ initial: '1', xs: '2' }} style={{ gap: 'inherit' }}>\n <DataList.Item>\n <DataList.Label>세션 참여 방식</DataList.Label>\n <DataList.Value>\n {sessionType === 'offlineCoaching' ? '오프라인' : '온라인'}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n title={`${sessionNumber}회차 세션 진행 방식 변경하기`}\n >\n <EditServiceType\n defaultServiceType={sessionType}\n onClickSave={onSaveSessionType}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n\n <Flex gap=\"2\" justify=\"end\">\n {ExtraButtons}\n </Flex>\n </Grid>\n </DataList.Root>\n </Flex>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,eAAe;AA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
|
+
} from "./chunk-R33GWQU3.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-PARGQUJB.js";
|
|
16
|
+
import {
|
|
17
|
+
TriangleArrowUpIcon
|
|
18
|
+
} from "./chunk-PVL7SJYR.js";
|
|
19
|
+
import {
|
|
20
|
+
TriangleArrowDownIcon
|
|
21
|
+
} from "./chunk-2TPQQBUQ.js";
|
|
22
|
+
|
|
23
|
+
// src/molecules/expand-table/index.tsx
|
|
24
|
+
import {
|
|
25
|
+
flexRender,
|
|
26
|
+
getCoreRowModel,
|
|
27
|
+
useReactTable,
|
|
28
|
+
getSortedRowModel,
|
|
29
|
+
createColumnHelper,
|
|
30
|
+
getPaginationRowModel
|
|
31
|
+
} from "@tanstack/react-table";
|
|
32
|
+
import { useCallback, useMemo, useState } from "react";
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
function ExpandTable(props) {
|
|
35
|
+
const {
|
|
36
|
+
data,
|
|
37
|
+
columns,
|
|
38
|
+
ExpandComp,
|
|
39
|
+
placeholder,
|
|
40
|
+
onRowClick,
|
|
41
|
+
tableStyle,
|
|
42
|
+
showPagination = true,
|
|
43
|
+
isLoading,
|
|
44
|
+
pageIndex = 0,
|
|
45
|
+
pageSize = 10,
|
|
46
|
+
siblingCount = 2,
|
|
47
|
+
getRowStyle,
|
|
48
|
+
getCellStyle
|
|
49
|
+
} = props;
|
|
50
|
+
const defaultAlign = "left";
|
|
51
|
+
const [pagination, setPagination] = useState({
|
|
52
|
+
pageIndex: pageIndex || 0,
|
|
53
|
+
pageSize: pageSize || 9999
|
|
54
|
+
});
|
|
55
|
+
const [sorting, setSorting] = useState([]);
|
|
56
|
+
const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({
|
|
57
|
+
data: data || [],
|
|
58
|
+
columns,
|
|
59
|
+
getCoreRowModel: getCoreRowModel(),
|
|
60
|
+
getSortedRowModel: getSortedRowModel(),
|
|
61
|
+
state: {
|
|
62
|
+
sorting,
|
|
63
|
+
pagination
|
|
64
|
+
},
|
|
65
|
+
onSortingChange: setSorting,
|
|
66
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
67
|
+
onPaginationChange: setPagination
|
|
68
|
+
});
|
|
69
|
+
const gridTemplateColumns = useMemo(() => {
|
|
70
|
+
return columns.map((col) => {
|
|
71
|
+
var _a;
|
|
72
|
+
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
|
|
73
|
+
return `${col.size || 150}px`;
|
|
74
|
+
}).join(" ");
|
|
75
|
+
}, [columns]);
|
|
76
|
+
const rowModels = getRowModel();
|
|
77
|
+
const onChangePagination = useCallback(
|
|
78
|
+
(page) => {
|
|
79
|
+
setPageIndex(page - 1);
|
|
80
|
+
},
|
|
81
|
+
[setPageIndex]
|
|
82
|
+
);
|
|
83
|
+
const helpCompRender = useCallback(
|
|
84
|
+
(rowLength) => {
|
|
85
|
+
if (isLoading) {
|
|
86
|
+
return /* @__PURE__ */ jsx(
|
|
87
|
+
Flex,
|
|
88
|
+
{
|
|
89
|
+
align: "center",
|
|
90
|
+
height: "100%",
|
|
91
|
+
justify: "center",
|
|
92
|
+
p: "5",
|
|
93
|
+
width: "100%",
|
|
94
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
if (rowLength === 0) {
|
|
99
|
+
return /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
100
|
+
}
|
|
101
|
+
return null;
|
|
102
|
+
},
|
|
103
|
+
[isLoading, placeholder]
|
|
104
|
+
);
|
|
105
|
+
const pageCount = useMemo(() => {
|
|
106
|
+
if (!data) return 0;
|
|
107
|
+
return Math.ceil(data.length / pageSize);
|
|
108
|
+
}, [data, pageSize]);
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", { className: "expand-table-wrapper", children: [
|
|
110
|
+
/* @__PURE__ */ jsxs("div", { className: "expand-table", style: tableStyle, children: [
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
className: "tr",
|
|
115
|
+
style: { gridTemplateColumns },
|
|
116
|
+
children: headerGroup.headers.map((header) => {
|
|
117
|
+
var _a;
|
|
118
|
+
const sortable = header.column.getCanSort();
|
|
119
|
+
const sortedState = header.column.getIsSorted();
|
|
120
|
+
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
121
|
+
return /* @__PURE__ */ jsx("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ jsxs(
|
|
122
|
+
"button",
|
|
123
|
+
{
|
|
124
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
125
|
+
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
126
|
+
type: "button",
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsx(Typo, { as: "div", variant: "body", children: flexRender(
|
|
129
|
+
header.column.columnDef.header,
|
|
130
|
+
header.getContext()
|
|
131
|
+
) }),
|
|
132
|
+
sortable ? /* @__PURE__ */ jsxs(
|
|
133
|
+
Flex,
|
|
134
|
+
{
|
|
135
|
+
direction: "column",
|
|
136
|
+
style: { marginLeft: "var(--space-2)" },
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
139
|
+
TriangleArrowUpIcon,
|
|
140
|
+
{
|
|
141
|
+
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ jsx(
|
|
145
|
+
TriangleArrowDownIcon,
|
|
146
|
+
{
|
|
147
|
+
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
) : null
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
) }, header.id);
|
|
156
|
+
})
|
|
157
|
+
},
|
|
158
|
+
headerGroup.id
|
|
159
|
+
)) }),
|
|
160
|
+
/* @__PURE__ */ jsx("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
161
|
+
return /* @__PURE__ */ jsx(
|
|
162
|
+
Row,
|
|
163
|
+
{
|
|
164
|
+
ExpandComp,
|
|
165
|
+
defaultAlign,
|
|
166
|
+
getCellStyle,
|
|
167
|
+
getRowStyle,
|
|
168
|
+
gridTemplateColumns,
|
|
169
|
+
onRowClick,
|
|
170
|
+
row
|
|
171
|
+
},
|
|
172
|
+
`row_${row.id}`
|
|
173
|
+
);
|
|
174
|
+
}) })
|
|
175
|
+
] }),
|
|
176
|
+
showPagination ? /* @__PURE__ */ jsx(Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ jsx(
|
|
177
|
+
Pagination,
|
|
178
|
+
{
|
|
179
|
+
count: pageCount,
|
|
180
|
+
onChange: onChangePagination,
|
|
181
|
+
page: pagination.pageIndex + 1,
|
|
182
|
+
siblingCount
|
|
183
|
+
}
|
|
184
|
+
) }) : null
|
|
185
|
+
] });
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export {
|
|
189
|
+
createColumnHelper,
|
|
190
|
+
ExpandTable
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=chunk-TJ5TPX5S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type {\n ColumnDef,\n SortingState,\n RowData,\n Row as RowType,\n PaginationState,\n} from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n getPaginationRowModel,\n} from '@tanstack/react-table';\nimport React, { useCallback, useMemo, useState } from 'react';\nimport { Flex, Pagination, Spinner, Typo } from '../../atoms';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef, RowType as Row };\nexport { createColumnHelper };\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n getRowStyle?: (data: Datum) => CSSProperties;\n getCellStyle?: (data: Datum) => CSSProperties;\n tableStyle?: CSSProperties;\n isLoading?: boolean;\n\n /** pagination - 표시 유무, 기본값 true */\n showPagination?: boolean;\n /** pagination - 현재 선택된 페이지, 0부터 시작 */\n pageIndex?: number;\n /** pagination - 한 페이지에 표시될 컬럼 개수, 기본값 10 */\n pageSize?: number;\n /** pagination - */\n siblingCount?: number;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const {\n data,\n columns,\n ExpandComp,\n placeholder,\n onRowClick,\n tableStyle,\n showPagination = true,\n isLoading,\n pageIndex = 0,\n pageSize = 10,\n siblingCount = 2,\n getRowStyle,\n getCellStyle,\n } = props;\n const defaultAlign = 'left';\n const [pagination, setPagination] = useState<PaginationState>({\n pageIndex: pageIndex || 0,\n pageSize: pageSize || 9999,\n });\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups, setPageIndex } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n pagination,\n },\n onSortingChange: setSorting,\n getPaginationRowModel: getPaginationRowModel(),\n onPaginationChange: setPagination,\n });\n\n const gridTemplateColumns = useMemo<string>(() => {\n return columns\n .map((col) => {\n if (col.meta?.autoSize) return `minmax(${col.size || 50}px, 1fr)`;\n return `${col.size || 150}px`;\n })\n .join(' ');\n }, [columns]);\n\n const rowModels = getRowModel();\n\n const onChangePagination = useCallback(\n (page: number) => {\n setPageIndex(page - 1);\n },\n [setPageIndex]\n );\n\n const helpCompRender = useCallback(\n (rowLength: number) => {\n if (isLoading) {\n return (\n <Flex\n align=\"center\"\n height=\"100%\"\n justify=\"center\"\n p=\"5\"\n width=\"100%\"\n >\n <Spinner />\n </Flex>\n );\n }\n if (rowLength === 0) {\n return (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || (\n <Typo color=\"gray\" mb=\"6\" mt=\"6\" variant=\"body\">\n 데이터가 없습니다\n </Typo>\n )}\n </Flex>\n </div>\n );\n }\n return null;\n },\n [isLoading, placeholder]\n );\n\n const pageCount = useMemo(() => {\n if (!data) return 0;\n return Math.ceil(data.length / pageSize);\n }, [data, pageSize]);\n\n return (\n <div className=\"expand-table-wrapper\">\n <div className=\"expand-table\" style={tableStyle}>\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div\n className=\"tr\"\n key={headerGroup.id}\n style={{ gridTemplateColumns }}\n >\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n const justifyContent =\n header.column.columnDef.meta?.align || defaultAlign;\n\n return (\n <div className={`${justifyContent} th`} key={header.id}>\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={\n sortable ? { cursor: 'pointer' } : { cursor: 'default' }\n }\n type=\"button\"\n >\n <Typo as=\"div\" variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n {sortable ? (\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n <TriangleArrowUpIcon\n color={\n sortedState === 'asc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n <TriangleArrowDownIcon\n color={\n sortedState === 'desc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n </Flex>\n ) : null}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <div className=\"tbody\">\n {/* 조건에 따라 placeholder 또는 loading 렌더*/}\n {helpCompRender(rowModels.rows.length) ||\n rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n defaultAlign={defaultAlign}\n getCellStyle={getCellStyle}\n getRowStyle={getRowStyle}\n gridTemplateColumns={gridTemplateColumns}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </div>\n </div>\n {showPagination ? (\n <Flex justify=\"end\" pt=\"3\" width=\"100%\">\n <Pagination\n count={pageCount}\n onChange={onChangePagination}\n page={pagination.pageIndex + 1}\n siblingCount={siblingCount}\n />\n </Flex>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,aAAa,SAAS,gBAAgB;AAuG1C,cA2DU,YA3DV;AApEL,SAAS,YACd,OACiB;AACjB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB;AAAA,IACA,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,eAAe;AAAA,IACf;AAAA,IACA;AAAA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;AAAA,wBACA;AAAA,0BAAC;AAAA;AAAA,4BACC,OACE,gBAAgB,SACZ,mBACA;AAAA;AAAA,wBAER;AAAA;AAAA;AAAA,kBACF,IACE;AAAA;AAAA;AAAA,YACN,KAnC2C,OAAO,EAoCpD;AAAA,UAEJ,CAAC;AAAA;AAAA,QAhDI,YAAY;AAAA,MAiDnB,CACD,GACH;AAAA,MACA,oBAAC,SAAI,WAAU,SAEZ,yBAAe,UAAU,KAAK,MAAM,KACnC,UAAU,KAAK,IAAI,CAAC,QAAQ;AAC1B,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,YAEA;AAAA,YACA;AAAA;AAAA,UAFK,OAAO,IAAI,EAAE;AAAA,QAGpB;AAAA,MAEJ,CAAC,GACL;AAAA,OACF;AAAA,IACG,iBACG,oBAAC,QAAK,SAAQ,OAAM,IAAG,KAAI,OAAM,QAC/B;AAAA,MAAC;AAAA;AAAA,QACC,OAAO;AAAA,QACP,UAAU;AAAA,QACV,MAAM,WAAW,YAAY;AAAA,QAC7B;AAAA;AAAA,IACF,GACF,IACE;AAAA,KACR;AAEJ;","names":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCurriculumReviewContext
|
|
3
|
+
} from "./chunk-WZVJYDVP.js";
|
|
4
|
+
import {
|
|
5
|
+
Grid
|
|
6
|
+
} from "./chunk-EGEQY3KT.js";
|
|
7
|
+
import {
|
|
8
|
+
Heading
|
|
9
|
+
} from "./chunk-34OQDUQR.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-PARGQUJB.js";
|
|
16
|
+
import {
|
|
17
|
+
Button
|
|
18
|
+
} from "./chunk-BW46WIN5.js";
|
|
19
|
+
import {
|
|
20
|
+
HomeIcon,
|
|
21
|
+
ResetIcon
|
|
22
|
+
} from "./chunk-V5XKNSCK.js";
|
|
23
|
+
|
|
24
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
27
|
+
function CompleteReview(props) {
|
|
28
|
+
const { onClickReviewMyAnswer } = props;
|
|
29
|
+
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
30
|
+
const { reviewMeta } = curriculum.contents;
|
|
31
|
+
return /* @__PURE__ */ jsxs(
|
|
32
|
+
Flex,
|
|
33
|
+
{
|
|
34
|
+
align: "center",
|
|
35
|
+
direction: "column",
|
|
36
|
+
height: "100%",
|
|
37
|
+
justify: "between",
|
|
38
|
+
maxHeight: "550px",
|
|
39
|
+
maxWidth: "650px",
|
|
40
|
+
mx: "4",
|
|
41
|
+
my: "6",
|
|
42
|
+
width: "100%",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", direction: "column", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Heading, { mb: "6", variant: "heading5", weight: "regular", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewTopTitle) || "\uC751\uB2F5\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uC81C\uCD9C\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
"img",
|
|
48
|
+
{
|
|
49
|
+
alt: "complete-review",
|
|
50
|
+
height: 141,
|
|
51
|
+
src: THANKS_IMAGE_S3_URL,
|
|
52
|
+
width: 118
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ jsx(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
56
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading5", children: reviewContents.title }),
|
|
57
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", color: "gray", mt: "6", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewDescription) || `\uC774\uBC88 \uD559\uC2B5\uC774 \uB9AC\uB354\uC2ED\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4.
|
|
58
|
+
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ jsxs(Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
61
|
+
/* @__PURE__ */ jsxs(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
62
|
+
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
63
|
+
/* @__PURE__ */ jsx(ResetIcon, {})
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ jsxs(Button, { onClick: onClickNextContents, children: [
|
|
66
|
+
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
67
|
+
/* @__PURE__ */ jsx(HomeIcon, {})
|
|
68
|
+
] })
|
|
69
|
+
] })
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
var complete_review_default = CompleteReview;
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
complete_review_default
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=chunk-TQL3UNNC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, Flex, Grid, Heading, Typo } from '@/atoms';\nimport { HomeIcon, ResetIcon } from '@/icon';\nimport { useCurriculumReviewContext } from './curriculum-review-context';\n\nconst THANKS_IMAGE_S3_URL = 'https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg';\n\nfunction CompleteReview(props: {\n onClickReviewMyAnswer: () => void;\n}): React.ReactNode {\n const { onClickReviewMyAnswer } = props;\n const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } =\n useCurriculumReviewContext();\n\n const { reviewMeta } = curriculum.contents;\n\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n height=\"100%\"\n justify=\"between\"\n maxHeight=\"550px\"\n maxWidth=\"650px\"\n mx=\"4\"\n my=\"6\"\n width=\"100%\"\n >\n <Flex align=\"center\" direction=\"column\">\n <Heading mb=\"6\" variant=\"heading5\" weight=\"regular\">\n {reviewMeta?.endReviewTopTitle || '응답을 성공적으로 제출했습니다'}\n </Heading>\n <img\n alt=\"complete-review\"\n height={141}\n src={THANKS_IMAGE_S3_URL}\n width={118}\n />\n <Typo color=\"gray\" mt=\"6\" variant=\"caption\">\n {sectionTitle}\n </Typo>\n <Heading variant=\"heading5\">{reviewContents.title}</Heading>\n <Typo align=\"center\" color=\"gray\" mt=\"6\">\n {reviewMeta?.endReviewDescription ||\n `이번 학습이 리더십에 도움이 되었기를 바랍니다.\\n 앞으로 있을 리더님의 성장을 기대합니다.`}\n </Typo>\n </Flex>\n\n <Grid columns={{ initial: '1fr', md: '2' }} gap=\"3\" width=\"100%\">\n <Button onClick={onClickReviewMyAnswer} variant=\"outline\">\n {reviewMeta?.endReviewBackButtonTitle || '나의 응답 다시 보기'}\n <ResetIcon />\n </Button>\n <Button onClick={onClickNextContents}>\n 커리큘럼으로 돌아가기 \n <HomeIcon />\n </Button>\n </Grid>\n </Flex>\n );\n}\n\nexport default CompleteReview;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;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@@
|
|
|
1
|
+
import {
|
|
2
|
+
OnOfflineRadioCard
|
|
3
|
+
} from "./chunk-T322YCWC.js";
|
|
4
|
+
import {
|
|
5
|
+
Dialog
|
|
6
|
+
} from "./chunk-22326A76.js";
|
|
7
|
+
import {
|
|
8
|
+
Box
|
|
9
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
Typo
|
|
15
|
+
} from "./chunk-PARGQUJB.js";
|
|
16
|
+
import {
|
|
17
|
+
Button
|
|
18
|
+
} from "./chunk-BW46WIN5.js";
|
|
19
|
+
|
|
20
|
+
// src/app/platform/edit-service-type.tsx
|
|
21
|
+
import { useCallback, useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function EditServiceType(props) {
|
|
24
|
+
const { defaultServiceType, onClickCancel } = props;
|
|
25
|
+
const [sessionType, setSessionType] = useState(
|
|
26
|
+
defaultServiceType
|
|
27
|
+
);
|
|
28
|
+
const onClickSave = useCallback(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
31
|
+
}, [props, sessionType]);
|
|
32
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Typo,
|
|
35
|
+
{
|
|
36
|
+
as: "p",
|
|
37
|
+
color: "gray",
|
|
38
|
+
mb: { initial: "5", xs: "3" },
|
|
39
|
+
variant: "caption",
|
|
40
|
+
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
44
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
EditServiceType
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-ULT5TSRG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/edit-service-type.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Box, Button, Dialog, Flex, Typo } from '@/atoms';\nimport type { ServiceType } from '@/types/biz.type';\nimport { OnOfflineRadioCard } from './on-offline-radio-card';\n\nexport interface EditServiceTypeProps {\n defaultServiceType?: ServiceType;\n onClickSave?: (serviceType: ServiceType) => void;\n onClickCancel?: () => void;\n}\n\nexport function EditServiceType(\n props: EditServiceTypeProps\n): React.ReactNode {\n const { defaultServiceType, onClickCancel } = props;\n const [sessionType, setSessionType] = useState<string | undefined>(\n defaultServiceType\n );\n\n const onClickSave = useCallback(() => {\n props.onClickSave?.(sessionType as ServiceType);\n }, [props, sessionType]);\n\n return (\n <Box>\n <Typo\n as=\"p\"\n color=\"gray\"\n mb={{ initial: '5', xs: '3' }}\n variant=\"caption\"\n >\n 세션 유형에 따라 책정되는 코칭 금액이 달라지므로, 정확하게 선택해주세요\n </Typo>\n <OnOfflineRadioCard onValueChange={setSessionType} value={sessionType} />\n <Flex gap=\"3\" justify=\"end\" mt={{ initial: '6', xs: '3' }}>\n <Dialog.Close>\n <Button color=\"gray\" onClick={onClickCancel} variant=\"outline\">\n 취소하기\n </Button>\n </Dialog.Close>\n <Dialog.Close>\n <Button onClick={onClickSave}>저장하기</Button>\n </Dialog.Close>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AAyBvC,cASA,YATA;AAdC,SAAS,gBACd,OACiB;AACjB,QAAM,EAAE,oBAAoB,cAAc,IAAI;AAC9C,QAAM,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC;AAAA,EACF;AAEA,QAAM,cAAc,YAAY,MAAM;AAnBxC;AAoBI,gBAAM,gBAAN,+BAAoB;AAAA,EACtB,GAAG,CAAC,OAAO,WAAW,CAAC;AAEvB,SACE,qBAAC,OACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,OAAM;AAAA,QACN,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,QAC5B,SAAQ;AAAA,QACT;AAAA;AAAA,IAED;AAAA,IACA,oBAAC,sBAAmB,eAAe,gBAAgB,OAAO,aAAa;AAAA,IACvE,qBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GACtD;AAAA,0BAAC,OAAO,OAAP,EACC,8BAAC,UAAO,OAAM,QAAO,SAAS,eAAe,SAAQ,WAAU,sCAE/D,GACF;AAAA,MACA,oBAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,aAAa,sCAAI,GACpC;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useCurriculumContext
|
|
3
|
+
} from "./chunk-IYQJIEVM.js";
|
|
4
|
+
import {
|
|
5
|
+
Grid
|
|
6
|
+
} from "./chunk-EGEQY3KT.js";
|
|
7
|
+
import {
|
|
8
|
+
Heading
|
|
9
|
+
} from "./chunk-34OQDUQR.js";
|
|
10
|
+
import {
|
|
11
|
+
IconButton
|
|
12
|
+
} from "./chunk-EN6GXHBD.js";
|
|
13
|
+
import {
|
|
14
|
+
Box
|
|
15
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
16
|
+
import {
|
|
17
|
+
Typo
|
|
18
|
+
} from "./chunk-PARGQUJB.js";
|
|
19
|
+
import {
|
|
20
|
+
ChevronLeftIcon,
|
|
21
|
+
ChevronRightIcon
|
|
22
|
+
} from "./chunk-V5XKNSCK.js";
|
|
23
|
+
|
|
24
|
+
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
25
|
+
import { useCallback } from "react";
|
|
26
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
function CurriculumSubNav() {
|
|
28
|
+
const {
|
|
29
|
+
selectedItem,
|
|
30
|
+
selectedSectionTitle,
|
|
31
|
+
hasPrev,
|
|
32
|
+
hasNext,
|
|
33
|
+
selectPrev,
|
|
34
|
+
selectNext,
|
|
35
|
+
scrollNavItem
|
|
36
|
+
} = useCurriculumContext();
|
|
37
|
+
const onClickPrev = useCallback(() => {
|
|
38
|
+
selectPrev((moveIndex) => {
|
|
39
|
+
scrollNavItem(moveIndex.toString());
|
|
40
|
+
});
|
|
41
|
+
}, [selectPrev, scrollNavItem]);
|
|
42
|
+
const onClickNext = useCallback(() => {
|
|
43
|
+
selectNext((moveIndex) => {
|
|
44
|
+
scrollNavItem(moveIndex.toString());
|
|
45
|
+
});
|
|
46
|
+
}, [selectNext, scrollNavItem]);
|
|
47
|
+
return /* @__PURE__ */ jsxs(
|
|
48
|
+
Grid,
|
|
49
|
+
{
|
|
50
|
+
align: "center",
|
|
51
|
+
columns: { initial: "32px 1fr 32px", md: "48px 1fr 48px" },
|
|
52
|
+
pb: { initial: "2", md: "3" },
|
|
53
|
+
px: { initial: "1", md: "2" },
|
|
54
|
+
py: "2",
|
|
55
|
+
rows: "auto",
|
|
56
|
+
children: [
|
|
57
|
+
hasPrev ? /* @__PURE__ */ jsx(
|
|
58
|
+
IconButton,
|
|
59
|
+
{
|
|
60
|
+
color: "gray",
|
|
61
|
+
onClick: onClickPrev,
|
|
62
|
+
size: { initial: "3", md: "4" },
|
|
63
|
+
variant: "ghost",
|
|
64
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
65
|
+
}
|
|
66
|
+
) : /* @__PURE__ */ jsx(Box, {}),
|
|
67
|
+
/* @__PURE__ */ jsxs(Box, { width: "100%", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ jsx(Heading, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
69
|
+
/* @__PURE__ */ jsx(Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ jsx(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
70
|
+
/* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", mt: "1", style: { textOverflow: "ellipsis" }, variant: "caption", children: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title })
|
|
71
|
+
] }),
|
|
72
|
+
hasNext ? /* @__PURE__ */ jsx(
|
|
73
|
+
IconButton,
|
|
74
|
+
{
|
|
75
|
+
color: "gray",
|
|
76
|
+
onClick: onClickNext,
|
|
77
|
+
size: { initial: "3", md: "4" },
|
|
78
|
+
variant: "ghost",
|
|
79
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, { height: "16px", width: "16px" })
|
|
80
|
+
}
|
|
81
|
+
) : /* @__PURE__ */ jsx(Box, {})
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
CurriculumSubNav
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=chunk-UYWN75ZH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/curriculum-sub-nav.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport { Box, Grid, Heading, IconButton, Typo } from '@/atoms';\nimport { ChevronLeftIcon, ChevronRightIcon } from '@/icon';\nimport { useCurriculumContext } from './curriculum-context';\n\nexport function CurriculumSubNav(): React.ReactNode {\n const {\n selectedItem,\n selectedSectionTitle,\n hasPrev,\n hasNext,\n selectPrev,\n selectNext,\n scrollNavItem,\n } = useCurriculumContext();\n\n const onClickPrev = useCallback(() => {\n selectPrev((moveIndex) => {\n scrollNavItem(moveIndex.toString());\n });\n }, [selectPrev, scrollNavItem]);\n\n const onClickNext = useCallback(() => {\n selectNext((moveIndex) => {\n scrollNavItem(moveIndex.toString());\n });\n }, [selectNext, scrollNavItem]);\n\n return (\n <Grid\n align=\"center\"\n columns={{ initial: '32px 1fr 32px', md: '48px 1fr 48px' }}\n pb={{ initial: '2', md: '3' }}\n px={{ initial: '1', md: '2' }}\n py=\"2\"\n rows=\"auto\"\n >\n {hasPrev ? (\n <IconButton\n color=\"gray\"\n onClick={onClickPrev}\n size={{ initial: '3', md: '4' }}\n variant=\"ghost\"\n >\n <ChevronLeftIcon height=\"16px\" width=\"16px\" />\n </IconButton>\n ) : (\n <Box />\n )}\n <Box width=\"100%\">\n {/* 데스크탑 타이틀 */}\n <Box display={{ initial: 'none', md: 'block' }}>\n <Heading style={{ textOverflow: 'ellipsis' }} variant=\"heading5\">\n {selectedItem.title}\n </Heading>\n </Box>\n\n {/* 모바일 타이틀 */}\n <Box display={{ initial: 'block', md: 'none' }}>\n <Typo weight=\"bold\">{selectedItem.title}</Typo>\n </Box>\n\n <Typo as=\"p\" color=\"gray\" mt=\"1\" style={{ textOverflow: 'ellipsis' }} variant='caption'>\n {selectedSectionTitle?.title}\n </Typo>\n </Box>\n {hasNext ? (\n <IconButton\n color=\"gray\"\n onClick={onClickNext}\n size={{ initial: '3', md: '4' }}\n variant=\"ghost\"\n >\n <ChevronRightIcon height=\"16px\" width=\"16px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AAE,SAAS,SAAS,IAAI,OAAO,GAC3C,8BAAC,QAAK,QAAO,QAAQ,uBAAa,OAAM,GAC1C;AAAA,UAEA,oBAAC,QAAK,IAAG,KAAI,OAAM,QAAO,IAAG,KAAI,OAAO,EAAE,cAAc,WAAW,GAAG,SAAQ,WAC3E,uEAAsB,OACzB;AAAA,WACF;AAAA,QACC,UACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAM;AAAA,YACN,SAAS;AAAA,YACT,MAAM,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,YAC9B,SAAQ;AAAA,YAER,8BAAC,oBAAiB,QAAO,QAAO,OAAM,QAAO;AAAA;AAAA,QAC/C,IAEA,oBAAC,OAAI;AAAA;AAAA;AAAA,EAET;AAEJ;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-PARGQUJB.js";
|
|
7
|
+
import {
|
|
8
|
+
__objRest,
|
|
9
|
+
__spreadProps,
|
|
10
|
+
__spreadValues
|
|
11
|
+
} from "./chunk-2NMEKWO5.js";
|
|
12
|
+
|
|
13
|
+
// src/atoms/bullet-text.tsx
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
function BulletText(_a) {
|
|
16
|
+
var _b = _a, {
|
|
17
|
+
children
|
|
18
|
+
} = _b, rest = __objRest(_b, [
|
|
19
|
+
"children"
|
|
20
|
+
]);
|
|
21
|
+
return /* @__PURE__ */ jsxs(Flex, { gap: "1", ml: "2", children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
23
|
+
/* @__PURE__ */ jsx(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
24
|
+
] });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
BulletText
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-VE737SXT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/bullet-text.tsx"],"sourcesContent":["import React from 'react';\nimport type { TypoProps } from './typo';\nimport { Typo } from './typo';\nimport { Flex } from './flex';\n\nexport type BulletTextProps = TypoProps;\n\nexport function BulletText({\n children,\n ...rest\n}: BulletTextProps): React.ReactNode {\n return (\n <Flex gap=\"1\" ml=\"2\">\n <Typo {...rest}>•</Typo>\n <Typo {...rest}>{children}</Typo>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAYI,SACE,KADF;AALG,SAAS,WAAW,IAGU;AAHV,eACzB;AAAA;AAAA,EARF,IAO2B,IAEtB,iBAFsB,IAEtB;AAAA,IADH;AAAA;AAGA,SACE,qBAAC,QAAK,KAAI,KAAI,IAAG,KACf;AAAA,wBAAC,uCAAS,OAAT,EAAe,qBAAC;AAAA,IACjB,oBAAC,uCAAS,OAAT,EAAgB,WAAS;AAAA,KAC5B;AAEJ;","names":[]}
|