@constructive-io/ui 0.6.0 → 0.6.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 (414) hide show
  1. package/dist/button-D4vqTxhp.d.cts +20 -0
  2. package/dist/button-D4vqTxhp.d.ts +20 -0
  3. package/dist/components/alert-dialog.cjs +98 -302
  4. package/dist/components/alert-dialog.cjs.map +1 -1
  5. package/dist/components/alert-dialog.d.cts +22 -21
  6. package/dist/components/alert-dialog.d.ts +22 -21
  7. package/dist/components/alert-dialog.js +96 -281
  8. package/dist/components/alert-dialog.js.map +1 -1
  9. package/dist/components/alert.cjs +51 -108
  10. package/dist/components/alert.cjs.map +1 -1
  11. package/dist/components/alert.d.cts +13 -13
  12. package/dist/components/alert.d.ts +13 -13
  13. package/dist/components/alert.js +49 -87
  14. package/dist/components/alert.js.map +1 -1
  15. package/dist/components/app-bar.cjs +73 -359
  16. package/dist/components/app-bar.cjs.map +1 -1
  17. package/dist/components/app-bar.d.cts +21 -20
  18. package/dist/components/app-bar.d.ts +21 -20
  19. package/dist/components/app-bar.js +71 -338
  20. package/dist/components/app-bar.js.map +1 -1
  21. package/dist/components/app-shell.cjs +252 -1777
  22. package/dist/components/app-shell.cjs.map +1 -1
  23. package/dist/components/app-shell.d.cts +77 -85
  24. package/dist/components/app-shell.d.ts +77 -85
  25. package/dist/components/app-shell.js +249 -1756
  26. package/dist/components/app-shell.js.map +1 -1
  27. package/dist/components/autocomplete.cjs +146 -397
  28. package/dist/components/autocomplete.cjs.map +1 -1
  29. package/dist/components/autocomplete.d.cts +24 -24
  30. package/dist/components/autocomplete.d.ts +24 -24
  31. package/dist/components/autocomplete.js +146 -376
  32. package/dist/components/autocomplete.js.map +1 -1
  33. package/dist/components/avatar.cjs +26 -38
  34. package/dist/components/avatar.cjs.map +1 -1
  35. package/dist/components/avatar.d.cts +11 -10
  36. package/dist/components/avatar.d.ts +11 -10
  37. package/dist/components/avatar.js +24 -37
  38. package/dist/components/avatar.js.map +1 -1
  39. package/dist/components/badge.cjs +42 -60
  40. package/dist/components/badge.cjs.map +1 -1
  41. package/dist/components/badge.d.cts +13 -13
  42. package/dist/components/badge.d.ts +13 -13
  43. package/dist/components/badge.js +39 -38
  44. package/dist/components/badge.js.map +1 -1
  45. package/dist/components/breadcrumb.cjs +65 -94
  46. package/dist/components/breadcrumb.cjs.map +1 -1
  47. package/dist/components/breadcrumb.d.cts +14 -13
  48. package/dist/components/breadcrumb.d.ts +14 -13
  49. package/dist/components/breadcrumb.js +63 -73
  50. package/dist/components/breadcrumb.js.map +1 -1
  51. package/dist/components/button.cjs +68 -162
  52. package/dist/components/button.cjs.map +1 -1
  53. package/dist/components/button.d.cts +2 -20
  54. package/dist/components/button.d.ts +2 -20
  55. package/dist/components/button.js +65 -140
  56. package/dist/components/button.js.map +1 -1
  57. package/dist/components/calendar-rac.cjs +49 -62
  58. package/dist/components/calendar-rac.cjs.map +1 -1
  59. package/dist/components/calendar-rac.d.cts +8 -8
  60. package/dist/components/calendar-rac.d.ts +8 -8
  61. package/dist/components/calendar-rac.js +49 -61
  62. package/dist/components/calendar-rac.js.map +1 -1
  63. package/dist/components/card.cjs +61 -74
  64. package/dist/components/card.cjs.map +1 -1
  65. package/dist/components/card.d.cts +15 -16
  66. package/dist/components/card.d.ts +15 -16
  67. package/dist/components/card.js +58 -72
  68. package/dist/components/card.js.map +1 -1
  69. package/dist/components/checkbox-group.cjs +12 -11
  70. package/dist/components/checkbox-group.cjs.map +1 -1
  71. package/dist/components/checkbox-group.d.cts +5 -5
  72. package/dist/components/checkbox-group.d.ts +5 -5
  73. package/dist/components/checkbox-group.js +12 -10
  74. package/dist/components/checkbox-group.js.map +1 -1
  75. package/dist/components/checkbox.cjs +60 -114
  76. package/dist/components/checkbox.cjs.map +1 -1
  77. package/dist/components/checkbox.d.cts +6 -6
  78. package/dist/components/checkbox.d.ts +6 -6
  79. package/dist/components/checkbox.js +58 -93
  80. package/dist/components/checkbox.js.map +1 -1
  81. package/dist/components/collapsible.cjs +76 -113
  82. package/dist/components/collapsible.cjs.map +1 -1
  83. package/dist/components/collapsible.d.cts +16 -15
  84. package/dist/components/collapsible.d.ts +16 -15
  85. package/dist/components/collapsible.js +74 -92
  86. package/dist/components/collapsible.js.map +1 -1
  87. package/dist/components/combobox.cjs +213 -507
  88. package/dist/components/combobox.cjs.map +1 -1
  89. package/dist/components/combobox.d.cts +36 -35
  90. package/dist/components/combobox.d.ts +36 -35
  91. package/dist/components/combobox.js +229 -504
  92. package/dist/components/combobox.js.map +1 -1
  93. package/dist/components/command.cjs +102 -199
  94. package/dist/components/command.cjs.map +1 -1
  95. package/dist/components/command.d.cts +22 -21
  96. package/dist/components/command.d.ts +22 -21
  97. package/dist/components/command.js +100 -198
  98. package/dist/components/command.js.map +1 -1
  99. package/dist/components/dialog.cjs +110 -402
  100. package/dist/components/dialog.cjs.map +1 -1
  101. package/dist/components/dialog.d.cts +27 -26
  102. package/dist/components/dialog.d.ts +27 -26
  103. package/dist/components/dialog.js +107 -380
  104. package/dist/components/dialog.js.map +1 -1
  105. package/dist/components/dock.cjs +80 -111
  106. package/dist/components/dock.cjs.map +1 -1
  107. package/dist/components/dock.d.cts +25 -25
  108. package/dist/components/dock.d.ts +25 -25
  109. package/dist/components/dock.js +78 -106
  110. package/dist/components/dock.js.map +1 -1
  111. package/dist/components/drawer.cjs +77 -111
  112. package/dist/components/drawer.cjs.map +1 -1
  113. package/dist/components/drawer.d.cts +15 -14
  114. package/dist/components/drawer.d.ts +15 -14
  115. package/dist/components/drawer.js +75 -90
  116. package/dist/components/drawer.js.map +1 -1
  117. package/dist/components/dropdown-menu.cjs +163 -238
  118. package/dist/components/dropdown-menu.cjs.map +1 -1
  119. package/dist/components/dropdown-menu.d.cts +44 -43
  120. package/dist/components/dropdown-menu.d.ts +44 -43
  121. package/dist/components/dropdown-menu.js +161 -217
  122. package/dist/components/dropdown-menu.js.map +1 -1
  123. package/dist/components/empty.cjs +51 -85
  124. package/dist/components/empty.cjs.map +1 -1
  125. package/dist/components/empty.d.cts +13 -13
  126. package/dist/components/empty.d.ts +13 -13
  127. package/dist/components/empty.js +48 -83
  128. package/dist/components/empty.js.map +1 -1
  129. package/dist/components/field.cjs +150 -259
  130. package/dist/components/field.cjs.map +1 -1
  131. package/dist/components/field.d.cts +39 -39
  132. package/dist/components/field.d.ts +39 -39
  133. package/dist/components/field.js +148 -238
  134. package/dist/components/field.js.map +1 -1
  135. package/dist/components/flickering-grid.cjs +143 -166
  136. package/dist/components/flickering-grid.cjs.map +1 -1
  137. package/dist/components/flickering-grid.d.cts +14 -13
  138. package/dist/components/flickering-grid.d.ts +14 -13
  139. package/dist/components/flickering-grid.js +141 -161
  140. package/dist/components/flickering-grid.js.map +1 -1
  141. package/dist/components/flow-zoom-panel.cjs +56 -188
  142. package/dist/components/flow-zoom-panel.cjs.map +1 -1
  143. package/dist/components/flow-zoom-panel.d.cts +9 -9
  144. package/dist/components/flow-zoom-panel.d.ts +9 -9
  145. package/dist/components/flow-zoom-panel.js +56 -168
  146. package/dist/components/flow-zoom-panel.js.map +1 -1
  147. package/dist/components/form-control.cjs +58 -186
  148. package/dist/components/form-control.cjs.map +1 -1
  149. package/dist/components/form-control.d.cts +11 -10
  150. package/dist/components/form-control.d.ts +11 -10
  151. package/dist/components/form-control.js +56 -165
  152. package/dist/components/form-control.js.map +1 -1
  153. package/dist/components/form.cjs +78 -184
  154. package/dist/components/form.cjs.map +1 -1
  155. package/dist/components/form.d.cts +2 -36
  156. package/dist/components/form.d.ts +2 -36
  157. package/dist/components/form.js +76 -163
  158. package/dist/components/form.js.map +1 -1
  159. package/dist/components/input-group.cjs +51 -165
  160. package/dist/components/input-group.cjs.map +1 -1
  161. package/dist/components/input-group.d.cts +14 -15
  162. package/dist/components/input-group.d.ts +14 -15
  163. package/dist/components/input-group.js +51 -164
  164. package/dist/components/input-group.js.map +1 -1
  165. package/dist/components/input.cjs +30 -55
  166. package/dist/components/input.cjs.map +1 -1
  167. package/dist/components/input.d.cts +2 -10
  168. package/dist/components/input.d.ts +2 -10
  169. package/dist/components/input.js +30 -54
  170. package/dist/components/input.js.map +1 -1
  171. package/dist/components/json-input.cjs +133 -337
  172. package/dist/components/json-input.cjs.map +1 -1
  173. package/dist/components/json-input.d.cts +20 -19
  174. package/dist/components/json-input.d.ts +20 -19
  175. package/dist/components/json-input.js +132 -317
  176. package/dist/components/json-input.js.map +1 -1
  177. package/dist/components/label.cjs +19 -21
  178. package/dist/components/label.cjs.map +1 -1
  179. package/dist/components/label.d.cts +6 -5
  180. package/dist/components/label.d.ts +6 -5
  181. package/dist/components/label.js +17 -20
  182. package/dist/components/label.js.map +1 -1
  183. package/dist/components/motion-grid.cjs +61 -101
  184. package/dist/components/motion-grid.cjs.map +1 -1
  185. package/dist/components/motion-grid.d.cts +15 -14
  186. package/dist/components/motion-grid.d.ts +15 -14
  187. package/dist/components/motion-grid.js +59 -80
  188. package/dist/components/motion-grid.js.map +1 -1
  189. package/dist/components/multi-select.cjs +563 -786
  190. package/dist/components/multi-select.cjs.map +1 -1
  191. package/dist/components/multi-select.d.cts +173 -173
  192. package/dist/components/multi-select.d.ts +173 -173
  193. package/dist/components/multi-select.js +561 -765
  194. package/dist/components/multi-select.js.map +1 -1
  195. package/dist/components/page-header.cjs +24 -13
  196. package/dist/components/page-header.cjs.map +1 -1
  197. package/dist/components/page-header.d.cts +11 -11
  198. package/dist/components/page-header.d.ts +11 -11
  199. package/dist/components/page-header.js +23 -11
  200. package/dist/components/page-header.js.map +1 -1
  201. package/dist/components/pagination.cjs +72 -272
  202. package/dist/components/pagination.cjs.map +1 -1
  203. package/dist/components/pagination.d.cts +15 -16
  204. package/dist/components/pagination.d.ts +15 -16
  205. package/dist/components/pagination.js +69 -250
  206. package/dist/components/pagination.js.map +1 -1
  207. package/dist/components/popover.cjs +68 -111
  208. package/dist/components/popover.cjs.map +1 -1
  209. package/dist/components/popover.d.cts +31 -30
  210. package/dist/components/popover.d.ts +31 -30
  211. package/dist/components/popover.js +66 -90
  212. package/dist/components/popover.js.map +1 -1
  213. package/dist/components/portal.cjs +128 -81
  214. package/dist/components/portal.cjs.map +1 -1
  215. package/dist/components/portal.d.cts +24 -23
  216. package/dist/components/portal.d.ts +24 -23
  217. package/dist/components/portal.js +126 -60
  218. package/dist/components/portal.js.map +1 -1
  219. package/dist/components/progress.cjs +23 -24
  220. package/dist/components/progress.cjs.map +1 -1
  221. package/dist/components/progress.d.cts +8 -7
  222. package/dist/components/progress.d.ts +8 -7
  223. package/dist/components/progress.js +21 -23
  224. package/dist/components/progress.js.map +1 -1
  225. package/dist/components/progressive-blur-scroll-container.cjs +70 -138
  226. package/dist/components/progressive-blur-scroll-container.cjs.map +1 -1
  227. package/dist/components/progressive-blur-scroll-container.d.cts +19 -19
  228. package/dist/components/progressive-blur-scroll-container.d.ts +19 -19
  229. package/dist/components/progressive-blur-scroll-container.js +70 -137
  230. package/dist/components/progressive-blur-scroll-container.js.map +1 -1
  231. package/dist/components/progressive-blur.cjs +40 -64
  232. package/dist/components/progressive-blur.cjs.map +1 -1
  233. package/dist/components/progressive-blur.d.cts +15 -14
  234. package/dist/components/progressive-blur.d.ts +15 -14
  235. package/dist/components/progressive-blur.js +38 -63
  236. package/dist/components/progressive-blur.js.map +1 -1
  237. package/dist/components/radio-group.cjs +28 -42
  238. package/dist/components/radio-group.cjs.map +1 -1
  239. package/dist/components/radio-group.d.cts +8 -8
  240. package/dist/components/radio-group.d.ts +8 -8
  241. package/dist/components/radio-group.js +28 -41
  242. package/dist/components/radio-group.js.map +1 -1
  243. package/dist/components/record-picker.cjs +6 -418
  244. package/dist/components/record-picker.d.cts +13 -13
  245. package/dist/components/record-picker.d.ts +13 -13
  246. package/dist/components/record-picker.js +5 -397
  247. package/dist/components/resizable.cjs +32 -58
  248. package/dist/components/resizable.cjs.map +1 -1
  249. package/dist/components/resizable.d.cts +10 -9
  250. package/dist/components/resizable.d.ts +10 -9
  251. package/dist/components/resizable.js +29 -37
  252. package/dist/components/resizable.js.map +1 -1
  253. package/dist/components/responsive-diagram.cjs +50 -61
  254. package/dist/components/responsive-diagram.cjs.map +1 -1
  255. package/dist/components/responsive-diagram.d.cts +7 -7
  256. package/dist/components/responsive-diagram.d.ts +7 -7
  257. package/dist/components/responsive-diagram.js +50 -60
  258. package/dist/components/responsive-diagram.js.map +1 -1
  259. package/dist/components/scroll-area.cjs +37 -83
  260. package/dist/components/scroll-area.cjs.map +1 -1
  261. package/dist/components/scroll-area.d.cts +9 -8
  262. package/dist/components/scroll-area.d.ts +9 -8
  263. package/dist/components/scroll-area.js +35 -62
  264. package/dist/components/scroll-area.js.map +1 -1
  265. package/dist/components/select.cjs +175 -300
  266. package/dist/components/select.cjs.map +1 -1
  267. package/dist/components/select.d.cts +36 -35
  268. package/dist/components/select.d.ts +36 -35
  269. package/dist/components/select.js +172 -278
  270. package/dist/components/select.js.map +1 -1
  271. package/dist/components/separator.cjs +16 -19
  272. package/dist/components/separator.cjs.map +1 -1
  273. package/dist/components/separator.d.cts +2 -10
  274. package/dist/components/separator.d.ts +2 -10
  275. package/dist/components/separator.js +14 -18
  276. package/dist/components/separator.js.map +1 -1
  277. package/dist/components/sheet.cjs +17 -487
  278. package/dist/components/sheet.d.cts +85 -85
  279. package/dist/components/sheet.d.ts +85 -85
  280. package/dist/components/sheet.js +3 -453
  281. package/dist/components/sidebar.cjs +27 -1298
  282. package/dist/components/sidebar.d.cts +62 -65
  283. package/dist/components/sidebar.d.ts +62 -65
  284. package/dist/components/sidebar.js +3 -1254
  285. package/dist/components/skeleton.cjs +18 -30
  286. package/dist/components/skeleton.cjs.map +1 -1
  287. package/dist/components/skeleton.d.cts +6 -5
  288. package/dist/components/skeleton.d.ts +6 -5
  289. package/dist/components/skeleton.js +15 -28
  290. package/dist/components/skeleton.js.map +1 -1
  291. package/dist/components/sonner.cjs +17 -19
  292. package/dist/components/sonner.cjs.map +1 -1
  293. package/dist/components/sonner.d.cts +7 -7
  294. package/dist/components/sonner.d.ts +7 -7
  295. package/dist/components/sonner.js +17 -18
  296. package/dist/components/sonner.js.map +1 -1
  297. package/dist/components/stack/index.cjs +43 -1515
  298. package/dist/components/stack/index.d.cts +2 -672
  299. package/dist/components/stack/index.d.ts +2 -672
  300. package/dist/components/stack/index.js +3 -1455
  301. package/dist/components/stepper.cjs +131 -285
  302. package/dist/components/stepper.cjs.map +1 -1
  303. package/dist/components/stepper.d.cts +27 -26
  304. package/dist/components/stepper.d.ts +27 -26
  305. package/dist/components/stepper.js +130 -265
  306. package/dist/components/stepper.js.map +1 -1
  307. package/dist/components/switch.cjs +21 -32
  308. package/dist/components/switch.cjs.map +1 -1
  309. package/dist/components/switch.d.cts +7 -6
  310. package/dist/components/switch.d.ts +7 -6
  311. package/dist/components/switch.js +19 -31
  312. package/dist/components/switch.js.map +1 -1
  313. package/dist/components/table.cjs +58 -106
  314. package/dist/components/table.cjs.map +1 -1
  315. package/dist/components/table.d.cts +17 -16
  316. package/dist/components/table.d.ts +17 -16
  317. package/dist/components/table.js +55 -104
  318. package/dist/components/table.js.map +1 -1
  319. package/dist/components/tabs.cjs +31 -35
  320. package/dist/components/tabs.cjs.map +1 -1
  321. package/dist/components/tabs.d.cts +9 -8
  322. package/dist/components/tabs.d.ts +9 -8
  323. package/dist/components/tabs.js +29 -34
  324. package/dist/components/tabs.js.map +1 -1
  325. package/dist/components/tags.cjs +114 -433
  326. package/dist/components/tags.cjs.map +1 -1
  327. package/dist/components/tags.d.cts +24 -28
  328. package/dist/components/tags.d.ts +24 -28
  329. package/dist/components/tags.js +114 -413
  330. package/dist/components/tags.js.map +1 -1
  331. package/dist/components/textarea.cjs +27 -49
  332. package/dist/components/textarea.cjs.map +1 -1
  333. package/dist/components/textarea.d.cts +8 -7
  334. package/dist/components/textarea.d.ts +8 -7
  335. package/dist/components/textarea.js +27 -48
  336. package/dist/components/textarea.js.map +1 -1
  337. package/dist/components/toast/index.cjs +9 -612
  338. package/dist/components/toast/index.d.cts +2 -52
  339. package/dist/components/toast/index.d.ts +2 -52
  340. package/dist/components/toast/index.js +3 -586
  341. package/dist/components/tooltip.cjs +47 -72
  342. package/dist/components/tooltip.cjs.map +1 -1
  343. package/dist/components/tooltip.d.cts +2 -28
  344. package/dist/components/tooltip.d.ts +2 -28
  345. package/dist/components/tooltip.js +45 -51
  346. package/dist/components/tooltip.js.map +1 -1
  347. package/dist/components/unlink-button.cjs +19 -192
  348. package/dist/components/unlink-button.cjs.map +1 -1
  349. package/dist/components/unlink-button.d.cts +11 -11
  350. package/dist/components/unlink-button.d.ts +11 -11
  351. package/dist/components/unlink-button.js +18 -170
  352. package/dist/components/unlink-button.js.map +1 -1
  353. package/dist/form-DgRTv7O7.d.ts +54 -0
  354. package/dist/form-DoZEWSzb.d.cts +54 -0
  355. package/dist/index-CjA4CENl.d.cts +684 -0
  356. package/dist/index-CjA4CENl.d.ts +684 -0
  357. package/dist/index-UnM04j0t.d.cts +58 -0
  358. package/dist/index-UnM04j0t.d.ts +58 -0
  359. package/dist/index.cjs +408 -8697
  360. package/dist/index.d.cts +224 -2136
  361. package/dist/index.d.ts +224 -2136
  362. package/dist/index.js +65 -8350
  363. package/dist/input-CBrCuMH8.d.cts +11 -0
  364. package/dist/input-CBrCuMH8.d.ts +11 -0
  365. package/dist/motion-config-COCFHq1L.cjs +271 -0
  366. package/dist/motion-config-COCFHq1L.cjs.map +1 -0
  367. package/dist/motion-config-COsZ6azM.js +241 -0
  368. package/dist/motion-config-COsZ6azM.js.map +1 -0
  369. package/dist/record-picker-BbxngCeV.js +162 -0
  370. package/dist/record-picker-BbxngCeV.js.map +1 -0
  371. package/dist/record-picker-Bz4FApxD.cjs +167 -0
  372. package/dist/record-picker-Bz4FApxD.cjs.map +1 -0
  373. package/dist/rolldown-runtime-D_qnwXdH.cjs +35 -0
  374. package/dist/separator-BQEsr0Rc.d.cts +11 -0
  375. package/dist/separator-BQEsr0Rc.d.ts +11 -0
  376. package/dist/sheet-BLHnhLRH.js +425 -0
  377. package/dist/sheet-BLHnhLRH.js.map +1 -0
  378. package/dist/sheet-BdA0rfIz.cjs +515 -0
  379. package/dist/sheet-BdA0rfIz.cjs.map +1 -0
  380. package/dist/sidebar-CPy_fibW.cjs +608 -0
  381. package/dist/sidebar-CPy_fibW.cjs.map +1 -0
  382. package/dist/sidebar-Cfax0g0_.js +463 -0
  383. package/dist/sidebar-Cfax0g0_.js.map +1 -0
  384. package/dist/slot-C-jEfihz.cjs +122 -0
  385. package/dist/slot-C-jEfihz.cjs.map +1 -0
  386. package/dist/slot-EL8zfLG0.js +97 -0
  387. package/dist/slot-EL8zfLG0.js.map +1 -0
  388. package/dist/stack-DKdvlOM6.cjs +1771 -0
  389. package/dist/stack-DKdvlOM6.cjs.map +1 -0
  390. package/dist/stack-jMdxDrex.js +1531 -0
  391. package/dist/stack-jMdxDrex.js.map +1 -0
  392. package/dist/toast-D6MqijT2.cjs +316 -0
  393. package/dist/toast-D6MqijT2.cjs.map +1 -0
  394. package/dist/toast-D_BOLzm3.js +287 -0
  395. package/dist/toast-D_BOLzm3.js.map +1 -0
  396. package/dist/tooltip-CTRQoN1A.d.cts +29 -0
  397. package/dist/tooltip-CTRQoN1A.d.ts +29 -0
  398. package/dist/utils-BkMLyah9.js +12 -0
  399. package/dist/utils-BkMLyah9.js.map +1 -0
  400. package/dist/utils-CzTQ3-VI.cjs +17 -0
  401. package/dist/utils-CzTQ3-VI.cjs.map +1 -0
  402. package/package.json +5 -5
  403. package/dist/components/record-picker.cjs.map +0 -1
  404. package/dist/components/record-picker.js.map +0 -1
  405. package/dist/components/sheet.cjs.map +0 -1
  406. package/dist/components/sheet.js.map +0 -1
  407. package/dist/components/sidebar.cjs.map +0 -1
  408. package/dist/components/sidebar.js.map +0 -1
  409. package/dist/components/stack/index.cjs.map +0 -1
  410. package/dist/components/stack/index.js.map +0 -1
  411. package/dist/components/toast/index.cjs.map +0 -1
  412. package/dist/components/toast/index.js.map +0 -1
  413. package/dist/index.cjs.map +0 -1
  414. package/dist/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts","../../src/components/switch.tsx"],"names":["twMerge","clsx","jsx","SwitchPrimitive"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACIA,SAAS,MAAA,CAAO,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgB;AACrD,EAAA,uBACCC,cAAA;AAAA,IAACC,cAAA,CAAgB,IAAA;AAAA,IAAhB;AAAA,MACA,WAAA,EAAU,QAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oHAAA,CAAA;AAAA,QAQA;AAAA,OACD;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAAD,cAAA;AAAA,QAACC,cAAA,CAAgB,KAAA;AAAA,QAAhB;AAAA,UACA,WAAA,EAAU,cAAA;AAAA,UACV,SAAA,EAAW,EAAA;AAAA,YACV,CAAA;AAAA;AAAA,+EAAA;AAAA;AAGD;AAAA;AACD;AAAA,GACD;AAEF","file":"switch.cjs","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport * as React from 'react';\nimport { Switch as SwitchPrimitive } from '@base-ui/react/switch';\n\nimport { cn } from '../lib/utils';\n\ntype SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root>;\n\nfunction Switch({ className, ...props }: SwitchProps) {\n\treturn (\n\t\t<SwitchPrimitive.Root\n\t\t\tdata-slot=\"switch\"\n\t\t\tclassName={cn(\n\t\t\t\t`peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none\n\t\t\t\t\tbefore:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:h-[1.15rem]\n\t\t\t\t\tbefore:w-8 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border\n\t\t\t\t\tbefore:border-transparent before:bg-input before:shadow-xs before:transition-[background-color,box-shadow]\n\t\t\t\t\tdata-[checked]:before:bg-primary dark:data-[unchecked]:before:bg-input/80\n\t\t\t\t\tfocus-visible:before:border-ring focus-visible:before:ring-[3px] focus-visible:before:ring-ring/50\n\t\t\t\t\ttransition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96]\n\t\t\t\t\tmotion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SwitchPrimitive.Thumb\n\t\t\t\tdata-slot=\"switch-thumb\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground\n\t\t\t\t\tpointer-events-none absolute left-[calc(50%-1rem)] top-1/2 block size-4 -translate-y-1/2 rounded-full ring-0 transition-transform\n\t\t\t\t\tdata-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`,\n\t\t\t\t)}\n\t\t\t/>\n\t\t</SwitchPrimitive.Root>\n\t);\n}\n\nexport { Switch };\nexport type { SwitchProps };\n"]}
