@kumix/ui 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2002) hide show
  1. package/README.md +72 -46
  2. package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
  3. package/dist/account-avatar-BHh_21aQ.js.map +1 -0
  4. package/dist/animated-sidebar-CPdrqoGi.js +310 -0
  5. package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
  6. package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
  7. package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
  8. package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
  9. package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
  10. package/dist/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
  11. package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
  12. package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
  13. package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
  14. package/dist/components/agents/agent-activity/activity-row.js +54 -40
  15. package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
  16. package/dist/components/agents/agent-activity.d.ts +4 -0
  17. package/dist/components/agents/agent-activity.d.ts.map +1 -0
  18. package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +84 -52
  19. package/dist/components/agents/agent-activity.js.map +1 -0
  20. package/dist/components/agents/agent-code.d.ts.map +1 -1
  21. package/dist/components/agents/agent-code.js +43 -17
  22. package/dist/components/agents/agent-code.js.map +1 -1
  23. package/dist/components/agents/agent-disclosure.d.ts +7 -2
  24. package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
  25. package/dist/components/agents/agent-disclosure.js +17 -5
  26. package/dist/components/agents/agent-disclosure.js.map +1 -1
  27. package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
  28. package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
  29. package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
  30. package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
  31. package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
  32. package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
  33. package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
  34. package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
  35. package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
  36. package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
  37. package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
  38. package/dist/components/agents/ai-sidebar.d.ts +3 -53
  39. package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
  40. package/dist/components/agents/ai-sidebar.js +54 -338
  41. package/dist/components/agents/ai-sidebar.js.map +1 -1
  42. package/dist/components/agents/approval-card.d.ts +101 -0
  43. package/dist/components/agents/approval-card.d.ts.map +1 -0
  44. package/dist/components/agents/approval-card.js +416 -0
  45. package/dist/components/agents/approval-card.js.map +1 -0
  46. package/dist/components/agents/chat-app.d.ts +1 -1
  47. package/dist/components/agents/chat-app.d.ts.map +1 -1
  48. package/dist/components/agents/chat-app.js +9 -6
  49. package/dist/components/agents/chat-app.js.map +1 -1
  50. package/dist/components/agents/citations.d.ts +32 -2
  51. package/dist/components/agents/citations.d.ts.map +1 -1
  52. package/dist/components/agents/citations.js +68 -16
  53. package/dist/components/agents/citations.js.map +1 -1
  54. package/dist/components/agents/clip-resize-frame.d.ts +31 -0
  55. package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
  56. package/dist/components/agents/clip-resize-frame.js +103 -0
  57. package/dist/components/agents/clip-resize-frame.js.map +1 -0
  58. package/dist/components/agents/code-block.d.ts +22 -2
  59. package/dist/components/agents/code-block.d.ts.map +1 -1
  60. package/dist/components/agents/code-block.js +49 -31
  61. package/dist/components/agents/code-block.js.map +1 -1
  62. package/dist/components/agents/context-meter.d.ts +53 -0
  63. package/dist/components/agents/context-meter.d.ts.map +1 -0
  64. package/dist/components/agents/context-meter.js +443 -0
  65. package/dist/components/agents/context-meter.js.map +1 -0
  66. package/dist/components/agents/file-diff.d.ts +30 -2
  67. package/dist/components/agents/file-diff.d.ts.map +1 -1
  68. package/dist/components/agents/file-diff.js +129 -86
  69. package/dist/components/agents/file-diff.js.map +1 -1
  70. package/dist/components/agents/icon-swap.d.ts +14 -0
  71. package/dist/components/agents/icon-swap.d.ts.map +1 -0
  72. package/dist/components/agents/icon-swap.js +41 -0
  73. package/dist/components/agents/icon-swap.js.map +1 -0
  74. package/dist/components/agents/image-generation.d.ts +25 -1
  75. package/dist/components/agents/image-generation.d.ts.map +1 -1
  76. package/dist/components/agents/image-generation.js +33 -23
  77. package/dist/components/agents/image-generation.js.map +1 -1
  78. package/dist/components/agents/loading-states/agent-progress.d.ts +5 -1
  79. package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
  80. package/dist/components/agents/loading-states/agent-progress.js +30 -9
  81. package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
  82. package/dist/components/agents/loading-states/reasoning-text.d.ts +5 -1
  83. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
  84. package/dist/components/agents/loading-states/reasoning-text.js +44 -19
  85. package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
  86. package/dist/components/agents/loading-states/thinking-shimmer.d.ts +5 -1
  87. package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
  88. package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
  89. package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
  90. package/dist/components/agents/message-bubble.d.ts +19 -1
  91. package/dist/components/agents/message-bubble.d.ts.map +1 -1
  92. package/dist/components/agents/message-bubble.js +74 -46
  93. package/dist/components/agents/message-bubble.js.map +1 -1
  94. package/dist/components/agents/message-scroller.d.ts +21 -1
  95. package/dist/components/agents/message-scroller.d.ts.map +1 -1
  96. package/dist/components/agents/message-scroller.js +108 -24
  97. package/dist/components/agents/message-scroller.js.map +1 -1
  98. package/dist/components/agents/message.d.ts +14 -3
  99. package/dist/components/agents/message.d.ts.map +1 -1
  100. package/dist/components/agents/message.js +20 -12
  101. package/dist/components/agents/message.js.map +1 -1
  102. package/dist/components/agents/prompt-input.d.ts +53 -1
  103. package/dist/components/agents/prompt-input.d.ts.map +1 -1
  104. package/dist/components/agents/prompt-input.js +371 -97
  105. package/dist/components/agents/prompt-input.js.map +1 -1
  106. package/dist/components/agents/streaming-response.d.ts +27 -2
  107. package/dist/components/agents/streaming-response.d.ts.map +1 -1
  108. package/dist/components/agents/streaming-response.js +59 -44
  109. package/dist/components/agents/streaming-response.js.map +1 -1
  110. package/dist/components/agents/todo-list.d.ts +28 -1
  111. package/dist/components/agents/todo-list.d.ts.map +1 -1
  112. package/dist/components/agents/todo-list.js +149 -121
  113. package/dist/components/agents/todo-list.js.map +1 -1
  114. package/dist/components/agents/tool-approval.d.ts +38 -2
  115. package/dist/components/agents/tool-approval.d.ts.map +1 -1
  116. package/dist/components/agents/tool-approval.js +75 -41
  117. package/dist/components/agents/tool-approval.js.map +1 -1
  118. package/dist/components/agents/tool-result.d.ts +33 -2
  119. package/dist/components/agents/tool-result.d.ts.map +1 -1
  120. package/dist/components/agents/tool-result.js +66 -71
  121. package/dist/components/agents/tool-result.js.map +1 -1
  122. package/dist/components/agents/voice-note.d.ts +37 -0
  123. package/dist/components/agents/voice-note.d.ts.map +1 -0
  124. package/dist/components/agents/voice-note.js +326 -0
  125. package/dist/components/agents/voice-note.js.map +1 -0
  126. package/dist/components/agents/voice-orb.d.ts +7 -1
  127. package/dist/components/agents/voice-orb.d.ts.map +1 -1
  128. package/dist/components/agents/voice-orb.js +8 -5
  129. package/dist/components/agents/voice-orb.js.map +1 -1
  130. package/dist/components/charts/bar-chart/context.d.ts +29 -6
  131. package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
  132. package/dist/components/charts/bar-chart/context.js +18 -5
  133. package/dist/components/charts/bar-chart/context.js.map +1 -1
  134. package/dist/components/charts/bar-chart/legend.d.ts +1 -0
  135. package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
  136. package/dist/components/charts/bar-chart/legend.js +2 -2
  137. package/dist/components/charts/bar-chart/legend.js.map +1 -1
  138. package/dist/components/charts/bar-chart/plot.d.ts +2 -0
  139. package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
  140. package/dist/components/charts/bar-chart/plot.js +23 -13
  141. package/dist/components/charts/bar-chart/plot.js.map +1 -1
  142. package/dist/components/charts/bar-chart/tooltip.d.ts +3 -1
  143. package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
  144. package/dist/components/charts/bar-chart/tooltip.js +5 -4
  145. package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
  146. package/dist/components/charts/bar-chart.d.ts +5 -4
  147. package/dist/components/charts/bar-chart.d.ts.map +1 -1
  148. package/dist/components/charts/bar-chart.js +9 -6
  149. package/dist/components/charts/bar-chart.js.map +1 -1
  150. package/dist/components/charts/bump-chart/context.d.ts +1 -1
  151. package/dist/components/charts/bump-chart/context.js +1 -1
  152. package/dist/components/charts/bump-chart/legend.js +8 -8
  153. package/dist/components/charts/bump-chart/legend.js.map +1 -1
  154. package/dist/components/charts/bump-chart/plot.js +1 -1
  155. package/dist/components/charts/bump-chart/point.d.ts +1 -1
  156. package/dist/components/charts/bump-chart/point.js +18 -16
  157. package/dist/components/charts/bump-chart/point.js.map +1 -1
  158. package/dist/components/charts/bump-chart/series.d.ts +2 -2
  159. package/dist/components/charts/bump-chart/series.js +4 -4
  160. package/dist/components/charts/bump-chart/series.js.map +1 -1
  161. package/dist/components/charts/bump-chart.d.ts +2 -2
  162. package/dist/components/charts/bump-chart.d.ts.map +1 -1
  163. package/dist/components/charts/bump-chart.js +4 -4
  164. package/dist/components/charts/bump-chart.js.map +1 -1
  165. package/dist/components/charts/candlestick-chart/context.d.ts +29 -1
  166. package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
  167. package/dist/components/charts/candlestick-chart/context.js +17 -3
  168. package/dist/components/charts/candlestick-chart/context.js.map +1 -1
  169. package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
  170. package/dist/components/charts/candlestick-chart/legend.js +10 -10
  171. package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
  172. package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
  173. package/dist/components/charts/candlestick-chart/plot.js +17 -18
  174. package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
  175. package/dist/components/charts/candlestick-chart.d.ts +2 -2
  176. package/dist/components/charts/candlestick-chart.js +3 -3
  177. package/dist/components/charts/candlestick-chart.js.map +1 -1
  178. package/dist/components/charts/composition-chart/context.d.ts +1 -1
  179. package/dist/components/charts/composition-chart/context.js +1 -1
  180. package/dist/components/charts/composition-chart/legend.js +5 -5
  181. package/dist/components/charts/composition-chart/legend.js.map +1 -1
  182. package/dist/components/charts/composition-chart/plot.js +9 -9
  183. package/dist/components/charts/composition-chart/plot.js.map +1 -1
  184. package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
  185. package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
  186. package/dist/components/charts/composition-chart.d.ts +2 -2
  187. package/dist/components/charts/composition-chart.js +3 -3
  188. package/dist/components/charts/composition-chart.js.map +1 -1
  189. package/dist/components/charts/donut-chart/center.d.ts +1 -1
  190. package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
  191. package/dist/components/charts/donut-chart/center.js +7 -7
  192. package/dist/components/charts/donut-chart/center.js.map +1 -1
  193. package/dist/components/charts/donut-chart/context.d.ts +18 -2
  194. package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
  195. package/dist/components/charts/donut-chart/context.js +1 -1
  196. package/dist/components/charts/donut-chart/legend.d.ts +1 -1
  197. package/dist/components/charts/donut-chart/legend.js +3 -3
  198. package/dist/components/charts/donut-chart/plot.js +3 -3
  199. package/dist/components/charts/donut-chart.d.ts +3 -3
  200. package/dist/components/charts/donut-chart.js +3 -3
  201. package/dist/components/charts/donut-chart.js.map +1 -1
  202. package/dist/components/charts/funnel-chart.d.ts +27 -1
  203. package/dist/components/charts/funnel-chart.d.ts.map +1 -1
  204. package/dist/components/charts/funnel-chart.js +52 -37
  205. package/dist/components/charts/funnel-chart.js.map +1 -1
  206. package/dist/components/charts/heat-calendar/grid.js +13 -6
  207. package/dist/components/charts/heat-calendar/grid.js.map +1 -1
  208. package/dist/components/charts/heat-calendar/legend.js +9 -6
  209. package/dist/components/charts/heat-calendar/legend.js.map +1 -1
  210. package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
  211. package/dist/components/charts/heat-calendar/tooltip.js +10 -7
  212. package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
  213. package/dist/components/charts/heat-calendar.d.ts +2 -2
  214. package/dist/components/charts/heat-calendar.js +3 -3
  215. package/dist/components/charts/heat-calendar.js.map +1 -1
  216. package/dist/components/charts/line-chart/context.d.ts +29 -4
  217. package/dist/components/charts/line-chart/context.d.ts.map +1 -1
  218. package/dist/components/charts/line-chart/context.js +21 -6
  219. package/dist/components/charts/line-chart/context.js.map +1 -1
  220. package/dist/components/charts/line-chart/legend.d.ts +1 -0
  221. package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
  222. package/dist/components/charts/line-chart/legend.js +2 -2
  223. package/dist/components/charts/line-chart/legend.js.map +1 -1
  224. package/dist/components/charts/line-chart/plot.d.ts +2 -0
  225. package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
  226. package/dist/components/charts/line-chart/plot.js +27 -17
  227. package/dist/components/charts/line-chart/plot.js.map +1 -1
  228. package/dist/components/charts/line-chart/tooltip.d.ts +2 -1
  229. package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
  230. package/dist/components/charts/line-chart/tooltip.js +7 -6
  231. package/dist/components/charts/line-chart/tooltip.js.map +1 -1
  232. package/dist/components/charts/line-chart.d.ts +6 -5
  233. package/dist/components/charts/line-chart.d.ts.map +1 -1
  234. package/dist/components/charts/line-chart.js +9 -6
  235. package/dist/components/charts/line-chart.js.map +1 -1
  236. package/dist/components/charts/liquidity-heatmap.d.ts +25 -1
  237. package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
  238. package/dist/components/charts/liquidity-heatmap.js +55 -30
  239. package/dist/components/charts/liquidity-heatmap.js.map +1 -1
  240. package/dist/components/charts/order-book/depth-row.d.ts +1 -1
  241. package/dist/components/charts/order-book/depth-row.js +2 -2
  242. package/dist/components/charts/order-book.d.ts +38 -1
  243. package/dist/components/charts/order-book.d.ts.map +1 -1
  244. package/dist/components/charts/order-book.js +88 -37
  245. package/dist/components/charts/order-book.js.map +1 -1
  246. package/dist/components/charts/price-target-fan/header.js +6 -6
  247. package/dist/components/charts/price-target-fan/header.js.map +1 -1
  248. package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
  249. package/dist/components/charts/price-target-fan/plot.js +21 -11
  250. package/dist/components/charts/price-target-fan/plot.js.map +1 -1
  251. package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
  252. package/dist/components/charts/price-target-fan/series.js +11 -7
  253. package/dist/components/charts/price-target-fan/series.js.map +1 -1
  254. package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
  255. package/dist/components/charts/price-target-fan/tooltip.js +3 -3
  256. package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
  257. package/dist/components/charts/price-target-fan.d.ts +2 -2
  258. package/dist/components/charts/price-target-fan.js +4 -4
  259. package/dist/components/charts/price-target-fan.js.map +1 -1
  260. package/dist/components/charts/returns-calendar/grid.js +25 -15
  261. package/dist/components/charts/returns-calendar/grid.js.map +1 -1
  262. package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
  263. package/dist/components/charts/returns-calendar/tooltip.js +3 -3
  264. package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
  265. package/dist/components/charts/returns-calendar.d.ts +9 -2
  266. package/dist/components/charts/returns-calendar.d.ts.map +1 -1
  267. package/dist/components/charts/returns-calendar.js +3 -3
  268. package/dist/components/charts/returns-calendar.js.map +1 -1
  269. package/dist/components/charts/sankey-chart/context.d.ts +1 -1
  270. package/dist/components/charts/sankey-chart/context.js +1 -1
  271. package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
  272. package/dist/components/charts/sankey-chart/plot.js +18 -37
  273. package/dist/components/charts/sankey-chart/plot.js.map +1 -1
  274. package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
  275. package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
  276. package/dist/components/charts/sankey-chart/tooltip.js +16 -19
  277. package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
  278. package/dist/components/charts/sankey-chart.d.ts +3 -3
  279. package/dist/components/charts/sankey-chart.d.ts.map +1 -1
  280. package/dist/components/charts/sankey-chart.js +16 -15
  281. package/dist/components/charts/sankey-chart.js.map +1 -1
  282. package/dist/components/charts/sparkline.d.ts +23 -2
  283. package/dist/components/charts/sparkline.d.ts.map +1 -1
  284. package/dist/components/charts/sparkline.js +36 -16
  285. package/dist/components/charts/sparkline.js.map +1 -1
  286. package/dist/components/charts/status-bar/legend.d.ts +1 -0
  287. package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
  288. package/dist/components/charts/status-bar/legend.js +3 -3
  289. package/dist/components/charts/status-bar/legend.js.map +1 -1
  290. package/dist/components/charts/status-bar/plot.d.ts +2 -0
  291. package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
  292. package/dist/components/charts/status-bar/plot.js +6 -6
  293. package/dist/components/charts/status-bar/plot.js.map +1 -1
  294. package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
  295. package/dist/components/charts/status-bar/tooltip.js +2 -2
  296. package/dist/components/charts/status-bar/tooltip.js.map +1 -1
  297. package/dist/components/charts/status-bar.d.ts +3 -3
  298. package/dist/components/charts/status-bar.d.ts.map +1 -1
  299. package/dist/components/charts/status-bar.js +11 -9
  300. package/dist/components/charts/status-bar.js.map +1 -1
  301. package/dist/components/charts/treemap/legend.d.ts +2 -0
  302. package/dist/components/charts/treemap/legend.d.ts.map +1 -1
  303. package/dist/components/charts/treemap/legend.js +3 -3
  304. package/dist/components/charts/treemap/legend.js.map +1 -1
  305. package/dist/components/charts/treemap/plot.d.ts +2 -1
  306. package/dist/components/charts/treemap/plot.d.ts.map +1 -1
  307. package/dist/components/charts/treemap/plot.js +8 -21
  308. package/dist/components/charts/treemap/plot.js.map +1 -1
  309. package/dist/components/charts/treemap/tile.d.ts +1 -1
  310. package/dist/components/charts/treemap/tile.js +7 -7
  311. package/dist/components/charts/treemap/tile.js.map +1 -1
  312. package/dist/components/charts/treemap/tooltip.d.ts +3 -1
  313. package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
  314. package/dist/components/charts/treemap/tooltip.js +4 -4
  315. package/dist/components/charts/treemap/tooltip.js.map +1 -1
  316. package/dist/components/charts/treemap.d.ts +29 -6
  317. package/dist/components/charts/treemap.d.ts.map +1 -1
  318. package/dist/components/charts/treemap.js +12 -10
  319. package/dist/components/charts/treemap.js.map +1 -1
  320. package/dist/components/charts/volume-profile/plot.d.ts +2 -0
  321. package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
  322. package/dist/components/charts/volume-profile/plot.js +10 -10
  323. package/dist/components/charts/volume-profile/plot.js.map +1 -1
  324. package/dist/components/charts/volume-profile/summary.js +16 -22
  325. package/dist/components/charts/volume-profile/summary.js.map +1 -1
  326. package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
  327. package/dist/components/charts/volume-profile/tooltip.js +6 -6
  328. package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
  329. package/dist/components/charts/volume-profile.d.ts +39 -5
  330. package/dist/components/charts/volume-profile.d.ts.map +1 -1
  331. package/dist/components/charts/volume-profile.js +18 -22
  332. package/dist/components/charts/volume-profile.js.map +1 -1
  333. package/dist/components/charts/xy/axis.js +1 -1
  334. package/dist/components/charts/xy/data-table.d.ts +4 -2
  335. package/dist/components/charts/xy/data-table.d.ts.map +1 -1
  336. package/dist/components/charts/xy/data-table.js +4 -4
  337. package/dist/components/charts/xy/data-table.js.map +1 -1
  338. package/dist/components/charts/xy/legend.d.ts +1 -1
  339. package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
  340. package/dist/components/charts/xy/tooltip-content.js +5 -5
  341. package/dist/components/charts/xy/tooltip-content.js.map +1 -1
  342. package/dist/components/custom/confirm-dialog.js +1 -1
  343. package/dist/components/custom/toast.d.ts +2 -1
  344. package/dist/components/custom/toast.d.ts.map +1 -1
  345. package/dist/components/custom/toast.js +1 -1
  346. package/dist/components/motion/action-swap.d.ts +19 -0
  347. package/dist/components/motion/action-swap.d.ts.map +1 -1
  348. package/dist/components/motion/action-swap.js +2 -2
  349. package/dist/components/motion/action-swap.js.map +1 -1
  350. package/dist/components/motion/adaptive-stepper.d.ts +24 -1
  351. package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
  352. package/dist/components/motion/adaptive-stepper.js +28 -23
  353. package/dist/components/motion/adaptive-stepper.js.map +1 -1
  354. package/dist/components/motion/add-to-cart.d.ts +38 -0
  355. package/dist/components/motion/add-to-cart.d.ts.map +1 -0
  356. package/dist/components/motion/add-to-cart.js +228 -0
  357. package/dist/components/motion/add-to-cart.js.map +1 -0
  358. package/dist/components/motion/alert.d.ts +12 -1
  359. package/dist/components/motion/alert.d.ts.map +1 -1
  360. package/dist/components/motion/alert.js +18 -12
  361. package/dist/components/motion/alert.js.map +1 -1
  362. package/dist/components/motion/animated-badge.d.ts +6 -0
  363. package/dist/components/motion/animated-badge.d.ts.map +1 -1
  364. package/dist/components/motion/animated-badge.js +6 -6
  365. package/dist/components/motion/animated-badge.js.map +1 -1
  366. package/dist/components/motion/animated-number.d.ts +5 -0
  367. package/dist/components/motion/animated-number.d.ts.map +1 -1
  368. package/dist/components/motion/animated-number.js +2 -2
  369. package/dist/components/motion/animated-number.js.map +1 -1
  370. package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
  371. package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
  372. package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
  373. package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
  374. package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
  375. package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
  376. package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
  377. package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
  378. package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
  379. package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
  380. package/dist/components/motion/animated-sidebar.d.ts +20 -47
  381. package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
  382. package/dist/components/motion/animated-sidebar.js +5 -619
  383. package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
  384. package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
  385. package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
  386. package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
  387. package/dist/components/motion/animated-toast-stack.d.ts +3 -62
  388. package/dist/components/motion/animated-toast-stack.js +1 -302
  389. package/dist/components/motion/arc-picker.d.ts +11 -1
  390. package/dist/components/motion/arc-picker.d.ts.map +1 -1
  391. package/dist/components/motion/arc-picker.js +21 -14
  392. package/dist/components/motion/arc-picker.js.map +1 -1
  393. package/dist/components/motion/aspect-ratio.d.ts +1 -0
  394. package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
  395. package/dist/components/motion/aspect-ratio.js +2 -2
  396. package/dist/components/motion/aspect-ratio.js.map +1 -1
  397. package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
  398. package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
  399. package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
  400. package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
  401. package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
  402. package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
  403. package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
  404. package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
  405. package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
  406. package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
  407. package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
  408. package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
  409. package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
  410. package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
  411. package/dist/components/motion/attachment-upload/row-action.js +98 -0
  412. package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
  413. package/dist/components/motion/attachment-upload.d.ts +25 -22
  414. package/dist/components/motion/attachment-upload.d.ts.map +1 -1
  415. package/dist/components/motion/attachment-upload.js +59 -481
  416. package/dist/components/motion/attachment-upload.js.map +1 -1
  417. package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -2
  418. package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
  419. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
  420. package/dist/components/motion/availability-scheduler/day-row.d.ts +4 -2
  421. package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
  422. package/dist/components/motion/availability-scheduler/day-row.js +23 -15
  423. package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
  424. package/dist/components/motion/availability-scheduler/icon-button.js +3 -3
  425. package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
  426. package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
  427. package/dist/components/motion/availability-scheduler.d.ts +19 -0
  428. package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
  429. package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +31 -9
  430. package/dist/components/motion/availability-scheduler.js.map +1 -0
  431. package/dist/components/motion/avatar-group.d.ts +20 -2
  432. package/dist/components/motion/avatar-group.d.ts.map +1 -1
  433. package/dist/components/motion/avatar-group.js +20 -11
  434. package/dist/components/motion/avatar-group.js.map +1 -1
  435. package/dist/components/motion/before-after-slider.d.ts +38 -0
  436. package/dist/components/motion/before-after-slider.d.ts.map +1 -0
  437. package/dist/components/motion/before-after-slider.js +351 -0
  438. package/dist/components/motion/before-after-slider.js.map +1 -0
  439. package/dist/components/motion/bloom-menu.d.ts +20 -1
  440. package/dist/components/motion/bloom-menu.d.ts.map +1 -1
  441. package/dist/components/motion/bloom-menu.js +42 -35
  442. package/dist/components/motion/bloom-menu.js.map +1 -1
  443. package/dist/components/motion/bookmark-button.d.ts +30 -0
  444. package/dist/components/motion/bookmark-button.d.ts.map +1 -0
  445. package/dist/components/motion/bookmark-button.js +107 -0
  446. package/dist/components/motion/bookmark-button.js.map +1 -0
  447. package/dist/components/motion/bookshelf.d.ts +53 -0
  448. package/dist/components/motion/bookshelf.d.ts.map +1 -0
  449. package/dist/components/motion/bookshelf.js +518 -0
  450. package/dist/components/motion/bookshelf.js.map +1 -0
  451. package/dist/components/motion/bottom-sheet.d.ts +15 -1
  452. package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
  453. package/dist/components/motion/bottom-sheet.js +22 -43
  454. package/dist/components/motion/bottom-sheet.js.map +1 -1
  455. package/dist/components/motion/bounce-sidebar.d.ts +24 -1
  456. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
  457. package/dist/components/motion/bounce-sidebar.js +8 -4
  458. package/dist/components/motion/bounce-sidebar.js.map +1 -1
  459. package/dist/components/motion/bouncy-accordion.d.ts +20 -0
  460. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
  461. package/dist/components/motion/bouncy-accordion.js +39 -16
  462. package/dist/components/motion/bouncy-accordion.js.map +1 -1
  463. package/dist/components/motion/breadcrumb.d.ts +13 -2
  464. package/dist/components/motion/breadcrumb.d.ts.map +1 -1
  465. package/dist/components/motion/breadcrumb.js +34 -20
  466. package/dist/components/motion/breadcrumb.js.map +1 -1
  467. package/dist/components/motion/button/base.d.ts +8 -0
  468. package/dist/components/motion/button/base.d.ts.map +1 -1
  469. package/dist/components/motion/button/base.js +17 -12
  470. package/dist/components/motion/button/base.js.map +1 -1
  471. package/dist/components/motion/button/magnetic.js +1 -1
  472. package/dist/components/motion/button/metallic.d.ts.map +1 -1
  473. package/dist/components/motion/button/metallic.js +11 -10
  474. package/dist/components/motion/button/metallic.js.map +1 -1
  475. package/dist/components/motion/button/stateful.d.ts +15 -1
  476. package/dist/components/motion/button/stateful.d.ts.map +1 -1
  477. package/dist/components/motion/button/stateful.js +14 -7
  478. package/dist/components/motion/button/stateful.js.map +1 -1
  479. package/dist/components/motion/button.d.ts +5 -0
  480. package/dist/components/motion/button.js +6 -0
  481. package/dist/components/motion/card-dealer.d.ts +10 -1
  482. package/dist/components/motion/card-dealer.d.ts.map +1 -1
  483. package/dist/components/motion/card-dealer.js +9 -5
  484. package/dist/components/motion/card-dealer.js.map +1 -1
  485. package/dist/components/motion/card-folder.d.ts +32 -1
  486. package/dist/components/motion/card-folder.d.ts.map +1 -1
  487. package/dist/components/motion/card-folder.js +36 -20
  488. package/dist/components/motion/card-folder.js.map +1 -1
  489. package/dist/components/motion/card.js +3 -3
  490. package/dist/components/motion/card.js.map +1 -1
  491. package/dist/components/motion/casino/game-parts.d.ts +2 -0
  492. package/dist/components/motion/casino/game-parts.js +207 -0
  493. package/dist/components/motion/casino/game-parts.js.map +1 -0
  494. package/dist/components/motion/center-morph-modal.d.ts +13 -1
  495. package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
  496. package/dist/components/motion/center-morph-modal.js +85 -101
  497. package/dist/components/motion/center-morph-modal.js.map +1 -1
  498. package/dist/components/motion/checkbox.d.ts +17 -1
  499. package/dist/components/motion/checkbox.d.ts.map +1 -1
  500. package/dist/components/motion/checkbox.js +12 -5
  501. package/dist/components/motion/checkbox.js.map +1 -1
  502. package/dist/components/motion/chromatic-text-reveal.js +5 -5
  503. package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
  504. package/dist/components/motion/click-burst.d.ts +24 -0
  505. package/dist/components/motion/click-burst.d.ts.map +1 -0
  506. package/dist/components/motion/click-burst.js +133 -0
  507. package/dist/components/motion/click-burst.js.map +1 -0
  508. package/dist/components/motion/collapsible.d.ts +4 -0
  509. package/dist/components/motion/collapsible.d.ts.map +1 -1
  510. package/dist/components/motion/collapsible.js +4 -4
  511. package/dist/components/motion/collapsible.js.map +1 -1
  512. package/dist/components/motion/color-picker.d.ts +29 -21
  513. package/dist/components/motion/color-picker.d.ts.map +1 -1
  514. package/dist/components/motion/color-picker.js +78 -131
  515. package/dist/components/motion/color-picker.js.map +1 -1
  516. package/dist/components/motion/color-selector.d.ts +5 -0
  517. package/dist/components/motion/color-selector.d.ts.map +1 -1
  518. package/dist/components/motion/color-selector.js +2 -2
  519. package/dist/components/motion/color-selector.js.map +1 -1
  520. package/dist/components/motion/combobox/content.d.ts +3 -10
  521. package/dist/components/motion/combobox/content.d.ts.map +1 -1
  522. package/dist/components/motion/combobox/content.js +14 -80
  523. package/dist/components/motion/combobox/content.js.map +1 -1
  524. package/dist/components/motion/combobox/context.d.ts +3 -66
  525. package/dist/components/motion/combobox/context.js +1 -216
  526. package/dist/components/motion/combobox/list.d.ts +12 -0
  527. package/dist/components/motion/combobox/list.d.ts.map +1 -1
  528. package/dist/components/motion/combobox/list.js +13 -12
  529. package/dist/components/motion/combobox/list.js.map +1 -1
  530. package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
  531. package/dist/components/motion/combobox/listbox-panel.js +99 -0
  532. package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
  533. package/dist/components/motion/combobox/trigger.d.ts +5 -0
  534. package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
  535. package/dist/components/motion/combobox/trigger.js +10 -8
  536. package/dist/components/motion/combobox/trigger.js.map +1 -1
  537. package/dist/components/motion/combobox.d.ts +2 -2
  538. package/dist/components/motion/combobox.js +2 -2
  539. package/dist/components/motion/command-palette.d.ts +41 -1
  540. package/dist/components/motion/command-palette.d.ts.map +1 -1
  541. package/dist/components/motion/command-palette.js +305 -132
  542. package/dist/components/motion/command-palette.js.map +1 -1
  543. package/dist/components/motion/confetti.d.ts +23 -0
  544. package/dist/components/motion/confetti.d.ts.map +1 -0
  545. package/dist/components/motion/confetti.js +154 -0
  546. package/dist/components/motion/confetti.js.map +1 -0
  547. package/dist/components/motion/context-menu.d.ts +33 -1
  548. package/dist/components/motion/context-menu.d.ts.map +1 -1
  549. package/dist/components/motion/context-menu.js +126 -122
  550. package/dist/components/motion/context-menu.js.map +1 -1
  551. package/dist/components/motion/copy-button.d.ts +27 -0
  552. package/dist/components/motion/copy-button.d.ts.map +1 -0
  553. package/dist/components/motion/copy-button.js +129 -0
  554. package/dist/components/motion/copy-button.js.map +1 -0
  555. package/dist/components/motion/crash/crash-balloon.d.ts +2 -1
  556. package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -1
  557. package/dist/components/motion/crash/crash-balloon.js +13 -11
  558. package/dist/components/motion/crash/crash-balloon.js.map +1 -1
  559. package/dist/components/motion/crash/crash-parts.d.ts +3 -7
  560. package/dist/components/motion/crash/crash-parts.d.ts.map +1 -1
  561. package/dist/components/motion/crash/crash-parts.js +3 -1
  562. package/dist/components/motion/crash/crash-tower.d.ts +2 -1
  563. package/dist/components/motion/crash/crash-tower.d.ts.map +1 -1
  564. package/dist/components/motion/crash/crash-tower.js +10 -9
  565. package/dist/components/motion/crash/crash-tower.js.map +1 -1
  566. package/dist/components/motion/crash.d.ts +2 -1
  567. package/dist/components/motion/crash.d.ts.map +1 -1
  568. package/dist/components/motion/crash.js +11 -9
  569. package/dist/components/motion/crash.js.map +1 -1
  570. package/dist/components/motion/cylinder-carousel.d.ts +14 -4
  571. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
  572. package/dist/components/motion/cylinder-carousel.js +14 -8
  573. package/dist/components/motion/cylinder-carousel.js.map +1 -1
  574. package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
  575. package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
  576. package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
  577. package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
  578. package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
  579. package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
  580. package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
  581. package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
  582. package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
  583. package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
  584. package/dist/components/motion/date-range-picker/calendar.js +46 -0
  585. package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
  586. package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
  587. package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
  588. package/dist/components/motion/date-range-picker/clear.js +23 -0
  589. package/dist/components/motion/date-range-picker/clear.js.map +1 -0
  590. package/dist/components/motion/date-range-picker/content.d.ts +7 -0
  591. package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
  592. package/dist/components/motion/date-range-picker/content.js +36 -0
  593. package/dist/components/motion/date-range-picker/content.js.map +1 -0
  594. package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
  595. package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
  596. package/dist/components/motion/date-range-picker/dropdown.js +26 -0
  597. package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
  598. package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
  599. package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
  600. package/dist/components/motion/date-range-picker/footer.js +20 -0
  601. package/dist/components/motion/date-range-picker/footer.js.map +1 -0
  602. package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
  603. package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
  604. package/dist/components/motion/date-range-picker/grid.js +132 -0
  605. package/dist/components/motion/date-range-picker/grid.js.map +1 -0
  606. package/dist/components/motion/date-range-picker/header.d.ts +4 -0
  607. package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
  608. package/dist/components/motion/date-range-picker/header.js +85 -0
  609. package/dist/components/motion/date-range-picker/header.js.map +1 -0
  610. package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
  611. package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
  612. package/dist/components/motion/date-range-picker/preset.js +25 -0
  613. package/dist/components/motion/date-range-picker/preset.js.map +1 -0
  614. package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
  615. package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
  616. package/dist/components/motion/date-range-picker/presets.js +22 -0
  617. package/dist/components/motion/date-range-picker/presets.js.map +1 -0
  618. package/dist/components/motion/date-range-picker/root.d.ts +4 -0
  619. package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
  620. package/dist/components/motion/date-range-picker/root.js +3 -0
  621. package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
  622. package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
  623. package/dist/components/motion/date-range-picker/selection.js +17 -0
  624. package/dist/components/motion/date-range-picker/selection.js.map +1 -0
  625. package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
  626. package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
  627. package/dist/components/motion/date-range-picker/summary.js +40 -0
  628. package/dist/components/motion/date-range-picker/summary.js.map +1 -0
  629. package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
  630. package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
  631. package/dist/components/motion/date-range-picker/trigger.js +74 -0
  632. package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
  633. package/dist/components/motion/date-range-picker.d.ts +16 -82
  634. package/dist/components/motion/date-range-picker.d.ts.map +1 -1
  635. package/dist/components/motion/date-range-picker.js +15 -875
  636. package/dist/components/motion/date-range-picker.js.map +1 -1
  637. package/dist/components/motion/delete-button.d.ts +31 -0
  638. package/dist/components/motion/delete-button.d.ts.map +1 -0
  639. package/dist/components/motion/delete-button.js +263 -0
  640. package/dist/components/motion/delete-button.js.map +1 -0
  641. package/dist/components/motion/digit-swap.d.ts +3 -0
  642. package/dist/components/motion/digit-swap.d.ts.map +1 -1
  643. package/dist/components/motion/digit-swap.js +2 -2
  644. package/dist/components/motion/digit-swap.js.map +1 -1
  645. package/dist/components/motion/dock.d.ts +4 -0
  646. package/dist/components/motion/dock.d.ts.map +1 -1
  647. package/dist/components/motion/dock.js +4 -4
  648. package/dist/components/motion/dock.js.map +1 -1
  649. package/dist/components/motion/download-button.d.ts +29 -0
  650. package/dist/components/motion/download-button.d.ts.map +1 -0
  651. package/dist/components/motion/download-button.js +305 -0
  652. package/dist/components/motion/download-button.js.map +1 -0
  653. package/dist/components/motion/drawer.d.ts +17 -2
  654. package/dist/components/motion/drawer.d.ts.map +1 -1
  655. package/dist/components/motion/drawer.js +74 -20
  656. package/dist/components/motion/drawer.js.map +1 -1
  657. package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
  658. package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
  659. package/dist/components/motion/dropdown-menu/item-base.js +78 -0
  660. package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
  661. package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
  662. package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
  663. package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
  664. package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
  665. package/dist/components/motion/dropdown-menu.d.ts +111 -0
  666. package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
  667. package/dist/components/motion/dropdown-menu.js +400 -0
  668. package/dist/components/motion/dropdown-menu.js.map +1 -0
  669. package/dist/components/motion/dynamic-island.d.ts +2 -0
  670. package/dist/components/motion/dynamic-island.d.ts.map +1 -1
  671. package/dist/components/motion/dynamic-island.js +2 -2
  672. package/dist/components/motion/dynamic-island.js.map +1 -1
  673. package/dist/components/motion/expandable-action-bar.d.ts +28 -0
  674. package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
  675. package/dist/components/motion/expandable-action-bar.js +8 -17
  676. package/dist/components/motion/expandable-action-bar.js.map +1 -1
  677. package/dist/components/motion/expandable-control.d.ts +14 -0
  678. package/dist/components/motion/expandable-control.d.ts.map +1 -1
  679. package/dist/components/motion/expandable-control.js +6 -3
  680. package/dist/components/motion/expandable-control.js.map +1 -1
  681. package/dist/components/motion/expandable-tabs.d.ts +24 -2
  682. package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
  683. package/dist/components/motion/expandable-tabs.js +12 -20
  684. package/dist/components/motion/expandable-tabs.js.map +1 -1
  685. package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
  686. package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
  687. package/dist/components/motion/expanding-arrow-button.js +6 -6
  688. package/dist/components/motion/expanding-arrow-button.js.map +1 -1
  689. package/dist/components/motion/feedback-widget.d.ts +24 -1
  690. package/dist/components/motion/feedback-widget.d.ts.map +1 -1
  691. package/dist/components/motion/feedback-widget.js +46 -44
  692. package/dist/components/motion/feedback-widget.js.map +1 -1
  693. package/dist/components/motion/file-tree.d.ts +32 -1
  694. package/dist/components/motion/file-tree.d.ts.map +1 -1
  695. package/dist/components/motion/file-tree.js +15 -15
  696. package/dist/components/motion/file-tree.js.map +1 -1
  697. package/dist/components/motion/file-upload.d.ts +54 -1
  698. package/dist/components/motion/file-upload.d.ts.map +1 -1
  699. package/dist/components/motion/file-upload.js +87 -46
  700. package/dist/components/motion/file-upload.js.map +1 -1
  701. package/dist/components/motion/follow-button.d.ts +31 -0
  702. package/dist/components/motion/follow-button.d.ts.map +1 -0
  703. package/dist/components/motion/follow-button.js +184 -0
  704. package/dist/components/motion/follow-button.js.map +1 -0
  705. package/dist/components/motion/hold-action-button.d.ts +15 -0
  706. package/dist/components/motion/hold-action-button.d.ts.map +1 -1
  707. package/dist/components/motion/hold-action-button.js +21 -9
  708. package/dist/components/motion/hold-action-button.js.map +1 -1
  709. package/dist/components/motion/infinite-masonry.d.ts +35 -1
  710. package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
  711. package/dist/components/motion/infinite-masonry.js +30 -15
  712. package/dist/components/motion/infinite-masonry.js.map +1 -1
  713. package/dist/components/motion/input.d.ts +17 -0
  714. package/dist/components/motion/input.d.ts.map +1 -1
  715. package/dist/components/motion/input.js +3 -2
  716. package/dist/components/motion/input.js.map +1 -1
  717. package/dist/components/motion/knockout-bracket.d.ts +32 -6
  718. package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
  719. package/dist/components/motion/knockout-bracket.js +104 -50
  720. package/dist/components/motion/knockout-bracket.js.map +1 -1
  721. package/dist/components/motion/knockout-wheel.d.ts +23 -4
  722. package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
  723. package/dist/components/motion/knockout-wheel.js +50 -24
  724. package/dist/components/motion/knockout-wheel.js.map +1 -1
  725. package/dist/components/motion/like-button.d.ts +26 -0
  726. package/dist/components/motion/like-button.d.ts.map +1 -0
  727. package/dist/components/motion/like-button.js +128 -0
  728. package/dist/components/motion/like-button.js.map +1 -0
  729. package/dist/components/motion/liquid.js +4 -4
  730. package/dist/components/motion/liquid.js.map +1 -1
  731. package/dist/components/motion/loader.d.ts +11 -1
  732. package/dist/components/motion/loader.d.ts.map +1 -1
  733. package/dist/components/motion/loader.js +49 -34
  734. package/dist/components/motion/loader.js.map +1 -1
  735. package/dist/components/motion/lock-toggle.d.ts +29 -0
  736. package/dist/components/motion/lock-toggle.d.ts.map +1 -0
  737. package/dist/components/motion/lock-toggle.js +252 -0
  738. package/dist/components/motion/lock-toggle.js.map +1 -0
  739. package/dist/components/motion/magnetic.js +3 -3
  740. package/dist/components/motion/marquee.d.ts +6 -0
  741. package/dist/components/motion/marquee.d.ts.map +1 -1
  742. package/dist/components/motion/marquee.js.map +1 -1
  743. package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
  744. package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
  745. package/dist/components/motion/menu/menu-item-highlight.js +20 -0
  746. package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
  747. package/dist/components/motion/message-status.d.ts +26 -0
  748. package/dist/components/motion/message-status.d.ts.map +1 -0
  749. package/dist/components/motion/message-status.js +198 -0
  750. package/dist/components/motion/message-status.js.map +1 -0
  751. package/dist/components/motion/mines.d.ts +43 -3
  752. package/dist/components/motion/mines.d.ts.map +1 -1
  753. package/dist/components/motion/mines.js +92 -57
  754. package/dist/components/motion/mines.js.map +1 -1
  755. package/dist/components/motion/morphing-lightbox.d.ts +33 -1
  756. package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
  757. package/dist/components/motion/morphing-lightbox.js +42 -25
  758. package/dist/components/motion/morphing-lightbox.js.map +1 -1
  759. package/dist/components/motion/morphing-modal.d.ts +10 -1
  760. package/dist/components/motion/morphing-modal.d.ts.map +1 -1
  761. package/dist/components/motion/morphing-modal.js +25 -20
  762. package/dist/components/motion/morphing-modal.js.map +1 -1
  763. package/dist/components/motion/morphing-search-chips.d.ts +34 -1
  764. package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
  765. package/dist/components/motion/morphing-search-chips.js +47 -35
  766. package/dist/components/motion/morphing-search-chips.js.map +1 -1
  767. package/dist/components/motion/morphing-search.d.ts +28 -1
  768. package/dist/components/motion/morphing-search.d.ts.map +1 -1
  769. package/dist/components/motion/morphing-search.js +36 -26
  770. package/dist/components/motion/morphing-search.js.map +1 -1
  771. package/dist/components/motion/morphing-tabs.d.ts +29 -1
  772. package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
  773. package/dist/components/motion/morphing-tabs.js +40 -16
  774. package/dist/components/motion/morphing-tabs.js.map +1 -1
  775. package/dist/components/motion/multi-select/content.d.ts +3 -10
  776. package/dist/components/motion/multi-select/content.d.ts.map +1 -1
  777. package/dist/components/motion/multi-select/content.js +14 -80
  778. package/dist/components/motion/multi-select/content.js.map +1 -1
  779. package/dist/components/motion/multi-select/context.d.ts +2 -61
  780. package/dist/components/motion/multi-select/context.js +1 -226
  781. package/dist/components/motion/multi-select/list.d.ts +12 -0
  782. package/dist/components/motion/multi-select/list.d.ts.map +1 -1
  783. package/dist/components/motion/multi-select/list.js +14 -13
  784. package/dist/components/motion/multi-select/list.js.map +1 -1
  785. package/dist/components/motion/multi-select/trigger.d.ts +6 -0
  786. package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
  787. package/dist/components/motion/multi-select/trigger.js +15 -13
  788. package/dist/components/motion/multi-select/trigger.js.map +1 -1
  789. package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +5 -5
  790. package/dist/components/motion/{multi-select/index.js → multi-select.js} +5 -5
  791. package/dist/components/motion/mute-toggle.d.ts +25 -0
  792. package/dist/components/motion/mute-toggle.d.ts.map +1 -0
  793. package/dist/components/motion/mute-toggle.js +221 -0
  794. package/dist/components/motion/mute-toggle.js.map +1 -0
  795. package/dist/components/motion/not-found/glitch.d.ts +1 -1
  796. package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
  797. package/dist/components/motion/not-found/glitch.js +10 -8
  798. package/dist/components/motion/not-found/glitch.js.map +1 -1
  799. package/dist/components/motion/not-found/magnetic.d.ts +1 -1
  800. package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
  801. package/dist/components/motion/not-found/magnetic.js +10 -8
  802. package/dist/components/motion/not-found/magnetic.js.map +1 -1
  803. package/dist/components/motion/not-found/shared.d.ts +23 -6
  804. package/dist/components/motion/not-found/shared.d.ts.map +1 -1
  805. package/dist/components/motion/not-found/shared.js +20 -9
  806. package/dist/components/motion/not-found/shared.js.map +1 -1
  807. package/dist/components/motion/not-found/spotlight.d.ts +1 -1
  808. package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
  809. package/dist/components/motion/not-found/spotlight.js +13 -11
  810. package/dist/components/motion/not-found/spotlight.js.map +1 -1
  811. package/dist/components/motion/not-found/stacked.d.ts +1 -1
  812. package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
  813. package/dist/components/motion/not-found/stacked.js +11 -9
  814. package/dist/components/motion/not-found/stacked.js.map +1 -1
  815. package/dist/components/motion/not-found/terminal.d.ts +1 -1
  816. package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
  817. package/dist/components/motion/not-found/terminal.js +9 -7
  818. package/dist/components/motion/not-found/terminal.js.map +1 -1
  819. package/dist/components/motion/notification-bell.d.ts +29 -0
  820. package/dist/components/motion/notification-bell.d.ts.map +1 -0
  821. package/dist/components/motion/notification-bell.js +274 -0
  822. package/dist/components/motion/notification-bell.js.map +1 -0
  823. package/dist/components/motion/notification-stack.d.ts +35 -1
  824. package/dist/components/motion/notification-stack.d.ts.map +1 -1
  825. package/dist/components/motion/notification-stack.js +23 -7
  826. package/dist/components/motion/notification-stack.js.map +1 -1
  827. package/dist/components/motion/number-ticker.d.ts +11 -3
  828. package/dist/components/motion/number-ticker.d.ts.map +1 -1
  829. package/dist/components/motion/number-ticker.js +7 -4
  830. package/dist/components/motion/number-ticker.js.map +1 -1
  831. package/dist/components/motion/otp-input.d.ts +22 -1
  832. package/dist/components/motion/otp-input.d.ts.map +1 -1
  833. package/dist/components/motion/otp-input.js +36 -15
  834. package/dist/components/motion/otp-input.js.map +1 -1
  835. package/dist/components/motion/overflow-actions.d.ts +35 -1
  836. package/dist/components/motion/overflow-actions.d.ts.map +1 -1
  837. package/dist/components/motion/overflow-actions.js +16 -8
  838. package/dist/components/motion/overflow-actions.js.map +1 -1
  839. package/dist/components/motion/pagination.d.ts +17 -1
  840. package/dist/components/motion/pagination.d.ts.map +1 -1
  841. package/dist/components/motion/pagination.js +24 -13
  842. package/dist/components/motion/pagination.js.map +1 -1
  843. package/dist/components/motion/parallax.d.ts +2 -0
  844. package/dist/components/motion/parallax.d.ts.map +1 -1
  845. package/dist/components/motion/parallax.js +1 -1
  846. package/dist/components/motion/parallax.js.map +1 -1
  847. package/dist/components/motion/plinko.d.ts +13 -1
  848. package/dist/components/motion/plinko.d.ts.map +1 -1
  849. package/dist/components/motion/plinko.js +32 -18
  850. package/dist/components/motion/plinko.js.map +1 -1
  851. package/dist/components/motion/poll-vote.d.ts +39 -0
  852. package/dist/components/motion/poll-vote.d.ts.map +1 -0
  853. package/dist/components/motion/poll-vote.js +209 -0
  854. package/dist/components/motion/poll-vote.js.map +1 -0
  855. package/dist/components/motion/popover-morph.d.ts +2 -50
  856. package/dist/components/motion/popover-morph.js +10 -30
  857. package/dist/components/motion/popover-morph.js.map +1 -1
  858. package/dist/components/motion/popover.d.ts +5 -2
  859. package/dist/components/motion/popover.d.ts.map +1 -1
  860. package/dist/components/motion/popover.js +155 -103
  861. package/dist/components/motion/popover.js.map +1 -1
  862. package/dist/components/motion/prediction-market-card.d.ts +30 -1
  863. package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
  864. package/dist/components/motion/prediction-market-card.js +39 -22
  865. package/dist/components/motion/prediction-market-card.js.map +1 -1
  866. package/dist/components/motion/prediction-market.d.ts +58 -1
  867. package/dist/components/motion/prediction-market.d.ts.map +1 -1
  868. package/dist/components/motion/prediction-market.js +66 -47
  869. package/dist/components/motion/prediction-market.js.map +1 -1
  870. package/dist/components/motion/preview-rail.d.ts +31 -1
  871. package/dist/components/motion/preview-rail.d.ts.map +1 -1
  872. package/dist/components/motion/preview-rail.js +10 -5
  873. package/dist/components/motion/preview-rail.js.map +1 -1
  874. package/dist/components/motion/project-folder.d.ts +33 -1
  875. package/dist/components/motion/project-folder.d.ts.map +1 -1
  876. package/dist/components/motion/project-folder.js +31 -50
  877. package/dist/components/motion/project-folder.js.map +1 -1
  878. package/dist/components/motion/pull-to-refresh.d.ts +19 -1
  879. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
  880. package/dist/components/motion/pull-to-refresh.js +22 -11
  881. package/dist/components/motion/pull-to-refresh.js.map +1 -1
  882. package/dist/components/motion/radio.d.ts +10 -0
  883. package/dist/components/motion/radio.d.ts.map +1 -1
  884. package/dist/components/motion/radio.js +2 -2
  885. package/dist/components/motion/radio.js.map +1 -1
  886. package/dist/components/motion/range-slider-bubble.d.ts +1 -0
  887. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
  888. package/dist/components/motion/range-slider-bubble.js +7 -7
  889. package/dist/components/motion/range-slider-bubble.js.map +1 -1
  890. package/dist/components/motion/range-slider-fluid.d.ts +1 -0
  891. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
  892. package/dist/components/motion/range-slider-fluid.js +5 -5
  893. package/dist/components/motion/range-slider-fluid.js.map +1 -1
  894. package/dist/components/motion/range-slider-inline.d.ts +1 -0
  895. package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
  896. package/dist/components/motion/range-slider-inline.js +4 -4
  897. package/dist/components/motion/range-slider-inline.js.map +1 -1
  898. package/dist/components/motion/range-slider-ruler.d.ts +1 -0
  899. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
  900. package/dist/components/motion/range-slider-ruler.js +6 -6
  901. package/dist/components/motion/range-slider-ruler.js.map +1 -1
  902. package/dist/components/motion/range-slider-wave.d.ts +1 -0
  903. package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
  904. package/dist/components/motion/range-slider-wave.js +6 -6
  905. package/dist/components/motion/range-slider-wave.js.map +1 -1
  906. package/dist/components/motion/range-slider.d.ts +1 -0
  907. package/dist/components/motion/range-slider.d.ts.map +1 -1
  908. package/dist/components/motion/range-slider.js +5 -5
  909. package/dist/components/motion/range-slider.js.map +1 -1
  910. package/dist/components/motion/reaction-picker.d.ts +50 -0
  911. package/dist/components/motion/reaction-picker.d.ts.map +1 -0
  912. package/dist/components/motion/reaction-picker.js +516 -0
  913. package/dist/components/motion/reaction-picker.js.map +1 -0
  914. package/dist/components/motion/refresh-button.d.ts +24 -0
  915. package/dist/components/motion/refresh-button.d.ts.map +1 -0
  916. package/dist/components/motion/refresh-button.js +267 -0
  917. package/dist/components/motion/refresh-button.js.map +1 -0
  918. package/dist/components/motion/scroll-progress.d.ts +2 -0
  919. package/dist/components/motion/scroll-progress.d.ts.map +1 -1
  920. package/dist/components/motion/scroll-progress.js +3 -3
  921. package/dist/components/motion/scroll-progress.js.map +1 -1
  922. package/dist/components/motion/scroll-reveal.d.ts +2 -0
  923. package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
  924. package/dist/components/motion/scroll-reveal.js +2 -2
  925. package/dist/components/motion/scroll-reveal.js.map +1 -1
  926. package/dist/components/motion/scroll-to.d.ts +3 -2
  927. package/dist/components/motion/scroll-to.d.ts.map +1 -1
  928. package/dist/components/motion/scroll-to.js +2 -2
  929. package/dist/components/motion/scroll-to.js.map +1 -1
  930. package/dist/components/motion/select-morph.d.ts +17 -3
  931. package/dist/components/motion/select-morph.d.ts.map +1 -1
  932. package/dist/components/motion/select-morph.js +152 -89
  933. package/dist/components/motion/select-morph.js.map +1 -1
  934. package/dist/components/motion/select.d.ts +16 -2
  935. package/dist/components/motion/select.d.ts.map +1 -1
  936. package/dist/components/motion/select.js +153 -64
  937. package/dist/components/motion/select.js.map +1 -1
  938. package/dist/components/motion/send-button.d.ts +23 -0
  939. package/dist/components/motion/send-button.d.ts.map +1 -0
  940. package/dist/components/motion/send-button.js +273 -0
  941. package/dist/components/motion/send-button.js.map +1 -0
  942. package/dist/components/motion/shader-background.js +2 -2
  943. package/dist/components/motion/share-button.d.ts +45 -0
  944. package/dist/components/motion/share-button.d.ts.map +1 -0
  945. package/dist/components/motion/share-button.js +324 -0
  946. package/dist/components/motion/share-button.js.map +1 -0
  947. package/dist/components/motion/shared-layout-bg.js +4 -4
  948. package/dist/components/motion/shared-layout-bg.js.map +1 -1
  949. package/dist/components/motion/signup-form.d.ts +62 -3
  950. package/dist/components/motion/signup-form.d.ts.map +1 -1
  951. package/dist/components/motion/signup-form.js +83 -40
  952. package/dist/components/motion/signup-form.js.map +1 -1
  953. package/dist/components/motion/slide-action-button.d.ts +15 -1
  954. package/dist/components/motion/slide-action-button.d.ts.map +1 -1
  955. package/dist/components/motion/slide-action-button.js +15 -9
  956. package/dist/components/motion/slide-action-button.js.map +1 -1
  957. package/dist/components/motion/slide-game.d.ts +92 -0
  958. package/dist/components/motion/slide-game.d.ts.map +1 -0
  959. package/dist/components/motion/slide-game.js +642 -0
  960. package/dist/components/motion/slide-game.js.map +1 -0
  961. package/dist/components/motion/smooth-scroll.d.ts +4 -2
  962. package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
  963. package/dist/components/motion/smooth-scroll.js +5 -4
  964. package/dist/components/motion/smooth-scroll.js.map +1 -1
  965. package/dist/components/motion/sortable-list.d.ts +21 -1
  966. package/dist/components/motion/sortable-list.d.ts.map +1 -1
  967. package/dist/components/motion/sortable-list.js +41 -16
  968. package/dist/components/motion/sortable-list.js.map +1 -1
  969. package/dist/components/motion/star-rating.d.ts +35 -0
  970. package/dist/components/motion/star-rating.d.ts.map +1 -0
  971. package/dist/components/motion/star-rating.js +253 -0
  972. package/dist/components/motion/star-rating.js.map +1 -0
  973. package/dist/components/motion/status-icon.d.ts +31 -0
  974. package/dist/components/motion/status-icon.d.ts.map +1 -0
  975. package/dist/components/motion/status-icon.js +259 -0
  976. package/dist/components/motion/status-icon.js.map +1 -0
  977. package/dist/components/motion/swap/controls.d.ts +8 -4
  978. package/dist/components/motion/swap/controls.d.ts.map +1 -1
  979. package/dist/components/motion/swap/controls.js +38 -30
  980. package/dist/components/motion/swap/controls.js.map +1 -1
  981. package/dist/components/motion/swap/field.d.ts +4 -2
  982. package/dist/components/motion/swap/field.d.ts.map +1 -1
  983. package/dist/components/motion/swap/field.js +16 -13
  984. package/dist/components/motion/swap/field.js.map +1 -1
  985. package/dist/components/motion/swap/quote-row.d.ts +4 -2
  986. package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
  987. package/dist/components/motion/swap/quote-row.js +10 -8
  988. package/dist/components/motion/swap/quote-row.js.map +1 -1
  989. package/dist/components/motion/swap/token-badges.d.ts +1 -1
  990. package/dist/components/motion/swap/token-badges.js +5 -6
  991. package/dist/components/motion/swap/token-badges.js.map +1 -1
  992. package/dist/components/motion/swap/token-picker.d.ts +4 -2
  993. package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
  994. package/dist/components/motion/swap/token-picker.js +59 -54
  995. package/dist/components/motion/swap/token-picker.js.map +1 -1
  996. package/dist/components/motion/swap.d.ts +12 -4
  997. package/dist/components/motion/swap.d.ts.map +1 -1
  998. package/dist/components/motion/swap.js +31 -19
  999. package/dist/components/motion/swap.js.map +1 -1
  1000. package/dist/components/motion/swipeable-list.d.ts +47 -1
  1001. package/dist/components/motion/swipeable-list.d.ts.map +1 -1
  1002. package/dist/components/motion/swipeable-list.js +17 -9
  1003. package/dist/components/motion/swipeable-list.js.map +1 -1
  1004. package/dist/components/motion/switch.d.ts +9 -1
  1005. package/dist/components/motion/switch.d.ts.map +1 -1
  1006. package/dist/components/motion/switch.js +13 -8
  1007. package/dist/components/motion/switch.js.map +1 -1
  1008. package/dist/components/motion/table/editable-cell.d.ts +2 -1
  1009. package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
  1010. package/dist/components/motion/table/editable-cell.js +2 -2
  1011. package/dist/components/motion/table/editable-cell.js.map +1 -1
  1012. package/dist/components/motion/table/row-handle.d.ts +3 -1
  1013. package/dist/components/motion/table/row-handle.d.ts.map +1 -1
  1014. package/dist/components/motion/table/row-handle.js +7 -7
  1015. package/dist/components/motion/table/row-handle.js.map +1 -1
  1016. package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
  1017. package/dist/components/motion/table/skeleton-rows.js +1 -1
  1018. package/dist/components/motion/table/table-header.d.ts +4 -2
  1019. package/dist/components/motion/table/table-header.d.ts.map +1 -1
  1020. package/dist/components/motion/table/table-header.js +22 -19
  1021. package/dist/components/motion/table/table-header.js.map +1 -1
  1022. package/dist/components/motion/table/table-menu.d.ts.map +1 -1
  1023. package/dist/components/motion/table/table-menu.js +18 -18
  1024. package/dist/components/motion/table/table-menu.js.map +1 -1
  1025. package/dist/components/motion/{table/index.d.ts → table.d.ts} +5 -4
  1026. package/dist/components/motion/table.d.ts.map +1 -0
  1027. package/dist/components/motion/{table/index.js → table.js} +50 -19
  1028. package/dist/components/motion/table.js.map +1 -0
  1029. package/dist/components/motion/tabs.d.ts +24 -4
  1030. package/dist/components/motion/tabs.d.ts.map +1 -1
  1031. package/dist/components/motion/tabs.js +41 -19
  1032. package/dist/components/motion/tabs.js.map +1 -1
  1033. package/dist/components/motion/text-cascade.d.ts +2 -1
  1034. package/dist/components/motion/text-cascade.d.ts.map +1 -1
  1035. package/dist/components/motion/text-cascade.js +1 -1
  1036. package/dist/components/motion/text-cascade.js.map +1 -1
  1037. package/dist/components/motion/text-morph.d.ts +16 -0
  1038. package/dist/components/motion/text-morph.d.ts.map +1 -0
  1039. package/dist/components/motion/text-morph.js +239 -0
  1040. package/dist/components/motion/text-morph.js.map +1 -0
  1041. package/dist/components/motion/text-reveal.d.ts +11 -0
  1042. package/dist/components/motion/text-reveal.d.ts.map +1 -1
  1043. package/dist/components/motion/text-reveal.js +3 -3
  1044. package/dist/components/motion/text-reveal.js.map +1 -1
  1045. package/dist/components/motion/text-scramble.d.ts +2 -0
  1046. package/dist/components/motion/text-scramble.d.ts.map +1 -1
  1047. package/dist/components/motion/text-scramble.js +1 -1
  1048. package/dist/components/motion/text-scramble.js.map +1 -1
  1049. package/dist/components/motion/text-shimmer.d.ts +3 -0
  1050. package/dist/components/motion/text-shimmer.d.ts.map +1 -1
  1051. package/dist/components/motion/text-shimmer.js +1 -1
  1052. package/dist/components/motion/text-shimmer.js.map +1 -1
  1053. package/dist/components/motion/theme-toggle.d.ts +12 -1
  1054. package/dist/components/motion/theme-toggle.d.ts.map +1 -1
  1055. package/dist/components/motion/theme-toggle.js +19 -11
  1056. package/dist/components/motion/theme-toggle.js.map +1 -1
  1057. package/dist/components/motion/tilt-card.d.ts +3 -0
  1058. package/dist/components/motion/tilt-card.d.ts.map +1 -1
  1059. package/dist/components/motion/tilt-card.js +3 -3
  1060. package/dist/components/motion/tilt-card.js.map +1 -1
  1061. package/dist/components/motion/timeline.d.ts +16 -1
  1062. package/dist/components/motion/timeline.d.ts.map +1 -1
  1063. package/dist/components/motion/timeline.js +26 -7
  1064. package/dist/components/motion/timeline.js.map +1 -1
  1065. package/dist/components/motion/tooltip/positioner.d.ts +1 -1
  1066. package/dist/components/motion/tooltip/positioner.js +1 -1
  1067. package/dist/components/motion/tooltip-surface.d.ts +6 -2
  1068. package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
  1069. package/dist/components/motion/tooltip-surface.js +36 -26
  1070. package/dist/components/motion/tooltip-surface.js.map +1 -1
  1071. package/dist/components/motion/tooltip.d.ts +9 -3
  1072. package/dist/components/motion/tooltip.d.ts.map +1 -1
  1073. package/dist/components/motion/tooltip.js +1 -1
  1074. package/dist/components/motion/upvote-button.d.ts +30 -0
  1075. package/dist/components/motion/upvote-button.d.ts.map +1 -0
  1076. package/dist/components/motion/upvote-button.js +144 -0
  1077. package/dist/components/motion/upvote-button.js.map +1 -0
  1078. package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
  1079. package/dist/components/motion/wallet-card/account-avatar.js +1 -1
  1080. package/dist/components/motion/wallet-card/account-switcher.d.ts +5 -3
  1081. package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
  1082. package/dist/components/motion/wallet-card/account-switcher.js +23 -16
  1083. package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
  1084. package/dist/components/motion/wallet-card/actions.d.ts +3 -1
  1085. package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
  1086. package/dist/components/motion/wallet-card/actions.js +33 -29
  1087. package/dist/components/motion/wallet-card/actions.js.map +1 -1
  1088. package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
  1089. package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
  1090. package/dist/components/motion/wallet-card/balance-delta.js +6 -6
  1091. package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
  1092. package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
  1093. package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
  1094. package/dist/components/motion/wallet-card/copy-button.js +13 -7
  1095. package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
  1096. package/dist/components/motion/wallet-card/search-bar.d.ts +4 -2
  1097. package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
  1098. package/dist/components/motion/wallet-card/search-bar.js +21 -18
  1099. package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
  1100. package/dist/components/motion/wallet-card.d.ts +16 -0
  1101. package/dist/components/motion/wallet-card.d.ts.map +1 -0
  1102. package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +26 -19
  1103. package/dist/components/motion/wallet-card.js.map +1 -0
  1104. package/dist/components/motion/wave-reveal.d.ts +25 -0
  1105. package/dist/components/motion/wave-reveal.d.ts.map +1 -0
  1106. package/dist/components/motion/wave-reveal.js +630 -0
  1107. package/dist/components/motion/wave-reveal.js.map +1 -0
  1108. package/dist/components/motion/wheel-picker.d.ts +7 -0
  1109. package/dist/components/motion/wheel-picker.d.ts.map +1 -1
  1110. package/dist/components/motion/wheel-picker.js +15 -5
  1111. package/dist/components/motion/wheel-picker.js.map +1 -1
  1112. package/dist/components/reui/alert.d.ts +1 -1
  1113. package/dist/components/reui/alert.js +1 -1
  1114. package/dist/components/reui/autocomplete.d.ts +1 -1
  1115. package/dist/components/reui/autocomplete.js +4 -4
  1116. package/dist/components/reui/badge.d.ts +2 -2
  1117. package/dist/components/reui/badge.js +2 -2
  1118. package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
  1119. package/dist/components/reui/cascader/cascader-async.js +37 -37
  1120. package/dist/components/reui/cascader/cascader-async.js.map +1 -1
  1121. package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
  1122. package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
  1123. package/dist/components/reui/cascader/cascader-columns.js +6 -6
  1124. package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
  1125. package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
  1126. package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
  1127. package/dist/components/reui/cascader/cascader-context.js +10 -10
  1128. package/dist/components/reui/cascader/cascader-context.js.map +1 -1
  1129. package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
  1130. package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
  1131. package/dist/components/reui/cascader/cascader-footer.js +32 -33
  1132. package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
  1133. package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
  1134. package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
  1135. package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
  1136. package/dist/components/reui/cascader/cascader-item.js +27 -27
  1137. package/dist/components/reui/cascader/cascader-item.js.map +1 -1
  1138. package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
  1139. package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
  1140. package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
  1141. package/dist/components/reui/cascader/cascader-nav.js +12 -12
  1142. package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
  1143. package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
  1144. package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
  1145. package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
  1146. package/dist/components/reui/cascader/cascader-virtual.js +13 -13
  1147. package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
  1148. package/dist/components/reui/cascader/cascader.d.ts +24 -24
  1149. package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
  1150. package/dist/components/reui/cascader/cascader.js +110 -110
  1151. package/dist/components/reui/cascader/cascader.js.map +1 -1
  1152. package/dist/components/reui/code-block/code-block.d.ts +1 -1
  1153. package/dist/components/reui/code-block/code-block.js +2 -2
  1154. package/dist/components/reui/code-block/code-block.js.map +1 -1
  1155. package/dist/components/reui/color-picker.d.ts +1 -1
  1156. package/dist/components/reui/color-picker.js +7 -7
  1157. package/dist/components/reui/color-picker.js.map +1 -1
  1158. package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
  1159. package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
  1160. package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
  1161. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
  1162. package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
  1163. package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
  1164. package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
  1165. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
  1166. package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
  1167. package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
  1168. package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
  1169. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
  1170. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
  1171. package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
  1172. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
  1173. package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
  1174. package/dist/components/reui/data-grid/data-grid-table.d.ts +1 -1
  1175. package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
  1176. package/dist/components/reui/data-grid/data-grid-table.js +4 -4
  1177. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  1178. package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
  1179. package/dist/components/reui/data-grid/data-grid.js +2 -2
  1180. package/dist/components/reui/date-selector.js +4 -4
  1181. package/dist/components/reui/emoji-picker.d.ts +1 -1
  1182. package/dist/components/reui/emoji-picker.js +5 -5
  1183. package/dist/components/reui/emoji-picker.js.map +1 -1
  1184. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
  1185. package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
  1186. package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
  1187. package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
  1188. package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
  1189. package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
  1190. package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
  1191. package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
  1192. package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
  1193. package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
  1194. package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
  1195. package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
  1196. package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
  1197. package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
  1198. package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
  1199. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
  1200. package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
  1201. package/dist/components/reui/event-calendar/event-calendar.js +4 -4
  1202. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  1203. package/dist/components/reui/file-type.js +1 -1
  1204. package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
  1205. package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
  1206. package/dist/components/reui/filters/filters-advanced.js +35 -35
  1207. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  1208. package/dist/components/reui/filters/filters-builder.d.ts +5 -5
  1209. package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
  1210. package/dist/components/reui/filters/filters-builder.js +6 -6
  1211. package/dist/components/reui/filters/filters-builder.js.map +1 -1
  1212. package/dist/components/reui/filters/filters-chip.d.ts +10 -10
  1213. package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
  1214. package/dist/components/reui/filters/filters-chip.js +20 -20
  1215. package/dist/components/reui/filters/filters-chip.js.map +1 -1
  1216. package/dist/components/reui/filters/filters-context.d.ts +11 -11
  1217. package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
  1218. package/dist/components/reui/filters/filters-context.js +27 -27
  1219. package/dist/components/reui/filters/filters-context.js.map +1 -1
  1220. package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
  1221. package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
  1222. package/dist/components/reui/filters/filters-dnd.js +5 -5
  1223. package/dist/components/reui/filters/filters-dnd.js.map +1 -1
  1224. package/dist/components/reui/filters/filters-draft.d.ts +1 -1
  1225. package/dist/components/reui/filters/filters-editors.d.ts +9 -9
  1226. package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
  1227. package/dist/components/reui/filters/filters-editors.js +41 -41
  1228. package/dist/components/reui/filters/filters-editors.js.map +1 -1
  1229. package/dist/components/reui/filters/filters-lib.d.ts +1 -1
  1230. package/dist/components/reui/filters/filters-types.d.ts +7 -7
  1231. package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
  1232. package/dist/components/reui/filters/filters.d.ts +9 -9
  1233. package/dist/components/reui/filters/filters.d.ts.map +1 -1
  1234. package/dist/components/reui/filters/filters.js +56 -56
  1235. package/dist/components/reui/filters/filters.js.map +1 -1
  1236. package/dist/components/reui/frame.d.ts +1 -1
  1237. package/dist/components/reui/frame.js +2 -2
  1238. package/dist/components/reui/frame.js.map +1 -1
  1239. package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
  1240. package/dist/components/reui/gantt/gantt-bar.js +5 -5
  1241. package/dist/components/reui/gantt/gantt-dnd.js +5 -5
  1242. package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
  1243. package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
  1244. package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
  1245. package/dist/components/reui/gantt/gantt-lib.js +4 -4
  1246. package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
  1247. package/dist/components/reui/gantt/gantt-nav.js +6 -6
  1248. package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
  1249. package/dist/components/reui/gantt/gantt-view.js +11 -11
  1250. package/dist/components/reui/gantt/gantt-view.js.map +1 -1
  1251. package/dist/components/reui/gantt/gantt.d.ts +3 -3
  1252. package/dist/components/reui/gantt/gantt.js +4 -4
  1253. package/dist/components/reui/gantt/gantt.js.map +1 -1
  1254. package/dist/components/reui/icon-tile.d.ts +2 -2
  1255. package/dist/components/reui/icon-tile.js +2 -2
  1256. package/dist/components/reui/kanban.d.ts +11 -11
  1257. package/dist/components/reui/kanban.d.ts.map +1 -1
  1258. package/dist/components/reui/kanban.js +3 -3
  1259. package/dist/components/reui/number-field.d.ts +1 -1
  1260. package/dist/components/reui/number-field.js +4 -4
  1261. package/dist/components/reui/phone-input.js +5 -5
  1262. package/dist/components/reui/rating.js +2 -2
  1263. package/dist/components/reui/scrollspy.js +1 -1
  1264. package/dist/components/reui/signature-pad.d.ts +1 -1
  1265. package/dist/components/reui/signature-pad.js +7 -7
  1266. package/dist/components/reui/signature-pad.js.map +1 -1
  1267. package/dist/components/reui/sortable.d.ts +7 -7
  1268. package/dist/components/reui/sortable.d.ts.map +1 -1
  1269. package/dist/components/reui/sortable.js +3 -3
  1270. package/dist/components/reui/stepper.js +2 -2
  1271. package/dist/components/reui/time-picker.d.ts +1 -1
  1272. package/dist/components/reui/time-picker.js +4 -4
  1273. package/dist/components/reui/timeline.js +2 -2
  1274. package/dist/components/reui/tree.js +3 -3
  1275. package/dist/components/ui/accordion.js +2 -2
  1276. package/dist/components/ui/alert-dialog.d.ts +14 -14
  1277. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  1278. package/dist/components/ui/alert-dialog.js +2 -2
  1279. package/dist/components/ui/alert.d.ts +5 -5
  1280. package/dist/components/ui/alert.d.ts.map +1 -1
  1281. package/dist/components/ui/alert.js +1 -1
  1282. package/dist/components/ui/attachment.d.ts +14 -14
  1283. package/dist/components/ui/attachment.d.ts.map +1 -1
  1284. package/dist/components/ui/attachment.js +4 -4
  1285. package/dist/components/ui/avatar.d.ts +7 -7
  1286. package/dist/components/ui/avatar.d.ts.map +1 -1
  1287. package/dist/components/ui/avatar.js +1 -1
  1288. package/dist/components/ui/badge.d.ts +2 -2
  1289. package/dist/components/ui/badge.js +2 -2
  1290. package/dist/components/ui/breadcrumb.d.ts +8 -8
  1291. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  1292. package/dist/components/ui/breadcrumb.js +3 -3
  1293. package/dist/components/ui/bubble.d.ts +9 -9
  1294. package/dist/components/ui/bubble.d.ts.map +1 -1
  1295. package/dist/components/ui/bubble.js +3 -3
  1296. package/dist/components/ui/button-group.d.ts +3 -3
  1297. package/dist/components/ui/button-group.js +4 -4
  1298. package/dist/components/ui/button.d.ts +2 -2
  1299. package/dist/components/ui/button.js +2 -2
  1300. package/dist/components/ui/calendar.d.ts +7 -7
  1301. package/dist/components/ui/calendar.d.ts.map +1 -1
  1302. package/dist/components/ui/calendar.js +7 -7
  1303. package/dist/components/ui/calendar.js.map +1 -1
  1304. package/dist/components/ui/card.d.ts +9 -9
  1305. package/dist/components/ui/card.d.ts.map +1 -1
  1306. package/dist/components/ui/card.js +1 -1
  1307. package/dist/components/ui/card.js.map +1 -1
  1308. package/dist/components/ui/carousel.d.ts +7 -7
  1309. package/dist/components/ui/carousel.d.ts.map +1 -1
  1310. package/dist/components/ui/carousel.js +14 -14
  1311. package/dist/components/ui/carousel.js.map +1 -1
  1312. package/dist/components/ui/chart.d.ts +12 -12
  1313. package/dist/components/ui/chart.d.ts.map +1 -1
  1314. package/dist/components/ui/chart.js +6 -6
  1315. package/dist/components/ui/chart.js.map +1 -1
  1316. package/dist/components/ui/checkbox.js +2 -2
  1317. package/dist/components/ui/code-block.d.ts +13 -13
  1318. package/dist/components/ui/code-block.d.ts.map +1 -1
  1319. package/dist/components/ui/code-block.js +6 -6
  1320. package/dist/components/ui/code-block.js.map +1 -1
  1321. package/dist/components/ui/collapsible.js +1 -1
  1322. package/dist/components/ui/combobox.d.ts +16 -16
  1323. package/dist/components/ui/combobox.d.ts.map +1 -1
  1324. package/dist/components/ui/combobox.js +7 -7
  1325. package/dist/components/ui/combobox.js.map +1 -1
  1326. package/dist/components/ui/command.d.ts +13 -13
  1327. package/dist/components/ui/command.d.ts.map +1 -1
  1328. package/dist/components/ui/command.js +3 -3
  1329. package/dist/components/ui/context-menu.d.ts +16 -16
  1330. package/dist/components/ui/context-menu.d.ts.map +1 -1
  1331. package/dist/components/ui/context-menu.js +2 -2
  1332. package/dist/components/ui/dialog.d.ts +12 -12
  1333. package/dist/components/ui/dialog.d.ts.map +1 -1
  1334. package/dist/components/ui/dialog.js +3 -3
  1335. package/dist/components/ui/drawer.d.ts +12 -12
  1336. package/dist/components/ui/drawer.d.ts.map +1 -1
  1337. package/dist/components/ui/drawer.js +5 -5
  1338. package/dist/components/ui/drawer.js.map +1 -1
  1339. package/dist/components/ui/dropdown-menu.d.ts +16 -16
  1340. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  1341. package/dist/components/ui/dropdown-menu.js +2 -2
  1342. package/dist/components/ui/empty.js +1 -1
  1343. package/dist/components/ui/field.d.ts +2 -2
  1344. package/dist/components/ui/field.js +3 -3
  1345. package/dist/components/ui/hover-card.js +1 -1
  1346. package/dist/components/ui/input-group.d.ts +9 -9
  1347. package/dist/components/ui/input-group.d.ts.map +1 -1
  1348. package/dist/components/ui/input-group.js +2 -2
  1349. package/dist/components/ui/input-otp.d.ts +7 -7
  1350. package/dist/components/ui/input-otp.d.ts.map +1 -1
  1351. package/dist/components/ui/input-otp.js +4 -4
  1352. package/dist/components/ui/input-otp.js.map +1 -1
  1353. package/dist/components/ui/input.d.ts +2 -2
  1354. package/dist/components/ui/input.d.ts.map +1 -1
  1355. package/dist/components/ui/input.js +1 -1
  1356. package/dist/components/ui/item.d.ts +14 -14
  1357. package/dist/components/ui/item.d.ts.map +1 -1
  1358. package/dist/components/ui/item.js +4 -4
  1359. package/dist/components/ui/label.d.ts +2 -2
  1360. package/dist/components/ui/label.d.ts.map +1 -1
  1361. package/dist/components/ui/marker.d.ts +6 -6
  1362. package/dist/components/ui/marker.d.ts.map +1 -1
  1363. package/dist/components/ui/marker.js +3 -3
  1364. package/dist/components/ui/menubar.d.ts +20 -20
  1365. package/dist/components/ui/menubar.d.ts.map +1 -1
  1366. package/dist/components/ui/menubar.js +4 -4
  1367. package/dist/components/ui/message-scroller.d.ts +8 -8
  1368. package/dist/components/ui/message-scroller.d.ts.map +1 -1
  1369. package/dist/components/ui/message-scroller.js +3 -3
  1370. package/dist/components/ui/message.d.ts +8 -8
  1371. package/dist/components/ui/message.d.ts.map +1 -1
  1372. package/dist/components/ui/native-select.d.ts +5 -5
  1373. package/dist/components/ui/native-select.d.ts.map +1 -1
  1374. package/dist/components/ui/native-select.js +1 -1
  1375. package/dist/components/ui/navigation-menu.js +3 -3
  1376. package/dist/components/ui/pagination.d.ts +11 -11
  1377. package/dist/components/ui/pagination.d.ts.map +1 -1
  1378. package/dist/components/ui/pagination.js +2 -2
  1379. package/dist/components/ui/popover.d.ts +7 -7
  1380. package/dist/components/ui/popover.d.ts.map +1 -1
  1381. package/dist/components/ui/popover.js +1 -1
  1382. package/dist/components/ui/progress.js +1 -1
  1383. package/dist/components/ui/questionnaire.d.ts +17 -17
  1384. package/dist/components/ui/questionnaire.d.ts.map +1 -1
  1385. package/dist/components/ui/questionnaire.js +5 -5
  1386. package/dist/components/ui/questionnaire.js.map +1 -1
  1387. package/dist/components/ui/radio-group.js +2 -2
  1388. package/dist/components/ui/resizable.js +1 -1
  1389. package/dist/components/ui/scroll-area.js +1 -1
  1390. package/dist/components/ui/select.d.ts +10 -10
  1391. package/dist/components/ui/select.d.ts.map +1 -1
  1392. package/dist/components/ui/select.js +2 -2
  1393. package/dist/components/ui/separator.js +1 -1
  1394. package/dist/components/ui/sheet.d.ts +9 -9
  1395. package/dist/components/ui/sheet.d.ts.map +1 -1
  1396. package/dist/components/ui/sheet.js +3 -3
  1397. package/dist/components/ui/sidebar.d.ts +33 -33
  1398. package/dist/components/ui/sidebar.d.ts.map +1 -1
  1399. package/dist/components/ui/sidebar.js +16 -16
  1400. package/dist/components/ui/sidebar.js.map +1 -1
  1401. package/dist/components/ui/slider.js +1 -1
  1402. package/dist/components/ui/spinner.js +1 -1
  1403. package/dist/components/ui/switch.js +1 -1
  1404. package/dist/components/ui/table.d.ts +9 -9
  1405. package/dist/components/ui/table.d.ts.map +1 -1
  1406. package/dist/components/ui/tabs.d.ts +2 -2
  1407. package/dist/components/ui/tabs.js +2 -2
  1408. package/dist/components/ui/textarea.d.ts +2 -2
  1409. package/dist/components/ui/textarea.d.ts.map +1 -1
  1410. package/dist/components/ui/toast.d.ts +11 -11
  1411. package/dist/components/ui/toast.d.ts.map +1 -1
  1412. package/dist/components/ui/toast.js +3 -3
  1413. package/dist/components/ui/toggle-group.d.ts +5 -5
  1414. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  1415. package/dist/components/ui/toggle-group.js +7 -7
  1416. package/dist/components/ui/toggle-group.js.map +1 -1
  1417. package/dist/components/ui/toggle.d.ts +1 -1
  1418. package/dist/components/ui/toggle.js +2 -2
  1419. package/dist/components/ui/tooltip.js +1 -1
  1420. package/dist/components/ui/trace.d.ts +12 -12
  1421. package/dist/components/ui/trace.d.ts.map +1 -1
  1422. package/dist/components/ui/trace.js +3 -3
  1423. package/dist/components/ui/trace.js.map +1 -1
  1424. package/dist/{constants-evLzfUhL.js → constants-DfbfCDSg.js} +3 -6
  1425. package/dist/constants-DfbfCDSg.js.map +1 -0
  1426. package/dist/{context-tv-kneJV.d.ts → context-4tt2I7Qm.d.ts} +39 -6
  1427. package/dist/context-4tt2I7Qm.d.ts.map +1 -0
  1428. package/dist/{context-C5TW-k6u.js → context-B3BNuwGu.js} +47 -31
  1429. package/dist/context-B3BNuwGu.js.map +1 -0
  1430. package/dist/context-BFNkGCGz.d.ts +82 -0
  1431. package/dist/context-BFNkGCGz.d.ts.map +1 -0
  1432. package/dist/{context-DUx44mGi.js → context-BG1Wzdnj.js} +34 -14
  1433. package/dist/context-BG1Wzdnj.js.map +1 -0
  1434. package/dist/{context-ChsuSih6.js → context-Bx-OaIL8.js} +36 -21
  1435. package/dist/context-Bx-OaIL8.js.map +1 -0
  1436. package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
  1437. package/dist/context-C92iQeLO.js.map +1 -0
  1438. package/dist/{context-CQbvWVnM.js → context-C9LHO4MN.js} +42 -35
  1439. package/dist/context-C9LHO4MN.js.map +1 -0
  1440. package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
  1441. package/dist/context-CHXHCbuu.js.map +1 -0
  1442. package/dist/context-CIzAPhXA.js +170 -0
  1443. package/dist/context-CIzAPhXA.js.map +1 -0
  1444. package/dist/context-CP3spicY.d.ts +87 -0
  1445. package/dist/context-CP3spicY.d.ts.map +1 -0
  1446. package/dist/{context-DWXNECDe.js → context-Cg1VelQJ.js} +30 -28
  1447. package/dist/context-Cg1VelQJ.js.map +1 -0
  1448. package/dist/{context-CXlD0FcC.js → context-DDoVOc0D.js} +35 -28
  1449. package/dist/context-DDoVOc0D.js.map +1 -0
  1450. package/dist/{context-D-juVNr2.d.ts → context-DMIy-rFm.d.ts} +29 -3
  1451. package/dist/context-DMIy-rFm.d.ts.map +1 -0
  1452. package/dist/context-DR6jkfea.js +11 -0
  1453. package/dist/context-DR6jkfea.js.map +1 -0
  1454. package/dist/context-DcJtX6ht.js +166 -0
  1455. package/dist/context-DcJtX6ht.js.map +1 -0
  1456. package/dist/{context-i6Dwvi3T.js → context-Dg48xMuG.js} +47 -27
  1457. package/dist/context-Dg48xMuG.js.map +1 -0
  1458. package/dist/context-DnM-b9yO.js +23 -0
  1459. package/dist/context-DnM-b9yO.js.map +1 -0
  1460. package/dist/context-DtFeYksF.d.ts +28 -0
  1461. package/dist/context-DtFeYksF.d.ts.map +1 -0
  1462. package/dist/{context-Dk6C9IvC.js → context-cRAJSFxf.js} +51 -15
  1463. package/dist/context-cRAJSFxf.js.map +1 -0
  1464. package/dist/{context-mjP5wifG.d.ts → context-jX-r_7EP.d.ts} +37 -6
  1465. package/dist/context-jX-r_7EP.d.ts.map +1 -0
  1466. package/dist/{copy-menu-LU54Aruj.js → copy-menu-Bgoo5oWq.js} +46 -27
  1467. package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
  1468. package/dist/{crash-parts-CUv5gFYQ.js → crash-parts-BkrZ6iBE.js} +109 -236
  1469. package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
  1470. package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
  1471. package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
  1472. package/dist/date-utils-DVDYcEA_.js +35 -0
  1473. package/dist/date-utils-DVDYcEA_.js.map +1 -0
  1474. package/dist/{ease-DjhlGGZO.d.ts → ease-D_-bhUDt.d.ts} +13 -6
  1475. package/dist/ease-D_-bhUDt.d.ts.map +1 -0
  1476. package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
  1477. package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
  1478. package/dist/formats-ColrL9Eg.js +58 -0
  1479. package/dist/formats-ColrL9Eg.js.map +1 -0
  1480. package/dist/game-parts-B635BoSe.d.ts +89 -0
  1481. package/dist/game-parts-B635BoSe.d.ts.map +1 -0
  1482. package/dist/hooks/use-controllable.d.ts +10 -0
  1483. package/dist/hooks/use-controllable.d.ts.map +1 -0
  1484. package/dist/hooks/use-controllable.js +39 -0
  1485. package/dist/hooks/use-controllable.js.map +1 -0
  1486. package/dist/hooks/use-copy-to-clipboard.js +5 -5
  1487. package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
  1488. package/dist/hooks/use-copy.d.ts +16 -0
  1489. package/dist/hooks/use-copy.d.ts.map +1 -0
  1490. package/dist/hooks/use-copy.js +36 -0
  1491. package/dist/hooks/use-copy.js.map +1 -0
  1492. package/dist/hooks/use-dismiss.d.ts +17 -5
  1493. package/dist/hooks/use-dismiss.d.ts.map +1 -1
  1494. package/dist/hooks/use-dismiss.js +36 -24
  1495. package/dist/hooks/use-dismiss.js.map +1 -1
  1496. package/dist/hooks/use-favicon.js +1 -1
  1497. package/dist/hooks/use-focus-trap.d.ts +4 -3
  1498. package/dist/hooks/use-focus-trap.d.ts.map +1 -1
  1499. package/dist/hooks/use-focus-trap.js +25 -37
  1500. package/dist/hooks/use-focus-trap.js.map +1 -1
  1501. package/dist/hooks/use-highlighted-code.d.ts +2 -2
  1502. package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
  1503. package/dist/hooks/use-highlighted-code.js +6 -76
  1504. package/dist/hooks/use-highlighted-code.js.map +1 -1
  1505. package/dist/hooks/use-hover-capable.d.ts +1 -1
  1506. package/dist/hooks/use-hover-capable.js +1 -1
  1507. package/dist/hooks/use-hover-capable.js.map +1 -1
  1508. package/dist/hooks/use-hover-gesture.d.ts +5 -5
  1509. package/dist/hooks/use-hover-gesture.js +6 -6
  1510. package/dist/hooks/use-hover-gesture.js.map +1 -1
  1511. package/dist/hooks/use-intersection-observer.d.ts +2 -2
  1512. package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
  1513. package/dist/hooks/use-intersection-observer.js +4 -4
  1514. package/dist/hooks/use-intersection-observer.js.map +1 -1
  1515. package/dist/hooks/use-listbox.d.ts +1 -0
  1516. package/dist/hooks/use-listbox.js +3 -2
  1517. package/dist/hooks/use-listbox.js.map +1 -1
  1518. package/dist/hooks/use-meta-color.js +7 -7
  1519. package/dist/hooks/use-meta-color.js.map +1 -1
  1520. package/dist/hooks/use-mobile.js +3 -3
  1521. package/dist/hooks/use-mobile.js.map +1 -1
  1522. package/dist/hooks/use-modal-scope.js +22 -26
  1523. package/dist/hooks/use-modal-scope.js.map +1 -1
  1524. package/dist/hooks/use-mutation-observer.d.ts +2 -2
  1525. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  1526. package/dist/hooks/use-mutation-observer.js +2 -2
  1527. package/dist/hooks/use-mutation-observer.js.map +1 -1
  1528. package/dist/hooks/use-on-open.d.ts +3 -3
  1529. package/dist/hooks/use-on-open.js +3 -3
  1530. package/dist/hooks/use-on-open.js.map +1 -1
  1531. package/dist/hooks/use-row-cursor.d.ts +2 -2
  1532. package/dist/hooks/use-row-cursor.js +2 -2
  1533. package/dist/hooks/use-row-cursor.js.map +1 -1
  1534. package/dist/hooks/use-slider-input.d.ts +4 -4
  1535. package/dist/hooks/use-slider-input.d.ts.map +1 -1
  1536. package/dist/hooks/use-slider.d.ts +13 -3
  1537. package/dist/hooks/use-slider.d.ts.map +1 -1
  1538. package/dist/hooks/use-slider.js +23 -4
  1539. package/dist/hooks/use-slider.js.map +1 -1
  1540. package/dist/hooks/use-status-open.d.ts +26 -0
  1541. package/dist/hooks/use-status-open.d.ts.map +1 -0
  1542. package/dist/hooks/use-status-open.js +43 -0
  1543. package/dist/hooks/use-status-open.js.map +1 -0
  1544. package/dist/hooks/use-tap-gesture.d.ts +3 -3
  1545. package/dist/hooks/use-tap-gesture.js +3 -3
  1546. package/dist/hooks/use-tap-gesture.js.map +1 -1
  1547. package/dist/i18n-BRH0Y7Sm.d.ts +34 -0
  1548. package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
  1549. package/dist/lib/audio-context.d.ts +27 -1
  1550. package/dist/lib/audio-context.d.ts.map +1 -1
  1551. package/dist/lib/audio-context.js +61 -2
  1552. package/dist/lib/audio-context.js.map +1 -1
  1553. package/dist/lib/book-sounds.d.ts +18 -0
  1554. package/dist/lib/book-sounds.d.ts.map +1 -0
  1555. package/dist/lib/book-sounds.js +201 -0
  1556. package/dist/lib/book-sounds.js.map +1 -0
  1557. package/dist/lib/color.d.ts +29 -0
  1558. package/dist/lib/color.d.ts.map +1 -0
  1559. package/dist/lib/color.js +93 -0
  1560. package/dist/lib/color.js.map +1 -0
  1561. package/dist/lib/command-search.d.ts +7 -1
  1562. package/dist/lib/command-search.d.ts.map +1 -1
  1563. package/dist/lib/command-search.js +42 -19
  1564. package/dist/lib/command-search.js.map +1 -1
  1565. package/dist/lib/ease.d.ts +2 -2
  1566. package/dist/lib/ease.js +12 -5
  1567. package/dist/lib/ease.js.map +1 -1
  1568. package/dist/lib/focusable.d.ts +10 -0
  1569. package/dist/lib/focusable.d.ts.map +1 -1
  1570. package/dist/lib/focusable.js +31 -1
  1571. package/dist/lib/focusable.js.map +1 -1
  1572. package/dist/lib/game-sounds.d.ts.map +1 -1
  1573. package/dist/lib/game-sounds.js +7 -14
  1574. package/dist/lib/game-sounds.js.map +1 -1
  1575. package/dist/lib/highlighter.d.ts +10 -0
  1576. package/dist/lib/highlighter.d.ts.map +1 -0
  1577. package/dist/lib/highlighter.js +78 -0
  1578. package/dist/lib/highlighter.js.map +1 -0
  1579. package/dist/lib/i18n.d.ts +2 -0
  1580. package/dist/lib/i18n.js +51 -0
  1581. package/dist/lib/i18n.js.map +1 -0
  1582. package/dist/lib/layers.d.ts +24 -0
  1583. package/dist/lib/layers.d.ts.map +1 -0
  1584. package/dist/lib/layers.js +47 -0
  1585. package/dist/lib/layers.js.map +1 -0
  1586. package/dist/lib/merge-refs.d.ts +6 -0
  1587. package/dist/lib/merge-refs.d.ts.map +1 -0
  1588. package/dist/lib/merge-refs.js +15 -0
  1589. package/dist/lib/merge-refs.js.map +1 -0
  1590. package/dist/lib/presence-gate.d.ts +39 -0
  1591. package/dist/lib/presence-gate.d.ts.map +1 -0
  1592. package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
  1593. package/dist/lib/presence-gate.js.map +1 -0
  1594. package/dist/lib/scroll-lock.d.ts +13 -0
  1595. package/dist/lib/scroll-lock.d.ts.map +1 -0
  1596. package/dist/lib/scroll-lock.js +59 -0
  1597. package/dist/lib/scroll-lock.js.map +1 -0
  1598. package/dist/lib/sound.d.ts +30 -0
  1599. package/dist/lib/sound.d.ts.map +1 -0
  1600. package/dist/lib/sound.js +95 -0
  1601. package/dist/lib/sound.js.map +1 -0
  1602. package/dist/lib/sounds/bell.d.ts +4 -0
  1603. package/dist/lib/sounds/bell.d.ts.map +1 -0
  1604. package/dist/lib/sounds/bell.js +36 -0
  1605. package/dist/lib/sounds/bell.js.map +1 -0
  1606. package/dist/lib/sounds/bubble.d.ts +4 -0
  1607. package/dist/lib/sounds/bubble.d.ts.map +1 -0
  1608. package/dist/lib/sounds/bubble.js +27 -0
  1609. package/dist/lib/sounds/bubble.js.map +1 -0
  1610. package/dist/lib/sounds/burst.d.ts +4 -0
  1611. package/dist/lib/sounds/burst.d.ts.map +1 -0
  1612. package/dist/lib/sounds/burst.js +45 -0
  1613. package/dist/lib/sounds/burst.js.map +1 -0
  1614. package/dist/lib/sounds/buzz.d.ts +4 -0
  1615. package/dist/lib/sounds/buzz.d.ts.map +1 -0
  1616. package/dist/lib/sounds/buzz.js +26 -0
  1617. package/dist/lib/sounds/buzz.js.map +1 -0
  1618. package/dist/lib/sounds/camera.d.ts +4 -0
  1619. package/dist/lib/sounds/camera.d.ts.map +1 -0
  1620. package/dist/lib/sounds/camera.js +40 -0
  1621. package/dist/lib/sounds/camera.js.map +1 -0
  1622. package/dist/lib/sounds/check.d.ts +4 -0
  1623. package/dist/lib/sounds/check.d.ts.map +1 -0
  1624. package/dist/lib/sounds/check.js +40 -0
  1625. package/dist/lib/sounds/check.js.map +1 -0
  1626. package/dist/lib/sounds/chime.d.ts +4 -0
  1627. package/dist/lib/sounds/chime.d.ts.map +1 -0
  1628. package/dist/lib/sounds/chime.js +33 -0
  1629. package/dist/lib/sounds/chime.js.map +1 -0
  1630. package/dist/lib/sounds/close.d.ts +4 -0
  1631. package/dist/lib/sounds/close.d.ts.map +1 -0
  1632. package/dist/lib/sounds/close.js +36 -0
  1633. package/dist/lib/sounds/close.js.map +1 -0
  1634. package/dist/lib/sounds/coin.d.ts +4 -0
  1635. package/dist/lib/sounds/coin.d.ts.map +1 -0
  1636. package/dist/lib/sounds/coin.js +31 -0
  1637. package/dist/lib/sounds/coin.js.map +1 -0
  1638. package/dist/lib/sounds/collapse.d.ts +4 -0
  1639. package/dist/lib/sounds/collapse.d.ts.map +1 -0
  1640. package/dist/lib/sounds/collapse.js +41 -0
  1641. package/dist/lib/sounds/collapse.js.map +1 -0
  1642. package/dist/lib/sounds/connect.d.ts +4 -0
  1643. package/dist/lib/sounds/connect.d.ts.map +1 -0
  1644. package/dist/lib/sounds/connect.js +39 -0
  1645. package/dist/lib/sounds/connect.js.map +1 -0
  1646. package/dist/lib/sounds/copy.d.ts +4 -0
  1647. package/dist/lib/sounds/copy.d.ts.map +1 -0
  1648. package/dist/lib/sounds/copy.js +39 -0
  1649. package/dist/lib/sounds/copy.js.map +1 -0
  1650. package/dist/lib/sounds/delete.d.ts +4 -0
  1651. package/dist/lib/sounds/delete.d.ts.map +1 -0
  1652. package/dist/lib/sounds/delete.js +39 -0
  1653. package/dist/lib/sounds/delete.js.map +1 -0
  1654. package/dist/lib/sounds/disconnect.d.ts +4 -0
  1655. package/dist/lib/sounds/disconnect.d.ts.map +1 -0
  1656. package/dist/lib/sounds/disconnect.js +39 -0
  1657. package/dist/lib/sounds/disconnect.js.map +1 -0
  1658. package/dist/lib/sounds/dismiss.d.ts +4 -0
  1659. package/dist/lib/sounds/dismiss.d.ts.map +1 -0
  1660. package/dist/lib/sounds/dismiss.js +27 -0
  1661. package/dist/lib/sounds/dismiss.js.map +1 -0
  1662. package/dist/lib/sounds/dock.d.ts +4 -0
  1663. package/dist/lib/sounds/dock.d.ts.map +1 -0
  1664. package/dist/lib/sounds/dock.js +32 -0
  1665. package/dist/lib/sounds/dock.js.map +1 -0
  1666. package/dist/lib/sounds/drop.d.ts +4 -0
  1667. package/dist/lib/sounds/drop.d.ts.map +1 -0
  1668. package/dist/lib/sounds/drop.js +48 -0
  1669. package/dist/lib/sounds/drop.js.map +1 -0
  1670. package/dist/lib/sounds/engine.d.ts +142 -0
  1671. package/dist/lib/sounds/engine.d.ts.map +1 -0
  1672. package/dist/lib/sounds/engine.js +210 -0
  1673. package/dist/lib/sounds/engine.js.map +1 -0
  1674. package/dist/lib/sounds/error.d.ts +4 -0
  1675. package/dist/lib/sounds/error.d.ts.map +1 -0
  1676. package/dist/lib/sounds/error.js +51 -0
  1677. package/dist/lib/sounds/error.js.map +1 -0
  1678. package/dist/lib/sounds/expand.d.ts +4 -0
  1679. package/dist/lib/sounds/expand.d.ts.map +1 -0
  1680. package/dist/lib/sounds/expand.js +28 -0
  1681. package/dist/lib/sounds/expand.js.map +1 -0
  1682. package/dist/lib/sounds/heart.d.ts +4 -0
  1683. package/dist/lib/sounds/heart.d.ts.map +1 -0
  1684. package/dist/lib/sounds/heart.js +39 -0
  1685. package/dist/lib/sounds/heart.js.map +1 -0
  1686. package/dist/lib/sounds/lift.d.ts +4 -0
  1687. package/dist/lib/sounds/lift.d.ts.map +1 -0
  1688. package/dist/lib/sounds/lift.js +34 -0
  1689. package/dist/lib/sounds/lift.js.map +1 -0
  1690. package/dist/lib/sounds/lock.d.ts +4 -0
  1691. package/dist/lib/sounds/lock.d.ts.map +1 -0
  1692. package/dist/lib/sounds/lock.js +32 -0
  1693. package/dist/lib/sounds/lock.js.map +1 -0
  1694. package/dist/lib/sounds/navigate.d.ts +4 -0
  1695. package/dist/lib/sounds/navigate.d.ts.map +1 -0
  1696. package/dist/lib/sounds/navigate.js +36 -0
  1697. package/dist/lib/sounds/navigate.js.map +1 -0
  1698. package/dist/lib/sounds/notify.d.ts +4 -0
  1699. package/dist/lib/sounds/notify.d.ts.map +1 -0
  1700. package/dist/lib/sounds/notify.js +31 -0
  1701. package/dist/lib/sounds/notify.js.map +1 -0
  1702. package/dist/lib/sounds/open.d.ts +4 -0
  1703. package/dist/lib/sounds/open.d.ts.map +1 -0
  1704. package/dist/lib/sounds/open.js +36 -0
  1705. package/dist/lib/sounds/open.js.map +1 -0
  1706. package/dist/lib/sounds/ping.d.ts +4 -0
  1707. package/dist/lib/sounds/ping.d.ts.map +1 -0
  1708. package/dist/lib/sounds/ping.js +30 -0
  1709. package/dist/lib/sounds/ping.js.map +1 -0
  1710. package/dist/lib/sounds/pop.d.ts +4 -0
  1711. package/dist/lib/sounds/pop.d.ts.map +1 -0
  1712. package/dist/lib/sounds/pop.js +27 -0
  1713. package/dist/lib/sounds/pop.js.map +1 -0
  1714. package/dist/lib/sounds/press.d.ts +4 -0
  1715. package/dist/lib/sounds/press.d.ts.map +1 -0
  1716. package/dist/lib/sounds/press.js +40 -0
  1717. package/dist/lib/sounds/press.js.map +1 -0
  1718. package/dist/lib/sounds/receive.d.ts +4 -0
  1719. package/dist/lib/sounds/receive.d.ts.map +1 -0
  1720. package/dist/lib/sounds/receive.js +39 -0
  1721. package/dist/lib/sounds/receive.js.map +1 -0
  1722. package/dist/lib/sounds/refresh.d.ts +4 -0
  1723. package/dist/lib/sounds/refresh.d.ts.map +1 -0
  1724. package/dist/lib/sounds/refresh.js +34 -0
  1725. package/dist/lib/sounds/refresh.js.map +1 -0
  1726. package/dist/lib/sounds/reveal.d.ts +4 -0
  1727. package/dist/lib/sounds/reveal.d.ts.map +1 -0
  1728. package/dist/lib/sounds/reveal.js +34 -0
  1729. package/dist/lib/sounds/reveal.js.map +1 -0
  1730. package/dist/lib/sounds/select.d.ts +4 -0
  1731. package/dist/lib/sounds/select.d.ts.map +1 -0
  1732. package/dist/lib/sounds/select.js +32 -0
  1733. package/dist/lib/sounds/select.js.map +1 -0
  1734. package/dist/lib/sounds/send.d.ts +4 -0
  1735. package/dist/lib/sounds/send.d.ts.map +1 -0
  1736. package/dist/lib/sounds/send.js +35 -0
  1737. package/dist/lib/sounds/send.js.map +1 -0
  1738. package/dist/lib/sounds/shutter.d.ts +4 -0
  1739. package/dist/lib/sounds/shutter.d.ts.map +1 -0
  1740. package/dist/lib/sounds/shutter.js +40 -0
  1741. package/dist/lib/sounds/shutter.js.map +1 -0
  1742. package/dist/lib/sounds/snap.d.ts +4 -0
  1743. package/dist/lib/sounds/snap.d.ts.map +1 -0
  1744. package/dist/lib/sounds/snap.js +33 -0
  1745. package/dist/lib/sounds/snap.js.map +1 -0
  1746. package/dist/lib/sounds/star.d.ts +4 -0
  1747. package/dist/lib/sounds/star.d.ts.map +1 -0
  1748. package/dist/lib/sounds/star.js +38 -0
  1749. package/dist/lib/sounds/star.js.map +1 -0
  1750. package/dist/lib/sounds/success.d.ts +4 -0
  1751. package/dist/lib/sounds/success.d.ts.map +1 -0
  1752. package/dist/lib/sounds/success.js +39 -0
  1753. package/dist/lib/sounds/success.js.map +1 -0
  1754. package/dist/lib/sounds/swipe.d.ts +4 -0
  1755. package/dist/lib/sounds/swipe.d.ts.map +1 -0
  1756. package/dist/lib/sounds/swipe.js +29 -0
  1757. package/dist/lib/sounds/swipe.js.map +1 -0
  1758. package/dist/lib/sounds/switch.d.ts +4 -0
  1759. package/dist/lib/sounds/switch.d.ts.map +1 -0
  1760. package/dist/lib/sounds/switch.js +40 -0
  1761. package/dist/lib/sounds/switch.js.map +1 -0
  1762. package/dist/lib/sounds/tap.d.ts +4 -0
  1763. package/dist/lib/sounds/tap.d.ts.map +1 -0
  1764. package/dist/lib/sounds/tap.js +33 -0
  1765. package/dist/lib/sounds/tap.js.map +1 -0
  1766. package/dist/lib/sounds/tick.d.ts +4 -0
  1767. package/dist/lib/sounds/tick.d.ts.map +1 -0
  1768. package/dist/lib/sounds/tick.js +26 -0
  1769. package/dist/lib/sounds/tick.js.map +1 -0
  1770. package/dist/lib/sounds/timer.d.ts +4 -0
  1771. package/dist/lib/sounds/timer.d.ts.map +1 -0
  1772. package/dist/lib/sounds/timer.js +26 -0
  1773. package/dist/lib/sounds/timer.js.map +1 -0
  1774. package/dist/lib/sounds/toggle.d.ts +6 -0
  1775. package/dist/lib/sounds/toggle.d.ts.map +1 -0
  1776. package/dist/lib/sounds/toggle.js +79 -0
  1777. package/dist/lib/sounds/toggle.js.map +1 -0
  1778. package/dist/lib/sounds/trash.d.ts +4 -0
  1779. package/dist/lib/sounds/trash.d.ts.map +1 -0
  1780. package/dist/lib/sounds/trash.js +40 -0
  1781. package/dist/lib/sounds/trash.js.map +1 -0
  1782. package/dist/lib/sounds/type.d.ts +4 -0
  1783. package/dist/lib/sounds/type.d.ts.map +1 -0
  1784. package/dist/lib/sounds/type.js +35 -0
  1785. package/dist/lib/sounds/type.js.map +1 -0
  1786. package/dist/lib/sounds/unlock.d.ts +4 -0
  1787. package/dist/lib/sounds/unlock.d.ts.map +1 -0
  1788. package/dist/lib/sounds/unlock.js +41 -0
  1789. package/dist/lib/sounds/unlock.js.map +1 -0
  1790. package/dist/lib/sounds/warning.d.ts +4 -0
  1791. package/dist/lib/sounds/warning.d.ts.map +1 -0
  1792. package/dist/lib/sounds/warning.js +29 -0
  1793. package/dist/lib/sounds/warning.js.map +1 -0
  1794. package/dist/lib/sounds/whisper.d.ts +4 -0
  1795. package/dist/lib/sounds/whisper.d.ts.map +1 -0
  1796. package/dist/lib/sounds/whisper.js +27 -0
  1797. package/dist/lib/sounds/whisper.js.map +1 -0
  1798. package/dist/lib/text-shimmer.d.ts +6 -0
  1799. package/dist/lib/text-shimmer.d.ts.map +1 -1
  1800. package/dist/lib/text-shimmer.js +7 -1
  1801. package/dist/lib/text-shimmer.js.map +1 -1
  1802. package/dist/lib/tick-sound.d.ts.map +1 -1
  1803. package/dist/lib/tick-sound.js +8 -11
  1804. package/dist/lib/tick-sound.js.map +1 -1
  1805. package/dist/lib/touch.d.ts +10 -10
  1806. package/dist/lib/touch.js +10 -10
  1807. package/dist/lib/touch.js.map +1 -1
  1808. package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
  1809. package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
  1810. package/dist/menu-button-CbEYps6k.d.ts +29 -0
  1811. package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
  1812. package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
  1813. package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
  1814. package/dist/messages-BYMFNf5X.d.ts +13 -0
  1815. package/dist/messages-BYMFNf5X.d.ts.map +1 -0
  1816. package/dist/messages-CVaE8xc6.js +14 -0
  1817. package/dist/messages-CVaE8xc6.js.map +1 -0
  1818. package/dist/messages-CqyH8Hd7.js +21 -0
  1819. package/dist/messages-CqyH8Hd7.js.map +1 -0
  1820. package/dist/messages-CrtN5AXG.js +20 -0
  1821. package/dist/messages-CrtN5AXG.js.map +1 -0
  1822. package/dist/messages-D0lxgjNm.d.ts +31 -0
  1823. package/dist/messages-D0lxgjNm.d.ts.map +1 -0
  1824. package/dist/messages-D4axySpl.d.ts +21 -0
  1825. package/dist/messages-D4axySpl.d.ts.map +1 -0
  1826. package/dist/messages-Dyou6PVt.d.ts +23 -0
  1827. package/dist/messages-Dyou6PVt.d.ts.map +1 -0
  1828. package/dist/messages-azsh5xBO.d.ts +20 -0
  1829. package/dist/messages-azsh5xBO.d.ts.map +1 -0
  1830. package/dist/messages-ogb0tIIX.d.ts +23 -0
  1831. package/dist/messages-ogb0tIIX.d.ts.map +1 -0
  1832. package/dist/messages-tLRkxZwI.d.ts +33 -0
  1833. package/dist/messages-tLRkxZwI.d.ts.map +1 -0
  1834. package/dist/{model-BFZGhrnQ.d.ts → model-CHHE1lHQ.d.ts} +5 -1
  1835. package/dist/model-CHHE1lHQ.d.ts.map +1 -0
  1836. package/dist/{model-DuAc65oe.d.ts → model-D6sI_4m9.d.ts} +5 -1
  1837. package/dist/model-D6sI_4m9.d.ts.map +1 -0
  1838. package/dist/{model-mS4UXPwk.d.ts → model-DUQnYLRU.d.ts} +3 -1
  1839. package/dist/model-DUQnYLRU.d.ts.map +1 -0
  1840. package/dist/{model-CvWolJdo.d.ts → model-Dafi-gx6.d.ts} +2 -1
  1841. package/dist/model-Dafi-gx6.d.ts.map +1 -0
  1842. package/dist/motion-1TeD2tw9.js +67 -0
  1843. package/dist/motion-1TeD2tw9.js.map +1 -0
  1844. package/dist/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
  1845. package/dist/path-DMP3rnd1.d.ts.map +1 -0
  1846. package/dist/placement-BRE79jXm.d.ts +4 -0
  1847. package/dist/placement-BRE79jXm.d.ts.map +1 -0
  1848. package/dist/placement-Cg-Y5tLI.js +74 -0
  1849. package/dist/placement-Cg-Y5tLI.js.map +1 -0
  1850. package/dist/{plot-CTQFrQKi.js → plot-CSTtMo6j.js} +13 -13
  1851. package/dist/plot-CSTtMo6j.js.map +1 -0
  1852. package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
  1853. package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
  1854. package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
  1855. package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
  1856. package/dist/{positioner-MidjIUUT.js → positioner-CFR4mJg6.js} +117 -9
  1857. package/dist/positioner-CFR4mJg6.js.map +1 -0
  1858. package/dist/resource-row-PkgPS9Hk.js +290 -0
  1859. package/dist/resource-row-PkgPS9Hk.js.map +1 -0
  1860. package/dist/root-C1n8-uIA.js +420 -0
  1861. package/dist/root-C1n8-uIA.js.map +1 -0
  1862. package/dist/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
  1863. package/dist/scale-BLDMdHAp.d.ts.map +1 -0
  1864. package/dist/{use-inspection-CZhdpH8J.js → scale-JwdKsMkj.js} +2 -55
  1865. package/dist/scale-JwdKsMkj.js.map +1 -0
  1866. package/dist/theme.css +98 -4
  1867. package/dist/{tooltip-w0KptZat.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
  1868. package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
  1869. package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-DI79u-1V.d.ts} +28 -2
  1870. package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
  1871. package/dist/{tooltip-CMVyNolz.d.ts → tooltip-DPci40hM.d.ts} +21 -2
  1872. package/dist/tooltip-DPci40hM.d.ts.map +1 -0
  1873. package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-X7sMXf98.d.ts} +31 -3
  1874. package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
  1875. package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
  1876. package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
  1877. package/dist/{tooltip-CuHpilPN.js → tooltip-gHv-6eOs.js} +58 -47
  1878. package/dist/tooltip-gHv-6eOs.js.map +1 -0
  1879. package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-gKOUHp_1.d.ts} +28 -2
  1880. package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
  1881. package/dist/types-BhZ0FwDi.d.ts +33 -0
  1882. package/dist/types-BhZ0FwDi.d.ts.map +1 -0
  1883. package/dist/types-BnHpfLje.d.ts +111 -0
  1884. package/dist/types-BnHpfLje.d.ts.map +1 -0
  1885. package/dist/types-COoUai3R.d.ts +64 -0
  1886. package/dist/types-COoUai3R.d.ts.map +1 -0
  1887. package/dist/{types-D9hKqIzm.d.ts → types-CbBZy33k.d.ts} +34 -2
  1888. package/dist/types-CbBZy33k.d.ts.map +1 -0
  1889. package/dist/{types-BB61jXS_.d.ts → types-ClKnPGuP.d.ts} +21 -4
  1890. package/dist/types-ClKnPGuP.d.ts.map +1 -0
  1891. package/dist/types-DPKILbI9.d.ts +37 -0
  1892. package/dist/types-DPKILbI9.d.ts.map +1 -0
  1893. package/dist/types-Dbiy485_.d.ts +114 -0
  1894. package/dist/types-Dbiy485_.d.ts.map +1 -0
  1895. package/dist/{types-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
  1896. package/dist/types-DlSHf6nJ.d.ts.map +1 -0
  1897. package/dist/types-DtUnNprK.d.ts +53 -0
  1898. package/dist/types-DtUnNprK.d.ts.map +1 -0
  1899. package/dist/{use-crash-game-B3RHxFkm.d.ts → use-crash-game-C6JPLvAH.d.ts} +60 -5
  1900. package/dist/use-crash-game-C6JPLvAH.d.ts.map +1 -0
  1901. package/dist/use-filtered-options-3TcVsHzV.js +167 -0
  1902. package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
  1903. package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
  1904. package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
  1905. package/dist/{use-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
  1906. package/dist/use-geometry-BajLqxjC.d.ts.map +1 -0
  1907. package/dist/use-inspection-LoyxxJk8.js +31 -0
  1908. package/dist/use-inspection-LoyxxJk8.js.map +1 -0
  1909. package/dist/use-menu-navigation-B17_iK_B.js +57 -0
  1910. package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
  1911. package/dist/{use-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
  1912. package/dist/use-points-y0l-9pdN.js.map +1 -0
  1913. package/dist/{use-position-CWSE4wCz.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
  1914. package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
  1915. package/dist/use-width-DZex74TT.js +45 -0
  1916. package/dist/use-width-DZex74TT.js.map +1 -0
  1917. package/dist/utils-Dve5wIjB.js +56 -0
  1918. package/dist/utils-Dve5wIjB.js.map +1 -0
  1919. package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
  1920. package/dist/utils-F-hKjEFd.js.map +1 -0
  1921. package/dist/utils-f7_cAAwc.js +55 -0
  1922. package/dist/utils-f7_cAAwc.js.map +1 -0
  1923. package/package.json +18 -18
  1924. package/dist/account-avatar--0_0u0WW.js.map +0 -1
  1925. package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
  1926. package/dist/components/agents/agent-activity/index.d.ts +0 -4
  1927. package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
  1928. package/dist/components/agents/agent-activity/index.js.map +0 -1
  1929. package/dist/components/agents/approval-card/index.d.ts +0 -49
  1930. package/dist/components/agents/approval-card/index.d.ts.map +0 -1
  1931. package/dist/components/agents/approval-card/index.js +0 -314
  1932. package/dist/components/agents/approval-card/index.js.map +0 -1
  1933. package/dist/components/motion/animated-sidebar.js.map +0 -1
  1934. package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
  1935. package/dist/components/motion/animated-toast-stack.js.map +0 -1
  1936. package/dist/components/motion/availability-scheduler/index.d.ts +0 -12
  1937. package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
  1938. package/dist/components/motion/availability-scheduler/index.js.map +0 -1
  1939. package/dist/components/motion/button/index.d.ts +0 -5
  1940. package/dist/components/motion/button/index.js +0 -6
  1941. package/dist/components/motion/combobox/context.d.ts.map +0 -1
  1942. package/dist/components/motion/combobox/context.js.map +0 -1
  1943. package/dist/components/motion/multi-select/context.d.ts.map +0 -1
  1944. package/dist/components/motion/multi-select/context.js.map +0 -1
  1945. package/dist/components/motion/popover-morph.d.ts.map +0 -1
  1946. package/dist/components/motion/table/index.d.ts.map +0 -1
  1947. package/dist/components/motion/table/index.js.map +0 -1
  1948. package/dist/components/motion/wallet-card/index.d.ts +0 -11
  1949. package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
  1950. package/dist/components/motion/wallet-card/index.js.map +0 -1
  1951. package/dist/constants-evLzfUhL.js.map +0 -1
  1952. package/dist/context-3i2_6ly8.js.map +0 -1
  1953. package/dist/context-C5TW-k6u.js.map +0 -1
  1954. package/dist/context-CQbvWVnM.js.map +0 -1
  1955. package/dist/context-CXlD0FcC.js.map +0 -1
  1956. package/dist/context-ChsuSih6.js.map +0 -1
  1957. package/dist/context-D-juVNr2.d.ts.map +0 -1
  1958. package/dist/context-DUx44mGi.js.map +0 -1
  1959. package/dist/context-DWXNECDe.js.map +0 -1
  1960. package/dist/context-DdnKlMjE.js.map +0 -1
  1961. package/dist/context-Dk6C9IvC.js.map +0 -1
  1962. package/dist/context-i6Dwvi3T.js.map +0 -1
  1963. package/dist/context-mjP5wifG.d.ts.map +0 -1
  1964. package/dist/context-tv-kneJV.d.ts.map +0 -1
  1965. package/dist/copy-menu-LU54Aruj.js.map +0 -1
  1966. package/dist/crash-parts-CUv5gFYQ.js.map +0 -1
  1967. package/dist/ease-DjhlGGZO.d.ts.map +0 -1
  1968. package/dist/model-BFZGhrnQ.d.ts.map +0 -1
  1969. package/dist/model-CvWolJdo.d.ts.map +0 -1
  1970. package/dist/model-DuAc65oe.d.ts.map +0 -1
  1971. package/dist/model-mS4UXPwk.d.ts.map +0 -1
  1972. package/dist/path-VEfFUowr.d.ts.map +0 -1
  1973. package/dist/plot-CTQFrQKi.js.map +0 -1
  1974. package/dist/positioner-MidjIUUT.js.map +0 -1
  1975. package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
  1976. package/dist/scale-DSsaupNc.d.ts.map +0 -1
  1977. package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
  1978. package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
  1979. package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
  1980. package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
  1981. package/dist/tooltip-CuHpilPN.js.map +0 -1
  1982. package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
  1983. package/dist/tooltip-w0KptZat.d.ts.map +0 -1
  1984. package/dist/types-B0d0d7PF.d.ts +0 -34
  1985. package/dist/types-B0d0d7PF.d.ts.map +0 -1
  1986. package/dist/types-BB61jXS_.d.ts.map +0 -1
  1987. package/dist/types-BSMELKE5.d.ts.map +0 -1
  1988. package/dist/types-D9hKqIzm.d.ts.map +0 -1
  1989. package/dist/types-qTGsGdN1.d.ts +0 -20
  1990. package/dist/types-qTGsGdN1.d.ts.map +0 -1
  1991. package/dist/use-active-option-DerS-wGL.js +0 -85
  1992. package/dist/use-active-option-DerS-wGL.js.map +0 -1
  1993. package/dist/use-crash-game-B3RHxFkm.d.ts.map +0 -1
  1994. package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
  1995. package/dist/use-inspection-CZhdpH8J.js.map +0 -1
  1996. package/dist/use-points-C2jpElHh.js.map +0 -1
  1997. package/dist/use-position-CWSE4wCz.d.ts.map +0 -1
  1998. package/dist/use-width-CkKCh1b3.js +0 -23
  1999. package/dist/use-width-CkKCh1b3.js.map +0 -1
  2000. package/dist/utils-DMrlhG6M.js +0 -25
  2001. package/dist/utils-DMrlhG6M.js.map +0 -1
  2002. package/dist/utils-ZRfJ78Df.js.map +0 -1
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import * as React from "react";
3
+ import { CheckIcon, XIcon } from "lucide-react";
4
+ import { cn } from "@kumix/utils";
2
5
  import { Button } from "../../ui/button.js";
3
6
  import { ButtonGroup } from "../../ui/button-group.js";
4
7
  import { Input } from "../../ui/input.js";
@@ -9,10 +12,7 @@ import { CascaderItems } from "../cascader/cascader-item.js";
9
12
  import { CascaderInput, CascaderNav } from "../cascader/cascader-nav.js";
10
13
  import { FilterActionsContext, filterControlSizes } from "./filters-context.js";
11
14
  import { applyFilterExclusiveSelection, filterFilterOptions, joinFilterPath, normalizeFilterQuery, warnFilterOnce } from "./filters-lib.js";
12
- import * as React$1 from "react";
13
- import { cn } from "@kumix/utils";
14
15
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
- import { CheckIcon, XIcon } from "lucide-react";
16
16
  // src/components/reui/filters/filters-editors.tsx
17
17
  const IDLE = {
18
18
  items: [],
@@ -42,19 +42,19 @@ function filterFieldKey(field, index) {
42
42
  * `loadOptions`-only field showed its raw id once the menu closed.
43
43
  */
44
44
  function useFilterOptions(field, enabled, debounceMs = 250) {
45
- const [query, setQueryState] = React$1.useState("");
46
- const [state, setState] = React$1.useState(IDLE);
47
- const cache = React$1.useRef(/* @__PURE__ */ new Map());
48
- const requestId = React$1.useRef(0);
49
- const abortRef = React$1.useRef(null);
50
- const actionsContext = React$1.useContext(FilterActionsContext);
45
+ const [query, setQueryState] = React.useState("");
46
+ const [state, setState] = React.useState(IDLE);
47
+ const cache = React.useRef(/* @__PURE__ */ new Map());
48
+ const requestId = React.useRef(0);
49
+ const abortRef = React.useRef(null);
50
+ const actionsContext = React.useContext(FilterActionsContext);
51
51
  const shared = actionsContext?.resolution ?? null;
52
52
  const sharedKey = filterFieldKey(field, actionsContext?.index);
53
- React$1.useSyncExternalStore(shared ? shared.subscribe : emptySubscribe, shared ? shared.getVersion : zeroVersion, shared ? shared.getVersion : zeroVersion);
53
+ React.useSyncExternalStore(shared ? shared.subscribe : emptySubscribe, shared ? shared.getVersion : zeroVersion, shared ? shared.getVersion : zeroVersion);
54
54
  const staticOptions = field?.options;
55
55
  const loadOptions = field?.loadOptions;
56
56
  const isAsync = Boolean(loadOptions);
57
- React$1.useEffect(() => {
57
+ React.useEffect(() => {
58
58
  if (!staticOptions) return;
59
59
  for (const option of staticOptions) cache.current.set(option.value, option);
60
60
  if (shared && sharedKey) shared.set(sharedKey, staticOptions);
@@ -63,7 +63,7 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
63
63
  shared,
64
64
  sharedKey
65
65
  ]);
66
- React$1.useEffect(() => {
66
+ React.useEffect(() => {
67
67
  for (const option of state.items) cache.current.set(option.value, option);
68
68
  if (shared && sharedKey && state.items.length) shared.set(sharedKey, state.items);
69
69
  }, [
@@ -71,7 +71,7 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
71
71
  shared,
72
72
  sharedKey
73
73
  ]);
74
- const run = React$1.useCallback(async (nextQuery, cursor, append) => {
74
+ const run = React.useCallback(async (nextQuery, cursor, append) => {
75
75
  if (!loadOptions) return;
76
76
  abortRef.current?.abort();
77
77
  const controller = new AbortController();
@@ -108,7 +108,7 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
108
108
  }));
109
109
  }
110
110
  }, [loadOptions]);
111
- React$1.useEffect(() => {
111
+ React.useEffect(() => {
112
112
  if (!enabled || !isAsync) return;
113
113
  const timer = setTimeout(() => void run(query, void 0, false), debounceMs);
114
114
  return () => clearTimeout(timer);
@@ -119,11 +119,11 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
119
119
  debounceMs,
120
120
  run
121
121
  ]);
122
- React$1.useEffect(() => {
122
+ React.useEffect(() => {
123
123
  return () => abortRef.current?.abort();
124
124
  }, []);
125
125
  const normalizedQuery = normalizeFilterQuery(query);
126
- const items = React$1.useMemo(() => {
126
+ const items = React.useMemo(() => {
127
127
  if (isAsync) return state.items;
128
128
  return filterFilterOptions(staticOptions ?? [], normalizedQuery);
129
129
  }, [
@@ -132,8 +132,8 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
132
132
  staticOptions,
133
133
  normalizedQuery
134
134
  ]);
135
- const setQuery = React$1.useCallback((next) => setQueryState(next), []);
136
- const loadMore = React$1.useCallback(() => {
135
+ const setQuery = React.useCallback((next) => setQueryState(next), []);
136
+ const loadMore = React.useCallback(() => {
137
137
  if (!state.hasMore || state.loading) return;
138
138
  run(query, state.cursor, true);
139
139
  }, [
@@ -143,10 +143,10 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
143
143
  query,
144
144
  run
145
145
  ]);
146
- const retry = React$1.useCallback(() => {
146
+ const retry = React.useCallback(() => {
147
147
  run(query, void 0, false);
148
148
  }, [query, run]);
149
- const resolve = React$1.useCallback((value) => {
149
+ const resolve = React.useCallback((value) => {
150
150
  const declared = staticOptions?.find((option) => option.value === value);
151
151
  if (declared) return declared;
152
152
  const fromShared = shared && sharedKey ? shared.get(sharedKey, value) : void 0;
@@ -175,13 +175,13 @@ function useFilterOptions(field, enabled, debounceMs = 250) {
175
175
  * an omitted id asked, so only a REJECTED resolve lets a later mount retry.
176
176
  */
177
177
  function useFilterValueResolution(field, values) {
178
- const actionsContext = React$1.useContext(FilterActionsContext);
178
+ const actionsContext = React.useContext(FilterActionsContext);
179
179
  const shared = actionsContext?.resolution ?? null;
180
180
  const sharedKey = filterFieldKey(field, actionsContext?.index);
181
181
  const resolveValues = field?.resolveValues;
182
182
  const staticOptions = field?.options;
183
183
  const valuesKey = values.map((entry) => String(entry)).join("\0");
184
- React$1.useEffect(() => {
184
+ React.useEffect(() => {
185
185
  if (!resolveValues || !shared || !sharedKey || valuesKey === "") return;
186
186
  const missing = valuesKey.split("\0").filter((value) => {
187
187
  if (staticOptions?.some((option) => option.value === value)) return false;
@@ -211,7 +211,7 @@ function EditorPanel({ children, className }) {
211
211
  });
212
212
  }
213
213
  function EditorFooter({ onCancel, onCommit, labels, host }) {
214
- const actions = React$1.useContext(FilterActionsContext);
214
+ const actions = React.useContext(FilterActionsContext);
215
215
  const sizes = filterControlSizes({ size: actions?.size ?? "default" });
216
216
  if (host === "create") return null;
217
217
  return /* @__PURE__ */ jsxs("div", {
@@ -259,7 +259,7 @@ function EditorCommitButtons({ onCancel, onCommit, labels }) {
259
259
  })] });
260
260
  }
261
261
  function useCommitKeys(commit, cancel) {
262
- return React$1.useCallback((event) => {
262
+ return React.useCallback((event) => {
263
263
  if (event.key === "Enter" && !event.nativeEvent.isComposing) {
264
264
  event.preventDefault();
265
265
  commit();
@@ -372,18 +372,18 @@ const MAX_PIN_RESTORE_ATTEMPTS = 4;
372
372
  function FilterMenuPinKeeper({ order, items }) {
373
373
  const { baseId } = useCascaderActions();
374
374
  const highlight = useCascaderHighlight();
375
- const previousRef = React$1.useRef(null);
376
- const pendingRef = React$1.useRef(null);
377
- const timerRef = React$1.useRef(null);
375
+ const previousRef = React.useRef(null);
376
+ const pendingRef = React.useRef(null);
377
+ const timerRef = React.useRef(null);
378
378
  const highlightedValue = highlight.value;
379
379
  const highlightedIndex = highlight.index;
380
- const stop = React$1.useCallback(() => {
380
+ const stop = React.useCallback(() => {
381
381
  pendingRef.current = null;
382
382
  if (timerRef.current === null) return;
383
383
  clearTimeout(timerRef.current);
384
384
  timerRef.current = null;
385
385
  }, []);
386
- const startRestore = React$1.useCallback(() => {
386
+ const startRestore = React.useCallback(() => {
387
387
  const attempt = () => {
388
388
  timerRef.current = null;
389
389
  const pending = pendingRef.current;
@@ -404,7 +404,7 @@ function FilterMenuPinKeeper({ order, items }) {
404
404
  };
405
405
  timerRef.current = setTimeout(attempt, 0);
406
406
  }, [baseId, stop]);
407
- React$1.useLayoutEffect(() => {
407
+ React.useLayoutEffect(() => {
408
408
  const previous = previousRef.current;
409
409
  previousRef.current = {
410
410
  order,
@@ -421,7 +421,7 @@ function FilterMenuPinKeeper({ order, items }) {
421
421
  attempts: 0
422
422
  };
423
423
  });
424
- React$1.useEffect(() => {
424
+ React.useEffect(() => {
425
425
  const pending = pendingRef.current;
426
426
  if (!pending) return;
427
427
  if (highlightedValue === pending.value || highlightedIndex !== pending.index) {
@@ -436,7 +436,7 @@ function FilterMenuPinKeeper({ order, items }) {
436
436
  startRestore,
437
437
  stop
438
438
  ]);
439
- React$1.useEffect(() => stop, [stop]);
439
+ React.useEffect(() => stop, [stop]);
440
440
  return null;
441
441
  }
442
442
  /** Element-wise, because the arrays are rebuilt on every selection change. */
@@ -462,16 +462,16 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
462
462
  * default: "your picks, then the rest" is about the CURRENT selection, and
463
463
  * `FilterMenuPinKeeper` pays for rows moving under the pointer.
464
464
  */
465
- const [snapshotKey] = React$1.useState(() => liveKey);
465
+ const [snapshotKey] = React.useState(() => liveKey);
466
466
  const pinnedKey = !pinSelected ? "" : sortSelected === "snapshot" ? snapshotKey : liveKey;
467
- const [ownQuery, setOwnQuery] = React$1.useState("");
467
+ const [ownQuery, setOwnQuery] = React.useState("");
468
468
  const currentQuery = query ?? ownQuery;
469
469
  const setQuery = onQueryChange ?? setOwnQuery;
470
470
  /**
471
471
  * Memoized on the SELECTION, not the query: folding the query in re-sorted
472
472
  * 4,000 rows on every keystroke, for a one pixel rule.
473
473
  */
474
- const partitioned = React$1.useMemo(() => {
474
+ const partitioned = React.useMemo(() => {
475
475
  const pinned = new Set(pinnedKey ? pinnedKey.split(PIN_SEPARATOR) : []);
476
476
  const exclusive = items.filter((item) => item.exclusive);
477
477
  const values = exclusive.length ? items.filter((item) => !item.exclusive) : items;
@@ -517,7 +517,7 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
517
517
  inline: true,
518
518
  open: true,
519
519
  onOpenChange: () => {},
520
- items: React$1.useMemo(() => {
520
+ items: React.useMemo(() => {
521
521
  const total = partitioned.nodes.length;
522
522
  const marks = [dividerAt, exclusiveDividerAt].filter((index) => index > 0 && index < total);
523
523
  if (marks.length === 0) return partitioned.nodes;
@@ -538,7 +538,7 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
538
538
  inputValue: currentQuery,
539
539
  onInputValueChange: setQuery,
540
540
  maxHeight,
541
- renderItem: React$1.useCallback((node, itemState) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
541
+ renderItem: React.useCallback((node, itemState) => /* @__PURE__ */ jsxs(Fragment$1, { children: [
542
542
  node.data?.divider ? /* @__PURE__ */ jsx("span", {
543
543
  "data-slot": "filter-menu-divider",
544
544
  "aria-hidden": "true",
@@ -570,7 +570,7 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
570
570
  children: /* @__PURE__ */ jsx(CheckIcon, { className: "text-foreground! **:text-foreground!" })
571
571
  }) : null
572
572
  ] }), [labels.exclusiveHint]),
573
- labels: React$1.useMemo(() => ({
573
+ labels: React.useMemo(() => ({
574
574
  search: searchPlaceholder ?? labels.searchOptions,
575
575
  empty: labels.empty,
576
576
  loading: labels.loading,
@@ -588,7 +588,7 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
588
588
  ariaLabel,
589
589
  searchPlaceholder
590
590
  ]),
591
- actions: React$1.useMemo(() => {
591
+ actions: React.useMemo(() => {
592
592
  if (state?.error) return [{
593
593
  value: "retry",
594
594
  label: labels.retry,
@@ -650,11 +650,11 @@ function FilterMenu({ items, selected, multiple = false, onSelectionChange, labe
650
650
  }
651
651
  function OptionEditor(props) {
652
652
  const { multiple, options, labels, autoFocusProps, commit, cancel, onValueChange, value, field } = props;
653
- const selected = React$1.useMemo(() => {
653
+ const selected = React.useMemo(() => {
654
654
  if (value === void 0 || value === null) return [];
655
655
  return Array.isArray(value) ? value : [value];
656
656
  }, [value]);
657
- const announce = React$1.useContext(FilterActionsContext)?.announce;
657
+ const announce = React.useContext(FilterActionsContext)?.announce;
658
658
  return /* @__PURE__ */ jsx(EditorPanel, {
659
659
  className: cn("w-48 min-w-0 gap-0 p-0", field.className),
660
660
  children: /* @__PURE__ */ jsx(FilterMenu, {
@@ -1 +1 @@
1
- {"version":3,"file":"filters-editors.js","names":["React"],"sources":["../../../../src/components/reui/filters/filters-editors.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { CheckIcon, XIcon } from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport { ButtonGroup } from \"../../ui/button-group\";\nimport { Input } from \"../../ui/input\";\nimport type { CascaderItemState, CascaderProps } from \"../cascader/cascader\";\nimport {\n Cascader,\n CascaderEmpty,\n CascaderList,\n CascaderPanel,\n CascaderStatus,\n} from \"../cascader/cascader\";\nimport { useCascaderActions, useCascaderHighlight } from \"../cascader/cascader-context\";\nimport { CascaderFooter } from \"../cascader/cascader-footer\";\nimport { CascaderItems } from \"../cascader/cascader-item\";\nimport { CascaderInput, CascaderNav } from \"../cascader/cascader-nav\";\nimport type { CascaderActionItem, CascaderNode } from \"../cascader/cascader-types\";\nimport {\n FilterActionsContext,\n type FilterResolutionStore,\n filterControlSizes,\n} from \"./filters-context\";\nimport {\n applyFilterExclusiveSelection,\n filterFilterOptions,\n joinFilterPath,\n normalizeFilterQuery,\n warnFilterOnce,\n} from \"./filters-lib\";\nimport type {\n AnyFilterEditor,\n FilterEditorProps,\n FilterEditorRegistry,\n FilterField,\n FilterIndex,\n FilterLabels,\n FilterLoadResult,\n FilterOperator,\n FilterOption,\n FilterOptionsState,\n} from \"./filters-types\";\n\n/* -------------------------------------------------------------------------- */\n/* The options service */\n/* -------------------------------------------------------------------------- */\n\ninterface OptionsInternalState<O> {\n items: FilterOption<O>[];\n loading: boolean;\n error: boolean;\n hasMore: boolean;\n cursor?: string;\n}\n\nconst IDLE: OptionsInternalState<never> = {\n items: [],\n loading: false,\n error: false,\n hasMore: false,\n};\n\n/** Stable no-op subscription, for a hook running outside a `Filters` root. */\nconst emptySubscribe = () => () => {};\nconst zeroVersion = () => 0;\n\n/**\n * The joined path of a field, from the schema index. Keyed by PATH, not field\n * identity, so labels survive a schema rebuild; an unknown field uses its id.\n */\nfunction filterFieldKey<V, O>(\n field: FilterField<V, O> | undefined,\n index: FilterIndex | undefined,\n): string | null {\n if (!field) return null;\n if (index) {\n for (const entry of index.all) {\n if ((entry.field as unknown) === (field as unknown)) {\n return joinFilterPath(entry.path);\n }\n }\n }\n return `#${field.id}`;\n}\n\n/**\n * The shared option service every option-backed editor receives: debouncing,\n * aborting, cursor paging and value-to-label resolution. A deliberate fork of\n * the cascader's async machinery. Resolution is two-tier: a ref cache written\n * in an EFFECT, plus the root's `FilterResolutionStore`, without which a\n * `loadOptions`-only field showed its raw id once the menu closed.\n */\nexport function useFilterOptions<V, O>(\n field: FilterField<V, O> | undefined,\n enabled: boolean,\n debounceMs = 250,\n): FilterOptionsState<O> {\n const [query, setQueryState] = React.useState(\"\");\n const [state, setState] = React.useState<OptionsInternalState<O>>(\n IDLE as OptionsInternalState<O>,\n );\n\n const cache = React.useRef(new Map<string, FilterOption<O>>());\n const requestId = React.useRef(0);\n const abortRef = React.useRef<AbortController | null>(null);\n\n // Read directly, so this degrades outside a `Filters` root instead of throwing.\n const actionsContext = React.useContext(FilterActionsContext);\n const shared: FilterResolutionStore | null = actionsContext?.resolution ?? null;\n const sharedKey = filterFieldKey(field, actionsContext?.index);\n\n // Re-render when a label lands ANYWHERE under this root, not just here.\n React.useSyncExternalStore(\n shared ? shared.subscribe : emptySubscribe,\n shared ? shared.getVersion : zeroVersion,\n shared ? shared.getVersion : zeroVersion,\n );\n\n const staticOptions = field?.options;\n const loadOptions = field?.loadOptions;\n const isAsync = Boolean(loadOptions);\n\n // Seeded in an effect, not during render, so the render stays pure.\n React.useEffect(() => {\n if (!staticOptions) return;\n for (const option of staticOptions) cache.current.set(option.value, option);\n if (shared && sharedKey) shared.set(sharedKey, staticOptions);\n }, [staticOptions, shared, sharedKey]);\n\n React.useEffect(() => {\n for (const option of state.items) cache.current.set(option.value, option);\n if (shared && sharedKey && state.items.length) {\n shared.set(sharedKey, state.items);\n }\n }, [state.items, shared, sharedKey]);\n\n const run = React.useCallback(\n async (nextQuery: string, cursor: string | undefined, append: boolean) => {\n if (!loadOptions) return;\n\n abortRef.current?.abort();\n const controller = new AbortController();\n abortRef.current = controller;\n const id = ++requestId.current;\n\n setState((previous) => ({\n ...previous,\n loading: true,\n error: false,\n items: append ? previous.items : [],\n }));\n\n try {\n const result = await loadOptions(nextQuery, {\n signal: controller.signal,\n cursor,\n });\n // A superseded request must not write; the id, not the abort, decides.\n if (id !== requestId.current) return;\n\n const normalized: FilterLoadResult<O> = Array.isArray(result) ? { items: result } : result;\n\n setState((previous) => ({\n items: append ? [...previous.items, ...normalized.items] : normalized.items,\n loading: false,\n error: false,\n hasMore: normalized.hasMore ?? Boolean(normalized.nextCursor),\n cursor: normalized.nextCursor,\n }));\n } catch (error) {\n if (id !== requestId.current) return;\n if ((error as Error)?.name === \"AbortError\") return;\n setState((previous) => ({\n ...previous,\n loading: false,\n error: true,\n hasMore: false,\n }));\n }\n },\n [loadOptions],\n );\n\n React.useEffect(() => {\n if (!enabled || !isAsync) return;\n const timer = setTimeout(() => void run(query, undefined, false), debounceMs);\n return () => clearTimeout(timer);\n }, [enabled, isAsync, query, debounceMs, run]);\n\n React.useEffect(() => {\n return () => abortRef.current?.abort();\n }, []);\n\n const normalizedQuery = normalizeFilterQuery(query);\n\n // Async results are server-filtered; re-filtering hides what the label omits.\n const items = React.useMemo(() => {\n if (isAsync) return state.items;\n return filterFilterOptions(staticOptions ?? [], normalizedQuery);\n }, [isAsync, state.items, staticOptions, normalizedQuery]);\n\n const setQuery = React.useCallback((next: string) => setQueryState(next), []);\n\n const loadMore = React.useCallback(() => {\n if (!state.hasMore || state.loading) return;\n void run(query, state.cursor, true);\n }, [state.hasMore, state.loading, state.cursor, query, run]);\n\n const retry = React.useCallback(() => {\n void run(query, undefined, false);\n }, [query, run]);\n\n const resolve = React.useCallback(\n (value: string) => {\n // The ref cache cannot be the only tier: a ref write triggers no render,\n // so the chip would paint the raw value and never repaint. The shared\n // store holds other instances' pages and re-renders this one on a gain.\n const declared = staticOptions?.find((option) => option.value === value);\n if (declared) return declared;\n const fromShared = shared && sharedKey ? shared.get(sharedKey, value) : undefined;\n if (fromShared) return fromShared as FilterOption<O>;\n return cache.current.get(value);\n },\n [staticOptions, shared, sharedKey],\n );\n\n return {\n items,\n loading: state.loading,\n error: state.error,\n hasMore: state.hasMore,\n query,\n setQuery,\n loadMore,\n retry,\n resolve,\n };\n}\n\n/**\n * Resolves committed values no loaded page covered, through `resolveValues`: a\n * restored saved view holds ids the loader never returned. The claim set marks\n * an omitted id asked, so only a REJECTED resolve lets a later mount retry.\n */\nexport function useFilterValueResolution<V, O>(\n field: FilterField<V, O> | undefined,\n values: readonly unknown[],\n): void {\n const actionsContext = React.useContext(FilterActionsContext);\n const shared: FilterResolutionStore | null = actionsContext?.resolution ?? null;\n const sharedKey = filterFieldKey(field, actionsContext?.index);\n const resolveValues = field?.resolveValues;\n const staticOptions = field?.options;\n // Keyed by CONTENT; NUL cannot occur inside a real stored value.\n const valuesKey = values.map((entry) => String(entry)).join(\"\\u0000\");\n\n React.useEffect(() => {\n if (!resolveValues || !shared || !sharedKey || valuesKey === \"\") return;\n const missing = valuesKey.split(\"\\u0000\").filter((value) => {\n if (staticOptions?.some((option) => option.value === value)) return false;\n return shared.get(sharedKey, value) === undefined;\n });\n const wanted = shared.claim(sharedKey, missing);\n if (wanted.length === 0) return;\n\n // No unmount guard: the store outlives the component.\n void Promise.resolve(resolveValues(wanted)).then(\n (options) => shared.set(sharedKey, options),\n () => shared.release(sharedKey, wanted),\n );\n }, [resolveValues, shared, sharedKey, valuesKey, staticOptions]);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Shared chrome */\n/* -------------------------------------------------------------------------- */\n\n/**\n * The panel every editor renders into. A plain flex column, NOT a combobox: an\n * editor inside a Base UI composite would inherit its `aria-activedescendant`\n * and arrow keys, which is hostile to a colour picker or a slider.\n */\nfunction EditorPanel({ children, className }: { children: React.ReactNode; className?: string }) {\n return (\n <div\n data-slot=\"filter-editor\"\n className={cn(\n \"flex w-full flex-col gap-2 p-2\",\n /* The list height cap as a VARIABLE, not the `maxHeight` prop, which\n becomes an inline style no consumer class can beat. 16rem is the\n 256px the menu has always used. */\n \"[--cascader-max-height:16rem]\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\nfunction EditorFooter({\n onCancel,\n onCommit,\n labels,\n host,\n}: Pick<FilterEditorProps, \"labels\" | \"host\"> & {\n onCancel: () => void;\n onCommit: () => void;\n}) {\n // The ONE ladder, not a hardcoded rung: `size=\"sm\"` here measured 4px short\n // of the bar's own controls at `size=\"default\"` in all eight styles.\n const actions = React.useContext(FilterActionsContext);\n const sizes = filterControlSizes({ size: actions?.size ?? \"default\" });\n\n // The create host advances on commit and has Back; amend must offer discard.\n if (host === \"create\") return null;\n return (\n <div className=\"flex items-center justify-end gap-1.5 pt-1\">\n <Button variant=\"ghost\" size={sizes.button} onClick={onCancel}>\n {labels.discard}\n </Button>\n <Button size={sizes.button} onClick={onCommit}>\n {labels.apply}\n </Button>\n </div>\n );\n}\n\n/**\n * `w-full` because `ButtonGroup` is `w-fit`, which collapses inside this\n * fixed-width panel. Sera is an underline style, so its direct children flatten\n * to one bottom-only edge - `border-b-input`, not transparent, since the\n * buttons are the trailing edge and the rule would stop mid-panel.\n */\nconst EDITOR_FIELD_GROUP = \"w-full\";\n\n/**\n * Confirm and cancel, an OUTLINE pair FUSED onto the field's trailing edge.\n * Returns a FRAGMENT: `ButtonGroup` fuses with selectors matching DIRECT\n * children only, so a wrapper div renders three separate boxes. `size=\"icon\"`\n * because every style's icon button at that size is exactly its input's height.\n */\nfunction EditorCommitButtons({\n onCancel,\n onCommit,\n labels,\n}: Pick<FilterEditorProps, \"labels\"> & {\n onCancel: () => void;\n onCommit: () => void;\n}) {\n return (\n <>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"icon\"\n aria-label={labels.apply}\n onClick={onCommit}\n >\n <CheckIcon aria-hidden=\"true\" />\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"icon\"\n aria-label={labels.discard}\n onClick={onCancel}\n >\n <XIcon aria-hidden=\"true\" />\n </Button>\n </>\n );\n}\n\nfunction useCommitKeys(commit: () => void, cancel: () => void) {\n return React.useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === \"Enter\" && !event.nativeEvent.isComposing) {\n event.preventDefault();\n commit();\n return;\n }\n if (event.key === \"Escape\") {\n event.preventDefault();\n // Stop here so a surrounding dialog does not also close.\n event.stopPropagation();\n cancel();\n }\n },\n [commit, cancel],\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Text / number */\n/* -------------------------------------------------------------------------- */\n\nexport function FilterTextEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n return (\n // A width, not shrink-to-fit: the popover is `w-auto`, so an unsized box\n // changes width between the hosts. `w-72` is measured - it holds about 23\n // characters in sera and 27 in nova; `w-64` held about eighteen, too short\n // for an email, and `w-80` was the widest control in a bar of compact\n // chips. Capped at the viewport because `w-80` is 320px and a 360px phone\n // has 40px to spare. A `w-*` on the field wins.\n <EditorPanel className={cn(\"w-72 max-w-[calc(100vw-2rem)] min-w-0\", field.className)}>\n <ButtonGroup className={EDITOR_FIELD_GROUP}>\n <Input\n {...autoFocusProps}\n value={(value as string) ?? \"\"}\n placeholder={field.placeholder ?? labels.valuePlaceholder}\n aria-label={field.label}\n onChange={(event) => onValueChange(event.target.value as V)}\n onKeyDown={onKeyDown}\n />\n {/*\n A lone input still belongs in the group: the per-style sheets re-round\n the LAST child, so a group with nothing fused draws the bare field.\n */}\n {host === \"create\" ? null : (\n <EditorCommitButtons labels={labels} onCancel={cancel} onCommit={() => commit()} />\n )}\n </ButtonGroup>\n </EditorPanel>\n );\n}\n\nexport function FilterNumberEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n return (\n // Deliberately not the text editor's `w-72`: number values are short by\n // construction, and a wide box around \"42\" is the opposite defect.\n <EditorPanel className={cn(\"w-56 min-w-0\", field.className)}>\n <ButtonGroup className={EDITOR_FIELD_GROUP}>\n <Input\n {...autoFocusProps}\n type=\"number\"\n value={value === undefined || value === null ? \"\" : String(value)}\n placeholder={field.placeholder}\n aria-label={field.label}\n onChange={(event) => {\n const raw = event.target.value;\n onValueChange((raw === \"\" ? undefined : Number(raw)) as V);\n }}\n onKeyDown={onKeyDown}\n />\n {host === \"create\" ? null : (\n <EditorCommitButtons labels={labels} onCancel={cancel} onCommit={() => commit()} />\n )}\n </ButtonGroup>\n </EditorPanel>\n );\n}\n\nexport function FilterRangeEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const tuple = (Array.isArray(value) ? value : []) as unknown[];\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n\n const update = (index: 0 | 1, raw: string) => {\n const next = [tuple[0], tuple[1]];\n next[index] = raw === \"\" ? undefined : Number(raw);\n onValueChange(next as V);\n };\n\n return (\n <EditorPanel>\n <div className=\"flex items-center gap-1.5\">\n <Input\n {...autoFocusProps}\n type=\"number\"\n value={tuple[0] === undefined ? \"\" : String(tuple[0])}\n aria-label={labels.rangeFrom(field.label)}\n onChange={(event) => update(0, event.target.value)}\n onKeyDown={onKeyDown}\n />\n <span className=\"text-muted-foreground text-xs\">{labels.rangeSeparator}</span>\n <Input\n type=\"number\"\n value={tuple[1] === undefined ? \"\" : String(tuple[1])}\n aria-label={labels.rangeTo(field.label)}\n onChange={(event) => update(1, event.target.value)}\n onKeyDown={onKeyDown}\n />\n </div>\n <EditorFooter host={host} labels={labels} onCancel={cancel} onCommit={() => commit()} />\n </EditorPanel>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* The menu */\n/* -------------------------------------------------------------------------- */\n\n/** One row. The shape both the operator menu and the option editors hand over. */\nexport interface FilterListItem {\n value: string;\n label: string;\n icon?: React.ReactNode;\n description?: string;\n keywords?: string[];\n disabled?: boolean;\n /**\n * A None row, from `FilterOption.exclusive`. LAYOUT only: what a pick DOES is\n * `applyFilterExclusiveSelection`, in the option editor's handler. A consumer\n * composing `FilterMenu` into an editor of their own owns the same call.\n */\n exclusive?: boolean;\n}\n\n/**\n * Beyond the cascader's own fields: one divider flag, on the first row of a\n * group that is not the first, because grouping happens out here. A separator\n * NODE would join the option ring, and `[data-selected] + :not([data-selected])`\n * reads the LIVE selection, so unticking a pinned row drew a second line.\n */\ninterface FilterMenuMeta {\n divider?: boolean;\n /**\n * Carries `FilterListItem.exclusive` down to the row. The rule above it is\n * `aria-hidden`, so the row's accessible name is the only channel arriving\n * before the press, and `renderItem` receives the node and nothing else.\n *\n * `[data-slot=filter-menu-exclusive-hint]` is also the handle a consumer\n * styles the row through: the cascader's row element takes no attribute of\n * ours, so `:has([data-slot=filter-menu-exclusive-hint])` selects it.\n */\n exclusive?: boolean;\n}\n\n/** Joins a selection into one comparable key; NUL cannot occur in a value. */\nconst PIN_SEPARATOR = \"\\u0000\";\n\n/** A bound on a race: each attempt costs one task and stops on success. */\nconst MAX_PIN_RESTORE_ATTEMPTS = 4;\n\ninterface PendingPinRestore {\n /** The row the user was on when the rows moved. Tracked by VALUE, never index. */\n value: string;\n /** The index it sat at, which is the half of the signature Base UI keeps. */\n index: number;\n /** The order the rows landed in, so the target's new position is known. */\n order: string[];\n attempts: number;\n}\n\n/**\n * Carries the HIGHLIGHT across a live re-pin. Base UI holds it as an INDEX and\n * a keyed reorder MOVES the DOM node rather than remounting it, so the index\n * map only rebuilds when the `MutationObserver` fires: until then, ticking a\n * row moves the highlight down one. So this ARMS in the layout effect, where\n * the map still reads the OLD order, and fires on the signature (SAME index,\n * DIFFERENT row) from a TASK, re-trying because the store event and the re-sort\n * are unordered. A synthetic `mousemove`, since Base UI exposes no setter.\n */\nfunction FilterMenuPinKeeper({\n order,\n items,\n}: {\n order: string[];\n /** The data the order was derived from, by identity. */\n items: FilterListItem[];\n}) {\n const { baseId } = useCascaderActions();\n const highlight = useCascaderHighlight();\n const previousRef = React.useRef<{\n order: string[];\n items: FilterListItem[];\n } | null>(null);\n const pendingRef = React.useRef<PendingPinRestore | null>(null);\n const timerRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // From the render: on the reordering commit a ref still holds the OLD row.\n const highlightedValue = highlight.value;\n const highlightedIndex = highlight.index;\n\n const stop = React.useCallback(() => {\n pendingRef.current = null;\n if (timerRef.current === null) return;\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }, []);\n\n const startRestore = React.useCallback(() => {\n const attempt = () => {\n timerRef.current = null;\n const pending = pendingRef.current;\n if (!pending) return;\n\n const target = pending.order.indexOf(pending.value);\n const rows = document\n .getElementById(`${baseId}-column-0`)\n ?.querySelectorAll<HTMLElement>('[data-slot=\"cascader-item\"]');\n // A WINDOWED list renders a subset, so row N is not order[N]. Leave it.\n if (target < 0 || !rows || rows.length !== pending.order.length) {\n stop();\n return;\n }\n\n rows[target]?.dispatchEvent(new MouseEvent(\"mousemove\", { bubbles: true }));\n\n pending.attempts += 1;\n if (pending.attempts >= MAX_PIN_RESTORE_ATTEMPTS) {\n stop();\n return;\n }\n timerRef.current = setTimeout(attempt, 0);\n };\n\n timerRef.current = setTimeout(attempt, 0);\n }, [baseId, stop]);\n\n // No dependency list: the arm must run on the commit that reorders the rows.\n React.useLayoutEffect(() => {\n const previous = previousRef.current;\n previousRef.current = { order, items };\n\n if (!previous || previous.order === order) return;\n // New DATA (a page, a query) is Base UI's to highlight; only a re-pin is ours.\n if (previous.items !== items) return;\n if (!highlightedValue) return;\n // Content, not identity: a re-pin can leave the rows in the same order.\n if (isSameOrder(previous.order, order)) return;\n\n pendingRef.current = {\n value: highlightedValue,\n index: highlightedIndex,\n order,\n attempts: 0,\n };\n });\n\n React.useEffect(() => {\n const pending = pendingRef.current;\n if (!pending) return;\n\n // Back where it belongs, or moved by the user: either way the arm is spent.\n if (highlightedValue === pending.value || highlightedIndex !== pending.index) {\n stop();\n return;\n }\n // Already chasing this one; a second chain would double every dispatch.\n if (pending.attempts > 0 || timerRef.current !== null) return;\n startRestore();\n }, [highlightedValue, highlightedIndex, startRestore, stop]);\n\n React.useEffect(() => stop, [stop]);\n\n return null;\n}\n\n/** Element-wise, because the arrays are rebuilt on every selection change. */\nfunction isSameOrder(a: string[], b: string[]) {\n if (a.length !== b.length) return false;\n for (let index = 0; index < a.length; index += 1) {\n if (a[index] !== b[index]) return false;\n }\n return true;\n}\n\nexport interface FilterMenuProps {\n items: FilterListItem[];\n /** Committed values. Drives the check mark and the pinned group. */\n selected: string[];\n multiple?: boolean;\n /** Receives the FULL next selection, so no caller re-derives it. */\n onSelectionChange: (values: string[]) => void;\n labels: FilterLabels;\n ariaLabel: string;\n searchPlaceholder?: string;\n /** Whether the search field is VISIBLE. It is always rendered regardless. */\n searchable?: boolean;\n /**\n * Viewport height before the list scrolls, in pixels. Omitted on purpose by\n * the option editors: it becomes an inline style a consumer's `className`\n * cannot outrank, so the panel publishes `--cascader-max-height` instead.\n */\n maxHeight?: number;\n /**\n * Pin selected rows above the rest, with a full-bleed rule between them. Off\n * by default; the option editors read `FilterField.pinSelected` per field.\n */\n pinSelected?: boolean;\n /**\n * Order INSIDE each group, plus WHEN the partition is taken. Declaration\n * order by default, so the partition is stable rather than a re-sort.\n */\n sortSelected?: \"none\" | \"label\" | \"snapshot\";\n /** The caller already filtered `items`, so the cascader must not re-filter. */\n preFiltered?: boolean;\n autoFocusProps?: FilterEditorProps[\"autoFocusProps\"];\n /** Controlled query. Pair it with `onQueryChange` to filter outside. */\n query?: string;\n onQueryChange?: (query: string) => void;\n state?: Pick<FilterOptionsState<unknown>, \"loading\" | \"error\" | \"hasMore\" | \"loadMore\" | \"retry\">;\n}\n\n/**\n * One accessible list, shared by the operator menu and every option editor. It\n * is the CASCADER configured flat, not a list this file implements, which\n * brings the typeahead, RTL handling and live region with it. Only the pinning\n * and the paging affordance stay out here.\n */\nexport function FilterMenu({\n items,\n selected,\n multiple = false,\n onSelectionChange,\n labels,\n ariaLabel,\n searchPlaceholder,\n searchable = true,\n maxHeight,\n pinSelected = false,\n sortSelected = \"none\",\n preFiltered = false,\n autoFocusProps,\n query,\n onQueryChange,\n state,\n}: FilterMenuProps) {\n /**\n * The pin set as a KEY, not an array: `selected` is a fresh array on most\n * renders, so a memo depending on it re-partitions every render.\n */\n const liveKey = pinSelected ? selected.join(PIN_SEPARATOR) : \"\";\n\n /**\n * The same set, frozen at OPEN, for `sortSelected: \"snapshot\"`. LIVE is the\n * default: \"your picks, then the rest\" is about the CURRENT selection, and\n * `FilterMenuPinKeeper` pays for rows moving under the pointer.\n */\n const [snapshotKey] = React.useState(() => liveKey);\n // `pinSelected` re-checked here, not just through `liveKey`: `snapshotKey` is\n // frozen at MOUNT, so a menu that lost the prop would keep partitioning.\n const pinnedKey = !pinSelected ? \"\" : sortSelected === \"snapshot\" ? snapshotKey : liveKey;\n\n // Uncontrolled unless the caller owns the query, as an option service does.\n const [ownQuery, setOwnQuery] = React.useState(\"\");\n const currentQuery = query ?? ownQuery;\n const setQuery = onQueryChange ?? setOwnQuery;\n\n /**\n * Memoized on the SELECTION, not the query: folding the query in re-sorted\n * 4,000 rows on every keystroke, for a one pixel rule.\n */\n const partitioned = React.useMemo(() => {\n const pinned = new Set(pinnedKey ? pinnedKey.split(PIN_SEPARATOR) : []);\n\n /*\n Exclusive rows come out BEFORE the pin partition; their position is fixed.\n Pinning is by SELECTION, so a ticked None row would lift itself above the\n very rule drawn to set it apart and drop back on untick. Grouping by ROLE\n means the pinned group counts ordinary picks only, which is also why\n picking None draws no pin rule: it clears every other pick.\n */\n const exclusive = items.filter((item) => item.exclusive);\n const values = exclusive.length ? items.filter((item) => !item.exclusive) : items;\n\n const chosen = pinned.size ? values.filter((item) => pinned.has(item.value)) : [];\n const rest = pinned.size ? values.filter((item) => !pinned.has(item.value)) : values;\n\n // The SCHEMA's order inside each group unless the field asks otherwise:\n // option order is usually semantic.\n const ordered =\n sortSelected === \"label\"\n ? [\n [...chosen].sort((a, b) => a.label.localeCompare(b.label)),\n [...rest].sort((a, b) => a.label.localeCompare(b.label)),\n [...exclusive].sort((a, b) => a.label.localeCompare(b.label)),\n ]\n : [chosen, rest, exclusive];\n\n const rows = [...ordered[0], ...ordered[1], ...ordered[2]];\n\n return {\n chosenCount: chosen.length,\n /** Index of the first exclusive row, or -1 when the list has none. */\n exclusiveAt: exclusive.length ? rows.length - exclusive.length : -1,\n // The render order alone, so a REORDER is an identity compare.\n order: rows.map((item) => item.value),\n nodes: rows.map<CascaderNode<FilterMenuMeta>>((item) => ({\n value: item.value,\n label: item.label,\n icon: item.icon,\n description: item.description,\n keywords: item.keywords,\n disabled: item.disabled,\n // Only exclusive rows carry `data`, so the ordinary 4,000 keep theirs.\n data: item.exclusive ? { exclusive: true } : undefined,\n })),\n };\n }, [items, pinnedKey, sortSelected]);\n\n // No rule under a query: \"your picks, then the rest\" is about the WHOLE list.\n const dividerAt = partitioned.chosenCount && !currentQuery.trim() ? partitioned.chosenCount : -1;\n\n // Survives a search, unlike the pin rule: it is a fact about the row.\n const exclusiveDividerAt = partitioned.exclusiveAt;\n\n const nodes = React.useMemo<CascaderNode<FilterMenuMeta>[]>(() => {\n const total = partitioned.nodes.length;\n // Only a boundary with rows on BOTH sides is one: a rule on row 0 would\n // be a line above the top of the list.\n const marks = [dividerAt, exclusiveDividerAt].filter((index) => index > 0 && index < total);\n if (marks.length === 0) return partitioned.nodes;\n // Rows rewritten, not rebuilt: copying 4,000 objects would undo the split.\n const next = partitioned.nodes.slice();\n for (const index of marks) {\n // MERGED, never replaced: the two boundaries usually fall on one row, and\n // overwriting `data` dropped the flag the accessible name is built from.\n next[index] = {\n ...next[index],\n data: { ...next[index].data, divider: true },\n };\n }\n return next;\n }, [partitioned, dividerAt, exclusiveDividerAt]);\n\n const renderItem = React.useCallback(\n (node: CascaderNode<FilterMenuMeta>, itemState: CascaderItemState<FilterMenuMeta>) => (\n <>\n {node.data?.divider ? (\n <span\n data-slot=\"filter-menu-divider\"\n aria-hidden=\"true\"\n /* Full bleed, over the per-style `--cascader-list-pad` the shell\n publishes: a rule stopping at the row's inset box reads as a gap.\n Centred in the 8px the row gives back above itself, not `top-0`. */\n className=\"bg-border absolute inset-x-[calc(var(--cascader-list-pad,4px)*-1)] -top-1 h-px\"\n />\n ) : null}\n\n {node.icon ? (\n <span\n data-slot=\"filter-menu-icon\"\n className=\"text-muted-foreground flex shrink-0 items-center justify-center\"\n >\n {node.icon}\n </span>\n ) : null}\n\n <span className=\"flex min-w-0 flex-1 flex-col items-start gap-0.5\">\n <span className=\"w-full truncate text-start\">{node.label}</span>\n {node.description ? (\n <span className=\"text-muted-foreground w-full truncate text-start text-xs\">\n {node.description}\n </span>\n ) : null}\n </span>\n\n {/*\n What the aria-hidden rule says, for the people it does not reach.\n Inside the option element so it joins the row's accessible NAME, not\n an `aria-describedby`: a description is announced late or not at all,\n and this has to arrive before the press. The cascader's `srDetails`\n cannot either: `renderItem` replaces the row body. Empty copy renders\n nothing, so `labels.exclusiveHint` of \"\" silences it.\n */}\n {node.data?.exclusive && labels.exclusiveHint ? (\n <span data-slot=\"filter-menu-exclusive-hint\" className=\"sr-only\">\n {`, ${labels.exclusiveHint}`}\n </span>\n ) : null}\n\n {/* A check mark in both modes, never the cascader's default box. */}\n {itemState.selected ? (\n <span\n data-slot=\"filter-menu-check\"\n /* The gutter every style already reserves, on the cascader's own\n logical inset. `end-*` rather than `right-2`, so RTL mirrors. */\n className=\"pointer-events-none absolute end-(--cascader-row-inset,8px)! flex size-4 items-center justify-center rtl:right-auto!\"\n >\n <CheckIcon className=\"text-foreground! **:text-foreground!\" />\n </span>\n ) : null}\n </>\n ),\n [labels.exclusiveHint],\n );\n\n const cascaderLabels = React.useMemo(\n () => ({\n search: searchPlaceholder ?? labels.searchOptions,\n empty: labels.empty,\n loading: labels.loading,\n loadingMore: labels.loadingMore,\n loadMore: labels.loadMore,\n error: labels.error,\n retry: labels.retry,\n // Named after the field, not the cascader's own \"Top level\" wording.\n rootLevel: ariaLabel,\n panelLabel: ariaLabel,\n // Run FLAT, so the default hint would teach branch keys that do not exist.\n keyboardHint: () => \"\",\n // From `FilterLabels`, so the menu ships no English of its own.\n resultsAnnouncement: labels.resultsAnnouncement,\n actionsLabel: labels.actionsLabel,\n }),\n [labels, ariaLabel, searchPlaceholder],\n );\n\n /**\n * Paging and retry in the pinned footer, never a row: a row would join the\n * option ring, where arrows land on it and a query filters it away mid-page.\n */\n const actions = React.useMemo<CascaderActionItem[]>(() => {\n if (state?.error) {\n return [{ value: \"retry\", label: labels.retry, onSelect: state.retry }];\n }\n if (state?.hasMore) {\n return [\n {\n value: \"load-more\",\n label: state.loading ? labels.loadingMore : labels.loadMore,\n disabled: state.loading,\n onSelect: state.loadMore,\n },\n ];\n }\n return [];\n }, [state, labels]);\n\n const shared = {\n // Inline and pinned open with a no-op handler, so the unconditional\n // `setOpen(false)` of a single-select commit cannot dismiss the popover.\n inline: true,\n open: true,\n onOpenChange: () => {},\n items: nodes,\n inputValue: currentQuery,\n onInputValueChange: setQuery,\n maxHeight,\n renderItem,\n labels: cascaderLabels,\n actions,\n // The option service is the ONE filter when it owns the query.\n ...(preFiltered ? { filter: () => true } : null),\n };\n\n const cascaderProps: CascaderProps<FilterMenuMeta> = multiple\n ? {\n ...shared,\n multiple: true,\n value: selected,\n onValueChange: (values: string[]) => onSelectionChange(values),\n }\n : {\n ...shared,\n value: selected[0] ?? \"\",\n onValueChange: (value: string) => onSelectionChange(value ? [value] : []),\n };\n\n return (\n <Cascader {...cascaderProps}>\n <CascaderPanel>\n {/*\n `searchable: false` hides the FIELD, never removes it: the input owns\n focus and `aria-activedescendant`, so a menu without one has no\n keyboard. The class goes on the nav so the strip's border goes too.\n */}\n <CascaderNav\n className={cn(\n /* The nav's divider is `border-border/60` and the group separator\n is a full-opacity `bg-border`; two strengths read as a mistake. */\n \"border-border\",\n !searchable && \"sr-only\",\n )}\n >\n <CascaderInput\n {...(autoFocusProps ?? {})}\n placeholder={searchPlaceholder ?? labels.searchOptions}\n aria-label={ariaLabel}\n />\n </CascaderNav>\n <CascaderEmpty>\n {state?.error ? labels.error : state?.loading ? labels.loading : labels.empty}\n </CascaderEmpty>\n {/*\n Plain rows, DELIBERATELY not `CascaderVirtualItems`: windowing stands\n `FilterMenuPinKeeper` down. The long lists are async and PAGE 25.\n */}\n <CascaderList\n /**\n * Real layout space around the group rule, which is absolutely\n * positioned and adds no height. `renderItem` cannot reach the row's\n * own box, and a spacer NODE would join the option ring.\n *\n * `:has()` is affordable here: scoped to this one list, a compound\n * whose descendant exists on at most ONE row, and these menus render\n * tens of rows rather than thousands.\n */\n className=\"[&>[data-slot=cascader-item]:has([data-slot=filter-menu-divider])]:mt-2\"\n >\n <CascaderItems />\n </CascaderList>\n <CascaderFooter />\n <CascaderStatus />\n {/*\n Last, so its layout effect reads the reordered DOM after every row has\n registered. Not mounted at all for a menu that cannot reorder.\n */}\n {pinSelected && sortSelected !== \"snapshot\" ? (\n <FilterMenuPinKeeper order={partitioned.order} items={items} />\n ) : null}\n </CascaderPanel>\n </Cascader>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Option based editors */\n/* -------------------------------------------------------------------------- */\n\nfunction OptionEditor<V, O>(props: FilterEditorProps<V, O> & { multiple: boolean }) {\n const { multiple, options, labels, autoFocusProps, commit, cancel, onValueChange, value, field } =\n props;\n\n const selected = React.useMemo(() => {\n if (value === undefined || value === null) return [];\n return (Array.isArray(value) ? value : [value]) as string[];\n }, [value]);\n\n const announce = React.useContext(FilterActionsContext)?.announce;\n\n return (\n /*\n A DELIBERATELY narrow default: 12rem holds around 22 characters at every\n style's row size. `field.className` lands LAST, so a consumer's `w-*` wins.\n */\n <EditorPanel className={cn(\"w-48 min-w-0 gap-0 p-0\", field.className)}>\n <FilterMenu\n items={options.items}\n selected={selected}\n multiple={multiple}\n onSelectionChange={(raw) => {\n /*\n The ONE place the None rule is applied: every route into a selection\n arrives here, so click and keyboard cannot disagree, and only the\n editor can ANSWER it - `options.resolve` sees the schema and every\n loaded page, where the menu holds only the rows on screen.\n */\n const values = applyFilterExclusiveSelection(raw, selected, (value) =>\n Boolean(options.resolve(value)?.exclusive),\n );\n\n /*\n Identity is the test: the rule hands back `raw` itself unless it\n intervened. Announced because nothing else reports it: focus never\n moved, and nobody is on the rows that lost their check marks.\n */\n if (values !== raw && announce) {\n const arrived = values.find((entry) => !selected.includes(entry));\n const cleared = raw.length - values.length;\n if (arrived !== undefined && cleared > 0) {\n announce(\n labels.exclusiveAnnouncement(options.resolve(arrived)?.label ?? arrived, cleared),\n );\n }\n } else if (values === raw && raw.length > 1) {\n /*\n The hole in the rule, made LOUD. An unresolvable value is treated\n as ordinary and cannot be told from an id whose label has not\n arrived, so this warns rather than acts. Needs a SEEN None row.\n */\n const hasNoneRow =\n options.items.some((item) => item.exclusive) ||\n Boolean(field.options?.some((option) => option.exclusive));\n const unresolved = hasNoneRow\n ? raw.find((entry) => options.resolve(entry) === undefined)\n : undefined;\n if (unresolved !== undefined) {\n warnFilterOnce(\n `exclusive-unresolved:${field.id}`,\n `field \"${field.id}\" has an exclusive option, but the value ` +\n `\"${unresolved}\" resolves to no option, so the None rule ` +\n `cannot tell whether it is the exclusive one and has left ` +\n `it in place. Declare the exclusive option in the field's ` +\n `\\`options\\` even when the rest of the list is async, or ` +\n `cover stored values with \\`resolveValues\\`.`,\n );\n }\n }\n\n if (!multiple) {\n const next = values[0];\n // Base UI deselects the committed row; an empty filter is no gain.\n if (next === undefined) {\n cancel();\n return;\n }\n onValueChange(next as V);\n commit(next as V);\n return;\n }\n onValueChange(values as V);\n // Every toggle commits with the popover open: several picks, one gesture.\n commit(values as V, { close: false });\n }}\n labels={labels}\n ariaLabel={field.label}\n searchable={field.searchable ?? true}\n // Not a composed `Search ${label}...`: hardcoded English no `labels`\n // override could reach, and lowercasing a label is locale-hostile.\n searchPlaceholder={field.placeholder}\n pinSelected={field.pinSelected ?? false}\n sortSelected={field.sortSelected}\n // `useFilterOptions` already applied the query, locally or server side.\n preFiltered\n query={options.query}\n onQueryChange={options.setQuery}\n state={options}\n autoFocusProps={autoFocusProps}\n />\n </EditorPanel>\n );\n}\n\nexport function FilterSelectEditor<V, O>(props: FilterEditorProps<V, O>) {\n return <OptionEditor {...props} multiple={false} />;\n}\n\nexport function FilterMultiSelectEditor<V, O>(props: FilterEditorProps<V, O>) {\n return <OptionEditor {...props} multiple />;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Boolean */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Module level, so the menu's index is not rebuilt on every render. Not in\n * `FilterLabels`: the chip's own display spells the same two words out.\n */\nconst BOOLEAN_ITEMS: FilterListItem[] = [\n { value: \"true\", label: \"True\" },\n { value: \"false\", label: \"False\" },\n];\n\nexport function FilterBooleanEditor<V, O>({\n value,\n onValueChange,\n commit,\n labels,\n autoFocusProps,\n field,\n}: FilterEditorProps<V, O>) {\n return (\n // Two words, and `field.className` lands last so a consumer's `w-*` wins.\n <EditorPanel className={cn(\"w-40 min-w-0 gap-0 p-0\", field.className)}>\n <FilterMenu\n items={BOOLEAN_ITEMS}\n selected={value === true ? [\"true\"] : value === false ? [\"false\"] : []}\n onSelectionChange={(values) => {\n /* Deselecting the committed row leaves nothing to filter on, so it is\n a no-op rather than a commit of `false`. */\n if (values.length === 0) return;\n const next = (values[0] === \"true\") as V;\n onValueChange(next);\n commit(next);\n }}\n labels={labels}\n ariaLabel={field.label}\n /* Two rows: a search over them is more chrome than list, but the\n field is still rendered, hidden, because it owns the keyboard. */\n searchable={false}\n autoFocusProps={autoFocusProps}\n />\n </EditorPanel>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Resolution */\n/* -------------------------------------------------------------------------- */\n\nexport type {\n AnyFilterEditor,\n FilterEditorRegistry,\n} from \"./filters-types\";\n\nexport const DEFAULT_FILTER_EDITORS: FilterEditorRegistry = {\n text: FilterTextEditor,\n number: FilterNumberEditor,\n range: FilterRangeEditor,\n select: FilterSelectEditor,\n multiselect: FilterMultiSelectEditor,\n boolean: FilterBooleanEditor,\n};\n\n/**\n * Picks the editor for a (field, operator) pair: the field's own `editor`, then\n * the operator's ARITY, then the field's `type`. Arity outranks type because\n * \"between\" wants two boxes whatever the field said.\n */\nexport function resolveFilterEditor<V, O>(\n field: FilterField<V, O>,\n operator: FilterOperator | undefined,\n editors: FilterEditorRegistry,\n): AnyFilterEditor | undefined {\n if (typeof field.editor === \"function\") {\n // The one place a consumer's typed editor meets the erased registry.\n return field.editor as unknown as AnyFilterEditor;\n }\n if (typeof field.editor === \"string\") {\n const named = editors[field.editor];\n if (named) return named;\n }\n\n const arity = operator?.arity ?? \"one\";\n if (arity === \"none\") return undefined;\n if (arity === \"range\") return editors.range;\n if (arity === \"many\") {\n // An option-backed field gets checkboxes; anything else receives an array.\n if (field.options || field.loadOptions) return editors.multiselect;\n }\n\n return editors[field.type ?? \"text\"] ?? editors.text;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA2DA,MAAM,O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U,QAAQ,CAAC,OAAO,IAAI,CAAC;GACrE,oBAAoB,WAAW;IAG7B,IAAI,OAAO,WAAW,GAAG;IACzB,MAAM,OAAQ,OAAO,OAAO;IAC5B,cAAc,IAAI;IAClB,OAAO,IAAI;GACb;GACQ;GACR,WAAW,MAAM;GAGjB,YAAY;GACI;EACjB,CAAA;CACU,CAAA;AAEjB;AAWA,MAAa,yBAA+C;CAC1D,MAAM;CACN,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,aAAa;CACb,SAAS;AACX;;;;;;AAOA,SAAgB,oBACd,OACA,UACA,SAC6B;CAC7B,IAAI,OAAO,MAAM,WAAW,YAE1B,OAAO,MAAM;CAEf,IAAI,OAAO,MAAM,WAAW,UAAU;EACpC,MAAM,QAAQ,QAAQ,MAAM;EAC5B,IAAI,OAAO,OAAO;CACpB;CAEA,MAAM,QAAQ,UAAU,SAAS;CACjC,IAAI,UAAU,QAAQ,OAAO,KAAA;CAC7B,IAAI,UAAU,SAAS,OAAO,QAAQ;CACtC,IAAI,UAAU,QAER;MAAA,MAAM,WAAW,MAAM,aAAa,OAAO,QAAQ;CAAA;CAGzD,OAAO,QAAQ,MAAM,QAAQ,WAAW,QAAQ;AAClD"}
1
+ {"version":3,"file":"filters-editors.js","names":[],"sources":["../../../../src/components/reui/filters/filters-editors.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { CheckIcon, XIcon } from \"lucide-react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { Button } from \"../../ui/button\";\nimport { ButtonGroup } from \"../../ui/button-group\";\nimport { Input } from \"../../ui/input\";\nimport type { CascaderItemState, CascaderProps } from \"../cascader/cascader\";\nimport {\n Cascader,\n CascaderEmpty,\n CascaderList,\n CascaderPanel,\n CascaderStatus,\n} from \"../cascader/cascader\";\nimport { useCascaderActions, useCascaderHighlight } from \"../cascader/cascader-context\";\nimport { CascaderFooter } from \"../cascader/cascader-footer\";\nimport { CascaderItems } from \"../cascader/cascader-item\";\nimport { CascaderInput, CascaderNav } from \"../cascader/cascader-nav\";\nimport type { CascaderActionItem, CascaderNode } from \"../cascader/cascader-types\";\nimport {\n FilterActionsContext,\n type FilterResolutionStore,\n filterControlSizes,\n} from \"./filters-context\";\nimport {\n applyFilterExclusiveSelection,\n filterFilterOptions,\n joinFilterPath,\n normalizeFilterQuery,\n warnFilterOnce,\n} from \"./filters-lib\";\nimport type {\n AnyFilterEditor,\n FilterEditorProps,\n FilterEditorRegistry,\n FilterField,\n FilterIndex,\n FilterLabels,\n FilterLoadResult,\n FilterOperator,\n FilterOption,\n FilterOptionsState,\n} from \"./filters-types\";\n\n/* -------------------------------------------------------------------------- */\n/* The options service */\n/* -------------------------------------------------------------------------- */\n\ninterface OptionsInternalState<O> {\n items: FilterOption<O>[];\n loading: boolean;\n error: boolean;\n hasMore: boolean;\n cursor?: string;\n}\n\nconst IDLE: OptionsInternalState<never> = {\n items: [],\n loading: false,\n error: false,\n hasMore: false,\n};\n\n/** Stable no-op subscription, for a hook running outside a `Filters` root. */\nconst emptySubscribe = () => () => {};\nconst zeroVersion = () => 0;\n\n/**\n * The joined path of a field, from the schema index. Keyed by PATH, not field\n * identity, so labels survive a schema rebuild; an unknown field uses its id.\n */\nfunction filterFieldKey<V, O>(\n field: FilterField<V, O> | undefined,\n index: FilterIndex | undefined,\n): string | null {\n if (!field) return null;\n if (index) {\n for (const entry of index.all) {\n if ((entry.field as unknown) === (field as unknown)) {\n return joinFilterPath(entry.path);\n }\n }\n }\n return `#${field.id}`;\n}\n\n/**\n * The shared option service every option-backed editor receives: debouncing,\n * aborting, cursor paging and value-to-label resolution. A deliberate fork of\n * the cascader's async machinery. Resolution is two-tier: a ref cache written\n * in an EFFECT, plus the root's `FilterResolutionStore`, without which a\n * `loadOptions`-only field showed its raw id once the menu closed.\n */\nexport function useFilterOptions<V, O>(\n field: FilterField<V, O> | undefined,\n enabled: boolean,\n debounceMs = 250,\n): FilterOptionsState<O> {\n const [query, setQueryState] = React.useState(\"\");\n const [state, setState] = React.useState<OptionsInternalState<O>>(\n IDLE as OptionsInternalState<O>,\n );\n\n const cache = React.useRef(new Map<string, FilterOption<O>>());\n const requestId = React.useRef(0);\n const abortRef = React.useRef<AbortController | null>(null);\n\n // Read directly, so this degrades outside a `Filters` root instead of throwing.\n const actionsContext = React.useContext(FilterActionsContext);\n const shared: FilterResolutionStore | null = actionsContext?.resolution ?? null;\n const sharedKey = filterFieldKey(field, actionsContext?.index);\n\n // Re-render when a label lands ANYWHERE under this root, not just here.\n React.useSyncExternalStore(\n shared ? shared.subscribe : emptySubscribe,\n shared ? shared.getVersion : zeroVersion,\n shared ? shared.getVersion : zeroVersion,\n );\n\n const staticOptions = field?.options;\n const loadOptions = field?.loadOptions;\n const isAsync = Boolean(loadOptions);\n\n // Seeded in an effect, not during render, so the render stays pure.\n React.useEffect(() => {\n if (!staticOptions) return;\n for (const option of staticOptions) cache.current.set(option.value, option);\n if (shared && sharedKey) shared.set(sharedKey, staticOptions);\n }, [staticOptions, shared, sharedKey]);\n\n React.useEffect(() => {\n for (const option of state.items) cache.current.set(option.value, option);\n if (shared && sharedKey && state.items.length) {\n shared.set(sharedKey, state.items);\n }\n }, [state.items, shared, sharedKey]);\n\n const run = React.useCallback(\n async (nextQuery: string, cursor: string | undefined, append: boolean) => {\n if (!loadOptions) return;\n\n abortRef.current?.abort();\n const controller = new AbortController();\n abortRef.current = controller;\n const id = ++requestId.current;\n\n setState((previous) => ({\n ...previous,\n loading: true,\n error: false,\n items: append ? previous.items : [],\n }));\n\n try {\n const result = await loadOptions(nextQuery, {\n signal: controller.signal,\n cursor,\n });\n // A superseded request must not write; the id, not the abort, decides.\n if (id !== requestId.current) return;\n\n const normalized: FilterLoadResult<O> = Array.isArray(result) ? { items: result } : result;\n\n setState((previous) => ({\n items: append ? [...previous.items, ...normalized.items] : normalized.items,\n loading: false,\n error: false,\n hasMore: normalized.hasMore ?? Boolean(normalized.nextCursor),\n cursor: normalized.nextCursor,\n }));\n } catch (error) {\n if (id !== requestId.current) return;\n if ((error as Error)?.name === \"AbortError\") return;\n setState((previous) => ({\n ...previous,\n loading: false,\n error: true,\n hasMore: false,\n }));\n }\n },\n [loadOptions],\n );\n\n React.useEffect(() => {\n if (!enabled || !isAsync) return;\n const timer = setTimeout(() => void run(query, undefined, false), debounceMs);\n return () => clearTimeout(timer);\n }, [enabled, isAsync, query, debounceMs, run]);\n\n React.useEffect(() => {\n return () => abortRef.current?.abort();\n }, []);\n\n const normalizedQuery = normalizeFilterQuery(query);\n\n // Async results are server-filtered; re-filtering hides what the label omits.\n const items = React.useMemo(() => {\n if (isAsync) return state.items;\n return filterFilterOptions(staticOptions ?? [], normalizedQuery);\n }, [isAsync, state.items, staticOptions, normalizedQuery]);\n\n const setQuery = React.useCallback((next: string) => setQueryState(next), []);\n\n const loadMore = React.useCallback(() => {\n if (!state.hasMore || state.loading) return;\n void run(query, state.cursor, true);\n }, [state.hasMore, state.loading, state.cursor, query, run]);\n\n const retry = React.useCallback(() => {\n void run(query, undefined, false);\n }, [query, run]);\n\n const resolve = React.useCallback(\n (value: string) => {\n // The ref cache cannot be the only tier: a ref write triggers no render,\n // so the chip would paint the raw value and never repaint. The shared\n // store holds other instances' pages and re-renders this one on a gain.\n const declared = staticOptions?.find((option) => option.value === value);\n if (declared) return declared;\n const fromShared = shared && sharedKey ? shared.get(sharedKey, value) : undefined;\n if (fromShared) return fromShared as FilterOption<O>;\n return cache.current.get(value);\n },\n [staticOptions, shared, sharedKey],\n );\n\n return {\n items,\n loading: state.loading,\n error: state.error,\n hasMore: state.hasMore,\n query,\n setQuery,\n loadMore,\n retry,\n resolve,\n };\n}\n\n/**\n * Resolves committed values no loaded page covered, through `resolveValues`: a\n * restored saved view holds ids the loader never returned. The claim set marks\n * an omitted id asked, so only a REJECTED resolve lets a later mount retry.\n */\nexport function useFilterValueResolution<V, O>(\n field: FilterField<V, O> | undefined,\n values: readonly unknown[],\n): void {\n const actionsContext = React.useContext(FilterActionsContext);\n const shared: FilterResolutionStore | null = actionsContext?.resolution ?? null;\n const sharedKey = filterFieldKey(field, actionsContext?.index);\n const resolveValues = field?.resolveValues;\n const staticOptions = field?.options;\n // Keyed by CONTENT; NUL cannot occur inside a real stored value.\n const valuesKey = values.map((entry) => String(entry)).join(\"\\u0000\");\n\n React.useEffect(() => {\n if (!resolveValues || !shared || !sharedKey || valuesKey === \"\") return;\n const missing = valuesKey.split(\"\\u0000\").filter((value) => {\n if (staticOptions?.some((option) => option.value === value)) return false;\n return shared.get(sharedKey, value) === undefined;\n });\n const wanted = shared.claim(sharedKey, missing);\n if (wanted.length === 0) return;\n\n // No unmount guard: the store outlives the component.\n void Promise.resolve(resolveValues(wanted)).then(\n (options) => shared.set(sharedKey, options),\n () => shared.release(sharedKey, wanted),\n );\n }, [resolveValues, shared, sharedKey, valuesKey, staticOptions]);\n}\n\n/* -------------------------------------------------------------------------- */\n/* Shared chrome */\n/* -------------------------------------------------------------------------- */\n\n/**\n * The panel every editor renders into. A plain flex column, NOT a combobox: an\n * editor inside a Base UI composite would inherit its `aria-activedescendant`\n * and arrow keys, which is hostile to a colour picker or a slider.\n */\nfunction EditorPanel({ children, className }: { children: React.ReactNode; className?: string }) {\n return (\n <div\n data-slot=\"filter-editor\"\n className={cn(\n \"flex w-full flex-col gap-2 p-2\",\n /* The list height cap as a VARIABLE, not the `maxHeight` prop, which\n becomes an inline style no consumer class can beat. 16rem is the\n 256px the menu has always used. */\n \"[--cascader-max-height:16rem]\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\nfunction EditorFooter({\n onCancel,\n onCommit,\n labels,\n host,\n}: Pick<FilterEditorProps, \"labels\" | \"host\"> & {\n onCancel: () => void;\n onCommit: () => void;\n}) {\n // The ONE ladder, not a hardcoded rung: `size=\"sm\"` here measured 4px short\n // of the bar's own controls at `size=\"default\"` in all eight styles.\n const actions = React.useContext(FilterActionsContext);\n const sizes = filterControlSizes({ size: actions?.size ?? \"default\" });\n\n // The create host advances on commit and has Back; amend must offer discard.\n if (host === \"create\") return null;\n return (\n <div className=\"flex items-center justify-end gap-1.5 pt-1\">\n <Button variant=\"ghost\" size={sizes.button} onClick={onCancel}>\n {labels.discard}\n </Button>\n <Button size={sizes.button} onClick={onCommit}>\n {labels.apply}\n </Button>\n </div>\n );\n}\n\n/**\n * `w-full` because `ButtonGroup` is `w-fit`, which collapses inside this\n * fixed-width panel. Sera is an underline style, so its direct children flatten\n * to one bottom-only edge - `border-b-input`, not transparent, since the\n * buttons are the trailing edge and the rule would stop mid-panel.\n */\nconst EDITOR_FIELD_GROUP = \"w-full\";\n\n/**\n * Confirm and cancel, an OUTLINE pair FUSED onto the field's trailing edge.\n * Returns a FRAGMENT: `ButtonGroup` fuses with selectors matching DIRECT\n * children only, so a wrapper div renders three separate boxes. `size=\"icon\"`\n * because every style's icon button at that size is exactly its input's height.\n */\nfunction EditorCommitButtons({\n onCancel,\n onCommit,\n labels,\n}: Pick<FilterEditorProps, \"labels\"> & {\n onCancel: () => void;\n onCommit: () => void;\n}) {\n return (\n <>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"icon\"\n aria-label={labels.apply}\n onClick={onCommit}\n >\n <CheckIcon aria-hidden=\"true\" />\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n size=\"icon\"\n aria-label={labels.discard}\n onClick={onCancel}\n >\n <XIcon aria-hidden=\"true\" />\n </Button>\n </>\n );\n}\n\nfunction useCommitKeys(commit: () => void, cancel: () => void) {\n return React.useCallback(\n (event: React.KeyboardEvent) => {\n if (event.key === \"Enter\" && !event.nativeEvent.isComposing) {\n event.preventDefault();\n commit();\n return;\n }\n if (event.key === \"Escape\") {\n event.preventDefault();\n // Stop here so a surrounding dialog does not also close.\n event.stopPropagation();\n cancel();\n }\n },\n [commit, cancel],\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Text / number */\n/* -------------------------------------------------------------------------- */\n\nexport function FilterTextEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n return (\n // A width, not shrink-to-fit: the popover is `w-auto`, so an unsized box\n // changes width between the hosts. `w-72` is measured - it holds about 23\n // characters in sera and 27 in nova; `w-64` held about eighteen, too short\n // for an email, and `w-80` was the widest control in a bar of compact\n // chips. Capped at the viewport because `w-80` is 320px and a 360px phone\n // has 40px to spare. A `w-*` on the field wins.\n <EditorPanel className={cn(\"w-72 max-w-[calc(100vw-2rem)] min-w-0\", field.className)}>\n <ButtonGroup className={EDITOR_FIELD_GROUP}>\n <Input\n {...autoFocusProps}\n value={(value as string) ?? \"\"}\n placeholder={field.placeholder ?? labels.valuePlaceholder}\n aria-label={field.label}\n onChange={(event) => onValueChange(event.target.value as V)}\n onKeyDown={onKeyDown}\n />\n {/*\n A lone input still belongs in the group: the per-style sheets re-round\n the LAST child, so a group with nothing fused draws the bare field.\n */}\n {host === \"create\" ? null : (\n <EditorCommitButtons labels={labels} onCancel={cancel} onCommit={() => commit()} />\n )}\n </ButtonGroup>\n </EditorPanel>\n );\n}\n\nexport function FilterNumberEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n return (\n // Deliberately not the text editor's `w-72`: number values are short by\n // construction, and a wide box around \"42\" is the opposite defect.\n <EditorPanel className={cn(\"w-56 min-w-0\", field.className)}>\n <ButtonGroup className={EDITOR_FIELD_GROUP}>\n <Input\n {...autoFocusProps}\n type=\"number\"\n value={value === undefined || value === null ? \"\" : String(value)}\n placeholder={field.placeholder}\n aria-label={field.label}\n onChange={(event) => {\n const raw = event.target.value;\n onValueChange((raw === \"\" ? undefined : Number(raw)) as V);\n }}\n onKeyDown={onKeyDown}\n />\n {host === \"create\" ? null : (\n <EditorCommitButtons labels={labels} onCancel={cancel} onCommit={() => commit()} />\n )}\n </ButtonGroup>\n </EditorPanel>\n );\n}\n\nexport function FilterRangeEditor<V, O>({\n value,\n onValueChange,\n commit,\n cancel,\n autoFocusProps,\n labels,\n host,\n field,\n}: FilterEditorProps<V, O>) {\n const tuple = (Array.isArray(value) ? value : []) as unknown[];\n const onKeyDown = useCommitKeys(() => commit(), cancel);\n\n const update = (index: 0 | 1, raw: string) => {\n const next = [tuple[0], tuple[1]];\n next[index] = raw === \"\" ? undefined : Number(raw);\n onValueChange(next as V);\n };\n\n return (\n <EditorPanel>\n <div className=\"flex items-center gap-1.5\">\n <Input\n {...autoFocusProps}\n type=\"number\"\n value={tuple[0] === undefined ? \"\" : String(tuple[0])}\n aria-label={labels.rangeFrom(field.label)}\n onChange={(event) => update(0, event.target.value)}\n onKeyDown={onKeyDown}\n />\n <span className=\"text-muted-foreground text-xs\">{labels.rangeSeparator}</span>\n <Input\n type=\"number\"\n value={tuple[1] === undefined ? \"\" : String(tuple[1])}\n aria-label={labels.rangeTo(field.label)}\n onChange={(event) => update(1, event.target.value)}\n onKeyDown={onKeyDown}\n />\n </div>\n <EditorFooter host={host} labels={labels} onCancel={cancel} onCommit={() => commit()} />\n </EditorPanel>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* The menu */\n/* -------------------------------------------------------------------------- */\n\n/** One row. The shape both the operator menu and the option editors hand over. */\nexport interface FilterListItem {\n value: string;\n label: string;\n icon?: React.ReactNode;\n description?: string;\n keywords?: string[];\n disabled?: boolean;\n /**\n * A None row, from `FilterOption.exclusive`. LAYOUT only: what a pick DOES is\n * `applyFilterExclusiveSelection`, in the option editor's handler. A consumer\n * composing `FilterMenu` into an editor of their own owns the same call.\n */\n exclusive?: boolean;\n}\n\n/**\n * Beyond the cascader's own fields: one divider flag, on the first row of a\n * group that is not the first, because grouping happens out here. A separator\n * NODE would join the option ring, and `[data-selected] + :not([data-selected])`\n * reads the LIVE selection, so unticking a pinned row drew a second line.\n */\ninterface FilterMenuMeta {\n divider?: boolean;\n /**\n * Carries `FilterListItem.exclusive` down to the row. The rule above it is\n * `aria-hidden`, so the row's accessible name is the only channel arriving\n * before the press, and `renderItem` receives the node and nothing else.\n *\n * `[data-slot=filter-menu-exclusive-hint]` is also the handle a consumer\n * styles the row through: the cascader's row element takes no attribute of\n * ours, so `:has([data-slot=filter-menu-exclusive-hint])` selects it.\n */\n exclusive?: boolean;\n}\n\n/** Joins a selection into one comparable key; NUL cannot occur in a value. */\nconst PIN_SEPARATOR = \"\\u0000\";\n\n/** A bound on a race: each attempt costs one task and stops on success. */\nconst MAX_PIN_RESTORE_ATTEMPTS = 4;\n\ninterface PendingPinRestore {\n /** The row the user was on when the rows moved. Tracked by VALUE, never index. */\n value: string;\n /** The index it sat at, which is the half of the signature Base UI keeps. */\n index: number;\n /** The order the rows landed in, so the target's new position is known. */\n order: string[];\n attempts: number;\n}\n\n/**\n * Carries the HIGHLIGHT across a live re-pin. Base UI holds it as an INDEX and\n * a keyed reorder MOVES the DOM node rather than remounting it, so the index\n * map only rebuilds when the `MutationObserver` fires: until then, ticking a\n * row moves the highlight down one. So this ARMS in the layout effect, where\n * the map still reads the OLD order, and fires on the signature (SAME index,\n * DIFFERENT row) from a TASK, re-trying because the store event and the re-sort\n * are unordered. A synthetic `mousemove`, since Base UI exposes no setter.\n */\nfunction FilterMenuPinKeeper({\n order,\n items,\n}: {\n order: string[];\n /** The data the order was derived from, by identity. */\n items: FilterListItem[];\n}) {\n const { baseId } = useCascaderActions();\n const highlight = useCascaderHighlight();\n const previousRef = React.useRef<{\n order: string[];\n items: FilterListItem[];\n } | null>(null);\n const pendingRef = React.useRef<PendingPinRestore | null>(null);\n const timerRef = React.useRef<ReturnType<typeof setTimeout> | null>(null);\n\n // From the render: on the reordering commit a ref still holds the OLD row.\n const highlightedValue = highlight.value;\n const highlightedIndex = highlight.index;\n\n const stop = React.useCallback(() => {\n pendingRef.current = null;\n if (timerRef.current === null) return;\n clearTimeout(timerRef.current);\n timerRef.current = null;\n }, []);\n\n const startRestore = React.useCallback(() => {\n const attempt = () => {\n timerRef.current = null;\n const pending = pendingRef.current;\n if (!pending) return;\n\n const target = pending.order.indexOf(pending.value);\n const rows = document\n .getElementById(`${baseId}-column-0`)\n ?.querySelectorAll<HTMLElement>('[data-slot=\"cascader-item\"]');\n // A WINDOWED list renders a subset, so row N is not order[N]. Leave it.\n if (target < 0 || !rows || rows.length !== pending.order.length) {\n stop();\n return;\n }\n\n rows[target]?.dispatchEvent(new MouseEvent(\"mousemove\", { bubbles: true }));\n\n pending.attempts += 1;\n if (pending.attempts >= MAX_PIN_RESTORE_ATTEMPTS) {\n stop();\n return;\n }\n timerRef.current = setTimeout(attempt, 0);\n };\n\n timerRef.current = setTimeout(attempt, 0);\n }, [baseId, stop]);\n\n // No dependency list: the arm must run on the commit that reorders the rows.\n React.useLayoutEffect(() => {\n const previous = previousRef.current;\n previousRef.current = { order, items };\n\n if (!previous || previous.order === order) return;\n // New DATA (a page, a query) is Base UI's to highlight; only a re-pin is ours.\n if (previous.items !== items) return;\n if (!highlightedValue) return;\n // Content, not identity: a re-pin can leave the rows in the same order.\n if (isSameOrder(previous.order, order)) return;\n\n pendingRef.current = {\n value: highlightedValue,\n index: highlightedIndex,\n order,\n attempts: 0,\n };\n });\n\n React.useEffect(() => {\n const pending = pendingRef.current;\n if (!pending) return;\n\n // Back where it belongs, or moved by the user: either way the arm is spent.\n if (highlightedValue === pending.value || highlightedIndex !== pending.index) {\n stop();\n return;\n }\n // Already chasing this one; a second chain would double every dispatch.\n if (pending.attempts > 0 || timerRef.current !== null) return;\n startRestore();\n }, [highlightedValue, highlightedIndex, startRestore, stop]);\n\n React.useEffect(() => stop, [stop]);\n\n return null;\n}\n\n/** Element-wise, because the arrays are rebuilt on every selection change. */\nfunction isSameOrder(a: string[], b: string[]) {\n if (a.length !== b.length) return false;\n for (let index = 0; index < a.length; index += 1) {\n if (a[index] !== b[index]) return false;\n }\n return true;\n}\n\nexport interface FilterMenuProps {\n items: FilterListItem[];\n /** Committed values. Drives the check mark and the pinned group. */\n selected: string[];\n multiple?: boolean;\n /** Receives the FULL next selection, so no caller re-derives it. */\n onSelectionChange: (values: string[]) => void;\n labels: FilterLabels;\n ariaLabel: string;\n searchPlaceholder?: string;\n /** Whether the search field is VISIBLE. It is always rendered regardless. */\n searchable?: boolean;\n /**\n * Viewport height before the list scrolls, in pixels. Omitted on purpose by\n * the option editors: it becomes an inline style a consumer's `className`\n * cannot outrank, so the panel publishes `--cascader-max-height` instead.\n */\n maxHeight?: number;\n /**\n * Pin selected rows above the rest, with a full-bleed rule between them. Off\n * by default; the option editors read `FilterField.pinSelected` per field.\n */\n pinSelected?: boolean;\n /**\n * Order INSIDE each group, plus WHEN the partition is taken. Declaration\n * order by default, so the partition is stable rather than a re-sort.\n */\n sortSelected?: \"none\" | \"label\" | \"snapshot\";\n /** The caller already filtered `items`, so the cascader must not re-filter. */\n preFiltered?: boolean;\n autoFocusProps?: FilterEditorProps[\"autoFocusProps\"];\n /** Controlled query. Pair it with `onQueryChange` to filter outside. */\n query?: string;\n onQueryChange?: (query: string) => void;\n state?: Pick<FilterOptionsState<unknown>, \"loading\" | \"error\" | \"hasMore\" | \"loadMore\" | \"retry\">;\n}\n\n/**\n * One accessible list, shared by the operator menu and every option editor. It\n * is the CASCADER configured flat, not a list this file implements, which\n * brings the typeahead, RTL handling and live region with it. Only the pinning\n * and the paging affordance stay out here.\n */\nexport function FilterMenu({\n items,\n selected,\n multiple = false,\n onSelectionChange,\n labels,\n ariaLabel,\n searchPlaceholder,\n searchable = true,\n maxHeight,\n pinSelected = false,\n sortSelected = \"none\",\n preFiltered = false,\n autoFocusProps,\n query,\n onQueryChange,\n state,\n}: FilterMenuProps) {\n /**\n * The pin set as a KEY, not an array: `selected` is a fresh array on most\n * renders, so a memo depending on it re-partitions every render.\n */\n const liveKey = pinSelected ? selected.join(PIN_SEPARATOR) : \"\";\n\n /**\n * The same set, frozen at OPEN, for `sortSelected: \"snapshot\"`. LIVE is the\n * default: \"your picks, then the rest\" is about the CURRENT selection, and\n * `FilterMenuPinKeeper` pays for rows moving under the pointer.\n */\n const [snapshotKey] = React.useState(() => liveKey);\n // `pinSelected` re-checked here, not just through `liveKey`: `snapshotKey` is\n // frozen at MOUNT, so a menu that lost the prop would keep partitioning.\n const pinnedKey = !pinSelected ? \"\" : sortSelected === \"snapshot\" ? snapshotKey : liveKey;\n\n // Uncontrolled unless the caller owns the query, as an option service does.\n const [ownQuery, setOwnQuery] = React.useState(\"\");\n const currentQuery = query ?? ownQuery;\n const setQuery = onQueryChange ?? setOwnQuery;\n\n /**\n * Memoized on the SELECTION, not the query: folding the query in re-sorted\n * 4,000 rows on every keystroke, for a one pixel rule.\n */\n const partitioned = React.useMemo(() => {\n const pinned = new Set(pinnedKey ? pinnedKey.split(PIN_SEPARATOR) : []);\n\n /*\n Exclusive rows come out BEFORE the pin partition; their position is fixed.\n Pinning is by SELECTION, so a ticked None row would lift itself above the\n very rule drawn to set it apart and drop back on untick. Grouping by ROLE\n means the pinned group counts ordinary picks only, which is also why\n picking None draws no pin rule: it clears every other pick.\n */\n const exclusive = items.filter((item) => item.exclusive);\n const values = exclusive.length ? items.filter((item) => !item.exclusive) : items;\n\n const chosen = pinned.size ? values.filter((item) => pinned.has(item.value)) : [];\n const rest = pinned.size ? values.filter((item) => !pinned.has(item.value)) : values;\n\n // The SCHEMA's order inside each group unless the field asks otherwise:\n // option order is usually semantic.\n const ordered =\n sortSelected === \"label\"\n ? [\n [...chosen].sort((a, b) => a.label.localeCompare(b.label)),\n [...rest].sort((a, b) => a.label.localeCompare(b.label)),\n [...exclusive].sort((a, b) => a.label.localeCompare(b.label)),\n ]\n : [chosen, rest, exclusive];\n\n const rows = [...ordered[0], ...ordered[1], ...ordered[2]];\n\n return {\n chosenCount: chosen.length,\n /** Index of the first exclusive row, or -1 when the list has none. */\n exclusiveAt: exclusive.length ? rows.length - exclusive.length : -1,\n // The render order alone, so a REORDER is an identity compare.\n order: rows.map((item) => item.value),\n nodes: rows.map<CascaderNode<FilterMenuMeta>>((item) => ({\n value: item.value,\n label: item.label,\n icon: item.icon,\n description: item.description,\n keywords: item.keywords,\n disabled: item.disabled,\n // Only exclusive rows carry `data`, so the ordinary 4,000 keep theirs.\n data: item.exclusive ? { exclusive: true } : undefined,\n })),\n };\n }, [items, pinnedKey, sortSelected]);\n\n // No rule under a query: \"your picks, then the rest\" is about the WHOLE list.\n const dividerAt = partitioned.chosenCount && !currentQuery.trim() ? partitioned.chosenCount : -1;\n\n // Survives a search, unlike the pin rule: it is a fact about the row.\n const exclusiveDividerAt = partitioned.exclusiveAt;\n\n const nodes = React.useMemo<CascaderNode<FilterMenuMeta>[]>(() => {\n const total = partitioned.nodes.length;\n // Only a boundary with rows on BOTH sides is one: a rule on row 0 would\n // be a line above the top of the list.\n const marks = [dividerAt, exclusiveDividerAt].filter((index) => index > 0 && index < total);\n if (marks.length === 0) return partitioned.nodes;\n // Rows rewritten, not rebuilt: copying 4,000 objects would undo the split.\n const next = partitioned.nodes.slice();\n for (const index of marks) {\n // MERGED, never replaced: the two boundaries usually fall on one row, and\n // overwriting `data` dropped the flag the accessible name is built from.\n next[index] = {\n ...next[index],\n data: { ...next[index].data, divider: true },\n };\n }\n return next;\n }, [partitioned, dividerAt, exclusiveDividerAt]);\n\n const renderItem = React.useCallback(\n (node: CascaderNode<FilterMenuMeta>, itemState: CascaderItemState<FilterMenuMeta>) => (\n <>\n {node.data?.divider ? (\n <span\n data-slot=\"filter-menu-divider\"\n aria-hidden=\"true\"\n /* Full bleed, over the per-style `--cascader-list-pad` the shell\n publishes: a rule stopping at the row's inset box reads as a gap.\n Centred in the 8px the row gives back above itself, not `top-0`. */\n className=\"bg-border absolute inset-x-[calc(var(--cascader-list-pad,4px)*-1)] -top-1 h-px\"\n />\n ) : null}\n\n {node.icon ? (\n <span\n data-slot=\"filter-menu-icon\"\n className=\"text-muted-foreground flex shrink-0 items-center justify-center\"\n >\n {node.icon}\n </span>\n ) : null}\n\n <span className=\"flex min-w-0 flex-1 flex-col items-start gap-0.5\">\n <span className=\"w-full truncate text-start\">{node.label}</span>\n {node.description ? (\n <span className=\"text-muted-foreground w-full truncate text-start text-xs\">\n {node.description}\n </span>\n ) : null}\n </span>\n\n {/*\n What the aria-hidden rule says, for the people it does not reach.\n Inside the option element so it joins the row's accessible NAME, not\n an `aria-describedby`: a description is announced late or not at all,\n and this has to arrive before the press. The cascader's `srDetails`\n cannot either: `renderItem` replaces the row body. Empty copy renders\n nothing, so `labels.exclusiveHint` of \"\" silences it.\n */}\n {node.data?.exclusive && labels.exclusiveHint ? (\n <span data-slot=\"filter-menu-exclusive-hint\" className=\"sr-only\">\n {`, ${labels.exclusiveHint}`}\n </span>\n ) : null}\n\n {/* A check mark in both modes, never the cascader's default box. */}\n {itemState.selected ? (\n <span\n data-slot=\"filter-menu-check\"\n /* The gutter every style already reserves, on the cascader's own\n logical inset. `end-*` rather than `right-2`, so RTL mirrors. */\n className=\"pointer-events-none absolute end-(--cascader-row-inset,8px)! flex size-4 items-center justify-center rtl:right-auto!\"\n >\n <CheckIcon className=\"text-foreground! **:text-foreground!\" />\n </span>\n ) : null}\n </>\n ),\n [labels.exclusiveHint],\n );\n\n const cascaderLabels = React.useMemo(\n () => ({\n search: searchPlaceholder ?? labels.searchOptions,\n empty: labels.empty,\n loading: labels.loading,\n loadingMore: labels.loadingMore,\n loadMore: labels.loadMore,\n error: labels.error,\n retry: labels.retry,\n // Named after the field, not the cascader's own \"Top level\" wording.\n rootLevel: ariaLabel,\n panelLabel: ariaLabel,\n // Run FLAT, so the default hint would teach branch keys that do not exist.\n keyboardHint: () => \"\",\n // From `FilterLabels`, so the menu ships no English of its own.\n resultsAnnouncement: labels.resultsAnnouncement,\n actionsLabel: labels.actionsLabel,\n }),\n [labels, ariaLabel, searchPlaceholder],\n );\n\n /**\n * Paging and retry in the pinned footer, never a row: a row would join the\n * option ring, where arrows land on it and a query filters it away mid-page.\n */\n const actions = React.useMemo<CascaderActionItem[]>(() => {\n if (state?.error) {\n return [{ value: \"retry\", label: labels.retry, onSelect: state.retry }];\n }\n if (state?.hasMore) {\n return [\n {\n value: \"load-more\",\n label: state.loading ? labels.loadingMore : labels.loadMore,\n disabled: state.loading,\n onSelect: state.loadMore,\n },\n ];\n }\n return [];\n }, [state, labels]);\n\n const shared = {\n // Inline and pinned open with a no-op handler, so the unconditional\n // `setOpen(false)` of a single-select commit cannot dismiss the popover.\n inline: true,\n open: true,\n onOpenChange: () => {},\n items: nodes,\n inputValue: currentQuery,\n onInputValueChange: setQuery,\n maxHeight,\n renderItem,\n labels: cascaderLabels,\n actions,\n // The option service is the ONE filter when it owns the query.\n ...(preFiltered ? { filter: () => true } : null),\n };\n\n const cascaderProps: CascaderProps<FilterMenuMeta> = multiple\n ? {\n ...shared,\n multiple: true,\n value: selected,\n onValueChange: (values: string[]) => onSelectionChange(values),\n }\n : {\n ...shared,\n value: selected[0] ?? \"\",\n onValueChange: (value: string) => onSelectionChange(value ? [value] : []),\n };\n\n return (\n <Cascader {...cascaderProps}>\n <CascaderPanel>\n {/*\n `searchable: false` hides the FIELD, never removes it: the input owns\n focus and `aria-activedescendant`, so a menu without one has no\n keyboard. The class goes on the nav so the strip's border goes too.\n */}\n <CascaderNav\n className={cn(\n /* The nav's divider is `border-border/60` and the group separator\n is a full-opacity `bg-border`; two strengths read as a mistake. */\n \"border-border\",\n !searchable && \"sr-only\",\n )}\n >\n <CascaderInput\n {...(autoFocusProps ?? {})}\n placeholder={searchPlaceholder ?? labels.searchOptions}\n aria-label={ariaLabel}\n />\n </CascaderNav>\n <CascaderEmpty>\n {state?.error ? labels.error : state?.loading ? labels.loading : labels.empty}\n </CascaderEmpty>\n {/*\n Plain rows, DELIBERATELY not `CascaderVirtualItems`: windowing stands\n `FilterMenuPinKeeper` down. The long lists are async and PAGE 25.\n */}\n <CascaderList\n /**\n * Real layout space around the group rule, which is absolutely\n * positioned and adds no height. `renderItem` cannot reach the row's\n * own box, and a spacer NODE would join the option ring.\n *\n * `:has()` is affordable here: scoped to this one list, a compound\n * whose descendant exists on at most ONE row, and these menus render\n * tens of rows rather than thousands.\n */\n className=\"[&>[data-slot=cascader-item]:has([data-slot=filter-menu-divider])]:mt-2\"\n >\n <CascaderItems />\n </CascaderList>\n <CascaderFooter />\n <CascaderStatus />\n {/*\n Last, so its layout effect reads the reordered DOM after every row has\n registered. Not mounted at all for a menu that cannot reorder.\n */}\n {pinSelected && sortSelected !== \"snapshot\" ? (\n <FilterMenuPinKeeper order={partitioned.order} items={items} />\n ) : null}\n </CascaderPanel>\n </Cascader>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Option based editors */\n/* -------------------------------------------------------------------------- */\n\nfunction OptionEditor<V, O>(props: FilterEditorProps<V, O> & { multiple: boolean }) {\n const { multiple, options, labels, autoFocusProps, commit, cancel, onValueChange, value, field } =\n props;\n\n const selected = React.useMemo(() => {\n if (value === undefined || value === null) return [];\n return (Array.isArray(value) ? value : [value]) as string[];\n }, [value]);\n\n const announce = React.useContext(FilterActionsContext)?.announce;\n\n return (\n /*\n A DELIBERATELY narrow default: 12rem holds around 22 characters at every\n style's row size. `field.className` lands LAST, so a consumer's `w-*` wins.\n */\n <EditorPanel className={cn(\"w-48 min-w-0 gap-0 p-0\", field.className)}>\n <FilterMenu\n items={options.items}\n selected={selected}\n multiple={multiple}\n onSelectionChange={(raw) => {\n /*\n The ONE place the None rule is applied: every route into a selection\n arrives here, so click and keyboard cannot disagree, and only the\n editor can ANSWER it - `options.resolve` sees the schema and every\n loaded page, where the menu holds only the rows on screen.\n */\n const values = applyFilterExclusiveSelection(raw, selected, (value) =>\n Boolean(options.resolve(value)?.exclusive),\n );\n\n /*\n Identity is the test: the rule hands back `raw` itself unless it\n intervened. Announced because nothing else reports it: focus never\n moved, and nobody is on the rows that lost their check marks.\n */\n if (values !== raw && announce) {\n const arrived = values.find((entry) => !selected.includes(entry));\n const cleared = raw.length - values.length;\n if (arrived !== undefined && cleared > 0) {\n announce(\n labels.exclusiveAnnouncement(options.resolve(arrived)?.label ?? arrived, cleared),\n );\n }\n } else if (values === raw && raw.length > 1) {\n /*\n The hole in the rule, made LOUD. An unresolvable value is treated\n as ordinary and cannot be told from an id whose label has not\n arrived, so this warns rather than acts. Needs a SEEN None row.\n */\n const hasNoneRow =\n options.items.some((item) => item.exclusive) ||\n Boolean(field.options?.some((option) => option.exclusive));\n const unresolved = hasNoneRow\n ? raw.find((entry) => options.resolve(entry) === undefined)\n : undefined;\n if (unresolved !== undefined) {\n warnFilterOnce(\n `exclusive-unresolved:${field.id}`,\n `field \"${field.id}\" has an exclusive option, but the value ` +\n `\"${unresolved}\" resolves to no option, so the None rule ` +\n `cannot tell whether it is the exclusive one and has left ` +\n `it in place. Declare the exclusive option in the field's ` +\n `\\`options\\` even when the rest of the list is async, or ` +\n `cover stored values with \\`resolveValues\\`.`,\n );\n }\n }\n\n if (!multiple) {\n const next = values[0];\n // Base UI deselects the committed row; an empty filter is no gain.\n if (next === undefined) {\n cancel();\n return;\n }\n onValueChange(next as V);\n commit(next as V);\n return;\n }\n onValueChange(values as V);\n // Every toggle commits with the popover open: several picks, one gesture.\n commit(values as V, { close: false });\n }}\n labels={labels}\n ariaLabel={field.label}\n searchable={field.searchable ?? true}\n // Not a composed `Search ${label}...`: hardcoded English no `labels`\n // override could reach, and lowercasing a label is locale-hostile.\n searchPlaceholder={field.placeholder}\n pinSelected={field.pinSelected ?? false}\n sortSelected={field.sortSelected}\n // `useFilterOptions` already applied the query, locally or server side.\n preFiltered\n query={options.query}\n onQueryChange={options.setQuery}\n state={options}\n autoFocusProps={autoFocusProps}\n />\n </EditorPanel>\n );\n}\n\nexport function FilterSelectEditor<V, O>(props: FilterEditorProps<V, O>) {\n return <OptionEditor {...props} multiple={false} />;\n}\n\nexport function FilterMultiSelectEditor<V, O>(props: FilterEditorProps<V, O>) {\n return <OptionEditor {...props} multiple />;\n}\n\n/* -------------------------------------------------------------------------- */\n/* Boolean */\n/* -------------------------------------------------------------------------- */\n\n/**\n * Module level, so the menu's index is not rebuilt on every render. Not in\n * `FilterLabels`: the chip's own display spells the same two words out.\n */\nconst BOOLEAN_ITEMS: FilterListItem[] = [\n { value: \"true\", label: \"True\" },\n { value: \"false\", label: \"False\" },\n];\n\nexport function FilterBooleanEditor<V, O>({\n value,\n onValueChange,\n commit,\n labels,\n autoFocusProps,\n field,\n}: FilterEditorProps<V, O>) {\n return (\n // Two words, and `field.className` lands last so a consumer's `w-*` wins.\n <EditorPanel className={cn(\"w-40 min-w-0 gap-0 p-0\", field.className)}>\n <FilterMenu\n items={BOOLEAN_ITEMS}\n selected={value === true ? [\"true\"] : value === false ? [\"false\"] : []}\n onSelectionChange={(values) => {\n /* Deselecting the committed row leaves nothing to filter on, so it is\n a no-op rather than a commit of `false`. */\n if (values.length === 0) return;\n const next = (values[0] === \"true\") as V;\n onValueChange(next);\n commit(next);\n }}\n labels={labels}\n ariaLabel={field.label}\n /* Two rows: a search over them is more chrome than list, but the\n field is still rendered, hidden, because it owns the keyboard. */\n searchable={false}\n autoFocusProps={autoFocusProps}\n />\n </EditorPanel>\n );\n}\n\n/* -------------------------------------------------------------------------- */\n/* Resolution */\n/* -------------------------------------------------------------------------- */\n\nexport type {\n AnyFilterEditor,\n FilterEditorRegistry,\n} from \"./filters-types\";\n\nexport const DEFAULT_FILTER_EDITORS: FilterEditorRegistry = {\n text: FilterTextEditor,\n number: FilterNumberEditor,\n range: FilterRangeEditor,\n select: FilterSelectEditor,\n multiselect: FilterMultiSelectEditor,\n boolean: FilterBooleanEditor,\n};\n\n/**\n * Picks the editor for a (field, operator) pair: the field's own `editor`, then\n * the operator's ARITY, then the field's `type`. Arity outranks type because\n * \"between\" wants two boxes whatever the field said.\n */\nexport function resolveFilterEditor<V, O>(\n field: FilterField<V, O>,\n operator: FilterOperator | undefined,\n editors: FilterEditorRegistry,\n): AnyFilterEditor | undefined {\n if (typeof field.editor === \"function\") {\n // The one place a consumer's typed editor meets the erased registry.\n return field.editor as unknown as AnyFilterEditor;\n }\n if (typeof field.editor === \"string\") {\n const named = editors[field.editor];\n if (named) return named;\n }\n\n const arity = operator?.arity ?? \"one\";\n if (arity === \"none\") return undefined;\n if (arity === \"range\") return editors.range;\n if (arity === \"many\") {\n // An option-backed field gets checkboxes; anything else receives an array.\n if (field.options || field.loadOptions) return editors.multiselect;\n }\n\n return editors[field.type ?? \"text\"] ?? editors.text;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA2DA,MAAM,OAAoC;CACxC,OAAO,CAAC;CACR,SAAS;CACT,OAAO;CACP,SAAS;AACX;;AAGA,MAAM,6BAA6B,CAAC;AACpC,MAAM,oBAAoB;;;;;AAM1B,SAAS,eACP,OACA,OACe;CACf,IAAI,CAAC,OAAO,OAAO;CACnB,IAAI,OACG;OAAA,MAAM,SAAS,MAAM,KACxB,IAAK,MAAM,UAAuB,OAChC,OAAO,eAAe,MAAM,IAAI;CAAA;CAItC,OAAO,IAAI,MAAM;AACnB;;;;;;;;AASA,SAAgB,iBACd,OACA,SACA,aAAa,KACU;CACvB,MAAM,CAAC,OAAO,iBAAiB,MAAM,SAAS,EAAE;CAChD,MAAM,CAAC,OAAO,YAAY,MAAM,SAC9B,IACF;CAEA,MAAM,QAAQ,MAAM,uBAAO,IAAI,IAA6B,CAAC;CAC7D,MAAM,YAAY,MAAM,OAAO,CAAC;CAChC,MAAM,WAAW,MAAM,OAA+B,IAAI;CAG1D,MAAM,iBAAiB,MAAM,WAAW,oBAAoB;CAC5D,MAAM,SAAuC,gBAAgB,cAAc;CAC3E,MAAM,YAAY,eAAe,OAAO,gBAAgB,KAAK;CAG7D,MAAM,qBACJ,SAAS,OAAO,YAAY,gBAC5B,SAAS,OAAO,aAAa,aAC7B,SAAS,OAAO,aAAa,WAC/B;CAEA,MAAM,gBAAgB,OAAO;CAC7B,MAAM,cAAc,OAAO;CAC3B,MAAM,UAAU,QAAQ,WAAW;CAGnC,MAAM,gBAAgB;EACpB,IAAI,CAAC,eAAe;EACpB,KAAK,MAAM,UAAU,eAAe,MAAM,QAAQ,IAAI,OAAO,OAAO,MAA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,CACnC;AAEA,SAAgB,oBAA0B,EACxC,OACA,eACA,QACA,QACA,gBACA,SAC0B;CAC1B,OAEE,oBAAC,aAAD;EAAa,WAAW,GAAG,0BAA0B,MAAM,SAAS;EAClE,UAAA,oBAAC,YAAD;GACE,OAAO;GACP,UAAU,UAAU,OAAO,CAAC,MAAM,IAAI,UAAU,QAAQ,CAAC,OAAO,IAAI,CAAC;GACrE,oBAAoB,WAAW;IAG7B,IAAI,OAAO,WAAW,GAAG;IACzB,MAAM,OAAQ,OAAO,OAAO;IAC5B,cAAc,IAAI;IAClB,OAAO,IAAI;GACb;GACQ;GACR,WAAW,MAAM;GAGjB,YAAY;GACI;EACjB,CAAA;CACU,CAAA;AAEjB;AAWA,MAAa,yBAA+C;CAC1D,MAAM;CACN,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,aAAa;CACb,SAAS;AACX;;;;;;AAOA,SAAgB,oBACd,OACA,UACA,SAC6B;CAC7B,IAAI,OAAO,MAAM,WAAW,YAE1B,OAAO,MAAM;CAEf,IAAI,OAAO,MAAM,WAAW,UAAU;EACpC,MAAM,QAAQ,QAAQ,MAAM;EAC5B,IAAI,OAAO,OAAO;CACpB;CAEA,MAAM,QAAQ,UAAU,SAAS;CACjC,IAAI,UAAU,QAAQ,OAAO,KAAA;CAC7B,IAAI,UAAU,SAAS,OAAO,QAAQ;CACtC,IAAI,UAAU,QAER;MAAA,MAAM,WAAW,MAAM,aAAa,OAAO,QAAQ;CAAA;CAGzD,OAAO,QAAQ,MAAM,QAAQ,WAAW,QAAQ;AAClD"}
@@ -1,4 +1,4 @@
1
- import { i as CascaderCollapse } from "../../../cascader-types-Bh_kJ3Qw.js";
1
+ import { i as CascaderCollapse } from "../../../cascader-types-D2DFznHz.js";
2
2
  import { FilterField, FilterIndex, FilterOperator, FilterOption } from "./filters-types.js";
3
3
  /**
4
4
  * One menu size for the chip's kebab and the builder's three menus, which draw
@@ -1,4 +1,4 @@
1
- import * as React$1 from "react";
1
+ import * as React from "react";
2
2
  export type FilterCombinator = "and" | "or";
3
3
  /**
4
4
  * One condition. `path` maps one to one onto the cascader's `details.path`, so
@@ -61,7 +61,7 @@ export type FilterValueType = "text" | "number" | "range" | "select" | "multisel
61
61
  export interface FilterOption<O = unknown> {
62
62
  value: string;
63
63
  label: string;
64
- icon?: React$1.ReactNode;
64
+ icon?: React.ReactNode;
65
65
  description?: string;
66
66
  keywords?: string[];
67
67
  disabled?: boolean;
@@ -96,7 +96,7 @@ export interface FilterField<V = unknown, O = unknown> {
96
96
  /** Stable id. Unique among its siblings; the full path must be unique. */
97
97
  id: string;
98
98
  label: string;
99
- icon?: React$1.ReactNode;
99
+ icon?: React.ReactNode;
100
100
  description?: string;
101
101
  keywords?: string[];
102
102
  /** Trailing count. Defaults to known children; set it when they are lazy. */
@@ -124,7 +124,7 @@ export interface FilterField<V = unknown, O = unknown> {
124
124
  defaultOperator?: string;
125
125
  /** Overrides the editor chosen from `type`. See `FilterEditorProps`. */
126
126
  editor?: FilterEditorRef<V, O>;
127
- renderValue?: (context: FilterValueDisplayContext<V, O>) => React$1.ReactNode;
127
+ renderValue?: (context: FilterValueDisplayContext<V, O>) => React.ReactNode;
128
128
  /** The value as PLAIN TEXT for a11y; the default is `String(value)`. */
129
129
  valueText?: (context: FilterValueDisplayContext<V, O>) => string;
130
130
  /** Placeholder for the value editor's input, or an option list's search. */
@@ -216,7 +216,7 @@ export interface FilterEditorProps<V = unknown, O = unknown> {
216
216
  * button without a cast.
217
217
  */
218
218
  autoFocusProps: {
219
- ref: React$1.RefCallback<HTMLElement>;
219
+ ref: React.RefCallback<HTMLElement>;
220
220
  autoFocus: boolean;
221
221
  };
222
222
  /** Accept the draft. `{ close: false }` writes through without dismissing. */
@@ -227,13 +227,13 @@ export interface FilterEditorProps<V = unknown, O = unknown> {
227
227
  options: FilterOptionsState<O>;
228
228
  labels: FilterLabels;
229
229
  }
230
- export type FilterEditor<V = unknown, O = unknown> = React$1.ComponentType<FilterEditorProps<V, O>>;
230
+ export type FilterEditor<V = unknown, O = unknown> = React.ComponentType<FilterEditorProps<V, O>>;
231
231
  /**
232
232
  * An editor with its generics erased, for the registry. `unknown` rather than
233
233
  * `never`: props are contravariant, so a `FilterEditor<never, never>` registry
234
234
  * accepts nothing at all. The single widening cast happens where it renders.
235
235
  */
236
- export type AnyFilterEditor = React$1.ComponentType<FilterEditorProps<unknown, unknown>>;
236
+ export type AnyFilterEditor = React.ComponentType<FilterEditorProps<unknown, unknown>>;
237
237
  export type FilterEditorRegistry = Record<string, AnyFilterEditor>;
238
238
  /**
239
239
  * A registered editor's name, or a component. The `any` arm lets a CONCRETE