@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,213 @@
1
+ "use client";
2
+ import { core_exports } from "../../core/index.js";
3
+ import { cn, cnState } from "../../utilities/cn/index.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx } from "react/jsx-runtime";
6
+ // src/components/card/card.tsx
7
+ function Card(t0) {
8
+ const $ = c(10);
9
+ let className;
10
+ let props;
11
+ let t1;
12
+ if ($[0] !== t0) {
13
+ ({className, size: t1, ...props} = t0);
14
+ $[0] = t0;
15
+ $[1] = className;
16
+ $[2] = props;
17
+ $[3] = t1;
18
+ } else {
19
+ className = $[1];
20
+ props = $[2];
21
+ t1 = $[3];
22
+ }
23
+ const size = t1 === void 0 ? "default" : t1;
24
+ let t2;
25
+ if ($[4] !== className) {
26
+ t2 = cn("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-border [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl", className);
27
+ $[4] = className;
28
+ $[5] = t2;
29
+ } else t2 = $[5];
30
+ let t3;
31
+ if ($[6] !== props || $[7] !== size || $[8] !== t2) {
32
+ t3 = /* @__PURE__ */ jsx("div", {
33
+ "data-slot": "card",
34
+ "data-size": size,
35
+ className: t2,
36
+ ...props
37
+ });
38
+ $[6] = props;
39
+ $[7] = size;
40
+ $[8] = t2;
41
+ $[9] = t3;
42
+ } else t3 = $[9];
43
+ return t3;
44
+ }
45
+ function CardHeader(t0) {
46
+ const $ = c(8);
47
+ let className;
48
+ let props;
49
+ if ($[0] !== t0) {
50
+ ({className, ...props} = t0);
51
+ $[0] = t0;
52
+ $[1] = className;
53
+ $[2] = props;
54
+ } else {
55
+ className = $[1];
56
+ props = $[2];
57
+ }
58
+ let t1;
59
+ if ($[3] !== className) {
60
+ t1 = cn("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)", className);
61
+ $[3] = className;
62
+ $[4] = t1;
63
+ } else t1 = $[4];
64
+ let t2;
65
+ if ($[5] !== props || $[6] !== t1) {
66
+ t2 = /* @__PURE__ */ jsx("div", {
67
+ "data-slot": "card-header",
68
+ className: t1,
69
+ ...props
70
+ });
71
+ $[5] = props;
72
+ $[6] = t1;
73
+ $[7] = t2;
74
+ } else t2 = $[7];
75
+ return t2;
76
+ }
77
+ /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
78
+ function CardTitle({ className, render, ...props }) {
79
+ return (0, core_exports.renderElement)("div", {
80
+ "data-slot": "card-title",
81
+ ...props,
82
+ className: cnState("text-heading-3 group-data-[size=sm]/card:text-heading-4", className)
83
+ }, render);
84
+ }
85
+ function CardDescription(t0) {
86
+ const $ = c(8);
87
+ let className;
88
+ let props;
89
+ if ($[0] !== t0) {
90
+ ({className, ...props} = t0);
91
+ $[0] = t0;
92
+ $[1] = className;
93
+ $[2] = props;
94
+ } else {
95
+ className = $[1];
96
+ props = $[2];
97
+ }
98
+ let t1;
99
+ if ($[3] !== className) {
100
+ t1 = cn("text-sm text-muted-foreground", className);
101
+ $[3] = className;
102
+ $[4] = t1;
103
+ } else t1 = $[4];
104
+ let t2;
105
+ if ($[5] !== props || $[6] !== t1) {
106
+ t2 = /* @__PURE__ */ jsx("div", {
107
+ "data-slot": "card-description",
108
+ className: t1,
109
+ ...props
110
+ });
111
+ $[5] = props;
112
+ $[6] = t1;
113
+ $[7] = t2;
114
+ } else t2 = $[7];
115
+ return t2;
116
+ }
117
+ function CardAction(t0) {
118
+ const $ = c(8);
119
+ let className;
120
+ let props;
121
+ if ($[0] !== t0) {
122
+ ({className, ...props} = t0);
123
+ $[0] = t0;
124
+ $[1] = className;
125
+ $[2] = props;
126
+ } else {
127
+ className = $[1];
128
+ props = $[2];
129
+ }
130
+ let t1;
131
+ if ($[3] !== className) {
132
+ t1 = cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className);
133
+ $[3] = className;
134
+ $[4] = t1;
135
+ } else t1 = $[4];
136
+ let t2;
137
+ if ($[5] !== props || $[6] !== t1) {
138
+ t2 = /* @__PURE__ */ jsx("div", {
139
+ "data-slot": "card-action",
140
+ className: t1,
141
+ ...props
142
+ });
143
+ $[5] = props;
144
+ $[6] = t1;
145
+ $[7] = t2;
146
+ } else t2 = $[7];
147
+ return t2;
148
+ }
149
+ function CardContent(t0) {
150
+ const $ = c(8);
151
+ let className;
152
+ let props;
153
+ if ($[0] !== t0) {
154
+ ({className, ...props} = t0);
155
+ $[0] = t0;
156
+ $[1] = className;
157
+ $[2] = props;
158
+ } else {
159
+ className = $[1];
160
+ props = $[2];
161
+ }
162
+ let t1;
163
+ if ($[3] !== className) {
164
+ t1 = cn("px-(--card-spacing)", className);
165
+ $[3] = className;
166
+ $[4] = t1;
167
+ } else t1 = $[4];
168
+ let t2;
169
+ if ($[5] !== props || $[6] !== t1) {
170
+ t2 = /* @__PURE__ */ jsx("div", {
171
+ "data-slot": "card-content",
172
+ className: t1,
173
+ ...props
174
+ });
175
+ $[5] = props;
176
+ $[6] = t1;
177
+ $[7] = t2;
178
+ } else t2 = $[7];
179
+ return t2;
180
+ }
181
+ function CardFooter(t0) {
182
+ const $ = c(8);
183
+ let className;
184
+ let props;
185
+ if ($[0] !== t0) {
186
+ ({className, ...props} = t0);
187
+ $[0] = t0;
188
+ $[1] = className;
189
+ $[2] = props;
190
+ } else {
191
+ className = $[1];
192
+ props = $[2];
193
+ }
194
+ let t1;
195
+ if ($[3] !== className) {
196
+ t1 = cn("flex items-center rounded-b-xl border-t p-(--card-spacing)", className);
197
+ $[3] = className;
198
+ $[4] = t1;
199
+ } else t1 = $[4];
200
+ let t2;
201
+ if ($[5] !== props || $[6] !== t1) {
202
+ t2 = /* @__PURE__ */ jsx("div", {
203
+ "data-slot": "card-footer",
204
+ className: t1,
205
+ ...props
206
+ });
207
+ $[5] = props;
208
+ $[6] = t1;
209
+ $[7] = t2;
210
+ } else t2 = $[7];
211
+ return t2;
212
+ }
213
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
@@ -0,0 +1,16 @@
1
+ import { ButtonLook } from "../button/button.js";
2
+ import { ComponentProps } from "react";
3
+ import { Carousel as Carousel$1, CarouselAlign, CarouselContent as CarouselContent$1, CarouselContentState, CarouselControlProps, CarouselController, CarouselIndicator as CarouselIndicator$1, CarouselIndicatorGroup as CarouselIndicatorGroup$1, CarouselIndicatorGroupState, CarouselIndicatorProps, CarouselIndicatorState, CarouselItem as CarouselItem$1, CarouselItemState, CarouselNext as CarouselNext$1, CarouselNextState, CarouselOptions, CarouselOrientation, CarouselPageChangeReason, CarouselPageOptions, CarouselPlayToggle as CarouselPlayToggle$1, CarouselPlayToggleState, CarouselPlayingChangeReason, CarouselPlayingOptions, CarouselPrevious as CarouselPrevious$1, CarouselPreviousState, CarouselSlidesPerPage, CarouselState, CarouselStepState, CarouselViewport as CarouselViewport$1, CarouselViewportState, createCarouselController } from "@ui-sdk/react/carousel";
4
+ declare function Carousel({ className, ...props }: ComponentProps<typeof Carousel$1>): import("react").JSX.Element;
5
+ declare function CarouselViewport({ className, ...props }: ComponentProps<typeof CarouselViewport$1>): import("react").JSX.Element;
6
+ declare function CarouselContent({ className, ...props }: ComponentProps<typeof CarouselContent$1>): import("react").JSX.Element;
7
+ declare function CarouselItem({ className, ...props }: ComponentProps<typeof CarouselItem$1>): import("react").JSX.Element;
8
+ type CarouselPreviousProps = ComponentProps<typeof CarouselPrevious$1> & ButtonLook;
9
+ declare function CarouselPrevious({ variant, size, className, children, ...props }: CarouselPreviousProps): import("react").JSX.Element;
10
+ type CarouselNextProps = ComponentProps<typeof CarouselNext$1> & ButtonLook;
11
+ declare function CarouselNext({ variant, size, className, children, ...props }: CarouselNextProps): import("react").JSX.Element;
12
+ declare function CarouselIndicatorGroup({ className, ...props }: ComponentProps<typeof CarouselIndicatorGroup$1>): import("react").JSX.Element;
13
+ declare function CarouselIndicator({ className, ...props }: ComponentProps<typeof CarouselIndicator$1>): import("react").JSX.Element;
14
+ type CarouselPlayToggleProps = ComponentProps<typeof CarouselPlayToggle$1> & ButtonLook;
15
+ declare function CarouselPlayToggle({ variant, size, className, ...props }: CarouselPlayToggleProps): import("react").JSX.Element;
16
+ export { Carousel, type CarouselAlign, CarouselContent, type CarouselContentState, type CarouselControlProps, type CarouselController, CarouselIndicator, CarouselIndicatorGroup, type CarouselIndicatorGroupState, type CarouselIndicatorProps, type CarouselIndicatorState, CarouselItem, type CarouselItemState, CarouselNext, type CarouselNextProps, type CarouselNextState, type CarouselOptions, type CarouselOrientation, type CarouselPageChangeReason, type CarouselPageOptions, CarouselPlayToggle, type CarouselPlayToggleProps, type CarouselPlayToggleState, type CarouselPlayingChangeReason, type CarouselPlayingOptions, CarouselPrevious, type CarouselPreviousProps, type CarouselPreviousState, type CarouselSlidesPerPage, type CarouselState, type CarouselStepState, CarouselViewport, type CarouselViewportState, createCarouselController };
@@ -0,0 +1,364 @@
1
+ "use client";
2
+ import { cnState } from "../../utilities/cn/index.js";
3
+ import { buttonLook } from "../button/button.js";
4
+ import { Icon } from "../icon/icon.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { ArrowLeft01Icon, ArrowRight01Icon } from "@hugeicons/core-free-icons";
8
+ import { Carousel as Carousel$1, CarouselContent as CarouselContent$1, CarouselIndicator as CarouselIndicator$1, CarouselIndicatorGroup as CarouselIndicatorGroup$1, CarouselItem as CarouselItem$1, CarouselNext as CarouselNext$1, CarouselPlayToggle as CarouselPlayToggle$1, CarouselPrevious as CarouselPrevious$1, CarouselViewport as CarouselViewport$1, createCarouselController } from "@ui-sdk/react/carousel";
9
+ // src/components/carousel/carousel.tsx
10
+ function Carousel(t0) {
11
+ const $ = c(8);
12
+ let className;
13
+ let props;
14
+ if ($[0] !== t0) {
15
+ ({className, ...props} = t0);
16
+ $[0] = t0;
17
+ $[1] = className;
18
+ $[2] = props;
19
+ } else {
20
+ className = $[1];
21
+ props = $[2];
22
+ }
23
+ let t1;
24
+ if ($[3] !== className) {
25
+ t1 = cnState("relative", className);
26
+ $[3] = className;
27
+ $[4] = t1;
28
+ } else t1 = $[4];
29
+ let t2;
30
+ if ($[5] !== props || $[6] !== t1) {
31
+ t2 = /* @__PURE__ */ jsx(Carousel$1, {
32
+ className: t1,
33
+ ...props
34
+ });
35
+ $[5] = props;
36
+ $[6] = t1;
37
+ $[7] = t2;
38
+ } else t2 = $[7];
39
+ return t2;
40
+ }
41
+ function CarouselViewport(t0) {
42
+ const $ = c(8);
43
+ let className;
44
+ let props;
45
+ if ($[0] !== t0) {
46
+ ({className, ...props} = t0);
47
+ $[0] = t0;
48
+ $[1] = className;
49
+ $[2] = props;
50
+ } else {
51
+ className = $[1];
52
+ props = $[2];
53
+ }
54
+ let t1;
55
+ if ($[3] !== className) {
56
+ t1 = cnState("no-scrollbar rounded-xl focus-ring", className);
57
+ $[3] = className;
58
+ $[4] = t1;
59
+ } else t1 = $[4];
60
+ let t2;
61
+ if ($[5] !== props || $[6] !== t1) {
62
+ t2 = /* @__PURE__ */ jsx(CarouselViewport$1, {
63
+ className: t1,
64
+ ...props
65
+ });
66
+ $[5] = props;
67
+ $[6] = t1;
68
+ $[7] = t2;
69
+ } else t2 = $[7];
70
+ return t2;
71
+ }
72
+ function CarouselContent(t0) {
73
+ const $ = c(8);
74
+ let className;
75
+ let props;
76
+ if ($[0] !== t0) {
77
+ ({className, ...props} = t0);
78
+ $[0] = t0;
79
+ $[1] = className;
80
+ $[2] = props;
81
+ } else {
82
+ className = $[1];
83
+ props = $[2];
84
+ }
85
+ let t1;
86
+ if ($[3] !== className) {
87
+ t1 = cnState("flex gap-4 data-[orientation=vertical]:flex-col", className);
88
+ $[3] = className;
89
+ $[4] = t1;
90
+ } else t1 = $[4];
91
+ let t2;
92
+ if ($[5] !== props || $[6] !== t1) {
93
+ t2 = /* @__PURE__ */ jsx(CarouselContent$1, {
94
+ className: t1,
95
+ ...props
96
+ });
97
+ $[5] = props;
98
+ $[6] = t1;
99
+ $[7] = t2;
100
+ } else t2 = $[7];
101
+ return t2;
102
+ }
103
+ function CarouselItem(t0) {
104
+ const $ = c(8);
105
+ let className;
106
+ let props;
107
+ if ($[0] !== t0) {
108
+ ({className, ...props} = t0);
109
+ $[0] = t0;
110
+ $[1] = className;
111
+ $[2] = props;
112
+ } else {
113
+ className = $[1];
114
+ props = $[2];
115
+ }
116
+ let t1;
117
+ if ($[3] !== className) {
118
+ t1 = cnState("min-h-0 min-w-0 shrink-0 grow-0 basis-full", className);
119
+ $[3] = className;
120
+ $[4] = t1;
121
+ } else t1 = $[4];
122
+ let t2;
123
+ if ($[5] !== props || $[6] !== t1) {
124
+ t2 = /* @__PURE__ */ jsx(CarouselItem$1, {
125
+ className: t1,
126
+ ...props
127
+ });
128
+ $[5] = props;
129
+ $[6] = t1;
130
+ $[7] = t2;
131
+ } else t2 = $[7];
132
+ return t2;
133
+ }
134
+ const stepClasses = "touch-manipulation rounded-full in-data-[slot=carousel]:absolute";
135
+ const stepIconClasses = "rtl:rotate-180 in-[[data-slot=carousel][data-orientation=vertical]]:rotate-90 rtl:in-[[data-slot=carousel][data-orientation=vertical]]:rotate-90";
136
+ function CarouselPrevious(t0) {
137
+ const $ = c(16);
138
+ let children;
139
+ let className;
140
+ let props;
141
+ let t1;
142
+ let t2;
143
+ if ($[0] !== t0) {
144
+ ({variant: t1, size: t2, className, children, ...props} = t0);
145
+ $[0] = t0;
146
+ $[1] = children;
147
+ $[2] = className;
148
+ $[3] = props;
149
+ $[4] = t1;
150
+ $[5] = t2;
151
+ } else {
152
+ children = $[1];
153
+ className = $[2];
154
+ props = $[3];
155
+ t1 = $[4];
156
+ t2 = $[5];
157
+ }
158
+ const variant = t1 === void 0 ? "outline" : t1;
159
+ const size = t2 === void 0 ? "icon-sm" : t2;
160
+ let t3;
161
+ if ($[6] !== className || $[7] !== size || $[8] !== variant) {
162
+ t3 = cnState([
163
+ buttonLook({
164
+ variant,
165
+ size
166
+ }),
167
+ stepClasses,
168
+ "in-[[data-slot=carousel][data-orientation=horizontal]]:inset-y-0 in-[[data-slot=carousel][data-orientation=horizontal]]:-start-12 in-[[data-slot=carousel][data-orientation=horizontal]]:my-auto in-[[data-slot=carousel][data-orientation=vertical]]:inset-x-0 in-[[data-slot=carousel][data-orientation=vertical]]:-top-12 in-[[data-slot=carousel][data-orientation=vertical]]:mx-auto"
169
+ ], className);
170
+ $[6] = className;
171
+ $[7] = size;
172
+ $[8] = variant;
173
+ $[9] = t3;
174
+ } else t3 = $[9];
175
+ let t4;
176
+ if ($[10] !== children) {
177
+ t4 = children ?? /* @__PURE__ */ jsx(Icon, {
178
+ icon: ArrowLeft01Icon,
179
+ className: stepIconClasses
180
+ });
181
+ $[10] = children;
182
+ $[11] = t4;
183
+ } else t4 = $[11];
184
+ let t5;
185
+ if ($[12] !== props || $[13] !== t3 || $[14] !== t4) {
186
+ t5 = /* @__PURE__ */ jsx(CarouselPrevious$1, {
187
+ className: t3,
188
+ ...props,
189
+ children: t4
190
+ });
191
+ $[12] = props;
192
+ $[13] = t3;
193
+ $[14] = t4;
194
+ $[15] = t5;
195
+ } else t5 = $[15];
196
+ return t5;
197
+ }
198
+ function CarouselNext(t0) {
199
+ const $ = c(16);
200
+ let children;
201
+ let className;
202
+ let props;
203
+ let t1;
204
+ let t2;
205
+ if ($[0] !== t0) {
206
+ ({variant: t1, size: t2, className, children, ...props} = t0);
207
+ $[0] = t0;
208
+ $[1] = children;
209
+ $[2] = className;
210
+ $[3] = props;
211
+ $[4] = t1;
212
+ $[5] = t2;
213
+ } else {
214
+ children = $[1];
215
+ className = $[2];
216
+ props = $[3];
217
+ t1 = $[4];
218
+ t2 = $[5];
219
+ }
220
+ const variant = t1 === void 0 ? "outline" : t1;
221
+ const size = t2 === void 0 ? "icon-sm" : t2;
222
+ let t3;
223
+ if ($[6] !== className || $[7] !== size || $[8] !== variant) {
224
+ t3 = cnState([
225
+ buttonLook({
226
+ variant,
227
+ size
228
+ }),
229
+ stepClasses,
230
+ "in-[[data-slot=carousel][data-orientation=horizontal]]:inset-y-0 in-[[data-slot=carousel][data-orientation=horizontal]]:-end-12 in-[[data-slot=carousel][data-orientation=horizontal]]:my-auto in-[[data-slot=carousel][data-orientation=vertical]]:inset-x-0 in-[[data-slot=carousel][data-orientation=vertical]]:-bottom-12 in-[[data-slot=carousel][data-orientation=vertical]]:mx-auto"
231
+ ], className);
232
+ $[6] = className;
233
+ $[7] = size;
234
+ $[8] = variant;
235
+ $[9] = t3;
236
+ } else t3 = $[9];
237
+ let t4;
238
+ if ($[10] !== children) {
239
+ t4 = children ?? /* @__PURE__ */ jsx(Icon, {
240
+ icon: ArrowRight01Icon,
241
+ className: stepIconClasses
242
+ });
243
+ $[10] = children;
244
+ $[11] = t4;
245
+ } else t4 = $[11];
246
+ let t5;
247
+ if ($[12] !== props || $[13] !== t3 || $[14] !== t4) {
248
+ t5 = /* @__PURE__ */ jsx(CarouselNext$1, {
249
+ className: t3,
250
+ ...props,
251
+ children: t4
252
+ });
253
+ $[12] = props;
254
+ $[13] = t3;
255
+ $[14] = t4;
256
+ $[15] = t5;
257
+ } else t5 = $[15];
258
+ return t5;
259
+ }
260
+ function CarouselIndicatorGroup(t0) {
261
+ const $ = c(8);
262
+ let className;
263
+ let props;
264
+ if ($[0] !== t0) {
265
+ ({className, ...props} = t0);
266
+ $[0] = t0;
267
+ $[1] = className;
268
+ $[2] = props;
269
+ } else {
270
+ className = $[1];
271
+ props = $[2];
272
+ }
273
+ let t1;
274
+ if ($[3] !== className) {
275
+ t1 = cnState("flex items-center justify-center gap-1", className);
276
+ $[3] = className;
277
+ $[4] = t1;
278
+ } else t1 = $[4];
279
+ let t2;
280
+ if ($[5] !== props || $[6] !== t1) {
281
+ t2 = /* @__PURE__ */ jsx(CarouselIndicatorGroup$1, {
282
+ className: t1,
283
+ ...props
284
+ });
285
+ $[5] = props;
286
+ $[6] = t1;
287
+ $[7] = t2;
288
+ } else t2 = $[7];
289
+ return t2;
290
+ }
291
+ function CarouselIndicator(t0) {
292
+ const $ = c(8);
293
+ let className;
294
+ let props;
295
+ if ($[0] !== t0) {
296
+ ({className, ...props} = t0);
297
+ $[0] = t0;
298
+ $[1] = className;
299
+ $[2] = props;
300
+ } else {
301
+ className = $[1];
302
+ props = $[2];
303
+ }
304
+ let t1;
305
+ if ($[3] !== className) {
306
+ t1 = cnState("inline-flex h-6 min-w-4 items-center justify-center rounded-full text-sm focus-ring empty:after:h-2 empty:after:w-2 empty:after:rounded-full empty:after:bg-input empty:after:transition-[width,background-color] empty:data-selected:after:w-5 empty:data-selected:after:bg-primary", className);
307
+ $[3] = className;
308
+ $[4] = t1;
309
+ } else t1 = $[4];
310
+ let t2;
311
+ if ($[5] !== props || $[6] !== t1) {
312
+ t2 = /* @__PURE__ */ jsx(CarouselIndicator$1, {
313
+ className: t1,
314
+ ...props
315
+ });
316
+ $[5] = props;
317
+ $[6] = t1;
318
+ $[7] = t2;
319
+ } else t2 = $[7];
320
+ return t2;
321
+ }
322
+ function CarouselPlayToggle(t0) {
323
+ const $ = c(12);
324
+ let className;
325
+ let props;
326
+ let size;
327
+ let variant;
328
+ if ($[0] !== t0) {
329
+ ({variant, size, className, ...props} = t0);
330
+ $[0] = t0;
331
+ $[1] = className;
332
+ $[2] = props;
333
+ $[3] = size;
334
+ $[4] = variant;
335
+ } else {
336
+ className = $[1];
337
+ props = $[2];
338
+ size = $[3];
339
+ variant = $[4];
340
+ }
341
+ let t1;
342
+ if ($[5] !== className || $[6] !== size || $[7] !== variant) {
343
+ t1 = cnState(buttonLook({
344
+ variant,
345
+ size
346
+ }), className);
347
+ $[5] = className;
348
+ $[6] = size;
349
+ $[7] = variant;
350
+ $[8] = t1;
351
+ } else t1 = $[8];
352
+ let t2;
353
+ if ($[9] !== props || $[10] !== t1) {
354
+ t2 = /* @__PURE__ */ jsx(CarouselPlayToggle$1, {
355
+ className: t1,
356
+ ...props
357
+ });
358
+ $[9] = props;
359
+ $[10] = t1;
360
+ $[11] = t2;
361
+ } else t2 = $[11];
362
+ return t2;
363
+ }
364
+ export { Carousel, CarouselContent, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselNext, CarouselPlayToggle, CarouselPrevious, CarouselViewport, createCarouselController };
@@ -0,0 +1,72 @@
1
+ import { BadgeProps } from "../badge/badge.js";
2
+ import { TraceCollapsibleContent, TraceCollapsibleProps, TraceCollapsibleTrigger } from "../trace/trace.js";
3
+ import { ComponentProps, ReactNode } from "react";
4
+ /** Where the chain is: still taking steps, done, or done with a step that failed. */
5
+ type ChainOfThoughtStatus = "active" | "complete" | "error";
6
+ /** Where a step is. `pending` is one that hasn't started. */
7
+ type ChainOfThoughtStepStatus = "active" | "complete" | "pending" | "error";
8
+ type ChainOfThoughtContextValue = {
9
+ status: ChainOfThoughtStatus;
10
+ isOpen: boolean;
11
+ /** Opens or closes the summary, as the person's choice: it stops following `status`. */
12
+ setIsOpen: (open: boolean) => void;
13
+ };
14
+ /** What `ChainOfThought` shares with its parts. Call it inside a `ChainOfThought`. */
15
+ declare function useChainOfThought(): ChainOfThoughtContextValue;
16
+ type ChainOfThoughtProps = Omit<TraceCollapsibleProps, "className" | "children"> & {
17
+ /** `active` while the agent takes steps: the summary shimmers and stays open. `error` turns it destructive. */
18
+ status?: ChainOfThoughtStatus;
19
+ className?: string;
20
+ children?: ReactNode;
21
+ };
22
+ /**
23
+ * A summary line and the steps under it: a `ChainOfThoughtHeader` and a
24
+ * `ChainOfThoughtContent`. It is open while `status` is `active` and closes
25
+ * when the steps end, until the person opens or closes it; from then on their
26
+ * choice stays. It takes Collapsible's props.
27
+ */
28
+ declare function ChainOfThought({ status, open, defaultOpen, onOpenChange, className, children, ...props }: ChainOfThoughtProps): import("react").JSX.Element;
29
+ type ChainOfThoughtHeaderProps = ComponentProps<typeof TraceCollapsibleTrigger> & {
30
+ /** Replaces the icon the header draws for the chain's status. */
31
+ icon?: ReactNode;
32
+ };
33
+ /**
34
+ * The summary line, like "Researched in 3 steps". Its children are the title,
35
+ * "Chain of Thought" by default.
36
+ */
37
+ declare function ChainOfThoughtHeader({ icon, children, ...props }: ChainOfThoughtHeaderProps): import("react").JSX.Element;
38
+ type ChainOfThoughtContentProps = ComponentProps<typeof TraceCollapsibleContent>;
39
+ /**
40
+ * The steps, in a Trace of their own. It stays mounted while closed, so a step
41
+ * the person opened is still open when the summary opens again.
42
+ */
43
+ declare function ChainOfThoughtContent({ children, ...props }: ChainOfThoughtContentProps): import("react").JSX.Element;
44
+ type ChainOfThoughtStepProps = Pick<TraceCollapsibleProps, "open" | "defaultOpen" | "onOpenChange" | "controller"> & {
45
+ /** Replaces the icon the step draws for its status. */
46
+ icon?: ReactNode;
47
+ /** What the step did, like "Searched the web for image cache keys". */
48
+ label: ReactNode;
49
+ /** What follows the label: a duration, a count. */
50
+ description?: ReactNode;
51
+ /** `active` shimmers the label and announces it, `error` turns the step destructive, `pending` dims its icon. */
52
+ status?: ChainOfThoughtStepStatus;
53
+ /** Goes on the step's line. */
54
+ className?: string;
55
+ /** The step's detail. With it the step is a line that opens; with none, a plain line. */
56
+ children?: ReactNode;
57
+ };
58
+ /** One step: a line, and a collapsible when it has detail to show. */
59
+ declare function ChainOfThoughtStep({ icon, label, description, status, className, children, ...props }: ChainOfThoughtStepProps): import("react").JSX.Element;
60
+ type ChainOfThoughtSearchResultsProps = ComponentProps<"div">;
61
+ /** A wrapping row of `ChainOfThoughtSearchResult`, as a step's detail. */
62
+ declare function ChainOfThoughtSearchResults({ className, ...props }: ChainOfThoughtSearchResultsProps): import("react").JSX.Element;
63
+ type ChainOfThoughtSearchResultProps = BadgeProps;
64
+ /** One thing a step found, like a hostname or a file, as a secondary Badge. */
65
+ declare function ChainOfThoughtSearchResult({ variant, ...props }: ChainOfThoughtSearchResultProps): import("react").JSX.Element;
66
+ type ChainOfThoughtImageProps = ComponentProps<"div"> & {
67
+ /** A line under the image. */
68
+ caption?: ReactNode;
69
+ };
70
+ /** An image a step produced or looked at, on a muted box, with an optional caption. */
71
+ declare function ChainOfThoughtImage({ className, children, caption, ...props }: ChainOfThoughtImageProps): import("react").JSX.Element;
72
+ export { ChainOfThought, ChainOfThoughtContent, type ChainOfThoughtContentProps, type ChainOfThoughtContextValue, ChainOfThoughtHeader, type ChainOfThoughtHeaderProps, ChainOfThoughtImage, type ChainOfThoughtImageProps, type ChainOfThoughtProps, ChainOfThoughtSearchResult, type ChainOfThoughtSearchResultProps, ChainOfThoughtSearchResults, type ChainOfThoughtSearchResultsProps, type ChainOfThoughtStatus, ChainOfThoughtStep, type ChainOfThoughtStepProps, type ChainOfThoughtStepStatus, useChainOfThought };