@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,20 @@
1
+ import { ComponentProps } from "react";
2
+ import { WaterfallAxis as WaterfallAxis$1, WaterfallBar as WaterfallBar$1, WaterfallBarLabelDetails, WaterfallCell as WaterfallCell$1, WaterfallColumnHeader as WaterfallColumnHeader$1, WaterfallData, WaterfallDataItem, WaterfallDataRow, WaterfallHeaderRow as WaterfallHeaderRow$1, WaterfallIndicator as WaterfallIndicator$1, WaterfallMark as WaterfallMark$1, WaterfallProps, WaterfallRow as WaterfallRow$1, WaterfallRowHeader as WaterfallRowHeader$1, WaterfallTick as WaterfallTick$1, createWaterfallController, visibleWaterfallRows } from "@ui-sdk/react/waterfall";
3
+ /** Without children it renders a row for every span in `items`, with its name and bar. */
4
+ declare function Waterfall({ className, children, ...props }: WaterfallProps): import("react").JSX.Element;
5
+ declare function WaterfallHeaderRow({ className, ...props }: ComponentProps<typeof WaterfallHeaderRow$1>): import("react").JSX.Element;
6
+ /** The first one heads the names, the last one the time axis, and the ones between a `WaterfallCell` each. */
7
+ declare function WaterfallColumnHeader({ className, ...props }: ComponentProps<typeof WaterfallColumnHeader$1>): import("react").JSX.Element;
8
+ declare function WaterfallAxis({ className, children, ...props }: ComponentProps<typeof WaterfallAxis$1>): import("react").JSX.Element;
9
+ declare function WaterfallTick({ className, ...props }: ComponentProps<typeof WaterfallTick$1>): import("react").JSX.Element;
10
+ /** A named moment. Its line runs down through every row, and the waterfall clips it. */
11
+ declare function WaterfallMark({ className, ...props }: ComponentProps<typeof WaterfallMark$1>): import("react").JSX.Element;
12
+ declare function WaterfallRow({ className, ...props }: ComponentProps<typeof WaterfallRow$1>): import("react").JSX.Element;
13
+ /** The span's name, indented by its depth. A span with no indicator lines up with the ones that have it. */
14
+ declare function WaterfallRowHeader({ className, ...props }: ComponentProps<typeof WaterfallRowHeader$1>): import("react").JSX.Element;
15
+ /** Without children it shows a chevron that turns down while the span is expanded. */
16
+ declare function WaterfallIndicator({ className, children, ...props }: ComponentProps<typeof WaterfallIndicator$1>): import("react").JSX.Element;
17
+ declare function WaterfallCell({ className, ...props }: ComponentProps<typeof WaterfallCell$1>): import("react").JSX.Element;
18
+ /** The span's bar, placed on the time axis by the row's `--waterfall-start` and `--waterfall-size`. */
19
+ declare function WaterfallBar({ className, ...props }: ComponentProps<typeof WaterfallBar$1>): import("react").JSX.Element;
20
+ export { Waterfall, WaterfallAxis, WaterfallBar, type WaterfallBarLabelDetails, WaterfallCell, WaterfallColumnHeader, type WaterfallData, type WaterfallDataItem, type WaterfallDataRow, WaterfallHeaderRow, WaterfallIndicator, WaterfallMark, type WaterfallProps, WaterfallRow, WaterfallRowHeader, WaterfallTick, createWaterfallController, visibleWaterfallRows };
@@ -0,0 +1,360 @@
1
+ "use client";
2
+ import { cnState } from "../../utilities/cn/index.js";
3
+ import { Icon } from "../icon/icon.js";
4
+ import { c } from "react/compiler-runtime";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { ArrowRight01Icon } from "@hugeicons/core-free-icons";
7
+ import { Waterfall as Waterfall$1, WaterfallAxis as WaterfallAxis$1, WaterfallBar as WaterfallBar$1, WaterfallCell as WaterfallCell$1, WaterfallColumnHeader as WaterfallColumnHeader$1, WaterfallHeaderRow as WaterfallHeaderRow$1, WaterfallIndicator as WaterfallIndicator$1, WaterfallMark as WaterfallMark$1, WaterfallRow as WaterfallRow$1, WaterfallRowHeader as WaterfallRowHeader$1, WaterfallTick as WaterfallTick$1, createWaterfallController, visibleWaterfallRows } from "@ui-sdk/react/waterfall";
8
+ // src/components/waterfall/waterfall.tsx
9
+ /** Every span in the tree, parents before their children. */
10
+ function allSpans(items) {
11
+ return items.flatMap((item) => [item, ...allSpans(item.children ?? [])]);
12
+ }
13
+ /** Every span as a styled row. The waterfall hides the ones inside a collapsed span. */
14
+ const dataRows = (items) => allSpans(items).map((item) => /* @__PURE__ */ jsxs(WaterfallRow, {
15
+ value: item.value,
16
+ children: [/* @__PURE__ */ jsxs(WaterfallRowHeader, { children: [item.children && /* @__PURE__ */ jsx(WaterfallIndicator, {}), item.label] }), /* @__PURE__ */ jsx(WaterfallBar, {})]
17
+ }, item.value));
18
+ /** Without children it renders a row for every span in `items`, with its name and bar. */
19
+ function Waterfall(t0) {
20
+ const $ = c(12);
21
+ let T0;
22
+ let t1;
23
+ let t2;
24
+ let t3;
25
+ if ($[0] !== t0) {
26
+ const { className, children, ...props } = t0;
27
+ T0 = Waterfall$1;
28
+ if ($[5] !== className) {
29
+ t1 = cnState("relative flex w-full flex-col overflow-clip text-sm", className);
30
+ $[5] = className;
31
+ $[6] = t1;
32
+ } else t1 = $[6];
33
+ t2 = props;
34
+ t3 = children ?? dataRows(props.items);
35
+ $[0] = t0;
36
+ $[1] = T0;
37
+ $[2] = t1;
38
+ $[3] = t2;
39
+ $[4] = t3;
40
+ } else {
41
+ T0 = $[1];
42
+ t1 = $[2];
43
+ t2 = $[3];
44
+ t3 = $[4];
45
+ }
46
+ let t4;
47
+ if ($[7] !== T0 || $[8] !== t1 || $[9] !== t2 || $[10] !== t3) {
48
+ t4 = /* @__PURE__ */ jsx(T0, {
49
+ className: t1,
50
+ ...t2,
51
+ children: t3
52
+ });
53
+ $[7] = T0;
54
+ $[8] = t1;
55
+ $[9] = t2;
56
+ $[10] = t3;
57
+ $[11] = t4;
58
+ } else t4 = $[11];
59
+ return t4;
60
+ }
61
+ function WaterfallHeaderRow(t0) {
62
+ const $ = c(8);
63
+ let className;
64
+ let props;
65
+ if ($[0] !== t0) {
66
+ ({className, ...props} = t0);
67
+ $[0] = t0;
68
+ $[1] = className;
69
+ $[2] = props;
70
+ } else {
71
+ className = $[1];
72
+ props = $[2];
73
+ }
74
+ let t1;
75
+ if ($[3] !== className) {
76
+ t1 = cnState("flex h-10 shrink-0 items-stretch border-b border-border", className);
77
+ $[3] = className;
78
+ $[4] = t1;
79
+ } else t1 = $[4];
80
+ let t2;
81
+ if ($[5] !== props || $[6] !== t1) {
82
+ t2 = /* @__PURE__ */ jsx(WaterfallHeaderRow$1, {
83
+ className: t1,
84
+ ...props
85
+ });
86
+ $[5] = props;
87
+ $[6] = t1;
88
+ $[7] = t2;
89
+ } else t2 = $[7];
90
+ return t2;
91
+ }
92
+ /** The first one heads the names, the last one the time axis, and the ones between a `WaterfallCell` each. */
93
+ function WaterfallColumnHeader(t0) {
94
+ const $ = c(8);
95
+ let className;
96
+ let props;
97
+ if ($[0] !== t0) {
98
+ ({className, ...props} = t0);
99
+ $[0] = t0;
100
+ $[1] = className;
101
+ $[2] = props;
102
+ } else {
103
+ className = $[1];
104
+ props = $[2];
105
+ }
106
+ let t1;
107
+ if ($[3] !== className) {
108
+ t1 = cnState("relative flex w-24 shrink-0 items-end px-2 pb-1.5 text-xs font-medium text-muted-foreground first:w-48 last:w-auto last:min-w-0 last:flex-1 last:px-0", className);
109
+ $[3] = className;
110
+ $[4] = t1;
111
+ } else t1 = $[4];
112
+ let t2;
113
+ if ($[5] !== props || $[6] !== t1) {
114
+ t2 = /* @__PURE__ */ jsx(WaterfallColumnHeader$1, {
115
+ className: t1,
116
+ ...props
117
+ });
118
+ $[5] = props;
119
+ $[6] = t1;
120
+ $[7] = t2;
121
+ } else t2 = $[7];
122
+ return t2;
123
+ }
124
+ /** What an axis with no children shows: a styled tick at each round time. */
125
+ const dataTicks = (state) => state.ticks.map((tick) => /* @__PURE__ */ jsx(WaterfallTick, { time: tick.time }, tick.time));
126
+ function WaterfallAxis(t0) {
127
+ const $ = c(10);
128
+ let className;
129
+ let props;
130
+ let t1;
131
+ if ($[0] !== t0) {
132
+ ({className, children: t1, ...props} = t0);
133
+ $[0] = t0;
134
+ $[1] = className;
135
+ $[2] = props;
136
+ $[3] = t1;
137
+ } else {
138
+ className = $[1];
139
+ props = $[2];
140
+ t1 = $[3];
141
+ }
142
+ const children = t1 === void 0 ? dataTicks : t1;
143
+ let t2;
144
+ if ($[4] !== className) {
145
+ t2 = cnState("relative h-4 w-full overflow-hidden", className);
146
+ $[4] = className;
147
+ $[5] = t2;
148
+ } else t2 = $[5];
149
+ let t3;
150
+ if ($[6] !== children || $[7] !== props || $[8] !== t2) {
151
+ t3 = /* @__PURE__ */ jsx(WaterfallAxis$1, {
152
+ className: t2,
153
+ ...props,
154
+ children
155
+ });
156
+ $[6] = children;
157
+ $[7] = props;
158
+ $[8] = t2;
159
+ $[9] = t3;
160
+ } else t3 = $[9];
161
+ return t3;
162
+ }
163
+ function WaterfallTick(t0) {
164
+ const $ = c(8);
165
+ let className;
166
+ let props;
167
+ if ($[0] !== t0) {
168
+ ({className, ...props} = t0);
169
+ $[0] = t0;
170
+ $[1] = className;
171
+ $[2] = props;
172
+ } else {
173
+ className = $[1];
174
+ props = $[2];
175
+ }
176
+ let t1;
177
+ if ($[3] !== className) {
178
+ t1 = cnState("absolute inset-y-0 start-(--waterfall-tick) border-s border-border ps-1 text-xs leading-4 font-normal whitespace-nowrap text-muted-foreground tabular-nums", className);
179
+ $[3] = className;
180
+ $[4] = t1;
181
+ } else t1 = $[4];
182
+ let t2;
183
+ if ($[5] !== props || $[6] !== t1) {
184
+ t2 = /* @__PURE__ */ jsx(WaterfallTick$1, {
185
+ className: t1,
186
+ ...props
187
+ });
188
+ $[5] = props;
189
+ $[6] = t1;
190
+ $[7] = t2;
191
+ } else t2 = $[7];
192
+ return t2;
193
+ }
194
+ /** A named moment. Its line runs down through every row, and the waterfall clips it. */
195
+ function WaterfallMark(t0) {
196
+ const $ = c(8);
197
+ let className;
198
+ let props;
199
+ if ($[0] !== t0) {
200
+ ({className, ...props} = t0);
201
+ $[0] = t0;
202
+ $[1] = className;
203
+ $[2] = props;
204
+ } else {
205
+ className = $[1];
206
+ props = $[2];
207
+ }
208
+ let t1;
209
+ if ($[3] !== className) {
210
+ t1 = cnState("pointer-events-none absolute top-0 bottom-0 start-(--waterfall-mark) z-10 border-s border-ring ps-1 pt-1 text-xs leading-4 font-normal whitespace-nowrap text-foreground after:absolute after:top-full after:-start-px after:h-[1000vh] after:border-s after:border-ring data-outside:hidden", className);
211
+ $[3] = className;
212
+ $[4] = t1;
213
+ } else t1 = $[4];
214
+ let t2;
215
+ if ($[5] !== props || $[6] !== t1) {
216
+ t2 = /* @__PURE__ */ jsx(WaterfallMark$1, {
217
+ className: t1,
218
+ ...props
219
+ });
220
+ $[5] = props;
221
+ $[6] = t1;
222
+ $[7] = t2;
223
+ } else t2 = $[7];
224
+ return t2;
225
+ }
226
+ function WaterfallRow(t0) {
227
+ const $ = c(8);
228
+ let className;
229
+ let props;
230
+ if ($[0] !== t0) {
231
+ ({className, ...props} = t0);
232
+ $[0] = t0;
233
+ $[1] = className;
234
+ $[2] = props;
235
+ } else {
236
+ className = $[1];
237
+ props = $[2];
238
+ }
239
+ let t1;
240
+ if ($[3] !== className) {
241
+ t1 = cnState("flex h-8 shrink-0 cursor-default items-stretch rounded-lg focus-ring-inset select-none hover:bg-accent/50 data-selected:bg-accent data-selected:font-medium data-selected:text-accent-foreground", className);
242
+ $[3] = className;
243
+ $[4] = t1;
244
+ } else t1 = $[4];
245
+ let t2;
246
+ if ($[5] !== props || $[6] !== t1) {
247
+ t2 = /* @__PURE__ */ jsx(WaterfallRow$1, {
248
+ className: t1,
249
+ ...props
250
+ });
251
+ $[5] = props;
252
+ $[6] = t1;
253
+ $[7] = t2;
254
+ } else t2 = $[7];
255
+ return t2;
256
+ }
257
+ /** The span's name, indented by its depth. A span with no indicator lines up with the ones that have it. */
258
+ function WaterfallRowHeader(t0) {
259
+ const $ = c(8);
260
+ let className;
261
+ let props;
262
+ if ($[0] !== t0) {
263
+ ({className, ...props} = t0);
264
+ $[0] = t0;
265
+ $[1] = className;
266
+ $[2] = props;
267
+ } else {
268
+ className = $[1];
269
+ props = $[2];
270
+ }
271
+ let t1;
272
+ if ($[3] !== className) {
273
+ t1 = cnState("flex w-48 shrink-0 items-center gap-1 overflow-hidden rounded-lg ps-[calc((var(--waterfall-level)-1)*--spacing(4)+--spacing(2))] pe-2 whitespace-nowrap focus-ring-inset in-has-[[data-slot=waterfall-indicator]]:not-has-[[data-slot=waterfall-indicator]]:ps-[calc((var(--waterfall-level)-1)*--spacing(4)+--spacing(7))]", className);
274
+ $[3] = className;
275
+ $[4] = t1;
276
+ } else t1 = $[4];
277
+ let t2;
278
+ if ($[5] !== props || $[6] !== t1) {
279
+ t2 = /* @__PURE__ */ jsx(WaterfallRowHeader$1, {
280
+ className: t1,
281
+ ...props
282
+ });
283
+ $[5] = props;
284
+ $[6] = t1;
285
+ $[7] = t2;
286
+ } else t2 = $[7];
287
+ return t2;
288
+ }
289
+ /** Without children it shows a chevron that turns down while the span is expanded. */
290
+ function WaterfallIndicator({ className, children = /* @__PURE__ */ jsx(Icon, { icon: ArrowRight01Icon }), ...props }) {
291
+ return /* @__PURE__ */ jsx(WaterfallIndicator$1, {
292
+ className: cnState("flex size-4 shrink-0 items-center justify-center rounded-sm text-muted-foreground transition-transform ease-out hover:text-foreground data-expanded:rotate-90 rtl:-scale-x-100 [&_svg]:pointer-events-none", className),
293
+ ...props,
294
+ children
295
+ });
296
+ }
297
+ function WaterfallCell(t0) {
298
+ const $ = c(8);
299
+ let className;
300
+ let props;
301
+ if ($[0] !== t0) {
302
+ ({className, ...props} = t0);
303
+ $[0] = t0;
304
+ $[1] = className;
305
+ $[2] = props;
306
+ } else {
307
+ className = $[1];
308
+ props = $[2];
309
+ }
310
+ let t1;
311
+ if ($[3] !== className) {
312
+ t1 = cnState("flex w-24 shrink-0 items-center overflow-hidden rounded-lg px-2 whitespace-nowrap text-muted-foreground tabular-nums focus-ring-inset data-selected:text-accent-foreground", className);
313
+ $[3] = className;
314
+ $[4] = t1;
315
+ } else t1 = $[4];
316
+ let t2;
317
+ if ($[5] !== props || $[6] !== t1) {
318
+ t2 = /* @__PURE__ */ jsx(WaterfallCell$1, {
319
+ className: t1,
320
+ ...props
321
+ });
322
+ $[5] = props;
323
+ $[6] = t1;
324
+ $[7] = t2;
325
+ } else t2 = $[7];
326
+ return t2;
327
+ }
328
+ /** The span's bar, placed on the time axis by the row's `--waterfall-start` and `--waterfall-size`. */
329
+ function WaterfallBar(t0) {
330
+ const $ = c(8);
331
+ let className;
332
+ let props;
333
+ if ($[0] !== t0) {
334
+ ({className, ...props} = t0);
335
+ $[0] = t0;
336
+ $[1] = className;
337
+ $[2] = props;
338
+ } else {
339
+ className = $[1];
340
+ props = $[2];
341
+ }
342
+ let t1;
343
+ if ($[3] !== className) {
344
+ t1 = cnState("relative min-w-0 flex-1 rounded-lg focus-ring-inset before:absolute before:inset-y-2 before:start-(--waterfall-start) before:w-(--waterfall-size) before:min-w-0.5 before:rounded-sm before:bg-primary", className);
345
+ $[3] = className;
346
+ $[4] = t1;
347
+ } else t1 = $[4];
348
+ let t2;
349
+ if ($[5] !== props || $[6] !== t1) {
350
+ t2 = /* @__PURE__ */ jsx(WaterfallBar$1, {
351
+ className: t1,
352
+ ...props
353
+ });
354
+ $[5] = props;
355
+ $[6] = t1;
356
+ $[7] = t2;
357
+ } else t2 = $[7];
358
+ return t2;
359
+ }
360
+ export { Waterfall, WaterfallAxis, WaterfallBar, WaterfallCell, WaterfallColumnHeader, WaterfallHeaderRow, WaterfallIndicator, WaterfallMark, WaterfallRow, WaterfallRowHeader, WaterfallTick, createWaterfallController, visibleWaterfallRows };
@@ -0,0 +1,177 @@
1
+ import { index_d_exports } from "../../core/index.js";
2
+ import { ChangeDetails } from "../../core/ui-sdk.js";
3
+ import { ButtonLook } from "../button/button.js";
4
+ import { DateMatchers } from "../calendar/calendar.js";
5
+ import { ReactNode } from "react";
6
+ /** The colors a mark can take. A mark never says something by color alone: its label does. */
7
+ type WeekStripTone = "primary" | "muted" | "destructive" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5";
8
+ /** What's on a day. Screen readers and agents hear `label` and `description` after the date. */
9
+ type WeekStripMark = {
10
+ /** Up to three dots under the day number. */
11
+ dots?: readonly WeekStripTone[];
12
+ /** A short text, like "3 free", in place of the dots. */
13
+ label?: string;
14
+ /** A dot in the corner, for a day that needs attention. `true` is `"destructive"`. */
15
+ corner?: boolean | WeekStripTone;
16
+ /** What the dots or the corner mean, read after the date and the label. */
17
+ description?: string;
18
+ };
19
+ type WeekStripSize = "sm" | "md";
20
+ type WeekStripValueChangeReason = "item-press" | "imperative";
21
+ type WeekStripWeekChangeReason = "previous-press" | "next-press" | "list-navigation" | "imperative";
22
+ /** Drives a week strip from anywhere. Pass it as the `controller` prop. */
23
+ type WeekStripController = {
24
+ /** The selected day, or `null`. */
25
+ getValue: () => string | null;
26
+ /** Selects a day, showing its week. False when it can't be picked or the app refused it. */
27
+ setValue: (value: string | null) => boolean;
28
+ /** The first day shown. */
29
+ getWeek: () => string;
30
+ /** Shows the week a day is in. False in scroll mode, or when the app refused it. */
31
+ setWeek: (date: string) => boolean;
32
+ /** Shows the week before, as `WeekStripPrevious` does. */
33
+ previous: () => boolean;
34
+ /** Shows the week after, as `WeekStripNext` does. */
35
+ next: () => boolean;
36
+ /** Focuses a day shown, or the day with the tab stop. */
37
+ focus: (date?: string) => void;
38
+ };
39
+ type WeekStripOptions = {
40
+ /** The selected day, an ISO date like `"2026-11-14"`, or `null`. Pass it to control the strip. */
41
+ value?: string | null;
42
+ /** The day selected at first, when uncontrolled. */
43
+ defaultValue?: string | null;
44
+ /** Runs when a day is pressed, with Enter or Space too, or a controller sets it. `details.cancel()` keeps the value. */
45
+ onValueChange?: (value: string | null, details: ChangeDetails<WeekStripValueChangeReason>) => void;
46
+ /** Any day of the week shown. Pass it to control the week. Ignored in scroll mode. */
47
+ week?: string;
48
+ /** Any day of the week shown at first. Defaults to the selected day's week, else this week. */
49
+ defaultWeek?: string;
50
+ /** Runs with the new week's first day when Previous, Next, a key or a controller wants another week. */
51
+ onWeekChange?: (week: string, details: ChangeDetails<WeekStripWeekChangeReason>) => void;
52
+ /** Shows `length` days from `start` in a row that scrolls sideways, instead of one week. */
53
+ scroll?: boolean;
54
+ /** The first day in scroll mode. Defaults to today. */
55
+ start?: string;
56
+ /** How many days scroll mode shows. 14 by default. */
57
+ length?: number;
58
+ /** The first day of the week, 0 for Sunday, or `"auto"` for the locale's. */
59
+ weekStartsOn?: number | "auto";
60
+ /** The language of the names and labels. Defaults to the page's `lang`, then the browser's. */
61
+ locale?: string;
62
+ /** The time zone that says what day today is, like `"America/New_York"`. Defaults to the browser's. */
63
+ timeZone?: string;
64
+ /** The day counted as today, for `aria-current` and the week shown first. Defaults to today in `timeZone`, read in the browser. */
65
+ today?: string;
66
+ /** Days that can't be picked, as Calendar's `unavailable` takes them. They stay focusable, so keyboard users hear them. */
67
+ unavailable?: DateMatchers;
68
+ /** Days drawn faded that can still be picked, like past days: `{ before: today }`. */
69
+ faded?: DateMatchers;
70
+ /** What's on each day: dots, a short label, a corner dot. */
71
+ marks?: (date: string) => WeekStripMark | undefined;
72
+ /** Whether nothing can be picked or focused. */
73
+ disabled?: boolean;
74
+ /** Drives the strip from anywhere. Create one with `createWeekStripController()`. */
75
+ controller?: WeekStripController;
76
+ };
77
+ type WeekStripRootState = {
78
+ value: string | null;
79
+ days: string[];
80
+ scroll: boolean;
81
+ disabled: boolean;
82
+ };
83
+ type WeekStripHeadingState = {
84
+ /** The month or months shown, like "November 2026". */
85
+ label: string;
86
+ };
87
+ type WeekStripStepState = {
88
+ /** Whether it can't change the week now. */
89
+ disabled: boolean;
90
+ };
91
+ type WeekStripDaysState = {
92
+ /** The days shown, as ISO dates. */
93
+ days: string[];
94
+ scroll: boolean;
95
+ };
96
+ type WeekStripDayState = {
97
+ date: string;
98
+ /** What screen readers and agents hear: the full date, then the mark's label and description. */
99
+ name: string;
100
+ /** The weekday's short name, like "Sat". */
101
+ weekday: string;
102
+ /** The day of the month in the locale's digits, like "14". */
103
+ label: string;
104
+ selected: boolean;
105
+ today: boolean;
106
+ /** Whether `unavailable` names it. */
107
+ unavailable: boolean;
108
+ /** Whether it can't be picked: unavailable, or the strip is disabled. */
109
+ disabled: boolean;
110
+ faded: boolean;
111
+ scroll: boolean;
112
+ marks: WeekStripMark | undefined;
113
+ };
114
+ /** Drives a week strip from anywhere: pass it as `controller`. */
115
+ declare function createWeekStripController(): WeekStripController;
116
+ /**
117
+ * The strip's state and the methods that change it, for a component inside
118
+ * `WeekStrip`. It re-renders when the state changes.
119
+ */
120
+ declare function useWeekStrip(): {
121
+ value: string | null;
122
+ week: string;
123
+ days: string[];
124
+ today: string | null;
125
+ setValue: (value: string | null) => boolean;
126
+ setWeek: (date: string) => boolean;
127
+ previous: () => boolean;
128
+ next: () => boolean;
129
+ focus: (date?: string) => void;
130
+ };
131
+ /**
132
+ * Previous, the heading and Next share the first row, and anything else takes
133
+ * a row of its own, as in Calendar.
134
+ */
135
+ declare const weekStripLayout = "grid grid-cols-[auto_1fr_auto] items-center gap-y-2 [&>*:not([data-slot=week-strip-previous],[data-slot=week-strip-heading],[data-slot=week-strip-next])]:col-span-full";
136
+ /** What a strip with no children shows: Previous, the heading, Next and the days, or only the days in scroll mode. */
137
+ declare function weekStripParts(scroll: boolean): ReactNode;
138
+ type WeekStripProps = WeekStripOptions & Omit<index_d_exports.PartProps<"div", WeekStripRootState>, "defaultValue"> & {
139
+ /** Names the strip for screen readers and agents. Set it in the page's language. */
140
+ label?: string;
141
+ /** How tall the days are. */
142
+ size?: WeekStripSize;
143
+ };
144
+ /** Without children it renders Previous, the heading, Next and the days; in scroll mode, only the days. */
145
+ declare function WeekStrip({ value, defaultValue, onValueChange, week, defaultWeek, onWeekChange, scroll, start, length, weekStartsOn, locale, timeZone, today, unavailable, faded, marks, disabled, controller, label, size, className, children, ...props }: WeekStripProps): import("react").JSX.Element | null;
146
+ /** The month or months shown, like "November 2026". Children replace the text. */
147
+ declare function WeekStripHeading({ className, children, ...props }: index_d_exports.PartProps<"h2", WeekStripHeadingState>): import("react").JSX.Element | null;
148
+ type WeekStripStepProps = index_d_exports.PartProps<"button", WeekStripStepState> & ButtonLook & {
149
+ /** The button's accessible name. Set it in the page's language. */
150
+ label?: string;
151
+ };
152
+ /** A ghost icon button that shows the week before. Its arrow follows the reading direction. */
153
+ declare function WeekStripPrevious({ variant, size, label, className, children, ...props }: WeekStripStepProps): import("react").JSX.Element | null;
154
+ /** A ghost icon button that shows the week after. Its arrow follows the reading direction. */
155
+ declare function WeekStripNext({ variant, size, label, className, children, ...props }: WeekStripStepProps): import("react").JSX.Element | null;
156
+ /** The listbox of days. Without children it renders a `WeekStripDay` for each day shown. */
157
+ declare function WeekStripDays({ className, children, ...props }: index_d_exports.PartProps<"div", WeekStripDaysState>): import("react").JSX.Element | null;
158
+ type WeekStripDayProps = Omit<index_d_exports.PartProps<"div", WeekStripDayState>, "value"> & {
159
+ /** Its ISO date. */
160
+ value: string;
161
+ };
162
+ /**
163
+ * One day: its weekday, its number and its marks. Its name, the full date with
164
+ * the mark's label, is read by screen readers whatever the children draw.
165
+ */
166
+ declare function WeekStripDay({ value, className, children, ...props }: WeekStripDayProps): import("react").JSX.Element | null;
167
+ type WeekStripMarksProps = {
168
+ marks: WeekStripMark | undefined;
169
+ className?: string;
170
+ };
171
+ /**
172
+ * A day's marks: its label, else up to three dots, and its corner dot. It
173
+ * keeps its height without marks, so every day lines up. Decorative: the
174
+ * day's name carries what they mean.
175
+ */
176
+ declare function WeekStripMarks({ marks, className }: WeekStripMarksProps): import("react").JSX.Element;
177
+ export { WeekStrip, type WeekStripController, WeekStripDay, type WeekStripDayProps, type WeekStripDayState, WeekStripDays, type WeekStripDaysState, WeekStripHeading, type WeekStripHeadingState, type WeekStripMark, WeekStripMarks, type WeekStripMarksProps, WeekStripNext, type WeekStripOptions, WeekStripPrevious, type WeekStripProps, type WeekStripRootState, type WeekStripSize, type WeekStripStepProps, type WeekStripStepState, type WeekStripTone, type WeekStripValueChangeReason, type WeekStripWeekChangeReason, createWeekStripController, useWeekStrip, weekStripLayout, weekStripParts };