@alneas/appkit-react 0.1.0 → 0.2.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 (659) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +85 -15
  3. package/consumer-ai/SKILL.md +12 -0
  4. package/consumer-ai/api-index.json +103754 -0
  5. package/consumer-ai/package-context.json +409 -0
  6. package/dist/ai/action/ExecutionHistory.cjs.map +1 -1
  7. package/dist/ai/action/ExecutionHistory.d.cts +32 -2
  8. package/dist/ai/action/ExecutionHistory.d.ts +32 -2
  9. package/dist/ai/action/ExecutionHistory.js.map +1 -1
  10. package/dist/ai/action/ScreenActionContext.cjs.map +1 -1
  11. package/dist/ai/action/ScreenActionContext.d.cts +15 -2
  12. package/dist/ai/action/ScreenActionContext.d.ts +15 -2
  13. package/dist/ai/action/ScreenActionContext.js.map +1 -1
  14. package/dist/ai/action/context.cjs.map +1 -1
  15. package/dist/ai/action/context.d.cts +19 -3
  16. package/dist/ai/action/context.d.ts +19 -3
  17. package/dist/ai/action/context.js.map +1 -1
  18. package/dist/ai/action/types.d.cts +35 -3
  19. package/dist/ai/action/types.d.ts +35 -3
  20. package/dist/ai/action/use-execution-session.cjs.map +1 -1
  21. package/dist/ai/action/use-execution-session.d.cts +17 -1
  22. package/dist/ai/action/use-execution-session.d.ts +17 -1
  23. package/dist/ai/action/use-execution-session.js.map +1 -1
  24. package/dist/ai/action/use-screen-action-registry.cjs.map +1 -1
  25. package/dist/ai/action/use-screen-action-registry.d.cts +77 -8
  26. package/dist/ai/action/use-screen-action-registry.d.ts +77 -8
  27. package/dist/ai/action/use-screen-action-registry.js.map +1 -1
  28. package/dist/ai/action/use-screen-action.cjs.map +1 -1
  29. package/dist/ai/action/use-screen-action.d.cts +23 -6
  30. package/dist/ai/action/use-screen-action.d.ts +23 -6
  31. package/dist/ai/action/use-screen-action.js.map +1 -1
  32. package/dist/ai/action/use-screen-context.cjs.map +1 -1
  33. package/dist/ai/action/use-screen-context.d.cts +42 -5
  34. package/dist/ai/action/use-screen-context.d.ts +42 -5
  35. package/dist/ai/action/use-screen-context.js.map +1 -1
  36. package/dist/ai/ai-chat/transport.cjs.map +1 -1
  37. package/dist/ai/ai-chat/transport.d.cts +35 -8
  38. package/dist/ai/ai-chat/transport.d.ts +35 -8
  39. package/dist/ai/ai-chat/transport.js.map +1 -1
  40. package/dist/ai/generative-ui/GenerativeUIRenderer.cjs.map +1 -1
  41. package/dist/ai/generative-ui/GenerativeUIRenderer.d.cts +21 -3
  42. package/dist/ai/generative-ui/GenerativeUIRenderer.d.ts +21 -3
  43. package/dist/ai/generative-ui/GenerativeUIRenderer.js.map +1 -1
  44. package/dist/ai/generative-ui/error-boundary.cjs.map +1 -1
  45. package/dist/ai/generative-ui/error-boundary.d.cts +98 -2
  46. package/dist/ai/generative-ui/error-boundary.d.ts +98 -2
  47. package/dist/ai/generative-ui/error-boundary.js.map +1 -1
  48. package/dist/ai/generative-ui/registry.cjs.map +1 -1
  49. package/dist/ai/generative-ui/registry.d.cts +96 -7
  50. package/dist/ai/generative-ui/registry.d.ts +96 -7
  51. package/dist/ai/generative-ui/registry.js.map +1 -1
  52. package/dist/ai/proposal/ProposalFieldReview.cjs.map +1 -1
  53. package/dist/ai/proposal/ProposalFieldReview.d.cts +170 -8
  54. package/dist/ai/proposal/ProposalFieldReview.d.ts +170 -8
  55. package/dist/ai/proposal/ProposalFieldReview.js.map +1 -1
  56. package/dist/ai/proposal/types.d.cts +97 -26
  57. package/dist/ai/proposal/types.d.ts +97 -26
  58. package/dist/ai/proposal/use-proposal-batch-review.cjs.map +1 -1
  59. package/dist/ai/proposal/use-proposal-batch-review.d.cts +133 -7
  60. package/dist/ai/proposal/use-proposal-batch-review.d.ts +133 -7
  61. package/dist/ai/proposal/use-proposal-batch-review.js.map +1 -1
  62. package/dist/ai/proposal/use-proposal-review.cjs.map +1 -1
  63. package/dist/ai/proposal/use-proposal-review.d.cts +47 -5
  64. package/dist/ai/proposal/use-proposal-review.d.ts +47 -5
  65. package/dist/ai/proposal/use-proposal-review.js.map +1 -1
  66. package/dist/avatar.svg +1 -0
  67. package/dist/consumer-ai/SKILL.md +6 -0
  68. package/dist/consumer-ai/api-index.json +103754 -0
  69. package/dist/consumer-ai/package-context.json +5 -3
  70. package/dist/mockServiceWorker.js +361 -0
  71. package/dist/styles.css +1 -1
  72. package/dist/tools/components/auth/AuthForms.cjs.map +1 -1
  73. package/dist/tools/components/auth/AuthForms.d.cts +131 -81
  74. package/dist/tools/components/auth/AuthForms.d.ts +131 -81
  75. package/dist/tools/components/auth/AuthForms.js.map +1 -1
  76. package/dist/tools/components/auth/AuthGuard.cjs.map +1 -1
  77. package/dist/tools/components/auth/AuthGuard.d.cts +31 -4
  78. package/dist/tools/components/auth/AuthGuard.d.ts +31 -4
  79. package/dist/tools/components/auth/AuthGuard.js.map +1 -1
  80. package/dist/tools/components/auth/AuthProvider.cjs.map +1 -1
  81. package/dist/tools/components/auth/AuthProvider.d.cts +39 -42
  82. package/dist/tools/components/auth/AuthProvider.d.ts +39 -42
  83. package/dist/tools/components/auth/AuthProvider.js.map +1 -1
  84. package/dist/tools/components/auth/ProtectedRoute.cjs.map +1 -1
  85. package/dist/tools/components/auth/ProtectedRoute.d.cts +75 -60
  86. package/dist/tools/components/auth/ProtectedRoute.d.ts +75 -60
  87. package/dist/tools/components/auth/ProtectedRoute.js.map +1 -1
  88. package/dist/tools/components/auth/SignInButton.cjs.map +1 -1
  89. package/dist/tools/components/auth/SignInButton.d.cts +26 -18
  90. package/dist/tools/components/auth/SignInButton.d.ts +26 -18
  91. package/dist/tools/components/auth/SignInButton.js.map +1 -1
  92. package/dist/tools/components/auth/UserProfileProvider.cjs.map +1 -1
  93. package/dist/tools/components/auth/UserProfileProvider.d.cts +48 -20
  94. package/dist/tools/components/auth/UserProfileProvider.d.ts +48 -20
  95. package/dist/tools/components/auth/UserProfileProvider.js.map +1 -1
  96. package/dist/tools/components/auth/adapters/better-auth-adapter.cjs.map +1 -1
  97. package/dist/tools/components/auth/adapters/better-auth-adapter.d.cts +371 -51
  98. package/dist/tools/components/auth/adapters/better-auth-adapter.d.ts +371 -51
  99. package/dist/tools/components/auth/adapters/better-auth-adapter.js.map +1 -1
  100. package/dist/tools/components/auth/adapters/mock-adapter.cjs.map +1 -1
  101. package/dist/tools/components/auth/adapters/mock-adapter.d.cts +149 -28
  102. package/dist/tools/components/auth/adapters/mock-adapter.d.ts +149 -28
  103. package/dist/tools/components/auth/adapters/mock-adapter.js.map +1 -1
  104. package/dist/tools/components/auth/auth-session.cjs.map +1 -1
  105. package/dist/tools/components/auth/auth-session.d.cts +147 -1
  106. package/dist/tools/components/auth/auth-session.d.ts +147 -1
  107. package/dist/tools/components/auth/auth-session.js.map +1 -1
  108. package/dist/tools/components/auth/session-cache.cjs.map +1 -1
  109. package/dist/tools/components/auth/session-cache.d.cts +88 -24
  110. package/dist/tools/components/auth/session-cache.d.ts +88 -24
  111. package/dist/tools/components/auth/session-cache.js.map +1 -1
  112. package/dist/tools/components/auth/types.cjs.map +1 -1
  113. package/dist/tools/components/auth/types.d.cts +329 -106
  114. package/dist/tools/components/auth/types.d.ts +329 -106
  115. package/dist/tools/components/auth/types.js.map +1 -1
  116. package/dist/tools/components/auth/useAuth.cjs.map +1 -1
  117. package/dist/tools/components/auth/useAuth.d.cts +110 -17
  118. package/dist/tools/components/auth/useAuth.d.ts +110 -17
  119. package/dist/tools/components/auth/useAuth.js.map +1 -1
  120. package/dist/tools/components/auth/useAuthGuard.cjs.map +1 -1
  121. package/dist/tools/components/auth/useAuthGuard.d.cts +49 -38
  122. package/dist/tools/components/auth/useAuthGuard.d.ts +49 -38
  123. package/dist/tools/components/auth/useAuthGuard.js.map +1 -1
  124. package/dist/tools/components/auth/useRoleCheck.cjs.map +1 -1
  125. package/dist/tools/components/auth/useRoleCheck.d.cts +48 -1
  126. package/dist/tools/components/auth/useRoleCheck.d.ts +48 -1
  127. package/dist/tools/components/auth/useRoleCheck.js.map +1 -1
  128. package/dist/tools/components/auth/useUserProfile.cjs.map +1 -1
  129. package/dist/tools/components/auth/useUserProfile.d.cts +66 -1
  130. package/dist/tools/components/auth/useUserProfile.d.ts +66 -1
  131. package/dist/tools/components/auth/useUserProfile.js.map +1 -1
  132. package/dist/tools/components/barcode/BarcodeGenerator.cjs.map +1 -1
  133. package/dist/tools/components/barcode/BarcodeGenerator.d.cts +32 -18
  134. package/dist/tools/components/barcode/BarcodeGenerator.d.ts +32 -18
  135. package/dist/tools/components/barcode/BarcodeGenerator.js.map +1 -1
  136. package/dist/tools/components/barcode/QRCodeGenerator.cjs +1 -1
  137. package/dist/tools/components/barcode/QRCodeGenerator.cjs.map +1 -1
  138. package/dist/tools/components/barcode/QRCodeGenerator.d.cts +20 -13
  139. package/dist/tools/components/barcode/QRCodeGenerator.d.ts +20 -13
  140. package/dist/tools/components/barcode/QRCodeGenerator.js +1 -1
  141. package/dist/tools/components/barcode/QRCodeGenerator.js.map +1 -1
  142. package/dist/tools/components/barcode/QRCodeScanner.cjs.map +1 -1
  143. package/dist/tools/components/barcode/QRCodeScanner.d.cts +32 -1
  144. package/dist/tools/components/barcode/QRCodeScanner.d.ts +32 -1
  145. package/dist/tools/components/barcode/QRCodeScanner.js.map +1 -1
  146. package/dist/tools/components/calendar/ResourceCalendar.cjs.map +1 -1
  147. package/dist/tools/components/calendar/ResourceCalendar.d.cts +17 -42
  148. package/dist/tools/components/calendar/ResourceCalendar.d.ts +17 -42
  149. package/dist/tools/components/calendar/ResourceCalendar.js.map +1 -1
  150. package/dist/tools/components/calendar/views/ResourceView.cjs +1 -1
  151. package/dist/tools/components/calendar/views/ResourceView.cjs.map +1 -1
  152. package/dist/tools/components/calendar/views/ResourceView.js +2 -2
  153. package/dist/tools/components/calendar/views/ResourceView.js.map +1 -1
  154. package/dist/tools/components/chart/ComposedChart.cjs.map +1 -1
  155. package/dist/tools/components/chart/ComposedChart.d.cts +54 -1
  156. package/dist/tools/components/chart/ComposedChart.d.ts +54 -1
  157. package/dist/tools/components/chart/ComposedChart.js.map +1 -1
  158. package/dist/tools/components/chart/SimpleAreaChart.cjs.map +1 -1
  159. package/dist/tools/components/chart/SimpleAreaChart.d.cts +41 -1
  160. package/dist/tools/components/chart/SimpleAreaChart.d.ts +41 -1
  161. package/dist/tools/components/chart/SimpleAreaChart.js.map +1 -1
  162. package/dist/tools/components/chart/SimpleBarChart.cjs.map +1 -1
  163. package/dist/tools/components/chart/SimpleBarChart.d.cts +34 -24
  164. package/dist/tools/components/chart/SimpleBarChart.d.ts +34 -24
  165. package/dist/tools/components/chart/SimpleBarChart.js.map +1 -1
  166. package/dist/tools/components/chart/SimpleLineChart.cjs.map +1 -1
  167. package/dist/tools/components/chart/SimpleLineChart.d.cts +31 -28
  168. package/dist/tools/components/chart/SimpleLineChart.d.ts +31 -28
  169. package/dist/tools/components/chart/SimpleLineChart.js.map +1 -1
  170. package/dist/tools/components/chart/SimplePieChart.cjs.map +1 -1
  171. package/dist/tools/components/chart/SimplePieChart.d.cts +28 -22
  172. package/dist/tools/components/chart/SimplePieChart.d.ts +28 -22
  173. package/dist/tools/components/chart/SimplePieChart.js.map +1 -1
  174. package/dist/tools/components/chart/SimpleRadarChart.cjs.map +1 -1
  175. package/dist/tools/components/chart/SimpleRadarChart.d.cts +38 -1
  176. package/dist/tools/components/chart/SimpleRadarChart.d.ts +38 -1
  177. package/dist/tools/components/chart/SimpleRadarChart.js.map +1 -1
  178. package/dist/tools/components/chart/SimpleScatterChart.cjs.map +1 -1
  179. package/dist/tools/components/chart/SimpleScatterChart.d.cts +44 -1
  180. package/dist/tools/components/chart/SimpleScatterChart.d.ts +44 -1
  181. package/dist/tools/components/chart/SimpleScatterChart.js.map +1 -1
  182. package/dist/tools/components/chart/StackedBarChart.cjs.map +1 -1
  183. package/dist/tools/components/chart/StackedBarChart.d.cts +38 -1
  184. package/dist/tools/components/chart/StackedBarChart.d.ts +38 -1
  185. package/dist/tools/components/chart/StackedBarChart.js.map +1 -1
  186. package/dist/tools/components/data-table/data-table.cjs +1 -1
  187. package/dist/tools/components/data-table/data-table.cjs.map +1 -1
  188. package/dist/tools/components/data-table/data-table.js +286 -263
  189. package/dist/tools/components/data-table/data-table.js.map +1 -1
  190. package/dist/tools/components/data-table/table-utils.cjs.map +1 -1
  191. package/dist/tools/components/data-table/table-utils.d.cts +45 -35
  192. package/dist/tools/components/data-table/table-utils.d.ts +45 -35
  193. package/dist/tools/components/data-table/table-utils.js.map +1 -1
  194. package/dist/tools/components/editable-table/editable-table.cjs +1 -1
  195. package/dist/tools/components/editable-table/editable-table.cjs.map +1 -1
  196. package/dist/tools/components/editable-table/editable-table.js +15 -2
  197. package/dist/tools/components/editable-table/editable-table.js.map +1 -1
  198. package/dist/tools/components/error/ErrorDialog.cjs +1 -1
  199. package/dist/tools/components/error/ErrorDialog.cjs.map +1 -1
  200. package/dist/tools/components/error/ErrorDialog.js +1 -1
  201. package/dist/tools/components/error/ErrorDialog.js.map +1 -1
  202. package/dist/tools/components/error/ErrorInline.cjs +1 -1
  203. package/dist/tools/components/error/ErrorInline.cjs.map +1 -1
  204. package/dist/tools/components/error/ErrorInline.js +1 -1
  205. package/dist/tools/components/error/ErrorInline.js.map +1 -1
  206. package/dist/tools/components/error/ErrorNotification.cjs +1 -1
  207. package/dist/tools/components/error/ErrorNotification.cjs.map +1 -1
  208. package/dist/tools/components/error/ErrorNotification.js +10 -10
  209. package/dist/tools/components/error/ErrorNotification.js.map +1 -1
  210. package/dist/tools/components/file-browser/FilePreview.cjs +1 -1
  211. package/dist/tools/components/file-browser/FilePreview.cjs.map +1 -1
  212. package/dist/tools/components/file-browser/FilePreview.js +28 -26
  213. package/dist/tools/components/file-browser/FilePreview.js.map +1 -1
  214. package/dist/tools/components/filter/filter.cjs.map +1 -1
  215. package/dist/tools/components/filter/filter.d.cts +23 -34
  216. package/dist/tools/components/filter/filter.d.ts +23 -34
  217. package/dist/tools/components/filter/filter.js.map +1 -1
  218. package/dist/tools/components/form/EnhancedDetailPage.cjs.map +1 -1
  219. package/dist/tools/components/form/EnhancedDetailPage.d.cts +47 -42
  220. package/dist/tools/components/form/EnhancedDetailPage.d.ts +47 -42
  221. package/dist/tools/components/form/EnhancedDetailPage.js.map +1 -1
  222. package/dist/tools/components/form/form-grid.cjs.map +1 -1
  223. package/dist/tools/components/form/form-grid.d.cts +44 -22
  224. package/dist/tools/components/form/form-grid.d.ts +44 -22
  225. package/dist/tools/components/form/form-grid.js.map +1 -1
  226. package/dist/tools/components/gantt/GanttChart.cjs +1 -1
  227. package/dist/tools/components/gantt/GanttChart.cjs.map +1 -1
  228. package/dist/tools/components/gantt/GanttChart.d.cts +20 -1
  229. package/dist/tools/components/gantt/GanttChart.d.ts +20 -1
  230. package/dist/tools/components/gantt/GanttChart.js +3 -0
  231. package/dist/tools/components/gantt/GanttChart.js.map +1 -1
  232. package/dist/tools/components/gantt/components/GanttTaskBar.cjs +1 -1
  233. package/dist/tools/components/gantt/components/GanttTaskBar.cjs.map +1 -1
  234. package/dist/tools/components/gantt/components/GanttTaskBar.js +2 -1
  235. package/dist/tools/components/gantt/components/GanttTaskBar.js.map +1 -1
  236. package/dist/tools/components/header/header.cjs +1 -1
  237. package/dist/tools/components/header/header.cjs.map +1 -1
  238. package/dist/tools/components/header/header.d.cts +103 -40
  239. package/dist/tools/components/header/header.d.ts +103 -40
  240. package/dist/tools/components/header/header.js +1 -1
  241. package/dist/tools/components/header/header.js.map +1 -1
  242. package/dist/tools/components/i18n/LanguageSwitcher.cjs.map +1 -1
  243. package/dist/tools/components/i18n/LanguageSwitcher.d.cts +18 -14
  244. package/dist/tools/components/i18n/LanguageSwitcher.d.ts +18 -14
  245. package/dist/tools/components/i18n/LanguageSwitcher.js.map +1 -1
  246. package/dist/tools/components/kanban/KanbanBoard.cjs +1 -1
  247. package/dist/tools/components/kanban/KanbanBoard.cjs.map +1 -1
  248. package/dist/tools/components/kanban/KanbanBoard.d.cts +16 -34
  249. package/dist/tools/components/kanban/KanbanBoard.d.ts +16 -34
  250. package/dist/tools/components/kanban/KanbanBoard.js +3 -0
  251. package/dist/tools/components/kanban/KanbanBoard.js.map +1 -1
  252. package/dist/tools/components/kanban/KanbanColumn.cjs +1 -1
  253. package/dist/tools/components/kanban/KanbanColumn.cjs.map +1 -1
  254. package/dist/tools/components/kanban/KanbanColumn.js +1 -1
  255. package/dist/tools/components/kanban/KanbanColumn.js.map +1 -1
  256. package/dist/tools/components/kanban/kanban-compound.cjs +1 -1
  257. package/dist/tools/components/kanban/kanban-compound.cjs.map +1 -1
  258. package/dist/tools/components/kanban/kanban-compound.js +4 -1
  259. package/dist/tools/components/kanban/kanban-compound.js.map +1 -1
  260. package/dist/tools/components/kanban/kanban-primitives.cjs +1 -1
  261. package/dist/tools/components/kanban/kanban-primitives.cjs.map +1 -1
  262. package/dist/tools/components/kanban/kanban-primitives.js +0 -1
  263. package/dist/tools/components/kanban/kanban-primitives.js.map +1 -1
  264. package/dist/tools/components/priority-queue/PriorityCard.cjs +1 -1
  265. package/dist/tools/components/priority-queue/PriorityCard.cjs.map +1 -1
  266. package/dist/tools/components/priority-queue/PriorityCard.js +3 -1
  267. package/dist/tools/components/priority-queue/PriorityCard.js.map +1 -1
  268. package/dist/tools/components/sidebar/SmartSidebar.cjs.map +1 -1
  269. package/dist/tools/components/sidebar/SmartSidebar.d.cts +41 -43
  270. package/dist/tools/components/sidebar/SmartSidebar.d.ts +41 -43
  271. package/dist/tools/components/sidebar/SmartSidebar.js.map +1 -1
  272. package/dist/tools/components/splash/SplashScreen.cjs.map +1 -1
  273. package/dist/tools/components/splash/SplashScreen.d.cts +43 -68
  274. package/dist/tools/components/splash/SplashScreen.d.ts +43 -68
  275. package/dist/tools/components/splash/SplashScreen.js.map +1 -1
  276. package/dist/tools/components/workflow/WorkflowStatusPanel.cjs +1 -1
  277. package/dist/tools/components/workflow/WorkflowStatusPanel.cjs.map +1 -1
  278. package/dist/tools/components/workflow/WorkflowStatusPanel.js +2 -2
  279. package/dist/tools/components/workflow/WorkflowStatusPanel.js.map +1 -1
  280. package/dist/tools/lib/data-access/data-access-context.cjs.map +1 -1
  281. package/dist/tools/lib/data-access/data-access-context.d.cts +15 -6
  282. package/dist/tools/lib/data-access/data-access-context.d.ts +15 -6
  283. package/dist/tools/lib/data-access/data-access-context.js.map +1 -1
  284. package/dist/tools/lib/data-access/react-query-provider.cjs.map +1 -1
  285. package/dist/tools/lib/data-access/react-query-provider.d.cts +19 -2
  286. package/dist/tools/lib/data-access/react-query-provider.d.ts +19 -2
  287. package/dist/tools/lib/data-access/react-query-provider.js.map +1 -1
  288. package/dist/tools/lib/data-access/react-query.cjs.map +1 -1
  289. package/dist/tools/lib/data-access/react-query.d.cts +365 -90
  290. package/dist/tools/lib/data-access/react-query.d.ts +365 -90
  291. package/dist/tools/lib/data-access/react-query.js.map +1 -1
  292. package/dist/tools/lib/error/AppError.cjs.map +1 -1
  293. package/dist/tools/lib/error/AppError.d.cts +157 -63
  294. package/dist/tools/lib/error/AppError.d.ts +157 -63
  295. package/dist/tools/lib/error/AppError.js.map +1 -1
  296. package/dist/tools/lib/hooks/useAsyncWithTimeout.cjs.map +1 -1
  297. package/dist/tools/lib/hooks/useAsyncWithTimeout.d.cts +79 -26
  298. package/dist/tools/lib/hooks/useAsyncWithTimeout.d.ts +79 -26
  299. package/dist/tools/lib/hooks/useAsyncWithTimeout.js.map +1 -1
  300. package/dist/tools/lib/hooks/useError.cjs.map +1 -1
  301. package/dist/tools/lib/hooks/useError.d.cts +51 -16
  302. package/dist/tools/lib/hooks/useError.d.ts +51 -16
  303. package/dist/tools/lib/hooks/useError.js.map +1 -1
  304. package/dist/tools/lib/schema/ajv.cjs +1 -1
  305. package/dist/tools/lib/schema/ajv.cjs.map +1 -1
  306. package/dist/tools/lib/schema/ajv.d.cts +19 -8
  307. package/dist/tools/lib/schema/ajv.d.ts +19 -8
  308. package/dist/tools/lib/schema/ajv.js +2 -1
  309. package/dist/tools/lib/schema/ajv.js.map +1 -1
  310. package/dist/tools/lib/state/error-store.cjs.map +1 -1
  311. package/dist/tools/lib/state/error-store.d.cts +61 -10
  312. package/dist/tools/lib/state/error-store.d.ts +61 -10
  313. package/dist/tools/lib/state/error-store.js.map +1 -1
  314. package/dist/tools/lib/state/store-factory.cjs.map +1 -1
  315. package/dist/tools/lib/state/store-factory.d.cts +25 -4
  316. package/dist/tools/lib/state/store-factory.d.ts +25 -4
  317. package/dist/tools/lib/state/store-factory.js.map +1 -1
  318. package/dist/tools/lib/state/ui-store.cjs.map +1 -1
  319. package/dist/tools/lib/state/ui-store.d.cts +39 -0
  320. package/dist/tools/lib/state/ui-store.d.ts +39 -0
  321. package/dist/tools/lib/state/ui-store.js.map +1 -1
  322. package/dist/ui/components/theme/theme-context.cjs.map +1 -1
  323. package/dist/ui/components/theme/theme-context.d.cts +171 -1
  324. package/dist/ui/components/theme/theme-context.d.ts +171 -1
  325. package/dist/ui/components/theme/theme-context.js.map +1 -1
  326. package/dist/ui/components/theme/theme-provider.cjs.map +1 -1
  327. package/dist/ui/components/theme/theme-provider.d.cts +31 -19
  328. package/dist/ui/components/theme/theme-provider.d.ts +31 -19
  329. package/dist/ui/components/theme/theme-provider.js.map +1 -1
  330. package/dist/ui/components/theme/theme-script.cjs.map +1 -1
  331. package/dist/ui/components/theme/theme-script.d.cts +16 -1
  332. package/dist/ui/components/theme/theme-script.d.ts +16 -1
  333. package/dist/ui/components/theme/theme-script.js.map +1 -1
  334. package/dist/ui/components/theme/theme-switcher.cjs +1 -1
  335. package/dist/ui/components/theme/theme-switcher.cjs.map +1 -1
  336. package/dist/ui/components/theme/theme-switcher.d.cts +82 -13
  337. package/dist/ui/components/theme/theme-switcher.d.ts +82 -13
  338. package/dist/ui/components/theme/theme-switcher.js +8 -0
  339. package/dist/ui/components/theme/theme-switcher.js.map +1 -1
  340. package/dist/ui/components/ui/accordion.cjs.map +1 -1
  341. package/dist/ui/components/ui/accordion.d.cts +60 -0
  342. package/dist/ui/components/ui/accordion.d.ts +60 -0
  343. package/dist/ui/components/ui/accordion.js.map +1 -1
  344. package/dist/ui/components/ui/adjustable-pane.cjs.map +1 -1
  345. package/dist/ui/components/ui/adjustable-pane.d.cts +44 -26
  346. package/dist/ui/components/ui/adjustable-pane.d.ts +44 -26
  347. package/dist/ui/components/ui/adjustable-pane.js.map +1 -1
  348. package/dist/ui/components/ui/alert-dialog.cjs.map +1 -1
  349. package/dist/ui/components/ui/alert-dialog.d.cts +179 -2
  350. package/dist/ui/components/ui/alert-dialog.d.ts +179 -2
  351. package/dist/ui/components/ui/alert-dialog.js.map +1 -1
  352. package/dist/ui/components/ui/alert.cjs.map +1 -1
  353. package/dist/ui/components/ui/alert.d.cts +52 -4
  354. package/dist/ui/components/ui/alert.d.ts +52 -4
  355. package/dist/ui/components/ui/alert.js.map +1 -1
  356. package/dist/ui/components/ui/aspect-ratio.cjs.map +1 -1
  357. package/dist/ui/components/ui/aspect-ratio.d.cts +16 -1
  358. package/dist/ui/components/ui/aspect-ratio.d.ts +16 -1
  359. package/dist/ui/components/ui/aspect-ratio.js.map +1 -1
  360. package/dist/ui/components/ui/avatar.cjs.map +1 -1
  361. package/dist/ui/components/ui/avatar.d.cts +87 -3
  362. package/dist/ui/components/ui/avatar.d.ts +87 -3
  363. package/dist/ui/components/ui/avatar.js.map +1 -1
  364. package/dist/ui/components/ui/badge-components.cjs.map +1 -1
  365. package/dist/ui/components/ui/badge-components.d.cts +13 -1
  366. package/dist/ui/components/ui/badge-components.d.ts +13 -1
  367. package/dist/ui/components/ui/badge-components.js.map +1 -1
  368. package/dist/ui/components/ui/badge-variants.cjs.map +1 -1
  369. package/dist/ui/components/ui/badge-variants.d.cts +15 -0
  370. package/dist/ui/components/ui/badge-variants.d.ts +15 -0
  371. package/dist/ui/components/ui/badge-variants.js.map +1 -1
  372. package/dist/ui/components/ui/breadcrumb.cjs.map +1 -1
  373. package/dist/ui/components/ui/breadcrumb.d.cts +91 -7
  374. package/dist/ui/components/ui/breadcrumb.d.ts +91 -7
  375. package/dist/ui/components/ui/breadcrumb.js.map +1 -1
  376. package/dist/ui/components/ui/button-components.cjs.map +1 -1
  377. package/dist/ui/components/ui/button-components.d.cts +18 -6
  378. package/dist/ui/components/ui/button-components.d.ts +18 -6
  379. package/dist/ui/components/ui/button-components.js.map +1 -1
  380. package/dist/ui/components/ui/button-group-components.cjs.map +1 -1
  381. package/dist/ui/components/ui/button-group-components.d.cts +39 -3
  382. package/dist/ui/components/ui/button-group-components.d.ts +39 -3
  383. package/dist/ui/components/ui/button-group-components.js.map +1 -1
  384. package/dist/ui/components/ui/button-group-variants.cjs.map +1 -1
  385. package/dist/ui/components/ui/button-group-variants.d.cts +15 -0
  386. package/dist/ui/components/ui/button-group-variants.d.ts +15 -0
  387. package/dist/ui/components/ui/button-group-variants.js.map +1 -1
  388. package/dist/ui/components/ui/button-variants.cjs.map +1 -1
  389. package/dist/ui/components/ui/button-variants.d.cts +13 -2
  390. package/dist/ui/components/ui/button-variants.d.ts +13 -2
  391. package/dist/ui/components/ui/button-variants.js.map +1 -1
  392. package/dist/ui/components/ui/card.cjs.map +1 -1
  393. package/dist/ui/components/ui/card.d.cts +106 -2
  394. package/dist/ui/components/ui/card.d.ts +106 -2
  395. package/dist/ui/components/ui/card.js.map +1 -1
  396. package/dist/ui/components/ui/checkbox-group.cjs.map +1 -1
  397. package/dist/ui/components/ui/checkbox-group.d.cts +13 -1
  398. package/dist/ui/components/ui/checkbox-group.d.ts +13 -1
  399. package/dist/ui/components/ui/checkbox-group.js.map +1 -1
  400. package/dist/ui/components/ui/checkbox.cjs.map +1 -1
  401. package/dist/ui/components/ui/checkbox.d.cts +17 -6
  402. package/dist/ui/components/ui/checkbox.d.ts +17 -6
  403. package/dist/ui/components/ui/checkbox.js.map +1 -1
  404. package/dist/ui/components/ui/collapsible.cjs.map +1 -1
  405. package/dist/ui/components/ui/collapsible.d.cts +39 -3
  406. package/dist/ui/components/ui/collapsible.d.ts +39 -3
  407. package/dist/ui/components/ui/collapsible.js.map +1 -1
  408. package/dist/ui/components/ui/combobox-components.cjs.map +1 -1
  409. package/dist/ui/components/ui/combobox-components.d.cts +209 -14
  410. package/dist/ui/components/ui/combobox-components.d.ts +209 -14
  411. package/dist/ui/components/ui/combobox-components.js.map +1 -1
  412. package/dist/ui/components/ui/combobox-hooks.cjs.map +1 -1
  413. package/dist/ui/components/ui/combobox-hooks.d.cts +13 -1
  414. package/dist/ui/components/ui/combobox-hooks.d.ts +13 -1
  415. package/dist/ui/components/ui/combobox-hooks.js.map +1 -1
  416. package/dist/ui/components/ui/command.cjs.map +1 -1
  417. package/dist/ui/components/ui/command.d.cts +132 -9
  418. package/dist/ui/components/ui/command.d.ts +132 -9
  419. package/dist/ui/components/ui/command.js.map +1 -1
  420. package/dist/ui/components/ui/context-menu.cjs.map +1 -1
  421. package/dist/ui/components/ui/context-menu.d.cts +233 -2
  422. package/dist/ui/components/ui/context-menu.d.ts +233 -2
  423. package/dist/ui/components/ui/context-menu.js.map +1 -1
  424. package/dist/ui/components/ui/dialog.cjs.map +1 -1
  425. package/dist/ui/components/ui/dialog.d.cts +157 -5
  426. package/dist/ui/components/ui/dialog.d.ts +157 -5
  427. package/dist/ui/components/ui/dialog.js.map +1 -1
  428. package/dist/ui/components/ui/drawer.cjs.map +1 -1
  429. package/dist/ui/components/ui/drawer.d.cts +130 -10
  430. package/dist/ui/components/ui/drawer.d.ts +130 -10
  431. package/dist/ui/components/ui/drawer.js.map +1 -1
  432. package/dist/ui/components/ui/dropdown-menu.cjs.map +1 -1
  433. package/dist/ui/components/ui/dropdown-menu.d.cts +225 -6
  434. package/dist/ui/components/ui/dropdown-menu.d.ts +225 -6
  435. package/dist/ui/components/ui/dropdown-menu.js.map +1 -1
  436. package/dist/ui/components/ui/empty.cjs.map +1 -1
  437. package/dist/ui/components/ui/empty.d.cts +78 -6
  438. package/dist/ui/components/ui/empty.d.ts +78 -6
  439. package/dist/ui/components/ui/empty.js.map +1 -1
  440. package/dist/ui/components/ui/field.cjs.map +1 -1
  441. package/dist/ui/components/ui/field.d.cts +180 -6
  442. package/dist/ui/components/ui/field.d.ts +180 -6
  443. package/dist/ui/components/ui/field.js.map +1 -1
  444. package/dist/ui/components/ui/file-icon.cjs.map +1 -1
  445. package/dist/ui/components/ui/file-icon.d.cts +32 -4
  446. package/dist/ui/components/ui/file-icon.d.ts +32 -4
  447. package/dist/ui/components/ui/file-icon.js.map +1 -1
  448. package/dist/ui/components/ui/hover-card.cjs.map +1 -1
  449. package/dist/ui/components/ui/hover-card.d.cts +39 -3
  450. package/dist/ui/components/ui/hover-card.d.ts +39 -3
  451. package/dist/ui/components/ui/hover-card.js.map +1 -1
  452. package/dist/ui/components/ui/input-group.cjs.map +1 -1
  453. package/dist/ui/components/ui/input-group.d.cts +84 -6
  454. package/dist/ui/components/ui/input-group.d.ts +84 -6
  455. package/dist/ui/components/ui/input-group.js.map +1 -1
  456. package/dist/ui/components/ui/input-otp.cjs.map +1 -1
  457. package/dist/ui/components/ui/input-otp.d.cts +58 -4
  458. package/dist/ui/components/ui/input-otp.d.ts +58 -4
  459. package/dist/ui/components/ui/input-otp.js.map +1 -1
  460. package/dist/ui/components/ui/input.cjs.map +1 -1
  461. package/dist/ui/components/ui/input.d.cts +18 -10
  462. package/dist/ui/components/ui/input.d.ts +18 -10
  463. package/dist/ui/components/ui/input.js.map +1 -1
  464. package/dist/ui/components/ui/item.cjs.map +1 -1
  465. package/dist/ui/components/ui/item.d.cts +130 -10
  466. package/dist/ui/components/ui/item.d.ts +130 -10
  467. package/dist/ui/components/ui/item.js.map +1 -1
  468. package/dist/ui/components/ui/kbd.cjs.map +1 -1
  469. package/dist/ui/components/ui/kbd.d.cts +26 -2
  470. package/dist/ui/components/ui/kbd.d.ts +26 -2
  471. package/dist/ui/components/ui/kbd.js.map +1 -1
  472. package/dist/ui/components/ui/label.cjs.map +1 -1
  473. package/dist/ui/components/ui/label.d.cts +15 -0
  474. package/dist/ui/components/ui/label.d.ts +15 -0
  475. package/dist/ui/components/ui/label.js.map +1 -1
  476. package/dist/ui/components/ui/layout.cjs +1 -1
  477. package/dist/ui/components/ui/layout.cjs.map +1 -1
  478. package/dist/ui/components/ui/layout.d.cts +45 -11
  479. package/dist/ui/components/ui/layout.d.ts +45 -11
  480. package/dist/ui/components/ui/layout.js +22 -20
  481. package/dist/ui/components/ui/layout.js.map +1 -1
  482. package/dist/ui/components/ui/menubar.cjs.map +1 -1
  483. package/dist/ui/components/ui/menubar.d.cts +220 -16
  484. package/dist/ui/components/ui/menubar.d.ts +220 -16
  485. package/dist/ui/components/ui/menubar.js.map +1 -1
  486. package/dist/ui/components/ui/meter.cjs.map +1 -1
  487. package/dist/ui/components/ui/meter.d.cts +52 -4
  488. package/dist/ui/components/ui/meter.d.ts +52 -4
  489. package/dist/ui/components/ui/meter.js.map +1 -1
  490. package/dist/ui/components/ui/mobile-form-variants.cjs.map +1 -1
  491. package/dist/ui/components/ui/mobile-form-variants.d.cts +30 -0
  492. package/dist/ui/components/ui/mobile-form-variants.d.ts +30 -0
  493. package/dist/ui/components/ui/mobile-form-variants.js.map +1 -1
  494. package/dist/ui/components/ui/mobile-form.cjs.map +1 -1
  495. package/dist/ui/components/ui/mobile-form.d.cts +186 -9
  496. package/dist/ui/components/ui/mobile-form.d.ts +186 -9
  497. package/dist/ui/components/ui/mobile-form.js.map +1 -1
  498. package/dist/ui/components/ui/navigation-menu-components.cjs.map +1 -1
  499. package/dist/ui/components/ui/navigation-menu-components.d.cts +104 -8
  500. package/dist/ui/components/ui/navigation-menu-components.d.ts +104 -8
  501. package/dist/ui/components/ui/navigation-menu-components.js.map +1 -1
  502. package/dist/ui/components/ui/navigation-menu-variants.cjs.map +1 -1
  503. package/dist/ui/components/ui/navigation-menu-variants.d.cts +15 -0
  504. package/dist/ui/components/ui/navigation-menu-variants.d.ts +15 -0
  505. package/dist/ui/components/ui/navigation-menu-variants.js.map +1 -1
  506. package/dist/ui/components/ui/number-field.cjs.map +1 -1
  507. package/dist/ui/components/ui/number-field.d.cts +78 -6
  508. package/dist/ui/components/ui/number-field.d.ts +78 -6
  509. package/dist/ui/components/ui/number-field.js.map +1 -1
  510. package/dist/ui/components/ui/pagination.cjs.map +1 -1
  511. package/dist/ui/components/ui/pagination.d.cts +99 -7
  512. package/dist/ui/components/ui/pagination.d.ts +99 -7
  513. package/dist/ui/components/ui/pagination.js.map +1 -1
  514. package/dist/ui/components/ui/password-input.cjs.map +1 -1
  515. package/dist/ui/components/ui/password-input.d.cts +10 -7
  516. package/dist/ui/components/ui/password-input.d.ts +10 -7
  517. package/dist/ui/components/ui/password-input.js.map +1 -1
  518. package/dist/ui/components/ui/popover.cjs.map +1 -1
  519. package/dist/ui/components/ui/popover.d.cts +86 -2
  520. package/dist/ui/components/ui/popover.d.ts +86 -2
  521. package/dist/ui/components/ui/popover.js.map +1 -1
  522. package/dist/ui/components/ui/progress.cjs.map +1 -1
  523. package/dist/ui/components/ui/progress.d.cts +72 -2
  524. package/dist/ui/components/ui/progress.d.ts +72 -2
  525. package/dist/ui/components/ui/progress.js.map +1 -1
  526. package/dist/ui/components/ui/radio-card.cjs.map +1 -1
  527. package/dist/ui/components/ui/radio-card.d.cts +32 -4
  528. package/dist/ui/components/ui/radio-card.d.ts +32 -4
  529. package/dist/ui/components/ui/radio-card.js.map +1 -1
  530. package/dist/ui/components/ui/radio-group.cjs.map +1 -1
  531. package/dist/ui/components/ui/radio-group.d.cts +28 -2
  532. package/dist/ui/components/ui/radio-group.d.ts +28 -2
  533. package/dist/ui/components/ui/radio-group.js.map +1 -1
  534. package/dist/ui/components/ui/resizable.cjs.map +1 -1
  535. package/dist/ui/components/ui/resizable.d.cts +42 -3
  536. package/dist/ui/components/ui/resizable.d.ts +42 -3
  537. package/dist/ui/components/ui/resizable.js.map +1 -1
  538. package/dist/ui/components/ui/responsive-list.cjs.map +1 -1
  539. package/dist/ui/components/ui/responsive-list.d.cts +176 -13
  540. package/dist/ui/components/ui/responsive-list.d.ts +176 -13
  541. package/dist/ui/components/ui/responsive-list.js.map +1 -1
  542. package/dist/ui/components/ui/scroll-area.cjs.map +1 -1
  543. package/dist/ui/components/ui/scroll-area.d.cts +28 -1
  544. package/dist/ui/components/ui/scroll-area.d.ts +28 -1
  545. package/dist/ui/components/ui/scroll-area.js.map +1 -1
  546. package/dist/ui/components/ui/searchable-select-input.cjs.map +1 -1
  547. package/dist/ui/components/ui/searchable-select-input.d.cts +199 -49
  548. package/dist/ui/components/ui/searchable-select-input.d.ts +199 -49
  549. package/dist/ui/components/ui/searchable-select-input.js.map +1 -1
  550. package/dist/ui/components/ui/select.cjs.map +1 -1
  551. package/dist/ui/components/ui/select.d.cts +205 -40
  552. package/dist/ui/components/ui/select.d.ts +205 -40
  553. package/dist/ui/components/ui/select.js.map +1 -1
  554. package/dist/ui/components/ui/separator.cjs.map +1 -1
  555. package/dist/ui/components/ui/separator.d.cts +13 -2
  556. package/dist/ui/components/ui/separator.d.ts +13 -2
  557. package/dist/ui/components/ui/separator.js.map +1 -1
  558. package/dist/ui/components/ui/sheet.cjs.map +1 -1
  559. package/dist/ui/components/ui/sheet.d.cts +128 -3
  560. package/dist/ui/components/ui/sheet.d.ts +128 -3
  561. package/dist/ui/components/ui/sheet.js.map +1 -1
  562. package/dist/ui/components/ui/skeleton.cjs.map +1 -1
  563. package/dist/ui/components/ui/skeleton.d.cts +13 -1
  564. package/dist/ui/components/ui/skeleton.d.ts +13 -1
  565. package/dist/ui/components/ui/skeleton.js.map +1 -1
  566. package/dist/ui/components/ui/slider.cjs.map +1 -1
  567. package/dist/ui/components/ui/slider.d.cts +13 -7
  568. package/dist/ui/components/ui/slider.d.ts +13 -7
  569. package/dist/ui/components/ui/slider.js.map +1 -1
  570. package/dist/ui/components/ui/spinner.cjs.map +1 -1
  571. package/dist/ui/components/ui/spinner.d.cts +13 -1
  572. package/dist/ui/components/ui/spinner.d.ts +13 -1
  573. package/dist/ui/components/ui/spinner.js.map +1 -1
  574. package/dist/ui/components/ui/switch.cjs.map +1 -1
  575. package/dist/ui/components/ui/switch.d.cts +26 -0
  576. package/dist/ui/components/ui/switch.d.ts +26 -0
  577. package/dist/ui/components/ui/switch.js.map +1 -1
  578. package/dist/ui/components/ui/table.cjs.map +1 -1
  579. package/dist/ui/components/ui/table.d.cts +118 -2
  580. package/dist/ui/components/ui/table.d.ts +118 -2
  581. package/dist/ui/components/ui/table.js.map +1 -1
  582. package/dist/ui/components/ui/tabs-components.cjs.map +1 -1
  583. package/dist/ui/components/ui/tabs-components.d.cts +52 -5
  584. package/dist/ui/components/ui/tabs-components.d.ts +52 -5
  585. package/dist/ui/components/ui/tabs-components.js.map +1 -1
  586. package/dist/ui/components/ui/tabs-variants.cjs.map +1 -1
  587. package/dist/ui/components/ui/tabs-variants.d.cts +15 -0
  588. package/dist/ui/components/ui/tabs-variants.d.ts +15 -0
  589. package/dist/ui/components/ui/tabs-variants.js.map +1 -1
  590. package/dist/ui/components/ui/textarea.cjs.map +1 -1
  591. package/dist/ui/components/ui/textarea.d.cts +23 -0
  592. package/dist/ui/components/ui/textarea.d.ts +23 -0
  593. package/dist/ui/components/ui/textarea.js.map +1 -1
  594. package/dist/ui/components/ui/toast.cjs.map +1 -1
  595. package/dist/ui/components/ui/toast.d.cts +136 -0
  596. package/dist/ui/components/ui/toast.d.ts +136 -0
  597. package/dist/ui/components/ui/toast.js.map +1 -1
  598. package/dist/ui/components/ui/toaster.cjs.map +1 -1
  599. package/dist/ui/components/ui/toaster.d.cts +12 -3
  600. package/dist/ui/components/ui/toaster.d.ts +12 -3
  601. package/dist/ui/components/ui/toaster.js.map +1 -1
  602. package/dist/ui/components/ui/toggle-components.cjs.map +1 -1
  603. package/dist/ui/components/ui/toggle-components.d.cts +15 -0
  604. package/dist/ui/components/ui/toggle-components.d.ts +15 -0
  605. package/dist/ui/components/ui/toggle-components.js.map +1 -1
  606. package/dist/ui/components/ui/toggle-group.cjs.map +1 -1
  607. package/dist/ui/components/ui/toggle-group.d.cts +33 -0
  608. package/dist/ui/components/ui/toggle-group.d.ts +33 -0
  609. package/dist/ui/components/ui/toggle-group.js.map +1 -1
  610. package/dist/ui/components/ui/toggle-variants.cjs.map +1 -1
  611. package/dist/ui/components/ui/toggle-variants.d.cts +15 -0
  612. package/dist/ui/components/ui/toggle-variants.d.ts +15 -0
  613. package/dist/ui/components/ui/toggle-variants.js.map +1 -1
  614. package/dist/ui/components/ui/toolbar.cjs.map +1 -1
  615. package/dist/ui/components/ui/toolbar.d.cts +94 -7
  616. package/dist/ui/components/ui/toolbar.d.ts +94 -7
  617. package/dist/ui/components/ui/toolbar.js.map +1 -1
  618. package/dist/ui/components/ui/tooltip.cjs.map +1 -1
  619. package/dist/ui/components/ui/tooltip.d.cts +54 -3
  620. package/dist/ui/components/ui/tooltip.d.ts +54 -3
  621. package/dist/ui/components/ui/tooltip.js.map +1 -1
  622. package/dist/ui/lib/hooks/use-gps.cjs.map +1 -1
  623. package/dist/ui/lib/hooks/use-gps.d.cts +29 -4
  624. package/dist/ui/lib/hooks/use-gps.d.ts +29 -4
  625. package/dist/ui/lib/hooks/use-gps.js.map +1 -1
  626. package/dist/ui/lib/hooks/use-is-client.cjs.map +1 -1
  627. package/dist/ui/lib/hooks/use-is-client.d.cts +11 -2
  628. package/dist/ui/lib/hooks/use-is-client.d.ts +11 -2
  629. package/dist/ui/lib/hooks/use-is-client.js.map +1 -1
  630. package/dist/ui/lib/hooks/use-keyboard-shortcut.cjs.map +1 -1
  631. package/dist/ui/lib/hooks/use-keyboard-shortcut.d.cts +48 -18
  632. package/dist/ui/lib/hooks/use-keyboard-shortcut.d.ts +48 -18
  633. package/dist/ui/lib/hooks/use-keyboard-shortcut.js.map +1 -1
  634. package/dist/ui/lib/hooks/use-mobile.cjs.map +1 -1
  635. package/dist/ui/lib/hooks/use-mobile.d.cts +11 -3
  636. package/dist/ui/lib/hooks/use-mobile.d.ts +11 -3
  637. package/dist/ui/lib/hooks/use-mobile.js.map +1 -1
  638. package/dist/ui/lib/hooks/use-toast.cjs.map +1 -1
  639. package/dist/ui/lib/hooks/use-toast.d.cts +184 -15
  640. package/dist/ui/lib/hooks/use-toast.d.ts +184 -15
  641. package/dist/ui/lib/hooks/use-toast.js.map +1 -1
  642. package/dist/ui/lib/ime-utils.cjs.map +1 -1
  643. package/dist/ui/lib/ime-utils.d.cts +40 -13
  644. package/dist/ui/lib/ime-utils.d.ts +40 -13
  645. package/dist/ui/lib/ime-utils.js.map +1 -1
  646. package/dist/ui/lib/utils.cjs.map +1 -1
  647. package/dist/ui/lib/utils.d.cts +9 -6
  648. package/dist/ui/lib/utils.d.ts +9 -6
  649. package/dist/ui/lib/utils.js.map +1 -1
  650. package/docs/ai.md +34 -1
  651. package/docs/exports.md +5 -1
  652. package/docs/index.md +89 -16
  653. package/docs/migration.md +268 -0
  654. package/docs/request-form.md +4 -1
  655. package/docs/tools.md +4 -1
  656. package/docs/ui.md +4 -1
  657. package/llms-full.txt +499 -36
  658. package/llms.txt +4 -0
  659. package/package.json +35 -5