1
+ {"version":3,"file":"switch.cjs","names":["SwitchPrimitive","cn"],"sources":["../../src/components/switch.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Switch as SwitchPrimitive } from '@base-ui/react/switch';\n\nimport { cn } from '../lib/utils';\n\ntype SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root>;\n\nfunction Switch({ className, ...props }: SwitchProps) {\n\treturn (\n\t\t<SwitchPrimitive.Root\n\t\t\tdata-slot=\"switch\"\n\t\t\tclassName={cn(\n\t\t\t\t`peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none\n\t\t\t\t\tbefore:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:h-[1.15rem]\n\t\t\t\t\tbefore:w-8 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border\n\t\t\t\t\tbefore:border-transparent before:bg-input before:shadow-xs before:transition-[background-color,box-shadow]\n\t\t\t\t\tdata-[checked]:before:bg-primary dark:data-[unchecked]:before:bg-input/80\n\t\t\t\t\tfocus-visible:before:border-ring focus-visible:before:ring-[3px] focus-visible:before:ring-ring/50\n\t\t\t\t\ttransition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96]\n\t\t\t\t\tmotion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SwitchPrimitive.Thumb\n\t\t\t\tdata-slot=\"switch-thumb\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground\n\t\t\t\t\tpointer-events-none absolute left-[calc(50%-1rem)] top-1/2 block size-4 -translate-y-1/2 rounded-full ring-0 transition-transform\n\t\t\t\t\tdata-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`,\n\t\t\t\t)}\n\t\t\t/>\n\t\t</SwitchPrimitive.Root>\n\t);\n}\n\nexport { Switch };\nexport type { SwitchProps };\n"],"mappings":";;;;;;;;;;;AASA,SAAS,OAAO,EAAE,WAAW,GAAG,SAAsB;CACrD,OACC,2CAACA,6BAAgB,MAAjB;EACC,aAAU;EACV,WAAWC,iBACV;;;;;;;uHAQA,SACD;EACA,GAAI;YAEJ,2CAACD,6BAAgB,OAAjB;GACC,aAAU;GACV,WAAWC,iBACV;;gFAGD;EACA;CACoB;AAExB"}
@@ -1,7 +1,8 @@
1
- import * as React from 'react';
2
- import { Switch as Switch$1 } from '@base-ui/react/switch';
3
-
4
- type SwitchProps = React.ComponentProps<typeof Switch$1.Root>;
5
- declare function Switch({ className, ...props }: SwitchProps): React.JSX.Element;
6
-
1
+ import * as React$1 from "react";
2
+ import { Switch as Switch$1 } from "@base-ui/react/switch";
3
+ //#region src/components/switch.d.ts
4
+ type SwitchProps = React$1.ComponentProps<typeof Switch$1.Root>;
5
+ declare function Switch({ className, ...props }: SwitchProps): React$1.JSX.Element;
6
+ //#endregion
7
7
  export { Switch, type SwitchProps };
