meowtail 0.2.0-alpha.1 → 0.3.0-alpha.0

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 (561) hide show
  1. package/AGENT-COMPONENTS.md +2 -2
  2. package/ASSISTANT.md +5 -1
  3. package/CHANGELOG.md +96 -0
  4. package/COMPONENTS.md +342 -0
  5. package/README.md +195 -43
  6. package/THIRD_PARTY_NOTICES.md +47 -0
  7. package/dist/src/chat/assistant-composer.d.ts +10 -6
  8. package/dist/src/chat/assistant-composer.js +57 -135
  9. package/dist/src/chat/assistant-content.d.ts +28 -14
  10. package/dist/src/chat/assistant-content.js +87 -80
  11. package/dist/src/chat/assistant-markdown.d.ts +10 -7
  12. package/dist/src/chat/assistant-markdown.js +5 -9
  13. package/dist/src/chat/assistant-question.d.ts +9 -7
  14. package/dist/src/chat/assistant-question.js +31 -63
  15. package/dist/src/chat/assistant-scroll.d.ts +2 -0
  16. package/dist/src/chat/assistant-scroll.js +28 -1
  17. package/dist/src/chat/assistant-types.d.ts +22 -1
  18. package/dist/src/chat/assistant-types.js +7 -0
  19. package/dist/src/chat/assistant.d.ts +9 -6
  20. package/dist/src/chat/assistant.js +233 -200
  21. package/dist/src/chat/attachments.d.ts +11 -8
  22. package/dist/src/chat/attachments.js +45 -55
  23. package/dist/src/chat/bubble.d.ts +12 -13
  24. package/dist/src/chat/bubble.js +8 -13
  25. package/dist/src/chat/bubble.options.d.ts +3 -0
  26. package/dist/src/chat/bubble.options.js +4 -0
  27. package/dist/src/chat/composer-panel.d.ts +11 -11
  28. package/dist/src/chat/composer-panel.js +13 -8
  29. package/dist/src/chat/composer.d.ts +19 -19
  30. package/dist/src/chat/composer.js +62 -28
  31. package/dist/src/chat/composer.options.d.ts +4 -0
  32. package/dist/src/chat/composer.options.js +5 -0
  33. package/dist/src/chat/conversation.d.ts +19 -10
  34. package/dist/src/chat/conversation.js +22 -16
  35. package/dist/src/chat/frame.d.ts +10 -7
  36. package/dist/src/chat/frame.js +6 -3
  37. package/dist/src/chat/header.d.ts +10 -7
  38. package/dist/src/chat/header.js +14 -12
  39. package/dist/src/chat/index.d.ts +21 -17
  40. package/dist/src/chat/index.js +21 -17
  41. package/dist/src/chat/message-actions.d.ts +10 -7
  42. package/dist/src/chat/message-actions.js +6 -3
  43. package/dist/src/chat/message-context.d.ts +1 -1
  44. package/dist/src/chat/message-list.d.ts +32 -14
  45. package/dist/src/chat/message-list.js +19 -18
  46. package/dist/src/chat/message.d.ts +9 -7
  47. package/dist/src/chat/message.js +26 -19
  48. package/dist/src/chat/process.d.ts +9 -6
  49. package/dist/src/chat/process.js +13 -5
  50. package/dist/src/chat/question.d.ts +12 -7
  51. package/dist/src/chat/question.js +17 -4
  52. package/dist/src/chat/reasoning.d.ts +23 -0
  53. package/dist/src/chat/reasoning.js +28 -0
  54. package/dist/src/chat/sources.d.ts +12 -9
  55. package/dist/src/chat/sources.js +17 -8
  56. package/dist/src/chat/status.d.ts +13 -13
  57. package/dist/src/chat/status.js +11 -12
  58. package/dist/src/chat/status.options.d.ts +3 -0
  59. package/dist/src/chat/status.options.js +4 -0
  60. package/dist/src/chat/task.d.ts +8 -7
  61. package/dist/src/chat/task.js +46 -35
  62. package/dist/src/chat/tool-call.d.ts +10 -8
  63. package/dist/src/chat/tool-call.js +60 -58
  64. package/dist/src/components/accordion.d.ts +26 -0
  65. package/dist/src/components/accordion.js +44 -0
  66. package/dist/src/components/action-rail.d.ts +9 -7
  67. package/dist/src/components/action-rail.js +11 -8
  68. package/dist/src/components/action-row.d.ts +22 -0
  69. package/dist/src/components/action-row.js +18 -0
  70. package/dist/src/components/action-row.options.d.ts +4 -0
  71. package/dist/src/components/action-row.options.js +5 -0
  72. package/dist/src/components/alert.d.ts +20 -16
  73. package/dist/src/components/alert.js +16 -11
  74. package/dist/src/components/alert.options.d.ts +6 -0
  75. package/dist/src/components/alert.options.js +7 -0
  76. package/dist/src/components/app-bar.d.ts +9 -7
  77. package/dist/src/components/app-bar.js +12 -6
  78. package/dist/src/components/aspect-ratio.d.ts +13 -8
  79. package/dist/src/components/aspect-ratio.js +10 -14
  80. package/dist/src/components/avatar.d.ts +23 -0
  81. package/dist/src/components/avatar.js +31 -0
  82. package/dist/src/components/avatar.options.d.ts +3 -0
  83. package/dist/src/components/avatar.options.js +4 -0
  84. package/dist/src/components/badge.d.ts +16 -15
  85. package/dist/src/components/badge.js +9 -12
  86. package/dist/src/components/badge.options.d.ts +4 -0
  87. package/dist/src/components/badge.options.js +5 -0
  88. package/dist/src/components/breadcrumb.d.ts +10 -7
  89. package/dist/src/components/breadcrumb.js +9 -7
  90. package/dist/src/components/button.d.ts +16 -25
  91. package/dist/src/components/button.js +9 -20
  92. package/dist/src/components/button.options.d.ts +9 -0
  93. package/dist/src/components/button.options.js +10 -0
  94. package/dist/src/components/card-action.d.ts +10 -7
  95. package/dist/src/components/card-action.js +6 -6
  96. package/dist/src/components/card-content.d.ts +10 -7
  97. package/dist/src/components/card-content.js +6 -6
  98. package/dist/src/components/card-description.d.ts +10 -7
  99. package/dist/src/components/card-description.js +6 -6
  100. package/dist/src/components/card-footer.d.ts +10 -7
  101. package/dist/src/components/card-footer.js +7 -6
  102. package/dist/src/components/card-header.d.ts +10 -7
  103. package/dist/src/components/card-header.js +6 -6
  104. package/dist/src/components/card-title.d.ts +10 -7
  105. package/dist/src/components/card-title.js +6 -6
  106. package/dist/src/components/card.d.ts +15 -13
  107. package/dist/src/components/card.js +13 -11
  108. package/dist/src/components/card.options.d.ts +3 -0
  109. package/dist/src/components/card.options.js +2 -0
  110. package/dist/src/components/checkbox.d.ts +16 -9
  111. package/dist/src/components/checkbox.js +65 -34
  112. package/dist/src/components/choice-group.d.ts +10 -7
  113. package/dist/src/components/choice-group.js +43 -52
  114. package/dist/src/components/choice-select.d.ts +12 -8
  115. package/dist/src/components/choice-select.js +125 -165
  116. package/dist/src/components/code-block.d.ts +29 -8
  117. package/dist/src/components/code-block.js +59 -37
  118. package/dist/src/components/container.d.ts +15 -13
  119. package/dist/src/components/container.js +13 -11
  120. package/dist/src/components/container.options.d.ts +3 -0
  121. package/dist/src/components/container.options.js +4 -0
  122. package/dist/src/components/context-menu.d.ts +18 -0
  123. package/dist/src/components/context-menu.js +36 -0
  124. package/dist/src/components/credential-source.js +4 -10
  125. package/dist/src/components/description-list.d.ts +17 -13
  126. package/dist/src/components/description-list.js +11 -11
  127. package/dist/src/components/detail-section.d.ts +9 -7
  128. package/dist/src/components/detail-section.js +12 -8
  129. package/dist/src/components/dialog-actions.d.ts +12 -0
  130. package/dist/src/components/dialog-actions.js +7 -0
  131. package/dist/src/components/dialog-header.d.ts +18 -0
  132. package/dist/src/components/dialog-header.js +14 -0
  133. package/dist/src/components/dialog-panel.d.ts +14 -0
  134. package/dist/src/components/dialog-panel.js +8 -0
  135. package/dist/src/components/dialog.d.ts +12 -38
  136. package/dist/src/components/dialog.js +10 -29
  137. package/dist/src/components/diff-block.d.ts +12 -7
  138. package/dist/src/components/diff-block.js +12 -15
  139. package/dist/src/components/disclosure.d.ts +16 -11
  140. package/dist/src/components/disclosure.js +14 -13
  141. package/dist/src/components/drawer.d.ts +9 -7
  142. package/dist/src/components/drawer.js +36 -38
  143. package/dist/src/components/empty-state.d.ts +23 -13
  144. package/dist/src/components/empty-state.js +18 -7
  145. package/dist/src/components/empty-state.options.d.ts +3 -0
  146. package/dist/src/components/empty-state.options.js +2 -0
  147. package/dist/src/components/field-group.d.ts +10 -7
  148. package/dist/src/components/field-group.js +12 -15
  149. package/dist/src/components/field.d.ts +12 -8
  150. package/dist/src/components/field.js +55 -22
  151. package/dist/src/components/grid.d.ts +18 -20
  152. package/dist/src/components/grid.js +21 -23
  153. package/dist/src/components/grid.options.d.ts +7 -0
  154. package/dist/src/components/grid.options.js +8 -0
  155. package/dist/src/components/hover-card.d.ts +13 -8
  156. package/dist/src/components/hover-card.js +26 -36
  157. package/dist/src/components/icon-button.d.ts +17 -14
  158. package/dist/src/components/icon-button.js +9 -13
  159. package/dist/src/components/icon-button.options.d.ts +3 -0
  160. package/dist/src/components/icon-button.options.js +4 -0
  161. package/dist/src/components/icon-rail.d.ts +9 -7
  162. package/dist/src/components/icon-rail.js +14 -10
  163. package/dist/src/components/image-lightbox.d.ts +12 -7
  164. package/dist/src/components/image-lightbox.js +38 -43
  165. package/dist/src/components/image-preview.d.ts +8 -6
  166. package/dist/src/components/image-preview.js +23 -33
  167. package/dist/src/components/index.d.ts +105 -87
  168. package/dist/src/components/index.js +105 -87
  169. package/dist/src/components/inline.d.ts +14 -10
  170. package/dist/src/components/inline.js +20 -17
  171. package/dist/src/components/input.d.ts +10 -7
  172. package/dist/src/components/input.js +6 -6
  173. package/dist/src/components/item.d.ts +15 -15
  174. package/dist/src/components/item.js +17 -15
  175. package/dist/src/components/item.options.d.ts +4 -0
  176. package/dist/src/components/item.options.js +5 -0
  177. package/dist/src/components/json-block.d.ts +12 -7
  178. package/dist/src/components/json-block.js +14 -15
  179. package/dist/src/components/json-tree.d.ts +12 -7
  180. package/dist/src/components/json-tree.js +32 -33
  181. package/dist/src/components/layout-item.d.ts +9 -6
  182. package/dist/src/components/layout-item.js +17 -16
  183. package/dist/src/components/layout-types.d.ts +2 -6
  184. package/dist/src/components/layout-types.js +1 -6
  185. package/dist/src/components/layout.options.d.ts +5 -0
  186. package/dist/src/components/layout.options.js +6 -0
  187. package/dist/src/components/link.d.ts +15 -0
  188. package/dist/src/components/link.js +8 -0
  189. package/dist/src/components/list-group.d.ts +17 -13
  190. package/dist/src/components/list-group.js +19 -17
  191. package/dist/src/components/menu-button.d.ts +13 -0
  192. package/dist/src/components/menu-button.js +10 -0
  193. package/dist/src/components/menu.d.ts +14 -7
  194. package/dist/src/components/menu.js +48 -70
  195. package/dist/src/components/mermaid-diagram.d.ts +41 -0
  196. package/dist/src/components/mermaid-diagram.js +127 -0
  197. package/dist/src/components/meta-row.d.ts +19 -18
  198. package/dist/src/components/meta-row.js +51 -38
  199. package/dist/src/components/meta-row.options.d.ts +4 -0
  200. package/dist/src/components/meta-row.options.js +5 -0
  201. package/dist/src/components/modal.d.ts +41 -0
  202. package/dist/src/components/modal.js +103 -0
  203. package/dist/src/components/nav-item.d.ts +13 -7
  204. package/dist/src/components/nav-item.js +13 -19
  205. package/dist/src/components/nav-list.d.ts +50 -0
  206. package/dist/src/components/nav-list.js +53 -0
  207. package/dist/src/components/number-input.d.ts +31 -0
  208. package/dist/src/components/number-input.js +109 -0
  209. package/dist/src/components/output-block.d.ts +8 -6
  210. package/dist/src/components/output-block.js +19 -31
  211. package/dist/src/components/page-frame.d.ts +19 -16
  212. package/dist/src/components/page-frame.js +17 -10
  213. package/dist/src/components/page-frame.options.d.ts +4 -0
  214. package/dist/src/components/page-frame.options.js +5 -0
  215. package/dist/src/components/page-header.d.ts +15 -7
  216. package/dist/src/components/page-header.js +18 -7
  217. package/dist/src/components/page.d.ts +54 -0
  218. package/dist/src/components/page.js +27 -0
  219. package/dist/src/components/path-label.d.ts +13 -8
  220. package/dist/src/components/path-label.js +37 -36
  221. package/dist/src/components/path-picker.d.ts +9 -7
  222. package/dist/src/components/path-picker.js +19 -26
  223. package/dist/src/components/pill.d.ts +9 -7
  224. package/dist/src/components/pill.js +7 -13
  225. package/dist/src/components/popover.d.ts +10 -7
  226. package/dist/src/components/popover.js +172 -175
  227. package/dist/src/components/process-group.d.ts +14 -9
  228. package/dist/src/components/process-group.js +13 -4
  229. package/dist/src/components/process-step.d.ts +9 -7
  230. package/dist/src/components/process-step.js +8 -6
  231. package/dist/src/components/progress.d.ts +17 -0
  232. package/dist/src/components/progress.js +7 -0
  233. package/dist/src/components/prose.d.ts +23 -0
  234. package/dist/src/components/prose.js +17 -0
  235. package/dist/src/components/prose.options.d.ts +4 -0
  236. package/dist/src/components/prose.options.js +5 -0
  237. package/dist/src/components/rail-item.d.ts +9 -7
  238. package/dist/src/components/rail-item.js +10 -15
  239. package/dist/src/components/rail-section.d.ts +9 -7
  240. package/dist/src/components/rail-section.js +12 -6
  241. package/dist/src/components/read-block.d.ts +8 -6
  242. package/dist/src/components/read-block.js +51 -56
  243. package/dist/src/components/region-layout.d.ts +23 -4
  244. package/dist/src/components/region-layout.js +76 -72
  245. package/dist/src/components/resource-card.d.ts +9 -7
  246. package/dist/src/components/resource-card.js +17 -6
  247. package/dist/src/components/resource-link.d.ts +9 -7
  248. package/dist/src/components/resource-link.js +13 -10
  249. package/dist/src/components/risk-confirmation.d.ts +9 -7
  250. package/dist/src/components/risk-confirmation.js +7 -13
  251. package/dist/src/components/search-block.d.ts +9 -6
  252. package/dist/src/components/search-block.js +14 -16
  253. package/dist/src/components/search-input.d.ts +14 -9
  254. package/dist/src/components/search-input.js +12 -12
  255. package/dist/src/components/section.d.ts +44 -0
  256. package/dist/src/components/section.js +45 -0
  257. package/dist/src/components/segmented-control.d.ts +9 -7
  258. package/dist/src/components/segmented-control.js +50 -55
  259. package/dist/src/components/select.d.ts +10 -7
  260. package/dist/src/components/select.js +6 -6
  261. package/dist/src/components/separator.d.ts +10 -7
  262. package/dist/src/components/separator.js +6 -11
  263. package/dist/src/components/shortcut-keys.d.ts +13 -8
  264. package/dist/src/components/shortcut-keys.js +9 -7
  265. package/dist/src/components/skeleton-boundary.d.ts +13 -8
  266. package/dist/src/components/skeleton-boundary.js +31 -32
  267. package/dist/src/components/skeleton.d.ts +14 -13
  268. package/dist/src/components/skeleton.js +9 -11
  269. package/dist/src/components/skeleton.options.d.ts +3 -0
  270. package/dist/src/components/skeleton.options.js +2 -0
  271. package/dist/src/components/slider.d.ts +24 -0
  272. package/dist/src/components/slider.js +34 -0
  273. package/dist/src/components/spinner.d.ts +10 -7
  274. package/dist/src/components/spinner.js +8 -6
  275. package/dist/src/components/stack.d.ts +14 -10
  276. package/dist/src/components/stack.js +19 -16
  277. package/dist/src/components/state-dot.d.ts +13 -8
  278. package/dist/src/components/state-dot.js +23 -27
  279. package/dist/src/components/status-dot.d.ts +18 -26
  280. package/dist/src/components/status-dot.js +12 -21
  281. package/dist/src/components/status-dot.options.d.ts +9 -0
  282. package/dist/src/components/status-dot.options.js +10 -0
  283. package/dist/src/components/status.d.ts +10 -8
  284. package/dist/src/components/status.js +8 -7
  285. package/dist/src/components/switch.d.ts +8 -5
  286. package/dist/src/components/switch.js +9 -6
  287. package/dist/src/components/table.d.ts +48 -0
  288. package/dist/src/components/table.js +138 -0
  289. package/dist/src/components/table.options.d.ts +2 -0
  290. package/dist/src/components/table.options.js +3 -0
  291. package/dist/src/components/tabs.d.ts +11 -10
  292. package/dist/src/components/tabs.js +24 -54
  293. package/dist/src/components/tabs.options.d.ts +2 -0
  294. package/dist/src/components/tabs.options.js +3 -0
  295. package/dist/src/components/tag.d.ts +15 -19
  296. package/dist/src/components/tag.js +9 -12
  297. package/dist/src/components/tag.options.d.ts +6 -0
  298. package/dist/src/components/tag.options.js +7 -0
  299. package/dist/src/components/task-list.d.ts +34 -0
  300. package/dist/src/components/task-list.js +81 -0
  301. package/dist/src/components/terminal-block.d.ts +9 -6
  302. package/dist/src/components/terminal-block.js +32 -39
  303. package/dist/src/components/text-shimmer.d.ts +13 -8
  304. package/dist/src/components/text-shimmer.js +16 -14
  305. package/dist/src/components/text.d.ts +30 -0
  306. package/dist/src/components/text.js +24 -0
  307. package/dist/src/components/text.options.d.ts +3 -0
  308. package/dist/src/components/text.options.js +4 -0
  309. package/dist/src/components/textarea.d.ts +10 -7
  310. package/dist/src/components/textarea.js +6 -6
  311. package/dist/src/components/timeline.d.ts +18 -13
  312. package/dist/src/components/timeline.js +19 -12
  313. package/dist/src/components/toast.d.ts +13 -8
  314. package/dist/src/components/toast.js +12 -7
  315. package/dist/src/components/toolbar.d.ts +10 -7
  316. package/dist/src/components/toolbar.js +6 -22
  317. package/dist/src/components/tooltip.d.ts +9 -7
  318. package/dist/src/components/tooltip.js +17 -34
  319. package/dist/src/components/web-block.d.ts +9 -6
  320. package/dist/src/components/web-block.js +19 -21
  321. package/dist/src/components/window-title-bar.d.ts +9 -7
  322. package/dist/src/components/window-title-bar.js +11 -6
  323. package/dist/src/components/work-card.d.ts +9 -7
  324. package/dist/src/components/work-card.js +17 -6
  325. package/dist/src/icons/README.md +81 -1
  326. package/dist/src/icons/assistant-mark.d.ts +9 -0
  327. package/dist/src/icons/assistant-mark.js +10 -0
  328. package/dist/src/icons/doodle-cat.d.ts +2 -2
  329. package/dist/src/icons/doodle-cat.js +1 -1
  330. package/dist/src/icons/empty-stack.d.ts +10 -0
  331. package/dist/src/icons/empty-stack.js +16 -0
  332. package/dist/src/icons/file-type-icon.d.ts +2 -2
  333. package/dist/src/icons/icon-frame.d.ts +2 -2
  334. package/dist/src/icons/icon-frame.js +1 -1
  335. package/dist/src/icons/icon-source.d.ts +2 -2
  336. package/dist/src/icons/icon.d.ts +9 -3
  337. package/dist/src/icons/icon.js +8 -2
  338. package/dist/src/icons/index.d.ts +2 -0
  339. package/dist/src/icons/index.js +2 -0
  340. package/dist/src/icons/meowland-mark.d.ts +2 -2
  341. package/dist/src/index.d.ts +2 -0
  342. package/dist/src/index.js +2 -0
  343. package/dist/src/json/catalog.d.ts +2 -0
  344. package/dist/src/json/catalog.js +1 -0
  345. package/dist/src/registry/factory.d.ts +9 -0
  346. package/dist/src/registry/factory.js +9 -0
  347. package/dist/src/registry/index.d.ts +198 -561
  348. package/dist/src/registry/index.js +267 -245
  349. package/dist/src/shared/action-row-fit.d.ts +19 -0
  350. package/dist/src/shared/action-row-fit.js +59 -0
  351. package/dist/src/theme/audit.d.ts +2 -0
  352. package/dist/src/theme/audit.js +60 -0
  353. package/dist/src/theme/base.styles.d.ts +3 -2
  354. package/dist/src/theme/base.styles.js +43 -5
  355. package/dist/src/theme/chat/assistant.styles.d.ts +1 -1
  356. package/dist/src/theme/chat/assistant.styles.js +240 -133
  357. package/dist/src/theme/chat/attachments.styles.d.ts +1 -1
  358. package/dist/src/theme/chat/attachments.styles.js +96 -96
  359. package/dist/src/theme/chat/composer-panel.styles.d.ts +1 -1
  360. package/dist/src/theme/chat/composer-panel.styles.js +24 -21
  361. package/dist/src/theme/chat/composer.styles.d.ts +1 -1
  362. package/dist/src/theme/chat/composer.styles.js +281 -215
  363. package/dist/src/theme/chat/conversation.styles.d.ts +1 -1
  364. package/dist/src/theme/chat/conversation.styles.js +24 -25
  365. package/dist/src/theme/chat/frame.styles.d.ts +1 -1
  366. package/dist/src/theme/chat/frame.styles.js +35 -34
  367. package/dist/src/theme/chat/header.styles.d.ts +1 -1
  368. package/dist/src/theme/chat/header.styles.js +37 -37
  369. package/dist/src/theme/chat/message.styles.d.ts +1 -1
  370. package/dist/src/theme/chat/message.styles.js +132 -190
  371. package/dist/src/theme/chat/question.styles.d.ts +1 -1
  372. package/dist/src/theme/chat/question.styles.js +34 -33
  373. package/dist/src/theme/chat/reasoning.styles.d.ts +1 -0
  374. package/dist/src/theme/chat/reasoning.styles.js +142 -0
  375. package/dist/src/theme/chat/records.styles.d.ts +1 -1
  376. package/dist/src/theme/chat/records.styles.js +200 -243
  377. package/dist/src/theme/chat/status.styles.d.ts +1 -1
  378. package/dist/src/theme/chat/status.styles.js +14 -58
  379. package/dist/src/theme/chat/task.styles.d.ts +1 -1
  380. package/dist/src/theme/chat/task.styles.js +32 -34
  381. package/dist/src/theme/components/accordion.styles.d.ts +1 -0
  382. package/dist/src/theme/components/accordion.styles.js +64 -0
  383. package/dist/src/theme/components/action-rail.styles.d.ts +1 -1
  384. package/dist/src/theme/components/action-rail.styles.js +10 -10
  385. package/dist/src/theme/components/alert.styles.d.ts +1 -1
  386. package/dist/src/theme/components/alert.styles.js +37 -28
  387. package/dist/src/theme/components/app-bar.styles.d.ts +1 -1
  388. package/dist/src/theme/components/app-bar.styles.js +19 -18
  389. package/dist/src/theme/components/avatar.styles.d.ts +1 -0
  390. package/dist/src/theme/components/avatar.styles.js +54 -0
  391. package/dist/src/theme/components/badge.styles.d.ts +1 -1
  392. package/dist/src/theme/components/badge.styles.js +31 -30
  393. package/dist/src/theme/components/breadcrumb.styles.d.ts +1 -1
  394. package/dist/src/theme/components/breadcrumb.styles.js +21 -21
  395. package/dist/src/theme/components/button.styles.d.ts +1 -1
  396. package/dist/src/theme/components/button.styles.js +95 -74
  397. package/dist/src/theme/components/card.styles.d.ts +1 -1
  398. package/dist/src/theme/components/card.styles.js +53 -52
  399. package/dist/src/theme/components/choice-group.styles.d.ts +1 -1
  400. package/dist/src/theme/components/choice-group.styles.js +39 -38
  401. package/dist/src/theme/components/choice-select.styles.d.ts +1 -1
  402. package/dist/src/theme/components/choice-select.styles.js +79 -98
  403. package/dist/src/theme/components/code-block.styles.d.ts +1 -1
  404. package/dist/src/theme/components/code-block.styles.js +50 -32
  405. package/dist/src/theme/components/context-menu.styles.d.ts +1 -0
  406. package/dist/src/theme/components/context-menu.styles.js +14 -0
  407. package/dist/src/theme/components/description-list.styles.d.ts +1 -1
  408. package/dist/src/theme/components/description-list.styles.js +11 -10
  409. package/dist/src/theme/components/detail-section.styles.d.ts +1 -1
  410. package/dist/src/theme/components/detail-section.styles.js +15 -13
  411. package/dist/src/theme/components/dialog.styles.d.ts +1 -1
  412. package/dist/src/theme/components/dialog.styles.js +76 -42
  413. package/dist/src/theme/components/disclosure.styles.d.ts +1 -1
  414. package/dist/src/theme/components/disclosure.styles.js +31 -31
  415. package/dist/src/theme/components/drawer.styles.d.ts +1 -1
  416. package/dist/src/theme/components/drawer.styles.js +13 -13
  417. package/dist/src/theme/components/empty-state.styles.d.ts +1 -1
  418. package/dist/src/theme/components/empty-state.styles.js +30 -26
  419. package/dist/src/theme/components/field-group.styles.d.ts +1 -1
  420. package/dist/src/theme/components/field-group.styles.js +15 -15
  421. package/dist/src/theme/components/field.styles.d.ts +1 -1
  422. package/dist/src/theme/components/field.styles.js +17 -17
  423. package/dist/src/theme/components/hover-card.styles.d.ts +1 -1
  424. package/dist/src/theme/components/hover-card.styles.js +23 -23
  425. package/dist/src/theme/components/icon-rail.styles.d.ts +1 -1
  426. package/dist/src/theme/components/icon-rail.styles.js +50 -50
  427. package/dist/src/theme/components/image-lightbox.styles.d.ts +1 -1
  428. package/dist/src/theme/components/image-lightbox.styles.js +27 -27
  429. package/dist/src/theme/components/image-preview.styles.d.ts +1 -1
  430. package/dist/src/theme/components/image-preview.styles.js +23 -18
  431. package/dist/src/theme/components/item.styles.d.ts +1 -1
  432. package/dist/src/theme/components/item.styles.js +49 -44
  433. package/dist/src/theme/components/json.styles.d.ts +1 -1
  434. package/dist/src/theme/components/json.styles.js +82 -53
  435. package/dist/src/theme/components/layout.styles.d.ts +1 -1
  436. package/dist/src/theme/components/layout.styles.js +50 -48
  437. package/dist/src/theme/components/link.styles.d.ts +1 -0
  438. package/dist/src/theme/components/link.styles.js +32 -0
  439. package/dist/src/theme/components/list-group.styles.d.ts +1 -1
  440. package/dist/src/theme/components/list-group.styles.js +25 -24
  441. package/dist/src/theme/components/menu.styles.d.ts +1 -1
  442. package/dist/src/theme/components/menu.styles.js +49 -37
  443. package/dist/src/theme/components/mermaid-diagram.styles.d.ts +1 -0
  444. package/dist/src/theme/components/mermaid-diagram.styles.js +162 -0
  445. package/dist/src/theme/components/meta-row.styles.d.ts +1 -1
  446. package/dist/src/theme/components/meta-row.styles.js +25 -24
  447. package/dist/src/theme/components/modal.styles.d.ts +5 -0
  448. package/dist/src/theme/components/modal.styles.js +11 -0
  449. package/dist/src/theme/components/native-input.styles.d.ts +1 -1
  450. package/dist/src/theme/components/native-input.styles.js +38 -83
  451. package/dist/src/theme/components/nav-item.styles.d.ts +1 -1
  452. package/dist/src/theme/components/nav-item.styles.js +30 -30
  453. package/dist/src/theme/components/nav-list.styles.d.ts +1 -0
  454. package/dist/src/theme/components/nav-list.styles.js +155 -0
  455. package/dist/src/theme/components/number-input.styles.d.ts +1 -0
  456. package/dist/src/theme/components/number-input.styles.js +83 -0
  457. package/dist/src/theme/components/output-block.styles.d.ts +1 -1
  458. package/dist/src/theme/components/output-block.styles.js +129 -104
  459. package/dist/src/theme/components/page-frame.styles.d.ts +1 -1
  460. package/dist/src/theme/components/page-frame.styles.js +53 -17
  461. package/dist/src/theme/components/page-header.styles.d.ts +1 -1
  462. package/dist/src/theme/components/page-header.styles.js +34 -14
  463. package/dist/src/theme/components/page.styles.d.ts +1 -0
  464. package/dist/src/theme/components/page.styles.js +55 -0
  465. package/dist/src/theme/components/path-label.styles.d.ts +1 -1
  466. package/dist/src/theme/components/path-label.styles.js +10 -10
  467. package/dist/src/theme/components/path-picker.styles.d.ts +1 -1
  468. package/dist/src/theme/components/path-picker.styles.js +13 -13
  469. package/dist/src/theme/components/pill.styles.d.ts +1 -1
  470. package/dist/src/theme/components/pill.styles.js +22 -18
  471. package/dist/src/theme/components/popover.styles.d.ts +1 -1
  472. package/dist/src/theme/components/popover.styles.js +17 -17
  473. package/dist/src/theme/components/process-group.styles.d.ts +1 -1
  474. package/dist/src/theme/components/process-group.styles.js +56 -60
  475. package/dist/src/theme/components/progress.styles.d.ts +1 -0
  476. package/dist/src/theme/components/progress.styles.js +70 -0
  477. package/dist/src/theme/components/region-layout.styles.d.ts +1 -1
  478. package/dist/src/theme/components/region-layout.styles.js +18 -18
  479. package/dist/src/theme/components/resource-card.styles.d.ts +1 -1
  480. package/dist/src/theme/components/resource-card.styles.js +37 -37
  481. package/dist/src/theme/components/resource-link.styles.d.ts +1 -1
  482. package/dist/src/theme/components/resource-link.styles.js +21 -21
  483. package/dist/src/theme/components/risk-confirmation.styles.d.ts +1 -1
  484. package/dist/src/theme/components/risk-confirmation.styles.js +4 -4
  485. package/dist/src/theme/components/search-input.styles.d.ts +1 -1
  486. package/dist/src/theme/components/search-input.styles.js +17 -38
  487. package/dist/src/theme/components/section.styles.d.ts +1 -0
  488. package/dist/src/theme/components/section.styles.js +100 -0
  489. package/dist/src/theme/components/segmented-control.styles.d.ts +1 -1
  490. package/dist/src/theme/components/segmented-control.styles.js +32 -26
  491. package/dist/src/theme/components/separator.styles.d.ts +1 -1
  492. package/dist/src/theme/components/separator.styles.js +5 -5
  493. package/dist/src/theme/components/shortcut-keys.styles.d.ts +1 -1
  494. package/dist/src/theme/components/shortcut-keys.styles.js +15 -13
  495. package/dist/src/theme/components/skeleton.styles.d.ts +1 -1
  496. package/dist/src/theme/components/skeleton.styles.js +13 -12
  497. package/dist/src/theme/components/slider.styles.d.ts +1 -0
  498. package/dist/src/theme/components/slider.styles.js +126 -0
  499. package/dist/src/theme/components/spinner.styles.d.ts +1 -1
  500. package/dist/src/theme/components/spinner.styles.js +10 -10
  501. package/dist/src/theme/components/state-dot.styles.d.ts +1 -1
  502. package/dist/src/theme/components/state-dot.styles.js +23 -23
  503. package/dist/src/theme/components/status-dot.styles.d.ts +1 -1
  504. package/dist/src/theme/components/status-dot.styles.js +16 -15
  505. package/dist/src/theme/components/status.styles.d.ts +1 -1
  506. package/dist/src/theme/components/status.styles.js +4 -20
  507. package/dist/src/theme/components/table.styles.d.ts +1 -0
  508. package/dist/src/theme/components/table.styles.js +156 -0
  509. package/dist/src/theme/components/tabs.styles.d.ts +1 -1
  510. package/dist/src/theme/components/tabs.styles.js +48 -45
  511. package/dist/src/theme/components/tag.styles.d.ts +1 -1
  512. package/dist/src/theme/components/tag.styles.js +24 -24
  513. package/dist/src/theme/components/task-list.styles.d.ts +1 -0
  514. package/dist/src/theme/components/task-list.styles.js +223 -0
  515. package/dist/src/theme/components/text-shimmer.styles.d.ts +1 -1
  516. package/dist/src/theme/components/text-shimmer.styles.js +29 -25
  517. package/dist/src/theme/components/text.styles.d.ts +1 -0
  518. package/dist/src/theme/components/text.styles.js +34 -0
  519. package/dist/src/theme/components/timeline.styles.d.ts +1 -1
  520. package/dist/src/theme/components/timeline.styles.js +14 -26
  521. package/dist/src/theme/components/toast.styles.d.ts +1 -1
  522. package/dist/src/theme/components/toast.styles.js +28 -15
  523. package/dist/src/theme/components/toggle.styles.d.ts +1 -1
  524. package/dist/src/theme/components/toggle.styles.js +38 -28
  525. package/dist/src/theme/components/toolbar.styles.d.ts +1 -1
  526. package/dist/src/theme/components/toolbar.styles.js +8 -8
  527. package/dist/src/theme/components/tooltip.styles.d.ts +1 -1
  528. package/dist/src/theme/components/tooltip.styles.js +11 -11
  529. package/dist/src/theme/components/web-block.styles.d.ts +1 -1
  530. package/dist/src/theme/components/web-block.styles.js +19 -19
  531. package/dist/src/theme/components/window-title-bar.styles.d.ts +1 -1
  532. package/dist/src/theme/components/window-title-bar.styles.js +10 -10
  533. package/dist/src/theme/components/work-card.styles.d.ts +1 -1
  534. package/dist/src/theme/components/work-card.styles.js +37 -34
  535. package/dist/src/theme/icons/icons.styles.d.ts +1 -1
  536. package/dist/src/theme/icons/icons.styles.js +52 -2
  537. package/dist/src/theme/index.d.ts +206 -134
  538. package/dist/src/theme/index.js +78 -13
  539. package/dist/src/theme/selectors.d.ts +3 -0
  540. package/dist/src/theme/selectors.js +7 -0
  541. package/dist/src/theme/shared/action-row.styles.d.ts +1 -0
  542. package/dist/src/theme/shared/action-row.styles.js +52 -0
  543. package/dist/src/theme/shared/chart.tokens.d.ts +18 -0
  544. package/dist/src/theme/shared/chart.tokens.js +19 -0
  545. package/dist/src/theme/shared/code-highlight.styles.d.ts +1 -1
  546. package/dist/src/theme/shared/code-highlight.styles.js +6 -6
  547. package/dist/src/theme/shared/field-surface.styles.d.ts +1 -0
  548. package/dist/src/theme/shared/field-surface.styles.js +90 -0
  549. package/dist/src/theme/shared/prose.styles.d.ts +1 -0
  550. package/dist/src/theme/shared/prose.styles.js +152 -0
  551. package/dist/src/theme/shared/state-badge.styles.d.ts +1 -0
  552. package/dist/src/theme/shared/state-badge.styles.js +80 -0
  553. package/dist/src/theme/tokens.d.ts +259 -93
  554. package/dist/src/theme/tokens.js +284 -116
  555. package/dist/src/theme/utilities.d.ts +19 -0
  556. package/dist/src/theme/utilities.js +233 -0
  557. package/package.json +12 -8
  558. package/dist/src/theme/components/resource-card.tokens.d.ts +0 -5
  559. package/dist/src/theme/components/resource-card.tokens.js +0 -6
  560. package/dist/src/theme/palette.d.ts +0 -55
  561. package/dist/src/theme/palette.js +0 -56
