@tipp/ui 1.5.6 → 1.5.7
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 +154 -242
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +24 -24
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -4
- package/dist/app/platform/edit-coaching-time.cjs +166 -92
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +11 -11
- package/dist/app/platform/edit-service-type.cjs +162 -123
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.d.cts +0 -1
- package/dist/app/platform/edit-service-type.d.ts +0 -1
- package/dist/app/platform/edit-service-type.js +12 -14
- package/dist/app/platform/goal-manage-card-edit.cjs +2 -2
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +11 -11
- package/dist/app/platform/goal-manage-card-read.cjs +42 -53
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.d.cts +1 -1
- package/dist/app/platform/goal-manage-card-read.d.ts +1 -1
- package/dist/app/platform/goal-manage-card-read.js +5 -5
- package/dist/app/platform/on-offline-radio-card.cjs +3 -10
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +11 -11
- package/dist/app/platform/report-card.cjs +34 -257
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.d.cts +5 -2
- package/dist/app/platform/report-card.d.ts +5 -2
- package/dist/app/platform/report-card.js +5 -27
- package/dist/app/platform/reservation-card.cjs +5 -12
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +12 -12
- package/dist/app/platform/session-card.cjs +72 -116
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.d.cts +2 -2
- package/dist/app/platform/session-card.d.ts +2 -2
- package/dist/app/platform/session-card.js +14 -14
- package/dist/app/platform/session-review-simple-read.cjs +5 -15
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.d.cts +1 -3
- package/dist/app/platform/session-review-simple-read.d.ts +1 -3
- package/dist/app/platform/session-review-simple-read.js +5 -5
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +8 -8
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +6 -6
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +6 -6
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -4
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +6 -6
- package/dist/app/platform/userInfos/utils.cjs +1 -1
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.d.cts +1 -1
- package/dist/app/platform/userInfos/utils.d.ts +1 -1
- package/dist/app/platform/userInfos/utils.js +5 -5
- package/dist/atoms/dialog.cjs +1 -1
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +1 -1
- package/dist/atoms/dialog.d.ts +1 -1
- package/dist/atoms/dialog.js +1 -1
- package/dist/atoms/drawer.cjs +20 -14
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +1 -1
- package/dist/atoms/index.cjs +21 -15
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +4 -4
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +2 -2
- package/dist/chunk-22KTTIFW.js +243 -0
- package/dist/chunk-22KTTIFW.js.map +1 -0
- package/dist/chunk-2IPK2RJW.js +30 -0
- package/dist/chunk-2IPK2RJW.js.map +1 -0
- package/dist/chunk-2N44DIUC.js +145 -0
- package/dist/chunk-2N44DIUC.js.map +1 -0
- package/dist/chunk-2VGMF3AV.js +163 -0
- package/dist/chunk-2VGMF3AV.js.map +1 -0
- package/dist/chunk-2XXY6PJ6.js +179 -0
- package/dist/chunk-2XXY6PJ6.js.map +1 -0
- package/dist/chunk-36O5PZEJ.js +176 -0
- package/dist/chunk-36O5PZEJ.js.map +1 -0
- package/dist/chunk-3A53I2GY.js +169 -0
- package/dist/chunk-3A53I2GY.js.map +1 -0
- package/dist/chunk-3AKDXL7S.js +63 -0
- package/dist/chunk-3AKDXL7S.js.map +1 -0
- package/dist/chunk-3IGVZUR6.js +152 -0
- package/dist/chunk-3IGVZUR6.js.map +1 -0
- package/dist/chunk-3IT37J4J.js +243 -0
- package/dist/chunk-3IT37J4J.js.map +1 -0
- package/dist/chunk-3K2YZTYI.js +54 -0
- package/dist/chunk-3K2YZTYI.js.map +1 -0
- package/dist/chunk-3OWBFZZC.js +54 -0
- package/dist/chunk-3OWBFZZC.js.map +1 -0
- package/dist/chunk-3PSXCE7Y.js +350 -0
- package/dist/chunk-3PSXCE7Y.js.map +1 -0
- package/dist/chunk-3VWO3XGU.js +350 -0
- package/dist/chunk-3VWO3XGU.js.map +1 -0
- package/dist/chunk-3VYOWIFN.js +60 -0
- package/dist/chunk-3VYOWIFN.js.map +1 -0
- package/dist/chunk-3YFZL75L.js +60 -0
- package/dist/chunk-3YFZL75L.js.map +1 -0
- package/dist/chunk-3ZXY26RI.js +163 -0
- package/dist/chunk-3ZXY26RI.js.map +1 -0
- package/dist/chunk-43FUNSV2.js +243 -0
- package/dist/chunk-43FUNSV2.js.map +1 -0
- package/dist/chunk-4HQCQ6XF.js +65 -0
- package/dist/chunk-4HQCQ6XF.js.map +1 -0
- package/dist/chunk-4O2LCTJO.js +176 -0
- package/dist/chunk-4O2LCTJO.js.map +1 -0
- package/dist/chunk-4TXJT55O.js +104 -0
- package/dist/chunk-4TXJT55O.js.map +1 -0
- package/dist/chunk-4UV3GA6V.js +58 -0
- package/dist/chunk-4UV3GA6V.js.map +1 -0
- package/dist/chunk-4WYRDU2N.js +243 -0
- package/dist/chunk-4WYRDU2N.js.map +1 -0
- package/dist/chunk-4Z2CNJ2E.js +163 -0
- package/dist/chunk-4Z2CNJ2E.js.map +1 -0
- package/dist/chunk-4Z3UUKE4.js +145 -0
- package/dist/chunk-4Z3UUKE4.js.map +1 -0
- package/dist/chunk-56T665BI.js +138 -0
- package/dist/chunk-56T665BI.js.map +1 -0
- package/dist/chunk-5UUFCRGP.js +53 -0
- package/dist/chunk-5UUFCRGP.js.map +1 -0
- package/dist/chunk-64RTH3ID.js +80 -0
- package/dist/chunk-64RTH3ID.js.map +1 -0
- package/dist/chunk-6H2COVJL.js +101 -0
- package/dist/chunk-6H2COVJL.js.map +1 -0
- package/dist/chunk-6PJQYL6Z.js +76 -0
- package/dist/chunk-6PJQYL6Z.js.map +1 -0
- package/dist/chunk-6QY7IVNT.js +53 -0
- package/dist/chunk-6QY7IVNT.js.map +1 -0
- package/dist/chunk-6TGMABBG.js +163 -0
- package/dist/chunk-6TGMABBG.js.map +1 -0
- package/dist/chunk-6Y7FTC5U.js +145 -0
- package/dist/chunk-6Y7FTC5U.js.map +1 -0
- package/dist/chunk-6Z35FOH3.js +101 -0
- package/dist/chunk-6Z35FOH3.js.map +1 -0
- package/dist/chunk-75TKA4PR.js +169 -0
- package/dist/chunk-75TKA4PR.js.map +1 -0
- package/dist/chunk-7DT3CWCP.js +89 -0
- package/dist/chunk-7DT3CWCP.js.map +1 -0
- package/dist/chunk-7FMKV5I6.js +89 -0
- package/dist/chunk-7FMKV5I6.js.map +1 -0
- package/dist/chunk-7JJPPIIN.js +101 -0
- package/dist/chunk-7JJPPIIN.js.map +1 -0
- package/dist/chunk-7QGV2COW.js +35 -0
- package/dist/chunk-7QGV2COW.js.map +1 -0
- package/dist/chunk-7SWVQEY6.js +73 -0
- package/dist/chunk-7SWVQEY6.js.map +1 -0
- package/dist/chunk-7VTWRBAB.js +54 -0
- package/dist/chunk-7VTWRBAB.js.map +1 -0
- package/dist/chunk-A6BOWOWI.js +61 -0
- package/dist/chunk-A6BOWOWI.js.map +1 -0
- package/dist/chunk-AGPX3VPZ.js +145 -0
- package/dist/chunk-AGPX3VPZ.js.map +1 -0
- package/dist/chunk-AIG34CJH.js +145 -0
- package/dist/chunk-AIG34CJH.js.map +1 -0
- package/dist/chunk-AMYENC5F.js +145 -0
- package/dist/chunk-AMYENC5F.js.map +1 -0
- package/dist/chunk-AO5GMPX2.js +140 -0
- package/dist/chunk-AO5GMPX2.js.map +1 -0
- package/dist/chunk-AODHI3OV.js +243 -0
- package/dist/chunk-AODHI3OV.js.map +1 -0
- package/dist/chunk-AOHIUPA4.js +30 -0
- package/dist/chunk-AOHIUPA4.js.map +1 -0
- package/dist/chunk-AQ5ZWZ6P.js +145 -0
- package/dist/chunk-AQ5ZWZ6P.js.map +1 -0
- package/dist/chunk-ARGDJ6MY.js +171 -0
- package/dist/chunk-ARGDJ6MY.js.map +1 -0
- package/dist/chunk-ASOIVV2N.js +51 -0
- package/dist/chunk-ASOIVV2N.js.map +1 -0
- package/dist/chunk-B3TUXVRV.js +145 -0
- package/dist/chunk-B3TUXVRV.js.map +1 -0
- package/dist/chunk-B7ML5SDC.js +60 -0
- package/dist/chunk-B7ML5SDC.js.map +1 -0
- package/dist/chunk-BTCHR45A.js +176 -0
- package/dist/chunk-BTCHR45A.js.map +1 -0
- package/dist/chunk-BVH472Z2.js +53 -0
- package/dist/chunk-BVH472Z2.js.map +1 -0
- package/dist/chunk-C3AENLVS.js +30 -0
- package/dist/chunk-C3AENLVS.js.map +1 -0
- package/dist/chunk-C3N4GBXA.js +243 -0
- package/dist/chunk-C3N4GBXA.js.map +1 -0
- package/dist/chunk-C5WCEOPT.js +63 -0
- package/dist/chunk-C5WCEOPT.js.map +1 -0
- package/dist/chunk-CEPJCHMJ.js +61 -0
- package/dist/chunk-CEPJCHMJ.js.map +1 -0
- package/dist/chunk-CGGIZJVX.js +176 -0
- package/dist/chunk-CGGIZJVX.js.map +1 -0
- package/dist/chunk-CGIDGPBB.js +30 -0
- package/dist/chunk-CGIDGPBB.js.map +1 -0
- package/dist/chunk-CO5WZJ2S.js +76 -0
- package/dist/chunk-CO5WZJ2S.js.map +1 -0
- package/dist/chunk-CPP2WM3G.js +243 -0
- package/dist/chunk-CPP2WM3G.js.map +1 -0
- package/dist/chunk-DAJYKGLH.js +52 -0
- package/dist/chunk-DAJYKGLH.js.map +1 -0
- package/dist/chunk-DK6Y3N3F.js +145 -0
- package/dist/chunk-DK6Y3N3F.js.map +1 -0
- package/dist/chunk-DQHF6RPE.js +57 -0
- package/dist/chunk-DQHF6RPE.js.map +1 -0
- package/dist/chunk-DQMUQ6HN.js +61 -0
- package/dist/chunk-DQMUQ6HN.js.map +1 -0
- package/dist/chunk-DR4IJOR6.js +176 -0
- package/dist/chunk-DR4IJOR6.js.map +1 -0
- package/dist/chunk-DU3X5AUT.js +52 -0
- package/dist/chunk-DU3X5AUT.js.map +1 -0
- package/dist/chunk-DXW477U6.js +243 -0
- package/dist/chunk-DXW477U6.js.map +1 -0
- package/dist/chunk-E3O7WX2G.js +145 -0
- package/dist/chunk-E3O7WX2G.js.map +1 -0
- package/dist/chunk-E63K3ZNK.js +63 -0
- package/dist/chunk-E63K3ZNK.js.map +1 -0
- package/dist/chunk-EDVM6LVU.js +138 -0
- package/dist/chunk-EDVM6LVU.js.map +1 -0
- package/dist/chunk-EEELL6KK.js +61 -0
- package/dist/chunk-EEELL6KK.js.map +1 -0
- package/dist/chunk-EICVB3H5.js +52 -0
- package/dist/chunk-EICVB3H5.js.map +1 -0
- package/dist/chunk-EJIGFYNE.js +76 -0
- package/dist/chunk-EJIGFYNE.js.map +1 -0
- package/dist/chunk-EK6V75HH.js +52 -0
- package/dist/chunk-EK6V75HH.js.map +1 -0
- package/dist/chunk-EQQ5YZPG.js +81 -0
- package/dist/chunk-EQQ5YZPG.js.map +1 -0
- package/dist/chunk-EZMHOLEX.js +58 -0
- package/dist/chunk-EZMHOLEX.js.map +1 -0
- package/dist/chunk-FIJCKYMM.js +163 -0
- package/dist/chunk-FIJCKYMM.js.map +1 -0
- package/dist/chunk-FJMEW6K7.js +243 -0
- package/dist/chunk-FJMEW6K7.js.map +1 -0
- package/dist/chunk-FNR5GVL6.js +173 -0
- package/dist/chunk-FNR5GVL6.js.map +1 -0
- package/dist/chunk-FTWEVP2Q.js +145 -0
- package/dist/chunk-FTWEVP2Q.js.map +1 -0
- package/dist/chunk-FZ3PP3TC.js +169 -0
- package/dist/chunk-FZ3PP3TC.js.map +1 -0
- package/dist/chunk-G2ERZYRW.js +76 -0
- package/dist/chunk-G2ERZYRW.js.map +1 -0
- package/dist/chunk-G3OLRP67.js +145 -0
- package/dist/chunk-G3OLRP67.js.map +1 -0
- package/dist/chunk-GGYG5EKG.js +101 -0
- package/dist/chunk-GGYG5EKG.js.map +1 -0
- package/dist/chunk-GO2VDBAL.js +54 -0
- package/dist/chunk-GO2VDBAL.js.map +1 -0
- package/dist/chunk-GYBCDGZR.js +60 -0
- package/dist/chunk-GYBCDGZR.js.map +1 -0
- package/dist/chunk-HADAP2OC.js +170 -0
- package/dist/chunk-HADAP2OC.js.map +1 -0
- package/dist/chunk-HFHDPGLW.js +169 -0
- package/dist/chunk-HFHDPGLW.js.map +1 -0
- package/dist/chunk-HKPXUUPN.js +350 -0
- package/dist/chunk-HKPXUUPN.js.map +1 -0
- package/dist/chunk-HLQYK5PH.js +145 -0
- package/dist/chunk-HLQYK5PH.js.map +1 -0
- package/dist/chunk-HMH2ARJS.js +57 -0
- package/dist/chunk-HMH2ARJS.js.map +1 -0
- package/dist/chunk-HNWMZGRW.js +30 -0
- package/dist/chunk-HNWMZGRW.js.map +1 -0
- package/dist/chunk-I2DCZRJH.js +61 -0
- package/dist/chunk-I2DCZRJH.js.map +1 -0
- package/dist/chunk-I3KN2BVR.js +82 -0
- package/dist/chunk-I3KN2BVR.js.map +1 -0
- package/dist/chunk-I5UUAHTE.js +163 -0
- package/dist/chunk-I5UUAHTE.js.map +1 -0
- package/dist/chunk-I6EWBF36.js +52 -0
- package/dist/chunk-I6EWBF36.js.map +1 -0
- package/dist/chunk-I6ZXMXVT.js +350 -0
- package/dist/chunk-I6ZXMXVT.js.map +1 -0
- package/dist/chunk-IDBUCJ53.js +350 -0
- package/dist/chunk-IDBUCJ53.js.map +1 -0
- package/dist/chunk-IFR422HT.js +128 -0
- package/dist/chunk-IFR422HT.js.map +1 -0
- package/dist/chunk-IFVMTTYE.js +145 -0
- package/dist/chunk-IFVMTTYE.js.map +1 -0
- package/dist/chunk-INODAETI.js +176 -0
- package/dist/chunk-INODAETI.js.map +1 -0
- package/dist/chunk-IRC7DBHL.js +145 -0
- package/dist/chunk-IRC7DBHL.js.map +1 -0
- package/dist/chunk-IVQMMHLV.js +128 -0
- package/dist/chunk-IVQMMHLV.js.map +1 -0
- package/dist/chunk-JALIJ3SV.js +30 -0
- package/dist/chunk-JALIJ3SV.js.map +1 -0
- package/dist/chunk-JK4MFOTF.js +101 -0
- package/dist/chunk-JK4MFOTF.js.map +1 -0
- package/dist/chunk-JNBRGQCJ.js +60 -0
- package/dist/chunk-JNBRGQCJ.js.map +1 -0
- package/dist/chunk-JZP25XWT.js +190 -0
- package/dist/chunk-JZP25XWT.js.map +1 -0
- package/dist/chunk-KAHKNHLF.js +145 -0
- package/dist/chunk-KAHKNHLF.js.map +1 -0
- package/dist/chunk-KEVTXOMZ.js +145 -0
- package/dist/chunk-KEVTXOMZ.js.map +1 -0
- package/dist/chunk-KIBYNDWI.js +145 -0
- package/dist/chunk-KIBYNDWI.js.map +1 -0
- package/dist/chunk-KLYHYPIQ.js +243 -0
- package/dist/chunk-KLYHYPIQ.js.map +1 -0
- package/dist/chunk-KN3FDSKM.js +52 -0
- package/dist/chunk-KN3FDSKM.js.map +1 -0
- package/dist/chunk-KSSFWZF6.js +54 -0
- package/dist/chunk-KSSFWZF6.js.map +1 -0
- package/dist/chunk-L2FKXFW7.js +145 -0
- package/dist/chunk-L2FKXFW7.js.map +1 -0
- package/dist/chunk-L33PIKUA.js +76 -0
- package/dist/chunk-L33PIKUA.js.map +1 -0
- package/dist/chunk-LANTW2YK.js +145 -0
- package/dist/chunk-LANTW2YK.js.map +1 -0
- package/dist/chunk-LCOMDMRD.js +57 -0
- package/dist/chunk-LCOMDMRD.js.map +1 -0
- package/dist/chunk-LDHBYTKV.js +243 -0
- package/dist/chunk-LDHBYTKV.js.map +1 -0
- package/dist/chunk-LEA3N4OQ.js +73 -0
- package/dist/chunk-LEA3N4OQ.js.map +1 -0
- package/dist/chunk-LH2OJZHP.js +243 -0
- package/dist/chunk-LH2OJZHP.js.map +1 -0
- package/dist/chunk-LILCXIUB.js +138 -0
- package/dist/chunk-LILCXIUB.js.map +1 -0
- package/dist/chunk-LNUULOOM.js +60 -0
- package/dist/chunk-LNUULOOM.js.map +1 -0
- package/dist/chunk-LZ4TD4MD.js +61 -0
- package/dist/chunk-LZ4TD4MD.js.map +1 -0
- package/dist/chunk-LZ6IXRRC.js +57 -0
- package/dist/chunk-LZ6IXRRC.js.map +1 -0
- package/dist/chunk-MCWETW2Y.js +61 -0
- package/dist/chunk-MCWETW2Y.js.map +1 -0
- package/dist/chunk-MEKW5IG5.js +176 -0
- package/dist/chunk-MEKW5IG5.js.map +1 -0
- package/dist/chunk-MFFEWUBI.js +350 -0
- package/dist/chunk-MFFEWUBI.js.map +1 -0
- package/dist/chunk-MGTKT52R.js +145 -0
- package/dist/chunk-MGTKT52R.js.map +1 -0
- package/dist/chunk-MIWXKTF3.js +243 -0
- package/dist/chunk-MIWXKTF3.js.map +1 -0
- package/dist/chunk-MM75IMBW.js +192 -0
- package/dist/chunk-MM75IMBW.js.map +1 -0
- package/dist/chunk-MNM3MLY6.js +169 -0
- package/dist/chunk-MNM3MLY6.js.map +1 -0
- package/dist/chunk-MTEITOFQ.js +57 -0
- package/dist/chunk-MTEITOFQ.js.map +1 -0
- package/dist/chunk-N6VVDQV2.js +243 -0
- package/dist/chunk-N6VVDQV2.js.map +1 -0
- package/dist/chunk-N6ZHVZR6.js +62 -0
- package/dist/chunk-N6ZHVZR6.js.map +1 -0
- package/dist/chunk-N7ECUGSZ.js +170 -0
- package/dist/chunk-N7ECUGSZ.js.map +1 -0
- package/dist/chunk-NAP5X2RC.js +60 -0
- package/dist/chunk-NAP5X2RC.js.map +1 -0
- package/dist/chunk-NM6OMOVZ.js +145 -0
- package/dist/chunk-NM6OMOVZ.js.map +1 -0
- package/dist/chunk-NOLGQP7H.js +203 -0
- package/dist/chunk-NOLGQP7H.js.map +1 -0
- package/dist/chunk-NPQVP3W3.js +64 -0
- package/dist/chunk-NPQVP3W3.js.map +1 -0
- package/dist/chunk-NTZ3PDTW.js +101 -0
- package/dist/chunk-NTZ3PDTW.js.map +1 -0
- package/dist/chunk-O3U4ZBEH.js +138 -0
- package/dist/chunk-O3U4ZBEH.js.map +1 -0
- package/dist/chunk-O57KBSOI.js +169 -0
- package/dist/chunk-O57KBSOI.js.map +1 -0
- package/dist/chunk-O6THQ7WZ.js +145 -0
- package/dist/chunk-O6THQ7WZ.js.map +1 -0
- package/dist/chunk-OAUNSXK7.js +91 -0
- package/dist/chunk-OAUNSXK7.js.map +1 -0
- package/dist/chunk-OCIN7OU6.js +176 -0
- package/dist/chunk-OCIN7OU6.js.map +1 -0
- package/dist/chunk-OHB6PUCW.js +145 -0
- package/dist/chunk-OHB6PUCW.js.map +1 -0
- package/dist/chunk-OHBXWFQ7.js +192 -0
- package/dist/chunk-OHBXWFQ7.js.map +1 -0
- package/dist/chunk-OOSEXANM.js +145 -0
- package/dist/chunk-OOSEXANM.js.map +1 -0
- package/dist/chunk-ORPRC3SO.js +163 -0
- package/dist/chunk-ORPRC3SO.js.map +1 -0
- package/dist/chunk-OSW3JJOU.js +93 -0
- package/dist/chunk-OSW3JJOU.js.map +1 -0
- package/dist/chunk-OV4T53IX.js +30 -0
- package/dist/chunk-OV4T53IX.js.map +1 -0
- package/dist/chunk-OW33KFJQ.js +60 -0
- package/dist/chunk-OW33KFJQ.js.map +1 -0
- package/dist/chunk-OX4FXO53.js +62 -0
- package/dist/chunk-OX4FXO53.js.map +1 -0
- package/dist/chunk-OXXF2CUB.js +95 -0
- package/dist/chunk-OXXF2CUB.js.map +1 -0
- package/dist/chunk-P2VPOJ4K.js +192 -0
- package/dist/chunk-P2VPOJ4K.js.map +1 -0
- package/dist/chunk-P44JIDKL.js +350 -0
- package/dist/chunk-P44JIDKL.js.map +1 -0
- package/dist/chunk-P7Y5T6LI.js +192 -0
- package/dist/chunk-P7Y5T6LI.js.map +1 -0
- package/dist/chunk-PAL7OXVZ.js +145 -0
- package/dist/chunk-PAL7OXVZ.js.map +1 -0
- package/dist/chunk-PDKYEDJH.js +145 -0
- package/dist/chunk-PDKYEDJH.js.map +1 -0
- package/dist/chunk-PFZW2TYF.js +243 -0
- package/dist/chunk-PFZW2TYF.js.map +1 -0
- package/dist/chunk-PPVYF7IV.js +169 -0
- package/dist/chunk-PPVYF7IV.js.map +1 -0
- package/dist/chunk-PUQUEC5P.js +192 -0
- package/dist/chunk-PUQUEC5P.js.map +1 -0
- package/dist/chunk-PXUY3O6B.js +145 -0
- package/dist/chunk-PXUY3O6B.js.map +1 -0
- package/dist/chunk-PYRUEPEW.js +76 -0
- package/dist/chunk-PYRUEPEW.js.map +1 -0
- package/dist/chunk-PZJYIGTJ.js +30 -0
- package/dist/chunk-PZJYIGTJ.js.map +1 -0
- package/dist/chunk-Q4OHET2N.js +64 -0
- package/dist/chunk-Q4OHET2N.js.map +1 -0
- package/dist/chunk-Q5NYEJV5.js +169 -0
- package/dist/chunk-Q5NYEJV5.js.map +1 -0
- package/dist/chunk-QDETVP4K.js +145 -0
- package/dist/chunk-QDETVP4K.js.map +1 -0
- package/dist/chunk-QDJGKG5J.js +163 -0
- package/dist/chunk-QDJGKG5J.js.map +1 -0
- package/dist/chunk-QGDWENPB.js +350 -0
- package/dist/chunk-QGDWENPB.js.map +1 -0
- package/dist/chunk-QST6TCTH.js +64 -0
- package/dist/chunk-QST6TCTH.js.map +1 -0
- package/dist/chunk-QZ2O5D4U.js +171 -0
- package/dist/chunk-QZ2O5D4U.js.map +1 -0
- package/dist/chunk-QZNUKVFY.js +101 -0
- package/dist/chunk-QZNUKVFY.js.map +1 -0
- package/dist/chunk-R5HDK252.js +101 -0
- package/dist/chunk-R5HDK252.js.map +1 -0
- package/dist/chunk-RETD3J2U.js +163 -0
- package/dist/chunk-RETD3J2U.js.map +1 -0
- package/dist/chunk-RKOJQVBQ.js +163 -0
- package/dist/chunk-RKOJQVBQ.js.map +1 -0
- package/dist/chunk-RMLL64KH.js +171 -0
- package/dist/chunk-RMLL64KH.js.map +1 -0
- package/dist/chunk-RQUEXX26.js +63 -0
- package/dist/chunk-RQUEXX26.js.map +1 -0
- package/dist/chunk-RWBM7RU2.js +128 -0
- package/dist/chunk-RWBM7RU2.js.map +1 -0
- package/dist/chunk-S2C5T5TS.js +192 -0
- package/dist/chunk-S2C5T5TS.js.map +1 -0
- package/dist/chunk-S4V3F26V.js +58 -0
- package/dist/chunk-S4V3F26V.js.map +1 -0
- package/dist/chunk-SAWXYHZ2.js +61 -0
- package/dist/chunk-SAWXYHZ2.js.map +1 -0
- package/dist/chunk-SCLCO4PH.js +54 -0
- package/dist/chunk-SCLCO4PH.js.map +1 -0
- package/dist/chunk-SGB7Z44Q.js +169 -0
- package/dist/chunk-SGB7Z44Q.js.map +1 -0
- package/dist/chunk-SGQJTEYG.js +64 -0
- package/dist/chunk-SGQJTEYG.js.map +1 -0
- package/dist/chunk-SJSGY333.js +60 -0
- package/dist/chunk-SJSGY333.js.map +1 -0
- package/dist/chunk-SQXBF5L5.js +57 -0
- package/dist/chunk-SQXBF5L5.js.map +1 -0
- package/dist/chunk-SRMXBBIK.js +55 -0
- package/dist/chunk-SRMXBBIK.js.map +1 -0
- package/dist/chunk-T4G77QAG.js +64 -0
- package/dist/chunk-T4G77QAG.js.map +1 -0
- package/dist/chunk-TAQGIU3Z.js +192 -0
- package/dist/chunk-TAQGIU3Z.js.map +1 -0
- package/dist/chunk-TFOTJF45.js +350 -0
- package/dist/chunk-TFOTJF45.js.map +1 -0
- package/dist/chunk-TIGKDBL5.js +243 -0
- package/dist/chunk-TIGKDBL5.js.map +1 -0
- package/dist/chunk-TLNFQPXG.js +145 -0
- package/dist/chunk-TLNFQPXG.js.map +1 -0
- package/dist/chunk-TPG3NI6I.js +176 -0
- package/dist/chunk-TPG3NI6I.js.map +1 -0
- package/dist/chunk-TWO6DVJU.js +243 -0
- package/dist/chunk-TWO6DVJU.js.map +1 -0
- package/dist/chunk-TYMI2IT2.js +60 -0
- package/dist/chunk-TYMI2IT2.js.map +1 -0
- package/dist/chunk-U2535GZQ.js +350 -0
- package/dist/chunk-U2535GZQ.js.map +1 -0
- package/dist/chunk-UMSV6ZYJ.js +145 -0
- package/dist/chunk-UMSV6ZYJ.js.map +1 -0
- package/dist/chunk-USMPMARH.js +80 -0
- package/dist/chunk-USMPMARH.js.map +1 -0
- package/dist/chunk-UTCR3NHX.js +57 -0
- package/dist/chunk-UTCR3NHX.js.map +1 -0
- package/dist/chunk-V4ZJJM3V.js +350 -0
- package/dist/chunk-V4ZJJM3V.js.map +1 -0
- package/dist/chunk-VD74MJ3X.js +164 -0
- package/dist/chunk-VD74MJ3X.js.map +1 -0
- package/dist/chunk-VIFDE6JV.js +128 -0
- package/dist/chunk-VIFDE6JV.js.map +1 -0
- package/dist/chunk-VMDLVKQV.js +64 -0
- package/dist/chunk-VMDLVKQV.js.map +1 -0
- package/dist/chunk-VUXLYSJV.js +176 -0
- package/dist/chunk-VUXLYSJV.js.map +1 -0
- package/dist/chunk-WE7YBS3O.js +192 -0
- package/dist/chunk-WE7YBS3O.js.map +1 -0
- package/dist/chunk-WIKVESRT.js +61 -0
- package/dist/chunk-WIKVESRT.js.map +1 -0
- package/dist/chunk-WIVEERRC.js +350 -0
- package/dist/chunk-WIVEERRC.js.map +1 -0
- package/dist/chunk-WPY3OY62.js +176 -0
- package/dist/chunk-WPY3OY62.js.map +1 -0
- package/dist/chunk-WRQLM673.js +104 -0
- package/dist/chunk-WRQLM673.js.map +1 -0
- package/dist/chunk-WUULPI2P.js +169 -0
- package/dist/chunk-WUULPI2P.js.map +1 -0
- package/dist/chunk-WY4WJW7Z.js +190 -0
- package/dist/chunk-WY4WJW7Z.js.map +1 -0
- package/dist/chunk-WYTE3BYL.js +57 -0
- package/dist/chunk-WYTE3BYL.js.map +1 -0
- package/dist/chunk-WYU3IYVT.js +163 -0
- package/dist/chunk-WYU3IYVT.js.map +1 -0
- package/dist/chunk-XDZDRPF3.js +85 -0
- package/dist/chunk-XDZDRPF3.js.map +1 -0
- package/dist/chunk-XHEQPIVD.js +169 -0
- package/dist/chunk-XHEQPIVD.js.map +1 -0
- package/dist/chunk-XLCJYVSF.js +76 -0
- package/dist/chunk-XLCJYVSF.js.map +1 -0
- package/dist/chunk-XNHVU6O4.js +64 -0
- package/dist/chunk-XNHVU6O4.js.map +1 -0
- package/dist/chunk-Y3CW2KGK.js +128 -0
- package/dist/chunk-Y3CW2KGK.js.map +1 -0
- package/dist/chunk-YHTGTI3A.js +145 -0
- package/dist/chunk-YHTGTI3A.js.map +1 -0
- package/dist/chunk-YKQMV66A.js +145 -0
- package/dist/chunk-YKQMV66A.js.map +1 -0
- package/dist/chunk-YKYND4ST.js +192 -0
- package/dist/chunk-YKYND4ST.js.map +1 -0
- package/dist/chunk-YQX5GSK4.js +54 -0
- package/dist/chunk-YQX5GSK4.js.map +1 -0
- package/dist/chunk-YVBYJBG2.js +145 -0
- package/dist/chunk-YVBYJBG2.js.map +1 -0
- package/dist/chunk-Z4KWT5QQ.js +85 -0
- package/dist/chunk-Z4KWT5QQ.js.map +1 -0
- package/dist/chunk-Z7ZT6C4T.js +145 -0
- package/dist/chunk-Z7ZT6C4T.js.map +1 -0
- package/dist/chunk-ZFGEDCBY.js +172 -0
- package/dist/chunk-ZFGEDCBY.js.map +1 -0
- package/dist/chunk-ZGJ3G7TZ.js +54 -0
- package/dist/chunk-ZGJ3G7TZ.js.map +1 -0
- package/dist/chunk-ZGKEUAQL.js +190 -0
- package/dist/chunk-ZGKEUAQL.js.map +1 -0
- package/dist/chunk-ZK6ZX4DJ.js +145 -0
- package/dist/chunk-ZK6ZX4DJ.js.map +1 -0
- package/dist/chunk-ZNY7BBXM.js +203 -0
- package/dist/chunk-ZNY7BBXM.js.map +1 -0
- package/dist/chunk-ZP6OBAIP.js +192 -0
- package/dist/chunk-ZP6OBAIP.js.map +1 -0
- package/dist/chunk-ZXV3WO7P.js +145 -0
- package/dist/chunk-ZXV3WO7P.js.map +1 -0
- package/dist/icon.cjs +8 -2
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/icon.js +9 -3
- package/dist/index.cjs +180 -208
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +31 -25
- package/dist/layouts/index.cjs.map +1 -1
- package/dist/layouts/index.js +4 -4
- package/dist/layouts/response-display.cjs.map +1 -1
- package/dist/layouts/response-display.js +4 -4
- package/dist/molecules/date-picker/date-picker-button.cjs +2 -2
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +6 -6
- package/dist/molecules/date-picker/index.cjs +2 -2
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +5 -5
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -4
- package/dist/molecules/index.cjs +3 -10
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +10 -10
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -4
- package/dist/molecules/radio-button-card.cjs +1 -8
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +5 -5
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +5 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -4
- package/package.json +1 -1
- package/src/app/platform/edit-coaching-time.tsx +12 -31
- package/src/app/platform/edit-service-type.tsx +10 -29
- package/src/app/platform/goal-manage-card-read.tsx +65 -54
- package/src/app/platform/report-card.tsx +42 -10
- package/src/app/platform/reservation-card.tsx +2 -2
- package/src/app/platform/session-card.tsx +6 -3
- package/src/app/platform/session-review-simple-read.tsx +0 -7
- package/src/app/platform/userInfos/utils.tsx +2 -2
- package/src/atoms/dialog.tsx +4 -2
- package/src/atoms/drawer.tsx +22 -13
- package/src/icon.ts +3 -0
- package/src/molecules/date-picker/index.tsx +2 -2
- package/src/molecules/radio-button-card.tsx +1 -5
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IconButton
|
|
3
|
+
} from "./chunk-O3DNDMV3.js";
|
|
4
|
+
import {
|
|
5
|
+
Heading
|
|
6
|
+
} from "./chunk-HK224ADT.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
ChevronLeftIcon,
|
|
12
|
+
ChevronRightIcon
|
|
13
|
+
} from "./chunk-OSW3JJOU.js";
|
|
14
|
+
import {
|
|
15
|
+
__objRest,
|
|
16
|
+
__spreadProps,
|
|
17
|
+
__spreadValues
|
|
18
|
+
} from "./chunk-N552FDTV.js";
|
|
19
|
+
|
|
20
|
+
// src/molecules/date-picker/index.tsx
|
|
21
|
+
import { forwardRef } from "react";
|
|
22
|
+
import * as RDP from "react-datepicker";
|
|
23
|
+
import { registerLocale, setDefaultLocale } from "react-datepicker";
|
|
24
|
+
import { ko as fnKo } from "date-fns/locale";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
registerLocale("ko", fnKo);
|
|
27
|
+
setDefaultLocale("ko");
|
|
28
|
+
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
29
|
+
var DatePicker = forwardRef(
|
|
30
|
+
(props, ref) => {
|
|
31
|
+
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
32
|
+
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
33
|
+
return /* @__PURE__ */ jsx(Flex, { p: "0", width: "100%", children: /* @__PURE__ */ jsx(
|
|
34
|
+
ReactDatePicker,
|
|
35
|
+
__spreadProps(__spreadValues({
|
|
36
|
+
dateFormat: "YYYY/MM/dd",
|
|
37
|
+
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
38
|
+
placeholderText: "YYYY/mm/dd",
|
|
39
|
+
popperProps: { strategy: "fixed" },
|
|
40
|
+
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
41
|
+
ref,
|
|
42
|
+
renderCustomHeader,
|
|
43
|
+
showPopperArrow: false,
|
|
44
|
+
timeIntervals: 10
|
|
45
|
+
}, rest), {
|
|
46
|
+
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
47
|
+
timeCaption: "\uC2DC\uAC04",
|
|
48
|
+
wrapperClassName: `tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ""}`
|
|
49
|
+
})
|
|
50
|
+
) });
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
DatePicker.displayName = "DatePicker";
|
|
54
|
+
var renderCustomHeader = (props) => {
|
|
55
|
+
const {
|
|
56
|
+
date,
|
|
57
|
+
decreaseMonth,
|
|
58
|
+
increaseMonth,
|
|
59
|
+
prevMonthButtonDisabled,
|
|
60
|
+
nextMonthButtonDisabled
|
|
61
|
+
} = props;
|
|
62
|
+
const year = date ? new Date(date).getFullYear() : "-";
|
|
63
|
+
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
64
|
+
return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
IconButton,
|
|
67
|
+
{
|
|
68
|
+
disabled: prevMonthButtonDisabled,
|
|
69
|
+
onClick: decreaseMonth,
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
|
|
77
|
+
year,
|
|
78
|
+
"\uB144"
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
|
|
81
|
+
month,
|
|
82
|
+
"\uC6D4"
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
IconButton,
|
|
87
|
+
{
|
|
88
|
+
disabled: nextMonthButtonDisabled,
|
|
89
|
+
onClick: increaseMonth,
|
|
90
|
+
type: "button",
|
|
91
|
+
variant: "ghost",
|
|
92
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] });
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
DatePicker
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=chunk-6Z35FOH3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\nimport type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport * as RDP from 'react-datepicker';\nimport { registerLocale, setDefaultLocale } from 'react-datepicker';\nimport { ko as fnKo } from 'date-fns/locale';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nregisterLocale('ko', fnKo);\nsetDefaultLocale('ko');\n\nexport type DatePickerProps = ReactDatePickerProps & {\n fullWidth?: boolean;\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nconst ReactDatePicker = ((RDP.default as any).default ||\n (RDP.default as any) ||\n (RDP as any)) as typeof RDP.default;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactElement => {\n const { fullWidth, ...rest } = props;\n const fullWidthClassName = fullWidth ? 'full-width' : '';\n return (\n <Flex p=\"0\" width=\"100%\">\n <ReactDatePicker\n dateFormat=\"YYYY/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"YYYY/mm/dd\"\n popperProps={{ strategy: 'fixed' }}\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n timeIntervals={10}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n timeCaption=\"시간\"\n wrapperClassName={`tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ''}`}\n />\n </Flex>\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\nconst renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n props\n) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n } = props;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const year = date ? new Date(date).getFullYear() : '-';\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const month = date ? new Date(date).getMonth() + 1 : '-';\n\n return (\n <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <Heading variant=\"heading4\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"heading4\" weight=\"regular\">\n {month}월\n </Heading>\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n};\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,SAAgB,kBAAkB;AAElC,YAAY,SAAS;AACrB,SAAS,gBAAgB,wBAAwB;AACjD,SAAS,MAAM,YAAY;AAwBnB,cAiDA,YAjDA;AAlBR,eAAe,MAAM,IAAI;AACzB,iBAAiB,IAAI;AAOrB,IAAM,kBAAwB,YAAgB,WACvC,eACJ;AAEI,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAA4B;AAClC,UAA+B,YAAvB,YA3BZ,IA2BmC,IAAT,iB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A,QACT,MAAK;AAAA,QACL,SAAQ;AAAA,QAER,8BAAC,oBAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Avatar
|
|
3
|
+
} from "./chunk-3SSSCLJ5.js";
|
|
4
|
+
import {
|
|
5
|
+
Typo
|
|
6
|
+
} from "./chunk-52MVZ6AN.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
CheckIcon
|
|
12
|
+
} from "./chunk-OSW3JJOU.js";
|
|
13
|
+
|
|
14
|
+
// src/molecules/stepper.tsx
|
|
15
|
+
import { createContext, Children, useContext, useMemo } from "react";
|
|
16
|
+
import { Separator } from "@radix-ui/themes";
|
|
17
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var StepContext = createContext({
|
|
19
|
+
active: false,
|
|
20
|
+
completed: false,
|
|
21
|
+
index: 0
|
|
22
|
+
});
|
|
23
|
+
function Root(props) {
|
|
24
|
+
const {
|
|
25
|
+
activeStep = 0,
|
|
26
|
+
children,
|
|
27
|
+
width,
|
|
28
|
+
minWidth,
|
|
29
|
+
maxWidth,
|
|
30
|
+
direction = "vertical"
|
|
31
|
+
} = props;
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
Flex,
|
|
34
|
+
{
|
|
35
|
+
gap: "3",
|
|
36
|
+
style: {
|
|
37
|
+
width,
|
|
38
|
+
minWidth,
|
|
39
|
+
maxWidth
|
|
40
|
+
},
|
|
41
|
+
children: Children.map(children, (child, index) => {
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
43
|
+
StepContext.Provider,
|
|
44
|
+
{
|
|
45
|
+
value: {
|
|
46
|
+
active: index === activeStep,
|
|
47
|
+
completed: index < activeStep,
|
|
48
|
+
index,
|
|
49
|
+
direction
|
|
50
|
+
},
|
|
51
|
+
children: child
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function Step(props) {
|
|
59
|
+
const { Icon, children } = props;
|
|
60
|
+
const {
|
|
61
|
+
active,
|
|
62
|
+
completed,
|
|
63
|
+
index,
|
|
64
|
+
direction = "vertical"
|
|
65
|
+
} = useContext(StepContext);
|
|
66
|
+
const connector = index > 0 ? /* @__PURE__ */ jsx(
|
|
67
|
+
Separator,
|
|
68
|
+
{
|
|
69
|
+
style: {
|
|
70
|
+
width: `calc(100% - 40px)`,
|
|
71
|
+
position: "absolute",
|
|
72
|
+
top: 16,
|
|
73
|
+
right: `calc(50% + 26px)`
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
) : null;
|
|
77
|
+
const InnerStep = useMemo(() => {
|
|
78
|
+
if (active) {
|
|
79
|
+
return ActiveStep;
|
|
80
|
+
}
|
|
81
|
+
if (completed) {
|
|
82
|
+
return CompleteStep;
|
|
83
|
+
}
|
|
84
|
+
return IncompleteStep;
|
|
85
|
+
}, [completed, active]);
|
|
86
|
+
return /* @__PURE__ */ jsxs(
|
|
87
|
+
Flex,
|
|
88
|
+
{
|
|
89
|
+
align: "center",
|
|
90
|
+
direction: direction === "horizontal" ? "row" : "column",
|
|
91
|
+
gap: "4",
|
|
92
|
+
position: "relative",
|
|
93
|
+
style: { flex: 1 },
|
|
94
|
+
children: [
|
|
95
|
+
connector,
|
|
96
|
+
/* @__PURE__ */ jsx(InnerStep, { Icon, children })
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
function CompleteStep(props) {
|
|
102
|
+
const { Icon, children } = props;
|
|
103
|
+
const { completed, active } = useContext(StepContext);
|
|
104
|
+
const background = "var(--accent-a4)";
|
|
105
|
+
const border = "1px solid var(--accent-7)";
|
|
106
|
+
const color = "var(--accent-contrast)";
|
|
107
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
108
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
109
|
+
Avatar,
|
|
110
|
+
{
|
|
111
|
+
fallback: /* @__PURE__ */ jsx(CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
112
|
+
radius: "full",
|
|
113
|
+
size: "medium",
|
|
114
|
+
style: {
|
|
115
|
+
border,
|
|
116
|
+
background
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", children })
|
|
121
|
+
] });
|
|
122
|
+
}
|
|
123
|
+
function IncompleteStep(props) {
|
|
124
|
+
const { Icon, children } = props;
|
|
125
|
+
const { completed, active, index } = useContext(StepContext);
|
|
126
|
+
const background = "var(--gray-5)";
|
|
127
|
+
const color = "var(--gray-a11)";
|
|
128
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
129
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
130
|
+
Avatar,
|
|
131
|
+
{
|
|
132
|
+
fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, children: index + 1 }),
|
|
133
|
+
radius: "full",
|
|
134
|
+
size: "medium",
|
|
135
|
+
style: {
|
|
136
|
+
background
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
141
|
+
] });
|
|
142
|
+
}
|
|
143
|
+
function ActiveStep(props) {
|
|
144
|
+
const { Icon, children } = props;
|
|
145
|
+
const { completed, active, index } = useContext(StepContext);
|
|
146
|
+
const background = "var(--accent-10)";
|
|
147
|
+
const color = "var(--accent-contrast)";
|
|
148
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
149
|
+
Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
|
|
150
|
+
Avatar,
|
|
151
|
+
{
|
|
152
|
+
fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
153
|
+
radius: "full",
|
|
154
|
+
size: "medium",
|
|
155
|
+
style: { background }
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
159
|
+
] });
|
|
160
|
+
}
|
|
161
|
+
var Stepper = {
|
|
162
|
+
Root,
|
|
163
|
+
Step
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export {
|
|
167
|
+
Stepper
|
|
168
|
+
};
|
|
169
|
+
//# sourceMappingURL=chunk-75TKA4PR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/stepper.tsx"],"sourcesContent":["import React, { createContext, Children, useContext, useMemo } from 'react';\nimport { Separator } from '@radix-ui/themes';\nimport { Flex } from '../atoms/flex';\nimport { Avatar } from '../atoms/avatar';\nimport { CheckIcon } from '../icon';\nimport { Typo } from '../atoms/typo';\n\ninterface StepState extends Pick<StepperProps, 'direction'> {\n active: boolean;\n completed: boolean;\n index: number;\n}\n\nconst StepContext = createContext<StepState>({\n active: false,\n completed: false,\n index: 0,\n});\n\ninterface StepperProps {\n // 활성화된 스텝 인덱스. 0부터 시작\n activeStep?: number;\n children?: React.ReactElement | React.ReactElement[];\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n /** icon과 children의 배치 방향. 기본 값 vertical */\n direction?: 'horizontal' | 'vertical';\n}\n\nfunction Root(props: StepperProps): React.ReactElement {\n const {\n activeStep = 0,\n children,\n width,\n minWidth,\n maxWidth,\n direction = 'vertical',\n } = props;\n\n return (\n <Flex\n gap=\"3\"\n style={{\n width,\n minWidth,\n maxWidth,\n }}\n >\n {Children.map(children, (child, index) => {\n return (\n <StepContext.Provider\n value={{\n active: index === activeStep,\n completed: index < activeStep,\n index,\n direction,\n }}\n >\n {child}\n </StepContext.Provider>\n );\n })}\n </Flex>\n );\n}\n\ninterface StepProps {\n children?: React.ReactNode;\n /** 아이콘 커스텀 필요시 사용 */\n Icon?: (args: { completed: boolean; active: boolean }) => React.ReactElement;\n}\n\nfunction Step(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const {\n active,\n completed,\n index,\n direction = 'vertical',\n } = useContext(StepContext);\n\n const connector =\n index > 0 ? (\n <Separator\n style={{\n width: `calc(100% - 40px)`,\n position: 'absolute',\n top: 16,\n right: `calc(50% + 26px)`,\n }}\n />\n ) : null;\n\n const InnerStep = useMemo<(props: StepProps) => React.ReactElement>(() => {\n if (active) {\n return ActiveStep;\n }\n if (completed) {\n return CompleteStep;\n }\n return IncompleteStep;\n }, [completed, active]);\n\n return (\n <Flex\n align=\"center\"\n direction={direction === 'horizontal' ? 'row' : 'column'}\n gap=\"4\"\n position=\"relative\"\n style={{ flex: 1 }}\n >\n {connector}\n <InnerStep Icon={Icon}>{children}</InnerStep>\n </Flex>\n );\n}\n\nfunction CompleteStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active } = useContext(StepContext);\n const background = 'var(--accent-a4)';\n const border = '1px solid var(--accent-7)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<CheckIcon fill={color} height={16} width={16} />}\n radius=\"full\"\n size=\"medium\"\n style={{\n border,\n background,\n }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction IncompleteStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--gray-5)';\n const color = 'var(--gray-a11)';\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<Typo style={{ color }}>{index + 1}</Typo>}\n radius=\"full\"\n size=\"medium\"\n style={{\n background,\n }}\n />\n )}\n <Typo align=\"center\" style={{ color }} variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction ActiveStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--accent-10)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={\n <Typo style={{ color }} weight=\"bold\">\n {index + 1}\n </Typo>\n }\n radius=\"full\"\n size=\"medium\"\n style={{ background }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\" weight=\"bold\">\n {children}\n </Typo>\n </>\n );\n}\n\nexport const Stepper = {\n Root,\n Step,\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAgB,eAAe,UAAU,YAAY,eAAe;AACpE,SAAS,iBAAiB;AAkDhB,SA2EN,UA3EM,KAsDN,YAtDM;AAtCV,IAAM,cAAc,cAAyB;AAAA,EAC3C,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AACT,CAAC;AAaD,SAAS,KAAK,OAAyC;AACrD,QAAM;AAAA,IACJ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA,MACJ,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAEC,mBAAS,IAAI,UAAU,CAAC,OAAO,UAAU;AACxC,eACE;AAAA,UAAC,YAAY;AAAA,UAAZ;AAAA,YACC,OAAO;AAAA,cACL,QAAQ,UAAU;AAAA,cAClB,WAAW,QAAQ;AAAA,cACnB;AAAA,cACA;AAAA,YACF;AAAA,YAEC;AAAA;AAAA,QACH;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEJ;AAQA,SAAS,KAAK,OAAsC;AAClD,QAAM,EAAE,MAAM,SAAS,IAAI;AAC3B,QAAM;AAAA,IACJ;AAA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AW,WAAW;AAC3D,QAAM,aAAa;AACnB,QAAM,QAAQ;AACd,SACE,iCACG;AAAA,WACC,oBAAC,QAAK,QAAgB,WAAsB,IAE5C;AAAA,MAAC;AAAA;AAAA,QACC,UAAU,oBAAC,QAAK,OAAO,EAAE,MAAM,GAAI,kBAAQ,GAAE;AAAA,QAC7C,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAO;AAAA,UACL;AAAA,QACF;AAAA;AAAA,IACF;AAAA,IAEF,oBAAC,QAAK,OAAM,UAAS,OAAO,EAAE,MAAM,GAAG,SAAQ,WAC5C,UACH;AAAA,KACF;AAEJ;AAEA,SAAS,WAAW,OAAsC;AACxD,QAAM,EAAE,MAAM,SAAS,IAAI;AAC3B,QAAM,EAAE,WAAW,QAAQ,MAAM,IAAI,WAAW,WAAW;AAC3D,QAAM,aAAa;AACnB,QAAM,QAAQ;AAEd,SACE,iCACG;AAAA,WACC,oBAAC,QAAK,QAAgB,WAAsB,IAE5C;AAAA,MAAC;AAAA;AAAA,QACC,UACE,oBAAC,QAAK,OAAO,EAAE,MAAM,GAAG,QAAO,QAC5B,kBAAQ,GACX;AAAA,QAEF,QAAO;AAAA,QACP,MAAK;AAAA,QACL,OAAO,EAAE,WAAW;AAAA;AAAA,IACtB;AAAA,IAEF,oBAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,QAAO,QAC3C,UACH;AAAA,KACF;AAEJ;AAEO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
toast
|
|
3
|
+
} from "./chunk-CYYWMYE7.js";
|
|
4
|
+
import {
|
|
5
|
+
DataList
|
|
6
|
+
} from "./chunk-VTJZMOSP.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-U7JPP7WJ.js";
|
|
10
|
+
|
|
11
|
+
// src/app/platform/userInfos/utils.tsx
|
|
12
|
+
import { format } from "date-fns";
|
|
13
|
+
import { CopyIcon } from "@radix-ui/react-icons";
|
|
14
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var infoList = [
|
|
16
|
+
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
17
|
+
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
18
|
+
{
|
|
19
|
+
label: "\uC0DD\uB144\uC6D4\uC77C",
|
|
20
|
+
getValue: (customer) => (customer == null ? void 0 : customer.birthdate) && format(customer.birthdate, "yyyy.MM.dd")
|
|
21
|
+
},
|
|
22
|
+
{ label: "\uBD80\uC11C", getValue: (customer) => customer == null ? void 0 : customer.team },
|
|
23
|
+
{ label: "\uC9C1\uCC45", getValue: (customer) => customer == null ? void 0 : customer.position },
|
|
24
|
+
{ label: "\uC9C1\uAE09", getValue: (customer) => customer == null ? void 0 : customer.level },
|
|
25
|
+
{ label: "\uC774\uBA54\uC77C", getValue: (customer) => customer == null ? void 0 : customer.email, copyable: true },
|
|
26
|
+
{
|
|
27
|
+
label: "\uC804\uD654\uBC88\uD638",
|
|
28
|
+
getValue: (customer) => customer == null ? void 0 : customer.phone,
|
|
29
|
+
render: (value) => {
|
|
30
|
+
return value == null ? void 0 : value.replace(/[^0-9]/g, "").replace(/^(\d{2,3})(\d{3,4})(\d{4})$/, `$1-$2-$3`);
|
|
31
|
+
},
|
|
32
|
+
copyable: true
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
var sessionList = [
|
|
36
|
+
{
|
|
37
|
+
label: "\uC9C4\uD589\uC911\uC778 \uC138\uC158",
|
|
38
|
+
getValue: (session) => `${(session == null ? void 0 : session.restSession) || "-"}\uD68C\uCC28/${(session == null ? void 0 : session.totalSession) || "-"}\uD68C\uCC28`
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "\uB2E4\uC74C \uC138\uC158 \uC77C\uC2DC",
|
|
42
|
+
getValue: (session) => (session == null ? void 0 : session.nextSessionDate) ? format(session.nextSessionDate, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84") : "-"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "\uB2E4\uC74C \uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD",
|
|
46
|
+
getValue: (session) => (session == null ? void 0 : session.nextSessionType) || "-"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "\uCF54\uCE6D \uB9CC\uB8CC \uAE30\uD55C",
|
|
50
|
+
getValue: (session) => (session == null ? void 0 : session.expiredAt) ? format(session.expiredAt, "yyyy\uB144 MM\uC6D4 dd\uC77C") : "-"
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
var renderItem = (info, data) => {
|
|
54
|
+
const value = info.getValue(data);
|
|
55
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
info.render ? info.render(value) : value || "-",
|
|
57
|
+
info.copyable && value ? /* @__PURE__ */ jsx(CopyButton, { value }) : null
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
var renderDataListItem = (info, data) => {
|
|
61
|
+
return /* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
62
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: info.label }),
|
|
63
|
+
/* @__PURE__ */ jsx(DataList.Value, { children: renderItem(info, data) })
|
|
64
|
+
] }, info.label);
|
|
65
|
+
};
|
|
66
|
+
function CopyButton(props) {
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
Button,
|
|
69
|
+
{
|
|
70
|
+
color: "gray",
|
|
71
|
+
onClick: () => {
|
|
72
|
+
void navigator.clipboard.writeText(props.value);
|
|
73
|
+
toast.success("\uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
74
|
+
},
|
|
75
|
+
style: { marginLeft: "0", marginTop: "0" },
|
|
76
|
+
variant: "transparent",
|
|
77
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
infoList,
|
|
84
|
+
sessionList,
|
|
85
|
+
renderItem,
|
|
86
|
+
renderDataListItem,
|
|
87
|
+
CopyButton
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-7DT3CWCP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/utils.tsx"],"sourcesContent":["import type { ProjectStatus } from '@tipp/biz-utils';\nimport { format } from 'date-fns';\nimport { CopyIcon } from '@radix-ui/react-icons';\nimport { Button, DataList, toast } from '../../../atoms';\n\nexport interface CoachingCustomerInfoProps {\n customer?: Customer;\n session?: Session;\n children?: React.ReactElement;\n}\n\nexport interface Customer {\n username?: string;\n email?: string;\n gender?: string;\n birthdate?: Date;\n phone?: string;\n company?: string;\n team?: string;\n position?: string;\n level: string;\n}\n\nexport interface Session {\n state?: ProjectStatus;\n totalSession?: number;\n restSession?: number;\n nextSessionDate?: Date;\n nextSessionType?: string;\n expiredAt?: Date;\n}\n\nexport interface DataListItems<T> {\n label: string;\n getValue: (original?: T) => string | undefined;\n copyable?: boolean;\n render?: (value?: string) => React.ReactNode;\n}\n\nexport const infoList: DataListItems<Customer>[] = [\n { label: '이름', getValue: (customer) => customer?.username },\n { label: '성별', getValue: (customer) => customer?.gender },\n {\n label: '생년월일',\n getValue: (customer) =>\n customer?.birthdate && format(customer.birthdate, 'yyyy.MM.dd'),\n },\n { label: '부서', getValue: (customer) => customer?.team },\n { label: '직책', getValue: (customer) => customer?.position },\n { label: '직급', getValue: (customer) => customer?.level },\n { label: '이메일', getValue: (customer) => customer?.email, copyable: true },\n {\n label: '전화번호',\n getValue: (customer) => customer?.phone,\n render: (value) => {\n // 핸드폰 전화번호 형식으로 변환\n return (\n value\n ?.replace(/[^0-9]/g, '')\n // eslint-disable-next-line prefer-named-capture-group -- target es 변경하기 전이라서 이대로 둠\n .replace(/^(\\d{2,3})(\\d{3,4})(\\d{4})$/, `$1-$2-$3`)\n );\n },\n copyable: true,\n },\n];\n\nexport const sessionList: DataListItems<Session>[] = [\n {\n label: '진행중인 세션',\n getValue: (session) =>\n `${session?.restSession || '-'}회차/${session?.totalSession || '-'}회차`,\n },\n {\n label: '다음 세션 일시',\n getValue: (session) =>\n session?.nextSessionDate\n ? format(session.nextSessionDate, 'yyyy년 MM월 dd일 HH시 mm분')\n : '-',\n },\n {\n label: '다음 세션 참여 방식',\n getValue: (session) => session?.nextSessionType || '-',\n },\n {\n label: '코칭 만료 기한',\n getValue: (session) =>\n session?.expiredAt ? format(session.expiredAt, 'yyyy년 MM월 dd일') : '-',\n },\n];\n\nexport const renderItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): JSX.Element => {\n const value = info.getValue(data);\n return (\n <>\n {info.render ? info.render(value) : value || '-'}\n {info.copyable && value ? <CopyButton value={value} /> : null}\n </>\n );\n};\n\nexport const renderDataListItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): React.ReactElement => {\n return (\n <DataList.Item key={info.label}>\n <DataList.Label>{info.label}</DataList.Label>\n <DataList.Value>{renderItem(info, data)}</DataList.Value>\n </DataList.Item>\n );\n};\n\nexport function CopyButton(props: { value: string }): JSX.Element {\n return (\n <Button\n color=\"gray\"\n onClick={() => {\n void navigator.clipboard.writeText(props.value);\n toast.success('복사되었습니다.');\n }}\n style={{ marginLeft: '0', marginTop: '0' }}\n variant=\"transparent\"\n >\n <CopyIcon />\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;AACA,SAAS,cAAc;AACvB,SAAS,gBAAgB;AA+FrB,mBAE4B,KAF5B;AA1DG,IAAM,WAAsC;AAAA,EACjD,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,SAAS;AAAA,EAC1D,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,OAAO;AAAA,EACxD;AAAA,IACE,OAAO;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,CAChC,MACA,SACuB;AACvB,SACE,qBAAC,SAAS,MAAT,EACC;AAAA,wBAAC,SAAS,OAAT,EAAgB,eAAK,OAAM;AAAA,IAC5B,oBAAC,SAAS,OAAT,EAAgB,qBAAW,MAAM,IAAI,GAAE;AAAA,OAFtB,KAAK,KAGzB;AAEJ;AAEO,SAAS,WAAW,OAAuC;AAChE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAM;AAAA,MACN,SAAS,MAAM;AACb,aAAK,UAAU,UAAU,UAAU,MAAM,KAAK;AAC9C,cAAM,QAAQ,6CAAU;AAAA,MAC1B;AAAA,MACA,OAAO,EAAE,YAAY,KAAK,WAAW,IAAI;AAAA,MACzC,SAAQ;AAAA,MAER,8BAAC,YAAS;AAAA;AAAA,EACZ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DataList
|
|
3
|
+
} from "./chunk-VTJZMOSP.js";
|
|
4
|
+
import {
|
|
5
|
+
toast
|
|
6
|
+
} from "./chunk-CYYWMYE7.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-U7JPP7WJ.js";
|
|
10
|
+
|
|
11
|
+
// src/app/platform/userInfos/utils.tsx
|
|
12
|
+
import { format } from "date-fns";
|
|
13
|
+
import { CopyIcon } from "@radix-ui/react-icons";
|
|
14
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var infoList = [
|
|
16
|
+
{ label: "\uC774\uB984", getValue: (customer) => customer == null ? void 0 : customer.username },
|
|
17
|
+
{ label: "\uC131\uBCC4", getValue: (customer) => customer == null ? void 0 : customer.gender },
|
|
18
|
+
{
|
|
19
|
+
label: "\uC0DD\uB144\uC6D4\uC77C",
|
|
20
|
+
getValue: (customer) => (customer == null ? void 0 : customer.birthdate) && format(customer.birthdate, "yyyy.MM.dd")
|
|
21
|
+
},
|
|
22
|
+
{ label: "\uBD80\uC11C", getValue: (customer) => customer == null ? void 0 : customer.team },
|
|
23
|
+
{ label: "\uC9C1\uCC45", getValue: (customer) => customer == null ? void 0 : customer.position },
|
|
24
|
+
{ label: "\uC9C1\uAE09", getValue: (customer) => customer == null ? void 0 : customer.level },
|
|
25
|
+
{ label: "\uC774\uBA54\uC77C", getValue: (customer) => customer == null ? void 0 : customer.email, copyable: true },
|
|
26
|
+
{
|
|
27
|
+
label: "\uC804\uD654\uBC88\uD638",
|
|
28
|
+
getValue: (customer) => customer == null ? void 0 : customer.phone,
|
|
29
|
+
render: (value) => {
|
|
30
|
+
return value == null ? void 0 : value.replace(/[^0-9]/g, "").replace(/^(\d{2,3})(\d{3,4})(\d{4})$/, `$1-$2-$3`);
|
|
31
|
+
},
|
|
32
|
+
copyable: true
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
var sessionList = [
|
|
36
|
+
{
|
|
37
|
+
label: "\uC9C4\uD589\uC911\uC778 \uC138\uC158",
|
|
38
|
+
getValue: (session) => `${(session == null ? void 0 : session.currentSession) || "-"}\uD68C\uCC28/${(session == null ? void 0 : session.totalSession) || "-"}\uD68C\uCC28`
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "\uB2E4\uC74C \uC138\uC158 \uC77C\uC2DC",
|
|
42
|
+
getValue: (session) => (session == null ? void 0 : session.nextSessionDate) ? format(session.nextSessionDate, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84") : "-"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "\uB2E4\uC74C \uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD",
|
|
46
|
+
getValue: (session) => (session == null ? void 0 : session.nextSessionType) || "-"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "\uCF54\uCE6D \uB9CC\uB8CC \uAE30\uD55C",
|
|
50
|
+
getValue: (session) => (session == null ? void 0 : session.expiredAt) ? format(session.expiredAt, "yyyy\uB144 MM\uC6D4 dd\uC77C") : "-"
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
var renderItem = (info, data) => {
|
|
54
|
+
const value = info.getValue(data);
|
|
55
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
info.render ? info.render(value) : value || "-",
|
|
57
|
+
info.copyable && value ? /* @__PURE__ */ jsx(CopyButton, { value }) : null
|
|
58
|
+
] });
|
|
59
|
+
};
|
|
60
|
+
var renderDataListItem = (info, data) => {
|
|
61
|
+
return /* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
62
|
+
/* @__PURE__ */ jsx(DataList.Label, { children: info.label }),
|
|
63
|
+
/* @__PURE__ */ jsx(DataList.Value, { children: renderItem(info, data) })
|
|
64
|
+
] }, info.label);
|
|
65
|
+
};
|
|
66
|
+
function CopyButton(props) {
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
Button,
|
|
69
|
+
{
|
|
70
|
+
color: "gray",
|
|
71
|
+
onClick: () => {
|
|
72
|
+
void navigator.clipboard.writeText(props.value);
|
|
73
|
+
toast.success("\uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
74
|
+
},
|
|
75
|
+
style: { marginLeft: "0", marginTop: "0" },
|
|
76
|
+
variant: "transparent",
|
|
77
|
+
children: /* @__PURE__ */ jsx(CopyIcon, {})
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export {
|
|
83
|
+
infoList,
|
|
84
|
+
sessionList,
|
|
85
|
+
renderItem,
|
|
86
|
+
renderDataListItem,
|
|
87
|
+
CopyButton
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=chunk-7FMKV5I6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/utils.tsx"],"sourcesContent":["import type { ProjectStatus } from '@tipp/biz-utils';\nimport { format } from 'date-fns';\nimport { CopyIcon } from '@radix-ui/react-icons';\nimport { Button, DataList, toast } from '../../../atoms';\n\nexport interface CoachingCustomerInfoProps {\n customer?: Customer;\n session?: Session;\n children?: React.ReactElement;\n}\n\nexport interface Customer {\n username?: string;\n email?: string;\n gender?: string;\n birthdate?: Date;\n phone?: string;\n company?: string;\n team?: string;\n position?: string;\n level: string;\n}\n\nexport interface Session {\n state?: ProjectStatus;\n totalSession?: number;\n currentSession?: number;\n nextSessionDate?: Date;\n nextSessionType?: string;\n expiredAt?: Date;\n}\n\nexport interface DataListItems<T> {\n label: string;\n getValue: (original?: T) => string | undefined;\n copyable?: boolean;\n render?: (value?: string) => React.ReactNode;\n}\n\nexport const infoList: DataListItems<Customer>[] = [\n { label: '이름', getValue: (customer) => customer?.username },\n { label: '성별', getValue: (customer) => customer?.gender },\n {\n label: '생년월일',\n getValue: (customer) =>\n customer?.birthdate && format(customer.birthdate, 'yyyy.MM.dd'),\n },\n { label: '부서', getValue: (customer) => customer?.team },\n { label: '직책', getValue: (customer) => customer?.position },\n { label: '직급', getValue: (customer) => customer?.level },\n { label: '이메일', getValue: (customer) => customer?.email, copyable: true },\n {\n label: '전화번호',\n getValue: (customer) => customer?.phone,\n render: (value) => {\n // 핸드폰 전화번호 형식으로 변환\n return (\n value\n ?.replace(/[^0-9]/g, '')\n // eslint-disable-next-line prefer-named-capture-group -- target es 변경하기 전이라서 이대로 둠\n .replace(/^(\\d{2,3})(\\d{3,4})(\\d{4})$/, `$1-$2-$3`)\n );\n },\n copyable: true,\n },\n];\n\nexport const sessionList: DataListItems<Session>[] = [\n {\n label: '진행중인 세션',\n getValue: (session) =>\n `${session?.currentSession || '-'}회차/${session?.totalSession || '-'}회차`,\n },\n {\n label: '다음 세션 일시',\n getValue: (session) =>\n session?.nextSessionDate\n ? format(session.nextSessionDate, 'yyyy년 MM월 dd일 HH시 mm분')\n : '-',\n },\n {\n label: '다음 세션 참여 방식',\n getValue: (session) => session?.nextSessionType || '-',\n },\n {\n label: '코칭 만료 기한',\n getValue: (session) =>\n session?.expiredAt ? format(session.expiredAt, 'yyyy년 MM월 dd일') : '-',\n },\n];\n\nexport const renderItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): JSX.Element => {\n const value = info.getValue(data);\n return (\n <>\n {info.render ? info.render(value) : value || '-'}\n {info.copyable && value ? <CopyButton value={value} /> : null}\n </>\n );\n};\n\nexport const renderDataListItem = <T extends object>(\n info: DataListItems<T>,\n data?: T\n): React.ReactElement => {\n return (\n <DataList.Item key={info.label}>\n <DataList.Label>{info.label}</DataList.Label>\n <DataList.Value>{renderItem(info, data)}</DataList.Value>\n </DataList.Item>\n );\n};\n\nexport function CopyButton(props: { value: string }): JSX.Element {\n return (\n <Button\n color=\"gray\"\n onClick={() => {\n void navigator.clipboard.writeText(props.value);\n toast.success('복사되었습니다.');\n }}\n style={{ marginLeft: '0', marginTop: '0' }}\n variant=\"transparent\"\n >\n <CopyIcon />\n </Button>\n );\n}\n"],"mappings":";;;;;;;;;;;AACA,SAAS,cAAc;AACvB,SAAS,gBAAgB;AA+FrB,mBAE4B,KAF5B;AA1DG,IAAM,WAAsC;AAAA,EACjD,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,SAAS;AAAA,EAC1D,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,OAAO;AAAA,EACxD;AAAA,IACE,OAAO;AAAA,IACP,UAAU,CAAC,cACT,qCAAU,cAAa,OAAO,SAAS,WAAW,YAAY;AAAA,EAClE;AAAA,EACA,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,KAAK;AAAA,EACtD,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,SAAS;AAAA,EAC1D,EAAE,OAAO,gBAAM,UAAU,CAAC,aAAa,qCAAU,MAAM;AAAA,EACvD,EAAE,OAAO,sBAAO,UAAU,CAAC,aAAa,qCAAU,OAAO,UAAU,KAAK;AAAA,EACxE;AAAA,IACE,OAAO;AAAA,IACP,UAAU,CAAC,aAAa,qCAAU;AAAA,IAClC,QAAQ,CA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MACzC,SAAQ;AAAA,MAER,8BAAC,YAAS;AAAA;AAAA,EACZ;AAEJ;","names":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Heading
|
|
3
|
+
} from "./chunk-HK224ADT.js";
|
|
4
|
+
import {
|
|
5
|
+
IconButton
|
|
6
|
+
} from "./chunk-O3DNDMV3.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
ChevronLeftIcon,
|
|
12
|
+
ChevronRightIcon
|
|
13
|
+
} from "./chunk-OAUNSXK7.js";
|
|
14
|
+
import {
|
|
15
|
+
__objRest,
|
|
16
|
+
__spreadProps,
|
|
17
|
+
__spreadValues
|
|
18
|
+
} from "./chunk-N552FDTV.js";
|
|
19
|
+
|
|
20
|
+
// src/molecules/date-picker/index.tsx
|
|
21
|
+
import { forwardRef } from "react";
|
|
22
|
+
import * as RDP from "react-datepicker";
|
|
23
|
+
import { registerLocale, setDefaultLocale } from "react-datepicker";
|
|
24
|
+
import { ko as fnKo } from "date-fns/locale";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
registerLocale("ko", fnKo);
|
|
27
|
+
setDefaultLocale("ko");
|
|
28
|
+
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
29
|
+
var DatePicker = forwardRef(
|
|
30
|
+
(props, ref) => {
|
|
31
|
+
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
32
|
+
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
33
|
+
return /* @__PURE__ */ jsx(Flex, { p: "0", width: "100%", children: /* @__PURE__ */ jsx(
|
|
34
|
+
ReactDatePicker,
|
|
35
|
+
__spreadProps(__spreadValues({
|
|
36
|
+
dateFormat: "YYYY/MM/dd",
|
|
37
|
+
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
38
|
+
placeholderText: "YYYY/mm/dd",
|
|
39
|
+
popperProps: { strategy: "fixed" },
|
|
40
|
+
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
41
|
+
ref,
|
|
42
|
+
renderCustomHeader,
|
|
43
|
+
showPopperArrow: false,
|
|
44
|
+
timeIntervals: 10
|
|
45
|
+
}, rest), {
|
|
46
|
+
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
47
|
+
timeCaption: "\uC2DC\uAC04",
|
|
48
|
+
wrapperClassName: `tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ""}`
|
|
49
|
+
})
|
|
50
|
+
) });
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
DatePicker.displayName = "DatePicker";
|
|
54
|
+
var renderCustomHeader = (props) => {
|
|
55
|
+
const {
|
|
56
|
+
date,
|
|
57
|
+
decreaseMonth,
|
|
58
|
+
increaseMonth,
|
|
59
|
+
prevMonthButtonDisabled,
|
|
60
|
+
nextMonthButtonDisabled
|
|
61
|
+
} = props;
|
|
62
|
+
const year = date ? date.getFullYear() : "-";
|
|
63
|
+
const month = date ? date.getMonth() + 1 : "-";
|
|
64
|
+
return /* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
65
|
+
/* @__PURE__ */ jsx(
|
|
66
|
+
IconButton,
|
|
67
|
+
{
|
|
68
|
+
disabled: prevMonthButtonDisabled,
|
|
69
|
+
onClick: decreaseMonth,
|
|
70
|
+
type: "button",
|
|
71
|
+
variant: "ghost",
|
|
72
|
+
children: /* @__PURE__ */ jsx(ChevronLeftIcon, {})
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
|
|
77
|
+
year,
|
|
78
|
+
"\uB144"
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", weight: "regular", children: [
|
|
81
|
+
month,
|
|
82
|
+
"\uC6D4"
|
|
83
|
+
] })
|
|
84
|
+
] }),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
IconButton,
|
|
87
|
+
{
|
|
88
|
+
disabled: nextMonthButtonDisabled,
|
|
89
|
+
onClick: increaseMonth,
|
|
90
|
+
type: "button",
|
|
91
|
+
variant: "ghost",
|
|
92
|
+
children: /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] });
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
DatePicker
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=chunk-7JJPPIIN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\n/* eslint-disable @typescript-eslint/no-unsafe-member-access -- ReactPicker의 렌더러가 object를 return함 버그를 해결하기 위해 강제 assertion 사용 */\nimport type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport * as RDP from 'react-datepicker';\nimport { registerLocale, setDefaultLocale } from 'react-datepicker';\nimport { ko as fnKo } from 'date-fns/locale';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nregisterLocale('ko', fnKo);\nsetDefaultLocale('ko');\n\nexport type DatePickerProps = ReactDatePickerProps & {\n fullWidth?: boolean;\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nconst ReactDatePicker = ((RDP.default as any).default ||\n (RDP.default as any) ||\n (RDP as any)) as typeof RDP.default;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactElement => {\n const { fullWidth, ...rest } = props;\n const fullWidthClassName = fullWidth ? 'full-width' : '';\n return (\n <Flex p=\"0\" width=\"100%\">\n <ReactDatePicker\n dateFormat=\"YYYY/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"YYYY/mm/dd\"\n popperProps={{ strategy: 'fixed' }}\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n timeIntervals={10}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n timeCaption=\"시간\"\n wrapperClassName={`tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ''}`}\n />\n </Flex>\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\nconst renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n props\n) => {\n const {\n date,\n decreaseMonth,\n increaseMonth,\n prevMonthButtonDisabled,\n nextMonthButtonDisabled,\n } = props;\n\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const year = date ? date.getFullYear() : '-';\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n const month = date ? date.getMonth() + 1 : '-';\n\n return (\n <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n <IconButton\n disabled={prevMonthButtonDisabled}\n onClick={decreaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronLeftIcon />\n </IconButton>\n <Flex gap=\"3\">\n <Heading variant=\"heading4\" weight=\"regular\">\n {year}년\n </Heading>\n <Heading variant=\"heading4\" weight=\"regular\">\n {month}월\n </Heading>\n </Flex>\n\n <IconButton\n disabled={nextMonthButtonDisabled}\n onClick={increaseMonth}\n type=\"button\"\n variant=\"ghost\"\n >\n <ChevronRightIcon />\n </IconButton>\n </Flex>\n );\n};\n\n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,SAAQ;AAAA,QAER,8BAAC,mBAAgB;AAAA;AAAA,IACnB;AAAA,IACA,qBAAC,QAAK,KAAI,KACR;AAAA,2BAAC,WAAQ,SAAQ,YAAW,QAAO,WAChC;AAAA;AAAA,QAAK;AAAA,SACR;AAAA,MACA,qBAAC,WAAQ,SAAQ,YAAW,QAAO,WAChC;AAAA;AAAA,QAAM;AAAA,SACT;AAAA,OACF;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,UAAU;AAAA,QACV,SAAS;AAAA,QACT,MAAK;AAAA,QACL,SAAQ;AAAA,QAER,8BAAC,oBAAiB;AAAA;AAAA,IACpB;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Card
|
|
3
|
+
} from "./chunk-2ZQK7NTN.js";
|
|
4
|
+
import {
|
|
5
|
+
DownloadCard
|
|
6
|
+
} from "./chunk-3WEXXGSP.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
Heading
|
|
12
|
+
} from "./chunk-HK224ADT.js";
|
|
13
|
+
import {
|
|
14
|
+
__spreadValues
|
|
15
|
+
} from "./chunk-N552FDTV.js";
|
|
16
|
+
|
|
17
|
+
// src/app/platform/report-card.tsx
|
|
18
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
+
function ReportCard(props) {
|
|
20
|
+
const { title, file, status } = props;
|
|
21
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
22
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: title }),
|
|
24
|
+
status
|
|
25
|
+
] }),
|
|
26
|
+
file == null ? void 0 : file.map((el) => {
|
|
27
|
+
return /* @__PURE__ */ jsx(DownloadCard, __spreadValues({}, el), el.url);
|
|
28
|
+
})
|
|
29
|
+
] });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
ReportCard
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=chunk-7QGV2COW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/report-card.tsx"],"sourcesContent":["import React from 'react';\nimport { Card, Flex, Heading } from '@/atoms';\nimport type { Attachment } from '@/molecules';\nimport { DownloadCard } from '@/molecules';\n\nexport interface ReportCardProps {\n title?: string;\n file?: Attachment[];\n status?: React.ReactElement;\n}\n\nexport function ReportCard(props: ReportCardProps): React.ReactElement {\n const { title, file, status } = props;\n return (\n <Card>\n <Flex align=\"center\" justify=\"between\">\n <Heading variant=\"heading4\">{title}</Heading>\n {status}\n </Flex>\n {file?.map((el) => {\n return <DownloadCard key={el.url} {...el} />;\n })}\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAeM,SACE,KADF;AAJC,SAAS,WAAW,OAA4C;AACrE,QAAM,EAAE,OAAO,MAAM,OAAO,IAAI;AAChC,SACE,qBAAC,QACC;AAAA,yBAAC,QAAK,OAAM,UAAS,SAAQ,WAC3B;AAAA,0BAAC,WAAQ,SAAQ,YAAY,iBAAM;AAAA,MAClC;AAAA,OACH;AAAA,IACC,6BAAM,IAAI,CAAC,OAAO;AACjB,aAAO,oBAAC,iCAA8B,KAAZ,GAAG,GAAa;AAAA,IAC5C;AAAA,KACF;AAEJ;","names":[]}
|