@kumix/ui 0.3.11 → 0.3.12

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 (528) hide show
  1. package/README.md +12 -12
  2. package/dist/components/agents/agent-activity/activity-row.d.ts +1 -2
  3. package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
  4. package/dist/components/agents/agent-activity/activity-row.js +1 -1
  5. package/dist/components/agents/agent-activity/index.d.ts +2 -2
  6. package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
  7. package/dist/components/agents/agent-activity/index.js +1 -1
  8. package/dist/components/agents/agent-code.d.ts +8 -9
  9. package/dist/components/agents/agent-code.d.ts.map +1 -1
  10. package/dist/components/agents/agent-code.js +1 -1
  11. package/dist/components/agents/agent-disclosure.d.ts +2 -3
  12. package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
  13. package/dist/components/agents/ai-sidebar.d.ts +8 -9
  14. package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
  15. package/dist/components/agents/ai-sidebar.js +1 -1
  16. package/dist/components/agents/approval-card/index.d.ts +2 -2
  17. package/dist/components/agents/approval-card/index.d.ts.map +1 -1
  18. package/dist/components/agents/approval-card/index.js +1 -1
  19. package/dist/components/agents/chat-app.d.ts +2 -3
  20. package/dist/components/agents/chat-app.d.ts.map +1 -1
  21. package/dist/components/agents/citations.d.ts +10 -11
  22. package/dist/components/agents/citations.d.ts.map +1 -1
  23. package/dist/components/agents/citations.js +1 -1
  24. package/dist/components/agents/code-block.d.ts +3 -4
  25. package/dist/components/agents/code-block.d.ts.map +1 -1
  26. package/dist/components/agents/code-block.js +1 -1
  27. package/dist/components/agents/file-diff.d.ts +5 -6
  28. package/dist/components/agents/file-diff.d.ts.map +1 -1
  29. package/dist/components/agents/file-diff.js +1 -1
  30. package/dist/components/agents/image-generation.d.ts +3 -4
  31. package/dist/components/agents/image-generation.d.ts.map +1 -1
  32. package/dist/components/agents/image-generation.js +1 -1
  33. package/dist/components/agents/loading-states/agent-progress.d.ts +2 -3
  34. package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
  35. package/dist/components/agents/loading-states/reasoning-text.d.ts +3 -4
  36. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
  37. package/dist/components/agents/loading-states/thinking-shimmer.d.ts +2 -3
  38. package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
  39. package/dist/components/agents/message-bubble.d.ts +10 -11
  40. package/dist/components/agents/message-bubble.d.ts.map +1 -1
  41. package/dist/components/agents/message-bubble.js +1 -1
  42. package/dist/components/agents/message-context.d.ts +2 -3
  43. package/dist/components/agents/message-context.d.ts.map +1 -1
  44. package/dist/components/agents/message-scroller.d.ts +2 -3
  45. package/dist/components/agents/message-scroller.d.ts.map +1 -1
  46. package/dist/components/agents/message.d.ts +18 -18
  47. package/dist/components/agents/message.d.ts.map +1 -1
  48. package/dist/components/agents/prompt-input.d.ts +4 -5
  49. package/dist/components/agents/prompt-input.d.ts.map +1 -1
  50. package/dist/components/agents/prompt-input.js +1 -1
  51. package/dist/components/agents/streaming-response.d.ts +4 -5
  52. package/dist/components/agents/streaming-response.d.ts.map +1 -1
  53. package/dist/components/agents/streaming-response.js +1 -1
  54. package/dist/components/agents/todo-list.d.ts +4 -5
  55. package/dist/components/agents/todo-list.d.ts.map +1 -1
  56. package/dist/components/agents/todo-list.js +1 -1
  57. package/dist/components/agents/tool-approval.d.ts +6 -7
  58. package/dist/components/agents/tool-approval.d.ts.map +1 -1
  59. package/dist/components/agents/tool-approval.js +1 -1
  60. package/dist/components/agents/tool-result.d.ts +6 -7
  61. package/dist/components/agents/tool-result.d.ts.map +1 -1
  62. package/dist/components/agents/tool-result.js +1 -1
  63. package/dist/components/custom/confirm-dialog.d.ts +2 -3
  64. package/dist/components/custom/confirm-dialog.d.ts.map +1 -1
  65. package/dist/components/custom/confirm-dialog.js +1 -1
  66. package/dist/components/custom/toast.d.ts +6 -7
  67. package/dist/components/custom/toast.d.ts.map +1 -1
  68. package/dist/components/motion/action-swap-blur.d.ts +7 -7
  69. package/dist/components/motion/action-swap-blur.d.ts.map +1 -1
  70. package/dist/components/motion/action-swap-cascade.d.ts +7 -7
  71. package/dist/components/motion/action-swap-cascade.d.ts.map +1 -1
  72. package/dist/components/motion/action-swap-roll.d.ts +7 -7
  73. package/dist/components/motion/action-swap-roll.d.ts.map +1 -1
  74. package/dist/components/motion/action-swap.d.ts +10 -11
  75. package/dist/components/motion/action-swap.d.ts.map +1 -1
  76. package/dist/components/motion/adaptive-stepper.d.ts +7 -8
  77. package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
  78. package/dist/components/motion/adaptive-stepper.js +1 -1
  79. package/dist/components/motion/animated-badge.d.ts +4 -5
  80. package/dist/components/motion/animated-badge.d.ts.map +1 -1
  81. package/dist/components/motion/animated-badge.js +1 -1
  82. package/dist/components/motion/animated-number.d.ts +2 -3
  83. package/dist/components/motion/animated-number.d.ts.map +1 -1
  84. package/dist/components/motion/animated-sidebar.d.ts +28 -29
  85. package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
  86. package/dist/components/motion/animated-sidebar.js +1 -1
  87. package/dist/components/motion/animated-toast-stack.d.ts +10 -11
  88. package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
  89. package/dist/components/motion/animated-toast-stack.js +1 -1
  90. package/dist/components/motion/attachment-upload.d.ts +7 -8
  91. package/dist/components/motion/attachment-upload.d.ts.map +1 -1
  92. package/dist/components/motion/attachment-upload.js +1 -1
  93. package/dist/components/motion/availability-scheduler/copy-menu.d.ts +1 -2
  94. package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
  95. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
  96. package/dist/components/motion/availability-scheduler/day-row.d.ts +1 -2
  97. package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
  98. package/dist/components/motion/availability-scheduler/day-row.js +2 -2
  99. package/dist/components/motion/availability-scheduler/icon-button.d.ts +1 -2
  100. package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -1
  101. package/dist/components/motion/availability-scheduler/index.d.ts +3 -3
  102. package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
  103. package/dist/components/motion/availability-scheduler/index.js +1 -1
  104. package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -2
  105. package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -1
  106. package/dist/components/motion/bloom-menu.d.ts +2 -3
  107. package/dist/components/motion/bloom-menu.d.ts.map +1 -1
  108. package/dist/components/motion/bloom-menu.js +1 -1
  109. package/dist/components/motion/bottom-sheet.d.ts +2 -3
  110. package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
  111. package/dist/components/motion/bounce-sidebar.d.ts +3 -4
  112. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
  113. package/dist/components/motion/bouncy-accordion.d.ts +4 -5
  114. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
  115. package/dist/components/motion/bouncy-accordion.js +1 -1
  116. package/dist/components/motion/button/base.d.ts +6 -7
  117. package/dist/components/motion/button/base.d.ts.map +1 -1
  118. package/dist/components/motion/button/magnetic.d.ts +2 -3
  119. package/dist/components/motion/button/magnetic.d.ts.map +1 -1
  120. package/dist/components/motion/button/metallic.d.ts +2 -3
  121. package/dist/components/motion/button/metallic.d.ts.map +1 -1
  122. package/dist/components/motion/button/stateful.d.ts +3 -4
  123. package/dist/components/motion/button/stateful.d.ts.map +1 -1
  124. package/dist/components/motion/button/stateful.js +1 -1
  125. package/dist/components/motion/center-morph-modal.d.ts +8 -9
  126. package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
  127. package/dist/components/motion/center-morph-modal.js +1 -1
  128. package/dist/components/motion/checkbox.d.ts +2 -3
  129. package/dist/components/motion/checkbox.d.ts.map +1 -1
  130. package/dist/components/motion/chromatic-text-reveal.d.ts +2 -3
  131. package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -1
  132. package/dist/components/motion/combobox/content.d.ts +2 -3
  133. package/dist/components/motion/combobox/content.d.ts.map +1 -1
  134. package/dist/components/motion/combobox/context.d.ts +9 -10
  135. package/dist/components/motion/combobox/context.d.ts.map +1 -1
  136. package/dist/components/motion/combobox/list.d.ts +12 -13
  137. package/dist/components/motion/combobox/list.d.ts.map +1 -1
  138. package/dist/components/motion/combobox/list.js +1 -1
  139. package/dist/components/motion/combobox/trigger.d.ts +6 -7
  140. package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
  141. package/dist/components/motion/combobox/trigger.js +1 -1
  142. package/dist/components/motion/command-palette.d.ts +3 -4
  143. package/dist/components/motion/command-palette.d.ts.map +1 -1
  144. package/dist/components/motion/command-palette.js +1 -1
  145. package/dist/components/motion/context-menu.d.ts +20 -21
  146. package/dist/components/motion/context-menu.d.ts.map +1 -1
  147. package/dist/components/motion/context-menu.js +1 -1
  148. package/dist/components/motion/cylinder-carousel.d.ts +2 -3
  149. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
  150. package/dist/components/motion/dock.d.ts +5 -6
  151. package/dist/components/motion/dock.d.ts.map +1 -1
  152. package/dist/components/motion/drawer.d.ts +2 -3
  153. package/dist/components/motion/drawer.d.ts.map +1 -1
  154. package/dist/components/motion/dynamic-island.d.ts +4 -5
  155. package/dist/components/motion/dynamic-island.d.ts.map +1 -1
  156. package/dist/components/motion/expandable-action-bar.d.ts +6 -7
  157. package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
  158. package/dist/components/motion/expandable-control.d.ts +4 -5
  159. package/dist/components/motion/expandable-control.d.ts.map +1 -1
  160. package/dist/components/motion/expandable-tabs.d.ts +4 -5
  161. package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
  162. package/dist/components/motion/expanding-arrow-button.d.ts +2 -3
  163. package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
  164. package/dist/components/motion/feedback-widget.d.ts +3 -4
  165. package/dist/components/motion/feedback-widget.d.ts.map +1 -1
  166. package/dist/components/motion/feedback-widget.js +1 -1
  167. package/dist/components/motion/file-tree.d.ts +7 -8
  168. package/dist/components/motion/file-tree.d.ts.map +1 -1
  169. package/dist/components/motion/file-tree.js +1 -1
  170. package/dist/components/motion/file-upload.d.ts +7 -8
  171. package/dist/components/motion/file-upload.d.ts.map +1 -1
  172. package/dist/components/motion/file-upload.js +1 -1
  173. package/dist/components/motion/hold-action-button.d.ts +2 -3
  174. package/dist/components/motion/hold-action-button.d.ts.map +1 -1
  175. package/dist/components/motion/infinite-masonry.d.ts +3 -4
  176. package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
  177. package/dist/components/motion/infinite-masonry.js +1 -1
  178. package/dist/components/motion/input.d.ts +3 -4
  179. package/dist/components/motion/input.d.ts.map +1 -1
  180. package/dist/components/motion/liquid.d.ts +6 -7
  181. package/dist/components/motion/liquid.d.ts.map +1 -1
  182. package/dist/components/motion/loader.d.ts +3 -4
  183. package/dist/components/motion/loader.d.ts.map +1 -1
  184. package/dist/components/motion/magnetic.d.ts +2 -3
  185. package/dist/components/motion/magnetic.d.ts.map +1 -1
  186. package/dist/components/motion/marquee.d.ts +2 -3
  187. package/dist/components/motion/marquee.d.ts.map +1 -1
  188. package/dist/components/motion/morphing-modal.d.ts +2 -3
  189. package/dist/components/motion/morphing-modal.d.ts.map +1 -1
  190. package/dist/components/motion/morphing-search.d.ts +3 -4
  191. package/dist/components/motion/morphing-search.d.ts.map +1 -1
  192. package/dist/components/motion/morphing-search.js +1 -1
  193. package/dist/components/motion/morphing-tabs.d.ts +4 -5
  194. package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
  195. package/dist/components/motion/morphing-tabs.js +1 -1
  196. package/dist/components/motion/multi-select/content.d.ts +2 -3
  197. package/dist/components/motion/multi-select/content.d.ts.map +1 -1
  198. package/dist/components/motion/multi-select/context.d.ts +9 -10
  199. package/dist/components/motion/multi-select/context.d.ts.map +1 -1
  200. package/dist/components/motion/multi-select/list.d.ts +12 -13
  201. package/dist/components/motion/multi-select/list.d.ts.map +1 -1
  202. package/dist/components/motion/multi-select/list.js +1 -1
  203. package/dist/components/motion/multi-select/trigger.d.ts +6 -7
  204. package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
  205. package/dist/components/motion/multi-select/trigger.js +1 -1
  206. package/dist/components/motion/not-found/glitch.d.ts +1 -2
  207. package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
  208. package/dist/components/motion/not-found/magnetic.d.ts +1 -2
  209. package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
  210. package/dist/components/motion/not-found/shared.d.ts +4 -5
  211. package/dist/components/motion/not-found/shared.d.ts.map +1 -1
  212. package/dist/components/motion/not-found/spotlight.d.ts +1 -2
  213. package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
  214. package/dist/components/motion/not-found/stacked.d.ts +1 -2
  215. package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
  216. package/dist/components/motion/not-found/terminal.d.ts +1 -2
  217. package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
  218. package/dist/components/motion/notification-stack.d.ts +4 -5
  219. package/dist/components/motion/notification-stack.d.ts.map +1 -1
  220. package/dist/components/motion/notification-stack.js +1 -1
  221. package/dist/components/motion/number-ticker.d.ts +2 -3
  222. package/dist/components/motion/number-ticker.d.ts.map +1 -1
  223. package/dist/components/motion/otp-input.d.ts +3 -4
  224. package/dist/components/motion/otp-input.d.ts.map +1 -1
  225. package/dist/components/motion/overflow-actions.d.ts +5 -6
  226. package/dist/components/motion/overflow-actions.d.ts.map +1 -1
  227. package/dist/components/motion/overflow-actions.js +1 -1
  228. package/dist/components/motion/parallax.d.ts +2 -3
  229. package/dist/components/motion/parallax.d.ts.map +1 -1
  230. package/dist/components/motion/popover-morph.d.ts +6 -7
  231. package/dist/components/motion/popover-morph.d.ts.map +1 -1
  232. package/dist/components/motion/popover.d.ts +6 -7
  233. package/dist/components/motion/popover.d.ts.map +1 -1
  234. package/dist/components/motion/preview-rail.d.ts +3 -4
  235. package/dist/components/motion/preview-rail.d.ts.map +1 -1
  236. package/dist/components/motion/project-folder.d.ts +3 -4
  237. package/dist/components/motion/project-folder.d.ts.map +1 -1
  238. package/dist/components/motion/project-folder.js +1 -1
  239. package/dist/components/motion/pull-to-refresh.d.ts +3 -4
  240. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
  241. package/dist/components/motion/radio.d.ts +4 -5
  242. package/dist/components/motion/radio.d.ts.map +1 -1
  243. package/dist/components/motion/range-slider-bubble.d.ts +2 -3
  244. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
  245. package/dist/components/motion/range-slider-fluid.d.ts +2 -3
  246. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
  247. package/dist/components/motion/range-slider-ruler.d.ts +2 -3
  248. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
  249. package/dist/components/motion/range-slider-wave.d.ts +2 -3
  250. package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
  251. package/dist/components/motion/range-slider.d.ts +2 -3
  252. package/dist/components/motion/range-slider.d.ts.map +1 -1
  253. package/dist/components/motion/scroll-progress.d.ts +4 -5
  254. package/dist/components/motion/scroll-progress.d.ts.map +1 -1
  255. package/dist/components/motion/scroll-reveal.d.ts +2 -3
  256. package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
  257. package/dist/components/motion/scroll-to.d.ts +2 -3
  258. package/dist/components/motion/scroll-to.d.ts.map +1 -1
  259. package/dist/components/motion/select-morph.d.ts +10 -11
  260. package/dist/components/motion/select-morph.d.ts.map +1 -1
  261. package/dist/components/motion/select-morph.js +1 -1
  262. package/dist/components/motion/select.d.ts +10 -11
  263. package/dist/components/motion/select.d.ts.map +1 -1
  264. package/dist/components/motion/select.js +1 -1
  265. package/dist/components/motion/shader-background.d.ts +4 -5
  266. package/dist/components/motion/shader-background.d.ts.map +1 -1
  267. package/dist/components/motion/shared-layout-bg.d.ts +2 -3
  268. package/dist/components/motion/shared-layout-bg.d.ts.map +1 -1
  269. package/dist/components/motion/signup-form.d.ts +7 -8
  270. package/dist/components/motion/signup-form.d.ts.map +1 -1
  271. package/dist/components/motion/signup-form.js +1 -1
  272. package/dist/components/motion/slide-action-button.d.ts +2 -3
  273. package/dist/components/motion/slide-action-button.d.ts.map +1 -1
  274. package/dist/components/motion/smooth-scroll.d.ts +6 -7
  275. package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
  276. package/dist/components/motion/swipeable-list.d.ts +8 -9
  277. package/dist/components/motion/swipeable-list.d.ts.map +1 -1
  278. package/dist/components/motion/switch.d.ts +2 -3
  279. package/dist/components/motion/switch.d.ts.map +1 -1
  280. package/dist/components/motion/table/editable-cell.d.ts +1 -2
  281. package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
  282. package/dist/components/motion/table/index.d.ts +2 -2
  283. package/dist/components/motion/table/index.d.ts.map +1 -1
  284. package/dist/components/motion/table/row-handle.d.ts +1 -2
  285. package/dist/components/motion/table/row-handle.d.ts.map +1 -1
  286. package/dist/components/motion/table/row-handle.js +1 -1
  287. package/dist/components/motion/table/skeleton-rows.d.ts +1 -2
  288. package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -1
  289. package/dist/components/motion/table/table-header.d.ts +2 -3
  290. package/dist/components/motion/table/table-header.d.ts.map +1 -1
  291. package/dist/components/motion/table/table-header.js +1 -1
  292. package/dist/components/motion/table/table-menu.d.ts +2 -3
  293. package/dist/components/motion/table/table-menu.d.ts.map +1 -1
  294. package/dist/components/motion/tabs.d.ts +4 -5
  295. package/dist/components/motion/tabs.d.ts.map +1 -1
  296. package/dist/components/motion/text-cascade.d.ts +2 -3
  297. package/dist/components/motion/text-cascade.d.ts.map +1 -1
  298. package/dist/components/motion/text-reveal.d.ts +2 -3
  299. package/dist/components/motion/text-reveal.d.ts.map +1 -1
  300. package/dist/components/motion/text-scramble.d.ts +2 -3
  301. package/dist/components/motion/text-scramble.d.ts.map +1 -1
  302. package/dist/components/motion/text-shimmer.d.ts +2 -3
  303. package/dist/components/motion/text-shimmer.d.ts.map +1 -1
  304. package/dist/components/motion/theme-toggle.d.ts +5 -6
  305. package/dist/components/motion/theme-toggle.d.ts.map +1 -1
  306. package/dist/components/motion/theme-toggle.js +1 -1
  307. package/dist/components/motion/tilt-card.d.ts +2 -3
  308. package/dist/components/motion/tilt-card.d.ts.map +1 -1
  309. package/dist/components/motion/tooltip.d.ts +2 -3
  310. package/dist/components/motion/tooltip.d.ts.map +1 -1
  311. package/dist/components/motion/wheel-picker.d.ts +3 -4
  312. package/dist/components/motion/wheel-picker.d.ts.map +1 -1
  313. package/dist/components/reui/alert.d.ts +1 -1
  314. package/dist/components/reui/alert.js +1 -1
  315. package/dist/components/reui/autocomplete.d.ts +3 -3
  316. package/dist/components/reui/autocomplete.d.ts.map +1 -1
  317. package/dist/components/reui/autocomplete.js +1 -1
  318. package/dist/components/reui/badge.d.ts +2 -2
  319. package/dist/components/reui/cascader/cascader-async.d.ts +8 -9
  320. package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
  321. package/dist/components/reui/cascader/cascader-columns.d.ts +3 -3
  322. package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
  323. package/dist/components/reui/cascader/cascader-columns.js +1 -1
  324. package/dist/components/reui/cascader/cascader-context.d.ts +13 -13
  325. package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
  326. package/dist/components/reui/cascader/cascader-footer.d.ts +8 -8
  327. package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
  328. package/dist/components/reui/cascader/cascader-footer.js +1 -1
  329. package/dist/components/reui/cascader/cascader-i18n.d.ts +3 -4
  330. package/dist/components/reui/cascader/cascader-i18n.d.ts.map +1 -1
  331. package/dist/components/reui/cascader/cascader-item.d.ts +9 -9
  332. package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
  333. package/dist/components/reui/cascader/cascader-item.js +1 -1
  334. package/dist/components/reui/cascader/cascader-lib.d.ts +38 -39
  335. package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
  336. package/dist/components/reui/cascader/cascader-nav.d.ts +6 -6
  337. package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
  338. package/dist/components/reui/cascader/cascader-nav.js +1 -1
  339. package/dist/components/reui/cascader/cascader-virtual.d.ts +6 -6
  340. package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
  341. package/dist/components/reui/cascader/cascader.d.ts +19 -19
  342. package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
  343. package/dist/components/reui/cascader/cascader.js +1 -1
  344. package/dist/components/reui/code-block/code-block-highlight.d.ts +32 -33
  345. package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -1
  346. package/dist/components/reui/code-block/code-block.d.ts +7 -7
  347. package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
  348. package/dist/components/reui/data-grid/data-grid-column-filter.js +1 -1
  349. package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
  350. package/dist/components/reui/data-grid/data-grid-column-header.js +9 -6
  351. package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
  352. package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
  353. package/dist/components/reui/data-grid/data-grid-i18n.js.map +1 -1
  354. package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
  355. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
  356. package/dist/components/reui/data-grid/data-grid-table-dnd.js +1 -1
  357. package/dist/components/reui/data-grid/data-grid-table.js +1 -1
  358. package/dist/components/reui/data-grid/data-grid.d.ts +28 -28
  359. package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
  360. package/dist/components/reui/data-grid/data-grid.js.map +1 -1
  361. package/dist/components/reui/date-selector.d.ts +11 -12
  362. package/dist/components/reui/date-selector.d.ts.map +1 -1
  363. package/dist/components/reui/date-selector.js +1 -1
  364. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
  365. package/dist/components/reui/event-calendar/event-calendar-event.js +1 -1
  366. package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
  367. package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
  368. package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -1
  369. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  370. package/dist/components/reui/filters/filters-advanced.d.ts +6 -7
  371. package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
  372. package/dist/components/reui/filters/filters-advanced.js +1 -1
  373. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  374. package/dist/components/reui/filters/filters-builder.d.ts +5 -5
  375. package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
  376. package/dist/components/reui/filters/filters-builder.js +2 -2
  377. package/dist/components/reui/filters/filters-chip.d.ts +10 -11
  378. package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
  379. package/dist/components/reui/filters/filters-chip.js +1 -1
  380. package/dist/components/reui/filters/filters-context.d.ts +30 -30
  381. package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
  382. package/dist/components/reui/filters/filters-date.d.ts +13 -14
  383. package/dist/components/reui/filters/filters-date.d.ts.map +1 -1
  384. package/dist/components/reui/filters/filters-dnd.d.ts +15 -16
  385. package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
  386. package/dist/components/reui/filters/filters-editors.d.ts +14 -14
  387. package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
  388. package/dist/components/reui/filters/filters-editors.js +2 -2
  389. package/dist/components/reui/filters/filters-i18n.d.ts +4 -5
  390. package/dist/components/reui/filters/filters-i18n.d.ts.map +1 -1
  391. package/dist/components/reui/filters/filters-lib.d.ts +34 -35
  392. package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
  393. package/dist/components/reui/filters/filters-operators.d.ts +13 -14
  394. package/dist/components/reui/filters/filters-operators.d.ts.map +1 -1
  395. package/dist/components/reui/filters/filters-query.d.ts +29 -30
  396. package/dist/components/reui/filters/filters-query.d.ts.map +1 -1
  397. package/dist/components/reui/filters/filters-types.d.ts +31 -32
  398. package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
  399. package/dist/components/reui/filters/filters.d.ts +5 -5
  400. package/dist/components/reui/filters/filters.d.ts.map +1 -1
  401. package/dist/components/reui/filters/filters.js +1 -1
  402. package/dist/components/reui/frame.d.ts +1 -1
  403. package/dist/components/reui/frame.js +1 -1
  404. package/dist/components/reui/gantt/gantt-bar.js +1 -1
  405. package/dist/components/reui/gantt/gantt-nav.js +1 -1
  406. package/dist/components/reui/gantt/gantt-view.js +1 -1
  407. package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
  408. package/dist/components/reui/gantt/gantt.js.map +1 -1
  409. package/dist/components/reui/icon-tile.d.ts +2 -2
  410. package/dist/components/reui/kanban.d.ts +11 -11
  411. package/dist/components/reui/kanban.d.ts.map +1 -1
  412. package/dist/components/reui/number-field.d.ts +3 -3
  413. package/dist/components/reui/number-field.js +1 -1
  414. package/dist/components/reui/phone-input.js +1 -1
  415. package/dist/components/reui/rating.d.ts +1 -1
  416. package/dist/components/reui/rating.js +1 -1
  417. package/dist/components/reui/scrollspy.d.ts +1 -2
  418. package/dist/components/reui/scrollspy.d.ts.map +1 -1
  419. package/dist/components/reui/sortable.d.ts +6 -6
  420. package/dist/components/reui/sortable.d.ts.map +1 -1
  421. package/dist/components/reui/tree.js +1 -1
  422. package/dist/components/ui/accordion.js +1 -1
  423. package/dist/components/ui/alert-dialog.js +1 -1
  424. package/dist/components/ui/alert.js +1 -1
  425. package/dist/components/ui/attachment.d.ts +1 -1
  426. package/dist/components/ui/attachment.js +1 -1
  427. package/dist/components/ui/badge.d.ts +1 -1
  428. package/dist/components/ui/breadcrumb.js +1 -1
  429. package/dist/components/ui/bubble.d.ts +1 -1
  430. package/dist/components/ui/bubble.js +1 -1
  431. package/dist/components/ui/button-group.js +1 -1
  432. package/dist/components/ui/button.d.ts +2 -2
  433. package/dist/components/ui/button.js +1 -1
  434. package/dist/components/ui/calendar.js +1 -1
  435. package/dist/components/ui/carousel.js +1 -1
  436. package/dist/components/ui/chart.d.ts +2 -2
  437. package/dist/components/ui/chart.d.ts.map +1 -1
  438. package/dist/components/ui/checkbox.js +1 -1
  439. package/dist/components/ui/combobox.js +1 -1
  440. package/dist/components/ui/command.js +1 -1
  441. package/dist/components/ui/context-menu.js +1 -1
  442. package/dist/components/ui/dialog.js +1 -1
  443. package/dist/components/ui/dropdown-menu.js +1 -1
  444. package/dist/components/ui/empty.js +1 -1
  445. package/dist/components/ui/field.js +1 -1
  446. package/dist/components/ui/input-group.d.ts +1 -1
  447. package/dist/components/ui/input-group.js +1 -1
  448. package/dist/components/ui/input-otp.js +1 -1
  449. package/dist/components/ui/item.d.ts +3 -3
  450. package/dist/components/ui/item.js +1 -1
  451. package/dist/components/ui/marker.d.ts +1 -1
  452. package/dist/components/ui/marker.js +1 -1
  453. package/dist/components/ui/menubar.js +1 -1
  454. package/dist/components/ui/message-scroller.js +1 -1
  455. package/dist/components/ui/native-select.js +1 -1
  456. package/dist/components/ui/navigation-menu.js +1 -1
  457. package/dist/components/ui/pagination.js +1 -1
  458. package/dist/components/ui/questionnaire.js +1 -1
  459. package/dist/components/ui/select.js +1 -1
  460. package/dist/components/ui/sheet.js +1 -1
  461. package/dist/components/ui/sidebar.d.ts +2 -2
  462. package/dist/components/ui/sidebar.js +1 -1
  463. package/dist/components/ui/spinner.js +1 -1
  464. package/dist/components/ui/tabs.d.ts +1 -1
  465. package/dist/components/ui/tabs.js +1 -1
  466. package/dist/components/ui/toast.js +1 -1
  467. package/dist/components/ui/toggle.d.ts +2 -2
  468. package/dist/components/ui/toggle.js +1 -1
  469. package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-TIKvPaAZ.js} +2 -2
  470. package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-TIKvPaAZ.js.map} +1 -1
  471. package/dist/{data-grid-i18n-52UUYPbr.d.ts → data-grid-i18n-TQR2PZlU.d.ts} +1 -13
  472. package/dist/data-grid-i18n-TQR2PZlU.d.ts.map +1 -0
  473. package/dist/hooks/use-body-classes.d.ts +1 -2
  474. package/dist/hooks/use-body-classes.d.ts.map +1 -1
  475. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
  476. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
  477. package/dist/hooks/use-dismiss.d.ts +3 -4
  478. package/dist/hooks/use-dismiss.d.ts.map +1 -1
  479. package/dist/hooks/use-favicon.d.ts +1 -2
  480. package/dist/hooks/use-favicon.d.ts.map +1 -1
  481. package/dist/hooks/use-file-upload.d.ts +7 -8
  482. package/dist/hooks/use-file-upload.d.ts.map +1 -1
  483. package/dist/hooks/use-hover-capable.d.ts +1 -2
  484. package/dist/hooks/use-hover-capable.d.ts.map +1 -1
  485. package/dist/hooks/use-hover-gesture.d.ts +2 -3
  486. package/dist/hooks/use-hover-gesture.d.ts.map +1 -1
  487. package/dist/hooks/use-hydrated.d.ts +1 -2
  488. package/dist/hooks/use-hydrated.d.ts.map +1 -1
  489. package/dist/hooks/use-intersection-observer.d.ts +1 -2
  490. package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
  491. package/dist/hooks/use-is-mac.d.ts +1 -2
  492. package/dist/hooks/use-is-mac.d.ts.map +1 -1
  493. package/dist/hooks/use-media-query.d.ts +1 -2
  494. package/dist/hooks/use-media-query.d.ts.map +1 -1
  495. package/dist/hooks/use-meta-color.d.ts +1 -2
  496. package/dist/hooks/use-meta-color.d.ts.map +1 -1
  497. package/dist/hooks/use-mobile.d.ts +1 -2
  498. package/dist/hooks/use-mobile.d.ts.map +1 -1
  499. package/dist/hooks/use-mutation-observer.d.ts +1 -2
  500. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  501. package/dist/hooks/use-on-open.d.ts +1 -2
  502. package/dist/hooks/use-on-open.d.ts.map +1 -1
  503. package/dist/hooks/use-row-cursor.d.ts +1 -2
  504. package/dist/hooks/use-row-cursor.d.ts.map +1 -1
  505. package/dist/hooks/use-scroll-position.d.ts +1 -2
  506. package/dist/hooks/use-scroll-position.d.ts.map +1 -1
  507. package/dist/hooks/use-slider-input.d.ts +1 -2
  508. package/dist/hooks/use-slider-input.d.ts.map +1 -1
  509. package/dist/hooks/use-slider.d.ts +3 -4
  510. package/dist/hooks/use-slider.d.ts.map +1 -1
  511. package/dist/hooks/use-tap-gesture.d.ts +3 -4
  512. package/dist/hooks/use-tap-gesture.d.ts.map +1 -1
  513. package/dist/hooks/use-touch-capable.d.ts +1 -2
  514. package/dist/hooks/use-touch-capable.d.ts.map +1 -1
  515. package/dist/hooks/use-viewport.d.ts +1 -2
  516. package/dist/hooks/use-viewport.d.ts.map +1 -1
  517. package/dist/lib/ease.d.ts +10 -11
  518. package/dist/lib/ease.d.ts.map +1 -1
  519. package/dist/lib/favicon.d.ts +1 -2
  520. package/dist/lib/favicon.d.ts.map +1 -1
  521. package/dist/lib/text-shimmer.d.ts +3 -4
  522. package/dist/lib/text-shimmer.d.ts.map +1 -1
  523. package/dist/lib/tick-sound.d.ts +1 -2
  524. package/dist/lib/tick-sound.d.ts.map +1 -1
  525. package/dist/lib/touch.d.ts +6 -7
  526. package/dist/lib/touch.d.ts.map +1 -1
  527. package/package.json +3 -3
  528. package/dist/data-grid-i18n-52UUYPbr.d.ts.map +0 -1
