@kamod-ch/ui 0.2.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 (415) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +183 -0
  3. package/dist/Accordion-D1PiNspd.d.ts +39 -0
  4. package/dist/AlertDialog-ALB541qy.d.ts +64 -0
  5. package/dist/Button-vQnkiVTI.d.ts +84 -0
  6. package/dist/CalendarDateTimePanel-B3J8OlSc.d.ts +79 -0
  7. package/dist/Carousel-BUB4DVuh.d.ts +48 -0
  8. package/dist/Chart-Ax22S5_N.d.ts +10 -0
  9. package/dist/Checkbox-DBbLYq6Q.d.ts +12 -0
  10. package/dist/Collapsible-CW1hQwqV.d.ts +34 -0
  11. package/dist/ComboboxValue-BGfXgtZt.d.ts +135 -0
  12. package/dist/CommandSeparator-wZRCsqsT.d.ts +47 -0
  13. package/dist/DataTable-zNTTdYVU.d.ts +13 -0
  14. package/dist/DatePicker-AFAYh5Ca.d.ts +20 -0
  15. package/dist/Dialog-BOIteLfe.d.ts +28 -0
  16. package/dist/DialogContent-CK1t4m4e.d.ts +24 -0
  17. package/dist/DialogHeader-CYT7iUDq.d.ts +13 -0
  18. package/dist/DialogTitle-CerJD0oA.d.ts +13 -0
  19. package/dist/Direction-25ZOt0gW.d.ts +24 -0
  20. package/dist/Drawer-B3pZMn5j.d.ts +41 -0
  21. package/dist/Dropdown-CVbWVKok.d.ts +143 -0
  22. package/dist/FieldTitle-aSgThW-B.d.ts +100 -0
  23. package/dist/HoverCard-aVEEtkyO.d.ts +52 -0
  24. package/dist/Input-Cem05el9.d.ts +27 -0
  25. package/dist/Menubar-DwYDW4w2.d.ts +88 -0
  26. package/dist/PopoverTrigger-CH_Kx2mn.d.ts +43 -0
  27. package/dist/Progress-BGij8Hob.d.ts +13 -0
  28. package/dist/RadioGroup-BaElzLwa.d.ts +40 -0
  29. package/dist/ScrollArea-B-vILe3g.d.ts +16 -0
  30. package/dist/Select-B_mNVh70.d.ts +51 -0
  31. package/dist/Separator-DCQYrnpB.d.ts +9 -0
  32. package/dist/Sheet-s0xRF22F.d.ts +29 -0
  33. package/dist/SidebarProvider-IAihmyD7.d.ts +46 -0
  34. package/dist/Slider-BQLMBpYs.d.ts +16 -0
  35. package/dist/Switch-CTTkNdqF.d.ts +31 -0
  36. package/dist/Tabs-CR-thcs6.d.ts +47 -0
  37. package/dist/Textarea-DbKkduOG.d.ts +27 -0
  38. package/dist/ThemeToggle-DfiEM1dZ.d.ts +9 -0
  39. package/dist/Toggle-CseZl7XN.d.ts +49 -0
  40. package/dist/ToggleGroup-UeYHzQe7.d.ts +137 -0
  41. package/dist/Tooltip-Ba3GxE7u.d.ts +40 -0
  42. package/dist/Typography-ccTtE182.d.ts +64 -0
  43. package/dist/chunk-26CRIZXP.js +244 -0
  44. package/dist/chunk-26CRIZXP.js.map +1 -0
  45. package/dist/chunk-2BQ54337.js +282 -0
  46. package/dist/chunk-2BQ54337.js.map +1 -0
  47. package/dist/chunk-2HZCH73K.js +109 -0
  48. package/dist/chunk-2HZCH73K.js.map +1 -0
  49. package/dist/chunk-2KY7P27I.js +64 -0
  50. package/dist/chunk-2KY7P27I.js.map +1 -0
  51. package/dist/chunk-3DNIMQX6.js +78 -0
  52. package/dist/chunk-3DNIMQX6.js.map +1 -0
  53. package/dist/chunk-3KB54OYF.js +81 -0
  54. package/dist/chunk-3KB54OYF.js.map +1 -0
  55. package/dist/chunk-4BJJOHZT.js +477 -0
  56. package/dist/chunk-4BJJOHZT.js.map +1 -0
  57. package/dist/chunk-4IBTERDG.js +9 -0
  58. package/dist/chunk-4IBTERDG.js.map +1 -0
  59. package/dist/chunk-4V3WHQJE.js +510 -0
  60. package/dist/chunk-4V3WHQJE.js.map +1 -0
  61. package/dist/chunk-5FBD2NTR.js +103 -0
  62. package/dist/chunk-5FBD2NTR.js.map +1 -0
  63. package/dist/chunk-5KS2VSX2.js +94 -0
  64. package/dist/chunk-5KS2VSX2.js.map +1 -0
  65. package/dist/chunk-5Q4RBIMZ.js +25 -0
  66. package/dist/chunk-5Q4RBIMZ.js.map +1 -0
  67. package/dist/chunk-67J4KBOW.js +124 -0
  68. package/dist/chunk-67J4KBOW.js.map +1 -0
  69. package/dist/chunk-6BK3PIRX.js +151 -0
  70. package/dist/chunk-6BK3PIRX.js.map +1 -0
  71. package/dist/chunk-6FYSVMH7.js +21 -0
  72. package/dist/chunk-6FYSVMH7.js.map +1 -0
  73. package/dist/chunk-6RASPU5N.js +31 -0
  74. package/dist/chunk-6RASPU5N.js.map +1 -0
  75. package/dist/chunk-7AJT2E2Y.js +624 -0
  76. package/dist/chunk-7AJT2E2Y.js.map +1 -0
  77. package/dist/chunk-7IOAIEIA.js +102 -0
  78. package/dist/chunk-7IOAIEIA.js.map +1 -0
  79. package/dist/chunk-7MITRFPE.js +192 -0
  80. package/dist/chunk-7MITRFPE.js.map +1 -0
  81. package/dist/chunk-BDK7CDEI.js +22 -0
  82. package/dist/chunk-BDK7CDEI.js.map +1 -0
  83. package/dist/chunk-BQP4UA44.js +18 -0
  84. package/dist/chunk-BQP4UA44.js.map +1 -0
  85. package/dist/chunk-BYG2ULS3.js +196 -0
  86. package/dist/chunk-BYG2ULS3.js.map +1 -0
  87. package/dist/chunk-C7WEQOUA.js +26 -0
  88. package/dist/chunk-C7WEQOUA.js.map +1 -0
  89. package/dist/chunk-CLEC2RMU.js +8 -0
  90. package/dist/chunk-CLEC2RMU.js.map +1 -0
  91. package/dist/chunk-CMBERB5B.js +9 -0
  92. package/dist/chunk-CMBERB5B.js.map +1 -0
  93. package/dist/chunk-COPT6I2D.js +122 -0
  94. package/dist/chunk-COPT6I2D.js.map +1 -0
  95. package/dist/chunk-CP55TVOV.js +271 -0
  96. package/dist/chunk-CP55TVOV.js.map +1 -0
  97. package/dist/chunk-D3DQ4ICC.js +25 -0
  98. package/dist/chunk-D3DQ4ICC.js.map +1 -0
  99. package/dist/chunk-ERBGZZ2U.js +26 -0
  100. package/dist/chunk-ERBGZZ2U.js.map +1 -0
  101. package/dist/chunk-FIOKWIJP.js +361 -0
  102. package/dist/chunk-FIOKWIJP.js.map +1 -0
  103. package/dist/chunk-G6TV6TF7.js +95 -0
  104. package/dist/chunk-G6TV6TF7.js.map +1 -0
  105. package/dist/chunk-GGTDJEE2.js +15 -0
  106. package/dist/chunk-GGTDJEE2.js.map +1 -0
  107. package/dist/chunk-GIU6BZTW.js +173 -0
  108. package/dist/chunk-GIU6BZTW.js.map +1 -0
  109. package/dist/chunk-HAAXVB3R.js +34 -0
  110. package/dist/chunk-HAAXVB3R.js.map +1 -0
  111. package/dist/chunk-HTSAUMF5.js +398 -0
  112. package/dist/chunk-HTSAUMF5.js.map +1 -0
  113. package/dist/chunk-IJ4ZRIR4.js +182 -0
  114. package/dist/chunk-IJ4ZRIR4.js.map +1 -0
  115. package/dist/chunk-J4DMQV64.js +340 -0
  116. package/dist/chunk-J4DMQV64.js.map +1 -0
  117. package/dist/chunk-JKXSX67K.js +95 -0
  118. package/dist/chunk-JKXSX67K.js.map +1 -0
  119. package/dist/chunk-JNF7FDJO.js +633 -0
  120. package/dist/chunk-JNF7FDJO.js.map +1 -0
  121. package/dist/chunk-JURNPBSW.js +70 -0
  122. package/dist/chunk-JURNPBSW.js.map +1 -0
  123. package/dist/chunk-LCMPFPBN.js +141 -0
  124. package/dist/chunk-LCMPFPBN.js.map +1 -0
  125. package/dist/chunk-LCWXIQKA.js +36 -0
  126. package/dist/chunk-LCWXIQKA.js.map +1 -0
  127. package/dist/chunk-LFJF3M6M.js +171 -0
  128. package/dist/chunk-LFJF3M6M.js.map +1 -0
  129. package/dist/chunk-MD6HHORY.js +524 -0
  130. package/dist/chunk-MD6HHORY.js.map +1 -0
  131. package/dist/chunk-MJG6UKD4.js +83 -0
  132. package/dist/chunk-MJG6UKD4.js.map +1 -0
  133. package/dist/chunk-MKG3UAP6.js +347 -0
  134. package/dist/chunk-MKG3UAP6.js.map +1 -0
  135. package/dist/chunk-MS2ZNYCJ.js +9 -0
  136. package/dist/chunk-MS2ZNYCJ.js.map +1 -0
  137. package/dist/chunk-NGKQBNZ5.js +29 -0
  138. package/dist/chunk-NGKQBNZ5.js.map +1 -0
  139. package/dist/chunk-NKKMM6CK.js +56 -0
  140. package/dist/chunk-NKKMM6CK.js.map +1 -0
  141. package/dist/chunk-OCLVMKVC.js +110 -0
  142. package/dist/chunk-OCLVMKVC.js.map +1 -0
  143. package/dist/chunk-PFV7YIEP.js +104 -0
  144. package/dist/chunk-PFV7YIEP.js.map +1 -0
  145. package/dist/chunk-PGOCR4LG.js +216 -0
  146. package/dist/chunk-PGOCR4LG.js.map +1 -0
  147. package/dist/chunk-PPYJQNE5.js +159 -0
  148. package/dist/chunk-PPYJQNE5.js.map +1 -0
  149. package/dist/chunk-PU5J5EPY.js +733 -0
  150. package/dist/chunk-PU5J5EPY.js.map +1 -0
  151. package/dist/chunk-PZS2D2QM.js +32 -0
  152. package/dist/chunk-PZS2D2QM.js.map +1 -0
  153. package/dist/chunk-Q5IUIA6B.js +9 -0
  154. package/dist/chunk-Q5IUIA6B.js.map +1 -0
  155. package/dist/chunk-QFDTG2ZJ.js +176 -0
  156. package/dist/chunk-QFDTG2ZJ.js.map +1 -0
  157. package/dist/chunk-QZX3RFIC.js +165 -0
  158. package/dist/chunk-QZX3RFIC.js.map +1 -0
  159. package/dist/chunk-R565SY7K.js +69 -0
  160. package/dist/chunk-R565SY7K.js.map +1 -0
  161. package/dist/chunk-RHNI5UQO.js +455 -0
  162. package/dist/chunk-RHNI5UQO.js.map +1 -0
  163. package/dist/chunk-ROKLAZHC.js +550 -0
  164. package/dist/chunk-ROKLAZHC.js.map +1 -0
  165. package/dist/chunk-RTIFG4XT.js +9 -0
  166. package/dist/chunk-RTIFG4XT.js.map +1 -0
  167. package/dist/chunk-TFLSEEM4.js +88 -0
  168. package/dist/chunk-TFLSEEM4.js.map +1 -0
  169. package/dist/chunk-U2UNWXBC.js +242 -0
  170. package/dist/chunk-U2UNWXBC.js.map +1 -0
  171. package/dist/chunk-UEGIKBX6.js +385 -0
  172. package/dist/chunk-UEGIKBX6.js.map +1 -0
  173. package/dist/chunk-UEXTD7ZB.js +108 -0
  174. package/dist/chunk-UEXTD7ZB.js.map +1 -0
  175. package/dist/chunk-UNWEH4Z6.js +83 -0
  176. package/dist/chunk-UNWEH4Z6.js.map +1 -0
  177. package/dist/chunk-UXWUFNXY.js +8 -0
  178. package/dist/chunk-UXWUFNXY.js.map +1 -0
  179. package/dist/chunk-V2MG5Y5F.js +77 -0
  180. package/dist/chunk-V2MG5Y5F.js.map +1 -0
  181. package/dist/chunk-V63YIVKJ.js +326 -0
  182. package/dist/chunk-V63YIVKJ.js.map +1 -0
  183. package/dist/chunk-WAPRVVDQ.js +9 -0
  184. package/dist/chunk-WAPRVVDQ.js.map +1 -0
  185. package/dist/chunk-X4HPHMYW.js +17 -0
  186. package/dist/chunk-X4HPHMYW.js.map +1 -0
  187. package/dist/chunk-XGFJJ2YB.js +36 -0
  188. package/dist/chunk-XGFJJ2YB.js.map +1 -0
  189. package/dist/chunk-YJGECAOZ.js +18 -0
  190. package/dist/chunk-YJGECAOZ.js.map +1 -0
  191. package/dist/chunk-YTHUHPE5.js +51 -0
  192. package/dist/chunk-YTHUHPE5.js.map +1 -0
  193. package/dist/chunk-YTJRKLUR.js +76 -0
  194. package/dist/chunk-YTJRKLUR.js.map +1 -0
  195. package/dist/chunk-YVALXJRN.js +49 -0
  196. package/dist/chunk-YVALXJRN.js.map +1 -0
  197. package/dist/chunk-YZLPO4B2.js +33 -0
  198. package/dist/chunk-YZLPO4B2.js.map +1 -0
  199. package/dist/chunk-ZHAGKFSO.js +16 -0
  200. package/dist/chunk-ZHAGKFSO.js.map +1 -0
  201. package/dist/chunk-ZM67EKZC.js +135 -0
  202. package/dist/chunk-ZM67EKZC.js.map +1 -0
  203. package/dist/chunk-ZVAW22GX.js +50 -0
  204. package/dist/chunk-ZVAW22GX.js.map +1 -0
  205. package/dist/components/accordion/index.d.ts +12 -0
  206. package/dist/components/accordion/index.js +4 -0
  207. package/dist/components/accordion/index.js.map +1 -0
  208. package/dist/components/alert/index.d.ts +64 -0
  209. package/dist/components/alert/index.js +4 -0
  210. package/dist/components/alert/index.js.map +1 -0
  211. package/dist/components/alert-dialog/index.d.ts +22 -0
  212. package/dist/components/alert-dialog/index.js +9 -0
  213. package/dist/components/alert-dialog/index.js.map +1 -0
  214. package/dist/components/aspect-ratio/index.d.ts +11 -0
  215. package/dist/components/aspect-ratio/index.js +4 -0
  216. package/dist/components/aspect-ratio/index.js.map +1 -0
  217. package/dist/components/avatar/index.d.ts +53 -0
  218. package/dist/components/avatar/index.js +4 -0
  219. package/dist/components/avatar/index.js.map +1 -0
  220. package/dist/components/badge/index.d.ts +175 -0
  221. package/dist/components/badge/index.js +4 -0
  222. package/dist/components/badge/index.js.map +1 -0
  223. package/dist/components/breadcrumb/index.d.ts +38 -0
  224. package/dist/components/breadcrumb/index.js +4 -0
  225. package/dist/components/breadcrumb/index.js.map +1 -0
  226. package/dist/components/button/index.d.ts +72 -0
  227. package/dist/components/button/index.js +5 -0
  228. package/dist/components/button/index.js.map +1 -0
  229. package/dist/components/button-group/index.d.ts +21 -0
  230. package/dist/components/button-group/index.js +4 -0
  231. package/dist/components/button-group/index.js.map +1 -0
  232. package/dist/components/calendar/index.d.ts +7 -0
  233. package/dist/components/calendar/index.js +12 -0
  234. package/dist/components/calendar/index.js.map +1 -0
  235. package/dist/components/card/index.d.ts +80 -0
  236. package/dist/components/card/index.js +3 -0
  237. package/dist/components/card/index.js.map +1 -0
  238. package/dist/components/carousel/index.d.ts +15 -0
  239. package/dist/components/carousel/index.js +5 -0
  240. package/dist/components/carousel/index.js.map +1 -0
  241. package/dist/components/chart/index.d.ts +6 -0
  242. package/dist/components/chart/index.js +4 -0
  243. package/dist/components/chart/index.js.map +1 -0
  244. package/dist/components/checkbox/index.d.ts +7 -0
  245. package/dist/components/checkbox/index.js +4 -0
  246. package/dist/components/checkbox/index.js.map +1 -0
  247. package/dist/components/collapsible/index.d.ts +11 -0
  248. package/dist/components/collapsible/index.js +4 -0
  249. package/dist/components/collapsible/index.js.map +1 -0
  250. package/dist/components/combobox/index.d.ts +13 -0
  251. package/dist/components/combobox/index.js +7 -0
  252. package/dist/components/combobox/index.js.map +1 -0
  253. package/dist/components/command/index.d.ts +21 -0
  254. package/dist/components/command/index.js +10 -0
  255. package/dist/components/command/index.js.map +1 -0
  256. package/dist/components/context-menu/index.d.ts +114 -0
  257. package/dist/components/context-menu/index.js +5 -0
  258. package/dist/components/context-menu/index.js.map +1 -0
  259. package/dist/components/data-table/index.d.ts +6 -0
  260. package/dist/components/data-table/index.js +5 -0
  261. package/dist/components/data-table/index.js.map +1 -0
  262. package/dist/components/date-picker/index.d.ts +7 -0
  263. package/dist/components/date-picker/index.js +8 -0
  264. package/dist/components/date-picker/index.js.map +1 -0
  265. package/dist/components/dialog/index.d.ts +22 -0
  266. package/dist/components/dialog/index.js +8 -0
  267. package/dist/components/dialog/index.js.map +1 -0
  268. package/dist/components/direction/index.d.ts +7 -0
  269. package/dist/components/direction/index.js +4 -0
  270. package/dist/components/direction/index.js.map +1 -0
  271. package/dist/components/drawer/index.d.ts +19 -0
  272. package/dist/components/drawer/index.js +8 -0
  273. package/dist/components/drawer/index.js.map +1 -0
  274. package/dist/components/dropdown/index.d.ts +24 -0
  275. package/dist/components/dropdown/index.js +5 -0
  276. package/dist/components/dropdown/index.js.map +1 -0
  277. package/dist/components/dropzone/index.d.ts +26 -0
  278. package/dist/components/dropzone/index.js +5 -0
  279. package/dist/components/dropzone/index.js.map +1 -0
  280. package/dist/components/empty/index.d.ts +59 -0
  281. package/dist/components/empty/index.js +4 -0
  282. package/dist/components/empty/index.js.map +1 -0
  283. package/dist/components/field/index.d.ts +8 -0
  284. package/dist/components/field/index.js +6 -0
  285. package/dist/components/field/index.js.map +1 -0
  286. package/dist/components/hover-card/index.d.ts +12 -0
  287. package/dist/components/hover-card/index.js +3 -0
  288. package/dist/components/hover-card/index.js.map +1 -0
  289. package/dist/components/image/index.d.ts +6 -0
  290. package/dist/components/image/index.js +4 -0
  291. package/dist/components/image/index.js.map +1 -0
  292. package/dist/components/input/index.d.ts +27 -0
  293. package/dist/components/input/index.js +4 -0
  294. package/dist/components/input/index.js.map +1 -0
  295. package/dist/components/input-group/index.d.ts +132 -0
  296. package/dist/components/input-group/index.js +7 -0
  297. package/dist/components/input-group/index.js.map +1 -0
  298. package/dist/components/input-otp/index.d.ts +39 -0
  299. package/dist/components/input-otp/index.js +4 -0
  300. package/dist/components/input-otp/index.js.map +1 -0
  301. package/dist/components/item/index.d.ts +108 -0
  302. package/dist/components/item/index.js +5 -0
  303. package/dist/components/item/index.js.map +1 -0
  304. package/dist/components/kbd/index.d.ts +31 -0
  305. package/dist/components/kbd/index.js +4 -0
  306. package/dist/components/kbd/index.js.map +1 -0
  307. package/dist/components/label/index.d.ts +49 -0
  308. package/dist/components/label/index.js +4 -0
  309. package/dist/components/label/index.js.map +1 -0
  310. package/dist/components/locale-segment-group/index.d.ts +15 -0
  311. package/dist/components/locale-segment-group/index.js +4 -0
  312. package/dist/components/locale-segment-group/index.js.map +1 -0
  313. package/dist/components/menubar/index.d.ts +23 -0
  314. package/dist/components/menubar/index.js +5 -0
  315. package/dist/components/menubar/index.js.map +1 -0
  316. package/dist/components/native-select/index.d.ts +89 -0
  317. package/dist/components/native-select/index.js +3 -0
  318. package/dist/components/native-select/index.js.map +1 -0
  319. package/dist/components/navigation-menu/index.d.ts +15 -0
  320. package/dist/components/navigation-menu/index.js +5 -0
  321. package/dist/components/navigation-menu/index.js.map +1 -0
  322. package/dist/components/pagination/index.d.ts +44 -0
  323. package/dist/components/pagination/index.js +5 -0
  324. package/dist/components/pagination/index.js.map +1 -0
  325. package/dist/components/popover/index.d.ts +76 -0
  326. package/dist/components/popover/index.js +5 -0
  327. package/dist/components/popover/index.js.map +1 -0
  328. package/dist/components/progress/index.d.ts +6 -0
  329. package/dist/components/progress/index.js +4 -0
  330. package/dist/components/progress/index.js.map +1 -0
  331. package/dist/components/prose/index.d.ts +8 -0
  332. package/dist/components/prose/index.js +4 -0
  333. package/dist/components/prose/index.js.map +1 -0
  334. package/dist/components/radio-group/index.d.ts +11 -0
  335. package/dist/components/radio-group/index.js +5 -0
  336. package/dist/components/radio-group/index.js.map +1 -0
  337. package/dist/components/scroll-area/index.d.ts +11 -0
  338. package/dist/components/scroll-area/index.js +4 -0
  339. package/dist/components/scroll-area/index.js.map +1 -0
  340. package/dist/components/select/index.d.ts +17 -0
  341. package/dist/components/select/index.js +5 -0
  342. package/dist/components/select/index.js.map +1 -0
  343. package/dist/components/selectable-card/index.d.ts +11 -0
  344. package/dist/components/selectable-card/index.js +5 -0
  345. package/dist/components/selectable-card/index.js.map +1 -0
  346. package/dist/components/separator/index.d.ts +24 -0
  347. package/dist/components/separator/index.js +4 -0
  348. package/dist/components/separator/index.js.map +1 -0
  349. package/dist/components/sheet/index.d.ts +20 -0
  350. package/dist/components/sheet/index.js +8 -0
  351. package/dist/components/sheet/index.js.map +1 -0
  352. package/dist/components/sidebar/index.d.ts +16 -0
  353. package/dist/components/sidebar/index.js +3 -0
  354. package/dist/components/sidebar/index.js.map +1 -0
  355. package/dist/components/skeleton/index.d.ts +52 -0
  356. package/dist/components/skeleton/index.js +3 -0
  357. package/dist/components/skeleton/index.js.map +1 -0
  358. package/dist/components/slider/index.d.ts +7 -0
  359. package/dist/components/slider/index.js +4 -0
  360. package/dist/components/slider/index.js.map +1 -0
  361. package/dist/components/sonner/index.d.ts +7 -0
  362. package/dist/components/sonner/index.js +3 -0
  363. package/dist/components/sonner/index.js.map +1 -0
  364. package/dist/components/spinner/index.d.ts +10 -0
  365. package/dist/components/spinner/index.js +4 -0
  366. package/dist/components/spinner/index.js.map +1 -0
  367. package/dist/components/switch/index.d.ts +7 -0
  368. package/dist/components/switch/index.js +4 -0
  369. package/dist/components/switch/index.js.map +1 -0
  370. package/dist/components/table/index.d.ts +45 -0
  371. package/dist/components/table/index.js +5 -0
  372. package/dist/components/table/index.js.map +1 -0
  373. package/dist/components/tabs/index.d.ts +13 -0
  374. package/dist/components/tabs/index.js +5 -0
  375. package/dist/components/tabs/index.js.map +1 -0
  376. package/dist/components/textarea/index.d.ts +27 -0
  377. package/dist/components/textarea/index.js +4 -0
  378. package/dist/components/textarea/index.js.map +1 -0
  379. package/dist/components/theme-toggle/index.d.ts +6 -0
  380. package/dist/components/theme-toggle/index.js +6 -0
  381. package/dist/components/theme-toggle/index.js.map +1 -0
  382. package/dist/components/toast/index.d.ts +27 -0
  383. package/dist/components/toast/index.js +3 -0
  384. package/dist/components/toast/index.js.map +1 -0
  385. package/dist/components/toggle/index.d.ts +7 -0
  386. package/dist/components/toggle/index.js +4 -0
  387. package/dist/components/toggle/index.js.map +1 -0
  388. package/dist/components/toggle-group/index.d.ts +11 -0
  389. package/dist/components/toggle-group/index.js +4 -0
  390. package/dist/components/toggle-group/index.js.map +1 -0
  391. package/dist/components/tooltip/index.d.ts +12 -0
  392. package/dist/components/tooltip/index.js +3 -0
  393. package/dist/components/tooltip/index.js.map +1 -0
  394. package/dist/components/typography/index.d.ts +8 -0
  395. package/dist/components/typography/index.js +4 -0
  396. package/dist/components/typography/index.js.map +1 -0
  397. package/dist/components/video/index.d.ts +8 -0
  398. package/dist/components/video/index.js +4 -0
  399. package/dist/components/video/index.js.map +1 -0
  400. package/dist/index.d.ts +82 -0
  401. package/dist/index.js +83 -0
  402. package/dist/index.js.map +1 -0
  403. package/dist/lib/interactive/index.d.ts +44 -0
  404. package/dist/lib/interactive/index.js +3 -0
  405. package/dist/lib/interactive/index.js.map +1 -0
  406. package/dist/lib/signals/index.d.ts +15 -0
  407. package/dist/lib/signals/index.js +3 -0
  408. package/dist/lib/signals/index.js.map +1 -0
  409. package/dist/lib/utils.d.ts +5 -0
  410. package/dist/lib/utils.js +3 -0
  411. package/dist/lib/utils.js.map +1 -0
  412. package/dist/navigationMenuTriggerStyle-BWnESpon.d.ts +48 -0
  413. package/dist/sonner-store-Dfdxy8ba.d.ts +11 -0
  414. package/dist/theme.css +81 -0
  415. package/package.json +360 -0