package/README.md CHANGED
@@ -2,13 +2,24 @@
2
2
 
3
3
  `meowtail` provides cross-application components, semantic layout, the standard theme, and the complete Assistant composition. Networking, execution, permissions, and persistence are adapted by the host; the library carries no Rossovia business state or backend.
4
4
 
5
+ The [component catalog](COMPONENTS.md) owns the complete component list, grouping and status.
6
+ The usage notes below explain selected contracts; detailed Agent, Assistant and JSON contracts
7
+ remain in their linked guides.
8
+
5
9
  ## Presentation package
6
10
 
7
11
  The presentation player, Reveal, media lifecycle, presentation content layouts, and themes have moved into the separate [MeowSlides](../meowslides/README.md). Meowtail does not depend on the presentation package in reverse, and the old `meowtail/presentation` and root presentation exports are removed; shared UI and layout are still provided by this package.
8
12
 
9
13
  This package's npm name is `meowtail`; existing APIs such as `createMeowUI`, `installMeowUI`, and `createMeowUICatalog`, along with runtime style identity, stay unchanged. Use the new package import path; do not derive new function names, `data-*` markers, or CSS variables from the package name.
10
14
 
11
- See [Assistant](ASSISTANT.md) for the usage contract of the complete composition and [JSON catalog](JSON.md) for the finite JSON entry point. Implementation and independent acceptance of both are still in progress; the API descriptions and early artifact verification on this page do not equal a same-source acceptance pass for all current source code.
15
+ Application authors writing their own components (the shadcn/ui and Tailwind equivalents, the style floor and the audit) start with [Authoring](AUTHORING.md). See [Assistant](ASSISTANT.md) for the usage contract of the complete composition and [JSON catalog](JSON.md) for the finite JSON entry point. Implementation and independent acceptance of both are still in progress; the API descriptions and early artifact verification on this page do not equal a same-source acceptance pass for all current source code.
16
+
17
+ ## Runtime compatibility
18
+
19
+ The local `0.3.0-alpha.0` candidate requires `meowjsx@^0.2.0-alpha.0` and
20
+ `meowcss@^0.2.0-alpha.0`. It uses ordinary components with static `meta`, composed part/ref bindings
21
+ and the class-value theme API. Earlier package generations do not implement that authoring contract.
22
+ These are local candidate versions; the published releases remain listed in the root README.
12
23
 
