@kumix/ui 0.3.11 → 0.3.13

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 (890) hide show
  1. package/README.md +13 -13
  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/activity-row.js.map +1 -1
  6. package/dist/components/agents/agent-activity/index.d.ts +2 -2
  7. package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
  8. package/dist/components/agents/agent-activity/index.js +1 -1
  9. package/dist/components/agents/agent-activity/index.js.map +1 -1
  10. package/dist/components/agents/agent-code.d.ts +8 -9
  11. package/dist/components/agents/agent-code.d.ts.map +1 -1
  12. package/dist/components/agents/agent-code.js +1 -1
  13. package/dist/components/agents/agent-code.js.map +1 -1
  14. package/dist/components/agents/agent-disclosure.d.ts +2 -3
  15. package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
  16. package/dist/components/agents/agent-disclosure.js +1 -1
  17. package/dist/components/agents/agent-disclosure.js.map +1 -1
  18. package/dist/components/agents/ai-sidebar.d.ts +8 -9
  19. package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
  20. package/dist/components/agents/ai-sidebar.js +1 -1
  21. package/dist/components/agents/ai-sidebar.js.map +1 -1
  22. package/dist/components/agents/approval-card/index.d.ts +2 -2
  23. package/dist/components/agents/approval-card/index.d.ts.map +1 -1
  24. package/dist/components/agents/approval-card/index.js +1 -1
  25. package/dist/components/agents/approval-card/index.js.map +1 -1
  26. package/dist/components/agents/chat-app.d.ts +2 -3
  27. package/dist/components/agents/chat-app.d.ts.map +1 -1
  28. package/dist/components/agents/chat-app.js +1 -1
  29. package/dist/components/agents/chat-app.js.map +1 -1
  30. package/dist/components/agents/citations.d.ts +10 -11
  31. package/dist/components/agents/citations.d.ts.map +1 -1
  32. package/dist/components/agents/citations.js +1 -1
  33. package/dist/components/agents/citations.js.map +1 -1
  34. package/dist/components/agents/code-block.d.ts +3 -4
  35. package/dist/components/agents/code-block.d.ts.map +1 -1
  36. package/dist/components/agents/code-block.js +1 -1
  37. package/dist/components/agents/code-block.js.map +1 -1
  38. package/dist/components/agents/file-diff.d.ts +5 -6
  39. package/dist/components/agents/file-diff.d.ts.map +1 -1
  40. package/dist/components/agents/file-diff.js +1 -1
  41. package/dist/components/agents/file-diff.js.map +1 -1
  42. package/dist/components/agents/image-generation.d.ts +3 -4
  43. package/dist/components/agents/image-generation.d.ts.map +1 -1
  44. package/dist/components/agents/image-generation.js +1 -1
  45. package/dist/components/agents/image-generation.js.map +1 -1
  46. package/dist/components/agents/loading-states/agent-progress.d.ts +2 -3
  47. package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
  48. package/dist/components/agents/loading-states/agent-progress.js +1 -1
  49. package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
  50. package/dist/components/agents/loading-states/reasoning-text.d.ts +3 -4
  51. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
  52. package/dist/components/agents/loading-states/reasoning-text.js +1 -1
  53. package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
  54. package/dist/components/agents/loading-states/thinking-shimmer.d.ts +2 -3
  55. package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
  56. package/dist/components/agents/loading-states/thinking-shimmer.js +1 -1
  57. package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
  58. package/dist/components/agents/message-bubble.d.ts +10 -11
  59. package/dist/components/agents/message-bubble.d.ts.map +1 -1
  60. package/dist/components/agents/message-bubble.js +1 -1
  61. package/dist/components/agents/message-bubble.js.map +1 -1
  62. package/dist/components/agents/message-context.d.ts +2 -3
  63. package/dist/components/agents/message-context.d.ts.map +1 -1
  64. package/dist/components/agents/message-scroller.d.ts +2 -3
  65. package/dist/components/agents/message-scroller.d.ts.map +1 -1
  66. package/dist/components/agents/message-scroller.js +1 -1
  67. package/dist/components/agents/message-scroller.js.map +1 -1
  68. package/dist/components/agents/message.d.ts +18 -18
  69. package/dist/components/agents/message.d.ts.map +1 -1
  70. package/dist/components/agents/message.js +1 -1
  71. package/dist/components/agents/message.js.map +1 -1
  72. package/dist/components/agents/prompt-input.d.ts +4 -5
  73. package/dist/components/agents/prompt-input.d.ts.map +1 -1
  74. package/dist/components/agents/prompt-input.js +1 -1
  75. package/dist/components/agents/prompt-input.js.map +1 -1
  76. package/dist/components/agents/streaming-response.d.ts +4 -5
  77. package/dist/components/agents/streaming-response.d.ts.map +1 -1
  78. package/dist/components/agents/streaming-response.js +1 -1
  79. package/dist/components/agents/streaming-response.js.map +1 -1
  80. package/dist/components/agents/todo-list.d.ts +4 -5
  81. package/dist/components/agents/todo-list.d.ts.map +1 -1
  82. package/dist/components/agents/todo-list.js +1 -1
  83. package/dist/components/agents/todo-list.js.map +1 -1
  84. package/dist/components/agents/tool-approval.d.ts +6 -7
  85. package/dist/components/agents/tool-approval.d.ts.map +1 -1
  86. package/dist/components/agents/tool-approval.js +1 -1
  87. package/dist/components/agents/tool-approval.js.map +1 -1
  88. package/dist/components/agents/tool-result.d.ts +6 -7
  89. package/dist/components/agents/tool-result.d.ts.map +1 -1
  90. package/dist/components/agents/tool-result.js +1 -1
  91. package/dist/components/agents/tool-result.js.map +1 -1
  92. package/dist/components/custom/confirm-dialog.d.ts +2 -3
  93. package/dist/components/custom/confirm-dialog.d.ts.map +1 -1
  94. package/dist/components/custom/toast.d.ts +6 -7
  95. package/dist/components/custom/toast.d.ts.map +1 -1
  96. package/dist/components/motion/action-swap-blur.d.ts +7 -7
  97. package/dist/components/motion/action-swap-blur.d.ts.map +1 -1
  98. package/dist/components/motion/action-swap-cascade.d.ts +7 -7
  99. package/dist/components/motion/action-swap-cascade.d.ts.map +1 -1
  100. package/dist/components/motion/action-swap-roll.d.ts +7 -7
  101. package/dist/components/motion/action-swap-roll.d.ts.map +1 -1
  102. package/dist/components/motion/action-swap.d.ts +10 -11
  103. package/dist/components/motion/action-swap.d.ts.map +1 -1
  104. package/dist/components/motion/action-swap.js +1 -1
  105. package/dist/components/motion/action-swap.js.map +1 -1
  106. package/dist/components/motion/adaptive-stepper.d.ts +7 -8
  107. package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
  108. package/dist/components/motion/adaptive-stepper.js +1 -1
  109. package/dist/components/motion/adaptive-stepper.js.map +1 -1
  110. package/dist/components/motion/animated-badge.d.ts +4 -5
  111. package/dist/components/motion/animated-badge.d.ts.map +1 -1
  112. package/dist/components/motion/animated-badge.js +1 -1
  113. package/dist/components/motion/animated-badge.js.map +1 -1
  114. package/dist/components/motion/animated-number.d.ts +2 -3
  115. package/dist/components/motion/animated-number.d.ts.map +1 -1
  116. package/dist/components/motion/animated-number.js +1 -1
  117. package/dist/components/motion/animated-number.js.map +1 -1
  118. package/dist/components/motion/animated-sidebar.d.ts +28 -29
  119. package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
  120. package/dist/components/motion/animated-sidebar.js +1 -1
  121. package/dist/components/motion/animated-sidebar.js.map +1 -1
  122. package/dist/components/motion/animated-toast-stack.d.ts +10 -11
  123. package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
  124. package/dist/components/motion/animated-toast-stack.js +1 -1
  125. package/dist/components/motion/animated-toast-stack.js.map +1 -1
  126. package/dist/components/motion/attachment-upload.d.ts +7 -8
  127. package/dist/components/motion/attachment-upload.d.ts.map +1 -1
  128. package/dist/components/motion/attachment-upload.js +1 -1
  129. package/dist/components/motion/attachment-upload.js.map +1 -1
  130. package/dist/components/motion/availability-scheduler/copy-menu.d.ts +1 -2
  131. package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
  132. package/dist/components/motion/availability-scheduler/day-row.d.ts +1 -2
  133. package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
  134. package/dist/components/motion/availability-scheduler/icon-button.d.ts +1 -2
  135. package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -1
  136. package/dist/components/motion/availability-scheduler/icon-button.js +1 -1
  137. package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
  138. package/dist/components/motion/availability-scheduler/index.d.ts +3 -3
  139. package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
  140. package/dist/components/motion/availability-scheduler/index.js +1 -1
  141. package/dist/components/motion/availability-scheduler/index.js.map +1 -1
  142. package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -2
  143. package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -1
  144. package/dist/components/motion/bloom-menu.d.ts +2 -3
  145. package/dist/components/motion/bloom-menu.d.ts.map +1 -1
  146. package/dist/components/motion/bloom-menu.js +1 -1
  147. package/dist/components/motion/bloom-menu.js.map +1 -1
  148. package/dist/components/motion/bottom-sheet.d.ts +2 -3
  149. package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
  150. package/dist/components/motion/bottom-sheet.js +1 -1
  151. package/dist/components/motion/bottom-sheet.js.map +1 -1
  152. package/dist/components/motion/bounce-sidebar.d.ts +3 -4
  153. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
  154. package/dist/components/motion/bounce-sidebar.js +1 -1
  155. package/dist/components/motion/bounce-sidebar.js.map +1 -1
  156. package/dist/components/motion/bouncy-accordion.d.ts +4 -5
  157. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
  158. package/dist/components/motion/bouncy-accordion.js +1 -1
  159. package/dist/components/motion/bouncy-accordion.js.map +1 -1
  160. package/dist/components/motion/button/base.d.ts +6 -7
  161. package/dist/components/motion/button/base.d.ts.map +1 -1
  162. package/dist/components/motion/button/base.js +1 -1
  163. package/dist/components/motion/button/base.js.map +1 -1
  164. package/dist/components/motion/button/magnetic.d.ts +2 -3
  165. package/dist/components/motion/button/magnetic.d.ts.map +1 -1
  166. package/dist/components/motion/button/metallic.d.ts +2 -3
  167. package/dist/components/motion/button/metallic.d.ts.map +1 -1
  168. package/dist/components/motion/button/metallic.js +1 -1
  169. package/dist/components/motion/button/metallic.js.map +1 -1
  170. package/dist/components/motion/button/stateful.d.ts +3 -4
  171. package/dist/components/motion/button/stateful.d.ts.map +1 -1
  172. package/dist/components/motion/card-folder.d.ts +30 -0
  173. package/dist/components/motion/card-folder.d.ts.map +1 -0
  174. package/dist/components/motion/card-folder.js +254 -0
  175. package/dist/components/motion/card-folder.js.map +1 -0
  176. package/dist/components/motion/center-morph-modal.d.ts +8 -9
  177. package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
  178. package/dist/components/motion/center-morph-modal.js +1 -1
  179. package/dist/components/motion/center-morph-modal.js.map +1 -1
  180. package/dist/components/motion/checkbox.d.ts +2 -3
  181. package/dist/components/motion/checkbox.d.ts.map +1 -1
  182. package/dist/components/motion/checkbox.js +1 -1
  183. package/dist/components/motion/checkbox.js.map +1 -1
  184. package/dist/components/motion/chromatic-text-reveal.d.ts +2 -3
  185. package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -1
  186. package/dist/components/motion/chromatic-text-reveal.js +1 -1
  187. package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
  188. package/dist/components/motion/combobox/content.d.ts +2 -3
  189. package/dist/components/motion/combobox/content.d.ts.map +1 -1
  190. package/dist/components/motion/combobox/content.js +1 -1
  191. package/dist/components/motion/combobox/content.js.map +1 -1
  192. package/dist/components/motion/combobox/context.d.ts +9 -10
  193. package/dist/components/motion/combobox/context.d.ts.map +1 -1
  194. package/dist/components/motion/combobox/context.js +1 -1
  195. package/dist/components/motion/combobox/context.js.map +1 -1
  196. package/dist/components/motion/combobox/list.d.ts +12 -13
  197. package/dist/components/motion/combobox/list.d.ts.map +1 -1
  198. package/dist/components/motion/combobox/list.js +1 -1
  199. package/dist/components/motion/combobox/list.js.map +1 -1
  200. package/dist/components/motion/combobox/trigger.d.ts +6 -7
  201. package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
  202. package/dist/components/motion/combobox/trigger.js +1 -1
  203. package/dist/components/motion/combobox/trigger.js.map +1 -1
  204. package/dist/components/motion/command-palette.d.ts +3 -4
  205. package/dist/components/motion/command-palette.d.ts.map +1 -1
  206. package/dist/components/motion/command-palette.js +1 -1
  207. package/dist/components/motion/command-palette.js.map +1 -1
  208. package/dist/components/motion/context-menu.d.ts +20 -21
  209. package/dist/components/motion/context-menu.d.ts.map +1 -1
  210. package/dist/components/motion/context-menu.js +1 -1
  211. package/dist/components/motion/context-menu.js.map +1 -1
  212. package/dist/components/motion/cylinder-carousel.d.ts +2 -3
  213. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
  214. package/dist/components/motion/cylinder-carousel.js +1 -1
  215. package/dist/components/motion/cylinder-carousel.js.map +1 -1
  216. package/dist/components/motion/digit-swap.d.ts +23 -0
  217. package/dist/components/motion/digit-swap.d.ts.map +1 -0
  218. package/dist/components/motion/digit-swap.js +77 -0
  219. package/dist/components/motion/digit-swap.js.map +1 -0
  220. package/dist/components/motion/dock.d.ts +5 -6
  221. package/dist/components/motion/dock.d.ts.map +1 -1
  222. package/dist/components/motion/dock.js +1 -1
  223. package/dist/components/motion/dock.js.map +1 -1
  224. package/dist/components/motion/drawer.d.ts +2 -3
  225. package/dist/components/motion/drawer.d.ts.map +1 -1
  226. package/dist/components/motion/drawer.js +1 -1
  227. package/dist/components/motion/drawer.js.map +1 -1
  228. package/dist/components/motion/dynamic-island.d.ts +4 -5
  229. package/dist/components/motion/dynamic-island.d.ts.map +1 -1
  230. package/dist/components/motion/dynamic-island.js +1 -1
  231. package/dist/components/motion/dynamic-island.js.map +1 -1
  232. package/dist/components/motion/expandable-action-bar.d.ts +6 -7
  233. package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
  234. package/dist/components/motion/expandable-action-bar.js +1 -1
  235. package/dist/components/motion/expandable-action-bar.js.map +1 -1
  236. package/dist/components/motion/expandable-control.d.ts +4 -5
  237. package/dist/components/motion/expandable-control.d.ts.map +1 -1
  238. package/dist/components/motion/expandable-control.js +1 -1
  239. package/dist/components/motion/expandable-control.js.map +1 -1
  240. package/dist/components/motion/expandable-tabs.d.ts +4 -5
  241. package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
  242. package/dist/components/motion/expandable-tabs.js +1 -1
  243. package/dist/components/motion/expandable-tabs.js.map +1 -1
  244. package/dist/components/motion/expanding-arrow-button.d.ts +2 -3
  245. package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
  246. package/dist/components/motion/expanding-arrow-button.js +1 -1
  247. package/dist/components/motion/expanding-arrow-button.js.map +1 -1
  248. package/dist/components/motion/feedback-widget.d.ts +3 -4
  249. package/dist/components/motion/feedback-widget.d.ts.map +1 -1
  250. package/dist/components/motion/feedback-widget.js +1 -1
  251. package/dist/components/motion/feedback-widget.js.map +1 -1
  252. package/dist/components/motion/file-tree.d.ts +7 -8
  253. package/dist/components/motion/file-tree.d.ts.map +1 -1
  254. package/dist/components/motion/file-tree.js +1 -1
  255. package/dist/components/motion/file-tree.js.map +1 -1
  256. package/dist/components/motion/file-upload.d.ts +7 -8
  257. package/dist/components/motion/file-upload.d.ts.map +1 -1
  258. package/dist/components/motion/file-upload.js +1 -1
  259. package/dist/components/motion/file-upload.js.map +1 -1
  260. package/dist/components/motion/hold-action-button.d.ts +2 -3
  261. package/dist/components/motion/hold-action-button.d.ts.map +1 -1
  262. package/dist/components/motion/hold-action-button.js +1 -1
  263. package/dist/components/motion/hold-action-button.js.map +1 -1
  264. package/dist/components/motion/infinite-masonry.d.ts +3 -4
  265. package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
  266. package/dist/components/motion/infinite-masonry.js +1 -1
  267. package/dist/components/motion/infinite-masonry.js.map +1 -1
  268. package/dist/components/motion/input.d.ts +3 -4
  269. package/dist/components/motion/input.d.ts.map +1 -1
  270. package/dist/components/motion/input.js +1 -1
  271. package/dist/components/motion/input.js.map +1 -1
  272. package/dist/components/motion/liquid.d.ts +6 -7
  273. package/dist/components/motion/liquid.d.ts.map +1 -1
  274. package/dist/components/motion/liquid.js +1 -1
  275. package/dist/components/motion/liquid.js.map +1 -1
  276. package/dist/components/motion/loader.d.ts +3 -4
  277. package/dist/components/motion/loader.d.ts.map +1 -1
  278. package/dist/components/motion/loader.js +1 -1
  279. package/dist/components/motion/loader.js.map +1 -1
  280. package/dist/components/motion/magnetic.d.ts +2 -3
  281. package/dist/components/motion/magnetic.d.ts.map +1 -1
  282. package/dist/components/motion/magnetic.js +1 -1
  283. package/dist/components/motion/magnetic.js.map +1 -1
  284. package/dist/components/motion/marquee.d.ts +2 -3
  285. package/dist/components/motion/marquee.d.ts.map +1 -1
  286. package/dist/components/motion/marquee.js +1 -1
  287. package/dist/components/motion/marquee.js.map +1 -1
  288. package/dist/components/motion/morphing-modal.d.ts +2 -3
  289. package/dist/components/motion/morphing-modal.d.ts.map +1 -1
  290. package/dist/components/motion/morphing-modal.js +1 -1
  291. package/dist/components/motion/morphing-modal.js.map +1 -1
  292. package/dist/components/motion/morphing-search.d.ts +3 -4
  293. package/dist/components/motion/morphing-search.d.ts.map +1 -1
  294. package/dist/components/motion/morphing-search.js +1 -1
  295. package/dist/components/motion/morphing-search.js.map +1 -1
  296. package/dist/components/motion/morphing-tabs.d.ts +4 -5
  297. package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
  298. package/dist/components/motion/morphing-tabs.js +1 -1
  299. package/dist/components/motion/morphing-tabs.js.map +1 -1
  300. package/dist/components/motion/multi-select/content.d.ts +2 -3
  301. package/dist/components/motion/multi-select/content.d.ts.map +1 -1
  302. package/dist/components/motion/multi-select/content.js +1 -1
  303. package/dist/components/motion/multi-select/content.js.map +1 -1
  304. package/dist/components/motion/multi-select/context.d.ts +9 -10
  305. package/dist/components/motion/multi-select/context.d.ts.map +1 -1
  306. package/dist/components/motion/multi-select/context.js +1 -1
  307. package/dist/components/motion/multi-select/context.js.map +1 -1
  308. package/dist/components/motion/multi-select/list.d.ts +12 -13
  309. package/dist/components/motion/multi-select/list.d.ts.map +1 -1
  310. package/dist/components/motion/multi-select/list.js +1 -1
  311. package/dist/components/motion/multi-select/list.js.map +1 -1
  312. package/dist/components/motion/multi-select/trigger.d.ts +6 -7
  313. package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
  314. package/dist/components/motion/multi-select/trigger.js +1 -1
  315. package/dist/components/motion/multi-select/trigger.js.map +1 -1
  316. package/dist/components/motion/not-found/glitch.d.ts +1 -2
  317. package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
  318. package/dist/components/motion/not-found/magnetic.d.ts +1 -2
  319. package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
  320. package/dist/components/motion/not-found/magnetic.js +1 -1
  321. package/dist/components/motion/not-found/magnetic.js.map +1 -1
  322. package/dist/components/motion/not-found/shared.d.ts +4 -5
  323. package/dist/components/motion/not-found/shared.d.ts.map +1 -1
  324. package/dist/components/motion/not-found/shared.js +1 -1
  325. package/dist/components/motion/not-found/shared.js.map +1 -1
  326. package/dist/components/motion/not-found/spotlight.d.ts +1 -2
  327. package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
  328. package/dist/components/motion/not-found/spotlight.js +1 -1
  329. package/dist/components/motion/not-found/spotlight.js.map +1 -1
  330. package/dist/components/motion/not-found/stacked.d.ts +1 -2
  331. package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
  332. package/dist/components/motion/not-found/terminal.d.ts +1 -2
  333. package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
  334. package/dist/components/motion/notification-stack.d.ts +4 -5
  335. package/dist/components/motion/notification-stack.d.ts.map +1 -1
  336. package/dist/components/motion/notification-stack.js +1 -1
  337. package/dist/components/motion/notification-stack.js.map +1 -1
  338. package/dist/components/motion/number-ticker.d.ts +2 -3
  339. package/dist/components/motion/number-ticker.d.ts.map +1 -1
  340. package/dist/components/motion/number-ticker.js +1 -1
  341. package/dist/components/motion/number-ticker.js.map +1 -1
  342. package/dist/components/motion/otp-input.d.ts +3 -4
  343. package/dist/components/motion/otp-input.d.ts.map +1 -1
  344. package/dist/components/motion/otp-input.js +1 -1
  345. package/dist/components/motion/otp-input.js.map +1 -1
  346. package/dist/components/motion/overflow-actions.d.ts +5 -6
  347. package/dist/components/motion/overflow-actions.d.ts.map +1 -1
  348. package/dist/components/motion/overflow-actions.js +1 -1
  349. package/dist/components/motion/overflow-actions.js.map +1 -1
  350. package/dist/components/motion/parallax.d.ts +2 -3
  351. package/dist/components/motion/parallax.d.ts.map +1 -1
  352. package/dist/components/motion/parallax.js +1 -1
  353. package/dist/components/motion/parallax.js.map +1 -1
  354. package/dist/components/motion/popover-morph.d.ts +6 -7
  355. package/dist/components/motion/popover-morph.d.ts.map +1 -1
  356. package/dist/components/motion/popover-morph.js +1 -1
  357. package/dist/components/motion/popover-morph.js.map +1 -1
  358. package/dist/components/motion/popover.d.ts +6 -7
  359. package/dist/components/motion/popover.d.ts.map +1 -1
  360. package/dist/components/motion/popover.js +1 -1
  361. package/dist/components/motion/popover.js.map +1 -1
  362. package/dist/components/motion/preview-rail.d.ts +3 -4
  363. package/dist/components/motion/preview-rail.d.ts.map +1 -1
  364. package/dist/components/motion/preview-rail.js +1 -1
  365. package/dist/components/motion/preview-rail.js.map +1 -1
  366. package/dist/components/motion/project-folder.d.ts +3 -4
  367. package/dist/components/motion/project-folder.d.ts.map +1 -1
  368. package/dist/components/motion/project-folder.js +1 -1
  369. package/dist/components/motion/project-folder.js.map +1 -1
  370. package/dist/components/motion/pull-to-refresh.d.ts +3 -4
  371. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
  372. package/dist/components/motion/pull-to-refresh.js +1 -1
  373. package/dist/components/motion/pull-to-refresh.js.map +1 -1
  374. package/dist/components/motion/radio.d.ts +4 -5
  375. package/dist/components/motion/radio.d.ts.map +1 -1
  376. package/dist/components/motion/radio.js +1 -1
  377. package/dist/components/motion/radio.js.map +1 -1
  378. package/dist/components/motion/range-slider-bubble.d.ts +2 -3
  379. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
  380. package/dist/components/motion/range-slider-bubble.js +1 -1
  381. package/dist/components/motion/range-slider-bubble.js.map +1 -1
  382. package/dist/components/motion/range-slider-fluid.d.ts +2 -3
  383. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
  384. package/dist/components/motion/range-slider-fluid.js +1 -1
  385. package/dist/components/motion/range-slider-fluid.js.map +1 -1
  386. package/dist/components/motion/range-slider-ruler.d.ts +2 -3
  387. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
  388. package/dist/components/motion/range-slider-ruler.js +1 -1
  389. package/dist/components/motion/range-slider-ruler.js.map +1 -1
  390. package/dist/components/motion/range-slider-wave.d.ts +2 -3
  391. package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
  392. package/dist/components/motion/range-slider-wave.js +1 -1
  393. package/dist/components/motion/range-slider-wave.js.map +1 -1
  394. package/dist/components/motion/range-slider.d.ts +2 -3
  395. package/dist/components/motion/range-slider.d.ts.map +1 -1
  396. package/dist/components/motion/range-slider.js +1 -1
  397. package/dist/components/motion/range-slider.js.map +1 -1
  398. package/dist/components/motion/scroll-progress.d.ts +4 -5
  399. package/dist/components/motion/scroll-progress.d.ts.map +1 -1
  400. package/dist/components/motion/scroll-progress.js +1 -1
  401. package/dist/components/motion/scroll-progress.js.map +1 -1
  402. package/dist/components/motion/scroll-reveal.d.ts +2 -3
  403. package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
  404. package/dist/components/motion/scroll-reveal.js +1 -1
  405. package/dist/components/motion/scroll-reveal.js.map +1 -1
  406. package/dist/components/motion/scroll-to.d.ts +2 -3
  407. package/dist/components/motion/scroll-to.d.ts.map +1 -1
  408. package/dist/components/motion/scroll-to.js +1 -1
  409. package/dist/components/motion/scroll-to.js.map +1 -1
  410. package/dist/components/motion/select-morph.d.ts +10 -11
  411. package/dist/components/motion/select-morph.d.ts.map +1 -1
  412. package/dist/components/motion/select-morph.js +1 -1
  413. package/dist/components/motion/select-morph.js.map +1 -1
  414. package/dist/components/motion/select.d.ts +10 -11
  415. package/dist/components/motion/select.d.ts.map +1 -1
  416. package/dist/components/motion/select.js +1 -1
  417. package/dist/components/motion/select.js.map +1 -1
  418. package/dist/components/motion/shader-background.d.ts +4 -5
  419. package/dist/components/motion/shader-background.d.ts.map +1 -1
  420. package/dist/components/motion/shader-background.js +1 -1
  421. package/dist/components/motion/shader-background.js.map +1 -1
  422. package/dist/components/motion/shared-layout-bg.d.ts +2 -3
  423. package/dist/components/motion/shared-layout-bg.d.ts.map +1 -1
  424. package/dist/components/motion/shared-layout-bg.js +1 -1
  425. package/dist/components/motion/shared-layout-bg.js.map +1 -1
  426. package/dist/components/motion/signup-form.d.ts +7 -8
  427. package/dist/components/motion/signup-form.d.ts.map +1 -1
  428. package/dist/components/motion/signup-form.js +1 -1
  429. package/dist/components/motion/signup-form.js.map +1 -1
  430. package/dist/components/motion/slide-action-button.d.ts +2 -3
  431. package/dist/components/motion/slide-action-button.d.ts.map +1 -1
  432. package/dist/components/motion/slide-action-button.js +1 -1
  433. package/dist/components/motion/slide-action-button.js.map +1 -1
  434. package/dist/components/motion/smooth-scroll.d.ts +6 -7
  435. package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
  436. package/dist/components/motion/swipeable-list.d.ts +8 -9
  437. package/dist/components/motion/swipeable-list.d.ts.map +1 -1
  438. package/dist/components/motion/swipeable-list.js +1 -1
  439. package/dist/components/motion/swipeable-list.js.map +1 -1
  440. package/dist/components/motion/switch.d.ts +2 -3
  441. package/dist/components/motion/switch.d.ts.map +1 -1
  442. package/dist/components/motion/switch.js +1 -1
  443. package/dist/components/motion/switch.js.map +1 -1
  444. package/dist/components/motion/table/editable-cell.d.ts +1 -2
  445. package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
  446. package/dist/components/motion/table/index.d.ts +2 -2
  447. package/dist/components/motion/table/index.d.ts.map +1 -1
  448. package/dist/components/motion/table/index.js +1 -1
  449. package/dist/components/motion/table/index.js.map +1 -1
  450. package/dist/components/motion/table/row-handle.d.ts +1 -2
  451. package/dist/components/motion/table/row-handle.d.ts.map +1 -1
  452. package/dist/components/motion/table/skeleton-rows.d.ts +1 -2
  453. package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -1
  454. package/dist/components/motion/table/skeleton-rows.js +1 -1
  455. package/dist/components/motion/table/skeleton-rows.js.map +1 -1
  456. package/dist/components/motion/table/table-header.d.ts +2 -3
  457. package/dist/components/motion/table/table-header.d.ts.map +1 -1
  458. package/dist/components/motion/table/table-header.js +1 -1
  459. package/dist/components/motion/table/table-header.js.map +1 -1
  460. package/dist/components/motion/table/table-menu.d.ts +2 -3
  461. package/dist/components/motion/table/table-menu.d.ts.map +1 -1
  462. package/dist/components/motion/table/table-menu.js +1 -1
  463. package/dist/components/motion/table/table-menu.js.map +1 -1
  464. package/dist/components/motion/tabs.d.ts +4 -5
  465. package/dist/components/motion/tabs.d.ts.map +1 -1
  466. package/dist/components/motion/tabs.js +1 -1
  467. package/dist/components/motion/tabs.js.map +1 -1
  468. package/dist/components/motion/text-cascade.d.ts +2 -3
  469. package/dist/components/motion/text-cascade.d.ts.map +1 -1
  470. package/dist/components/motion/text-reveal.d.ts +2 -3
  471. package/dist/components/motion/text-reveal.d.ts.map +1 -1
  472. package/dist/components/motion/text-reveal.js +1 -1
  473. package/dist/components/motion/text-reveal.js.map +1 -1
  474. package/dist/components/motion/text-scramble.d.ts +2 -3
  475. package/dist/components/motion/text-scramble.d.ts.map +1 -1
  476. package/dist/components/motion/text-scramble.js +1 -1
  477. package/dist/components/motion/text-scramble.js.map +1 -1
  478. package/dist/components/motion/text-shimmer.d.ts +2 -3
  479. package/dist/components/motion/text-shimmer.d.ts.map +1 -1
  480. package/dist/components/motion/text-shimmer.js +1 -1
  481. package/dist/components/motion/text-shimmer.js.map +1 -1
  482. package/dist/components/motion/theme-toggle.d.ts +5 -6
  483. package/dist/components/motion/theme-toggle.d.ts.map +1 -1
  484. package/dist/components/motion/theme-toggle.js +1 -1
  485. package/dist/components/motion/theme-toggle.js.map +1 -1
  486. package/dist/components/motion/tilt-card.d.ts +2 -3
  487. package/dist/components/motion/tilt-card.d.ts.map +1 -1
  488. package/dist/components/motion/tilt-card.js +1 -1
  489. package/dist/components/motion/tilt-card.js.map +1 -1
  490. package/dist/components/motion/tooltip.d.ts +2 -3
  491. package/dist/components/motion/tooltip.d.ts.map +1 -1
  492. package/dist/components/motion/tooltip.js +1 -1
  493. package/dist/components/motion/tooltip.js.map +1 -1
  494. package/dist/components/motion/wheel-picker.d.ts +3 -4
  495. package/dist/components/motion/wheel-picker.d.ts.map +1 -1
  496. package/dist/components/motion/wheel-picker.js +1 -1
  497. package/dist/components/motion/wheel-picker.js.map +1 -1
  498. package/dist/components/reui/alert.d.ts.map +1 -1
  499. package/dist/components/reui/alert.js +1 -1
  500. package/dist/components/reui/alert.js.map +1 -1
  501. package/dist/components/reui/autocomplete.d.ts +2 -2
  502. package/dist/components/reui/autocomplete.d.ts.map +1 -1
  503. package/dist/components/reui/autocomplete.js +1 -1
  504. package/dist/components/reui/autocomplete.js.map +1 -1
  505. package/dist/components/reui/badge.d.ts +1 -1
  506. package/dist/components/reui/badge.d.ts.map +1 -1
  507. package/dist/components/reui/badge.js +1 -1
  508. package/dist/components/reui/badge.js.map +1 -1
  509. package/dist/components/reui/cascader/cascader-async.d.ts +8 -9
  510. package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
  511. package/dist/components/reui/cascader/cascader-columns.d.ts +3 -3
  512. package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
  513. package/dist/components/reui/cascader/cascader-columns.js +1 -1
  514. package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
  515. package/dist/components/reui/cascader/cascader-context.d.ts +13 -13
  516. package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
  517. package/dist/components/reui/cascader/cascader-footer.d.ts +8 -8
  518. package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
  519. package/dist/components/reui/cascader/cascader-footer.js +1 -1
  520. package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
  521. package/dist/components/reui/cascader/cascader-i18n.d.ts +3 -4
  522. package/dist/components/reui/cascader/cascader-i18n.d.ts.map +1 -1
  523. package/dist/components/reui/cascader/cascader-item.d.ts +9 -9
  524. package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
  525. package/dist/components/reui/cascader/cascader-item.js +1 -1
  526. package/dist/components/reui/cascader/cascader-item.js.map +1 -1
  527. package/dist/components/reui/cascader/cascader-lib.d.ts +38 -39
  528. package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
  529. package/dist/components/reui/cascader/cascader-nav.d.ts +6 -6
  530. package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
  531. package/dist/components/reui/cascader/cascader-nav.js +1 -1
  532. package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
  533. package/dist/components/reui/cascader/cascader-virtual.d.ts +6 -6
  534. package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
  535. package/dist/components/reui/cascader/cascader.d.ts +19 -19
  536. package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
  537. package/dist/components/reui/cascader/cascader.js +1 -1
  538. package/dist/components/reui/cascader/cascader.js.map +1 -1
  539. package/dist/components/reui/code-block/code-block-highlight.d.ts +32 -33
  540. package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -1
  541. package/dist/components/reui/code-block/code-block.d.ts +7 -7
  542. package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
  543. package/dist/components/reui/code-block/code-block.js +1 -1
  544. package/dist/components/reui/code-block/code-block.js.map +1 -1
  545. package/dist/components/reui/data-grid/data-grid-cell-selection.js +1 -1
  546. package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
  547. package/dist/components/reui/data-grid/data-grid-column-filter.js +1 -1
  548. package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
  549. package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
  550. package/dist/components/reui/data-grid/data-grid-column-header.js +9 -6
  551. package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
  552. package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
  553. package/dist/components/reui/data-grid/data-grid-i18n.js.map +1 -1
  554. package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
  555. package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
  556. package/dist/components/reui/data-grid/data-grid-scroll-area.js +1 -1
  557. package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
  558. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
  559. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
  560. package/dist/components/reui/data-grid/data-grid-table-virtual.js +1 -1
  561. package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
  562. package/dist/components/reui/data-grid/data-grid-table.js +1 -1
  563. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  564. package/dist/components/reui/data-grid/data-grid.d.ts +28 -28
  565. package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
  566. package/dist/components/reui/data-grid/data-grid.js +1 -1
  567. package/dist/components/reui/data-grid/data-grid.js.map +1 -1
  568. package/dist/components/reui/date-selector.d.ts +11 -12
  569. package/dist/components/reui/date-selector.d.ts.map +1 -1
  570. package/dist/components/reui/date-selector.js +1 -1
  571. package/dist/components/reui/date-selector.js.map +1 -1
  572. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
  573. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -1
  574. package/dist/components/reui/event-calendar/event-calendar-content.js +1 -1
  575. package/dist/components/reui/event-calendar/event-calendar-content.js.map +1 -1
  576. package/dist/components/reui/event-calendar/event-calendar-event.js +1 -1
  577. package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -1
  578. package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
  579. package/dist/components/reui/event-calendar/event-calendar-month-view.js.map +1 -1
  580. package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
  581. package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -1
  582. package/dist/components/reui/event-calendar/event-calendar-resource-view.js +1 -1
  583. package/dist/components/reui/event-calendar/event-calendar-resource-view.js.map +1 -1
  584. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +1 -1
  585. package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -1
  586. package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -1
  587. package/dist/components/reui/event-calendar/event-calendar.js +1 -1
  588. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  589. package/dist/components/reui/filters/filters-advanced.d.ts +6 -7
  590. package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
  591. package/dist/components/reui/filters/filters-advanced.js +1 -1
  592. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  593. package/dist/components/reui/filters/filters-builder.d.ts +5 -5
  594. package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
  595. package/dist/components/reui/filters/filters-builder.js +1 -1
  596. package/dist/components/reui/filters/filters-builder.js.map +1 -1
  597. package/dist/components/reui/filters/filters-chip.d.ts +10 -11
  598. package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
  599. package/dist/components/reui/filters/filters-chip.js +1 -1
  600. package/dist/components/reui/filters/filters-chip.js.map +1 -1
  601. package/dist/components/reui/filters/filters-context.d.ts +30 -30
  602. package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
  603. package/dist/components/reui/filters/filters-date.d.ts +13 -14
  604. package/dist/components/reui/filters/filters-date.d.ts.map +1 -1
  605. package/dist/components/reui/filters/filters-dnd.d.ts +15 -16
  606. package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
  607. package/dist/components/reui/filters/filters-editors.d.ts +14 -14
  608. package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
  609. package/dist/components/reui/filters/filters-editors.js +1 -1
  610. package/dist/components/reui/filters/filters-editors.js.map +1 -1
  611. package/dist/components/reui/filters/filters-i18n.d.ts +4 -5
  612. package/dist/components/reui/filters/filters-i18n.d.ts.map +1 -1
  613. package/dist/components/reui/filters/filters-lib.d.ts +34 -35
  614. package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
  615. package/dist/components/reui/filters/filters-operators.d.ts +13 -14
  616. package/dist/components/reui/filters/filters-operators.d.ts.map +1 -1
  617. package/dist/components/reui/filters/filters-query.d.ts +29 -30
  618. package/dist/components/reui/filters/filters-query.d.ts.map +1 -1
  619. package/dist/components/reui/filters/filters-types.d.ts +31 -32
  620. package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
  621. package/dist/components/reui/filters/filters.d.ts +5 -5
  622. package/dist/components/reui/filters/filters.d.ts.map +1 -1
  623. package/dist/components/reui/filters/filters.js +1 -1
  624. package/dist/components/reui/filters/filters.js.map +1 -1
  625. package/dist/components/reui/frame.d.ts +1 -1
  626. package/dist/components/reui/frame.d.ts.map +1 -1
  627. package/dist/components/reui/frame.js +1 -1
  628. package/dist/components/reui/frame.js.map +1 -1
  629. package/dist/components/reui/gantt/gantt-bar.js +1 -1
  630. package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
  631. package/dist/components/reui/gantt/gantt-nav.js +1 -1
  632. package/dist/components/reui/gantt/gantt-nav.js.map +1 -1
  633. package/dist/components/reui/gantt/gantt-view.js +1 -1
  634. package/dist/components/reui/gantt/gantt-view.js.map +1 -1
  635. package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
  636. package/dist/components/reui/gantt/gantt.js +1 -1
  637. package/dist/components/reui/gantt/gantt.js.map +1 -1
  638. package/dist/components/reui/icon-stack.js +1 -1
  639. package/dist/components/reui/icon-stack.js.map +1 -1
  640. package/dist/components/reui/icon-tile.d.ts.map +1 -1
  641. package/dist/components/reui/icon-tile.js +1 -1
  642. package/dist/components/reui/icon-tile.js.map +1 -1
  643. package/dist/components/reui/kanban.d.ts +11 -11
  644. package/dist/components/reui/kanban.d.ts.map +1 -1
  645. package/dist/components/reui/kanban.js +1 -1
  646. package/dist/components/reui/kanban.js.map +1 -1
  647. package/dist/components/reui/number-field.js +1 -1
  648. package/dist/components/reui/number-field.js.map +1 -1
  649. package/dist/components/reui/phone-input.js +1 -1
  650. package/dist/components/reui/phone-input.js.map +1 -1
  651. package/dist/components/reui/rating.d.ts.map +1 -1
  652. package/dist/components/reui/rating.js +1 -1
  653. package/dist/components/reui/rating.js.map +1 -1
  654. package/dist/components/reui/scrollspy.d.ts +1 -2
  655. package/dist/components/reui/scrollspy.d.ts.map +1 -1
  656. package/dist/components/reui/sortable.d.ts +6 -6
  657. package/dist/components/reui/sortable.d.ts.map +1 -1
  658. package/dist/components/reui/sortable.js +1 -1
  659. package/dist/components/reui/sortable.js.map +1 -1
  660. package/dist/components/reui/stepper.d.ts.map +1 -1
  661. package/dist/components/reui/stepper.js +1 -1
  662. package/dist/components/reui/stepper.js.map +1 -1
  663. package/dist/components/reui/timeline.d.ts.map +1 -1
  664. package/dist/components/reui/timeline.js +1 -1
  665. package/dist/components/reui/timeline.js.map +1 -1
  666. package/dist/components/reui/tree.d.ts.map +1 -1
  667. package/dist/components/reui/tree.js +1 -1
  668. package/dist/components/reui/tree.js.map +1 -1
  669. package/dist/components/ui/accordion.d.ts.map +1 -1
  670. package/dist/components/ui/accordion.js +1 -1
  671. package/dist/components/ui/accordion.js.map +1 -1
  672. package/dist/components/ui/alert-dialog.js +1 -1
  673. package/dist/components/ui/alert-dialog.js.map +1 -1
  674. package/dist/components/ui/alert.d.ts.map +1 -1
  675. package/dist/components/ui/alert.js +1 -1
  676. package/dist/components/ui/alert.js.map +1 -1
  677. package/dist/components/ui/aspect-ratio.js +1 -1
  678. package/dist/components/ui/aspect-ratio.js.map +1 -1
  679. package/dist/components/ui/attachment.js +1 -1
  680. package/dist/components/ui/attachment.js.map +1 -1
  681. package/dist/components/ui/avatar.d.ts.map +1 -1
  682. package/dist/components/ui/avatar.js +1 -1
  683. package/dist/components/ui/avatar.js.map +1 -1
  684. package/dist/components/ui/badge.d.ts +1 -1
  685. package/dist/components/ui/badge.d.ts.map +1 -1
  686. package/dist/components/ui/badge.js +1 -1
  687. package/dist/components/ui/badge.js.map +1 -1
  688. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  689. package/dist/components/ui/breadcrumb.js +1 -1
  690. package/dist/components/ui/breadcrumb.js.map +1 -1
  691. package/dist/components/ui/bubble.d.ts +1 -1
  692. package/dist/components/ui/bubble.d.ts.map +1 -1
  693. package/dist/components/ui/bubble.js +1 -1
  694. package/dist/components/ui/bubble.js.map +1 -1
  695. package/dist/components/ui/button-group.js +1 -1
  696. package/dist/components/ui/button-group.js.map +1 -1
  697. package/dist/components/ui/button.d.ts +1 -1
  698. package/dist/components/ui/button.d.ts.map +1 -1
  699. package/dist/components/ui/button.js +1 -1
  700. package/dist/components/ui/button.js.map +1 -1
  701. package/dist/components/ui/calendar.js +1 -1
  702. package/dist/components/ui/calendar.js.map +1 -1
  703. package/dist/components/ui/card.d.ts.map +1 -1
  704. package/dist/components/ui/card.js +1 -1
  705. package/dist/components/ui/card.js.map +1 -1
  706. package/dist/components/ui/carousel.js +1 -1
  707. package/dist/components/ui/carousel.js.map +1 -1
  708. package/dist/components/ui/chart.d.ts +2 -2
  709. package/dist/components/ui/chart.d.ts.map +1 -1
  710. package/dist/components/ui/chart.js +1 -1
  711. package/dist/components/ui/chart.js.map +1 -1
  712. package/dist/components/ui/checkbox.d.ts.map +1 -1
  713. package/dist/components/ui/checkbox.js +2 -2
  714. package/dist/components/ui/checkbox.js.map +1 -1
  715. package/dist/components/ui/combobox.js +1 -1
  716. package/dist/components/ui/combobox.js.map +1 -1
  717. package/dist/components/ui/command.js +1 -1
  718. package/dist/components/ui/command.js.map +1 -1
  719. package/dist/components/ui/context-menu.d.ts.map +1 -1
  720. package/dist/components/ui/context-menu.js +1 -1
  721. package/dist/components/ui/context-menu.js.map +1 -1
  722. package/dist/components/ui/dialog.js +1 -1
  723. package/dist/components/ui/dialog.js.map +1 -1
  724. package/dist/components/ui/drawer.d.ts.map +1 -1
  725. package/dist/components/ui/drawer.js +1 -1
  726. package/dist/components/ui/drawer.js.map +1 -1
  727. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  728. package/dist/components/ui/dropdown-menu.js +1 -1
  729. package/dist/components/ui/dropdown-menu.js.map +1 -1
  730. package/dist/components/ui/empty.d.ts.map +1 -1
  731. package/dist/components/ui/empty.js +1 -1
  732. package/dist/components/ui/empty.js.map +1 -1
  733. package/dist/components/ui/field.js +2 -2
  734. package/dist/components/ui/field.js.map +1 -1
  735. package/dist/components/ui/hover-card.d.ts.map +1 -1
  736. package/dist/components/ui/hover-card.js +1 -1
  737. package/dist/components/ui/hover-card.js.map +1 -1
  738. package/dist/components/ui/input-group.js +1 -1
  739. package/dist/components/ui/input-group.js.map +1 -1
  740. package/dist/components/ui/input-otp.d.ts.map +1 -1
  741. package/dist/components/ui/input-otp.js +1 -1
  742. package/dist/components/ui/input-otp.js.map +1 -1
  743. package/dist/components/ui/input.d.ts.map +1 -1
  744. package/dist/components/ui/input.js +1 -1
  745. package/dist/components/ui/input.js.map +1 -1
  746. package/dist/components/ui/item.d.ts +2 -2
  747. package/dist/components/ui/item.js +1 -1
  748. package/dist/components/ui/item.js.map +1 -1
  749. package/dist/components/ui/kbd.js +1 -1
  750. package/dist/components/ui/kbd.js.map +1 -1
  751. package/dist/components/ui/label.d.ts.map +1 -1
  752. package/dist/components/ui/label.js +1 -1
  753. package/dist/components/ui/label.js.map +1 -1
  754. package/dist/components/ui/marker.d.ts +1 -1
  755. package/dist/components/ui/marker.d.ts.map +1 -1
  756. package/dist/components/ui/marker.js +1 -1
  757. package/dist/components/ui/marker.js.map +1 -1
  758. package/dist/components/ui/menubar.js +1 -1
  759. package/dist/components/ui/menubar.js.map +1 -1
  760. package/dist/components/ui/message-scroller.js +1 -1
  761. package/dist/components/ui/message-scroller.js.map +1 -1
  762. package/dist/components/ui/message.d.ts.map +1 -1
  763. package/dist/components/ui/message.js +1 -1
  764. package/dist/components/ui/message.js.map +1 -1
  765. package/dist/components/ui/native-select.d.ts.map +1 -1
  766. package/dist/components/ui/native-select.js +1 -1
  767. package/dist/components/ui/native-select.js.map +1 -1
  768. package/dist/components/ui/navigation-menu.d.ts.map +1 -1
  769. package/dist/components/ui/navigation-menu.js +1 -1
  770. package/dist/components/ui/navigation-menu.js.map +1 -1
  771. package/dist/components/ui/pagination.js +1 -1
  772. package/dist/components/ui/pagination.js.map +1 -1
  773. package/dist/components/ui/popover.d.ts.map +1 -1
  774. package/dist/components/ui/popover.js +1 -1
  775. package/dist/components/ui/popover.js.map +1 -1
  776. package/dist/components/ui/progress.d.ts.map +1 -1
  777. package/dist/components/ui/progress.js +1 -1
  778. package/dist/components/ui/progress.js.map +1 -1
  779. package/dist/components/ui/questionnaire.js +3 -3
  780. package/dist/components/ui/questionnaire.js.map +1 -1
  781. package/dist/components/ui/radio-group.d.ts.map +1 -1
  782. package/dist/components/ui/radio-group.js +2 -2
  783. package/dist/components/ui/radio-group.js.map +1 -1
  784. package/dist/components/ui/resizable.d.ts.map +1 -1
  785. package/dist/components/ui/resizable.js +1 -1
  786. package/dist/components/ui/resizable.js.map +1 -1
  787. package/dist/components/ui/scroll-area.d.ts.map +1 -1
  788. package/dist/components/ui/scroll-area.js +1 -1
  789. package/dist/components/ui/scroll-area.js.map +1 -1
  790. package/dist/components/ui/select.d.ts.map +1 -1
  791. package/dist/components/ui/select.js +1 -1
  792. package/dist/components/ui/select.js.map +1 -1
  793. package/dist/components/ui/separator.d.ts.map +1 -1
  794. package/dist/components/ui/separator.js +1 -1
  795. package/dist/components/ui/separator.js.map +1 -1
  796. package/dist/components/ui/sheet.js +1 -1
  797. package/dist/components/ui/sheet.js.map +1 -1
  798. package/dist/components/ui/sidebar.d.ts +1 -1
  799. package/dist/components/ui/sidebar.js +1 -1
  800. package/dist/components/ui/sidebar.js.map +1 -1
  801. package/dist/components/ui/skeleton.js +1 -1
  802. package/dist/components/ui/skeleton.js.map +1 -1
  803. package/dist/components/ui/slider.d.ts.map +1 -1
  804. package/dist/components/ui/slider.js +1 -1
  805. package/dist/components/ui/slider.js.map +1 -1
  806. package/dist/components/ui/spinner.d.ts.map +1 -1
  807. package/dist/components/ui/spinner.js +1 -1
  808. package/dist/components/ui/spinner.js.map +1 -1
  809. package/dist/components/ui/switch.d.ts.map +1 -1
  810. package/dist/components/ui/switch.js +2 -2
  811. package/dist/components/ui/switch.js.map +1 -1
  812. package/dist/components/ui/table.d.ts.map +1 -1
  813. package/dist/components/ui/table.js +1 -1
  814. package/dist/components/ui/table.js.map +1 -1
  815. package/dist/components/ui/tabs.d.ts +1 -1
  816. package/dist/components/ui/tabs.d.ts.map +1 -1
  817. package/dist/components/ui/tabs.js +1 -1
  818. package/dist/components/ui/tabs.js.map +1 -1
  819. package/dist/components/ui/textarea.d.ts.map +1 -1
  820. package/dist/components/ui/textarea.js +1 -1
  821. package/dist/components/ui/textarea.js.map +1 -1
  822. package/dist/components/ui/toast.js +2 -2
  823. package/dist/components/ui/toast.js.map +1 -1
  824. package/dist/components/ui/toggle-group.js +1 -1
  825. package/dist/components/ui/toggle-group.js.map +1 -1
  826. package/dist/components/ui/toggle.d.ts +1 -1
  827. package/dist/components/ui/toggle.d.ts.map +1 -1
  828. package/dist/components/ui/toggle.js +1 -1
  829. package/dist/components/ui/toggle.js.map +1 -1
  830. package/dist/components/ui/tooltip.d.ts.map +1 -1
  831. package/dist/components/ui/tooltip.js +1 -1
  832. package/dist/components/ui/tooltip.js.map +1 -1
  833. package/dist/{data-grid-i18n-52UUYPbr.d.ts → data-grid-i18n-TQR2PZlU.d.ts} +1 -13
  834. package/dist/data-grid-i18n-TQR2PZlU.d.ts.map +1 -0
  835. package/dist/hooks/use-body-classes.d.ts +1 -2
  836. package/dist/hooks/use-body-classes.d.ts.map +1 -1
  837. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -2
  838. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
  839. package/dist/hooks/use-dismiss.d.ts +3 -4
  840. package/dist/hooks/use-dismiss.d.ts.map +1 -1
  841. package/dist/hooks/use-favicon.d.ts +1 -2
  842. package/dist/hooks/use-favicon.d.ts.map +1 -1
  843. package/dist/hooks/use-file-upload.d.ts +7 -8
  844. package/dist/hooks/use-file-upload.d.ts.map +1 -1
  845. package/dist/hooks/use-hover-capable.d.ts +1 -2
  846. package/dist/hooks/use-hover-capable.d.ts.map +1 -1
  847. package/dist/hooks/use-hover-gesture.d.ts +2 -3
  848. package/dist/hooks/use-hover-gesture.d.ts.map +1 -1
  849. package/dist/hooks/use-hydrated.d.ts +1 -2
  850. package/dist/hooks/use-hydrated.d.ts.map +1 -1
  851. package/dist/hooks/use-intersection-observer.d.ts +1 -2
  852. package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
  853. package/dist/hooks/use-is-mac.d.ts +1 -2
  854. package/dist/hooks/use-is-mac.d.ts.map +1 -1
  855. package/dist/hooks/use-media-query.d.ts +1 -2
  856. package/dist/hooks/use-media-query.d.ts.map +1 -1
  857. package/dist/hooks/use-meta-color.d.ts +1 -2
  858. package/dist/hooks/use-meta-color.d.ts.map +1 -1
  859. package/dist/hooks/use-mobile.d.ts +1 -2
  860. package/dist/hooks/use-mobile.d.ts.map +1 -1
  861. package/dist/hooks/use-mutation-observer.d.ts +1 -2
  862. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  863. package/dist/hooks/use-on-open.d.ts +1 -2
  864. package/dist/hooks/use-on-open.d.ts.map +1 -1
  865. package/dist/hooks/use-row-cursor.d.ts +1 -2
  866. package/dist/hooks/use-row-cursor.d.ts.map +1 -1
  867. package/dist/hooks/use-scroll-position.d.ts +1 -2
  868. package/dist/hooks/use-scroll-position.d.ts.map +1 -1
  869. package/dist/hooks/use-slider-input.d.ts +1 -2
  870. package/dist/hooks/use-slider-input.d.ts.map +1 -1
  871. package/dist/hooks/use-slider.d.ts +3 -4
  872. package/dist/hooks/use-slider.d.ts.map +1 -1
  873. package/dist/hooks/use-tap-gesture.d.ts +3 -4
  874. package/dist/hooks/use-tap-gesture.d.ts.map +1 -1
  875. package/dist/hooks/use-touch-capable.d.ts +1 -2
  876. package/dist/hooks/use-touch-capable.d.ts.map +1 -1
  877. package/dist/hooks/use-viewport.d.ts +1 -2
  878. package/dist/hooks/use-viewport.d.ts.map +1 -1
  879. package/dist/lib/ease.d.ts +10 -11
  880. package/dist/lib/ease.d.ts.map +1 -1
  881. package/dist/lib/favicon.d.ts +1 -2
  882. package/dist/lib/favicon.d.ts.map +1 -1
  883. package/dist/lib/text-shimmer.d.ts +3 -4
  884. package/dist/lib/text-shimmer.d.ts.map +1 -1
  885. package/dist/lib/tick-sound.d.ts +1 -2
  886. package/dist/lib/tick-sound.d.ts.map +1 -1
  887. package/dist/lib/touch.d.ts +6 -7
  888. package/dist/lib/touch.d.ts.map +1 -1
  889. package/package.json +6 -4
  890. package/dist/data-grid-i18n-52UUYPbr.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"filters-builder.js","names":["React"],"sources":["../../../../src/components/reui/filters/filters-builder.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { ListFilterPlusIcon } from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../../ui/popover\";\nimport {\n Cascader,\n CascaderEmpty,\n CascaderList,\n CascaderPanel,\n CascaderStatus,\n} from \"../cascader/cascader\";\nimport { CascaderFooter } from \"../cascader/cascader-footer\";\nimport { CascaderBreadcrumb, CascaderInput, CascaderNav } from \"../cascader/cascader-nav\";\nimport type { CascaderActionItem, CascaderLabels, CascaderNode } from \"../cascader/cascader-types\";\nimport { CascaderVirtualItems } from \"../cascader/cascader-virtual\";\nimport {\n filterControlSizes,\n filterReadOnlyProps,\n useFilterActions,\n useFilterState,\n} from \"./filters-context\";\nimport {\n FILTER_FIELD_PICKER_CLASS,\n getFilterField,\n getFilterFieldCount,\n joinFilterPath,\n splitFilterPath,\n} from \"./filters-lib\";\nimport { getDefaultFilterOperator } from \"./filters-operators\";\nimport type { FilterField } from \"./filters-types\";\n\n/**\n * Projects ONLY the field tree: operators or values as nodes would force the\n * wizard through a combobox that owns the arrows and `aria-activedescendant`.\n */\nfunction toCascaderNodes<V, O>(\n fields: readonly FilterField<V, O>[],\n parentPath: string[] = [],\n): CascaderNode<FilterField<V, O>>[] {\n return fields.map((field) => {\n const path = [...parentPath, field.id];\n const node: CascaderNode<FilterField<V, O>> = {\n value: joinFilterPath(path),\n label: field.label,\n icon: field.icon,\n description: field.description,\n keywords: field.keywords,\n disabled: field.disabled,\n data: field,\n };\n if (field.fields?.length) {\n node.children = toCascaderNodes(field.fields, path);\n node.count = getFilterFieldCount(field);\n }\n return node;\n });\n}\n\nexport interface FilterFieldPickerProps {\n /** The level being browsed. Not the chosen field. */\n path: string[];\n onPathChange: (path: string[]) => void;\n query: string;\n onQueryChange: (query: string) => void;\n /** A field was chosen, with its starting operator already resolved. */\n onSelect: (path: string[], defaultOperator: string | null) => void;\n /** Viewport height before the list scrolls. */\n maxHeight?: number;\n /** Cascader-only strings; the `FilterLabels` bridge below covers the rest. */\n labels?: Partial<CascaderLabels>;\n /** Pinned footer rows, OUT of the option ring so arrows never land on one. */\n actions?: CascaderActionItem[];\n}\n\n/**\n * Fully controlled, not draft-driven, so ONE picker serves both the create\n * popover (driven by the draft reducer) and an advanced row (its own state).\n */\nexport function FilterFieldPicker<V, O>({\n path,\n onPathChange,\n query,\n onQueryChange,\n onSelect,\n maxHeight = 260,\n labels: labelsProp,\n actions: actionItems,\n}: FilterFieldPickerProps) {\n const actions = useFilterActions<V, O>();\n\n const items = React.useMemo(() => toCascaderNodes(actions.index.roots), [actions.index]);\n\n // Bridges `FilterLabels` onto the cascader's own key names. `labelsProp` is\n // spread LAST, so a consumer override always wins.\n const cascaderLabels = React.useMemo<Partial<CascaderLabels>>(\n () => ({\n search: actions.labels.searchFields,\n back: actions.labels.back,\n empty: actions.labels.empty,\n pathSeparator: actions.labels.pathSeparator.trim() || \"/\",\n itemCount: actions.labels.itemCount,\n branchAffordance: actions.labels.branchAffordance,\n rootLevel: actions.labels.fieldsLabel,\n panelLabel: actions.labels.fieldsLabel,\n resultsAnnouncement: actions.labels.resultsAnnouncement,\n actionsLabel: actions.labels.actionsLabel,\n ...labelsProp,\n }),\n [actions.labels, labelsProp],\n );\n\n return (\n <Cascader\n inline\n /* Pinned open: inline renders no popup and forces `open`, so the\n single-select commit's `setOpen(false)` dismisses nothing. That avoids\n the `multiple` plus `max` workaround and its `aria-multiselectable`. */\n open\n onOpenChange={() => {}}\n items={items}\n /* No `selectable` predicate: LEAVES commit, branches navigate. Honouring\n a branch's opt-in made one click mean both drill and commit. */\n searchScope=\"deep\"\n /* Nothing is ever selected, so the ~24px check gutter is dead space. */\n indicator={false}\n path={path}\n onPathChange={onPathChange}\n /* Controlled: the single-select arm of `commit()` never clears the query,\n so an uncontrolled one would bleed into the next step. */\n inputValue={query}\n onInputValueChange={onQueryChange}\n value=\"\"\n onValueChange={(value) => {\n const nextPath = splitFilterPath(value);\n const field = getFilterField(actions.index, nextPath);\n if (!field) return;\n onSelect(nextPath, getDefaultFilterOperator(field, actions.resolveOperators(field)));\n }}\n labels={cascaderLabels}\n actions={actionItems}\n /* Set here only: `CascaderList` takes its own `maxHeight` and that WINS,\n so a second copy on the list is a divergence waiting to happen. */\n maxHeight={maxHeight}\n >\n <CascaderPanel>\n <CascaderNav>\n <CascaderInput placeholder={actions.labels.searchFields} />\n </CascaderNav>\n <CascaderBreadcrumb />\n <CascaderEmpty />\n <CascaderList>\n {/* WINDOWED: the picker is where scale lives and nothing here pins.\n Below the threshold it renders what `CascaderItems` does. */}\n <CascaderVirtualItems />\n </CascaderList>\n <CascaderFooter />\n <CascaderStatus />\n </CascaderPanel>\n </Cascader>\n );\n}\n\nfunction FieldStep<V, O>() {\n const actions = useFilterActions<V, O>();\n const { draft } = useFilterState<V>();\n\n return (\n <FilterFieldPicker<V, O>\n path={draft?.cascaderPath ?? []}\n onPathChange={(next) => actions.dispatchDraft({ type: \"setCascaderPath\", path: next })}\n query={draft?.query ?? \"\"}\n onQueryChange={(query) => actions.dispatchDraft({ type: \"setQuery\", query })}\n onSelect={(path, defaultOperator) =>\n actions.dispatchDraft({ type: \"selectField\", path, defaultOperator })\n }\n />\n );\n}\n\nexport interface FiltersBuilderProps {\n /** Replaces the default Add filter button. */\n trigger?: React.ReactNode;\n className?: string;\n}\n\n/**\n * The Add filter popover. ONE panel, the field step: picking a field commits\n * the rule and opens the operator menu on the new chip. `open` derives from the\n * draft and `openCreate` is gated, so read-only and disabled shut every route.\n */\nexport function FiltersBuilder<V, O>({ trigger, className }: FiltersBuilderProps) {\n const actions = useFilterActions<V, O>();\n const sizes = filterControlSizes(actions);\n const { draft, ruleCount } = useFilterState<V>();\n const open = draft !== null && draft.ruleId === null;\n // The HANDOFF close, the one that must not FADE: the panel is a 224px card\n // dissolving over the very menu the user is now meant to read.\n const committing = draft !== null && draft.ruleId === null && draft.status === \"ready\";\n // LATCHED, because `committing` is true for one render only, before the exit\n // it suppresses begins. Adjusted during render; an effect is one frame late.\n const [instantExit, setInstantExit] = React.useState(false);\n if (committing && !instantExit) setInstantExit(true);\n else if (open && !committing && instantExit) setInstantExit(false);\n // Icon-only once chips sit beside it. Both states come off ONE size ladder,\n // so they share height and radius in every style at every bar size. The\n // hardcoded `icon`/`default` pair this replaced IS the `default` rung, so it\n // drifted the moment the bar was `sm`.\n const compact = ruleCount > 0;\n\n // Base UI's own microtask-then-rAF ordering hands focus to the new chip, NOT\n // anything this file arranges. Suppressing the close restore with\n // `finalFocus` only removes the fallback that keeps focus off the BODY.\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (!next) actions.closeDraft();\n else actions.openCreate();\n }}\n >\n <PopoverTrigger\n /* On the TRIGGER so a consumer's own `trigger` wears the state too. */\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n render={\n trigger ? (\n (trigger as React.ReactElement)\n ) : (\n <Button\n variant=\"outline\"\n size={compact ? sizes.icon : sizes.button}\n aria-label={compact ? actions.labels.addFilter : undefined}\n /* THE RESET BOUNCE: the button's base class carries\n `transition-all`, so flipping the size class eased padding 0 to\n `px-6` in sera over 150ms. Naming a transition REPLACES it. */\n className=\"transition-[color,background-color,border-color,box-shadow]\"\n >\n {/* No filter-plus glyph in phosphor or remixicon. */}\n <ListFilterPlusIcon />\n {compact ? null : actions.labels.addFilter}\n </Button>\n )\n }\n />\n {/* The default, then the root override, then this `className` last, so\n the specific wins. */}\n <PopoverContent\n align=\"start\"\n className={cn(\n FILTER_FIELD_PICKER_CLASS,\n /* See `instantExit`. Both PROPERTIES (an `exit` animation AND a\n transition each paint over the successor) and both twins (Base UI\n `data-ending-style`, Radix `data-[state=closed]`); only one can\n match in a given build. The string stays identical on both sides\n because listing only the Base UI half left the radix twin fading\n a 224px card over its successor. */\n instantExit &&\n cn(\n \"data-ending-style:animate-none data-ending-style:transition-none\",\n \"data-[state=closed]:animate-none data-[state=closed]:transition-none\",\n ),\n actions.fieldPickerClassName,\n className,\n )}\n >\n <FieldStep<V, O> />\n </PopoverContent>\n </Popover>\n );\n}\n\n/** Exported for custom field pickers. */\nexport { toCascaderNodes };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,SAAS,gBACP,QACA,aAAuB,CAAC,GACW;CACnC,OAAO,OAAO,KAAK,UAAU;EAC3B,MAAM,OAAO,CAAC,GAAG,YAAY,MAAM,EAAE;EACrC,MAAM,OAAwC;GAC5C,OAAO,eAAe,IAAI;GAC1B,OAAO,MAAM;GACb,MAAM,MAAM;GACZ,aAAa,MAAM;GACnB,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,MAAM;EACR;EACA,IAAI,MAAM,QAAQ,QAAQ;GACxB,KAAK,WAAW,gBAAgB,MAAM,QAAQ,IAAI;GAClD,KAAK,QAAQ,oBAAoB,KAAK;EACxC;EACA,OAAO;CACT,CAAC;AACH;;;;;AAsBA,SAAgB,kBAAwB,EACtC,MACA,cACA,OACA,eACA,U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,QAAQ,OAAO,SAC3B;;EAGb,CAAA,GAGD,oBAAC,gBAAD;GACE,OAAM;GACN,WAAW,GACT,2BAOA,eACE,GACE,oEACA,sEACF,GACF,QAAQ,sBACR,SACF;GAEA,UAAA,oBAAC,WAAD,CAAkB,CAAA;EACJ,CAAA,CACT;;AAEb"}
