@tipp/ui 1.0.10 → 1.0.12
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/atoms/drawer.cjs +100 -0
- package/dist/atoms/drawer.cjs.map +1 -0
- package/dist/atoms/drawer.d.cts +20 -0
- package/dist/atoms/drawer.d.ts +20 -0
- package/dist/atoms/drawer.js +14 -0
- package/dist/atoms/index.cjs +38 -0
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.d.cts +2 -0
- package/dist/atoms/index.d.ts +2 -0
- package/dist/atoms/index.js +69 -59
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-3ZUBNWIB.js +43 -0
- package/dist/chunk-3ZUBNWIB.js.map +1 -0
- package/dist/chunk-7WNX674B.js +42 -0
- package/dist/chunk-7WNX674B.js.map +1 -0
- package/dist/chunk-AAXOSNY3.js +41 -0
- package/dist/chunk-AAXOSNY3.js.map +1 -0
- package/dist/chunk-AGMMAML3.js +1 -0
- package/dist/chunk-D6MXCND3.js +33 -0
- package/dist/chunk-D6MXCND3.js.map +1 -0
- package/dist/chunk-HVTHVIGL.js +38 -0
- package/dist/chunk-HVTHVIGL.js.map +1 -0
- package/dist/chunk-LW3VKJJS.js +33 -0
- package/dist/chunk-LW3VKJJS.js.map +1 -0
- package/dist/{chunk-MMAV5BRZ.js → chunk-M474I6JB.js} +13 -3
- package/dist/chunk-M474I6JB.js.map +1 -0
- package/dist/chunk-O5IB6OHB.js +41 -0
- package/dist/chunk-O5IB6OHB.js.map +1 -0
- package/dist/{chunk-3I5CDBFN.js → chunk-S3SAB2S2.js} +6 -6
- package/dist/chunk-TPTFBY6E.js +40 -0
- package/dist/chunk-TPTFBY6E.js.map +1 -0
- package/dist/chunk-VRFAOMNZ.js +33 -0
- package/dist/chunk-VRFAOMNZ.js.map +1 -0
- package/dist/chunk-WJY4BPLR.js +43 -0
- package/dist/chunk-WJY4BPLR.js.map +1 -0
- package/dist/chunk-YQQVYFIL.js +37 -0
- package/dist/chunk-YQQVYFIL.js.map +1 -0
- package/dist/chunk-ZRCRQ7IC.js +42 -0
- package/dist/chunk-ZRCRQ7IC.js.map +1 -0
- package/dist/icon.cjs +2 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.js +3 -1
- package/dist/index.cjs +71 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +77 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +82 -70
- package/dist/molecules/expand-table/index.cjs +27 -23
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +29 -28
- package/dist/molecules/expand-table/row.cjs +10 -6
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +27 -26
- package/dist/molecules/index.cjs +33 -29
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +32 -31
- package/dist/molecules/navigation.cjs +10 -6
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +27 -26
- package/package.json +2 -1
- package/src/atoms/drawer.tsx +37 -0
- package/src/atoms/index.ts +1 -1
- package/src/icon.ts +1 -0
- package/dist/chart/chart.cjs +0 -227
- package/dist/chart/chart.cjs.map +0 -1
- package/dist/chart/chart.d.cts +0 -179
- package/dist/chart/chart.d.ts +0 -179
- package/dist/chart/chart.js +0 -179
- package/dist/chart/chart.js.map +0 -1
- package/dist/charts/vertical-bar-chart.cjs +0 -48
- package/dist/charts/vertical-bar-chart.cjs.map +0 -1
- package/dist/charts/vertical-bar-chart.d.cts +0 -17
- package/dist/charts/vertical-bar-chart.d.ts +0 -17
- package/dist/charts/vertical-bar-chart.js +0 -8
- package/dist/chunk-2A2IJOVV.js +0 -60
- package/dist/chunk-2A2IJOVV.js.map +0 -1
- package/dist/chunk-2JZ3UQAX.js +0 -48
- package/dist/chunk-2JZ3UQAX.js.map +0 -1
- package/dist/chunk-2KZSNTY7.js +0 -23
- package/dist/chunk-2KZSNTY7.js.map +0 -1
- package/dist/chunk-2QZV2WKV.js +0 -42
- package/dist/chunk-2QZV2WKV.js.map +0 -1
- package/dist/chunk-2RMZJS2O.js +0 -59
- package/dist/chunk-2RMZJS2O.js.map +0 -1
- package/dist/chunk-2TGD62PR.js +0 -59
- package/dist/chunk-2TGD62PR.js.map +0 -1
- package/dist/chunk-3427FUJN.js +0 -46
- package/dist/chunk-3427FUJN.js.map +0 -1
- package/dist/chunk-34P2PUMC.js +0 -60
- package/dist/chunk-34P2PUMC.js.map +0 -1
- package/dist/chunk-3K6GFBJT.js +0 -57
- package/dist/chunk-3K6GFBJT.js.map +0 -1
- package/dist/chunk-3KIARYD6.js +0 -47
- package/dist/chunk-3KIARYD6.js.map +0 -1
- package/dist/chunk-4RIBUNMS.js +0 -49
- package/dist/chunk-4RIBUNMS.js.map +0 -1
- package/dist/chunk-4ZQHR3JI.js +0 -47
- package/dist/chunk-4ZQHR3JI.js.map +0 -1
- package/dist/chunk-5JXZUWR3.js +0 -104
- package/dist/chunk-5JXZUWR3.js.map +0 -1
- package/dist/chunk-6BXAZV7N.js +0 -63
- package/dist/chunk-6BXAZV7N.js.map +0 -1
- package/dist/chunk-6GHADQAU.js +0 -59
- package/dist/chunk-6GHADQAU.js.map +0 -1
- package/dist/chunk-6SGXBZAF.js +0 -62
- package/dist/chunk-6SGXBZAF.js.map +0 -1
- package/dist/chunk-6XHVFBFO.js +0 -38
- package/dist/chunk-6XHVFBFO.js.map +0 -1
- package/dist/chunk-6ZEM4FBF.js +0 -64
- package/dist/chunk-6ZEM4FBF.js.map +0 -1
- package/dist/chunk-754LMJ5L.js +0 -48
- package/dist/chunk-754LMJ5L.js.map +0 -1
- package/dist/chunk-7QVMAHXH.js +0 -24
- package/dist/chunk-7QVMAHXH.js.map +0 -1
- package/dist/chunk-7VCJMEPY.js +0 -60
- package/dist/chunk-7VCJMEPY.js.map +0 -1
- package/dist/chunk-AD4LGJER.js +0 -60
- package/dist/chunk-AD4LGJER.js.map +0 -1
- package/dist/chunk-ALP5524J.js +0 -55
- package/dist/chunk-ALP5524J.js.map +0 -1
- package/dist/chunk-AS6NXGBN.js +0 -59
- package/dist/chunk-AS6NXGBN.js.map +0 -1
- package/dist/chunk-AVOCFCEQ.js +0 -181
- package/dist/chunk-AVOCFCEQ.js.map +0 -1
- package/dist/chunk-AXM27M2R.js +0 -43
- package/dist/chunk-AXM27M2R.js.map +0 -1
- package/dist/chunk-B7R4QL7D.js +0 -55
- package/dist/chunk-B7R4QL7D.js.map +0 -1
- package/dist/chunk-BH2MBAAY.js +0 -59
- package/dist/chunk-BH2MBAAY.js.map +0 -1
- package/dist/chunk-C5QSBSVB.js +0 -59
- package/dist/chunk-C5QSBSVB.js.map +0 -1
- package/dist/chunk-C7BS7VPF.js +0 -46
- package/dist/chunk-C7BS7VPF.js.map +0 -1
- package/dist/chunk-CC3GT7LT.js +0 -53
- package/dist/chunk-CC3GT7LT.js.map +0 -1
- package/dist/chunk-CCZSZZTS.js +0 -25
- package/dist/chunk-CCZSZZTS.js.map +0 -1
- package/dist/chunk-CMPIGFPT.js +0 -60
- package/dist/chunk-CMPIGFPT.js.map +0 -1
- package/dist/chunk-CMWPUK3L.js +0 -10
- package/dist/chunk-CMWPUK3L.js.map +0 -1
- package/dist/chunk-CODQBUIC.js +0 -59
- package/dist/chunk-CODQBUIC.js.map +0 -1
- package/dist/chunk-CT7PHRXQ.js +0 -57
- package/dist/chunk-CT7PHRXQ.js.map +0 -1
- package/dist/chunk-CVOLVQKD.js +0 -60
- package/dist/chunk-CVOLVQKD.js.map +0 -1
- package/dist/chunk-CXFAL52D.js +0 -60
- package/dist/chunk-CXFAL52D.js.map +0 -1
- package/dist/chunk-E6EPYWFL.js +0 -53
- package/dist/chunk-E6EPYWFL.js.map +0 -1
- package/dist/chunk-EJWIO6NJ.js +0 -104
- package/dist/chunk-EJWIO6NJ.js.map +0 -1
- package/dist/chunk-EM57H7XC.js +0 -48
- package/dist/chunk-EM57H7XC.js.map +0 -1
- package/dist/chunk-EUS56L3L.js +0 -180
- package/dist/chunk-EUS56L3L.js.map +0 -1
- package/dist/chunk-FFC2C2ID.js +0 -1
- package/dist/chunk-FHXW7BLD.js +0 -61
- package/dist/chunk-FHXW7BLD.js.map +0 -1
- package/dist/chunk-FVSPOU5C.js +0 -48
- package/dist/chunk-FVSPOU5C.js.map +0 -1
- package/dist/chunk-FVU2BOJV.js +0 -54
- package/dist/chunk-FVU2BOJV.js.map +0 -1
- package/dist/chunk-GKHTWD7W.js +0 -24
- package/dist/chunk-GKHTWD7W.js.map +0 -1
- package/dist/chunk-GOKKEO23.js +0 -53
- package/dist/chunk-GOKKEO23.js.map +0 -1
- package/dist/chunk-GTDVFQVW.js +0 -28
- package/dist/chunk-GTDVFQVW.js.map +0 -1
- package/dist/chunk-GUTTFFCR.js +0 -36
- package/dist/chunk-GUTTFFCR.js.map +0 -1
- package/dist/chunk-GZG4UOJZ.js +0 -43
- package/dist/chunk-GZG4UOJZ.js.map +0 -1
- package/dist/chunk-GZHSO6CW.js +0 -36
- package/dist/chunk-GZHSO6CW.js.map +0 -1
- package/dist/chunk-GZYKC7MR.js +0 -119
- package/dist/chunk-GZYKC7MR.js.map +0 -1
- package/dist/chunk-H2TF3WTO.js +0 -55
- package/dist/chunk-H2TF3WTO.js.map +0 -1
- package/dist/chunk-HE3XMGS3.js +0 -25
- package/dist/chunk-HE3XMGS3.js.map +0 -1
- package/dist/chunk-HR3KN5AE.js +0 -39
- package/dist/chunk-HR3KN5AE.js.map +0 -1
- package/dist/chunk-HRQSHRGQ.js +0 -59
- package/dist/chunk-HRQSHRGQ.js.map +0 -1
- package/dist/chunk-HVMWNAXK.js +0 -60
- package/dist/chunk-HVMWNAXK.js.map +0 -1
- package/dist/chunk-I3ZZQ6QJ.js +0 -34
- package/dist/chunk-I3ZZQ6QJ.js.map +0 -1
- package/dist/chunk-I6D4HPRN.js +0 -60
- package/dist/chunk-I6D4HPRN.js.map +0 -1
- package/dist/chunk-I7YPDRXO.js +0 -62
- package/dist/chunk-I7YPDRXO.js.map +0 -1
- package/dist/chunk-IUZOBUV4.js +0 -57
- package/dist/chunk-IUZOBUV4.js.map +0 -1
- package/dist/chunk-J57DESXI.js +0 -55
- package/dist/chunk-J57DESXI.js.map +0 -1
- package/dist/chunk-JL6FCZV4.js +0 -55
- package/dist/chunk-JL6FCZV4.js.map +0 -1
- package/dist/chunk-JU534UAV.js +0 -57
- package/dist/chunk-JU534UAV.js.map +0 -1
- package/dist/chunk-K66WIGIV.js +0 -119
- package/dist/chunk-K66WIGIV.js.map +0 -1
- package/dist/chunk-KACFRYIH.js +0 -23
- package/dist/chunk-KACFRYIH.js.map +0 -1
- package/dist/chunk-KATXJW5H.js +0 -23
- package/dist/chunk-KATXJW5H.js.map +0 -1
- package/dist/chunk-KFAG5R3H.js +0 -64
- package/dist/chunk-KFAG5R3H.js.map +0 -1
- package/dist/chunk-KGN7AVRJ.js +0 -45
- package/dist/chunk-KGN7AVRJ.js.map +0 -1
- package/dist/chunk-KHHXN3CH.js +0 -1
- package/dist/chunk-KHHXN3CH.js.map +0 -1
- package/dist/chunk-KXJM7U4I.js +0 -47
- package/dist/chunk-KXJM7U4I.js.map +0 -1
- package/dist/chunk-L6YPLUNG.js +0 -104
- package/dist/chunk-L6YPLUNG.js.map +0 -1
- package/dist/chunk-LA6FLXGE.js +0 -47
- package/dist/chunk-LA6FLXGE.js.map +0 -1
- package/dist/chunk-LCC3I3PQ.js +0 -24
- package/dist/chunk-LCC3I3PQ.js.map +0 -1
- package/dist/chunk-LUVANORR.js +0 -23
- package/dist/chunk-LUVANORR.js.map +0 -1
- package/dist/chunk-LV4WSOXL.js +0 -39
- package/dist/chunk-LV4WSOXL.js.map +0 -1
- package/dist/chunk-MASTHXWN.js +0 -1
- package/dist/chunk-MASTHXWN.js.map +0 -1
- package/dist/chunk-MHHNZIVQ.js +0 -57
- package/dist/chunk-MHHNZIVQ.js.map +0 -1
- package/dist/chunk-MMAV5BRZ.js.map +0 -1
- package/dist/chunk-N46QE3KW.js +0 -55
- package/dist/chunk-N46QE3KW.js.map +0 -1
- package/dist/chunk-NFGNQEVV.js +0 -46
- package/dist/chunk-NFGNQEVV.js.map +0 -1
- package/dist/chunk-NK7W7F66.js +0 -54
- package/dist/chunk-NK7W7F66.js.map +0 -1
- package/dist/chunk-NMIT4GNJ.js +0 -57
- package/dist/chunk-NMIT4GNJ.js.map +0 -1
- package/dist/chunk-NUM4Y5VM.js +0 -54
- package/dist/chunk-NUM4Y5VM.js.map +0 -1
- package/dist/chunk-NX5QD74I.js +0 -56
- package/dist/chunk-NX5QD74I.js.map +0 -1
- package/dist/chunk-O4GMX5TL.js +0 -55
- package/dist/chunk-O4GMX5TL.js.map +0 -1
- package/dist/chunk-O6P7IWJP.js +0 -54
- package/dist/chunk-O6P7IWJP.js.map +0 -1
- package/dist/chunk-OJ5XUBZN.js +0 -46
- package/dist/chunk-OJ5XUBZN.js.map +0 -1
- package/dist/chunk-OYWM35R6.js +0 -56
- package/dist/chunk-OYWM35R6.js.map +0 -1
- package/dist/chunk-OZLC6KYP.js +0 -104
- package/dist/chunk-OZLC6KYP.js.map +0 -1
- package/dist/chunk-P2VKIZ3M.js +0 -18
- package/dist/chunk-P2VKIZ3M.js.map +0 -1
- package/dist/chunk-P66OQ4ZQ.js +0 -104
- package/dist/chunk-P66OQ4ZQ.js.map +0 -1
- package/dist/chunk-PLG3AXHM.js +0 -59
- package/dist/chunk-PLG3AXHM.js.map +0 -1
- package/dist/chunk-PQBIBUGH.js +0 -10
- package/dist/chunk-PQBIBUGH.js.map +0 -1
- package/dist/chunk-PQBRLX37.js +0 -48
- package/dist/chunk-PQBRLX37.js.map +0 -1
- package/dist/chunk-QIKFIRGO.js +0 -59
- package/dist/chunk-QIKFIRGO.js.map +0 -1
- package/dist/chunk-QTHWYUYP.js +0 -28
- package/dist/chunk-QTHWYUYP.js.map +0 -1
- package/dist/chunk-RAJAKQXU.js +0 -59
- package/dist/chunk-RAJAKQXU.js.map +0 -1
- package/dist/chunk-RET725VL.js +0 -36
- package/dist/chunk-RET725VL.js.map +0 -1
- package/dist/chunk-RNB2T5NJ.js +0 -48
- package/dist/chunk-RNB2T5NJ.js.map +0 -1
- package/dist/chunk-RYUIQBUD.js +0 -59
- package/dist/chunk-RYUIQBUD.js.map +0 -1
- package/dist/chunk-SDAJ6NLJ.js +0 -24
- package/dist/chunk-SDAJ6NLJ.js.map +0 -1
- package/dist/chunk-SKDEOPP2.js +0 -54
- package/dist/chunk-SKDEOPP2.js.map +0 -1
- package/dist/chunk-SONXRHVK.js +0 -58
- package/dist/chunk-SONXRHVK.js.map +0 -1
- package/dist/chunk-SQ5HD7LD.js +0 -1
- package/dist/chunk-SQ5HD7LD.js.map +0 -1
- package/dist/chunk-TBXRPM4O.js +0 -59
- package/dist/chunk-TBXRPM4O.js.map +0 -1
- package/dist/chunk-TG7PURWS.js +0 -18
- package/dist/chunk-TG7PURWS.js.map +0 -1
- package/dist/chunk-TJGELI4L.js +0 -53
- package/dist/chunk-TJGELI4L.js.map +0 -1
- package/dist/chunk-TVJ4Z7MD.js +0 -46
- package/dist/chunk-TVJ4Z7MD.js.map +0 -1
- package/dist/chunk-U25HB5E7.js +0 -59
- package/dist/chunk-U25HB5E7.js.map +0 -1
- package/dist/chunk-UCEASXHW.js +0 -47
- package/dist/chunk-UCEASXHW.js.map +0 -1
- package/dist/chunk-UGSJR77F.js +0 -48
- package/dist/chunk-UGSJR77F.js.map +0 -1
- package/dist/chunk-UQPA2QGC.js +0 -45
- package/dist/chunk-UQPA2QGC.js.map +0 -1
- package/dist/chunk-V2AYMNSS.js +0 -46
- package/dist/chunk-V2AYMNSS.js.map +0 -1
- package/dist/chunk-V6KPBGB3.js +0 -57
- package/dist/chunk-V6KPBGB3.js.map +0 -1
- package/dist/chunk-V7JYNIVJ.js +0 -39
- package/dist/chunk-V7JYNIVJ.js.map +0 -1
- package/dist/chunk-VC2TT56B.js +0 -46
- package/dist/chunk-VC2TT56B.js.map +0 -1
- package/dist/chunk-VCOQG6JF.js +0 -119
- package/dist/chunk-VCOQG6JF.js.map +0 -1
- package/dist/chunk-VJCKB4FI.js +0 -182
- package/dist/chunk-VJCKB4FI.js.map +0 -1
- package/dist/chunk-VOR32EFU.js +0 -59
- package/dist/chunk-VOR32EFU.js.map +0 -1
- package/dist/chunk-W6Z2XJJ2.js +0 -45
- package/dist/chunk-W6Z2XJJ2.js.map +0 -1
- package/dist/chunk-WG7AQQRT.js +0 -59
- package/dist/chunk-WG7AQQRT.js.map +0 -1
- package/dist/chunk-WMBDJ72B.js +0 -25
- package/dist/chunk-WMBDJ72B.js.map +0 -1
- package/dist/chunk-WWCWPFEJ.js +0 -1
- package/dist/chunk-WWCWPFEJ.js.map +0 -1
- package/dist/chunk-WZZEI2W4.js +0 -59
- package/dist/chunk-WZZEI2W4.js.map +0 -1
- package/dist/chunk-XBXAWQOH.js +0 -43
- package/dist/chunk-XBXAWQOH.js.map +0 -1
- package/dist/chunk-XDCANCKF.js +0 -59
- package/dist/chunk-XDCANCKF.js.map +0 -1
- package/dist/chunk-XQOQ65MA.js +0 -57
- package/dist/chunk-XQOQ65MA.js.map +0 -1
- package/dist/chunk-YBFIP7FD.js +0 -119
- package/dist/chunk-YBFIP7FD.js.map +0 -1
- package/dist/chunk-YGS4JU4E.js +0 -60
- package/dist/chunk-YGS4JU4E.js.map +0 -1
- package/dist/chunk-YKEXHUPR.js +0 -48
- package/dist/chunk-YKEXHUPR.js.map +0 -1
- package/dist/chunk-ZY2OMVQQ.js +0 -119
- package/dist/chunk-ZY2OMVQQ.js.map +0 -1
- package/dist/molecules/company-selector.cjs +0 -406
- package/dist/molecules/company-selector.cjs.map +0 -1
- package/dist/molecules/company-selector.d.cts +0 -11
- package/dist/molecules/company-selector.d.ts +0 -11
- package/dist/molecules/company-selector.js +0 -62
- package/dist/molecules/company-selector.js.map +0 -1
- /package/dist/{charts/vertical-bar-chart.js.map → atoms/drawer.js.map} +0 -0
- /package/dist/{chunk-FFC2C2ID.js.map → chunk-AGMMAML3.js.map} +0 -0
- /package/dist/{chunk-3I5CDBFN.js.map → chunk-S3SAB2S2.js.map} +0 -0
package/dist/chunk-PQBRLX37.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-ACVANQJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/ellipsis-tooltip.tsx
|
|
14
|
-
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var EllipsisTooltip = forwardRef((props, maybeRef) => {
|
|
17
|
-
const _a = props, { children, style, lineClamp } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const typoRef = maybeRef || ref;
|
|
20
|
-
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
21
|
-
"none"
|
|
22
|
-
);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
}, []);
|
|
25
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsxs(
|
|
26
|
-
Typo,
|
|
27
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
28
|
-
ref: typoRef,
|
|
29
|
-
style: __spreadValues({
|
|
30
|
-
width: "100%",
|
|
31
|
-
textOverflow: "ellipsis",
|
|
32
|
-
overflow: "hidden",
|
|
33
|
-
wordBreak: "break-word",
|
|
34
|
-
WebkitLineClamp: lineClamp
|
|
35
|
-
}, style),
|
|
36
|
-
children: [
|
|
37
|
-
"\uC774\uAC8C \uC774\uB807\uAC8C \uC624\uB798\uAC78\uB9B4 \uC77C\uC774 \uC544\uB2CC\uB370...",
|
|
38
|
-
children
|
|
39
|
-
]
|
|
40
|
-
})
|
|
41
|
-
) });
|
|
42
|
-
});
|
|
43
|
-
EllipsisTooltip.displayName = "EllipsisTooltip";
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
EllipsisTooltip
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=chunk-PQBRLX37.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport const EllipsisTooltip = forwardRef<\n HTMLSpanElement,\n EllipsisTooltipProps\n>((props: EllipsisTooltipProps, maybeRef): React.ReactNode => {\n const { children, style, lineClamp, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n const typoRef = maybeRef || ref;\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n // if (maybeRef) {\n // const typo = typoRef;\n // if (typo.scrollWidth > typo.clientWidth) {\n // setTooltipDisplay('block');\n // } else {\n // setTooltipDisplay('none');\n // }\n // }\n }, []);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={typoRef}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n wordBreak: 'break-word',\n WebkitLineClamp: lineClamp,\n ...style,\n }}\n >\n 이게 이렇게 오래걸릴 일이 아닌데...\n {children}\n </Typo>\n </Tooltip>\n );\n});\n\nEllipsisTooltip.displayName = 'EllipsisTooltip';\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,YAAY,WAAW,QAAQ,gBAAgB;AA+B3D,cACE,YADF;AAvBG,IAAM,kBAAkB,WAG7B,CAAC,OAA6B,aAA8B;AAC5D,QAAgD,YAAxC,YAAU,OAAO,UAZ3B,IAYkD,IAAT,iBAAS,IAAT,CAA/B,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,UAAU,YAAY;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAAA,EAShB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC,KAAK;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,WAAW;AAAA,QACX,iBAAiB;AAAA,SACd;AAAA,MAEN;AAAA;AAAA,QAEE;AAAA;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
|
package/dist/chunk-QIKFIRGO.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-ACVANQJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/ellipsis-tooltip.tsx
|
|
14
|
-
import { useEffect, useRef, useState } from "react";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
function EllipsisTooltip(props) {
|
|
17
|
-
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
20
|
-
"none"
|
|
21
|
-
);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
var _a2, _b;
|
|
24
|
-
const mouseOver = () => {
|
|
25
|
-
if (ref.current) {
|
|
26
|
-
const typo = ref.current;
|
|
27
|
-
if (typo.scrollWidth > typo.clientWidth) {
|
|
28
|
-
setTooltipDisplay("block");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const mouseOut = () => {
|
|
33
|
-
setTooltipDisplay("none");
|
|
34
|
-
};
|
|
35
|
-
(_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", mouseOver);
|
|
36
|
-
(_b = ref.current) == null ? void 0 : _b.addEventListener("mouseleave", mouseOut);
|
|
37
|
-
}, [ref]);
|
|
38
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
39
|
-
Typo,
|
|
40
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
41
|
-
ref,
|
|
42
|
-
style: __spreadValues({
|
|
43
|
-
width: "100%",
|
|
44
|
-
textOverflow: "ellipsis",
|
|
45
|
-
overflow: "hidden",
|
|
46
|
-
WebkitLineClamp: lineClamp,
|
|
47
|
-
display: "-webkit-box",
|
|
48
|
-
WebkitBoxOrient: "vertical",
|
|
49
|
-
wordBreak: "break-word"
|
|
50
|
-
}, style),
|
|
51
|
-
children
|
|
52
|
-
})
|
|
53
|
-
) });
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
EllipsisTooltip
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=chunk-QIKFIRGO.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport function EllipsisTooltip(props: EllipsisTooltipProps): React.ReactNode {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n \n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n const mouseOver = ():void=>{\n if (ref.current) {\n const typo = ref.current;\n if (typo.scrollWidth > typo.clientWidth) {\n setTooltipDisplay('block');\n }\n }\n }\n\n const mouseOut = ():void=>{\n setTooltipDisplay('none');\n }\n\n ref.current?.addEventListener('mouseenter',mouseOver);\n ref.current?.addEventListener('mouseleave',mouseOut);\n }, [ref]);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={ref}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n WebkitLineClamp: lineClamp,\n\n display:'-webkit-box',\n WebkitBoxOrient: 'vertical',\n wordBreak: 'break-word',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n} "],"mappings":";;;;;;;;;;;;;AAAA,SAA4B,WAAW,QAAQ,gBAAgB;AAoCzD;AA5BC,SAAS,gBAAgB,OAA8C;AAC5E,QAAoD,YAA5C,YAAU,OAAO,YAAY,EATvC,IASsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AAExC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAhBlB,QAAAA,KAAA;AAiBI,UAAM,YAAY,MAAS;AACzB,UAAI,IAAI,SAAS;AACf,cAAM,OAAO,IAAI;AACjB,YAAI,KAAK,cAAc,KAAK,aAAa;AACvC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAAA,IACF;AAEA,UAAM,WAAW,MAAS;AACxB,wBAAkB,MAAM;AAAA,IAC1B;AAED,KAAAA,MAAA,IAAI,YAAJ,gBAAAA,IAAa,iBAAiB,cAAa;AAC3C,cAAI,YAAJ,mBAAa,iBAAiB,cAAa;AAAA,EAC5C,GAAG,CAAC,GAAG,CAAC;AAER,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,iBAAiB;AAAA,QAEjB,SAAQ;AAAA,QACR,iBAAiB;AAAA,QACjB,WAAW;AAAA,SACR;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ;","names":["_a"]}
|
package/dist/chunk-QTHWYUYP.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Typo
|
|
3
|
-
} from "./chunk-O3XTRD7R.js";
|
|
4
|
-
import {
|
|
5
|
-
Flex
|
|
6
|
-
} from "./chunk-25HMMI7R.js";
|
|
7
|
-
|
|
8
|
-
// src/molecules/navigation.tsx
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
function Navigation({ items }) {
|
|
11
|
-
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: items == null ? void 0 : items.map((item) => {
|
|
12
|
-
const { key, title, icon, itemRender, onClick, children } = item;
|
|
13
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
14
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
15
|
-
icon,
|
|
16
|
-
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
17
|
-
] }),
|
|
18
|
-
children == null ? void 0 : children.map((el) => {
|
|
19
|
-
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
|
|
20
|
-
})
|
|
21
|
-
] }, key);
|
|
22
|
-
}) });
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
Navigation
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=chunk-QTHWYUYP.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n}\n\nexport function Navigation({ items }: NavigationProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"4\">\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex key={el.key} pl=\"7\">\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AA0Bc,SAEE,KAFF;AAVP,SAAS,WAAW,EAAE,MAAM,GAAqC;AACtE,SACE,oBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,yCAAO,IAAI,CAAC,SAAS;AACpB,UAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,WACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,mBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,QACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,SAClC;AAAA,MAED,qCAAU,IAAI,CAAC,OAAO;AACrB,eAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAkB,IAAG,KACpB,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KAD1B,GAAG,GAEd;AAAA,MAEJ;AAAA,SAjB4B,GAkB9B;AAAA,EAEJ,IACF;AAEJ;","names":[]}
|
package/dist/chunk-RAJAKQXU.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-ACVANQJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/ellipsis-tooltip.tsx
|
|
14
|
-
import { useEffect, useRef, useState } from "react";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
function EllipsisTooltip(props) {
|
|
17
|
-
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
20
|
-
"none"
|
|
21
|
-
);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
var _a2, _b;
|
|
24
|
-
const mouseOver = () => {
|
|
25
|
-
if (ref.current) {
|
|
26
|
-
const typo = ref.current;
|
|
27
|
-
if (typo.clientHeight < typo.scrollHeight) {
|
|
28
|
-
setTooltipDisplay("block");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const mouseOut = () => {
|
|
33
|
-
setTooltipDisplay("none");
|
|
34
|
-
};
|
|
35
|
-
(_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", mouseOver);
|
|
36
|
-
(_b = ref.current) == null ? void 0 : _b.addEventListener("mouseleave", mouseOut);
|
|
37
|
-
}, [children]);
|
|
38
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
39
|
-
Typo,
|
|
40
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
41
|
-
ref,
|
|
42
|
-
style: __spreadValues({
|
|
43
|
-
width: "100%",
|
|
44
|
-
textOverflow: "ellipsis",
|
|
45
|
-
overflow: "hidden",
|
|
46
|
-
WebkitLineClamp: lineClamp,
|
|
47
|
-
display: "-webkit-box",
|
|
48
|
-
WebkitBoxOrient: "vertical",
|
|
49
|
-
wordBreak: "break-word"
|
|
50
|
-
}, style),
|
|
51
|
-
children
|
|
52
|
-
})
|
|
53
|
-
) });
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
EllipsisTooltip
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=chunk-RAJAKQXU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n children?: string;\n};\n\nexport function EllipsisTooltip(props: EllipsisTooltipProps): React.ReactNode {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n const mouseOver = ():void=>{\n if (ref.current) {\n const typo = ref.current;\n if (typo.clientHeight < typo.scrollHeight) {\n setTooltipDisplay('block');\n }\n }\n }\n\n const mouseOut = ():void=>{\n setTooltipDisplay('none');\n }\n\n ref.current?.addEventListener('mouseenter',mouseOver);\n ref.current?.addEventListener('mouseleave',mouseOut);\n\n }, [children]);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={ref}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n WebkitLineClamp: lineClamp,\n\n display:'-webkit-box',\n WebkitBoxOrient: 'vertical',\n wordBreak: 'break-word',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n}"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,WAAW,QAAQ,gBAAgB;AAsC7C;AA7BC,SAAS,gBAAgB,OAA8C;AAC5E,QAAoD,YAA5C,YAAU,OAAO,YAAY,EAVvC,IAUsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AAExC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAjBlB,QAAAA,KAAA;AAkBI,UAAM,YAAY,MAAS;AACzB,UAAI,IAAI,SAAS;AACf,cAAM,OAAO,IAAI;AACjB,YAAI,KAAK,eAAe,KAAK,cAAc;AACzC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAAA,IACF;AAEA,UAAM,WAAW,MAAS;AACxB,wBAAkB,MAAM;AAAA,IAC1B;AAED,KAAAA,MAAA,IAAI,YAAJ,gBAAAA,IAAa,iBAAiB,cAAa;AAC3C,cAAI,YAAJ,mBAAa,iBAAiB,cAAa;AAAA,EAE5C,GAAG,CAAC,QAAQ,CAAC;AAEb,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,iBAAiB;AAAA,QAEjB,SAAQ;AAAA,QACR,iBAAiB;AAAA,QACjB,WAAW;AAAA,SACR;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ;","names":["_a"]}
|
package/dist/chunk-RET725VL.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "./chunk-N552FDTV.js";
|
|
6
|
-
|
|
7
|
-
// src/atoms/button.tsx
|
|
8
|
-
import {
|
|
9
|
-
Button as RadixButton
|
|
10
|
-
} from "@radix-ui/themes";
|
|
11
|
-
import { forwardRef, useMemo } from "react";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
var Button = forwardRef(
|
|
14
|
-
(props, ref) => {
|
|
15
|
-
const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
|
|
16
|
-
const radixSize = useMemo(() => {
|
|
17
|
-
switch (size) {
|
|
18
|
-
case "small":
|
|
19
|
-
return "2";
|
|
20
|
-
case "medium":
|
|
21
|
-
return "3";
|
|
22
|
-
case "large":
|
|
23
|
-
return "4";
|
|
24
|
-
default:
|
|
25
|
-
return "3";
|
|
26
|
-
}
|
|
27
|
-
}, [size]);
|
|
28
|
-
return /* @__PURE__ */ jsx(RadixButton, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
Button.displayName = "Button";
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
Button
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=chunk-RET725VL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/button.tsx"],"sourcesContent":["import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size'> & {\n size: 'small' | 'medium' | 'large';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '2';\n case 'medium':\n return '3';\n case 'large':\n return '4';\n default:\n return '3';\n }\n }, [size]);\n\n return <RadixButton {...restProps} ref={ref} size={radixSize} />;\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAgB,YAAY,eAAe;AAuBhC;AAjBJ,IAAM,SAAS;AAAA,EACpB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,OAZZ,IAYmC,IAAd,sBAAc,IAAd,CAAT;AAER,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WAAO,oBAAC,8CAAgB,YAAhB,EAA2B,KAAU,MAAM,YAAW;AAAA,EAChE;AACF;AAEA,OAAO,cAAc;","names":[]}
|
package/dist/chunk-RNB2T5NJ.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-ACVANQJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/ellipsis-tooltip.tsx
|
|
14
|
-
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
var EllipsisTooltip = forwardRef((props, maybeRef) => {
|
|
17
|
-
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const typoRef = maybeRef || ref;
|
|
20
|
-
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
21
|
-
"none"
|
|
22
|
-
);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
}, []);
|
|
25
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
26
|
-
Typo,
|
|
27
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
28
|
-
ref: typoRef,
|
|
29
|
-
style: __spreadValues({
|
|
30
|
-
width: "100%",
|
|
31
|
-
textOverflow: "ellipsis",
|
|
32
|
-
overflow: "hidden",
|
|
33
|
-
display: "-webkit-box",
|
|
34
|
-
WebkitLineClamp: lineClamp,
|
|
35
|
-
wordBreak: "break-word",
|
|
36
|
-
lineHeight: "1.5",
|
|
37
|
-
height: "calc(1.5 * 1em * 2)"
|
|
38
|
-
}, style),
|
|
39
|
-
children
|
|
40
|
-
})
|
|
41
|
-
) });
|
|
42
|
-
});
|
|
43
|
-
EllipsisTooltip.displayName = "EllipsisTooltip";
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
EllipsisTooltip
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=chunk-RNB2T5NJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport const EllipsisTooltip = forwardRef<\n HTMLSpanElement,\n EllipsisTooltipProps\n>((props: EllipsisTooltipProps, maybeRef): React.ReactNode => {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n const typoRef = maybeRef || ref;\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n // if (maybeRef) {\n // const typo = typoRef;\n // if (typo.scrollWidth > typo.clientWidth) {\n // setTooltipDisplay('block');\n // } else {\n // setTooltipDisplay('none');\n // }\n // }\n }, []);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={typoRef}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n display:'-webkit-box',\n WebkitLineClamp: lineClamp,\n wordBreak: 'break-word',\n lineHeight: '1.5',\n height: 'calc(1.5 * 1em * 2)',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n});\n\nEllipsisTooltip.displayName = 'EllipsisTooltip';\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,YAAY,WAAW,QAAQ,gBAAgB;AAgCzD;AAxBC,IAAM,kBAAkB,WAG7B,CAAC,OAA6B,aAA8B;AAC5D,QAAoD,YAA5C,YAAU,OAAO,YAAY,EAZvC,IAYsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,UAAU,YAAY;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAAA,EAShB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC,KAAK;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,SAAQ;AAAA,QACR,iBAAiB;AAAA,QACjB,WAAW;AAAA,QACX,YAAY;AAAA,QACZ,QAAQ;AAAA,SACL;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
|
package/dist/chunk-RYUIQBUD.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Typo
|
|
3
|
-
} from "./chunk-O3XTRD7R.js";
|
|
4
|
-
import {
|
|
5
|
-
Flex
|
|
6
|
-
} from "./chunk-25HMMI7R.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-RET725VL.js";
|
|
10
|
-
|
|
11
|
-
// src/molecules/navigation.tsx
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
function Navigation({
|
|
14
|
-
items,
|
|
15
|
-
fontColor,
|
|
16
|
-
backgroundColor
|
|
17
|
-
}) {
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
-
Flex,
|
|
20
|
-
{
|
|
21
|
-
direction: "column",
|
|
22
|
-
gap: "4",
|
|
23
|
-
style: {
|
|
24
|
-
color: fontColor || "var(--white-a12)",
|
|
25
|
-
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
26
|
-
},
|
|
27
|
-
children: items == null ? void 0 : items.map((item) => {
|
|
28
|
-
const { key, title, icon, itemRender, onClick, children } = item;
|
|
29
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
30
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
31
|
-
icon,
|
|
32
|
-
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
33
|
-
] }),
|
|
34
|
-
children == null ? void 0 : children.map((el) => {
|
|
35
|
-
return el.itemRender ? el.itemRender(el) : (
|
|
36
|
-
// <Flex
|
|
37
|
-
// align="center"
|
|
38
|
-
// height="32px"
|
|
39
|
-
// key={el.key}
|
|
40
|
-
// ml="6"
|
|
41
|
-
// onClick={onClick}
|
|
42
|
-
// pl="2"
|
|
43
|
-
// pr="2"
|
|
44
|
-
// >
|
|
45
|
-
// <Typo variant="subtitle">{el.title}</Typo>
|
|
46
|
-
// </Flex>
|
|
47
|
-
/* @__PURE__ */ jsx(Button, { size: "large", children: el.title })
|
|
48
|
-
);
|
|
49
|
-
})
|
|
50
|
-
] }, key);
|
|
51
|
-
})
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
Navigation
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=chunk-RYUIQBUD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" height=\"36px\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n // <Flex\n // align=\"center\"\n // height=\"32px\"\n // key={el.key}\n // ml=\"6\"\n // onClick={onClick}\n // pl=\"2\"\n // pr=\"2\"\n // >\n // <Typo variant=\"subtitle\">{el.title}</Typo>\n // </Flex>\n <Button size={'large'}>{el.title}</Button>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,QAAO,QAAO,IAAG,KAAI,IAAG,KAClD;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAahB,oBAAC,UAAO,MAAM,SAAU,aAAG,OAAM;AAAA;AAAA,UAErC;AAAA,aA1B4B,GA2B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-SDAJ6NLJ.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// src/charts/vertical-bar-chart.tsx
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
function VerticalBarChart(props) {
|
|
4
|
-
const { total, value, backgroundColor, barColor, height } = props;
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: "tipp_vertical-bar-chart bar-wrapper",
|
|
9
|
-
style: { height, backgroundColor },
|
|
10
|
-
children: /* @__PURE__ */ jsx("div", { style: { width: `${value / total}%`, height }, children: /* @__PURE__ */ jsx(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
className: "tipp_vertical-bar-chart bar",
|
|
14
|
-
style: { backgroundColor: barColor }
|
|
15
|
-
}
|
|
16
|
-
) })
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
VerticalBarChart
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=chunk-SDAJ6NLJ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/charts/vertical-bar-chart.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface VerticalBarChartProps {\n /** 100% 바가 뜻하는 전체 값 */\n total: number;\n /** 화면에 채워져보이는 값 */\n value: number;\n /** 배경 색상 */\n backgroundColor?: string;\n /** 바의 색상 */\n barColor?: string;\n /** 바의 높이 */\n height?: number;\n}\n\nexport function VerticalBarChart(\n props: VerticalBarChartProps\n): React.ReactNode {\n const { total, value, backgroundColor, barColor, height } = props;\n return (\n <div\n className=\"tipp_vertical-bar-chart bar-wrapper\"\n style={{ height, backgroundColor }}\n >\n <div style={{ width: `${value / total}%`, height }}>\n <div\n className=\"tipp_vertical-bar-chart bar\"\n style={{ backgroundColor: barColor }}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";AAyBQ;AAVD,SAAS,iBACd,OACiB;AACjB,QAAM,EAAE,OAAO,OAAO,iBAAiB,UAAU,OAAO,IAAI;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,gBAAgB;AAAA,MAEjC,8BAAC,SAAI,OAAO,EAAE,OAAO,GAAG,QAAQ,KAAK,KAAK,OAAO,GAC/C;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,iBAAiB,SAAS;AAAA;AAAA,MACrC,GACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-SKDEOPP2.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Flex
|
|
3
|
-
} from "./chunk-25HMMI7R.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
|
|
8
|
-
// src/molecules/navigation.tsx
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
function Navigation({
|
|
11
|
-
items,
|
|
12
|
-
fontColor,
|
|
13
|
-
backgroundColor
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
-
Flex,
|
|
17
|
-
{
|
|
18
|
-
direction: "column",
|
|
19
|
-
gap: "4",
|
|
20
|
-
style: {
|
|
21
|
-
color: fontColor || "var(--white-a12)",
|
|
22
|
-
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
23
|
-
},
|
|
24
|
-
children: items == null ? void 0 : items.map((item) => {
|
|
25
|
-
const { key, title, icon, itemRender, onClick, children } = item;
|
|
26
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
27
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
|
|
28
|
-
icon,
|
|
29
|
-
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
30
|
-
] }),
|
|
31
|
-
children == null ? void 0 : children.map((el) => {
|
|
32
|
-
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
|
|
33
|
-
Flex,
|
|
34
|
-
{
|
|
35
|
-
align: "center",
|
|
36
|
-
ml: "7",
|
|
37
|
-
onClick,
|
|
38
|
-
pl: "2",
|
|
39
|
-
pr: "2",
|
|
40
|
-
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
41
|
-
},
|
|
42
|
-
el.key
|
|
43
|
-
);
|
|
44
|
-
})
|
|
45
|
-
] }, key);
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
Navigation
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=chunk-SKDEOPP2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n align=\"center\"\n key={el.key}\n ml=\"7\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBAEN,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAxB4B,GAyB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-SONXRHVK.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Typo
|
|
3
|
-
} from "./chunk-O3XTRD7R.js";
|
|
4
|
-
import {
|
|
5
|
-
Flex
|
|
6
|
-
} from "./chunk-25HMMI7R.js";
|
|
7
|
-
import {
|
|
8
|
-
Button
|
|
9
|
-
} from "./chunk-AQX7DQLI.js";
|
|
10
|
-
|
|
11
|
-
// src/molecules/navigation.tsx
|
|
12
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
function Navigation({
|
|
14
|
-
items,
|
|
15
|
-
fontColor,
|
|
16
|
-
backgroundColor,
|
|
17
|
-
activeKey
|
|
18
|
-
}) {
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
20
|
-
Flex,
|
|
21
|
-
{
|
|
22
|
-
direction: "column",
|
|
23
|
-
gap: "4",
|
|
24
|
-
style: {
|
|
25
|
-
color: fontColor || "var(--white-a12)",
|
|
26
|
-
backgroundColor: backgroundColor || "var(--black-a12)"
|
|
27
|
-
},
|
|
28
|
-
children: items == null ? void 0 : items.map((item) => {
|
|
29
|
-
const { key, title, icon, itemRender, onClick, children } = item;
|
|
30
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
31
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
32
|
-
icon,
|
|
33
|
-
/* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
|
|
34
|
-
] }),
|
|
35
|
-
children == null ? void 0 : children.map((menu) => {
|
|
36
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ jsx(
|
|
37
|
-
Button,
|
|
38
|
-
{
|
|
39
|
-
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
40
|
-
ml: "6",
|
|
41
|
-
onClick,
|
|
42
|
-
size: "large",
|
|
43
|
-
style: { color: "var(--white-a12)" },
|
|
44
|
-
children: menu.title
|
|
45
|
-
},
|
|
46
|
-
menu.key
|
|
47
|
-
);
|
|
48
|
-
})
|
|
49
|
-
] }, key);
|
|
50
|
-
})
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
Navigation
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=chunk-SONXRHVK.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Button, Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n activeKey?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n activeKey,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" height=\"36px\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((menu) => {\n return menu.itemRender ? (\n menu.itemRender(menu)\n ) : (\n <Button\n className={`tipp-navigation-button ${activeKey === menu.key ? 'active' : ''}`}\n key={menu.key}\n ml=\"6\"\n onClick={onClick}\n size=\"large\"\n style={{ color: 'var(--white-a12)' }}\n >\n {menu.title}\n </Button>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;AAyCc,SAEE,KAFF;AAtBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,QAAO,QAAO,IAAG,KAAI,IAAG,KAClD;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,SAAS;AACvB,mBAAO,KAAK,aACV,KAAK,WAAW,IAAI,IAEpB;AAAA,cAAC;AAAA;AAAA,gBACC,WAAW,0BAA0B,cAAc,KAAK,MAAM,WAAW,EAAE;AAAA,gBAE3E,IAAG;AAAA,gBACH;AAAA,gBACA,MAAK;AAAA,gBACL,OAAO,EAAE,OAAO,mBAAmB;AAAA,gBAElC,eAAK;AAAA;AAAA,cAND,KAAK;AAAA,YAOZ;AAAA,UAEJ;AAAA,aAxB4B,GAyB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-SQ5HD7LD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-SQ5HD7LD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/chunk-TBXRPM4O.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip
|
|
3
|
-
} from "./chunk-ACVANQJ4.js";
|
|
4
|
-
import {
|
|
5
|
-
Typo
|
|
6
|
-
} from "./chunk-O3XTRD7R.js";
|
|
7
|
-
import {
|
|
8
|
-
__objRest,
|
|
9
|
-
__spreadProps,
|
|
10
|
-
__spreadValues
|
|
11
|
-
} from "./chunk-N552FDTV.js";
|
|
12
|
-
|
|
13
|
-
// src/atoms/ellipsis-tooltip.tsx
|
|
14
|
-
import { useEffect, useRef, useState } from "react";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
function EllipsisTooltip(props) {
|
|
17
|
-
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
18
|
-
const ref = useRef(null);
|
|
19
|
-
const [tooltipDisplay, setTooltipDisplay] = useState(
|
|
20
|
-
"none"
|
|
21
|
-
);
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
var _a2;
|
|
24
|
-
const mouseOver = () => {
|
|
25
|
-
if (ref.current) {
|
|
26
|
-
const typo = ref.current;
|
|
27
|
-
if (typo.scrollWidth > typo.clientWidth) {
|
|
28
|
-
setTooltipDisplay("block");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
const mouseOut = () => {
|
|
33
|
-
setTooltipDisplay("none");
|
|
34
|
-
};
|
|
35
|
-
(_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", () => {
|
|
36
|
-
});
|
|
37
|
-
}, [ref]);
|
|
38
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
39
|
-
Typo,
|
|
40
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
41
|
-
ref,
|
|
42
|
-
style: __spreadValues({
|
|
43
|
-
width: "100%",
|
|
44
|
-
textOverflow: "ellipsis",
|
|
45
|
-
overflow: "hidden",
|
|
46
|
-
WebkitLineClamp: lineClamp,
|
|
47
|
-
display: "-webkit-box",
|
|
48
|
-
WebkitBoxOrient: "vertical",
|
|
49
|
-
wordBreak: "break-word"
|
|
50
|
-
}, style),
|
|
51
|
-
children
|
|
52
|
-
})
|
|
53
|
-
) });
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
EllipsisTooltip
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=chunk-TBXRPM4O.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport function EllipsisTooltip(props: EllipsisTooltipProps): React.ReactNode {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n \n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n const mouseOver = ()=>{\n if (ref.current) {\n const typo = ref.current;\n if (typo.scrollWidth > typo.clientWidth) {\n setTooltipDisplay('block');\n } \n }\n }\n\n const mouseOut = ()=>{\n setTooltipDisplay('none');\n }\n\n ref.current?.addEventListener(('mouseenter'),()=>{});\n }, [ref]);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={ref}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n WebkitLineClamp: lineClamp,\n\n display:'-webkit-box',\n WebkitBoxOrient: 'vertical',\n wordBreak: 'break-word',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n} "],"mappings":";;;;;;;;;;;;;AAAA,SAA4B,WAAW,QAAQ,gBAAgB;AAmCzD;AA3BC,SAAS,gBAAgB,OAA8C;AAC5E,QAAoD,YAA5C,YAAU,OAAO,YAAY,EATvC,IASsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AAExC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAhBlB,QAAAA;AAiBI,UAAM,YAAY,MAAI;AACpB,UAAI,IAAI,SAAS;AACf,cAAM,OAAO,IAAI;AACjB,YAAI,KAAK,cAAc,KAAK,aAAa;AACvC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAAA,IACF;AAEA,UAAM,WAAW,MAAI;AACnB,wBAAkB,MAAM;AAAA,IAC1B;AAED,KAAAA,MAAA,IAAI,YAAJ,gBAAAA,IAAa,iBAAkB,cAAc,MAAI;AAAA,IAAC;AAAA,EACnD,GAAG,CAAC,GAAG,CAAC;AAER,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC;AAAA,MACA,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,iBAAiB;AAAA,QAEjB,SAAQ;AAAA,QACR,iBAAiB;AAAA,QACjB,WAAW;AAAA,SACR;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ;","names":["_a"]}
|
package/dist/chunk-TG7PURWS.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/charts/horizontal-bar-chart.tsx
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
function HorizontalBarChart(props) {
|
|
4
|
-
const { total, value, backgroundColor, barColor, height } = props;
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: "tipp_horizontal-bar-chart bar-wrapper",
|
|
9
|
-
style: { height, backgroundColor },
|
|
10
|
-
children: /* @__PURE__ */ jsx("div", { style: { width: `${Math.round(value / total * 100)}%`, height }, children: /* @__PURE__ */ jsx("div", { className: "bar", style: { backgroundColor: barColor } }) })
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
HorizontalBarChart
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=chunk-TG7PURWS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/charts/horizontal-bar-chart.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface HorizontalBarChartProps {\n /** 100% 바가 뜻하는 전체 값 */\n total: number;\n /** 화면에 채워져보이는 값 */\n value: number;\n /** 배경 색상 */\n backgroundColor?: string;\n /** 바의 색상 */\n barColor?: string;\n /** 바의 높이 */\n height?: number;\n}\n\nexport function HorizontalBarChart(\n props: HorizontalBarChartProps\n): React.ReactNode {\n const { total, value, backgroundColor, barColor, height } = props;\n return (\n <div\n className=\"tipp_horizontal-bar-chart bar-wrapper\"\n style={{ height, backgroundColor }}\n >\n <div style={{ width: `${Math.round((value / total) * 100)}%`, height }}>\n <div className=\"bar\" style={{ backgroundColor: barColor }} />\n </div>\n </div>\n );\n}\n"],"mappings":";AAyBQ;AAVD,SAAS,mBACd,OACiB;AACjB,QAAM,EAAE,OAAO,OAAO,iBAAiB,UAAU,OAAO,IAAI;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,gBAAgB;AAAA,MAEjC,8BAAC,SAAI,OAAO,EAAE,OAAO,GAAG,KAAK,MAAO,QAAQ,QAAS,GAAG,CAAC,KAAK,OAAO,GACnE,8BAAC,SAAI,WAAU,OAAM,OAAO,EAAE,iBAAiB,SAAS,GAAG,GAC7D;AAAA;AAAA,EACF;AAEJ;","names":[]}
|