@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
package/dist/chunk-F43CRBEH.js
DELETED
|
@@ -1,357 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Popover
|
|
3
|
-
} from "./chunk-5AVBYDPB.js";
|
|
4
|
-
import {
|
|
5
|
-
ScrollArea
|
|
6
|
-
} from "./chunk-MUPK4L3U.js";
|
|
7
|
-
import {
|
|
8
|
-
Grid
|
|
9
|
-
} from "./chunk-EGEQY3KT.js";
|
|
10
|
-
import {
|
|
11
|
-
AutoSizingInput
|
|
12
|
-
} from "./chunk-UARPROHP.js";
|
|
13
|
-
import {
|
|
14
|
-
Badge
|
|
15
|
-
} from "./chunk-EWD4AO5N.js";
|
|
16
|
-
import {
|
|
17
|
-
Typo
|
|
18
|
-
} from "./chunk-52MVZ6AN.js";
|
|
19
|
-
import {
|
|
20
|
-
Flex
|
|
21
|
-
} from "./chunk-25HMMI7R.js";
|
|
22
|
-
import {
|
|
23
|
-
Button
|
|
24
|
-
} from "./chunk-Q5AFRGVP.js";
|
|
25
|
-
import {
|
|
26
|
-
CheckIcon
|
|
27
|
-
} from "./chunk-HLFG5ZTU.js";
|
|
28
|
-
|
|
29
|
-
// src/molecules/tag-selector.tsx
|
|
30
|
-
import {
|
|
31
|
-
useCallback,
|
|
32
|
-
useEffect,
|
|
33
|
-
useMemo,
|
|
34
|
-
useRef,
|
|
35
|
-
useState
|
|
36
|
-
} from "react";
|
|
37
|
-
import {
|
|
38
|
-
ChevronRightIcon,
|
|
39
|
-
Cross1Icon,
|
|
40
|
-
MagnifyingGlassIcon
|
|
41
|
-
} from "@radix-ui/react-icons";
|
|
42
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
43
|
-
var OPTION_HEIGHT = 32;
|
|
44
|
-
var DefaultDropdownContainer = (props) => {
|
|
45
|
-
return props.children;
|
|
46
|
-
};
|
|
47
|
-
function TagSelector(props) {
|
|
48
|
-
const {
|
|
49
|
-
options = [],
|
|
50
|
-
tagRender,
|
|
51
|
-
placeholder,
|
|
52
|
-
maxCount = 0,
|
|
53
|
-
DropdownContainer = DefaultDropdownContainer,
|
|
54
|
-
size = "medium",
|
|
55
|
-
readOnly,
|
|
56
|
-
error,
|
|
57
|
-
open: propsOpen,
|
|
58
|
-
dropdownItemRender
|
|
59
|
-
} = props;
|
|
60
|
-
const [_selected, _setSelected] = useState(props.selected || []);
|
|
61
|
-
const selected = props.selected || _selected;
|
|
62
|
-
const setSelected = props.onChange || _setSelected;
|
|
63
|
-
const [value, setValue] = useState("");
|
|
64
|
-
const [focusIndex, setFocusIndex] = useState(null);
|
|
65
|
-
const [open, setOpen] = useState(false);
|
|
66
|
-
const [focus, setFocus] = useState(false);
|
|
67
|
-
const fieldRef = useRef(null);
|
|
68
|
-
const scrollRef = useRef(null);
|
|
69
|
-
const closeRef = useRef();
|
|
70
|
-
const onFocus = useCallback(() => {
|
|
71
|
-
clearTimeout(closeRef.current);
|
|
72
|
-
setFocus(true);
|
|
73
|
-
setOpen(true);
|
|
74
|
-
}, []);
|
|
75
|
-
const onBlur = useCallback(() => {
|
|
76
|
-
closeRef.current = setTimeout(() => {
|
|
77
|
-
setFocus(false);
|
|
78
|
-
setOpen(false);
|
|
79
|
-
setTimeout(() => {
|
|
80
|
-
setValue("");
|
|
81
|
-
}, 100);
|
|
82
|
-
}, 300);
|
|
83
|
-
}, []);
|
|
84
|
-
const onChangeValue = useCallback(
|
|
85
|
-
(e) => {
|
|
86
|
-
setValue(e.target.value);
|
|
87
|
-
},
|
|
88
|
-
[]
|
|
89
|
-
);
|
|
90
|
-
const filteredOptions = useMemo(() => {
|
|
91
|
-
return options.filter((option) => {
|
|
92
|
-
return option.name.includes(value);
|
|
93
|
-
});
|
|
94
|
-
}, [options, value]);
|
|
95
|
-
const selectedItem = useMemo(() => {
|
|
96
|
-
const result = [];
|
|
97
|
-
selected.forEach((id) => {
|
|
98
|
-
const maybeItem = options.find((option) => option.id === id);
|
|
99
|
-
if (maybeItem)
|
|
100
|
-
result.push(maybeItem);
|
|
101
|
-
});
|
|
102
|
-
return result;
|
|
103
|
-
}, [options, selected]);
|
|
104
|
-
const onDelete = useCallback(
|
|
105
|
-
(id) => {
|
|
106
|
-
setSelected(selected.filter((el) => el !== id));
|
|
107
|
-
},
|
|
108
|
-
[selected, setSelected]
|
|
109
|
-
);
|
|
110
|
-
const onSelect = useCallback(
|
|
111
|
-
(id) => {
|
|
112
|
-
if (maxCount && selected.length + 1 > maxCount)
|
|
113
|
-
return;
|
|
114
|
-
setSelected([...selected, id]);
|
|
115
|
-
},
|
|
116
|
-
[maxCount, selected, setSelected]
|
|
117
|
-
);
|
|
118
|
-
const toggleItem = useCallback(
|
|
119
|
-
(id) => {
|
|
120
|
-
if (selected.includes(id)) {
|
|
121
|
-
onDelete(id);
|
|
122
|
-
} else {
|
|
123
|
-
onSelect(id);
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
[onDelete, onSelect, selected]
|
|
127
|
-
);
|
|
128
|
-
const setScroll = useCallback((index) => {
|
|
129
|
-
if (scrollRef.current) {
|
|
130
|
-
const scrollTop = scrollRef.current.scrollTop;
|
|
131
|
-
const clientHeight = scrollRef.current.clientHeight;
|
|
132
|
-
const focusTop = index * OPTION_HEIGHT;
|
|
133
|
-
if (focusTop < scrollTop) {
|
|
134
|
-
scrollRef.current.scrollTop = focusTop;
|
|
135
|
-
} else if (focusTop + OPTION_HEIGHT > scrollTop + clientHeight) {
|
|
136
|
-
scrollRef.current.scrollTop = focusTop + OPTION_HEIGHT - clientHeight;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}, []);
|
|
140
|
-
const handleKeyDown = useCallback(
|
|
141
|
-
(e) => {
|
|
142
|
-
var _a;
|
|
143
|
-
const key = e.key;
|
|
144
|
-
switch (key) {
|
|
145
|
-
case "ArrowDown": {
|
|
146
|
-
e.preventDefault();
|
|
147
|
-
let newFocus = 0;
|
|
148
|
-
if (typeof focusIndex === "number") {
|
|
149
|
-
newFocus = focusIndex + 1 >= options.length ? 0 : focusIndex + 1;
|
|
150
|
-
}
|
|
151
|
-
setFocusIndex(newFocus);
|
|
152
|
-
setScroll(newFocus);
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
case "ArrowUp": {
|
|
156
|
-
e.preventDefault();
|
|
157
|
-
let newFocus = 0;
|
|
158
|
-
if (typeof focusIndex === "number") {
|
|
159
|
-
newFocus = focusIndex - 1 < 0 ? options.length - 1 : focusIndex - 1;
|
|
160
|
-
}
|
|
161
|
-
setFocusIndex(newFocus);
|
|
162
|
-
setScroll(newFocus);
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
case "Enter":
|
|
166
|
-
setValue("");
|
|
167
|
-
if (focusIndex !== null) {
|
|
168
|
-
toggleItem((_a = filteredOptions[focusIndex]) == null ? void 0 : _a.id);
|
|
169
|
-
}
|
|
170
|
-
break;
|
|
171
|
-
case "Backspace":
|
|
172
|
-
if (value.length === 0) {
|
|
173
|
-
setSelected(selected.slice(0, -1));
|
|
174
|
-
}
|
|
175
|
-
break;
|
|
176
|
-
case "Escape":
|
|
177
|
-
setOpen(false);
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
[
|
|
182
|
-
focusIndex,
|
|
183
|
-
value.length,
|
|
184
|
-
setScroll,
|
|
185
|
-
options.length,
|
|
186
|
-
toggleItem,
|
|
187
|
-
filteredOptions,
|
|
188
|
-
setSelected,
|
|
189
|
-
selected
|
|
190
|
-
]
|
|
191
|
-
);
|
|
192
|
-
const placeholderVisible = useMemo(() => {
|
|
193
|
-
if (selectedItem.length)
|
|
194
|
-
return false;
|
|
195
|
-
if (value)
|
|
196
|
-
return false;
|
|
197
|
-
if (focus)
|
|
198
|
-
return false;
|
|
199
|
-
return true;
|
|
200
|
-
}, [focus, selectedItem.length, value]);
|
|
201
|
-
useEffect(() => {
|
|
202
|
-
setFocusIndex(null);
|
|
203
|
-
}, [open]);
|
|
204
|
-
useEffect(() => {
|
|
205
|
-
setFocusIndex(0);
|
|
206
|
-
}, [filteredOptions]);
|
|
207
|
-
const badgeSize = useMemo(() => {
|
|
208
|
-
switch (size) {
|
|
209
|
-
case "large":
|
|
210
|
-
return "large";
|
|
211
|
-
case "medium":
|
|
212
|
-
case "small":
|
|
213
|
-
default:
|
|
214
|
-
return "small";
|
|
215
|
-
}
|
|
216
|
-
}, [size]);
|
|
217
|
-
const placeholderVariant = useMemo(() => {
|
|
218
|
-
switch (size) {
|
|
219
|
-
case "large":
|
|
220
|
-
return "subtitle";
|
|
221
|
-
case "medium":
|
|
222
|
-
default:
|
|
223
|
-
return "body";
|
|
224
|
-
}
|
|
225
|
-
}, [size]);
|
|
226
|
-
const focusClassName = focus ? " focused" : "";
|
|
227
|
-
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
228
|
-
const errorClassName = error ? " error" : "";
|
|
229
|
-
const readonlyContent = /* @__PURE__ */ jsx(Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
230
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ jsx(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
231
|
-
}) });
|
|
232
|
-
const editContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
233
|
-
/* @__PURE__ */ jsxs(
|
|
234
|
-
Flex,
|
|
235
|
-
{
|
|
236
|
-
align: "center",
|
|
237
|
-
gap: "1",
|
|
238
|
-
maxWidth: "100%",
|
|
239
|
-
overflow: "hidden",
|
|
240
|
-
wrap: "wrap",
|
|
241
|
-
children: [
|
|
242
|
-
selectedItem.map((item) => {
|
|
243
|
-
return tagRender ? tagRender(item, () => {
|
|
244
|
-
onDelete(item.id);
|
|
245
|
-
}) : /* @__PURE__ */ jsxs(Badge, { size: badgeSize, children: [
|
|
246
|
-
item.name,
|
|
247
|
-
/* @__PURE__ */ jsx(
|
|
248
|
-
Button,
|
|
249
|
-
{
|
|
250
|
-
onClick: () => {
|
|
251
|
-
onDelete(item.id);
|
|
252
|
-
},
|
|
253
|
-
variant: "transparent",
|
|
254
|
-
children: /* @__PURE__ */ jsx(Cross1Icon, {})
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
] }, item.id);
|
|
258
|
-
}),
|
|
259
|
-
placeholderVisible ? /* @__PURE__ */ jsx(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
260
|
-
/* @__PURE__ */ jsx(
|
|
261
|
-
AutoSizingInput,
|
|
262
|
-
{
|
|
263
|
-
onBlur,
|
|
264
|
-
onChange: onChangeValue,
|
|
265
|
-
onFocus,
|
|
266
|
-
onKeyDown: handleKeyDown,
|
|
267
|
-
ref: fieldRef,
|
|
268
|
-
value
|
|
269
|
-
}
|
|
270
|
-
)
|
|
271
|
-
]
|
|
272
|
-
}
|
|
273
|
-
),
|
|
274
|
-
focus ? /* @__PURE__ */ jsx(MagnifyingGlassIcon, {}) : /* @__PURE__ */ jsx(ChevronRightIcon, {})
|
|
275
|
-
] });
|
|
276
|
-
return /* @__PURE__ */ jsxs(Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
277
|
-
/* @__PURE__ */ jsx(Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ jsx(
|
|
278
|
-
Grid,
|
|
279
|
-
{
|
|
280
|
-
align: "center",
|
|
281
|
-
className: `tag-selector ${size} ${focusClassName}${readOnlyClassName}${errorClassName}`,
|
|
282
|
-
columns: "1fr auto",
|
|
283
|
-
gap: "1",
|
|
284
|
-
onClick: () => {
|
|
285
|
-
var _a;
|
|
286
|
-
return !readOnly && ((_a = fieldRef.current) == null ? void 0 : _a.focus());
|
|
287
|
-
},
|
|
288
|
-
children: readOnly ? readonlyContent : editContent
|
|
289
|
-
}
|
|
290
|
-
) }),
|
|
291
|
-
/* @__PURE__ */ jsx(
|
|
292
|
-
Popover.Content,
|
|
293
|
-
{
|
|
294
|
-
onOpenAutoFocus: preventDefault,
|
|
295
|
-
onTouchMove: stopPropagationTouch,
|
|
296
|
-
onWheel: stopPropagationWheel,
|
|
297
|
-
sticky: "always",
|
|
298
|
-
children: /* @__PURE__ */ jsx(
|
|
299
|
-
DropdownContainer,
|
|
300
|
-
{
|
|
301
|
-
currentItem: filteredOptions[focusIndex || 0],
|
|
302
|
-
items: filteredOptions,
|
|
303
|
-
children: /* @__PURE__ */ jsx(
|
|
304
|
-
ScrollArea,
|
|
305
|
-
{
|
|
306
|
-
ref: scrollRef,
|
|
307
|
-
scrollbars: "vertical",
|
|
308
|
-
style: { height: OPTION_HEIGHT * 8 },
|
|
309
|
-
type: "auto",
|
|
310
|
-
children: /* @__PURE__ */ jsx(Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
311
|
-
const isSelected = Boolean(
|
|
312
|
-
selected.find((el) => el === item.id)
|
|
313
|
-
);
|
|
314
|
-
const isFocus = i === focusIndex;
|
|
315
|
-
return /* @__PURE__ */ jsx(
|
|
316
|
-
Button,
|
|
317
|
-
{
|
|
318
|
-
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
319
|
-
onClick: () => {
|
|
320
|
-
var _a;
|
|
321
|
-
toggleItem(item.id);
|
|
322
|
-
(_a = fieldRef.current) == null ? void 0 : _a.focus();
|
|
323
|
-
},
|
|
324
|
-
onMouseEnter: () => {
|
|
325
|
-
setFocusIndex(i);
|
|
326
|
-
},
|
|
327
|
-
variant: isSelected ? "soft" : "outline",
|
|
328
|
-
children: /* @__PURE__ */ jsxs(Flex, { justify: "between", width: "100%", children: [
|
|
329
|
-
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
330
|
-
isSelected ? /* @__PURE__ */ jsx(CheckIcon, {}) : null
|
|
331
|
-
] })
|
|
332
|
-
},
|
|
333
|
-
item.id
|
|
334
|
-
);
|
|
335
|
-
}) })
|
|
336
|
-
}
|
|
337
|
-
)
|
|
338
|
-
}
|
|
339
|
-
)
|
|
340
|
-
}
|
|
341
|
-
)
|
|
342
|
-
] });
|
|
343
|
-
}
|
|
344
|
-
var stopPropagationTouch = (e) => {
|
|
345
|
-
e.stopPropagation();
|
|
346
|
-
};
|
|
347
|
-
var stopPropagationWheel = (e) => {
|
|
348
|
-
e.stopPropagation();
|
|
349
|
-
};
|
|
350
|
-
var preventDefault = (e) => {
|
|
351
|
-
e.preventDefault();
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
export {
|
|
355
|
-
TagSelector
|
|
356
|
-
};
|
|
357
|
-
//# sourceMappingURL=chunk-F43CRBEH.js.map
|
|
@@ -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,EAC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AM,UAAU,MAAM;AAEtB,yBACE;AAAA,oBAAC;AAAA;AAAA,sBACC,WAAW,uBAAuB,UAAU,YAAY,EAAE;AAAA,sBAE1D,SAAS,MAAM;AA1WnC;AA2WsB,mCAAW,KAAK,EAAE;AAClB,uCAAS,YAAT,mBAAkB;AAAA,sBACpB;AAAA,sBACA,cAAc,MAAM;AAClB,sCAAc,CAAC;AAAA,sBACjB;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-F5JCHRHO.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IconButton
|
|
3
|
-
} from "./chunk-O3DNDMV3.js";
|
|
4
|
-
import {
|
|
5
|
-
Heading
|
|
6
|
-
} from "./chunk-HJB3AASV.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/dialog.tsx
|
|
14
|
-
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
15
|
-
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
16
|
-
import { Flex, Theme } from "@radix-ui/themes";
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
var preventDefault = (e) => {
|
|
19
|
-
e.preventDefault();
|
|
20
|
-
};
|
|
21
|
-
function Content2(props) {
|
|
22
|
-
const _a = props, {
|
|
23
|
-
children,
|
|
24
|
-
style = {},
|
|
25
|
-
width,
|
|
26
|
-
maxWidth,
|
|
27
|
-
minWidth,
|
|
28
|
-
maxHeight,
|
|
29
|
-
height,
|
|
30
|
-
minHeight,
|
|
31
|
-
title,
|
|
32
|
-
buttons,
|
|
33
|
-
hideCloseButton,
|
|
34
|
-
className
|
|
35
|
-
} = _a, rest = __objRest(_a, [
|
|
36
|
-
"children",
|
|
37
|
-
"style",
|
|
38
|
-
"width",
|
|
39
|
-
"maxWidth",
|
|
40
|
-
"minWidth",
|
|
41
|
-
"maxHeight",
|
|
42
|
-
"height",
|
|
43
|
-
"minHeight",
|
|
44
|
-
"title",
|
|
45
|
-
"buttons",
|
|
46
|
-
"hideCloseButton",
|
|
47
|
-
"className"
|
|
48
|
-
]);
|
|
49
|
-
return /* @__PURE__ */ jsx(RadixDialog.Portal, { children: /* @__PURE__ */ jsx(Theme, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ jsxs(
|
|
50
|
-
RadixDialog.Content,
|
|
51
|
-
__spreadProps(__spreadValues({
|
|
52
|
-
className: `DialogContent ${className || ""}`,
|
|
53
|
-
onPointerDownOutside: preventDefault,
|
|
54
|
-
style: __spreadValues({
|
|
55
|
-
width,
|
|
56
|
-
maxWidth,
|
|
57
|
-
minWidth,
|
|
58
|
-
maxHeight,
|
|
59
|
-
height,
|
|
60
|
-
minHeight
|
|
61
|
-
}, style)
|
|
62
|
-
}, rest), {
|
|
63
|
-
children: [
|
|
64
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "2", justify: "between", children: [
|
|
65
|
-
/* @__PURE__ */ jsx(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ jsx(Heading, { align: "center", mb: "2", variant: "heading3", children: title }) : title }),
|
|
66
|
-
!hideCloseButton && /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) }) })
|
|
67
|
-
] }),
|
|
68
|
-
children,
|
|
69
|
-
buttons ? /* @__PURE__ */ jsx(Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
) }) }) });
|
|
73
|
-
}
|
|
74
|
-
function Close2(_a) {
|
|
75
|
-
var _b = _a, {
|
|
76
|
-
children
|
|
77
|
-
} = _b, rest = __objRest(_b, [
|
|
78
|
-
"children"
|
|
79
|
-
]);
|
|
80
|
-
return /* @__PURE__ */ jsx(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
81
|
-
}
|
|
82
|
-
function Trigger2(_a) {
|
|
83
|
-
var _b = _a, {
|
|
84
|
-
children
|
|
85
|
-
} = _b, rest = __objRest(_b, [
|
|
86
|
-
"children"
|
|
87
|
-
]);
|
|
88
|
-
return /* @__PURE__ */ jsx(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
89
|
-
}
|
|
90
|
-
var Dialog = {
|
|
91
|
-
Root: RadixDialog.Root,
|
|
92
|
-
Trigger: Trigger2,
|
|
93
|
-
Content: Content2,
|
|
94
|
-
Close: Close2,
|
|
95
|
-
Description: RadixDialog.Description,
|
|
96
|
-
Title: RadixDialog.Title
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
Dialog
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=chunk-F5JCHRHO.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';\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\n return (\n <RadixDialog.Portal>\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 {/* <ToastContainer /> */}\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;AA0DhB,SAGM,KAHN;AAzCZ,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;AAIF,SACE,oBAAa,oBAAZ,EACC,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,GAEF,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-FF2PTPBU.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EditServiceType
|
|
3
|
-
} from "./chunk-27LARKX6.js";
|
|
4
|
-
import {
|
|
5
|
-
EditCoachingTime
|
|
6
|
-
} from "./chunk-QUDGAWYM.js";
|
|
7
|
-
import {
|
|
8
|
-
Grid
|
|
9
|
-
} from "./chunk-EGEQY3KT.js";
|
|
10
|
-
import {
|
|
11
|
-
DataList
|
|
12
|
-
} from "./chunk-VTJZMOSP.js";
|
|
13
|
-
import {
|
|
14
|
-
Dialog
|
|
15
|
-
} from "./chunk-2GVQIRVC.js";
|
|
16
|
-
import {
|
|
17
|
-
Heading
|
|
18
|
-
} from "./chunk-HJB3AASV.js";
|
|
19
|
-
import {
|
|
20
|
-
Card
|
|
21
|
-
} from "./chunk-2ZQK7NTN.js";
|
|
22
|
-
import {
|
|
23
|
-
BulletText
|
|
24
|
-
} from "./chunk-NAL2USH5.js";
|
|
25
|
-
import {
|
|
26
|
-
Flex
|
|
27
|
-
} from "./chunk-25HMMI7R.js";
|
|
28
|
-
import {
|
|
29
|
-
Button
|
|
30
|
-
} from "./chunk-Q5AFRGVP.js";
|
|
31
|
-
import {
|
|
32
|
-
Pencil1Icon
|
|
33
|
-
} from "./chunk-HLFG5ZTU.js";
|
|
34
|
-
import {
|
|
35
|
-
__objRest,
|
|
36
|
-
__spreadProps,
|
|
37
|
-
__spreadValues
|
|
38
|
-
} from "./chunk-N552FDTV.js";
|
|
39
|
-
|
|
40
|
-
// src/app/platform/session-card.tsx
|
|
41
|
-
import { useCallback, useMemo } from "react";
|
|
42
|
-
import { format } from "date-fns";
|
|
43
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
44
|
-
var preventDefault = (e) => {
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
};
|
|
47
|
-
function SessionCard(props) {
|
|
48
|
-
const _a = props, {
|
|
49
|
-
sessionNumber,
|
|
50
|
-
userName,
|
|
51
|
-
error,
|
|
52
|
-
ExtraButtons,
|
|
53
|
-
TitleExtra,
|
|
54
|
-
editable,
|
|
55
|
-
onSaveDate,
|
|
56
|
-
onSaveSessionType,
|
|
57
|
-
startAt,
|
|
58
|
-
endAt,
|
|
59
|
-
sessionType
|
|
60
|
-
} = _a, rest = __objRest(_a, [
|
|
61
|
-
"sessionNumber",
|
|
62
|
-
"userName",
|
|
63
|
-
"error",
|
|
64
|
-
"ExtraButtons",
|
|
65
|
-
"TitleExtra",
|
|
66
|
-
"editable",
|
|
67
|
-
"onSaveDate",
|
|
68
|
-
"onSaveSessionType",
|
|
69
|
-
"startAt",
|
|
70
|
-
"endAt",
|
|
71
|
-
"sessionType"
|
|
72
|
-
]);
|
|
73
|
-
const renderEditButton = useCallback(() => {
|
|
74
|
-
return /* @__PURE__ */ jsx(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ jsx(Pencil1Icon, {}) });
|
|
75
|
-
}, []);
|
|
76
|
-
const sessionTimeStr = useMemo(() => {
|
|
77
|
-
if (!startAt || !endAt)
|
|
78
|
-
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
79
|
-
return `${format(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${format(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
80
|
-
}, [startAt, endAt]);
|
|
81
|
-
return /* @__PURE__ */ jsx(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
|
|
82
|
-
/* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
|
|
83
|
-
/* @__PURE__ */ jsx(Heading, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
84
|
-
TitleExtra,
|
|
85
|
-
error ? /* @__PURE__ */ jsx(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
86
|
-
] }),
|
|
87
|
-
/* @__PURE__ */ jsxs(DataList.Root, { children: [
|
|
88
|
-
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
89
|
-
/* @__PURE__ */ jsx(DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
|
|
90
|
-
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
91
|
-
sessionTimeStr,
|
|
92
|
-
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
93
|
-
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
94
|
-
/* @__PURE__ */ jsx(
|
|
95
|
-
Dialog.Content,
|
|
96
|
-
{
|
|
97
|
-
onOpenAutoFocus: preventDefault,
|
|
98
|
-
style: { overflow: "visible" },
|
|
99
|
-
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
|
|
100
|
-
children: /* @__PURE__ */ jsx(
|
|
101
|
-
EditCoachingTime,
|
|
102
|
-
{
|
|
103
|
-
defaultEndAt: endAt,
|
|
104
|
-
defaultStartAt: startAt,
|
|
105
|
-
onClickSave: onSaveDate
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] }) : null
|
|
111
|
-
] })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ jsxs(Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
114
|
-
/* @__PURE__ */ jsxs(DataList.Item, { children: [
|
|
115
|
-
/* @__PURE__ */ jsx(DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
116
|
-
/* @__PURE__ */ jsxs(DataList.Value, { children: [
|
|
117
|
-
sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
|
|
118
|
-
editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
|
|
119
|
-
/* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
|
|
120
|
-
/* @__PURE__ */ jsx(
|
|
121
|
-
Dialog.Content,
|
|
122
|
-
{
|
|
123
|
-
title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
|
|
124
|
-
children: /* @__PURE__ */ jsx(
|
|
125
|
-
EditServiceType,
|
|
126
|
-
{
|
|
127
|
-
defaultServiceType: sessionType,
|
|
128
|
-
onClickSave: onSaveSessionType
|
|
129
|
-
}
|
|
130
|
-
)
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }) : null
|
|
134
|
-
] })
|
|
135
|
-
] }),
|
|
136
|
-
/* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
137
|
-
] })
|
|
138
|
-
] })
|
|
139
|
-
] }) }));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export {
|
|
143
|
-
SessionCard
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=chunk-FF2PTPBU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app/platform/session-card.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { format } from 'date-fns';\nimport type { ServiceType } from '@/types/biz.type';\nimport type { CardProps } from '../../atoms';\nimport {\n BulletText,\n Button,\n Card,\n DataList,\n Dialog,\n Flex,\n Grid,\n Heading,\n} from '../../atoms';\nimport { Pencil1Icon } from '../../icon';\nimport { EditCoachingTime } from './edit-coaching-time';\nimport { EditServiceType } from './edit-service-type';\n\nconst preventDefault = (e: Event): void => {\n e.preventDefault();\n};\nexport type SessionCardProps = Omit<CardProps, 'error'> & {\n error?: string;\n startAt?: Date;\n endAt?: Date;\n sessionType?: ServiceType;\n userName?: string;\n sessionNumber?: number;\n ExtraButtons?: React.ReactNode;\n editable?: boolean;\n TitleExtra?: React.ReactNode;\n onSaveDate?: (startTime: Date, endTime: Date) => void;\n onSaveSessionType?: (sessionType: string) => void;\n};\n\nexport function SessionCard(props: SessionCardProps): React.ReactElement {\n const {\n sessionNumber,\n userName,\n error,\n ExtraButtons,\n TitleExtra,\n editable,\n onSaveDate,\n onSaveSessionType,\n startAt,\n endAt,\n sessionType,\n ...rest\n } = props;\n\n const renderEditButton = useCallback((): JSX.Element => {\n return (\n <Button color=\"gray\" ml=\"2\" variant=\"transparent\">\n <Pencil1Icon />\n </Button>\n );\n }, []);\n\n const sessionTimeStr = useMemo(() => {\n if (!startAt || !endAt) return '알 수 없음';\n\n return `${format(startAt, 'yyyy년 MM월 dd일 HH시 mm분')} ~ ${format(endAt, 'HH시 mm분')}`;\n }, [startAt, endAt]);\n\n return (\n <Card error={Boolean(error)} {...rest}>\n <Flex direction=\"column\" gap=\"3\">\n <Flex align=\"center\" width=\"100%\">\n <Heading variant=\"heading4\">\n {`${userName || '알 수 없음'}님 ${sessionNumber || '-'}회차`}\n </Heading>\n {TitleExtra}\n {error ? (\n <BulletText as=\"p\" color=\"red\" variant=\"caption\">\n {error}\n </BulletText>\n ) : null}\n </Flex>\n <DataList.Root>\n <DataList.Item>\n <DataList.Label>코칭 일시</DataList.Label>\n <DataList.Value>\n {sessionTimeStr}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n onOpenAutoFocus={preventDefault}\n style={{ overflow: 'visible' }}\n title={`${sessionNumber}회차 세션 일시 변경하기`}\n >\n <EditCoachingTime\n defaultEndAt={endAt}\n defaultStartAt={startAt}\n onClickSave={onSaveDate}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n <Grid columns={{ initial: '1', xs: '2' }} style={{ gap: 'inherit' }}>\n <DataList.Item>\n <DataList.Label>세션 참여 방식</DataList.Label>\n <DataList.Value>\n {sessionType === 'offlineCoaching' ? '오프라인' : '온라인'}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n title={`${sessionNumber}회차 세션 진행 방식 변경하기`}\n >\n <EditServiceType\n defaultServiceType={sessionType}\n onClickSave={onSaveSessionType}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n\n <Flex gap=\"2\" justify=\"end\">\n {ExtraButtons}\n </Flex>\n </Grid>\n </DataList.Root>\n </Flex>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,eAAe;AAC5C,SAAS,cAAc;AAqDf,cAcA,YAdA;AApCR,IAAM,iBAAiB,CAA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