1
+ {"version":3,"file":"filters-builder.js","names":["React"],"sources":["../../../../src/components/reui/filters/filters-builder.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"cn\";\nimport { ListFilterPlusIcon } from \"lucide-react\";\n\nimport { Button } from \"../../ui/button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../../ui/popover\";\nimport {\n Cascader,\n CascaderEmpty,\n CascaderList,\n CascaderPanel,\n CascaderStatus,\n} from \"../cascader/cascader\";\nimport { CascaderFooter } from \"../cascader/cascader-footer\";\nimport { CascaderBreadcrumb, CascaderInput, CascaderNav } from \"../cascader/cascader-nav\";\nimport type { CascaderActionItem, CascaderLabels, CascaderNode } from \"../cascader/cascader-types\";\nimport { CascaderVirtualItems } from \"../cascader/cascader-virtual\";\nimport {\n filterControlSizes,\n filterReadOnlyProps,\n useFilterActions,\n useFilterState,\n} from \"./filters-context\";\nimport {\n FILTER_FIELD_PICKER_CLASS,\n getFilterField,\n getFilterFieldCount,\n joinFilterPath,\n splitFilterPath,\n} from \"./filters-lib\";\nimport { getDefaultFilterOperator } from \"./filters-operators\";\nimport type { FilterField } from \"./filters-types\";\n\n/**\n * Projects ONLY the field tree: operators or values as nodes would force the\n * wizard through a combobox that owns the arrows and `aria-activedescendant`.\n */\nfunction toCascaderNodes<V, O>(\n fields: readonly FilterField<V, O>[],\n parentPath: string[] = [],\n): CascaderNode<FilterField<V, O>>[] {\n return fields.map((field) => {\n const path = [...parentPath, field.id];\n const node: CascaderNode<FilterField<V, O>> = {\n value: joinFilterPath(path),\n label: field.label,\n icon: field.icon,\n description: field.description,\n keywords: field.keywords,\n disabled: field.disabled,\n data: field,\n };\n if (field.fields?.length) {\n node.children = toCascaderNodes(field.fields, path);\n node.count = getFilterFieldCount(field);\n }\n return node;\n });\n}\n\nexport interface FilterFieldPickerProps {\n /** The level being browsed. Not the chosen field. */\n path: string[];\n onPathChange: (path: string[]) => void;\n query: string;\n onQueryChange: (query: string) => void;\n /** A field was chosen, with its starting operator already resolved. */\n onSelect: (path: string[], defaultOperator: string | null) => void;\n /** Viewport height before the list scrolls. */\n maxHeight?: number;\n /** Cascader-only strings; the `FilterLabels` bridge below covers the rest. */\n labels?: Partial<CascaderLabels>;\n /** Pinned footer rows, OUT of the option ring so arrows never land on one. */\n actions?: CascaderActionItem[];\n}\n\n/**\n * Fully controlled, not draft-driven, so ONE picker serves both the create\n * popover (driven by the draft reducer) and an advanced row (its own state).\n */\nexport function FilterFieldPicker<V, O>({\n path,\n onPathChange,\n query,\n onQueryChange,\n onSelect,\n maxHeight = 260,\n labels: labelsProp,\n actions: actionItems,\n}: FilterFieldPickerProps) {\n const actions = useFilterActions<V, O>();\n\n const items = React.useMemo(() => toCascaderNodes(actions.index.roots), [actions.index]);\n\n // Bridges `FilterLabels` onto the cascader's own key names. `labelsProp` is\n // spread LAST, so a consumer override always wins.\n const cascaderLabels = React.useMemo<Partial<CascaderLabels>>(\n () => ({\n search: actions.labels.searchFields,\n back: actions.labels.back,\n empty: actions.labels.empty,\n pathSeparator: actions.labels.pathSeparator.trim() || \"/\",\n itemCount: actions.labels.itemCount,\n branchAffordance: actions.labels.branchAffordance,\n rootLevel: actions.labels.fieldsLabel,\n panelLabel: actions.labels.fieldsLabel,\n resultsAnnouncement: actions.labels.resultsAnnouncement,\n actionsLabel: actions.labels.actionsLabel,\n ...labelsProp,\n }),\n [actions.labels, labelsProp],\n );\n\n return (\n <Cascader\n inline\n /* Pinned open: inline renders no popup and forces `open`, so the\n single-select commit's `setOpen(false)` dismisses nothing. That avoids\n the `multiple` plus `max` workaround and its `aria-multiselectable`. */\n open\n onOpenChange={() => {}}\n items={items}\n /* No `selectable` predicate: LEAVES commit, branches navigate. Honouring\n a branch's opt-in made one click mean both drill and commit. */\n searchScope=\"deep\"\n /* Nothing is ever selected, so the ~24px check gutter is dead space. */\n indicator={false}\n path={path}\n onPathChange={onPathChange}\n /* Controlled: the single-select arm of `commit()` never clears the query,\n so an uncontrolled one would bleed into the next step. */\n inputValue={query}\n onInputValueChange={onQueryChange}\n value=\"\"\n onValueChange={(value) => {\n const nextPath = splitFilterPath(value);\n const field = getFilterField(actions.index, nextPath);\n if (!field) return;\n onSelect(nextPath, getDefaultFilterOperator(field, actions.resolveOperators(field)));\n }}\n labels={cascaderLabels}\n actions={actionItems}\n /* Set here only: `CascaderList` takes its own `maxHeight` and that WINS,\n so a second copy on the list is a divergence waiting to happen. */\n maxHeight={maxHeight}\n >\n <CascaderPanel>\n <CascaderNav>\n <CascaderInput placeholder={actions.labels.searchFields} />\n </CascaderNav>\n <CascaderBreadcrumb />\n <CascaderEmpty />\n <CascaderList>\n {/* WINDOWED: the picker is where scale lives and nothing here pins.\n Below the threshold it renders what `CascaderItems` does. */}\n <CascaderVirtualItems />\n </CascaderList>\n <CascaderFooter />\n <CascaderStatus />\n </CascaderPanel>\n </Cascader>\n );\n}\n\nfunction FieldStep<V, O>() {\n const actions = useFilterActions<V, O>();\n const { draft } = useFilterState<V>();\n\n return (\n <FilterFieldPicker<V, O>\n path={draft?.cascaderPath ?? []}\n onPathChange={(next) => actions.dispatchDraft({ type: \"setCascaderPath\", path: next })}\n query={draft?.query ?? \"\"}\n onQueryChange={(query) => actions.dispatchDraft({ type: \"setQuery\", query })}\n onSelect={(path, defaultOperator) =>\n actions.dispatchDraft({ type: \"selectField\", path, defaultOperator })\n }\n />\n );\n}\n\nexport interface FiltersBuilderProps {\n /** Replaces the default Add filter button. */\n trigger?: React.ReactNode;\n className?: string;\n}\n\n/**\n * The Add filter popover. ONE panel, the field step: picking a field commits\n * the rule and opens the operator menu on the new chip. `open` derives from the\n * draft and `openCreate` is gated, so read-only and disabled shut every route.\n */\nexport function FiltersBuilder<V, O>({ trigger, className }: FiltersBuilderProps) {\n const actions = useFilterActions<V, O>();\n const sizes = filterControlSizes(actions);\n const { draft, ruleCount } = useFilterState<V>();\n const open = draft !== null && draft.ruleId === null;\n // The HANDOFF close, the one that must not FADE: the panel is a 224px card\n // dissolving over the very menu the user is now meant to read.\n const committing = draft !== null && draft.ruleId === null && draft.status === \"ready\";\n // LATCHED, because `committing` is true for one render only, before the exit\n // it suppresses begins. Adjusted during render; an effect is one frame late.\n const [instantExit, setInstantExit] = React.useState(false);\n if (committing && !instantExit) setInstantExit(true);\n else if (open && !committing && instantExit) setInstantExit(false);\n // Icon-only once chips sit beside it. Both states come off ONE size ladder,\n // so they share height and radius in every style at every bar size. The\n // hardcoded `icon`/`default` pair this replaced IS the `default` rung, so it\n // drifted the moment the bar was `sm`.\n const compact = ruleCount > 0;\n\n // Base UI's own microtask-then-rAF ordering hands focus to the new chip, NOT\n // anything this file arranges. Suppressing the close restore with\n // `finalFocus` only removes the fallback that keeps focus off the BODY.\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (!next) actions.closeDraft();\n else actions.openCreate();\n }}\n >\n <PopoverTrigger\n /* On the TRIGGER so a consumer's own `trigger` wears the state too. */\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n render={\n trigger ? (\n (trigger as React.ReactElement)\n ) : (\n <Button\n variant=\"outline\"\n size={compact ? sizes.icon : sizes.button}\n aria-label={compact ? actions.labels.addFilter : undefined}\n /* THE RESET BOUNCE: the button's base class carries\n `transition-all`, so flipping the size class eased padding 0 to\n `px-6` in sera over 150ms. Naming a transition REPLACES it. */\n className=\"transition-[color,background-color,border-color,box-shadow]\"\n >\n {/* No filter-plus glyph in phosphor or remixicon. */}\n <ListFilterPlusIcon />\n {compact ? null : actions.labels.addFilter}\n </Button>\n )\n }\n />\n {/* The default, then the root override, then this `className` last, so\n the specific wins. */}\n <PopoverContent\n align=\"start\"\n className={cn(\n FILTER_FIELD_PICKER_CLASS,\n /* See `instantExit`. Both PROPERTIES (an `exit` animation AND a\n transition each paint over the successor) and both twins (Base UI\n `data-ending-style`, Radix `data-[state=closed]`); only one can\n match in a given build. The string stays identical on both sides\n because listing only the Base UI half left the radix twin fading\n a 224px card over its successor. */\n instantExit &&\n cn(\n \"data-ending-style:animate-none data-ending-style:transition-none\",\n \"data-[state=closed]:animate-none data-[state=closed]:transition-none\",\n ),\n actions.fieldPickerClassName,\n className,\n )}\n >\n <FieldStep<V, O> />\n </PopoverContent>\n </Popover>\n );\n}\n\n/** Exported for custom field pickers. */\nexport { toCascaderNodes };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,SAAS,gBACP,QACA,aAAuB,CAAC,GACW;CACnC,OAAO,OAAO,KAAK,UAAU;EAC3B,MAAM,OAAO,CAAC,GAAG,YAAY,MAAM,EAAE;EACrC,MAAM,OAAwC;GAC5C,OAAO,eAAe,IAAI;GAC1B,OAAO,MAAM;GACb,MAAM,MAAM;GACZ,aAAa,MAAM;GACnB,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,MAAM;EACR;EACA,IAAI,MAAM,QAAQ,QAAQ;GACxB,KAAK,WAAW,gBAAgB,MAAM,QAAQ,IAAI;GAClD,KAAK,QAAQ,oBAAoB,KAAK;EACxC;EACA,OAAO;CACT,CAAC;AACH;;;;;AAsBA,SAAgB,kBAAwB,EACtC,MACA,cACA,OACA,eACA,UACA,YAAY,KACZ,QAAQ,YACR,SAAS,eACgB;CACzB,MAAM,UAAU,iBAAuB;CAEvC,MAAM,QAAQA,QAAM,cAAc,gBAAgB,QAAQ,MAAM,KAAK,GAAG,CAAC,QAAQ,KAAK,CAAC;CAIvF,MAAM,iBAAiBA,QAAM,eACpB;EACL,QAAQ,QAAQ,OAAO;EACvB,MAAM,QAAQ,OAAO;EACrB,OAAO,QAAQ,OAAO;EACtB,eAAe,QAAQ,OAAO,cAAc,KAAK,KAAK;EACtD,WAAW,QAAQ,OAAO;EAC1B,kBAAkB,QA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cAAc;GAAE,MAAM;GAAe;GAAM;EAAgB,CAAC;CAEvE,CAAA;AAEL;;;;;;AAaA,SAAgB,eAAqB,EAAE,SAAS,aAAkC;CAChF,MAAM,UAAU,iBAAuB;CACvC,MAAM,QAAQ,mBAAmB,OAAO;CACxC,MAAM,EAAE,OAAO,cAAc,eAAkB;CAC/C,MAAM,OAAO,UAAU,QAAQ,MAAM,WAAW;CAGhD,MAAM,aAAa,UAAU,QAAQ,MAAM,WAAW,QAAQ,MAAM,WAAW;CAG/E,MAAM,CAAC,aAAa,kBAAkBA,QAAM,SAAS,KAAK;CAC1D,IAAI,cAAc,CAAC,aAAa,eAAe,IAAI;MAC9C,IAAI,QAAQ,CAAC,cAAc,aAAa,eAAe,KAAK;CAKjE,MAAM,UAAU,YAAY;CAM5B,OACE,qBAAC,SAAD;EACQ;EACN,eAAe,SAAS;GACtB,IAAI,CAAC,MAAM,QAAQ,WAAW;QACzB,QAAQ,WAAW;EAC1B;EALF,UAAA,CAOE,oBAAC,gBAAD;GAEE,UAAU,QAAQ;GAClB,GAAI,oBAAoB,OAAO;GAC/B,QACE,UACG,UAED,qBAAC,QAAD;IACE,SAAQ;IACR,MAAM,UAAU,MAAM,OAAO,MAAM;IACnC,cAAY,UAAU,QAAQ,OAAO,YAAY,KAAA;IAIjD,WAAU;IAPZ,UAAA,CAUE,oBAAC,oBAAD,CAAqB,CAAA,GACpB,UAAU,OAAO,QAAQ,OAAO,SAC3B;;EAGb,CAAA,GAGD,oBAAC,gBAAD;GACE,OAAM;GACN,WAAW,GACT,2BAOA,eACE,GACE,oEACA,sEACF,GACF,QAAQ,sBACR,SACF;GAEA,UAAA,oBAAC,WAAD,CAAkB,CAAA;EACJ,CAAA,CACT;;AAEb"}
@@ -2,7 +2,7 @@ import { FilterField, FilterOperator, FilterRule } from "./filters-types.js";
2
2
  import * as React$1 from "react";
3
3
  //#region src/components/reui/filters/filters-chip.d.ts
4
4
  /** Everything a rule needs in order to be READ, in either chrome. */
5
- interface FilterRuleDisplay {
5
+ export interface FilterRuleDisplay {
6
6
  pathText: string;
7
7
  pathLabel: React$1.ReactNode;
8
8
  /** Whether `pathLabel` shows fewer names than the path has, so the cell's
@@ -26,11 +26,11 @@ interface FilterRuleDisplay {
26
26
  }
27
27
  /** How one rule reads, resolved once and shared by both chromes, so a consumer
28
28
  * `renderValue`, the field's own and the built-in cannot disagree. */
29
- declare function useFilterRuleDisplay<V, O>(rule: FilterRule<V>, field: FilterField<V, O> | undefined, operator: FilterOperator | undefined): FilterRuleDisplay;
29
+ export declare function useFilterRuleDisplay<V, O>(rule: FilterRule<V>, field: FilterField<V, O> | undefined, operator: FilterOperator | undefined): FilterRuleDisplay;
30
30
  /** The value host: the editor in a popover anchored to the value segment, and
31
31
  * BOTH routes end here. The operator popover used to draw the editor itself,
32
32
  * so a handed-off panel sat a segment's width left of a second press. */
33
- interface FilterValuePopoverProps<V = unknown, O = unknown> {
33
+ export interface FilterValuePopoverProps<V = unknown, O = unknown> {
34
34
  rule: FilterRule<V>;
35
35
  field: FilterField<V, O>;
36
36
  operator: FilterOperator | undefined;
@@ -39,33 +39,33 @@ interface FilterValuePopoverProps<V = unknown, O = unknown> {
39
39
  trigger: React$1.ReactElement;
40
40
  className?: string;
41
41
  }
42
- declare function FilterValuePopover<V, O>({ rule, field, operator, trigger, className }: FilterValuePopoverProps<V, O>): React$1.JSX.Element;
42
+ export declare function FilterValuePopover<V, O>({ rule, field, operator, trigger, className }: FilterValuePopoverProps<V, O>): React$1.JSX.Element;
43
43
  /** The condition menu, and the step after it. The list is the cascader run
44
44
  * flat: the old hand-rolled one marked the keyboard HIGHLIGHT with
45
45
  * `aria-selected` and had no Home, End or typeahead. It HANDS OFF to the
46
46
  * value popover once its own panel has left the DOM; advancing in place
47
47
  * anchored the editor to the CONDITION segment and doubled up in the row. */
48
- interface FilterOperatorPopoverProps<V = unknown, O = unknown> {
48
+ export interface FilterOperatorPopoverProps<V = unknown, O = unknown> {
49
49
  rule: FilterRule<V>;
50
50
  field: FilterField<V, O>;
51
51
  trigger: React$1.ReactElement;
52
52
  className?: string;
53
53
  }
54
- declare function FilterOperatorPopover<V, O>({ rule, field, trigger, className }: FilterOperatorPopoverProps<V, O>): React$1.JSX.Element;
54
+ export declare function FilterOperatorPopover<V, O>({ rule, field, trigger, className }: FilterOperatorPopoverProps<V, O>): React$1.JSX.Element;
55
55
  /** The keyboard path to a CROSS-GROUP move: Alt+Arrow reorders within the
56
56
  * owning group only and Wrap creates a NEW group, so the drag layer's
57
57
  * cross-group move had no keyboard parity. Numbered in document order. */
58
- declare function FilterMoveToMenuItems({ nodeId }: {
58
+ export declare function FilterMoveToMenuItems({ nodeId }: {
59
59
  nodeId: string;
60
60
  }): React$1.JSX.Element | null;
61
61
  /** The per-rule actions, without the trigger: the chip's kebab and a builder
62
62
  * row's kebab act on the same rule. `allowGrouping` is the CHROME's answer;
63
63
  * "Convert to advanced filter" is the CONSUMER's, and hides itself there. */
64
- declare function FilterRuleMenuItems({ ruleId, allowGrouping }: {
64
+ export declare function FilterRuleMenuItems({ ruleId, allowGrouping }: {
65
65
  ruleId: string;
66
66
  allowGrouping?: boolean;
67
67
  }): React$1.JSX.Element;
68
- interface FilterChipProps<V = unknown> {
68
+ export interface FilterChipProps<V = unknown> {
69
69
  rule: FilterRule<V>;
70
70
  index: number;
71
71
  }
@@ -73,7 +73,6 @@ interface FilterChipProps<V = unknown> {
73
73
  * context is stable, the focus store is subscribed to a boolean and the query
74
74
  * shares structure, so editing one filter of forty re-renders one chip. */
75
75
  declare function FilterChipImpl<V, O>({ rule, index }: FilterChipProps<V>): React$1.JSX.Element;
76
- declare const FilterChip: typeof FilterChipImpl;
76
+ export declare const FilterChip: typeof FilterChipImpl;
77
77
  //#endregion
78
- export { FilterChip, FilterChipProps, FilterMoveToMenuItems, FilterOperatorPopover, FilterOperatorPopoverProps, FilterRuleDisplay, FilterRuleMenuItems, FilterValuePopover, FilterValuePopoverProps, useFilterRuleDisplay };
79
78
  //# sourceMappingURL=filters-chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters-chip.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"mappings":";;;;UAgLiB;EACf;EACA,WAAW,QAAM;;;EAGjB;EACA;EACA,YAAY,QAAM;;;;;;;;EAQlB;;;;EAIA;EACA;;;;iBAKc,qBAAqB,GAAG,GACtC,MAAM,WAAW,IACjB,OAAO,YAAY,GAAG,gBACtB,UAAU,6BACT;;;;UAkNc,wBAAwB,aAAa;EACpD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,UAAU;;;EAGV,SAAS,QAAM;EACf;;iBAGc,mBAAmB,GAAG,KACpC,MACA,OACA,UACA,SACA,aACC,wBAAwB,GAAG,KAAE,QAAA,IAAA;;;;;;UA0Ef,2BAA2B,aAAa;EACvD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,SAAS,QAAM;EACf;;iBAGc,sBAAsB,GAAG,KACvC,MACA,OACA,SACA,aACC,2BAA2B,GAAG,KAAE,QAAA,IAAA;;;;iBA0JnB,wBAAwB;EAAY;IAAgB,QAAA,IAAA;;;;iBAyEpD,sBACd,QAGA;EAEA;EACA;IACD,QAAA,IAAA;UAmDgB,gBAAgB;EAC/B,MAAM,WAAW;EACjB;;;;;iBAMO,eAAe,GAAG,KAAK,MAAM,SAAS,gBAAgB,KAAE,QAAA,IAAA;cAqNpD,mBAAkD"}
1
+ {"version":3,"file":"filters-chip.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"mappings":";;;;iBAgLiB;EACf;EACA,WAAW,QAAM;;;EAGjB;EACA;EACA,YAAY,QAAM;;;;;;;;EAQlB;;;;EAIA;EACA;;;;wBAKc,qBAAqB,GAAG,GACtC,MAAM,WAAW,IACjB,OAAO,YAAY,GAAG,gBACtB,UAAU,6BACT;;;;iBAkNc,wBAAwB,aAAa;EACpD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,UAAU;;;EAGV,SAAS,QAAM;EACf;;wBAGc,mBAAmB,GAAG,KACpC,MACA,OACA,UACA,SACA,aACC,wBAAwB,GAAG,KAAE,QAAA,IAAA;;;;;;iBA0Ef,2BAA2B,aAAa;EACvD,MAAM,WAAW;EACjB,OAAO,YAAY,GAAG;EACtB,SAAS,QAAM;EACf;;wBAGc,sBAAsB,GAAG,KACvC,MACA,OACA,SACA,aACC,2BAA2B,GAAG,KAAE,QAAA,IAAA;;;;wBA0JnB,wBAAwB;EAAY;IAAgB,QAAA,IAAA;;;;wBAyEpD,sBACd,QAGA;EAEA;EACA;IACD,QAAA,IAAA;iBAmDgB,gBAAgB;EAC/B,MAAM,WAAW;EACjB;;;;;iBAMO,eAAe,GAAG,KAAK,MAAM,SAAS,gBAAgB,KAAE,QAAA,IAAA;qBAqNpD,mBAAkD"}
@@ -10,7 +10,7 @@ import { coerceFilterValue, getFilterArity, getFilterOperator, operatorTakesValu
10
10
  import { FilterMenu, useFilterOptions, useFilterValueResolution } from "./filters-editors.js";
11
11
  import { findFilterNode, isFilterGroup } from "./filters-query.js";
12
12
  import * as React$1 from "react";
13
- import { cn } from "@kumix/utils";
13
+ import { cn } from "cn";
14
14
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
15
  import { ArrowLeftRightIcon, ChevronRightIcon, CopyIcon, CornerDownRightIcon, EllipsisVerticalIcon, LayersIcon, SlidersHorizontalIcon, Trash2Icon, XIcon } from "lucide-react";
16
16
  //#region src/components/reui/filters/filters-chip.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"filters-chip.js","names":["React"],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n ArrowLeftRightIcon,\n ChevronRightIcon,\n CopyIcon,\n CornerDownRightIcon,\n EllipsisVerticalIcon,\n LayersIcon,\n SlidersHorizontalIcon,\n Trash2Icon,\n XIcon,\n} from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport { ButtonGroup, ButtonGroupText } from \"../../ui/button-group\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"../../ui/dropdown-menu\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../../ui/popover\";\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"../../ui/tooltip\";\nimport {\n filterControlSizes,\n filterReadOnlyProps,\n isFilterLocked,\n useFilterActions,\n useFilterChipAutoOpen,\n useFilterChipFocused,\n useFilterFocusEmpty,\n useFilterFocusStore,\n useFilterRender,\n useFilterReorderable,\n} from \"./filters-context\";\nimport { FilterMenu, useFilterOptions, useFilterValueResolution } from \"./filters-editors\";\nimport {\n collapseFilterPath,\n FILTER_MENU_CLASS,\n FILTER_MENU_LABEL_CLASS,\n formatFilterPath,\n getFilterField,\n getFilterFieldChain,\n} from \"./filters-lib\";\nimport {\n coerceFilterValue,\n getFilterArity,\n getFilterOperator,\n operatorTakesValue,\n visibleFilterOperators,\n} from \"./filters-operators\";\nimport { findFilterNode, isFilterGroup } from \"./filters-query\";\nimport type {\n FilterEditorProps,\n FilterField,\n FilterGroupNode,\n FilterOperator,\n FilterRule,\n} from \"./filters-types\";\n\n/** Which part of the chip a pointer or key is aimed at. No `field`: the chip's\n * attribute segment is display only, and only the builder re-picks one. */\ntype ChipSegment = \"operator\" | \"value\" | \"menu\";\n\n/** The ref half of `autoFocusProps`: a CALLBACK ref, the one shape an editor\n * can spread onto any element without a cast, and a no-op here. */\nconst noopAutoFocusRef: React.RefCallback<HTMLElement> = () => {};\n\nfunction defaultValueDisplay<V>(\n value: V | undefined,\n operator: FilterOperator | undefined,\n resolveOption: (value: string) => { label: string } | undefined,\n labels: ReturnType<typeof useFilterActions>[\"labels\"],\n // The field's own word for \"no value yet\", which a generic label cannot beat.\n fieldPlaceholder?: string,\n /** Whether the value is PICKED rather than typed: a select's search prompt\n * and \"enter text...\" both give way to `labels.selectPlaceholder`. */\n optionBacked?: boolean,\n): string {\n const emptyLabel = optionBacked\n ? labels.selectPlaceholder\n : (fieldPlaceholder ?? labels.valuePlaceholder);\n if (value === undefined || value === null || value === \"\") {\n return emptyLabel;\n }\n\n if (getFilterArity(operator) === \"range\" && Array.isArray(value)) {\n const [from, to] = value as unknown[];\n return labels.valueRange(String(from ?? \"\"), String(to ?? \"\"));\n }\n\n if (Array.isArray(value)) {\n const values = value as string[];\n if (values.length === 0) return emptyLabel;\n if (values.length === 1) {\n return resolveOption(values[0])?.label ?? String(values[0]);\n }\n return labels.valueCount(values.length);\n }\n\n if (typeof value === \"boolean\") return value ? \"True\" : \"False\";\n\n return resolveOption(String(value))?.label ?? String(value);\n}\n\n/** The same display with the option's own icon in front. A status filter reads\n * as its colour before its word, so dropping the swatch the picker showed\n * makes the chip harder to scan than the list it came from. */\nfunction valueWithIcon<V>(\n value: V | undefined,\n text: string,\n resolveOption: (value: string) => { icon?: React.ReactNode } | undefined,\n): React.ReactNode {\n const single =\n value === undefined || value === null || Array.isArray(value)\n ? Array.isArray(value) && value.length === 1\n ? String(value[0])\n : null\n : String(value);\n const icon = single ? resolveOption(single)?.icon : null;\n if (!icon) return text;\n return (\n <span className=\"flex items-center gap-1.5\">\n {icon}\n {text}\n </span>\n );\n}\n\n/** The glyph between two ancestors in a nested attribute path, a chevron\n * because the `pathSeparator` string read as loud as the names it parts.\n * DECORATIVE: `aria-hidden`, and the plain string is still what\n * `formatFilterPath` joins for the chip's accessible name and `title`. */\nfunction FilterPathSeparator() {\n return (\n <ChevronRightIcon\n aria-hidden=\"true\"\n data-slot=\"filter-path-separator\"\n className=\"mx-[3px] inline-block size-3 shrink-0 self-center align-[calc(0.3635em-0.375rem)] text-muted-foreground\"\n />\n );\n}\n\n/** The elided run of a collapsed path, with the FULL path behind it. THE\n * TOOLTIP IS NOT THE ACCESSIBLE ROUTE: it is hover and focus, so the segment\n * is `aria-hidden` and the whole path stays in the control's NAME. The host's\n * own `title` is dropped while collapsed (`pathCollapsed`) or both fire. */\nfunction FilterPathEllipsis({ full }: { full: string }) {\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n aria-hidden=\"true\"\n data-slot=\"filter-path-ellipsis\"\n /* A path SEGMENT with no air of its own: the chevron's margin\n is all that parts a name from the next, and this used to STACK\n an `mx` on it. Plain inline, no `vertical-align`: `middle` sat\n the dots 1.7px low and inline-block grew the run to 21.17px. */\n className=\"shrink-0 self-center text-muted-foreground\"\n >\n ...\n </span>\n }\n />\n <TooltipContent>{full}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n}\n\n/** Everything a rule needs in order to be READ, in either chrome. */\nexport interface FilterRuleDisplay {\n pathText: string;\n pathLabel: React.ReactNode;\n /** Whether `pathLabel` shows fewer names than the path has, so the cell's\n * own `title` can step aside for the ellipsis segment's tooltip. */\n pathCollapsed: boolean;\n operatorLabel: string;\n valueLabel: React.ReactNode;\n /** The same value as PLAIN TEXT, for an accessible name. Never scraped from\n * the `renderValue` node: whatever text survives inside avatars and a count\n * badge announces \"plus one\" for two people. Kept separate from\n * `valueLabel`, not derived from it: a React node has no honest text to\n * read back. A field whose values do not stringify supplies `valueText`\n * itself, or the built-in fallback says \"[object Object]\" to exactly the\n * audience the visible display is hiding it from. */\n valueText: string;\n /** The same value with any collapsed COUNT spelled out. \"3 selected\" cannot\n * be recovered from, which is fine while the editor opens and not once\n * locked, so the control carries this as `title` and, locked, as its name. */\n valueFullText: string;\n valueEmpty: boolean;\n}\n\n/** How one rule reads, resolved once and shared by both chromes, so a consumer\n * `renderValue`, the field's own and the built-in cannot disagree. */\nexport function useFilterRuleDisplay<V, O>(\n rule: FilterRule<V>,\n field: FilterField<V, O> | undefined,\n operator: FilterOperator | undefined,\n): FilterRuleDisplay {\n const actions = useFilterActions<V, O>();\n const render = useFilterRender<V, O>();\n // Lazily: a label needs no options until an editor actually opens.\n const optionsState = useFilterOptions<V, O>(field, false);\n\n const values =\n rule.value === undefined || rule.value === null\n ? []\n : Array.isArray(rule.value)\n ? (rule.value as unknown[])\n : [rule.value];\n\n // Saved views: values the loader has never returned are resolved through the\n // field's own `resolveValues`, so a restored chip reads \"John Doe\", not an id.\n useFilterValueResolution(field, values);\n\n const pathText = formatFilterPath(actions.index, rule.path, actions.labels.pathSeparator);\n\n const chain = getFilterFieldChain(actions.index, rule.path);\n // The CASCADER's collapser, from the actions context rather than per host, so\n // a deep path reads the same on a chip and in a builder row.\n const segments = collapseFilterPath(chain, {\n maxSegments: actions.maxPathSegments,\n collapse: actions.pathCollapse,\n });\n const pathCollapsed = segments.some((segment) => segment.type === \"ellipsis\");\n const pathLabel = chain.length\n ? segments.map((segment, index) => (\n <React.Fragment\n /* Positional, because a field id is unique among its SIBLINGS only:\n\"Company > Team > Company\" is a legal path and its two ids collide. */\n key={segment.type === \"field\" ? `${index}:${segment.field.id}` : `${index}:ellipsis`}\n >\n {index > 0 ? <FilterPathSeparator /> : null}\n {segment.type === \"field\" ? (\n <span>{segment.field.label}</span>\n ) : (\n <FilterPathEllipsis full={pathText} />\n )}\n </React.Fragment>\n ))\n : pathText;\n\n const operatorLabel = operator\n ? rule.negated\n ? actions.labels.negated(operator.label)\n : operator.label\n : rule.operator || actions.labels.selectCondition;\n\n const valueEmpty =\n rule.value === undefined ||\n rule.value === null ||\n rule.value === (\"\" as unknown as V) ||\n values.length === 0;\n\n if (!field) {\n return {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel: \"\",\n valueText: \"\",\n valueFullText: \"\",\n valueEmpty,\n };\n }\n\n const valueContext = {\n value: rule.value,\n values,\n field,\n operator: operator ?? { value: rule.operator, label: rule.operator },\n // Resolved, not empty: a custom display needs the option behind each value.\n options: values\n .map((entry) => optionsState.resolve(String(entry)))\n .filter(Boolean) as NonNullable<ReturnType<typeof optionsState.resolve>>[],\n labels: actions.labels,\n };\n\n // Computed even when a custom display replaces it: this is the string the\n // accessible name is built from. `field.valueText` overrides it.\n const valueText = field.valueText\n ? field.valueText(valueContext)\n : defaultValueDisplay(\n rule.value,\n operator,\n optionsState.resolve,\n actions.labels,\n field.placeholder,\n // Option-backed by the FIELD, not the operator: `is any of` is\n // multi-value on a plain text field too, and that one is typed into.\n field.type === \"select\" ||\n field.type === \"multiselect\" ||\n Boolean(field.options?.length) ||\n Boolean(field.loadOptions),\n );\n\n const valueLabel = render.renderValue\n ? render.renderValue(valueContext)\n : field.renderValue\n ? field.renderValue(valueContext)\n : valueWithIcon(rule.value, valueText, optionsState.resolve);\n\n // The list behind the count, or the same text again. Multi-value only: a\n // RANGE also stores an array but already spells both ends out (\"10 to 99\").\n const valueFullText =\n field.valueText ||\n !Array.isArray(rule.value) ||\n getFilterArity(operator) === \"range\" ||\n values.length < 2\n ? valueText\n : actions.labels.valueDetail(\n valueText,\n values.map((entry) => optionsState.resolve(String(entry))?.label ?? String(entry)),\n );\n\n return {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel,\n valueText,\n valueFullText,\n valueEmpty,\n };\n}\n\ninterface FilterValueEditorProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n operator: FilterOperator;\n /** Whether the surface holding it is showing. Gates the option service. */\n open: boolean;\n onClose: () => void;\n}\n\n/** The value editor - draft, option service, commit - with NO surface of its\n * own, so surface and wiring can be replaced independently. The draft lives\n * here, so a text filter dispatches once on commit, not once per keystroke. */\nfunction FilterValueEditor<V, O>({\n rule,\n field,\n operator,\n open,\n onClose,\n}: FilterValueEditorProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const [draft, setDraft] = React.useState<V | undefined>(rule.value);\n\n React.useEffect(() => {\n if (open) setDraft(rule.value);\n }, [open, rule.value]);\n\n const options = useFilterOptions<V, O>(field, open);\n // A LOOKUP, not a definition: every result is a module-level built-in or the\n // consumer's own component, so the editor is never remounted mid-edit.\n const editor = React.useMemo(\n () => actions.resolveEditor(field, operator),\n [actions, field, operator],\n );\n\n if (!editor) return null;\n\n const editorProps: FilterEditorProps<V, O> = {\n field,\n operator,\n value: draft,\n onValueChange: (next) => setDraft(next as V),\n host: \"amend\",\n autoFocusProps: {\n ref: noopAutoFocusRef,\n autoFocus: true,\n },\n commit: (next, commitOptions) => {\n actions.updateRule(rule.id, {\n value: (next === undefined ? draft : next) as V,\n });\n // A multi-select commits per toggle and asks to stay put; others dismiss.\n if (commitOptions?.close === false) return;\n onClose();\n },\n cancel: onClose,\n // The same as cancel, honestly: `back` means something only to a `create`\n // host.\n back: onClose,\n options,\n labels: actions.labels,\n };\n\n // `createElement` rather than JSX: the component comes out of a lookup, so\n // `<Editor />` trips `react-hooks/static-components`. The fragment keeps the\n // props object, which carries a ref, from looking like a ref read in render.\n return <>{React.createElement(editor, editorProps)}</>;\n}\n\n/** One step of the flow, released when the panel that owes it has LEFT THE\n * DOM: both popovers keep portal content mounted through the exit transition,\n * so this unmount IS that moment and nothing is timed. `onRelease` is used AS\n * the cleanup, so an unmemoized callback fires its step early. */\nfunction FilterStepHandoff({ onRelease }: { onRelease: () => void }) {\n React.useEffect(() => onRelease, [onRelease]);\n return null;\n}\n\n/** The value host: the editor in a popover anchored to the value segment, and\n * BOTH routes end here. The operator popover used to draw the editor itself,\n * so a handed-off panel sat a segment's width left of a second press. */\nexport interface FilterValuePopoverProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n operator: FilterOperator | undefined;\n /** The element that opens it, WITH its own children: a chip segment must be\n * a direct child of its `ButtonGroup` for the pill to fuse. */\n trigger: React.ReactElement;\n className?: string;\n}\n\nexport function FilterValuePopover<V, O>({\n rule,\n field,\n operator,\n trigger,\n className,\n}: FilterValuePopoverProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const focusStore = useFilterFocusStore();\n const autoOpen = useFilterChipAutoOpen(rule.id) === \"value\";\n const [open, setOpen] = React.useState(false);\n const locked = isFilterLocked(actions);\n\n // The last step of the flow as well as the amend route; by now the condition\n // menu has UNMOUNTED (see `FilterStepHandoff`). CONSUMED as it is honoured,\n // or Escape closes the editor and this effect reopens it in the same frame.\n // The `set` stays OUTSIDE the `locked` guard on purpose: a handoff nobody\n // spends sits armed until some later chip spends it, and a chip that opened\n // because a DIFFERENT chip was arrowed onto is worse than one that opened\n // nothing.\n React.useEffect(() => {\n if (!autoOpen || open) return;\n if (!locked) setOpen(true);\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: false });\n }, [autoOpen, open, focusStore, rule.id, locked]);\n\n // Nothing to open, but the trigger still renders so the value keeps its\n // place, and it wears the bar's state: that hangs on the TRIGGER below,\n // which this path never reaches, so the segment used to look live.\n if (!operator || !actions.resolveEditor(field, operator)) {\n return React.cloneElement(trigger as React.ReactElement<Record<string, unknown>>, {\n disabled: actions.disabled,\n ...filterReadOnlyProps(actions),\n });\n }\n\n return (\n // REFUSES to open while locked rather than leaving it to the trigger: an\n // `aria-disabled` control that still opens an editor is one that lied.\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (next && locked) return;\n setOpen(next);\n }}\n >\n {/* The trigger IS the segment, never a wrapper. `ButtonGroup` fuses\n DIRECT children only (`*:data-slot:rounded-r-none`,\n `[&>[data-slot]~[data-slot]]:border-l-0`), so a nested one keeps its\n own border and the chip reads as separate badges. */}\n <PopoverTrigger\n render={trigger}\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n />\n <PopoverContent align=\"start\" className={cn(\"w-auto p-0\", className)}>\n <FilterValueEditor<V, O>\n rule={rule}\n field={field}\n operator={operator}\n open={open}\n onClose={() => {\n setOpen(false);\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: false });\n }}\n />\n </PopoverContent>\n </Popover>\n );\n}\n\n/* A chip's ATTRIBUTE is fixed once the chip exists: no field popover here. A\n new field invalidates the operator and the value, so \"amending\" threw both\n away. The builder keeps its picker, where a row reads as a form. */\n\n/** The condition menu, and the step after it. The list is the cascader run\n * flat: the old hand-rolled one marked the keyboard HIGHLIGHT with\n * `aria-selected` and had no Home, End or typeahead. It HANDS OFF to the\n * value popover once its own panel has left the DOM; advancing in place\n * anchored the editor to the CONDITION segment and doubled up in the row. */\nexport interface FilterOperatorPopoverProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n trigger: React.ReactElement;\n className?: string;\n}\n\nexport function FilterOperatorPopover<V, O>({\n rule,\n field,\n trigger,\n className,\n}: FilterOperatorPopoverProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const focusStore = useFilterFocusStore();\n const autoOpen = useFilterChipAutoOpen(rule.id) === \"operator\";\n const [open, setOpen] = React.useState(false);\n const locked = isFilterLocked(actions);\n /** Whether the close this panel is going through IS the step being handed\n * on. A ref, so it survives the render that closes the popover. Every OPEN\n * clears it, so an Escape or an outside press finds it already lowered and\n * spends nothing; `release` leaves it standing because one twin asks again\n * later: Radix reads it from `onCloseAutoFocus`, a macrotask after the\n * unmount. Clearing it in `release` would break that twin only. */\n const handoff = React.useRef(false);\n const operators = actions.resolveOperators(field);\n\n // Memoized because the array IS the menu's identity: the cascader rebuilds\n // its index per `items` identity, so a fresh array rebuilds it per keystroke.\n const items = React.useMemo(\n () =>\n visibleFilterOperators(operators).map((entry) => ({\n value: entry.value,\n label: entry.label,\n })),\n [operators],\n );\n\n // Opened by the root the moment the chip is created. CONSUMED here, or the\n // handoff re-opens the menu on the frame Escape closes it. Consumed even\n // while locked, for the reason on the value popover's copy.\n React.useEffect(() => {\n if (!autoOpen || open) return;\n handoff.current = false;\n if (!locked) setOpen(true);\n focusStore.set({ id: rule.id, segment: \"operator\", autoOpen: false });\n }, [autoOpen, open, focusStore, rule.id, locked]);\n\n const close = () => {\n handoff.current = false;\n setOpen(false);\n focusStore.set({ id: rule.id, segment: \"operator\", autoOpen: false });\n };\n\n /** The parked step, spent on the frame this panel stops existing. Memoized\n * on nothing that changes, and load bearing: `FilterStepHandoff` uses this\n * AS its cleanup, so a new identity mid-flow fires the step too early. */\n const release = React.useCallback(() => {\n if (!handoff.current) return;\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: true });\n }, [focusStore, rule.id]);\n\n // The chip going away takes its step with it: React destroys a deleted\n // subtree top down, so this runs before the panel's own cleanup.\n React.useEffect(\n () => () => {\n handoff.current = false;\n },\n [],\n );\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (next && locked) return;\n /* Escape, an outside press, a second press: none is the step being\n taken, so none may spend it. RETIRED ON OPEN, not on close, and that\n is a twin difference: in Radix an item choice dismisses through here\n too, so retiring on close wiped the request before the unmount. */\n if (next) handoff.current = false;\n setOpen(next);\n }}\n >\n <PopoverTrigger\n render={trigger}\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n />\n <PopoverContent\n align=\"start\"\n /* Base UI restores focus to the trigger as this panel closes, which\n lands on the condition segment AFTER the value editor has opened and\n focused its input, so a keyboard user is dropped back a step and\n cannot reach the value at all. Suppressed only while the handoff is\n up; a function because Base UI resolves it at close time, which is\n when the ref is accurate. Radix runs the same guard through\n `onCloseAutoFocus`. */\n finalFocus={() => !handoff.current}\n /* `w-auto` with a FLOOR: a catalog sizes to its longest label, and a\n boolean field's \"is\" and \"is not\" would read as a scrap of paper. */\n className={cn(\"w-auto min-w-40 p-0\", className)}\n >\n {/* INSIDE the panel deliberately: only a child of the content is\n unmounted by the exit transition rather than by the close. */}\n <FilterStepHandoff onRelease={release} />\n <FilterMenu\n items={items}\n selected={rule.operator ? [rule.operator] : []}\n onSelectionChange={(values) => {\n const value = values[0];\n /* Deselecting the committed operator is a step back rather than a\n choice, so pressing the current row simply closes. */\n if (value === undefined) {\n close();\n return;\n }\n const chosen = getFilterOperator(operators, value);\n /* BUILDING versus AMENDING, the same fork the advanced row draws\n at its field step. A rule reaches this menu with no operator\n exactly once, while it is being added, and only then is the\n value the step after this one. Re-picking the condition on a\n rule that already has one is an edit of that one cell: it\n commits and closes, and the user opens the value themselves. */\n const building = !rule.operator;\n actions.updateRule(rule.id, {\n operator: value,\n /* The value moves with the operator: \"is\" to \"is any of\" would\n leave a bare string where every reader expects an array. */\n value: coerceFilterValue(\n rule.value,\n getFilterOperator(operators, rule.operator),\n chosen,\n ) as V,\n });\n if (building && operatorTakesValue(chosen)) {\n /* PARKED, not opened: `release` hands the row to its value\n surface once this panel has unmounted. */\n handoff.current = true;\n setOpen(false);\n return;\n }\n close();\n }}\n labels={actions.labels}\n ariaLabel={field.label}\n searchPlaceholder={actions.labels.searchOperators}\n /* No visible search field: a CLOSED enum of six to ten labels, all\n on screen. Still RENDERED, visually hidden, because it owns focus\n and `aria-activedescendant`: arrows, Home, End and typeahead. */\n searchable={false}\n /* Taller than a value list on purpose: the operator set is CLOSED, so\n all of it fits and the height buys the whole catalog. A value list\n is open ended and would only push its own footer off the screen. */\n maxHeight={320}\n /* Deliberately unpinned: one selected operator in a short list, so\nlifting it would lose the catalog's declared reading order. */\n />\n </PopoverContent>\n </Popover>\n );\n}\n\n/** The keyboard path to a CROSS-GROUP move: Alt+Arrow reorders within the\n * owning group only and Wrap creates a NEW group, so the drag layer's\n * cross-group move had no keyboard parity. Numbered in document order. */\nexport function FilterMoveToMenuItems({ nodeId }: { nodeId: string }) {\n const actions = useFilterActions();\n // A menu ITEM takes the native word: both twins already make `disabled`\n // roving-focusable and `aria-disabled`.\n const reorderable = useFilterReorderable();\n const locked = isFilterLocked(actions);\n // Read at render time: the menu's content mounts when the menu opens, so\n // this is the tree the user is looking at.\n const query = actions.getQuery();\n const found = findFilterNode(query, nodeId);\n if (!found?.parent) return null;\n\n const destinations: { id: string; label: string; size: number }[] = [];\n if (found.parent.id !== query.id) {\n destinations.push({\n id: query.id,\n label: actions.labels.moveToTopLevel,\n size: query.rules.length,\n });\n }\n\n let position = 0;\n // `inside` suppresses the PUSH and not the walk, so the numbering stays\n // document order rather than renumbering every group after this one. Counted\n // before the exclusions for the same reason: the current parent is not\n // offered but still holds its number, so the numbering is stable whichever\n // row's menu is open.\n const visit = (group: FilterGroupNode<unknown>, inside: boolean) => {\n for (const child of group.rules) {\n if (!isFilterGroup(child)) continue;\n position += 1;\n // Itself and everything under it: `moveFilterNodeTo` already refuses that\n // move - it would detach the subtree and leave a cycle - so offering it\n // would be a menu row that quietly does nothing.\n const within = inside || child.id === nodeId;\n if (!within && child.id !== found.parent!.id) {\n destinations.push({\n id: child.id,\n label: actions.labels.moveToGroup(position),\n size: child.rules.length,\n });\n }\n visit(child, within);\n }\n };\n visit(query, false);\n\n if (destinations.length === 0) return null;\n\n // The THIRD route into a move, gated on the same switch as the grip and\n // Alt+Arrow: ungated, a builder that draws no handle still reordered here.\n if (!reorderable) return null;\n\n return (\n <>\n {destinations.map((destination) => (\n <DropdownMenuItem\n key={destination.id}\n disabled={locked}\n onClick={() => actions.moveNodeTo(nodeId, destination.id, destination.size)}\n >\n {/* A bend into the destination: movement, not duplication or nesting. */}\n <CornerDownRightIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{destination.label}</span>\n </DropdownMenuItem>\n ))}\n </>\n );\n}\n\n/** The per-rule actions, without the trigger: the chip's kebab and a builder\n * row's kebab act on the same rule. `allowGrouping` is the CHROME's answer;\n * \"Convert to advanced filter\" is the CONSUMER's, and hides itself there. */\nexport function FilterRuleMenuItems({\n ruleId,\n /** Offer \"Wrap in condition group\". Off for the chip row, which cannot draw\n * a group; on in the builder, the only way to nest without dragging. */\n allowGrouping = false,\n}: {\n ruleId: string;\n allowGrouping?: boolean;\n}) {\n const actions = useFilterActions();\n // Gated here as well as at the trigger, because this is EXPORTED: a consumer\n // composing their own menu gets rows that say they are unavailable.\n const locked = isFilterLocked(actions);\n return (\n /* Every row leads with an icon. `IconPlaceholder` because the source ships\n under five icon sets; no size class, because each style already sizes an\n unsized svg in a menu row; `aria-hidden`, the label IS the name. */\n <>\n <DropdownMenuItem disabled={locked} onClick={() => actions.duplicateNode(ruleId)}>\n <CopyIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.duplicate}</span>\n </DropdownMenuItem>\n <DropdownMenuItem disabled={locked} onClick={() => actions.negateRule(ruleId)}>\n {/* Two arrows swapping: negation flips to the declared inverse. */}\n <ArrowLeftRightIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.negate}</span>\n </DropdownMenuItem>\n {allowGrouping ? (\n <DropdownMenuItem disabled={locked} onClick={() => actions.wrapNodeInGroup(ruleId)}>\n {/* Layers: braces read as grouping in only three of the five sets. */}\n <LayersIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.wrapInGroup}</span>\n </DropdownMenuItem>\n ) : null}\n {allowGrouping ? <FilterMoveToMenuItems nodeId={ruleId} /> : null}\n {/* OPTIONAL, and gated on both halves of \"would this do anything\": the\n handler is the consumer's opt-in, and an already-advanced bar has\n nothing to convert. NOT gated on `locked`: it changes no query, is\n handed no mutator, and the shipped kebab will not open while locked. */}\n {actions.convertToAdvanced && actions.variant !== \"advanced\" ? (\n <DropdownMenuItem onClick={() => actions.convertToAdvanced?.()}>\n {/* Sliders: the one \"advanced settings\" glyph in all five sets. */}\n <SlidersHorizontalIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.convertToAdvanced}</span>\n </DropdownMenuItem>\n ) : null}\n <DropdownMenuItem\n variant=\"destructive\"\n disabled={locked}\n onClick={() => actions.removeNode(ruleId)}\n >\n {/* No colour: the destructive variant already paints the row's svgs. */}\n <Trash2Icon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.remove}</span>\n </DropdownMenuItem>\n </>\n );\n}\n\nexport interface FilterChipProps<V = unknown> {\n rule: FilterRule<V>;\n index: number;\n}\n\n/** One filter, as a chip. Memoization means something here: the actions\n * context is stable, the focus store is subscribed to a boolean and the query\n * shares structure, so editing one filter of forty re-renders one chip. */\nfunction FilterChipImpl<V, O>({ rule, index }: FilterChipProps<V>) {\n const actions = useFilterActions<V, O>();\n const render = useFilterRender<V, O>();\n const focusStore = useFilterFocusStore();\n const focused = useFilterChipFocused(rule.id);\n const noFocus = useFilterFocusEmpty();\n const locked = isFilterLocked(actions);\n // THE CHIP'S HEIGHT, by way of the one button in it that has one:\n // `ButtonGroup` is `items-stretch` and no style gives a text segment a\n // height, so the kebab's rung is the pill's. The RADIUS survives because\n // every style whose `icon-sm` rounds differently re-pins it in a group.\n const sizes = filterControlSizes(actions);\n // The kebab is CONTROLLED so it can refuse to open: every mutating row\n // behind it is gated. That puts \"Convert to advanced filter\" out of reach\n // while locked; a consumer-composed menu still draws it.\n const [menuOpen, setMenuOpen] = React.useState(false);\n // Exactly one chip is in the tab order at a time. Before anything has been\n // focused that is the first chip, so Tab reaches the row in one press.\n const isTabStop = focused || (noFocus && index === 0);\n\n const field = getFilterField(actions.index, rule.path);\n const operators = field ? actions.resolveOperators(field) : [];\n const operator = getFilterOperator(operators, rule.operator);\n\n const {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel,\n valueText,\n valueFullText,\n valueEmpty,\n } = useFilterRuleDisplay<V, O>(rule, field, operator);\n\n if (!field) {\n // A rule pointing at a field the schema no longer has. Dropping it loses a\n // saved view's data; rendering nothing leaves an invisible condition still\n // filtering. It carries the SAME roving wiring as a real chip: `data-slot`\n // alone joined the arrow-key query with no `tabIndex` to land on.\n return (\n <ButtonGroup\n data-slot=\"filter-chip\"\n data-unknown=\"\"\n role=\"group\"\n aria-label={actions.labels.filterLabel(rule.path.join(actions.labels.pathSeparator))}\n data-focused={focused || undefined}\n data-rule-id={rule.id}\n data-index={index}\n tabIndex={isTabStop ? 0 : -1}\n onFocusCapture={() => {\n if (!focused) focusStore.set({ id: rule.id, segment: null, autoOpen: false });\n }}\n >\n <ButtonGroupText className=\"bg-background text-muted-foreground dark:bg-input/30\">\n {rule.path.join(actions.labels.pathSeparator)}\n </ButtonGroupText>\n <Button\n variant=\"outline\"\n size={sizes.icon}\n className=\"bg-background dark:bg-input/30\"\n aria-label={actions.labels.remove}\n /* It had no gate at all, so the one chip whose whole purpose is to be\n removed could be removed from a bar that refuses every other edit. */\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n onClick={() => actions.removeNode(rule.id)}\n >\n <XIcon />\n </Button>\n </ButtonGroup>\n );\n }\n\n if (render.renderChip) return <>{render.renderChip(rule)}</>;\n\n const focusSegment = (segment: ChipSegment) =>\n focusStore.set({ id: rule.id, segment, autoOpen: false });\n\n // A rule with no condition yet, KEPT rather than removed (see\n // `isFilterRuleComplete`), so it has to read as unfinished. Through WORDS:\n // the dashed outline it replaces degraded to an underline under sera.\n const incomplete = !rule.operator;\n\n // The same test the value segment renders under, so the name matches the\n // chip: `valueText` alone appended a placeholder to valueless conditions.\n const hasValue = Boolean(rule.operator) && operatorTakesValue(operator);\n\n // The value's spoken form in the chip's NAME: a name is not a prompt, so\n // \"Description contains enter text...\" becomes \"no value\".\n const valueName = valueEmpty && !field.valueText ? actions.labels.noValue : valueText;\n\n return (\n <ButtonGroup\n data-slot=\"filter-chip\"\n role=\"group\"\n aria-label={actions.labels.filterLabel(\n `${pathText} ${operatorLabel}${hasValue ? ` ${valueName}` : \"\"}`.trim() +\n (incomplete ? `, ${actions.labels.incomplete}` : \"\"),\n )}\n data-focused={focused || undefined}\n data-incomplete={incomplete || undefined}\n data-rule-id={rule.id}\n tabIndex={isTabStop ? 0 : -1}\n className={cn(\n /* Sera is an underline style, so the boxed segments are normalised to\n its bottom-border-only look or the chip reads as a mix of both. */\n \"\",\n )}\n onFocusCapture={() => {\n if (!focused) focusStore.set({ id: rule.id, segment: null, autoOpen: false });\n }}\n data-index={index}\n >\n {/* DISPLAY ONLY: a div, not a button, not a tab stop, no popover. The\n attribute is fixed for the life of the chip. */}\n <ButtonGroupText\n /* Dropped while the path is collapsed: the ellipsis inside carries the\n same sentence as a tooltip, and the two would stack. */\n title={pathCollapsed ? undefined : pathText}\n className=\"cursor-default gap-1.5 bg-background dark:bg-input/30\"\n >\n {field.icon}\n {/* Zero gap INSIDE the path, so the separator's own margin is the only\n air around a chevron; `gap-1.5` used to stack 6px a side on it. */}\n <span className=\"flex items-center\">{pathLabel}</span>\n </ButtonGroupText>\n\n <FilterOperatorPopover\n rule={rule}\n field={field}\n trigger={\n <ButtonGroupText\n render={<button type=\"button\" />}\n className={cn(\n \"cursor-default bg-background hover:bg-accent dark:bg-input/30\",\n /* The operator is connective tissue between the field and the\n value, so it reads quieter than either - unless it is still\n the prompt \"Select condition\", the one thing to act on. */\n incomplete ? \"text-foreground\" : \"text-muted-foreground\",\n )}\n onPointerDown={() => focusSegment(\"operator\")}\n >\n {operatorLabel}\n </ButtonGroupText>\n }\n />\n\n {/* No condition, no value: `getFilterArity(undefined)` defaults to \"one\",\n so testing the operator alone renders a stray value segment. */}\n {hasValue ? (\n <FilterValuePopover\n rule={rule}\n field={field}\n operator={operator}\n trigger={\n <ButtonGroupText\n render={<button type=\"button\" />}\n /* Named explicitly rather than by its contents: avatars or a\n \"+2\" badge, and \"plus two\" says nothing about two people. It\n grows to the whole list when the editor cannot be opened,\n since locked it must carry what a press no longer reveals. */\n aria-label={locked ? valueFullText : valueText}\n /* The pointer's route to the same thing, and only when there is\n more to say than the segment already says. */\n title={valueFullText === valueText ? undefined : valueFullText}\n className={cn(\n \"cursor-default bg-background hover:bg-accent dark:bg-input/30\",\n valueEmpty && \"text-muted-foreground\",\n )}\n onPointerDown={() => focusSegment(\"value\")}\n >\n {valueLabel}\n </ButtonGroupText>\n }\n />\n ) : null}\n\n <DropdownMenu\n open={menuOpen}\n onOpenChange={(next) => {\n if (next && locked) return;\n setMenuOpen(next);\n }}\n >\n <DropdownMenuTrigger\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n render={\n <Button\n variant=\"outline\"\n size={sizes.icon}\n /* The same surface the three text segments force. Styles whose\n outline button is transparent in dark (sera, luma, rhea) left\n the kebab as a notch in an otherwise filled pill. */\n className=\"bg-background dark:bg-input/30\"\n aria-label={actions.labels.chipMenu(field.label)}\n onPointerDown={() => focusSegment(\"menu\")}\n />\n }\n >\n <EllipsisVerticalIcon />\n </DropdownMenuTrigger>\n {/* The SAME sizing the builder's menus use, from one constant: a menu\n that cuts \"Convert to group\" in one chrome is one defect twice. */}\n <DropdownMenuContent align=\"end\" className={cn(FILTER_MENU_CLASS, actions.menuClassName)}>\n <FilterRuleMenuItems ruleId={rule.id} />\n </DropdownMenuContent>\n </DropdownMenu>\n </ButtonGroup>\n );\n}\n\nexport const FilterChip = React.memo(FilterChipImpl) as typeof FilterChipImpl;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqEA,MAAM,yBAAyD,CAAC;AAEhE,SAAS,oBACP,OACA,UACA,eACA,QAEA,kBAGA,cACQ;CACR,MAAM,aAAa,eACf,OAAO,oBACN,oBAAoB,OAAO;CAChC,IAAI,UAAU,KAAA,KAAa,UAAU,QAAQ,UAAU,IACrD,OAAO;CAGT,IAAI,eAAe,QAAQ,MAAM,WAAW,MAAM,QAAQ,KAAK,GAAG;EAChE,MAAM,CAAC,MAAM,MAAM;EACnB,OAAO,OAAO,WAAW,OAAO,QAAQ,EAAE,GAAG,OAAO,MAAM,EAAE,CAAC;CAC/D;CAEA,IAAI,MAAM,QAAQ,KAAK,GAAG;EACxB,MAAM,SAAS;EACf,IAAI,OAAO,WAAW,GAAG,OAAO;EAChC,IAAI,OAAO,WAAW,GACpB,OAAO,cAAc,OAAO,EAAE,CAAC,EAAE,SAAS,OAAO,OAAO,EAAE;EAE5D,OAAO,OAAO,WAAW,OAAO,MAAM;CACxC;CAEA,IAAI,OAAO,UAAU,WAAW,OAAO,QAAQ,SAAS;CAExD,OAAO,cAAc,OAAO,KAAK,CAAC,CAAC,EAAE,SAAS,OAAO,KAAK;AAC5D;;;;AAKA,SAAS,cACP,OACA,MACA,eACiB;CACjB,MAAM,SACJ,UAAU,KAAA,KAAa,UAAU,QAAQ,MAAM,QAAQ,KAAK,IACxD,MAAM,QAAQ,KAAK,KAAK,MAAM,WAAW,IACvC,OAAO,MAAM,EAAE,IACf,OACF,OAAO,KAAK;C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,CACT;;EACH;;AAEjB;AAEA,MAAa,aAAaA,QAAM,KAAK,cAAc"}
1
+ {"version":3,"file":"filters-chip.js","names":["React"],"sources":["../../../../src/components/reui/filters/filters-chip.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"cn\";\nimport {\n ArrowLeftRightIcon,\n ChevronRightIcon,\n CopyIcon,\n CornerDownRightIcon,\n EllipsisVerticalIcon,\n LayersIcon,\n SlidersHorizontalIcon,\n Trash2Icon,\n XIcon,\n} from \"lucide-react\";\n\nimport { Button } from \"../../ui/button\";\nimport { ButtonGroup, ButtonGroupText } from \"../../ui/button-group\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from \"../../ui/dropdown-menu\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../../ui/popover\";\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from \"../../ui/tooltip\";\nimport {\n filterControlSizes,\n filterReadOnlyProps,\n isFilterLocked,\n useFilterActions,\n useFilterChipAutoOpen,\n useFilterChipFocused,\n useFilterFocusEmpty,\n useFilterFocusStore,\n useFilterRender,\n useFilterReorderable,\n} from \"./filters-context\";\nimport { FilterMenu, useFilterOptions, useFilterValueResolution } from \"./filters-editors\";\nimport {\n collapseFilterPath,\n FILTER_MENU_CLASS,\n FILTER_MENU_LABEL_CLASS,\n formatFilterPath,\n getFilterField,\n getFilterFieldChain,\n} from \"./filters-lib\";\nimport {\n coerceFilterValue,\n getFilterArity,\n getFilterOperator,\n operatorTakesValue,\n visibleFilterOperators,\n} from \"./filters-operators\";\nimport { findFilterNode, isFilterGroup } from \"./filters-query\";\nimport type {\n FilterEditorProps,\n FilterField,\n FilterGroupNode,\n FilterOperator,\n FilterRule,\n} from \"./filters-types\";\n\n/** Which part of the chip a pointer or key is aimed at. No `field`: the chip's\n * attribute segment is display only, and only the builder re-picks one. */\ntype ChipSegment = \"operator\" | \"value\" | \"menu\";\n\n/** The ref half of `autoFocusProps`: a CALLBACK ref, the one shape an editor\n * can spread onto any element without a cast, and a no-op here. */\nconst noopAutoFocusRef: React.RefCallback<HTMLElement> = () => {};\n\nfunction defaultValueDisplay<V>(\n value: V | undefined,\n operator: FilterOperator | undefined,\n resolveOption: (value: string) => { label: string } | undefined,\n labels: ReturnType<typeof useFilterActions>[\"labels\"],\n // The field's own word for \"no value yet\", which a generic label cannot beat.\n fieldPlaceholder?: string,\n /** Whether the value is PICKED rather than typed: a select's search prompt\n * and \"enter text...\" both give way to `labels.selectPlaceholder`. */\n optionBacked?: boolean,\n): string {\n const emptyLabel = optionBacked\n ? labels.selectPlaceholder\n : (fieldPlaceholder ?? labels.valuePlaceholder);\n if (value === undefined || value === null || value === \"\") {\n return emptyLabel;\n }\n\n if (getFilterArity(operator) === \"range\" && Array.isArray(value)) {\n const [from, to] = value as unknown[];\n return labels.valueRange(String(from ?? \"\"), String(to ?? \"\"));\n }\n\n if (Array.isArray(value)) {\n const values = value as string[];\n if (values.length === 0) return emptyLabel;\n if (values.length === 1) {\n return resolveOption(values[0])?.label ?? String(values[0]);\n }\n return labels.valueCount(values.length);\n }\n\n if (typeof value === \"boolean\") return value ? \"True\" : \"False\";\n\n return resolveOption(String(value))?.label ?? String(value);\n}\n\n/** The same display with the option's own icon in front. A status filter reads\n * as its colour before its word, so dropping the swatch the picker showed\n * makes the chip harder to scan than the list it came from. */\nfunction valueWithIcon<V>(\n value: V | undefined,\n text: string,\n resolveOption: (value: string) => { icon?: React.ReactNode } | undefined,\n): React.ReactNode {\n const single =\n value === undefined || value === null || Array.isArray(value)\n ? Array.isArray(value) && value.length === 1\n ? String(value[0])\n : null\n : String(value);\n const icon = single ? resolveOption(single)?.icon : null;\n if (!icon) return text;\n return (\n <span className=\"flex items-center gap-1.5\">\n {icon}\n {text}\n </span>\n );\n}\n\n/** The glyph between two ancestors in a nested attribute path, a chevron\n * because the `pathSeparator` string read as loud as the names it parts.\n * DECORATIVE: `aria-hidden`, and the plain string is still what\n * `formatFilterPath` joins for the chip's accessible name and `title`. */\nfunction FilterPathSeparator() {\n return (\n <ChevronRightIcon\n aria-hidden=\"true\"\n data-slot=\"filter-path-separator\"\n className=\"mx-[3px] inline-block size-3 shrink-0 self-center align-[calc(0.3635em-0.375rem)] text-muted-foreground\"\n />\n );\n}\n\n/** The elided run of a collapsed path, with the FULL path behind it. THE\n * TOOLTIP IS NOT THE ACCESSIBLE ROUTE: it is hover and focus, so the segment\n * is `aria-hidden` and the whole path stays in the control's NAME. The host's\n * own `title` is dropped while collapsed (`pathCollapsed`) or both fire. */\nfunction FilterPathEllipsis({ full }: { full: string }) {\n return (\n <TooltipProvider>\n <Tooltip>\n <TooltipTrigger\n render={\n <span\n aria-hidden=\"true\"\n data-slot=\"filter-path-ellipsis\"\n /* A path SEGMENT with no air of its own: the chevron's margin\n is all that parts a name from the next, and this used to STACK\n an `mx` on it. Plain inline, no `vertical-align`: `middle` sat\n the dots 1.7px low and inline-block grew the run to 21.17px. */\n className=\"shrink-0 self-center text-muted-foreground\"\n >\n ...\n </span>\n }\n />\n <TooltipContent>{full}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n}\n\n/** Everything a rule needs in order to be READ, in either chrome. */\nexport interface FilterRuleDisplay {\n pathText: string;\n pathLabel: React.ReactNode;\n /** Whether `pathLabel` shows fewer names than the path has, so the cell's\n * own `title` can step aside for the ellipsis segment's tooltip. */\n pathCollapsed: boolean;\n operatorLabel: string;\n valueLabel: React.ReactNode;\n /** The same value as PLAIN TEXT, for an accessible name. Never scraped from\n * the `renderValue` node: whatever text survives inside avatars and a count\n * badge announces \"plus one\" for two people. Kept separate from\n * `valueLabel`, not derived from it: a React node has no honest text to\n * read back. A field whose values do not stringify supplies `valueText`\n * itself, or the built-in fallback says \"[object Object]\" to exactly the\n * audience the visible display is hiding it from. */\n valueText: string;\n /** The same value with any collapsed COUNT spelled out. \"3 selected\" cannot\n * be recovered from, which is fine while the editor opens and not once\n * locked, so the control carries this as `title` and, locked, as its name. */\n valueFullText: string;\n valueEmpty: boolean;\n}\n\n/** How one rule reads, resolved once and shared by both chromes, so a consumer\n * `renderValue`, the field's own and the built-in cannot disagree. */\nexport function useFilterRuleDisplay<V, O>(\n rule: FilterRule<V>,\n field: FilterField<V, O> | undefined,\n operator: FilterOperator | undefined,\n): FilterRuleDisplay {\n const actions = useFilterActions<V, O>();\n const render = useFilterRender<V, O>();\n // Lazily: a label needs no options until an editor actually opens.\n const optionsState = useFilterOptions<V, O>(field, false);\n\n const values =\n rule.value === undefined || rule.value === null\n ? []\n : Array.isArray(rule.value)\n ? (rule.value as unknown[])\n : [rule.value];\n\n // Saved views: values the loader has never returned are resolved through the\n // field's own `resolveValues`, so a restored chip reads \"John Doe\", not an id.\n useFilterValueResolution(field, values);\n\n const pathText = formatFilterPath(actions.index, rule.path, actions.labels.pathSeparator);\n\n const chain = getFilterFieldChain(actions.index, rule.path);\n // The CASCADER's collapser, from the actions context rather than per host, so\n // a deep path reads the same on a chip and in a builder row.\n const segments = collapseFilterPath(chain, {\n maxSegments: actions.maxPathSegments,\n collapse: actions.pathCollapse,\n });\n const pathCollapsed = segments.some((segment) => segment.type === \"ellipsis\");\n const pathLabel = chain.length\n ? segments.map((segment, index) => (\n <React.Fragment\n /* Positional, because a field id is unique among its SIBLINGS only:\n\"Company > Team > Company\" is a legal path and its two ids collide. */\n key={segment.type === \"field\" ? `${index}:${segment.field.id}` : `${index}:ellipsis`}\n >\n {index > 0 ? <FilterPathSeparator /> : null}\n {segment.type === \"field\" ? (\n <span>{segment.field.label}</span>\n ) : (\n <FilterPathEllipsis full={pathText} />\n )}\n </React.Fragment>\n ))\n : pathText;\n\n const operatorLabel = operator\n ? rule.negated\n ? actions.labels.negated(operator.label)\n : operator.label\n : rule.operator || actions.labels.selectCondition;\n\n const valueEmpty =\n rule.value === undefined ||\n rule.value === null ||\n rule.value === (\"\" as unknown as V) ||\n values.length === 0;\n\n if (!field) {\n return {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel: \"\",\n valueText: \"\",\n valueFullText: \"\",\n valueEmpty,\n };\n }\n\n const valueContext = {\n value: rule.value,\n values,\n field,\n operator: operator ?? { value: rule.operator, label: rule.operator },\n // Resolved, not empty: a custom display needs the option behind each value.\n options: values\n .map((entry) => optionsState.resolve(String(entry)))\n .filter(Boolean) as NonNullable<ReturnType<typeof optionsState.resolve>>[],\n labels: actions.labels,\n };\n\n // Computed even when a custom display replaces it: this is the string the\n // accessible name is built from. `field.valueText` overrides it.\n const valueText = field.valueText\n ? field.valueText(valueContext)\n : defaultValueDisplay(\n rule.value,\n operator,\n optionsState.resolve,\n actions.labels,\n field.placeholder,\n // Option-backed by the FIELD, not the operator: `is any of` is\n // multi-value on a plain text field too, and that one is typed into.\n field.type === \"select\" ||\n field.type === \"multiselect\" ||\n Boolean(field.options?.length) ||\n Boolean(field.loadOptions),\n );\n\n const valueLabel = render.renderValue\n ? render.renderValue(valueContext)\n : field.renderValue\n ? field.renderValue(valueContext)\n : valueWithIcon(rule.value, valueText, optionsState.resolve);\n\n // The list behind the count, or the same text again. Multi-value only: a\n // RANGE also stores an array but already spells both ends out (\"10 to 99\").\n const valueFullText =\n field.valueText ||\n !Array.isArray(rule.value) ||\n getFilterArity(operator) === \"range\" ||\n values.length < 2\n ? valueText\n : actions.labels.valueDetail(\n valueText,\n values.map((entry) => optionsState.resolve(String(entry))?.label ?? String(entry)),\n );\n\n return {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel,\n valueText,\n valueFullText,\n valueEmpty,\n };\n}\n\ninterface FilterValueEditorProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n operator: FilterOperator;\n /** Whether the surface holding it is showing. Gates the option service. */\n open: boolean;\n onClose: () => void;\n}\n\n/** The value editor - draft, option service, commit - with NO surface of its\n * own, so surface and wiring can be replaced independently. The draft lives\n * here, so a text filter dispatches once on commit, not once per keystroke. */\nfunction FilterValueEditor<V, O>({\n rule,\n field,\n operator,\n open,\n onClose,\n}: FilterValueEditorProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const [draft, setDraft] = React.useState<V | undefined>(rule.value);\n\n React.useEffect(() => {\n if (open) setDraft(rule.value);\n }, [open, rule.value]);\n\n const options = useFilterOptions<V, O>(field, open);\n // A LOOKUP, not a definition: every result is a module-level built-in or the\n // consumer's own component, so the editor is never remounted mid-edit.\n const editor = React.useMemo(\n () => actions.resolveEditor(field, operator),\n [actions, field, operator],\n );\n\n if (!editor) return null;\n\n const editorProps: FilterEditorProps<V, O> = {\n field,\n operator,\n value: draft,\n onValueChange: (next) => setDraft(next as V),\n host: \"amend\",\n autoFocusProps: {\n ref: noopAutoFocusRef,\n autoFocus: true,\n },\n commit: (next, commitOptions) => {\n actions.updateRule(rule.id, {\n value: (next === undefined ? draft : next) as V,\n });\n // A multi-select commits per toggle and asks to stay put; others dismiss.\n if (commitOptions?.close === false) return;\n onClose();\n },\n cancel: onClose,\n // The same as cancel, honestly: `back` means something only to a `create`\n // host.\n back: onClose,\n options,\n labels: actions.labels,\n };\n\n // `createElement` rather than JSX: the component comes out of a lookup, so\n // `<Editor />` trips `react-hooks/static-components`. The fragment keeps the\n // props object, which carries a ref, from looking like a ref read in render.\n return <>{React.createElement(editor, editorProps)}</>;\n}\n\n/** One step of the flow, released when the panel that owes it has LEFT THE\n * DOM: both popovers keep portal content mounted through the exit transition,\n * so this unmount IS that moment and nothing is timed. `onRelease` is used AS\n * the cleanup, so an unmemoized callback fires its step early. */\nfunction FilterStepHandoff({ onRelease }: { onRelease: () => void }) {\n React.useEffect(() => onRelease, [onRelease]);\n return null;\n}\n\n/** The value host: the editor in a popover anchored to the value segment, and\n * BOTH routes end here. The operator popover used to draw the editor itself,\n * so a handed-off panel sat a segment's width left of a second press. */\nexport interface FilterValuePopoverProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n operator: FilterOperator | undefined;\n /** The element that opens it, WITH its own children: a chip segment must be\n * a direct child of its `ButtonGroup` for the pill to fuse. */\n trigger: React.ReactElement;\n className?: string;\n}\n\nexport function FilterValuePopover<V, O>({\n rule,\n field,\n operator,\n trigger,\n className,\n}: FilterValuePopoverProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const focusStore = useFilterFocusStore();\n const autoOpen = useFilterChipAutoOpen(rule.id) === \"value\";\n const [open, setOpen] = React.useState(false);\n const locked = isFilterLocked(actions);\n\n // The last step of the flow as well as the amend route; by now the condition\n // menu has UNMOUNTED (see `FilterStepHandoff`). CONSUMED as it is honoured,\n // or Escape closes the editor and this effect reopens it in the same frame.\n // The `set` stays OUTSIDE the `locked` guard on purpose: a handoff nobody\n // spends sits armed until some later chip spends it, and a chip that opened\n // because a DIFFERENT chip was arrowed onto is worse than one that opened\n // nothing.\n React.useEffect(() => {\n if (!autoOpen || open) return;\n if (!locked) setOpen(true);\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: false });\n }, [autoOpen, open, focusStore, rule.id, locked]);\n\n // Nothing to open, but the trigger still renders so the value keeps its\n // place, and it wears the bar's state: that hangs on the TRIGGER below,\n // which this path never reaches, so the segment used to look live.\n if (!operator || !actions.resolveEditor(field, operator)) {\n return React.cloneElement(trigger as React.ReactElement<Record<string, unknown>>, {\n disabled: actions.disabled,\n ...filterReadOnlyProps(actions),\n });\n }\n\n return (\n // REFUSES to open while locked rather than leaving it to the trigger: an\n // `aria-disabled` control that still opens an editor is one that lied.\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (next && locked) return;\n setOpen(next);\n }}\n >\n {/* The trigger IS the segment, never a wrapper. `ButtonGroup` fuses\n DIRECT children only (`*:data-slot:rounded-r-none`,\n `[&>[data-slot]~[data-slot]]:border-l-0`), so a nested one keeps its\n own border and the chip reads as separate badges. */}\n <PopoverTrigger\n render={trigger}\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n />\n <PopoverContent align=\"start\" className={cn(\"w-auto p-0\", className)}>\n <FilterValueEditor<V, O>\n rule={rule}\n field={field}\n operator={operator}\n open={open}\n onClose={() => {\n setOpen(false);\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: false });\n }}\n />\n </PopoverContent>\n </Popover>\n );\n}\n\n/* A chip's ATTRIBUTE is fixed once the chip exists: no field popover here. A\n new field invalidates the operator and the value, so \"amending\" threw both\n away. The builder keeps its picker, where a row reads as a form. */\n\n/** The condition menu, and the step after it. The list is the cascader run\n * flat: the old hand-rolled one marked the keyboard HIGHLIGHT with\n * `aria-selected` and had no Home, End or typeahead. It HANDS OFF to the\n * value popover once its own panel has left the DOM; advancing in place\n * anchored the editor to the CONDITION segment and doubled up in the row. */\nexport interface FilterOperatorPopoverProps<V = unknown, O = unknown> {\n rule: FilterRule<V>;\n field: FilterField<V, O>;\n trigger: React.ReactElement;\n className?: string;\n}\n\nexport function FilterOperatorPopover<V, O>({\n rule,\n field,\n trigger,\n className,\n}: FilterOperatorPopoverProps<V, O>) {\n const actions = useFilterActions<V, O>();\n const focusStore = useFilterFocusStore();\n const autoOpen = useFilterChipAutoOpen(rule.id) === \"operator\";\n const [open, setOpen] = React.useState(false);\n const locked = isFilterLocked(actions);\n /** Whether the close this panel is going through IS the step being handed\n * on. A ref, so it survives the render that closes the popover. Every OPEN\n * clears it, so an Escape or an outside press finds it already lowered and\n * spends nothing; `release` leaves it standing because one twin asks again\n * later: Radix reads it from `onCloseAutoFocus`, a macrotask after the\n * unmount. Clearing it in `release` would break that twin only. */\n const handoff = React.useRef(false);\n const operators = actions.resolveOperators(field);\n\n // Memoized because the array IS the menu's identity: the cascader rebuilds\n // its index per `items` identity, so a fresh array rebuilds it per keystroke.\n const items = React.useMemo(\n () =>\n visibleFilterOperators(operators).map((entry) => ({\n value: entry.value,\n label: entry.label,\n })),\n [operators],\n );\n\n // Opened by the root the moment the chip is created. CONSUMED here, or the\n // handoff re-opens the menu on the frame Escape closes it. Consumed even\n // while locked, for the reason on the value popover's copy.\n React.useEffect(() => {\n if (!autoOpen || open) return;\n handoff.current = false;\n if (!locked) setOpen(true);\n focusStore.set({ id: rule.id, segment: \"operator\", autoOpen: false });\n }, [autoOpen, open, focusStore, rule.id, locked]);\n\n const close = () => {\n handoff.current = false;\n setOpen(false);\n focusStore.set({ id: rule.id, segment: \"operator\", autoOpen: false });\n };\n\n /** The parked step, spent on the frame this panel stops existing. Memoized\n * on nothing that changes, and load bearing: `FilterStepHandoff` uses this\n * AS its cleanup, so a new identity mid-flow fires the step too early. */\n const release = React.useCallback(() => {\n if (!handoff.current) return;\n focusStore.set({ id: rule.id, segment: \"value\", autoOpen: true });\n }, [focusStore, rule.id]);\n\n // The chip going away takes its step with it: React destroys a deleted\n // subtree top down, so this runs before the panel's own cleanup.\n React.useEffect(\n () => () => {\n handoff.current = false;\n },\n [],\n );\n\n return (\n <Popover\n open={open}\n onOpenChange={(next) => {\n if (next && locked) return;\n /* Escape, an outside press, a second press: none is the step being\n taken, so none may spend it. RETIRED ON OPEN, not on close, and that\n is a twin difference: in Radix an item choice dismisses through here\n too, so retiring on close wiped the request before the unmount. */\n if (next) handoff.current = false;\n setOpen(next);\n }}\n >\n <PopoverTrigger\n render={trigger}\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n />\n <PopoverContent\n align=\"start\"\n /* Base UI restores focus to the trigger as this panel closes, which\n lands on the condition segment AFTER the value editor has opened and\n focused its input, so a keyboard user is dropped back a step and\n cannot reach the value at all. Suppressed only while the handoff is\n up; a function because Base UI resolves it at close time, which is\n when the ref is accurate. Radix runs the same guard through\n `onCloseAutoFocus`. */\n finalFocus={() => !handoff.current}\n /* `w-auto` with a FLOOR: a catalog sizes to its longest label, and a\n boolean field's \"is\" and \"is not\" would read as a scrap of paper. */\n className={cn(\"w-auto min-w-40 p-0\", className)}\n >\n {/* INSIDE the panel deliberately: only a child of the content is\n unmounted by the exit transition rather than by the close. */}\n <FilterStepHandoff onRelease={release} />\n <FilterMenu\n items={items}\n selected={rule.operator ? [rule.operator] : []}\n onSelectionChange={(values) => {\n const value = values[0];\n /* Deselecting the committed operator is a step back rather than a\n choice, so pressing the current row simply closes. */\n if (value === undefined) {\n close();\n return;\n }\n const chosen = getFilterOperator(operators, value);\n /* BUILDING versus AMENDING, the same fork the advanced row draws\n at its field step. A rule reaches this menu with no operator\n exactly once, while it is being added, and only then is the\n value the step after this one. Re-picking the condition on a\n rule that already has one is an edit of that one cell: it\n commits and closes, and the user opens the value themselves. */\n const building = !rule.operator;\n actions.updateRule(rule.id, {\n operator: value,\n /* The value moves with the operator: \"is\" to \"is any of\" would\n leave a bare string where every reader expects an array. */\n value: coerceFilterValue(\n rule.value,\n getFilterOperator(operators, rule.operator),\n chosen,\n ) as V,\n });\n if (building && operatorTakesValue(chosen)) {\n /* PARKED, not opened: `release` hands the row to its value\n surface once this panel has unmounted. */\n handoff.current = true;\n setOpen(false);\n return;\n }\n close();\n }}\n labels={actions.labels}\n ariaLabel={field.label}\n searchPlaceholder={actions.labels.searchOperators}\n /* No visible search field: a CLOSED enum of six to ten labels, all\n on screen. Still RENDERED, visually hidden, because it owns focus\n and `aria-activedescendant`: arrows, Home, End and typeahead. */\n searchable={false}\n /* Taller than a value list on purpose: the operator set is CLOSED, so\n all of it fits and the height buys the whole catalog. A value list\n is open ended and would only push its own footer off the screen. */\n maxHeight={320}\n /* Deliberately unpinned: one selected operator in a short list, so\nlifting it would lose the catalog's declared reading order. */\n />\n </PopoverContent>\n </Popover>\n );\n}\n\n/** The keyboard path to a CROSS-GROUP move: Alt+Arrow reorders within the\n * owning group only and Wrap creates a NEW group, so the drag layer's\n * cross-group move had no keyboard parity. Numbered in document order. */\nexport function FilterMoveToMenuItems({ nodeId }: { nodeId: string }) {\n const actions = useFilterActions();\n // A menu ITEM takes the native word: both twins already make `disabled`\n // roving-focusable and `aria-disabled`.\n const reorderable = useFilterReorderable();\n const locked = isFilterLocked(actions);\n // Read at render time: the menu's content mounts when the menu opens, so\n // this is the tree the user is looking at.\n const query = actions.getQuery();\n const found = findFilterNode(query, nodeId);\n if (!found?.parent) return null;\n\n const destinations: { id: string; label: string; size: number }[] = [];\n if (found.parent.id !== query.id) {\n destinations.push({\n id: query.id,\n label: actions.labels.moveToTopLevel,\n size: query.rules.length,\n });\n }\n\n let position = 0;\n // `inside` suppresses the PUSH and not the walk, so the numbering stays\n // document order rather than renumbering every group after this one. Counted\n // before the exclusions for the same reason: the current parent is not\n // offered but still holds its number, so the numbering is stable whichever\n // row's menu is open.\n const visit = (group: FilterGroupNode<unknown>, inside: boolean) => {\n for (const child of group.rules) {\n if (!isFilterGroup(child)) continue;\n position += 1;\n // Itself and everything under it: `moveFilterNodeTo` already refuses that\n // move - it would detach the subtree and leave a cycle - so offering it\n // would be a menu row that quietly does nothing.\n const within = inside || child.id === nodeId;\n if (!within && child.id !== found.parent!.id) {\n destinations.push({\n id: child.id,\n label: actions.labels.moveToGroup(position),\n size: child.rules.length,\n });\n }\n visit(child, within);\n }\n };\n visit(query, false);\n\n if (destinations.length === 0) return null;\n\n // The THIRD route into a move, gated on the same switch as the grip and\n // Alt+Arrow: ungated, a builder that draws no handle still reordered here.\n if (!reorderable) return null;\n\n return (\n <>\n {destinations.map((destination) => (\n <DropdownMenuItem\n key={destination.id}\n disabled={locked}\n onClick={() => actions.moveNodeTo(nodeId, destination.id, destination.size)}\n >\n {/* A bend into the destination: movement, not duplication or nesting. */}\n <CornerDownRightIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{destination.label}</span>\n </DropdownMenuItem>\n ))}\n </>\n );\n}\n\n/** The per-rule actions, without the trigger: the chip's kebab and a builder\n * row's kebab act on the same rule. `allowGrouping` is the CHROME's answer;\n * \"Convert to advanced filter\" is the CONSUMER's, and hides itself there. */\nexport function FilterRuleMenuItems({\n ruleId,\n /** Offer \"Wrap in condition group\". Off for the chip row, which cannot draw\n * a group; on in the builder, the only way to nest without dragging. */\n allowGrouping = false,\n}: {\n ruleId: string;\n allowGrouping?: boolean;\n}) {\n const actions = useFilterActions();\n // Gated here as well as at the trigger, because this is EXPORTED: a consumer\n // composing their own menu gets rows that say they are unavailable.\n const locked = isFilterLocked(actions);\n return (\n /* Every row leads with an icon. `IconPlaceholder` because the source ships\n under five icon sets; no size class, because each style already sizes an\n unsized svg in a menu row; `aria-hidden`, the label IS the name. */\n <>\n <DropdownMenuItem disabled={locked} onClick={() => actions.duplicateNode(ruleId)}>\n <CopyIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.duplicate}</span>\n </DropdownMenuItem>\n <DropdownMenuItem disabled={locked} onClick={() => actions.negateRule(ruleId)}>\n {/* Two arrows swapping: negation flips to the declared inverse. */}\n <ArrowLeftRightIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.negate}</span>\n </DropdownMenuItem>\n {allowGrouping ? (\n <DropdownMenuItem disabled={locked} onClick={() => actions.wrapNodeInGroup(ruleId)}>\n {/* Layers: braces read as grouping in only three of the five sets. */}\n <LayersIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.wrapInGroup}</span>\n </DropdownMenuItem>\n ) : null}\n {allowGrouping ? <FilterMoveToMenuItems nodeId={ruleId} /> : null}\n {/* OPTIONAL, and gated on both halves of \"would this do anything\": the\n handler is the consumer's opt-in, and an already-advanced bar has\n nothing to convert. NOT gated on `locked`: it changes no query, is\n handed no mutator, and the shipped kebab will not open while locked. */}\n {actions.convertToAdvanced && actions.variant !== \"advanced\" ? (\n <DropdownMenuItem onClick={() => actions.convertToAdvanced?.()}>\n {/* Sliders: the one \"advanced settings\" glyph in all five sets. */}\n <SlidersHorizontalIcon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.convertToAdvanced}</span>\n </DropdownMenuItem>\n ) : null}\n <DropdownMenuItem\n variant=\"destructive\"\n disabled={locked}\n onClick={() => actions.removeNode(ruleId)}\n >\n {/* No colour: the destructive variant already paints the row's svgs. */}\n <Trash2Icon aria-hidden=\"true\" />\n <span className={FILTER_MENU_LABEL_CLASS}>{actions.labels.remove}</span>\n </DropdownMenuItem>\n </>\n );\n}\n\nexport interface FilterChipProps<V = unknown> {\n rule: FilterRule<V>;\n index: number;\n}\n\n/** One filter, as a chip. Memoization means something here: the actions\n * context is stable, the focus store is subscribed to a boolean and the query\n * shares structure, so editing one filter of forty re-renders one chip. */\nfunction FilterChipImpl<V, O>({ rule, index }: FilterChipProps<V>) {\n const actions = useFilterActions<V, O>();\n const render = useFilterRender<V, O>();\n const focusStore = useFilterFocusStore();\n const focused = useFilterChipFocused(rule.id);\n const noFocus = useFilterFocusEmpty();\n const locked = isFilterLocked(actions);\n // THE CHIP'S HEIGHT, by way of the one button in it that has one:\n // `ButtonGroup` is `items-stretch` and no style gives a text segment a\n // height, so the kebab's rung is the pill's. The RADIUS survives because\n // every style whose `icon-sm` rounds differently re-pins it in a group.\n const sizes = filterControlSizes(actions);\n // The kebab is CONTROLLED so it can refuse to open: every mutating row\n // behind it is gated. That puts \"Convert to advanced filter\" out of reach\n // while locked; a consumer-composed menu still draws it.\n const [menuOpen, setMenuOpen] = React.useState(false);\n // Exactly one chip is in the tab order at a time. Before anything has been\n // focused that is the first chip, so Tab reaches the row in one press.\n const isTabStop = focused || (noFocus && index === 0);\n\n const field = getFilterField(actions.index, rule.path);\n const operators = field ? actions.resolveOperators(field) : [];\n const operator = getFilterOperator(operators, rule.operator);\n\n const {\n pathText,\n pathLabel,\n pathCollapsed,\n operatorLabel,\n valueLabel,\n valueText,\n valueFullText,\n valueEmpty,\n } = useFilterRuleDisplay<V, O>(rule, field, operator);\n\n if (!field) {\n // A rule pointing at a field the schema no longer has. Dropping it loses a\n // saved view's data; rendering nothing leaves an invisible condition still\n // filtering. It carries the SAME roving wiring as a real chip: `data-slot`\n // alone joined the arrow-key query with no `tabIndex` to land on.\n return (\n <ButtonGroup\n data-slot=\"filter-chip\"\n data-unknown=\"\"\n role=\"group\"\n aria-label={actions.labels.filterLabel(rule.path.join(actions.labels.pathSeparator))}\n data-focused={focused || undefined}\n data-rule-id={rule.id}\n data-index={index}\n tabIndex={isTabStop ? 0 : -1}\n onFocusCapture={() => {\n if (!focused) focusStore.set({ id: rule.id, segment: null, autoOpen: false });\n }}\n >\n <ButtonGroupText className=\"bg-background text-muted-foreground dark:bg-input/30\">\n {rule.path.join(actions.labels.pathSeparator)}\n </ButtonGroupText>\n <Button\n variant=\"outline\"\n size={sizes.icon}\n className=\"bg-background dark:bg-input/30\"\n aria-label={actions.labels.remove}\n /* It had no gate at all, so the one chip whose whole purpose is to be\n removed could be removed from a bar that refuses every other edit. */\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n onClick={() => actions.removeNode(rule.id)}\n >\n <XIcon />\n </Button>\n </ButtonGroup>\n );\n }\n\n if (render.renderChip) return <>{render.renderChip(rule)}</>;\n\n const focusSegment = (segment: ChipSegment) =>\n focusStore.set({ id: rule.id, segment, autoOpen: false });\n\n // A rule with no condition yet, KEPT rather than removed (see\n // `isFilterRuleComplete`), so it has to read as unfinished. Through WORDS:\n // the dashed outline it replaces degraded to an underline under sera.\n const incomplete = !rule.operator;\n\n // The same test the value segment renders under, so the name matches the\n // chip: `valueText` alone appended a placeholder to valueless conditions.\n const hasValue = Boolean(rule.operator) && operatorTakesValue(operator);\n\n // The value's spoken form in the chip's NAME: a name is not a prompt, so\n // \"Description contains enter text...\" becomes \"no value\".\n const valueName = valueEmpty && !field.valueText ? actions.labels.noValue : valueText;\n\n return (\n <ButtonGroup\n data-slot=\"filter-chip\"\n role=\"group\"\n aria-label={actions.labels.filterLabel(\n `${pathText} ${operatorLabel}${hasValue ? ` ${valueName}` : \"\"}`.trim() +\n (incomplete ? `, ${actions.labels.incomplete}` : \"\"),\n )}\n data-focused={focused || undefined}\n data-incomplete={incomplete || undefined}\n data-rule-id={rule.id}\n tabIndex={isTabStop ? 0 : -1}\n className={cn(\n /* Sera is an underline style, so the boxed segments are normalised to\n its bottom-border-only look or the chip reads as a mix of both. */\n \"\",\n )}\n onFocusCapture={() => {\n if (!focused) focusStore.set({ id: rule.id, segment: null, autoOpen: false });\n }}\n data-index={index}\n >\n {/* DISPLAY ONLY: a div, not a button, not a tab stop, no popover. The\n attribute is fixed for the life of the chip. */}\n <ButtonGroupText\n /* Dropped while the path is collapsed: the ellipsis inside carries the\n same sentence as a tooltip, and the two would stack. */\n title={pathCollapsed ? undefined : pathText}\n className=\"cursor-default gap-1.5 bg-background dark:bg-input/30\"\n >\n {field.icon}\n {/* Zero gap INSIDE the path, so the separator's own margin is the only\n air around a chevron; `gap-1.5` used to stack 6px a side on it. */}\n <span className=\"flex items-center\">{pathLabel}</span>\n </ButtonGroupText>\n\n <FilterOperatorPopover\n rule={rule}\n field={field}\n trigger={\n <ButtonGroupText\n render={<button type=\"button\" />}\n className={cn(\n \"cursor-default bg-background hover:bg-accent dark:bg-input/30\",\n /* The operator is connective tissue between the field and the\n value, so it reads quieter than either - unless it is still\n the prompt \"Select condition\", the one thing to act on. */\n incomplete ? \"text-foreground\" : \"text-muted-foreground\",\n )}\n onPointerDown={() => focusSegment(\"operator\")}\n >\n {operatorLabel}\n </ButtonGroupText>\n }\n />\n\n {/* No condition, no value: `getFilterArity(undefined)` defaults to \"one\",\n so testing the operator alone renders a stray value segment. */}\n {hasValue ? (\n <FilterValuePopover\n rule={rule}\n field={field}\n operator={operator}\n trigger={\n <ButtonGroupText\n render={<button type=\"button\" />}\n /* Named explicitly rather than by its contents: avatars or a\n \"+2\" badge, and \"plus two\" says nothing about two people. It\n grows to the whole list when the editor cannot be opened,\n since locked it must carry what a press no longer reveals. */\n aria-label={locked ? valueFullText : valueText}\n /* The pointer's route to the same thing, and only when there is\n more to say than the segment already says. */\n title={valueFullText === valueText ? undefined : valueFullText}\n className={cn(\n \"cursor-default bg-background hover:bg-accent dark:bg-input/30\",\n valueEmpty && \"text-muted-foreground\",\n )}\n onPointerDown={() => focusSegment(\"value\")}\n >\n {valueLabel}\n </ButtonGroupText>\n }\n />\n ) : null}\n\n <DropdownMenu\n open={menuOpen}\n onOpenChange={(next) => {\n if (next && locked) return;\n setMenuOpen(next);\n }}\n >\n <DropdownMenuTrigger\n disabled={actions.disabled}\n {...filterReadOnlyProps(actions)}\n render={\n <Button\n variant=\"outline\"\n size={sizes.icon}\n /* The same surface the three text segments force. Styles whose\n outline button is transparent in dark (sera, luma, rhea) left\n the kebab as a notch in an otherwise filled pill. */\n className=\"bg-background dark:bg-input/30\"\n aria-label={actions.labels.chipMenu(field.label)}\n onPointerDown={() => focusSegment(\"menu\")}\n />\n }\n >\n <EllipsisVerticalIcon />\n </DropdownMenuTrigger>\n {/* The SAME sizing the builder's menus use, from one constant: a menu\n that cuts \"Convert to group\" in one chrome is one defect twice. */}\n <DropdownMenuContent align=\"end\" className={cn(FILTER_MENU_CLASS, actions.menuClassName)}>\n <FilterRuleMenuItems ruleId={rule.id} />\n </DropdownMenuContent>\n </DropdownMenu>\n </ButtonGroup>\n );\n}\n\nexport const FilterChip = React.memo(FilterChipImpl) as typeof FilterChipImpl;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqEA,MAAM,yBAAyD,CAAC;AAEhE,SAAS,oBACP,OACA,UACA,eACA,QAEA,kBAGA,cACQ;CACR,MAAM,aAAa,eACf,OAAO,oBACN,oBAAoB,OAAO;CAChC,IAAI,UAAU,KAAA,KAAa,UAAU,QAAQ,UAAU,IACrD,OAAO;CAGT,IAAI,eAAe,QAAQ,MAAM,WAAW,MAAM,QAAQ,KAAK,GAAG;EAChE,MAAM,CAAC,MAAM,MAAM;EACnB,OAAO,OAAO,WAAW,OAAO,QAAQ,EAAE,GAAG,OAAO,MAAM,EAAE,CAAC;CAC/D;CAEA,IAAI,MAAM,QAAQ,KAAK,GAAG;EACxB,MAAM,SAAS;EACf,IAAI,OAAO,WAAW,GAAG,OAAO;EAChC,IAAI,OAAO,WAAW,GACpB,OAAO,cAAc,OAAO,EAAE,CAAC,EAAE,SAAS,OAAO,OAAO,EAAE;EAE5D,OAAO,OAAO,WAA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QACE,oBAAC,QAAD;MACE,SAAQ;MACR,MAAM,MAAM;MAIZ,WAAU;MACV,cAAY,QAAQ,OAAO,SAAS,MAAM,KAAK;MAC/C,qBAAqB,aAAa,MAAM;KACzC,CAAA;KAGH,UAAA,oBAAC,sBAAD,CAAuB,CAAA;IACJ,CAAA,GAGrB,oBAAC,qBAAD;KAAqB,OAAM;KAAM,WAAW,GAAG,mBAAmB,QAAQ,aAAa;KACrF,UAAA,oBAAC,qBAAD,EAAqB,QAAQ,KAAK,GAAK,CAAA;IACpB,CAAA,CACT;;EACH;;AAEjB;AAEA,MAAa,aAAaA,QAAM,KAAK,cAAc"}
@@ -19,7 +19,7 @@ import * as React$1 from "react";
19
19
  * BOUNDARY - `disabled` and `readOnly` are enforced here, not at the call
20
20
  * sites that draw the buttons, so a route added next month is refused by
21
21
  * construction rather than by remembering. See `isFilterLocked`. */
22
- interface FilterActionsContextValue<V = unknown, O = unknown> {
22
+ export interface FilterActionsContextValue<V = unknown, O = unknown> {
23
23
  /** Normalized schema. Also on the state context, from the same memo. */
24
24
  index: FilterIndex<V, O>;
25
25
  labels: FilterLabels;
@@ -117,7 +117,7 @@ interface FilterActionsContextValue<V = unknown, O = unknown> {
117
117
  * disallowed on the button, group and toolbar roles, so the BAR says it in
118
118
  * prose through `labels.readOnly`. The refusal itself is enforced once, where
119
119
  * all fourteen query writes pass through `emit` in `filters.tsx`. */
120
- declare function isFilterLocked(state: {
120
+ export declare function isFilterLocked(state: {
121
121
  disabled: boolean;
122
122
  readOnly: boolean;
123
123
  }): boolean;
@@ -125,7 +125,7 @@ declare function isFilterLocked(state: {
125
125
  * bar is disabled, because the native attribute already says it. A
126
126
  * conditional spread, not explicit `undefined`s: `aria-disabled="false"` on
127
127
  * an enabled control is noise, and `data-readonly` is a presence hook. */
128
- declare function filterReadOnlyProps(state: {
128
+ export declare function filterReadOnlyProps(state: {
129
129
  disabled: boolean;
130
130
  readOnly: boolean;
131
131
  }): {
@@ -135,7 +135,7 @@ declare function filterReadOnlyProps(state: {
135
135
  /** The two shadcn button sizes one filters size resolves to. Two rungs because
136
136
  * shadcn ships a separate ladder for labelled and for icon-only buttons, and
137
137
  * pairing them keeps a row's kebab as tall as the cell beside it. */
138
- interface FilterControlSizes {
138
+ export interface FilterControlSizes {
139
139
  /** Labelled buttons: the row cells, both triggers, the panel footer. */
140
140
  button: "sm" | "default";
141
141
  /** Icon-only buttons, and also the CHIP's height: a chip is an
@@ -148,14 +148,14 @@ interface FilterControlSizes {
148
148
  * consumer-composed chrome uses the same ladder as the shipped one. The
149
149
  * fallback is for JavaScript callers: a `"lg"` TypeScript would have rejected
150
150
  * must still draw buttons rather than throw on `.button`. */
151
- declare function filterControlSizes(state: {
151
+ export declare function filterControlSizes(state: {
152
152
  size: "sm" | "default";
153
153
  }): FilterControlSizes;
154
154
  declare const FilterActionsContext: React$1.Context<FilterActionsContextValue<unknown, unknown> | null>;
155
- declare function useFilterActions<V = unknown, O = unknown>(): FilterActionsContextValue<V, O>;
155
+ export declare function useFilterActions<V = unknown, O = unknown>(): FilterActionsContextValue<V, O>;
156
156
  /** Volatile by construction: typing one character into a value editor
157
157
  * republishes it. Subscribe from the bar and the panel, never from a chip. */
158
- interface FilterStateContextValue<V = unknown> {
158
+ export interface FilterStateContextValue<V = unknown> {
159
159
  query: FilterQuery<V>;
160
160
  draft: FilterDraft<V> | null;
161
161
  ruleCount: number;
@@ -169,19 +169,19 @@ interface FilterStateContextValue<V = unknown> {
169
169
  announcementSeq: number;
170
170
  }
171
171
  declare const FilterStateContext: React$1.Context<FilterStateContextValue<unknown> | null>;
172
- declare function useFilterState<V = unknown>(): FilterStateContextValue<V>;
172
+ export declare function useFilterState<V = unknown>(): FilterStateContextValue<V>;
173
173
  /** Consumer render overrides, on their own channel. They must be
174
174
  * always-current closures yet change identity on every parent render when
175
175
  * written inline, so isolating them re-renders only what calls them. */
176
- interface FilterRenderContextValue<V = unknown, O = unknown> {
176
+ export interface FilterRenderContextValue<V = unknown, O = unknown> {
177
177
  renderValue?: (context: FilterValueDisplayContext<V, O>) => React$1.ReactNode;
178
178
  renderChip?: (rule: FilterRule<V>) => React$1.ReactNode;
179
179
  renderEmpty?: (context: FilterEmptyStateContext) => React$1.ReactNode;
180
180
  }
181
181
  declare const FilterRenderContext: React$1.Context<FilterRenderContextValue<unknown, unknown>>;
182
- declare function useFilterRender<V = unknown, O = unknown>(): FilterRenderContextValue<V, O>;
182
+ export declare function useFilterRender<V = unknown, O = unknown>(): FilterRenderContextValue<V, O>;
183
183
  /** Which chip currently owns the row's single tab stop. */
184
- interface FilterFocus {
184
+ export interface FilterFocus {
185
185
  id: string | null;
186
186
  /** Which cell inside that row, for restoring focus after an edit. A chip
187
187
  * draws only `field`, `operator`, `value` and `menu`; the rest are advanced
@@ -198,16 +198,16 @@ interface FilterFocus {
198
198
  * bar to move one outline. The SELECTOR hooks below each narrow to one value,
199
199
  * so arrowing across forty chips re-renders two components. `useFilterFocus`
200
200
  * is the exception: it returns the whole snapshot. */
201
- interface FilterFocusStore {
201
+ export interface FilterFocusStore {
202
202
  subscribe: (onStoreChange: () => void) => () => void;
203
203
  getSnapshot: () => FilterFocus;
204
204
  /** No-ops when nothing changed. */
205
205
  set: (next: FilterFocus) => void;
206
206
  }
207
- declare function createFilterFocusStore(): FilterFocusStore;
207
+ export declare function createFilterFocusStore(): FilterFocusStore;
208
208
  declare const FilterFocusContext: React$1.Context<FilterFocusStore>;
209
- declare const FilterReorderProvider: React$1.Provider<boolean>;
210
- declare function useFilterReorderable(): boolean;
209
+ export declare const FilterReorderProvider: React$1.Provider<boolean>;
210
+ export declare function useFilterReorderable(): boolean;
211
211
  /** Which rules the user has actually edited the VALUE of, which decides WHEN
212
212
  * an error may appear: "Add filter" mints a row with no value, so flagging
213
213
  * every invalid row turns the builder red before the user did anything wrong.
@@ -216,7 +216,7 @@ declare function useFilterReorderable(): boolean;
216
216
  * user has committed a value. An external store for the focus store's reason,
217
217
  * keyed by rule id and never pruned: a stale id costs one Set entry, and
218
218
  * reconciling against the query on every commit is hot-path work. */
219
- interface FilterRowStateStore {
219
+ export interface FilterRowStateStore {
220
220
  subscribe: (listener: () => void) => () => void;
221
221
  /** Bumped on every write. What a memo depends on, since the Sets are mutable. */
222
222
  version: () => number;
@@ -237,31 +237,31 @@ interface FilterRowStateStore {
237
237
  /** Forgets everything. The bar's own Clear all, and a whole-tree replace. */
238
238
  reset: () => void;
239
239
  }
240
- declare function createFilterRowStateStore(): FilterRowStateStore;
241
- declare const FilterRowStateProvider: React$1.Provider<FilterRowStateStore>;
240
+ export declare function createFilterRowStateStore(): FilterRowStateStore;
241
+ export declare const FilterRowStateProvider: React$1.Provider<FilterRowStateStore>;
242
242
  /** The store itself, for handlers that write without subscribing. */
243
- declare function useFilterRowStateStore(): FilterRowStateStore;
243
+ export declare function useFilterRowStateStore(): FilterRowStateStore;
244
244
  /** Whether THIS rule is still waiting for its attribute. */
245
- declare function useFilterRowPending(id: string): boolean;
245
+ export declare function useFilterRowPending(id: string): boolean;
246
246
  /** Whether THIS rule may show an error yet. */
247
- declare function useFilterTouched(id: string): boolean;
247
+ export declare function useFilterTouched(id: string): boolean;
248
248
  /** The whole focus snapshot, so the caller re-renders on EVERY move anywhere
249
249
  * in the row. A chip wants `useFilterChipFocused` or `useFilterSegmentFocus`
250
250
  * below instead. */
251
- declare function useFilterFocus(): FilterFocus;
251
+ export declare function useFilterFocus(): FilterFocus;
252
252
  /** The store itself, for event handlers that write without subscribing. */
253
- declare function useFilterFocusStore(): FilterFocusStore;
253
+ export declare function useFilterFocusStore(): FilterFocusStore;
254
254
  /** The segment of THIS chip that should open itself, or null. */
255
- declare function useFilterChipAutoOpen(id: string): FilterFocus["segment"] | null;
255
+ export declare function useFilterChipAutoOpen(id: string): FilterFocus["segment"] | null;
256
256
  /** Whether the row holds no focus, so the first chip keeps the tab stop. */
257
- declare function useFilterFocusEmpty(): boolean;
257
+ export declare function useFilterFocusEmpty(): boolean;
258
258
  /** Whether THIS chip owns the row's tab stop. */
259
- declare function useFilterChipFocused(id: string): boolean;
259
+ export declare function useFilterChipFocused(id: string): boolean;
260
260
  /** Which segment of THIS rule owns the tab stop, or null when another rule
261
261
  * does. A chip needs one boolean, but an advanced row is a grid ROW whose tab
262
262
  * stop is a (row, column) pair, and the column has to come from this store
263
263
  * too or the chromes disagree about where focus is after an edit. */
264
- declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
264
+ export declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
265
265
  /** The instance-wide value-to-label store. `useFilterOptions` caches per HOOK
266
266
  * INSTANCE, and a chip's display and its editor are two instances, so a
267
267
  * `loadOptions`-only field rendered its raw id the moment the menu closed.
@@ -269,7 +269,7 @@ declare function useFilterSegmentFocus(id: string): FilterFocus["segment"];
269
269
  * here too. External rather than React state because labels arrive from
270
270
  * effects and promises at their own pace, and the version bumps only when a
271
271
  * NEW label lands, so a subscriber re-renders once per page of results. */
272
- interface FilterResolutionStore {
272
+ export interface FilterResolutionStore {
273
273
  subscribe: (onStoreChange: () => void) => () => void;
274
274
  getVersion: () => number;
275
275
  /** The option behind a stored value, or undefined while unresolved. */
@@ -284,7 +284,7 @@ interface FilterResolutionStore {
284
284
  /** Releases claims after a FAILED resolve, so a later mount may retry. */
285
285
  release: (fieldKey: string, values: readonly string[]) => void;
286
286
  }
287
- declare function createFilterResolutionStore(): FilterResolutionStore;
287
+ export declare function createFilterResolutionStore(): FilterResolutionStore;
288
288
  //#endregion
289
- export { FilterActionsContext, FilterActionsContextValue, FilterControlSizes, FilterFocus, FilterFocusContext, FilterFocusStore, FilterRenderContext, FilterRenderContextValue, FilterReorderProvider, FilterResolutionStore, FilterRowStateProvider, FilterRowStateStore, FilterStateContext, FilterStateContextValue, createFilterFocusStore, createFilterResolutionStore, createFilterRowStateStore, filterControlSizes, filterReadOnlyProps, isFilterLocked, useFilterActions, useFilterChipAutoOpen, useFilterChipFocused, useFilterFocus, useFilterFocusEmpty, useFilterFocusStore, useFilterRender, useFilterReorderable, useFilterRowPending, useFilterRowStateStore, useFilterSegmentFocus, useFilterState, useFilterTouched };
289
+ export { FilterActionsContext, FilterFocusContext, FilterRenderContext, FilterStateContext };
290
290
  //# sourceMappingURL=filters-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filters-context.d.ts","names":[],"sources":["../../../../src/components/reui/filters/filters-context.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;UA6CiB,0BAA0B,aAAa;;EAEtD,OAAO,YAAY,GAAG;EACtB,QAAQ;EACR,iBAAiB,OAAO,iBAAiB;EACzC,SAAS;EACT;;EAEA;;EAEA;;EAGA;;;;;EAMA;EACA;;;;;;EAOA;;EAGA,cAAc;EACd;;EAGA,mBAAmB,OAAO,YAAY,GAAG,OAAO;EAChD,gBACE,OAAO,YAAY,GAAG,IACtB,UAAU,+BACP,aAAa,GAAG;;EAErB,YAAY;;;;;EAMZ,UAAU,MAAM,WAAW,IAAI;;;;;;;EAO/B,WAAW,mBAAmB,aAAa;EAC3C,aAAa,YAAY,SAAS,QAAQ,KAAK,WAAW;;;;;EAK1D,aAAa;EACb,gBAAgB;EAChB,aAAa;;EAEb,WAAW,YAAY;;EAEvB,aAAa,YAAY,kBAAkB;;;;;EAK3C,aAAa,YAAY,kBAAkB;;EAE3C,kBAAkB,YAAY,aAAa;;EAE3C,cAAc;EACd,gBAAgB,iBAAiB,YAAY;EAC7C,mBAAmB;EACnB;EAEA;EACA,YAAY,YAAY,MAAM;EAC9B;EACA,gBAAgB,QAAQ,kBAAkB;;;;;EAM1C,WAAW;;EAGX,gBAAgB,YAAY;EAC5B,gBAAgB,YAAY;;EAE5B;;;;;;;;;;;;;;;;iBAqBc,eAAe;EAAS;EAAmB;;;;;;iBAQ3C,oBAAoB;EAAS;EAAmB;;;;;;;;UAY/C;;EAEf;;;;;EAKA;;;;;;iBAuBc,mBAAmB;EAAS;IAA2B;cAIjE,sBAAoB,QAAA,QAAA;iBAEV,iBAAiB,aAAa,gBAAgB,0BAA0B,GAAG;;;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