@@ -4,112 +4,126 @@ import { buttonVariants as t } from "../../../ui/components/ui/button-variants.j
4
4
  import { Button as n } from "../../../ui/components/ui/button-components.js";
5
5
  import { Input as r } from "../../../ui/components/ui/input.js";
6
6
  import { DropdownMenu as i, DropdownMenuCheckboxItem as a, DropdownMenuContent as o, DropdownMenuGroup as s, DropdownMenuLabel as c, DropdownMenuSeparator as l, DropdownMenuTrigger as u } from "../../../ui/components/ui/dropdown-menu.js";
7
- import { Table as d, TableBody as f, TableCell as p, TableHead as m, TableHeader as ee, TableRow as h } from "../../../ui/components/ui/table.js";
8
- import { dataTable_filterPlaceholder as te } from "../../paraglide/messages/datatable_filterplaceholder2.js";
9
- import { dataTable_goToFirstPage as g } from "../../paraglide/messages/datatable_gotofirstpage4.js";
10
- import { dataTable_goToLastPage as ne } from "../../paraglide/messages/datatable_gotolastpage4.js";
11
- import { dataTable_goToNextPage as re } from "../../paraglide/messages/datatable_gotonextpage4.js";
12
- import { dataTable_goToPreviousPage as ie } from "../../paraglide/messages/datatable_gotopreviouspage4.js";
13
- import { dataTable_items as ae } from "../../paraglide/messages/datatable_items1.js";
14
- import { dataTable_noResults as oe } from "../../paraglide/messages/datatable_noresults2.js";
15
- import { dataTable_page as se } from "../../paraglide/messages/datatable_page1.js";
16
- import { dataTable_rowsPerPage as _ } from "../../paraglide/messages/datatable_rowsperpage3.js";
17
- import { dataTable_rowsSelected as v } from "../../paraglide/messages/datatable_rowsselected2.js";
18
- import { dataTable_toggleColumns as y } from "../../paraglide/messages/datatable_togglecolumns2.js";
19
- import { dataTable_view as b } from "../../paraglide/messages/datatable_view1.js";
20
- import { dataTableFeatures as ce, flexRender as le, useTable as ue } from "./table-engine.js";
21
- import { useDataTableStore as x } from "./table-store.js";
22
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
23
- import * as T from "react";
24
- import { ChevronDown as de, ChevronLeft as E, ChevronRight as D, ChevronUp as O, ChevronsLeft as k, ChevronsRight as A, Filter as fe, Plus as pe, Settings2 as j } from "lucide-react";
25
- import { DndContext as me, KeyboardSensor as he, PointerSensor as ge, closestCenter as _e, useSensor as ve, useSensors as ye } from "@dnd-kit/core";
26
- import { SortableContext as be, arrayMove as xe, horizontalListSortingStrategy as Se, sortableKeyboardCoordinates as Ce, useSortable as M } from "@dnd-kit/sortable";
27
- import { CSS as N } from "@dnd-kit/utilities";
7
+ import { Table as d, TableBody as f, TableCell as p, TableHead as ee, TableHeader as te, TableRow as m } from "../../../ui/components/ui/table.js";
8
+ import { dataTable_filterPlaceholder as ne } from "../../paraglide/messages/datatable_filterplaceholder2.js";
9
+ import { dataTable_goToFirstPage as h } from "../../paraglide/messages/datatable_gotofirstpage4.js";
10
+ import { dataTable_goToLastPage as g } from "../../paraglide/messages/datatable_gotolastpage4.js";
11
+ import { dataTable_goToNextPage as _ } from "../../paraglide/messages/datatable_gotonextpage4.js";
12
+ import { dataTable_goToPreviousPage as v } from "../../paraglide/messages/datatable_gotopreviouspage4.js";
13
+ import { dataTable_items as re } from "../../paraglide/messages/datatable_items1.js";
14
+ import { dataTable_noResults as ie } from "../../paraglide/messages/datatable_noresults2.js";
15
+ import { dataTable_page as ae } from "../../paraglide/messages/datatable_page1.js";
16
+ import { dataTable_rowsPerPage as y } from "../../paraglide/messages/datatable_rowsperpage3.js";
17
+ import { dataTable_rowsSelected as b } from "../../paraglide/messages/datatable_rowsselected2.js";
18
+ import { dataTable_toggleColumns as x } from "../../paraglide/messages/datatable_togglecolumns2.js";
19
+ import { dataTable_view as S } from "../../paraglide/messages/datatable_view1.js";
20
+ import { dataTableFeatures as oe, flexRender as se, useTable as ce } from "./table-engine.js";
21
+ import { useDataTableStore as C } from "./table-store.js";
22
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
23
+ import * as D from "react";
24
+ import { ChevronDown as le, ChevronLeft as O, ChevronRight as k, ChevronUp as A, ChevronsLeft as j, ChevronsRight as M, Filter as ue, GripVertical as N, Plus as de, Settings2 as P } from "lucide-react";
25
+ import { DndContext as fe, KeyboardSensor as pe, PointerSensor as me, closestCenter as he, useSensor as ge, useSensors as _e } from "@dnd-kit/core";
26
+ import { SortableContext as ve, arrayMove as ye, horizontalListSortingStrategy as be, sortableKeyboardCoordinates as xe, useSortable as F } from "@dnd-kit/sortable";
27
+ import { CSS as I } from "@dnd-kit/utilities";
28
28
  //#region src/tools/components/data-table/data-table.tsx
