@akshar-technosoft/ui 1.3.1 → 1.3.2

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 (338) hide show
  1. package/README.md +0 -0
  2. package/dist/components/core/error.cjs +3 -0
  3. package/dist/components/core/error.cjs.map +1 -0
  4. package/dist/components/core/error.d.cts +5 -0
  5. package/dist/components/core/error.d.ts +5 -0
  6. package/dist/components/core/error.js +3 -0
  7. package/dist/components/core/error.js.map +1 -0
  8. package/dist/components/core/event-success.cjs +3 -0
  9. package/dist/components/core/event-success.cjs.map +1 -0
  10. package/dist/components/core/event-success.d.cts +5 -0
  11. package/dist/components/core/event-success.d.ts +5 -0
  12. package/dist/components/core/event-success.js +3 -0
  13. package/dist/components/core/event-success.js.map +1 -0
  14. package/dist/components/core/index.cjs +3 -0
  15. package/dist/components/core/index.cjs.map +1 -0
  16. package/dist/components/core/index.d.cts +7 -0
  17. package/dist/components/core/index.d.ts +7 -0
  18. package/dist/components/core/index.js +3 -0
  19. package/dist/components/core/index.js.map +1 -0
  20. package/dist/components/core/loader.cjs +3 -0
  21. package/dist/components/core/loader.cjs.map +1 -0
  22. package/dist/components/core/loader.d.cts +5 -0
  23. package/dist/components/core/loader.d.ts +5 -0
  24. package/dist/components/core/loader.js +3 -0
  25. package/dist/components/core/loader.js.map +1 -0
  26. package/dist/components/core/notfound.cjs +3 -0
  27. package/dist/components/core/notfound.cjs.map +1 -0
  28. package/dist/components/core/notfound.d.cts +5 -0
  29. package/dist/components/core/notfound.d.ts +5 -0
  30. package/dist/components/core/notfound.js +3 -0
  31. package/dist/components/core/notfound.js.map +1 -0
  32. package/dist/components/core/offline-content.cjs +3 -0
  33. package/dist/components/core/offline-content.cjs.map +1 -0
  34. package/dist/components/core/offline-content.d.cts +5 -0
  35. package/dist/components/core/offline-content.d.ts +5 -0
  36. package/dist/components/core/offline-content.js +3 -0
  37. package/dist/components/core/offline-content.js.map +1 -0
  38. package/dist/components/core/unauthorized.cjs +3 -0
  39. package/dist/components/core/unauthorized.cjs.map +1 -0
  40. package/dist/components/core/unauthorized.d.cts +5 -0
  41. package/dist/components/core/unauthorized.d.ts +5 -0
  42. package/dist/components/core/unauthorized.js +3 -0
  43. package/dist/components/core/unauthorized.js.map +1 -0
  44. package/dist/components/data/data-table/data-table-action-bar.cjs +3 -0
  45. package/dist/components/data/data-table/data-table-action-bar.cjs.map +1 -0
  46. package/dist/components/data/data-table/data-table-action-bar.d.cts +26 -0
  47. package/dist/components/data/data-table/data-table-action-bar.d.ts +26 -0
  48. package/dist/components/data/data-table/data-table-action-bar.js +3 -0
  49. package/dist/components/data/data-table/data-table-action-bar.js.map +1 -0
  50. package/dist/components/data/data-table/data-table-aggregation.cjs +3 -0
  51. package/dist/components/data/data-table/data-table-aggregation.cjs.map +1 -0
  52. package/dist/components/data/data-table/data-table-aggregation.d.cts +25 -0
  53. package/dist/components/data/data-table/data-table-aggregation.d.ts +25 -0
  54. package/dist/components/data/data-table/data-table-aggregation.js +3 -0
  55. package/dist/components/data/data-table/data-table-aggregation.js.map +1 -0
  56. package/dist/components/data/data-table/data-table-columns.cjs +3 -0
  57. package/dist/components/data/data-table/data-table-columns.cjs.map +1 -0
  58. package/dist/components/data/data-table/data-table-columns.d.cts +20 -0
  59. package/dist/components/data/data-table/data-table-columns.d.ts +20 -0
  60. package/dist/components/data/data-table/data-table-columns.js +3 -0
  61. package/dist/components/data/data-table/data-table-columns.js.map +1 -0
  62. package/dist/components/data/data-table/data-table-export.cjs +3 -0
  63. package/dist/components/data/data-table/data-table-export.cjs.map +1 -0
  64. package/dist/components/data/data-table/data-table-export.d.cts +38 -0
  65. package/dist/components/data/data-table/data-table-export.d.ts +38 -0
  66. package/dist/components/data/data-table/data-table-export.js +3 -0
  67. package/dist/components/data/data-table/data-table-export.js.map +1 -0
  68. package/dist/components/data/data-table/data-table-filtering.cjs +3 -0
  69. package/dist/components/data/data-table/data-table-filtering.cjs.map +1 -0
  70. package/dist/components/data/data-table/data-table-filtering.d.cts +17 -0
  71. package/dist/components/data/data-table/data-table-filtering.d.ts +17 -0
  72. package/dist/components/data/data-table/data-table-filtering.js +3 -0
  73. package/dist/components/data/data-table/data-table-filtering.js.map +1 -0
  74. package/dist/components/data/data-table/data-table-footer.cjs +3 -0
  75. package/dist/components/data/data-table/data-table-footer.cjs.map +1 -0
  76. package/dist/components/data/data-table/data-table-footer.d.cts +21 -0
  77. package/dist/components/data/data-table/data-table-footer.d.ts +21 -0
  78. package/dist/components/data/data-table/data-table-footer.js +3 -0
  79. package/dist/components/data/data-table/data-table-footer.js.map +1 -0
  80. package/dist/components/data/data-table/data-table-header.cjs +3 -0
  81. package/dist/components/data/data-table/data-table-header.cjs.map +1 -0
  82. package/dist/components/data/data-table/data-table-header.d.cts +23 -0
  83. package/dist/components/data/data-table/data-table-header.d.ts +23 -0
  84. package/dist/components/data/data-table/data-table-header.js +3 -0
  85. package/dist/components/data/data-table/data-table-header.js.map +1 -0
  86. package/dist/components/data/data-table/data-table-pagination.cjs +3 -0
  87. package/dist/components/data/data-table/data-table-pagination.cjs.map +1 -0
  88. package/dist/components/data/data-table/data-table-pagination.d.cts +14 -0
  89. package/dist/components/data/data-table/data-table-pagination.d.ts +14 -0
  90. package/dist/components/data/data-table/data-table-pagination.js +3 -0
  91. package/dist/components/data/data-table/data-table-pagination.js.map +1 -0
  92. package/dist/components/data/data-table/data-table-persist.cjs +3 -0
  93. package/dist/components/data/data-table/data-table-persist.cjs.map +1 -0
  94. package/dist/components/data/data-table/data-table-persist.d.cts +103 -0
  95. package/dist/components/data/data-table/data-table-persist.d.ts +103 -0
  96. package/dist/components/data/data-table/data-table-persist.js +3 -0
  97. package/dist/components/data/data-table/data-table-persist.js.map +1 -0
  98. package/dist/components/data/data-table/data-table-pinning.cjs +3 -0
  99. package/dist/components/data/data-table/data-table-pinning.cjs.map +1 -0
  100. package/dist/components/data/data-table/data-table-pinning.d.cts +39 -0
  101. package/dist/components/data/data-table/data-table-pinning.d.ts +39 -0
  102. package/dist/components/data/data-table/data-table-pinning.js +3 -0
  103. package/dist/components/data/data-table/data-table-pinning.js.map +1 -0
  104. package/dist/components/data/data-table/data-table-toolbar-menus.cjs +3 -0
  105. package/dist/components/data/data-table/data-table-toolbar-menus.cjs.map +1 -0
  106. package/dist/components/data/data-table/data-table-toolbar-menus.d.cts +21 -0
  107. package/dist/components/data/data-table/data-table-toolbar-menus.d.ts +21 -0
  108. package/dist/components/data/data-table/data-table-toolbar-menus.js +3 -0
  109. package/dist/components/data/data-table/data-table-toolbar-menus.js.map +1 -0
  110. package/dist/components/data/data-table/data-table-toolbar.cjs +3 -0
  111. package/dist/components/data/data-table/data-table-toolbar.cjs.map +1 -0
  112. package/dist/components/data/data-table/data-table-toolbar.d.cts +36 -0
  113. package/dist/components/data/data-table/data-table-toolbar.d.ts +36 -0
  114. package/dist/components/data/data-table/data-table-toolbar.js +3 -0
  115. package/dist/components/data/data-table/data-table-toolbar.js.map +1 -0
  116. package/dist/components/data/data-table/data-table-types.cjs +3 -0
  117. package/dist/components/data/data-table/data-table-types.cjs.map +1 -0
  118. package/dist/components/data/data-table/data-table-types.d.cts +536 -0
  119. package/dist/components/data/data-table/data-table-types.d.ts +536 -0
  120. package/dist/components/data/data-table/data-table-types.js +2 -0
  121. package/dist/components/data/data-table/data-table-types.js.map +1 -0
  122. package/dist/components/data/data-table/data-table.cjs +3 -0
  123. package/dist/components/data/data-table/data-table.cjs.map +1 -0
  124. package/dist/components/data/data-table/data-table.d.cts +10 -0
  125. package/dist/components/data/data-table/data-table.d.ts +10 -0
  126. package/dist/components/data/data-table/data-table.js +3 -0
  127. package/dist/components/data/data-table/data-table.js.map +1 -0
  128. package/dist/components/data/data-table/index.cjs +3 -0
  129. package/dist/components/data/data-table/index.cjs.map +1 -0
  130. package/dist/components/data/data-table/index.d.cts +16 -0
  131. package/dist/components/data/data-table/index.d.ts +16 -0
  132. package/dist/components/data/data-table/index.js +3 -0
  133. package/dist/components/data/data-table/index.js.map +1 -0
  134. package/dist/components/data/data-table/use-table-filter-param.cjs +3 -0
  135. package/dist/components/data/data-table/use-table-filter-param.cjs.map +1 -0
  136. package/dist/components/data/data-table/use-table-filter-param.d.cts +37 -0
  137. package/dist/components/data/data-table/use-table-filter-param.d.ts +37 -0
  138. package/dist/components/data/data-table/use-table-filter-param.js +3 -0
  139. package/dist/components/data/data-table/use-table-filter-param.js.map +1 -0
  140. package/dist/components/data/data-table/use-table-persist.cjs +3 -0
  141. package/dist/components/data/data-table/use-table-persist.cjs.map +1 -0
  142. package/dist/components/data/data-table/use-table-persist.d.cts +36 -0
  143. package/dist/components/data/data-table/use-table-persist.d.ts +36 -0
  144. package/dist/components/data/data-table/use-table-persist.js +3 -0
  145. package/dist/components/data/data-table/use-table-persist.js.map +1 -0
  146. package/dist/components/data/data-template/data-template-action-bar.cjs +3 -0
  147. package/dist/components/data/data-template/data-template-action-bar.cjs.map +1 -0
  148. package/dist/components/data/data-template/data-template-action-bar.d.cts +14 -0
  149. package/dist/components/data/data-template/data-template-action-bar.d.ts +14 -0
  150. package/dist/components/data/data-template/data-template-action-bar.js +3 -0
  151. package/dist/components/data/data-template/data-template-action-bar.js.map +1 -0
  152. package/dist/components/data/data-template/data-template-pagination.cjs +3 -0
  153. package/dist/components/data/data-template/data-template-pagination.cjs.map +1 -0
  154. package/dist/components/data/data-template/data-template-pagination.d.cts +17 -0
  155. package/dist/components/data/data-template/data-template-pagination.d.ts +17 -0
  156. package/dist/components/data/data-template/data-template-pagination.js +3 -0
  157. package/dist/components/data/data-template/data-template-pagination.js.map +1 -0
  158. package/dist/components/data/data-template/data-template-toolbar.cjs +3 -0
  159. package/dist/components/data/data-template/data-template-toolbar.cjs.map +1 -0
  160. package/dist/components/data/data-template/data-template-toolbar.d.cts +27 -0
  161. package/dist/components/data/data-template/data-template-toolbar.d.ts +27 -0
  162. package/dist/components/data/data-template/data-template-toolbar.js +3 -0
  163. package/dist/components/data/data-template/data-template-toolbar.js.map +1 -0
  164. package/dist/components/data/data-template/data-template-types.cjs +3 -0
  165. package/dist/components/data/data-template/data-template-types.cjs.map +1 -0
  166. package/dist/components/data/data-template/data-template-types.d.cts +105 -0
  167. package/dist/components/data/data-template/data-template-types.d.ts +105 -0
  168. package/dist/components/data/data-template/data-template-types.js +2 -0
  169. package/dist/components/data/data-template/data-template-types.js.map +1 -0
  170. package/dist/components/data/data-template/data-template.cjs +3 -0
  171. package/dist/components/data/data-template/data-template.cjs.map +1 -0
  172. package/dist/components/data/data-template/data-template.d.cts +8 -0
  173. package/dist/components/data/data-template/data-template.d.ts +8 -0
  174. package/dist/components/data/data-template/data-template.js +3 -0
  175. package/dist/components/data/data-template/data-template.js.map +1 -0
  176. package/dist/components/data/data-template/index.cjs +3 -0
  177. package/dist/components/data/data-template/index.cjs.map +1 -0
  178. package/dist/components/data/data-template/index.d.cts +8 -0
  179. package/dist/components/data/data-template/index.d.ts +8 -0
  180. package/dist/components/data/data-template/index.js +3 -0
  181. package/dist/components/data/data-template/index.js.map +1 -0
  182. package/dist/components/date-helper.cjs +0 -0
  183. package/dist/components/date-helper.cjs.map +0 -0
  184. package/dist/components/date-helper.d.cts +0 -0
  185. package/dist/components/date-helper.d.ts +0 -0
  186. package/dist/components/date-helper.js +0 -0
  187. package/dist/components/date-helper.js.map +0 -0
  188. package/dist/components/general.cjs +0 -0
  189. package/dist/components/general.cjs.map +0 -0
  190. package/dist/components/general.d.cts +0 -0
  191. package/dist/components/general.d.ts +0 -0
  192. package/dist/components/general.js +0 -0
  193. package/dist/components/general.js.map +0 -0
  194. package/dist/components/helper/date-filter.cjs +3 -0
  195. package/dist/components/helper/date-filter.cjs.map +1 -0
  196. package/dist/components/helper/date-filter.d.cts +19 -0
  197. package/dist/components/helper/date-filter.d.ts +19 -0
  198. package/dist/components/helper/date-filter.js +3 -0
  199. package/dist/components/helper/date-filter.js.map +1 -0
  200. package/dist/components/layouts/app-container.cjs +3 -0
  201. package/dist/components/layouts/app-container.cjs.map +1 -0
  202. package/dist/components/layouts/app-container.d.cts +11 -0
  203. package/dist/components/layouts/app-container.d.ts +11 -0
  204. package/dist/components/layouts/app-container.js +3 -0
  205. package/dist/components/layouts/app-container.js.map +1 -0
  206. package/dist/components/layouts/app-content.cjs +3 -0
  207. package/dist/components/layouts/app-content.cjs.map +1 -0
  208. package/dist/components/layouts/app-content.d.cts +53 -0
  209. package/dist/components/layouts/app-content.d.ts +53 -0
  210. package/dist/components/layouts/app-content.js +3 -0
  211. package/dist/components/layouts/app-content.js.map +1 -0
  212. package/dist/components/layouts/app-footer.cjs +3 -0
  213. package/dist/components/layouts/app-footer.cjs.map +1 -0
  214. package/dist/components/layouts/app-footer.d.cts +17 -0
  215. package/dist/components/layouts/app-footer.d.ts +17 -0
  216. package/dist/components/layouts/app-footer.js +3 -0
  217. package/dist/components/layouts/app-footer.js.map +1 -0
  218. package/dist/components/layouts/app-header.cjs +3 -0
  219. package/dist/components/layouts/app-header.cjs.map +1 -0
  220. package/dist/components/layouts/app-header.d.cts +32 -0
  221. package/dist/components/layouts/app-header.d.ts +32 -0
  222. package/dist/components/layouts/app-header.js +3 -0
  223. package/dist/components/layouts/app-header.js.map +1 -0
  224. package/dist/components/layouts/index.cjs +3 -0
  225. package/dist/components/layouts/index.cjs.map +1 -0
  226. package/dist/components/layouts/index.d.cts +7 -0
  227. package/dist/components/layouts/index.d.ts +7 -0
  228. package/dist/components/layouts/index.js +3 -0
  229. package/dist/components/layouts/index.js.map +1 -0
  230. package/dist/components/ui/badge.cjs +3 -0
  231. package/dist/components/ui/badge.cjs.map +1 -0
  232. package/dist/components/ui/badge.d.cts +13 -0
  233. package/dist/components/ui/badge.d.ts +13 -0
  234. package/dist/components/ui/badge.js +3 -0
  235. package/dist/components/ui/badge.js.map +1 -0
  236. package/dist/components/ui/button.cjs +3 -0
  237. package/dist/components/ui/button.cjs.map +1 -0
  238. package/dist/components/ui/button.d.cts +14 -0
  239. package/dist/components/ui/button.d.ts +14 -0
  240. package/dist/components/ui/button.js +3 -0
  241. package/dist/components/ui/button.js.map +1 -0
  242. package/dist/components/ui/calendar.cjs +3 -0
  243. package/dist/components/ui/calendar.cjs.map +1 -0
  244. package/dist/components/ui/calendar.d.cts +13 -0
  245. package/dist/components/ui/calendar.d.ts +13 -0
  246. package/dist/components/ui/calendar.js +3 -0
  247. package/dist/components/ui/calendar.js.map +1 -0
  248. package/dist/components/ui/card.cjs +3 -0
  249. package/dist/components/ui/card.cjs.map +1 -0
  250. package/dist/components/ui/card.d.cts +12 -0
  251. package/dist/components/ui/card.d.ts +12 -0
  252. package/dist/components/ui/card.js +3 -0
  253. package/dist/components/ui/card.js.map +1 -0
  254. package/dist/components/ui/checkbox.cjs +3 -0
  255. package/dist/components/ui/checkbox.cjs.map +1 -0
  256. package/dist/components/ui/checkbox.d.cts +7 -0
  257. package/dist/components/ui/checkbox.d.ts +7 -0
  258. package/dist/components/ui/checkbox.js +3 -0
  259. package/dist/components/ui/checkbox.js.map +1 -0
  260. package/dist/components/ui/command.cjs +3 -0
  261. package/dist/components/ui/command.cjs.map +1 -0
  262. package/dist/components/ui/command.d.cts +20 -0
  263. package/dist/components/ui/command.d.ts +20 -0
  264. package/dist/components/ui/command.js +3 -0
  265. package/dist/components/ui/command.js.map +1 -0
  266. package/dist/components/ui/dialog.cjs +3 -0
  267. package/dist/components/ui/dialog.cjs.map +1 -0
  268. package/dist/components/ui/dialog.d.cts +16 -0
  269. package/dist/components/ui/dialog.d.ts +16 -0
  270. package/dist/components/ui/dialog.js +3 -0
  271. package/dist/components/ui/dialog.js.map +1 -0
  272. package/dist/components/ui/dropdown-menu.cjs +3 -0
  273. package/dist/components/ui/dropdown-menu.cjs.map +1 -0
  274. package/dist/components/ui/dropdown-menu.d.cts +28 -0
  275. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  276. package/dist/components/ui/dropdown-menu.js +3 -0
  277. package/dist/components/ui/dropdown-menu.js.map +1 -0
  278. package/dist/components/ui/input.cjs +3 -0
  279. package/dist/components/ui/input.cjs.map +1 -0
  280. package/dist/components/ui/input.d.cts +6 -0
  281. package/dist/components/ui/input.d.ts +6 -0
  282. package/dist/components/ui/input.js +3 -0
  283. package/dist/components/ui/input.js.map +1 -0
  284. package/dist/components/ui/popover.cjs +3 -0
  285. package/dist/components/ui/popover.cjs.map +1 -0
  286. package/dist/components/ui/popover.d.cts +10 -0
  287. package/dist/components/ui/popover.d.ts +10 -0
  288. package/dist/components/ui/popover.js +3 -0
  289. package/dist/components/ui/popover.js.map +1 -0
  290. package/dist/components/ui/select.cjs +3 -0
  291. package/dist/components/ui/select.cjs.map +1 -0
  292. package/dist/components/ui/select.d.cts +18 -0
  293. package/dist/components/ui/select.d.ts +18 -0
  294. package/dist/components/ui/select.js +3 -0
  295. package/dist/components/ui/select.js.map +1 -0
  296. package/dist/components/ui/separator.cjs +3 -0
  297. package/dist/components/ui/separator.cjs.map +1 -0
  298. package/dist/components/ui/separator.d.cts +7 -0
  299. package/dist/components/ui/separator.d.ts +7 -0
  300. package/dist/components/ui/separator.js +3 -0
  301. package/dist/components/ui/separator.js.map +1 -0
  302. package/dist/components/ui/sheet.cjs +3 -0
  303. package/dist/components/ui/sheet.cjs.map +1 -0
  304. package/dist/components/ui/sheet.d.cts +18 -0
  305. package/dist/components/ui/sheet.d.ts +18 -0
  306. package/dist/components/ui/sheet.js +3 -0
  307. package/dist/components/ui/sheet.js.map +1 -0
  308. package/dist/components/ui/table.cjs +3 -0
  309. package/dist/components/ui/table.cjs.map +1 -0
  310. package/dist/components/ui/table.d.cts +13 -0
  311. package/dist/components/ui/table.d.ts +13 -0
  312. package/dist/components/ui/table.js +3 -0
  313. package/dist/components/ui/table.js.map +1 -0
  314. package/dist/components/ui/toggle.cjs +3 -0
  315. package/dist/components/ui/toggle.cjs.map +1 -0
  316. package/dist/components/ui/toggle.d.cts +16 -0
  317. package/dist/components/ui/toggle.d.ts +16 -0
  318. package/dist/components/ui/toggle.js +3 -0
  319. package/dist/components/ui/toggle.js.map +1 -0
  320. package/dist/components/ui/tooltip.cjs +3 -0
  321. package/dist/components/ui/tooltip.cjs.map +1 -0
  322. package/dist/components/ui/tooltip.d.cts +10 -0
  323. package/dist/components/ui/tooltip.d.ts +10 -0
  324. package/dist/components/ui/tooltip.js +3 -0
  325. package/dist/components/ui/tooltip.js.map +1 -0
  326. package/dist/index.cjs +1 -1
  327. package/dist/index.cjs.map +1 -1
  328. package/dist/index.d.cts +28 -920
  329. package/dist/index.d.ts +28 -920
  330. package/dist/index.js +1 -1
  331. package/dist/index.js.map +1 -1
  332. package/dist/lib/utils.cjs +0 -0
  333. package/dist/lib/utils.cjs.map +0 -0
  334. package/dist/lib/utils.d.cts +0 -0
  335. package/dist/lib/utils.d.ts +0 -0
  336. package/dist/lib/utils.js +0 -0
  337. package/dist/lib/utils.js.map +0 -0
  338. package/package.json +92 -92