8
+ //# sourceMappingURL=switch.d.cts.map
@@ -1,7 +1,8 @@
1
- import * as React from 'react';
2
- import { Switch as Switch$1 } from '@base-ui/react/switch';
3
-
4
- type SwitchProps = React.ComponentProps<typeof Switch$1.Root>;
5
- declare function Switch({ className, ...props }: SwitchProps): React.JSX.Element;
6
-
1
+ import * as React$1 from "react";
2
+ import { Switch as Switch$1 } from "@base-ui/react/switch";
3
+ //#region src/components/switch.d.ts
4
+ type SwitchProps = React$1.ComponentProps<typeof Switch$1.Root>;
5
+ declare function Switch({ className, ...props }: SwitchProps): React$1.JSX.Element;
6
+ //#endregion
7
7
  export { Switch, type SwitchProps };
8
+ //# sourceMappingURL=switch.d.ts.map
@@ -1,44 +1,32 @@
1
- "use client";
2
- import { Switch as Switch$1 } from '@base-ui/react/switch';
3
- import { clsx } from 'clsx';
4
- import { twMerge } from 'tailwind-merge';
5
- import { jsx } from 'react/jsx-runtime';
1
+ 'use client';
6
2
 
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
3
+ import { t as cn } from "../utils-BkMLyah9.js";
4
+ import "react";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { Switch as Switch$1 } from "@base-ui/react/switch";
7
+
8
+ //#region src/components/switch.tsx
10
9
  function Switch({ className, ...props }) {
11
- return /* @__PURE__ */ jsx(
12
- Switch$1.Root,
13
- {
14
- "data-slot": "switch",
15
- className: cn(
16
- `peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none
10
+ return /* @__PURE__ */ jsx(Switch$1.Root, {
11
+ "data-slot": "switch",
12
+ className: cn(`peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none
17
13
  before:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:h-[1.15rem]
18
14
  before:w-8 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border
19
15
  before:border-transparent before:bg-input before:shadow-xs before:transition-[background-color,box-shadow]
20
16
  data-[checked]:before:bg-primary dark:data-[unchecked]:before:bg-input/80
21
17
  focus-visible:before:border-ring focus-visible:before:ring-[3px] focus-visible:before:ring-ring/50
22
18
  transition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96]
23
- motion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,
24
- className
25
- ),
26
- ...props,
27
- children: /* @__PURE__ */ jsx(
28
- Switch$1.Thumb,
29
- {
30
- "data-slot": "switch-thumb",
31
- className: cn(
32
- `bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground
19
+ motion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`, className),
20
+ ...props,
21
+ children: /* @__PURE__ */ jsx(Switch$1.Thumb, {
22
+ "data-slot": "switch-thumb",
23
+ className: cn(`bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground
33
24
  pointer-events-none absolute left-[calc(50%-1rem)] top-1/2 block size-4 -translate-y-1/2 rounded-full ring-0 transition-transform
34
- data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`
35
- )
36
- }
37
- )
38
- }
39
- );
25
+ data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`)
26
+ })
27
+ });
40
28
  }
41
29
 
30
+ //#endregion
42
31
  export { Switch };
43
- //# sourceMappingURL=switch.js.map
44
32
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts","../../src/components/switch.tsx"],"names":["SwitchPrimitive"],"mappings":";;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACIA,SAAS,MAAA,CAAO,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgB;AACrD,EAAA,uBACC,GAAA;AAAA,IAACA,QAAA,CAAgB,IAAA;AAAA,IAAhB;AAAA,MACA,WAAA,EAAU,QAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oHAAA,CAAA;AAAA,QAQA;AAAA,OACD;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAACA,QAAA,CAAgB,KAAA;AAAA,QAAhB;AAAA,UACA,WAAA,EAAU,cAAA;AAAA,UACV,SAAA,EAAW,EAAA;AAAA,YACV,CAAA;AAAA;AAAA,+EAAA;AAAA;AAGD;AAAA;AACD;AAAA,GACD;AAEF","file":"switch.js","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","'use client';\n\nimport * as React from 'react';\nimport { Switch as SwitchPrimitive } from '@base-ui/react/switch';\n\nimport { cn } from '../lib/utils';\n\ntype SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root>;\n\nfunction Switch({ className, ...props }: SwitchProps) {\n\treturn (\n\t\t<SwitchPrimitive.Root\n\t\t\tdata-slot=\"switch\"\n\t\t\tclassName={cn(\n\t\t\t\t`peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none\n\t\t\t\t\tbefore:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:h-[1.15rem]\n\t\t\t\t\tbefore:w-8 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border\n\t\t\t\t\tbefore:border-transparent before:bg-input before:shadow-xs before:transition-[background-color,box-shadow]\n\t\t\t\t\tdata-[checked]:before:bg-primary dark:data-[unchecked]:before:bg-input/80\n\t\t\t\t\tfocus-visible:before:border-ring focus-visible:before:ring-[3px] focus-visible:before:ring-ring/50\n\t\t\t\t\ttransition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96]\n\t\t\t\t\tmotion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SwitchPrimitive.Thumb\n\t\t\t\tdata-slot=\"switch-thumb\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground\n\t\t\t\t\tpointer-events-none absolute left-[calc(50%-1rem)] top-1/2 block size-4 -translate-y-1/2 rounded-full ring-0 transition-transform\n\t\t\t\t\tdata-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`,\n\t\t\t\t)}\n\t\t\t/>\n\t\t</SwitchPrimitive.Root>\n\t);\n}\n\nexport { Switch };\nexport type { SwitchProps };\n"]}
1
+ {"version":3,"file":"switch.js","names":["SwitchPrimitive"],"sources":["../../src/components/switch.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Switch as SwitchPrimitive } from '@base-ui/react/switch';\n\nimport { cn } from '../lib/utils';\n\ntype SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root>;\n\nfunction Switch({ className, ...props }: SwitchProps) {\n\treturn (\n\t\t<SwitchPrimitive.Root\n\t\t\tdata-slot=\"switch\"\n\t\t\tclassName={cn(\n\t\t\t\t`peer relative inline-flex h-10 w-11 shrink-0 items-center justify-center outline-none\n\t\t\t\t\tbefore:pointer-events-none before:absolute before:left-1/2 before:top-1/2 before:h-[1.15rem]\n\t\t\t\t\tbefore:w-8 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:border\n\t\t\t\t\tbefore:border-transparent before:bg-input before:shadow-xs before:transition-[background-color,box-shadow]\n\t\t\t\t\tdata-[checked]:before:bg-primary dark:data-[unchecked]:before:bg-input/80\n\t\t\t\t\tfocus-visible:before:border-ring focus-visible:before:ring-[3px] focus-visible:before:ring-ring/50\n\t\t\t\t\ttransition-transform duration-150 ease-out motion-safe:active:not-data-disabled:scale-[0.96]\n\t\t\t\t\tmotion-reduce:transition-none pointer-coarse:h-11 data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t<SwitchPrimitive.Thumb\n\t\t\t\tdata-slot=\"switch-thumb\"\n\t\t\t\tclassName={cn(\n\t\t\t\t\t`bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground\n\t\t\t\t\tpointer-events-none absolute left-[calc(50%-1rem)] top-1/2 block size-4 -translate-y-1/2 rounded-full ring-0 transition-transform\n\t\t\t\t\tdata-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0`,\n\t\t\t\t)}\n\t\t\t/>\n\t\t</SwitchPrimitive.Root>\n\t);\n}\n\nexport { Switch };\nexport type { SwitchProps };\n"],"mappings":";;;;;;;;AASA,SAAS,OAAO,EAAE,WAAW,GAAG,SAAsB;CACrD,OACC,oBAACA,SAAgB,MAAjB;EACC,aAAU;EACV,WAAW,GACV;;;;;;;uHAQA,SACD;EACA,GAAI;YAEJ,oBAACA,SAAgB,OAAjB;GACC,aAAU;GACV,WAAW,GACV;;gFAGD;EACA;CACoB;AAExB"}
@@ -1,126 +1,79 @@
1
- "use client";
2
- 'use strict';
1
+ 'use client';
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
3
+ const require_rolldown_runtime = require('../rolldown-runtime-D_qnwXdH.cjs');
4
+ const require_utils = require('../utils-CzTQ3-VI.cjs');
5
+ let react = require("react");
6
+ react = require_rolldown_runtime.__toESM(react, 1);
7
+ let react_jsx_runtime = require("react/jsx-runtime");
3
8
 
