@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.
Files changed (349) hide show
  1. package/dist/atoms/drawer.cjs +100 -0
  2. package/dist/atoms/drawer.cjs.map +1 -0
  3. package/dist/atoms/drawer.d.cts +20 -0
  4. package/dist/atoms/drawer.d.ts +20 -0
  5. package/dist/atoms/drawer.js +14 -0
  6. package/dist/atoms/index.cjs +38 -0
  7. package/dist/atoms/index.cjs.map +1 -1
  8. package/dist/atoms/index.d.cts +2 -0
  9. package/dist/atoms/index.d.ts +2 -0
  10. package/dist/atoms/index.js +69 -59
  11. package/dist/atoms/pagination.cjs.map +1 -1
  12. package/dist/atoms/pagination.js +3 -3
  13. package/dist/chunk-3ZUBNWIB.js +43 -0
  14. package/dist/chunk-3ZUBNWIB.js.map +1 -0
  15. package/dist/chunk-7WNX674B.js +42 -0
  16. package/dist/chunk-7WNX674B.js.map +1 -0
  17. package/dist/chunk-AAXOSNY3.js +41 -0
  18. package/dist/chunk-AAXOSNY3.js.map +1 -0
  19. package/dist/chunk-AGMMAML3.js +1 -0
  20. package/dist/chunk-D6MXCND3.js +33 -0
  21. package/dist/chunk-D6MXCND3.js.map +1 -0
  22. package/dist/chunk-HVTHVIGL.js +38 -0
  23. package/dist/chunk-HVTHVIGL.js.map +1 -0
  24. package/dist/chunk-LW3VKJJS.js +33 -0
  25. package/dist/chunk-LW3VKJJS.js.map +1 -0
  26. package/dist/{chunk-MMAV5BRZ.js → chunk-M474I6JB.js} +13 -3
  27. package/dist/chunk-M474I6JB.js.map +1 -0
  28. package/dist/chunk-O5IB6OHB.js +41 -0
  29. package/dist/chunk-O5IB6OHB.js.map +1 -0
  30. package/dist/{chunk-3I5CDBFN.js → chunk-S3SAB2S2.js} +6 -6
  31. package/dist/chunk-TPTFBY6E.js +40 -0
  32. package/dist/chunk-TPTFBY6E.js.map +1 -0
  33. package/dist/chunk-VRFAOMNZ.js +33 -0
  34. package/dist/chunk-VRFAOMNZ.js.map +1 -0
  35. package/dist/chunk-WJY4BPLR.js +43 -0
  36. package/dist/chunk-WJY4BPLR.js.map +1 -0
  37. package/dist/chunk-YQQVYFIL.js +37 -0
  38. package/dist/chunk-YQQVYFIL.js.map +1 -0
  39. package/dist/chunk-ZRCRQ7IC.js +42 -0
  40. package/dist/chunk-ZRCRQ7IC.js.map +1 -0
  41. package/dist/icon.cjs +2 -0
  42. package/dist/icon.cjs.map +1 -1
  43. package/dist/icon.js +3 -1
  44. package/dist/index.cjs +71 -31
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.css +77 -0
  47. package/dist/index.d.cts +2 -0
  48. package/dist/index.d.ts +2 -0
  49. package/dist/index.js +82 -70
  50. package/dist/molecules/expand-table/index.cjs +27 -23
  51. package/dist/molecules/expand-table/index.cjs.map +1 -1
  52. package/dist/molecules/expand-table/index.js +29 -28
  53. package/dist/molecules/expand-table/row.cjs +10 -6
  54. package/dist/molecules/expand-table/row.cjs.map +1 -1
  55. package/dist/molecules/expand-table/row.js +27 -26
  56. package/dist/molecules/index.cjs +33 -29
  57. package/dist/molecules/index.cjs.map +1 -1
  58. package/dist/molecules/index.js +32 -31
  59. package/dist/molecules/navigation.cjs +10 -6
  60. package/dist/molecules/navigation.cjs.map +1 -1
  61. package/dist/molecules/navigation.js +27 -26
  62. package/package.json +2 -1
  63. package/src/atoms/drawer.tsx +37 -0
  64. package/src/atoms/index.ts +1 -1
  65. package/src/icon.ts +1 -0
  66. package/dist/chart/chart.cjs +0 -227
  67. package/dist/chart/chart.cjs.map +0 -1
  68. package/dist/chart/chart.d.cts +0 -179
  69. package/dist/chart/chart.d.ts +0 -179
  70. package/dist/chart/chart.js +0 -179
  71. package/dist/chart/chart.js.map +0 -1
  72. package/dist/charts/vertical-bar-chart.cjs +0 -48
  73. package/dist/charts/vertical-bar-chart.cjs.map +0 -1
  74. package/dist/charts/vertical-bar-chart.d.cts +0 -17
  75. package/dist/charts/vertical-bar-chart.d.ts +0 -17
  76. package/dist/charts/vertical-bar-chart.js +0 -8
  77. package/dist/chunk-2A2IJOVV.js +0 -60
  78. package/dist/chunk-2A2IJOVV.js.map +0 -1
  79. package/dist/chunk-2JZ3UQAX.js +0 -48
  80. package/dist/chunk-2JZ3UQAX.js.map +0 -1
  81. package/dist/chunk-2KZSNTY7.js +0 -23
  82. package/dist/chunk-2KZSNTY7.js.map +0 -1
  83. package/dist/chunk-2QZV2WKV.js +0 -42
  84. package/dist/chunk-2QZV2WKV.js.map +0 -1
  85. package/dist/chunk-2RMZJS2O.js +0 -59
  86. package/dist/chunk-2RMZJS2O.js.map +0 -1
  87. package/dist/chunk-2TGD62PR.js +0 -59
  88. package/dist/chunk-2TGD62PR.js.map +0 -1
  89. package/dist/chunk-3427FUJN.js +0 -46
  90. package/dist/chunk-3427FUJN.js.map +0 -1
  91. package/dist/chunk-34P2PUMC.js +0 -60
  92. package/dist/chunk-34P2PUMC.js.map +0 -1
  93. package/dist/chunk-3K6GFBJT.js +0 -57
  94. package/dist/chunk-3K6GFBJT.js.map +0 -1
  95. package/dist/chunk-3KIARYD6.js +0 -47
  96. package/dist/chunk-3KIARYD6.js.map +0 -1
  97. package/dist/chunk-4RIBUNMS.js +0 -49
  98. package/dist/chunk-4RIBUNMS.js.map +0 -1
  99. package/dist/chunk-4ZQHR3JI.js +0 -47
  100. package/dist/chunk-4ZQHR3JI.js.map +0 -1
  101. package/dist/chunk-5JXZUWR3.js +0 -104
  102. package/dist/chunk-5JXZUWR3.js.map +0 -1
  103. package/dist/chunk-6BXAZV7N.js +0 -63
  104. package/dist/chunk-6BXAZV7N.js.map +0 -1
  105. package/dist/chunk-6GHADQAU.js +0 -59
  106. package/dist/chunk-6GHADQAU.js.map +0 -1
  107. package/dist/chunk-6SGXBZAF.js +0 -62
  108. package/dist/chunk-6SGXBZAF.js.map +0 -1
  109. package/dist/chunk-6XHVFBFO.js +0 -38
  110. package/dist/chunk-6XHVFBFO.js.map +0 -1
  111. package/dist/chunk-6ZEM4FBF.js +0 -64
  112. package/dist/chunk-6ZEM4FBF.js.map +0 -1
  113. package/dist/chunk-754LMJ5L.js +0 -48
  114. package/dist/chunk-754LMJ5L.js.map +0 -1
  115. package/dist/chunk-7QVMAHXH.js +0 -24
  116. package/dist/chunk-7QVMAHXH.js.map +0 -1
  117. package/dist/chunk-7VCJMEPY.js +0 -60
  118. package/dist/chunk-7VCJMEPY.js.map +0 -1
  119. package/dist/chunk-AD4LGJER.js +0 -60
  120. package/dist/chunk-AD4LGJER.js.map +0 -1
  121. package/dist/chunk-ALP5524J.js +0 -55
  122. package/dist/chunk-ALP5524J.js.map +0 -1
  123. package/dist/chunk-AS6NXGBN.js +0 -59
  124. package/dist/chunk-AS6NXGBN.js.map +0 -1
  125. package/dist/chunk-AVOCFCEQ.js +0 -181
  126. package/dist/chunk-AVOCFCEQ.js.map +0 -1
  127. package/dist/chunk-AXM27M2R.js +0 -43
  128. package/dist/chunk-AXM27M2R.js.map +0 -1
  129. package/dist/chunk-B7R4QL7D.js +0 -55
  130. package/dist/chunk-B7R4QL7D.js.map +0 -1
  131. package/dist/chunk-BH2MBAAY.js +0 -59
  132. package/dist/chunk-BH2MBAAY.js.map +0 -1
  133. package/dist/chunk-C5QSBSVB.js +0 -59
  134. package/dist/chunk-C5QSBSVB.js.map +0 -1
  135. package/dist/chunk-C7BS7VPF.js +0 -46
  136. package/dist/chunk-C7BS7VPF.js.map +0 -1
  137. package/dist/chunk-CC3GT7LT.js +0 -53
  138. package/dist/chunk-CC3GT7LT.js.map +0 -1
  139. package/dist/chunk-CCZSZZTS.js +0 -25
  140. package/dist/chunk-CCZSZZTS.js.map +0 -1
  141. package/dist/chunk-CMPIGFPT.js +0 -60
  142. package/dist/chunk-CMPIGFPT.js.map +0 -1
  143. package/dist/chunk-CMWPUK3L.js +0 -10
  144. package/dist/chunk-CMWPUK3L.js.map +0 -1
  145. package/dist/chunk-CODQBUIC.js +0 -59
  146. package/dist/chunk-CODQBUIC.js.map +0 -1
  147. package/dist/chunk-CT7PHRXQ.js +0 -57
  148. package/dist/chunk-CT7PHRXQ.js.map +0 -1
  149. package/dist/chunk-CVOLVQKD.js +0 -60
  150. package/dist/chunk-CVOLVQKD.js.map +0 -1
  151. package/dist/chunk-CXFAL52D.js +0 -60
  152. package/dist/chunk-CXFAL52D.js.map +0 -1
  153. package/dist/chunk-E6EPYWFL.js +0 -53
  154. package/dist/chunk-E6EPYWFL.js.map +0 -1
  155. package/dist/chunk-EJWIO6NJ.js +0 -104
  156. package/dist/chunk-EJWIO6NJ.js.map +0 -1
  157. package/dist/chunk-EM57H7XC.js +0 -48
  158. package/dist/chunk-EM57H7XC.js.map +0 -1
  159. package/dist/chunk-EUS56L3L.js +0 -180
  160. package/dist/chunk-EUS56L3L.js.map +0 -1
  161. package/dist/chunk-FFC2C2ID.js +0 -1
  162. package/dist/chunk-FHXW7BLD.js +0 -61
  163. package/dist/chunk-FHXW7BLD.js.map +0 -1
  164. package/dist/chunk-FVSPOU5C.js +0 -48
  165. package/dist/chunk-FVSPOU5C.js.map +0 -1
  166. package/dist/chunk-FVU2BOJV.js +0 -54
  167. package/dist/chunk-FVU2BOJV.js.map +0 -1
  168. package/dist/chunk-GKHTWD7W.js +0 -24
  169. package/dist/chunk-GKHTWD7W.js.map +0 -1
  170. package/dist/chunk-GOKKEO23.js +0 -53
  171. package/dist/chunk-GOKKEO23.js.map +0 -1
  172. package/dist/chunk-GTDVFQVW.js +0 -28
  173. package/dist/chunk-GTDVFQVW.js.map +0 -1
  174. package/dist/chunk-GUTTFFCR.js +0 -36
  175. package/dist/chunk-GUTTFFCR.js.map +0 -1
  176. package/dist/chunk-GZG4UOJZ.js +0 -43
  177. package/dist/chunk-GZG4UOJZ.js.map +0 -1
  178. package/dist/chunk-GZHSO6CW.js +0 -36
  179. package/dist/chunk-GZHSO6CW.js.map +0 -1
  180. package/dist/chunk-GZYKC7MR.js +0 -119
  181. package/dist/chunk-GZYKC7MR.js.map +0 -1
  182. package/dist/chunk-H2TF3WTO.js +0 -55
  183. package/dist/chunk-H2TF3WTO.js.map +0 -1
  184. package/dist/chunk-HE3XMGS3.js +0 -25
  185. package/dist/chunk-HE3XMGS3.js.map +0 -1
  186. package/dist/chunk-HR3KN5AE.js +0 -39
  187. package/dist/chunk-HR3KN5AE.js.map +0 -1
  188. package/dist/chunk-HRQSHRGQ.js +0 -59
  189. package/dist/chunk-HRQSHRGQ.js.map +0 -1
  190. package/dist/chunk-HVMWNAXK.js +0 -60
  191. package/dist/chunk-HVMWNAXK.js.map +0 -1
  192. package/dist/chunk-I3ZZQ6QJ.js +0 -34
  193. package/dist/chunk-I3ZZQ6QJ.js.map +0 -1
  194. package/dist/chunk-I6D4HPRN.js +0 -60
  195. package/dist/chunk-I6D4HPRN.js.map +0 -1
  196. package/dist/chunk-I7YPDRXO.js +0 -62
  197. package/dist/chunk-I7YPDRXO.js.map +0 -1
  198. package/dist/chunk-IUZOBUV4.js +0 -57
  199. package/dist/chunk-IUZOBUV4.js.map +0 -1
  200. package/dist/chunk-J57DESXI.js +0 -55
  201. package/dist/chunk-J57DESXI.js.map +0 -1
  202. package/dist/chunk-JL6FCZV4.js +0 -55
  203. package/dist/chunk-JL6FCZV4.js.map +0 -1
  204. package/dist/chunk-JU534UAV.js +0 -57
  205. package/dist/chunk-JU534UAV.js.map +0 -1
  206. package/dist/chunk-K66WIGIV.js +0 -119
  207. package/dist/chunk-K66WIGIV.js.map +0 -1
  208. package/dist/chunk-KACFRYIH.js +0 -23
  209. package/dist/chunk-KACFRYIH.js.map +0 -1
  210. package/dist/chunk-KATXJW5H.js +0 -23
  211. package/dist/chunk-KATXJW5H.js.map +0 -1
  212. package/dist/chunk-KFAG5R3H.js +0 -64
  213. package/dist/chunk-KFAG5R3H.js.map +0 -1
  214. package/dist/chunk-KGN7AVRJ.js +0 -45
  215. package/dist/chunk-KGN7AVRJ.js.map +0 -1
  216. package/dist/chunk-KHHXN3CH.js +0 -1
  217. package/dist/chunk-KHHXN3CH.js.map +0 -1
  218. package/dist/chunk-KXJM7U4I.js +0 -47
  219. package/dist/chunk-KXJM7U4I.js.map +0 -1
  220. package/dist/chunk-L6YPLUNG.js +0 -104
  221. package/dist/chunk-L6YPLUNG.js.map +0 -1
  222. package/dist/chunk-LA6FLXGE.js +0 -47
  223. package/dist/chunk-LA6FLXGE.js.map +0 -1
  224. package/dist/chunk-LCC3I3PQ.js +0 -24
  225. package/dist/chunk-LCC3I3PQ.js.map +0 -1
  226. package/dist/chunk-LUVANORR.js +0 -23
  227. package/dist/chunk-LUVANORR.js.map +0 -1
  228. package/dist/chunk-LV4WSOXL.js +0 -39
  229. package/dist/chunk-LV4WSOXL.js.map +0 -1
  230. package/dist/chunk-MASTHXWN.js +0 -1
  231. package/dist/chunk-MASTHXWN.js.map +0 -1
  232. package/dist/chunk-MHHNZIVQ.js +0 -57
  233. package/dist/chunk-MHHNZIVQ.js.map +0 -1
  234. package/dist/chunk-MMAV5BRZ.js.map +0 -1
  235. package/dist/chunk-N46QE3KW.js +0 -55
  236. package/dist/chunk-N46QE3KW.js.map +0 -1
  237. package/dist/chunk-NFGNQEVV.js +0 -46
  238. package/dist/chunk-NFGNQEVV.js.map +0 -1
  239. package/dist/chunk-NK7W7F66.js +0 -54
  240. package/dist/chunk-NK7W7F66.js.map +0 -1
  241. package/dist/chunk-NMIT4GNJ.js +0 -57
  242. package/dist/chunk-NMIT4GNJ.js.map +0 -1
  243. package/dist/chunk-NUM4Y5VM.js +0 -54
  244. package/dist/chunk-NUM4Y5VM.js.map +0 -1
  245. package/dist/chunk-NX5QD74I.js +0 -56
  246. package/dist/chunk-NX5QD74I.js.map +0 -1
  247. package/dist/chunk-O4GMX5TL.js +0 -55
  248. package/dist/chunk-O4GMX5TL.js.map +0 -1
  249. package/dist/chunk-O6P7IWJP.js +0 -54
  250. package/dist/chunk-O6P7IWJP.js.map +0 -1
  251. package/dist/chunk-OJ5XUBZN.js +0 -46
  252. package/dist/chunk-OJ5XUBZN.js.map +0 -1
  253. package/dist/chunk-OYWM35R6.js +0 -56
  254. package/dist/chunk-OYWM35R6.js.map +0 -1
  255. package/dist/chunk-OZLC6KYP.js +0 -104
  256. package/dist/chunk-OZLC6KYP.js.map +0 -1
  257. package/dist/chunk-P2VKIZ3M.js +0 -18
  258. package/dist/chunk-P2VKIZ3M.js.map +0 -1
  259. package/dist/chunk-P66OQ4ZQ.js +0 -104
  260. package/dist/chunk-P66OQ4ZQ.js.map +0 -1
  261. package/dist/chunk-PLG3AXHM.js +0 -59
  262. package/dist/chunk-PLG3AXHM.js.map +0 -1
  263. package/dist/chunk-PQBIBUGH.js +0 -10
  264. package/dist/chunk-PQBIBUGH.js.map +0 -1
  265. package/dist/chunk-PQBRLX37.js +0 -48
  266. package/dist/chunk-PQBRLX37.js.map +0 -1
  267. package/dist/chunk-QIKFIRGO.js +0 -59
  268. package/dist/chunk-QIKFIRGO.js.map +0 -1
  269. package/dist/chunk-QTHWYUYP.js +0 -28
  270. package/dist/chunk-QTHWYUYP.js.map +0 -1
  271. package/dist/chunk-RAJAKQXU.js +0 -59
  272. package/dist/chunk-RAJAKQXU.js.map +0 -1
  273. package/dist/chunk-RET725VL.js +0 -36
  274. package/dist/chunk-RET725VL.js.map +0 -1
  275. package/dist/chunk-RNB2T5NJ.js +0 -48
  276. package/dist/chunk-RNB2T5NJ.js.map +0 -1
  277. package/dist/chunk-RYUIQBUD.js +0 -59
  278. package/dist/chunk-RYUIQBUD.js.map +0 -1
  279. package/dist/chunk-SDAJ6NLJ.js +0 -24
  280. package/dist/chunk-SDAJ6NLJ.js.map +0 -1
  281. package/dist/chunk-SKDEOPP2.js +0 -54
  282. package/dist/chunk-SKDEOPP2.js.map +0 -1
  283. package/dist/chunk-SONXRHVK.js +0 -58
  284. package/dist/chunk-SONXRHVK.js.map +0 -1
  285. package/dist/chunk-SQ5HD7LD.js +0 -1
  286. package/dist/chunk-SQ5HD7LD.js.map +0 -1
  287. package/dist/chunk-TBXRPM4O.js +0 -59
  288. package/dist/chunk-TBXRPM4O.js.map +0 -1
  289. package/dist/chunk-TG7PURWS.js +0 -18
  290. package/dist/chunk-TG7PURWS.js.map +0 -1
  291. package/dist/chunk-TJGELI4L.js +0 -53
  292. package/dist/chunk-TJGELI4L.js.map +0 -1
  293. package/dist/chunk-TVJ4Z7MD.js +0 -46
  294. package/dist/chunk-TVJ4Z7MD.js.map +0 -1
  295. package/dist/chunk-U25HB5E7.js +0 -59
  296. package/dist/chunk-U25HB5E7.js.map +0 -1
  297. package/dist/chunk-UCEASXHW.js +0 -47
  298. package/dist/chunk-UCEASXHW.js.map +0 -1
  299. package/dist/chunk-UGSJR77F.js +0 -48
  300. package/dist/chunk-UGSJR77F.js.map +0 -1
  301. package/dist/chunk-UQPA2QGC.js +0 -45
  302. package/dist/chunk-UQPA2QGC.js.map +0 -1
  303. package/dist/chunk-V2AYMNSS.js +0 -46
  304. package/dist/chunk-V2AYMNSS.js.map +0 -1
  305. package/dist/chunk-V6KPBGB3.js +0 -57
  306. package/dist/chunk-V6KPBGB3.js.map +0 -1
  307. package/dist/chunk-V7JYNIVJ.js +0 -39
  308. package/dist/chunk-V7JYNIVJ.js.map +0 -1
  309. package/dist/chunk-VC2TT56B.js +0 -46
  310. package/dist/chunk-VC2TT56B.js.map +0 -1
  311. package/dist/chunk-VCOQG6JF.js +0 -119
  312. package/dist/chunk-VCOQG6JF.js.map +0 -1
  313. package/dist/chunk-VJCKB4FI.js +0 -182
  314. package/dist/chunk-VJCKB4FI.js.map +0 -1
  315. package/dist/chunk-VOR32EFU.js +0 -59
  316. package/dist/chunk-VOR32EFU.js.map +0 -1
  317. package/dist/chunk-W6Z2XJJ2.js +0 -45
  318. package/dist/chunk-W6Z2XJJ2.js.map +0 -1
  319. package/dist/chunk-WG7AQQRT.js +0 -59
  320. package/dist/chunk-WG7AQQRT.js.map +0 -1
  321. package/dist/chunk-WMBDJ72B.js +0 -25
  322. package/dist/chunk-WMBDJ72B.js.map +0 -1
  323. package/dist/chunk-WWCWPFEJ.js +0 -1
  324. package/dist/chunk-WWCWPFEJ.js.map +0 -1
  325. package/dist/chunk-WZZEI2W4.js +0 -59
  326. package/dist/chunk-WZZEI2W4.js.map +0 -1
  327. package/dist/chunk-XBXAWQOH.js +0 -43
  328. package/dist/chunk-XBXAWQOH.js.map +0 -1
  329. package/dist/chunk-XDCANCKF.js +0 -59
  330. package/dist/chunk-XDCANCKF.js.map +0 -1
  331. package/dist/chunk-XQOQ65MA.js +0 -57
  332. package/dist/chunk-XQOQ65MA.js.map +0 -1
  333. package/dist/chunk-YBFIP7FD.js +0 -119
  334. package/dist/chunk-YBFIP7FD.js.map +0 -1
  335. package/dist/chunk-YGS4JU4E.js +0 -60
  336. package/dist/chunk-YGS4JU4E.js.map +0 -1
  337. package/dist/chunk-YKEXHUPR.js +0 -48
  338. package/dist/chunk-YKEXHUPR.js.map +0 -1
  339. package/dist/chunk-ZY2OMVQQ.js +0 -119
  340. package/dist/chunk-ZY2OMVQQ.js.map +0 -1
  341. package/dist/molecules/company-selector.cjs +0 -406
  342. package/dist/molecules/company-selector.cjs.map +0 -1
  343. package/dist/molecules/company-selector.d.cts +0 -11
  344. package/dist/molecules/company-selector.d.ts +0 -11
  345. package/dist/molecules/company-selector.js +0 -62
  346. package/dist/molecules/company-selector.js.map +0 -1
  347. /package/dist/{charts/vertical-bar-chart.js.map → atoms/drawer.js.map} +0 -0
  348. /package/dist/{chunk-FFC2C2ID.js.map → chunk-AGMMAML3.js.map} +0 -0
  349. /package/dist/{chunk-3I5CDBFN.js.map → chunk-S3SAB2S2.js.map} +0 -0
