@asanchez-sa/abby 0.0.0-stage → 0.1.1

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 (391) hide show
  1. package/README.md +245 -2
  2. package/dist/_virtual/_rolldown/runtime.js +26 -0
  3. package/dist/agents/approvals.d.ts +46 -0
  4. package/dist/agents/approvals.js +58 -0
  5. package/dist/agents/changes.d.ts +21 -0
  6. package/dist/agents/changes.js +21 -0
  7. package/dist/agents/hooks.d.ts +20 -0
  8. package/dist/agents/hooks.js +58 -0
  9. package/dist/agents/index.d.ts +11 -0
  10. package/dist/agents/index.js +9 -0
  11. package/dist/agents/run-tool.d.ts +44 -0
  12. package/dist/agents/run-tool.js +79 -0
  13. package/dist/agents/ui-sdk.d.ts +5 -0
  14. package/dist/agents/ui-sdk.js +3 -0
  15. package/dist/behaviors/canvas/index.d.ts +2 -0
  16. package/dist/behaviors/canvas/index.js +1 -0
  17. package/dist/behaviors/canvas/ui-sdk.d.ts +2 -0
  18. package/dist/behaviors/canvas/ui-sdk.js +1 -0
  19. package/dist/behaviors/drag-and-drop/index.d.ts +2 -0
  20. package/dist/behaviors/drag-and-drop/index.js +1 -0
  21. package/dist/behaviors/drag-and-drop/ui-sdk.d.ts +2 -0
  22. package/dist/behaviors/drag-and-drop/ui-sdk.js +1 -0
  23. package/dist/behaviors/dragging/index.d.ts +2 -0
  24. package/dist/behaviors/dragging/index.js +1 -0
  25. package/dist/behaviors/dragging/ui-sdk.d.ts +2 -0
  26. package/dist/behaviors/dragging/ui-sdk.js +1 -0
  27. package/dist/behaviors/focus/index.d.ts +2 -0
  28. package/dist/behaviors/focus/index.js +1 -0
  29. package/dist/behaviors/focus/ui-sdk.d.ts +2 -0
  30. package/dist/behaviors/focus/ui-sdk.js +1 -0
  31. package/dist/behaviors/lists/index.d.ts +3 -0
  32. package/dist/behaviors/lists/index.js +3 -0
  33. package/dist/behaviors/lists/ui-sdk.d.ts +3 -0
  34. package/dist/behaviors/lists/ui-sdk.js +3 -0
  35. package/dist/behaviors/popups/index.d.ts +3 -0
  36. package/dist/behaviors/popups/index.js +3 -0
  37. package/dist/behaviors/popups/ui-sdk.d.ts +3 -0
  38. package/dist/behaviors/popups/ui-sdk.js +3 -0
  39. package/dist/behaviors/preferences/index.d.ts +3 -0
  40. package/dist/behaviors/preferences/index.js +3 -0
  41. package/dist/behaviors/preferences/ui-sdk.d.ts +3 -0
  42. package/dist/behaviors/preferences/ui-sdk.js +3 -0
  43. package/dist/behaviors/selection/index.d.ts +3 -0
  44. package/dist/behaviors/selection/index.js +3 -0
  45. package/dist/behaviors/selection/indicator.d.ts +13 -0
  46. package/dist/behaviors/selection/indicator.js +20 -0
  47. package/dist/behaviors/selection/ui-sdk.d.ts +2 -0
  48. package/dist/behaviors/selection/ui-sdk.js +1 -0
  49. package/dist/behaviors/transitions/index.d.ts +3 -0
  50. package/dist/behaviors/transitions/index.js +3 -0
  51. package/dist/behaviors/transitions/ui-sdk.d.ts +3 -0
  52. package/dist/behaviors/transitions/ui-sdk.js +3 -0
  53. package/dist/behaviors/trees/index.d.ts +2 -0
  54. package/dist/behaviors/trees/index.js +1 -0
  55. package/dist/behaviors/trees/ui-sdk.d.ts +2 -0
  56. package/dist/behaviors/trees/ui-sdk.js +1 -0
  57. package/dist/components/accordion/accordion.d.ts +13 -0
  58. package/dist/components/accordion/accordion.js +165 -0
  59. package/dist/components/alert/alert.d.ts +13 -0
  60. package/dist/components/alert/alert.js +131 -0
  61. package/dist/components/alert-dialog/alert-dialog.d.ts +15 -0
  62. package/dist/components/alert-dialog/alert-dialog.js +257 -0
  63. package/dist/components/aspect-ratio/aspect-ratio.d.ts +7 -0
  64. package/dist/components/aspect-ratio/aspect-ratio.js +57 -0
  65. package/dist/components/attachment/attachment.d.ts +48 -0
  66. package/dist/components/attachment/attachment.js +372 -0
  67. package/dist/components/autocomplete/autocomplete.d.ts +32 -0
  68. package/dist/components/autocomplete/autocomplete.js +466 -0
  69. package/dist/components/avatar/avatar.d.ts +6 -0
  70. package/dist/components/avatar/avatar.js +100 -0
  71. package/dist/components/avatar-group/avatar-group.d.ts +9 -0
  72. package/dist/components/avatar-group/avatar-group.js +75 -0
  73. package/dist/components/badge/badge.d.ts +15 -0
  74. package/dist/components/badge/badge.js +31 -0
  75. package/dist/components/breadcrumb/breadcrumb.d.ts +24 -0
  76. package/dist/components/breadcrumb/breadcrumb.js +279 -0
  77. package/dist/components/bubble/bubble.d.ts +26 -0
  78. package/dist/components/bubble/bubble.js +173 -0
  79. package/dist/components/button/button.d.ts +18 -0
  80. package/dist/components/button/button.js +91 -0
  81. package/dist/components/button-group/button-group.d.ts +15 -0
  82. package/dist/components/button-group/button-group.js +71 -0
  83. package/dist/components/calendar/calendar.d.ts +29 -0
  84. package/dist/components/calendar/calendar.js +453 -0
  85. package/dist/components/card/card.d.ts +14 -0
  86. package/dist/components/card/card.js +213 -0
  87. package/dist/components/carousel/carousel.d.ts +16 -0
  88. package/dist/components/carousel/carousel.js +364 -0
  89. package/dist/components/chain-of-thought/chain-of-thought.d.ts +72 -0
  90. package/dist/components/chain-of-thought/chain-of-thought.js +491 -0
  91. package/dist/components/chat/chat.d.ts +48 -0
  92. package/dist/components/chat/chat.js +207 -0
  93. package/dist/components/checkbox/checkbox.d.ts +10 -0
  94. package/dist/components/checkbox/checkbox.js +118 -0
  95. package/dist/components/checkpoint/checkpoint.d.ts +24 -0
  96. package/dist/components/checkpoint/checkpoint.js +178 -0
  97. package/dist/components/choice-cards/choice-cards.d.ts +38 -0
  98. package/dist/components/choice-cards/choice-cards.js +255 -0
  99. package/dist/components/code-block/code-block.d.ts +58 -0
  100. package/dist/components/code-block/code-block.js +506 -0
  101. package/dist/components/code-block/highlighter.js +96 -0
  102. package/dist/components/code-block/use-highlighted-code.d.ts +11 -0
  103. package/dist/components/code-block/use-highlighted-code.js +54 -0
  104. package/dist/components/collapsible/collapsible.d.ts +10 -0
  105. package/dist/components/collapsible/collapsible.js +92 -0
  106. package/dist/components/color-picker/color-picker.d.ts +17 -0
  107. package/dist/components/color-picker/color-picker.js +395 -0
  108. package/dist/components/combobox/combobox.d.ts +54 -0
  109. package/dist/components/combobox/combobox.js +683 -0
  110. package/dist/components/command/command.d.ts +23 -0
  111. package/dist/components/command/command.js +373 -0
  112. package/dist/components/command-dock/command-dock.d.ts +118 -0
  113. package/dist/components/command-dock/command-dock.js +944 -0
  114. package/dist/components/confirmation/confirmation.d.ts +58 -0
  115. package/dist/components/confirmation/confirmation.js +181 -0
  116. package/dist/components/context/context.d.ts +82 -0
  117. package/dist/components/context/context.js +490 -0
  118. package/dist/components/date-input/date-input.d.ts +16 -0
  119. package/dist/components/date-input/date-input.js +89 -0
  120. package/dist/components/date-picker/date-picker.d.ts +28 -0
  121. package/dist/components/date-picker/date-picker.js +361 -0
  122. package/dist/components/dialog/dialog.d.ts +14 -0
  123. package/dist/components/dialog/dialog.js +261 -0
  124. package/dist/components/drawer/drawer.d.ts +16 -0
  125. package/dist/components/drawer/drawer.js +309 -0
  126. package/dist/components/empty/empty.d.ts +18 -0
  127. package/dist/components/empty/empty.js +192 -0
  128. package/dist/components/field/field.d.ts +15 -0
  129. package/dist/components/field/field.js +261 -0
  130. package/dist/components/file-input/file-input.d.ts +12 -0
  131. package/dist/components/file-input/file-input.js +216 -0
  132. package/dist/components/file-tree/file-tree.d.ts +45 -0
  133. package/dist/components/file-tree/file-tree.js +283 -0
  134. package/dist/components/hover-card/hover-card.d.ts +10 -0
  135. package/dist/components/hover-card/hover-card.js +118 -0
  136. package/dist/components/icon/icon.d.ts +14 -0
  137. package/dist/components/icon/icon.js +60 -0
  138. package/dist/components/image-cropper/image-cropper.d.ts +15 -0
  139. package/dist/components/image-cropper/image-cropper.js +334 -0
  140. package/dist/components/inline-citation/inline-citation.d.ts +46 -0
  141. package/dist/components/inline-citation/inline-citation.js +269 -0
  142. package/dist/components/input/input.d.ts +9 -0
  143. package/dist/components/input/input.js +43 -0
  144. package/dist/components/input-group/input-group.d.ts +42 -0
  145. package/dist/components/input-group/input-group.js +192 -0
  146. package/dist/components/item/item.d.ts +32 -0
  147. package/dist/components/item/item.js +394 -0
  148. package/dist/components/kbd/kbd.d.ts +9 -0
  149. package/dist/components/kbd/kbd.js +75 -0
  150. package/dist/components/label/label.d.ts +6 -0
  151. package/dist/components/label/label.js +40 -0
  152. package/dist/components/link/link.d.ts +21 -0
  153. package/dist/components/link/link.js +126 -0
  154. package/dist/components/listbox/listbox.d.ts +20 -0
  155. package/dist/components/listbox/listbox.js +199 -0
  156. package/dist/components/marker/marker.d.ts +11 -0
  157. package/dist/components/marker/marker.js +88 -0
  158. package/dist/components/menu/menu.d.ts +38 -0
  159. package/dist/components/menu/menu.js +553 -0
  160. package/dist/components/menubar/menubar.d.ts +9 -0
  161. package/dist/components/menubar/menubar.js +47 -0
  162. package/dist/components/message/message.d.ts +44 -0
  163. package/dist/components/message/message.js +328 -0
  164. package/dist/components/message-scroller/message-scroller.d.ts +111 -0
  165. package/dist/components/message-scroller/message-scroller.js +957 -0
  166. package/dist/components/meter/meter.d.ts +8 -0
  167. package/dist/components/meter/meter.js +162 -0
  168. package/dist/components/model-selector/model-selector.d.ts +155 -0
  169. package/dist/components/model-selector/model-selector.js +905 -0
  170. package/dist/components/native-select/native-select.d.ts +27 -0
  171. package/dist/components/native-select/native-select.js +226 -0
  172. package/dist/components/navigation-menu/navigation-menu.d.ts +29 -0
  173. package/dist/components/navigation-menu/navigation-menu.js +318 -0
  174. package/dist/components/not-label.js +9 -0
  175. package/dist/components/note-editor/blocks.d.ts +22 -0
  176. package/dist/components/note-editor/blocks.js +245 -0
  177. package/dist/components/note-editor/diff.d.ts +19 -0
  178. package/dist/components/note-editor/diff.js +64 -0
  179. package/dist/components/note-editor/editor.js +249 -0
  180. package/dist/components/note-editor/note-editor.d.ts +109 -0
  181. package/dist/components/note-editor/note-editor.js +954 -0
  182. package/dist/components/note-editor/parts/comments.d.ts +24 -0
  183. package/dist/components/note-editor/parts/comments.js +337 -0
  184. package/dist/components/note-editor/parts/header.d.ts +25 -0
  185. package/dist/components/note-editor/parts/header.js +263 -0
  186. package/dist/components/note-editor/parts/history.d.ts +56 -0
  187. package/dist/components/note-editor/parts/history.js +409 -0
  188. package/dist/components/note-editor/parts/presence.d.ts +31 -0
  189. package/dist/components/note-editor/parts/presence.js +140 -0
  190. package/dist/components/note-editor/parts/suggestions.d.ts +45 -0
  191. package/dist/components/note-editor/parts/suggestions.js +316 -0
  192. package/dist/components/note-editor/parts/toolbar.d.ts +38 -0
  193. package/dist/components/note-editor/parts/toolbar.js +687 -0
  194. package/dist/components/note-editor/people.d.ts +84 -0
  195. package/dist/components/note-editor/people.js +276 -0
  196. package/dist/components/note-editor/person.d.ts +11 -0
  197. package/dist/components/note-editor/person.js +15 -0
  198. package/dist/components/note-place/note-place.d.ts +42 -0
  199. package/dist/components/note-place/note-place.js +256 -0
  200. package/dist/components/note-status/note-status.d.ts +59 -0
  201. package/dist/components/note-status/note-status.js +380 -0
  202. package/dist/components/number-input/number-input.d.ts +12 -0
  203. package/dist/components/number-input/number-input.js +252 -0
  204. package/dist/components/otp-input/otp-input.d.ts +12 -0
  205. package/dist/components/otp-input/otp-input.js +136 -0
  206. package/dist/components/pagination/pagination.d.ts +23 -0
  207. package/dist/components/pagination/pagination.js +218 -0
  208. package/dist/components/password-input/password-input.d.ts +11 -0
  209. package/dist/components/password-input/password-input.js +117 -0
  210. package/dist/components/plan/plan.d.ts +51 -0
  211. package/dist/components/plan/plan.js +320 -0
  212. package/dist/components/popover/popover.d.ts +16 -0
  213. package/dist/components/popover/popover.js +268 -0
  214. package/dist/components/preferences/preferences.d.ts +5 -0
  215. package/dist/components/preferences/preferences.js +18 -0
  216. package/dist/components/progress/progress.d.ts +8 -0
  217. package/dist/components/progress/progress.js +162 -0
  218. package/dist/components/prompt-input/prompt-input.d.ts +247 -0
  219. package/dist/components/prompt-input/prompt-input.js +1367 -0
  220. package/dist/components/questionnaire/questionnaire.d.ts +174 -0
  221. package/dist/components/questionnaire/questionnaire.js +1628 -0
  222. package/dist/components/queue/queue.d.ts +82 -0
  223. package/dist/components/queue/queue.js +471 -0
  224. package/dist/components/radio/radio.d.ts +7 -0
  225. package/dist/components/radio/radio.js +101 -0
  226. package/dist/components/rating/rating.d.ts +10 -0
  227. package/dist/components/rating/rating.js +95 -0
  228. package/dist/components/reasoning/reasoning.d.ts +50 -0
  229. package/dist/components/reasoning/reasoning.js +233 -0
  230. package/dist/components/resizable/resizable.d.ts +6 -0
  231. package/dist/components/resizable/resizable.js +100 -0
  232. package/dist/components/scroll-area/scroll-area.d.ts +17 -0
  233. package/dist/components/scroll-area/scroll-area.js +211 -0
  234. package/dist/components/segmented-control/segmented-control.d.ts +16 -0
  235. package/dist/components/segmented-control/segmented-control.js +142 -0
  236. package/dist/components/select/select.d.ts +43 -0
  237. package/dist/components/select/select.js +577 -0
  238. package/dist/components/separator/separator.d.ts +4 -0
  239. package/dist/components/separator/separator.js +38 -0
  240. package/dist/components/sheet/sheet.d.ts +24 -0
  241. package/dist/components/sheet/sheet.js +330 -0
  242. package/dist/components/sidebar/sidebar.d.ts +138 -0
  243. package/dist/components/sidebar/sidebar.js +1374 -0
  244. package/dist/components/skeleton/skeleton.d.ts +4 -0
  245. package/dist/components/skeleton/skeleton.js +40 -0
  246. package/dist/components/slider/slider.d.ts +9 -0
  247. package/dist/components/slider/slider.js +193 -0
  248. package/dist/components/sources/sources.d.ts +35 -0
  249. package/dist/components/sources/sources.js +209 -0
  250. package/dist/components/spinner/spinner.d.ts +11 -0
  251. package/dist/components/spinner/spinner.js +59 -0
  252. package/dist/components/stack-trace/parse-stack-trace.d.ts +21 -0
  253. package/dist/components/stack-trace/parse-stack-trace.js +61 -0
  254. package/dist/components/stack-trace/stack-trace.d.ts +79 -0
  255. package/dist/components/stack-trace/stack-trace.js +434 -0
  256. package/dist/components/subagent/subagent.d.ts +71 -0
  257. package/dist/components/subagent/subagent.js +450 -0
  258. package/dist/components/suggestion/suggestion.d.ts +21 -0
  259. package/dist/components/suggestion/suggestion.js +130 -0
  260. package/dist/components/switch/switch.d.ts +6 -0
  261. package/dist/components/switch/switch.js +70 -0
  262. package/dist/components/table/table.d.ts +19 -0
  263. package/dist/components/table/table.js +284 -0
  264. package/dist/components/table-of-contents/spy.js +84 -0
  265. package/dist/components/table-of-contents/table-of-contents.d.ts +92 -0
  266. package/dist/components/table-of-contents/table-of-contents.js +787 -0
  267. package/dist/components/tabs/tabs.d.ts +25 -0
  268. package/dist/components/tabs/tabs.js +273 -0
  269. package/dist/components/task/task.d.ts +40 -0
  270. package/dist/components/task/task.js +262 -0
  271. package/dist/components/terminal/terminal.d.ts +82 -0
  272. package/dist/components/terminal/terminal.js +457 -0
  273. package/dist/components/test-results/test-results.d.ts +127 -0
  274. package/dist/components/test-results/test-results.js +687 -0
  275. package/dist/components/textarea/textarea.d.ts +8 -0
  276. package/dist/components/textarea/textarea.js +43 -0
  277. package/dist/components/time-input/time-input.d.ts +7 -0
  278. package/dist/components/time-input/time-input.js +82 -0
  279. package/dist/components/timeline/timeline.d.ts +19 -0
  280. package/dist/components/timeline/timeline.js +247 -0
  281. package/dist/components/toast/toast.d.ts +12 -0
  282. package/dist/components/toast/toast.js +285 -0
  283. package/dist/components/toggle/toggle.d.ts +15 -0
  284. package/dist/components/toggle/toggle.js +137 -0
  285. package/dist/components/token-input/token-input.d.ts +7 -0
  286. package/dist/components/token-input/token-input.js +117 -0
  287. package/dist/components/tool/tool.d.ts +66 -0
  288. package/dist/components/tool/tool.js +413 -0
  289. package/dist/components/toolbar/toolbar.d.ts +91 -0
  290. package/dist/components/toolbar/toolbar.js +655 -0
  291. package/dist/components/tooltip/tooltip.d.ts +8 -0
  292. package/dist/components/tooltip/tooltip.js +97 -0
  293. package/dist/components/trace/trace.d.ts +31 -0
  294. package/dist/components/trace/trace.js +309 -0
  295. package/dist/components/tree/tree.d.ts +13 -0
  296. package/dist/components/tree/tree.js +258 -0
  297. package/dist/components/trigger-menu/trigger-menu.d.ts +30 -0
  298. package/dist/components/trigger-menu/trigger-menu.js +352 -0
  299. package/dist/components/usage/usage.d.ts +132 -0
  300. package/dist/components/usage/usage.js +1368 -0
  301. package/dist/components/waterfall/waterfall.d.ts +20 -0
  302. package/dist/components/waterfall/waterfall.js +360 -0
  303. package/dist/components/week-strip/week-strip.d.ts +177 -0
  304. package/dist/components/week-strip/week-strip.js +1081 -0
  305. package/dist/core/index.d.ts +7 -0
  306. package/dist/core/index.js +27 -0
  307. package/dist/core/ui-sdk.d.ts +3 -0
  308. package/dist/core/ui-sdk.js +3 -0
  309. package/dist/core/use-primitive-state.d.ts +14 -0
  310. package/dist/core/use-primitive-state.js +25 -0
  311. package/dist/styles/LICENSE-shadcn.md +21 -0
  312. package/dist/styles/color-scheme.css +32 -0
  313. package/dist/styles/components.css +303 -0
  314. package/dist/styles/index.css +41 -0
  315. package/dist/styles/tokens.css +474 -0
  316. package/dist/styles/typeset/shadcn.css +506 -0
  317. package/dist/styles/typeset.css +70 -0
  318. package/dist/styles/utilities.css +555 -0
  319. package/dist/tools/observe/index.d.ts +2 -0
  320. package/dist/tools/observe/index.js +3 -0
  321. package/dist/tools/observe/ui-sdk.d.ts +1 -0
  322. package/dist/tools/observe/ui-sdk.js +2 -0
  323. package/dist/tools/testing/check-agent.d.ts +28 -0
  324. package/dist/tools/testing/check-agent.js +42 -0
  325. package/dist/tools/testing/index.d.ts +4 -0
  326. package/dist/tools/testing/index.js +4 -0
  327. package/dist/tools/testing/ui-sdk.d.ts +1 -0
  328. package/dist/tools/testing/ui-sdk.js +2 -0
  329. package/dist/utilities/cn/index.d.ts +12 -0
  330. package/dist/utilities/cn/index.js +47 -0
  331. package/dist/utilities/color/index.d.ts +2 -0
  332. package/dist/utilities/color/index.js +3 -0
  333. package/dist/utilities/color/ui-sdk.d.ts +1 -0
  334. package/dist/utilities/color/ui-sdk.js +2 -0
  335. package/dist/utilities/date/index.d.ts +2 -0
  336. package/dist/utilities/date/index.js +6 -0
  337. package/dist/utilities/date/ui-sdk.d.ts +1 -0
  338. package/dist/utilities/date/ui-sdk.js +2 -0
  339. package/dist/utilities/image/index.d.ts +2 -0
  340. package/dist/utilities/image/index.js +3 -0
  341. package/dist/utilities/image/ui-sdk.d.ts +1 -0
  342. package/dist/utilities/image/ui-sdk.js +2 -0
  343. package/dist/utilities/mobile/index.d.ts +2 -0
  344. package/dist/utilities/mobile/index.js +1 -0
  345. package/dist/utilities/mobile/ui-sdk.d.ts +2 -0
  346. package/dist/utilities/mobile/ui-sdk.js +1 -0
  347. package/dist/utilities/number/index.d.ts +2 -0
  348. package/dist/utilities/number/index.js +3 -0
  349. package/dist/utilities/number/ui-sdk.d.ts +1 -0
  350. package/dist/utilities/number/ui-sdk.js +2 -0
  351. package/dist/utilities/platform/index.d.ts +3 -0
  352. package/dist/utilities/platform/index.js +14 -0
  353. package/dist/utilities/platform/ui-sdk.d.ts +3 -0
  354. package/dist/utilities/platform/ui-sdk.js +3 -0
  355. package/dist/utilities/storage/index.d.ts +2 -0
  356. package/dist/utilities/storage/index.js +1 -0
  357. package/dist/utilities/storage/ui-sdk.d.ts +2 -0
  358. package/dist/utilities/storage/ui-sdk.js +1 -0
  359. package/dist/utilities/text/index.d.ts +3 -0
  360. package/dist/utilities/text/index.js +3 -0
  361. package/dist/utilities/text/ui-sdk.d.ts +3 -0
  362. package/dist/utilities/text/ui-sdk.js +3 -0
  363. package/package.json +192 -4
  364. package/skills/agent-ready-ui/SKILL.md +229 -0
  365. package/skills/blocks/SKILL.md +262 -0
  366. package/skills/compose-screens/SKILL.md +354 -0
  367. package/skills/note-editor/SKILL.md +493 -0
  368. package/skills/note-status/SKILL.md +295 -0
  369. package/skills/setup/SKILL.md +136 -0
  370. package/skills/theming/SKILL.md +216 -0
  371. package/src/blocks/notes/adapters.ts +77 -0
  372. package/src/blocks/notes/data.ts +508 -0
  373. package/src/blocks/notes/notes-block.tsx +244 -0
  374. package/src/blocks/notes/parts/home.tsx +219 -0
  375. package/src/blocks/notes/parts/no-access.tsx +84 -0
  376. package/src/blocks/notes/parts/note-screen.tsx +412 -0
  377. package/src/blocks/notes/parts/notes-sidebar.tsx +277 -0
  378. package/src/blocks/notes/parts/panels.tsx +393 -0
  379. package/src/blocks/notes/parts/place.ts +15 -0
  380. package/src/blocks/notes/parts/review-dialog.tsx +159 -0
  381. package/src/blocks/notes/parts/share.tsx +172 -0
  382. package/src/blocks/notes/texts.ts +135 -0
  383. package/src/blocks/shell/adapters.ts +69 -0
  384. package/src/blocks/shell/data.ts +281 -0
  385. package/src/blocks/shell/parts/compose.tsx +292 -0
  386. package/src/blocks/shell/parts/home.tsx +203 -0
  387. package/src/blocks/shell/parts/marks.tsx +144 -0
  388. package/src/blocks/shell/parts/rail.tsx +166 -0
  389. package/src/blocks/shell/parts/rooms-column.tsx +326 -0
  390. package/src/blocks/shell/shell-block.tsx +210 -0
  391. package/src/blocks/shell/texts.ts +80 -0