4
- var clsx = require('clsx');
5
- var tailwindMerge = require('tailwind-merge');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- // src/lib/utils.ts
9
- function cn(...inputs) {
10
- return tailwindMerge.twMerge(clsx.clsx(inputs));
11
- }
9
+ //#region src/components/table.tsx
10
+ /**
11
+ * Semantic table primitives. `Table` wraps the native element in an overflow
12
+ * container so wide content scrolls without breaking page layout.
13
+ */
12
14
  function Table({ className, containerClassName, containerProps, ...props }) {
13
- return /* @__PURE__ */ jsxRuntime.jsx(
14
- "div",
15
- {
16
- "data-slot": "table-container",
17
- ...containerProps,
18
- className: cn("relative w-full overflow-x-auto", containerClassName),
19
- children: /* @__PURE__ */ jsxRuntime.jsx(
20
- "table",
21
- {
22
- "data-slot": "table",
23
- className: cn("w-full caption-bottom text-sm", className),
24
- ...props
25
- }
26
- )
27
- }
28
- );
15
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
16
+ "data-slot": "table-container",
17
+ ...containerProps,
18
+ className: require_utils.cn("relative w-full overflow-x-auto", containerClassName),
19
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
20
+ "data-slot": "table",
21
+ className: require_utils.cn("w-full caption-bottom text-sm", className),
22
+ ...props
23
+ })
24
+ });
29
25
  }