@@ -0,0 +1,624 @@
1
+ import { createIdFactory, createDismissableLayer } from './chunk-PPYJQNE5.js';
2
+ import { cn } from './chunk-MS2ZNYCJ.js';
3
+ import { signal } from '@preact/signals';
4
+ import { createContext, isValidElement, cloneElement } from 'preact';
5
+ import { useMemo, useRef, useEffect, useContext } from 'preact/hooks';
6
+ import { tv } from 'tailwind-variants';
7
+ import { jsx, jsxs } from 'preact/jsx-runtime';
8
+
9
+ var DropdownContext = createContext(null);
10
+ var nextDropdownId = createIdFactory("kamod-dropdown");
11
+ var useDropdown = () => {
12
+ const context = useContext(DropdownContext);
13
+ if (!context) throw new Error("Dropdown subcomponents must be used within Dropdown");
14
+ return context;
15
+ };
16
+ var dropdownRoot = tv({
17
+ base: "relative inline-flex"
18
+ });
19
+ var Dropdown = ({
20
+ defaultOpen = false,
21
+ class: className,
22
+ children,
23
+ ...rest
24
+ }) => {
25
+ const open = useMemo(() => signal(defaultOpen), []);
26
+ const rootRef = useRef(null);
27
+ const triggerRef = useRef(null);
28
+ const contentRef = useRef(null);
29
+ const instanceId = useMemo(() => nextDropdownId(), []);
30
+ useEffect(() => {
31
+ const layer = createDismissableLayer({
32
+ root: () => rootRef.current,
33
+ open: () => open.value,
34
+ onDismiss: () => {
35
+ open.value = false;
36
+ }
37
+ });
38
+ return () => layer.dispose();
39
+ }, []);
40
+ return /* @__PURE__ */ jsx(
41
+ DropdownContext.Provider,
42
+ {
43
+ value: {
44
+ open,
45
+ setOpen: (next) => {
46
+ open.value = next;
47
+ },
48
+ triggerId: `${instanceId}-trigger`,
49
+ contentId: `${instanceId}-content`,
50
+ rootRef,
51
+ triggerRef,
52
+ contentRef
53
+ },
54
+ children: /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ ref: rootRef,
58
+ class: dropdownRoot({ class: className }),
59
+ "data-slot": "dropdown",
60
+ "data-state": open.value ? "open" : "closed",
61
+ ...rest,
62
+ children
63
+ }
64
+ )
65
+ }
66
+ );
67
+ };
68
+ var DropdownCheckboxItem = ({
69
+ checked: checkedProp,
70
+ defaultChecked = false,
71
+ onCheckedChange,
72
+ class: className,
73
+ children,
74
+ onClick,
75
+ ...rest
76
+ }) => {
77
+ const internal = useMemo(() => signal(defaultChecked), []);
78
+ const isControlled = checkedProp !== void 0;
79
+ useEffect(() => {
80
+ if (checkedProp !== void 0) {
81
+ internal.value = checkedProp;
82
+ }
83
+ }, [checkedProp, internal]);
84
+ const checked = isControlled ? Boolean(checkedProp) : internal.value;
85
+ return /* @__PURE__ */ jsxs(
86
+ "button",
87
+ {
88
+ type: "button",
89
+ role: "menuitemcheckbox",
90
+ "data-slot": "dropdown-checkbox-item",
91
+ "aria-checked": checked,
92
+ class: cn(
93
+ "relative flex w-full cursor-default select-none items-center gap-1 rounded-sm py-0.5 ps-7 pe-1.5 text-sm outline-none transition-colors duration-100",
94
+ "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
95
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
96
+ className
97
+ ),
98
+ onClick: (event) => {
99
+ onClick?.(event);
100
+ if (event.defaultPrevented) return;
101
+ const next = !checked;
102
+ if (!isControlled) {
103
+ internal.value = next;
104
+ }
105
+ onCheckedChange?.(next);
106
+ },
107
+ ...rest,
108
+ children: [
109
+ /* @__PURE__ */ jsx(
110
+ "span",
111
+ {
112
+ class: "pointer-events-none absolute start-1.5 flex size-3 items-center justify-center",
113
+ "aria-hidden": true,
114
+ children: checked ? /* @__PURE__ */ jsx(
115
+ "svg",
116
+ {
117
+ xmlns: "http://www.w3.org/2000/svg",
118
+ width: "24",
119
+ height: "24",
120
+ viewBox: "0 0 24 24",
121
+ fill: "none",
122
+ stroke: "currentColor",
123
+ "stroke-width": "2",
124
+ "stroke-linecap": "round",
125
+ "stroke-linejoin": "round",
126
+ class: "size-3.5",
127
+ children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
128
+ }
129
+ ) : null
130
+ }
131
+ ),
132
+ children
133
+ ]
134
+ }
135
+ );
136
+ };
137
+ var positionBySide = {
138
+ top: "bottom-full",
139
+ bottom: "top-full",
140
+ left: "right-full",
141
+ right: "left-full"
142
+ };
143
+ var alignByAxis = {
144
+ vertical: {
145
+ start: "left-0",
146
+ center: "left-1/2 -translate-x-1/2",
147
+ end: "right-0"
148
+ },
149
+ horizontal: {
150
+ start: "top-0",
151
+ center: "top-1/2 -translate-y-1/2",
152
+ end: "bottom-0"
153
+ }
154
+ };
155
+ var dropdownContent = tv({
156
+ base: [
157
+ // overflow-x visible so DropdownSubContent (absolute start-full) is not clipped; keep vertical scroll for long menus
158
+ "bg-white text-popover-foreground z-50 flex min-w-[7rem] flex-col gap-0 overflow-x-visible overflow-y-auto rounded-lg p-px shadow-md outline-none ring-1 ring-foreground/10 dark:bg-popover",
159
+ "dark:ring-foreground/15",
160
+ "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:duration-100",
161
+ "data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-100",
162
+ "absolute isolate max-h-96"
163
+ ],
164
+ variants: {
165
+ side: {
166
+ bottom: "slide-in-from-top-2",
167
+ top: "slide-in-from-bottom-2",
168
+ right: "slide-in-from-left-2",
169
+ left: "slide-in-from-right-2"
170
+ }
171
+ },
172
+ defaultVariants: {
173
+ side: "bottom"
174
+ }
175
+ });
176
+ var DropdownContent = ({
177
+ forceMount = false,
178
+ side = "bottom",
179
+ align = "start",
180
+ sideOffset = 4,
181
+ class: className,
182
+ style,
183
+ children,
184
+ onKeyDown,
185
+ ...rest
186
+ }) => {
187
+ const dropdown = useDropdown();
188
+ if (!dropdown.open.value && !forceMount) return null;
189
+ const isVertical = side === "top" || side === "bottom";
190
+ const alignClass = isVertical ? alignByAxis.vertical[align] : alignByAxis.horizontal[align];
191
+ const inlineStyle = typeof style === "object" && style !== null ? style : void 0;
192
+ const offsetStyle = side === "bottom" ? { marginTop: `${sideOffset}px` } : side === "top" ? { marginBottom: `${sideOffset}px` } : side === "right" ? { marginLeft: `${sideOffset}px` } : { marginRight: `${sideOffset}px` };
193
+ return /* @__PURE__ */ jsx(
194
+ "div",
195
+ {
196
+ ref: (node) => {
197
+ dropdown.contentRef.current = node;
198
+ },
199
+ id: dropdown.contentId,
200
+ role: "menu",
201
+ tabIndex: -1,
202
+ "aria-labelledby": dropdown.triggerId,
203
+ "data-slot": "dropdown-content",
204
+ "data-side": side,
205
+ "data-align": align,
206
+ "data-state": dropdown.open.value ? "open" : "closed",
207
+ class: `${positionBySide[side]} ${alignClass} ${dropdownContent({ side, class: className })}`,
208
+ style: inlineStyle ? { ...offsetStyle, ...inlineStyle } : offsetStyle,
209
+ onKeyDown: (event) => {
210
+ if (event.key === "Escape") {
211
+ event.preventDefault();
212
+ dropdown.setOpen(false);
213
+ dropdown.triggerRef.current?.focus();
214
+ return;
215
+ }
216
+ onKeyDown?.(event);
217
+ },
218
+ ...rest,
219
+ children
220
+ }
221
+ );
222
+ };
223
+ var DropdownGroup = ({ class: className, children, ...rest }) => /* @__PURE__ */ jsx("div", { role: "group", "data-slot": "dropdown-group", class: cn("p-1", className), ...rest, children });
224
+ var dropdownItem = tv({
225
+ base: [
226
+ "relative flex w-full cursor-default select-none items-center gap-1 rounded-sm px-1 py-0.5 text-sm outline-none transition-colors duration-100 ease-out",
227
+ "text-popover-foreground hover:bg-accent hover:text-accent-foreground",
228
+ "focus:bg-accent focus:text-accent-foreground",
229
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
230
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5"
231
+ ],
232
+ variants: {
233
+ variant: {
234
+ default: "",
235
+ destructive: "text-destructive hover:bg-destructive/10 hover:text-destructive focus:bg-destructive/10 focus:text-destructive dark:focus:bg-destructive/20 [&_svg]:text-destructive"
236
+ },
237
+ inset: {
238
+ true: "ps-6"
239
+ }
240
+ },
241
+ defaultVariants: {
242
+ variant: "default",
243
+ inset: false
244
+ }
245
+ });
246
+ var DropdownItem = ({
247
+ inset = false,
248
+ variant = "default",
249
+ class: className,
250
+ children,
251
+ onClick,
252
+ ...rest
253
+ }) => {
254
+ const dropdown = useDropdown();
255
+ return /* @__PURE__ */ jsx(
256
+ "button",
257
+ {
258
+ type: "button",
259
+ role: "menuitem",
260
+ "data-slot": "dropdown-item",
261
+ "data-inset": inset ? "true" : void 0,
262
+ "data-variant": variant,
263
+ class: dropdownItem({ inset, variant, class: className }),
264
+ onClick: (event) => {
265
+ onClick?.(event);
266
+ if (event.defaultPrevented) return;
267
+ dropdown.setOpen(false);
268
+ },
269
+ ...rest,
270
+ children
271
+ }
272
+ );
273
+ };
274
+ var DropdownLabel = ({
275
+ inset = false,
276
+ class: className,
277
+ children,
278
+ ...rest
279
+ }) => /* @__PURE__ */ jsx(
280
+ "div",
281
+ {
282
+ "data-slot": "dropdown-label",
283
+ "data-inset": inset ? "true" : void 0,
284
+ class: cn(
285
+ "text-muted-foreground px-1 py-0.5 text-xs font-semibold",
286
+ inset && "ps-6",
287
+ className
288
+ ),
289
+ ...rest,
290
+ children
291
+ }
292
+ );
293
+ var DropdownPortal = ({ children, ...rest }) => /* @__PURE__ */ jsx("div", { "data-slot": "dropdown-portal", ...rest, children });
294
+ var DropdownRadioContext = createContext(null);
295
+ var DropdownRadioProvider = DropdownRadioContext.Provider;
296
+ var useDropdownRadio = () => {
297
+ const ctx = useContext(DropdownRadioContext);
298
+ if (!ctx) throw new Error("DropdownRadioItem must be used within DropdownRadioGroup");
299
+ return ctx;
300
+ };
301
+ var useDropdownRadioRoot = (defaultValue, valueProp, onValueChange) => {
302
+ const internal = useMemo(() => signal(valueProp ?? defaultValue), []);
303
+ const controlledRef = useRef(false);
304
+ controlledRef.current = valueProp !== void 0;
305
+ useEffect(() => {
306
+ if (valueProp !== void 0) {
307
+ internal.value = valueProp;
308
+ }
309
+ }, [valueProp, internal]);
310
+ const onValueChangeRef = useRef(onValueChange);
311
+ onValueChangeRef.current = onValueChange;
312
+ return useMemo(
313
+ () => ({
314
+ value: internal,
315
+ setValue: (next) => {
316
+ if (!controlledRef.current) {
317
+ internal.value = next;
318
+ }
319
+ onValueChangeRef.current?.(next);
320
+ }
321
+ }),
322
+ [internal]
323
+ );
324
+ };
325
+ var DropdownRadioGroup = ({
326
+ value,
327
+ defaultValue = "",
328
+ onValueChange,
329
+ children,
330
+ ...rest
331
+ }) => {
332
+ const ctx = useDropdownRadioRoot(defaultValue, value, onValueChange);
333
+ return /* @__PURE__ */ jsx(DropdownRadioProvider, { value: ctx, children: /* @__PURE__ */ jsx("div", { role: "group", "data-slot": "dropdown-radio-group", ...rest, children }) });
334
+ };
335
+ var DropdownRadioItem = ({
336
+ value,
337
+ class: className,
338
+ children,
339
+ onClick,
340
+ ...rest
341
+ }) => {
342
+ const dropdown = useDropdown();
343
+ const radio = useDropdownRadio();
344
+ const selected = radio.value.value === value;
345
+ return /* @__PURE__ */ jsxs(
346
+ "button",
347
+ {
348
+ type: "button",
349
+ role: "menuitemradio",
350
+ "data-slot": "dropdown-radio-item",
351
+ "aria-checked": selected,
352
+ class: cn(
353
+ "relative flex w-full cursor-default select-none items-center gap-1 rounded-sm py-0.5 ps-7 pe-1.5 text-sm outline-none transition-colors duration-100",
354
+ "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
355
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
356
+ className
357
+ ),
358
+ onClick: (event) => {
359
+ onClick?.(event);
360
+ if (event.defaultPrevented) return;
361
+ radio.setValue(value);
362
+ dropdown.setOpen(false);
363
+ },
364
+ ...rest,
365
+ children: [
366
+ /* @__PURE__ */ jsx(
367
+ "span",
368
+ {
369
+ class: "pointer-events-none absolute start-1.5 flex size-3 items-center justify-center",
370
+ "aria-hidden": true,
371
+ children: selected ? /* @__PURE__ */ jsx("span", { class: "size-1.5 rounded-full bg-current" }) : null
372
+ }
373
+ ),
374
+ children
375
+ ]
376
+ }
377
+ );
378
+ };
379
+ var DropdownSeparator = ({ class: className, ...rest }) => /* @__PURE__ */ jsx(
380
+ "div",
381
+ {
382
+ role: "separator",
383
+ "data-slot": "dropdown-separator",
384
+ class: cn("bg-border -mx-px my-px h-px", className),
385
+ ...rest
386
+ }
387
+ );
388
+ var DropdownShortcut = ({
389
+ class: className,
390
+ children,
391
+ ...rest
392
+ }) => /* @__PURE__ */ jsx(
393
+ "span",
394
+ {
395
+ "data-slot": "dropdown-shortcut",
396
+ class: cn("text-muted-foreground ms-auto text-xs tracking-widest opacity-70", className),
397
+ ...rest,
398
+ children
399
+ }
400
+ );
401
+ var DropdownSubContext = createContext(null);
402
+ var DropdownSubProvider = ({
403
+ children,
404
+ value
405
+ }) => /* @__PURE__ */ jsx(DropdownSubContext.Provider, { value, children });
406
+ var useDropdownSub = () => {
407
+ const ctx = useContext(DropdownSubContext);
408
+ if (!ctx) throw new Error("Dropdown subcomponents must be used within DropdownSub");
409
+ return ctx;
410
+ };
411
+ var useMemoDropdownSub = () => useMemo(() => {
412
+ const open = signal(false);
413
+ return {
414
+ open,
415
+ setOpen: (next) => {
416
+ open.value = next;
417
+ }
418
+ };
419
+ }, []);
420
+ var DropdownSub = ({ class: className, children, ...rest }) => {
421
+ const ctx = useMemoDropdownSub();
422
+ return /* @__PURE__ */ jsx(DropdownSubProvider, { value: ctx, children: /* @__PURE__ */ jsx(
423
+ "div",
424
+ {
425
+ "data-slot": "dropdown-sub",
426
+ class: cn("relative", className),
427
+ onPointerLeave: () => {
428
+ ctx.setOpen(false);
429
+ },
430
+ ...rest,
431
+ children
432
+ }
433
+ ) });
434
+ };
435
+ var DropdownSubContent = ({
436
+ class: className,
437
+ children,
438
+ onPointerEnter,
439
+ side = "inline-end",
440
+ ...rest
441
+ }) => {
442
+ const sub = useDropdownSub();
443
+ if (!sub.open.value) return null;
444
+ const sidePosition = side === "inline-start" ? "end-full me-0.5 rtl:ms-0.5 rtl:me-0" : "start-full ms-0.5 rtl:me-0.5 rtl:ms-0";
445
+ return /* @__PURE__ */ jsx(
446
+ "div",
447
+ {
448
+ role: "menu",
449
+ "data-slot": "dropdown-sub-content",
450
+ "data-side": side,
451
+ "data-state": "open",
452
+ class: cn(
453
+ "absolute top-0 z-50 min-w-[7rem] max-h-[min(24rem,calc(100dvh-2rem))] overflow-x-hidden overflow-y-auto rounded-lg bg-white p-px text-popover-foreground shadow-md outline-none ring-1 ring-foreground/10 dark:bg-popover dark:ring-foreground/15",
454
+ sidePosition,
455
+ className
456
+ ),
457
+ onPointerEnter: (e) => {
458
+ onPointerEnter?.(e);
459
+ sub.setOpen(true);
460
+ },
461
+ ...rest,
462
+ children
463
+ }
464
+ );
465
+ };
466
+ var ChevronRight = ({ class: className }) => /* @__PURE__ */ jsx(
467
+ "svg",
468
+ {
469
+ xmlns: "http://www.w3.org/2000/svg",
470
+ width: "16",
471
+ height: "16",
472
+ viewBox: "0 0 24 24",
473
+ fill: "none",
474
+ stroke: "currentColor",
475
+ "stroke-width": "2",
476
+ "stroke-linecap": "round",
477
+ "stroke-linejoin": "round",
478
+ class: cn("size-3.5 shrink-0 rtl:rotate-180", className),
479
+ "aria-hidden": true,
480
+ children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
481
+ }
482
+ );
483
+ var DropdownSubTrigger = ({
484
+ class: className,
485
+ children,
486
+ onClick,
487
+ onPointerEnter,
488
+ ...rest
489
+ }) => {
490
+ const sub = useDropdownSub();
491
+ const open = sub.open.value;
492
+ return /* @__PURE__ */ jsxs(
493
+ "button",
494
+ {
495
+ type: "button",
496
+ role: "menuitem",
497
+ "data-slot": "dropdown-sub-trigger",
498
+ "data-state": open ? "open" : "closed",
499
+ "aria-expanded": open,
500
+ "aria-haspopup": "menu",
501
+ class: cn(
502
+ "flex w-full cursor-default select-none items-center gap-1 rounded-sm px-1 py-0.5 text-start text-sm outline-none transition-colors duration-100",
503
+ "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",
504
+ "data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
505
+ "[&_svg]:shrink-0",
506
+ className
507
+ ),
508
+ onPointerEnter: (e) => {
509
+ onPointerEnter?.(e);
510
+ if (e.defaultPrevented) return;
511
+ sub.setOpen(true);
512
+ },
513
+ onClick: (e) => {
514
+ onClick?.(e);
515
+ if (e.defaultPrevented) return;
516
+ sub.setOpen(!open);
517
+ },
518
+ ...rest,
519
+ children: [
520
+ children,
521
+ /* @__PURE__ */ jsx(ChevronRight, { class: "ms-auto" })
522
+ ]
523
+ }
524
+ );
525
+ };
526
+ var dropdownTrigger = tv({
527
+ base: [
528
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap",
529
+ "focus-visible:ring-outline/50 transition-[color,box-shadow] outline-none focus-visible:ring-3",
530
+ "disabled:pointer-events-none disabled:opacity-50",
531
+ "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
532
+ "h-9 px-4 py-2"
533
+ ]
534
+ });
535
+ var callRef = (ref, node) => {
536
+ if (typeof ref === "function") {
537
+ ref(node);
538
+ } else if (ref && typeof ref === "object" && "current" in ref) {
539
+ ref.current = node;
540
+ }
541
+ };
542
+ var DropdownTrigger = ({
543
+ asChild = false,
544
+ class: className,
545
+ children,
546
+ onClick,
547
+ ref: outerRef,
548
+ ...rest
549
+ }) => {
550
+ const dropdown = useDropdown();
551
+ const handleClick = (event) => {
552
+ onClick?.(event);
553
+ if (event.defaultPrevented) return;
554
+ dropdown.setOpen(!dropdown.open.value);
555
+ };
556
+ if (asChild) {
557
+ if (!isValidElement(children)) {
558
+ return null;
559
+ }
560
+ const childProps = children.props ?? {};
561
+ return cloneElement(children, {
562
+ ...childProps,
563
+ ...rest,
564
+ id: dropdown.triggerId,
565
+ "aria-controls": dropdown.contentId,
566
+ "aria-haspopup": "menu",
567
+ "aria-expanded": dropdown.open.value,
568
+ "data-slot": "dropdown-trigger",
569
+ "data-state": dropdown.open.value ? "open" : "closed",
570
+ onClick: (event) => {
571
+ childProps.onClick?.(event);
572
+ handleClick(event);
573
+ },
574
+ ref: (node) => {
575
+ dropdown.triggerRef.current = node;
576
+ callRef(childProps.ref, node);
577
+ callRef(outerRef, node);
578
+ }
579
+ });
580
+ }
581
+ return /* @__PURE__ */ jsx(
582
+ "button",
583
+ {
584
+ ref: (node) => {
585
+ dropdown.triggerRef.current = node;
586
+ callRef(outerRef, node);
587
+ },
588
+ id: dropdown.triggerId,
589
+ type: "button",
590
+ class: dropdownTrigger({ class: className }),
591
+ "data-slot": "dropdown-trigger",
592
+ "data-state": dropdown.open.value ? "open" : "closed",
593
+ "aria-controls": dropdown.contentId,
594
+ "aria-haspopup": "menu",
595
+ "aria-expanded": dropdown.open.value,
596
+ onClick: (event) => handleClick(event),
597
+ ...rest,
598
+ children
599
+ }
600
+ );
601
+ };
602
+
603
+ // src/components/dropdown/index.ts
604
+ var dropdown_default = {
605
+ Root: Dropdown,
606
+ Trigger: DropdownTrigger,
607
+ Content: DropdownContent,
608
+ Item: DropdownItem,
609
+ Label: DropdownLabel,
610
+ Separator: DropdownSeparator,
611
+ Group: DropdownGroup,
612
+ Shortcut: DropdownShortcut,
613
+ Sub: DropdownSub,
614
+ SubTrigger: DropdownSubTrigger,
615
+ SubContent: DropdownSubContent,
616
+ Portal: DropdownPortal,
617
+ CheckboxItem: DropdownCheckboxItem,
618
+ RadioGroup: DropdownRadioGroup,
619
+ RadioItem: DropdownRadioItem
620
+ };
621
+
622
+ export { Dropdown, DropdownCheckboxItem, DropdownContent, DropdownGroup, DropdownItem, DropdownLabel, DropdownPortal, DropdownRadioGroup, DropdownRadioItem, DropdownSeparator, DropdownShortcut, DropdownSub, DropdownSubContent, DropdownSubTrigger, DropdownTrigger, dropdown_default };
623
+ //# sourceMappingURL=chunk-7AJT2E2Y.js.map
624
+ //# sourceMappingURL=chunk-7AJT2E2Y.js.map