@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,42 @@
1
+ import { index_d_exports } from "../../core/index.js";
2
+ import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { buttonVariants } from "../button/button.js";
4
+ import { ComponentProps } from "react";
5
+ import { Button } from "@ui-sdk/react/button";
6
+ import { Input, createInputController } from "@ui-sdk/react/input";
7
+ import { Textarea } from "@ui-sdk/react/textarea";
8
+ /**
9
+ * The box around a field and its addons. Write the parts in the order they
10
+ * read: Tab follows the markup, not `align`.
11
+ */
12
+ declare function InputGroup({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
+ declare const inputGroupAddonVariants: (props?: ({
14
+ align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ type InputGroupAddonProps = index_d_exports.PartProps<"div"> & VariantProps<typeof inputGroupAddonVariants>;
17
+ /** Icons, text and buttons on one side of the field. Not focusable itself. */
18
+ declare function InputGroupAddon({ className, align, render, ...props }: InputGroupAddonProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
19
+ type InputGroupButtonLook = Pick<VariantProps<typeof buttonVariants>, "variant"> & {
20
+ /**
21
+ * `sm` and `icon-sm`, the default, are Button's 28px sizes: the tallest that
22
+ * fits a 36px box, 3px from its edge all round. `xs` and `icon-xs` are its
23
+ * 24px ones, for a denser addon. `icon` is its 36px size, for a taller box.
24
+ */
25
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | "icon";
26
+ };
27
+ /**
28
+ * The classes of a button inside an input group, for a part that isn't an
29
+ * `InputGroupButton` but sits in the box like one: a menu's trigger, a file
30
+ * input's trigger. A capsule or a circle inside the capsule box, so its
31
+ * corners stay concentric with the box's.
32
+ */
33
+ declare function inputGroupButtonVariants({ variant, size }?: InputGroupButtonLook): string;
34
+ type InputGroupButtonProps = ComponentProps<typeof Button> & InputGroupButtonLook;
35
+ /** A button inside an addon. With only an icon it needs an `aria-label`. */
36
+ declare function InputGroupButton({ variant, size, className, ...props }: InputGroupButtonProps): import("react").JSX.Element;
37
+ declare function InputGroupText({ className, render, ...props }: index_d_exports.PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
38
+ /** ui-sdk's Input without its box. It joins a `Field` like `Input` does. */
39
+ declare function InputGroupInput({ className, ...props }: ComponentProps<typeof Input>): import("react").JSX.Element;
40
+ /** ui-sdk's Textarea without its box. It joins a `Field` like `Textarea` does. */
41
+ declare function InputGroupTextarea({ className, ...props }: ComponentProps<typeof Textarea>): import("react").JSX.Element;
42
+ export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonLook, type InputGroupButtonProps, InputGroupInput, InputGroupText, InputGroupTextarea, createInputController, inputGroupButtonVariants };
@@ -0,0 +1,192 @@
1
+ "use client";
2
+ import { core_exports } from "../../core/index.js";
3
+ import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
+ import { buttonVariants } from "../button/button.js";
5
+ import { inputClasses } from "../input/input.js";
6
+ import { c } from "react/compiler-runtime";
7
+ import { jsx } from "react/jsx-runtime";
8
+ import { Button } from "@ui-sdk/react/button";
9
+ import { Input, createInputController } from "@ui-sdk/react/input";
10
+ import { Textarea } from "@ui-sdk/react/textarea";
11
+ // src/components/input-group/input-group.tsx
12
+ const INTERACTIVE = "button, a[href], input, textarea, select, summary, [tabindex], [contenteditable]";
13
+ function focusControl(event) {
14
+ const box = event.currentTarget;
15
+ const hit = event.target.closest(INTERACTIVE);
16
+ if (event.button !== 0 || hit && box.contains(hit)) return;
17
+ const control = box.querySelector(":is(input, textarea):not([type=hidden])");
18
+ if (!control) return;
19
+ event.preventDefault();
20
+ control.focus();
21
+ }
22
+ /**
23
+ * The box around a field and its addons. Write the parts in the order they
24
+ * read: Tab follows the markup, not `align`.
25
+ */
26
+ function InputGroup({ className, render, ...props }) {
27
+ return (0, core_exports.renderElement)("div", (0, core_exports.mergeProps)({
28
+ "data-slot": "input-group",
29
+ onMouseDown: focusControl
30
+ }, {
31
+ ...props,
32
+ className: cnState([
33
+ "group/input-group relative flex h-9 w-full min-w-0 items-center rounded-full border border-input focus-ring-field transition-colors dark:bg-input/30",
34
+ "has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20",
35
+ "has-[:is(input,textarea)[data-disabled]]:bg-input/50",
36
+ "has-[>textarea]:h-auto has-[>textarea]:rounded-2xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:rounded-2xl has-[>[data-align=block-start]]:rounded-2xl has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col",
37
+ "has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5"
38
+ ], className)
39
+ }), render);
40
+ }
41
+ const inputGroupAddonVariants = cva("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
42
+ variants: { align: {
43
+ "inline-start": "order-first ps-3 has-[>button]:ms-[-0.5rem] has-[>kbd]:ms-[-0.25rem]",
44
+ "inline-end": "order-last pe-3 has-[>button]:me-[-0.5rem] has-[>kbd]:me-[-0.25rem]",
45
+ "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
46
+ "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
47
+ } },
48
+ defaultVariants: { align: "inline-start" }
49
+ });
50
+ /** Icons, text and buttons on one side of the field. Not focusable itself. */
51
+ function InputGroupAddon({ className, align, render, ...props }) {
52
+ return (0, core_exports.renderElement)("div", {
53
+ "data-slot": "input-group-addon",
54
+ "data-align": align ?? "inline-start",
55
+ ...props,
56
+ className: cnState(inputGroupAddonVariants({ align }), className)
57
+ }, render);
58
+ }
59
+ /**
60
+ * The classes of a button inside an input group, for a part that isn't an
61
+ * `InputGroupButton` but sits in the box like one: a menu's trigger, a file
62
+ * input's trigger. A capsule or a circle inside the capsule box, so its
63
+ * corners stay concentric with the box's.
64
+ */
65
+ function inputGroupButtonVariants({ variant = "ghost", size = "sm" } = {}) {
66
+ return cn(buttonVariants({
67
+ variant,
68
+ size
69
+ }), "rounded-full");
70
+ }
71
+ /** A button inside an addon. With only an icon it needs an `aria-label`. */
72
+ function InputGroupButton(t0) {
73
+ const $ = c(14);
74
+ let className;
75
+ let props;
76
+ let t1;
77
+ let t2;
78
+ if ($[0] !== t0) {
79
+ ({variant: t1, size: t2, className, ...props} = t0);
80
+ $[0] = t0;
81
+ $[1] = className;
82
+ $[2] = props;
83
+ $[3] = t1;
84
+ $[4] = t2;
85
+ } else {
86
+ className = $[1];
87
+ props = $[2];
88
+ t1 = $[3];
89
+ t2 = $[4];
90
+ }
91
+ const variant = t1 === void 0 ? "ghost" : t1;
92
+ const size = t2 === void 0 ? "sm" : t2;
93
+ let t3;
94
+ if ($[5] !== className || $[6] !== size || $[7] !== variant) {
95
+ t3 = cnState(inputGroupButtonVariants({
96
+ variant,
97
+ size
98
+ }), className);
99
+ $[5] = className;
100
+ $[6] = size;
101
+ $[7] = variant;
102
+ $[8] = t3;
103
+ } else t3 = $[8];
104
+ let t4;
105
+ if ($[9] !== props || $[10] !== size || $[11] !== t3 || $[12] !== variant) {
106
+ t4 = /* @__PURE__ */ jsx(Button, {
107
+ "data-variant": variant,
108
+ "data-size": size,
109
+ className: t3,
110
+ ...props
111
+ });
112
+ $[9] = props;
113
+ $[10] = size;
114
+ $[11] = t3;
115
+ $[12] = variant;
116
+ $[13] = t4;
117
+ } else t4 = $[13];
118
+ return t4;
119
+ }
120
+ function InputGroupText({ className, render, ...props }) {
121
+ return (0, core_exports.renderElement)("span", {
122
+ "data-slot": "input-group-text",
123
+ ...props,
124
+ className: cnState("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className)
125
+ }, render);
126
+ }
127
+ const controlClasses = "flex-1 rounded-none border-0 bg-transparent ring-0 outline-none! aria-invalid:ring-0 data-disabled:bg-transparent dark:bg-transparent";
128
+ /** ui-sdk's Input without its box. It joins a `Field` like `Input` does. */
129
+ function InputGroupInput(t0) {
130
+ const $ = c(8);
131
+ let className;
132
+ let props;
133
+ if ($[0] !== t0) {
134
+ ({className, ...props} = t0);
135
+ $[0] = t0;
136
+ $[1] = className;
137
+ $[2] = props;
138
+ } else {
139
+ className = $[1];
140
+ props = $[2];
141
+ }
142
+ let t1;
143
+ if ($[3] !== className) {
144
+ t1 = cnState(cn(inputClasses, "h-8.5", controlClasses), className);
145
+ $[3] = className;
146
+ $[4] = t1;
147
+ } else t1 = $[4];
148
+ let t2;
149
+ if ($[5] !== props || $[6] !== t1) {
150
+ t2 = /* @__PURE__ */ jsx(Input, {
151
+ className: t1,
152
+ ...props
153
+ });
154
+ $[5] = props;
155
+ $[6] = t1;
156
+ $[7] = t2;
157
+ } else t2 = $[7];
158
+ return t2;
159
+ }
160
+ /** ui-sdk's Textarea without its box. It joins a `Field` like `Textarea` does. */
161
+ function InputGroupTextarea(t0) {
162
+ const $ = c(8);
163
+ let className;
164
+ let props;
165
+ if ($[0] !== t0) {
166
+ ({className, ...props} = t0);
167
+ $[0] = t0;
168
+ $[1] = className;
169
+ $[2] = props;
170
+ } else {
171
+ className = $[1];
172
+ props = $[2];
173
+ }
174
+ let t1;
175
+ if ($[3] !== className) {
176
+ t1 = cnState(cn(inputClasses, "h-auto min-h-16 resize-none py-2", controlClasses), className);
177
+ $[3] = className;
178
+ $[4] = t1;
179
+ } else t1 = $[4];
180
+ let t2;
181
+ if ($[5] !== props || $[6] !== t1) {
182
+ t2 = /* @__PURE__ */ jsx(Textarea, {
183
+ className: t1,
184
+ ...props
185
+ });
186
+ $[5] = props;
187
+ $[6] = t1;
188
+ $[7] = t2;
189
+ } else t2 = $[7];
190
+ return t2;
191
+ }
192
+ export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, createInputController, inputGroupButtonVariants };
@@ -0,0 +1,32 @@
1
+ import { index_d_exports } from "../../core/index.js";
2
+ import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { Separator } from "../separator/separator.js";
4
+ import { ComponentProps } from "react";
5
+ /** A list of items. Each `Item` inside it is a list item. */
6
+ declare function ItemGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
7
+ /** A line between two items. Inside an `ItemGroup` it's decorative: a list already says where each item ends. */
8
+ declare function ItemSeparator({ className, decorative, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
9
+ declare const itemVariants: (props?: ({
10
+ variant?: "default" | "muted" | "outline" | null | undefined;
11
+ size?: "default" | "sm" | "xs" | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ type ItemProps = index_d_exports.PartProps<"div"> & VariantProps<typeof itemVariants>;
14
+ /**
15
+ * A row: media, a title and a description, and its actions. With `render` the
16
+ * whole row is one link (`render={<a href="/projects/atlas" />}` or a router's
17
+ * link), so keep other controls out of it.
18
+ */
19
+ declare function Item({ className, variant, size, render, ...props }: ItemProps): import("react").JSX.Element;
20
+ declare const itemMediaVariants: (props?: ({
21
+ variant?: "default" | "icon" | "image" | null | undefined;
22
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ type ItemMediaProps = ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>;
24
+ declare function ItemMedia({ className, variant, ...props }: ItemMediaProps): import("react").JSX.Element;
25
+ declare function ItemContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
26
+ declare function ItemTitle({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
27
+ declare function ItemDescription({ className, ...props }: ComponentProps<"p">): import("react").JSX.Element;
28
+ /** The row's buttons. Name each for its row, like "Edit Atlas", so no two share a name. */
29
+ declare function ItemActions({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
30
+ declare function ItemHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
31
+ declare function ItemFooter({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
32
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
@@ -0,0 +1,394 @@
1
+ "use client";
2
+ import { core_exports } from "../../core/index.js";
3
+ import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
+ import { LinkPart } from "../link/link.js";
5
+ import { Separator } from "../separator/separator.js";
6
+ import { c } from "react/compiler-runtime";
7
+ import { createContext, use } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ // src/components/item/item.tsx
10
+ /** Whether the parts sit inside an `ItemGroup`, which is a list. */
11
+ const ItemGroupContext = createContext(false);
12
+ /** A list of items. Each `Item` inside it is a list item. */
13
+ function ItemGroup(t0) {
14
+ const $ = c(8);
15
+ let className;
16
+ let props;
17
+ if ($[0] !== t0) {
18
+ ({className, ...props} = t0);
19
+ $[0] = t0;
20
+ $[1] = className;
21
+ $[2] = props;
22
+ } else {
23
+ className = $[1];
24
+ props = $[2];
25
+ }
26
+ let t1;
27
+ if ($[3] !== className) {
28
+ t1 = cn("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2", className);
29
+ $[3] = className;
30
+ $[4] = t1;
31
+ } else t1 = $[4];
32
+ let t2;
33
+ if ($[5] !== props || $[6] !== t1) {
34
+ t2 = /* @__PURE__ */ jsx(ItemGroupContext, {
35
+ value: true,
36
+ children: /* @__PURE__ */ jsx("div", {
37
+ role: "list",
38
+ "data-slot": "item-group",
39
+ className: t1,
40
+ ...props
41
+ })
42
+ });
43
+ $[5] = props;
44
+ $[6] = t1;
45
+ $[7] = t2;
46
+ } else t2 = $[7];
47
+ return t2;
48
+ }
49
+ /** A line between two items. Inside an `ItemGroup` it's decorative: a list already says where each item ends. */
50
+ function ItemSeparator(t0) {
51
+ const $ = c(10);
52
+ let className;
53
+ let decorative;
54
+ let props;
55
+ if ($[0] !== t0) {
56
+ ({className, decorative, ...props} = t0);
57
+ $[0] = t0;
58
+ $[1] = className;
59
+ $[2] = decorative;
60
+ $[3] = props;
61
+ } else {
62
+ className = $[1];
63
+ decorative = $[2];
64
+ props = $[3];
65
+ }
66
+ const inGroup = use(ItemGroupContext);
67
+ const t1 = decorative ?? inGroup;
68
+ let t2;
69
+ if ($[4] !== className) {
70
+ t2 = cnState("my-2", className);
71
+ $[4] = className;
72
+ $[5] = t2;
73
+ } else t2 = $[5];
74
+ let t3;
75
+ if ($[6] !== props || $[7] !== t1 || $[8] !== t2) {
76
+ t3 = /* @__PURE__ */ jsx(Separator, {
77
+ orientation: "horizontal",
78
+ decorative: t1,
79
+ className: t2,
80
+ ...props
81
+ });
82
+ $[6] = props;
83
+ $[7] = t1;
84
+ $[8] = t2;
85
+ $[9] = t3;
86
+ } else t3 = $[9];
87
+ return t3;
88
+ }
89
+ const itemVariants = cva("group/item flex w-full flex-wrap items-center border text-sm transition-colors focus-ring [a]:hover:bg-muted", {
90
+ variants: {
91
+ variant: {
92
+ default: "rounded-lg border-transparent",
93
+ outline: "rounded-xl border-border [a]:border-input",
94
+ muted: "rounded-xl border-transparent bg-muted/50"
95
+ },
96
+ size: {
97
+ default: "gap-2.5 px-3 py-2.5",
98
+ sm: "gap-2.5 px-3 py-2.5",
99
+ xs: "gap-2 px-2.5 py-2 in-data-[slot=menu-content]:p-0"
100
+ }
101
+ },
102
+ defaultVariants: {
103
+ variant: "default",
104
+ size: "default"
105
+ }
106
+ });
107
+ /**
108
+ * A row: media, a title and a description, and its actions. With `render` the
109
+ * whole row is one link (`render={<a href="/projects/atlas" />}` or a router's
110
+ * link), so keep other controls out of it.
111
+ */
112
+ function Item(t0) {
113
+ const $ = c(5);
114
+ const { className, variant, size, render, ...props } = t0;
115
+ const inGroup = use(ItemGroupContext);
116
+ const own = {
117
+ "data-slot": "item",
118
+ "data-variant": variant ?? "default",
119
+ "data-size": size ?? "default",
120
+ className: cnState(itemVariants({
121
+ variant,
122
+ size
123
+ }), className)
124
+ };
125
+ if (!render) return (0, core_exports.renderElement)("div", {
126
+ role: inGroup ? "listitem" : void 0,
127
+ ...props,
128
+ ...own
129
+ });
130
+ const t1 = {
131
+ ...props,
132
+ ...own,
133
+ render
134
+ };
135
+ let t2;
136
+ if ($[0] !== t1) {
137
+ t2 = /* @__PURE__ */ jsx(LinkPart, { ...t1 });
138
+ $[0] = t1;
139
+ $[1] = t2;
140
+ } else t2 = $[1];
141
+ const row = t2;
142
+ let t3;
143
+ if ($[2] !== inGroup || $[3] !== row) {
144
+ t3 = inGroup ? /* @__PURE__ */ jsx("div", {
145
+ role: "listitem",
146
+ children: row
147
+ }) : row;
148
+ $[2] = inGroup;
149
+ $[3] = row;
150
+ $[4] = t3;
151
+ } else t3 = $[4];
152
+ return t3;
153
+ }
154
+ const itemMediaVariants = cva("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none", {
155
+ variants: { variant: {
156
+ default: "bg-transparent",
157
+ icon: "[&_svg:not([class*='size-'])]:size-4",
158
+ image: "size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"
159
+ } },
160
+ defaultVariants: { variant: "default" }
161
+ });
162
+ function ItemMedia(t0) {
163
+ const $ = c(11);
164
+ let className;
165
+ let props;
166
+ let variant;
167
+ if ($[0] !== t0) {
168
+ ({className, variant, ...props} = t0);
169
+ $[0] = t0;
170
+ $[1] = className;
171
+ $[2] = props;
172
+ $[3] = variant;
173
+ } else {
174
+ className = $[1];
175
+ props = $[2];
176
+ variant = $[3];
177
+ }
178
+ const t1 = variant ?? "default";
179
+ let t2;
180
+ if ($[4] !== className || $[5] !== variant) {
181
+ t2 = cn(itemMediaVariants({ variant }), className);
182
+ $[4] = className;
183
+ $[5] = variant;
184
+ $[6] = t2;
185
+ } else t2 = $[6];
186
+ let t3;
187
+ if ($[7] !== props || $[8] !== t1 || $[9] !== t2) {
188
+ t3 = /* @__PURE__ */ jsx("div", {
189
+ "data-slot": "item-media",
190
+ "data-variant": t1,
191
+ className: t2,
192
+ ...props
193
+ });
194
+ $[7] = props;
195
+ $[8] = t1;
196
+ $[9] = t2;
197
+ $[10] = t3;
198
+ } else t3 = $[10];
199
+ return t3;
200
+ }
201
+ function ItemContent(t0) {
202
+ const $ = c(8);
203
+ let className;
204
+ let props;
205
+ if ($[0] !== t0) {
206
+ ({className, ...props} = t0);
207
+ $[0] = t0;
208
+ $[1] = className;
209
+ $[2] = props;
210
+ } else {
211
+ className = $[1];
212
+ props = $[2];
213
+ }
214
+ let t1;
215
+ if ($[3] !== className) {
216
+ t1 = cn("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none", className);
217
+ $[3] = className;
218
+ $[4] = t1;
219
+ } else t1 = $[4];
220
+ let t2;
221
+ if ($[5] !== props || $[6] !== t1) {
222
+ t2 = /* @__PURE__ */ jsx("div", {
223
+ "data-slot": "item-content",
224
+ className: t1,
225
+ ...props
226
+ });
227
+ $[5] = props;
228
+ $[6] = t1;
229
+ $[7] = t2;
230
+ } else t2 = $[7];
231
+ return t2;
232
+ }
233
+ function ItemTitle(t0) {
234
+ const $ = c(8);
235
+ let className;
236
+ let props;
237
+ if ($[0] !== t0) {
238
+ ({className, ...props} = t0);
239
+ $[0] = t0;
240
+ $[1] = className;
241
+ $[2] = props;
242
+ } else {
243
+ className = $[1];
244
+ props = $[2];
245
+ }
246
+ let t1;
247
+ if ($[3] !== className) {
248
+ t1 = cn("line-clamp-1 flex w-fit items-center gap-2 text-label underline-offset-4", className);
249
+ $[3] = className;
250
+ $[4] = t1;
251
+ } else t1 = $[4];
252
+ let t2;
253
+ if ($[5] !== props || $[6] !== t1) {
254
+ t2 = /* @__PURE__ */ jsx("div", {
255
+ "data-slot": "item-title",
256
+ className: t1,
257
+ ...props
258
+ });
259
+ $[5] = props;
260
+ $[6] = t1;
261
+ $[7] = t2;
262
+ } else t2 = $[7];
263
+ return t2;
264
+ }
265
+ function ItemDescription(t0) {
266
+ const $ = c(8);
267
+ let className;
268
+ let props;
269
+ if ($[0] !== t0) {
270
+ ({className, ...props} = t0);
271
+ $[0] = t0;
272
+ $[1] = className;
273
+ $[2] = props;
274
+ } else {
275
+ className = $[1];
276
+ props = $[2];
277
+ }
278
+ let t1;
279
+ if ($[3] !== className) {
280
+ t1 = cn("line-clamp-2 text-start text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:rounded-sm [&>a]:underline [&>a]:underline-offset-4 [&>a]:focus-ring [&>a:hover]:text-primary", className);
281
+ $[3] = className;
282
+ $[4] = t1;
283
+ } else t1 = $[4];
284
+ let t2;
285
+ if ($[5] !== props || $[6] !== t1) {
286
+ t2 = /* @__PURE__ */ jsx("p", {
287
+ "data-slot": "item-description",
288
+ className: t1,
289
+ ...props
290
+ });
291
+ $[5] = props;
292
+ $[6] = t1;
293
+ $[7] = t2;
294
+ } else t2 = $[7];
295
+ return t2;
296
+ }
297
+ /** The row's buttons. Name each for its row, like "Edit Atlas", so no two share a name. */
298
+ function ItemActions(t0) {
299
+ const $ = c(8);
300
+ let className;
301
+ let props;
302
+ if ($[0] !== t0) {
303
+ ({className, ...props} = t0);
304
+ $[0] = t0;
305
+ $[1] = className;
306
+ $[2] = props;
307
+ } else {
308
+ className = $[1];
309
+ props = $[2];
310
+ }
311
+ let t1;
312
+ if ($[3] !== className) {
313
+ t1 = cn("flex items-center gap-2", className);
314
+ $[3] = className;
315
+ $[4] = t1;
316
+ } else t1 = $[4];
317
+ let t2;
318
+ if ($[5] !== props || $[6] !== t1) {
319
+ t2 = /* @__PURE__ */ jsx("div", {
320
+ "data-slot": "item-actions",
321
+ className: t1,
322
+ ...props
323
+ });
324
+ $[5] = props;
325
+ $[6] = t1;
326
+ $[7] = t2;
327
+ } else t2 = $[7];
328
+ return t2;
329
+ }
330
+ function ItemHeader(t0) {
331
+ const $ = c(8);
332
+ let className;
333
+ let props;
334
+ if ($[0] !== t0) {
335
+ ({className, ...props} = t0);
336
+ $[0] = t0;
337
+ $[1] = className;
338
+ $[2] = props;
339
+ } else {
340
+ className = $[1];
341
+ props = $[2];
342
+ }
343
+ let t1;
344
+ if ($[3] !== className) {
345
+ t1 = cn("flex basis-full items-center justify-between gap-2", className);
346
+ $[3] = className;
347
+ $[4] = t1;
348
+ } else t1 = $[4];
349
+ let t2;
350
+ if ($[5] !== props || $[6] !== t1) {
351
+ t2 = /* @__PURE__ */ jsx("div", {
352
+ "data-slot": "item-header",
353
+ className: t1,
354
+ ...props
355
+ });
356
+ $[5] = props;
357
+ $[6] = t1;
358
+ $[7] = t2;
359
+ } else t2 = $[7];
360
+ return t2;
361
+ }
362
+ function ItemFooter(t0) {
363
+ const $ = c(8);
364
+ let className;
365
+ let props;
366
+ if ($[0] !== t0) {
367
+ ({className, ...props} = t0);
368
+ $[0] = t0;
369
+ $[1] = className;
370
+ $[2] = props;
371
+ } else {
372
+ className = $[1];
373
+ props = $[2];
374
+ }
375
+ let t1;
376
+ if ($[3] !== className) {
377
+ t1 = cn("flex basis-full items-center justify-between gap-2", className);
378
+ $[3] = className;
379
+ $[4] = t1;
380
+ } else t1 = $[4];
381
+ let t2;
382
+ if ($[5] !== props || $[6] !== t1) {
383
+ t2 = /* @__PURE__ */ jsx("div", {
384
+ "data-slot": "item-footer",
385
+ className: t1,
386
+ ...props
387
+ });
388
+ $[5] = props;
389
+ $[6] = t1;
390
+ $[7] = t2;
391
+ } else t2 = $[7];
392
+ return t2;
393
+ }
394
+ export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, itemMediaVariants, itemVariants };
@@ -0,0 +1,9 @@
1
+ import { ComponentProps } from "react";
2
+ /**
3
+ * A key, or a shortcut's text from `useShortcutHint`. Inside a control it
4
+ * takes `aria-hidden`, and the control takes `aria-keyshortcuts`.
5
+ */
6
+ declare function Kbd({ className, ...props }: ComponentProps<"kbd">): import("react").JSX.Element;
7
+ /** Keys pressed together or in a row: a `<kbd>` around each key's own `<kbd>`, as HTML asks. */
8
+ declare function KbdGroup({ className, ...props }: ComponentProps<"kbd">): import("react").JSX.Element;
9
+ export { Kbd, KbdGroup };