package/dist/index.d.ts CHANGED
@@ -1,921 +1,29 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Table, ColumnDef, Row } from '@tanstack/react-table';
3
- import { LucideIcon } from 'lucide-react';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
- import * as React$1 from 'react';
6
- import React__default, { ReactNode } from 'react';
7
- import { VariantProps } from 'class-variance-authority';
8
- import { motion } from 'framer-motion';
9
- import { RegisteredRoutes } from '@akshar-technosoft/router';
1
+ export { DataTable } from './components/data/data-table/data-table.js';
2
+ export { DataTableActionBar, DataTableActionBarAction, DataTableActionBarSelection } from './components/data/data-table/data-table-action-bar.js';
3
+ export { TableExportColumn, TableExportView, getTableExportView } from './components/data/data-table/data-table-export.js';
4
+ export { DataTableProps, GroupColumnDef } from './components/data/data-table/data-table-types.js';
5
+ export { PersistConfig, PersistGroupId, PersistGroupRegistry, PersistSlotFor, PersistSlotId, readPersistedExternal } from './components/data/data-table/data-table-persist.js';
6
+ export { FilterKeys, useTableFilterParam } from './components/data/data-table/use-table-filter-param.js';
7
+ export { DataTemplate } from './components/data/data-template/data-template.js';
8
+ export { DataTemplateProps } from './components/data/data-template/data-template-types.js';
9
+ export { DataTemplateActionBar, DataTemplateActionBarAction, DataTemplateActionBarSelection } from './components/data/data-template/data-template-action-bar.js';
10
+ export { AppContainer, AppContainerProps } from './components/layouts/app-container.js';
11
+ export { AppHeader, AppHeaderProps } from './components/layouts/app-header.js';
12
+ export { AppContent, AppContentFooter, AppContentHeader, AppContentProps, AppSheet, AppSheetProps } from './components/layouts/app-content.js';
13
+ export { AppFooter, AppFooterProps } from './components/layouts/app-footer.js';
10
14
  export { GeneralHelper } from './components/general.js';
