@deepnoid/ui 0.0.112 → 0.1.1

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 (433) hide show
  1. package/.eslintrc.cjs +4 -0
  2. package/.turbo/turbo-build.log +365 -0
  3. package/babel.config.js +8 -0
  4. package/dist/NanumSquare_acB-VMSVRKSM.ttf +0 -0
  5. package/dist/NanumSquare_acEB-HRZ3QLG2.ttf +0 -0
  6. package/dist/NanumSquare_acL-FSAAP5CK.ttf +0 -0
  7. package/dist/NanumSquare_acR-RZCHPXSJ.ttf +0 -0
  8. package/dist/{chunk-LCI6RPWE.mjs → chunk-24NQEB73.mjs} +7 -5
  9. package/dist/chunk-2TJDQIKB.mjs +82 -0
  10. package/dist/chunk-2ZT6V4QR.mjs +591 -0
  11. package/dist/chunk-56VCX2QR.mjs +170 -0
  12. package/dist/chunk-6PNKRBUT.mjs +34 -0
  13. package/dist/{chunk-IZ6II3QA.mjs → chunk-AC6TWLRT.mjs} +1 -13
  14. package/dist/{chunk-PRLGHYFO.mjs → chunk-AMA53H3C.mjs} +7 -7
  15. package/dist/chunk-AYWI2CRE.mjs +211 -0
  16. package/dist/{chunk-OJ2OEI5B.mjs → chunk-BKE6QF6W.mjs} +7 -0
  17. package/dist/chunk-CF6O6TCF.mjs +63 -0
  18. package/dist/chunk-DUOYMLZL.mjs +283 -0
  19. package/dist/{chunk-7HHFRKJU.mjs → chunk-GLBASISV.mjs} +2 -2
  20. package/dist/{chunk-FDKT4IBP.mjs → chunk-HKXUNG3H.mjs} +4 -4
  21. package/dist/chunk-J5WJD6XZ.mjs +221 -0
  22. package/dist/chunk-LXHUO6VM.mjs +46 -0
  23. package/dist/chunk-M2IRRTFM.mjs +79 -0
  24. package/dist/{chunk-NGQ3MK2J.mjs → chunk-N4F3R6HG.mjs} +1 -1
  25. package/dist/chunk-ON5SGXHZ.mjs +29 -0
  26. package/dist/chunk-OQS4LGZK.mjs +27 -0
  27. package/dist/{chunk-IOCRFIQF.mjs → chunk-P2TMIZRH.mjs} +131 -30
  28. package/dist/chunk-RCU5MLBU.mjs +198 -0
  29. package/dist/chunk-RT5NKQX4.mjs +285 -0
  30. package/dist/chunk-S65S7QZ5.mjs +413 -0
  31. package/dist/chunk-SE5TU755.mjs +1 -0
  32. package/dist/chunk-SPX2BHO2.mjs +314 -0
  33. package/dist/{chunk-TSMVRGDO.mjs → chunk-SSEQSF5F.mjs} +14 -8
  34. package/dist/chunk-U2YKMXVG.mjs +145 -0
  35. package/dist/{chunk-JN7EGKJL.mjs → chunk-VRGHUYRU.mjs} +11 -5
  36. package/dist/{chunk-EYY4CRRR.mjs → chunk-VVOOYDJS.mjs} +15 -17
  37. package/dist/chunk-WSIADHVC.mjs +126 -0
  38. package/dist/{chunk-PXUBPWKU.mjs → chunk-XIHAABHB.mjs} +4 -4
  39. package/dist/{chunk-BCN5F2MN.mjs → chunk-YCMZELLD.mjs} +2 -2
  40. package/dist/{chunk-RZZWHI6O.mjs → chunk-YZNQ2QGK.mjs} +8 -3
  41. package/dist/chunk-Z74QNVPG.mjs +127 -0
  42. package/dist/{chunk-KRI5IALM.mjs → chunk-ZEZ6ZA3N.mjs} +6 -3
  43. package/dist/{chunk-KCBBBRSF.mjs → chunk-ZMOAFSYE.mjs} +1 -1
  44. package/dist/components/avatar/avatar.d.mts +80 -0
  45. package/dist/components/avatar/avatar.d.ts +80 -0
  46. package/dist/components/{accordion/accordionItem.js → avatar/avatar.js} +454 -213
  47. package/dist/components/avatar/avatar.mjs +10 -0
  48. package/dist/components/avatar/index.d.mts +4 -0
  49. package/dist/components/avatar/index.d.ts +4 -0
  50. package/dist/components/{accordion → avatar}/index.js +836 -676
  51. package/dist/components/avatar/index.mjs +11 -0
  52. package/dist/components/backdrop/backdrop.d.mts +11 -0
  53. package/dist/components/backdrop/backdrop.d.ts +11 -0
  54. package/dist/components/backdrop/backdrop.js +345 -0
  55. package/dist/components/backdrop/backdrop.mjs +9 -0
  56. package/dist/components/backdrop/index.d.mts +2 -0
  57. package/dist/components/backdrop/index.d.ts +2 -0
  58. package/dist/components/backdrop/index.js +351 -0
  59. package/dist/components/backdrop/index.mjs +10 -0
  60. package/dist/components/breadcrumb/breadcrumb.d.mts +96 -0
  61. package/dist/components/breadcrumb/breadcrumb.d.ts +96 -0
  62. package/dist/components/breadcrumb/breadcrumb.js +4067 -0
  63. package/dist/components/breadcrumb/breadcrumb.mjs +12 -0
  64. package/dist/components/breadcrumb/index.d.mts +7 -0
  65. package/dist/components/breadcrumb/index.d.ts +7 -0
  66. package/dist/components/breadcrumb/index.js +4073 -0
  67. package/dist/components/breadcrumb/index.mjs +13 -0
  68. package/dist/components/button/button-group.d.mts +5 -4
  69. package/dist/components/button/button-group.d.ts +5 -4
  70. package/dist/components/button/button-group.js +278 -9
  71. package/dist/components/button/button-group.mjs +3 -3
  72. package/dist/components/button/button.d.mts +27 -180
  73. package/dist/components/button/button.d.ts +27 -180
  74. package/dist/components/button/button.js +600 -426
  75. package/dist/components/button/button.mjs +8 -5
  76. package/dist/components/button/index.d.mts +0 -1
  77. package/dist/components/button/index.d.ts +0 -1
  78. package/dist/components/button/index.js +605 -431
  79. package/dist/components/button/index.mjs +9 -6
  80. package/dist/components/checkbox/checkbox.d.mts +50 -206
  81. package/dist/components/checkbox/checkbox.d.ts +50 -206
  82. package/dist/components/checkbox/checkbox.js +464 -127
  83. package/dist/components/checkbox/checkbox.mjs +4 -3
  84. package/dist/components/checkbox/index.d.mts +0 -1
  85. package/dist/components/checkbox/index.d.ts +0 -1
  86. package/dist/components/checkbox/index.js +464 -127
  87. package/dist/components/checkbox/index.mjs +4 -3
  88. package/dist/components/chip/chip.d.mts +119 -0
  89. package/dist/components/chip/chip.d.ts +119 -0
  90. package/dist/components/chip/chip.js +4200 -0
  91. package/dist/components/chip/chip.mjs +13 -0
  92. package/dist/components/chip/index.d.mts +7 -0
  93. package/dist/components/chip/index.d.ts +7 -0
  94. package/dist/components/chip/index.js +4206 -0
  95. package/dist/components/chip/index.mjs +14 -0
  96. package/dist/components/dateTimePicker/calendar.d.mts +3 -53
  97. package/dist/components/dateTimePicker/calendar.d.ts +3 -53
  98. package/dist/components/dateTimePicker/calendar.js +415 -43
  99. package/dist/components/dateTimePicker/calendar.mjs +5 -5
  100. package/dist/components/dateTimePicker/dateTimePicker.d.mts +23 -180
  101. package/dist/components/dateTimePicker/dateTimePicker.d.ts +23 -180
  102. package/dist/components/dateTimePicker/dateTimePicker.js +674 -151
  103. package/dist/components/dateTimePicker/dateTimePicker.mjs +11 -10
  104. package/dist/components/dateTimePicker/index.d.mts +0 -1
  105. package/dist/components/dateTimePicker/index.d.ts +0 -1
  106. package/dist/components/dateTimePicker/index.js +674 -151
  107. package/dist/components/dateTimePicker/index.mjs +11 -10
  108. package/dist/components/dateTimePicker/timePicker.js +4218 -130
  109. package/dist/components/dateTimePicker/timePicker.mjs +9 -5
  110. package/dist/components/dateTimePicker/useDateTimePicker.d.mts +4 -4
  111. package/dist/components/dateTimePicker/useDateTimePicker.d.ts +4 -4
  112. package/dist/components/dateTimePicker/useDateTimePicker.mjs +1 -1
  113. package/dist/components/dateTimePicker/util.mjs +1 -1
  114. package/dist/components/icon/Icon.d.mts +30 -5
  115. package/dist/components/icon/Icon.d.ts +30 -5
  116. package/dist/components/icon/Icon.js +137 -34
  117. package/dist/components/icon/Icon.mjs +3 -3
  118. package/dist/components/icon/index.d.mts +1 -0
  119. package/dist/components/icon/index.d.ts +1 -0
  120. package/dist/components/icon/index.js +137 -34
  121. package/dist/components/icon/index.mjs +3 -3
  122. package/dist/components/icon/template.d.mts +7 -1
  123. package/dist/components/icon/template.d.ts +7 -1
  124. package/dist/components/icon/template.js +131 -30
  125. package/dist/components/icon/template.mjs +2 -2
  126. package/dist/components/input/index.d.mts +1 -2
  127. package/dist/components/input/index.d.ts +1 -2
  128. package/dist/components/input/index.js +634 -197
  129. package/dist/components/input/index.mjs +6 -5
  130. package/dist/components/input/input.d.mts +114 -256
  131. package/dist/components/input/input.d.ts +114 -256
  132. package/dist/components/input/input.js +634 -197
  133. package/dist/components/input/input.mjs +6 -5
  134. package/dist/components/list/index.d.mts +5 -2
  135. package/dist/components/list/index.d.ts +5 -2
  136. package/dist/components/list/index.js +4161 -73
  137. package/dist/components/list/index.mjs +8 -4
  138. package/dist/components/list/list.d.mts +17 -67
  139. package/dist/components/list/list.d.ts +17 -67
  140. package/dist/components/list/list.js +290 -23
  141. package/dist/components/list/list.mjs +3 -3
  142. package/dist/components/list/listItem.d.mts +108 -113
  143. package/dist/components/list/listItem.d.ts +108 -113
  144. package/dist/components/list/listItem.js +4159 -61
  145. package/dist/components/list/listItem.mjs +7 -3
  146. package/dist/components/modal/index.d.mts +0 -1
  147. package/dist/components/modal/index.d.ts +0 -1
  148. package/dist/components/modal/index.js +630 -454
  149. package/dist/components/modal/index.mjs +10 -7
  150. package/dist/components/modal/modal.d.mts +3 -76
  151. package/dist/components/modal/modal.d.ts +3 -76
  152. package/dist/components/modal/modal.js +630 -454
  153. package/dist/components/modal/modal.mjs +10 -7
  154. package/dist/components/pagination/index.d.mts +1 -1
  155. package/dist/components/pagination/index.d.ts +1 -1
  156. package/dist/components/pagination/index.js +740 -302
  157. package/dist/components/pagination/index.mjs +8 -7
  158. package/dist/components/pagination/pagination.d.mts +50 -112
  159. package/dist/components/pagination/pagination.d.ts +50 -112
  160. package/dist/components/pagination/pagination.js +742 -306
  161. package/dist/components/pagination/pagination.mjs +10 -11
  162. package/dist/components/pagination/usePagination.mjs +1 -1
  163. package/dist/components/radio/index.d.mts +0 -1
  164. package/dist/components/radio/index.d.ts +0 -1
  165. package/dist/components/radio/index.js +424 -111
  166. package/dist/components/radio/index.mjs +4 -3
  167. package/dist/components/radio/radio.d.mts +113 -183
  168. package/dist/components/radio/radio.d.ts +113 -183
  169. package/dist/components/radio/radio.js +424 -111
  170. package/dist/components/radio/radio.mjs +4 -3
  171. package/dist/components/ripple/index.d.mts +4 -0
  172. package/dist/components/ripple/index.d.ts +4 -0
  173. package/dist/components/ripple/index.js +98 -0
  174. package/dist/components/ripple/index.mjs +13 -0
  175. package/dist/components/ripple/ripple.d.mts +21 -0
  176. package/dist/components/ripple/ripple.d.ts +21 -0
  177. package/dist/components/ripple/ripple.js +65 -0
  178. package/dist/components/ripple/ripple.mjs +8 -0
  179. package/dist/components/ripple/useRipple.d.mts +17 -0
  180. package/dist/components/ripple/useRipple.d.ts +17 -0
  181. package/dist/components/ripple/useRipple.js +57 -0
  182. package/dist/components/ripple/useRipple.mjs +10 -0
  183. package/dist/components/select/index.d.mts +0 -1
  184. package/dist/components/select/index.d.ts +0 -1
  185. package/dist/components/select/index.js +437 -44
  186. package/dist/components/select/index.mjs +6 -6
  187. package/dist/components/select/option.d.mts +2 -3
  188. package/dist/components/select/option.d.ts +2 -3
  189. package/dist/components/select/option.js +431 -44
  190. package/dist/components/select/option.mjs +5 -5
  191. package/dist/components/select/select.d.mts +19 -180
  192. package/dist/components/select/select.d.ts +19 -180
  193. package/dist/components/select/select.js +437 -44
  194. package/dist/components/select/select.mjs +6 -6
  195. package/dist/components/select/useSelect.d.mts +3 -4
  196. package/dist/components/select/useSelect.d.ts +3 -4
  197. package/dist/components/select/useSelect.mjs +1 -1
  198. package/dist/components/switch/index.d.mts +1 -2
  199. package/dist/components/switch/index.d.ts +1 -2
  200. package/dist/components/switch/index.js +54 -77
  201. package/dist/components/switch/index.mjs +2 -2
  202. package/dist/components/switch/switch.d.mts +56 -190
  203. package/dist/components/switch/switch.d.ts +56 -190
  204. package/dist/components/switch/switch.js +55 -83
  205. package/dist/components/switch/switch.mjs +4 -6
  206. package/dist/components/table/index.d.mts +0 -1
  207. package/dist/components/table/index.d.ts +0 -1
  208. package/dist/components/table/index.js +1730 -910
  209. package/dist/components/table/index.mjs +14 -9
  210. package/dist/components/table/table-body.d.mts +9 -16
  211. package/dist/components/table/table-body.d.ts +9 -16
  212. package/dist/components/table/table-body.js +517 -3856
  213. package/dist/components/table/table-body.mjs +4 -7
  214. package/dist/components/table/table-head.d.mts +6 -9
  215. package/dist/components/table/table-head.d.ts +6 -9
  216. package/dist/components/table/table-head.js +430 -162
  217. package/dist/components/table/table-head.mjs +4 -4
  218. package/dist/components/table/table.d.mts +98 -578
  219. package/dist/components/table/table.d.ts +98 -578
  220. package/dist/components/table/table.js +1730 -910
  221. package/dist/components/table/table.mjs +14 -9
  222. package/dist/components/tabs/index.d.mts +0 -1
  223. package/dist/components/tabs/index.d.ts +0 -1
  224. package/dist/components/tabs/index.js +291 -9
  225. package/dist/components/tabs/index.mjs +3 -3
  226. package/dist/components/tabs/tabs.d.mts +12 -99
  227. package/dist/components/tabs/tabs.d.ts +12 -99
  228. package/dist/components/tabs/tabs.js +291 -9
  229. package/dist/components/tabs/tabs.mjs +3 -3
  230. package/dist/components/textarea/index.d.mts +0 -1
  231. package/dist/components/textarea/index.d.ts +0 -1
  232. package/dist/components/textarea/index.js +7 -0
  233. package/dist/components/textarea/index.mjs +2 -2
  234. package/dist/components/textarea/textarea.d.mts +19 -271
  235. package/dist/components/textarea/textarea.d.ts +19 -271
  236. package/dist/components/textarea/textarea.js +7 -0
  237. package/dist/components/textarea/textarea.mjs +2 -2
  238. package/dist/components/toast/index.d.mts +1 -1
  239. package/dist/components/toast/index.d.ts +1 -1
  240. package/dist/components/toast/index.js +426 -44
  241. package/dist/components/toast/index.mjs +6 -6
  242. package/dist/components/toast/toast-utils.mjs +1 -1
  243. package/dist/components/toast/toast.d.mts +4 -87
  244. package/dist/components/toast/toast.d.ts +4 -87
  245. package/dist/components/toast/toast.js +425 -43
  246. package/dist/components/toast/toast.mjs +5 -5
  247. package/dist/components/toast/use-toast.d.mts +1 -0
  248. package/dist/components/toast/use-toast.d.ts +1 -0
  249. package/dist/components/toast/use-toast.js +426 -44
  250. package/dist/components/toast/use-toast.mjs +6 -6
  251. package/dist/components/tooltip/index.d.mts +1 -2
  252. package/dist/components/tooltip/index.d.ts +1 -2
  253. package/dist/components/tooltip/index.js +412 -54
  254. package/dist/components/tooltip/index.mjs +5 -5
  255. package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
  256. package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
  257. package/dist/components/tooltip/tooltip-utils.js +67 -0
  258. package/dist/components/tooltip/tooltip-utils.mjs +6 -2
  259. package/dist/components/tooltip/tooltip.d.mts +37 -85
  260. package/dist/components/tooltip/tooltip.d.ts +37 -85
  261. package/dist/components/tooltip/tooltip.js +412 -54
  262. package/dist/components/tooltip/tooltip.mjs +5 -5
  263. package/dist/components/tooltip/useTooltip.d.mts +1 -1
  264. package/dist/components/tooltip/useTooltip.d.ts +1 -1
  265. package/dist/components/tooltip/useTooltip.mjs +3 -3
  266. package/dist/fonts/NanumSquare_acB.js +4 -0
  267. package/dist/fonts/NanumSquare_acB.mjs +8 -0
  268. package/dist/fonts/NanumSquare_acB.ttf +0 -0
  269. package/dist/fonts/NanumSquare_acEB.js +4 -0
  270. package/dist/fonts/NanumSquare_acEB.mjs +8 -0
  271. package/dist/fonts/NanumSquare_acEB.ttf +0 -0
  272. package/dist/fonts/NanumSquare_acL.js +4 -0
  273. package/dist/fonts/NanumSquare_acL.mjs +8 -0
  274. package/dist/fonts/NanumSquare_acL.ttf +0 -0
  275. package/dist/fonts/NanumSquare_acR.js +4 -0
  276. package/dist/fonts/NanumSquare_acR.mjs +8 -0
  277. package/dist/fonts/NanumSquare_acR.ttf +0 -0
  278. package/dist/fonts/font.css +36 -0
  279. package/dist/index.d.mts +6 -8
  280. package/dist/index.d.ts +6 -8
  281. package/dist/index.js +3929 -4355
  282. package/dist/index.mjs +70 -795
  283. package/dist/tooltip-utils-DO3LQaVM.d.mts +52 -0
  284. package/dist/tooltip-utils-DO3LQaVM.d.ts +52 -0
  285. package/dist/utils/clsx.mjs +1 -1
  286. package/dist/utils/props.mjs +1 -1
  287. package/dist/utils/tailwind-variants.d.mts +1 -21
  288. package/dist/utils/tailwind-variants.d.ts +1 -21
  289. package/dist/utils/tailwind-variants.js +288 -9
  290. package/dist/utils/tailwind-variants.mjs +2 -2
  291. package/dist/utils/types.d.mts +5 -4
  292. package/dist/utils/types.d.ts +5 -4
  293. package/package.json +34 -37
  294. package/postcss.config.js +6 -0
  295. package/tailwind.config.ts +7 -0
  296. package/tsup.config.ts +8 -0
  297. package/dist/chunk-2ALY3PH5.mjs +0 -66
  298. package/dist/chunk-A3RWT3JJ.mjs +0 -197
  299. package/dist/chunk-ANYPMQH4.mjs +0 -200
  300. package/dist/chunk-FNPWLOGV.mjs +0 -12875
  301. package/dist/chunk-H7BLXC5M.mjs +0 -5965
  302. package/dist/chunk-J725QONZ.mjs +0 -24
  303. package/dist/chunk-L6BQA6GI.mjs +0 -160
  304. package/dist/chunk-N2JULHST.mjs +0 -141
  305. package/dist/chunk-ODMRJXLJ.mjs +0 -61
  306. package/dist/chunk-PO3ADNA5.mjs +0 -56
  307. package/dist/chunk-QGZEHOKA.mjs +0 -342
  308. package/dist/chunk-QWFOYO3D.mjs +0 -173
  309. package/dist/chunk-S3O52LLG.mjs +0 -151
  310. package/dist/chunk-S4DTK5GI.mjs +0 -4036
  311. package/dist/chunk-SWR7E3NU.mjs +0 -78
  312. package/dist/chunk-U74WK5VI.mjs +0 -123
  313. package/dist/chunk-UR64ZUAU.mjs +0 -671
  314. package/dist/chunk-V77MALL4.mjs +0 -112
  315. package/dist/chunk-VWD26TIQ.mjs +0 -139
  316. package/dist/chunk-YRMFIXXC.mjs +0 -277
  317. package/dist/chunk-ZNEEYSIK.mjs +0 -257
  318. package/dist/components/accordion/accordion.d.mts +0 -154
  319. package/dist/components/accordion/accordion.d.ts +0 -154
  320. package/dist/components/accordion/accordion.js +0 -142
  321. package/dist/components/accordion/accordion.mjs +0 -10
  322. package/dist/components/accordion/accordion.test.js +0 -13015
  323. package/dist/components/accordion/accordion.test.mjs +0 -25
  324. package/dist/components/accordion/accordionItem.d.mts +0 -282
  325. package/dist/components/accordion/accordionItem.d.ts +0 -282
  326. package/dist/components/accordion/accordionItem.mjs +0 -13
  327. package/dist/components/accordion/index.d.mts +0 -6
  328. package/dist/components/accordion/index.d.ts +0 -6
  329. package/dist/components/accordion/index.mjs +0 -18
  330. package/dist/components/button/button-group.test.js +0 -21247
  331. package/dist/components/button/button-group.test.mjs +0 -57
  332. package/dist/components/button/button.test.js +0 -23148
  333. package/dist/components/button/button.test.mjs +0 -52
  334. package/dist/components/card/card.d.mts +0 -124
  335. package/dist/components/card/card.d.ts +0 -124
  336. package/dist/components/card/card.js +0 -103
  337. package/dist/components/card/card.mjs +0 -9
  338. package/dist/components/card/card.test.js +0 -12986
  339. package/dist/components/card/card.test.mjs +0 -24
  340. package/dist/components/card/index.d.mts +0 -5
  341. package/dist/components/card/index.d.ts +0 -5
  342. package/dist/components/card/index.js +0 -109
  343. package/dist/components/card/index.mjs +0 -10
  344. package/dist/components/checkbox/checkbox.test.js +0 -17237
  345. package/dist/components/checkbox/checkbox.test.mjs +0 -100
  346. package/dist/components/input/input.test.d.mts +0 -2
  347. package/dist/components/input/input.test.d.ts +0 -2
  348. package/dist/components/input/input.test.js +0 -22782
  349. package/dist/components/input/input.test.mjs +0 -99
  350. package/dist/components/list/list.test.d.mts +0 -2
  351. package/dist/components/list/list.test.d.ts +0 -2
  352. package/dist/components/list/list.test.js +0 -12995
  353. package/dist/components/list/list.test.mjs +0 -25
  354. package/dist/components/modal/modal.test.d.mts +0 -2
  355. package/dist/components/modal/modal.test.d.ts +0 -2
  356. package/dist/components/modal/modal.test.js +0 -17376
  357. package/dist/components/modal/modal.test.mjs +0 -39
  358. package/dist/components/pagination/pagination.test.d.mts +0 -2
  359. package/dist/components/pagination/pagination.test.d.ts +0 -2
  360. package/dist/components/pagination/pagination.test.js +0 -17051
  361. package/dist/components/pagination/pagination.test.mjs +0 -38
  362. package/dist/components/progress/index.d.mts +0 -5
  363. package/dist/components/progress/index.d.ts +0 -5
  364. package/dist/components/progress/index.js +0 -184
  365. package/dist/components/progress/index.mjs +0 -10
  366. package/dist/components/progress/progress.d.mts +0 -281
  367. package/dist/components/progress/progress.d.ts +0 -281
  368. package/dist/components/progress/progress.js +0 -178
  369. package/dist/components/progress/progress.mjs +0 -9
  370. package/dist/components/progress/progress.test.d.mts +0 -2
  371. package/dist/components/progress/progress.test.d.ts +0 -2
  372. package/dist/components/progress/progress.test.js +0 -13087
  373. package/dist/components/progress/progress.test.mjs +0 -50
  374. package/dist/components/radio/radio.test.d.mts +0 -2
  375. package/dist/components/radio/radio.test.d.ts +0 -2
  376. package/dist/components/radio/radio.test.js +0 -13147
  377. package/dist/components/radio/radio.test.mjs +0 -63
  378. package/dist/components/select/select.test.d.mts +0 -2
  379. package/dist/components/select/select.test.d.ts +0 -2
  380. package/dist/components/select/select.test.js +0 -20928
  381. package/dist/components/select/select.test.mjs +0 -71
  382. package/dist/components/slider/index.d.mts +0 -5
  383. package/dist/components/slider/index.d.ts +0 -5
  384. package/dist/components/slider/index.js +0 -239
  385. package/dist/components/slider/index.mjs +0 -10
  386. package/dist/components/slider/slider.d.mts +0 -359
  387. package/dist/components/slider/slider.d.ts +0 -359
  388. package/dist/components/slider/slider.js +0 -238
  389. package/dist/components/slider/slider.mjs +0 -11
  390. package/dist/components/slider/slider.test.d.mts +0 -2
  391. package/dist/components/slider/slider.test.d.ts +0 -2
  392. package/dist/components/slider/slider.test.js +0 -13122
  393. package/dist/components/slider/slider.test.mjs +0 -30
  394. package/dist/components/switch/switch.test.d.mts +0 -2
  395. package/dist/components/switch/switch.test.d.ts +0 -2
  396. package/dist/components/switch/switch.test.js +0 -13098
  397. package/dist/components/switch/switch.test.mjs +0 -52
  398. package/dist/components/table/table.test.d.mts +0 -2
  399. package/dist/components/table/table.test.d.ts +0 -2
  400. package/dist/components/table/table.test.js +0 -17256
  401. package/dist/components/table/table.test.mjs +0 -42
  402. package/dist/components/tabs/tabs.test.d.mts +0 -2
  403. package/dist/components/tabs/tabs.test.d.ts +0 -2
  404. package/dist/components/tabs/tabs.test.js +0 -17223
  405. package/dist/components/tabs/tabs.test.mjs +0 -70
  406. package/dist/components/textarea/textarea.test.d.mts +0 -2
  407. package/dist/components/textarea/textarea.test.d.ts +0 -2
  408. package/dist/components/textarea/textarea.test.js +0 -19117
  409. package/dist/components/textarea/textarea.test.mjs +0 -66
  410. package/dist/components/toast/toast.test.d.mts +0 -2
  411. package/dist/components/toast/toast.test.d.ts +0 -2
  412. package/dist/components/toast/toast.test.js +0 -16620
  413. package/dist/components/toast/toast.test.mjs +0 -28
  414. package/dist/components/tooltip/tooltip.test.d.mts +0 -2
  415. package/dist/components/tooltip/tooltip.test.d.ts +0 -2
  416. package/dist/components/tooltip/tooltip.test.js +0 -17381
  417. package/dist/components/tooltip/tooltip.test.mjs +0 -39
  418. package/dist/tooltip-utils-DR0UEfBN.d.mts +0 -31
  419. package/dist/tooltip-utils-DR0UEfBN.d.ts +0 -31
  420. /package/dist/{chunk-7VOQKIIK.mjs → chunk-6WSACUIB.mjs} +0 -0
  421. /package/dist/{chunk-HAOK24MK.mjs → chunk-7DLOYKVC.mjs} +0 -0
  422. /package/dist/{chunk-MV2WCFK7.mjs → chunk-KYIODWXL.mjs} +0 -0
  423. /package/dist/{chunk-NMSDSEBD.mjs → chunk-MGEWSREV.mjs} +0 -0
  424. /package/dist/{components/accordion/accordion.test.d.mts → fonts/NanumSquare_acB.d.mts} +0 -0
  425. /package/dist/{components/accordion/accordion.test.d.ts → fonts/NanumSquare_acB.d.ts} +0 -0
  426. /package/dist/{components/button/button-group.test.d.mts → fonts/NanumSquare_acEB.d.mts} +0 -0
  427. /package/dist/{components/button/button-group.test.d.ts → fonts/NanumSquare_acEB.d.ts} +0 -0
  428. /package/dist/{components/button/button.test.d.mts → fonts/NanumSquare_acL.d.mts} +0 -0
  429. /package/dist/{components/button/button.test.d.ts → fonts/NanumSquare_acL.d.ts} +0 -0
  430. /package/dist/{components/card/card.test.d.mts → fonts/NanumSquare_acR.d.mts} +0 -0
  431. /package/dist/{components/card/card.test.d.ts → fonts/NanumSquare_acR.d.ts} +0 -0
  432. /package/dist/{components/checkbox/checkbox.test.d.mts → fonts/font.d.mts} +0 -0
  433. /package/dist/{components/checkbox/checkbox.test.d.ts → fonts/font.d.ts} +0 -0