30
26
  function TableHeader({ className, ...props }) {
31
- return /* @__PURE__ */ jsxRuntime.jsx(
32
- "thead",
33
- {
34
- "data-slot": "table-header",
35
- className: cn(
36
- // Quiet band under headers; kill row hover on thead
37
- "bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent",
38
- className
39
- ),
40
- ...props
41
- }
42
- );
27
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
28
+ "data-slot": "table-header",
29
+ className: require_utils.cn("bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent", className),
30
+ ...props
31
+ });
43
32
  }
44
33
  function TableBody({ className, ...props }) {
45
- return /* @__PURE__ */ jsxRuntime.jsx(
46
- "tbody",
47
- {
48
- "data-slot": "table-body",
49
- className: cn("[&_tr:last-child]:border-0", className),
50
- ...props
51
- }
52
- );
34
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
35
+ "data-slot": "table-body",
36
+ className: require_utils.cn("[&_tr:last-child]:border-0", className),
37
+ ...props
38
+ });
53
39
  }
54
40
  function TableFooter({ className, ...props }) {
55
- return /* @__PURE__ */ jsxRuntime.jsx(
56
- "tfoot",
57
- {
58
- "data-slot": "table-footer",
59
- className: cn(
60
- "border-t border-border/60 bg-muted/30 font-medium",
61
- "[&>tr]:border-b-0 [&>tr]:hover:bg-transparent",
62
- className
63
- ),
64
- ...props
65
- }
66
- );
41
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
42
+ "data-slot": "table-footer",
43
+ className: require_utils.cn("border-t border-border/60 bg-muted/30 font-medium", "[&>tr]:border-b-0 [&>tr]:hover:bg-transparent", className),
44
+ ...props
45
+ });
67
46
  }
