@kumix/ui 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/README.md +33 -17
  2. package/dist/components/agents/agent-activity/activity-row.d.ts +8 -0
  3. package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -0
  4. package/dist/components/agents/agent-activity/activity-row.js +228 -0
  5. package/dist/components/agents/agent-activity/activity-row.js.map +1 -0
  6. package/dist/components/agents/agent-activity/index.d.ts +6 -0
  7. package/dist/components/agents/agent-activity/index.d.ts.map +1 -0
  8. package/dist/components/agents/agent-activity/index.js +182 -0
  9. package/dist/components/agents/agent-activity/index.js.map +1 -0
  10. package/dist/components/agents/agent-code.d.ts +25 -0
  11. package/dist/components/agents/agent-code.d.ts.map +1 -0
  12. package/dist/components/agents/agent-code.js +117 -0
  13. package/dist/components/agents/agent-code.js.map +1 -0
  14. package/dist/components/agents/agent-disclosure.d.ts +12 -0
  15. package/dist/components/agents/agent-disclosure.d.ts.map +1 -0
  16. package/dist/components/agents/agent-disclosure.js +36 -0
  17. package/dist/components/agents/agent-disclosure.js.map +1 -0
  18. package/dist/components/agents/ai-sidebar.d.ts +41 -0
  19. package/dist/components/agents/ai-sidebar.d.ts.map +1 -0
  20. package/dist/components/agents/ai-sidebar.js +576 -0
  21. package/dist/components/agents/ai-sidebar.js.map +1 -0
  22. package/dist/components/agents/approval-card/index.d.ts +51 -0
  23. package/dist/components/agents/approval-card/index.d.ts.map +1 -0
  24. package/dist/components/agents/approval-card/index.js +317 -0
  25. package/dist/components/agents/approval-card/index.js.map +1 -0
  26. package/dist/components/agents/chat-app.d.ts +10 -0
  27. package/dist/components/agents/chat-app.d.ts.map +1 -0
  28. package/dist/components/agents/chat-app.js +20 -0
  29. package/dist/components/agents/chat-app.js.map +1 -0
  30. package/dist/components/agents/citations.d.ts +45 -0
  31. package/dist/components/agents/citations.d.ts.map +1 -0
  32. package/dist/components/agents/citations.js +175 -0
  33. package/dist/components/agents/citations.js.map +1 -0
  34. package/dist/components/agents/code-block.d.ts +21 -0
  35. package/dist/components/agents/code-block.d.ts.map +1 -0
  36. package/dist/components/agents/code-block.js +113 -0
  37. package/dist/components/agents/code-block.js.map +1 -0
  38. package/dist/components/agents/file-diff.d.ts +30 -0
  39. package/dist/components/agents/file-diff.d.ts.map +1 -0
  40. package/dist/components/agents/file-diff.js +186 -0
  41. package/dist/components/agents/file-diff.js.map +1 -0
  42. package/dist/components/agents/image-generation.d.ts +27 -0
  43. package/dist/components/agents/image-generation.d.ts.map +1 -0
  44. package/dist/components/agents/image-generation.js +308 -0
  45. package/dist/components/agents/image-generation.js.map +1 -0
  46. package/dist/components/agents/loading-states/agent-progress.d.ts +16 -0
  47. package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -0
  48. package/dist/components/agents/loading-states/agent-progress.js +117 -0
  49. package/dist/components/agents/loading-states/agent-progress.js.map +1 -0
  50. package/dist/components/agents/loading-states/reasoning-text.d.ts +20 -0
  51. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -0
  52. package/dist/components/agents/loading-states/reasoning-text.js +184 -0
  53. package/dist/components/agents/loading-states/reasoning-text.js.map +1 -0
  54. package/dist/components/agents/loading-states/thinking-shimmer.d.ts +13 -0
  55. package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -0
  56. package/dist/components/agents/loading-states/thinking-shimmer.js +17 -0
  57. package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -0
  58. package/dist/components/agents/message-bubble.d.ts +38 -0
  59. package/dist/components/agents/message-bubble.d.ts.map +1 -0
  60. package/dist/components/agents/message-bubble.js +182 -0
  61. package/dist/components/agents/message-bubble.js.map +1 -0
  62. package/dist/components/agents/message-context.d.ts +6 -0
  63. package/dist/components/agents/message-context.d.ts.map +1 -0
  64. package/dist/components/agents/message-context.js +8 -0
  65. package/dist/components/agents/message-context.js.map +1 -0
  66. package/dist/components/agents/message-scroller.d.ts +30 -0
  67. package/dist/components/agents/message-scroller.d.ts.map +1 -0
  68. package/dist/components/agents/message-scroller.js +314 -0
  69. package/dist/components/agents/message-scroller.js.map +1 -0
  70. package/dist/components/agents/message.d.ts +37 -0
  71. package/dist/components/agents/message.d.ts.map +1 -0
  72. package/dist/components/agents/message.js +139 -0
  73. package/dist/components/agents/message.js.map +1 -0
  74. package/dist/components/agents/prompt-input.d.ts +37 -0
  75. package/dist/components/agents/prompt-input.d.ts.map +1 -0
  76. package/dist/components/agents/prompt-input.js +216 -0
  77. package/dist/components/agents/prompt-input.js.map +1 -0
  78. package/dist/components/agents/streaming-response.d.ts +35 -0
  79. package/dist/components/agents/streaming-response.d.ts.map +1 -0
  80. package/dist/components/agents/streaming-response.js +151 -0
  81. package/dist/components/agents/streaming-response.js.map +1 -0
  82. package/dist/components/agents/todo-list.d.ts +24 -0
  83. package/dist/components/agents/todo-list.d.ts.map +1 -0
  84. package/dist/components/agents/todo-list.js +334 -0
  85. package/dist/components/agents/todo-list.js.map +1 -0
  86. package/dist/components/agents/tool-approval.d.ts +33 -0
  87. package/dist/components/agents/tool-approval.d.ts.map +1 -0
  88. package/dist/components/agents/tool-approval.js +166 -0
  89. package/dist/components/agents/tool-approval.js.map +1 -0
  90. package/dist/components/agents/tool-result.d.ts +34 -0
  91. package/dist/components/agents/tool-result.d.ts.map +1 -0
  92. package/dist/components/agents/tool-result.js +220 -0
  93. package/dist/components/agents/tool-result.js.map +1 -0
  94. package/dist/components/custom/confirm-dialog.js +1 -1
  95. package/dist/components/motion/animated-badge.js +1 -1
  96. package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
  97. package/dist/components/motion/animated-sidebar.js +3 -3
  98. package/dist/components/motion/animated-sidebar.js.map +1 -1
  99. package/dist/components/motion/animated-toast-stack.js +3 -3
  100. package/dist/components/motion/animated-toast-stack.js.map +1 -1
  101. package/dist/components/motion/attachment-upload.js +1 -1
  102. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
  103. package/dist/components/motion/availability-scheduler/day-row.js +2 -2
  104. package/dist/components/motion/availability-scheduler/index.js +1 -1
  105. package/dist/components/motion/bloom-menu.js +2 -2
  106. package/dist/components/motion/bloom-menu.js.map +1 -1
  107. package/dist/components/motion/bouncy-accordion.js +1 -1
  108. package/dist/components/motion/button/stateful.js +1 -1
  109. package/dist/components/motion/center-morph-modal.js +3 -3
  110. package/dist/components/motion/center-morph-modal.js.map +1 -1
  111. package/dist/components/motion/chromatic-text-reveal.js +1 -1
  112. package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
  113. package/dist/components/motion/command-palette.js +8 -4
  114. package/dist/components/motion/command-palette.js.map +1 -1
  115. package/dist/components/motion/context-menu.js +1 -1
  116. package/dist/components/motion/feedback-widget.js +1 -1
  117. package/dist/components/motion/file-upload.js +1 -1
  118. package/dist/components/motion/infinite-masonry.js +1 -1
  119. package/dist/components/motion/notification-stack.js +1 -1
  120. package/dist/components/motion/overflow-actions.js +1 -1
  121. package/dist/components/motion/preview-rail.d.ts +10 -2
  122. package/dist/components/motion/preview-rail.d.ts.map +1 -1
  123. package/dist/components/motion/preview-rail.js +58 -27
  124. package/dist/components/motion/preview-rail.js.map +1 -1
  125. package/dist/components/motion/select-morph.js +1 -1
  126. package/dist/components/motion/select.js +1 -1
  127. package/dist/components/motion/table/row-handle.js +1 -1
  128. package/dist/components/motion/table/table-header.js +1 -1
  129. package/dist/components/motion/text-shimmer.d.ts.map +1 -1
  130. package/dist/components/motion/text-shimmer.js +4 -3
  131. package/dist/components/motion/text-shimmer.js.map +1 -1
  132. package/dist/components/motion/theme-toggle.js +1 -1
  133. package/dist/components/reui/alert.d.ts +1 -1
  134. package/dist/components/reui/alert.js +1 -1
  135. package/dist/components/reui/autocomplete.js +1 -1
  136. package/dist/components/reui/badge.d.ts +1 -1
  137. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +4 -3
  138. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -1
  139. package/dist/components/reui/data-grid/data-grid-column-filter.js +1 -2
  140. package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
  141. package/dist/components/reui/data-grid/data-grid-column-header.d.ts +15 -4
  142. package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
  143. package/dist/components/reui/data-grid/data-grid-column-header.js +36 -8
  144. package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
  145. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +3 -2
  146. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts.map +1 -1
  147. package/dist/components/reui/data-grid/data-grid-column-visibility.js +0 -1
  148. package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
  149. package/dist/components/reui/data-grid/data-grid-pagination.d.ts.map +1 -1
  150. package/dist/components/reui/data-grid/data-grid-pagination.js +3 -4
  151. package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
  152. package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
  153. package/dist/components/reui/data-grid/data-grid-scroll-area.js +12 -7
  154. package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
  155. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +71 -4
  156. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
  157. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +147 -40
  158. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
  159. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts +1 -1
  160. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -1
  161. package/dist/components/reui/data-grid/data-grid-table-dnd.js +5 -6
  162. package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
  163. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +6 -5
  164. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
  165. package/dist/components/reui/data-grid/data-grid-table-virtual.js +9 -10
  166. package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
  167. package/dist/components/reui/data-grid/data-grid-table.d.ts +60 -33
  168. package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
  169. package/dist/components/reui/data-grid/data-grid-table.js +152 -68
  170. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  171. package/dist/components/reui/data-grid/data-grid.d.ts +105 -20
  172. package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
  173. package/dist/components/reui/data-grid/data-grid.js +83 -10
  174. package/dist/components/reui/data-grid/data-grid.js.map +1 -1
  175. package/dist/components/reui/date-selector.js +47 -44
  176. package/dist/components/reui/date-selector.js.map +1 -1
  177. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +1 -1
  178. package/dist/components/reui/event-calendar/event-calendar-dnd.d.ts.map +1 -1
  179. package/dist/components/reui/event-calendar/event-calendar-dnd.js +20 -2
  180. package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -1
  181. package/dist/components/reui/event-calendar/event-calendar-event.js +1 -1
  182. package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
  183. package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
  184. package/dist/components/reui/event-calendar/event-calendar-recurrence.js +7 -5
  185. package/dist/components/reui/event-calendar/event-calendar-recurrence.js.map +1 -1
  186. package/dist/components/reui/filters.js +26 -21
  187. package/dist/components/reui/filters.js.map +1 -1
  188. package/dist/components/reui/frame.d.ts +1 -1
  189. package/dist/components/reui/frame.js +1 -1
  190. package/dist/components/reui/gantt/gantt-bar.js +1 -1
  191. package/dist/components/reui/gantt/gantt-nav.js +1 -1
  192. package/dist/components/reui/gantt/gantt-view.js +1 -1
  193. package/dist/components/reui/icon-tile.d.ts +1 -1
  194. package/dist/components/reui/icon-tile.d.ts.map +1 -1
  195. package/dist/components/reui/icon-tile.js +8 -1
  196. package/dist/components/reui/icon-tile.js.map +1 -1
  197. package/dist/components/reui/number-field.js +1 -1
  198. package/dist/components/reui/phone-input.js +1 -1
  199. package/dist/components/reui/rating.js +1 -1
  200. package/dist/components/reui/sortable.js +13 -11
  201. package/dist/components/reui/sortable.js.map +1 -1
  202. package/dist/components/reui/tree.js +1 -1
  203. package/dist/components/ui/accordion.js +1 -1
  204. package/dist/components/ui/alert-dialog.js +1 -1
  205. package/dist/components/ui/alert.js +1 -1
  206. package/dist/components/ui/attachment.js +1 -1
  207. package/dist/components/ui/badge.d.ts +1 -1
  208. package/dist/components/ui/breadcrumb.js +1 -1
  209. package/dist/components/ui/bubble.d.ts +1 -1
  210. package/dist/components/ui/bubble.js +1 -1
  211. package/dist/components/ui/button-group.js +1 -1
  212. package/dist/components/ui/button.d.ts +1 -1
  213. package/dist/components/ui/button.js +1 -1
  214. package/dist/components/ui/calendar.js +1 -1
  215. package/dist/components/ui/carousel.js +1 -1
  216. package/dist/components/ui/checkbox.js +1 -1
  217. package/dist/components/ui/combobox.js +1 -1
  218. package/dist/components/ui/command.js +1 -1
  219. package/dist/components/ui/context-menu.js +1 -1
  220. package/dist/components/ui/dialog.js +1 -1
  221. package/dist/components/ui/dropdown-menu.js +1 -1
  222. package/dist/components/ui/empty.js +1 -1
  223. package/dist/components/ui/field.js +1 -1
  224. package/dist/components/ui/input-group.js +1 -1
  225. package/dist/components/ui/input-otp.js +1 -1
  226. package/dist/components/ui/item.d.ts +1 -1
  227. package/dist/components/ui/item.js +1 -1
  228. package/dist/components/ui/marker.d.ts +1 -1
  229. package/dist/components/ui/marker.js +1 -1
  230. package/dist/components/ui/menubar.js +1 -1
  231. package/dist/components/ui/message-scroller.js +1 -1
  232. package/dist/components/ui/native-select.js +1 -1
  233. package/dist/components/ui/navigation-menu.js +1 -1
  234. package/dist/components/ui/pagination.js +1 -1
  235. package/dist/components/ui/questionnaire.d.ts +21 -0
  236. package/dist/components/ui/questionnaire.d.ts.map +1 -0
  237. package/dist/components/ui/questionnaire.js +164 -0
  238. package/dist/components/ui/questionnaire.js.map +1 -0
  239. package/dist/components/ui/select.js +1 -1
  240. package/dist/components/ui/sheet.js +1 -1
  241. package/dist/components/ui/sidebar.d.ts +1 -1
  242. package/dist/components/ui/sidebar.js +1 -1
  243. package/dist/components/ui/spinner.js +1 -1
  244. package/dist/components/ui/tabs.js +1 -1
  245. package/dist/components/ui/toast.js +1 -1
  246. package/dist/components/ui/toggle.d.ts +1 -1
  247. package/dist/components/ui/toggle.js +1 -1
  248. package/dist/{copy-menu-BJ-MXnkN.js → copy-menu-Bk5GP9Gp.js} +3 -3
  249. package/dist/{copy-menu-BJ-MXnkN.js.map → copy-menu-Bk5GP9Gp.js.map} +1 -1
  250. package/dist/hooks/use-body-classes.d.ts +0 -3
  251. package/dist/hooks/use-body-classes.d.ts.map +1 -1
  252. package/dist/hooks/use-body-classes.js +0 -3
  253. package/dist/hooks/use-body-classes.js.map +1 -1
  254. package/dist/hooks/use-copy-to-clipboard.d.ts +0 -3
  255. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
  256. package/dist/hooks/use-copy-to-clipboard.js +0 -3
  257. package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
  258. package/dist/hooks/use-file-upload.js +6 -4
  259. package/dist/hooks/use-file-upload.js.map +1 -1
  260. package/dist/hooks/use-hydrated.d.ts +0 -10
  261. package/dist/hooks/use-hydrated.d.ts.map +1 -1
  262. package/dist/hooks/use-hydrated.js +0 -10
  263. package/dist/hooks/use-hydrated.js.map +1 -1
  264. package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
  265. package/dist/hooks/use-intersection-observer.js +0 -5
  266. package/dist/hooks/use-intersection-observer.js.map +1 -1
  267. package/dist/hooks/use-is-mac.d.ts +0 -5
  268. package/dist/hooks/use-is-mac.d.ts.map +1 -1
  269. package/dist/hooks/use-is-mac.js +0 -5
  270. package/dist/hooks/use-is-mac.js.map +1 -1
  271. package/dist/hooks/use-media-query.d.ts +0 -5
  272. package/dist/hooks/use-media-query.d.ts.map +1 -1
  273. package/dist/hooks/use-media-query.js +0 -5
  274. package/dist/hooks/use-media-query.js.map +1 -1
  275. package/dist/hooks/use-meta-color.d.ts.map +1 -1
  276. package/dist/hooks/use-meta-color.js +0 -3
  277. package/dist/hooks/use-meta-color.js.map +1 -1
  278. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  279. package/dist/hooks/use-mutation-observer.js +0 -5
  280. package/dist/hooks/use-mutation-observer.js.map +1 -1
  281. package/dist/hooks/use-scroll-position.d.ts.map +1 -1
  282. package/dist/hooks/use-scroll-position.js +0 -5
  283. package/dist/hooks/use-scroll-position.js.map +1 -1
  284. package/dist/hooks/use-slider-input.d.ts.map +1 -1
  285. package/dist/hooks/use-slider-input.js +0 -5
  286. package/dist/hooks/use-slider-input.js.map +1 -1
  287. package/dist/hooks/use-viewport.d.ts +0 -5
  288. package/dist/hooks/use-viewport.d.ts.map +1 -1
  289. package/dist/hooks/use-viewport.js +0 -5
  290. package/dist/hooks/use-viewport.js.map +1 -1
  291. package/dist/lib/favicon.d.ts +5 -0
  292. package/dist/lib/favicon.d.ts.map +1 -0
  293. package/dist/lib/favicon.js +12 -0
  294. package/dist/lib/favicon.js.map +1 -0
  295. package/dist/lib/text-shimmer.d.ts +8 -0
  296. package/dist/lib/text-shimmer.d.ts.map +1 -0
  297. package/dist/lib/text-shimmer.js +10 -0
  298. package/dist/lib/text-shimmer.js.map +1 -0
  299. package/dist/types-j36vVGtZ.d.ts +78 -0
  300. package/dist/types-j36vVGtZ.d.ts.map +1 -0
  301. package/package.json +18 -13
  302. package/dist/components/ui/sonner.d.ts +0 -7
  303. package/dist/components/ui/sonner.d.ts.map +0 -1
  304. package/dist/components/ui/sonner.js +0 -32
  305. package/dist/components/ui/sonner.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"icon-tile.js","names":[],"sources":["../../../src/components/reui/icon-tile.tsx"],"sourcesContent":["\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@kumix/utils\";\n\n/**\n * CSS variable architecture:\n *\n * The root owns four variables so every part of the tile stays in proportion\n * and stays overridable from a single `className`:\n *\n * --icon-tile-size tile width/height\n * --icon-tile-icon-size glyph size applied to child svgs\n * --icon-tile-radius corner radius (also drives the nested inner card)\n * --icon-tile-inset gap between the outer ring and the inner card\n *\n * The `frame` and `soft` variants paint their inner card with an `::after`\n * pseudo element instead of a wrapper node. `isolate` makes the root a stacking\n * context, so the negative z-index pseudo paints above the root background but\n * below the in-flow icon - no extra DOM, and `render` composition keeps working.\n *\n * Tone: `soft` and `solid` derive every fill and border from `currentColor`, so\n * a single text color class (e.g. `text-success`) retints the whole tile. They\n * default to `text-primary`; override it to recolor without touching internals.\n */\nconst iconTileVariants = cva(\n [\n \"relative inline-flex shrink-0 items-center justify-center align-middle\",\n \"size-(--icon-tile-size) rounded-(--icon-tile-radius)\",\n \"[&_svg:not([class*=size-])]:size-(--icon-tile-icon-size) [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n ],\n {\n variants: {\n variant: {\n /** Plain bordered surface. The quiet default for list rows and toolbars. */\n outline: \"border border-border bg-background dark:bg-input/32\",\n /** Raised muted fill with a background-colored ring. Reads as a physical chip. */\n elevated:\n \"border-2 border-background bg-muted text-accent-foreground shadow-[0_1px_3px_0_rgb(0_0_0/0.14)] dark:border\",\n /**\n * Tinted double container: an opacity-filled outer ring with no border\n * around a bordered inner card, all derived from `currentColor`. The\n * quiet, colorful sibling of `frame`. Retint with a text color class.\n */\n soft: [\n \"isolate bg-current/10 p-(--icon-tile-inset) text-primary\",\n \"after:absolute after:inset-(--icon-tile-inset) after:-z-10\",\n \"after:rounded-[calc(var(--icon-tile-radius)-var(--icon-tile-inset))]\",\n \"after:border after:border-current/20 after:bg-current/5\",\n ],\n /** Filled tone with a contrasting glyph. Retint with `bg-*` + a text color. */\n solid: \"bg-primary text-primary-foreground\",\n /** Double container - a muted ring around an inset card, matching Frame. */\n frame: [\n \"isolate border border-border bg-muted/50 p-(--icon-tile-inset)\",\n \"after:absolute after:inset-(--icon-tile-inset) after:-z-10\",\n \"after:rounded-[calc(var(--icon-tile-radius)-var(--icon-tile-inset))]\",\n \"after:border after:border-border after:bg-card after:shadow-xs\",\n ],\n },\n size: {\n xs: \"[--icon-tile-icon-size:--spacing(3.5)] [--icon-tile-inset:--spacing(0.5)] [--icon-tile-size:--spacing(6)]\",\n sm: \"[--icon-tile-icon-size:--spacing(4)] [--icon-tile-inset:--spacing(0.5)] [--icon-tile-size:--spacing(8)]\",\n default:\n \"[--icon-tile-icon-size:--spacing(4.5)] [--icon-tile-inset:--spacing(0.75)] [--icon-tile-size:--spacing(10)]\",\n lg: \"[--icon-tile-icon-size:--spacing(5.5)] [--icon-tile-inset:--spacing(0.75)] [--icon-tile-size:--spacing(12)]\",\n xl: \"[--icon-tile-icon-size:--spacing(7)] [--icon-tile-inset:--spacing(1)] [--icon-tile-size:--spacing(14)]\",\n },\n /**\n * `default`: active style radius. `full`: circular.\n * The plain value is the fallback outside a style scope; the `style-*`\n * tokens win by specificity inside one, and survive the registry\n * transform as the single resolved value per generated style.\n */\n radius: {\n default: \"[--icon-tile-radius:var(--radius-md)] [--icon-tile-radius:var(--radius-md)]\",\n full: \"[--icon-tile-radius:calc(infinity*1px)]\",\n },\n },\n defaultVariants: {\n variant: \"outline\",\n size: \"default\",\n radius: \"default\",\n },\n },\n);\n\ninterface IconTileProps extends useRender.ComponentProps<\"span\"> {\n variant?: VariantProps<typeof iconTileVariants>[\"variant\"];\n size?: VariantProps<typeof iconTileVariants>[\"size\"];\n radius?: VariantProps<typeof iconTileVariants>[\"radius\"];\n}\n\nfunction IconTile({\n className,\n variant = \"outline\",\n size = \"default\",\n radius = \"default\",\n render,\n ...props\n}: IconTileProps) {\n const defaultProps = {\n \"data-slot\": \"icon-tile\",\n \"data-variant\": variant,\n \"data-size\": size,\n className: cn(iconTileVariants({ variant, size, radius, className })),\n };\n\n return useRender({\n defaultTagName: \"span\",\n render,\n props: mergeProps<\"span\">(defaultProps, props),\n });\n}\n\nexport { IconTile, type IconTileProps, iconTileVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,mBAAmB,IACvB;CACE;CACA;CACA;AACF,GACA;CACE,UAAU;EACR,SAAS;;GAEP,SAAS;;GAET,UACE;;;;;;GAMF,MAAM;IACJ;IACA;IACA;IACA;GACF;;GAEA,OAAO;;GAEP,OAAO;IACL;IACA;IACA;IACA;GACF;EACF;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,SACE;GACF,IAAI;GACJ,IAAI;EACN;;;;;;;EAOA,QAAQ;GACN,SAAS;GACT,MAAM;EACR;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;EACN,QAAQ;CACV;AACF,CACF;AAQA,SAAS,SAAS,EAChB,WACA,UAAU,WACV,OAAO,WACP,SAAS,WACT,QACA,GAAG,SACa;CAChB,MAAM,eAAe;EACnB,aAAa;EACb,gBAAgB;EAChB,aAAa;EACb,WAAW,GAAG,iBAAiB;GAAE;GAAS;GAAM;GAAQ;EAAU,CAAC,CAAC;CACtE;CAEA,OAAO,UAAU;EACf,gBAAgB;EAChB;EACA,OAAO,WAAmB,cAAc,KAAK;CAC/C,CAAC;AACH"}