@@ -7,16 +7,16 @@ import { ShikiTransformer } from "shiki";
7
7
  * block. An uncoloured token keeps both undefined and renders as a bare text
8
8
  * node with no wrapper.
9
9
  */
10
- type CodeBlockToken = {
10
+ export type CodeBlockToken = {
11
11
  content: string;
12
12
  color?: string;
13
13
  colorDark?: string;
14
14
  fontStyle?: CodeBlockFontStyle;
15
15
  word?: boolean;
16
16
  };
17
- type CodeBlockFontStyle = "italic" | "bold" | "underline";
18
- type CodeBlockDiffKind = "add" | "remove";
19
- type CodeBlockLevel = "error" | "warning" | "info";
17
+ export type CodeBlockFontStyle = "italic" | "bold" | "underline";
18
+ export type CodeBlockDiffKind = "add" | "remove";
19
+ export type CodeBlockLevel = "error" | "warning" | "info";
20
20
  /**
21
21
  * Per-line presentation state, resolved once at highlight time.
22
22
  *
@@ -26,7 +26,7 @@ type CodeBlockLevel = "error" | "warning" | "info";
26
26
  * exists. Props win on conflict, because notation lives in the source string,
27
27
  * which a consumer often does not control.
28
28
  */
29
- type CodeBlockLineState = {
29
+ export type CodeBlockLineState = {
30
30
  highlighted?: boolean;
31
31
  diff?: CodeBlockDiffKind;
32
32
  focused?: boolean;
@@ -38,7 +38,7 @@ type CodeBlockLineState = {
38
38
  * them. Instances are reused across passes when unchanged, which is what lets
39
39
  * the row be a plain `React.memo` and a streamed chunk cost one re-render.
40
40
  */
41
- type CodeBlockLine = {
41
+ export type CodeBlockLine = {
42
42
  tokens: CodeBlockToken[];
43
43
  number: number;
44
44
  text: string;
@@ -50,18 +50,18 @@ type CodeBlockLine = {
50
50
  gutter?: string;
51
51
  };
52
52
  /** Source lines, as `[2, 3, 4]` or as a range string such as `"2-4,7"`. */
53
- type CodeBlockLineSpec = number[] | string;
54
- type CodeBlockDiffSpec = {
53
+ export type CodeBlockLineSpec = number[] | string;
54
+ export type CodeBlockDiffSpec = {
55
55
  added?: CodeBlockLineSpec;
56
56
  removed?: CodeBlockLineSpec;
57
57
  };
58
- type CodeBlockLevelSpec = Partial<Record<CodeBlockLevel, CodeBlockLineSpec>>;
58
+ export type CodeBlockLevelSpec = Partial<Record<CodeBlockLevel, CodeBlockLineSpec>>;
59
59
  /** A word to mark, optionally restricted to some source lines. */
60
- type CodeBlockWordSpec = string | {
60
+ export type CodeBlockWordSpec = string | {
61
61
  word: string;
62
62
  lines?: CodeBlockLineSpec;
63
63
  };
64
- type CodeBlockThemes = {
64
+ export type CodeBlockThemes = {
65
65
  light: string;
66
66
  dark: string;
67
67
  };
@@ -71,8 +71,8 @@ type CodeBlockThemes = {
71
71
  * (`Record<string, unknown>`) rejected every real `ShikiTransformer`: an
72
72
  * interface without an index signature is not assignable to it.
73
73
  */
74
- type CodeBlockTransformer = ShikiTransformer;
75
- type CodeBlockHighlightOptions = {
74
+ export type CodeBlockTransformer = ShikiTransformer;
75
+ export type CodeBlockHighlightOptions = {
76
76
  language?: string;
77
77
  themes?: CodeBlockThemes;
78
78
  transformers?: CodeBlockTransformer[];
@@ -90,23 +90,23 @@ type CodeBlockHighlightOptions = {
90
90
  lineLevels?: CodeBlockLevelSpec;
91
91
  };
92
92
  /** What a `CodeBlockLineActions` render prop receives. */
93
- type CodeBlockLineActionContext = {
93
+ export type CodeBlockLineActionContext = {
94
94
  line: number;
95
95
  text: string;
96
96
  state?: CodeBlockLineState;
97
97
  };
98
- type CodeBlockLineActionsRender = (context: CodeBlockLineActionContext) => ReactNode;
98
+ export type CodeBlockLineActionsRender = (context: CodeBlockLineActionContext) => ReactNode;
99
99
  /**
100
100
  * A STATIC map, never ``import(`shiki/langs/${lang}.mjs`)``: a template import
101
101
  * makes bundlers bundle all ~200 grammars. Written out, each entry is its own
102
102
  * lazy chunk. To add a language, add a line: that is the intended extension
103
103
  * point of this file.
104
104
  */
105
- declare const codeBlockLanguages: Record<string, () => Promise<unknown>>;
106
- declare const codeBlockThemes: Record<string, () => Promise<unknown>>;
107
- declare const DEFAULT_CODE_BLOCK_THEMES: CodeBlockThemes;
105
+ export declare const codeBlockLanguages: Record<string, () => Promise<unknown>>;
106
+ export declare const codeBlockThemes: Record<string, () => Promise<unknown>>;
107
+ export declare const DEFAULT_CODE_BLOCK_THEMES: CodeBlockThemes;
108
108
  /** Resolves an alias and reports whether the grammar is actually available. */
109
- declare function resolveCodeBlockLanguage(language?: string): string | undefined;
109
+ export declare function resolveCodeBlockLanguage(language?: string): string | undefined;
110
110
  /**
111
111
  * Turns `[2, 3]` or `"2-4,7"` into a set of source line numbers.
112
112
  *
@@ -115,16 +115,16 @@ declare function resolveCodeBlockLanguage(language?: string): string | undefined
115
115
  * content or from a model, and a code viewer that crashes on a bad range is
116
116
  * worse than one that shows no highlight.
117
117
  */
118
- declare function parseLineSpec(spec?: CodeBlockLineSpec): Set<number>;
118
+ export declare function parseLineSpec(spec?: CodeBlockLineSpec): Set<number>;
119
119
  /** Normalises line endings so every downstream offset is LF-based. */
120
- declare function normalizeCode(code: string): string;
120
+ export declare function normalizeCode(code: string): string;
121
121
  /**
122
122
  * Character ranges for `highlightedWords`, as shiki `decorations`.
123
123
  *
124
124
  * shiki rejects overlapping decorations, so a later match that would overlap an
125
125
  * earlier one is dropped rather than passed through to throw.
126
126
  */
127
- declare function buildWordDecorations(code: string, words?: CodeBlockWordSpec[]): {
127
+ export declare function buildWordDecorations(code: string, words?: CodeBlockWordSpec[]): {
128
128
  start: number;
129
129
  end: number;
130
130
  properties: {
@@ -136,7 +136,7 @@ declare function buildWordDecorations(code: string, words?: CodeBlockWordSpec[])
136
136
  * drops it from RENDERED output, but the raw `code` string would paste the
137
137
  * comment into someone's editor.
138
138
  */
139
- declare function stripNotationComments(code: string): string;
139
+ export declare function stripNotationComments(code: string): string;
140
140
  /**
141
141
  * Plain, unhighlighted lines. One token per line, no colour.
142
142
  *
@@ -144,14 +144,14 @@ declare function stripNotationComments(code: string): string;
144
144
  * streaming block, so the tail of a stream is readable before its grammar pass
145
145
  * lands and no frame is ever blank.
146
146
  */
147
- declare function toPlainLines(code: string, startLine?: number): CodeBlockLine[];
147
+ export declare function toPlainLines(code: string, startLine?: number): CodeBlockLine[];
148
148
  /**
149
149
  * Pulls `code` and `language` out of the props react-markdown gives a `pre`:
150
150
  * the glue every AI chat app writes by hand, shipped here instead. Tolerant by
151
151
  * construction, because a still-streaming fence has no closing delimiter and
152
152
  * often no language yet, and must render as plain text rather than throw.
153
153
  */
154
- declare function markdownCodeProps(props: {
154
+ export declare function markdownCodeProps(props: {
155
155
  children?: ReactNode;
156
156
  className?: string;
157
157
  }): {
@@ -159,7 +159,7 @@ declare function markdownCodeProps(props: {
159
159
  language?: string;
160
160
  };
161
161
  /** One segment of a markdown string: prose, or a fenced code block. */
162
- type CodeBlockMarkdownPart = {
162
+ export type CodeBlockMarkdownPart = {
163
163
  type: "text" | "code";
164
164
  content: string;
165
165
  language?: string;
@@ -172,16 +172,16 @@ type CodeBlockMarkdownPart = {
172
172
  * trailing fence is the point: mid-stream it comes back as a code part flagged
173
173
  * `open`, instead of being dropped or read as prose.
174
174
  */
175
- declare function markdownFences(markdown: string): CodeBlockMarkdownPart[];
175
+ export declare function markdownFences(markdown: string): CodeBlockMarkdownPart[];
176
176
  /**
177
177
  * Highlights `code` into the renderer's line shape. Built on `codeToHast` so
178
178
  * consumer transformers run and their line classes land in `line.state`,
179
179
  * making prop state and `[!code ++]` notation one feature, not two code
180
180
  * paths. Safe in a server component: the result is plain JSON.
181
181
  */
182
- declare function highlightCode(code: string, options?: CodeBlockHighlightOptions): Promise<CodeBlockLine[]>;
182
+ export declare function highlightCode(code: string, options?: CodeBlockHighlightOptions): Promise<CodeBlockLine[]>;
183
183
  /** Test seam: drops the singleton and every cached document. */
184
- declare function resetCodeBlockHighlighter(): void;
184
+ export declare function resetCodeBlockHighlighter(): void;
185
185
  /**
186
186
  * Terminal output with SGR colour codes, as renderable lines: feed the result
187
187
  * to the `lines` prop. Covers what agent stdout actually uses - 30-37 / 90-97
@@ -190,8 +190,8 @@ declare function resetCodeBlockHighlighter(): void;
190
190
  * surface has its own background, and a partial screen-drawing stream is
191
191
  * better read as text than half-drawn.
192
192
  */
193
- declare function ansiToLines(text: string, startLine?: number): CodeBlockLine[];
194
- type CodeBlockPatchFile = {
193
+ export declare function ansiToLines(text: string, startLine?: number): CodeBlockLine[];
194
+ export type CodeBlockPatchFile = {
195
195
  /** New-side path, or the old one for a deletion. */
196
196
  file: string;
197
197
  /** Unified view: context, removed and added lines with dual gutter labels. */
@@ -210,7 +210,6 @@ type CodeBlockPatchFile = {
210
210
  * arithmetic against a hand-concatenated string. Tokens are plain; patches
211
211
  * read by tint, not grammar.
212
212
  */
213
- declare function parseUnifiedDiff(patch: string): CodeBlockPatchFile[];
213
+ export declare function parseUnifiedDiff(patch: string): CodeBlockPatchFile[];
214
214
  //#endregion
215
- export { CodeBlockDiffKind, CodeBlockDiffSpec, CodeBlockFontStyle, CodeBlockHighlightOptions, CodeBlockLevel, CodeBlockLevelSpec, CodeBlockLine, CodeBlockLineActionContext, CodeBlockLineActionsRender, CodeBlockLineSpec, CodeBlockLineState, CodeBlockMarkdownPart, CodeBlockPatchFile, CodeBlockThemes, CodeBlockToken, CodeBlockTransformer, CodeBlockWordSpec, DEFAULT_CODE_BLOCK_THEMES, ansiToLines, buildWordDecorations, codeBlockLanguages, codeBlockThemes, highlightCode, markdownCodeProps, markdownFences, normalizeCode, parseLineSpec, parseUnifiedDiff, resetCodeBlockHighlighter, resolveCodeBlockLanguage, stripNotationComments, toPlainLines };
216
215
  //# sourceMappingURL=code-block-highlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-block-highlight.d.ts","names":[],"sources":["../../../../src/components/reui/code-block/code-block-highlight.tsx"],"mappings":";;;;;;;;;KAWY;EACV;EACA;EACA;EACA,YAAY;EACZ;;KAGU;KAEA;KAEA;;;;;;;;;;KAWA;EACV;EACA,OAAO;EACP;EACA,QAAQ;;;;;;;;KASE;EACV,QAAQ;EACR;EACA;EACA,QAAQ;;;;;EAKR;;;KAIU;KAEA;EACV,QAAQ;EACR,UAAU;;KAGA,qBAAqB,QAAQ,OAAO,gBAAgB;;KAGpD;EAA+B;EAAc,QAAQ;;KAErD;EAAoB;EAAe;;;;;;;;KAQnC,uBAAuB;KAEvB;EACV;EACA,SAAS;EACT,eAAe;EACf;;;;;;EAMA;EACA,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,OAAO;EACP,aAAa;;;KAIH;EACV;EACA;EACA,QAAQ;;KAGE,8BAA8B,SAAS,+BAA+B;;;;;;;cAYrE,oBAAoB,qBAAqB;cAqDzC,iBAAiB,qBAAqB;cAqBtC,2BAA2B;;iBAMxB,yBAAyB;;;;;;;;;iBAmBzB,cAAc,OAAO,oBAAoB;;iBAmCzC,cAAc;;;;;;;iBAUd,qBACd,cACA,QAAQ;EACL;EAAe;EAAa;IAAc;;;;;;;;iBAiD/B,sBAAsB;;;;;;;;iBAgBtB,aAAa,cAAc,qBAAgB;;;;;;;iBAgB3C,kBAAkB;EAAS,WAAW;EAAW;;EAC/D;EACA;;;KAwCU;EACV;EACA;EACA;;EAEA;;;;;;;;iBASc,eAAe,mBAAmB;;;;;;;iBAiW5B,cACpB,cACA,UAAS,4BACR,QAAQ;;iBAmEK;;;;;;;;;iBAkHA,YAAY,cAAc,qBAAgB;KAkF9C;;EAEV;;EAEA,OAAO;EACP;EACA;EACA;IAAS;IAAgB;;;;;;;;;;iBAUX,iBAAiB,gBAAgB"}
1
+ {"version":3,"file":"code-block-highlight.d.ts","names":[],"sources":["../../../../src/components/reui/code-block/code-block-highlight.tsx"],"mappings":";;;;;;;;;YAWY;EACV;EACA;EACA;EACA,YAAY;EACZ;;YAGU;YAEA;YAEA;;;;;;;;;;YAWA;EACV;EACA,OAAO;EACP;EACA,QAAQ;;;;;;;;YASE;EACV,QAAQ;EACR;EACA;EACA,QAAQ;;;;;EAKR;;;YAIU;YAEA;EACV,QAAQ;EACR,UAAU;;YAGA,qBAAqB,QAAQ,OAAO,gBAAgB;;YAGpD;EAA+B;EAAc,QAAQ;;YAErD;EAAoB;EAAe;;;;;;;;YAQnC,uBAAuB;YAEvB;EACV;EACA,SAAS;EACT,eAAe;EACf;;;;;;EAMA;EACA,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,OAAO;EACP,aAAa;;;YAIH;EACV;EACA;EACA,QAAQ;;YAGE,8BAA8B,SAAS,+BAA+B;;;;;;;qBAYrE,oBAAoB,qBAAqB;qBAqDzC,iBAAiB,qBAAqB;qBAqBtC,2BAA2B;;wBAMxB,yBAAyB;;;;;;;;;wBAmBzB,cAAc,OAAO,oBAAoB;;wBAmCzC,cAAc;;;;;;;wBAUd,qBACd,cACA,QAAQ;EACL;EAAe;EAAa;IAAc;;;;;;;;wBAiD/B,sBAAsB;;;;;;;;wBAgBtB,aAAa,cAAc,qBAAgB;;;;;;;wBAgB3C,kBAAkB;EAAS,WAAW;EAAW;;EAC/D;EACA;;;YAwCU;EACV;EACA;EACA;;EAEA;;;;;;;;wBASc,eAAe,mBAAmB;;;;;;;wBAiW5B,cACpB,cACA,UAAS,4BACR,QAAQ;;wBAmEK;;;;;;;;;wBAkHA,YAAY,cAAc,qBAAgB;YAkF9C;;EAEV;;EAEA,OAAO;EACP;EACA;EACA;IAAS;IAAgB;;;;;;;;;;wBAUX,iBAAiB,gBAAgB"}
@@ -24,17 +24,17 @@ type CodeBlockConfigValue = {
24
24
  * here and the ACTIVE ROW renders it, so actions stay aligned when soft wrap
25
25
  * gives lines different heights.
26
26
  */
27
- type CodeBlockLineActionsSide = "end" | "gutter";
27
+ export type CodeBlockLineActionsSide = "end" | "gutter";
28
28
  declare function useCodeBlockConfig(part: string): CodeBlockConfigValue & {
29
29
  code: string;
30
30
  };
31
- type CodeBlockFoldRegion = {
31
+ export type CodeBlockFoldRegion = {
32
32
  /** Source line that owns the toggle and stays visible when folded. */
33
33
  start: number;
34
34
  /** Last source line the region swallows. */
35
35
  end: number;
36
36
  };
37
- type CodeBlockProps = {
37
+ export type CodeBlockProps = {
38
38
  code?: string;
39
39
  language?: string;
40
40
  lines?: CodeBlockLine[];
@@ -109,7 +109,7 @@ declare function CodeBlockTitle({ className, ...props }: ComponentProps<"div">):
109
109
  * instead of silently rendering plain.
110
110
  */
111
111
  declare function CodeBlockLanguage({ className, children, ...props }: ComponentProps<"span">): import("react").JSX.Element | null;
112
- type CodeBlockCopyButtonProps = {
112
+ export type CodeBlockCopyButtonProps = {
113
113
  value?: string;
114
114
  timeout?: number;
115
115
  onCopy?: (value: string) => void;
@@ -138,7 +138,7 @@ declare function CodeBlockWrapToggle({ className, children, variant, size, onCli
138
138
  * always compose it without guarding on line count themselves.
139
139
  */
140
140
  declare function CodeBlockExpandButton({ className, children, variant, size, onClick, ...props }: ComponentProps<typeof Button>): import("react").JSX.Element | null;
141
- type CodeBlockLineActionsProps = {
141
+ export type CodeBlockLineActionsProps = {
142
142
  children: CodeBlockLineActionsRender;
143
143
  /**
144
144
  * `end` floats the group over the end of the active row. `gutter` puts it in
@@ -148,7 +148,7 @@ type CodeBlockLineActionsProps = {
148
148
  */
149
149
  side?: CodeBlockLineActionsSide;
150
150
  };
151
- type CodeBlockDownloadButtonProps = {
151
+ export type CodeBlockDownloadButtonProps = {
152
152
  /** Text to save. Defaults to the block's code with notation stripped. */
153
153
  value?: string;
154
154
  /** Defaults to `code.<ext>` from the block's language. */
@@ -193,5 +193,5 @@ declare function useCodeBlockSelection(): {
193
193
  clearSelection: () => void;
194
194
  };
195
195
  //#endregion
196
- export { CodeBlock, CodeBlockContent, CodeBlockCopyButton, CodeBlockCopyButtonProps, type CodeBlockDiffSpec, CodeBlockDownloadButton, CodeBlockDownloadButtonProps, CodeBlockExpandButton, CodeBlockFoldRegion, CodeBlockHeader, type CodeBlockHighlightOptions, CodeBlockLanguage, type CodeBlockLevelSpec, type CodeBlockLine, CodeBlockLineActions, CodeBlockLineActionsProps, type CodeBlockLineActionsRender, CodeBlockLineActionsSide, type CodeBlockLineSpec, type CodeBlockLineState, type CodeBlockPatchFile, CodeBlockProps, type CodeBlockThemes, CodeBlockTitle, type CodeBlockToken, type CodeBlockTransformer, type CodeBlockWordSpec, CodeBlockWrapToggle, ansiToLines, markdownCodeProps, markdownFences, parseUnifiedDiff, useCodeBlockConfig, useCodeBlockFolding, useCodeBlockSelection };
196
+ export { CodeBlock, CodeBlockContent, CodeBlockCopyButton, type CodeBlockDiffSpec, CodeBlockDownloadButton, CodeBlockExpandButton, CodeBlockHeader, type CodeBlockHighlightOptions, CodeBlockLanguage, type CodeBlockLevelSpec, type CodeBlockLine, CodeBlockLineActions, type CodeBlockLineActionsRender, type CodeBlockLineSpec, type CodeBlockLineState, type CodeBlockPatchFile, type CodeBlockThemes, CodeBlockTitle, type CodeBlockToken, type CodeBlockTransformer, type CodeBlockWordSpec, CodeBlockWrapToggle, ansiToLines, markdownCodeProps, markdownFences, parseUnifiedDiff, useCodeBlockConfig, useCodeBlockFolding, useCodeBlockSelection };
197
197
  //# sourceMappingURL=code-block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"code-block.d.ts","names":[],"sources":["../../../../src/components/reui/code-block/code-block.tsx"],"mappings":";;;;;;;;KAwDK;EACH;EACA;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,cAAc;EACd;EACA;EACA;;;;;;;KAqCU;iBAsBH,mBAAmB,eAAe;EAAyB;;KAqMxD;;EAEV;;EAEA;;KAsVU;EACV;EACA;EACA,QAAQ;EACR,SAAS;EACT;EACA;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;EACA,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,OAAO;EACP,aAAa;EACb,eAAe;EACf;EACA;EACA;EACA;EACA,yBAAyB;;EAEzB;;EAEA;EACA;EACA,oBAAoB;;EAEpB;;;;;;EAMA,cAAc;;EAEd;;EAEA;EACA,kBAAkB;EAClB,WAAW;IACT,KAAK;;;;;;;iBAQA,YACP,MACA,UACA,OAAO,WACP,QACA,WACA,iBACA,WACA,MAAM,UACN,aACA,cACA,UACA,SACA,OACA,kBACA,kBACA,cACA,MACA,YACA,cACA,WACA,YACA,eACA,sBACA,uBACA,sBACA,UAAU,cACV,iBACA,kBACA,UACA,aAAa,iBACb,QACA,eACA,gBACA,WACA,aACG,SACF,iCAAc,IAAA;;;;;;;iBA0cR,mBAAmB;EAAe;oBAAoB,IAAA;;;;;;iBAiatD,kBAAkB,cAAc,SAAS,wCAAqB,IAAA;iBAe9D,iBAAiB,cAAc,SAAS,wCAAqB,IAAA;;;;;;iBAe7D,oBAAoB,WAAW,aAAa,SAAS,yCAAsB,IAAA;KAsDxE;EACV;EACA;EACA,UAAU;EACV,eAAe;;EAEf;IAAW;IAAe;;;EAE1B;EACA;IACE,KAAK,sBAAsB;;;;;;;iBAQtB,sBACP,OACA,SACA,QACA,aACA,QACA,UACA,eACA,WACA,SACA,MACA,aACG,SACF,2CAAwB,IAAA;iBAwFlB,sBACP,WACA,UACA,SACA,MACA,YACG,SACF,sBAAsB,0BAAO,IAAA;;;;;;;iBA6BvB,wBACP,WACA,UACA,SACA,MACA,YACG,SACF,sBAAsB,0BAAO,IAAA;KA8CpB;EACV,UAAU;;;;;;;EAOV,OAAO;;KAsCG;;EAEV;;EAEA;EACA,cAAc;;EAEd;EACA;;EAEA;IACE,KAAK,sBAAsB;;;;;;iBAOtB,0BACP,OACA,UACA,YACA,UACA,eACA,OACA,WACA,SACA,MACA,aACG,SACF,+CAA4B,IAAA;iBA8DtB,uBAAuB,UAAU,QAAgB;;;;;;iBAiBjD;;WAAA;;EAj9Da,aAAA;;;;;;;;;;iBA++Db;;;EAp/DY,aAAA,cAAM;EACH"}
1
+ {"version":3,"file":"code-block.d.ts","names":[],"sources":["../../../../src/components/reui/code-block/code-block.tsx"],"mappings":";;;;;;;;KAwDK;EACH;EACA;EACA;EACA;EACA,UAAU;EACV;EACA;EACA,cAAc;EACd;EACA;EACA;;;;;;;YAqCU;iBAsBH,mBAAmB,eAAe;EAAyB;;YAqMxD;;EAEV;;EAEA;;YAsVU;EACV;EACA;EACA,QAAQ;EACR,SAAS;EACT;EACA;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;EACA,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,OAAO;EACP,aAAa;EACb,eAAe;EACf;EACA;EACA;EACA;EACA,yBAAyB;;EAEzB;;EAEA;EACA;EACA,oBAAoB;;EAEpB;;;;;;EAMA,cAAc;;EAEd;;EAEA;EACA,kBAAkB;EAClB,WAAW;IACT,KAAK;;;;;;;iBAQA,YACP,MACA,UACA,OAAO,WACP,QACA,WACA,iBACA,WACA,MAAM,UACN,aACA,cACA,UACA,SACA,OACA,kBACA,kBACA,cACA,MACA,YACA,cACA,WACA,YACA,eACA,sBACA,uBACA,sBACA,UAAU,cACV,iBACA,kBACA,UACA,aAAa,iBACb,QACA,eACA,gBACA,WACA,aACG,SACF,iCAAc,IAAA;;;;;;;iBA0cR,mBAAmB;EAAe;oBAAoB,IAAA;;;;;;iBAiatD,kBAAkB,cAAc,SAAS,wCAAqB,IAAA;iBAe9D,iBAAiB,cAAc,SAAS,wCAAqB,IAAA;;;;;;iBAe7D,oBAAoB,WAAW,aAAa,SAAS,yCAAsB,IAAA;YAsDxE;EACV;EACA;EACA,UAAU;EACV,eAAe;;EAEf;IAAW;IAAe;;;EAE1B;EACA;IACE,KAAK,sBAAsB;;;;;;;iBAQtB,sBACP,OACA,SACA,QACA,aACA,QACA,UACA,eACA,WACA,SACA,MACA,aACG,SACF,2CAAwB,IAAA;iBAwFlB,sBACP,WACA,UACA,SACA,MACA,YACG,SACF,sBAAsB,0BAAO,IAAA;;;;;;;iBA6BvB,wBACP,WACA,UACA,SACA,MACA,YACG,SACF,sBAAsB,0BAAO,IAAA;YA8CpB;EACV,UAAU;;;;;;;EAOV,OAAO;;YAsCG;;EAEV;;EAEA;EACA,cAAc;;EAEd;EACA;;EAEA;IACE,KAAK,sBAAsB;;;;;;iBAOtB,0BACP,OACA,UACA,YACA,UACA,eACA,OACA,WACA,SACA,MACA,aACG,SACF,+CAA4B,IAAA;iBA8DtB,uBAAuB,UAAU,QAAgB;;;;;;iBAiBjD;;WAAA;;EAj9Da,aAAA;;;;;;;;;;iBA++Db;;;EAp/DY,aAAA,cAAM;EACH"}
@@ -7,8 +7,8 @@ import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.js";
7
7
  import { useDataGrid } from "./data-grid.js";
8
8
  import { useMemo, useState } from "react";
9
9
  import { cn } from "@kumix/utils";
10
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
10
  import { CheckIcon, CirclePlusIcon } from "lucide-react";
11
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region src/components/reui/data-grid/data-grid-column-filter.tsx
13
13
  function DataGridColumnFilter({ column, title, options }) {
14
14
  const { i18n } = useDataGrid();
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-column-header.d.ts","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-column-header.tsx"],"mappings":";;;;UAqCU,0BAA0B,sBAAsB,gBAChD,eAAe;EACvB,QAAQ,OAAO,kBAAkB,OAAO;;EAExC;EACA,OAAO;;EAEP;EACA,SAAS;EACT;;;;;;;;;;;;;iBA+TO,qBAAqB,sBAAsB,QAClD,OAAO,0BAA0B,OAAO,0BAAO,IAAA"}
1
+ {"version":3,"file":"data-grid-column-header.d.ts","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-column-header.tsx"],"mappings":";;;;UAqCU,0BAA0B,sBAAsB,gBAChD,eAAe;EACvB,QAAQ,OAAO,kBAAkB,OAAO;;EAExC;EACA,OAAO;;EAEP;EACA,SAAS;EACT;;;;;;;;;;;;;iBAgUO,qBAAqB,sBAAsB,QAClD,OAAO,0BAA0B,OAAO,0BAAO,IAAA"}
@@ -4,8 +4,8 @@ import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMe
4
4
  import { getColumnHeaderLabel, useDataGrid } from "./data-grid.js";
5
5
  import { memo, useMemo } from "react";
6
6
  import { cn } from "@kumix/utils";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { ArrowDownIcon, ArrowLeftIcon, ArrowLeftToLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpIcon, CheckIcon, ChevronsUpDownIcon, PinOffIcon, Settings2Icon } from "lucide-react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { Subscribe } from "@tanstack/react-table";
10
10
  //#region src/components/reui/data-grid/data-grid-column-header.tsx
11
11
  function DataGridColumnHeaderInner({ column, title, icon, className, filter, visibility = false }) {
@@ -13,7 +13,6 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
13
13
  const resolvedTitle = title ?? getColumnHeaderLabel(column);
14
14
  const columnOrderState = table.state.columnOrder;
15
15
  const columnOrder = columnOrderState.length > 0 ? columnOrderState : table.getAllLeafColumns().map((leafColumn) => leafColumn.id);
16
- props.tableLayout?.columnsVisibility && visibility && JSON.stringify(table.state.columnVisibility);
17
16
  const isSorted = column.getIsSorted();
18
17
  const isPinned = column.getIsPinned();
19
18
  const canSort = column.getCanSort();
@@ -59,7 +58,7 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
59
58
  /* @__PURE__ */ jsx(ArrowUpIcon, { className: "size-3.5!" }),
60
59
  /* @__PURE__ */ jsx("span", {
61
60
  className: "grow",
62
- children: "Asc"
61
+ children: i18n.labels.sortAscending
63
62
  }),
64
63
  isSorted === "asc" && /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 text-primary opacity-100!" })
65
64
  ]
@@ -73,7 +72,7 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
73
72
  /* @__PURE__ */ jsx(ArrowDownIcon, { className: "size-3.5!" }),
74
73
  /* @__PURE__ */ jsx("span", {
75
74
  className: "grow",
76
- children: "Desc"
75
+ children: i18n.labels.sortDescending
77
76
  }),
78
77
  isSorted === "desc" && /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 text-primary opacity-100!" })
79
78
  ]
@@ -91,7 +90,7 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
91
90
  }),
92
91
  /* @__PURE__ */ jsx("span", {
93
92
  className: "grow",
94
- children: "Pin to left"
93
+ children: i18n.labels.pinColumnStart
95
94
  }),
96
95
  isPinned === "start" && /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 text-primary opacity-100!" })
97
96
  ]
@@ -104,7 +103,7 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
104
103
  }),
105
104
  /* @__PURE__ */ jsx("span", {
106
105
  className: "grow",
107
- children: "Pin to right"
106
+ children: i18n.labels.pinColumnEnd
108
107
  }),
109
108
  isPinned === "end" && /* @__PURE__ */ jsx(CheckIcon, { className: "size-4 text-primary opacity-100!" })
110
109
  ]
@@ -174,7 +173,11 @@ function DataGridColumnHeaderInner({ column, title, icon, className, filter, vis
174
173
  table,
175
174
  columnIndex,
176
175
  columnOrder,
176
+ i18n.labels.sortAscending,
177
+ i18n.labels.pinColumnStart,
177
178
  i18n.labels.moveColumnEnd,
179
+ i18n.labels.sortDescending,
180
+ i18n.labels.pinColumnEnd,
178
181
  i18n.labels.moveColumnStart,
179
182
  i18n.labels.columnsMenu
180
183
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-column-header.js","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-column-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { memo, useMemo } from \"react\";\nimport type { Column } from \"@tanstack/react-table\";\nimport { Subscribe } from \"@tanstack/react-table\";\nimport {\n ArrowDownIcon,\n ArrowLeftIcon,\n ArrowLeftToLineIcon,\n ArrowRightIcon,\n ArrowRightToLineIcon,\n ArrowUpIcon,\n CheckIcon,\n ChevronsUpDownIcon,\n PinOffIcon,\n Settings2Icon,\n} from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"../../ui/dropdown-menu\";\nimport type { DataGridFeatures } from \"./data-grid\";\nimport { getColumnHeaderLabel, useDataGrid } from \"./data-grid\";\n\ninterface DataGridColumnHeaderProps<TData extends object, TValue>\n extends HTMLAttributes<HTMLDivElement> {\n column: Column<DataGridFeatures, TData, TValue>;\n /** When omitted, uses `column.columnDef.meta.headerTitle`, then a string `columnDef.header`, then `column.id`. */\n title?: string;\n icon?: ReactNode;\n /** Reserved; pin controls are gated by tableLayout.columnsPinnable + column.getCanPin(). */\n pinnable?: boolean;\n filter?: ReactNode;\n visibility?: boolean;\n}\n\nfunction DataGridColumnHeaderInner<TData extends object, TValue>({\n column,\n title,\n icon,\n className,\n filter,\n visibility = false,\n}: DataGridColumnHeaderProps<TData, TValue>) {\n const { i18n, isLoading, table, props } = useDataGrid();\n const resolvedTitle = title ?? getColumnHeaderLabel(column);\n\n // TanStack's columnOrder defaults to [] until a consumer seeds it; fall\n // back to the definition order so Move Left/Right work out of the box.\n const columnOrderState = table.state.columnOrder;\n const columnOrder =\n columnOrderState.length > 0\n ? columnOrderState\n : table.getAllLeafColumns().map((leafColumn) => leafColumn.id);\n props.tableLayout?.columnsVisibility && visibility\n ? JSON.stringify(table.state.columnVisibility)\n : \"\";\n const isSorted = column.getIsSorted();\n const isPinned = column.getIsPinned();\n const canSort = column.getCanSort();\n const canPin = column.getCanPin();\n const canResize = column.getCanResize();\n\n const columnIndex = columnOrder.indexOf(column.id);\n const canMoveLeft = columnIndex > 0;\n const canMoveRight = columnIndex < columnOrder.length - 1;\n\n const handleSort = () => {\n if (isSorted === \"asc\") {\n column.toggleSorting(true);\n } else if (isSorted === \"desc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(false);\n }\n };\n\n const headerLabelClassName = cn(\n \"inline-flex h-full items-center gap-1.5 font-normal text-[0.8125rem] text-secondary-foreground/80 leading-[calc(1.125/0.8125)] [&_svg]:size-3.5 [&_svg]:opacity-60\",\n className,\n );\n\n const headerButtonClassName = cn(\n \"h-6 rounded-lg px-2 font-normal text-secondary-foreground/80 hover:bg-secondary hover:text-foreground data-[state=open]:bg-secondary data-[state=open]:text-foreground\",\n className,\n );\n\n const sortIcon =\n canSort &&\n (isSorted === \"desc\" ? (\n <ArrowDownIcon className=\"size-3.25\" aria-hidden=\"true\" />\n ) : isSorted === \"asc\" ? (\n <ArrowUpIcon className=\"size-3.25\" aria-hidden=\"true\" />\n ) : (\n <ChevronsUpDownIcon className=\"mt-px size-3.25\" aria-hidden=\"true\" />\n ));\n\n const hasControls =\n props.tableLayout?.columnsMovable ||\n (props.tableLayout?.columnsVisibility && visibility) ||\n (props.tableLayout?.columnsPinnable && canPin) ||\n filter;\n\n const menuItems = useMemo(() => {\n const items: ReactNode[] = [];\n let hasPreviousSection = false;\n\n // Filter section\n if (filter) {\n items.push(\n <DropdownMenuGroup key=\"group-filter\">\n <DropdownMenuLabel key=\"filter\">{filter}</DropdownMenuLabel>\n </DropdownMenuGroup>,\n );\n hasPreviousSection = true;\n }\n\n // Sort section\n if (canSort) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-sort\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"sort-asc\"\n onClick={() => {\n if (isSorted === \"asc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(false);\n }\n }}\n disabled={!canSort}\n >\n <ArrowUpIcon className=\"size-3.5!\" />\n <span className=\"grow\">Asc</span>\n {isSorted === \"asc\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"sort-desc\"\n onClick={() => {\n if (isSorted === \"desc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(true);\n }\n }}\n disabled={!canSort}\n >\n <ArrowDownIcon className=\"size-3.5!\" />\n <span className=\"grow\">Desc</span>\n {isSorted === \"desc\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Pin section\n if (props.tableLayout?.columnsPinnable && canPin) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-pin\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"pin-left\"\n onClick={() => column.pin(isPinned === \"start\" ? false : \"start\")}\n >\n <ArrowLeftToLineIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span className=\"grow\">Pin to left</span>\n {isPinned === \"start\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"pin-right\"\n onClick={() => column.pin(isPinned === \"end\" ? false : \"end\")}\n >\n <ArrowRightToLineIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span className=\"grow\">Pin to right</span>\n {isPinned === \"end\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Move section\n if (props.tableLayout?.columnsMovable) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-move\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"move-left\"\n onClick={() => {\n if (columnIndex > 0) {\n const newOrder = [...columnOrder];\n const [movedColumn] = newOrder.splice(columnIndex, 1);\n newOrder.splice(columnIndex - 1, 0, movedColumn);\n table.setColumnOrder(newOrder);\n }\n }}\n disabled={!canMoveLeft || isPinned !== false}\n >\n <ArrowLeftIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span>{i18n.labels.moveColumnStart}</span>\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"move-right\"\n onClick={() => {\n if (columnIndex < columnOrder.length - 1) {\n const newOrder = [...columnOrder];\n const [movedColumn] = newOrder.splice(columnIndex, 1);\n newOrder.splice(columnIndex + 1, 0, movedColumn);\n table.setColumnOrder(newOrder);\n }\n }}\n disabled={!canMoveRight || isPinned !== false}\n >\n <ArrowRightIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span>{i18n.labels.moveColumnEnd}</span>\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Visibility section\n if (props.tableLayout?.columnsVisibility && visibility) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-visibility\" />);\n }\n items.push(\n <DropdownMenuSub key=\"visibility\">\n <DropdownMenuSubTrigger>\n <Settings2Icon className=\"size-3.5!\" />\n <span>{i18n.labels.columnsMenu}</span>\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent side=\"right\">\n {table\n .getAllColumns()\n .filter((col) => col.getCanHide())\n .map((col) => (\n <DropdownMenuCheckboxItem\n key={col.id}\n checked={col.getIsVisible()}\n onSelect={(event) => event.preventDefault()}\n onCheckedChange={(value) => col.toggleVisibility(!!value)}\n className=\"capitalize\"\n >\n {getColumnHeaderLabel(col)}\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuSubContent>\n </DropdownMenuSub>,\n );\n }\n\n return items;\n }, [\n filter,\n canSort,\n isSorted,\n column,\n props.tableLayout?.columnsPinnable,\n props.tableLayout?.columnsMovable,\n props.tableLayout?.columnsVisibility,\n canPin,\n isPinned,\n canMoveLeft,\n canMoveRight,\n visibility,\n table,\n columnIndex,\n columnOrder,\n i18n.labels.moveColumnEnd,\n i18n.labels.moveColumnStart,\n i18n.labels.columnsMenu,\n ]);\n\n if (hasControls) {\n return (\n <div className=\"-ms-2 flex h-full items-center justify-between gap-1.5\">\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button variant=\"ghost\" className={headerButtonClassName} disabled={isLoading}>\n {icon && icon}\n {resolvedTitle}\n {sortIcon}\n </Button>\n }\n />\n <DropdownMenuContent className=\"w-40\" align=\"start\">\n {menuItems}\n </DropdownMenuContent>\n </DropdownMenu>\n {props.tableLayout?.columnsPinnable && canPin && isPinned && (\n <Button\n size=\"icon-sm\"\n variant=\"ghost\"\n className=\"-me-1 size-7 rounded-lg\"\n onClick={() => column.pin(false)}\n aria-label={i18n.labels.unpinColumn(resolvedTitle)}\n title={i18n.labels.unpinColumn(resolvedTitle)}\n >\n <PinOffIcon className=\"size-3.5! opacity-50!\" aria-hidden=\"true\" />\n </Button>\n )}\n </div>\n );\n }\n\n if (canSort || (props.tableLayout?.columnsResizable && canResize)) {\n return (\n <div className=\"-ms-2 flex h-full items-center\">\n <Button\n variant=\"ghost\"\n className={headerButtonClassName}\n disabled={isLoading}\n onClick={handleSort}\n >\n {icon && icon}\n {resolvedTitle}\n {sortIcon}\n </Button>\n </div>\n );\n }\n\n return (\n <div className={headerLabelClassName}>\n {icon && icon}\n {resolvedTitle}\n </div>\n );\n}\n\nconst DataGridColumnHeaderMemo = memo(DataGridColumnHeaderInner) as <TData extends object, TValue>(\n props: DataGridColumnHeaderProps<TData, TValue> & {\n /** Internal: the state slices the header re-renders on. Not part of the public API. */\n subscribedState?: unknown;\n },\n) => ReactNode;\n\n/**\n * Sort and pin state reaches this header through builder calls on `column`\n * (`getIsSorted()`, `getIsPinned()`), and `column` is a stable reference. That\n * combination is the one v9's fresh-table-per-state-change does NOT cover:\n * React Compiler is free to memoize against the stable column and never\n * re-evaluate those reads, which shows up as frozen sort arrows and pin\n * controls. The `Subscribe` below turns the slices this header actually reads\n * into a real reactive dependency, and threading the selection through as a\n * prop is what lets it past the `memo` - which would otherwise see unchanged\n * props and skip the render anyway.\n */\nfunction DataGridColumnHeader<TData extends object, TValue>(\n props: DataGridColumnHeaderProps<TData, TValue>,\n) {\n const { table } = useDataGrid();\n\n return (\n <Subscribe\n source={table.store}\n selector={(state) => ({\n sorting: state.sorting,\n columnPinning: state.columnPinning,\n columnOrder: state.columnOrder,\n columnVisibility: state.columnVisibility,\n })}\n >\n {(subscribed) => <DataGridColumnHeaderMemo {...props} subscribedState={subscribed} />}\n </Subscribe>\n );\n}\n\nexport { DataGridColumnHeader, type DataGridColumnHeaderProps };\n"],"mappings":";;;;;;;;;;AAiDA,SAAS,0BAAwD,EAC/D,QACA,OACA,MACA,WACA,QACA,aAAa,SAC8B;CAC3C,MAAM,EAAE,MAAM,WAAW,OAAO,UAAU,YAAY;CACtD,MAAM,gBAAgB,SAAS,qBAAqB,MAAM;CAI1D,MAAM,mBAAmB,MAAM,MAAM;CACrC,MAAM,cACJ,iBAAiB,SAAS,IACtB,mBACA,MAAM,kBAAkB,CAAC,CAAC,KAAK,eAAe,WAAW,EAAE;CACjE,MAAM,aAAa,qBAAqB,cACpC,KAAK,UAAU,MAAM,MAAM,gBAAgB;CAE/C,MAAM,WAAW,OAAO,YAAY;CACpC,MAAM,WAAW,OAAO,YAAY;CACpC,MAAM,UAAU,OAAO,WAAW;CAClC,MAAM,SAAS,OAAO,UAAU;CAChC,MAAM,YAAY,OA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IT,OACE,qBAAC,OAAD;EAAK,WAAW;EAAhB,UAAA,CACG,QAAQ,MACR,aACE;;AAET;AAEA,MAAM,2BAA2B,KAAK,yBAAyB;;;;;;;;;;;;AAkB/D,SAAS,qBACP,OACA;CACA,MAAM,EAAE,UAAU,YAAY;CAE9B,OACE,oBAAC,WAAD;EACE,QAAQ,MAAM;EACd,WAAW,WAAW;GACpB,SAAS,MAAM;GACf,eAAe,MAAM;GACrB,aAAa,MAAM;GACnB,kBAAkB,MAAM;EAC1B;EAEE,WAAA,eAAe,oBAAC,0BAAD;GAA0B,GAAI;GAAO,iBAAiB;EAAa,CAAA;CAC3E,CAAA;AAEf"}
1
+ {"version":3,"file":"data-grid-column-header.js","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-column-header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { memo, useMemo } from \"react\";\nimport type { Column } from \"@tanstack/react-table\";\nimport { Subscribe } from \"@tanstack/react-table\";\nimport {\n ArrowDownIcon,\n ArrowLeftIcon,\n ArrowLeftToLineIcon,\n ArrowRightIcon,\n ArrowRightToLineIcon,\n ArrowUpIcon,\n CheckIcon,\n ChevronsUpDownIcon,\n PinOffIcon,\n Settings2Icon,\n} from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuTrigger,\n} from \"../../ui/dropdown-menu\";\nimport type { DataGridFeatures } from \"./data-grid\";\nimport { getColumnHeaderLabel, useDataGrid } from \"./data-grid\";\n\ninterface DataGridColumnHeaderProps<TData extends object, TValue>\n extends HTMLAttributes<HTMLDivElement> {\n column: Column<DataGridFeatures, TData, TValue>;\n /** When omitted, uses `column.columnDef.meta.headerTitle`, then a string `columnDef.header`, then `column.id`. */\n title?: string;\n icon?: ReactNode;\n /** Reserved; pin controls are gated by tableLayout.columnsPinnable + column.getCanPin(). */\n pinnable?: boolean;\n filter?: ReactNode;\n visibility?: boolean;\n}\n\nfunction DataGridColumnHeaderInner<TData extends object, TValue>({\n column,\n title,\n icon,\n className,\n filter,\n visibility = false,\n}: DataGridColumnHeaderProps<TData, TValue>) {\n const { i18n, isLoading, table, props } = useDataGrid();\n const resolvedTitle = title ?? getColumnHeaderLabel(column);\n\n // TanStack's columnOrder defaults to [] until a consumer seeds it; fall\n // back to the definition order so Move Left/Right work out of the box.\n const columnOrderState = table.state.columnOrder;\n const columnOrder =\n columnOrderState.length > 0\n ? columnOrderState\n : table.getAllLeafColumns().map((leafColumn) => leafColumn.id);\n const isSorted = column.getIsSorted();\n const isPinned = column.getIsPinned();\n const canSort = column.getCanSort();\n const canPin = column.getCanPin();\n const canResize = column.getCanResize();\n\n const columnIndex = columnOrder.indexOf(column.id);\n const canMoveLeft = columnIndex > 0;\n const canMoveRight = columnIndex < columnOrder.length - 1;\n\n const handleSort = () => {\n if (isSorted === \"asc\") {\n column.toggleSorting(true);\n } else if (isSorted === \"desc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(false);\n }\n };\n\n const headerLabelClassName = cn(\n \"inline-flex h-full items-center gap-1.5 font-normal text-[0.8125rem] text-secondary-foreground/80 leading-[calc(1.125/0.8125)] [&_svg]:size-3.5 [&_svg]:opacity-60\",\n className,\n );\n\n const headerButtonClassName = cn(\n \"h-6 rounded-lg px-2 font-normal text-secondary-foreground/80 hover:bg-secondary hover:text-foreground data-[state=open]:bg-secondary data-[state=open]:text-foreground\",\n className,\n );\n\n const sortIcon =\n canSort &&\n (isSorted === \"desc\" ? (\n <ArrowDownIcon className=\"size-3.25\" aria-hidden=\"true\" />\n ) : isSorted === \"asc\" ? (\n <ArrowUpIcon className=\"size-3.25\" aria-hidden=\"true\" />\n ) : (\n <ChevronsUpDownIcon className=\"mt-px size-3.25\" aria-hidden=\"true\" />\n ));\n\n const hasControls =\n props.tableLayout?.columnsMovable ||\n (props.tableLayout?.columnsVisibility && visibility) ||\n (props.tableLayout?.columnsPinnable && canPin) ||\n filter;\n\n const menuItems = useMemo(() => {\n const items: ReactNode[] = [];\n let hasPreviousSection = false;\n\n // Filter section\n if (filter) {\n items.push(\n <DropdownMenuGroup key=\"group-filter\">\n <DropdownMenuLabel key=\"filter\">{filter}</DropdownMenuLabel>\n </DropdownMenuGroup>,\n );\n hasPreviousSection = true;\n }\n\n // Sort section\n if (canSort) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-sort\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"sort-asc\"\n onClick={() => {\n if (isSorted === \"asc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(false);\n }\n }}\n disabled={!canSort}\n >\n <ArrowUpIcon className=\"size-3.5!\" />\n <span className=\"grow\">{i18n.labels.sortAscending}</span>\n {isSorted === \"asc\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"sort-desc\"\n onClick={() => {\n if (isSorted === \"desc\") {\n column.clearSorting();\n } else {\n column.toggleSorting(true);\n }\n }}\n disabled={!canSort}\n >\n <ArrowDownIcon className=\"size-3.5!\" />\n <span className=\"grow\">{i18n.labels.sortDescending}</span>\n {isSorted === \"desc\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Pin section\n if (props.tableLayout?.columnsPinnable && canPin) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-pin\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"pin-left\"\n onClick={() => column.pin(isPinned === \"start\" ? false : \"start\")}\n >\n <ArrowLeftToLineIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span className=\"grow\">{i18n.labels.pinColumnStart}</span>\n {isPinned === \"start\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"pin-right\"\n onClick={() => column.pin(isPinned === \"end\" ? false : \"end\")}\n >\n <ArrowRightToLineIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span className=\"grow\">{i18n.labels.pinColumnEnd}</span>\n {isPinned === \"end\" && <CheckIcon className=\"size-4 text-primary opacity-100!\" />}\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Move section\n if (props.tableLayout?.columnsMovable) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-move\" />);\n }\n items.push(\n <DropdownMenuItem\n key=\"move-left\"\n onClick={() => {\n if (columnIndex > 0) {\n const newOrder = [...columnOrder];\n const [movedColumn] = newOrder.splice(columnIndex, 1);\n newOrder.splice(columnIndex - 1, 0, movedColumn);\n table.setColumnOrder(newOrder);\n }\n }}\n disabled={!canMoveLeft || isPinned !== false}\n >\n <ArrowLeftIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span>{i18n.labels.moveColumnStart}</span>\n </DropdownMenuItem>,\n <DropdownMenuItem\n key=\"move-right\"\n onClick={() => {\n if (columnIndex < columnOrder.length - 1) {\n const newOrder = [...columnOrder];\n const [movedColumn] = newOrder.splice(columnIndex, 1);\n newOrder.splice(columnIndex + 1, 0, movedColumn);\n table.setColumnOrder(newOrder);\n }\n }}\n disabled={!canMoveRight || isPinned !== false}\n >\n <ArrowRightIcon className=\"size-3.5!\" aria-hidden=\"true\" />\n <span>{i18n.labels.moveColumnEnd}</span>\n </DropdownMenuItem>,\n );\n hasPreviousSection = true;\n }\n\n // Visibility section\n if (props.tableLayout?.columnsVisibility && visibility) {\n if (hasPreviousSection) {\n items.push(<DropdownMenuSeparator key=\"sep-visibility\" />);\n }\n items.push(\n <DropdownMenuSub key=\"visibility\">\n <DropdownMenuSubTrigger>\n <Settings2Icon className=\"size-3.5!\" />\n <span>{i18n.labels.columnsMenu}</span>\n </DropdownMenuSubTrigger>\n <DropdownMenuSubContent side=\"right\">\n {table\n .getAllColumns()\n .filter((col) => col.getCanHide())\n .map((col) => (\n <DropdownMenuCheckboxItem\n key={col.id}\n checked={col.getIsVisible()}\n onSelect={(event) => event.preventDefault()}\n onCheckedChange={(value) => col.toggleVisibility(!!value)}\n className=\"capitalize\"\n >\n {getColumnHeaderLabel(col)}\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuSubContent>\n </DropdownMenuSub>,\n );\n }\n\n return items;\n }, [\n filter,\n canSort,\n isSorted,\n column,\n props.tableLayout?.columnsPinnable,\n props.tableLayout?.columnsMovable,\n props.tableLayout?.columnsVisibility,\n canPin,\n isPinned,\n canMoveLeft,\n canMoveRight,\n visibility,\n table,\n columnIndex,\n columnOrder,\n i18n.labels.sortAscending,\n i18n.labels.pinColumnStart,\n i18n.labels.moveColumnEnd,\n i18n.labels.sortDescending,\n i18n.labels.pinColumnEnd,\n i18n.labels.moveColumnStart,\n i18n.labels.columnsMenu,\n ]);\n\n if (hasControls) {\n return (\n <div className=\"-ms-2 flex h-full items-center justify-between gap-1.5\">\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button variant=\"ghost\" className={headerButtonClassName} disabled={isLoading}>\n {icon && icon}\n {resolvedTitle}\n {sortIcon}\n </Button>\n }\n />\n <DropdownMenuContent className=\"w-40\" align=\"start\">\n {menuItems}\n </DropdownMenuContent>\n </DropdownMenu>\n {props.tableLayout?.columnsPinnable && canPin && isPinned && (\n <Button\n size=\"icon-sm\"\n variant=\"ghost\"\n className=\"-me-1 size-7 rounded-lg\"\n onClick={() => column.pin(false)}\n aria-label={i18n.labels.unpinColumn(resolvedTitle)}\n title={i18n.labels.unpinColumn(resolvedTitle)}\n >\n <PinOffIcon className=\"size-3.5! opacity-50!\" aria-hidden=\"true\" />\n </Button>\n )}\n </div>\n );\n }\n\n if (canSort || (props.tableLayout?.columnsResizable && canResize)) {\n return (\n <div className=\"-ms-2 flex h-full items-center\">\n <Button\n variant=\"ghost\"\n className={headerButtonClassName}\n disabled={isLoading}\n onClick={handleSort}\n >\n {icon && icon}\n {resolvedTitle}\n {sortIcon}\n </Button>\n </div>\n );\n }\n\n return (\n <div className={headerLabelClassName}>\n {icon && icon}\n {resolvedTitle}\n </div>\n );\n}\n\nconst DataGridColumnHeaderMemo = memo(DataGridColumnHeaderInner) as <TData extends object, TValue>(\n props: DataGridColumnHeaderProps<TData, TValue> & {\n /** Internal: the state slices the header re-renders on. Not part of the public API. */\n subscribedState?: unknown;\n },\n) => ReactNode;\n\n/**\n * Sort and pin state reaches this header through builder calls on `column`\n * (`getIsSorted()`, `getIsPinned()`), and `column` is a stable reference. That\n * combination is the one v9's fresh-table-per-state-change does NOT cover:\n * React Compiler is free to memoize against the stable column and never\n * re-evaluate those reads, which shows up as frozen sort arrows and pin\n * controls. The `Subscribe` below turns the slices this header actually reads\n * into a real reactive dependency, and threading the selection through as a\n * prop is what lets it past the `memo` - which would otherwise see unchanged\n * props and skip the render anyway.\n */\nfunction DataGridColumnHeader<TData extends object, TValue>(\n props: DataGridColumnHeaderProps<TData, TValue>,\n) {\n const { table } = useDataGrid();\n\n return (\n <Subscribe\n source={table.store}\n selector={(state) => ({\n sorting: state.sorting,\n columnPinning: state.columnPinning,\n columnOrder: state.columnOrder,\n columnVisibility: state.columnVisibility,\n })}\n >\n {(subscribed) => <DataGridColumnHeaderMemo {...props} subscribedState={subscribed} />}\n </Subscribe>\n );\n}\n\nexport { DataGridColumnHeader, type DataGridColumnHeaderProps };\n"],"mappings":";;;;;;;;;;AAiDA,SAAS,0BAAwD,EAC/D,QACA,OACA,MACA,WACA,QACA,aAAa,SAC8B;CAC3C,MAAM,EAAE,MAAM,WAAW,OAAO,UAAU,YAAY;CACtD,MAAM,gBAAgB,SAAS,qBAAqB,MAAM;CAI1D,MAAM,mBAAmB,MAAM,MAAM;CACrC,MAAM,cACJ,iBAAiB,SAAS,IACtB,mBACA,MAAM,kBAAkB,CA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OAAO,YAAY,aAAa;GAE5C,UAAA,oBAAC,YAAD;IAAY,WAAU;IAAwB,eAAY;GAAQ,CAAA;EAC5D,CAAA,CAEP;;CAIT,IAAI,WAAY,MAAM,aAAa,oBAAoB,WACrD,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,qBAAC,QAAD;GACE,SAAQ;GACR,WAAW;GACX,UAAU;GACV,SAAS;GAJX,UAAA;IAMG,QAAQ;IACR;IACA;GACK;;CACL,CAAA;CAIT,OACE,qBAAC,OAAD;EAAK,WAAW;EAAhB,UAAA,CACG,QAAQ,MACR,aACE;;AAET;AAEA,MAAM,2BAA2B,KAAK,yBAAyB;;;;;;;;;;;;AAkB/D,SAAS,qBACP,OACA;CACA,MAAM,EAAE,UAAU,YAAY;CAE9B,OACE,oBAAC,WAAD;EACE,QAAQ,MAAM;EACd,WAAW,WAAW;GACpB,SAAS,MAAM;GACf,eAAe,MAAM;GACrB,aAAa,MAAM;GACnB,kBAAkB,MAAM;EAC1B;EAEE,WAAA,eAAe,oBAAC,0BAAD;GAA0B,GAAI;GAAO,iBAAiB;EAAa,CAAA;CAC3E,CAAA;AAEf"}
@@ -1,2 +1,2 @@
1
- import { i as mergeDataGridI18n, n as DataGridI18nLabels, r as DataGridI18nOverrides, t as DataGridI18nConfig } from "../../../data-grid-i18n-52UUYPbr.js";
1
+ import { i as mergeDataGridI18n, n as DataGridI18nLabels, r as DataGridI18nOverrides, t as DataGridI18nConfig } from "../../../data-grid-i18n-TQR2PZlU.js";
2
2
  export { DataGridI18nConfig, DataGridI18nLabels, DataGridI18nOverrides, mergeDataGridI18n };
@@ -1 +1 @@
1
- {"version":3,"file":"data-grid-i18n.js","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-i18n.tsx"],"sourcesContent":["\"use client\";\n\n/**\n * Every built-in user-facing string in the data grid, overridable in one\n * place: `<DataGrid i18n={{ labels: { ... } }}>`. The shape follows the\n * event-calendar and gantt convention - a nested config merged per section,\n * with functions for anything interpolated so pluralization and word order\n * live in the label, never in string concatenation at a call site.\n *\n * Precedence, most specific wins: a component-level prop that already\n * existed (`rowCreateLabel`, `loadingMessage`, the pagination label props)\n * beats the matching `i18n` label, which beats the built-in default - so\n * adopting `i18n` is never a breaking change.\n */\n\nexport interface DataGridI18nLabels {\n /* The column header menu. */\n sortAscending: string;\n sortDescending: string;\n pinColumnStart: string;\n pinColumnEnd: string;\n moveColumnStart: string;\n moveColumnEnd: string;\n columnsMenu: string;\n unpinColumn: (title: string) => string;\n toggleColumns: string;\n /* Row and cell affordances. */\n rowCreate: string;\n pinRow: string;\n unpinRow: string;\n selectRow: string;\n selectAll: string;\n expandRow: string;\n collapseRow: string;\n dragToReorder: string;\n dragToReorderRow: string;\n reorderingUnavailable: string;\n /* Grid states. */\n loading: string;\n empty: string;\n allRowsLoaded: string;\n /* Pagination. */\n rowsPerPage: string;\n paginationInfo: (info: { from: number; to: number; count: number }) => string;\n previousPage: string;\n nextPage: string;\n goToPage: (page: number) => string;\n paginationEllipsis: string;\n /* The faceted column filter. */\n filterSelectedCount: (count: number) => string;\n filterNoResults: string;\n filterClear: string;\n}\n\nexport interface DataGridI18nConfig {\n labels: DataGridI18nLabels;\n}\n\nexport type DataGridI18nOverrides = {\n labels?: Partial<DataGridI18nLabels>;\n};\n\nconst DEFAULT_DATA_GRID_LABELS: DataGridI18nLabels = {\n sortAscending: \"Asc\",\n sortDescending: \"Desc\",\n pinColumnStart: \"Pin to left\",\n pinColumnEnd: \"Pin to right\",\n moveColumnStart: \"Move to left\",\n moveColumnEnd: \"Move to right\",\n columnsMenu: \"Columns\",\n unpinColumn: (title) => `Unpin ${title} column`,\n toggleColumns: \"Toggle Columns\",\n rowCreate: \"Add row\",\n pinRow: \"Pin row\",\n unpinRow: \"Unpin row\",\n selectRow: \"Select row\",\n selectAll: \"Select all\",\n expandRow: \"Expand row\",\n collapseRow: \"Collapse row\",\n dragToReorder: \"Drag to reorder\",\n dragToReorderRow: \"Drag to reorder row\",\n reorderingUnavailable: \"Reordering unavailable\",\n loading: \"Loading...\",\n empty: \"No data available\",\n allRowsLoaded: \"All records loaded\",\n rowsPerPage: \"Rows per page\",\n paginationInfo: ({ from, to, count }) => `${from} - ${to} of ${count}`,\n previousPage: \"Go to previous page\",\n nextPage: \"Go to next page\",\n goToPage: (page) => `Go to page ${page}`,\n paginationEllipsis: \"...\",\n filterSelectedCount: (count) => `${count} selected`,\n filterNoResults: \"No results found.\",\n filterClear: \"Clear filters\",\n};\n\nconst DEFAULT_DATA_GRID_I18N: DataGridI18nConfig = Object.freeze({\n labels: Object.freeze(DEFAULT_DATA_GRID_LABELS),\n});\n\n/**\n * A shallow merge per section, deliberately: a deep merge would leak a\n * default back into a function-valued label the consumer replaced. With no\n * overrides the frozen default is returned as-is, so the merge is free to\n * run on every render without producing a new identity.\n */\nexport function mergeDataGridI18n(overrides?: DataGridI18nOverrides): DataGridI18nConfig {\n if (!overrides?.labels) return DEFAULT_DATA_GRID_I18N;\n return {\n labels: { ...DEFAULT_DATA_GRID_LABELS, ...overrides.labels },\n };\n}\n"],"mappings":";;AA8DA,MAAM,2BAA+C;CACnD,eAAe;CACf,gBAAgB;CAChB,gBAAgB;CAChB,cAAc;CACd,iBAAiB;CACjB,eAAe;CACf,aAAa;CACb,cAAc,UAAU,SAAS,MAAM;CACvC,eAAe;CACf,WAAW;CACX,QAAQ;CACR,UAAU;CACV,WAAW;CACX,WAAW;CACX,WAAW;CACX,aAAa;CACb,eAAe;CACf,kBAAkB;CAClB,uBAAuB;CACvB,SAAS;CACT,OAAO;CACP,eAAe;CACf,aAAa;CACb,iBAAiB,EAAE,MAAM,IAAI,YAAY,GAAG,KAAK,KAAK,GAAG,MAAM;CAC/D,cAAc;CACd,UAAU;CACV,WAAW,SAAS,cAAc;CAClC,oBAAoB;CACpB,sBAAsB,UAAU,GAAG,MAAM;CACzC,iBAAiB;CACjB,aAAa;AACf;AAEA,MAAM,yBAA6C,OAAO,OAAO,EAC/D,QAAQ,OAAO,OAAO,wBAAwB,EAChD,CAAC;;;;;;;AAQD,SAAgB,kBAAkB,WAAuD;CACvF,IAAI,CAAC,WAAW,QAAQ,OAAO;CAC/B,OAAO,EACL,QAAQ;EAAE,GAAG;EAA0B,GAAG,UAAU;CAAO,EAC7D;AACF"}
1
+ {"version":3,"file":"data-grid-i18n.js","names":[],"sources":["../../../../src/components/reui/data-grid/data-grid-i18n.tsx"],"sourcesContent":["\"use client\";\n\nexport interface DataGridI18nLabels {\n /* The column header menu. */\n sortAscending: string;\n sortDescending: string;\n pinColumnStart: string;\n pinColumnEnd: string;\n moveColumnStart: string;\n moveColumnEnd: string;\n columnsMenu: string;\n unpinColumn: (title: string) => string;\n toggleColumns: string;\n /* Row and cell affordances. */\n rowCreate: string;\n pinRow: string;\n unpinRow: string;\n selectRow: string;\n selectAll: string;\n expandRow: string;\n collapseRow: string;\n dragToReorder: string;\n dragToReorderRow: string;\n reorderingUnavailable: string;\n /* Grid states. */\n loading: string;\n empty: string;\n allRowsLoaded: string;\n /* Pagination. */\n rowsPerPage: string;\n paginationInfo: (info: { from: number; to: number; count: number }) => string;\n previousPage: string;\n nextPage: string;\n goToPage: (page: number) => string;\n paginationEllipsis: string;\n /* The faceted column filter. */\n filterSelectedCount: (count: number) => string;\n filterNoResults: string;\n filterClear: string;\n}\n\nexport interface DataGridI18nConfig {\n labels: DataGridI18nLabels;\n}\n\nexport type DataGridI18nOverrides = {\n labels?: Partial<DataGridI18nLabels>;\n};\n\nconst DEFAULT_DATA_GRID_LABELS: DataGridI18nLabels = {\n sortAscending: \"Asc\",\n sortDescending: \"Desc\",\n pinColumnStart: \"Pin to left\",\n pinColumnEnd: \"Pin to right\",\n moveColumnStart: \"Move to left\",\n moveColumnEnd: \"Move to right\",\n columnsMenu: \"Columns\",\n unpinColumn: (title) => `Unpin ${title} column`,\n toggleColumns: \"Toggle Columns\",\n rowCreate: \"Add row\",\n pinRow: \"Pin row\",\n unpinRow: \"Unpin row\",\n selectRow: \"Select row\",\n selectAll: \"Select all\",\n expandRow: \"Expand row\",\n collapseRow: \"Collapse row\",\n dragToReorder: \"Drag to reorder\",\n dragToReorderRow: \"Drag to reorder row\",\n reorderingUnavailable: \"Reordering unavailable\",\n loading: \"Loading...\",\n empty: \"No data available\",\n allRowsLoaded: \"All records loaded\",\n rowsPerPage: \"Rows per page\",\n paginationInfo: ({ from, to, count }) => `${from} - ${to} of ${count}`,\n previousPage: \"Go to previous page\",\n nextPage: \"Go to next page\",\n goToPage: (page) => `Go to page ${page}`,\n paginationEllipsis: \"...\",\n filterSelectedCount: (count) => `${count} selected`,\n filterNoResults: \"No results found.\",\n filterClear: \"Clear filters\",\n};\n\nconst DEFAULT_DATA_GRID_I18N: DataGridI18nConfig = Object.freeze({\n labels: Object.freeze(DEFAULT_DATA_GRID_LABELS),\n});\n\n/**\n * A shallow merge per section, deliberately: a deep merge would leak a\n * default back into a function-valued label the consumer replaced. With no\n * overrides the frozen default is returned as-is, so the merge is free to\n * run on every render without producing a new identity.\n */\nexport function mergeDataGridI18n(overrides?: DataGridI18nOverrides): DataGridI18nConfig {\n if (!overrides?.labels) return DEFAULT_DATA_GRID_I18N;\n return {\n labels: { ...DEFAULT_DATA_GRID_LABELS, ...overrides.labels },\n };\n}\n"],"mappings":";;AAiDA,MAAM,2BAA+C;CACnD,eAAe;CACf,gBAAgB;CAChB,gBAAgB;CAChB,cAAc;CACd,iBAAiB;CACjB,eAAe;CACf,aAAa;CACb,cAAc,UAAU,SAAS,MAAM;CACvC,eAAe;CACf,WAAW;CACX,QAAQ;CACR,UAAU;CACV,WAAW;CACX,WAAW;CACX,WAAW;CACX,aAAa;CACb,eAAe;CACf,kBAAkB;CAClB,uBAAuB;CACvB,SAAS;CACT,OAAO;CACP,eAAe;CACf,aAAa;CACb,iBAAiB,EAAE,MAAM,IAAI,YAAY,GAAG,KAAK,KAAK,GAAG,MAAM;CAC/D,cAAc;CACd,UAAU;CACV,WAAW,SAAS,cAAc;CAClC,oBAAoB;CACpB,sBAAsB,UAAU,GAAG,MAAM;CACzC,iBAAiB;CACjB,aAAa;AACf;AAEA,MAAM,yBAA6C,OAAO,OAAO,EAC/D,QAAQ,OAAO,OAAO,wBAAwB,EAChD,CAAC;;;;;;;AAQD,SAAgB,kBAAkB,WAAuD;CACvF,IAAI,CAAC,WAAW,QAAQ,OAAO;CAC/B,OAAO,EACL,QAAQ;EAAE,GAAG;EAA0B,GAAG,UAAU;CAAO,EAC7D;AACF"}
@@ -4,8 +4,8 @@ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from ".
4
4
  import { Skeleton } from "../../ui/skeleton.js";
5
5
  import { useDataGrid } from "./data-grid.js";
6
6
  import { cn } from "@kumix/utils";
7
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/components/reui/data-grid/data-grid-pagination.tsx
10
10
  function DataGridPagination(props) {
11
11
  const { i18n, table, recordCount, isLoading } = useDataGrid();
@@ -4,8 +4,8 @@ import { useDataGrid } from "./data-grid.js";
4
4
  import { DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpandded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableFillBodyCell, DataGridTableFillHeadCell, DataGridTableFoot, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSpacer, DataGridTableViewport } from "./data-grid-table.js";
5
5
  import { createContext, memo, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
6
6
  import { cn } from "@kumix/utils";
7
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
7
  import { GripHorizontalIcon } from "lucide-react";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  import { createPortal } from "react-dom";
10
10
  import { DndContext, DragOverlay, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
11
11
  import { SortableContext, sortableKeyboardCoordinates, useSortable } from "@dnd-kit/sortable";
@@ -3,8 +3,8 @@ import { Button } from "../../ui/button.js";
3
3
  import { useDataGrid } from "./data-grid.js";
4
4
  import { DataGridTableBase, DataGridTableBody, DataGridTableBodyRow, DataGridTableBodyRowCell, DataGridTableBodyRowExpandded, DataGridTableBodyRowSkeleton, DataGridTableBodyRowSkeletonCell, DataGridTableEmpty, DataGridTableFillBodyCell, DataGridTableFillHeadCell, DataGridTableFoot, DataGridTableHead, DataGridTableHeadRow, DataGridTableHeadRowCell, DataGridTableHeadRowCellResize, DataGridTableRowSpacer, DataGridTableViewport } from "./data-grid-table.js";
5
5
  import { Fragment, memo, useEffect, useId, useMemo, useRef, useState } from "react";
6
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
6
  import { GripVerticalIcon } from "lucide-react";
7
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
8
  import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
9
9
  import { SortableContext, horizontalListSortingStrategy, sortableKeyboardCoordinates, useSortable } from "@dnd-kit/sortable";
10
10
  import { CSS } from "@dnd-kit/utilities";
@@ -5,8 +5,8 @@ import { Checkbox } from "../../ui/checkbox.js";
5
5
  import { dataGridCellSelectionCellClasses, getDataGridCellSelectionCellAttrs, toDataGridDomId, useDataGrid } from "./data-grid.js";
6
6
  import { Fragment, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef } from "react";
7
7
  import { cn } from "@kumix/utils";
8
- import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
8
  import { PlusIcon } from "lucide-react";
9
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { Subscribe, flexRender } from "@tanstack/react-table";
11
11
  //#region src/components/reui/data-grid/data-grid-table.tsx
12
12
  const headerCellSpacingVariants = ({ size }) => size === "dense" ? "px-2 h-8" : "px-3";