@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,180 +0,0 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "./chunk-N552FDTV.js";
5
-
6
- // src/charts/chart.tsx
7
- import { useMemo } from "react";
8
- import { useResizeDetector } from "react-resize-detector";
9
- import ReactECharts from "echarts-for-react";
10
- import { merge } from "lodash-es";
11
-
12
- // src/charts/chart-theme.json
13
- var chart_theme_default = {
14
- version: 1,
15
- themeName: "customed",
16
- theme: {
17
- seriesCnt: "5",
18
- backgroundColor: "rgba(0,0,0,0)",
19
- titleColor: "#1c2024",
20
- subtitleColor: "#8d8d8d",
21
- textColorShow: false,
22
- textColor: "#333",
23
- markTextColor: "#ffffff",
24
- color: [
25
- "#ffe629",
26
- "#3e63dd",
27
- "#ec9455",
28
- "#5bb98b",
29
- "#cb1d63",
30
- "#3ba272",
31
- "#fc8452",
32
- "#9a60b4",
33
- "#ea7ccc"
34
- ],
35
- borderColor: "#8d8d8d",
36
- borderWidth: 0,
37
- visualMapColor: ["#bf444c", "#d88273", "#f6efa6"],
38
- legendTextColor: "#1c2024",
39
- kColor: "#eb5454",
40
- kColor0: "#47b262",
41
- kBorderColor: "#eb5454",
42
- kBorderColor0: "#47b262",
43
- kBorderWidth: 1,
44
- lineWidth: 2,
45
- symbolSize: 4,
46
- symbol: "emptyCircle",
47
- symbolBorderWidth: 1,
48
- lineSmooth: false,
49
- graphLineWidth: 1,
50
- graphLineColor: "#aaa",
51
- mapLabelColor: "#000",
52
- mapLabelColorE: "rgb(100,0,0)",
53
- mapBorderColor: "#444",
54
- mapBorderColorE: "#444",
55
- mapBorderWidth: 0.5,
56
- mapBorderWidthE: 1,
57
- mapAreaColor: "#eee",
58
- mapAreaColorE: "rgba(255,215,0,0.8)",
59
- axes: [
60
- {
61
- type: "all",
62
- name: "\u901A\u7528\u5750\u6807\u8F74",
63
- axisLineShow: true,
64
- axisLineColor: "#6E7079",
65
- axisTickShow: true,
66
- axisTickColor: "#6E7079",
67
- axisLabelShow: true,
68
- axisLabelColor: "#6E7079",
69
- splitLineShow: true,
70
- splitLineColor: ["#E0E6F1"],
71
- splitAreaShow: false,
72
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
73
- },
74
- {
75
- type: "category",
76
- name: "\u7C7B\u76EE\u5750\u6807\u8F74",
77
- axisLineShow: true,
78
- axisLineColor: "#6E7079",
79
- axisTickShow: true,
80
- axisTickColor: "#6E7079",
81
- axisLabelShow: true,
82
- axisLabelColor: "#6E7079",
83
- splitLineShow: false,
84
- splitLineColor: ["#E0E6F1"],
85
- splitAreaShow: false,
86
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
87
- },
88
- {
89
- type: "value",
90
- name: "\u6570\u503C\u5750\u6807\u8F74",
91
- axisLineShow: false,
92
- axisLineColor: "#6E7079",
93
- axisTickShow: false,
94
- axisTickColor: "#6E7079",
95
- axisLabelShow: true,
96
- axisLabelColor: "#6E7079",
97
- splitLineShow: true,
98
- splitLineColor: ["#E0E6F1"],
99
- splitAreaShow: false,
100
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
101
- },
102
- {
103
- type: "log",
104
- name: "\u5BF9\u6570\u5750\u6807\u8F74",
105
- axisLineShow: false,
106
- axisLineColor: "#6E7079",
107
- axisTickShow: false,
108
- axisTickColor: "#6E7079",
109
- axisLabelShow: true,
110
- axisLabelColor: "#6E7079",
111
- splitLineShow: true,
112
- splitLineColor: ["#E0E6F1"],
113
- splitAreaShow: false,
114
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
115
- },
116
- {
117
- type: "time",
118
- name: "\u65F6\u95F4\u5750\u6807\u8F74",
119
- axisLineShow: true,
120
- axisLineColor: "#6E7079",
121
- axisTickShow: true,
122
- axisTickColor: "#6E7079",
123
- axisLabelShow: true,
124
- axisLabelColor: "#6E7079",
125
- splitLineShow: false,
126
- splitLineColor: ["#E0E6F1"],
127
- splitAreaShow: false,
128
- splitAreaColor: ["rgba(250,250,250,0.2)", "rgba(210,219,238,0.2)"]
129
- }
130
- ],
131
- axisSeperateSetting: true,
132
- toolboxColor: "#8d8d8d",
133
- toolboxEmphasisColor: "#1c2024",
134
- tooltipAxisColor: "#cccccc",
135
- tooltipAxisWidth: 1,
136
- timelineLineColor: "#dae1f5",
137
- timelineLineWidth: 2,
138
- timelineItemColor: "#a4b1d7",
139
- timelineItemColorE: "#ffffff",
140
- timelineCheckColor: "#316bf3",
141
- timelineCheckBorderColor: "#ffffff",
142
- timelineItemBorderWidth: 1,
143
- timelineControlColor: "#a4b1d7",
144
- timelineControlBorderColor: "#a4b1d7",
145
- timelineControlBorderWidth: 1,
146
- timelineLabelColor: "#a4b1d7"
147
- }
148
- };
149
-
150
- // src/charts/chart.tsx
151
- import { jsx } from "react/jsx-runtime";
152
- function Chart(props) {
153
- const { width, height, ref } = useResizeDetector({
154
- handleHeight: false,
155
- refreshMode: "debounce",
156
- refreshRate: 100
157
- });
158
- const option = useMemo(() => {
159
- const baseOption = {
160
- textStyle: { fontFamily: "Noto Sans KR" },
161
- tooltip: { textStyle: { fontSize: 16 } }
162
- };
163
- return merge(baseOption, props.option);
164
- }, [props.option]);
165
- return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(
166
- ReactECharts,
167
- __spreadProps(__spreadValues({
168
- style: { width, height },
169
- theme: chart_theme_default
170
- }, props), {
171
- option
172
- })
173
- ) });
174
- }
175
-
176
- export {
177
- chart_theme_default,
178
- Chart
179
- };
180
- //# sourceMappingURL=chunk-EUS56L3L.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/chart.tsx","../src/charts/chart-theme.json"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport ReactECharts from 'echarts-for-react';\nimport type { EChartOption } from 'echarts';\nimport { merge } from 'lodash-es';\nimport chartTheme from './chart-theme.json';\n\nexport { chartTheme };\n\nexport type ChartProps = Omit<\n React.ComponentProps<typeof ReactECharts>,\n 'option'\n> & {\n option: EChartOption;\n};\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n const option = useMemo(() => {\n const baseOption: EChartOption = {\n textStyle: { fontFamily: 'Noto Sans KR' },\n tooltip: { textStyle: { fontSize: 16 } },\n };\n return merge(baseOption, props.option);\n }, [props.option]);\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactECharts\n 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 +0,0 @@
1
- //# sourceMappingURL=chunk-FFC2C2ID.js.map
@@ -1,61 +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
- console.log(typo.textContent);
29
- if (typo.innerText !== typo.textContent) {
30
- setTooltipDisplay("block");
31
- }
32
- }
33
- };
34
- const mouseOut = () => {
35
- setTooltipDisplay("none");
36
- };
37
- (_a2 = ref.current) == null ? void 0 : _a2.addEventListener("mouseenter", mouseOver);
38
- (_b = ref.current) == null ? void 0 : _b.addEventListener("mouseleave", mouseOut);
39
- }, [children]);
40
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
41
- Typo,
42
- __spreadProps(__spreadValues({}, rest), {
43
- ref,
44
- style: __spreadValues({
45
- width: "100%",
46
- textOverflow: "ellipsis",
47
- overflow: "hidden",
48
- WebkitLineClamp: lineClamp,
49
- display: "-webkit-box",
50
- WebkitBoxOrient: "vertical",
51
- wordBreak: "break-word"
52
- }, style),
53
- children
54
- })
55
- ) });
56
- }
57
-
58
- export {
59
- EllipsisTooltip
60
- };
61
- //# sourceMappingURL=chunk-FHXW7BLD.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 console.log(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;AAuC7C;AA9BC,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,SAAW;AAC5B,gBAAQ,IAAI,KAAK,WAAa;AAC9B,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, jsxs } from "react/jsx-runtime";
16
- var EllipsisTooltip = forwardRef((props, maybeRef) => {
17
- const _a = props, { children, style, lineClamp } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
18
- const ref = useRef(null);
19
- const typoRef = maybeRef || ref;
20
- const [tooltipDisplay, setTooltipDisplay] = useState(
21
- "none"
22
- );
23
- useEffect(() => {
24
- }, []);
25
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsxs(
26
- Typo,
27
- __spreadProps(__spreadValues({}, rest), {
28
- ref: typoRef,
29
- style: __spreadValues({
30
- width: "100%",
31
- textOverflow: "ellipsis",
32
- overflow: "hidden",
33
- wordBreak: "break-word",
34
- WebkitLineClamp: lineClamp
35
- }, style),
36
- children: [
37
- "? \uC774\uAC8C \uC774\uB807\uAC8C \uC624\uB798\uAC78\uB9B4 \uC77C\uC774 \uC544\uB2CC\uB370...",
38
- children
39
- ]
40
- })
41
- ) });
42
- });
43
- EllipsisTooltip.displayName = "EllipsisTooltip";
44
-
45
- export {
46
- EllipsisTooltip
47
- };
48
- //# sourceMappingURL=chunk-FVSPOU5C.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/ellipsis-tooltip.tsx"],"sourcesContent":["import React, { forwardRef, useEffect, useRef, useState } from 'react';\nimport { Tooltip } from './tooltip';\nimport { Typo, type TypoProps } from './typo';\n\nexport type EllipsisTooltipProps = TypoProps & {\n lineClamp?: number;\n};\n\nexport const EllipsisTooltip = forwardRef<\n HTMLSpanElement,\n EllipsisTooltipProps\n>((props: EllipsisTooltipProps, maybeRef): React.ReactNode => {\n const { children, style, lineClamp, ...rest } = props;\n const ref = useRef<HTMLSpanElement>(null);\n const typoRef = maybeRef || ref;\n const [tooltipDisplay, setTooltipDisplay] = useState<'none' | 'block'>(\n 'none'\n );\n\n useEffect(() => {\n // if (maybeRef) {\n // const typo = typoRef;\n // if (typo.scrollWidth > typo.clientWidth) {\n // setTooltipDisplay('block');\n // } else {\n // setTooltipDisplay('none');\n // }\n // }\n }, []);\n\n return (\n <Tooltip content={children} style={{ display: tooltipDisplay }}>\n <Typo\n {...rest}\n ref={typoRef}\n style={{\n width: '100%',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n wordBreak: 'break-word',\n WebkitLineClamp: lineClamp,\n ...style,\n }}\n >\n ?\n 이게 이렇게 오래걸릴 일이 아닌데...\n {children}\n </Typo>\n </Tooltip>\n );\n});\n\nEllipsisTooltip.displayName = 'EllipsisTooltip';\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAgB,YAAY,WAAW,QAAQ,gBAAgB;AA+B3D,cACE,YADF;AAvBG,IAAM,kBAAkB,WAG7B,CAAC,OAA6B,aAA8B;AAC5D,QAAgD,YAAxC,YAAU,OAAO,UAZ3B,IAYkD,IAAT,iBAAS,IAAT,CAA/B,YAAU,SAAO;AACzB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,UAAU,YAAY;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AAAA,EAShB,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC,KAAK;AAAA,MACL,OAAO;AAAA,QACL,OAAO;AAAA,QACP,cAAc;AAAA,QACd,UAAU;AAAA,QACV,WAAW;AAAA,QACX,iBAAiB;AAAA,SACd;AAAA,MAEN;AAAA;AAAA,QAGE;AAAA;AAAA;AAAA,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
@@ -1,54 +0,0 @@
1
- import {
2
- Typo
3
- } from "./chunk-O3XTRD7R.js";
4
- import {
5
- Flex
6
- } from "./chunk-25HMMI7R.js";
7
-
8
- // src/molecules/navigation.tsx
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- function Navigation({
11
- items,
12
- fontColor,
13
- backgroundColor
14
- }) {
15
- return /* @__PURE__ */ jsx(
16
- Flex,
17
- {
18
- direction: "column",
19
- gap: "4",
20
- style: {
21
- color: fontColor || "var(--white-a12)",
22
- backgroundColor: backgroundColor || "var(--black-a12)"
23
- },
24
- children: items == null ? void 0 : items.map((item) => {
25
- const { key, title, icon, itemRender, onClick, children } = item;
26
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
27
- itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
28
- icon,
29
- /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
30
- ] }),
31
- children == null ? void 0 : children.map((el) => {
32
- return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(
33
- Flex,
34
- {
35
- align: "center",
36
- ml: "6",
37
- onClick,
38
- pl: "2",
39
- pr: "2",
40
- children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title })
41
- },
42
- el.key
43
- );
44
- })
45
- ] }, key);
46
- })
47
- }
48
- );
49
- }
50
-
51
- export {
52
- Navigation
53
- };
54
- //# sourceMappingURL=chunk-FVU2BOJV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex\n align=\"center\"\n key={el.key}\n ml=\"6\"\n onClick={onClick}\n pl=\"2\"\n pr=\"2\"\n >\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBAEN,IAAG;AAAA,gBACH;AAAA,gBACA,IAAG;AAAA,gBACH,IAAG;AAAA,gBAEH,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM;AAAA;AAAA,cAN9B,GAAG;AAAA,YAOV;AAAA,UAEJ;AAAA,aAxB4B,GAyB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,24 +0,0 @@
1
- // src/charts/vertical-bar-chart.tsx
2
- import { jsx } from "react/jsx-runtime";
3
- function VerticalBarChart(props) {
4
- const { total, value, backgroundColor, barColor, height } = props;
5
- return /* @__PURE__ */ jsx(
6
- "div",
7
- {
8
- className: "tipp_vertical-bar-chart bar-wrapper",
9
- style: { height, backgroundColor },
10
- children: /* @__PURE__ */ jsx("div", { style: { width: `${value / total}%` }, 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-GKHTWD7W.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/charts/vertical-bar-chart.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface VerticalBarChartProps {\n /** 100% 바가 뜻하는 전체 값 */\n total: number;\n /** 화면에 채워져보이는 값 */\n value: number;\n /** 배경 색상 */\n backgroundColor?: string;\n /** 바의 색상 */\n barColor?: string;\n /** 바의 높이 */\n height?: number;\n}\n\nexport function VerticalBarChart(\n props: VerticalBarChartProps\n): React.ReactNode {\n const { total, value, backgroundColor, barColor, height } = props;\n return (\n <div\n className=\"tipp_vertical-bar-chart bar-wrapper\"\n style={{ height, backgroundColor }}\n >\n <div style={{ width: `${value / total}%` }}>\n <div\n className=\"tipp_vertical-bar-chart bar\"\n style={{ backgroundColor: barColor }}\n />\n </div>\n </div>\n );\n}\n"],"mappings":";AAyBQ;AAVD,SAAS,iBACd,OACiB;AACjB,QAAM,EAAE,OAAO,OAAO,iBAAiB,UAAU,OAAO,IAAI;AAC5D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,QAAQ,gBAAgB;AAAA,MAEjC,8BAAC,SAAI,OAAO,EAAE,OAAO,GAAG,QAAQ,KAAK,IAAI,GACvC;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAE,iBAAiB,SAAS;AAAA;AAAA,MACrC,GACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,53 +0,0 @@
1
- import {
2
- Tooltip
3
- } from "./chunk-ACVANQJ4.js";
4
- import {
5
- Typo
6
- } from "./chunk-O3XTRD7R.js";
7
- import {
8
- __objRest,
9
- __spreadProps,
10
- __spreadValues
11
- } from "./chunk-N552FDTV.js";
12
-
13
- // src/atoms/ellipsis-tooltip.tsx
14
- import { 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 } = _a, rest = __objRest(_a, ["children", "style"]);
18
- const ref = useRef(null);
19
- const typoRef = maybeRef || ref;
20
- const [tooltipDisplay, setTooltipDisplay] = useState(
21
- "none"
22
- );
23
- useEffect(() => {
24
- if (maybeRef) {
25
- const typo = typoRef;
26
- if (typo.scrollWidth > typo.clientWidth) {
27
- setTooltipDisplay("block");
28
- } else {
29
- setTooltipDisplay("none");
30
- }
31
- }
32
- }, []);
33
- return /* @__PURE__ */ jsx(Tooltip, { content: children, style: { display: tooltipDisplay }, children: /* @__PURE__ */ jsx(
34
- Typo,
35
- __spreadProps(__spreadValues({}, rest), {
36
- ref: typoRef,
37
- style: __spreadValues({
38
- width: "100%",
39
- textOverflow: "ellipsis",
40
- overflow: "hidden",
41
- wordBreak: "break-word",
42
- WebkitLineClamp: 2
43
- }, style),
44
- children
45
- })
46
- ) });
47
- });
48
- EllipsisTooltip.displayName = "EllipsisTooltip";
49
-
50
- export {
51
- EllipsisTooltip
52
- };
53
- //# sourceMappingURL=chunk-GOKKEO23.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, ...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: 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,QAAqC,YAA7B,YAAU,MAZpB,IAYuC,IAAT,iBAAS,IAAT,CAApB,YAAU;AAClB,QAAM,MAAM,OAAwB,IAAI;AACxC,QAAM,UAAU,YAAY;AAC5B,QAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,IAC1C;AAAA,EACF;AAEA,YAAU,MAAM;AACd,QAAI,UAAU;AACZ,YAAM,OAAO;AACb,UAAI,KAAK,cAAc,KAAK,aAAa;AACvC,0BAAkB,OAAO;AAAA,MAC3B,OAAO;AACL,0BAAkB,MAAM;AAAA,MAC1B;AAAA,IACF;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,SACE,oBAAC,WAAQ,SAAS,UAAU,OAAO,EAAE,SAAS,eAAe,GAC3D;AAAA,IAAC;AAAA,qCACK,OADL;AAAA,MAEC,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,EACH,GACF;AAEJ,CAAC;AAED,gBAAgB,cAAc;","names":[]}
@@ -1,28 +0,0 @@
1
- import {
2
- Flex
3
- } from "./chunk-25HMMI7R.js";
4
-
5
- // src/molecules/navigation.tsx
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
- function Navigation({ items }) {
8
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "4", children: [
9
- "????",
10
- items == null ? void 0 : items.map((item) => {
11
- const { key, title, icon, itemRender, onClick, children } = item;
12
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
13
- itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { gap: "3", pl: "4", pr: "4", children: [
14
- icon,
15
- title
16
- ] }),
17
- children == null ? void 0 : children.map((el) => {
18
- return /* @__PURE__ */ jsx(Flex, { children: el.title }, el.key);
19
- })
20
- ] }, key);
21
- })
22
- ] });
23
- }
24
-
25
- export {
26
- Navigation
27
- };
28
- //# sourceMappingURL=chunk-GTDVFQVW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n}\n\nexport function Navigation({ items }: NavigationProps): React.ReactNode {\n return (\n <Flex direction=\"column\" gap=\"4\">\n ????\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n {title}\n </Flex>\n )}\n {children?.map((el) => {\n return <Flex key={el.key}>{el.title}</Flex>;\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;AA2Bc,SAMO,KANP;AAXP,SAAS,WAAW,EAAE,MAAM,GAAqC;AACtE,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAAI;AAAA;AAAA,IAE9B,+BAAO,IAAI,CAAC,SAAS;AACpB,YAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,aACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,qBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,KAAI,KAAI,IAAG,KAAI,IAAG,KACrB;AAAA;AAAA,UACA;AAAA,WACH;AAAA,QAED,qCAAU,IAAI,CAAC,OAAO;AACrB,iBAAO,oBAAC,QAAmB,aAAG,SAAZ,GAAG,GAAe;AAAA,QACtC;AAAA,WAX4B,GAY9B;AAAA,IAEJ;AAAA,KACF;AAEJ;","names":[]}
@@ -1,36 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-N552FDTV.js";
6
-
7
- // src/atoms/button.tsx
8
- import {
9
- Button as RadixButton
10
- } from "@radix-ui/themes";
11
- import { forwardRef, useMemo } from "react";
12
- import { jsx } from "react/jsx-runtime";
13
- var Button = forwardRef(
14
- (props, ref) => {
15
- const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
16
- const radixSize = useMemo(() => {
17
- switch (size) {
18
- case "small":
19
- return "1";
20
- case "medium":
21
- return "2";
22
- case "large":
23
- return "3";
24
- default:
25
- return "2";
26
- }
27
- }, [size]);
28
- return /* @__PURE__ */ jsx(RadixButton, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
29
- }
30
- );
31
- Button.displayName = "Button";
32
-
33
- export {
34
- Button
35
- };
36
- //# sourceMappingURL=chunk-GUTTFFCR.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/button.tsx"],"sourcesContent":["import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size'> & {\n size: 'small' | 'medium' | 'large';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n }, [size]);\n\n return <RadixButton {...restProps} ref={ref} size={radixSize} />;\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAgB,YAAY,eAAe;AAuBhC;AAjBJ,IAAM,SAAS;AAAA,EACpB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,OAZZ,IAYmC,IAAd,sBAAc,IAAd,CAAT;AAER,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WAAO,oBAAC,8CAAgB,YAAhB,EAA2B,KAAU,MAAM,YAAW;AAAA,EAChE;AACF;AAEA,OAAO,cAAc;","names":[]}
@@ -1,43 +0,0 @@
1
- import {
2
- Flex
3
- } from "./chunk-25HMMI7R.js";
4
- import {
5
- Typo
6
- } from "./chunk-O3XTRD7R.js";
7
-
8
- // src/molecules/navigation.tsx
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- function Navigation({
11
- items,
12
- fontColor,
13
- backgroundColor
14
- }) {
15
- return /* @__PURE__ */ jsx(
16
- Flex,
17
- {
18
- direction: "column",
19
- gap: "4",
20
- style: {
21
- color: fontColor || "var(--white-a12)",
22
- backgroundColor: backgroundColor || "var(--black-a12)"
23
- },
24
- children: items == null ? void 0 : items.map((item) => {
25
- const { key, title, icon, itemRender, onClick, children } = item;
26
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", onClick, children: [
27
- itemRender ? itemRender(item) : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", pl: "4", pr: "4", children: [
28
- icon,
29
- /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: title })
30
- ] }),
31
- children == null ? void 0 : children.map((el) => {
32
- return el.itemRender ? el.itemRender(el) : /* @__PURE__ */ jsx(Flex, { align: "center", onClick, pl: "7", children: /* @__PURE__ */ jsx(Typo, { variant: "subtitle", children: el.title }) }, el.key);
33
- })
34
- ] }, key);
35
- })
36
- }
37
- );
38
- }
39
-
40
- export {
41
- Navigation
42
- };
43
- //# sourceMappingURL=chunk-GZG4UOJZ.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/molecules/navigation.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '../atoms';\n\ninterface Item {\n itemRender?: (item: Item) => React.ReactNode;\n key: string;\n onClick?: () => void;\n title: string;\n icon?: React.ReactNode;\n children?: Item[];\n}\n\nexport interface NavigationProps {\n items?: Item[];\n fontColor?: string;\n backgroundColor?: string;\n}\n\nexport function Navigation({\n items,\n fontColor,\n backgroundColor,\n}: NavigationProps): React.ReactNode {\n return (\n <Flex\n direction=\"column\"\n gap=\"4\"\n style={{\n color: fontColor || 'var(--white-a12)',\n backgroundColor: backgroundColor || 'var(--black-a12)',\n }}\n >\n {items?.map((item) => {\n const { key, title, icon, itemRender, onClick, children } = item;\n return (\n <Flex direction=\"column\" key={key} onClick={onClick}>\n {itemRender ? (\n itemRender(item)\n ) : (\n <Flex align=\"center\" gap=\"3\" pl=\"4\" pr=\"4\">\n {icon}\n <Typo variant=\"subtitle\">{title}</Typo>\n </Flex>\n )}\n {children?.map((el) => {\n return el.itemRender ? (\n el.itemRender(el)\n ) : (\n <Flex align=\"center\" key={el.key} onClick={onClick} pl=\"7\">\n <Typo variant=\"subtitle\">{el.title}</Typo>\n </Flex>\n );\n })}\n </Flex>\n );\n })}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;AAuCc,SAEE,KAFF;AArBP,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AACF,GAAqC;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,KAAI;AAAA,MACJ,OAAO;AAAA,QACL,OAAO,aAAa;AAAA,QACpB,iBAAiB,mBAAmB;AAAA,MACtC;AAAA,MAEC,yCAAO,IAAI,CAAC,SAAS;AACpB,cAAM,EAAE,KAAK,OAAO,MAAM,YAAY,SAAS,SAAS,IAAI;AAC5D,eACE,qBAAC,QAAK,WAAU,UAAmB,SAChC;AAAA,uBACC,WAAW,IAAI,IAEf,qBAAC,QAAK,OAAM,UAAS,KAAI,KAAI,IAAG,KAAI,IAAG,KACpC;AAAA;AAAA,YACD,oBAAC,QAAK,SAAQ,YAAY,iBAAM;AAAA,aAClC;AAAA,UAED,qCAAU,IAAI,CAAC,OAAO;AACrB,mBAAO,GAAG,aACR,GAAG,WAAW,EAAE,IAEhB,oBAAC,QAAK,OAAM,UAAsB,SAAkB,IAAG,KACrD,8BAAC,QAAK,SAAQ,YAAY,aAAG,OAAM,KADX,GAAG,GAE7B;AAAA,UAEJ;AAAA,aAjB4B,GAkB9B;AAAA,MAEJ;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,36 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-N552FDTV.js";
6
-
7
- // src/atoms/button.tsx
8
- import {
9
- Button as RadixButton
10
- } from "@radix-ui/themes";
11
- import { forwardRef, useMemo } from "react";
12
- import { jsx } from "react/jsx-runtime";
13
- var Button = forwardRef(
14
- (props, ref) => {
15
- const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
16
- const radixSize = useMemo(() => {
17
- switch (size) {
18
- case "small":
19
- return "1";
20
- case "medium":
21
- return "2";
22
- case "large":
23
- return "3";
24
- default:
25
- return "3";
26
- }
27
- }, [size]);
28
- return /* @__PURE__ */ jsx(RadixButton, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
29
- }
30
- );
31
- Button.displayName = "Button";
32
-
33
- export {
34
- Button
35
- };
36
- //# sourceMappingURL=chunk-GZHSO6CW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/atoms/button.tsx"],"sourcesContent":["import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size'> & {\n size: 'small' | 'medium' | 'large';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '3';\n }\n }, [size]);\n\n return <RadixButton {...restProps} ref={ref} size={radixSize} />;\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAgB,YAAY,eAAe;AAuBhC;AAjBJ,IAAM,SAAS;AAAA,EACpB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,OAZZ,IAYmC,IAAd,sBAAc,IAAd,CAAT;AAER,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WAAO,oBAAC,8CAAgB,YAAhB,EAA2B,KAAU,MAAM,YAAW;AAAA,EAChE;AACF;AAEA,OAAO,cAAc;","names":[]}