68
47
  function TableRow({ className, ...props }) {
69
- return /* @__PURE__ */ jsxRuntime.jsx(
70
- "tr",
71
- {
72
- "data-slot": "table-row",
73
- className: cn(
74
- "border-b border-border/60",
75
- // Specific properties only — interruptible hover/selection
76
- "transition-colors duration-150 ease-out",
77
- "hover:bg-muted/40 data-[state=selected]:bg-muted",
78
- className
79
- ),
80
- ...props
81
- }
82
- );
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
49
+ "data-slot": "table-row",
50
+ className: require_utils.cn("border-b border-border/60", "transition-colors duration-150 ease-out", "hover:bg-muted/40 data-[state=selected]:bg-muted", className),
51
+ ...props
52
+ });
83
53
  }
84
54
  function TableHead({ className, ...props }) {
85
- return /* @__PURE__ */ jsxRuntime.jsx(
86
- "th",
87
- {
88
- "data-slot": "table-head",
89
- className: cn(
90
- "h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground",
91
- "whitespace-nowrap",
92
- "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",
93
- className
94
- ),
95
- ...props
96
- }
97
- );
55
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
56
+ "data-slot": "table-head",
57
+ className: require_utils.cn("h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground", "whitespace-nowrap", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px", className),
58
+ ...props
59
+ });
98
60
  }
99
61
  function TableCell({ className, ...props }) {
100
- return /* @__PURE__ */ jsxRuntime.jsx(
101
- "td",
102
- {
103
- "data-slot": "table-cell",
104
- className: cn(
105
- "px-4 py-3 align-middle whitespace-nowrap",
106
- "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",
107
- className
108
- ),
109
- ...props
110
- }
111
- );
62
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
63
+ "data-slot": "table-cell",
64
+ className: require_utils.cn("px-4 py-3 align-middle whitespace-nowrap", "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px", className),
65
+ ...props
66
+ });
112
67
  }
113
68
  function TableCaption({ className, ...props }) {
114
- return /* @__PURE__ */ jsxRuntime.jsx(
115
- "caption",
116
- {
117
- "data-slot": "table-caption",
118
- className: cn("mt-3 text-pretty text-sm text-muted-foreground", className),
119
- ...props
120
- }
121
- );
69
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
70
+ "data-slot": "table-caption",
71
+ className: require_utils.cn("mt-3 text-pretty text-sm text-muted-foreground", className),
72
+ ...props
73
+ });
122
74
  }
123
75
 
76
+ //#endregion
124
77
  exports.Table = Table;
125
78
  exports.TableBody = TableBody;
126
79
  exports.TableCaption = TableCaption;
@@ -129,5 +82,4 @@ exports.TableFooter = TableFooter;
129
82
  exports.TableHead = TableHead;
130
83
  exports.TableHeader = TableHeader;
131
84
  exports.TableRow = TableRow;
132
- //# sourceMappingURL=table.cjs.map
133
85
  //# sourceMappingURL=table.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utils.ts","../../src/components/table.tsx"],"names":["twMerge","clsx","jsx"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACUA,SAAS,MAAM,EAAE,SAAA,EAAW,oBAAoB,cAAA,EAAgB,GAAG,OAAM,EAAe;AACvF,EAAA,uBACCC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,iBAAA;AAAA,MACT,GAAG,cAAA;AAAA,MACJ,SAAA,EAAW,EAAA,CAAG,iCAAA,EAAmC,kBAAkB,CAAA;AAAA,MAEnE,QAAA,kBAAAA,cAAA;AAAA,QAAC,OAAA;AAAA,QAAA;AAAA,UACA,WAAA,EAAU,OAAA;AAAA,UACV,SAAA,EAAW,EAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,UACvD,GAAG;AAAA;AAAA;AACL;AAAA,GACD;AAEF;AAEA,SAAS,WAAA,CAAY,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC5E,EAAA,uBACCA,cAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,cAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA;AAAA,QAEV,qGAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,SAAA,CAAU,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC1E,EAAA,uBACCA,cAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,YAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,4BAAA,EAA8B,SAAS,CAAA;AAAA,MACpD,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,WAAA,CAAY,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC5E,EAAA,uBACCA,cAAA;AAAA,IAAC,OAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,cAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,mDAAA;AAAA,QACA,+CAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,GAAG,OAAM,EAA+B;AACtE,EAAA,uBACCA,cAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,WAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,2BAAA;AAAA;AAAA,QAEA,yCAAA;AAAA,QACA,kDAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,SAAA,CAAU,EAAE,SAAA,EAAW,GAAG,OAAM,EAA+B;AACvE,EAAA,uBACCA,cAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,YAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,0FAAA;AAAA,QACA,mBAAA;AAAA,QACA,gGAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,SAAA,CAAU,EAAE,SAAA,EAAW,GAAG,OAAM,EAA+B;AACvE,EAAA,uBACCA,cAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,YAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACV,0CAAA;AAAA,QACA,kEAAA;AAAA,QACA;AAAA,OACD;AAAA,MACC,GAAG;AAAA;AAAA,GACL;AAEF;AAEA,SAAS,YAAA,CAAa,EAAE,SAAA,EAAW,GAAG,OAAM,EAAoC;AAC/E,EAAA,uBACCA,cAAA;AAAA,IAAC,SAAA;AAAA,IAAA;AAAA,MACA,WAAA,EAAU,eAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,gDAAA,EAAkD,SAAS,CAAA;AAAA,MACxE,GAAG;AAAA;AAAA,GACL;AAEF","file":"table.cjs","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import * as React from 'react';\n\nimport { cn } from '../lib/utils';\n\ntype TableProps = React.ComponentProps<'table'> & {\n\t/** Classes for the horizontal scroll wrapper around the table */\n\tcontainerClassName?: string;\n\t/** Extra props for the scroll wrapper (e.g. ref, data attributes) */\n\tcontainerProps?: Omit<React.ComponentProps<'div'>, 'className' | 'children'>;\n};\n\n/**\n * Semantic table primitives. `Table` wraps the native element in an overflow\n * container so wide content scrolls without breaking page layout.\n */\nfunction Table({ className, containerClassName, containerProps, ...props }: TableProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"table-container\"\n\t\t\t{...containerProps}\n\t\t\tclassName={cn('relative w-full overflow-x-auto', containerClassName)}\n\t\t>\n\t\t\t<table\n\t\t\t\tdata-slot=\"table\"\n\t\t\t\tclassName={cn('w-full caption-bottom text-sm', className)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {\n\treturn (\n\t\t<thead\n\t\t\tdata-slot=\"table-header\"\n\t\t\tclassName={cn(\n\t\t\t\t// Quiet band under headers; kill row hover on thead\n\t\t\t\t'bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {\n\treturn (\n\t\t<tbody\n\t\t\tdata-slot=\"table-body\"\n\t\t\tclassName={cn('[&_tr:last-child]:border-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {\n\treturn (\n\t\t<tfoot\n\t\t\tdata-slot=\"table-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t'border-t border-border/60 bg-muted/30 font-medium',\n\t\t\t\t'[&>tr]:border-b-0 [&>tr]:hover:bg-transparent',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<'tr'>) {\n\treturn (\n\t\t<tr\n\t\t\tdata-slot=\"table-row\"\n\t\t\tclassName={cn(\n\t\t\t\t'border-b border-border/60',\n\t\t\t\t// Specific properties only — interruptible hover/selection\n\t\t\t\t'transition-colors duration-150 ease-out',\n\t\t\t\t'hover:bg-muted/40 data-[state=selected]:bg-muted',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<'th'>) {\n\treturn (\n\t\t<th\n\t\t\tdata-slot=\"table-head\"\n\t\t\tclassName={cn(\n\t\t\t\t'h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground',\n\t\t\t\t'whitespace-nowrap',\n\t\t\t\t'[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<'td'>) {\n\treturn (\n\t\t<td\n\t\t\tdata-slot=\"table-cell\"\n\t\t\tclassName={cn(\n\t\t\t\t'px-4 py-3 align-middle whitespace-nowrap',\n\t\t\t\t'[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableCaption({ className, ...props }: React.ComponentProps<'caption'>) {\n\treturn (\n\t\t<caption\n\t\t\tdata-slot=\"table-caption\"\n\t\t\tclassName={cn('mt-3 text-pretty text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tTable,\n\tTableBody,\n\tTableCaption,\n\tTableCell,\n\tTableFooter,\n\tTableHead,\n\tTableHeader,\n\tTableRow,\n};\nexport type { TableProps };\n"]}