11
-
12
- /**
13
- * Storage for the DataTable `persist` feature: filter values, global search text, external
14
- * (server) filter values and pagination survive unmount/back-navigation — in-memory by default,
15
- * optionally localStorage (`local: true`).
16
- *
17
- * Values are stored per FILTER IDENTITY (`key`/`id`), not as raw TanStack state — that's what
18
- * lets a `shared` slot apply across pages even when the pages use different filter keys or one
19
- * side is an `externalSearch` filter.
20
- */
21
- /**
22
- * Augment this interface ONCE in the app to get autocomplete + typo checking for `group` and
23
- * `shared` (without it both are plain strings):
24
- * ```ts
25
- * // src/types/table-persist.d.ts
26
- * declare module "@akshar-technosoft/ui" {
27
- * interface PersistGroupRegistry { inhouse: "party" | "material"; sales: "party" }
28
- * }
29
- * ```
30
- */
31
- interface PersistGroupRegistry {
32
- }
33
- type PersistGroupId = keyof PersistGroupRegistry extends never ? string : keyof PersistGroupRegistry & string;
34
- /** Every slot across every registered group — the un-narrowed fallback `PersistSlotFor` resolves
35
- * to when a specific group isn't pinned (e.g. `shared` typed before `persist.group` is set). */
36
- type PersistSlotId = keyof PersistGroupRegistry extends never ? string : PersistGroupRegistry[keyof PersistGroupRegistry] & string;
37
- /**
38
- * `shared`'s value type, narrowed to ONE group's own slots instead of every group's. `G` is
39
- * whatever `DataTableProps`'s own group type param resolves to for this table (see there for how
40
- * it gets pinned) — a real group key narrows to just that group's slots; `undefined` (no group
41
- * pinned yet) falls back to `PersistSlotId`, every group's slots, same as before this existed.
42
- */
43
- type PersistSlotFor<G extends PersistGroupId | undefined> = G extends keyof PersistGroupRegistry ? PersistGroupRegistry[G] & string : PersistSlotId;
44
- type PersistConfig<G extends PersistGroupId | undefined = PersistGroupId> = {
45
- /**
46
- * Unique id for this table ACROSS THE WHOLE APP (it's the storage map key, and the
47
- * localStorage key when `local: true`). Two tables with the same key share one saved state —
48
- * that's a bug unless you meant it. One page with two tables needs two keys.
49
- */
50
- key: string;
51
- /**
52
- * Namespace for `shared` filter slots — ONLY tables with the same group exchange those values
53
- * (a "party" slot in group "inhouse" never leaks into group "sales"). Required for `shared`
54
- * to do anything; a `shared` filter on a table without a group is inert (dev warning).
55
- *
56
- * Setting this is also what narrows `filters[].shared`'s autocomplete/type-check to just THIS
57
- * group's own slots — see `DataTableProps`'s `G` type param.
58
- */
59
- group?: G;
60
- /**
61
- * Also write to localStorage so state survives refresh/re-login.
62
- * NOTE: unlike zustand's `persist` middleware, the default here is IN-MEMORY (back-navigation
63
- * only); localStorage is the opt-in. Multi-client caveat: localStorage is per-browser, not
64
- * per-login — a client switch on the same machine sees the previous client's saved filters.
65
- * @default false
66
- */
67
- local?: boolean;
68
- /** Set false to persist filters only, not page index/size. @default true */
69
- pagination?: boolean;
70
- };
71
- /**
72
- * Persisted external (server) filter values for a table key — use in the PAGE's query-params
73
- * initializer so the very first request already carries the restored filters (otherwise the
74
- * default request fires once and is immediately superseded by the replayed one):
75
- * ```ts
76
- * const [params, setParams] = useState(() => ({ Status: "Completed", ...mapToParams(readPersistedExternal("qc-completed")) }))
77
- * ```
78
- */
79
- declare function readPersistedExternal(key: string): Record<string, unknown>;
80
-
81
- type TableExportColumn = {
82
- /** The column's id (accessorKey for accessor columns). */
83
- id: string;
84
- /** Header text: `exportHeader` if given, else the string `header`, else the id. */
85
- header: string;
86
- };
87
- /**
88
- * A plain, file-format-agnostic snapshot of what the table is currently showing: the visible
89
- * columns in display order and every row that survives the active filters and sorting (all pages,
90
- * not just the one on screen). Hand it to an app-side writer (Excel, CSV, print) — the table never
91
- * touches file generation itself, so the component stays free of heavy spreadsheet dependencies.
92
- */
93
- type TableExportView<TData = unknown> = {
94
- columns: TableExportColumn[];
95
- /** One array per row, cell values in `columns` order. Values keep their native type (number,
96
- * Date, boolean…) so the writer can apply proper cell formatting instead of dumping strings. */
97
- rows: unknown[][];
98
- /** The filtered + sorted row originals, same order as `rows`, for writers that want raw data. */
99
- originals: TData[];
100
- };
101
- /**
102
- * Build a {@link TableExportView} from the table's CURRENT state, exactly as the user shaped it:
103
- * hidden columns are skipped, column order (including pinning) is respected, and rows come from the
104
- * pre-pagination model, so they are filtered and sorted but not cut to the visible page.
105
- *
106
- * Which columns make it in: a visible column is exported when it has an accessor (accessorKey or
107
- * accessorFn) or a `exportValue` on its def. Display-only columns (actions, JSX-composed cells
108
- * without an accessor) are skipped unless they provide `exportValue`. A JSX `header` falls back to
109
- * the column id unless `exportHeader` names it.
110
- *
111
- * Call it anywhere you hold the table instance (from `onTableReady` or the `children` render prop);
112
- * the toolbar's Export button calls it for you and passes the result to `onExport`.
113
- */
114
- declare function getTableExportView<TData>(table: Table<TData>): TableExportView<TData>;
115
-
116
- type Paths<T, Prefix extends string = ''> = T extends object ? {
117
- [K in keyof T]: K extends string ? T[K] extends object ? Paths<T[K], `${Prefix}${K}.`> | `${Prefix}${K}` : `${Prefix}${K}` : never;
118
- }[keyof T] : never;
119
- type NumericKeys<T> = {
120
- [K in keyof T]: T[K] extends number ? K : never;
121
- }[keyof T];
122
- type AggregationConfigMap<TData> = {
123
- [K in NumericKeys<TData>]?: AggregationConfig<TData>;
124
- } & {
125
- [key: string]: AggregationConfig<TData> | undefined;
126
- };
127
- type AggregationFunction = 'sum' | 'average' | 'min' | 'max' | 'count' | 'unique' | 'median';
128
- type AggregationConfig<TData> = {
129
- enabled: boolean;
130
- functions?: AggregationFunction[];
131
- format?: (value: any, func: AggregationFunction) => string;
132
- accessor?: (row: TData) => number | null;
133
- };
134
- /** Fields shared by every filter control, independent of how it locates its value. `G` narrows
135
- * `shared` to one persist group's own slots — see `DataTableProps`'s `G` type param for how a
136
- * real value gets pinned instead of the default (every group's slots, undiscriminated). */
137
- type FilterControlConfig<G extends PersistGroupId | undefined = undefined> = {
138
- /** Input placeholder and the filter's display label (also used on chips and the grouped picker). */
139
- placeholder: string;
140
- /**
141
- * Which control to render and how the value is entered. Set it to match the field's shape so the
142
- * user gets the right input:
143
- * `'text'` (the default) is a free text box, matched as a case insensitive contains.
144
- * `'select'` is a dropdown of fixed choices; it requires `options`, and the picked value is
145
- * matched as given (use it for status, yes/no, category style fields).
146
- * `'date'` is a single date picker; `'daterange'` is a from/to range picker. Both accept `dateFormat`.
147
- * `'number'` is a numeric input.
148
- * @default "text"
149
- */
150
- type?: "text" | "select" | "date" | "daterange" | "number";
151
- /** Choices for `type: "select"`. Each `value` is what the filter matches; `label` is what the
152
- * user sees. Required when `type` is `"select"`; ignored otherwise. */
153
- options?: {
154
- label: string;
155
- value: string;
156
- }[];
157
- /** Tailwind width class for the control wrapper (e.g. `"max-w-[150px]"`). */
158
- width?: string;
159
- /** Leading icon inside the control. */
160
- icon?: LucideIcon;
161
- /**
162
- * Run this filter on the server instead of the local data. When set, the filter's value is NOT
163
- * applied to the in-memory rows; instead it is collected and handed to `onExternalSearch(values)`
164
- * so the parent can re-query the API. The call fires automatically at the control's natural commit
165
- * point: a `select` on pick, a `date`/`daterange` on Apply, and a `text` box after a short debounce.
166
- */
167
- externalSearch?: boolean;
168
- /** date-fns format string for displaying the selected date(s), e.g. "dd MMM yyyy". */
169
- dateFormat?: string;
170
- /**
171
- * Where this filter's control is placed inside the toolbar. Both variants require
172
- * `settings.showToolbar: true`, because every filter lives in the toolbar; with the toolbar off no
173
- * filter renders at all, whatever its placement.
174
- *
175
- * `'bar'` (the default) sits inline on the toolbar's left row and is always visible. Use it for the
176
- * few primary filters you combine constantly (for example product and category), so they stay side
177
- * by side.
178
- *
179
- * `'menu'` keeps the control off the bar: it becomes an option in the global search's field
180
- * picker (which appears automatically when `enableGlobalFilter` is on and any `'menu'` filter
181
- * exists), and while it holds a value it shows as a removable chip on the bar. Use it so many
182
- * filters don't fill the toolbar with boxes.
183
- *
184
- * @default 'bar'
185
- */
186
- placement?: "bar" | "menu";
187
- /**
188
- * Share this filter's VALUE across every page whose table has the same `persist.group`, under
189
- * this slot name (e.g. `shared: "party"` — search a party on one page, the next page in the
190
- * group opens already filtered to it). The slot stores only the value, so pages can bind it to
191
- * different filter keys, or even to an `externalSearch` filter. Requires `persist.group`.
192
- */
193
- shared?: PersistSlotFor<G>;
194
- /**
195
- * Set false to exclude this one filter from persistence (scan boxes, one-shot searches) while
196
- * the rest of the table persists. Inert without the table-level `persist` prop. @default true
197
- */
198
- persist?: boolean;
199
- };
200
- /**
201
- * A filter bound to a real data field by its path. Use this form (the common one) whenever the value
202
- * you filter on is a plain field on the row, flat or nested.
203
- *
204
- * `key` is a dot path into the row, validated against `T`, and doubles as the filter's identity. How
205
- * it filters depends on whether a column already owns that path:
206
- * If a visible column has the same `accessorKey`, the filter drives that column with TanStack's
207
- * built in case insensitive contains match. This is the normal, zero setup case.
208
- * If no column owns the path (the field is only shown inside another cell, for example a "SKU and
209
- * Category" cell that prints three fields), the table auto generates a hidden, filter only column
210
- * for it so the same contains match still works. You do not touch the `columns` array.
211
- *
212
- * Reach for {@link CustomFilterConfig} instead only when the match is not a plain contains on one
213
- * field, for example matching inside an array of objects or across several fields at once.
214
- */
215
- type PathFilterConfig<T, G extends PersistGroupId | undefined = undefined> = FilterControlConfig<G> & {
216
- /** Dot path into the row (validated against `T`). Serves as both the value source and the id. */
217
- key: Paths<T>;
218
- id?: never;
219
- filterFn?: never;
220
- };
221
- /**
222
- * A filter that owns its matching logic. Use this form when the value is not a plain field, for
223
- * example a cell holding an array of objects, or when one control should match across several fields.
224
- *
225
- * You provide `filterFn(row, value)`, which receives the whole row (so it can read any field or
226
- * array) and returns whether the row passes. The table wires it to an auto generated hidden, filter
227
- * only column, so it runs inside TanStack's normal filtering and AND combines with every other
228
- * filter; you never touch the `columns` array. `id` is any unique string that identifies this filter
229
- * (it does not need to be a real field, because `filterFn` reads the row itself).
230
- *
231
- * @example
232
- * // Match if ANY lot in the row's array has a matching number, and (separately) if any is urgent.
233
- * const filters = [
234
- * { id: "lotNo", type: "text", placeholder: "Lot No",
235
- * filterFn: (row, v) => row.lots.some(l => String(l.lotNo).toLowerCase().includes(String(v).toLowerCase())) },
236
- * { id: "urgentOnly", type: "select", placeholder: "Urgent", options: [{ label: "Urgent", value: "1" }],
237
- * filterFn: (row, v) => !v || row.lots.some(l => l.isUrgent) },
238
- * ];
239
- */
240
- type CustomFilterConfig<T, G extends PersistGroupId | undefined = undefined> = FilterControlConfig<G> & {
241
- /** Any unique string identifying this filter. Not required to be a real field, since `filterFn`
242
- * reads the row directly. */
243
- id: string;
244
- /** Predicate deciding whether a row passes. Receives the full row and the current filter value. */
245
- filterFn: (row: T, value: any) => boolean;
246
- key?: never;
247
- };
248
- /**
249
- * One toolbar filter control. Pick the form by how the value is located:
250
- * {@link PathFilterConfig} — pass `key` (a real dot path). The common case: flat or nested fields.
251
- * {@link CustomFilterConfig} — pass `id` + `filterFn`. For arrays of objects or multi field matches.
252
- * Either way the filtering runs through TanStack's model and AND combines; you never edit `columns`.
253
- *
254
- * `G` — the table's persist group, for narrowing `shared`'s autocomplete to that one group's
255
- * slots. Left to its default almost everywhere; see `DataTableProps` for where it's actually set.
256
- */
257
- type FilterConfig<T, G extends PersistGroupId | undefined = undefined> = PathFilterConfig<T, G> | CustomFilterConfig<T, G>;
258
- type PaginationConfig = {
259
- /** Rows per page initially. @default 10 */
260
- pageSize?: number;
261
- /** Options in the "Rows" selector. `-1` renders "All". Pass `[]` to hide the selector.
262
- * @default [10, 25, 50, 100, -1] */
263
- pageSizeOptions?: number[];
264
- /** Show the "Showing X to Y of Z" range text. @default true */
265
- showInfo?: boolean;
266
- /** Show numbered page buttons (with ellipsis window); otherwise just prev/next. @default false */
267
- showPageNumbers?: boolean;
268
- };
269
- /**
270
- * Feature and presentation toggles for the table. Every field is optional and its default is noted.
271
- * Many flags are inert unless a "master" flag is also on, and that coupling is the usual reason a
272
- * setting appears to do nothing. The master relationships:
273
- *
274
- * `showToolbar` owns everything drawn in the toolbar row (global search, the whole `filters` UI, the
275
- * Columns menu, the Aggregations menu, Export, Refresh, the bulk pin actions). The per column sort
276
- * and pin menus are drawn in the header instead, so they keep working when `showToolbar` is off.
277
- *
278
- * `enableFiltering` owns the filter engine. `enableGlobalFilter` can still render its box but will
279
- * not remove any rows while `enableFiltering` is off.
280
- *
281
- * `enableRowSelection` owns the select column. `selectionMode`, `showCheckbox`,
282
- * `enableHeaderCheckbox` and `fixedCheckboxColumn` are all inert without it.
283
- *
284
- * `enableColumnPinning` owns pinning, which `fixedCheckboxColumn` depends on.
285
- *
286
- * The global search's field picker appears automatically when `enableGlobalFilter` is on and
287
- * any filter has `placement: 'menu'` — there is no separate flag for it.
288
- */
289
- type TableSettings = {
290
- /**
291
- * Render the column header row. Turning it off also removes sorting, the pin menu and resize
292
- * handles (they live in the header) even when their flags are on. Suited to compact read-only
293
- * lists.
294
- * @default true
295
- */
296
- showHeader?: boolean;
297
- /**
298
- * Allow sorting. Clicking a sortable header cycles asc → desc → clear, and each header cell's "⋯"
299
- * menu offers the same actions explicitly; an arrow at the header's right edge shows the active
300
- * direction. Clicks on interactive elements inside custom JSX headers do not sort. The serial
301
- * "No." column sorts on its display index, so sorting it is rarely meaningful.
302
- * @default true
303
- */
304
- enableSorting?: boolean;
305
- /**
306
- * Render the toolbar row above the table. This is the largest master switch: with it off you lose
307
- * the global search, the entire `filters` UI (both bar filters and the "Filters" menu), the Columns
308
- * menu, the Aggregations menu, Export, Refresh and the bulk pin actions, because all of them are
309
- * hosted here. The header's own per column menus are unaffected. Enable it for data heavy screens; leave it off for display-only tables.
310
- * @default false
311
- */
312
- showToolbar?: boolean;
313
- /**
314
- * Placement of the toolbar relative to the card. `'default'` renders it outside and above the card.
315
- * `'above-header'` and `'below-header'` render it inside the card as a sticky band that stacks with
316
- * the optional `header` prop; the component measures these bands at runtime to compute the header's
317
- * sticky offset. Only relevant while `toolbar` is on.
318
- * @default 'default'
319
- */
320
- toolbarPosition?: 'above-header' | 'below-header' | 'default';
321
- /**
322
- * Install the filter row model. This is the engine both column filters and the global search run
323
- * on, so it is the real on and off for filtering: with it off a search box can render but no rows
324
- * are removed. Aggregations compute over the filtered rows, so they see the full data set when this
325
- * is off.
326
- * @default true
327
- */
328
- enableFiltering?: boolean;
329
- /**
330
- * Show the global search box. It matches a row's accessor columns only, with a case insensitive
331
- * contains test, so a column rendered purely through `cell` with no `accessorKey` or `accessorFn`
332
- * is invisible to it; give such a column an `accessorFn` to make it searchable. Needs `showToolbar` to
333
- * appear and `enableFiltering` to actually narrow rows.
334
- * @default true
335
- */
336
- enableGlobalFilter?: boolean;
337
- /**
338
- * Show the "Columns" menu that toggles column visibility. Columns marked `enableHiding: false` (the
339
- * serial and select helpers) never appear in it, and grouped columns are listed under their group
340
- * heading. It is part of the toolbar, so it needs `showToolbar` to be visible.
341
- * @default true
342
- */
343
- enableColumnVisibility?: boolean;
344
- /**
345
- * Add the leading selection column and turn on row selection. Selection is enforced at the table
346
- * level against `isRowSelectable`, so those rows cannot be caught even by select all, and
347
- * `onRowSelectionChange` reports only genuinely selectable rows. Master for the whole
348
- * selection group below.
349
- * @default true
350
- */
351
- enableRowSelection?: boolean;
352
- /**
353
- * Allow the user to drag column widths. Resizing runs live and the handles sit on the right edge of
354
- * each header cell, so `showHeader: false` removes the ability to resize. A pinned column is locked
355
- * to its size, so if you also pin, resize the column first and pin afterwards.
356
- * @default false
357
- */
358
- enableColumnResizing?: boolean;
359
- /**
360
- * Master switch for sticky pinned columns. The serial and select columns are always pinned left and
361
- * re-pinned on every change so they cannot drift. Users pin one column from the header's "⋯" menu
362
- * (works without the toolbar) or in bulk from the toolbar's settings menu. A pinned column is
363
- * clamped to its rendered width so its content cannot push it wider and break the sticky offsets.
364
- * @default true
365
- */
366
- enableColumnPinning?: boolean;
367
- /**
368
- * The header's select-all checkbox. Set false to grey it out while keeping per-row checkboxes
369
- * usable (select-all too costly/dangerous, manual multi-select still wanted). Only meaningful
370
- * in `'multiple'` mode.
371
- * @default true
372
- */
373
- enableHeaderCheckbox?: boolean;
374
- /**
375
- * Lock the select column in place by hiding its pin menu so users cannot move or unpin it. Needs
376
- * `enableRowSelection` and `enableColumnPinning`.
377
- * @remarks Half wired today: `onColumnPinningChange` re-pins the select column to the left on every
378
- * change regardless of this flag, so setting it `false` only exposes a pin menu whose Unpin has no
379
- * effect.
380
- * @default true
381
- */
382
- fixedCheckboxColumn?: boolean;
383
- /**
384
- * Show the leading "No." column. It prints the row's position in the current view (`index + 1`), so
385
- * it renumbers as you sort, filter or page and is not a stable record id. When any aggregation is
386
- * enabled its footer cell shows the total row count.
387
- * @default true
388
- */
389
- showSerialNumbers?: boolean;
390
- /**
391
- * Zebra stripe alternate rows for readability. The stripe follows a row's position on the current
392
- * page, so the pattern stays consistent as you page through the data.
393
- * @default true
394
- */
395
- striped?: boolean;
396
- /**
397
- * Highlight the row under the cursor. Selected rows keep a stronger background of their own, so the
398
- * hover and selected states stay distinguishable.
399
- * @default true
400
- */
401
- hoverable?: boolean;
402
- /**
403
- * Compact density. Tightens the vertical padding across header, body and footer cells so more rows
404
- * fit on screen. Turn it off for a roomier, more touch friendly layout.
405
- * @default true
406
- */
407
- compact?: boolean;
408
- /**
409
- * Draw cell separators. Interior columns get a right border, while the last column and the last
410
- * unpinned column before a right pinned group intentionally drop theirs, so the border never doubles
411
- * against a pinned column's sticky separator.
412
- * @default true
413
- */
414
- bordered?: boolean;
415
- /**
416
- * Let the table card flex to fill its parent's height, which only takes effect inside a parent that
417
- * has a bounded height. Pair it with `maxHeight` so the body scrolls while the header and footer
418
- * stay sticky. Use it for full page tables.
419
- * @default false
420
- */
421
- fullHeight?: boolean;
422
- /**
423
- * Selection style. `'multiple'` shows checkboxes plus a select all header checkbox. `'single'` shows
424
- * a radio, makes the whole row clickable, and selecting a row clears any previous selection. Needs
425
- * `enableRowSelection`.
426
- * @default "multiple"
427
- */
428
- selectionMode?: "single" | "multiple";
429
- /**
430
- * In `'single'` mode, whether to draw the radio control at all. With it `false` the radio is hidden
431
- * but the row stays clickable, which suits designs that select by clicking the row itself. No effect
432
- * in `'multiple'` mode.
433
- * @default true
434
- */
435
- showCheckbox?: boolean;
436
- /**
437
- * Show removable chips on the toolbar for applied `placement: 'menu'` filters, so collapsed
438
- * filters stay visible while active. Turn off if the bar gets cluttered — active menu filters
439
- * are then only visible through their control in the search field picker.
440
- * @default true
441
- */
442
- showFilterChips?: boolean;
443
- /**
444
- * Label on the global search's field picker while "all fields" is selected. The picker itself
445
- * appears automatically when `enableGlobalFilter` is on and at least one filter has
446
- * `placement: 'menu'`. @default "Global"
447
- */
448
- groupedFilterLabel?: string;
449
- };
450
- type ColumnFooter<TData> = {
451
- content?: React.ReactNode | ((table: Table<TData>) => React.ReactNode);
452
- align?: 'left' | 'center' | 'right';
453
- className?: string;
454
- };
455
- type TableHeaderProps = {
456
- content: React.ReactNode;
457
- align?: 'left' | 'center' | 'right';
458
- className?: string;
459
- showOnEmpty?: boolean;
460
- };
461
- type GroupColumnDef<TData> = ColumnDef<TData> & {
462
- columns?: GroupColumnDef<TData>[];
463
- enablePinning?: boolean;
464
- /**
465
- * Per-column override for `settings.enableColumnVisibility` — hide capability, not visibility
466
- * state. `false` keeps this column out of the toolbar's Columns menu and the header `⋯` menu's
467
- * Hide entry entirely, even while table-wide visibility toggling stays on for the rest. Same
468
- * effect as TanStack's native `enableHiding`, named to match the table-level setting — set
469
- * either one, not both (an explicit `enableHiding` wins if both are present).
470
- */
471
- enableColumnVisibility?: boolean;
472
- /**
473
- * Set `false` to hide the header's "⋯" options menu on this column entirely, regardless of
474
- * whether sorting/pinning/hiding would otherwise make it appear. Use this when a column
475
- * shouldn't offer the menu at all (e.g. an actions column) rather than disabling sorting and
476
- * pinning separately just to make the dots go away.
477
- */
478
- enableHeaderMenu?: boolean;
479
- /**
480
- * Reserve space on the right of the header for the sort chevron / "⋯" menu instead of letting
481
- * them float as a hover-only overlay. The rest of the table intentionally keeps that area as a
482
- * zero-width overlay so hovering never shifts layout — opt in here only for columns with a
483
- * custom interactive `header` (e.g. a button of your own) that the overlay would otherwise sit
484
- * on top of.
485
- */
486
- reserveMenuSpace?: boolean;
487
- headerAlign?: 'left' | 'center' | 'right';
488
- customFooter?: ColumnFooter<TData>;
489
- /**
490
- * Value this column contributes to an export (see `getTableExportView`). Without it the export
491
- * uses the column's accessor value, which covers plain columns; provide it when the cell renders
492
- * a JSX composite (several fields in one cell) so the export gets a flat printable value instead
493
- * of losing the column, and on display-only columns (no accessor) that should still export.
494
- * Return native types (number, Date…) so the writer can format cells properly.
495
- * @example exportValue: (row) => `${row.RefNo} (${row.RefDate})`
496
- */
497
- exportValue?: (row: TData) => unknown;
498
- /**
499
- * Header text used in exports when `header` is JSX and therefore unprintable. A plain string
500
- * `header` is used as-is and does not need this.
501
- */
502
- exportHeader?: string;
503
- /**
504
- * Pin this column by default, on mount. Applied once to the table's initial pinning state —
505
- * a user's later manual pin/unpin (via the header "⋯" menu) is never overridden.
506
- */
507
- defaultPin?: 'left' | 'right';
508
- /**
509
- * Order among columns that default-pin to the same side. Lower sits closer to the table's
510
- * outer edge. Defaults to declaration order when omitted. Inert without `defaultPin`.
511
- */
512
- pinIndex?: number;
513
- };
514
- /**
515
- * `G` — this table's persist group, ONLY relevant for narrowing `filters[].shared`'s
516
- * autocomplete/type-check to that one group's own slots (see `PersistSlotFor`). You never set it
517
- * explicitly for an inline `<DataTable persist={{group:"QC"}} filters={[...]} />` call: TS infers
518
- * it from `persist.group` and checks `filters` against it in the same pass, same as `TData`
519
- * infers from `data`/`columns`.
520
- *
521
- * It DOES need spelling out when `filters` is a separately declared `const` (the common pattern —
522
- * `const filters: DataTableProps<Row>["filters"] = [...]`), because that array gets its type at
523
- * its own declaration, independent of a `persist` prop written later in the same file. Add the
524
- * group there too: `DataTableProps<Row, "QC">["filters"]`.
525
- */
526
- type DataTableProps<TData, G extends PersistGroupId | undefined = undefined> = {
527
- /** Row data. Rendered client-side (filter/sort/paginate all in-memory unless server-driven). */
528
- data: TData[];
529
- /** Column definitions. TanStack `ColumnDef` plus a few extras; see {@link GroupColumnDef}. */
530
- columns: GroupColumnDef<TData>[];
531
- /** Toolbar filter controls (see {@link FilterConfig}); place each on the bar or behind the global
532
- * search's field picker via `FilterConfig.placement`. Debug: filters live in the toolbar, so none
533
- * render unless `settings.showToolbar: true`. */
534
- filters?: FilterConfig<TData, G>[];
535
- /** Pagination config — its presence enables pagination. Omit to render all rows. */
536
- pagination?: PaginationConfig;
537
- /** Feature and presentation toggles; see {@link TableSettings} for the full dependency map. */
538
- settings?: TableSettings;
539
- /** Title/header area above the table. Plain node, or {@link TableHeaderProps} for alignment control. */
540
- header?: React.ReactNode | TableHeaderProps;
541
- /** Sticky footer content (spans full width). */
542
- footer?: React.ReactNode;
543
- /** Extra class on the outer wrapper. */
544
- className?: string;
545
- /** Max height of the scroll container (enables sticky header/footer). @default "100%" */
546
- maxHeight?: string;
547
- /** Show the loading overlay. @default false */
548
- loading?: boolean;
549
- /** Error message. When set it replaces the table with an error card, which also offers Try Again
550
- * when `onRefresh` is given. */
551
- error?: string;
552
- /** Text shown when there are no rows. @default "No data available" */
553
- emptyMessage?: string;
554
- /** Fires with the selected row originals whenever selection changes. Requires `enableRowSelection`.
555
- * @remarks Unselectable rows (see `isRowSelectable`) are filtered out. */
556
- onRowSelectionChange?: (selectedRows: TData[]) => void;
557
- /**
558
- * Called by the toolbar Export button. `data` is the filtered + sorted row originals (all pages,
559
- * not just the visible one) and `view` is the ready-to-write snapshot of the visible columns and
560
- * cell values (see `getTableExportView` — call it yourself via `onTableReady` for export buttons
561
- * that live outside the toolbar). Feed `view` to the app's Excel/CSV writer.
562
- */
563
- onExport?: (data: TData[], view: TableExportView<TData>) => void;
564
- /** Called by the toolbar Refresh button (and the error card's Try Again). */
565
- onRefresh?: () => void;
566
- /** Escape hatch that hands you the TanStack `table` instance for imperative control. */
567
- onTableReady?: (table: Table<TData>) => void;
568
- /** Render-prop for an action bar etc.; receives the `table` instance. */
569
- children?: (table: Table<TData>) => React.ReactNode;
570
- /** Return false to make a row unselectable: its checkbox greys out, select-all skips it and
571
- * `onRowSelectionChange` never reports it. The row itself stays fully visible and interactive. */
572
- isRowSelectable?: (row: TData) => boolean;
573
- /**
574
- * Returns a **stable, unique id for a row**, derived from your own data. Forwarded straight to
575
- * TanStack's `getRowId`. You are not assigning an id — you point at the field(s) that already
576
- * uniquely identify the record, and TanStack calls this to read it.
577
- *
578
- * **Why it matters:** without it, selection (and expansion/pinning) is keyed by the row's *index in
579
- * the `data` array*. That is fine as long as the array never changes, but the moment `data` is
580
- * replaced or reordered — a refetch, a tab switch to a different list, an insert/delete that shifts
581
- * everything after it — index `2` now points at a different record, so the wrong rows appear
582
- * selected. With `getRowId`, selection is keyed by the record itself and survives all of that.
583
- *
584
- * (Client-side sort / filter / pagination alone do **not** need this — they don't mutate the `data`
585
- * array, so index-based ids stay correct. It's specifically array replacement/reordering that breaks.)
586
- *
587
- * **When to pass it:** any table that has row selection *and* whose `data` can be refetched,
588
- * reordered, or have rows added/removed. Also **required** for `defaultSelectedRows` to target rows
589
- * reliably. Display-only or never-refetched tables can omit it.
590
- *
591
- * Pick field(s) guaranteed unique per row; combine with `-` when no single field is unique.
592
- * @example getRowId={(row) => String(row.id)}
593
- * @example getRowId={(row) => `${row.Code}-${row.Type}`} // unique only as a pair
594
- */
595
- getRowId?: (row: TData, index: number) => string;
596
- /**
597
- * **Uncontrolled prefill.** Return `true` for rows that should start already selected. The table
598
- * keeps owning selection state afterwards — this only seeds the initial value (same idea as
599
- * `<input defaultChecked>`), so you do not have to manage a controlled selection yourself.
600
- *
601
- * **Timing:** seeded exactly once, after the first non-empty `data` load (so it works even when data
602
- * arrives async). It is *not* re-run on later data changes — that would wipe the user's own
603
- * selections on every refetch. To deliberately re-seed for a new dataset (e.g. switching tabs),
604
- * remount the table with a React `key`.
605
- *
606
- * **Safety:** only rows the table considers selectable are seeded — a row failing `isRowSelectable`
607
- * is skipped, so prefill can never select an unselectable row. Setting selection here
608
- * flows through the normal path, so `onRowSelectionChange`, the action bar, and any
609
- * "disable others once one is selected" logic react exactly as they do for a real user click.
610
- *
611
- * **Pair with `getRowId`** so the seeded rows are matched by record, not by array position.
612
- * @example defaultSelectedRows={(row) => row.WasPreviouslyPicked}
613
- */
614
- defaultSelectedRows?: (row: TData) => boolean;
615
- /** Server side search callback. Receives the staged external filter values when the Search button
616
- * is pressed; run your query here. */
617
- onExternalSearch?: (filters: Record<string, any>) => void;
618
- /** Column aggregations (footer sums / averages / counts …), parent-controlled. The footer row
619
- * appears whenever any column's config is `enabled`. Debug: the toolbar's Aggregations menu (to
620
- * toggle them from the UI) additionally needs `onAggregationChange` + `settings.showToolbar` + at
621
- * least one numeric column. @see AggregationConfigMap */
622
- aggregations?: AggregationConfigMap<TData>;
623
- /** Fires when the user toggles an aggregation in the toolbar menu; persist it into your
624
- * `aggregations` state (the component does not own it). Without this the toggle menu is hidden. */
625
- onAggregationChange?: (columnId: string, config: AggregationConfig<TData>) => void;
626
- /** Per-row className (e.g. status-based row colouring). */
627
- rowClassName?: (row: Row<TData>) => string;
628
- /**
629
- * Persist this table's filters, global search, external filter values and pagination across
630
- * unmount/back-navigation. In-memory by default (refresh = fresh); `local: true` adds
631
- * localStorage. String shorthand = `{ key }`. Absent = no persistence (today's behaviour).
632
- * Restore is synchronous (seeded before first render — no unfiltered flash); external filters
633
- * are replayed through `onExternalSearch` on mount (see `readPersistedExternal` to seed the
634
- * page's own query instead). Selection is never persisted. See {@link PersistConfig}.
635
- *
636
- * Setting `group` here is also what narrows every filter's `shared` (in the SAME `filters`
637
- * array literal) to just this group's own slots instead of every group's — see `DataTableProps`'s
638
- * `G` type param doc above for the one case (a separately-declared `filters` const) where you
639
- * have to spell `G` out yourself for that to kick in.
640
- * @example persist="qc-completed"
641
- * @example persist={{ key: "qc-completed", group: "inhouse", local: true }}
642
- */
643
- persist?: string | PersistConfig<G>;
644
- };
645
-
646
- declare function DataTable<T, G extends PersistGroupId | undefined = undefined>({ data, columns: initialColumns, filters, pagination, settings, header, footer, className, maxHeight, loading, error, emptyMessage, onRowSelectionChange, onExport, onRefresh, onTableReady, children, isRowSelectable, getRowId, defaultSelectedRows, onExternalSearch, aggregations, onAggregationChange, rowClassName, persist: persistProp, }: DataTableProps<T, G>): react_jsx_runtime.JSX.Element;
647
-
648
- declare const buttonVariants: (props?: ({
649
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
650
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
651
- } & class_variance_authority_types.ClassProp) | undefined) => string;
652
- declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
653
- asChild?: boolean;
654
- }): react_jsx_runtime.JSX.Element;
655
-
656
- interface DataTableActionBarProps<TData> extends React$1.ComponentProps<typeof motion.div> {
657
- table: Table<TData> | null;
658
- visible?: boolean;
659
- container?: Element | DocumentFragment | null;
660
- children: React$1.ReactNode;
661
- }
662
- declare function DataTableActionBar<TData>({ table, visible: visibleProp, container: containerProp, children, className, ...props }: DataTableActionBarProps<TData>): React$1.ReactPortal | null;
663
- interface DataTableActionBarActionProps extends React$1.ComponentProps<typeof Button> {
664
- tooltip?: string;
665
- isPending?: boolean;
666
- }
667
- declare function DataTableActionBarAction({ size, tooltip, isPending, disabled, className, children, ...props }: DataTableActionBarActionProps): react_jsx_runtime.JSX.Element;
668
- interface DataTableActionBarSelectionProps<TData> {
669
- table: Table<TData> | null;
670
- }
671
- declare function DataTableActionBarSelection<TData>({ table }: DataTableActionBarSelectionProps<TData>): react_jsx_runtime.JSX.Element | null;
672
-
673
- /** The union of every `key`/`id` declared in a `filters` array — same array you already pass
674
- * to `<DataTable filters={...} />`, so there's nothing new to author or keep in sync. Accepts
675
- * `| undefined` because `DataTableProps<T>["filters"]` (the type most call sites annotate their
676
- * local `filters` const with) is optional. Deliberately structural (`key?`/`id?`) and a plain
677
- * indexed access, NOT `FilterConfig<any>` + conditional inference: `PathFilterConfig.key` is the
678
- * recursive `Paths<T>`, and inferring through it against a union pattern made the checker blow
679
- * its instantiation-depth budget (TS2589) at real call sites. Indexed access reads the same keys
680
- * without re-instantiating any of that machinery. */
681
- type FilterKeys<F extends readonly {
682
- key?: string;
683
- id?: string;
684
- }[] | undefined> = Extract<NonNullable<F>[number]["key" | "id"], string>;
685
- /**
686
- * Live, typed escape hatch onto a table's filter state — for the case DataTable itself can't
687
- * cover: reading (or driving) a specific filter's CURRENT value from outside the table's own
688
- * subtree, as if it were a controlled `useState`.
689
- *
690
- * DataTable keeps `columnFilters` as private internal state — there's no prop/ref that exposes
691
- * it. But when the table's `persist` is on (the default now syncs filters to the URL, not just
692
- * memory — see `use-table-persist.ts`), the URL itself becomes that bridge: any component
693
- * anywhere can read or write a filter's value through it, live, without prop-drilling and
694
- * without DataTable exposing anything new.
695
- *
696
- * Reuses `useSearchParams` (react-router) directly — no separate subscription/store to keep in
697
- * sync, no effect, so no loop to guard against; `value` is a pure per-render derivation and
698
- * `setValue` writes with `replace: true` so it doesn't spam browser history.
699
- *
700
- * @example
701
- * const [lotNo, setLotNo] = useTableFilterParam(lotReportFilters, "LotNo")
702
- */
703
- declare function useTableFilterParam<F extends readonly {
704
- key?: string;
705
- id?: string;
706
- }[] | undefined, K extends FilterKeys<F>>(_filters: F, // not read at runtime — only anchors `K` to this table's real filter keys
707
- key: K): readonly [string | undefined, (next: string | undefined) => void];
708
-
709
- type DataTemplateField<T> = {
710
- key: keyof T;
711
- label: string;
712
- type?: "text" | "number" | "date" | "boolean";
713
- sortable?: boolean;
714
- filterable?: boolean;
715
- searchable?: boolean;
716
- };
717
- type DataTemplateFilter<T> = {
718
- key: keyof T;
719
- label: string;
720
- type: "text" | "select" | "date" | "number" | "boolean";
721
- options?: {
722
- label: string;
723
- value: string;
724
- }[];
725
- placeholder?: string;
726
- icon?: LucideIcon;
727
- };
728
- type DataTemplatePagination = {
729
- pageSize?: number;
730
- pageSizeOptions?: number[];
731
- showInfo?: boolean;
732
- showPageNumbers?: boolean;
733
- };
734
- type DataTemplateSettings = {
735
- enableSorting?: boolean;
736
- enableFiltering?: boolean;
737
- enableGlobalSearch?: boolean;
738
- enableSelection?: boolean;
739
- enableExport?: boolean;
740
- showToolbar?: boolean;
741
- selectionMode?: "single" | "multiple";
742
- gridCols?: {
743
- default: number;
744
- sm?: number;
745
- md?: number;
746
- lg?: number;
747
- xl?: number;
748
- "2xl"?: number;
749
- };
750
- gap?: number;
751
- aspectRatio?: "square" | "video" | "auto" | string;
752
- minCardWidth?: number;
753
- maxCardWidth?: number;
754
- };
755
- type DataTemplateType<T> = (item: T, index: number, isSelected: boolean, onToggleSelect: () => void) => ReactNode;
756
- type DataTemplateProps<T> = {
757
- data: T[];
758
- template: DataTemplateType<T>;
759
- fields: DataTemplateField<T>[];
760
- filters?: DataTemplateFilter<T>[];
761
- pagination?: DataTemplatePagination;
762
- settings?: DataTemplateSettings;
763
- header?: ReactNode;
764
- footer?: ReactNode;
765
- className?: string;
766
- loading?: boolean;
767
- error?: string;
768
- emptyMessage?: string;
769
- emptyIcon?: ReactNode;
770
- onSelectionChange?: (selectedItems: T[]) => void;
771
- onExport?: (data: T[]) => void;
772
- onRefresh?: () => void;
773
- onTemplateReady?: (controller: DataTemplateController<T>) => void;
774
- children?: (controller: DataTemplateController<T>) => ReactNode;
775
- };
776
- type DataTemplateController<T> = {
777
- getSelectedItems: () => T[];
778
- clearSelection: () => void;
779
- selectAll: () => void;
780
- getFilteredData: () => T[];
781
- getTotalCount: () => number;
782
- getVisibleCount: () => number;
783
- refresh: () => void;
784
- exportData: () => void;
785
- };
786
- type DataTemplateActionBarProps<T> = {
787
- controller: DataTemplateController<T>;
788
- visible?: boolean;
789
- container?: Element | DocumentFragment | null;
790
- children: React__default.ReactNode;
791
- className?: string;
792
- };
793
- type DataTemplateActionBarActionProps = {
794
- tooltip?: string;
795
- isPending?: boolean;
796
- size?: "sm" | "icon";
797
- variant?: "default" | "secondary" | "outline" | "ghost";
798
- disabled?: boolean;
799
- className?: string;
800
- children: React__default.ReactNode;
801
- onClick?: () => void;
802
- };
803
-
804
- declare function DataTemplate<T extends Record<string, any>>({ data, template, fields, filters, pagination, settings, header, footer, className, loading, error, emptyMessage, emptyIcon, onSelectionChange, onExport, onRefresh, onTemplateReady, children, }: DataTemplateProps<T>): react_jsx_runtime.JSX.Element;
805
-
806
- declare function DataTemplateActionBar<T>({ controller, visible: visibleProp, container: containerProp, children, className, ...props }: DataTemplateActionBarProps<T> & React$1.ComponentProps<typeof motion.div>): React$1.ReactPortal | null;
807
- declare function DataTemplateActionBarAction({ size, variant, tooltip, isPending, disabled, className, children, onClick, ...props }: DataTemplateActionBarActionProps): react_jsx_runtime.JSX.Element;
808
- interface DataTemplateActionBarSelectionProps<T> {
809
- controller: DataTemplateController<T>;
810
- }
811
- declare function DataTemplateActionBarSelection<T>({ controller }: DataTemplateActionBarSelectionProps<T>): react_jsx_runtime.JSX.Element | null;
812
-
813
- type AppContainerProps = {
814
- children: ReactNode;
815
- className?: string;
816
- };
817
- /** Page shell: full-height column, small gap between header/content/footer. */
818
- declare const AppContainer: ({ children, className }: AppContainerProps) => react_jsx_runtime.JSX.Element;
819
-
820
- type AppHeaderProps = {
821
- className?: string;
822
- title?: ReactNode;
823
- description?: string;
824
- /** Back arrow button left of the title: navigate via `href` (typed route) or `onClick`. */
825
- backAction?: {
826
- onClick?: () => void;
827
- href?: RegisteredRoutes;
828
- };
829
- /** Small label/value pairs rendered under the title. */
830
- metadata?: {
831
- label: string;
832
- value: ReactNode;
833
- }[];
834
- /**
835
- * Everything right of the title block. Rendered inside a `flex flex-1
836
- * items-center justify-end h-full` row, so content lands at the right edge
837
- * vertically centered — no wrapper needed. For a different layout add your
838
- * own flex utilities via `childrenClassName` (twMerge, later wins) or a
839
- * `<div className="flex-1" />` spacer / `mr-auto` on a child.
840
- */
841
- children?: ReactNode;
842
- /** Extra classes for the children row (e.g. `justify-between gap-2`). */
843
- childrenClassName?: string;
844
- };
845
- declare const AppHeader: ({ className, title, description, backAction, metadata, children, childrenClassName, }: AppHeaderProps) => react_jsx_runtime.JSX.Element;
846
-
847
- type BandProps = {
848
- children: React__default.ReactNode;
849
- className?: string;
850
- };
851
- /**
852
- * Pinned band above AppContent's scroll region (border-b, shares the parent's
853
- * padding). Must be a DIRECT child of AppContent — it is a marker: AppContent
854
- * extracts it and renders the band itself; anything else inside scrolls as body.
855
- */
856
- declare const AppContentHeader: (_props: BandProps) => null;
857
- /** Pinned band below the scroll region. Same contract as AppContentHeader. */
858
- declare const AppContentFooter: (_props: BandProps) => null;
859
- type AppSheetProps = {
860
- open: boolean;
861
- onOpenChange: (open: boolean) => void;
862
- /** Sheet edge. Default right. */
863
- side?: "left" | "right";
864
- /** Default true: sheet slides OVER the dimmed body (click outside closes).
865
- * `overlay={false}` = push mode: sheet takes its width, body shrinks.
866
- * Below 1024px push falls back to overlay automatically — a fixed-width
867
- * panel would leave the main content unusably cramped. */
868
- overlay?: boolean;
869
- /** Merged onto the panel's default `w-1/3 max-w-full` — override the width
870
- * (`w-1/2`, `w-[600px]`), round corners (`rounded-tr-lg`, `rounded-br-lg`,
871
- * `rounded-lg`…; default is square — round the outer corners, square off any
872
- * that touch an AppContentHeader/Footer band), or add styling (`p-0`). */
873
- className?: string;
874
- children: React__default.ReactNode;
875
- };
876
- /**
877
- * Side panel of an AppContent. Must be a DIRECT child of AppContent (marker,
878
- * same contract as the bands) — one sheet per AppContent. Controlled only.
879
- */
880
- declare const AppSheet: (_props: AppSheetProps) => null;
881
- type AppContentProps = {
882
- children: React__default.ReactNode;
883
- className?: string;
884
- /** Extra classes for the inner content wrapper (default has `p-2` — pass `p-0` to drop it). */
885
- contentClassName?: string;
886
- };
887
- /**
888
- * Page content region. Fills the remaining space of its flex parent
889
- * (`flex-auto min-h-0`) — the standard slot under AppContainer/AppHeader.
890
- * For a content-sized block override via className (`flex-none`) or pair with
891
- * an explicit height (`h-full`). Children scroll; AppContentHeader/Footer and
892
- * AppSheet direct children are extracted and rendered as pinned band / side panel.
893
- */
894
- declare const AppContent: ({ children: rawChildren, className, contentClassName, }: AppContentProps) => react_jsx_runtime.JSX.Element;
895
-
896
- type AppFooterProps = {
897
- className?: string;
898
- /**
899
- * Footer content, rendered into a padded flex row. The LAST child is pushed
900
- * to the right edge (`[&>*:last-child]:ml-auto`) — actions go last, any
901
- * leading children (status text, form fields) sit left with a `gap-4`.
902
- * Override per page via className (twMerge, later wins). Renders nothing
903
- * without children.
904
- */
905
- children?: ReactNode;
906
- };
907
- declare const AppFooter: ({ className, children }: AppFooterProps) => react_jsx_runtime.JSX.Element | null;
908
-
909
- declare const ErrorComponent: () => react_jsx_runtime.JSX.Element;
910
-
911
- declare function CurrencyTransfer(): react_jsx_runtime.JSX.Element;
912
-
913
- declare const Loader: () => react_jsx_runtime.JSX.Element;
914
-
915
- declare const NotFound: () => react_jsx_runtime.JSX.Element;
916
-
917
- declare const OfflineUI: () => react_jsx_runtime.JSX.Element;
918
-
919
- declare const Unauthorized: () => react_jsx_runtime.JSX.Element;
920
-
921
- export { AppContainer, type AppContainerProps, AppContent, AppContentFooter, AppContentHeader, type AppContentProps, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, AppSheet, type AppSheetProps, CurrencyTransfer, DataTable, DataTableActionBar, DataTableActionBarAction, DataTableActionBarSelection, type DataTableProps, DataTemplate, DataTemplateActionBar, DataTemplateActionBarAction, DataTemplateActionBarSelection, type DataTemplateProps, ErrorComponent, type FilterKeys, type GroupColumnDef, Loader, NotFound, OfflineUI, type PersistConfig, type PersistGroupId, type PersistGroupRegistry, type PersistSlotFor, type PersistSlotId, type TableExportColumn, type TableExportView, Unauthorized, getTableExportView, readPersistedExternal, useTableFilterParam };
15
+ export { ErrorComponent } from './components/core/error.js';
16
+ export { CurrencyTransfer } from './components/core/event-success.js';
17
+ export { Loader } from './components/core/loader.js';
18
+ export { NotFound } from './components/core/notfound.js';
19
+ export { OfflineUI } from './components/core/offline-content.js';
20
+ export { Unauthorized } from './components/core/unauthorized.js';
21
+ import 'react/jsx-runtime';
22
+ import './components/ui/button.js';
23
+ import 'class-variance-authority/types';
24
+ import 'react';
25
+ import 'class-variance-authority';
26
+ import '@tanstack/react-table';
27
+ import 'framer-motion';
28
+ import 'lucide-react';
29
+ import '@akshar-technosoft/router';