@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,59 @@
1
+ import { NotePerson } from "../note-editor/person.js";
2
+ import { ComponentProps } from "react";
3
+ import { SelectProps, createSelectController } from "@ui-sdk/react/select";
4
+ type NoteStatus = "draft" | "doing" | "review" | "done";
5
+ /** Every status, in the order a note goes through them. */
6
+ declare const noteStatuses: readonly NoteStatus[];
7
+ type NoteStatusLabels = Record<NoteStatus, string> & {
8
+ /** Names the select, for a screen reader and an agent. It reads its status after it. */
9
+ status: string;
10
+ };
11
+ type NoteStatusIconProps = Omit<ComponentProps<"svg">, "children"> & {
12
+ status: NoteStatus;
13
+ /**
14
+ * Names the mark for screen readers, when it stands alone. Without it the
15
+ * mark is decorative, as next to the status's name.
16
+ */
17
+ label?: string;
18
+ };
19
+ /**
20
+ * A status as a 14px mark, drawn on its own 14px grid like an icon: a dashed
21
+ * ring for a draft, a ring that fills as the note goes on, and a disc with a
22
+ * check once it's done. Not a Hugeicons glyph, so it isn't drawn by `Icon`,
23
+ * which strokes every part in one color and would hide the check.
24
+ */
25
+ declare function NoteStatusIcon({ status, label, className, ...props }: NoteStatusIconProps): import("react").JSX.Element;
26
+ type NoteStatusSelectProps = Omit<Extract<SelectProps<NoteStatus>, {
27
+ multiple?: false;
28
+ }>, "items" | "children" | "multiple" | "readOnly"> & {
29
+ /** The statuses offered, in order. All four by default. */
30
+ statuses?: readonly NoteStatus[];
31
+ /** Replaces any of the default texts, to translate them. */
32
+ labels?: Partial<NoteStatusLabels>;
33
+ /**
34
+ * Shows the status as text, with no list: a note that's done is changed
35
+ * another way, if at all.
36
+ */
37
+ readOnly?: boolean;
38
+ /** Classes for the trigger, or for the text when `readOnly`. */
39
+ className?: string;
40
+ };
41
+ /**
42
+ * The note's status by its title: a small trigger with the status's mark and
43
+ * name, and a list of the others. An agent chooses one by its name, and reads
44
+ * the choices with the list closed.
45
+ */
46
+ declare function NoteStatusSelect({ statuses, labels: own, readOnly, className, ...props }: NoteStatusSelectProps): import("react").JSX.Element;
47
+ type NoteLiveDotsProps = Omit<ComponentProps<"span">, "children"> & {
48
+ /** Who is writing in the note right now. Each dot takes the person's color, as in the note. */
49
+ people: readonly NotePerson[];
50
+ /** The most dots shown. */
51
+ max?: number;
52
+ };
53
+ /**
54
+ * Who is writing in a note right now, as small dots in their colors: at the
55
+ * end of the note's row in a list. Decorative: the row's own text and the
56
+ * note say who is there.
57
+ */
58
+ declare function NoteLiveDots({ people, max, className, ...props }: NoteLiveDotsProps): import("react").JSX.Element | null;
59
+ export { NoteLiveDots, type NoteLiveDotsProps, type NotePerson, type NoteStatus, NoteStatusIcon, type NoteStatusIconProps, type NoteStatusLabels, NoteStatusSelect, type NoteStatusSelectProps, createSelectController as createNoteStatusController, noteStatuses };
@@ -0,0 +1,380 @@
1
+ "use client";
2
+ import { cn, cnState } from "../../utilities/cn/index.js";
3
+ import { buttonLook } from "../button/button.js";
4
+ import { Icon } from "../icon/icon.js";
5
+ import { personColor } from "../note-editor/person.js";
6
+ import { SelectContent as SelectContent$1, SelectItem as SelectItem$1, SelectItemIcon as SelectItemIcon$1, SelectItemIndicator as SelectItemIndicator$1, SelectItemText as SelectItemText$1 } from "../select/select.js";
7
+ import { c } from "react/compiler-runtime";
8
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
+ import { ArrowDown01Icon } from "@hugeicons/core-free-icons";
10
+ import { Select, SelectTrigger, SelectValue, createSelectController } from "@ui-sdk/react/select";
11
+ // src/components/note-status/note-status.tsx
12
+ /** Every status, in the order a note goes through them. */
13
+ const noteStatuses = [
14
+ "draft",
15
+ "doing",
16
+ "review",
17
+ "done"
18
+ ];
19
+ const defaultLabels = {
20
+ draft: "Draft",
21
+ doing: "In progress",
22
+ review: "In review",
23
+ done: "Done",
24
+ status: "Status"
25
+ };
26
+ /** Each status's color: quiet while it's yours, amber while it waits on others, green once done. */
27
+ const tones = {
28
+ draft: "text-subtle",
29
+ doing: "text-muted-foreground",
30
+ review: "text-warning",
31
+ done: "text-success"
32
+ };
33
+ /**
34
+ * A status as a 14px mark, drawn on its own 14px grid like an icon: a dashed
35
+ * ring for a draft, a ring that fills as the note goes on, and a disc with a
36
+ * check once it's done. Not a Hugeicons glyph, so it isn't drawn by `Icon`,
37
+ * which strokes every part in one color and would hide the check.
38
+ */
39
+ function NoteStatusIcon(t0) {
40
+ const $ = c(23);
41
+ let className;
42
+ let label;
43
+ let props;
44
+ let status;
45
+ if ($[0] !== t0) {
46
+ ({status, label, className, ...props} = t0);
47
+ $[0] = t0;
48
+ $[1] = className;
49
+ $[2] = label;
50
+ $[3] = props;
51
+ $[4] = status;
52
+ } else {
53
+ className = $[1];
54
+ label = $[2];
55
+ props = $[3];
56
+ status = $[4];
57
+ }
58
+ const t1 = label ? "img" : void 0;
59
+ const t2 = label ? void 0 : true;
60
+ const t3 = tones[status];
61
+ let t4;
62
+ if ($[5] !== className || $[6] !== t3) {
63
+ t4 = cn("size-3.5 shrink-0", t3, className);
64
+ $[5] = className;
65
+ $[6] = t3;
66
+ $[7] = t4;
67
+ } else t4 = $[7];
68
+ let t5;
69
+ let t6;
70
+ if ($[8] !== status) {
71
+ t5 = status === "done" ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
72
+ cx: "7",
73
+ cy: "7",
74
+ r: "6",
75
+ fill: "currentColor"
76
+ }), /* @__PURE__ */ jsx("path", {
77
+ d: "m4.5 7.2 1.7 1.6 3.3-3.4",
78
+ strokeWidth: "1.4",
79
+ strokeLinecap: "round",
80
+ strokeLinejoin: "round",
81
+ className: "stroke-success-foreground"
82
+ })] }) : /* @__PURE__ */ jsx("circle", {
83
+ cx: "7",
84
+ cy: "7",
85
+ r: "5.25",
86
+ stroke: "currentColor",
87
+ strokeWidth: "1.5",
88
+ strokeDasharray: status === "draft" ? "2.2 2" : void 0
89
+ });
90
+ t6 = status === "doing" && /* @__PURE__ */ jsx("path", {
91
+ d: "M7 3.5a3.5 3.5 0 0 1 0 7z",
92
+ fill: "currentColor"
93
+ });
94
+ $[8] = status;
95
+ $[9] = t5;
96
+ $[10] = t6;
97
+ } else {
98
+ t5 = $[9];
99
+ t6 = $[10];
100
+ }
101
+ let t7;
102
+ if ($[11] !== status) {
103
+ t7 = status === "review" && /* @__PURE__ */ jsx("path", {
104
+ d: "M7 3.5a3.5 3.5 0 1 1-3.5 3.5H7z",
105
+ fill: "currentColor"
106
+ });
107
+ $[11] = status;
108
+ $[12] = t7;
109
+ } else t7 = $[12];
110
+ let t8;
111
+ if ($[13] !== label || $[14] !== props || $[15] !== status || $[16] !== t1 || $[17] !== t2 || $[18] !== t4 || $[19] !== t5 || $[20] !== t6 || $[21] !== t7) {
112
+ t8 = /* @__PURE__ */ jsxs("svg", {
113
+ viewBox: "0 0 14 14",
114
+ fill: "none",
115
+ role: t1,
116
+ "aria-label": label,
117
+ "aria-hidden": t2,
118
+ "data-slot": "note-status-icon",
119
+ "data-status": status,
120
+ className: t4,
121
+ ...props,
122
+ children: [
123
+ t5,
124
+ t6,
125
+ t7
126
+ ]
127
+ });
128
+ $[13] = label;
129
+ $[14] = props;
130
+ $[15] = status;
131
+ $[16] = t1;
132
+ $[17] = t2;
133
+ $[18] = t4;
134
+ $[19] = t5;
135
+ $[20] = t6;
136
+ $[21] = t7;
137
+ $[22] = t8;
138
+ } else t8 = $[22];
139
+ return t8;
140
+ }
141
+ /**
142
+ * The note's status by its title: a small trigger with the status's mark and
143
+ * name, and a list of the others. An agent chooses one by its name, and reads
144
+ * the choices with the list closed.
145
+ */
146
+ function NoteStatusSelect(t0) {
147
+ const $ = c(39);
148
+ let className;
149
+ let own;
150
+ let props;
151
+ let readOnly;
152
+ let t1;
153
+ if ($[0] !== t0) {
154
+ ({statuses: t1, labels: own, readOnly, className, ...props} = t0);
155
+ $[0] = t0;
156
+ $[1] = className;
157
+ $[2] = own;
158
+ $[3] = props;
159
+ $[4] = readOnly;
160
+ $[5] = t1;
161
+ } else {
162
+ className = $[1];
163
+ own = $[2];
164
+ props = $[3];
165
+ readOnly = $[4];
166
+ t1 = $[5];
167
+ }
168
+ const statuses = t1 === void 0 ? noteStatuses : t1;
169
+ let T0;
170
+ let labels;
171
+ let t2;
172
+ let t3;
173
+ if ($[6] !== className || $[7] !== own || $[8] !== props || $[9] !== readOnly || $[10] !== statuses) {
174
+ t3 = Symbol.for("react.early_return_sentinel");
175
+ bb0: {
176
+ labels = {
177
+ ...defaultLabels,
178
+ ...own
179
+ };
180
+ if (readOnly) {
181
+ const status = props.value ?? props.defaultValue ?? "draft";
182
+ let t4;
183
+ if ($[15] !== className) {
184
+ t4 = cn("inline-flex h-6 w-fit shrink-0 items-center gap-1.5 rounded-full border border-border px-2 text-xs text-foreground", className);
185
+ $[15] = className;
186
+ $[16] = t4;
187
+ } else t4 = $[16];
188
+ let t5;
189
+ if ($[17] !== status) {
190
+ t5 = /* @__PURE__ */ jsx(NoteStatusIcon, { status });
191
+ $[17] = status;
192
+ $[18] = t5;
193
+ } else t5 = $[18];
194
+ t3 = /* @__PURE__ */ jsxs("span", {
195
+ "data-slot": "note-status",
196
+ "data-readonly": "",
197
+ className: t4,
198
+ children: [
199
+ /* @__PURE__ */ jsxs("span", {
200
+ className: "sr-only",
201
+ children: [labels.status, ": "]
202
+ }),
203
+ t5,
204
+ labels[status]
205
+ ]
206
+ });
207
+ break bb0;
208
+ }
209
+ T0 = Select;
210
+ t2 = statuses.map((status_0) => ({
211
+ value: status_0,
212
+ label: labels[status_0]
213
+ }));
214
+ }
215
+ $[6] = className;
216
+ $[7] = own;
217
+ $[8] = props;
218
+ $[9] = readOnly;
219
+ $[10] = statuses;
220
+ $[11] = T0;
221
+ $[12] = labels;
222
+ $[13] = t2;
223
+ $[14] = t3;
224
+ } else {
225
+ T0 = $[11];
226
+ labels = $[12];
227
+ t2 = $[13];
228
+ t3 = $[14];
229
+ }
230
+ if (t3 !== Symbol.for("react.early_return_sentinel")) return t3;
231
+ const t4 = labels.status;
232
+ let t5;
233
+ if ($[19] !== className) {
234
+ t5 = cnState([buttonLook({
235
+ variant: "ghost",
236
+ size: "xs"
237
+ }), "w-fit shrink-0 gap-1.5 border border-border font-normal text-foreground data-open:bg-accent"], className);
238
+ $[19] = className;
239
+ $[20] = t5;
240
+ } else t5 = $[20];
241
+ let t6;
242
+ let t7;
243
+ if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
244
+ t6 = /* @__PURE__ */ jsx(SelectValue, {
245
+ className: "flex min-w-0 items-center gap-1.5",
246
+ children: _temp
247
+ });
248
+ t7 = /* @__PURE__ */ jsx(Icon, {
249
+ icon: ArrowDown01Icon,
250
+ className: "size-3 text-subtle"
251
+ });
252
+ $[21] = t6;
253
+ $[22] = t7;
254
+ } else {
255
+ t6 = $[21];
256
+ t7 = $[22];
257
+ }
258
+ let t8;
259
+ if ($[23] !== labels.status || $[24] !== t5) {
260
+ t8 = /* @__PURE__ */ jsxs(SelectTrigger, {
261
+ "data-slot": "note-status",
262
+ "aria-label": t4,
263
+ className: t5,
264
+ children: [t6, t7]
265
+ });
266
+ $[23] = labels.status;
267
+ $[24] = t5;
268
+ $[25] = t8;
269
+ } else t8 = $[25];
270
+ let t9;
271
+ if ($[26] !== labels || $[27] !== statuses) {
272
+ let t10;
273
+ if ($[29] !== labels) {
274
+ t10 = (status_1) => /* @__PURE__ */ jsxs(SelectItem$1, {
275
+ value: status_1,
276
+ label: labels[status_1],
277
+ children: [
278
+ /* @__PURE__ */ jsx(SelectItemIcon$1, { children: /* @__PURE__ */ jsx(NoteStatusIcon, { status: status_1 }) }),
279
+ /* @__PURE__ */ jsx(SelectItemText$1, {}),
280
+ /* @__PURE__ */ jsx(SelectItemIndicator$1, {})
281
+ ]
282
+ }, status_1);
283
+ $[29] = labels;
284
+ $[30] = t10;
285
+ } else t10 = $[30];
286
+ t9 = statuses.map(t10);
287
+ $[26] = labels;
288
+ $[27] = statuses;
289
+ $[28] = t9;
290
+ } else t9 = $[28];
291
+ let t10;
292
+ if ($[31] !== t9) {
293
+ t10 = /* @__PURE__ */ jsx(SelectContent$1, { children: t9 });
294
+ $[31] = t9;
295
+ $[32] = t10;
296
+ } else t10 = $[32];
297
+ let t11;
298
+ if ($[33] !== T0 || $[34] !== props || $[35] !== t10 || $[36] !== t2 || $[37] !== t8) {
299
+ t11 = /* @__PURE__ */ jsxs(T0, {
300
+ items: t2,
301
+ ...props,
302
+ children: [t8, t10]
303
+ });
304
+ $[33] = T0;
305
+ $[34] = props;
306
+ $[35] = t10;
307
+ $[36] = t2;
308
+ $[37] = t8;
309
+ $[38] = t11;
310
+ } else t11 = $[38];
311
+ return t11;
312
+ }
313
+ function _temp(state) {
314
+ return /* @__PURE__ */ jsxs(Fragment, { children: [typeof state.value === "string" && /* @__PURE__ */ jsx(NoteStatusIcon, { status: state.value }), /* @__PURE__ */ jsx("span", {
315
+ className: "truncate",
316
+ children: state.label
317
+ })] });
318
+ }
319
+ /**
320
+ * Who is writing in a note right now, as small dots in their colors: at the
321
+ * end of the note's row in a list. Decorative: the row's own text and the
322
+ * note say who is there.
323
+ */
324
+ function NoteLiveDots(t0) {
325
+ const $ = c(14);
326
+ let className;
327
+ let people;
328
+ let props;
329
+ let t1;
330
+ if ($[0] !== t0) {
331
+ ({people, max: t1, className, ...props} = t0);
332
+ $[0] = t0;
333
+ $[1] = className;
334
+ $[2] = people;
335
+ $[3] = props;
336
+ $[4] = t1;
337
+ } else {
338
+ className = $[1];
339
+ people = $[2];
340
+ props = $[3];
341
+ t1 = $[4];
342
+ }
343
+ const max = t1 === void 0 ? 3 : t1;
344
+ if (people.length === 0) return null;
345
+ let t2;
346
+ if ($[5] !== className) {
347
+ t2 = cn("flex shrink-0 items-center gap-0.5", className);
348
+ $[5] = className;
349
+ $[6] = t2;
350
+ } else t2 = $[6];
351
+ let t3;
352
+ if ($[7] !== max || $[8] !== people) {
353
+ t3 = people.slice(0, max).map(_temp2);
354
+ $[7] = max;
355
+ $[8] = people;
356
+ $[9] = t3;
357
+ } else t3 = $[9];
358
+ let t4;
359
+ if ($[10] !== props || $[11] !== t2 || $[12] !== t3) {
360
+ t4 = /* @__PURE__ */ jsx("span", {
361
+ "aria-hidden": "true",
362
+ "data-slot": "note-live-dots",
363
+ className: t2,
364
+ ...props,
365
+ children: t3
366
+ });
367
+ $[10] = props;
368
+ $[11] = t2;
369
+ $[12] = t3;
370
+ $[13] = t4;
371
+ } else t4 = $[13];
372
+ return t4;
373
+ }
374
+ function _temp2(person) {
375
+ return /* @__PURE__ */ jsx("span", {
376
+ className: "size-1.5 rounded-full bg-(--presence)",
377
+ style: { "--presence": personColor(person) }
378
+ }, person.id);
379
+ }
380
+ export { NoteLiveDots, NoteStatusIcon, NoteStatusSelect, createSelectController as createNoteStatusController, noteStatuses };
@@ -0,0 +1,12 @@
1
+ import { ComponentProps } from "react";
2
+ import { NumberInput as NumberInput$1, NumberInputControl as NumberInputControl$1, NumberInputDecrement as NumberInputDecrement$1, NumberInputGroup as NumberInputGroup$1, NumberInputIncrement as NumberInputIncrement$1, NumberInputScrubArea as NumberInputScrubArea$1, NumberInputScrubAreaCursor as NumberInputScrubAreaCursor$1, createNumberInputController } from "@ui-sdk/react/number-input";
3
+ declare function NumberInput({ className, ...props }: ComponentProps<typeof NumberInput$1>): import("react").JSX.Element;
4
+ declare function NumberInputScrubArea({ className, ...props }: ComponentProps<typeof NumberInputScrubArea$1>): import("react").JSX.Element;
5
+ declare function NumberInputScrubAreaCursor({ className, ...props }: ComponentProps<typeof NumberInputScrubAreaCursor$1>): import("react").JSX.Element;
6
+ declare function NumberInputGroup({ className, ...props }: ComponentProps<typeof NumberInputGroup$1>): import("react").JSX.Element;
7
+ /** Steps down. Name it with `aria-label`. Without children it draws a minus icon. */
8
+ declare function NumberInputDecrement({ className, children, ...props }: ComponentProps<typeof NumberInputDecrement$1>): import("react").JSX.Element;
9
+ declare function NumberInputControl({ className, ...props }: ComponentProps<typeof NumberInputControl$1>): import("react").JSX.Element;
10
+ /** Steps up. Name it with `aria-label`. Without children it draws a plus icon. */
11
+ declare function NumberInputIncrement({ className, children, ...props }: ComponentProps<typeof NumberInputIncrement$1>): import("react").JSX.Element;
12
+ export { NumberInput, NumberInputControl, NumberInputDecrement, NumberInputGroup, NumberInputIncrement, NumberInputScrubArea, NumberInputScrubAreaCursor, createNumberInputController };
@@ -0,0 +1,252 @@
1
+ "use client";
2
+ import { cnState } from "../../utilities/cn/index.js";
3
+ import { Icon } from "../icon/icon.js";
4
+ import { inputClasses } from "../input/input.js";
5
+ import { c } from "react/compiler-runtime";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { MinusSignIcon, PlusSignIcon } from "@hugeicons/core-free-icons";
8
+ import { NumberInput as NumberInput$1, NumberInputControl as NumberInputControl$1, NumberInputDecrement as NumberInputDecrement$1, NumberInputGroup as NumberInputGroup$1, NumberInputIncrement as NumberInputIncrement$1, NumberInputScrubArea as NumberInputScrubArea$1, NumberInputScrubAreaCursor as NumberInputScrubAreaCursor$1, createNumberInputController } from "@ui-sdk/react/number-input";
9
+ // src/components/number-input/number-input.tsx
10
+ function NumberInput(t0) {
11
+ const $ = c(8);
12
+ let className;
13
+ let props;
14
+ if ($[0] !== t0) {
15
+ ({className, ...props} = t0);
16
+ $[0] = t0;
17
+ $[1] = className;
18
+ $[2] = props;
19
+ } else {
20
+ className = $[1];
21
+ props = $[2];
22
+ }
23
+ let t1;
24
+ if ($[3] !== className) {
25
+ t1 = cnState("flex w-full flex-col gap-2", className);
26
+ $[3] = className;
27
+ $[4] = t1;
28
+ } else t1 = $[4];
29
+ let t2;
30
+ if ($[5] !== props || $[6] !== t1) {
31
+ t2 = /* @__PURE__ */ jsx(NumberInput$1, {
32
+ className: t1,
33
+ ...props
34
+ });
35
+ $[5] = props;
36
+ $[6] = t1;
37
+ $[7] = t2;
38
+ } else t2 = $[7];
39
+ return t2;
40
+ }
41
+ function NumberInputScrubArea(t0) {
42
+ const $ = c(8);
43
+ let className;
44
+ let props;
45
+ if ($[0] !== t0) {
46
+ ({className, ...props} = t0);
47
+ $[0] = t0;
48
+ $[1] = className;
49
+ $[2] = props;
50
+ } else {
51
+ className = $[1];
52
+ props = $[2];
53
+ }
54
+ let t1;
55
+ if ($[3] !== className) {
56
+ t1 = cnState("inline-flex w-fit cursor-ew-resize items-center select-none data-[orientation=vertical]:cursor-ns-resize data-disabled:cursor-default data-readonly:cursor-default", className);
57
+ $[3] = className;
58
+ $[4] = t1;
59
+ } else t1 = $[4];
60
+ let t2;
61
+ if ($[5] !== props || $[6] !== t1) {
62
+ t2 = /* @__PURE__ */ jsx(NumberInputScrubArea$1, {
63
+ className: t1,
64
+ ...props
65
+ });
66
+ $[5] = props;
67
+ $[6] = t1;
68
+ $[7] = t2;
69
+ } else t2 = $[7];
70
+ return t2;
71
+ }
72
+ function NumberInputScrubAreaCursor(t0) {
73
+ const $ = c(8);
74
+ let className;
75
+ let props;
76
+ if ($[0] !== t0) {
77
+ ({className, ...props} = t0);
78
+ $[0] = t0;
79
+ $[1] = className;
80
+ $[2] = props;
81
+ } else {
82
+ className = $[1];
83
+ props = $[2];
84
+ }
85
+ let t1;
86
+ if ($[3] !== className) {
87
+ t1 = cnState("z-50 -mt-2 -ml-2 text-foreground", className);
88
+ $[3] = className;
89
+ $[4] = t1;
90
+ } else t1 = $[4];
91
+ let t2;
92
+ if ($[5] !== props || $[6] !== t1) {
93
+ t2 = /* @__PURE__ */ jsx(NumberInputScrubAreaCursor$1, {
94
+ className: t1,
95
+ ...props
96
+ });
97
+ $[5] = props;
98
+ $[6] = t1;
99
+ $[7] = t2;
100
+ } else t2 = $[7];
101
+ return t2;
102
+ }
103
+ function NumberInputGroup(t0) {
104
+ const $ = c(8);
105
+ let className;
106
+ let props;
107
+ if ($[0] !== t0) {
108
+ ({className, ...props} = t0);
109
+ $[0] = t0;
110
+ $[1] = className;
111
+ $[2] = props;
112
+ } else {
113
+ className = $[1];
114
+ props = $[2];
115
+ }
116
+ let t1;
117
+ if ($[3] !== className) {
118
+ t1 = cnState("group/number-input flex w-full items-center rounded-full has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20", className);
119
+ $[3] = className;
120
+ $[4] = t1;
121
+ } else t1 = $[4];
122
+ let t2;
123
+ if ($[5] !== props || $[6] !== t1) {
124
+ t2 = /* @__PURE__ */ jsx(NumberInputGroup$1, {
125
+ className: t1,
126
+ ...props
127
+ });
128
+ $[5] = props;
129
+ $[6] = t1;
130
+ $[7] = t2;
131
+ } else t2 = $[7];
132
+ return t2;
133
+ }
134
+ const stepClasses = "flex h-9 w-10 shrink-0 items-center justify-center border border-input text-foreground transition-colors hover:bg-accent focus-ring-inset data-disabled:pointer-events-none data-disabled:*:opacity-50 group-has-aria-invalid/number-input:border-destructive group-data-disabled/number-input:bg-input/50 group-data-disabled/number-input:opacity-50 group-data-disabled/number-input:*:opacity-100! dark:bg-input/30";
135
+ /** Steps down. Name it with `aria-label`. Without children it draws a minus icon. */
136
+ function NumberInputDecrement(t0) {
137
+ const $ = c(12);
138
+ let children;
139
+ let className;
140
+ let props;
141
+ if ($[0] !== t0) {
142
+ ({className, children, ...props} = t0);
143
+ $[0] = t0;
144
+ $[1] = children;
145
+ $[2] = className;
146
+ $[3] = props;
147
+ } else {
148
+ children = $[1];
149
+ className = $[2];
150
+ props = $[3];
151
+ }
152
+ let t1;
153
+ if ($[4] !== className) {
154
+ t1 = cnState([stepClasses, "rounded-s-full border-e-0"], className);
155
+ $[4] = className;
156
+ $[5] = t1;
157
+ } else t1 = $[5];
158
+ let t2;
159
+ if ($[6] !== children) {
160
+ t2 = children ?? /* @__PURE__ */ jsx(Icon, { icon: MinusSignIcon });
161
+ $[6] = children;
162
+ $[7] = t2;
163
+ } else t2 = $[7];
164
+ let t3;
165
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
166
+ t3 = /* @__PURE__ */ jsx(NumberInputDecrement$1, {
167
+ className: t1,
168
+ ...props,
169
+ children: t2
170
+ });
171
+ $[8] = props;
172
+ $[9] = t1;
173
+ $[10] = t2;
174
+ $[11] = t3;
175
+ } else t3 = $[11];
176
+ return t3;
177
+ }
178
+ function NumberInputControl(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([inputClasses, "flex-1 tabular-nums group-has-aria-invalid/number-input:ring-0! [[data-slot=number-input-decrement]+&]:rounded-s-none [[data-slot=number-input-decrement]+&]:-outline-offset-2 [&:has(+[data-slot=number-input-increment])]:rounded-e-none [&:has(+[data-slot=number-input-increment])]:-outline-offset-2"], className);
194
+ $[3] = className;
195
+ $[4] = t1;
196
+ } else t1 = $[4];
197
+ let t2;
198
+ if ($[5] !== props || $[6] !== t1) {
199
+ t2 = /* @__PURE__ */ jsx(NumberInputControl$1, {
200
+ className: t1,
201
+ ...props
202
+ });
203
+ $[5] = props;
204
+ $[6] = t1;
205
+ $[7] = t2;
206
+ } else t2 = $[7];
207
+ return t2;
208
+ }
209
+ /** Steps up. Name it with `aria-label`. Without children it draws a plus icon. */
210
+ function NumberInputIncrement(t0) {
211
+ const $ = c(12);
212
+ let children;
213
+ let className;
214
+ let props;
215
+ if ($[0] !== t0) {
216
+ ({className, children, ...props} = t0);
217
+ $[0] = t0;
218
+ $[1] = children;
219
+ $[2] = className;
220
+ $[3] = props;
221
+ } else {
222
+ children = $[1];
223
+ className = $[2];
224
+ props = $[3];
225
+ }
226
+ let t1;
227
+ if ($[4] !== className) {
228
+ t1 = cnState([stepClasses, "rounded-e-full border-s-0"], className);
229
+ $[4] = className;
230
+ $[5] = t1;
231
+ } else t1 = $[5];
232
+ let t2;
233
+ if ($[6] !== children) {
234
+ t2 = children ?? /* @__PURE__ */ jsx(Icon, { icon: PlusSignIcon });
235
+ $[6] = children;
236
+ $[7] = t2;
237
+ } else t2 = $[7];
238
+ let t3;
239
+ if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
240
+ t3 = /* @__PURE__ */ jsx(NumberInputIncrement$1, {
241
+ className: t1,
242
+ ...props,
243
+ children: t2
244
+ });
245
+ $[8] = props;
246
+ $[9] = t1;
247
+ $[10] = t2;
248
+ $[11] = t3;
249
+ } else t3 = $[11];
250
+ return t3;
251
+ }
252
+ export { NumberInput, NumberInputControl, NumberInputDecrement, NumberInputGroup, NumberInputIncrement, NumberInputScrubArea, NumberInputScrubAreaCursor, createNumberInputController };