@@ -0,0 +1,24 @@
1
+ import { LinkPartProps } from "../link/link.js";
2
+ import { ComponentProps } from "react";
3
+ /** The trail to the current page. `aria-label` names the landmark: translate it. */
4
+ declare function Breadcrumb({ "aria-label": ariaLabel, className, ...props }: ComponentProps<"nav">): import("react").JSX.Element;
5
+ declare function BreadcrumbList({ className, ...props }: ComponentProps<"ol">): import("react").JSX.Element;
6
+ declare function BreadcrumbItem({ className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
7
+ type BreadcrumbLinkProps = LinkPartProps;
8
+ /**
9
+ * A link to a level above. For a router's link, pass it to `render`:
10
+ * `render={<Link to="/projects" />}`. An agent finds it by its text and
11
+ * follows it with `follow`.
12
+ */
13
+ declare function BreadcrumbLink({ className, ...props }: BreadcrumbLinkProps): import("react").JSX.Element;
14
+ /** The page the user is on. It isn't a link. */
15
+ declare function BreadcrumbPage({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
16
+ /** Without children it shows a chevron that follows the reading direction. */
17
+ declare function BreadcrumbSeparator({ children, className, ...props }: ComponentProps<"li">): import("react").JSX.Element;
18
+ type BreadcrumbEllipsisProps = Omit<ComponentProps<"span">, "children"> & {
19
+ /** What the dots stand for, read by screen readers. It names a trigger the ellipsis sits in. */
20
+ label?: string;
21
+ };
22
+ /** Three dots for the levels left out. Put it in a `MenuTrigger` to list them. */
23
+ declare function BreadcrumbEllipsis({ className, label, ...props }: BreadcrumbEllipsisProps): import("react").JSX.Element;
24
+ export { Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -0,0 +1,279 @@
1
+ "use client";
2
+ import { cn, cnState } from "../../utilities/cn/index.js";
3
+ import { Icon } from "../icon/icon.js";
4
+ import { LinkPart } from "../link/link.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ import { ArrowRight01Icon, MoreHorizontalIcon } from "@hugeicons/core-free-icons";
8
+ // src/components/breadcrumb/breadcrumb.tsx
9
+ /** The trail to the current page. `aria-label` names the landmark: translate it. */
10
+ function Breadcrumb(t0) {
11
+ const $ = c(8);
12
+ let className;
13
+ let props;
14
+ let t1;
15
+ if ($[0] !== t0) {
16
+ ({"aria-label": t1, className, ...props} = t0);
17
+ $[0] = t0;
18
+ $[1] = className;
19
+ $[2] = props;
20
+ $[3] = t1;
21
+ } else {
22
+ className = $[1];
23
+ props = $[2];
24
+ t1 = $[3];
25
+ }
26
+ const ariaLabel = t1 === void 0 ? "Breadcrumb" : t1;
27
+ let t2;
28
+ if ($[4] !== ariaLabel || $[5] !== className || $[6] !== props) {
29
+ t2 = /* @__PURE__ */ jsx("nav", {
30
+ "aria-label": ariaLabel,
31
+ "data-slot": "breadcrumb",
32
+ className,
33
+ ...props
34
+ });
35
+ $[4] = ariaLabel;
36
+ $[5] = className;
37
+ $[6] = props;
38
+ $[7] = t2;
39
+ } else t2 = $[7];
40
+ return t2;
41
+ }
42
+ function BreadcrumbList(t0) {
43
+ const $ = c(8);
44
+ let className;
45
+ let props;
46
+ if ($[0] !== t0) {
47
+ ({className, ...props} = t0);
48
+ $[0] = t0;
49
+ $[1] = className;
50
+ $[2] = props;
51
+ } else {
52
+ className = $[1];
53
+ props = $[2];
54
+ }
55
+ let t1;
56
+ if ($[3] !== className) {
57
+ t1 = cn("flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground", className);
58
+ $[3] = className;
59
+ $[4] = t1;
60
+ } else t1 = $[4];
61
+ let t2;
62
+ if ($[5] !== props || $[6] !== t1) {
63
+ t2 = /* @__PURE__ */ jsx("ol", {
64
+ "data-slot": "breadcrumb-list",
65
+ className: t1,
66
+ ...props
67
+ });
68
+ $[5] = props;
69
+ $[6] = t1;
70
+ $[7] = t2;
71
+ } else t2 = $[7];
72
+ return t2;
73
+ }
74
+ function BreadcrumbItem(t0) {
75
+ const $ = c(8);
76
+ let className;
77
+ let props;
78
+ if ($[0] !== t0) {
79
+ ({className, ...props} = t0);
80
+ $[0] = t0;
81
+ $[1] = className;
82
+ $[2] = props;
83
+ } else {
84
+ className = $[1];
85
+ props = $[2];
86
+ }
87
+ let t1;
88
+ if ($[3] !== className) {
89
+ t1 = cn("inline-flex items-center gap-1", className);
90
+ $[3] = className;
91
+ $[4] = t1;
92
+ } else t1 = $[4];
93
+ let t2;
94
+ if ($[5] !== props || $[6] !== t1) {
95
+ t2 = /* @__PURE__ */ jsx("li", {
96
+ "data-slot": "breadcrumb-item",
97
+ className: t1,
98
+ ...props
99
+ });
100
+ $[5] = props;
101
+ $[6] = t1;
102
+ $[7] = t2;
103
+ } else t2 = $[7];
104
+ return t2;
105
+ }
106
+ /**
107
+ * A link to a level above. For a router's link, pass it to `render`:
108
+ * `render={<Link to="/projects" />}`. An agent finds it by its text and
109
+ * follows it with `follow`.
110
+ */
111
+ function BreadcrumbLink(t0) {
112
+ const $ = c(8);
113
+ let className;
114
+ let props;
115
+ if ($[0] !== t0) {
116
+ ({className, ...props} = t0);
117
+ $[0] = t0;
118
+ $[1] = className;
119
+ $[2] = props;
120
+ } else {
121
+ className = $[1];
122
+ props = $[2];
123
+ }
124
+ let t1;
125
+ if ($[3] !== className) {
126
+ t1 = cnState("rounded-sm underline-offset-4 transition-colors hover:text-foreground hover:underline focus-ring", className);
127
+ $[3] = className;
128
+ $[4] = t1;
129
+ } else t1 = $[4];
130
+ let t2;
131
+ if ($[5] !== props || $[6] !== t1) {
132
+ t2 = /* @__PURE__ */ jsx(LinkPart, {
133
+ "data-slot": "breadcrumb-link",
134
+ ...props,
135
+ className: t1
136
+ });
137
+ $[5] = props;
138
+ $[6] = t1;
139
+ $[7] = t2;
140
+ } else t2 = $[7];
141
+ return t2;
142
+ }
143
+ /** The page the user is on. It isn't a link. */
144
+ function BreadcrumbPage(t0) {
145
+ const $ = c(8);
146
+ let className;
147
+ let props;
148
+ if ($[0] !== t0) {
149
+ ({className, ...props} = t0);
150
+ $[0] = t0;
151
+ $[1] = className;
152
+ $[2] = props;
153
+ } else {
154
+ className = $[1];
155
+ props = $[2];
156
+ }
157
+ let t1;
158
+ if ($[3] !== className) {
159
+ t1 = cn("font-medium text-foreground", className);
160
+ $[3] = className;
161
+ $[4] = t1;
162
+ } else t1 = $[4];
163
+ let t2;
164
+ if ($[5] !== props || $[6] !== t1) {
165
+ t2 = /* @__PURE__ */ jsx("span", {
166
+ "data-slot": "breadcrumb-page",
167
+ "aria-current": "page",
168
+ className: t1,
169
+ ...props
170
+ });
171
+ $[5] = props;
172
+ $[6] = t1;
173
+ $[7] = t2;
174
+ } else t2 = $[7];
175
+ return t2;
176
+ }
177
+ /** Without children it shows a chevron that follows the reading direction. */
178
+ function BreadcrumbSeparator(t0) {
179
+ const $ = c(12);
180
+ let children;
181
+ let className;
182
+ let props;
183
+ if ($[0] !== t0) {
184
+ ({children, className, ...props} = t0);
185
+ $[0] = t0;
186
+ $[1] = children;
187
+ $[2] = className;
188
+ $[3] = props;
189
+ } else {
190
+ children = $[1];
191
+ className = $[2];
192
+ props = $[3];
193
+ }
194
+ let t1;
195
+ if ($[4] !== className) {
196
+ t1 = cn("[&>svg]:size-3.5", className);
197
+ $[4] = className;
198
+ $[5] = t1;
199
+ } else t1 = $[5];
200
+ let t2;
201
+ if ($[6] !== children) {
202
+ t2 = children ?? /* @__PURE__ */ jsx(Icon, {
203
+ icon: ArrowRight01Icon,
204
+ className: "rtl:rotate-180"
205
+ });
206
+ $[6] = children;
207
+ $[7] = t2;
208
+ } else t2 = $[7];
209
+ let t3;
210
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
211
+ t3 = /* @__PURE__ */ jsx("li", {
212
+ "data-slot": "breadcrumb-separator",
213
+ role: "presentation",
214
+ "aria-hidden": "true",
215
+ className: t1,
216
+ ...props,
217
+ children: t2
218
+ });
219
+ $[8] = props;
220
+ $[9] = t1;
221
+ $[10] = t2;
222
+ $[11] = t3;
223
+ } else t3 = $[11];
224
+ return t3;
225
+ }
226
+ /** Three dots for the levels left out. Put it in a `MenuTrigger` to list them. */
227
+ function BreadcrumbEllipsis(t0) {
228
+ const $ = c(13);
229
+ let className;
230
+ let props;
231
+ let t1;
232
+ if ($[0] !== t0) {
233
+ ({className, label: t1, ...props} = t0);
234
+ $[0] = t0;
235
+ $[1] = className;
236
+ $[2] = props;
237
+ $[3] = t1;
238
+ } else {
239
+ className = $[1];
240
+ props = $[2];
241
+ t1 = $[3];
242
+ }
243
+ const label = t1 === void 0 ? "More" : t1;
244
+ let t2;
245
+ if ($[4] !== className) {
246
+ t2 = cn("flex size-5 items-center justify-center [&>svg]:size-4", className);
247
+ $[4] = className;
248
+ $[5] = t2;
249
+ } else t2 = $[5];
250
+ let t3;
251
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
252
+ t3 = /* @__PURE__ */ jsx(Icon, { icon: MoreHorizontalIcon });
253
+ $[6] = t3;
254
+ } else t3 = $[6];
255
+ let t4;
256
+ if ($[7] !== label) {
257
+ t4 = /* @__PURE__ */ jsx("span", {
258
+ className: "sr-only",
259
+ children: label
260
+ });
261
+ $[7] = label;
262
+ $[8] = t4;
263
+ } else t4 = $[8];
264
+ let t5;
265
+ if ($[9] !== props || $[10] !== t2 || $[11] !== t4) {
266
+ t5 = /* @__PURE__ */ jsxs("span", {
267
+ "data-slot": "breadcrumb-ellipsis",
268
+ className: t2,
269
+ ...props,
270
+ children: [t3, t4]
271
+ });
272
+ $[9] = props;
273
+ $[10] = t2;
274
+ $[11] = t4;
275
+ $[12] = t5;
276
+ } else t5 = $[12];
277
+ return t5;
278
+ }
279
+ export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -0,0 +1,26 @@
1
+ import { index_d_exports } from "../../core/index.js";
2
+ import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { ComponentProps } from "react";
4
+ declare function BubbleGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
5
+ declare const bubbleVariants: (props?: ({
6
+ variant?: "default" | "destructive" | "ghost" | "muted" | "outline" | "secondary" | "tinted" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type BubbleProps = ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
9
+ /** `end` puts the bubble on the far side. Inside a `Message` with `align="end"` it follows the message. */
10
+ align?: "start" | "end";
11
+ };
12
+ declare function Bubble({ variant, align, className, ...props }: BubbleProps): import("react").JSX.Element;
13
+ type BubbleContentProps = index_d_exports.PartProps<"div">;
14
+ /**
15
+ * The bubble's surface and text. `render` makes it a link or a button, which
16
+ * then takes a hover fill and the focus ring.
17
+ */
18
+ declare function BubbleContent({ className, render, ...props }: BubbleContentProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
19
+ declare const bubbleReactionsVariants: (props?: ({
20
+ side?: "bottom" | "top" | null | undefined;
21
+ align?: "end" | "start" | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ type BubbleReactionsProps = ComponentProps<"div"> & VariantProps<typeof bubbleReactionsVariants>;
24
+ /** Reactions pinned to a corner of the bubble. */
25
+ declare function BubbleReactions({ side, align, className, ...props }: BubbleReactionsProps): import("react").JSX.Element;
26
+ export { Bubble, BubbleContent, type BubbleContentProps, BubbleGroup, type BubbleProps, BubbleReactions, type BubbleReactionsProps, bubbleVariants };
@@ -0,0 +1,173 @@
1
+ "use client";
2
+ import { core_exports } from "../../core/index.js";
3
+ import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx } from "react/jsx-runtime";
6
+ // src/components/bubble/bubble.tsx
7
+ function BubbleGroup(t0) {
8
+ const $ = c(8);
9
+ let className;
10
+ let props;
11
+ if ($[0] !== t0) {
12
+ ({className, ...props} = t0);
13
+ $[0] = t0;
14
+ $[1] = className;
15
+ $[2] = props;
16
+ } else {
17
+ className = $[1];
18
+ props = $[2];
19
+ }
20
+ let t1;
21
+ if ($[3] !== className) {
22
+ t1 = cn("flex min-w-0 flex-col gap-2", className);
23
+ $[3] = className;
24
+ $[4] = t1;
25
+ } else t1 = $[4];
26
+ let t2;
27
+ if ($[5] !== props || $[6] !== t1) {
28
+ t2 = /* @__PURE__ */ jsx("div", {
29
+ "data-slot": "bubble-group",
30
+ className: t1,
31
+ ...props
32
+ });
33
+ $[5] = props;
34
+ $[6] = t1;
35
+ $[7] = t2;
36
+ } else t2 = $[7];
37
+ return t2;
38
+ }
39
+ const bubbleVariants = cva("group/bubble relative flex w-fit max-w-[80%] min-w-0 flex-col gap-1 group-data-[align=end]/message:self-end data-[align=end]:self-end data-[variant=ghost]:max-w-full", {
40
+ variants: { variant: {
41
+ default: "*:data-[slot=bubble-content]:bg-primary *:data-[slot=bubble-content]:text-primary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-primary/80",
42
+ secondary: "*:data-[slot=bubble-content]:bg-secondary *:data-[slot=bubble-content]:text-secondary-foreground [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)]",
43
+ muted: "*:data-[slot=bubble-content]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[color-mix(in_oklch,var(--muted),var(--foreground)_5%)]",
44
+ tinted: "*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]",
45
+ outline: "*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a)]:border-input [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground",
46
+ ghost: "border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground",
47
+ destructive: "*:data-[slot=bubble-content]:bg-destructive/10 *:data-[slot=bubble-content]:text-destructive [&>[data-slot=bubble-content]:is(button,a):hover]:bg-destructive/20"
48
+ } },
49
+ defaultVariants: { variant: "default" }
50
+ });
51
+ function Bubble(t0) {
52
+ const $ = c(13);
53
+ let className;
54
+ let props;
55
+ let t1;
56
+ let variant;
57
+ if ($[0] !== t0) {
58
+ ({variant, align: t1, className, ...props} = t0);
59
+ $[0] = t0;
60
+ $[1] = className;
61
+ $[2] = props;
62
+ $[3] = t1;
63
+ $[4] = variant;
64
+ } else {
65
+ className = $[1];
66
+ props = $[2];
67
+ t1 = $[3];
68
+ variant = $[4];
69
+ }
70
+ const align = t1 === void 0 ? "start" : t1;
71
+ const t2 = variant ?? "default";
72
+ let t3;
73
+ if ($[5] !== className || $[6] !== variant) {
74
+ t3 = cn(bubbleVariants({ variant }), className);
75
+ $[5] = className;
76
+ $[6] = variant;
77
+ $[7] = t3;
78
+ } else t3 = $[7];
79
+ let t4;
80
+ if ($[8] !== align || $[9] !== props || $[10] !== t2 || $[11] !== t3) {
81
+ t4 = /* @__PURE__ */ jsx("div", {
82
+ "data-slot": "bubble",
83
+ "data-variant": t2,
84
+ "data-align": align,
85
+ className: t3,
86
+ ...props
87
+ });
88
+ $[8] = align;
89
+ $[9] = props;
90
+ $[10] = t2;
91
+ $[11] = t3;
92
+ $[12] = t4;
93
+ } else t4 = $[12];
94
+ return t4;
95
+ }
96
+ /**
97
+ * The bubble's surface and text. `render` makes it a link or a button, which
98
+ * then takes a hover fill and the focus ring.
99
+ */
100
+ function BubbleContent({ className, render, ...props }) {
101
+ return (0, core_exports.renderElement)("div", {
102
+ "data-slot": "bubble-content",
103
+ ...props,
104
+ className: cnState("w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-4 py-2.5 text-chat wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:focus-ring", className)
105
+ }, render);
106
+ }
107
+ const bubbleReactionsVariants = cva("absolute z-10 flex w-fit shrink-0 items-center justify-center gap-1 rounded-full bg-muted px-1.5 py-0.5 text-sm ring-3 ring-background has-[button]:p-0", {
108
+ variants: {
109
+ side: {
110
+ top: "top-0 -translate-y-3/4",
111
+ bottom: "bottom-0 translate-y-3/4"
112
+ },
113
+ align: {
114
+ start: "start-3",
115
+ end: "end-3"
116
+ }
117
+ },
118
+ defaultVariants: {
119
+ side: "bottom",
120
+ align: "end"
121
+ }
122
+ });
123
+ /** Reactions pinned to a corner of the bubble. */
124
+ function BubbleReactions(t0) {
125
+ const $ = c(14);
126
+ let align;
127
+ let className;
128
+ let props;
129
+ let side;
130
+ if ($[0] !== t0) {
131
+ ({side, align, className, ...props} = t0);
132
+ $[0] = t0;
133
+ $[1] = align;
134
+ $[2] = className;
135
+ $[3] = props;
136
+ $[4] = side;
137
+ } else {
138
+ align = $[1];
139
+ className = $[2];
140
+ props = $[3];
141
+ side = $[4];
142
+ }
143
+ const t1 = align ?? "end";
144
+ const t2 = side ?? "bottom";
145
+ let t3;
146
+ if ($[5] !== align || $[6] !== className || $[7] !== side) {
147
+ t3 = cn(bubbleReactionsVariants({
148
+ side,
149
+ align
150
+ }), className);
151
+ $[5] = align;
152
+ $[6] = className;
153
+ $[7] = side;
154
+ $[8] = t3;
155
+ } else t3 = $[8];
156
+ let t4;
157
+ if ($[9] !== props || $[10] !== t1 || $[11] !== t2 || $[12] !== t3) {
158
+ t4 = /* @__PURE__ */ jsx("div", {
159
+ "data-slot": "bubble-reactions",
160
+ "data-align": t1,
161
+ "data-side": t2,
162
+ className: t3,
163
+ ...props
164
+ });
165
+ $[9] = props;
166
+ $[10] = t1;
167
+ $[11] = t2;
168
+ $[12] = t3;
169
+ $[13] = t4;
170
+ } else t4 = $[13];
171
+ return t4;
172
+ }
173
+ export { Bubble, BubbleContent, BubbleGroup, BubbleReactions, bubbleVariants };
@@ -0,0 +1,18 @@
1
+ import { VariantProps } from "../../utilities/cn/index.js";
2
+ import { ComponentProps } from "react";
3
+ import { Button as Button$1 } from "@ui-sdk/react/button";
4
+ declare const buttonVariants: (props?: ({
5
+ variant?: "default" | "destructive" | "ghost" | "outline" | "secondary" | null | undefined;
6
+ size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type ButtonProps = ComponentProps<typeof Button$1> & VariantProps<typeof buttonVariants>;
9
+ declare function Button({ variant, size, className, ...props }: ButtonProps): import("react").JSX.Element;
10
+ /** The `variant` and `size` props of a part that looks like a button. */
11
+ type ButtonLook = VariantProps<typeof buttonVariants>;
12
+ /**
13
+ * Button classes for a part that is a button itself, like a dialog's trigger,
14
+ * when it's given a `variant` or a `size`. Rendering a `Button` into the part
15
+ * would show an agent two components with one name.
16
+ */
17
+ declare function buttonLook({ variant, size }: ButtonLook): string | undefined;
18
+ export { Button, type ButtonLook, type ButtonProps, buttonLook, buttonVariants };
@@ -0,0 +1,91 @@
1
+ "use client";
2
+ import { cnState, cva } from "../../utilities/cn/index.js";
3
+ import { c } from "react/compiler-runtime";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { Button as Button$1 } from "@ui-sdk/react/button";
6
+ // src/components/button/button.tsx
7
+ const buttonVariants = cva("inline-flex items-center justify-center gap-2 rounded-full font-medium whitespace-nowrap select-none press [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus-ring data-disabled:pointer-events-none data-disabled:opacity-50 data-pending:cursor-progress", {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
11
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/70",
12
+ outline: "border border-input bg-background text-foreground hover:bg-accent dark:bg-input/30 dark:hover:bg-accent",
13
+ ghost: "text-muted-foreground hover:bg-accent hover:text-foreground",
14
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85"
15
+ },
16
+ size: {
17
+ xs: "h-6 gap-1 px-2 text-xs",
18
+ sm: "h-7 gap-1.5 px-3 text-sm",
19
+ default: "h-9 px-4 text-sm",
20
+ lg: "h-11 px-5 text-base",
21
+ "icon-xs": "size-6",
22
+ "icon-sm": "size-7",
23
+ icon: "size-9",
24
+ "icon-lg": "size-11"
25
+ }
26
+ },
27
+ defaultVariants: {
28
+ variant: "default",
29
+ size: "default"
30
+ }
31
+ });
32
+ function Button(t0) {
33
+ const $ = c(14);
34
+ let className;
35
+ let props;
36
+ let size;
37
+ let variant;
38
+ if ($[0] !== t0) {
39
+ ({variant, size, className, ...props} = t0);
40
+ $[0] = t0;
41
+ $[1] = className;
42
+ $[2] = props;
43
+ $[3] = size;
44
+ $[4] = variant;
45
+ } else {
46
+ className = $[1];
47
+ props = $[2];
48
+ size = $[3];
49
+ variant = $[4];
50
+ }
51
+ const t1 = variant ?? "default";
52
+ const t2 = size ?? "default";
53
+ let t3;
54
+ if ($[5] !== className || $[6] !== size || $[7] !== variant) {
55
+ t3 = cnState(buttonVariants({
56
+ variant,
57
+ size
58
+ }), className);
59
+ $[5] = className;
60
+ $[6] = size;
61
+ $[7] = variant;
62
+ $[8] = t3;
63
+ } else t3 = $[8];
64
+ let t4;
65
+ if ($[9] !== props || $[10] !== t1 || $[11] !== t2 || $[12] !== t3) {
66
+ t4 = /* @__PURE__ */ jsx(Button$1, {
67
+ "data-variant": t1,
68
+ "data-size": t2,
69
+ className: t3,
70
+ ...props
71
+ });
72
+ $[9] = props;
73
+ $[10] = t1;
74
+ $[11] = t2;
75
+ $[12] = t3;
76
+ $[13] = t4;
77
+ } else t4 = $[13];
78
+ return t4;
79
+ }
80
+ /**
81
+ * Button classes for a part that is a button itself, like a dialog's trigger,
82
+ * when it's given a `variant` or a `size`. Rendering a `Button` into the part
83
+ * would show an agent two components with one name.
84
+ */
85
+ function buttonLook({ variant, size }) {
86
+ return variant || size ? buttonVariants({
87
+ variant,
88
+ size
89
+ }) : void 0;
90
+ }
91
+ export { Button, buttonLook, buttonVariants };
@@ -0,0 +1,15 @@
1
+ import { index_d_exports } from "../../core/index.js";
2
+ import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { Separator } from "../separator/separator.js";
4
+ import { ComponentProps } from "react";
5
+ declare const buttonGroupVariants: (props?: ({
6
+ orientation?: "horizontal" | "vertical" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ type ButtonGroupProps = index_d_exports.PartProps<"div"> & VariantProps<typeof buttonGroupVariants>;
9
+ /** Joins buttons, inputs and triggers into one box. Name it with `aria-label`. */
10
+ declare function ButtonGroup({ className, orientation, render, ...props }: ButtonGroupProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
11
+ /** Text or an icon that sits in the group like a button. `render` changes its element. */
12
+ declare function ButtonGroupText({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
+ /** A line between two items with no edge of their own, like filled buttons. */
14
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
15
+ export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };