@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,62 +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
- const mouseOver = () => {
26
- if (typo.clientHeight < typo.scrollHeight) {
27
- setTooltipDisplay("block");
28
- }
29
- };
30
- const mouseOut = () => {
31
- setTooltipDisplay("none");
32
- };
33
- ref.current.addEventListener("mouseenter", mouseOver);
34
- ref.current.addEventListener("mouseleave", mouseOut);
35
- return () => {
36
- ref.current.removeEventListener("mouseenter", mouseOver);
37
- ref.current.removeEventListener("mouseleave", mouseOut);
38
- };
39
- }
40
- }, [children]);
41
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
42
- Typo,
43
- __spreadProps(__spreadValues({}, rest), {
44
- ref,
45
- style: __spreadValues({
46
- width: "100%",
47
- textOverflow: "ellipsis",
48
- overflow: "hidden",
49
- WebkitLineClamp: lineClamp,
50
- display: "-webkit-box",
51
- WebkitBoxOrient: "vertical",
52
- wordBreak: "break-word"
53
- }, style),
54
- children
55
- })
56
- ) });
57
- }
58
-
59
- export {
60
- EllipsisTooltip
61
- };
62
- //# sourceMappingURL=chunk-6SGXBZAF.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 if (ref.current) {\n const typo = ref.current;\n const mouseOver = ():void=>{\n if (typo.clientHeight < typo.scrollHeight) {\n setTooltipDisplay('block');\n }\n }\n \n const mouseOut = ():void=>{\n setTooltipDisplay('none');\n }\n \n ref.current.addEventListener('mouseenter',mouseOver);\n ref.current.addEventListener('mouseleave',mouseOut);\n \n return ()=>{\n ref.current.removeEventListener('mouseenter',mouseOver);\n ref.current.removeEventListener('mouseleave',mouseOut);\n }\n }\n\n }, [children]);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={ref}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n WebkitLineClamp: lineClamp,\n\n display:'-webkit-box',\n WebkitBoxOrient: 'vertical',\n wordBreak: 'break-word',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n}"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,WAAW,QAAQ,gBAAgB;AA2C7C;AAlCC,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;AACd,QAAI,IAAI,SAAS;AACjB,YAAM,OAAO,IAAI;AACjB,YAAM,YAAY,MAAS;AACvB,YAAI,KAAK,eAAe,KAAK,cAAc;AACzC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAEA,YAAM,WAAW,MAAS;AACxB,0BAAkB,MAAM;AAAA,MAC1B;AAEA,UAAI,QAAQ,iBAAiB,cAAa,SAAS;AACnD,UAAI,QAAQ,iBAAiB,cAAa,QAAQ;AAElD,aAAO,MAAI;AACT,YAAI,QAAQ,oBAAoB,cAAa,SAAS;AACtD,YAAI,QAAQ,oBAAoB,cAAa,QAAQ;AAAA,MACvD;AAAA,IACF;AAAA,EAEF,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":[]}
@@ -1,38 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-N552FDTV.js";
6
-
7
- // src/atoms/typo.tsx
8
- import { Text as RadixText } from "@radix-ui/themes";
9
- import { useMemo, forwardRef } from "react";
10
- import { jsx } from "react/jsx-runtime";
11
- var Typo = forwardRef(
12
- (props, ref) => {
13
- const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
14
- const radixSize = useMemo(() => {
15
- if (size)
16
- return size;
17
- switch (variant) {
18
- case "caption":
19
- return "1";
20
- case "subtitle 2":
21
- return "3";
22
- case "subtitle 1":
23
- return "4";
24
- case "body":
25
- return "2";
26
- default:
27
- return "2";
28
- }
29
- }, [size, variant]);
30
- return /* @__PURE__ */ jsx(RadixText, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
31
- }
32
- );
33
- Typo.displayName = "Typo";
34
-
35
- export {
36
- Typo
37
- };
38
- //# sourceMappingURL=chunk-6XHVFBFO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/typo.tsx"],"sourcesContent":["import type { TextProps as RadixTextProps } from '@radix-ui/themes';\nimport { Text as RadixText } from '@radix-ui/themes';\nimport React, { useMemo, forwardRef } from 'react';\n\nexport type TypoProps = RadixTextProps & {\n variant?: 'body' | 'caption' | 'subtitle 2' | 'subtitle 1';\n};\n\nexport const Typo = forwardRef<HTMLSpanElement, TypoProps>(\n (props: TypoProps, ref): React.ReactNode => {\n const { size, variant, children, ...rest } = props;\n\n const radixSize = useMemo<RadixTextProps['size']>(() => {\n if (size) return size;\n switch (variant) {\n case 'caption':\n return '1';\n case 'subtitle 2':\n return '3';\n case 'subtitle 1':\n return '4';\n case 'body':\n return '2';\n default:\n return '2';\n }\n }, [size, variant]);\n\n return (\n <RadixText {...rest} ref={ref} size={radixSize}>\n {children}\n </RadixText>\n );\n }\n);\n\nTypo.displayName = 'Typo';\n"],"mappings":";;;;;;;AACA,SAAS,QAAQ,iBAAiB;AAClC,SAAgB,SAAS,kBAAkB;AA2BrC;AArBC,IAAM,OAAO;AAAA,EAClB,CAAC,OAAkB,QAAyB;AAC1C,UAA6C,YAArC,QAAM,SAAS,SAV3B,IAUiD,IAAT,iBAAS,IAAT,CAA5B,QAAM,WAAS;AAEvB,UAAM,YAAY,QAAgC,MAAM;AACtD,UAAI;AAAM,eAAO;AACjB,cAAQ,SAAS;AAAA,QACf,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,WACE,oBAAC,4CAAc,OAAd,EAAoB,KAAU,MAAM,WAClC,WACH;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;","names":[]}
@@ -1,64 +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
- if (ref.current) {
25
- const typo = ref.current;
26
- const mouseOver = () => {
27
- if (typo.clientHeight < typo.scrollHeight) {
28
- setTooltipDisplay("block");
29
- }
30
- };
31
- const mouseOut = () => {
32
- setTooltipDisplay("none");
33
- };
34
- (_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", mouseOver);
35
- (_b = ref.current) == null ? void 0 : _b.addEventListener("mouseleave", mouseOut);
36
- return () => {
37
- var _a3, _b2;
38
- (_a3 = ref.current) == null ? void 0 : _a3.removeEventListener("mouseenter", mouseOver);
39
- (_b2 = ref.current) == null ? void 0 : _b2.removeEventListener("mouseleave", mouseOut);
40
- };
41
- }
42
- }, [children]);
43
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
44
- Typo,
45
- __spreadProps(__spreadValues({}, rest), {
46
- ref,
47
- style: __spreadValues({
48
- width: "100%",
49
- textOverflow: "ellipsis",
50
- overflow: "hidden",
51
- WebkitLineClamp: lineClamp,
52
- display: "-webkit-box",
53
- WebkitBoxOrient: "vertical",
54
- wordBreak: "break-word"
55
- }, style),
56
- children
57
- })
58
- ) });
59
- }
60
-
61
- export {
62
- EllipsisTooltip
63
- };
64
- //# sourceMappingURL=chunk-6ZEM4FBF.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 if (ref.current) {\n const typo = ref.current;\n const mouseOver = ():void=>{\n if (typo.clientHeight < typo.scrollHeight) {\n setTooltipDisplay('block');\n }\n }\n \n const mouseOut = ():void=>{\n setTooltipDisplay('none');\n }\n \n ref.current?.addEventListener('mouseenter',mouseOver);\n ref.current?.addEventListener('mouseleave',mouseOut);\n \n return ()=>{\n ref.current?.removeEventListener('mouseenter',mouseOver);\n ref.current?.removeEventListener('mouseleave',mouseOut);\n }\n }\n\n }, [children]);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={ref}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n WebkitLineClamp: lineClamp,\n\n display:'-webkit-box',\n WebkitBoxOrient: 'vertical',\n wordBreak: 'break-word',\n ...style,\n }}\n >\n {children}\n </Typo>\n </Tooltip>\n );\n}"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,WAAW,QAAQ,gBAAgB;AA2C7C;AAlCC,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,QAAI,IAAI,SAAS;AACjB,YAAM,OAAO,IAAI;AACjB,YAAM,YAAY,MAAS;AACvB,YAAI,KAAK,eAAe,KAAK,cAAc;AACzC,4BAAkB,OAAO;AAAA,QAC3B;AAAA,MACF;AAEA,YAAM,WAAW,MAAS;AACxB,0BAAkB,MAAM;AAAA,MAC1B;AAEA,OAAAA,MAAA,IAAI,YAAJ,gBAAAA,IAAa,iBAAiB,cAAa;AAC3C,gBAAI,YAAJ,mBAAa,iBAAiB,cAAa;AAE3C,aAAO,MAAI;AAjCjB,YAAAA,KAAAC;AAkCQ,SAAAD,MAAA,IAAI,YAAJ,gBAAAA,IAAa,oBAAoB,cAAa;AAC9C,SAAAC,MAAA,IAAI,YAAJ,gBAAAA,IAAa,oBAAoB,cAAa;AAAA,MAChD;AAAA,IACF;AAAA,EAEF,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","_b"]}
@@ -1,48 +0,0 @@
1
- import {
2
- Tooltip
3
- } from "./chunk-ACVANQJ4.js";
4
- import {
5
- Typo
6
- } from "./chunk-O3XTRD7R.js";
7
- import {
8
- __objRest,
9
- __spreadProps,
10
- __spreadValues
11
- } from "./chunk-N552FDTV.js";
12
-
13
- // src/atoms/ellipsis-tooltip.tsx
14
- import { forwardRef, useEffect, useRef, useState } from "react";
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
- var EllipsisTooltip = forwardRef((props, maybeRef) => {
17
- const _a = props, { children, style, lineClamp } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
18
- const ref = useRef(null);
19
- const typoRef = maybeRef || ref;
20
- const [tooltipDisplay, setTooltipDisplay] = useState(
21
- "none"
22
- );
23
- useEffect(() => {
24
- }, []);
25
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsxs(
26
- Typo,
27
- __spreadProps(__spreadValues({}, rest), {
28
- ref: typoRef,
29
- style: __spreadValues({
30
- width: "100%",
31
- textOverflow: "ellipsis",
32
- overflow: "hidden",
33
- wordBreak: "break-word",
34
- WebkitLineClamp: lineClamp
35
- }, style),
36
- children: [
37
- children,
38
- "\uC544\uC544\uC544\uC559 \uC65C\uC774\uB7EC\uC2DC\uB294\uAC70\uC5D0\uC694 \u3160"
39
- ]
40
- })
41
- ) });
42
- });
43
- EllipsisTooltip.displayName = "EllipsisTooltip";
44
-
45
- export {
46
- EllipsisTooltip
47
- };
48
- //# sourceMappingURL=chunk-754LMJ5L.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport const EllipsisTooltip = forwardRef<\n HTMLSpanElement,\n EllipsisTooltipProps\n>((props: EllipsisTooltipProps, maybeRef): React.ReactNode => {\n const { children, style, lineClamp, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n const typoRef = maybeRef || ref;\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n // if (maybeRef) {\n // const typo = typoRef;\n // if (typo.scrollWidth > typo.clientWidth) {\n // setTooltipDisplay('block');\n // } else {\n // setTooltipDisplay('none');\n // }\n // }\n }, []);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={typoRef}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n wordBreak: 'break-word',\n WebkitLineClamp: lineClamp,\n ...style,\n }}\n >\n {children}\n 아아아앙 왜이러시는거에요\n ㅠ\n \n </Typo>\n </Tooltip>\n );\n});\n\nEllipsisTooltip.displayName = 'EllipsisTooltip';\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,YAAY,WAAW,QAAQ,gBAAgB;AA+B3D,cACE,YADF;AAvBG,IAAM,kBAAkB,WAG7B,CAAC,OAA6B,aAA8B;AAC5D,QAAgD,YAAxC,YAAU,OAAO,UAZ3B,IAYkD,IAAT,iBAAS,IAAT,CAA/B,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,UAAU,YAAY;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAAA,EAShB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC,KAAK;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,WAAW;AAAA,QACX,iBAAiB;AAAA,SACd;AAAA,MAGJ;AAAA;AAAA,QAAS;AAAA;AAAA;AAAA,EAIZ,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
@@ -1,24 +0,0 @@
1
- // src/charts/vertical-bar-chart.tsx
2
- import { jsx } from "react/jsx-runtime";
3
- function VerticalBarChart(props) {
4
- const { total, value, backgroundColor, barColor, height } = props;
5
- return /* @__PURE__ */ jsx(
6
- "div",
7
- {
8
- className: "tipp_vertical-bar-chart bar-wrapper",
9
- style: { height, backgroundColor },
10
- children: /* @__PURE__ */ jsx("div", { style: { width: `${Math.round(value / total * 100)}%`, height }, children: /* @__PURE__ */ jsx(
11
- "div",
12
- {
13
- className: "tipp_vertical-bar-chart bar",
14
- style: { backgroundColor: barColor }
15
- }
16
- ) })
17
- }
18
- );
19
- }
20
-
21
- export {
22
- VerticalBarChart
23
- };
24
- //# sourceMappingURL=chunk-7QVMAHXH.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/vertical-bar-chart.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface VerticalBarChartProps {\n /** 100% 바가 뜻하는 전체 값 */\n total: number;\n /** 화면에 채워져보이는 값 */\n value: number;\n /** 배경 색상 */\n backgroundColor?: string;\n /** 바의 색상 */\n barColor?: string;\n /** 바의 높이 */\n height?: number;\n}\n\nexport function VerticalBarChart(\n props: VerticalBarChartProps\n): React.ReactNode {\n const { total, value, backgroundColor, barColor, height } = props;\n return (\n <div\n className=\"tipp_vertical-bar-chart bar-wrapper\"\n style={{ height, backgroundColor }}\n >\n <div style={{ width: `${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":";AAyBQ;AAVD,SAAS,iBACd,OACiB;AACjB,QAAM,EAAE,OAAO,OAAO,iBAAiB,UAAU,OAAO,IAAI;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,gBAAgB;AAAA,MAEjC,8BAAC,SAAI,OAAO,EAAE,OAAO,GAAG,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,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-7VCJMEPY.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n children?: string;\n};\n\nexport function EllipsisTooltip(props: EllipsisTooltipProps): React.ReactNode {\n const { children, style, lineClamp = 2, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n const mouseOver = ():void=>{\n if (ref.current) {\n const typo = ref.current;\n console.log(typo.scrollWidth, typo.clientWidth);\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]);\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,SAAiB,WAAW,QAAQ,gBAAgB;AAsC9C;AA7BC,SAAS,gBAAgB,OAA8C;AAC5E,QAAoD,YAA5C,YAAU,OAAO,YAAY,EAVvC,IAUsD,IAAT,iBAAS,IAAT,CAAnC,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AAExC,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAjBlB,QAAAA,KAAA;AAkBI,UAAM,YAAY,MAAS;AACzB,UAAI,IAAI,SAAS;AACf,cAAM,OAAO,IAAI;AACjB,gBAAQ,IAAI,KAAK,aAAa,KAAK,WAAW;AAC9C,YAAI,KAAK,YAAY,UAAU;AAC7B,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"]}
@@ -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);
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
- }, [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-AD4LGJER.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)\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 }, [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,SAAS;AAC1B,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,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,55 +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", height: "36px", 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
- height: "32px",
37
- ml: "6",
38
- onClick,
39
- pl: "2",
40
- pr: "2",
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-ALP5524J.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\" 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 );\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,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,QAAO;AAAA,gBAEP,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAzB4B,GA0B9B;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.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
- }, [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-AS6NXGBN.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 }, [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,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,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"]}