@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-AVOCFCEQ.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__spreadProps,
|
|
3
|
-
__spreadValues
|
|
4
|
-
} from "./chunk-N552FDTV.js";
|
|
5
|
-
|
|
6
|
-
// src/charts/chart.tsx
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { useResizeDetector } from "react-resize-detector";
|
|
9
|
-
import ReactECharts from "echarts-for-react";
|
|
10
|
-
import { merge } from "lodash-es";
|
|
11
|
-
|
|
12
|
-
// src/charts/chart-theme.json
|
|
13
|
-
var chart_theme_default = {
|
|
14
|
-
version: 1,
|
|
15
|
-
themeName: "customed",
|
|
16
|
-
theme: {
|
|
17
|
-
seriesCnt: "5",
|
|
18
|
-
backgroundColor: "rgba(0,0,0,0)",
|
|
19
|
-
titleColor: "#1c2024",
|
|
20
|
-
subtitleColor: "#8d8d8d",
|
|
21
|
-
textColorShow: false,
|
|
22
|
-
textColor: "#333",
|
|
23
|
-
markTextColor: "#ffffff",
|
|
24
|
-
color: [
|
|
25
|
-
"#ffe629",
|
|
26
|
-
"#3e63dd",
|
|
27
|
-
"#ec9455",
|
|
28
|
-
"#5bb98b",
|
|
29
|
-
"#cb1d63",
|
|
30
|
-
"#3ba272",
|
|
31
|
-
"#fc8452",
|
|
32
|
-
"#9a60b4",
|
|
33
|
-
"#ea7ccc"
|
|
34
|
-
],
|
|
35
|
-
borderColor: "#8d8d8d",
|
|
36
|
-
borderWidth: 0,
|
|
37
|
-
visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
|
|
38
|
-
legendTextColor: "#1c2024",
|
|
39
|
-
kColor: "#eb5454",
|
|
40
|
-
kColor0: "#47b262",
|
|
41
|
-
kBorderColor: "#eb5454",
|
|
42
|
-
kBorderColor0: "#47b262",
|
|
43
|
-
kBorderWidth: 1,
|
|
44
|
-
lineWidth: 2,
|
|
45
|
-
symbolSize: 4,
|
|
46
|
-
symbol: "emptyCircle",
|
|
47
|
-
symbolBorderWidth: 1,
|
|
48
|
-
lineSmooth: false,
|
|
49
|
-
graphLineWidth: 1,
|
|
50
|
-
graphLineColor: "#aaa",
|
|
51
|
-
mapLabelColor: "#000",
|
|
52
|
-
mapLabelColorE: "rgb(100,0,0)",
|
|
53
|
-
mapBorderColor: "#444",
|
|
54
|
-
mapBorderColorE: "#444",
|
|
55
|
-
mapBorderWidth: 0.5,
|
|
56
|
-
mapBorderWidthE: 1,
|
|
57
|
-
mapAreaColor: "#eee",
|
|
58
|
-
mapAreaColorE: "rgba(255,215,0,0.8)",
|
|
59
|
-
axes: [
|
|
60
|
-
{
|
|
61
|
-
type: "all",
|
|
62
|
-
name: "\u901A\u7528\u5750\u6807\u8F74",
|
|
63
|
-
axisLineShow: true,
|
|
64
|
-
axisLineColor: "#6E7079",
|
|
65
|
-
axisTickShow: true,
|
|
66
|
-
axisTickColor: "#6E7079",
|
|
67
|
-
axisLabelShow: true,
|
|
68
|
-
axisLabelColor: "#6E7079",
|
|
69
|
-
splitLineShow: true,
|
|
70
|
-
splitLineColor: ["#E0E6F1"],
|
|
71
|
-
splitAreaShow: false,
|
|
72
|
-
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
type: "category",
|
|
76
|
-
name: "\u7C7B\u76EE\u5750\u6807\u8F74",
|
|
77
|
-
axisLineShow: true,
|
|
78
|
-
axisLineColor: "#6E7079",
|
|
79
|
-
axisTickShow: true,
|
|
80
|
-
axisTickColor: "#6E7079",
|
|
81
|
-
axisLabelShow: true,
|
|
82
|
-
axisLabelColor: "#6E7079",
|
|
83
|
-
splitLineShow: false,
|
|
84
|
-
splitLineColor: ["#E0E6F1"],
|
|
85
|
-
splitAreaShow: false,
|
|
86
|
-
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
type: "value",
|
|
90
|
-
name: "\u6570\u503C\u5750\u6807\u8F74",
|
|
91
|
-
axisLineShow: false,
|
|
92
|
-
axisLineColor: "#6E7079",
|
|
93
|
-
axisTickShow: false,
|
|
94
|
-
axisTickColor: "#6E7079",
|
|
95
|
-
axisLabelShow: true,
|
|
96
|
-
axisLabelColor: "#6E7079",
|
|
97
|
-
splitLineShow: true,
|
|
98
|
-
splitLineColor: ["#E0E6F1"],
|
|
99
|
-
splitAreaShow: false,
|
|
100
|
-
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
type: "log",
|
|
104
|
-
name: "\u5BF9\u6570\u5750\u6807\u8F74",
|
|
105
|
-
axisLineShow: false,
|
|
106
|
-
axisLineColor: "#6E7079",
|
|
107
|
-
axisTickShow: false,
|
|
108
|
-
axisTickColor: "#6E7079",
|
|
109
|
-
axisLabelShow: true,
|
|
110
|
-
axisLabelColor: "#6E7079",
|
|
111
|
-
splitLineShow: true,
|
|
112
|
-
splitLineColor: ["#E0E6F1"],
|
|
113
|
-
splitAreaShow: false,
|
|
114
|
-
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
type: "time",
|
|
118
|
-
name: "\u65F6\u95F4\u5750\u6807\u8F74",
|
|
119
|
-
axisLineShow: true,
|
|
120
|
-
axisLineColor: "#6E7079",
|
|
121
|
-
axisTickShow: true,
|
|
122
|
-
axisTickColor: "#6E7079",
|
|
123
|
-
axisLabelShow: true,
|
|
124
|
-
axisLabelColor: "#6E7079",
|
|
125
|
-
splitLineShow: false,
|
|
126
|
-
splitLineColor: ["#E0E6F1"],
|
|
127
|
-
splitAreaShow: false,
|
|
128
|
-
splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
axisSeperateSetting: true,
|
|
132
|
-
toolboxColor: "#8d8d8d",
|
|
133
|
-
toolboxEmphasisColor: "#1c2024",
|
|
134
|
-
tooltipAxisColor: "#cccccc",
|
|
135
|
-
tooltipAxisWidth: 1,
|
|
136
|
-
timelineLineColor: "#dae1f5",
|
|
137
|
-
timelineLineWidth: 2,
|
|
138
|
-
timelineItemColor: "#a4b1d7",
|
|
139
|
-
timelineItemColorE: "#ffffff",
|
|
140
|
-
timelineCheckColor: "#316bf3",
|
|
141
|
-
timelineCheckBorderColor: "#ffffff",
|
|
142
|
-
timelineItemBorderWidth: 1,
|
|
143
|
-
timelineControlColor: "#a4b1d7",
|
|
144
|
-
timelineControlBorderColor: "#a4b1d7",
|
|
145
|
-
timelineControlBorderWidth: 1,
|
|
146
|
-
timelineLabelColor: "#a4b1d7"
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// src/charts/chart.tsx
|
|
151
|
-
import { jsx } from "react/jsx-runtime";
|
|
152
|
-
function Chart(props) {
|
|
153
|
-
const { width, height, ref } = useResizeDetector({
|
|
154
|
-
handleHeight: false,
|
|
155
|
-
refreshMode: "debounce",
|
|
156
|
-
refreshRate: 100
|
|
157
|
-
});
|
|
158
|
-
const option = useMemo(() => {
|
|
159
|
-
const baseOption = {
|
|
160
|
-
textStyle: { fontFamily: "Noto Sans KR" },
|
|
161
|
-
tooltip: { textStyle: { fontSize: 16 } }
|
|
162
|
-
};
|
|
163
|
-
return merge(baseOption, props.option);
|
|
164
|
-
}, [props.option]);
|
|
165
|
-
return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
|
|
166
|
-
ReactECharts,
|
|
167
|
-
__spreadProps(__spreadValues({
|
|
168
|
-
renderer: "svg",
|
|
169
|
-
style: { width, height },
|
|
170
|
-
theme: chart_theme_default
|
|
171
|
-
}, props), {
|
|
172
|
-
option
|
|
173
|
-
})
|
|
174
|
-
) });
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export {
|
|
178
|
-
chart_theme_default,
|
|
179
|
-
Chart
|
|
180
|
-
};
|
|
181
|
-
//# sourceMappingURL=chunk-AVOCFCEQ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/charts/chart.tsx","../src/charts/chart-theme.json"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport ReactECharts from 'echarts-for-react';\nimport type { EChartOption } from 'echarts';\nimport { merge } from 'lodash-es';\nimport chartTheme from './chart-theme.json';\n\nexport { chartTheme };\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof ReactECharts>,\n 'option'\n> & {\n option: EChartOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartOption = {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactECharts\n renderer=\"svg\"\n style={{ width, height }}\n theme={chartTheme}\n {...props}\n option={option}\n />\n </div>\n );\n}\n","{\n \"version\": 1,\n \"themeName\": \"customed\",\n \"theme\": {\n \"seriesCnt\": \"5\",\n \"backgroundColor\": \"rgba(0,0,0,0)\",\n \"titleColor\": \"#1c2024\",\n \"subtitleColor\": \"#8d8d8d\",\n \"textColorShow\": false,\n \"textColor\": \"#333\",\n \"markTextColor\": \"#ffffff\",\n \"color\": [\n \"#ffe629\",\n \"#3e63dd\",\n \"#ec9455\",\n \"#5bb98b\",\n \"#cb1d63\",\n \"#3ba272\",\n \"#fc8452\",\n \"#9a60b4\",\n \"#ea7ccc\"\n ],\n \"borderColor\": \"#8d8d8d\",\n \"borderWidth\": 0,\n \"visualMapColor\": [\"#bf444c\", \"#d88273\", \"#f6efa6\"],\n \"legendTextColor\": \"#1c2024\",\n \"kColor\": \"#eb5454\",\n \"kColor0\": \"#47b262\",\n \"kBorderColor\": \"#eb5454\",\n \"kBorderColor0\": \"#47b262\",\n \"kBorderWidth\": 1,\n \"lineWidth\": 2,\n \"symbolSize\": 4,\n \"symbol\": \"emptyCircle\",\n \"symbolBorderWidth\": 1,\n \"lineSmooth\": false,\n \"graphLineWidth\": 1,\n \"graphLineColor\": \"#aaa\",\n \"mapLabelColor\": \"#000\",\n \"mapLabelColorE\": \"rgb(100,0,0)\",\n \"mapBorderColor\": \"#444\",\n \"mapBorderColorE\": \"#444\",\n \"mapBorderWidth\": 0.5,\n \"mapBorderWidthE\": 1,\n \"mapAreaColor\": \"#eee\",\n \"mapAreaColorE\": \"rgba(255,215,0,0.8)\",\n \"axes\": [\n {\n \"type\": \"all\",\n \"name\": \"通用坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"category\",\n \"name\": \"类目坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"value\",\n \"name\": \"数值坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"log\",\n \"name\": \"对数坐标轴\",\n \"axisLineShow\": false,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": false,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": true,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n },\n {\n \"type\": \"time\",\n \"name\": \"时间坐标轴\",\n \"axisLineShow\": true,\n \"axisLineColor\": \"#6E7079\",\n \"axisTickShow\": true,\n \"axisTickColor\": \"#6E7079\",\n \"axisLabelShow\": true,\n \"axisLabelColor\": \"#6E7079\",\n \"splitLineShow\": false,\n \"splitLineColor\": [\"#E0E6F1\"],\n \"splitAreaShow\": false,\n \"splitAreaColor\": [\"rgba(250,250,250,0.2)\", \"rgba(210,219,238,0.2)\"]\n }\n ],\n \"axisSeperateSetting\": true,\n \"toolboxColor\": \"#8d8d8d\",\n \"toolboxEmphasisColor\": \"#1c2024\",\n \"tooltipAxisColor\": \"#cccccc\",\n \"tooltipAxisWidth\": 1,\n \"timelineLineColor\": \"#dae1f5\",\n \"timelineLineWidth\": 2,\n \"timelineItemColor\": \"#a4b1d7\",\n \"timelineItemColorE\": \"#ffffff\",\n \"timelineCheckColor\": \"#316bf3\",\n \"timelineCheckBorderColor\": \"#ffffff\",\n \"timelineItemBorderWidth\": 1,\n \"timelineControlColor\": \"#a4b1d7\",\n \"timelineControlBorderColor\": \"#a4b1d7\",\n \"timelineControlBorderWidth\": 1,\n \"timelineLabelColor\": \"#a4b1d7\"\n }\n}\n"],"mappings":"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","names":[]}
|
package/dist/chunk-AXM27M2R.js
DELETED
|
@@ -1,43 +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({
|
|
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(Flex, { align: "center", onClick, pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
|
|
33
|
-
})
|
|
34
|
-
] }, key);
|
|
35
|
-
})
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
Navigation
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=chunk-AXM27M2R.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 align=\"center\" key={el.key} onClick={onClick} pl=\"7\">\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,oBAAC,QAAK,OAAM,UAAsB,SAAkB,IAAG,KACrD,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KADX,GAAG,GAE7B;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-B7R4QL7D.js
DELETED
|
@@ -1,55 +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: "6",
|
|
37
|
-
onClick,
|
|
38
|
-
pl: "2",
|
|
39
|
-
pr: "2",
|
|
40
|
-
className: "hover:bg-gray-800",
|
|
41
|
-
children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
|
|
42
|
-
},
|
|
43
|
-
el.key
|
|
44
|
-
);
|
|
45
|
-
})
|
|
46
|
-
] }, key);
|
|
47
|
-
})
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
Navigation
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=chunk-B7R4QL7D.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=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n className=\"hover:bg-gray-800\"\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,gBACH,WAAU;AAAA,gBAEV,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAP9B,GAAG;AAAA,YAQV;AAAA,UAEJ;AAAA,aAzB4B,GA0B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
|
package/dist/chunk-BH2MBAAY.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-BH2MBAAY.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 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;AAmCzD;AA3BC,SAAS,gBAAgB,OAA8C;AAC5E,QAAoD,YAA5C,YAAU,OAAO,YAAY,EATvC,IASsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAflB,QAAAA,KAAA;AAgBI,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-C5QSBSVB.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 && children) {
|
|
26
|
-
const typo = ref.current;
|
|
27
|
-
if (typo.innerText !== children) {
|
|
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.current]);
|
|
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-C5QSBSVB.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 && children) {\n const typo = ref.current;\n if (typo.innerText !== children ) {\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.current]);\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;AAqC7C;AA5BC,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,WAAW,UAAU;AAC3B,cAAM,OAAO,IAAI;AACjB,YAAI,KAAK,cAAc,UAAW;AAChC,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,IAAI,OAAO,CAAC;AAEhB,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-C7BS7VPF.js
DELETED
|
@@ -1,46 +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 } = _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
|
-
wordBreak: "break-word",
|
|
34
|
-
WebkitLineClamp: lineClamp,
|
|
35
|
-
display: "-webkit-box"
|
|
36
|
-
}, style),
|
|
37
|
-
children
|
|
38
|
-
})
|
|
39
|
-
) });
|
|
40
|
-
});
|
|
41
|
-
EllipsisTooltip.displayName = "EllipsisTooltip";
|
|
42
|
-
|
|
43
|
-
export {
|
|
44
|
-
EllipsisTooltip
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=chunk-C7BS7VPF.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 display:'-webkit-box',\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,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,QACjB,SAAQ;AAAA,SACL;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
|
package/dist/chunk-CC3GT7LT.js
DELETED
|
@@ -1,53 +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
|
-
if (ref.current) {
|
|
24
|
-
const typo = ref.current;
|
|
25
|
-
if (typo.scrollWidth > typo.clientWidth) {
|
|
26
|
-
setTooltipDisplay("block");
|
|
27
|
-
} else {
|
|
28
|
-
setTooltipDisplay("none");
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}, []);
|
|
32
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
33
|
-
Typo,
|
|
34
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
35
|
-
ref,
|
|
36
|
-
style: __spreadValues({
|
|
37
|
-
width: "100%",
|
|
38
|
-
textOverflow: "ellipsis",
|
|
39
|
-
overflow: "hidden",
|
|
40
|
-
WebkitLineClamp: lineClamp,
|
|
41
|
-
display: "-webkit-box",
|
|
42
|
-
WebkitBoxOrient: "vertical",
|
|
43
|
-
wordBreak: "break-word"
|
|
44
|
-
}, style),
|
|
45
|
-
children
|
|
46
|
-
})
|
|
47
|
-
) });
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export {
|
|
51
|
-
EllipsisTooltip
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=chunk-CC3GT7LT.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 if (ref.current) {\n const typo = ref.current;\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={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;AA6BzD;AArBC,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;AACd,QAAI,IAAI,SAAS;AACf,YAAM,OAAO,IAAI;AACjB,UAAI,KAAK,cAAc,KAAK,aAAa;AACvC,0BAAkB,OAAO;AAAA,MAC3B,OAAO;AACL,0BAAkB,MAAM;AAAA,MAC1B;AAAA,IACF;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,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":[]}
|
package/dist/chunk-CCZSZZTS.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Flex
|
|
3
|
-
} from "./chunk-25HMMI7R.js";
|
|
4
|
-
|
|
5
|
-
// src/molecules/navigation.tsx
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
function Navigation({ items }) {
|
|
8
|
-
return /* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: items == null ? void 0 : items.map((item) => {
|
|
9
|
-
const { key, title, icon, itemRender, onClick, children } = item;
|
|
10
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
|
|
11
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
|
|
12
|
-
icon,
|
|
13
|
-
title
|
|
14
|
-
] }),
|
|
15
|
-
children == null ? void 0 : children.map((el) => {
|
|
16
|
-
return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { pl: "7", children: el.title }, el.key);
|
|
17
|
-
})
|
|
18
|
-
] }, key);
|
|
19
|
-
}) });
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
Navigation
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=chunk-CCZSZZTS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } 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 {title}\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex key={el.key} pl=\"7\">\n {el.title}\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;AA0Bc,SASE,KATF;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,QACA;AAAA,SACH;AAAA,MAED,qCAAU,IAAI,CAAC,OAAO;AACrB,eAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAkB,IAAG,KACnB,aAAG,SADK,GAAG,GAEd;AAAA,MAEJ;AAAA,SAjB4B,GAkB9B;AAAA,EAEJ,IACF;AAEJ;","names":[]}
|
package/dist/chunk-CMPIGFPT.js
DELETED
|
@@ -1,60 +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
|
-
console.log(typo.scrollWidth, typo.clientWidth);
|
|
28
|
-
if (typo.innerText > children) {
|
|
29
|
-
setTooltipDisplay("block");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
const mouseOut = () => {
|
|
34
|
-
setTooltipDisplay("none");
|
|
35
|
-
};
|
|
36
|
-
(_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", mouseOver);
|
|
37
|
-
(_b = ref.current) == null ? void 0 : _b.addEventListener("mouseleave", mouseOut);
|
|
38
|
-
}, [ref]);
|
|
39
|
-
return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
|
|
40
|
-
Typo,
|
|
41
|
-
__spreadProps(__spreadValues({}, rest), {
|
|
42
|
-
ref,
|
|
43
|
-
style: __spreadValues({
|
|
44
|
-
width: "100%",
|
|
45
|
-
textOverflow: "ellipsis",
|
|
46
|
-
overflow: "hidden",
|
|
47
|
-
WebkitLineClamp: lineClamp,
|
|
48
|
-
display: "-webkit-box",
|
|
49
|
-
WebkitBoxOrient: "vertical",
|
|
50
|
-
wordBreak: "break-word"
|
|
51
|
-
}, style),
|
|
52
|
-
children
|
|
53
|
-
})
|
|
54
|
-
) });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
EllipsisTooltip
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=chunk-CMPIGFPT.js.map
|