@@ -1,9 +1,14 @@
1
1
  "use client";
2
2
  "use strict";
3
+ var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __commonJS = (cb, mod) => function __require() {
10
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
11
+ };
7
12
  var __export = (target, all) => {
8
13
  for (var name in all)
9
14
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -16,8 +21,84 @@ var __copyProps = (to, from, except, desc) => {
16
21
  }
17
22
  return to;
18
23
  };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
19
32
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
33
 
34
+ // ../../node_modules/tailwindcss/lib/util/createPlugin.js
35
+ var require_createPlugin = __commonJS({
36
+ "../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
37
+ "use strict";
38
+ Object.defineProperty(exports2, "__esModule", {
39
+ value: true
40
+ });
41
+ Object.defineProperty(exports2, "default", {
42
+ enumerable: true,
43
+ get: function() {
44
+ return _default;
45
+ }
46
+ });
47
+ function createPlugin(plugin2, config) {
48
+ return {
49
+ handler: plugin2,
50
+ config
51
+ };
52
+ }
53
+ createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
54
+ const optionsFunction = function(options) {
55
+ return {
56
+ __options: options,
57
+ handler: pluginFunction(options),
58
+ config: configFunction(options)
59
+ };
60
+ };
61
+ optionsFunction.__isOptionsFunction = true;
62
+ optionsFunction.__pluginFunction = pluginFunction;
63
+ optionsFunction.__configFunction = configFunction;
64
+ return optionsFunction;
65
+ };
66
+ var _default = createPlugin;
67
+ }
68
+ });
69
+
70
+ // ../../node_modules/tailwindcss/lib/public/create-plugin.js
71
+ var require_create_plugin = __commonJS({
72
+ "../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
73
+ "use strict";
74
+ Object.defineProperty(exports2, "__esModule", {
75
+ value: true
76
+ });
77
+ Object.defineProperty(exports2, "default", {
78
+ enumerable: true,
79
+ get: function() {
80
+ return _default;
81
+ }
82
+ });
83
+ var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
84
+ function _interop_require_default(obj) {
85
+ return obj && obj.__esModule ? obj : {
86
+ default: obj
87
+ };
88
+ }
89
+ var _default = _createPlugin.default;
90
+ }
91
+ });
92
+
93
+ // ../../node_modules/tailwindcss/plugin.js
94
+ var require_plugin = __commonJS({
95
+ "../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
96
+ "use strict";
97
+ var createPlugin = require_create_plugin();
98
+ module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
99
+ }
100
+ });
101
+
21
102
  // src/components/tooltip/index.ts
