@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,27 @@
1
+ import { ChangeDetails } from "../../core/ui-sdk.js";
2
+ import "../../core/index.js";
3
+ import { ComponentProps } from "react";
4
+ type NativeSelectOptions = {
5
+ value?: string;
6
+ defaultValue?: string;
7
+ onValueChange?: (value: string, details: ChangeDetails<"input-change" | "imperative">) => void;
8
+ };
9
+ type NativeSelectProps = Omit<ComponentProps<"select">, "size" | "multiple" | "value" | "defaultValue"> & {
10
+ size?: "sm" | "default";
11
+ value?: string;
12
+ defaultValue?: string;
13
+ /**
14
+ * Runs when a person or an agent changes the value. `details.source` says
15
+ * who, and `details.cancel()` refuses it. `onChange` still works as on any
16
+ * `<select>`, and runs first.
17
+ */
18
+ onValueChange?: NativeSelectOptions["onValueChange"];
19
+ };
20
+ /**
21
+ * The browser's own `<select>`, with the look of abby's `Input`. Name it with
22
+ * a `FieldLabel` or `aria-label`. `className` goes to the wrapper.
23
+ */
24
+ declare function NativeSelect({ className, size, value, defaultValue, onValueChange, ...props }: NativeSelectProps): import("react").JSX.Element;
25
+ declare function NativeSelectOption({ className, ...props }: ComponentProps<"option">): import("react").JSX.Element;
26
+ declare function NativeSelectOptGroup({ className, ...props }: ComponentProps<"optgroup">): import("react").JSX.Element;
27
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NativeSelectProps };
@@ -0,0 +1,226 @@
1
+ "use client";
2
+ import { createChange, definePrimitive } from "../../core/ui-sdk.js";
3
+ import { core_exports } from "../../core/index.js";
4
+ import { cn } from "../../utilities/cn/index.js";
5
+ import { Icon } from "../icon/icon.js";
6
+ import { inputClasses } from "../input/input.js";
7
+ import { c } from "react/compiler-runtime";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
10
+ import { useFieldControl } from "@ui-sdk/react/field";
11
+ // src/components/native-select/native-select.tsx
12
+ const enabledOptions = (el) => Array.from(el.options).filter((option) => !option.disabled && !option.closest("optgroup:disabled"));
13
+ /**
14
+ * Not exported: its inferred type names ui-sdk types that aren't public, so
15
+ * the declaration build can't describe it from another module.
16
+ *
17
+ * The browser owns the select's behavior. This mirrors its value, reports
18
+ * each change and lets an agent choose an option, which a bare `<select>`
19
+ * can't offer.
20
+ */
21
+ const nativeSelect = definePrimitive({
22
+ name: "native-select",
23
+ options: {
24
+ value: "string",
25
+ defaultValue: "string",
26
+ onValueChange: "callback"
27
+ },
28
+ controlled: ["value"],
29
+ state: (options) => ({ value: options.value ?? options.defaultValue ?? "" }),
30
+ sync: (options) => options.value === void 0 ? {} : { value: options.value },
31
+ api: (context) => {
32
+ const change = createChange(context);
33
+ const select = () => context.element("root");
34
+ let applying = false;
35
+ return {
36
+ setValue(value) {
37
+ const el = select();
38
+ if (!el || el.disabled || !enabledOptions(el).some((option) => option.value === value)) return;
39
+ if (el.value === value || !change("value", value, { reason: "imperative" })) return;
40
+ applying = true;
41
+ el.value = value;
42
+ el.dispatchEvent(new Event("input", { bubbles: true }));
43
+ el.dispatchEvent(new Event("change", { bubbles: true }));
44
+ applying = false;
45
+ },
46
+ changed(event) {
47
+ const el = select();
48
+ if (!el || applying || el.value === context.store.get().value) return;
49
+ if (!change("value", el.value, {
50
+ reason: "input-change",
51
+ event
52
+ })) el.value = context.store.get().value;
53
+ },
54
+ read() {
55
+ const el = select();
56
+ if (!el || context.options().value !== void 0) return;
57
+ if (el.value !== context.store.get().value) context.store.set({ value: el.value });
58
+ },
59
+ items: () => {
60
+ const el = select();
61
+ return el ? enabledOptions(el).map((option) => ({
62
+ value: option.value,
63
+ label: option.label
64
+ })) : [];
65
+ }
66
+ };
67
+ },
68
+ slots: (slot) => ({ root: slot({
69
+ on: { change: (event, { api }) => api.changed(event) },
70
+ bind: (el, part) => {
71
+ const select = el;
72
+ part.api.read();
73
+ const observer = new MutationObserver(() => part.api.read());
74
+ observer.observe(select, {
75
+ childList: true,
76
+ subtree: true
77
+ });
78
+ const reset = (event) => {
79
+ if (event.target === select.form) setTimeout(() => part.api.read());
80
+ };
81
+ select.ownerDocument.addEventListener("reset", reset);
82
+ return () => {
83
+ observer.disconnect();
84
+ select.ownerDocument.removeEventListener("reset", reset);
85
+ };
86
+ }
87
+ }) }),
88
+ agent: {
89
+ actions: ["setValue"],
90
+ closed: true,
91
+ items: (api) => api.items()
92
+ }
93
+ });
94
+ const noop = () => {};
95
+ /**
96
+ * The browser's own `<select>`, with the look of abby's `Input`. Name it with
97
+ * a `FieldLabel` or `aria-label`. `className` goes to the wrapper.
98
+ */
99
+ function NativeSelect(t0) {
100
+ const $ = c(12);
101
+ const { className, size: t1, value, defaultValue, onValueChange, ...props } = t0;
102
+ const size = t1 === void 0 ? "default" : t1;
103
+ const field = useFieldControl();
104
+ let t2;
105
+ if ($[0] !== defaultValue || $[1] !== onValueChange || $[2] !== value) {
106
+ t2 = {
107
+ value,
108
+ defaultValue,
109
+ onValueChange
110
+ };
111
+ $[0] = defaultValue;
112
+ $[1] = onValueChange;
113
+ $[2] = value;
114
+ $[3] = t2;
115
+ } else t2 = $[3];
116
+ const handle = (0, core_exports.usePrimitive)(nativeSelect, t2);
117
+ const own = {
118
+ name: field?.name,
119
+ onChange: value === void 0 ? void 0 : noop,
120
+ ...props,
121
+ value,
122
+ defaultValue,
123
+ "data-size": size,
124
+ className: cn(inputClasses, "peer appearance-none pe-8 select-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 data-[size=sm]:h-7 data-[size=sm]:py-0.5")
125
+ };
126
+ let t3;
127
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
128
+ t3 = {};
129
+ $[4] = t3;
130
+ } else t3 = $[4];
131
+ const select = (0, core_exports.usePart)(handle, "root", t3, field ? field.props(own) : own, "select");
132
+ let t4;
133
+ if ($[5] !== className) {
134
+ t4 = cn("group/native-select relative w-full", className);
135
+ $[5] = className;
136
+ $[6] = t4;
137
+ } else t4 = $[6];
138
+ let t5;
139
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
140
+ t5 = /* @__PURE__ */ jsx(Icon, {
141
+ icon: ArrowDown01Icon,
142
+ "data-slot": "native-select-icon",
143
+ className: "pointer-events-none absolute end-3 top-1/2 -translate-y-1/2 text-muted-foreground select-none peer-disabled:opacity-50"
144
+ });
145
+ $[7] = t5;
146
+ } else t5 = $[7];
147
+ let t6;
148
+ if ($[8] !== select || $[9] !== size || $[10] !== t4) {
149
+ t6 = /* @__PURE__ */ jsxs("div", {
150
+ "data-slot": "native-select-wrapper",
151
+ "data-size": size,
152
+ className: t4,
153
+ children: [select, t5]
154
+ });
155
+ $[8] = select;
156
+ $[9] = size;
157
+ $[10] = t4;
158
+ $[11] = t6;
159
+ } else t6 = $[11];
160
+ return t6;
161
+ }
162
+ function NativeSelectOption(t0) {
163
+ const $ = c(8);
164
+ let className;
165
+ let props;
166
+ if ($[0] !== t0) {
167
+ ({className, ...props} = t0);
168
+ $[0] = t0;
169
+ $[1] = className;
170
+ $[2] = props;
171
+ } else {
172
+ className = $[1];
173
+ props = $[2];
174
+ }
175
+ let t1;
176
+ if ($[3] !== className) {
177
+ t1 = cn("bg-popover text-popover-foreground", className);
178
+ $[3] = className;
179
+ $[4] = t1;
180
+ } else t1 = $[4];
181
+ let t2;
182
+ if ($[5] !== props || $[6] !== t1) {
183
+ t2 = /* @__PURE__ */ jsx("option", {
184
+ "data-slot": "native-select-option",
185
+ className: t1,
186
+ ...props
187
+ });
188
+ $[5] = props;
189
+ $[6] = t1;
190
+ $[7] = t2;
191
+ } else t2 = $[7];
192
+ return t2;
193
+ }
194
+ function NativeSelectOptGroup(t0) {
195
+ const $ = c(8);
196
+ let className;
197
+ let props;
198
+ if ($[0] !== t0) {
199
+ ({className, ...props} = t0);
200
+ $[0] = t0;
201
+ $[1] = className;
202
+ $[2] = props;
203
+ } else {
204
+ className = $[1];
205
+ props = $[2];
206
+ }
207
+ let t1;
208
+ if ($[3] !== className) {
209
+ t1 = cn("bg-popover text-popover-foreground", className);
210
+ $[3] = className;
211
+ $[4] = t1;
212
+ } else t1 = $[4];
213
+ let t2;
214
+ if ($[5] !== props || $[6] !== t1) {
215
+ t2 = /* @__PURE__ */ jsx("optgroup", {
216
+ "data-slot": "native-select-optgroup",
217
+ className: t1,
218
+ ...props
219
+ });
220
+ $[5] = props;
221
+ $[6] = t1;
222
+ $[7] = t2;
223
+ } else t2 = $[7];
224
+ return t2;
225
+ }
226
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
@@ -0,0 +1,29 @@
1
+ import { ButtonLook } from "../button/button.js";
2
+ import { ComponentProps } from "react";
3
+ import { NavigationMenuChangeOptions, NavigationMenuContent as NavigationMenuContent$1, NavigationMenuController, NavigationMenuIndicator as NavigationMenuIndicator$1, NavigationMenuItem as NavigationMenuItem$1, NavigationMenuLink as NavigationMenuLink$1, NavigationMenuLinkIcon as NavigationMenuLinkIcon$1, NavigationMenuList as NavigationMenuList$1, NavigationMenuMotion, NavigationMenuProps, NavigationMenuTrigger as NavigationMenuTrigger$1, NavigationMenuViewport as NavigationMenuViewport$1, createNavigationMenuController } from "@ui-sdk/react/navigation-menu";
4
+ /** Name it with `aria-label`. */
5
+ declare function NavigationMenu<T extends string = string>({ className, ...props }: NavigationMenuProps<T>): import("react").JSX.Element;
6
+ declare function NavigationMenuList({ className, ...props }: ComponentProps<typeof NavigationMenuList$1>): import("react").JSX.Element;
7
+ declare function NavigationMenuItem(props: ComponentProps<typeof NavigationMenuItem$1>): import("react").JSX.Element;
8
+ type NavigationMenuTriggerProps = ComponentProps<typeof NavigationMenuTrigger$1> & ButtonLook;
9
+ /**
10
+ * A ghost button. End its children with an `Icon`, like a chevron: in a
11
+ * horizontal menu it turns over while the panel is open.
12
+ */
13
+ declare function NavigationMenuTrigger({ variant, size, className, ...props }: NavigationMenuTriggerProps): import("react").JSX.Element;
14
+ /**
15
+ * Inside a `NavigationMenuViewport` it is the open panel, and the viewport
16
+ * takes its size. Without one it is a popup of its own, under its trigger.
17
+ */
18
+ declare function NavigationMenuContent({ className, sideOffset, ...props }: ComponentProps<typeof NavigationMenuContent$1>): import("react").JSX.Element;
19
+ /**
20
+ * At the top level it looks like a trigger. In a content it is a row: a title
21
+ * over a description, or a `NavigationMenuLinkIcon` beside its text.
22
+ */
23
+ declare function NavigationMenuLink({ className, ...props }: ComponentProps<typeof NavigationMenuLink$1>): import("react").JSX.Element;
24
+ declare function NavigationMenuLinkIcon({ className, ...props }: ComponentProps<typeof NavigationMenuLinkIcon$1>): import("react").JSX.Element;
25
+ /** The popup that holds the open content, and follows its size and its trigger. */
26
+ declare function NavigationMenuViewport({ className, sideOffset, ...props }: ComponentProps<typeof NavigationMenuViewport$1>): import("react").JSX.Element;
27
+ /** A line under the open trigger or the current page's link, beside it in a vertical menu. */
28
+ declare function NavigationMenuIndicator({ className, ...props }: ComponentProps<typeof NavigationMenuIndicator$1>): import("react").JSX.Element;
29
+ export { NavigationMenu, type NavigationMenuChangeOptions, NavigationMenuContent, type NavigationMenuController, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkIcon, NavigationMenuList, type NavigationMenuMotion, type NavigationMenuProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, createNavigationMenuController };
@@ -0,0 +1,318 @@
1
+ "use client";
2
+ import { cnState } from "../../utilities/cn/index.js";
3
+ import { buttonLook } from "../button/button.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx } from "react/jsx-runtime";
6
+ import { NavigationMenu as NavigationMenu$1, NavigationMenuContent as NavigationMenuContent$1, NavigationMenuIndicator as NavigationMenuIndicator$1, NavigationMenuItem as NavigationMenuItem$1, NavigationMenuLink as NavigationMenuLink$1, NavigationMenuLinkIcon as NavigationMenuLinkIcon$1, NavigationMenuList as NavigationMenuList$1, NavigationMenuTrigger as NavigationMenuTrigger$1, NavigationMenuViewport as NavigationMenuViewport$1, createNavigationMenuController } from "@ui-sdk/react/navigation-menu";
7
+ // src/components/navigation-menu/navigation-menu.tsx
8
+ /** Name it with `aria-label`. */
9
+ function NavigationMenu(t0) {
10
+ const $ = c(8);
11
+ let className;
12
+ let props;
13
+ if ($[0] !== t0) {
14
+ ({className, ...props} = t0);
15
+ $[0] = t0;
16
+ $[1] = className;
17
+ $[2] = props;
18
+ } else {
19
+ className = $[1];
20
+ props = $[2];
21
+ }
22
+ let t1;
23
+ if ($[3] !== className) {
24
+ t1 = cnState("relative flex max-w-max items-center", className);
25
+ $[3] = className;
26
+ $[4] = t1;
27
+ } else t1 = $[4];
28
+ let t2;
29
+ if ($[5] !== props || $[6] !== t1) {
30
+ t2 = /* @__PURE__ */ jsx(NavigationMenu$1, {
31
+ className: t1,
32
+ ...props
33
+ });
34
+ $[5] = props;
35
+ $[6] = t1;
36
+ $[7] = t2;
37
+ } else t2 = $[7];
38
+ return t2;
39
+ }
40
+ function NavigationMenuList(t0) {
41
+ const $ = c(8);
42
+ let className;
43
+ let props;
44
+ if ($[0] !== t0) {
45
+ ({className, ...props} = t0);
46
+ $[0] = t0;
47
+ $[1] = className;
48
+ $[2] = props;
49
+ } else {
50
+ className = $[1];
51
+ props = $[2];
52
+ }
53
+ let t1;
54
+ if ($[3] !== className) {
55
+ t1 = cnState("flex list-none items-center gap-1 data-[orientation=horizontal]:flex-wrap data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch", className);
56
+ $[3] = className;
57
+ $[4] = t1;
58
+ } else t1 = $[4];
59
+ let t2;
60
+ if ($[5] !== props || $[6] !== t1) {
61
+ t2 = /* @__PURE__ */ jsx(NavigationMenuList$1, {
62
+ className: t1,
63
+ ...props
64
+ });
65
+ $[5] = props;
66
+ $[6] = t1;
67
+ $[7] = t2;
68
+ } else t2 = $[7];
69
+ return t2;
70
+ }
71
+ function NavigationMenuItem(props) {
72
+ const $ = c(2);
73
+ let t0;
74
+ if ($[0] !== props) {
75
+ t0 = /* @__PURE__ */ jsx(NavigationMenuItem$1, { ...props });
76
+ $[0] = props;
77
+ $[1] = t0;
78
+ } else t0 = $[1];
79
+ return t0;
80
+ }
81
+ /**
82
+ * A ghost button. End its children with an `Icon`, like a chevron: in a
83
+ * horizontal menu it turns over while the panel is open.
84
+ */
85
+ function NavigationMenuTrigger(t0) {
86
+ const $ = c(12);
87
+ let className;
88
+ let props;
89
+ let t1;
90
+ let t2;
91
+ if ($[0] !== t0) {
92
+ ({variant: t1, size: t2, className, ...props} = t0);
93
+ $[0] = t0;
94
+ $[1] = className;
95
+ $[2] = props;
96
+ $[3] = t1;
97
+ $[4] = t2;
98
+ } else {
99
+ className = $[1];
100
+ props = $[2];
101
+ t1 = $[3];
102
+ t2 = $[4];
103
+ }
104
+ const variant = t1 === void 0 ? "ghost" : t1;
105
+ const size = t2 === void 0 ? "default" : t2;
106
+ let t3;
107
+ if ($[5] !== className || $[6] !== size || $[7] !== variant) {
108
+ t3 = cnState([
109
+ buttonLook({
110
+ variant,
111
+ size
112
+ }),
113
+ "w-full justify-between gap-1 data-open:bg-accent data-open:ring-1 data-open:ring-input data-open:ring-inset [&>svg:last-child]:text-muted-foreground [&>svg:last-child]:transition-transform [&>svg:last-child]:duration-popup [&>svg:last-child]:ease-out motion-reduce:[&>svg:last-child]:transition-none",
114
+ "[[data-orientation=horizontal]>*>&[data-open]>svg:last-child]:rotate-180"
115
+ ], className);
116
+ $[5] = className;
117
+ $[6] = size;
118
+ $[7] = variant;
119
+ $[8] = t3;
120
+ } else t3 = $[8];
121
+ let t4;
122
+ if ($[9] !== props || $[10] !== t3) {
123
+ t4 = /* @__PURE__ */ jsx(NavigationMenuTrigger$1, {
124
+ className: t3,
125
+ ...props
126
+ });
127
+ $[9] = props;
128
+ $[10] = t3;
129
+ $[11] = t4;
130
+ } else t4 = $[11];
131
+ return t4;
132
+ }
133
+ /**
134
+ * Inside a `NavigationMenuViewport` it is the open panel, and the viewport
135
+ * takes its size. Without one it is a popup of its own, under its trigger.
136
+ */
137
+ function NavigationMenuContent(t0) {
138
+ const $ = c(10);
139
+ let className;
140
+ let props;
141
+ let t1;
142
+ if ($[0] !== t0) {
143
+ ({className, sideOffset: t1, ...props} = t0);
144
+ $[0] = t0;
145
+ $[1] = className;
146
+ $[2] = props;
147
+ $[3] = t1;
148
+ } else {
149
+ className = $[1];
150
+ props = $[2];
151
+ t1 = $[3];
152
+ }
153
+ const sideOffset = t1 === void 0 ? 8 : t1;
154
+ let t2;
155
+ if ($[4] !== className) {
156
+ t2 = cnState(["absolute start-0 top-0 max-h-(--panel-height) w-max max-w-[calc(100vw-1rem)] overflow-y-auto p-1 text-sm outline-none transition-[opacity,translate] duration-popup ease-out [--slide:--spacing(12)] motion-reduce:transition-none rtl:[--slide:calc(--spacing(12)*-1)] data-closed:opacity-0 data-starting-style:opacity-0 data-[motion=from-end]:data-starting-style:translate-x-(--slide) data-[motion=from-start]:data-starting-style:translate-x-[calc(var(--slide)*-1)] data-[motion=to-end]:data-closed:translate-x-(--slide) data-[motion=to-start]:data-closed:translate-x-[calc(var(--slide)*-1)]", "[&[popover]]:popup-motion [&[popover]]:max-h-(--available-height) [&[popover]]:origin-(--transform-origin) [&[popover]]:rounded-xl [&[popover]]:popup-surface [&[popover]]:data-closed:scale-95 [&[popover]]:data-starting-style:scale-95"], className);
157
+ $[4] = className;
158
+ $[5] = t2;
159
+ } else t2 = $[5];
160
+ let t3;
161
+ if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
162
+ t3 = /* @__PURE__ */ jsx(NavigationMenuContent$1, {
163
+ sideOffset,
164
+ className: t2,
165
+ ...props
166
+ });
167
+ $[6] = props;
168
+ $[7] = sideOffset;
169
+ $[8] = t2;
170
+ $[9] = t3;
171
+ } else t3 = $[9];
172
+ return t3;
173
+ }
174
+ /**
175
+ * At the top level it looks like a trigger. In a content it is a row: a title
176
+ * over a description, or a `NavigationMenuLinkIcon` beside its text.
177
+ */
178
+ function NavigationMenuLink(t0) {
179
+ const $ = c(8);
180
+ let className;
181
+ let props;
182
+ if ($[0] !== t0) {
183
+ ({className, ...props} = t0);
184
+ $[0] = t0;
185
+ $[1] = className;
186
+ $[2] = props;
187
+ } else {
188
+ className = $[1];
189
+ props = $[2];
190
+ }
191
+ let t1;
192
+ if ($[3] !== className) {
193
+ t1 = cnState([
194
+ "flex h-9 items-center gap-2 rounded-full px-4 text-sm font-medium text-foreground transition-colors hover:bg-accent focus-ring data-current:bg-accent data-current:ring-1 data-current:ring-input data-current:ring-inset [&_svg]:pointer-events-none [&_svg]:shrink-0",
195
+ "in-data-[slot=navigation-menu-content]:h-auto in-data-[slot=navigation-menu-content]:rounded-md in-data-[slot=navigation-menu-content]:flex-col in-data-[slot=navigation-menu-content]:items-stretch in-data-[slot=navigation-menu-content]:gap-1 in-data-[slot=navigation-menu-content]:p-2 in-data-[slot=navigation-menu-content]:font-normal in-data-[slot=navigation-menu-content]:data-current:font-medium in-data-[slot=navigation-menu-content]:data-has-icon:flex-row in-data-[slot=navigation-menu-content]:data-has-icon:items-center in-data-[slot=navigation-menu-content]:data-has-icon:gap-2",
196
+ "in-data-[slot=navigation-menu-content]:in-data-has-icons:not-data-has-icon:ps-8"
197
+ ], className);
198
+ $[3] = className;
199
+ $[4] = t1;
200
+ } else t1 = $[4];
201
+ let t2;
202
+ if ($[5] !== props || $[6] !== t1) {
203
+ t2 = /* @__PURE__ */ jsx(NavigationMenuLink$1, {
204
+ className: t1,
205
+ ...props
206
+ });
207
+ $[5] = props;
208
+ $[6] = t1;
209
+ $[7] = t2;
210
+ } else t2 = $[7];
211
+ return t2;
212
+ }
213
+ function NavigationMenuLinkIcon(t0) {
214
+ const $ = c(8);
215
+ let className;
216
+ let props;
217
+ if ($[0] !== t0) {
218
+ ({className, ...props} = t0);
219
+ $[0] = t0;
220
+ $[1] = className;
221
+ $[2] = props;
222
+ } else {
223
+ className = $[1];
224
+ props = $[2];
225
+ }
226
+ let t1;
227
+ if ($[3] !== className) {
228
+ t1 = cnState("flex size-4 shrink-0 items-center justify-center text-muted-foreground rtl:data-mirror:-scale-x-100", className);
229
+ $[3] = className;
230
+ $[4] = t1;
231
+ } else t1 = $[4];
232
+ let t2;
233
+ if ($[5] !== props || $[6] !== t1) {
234
+ t2 = /* @__PURE__ */ jsx(NavigationMenuLinkIcon$1, {
235
+ className: t1,
236
+ ...props
237
+ });
238
+ $[5] = props;
239
+ $[6] = t1;
240
+ $[7] = t2;
241
+ } else t2 = $[7];
242
+ return t2;
243
+ }
244
+ /** The popup that holds the open content, and follows its size and its trigger. */
245
+ function NavigationMenuViewport(t0) {
246
+ const $ = c(10);
247
+ let className;
248
+ let props;
249
+ let t1;
250
+ if ($[0] !== t0) {
251
+ ({className, sideOffset: t1, ...props} = t0);
252
+ $[0] = t0;
253
+ $[1] = className;
254
+ $[2] = props;
255
+ $[3] = t1;
256
+ } else {
257
+ className = $[1];
258
+ props = $[2];
259
+ t1 = $[3];
260
+ }
261
+ const sideOffset = t1 === void 0 ? 8 : t1;
262
+ let t2;
263
+ if ($[4] !== className) {
264
+ t2 = cnState([
265
+ "popup-motion h-(--viewport-height) w-(--viewport-width) origin-(--transform-origin) overflow-hidden rounded-xl popup-surface data-closed:scale-95 data-starting-style:scale-95",
266
+ "[--panel-height:var(--available-height)]",
267
+ "transition-[opacity,scale,translate,width,height,left,top]! duration-popup ease-out motion-reduce:transition-[opacity]!"
268
+ ], className);
269
+ $[4] = className;
270
+ $[5] = t2;
271
+ } else t2 = $[5];
272
+ let t3;
273
+ if ($[6] !== props || $[7] !== sideOffset || $[8] !== t2) {
274
+ t3 = /* @__PURE__ */ jsx(NavigationMenuViewport$1, {
275
+ sideOffset,
276
+ className: t2,
277
+ ...props
278
+ });
279
+ $[6] = props;
280
+ $[7] = sideOffset;
281
+ $[8] = t2;
282
+ $[9] = t3;
283
+ } else t3 = $[9];
284
+ return t3;
285
+ }
286
+ /** A line under the open trigger or the current page's link, beside it in a vertical menu. */
287
+ function NavigationMenuIndicator(t0) {
288
+ const $ = c(8);
289
+ let className;
290
+ let props;
291
+ if ($[0] !== t0) {
292
+ ({className, ...props} = t0);
293
+ $[0] = t0;
294
+ $[1] = className;
295
+ $[2] = props;
296
+ } else {
297
+ className = $[1];
298
+ props = $[2];
299
+ }
300
+ let t1;
301
+ if ($[3] !== className) {
302
+ t1 = cnState("pointer-events-none absolute rounded-full bg-primary opacity-0 transition-[left,top,width,height,opacity] duration-popup ease-out motion-reduce:transition-none data-visible:opacity-100 data-[orientation=horizontal]:bottom-(--active-item-bottom) data-[orientation=horizontal]:left-(--active-item-left) data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:w-(--active-item-width) data-[orientation=vertical]:top-(--active-item-top) data-[orientation=vertical]:left-(--active-item-left) data-[orientation=vertical]:h-(--active-item-height) data-[orientation=vertical]:w-0.5", className);
303
+ $[3] = className;
304
+ $[4] = t1;
305
+ } else t1 = $[4];
306
+ let t2;
307
+ if ($[5] !== props || $[6] !== t1) {
308
+ t2 = /* @__PURE__ */ jsx(NavigationMenuIndicator$1, {
309
+ className: t1,
310
+ ...props
311
+ });
312
+ $[5] = props;
313
+ $[6] = t1;
314
+ $[7] = t2;
315
+ } else t2 = $[7];
316
+ return t2;
317
+ }
318
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuLinkIcon, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, createNavigationMenuController };
@@ -0,0 +1,9 @@
1
+ // src/components/not-label.ts
2
+ /**
3
+ * ui-sdk reads an item's label from its children before a list first opens,
4
+ * and skips the parts that carry this mark. abby's icon, check and shortcut
5
+ * parts wrap ui-sdk's, so they carry it too: `Object.assign(Part, notLabel)`.
6
+ * The mark is not part of ui-sdk's public API; check it when ui-sdk is updated.
7
+ */
8
+ const notLabel = { [Symbol.for("ui-sdk.not-label")]: true };
9
+ export { notLabel };
@@ -0,0 +1,22 @@
1
+ import "@tiptap/core";
2
+ declare const noteBlockTypes: readonly ["paragraph", "heading-1", "heading-2", "heading-3", "bulleted", "numbered", "todo", "quote", "code", "divider"];
3
+ type NoteBlockType = (typeof noteBlockTypes)[number];
4
+ type NoteBlock = {
5
+ /** Stable across edits, so comments, presence and suggestions can point at it. */
6
+ id: string;
7
+ type: NoteBlockType;
8
+ /**
9
+ * The block's text as inline Markdown: `**bold**`, `*italic*`, `~~strike~~`,
10
+ * `` `code` ``, `[link](https://…)`. A code block's text is kept as typed.
11
+ */
12
+ text: string;
13
+ /** A to-do's tick. */
14
+ checked?: boolean;
15
+ /** How deep a list item sits, from 0. Ignored on other blocks. */
16
+ indent?: number;
17
+ /** A code block's language. */
18
+ language?: string;
19
+ };
20
+ /** A block to add or change: everything but the id is optional. */
21
+ type NoteBlockInput = Partial<NoteBlock>;
22
+ export { type NoteBlock, type NoteBlockInput, type NoteBlockType, noteBlockTypes };