@repraze/kernelkit 0.0.0-stage → 0.1.0-alpha.0

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 (584) hide show
  1. package/README.md +41 -2
  2. package/dist/components/accordion.d.ts +13 -0
  3. package/dist/components/accordion.d.ts.map +1 -0
  4. package/dist/components/accordion.js +33 -0
  5. package/dist/components/accordion.js.map +1 -0
  6. package/dist/components/alert-dialog.d.ts +24 -0
  7. package/dist/components/alert-dialog.d.ts.map +1 -0
  8. package/dist/components/alert-dialog.js +49 -0
  9. package/dist/components/alert-dialog.js.map +1 -0
  10. package/dist/components/alert.d.ts +22 -0
  11. package/dist/components/alert.d.ts.map +1 -0
  12. package/dist/components/alert.js +61 -0
  13. package/dist/components/alert.js.map +1 -0
  14. package/dist/components/aspect-ratio.d.ts +10 -0
  15. package/dist/components/aspect-ratio.d.ts.map +1 -0
  16. package/dist/components/aspect-ratio.js +18 -0
  17. package/dist/components/aspect-ratio.js.map +1 -0
  18. package/dist/components/attachment.d.ts +27 -0
  19. package/dist/components/attachment.d.ts.map +1 -0
  20. package/dist/components/attachment.js +76 -0
  21. package/dist/components/attachment.js.map +1 -0
  22. package/dist/components/avatar.d.ts +18 -0
  23. package/dist/components/avatar.d.ts.map +1 -0
  24. package/dist/components/avatar.js +38 -0
  25. package/dist/components/avatar.js.map +1 -0
  26. package/dist/components/badge.d.ts +18 -0
  27. package/dist/components/badge.d.ts.map +1 -0
  28. package/dist/components/badge.js +49 -0
  29. package/dist/components/badge.js.map +1 -0
  30. package/dist/components/breadcrumb.d.ts +11 -0
  31. package/dist/components/breadcrumb.d.ts.map +1 -0
  32. package/dist/components/breadcrumb.js +40 -0
  33. package/dist/components/breadcrumb.js.map +1 -0
  34. package/dist/components/bubble.d.ts +22 -0
  35. package/dist/components/bubble.d.ts.map +1 -0
  36. package/dist/components/bubble.js +72 -0
  37. package/dist/components/bubble.js.map +1 -0
  38. package/dist/components/button-group.d.ts +11 -0
  39. package/dist/components/button-group.d.ts.map +1 -0
  40. package/dist/components/button-group.js +38 -0
  41. package/dist/components/button-group.js.map +1 -0
  42. package/dist/components/button.d.ts +26 -0
  43. package/dist/components/button.d.ts.map +1 -0
  44. package/dist/components/button.js +78 -0
  45. package/dist/components/button.js.map +1 -0
  46. package/dist/components/calendar.d.ts +11 -0
  47. package/dist/components/calendar.d.ts.map +1 -0
  48. package/dist/components/calendar.js +89 -0
  49. package/dist/components/calendar.js.map +1 -0
  50. package/dist/components/callout.d.ts +25 -0
  51. package/dist/components/callout.d.ts.map +1 -0
  52. package/dist/components/callout.js +40 -0
  53. package/dist/components/callout.js.map +1 -0
  54. package/dist/components/card.d.ts +43 -0
  55. package/dist/components/card.d.ts.map +1 -0
  56. package/dist/components/card.js +80 -0
  57. package/dist/components/card.js.map +1 -0
  58. package/dist/components/carousel.d.ts +31 -0
  59. package/dist/components/carousel.d.ts.map +1 -0
  60. package/dist/components/carousel.js +120 -0
  61. package/dist/components/carousel.js.map +1 -0
  62. package/dist/components/chart.d.ts +45 -0
  63. package/dist/components/chart.d.ts.map +1 -0
  64. package/dist/components/chart.js +137 -0
  65. package/dist/components/chart.js.map +1 -0
  66. package/dist/components/checkbox-group.d.ts +9 -0
  67. package/dist/components/checkbox-group.d.ts.map +1 -0
  68. package/dist/components/checkbox-group.js +14 -0
  69. package/dist/components/checkbox-group.js.map +1 -0
  70. package/dist/components/checkbox.d.ts +6 -0
  71. package/dist/components/checkbox.d.ts.map +1 -0
  72. package/dist/components/checkbox.js +27 -0
  73. package/dist/components/checkbox.js.map +1 -0
  74. package/dist/components/code-block.d.ts +29 -0
  75. package/dist/components/code-block.d.ts.map +1 -0
  76. package/dist/components/code-block.js +87 -0
  77. package/dist/components/code-block.js.map +1 -0
  78. package/dist/components/collapsible.d.ts +11 -0
  79. package/dist/components/collapsible.d.ts.map +1 -0
  80. package/dist/components/collapsible.js +21 -0
  81. package/dist/components/collapsible.js.map +1 -0
  82. package/dist/components/combobox.d.ts +26 -0
  83. package/dist/components/combobox.d.ts.map +1 -0
  84. package/dist/components/combobox.js +66 -0
  85. package/dist/components/combobox.js.map +1 -0
  86. package/dist/components/command.d.ts +25 -0
  87. package/dist/components/command.d.ts.map +1 -0
  88. package/dist/components/command.js +48 -0
  89. package/dist/components/command.js.map +1 -0
  90. package/dist/components/context-menu.d.ts +32 -0
  91. package/dist/components/context-menu.d.ts.map +1 -0
  92. package/dist/components/context-menu.js +58 -0
  93. package/dist/components/context-menu.js.map +1 -0
  94. package/dist/components/copy-button.d.ts +21 -0
  95. package/dist/components/copy-button.d.ts.map +1 -0
  96. package/dist/components/copy-button.js +34 -0
  97. package/dist/components/copy-button.js.map +1 -0
  98. package/dist/components/data-table/data-table-utils.d.ts +18 -0
  99. package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
  100. package/dist/components/data-table/data-table-utils.js +92 -0
  101. package/dist/components/data-table/data-table-utils.js.map +1 -0
  102. package/dist/components/data-table/elements/data-table-base.d.ts +24 -0
  103. package/dist/components/data-table/elements/data-table-base.d.ts.map +1 -0
  104. package/dist/components/data-table/elements/data-table-base.js +28 -0
  105. package/dist/components/data-table/elements/data-table-base.js.map +1 -0
  106. package/dist/components/data-table/elements/data-table-body.d.ts +8 -0
  107. package/dist/components/data-table/elements/data-table-body.d.ts.map +1 -0
  108. package/dist/components/data-table/elements/data-table-body.js +16 -0
  109. package/dist/components/data-table/elements/data-table-body.js.map +1 -0
  110. package/dist/components/data-table/elements/data-table-cell.d.ts +12 -0
  111. package/dist/components/data-table/elements/data-table-cell.d.ts.map +1 -0
  112. package/dist/components/data-table/elements/data-table-cell.js +23 -0
  113. package/dist/components/data-table/elements/data-table-cell.js.map +1 -0
  114. package/dist/components/data-table/elements/data-table-filter-row.d.ts +40 -0
  115. package/dist/components/data-table/elements/data-table-filter-row.d.ts.map +1 -0
  116. package/dist/components/data-table/elements/data-table-filter-row.js +117 -0
  117. package/dist/components/data-table/elements/data-table-filter-row.js.map +1 -0
  118. package/dist/components/data-table/elements/data-table-foot.d.ts +9 -0
  119. package/dist/components/data-table/elements/data-table-foot.d.ts.map +1 -0
  120. package/dist/components/data-table/elements/data-table-foot.js +11 -0
  121. package/dist/components/data-table/elements/data-table-foot.js.map +1 -0
  122. package/dist/components/data-table/elements/data-table-head.d.ts +9 -0
  123. package/dist/components/data-table/elements/data-table-head.d.ts.map +1 -0
  124. package/dist/components/data-table/elements/data-table-head.js +11 -0
  125. package/dist/components/data-table/elements/data-table-head.js.map +1 -0
  126. package/dist/components/data-table/elements/data-table-info-row.d.ts +7 -0
  127. package/dist/components/data-table/elements/data-table-info-row.d.ts.map +1 -0
  128. package/dist/components/data-table/elements/data-table-info-row.js +19 -0
  129. package/dist/components/data-table/elements/data-table-info-row.js.map +1 -0
  130. package/dist/components/data-table/elements/data-table-row.d.ts +13 -0
  131. package/dist/components/data-table/elements/data-table-row.d.ts.map +1 -0
  132. package/dist/components/data-table/elements/data-table-row.js +19 -0
  133. package/dist/components/data-table/elements/data-table-row.js.map +1 -0
  134. package/dist/components/data-table/elements/data-table-scroll.d.ts +11 -0
  135. package/dist/components/data-table/elements/data-table-scroll.d.ts.map +1 -0
  136. package/dist/components/data-table/elements/data-table-scroll.js +10 -0
  137. package/dist/components/data-table/elements/data-table-scroll.js.map +1 -0
  138. package/dist/components/data-table/elements/data-table-sort-row.d.ts +28 -0
  139. package/dist/components/data-table/elements/data-table-sort-row.d.ts.map +1 -0
  140. package/dist/components/data-table/elements/data-table-sort-row.js +114 -0
  141. package/dist/components/data-table/elements/data-table-sort-row.js.map +1 -0
  142. package/dist/components/data-table/elements/data-table-title-row.d.ts +11 -0
  143. package/dist/components/data-table/elements/data-table-title-row.d.ts.map +1 -0
  144. package/dist/components/data-table/elements/data-table-title-row.js +16 -0
  145. package/dist/components/data-table/elements/data-table-title-row.js.map +1 -0
  146. package/dist/components/data-table/elements/data-table-virtualized-body.d.ts +10 -0
  147. package/dist/components/data-table/elements/data-table-virtualized-body.d.ts.map +1 -0
  148. package/dist/components/data-table/elements/data-table-virtualized-body.js +38 -0
  149. package/dist/components/data-table/elements/data-table-virtualized-body.js.map +1 -0
  150. package/dist/components/data-table/set-utils.d.ts +41 -0
  151. package/dist/components/data-table/set-utils.d.ts.map +1 -0
  152. package/dist/components/data-table/set-utils.js +97 -0
  153. package/dist/components/data-table/set-utils.js.map +1 -0
  154. package/dist/components/data-table/views/data-table-filter-view.d.ts +18 -0
  155. package/dist/components/data-table/views/data-table-filter-view.d.ts.map +1 -0
  156. package/dist/components/data-table/views/data-table-filter-view.js +63 -0
  157. package/dist/components/data-table/views/data-table-filter-view.js.map +1 -0
  158. package/dist/components/data-table/views/data-table-prop-view.d.ts +297 -0
  159. package/dist/components/data-table/views/data-table-prop-view.d.ts.map +1 -0
  160. package/dist/components/data-table/views/data-table-prop-view.js +44 -0
  161. package/dist/components/data-table/views/data-table-prop-view.js.map +1 -0
  162. package/dist/components/data-table/views/data-table-root-view.d.ts +8 -0
  163. package/dist/components/data-table/views/data-table-root-view.d.ts.map +1 -0
  164. package/dist/components/data-table/views/data-table-root-view.js +18 -0
  165. package/dist/components/data-table/views/data-table-root-view.js.map +1 -0
  166. package/dist/components/data-table/views/data-table-sort-view.d.ts +18 -0
  167. package/dist/components/data-table/views/data-table-sort-view.d.ts.map +1 -0
  168. package/dist/components/data-table/views/data-table-sort-view.js +70 -0
  169. package/dist/components/data-table/views/data-table-sort-view.js.map +1 -0
  170. package/dist/components/data-table/views/data-table-view.d.ts +44 -0
  171. package/dist/components/data-table/views/data-table-view.d.ts.map +1 -0
  172. package/dist/components/data-table/views/data-table-view.js +86 -0
  173. package/dist/components/data-table/views/data-table-view.js.map +1 -0
  174. package/dist/components/data-table.d.ts +20 -0
  175. package/dist/components/data-table.d.ts.map +1 -0
  176. package/dist/components/data-table.js +26 -0
  177. package/dist/components/data-table.js.map +1 -0
  178. package/dist/components/date-picker.d.ts +43 -0
  179. package/dist/components/date-picker.d.ts.map +1 -0
  180. package/dist/components/date-picker.js +45 -0
  181. package/dist/components/date-picker.js.map +1 -0
  182. package/dist/components/dialog.d.ts +24 -0
  183. package/dist/components/dialog.d.ts.map +1 -0
  184. package/dist/components/dialog.js +57 -0
  185. package/dist/components/dialog.js.map +1 -0
  186. package/dist/components/direction.d.ts +2 -0
  187. package/dist/components/direction.d.ts.map +1 -0
  188. package/dist/components/direction.js +3 -0
  189. package/dist/components/direction.js.map +1 -0
  190. package/dist/components/drawer.d.ts +18 -0
  191. package/dist/components/drawer.d.ts.map +1 -0
  192. package/dist/components/drawer.js +84 -0
  193. package/dist/components/drawer.js.map +1 -0
  194. package/dist/components/dropdown-menu.d.ts +45 -0
  195. package/dist/components/dropdown-menu.d.ts.map +1 -0
  196. package/dist/components/dropdown-menu.js +77 -0
  197. package/dist/components/dropdown-menu.js.map +1 -0
  198. package/dist/components/empty.d.ts +15 -0
  199. package/dist/components/empty.d.ts.map +1 -0
  200. package/dist/components/empty.js +44 -0
  201. package/dist/components/empty.js.map +1 -0
  202. package/dist/components/field.d.ts +25 -0
  203. package/dist/components/field.d.ts.map +1 -0
  204. package/dist/components/field.js +72 -0
  205. package/dist/components/field.js.map +1 -0
  206. package/dist/components/file-upload.d.ts +24 -0
  207. package/dist/components/file-upload.d.ts.map +1 -0
  208. package/dist/components/file-upload.js +78 -0
  209. package/dist/components/file-upload.js.map +1 -0
  210. package/dist/components/hero.d.ts +39 -0
  211. package/dist/components/hero.d.ts.map +1 -0
  212. package/dist/components/hero.js +71 -0
  213. package/dist/components/hero.js.map +1 -0
  214. package/dist/components/hover-card.d.ts +6 -0
  215. package/dist/components/hover-card.d.ts.map +1 -0
  216. package/dist/components/hover-card.js +17 -0
  217. package/dist/components/hover-card.js.map +1 -0
  218. package/dist/components/input-group.d.ts +23 -0
  219. package/dist/components/input-group.d.ts.map +1 -0
  220. package/dist/components/input-group.js +86 -0
  221. package/dist/components/input-group.js.map +1 -0
  222. package/dist/components/input-otp.d.ts +13 -0
  223. package/dist/components/input-otp.d.ts.map +1 -0
  224. package/dist/components/input-otp.js +25 -0
  225. package/dist/components/input-otp.js.map +1 -0
  226. package/dist/components/input.d.ts +13 -0
  227. package/dist/components/input.d.ts.map +1 -0
  228. package/dist/components/input.js +29 -0
  229. package/dist/components/input.js.map +1 -0
  230. package/dist/components/item.d.ts +23 -0
  231. package/dist/components/item.d.ts.map +1 -0
  232. package/dist/components/item.js +89 -0
  233. package/dist/components/item.js.map +1 -0
  234. package/dist/components/kbd.d.ts +11 -0
  235. package/dist/components/kbd.d.ts.map +1 -0
  236. package/dist/components/kbd.js +26 -0
  237. package/dist/components/kbd.js.map +1 -0
  238. package/dist/components/label.d.ts +4 -0
  239. package/dist/components/label.d.ts.map +1 -0
  240. package/dist/components/label.js +9 -0
  241. package/dist/components/label.js.map +1 -0
  242. package/dist/components/marker.d.ts +11 -0
  243. package/dist/components/marker.d.ts.map +1 -0
  244. package/dist/components/marker.js +37 -0
  245. package/dist/components/marker.js.map +1 -0
  246. package/dist/components/menubar.d.ts +23 -0
  247. package/dist/components/menubar.d.ts.map +1 -0
  248. package/dist/components/menubar.js +60 -0
  249. package/dist/components/menubar.js.map +1 -0
  250. package/dist/components/message-scroller.d.ts +11 -0
  251. package/dist/components/message-scroller.d.ts.map +1 -0
  252. package/dist/components/message-scroller.js +27 -0
  253. package/dist/components/message-scroller.js.map +1 -0
  254. package/dist/components/message.d.ts +17 -0
  255. package/dist/components/message.d.ts.map +1 -0
  256. package/dist/components/message.js +24 -0
  257. package/dist/components/message.js.map +1 -0
  258. package/dist/components/meter.d.ts +18 -0
  259. package/dist/components/meter.d.ts.map +1 -0
  260. package/dist/components/meter.js +25 -0
  261. package/dist/components/meter.js.map +1 -0
  262. package/dist/components/native-select.d.ts +14 -0
  263. package/dist/components/native-select.d.ts.map +1 -0
  264. package/dist/components/native-select.js +34 -0
  265. package/dist/components/native-select.js.map +1 -0
  266. package/dist/components/navbar.d.ts +11 -0
  267. package/dist/components/navbar.d.ts.map +1 -0
  268. package/dist/components/navbar.js +44 -0
  269. package/dist/components/navbar.js.map +1 -0
  270. package/dist/components/navigation-menu.d.ts +23 -0
  271. package/dist/components/navigation-menu.d.ts.map +1 -0
  272. package/dist/components/navigation-menu.js +51 -0
  273. package/dist/components/navigation-menu.js.map +1 -0
  274. package/dist/components/number-field.d.ts +16 -0
  275. package/dist/components/number-field.d.ts.map +1 -0
  276. package/dist/components/number-field.js +49 -0
  277. package/dist/components/number-field.js.map +1 -0
  278. package/dist/components/page-header.d.ts +13 -0
  279. package/dist/components/page-header.d.ts.map +1 -0
  280. package/dist/components/page-header.js +51 -0
  281. package/dist/components/page-header.js.map +1 -0
  282. package/dist/components/pager.d.ts +14 -0
  283. package/dist/components/pager.d.ts.map +1 -0
  284. package/dist/components/pager.js +36 -0
  285. package/dist/components/pager.js.map +1 -0
  286. package/dist/components/pagination.d.ts +21 -0
  287. package/dist/components/pagination.d.ts.map +1 -0
  288. package/dist/components/pagination.js +29 -0
  289. package/dist/components/pagination.js.map +1 -0
  290. package/dist/components/password-input.d.ts +18 -0
  291. package/dist/components/password-input.d.ts.map +1 -0
  292. package/dist/components/password-input.js +17 -0
  293. package/dist/components/password-input.js.map +1 -0
  294. package/dist/components/password-strength.d.ts +21 -0
  295. package/dist/components/password-strength.d.ts.map +1 -0
  296. package/dist/components/password-strength.js +52 -0
  297. package/dist/components/password-strength.js.map +1 -0
  298. package/dist/components/popover.d.ts +10 -0
  299. package/dist/components/popover.d.ts.map +1 -0
  300. package/dist/components/popover.js +27 -0
  301. package/dist/components/popover.js.map +1 -0
  302. package/dist/components/progress.d.ts +26 -0
  303. package/dist/components/progress.d.ts.map +1 -0
  304. package/dist/components/progress.js +39 -0
  305. package/dist/components/progress.js.map +1 -0
  306. package/dist/components/questionnaire.d.ts +20 -0
  307. package/dist/components/questionnaire.d.ts.map +1 -0
  308. package/dist/components/questionnaire.js +57 -0
  309. package/dist/components/questionnaire.js.map +1 -0
  310. package/dist/components/radio-group.d.ts +8 -0
  311. package/dist/components/radio-group.d.ts.map +1 -0
  312. package/dist/components/radio-group.js +27 -0
  313. package/dist/components/radio-group.js.map +1 -0
  314. package/dist/components/resizable.d.ts +13 -0
  315. package/dist/components/resizable.d.ts.map +1 -0
  316. package/dist/components/resizable.js +24 -0
  317. package/dist/components/resizable.js.map +1 -0
  318. package/dist/components/scroll-area.d.ts +17 -0
  319. package/dist/components/scroll-area.d.ts.map +1 -0
  320. package/dist/components/scroll-area.js +12 -0
  321. package/dist/components/scroll-area.js.map +1 -0
  322. package/dist/components/search-dialog.d.ts +38 -0
  323. package/dist/components/search-dialog.d.ts.map +1 -0
  324. package/dist/components/search-dialog.js +39 -0
  325. package/dist/components/search-dialog.js.map +1 -0
  326. package/dist/components/search-trigger.d.ts +20 -0
  327. package/dist/components/search-trigger.d.ts.map +1 -0
  328. package/dist/components/search-trigger.js +52 -0
  329. package/dist/components/search-trigger.js.map +1 -0
  330. package/dist/components/section.d.ts +30 -0
  331. package/dist/components/section.d.ts.map +1 -0
  332. package/dist/components/section.js +79 -0
  333. package/dist/components/section.js.map +1 -0
  334. package/dist/components/select.d.ts +16 -0
  335. package/dist/components/select.d.ts.map +1 -0
  336. package/dist/components/select.js +38 -0
  337. package/dist/components/select.js.map +1 -0
  338. package/dist/components/separator.d.ts +4 -0
  339. package/dist/components/separator.d.ts.map +1 -0
  340. package/dist/components/separator.js +9 -0
  341. package/dist/components/separator.js.map +1 -0
  342. package/dist/components/sheet.d.ts +16 -0
  343. package/dist/components/sheet.d.ts.map +1 -0
  344. package/dist/components/sheet.js +44 -0
  345. package/dist/components/sheet.js.map +1 -0
  346. package/dist/components/sidebar.d.ts +76 -0
  347. package/dist/components/sidebar.d.ts.map +1 -0
  348. package/dist/components/sidebar.js +289 -0
  349. package/dist/components/sidebar.js.map +1 -0
  350. package/dist/components/site-footer.d.ts +22 -0
  351. package/dist/components/site-footer.d.ts.map +1 -0
  352. package/dist/components/site-footer.js +42 -0
  353. package/dist/components/site-footer.js.map +1 -0
  354. package/dist/components/site-header.d.ts +48 -0
  355. package/dist/components/site-header.d.ts.map +1 -0
  356. package/dist/components/site-header.js +104 -0
  357. package/dist/components/site-header.js.map +1 -0
  358. package/dist/components/site-layout.d.ts +35 -0
  359. package/dist/components/site-layout.d.ts.map +1 -0
  360. package/dist/components/site-layout.js +99 -0
  361. package/dist/components/site-layout.js.map +1 -0
  362. package/dist/components/skeleton.d.ts +6 -0
  363. package/dist/components/skeleton.d.ts.map +1 -0
  364. package/dist/components/skeleton.js +16 -0
  365. package/dist/components/skeleton.js.map +1 -0
  366. package/dist/components/slider.d.ts +4 -0
  367. package/dist/components/slider.d.ts.map +1 -0
  368. package/dist/components/slider.js +11 -0
  369. package/dist/components/slider.js.map +1 -0
  370. package/dist/components/spinner.d.ts +12 -0
  371. package/dist/components/spinner.d.ts.map +1 -0
  372. package/dist/components/spinner.js +26 -0
  373. package/dist/components/spinner.js.map +1 -0
  374. package/dist/components/stat.d.ts +31 -0
  375. package/dist/components/stat.d.ts.map +1 -0
  376. package/dist/components/stat.js +66 -0
  377. package/dist/components/stat.js.map +1 -0
  378. package/dist/components/status-dot.d.ts +25 -0
  379. package/dist/components/status-dot.d.ts.map +1 -0
  380. package/dist/components/status-dot.js +45 -0
  381. package/dist/components/status-dot.js.map +1 -0
  382. package/dist/components/switch.d.ts +17 -0
  383. package/dist/components/switch.d.ts.map +1 -0
  384. package/dist/components/switch.js +49 -0
  385. package/dist/components/switch.js.map +1 -0
  386. package/dist/components/table.d.ts +25 -0
  387. package/dist/components/table.d.ts.map +1 -0
  388. package/dist/components/table.js +45 -0
  389. package/dist/components/table.js.map +1 -0
  390. package/dist/components/tabs.d.ts +18 -0
  391. package/dist/components/tabs.d.ts.map +1 -0
  392. package/dist/components/tabs.js +51 -0
  393. package/dist/components/tabs.js.map +1 -0
  394. package/dist/components/textarea.d.ts +4 -0
  395. package/dist/components/textarea.d.ts.map +1 -0
  396. package/dist/components/textarea.js +10 -0
  397. package/dist/components/textarea.js.map +1 -0
  398. package/dist/components/toast.d.ts +27 -0
  399. package/dist/components/toast.d.ts.map +1 -0
  400. package/dist/components/toast.js +68 -0
  401. package/dist/components/toast.js.map +1 -0
  402. package/dist/components/toc.d.ts +35 -0
  403. package/dist/components/toc.d.ts.map +1 -0
  404. package/dist/components/toc.js +94 -0
  405. package/dist/components/toc.js.map +1 -0
  406. package/dist/components/toggle-group.d.ts +19 -0
  407. package/dist/components/toggle-group.d.ts.map +1 -0
  408. package/dist/components/toggle-group.js +33 -0
  409. package/dist/components/toggle-group.js.map +1 -0
  410. package/dist/components/toggle.d.ts +15 -0
  411. package/dist/components/toggle.d.ts.map +1 -0
  412. package/dist/components/toggle.js +42 -0
  413. package/dist/components/toggle.js.map +1 -0
  414. package/dist/components/toolbar.d.ts +14 -0
  415. package/dist/components/toolbar.d.ts.map +1 -0
  416. package/dist/components/toolbar.js +37 -0
  417. package/dist/components/toolbar.js.map +1 -0
  418. package/dist/components/tooltip.d.ts +7 -0
  419. package/dist/components/tooltip.d.ts.map +1 -0
  420. package/dist/components/tooltip.js +22 -0
  421. package/dist/components/tooltip.js.map +1 -0
  422. package/dist/components/trace.d.ts +20 -0
  423. package/dist/components/trace.d.ts.map +1 -0
  424. package/dist/components/trace.js +32 -0
  425. package/dist/components/trace.js.map +1 -0
  426. package/dist/components/typography.d.ts +37 -0
  427. package/dist/components/typography.d.ts.map +1 -0
  428. package/dist/components/typography.js +140 -0
  429. package/dist/components/typography.js.map +1 -0
  430. package/dist/hooks/use-highlighted-code.d.ts +3 -0
  431. package/dist/hooks/use-highlighted-code.d.ts.map +1 -0
  432. package/dist/hooks/use-highlighted-code.js +50 -0
  433. package/dist/hooks/use-highlighted-code.js.map +1 -0
  434. package/dist/hooks/use-mobile.d.ts +2 -0
  435. package/dist/hooks/use-mobile.d.ts.map +1 -0
  436. package/dist/hooks/use-mobile.js +16 -0
  437. package/dist/hooks/use-mobile.js.map +1 -0
  438. package/dist/lib/color.d.ts +30 -0
  439. package/dist/lib/color.d.ts.map +1 -0
  440. package/dist/lib/color.js +56 -0
  441. package/dist/lib/color.js.map +1 -0
  442. package/dist/lib/highlighter.d.ts +10 -0
  443. package/dist/lib/highlighter.d.ts.map +1 -0
  444. package/dist/lib/highlighter.js +94 -0
  445. package/dist/lib/highlighter.js.map +1 -0
  446. package/dist/lib/recipes.d.ts +30 -0
  447. package/dist/lib/recipes.d.ts.map +1 -0
  448. package/dist/lib/recipes.js +30 -0
  449. package/dist/lib/recipes.js.map +1 -0
  450. package/dist/lib/utils.d.ts +2 -0
  451. package/dist/lib/utils.d.ts.map +1 -0
  452. package/dist/lib/utils.js +2 -0
  453. package/dist/lib/utils.js.map +1 -0
  454. package/dist/provider/index.d.ts +3 -0
  455. package/dist/provider/index.d.ts.map +1 -0
  456. package/dist/provider/index.js +3 -0
  457. package/dist/provider/index.js.map +1 -0
  458. package/dist/provider/theme-provider.d.ts +47 -0
  459. package/dist/provider/theme-provider.d.ts.map +1 -0
  460. package/dist/provider/theme-provider.js +118 -0
  461. package/dist/provider/theme-provider.js.map +1 -0
  462. package/dist/provider/theme.d.ts +42 -0
  463. package/dist/provider/theme.d.ts.map +1 -0
  464. package/dist/provider/theme.js +58 -0
  465. package/dist/provider/theme.js.map +1 -0
  466. package/package.json +145 -5
  467. package/src/components/accordion.tsx +92 -0
  468. package/src/components/alert-dialog.tsx +167 -0
  469. package/src/components/alert.tsx +110 -0
  470. package/src/components/aspect-ratio.tsx +29 -0
  471. package/src/components/attachment.tsx +198 -0
  472. package/src/components/avatar.tsx +115 -0
  473. package/src/components/badge.tsx +75 -0
  474. package/src/components/breadcrumb.tsx +104 -0
  475. package/src/components/bubble.tsx +125 -0
  476. package/src/components/button-group.tsx +75 -0
  477. package/src/components/button.tsx +124 -0
  478. package/src/components/calendar.tsx +204 -0
  479. package/src/components/callout.tsx +131 -0
  480. package/src/components/card.tsx +178 -0
  481. package/src/components/carousel.tsx +294 -0
  482. package/src/components/chart.tsx +332 -0
  483. package/src/components/checkbox-group.tsx +21 -0
  484. package/src/components/checkbox.tsx +39 -0
  485. package/src/components/code-block.tsx +246 -0
  486. package/src/components/collapsible.tsx +47 -0
  487. package/src/components/combobox.tsx +295 -0
  488. package/src/components/command.tsx +174 -0
  489. package/src/components/context-menu.tsx +238 -0
  490. package/src/components/copy-button.tsx +80 -0
  491. package/src/components/data-table/data-table-utils.tsx +125 -0
  492. package/src/components/data-table/elements/data-table-base.tsx +78 -0
  493. package/src/components/data-table/elements/data-table-body.tsx +50 -0
  494. package/src/components/data-table/elements/data-table-cell.tsx +42 -0
  495. package/src/components/data-table/elements/data-table-filter-row.tsx +222 -0
  496. package/src/components/data-table/elements/data-table-foot.tsx +36 -0
  497. package/src/components/data-table/elements/data-table-head.tsx +36 -0
  498. package/src/components/data-table/elements/data-table-info-row.tsx +38 -0
  499. package/src/components/data-table/elements/data-table-row.tsx +58 -0
  500. package/src/components/data-table/elements/data-table-scroll.tsx +33 -0
  501. package/src/components/data-table/elements/data-table-sort-row.tsx +180 -0
  502. package/src/components/data-table/elements/data-table-title-row.tsx +33 -0
  503. package/src/components/data-table/elements/data-table-virtualized-body.tsx +87 -0
  504. package/src/components/data-table/set-utils.ts +103 -0
  505. package/src/components/data-table/views/data-table-filter-view.tsx +75 -0
  506. package/src/components/data-table/views/data-table-prop-view.tsx +55 -0
  507. package/src/components/data-table/views/data-table-root-view.tsx +20 -0
  508. package/src/components/data-table/views/data-table-sort-view.tsx +81 -0
  509. package/src/components/data-table/views/data-table-view.tsx +147 -0
  510. package/src/components/data-table.tsx +30 -0
  511. package/src/components/date-picker.tsx +166 -0
  512. package/src/components/dialog.tsx +158 -0
  513. package/src/components/direction.tsx +3 -0
  514. package/src/components/drawer.tsx +222 -0
  515. package/src/components/dropdown-menu.tsx +267 -0
  516. package/src/components/empty.tsx +97 -0
  517. package/src/components/field.tsx +229 -0
  518. package/src/components/file-upload.tsx +180 -0
  519. package/src/components/hero.tsx +137 -0
  520. package/src/components/hover-card.tsx +44 -0
  521. package/src/components/input-group.tsx +186 -0
  522. package/src/components/input-otp.tsx +82 -0
  523. package/src/components/input.tsx +50 -0
  524. package/src/components/item.tsx +191 -0
  525. package/src/components/kbd.tsx +39 -0
  526. package/src/components/label.tsx +19 -0
  527. package/src/components/marker.tsx +69 -0
  528. package/src/components/menubar.tsx +146 -0
  529. package/src/components/message-scroller.tsx +113 -0
  530. package/src/components/message.tsx +90 -0
  531. package/src/components/meter.tsx +69 -0
  532. package/src/components/native-select.tsx +76 -0
  533. package/src/components/navbar.tsx +55 -0
  534. package/src/components/navigation-menu.tsx +193 -0
  535. package/src/components/number-field.tsx +133 -0
  536. package/src/components/page-header.tsx +63 -0
  537. package/src/components/pager.tsx +70 -0
  538. package/src/components/pagination.tsx +106 -0
  539. package/src/components/password-input.tsx +71 -0
  540. package/src/components/password-strength.tsx +99 -0
  541. package/src/components/popover.tsx +68 -0
  542. package/src/components/progress.tsx +105 -0
  543. package/src/components/questionnaire.tsx +299 -0
  544. package/src/components/radio-group.tsx +43 -0
  545. package/src/components/resizable.tsx +62 -0
  546. package/src/components/scroll-area.tsx +68 -0
  547. package/src/components/search-dialog.tsx +87 -0
  548. package/src/components/search-trigger.tsx +74 -0
  549. package/src/components/section.tsx +110 -0
  550. package/src/components/select.tsx +184 -0
  551. package/src/components/separator.tsx +20 -0
  552. package/src/components/sheet.tsx +116 -0
  553. package/src/components/sidebar.tsx +722 -0
  554. package/src/components/site-footer.tsx +55 -0
  555. package/src/components/site-header.tsx +169 -0
  556. package/src/components/site-layout.tsx +147 -0
  557. package/src/components/skeleton.tsx +19 -0
  558. package/src/components/slider.tsx +46 -0
  559. package/src/components/spinner.tsx +42 -0
  560. package/src/components/stat.tsx +155 -0
  561. package/src/components/status-dot.tsx +94 -0
  562. package/src/components/switch.tsx +70 -0
  563. package/src/components/table.tsx +133 -0
  564. package/src/components/tabs.tsx +99 -0
  565. package/src/components/textarea.tsx +23 -0
  566. package/src/components/toast.tsx +221 -0
  567. package/src/components/toc.tsx +122 -0
  568. package/src/components/toggle-group.tsx +95 -0
  569. package/src/components/toggle.tsx +59 -0
  570. package/src/components/toolbar.tsx +97 -0
  571. package/src/components/tooltip.tsx +57 -0
  572. package/src/components/trace.tsx +143 -0
  573. package/src/components/typography.tsx +205 -0
  574. package/src/hooks/use-highlighted-code.ts +71 -0
  575. package/src/hooks/use-mobile.ts +19 -0
  576. package/src/lib/color.ts +76 -0
  577. package/src/lib/highlighter.tsx +121 -0
  578. package/src/lib/recipes.ts +47 -0
  579. package/src/lib/utils.ts +1 -0
  580. package/src/provider/index.ts +2 -0
  581. package/src/provider/theme-provider.tsx +210 -0
  582. package/src/provider/theme.ts +83 -0
  583. package/src/styles/kernelkit.css +301 -0
  584. package/src/styles/shadcn.css +555 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAIlE,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,cAAc,CAAC,cAAc,CAAC,GAAG;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,EAC5B,SAAS,EACT,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,EACX,GAAG,KAAK,EACX,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BA6BtB"}
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { useDataTableContext } from "./data-table-base";
5
+ import { DataTableCell } from "./data-table-cell";
6
+ export function DataTableRow({ className, data, columns, head, even, first: _first, last: _last, ...props }) {
7
+ const { striped } = useDataTableContext();
8
+ return (_jsx("div", { "data-slot": "data-table-row", "data-head": head || undefined, className: cn("relative flex flex-row border-border transition-colors duration-100",
9
+ // striped is a plain class so a per-row highlight in `className` wins via tailwind-merge
10
+ !head && striped && even && "bg-muted/50",
11
+ // hover is gated by the `hoverable` flag on DataTable and skips header rows
12
+ !head && "group-data-hoverable/data-table:hover:bg-hover",
13
+ // selected = accent tint + a 2px primary indicator (never shade alone)
14
+ "data-[state=selected]:bg-accent! data-[state=selected]:text-accent-foreground data-[state=selected]:shadow-[inset_2px_0_0_var(--primary-text)]", className), ...props, children: columns.map((column) => {
15
+ const cellProps = column.cellProps(data);
16
+ return (_jsx(DataTableCell, { style: column.style, head: head, ...cellProps, children: column.cell(data) }, column.id));
17
+ }) }));
18
+ }
19
+ //# sourceMappingURL=data-table-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-row.js","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-row.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAItB,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAYhD,MAAM,UAAU,YAAY,CAAI,EAC5B,SAAS,EACT,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,KAAK,EACX,GAAG,KAAK,EACW;IACnB,MAAM,EAAC,OAAO,EAAC,GAAG,mBAAmB,EAAE,CAAC;IAExC,OAAO,CACH,2BACc,gBAAgB,eACf,IAAI,IAAI,SAAS,EAC5B,SAAS,EAAE,EAAE,CACT,qEAAqE;QACrE,yFAAyF;QACzF,CAAC,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,aAAa;QACzC,4EAA4E;QAC5E,CAAC,IAAI,IAAI,gDAAgD;QACzD,uEAAuE;QACvE,gJAAgJ,EAChJ,SAAS,CACZ,KACG,KAAK,YAER,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YACpB,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;YACzC,OAAO,CACH,KAAC,aAAa,IAAiB,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,KAAM,SAAS,YACxE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IADF,MAAM,CAAC,EAAE,CAEb,CACnB,CAAC;QACN,CAAC,CAAC,GACA,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties, ReactNode, Ref } from "react";
2
+ export type DataTableScrollProps = {
3
+ className?: string;
4
+ viewportClassName?: string;
5
+ viewportRef?: Ref<HTMLDivElement>;
6
+ style?: CSSProperties;
7
+ children?: ReactNode;
8
+ };
9
+ /** Vertical overlay scroller for the body (consumes no width, so head and body columns stay aligned). */
10
+ export declare function DataTableScroll({ className, viewportClassName, viewportRef, style, children }: DataTableScrollProps): import("react").JSX.Element;
11
+ //# sourceMappingURL=data-table-scroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-scroll.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-scroll.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,GAAG,EAAC,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAClC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB,CAAC;AAEF,yGAAyG;AACzG,wBAAgB,eAAe,CAAC,EAAC,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAC,EAAE,oBAAoB,+BAgBjH"}
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
4
+ import { ScrollBar } from "@repraze/kernelkit/components/scroll-area";
5
+ import { cn } from "cn";
6
+ /** Vertical overlay scroller for the body (consumes no width, so head and body columns stay aligned). */
7
+ export function DataTableScroll({ className, viewportClassName, viewportRef, style, children }) {
8
+ return (_jsxs(ScrollAreaPrimitive.Root, { "data-slot": "data-table-scroll", className: cn("relative", className), style: style, children: [_jsx(ScrollAreaPrimitive.Viewport, { ref: viewportRef, "data-slot": "data-table-viewport", className: cn("size-full rounded-[inherit] outline-none focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:ring-inset", viewportClassName), children: children }), _jsx(ScrollBar, { className: "opacity-0 transition-opacity duration-150 data-hovering:opacity-100 data-scrolling:opacity-100 motion-reduce:transition-none" })] }));
9
+ }
10
+ //# sourceMappingURL=data-table-scroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-scroll.js","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-scroll.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,UAAU,IAAI,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAC,SAAS,EAAC,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAWtB,yGAAyG;AACzG,MAAM,UAAU,eAAe,CAAC,EAAC,SAAS,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAuB;IAC9G,OAAO,CACH,MAAC,mBAAmB,CAAC,IAAI,iBAAW,mBAAmB,EAAC,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,aACtG,KAAC,mBAAmB,CAAC,QAAQ,IACzB,GAAG,EAAE,WAAW,eACN,qBAAqB,EAC/B,SAAS,EAAE,EAAE,CACT,mHAAmH,EACnH,iBAAiB,CACpB,YAEA,QAAQ,GACkB,EAC/B,KAAC,SAAS,IAAC,SAAS,EAAC,8HAA8H,GAAG,IAC/H,CAC9B,CAAC;AACN,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import type { DataTableSortFn, DataTableSortView } from "../views/data-table-sort-view";
3
+ import type { DataTableView } from "../views/data-table-view";
4
+ export type DataTableSortIcon = ComponentType<{
5
+ className?: string;
6
+ }>;
7
+ export type DataTableSortRowMethod = {
8
+ id: string;
9
+ icon: DataTableSortIcon;
10
+ label?: string;
11
+ apply?: DataTableSortFn;
12
+ };
13
+ export type DataTableSortRowProps<T> = {
14
+ className?: string;
15
+ view: DataTableView<T>;
16
+ sortView: DataTableSortView<T>;
17
+ titles?: {
18
+ [K: string]: ReactNode;
19
+ };
20
+ sorts?: {
21
+ [K: string]: DataTableSortRowMethod[];
22
+ };
23
+ };
24
+ export declare function DataTableSortRow<T>({ className, view, sortView, titles, sorts, ...props }: DataTableSortRowProps<T>): import("react").JSX.Element;
25
+ export declare function createDataTableStringSort(): DataTableSortRowMethod[];
26
+ export declare function createDataTableNumberSort(): DataTableSortRowMethod[];
27
+ export declare const createDataTableDateSort: typeof createDataTableNumberSort;
28
+ //# sourceMappingURL=data-table-sort-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-sort-row.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-sort-row.tsx"],"names":[],"mappings":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} from "react/jsx-runtime";
3
+ import { focusRing } from "@repraze/kernelkit/lib/recipes";
4
+ import { cn } from "cn";
5
+ import { ArrowDownAZIcon, ArrowDownUpIcon, ArrowUpZAIcon, MoveDownIcon, MoveUpIcon } from "lucide-react";
6
+ import { useCallback, useState } from "react";
7
+ import { useDataTableViewDetector } from "../views/data-table-view";
8
+ import { DataTableRow } from "./data-table-row";
9
+ export function DataTableSortRow({ className, view, sortView, titles, sorts, ...props }) {
10
+ const { columns } = useDataTableViewDetector({ view });
11
+ const [selectedIds, setSelectedId] = useState({});
12
+ const handleSort = useCallback((columnId, currentId) => {
13
+ const sortList = sorts && columnId in sorts ? sorts[columnId] : undefined;
14
+ if (sortList) {
15
+ const index = sortList.findIndex((s) => s.id === currentId);
16
+ const nextIndex = index === -1 ? 0 : (index + 1) % sortList.length;
17
+ const nextSort = sortList[nextIndex];
18
+ if (nextSort?.apply) {
19
+ // apply next sort
20
+ setSelectedId({ [columnId]: nextSort.id });
21
+ sortView.setSorts({ [columnId]: nextSort.apply });
22
+ }
23
+ else {
24
+ // no sort, remove sort
25
+ setSelectedId({});
26
+ sortView.setSorts({});
27
+ }
28
+ }
29
+ else {
30
+ // no list, remove sort
31
+ setSelectedId({});
32
+ sortView.setSorts({});
33
+ }
34
+ }, [sortView, sorts]);
35
+ const sortColumns = columns.map((column) => {
36
+ const columnId = column.id;
37
+ const title = titles && columnId in titles ? titles[columnId] : columnId;
38
+ const sortList = sorts && columnId in sorts ? sorts[columnId] : undefined;
39
+ if (sortList && sortList.length > 0) {
40
+ const sortId = selectedIds[columnId];
41
+ const sort = sortId ? sortList.find((s) => s.id === sortId) : sortList[0];
42
+ const usedId = sort ? sort.id : (sortList[0]?.id ?? "");
43
+ const SortIcon = sort?.icon;
44
+ const active = !!sort?.apply;
45
+ // right-aligned columns read better with the sort icon on the left of the label so it isn't
46
+ // crammed against the right edge; other alignments keep the label growing with the icon trailing
47
+ const alignRight = column.style.textAlign === "right";
48
+ const icon = SortIcon ? (_jsx(SortIcon, { "aria-hidden": "true", className: cn("size-3.5 shrink-0", active ? "text-primary-text" : "text-muted-foreground") })) : null;
49
+ const label = _jsx("span", { className: "min-w-0 truncate", children: title });
50
+ return {
51
+ ...column,
52
+ cell: () => (_jsx("button", { type: "button", "data-slot": "data-table-sort-button", "data-active": active || undefined, title: sort?.label, "aria-label": sort?.label ? `${typeof title === "string" ? title : columnId}: ${sort.label}` : undefined, onClick: () => handleSort(columnId, usedId), className: cn(focusRing, "-mx-1 flex h-7 min-w-0 flex-1 cursor-pointer items-center gap-1.5 rounded-md border border-transparent px-1 transition-[color,background-color,border-color,box-shadow] duration-100 select-none hover:bg-hover hover:text-foreground data-active:text-foreground", alignRight && "justify-end"), children: alignRight ? (_jsxs(_Fragment, { children: [icon, label] })) : (_jsxs(_Fragment, { children: [label, icon] })) })),
53
+ cellProps: () => ({
54
+ "aria-sort": active ? (sort?.id.endsWith("desc") ? "descending" : "ascending") : undefined,
55
+ }),
56
+ rawCell: () => undefined,
57
+ };
58
+ }
59
+ else {
60
+ // fallback to regular title
61
+ return {
62
+ ...column,
63
+ cell: () => title,
64
+ cellProps: () => ({}),
65
+ rawCell: () => undefined,
66
+ };
67
+ }
68
+ });
69
+ return (_jsx(DataTableRow, { className: cn("data-table-sort-row", className), columns: sortColumns, data: undefined, head: true, ...props }));
70
+ }
71
+ export function createDataTableStringSort() {
72
+ return [
73
+ {
74
+ id: "str-none",
75
+ icon: ArrowDownUpIcon,
76
+ label: "None",
77
+ },
78
+ {
79
+ id: "str-asc",
80
+ icon: ArrowDownAZIcon,
81
+ label: "Ascending",
82
+ apply: (a, b) => a.toString().localeCompare(b.toString()),
83
+ },
84
+ {
85
+ id: "str-desc",
86
+ icon: ArrowUpZAIcon,
87
+ label: "Descending",
88
+ apply: (a, b) => b.toString().localeCompare(a.toString()),
89
+ },
90
+ ];
91
+ }
92
+ export function createDataTableNumberSort() {
93
+ return [
94
+ {
95
+ id: "num-none",
96
+ icon: ArrowDownUpIcon,
97
+ label: "None",
98
+ },
99
+ {
100
+ id: "num-asc",
101
+ icon: MoveDownIcon,
102
+ label: "Ascending",
103
+ apply: (a, b) => a - b,
104
+ },
105
+ {
106
+ id: "num-desc",
107
+ icon: MoveUpIcon,
108
+ label: "Descending",
109
+ apply: (a, b) => b - a,
110
+ },
111
+ ];
112
+ }
113
+ export const createDataTableDateSort = createDataTableNumberSort; // alias
114
+ //# sourceMappingURL=data-table-sort-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-sort-row.js","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-sort-row.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AACtB,OAAO,EAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAC,MAAM,cAAc,CAAC;AAEvG,OAAO,EAAC,WAAW,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAI5C,OAAO,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAmB9C,MAAM,UAAU,gBAAgB,CAAI,EAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAA2B;IAC9G,MAAM,EAAC,OAAO,EAAC,GAAG,wBAAwB,CAAI,EAAC,IAAI,EAAC,CAAC,CAAC;IACtD,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAoC,EAAE,CAAC,CAAC;IACrF,MAAM,UAAU,GAAG,WAAW,CAC1B,CAAC,QAAgB,EAAE,SAAiB,EAAE,EAAE;QACpC,MAAM,QAAQ,GAAG,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,C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L,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,OAAO;QACH;YACI,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,MAAM;SAChB;QACD;YACI,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;SAC5D;QACD;YACI,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,aAAa;YACnB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;SAC5D;KACJ,CAAC;AACN,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,OAAO;QACH;YACI,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,MAAM;SAChB;QACD;YACI,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,YAAY;YAClB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC;SACzB;QACD;YACI,EAAE,EAAE,UAAU;YACd,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,YAAY;YACnB,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC;SACzB;KACJ,CAAC;AACN,CAAC;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAG,yBAAyB,CAAC,CAAC,QAAQ"}
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataTableView } from "../views/data-table-view";
3
+ export type DataTableTitleRow<T> = {
4
+ className?: string;
5
+ view: DataTableView<T>;
6
+ titles?: {
7
+ [K: string]: ReactNode;
8
+ };
9
+ };
10
+ export declare function DataTableTitleRow<T>({ className, view, titles, ...props }: DataTableTitleRow<T>): import("react").JSX.Element;
11
+ //# sourceMappingURL=data-table-title-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-title-row.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-title-row.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAErC,OAAO,KAAK,EAAC,aAAa,EAAsB,MAAM,0BAA0B,CAAC;AAIjF,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,CAAC,EAAE;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,EAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAC,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAiB7F"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { cn } from "cn";
4
+ import { useDataTableViewDetector } from "../views/data-table-view";
5
+ import { DataTableRow } from "./data-table-row";
6
+ export function DataTableTitleRow({ className, view, titles, ...props }) {
7
+ const { columns } = useDataTableViewDetector({ view });
8
+ const titleColumns = columns.map((column) => ({
9
+ ...column,
10
+ cell: () => (titles && column.id in titles ? titles[column.id] : column.id),
11
+ cellProps: () => ({}),
12
+ rawCell: () => undefined,
13
+ }));
14
+ return (_jsx(DataTableRow, { className: cn("data-table-title-row", className), columns: titleColumns, data: undefined, head: true, ...props }));
15
+ }
16
+ //# sourceMappingURL=data-table-title-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-title-row.js","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-title-row.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAItB,OAAO,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAQ9C,MAAM,UAAU,iBAAiB,CAAI,EAAC,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAuB;IAC1F,MAAM,EAAC,OAAO,EAAC,GAAG,wBAAwB,CAAI,EAAC,IAAI,EAAC,CAAC,CAAC;IACtD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAiC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC1E,GAAG,MAAM;QACT,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS;KAC3B,CAAC,CAAC,CAAC;IACJ,OAAO,CACH,KAAC,YAAY,IACT,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAChD,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,SAAS,EACf,IAAI,WACA,KAAK,GACX,CACL,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from "react";
2
+ import type { DataTableView } from "../views/data-table-view";
3
+ export type DataTableVirtualizedBodyProps<T> = HTMLAttributes<HTMLDivElement> & {
4
+ className?: string;
5
+ view: DataTableView<T>;
6
+ innerRowHeight?: number;
7
+ overscan?: number;
8
+ };
9
+ export declare function DataTableVirtualizedBody<T>({ className, view, innerRowHeight, overscan, ...props }: DataTableVirtualizedBodyProps<T>): import("react").JSX.Element;
10
+ //# sourceMappingURL=data-table-virtualized-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-virtualized-body.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-virtualized-body.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAK5D,MAAM,MAAM,6BAA6B,CAAC,CAAC,IAAI,cAAc,CAAC,cAAc,CAAC,GAAG;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,EACxC,SAAS,EACT,IAAI,EACJ,cAAc,EACd,QAAa,EACb,GAAG,KAAK,EACX,EAAE,6BAA6B,CAAC,CAAC,CAAC,+BA4DlC"}
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import { useVirtualizer } from "@tanstack/react-virtual";
4
+ import { cn } from "cn";
5
+ import { useState } from "react";
6
+ import { useDataTableSizing } from "../data-table-utils";
7
+ import { useDataTableViewDetector } from "../views/data-table-view";
8
+ import { DataTableRow } from "./data-table-row";
9
+ import { DataTableScroll } from "./data-table-scroll";
10
+ export function DataTableVirtualizedBody({ className, view, innerRowHeight, overscan = 12, ...props }) {
11
+ const { columns, data } = useDataTableViewDetector({ view });
12
+ const { ref, innerWidth, rowHeight } = useDataTableSizing({ columns, innerRowHeight });
13
+ // callback-ref + state so the virtualizer re-runs once the ScrollArea viewport (the real scrolling
14
+ // element) is mounted; a plain ref wouldn't trigger the re-render TanStack needs to pick it up
15
+ const [scrollElement, setScrollElement] = useState(null);
16
+ const virtualizer = useVirtualizer({
17
+ count: data.length,
18
+ getScrollElement: () => scrollElement,
19
+ estimateSize: () => rowHeight,
20
+ overscan,
21
+ });
22
+ const virtualItems = virtualizer.getVirtualItems();
23
+ return (_jsx("div", { "data-slot": "data-table-body-container", className: cn("relative flex min-h-0 flex-1 flex-col", className), ref: ref, ...props, children: _jsx(DataTableScroll, { viewportRef: setScrollElement, className: "min-h-0 w-full flex-1", style: { minWidth: `${innerWidth}px` }, children: _jsx("div", { style: { height: `${virtualizer.getTotalSize()}px`, width: "100%", position: "relative" }, children: virtualItems.map((virtualItem) => {
24
+ const index = virtualItem.index;
25
+ const row = data[index];
26
+ const { style: viewStyle, className: rowClassName, ...rowProps } = view.getRowProps(row);
27
+ return (_jsx(DataTableRow, { data: row, columns: columns, even: index % 2 === 1, first: index === 0, last: index === data.length - 1, className: cn("border-b", rowClassName), style: {
28
+ position: "absolute",
29
+ top: 0,
30
+ left: 0,
31
+ width: "100%",
32
+ height: `${virtualItem.size}px`,
33
+ transform: `translateY(${virtualItem.start}px)`,
34
+ ...viewStyle,
35
+ }, ...rowProps }, virtualItem.key));
36
+ }) }) }) }));
37
+ }
38
+ //# sourceMappingURL=data-table-virtualized-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-virtualized-body.js","sourceRoot":"","sources":["../../../../src/components/data-table/elements/data-table-virtualized-body.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,EAAE,EAAC,MAAM,IAAI,CAAC;AAEtB,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAC,wBAAwB,EAAC,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAC,YAAY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GAAG,WAAW,CAAC,KAAK,CAAC;oBAChC,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAM,CAAC;oBAC7B,MAAM,EAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,QAAQ,EAAC,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;oBACvF,OAAO,CACH,KAAC,YAAY,IAET,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,CAAC,KAAK,CAAC,EACrB,KAAK,EAAE,KAAK,KAAK,CAAC,EAClB,IAAI,EAAE,KAAK,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EAC/B,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,YAAY,CAAC,EACvC,KAAK,EAAE;4BACH,QAAQ,EAAE,UAAU;4BACpB,GAAG,EAAE,CAAC;4BACN,IAAI,EAAE,CAAC;4BACP,KAAK,EAAE,MAAM;4BACb,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,IAAI;4BAC/B,SAAS,EAAE,cAAc,WAAW,CAAC,KAAK,KAAK;4BAC/C,GAAG,SAAS;yBACf,KACG,QAAQ,IAhBP,WAAW,CAAC,GAAG,CAiBtB,CACL,CAAC;gBACN,CAAC,CAAC,GACA,GACQ,GAChB,CACT,CAAC;AACN,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Elements in `a` that are not in `b`.
3
+ * @example setDifference(new Set([1,2,3]), new Set([2,3,4])) // Set {1}
4
+ */
5
+ export declare function setDifference<T>(a: Set<T>, b: Set<T>): Set<T>;
6
+ /**
7
+ * All elements from both `a` and `b`.
8
+ * @example setUnion(new Set([1,2]), new Set([2,3])) // Set {1,2,3}
9
+ */
10
+ export declare function setUnion<T>(a: Set<T>, b: Set<T>): Set<T>;
11
+ /**
12
+ * Elements present in both `a` and `b`.
13
+ * @example setIntersection(new Set([1,2,3]), new Set([2,3,4])) // Set {2,3}
14
+ */
15
+ export declare function setIntersection<T>(a: Set<T>, b: Set<T>): Set<T>;
16
+ /**
17
+ * Elements in `a` or `b` but not both.
18
+ * @example setSymmetricDifference(new Set([1,2,3]), new Set([2,3,4])) // Set {1,4}
19
+ */
20
+ export declare function setSymmetricDifference<T>(a: Set<T>, b: Set<T>): Set<T>;
21
+ /**
22
+ * True if every element of `a` is in `b`.
23
+ * @example isSubset(new Set([1,2]), new Set([1,2,3])) // true
24
+ */
25
+ export declare function isSubset<T>(a: Set<T>, b: Set<T>): boolean;
26
+ /**
27
+ * True if `a` contains every element of `b`.
28
+ * @example isSuperset(new Set([1,2,3]), new Set([1,2])) // true
29
+ */
30
+ export declare function isSuperset<T>(a: Set<T>, b: Set<T>): boolean;
31
+ /**
32
+ * True if `a` and `b` share no elements.
33
+ * @example isDisjoint(new Set([1,2]), new Set([3,4])) // true
34
+ */
35
+ export declare function isDisjoint<T>(a: Set<T>, b: Set<T>): boolean;
36
+ /**
37
+ * True if `a` and `b` contain exactly the same elements.
38
+ * @example areSetsEqual(new Set([1,2,3]), new Set([3,1,2])) // true
39
+ */
40
+ export declare function areSetsEqual<T>(a: Set<T>, b: Set<T>): boolean;
41
+ //# sourceMappingURL=set-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-utils.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/set-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAQ7D;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAMxD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAQ/D;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAatE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAOzD;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAE3D;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAO3D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,OAAO,CAK7D"}
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Elements in `a` that are not in `b`.
3
+ * @example setDifference(new Set([1,2,3]), new Set([2,3,4])) // Set {1}
4
+ */
5
+ export function setDifference(a, b) {
6
+ const result = new Set();
7
+ for (const item of a) {
8
+ if (!b.has(item)) {
9
+ result.add(item);
10
+ }
11
+ }
12
+ return result;
13
+ }
14
+ /**
15
+ * All elements from both `a` and `b`.
16
+ * @example setUnion(new Set([1,2]), new Set([2,3])) // Set {1,2,3}
17
+ */
18
+ export function setUnion(a, b) {
19
+ const result = new Set(a);
20
+ for (const item of b) {
21
+ result.add(item);
22
+ }
23
+ return result;
24
+ }
25
+ /**
26
+ * Elements present in both `a` and `b`.
27
+ * @example setIntersection(new Set([1,2,3]), new Set([2,3,4])) // Set {2,3}
28
+ */
29
+ export function setIntersection(a, b) {
30
+ const result = new Set();
31
+ for (const item of a) {
32
+ if (b.has(item)) {
33
+ result.add(item);
34
+ }
35
+ }
36
+ return result;
37
+ }
38
+ /**
39
+ * Elements in `a` or `b` but not both.
40
+ * @example setSymmetricDifference(new Set([1,2,3]), new Set([2,3,4])) // Set {1,4}
41
+ */
42
+ export function setSymmetricDifference(a, b) {
43
+ const result = new Set();
44
+ for (const item of a) {
45
+ if (!b.has(item)) {
46
+ result.add(item);
47
+ }
48
+ }
49
+ for (const item of b) {
50
+ if (!a.has(item)) {
51
+ result.add(item);
52
+ }
53
+ }
54
+ return result;
55
+ }
56
+ /**
57
+ * True if every element of `a` is in `b`.
58
+ * @example isSubset(new Set([1,2]), new Set([1,2,3])) // true
59
+ */
60
+ export function isSubset(a, b) {
61
+ for (const item of a) {
62
+ if (!b.has(item)) {
63
+ return false;
64
+ }
65
+ }
66
+ return true;
67
+ }
68
+ /**
69
+ * True if `a` contains every element of `b`.
70
+ * @example isSuperset(new Set([1,2,3]), new Set([1,2])) // true
71
+ */
72
+ export function isSuperset(a, b) {
73
+ return isSubset(b, a);
74
+ }
75
+ /**
76
+ * True if `a` and `b` share no elements.
77
+ * @example isDisjoint(new Set([1,2]), new Set([3,4])) // true
78
+ */
79
+ export function isDisjoint(a, b) {
80
+ for (const item of a) {
81
+ if (b.has(item)) {
82
+ return false;
83
+ }
84
+ }
85
+ return true;
86
+ }
87
+ /**
88
+ * True if `a` and `b` contain exactly the same elements.
89
+ * @example areSetsEqual(new Set([1,2,3]), new Set([3,1,2])) // true
90
+ */
91
+ export function areSetsEqual(a, b) {
92
+ if (a.size !== b.size) {
93
+ return false;
94
+ }
95
+ return isSubset(a, b);
96
+ }
97
+ //# sourceMappingURL=set-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-utils.js","sourceRoot":"","sources":["../../../src/components/data-table/set-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAI,CAAS,EAAE,CAAS;IACjD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAK,CAAC;IAC5B,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACnB,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACf,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAI,CAAS,EAAE,CAAS;IAC5C,MAAM,MAAM,GAAG,IAAI,GAAG,CAAI,CAAC,CAAC,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACnB,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,eAAe,CAAI,CAAS,EAAE,CAAS;IACnD,MAAM,MAAM,GAAG,IAAI,GAAG,EAAK,CAAC;IAC5B,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACnB,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACd,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAI,CAAS,EAAE,CAAS;IAC1D,MAAM,MAAM,GAAG,IAAI,GAAG,EAAK,CAAC;IAC5B,KAAK,MAAM,IAAI,IAAI,CAAC,EAAE,CAAC;QACnB,IAAI,CAAC,CAAC,CAAC,GAAG,C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2
+ export type DataTableFilterFn = (cell: any) => boolean;
3
+ export type DataTableFiltersValue = {
4
+ [K: string]: DataTableFilterFn;
5
+ };
6
+ export declare class DataTableFilterView<T> extends DataTableView<T> {
7
+ private parent;
8
+ private filters;
9
+ private parentListener;
10
+ constructor(parent: DataTableView<T>, filters?: DataTableFiltersValue);
11
+ setParent(parent: DataTableView<T>): void;
12
+ setFilters(filters?: DataTableFiltersValue): void;
13
+ getFilters(): DataTableFiltersValue;
14
+ private filterParentData;
15
+ getColumns(): import("./data-table-view").DataTableViewColumn<T>[];
16
+ getRowProps(row: T): import("react").HTMLAttributes<HTMLDivElement>;
17
+ }
18
+ //# sourceMappingURL=data-table-filter-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-filter-view.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/views/data-table-filter-view.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAA;CAAC,CAAC;AAErE,qBAAa,mBAAmB,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IACxD,OAAO,CAAC,MAAM,CAAmB;IACjC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,cAAc,CAA2B;gBAErC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,OAAO,GAAE,qBAA0B;IAWzE,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC;IAUlC,UAAU,CAAC,OAAO,GAAE,qBAA0B;IAK9C,UAAU;IAKV,OAAO,CAAC,gBAAgB;IAqBxB,UAAU;IAIV,WAAW,CAAC,GAAG,EAAE,CAAC;CAIrB"}
@@ -0,0 +1,63 @@
1
+ "use client";
2
+ import { DataTableView } from "./data-table-view";
3
+ export class DataTableFilterView extends DataTableView {
4
+ parent;
5
+ filters;
6
+ parentListener;
7
+ constructor(parent, filters = {}) {
8
+ super();
9
+ this.parent = parent;
10
+ this.filters = filters;
11
+ this.parentListener = () => {
12
+ this.filterParentData();
13
+ this.emitUpdate();
14
+ };
15
+ this.setParent(parent);
16
+ }
17
+ setParent(parent) {
18
+ // unregister previous
19
+ this.parent.offUpdate(this.parentListener);
20
+ this.parent = parent;
21
+ this.parent.onUpdate(this.parentListener);
22
+ this.filterParentData();
23
+ this.emitUpdate();
24
+ }
25
+ setFilters(filters = {}) {
26
+ this.filters = filters;
27
+ this.filterParentData();
28
+ this.emitUpdate();
29
+ }
30
+ getFilters() {
31
+ return this.filters;
32
+ }
33
+ // process
34
+ filterParentData() {
35
+ const parentData = this.parent.getData();
36
+ const columns = this.getColumns();
37
+ const filters = this.filters;
38
+ this.data = parentData.filter((row) => {
39
+ for (const { id, rawCell } of columns) {
40
+ if (id in filters) {
41
+ const filter = filters[id];
42
+ if (filter !== undefined) {
43
+ const cellData = rawCell(row);
44
+ if (!filter(cellData)) {
45
+ return false;
46
+ }
47
+ }
48
+ }
49
+ }
50
+ return true;
51
+ });
52
+ }
53
+ // data flow
54
+ getColumns() {
55
+ // columns same as parent
56
+ return this.parent.getColumns();
57
+ }
58
+ getRowProps(row) {
59
+ // row props same as parent
60
+ return this.parent.getRowProps(row);
61
+ }
62
+ }
63
+ //# sourceMappingURL=data-table-filter-view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-table-filter-view.js","sourceRoot":"","sources":["../../../../src/components/data-table/views/data-table-filter-view.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAGb,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAMhD,MAAM,OAAO,mBAAuB,SAAQ,aAAgB;IAChD,MAAM,CAAmB;IACzB,OAAO,CAAwB;IAC/B,cAAc,CAA2B;IAEjD,YAAY,MAAwB,E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