@tipp/ui 1.6.32 → 1.6.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +58 -58
- package/dist/app/platform/coach-question-list.js +27 -27
- package/dist/app/platform/contents-card.js +27 -27
- package/dist/app/platform/curriculum-card.js +4 -4
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +38 -38
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +39 -39
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +38 -38
- package/dist/app/platform/goal-manage-card-read.js +27 -27
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +38 -38
- package/dist/app/platform/report-card.js +27 -27
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +39 -39
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +41 -41
- package/dist/app/platform/session-review-simple-read.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +30 -30
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +27 -27
- package/dist/app/platform/userInfos/session-user-info-detail.js +27 -27
- package/dist/app/platform/userInfos/utils.js +26 -26
- package/dist/atoms/badge.d.cts +1 -1
- package/dist/atoms/badge.d.ts +1 -1
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/drawer.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +54 -54
- package/dist/atoms/pagination.js +3 -3
- package/dist/{chunk-GPY63QSD.js → chunk-77A65DFR.js} +5 -5
- package/dist/chunk-77A65DFR.js.map +1 -0
- package/dist/{chunk-L4BQZ63D.js → chunk-AVIKUC4O.js} +7 -7
- package/dist/{chunk-OT6P5O5I.js → chunk-GQJH7GRZ.js} +10 -10
- package/dist/{chunk-DPCBR6P3.js → chunk-HRYQ7IES.js} +9 -9
- package/dist/icon.js +3 -3
- package/dist/icons/index.js +3 -3
- package/dist/index.cjs +64 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +32 -2
- package/dist/index.js +90 -90
- package/dist/molecules/date-picker/date-picker-button.js +27 -27
- package/dist/molecules/date-picker/index.js +1 -1
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/expand-table/index.cjs +64 -62
- 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.js +26 -26
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +2 -2
- package/dist/molecules/index.cjs +64 -62
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +40 -40
- package/dist/molecules/learning-post.js +4 -4
- package/dist/molecules/navigation.js +27 -27
- package/dist/molecules/radio-button-card.js +27 -27
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +27 -27
- package/dist/molecules/time-select.js +26 -26
- package/package.json +1 -1
- package/src/molecules/expand-table/index.tsx +76 -70
- package/dist/chunk-27LARKX6.js +0 -54
- package/dist/chunk-27LARKX6.js.map +0 -1
- package/dist/chunk-2GVQIRVC.js +0 -108
- package/dist/chunk-2GVQIRVC.js.map +0 -1
- package/dist/chunk-2K7GDUHJ.js +0 -357
- package/dist/chunk-2KNMBD6G.js +0 -174
- package/dist/chunk-2KNMBD6G.js.map +0 -1
- package/dist/chunk-2LEN6TJW.js +0 -284
- package/dist/chunk-2LEN6TJW.js.map +0 -1
- package/dist/chunk-2NOXG2W2.js +0 -194
- package/dist/chunk-2NOXG2W2.js.map +0 -1
- package/dist/chunk-2NQ4PYPH.js +0 -145
- package/dist/chunk-2QSTK3Y7.js +0 -194
- package/dist/chunk-2QSTK3Y7.js.map +0 -1
- package/dist/chunk-2S7WG777.js +0 -57
- package/dist/chunk-2S7WG777.js.map +0 -1
- package/dist/chunk-2VNVHMBS.js +0 -164
- package/dist/chunk-2VNVHMBS.js.map +0 -1
- package/dist/chunk-362ZBLC7.js +0 -39
- package/dist/chunk-362ZBLC7.js.map +0 -1
- package/dist/chunk-36BWVY4R.js +0 -30
- package/dist/chunk-36BWVY4R.js.map +0 -1
- package/dist/chunk-3CXAT6RH.js +0 -357
- package/dist/chunk-3CXAT6RH.js.map +0 -1
- package/dist/chunk-3F6KWGBZ.js +0 -89
- package/dist/chunk-3F6KWGBZ.js.map +0 -1
- package/dist/chunk-3FNXJ35I.js +0 -54
- package/dist/chunk-3FNXJ35I.js.map +0 -1
- package/dist/chunk-3IOLG7AJ.js +0 -145
- package/dist/chunk-3IOLG7AJ.js.map +0 -1
- package/dist/chunk-3K3WU7XM.js +0 -145
- package/dist/chunk-3K3WU7XM.js.map +0 -1
- package/dist/chunk-3KQUJODT.js +0 -357
- package/dist/chunk-3KQUJODT.js.map +0 -1
- package/dist/chunk-3TWYP5FO.js +0 -57
- package/dist/chunk-3TWYP5FO.js.map +0 -1
- package/dist/chunk-3WEXXGSP.js +0 -53
- package/dist/chunk-3WEXXGSP.js.map +0 -1
- package/dist/chunk-3X6SIK3W.js +0 -106
- package/dist/chunk-3X6SIK3W.js.map +0 -1
- package/dist/chunk-3XMCL5X4.js +0 -106
- package/dist/chunk-3XMCL5X4.js.map +0 -1
- package/dist/chunk-3XQUC7TK.js +0 -106
- package/dist/chunk-3XQUC7TK.js.map +0 -1
- package/dist/chunk-42MNZ5HL.js +0 -54
- package/dist/chunk-42MNZ5HL.js.map +0 -1
- package/dist/chunk-43TEFEIM.js +0 -63
- package/dist/chunk-43TEFEIM.js.map +0 -1
- package/dist/chunk-43UWSXIH.js +0 -357
- package/dist/chunk-43UWSXIH.js.map +0 -1
- package/dist/chunk-44STOGYA.js +0 -164
- package/dist/chunk-44STOGYA.js.map +0 -1
- package/dist/chunk-4ARBKOGR.js +0 -174
- package/dist/chunk-4ARBKOGR.js.map +0 -1
- package/dist/chunk-4DTD3FXF.js +0 -47
- package/dist/chunk-4DTD3FXF.js.map +0 -1
- package/dist/chunk-4HZKUO4A.js +0 -284
- package/dist/chunk-4HZKUO4A.js.map +0 -1
- package/dist/chunk-4TI72EQY.js +0 -54
- package/dist/chunk-4TI72EQY.js.map +0 -1
- package/dist/chunk-4TKWXDNQ.js +0 -180
- package/dist/chunk-4TKWXDNQ.js.map +0 -1
- package/dist/chunk-4VRGGFOT.js +0 -54
- package/dist/chunk-4VRGGFOT.js.map +0 -1
- package/dist/chunk-4Z5NYYOE.js +0 -145
- package/dist/chunk-4Z5NYYOE.js.map +0 -1
- package/dist/chunk-4ZBD77WE.js +0 -58
- package/dist/chunk-4ZBD77WE.js.map +0 -1
- package/dist/chunk-4ZLXDFP3.js +0 -145
- package/dist/chunk-4ZLXDFP3.js.map +0 -1
- package/dist/chunk-53ZJS5JI.js +0 -111
- package/dist/chunk-53ZJS5JI.js.map +0 -1
- package/dist/chunk-57F5B7FE.js +0 -84
- package/dist/chunk-57F5B7FE.js.map +0 -1
- package/dist/chunk-5F7NVKMI.js +0 -74
- package/dist/chunk-5F7NVKMI.js.map +0 -1
- package/dist/chunk-5FQTAL2F.js +0 -357
- package/dist/chunk-5FQTAL2F.js.map +0 -1
- package/dist/chunk-5JJVLL2A.js +0 -30
- package/dist/chunk-5JJVLL2A.js.map +0 -1
- package/dist/chunk-5QCIYLYC.js +0 -70
- package/dist/chunk-5QCIYLYC.js.map +0 -1
- package/dist/chunk-5QXQPRW7.js +0 -89
- package/dist/chunk-5QXQPRW7.js.map +0 -1
- package/dist/chunk-5VDTWYNQ.js +0 -357
- package/dist/chunk-5VDTWYNQ.js.map +0 -1
- package/dist/chunk-5XZU4GJS.js +0 -284
- package/dist/chunk-5XZU4GJS.js.map +0 -1
- package/dist/chunk-5YSQLR6F.js +0 -357
- package/dist/chunk-5YSQLR6F.js.map +0 -1
- package/dist/chunk-64UUNUIF.js +0 -74
- package/dist/chunk-64UUNUIF.js.map +0 -1
- package/dist/chunk-66W7PUJN.js +0 -357
- package/dist/chunk-66W7PUJN.js.map +0 -1
- package/dist/chunk-6ERCSTEP.js +0 -357
- package/dist/chunk-6ERCSTEP.js.map +0 -1
- package/dist/chunk-6HY2JAC2.js +0 -145
- package/dist/chunk-6HY2JAC2.js.map +0 -1
- package/dist/chunk-6L7KJ4UK.js +0 -174
- package/dist/chunk-6L7KJ4UK.js.map +0 -1
- package/dist/chunk-6LV4UGX5.js +0 -165
- package/dist/chunk-6M4BTHPU.js +0 -45
- package/dist/chunk-6M4BTHPU.js.map +0 -1
- package/dist/chunk-6RT2RUZ2.js +0 -145
- package/dist/chunk-6RT2RUZ2.js.map +0 -1
- package/dist/chunk-6X3CZMIC.js +0 -174
- package/dist/chunk-6X3CZMIC.js.map +0 -1
- package/dist/chunk-77UKVVEP.js +0 -74
- package/dist/chunk-77UKVVEP.js.map +0 -1
- package/dist/chunk-7BJI7SLD.js +0 -192
- package/dist/chunk-7BJI7SLD.js.map +0 -1
- package/dist/chunk-7CANQHBM.js +0 -117
- package/dist/chunk-7CANQHBM.js.map +0 -1
- package/dist/chunk-7KMPLHBV.js +0 -357
- package/dist/chunk-7KMPLHBV.js.map +0 -1
- package/dist/chunk-7LZO5PWK.js +0 -48
- package/dist/chunk-7LZO5PWK.js.map +0 -1
- package/dist/chunk-7OMAHOKN.js +0 -213
- package/dist/chunk-7OMAHOKN.js.map +0 -1
- package/dist/chunk-7QGUMO7V.js +0 -54
- package/dist/chunk-7QGUMO7V.js.map +0 -1
- package/dist/chunk-7SWVQEY6.js +0 -73
- package/dist/chunk-7SWVQEY6.js.map +0 -1
- package/dist/chunk-7ZXUG6W4.js +0 -145
- package/dist/chunk-7ZXUG6W4.js.map +0 -1
- package/dist/chunk-AEZGO2IM.js +0 -194
- package/dist/chunk-AEZGO2IM.js.map +0 -1
- package/dist/chunk-AFQMLTCH.js +0 -54
- package/dist/chunk-AFQMLTCH.js.map +0 -1
- package/dist/chunk-AMJDCPWB.js +0 -165
- package/dist/chunk-AMJDCPWB.js.map +0 -1
- package/dist/chunk-AOOAWRH6.js +0 -117
- package/dist/chunk-AOOAWRH6.js.map +0 -1
- package/dist/chunk-APHK52I3.js +0 -164
- package/dist/chunk-APHK52I3.js.map +0 -1
- package/dist/chunk-AQG6J4WX.js +0 -357
- package/dist/chunk-AQG6J4WX.js.map +0 -1
- package/dist/chunk-AQXVWKH6.js +0 -19
- package/dist/chunk-AQXVWKH6.js.map +0 -1
- package/dist/chunk-ARTRDY55.js +0 -357
- package/dist/chunk-ARTRDY55.js.map +0 -1
- package/dist/chunk-AW7YHNJD.js +0 -174
- package/dist/chunk-AW7YHNJD.js.map +0 -1
- package/dist/chunk-B3TMWAJI.js +0 -145
- package/dist/chunk-B3TMWAJI.js.map +0 -1
- package/dist/chunk-B7P4NYMW.js +0 -164
- package/dist/chunk-B7P4NYMW.js.map +0 -1
- package/dist/chunk-BBEZXZQH.js +0 -284
- package/dist/chunk-BBEZXZQH.js.map +0 -1
- package/dist/chunk-BNB3AEFM.js +0 -70
- package/dist/chunk-BNB3AEFM.js.map +0 -1
- package/dist/chunk-BUPPCVDT.js +0 -30
- package/dist/chunk-BUPPCVDT.js.map +0 -1
- package/dist/chunk-BVNUNZXK.js +0 -30
- package/dist/chunk-BVNUNZXK.js.map +0 -1
- package/dist/chunk-BVNXAZ4W.js +0 -15
- package/dist/chunk-BVNXAZ4W.js.map +0 -1
- package/dist/chunk-CAPFBIB4.js +0 -357
- package/dist/chunk-CAPFBIB4.js.map +0 -1
- package/dist/chunk-CBVIUEJB.js +0 -117
- package/dist/chunk-CBVIUEJB.js.map +0 -1
- package/dist/chunk-CC7CR4NT.js +0 -174
- package/dist/chunk-CC7CR4NT.js.map +0 -1
- package/dist/chunk-CIO2WR2Q.js +0 -145
- package/dist/chunk-CIO2WR2Q.js.map +0 -1
- package/dist/chunk-CLTHW7V2.js +0 -64
- package/dist/chunk-CLTHW7V2.js.map +0 -1
- package/dist/chunk-CUVAI5MJ.js +0 -117
- package/dist/chunk-CUVAI5MJ.js.map +0 -1
- package/dist/chunk-CXPOD6VX.js +0 -58
- package/dist/chunk-CXPOD6VX.js.map +0 -1
- package/dist/chunk-D2GFXT7B.js +0 -164
- package/dist/chunk-D2GFXT7B.js.map +0 -1
- package/dist/chunk-DEJVT5GM.js +0 -58
- package/dist/chunk-DEJVT5GM.js.map +0 -1
- package/dist/chunk-DEQLZ43V.js +0 -117
- package/dist/chunk-DEQLZ43V.js.map +0 -1
- package/dist/chunk-DJN2IEY6.js +0 -23
- package/dist/chunk-DJN2IEY6.js.map +0 -1
- package/dist/chunk-DOM3D2HE.js +0 -30
- package/dist/chunk-DOM3D2HE.js.map +0 -1
- package/dist/chunk-DONK6DLV.js +0 -128
- package/dist/chunk-DONK6DLV.js.map +0 -1
- package/dist/chunk-DPCBR6P3.js.map +0 -1
- package/dist/chunk-DPWUS6ZN.js +0 -357
- package/dist/chunk-DPWUS6ZN.js.map +0 -1
- package/dist/chunk-DSVS6ALA.js +0 -174
- package/dist/chunk-DSVS6ALA.js.map +0 -1
- package/dist/chunk-DWEM6U3T.js +0 -54
- package/dist/chunk-DWEM6U3T.js.map +0 -1
- package/dist/chunk-E2B4MIBN.js +0 -60
- package/dist/chunk-E2B4MIBN.js.map +0 -1
- package/dist/chunk-E3YG43CK.js +0 -70
- package/dist/chunk-E3YG43CK.js.map +0 -1
- package/dist/chunk-ED3ABG7K.js +0 -54
- package/dist/chunk-ED3ABG7K.js.map +0 -1
- package/dist/chunk-EJ7R6J4E.js +0 -101
- package/dist/chunk-EJ7R6J4E.js.map +0 -1
- package/dist/chunk-EREBMLDQ.js +0 -58
- package/dist/chunk-EREBMLDQ.js.map +0 -1
- package/dist/chunk-F43CRBEH.js +0 -357
- package/dist/chunk-F43CRBEH.js.map +0 -1
- package/dist/chunk-F5JCHRHO.js +0 -102
- package/dist/chunk-F5JCHRHO.js.map +0 -1
- package/dist/chunk-FF2PTPBU.js +0 -145
- package/dist/chunk-FF2PTPBU.js.map +0 -1
- package/dist/chunk-FG7YGBIF.js +0 -164
- package/dist/chunk-FG7YGBIF.js.map +0 -1
- package/dist/chunk-FJ6JGIU5.js +0 -61
- package/dist/chunk-FJ6JGIU5.js.map +0 -1
- package/dist/chunk-FJP2F6IC.js +0 -39
- package/dist/chunk-FJP2F6IC.js.map +0 -1
- package/dist/chunk-FRQQYYBY.js +0 -174
- package/dist/chunk-FRQQYYBY.js.map +0 -1
- package/dist/chunk-FZVV6EYF.js +0 -165
- package/dist/chunk-FZVV6EYF.js.map +0 -1
- package/dist/chunk-G2JN23PG.js +0 -64
- package/dist/chunk-G2JN23PG.js.map +0 -1
- package/dist/chunk-GDK6PQPJ.js +0 -70
- package/dist/chunk-GDK6PQPJ.js.map +0 -1
- package/dist/chunk-GDSTYYNT.js +0 -106
- package/dist/chunk-GDSTYYNT.js.map +0 -1
- package/dist/chunk-GDZ3OYPF.js +0 -70
- package/dist/chunk-GDZ3OYPF.js.map +0 -1
- package/dist/chunk-GPY63QSD.js.map +0 -1
- package/dist/chunk-GWJ6Q6TZ.js +0 -74
- package/dist/chunk-GWJ6Q6TZ.js.map +0 -1
- package/dist/chunk-GWPTVUZP.js +0 -357
- package/dist/chunk-GWPTVUZP.js.map +0 -1
- package/dist/chunk-GYCMXI4Q.js +0 -357
- package/dist/chunk-GYCMXI4Q.js.map +0 -1
- package/dist/chunk-GZEVDUCD.js +0 -284
- package/dist/chunk-GZEVDUCD.js.map +0 -1
- package/dist/chunk-H5ZK2WYX.js +0 -357
- package/dist/chunk-H5ZK2WYX.js.map +0 -1
- package/dist/chunk-H6N2HRG6.js +0 -357
- package/dist/chunk-H6N2HRG6.js.map +0 -1
- package/dist/chunk-H76H7C6P.js +0 -284
- package/dist/chunk-H76H7C6P.js.map +0 -1
- package/dist/chunk-HGVASDVH.js +0 -145
- package/dist/chunk-HGVASDVH.js.map +0 -1
- package/dist/chunk-HN2C35F6.js +0 -70
- package/dist/chunk-HN2C35F6.js.map +0 -1
- package/dist/chunk-HO4YTNHK.js +0 -69
- package/dist/chunk-HO4YTNHK.js.map +0 -1
- package/dist/chunk-HP35762R.js +0 -99
- package/dist/chunk-HP35762R.js.map +0 -1
- package/dist/chunk-HQSSAZHP.js +0 -84
- package/dist/chunk-HQSSAZHP.js.map +0 -1
- package/dist/chunk-HRAIZGAV.js +0 -164
- package/dist/chunk-HRAIZGAV.js.map +0 -1
- package/dist/chunk-HXJYOUBE.js +0 -30
- package/dist/chunk-HXJYOUBE.js.map +0 -1
- package/dist/chunk-HYY7ARMC.js +0 -357
- package/dist/chunk-HYY7ARMC.js.map +0 -1
- package/dist/chunk-ID5QAWF7.js +0 -60
- package/dist/chunk-ID5QAWF7.js.map +0 -1
- package/dist/chunk-ILKWG2DQ.js +0 -57
- package/dist/chunk-ILKWG2DQ.js.map +0 -1
- package/dist/chunk-IWW6ST7Q.js +0 -30
- package/dist/chunk-IWW6ST7Q.js.map +0 -1
- package/dist/chunk-IYC5RV5K.js +0 -64
- package/dist/chunk-IYC5RV5K.js.map +0 -1
- package/dist/chunk-IYJ77DVE.js +0 -63
- package/dist/chunk-IYJ77DVE.js.map +0 -1
- package/dist/chunk-IZUCJFWS.js +0 -357
- package/dist/chunk-IZUCJFWS.js.map +0 -1
- package/dist/chunk-J5675IX6.js +0 -145
- package/dist/chunk-J5675IX6.js.map +0 -1
- package/dist/chunk-J5RZURAR.js +0 -106
- package/dist/chunk-J5RZURAR.js.map +0 -1
- package/dist/chunk-JOURSLSJ.js +0 -145
- package/dist/chunk-JOURSLSJ.js.map +0 -1
- package/dist/chunk-JPHQPZM6.js +0 -82
- package/dist/chunk-JPHQPZM6.js.map +0 -1
- package/dist/chunk-JPKBLDEX.js +0 -174
- package/dist/chunk-JPKBLDEX.js.map +0 -1
- package/dist/chunk-JRPA2S7O.js +0 -54
- package/dist/chunk-JRPA2S7O.js.map +0 -1
- package/dist/chunk-JRQ4OLKU.js +0 -192
- package/dist/chunk-JRQ4OLKU.js.map +0 -1
- package/dist/chunk-JSZGC47H.js +0 -164
- package/dist/chunk-JSZGC47H.js.map +0 -1
- package/dist/chunk-K2PTIGO7.js +0 -54
- package/dist/chunk-K2PTIGO7.js.map +0 -1
- package/dist/chunk-K7ITFD4P.js +0 -45
- package/dist/chunk-K7ITFD4P.js.map +0 -1
- package/dist/chunk-KCGIEABE.js +0 -117
- package/dist/chunk-KCGIEABE.js.map +0 -1
- package/dist/chunk-KGHKOWUO.js +0 -284
- package/dist/chunk-KGHKOWUO.js.map +0 -1
- package/dist/chunk-KNK5RG7Y.js +0 -192
- package/dist/chunk-KNK5RG7Y.js.map +0 -1
- package/dist/chunk-KSS4FSJI.js +0 -1
- package/dist/chunk-KSS4FSJI.js.map +0 -1
- package/dist/chunk-KT4BIOJJ.js +0 -54
- package/dist/chunk-KT4BIOJJ.js.map +0 -1
- package/dist/chunk-KWVNYSQW.js +0 -10
- package/dist/chunk-KWVNYSQW.js.map +0 -1
- package/dist/chunk-KXHMS6L6.js +0 -30
- package/dist/chunk-KXHMS6L6.js.map +0 -1
- package/dist/chunk-L4BQZ63D.js.map +0 -1
- package/dist/chunk-L5XYBDEW.js +0 -116
- package/dist/chunk-L5XYBDEW.js.map +0 -1
- package/dist/chunk-L75KKLZS.js +0 -106
- package/dist/chunk-L75KKLZS.js.map +0 -1
- package/dist/chunk-L7D57PX4.js +0 -63
- package/dist/chunk-L7D57PX4.js.map +0 -1
- package/dist/chunk-LCGALXZI.js +0 -192
- package/dist/chunk-LCGALXZI.js.map +0 -1
- package/dist/chunk-LCGQYQ2Y.js +0 -145
- package/dist/chunk-LCGQYQ2Y.js.map +0 -1
- package/dist/chunk-LF2ZIBTQ.js +0 -74
- package/dist/chunk-LF2ZIBTQ.js.map +0 -1
- package/dist/chunk-LGF7FERG.js +0 -23
- package/dist/chunk-LGF7FERG.js.map +0 -1
- package/dist/chunk-LIRY27DR.js +0 -357
- package/dist/chunk-LIRY27DR.js.map +0 -1
- package/dist/chunk-LSYQLE32.js +0 -19
- package/dist/chunk-LSYQLE32.js.map +0 -1
- package/dist/chunk-LZJR77Q2.js +0 -26
- package/dist/chunk-LZJR77Q2.js.map +0 -1
- package/dist/chunk-M5SS2RDT.js +0 -117
- package/dist/chunk-M5SS2RDT.js.map +0 -1
- package/dist/chunk-M7RFEEBK.js +0 -357
- package/dist/chunk-M7RFEEBK.js.map +0 -1
- package/dist/chunk-M7ZJNU6J.js +0 -70
- package/dist/chunk-M7ZJNU6J.js.map +0 -1
- package/dist/chunk-MAMC4X5N.js +0 -164
- package/dist/chunk-MAMC4X5N.js.map +0 -1
- package/dist/chunk-MEA2GIR7.js +0 -192
- package/dist/chunk-MEA2GIR7.js.map +0 -1
- package/dist/chunk-MKRH75GK.js +0 -145
- package/dist/chunk-MKRH75GK.js.map +0 -1
- package/dist/chunk-MMNUPVIX.js +0 -128
- package/dist/chunk-MMNUPVIX.js.map +0 -1
- package/dist/chunk-MV4J4QUT.js +0 -70
- package/dist/chunk-MV4J4QUT.js.map +0 -1
- package/dist/chunk-MWBEL3OY.js +0 -111
- package/dist/chunk-MWBEL3OY.js.map +0 -1
- package/dist/chunk-NHOR6XDA.js +0 -30
- package/dist/chunk-NHOR6XDA.js.map +0 -1
- package/dist/chunk-NHPARWLK.js +0 -194
- package/dist/chunk-NHPARWLK.js.map +0 -1
- package/dist/chunk-NMCNC3JV.js +0 -357
- package/dist/chunk-NMCNC3JV.js.map +0 -1
- package/dist/chunk-NNE23OE4.js +0 -99
- package/dist/chunk-NNE23OE4.js.map +0 -1
- package/dist/chunk-NVZTJG7X.js +0 -57
- package/dist/chunk-NVZTJG7X.js.map +0 -1
- package/dist/chunk-NWF4LV6Z.js +0 -30
- package/dist/chunk-NWF4LV6Z.js.map +0 -1
- package/dist/chunk-NXVN7AKI.js +0 -81
- package/dist/chunk-NXVN7AKI.js.map +0 -1
- package/dist/chunk-NZLCJ725.js +0 -192
- package/dist/chunk-NZLCJ725.js.map +0 -1
- package/dist/chunk-O33F7L7R.js +0 -165
- package/dist/chunk-O33F7L7R.js.map +0 -1
- package/dist/chunk-O4AVGJHY.js +0 -71
- package/dist/chunk-O4AVGJHY.js.map +0 -1
- package/dist/chunk-O5EI5UQD.js +0 -102
- package/dist/chunk-O5EI5UQD.js.map +0 -1
- package/dist/chunk-O5H5SQHB.js +0 -110
- package/dist/chunk-O5H5SQHB.js.map +0 -1
- package/dist/chunk-OFBTS6ZD.js +0 -145
- package/dist/chunk-OFBTS6ZD.js.map +0 -1
- package/dist/chunk-ON6X4DAK.js +0 -45
- package/dist/chunk-ON6X4DAK.js.map +0 -1
- package/dist/chunk-OT4OMHJV.js +0 -58
- package/dist/chunk-OT4OMHJV.js.map +0 -1
- package/dist/chunk-OT6P5O5I.js.map +0 -1
- package/dist/chunk-OVYF7U45.js +0 -74
- package/dist/chunk-OVYF7U45.js.map +0 -1
- package/dist/chunk-OWSYPSKK.js +0 -84
- package/dist/chunk-OWSYPSKK.js.map +0 -1
- package/dist/chunk-OWWROHVI.js +0 -81
- package/dist/chunk-OWWROHVI.js.map +0 -1
- package/dist/chunk-OYYJEZVP.js +0 -84
- package/dist/chunk-OYYJEZVP.js.map +0 -1
- package/dist/chunk-PBHO6GZ3.js +0 -30
- package/dist/chunk-PBHO6GZ3.js.map +0 -1
- package/dist/chunk-PCWEW2UL.js +0 -80
- package/dist/chunk-PCWEW2UL.js.map +0 -1
- package/dist/chunk-PNCXVZUJ.js +0 -48
- package/dist/chunk-PNCXVZUJ.js.map +0 -1
- package/dist/chunk-PP32ABL5.js +0 -45
- package/dist/chunk-PP32ABL5.js.map +0 -1
- package/dist/chunk-PP6SOBTJ.js +0 -128
- package/dist/chunk-PP6SOBTJ.js.map +0 -1
- package/dist/chunk-PPBWRWZS.js +0 -194
- package/dist/chunk-PPBWRWZS.js.map +0 -1
- package/dist/chunk-PTARPAKT.js +0 -192
- package/dist/chunk-PTARPAKT.js.map +0 -1
- package/dist/chunk-Q6Q7AOOQ.js +0 -174
- package/dist/chunk-Q6Q7AOOQ.js.map +0 -1
- package/dist/chunk-QC63I2BG.js +0 -89
- package/dist/chunk-QC63I2BG.js.map +0 -1
- package/dist/chunk-QFS5OQND.js +0 -357
- package/dist/chunk-QFS5OQND.js.map +0 -1
- package/dist/chunk-QGXLI3QC.js +0 -111
- package/dist/chunk-QGXLI3QC.js.map +0 -1
- package/dist/chunk-QIBROLOP.js +0 -169
- package/dist/chunk-QIBROLOP.js.map +0 -1
- package/dist/chunk-QIY5KHBO.js +0 -64
- package/dist/chunk-QIY5KHBO.js.map +0 -1
- package/dist/chunk-QO6HADNE.js +0 -91
- package/dist/chunk-QO6HADNE.js.map +0 -1
- package/dist/chunk-QUDGAWYM.js +0 -174
- package/dist/chunk-QUDGAWYM.js.map +0 -1
- package/dist/chunk-QWSTJ7BG.js +0 -70
- package/dist/chunk-QWSTJ7BG.js.map +0 -1
- package/dist/chunk-R23QFNIZ.js +0 -84
- package/dist/chunk-R23QFNIZ.js.map +0 -1
- package/dist/chunk-RBWZWZQ4.js +0 -194
- package/dist/chunk-RBWZWZQ4.js.map +0 -1
- package/dist/chunk-RFD5H6F6.js +0 -174
- package/dist/chunk-RFD5H6F6.js.map +0 -1
- package/dist/chunk-RJTKRIDJ.js +0 -194
- package/dist/chunk-RJTKRIDJ.js.map +0 -1
- package/dist/chunk-RNGCQ6Q5.js +0 -54
- package/dist/chunk-RNGCQ6Q5.js.map +0 -1
- package/dist/chunk-RPTU2HZS.js +0 -111
- package/dist/chunk-RPTU2HZS.js.map +0 -1
- package/dist/chunk-RVLCXUJU.js +0 -113
- package/dist/chunk-RVLCXUJU.js.map +0 -1
- package/dist/chunk-RW42W36H.js +0 -357
- package/dist/chunk-RW42W36H.js.map +0 -1
- package/dist/chunk-RYOOMWGK.js +0 -192
- package/dist/chunk-RYOOMWGK.js.map +0 -1
- package/dist/chunk-RYORYWPY.js +0 -164
- package/dist/chunk-RYORYWPY.js.map +0 -1
- package/dist/chunk-S2P3RYT2.js +0 -174
- package/dist/chunk-S2P3RYT2.js.map +0 -1
- package/dist/chunk-S3JQRR63.js +0 -174
- package/dist/chunk-S3JQRR63.js.map +0 -1
- package/dist/chunk-S4UCJELU.js +0 -64
- package/dist/chunk-S4UCJELU.js.map +0 -1
- package/dist/chunk-SGMO4KBC.js +0 -27
- package/dist/chunk-SGMO4KBC.js.map +0 -1
- package/dist/chunk-SM5ETU3K.js +0 -284
- package/dist/chunk-SM5ETU3K.js.map +0 -1
- package/dist/chunk-SMZIRKPK.js +0 -70
- package/dist/chunk-SMZIRKPK.js.map +0 -1
- package/dist/chunk-SNHJQ4GS.js +0 -64
- package/dist/chunk-SNHJQ4GS.js.map +0 -1
- package/dist/chunk-SQVTAH25.js +0 -54
- package/dist/chunk-SQVTAH25.js.map +0 -1
- package/dist/chunk-T23U4R7A.js +0 -84
- package/dist/chunk-T23U4R7A.js.map +0 -1
- package/dist/chunk-TBEOWECF.js +0 -47
- package/dist/chunk-TBEOWECF.js.map +0 -1
- package/dist/chunk-THLNVRBV.js +0 -30
- package/dist/chunk-THLNVRBV.js.map +0 -1
- package/dist/chunk-TLAYZCP6.js +0 -57
- package/dist/chunk-TLAYZCP6.js.map +0 -1
- package/dist/chunk-TLXJUQOG.js +0 -145
- package/dist/chunk-TLXJUQOG.js.map +0 -1
- package/dist/chunk-TR5G6YMG.js +0 -63
- package/dist/chunk-TR5G6YMG.js.map +0 -1
- package/dist/chunk-TTGSVKIG.js +0 -99
- package/dist/chunk-TTGSVKIG.js.map +0 -1
- package/dist/chunk-TXCJQUKM.js +0 -357
- package/dist/chunk-TXCJQUKM.js.map +0 -1
- package/dist/chunk-TZEIEMBT.js +0 -60
- package/dist/chunk-TZEIEMBT.js.map +0 -1
- package/dist/chunk-U25467SQ.js +0 -64
- package/dist/chunk-U25467SQ.js.map +0 -1
- package/dist/chunk-U2YCUMSH.js +0 -64
- package/dist/chunk-U2YCUMSH.js.map +0 -1
- package/dist/chunk-U467J2SK.js +0 -30
- package/dist/chunk-U467J2SK.js.map +0 -1
- package/dist/chunk-UARPROHP.js +0 -48
- package/dist/chunk-UARPROHP.js.map +0 -1
- package/dist/chunk-UAUXUQWQ.js +0 -174
- package/dist/chunk-UAUXUQWQ.js.map +0 -1
- package/dist/chunk-UB44BWD3.js +0 -54
- package/dist/chunk-UB44BWD3.js.map +0 -1
- package/dist/chunk-UL52QKAX.js +0 -106
- package/dist/chunk-UL52QKAX.js.map +0 -1
- package/dist/chunk-ULK3LVLV.js +0 -145
- package/dist/chunk-ULK3LVLV.js.map +0 -1
- package/dist/chunk-UODPFMUA.js +0 -357
- package/dist/chunk-UODPFMUA.js.map +0 -1
- package/dist/chunk-UQIKDTM2.js +0 -69
- package/dist/chunk-UQIKDTM2.js.map +0 -1
- package/dist/chunk-URCFWXSS.js +0 -145
- package/dist/chunk-URCFWXSS.js.map +0 -1
- package/dist/chunk-UV5ZQZZJ.js +0 -164
- package/dist/chunk-UV5ZQZZJ.js.map +0 -1
- package/dist/chunk-UW563HH7.js +0 -74
- package/dist/chunk-UW563HH7.js.map +0 -1
- package/dist/chunk-UY53VZ6A.js +0 -192
- package/dist/chunk-UY53VZ6A.js.map +0 -1
- package/dist/chunk-V3LWCHYU.js +0 -101
- package/dist/chunk-V3LWCHYU.js.map +0 -1
- package/dist/chunk-V5SFOM4G.js +0 -213
- package/dist/chunk-V5SFOM4G.js.map +0 -1
- package/dist/chunk-VEHJL7YX.js +0 -145
- package/dist/chunk-VEHJL7YX.js.map +0 -1
- package/dist/chunk-VGA7OYBC.js +0 -165
- package/dist/chunk-VGA7OYBC.js.map +0 -1
- package/dist/chunk-VHFAY5XN.js +0 -146
- package/dist/chunk-VHFAY5XN.js.map +0 -1
- package/dist/chunk-VJ7EA7ZF.js +0 -54
- package/dist/chunk-VJ7EA7ZF.js.map +0 -1
- package/dist/chunk-VYWRSZAR.js +0 -357
- package/dist/chunk-VYWRSZAR.js.map +0 -1
- package/dist/chunk-W3WQTY36.js +0 -99
- package/dist/chunk-W3WQTY36.js.map +0 -1
- package/dist/chunk-WCX5NKJS.js +0 -84
- package/dist/chunk-WCX5NKJS.js.map +0 -1
- package/dist/chunk-WGOFV2EH.js +0 -357
- package/dist/chunk-WGOFV2EH.js.map +0 -1
- package/dist/chunk-WKQZJK7O.js +0 -357
- package/dist/chunk-WKQZJK7O.js.map +0 -1
- package/dist/chunk-WL6DTHGM.js +0 -164
- package/dist/chunk-WL6DTHGM.js.map +0 -1
- package/dist/chunk-WLQ43ESH.js +0 -89
- package/dist/chunk-WLQ43ESH.js.map +0 -1
- package/dist/chunk-WNEXIUQ7.js +0 -63
- package/dist/chunk-WNEXIUQ7.js.map +0 -1
- package/dist/chunk-WOOOOUBT.js +0 -146
- package/dist/chunk-WOOOOUBT.js.map +0 -1
- package/dist/chunk-WTST2Z5J.js +0 -69
- package/dist/chunk-WTST2Z5J.js.map +0 -1
- package/dist/chunk-WW753CRQ.js +0 -145
- package/dist/chunk-WW753CRQ.js.map +0 -1
- package/dist/chunk-X3Z66RK2.js +0 -85
- package/dist/chunk-X3Z66RK2.js.map +0 -1
- package/dist/chunk-X5L3SBB7.js +0 -174
- package/dist/chunk-X5L3SBB7.js.map +0 -1
- package/dist/chunk-XASJNFT6.js +0 -165
- package/dist/chunk-XASJNFT6.js.map +0 -1
- package/dist/chunk-XAY42X6A.js +0 -54
- package/dist/chunk-XAY42X6A.js.map +0 -1
- package/dist/chunk-XD7T627Q.js +0 -174
- package/dist/chunk-XD7T627Q.js.map +0 -1
- package/dist/chunk-XEB6STON.js +0 -48
- package/dist/chunk-XEB6STON.js.map +0 -1
- package/dist/chunk-XNMJFROC.js +0 -108
- package/dist/chunk-XNMJFROC.js.map +0 -1
- package/dist/chunk-XS6G7GQ3.js +0 -54
- package/dist/chunk-XS6G7GQ3.js.map +0 -1
- package/dist/chunk-Y6WM6YGH.js +0 -117
- package/dist/chunk-Y6WM6YGH.js.map +0 -1
- package/dist/chunk-YC6CJEKF.js +0 -102
- package/dist/chunk-YC6CJEKF.js.map +0 -1
- package/dist/chunk-YEDHMMNL.js +0 -165
- package/dist/chunk-YEDHMMNL.js.map +0 -1
- package/dist/chunk-YFWG4PQ3.js +0 -39
- package/dist/chunk-YFWG4PQ3.js.map +0 -1
- package/dist/chunk-YJCCE5WP.js +0 -48
- package/dist/chunk-YJCCE5WP.js.map +0 -1
- package/dist/chunk-YMKOJKGY.js +0 -145
- package/dist/chunk-YMKOJKGY.js.map +0 -1
- package/dist/chunk-YTBR7GSV.js +0 -111
- package/dist/chunk-YTBR7GSV.js.map +0 -1
- package/dist/chunk-YVXTVA4F.js +0 -64
- package/dist/chunk-YVXTVA4F.js.map +0 -1
- package/dist/chunk-Z2UO6V3A.js +0 -117
- package/dist/chunk-Z2UO6V3A.js.map +0 -1
- package/dist/chunk-Z4DPEN2X.js +0 -30
- package/dist/chunk-Z4DPEN2X.js.map +0 -1
- package/dist/chunk-Z7NVKV2K.js +0 -70
- package/dist/chunk-Z7NVKV2K.js.map +0 -1
- package/dist/chunk-ZEE2TO37.js +0 -117
- package/dist/chunk-ZEE2TO37.js.map +0 -1
- package/dist/chunk-ZHH6XNVH.js +0 -145
- package/dist/chunk-ZHH6XNVH.js.map +0 -1
- package/dist/chunk-ZIB6X7QU.js +0 -284
- package/dist/chunk-ZIB6X7QU.js.map +0 -1
- package/dist/chunk-ZKZDVS7G.js +0 -7
- package/dist/chunk-ZKZDVS7G.js.map +0 -1
- package/dist/chunk-ZMISEDZ6.js +0 -145
- package/dist/chunk-ZMISEDZ6.js.map +0 -1
- package/dist/chunk-ZTAZVEA5.js +0 -63
- package/dist/chunk-ZTAZVEA5.js.map +0 -1
- package/dist/chunk-ZV3LJXLO.js +0 -284
- package/dist/chunk-ZV3LJXLO.js.map +0 -1
- package/dist/chunk-ZWQVRMSE.js +0 -195
- package/dist/chunk-ZWQVRMSE.js.map +0 -1
- package/dist/chunk-ZWYM5QVI.js +0 -63
- package/dist/chunk-ZWYM5QVI.js.map +0 -1
- package/dist/chunk-ZZX7M6W7.js +0 -145
- package/dist/chunk-ZZX7M6W7.js.map +0 -1
- package/dist/index.css.map +0 -1
- package/dist/molecules/expand-table/expand-table2.cjs +0 -1402
- package/dist/molecules/expand-table/expand-table2.cjs.map +0 -1
- package/dist/molecules/expand-table/expand-table2.js +0 -79
- package/dist/molecules/expand-table/expand-table2.js.map +0 -1
- /package/dist/{chunk-2K7GDUHJ.js.map → chunk-AVIKUC4O.js.map} +0 -0
- /package/dist/{chunk-2NQ4PYPH.js.map → chunk-GQJH7GRZ.js.map} +0 -0
- /package/dist/{chunk-6LV4UGX5.js.map → chunk-HRYQ7IES.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/tag-selector.tsx"],"sourcesContent":["import React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport {\n ChevronRightIcon,\n Cross1Icon,\n MagnifyingGlassIcon,\n} from '@radix-ui/react-icons';\nimport { Popover } from '../atoms/popover';\nimport { Flex } from '../atoms/flex';\nimport { Button } from '../atoms/button';\nimport type { BadgeProps } from '../atoms/badge';\nimport { Badge } from '../atoms/badge';\nimport { CheckIcon } from '../icon';\nimport { ScrollArea } from '../atoms/scroll-area';\nimport { Grid } from '../atoms/grid';\nimport type { TypoProps } from '../atoms';\nimport { AutoSizingInput, Typo } from '../atoms';\n\ntype ID = string;\ninterface Item {\n name: string;\n id: ID;\n}\n\nconst OPTION_HEIGHT = 32;\n\nexport interface TagSelectorProps<T extends Item> {\n options?: T[];\n selected?: ID[];\n placeholder?: string;\n disabled?: boolean;\n maxCount?: number;\n style?: React.CSSProperties;\n size?: 'large' | 'medium' | 'small';\n readOnly?: boolean;\n error?: boolean;\n\n onChange?: (selected: ID[]) => void;\n tagRender?: (item: T, onClickDelete?: () => void) => React.ReactElement;\n DropdownContainer?: DropdownContainer<T>;\n open?: boolean;\n dropdownItemRender?: (item: T) => React.ReactElement;\n}\ntype DropdownContainer<T> = (props: {\n items: T[];\n children: React.ReactElement;\n currentItem?: T;\n}) => React.ReactElement;\n\nconst DefaultDropdownContainer = (props: {\n children: React.ReactElement;\n}): React.ReactElement => {\n return props.children;\n};\n\nexport function TagSelector<T extends Item>(\n props: TagSelectorProps<T>\n): React.ReactElement {\n const {\n options = [],\n tagRender,\n placeholder,\n maxCount = 0,\n DropdownContainer = DefaultDropdownContainer,\n size = 'medium',\n readOnly,\n error,\n open: propsOpen,\n dropdownItemRender,\n } = props;\n // eslint-disable-next-line react/hook-use-state -- props에 따라 미사용 상태가 될 수 있음\n const [_selected, _setSelected] = useState<string[]>(props.selected || []);\n const selected = props.selected || _selected;\n const setSelected: (v: ID[]) => void = props.onChange || _setSelected;\n const [value, setValue] = useState<string>('');\n const [focusIndex, setFocusIndex] = useState<number | null>(null);\n const [open, setOpen] = useState(false);\n const [focus, setFocus] = useState(false);\n const fieldRef = useRef<HTMLInputElement>(null);\n const scrollRef = useRef<HTMLDivElement>(null);\n\n const closeRef = useRef<ReturnType<typeof setTimeout>>();\n\n const onFocus = useCallback(() => {\n clearTimeout(closeRef.current);\n setFocus(true);\n setOpen(true);\n }, []);\n\n const onBlur = useCallback(() => {\n closeRef.current = setTimeout(() => {\n setFocus(false);\n setOpen(false);\n setTimeout(() => {\n setValue('');\n }, 100);\n }, 300);\n }, []);\n\n const onChangeValue = useCallback<React.ChangeEventHandler<HTMLInputElement>>(\n (e) => {\n setValue(e.target.value);\n },\n []\n );\n\n const filteredOptions = useMemo<T[]>(() => {\n return options.filter((option) => {\n return option.name.includes(value);\n });\n }, [options, value]);\n\n const selectedItem = useMemo<T[]>(() => {\n const result = [] as T[];\n selected.forEach((id) => {\n const maybeItem = options.find((option) => option.id === id);\n if (maybeItem) result.push(maybeItem);\n });\n return result;\n }, [options, selected]);\n\n const onDelete = useCallback(\n (id: string) => {\n setSelected(selected.filter((el) => el !== id));\n },\n [selected, setSelected]\n );\n\n const onSelect = useCallback(\n (id: string) => {\n if (maxCount && selected.length + 1 > maxCount) return;\n setSelected([...selected, id]);\n },\n [maxCount, selected, setSelected]\n );\n\n const toggleItem = useCallback(\n (id: string) => {\n if (selected.includes(id)) {\n onDelete(id);\n } else {\n onSelect(id);\n }\n },\n [onDelete, onSelect, selected]\n );\n\n const setScroll = useCallback((index: number): void => {\n if (scrollRef.current) {\n const scrollTop = scrollRef.current.scrollTop;\n const clientHeight = scrollRef.current.clientHeight;\n const focusTop = index * OPTION_HEIGHT;\n if (focusTop < scrollTop) {\n scrollRef.current.scrollTop = focusTop;\n } else if (focusTop + OPTION_HEIGHT > scrollTop + clientHeight) {\n scrollRef.current.scrollTop = focusTop + OPTION_HEIGHT - clientHeight;\n }\n }\n }, []);\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n const key = e.key;\n\n switch (key) {\n case 'ArrowDown': {\n e.preventDefault();\n let newFocus = 0;\n if (typeof focusIndex === 'number') {\n newFocus = focusIndex + 1 >= options.length ? 0 : focusIndex + 1;\n }\n setFocusIndex(newFocus);\n setScroll(newFocus);\n break;\n }\n\n case 'ArrowUp': {\n e.preventDefault();\n let newFocus = 0;\n if (typeof focusIndex === 'number') {\n newFocus = focusIndex - 1 < 0 ? options.length - 1 : focusIndex - 1;\n }\n setFocusIndex(newFocus);\n setScroll(newFocus);\n break;\n }\n\n case 'Enter':\n setValue('');\n if (focusIndex !== null) {\n toggleItem(filteredOptions[focusIndex]?.id);\n }\n break;\n\n case 'Backspace':\n if (value.length === 0) {\n setSelected(selected.slice(0, -1));\n }\n break;\n\n case 'Escape':\n setOpen(false);\n break;\n }\n },\n [\n focusIndex,\n value.length,\n setScroll,\n options.length,\n toggleItem,\n filteredOptions,\n setSelected,\n selected,\n ]\n );\n\n const placeholderVisible = useMemo(() => {\n if (selectedItem.length) return false;\n if (value) return false;\n if (focus) return false;\n return true;\n }, [focus, selectedItem.length, value]);\n\n useEffect(() => {\n setFocusIndex(null);\n }, [open]);\n\n useEffect(() => {\n setFocusIndex(0);\n }, [filteredOptions]);\n\n const badgeSize = useMemo<BadgeProps['size']>(() => {\n switch (size) {\n case 'large':\n return 'large';\n case 'medium':\n case 'small':\n default:\n return 'small';\n }\n }, [size]);\n\n const placeholderVariant = useMemo<TypoProps['variant']>(() => {\n switch (size) {\n case 'large':\n return 'subtitle';\n case 'medium':\n default:\n return 'body';\n }\n }, [size]);\n\n const focusClassName = focus ? ' focused' : '';\n const readOnlyClassName = readOnly ? ' read-only' : '';\n const errorClassName = error ? ' error' : '';\n\n const readonlyContent = (\n <Flex gap=\"1\">\n {selectedItem.map((item) => {\n return tagRender ? (\n tagRender(item)\n ) : (\n <Badge key={item.id} size={badgeSize}>\n {item.name}\n </Badge>\n );\n })}\n </Flex>\n );\n\n const editContent = (\n <>\n <Flex\n align=\"center\"\n gap=\"1\"\n maxWidth=\"100%\"\n overflow=\"hidden\"\n wrap=\"wrap\"\n >\n {selectedItem.map((item) => {\n return tagRender ? (\n tagRender(item, () => {\n onDelete(item.id);\n })\n ) : (\n <Badge key={item.id} size={badgeSize}>\n {item.name}\n <Button\n onClick={() => {\n onDelete(item.id);\n }}\n variant=\"transparent\"\n >\n <Cross1Icon />\n </Button>\n </Badge>\n );\n })}\n {placeholderVisible ? (\n <Typo color=\"gray\" variant={placeholderVariant}>\n {placeholder}\n </Typo>\n ) : null}\n <AutoSizingInput\n onBlur={onBlur}\n onChange={onChangeValue}\n onFocus={onFocus}\n onKeyDown={handleKeyDown}\n ref={fieldRef}\n value={value}\n />\n </Flex>\n {focus ? <MagnifyingGlassIcon /> : <ChevronRightIcon />}\n </>\n );\n return (\n <Popover.Root open={(Boolean(filteredOptions.length) && propsOpen) || open}>\n <Popover.Trigger style={{ position: 'relative' }}>\n <Grid\n align=\"center\"\n className={`tag-selector ${size} ${focusClassName}${readOnlyClassName}${errorClassName}`}\n columns=\"1fr auto\"\n gap=\"1\"\n onClick={() => !readOnly && fieldRef.current?.focus()}\n >\n {readOnly ? readonlyContent : editContent}\n </Grid>\n </Popover.Trigger>\n\n <Popover.Content\n onOpenAutoFocus={preventDefault}\n onTouchMove={stopPropagationTouch}\n onWheel={stopPropagationWheel}\n sticky=\"always\"\n >\n <DropdownContainer\n currentItem={filteredOptions[focusIndex || 0]}\n items={filteredOptions}\n >\n <ScrollArea\n ref={scrollRef}\n scrollbars=\"vertical\"\n style={{ height: OPTION_HEIGHT * 8 }}\n type=\"auto\"\n >\n <Flex direction=\"column\">\n {filteredOptions.map((item, i) => {\n const isSelected = Boolean(\n selected.find((el) => el === item.id)\n );\n const isFocus = i === focusIndex;\n\n return (\n <Button\n className={`tag-selector-button ${isFocus ? 'focused' : ''}`}\n key={item.id}\n onClick={() => {\n toggleItem(item.id);\n fieldRef.current?.focus();\n }}\n onMouseEnter={() => {\n setFocusIndex(i);\n }}\n variant={isSelected ? 'soft' : 'outline'}\n >\n <Flex justify=\"between\" width=\"100%\">\n {dropdownItemRender\n ? dropdownItemRender(item)\n : item.name}\n {isSelected ? <CheckIcon /> : null}\n </Flex>\n </Button>\n );\n })}\n </Flex>\n </ScrollArea>\n </DropdownContainer>\n </Popover.Content>\n </Popover.Root>\n );\n}\n\nconst stopPropagationTouch: React.TouchEventHandler<HTMLDivElement> = (\n e\n): void => {\n e.stopPropagation();\n};\n\nconst stopPropagationWheel: React.WheelEventHandler<HTMLDivElement> = (\n e\n): void => {\n e.stopPropagation();\n};\n\nconst preventDefault = (e: Event): void => {\n e.preventDefault();\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAiQG,SASN,UATM,KAuBE,YAvBF;AA/OV,IAAM,gBAAgB;AAyBtB,IAAM,2BAA2B,CAAC,UAER;AACxB,SAAO,MAAM;AACf;AAEO,SAAS,YACd,OACoB;AACpB,QAAM;AAAA,IACJ,UAAU,CAAC;A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AAAA,sBACA,SAAS,aAAa,SAAS;AAAA,sBAE/B,+BAAC,QAAK,SAAQ,WAAU,OAAM,QAC3B;AAAA,6CACG,mBAAmB,IAAI,IACvB,KAAK;AAAA,wBACR,aAAa,oBAAC,aAAU,IAAK;AAAA,yBAChC;AAAA;AAAA,oBAfK,KAAK;AAAA,kBAgBZ;AAAA,gBAEJ,CAAC,GACH;AAAA;AAAA,YACF;AAAA;AAAA,QACF;AAAA;AAAA,IACF;AAAA,KACF;AAEJ;AAEA,IAAM,uBAAgE,CACpE,MACS;AACT,IAAE,gBAAgB;AACpB;AAEA,IAAM,uBAAgE,CACpE,MACS;AACT,IAAE,gBAAgB;AACpB;AAEA,IAAM,iBAAiB,CAAC,MAAmB;AACzC,IAAE,eAAe;AACnB;","names":[]}
|
package/dist/chunk-3TWYP5FO.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
infoList,
|
|
3
|
-
renderDataListItem,
|
|
4
|
-
sessionList
|
|
5
|
-
} from "./chunk-QUHTO7MY.js";
|
|
6
|
-
import {
|
|
7
|
-
Grid
|
|
8
|
-
} from "./chunk-EGEQY3KT.js";
|
|
9
|
-
import {
|
|
10
|
-
DataList
|
|
11
|
-
} from "./chunk-VTJZMOSP.js";
|
|
12
|
-
import {
|
|
13
|
-
Heading
|
|
14
|
-
} from "./chunk-HJB3AASV.js";
|
|
15
|
-
import {
|
|
16
|
-
Separator
|
|
17
|
-
} from "./chunk-HYITAA4J.js";
|
|
18
|
-
import {
|
|
19
|
-
Flex
|
|
20
|
-
} from "./chunk-25HMMI7R.js";
|
|
21
|
-
import {
|
|
22
|
-
Box
|
|
23
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
24
|
-
|
|
25
|
-
// src/app/platform/userInfos/session-user-info-detail.tsx
|
|
26
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
-
function SectionWrapper({
|
|
28
|
-
title,
|
|
29
|
-
children
|
|
30
|
-
}) {
|
|
31
|
-
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
32
|
-
/* @__PURE__ */ jsxs(Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
33
|
-
/* @__PURE__ */ jsx(Heading, { variant: "heading5", children: title }),
|
|
34
|
-
/* @__PURE__ */ jsx(Separator, { size: "4" })
|
|
35
|
-
] }),
|
|
36
|
-
children
|
|
37
|
-
] });
|
|
38
|
-
}
|
|
39
|
-
function SessionUserInfoDetail({
|
|
40
|
-
customer,
|
|
41
|
-
session,
|
|
42
|
-
onClickCopy
|
|
43
|
-
}) {
|
|
44
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "6", children: [
|
|
45
|
-
/* @__PURE__ */ jsx(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ jsx(DataList.Root, { children: sessionList.map(
|
|
46
|
-
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
47
|
-
) }) }),
|
|
48
|
-
/* @__PURE__ */ jsx(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ jsx(DataList.Root, { children: infoList.map(
|
|
49
|
-
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
50
|
-
) }) })
|
|
51
|
-
] });
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export {
|
|
55
|
-
SessionUserInfoDetail
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=chunk-3TWYP5FO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app/platform/userInfos/session-user-info-detail.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, DataList, Flex, Grid, Heading, Separator } from '../../../atoms';\nimport type { Customer, Session } from './utils';\nimport { infoList, renderDataListItem, sessionList } from './utils';\n\nexport interface SessionUserInfoDetailProps {\n customer: Customer;\n session: Session;\n onClickCopy: (value: string) => void;\n}\n\nfunction SectionWrapper({\n title,\n children,\n}: {\n title: string;\n children: React.ReactElement;\n}): JSX.Element {\n return (\n <Box>\n <Grid align=\"center\" columns=\"auto 1fr\" gap=\"3\" mb=\"5\">\n <Heading variant=\"heading5\">{title}</Heading>\n\n <Separator size=\"4\" />\n </Grid>\n {children}\n </Box>\n );\n}\n\nexport function SessionUserInfoDetail({\n customer,\n session,\n onClickCopy,\n}: SessionUserInfoDetailProps): React.ReactElement {\n return (\n <Flex direction=\"column\" gap=\"6\">\n <SectionWrapper title=\"세션 정보\">\n <DataList.Root>\n {sessionList.map((info) =>\n renderDataListItem({ info, data: session, onClickCopy })\n )}\n </DataList.Root>\n </SectionWrapper>\n\n <SectionWrapper title=\"회원 정보\">\n <DataList.Root>\n {infoList.map((info) =>\n renderDataListItem({ info, data: customer, onClickCopy })\n )}\n </DataList.Root>\n </SectionWrapper>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAoBM,SACE,KADF;AATN,SAAS,eAAe;AAAA,EACtB;AAAA,EACA;AACF,GAGgB;AACd,SACE,qBAAC,OACC;AAAA,yBAAC,QAAK,OAAM,UAAS,SAAQ,YAAW,KAAI,KAAI,IAAG,KACjD;AAAA,0BAAC,WAAQ,SAAQ,YAAY,iBAAM;AAAA,MAEnC,oBAAC,aAAU,MAAK,KAAI;AAAA,OACtB;AAAA,IACC;AAAA,KACH;AAEJ;AAEO,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AACF,GAAmD;AACjD,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,kBAAe,OAAM,6BACpB,8BAAC,SAAS,MAAT,EACE,sBAAY;AAAA,MAAI,CAAC,SAChB,mBAAmB,EAAE,MAAM,MAAM,SAAS,YAAY,CAAC;AAAA,IACzD,GACF,GACF;AAAA,IAEA,oBAAC,kBAAe,OAAM,6BACpB,8BAAC,SAAS,MAAT,EACE,mBAAS;AAAA,MAAI,CAAC,SACb,mBAAmB,EAAE,MAAM,MAAM,UAAU,YAAY,CAAC;AAAA,IAC1D,GACF,GACF;AAAA,KACF;AAEJ;","names":[]}
|
package/dist/chunk-3WEXXGSP.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Link
|
|
3
|
-
} from "./chunk-SIM6HKVI.js";
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-O3DNDMV3.js";
|
|
7
|
-
import {
|
|
8
|
-
Flex
|
|
9
|
-
} from "./chunk-25HMMI7R.js";
|
|
10
|
-
import {
|
|
11
|
-
Typo
|
|
12
|
-
} from "./chunk-52MVZ6AN.js";
|
|
13
|
-
|
|
14
|
-
// src/molecules/download-card.tsx
|
|
15
|
-
import { DownloadIcon } from "@radix-ui/react-icons";
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
function DownloadCard({
|
|
18
|
-
fileName,
|
|
19
|
-
url,
|
|
20
|
-
createdAt,
|
|
21
|
-
size
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ jsx(Link, { download: fileName, href: url, children: /* @__PURE__ */ jsx(
|
|
24
|
-
IconButton,
|
|
25
|
-
{
|
|
26
|
-
mt: "3",
|
|
27
|
-
size: "4",
|
|
28
|
-
style: { width: "100%", height: 56 },
|
|
29
|
-
variant: "soft",
|
|
30
|
-
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
31
|
-
/* @__PURE__ */ jsx(Typo, { color: "gray", children: /* @__PURE__ */ jsx(DownloadIcon, { height: 20, width: 20 }) }),
|
|
32
|
-
/* @__PURE__ */ jsxs(Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
33
|
-
/* @__PURE__ */ jsx(
|
|
34
|
-
Typo,
|
|
35
|
-
{
|
|
36
|
-
style: {
|
|
37
|
-
color: "var(--gray-12)"
|
|
38
|
-
},
|
|
39
|
-
variant: "caption",
|
|
40
|
-
children: fileName
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ jsx(Typo, { color: "gray", variant: "caption", children: size })
|
|
44
|
-
] })
|
|
45
|
-
] })
|
|
46
|
-
}
|
|
47
|
-
) }, (createdAt == null ? void 0 : createdAt.valueOf()) + fileName);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
DownloadCard
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=chunk-3WEXXGSP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/download-card.tsx"],"sourcesContent":["import React from 'react';\nimport { DownloadIcon } from '@radix-ui/react-icons';\nimport { Link } from '@/atoms/link';\nimport { Typo } from '@/atoms/typo';\nimport { Flex } from '@/atoms/flex';\nimport { IconButton } from '@/atoms/icon-button';\n\nexport interface Attachment {\n fileName: string;\n url: string;\n createdAt?: Date;\n size?: string;\n}\n\nexport function DownloadCard({\n fileName,\n url,\n createdAt,\n size,\n}: Attachment): React.ReactElement {\n return (\n <Link download={fileName} href={url} key={createdAt?.valueOf() + fileName}>\n <IconButton\n mt=\"3\"\n size=\"4\"\n style={{ width: '100%', height: 56 }}\n variant=\"soft\"\n >\n <Flex align=\"center\" gap=\"3\" pl=\"4\" width=\"100%\">\n <Typo color=\"gray\">\n <DownloadIcon height={20} width={20} />\n </Typo>\n <Flex align=\"start\" direction=\"column\" gap=\"1\">\n <Typo\n style={{\n color: 'var(--gray-12)',\n }}\n variant=\"caption\"\n >\n {fileName}\n </Typo>\n <Typo color=\"gray\" variant=\"caption\">\n {size}\n </Typo>\n </Flex>\n </Flex>\n </IconButton>\n </Link>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AACA,SAAS,oBAAoB;AA6BjB,cAEF,YAFE;AAhBL,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAmC;AACjC,SACE,oBAAC,QAAK,UAAU,UAAU,MAAM,KAC9B;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,OAAO,EAAE,OAAO,QAAQ,QAAQ,GAAG;AAAA,MACnC,SAAQ;AAAA,MAER,+BAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,OAAM,QACxC;AAAA,4BAAC,QAAK,OAAM,QACV,8BAAC,gBAAa,QAAQ,IAAI,OAAO,IAAI,GACvC;AAAA,QACA,qBAAC,QAAK,OAAM,SAAQ,WAAU,UAAS,KAAI,KACzC;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,gBACL,OAAO;AAAA,cACT;AAAA,cACA,SAAQ;AAAA,cAEP;AAAA;AAAA,UACH;AAAA,UACA,oBAAC,QAAK,OAAM,QAAO,SAAQ,WACxB,gBACH;AAAA,WACF;AAAA,SACF;AAAA;AAAA,EACF,MAzBwC,uCAAW,aAAY,QA0BjE;AAEJ;","names":[]}
|
package/dist/chunk-3X6SIK3W.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading
|
|
3
|
-
} from "./chunk-HJB3AASV.js";
|
|
4
|
-
import {
|
|
5
|
-
usePortalContainer
|
|
6
|
-
} from "./chunk-TD45ZF7D.js";
|
|
7
|
-
import {
|
|
8
|
-
IconButton
|
|
9
|
-
} from "./chunk-O3DNDMV3.js";
|
|
10
|
-
import {
|
|
11
|
-
__objRest,
|
|
12
|
-
__spreadProps,
|
|
13
|
-
__spreadValues
|
|
14
|
-
} from "./chunk-N552FDTV.js";
|
|
15
|
-
|
|
16
|
-
// src/atoms/dialog.tsx
|
|
17
|
-
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
18
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
19
|
-
import { Flex, Theme } from "@radix-ui/themes";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
var preventDefault = (e) => {
|
|
22
|
-
e.preventDefault();
|
|
23
|
-
};
|
|
24
|
-
function Content2(props) {
|
|
25
|
-
const _a = props, {
|
|
26
|
-
children,
|
|
27
|
-
style = {},
|
|
28
|
-
width,
|
|
29
|
-
maxWidth,
|
|
30
|
-
minWidth,
|
|
31
|
-
maxHeight,
|
|
32
|
-
height,
|
|
33
|
-
minHeight,
|
|
34
|
-
title,
|
|
35
|
-
buttons,
|
|
36
|
-
hideCloseButton,
|
|
37
|
-
className
|
|
38
|
-
} = _a, rest = __objRest(_a, [
|
|
39
|
-
"children",
|
|
40
|
-
"style",
|
|
41
|
-
"width",
|
|
42
|
-
"maxWidth",
|
|
43
|
-
"minWidth",
|
|
44
|
-
"maxHeight",
|
|
45
|
-
"height",
|
|
46
|
-
"minHeight",
|
|
47
|
-
"title",
|
|
48
|
-
"buttons",
|
|
49
|
-
"hideCloseButton",
|
|
50
|
-
"className"
|
|
51
|
-
]);
|
|
52
|
-
const { dialogContainerRef } = usePortalContainer();
|
|
53
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ jsx(Theme, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ jsxs(
|
|
54
|
-
RadixDialog.Content,
|
|
55
|
-
__spreadProps(__spreadValues({
|
|
56
|
-
className: `DialogContent ${className || ""}`,
|
|
57
|
-
onPointerDownOutside: preventDefault,
|
|
58
|
-
style: __spreadValues({
|
|
59
|
-
width,
|
|
60
|
-
maxWidth,
|
|
61
|
-
minWidth,
|
|
62
|
-
maxHeight,
|
|
63
|
-
height,
|
|
64
|
-
minHeight
|
|
65
|
-
}, style)
|
|
66
|
-
}, rest), {
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "2", justify: "between", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ jsx(Heading, { align: "center", mb: "2", variant: "heading3", children: title }) : title }),
|
|
70
|
-
!hideCloseButton && /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) }) })
|
|
71
|
-
] }),
|
|
72
|
-
children,
|
|
73
|
-
buttons ? /* @__PURE__ */ jsx(Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
) }) }) });
|
|
77
|
-
}
|
|
78
|
-
function Close2(_a) {
|
|
79
|
-
var _b = _a, {
|
|
80
|
-
children
|
|
81
|
-
} = _b, rest = __objRest(_b, [
|
|
82
|
-
"children"
|
|
83
|
-
]);
|
|
84
|
-
return /* @__PURE__ */ jsx(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
85
|
-
}
|
|
86
|
-
function Trigger2(_a) {
|
|
87
|
-
var _b = _a, {
|
|
88
|
-
children
|
|
89
|
-
} = _b, rest = __objRest(_b, [
|
|
90
|
-
"children"
|
|
91
|
-
]);
|
|
92
|
-
return /* @__PURE__ */ jsx(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
93
|
-
}
|
|
94
|
-
var Dialog = {
|
|
95
|
-
Root: RadixDialog.Root,
|
|
96
|
-
Trigger: Trigger2,
|
|
97
|
-
Content: Content2,
|
|
98
|
-
Close: Close2,
|
|
99
|
-
Description: RadixDialog.Description,
|
|
100
|
-
Title: RadixDialog.Title
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
Dialog
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=chunk-3X6SIK3W.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: string;\n hideCloseButton?: boolean;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n hideCloseButton,\n className,\n ...rest\n } = props;\n const { dialogContainerRef } = usePortalContainer();\n\n return (\n <RadixDialog.Portal container={dialogContainerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className={`DialogContent ${className || ''}`}\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading align=\"center\" mb=\"2\" variant=\"heading3\">\n {title}\n </Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n {!hideCloseButton && (\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n )}\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY,iBAAiB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,MAAM,aAAa;AA2DhB,SAGM,KAHN;AA1CZ,IAAM,iBAAyE,CAC7E,MACG;AACH,IAAE,eAAe;AACnB;AAEA,SAASA,SAAQ,OAAyC;AACxD,QAcI,YAbF;AAAA;AAAA,IACA,QAAQ,CAAC;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAtCJ,IAwCM,IADC,iBACD,IADC;AAAA,IAZH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGF,QAAM,EAAE,mBAAmB,IAAI,mBAAmB;AAElD,SACE,oBAAa,oBAAZ,EAAmB,WAAW,mBAAmB,SAChD,8BAAC,SAAM,SAAO,MACZ,8BAAa,qBAAZ,EAAoB,WAAU,iBAC7B;AAAA,IAAa;AAAA,IAAZ;AAAA,MACC,WAAW,iBAAiB,aAAa,EAAE;AAAA,MAC3C,sBAAsB;AAAA,MACtB,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,SACG;AAAA,OAED,OAZL;AAAA,MAcC;AAAA,6BAAC,QAAK,KAAI,KAAI,SAAQ,WACpB;AAAA,8BAAa,mBAAZ,EAAkB,SAAO,MACvB,iBAAO,UAAU,WAChB,oBAAC,WAAQ,OAAM,UAAS,IAAG,KAAI,SAAQ,YACpC,iBACH,IAEA,OAEJ;AAAA,UACC,CAAC,mBACA,oBAAa,mBAAZ,EAAkB,SAAO,MAAC,WAAU,eACnC,8BAAC,cAAW,OAAM,QAAO,SAAQ,SAC/B,8BAAC,cAAW,GACd,GACF;AAAA,WAEJ;AAAA,QACC;AAAA,QACA,UACC,oBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAG,KAC5B,mBACH,IACE;AAAA;AAAA;AAAA,EACN,GACF,GACF,GACF;AAEJ;AAEA,SAASC,OAAM,IAGsC;AAHtC,eACb;AAAA;AAAA,EA7FF,IA4Fe,IAEV,iBAFU,IAEV;AAAA,IADH;AAAA;AAGA,SACE,oBAAa,mBAAZ,+BAAkB,SAAO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EAxGF,IAuGiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,oBAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["Content","Close","Trigger"]}
|
package/dist/chunk-3XMCL5X4.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading
|
|
3
|
-
} from "./chunk-HJB3AASV.js";
|
|
4
|
-
import {
|
|
5
|
-
usePortalContainer
|
|
6
|
-
} from "./chunk-TD45ZF7D.js";
|
|
7
|
-
import {
|
|
8
|
-
IconButton
|
|
9
|
-
} from "./chunk-O3DNDMV3.js";
|
|
10
|
-
import {
|
|
11
|
-
__objRest,
|
|
12
|
-
__spreadProps,
|
|
13
|
-
__spreadValues
|
|
14
|
-
} from "./chunk-N552FDTV.js";
|
|
15
|
-
|
|
16
|
-
// src/atoms/dialog.tsx
|
|
17
|
-
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
18
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
19
|
-
import { Flex, Theme } from "@radix-ui/themes";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
var preventDefault = (e) => {
|
|
22
|
-
e.preventDefault();
|
|
23
|
-
};
|
|
24
|
-
function Content2(props) {
|
|
25
|
-
const _a = props, {
|
|
26
|
-
children,
|
|
27
|
-
style = {},
|
|
28
|
-
width,
|
|
29
|
-
maxWidth,
|
|
30
|
-
minWidth,
|
|
31
|
-
maxHeight,
|
|
32
|
-
height,
|
|
33
|
-
minHeight,
|
|
34
|
-
title,
|
|
35
|
-
buttons,
|
|
36
|
-
hideCloseButton,
|
|
37
|
-
className
|
|
38
|
-
} = _a, rest = __objRest(_a, [
|
|
39
|
-
"children",
|
|
40
|
-
"style",
|
|
41
|
-
"width",
|
|
42
|
-
"maxWidth",
|
|
43
|
-
"minWidth",
|
|
44
|
-
"maxHeight",
|
|
45
|
-
"height",
|
|
46
|
-
"minHeight",
|
|
47
|
-
"title",
|
|
48
|
-
"buttons",
|
|
49
|
-
"hideCloseButton",
|
|
50
|
-
"className"
|
|
51
|
-
]);
|
|
52
|
-
const { dialogContainerRef } = usePortalContainer();
|
|
53
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ jsx(Theme, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ jsxs(
|
|
54
|
-
RadixDialog.Content,
|
|
55
|
-
__spreadProps(__spreadValues({
|
|
56
|
-
className: `DialogContent ${className || ""}`,
|
|
57
|
-
onPointerDownOutside: preventDefault,
|
|
58
|
-
style: __spreadValues({
|
|
59
|
-
width,
|
|
60
|
-
maxWidth,
|
|
61
|
-
minWidth,
|
|
62
|
-
maxHeight,
|
|
63
|
-
height,
|
|
64
|
-
minHeight
|
|
65
|
-
}, style)
|
|
66
|
-
}, rest), {
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "2", justify: "between", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ jsx(Heading, { align: "center", mb: "2", variant: "heading3", children: title }) : title }),
|
|
70
|
-
!hideCloseButton && /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) }) })
|
|
71
|
-
] }),
|
|
72
|
-
children,
|
|
73
|
-
buttons ? /* @__PURE__ */ jsx(Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
) }) }) });
|
|
77
|
-
}
|
|
78
|
-
function Close2(_a) {
|
|
79
|
-
var _b = _a, {
|
|
80
|
-
children
|
|
81
|
-
} = _b, rest = __objRest(_b, [
|
|
82
|
-
"children"
|
|
83
|
-
]);
|
|
84
|
-
return /* @__PURE__ */ jsx(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
85
|
-
}
|
|
86
|
-
function Trigger2(_a) {
|
|
87
|
-
var _b = _a, {
|
|
88
|
-
children
|
|
89
|
-
} = _b, rest = __objRest(_b, [
|
|
90
|
-
"children"
|
|
91
|
-
]);
|
|
92
|
-
return /* @__PURE__ */ jsx(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
93
|
-
}
|
|
94
|
-
var Dialog = {
|
|
95
|
-
Root: RadixDialog.Root,
|
|
96
|
-
Trigger: Trigger2,
|
|
97
|
-
Content: Content2,
|
|
98
|
-
Close: Close2,
|
|
99
|
-
Description: RadixDialog.Description,
|
|
100
|
-
Title: RadixDialog.Title
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
Dialog
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=chunk-3XMCL5X4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { ToastContainer } from './toast';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\nimport { usePortalContainer } from '@/theme/portal-provider';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: string;\n hideCloseButton?: boolean;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n hideCloseButton,\n className,\n ...rest\n } = props;\n const { dialogContainerRef } = usePortalContainer();\n\n return (\n <RadixDialog.Portal container={dialogContainerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className={`DialogContent ${className || ''}`}\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading align=\"center\" mb=\"2\" variant=\"heading3\">\n {title}\n </Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n {!hideCloseButton && (\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n )}\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY,iBAAiB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,MAAM,aAAa;AA4DhB,SAGM,KAHN;AA1CZ,IAAM,iBAAyE,CAC7E,MACG;AACH,IAAE,eAAe;AACnB;AAEA,SAASA,SAAQ,OAAyC;AACxD,QAcI,YAbF;AAAA;AAAA,IACA,QAAQ,CAAC;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAvCJ,IAyCM,IADC,iBACD,IADC;AAAA,IAZH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGF,QAAM,EAAE,mBAAmB,IAAI,mBAAmB;AAElD,SACE,oBAAa,oBAAZ,EAAmB,WAAW,mBAAmB,SAChD,8BAAC,SAAM,SAAO,MACZ,8BAAa,qBAAZ,EAAoB,WAAU,iBAC7B;AAAA,IAAa;AAAA,IAAZ;AAAA,MACC,WAAW,iBAAiB,aAAa,EAAE;A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
|
|
4
|
-
import {
|
|
5
|
-
IconButton
|
|
6
|
-
} from "./chunk-O3DNDMV3.js";
|
|
7
|
-
import {
|
|
8
|
-
Heading
|
|
9
|
-
} from "./chunk-HJB3AASV.js";
|
|
10
|
-
import {
|
|
11
|
-
__objRest,
|
|
12
|
-
__spreadProps,
|
|
13
|
-
__spreadValues
|
|
14
|
-
} from "./chunk-N552FDTV.js";
|
|
15
|
-
|
|
16
|
-
// src/atoms/dialog.tsx
|
|
17
|
-
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
18
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
19
|
-
import { Flex, Theme } from "@radix-ui/themes";
|
|
20
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
-
var preventDefault = (e) => {
|
|
22
|
-
e.preventDefault();
|
|
23
|
-
};
|
|
24
|
-
function Content2(props) {
|
|
25
|
-
const _a = props, {
|
|
26
|
-
children,
|
|
27
|
-
style = {},
|
|
28
|
-
width,
|
|
29
|
-
maxWidth,
|
|
30
|
-
minWidth,
|
|
31
|
-
maxHeight,
|
|
32
|
-
height,
|
|
33
|
-
minHeight,
|
|
34
|
-
title,
|
|
35
|
-
buttons,
|
|
36
|
-
hideCloseButton,
|
|
37
|
-
className
|
|
38
|
-
} = _a, rest = __objRest(_a, [
|
|
39
|
-
"children",
|
|
40
|
-
"style",
|
|
41
|
-
"width",
|
|
42
|
-
"maxWidth",
|
|
43
|
-
"minWidth",
|
|
44
|
-
"maxHeight",
|
|
45
|
-
"height",
|
|
46
|
-
"minHeight",
|
|
47
|
-
"title",
|
|
48
|
-
"buttons",
|
|
49
|
-
"hideCloseButton",
|
|
50
|
-
"className"
|
|
51
|
-
]);
|
|
52
|
-
const { dialogContainerRef } = usePortalContainer();
|
|
53
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ jsx(Theme, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ jsxs(
|
|
54
|
-
RadixDialog.Content,
|
|
55
|
-
__spreadProps(__spreadValues({
|
|
56
|
-
className: `DialogContent ${className || ""}`,
|
|
57
|
-
onPointerDownOutside: preventDefault,
|
|
58
|
-
style: __spreadValues({
|
|
59
|
-
width,
|
|
60
|
-
maxWidth,
|
|
61
|
-
minWidth,
|
|
62
|
-
maxHeight,
|
|
63
|
-
height,
|
|
64
|
-
minHeight
|
|
65
|
-
}, style)
|
|
66
|
-
}, rest), {
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
70
|
-
!hideCloseButton && /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) }) })
|
|
71
|
-
] }),
|
|
72
|
-
children,
|
|
73
|
-
buttons ? /* @__PURE__ */ jsx(Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
) }) }) });
|
|
77
|
-
}
|
|
78
|
-
function Close2(_a) {
|
|
79
|
-
var _b = _a, {
|
|
80
|
-
children
|
|
81
|
-
} = _b, rest = __objRest(_b, [
|
|
82
|
-
"children"
|
|
83
|
-
]);
|
|
84
|
-
return /* @__PURE__ */ jsx(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
85
|
-
}
|
|
86
|
-
function Trigger2(_a) {
|
|
87
|
-
var _b = _a, {
|
|
88
|
-
children
|
|
89
|
-
} = _b, rest = __objRest(_b, [
|
|
90
|
-
"children"
|
|
91
|
-
]);
|
|
92
|
-
return /* @__PURE__ */ jsx(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
93
|
-
}
|
|
94
|
-
var Dialog = {
|
|
95
|
-
Root: RadixDialog.Root,
|
|
96
|
-
Trigger: Trigger2,
|
|
97
|
-
Content: Content2,
|
|
98
|
-
Close: Close2,
|
|
99
|
-
Description: RadixDialog.Description,
|
|
100
|
-
Title: RadixDialog.Title
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export {
|
|
104
|
-
Dialog
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=chunk-3XQUC7TK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: string;\n hideCloseButton?: boolean;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n hideCloseButton,\n className,\n ...rest\n } = props;\n const { dialogContainerRef } = usePortalContainer();\n\n return (\n <RadixDialog.Portal container={dialogContainerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className={`DialogContent ${className || ''}`}\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\" width=\"100%\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading mb=\"2\" variant=\"heading3\">\n {title}\n </Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n {!hideCloseButton && (\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n )}\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\" width=\"100%\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY,iBAAiB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,MAAM,aAAa;AA2DhB,SAGM,KAHN;AA1CZ,IAAM,iBAAyE,CAC7E,MACG;AACH,IAAE,eAAe;AACnB;AAEA,SAASA,SAAQ,OAAyC;AACxD,QAcI,YAbF;AAAA;AAAA,IACA,QAAQ,CAAC;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAtCJ,IAwCM,IADC,iBACD,IADC;AAAA,IAZH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA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O,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["Content","Close","Trigger"]}
|
package/dist/chunk-42MNZ5HL.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OnOfflineRadioCard
|
|
3
|
-
} from "./chunk-CXPOD6VX.js";
|
|
4
|
-
import {
|
|
5
|
-
Dialog
|
|
6
|
-
} from "./chunk-2GVQIRVC.js";
|
|
7
|
-
import {
|
|
8
|
-
Flex
|
|
9
|
-
} from "./chunk-25HMMI7R.js";
|
|
10
|
-
import {
|
|
11
|
-
Typo
|
|
12
|
-
} from "./chunk-52MVZ6AN.js";
|
|
13
|
-
import {
|
|
14
|
-
Button
|
|
15
|
-
} from "./chunk-Q5AFRGVP.js";
|
|
16
|
-
import {
|
|
17
|
-
Box
|
|
18
|
-
} from "./chunk-4Y5BEXVN.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-42MNZ5HL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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.ReactElement {\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,OACoB;AACpB,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":[]}
|
package/dist/chunk-43TEFEIM.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Card
|
|
3
|
-
} from "./chunk-2ZQK7NTN.js";
|
|
4
|
-
import {
|
|
5
|
-
Badge
|
|
6
|
-
} from "./chunk-EWD4AO5N.js";
|
|
7
|
-
import {
|
|
8
|
-
Typo
|
|
9
|
-
} from "./chunk-52MVZ6AN.js";
|
|
10
|
-
import {
|
|
11
|
-
Heading
|
|
12
|
-
} from "./chunk-HJB3AASV.js";
|
|
13
|
-
import {
|
|
14
|
-
Box
|
|
15
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
16
|
-
import {
|
|
17
|
-
Flex
|
|
18
|
-
} from "./chunk-25HMMI7R.js";
|
|
19
|
-
|
|
20
|
-
// src/app/platform/session-review-simple-read.tsx
|
|
21
|
-
import { useMemo } from "react";
|
|
22
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
-
function SubTitleWrapper({
|
|
24
|
-
children,
|
|
25
|
-
title
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
29
|
-
/* @__PURE__ */ jsx(Box, { children })
|
|
30
|
-
] });
|
|
31
|
-
}
|
|
32
|
-
function SessionReviewSimpleRead({
|
|
33
|
-
helpfulness,
|
|
34
|
-
review
|
|
35
|
-
}) {
|
|
36
|
-
const helpfulnessMeta = useMemo(() => {
|
|
37
|
-
if (helpfulness) {
|
|
38
|
-
return {
|
|
39
|
-
text: "\uB124",
|
|
40
|
-
color: "success"
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
if (typeof helpfulness === "undefined") {
|
|
44
|
-
return {
|
|
45
|
-
text: "-",
|
|
46
|
-
color: "neutral"
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
text: "\uC544\uB2C8\uC694",
|
|
51
|
-
color: "error"
|
|
52
|
-
};
|
|
53
|
-
}, [helpfulness]);
|
|
54
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
55
|
-
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
56
|
-
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
57
|
-
] }) });
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
SessionReviewSimpleRead
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=chunk-43TEFEIM.js.map
|