13
24
  ## Minimal browser integration
14
25
 
@@ -25,7 +36,7 @@ import { applyTheme, mountStyles } from "meowcss/web";
25
36
  const root = document.querySelector<HTMLElement>("#app");
26
37
  if (!root) throw new Error("Missing app root");
27
38
  const runtime = createRuntime();
28
- const uninstall = runtime.use(createMeowUI());
39
+ const uninstall = runtime.use(createMeowUI({ components: [Button, Inline, Stack] }));
29
40
  const removeStyles = mountStyles(root.ownerDocument, standardTheme.cssText);
30
41
  const removeTheme = applyTheme(root, standardTheme, standardOptions.select({ scheme: "light" }));
31
42
  const mounted = createWebRenderer(runtime).render(
@@ -62,7 +73,7 @@ src/
62
73
  components/ # Base components such as Button, Card, Input, and Dialog; one component per file
63
74
  chat/ # Conversation components such as ChatFrame, ChatMessage, and ChatComposer
64
75
  icons/ # Brand marks and small icons; one icon per file
65
- registry/ # Contract aggregation, meowjsx type declarations, and the installation entry point
76
+ registry/ # Component catalog, meowjsx type declarations, and the installation entry point
66
77
  shared/ # Small utilities shared inside components
67
78
  theme/ # Standard theme token definitions and TS styles organized by part
68
79
  tests/
@@ -98,12 +109,23 @@ cross-module contracts and shared use between built-ins and extensions.
98
109
  The original product's wiring and UI acceptance are historical evidence and cannot replace independent verification after this library's migration.
99
110
 
100
111
  `CodeBlock` accepts raw `code` and an optional `language`, loads Shiki highlighting on demand for known syntaxes, and provides independent copy and soft-wrap toggles.
112
+ Shiki is reached only from the `CodeBlock` and `ReadBlock` modules. `JsonBlock` and `AssistantView` render a code surface, so importing either one pulls the same highlighter. Importing `standardTheme`, `createMeowUI`, or any other component does not. The package declares `sideEffects: false`, which lets a bundler drop those modules when their exports are unused. The highlighter stays on demand for a mounted code surface; it is not registered as a side effect of the theme.
113
+
114
+ `MermaidDiagram` draws Mermaid `source` as themed SVG with [Pele](https://pele.run), loaded on demand when a diagram mounts (each diagram type is its own chunk), so a host that never draws one does not bundle it. Pele's variables take the library's roles: shapes on the overlay rung with the control hairline, groups on the canvas rung, connectors in tertiary ink, emphasis in the accent and charts in `chartTokens` order. Charts follow the data-visualization rules: a pie reads as a donut with surface gaps and round legend dots, bars narrow to thin marks with a rounded end, line points are ringed in the surface, and grid and axes recede; text draws at the body size, and colors follow the scheme without a redraw. A Signal `source` redraws in place. Before the client mounts it, in server or static output, and when the source cannot be drawn, the component shows the source as text, with one error line on failure. Links, images and icons inside diagrams are off, and `limits` bounds the source (50,000 characters) and the edges (2,000) because drawing is synchronous. `title`, `caption`, `actions` and `onCopy` work as on `CodeBlock`; `zoom` (`"auto"` by default, fixed for the mount) shows zoom controls when the diagram is larger than its frame.
101
115
  Wrapping changes only the display; copying preserves the original whitespace. When the browser clipboard fails, it shows feedback. The host can bind `onCopy` to another
102
116
  clipboard implementation, and the component does not execute code. With no language it shows "Code", and `defaultWrap` sets the initial wrap state.
103
117
  Unknown languages or failed highlight loads keep a plain-text display.
104
118
 
105
119
  `Checkbox`, `Switch`, and `SegmentedControl` provide native form selection; `Tabs` handles switching panels that stay mounted.
106
- `Menu`, `HoverCard`, `Toast`, and `RiskConfirmation` provide menus, previews, and feedback, while business actions and display lifetimes are the host's responsibility.
120
+ A `Checkbox` can be `indeterminate` for a parent of mixed children; assistive technology reads `aria-checked="mixed"`.
121
+ `Slider` is a native range with a visible figure for the same value; `NumberInput` steps and clamps a number and formats the committed figure.
122
+ `Progress` is a labeled native progress bar, determinate or indeterminate; `Spinner` remains the wait with no known amount. `ChatTask` reuses `Progress` for explicit host progress.
123
+ `Avatar` shows a picture or initials; `ChatMessage` still takes any avatar child in its identity column, because that slot already hosts icons and other artwork.
124
+ `Link` is a themed inline text link. It is not `ResourceLink`, which remains the whole-row reference to an openable object.
125
+ `Table` shows host rows in columns that the user can sort, resize, and multi-select; row order and records stay with the caller.
126
+ `Accordion` groups `Disclosure` sections in single- or multiple-open mode.
127
+ `Menu`, `MenuButton`, `ContextMenu`, `HoverCard`, `Toast`, and `RiskConfirmation` provide menus, previews, and feedback, while business actions and display lifetimes are the host's responsibility.
128
+ `MenuButton` is a button that opens the existing `Menu`; `ContextMenu` opens that same `Menu` from a right-click or Shift+F10, including nested items.
107
129
  Menu's Tab / Shift+Tab closes the whole menu chain and leaves along the native order without activating menu items; Escape closes one layer at a time and returns to that layer's entry point.
108
130
  `TerminalBlock`, `ReadBlock`, `DiffBlock`, `SearchBlock`, `WebBlock`, and `JsonBlock/JsonTree`
109
131
  display host-provided output; components do not execute tools or read files. `ReadBlock` accepts `lang`, loads highlighting when it first enters the viewport, and keeps unknown languages as plain text.
@@ -127,16 +149,17 @@ focus into a 256px drawer over the content, and a collapsed group folds into one
127
149
  `Button`'s `outline` is the secondary level, plus `accent` (a soft background related to current activity) and `stop` (to interrupt running work).
128
150
  Details and page structures added in the second stage: `DetailSection` (a block with a hairline; its title is a small label rather than a page title), `Timeline` and
129
151
  `TimelineItem` (events threaded on one line, with markers following `StatusDot` semantics), `ResourceLink` (a whole-row reference to an openable object:
130
- a link when href is present, otherwise a button); `PageHeader` (page name, one-sentence purpose, and page-level actions), `ListGroup` and `ListRow` (sibling entries share one
152
+ a link when href is present, otherwise a button); `PageHeader` (page name, one-sentence purpose, an optional `leading` mark before the title, and page-level actions; `Page` forwards `leading` into that header), `ListGroup` and `ListRow` (sibling entries share one
131
153
  outline, an editing area can expand below a row, and a standalone row with `tone="accent"` is a summary row), `ResourceCard` (a capability on an overview page, with a dashed
132
154
  low-contrast disabled state); `Drawer` is a narrow-screen native modal panel that slides in from the start edge, with backdrop clicks and Escape handed to the host to update `open`. `SegmentedControl`
133
155
  tightens its track and selected state to match the design draft. The narrow-screen `ChatComposer` stacked layout puts "add, input, send" on one row and keeps model selection below.
134
- The palette and layers live only in `theme/palette.ts`: `accentTokens`, `statusTokens`, `radiusTokens` (8/10/14/22), `lineTokens`
135
- (0.5px hairlines), and `layerTokens`; accent expresses only "happening now" and "where you are", while primary stays black and white.
156
+ Every color, size, radius, shadow and duration is a role in one tree, `uiTokens` in `theme/tokens.ts` (surface, inverse, line, ink, state, action, control, accent, status, type, space, icon, radius, shadow, motion, layout, glyph; CSS names `--ui-<group>-<key>`). Accent expresses only "happening now" and "where you are", while the main action stays black and white. The rules for each group are in [AGENTS.md](AGENTS.md#design-system).
136
157
 
137
158
  `ChatToolCall` uses `label` for the action and `summary` for the short target still visible when collapsed; input/output are reactive lazy text,
138
159
  and overlong results collapse through the shared `OutputBlock` and copy in full. queued/running/waiting/success/error/cancelled/unknown
139
160
  each represent host facts, and complete stays for compatibility. onRetry/onCancel only notify the host; the component does not execute tools or update business state automatically.
161
+ `TaskList` is an ordered plan an agent works through: `items` is a list of `{ id, label, state, progress? }`, where `state` is the same `ChatExecutionState` ChatTask uses and `progress` is checked host progress (`{ value, max }`, shown as a percent; out-of-range values throw `RangeError`). The header shows `title` (default "Tasks"), a ring for the aggregate state and the done count (`1/5`, announced as "1 of 5 done"); native details collapses the list (`defaultOpen`, default true). Rows keep their DOM by `id`; the running row's label shimmers, done and canceled rows are struck through, and every row also states its state in text. It is a display of host facts, not an executable task or a ChatTask record.
162
+ `ChatReasoning` shows a model's visible reasoning: `label` names the current activity (shimmering while `active`), `doneLabel` is the folded summary the host measures (for example "Thought for 12s"), and `text` is plain streamed text whose blank lines separate paragraphs. While active it stays open and shows only the newest lines under a fading top edge, with no script measuring or scrolling; when the host clears `active` it folds into one disclosure row. It is unrelated to the composer's reasoning-effort choice (`reasoningOptions`). Neither component is in the JSON catalog or `AssistantMessagePart` yet.
140
163
  `ChatTask` provides a title, state, public execution summary, separate executionText/replyText, optional native progress, and children/footer;
141
164
  execution success without a received public reply is still presented accurately. It defaults to unknown; unknown progress is omitted rather than faking percentages.
142
165
  `ChatProcess` aggregates records with native details, and tasks and tools continue to reuse Stack/Inline/Grid, sources, attachments, artifacts, and code components.
@@ -156,12 +179,13 @@ Consecutive replies pass the same avatar with `continuation`, and the theme keep
156
179
 
157
180
  See [Component development conventions](AGENTS.md) for the default scale and component development order. Calibrate new components on the same screen as existing controls in Meowbook
158
181
  first, then integrate them into applications; the theme's font sizes, control heights, and three-level spacing form one set of relationships, and each component does not get its own new sizes.
159
- Default buttons are 36px high, compact buttons 28px, and input controls 32px. Information blocks are tight inside; page edges, standalone blocks, and reading areas should have generous whitespace.
182
+ Buttons and single-line fields share one ladder: 36px by default, 28px compact, 44px large, so they line up in one row. Information blocks are tight inside; page edges, standalone blocks, and reading areas should have generous whitespace.
160
183
  Local spacing tokens are not the ceiling for page whitespace, and not every level is uniformly compressed.
161
184
 
162
- Use `uiTokens.fontBody` for interface body text, `uiTokens.fontCaption` for supporting descriptions, `uiTokens.fontReading` for long-form and conversation body text,
163
- `uiTokens.fontTitle` for local titles, and `uiTokens.fontPageTitle` for complete page titles; do not use the page-title scale for field labels. The horizontal padding of ordinary controls comes from
164
- `uiTokens.controlPaddingInline`; group, section, and panel express whitespace within a group, between areas, and at container edges respectively.
185
+ Use `uiTokens.type.body` for interface body text, `uiTokens.type.caption` for supporting descriptions, `uiTokens.type.body` for long-form and conversation body text,
186
+ `uiTokens.type.title` for local titles, and `uiTokens.type.pageTitle` for complete page titles; do not use the page-title scale for field labels.
187
+ Every title uses `uiTokens.type.sans` ([which text style where](#which-text-style-where)). The horizontal padding of ordinary controls comes from
188
+ `uiTokens.control.inset` (text inside field surfaces uses `uiTokens.control.fieldInset`); group, section, and panel express whitespace within a group, between areas, and at container edges respectively.
165
189
  Relative indentation in reading paragraphs, media sizes, graph coordinates, and touch targets still follow real usage and do not adopt control scales.
166
190
 
167
191
  `PageFrame`'s page edge uses `pageInsetBlock` / `pageInsetInline`, and narrow windows use the corresponding
@@ -200,7 +224,7 @@ Use this set of layout primitives and do not reimplement direction, alignment, a
200
224
  `columnGap` default to auto (following gap) and can use the same semantic spacing independently. Layouts can use `as="header"` or
201
225
  `as="footer"` to keep region semantics; components do not choose business breakpoints, text truncation, or wrapping strategies for the host.
202
226
 
203
- `ActionRail` is one action row with named `leading`, `trailing`, and `submit` slots. The rail owns start/end anchoring and the rule that the submit action stays visible while flexible leading and trailing actions wrap; callers pass actions rather than layout classes. `MetaRow` is one page-level fact row: `items` carry an optional icon and a short label, separators are generated between facts, `progress` appends one optional progress fact (finite values clamp to 0–100; non-finite values are omitted), and `align`/`progressTone` select the two finite presentations. Neither component owns business state or actions.
227
+ `ActionRow` is the row for any set of actions: it stays on one line while it fits, and when it does not, the whole row stacks at once, each text action on a full-width line in DOM order and the icon actions together on one line, so a row never wraps ragged or leaves one action alone. `align` is `start` (default) or `end`. `CardFooter`, `DialogActions` and `ChatQuestion` actions follow the same rule. The fit is measured on the client; server-rendered and static output keeps a plain wrapping row. `ActionRail` is one action row with named `leading`, `trailing`, and `submit` slots. The rail owns start/end anchoring and the rule that the submit action stays visible while flexible leading and trailing actions wrap; callers pass actions rather than layout classes. `MetaRow` is one page-level fact row: `items` carry an optional icon and a short label, separators are generated between facts, `progress` appends one optional progress fact (finite values clamp to 0–100; non-finite values are omitted), and `align`/`progressTone` select the two finite presentations. Neither component owns business state or actions.
204
228
 
205
229
  `Toolbar` is horizontal by default and allows wrapping; `orientation="vertical"` arranges it vertically. It provides one Tab stop for its own buttons and for the action set of native input-like buttons and links with href; arrow keys, Home / End move within the current set, and horizontal orientation respects RTL. Native Input, Textarea, Select, and composite controls that manage their own keyboard keep independent Tab stops and editing keys; nested Toolbars do not consume them twice. Entries that are hidden, disabled, inert, or explicitly set to `tabIndex=-1` by the author are excluded from the action set, and dynamic membership changes do not steal focus. Enter / Space still activate along native control behavior, and complex inputs are not automatically folded into an overflow menu; unmounting restores the tabindex values this component managed and preserves the caller's subsequent valid attributes.
206
230
 
@@ -234,6 +258,12 @@ height and minimum size. A Stack without a height constraint keeps natural flow,
234
258
 
235
259
  Meowbook's "Layout composition · Text baseline and fixed actions" covers these compositions and long model identifiers together.
236
260
 
261
+ ### Text and reading content
262
+
263
+ `Text` is one run of copy in a theme text role: `variant` is `body` (default), `secondary`, `caption`, or `eyebrow` (the small-caps group label used by menus, navigation groups and specimen labels), and `as` is `p` (default), `span`, or `div`. Emphasis and fine print keep their native `strong`, `em` and `small` inside it. Headings stay with `PageHeader`, `Page` and `Section`, field labels with `Field`, and code with the code components; Text has no tone, because state color belongs to `Status`, `Badge` and `Alert`, which carry non-color cues.
264
+
265
+ `Prose` holds long-form reading content: native `h2`–`h4`, paragraphs, lists, quotes, `pre`/`code`, rules, tables, links and images inside it take one reading rhythm, shared with chat message content and rendered assistant markdown. `measure="reading"` (default) caps lines at `uiTokens.layout.measure`; `measure="fill"` takes the parent's width; `as` is `div`, `article`, or `section`. Arranging controls and cards stays with Stack, Inline and Grid. Neither component joins the JSON catalog, and Meowslides keeps its own presentation typography.
266
+
237
267
  `DescriptionList` / `DescriptionItem term={...}` organize related labels and values with native `dl` / `dt` / `dd`.
238
268
  Labels in the same group take their natural width up to a cap, and values share a column start; when the local container is too narrow, each item stacks label above value
239
269
  based on the local width, not the whole window. By default it keeps semantic font sizes and wrappable long text, and provides no surface, padding, or independent scrolling.
@@ -277,8 +307,8 @@ it supports arrow keys, Home/End, a controlled value Signal, and defaultValue. P
277
307
  `Breadcrumb items` is an array of label/href, and the last item marks the current location.
278
308
  `Tooltip` uses `trigger(bindings)` to add text descriptions to named focusable controls; it appears after a mouse delay, appears immediately on keyboard focus,
279
309
  and closes on Escape; do not put necessary information or interactive content only in a Tooltip—use Popover for the latter.
280
- `Alert tone` expresses visual state, and `role` explicitly chooses status/alert; urgency is not inferred from color.
281
- `Alert layout="bar"` is the compact page-notice form: one line with a status dot, body text and a trailing action; the default `layout="block"` keeps title/body/actions for outcomes that need reading. Use `bar` in `PageFrame`'s notice slot; it is a semantic notice shape, not a device variant.
310
+ `Alert tone` expresses visual state, and `role` explicitly chooses status/alert; urgency is not inferred from color. `tone="neutral"` is the quiet notice: the same structure, tinted with the muted ink instead of a status color.
311
+ `Alert layout="bar"` is the compact page-notice form: one line with a status dot, body text and a trailing action. `marker="none"` removes that dot; the default `marker="dot"` keeps it. The default `layout="block"` keeps title/body/actions for outcomes that need reading and draws no dot. Use `bar` in `PageFrame`'s notice slot; it is a semantic notice shape, not a device variant.
282
312
 
283
313
  `Skeleton` is an aria-hidden placeholder; the caller provides the content region's aria-busy and loading copy.
284
314
  `SkeletonBoundary active={loading} label="Updating details"` applies skeleton presentation to already mounted content;
@@ -312,12 +342,13 @@ trigger. Error messages use the browser's native validation copy. Reset restores
312
342
  The theme visually hides the native form carrier; a hidden input is not used to fake required validation. It provides no custom multiple selection or asynchronous search.
313
343
  The parts are `root/trigger/value/indicator/list/group/option/native/validation`.
314
344
 
315
- - Basics: Button, AddButton, IconButton, Card, Badge, Input, Textarea, Select, Field,
316
- SearchInput, Disclosure, Separator, NavItem, EmptyState.
345
+ - Basics: Button, AddButton, IconButton, MenuButton, Card, Badge, Avatar, Input, NumberInput,
346
+ Textarea, Select, Field, SearchInput, Slider, Progress, Link, Disclosure, Accordion, Table,
347
+ Separator, NavItem, EmptyState.
317
348
  - Dialogs: Dialog, DialogPanel, DialogHeader, DialogActions.
318
349
  - Chat: ChatFrame, ChatHeader, ChatStatus, ChatConversation, ChatMessageList, ChatMessage, ChatBubble,
319
350
  ChatMessageActions, ChatComposer, ChatToolCall, ChatAttachments, ChatProcess, ChatSources.
320
- - Icons: the finite semantic set `Icon` and `iconNames` sourced from the pinned Lucide dependency, caller-supplied `IconSource` and `IconNode`, and the `meowtail/icons/lucide` pass-through for application icons, plus MeowlandMark, DoodleCat, NotesIcon, TasksIcon, SearchIcon, PlusIcon, GithubIcon, ExternalArrowIcon.
351
+ - Icons: the finite semantic set `Icon` and `iconNames` sourced from the pinned Lucide dependency, caller-supplied `IconSource` and `IconNode`, and the `meowtail/icons/lucide` pass-through for application icons, plus MeowlandMark, AssistantMark, DoodleCat, EmptyStack, NotesIcon, TasksIcon, SearchIcon, PlusIcon, GithubIcon, ExternalArrowIcon.
321
352
 
322
353
  Icons outside the semantic set go through `IconSource` with structural `IconNode` data from a trusted source. The pinned pass-through at `meowtail/icons/lucide` re-exports the installed Lucide version, so an application can use any Lucide icon without adding its own icon dependency; JSON surfaces keep only the finite `iconNames` set:
323
354
 
@@ -331,9 +362,16 @@ import { Bell } from "meowtail/icons/lucide";
331
362
  Before adding a component, confirm it can be reused in more than two applications or scenes; page components used once by an application should not be moved
332
363
  here just to "extract" them.
333
364
 
334
- When `Field` has a single control child and can resolve association from `htmlFor`, `descriptionId`, or `errorId`, it
335
- connects the description and error node ids to the control's `aria-describedby` and sets
336
- `aria-invalid` when there is an error. Multiple control children or custom compositions still require the caller to pass association attributes explicitly.
365
+ `Field` associates its label through `htmlFor`; the caller supplies the matching control `id`.
366
+ For a single control child, it merges visible description and error ids from `htmlFor`, `descriptionId`, or `errorId`
367
+ with the child's original `aria-describedby`, including a host Signal. It manages only its own ids.
368
+ Multiple control children and custom compositions require the caller to pass association attributes explicitly.
369
+ Top-level `description` and `error` Signals keep their message parts mounted and update content, `hidden`, and
370
+ associations without remounting the control, preserving drafts and focus. `null`, `undefined`, `false`, and `""`
371
+ are empty messages; `0` is content. Field does not inspect arbitrary VNodes, Promises, or nested Signals for DOM visibility.
372
+ Explicit `invalid`, including `false` or a boolean Signal, takes precedence; otherwise a provided error derives the
373
+ live invalid state, clearing `aria-invalid` to `"false"` when the message empties. Without either input, the child's
374
+ original `aria-invalid` is preserved. Field supplies no validation, submission, focus management, or automatic announcement.
337
375
 
338
376
  `Dialog` handles only the native `<dialog>` structure, label association, and panel/header/actions partitioning; opening, closing,
339
377
  Escape, focus return, and submission results are still controlled by the application. It has no Radix-like context, portal, or focus trap;
@@ -347,16 +385,17 @@ DialogPanel distributes standard whitespace inside its direct header and body, e
347
385
 
348
386
  `EmptyState size="compact"` is for a local empty list or an unselected content region, keeping the title, description, and actions while removing decorative artwork.
349
387
  The default `size="default"` keeps the full-page empty state; loading and failure still use their existing feedback and do not become empty states.
388
+ `illustration` replaces the default `EmptyStack`, three receding cards painted from the surface ladder with one accent spark. `null` and `false` leave the illustration part out. Presence is fixed for the mount, and compact size still hides that part when it is present.
350
389
 
351
390
  `ChatAttachments` accepts `items: readonly ChatAttachmentItem[]`, where each item has
352
391
  `id`, `name`, `url`, `mediaType`, and an optional `sizeBytes`; `label` defaults to "Message attachments".
353
392
  The caller provides URLs, and the component does not fetch data. Images are shown by default as accessible new-window links with lazy-loaded previews and become preview buttons when `onPreview` is provided;
354
393
  file links download with the original file name and show B / KB / MB when a valid size is available.
355
394
  The theme uses the `root/entry/image/preview/file/icon/details/name/size/previewButton/remove` parts of `chat-attachments`
356
- through `partSelector(chatAttachmentsContract, part)`.
395
+ through `parts<typeof ChatAttachments>("chat-attachments")` descriptors.
357
396
  Each item can provide `onRemove`, passed only when a draft needs a remove action; upload, file deletion, and URL lifecycles still belong to the host.
358
397
 
359
- `ComposerPanel` is the composition directly above `ChatComposer`: it owns the writing surface and an optional page-level meta row, while draft, actions and submission stay in `ChatComposer`. It renders `ChatComposer` with `surface="none"`, so the panel never stacks a second chrome. Narrow composition stays with `ChatComposer`'s own layout and the page/footer edge; the panel has no device variant. The meta slot usually holds a `MetaRow`.
398
+ `ComposerPanel` composes one `ChatComposer` and an optional page-level meta row, usually a `MetaRow`. It refines the same internal writing surface rather than wrapping the whole form in a second surface. Draft, actions, submission and the external supporting hint stay in `ChatComposer`. Narrow composition stays with `ChatComposer`'s own layout and the page/footer edge; the panel has no device variant.
360
399
 
361
400
  `ChatFrame` provides reading margins only for a direct `ChatComposer`; if a footer, Card, or other wrapper container owns that region's space,
362
401
  the Composer inside uses its natural width within that container and is no longer narrowed or margined by an ancestor Frame.
@@ -365,9 +404,9 @@ the Composer inside uses its natural width within that container and is no longe
365
404
  `onInput` is bound on the textarea and `onSubmit` on the outer form. `value` supports Signals, and
366
405
  `submitDisabled` only prevents submission, which suits continued editing while waiting for a result; `disabled` prevents both editing and submission.
367
406
  Request state, submitted snapshots, and the latest draft are managed by the caller. `attachments` holds materials to send, and `inputLabel` provides the input name.
368
- The standard theme organizes attachments, input, supporting actions, and submission on one writing surface.
369
- `surface="none"` removes ChatComposer's own surface chrome and padding so a parent such as `ComposerPanel` can own the writing surface; the default keeps the standard surface.
370
- `layout="inline"` puts short drafts and actions on the same row, and long drafts keep growing; hints appear on focus, and the default `stacked` keeps a separate tool row.
407
+ The form groups a writing `surface` and its supporting `hint`. Attachments, input and actions stay inside the surface; the hint follows outside its rounded edge and focus outline, associated with the textarea by `hintId`. Page-level metadata follows the whole composer.
408
+ `surface="none"` removes only the internal writing surface's chrome and padding for explicit bare embedding; it does not move the hint back inside a surface.
409
+ `layout="inline"` puts short drafts and actions on the same row, and long drafts keep growing; its external hint appears on focus. The default `stacked` keeps the tool row at the bottom of the writing surface. On narrow screens, attach/input/send share the writing row and model selection sits below it; the supporting hint remains outside the surface and wraps. The `hero` hint retains its visually hidden presentation.
371
410
  `layout="hero"` uses the input height of the desktop master blank conversation. `trailing` composes selection entry points such as provider and model to the left of the send button;
372
411
  a controlled `ChoiceSelect` can be passed, expanding grouped options upward with `placement="top"`, `align="end"`, and `matchTriggerWidth={false}`.
373
412
  Option sources, current values, and the actual switching of runtime configuration are still the host's responsibility.
@@ -425,11 +464,12 @@ Choosing only fills in the path; it does not read files, upload files, or grant
425
464
 
426
465
  `Disclosure` uses native details/summary, accepts `summary: Child` and content children, and supports
427
466
  `open/name/onToggle` and other native attributes. `summaryClassName` and `contentClassName` are for host layout;
428
- the parts are `root/summary/icon/content`. It does not maintain a second expansion state and is not a multi-item Accordion.
467
+ the parts are `root/summary/icon/content`. `Accordion` groups several Disclosures, with `type="single"` or
468
+ `type="multiple"`, and still does not own business content.
429
469
 
430
470
  ## Standard theme (meowtail/theme)
431
471
 
432
- The standard theme exports `standardTheme`, `standardOptions`, and typed `uiTokens`. The read-only `standardThemeTokens` and `standardThemeStyles` are theme assembly primitives that let extended themes such as MeowSlides reuse the same token/fragment objects; they do not install components or touch the DOM. Tokens and styles
472
+ The standard theme exports `standardTheme`, `standardOptions`, and typed `uiTokens`. The read-only `standardThemeTokens` and `standardThemeStyles` are theme assembly primitives that let extended themes such as MeowSlides reuse the same token/fragment objects; they do not install components or touch the DOM. `standardTheme.cssText` is one complete stylesheet. A second theme built by copying token objects would break that shared identity, and the theme entry lists every fragment, so unused rules are not dropped from this binding. Hosts mount the full sheet. Tokens and styles
433
473
  are both defined in TypeScript; components match CSS through stable part markers and style options, and theme plugins no longer generate
434
474
  visual class names. See TypeScript tokens and parameterized configuration (historical reference in the original product repository) for the complete design.
435
475
 
@@ -437,10 +477,99 @@ Style files use `<responsibility>.styles.ts`; the standard theme groups them by
437
477
  See the style file organization (historical reference in the original product repository) for naming, component family boundaries, and cascade organization.
438
478
  Existing styles have been migrated to this specification, and historical conversation overrides have been merged back into the files owned by messages and the composer.
439
479
 
480
+ ### Design language
481
+
482
+ Compose pages from the roles below. Their current values live in the role tree in
483
+ [theme tokens](src/theme/tokens.ts); component styles apply them to named parts.
484
+ Meowbook's [`design-language` panorama](stories/language.stories.tsx) puts typography, actions,
485
+ navigation, fields, execution states, and conversation on one board. The
486
+ [`settings-workflow` scene](stories/settings-workflow.stories.tsx) shows a complete local edit,
487
+ validation, correction, and save sequence. These are composition references, not backend integrations.
488
+
489
+ #### Which text style where
490
+
491
+ Every piece of text is one style of the type ramp. A style binds a size to its line box, weight and
492
+ tracking; apply it with `ui.text[role]` from `meowtail/theme`, or with the matching
493
+ `uiTokens.type` size, `type.line.*` and `type.weight.*` tokens where a part sets them one by one.
494
+ All text uses `uiTokens.type.sans`; code uses `uiTokens.type.mono`. The standard audit rules reject
495
+ literal font sizes, line heights and weights, including inside the `font` shorthand.
496
+
497
+ | Style | Size / line / weight | Use |
498
+ | ----------- | ------------------------- | ----------------------------------------------------------------------------- |
499
+ | `eyebrow` | 11 / 16 / 500, small caps | The one group label: menu headings, navigation groups, specimen labels |
500
+ | `caption` | 12 / 18 / 400 | Fine print: descriptions under a name, timestamps, receipts, counts |
501
+ | code | 12 / 18, mono | Code, terminal output and JSON (`type.code`, `type.line.code`) |
502
+ | `label` | 13 / 20 / 500 | A name in a compact surface: field labels, row titles, tooltips |
503
+ | `body` | 14 / 22 / 400 | Interface copy and controls; dense rows (menus, options) use a 20px line |
504
+ | `reading` | 14 / 24 / 400 | Long-form copy: Prose, chat messages, notes |
505
+ | `title` | 16 / 24 / 600 | A container's name: card, dialog, panel, section |
506
+ | `heading` | 20 / 28 / 600 | A heading inside reading content |
507
+ | `pageTitle` | 24 / 32 / 600 | The title of a page |
508
+ | hero | 40 / 48 / 600 | Marketing-level titles such as a docs home page; no library component uses it |
509
+
510
+ Weights mean one thing each: 400 reads, 500 names a control or a label, 600 titles a container.
511
+ Titles at `title` and above close up by `type.trackingTight`. Heading levels still follow document
512
+ structure: a nested `Section` title (h3 and below) is a semibold body-size subheading, and Prose
513
+ headings step down the ramp (`heading`, `title`, then semibold body; one step smaller inside a
514
+ conversation).
515
+
516
+ The main action uses `Button`'s default `primary` variant: a near-black fill in light mode and a near-white fill in
517
+ dark mode, paired with `onPrimary`. Use `outline` for a secondary action and `quiet` for dismissal
518
+ or a less prominent action. Accent marks current activity and location: processing, active navigation,
519
+ and soft selected surfaces. An accent action belongs to that activity rather than replacing the main
520
+ action everywhere. Use `stop` to interrupt running work and `danger` for a destructive action; the
521
+ latter has its own filled-action foreground/background pair.
522
+
523
+ Status includes visible words. `Status` pairs a decorative marker with the caller's label; the host
524
+ decides which state its evidence supports.
525
+
526
+ | State | Marker | Meaning |
527
+ | -------------------- | ------------------ | ----------------------------------------------------------------- |
528
+ | `processing` | Pulsing accent | Work is happening now |
529
+ | `success` | Solid green | Connected, enabled, or confirmed complete, as stated by the label |
530
+ | `returned` | Hollow green | Execution returned; goal completion still needs checking |
531
+ | `warning` / `danger` | Solid orange / red | Needs attention / failed or unreadable |
532
+ | `unknown` | Hollow gray | Current state has not been verified |
533
+ | `idle` | Quiet solid gray | Known to be standing by |
534
+
535
+ Choose space by relationship and region. `Stack`, `Inline`, and `Grid` map compact/normal/relaxed
536
+ gaps to group/section/panel tokens: 8/20/24px. A `Field` uses the 8px group gap between its label,
537
+ description, control, and error; `FieldGroup` uses 20px between fields. Separate setting groups with
538
+ a relaxed Stack, as in the workflow scene. Page edges have their own scale: `Container width="page"`
539
+ uses 36px block and 48px inline insets, changing to 20px and 16px at widths up to 768px. Do not add
540
+ that inset again inside a shell that already provides it. A narrow Container limits width to 480px
541
+ without supplying page gutters.
542
+
543
+ Density follows the activity. Navigation and metadata can stay compact; form groups need clear
544
+ boundaries; conversation uses a maximum reading width of 720px and 28px between messages. Use the existing
545
+ layout and content roles to make these differences. The standard theme has no global density axis.
546
+
547
+ For settings that are being read, `DescriptionList` aligns terms and values and stacks them when its
548
+ local container narrows. For continuous editing, compose `FieldGroup`, `Field`, native controls,
549
+ and one explicit save action. In the workflow scene, edits remain in a local draft; an invalid submit
550
+ keeps the draft, focuses the email field, and shows a correction beside it. A valid correction clears
551
+ the error, and a successful local save updates feedback beside the action. The host owns validation,
552
+ focus, announcements, and persistence. `Field` binds live description/error Signals without remounting
553
+ the control; its full association and invalid-state contract is [above](#current-components).
554
+
555
+ Light and dark are explicit schemes; `auto` follows the system preference and is the default.
556
+ Change root configuration to switch scheme while retaining mounted controls, drafts, and expanded
557
+ content. Shared role names, spacing, and hierarchy stay the same across schemes; use the theme's
558
+ foreground/background pairs rather than copying a light-mode color into a dark surface. See
559
+ [root configuration](#root-configuration-and-local-overrides) for local scheme inheritance.
560
+
561
+ The composition work also drew on Mobbin references for [regional density in Mixpanel](https://mobbin.com/screens/68f21e8a-40d7-4ea0-8c18-c35f9163b566),
562
+ [grouped settings in Ghost](https://mobbin.com/screens/15e989a8-cee4-4822-acce-be522e08caf0),
563
+ [continuous editing in HubSpot](https://mobbin.com/screens/9808b928-3000-4bb1-b001-8f4b9f5793b8), and
564
+ [field-local correction in Melio](https://mobbin.com/screens/b542daad-cc71-4d22-8622-ffe080d82e31).
565
+ These relationships inform composition; theme values and component behavior are defined by this package.
566
+
440
567
  ### Component installation and style delivery
441
568
 
442
- Component installation and style loading are two explicit steps. `createMeowUI()` registers components and style prop adapters;
443
- `standardTheme.cssText` provides the complete CSS with variable declarations and component rules. A dynamic host can assemble it like this:
569
+ Component installation and style loading are two explicit steps. `createMeowUI({ components })` registers
570
+ an explicit list of component functions and the style-props adapter. `standardTheme.cssText` provides
571
+ the complete CSS with variable declarations, component rules and built-in utility classes. A dynamic
572
+ host can assemble it like this:
444
573
 
445
574
  ```tsx
446
575
  import { createRuntime, h } from "meowjsx";
@@ -449,7 +578,7 @@ import { Button, createMeowUI } from "meowtail";
449
578
  import { standardTheme, standardOptions } from "meowtail/theme";
450
579
  import { applyTheme, mountStyles } from "meowcss/web";
451
580
 
452
- const runtime = createRuntime({ plugins: [createMeowUI()] });
581
+ const runtime = createRuntime({ plugins: [createMeowUI({ components: [Button] })] });
453
582
  const web = createWebRenderer(runtime);
454
583
  const removeStyles = mountStyles(container.ownerDocument, standardTheme.cssText);
455
584
  const removeTheme = applyTheme(
@@ -465,9 +594,13 @@ removeTheme();
465
594
  removeStyles();
466
595
  ```
467
596
 
468
- When using defaultRuntime, call `installMeowUI(defaultRuntime)` and use the same runtime for the initial render and dynamic controls.
469
- No separate standard theme plugin needs to be installed. Valid values, defaults, and carrying parts for style props
470
- are declared by the component contract's `defineStyleProps`; the adapter consumes the props so style options such as variant are not passed through as ordinary DOM attributes.
597
+ When using defaultRuntime, call `installMeowUI({ components: [Button] }, defaultRuntime)` and use the
598
+ same runtime for the initial render and dynamic controls. Hosts that need the complete catalog import
599
+ `meowUIComponents` and pass it explicitly; selective registration does not import that catalog into the
600
+ factory. Register the component families rendered by the host and its compositions on that runtime.
601
+ No separate standard theme plugin needs to be installed. Valid values, defaults and carrier parts for
602
+ style props are declared by `meta.style: defineStyleProps(...)`; the adapter consumes the props so
603
+ style options such as variant are not passed through as ordinary DOM attributes.
471
604
  `ThemedProps` provides union types and Signal inputs; components keep open native Props and therefore do not promise to reject all unknown attributes.
472
605
 
473
606
  A static host composes `standardTheme.cssText` with application CSS at build time, writes a `.css` file loaded by HTML,
@@ -481,7 +614,7 @@ Source code maintains no `.css` files, and generated CSS is still a browser asse
481
614
 
482
615
  `standardOptions` has a built-in scheme; the current standard theme defaults to `auto` and supports light/dark/auto.
483
616
  The standard visuals use DeepSeek Harness as their baseline: system fonts, 14px body, 12px supporting text, and 16px titles; buttons
484
- use 28/36/44px for small/default/large, and inputs default to 32px. Controls, menus, and large panels use their corresponding
617
+ and single-line fields use 28/36/44px for small/default/large. Controls, menus, and large panels use their corresponding
485
618
  radii and materials, and applications compose pages from the same language. See [third-party notices](THIRD_PARTY_NOTICES.md) for reference sources and licenses,
486
619
  and the migration record (historical reference in the original product repository) for the implementation scope and verification not yet finished.
487
620
 
@@ -502,18 +635,35 @@ inheritance, and component instances and drafts do not need rebuilding. Existing
502
635
 
503
636
  ### Styles and component options
504
637
 
638
+ Built-in theme values work directly on instances and also expand into declarations inside `css`:
639
+
640
+ ```tsx
641
+ import { cx } from "meowcss";
642
+ import { ui } from "meowtail/theme";
643
+
644
+ <div className={[ui.p.panel, ui.bg.raised, ui.radius.xl]} />;
645
+ <Card className={cx(ui.p.group, ui.bg.fill)}>Content</Card>;
646
+ ```
647
+
648
+ `cx` joins classes and preserves their declarations for reuse in theme rules. It ignores false and
649
+ nullish inputs; nested lists and Signals also work directly in `className`. Class order does not
650
+ resolve conflicts: the stylesheet and ordinary CSS cascade decide. Hover, focus and responsive
651
+ rules remain CSS. The built-in `ui` catalog is theme data, and another theme can supply its own.
652
+
505
653
  Ordinary CSS keeps the template form; tokens and parts are referenced in TypeScript to avoid hand-writing generated names:
506
654
 
507
655
  ```ts
508
- import { buttonContract, buttonOptions } from "meowtail";
509
- import { css, partSelector } from "meowcss/meowjsx";
656
+ import type { Button } from "meowtail";
657
+ import { buttonOptions } from "meowtail";
658
+ import { css, parts } from "meowcss/meowjsx";
510
659
  import { uiTokens } from "meowtail/theme";
511
660
 
661
+ const button = parts<typeof Button>("button");
512
662
  const applicationStyles = css`
513
- .toolbar ${partSelector(buttonContract, "root")} {
514
- border-radius: ${uiTokens.controlRadius};
663
+ .toolbar ${button.root} {
664
+ border-radius: ${uiTokens.radius.lg};
515
665
  ${buttonOptions.when({ variant: "quiet" })} {
516
- color: ${uiTokens.info};
666
+ color: ${uiTokens.status.info};
517
667
  }
518
668
  }
519
669
  `;
@@ -523,9 +673,11 @@ The host explicitly composes CSS in the order of standard theme, application bas
523
673
  continue to be handled by CSS; native states match on native attributes, and component style options use `when`. `className` and
524
674
  `style` remain application extension entry points, and business layout does not enter the standard theme.
525
675
 
526
- Custom tokens use `defineTokens`, and `defineTheme` composes options, complete defaults, token
527
- sets, and CSS fragments in one call. Component bindings come from typed part references in the fragment; do not convert the fragment to a string early and
528
- lose that information. Measurement variables without defaults use `tokenRef`, whose `.name` is passed to `setProperty`.
676
+ Custom tokens use `defineTokens`, and `defineTheme` composes options, complete defaults, token sets
677
+ and CSS fragments in one call. Typed descriptors address parts without loading their implementation.
678
+ The JSX adapter binds conditional component tokens by option attribute; root and scheme configuration
679
+ remain regional. Measurement variables without defaults use `tokenRef`, whose `.name` is passed to
680
+ `setProperty`.
529
681
  See [MeowCSS](../meowcss/README.md) for pure generation and typed adapter usage and scope boundaries.
530
682
 
531
683
  After building and installing the local package, run `bunx --no-install meowbook serve --config packages/meowtail/meowbook.config.ts` from the repository root to
@@ -572,7 +724,7 @@ renderToHtml + innerHTML instead of browser mounting that needs a lifecycle.
572
724
  ### Files and verification
573
725
 
574
726
  - `meowcss`: shared token/option/CSS generation; `meowcss/meowjsx` handles typed parts and automatic carriers; `meowcss/web` handles the DOM theme lifecycle. See [MeowCSS](../meowcss/README.md).
575
- - `src/theme/tokens.ts`, `palette.ts`: shared parameters and semantic palettes.
727
+ - `src/theme/tokens.ts`: the design system's role tree (`uiTokens`) and the chat, alert and logo sets.
576
728
  - `src/theme/base.styles.ts` and the `*.styles.ts` files under `components/chat/icons/shared`: CSS templates written by responsibility;
577
729
  highlight-specific tokens live in `shared/code-highlight.tokens.ts`.
578
730
  - `src/theme/index.ts`: explicit assembly and public exports of the standard theme.
@@ -33,3 +33,50 @@ is provided by Lucide (https://lucide.dev), version 1.59.0, under the ISC
33
33
  license; icons derived from the Feather project are under the MIT license. The
34
34
  full license text, including the Feather attribution list, ships in
35
35
  `dist/src/icons/LUCIDE-LICENSE` and in the installed `lucide` package.
36
+
37
+ # Pele
38
+
39
+ `MermaidDiagram` renders Mermaid diagrams with Pele (https://pele.run), version
40
+ 1.9.0, an npm dependency loaded only when a diagram mounts. Its own notice ships
41
+ in the installed `pele` package.
42
+
43
+ MIT License
44
+
45
+ Copyright (c) 2026 kepano
46
+
47
+ Permission is hereby granted, free of charge, to any person obtaining a copy
48
+ of this software and associated documentation files (the "Software"), to deal
49
+ in the Software without restriction, including without limitation the rights
50
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
+ copies of the Software, and to permit persons to whom the Software is
52
+ furnished to do so, subject to the following conditions:
53
+
54
+ The above copyright notice and this permission notice shall be included in all
55
+ copies or substantial portions of the Software.
56
+
57
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
+ SOFTWARE.
64
+
65
+ ---
66
+
67
+ The reset icon of the zoom controls is "rotate-ccw" from Lucide v1.14.0
68
+ (https://lucide.dev), under the ISC License:
69
+
70
+ Copyright (c) 2026 Lucide Icons and Contributors
71
+
72
+ Permission to use, copy, modify, and/or distribute this software for any
73
+ purpose with or without fee is hereby granted, provided that the above
74
+ copyright notice and this permission notice appear in all copies.
75
+
76
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
77
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
78
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
79
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
80
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
81
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
82
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,8 +1,12 @@
1
+ import { type Child, type Context } from "meowjsx";
1
2
  import { type AssistantViewProps } from "./assistant-types.js";
2
- export declare const assistantComposerContract: {
3
- readonly name: "assistant-composer";
4
- readonly parts: readonly ["root", "choices", "feedback", "file"];
5
- };
6
- export declare const AssistantComposer: import("meowjsx").Component<{
3
+ export declare function AssistantComposer({ options, trailing }: {
7
4
  options: AssistantViewProps;
8
- }, "assistant-composer", "choices" | "feedback" | "file" | "root">;
5
+ trailing?: Child;
6
+ }, context: Context<typeof AssistantComposer>): import("meowjsx").VNode;
7
+ export declare namespace AssistantComposer {
8
+ var meta: {
9
+ readonly name: "assistant-composer";
10
+ readonly parts: readonly ["root", "choices", "feedback", "file"];
11
+ };
12
+ }