22
103
  var tooltip_exports = {};
23
104
  __export(tooltip_exports, {
@@ -31,19 +112,217 @@ var import_react_dom = require("react-dom");
31
112
 
32
113
  // src/utils/tailwind-variants.ts
33
114
  var import_tailwind_variants = require("tailwind-variants");
34
- var COMMON_SIZE = ["sm", "md", "lg"];
35
- var COMMON_RADIUS = ["xlg", "xxlg", "none", "full"];
36
- var COMMON_FONTSIZE = ["h1", "h2", "h3", "h4", "h5"];
37
- var COMMON_SHADOW = ["inner", "drop"];
115
+
116
+ // ../tailwind-config/src/plugin.ts
117
+ var import_plugin = __toESM(require_plugin());
118
+
119
+ // ../tailwind-config/src/typography/font.ts
120
+ var fontSize = {
121
+ h1: [
122
+ "40px",
123
+ {
124
+ fontWeight: "700"
125
+ }
126
+ ],
127
+ h2: [
128
+ "34px",
129
+ {
130
+ fontWeight: "700"
131
+ }
132
+ ],
133
+ h3: [
134
+ "28px",
135
+ {
136
+ fontWeight: "700"
137
+ }
138
+ ],
139
+ h4: [
140
+ "24px",
141
+ {
142
+ fontWeight: "700"
143
+ }
144
+ ],
145
+ h5: [
146
+ "20px",
147
+ {
148
+ fontWeight: "600"
149
+ }
150
+ ],
151
+ sm: [
152
+ "12px",
153
+ {
154
+ lineHeight: "18px",
155
+ fontWeight: "400"
156
+ }
157
+ ],
158
+ md: [
159
+ "14px",
160
+ {
161
+ lineHeight: "21px",
162
+ fontWeight: "400"
163
+ }
164
+ ],
165
+ lg: [
166
+ "16px",
167
+ {
168
+ lineHeight: "24px",
169
+ fontWeight: "400"
170
+ }
171
+ ],
172
+ xl: [
173
+ "18px",
174
+ {
175
+ lineHeight: "27px",
176
+ fontWeight: "400"
177
+ }
178
+ ]
179
+ };
180
+
181
+ // ../tailwind-config/src/animation/slide.ts
182
+ var sliceAnimation = {
183
+ slideInFromTop: "slideInFromTop 0.5s ease-out",
184
+ slideInFromBottom: "slideInFromBottom 0.5s ease-out",
185
+ slideInFromLeft: "slideInFromLeft 0.5s ease-out",
186
+ slideInFromRight: "slideInFromRight 0.5s ease-out",
187
+ slideOutToTop: "slideOutToTop 0.5s ease-in",
188
+ slideOutToBottom: "slideOutToBottom 0.5s ease-in",
189
+ slideOutToLeft: "slideOutToLeft 0.5s ease-in",
190
+ slideOutToRight: "slideOutToRight 0.5s ease-in"
191
+ };
192
+ var sliceKeyframe = {
193
+ slideInFromTop: {
194
+ "0%": {
195
+ transform: "translateY(-10px)",
196
+ opacity: "0"
197
+ },
198
+ "100%": {
199
+ transform: "translateY(0)",
200
+ opacity: "1"
201
+ }
202
+ },
203
+ slideInFromBottom: {
204
+ "0%": {
205
+ transform: "translateY(10px)",
206
+ opacity: "0"
207
+ },
208
+ "100%": {
209
+ transform: "translateY(0)",
210
+ opacity: "1"
211
+ }
212
+ },
213
+ slideInFromLeft: {
214
+ "0%": {
215
+ transform: "translateX(-10px)",
216
+ opacity: "0"
217
+ },
218
+ "100%": {
219
+ transform: "translateX(0)",
220
+ opacity: "1"
221
+ }
222
+ },
223
+ slideInFromRight: {
224
+ "0%": {
225
+ transform: "translateX(10px)",
226
+ opacity: "0"
227
+ },
228
+ "100%": {
229
+ transform: "translateX(0)",
230
+ opacity: "1"
231
+ }
232
+ },
233
+ slideOutToTop: {
234
+ "0%": {
235
+ transform: "translateY(0)",
236
+ opacity: "1"
237
+ },
238
+ "100%": {
239
+ transform: "translateY(-10px)",
240
+ opacity: "0"
241
+ }
242
+ },
243
+ slideOutToBottom: {
244
+ "0%": {
245
+ transform: "translateY(0)",
246
+ opacity: "1"
247
+ },
248
+ "100%": {
249
+ transform: "translateY(10px)",
250
+ opacity: "0"
251
+ }
252
+ },
253
+ slideOutToLeft: {
254
+ "0%": {
255
+ transform: "translateX(0)",
256
+ opacity: "1"
257
+ },
258
+ "100%": {
259
+ transform: "translateX(-10px)",
260
+ opacity: "0"
261
+ }
262
+ },
263
+ slideOutToRight: {
264
+ "0%": {
265
+ transform: "translateX(0)",
266
+ opacity: "1"
267
+ },
268
+ "100%": {
269
+ transform: "translateX(10px)",
270
+ opacity: "0"
271
+ }
272
+ }
273
+ };
274
+
275
+ // ../tailwind-config/src/animation/index.ts
276
+ var animation = { ...sliceAnimation };
277
+ var keyframes = { ...sliceKeyframe };
278
+
279
+ // ../tailwind-config/src/shadow/index.ts
280
+ var boxShadow = {
281
+ "border-1": "inner 0 0 0 1px inset",
282
+ "border-2": "inner 0 0 0 2px inset",
283
+ "border-3": "inner 0 0 0 3px inset",
284
+ "border-4": "inner 0 0 0 4px inset",
285
+ "border-5": "inner 0 0 0 5px inset",
286
+ "border-6": "inner 0 0 0 6px inset",
287
+ "border-7": "inner 0 0 0 7px inset",
288
+ "border-8": "inner 0 0 0 8px inset",
289
+ "border-9": "inner 0 0 0 9px inset",
290
+ "border-10": "inner 0 0 0 10px inset",
291
+ inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
292
+ drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
293
+ };
294
+
295
+ // ../tailwind-config/src/border/radius.ts
296
+ var borderRadius = {
297
+ sm: "4px",
298
+ md: "6px",
299
+ lg: "8px",
300
+ xl: "10px",
301
+ none: "0",
302
+ full: "9999px"
303
+ };
304
+
305
+ // ../tailwind-config/src/space/gap.ts
306
+ var gap = {
307
+ sm: "4px",
308
+ md: "6px",
309
+ lg: "8px",
310
+ xl: "10px"
311
+ };
312
+
313
+ // src/utils/tailwind-variants.ts
314
+ function typedKeys(obj) {
315
+ return Object.keys(obj);
316
+ }
317
+ var COMMON_SIZE = ["sm", "md", "lg", "xl"];
38
318
  var tv = (0, import_tailwind_variants.createTV)({
39
- // twMerge: false,
40
319
  twMergeConfig: {
41
320
  classGroups: {
42
- fontSize: [{ text: [...COMMON_SIZE, ...COMMON_FONTSIZE] }],
43
- borderRadius: [{ rounded: [...COMMON_RADIUS, ...COMMON_SIZE] }],
44
- boxShadow: [{ shadow: [...COMMON_SHADOW] }],
321
+ fontSize: [{ text: [...typedKeys(fontSize)] }],
322
+ borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
323
+ boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
45
324
  padding: [{ p: [...COMMON_SIZE] }],
46
- gap: [{ gap: [...COMMON_SIZE] }]
325
+ gap: [{ gap: [...typedKeys(gap)] }]
47
326
  }
48
327
  }
49
328
  });
@@ -68,9 +347,6 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
68
347
  }
69
348
  };