@@ -1,179 +0,0 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "../chunk-N552FDTV.js";
5
-
6
- // src/chart/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/chart/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/chart/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
- style: { width, height },
169
- theme: chart_theme_default
170
- }, props), {
171
- option
172
- })
173
- ) });
174
- }
175
- export {
176
- Chart,
177
- chart_theme_default as chartTheme
178
- };
179
- //# sourceMappingURL=chart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/chart/chart.tsx","../../src/chart/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 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":[]}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/charts/vertical-bar-chart.tsx
21
- var vertical_bar_chart_exports = {};
22
- __export(vertical_bar_chart_exports, {
23
- VerticalBarChart: () => VerticalBarChart
24
- });
25
- module.exports = __toCommonJS(vertical_bar_chart_exports);
26
- var import_jsx_runtime = require("react/jsx-runtime");
27
- function VerticalBarChart(props) {
28
- const { total, value, backgroundColor, barColor, height } = props;
29
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
30
- "div",
31
- {
32
- className: "tipp_vertical-bar-chart bar-wrapper",
33
- style: { height, backgroundColor },
34
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { width: `${Math.round(value / total * 100)}%`, height }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
35
- "div",
36
- {
37
- className: "tipp_vertical-bar-chart bar",
38
- style: { backgroundColor: barColor }
39
- }
40
- ) })
41
- }
42
- );
43
- }
44
- // Annotate the CommonJS export names for ESM import in node:
45
- 0 && (module.exports = {
46
- VerticalBarChart
47
- });
48
- //# sourceMappingURL=vertical-bar-chart.cjs.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: `${Math.round((value / total) * 100)}%`, height }}>\n <div\n className=\"tipp_vertical-bar-chart bar\"\n style={{ backgroundColor: barColor }}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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,sDAAC,SAAI,OAAO,EAAE,OAAO,GAAG,KAAK,MAAO,QAAQ,QAAS,GAAG,CAAC,KAAK,OAAO,GACnE;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,iBAAiB,SAAS;AAAA;AAAA,MACrC,GACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,17 +0,0 @@
1
- import React__default from 'react';
2
-
3
- interface VerticalBarChartProps {
4
- /** 100% 바가 뜻하는 전체 값 */
5
- total: number;
6
- /** 화면에 채워져보이는 값 */
7
- value: number;
8
- /** 배경 색상 */
9
- backgroundColor?: string;
10
- /** 바의 색상 */
11
- barColor?: string;
12
- /** 바의 높이 */
13
- height?: number;
14
- }
15
- declare function VerticalBarChart(props: VerticalBarChartProps): React__default.ReactNode;
16
-
17
- export { VerticalBarChart, type VerticalBarChartProps };
@@ -1,17 +0,0 @@
1
- import React__default from 'react';
2
-
3
- interface VerticalBarChartProps {
4
- /** 100% 바가 뜻하는 전체 값 */
5
- total: number;
6
- /** 화면에 채워져보이는 값 */
7
- value: number;
8
- /** 배경 색상 */
9
- backgroundColor?: string;
10
- /** 바의 색상 */
11
- barColor?: string;
12
- /** 바의 높이 */
13
- height?: number;
14
- }
15
- declare function VerticalBarChart(props: VerticalBarChartProps): React__default.ReactNode;
16
-
17
- export { VerticalBarChart, type VerticalBarChartProps };
@@ -1,8 +0,0 @@
1
- import {
2
- VerticalBarChart
3
- } from "../chunk-7QVMAHXH.js";
4
- import "../chunk-N552FDTV.js";
5
- export {
6
- VerticalBarChart
7
- };
8
- //# sourceMappingURL=vertical-bar-chart.js.map
@@ -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 && children) {
26
- const typo = ref.current;
27
- console.log(typo.innerText, typo.textContent);
28
- if (typo.innerText !== typo.textContent) {
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
- }, [children]);
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-2A2IJOVV.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 console.log(typo.innerText, typo.textContent);\n if (typo.innerText !== typo.textContent) {\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 }, [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,WAAW,UAAU;AAC3B,cAAM,OAAO,IAAI;AACjB,gBAAQ,IAAI,KAAK,WAAW,KAAK,WAAW;AAC5C,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,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"]}
@@ -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-2JZ3UQAX.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 \n WebkitLineClamp: lineClamp,\n wordBreak: 'break-word',\n\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,QAER,iBAAiB;AAAA,QACjB,WAAW;AAAA,QAEX,YAAY;AAAA,QACZ,QAAQ;AAAA,SACL;AAAA,MAGJ;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
@@ -1,23 +0,0 @@
1
- import {
2
- Typo
3
- } from "./chunk-O3XTRD7R.js";
4
- import {
5
- Flex
6
- } from "./chunk-25HMMI7R.js";
7
-
8
- // src/atoms/field-error-wrapper.tsx
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- function FieldErrorWrapper({
11
- children,
12
- error
13
- }) {
14
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "1", children: [
15
- children,
16
- error ? /* @__PURE__ */ jsx(Typo, { color: "red", children: error }) : null
17
- ] });
18
- }
19
-
20
- export {
21
- FieldErrorWrapper
22
- };
23
- //# sourceMappingURL=chunk-2KZSNTY7.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/field-error-wrapper.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from './flex';\nimport { Typo } from './typo';\n\nexport interface FieldErrorWrapperProps {\n children?: React.ReactNode;\n error?: React.ReactNode;\n}\n\nexport function FieldErrorWrapper({\n children,\n error,\n}: FieldErrorWrapperProps): JSX.Element {\n return (\n <Flex direction=\"column\" gap=\"1\">\n {children}\n {error ? <Typo color=\"red\">{error}</Typo> : null}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAcI,SAEW,KAFX;AALG,SAAS,kBAAkB;AAAA,EAChC;AAAA,EACA;AACF,GAAwC;AACtC,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B;AAAA;AAAA,IACA,QAAQ,oBAAC,QAAK,OAAM,OAAO,iBAAM,IAAU;AAAA,KAC9C;AAEJ;","names":[]}
@@ -1,42 +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
- }) {
14
- return /* @__PURE__ */ jsx(
15
- Flex,
16
- {
17
- direction: "column",
18
- gap: "4",
19
- style: {
20
- color: fontColor || "var(--white-a12)",
21
- backgroundColor: "var(--black-a12)"
22
- },
23
- children: items == null ? void 0 : items.map((item) => {
24
- const { key, title, icon, itemRender, onClick, children } = item;
25
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
26
- itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
27
- icon,
28
- /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
29
- ] }),
30
- children == null ? void 0 : children.map((el) => {
31
- return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
32
- })
33
- ] }, key);
34
- })
35
- }
36
- );
37
- }
38
-
39
- export {
40
- Navigation
41
- };
42
- //# sourceMappingURL=chunk-2QZV2WKV.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}\n\nexport function Navigation({\n items,\n fontColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n 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 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":";;;;;;;;AAqCc,SAEE,KAFF;AApBP,SAAS,WAAW;AAAA,EACzB;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;AAAA,MACnB;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,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;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,QAAkB,IAAG,KACpB,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KAD1B,GAAG,GAEd;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -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-2RMZJS2O.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,MAAK,SAAS,aAAG,OAAM;AAAA;AAAA,UAEnC;AAAA,aA1B4B,GA2B9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -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.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-2TGD62PR.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.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 }, [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;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,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,EAC5C,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"]}