@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,342 +0,0 @@
1
- "use client";
2
- import {
3
- table_body_default
4
- } from "./chunk-VWD26TIQ.mjs";
5
- import {
6
- table_head_default
7
- } from "./chunk-PO3ADNA5.mjs";
8
- import {
9
- clsx
10
- } from "./chunk-27Y6K5NK.mjs";
11
- import {
12
- mapPropsVariants
13
- } from "./chunk-E3G5QXSH.mjs";
14
-
15
- // src/components/table/table.tsx
16
- import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useState } from "react";
17
- import { tv } from "tailwind-variants";
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var Table = forwardRef((originalProps, ref) => {
20
- const [props, variantProps] = mapPropsVariants(originalProps, table.variantKeys);
21
- const { classNames, rows, columns, className, emptyContent, loadingContent, onRowAction, ...tableComponentsProps } = props;
22
- const [checkedRows, setCheckedRows] = useState(/* @__PURE__ */ new Set());
23
- useImperativeHandle(ref, () => ({
24
- checkedRows,
25
- setCheckedRows
26
- }));
27
- useEffect(() => {
28
- setCheckedRows(/* @__PURE__ */ new Set());
29
- }, [rows]);
30
- const slots = useMemo(() => table({ ...variantProps }), [...Object.values(variantProps)]);
31
- const getBaseProps = useCallback(
32
- (props2) => ({
33
- ...props2,
34
- className: slots.base({ class: clsx(classNames == null ? void 0 : classNames.base) })
35
- }),
36
- [classNames == null ? void 0 : classNames.base, slots]
37
- );
38
- const getTableProps = useCallback(
39
- (props2) => ({
40
- ...props2,
41
- className: slots.table({ class: clsx(classNames == null ? void 0 : classNames.table) })
42
- }),
43
- [classNames == null ? void 0 : classNames.table, slots]
44
- );
45
- const getLoadingWrapperProps = useCallback(
46
- (props2) => ({
47
- ...props2,
48
- className: slots.loadingWrapper({ class: clsx(classNames == null ? void 0 : classNames.loadingWrapper) })
49
- }),
50
- [classNames == null ? void 0 : classNames.loadingWrapper, slots]
51
- );
52
- const handleCheckAll = (isChecked) => {
53
- const newCheckedRows = isChecked ? new Set(rows.map((_, index) => index)) : /* @__PURE__ */ new Set();
54
- setCheckedRows(newCheckedRows);
55
- };
56
- const handleCheckRow = (index) => {
57
- const newCheckedRows = new Set(checkedRows);
58
- if (newCheckedRows.has(index)) {
59
- newCheckedRows.delete(index);
60
- } else {
61
- newCheckedRows.add(index);
62
- }
63
- setCheckedRows(newCheckedRows);
64
- };
65
- return /* @__PURE__ */ jsxs("div", { ref, "data-table": "base", ...getBaseProps(), children: [
66
- /* @__PURE__ */ jsxs("table", { ...getTableProps(tableComponentsProps), children: [
67
- /* @__PURE__ */ jsx(
68
- table_head_default,
69
- {
70
- classNames,
71
- slots,
72
- columns,
73
- size: originalProps.size,
74
- color: originalProps.color === "neutral" ? "primary" : originalProps.color,
75
- isChecked: originalProps.isChecked,
76
- isExpanded: originalProps.isExpanded,
77
- onCheckAll: handleCheckAll,
78
- isCheckedAll: checkedRows.size === rows.length
79
- }
80
- ),
81
- /* @__PURE__ */ jsx(
82
- table_body_default,
83
- {
84
- rows,
85
- columns,
86
- slots,
87
- size: originalProps.size,
88
- color: originalProps.color === "neutral" ? "primary" : originalProps.color,
89
- isSelected: originalProps.isSelected,
90
- isChecked: originalProps.isChecked,
91
- isCheckedRow: originalProps.isCheckedRow,
92
- isExpanded: originalProps.isExpanded,
93
- classNames,
94
- emptyContent,
95
- checkedRows,
96
- onCheckedRow: handleCheckRow,
97
- onRowAction
98
- }
99
- )
100
- ] }),
101
- rows.length > 0 && /* @__PURE__ */ jsx("div", { ...getLoadingWrapperProps(), children: loadingContent || "Loading..." })
102
- ] });
103
- });
104
- Table.displayName = "Table";
105
- var table_default = Table;
106
- var table = tv({
107
- slots: {
108
- base: "flex flex-col relative gap-4 select-none",
109
- table: "w-full h-auto",
110
- thead: "[&>tr]:first:rounded-lg",
111
- tbody: "",
112
- tr: ["group", "outline-none", "w-full"],
113
- th: [
114
- "text-foreground",
115
- "!text-center",
116
- "align-middle",
117
- "whitespace-nowrap",
118
- "font-normal",
119
- "outline-none",
120
- "pointer-events-none",
121
- "data-[sortable=true]:transition-colors",
122
- "data-[sortable=true]:cursor-pointer"
123
- ],
124
- td: [
125
- "relative",
126
- "text-foreground",
127
- "align-middle",
128
- "whitespace-normal",
129
- "outline-none",
130
- "text-center",
131
- "[&>*]:z-1",
132
- "[&>*]:relative",
133
- "transition duration-200",
134
- "group-data-[disabled=true]:text-default-300"
135
- ],
136
- tfoot: "",
137
- expandedTr: "border-b",
138
- sortIcon: [
139
- "ml-2",
140
- "mb-px",
141
- "opacity-0",
142
- "text-inherit",
143
- "inline-block",
144
- "transition-transform-opacity",
145
- "data-[visible=true]:opacity-100",
146
- "group-data-[hover=true]:opacity-100",
147
- "data-[direction=ascending]:rotate-180"
148
- ],
149
- emptyWrapper: "text-neutral-light align-middle text-center h-40",
150
- loadingWrapper: [
151
- "absolute",
152
- "inset-0",
153
- "flex",
154
- "items-center",
155
- "justify-center",
156
- "bg-black/40",
157
- "text-white",
158
- "transition-opacity",
159
- "duration-200",
160
- "ease-in-out",
161
- "cursor-default"
162
- ]
163
- },
164
- variants: {
165
- variant: {
166
- solid: {
167
- tbody: "[&>tr]:border-b"
168
- },
169
- stripe: {
170
- thead: "border-t border-b"
171
- },
172
- line: {
173
- tr: "border-b",
174
- thead: "border-t-2"
175
- }
176
- },
177
- size: {
178
- sm: {
179
- tr: "h-[30px] text-sm"
180
- },
181
- md: {
182
- tr: "h-[40px] text-md"
183
- },
184
- lg: {
185
- tr: "h-[50px] text-lg"
186
- }
187
- },
188
- color: {
189
- primary: {
190
- thead: "border-primary-dark",
191
- tr: "border-primary-light",
192
- td: "group-hover:bg-primary-soft",
193
- expandedTr: "border-primary-light"
194
- },
195
- secondary: {
196
- thead: "border-secondary-dark",
197
- tr: "border-secondary-light",
198
- td: "group-hover:bg-secondary-soft",
199
- expandedTr: "border-secondary-light"
200
- },
201
- neutral: {
202
- thead: "border-neutral-dark",
203
- tr: "border-trans-light",
204
- td: "group-hover:bg-trans-soft",
205
- expandedTr: "border-trans-light"
206
- }
207
- },
208
- isLoading: {
209
- true: {
210
- loadingWrapper: "visible opacity-100"
211
- },
212
- false: {
213
- loadingWrapper: "invisible opacity-0"
214
- }
215
- },
216
- isSelected: {
217
- true: {}
218
- },
219
- isMultiSelect: {
220
- true: {}
221
- },
222
- isChecked: {
223
- true: {}
224
- },
225
- isCheckedRow: {
226
- true: {
227
- tr: "cursor-pointer"
228
- }
229
- },
230
- hideHeader: {
231
- true: {
232
- thead: "hidden"
233
- }
234
- },
235
- isCompact: {
236
- true: {
237
- td: "py-1"
238
- },
239
- false: {}
240
- },
241
- isHeaderSticky: {
242
- true: {
243
- thead: "sticky top-0 z-20 [&>tr]:first:shadow-small"
244
- }
245
- },
246
- isExpanded: {
247
- true: {
248
- tr: "cursor-pointer"
249
- }
250
- }
251
- },
252
- defaultVariants: {
253
- layout: "auto",
254
- color: "primary",
255
- variant: "solid",
256
- size: "md",
257
- isChecked: false,
258
- isExpanded: false,
259
- isCompact: false,
260
- hideHeader: false,
261
- isStriped: false,
262
- fullWidth: false
263
- },
264
- compoundVariants: [
265
- {
266
- variant: "solid",
267
- color: "primary",
268
- class: {
269
- thead: "[&>tr]:bg-primary-light",
270
- tr: ["data-[expanded=true]:bg-primary-soft", "data-[selected=true]:bg-primary-soft"]
271
- }
272
- },
273
- {
274
- variant: "solid",
275
- color: "secondary",
276
- class: {
277
- thead: "[&>tr]:bg-secondary-light",
278
- tr: ["data-[expanded=true]:bg-secondary-soft", "data-[selected=true]:bg-secondary-soft"]
279
- }
280
- },
281
- {
282
- variant: "solid",
283
- color: "neutral",
284
- class: {
285
- thead: "[&>tr]:bg-trans-light",
286
- tr: ["data-[expanded=true]:bg-neutral-soft", "data-[selected=true]:bg-neutral-soft"]
287
- }
288
- },
289
- {
290
- variant: "line",
291
- color: "primary",
292
- class: {
293
- thead: "border-primary-light",
294
- tr: ["data-[expanded=true]:bg-primary-soft", "data-[selected=true]:bg-primary-soft"]
295
- }
296
- },
297
- {
298
- variant: "line",
299
- color: "secondary",
300
- class: {
301
- thead: "border-secondary-light",
302
- tr: ["data-[expanded=true]:bg-secondary-soft", "data-[selected=true]:bg-secondary-soft"]
303
- }
304
- },
305
- {
306
- variant: "line",
307
- color: "neutral",
308
- class: {
309
- thead: "border-trans-light",
310
- tr: ["data-[expanded=true]:bg-neutral-soft", "data-[selected=true]:bg-neutral-soft"]
311
- }
312
- },
313
- {
314
- variant: "stripe",
315
- color: "primary",
316
- class: {
317
- tr: "data-[odd=true]:bg-primary-soft",
318
- td: "group-hover:bg-primary-light"
319
- }
320
- },
321
- {
322
- variant: "stripe",
323
- color: "secondary",
324
- class: {
325
- tr: "data-[odd=true]:bg-secondary-soft",
326
- td: "group-hover:bg-secondary-light"
327
- }
328
- },
329
- {
330
- variant: "stripe",
331
- color: "neutral",
332
- class: {
333
- tr: "data-[odd=true]:bg-trans-soft",
334
- td: "group-hover:bg-neutral-light"
335
- }
336
- }
337
- ]
338
- });
339
-
340
- export {
341
- table_default
342
- };
@@ -1,173 +0,0 @@
1
- "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
- import {
6
- tv
7
- } from "./chunk-J725QONZ.mjs";
8
-
9
- // src/components/radio/radio.tsx
10
- import { forwardRef, useCallback, useMemo } from "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- var Radio = forwardRef((originalProps, ref) => {
13
- const [props, variantProps] = mapPropsVariants(originalProps, radio.variantKeys);
14
- const { children, classNames, ...inputProps } = props;
15
- const slots = useMemo(() => radio({ ...variantProps }), [...Object.values(variantProps)]);
16
- const getBaseProps = useCallback(
17
- () => ({
18
- className: slots.base({ class: classNames == null ? void 0 : classNames.base })
19
- }),
20
- [slots, classNames]
21
- );
22
- const getInputProps = useCallback(() => {
23
- return {
24
- ...inputProps,
25
- type: "radio",
26
- ref,
27
- size: 0
28
- };
29
- }, [slots, classNames, inputProps]);
30
- const getIconProps = useCallback(() => {
31
- return {
32
- className: slots.icon({ class: classNames == null ? void 0 : classNames.icon })
33
- };
34
- }, [slots, classNames]);
35
- const getLabelProps = useCallback(() => {
36
- return {
37
- className: slots.label({ class: classNames == null ? void 0 : classNames.label })
38
- };
39
- }, [slots, classNames]);
40
- const getLabelWrapperProps = useCallback(() => {
41
- return {
42
- className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper })
43
- };
44
- }, [slots, classNames]);
45
- return /* @__PURE__ */ jsxs("label", { ...getBaseProps(), children: [
46
- /* @__PURE__ */ jsx("div", { className: "hidden", children: /* @__PURE__ */ jsx("input", { ...getInputProps() }) }),
47
- /* @__PURE__ */ jsx("span", { ...getIconProps() }),
48
- /* @__PURE__ */ jsx("div", { ...getLabelWrapperProps(), children: children && /* @__PURE__ */ jsx("span", { ...getLabelProps(), children }) })
49
- ] });
50
- });
51
- Radio.displayName = "Radio";
52
- var radio_default = Radio;
53
- var radio = tv({
54
- slots: {
55
- base: [
56
- "group/radio",
57
- "relative",
58
- "max-w-fit",
59
- "inline-flex",
60
- "items-center",
61
- "justify-start",
62
- "cursor-pointer",
63
- "tap-highlight-transparent"
64
- ],
65
- icon: [
66
- "relative",
67
- "inline-flex",
68
- "items-center",
69
- "justify-center",
70
- "flex-shrink-0",
71
- "overflow-hidden",
72
- // 테두리
73
- "before:content-['']",
74
- "before:absolute",
75
- "before:inset-0",
76
- "before:border-solid",
77
- "before:border-[1px]",
78
- "before:box-border",
79
- "before:rounded-full",
80
- "before:border-neutral-main",
81
- // control
82
- "after:content-['']",
83
- "after:absolute",
84
- "after:inset-0",
85
- "after:rounded-full",
86
- "after:border-box",
87
- "after:scale-50",
88
- "after:opacity-0",
89
- "after:top-1/2",
90
- "after:left-1/2",
91
- "after:-translate-x-1/2",
92
- "after:-translate-y-1/2",
93
- "group-has-[:checked]/radio:after:opacity-100",
94
- "group-has-[:checked]/radio:after:scale-100",
95
- // hover
96
- "group-hover/radio:before:bg-neutral-soft",
97
- "before:transition duration-200",
98
- // focus ring
99
- "outline-none",
100
- "group-focus/radio:z-10",
101
- "group-focus/radio:ring-2",
102
- "group-focus/radio:ring-focus",
103
- "group-focus/radio:ring-offset-2",
104
- "group-focus/radio:ring-offset-background"
105
- ],
106
- labelWrapper: "flex flex-col",
107
- label: "text-foreground select-none"
108
- },
109
- variants: {
110
- color: {
111
- primary: {
112
- icon: ["group-has-[:checked]/radio:before:border-primary-main", "after:bg-primary-main"]
113
- },
114
- secondary: {
115
- icon: ["group-has-[:checked]/radio:before:border-secondary-main", "after:bg-secondary-main"]
116
- }
117
- },
118
- size: {
119
- sm: {
120
- icon: ["w-[15px]", "h-[15px]", "mr-[6px]", "after:w-[9px]", "after:h-[9px]"],
121
- label: "text-sm"
122
- },
123
- md: {
124
- icon: ["w-[17px]", "h-[17px]", "mr-[8px]", "after:w-[11px]", "after:h-[11px]"],
125
- label: "text-md"
126
- },
127
- lg: {
128
- icon: ["w-[20px]", "h-[20px]", "mr-[10px]", "after:w-[14px]", "after:h-[14px]"],
129
- label: "text-lg"
130
- }
131
- },
132
- isInvalid: {
133
- true: {
134
- icon: [
135
- "after:bg-danger-main",
136
- "before:border-danger-main",
137
- "group-has-[:checked]/radio:before:border-danger-main"
138
- ],
139
- label: "text-danger-main"
140
- }
141
- },
142
- isDisabled: {
143
- true: {
144
- base: ["opacity-disabled", "pointer-events-none"],
145
- icon: [
146
- "before:border-neutral-light",
147
- "before:bg-neutral-soft",
148
- "after:bg-neutral-light",
149
- "group-has-[:checked]/radio:before:border-neutral-light"
150
- ],
151
- label: "text-neutral-light"
152
- }
153
- },
154
- disableAnimation: {
155
- true: {},
156
- false: {
157
- icon: ["group-active/radio:scale-95", "transition-transform-colors", "motion-reduce:transition-none"],
158
- label: ["transition-colors", "motion-reduce:transition-none"]
159
- }
160
- }
161
- },
162
- defaultVariants: {
163
- color: "primary",
164
- size: "md",
165
- isDisabled: false,
166
- isInvalid: false,
167
- disableAnimation: false
168
- }
169
- });
170
-
171
- export {
172
- radio_default
173
- };
@@ -1,151 +0,0 @@
1
- "use client";
2
- import {
3
- mapPropsVariants
4
- } from "./chunk-E3G5QXSH.mjs";
5
-
6
- // src/components/switch/switch.tsx
7
- import { forwardRef, useCallback, useMemo } from "react";
8
- import { tv } from "tailwind-variants";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- var Switch = forwardRef((originalProps, ref) => {
11
- const [props, variantProps] = mapPropsVariants(originalProps, toggle.variantKeys);
12
- const { children, classNames, ...switchProps } = props;
13
- const slots = useMemo(
14
- () => toggle({
15
- ...variantProps
16
- }),
17
- [...Object.values(variantProps)]
18
- );
19
- const getBaseProps = () => ({
20
- className: slots.base({ class: classNames == null ? void 0 : classNames.base })
21
- });
22
- const getOuterWrapperProps = useCallback(
23
- () => ({
24
- className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper })
25
- }),
26
- [slots, classNames == null ? void 0 : classNames.outerWrapper]
27
- );
28
- const getWrapperProps = useCallback(
29
- () => ({
30
- className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper })
31
- }),
32
- [slots, classNames]
33
- );
34
- const getInputProps = () => ({
35
- ...switchProps,
36
- type: "checkbox",
37
- disabled: originalProps.isDisabled,
38
- ref,
39
- id: switchProps.id,
40
- size: 0
41
- });
42
- const getThumbProps = useCallback(
43
- (props2 = {}) => ({
44
- ...props2,
45
- className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb })
46
- }),
47
- [slots, classNames == null ? void 0 : classNames.thumb]
48
- );
49
- const getLabelProps = useCallback(
50
- (props2 = {}) => ({
51
- ...props2,
52
- className: slots.label({ class: classNames == null ? void 0 : classNames.label })
53
- }),
54
- [slots, classNames == null ? void 0 : classNames.label]
55
- );
56
- return /* @__PURE__ */ jsxs("label", { ...getBaseProps(), children: [
57
- /* @__PURE__ */ jsx("div", { className: "hidden", children: /* @__PURE__ */ jsx("input", { ...getInputProps() }) }),
58
- /* @__PURE__ */ jsx("span", { ...getOuterWrapperProps(), children: /* @__PURE__ */ jsx("span", { ...getWrapperProps(), children: /* @__PURE__ */ jsx("span", { ...getThumbProps() }) }) }),
59
- children && /* @__PURE__ */ jsx("span", { ...getLabelProps(), children })
60
- ] });
61
- });
62
- Switch.displayName = "Switch";
63
- var switch_default = Switch;
64
- var toggle = tv({
65
- slots: {
66
- base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
67
- outerWrapper: [
68
- "relative",
69
- "inline-flex",
70
- "items-center",
71
- "justify-start",
72
- "flex-shrink-0",
73
- "bg-neutral-soft",
74
- "overflow-hidden",
75
- "rounded-full",
76
- "px-[2px]"
77
- ],
78
- wrapper: [
79
- "relative",
80
- "inline-flex",
81
- "items-center",
82
- "justify-start",
83
- "flex-shrink-0",
84
- "overflow-hidden",
85
- "bg-neutral-light",
86
- "rounded-full",
87
- "group-has-[:checked]/switch:bg-primary-main"
88
- ],
89
- thumb: [
90
- "z-10",
91
- "flex",
92
- "items-center",
93
- "justify-center",
94
- "bg-white",
95
- "shadow-small",
96
- "rounded-full",
97
- "origin-right"
98
- ],
99
- label: ["relative", "text-foreground", "select-none"]
100
- },
101
- variants: {
102
- size: {
103
- sm: {
104
- outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
105
- wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
106
- thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
107
- label: "text-sm"
108
- },
109
- md: {
110
- outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
111
- wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
112
- thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
113
- label: "text-md"
114
- },
115
- lg: {
116
- outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
117
- wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
118
- thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
119
- label: "text-lg"
120
- }
121
- },
122
- isDisabled: {
123
- true: {
124
- base: "pointer-events-none",
125
- wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
126
- thumb: "bg-trans-soft"
127
- }
128
- },
129
- disableAnimation: {
130
- true: {
131
- wrapper: "transition-none",
132
- thumb: "transition-none"
133
- },
134
- false: {
135
- wrapper: "transition-background",
136
- thumb: "transition-all"
137
- }
138
- }
139
- },
140
- defaultVariants: {
141
- size: "md",
142
- isDisabled: false,
143
- disableAnimation: false
144
- },
145
- compoundVariants: []
146
- });
147
-
148
- export {
149
- switch_default,
150
- toggle
151
- };