70
349
 
71
- // src/components/tooltip/useTooltip.ts
72
- var import_react = require("react");
73
-
74
350
  // src/components/tooltip/tooltip-utils.ts
75
351
  var getTooltipPosition = (placement, targetRect, width, height, offset) => {
76
352
  let tooltipX = 0, tooltipY = 0;
@@ -126,8 +402,72 @@ var getTooltipPosition = (placement, targetRect, width, height, offset) => {
126
402
  }
127
403
  return { tooltipX, tooltipY };
128
404
  };
405
+ var OFFSET = -4;
406
+ var EDGE_GAP = 12;
407
+ var getTailClassName = (placement) => {
408
+ switch (placement) {
409
+ case "top":
410
+ return `bottom-[${OFFSET}px] left-1/2 -translate-x-1/2`;
411
+ case "bottom":
412
+ return `top-[${OFFSET}px] left-1/2 -translate-x-1/2`;
413
+ case "left":
414
+ return `right-[${OFFSET}px] top-1/2 -translate-y-1/2`;
415
+ case "right":
416
+ return `left-[${OFFSET}px] top-1/2 -translate-y-1/2`;
417
+ case "top-start":
418
+ return `bottom-[${OFFSET}px] left-[${EDGE_GAP}px]`;
419
+ case "top-end":
420
+ return `bottom-[${OFFSET}px] right-[${EDGE_GAP}px]`;
421
+ case "bottom-start":
422
+ return `top-[${OFFSET}px] left-[${EDGE_GAP}px]`;
423
+ case "bottom-end":
424
+ return `top-[${OFFSET}px] right-[${EDGE_GAP}px]`;
425
+ case "left-start":
426
+ return `right-[${OFFSET}px] top-[${EDGE_GAP}px]`;
427
+ case "left-end":
428
+ return `right-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
429
+ case "right-start":
430
+ return `left-[${OFFSET}px] top-[${EDGE_GAP}px]`;
431
+ case "right-end":
432
+ return `left-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
433
+ default:
434
+ return "";
435
+ }
436
+ };
437
+ var getTailStyles = (placement) => {
438
+ switch (placement) {
439
+ case "top":
440
+ return { bottom: OFFSET };
441
+ case "bottom":
442
+ return { top: OFFSET };
443
+ case "left":
444
+ return { right: OFFSET };
445
+ case "right":
446
+ return { left: OFFSET };
447
+ case "top-start":
448
+ return { bottom: OFFSET, left: EDGE_GAP };
449
+ case "top-end":
450
+ return { bottom: OFFSET, right: EDGE_GAP };
451
+ case "bottom-start":
452
+ return { top: OFFSET, left: EDGE_GAP };
453
+ case "bottom-end":
454
+ return { top: OFFSET, right: EDGE_GAP };
455
+ case "left-start":
456
+ return { right: OFFSET, top: EDGE_GAP };
457
+ case "left-end":
458
+ return { right: OFFSET, bottom: EDGE_GAP };
459
+ case "right-start":
460
+ return { left: OFFSET, top: EDGE_GAP };
461
+ case "right-end":
462
+ return { left: OFFSET, bottom: EDGE_GAP };
463
+ default:
464
+ console.warn(`Invalid placement: ${placement}. Returning empty style.`);
465
+ return {};
466
+ }
467
+ };
129
468
 