1
+ {"version":3,"file":"table.cjs","names":["cn"],"sources":["../../src/components/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '../lib/utils';\n\ntype TableProps = React.ComponentProps<'table'> & {\n\t/** Classes for the horizontal scroll wrapper around the table */\n\tcontainerClassName?: string;\n\t/** Extra props for the scroll wrapper (e.g. ref, data attributes) */\n\tcontainerProps?: Omit<React.ComponentProps<'div'>, 'className' | 'children'>;\n};\n\n/**\n * Semantic table primitives. `Table` wraps the native element in an overflow\n * container so wide content scrolls without breaking page layout.\n */\nfunction Table({ className, containerClassName, containerProps, ...props }: TableProps) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"table-container\"\n\t\t\t{...containerProps}\n\t\t\tclassName={cn('relative w-full overflow-x-auto', containerClassName)}\n\t\t>\n\t\t\t<table\n\t\t\t\tdata-slot=\"table\"\n\t\t\t\tclassName={cn('w-full caption-bottom text-sm', className)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<'thead'>) {\n\treturn (\n\t\t<thead\n\t\t\tdata-slot=\"table-header\"\n\t\t\tclassName={cn(\n\t\t\t\t// Quiet band under headers; kill row hover on thead\n\t\t\t\t'bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<'tbody'>) {\n\treturn (\n\t\t<tbody\n\t\t\tdata-slot=\"table-body\"\n\t\t\tclassName={cn('[&_tr:last-child]:border-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {\n\treturn (\n\t\t<tfoot\n\t\t\tdata-slot=\"table-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t'border-t border-border/60 bg-muted/30 font-medium',\n\t\t\t\t'[&>tr]:border-b-0 [&>tr]:hover:bg-transparent',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<'tr'>) {\n\treturn (\n\t\t<tr\n\t\t\tdata-slot=\"table-row\"\n\t\t\tclassName={cn(\n\t\t\t\t'border-b border-border/60',\n\t\t\t\t// Specific properties only — interruptible hover/selection\n\t\t\t\t'transition-colors duration-150 ease-out',\n\t\t\t\t'hover:bg-muted/40 data-[state=selected]:bg-muted',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<'th'>) {\n\treturn (\n\t\t<th\n\t\t\tdata-slot=\"table-head\"\n\t\t\tclassName={cn(\n\t\t\t\t'h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground',\n\t\t\t\t'whitespace-nowrap',\n\t\t\t\t'[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<'td'>) {\n\treturn (\n\t\t<td\n\t\t\tdata-slot=\"table-cell\"\n\t\t\tclassName={cn(\n\t\t\t\t'px-4 py-3 align-middle whitespace-nowrap',\n\t\t\t\t'[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nfunction TableCaption({ className, ...props }: React.ComponentProps<'caption'>) {\n\treturn (\n\t\t<caption\n\t\t\tdata-slot=\"table-caption\"\n\t\t\tclassName={cn('mt-3 text-pretty text-sm text-muted-foreground', className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport {\n\tTable,\n\tTableBody,\n\tTableCaption,\n\tTableCell,\n\tTableFooter,\n\tTableHead,\n\tTableHeader,\n\tTableRow,\n};\nexport type { TableProps };\n"],"mappings":";;;;;;;;;;;;;AAeA,SAAS,MAAM,EAAE,WAAW,oBAAoB,gBAAgB,GAAG,SAAqB;CACvF,OACC,2CAAC,OAAD;EACC,aAAU;EACV,GAAI;EACJ,WAAWA,iBAAG,mCAAmC,kBAAkB;YAEnE,2CAAC,SAAD;GACC,aAAU;GACV,WAAWA,iBAAG,iCAAiC,SAAS;GACxD,GAAI;EACJ;CACG;AAEP;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC5E,OACC,2CAAC,SAAD;EACC,aAAU;EACV,WAAWA,iBAEV,uGACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAwC;CAC1E,OACC,2CAAC,SAAD;EACC,aAAU;EACV,WAAWA,iBAAG,8BAA8B,SAAS;EACrD,GAAI;CACJ;AAEH;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,SAAwC;CAC5E,OACC,2CAAC,SAAD;EACC,aAAU;EACV,WAAWA,iBACV,qDACA,iDACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,SAAqC;CACtE,OACC,2CAAC,MAAD;EACC,aAAU;EACV,WAAWA,iBACV,6BAEA,2CACA,oDACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACvE,OACC,2CAAC,MAAD;EACC,aAAU;EACV,WAAWA,iBACV,4FACA,qBACA,kGACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,SAAqC;CACvE,OACC,2CAAC,MAAD;EACC,aAAU;EACV,WAAWA,iBACV,4CACA,oEACA,SACD;EACA,GAAI;CACJ;AAEH;AAEA,SAAS,aAAa,EAAE,WAAW,GAAG,SAA0C;CAC/E,OACC,2CAAC,WAAD;EACC,aAAU;EACV,WAAWA,iBAAG,kDAAkD,SAAS;EACzE,GAAI;CACJ;AAEH"}
@@ -1,22 +1,23 @@
1
- import * as React from 'react';
2
-
3
- type TableProps = React.ComponentProps<'table'> & {
4
- /** Classes for the horizontal scroll wrapper around the table */
5
- containerClassName?: string;
6
- /** Extra props for the scroll wrapper (e.g. ref, data attributes) */
7
- containerProps?: Omit<React.ComponentProps<'div'>, 'className' | 'children'>;
1
+ import * as React$1 from "react";
2
+ //#region src/components/table.d.ts
3
+ type TableProps = React$1.ComponentProps<'table'> & {
4
+ /** Classes for the horizontal scroll wrapper around the table */
5
+ containerClassName?: string;
6
+ /** Extra props for the scroll wrapper (e.g. ref, data attributes) */
7
+ containerProps?: Omit<React$1.ComponentProps<'div'>, 'className' | 'children'>;
8
8
  };
9
9
  /**
10
10
  * Semantic table primitives. `Table` wraps the native element in an overflow
11
11
  * container so wide content scrolls without breaking page layout.
12
12
  */
13
- declare function Table({ className, containerClassName, containerProps, ...props }: TableProps): React.JSX.Element;
14
- declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
15
- declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): React.JSX.Element;
16
- declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): React.JSX.Element;
17
- declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): React.JSX.Element;
18
- declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): React.JSX.Element;
19
- declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): React.JSX.Element;
20
- declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): React.JSX.Element;
21
-
13
+ declare function Table({ className, containerClassName, containerProps, ...props }: TableProps): React$1.JSX.Element;
14
+ declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): React$1.JSX.Element;
15
+ declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): React$1.JSX.Element;
16
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): React$1.JSX.Element;
17
+ declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): React$1.JSX.Element;
18
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): React$1.JSX.Element;
19
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): React$1.JSX.Element;
20
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): React$1.JSX.Element;
21
+ //#endregion
22
22
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow };
23
+ //# sourceMappingURL=table.d.cts.map
@@ -1,22 +1,23 @@
1
- import * as React from 'react';
2
-
3
- type TableProps = React.ComponentProps<'table'> & {
4
- /** Classes for the horizontal scroll wrapper around the table */
5
- containerClassName?: string;
6
- /** Extra props for the scroll wrapper (e.g. ref, data attributes) */
7
- containerProps?: Omit<React.ComponentProps<'div'>, 'className' | 'children'>;
1
+ import * as React$1 from "react";
2
+ //#region src/components/table.d.ts
3
+ type TableProps = React$1.ComponentProps<'table'> & {
4
+ /** Classes for the horizontal scroll wrapper around the table */
5
+ containerClassName?: string;
6
+ /** Extra props for the scroll wrapper (e.g. ref, data attributes) */
7
+ containerProps?: Omit<React$1.ComponentProps<'div'>, 'className' | 'children'>;
8
8
  };
9
9
  /**
10
10
  * Semantic table primitives. `Table` wraps the native element in an overflow
11
11
  * container so wide content scrolls without breaking page layout.
12
12
  */
13
- declare function Table({ className, containerClassName, containerProps, ...props }: TableProps): React.JSX.Element;
14
- declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
15
- declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): React.JSX.Element;
16
- declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): React.JSX.Element;
17
- declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): React.JSX.Element;
18
- declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): React.JSX.Element;
19
- declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): React.JSX.Element;
20
- declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): React.JSX.Element;
21
-
13
+ declare function Table({ className, containerClassName, containerProps, ...props }: TableProps): React$1.JSX.Element;
14
+ declare function TableHeader({ className, ...props }: React$1.ComponentProps<'thead'>): React$1.JSX.Element;
15
+ declare function TableBody({ className, ...props }: React$1.ComponentProps<'tbody'>): React$1.JSX.Element;
16
+ declare function TableFooter({ className, ...props }: React$1.ComponentProps<'tfoot'>): React$1.JSX.Element;
17
+ declare function TableRow({ className, ...props }: React$1.ComponentProps<'tr'>): React$1.JSX.Element;
18
+ declare function TableHead({ className, ...props }: React$1.ComponentProps<'th'>): React$1.JSX.Element;
19
+ declare function TableCell({ className, ...props }: React$1.ComponentProps<'td'>): React$1.JSX.Element;
20
+ declare function TableCaption({ className, ...props }: React$1.ComponentProps<'caption'>): React$1.JSX.Element;
21
+ //#endregion
22
22
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow };
23
+ //# sourceMappingURL=table.d.ts.map
@@ -1,124 +1,75 @@
1
- "use client";
2
- import { clsx } from 'clsx';
3
- import { twMerge } from 'tailwind-merge';
4
- import { jsx } from 'react/jsx-runtime';
1
+ 'use client';
2
+ import { t as cn } from "../utils-BkMLyah9.js";
3
+ import "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
 