1
+ {"version":3,"file":"icon-tile.js","names":[],"sources":["../../../src/components/reui/icon-tile.tsx"],"sourcesContent":["\"use client\";\n\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@kumix/utils\";\n\n/**\n * CSS variable architecture:\n *\n * The root owns four variables so every part of the tile stays in proportion\n * and stays overridable from a single `className`:\n *\n * --icon-tile-size tile width/height\n * --icon-tile-icon-size glyph size applied to child svgs\n * --icon-tile-radius corner radius (also drives the nested inner card)\n * --icon-tile-inset gap between the outer ring and the inner card\n *\n * The `frame` and `soft` variants paint their inner card with an `::after`\n * pseudo element instead of a wrapper node. `isolate` makes the root a stacking\n * context, so the negative z-index pseudo paints above the root background but\n * below the in-flow icon - no extra DOM, and `render` composition keeps working.\n *\n * Tone: `soft` and `solid` derive every fill and border from `currentColor`, so\n * a single text color class (e.g. `text-success`) retints the whole tile. They\n * default to `text-primary`; override it to recolor without touching internals.\n */\nconst iconTileVariants = cva(\n [\n \"relative inline-flex shrink-0 items-center justify-center align-middle\",\n \"size-(--icon-tile-size) rounded-(--icon-tile-radius)\",\n \"[&_svg:not([class*=size-])]:size-(--icon-tile-icon-size) [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n ],\n {\n variants: {\n variant: {\n /** Plain bordered surface. The quiet default for list rows and toolbars. */\n outline: \"border border-border bg-background dark:bg-input/32\",\n /** Raised muted fill with a background-colored ring. Reads as a physical chip. */\n elevated:\n \"border-2 border-background bg-muted text-accent-foreground shadow-[0_1px_3px_0_rgb(0_0_0/0.14)] dark:border\",\n /**\n * Tinted double container: an opacity-filled outer ring with no border\n * around a bordered inner card, all derived from `currentColor`. The\n * quiet, colorful sibling of `frame`. Retint with a text color class.\n */\n soft: [\n \"isolate bg-current/10 p-(--icon-tile-inset) text-primary\",\n \"after:absolute after:inset-(--icon-tile-inset) after:-z-10\",\n \"after:rounded-[calc(var(--icon-tile-radius)-var(--icon-tile-inset))]\",\n \"after:border after:border-current/20 after:bg-current/5\",\n ],\n /** Filled tone with a contrasting glyph. Retint with `bg-*` + a text color. */\n solid: \"bg-primary text-primary-foreground\",\n /** Double container - a muted ring around an inset card, matching Frame. */\n frame: [\n \"isolate border border-border bg-muted/50 p-(--icon-tile-inset)\",\n \"after:absolute after:inset-(--icon-tile-inset) after:-z-10\",\n \"after:rounded-[calc(var(--icon-tile-radius)-var(--icon-tile-inset))]\",\n \"after:border after:border-border after:bg-card after:shadow-xs\",\n ],\n },\n size: {\n xs: \"[--icon-tile-icon-size:--spacing(3.5)] [--icon-tile-inset:--spacing(0.5)] [--icon-tile-size:--spacing(6)]\",\n sm: \"[--icon-tile-icon-size:--spacing(4)] [--icon-tile-inset:--spacing(0.5)] [--icon-tile-size:--spacing(8)]\",\n default:\n \"[--icon-tile-icon-size:--spacing(4.5)] [--icon-tile-inset:--spacing(0.75)] [--icon-tile-size:--spacing(10)]\",\n lg: \"[--icon-tile-icon-size:--spacing(5.5)] [--icon-tile-inset:--spacing(0.75)] [--icon-tile-size:--spacing(12)]\",\n xl: \"[--icon-tile-icon-size:--spacing(7)] [--icon-tile-inset:--spacing(1)] [--icon-tile-size:--spacing(14)]\",\n },\n /**\n * `default`: active style radius. `full`: circular.\n * The plain value is the fallback outside a style scope; the `style-*`\n * tokens win by specificity inside one, and survive the registry\n * transform as the single resolved value per generated style.\n *\n * Each style token is clamped to a fraction of the tile. A flat radius\n * is a circle once it reaches half the box, so the soft styles used to\n * render `xs` (24px) and `sm` (32px) as plain circles and swallow the\n * `full` variant's meaning. Clamping keeps one corner ratio at every\n * size instead, so a tile still reads as the same shape when it scales.\n * Luma and Rhea take the gentler quarter ratio; Maia stays at a third.\n */\n radius: {\n default:\n \"[--icon-tile-radius:min(var(--radius-md),calc(var(--icon-tile-size)/3))] [--icon-tile-radius:min(var(--radius-md),calc(var(--icon-tile-size)/3))]\",\n full: \"[--icon-tile-radius:calc(infinity*1px)]\",\n },\n },\n defaultVariants: {\n variant: \"outline\",\n size: \"default\",\n radius: \"default\",\n },\n },\n);\n\ninterface IconTileProps extends useRender.ComponentProps<\"span\"> {\n variant?: VariantProps<typeof iconTileVariants>[\"variant\"];\n size?: VariantProps<typeof iconTileVariants>[\"size\"];\n radius?: VariantProps<typeof iconTileVariants>[\"radius\"];\n}\n\nfunction IconTile({\n className,\n variant = \"outline\",\n size = \"default\",\n radius = \"default\",\n render,\n ...props\n}: IconTileProps) {\n const defaultProps = {\n \"data-slot\": \"icon-tile\",\n \"data-variant\": variant,\n \"data-size\": size,\n className: cn(iconTileVariants({ variant, size, radius, className })),\n };\n\n return useRender({\n defaultTagName: \"span\",\n render,\n props: mergeProps<\"span\">(defaultProps, props),\n });\n}\n\nexport { IconTile, type IconTileProps, iconTileVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,mBAAmB,IACvB;CACE;CACA;CACA;AACF,GACA;CACE,UAAU;EACR,SAAS;;GAEP,SAAS;;GAET,UACE;;;;;;GAMF,MAAM;IACJ;IACA;IACA;IACA;GACF;;GAEA,OAAO;;GAEP,OAAO;IACL;IACA;IACA;IACA;GACF;EACF;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,SACE;GACF,IAAI;GACJ,IAAI;EACN;;;;;;;;;;;;;;EAcA,QAAQ;GACN,SACE;GACF,MAAM;EACR;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;EACN,QAAQ;CACV;AACF,CACF;AAQA,SAAS,SAAS,EAChB,WACA,UAAU,WACV,OAAO,WACP,SAAS,WACT,QACA,GAAG,SACa;CAChB,MAAM,eAAe;EACnB,aAAa;EACb,gBAAgB;EAChB,aAAa;EACb,WAAW,GAAG,iBAAiB;GAAE;GAAS;GAAM;GAAQ;EAAU,CAAC,CAAC;CACtE;CAEA,OAAO,UAAU;EACf,gBAAgB;EAChB;EACA,OAAO,WAAmB,cAAc,KAAK;CAC/C,CAAC;AACH"}
@@ -2,9 +2,9 @@
2
2
  import { Label } from "../ui/label.js";
3
3
  import { createContext, useContext, useId } from "react";
4
4
  import { cn } from "@kumix/utils";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { MinusIcon, PlusIcon } from "lucide-react";
6
7
  import { cva } from "class-variance-authority";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { NumberField as NumberField$1 } from "@base-ui/react/number-field";
9
9
  //#region src/components/reui/number-field.tsx
10
10
  const NumberFieldContext = createContext(null);
@@ -5,8 +5,8 @@ import { Input } from "../ui/input.js";
5
5
  import { Combobox, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue } from "../ui/combobox.js";
6
6
  import { createContext, useContext, useMemo, useState } from "react";
7
7
  import { cn } from "@kumix/utils";
8
- import { GlobeIcon } from "lucide-react";
9
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { GlobeIcon } from "lucide-react";
10
10
  import * as BasePhoneInput from "react-phone-number-input";
11
11
  import flags from "react-phone-number-input/flags";
12
12
  //#region src/components/reui/phone-input.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { useState } from "react";
3
3
  import { cn } from "@kumix/utils";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { StarIcon } from "lucide-react";
5
6
  import { cva } from "class-variance-authority";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/reui/rating.tsx
8
8
  const ratingVariants = cva("flex items-center", {
9
9
  variants: { size: {
@@ -67,20 +67,22 @@ function Sortable({ value, onValueChange, getItemValue, className, render, onMov
67
67
  const activeIndex = value.findIndex((item) => getItemValue(item) === active.id);
68
68
  const overIndex = value.findIndex((item) => getItemValue(item) === over.id);
69
69
  if (activeIndex === -1 || overIndex === -1) return;
70
- if (activeIndex !== overIndex) if (onMove) onMove({
71
- event,
72
- activeIndex,
73
- overIndex
74
- });
75
- else {
76
- const newValue = arrayMove(value, activeIndex, overIndex);
77
- onValueChange(newValue);
78
- onValueCommit?.(newValue, {
70
+ if (activeIndex !== overIndex) {
71
+ if (onMove) onMove({
79
72
  event,
80
73
  activeIndex,
81
- overIndex,
82
- previousValue: value
74
+ overIndex
83
75
  });
76
+ else {
77
+ const newValue = arrayMove(value, activeIndex, overIndex);
78
+ onValueChange(newValue);
79
+ onValueCommit?.(newValue, {
80
+ event,
81
+ activeIndex,
82
+ overIndex,
83
+ previousValue: value
84
+ });
85
+ }
84
86
  }
85
87
  }, [
86
88
  value,
@@ -1 +1 @@
1
- {"version":3,"file":"sortable.js","names":[],"sources":["../../../src/components/reui/sortable.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\nimport type { CSSProperties, ReactElement, ReactNode } from \"react\";\nimport {\n Children,\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useMemo,\n useState,\n useSyncExternalStore,\n} from \"react\";\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport type {\n DragCancelEvent,\n DragEndEvent,\n DragStartEvent,\n DropAnimation,\n Modifiers,\n UniqueIdentifier,\n} from \"@dnd-kit/core\";\nimport {\n DndContext,\n type DraggableSyntheticListeners,\n DragOverlay,\n defaultDropAnimationSideEffects,\n KeyboardSensor,\n MeasuringStrategy,\n MouseSensor,\n TouchSensor,\n useSensor,\n useSensors,\n} from \"@dnd-kit/core\";\nimport {\n type AnimateLayoutChanges,\n arrayMove,\n defaultAnimateLayoutChanges,\n rectSortingStrategy,\n SortableContext,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\nimport { createPortal } from \"react-dom\";\n\nimport { cn } from \"@kumix/utils\";\n\n// Sortable Item Context\nconst SortableItemContext = createContext<{\n listeners: DraggableSyntheticListeners | undefined;\n isDragging?: boolean;\n disabled?: boolean;\n}>({\n listeners: undefined,\n isDragging: false,\n disabled: false,\n});\n\nconst IsOverlayContext = createContext(false);\n\nconst SortableInternalContext = createContext<{\n activeId: UniqueIdentifier | null;\n modifiers?: Modifiers;\n}>({\n activeId: null,\n modifiers: undefined,\n});\n\nconst animateLayoutChanges: AnimateLayoutChanges = (args) =>\n defaultAnimateLayoutChanges({ ...args, wasDragging: true });\n\nconst dropAnimationConfig: DropAnimation = {\n sideEffects: defaultDropAnimationSideEffects({\n styles: {\n active: {\n opacity: \"0.4\",\n },\n },\n }),\n};\n\n/**\n * Client-mount gate for the `createPortal` calls below, which need\n * `document.body` and so must not run on the server or during hydration.\n *\n * A never-notifying subscription makes `useSyncExternalStore` return the server\n * snapshot (`false`) while rendering on the server and while hydrating, then the\n * client snapshot (`true`) once mounted - the same gate the previous\n * `useLayoutEffect(() => setMounted(true), [])` provided, minus the extra render\n * pass that `react-hooks/set-state-in-effect` flags. All three functions are\n * module-scoped so their identities stay stable; an inline `getSnapshot` is the\n * classic cause of an infinite re-subscribe loop.\n */\nconst subscribeToNothing = () => () => {};\nconst getIsMounted = () => true;\nconst getIsMountedOnServer = () => false;\n\nconst MOUSE_SENSOR_OPTIONS = { activationConstraint: { distance: 10 } };\nconst TOUCH_SENSOR_OPTIONS = {\n activationConstraint: { delay: 250, tolerance: 5 },\n};\nconst KEYBOARD_SENSOR_OPTIONS = {\n coordinateGetter: sortableKeyboardCoordinates,\n};\nconst MEASURING_CONFIG = {\n droppable: { strategy: MeasuringStrategy.Always },\n};\nconst STRATEGY_MAP = {\n horizontal: rectSortingStrategy,\n grid: rectSortingStrategy,\n vertical: verticalListSortingStrategy,\n} as const;\n\n// Multipurpose Sortable Component\nexport interface SortableCommitMeta<T> {\n event: DragEndEvent;\n activeIndex: number;\n overIndex: number;\n previousValue: T[];\n}\n\nexport interface SortableRootProps<T>\n extends Omit<useRender.ComponentProps<\"div\">, \"onDragStart\" | \"onDragEnd\" | \"children\"> {\n value: T[];\n onValueChange: (value: T[]) => void;\n getItemValue: (item: T) => string;\n children: ReactNode;\n onMove?: (event: { event: DragEndEvent; activeIndex: number; overIndex: number }) => void;\n onValueCommit?: (value: T[], meta: SortableCommitMeta<T>) => void;\n strategy?: \"horizontal\" | \"vertical\" | \"grid\";\n onDragStart?: (event: DragStartEvent) => void;\n onDragEnd?: (event: DragEndEvent) => void;\n onDragCancel?: (event: DragCancelEvent) => void;\n accessibility?: React.ComponentProps<typeof DndContext>[\"accessibility\"];\n modifiers?: Modifiers;\n}\n\nfunction Sortable<T>({\n value,\n onValueChange,\n getItemValue,\n className,\n render,\n onMove,\n onValueCommit,\n strategy = \"vertical\",\n onDragStart,\n onDragEnd,\n onDragCancel,\n accessibility,\n modifiers,\n children,\n ...props\n}: SortableRootProps<T>) {\n const [activeId, setActiveId] = useState<UniqueIdentifier | null>(null);\n const mounted = useSyncExternalStore(subscribeToNothing, getIsMounted, getIsMountedOnServer);\n\n const sensors = useSensors(\n useSensor(MouseSensor, MOUSE_SENSOR_OPTIONS),\n useSensor(TouchSensor, TOUCH_SENSOR_OPTIONS),\n useSensor(KeyboardSensor, KEYBOARD_SENSOR_OPTIONS),\n );\n\n const handleDragStart = useCallback(\n (event: DragStartEvent) => {\n setActiveId(event.active.id);\n onDragStart?.(event);\n },\n [onDragStart],\n );\n\n const handleDragEnd = useCallback(\n (event: DragEndEvent) => {\n const { active, over } = event;\n setActiveId(null);\n onDragEnd?.(event);\n\n if (!over) return;\n\n // Handle item reordering\n const activeIndex = value.findIndex((item: T) => getItemValue(item) === active.id);\n const overIndex = value.findIndex((item: T) => getItemValue(item) === over.id);\n\n if (activeIndex === -1 || overIndex === -1) return;\n\n if (activeIndex !== overIndex) {\n if (onMove) {\n onMove({ event, activeIndex, overIndex });\n } else {\n const newValue = arrayMove(value, activeIndex, overIndex);\n onValueChange(newValue);\n onValueCommit?.(newValue, {\n event,\n activeIndex,\n overIndex,\n previousValue: value,\n });\n }\n }\n },\n [value, getItemValue, onValueChange, onMove, onDragEnd, onValueCommit],\n );\n\n const handleDragCancel = useCallback(\n (event: DragCancelEvent) => {\n setActiveId(null);\n onDragCancel?.(event);\n },\n [onDragCancel],\n );\n\n const itemIds = useMemo(() => {\n const ids = value.map(getItemValue);\n if (process.env.NODE_ENV !== \"production\") {\n const seen = new Set<string>();\n for (const id of ids) {\n if (seen.has(id)) {\n console.warn(\n `[Sortable] Duplicate item id \"${id}\". Item ids must be unique, or drag and drop will misbehave.`,\n );\n break;\n }\n seen.add(id);\n }\n }\n return ids;\n }, [value, getItemValue]);\n\n const contextValue = useMemo(() => ({ activeId, modifiers }), [activeId, modifiers]);\n\n const defaultProps = {\n \"data-slot\": \"sortable\",\n \"data-dragging\": activeId !== null,\n className: cn(activeId !== null && \"cursor-grabbing!\", className),\n children,\n };\n\n // Find the active child for the overlay\n const overlayContent = useMemo(() => {\n if (!activeId) return null;\n let result: ReactNode = null;\n Children.forEach(children, (child) => {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n if (isValidElement(child) && (child.props as any).value === activeId) {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n result = cloneElement(child as ReactElement<any>, {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n ...(child.props as any),\n // biome-ignore lint/suspicious/noExplicitAny: <>\n className: cn((child.props as any).className, \"z-50\"),\n });\n }\n });\n return result;\n }, [activeId, children]);\n\n return (\n <SortableInternalContext.Provider value={contextValue}>\n <DndContext\n sensors={sensors}\n modifiers={modifiers}\n accessibility={accessibility}\n measuring={MEASURING_CONFIG}\n onDragStart={handleDragStart}\n onDragEnd={handleDragEnd}\n onDragCancel={handleDragCancel}\n >\n <SortableContext\n items={itemIds}\n strategy={STRATEGY_MAP[strategy] ?? verticalListSortingStrategy}\n >\n {useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n })}\n </SortableContext>\n {mounted &&\n createPortal(\n <DragOverlay\n dropAnimation={dropAnimationConfig}\n modifiers={modifiers}\n className={cn(\"z-50\", activeId && \"cursor-grabbing\")}\n >\n <IsOverlayContext.Provider value={true}>{overlayContent}</IsOverlayContext.Provider>\n </DragOverlay>,\n document.body,\n )}\n </DndContext>\n </SortableInternalContext.Provider>\n );\n}\n\nexport interface SortableItemProps extends useRender.ComponentProps<\"div\"> {\n value: string;\n disabled?: boolean;\n}\n\nfunction SortableItem({ value, className, render, disabled, ...props }: SortableItemProps) {\n const isOverlay = useContext(IsOverlayContext);\n\n const {\n setNodeRef,\n transform,\n transition,\n attributes,\n listeners,\n isDragging: isSortableDragging,\n } = useSortable({\n id: value,\n disabled: disabled || isOverlay,\n animateLayoutChanges,\n });\n\n const style = {\n transition,\n transform: CSS.Transform.toString(transform),\n } as CSSProperties;\n\n const defaultProps = isOverlay\n ? {\n \"data-slot\": \"sortable-item\",\n \"data-value\": value,\n \"data-dragging\": true,\n className: cn(className),\n children: props.children,\n }\n : {\n \"data-slot\": \"sortable-item\",\n \"data-value\": value,\n \"data-dragging\": isSortableDragging,\n \"data-disabled\": disabled,\n ref: setNodeRef,\n style,\n ...attributes,\n className: cn(isSortableDragging && \"z-50 opacity-50\", disabled && \"opacity-50\", className),\n children: props.children,\n };\n\n return (\n <SortableItemContext.Provider\n value={\n isOverlay\n ? { listeners: undefined, isDragging: true, disabled: false }\n : { listeners, isDragging: isSortableDragging, disabled }\n }\n >\n {useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n })}\n </SortableItemContext.Provider>\n );\n}\n\nexport interface SortableItemHandleProps extends useRender.ComponentProps<\"div\"> {\n cursor?: boolean;\n}\n\nfunction SortableItemHandle({\n className,\n render,\n cursor = true,\n ...props\n}: SortableItemHandleProps) {\n const { listeners, isDragging, disabled } = useContext(SortableItemContext);\n\n const defaultProps = {\n \"data-slot\": \"sortable-item-handle\",\n \"data-dragging\": isDragging,\n \"data-disabled\": disabled,\n ...listeners,\n className: cn(cursor && (isDragging ? \"cursor-grabbing!\" : \"cursor-grab!\"), className),\n children: props.children,\n };\n\n return useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n });\n}\n\nexport interface SortableOverlayProps\n extends Omit<React.ComponentProps<typeof DragOverlay>, \"children\"> {\n children?: ReactNode | ((params: { value: UniqueIdentifier }) => ReactNode);\n}\n\nfunction SortableOverlay({ children, className, ...props }: SortableOverlayProps) {\n const { activeId, modifiers } = useContext(SortableInternalContext);\n const mounted = useSyncExternalStore(subscribeToNothing, getIsMounted, getIsMountedOnServer);\n\n const content =\n activeId && children\n ? typeof children === \"function\"\n ? children({ value: activeId })\n : children\n : null;\n\n if (!mounted) return null;\n\n return createPortal(\n <DragOverlay\n dropAnimation={dropAnimationConfig}\n modifiers={modifiers}\n className={cn(\"z-50\", activeId && \"cursor-grabbing\", className)}\n {...props}\n >\n <IsOverlayContext.Provider value={true}>{content}</IsOverlayContext.Provider>\n </DragOverlay>,\n document.body,\n );\n}\n\nexport { Sortable, SortableItem, SortableItemHandle, SortableOverlay };\n"],"mappings":";;;;;;;;;;;AAqDA,MAAM,sBAAsB,cAIzB;CACD,WAAW,KAAA;CACX,YAAY;CACZ,UAAU;AACZ,CAAC;AAED,MAAM,mBAAmB,cAAc,KAAK;AAE5C,MAAM,0BAA0B,cAG7B;CACD,UAAU;CACV,WAAW,KAAA;AACb,CAAC;AAED,MAAM,wBAA8C,SAClD,4BAA4B;CAAE,GAAG;CAAM,aAAa;AAAK,CAAC;AAE5D,MAAM,sBAAqC,EACzC,aAAa,gCAAgC,EAC3C,QAAQ,EACN,QAAQ,EACN,SAAS,MACX,EACF,EACF,CAAC,EACH;;;;;;;;;;;;;AAcA,MAAM,iCAAiC,CAAC;AACxC,MAAM,qBAAqB;AAC3B,MAAM,6BAA6B;AAEnC,MAAM,uBAAuB,EAAE,sBAAsB,EAAE,UAAU,GAAG,EAAE;AACtE,MAAM,uBAAuB,EAC3B,sBAAsB;CAAE,OAAO;CAAK,WAAW;AAAE,EACnD;AACA,MAAM,0BAA0B,EAC9B,kBAAkB,4BACpB;AACA,MAAM,mBAAmB,EACvB,WAAW,EAAE,UAAU,kBAAkB,OAAO,EAClD;AACA,MAAM,eAAe;CACnB,YAAY;CACZ,MAAM;CACN,UAAU;AACZ;AA0BA,SAAS,SAAY,EACnB,OACA,eACA,cACA,WACA,QACA,QACA,eACA,WAAW,YACX,aACA,WACA,cACA,eACA,WACA,UACA,GAAG,SACoB;CACvB,MAAM,CAAC,UAAU,eAAe,SAAkC,IAAI;CACtE,MAAM,UAAU,qBAAqB,oBAAoB,cAAc,oBAAoB;CAE3F,MAAM,UAAU,WACd,UAAU,aAAa,oBAAoB,GAC3C,UAAU,aAAa,oBAAoB,GAC3C,UAAU,gBAAgB,uBAAuB,CACnD;CAEA,MAAM,kBAAkB,aACrB,UAA0B;EACzB,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ui/sortable.tsx"],"sourcesContent":["\"use client\";\n\nimport type * as React from \"react\";\nimport type { CSSProperties, ReactElement, ReactNode } from \"react\";\nimport {\n Children,\n cloneElement,\n createContext,\n isValidElement,\n useCallback,\n useContext,\n useMemo,\n useState,\n useSyncExternalStore,\n} from \"react\";\nimport { mergeProps } from \"@base-ui/react/merge-props\";\nimport { useRender } from \"@base-ui/react/use-render\";\nimport type {\n DragCancelEvent,\n DragEndEvent,\n DragStartEvent,\n DropAnimation,\n Modifiers,\n UniqueIdentifier,\n} from \"@dnd-kit/core\";\nimport {\n DndContext,\n type DraggableSyntheticListeners,\n DragOverlay,\n defaultDropAnimationSideEffects,\n KeyboardSensor,\n MeasuringStrategy,\n MouseSensor,\n TouchSensor,\n useSensor,\n useSensors,\n} from \"@dnd-kit/core\";\nimport {\n type AnimateLayoutChanges,\n arrayMove,\n defaultAnimateLayoutChanges,\n rectSortingStrategy,\n SortableContext,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from \"@dnd-kit/sortable\";\nimport { CSS } from \"@dnd-kit/utilities\";\nimport { createPortal } from \"react-dom\";\n\nimport { cn } from \"@kumix/utils\";\n\n// Sortable Item Context\nconst SortableItemContext = createContext<{\n listeners: DraggableSyntheticListeners | undefined;\n isDragging?: boolean;\n disabled?: boolean;\n}>({\n listeners: undefined,\n isDragging: false,\n disabled: false,\n});\n\nconst IsOverlayContext = createContext(false);\n\nconst SortableInternalContext = createContext<{\n activeId: UniqueIdentifier | null;\n modifiers?: Modifiers;\n}>({\n activeId: null,\n modifiers: undefined,\n});\n\nconst animateLayoutChanges: AnimateLayoutChanges = (args) =>\n defaultAnimateLayoutChanges({ ...args, wasDragging: true });\n\nconst dropAnimationConfig: DropAnimation = {\n sideEffects: defaultDropAnimationSideEffects({\n styles: {\n active: {\n opacity: \"0.4\",\n },\n },\n }),\n};\n\n/**\n * Client-mount gate for the `createPortal` calls below, which need\n * `document.body` and so must not run on the server or during hydration.\n *\n * A never-notifying subscription makes `useSyncExternalStore` return the server\n * snapshot (`false`) while rendering on the server and while hydrating, then the\n * client snapshot (`true`) once mounted - the same gate the previous\n * `useLayoutEffect(() => setMounted(true), [])` provided, minus the extra render\n * pass that `react-hooks/set-state-in-effect` flags. All three functions are\n * module-scoped so their identities stay stable; an inline `getSnapshot` is the\n * classic cause of an infinite re-subscribe loop.\n */\nconst subscribeToNothing = () => () => {};\nconst getIsMounted = () => true;\nconst getIsMountedOnServer = () => false;\n\nconst MOUSE_SENSOR_OPTIONS = { activationConstraint: { distance: 10 } };\nconst TOUCH_SENSOR_OPTIONS = {\n activationConstraint: { delay: 250, tolerance: 5 },\n};\nconst KEYBOARD_SENSOR_OPTIONS = {\n coordinateGetter: sortableKeyboardCoordinates,\n};\nconst MEASURING_CONFIG = {\n droppable: { strategy: MeasuringStrategy.Always },\n};\nconst STRATEGY_MAP = {\n horizontal: rectSortingStrategy,\n grid: rectSortingStrategy,\n vertical: verticalListSortingStrategy,\n} as const;\n\n// Multipurpose Sortable Component\nexport interface SortableCommitMeta<T> {\n event: DragEndEvent;\n activeIndex: number;\n overIndex: number;\n previousValue: T[];\n}\n\nexport interface SortableRootProps<T>\n extends Omit<useRender.ComponentProps<\"div\">, \"onDragStart\" | \"onDragEnd\" | \"children\"> {\n value: T[];\n onValueChange: (value: T[]) => void;\n getItemValue: (item: T) => string;\n children: ReactNode;\n onMove?: (event: { event: DragEndEvent; activeIndex: number; overIndex: number }) => void;\n onValueCommit?: (value: T[], meta: SortableCommitMeta<T>) => void;\n strategy?: \"horizontal\" | \"vertical\" | \"grid\";\n onDragStart?: (event: DragStartEvent) => void;\n onDragEnd?: (event: DragEndEvent) => void;\n onDragCancel?: (event: DragCancelEvent) => void;\n accessibility?: React.ComponentProps<typeof DndContext>[\"accessibility\"];\n modifiers?: Modifiers;\n}\n\nfunction Sortable<T>({\n value,\n onValueChange,\n getItemValue,\n className,\n render,\n onMove,\n onValueCommit,\n strategy = \"vertical\",\n onDragStart,\n onDragEnd,\n onDragCancel,\n accessibility,\n modifiers,\n children,\n ...props\n}: SortableRootProps<T>) {\n const [activeId, setActiveId] = useState<UniqueIdentifier | null>(null);\n const mounted = useSyncExternalStore(subscribeToNothing, getIsMounted, getIsMountedOnServer);\n\n const sensors = useSensors(\n useSensor(MouseSensor, MOUSE_SENSOR_OPTIONS),\n useSensor(TouchSensor, TOUCH_SENSOR_OPTIONS),\n useSensor(KeyboardSensor, KEYBOARD_SENSOR_OPTIONS),\n );\n\n const handleDragStart = useCallback(\n (event: DragStartEvent) => {\n setActiveId(event.active.id);\n onDragStart?.(event);\n },\n [onDragStart],\n );\n\n const handleDragEnd = useCallback(\n (event: DragEndEvent) => {\n const { active, over } = event;\n setActiveId(null);\n onDragEnd?.(event);\n\n if (!over) return;\n\n // Handle item reordering\n const activeIndex = value.findIndex((item: T) => getItemValue(item) === active.id);\n const overIndex = value.findIndex((item: T) => getItemValue(item) === over.id);\n\n if (activeIndex === -1 || overIndex === -1) return;\n\n if (activeIndex !== overIndex) {\n if (onMove) {\n onMove({ event, activeIndex, overIndex });\n } else {\n const newValue = arrayMove(value, activeIndex, overIndex);\n onValueChange(newValue);\n onValueCommit?.(newValue, {\n event,\n activeIndex,\n overIndex,\n previousValue: value,\n });\n }\n }\n },\n [value, getItemValue, onValueChange, onMove, onDragEnd, onValueCommit],\n );\n\n const handleDragCancel = useCallback(\n (event: DragCancelEvent) => {\n setActiveId(null);\n onDragCancel?.(event);\n },\n [onDragCancel],\n );\n\n const itemIds = useMemo(() => {\n const ids = value.map(getItemValue);\n if (process.env.NODE_ENV !== \"production\") {\n const seen = new Set<string>();\n for (const id of ids) {\n if (seen.has(id)) {\n console.warn(\n `[Sortable] Duplicate item id \"${id}\". Item ids must be unique, or drag and drop will misbehave.`,\n );\n break;\n }\n seen.add(id);\n }\n }\n return ids;\n }, [value, getItemValue]);\n\n const contextValue = useMemo(() => ({ activeId, modifiers }), [activeId, modifiers]);\n\n const defaultProps = {\n \"data-slot\": \"sortable\",\n \"data-dragging\": activeId !== null,\n className: cn(activeId !== null && \"cursor-grabbing!\", className),\n children,\n };\n\n // Find the active child for the overlay\n const overlayContent = useMemo(() => {\n if (!activeId) return null;\n let result: ReactNode = null;\n Children.forEach(children, (child) => {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n if (isValidElement(child) && (child.props as any).value === activeId) {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n result = cloneElement(child as ReactElement<any>, {\n // biome-ignore lint/suspicious/noExplicitAny: <>\n ...(child.props as any),\n // biome-ignore lint/suspicious/noExplicitAny: <>\n className: cn((child.props as any).className, \"z-50\"),\n });\n }\n });\n return result;\n }, [activeId, children]);\n\n return (\n <SortableInternalContext.Provider value={contextValue}>\n <DndContext\n sensors={sensors}\n modifiers={modifiers}\n accessibility={accessibility}\n measuring={MEASURING_CONFIG}\n onDragStart={handleDragStart}\n onDragEnd={handleDragEnd}\n onDragCancel={handleDragCancel}\n >\n <SortableContext\n items={itemIds}\n strategy={STRATEGY_MAP[strategy] ?? verticalListSortingStrategy}\n >\n {useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n })}\n </SortableContext>\n {mounted &&\n createPortal(\n <DragOverlay\n dropAnimation={dropAnimationConfig}\n modifiers={modifiers}\n className={cn(\"z-50\", activeId && \"cursor-grabbing\")}\n >\n <IsOverlayContext.Provider value={true}>{overlayContent}</IsOverlayContext.Provider>\n </DragOverlay>,\n document.body,\n )}\n </DndContext>\n </SortableInternalContext.Provider>\n );\n}\n\nexport interface SortableItemProps extends useRender.ComponentProps<\"div\"> {\n value: string;\n disabled?: boolean;\n}\n\nfunction SortableItem({ value, className, render, disabled, ...props }: SortableItemProps) {\n const isOverlay = useContext(IsOverlayContext);\n\n const {\n setNodeRef,\n transform,\n transition,\n attributes,\n listeners,\n isDragging: isSortableDragging,\n } = useSortable({\n id: value,\n disabled: disabled || isOverlay,\n animateLayoutChanges,\n });\n\n const style = {\n transition,\n transform: CSS.Transform.toString(transform),\n } as CSSProperties;\n\n const defaultProps = isOverlay\n ? {\n \"data-slot\": \"sortable-item\",\n \"data-value\": value,\n \"data-dragging\": true,\n className: cn(className),\n children: props.children,\n }\n : {\n \"data-slot\": \"sortable-item\",\n \"data-value\": value,\n \"data-dragging\": isSortableDragging,\n \"data-disabled\": disabled,\n ref: setNodeRef,\n style,\n ...attributes,\n className: cn(isSortableDragging && \"z-50 opacity-50\", disabled && \"opacity-50\", className),\n children: props.children,\n };\n\n return (\n <SortableItemContext.Provider\n value={\n isOverlay\n ? { listeners: undefined, isDragging: true, disabled: false }\n : { listeners, isDragging: isSortableDragging, disabled }\n }\n >\n {useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n })}\n </SortableItemContext.Provider>\n );\n}\n\nexport interface SortableItemHandleProps extends useRender.ComponentProps<\"div\"> {\n cursor?: boolean;\n}\n\nfunction SortableItemHandle({\n className,\n render,\n cursor = true,\n ...props\n}: SortableItemHandleProps) {\n const { listeners, isDragging, disabled } = useContext(SortableItemContext);\n\n const defaultProps = {\n \"data-slot\": \"sortable-item-handle\",\n \"data-dragging\": isDragging,\n \"data-disabled\": disabled,\n ...listeners,\n className: cn(cursor && (isDragging ? \"cursor-grabbing!\" : \"cursor-grab!\"), className),\n children: props.children,\n };\n\n return useRender({\n defaultTagName: \"div\",\n render,\n props: mergeProps<\"div\">(defaultProps, props),\n });\n}\n\nexport interface SortableOverlayProps\n extends Omit<React.ComponentProps<typeof DragOverlay>, \"children\"> {\n children?: ReactNode | ((params: { value: UniqueIdentifier }) => ReactNode);\n}\n\nfunction SortableOverlay({ children, className, ...props }: SortableOverlayProps) {\n const { activeId, modifiers } = useContext(SortableInternalContext);\n const mounted = useSyncExternalStore(subscribeToNothing, getIsMounted, getIsMountedOnServer);\n\n const content =\n activeId && children\n ? typeof children === \"function\"\n ? children({ value: activeId })\n : children\n : null;\n\n if (!mounted) return null;\n\n return createPortal(\n <DragOverlay\n dropAnimation={dropAnimationConfig}\n modifiers={modifiers}\n className={cn(\"z-50\", activeId && \"cursor-grabbing\", className)}\n {...props}\n >\n <IsOverlayContext.Provider value={true}>{content}</IsOverlayContext.Provider>\n </DragOverlay>,\n document.body,\n );\n}\n\nexport { Sortable, SortableItem, SortableItemHandle, SortableOverlay };\n"],"mappings":";;;;;;;;;;;AAqDA,MAAM,sBAAsB,cAIzB;CACD,WAAW,KAAA;CACX,YAAY;CACZ,UAAU;AACZ,CAAC;AAED,MAAM,mBAAmB,cAAc,KAAK;AAE5C,MAAM,0BAA0B,cAG7B;CACD,UAAU;CACV,WAAW,KAAA;AACb,CAAC;AAED,MAAM,wBAA8C,SAClD,4BAA4B;CAAE,GAAG;CAAM,aAAa;AAAK,CAAC;AAE5D,MAAM,sBAAqC,EACzC,aAAa,gCAAgC,EAC3C,QAAQ,EACN,QAAQ,EACN,SAAS,MACX,EACF,EACF,CAAC,EACH;;;;;;;;;;;;;AAcA,MAAM,iCAAiC,CAAC;AACxC,MAAM,qBAAqB;AAC3B,MAAM,6BAA6B;AAEnC,MAAM,uBAAuB,EAAE,sBAAsB,EAAE,UAAU,GAAG,EAAE;AACtE,MAAM,uBAAuB,EAC3B,sBAAsB;CAAE,OAAO;CAAK,WAAW;AAAE,EACnD;AACA,MAAM,0BAA0B,EAC9B,kBAAkB,4BACpB;AACA,MAAM,mBAAmB,EACvB,WAAW,EAAE,UAAU,kBAAkB,OAAO,EAClD;AACA,MAAM,eAAe;CACnB,YAAY;CACZ,MAAM;CACN,UAAU;AACZ;AA0BA,SAAS,SAAY,EACnB,OACA,eACA,cACA,WACA,QACA,QACA,eACA,WAAW,YACX,aACA,WACA,cACA,eACA,WACA,UACA,GAAG,SACoB;CACvB,MAAM,CAAC,UAAU,eAAe,SAAkC,IAAI;CACtE,MAAM,UAAU,qBAAqB,oBAAoB,cAAc,oBAAoB;CAE3F,MAAM,UAAU,WACd,UAAU,aAAa,oBAAoB,GAC3C,UAAU,aAAa,oBAAoB,GAC3C,UAAU,gBAAg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ACb,SAAS,IACX;AACF"}
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { createContext, useContext } from "react";
3
3
  import { cn } from "@kumix/utils";
4
- import { ChevronDownIcon, MinusIcon, PlusIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronDownIcon, MinusIcon, PlusIcon } from "lucide-react";
6
6
  import { mergeProps } from "@base-ui/react/merge-props";
7
7
  import { useRender } from "@base-ui/react/use-render";
8
8
  //#region src/components/reui/tree.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
5
5
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
6
6
  //#region src/components/ui/accordion.tsx
7
7
  function Accordion({ className, ...props }) {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
6
6
  //#region src/components/ui/alert-dialog.tsx
7
7
  function AlertDialog({ ...props }) {
8
8
  return /* @__PURE__ */ jsx(AlertDialog$1.Root, {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { cva } from "class-variance-authority";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
5
  //#region src/components/ui/alert.tsx
6
6
  const alertVariants = cva("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 has-data-[slot=alert-action]:pr-18 *:[svg:not([class*='size-'])]:size-4 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current", {
7
7
  variants: { variant: {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { cva } from "class-variance-authority";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import { cva } from "class-variance-authority";
6
6
  import { mergeProps } from "@base-ui/react/merge-props";
7
7
  import { useRender } from "@base-ui/react/use-render";
8
8
  //#region src/components/ui/attachment.tsx
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
3
  //#region src/components/ui/badge.d.ts
4
4
  declare const badgeVariants: (props?: ({
5
- variant?: "link" | "ghost" | "outline" | "secondary" | "default" | "destructive" | null | undefined;
5
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
8
8
  //#endregion
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
5
5
  import { mergeProps } from "@base-ui/react/merge-props";
6
6
  import { useRender } from "@base-ui/react/use-render";
7
7
  //#region src/components/ui/breadcrumb.tsx
@@ -4,7 +4,7 @@ import { useRender } from "@base-ui/react/use-render";
4
4
  //#region src/components/ui/bubble.d.ts
5
5
  declare function BubbleGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
6
6
  declare const bubbleVariants: (props?: ({
7
- variant?: "ghost" | "outline" | "secondary" | "default" | "destructive" | "muted" | "tinted" | null | undefined;
7
+ variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  declare function Bubble({ variant, align, className, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
10
10
  align?: "start" | "end";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { cva } from "class-variance-authority";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
5
  import { mergeProps } from "@base-ui/react/merge-props";
6
6
  import { useRender } from "@base-ui/react/use-render";
7
7
  //#region src/components/ui/bubble.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Separator } from "./separator.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { cva } from "class-variance-authority";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import { cva } from "class-variance-authority";
6
6
  import { mergeProps } from "@base-ui/react/merge-props";
7
7
  import { useRender } from "@base-ui/react/use-render";
8
8
  //#region src/components/ui/button-group.tsx
@@ -2,7 +2,7 @@ import { Button as Button$1 } from "@base-ui/react/button";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  //#region src/components/ui/button.d.ts
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "link" | "ghost" | "outline" | "secondary" | "default" | "destructive" | null | undefined;
5
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
6
6
  size?: "icon" | "default" | "sm" | "lg" | "xs" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Button({ className, variant, size, ...props }: Button$1.Props & VariantProps<typeof buttonVariants>): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
+ import { jsx } from "react/jsx-runtime";
3
4
  import { Button as Button$1 } from "@base-ui/react/button";
4
5
  import { cva } from "class-variance-authority";
5
- import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/ui/button.tsx
7
7
  const buttonVariants = cva("group/button inline-flex shrink-0 select-none items-center justify-center whitespace-nowrap rounded-lg border border-transparent bg-clip-padding font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0", {
8
8
  variants: {
@@ -2,8 +2,8 @@
2
2
  import { Button, buttonVariants } from "./button.js";
3
3
  import * as React$1 from "react";
4
4
  import { cn } from "@kumix/utils";
5
- import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
6
5
  import { jsx } from "react/jsx-runtime";
6
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
7
7
  import { DayPicker, getDefaultClassNames } from "react-day-picker";
8
8
  //#region src/components/ui/calendar.tsx
9
9
  function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", locale, formatters, components, ...props }) {
@@ -2,8 +2,8 @@
2
2
  import { Button } from "./button.js";
3
3
  import * as React$1 from "react";
4
4
  import { cn } from "@kumix/utils";
5
- import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react";
7
7
  import useEmblaCarousel from "embla-carousel-react";
8
8
  //#region src/components/ui/carousel.tsx
9
9
  const CarouselContext = React$1.createContext(null);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { CheckIcon } from "lucide-react";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { CheckIcon } from "lucide-react";
5
5
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
6
6
  //#region src/components/ui/checkbox.tsx
7
7
  function Checkbox({ className, ...props }) {
@@ -3,8 +3,8 @@ import { Button } from "./button.js";
3
3
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "./input-group.js";
4
4
  import * as React$1 from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { CheckIcon, ChevronDownIcon, XIcon } from "lucide-react";
8
8
  import { Combobox as Combobox$1 } from "@base-ui/react";
9
9
  //#region src/components/ui/combobox.tsx
10
10
  const Combobox = Combobox$1.Root;
@@ -2,8 +2,8 @@
2
2
  import { InputGroup, InputGroupAddon } from "./input-group.js";
3
3
  import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
4
4
  import { cn } from "@kumix/utils";
5
- import { CheckIcon, SearchIcon } from "lucide-react";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { CheckIcon, SearchIcon } from "lucide-react";
7
7
  import { Command as Command$1 } from "cmdk";
8
8
  //#region src/components/ui/command.tsx
9
9
  function Command({ className, ...props }) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { CheckIcon, ChevronRightIcon } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { CheckIcon, ChevronRightIcon } from "lucide-react";
5
5
  import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
6
6
  //#region src/components/ui/context-menu.tsx
7
7
  function ContextMenu({ ...props }) {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { XIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { XIcon } from "lucide-react";
6
6
  import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
7
7
  //#region src/components/ui/dialog.tsx
8
8
  function Dialog({ ...props }) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { CheckIcon, ChevronRightIcon } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { CheckIcon, ChevronRightIcon } from "lucide-react";
5
5
  import { Menu } from "@base-ui/react/menu";
6
6
  //#region src/components/ui/dropdown-menu.tsx
7
7
  function DropdownMenu({ ...props }) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { cva } from "class-variance-authority";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
5
  //#region src/components/ui/empty.tsx
6
6
  function Empty({ className, ...props }) {
7
7
  return /* @__PURE__ */ jsx("div", {
@@ -3,8 +3,8 @@ import { Separator } from "./separator.js";
3
3
  import { Label } from "./label.js";
4
4
  import { useMemo } from "react";
5
5
  import { cn } from "@kumix/utils";
6
- import { cva } from "class-variance-authority";
7
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { cva } from "class-variance-authority";
8
8
  //#region src/components/ui/field.tsx
9
9
  function FieldSet({ className, ...props }) {
10
10
  return /* @__PURE__ */ jsx("fieldset", {
@@ -3,8 +3,8 @@ import { Button } from "./button.js";
3
3
  import { Input } from "./input.js";
4
4
  import { Textarea } from "./textarea.js";
5
5
  import { cn } from "@kumix/utils";
6
- import { cva } from "class-variance-authority";
7
6
  import { jsx } from "react/jsx-runtime";
7
+ import { cva } from "class-variance-authority";
8
8
  //#region src/components/ui/input-group.tsx
9
9
  function InputGroup({ className, ...props }) {
10
10
  return /* @__PURE__ */ jsx("div", {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import * as React$1 from "react";
3
3
  import { cn } from "@kumix/utils";
4
- import { MinusIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { MinusIcon } from "lucide-react";
6
6
  import { OTPInput, OTPInputContext } from "input-otp";
7
7
  //#region src/components/ui/input-otp.tsx
8
8
  function InputOTP({ className, containerClassName, ...props }) {
@@ -6,7 +6,7 @@ import { useRender } from "@base-ui/react/use-render";
6
6
  declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
7
7
  declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
8
8
  declare const itemVariants: (props?: ({
9
- variant?: "outline" | "default" | "muted" | null | undefined;
9
+ variant?: "default" | "outline" | "muted" | null | undefined;
10
10
  size?: "default" | "sm" | "xs" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
12
  declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Separator } from "./separator.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { cva } from "class-variance-authority";
5
4
  import { jsx } from "react/jsx-runtime";
5
+ import { cva } from "class-variance-authority";
6
6
  import { mergeProps } from "@base-ui/react/merge-props";
7
7
  import { useRender } from "@base-ui/react/use-render";
8
8
  //#region src/components/ui/item.tsx
@@ -3,7 +3,7 @@ import { VariantProps } from "class-variance-authority";
3
3
  import { useRender } from "@base-ui/react/use-render";
4
4
  //#region src/components/ui/marker.d.ts
5
5
  declare const markerVariants: (props?: ({
6
- variant?: "separator" | "default" | "border" | null | undefined;
6
+ variant?: "default" | "separator" | "border" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
8
  declare function Marker({ className, variant, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof markerVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
9
9
  declare function MarkerIcon({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { cva } from "class-variance-authority";
4
3
  import { jsx } from "react/jsx-runtime";
4
+ import { cva } from "class-variance-authority";
5
5
  import { mergeProps } from "@base-ui/react/merge-props";
6
6
  import { useRender } from "@base-ui/react/use-render";
7
7
  //#region src/components/ui/marker.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { CheckIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { CheckIcon } from "lucide-react";
6
6
  import { Menu } from "@base-ui/react/menu";
7
7
  import { Menubar as Menubar$1 } from "@base-ui/react/menubar";
8
8
  //#region src/components/ui/menubar.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { ArrowDownIcon } from "lucide-react";
5
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
+ import { ArrowDownIcon } from "lucide-react";
6
6
  import { MessageScroller as MessageScroller$1, useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from "@shadcn/react/message-scroller";
7
7
  //#region src/components/ui/message-scroller.tsx
8
8
  function MessageScrollerProvider(props) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
- import { ChevronDownIcon } from "lucide-react";
4
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { ChevronDownIcon } from "lucide-react";
5
5
  //#region src/components/ui/native-select.tsx
6
6
  function NativeSelect({ className, size = "default", ...props }) {
7
7
  return /* @__PURE__ */ jsxs("div", {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { cn } from "@kumix/utils";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
3
4
  import { ChevronDownIcon } from "lucide-react";
4
5
  import { cva } from "class-variance-authority";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
7
7
  //#region src/components/ui/navigation-menu.tsx
8
8
  function NavigationMenu({ align = "start", className, children, ...props }) {
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { Button } from "./button.js";
3
3
  import { cn } from "@kumix/utils";
4
- import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
5
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
+ import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
6
6
  //#region src/components/ui/pagination.tsx
7
7
  function Pagination({ className, ...props }) {
8
8
  return /* @__PURE__ */ jsx("nav", {
@@ -0,0 +1,21 @@
1
+ import { Button } from "./button.js";
2
+ import * as React$1 from "react";
3
+ import { Questionnaire as Questionnaire$1 } from "@shadcn/react/questionnaire";
4
+ //#region src/components/ui/questionnaire.d.ts
5
+ declare function Questionnaire({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Root>): React$1.JSX.Element;
6
+ declare function QuestionnaireProgress({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Progress>): React$1.JSX.Element;
7
+ declare function QuestionnaireItem({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Item>): React$1.JSX.Element;
8
+ declare function QuestionnaireTitle({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Title>): React$1.JSX.Element;
9
+ declare function QuestionnaireDescription({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Description>): React$1.JSX.Element;
10
+ declare function QuestionnaireChoices({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Choices>): React$1.JSX.Element;
11
+ declare function QuestionnaireChoice({ children, className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Choice>): React$1.JSX.Element;
12
+ declare function QuestionnaireInput({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Input>): React$1.JSX.Element;
13
+ declare function QuestionnaireError({ className, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Error>): React$1.JSX.Element;
14
+ declare function QuestionnaireActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
15
+ declare function QuestionnairePrevious({ children, className, size, variant, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Previous> & Pick<React$1.ComponentProps<typeof Button>, "size" | "variant">): React$1.JSX.Element;
16
+ declare function QuestionnaireSkip({ children, className, size, variant, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Skip> & Pick<React$1.ComponentProps<typeof Button>, "size" | "variant">): React$1.JSX.Element;
17
+ declare function QuestionnaireNext({ children, className, size, variant, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Next> & Pick<React$1.ComponentProps<typeof Button>, "size" | "variant">): React$1.JSX.Element;
18
+ declare function QuestionnaireSubmit({ children, className, size, variant, ...props }: React$1.ComponentProps<typeof Questionnaire$1.Submit> & Pick<React$1.ComponentProps<typeof Button>, "size" | "variant">): React$1.JSX.Element;
19
+ //#endregion
20
+ export { Questionnaire, QuestionnaireActions, QuestionnaireChoice, QuestionnaireChoices, QuestionnaireDescription, QuestionnaireError, QuestionnaireInput, QuestionnaireItem, QuestionnaireNext, QuestionnairePrevious, QuestionnaireProgress, QuestionnaireSkip, QuestionnaireSubmit, QuestionnaireTitle };
21
+ //# sourceMappingURL=questionnaire.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"questionnaire.d.ts","names":[],"sources":["../../../src/components/ui/questionnaire.tsx"],"mappings":";;;;iBASS,gBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,QAAK,QAAA,IAAA;iBAUlD,wBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,YAAS,QAAA,IAAA;iBAatD,oBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,QAAK,QAAA,IAAA;iBAUlD,qBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,SAAM,QAAA,IAAA;iBAanD,2BACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,eAAY,QAAA,IAAA;iBAUzD,uBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,WAAQ,QAAA,IAAA;iBAUrD,sBACP,UACA,cACG,SACF,QAAM,sBAAsB,gBAAuB,UAAO,QAAA,IAAA;iBA2CpD,qBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,SAAM,QAAA,IAAA;iBAmBnD,qBACP,cACG,SACF,QAAM,sBAAsB,gBAAuB,SAAM,QAAA,IAAA;iBAUnD,uBAAuB,cAAc,SAAS,QAAM,wBAAqB,QAAA,IAAA;iBAazE,wBACP,UACA,WACA,MACA,YACG,SACF,QAAM,sBAAsB,gBAAuB,YACpD,KAAK,QAAM,sBAAsB,+BAA4B,QAAA,IAAA;iBAkBtD,oBACP,UACA,WACA,MACA,YACG,SACF,QAAM,sBAAsB,gBAAuB,QACpD,KAAK,QAAM,sBAAsB,+BAA4B,QAAA,IAAA;iBAkBtD,oBACP,UACA,WACA,MACA,YACG,SACF,QAAM,sBAAsB,gBAAuB,QACpD,KAAK,QAAM,sBAAsB,+BAA4B,QAAA,IAAA;iBAkBtD,sBACP,UACA,WACA,MACA,YACG,SACF,QAAM,sBAAsB,gBAAuB,UACpD,KAAK,QAAM,sBAAsB,+BAA4B,QAAA,IAAA"}