130
469
  // src/components/tooltip/useTooltip.ts
470
+ var import_react = require("react");
131
471
  var useTooltip = ({ placement, offset, targetRect }) => {
132
472
  const [tooltipPosition, setTooltipPosition] = (0, import_react.useState)({ x: 0, y: 0 });
133
473
  const tooltipRef = (0, import_react.useRef)(null);
@@ -163,27 +503,27 @@ var useTooltip = ({ placement, offset, targetRect }) => {
163
503
  // src/components/tooltip/tooltip.tsx
164
504
  var import_jsx_runtime = require("react/jsx-runtime");
165
505
  var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
166
- const [props, variantProps] = mapPropsVariants(originalProps, tooltip.variantKeys);
167
- const { placement = "bottom", offset = 5, delay = 100, classNames, ...tooltipProps } = props;
168
- const slots = (0, import_react2.useMemo)(() => tooltip({ ...variantProps }), [variantProps]);
506
+ const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
507
+ const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
508
+ const slots = (0, import_react2.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
169
509
  const [targetRect, setTargetRect] = (0, import_react2.useState)(null);
170
- const { tooltipPosition, tooltipRef } = useTooltip({ placement, offset, delay, targetRect });
510
+ const { tooltipPosition, tooltipRef } = useTooltip({
511
+ placement,
512
+ offset,
513
+ delay,
514
+ targetRect
515
+ });
171
516
  const childrenRef = (0, import_react2.useRef)(null);
172
- const delayTimeout = (0, import_react2.useRef)(null);
173
- const getBaseProps = (0, import_react2.useCallback)(
174
- () => ({
175
- className: slots.base({ class: classNames == null ? void 0 : classNames.base })
176
- }),
177
- [slots, classNames == null ? void 0 : classNames.base]
178
- );
179
- const getContentProps = (0, import_react2.useCallback)(
180
- () => ({
181
- className: slots.content({ class: classNames == null ? void 0 : classNames.content })
517
+ const delayTimeoutRef = (0, import_react2.useRef)(null);
518
+ const getProps = (0, import_react2.useCallback)(
519
+ (slotKey, classNameKey) => ({
520
+ className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
182
521
  }),
183
- [slots, classNames == null ? void 0 : classNames.content]
522
+ [slots, classNames]
184
523
  );
185
- const handleMouseEnter = (0, import_react2.useCallback)(() => {
186
- if (delayTimeout.current) clearTimeout(delayTimeout.current);
524
+ const getBaseProps = (0, import_react2.useCallback)(() => getProps("base", "base"), [getProps]);
525
+ const getContentProps = (0, import_react2.useCallback)(() => getProps("content", "content"), [getProps]);
526
+ const showTooltip = (0, import_react2.useCallback)(() => {
187
527
  if (childrenRef.current) {
188
528
  const rect = childrenRef.current.getBoundingClientRect();
189
529
  setTargetRect({
@@ -196,35 +536,53 @@ var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
196
536
  });
197
537
  }
198
538
  }, []);
199
- const handleMouseLeave = (0, import_react2.useCallback)(() => {
200
- delayTimeout.current = window.setTimeout(() => setTargetRect(null), delay);
201
- }, [delay]);
539
+ const hideTooltip = (0, import_react2.useCallback)(() => {
540
+ if (!persistent) {
541
+ delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
542
+ }
543
+ }, [persistent, delay]);
544
+ (0, import_react2.useEffect)(() => {
545
+ if (persistent) showTooltip();
546
+ }, [persistent, showTooltip]);
202
547
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
203
548
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
204
549
  "div",
205
550
  {
206
- ref: ref || childrenRef,
551
+ ref: (node) => {
552
+ if (ref) {
553
+ if (typeof ref === "function") ref(node);
554
+ else ref.current = node;
555
+ }
556
+ childrenRef.current = node;
557
+ },
207
558
  ...getBaseProps(),
208
- onPointerLeave: handleMouseLeave,
209
- onPointerEnter: handleMouseEnter,
559
+ onPointerEnter: !persistent ? showTooltip : void 0,
560
+ onPointerLeave: !persistent ? hideTooltip : void 0,
210
561
  children: props.children
211
562
  }
212
563
  ),
213
564
  targetRect && (0, import_react_dom.createPortal)(
214
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
565
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
215
566
  "div",
216
567
  {
217
568
  ref: tooltipRef,
218
569
  ...getContentProps(),
219
- onPointerEnter: () => {
220
- if (delayTimeout.current) clearTimeout(delayTimeout.current);
221
- },
222
- onPointerLeave: handleMouseLeave,
570
+ onPointerEnter: !persistent ? () => delayTimeoutRef.current && clearTimeout(delayTimeoutRef.current) : void 0,
571
+ onPointerLeave: !persistent ? hideTooltip : void 0,
223
572
  style: {
224
- visibility: tooltipPosition.x !== 0 ? "visible" : "hidden",
573
+ visibility: "visible",
225
574
  transform: `translate3d(${tooltipPosition.x}px, ${tooltipPosition.y}px, 0)`
226
575
  },
227
- children: props.content
576
+ children: [
577
+ props.content,
578
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
579
+ "div",
580
+ {
581
+ className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
582
+ style: getTailStyles(placement)
583
+ }
584
+ )
585
+ ]
228
586
  }
229
587
  ),
230
588
  document.body
@@ -233,7 +591,7 @@ var Tooltip = (0, import_react2.forwardRef)((originalProps, ref) => {
233
591
  });
234
592
  Tooltip.displayName = "Tooltip";
235
593
  var tooltip_default = Tooltip;
236
- var tooltip = tv({
594
+ var tooltipStyle = tv({
237
595
  slots: {
238
596
  base: ["z-0", "relative", "bg-transparent"],
239
597
  content: [
@@ -244,26 +602,26 @@ var tooltip = tv({
244
602
  "items-center",
245
603
  "justify-center",
246
604
  "font-[500]",
247
- "text-white",
248
- "bg-trans-strong"
605
+ "text-common-white",
606
+ "bg-common-black"
249
607
  ]
250
608
  },
251
609
  variants: {
252
610
  size: {
253
- sm: { content: "text-sm rounded-sm px-[6px] py-[4.5px]" },
254
- md: { content: "text-md rounded-md px-[8px] py-[6.5px]" },
255
- lg: { content: "text-lg rounded-lg px-[10px] py-[8px]" }
611
+ sm: { content: ["text-sm", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
612
+ md: { content: ["text-md", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
613
+ lg: { content: ["text-lg", "rounded-[5px]", "px-[10px]", "py-[6px]"] },
614
+ xl: { content: ["text-xl", "rounded-[5px]", "px-[10px]", "py-[6px]"] }
256
615
  },
257
- disableAnimation: {
258
- true: {
259
- base: "animate-none"
260
- }
616
+ tail: {
617
+ true: { content: [] },
618
+ false: {}
261
619
  }
262
620
  },
263
621
  defaultVariants: {
264
- color: "default",
265
622
  size: "md",
266
- disableAnimation: false
623
+ placement: "top",
624
+ tail: false
267
625
  }
268
626
  });
269
627
  // Annotate the CommonJS export names for ESM import in node:
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-HIE2YRGA.mjs";
3
3
  import {
4
4
  tooltip_default
5
- } from "../../chunk-U74WK5VI.mjs";
6
- import "../../chunk-KCBBBRSF.mjs";
7
- import "../../chunk-ODMRJXLJ.mjs";
5
+ } from "../../chunk-U2YKMXVG.mjs";
6
+ import "../../chunk-ZMOAFSYE.mjs";
7
+ import "../../chunk-WSIADHVC.mjs";
8
+ import "../../chunk-2ZT6V4QR.mjs";
8
9
  import "../../chunk-E3G5QXSH.mjs";
9
- import "../../chunk-J725QONZ.mjs";
10
- import "../../chunk-IZ6II3QA.mjs";
10
+ import "../../chunk-AC6TWLRT.mjs";
11
11
  export {
12
12
  tooltip_default as Tooltip
13
13
  };
@@ -1,2 +1,2 @@
1
- export { T as TooltipPlacement, g as getTooltipPosition } from '../../tooltip-utils-DR0UEfBN.mjs';
2
1
  import 'react';
2
+ export { T as TooltipPlacement, b as getTailClassName, c as getTailStyles, g as getTooltipPosition } from '../../tooltip-utils-DO3LQaVM.mjs';
@@ -1,2 +1,2 @@
1
- export { T as TooltipPlacement, g as getTooltipPosition } from '../../tooltip-utils-DR0UEfBN.js';
2
1
  import 'react';
2
+ export { T as TooltipPlacement, b as getTailClassName, c as getTailStyles, g as getTooltipPosition } from '../../tooltip-utils-DO3LQaVM.js';
@@ -21,6 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  // src/components/tooltip/tooltip-utils.ts
22
22
  var tooltip_utils_exports = {};
23
23
  __export(tooltip_utils_exports, {
24
+ getTailClassName: () => getTailClassName,
25
+ getTailStyles: () => getTailStyles,
24
26
  getTooltipPosition: () => getTooltipPosition
25
27
  });
26
28
  module.exports = __toCommonJS(tooltip_utils_exports);
@@ -78,7 +80,72 @@ var getTooltipPosition = (placement, targetRect, width, height, offset) => {
78
80
  }
79
81
  return { tooltipX, tooltipY };
80
82
  };
83
+ var OFFSET = -4;
84
+ var EDGE_GAP = 12;
85
+ var getTailClassName = (placement) => {
86
+ switch (placement) {
87
+ case "top":
88
+ return `bottom-[${OFFSET}px] left-1/2 -translate-x-1/2`;
89
+ case "bottom":
90
+ return `top-[${OFFSET}px] left-1/2 -translate-x-1/2`;
91
+ case "left":
92
+ return `right-[${OFFSET}px] top-1/2 -translate-y-1/2`;
93
+ case "right":
94
+ return `left-[${OFFSET}px] top-1/2 -translate-y-1/2`;
95
+ case "top-start":
96
+ return `bottom-[${OFFSET}px] left-[${EDGE_GAP}px]`;
97
+ case "top-end":
98
+ return `bottom-[${OFFSET}px] right-[${EDGE_GAP}px]`;
99
+ case "bottom-start":
100
+ return `top-[${OFFSET}px] left-[${EDGE_GAP}px]`;
101
+ case "bottom-end":
102
+ return `top-[${OFFSET}px] right-[${EDGE_GAP}px]`;
103
+ case "left-start":
104
+ return `right-[${OFFSET}px] top-[${EDGE_GAP}px]`;
105
+ case "left-end":
106
+ return `right-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
107
+ case "right-start":
108
+ return `left-[${OFFSET}px] top-[${EDGE_GAP}px]`;
109
+ case "right-end":
110
+ return `left-[${OFFSET}px] bottom-[${EDGE_GAP}px]`;
111
+ default:
112
+ return "";
113
+ }
114
+ };
115
+ var getTailStyles = (placement) => {
116
+ switch (placement) {
117
+ case "top":
118
+ return { bottom: OFFSET };
119
+ case "bottom":
120
+ return { top: OFFSET };
121
+ case "left":
122
+ return { right: OFFSET };
123
+ case "right":
124
+ return { left: OFFSET };
125
+ case "top-start":
126
+ return { bottom: OFFSET, left: EDGE_GAP };
127
+ case "top-end":
128
+ return { bottom: OFFSET, right: EDGE_GAP };
129
+ case "bottom-start":
130
+ return { top: OFFSET, left: EDGE_GAP };
131
+ case "bottom-end":
132
+ return { top: OFFSET, right: EDGE_GAP };
133
+ case "left-start":
134
+ return { right: OFFSET, top: EDGE_GAP };
135
+ case "left-end":
136
+ return { right: OFFSET, bottom: EDGE_GAP };
137
+ case "right-start":
138
+ return { left: OFFSET, top: EDGE_GAP };
139
+ case "right-end":
140
+ return { left: OFFSET, bottom: EDGE_GAP };
141
+ default:
142
+ console.warn(`Invalid placement: ${placement}. Returning empty style.`);
143
+ return {};
144
+ }
145
+ };
81
146
  // Annotate the CommonJS export names for ESM import in node:
82
147
  0 && (module.exports = {
148
+ getTailClassName,
149
+ getTailStyles,
83
150
  getTooltipPosition
84
151
  });
@@ -1,8 +1,12 @@
1
1
  "use client";
2
2
  import {
3
+ getTailClassName,
4
+ getTailStyles,
3
5
  getTooltipPosition
4
- } from "../../chunk-ODMRJXLJ.mjs";
5
- import "../../chunk-IZ6II3QA.mjs";
6
+ } from "../../chunk-WSIADHVC.mjs";
7
+ import "../../chunk-AC6TWLRT.mjs";
6
8
  export {
9
+ getTailClassName,
10
+ getTailStyles,
7
11
  getTooltipPosition
8
12
  };