29
- function we({ header: t, enableColumnOrdering: n = !0, enableMultiSort: r = !1, sortIndex: i }) {
30
- let { attributes: a, listeners: o, setNodeRef: s, transform: c, transition: l, isDragging: u } = M({
29
+ function Se({ header: t, enableColumnOrdering: n = !0, enableMultiSort: r = !1, sortIndex: i }) {
30
+ let { attributes: a, listeners: o, setNodeRef: s, setActivatorNodeRef: c, transform: l, transition: u, isDragging: d } = F({
31
31
  id: t.column.id,
32
32
  disabled: !n
33
- }), d = t.column.getCanSort(), f = t.column.getIsSorted(), p = f !== !1, ee = n ? {
34
- transform: N.Translate.toString(c),
35
- transition: l,
36
- opacity: u ? .8 : 1,
37
- zIndex: +!!u,
33
+ }), f = t.column.getCanSort(), p = t.column.getIsSorted(), te = p !== !1, m = f && typeof t.column.columnDef.header != "function" ? "button" : "span", ne = n ? {
34
+ transform: I.Translate.toString(l),
35
+ transition: u,
36
+ opacity: d ? .8 : 1,
37
+ zIndex: +!!d,
38
38
  position: "relative",
39
39
  cursor: "move"
40
- } : {}, h = (e) => {
41
- d && (r && e.shiftKey ? t.column.toggleSorting(void 0, !0) : t.column.toggleSorting());
42
- };
43
- return /* @__PURE__ */ C(m, {
40
+ } : {};
41
+ return /* @__PURE__ */ E(ee, {
44
42
  ref: n ? s : void 0,
45
- style: ee,
46
- ...n ? {
43
+ style: ne,
44
+ "aria-sort": f ? p === "asc" ? "ascending" : p === "desc" ? "descending" : "none" : void 0,
45
+ className: e("bg-primary/10 text-primary font-bold border-b border-primary/20", f && "cursor-pointer select-none hover:bg-primary/20 transition-colors"),
46
+ onClick: f ? (e) => {
47
+ f && !e.target.closest("button, input, select, [role=checkbox]") && (r && e.shiftKey ? t.column.toggleSorting(void 0, !0) : t.column.toggleSorting());
48
+ } : void 0,
49
+ children: [n && !t.isPlaceholder && /* @__PURE__ */ T("button", {
50
+ type: "button",
51
+ ref: c,
47
52
  ...a,
48
- ...o
49
- } : {},
50
- className: e("bg-primary/10 text-primary font-bold border-b border-primary/20", d && "cursor-pointer select-none hover:bg-primary/20 transition-colors"),
51
- onClick: d ? h : void 0,
52
- children: t.isPlaceholder ? null : /* @__PURE__ */ w("span", {
53
+ ...o,
54
+ "aria-label": `Reorder column ${t.column.id}`,
55
+ className: "inline-flex h-6 w-6 items-center justify-center cursor-grab",
56
+ children: /* @__PURE__ */ T(N, {
57
+ className: "h-3 w-3",
58
+ "aria-hidden": "true"
59
+ })
60
+ }), t.isPlaceholder ? null : /* @__PURE__ */ E("span", {
53
61
  className: "inline-flex items-center gap-1",
54
- children: [/* @__PURE__ */ C("span", {
55
- className: e(p && "font-semibold"),
56
- children: le(t.column.columnDef.header, t.getContext())
57
- }), p && /* @__PURE__ */ w("span", {
62
+ children: [/* @__PURE__ */ T(m, {
63
+ className: e(te && "font-semibold"),
64
+ ...m === "button" ? {
65
+ type: "button",
66
+ onClick: (e) => {
67
+ e.stopPropagation(), t.column.toggleSorting(void 0, r && e.shiftKey);
68
+ }
69
+ } : {},
70
+ children: se(t.column.columnDef.header, t.getContext())
71
+ }), te && /* @__PURE__ */ E("span", {
58
72
  className: "inline-flex items-center text-xs",
59
- children: [C(f === "asc" ? O : de, { className: "h-3.5 w-3.5" }), r && i !== void 0 && i >= 0 && /* @__PURE__ */ C("span", {
73
+ children: [T(p === "asc" ? A : le, { className: "h-3.5 w-3.5" }), r && i !== void 0 && i >= 0 && /* @__PURE__ */ T("span", {
60
74
  className: "text-[10px] ml-0.5",
61
75
  children: i + 1
62
76
  })]
63
77
  })]
64
- })
78
+ })]
65
79
  });
66
80
  }
67
- function P({ columns: t, data: i, variant: a = "default", filterContent: o, storageKey: s, enableSortingByDefault: c = !0, enableMultiSort: l = !1, showRowNumber: u = !1, itemCount: m, onAdd: g, pageCount: ne, rowCount: re, onPaginationChange: ie, onSortingChange: se, onColumnFiltersChange: _, onRowClick: v, onSelectionChange: y, rowIdField: b = "id", manualPagination: S = !1, manualSorting: de = !1, manualFiltering: E = !1, filterColumn: D, sorting: O, pagination: k, enableColumnOrdering: A = !0, containerClassName: j, tableClassName: M, pageSizeOptions: N = [
81
+ function Ce({ columns: t, data: i, variant: a = "default", filterContent: o, storageKey: s, enableSortingByDefault: c = !0, enableMultiSort: l = !1, showRowNumber: u = !1, itemCount: ee, onAdd: h, pageCount: g, rowCount: _, onPaginationChange: v, onSortingChange: ae, onColumnFiltersChange: y, onRowClick: b, onSelectionChange: x, rowIdField: S = "id", manualPagination: w = !1, manualSorting: le = !1, manualFiltering: O = !1, filterColumn: k, sorting: A, pagination: j, enableColumnOrdering: M = !0, containerClassName: N, tableClassName: P, pageSizeOptions: F = [
68
82
  10,
69
83
  20,
70
84
  30,
71
85
  50,
72
86
  100
73
- ], filterLayout: P = "inline", defaultFilterOpen: Ee = !1, activeFiltersContent: L }) {
87
+ ], filterLayout: I = "inline", defaultFilterOpen: Ce = !1, activeFiltersContent: z }) {
74
88
  "use no memo";
75
- let De = x((e) => e.getTableSettings), Oe = x((e) => e.setTableSettings), R = x((e) => e._hasHydrated), z = T.useSyncExternalStore(T.useCallback(() => () => {}, []), () => !0, () => !1), [ke, Ae] = T.useState(Ee), [je, Me] = T.useState(O || []), [B, Ne] = T.useState([]), [V, Pe] = T.useState({}), [Fe, Ie] = T.useState({}), [Le, Re] = T.useState(k || {
89
+ let Te = C((e) => e.getTableSettings), Ee = C((e) => e.setTableSettings), B = C((e) => e._hasHydrated), V = D.useSyncExternalStore(D.useCallback(() => () => {}, []), () => !0, () => !1), [H, De] = D.useState(Ce), [Oe, ke] = D.useState(A || []), [U, Ae] = D.useState([]), [W, je] = D.useState({}), [Me, Ne] = D.useState({}), [Pe, Fe] = D.useState(j || {
76
90
  pageIndex: 0,
77
91
  pageSize: 10
78
- }), [H, U] = T.useState(t.map((e) => e.id || e.accessorKey)), ze = k !== void 0, W = O ?? je, G = k ?? Le, Be = (e) => {
79
- let t = typeof e == "function" ? e(W) : e;
80
- O === void 0 && Me(t), se?.(t);
81
- }, Ve = (e) => {
82
- let t = typeof e == "function" ? e(G) : e;
83
- k === void 0 && Re(t), ie?.(t);
84
- }, [K, He] = T.useState(null), q = T.useMemo(() => t.map((e) => e.id || e.accessorKey || "").join("|"), [t]), J = T.useMemo(() => new Set(q.split("|").filter(Boolean)), [q]), Y = s ? JSON.stringify([
92
+ }), [G, K] = D.useState(t.map((e) => e.id || e.accessorKey)), Ie = j !== void 0, q = A ?? Oe, J = j ?? Pe, Le = (e) => {
93
+ let t = typeof e == "function" ? e(q) : e;
94
+ A === void 0 && ke(t), ae?.(t);
95
+ }, Re = (e) => {
96
+ let t = typeof e == "function" ? e(J) : e;
97
+ j === void 0 && Fe(t), v?.(t);
98
+ }, [ze, Be] = D.useState(null), Y = D.useMemo(() => t.map((e) => e.id || e.accessorKey || "").join("|"), [t]), X = D.useMemo(() => new Set(Y.split("|").filter(Boolean)), [Y]), Z = s ? JSON.stringify([
85
99
  s,
86
- q,
87
- !!O,
88
- !!k
100
+ Y,
101
+ !!A,
102
+ !!j
89
103
  ]) : null;
90
- if (R && s && K !== Y) {
91
- He(Y);
92
- let e = De(s);
104
+ if (B && s && ze !== Z) {
105
+ Be(Z);
106
+ let e = Te(s);
93
107
  if (e) {
94
- if (!O && e.sorting && e.sorting.length > 0) {
95
- let t = e.sorting.filter((e) => J.has(e.id));
96
- t.length > 0 && Me(t);
108
+ if (!A && e.sorting && e.sorting.length > 0) {
109
+ let t = e.sorting.filter((e) => X.has(e.id));
110
+ t.length > 0 && ke(t);
97
111
  }
98
112
  if (e.columnVisibility && Object.keys(e.columnVisibility).length > 0) {
99
113
  let t = {};
100
- for (let [n, r] of Object.entries(e.columnVisibility)) J.has(n) && (t[n] = r);
101
- Object.keys(t).length > 0 && Pe(t);
114
+ for (let [n, r] of Object.entries(e.columnVisibility)) X.has(n) && (t[n] = r);
115
+ Object.keys(t).length > 0 && je(t);
102
116
  }
103
- if (!k && e.pageSize && e.pageSize !== 10 && Re((t) => ({
117
+ if (!j && e.pageSize && e.pageSize !== 10 && Fe((t) => ({
104
118
  ...t,
105
119
  pageSize: e.pageSize
106
120
  })), e.columnOrder && e.columnOrder.length > 0) {
107
- let t = e.columnOrder.filter((e) => J.has(e)), n = new Set(t), r = Array.from(J).filter((e) => !n.has(e)), i = [...t, ...r];
108
- i.length > 0 && U(i);
121
+ let t = e.columnOrder.filter((e) => X.has(e)), n = new Set(t), r = Array.from(X).filter((e) => !n.has(e)), i = [...t, ...r];
122
+ i.length > 0 && K(i);
109
123
  }
110
124
  }
111
125
  }
112
- let Ue = T.useMemo(() => ({
126
+ let Ve = D.useMemo(() => ({
113
127
  id: "rowNumber",
114
128
  header: "No",
115
129
  enableSorting: !1,
@@ -117,8 +131,8 @@ function P({ columns: t, data: i, variant: a = "default", filterContent: o, stor
117
131
  let n = t.store.state.pagination;
118
132
  return n ? n.pageIndex * n.pageSize + e.index + 1 : e.index + 1;
119
133
  }
120
- }), []), X = T.useMemo(() => {
121
- let e = u ? [Ue, ...t] : t;
134
+ }), []), He = D.useMemo(() => {
135
+ let e = u ? [Ve, ...t] : t;
122
136
  return c ? e.map((e) => ({
123
137
  ...e,
124
138
  enableSorting: e.enableSorting !== !1
@@ -126,247 +140,248 @@ function P({ columns: t, data: i, variant: a = "default", filterContent: o, stor
126
140
  }, [
127
141
  u,
128
142
  t,
129
- Ue,
143
+ Ve,
130
144
  c
131
- ]), We = T.useCallback((e) => {
132
- if (b) return b.split("_").reduce((e, t) => {
145
+ ]), Ue = D.useCallback((e) => {
146
+ if (S) return S.split("_").reduce((e, t) => {
133
147
  if (e && typeof e == "object" && t !== "__proto__" && t !== "constructor" && t !== "prototype" && Object.prototype.hasOwnProperty.call(e, t)) return e[t];
134
148
  }, e);
135
- }, [b]);
136
- T.useEffect(() => {
137
- s && R && K === Y && Oe(s, {
138
- columnOrder: H,
139
- columnVisibility: V,
140
- sorting: W,
141
- pageSize: G.pageSize
149
+ }, [S]);
150
+ D.useEffect(() => {
151
+ s && B && ze === Z && Ee(s, {
152
+ columnOrder: G,
153
+ columnVisibility: W,
154
+ sorting: q,
155
+ pageSize: J.pageSize
142
156
  });
143
157
  }, [
144
158
  s,
145
- H,
146
- V,
159
+ G,
147
160
  W,
148
- G.pageSize,
149
- Oe,
150
- R,
151
- K,
152
- Y
153
- ]), T.useEffect(() => {
154
- E && _ && _(B);
155
- }, [
161
+ q,
162
+ J.pageSize,
163
+ Ee,
156
164
  B,
157
- E,
158
- _
165
+ ze,
166
+ Z
167
+ ]), D.useEffect(() => {
168
+ O && y && y(U);
169
+ }, [
170
+ U,
171
+ O,
172
+ y
159
173
  ]);
160
- let Z = ue({
161
- features: ce,
174
+ let Q = ce({
175
+ features: oe,
162
176
  data: i,
163
- columns: X,
164
- pageCount: S ? ne : void 0,
165
- rowCount: S ? re : void 0,
166
- getRowId: b ? (e, t) => {
167
- let n = b.split("_").reduce((e, t) => {
177
+ columns: He,
178
+ pageCount: w ? g : void 0,
179
+ rowCount: w ? _ : void 0,
180
+ getRowId: S ? (e, t) => {
181
+ let n = S.split("_").reduce((e, t) => {
168
182
  if (e && typeof e == "object" && t in e) return e[t];
169
183
  }, e);
170
184
  return String(n === void 0 ? t : n);
171
185
  } : void 0,
172
186
  state: {
173
- sorting: W,
174
- columnFilters: B,
175
- columnVisibility: V,
176
- rowSelection: Fe,
177
- pagination: G,
178
- columnOrder: H
187
+ sorting: q,
188
+ columnFilters: U,
189
+ columnVisibility: W,
190
+ rowSelection: Me,
191
+ pagination: J,
192
+ columnOrder: G
179
193
  },
180
194
  enableRowSelection: !0,
181
195
  enableMultiSort: l,
182
- onRowSelectionChange: Ie,
183
- onSortingChange: Be,
184
- onColumnFiltersChange: Ne,
185
- onColumnVisibilityChange: Pe,
186
- onPaginationChange: Ve,
187
- onColumnOrderChange: U,
188
- autoResetPageIndex: S || ze ? !1 : void 0,
189
- manualPagination: S,
190
- manualSorting: de,
191
- manualFiltering: E
196
+ onRowSelectionChange: Ne,
197
+ onSortingChange: Le,
198
+ onColumnFiltersChange: Ae,
199
+ onColumnVisibilityChange: je,
200
+ onPaginationChange: Re,
201
+ onColumnOrderChange: K,
202
+ autoResetPageIndex: w || Ie ? !1 : void 0,
203
+ manualPagination: w,
204
+ manualSorting: le,
205
+ manualFiltering: O
192
206
  });
193
- T.useEffect(() => {
194
- y && y(Z.getFilteredSelectedRowModel().rows.map((e) => e.original));
207
+ D.useEffect(() => {
208
+ x && x(Q.getFilteredSelectedRowModel().rows.map((e) => e.original));
195
209
  }, [
196
- Fe,
197
- Z,
198
- y
210
+ Me,
211
+ Q,
212
+ x
199
213
  ]);
200
- let Ge = ye(ve(ge, { activationConstraint: { distance: 8 } }), ve(he, { coordinateGetter: Ce })), Ke = T.useCallback((e) => {
214
+ let We = _e(ge(me, { activationConstraint: { distance: 8 } }), ge(pe, { coordinateGetter: xe })), Ge = D.useCallback((e) => {
201
215
  let { active: t, over: n } = e;
202
- t && n && t.id !== n.id && U((e) => {
216
+ t && n && t.id !== n.id && K((e) => {
203
217
  let r = e.indexOf(t.id), i = e.indexOf(n.id);
204
- return xe(e, r, i);
218
+ return ye(e, r, i);
205
219
  });
206
- }, []), qe = T.useCallback((e) => W.findIndex((t) => t.id === e), [W]), Q = T.useCallback(() => /* @__PURE__ */ C(me, {
207
- sensors: Ge,
208
- collisionDetection: _e,
209
- onDragEnd: Ke,
210
- children: /* @__PURE__ */ C("div", {
211
- className: e("rounded-md border", M),
212
- children: /* @__PURE__ */ w(d, { children: [/* @__PURE__ */ C(ee, { children: Z.getHeaderGroups().map((e) => /* @__PURE__ */ C(be, {
213
- items: H,
214
- strategy: Se,
215
- children: /* @__PURE__ */ C(h, { children: e.headers.map((e) => /* @__PURE__ */ C(we, {
220
+ }, []), Ke = D.useCallback((e) => q.findIndex((t) => t.id === e), [q]), qe = D.useCallback(() => /* @__PURE__ */ T(fe, {
221
+ sensors: We,
222
+ collisionDetection: he,
223
+ onDragEnd: Ge,
224
+ children: /* @__PURE__ */ T("div", {
225
+ className: e("rounded-md border", P),
226
+ children: /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(te, { children: Q.getHeaderGroups().map((e) => /* @__PURE__ */ T(ve, {
227
+ items: G,
228
+ strategy: be,
229
+ children: /* @__PURE__ */ T(m, { children: e.headers.map((e) => /* @__PURE__ */ T(Se, {
216
230
  header: e,
217
- enableColumnOrdering: A,
231
+ enableColumnOrdering: M,
218
232
  enableMultiSort: l,
219
- sortIndex: qe(e.column.id)
233
+ sortIndex: Ke(e.column.id)
220
234
  }, e.id)) })
221
- }, e.id)) }), /* @__PURE__ */ C(f, { children: Z.getRowModel().rows?.length ? Z.getRowModel().rows.map((e) => /* @__PURE__ */ C(h, {
235
+ }, e.id)) }), /* @__PURE__ */ T(f, { children: Q.getRowModel().rows?.length ? Q.getRowModel().rows.map((e) => /* @__PURE__ */ T(m, {
222
236
  "data-state": e.getIsSelected() && "selected",
223
- onClick: () => v && v(We(e.original)),
224
- className: v ? "cursor-pointer hover:bg-muted/50" : void 0,
225
- children: e.getVisibleCells().map((e) => /* @__PURE__ */ C(p, { children: le(e.column.columnDef.cell, e.getContext()) }, e.id))
226
- }, e.id)) : /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(p, {
227
- colSpan: X.length,
237
+ onClick: () => b && b(Ue(e.original)),
238
+ className: b ? "cursor-pointer hover:bg-muted/50" : void 0,
239
+ children: e.getVisibleCells().map((e) => /* @__PURE__ */ T(p, { children: se(e.column.columnDef.cell, e.getContext()) }, e.id))
240
+ }, e.id)) : /* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, {
241
+ colSpan: He.length,
228
242
  className: "h-24 text-center",
229
- children: oe()
243
+ children: ie()
230
244
  }) }) })] })
231
245
  })
232
246
  }), [
247
+ We,
233
248
  Ge,
234
- Ke,
235
- Z,
236
- X,
237
- H,
238
- A,
249
+ Q,
250
+ He,
251
+ G,
252
+ M,
239
253
  l,
240
- qe,
241
- v,
242
- We,
243
- M
244
- ]), $ = () => /* @__PURE__ */ C("div", {
245
- className: e("rounded-md border", M),
246
- children: /* @__PURE__ */ C(d, { children: /* @__PURE__ */ C(f, { children: /* @__PURE__ */ C(h, { children: /* @__PURE__ */ C(p, {
254
+ Ke,
255
+ b,
256
+ Ue,
257
+ P
258
+ ]), $ = () => /* @__PURE__ */ T("div", {
259
+ className: e("rounded-md border", P),
260
+ children: /* @__PURE__ */ T(d, { children: /* @__PURE__ */ T(f, { children: /* @__PURE__ */ T(m, { children: /* @__PURE__ */ T(p, {
247
261
  className: "h-24 text-center",
248
- children: /* @__PURE__ */ C("div", {
262
+ children: /* @__PURE__ */ T("div", {
249
263
  className: "text-muted-foreground",
250
264
  children: "Loading..."
251
265
  })
252
266
  }) }) }) })
253
267
  });
254
- return a === "minimal" ? /* @__PURE__ */ w("div", {
255
- className: e("space-y-4", j),
256
- children: [z ? Q() : $(), /* @__PURE__ */ C(I, {
257
- table: Z,
258
- pageSizeOptions: N
268
+ return a === "minimal" ? /* @__PURE__ */ E("div", {
269
+ className: e("space-y-4", N),
270
+ children: [V ? qe() : $(), /* @__PURE__ */ T(R, {
271
+ table: Q,
272
+ pageSizeOptions: F
259
273
  })]
260
- }) : a === "toolbar" ? /* @__PURE__ */ w("div", {
261
- className: e("relative h-full", j),
262
- children: [g && /* @__PURE__ */ C("div", {
274
+ }) : a === "toolbar" ? /* @__PURE__ */ E("div", {
275
+ className: e("relative h-full", N),
276
+ children: [h && /* @__PURE__ */ T("div", {
263
277
  className: "absolute left-0 top-0 w-full h-full z-10 pointer-events-none",
264
- children: /* @__PURE__ */ C("div", {
278
+ children: /* @__PURE__ */ T("div", {
265
279
  className: "fixed right-4 bottom-10 pointer-events-auto",
266
- children: /* @__PURE__ */ C(n, {
280
+ children: /* @__PURE__ */ T(n, {
267
281
  type: "button",
268
282
  size: "icon",
269
- onClick: g,
283
+ "aria-label": "Add row",
284
+ onClick: h,
270
285
  className: "w-12 h-12 rounded-full shadow-lg",
271
- children: /* @__PURE__ */ C(pe, { className: "w-6 h-6" })
286
+ children: /* @__PURE__ */ T(de, { className: "w-6 h-6" })
272
287
  })
273
288
  })
274
- }), /* @__PURE__ */ w("div", {
289
+ }), /* @__PURE__ */ E("div", {
275
290
  className: "relative h-full flex flex-col",
276
291
  children: [
277
- /* @__PURE__ */ w("div", {
292
+ /* @__PURE__ */ E("div", {
278
293
  className: "bg-muted p-2 rounded-t-md grid grid-cols-1 sm:grid-cols-[1fr_minmax(0,auto)_1fr] items-center gap-2",
279
- children: [/* @__PURE__ */ w("div", {
294
+ children: [/* @__PURE__ */ E("div", {
280
295
  className: "flex flex-wrap justify-center items-center gap-2 sm:col-start-2 sm:col-end-3",
281
296
  children: [
282
- /* @__PURE__ */ C(F, { table: Z }),
283
- o && P === "inline" && o,
284
- o && P === "panel" && /* @__PURE__ */ w(n, {
297
+ /* @__PURE__ */ T(L, { table: Q }),
298
+ o && I === "inline" && o,
299
+ o && I === "panel" && /* @__PURE__ */ E(n, {
285
300
  type: "button",
286
- variant: ke ? "default" : "outline",
301
+ variant: H ? "default" : "outline",
287
302
  size: "sm",
288
- onClick: () => Ae(!ke),
303
+ onClick: () => De(!H),
289
304
  className: "h-8 gap-1.5",
290
- children: [/* @__PURE__ */ C(fe, { className: "h-4 w-4" }), /* @__PURE__ */ C("span", { children: "フィルター" })]
305
+ children: [/* @__PURE__ */ T(ue, { className: "h-4 w-4" }), /* @__PURE__ */ T("span", { children: "フィルター" })]
291
306
  })
292
307
  ]
293
- }), /* @__PURE__ */ w("div", {
308
+ }), /* @__PURE__ */ E("div", {
294
309
  className: "flex items-center gap-3 justify-center sm:justify-end sm:col-start-3 sm:col-end-4",
295
- children: [/* @__PURE__ */ C(Te, {
296
- table: Z,
297
- pageSizeOptions: N
298
- }), typeof m == "number" && /* @__PURE__ */ C("span", {
310
+ children: [/* @__PURE__ */ T(we, {
311
+ table: Q,
312
+ pageSizeOptions: F
313
+ }), typeof ee == "number" && /* @__PURE__ */ T("span", {
299
314
  className: "text-sm text-muted-foreground whitespace-nowrap",
300
- children: `${m.toLocaleString()} ${ae()}`
315
+ children: `${ee.toLocaleString()} ${re()}`
301
316
  })]
302
317
  })]
303
318
  }),
304
- o && P === "panel" && /* @__PURE__ */ C("div", {
305
- className: e("border-b transition-all duration-200 ease-in-out overflow-hidden bg-background", ke ? "max-h-[500px] p-4" : "max-h-0 p-0 border-none"),
319
+ o && I === "panel" && /* @__PURE__ */ T("div", {
320
+ className: e("border-b transition-all duration-200 ease-in-out overflow-hidden bg-background", H ? "max-h-[500px] p-4" : "max-h-0 p-0 border-none"),
306
321
  children: o
307
322
  }),
308
- L && /* @__PURE__ */ C("div", {
323
+ z && /* @__PURE__ */ T("div", {
309
324
  className: "bg-background px-4 py-1.5 border-b",
310
- children: L
325
+ children: z
311
326
  }),
312
- /* @__PURE__ */ C("div", {
327
+ /* @__PURE__ */ T("div", {
313
328
  className: "flex-1 overflow-auto",
314
- children: z ? Q() : $()
329
+ children: V ? qe() : $()
315
330
  })
316
331
  ]
317
332
  })]
318
- }) : /* @__PURE__ */ w("div", {
319
- className: e("space-y-4", j),
333
+ }) : /* @__PURE__ */ E("div", {
334
+ className: e("space-y-4", N),
320
335
  children: [
321
- /* @__PURE__ */ w("div", {
336
+ /* @__PURE__ */ E("div", {
322
337
  className: "flex items-center justify-between",
323
- children: [/* @__PURE__ */ C("div", {
338
+ children: [/* @__PURE__ */ T("div", {
324
339
  className: "flex items-center py-4",
325
- children: D && /* @__PURE__ */ C(r, {
326
- placeholder: te({ column: D }),
327
- value: Z.getColumn(D)?.getFilterValue() ?? "",
328
- onChange: (e) => Z.getColumn(D)?.setFilterValue(e.target.value),
340
+ children: k && /* @__PURE__ */ T(r, {
341
+ placeholder: ne({ column: k }),
342
+ value: Q.getColumn(k)?.getFilterValue() ?? "",
343
+ onChange: (e) => Q.getColumn(k)?.setFilterValue(e.target.value),
329
344
  className: "max-w-sm"
330
345
  })
331
- }), /* @__PURE__ */ C(F, { table: Z })]
346
+ }), /* @__PURE__ */ T(L, { table: Q })]
332
347
  }),
333
- L && /* @__PURE__ */ C("div", {
348
+ z && /* @__PURE__ */ T("div", {
334
349
  className: "border rounded-md bg-background px-3 py-1",
335
- children: L
350
+ children: z
336
351
  }),
337
- z ? Q() : $(),
338
- /* @__PURE__ */ C(I, {
339
- table: Z,
340
- pageSizeOptions: N
352
+ V ? qe() : $(),
353
+ /* @__PURE__ */ T(R, {
354
+ table: Q,
355
+ pageSizeOptions: F
341
356
  }),
342
- g && /* @__PURE__ */ C("div", {
357
+ h && /* @__PURE__ */ T("div", {
343
358
  className: "fixed right-4 bottom-10 z-10",
344
- children: /* @__PURE__ */ C(n, {
359
+ children: /* @__PURE__ */ T(n, {
345
360
  type: "button",
346
361
  size: "icon",
347
- onClick: g,
362
+ onClick: h,
348
363
  className: "w-12 h-12 rounded-full shadow-lg",
349
- children: /* @__PURE__ */ C(pe, { className: "w-6 h-6" })
364
+ children: /* @__PURE__ */ T(de, { className: "w-6 h-6" })
350
365
  })
351
366
  })
352
367
  ]
353
368
  });
354
369
  }
355
- function F({ table: e }) {
356
- return /* @__PURE__ */ w(i, { children: [/* @__PURE__ */ w(u, {
370
+ function L({ table: e }) {
371
+ return /* @__PURE__ */ E(i, { children: [/* @__PURE__ */ E(u, {
357
372
  className: t({
358
373
  variant: "default",
359
374
  size: "sm",
360
375
  className: "h-8"
361
376
  }),
362
- children: [/* @__PURE__ */ C(j, { className: "mr-2 h-4 w-4" }), b()]
363
- }), /* @__PURE__ */ C(o, {
377
+ children: [/* @__PURE__ */ T(P, { className: "mr-2 h-4 w-4" }), S()]
378
+ }), /* @__PURE__ */ T(o, {
364
379
  align: "end",
365
380
  className: "w-40",
366
- children: /* @__PURE__ */ w(s, { children: [
367
- /* @__PURE__ */ C(c, { children: y() }),
368
- /* @__PURE__ */ C(l, {}),
369
- e.getAllColumns().filter((e) => e.accessorFn !== void 0 && e.getCanHide()).map((e) => /* @__PURE__ */ C(a, {
381
+ children: /* @__PURE__ */ E(s, { children: [
382
+ /* @__PURE__ */ T(c, { children: x() }),
383
+ /* @__PURE__ */ T(l, {}),
384
+ e.getAllColumns().filter((e) => e.accessorFn !== void 0 && e.getCanHide()).map((e) => /* @__PURE__ */ T(a, {
370
385
  className: "capitalize",
371
386
  checked: e.getIsVisible(),
372
387
  onCheckedChange: (t) => e.toggleVisibility(!!t),
@@ -375,95 +390,99 @@ function F({ table: e }) {
375
390
  ] })
376
391
  })] });
377
392
  }
378
- function I({ table: e, pageSizeOptions: t = [
393
+ function R({ table: e, pageSizeOptions: t = [
379
394
  10,
380
395
  20,
381
396
  30,
382
397
  50,
383
398
  100
384
399
  ] }) {
385
- return /* @__PURE__ */ w("div", {
400
+ return /* @__PURE__ */ E("div", {
386
401
  className: "flex items-center justify-between px-2",
387
- children: [/* @__PURE__ */ C("div", {
402
+ children: [/* @__PURE__ */ T("div", {
388
403
  className: "flex-1 text-sm text-muted-foreground",
389
- children: v({
404
+ children: b({
390
405
  selected: e.getFilteredSelectedRowModel().rows.length,
391
406
  total: e.getFilteredRowModel().rows.length
392
407
  })
393
- }), /* @__PURE__ */ w("div", {
408
+ }), /* @__PURE__ */ E("div", {
394
409
  className: "flex items-center space-x-6 lg:space-x-8",
395
410
  children: [
396
- /* @__PURE__ */ w("div", {
411
+ /* @__PURE__ */ E("div", {
397
412
  className: "flex items-center space-x-2",
398
- children: [/* @__PURE__ */ C("p", {
413
+ children: [/* @__PURE__ */ T("p", {
399
414
  className: "text-sm font-medium",
400
- children: _()
401
- }), /* @__PURE__ */ C("select", {
402
- "aria-label": _(),
415
+ children: y()
416
+ }), /* @__PURE__ */ T("select", {
417
+ "aria-label": y(),
403
418
  value: `${e.store.state.pagination.pageSize}`,
404
419
  onChange: (t) => {
405
420
  e.setPageSize(Number(t.target.value));
406
421
  },
407
422
  className: "h-8 w-fit min-w-16 rounded-md border border-input bg-background px-2 py-1 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
408
- children: t.map((e) => /* @__PURE__ */ C("option", {
423
+ children: t.map((e) => /* @__PURE__ */ T("option", {
409
424
  value: `${e}`,
410
425
  children: e
411
426
  }, e))
412
427
  })]
413
428
  }),
414
- /* @__PURE__ */ C("div", {
429
+ /* @__PURE__ */ T("div", {
415
430
  className: "flex w-24 items-center justify-center text-sm font-medium",
416
- children: se({
431
+ children: ae({
417
432
  current: e.store.state.pagination.pageIndex + 1,
418
433
  total: e.getPageCount()
419
434
  })
420
435
  }),
421
- /* @__PURE__ */ w("div", {
436
+ /* @__PURE__ */ E("div", {
422
437
  className: "flex items-center space-x-2",
423
438
  children: [
424
- /* @__PURE__ */ w(n, {
439
+ /* @__PURE__ */ E(n, {
425
440
  variant: "default",
426
441
  size: "icon",
427
442
  className: "hidden h-8 w-8 lg:flex hover:bg-primary/90",
443
+ "aria-label": h(),
428
444
  onClick: () => e.setPageIndex(0),
429
445
  disabled: !e.getCanPreviousPage(),
430
- children: [/* @__PURE__ */ C("span", {
446
+ children: [/* @__PURE__ */ T("span", {
431
447
  className: "sr-only",
432
- children: g()
433
- }), /* @__PURE__ */ C(k, { className: "h-4 w-4" })]
448
+ children: h()
449
+ }), /* @__PURE__ */ T(j, { className: "h-4 w-4" })]
434
450
  }),
435
- /* @__PURE__ */ w(n, {
451
+ /* @__PURE__ */ E(n, {
436
452
  variant: "default",
437
453
  size: "icon",
438
454
  className: "h-8 w-8 hover:bg-primary/90",
455
+ "aria-label": v(),
439
456
  onClick: () => e.previousPage(),
440
457
  disabled: !e.getCanPreviousPage(),
441
- children: [/* @__PURE__ */ C("span", {
458
+ children: [/* @__PURE__ */ T("span", {
442
459
  className: "sr-only",
443
- children: ie()
444
- }), /* @__PURE__ */ C(E, { className: "h-4 w-4" })]
460
+ children: v()
461
+ }), /* @__PURE__ */ T(O, { className: "h-4 w-4" })]
445
462
  }),
446
- /* @__PURE__ */ w(n, {
463
+ /* @__PURE__ */ E(n, {
447
464
  variant: "default",
448
465
  size: "icon",
449
466
  className: "h-8 w-8 hover:bg-primary/90",
467
+ "aria-label": _(),
450
468
  onClick: () => e.nextPage(),
451
469
  disabled: !e.getCanNextPage(),
452
- children: [/* @__PURE__ */ C("span", {
470
+ children: [/* @__PURE__ */ T("span", {
453
471
  className: "sr-only",
454
- children: re()
455
- }), /* @__PURE__ */ C(D, { className: "h-4 w-4" })]
472
+ children: _()
473
+ }), /* @__PURE__ */ T(k, { className: "h-4 w-4" })]
456
474
  }),
457
- /* @__PURE__ */ w(n, {
475
+ /* @__PURE__ */ E(n, {
458
476
  variant: "default",
459
477
  size: "icon",
460
478
  className: "hidden h-8 w-8 lg:flex hover:bg-primary/90",
479
+ "aria-label": g(),
461
480
  onClick: () => e.setPageIndex(e.getPageCount() - 1),
462
481
  disabled: !e.getCanNextPage(),
463
- children: [/* @__PURE__ */ C("span", {
482
+ children: [/* @__PURE__ */ T("span", {
464
483
  className: "sr-only",
465
- children: ne()
466
- }), /* @__PURE__ */ C(A, { className: "h-4 w-4" })]
484
+ children: g()
485
+ }), /* @__PURE__ */ T(M, { className: "h-4 w-4" })]
467
486
  })
468
487
  ]
469
488
  })
@@ -471,7 +490,7 @@ function I({ table: e, pageSizeOptions: t = [
471
490
  })]
472
491
  });
473
492
  }
474
- function Te({ table: e, pageSizeOptions: t = [
493
+ function we({ table: e, pageSizeOptions: t = [
475
494
  10,
476
495
  20,
477
496
  30,
@@ -479,37 +498,39 @@ function Te({ table: e, pageSizeOptions: t = [
479
498
  100
480
499
  ] }) {
481
500
  let r = e.getPageCount();
482
- return /* @__PURE__ */ w("div", {
501
+ return /* @__PURE__ */ E("div", {
483
502
  className: "flex items-center gap-1",
484
- children: [/* @__PURE__ */ C("select", {
485
- "aria-label": _(),
503
+ children: [/* @__PURE__ */ T("select", {
504
+ "aria-label": y(),
486
505
  value: `${e.store.state.pagination.pageSize}`,
487
506
  onChange: (t) => {
488
507
  e.setPageSize(Number(t.target.value));
489
508
  },
490
509
  className: "h-8 w-fit min-w-16 rounded-md border border-input bg-background px-2 py-1 text-sm",
491
- children: t.map((e) => /* @__PURE__ */ C("option", {
510
+ children: t.map((e) => /* @__PURE__ */ T("option", {
492
511
  value: `${e}`,
493
512
  children: e
494
513
  }, e))
495
- }), r > 1 && /* @__PURE__ */ w(S, { children: [
496
- /* @__PURE__ */ C(n, {
514
+ }), r > 1 && /* @__PURE__ */ E(w, { children: [
515
+ /* @__PURE__ */ T(n, {
497
516
  variant: "default",
498
517
  size: "icon",
499
518
  className: "h-8 w-8 hover:bg-primary/90",
519
+ "aria-label": h(),
500
520
  onClick: () => e.setPageIndex(0),
501
521
  disabled: e.store.state.pagination.pageIndex === 0,
502
- children: /* @__PURE__ */ C(k, { className: "h-4 w-4" })
522
+ children: /* @__PURE__ */ T(j, { className: "h-4 w-4" })
503
523
  }),
504
- /* @__PURE__ */ C(n, {
524
+ /* @__PURE__ */ T(n, {
505
525
  variant: "default",
506
526
  size: "icon",
507
527
  className: "h-8 w-8 hover:bg-primary/90",
528
+ "aria-label": v(),
508
529
  onClick: () => e.previousPage(),
509
530
  disabled: !e.getCanPreviousPage(),
510
- children: /* @__PURE__ */ C(E, { className: "h-4 w-4" })
531
+ children: /* @__PURE__ */ T(O, { className: "h-4 w-4" })
511
532
  }),
512
- /* @__PURE__ */ w("span", {
533
+ /* @__PURE__ */ E("span", {
513
534
  className: "text-sm text-muted-foreground whitespace-nowrap px-1",
514
535
  children: [
515
536
  e.store.state.pagination.pageIndex + 1,
@@ -517,26 +538,28 @@ function Te({ table: e, pageSizeOptions: t = [
517
538
  r
518
539
  ]
519
540
  }),
520
- /* @__PURE__ */ C(n, {
541
+ /* @__PURE__ */ T(n, {
521
542
  variant: "default",
522
543
  size: "icon",
523
544
  className: "h-8 w-8 hover:bg-primary/90",
545
+ "aria-label": _(),
524
546
  onClick: () => e.nextPage(),
525
547
  disabled: !e.getCanNextPage(),
526
- children: /* @__PURE__ */ C(D, { className: "h-4 w-4" })
548
+ children: /* @__PURE__ */ T(k, { className: "h-4 w-4" })
527
549
  }),
528
- /* @__PURE__ */ C(n, {
550
+ /* @__PURE__ */ T(n, {
529
551
  variant: "default",
530
552
  size: "icon",
531
553
  className: "h-8 w-8 hover:bg-primary/90",
554
+ "aria-label": g(),
532
555
  onClick: () => e.setPageIndex(r - 1),
533
556
  disabled: e.store.state.pagination.pageIndex === r - 1,
534
- children: /* @__PURE__ */ C(A, { className: "h-4 w-4" })
557
+ children: /* @__PURE__ */ T(M, { className: "h-4 w-4" })
535
558
  })
536
559
  ] })]
537
560
  });
538
561
  }
539
562
  //#endregion
540
- export { P as DataTable, I as DataTablePagination, Te as DataTablePaginationCompact, F as DataTableViewOptions };
563
+ export { Ce as DataTable, R as DataTablePagination, we as DataTablePaginationCompact, L as DataTableViewOptions };
541
564
 
542
565
  //# sourceMappingURL=data-table.js.map