6
- // src/lib/utils.ts
7
- function cn(...inputs) {
8
- return twMerge(clsx(inputs));
9
- }
6
+ //#region src/components/table.tsx
7
+ /**
8
+ * Semantic table primitives. `Table` wraps the native element in an overflow
9
+ * container so wide content scrolls without breaking page layout.
10
+ */
10
11
  function Table({ className, containerClassName, containerProps, ...props }) {
11
- return /* @__PURE__ */ jsx(
12
- "div",
13
- {
14
- "data-slot": "table-container",
15
- ...containerProps,
16
- className: cn("relative w-full overflow-x-auto", containerClassName),
17
- children: /* @__PURE__ */ jsx(
18
- "table",
19
- {
20
- "data-slot": "table",
21
- className: cn("w-full caption-bottom text-sm", className),
22
- ...props
23
- }
24
- )
25
- }
26
- );
12
+ return /* @__PURE__ */ jsx("div", {
13
+ "data-slot": "table-container",
14
+ ...containerProps,
15
+ className: cn("relative w-full overflow-x-auto", containerClassName),
16
+ children: /* @__PURE__ */ jsx("table", {
17
+ "data-slot": "table",
18
+ className: cn("w-full caption-bottom text-sm", className),
19
+ ...props
20
+ })
21
+ });
27
22
  }
28
23
  function TableHeader({ className, ...props }) {
29
- return /* @__PURE__ */ jsx(
30
- "thead",
31
- {
32
- "data-slot": "table-header",
33
- className: cn(
34
- // Quiet band under headers; kill row hover on thead
35
- "bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent",
36
- className
37
- ),
38
- ...props
39
- }
40
- );
24
+ return /* @__PURE__ */ jsx("thead", {
25
+ "data-slot": "table-header",
26
+ className: cn("bg-muted/35 [&_tr]:border-b [&_tr]:hover:bg-transparent [&_tr]:data-[state=selected]:bg-transparent", className),
27
+ ...props
28
+ });
41
29
  }
42
30
  function TableBody({ className, ...props }) {
43
- return /* @__PURE__ */ jsx(
44
- "tbody",
45
- {
46
- "data-slot": "table-body",
47
- className: cn("[&_tr:last-child]:border-0", className),
48
- ...props
49
- }
50
- );
31
+ return /* @__PURE__ */ jsx("tbody", {
32
+ "data-slot": "table-body",
33
+ className: cn("[&_tr:last-child]:border-0", className),
34
+ ...props
35
+ });
51
36
  }
52
37
  function TableFooter({ className, ...props }) {
53
- return /* @__PURE__ */ jsx(
54
- "tfoot",
55
- {
56
- "data-slot": "table-footer",
57
- className: cn(
58
- "border-t border-border/60 bg-muted/30 font-medium",
59
- "[&>tr]:border-b-0 [&>tr]:hover:bg-transparent",
60
- className
61
- ),
62
- ...props
63
- }
64
- );
38
+ return /* @__PURE__ */ jsx("tfoot", {
39
+ "data-slot": "table-footer",
40
+ className: cn("border-t border-border/60 bg-muted/30 font-medium", "[&>tr]:border-b-0 [&>tr]:hover:bg-transparent", className),
41
+ ...props
42
+ });
65
43
  }
66
44
  function TableRow({ className, ...props }) {
67
- return /* @__PURE__ */ jsx(
68
- "tr",
69
- {
70
- "data-slot": "table-row",
71
- className: cn(
72
- "border-b border-border/60",
73
- // Specific properties only — interruptible hover/selection
74
- "transition-colors duration-150 ease-out",
75
- "hover:bg-muted/40 data-[state=selected]:bg-muted",
76
- className
77
- ),
78
- ...props
79
- }
80
- );
45
+ return /* @__PURE__ */ jsx("tr", {
46
+ "data-slot": "table-row",
47
+ className: cn("border-b border-border/60", "transition-colors duration-150 ease-out", "hover:bg-muted/40 data-[state=selected]:bg-muted", className),
48
+ ...props
49
+ });
81
50
  }
82
51
  function TableHead({ className, ...props }) {
83
- return /* @__PURE__ */ jsx(
84
- "th",
85
- {
86
- "data-slot": "table-head",
87
- className: cn(
88
- "h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground",
89
- "whitespace-nowrap",
90
- "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",
91
- className
92
- ),
93
- ...props
94
- }
95
- );
52
+ return /* @__PURE__ */ jsx("th", {
53
+ "data-slot": "table-head",
54
+ className: cn("h-11 px-4 text-left align-middle text-xs font-medium tracking-wide text-muted-foreground", "whitespace-nowrap", "[&:has([role=checkbox])]:w-px [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px", className),
55
+ ...props
56
+ });
96
57
  }
97
58
  function TableCell({ className, ...props }) {
98
- return /* @__PURE__ */ jsx(
99
- "td",
100
- {
101
- "data-slot": "table-cell",
102
- className: cn(
103
- "px-4 py-3 align-middle whitespace-nowrap",
104
- "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px",
105
- className
106
- ),
107
- ...props
108
- }
109
- );
59
+ return /* @__PURE__ */ jsx("td", {
60
+ "data-slot": "table-cell",
61
+ className: cn("px-4 py-3 align-middle whitespace-nowrap", "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-px", className),
62
+ ...props
63
+ });
110
64
  }
111
65
  function TableCaption({ className, ...props }) {
112
- return /* @__PURE__ */ jsx(
113
- "caption",
114
- {
115
- "data-slot": "table-caption",
116
- className: cn("mt-3 text-pretty text-sm text-muted-foreground", className),
117
- ...props
118
- }
119
- );
66
+ return /* @__PURE__ */ jsx("caption", {
67
+ "data-slot": "table-caption",
68
+ className: cn("mt-3 text-pretty text-sm text-muted-foreground", className),
69
+ ...props
70
+ });
120
71
  }
121
72
 
73
+ //#endregion
122
74
  export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
123
- //# sourceMappingURL=table.js.map
124
75
  //# sourceMappingURL=table.js.map