@logicplanes/kaeso-ui 0.6.0-rc.3 → 0.6.0-rc.4

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 (533) hide show
  1. package/AGENTS.md +18 -18
  2. package/ai/component-guides.md +328 -909
  3. package/ai/component-registry.json +2632 -5971
  4. package/ai/component-registry.md +119 -980
  5. package/ai/icons.md +1 -1
  6. package/ai/tokens.md +1 -1
  7. package/dist/chunks/{app-frame-CxnPDACQ.js → app-frame-BQglMYqg.js} +30 -27
  8. package/dist/chunks/app-frame-BQglMYqg.js.map +1 -0
  9. package/dist/chunks/avatar-BxurPxr-.js +304 -0
  10. package/dist/chunks/avatar-BxurPxr-.js.map +1 -0
  11. package/dist/chunks/{badge-ny-0ayKQ.js → badge-D0xd2NJD.js} +2 -2
  12. package/dist/chunks/{badge-ny-0ayKQ.js.map → badge-D0xd2NJD.js.map} +1 -1
  13. package/dist/chunks/{banner-E7HfUL4F.js → banner-CDxD8uNX.js} +9 -8
  14. package/dist/chunks/banner-CDxD8uNX.js.map +1 -0
  15. package/dist/chunks/{button-DiwFpDfQ.js → button-CcXKlcXd.js} +89 -75
  16. package/dist/chunks/button-CcXKlcXd.js.map +1 -0
  17. package/dist/chunks/button-group-DuDLB-P0.js +70 -0
  18. package/dist/chunks/button-group-DuDLB-P0.js.map +1 -0
  19. package/dist/chunks/{checkbox-B5HLL9sc.js → checkbox-CeJSpY7J.js} +4 -7
  20. package/dist/chunks/checkbox-CeJSpY7J.js.map +1 -0
  21. package/dist/chunks/{code-block-BTLf2TAk.js → code-block-8rW57rUV.js} +4 -5
  22. package/dist/chunks/code-block-8rW57rUV.js.map +1 -0
  23. package/dist/chunks/{code-block-BedlY0KI.js → code-block-CbVLyIr-.js} +11 -11
  24. package/dist/chunks/{code-block-BedlY0KI.js.map → code-block-CbVLyIr-.js.map} +1 -1
  25. package/dist/chunks/collapsible-CiDUGq5u.js +50 -0
  26. package/dist/chunks/collapsible-CiDUGq5u.js.map +1 -0
  27. package/dist/chunks/{combobox-B7YbjRwW.js → combobox-BX703kW9.js} +17 -17
  28. package/dist/chunks/combobox-BX703kW9.js.map +1 -0
  29. package/dist/chunks/{command-list-B7dFDO1K.js → command-list-BLVmk0z6.js} +154 -157
  30. package/dist/chunks/command-list-BLVmk0z6.js.map +1 -0
  31. package/dist/chunks/command-palette-s_qW_RRa.js +201 -0
  32. package/dist/chunks/command-palette-s_qW_RRa.js.map +1 -0
  33. package/dist/chunks/{copy-button-icoWd5sF.js → copy-button-CK-ddxCg.js} +64 -48
  34. package/dist/chunks/copy-button-CK-ddxCg.js.map +1 -0
  35. package/dist/chunks/{core-BsBBHUpy.js → core-nqsBmktJ.js} +54 -64
  36. package/dist/chunks/core-nqsBmktJ.js.map +1 -0
  37. package/dist/chunks/{data-table-H1eRbtpW.js → data-table-FFbcwv22.js} +149 -149
  38. package/dist/chunks/data-table-FFbcwv22.js.map +1 -0
  39. package/dist/chunks/date-picker-DGM5bXxD.js +346 -0
  40. package/dist/chunks/date-picker-DGM5bXxD.js.map +1 -0
  41. package/dist/chunks/{date-popup-DoRPQPkV.js → date-popup-C2FLIETP.js} +3 -3
  42. package/dist/chunks/{date-popup-DoRPQPkV.js.map → date-popup-C2FLIETP.js.map} +1 -1
  43. package/dist/chunks/{de-CRbLcQNS.js → de-DN2LX3_2.js} +1 -18
  44. package/dist/chunks/de-DN2LX3_2.js.map +1 -0
  45. package/dist/chunks/{dev-CR1p7gCm.js → dev-TgcS67XR.js} +2 -5
  46. package/dist/chunks/dev-TgcS67XR.js.map +1 -0
  47. package/dist/chunks/dialog-DhT0sDr6.js +611 -0
  48. package/dist/chunks/dialog-DhT0sDr6.js.map +1 -0
  49. package/dist/chunks/display-options-CRZO-ODl.js +142 -0
  50. package/dist/chunks/display-options-CRZO-ODl.js.map +1 -0
  51. package/dist/chunks/{domain-CTtJuvDL.js → domain-aTOiqhIX.js} +2 -2
  52. package/dist/chunks/{domain-CTtJuvDL.js.map → domain-aTOiqhIX.js.map} +1 -1
  53. package/dist/chunks/{field-DiMsBLuW.js → field-CRbWDIsH.js} +42 -24
  54. package/dist/chunks/field-CRbWDIsH.js.map +1 -0
  55. package/dist/chunks/figure-C2WlBeYZ.js +60 -0
  56. package/dist/chunks/figure-C2WlBeYZ.js.map +1 -0
  57. package/dist/chunks/filter-chip-hGC4Okb0.js +204 -0
  58. package/dist/chunks/filter-chip-hGC4Okb0.js.map +1 -0
  59. package/dist/chunks/filter-row-BcBy7gxN.js +35 -0
  60. package/dist/chunks/filter-row-BcBy7gxN.js.map +1 -0
  61. package/dist/chunks/flow-T4mRzmsP.js +143 -0
  62. package/dist/chunks/flow-T4mRzmsP.js.map +1 -0
  63. package/dist/chunks/heading-Dua_i106.js +28 -0
  64. package/dist/chunks/heading-Dua_i106.js.map +1 -0
  65. package/dist/chunks/{identity-BIJbnz9o.js → identity-CFoQG_TN.js} +5 -54
  66. package/dist/chunks/identity-CFoQG_TN.js.map +1 -0
  67. package/dist/chunks/input-DHrCmxvX.js +179 -0
  68. package/dist/chunks/input-DHrCmxvX.js.map +1 -0
  69. package/dist/chunks/input-Ia8Mqd8q.js +206 -0
  70. package/dist/chunks/input-Ia8Mqd8q.js.map +1 -0
  71. package/dist/chunks/{input-group-CC_euYp7.js → input-group-6LrjOci-.js} +29 -29
  72. package/dist/chunks/input-group-6LrjOci-.js.map +1 -0
  73. package/dist/chunks/{iso-field-B2vajdVY.js → iso-field-CKN-M0PC.js} +2 -2
  74. package/dist/chunks/{iso-field-B2vajdVY.js.map → iso-field-CKN-M0PC.js.map} +1 -1
  75. package/dist/chunks/kaeso-Cbtv7F-H.js +488 -0
  76. package/dist/chunks/kaeso-Cbtv7F-H.js.map +1 -0
  77. package/dist/chunks/{kbd-BaP7KJSF.js → kbd-CFkkPtOm.js} +28 -22
  78. package/dist/chunks/kbd-CFkkPtOm.js.map +1 -0
  79. package/dist/chunks/key-value-BsnQl9_-.js +58 -0
  80. package/dist/chunks/key-value-BsnQl9_-.js.map +1 -0
  81. package/dist/chunks/{list-Qq7I5Djc.js → list-BT7TUo7D.js} +96 -95
  82. package/dist/chunks/list-BT7TUo7D.js.map +1 -0
  83. package/dist/chunks/loader-2Tsz3V9j.js +39 -0
  84. package/dist/chunks/loader-2Tsz3V9j.js.map +1 -0
  85. package/dist/chunks/logo-DlxX9yDU.js +102 -0
  86. package/dist/chunks/logo-DlxX9yDU.js.map +1 -0
  87. package/dist/chunks/{markdown-BZasrEn1.js → markdown-8YRbGHeS.js} +9 -9
  88. package/dist/chunks/{markdown-BZasrEn1.js.map → markdown-8YRbGHeS.js.map} +1 -1
  89. package/dist/chunks/{menu-B2wVEBiS.js → menu-DxmOaBVN.js} +115 -147
  90. package/dist/chunks/menu-DxmOaBVN.js.map +1 -0
  91. package/dist/chunks/meter-CJqtlPjV.js +193 -0
  92. package/dist/chunks/meter-CJqtlPjV.js.map +1 -0
  93. package/dist/chunks/nav-sheet-DwAJdFCD.js +66 -0
  94. package/dist/chunks/nav-sheet-DwAJdFCD.js.map +1 -0
  95. package/dist/chunks/{page-header-Bkv25OXp.js → page-header-DIZCC9oT.js} +3 -3
  96. package/dist/chunks/{page-header-Bkv25OXp.js.map → page-header-DIZCC9oT.js.map} +1 -1
  97. package/dist/chunks/{pagination-BNpWq2tz.js → pagination-DFxZ2d3u.js} +45 -42
  98. package/dist/chunks/pagination-DFxZ2d3u.js.map +1 -0
  99. package/dist/chunks/{picker-popover-5Yw6n-s0.js → picker-popover-tBL7TLJC.js} +17 -15
  100. package/dist/chunks/picker-popover-tBL7TLJC.js.map +1 -0
  101. package/dist/chunks/{popover-BPHDFWPc.js → popover-DRvCfHVs.js} +9 -9
  102. package/dist/chunks/{popover-BPHDFWPc.js.map → popover-DRvCfHVs.js.map} +1 -1
  103. package/dist/chunks/qr-code-HlCtD0aP.js +38 -0
  104. package/dist/chunks/qr-code-HlCtD0aP.js.map +1 -0
  105. package/dist/chunks/{radio-4ByJW15M.js → radio-CvrUb2UK.js} +4 -14
  106. package/dist/chunks/radio-CvrUb2UK.js.map +1 -0
  107. package/dist/chunks/{range-popup-dTCKZ8gu.js → range-popup-H1040MdD.js} +4 -4
  108. package/dist/chunks/{range-popup-dTCKZ8gu.js.map → range-popup-H1040MdD.js.map} +1 -1
  109. package/dist/chunks/{rights-BrThsFR2.js → rights-CHB9TtWu.js} +10 -8
  110. package/dist/chunks/rights-CHB9TtWu.js.map +1 -0
  111. package/dist/chunks/section-Dd5vmuR1.js +99 -0
  112. package/dist/chunks/section-Dd5vmuR1.js.map +1 -0
  113. package/dist/chunks/{segmented-fyzkH6z6.js → segmented-Clv2P1AB.js} +2 -2
  114. package/dist/chunks/{segmented-fyzkH6z6.js.map → segmented-Clv2P1AB.js.map} +1 -1
  115. package/dist/chunks/{select-CiifAM6G.js → select-DU6O_iW6.js} +53 -53
  116. package/dist/chunks/{select-CiifAM6G.js.map → select-DU6O_iW6.js.map} +1 -1
  117. package/dist/chunks/settings-CIBUZAZF.js +80 -0
  118. package/dist/chunks/settings-CIBUZAZF.js.map +1 -0
  119. package/dist/chunks/sheet-DrxdaMjN.js +119 -0
  120. package/dist/chunks/sheet-DrxdaMjN.js.map +1 -0
  121. package/dist/chunks/{sidebar-CLq7XuOp.js → sidebar-ZDmAFOVM.js} +86 -86
  122. package/dist/chunks/sidebar-ZDmAFOVM.js.map +1 -0
  123. package/dist/chunks/{sidebar-menu-ykPCnr6V.js → sidebar-menu-Iq_ADCGg.js} +2 -2
  124. package/dist/chunks/{sidebar-menu-ykPCnr6V.js.map → sidebar-menu-Iq_ADCGg.js.map} +1 -1
  125. package/dist/chunks/skeleton-E7yXpAaT.js +29 -0
  126. package/dist/chunks/skeleton-E7yXpAaT.js.map +1 -0
  127. package/dist/chunks/stat-7VFJ8QW-.js +250 -0
  128. package/dist/chunks/stat-7VFJ8QW-.js.map +1 -0
  129. package/dist/chunks/{status-dot-BpYylrj2.js → status-BvzxKVpT.js} +8 -9
  130. package/dist/chunks/status-BvzxKVpT.js.map +1 -0
  131. package/dist/chunks/{switch-BPX928J4.js → switch-lxwwqvbG.js} +2 -2
  132. package/dist/chunks/{switch-BPX928J4.js.map → switch-lxwwqvbG.js.map} +1 -1
  133. package/dist/chunks/tabs-BZj11L5c.js +106 -0
  134. package/dist/chunks/tabs-BZj11L5c.js.map +1 -0
  135. package/dist/chunks/{tag-Dv_aKvNQ.js → tag-Bnc0j1jP.js} +10 -25
  136. package/dist/chunks/tag-Bnc0j1jP.js.map +1 -0
  137. package/dist/chunks/{text-Dw8z0bOV.js → text-D_rqwSaG.js} +2 -2
  138. package/dist/chunks/{text-Dw8z0bOV.js.map → text-D_rqwSaG.js.map} +1 -1
  139. package/dist/chunks/{textarea-Cj7oEoQB.js → textarea-BzMbsYD7.js} +15 -15
  140. package/dist/chunks/textarea-BzMbsYD7.js.map +1 -0
  141. package/dist/chunks/theme-image-DjI_Zymf.js +38 -0
  142. package/dist/chunks/theme-image-DjI_Zymf.js.map +1 -0
  143. package/dist/chunks/theme-menu-BLNYvmuB.js +56 -0
  144. package/dist/chunks/theme-menu-BLNYvmuB.js.map +1 -0
  145. package/dist/chunks/thumbnail-CRdk7mvC.js +52 -0
  146. package/dist/chunks/thumbnail-CRdk7mvC.js.map +1 -0
  147. package/dist/chunks/timeline-CWQdqBVv.js +74 -0
  148. package/dist/chunks/timeline-CWQdqBVv.js.map +1 -0
  149. package/dist/chunks/{timeseries-CpfodfVQ.js → timeseries-Cj50XALJ.js} +8 -8
  150. package/dist/chunks/{timeseries-CpfodfVQ.js.map → timeseries-Cj50XALJ.js.map} +1 -1
  151. package/dist/chunks/toast-C78w9ewo.js +227 -0
  152. package/dist/chunks/toast-C78w9ewo.js.map +1 -0
  153. package/dist/chunks/toc-BHf7IbFL.js +69 -0
  154. package/dist/chunks/toc-BHf7IbFL.js.map +1 -0
  155. package/dist/chunks/tooltip-D2g_QO6w.js +17 -0
  156. package/dist/chunks/tooltip-D2g_QO6w.js.map +1 -0
  157. package/dist/chunks/{tooltip-DxtFh0_0.js → tooltip-F3l2S3Ad.js} +4 -4
  158. package/dist/chunks/tooltip-F3l2S3Ad.js.map +1 -0
  159. package/dist/chunks/{tooltip-root-BP_Y6LM1.js → tooltip-root-Co-dVnZj.js} +3 -3
  160. package/dist/chunks/tooltip-root-Co-dVnZj.js.map +1 -0
  161. package/dist/chunks/{truncated-D3992uAW.js → truncated-CzAJxfAD.js} +2 -2
  162. package/dist/chunks/{truncated-D3992uAW.js.map → truncated-CzAJxfAD.js.map} +1 -1
  163. package/dist/chunks/visually-hidden-UprFAwfn.js +17 -0
  164. package/dist/chunks/visually-hidden-UprFAwfn.js.map +1 -0
  165. package/dist/chunks/{zh-CN-BHGxG46g.js → zh-CN-BpSGsgRh.js} +1 -18
  166. package/dist/chunks/zh-CN-BpSGsgRh.js.map +1 -0
  167. package/dist/components/app-frame.js +1 -3
  168. package/dist/components/avatar.js +1 -1
  169. package/dist/components/badge.js +1 -1
  170. package/dist/components/banner.js +1 -1
  171. package/dist/components/button-group.js +1 -69
  172. package/dist/components/button.js +1 -1
  173. package/dist/components/charts/bar.js +13 -13
  174. package/dist/components/charts/bar.js.map +1 -1
  175. package/dist/components/charts/donut.js +17 -17
  176. package/dist/components/charts/donut.js.map +1 -1
  177. package/dist/components/charts/heatmap.js +1 -1
  178. package/dist/components/charts/sankey.js +9 -9
  179. package/dist/components/charts/sankey.js.map +1 -1
  180. package/dist/components/charts/timeseries.js +1 -1
  181. package/dist/components/charts.js +8 -9
  182. package/dist/components/checkbox.js +1 -1
  183. package/dist/components/code-block.js +4 -4
  184. package/dist/components/collapsible.js +1 -76
  185. package/dist/components/combobox.js +1 -1
  186. package/dist/components/command-palette.js +1 -200
  187. package/dist/components/copy-button.js +1 -1
  188. package/dist/components/data-table.js +1 -1
  189. package/dist/components/date-picker.js +1 -345
  190. package/dist/components/dialog.js +1 -212
  191. package/dist/components/display-options.js +1 -140
  192. package/dist/components/field.js +1 -1
  193. package/dist/components/figure.js +1 -59
  194. package/dist/components/filter-chip.js +1 -203
  195. package/dist/components/filter-row.js +1 -34
  196. package/dist/components/flow-canvas.js +8 -4
  197. package/dist/components/flow-canvas.js.map +1 -1
  198. package/dist/components/flow.js +1 -142
  199. package/dist/components/heading.js +1 -27
  200. package/dist/components/input.js +4 -260
  201. package/dist/components/kaeso/conversation.js +3 -3
  202. package/dist/components/kaeso/identity.js +1 -1
  203. package/dist/components/kaeso/moments.js +25 -60
  204. package/dist/components/kaeso/moments.js.map +1 -1
  205. package/dist/components/kaeso/rights.js +1 -1
  206. package/dist/components/kaeso/usage.js +28 -28
  207. package/dist/components/kaeso/usage.js.map +1 -1
  208. package/dist/components/kaeso.js +7 -489
  209. package/dist/components/kbd.js +1 -1
  210. package/dist/components/key-value.js +1 -57
  211. package/dist/components/list.js +1 -1
  212. package/dist/components/loader.js +3 -38
  213. package/dist/components/logo.js +1 -101
  214. package/dist/components/markdown.js +1 -1
  215. package/dist/components/menu.js +2 -2
  216. package/dist/components/meter.js +1 -1
  217. package/dist/components/page-header.js +1 -1
  218. package/dist/components/pagination.js +1 -1
  219. package/dist/components/playground.js +381 -373
  220. package/dist/components/playground.js.map +1 -1
  221. package/dist/components/popover.js +1 -53
  222. package/dist/components/qr-code.js +1 -37
  223. package/dist/components/radio.js +1 -1
  224. package/dist/components/section.js +1 -1
  225. package/dist/components/segmented.js +1 -1
  226. package/dist/components/select.js +1 -1
  227. package/dist/components/settings.js +1 -92
  228. package/dist/components/sheet.js +1 -116
  229. package/dist/components/sidebar.js +1 -1
  230. package/dist/components/skeleton.js +1 -1
  231. package/dist/components/stat.js +1 -221
  232. package/dist/components/status.js +2 -0
  233. package/dist/components/switch.js +1 -1
  234. package/dist/components/tabs.js +1 -112
  235. package/dist/components/tag.js +1 -1
  236. package/dist/components/text.js +1 -1
  237. package/dist/components/theme-image.js +1 -37
  238. package/dist/components/theme-menu.js +1 -55
  239. package/dist/components/thumbnail.js +1 -51
  240. package/dist/components/timeline.js +1 -73
  241. package/dist/components/toast.js +1 -233
  242. package/dist/components/toc.js +1 -68
  243. package/dist/components/tooltip.js +3 -17
  244. package/dist/components/visually-hidden.js +1 -16
  245. package/dist/i18n-provider.js +1 -1
  246. package/dist/index.js +104 -129
  247. package/dist/kaeso.css +1 -1
  248. package/dist/styles.css +1 -1
  249. package/dist/tailwind.css +0 -1
  250. package/dist/types/components/app-frame/docs.d.ts +0 -10
  251. package/dist/types/components/app-frame/index.d.ts +2 -2
  252. package/dist/types/components/avatar/agent.d.ts +39 -0
  253. package/dist/types/components/avatar/avatar.d.ts +12 -2
  254. package/dist/types/components/avatar/docs.d.ts +2 -1
  255. package/dist/types/components/avatar/index.d.ts +4 -1
  256. package/dist/types/components/badge/index.d.ts +2 -1
  257. package/dist/types/components/banner/index.d.ts +2 -1
  258. package/dist/types/components/button/button.d.ts +12 -4
  259. package/dist/types/components/button/docs.d.ts +4 -1
  260. package/dist/types/components/button/index.d.ts +2 -1
  261. package/dist/types/components/button-group/index.d.ts +2 -1
  262. package/dist/types/components/calendar/index.d.ts +2 -1
  263. package/dist/types/components/charts/docs.d.ts +0 -74
  264. package/dist/types/components/charts/donut.d.ts +0 -9
  265. package/dist/types/components/charts/index.d.ts +12 -8
  266. package/dist/types/components/checkbox/checkbox.d.ts +3 -9
  267. package/dist/types/components/checkbox/docs.d.ts +0 -21
  268. package/dist/types/components/checkbox/index.d.ts +2 -1
  269. package/dist/types/components/code/index.d.ts +2 -1
  270. package/dist/types/components/code-block/code-block.d.ts +0 -1
  271. package/dist/types/components/code-block/docs.d.ts +0 -17
  272. package/dist/types/components/code-block/index.d.ts +6 -3
  273. package/dist/types/components/collapsible/collapsible.d.ts +0 -13
  274. package/dist/types/components/collapsible/docs.d.ts +0 -8
  275. package/dist/types/components/collapsible/index.d.ts +2 -1
  276. package/dist/types/components/combobox/docs.d.ts +0 -7
  277. package/dist/types/components/combobox/index.d.ts +2 -1
  278. package/dist/types/components/command-list/command-list.d.ts +0 -4
  279. package/dist/types/components/command-list/picker-popover.d.ts +0 -3
  280. package/dist/types/components/command-palette/index.d.ts +2 -1
  281. package/dist/types/components/copy-button/copy-button.d.ts +19 -36
  282. package/dist/types/components/copy-button/docs.d.ts +2 -18
  283. package/dist/types/components/copy-button/index.d.ts +2 -1
  284. package/dist/types/components/data-table/columns.d.ts +3 -3
  285. package/dist/types/components/data-table/index.d.ts +3 -2
  286. package/dist/types/components/date-picker/index.d.ts +4 -2
  287. package/dist/types/components/dialog/index.d.ts +6 -3
  288. package/dist/types/components/display-options/index.d.ts +2 -1
  289. package/dist/types/components/empty/index.d.ts +2 -1
  290. package/dist/types/components/field/index.d.ts +2 -1
  291. package/dist/types/components/figure/index.d.ts +2 -1
  292. package/dist/types/components/filter-chip/index.d.ts +2 -1
  293. package/dist/types/components/filter-row/index.d.ts +2 -1
  294. package/dist/types/components/flow/index.d.ts +2 -1
  295. package/dist/types/components/flow-canvas/index.d.ts +4 -2
  296. package/dist/types/components/heading/index.d.ts +2 -1
  297. package/dist/types/components/icon/index.d.ts +2 -1
  298. package/dist/types/components/input/docs.d.ts +4 -46
  299. package/dist/types/components/input/index.d.ts +11 -8
  300. package/dist/types/components/input/input-group.d.ts +0 -4
  301. package/dist/types/components/input/input.d.ts +4 -29
  302. package/dist/types/components/input/number-input.d.ts +1 -1
  303. package/dist/types/components/kaeso/docs.d.ts +0 -26
  304. package/dist/types/components/kaeso/identity.d.ts +0 -12
  305. package/dist/types/components/kaeso/index.d.ts +21 -11
  306. package/dist/types/components/kaeso/moments.d.ts +0 -3
  307. package/dist/types/components/kbd/docs.d.ts +0 -6
  308. package/dist/types/components/kbd/index.d.ts +2 -1
  309. package/dist/types/components/kbd/kbd.d.ts +2 -6
  310. package/dist/types/components/key-value/index.d.ts +2 -1
  311. package/dist/types/components/label/label.d.ts +0 -3
  312. package/dist/types/components/link/index.d.ts +2 -1
  313. package/dist/types/components/list/docs.d.ts +0 -45
  314. package/dist/types/components/list/index.d.ts +2 -1
  315. package/dist/types/components/loader/index.d.ts +4 -2
  316. package/dist/types/components/logo/index.d.ts +2 -1
  317. package/dist/types/components/markdown/index.d.ts +2 -1
  318. package/dist/types/components/menu/docs.d.ts +0 -7
  319. package/dist/types/components/menu/index.d.ts +2 -1
  320. package/dist/types/components/menu/menu.d.ts +0 -34
  321. package/dist/types/components/meter/docs.d.ts +1 -0
  322. package/dist/types/components/meter/gauge.d.ts +9 -0
  323. package/dist/types/components/meter/index.d.ts +2 -1
  324. package/dist/types/components/meter/meter.d.ts +12 -0
  325. package/dist/types/components/page-header/index.d.ts +2 -1
  326. package/dist/types/components/pagination/index.d.ts +2 -1
  327. package/dist/types/components/playground/docs.d.ts +1 -14
  328. package/dist/types/components/playground/index.d.ts +16 -8
  329. package/dist/types/components/playground/parameter-panel.d.ts +2 -5
  330. package/dist/types/components/popover/docs.d.ts +0 -9
  331. package/dist/types/components/popover/index.d.ts +2 -2
  332. package/dist/types/components/qr-code/index.d.ts +2 -1
  333. package/dist/types/components/radio/docs.d.ts +0 -27
  334. package/dist/types/components/radio/index.d.ts +2 -1
  335. package/dist/types/components/radio/radio.d.ts +1 -6
  336. package/dist/types/components/release-art/index.d.ts +2 -1
  337. package/dist/types/components/scroll-area/index.d.ts +2 -1
  338. package/dist/types/components/section/index.d.ts +2 -1
  339. package/dist/types/components/section/section.d.ts +4 -0
  340. package/dist/types/components/segmented/index.d.ts +2 -1
  341. package/dist/types/components/select/index.d.ts +2 -1
  342. package/dist/types/components/separator/index.d.ts +2 -1
  343. package/dist/types/components/settings/docs.d.ts +0 -9
  344. package/dist/types/components/settings/index.d.ts +2 -1
  345. package/dist/types/components/settings/settings.d.ts +0 -10
  346. package/dist/types/components/sheet/index.d.ts +2 -1
  347. package/dist/types/components/sidebar/docs.d.ts +6 -8
  348. package/dist/types/components/sidebar/index.d.ts +2 -1
  349. package/dist/types/components/sidebar/sidebar-context.d.ts +5 -0
  350. package/dist/types/components/sidebar/sidebar.d.ts +2 -7
  351. package/dist/types/components/skeleton/docs.d.ts +1 -6
  352. package/dist/types/components/skeleton/index.d.ts +2 -1
  353. package/dist/types/components/skeleton/skeleton.d.ts +1 -3
  354. package/dist/types/components/slider/index.d.ts +2 -1
  355. package/dist/types/components/stat/docs.d.ts +9 -19
  356. package/dist/types/components/stat/index.d.ts +2 -1
  357. package/dist/types/components/stat/stat.d.ts +33 -23
  358. package/dist/types/components/{label → status}/docs.d.ts +3 -2
  359. package/dist/types/components/status/index.d.ts +2 -0
  360. package/dist/types/components/{status-dot/status-dot.d.ts → status/status.d.ts} +5 -6
  361. package/dist/types/components/swap-text/index.d.ts +2 -1
  362. package/dist/types/components/switch/index.d.ts +2 -1
  363. package/dist/types/components/table/index.d.ts +2 -1
  364. package/dist/types/components/tabs/docs.d.ts +0 -10
  365. package/dist/types/components/tabs/index.d.ts +2 -1
  366. package/dist/types/components/tabs/tabs.d.ts +0 -26
  367. package/dist/types/components/tag/docs.d.ts +0 -14
  368. package/dist/types/components/tag/index.d.ts +2 -1
  369. package/dist/types/components/tag/tag.d.ts +0 -1
  370. package/dist/types/components/text/index.d.ts +2 -1
  371. package/dist/types/components/theme-image/index.d.ts +2 -1
  372. package/dist/types/components/theme-menu/index.d.ts +2 -1
  373. package/dist/types/components/thumbnail/index.d.ts +2 -1
  374. package/dist/types/components/timeline/index.d.ts +2 -1
  375. package/dist/types/components/toast/docs.d.ts +0 -17
  376. package/dist/types/components/toast/index.d.ts +2 -1
  377. package/dist/types/components/toast/toast.d.ts +0 -14
  378. package/dist/types/components/toc/index.d.ts +2 -1
  379. package/dist/types/components/toolbar/index.d.ts +2 -1
  380. package/dist/types/components/tooltip/docs.d.ts +0 -8
  381. package/dist/types/components/tooltip/index.d.ts +3 -2
  382. package/dist/types/components/visually-hidden/index.d.ts +1 -1
  383. package/dist/types/index.d.ts +1 -13
  384. package/dist/types/theme/index.d.ts +2 -1
  385. package/dist/types/utils/index.d.ts +2 -4
  386. package/dist/utils.js +5 -7
  387. package/package.json +2 -6
  388. package/dist/blocks/delete-resource.js +0 -36
  389. package/dist/blocks/delete-resource.js.map +0 -1
  390. package/dist/blocks/pages.js +0 -75
  391. package/dist/blocks/pages.js.map +0 -1
  392. package/dist/blocks/resource-list.js +0 -82
  393. package/dist/blocks/resource-list.js.map +0 -1
  394. package/dist/chunks/agent-avatar-CepEC1TI.js +0 -188
  395. package/dist/chunks/agent-avatar-CepEC1TI.js.map +0 -1
  396. package/dist/chunks/app-frame-CxnPDACQ.js.map +0 -1
  397. package/dist/chunks/avatar-BYrq5P5M.js +0 -107
  398. package/dist/chunks/avatar-BYrq5P5M.js.map +0 -1
  399. package/dist/chunks/banner-E7HfUL4F.js.map +0 -1
  400. package/dist/chunks/button-DiwFpDfQ.js.map +0 -1
  401. package/dist/chunks/checkbox-B5HLL9sc.js.map +0 -1
  402. package/dist/chunks/code-block-BTLf2TAk.js.map +0 -1
  403. package/dist/chunks/combobox-B7YbjRwW.js.map +0 -1
  404. package/dist/chunks/command-list-B7dFDO1K.js.map +0 -1
  405. package/dist/chunks/copy-button-icoWd5sF.js.map +0 -1
  406. package/dist/chunks/core-BsBBHUpy.js.map +0 -1
  407. package/dist/chunks/data-table-H1eRbtpW.js.map +0 -1
  408. package/dist/chunks/de-CRbLcQNS.js.map +0 -1
  409. package/dist/chunks/dev-CR1p7gCm.js.map +0 -1
  410. package/dist/chunks/dialog-C1_0OYLS.js +0 -405
  411. package/dist/chunks/dialog-C1_0OYLS.js.map +0 -1
  412. package/dist/chunks/field-DiMsBLuW.js.map +0 -1
  413. package/dist/chunks/icon-button-DxixlFmR.js +0 -51
  414. package/dist/chunks/icon-button-DxixlFmR.js.map +0 -1
  415. package/dist/chunks/identity-BIJbnz9o.js.map +0 -1
  416. package/dist/chunks/input-dhIRamo1.js +0 -125
  417. package/dist/chunks/input-dhIRamo1.js.map +0 -1
  418. package/dist/chunks/input-group-CC_euYp7.js.map +0 -1
  419. package/dist/chunks/kbd-BaP7KJSF.js.map +0 -1
  420. package/dist/chunks/label-Drl4_OLf.js +0 -26
  421. package/dist/chunks/label-Drl4_OLf.js.map +0 -1
  422. package/dist/chunks/list-Qq7I5Djc.js.map +0 -1
  423. package/dist/chunks/menu-B2wVEBiS.js.map +0 -1
  424. package/dist/chunks/meter-ChxWKzBR.js +0 -100
  425. package/dist/chunks/meter-ChxWKzBR.js.map +0 -1
  426. package/dist/chunks/nav-sheet-B9JDgXGp.js +0 -67
  427. package/dist/chunks/nav-sheet-B9JDgXGp.js.map +0 -1
  428. package/dist/chunks/pagination-BNpWq2tz.js.map +0 -1
  429. package/dist/chunks/picker-popover-5Yw6n-s0.js.map +0 -1
  430. package/dist/chunks/radio-4ByJW15M.js.map +0 -1
  431. package/dist/chunks/rights-BrThsFR2.js.map +0 -1
  432. package/dist/chunks/section-QdjWZhe7.js +0 -77
  433. package/dist/chunks/section-QdjWZhe7.js.map +0 -1
  434. package/dist/chunks/section-header-DU1Q4Tdf.js +0 -28
  435. package/dist/chunks/section-header-DU1Q4Tdf.js.map +0 -1
  436. package/dist/chunks/sidebar-CLq7XuOp.js.map +0 -1
  437. package/dist/chunks/skeleton-BkRG8QRE.js +0 -36
  438. package/dist/chunks/skeleton-BkRG8QRE.js.map +0 -1
  439. package/dist/chunks/status-dot-BpYylrj2.js.map +0 -1
  440. package/dist/chunks/tag-Dv_aKvNQ.js.map +0 -1
  441. package/dist/chunks/textarea-Cj7oEoQB.js.map +0 -1
  442. package/dist/chunks/tooltip-DxtFh0_0.js.map +0 -1
  443. package/dist/chunks/tooltip-root-BP_Y6LM1.js.map +0 -1
  444. package/dist/chunks/utils-CdH72WEp.js +0 -8
  445. package/dist/chunks/utils-CdH72WEp.js.map +0 -1
  446. package/dist/chunks/zh-CN-BHGxG46g.js.map +0 -1
  447. package/dist/components/agent-avatar.js +0 -2
  448. package/dist/components/button-group.js.map +0 -1
  449. package/dist/components/charts/gauge.js +0 -82
  450. package/dist/components/charts/gauge.js.map +0 -1
  451. package/dist/components/collapsible.js.map +0 -1
  452. package/dist/components/command-list.js +0 -4
  453. package/dist/components/command-palette.js.map +0 -1
  454. package/dist/components/date-picker.js.map +0 -1
  455. package/dist/components/dialog.js.map +0 -1
  456. package/dist/components/display-options.js.map +0 -1
  457. package/dist/components/figure.js.map +0 -1
  458. package/dist/components/filter-chip.js.map +0 -1
  459. package/dist/components/filter-row.js.map +0 -1
  460. package/dist/components/filter-toggle.js +0 -35
  461. package/dist/components/filter-toggle.js.map +0 -1
  462. package/dist/components/flow.js.map +0 -1
  463. package/dist/components/heading.js.map +0 -1
  464. package/dist/components/icon-button.js +0 -2
  465. package/dist/components/input.js.map +0 -1
  466. package/dist/components/kaeso.js.map +0 -1
  467. package/dist/components/key-value.js.map +0 -1
  468. package/dist/components/label.js +0 -2
  469. package/dist/components/layout.js +0 -72
  470. package/dist/components/layout.js.map +0 -1
  471. package/dist/components/loader.js.map +0 -1
  472. package/dist/components/logo.js.map +0 -1
  473. package/dist/components/popover.js.map +0 -1
  474. package/dist/components/portal.js +0 -15
  475. package/dist/components/portal.js.map +0 -1
  476. package/dist/components/qr-code.js.map +0 -1
  477. package/dist/components/settings.js.map +0 -1
  478. package/dist/components/sheet.js.map +0 -1
  479. package/dist/components/stat.js.map +0 -1
  480. package/dist/components/status-dot.js +0 -2
  481. package/dist/components/surface.js +0 -26
  482. package/dist/components/surface.js.map +0 -1
  483. package/dist/components/tabs.js.map +0 -1
  484. package/dist/components/theme-image.js.map +0 -1
  485. package/dist/components/theme-menu.js.map +0 -1
  486. package/dist/components/theme-select.js +0 -58
  487. package/dist/components/theme-select.js.map +0 -1
  488. package/dist/components/thumbnail.js.map +0 -1
  489. package/dist/components/timeline.js.map +0 -1
  490. package/dist/components/toast.js.map +0 -1
  491. package/dist/components/toc.js.map +0 -1
  492. package/dist/components/tooltip.js.map +0 -1
  493. package/dist/components/visually-hidden.js.map +0 -1
  494. package/dist/types/blocks/delete-resource/delete-resource.d.ts +0 -29
  495. package/dist/types/blocks/delete-resource/docs.d.ts +0 -17
  496. package/dist/types/blocks/delete-resource/index.d.ts +0 -1
  497. package/dist/types/blocks/pages/docs.d.ts +0 -42
  498. package/dist/types/blocks/pages/index.d.ts +0 -1
  499. package/dist/types/blocks/pages/pages.d.ts +0 -65
  500. package/dist/types/blocks/resource-list/docs.d.ts +0 -15
  501. package/dist/types/blocks/resource-list/index.d.ts +0 -1
  502. package/dist/types/blocks/resource-list/resource-list.d.ts +0 -33
  503. package/dist/types/components/agent-avatar/agent-avatar.d.ts +0 -99
  504. package/dist/types/components/agent-avatar/docs.d.ts +0 -19
  505. package/dist/types/components/agent-avatar/index.d.ts +0 -3
  506. package/dist/types/components/charts/gauge.d.ts +0 -20
  507. package/dist/types/components/command-list/docs.d.ts +0 -54
  508. package/dist/types/components/command-list/index.d.ts +0 -3
  509. package/dist/types/components/filter-toggle/docs.d.ts +0 -11
  510. package/dist/types/components/filter-toggle/filter-toggle.d.ts +0 -23
  511. package/dist/types/components/filter-toggle/index.d.ts +0 -1
  512. package/dist/types/components/icon-button/docs.d.ts +0 -18
  513. package/dist/types/components/icon-button/icon-button.d.ts +0 -76
  514. package/dist/types/components/icon-button/index.d.ts +0 -1
  515. package/dist/types/components/input/sensitive-input.d.ts +0 -21
  516. package/dist/types/components/label/index.d.ts +0 -1
  517. package/dist/types/components/layout/docs.d.ts +0 -30
  518. package/dist/types/components/layout/index.d.ts +0 -1
  519. package/dist/types/components/layout/layout.d.ts +0 -100
  520. package/dist/types/components/popover/hover-card.d.ts +0 -26
  521. package/dist/types/components/portal/docs.d.ts +0 -9
  522. package/dist/types/components/portal/index.d.ts +0 -1
  523. package/dist/types/components/portal/portal.d.ts +0 -11
  524. package/dist/types/components/status-dot/docs.d.ts +0 -20
  525. package/dist/types/components/status-dot/index.d.ts +0 -1
  526. package/dist/types/components/surface/docs.d.ts +0 -8
  527. package/dist/types/components/surface/index.d.ts +0 -1
  528. package/dist/types/components/surface/surface.d.ts +0 -44
  529. package/dist/types/components/theme-select/docs.d.ts +0 -10
  530. package/dist/types/components/theme-select/index.d.ts +0 -1
  531. package/dist/types/components/theme-select/theme-select.d.ts +0 -34
  532. /package/dist/types/components/{agent-avatar → avatar}/model-name.d.ts +0 -0
  533. /package/dist/types/components/{agent-avatar → avatar}/models.d.ts +0 -0
@@ -1,85 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component guides
2
2
 
3
- Version 0.6.0-rc.3. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
4
-
5
- ## AgentAttribution
6
-
7
- A person's avatar with the agent that acted for them as a small round badge on its corner, for audit rows and activity.
8
-
9
- `import { AgentAttribution } from "@logicplanes/kaeso-ui";`
10
-
11
- ### Accessibility
12
-
13
- - One role=img named after both, such as “Ada Okafor via Release helper (Claude)”, in the page's language.
14
-
15
- ### Examples
16
-
17
- #### Activity
18
-
19
- ```tsx
20
- <div className="flex flex-col gap-16">
21
- {activity.map((a) => (
22
- <div key={a.person} className="flex items-center gap-12">
23
- <AgentAttribution name={a.person} agent={a.agent} />
24
- <Text>{a.action}</Text>
25
- </div>
26
- ))}
27
- </div>
28
- ```
29
-
30
- #### Sizes
31
-
32
- ```tsx
33
- <div className="flex flex-wrap items-end gap-16">
34
- {([20, 24, 28, 32, 40] as const).map((s) => (
35
- <AgentAttribution key={s} name="Ada Okafor" agent={{ name: "Release helper", model: "claude" }} size={s} />
36
- ))}
37
- </div>
38
- ```
39
-
40
- ## AgentAvatar
41
-
42
- An agent acting for a person: one bot face on a square, the same for every agent.
43
-
44
- `import { AgentAvatar, useModelName } from "@logicplanes/kaeso-ui";`
45
-
46
- ### Accessibility
47
-
48
- - role=img named after the agent; pass decorative when the name is written next to it.
49
- - Every agent looks the same; write its model family with useModelName where it matters.
50
-
51
- ### Examples
52
-
53
- #### Agents
54
-
55
- ```tsx
56
- function Agents() {
57
- const modelName = useModelName();
58
- return (
59
- <div className="flex flex-col gap-12">
60
- {agents.map((a) => (
61
- <div key={a.model} className="flex items-center gap-8">
62
- <AgentAvatar name={a.name} decorative />
63
- <Text>{a.name}</Text>
64
- <Text variant="small" tone="secondary">
65
- {modelName(a.model)}
66
- </Text>
67
- </div>
68
- ))}
69
- </div>
70
- );
71
- }
72
- ```
73
-
74
- #### Sizes
75
-
76
- ```tsx
77
- <div className="flex flex-wrap items-end gap-12">
78
- {([20, 24, 28, 32, 40] as const).map((s) => (
79
- <AgentAvatar key={s} name="Release helper" size={s} />
80
- ))}
81
- </div>
82
- ```
3
+ Version 0.6.0-rc.4. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
83
4
 
84
5
  ## AlertDialog
85
6
 
@@ -185,9 +106,15 @@ Free text with suggestions.
185
106
 
186
107
  ## Avatar
187
108
 
188
- People round with initials or a picture; organizations and projects at radius 8.
109
+ People round with initials or a picture; organizations and projects at radius 8; agents as a bot face on a square.
189
110
 
190
- `import { Avatar, AvatarGroup } from "@logicplanes/kaeso-ui";`
111
+ `import { Avatar } from "@logicplanes/kaeso-ui";`
112
+
113
+ ### Accessibility
114
+
115
+ - role=img named after the person, organization or agent; pass decorative when the name is written next to it.
116
+ - A person acting through an agent is one role=img named after both, such as “Ada Okafor via Release helper (Claude)”, in the page's language.
117
+ - Every agent looks the same; write its model family with useModelName where it matters.
191
118
 
192
119
  ### Examples
193
120
 
@@ -207,7 +134,65 @@ People round with initials or a picture; organizations and projects at radius 8.
207
134
  #### Group
208
135
 
209
136
  ```tsx
210
- <AvatarGroup people={members} max={3} size={28} />
137
+ <Avatar.Group people={members} max={3} size={28} />
138
+ ```
139
+
140
+ #### Agents
141
+
142
+ `kind="agent"`: one bot face on a square, the same for every agent.
143
+
144
+ ```tsx
145
+ function AgentAgents() {
146
+ const modelName = useModelName();
147
+ return (
148
+ <div className="flex flex-col gap-12">
149
+ {Agentagents.map((a) => (
150
+ <div key={a.model} className="flex items-center gap-8">
151
+ <Avatar kind="agent" name={a.name} decorative />
152
+ <Text>{a.name}</Text>
153
+ <Text variant="small" tone="secondary">
154
+ {modelName(a.model)}
155
+ </Text>
156
+ </div>
157
+ ))}
158
+ </div>
159
+ );
160
+ }
161
+ ```
162
+
163
+ #### Agent sizes
164
+
165
+ ```tsx
166
+ <div className="flex flex-wrap items-end gap-12">
167
+ {([20, 24, 28, 32, 40] as const).map((s) => (
168
+ <Avatar kind="agent" key={s} name="Release helper" size={s} />
169
+ ))}
170
+ </div>
171
+ ```
172
+
173
+ #### Acting through an agent
174
+
175
+ `agent`: a person's avatar with the agent that acted for them as a badge on its corner.
176
+
177
+ ```tsx
178
+ <div className="flex flex-col gap-16">
179
+ {Attributionactivity.map((a) => (
180
+ <div key={a.person} className="flex items-center gap-12">
181
+ <Avatar name={a.person} agent={a.agent} />
182
+ <Text>{a.action}</Text>
183
+ </div>
184
+ ))}
185
+ </div>
186
+ ```
187
+
188
+ #### Acting through an agent, sizes
189
+
190
+ ```tsx
191
+ <div className="flex flex-wrap items-end gap-16">
192
+ {([20, 24, 28, 32, 40] as const).map((s) => (
193
+ <Avatar key={s} name="Ada Okafor" agent={{ name: "Release helper", model: "claude" }} size={s} />
194
+ ))}
195
+ </div>
211
196
  ```
212
197
 
213
198
  ## Badge
@@ -370,29 +355,30 @@ Starts an action. Every button is a pill; exactly one per view is ink.
370
355
  ### Accessibility
371
356
 
372
357
  - Renders a native <button type="button">, or an <a> when href is set.
373
- - Icon-only buttons are circles and require aria-label at the type level; use IconButton, which also shows the name as a tooltip.
358
+ - A button with an icon and no label is a circle. Its aria-label is required by the types and also shows as its tooltip, with a shortcut as key caps, so sighted and screen-reader users get the same name.
374
359
  - Loading sets aria-busy at once and keeps the button focusable; clicks are ignored until it finishes. The spinner shows once the work has taken 300ms, for at least 400ms. The width never changes.
375
360
  - With disabledReason, the button uses aria-disabled instead of disabled so keyboard users can reach the tooltip that explains why.
376
361
  - Primary and danger labels measure at least 4.5:1 on their fills in both themes.
362
+ - With pressed, it is a toggle button (aria-pressed), named by its label; the selector's check is decoration.
377
363
 
378
364
  ### Do and don't
379
365
 
380
366
  Do (one primary):
381
367
 
382
368
  ```tsx
383
- <Inline gap={8}>
369
+ <div className="flex flex-wrap items-center gap-8">
384
370
  <Button variant="ghost">Cancel</Button>
385
371
  <Button variant="primary">Create key</Button>
386
- </Inline>
372
+ </div>
387
373
  ```
388
374
 
389
375
  Don't (two primaries):
390
376
 
391
377
  ```tsx
392
- <Inline gap={8}>
378
+ <div className="flex flex-wrap items-center gap-8">
393
379
  <Button variant="primary">Cancel</Button>
394
380
  <Button variant="primary">Create key</Button>
395
- </Inline>
381
+ </div>
396
382
  ```
397
383
 
398
384
  ### Examples
@@ -408,12 +394,12 @@ Don't (two primaries):
408
394
  Ink with a faint top light. Use it for the one action a view exists for.
409
395
 
410
396
  ```tsx
411
- <Inline gap={12}>
397
+ <div className="flex flex-wrap items-center gap-12">
412
398
  <Button variant="primary">Create key</Button>
413
399
  <Button variant="primary" leadingIcon={icons.add}>
414
400
  Add model
415
401
  </Button>
416
- </Inline>
402
+ </div>
417
403
  ```
418
404
 
419
405
  #### Secondary
@@ -421,11 +407,11 @@ Ink with a faint top light. Use it for the one action a view exists for.
421
407
  The default: raised, with a ring and a shadow you feel more than see.
422
408
 
423
409
  ```tsx
424
- <Inline gap={12}>
410
+ <div className="flex flex-wrap items-center gap-12">
425
411
  <Button>Edit limits</Button>
426
412
  <Button leadingIcon={icons.download}>Export CSV</Button>
427
413
  <Button trailingIcon={icons.chevronDown}>Last 30 days</Button>
428
- </Inline>
414
+ </div>
429
415
  ```
430
416
 
431
417
  #### Ghost
@@ -433,12 +419,12 @@ The default: raised, with a ring and a shadow you feel more than see.
433
419
  Transparent until touched; for toolbars, rows and quiet actions.
434
420
 
435
421
  ```tsx
436
- <Inline gap={12}>
422
+ <div className="flex flex-wrap items-center gap-12">
437
423
  <Button variant="ghost">Cancel</Button>
438
424
  <Button variant="ghost" leadingIcon={icons.add}>
439
425
  Add filter
440
426
  </Button>
441
- </Inline>
427
+ </div>
442
428
  ```
443
429
 
444
430
  #### Soft
@@ -446,14 +432,14 @@ Transparent until touched; for toolbars, rows and quiet actions.
446
432
  A fill without a ring, for the active pill in a header or toolbar.
447
433
 
448
434
  ```tsx
449
- <Inline gap={12}>
435
+ <div className="flex flex-wrap items-center gap-12">
450
436
  <Button variant="soft" size="sm">
451
437
  Errors only
452
438
  </Button>
453
439
  <Button variant="soft" size="sm" leadingIcon={icons.filter}>
454
440
  Filter
455
441
  </Button>
456
- </Inline>
442
+ </div>
457
443
  ```
458
444
 
459
445
  #### Danger
@@ -461,10 +447,10 @@ A fill without a ring, for the active pill in a header or toolbar.
461
447
  The confirm of a destructive flow. Its trigger is usually danger-secondary.
462
448
 
463
449
  ```tsx
464
- <Inline gap={12}>
450
+ <div className="flex flex-wrap items-center gap-12">
465
451
  <Button variant="danger-secondary">Archive project</Button>
466
452
  <Button variant="danger">Delete key</Button>
467
- </Inline>
453
+ </div>
468
454
  ```
469
455
 
470
456
  #### Link
@@ -485,13 +471,13 @@ An action inside a sentence.
485
471
  24 for chips inside rows, 32 in toolbars, 36 by default, 40 for prominent actions, 48 in sign-in and setup forms.
486
472
 
487
473
  ```tsx
488
- <Inline gap={12} align="center">
474
+ <div className="flex flex-wrap items-center gap-12">
489
475
  <Button size="xs">Extra small</Button>
490
476
  <Button size="sm">Small</Button>
491
477
  <Button size="md">Medium</Button>
492
478
  <Button size="lg">Large</Button>
493
479
  <Button size="xl">Extra large</Button>
494
- </Inline>
480
+ </div>
495
481
  ```
496
482
 
497
483
  #### With icons
@@ -499,25 +485,55 @@ An action inside a sentence.
499
485
  A leading icon takes 2px off its side's padding so the label looks centered.
500
486
 
501
487
  ```tsx
502
- <Inline gap={12}>
488
+ <div className="flex flex-wrap items-center gap-12">
503
489
  <Button variant="primary" leadingIcon={icons.key}>
504
490
  Create key
505
491
  </Button>
506
492
  <Button leadingIcon={icons.copy}>Copy key</Button>
507
493
  <Button trailingIcon={icons.externalLink}>Open docs</Button>
508
- </Inline>
494
+ </div>
509
495
  ```
510
496
 
511
497
  #### Icon only
512
498
 
513
- A circle of the same height. Prefer IconButton, which adds the tooltip.
499
+ A circle of the same height, with its name in a tooltip.
500
+
501
+ ```tsx
502
+ <div className="flex flex-wrap items-center gap-12">
503
+ <Button icon={icons.filter} aria-label="Filter" />
504
+ <Button variant="ghost" icon={icons.more} aria-label="More actions" />
505
+ <Button variant="primary" icon={icons.add} aria-label="Create key" />
506
+ </div>
507
+ ```
508
+
509
+ #### Icon only, with a shortcut
510
+
511
+ The shortcut shows in the tooltip as key caps.
514
512
 
515
513
  ```tsx
516
- <Inline gap={12}>
517
- <Button shape="circle" icon={icons.filter} aria-label="Filter" />
518
- <Button shape="circle" variant="ghost" icon={icons.more} aria-label="More actions" />
519
- <Button shape="circle" variant="primary" icon={icons.add} aria-label="Create key" />
520
- </Inline>
514
+ <Button size="sm" icon={icons.search} aria-label="Search" shortcut={["mod", "k"]} />
515
+ ```
516
+
517
+ #### On-or-off filter
518
+
519
+ `variant="selector"` with `pressed`: quiet like an unset select when off, a check and full text when on.
520
+
521
+ ```tsx
522
+ function FilterToggle() {
523
+ const [agents, setAgents] = useState(false);
524
+ const [overridden, setOverridden] = useState(true);
525
+ return (
526
+ <div className="flex flex-wrap items-center gap-8">
527
+ <Select size="sm" aria-label="Actor" placeholder="Any actor" options={[{ value: "ada", label: "Ada Okafor" }]} value={null} onValueChange={() => {}} />
528
+ <Button variant="selector" size="sm" pressed={agents} onPressedChange={setAgents}>
529
+ Agents
530
+ </Button>
531
+ <Button variant="selector" size="sm" pressed={overridden} onPressedChange={setOverridden}>
532
+ Only overridden
533
+ </Button>
534
+ </div>
535
+ );
536
+ }
521
537
  ```
522
538
 
523
539
  #### Loading
@@ -528,7 +544,7 @@ Busy at once; the spinner shows once the work has taken 300ms, then for at least
528
544
  function Loading() {
529
545
  const [saving, setSaving] = useState(false);
530
546
  return (
531
- <Inline gap={12}>
547
+ <div className="flex flex-wrap items-center gap-12">
532
548
  <Button
533
549
  variant="primary"
534
550
  loading={saving}
@@ -542,7 +558,7 @@ function Loading() {
542
558
  <Button loading leadingIcon={icons.refresh}>
543
559
  Syncing models
544
560
  </Button>
545
- </Inline>
561
+ </div>
546
562
  );
547
563
  }
548
564
  ```
@@ -552,25 +568,25 @@ function Loading() {
552
568
  Give a reason when you can: it shows as a tooltip and keeps the button focusable.
553
569
 
554
570
  ```tsx
555
- <Inline gap={12}>
571
+ <div className="flex flex-wrap items-center gap-12">
556
572
  <Button variant="primary" disabled>
557
573
  Create key
558
574
  </Button>
559
575
  <Button disabled disabledReason="Add a provider key first">
560
576
  Add model
561
577
  </Button>
562
- </Inline>
578
+ </div>
563
579
  ```
564
580
 
565
581
  #### Count and shortcut
566
582
 
567
583
  ```tsx
568
- <Inline gap={12}>
584
+ <div className="flex flex-wrap items-center gap-12">
569
585
  <Button count={12}>Requests</Button>
570
586
  <Button size="lg" variant="primary" shortcut={["mod", "enter"]}>
571
587
  Create key
572
588
  </Button>
573
- </Inline>
589
+ </div>
574
590
  ```
575
591
 
576
592
  #### As a link
@@ -725,55 +741,6 @@ An agent client's mark in a raised circle, such as Claude, Cursor or GitHub Copi
725
741
  </div>
726
742
  ```
727
743
 
728
- ## ClipboardText
729
-
730
- Copy a value: a read-only pill field, a copy circle, or inline text that copies itself.
731
-
732
- `import { ClipboardText, CopyButton, InlineCopyText } from "@logicplanes/kaeso-ui";`
733
-
734
- ### Keyboard
735
-
736
- | Key | Action |
737
- |---|---|
738
- | Enter | Copies |
739
- | Space | Copies |
740
-
741
- ### Accessibility
742
-
743
- - The copy circle's name changes to “Copied” for 1.2 seconds and the tooltip says it.
744
- - A value too long for its pill ends in an ellipsis; the text then becomes focusable and shows the whole value in a tooltip.
745
- - InlineCopyText announces “Copied” through a polite live region.
746
- - Nothing changes size when the state changes.
747
-
748
- ### Examples
749
-
750
- #### ClipboardText
751
-
752
- A read-only pill with the value in mono and a copy circle inside.
753
-
754
- ```tsx
755
- <div className="w-400">
756
- <ClipboardText value="https://kaeso.example.com/v1" label="Copy base URL" />
757
- </div>
758
- ```
759
-
760
- #### CopyButton
761
-
762
- ```tsx
763
- <Inline gap={12}>
764
- <CopyButton value="sk-kso-AbC123…wxyz" label="Copy redacted key" />
765
- <CopyButton value="req_01JAR4X2" label="Copy id" variant="secondary" />
766
- </Inline>
767
- ```
768
-
769
- #### InlineCopyText
770
-
771
- ```tsx
772
- <p className="text-body text-fg-secondary">
773
- Request <InlineCopyText value="req_01JAR4X2">req_01JAR4X2</InlineCopyText> took 1.2 s.
774
- </p>
775
- ```
776
-
777
744
  ## Code
778
745
 
779
746
  Inline code: Geist Mono 13 on a soft fill, radius 6 in running text.
@@ -839,9 +806,9 @@ Highlighted code on a well in Kaeso's monochrome theme: copy in the header or on
839
806
 
840
807
  ## Collapsible
841
808
 
842
- Disclosure rows: a pill row with the title 12px in, a chevron at its end that turns in 200ms, and a measured height animation; Accordion groups them.
809
+ Disclosure rows: a pill row with the title 12px in, a chevron at its end that turns in 200ms, and a measured height animation.
843
810
 
844
- `import { Collapsible, Accordion } from "@logicplanes/kaeso-ui";`
811
+ `import { Collapsible } from "@logicplanes/kaeso-ui";`
845
812
 
846
813
  ### Keyboard
847
814
 
@@ -866,19 +833,6 @@ Disclosure rows: a pill row with the title 12px in, a chevron at its end that tu
866
833
  </div>
867
834
  ```
868
835
 
869
- #### Accordion
870
-
871
- ```tsx
872
- <Accordion
873
- className="w-480"
874
- defaultValue={["retention"]}
875
- items={[
876
- { value: "retention", title: "How long are logs kept?", content: "The organization sets retention, 30 days by default." },
877
- { value: "content", title: "Is request content stored?", content: "Only when content logging is on for the project." },
878
- ]}
879
- />
880
- ```
881
-
882
836
  ## Combobox
883
837
 
884
838
  A pill input with a filtered list: matches highlighted, async results, chips for many, create.
@@ -932,90 +886,6 @@ function Create() {
932
886
  }
933
887
  ```
934
888
 
935
- ## CommandList
936
-
937
- A search field over a long list that stays fast with thousands of rows, grouped under sticky captions.
938
-
939
- `import { CommandList } from "@logicplanes/kaeso-ui";`
940
-
941
- ### Keyboard
942
-
943
- | Key | Action |
944
- |---|---|
945
- | Up Down | Moves through rows, skipping disabled ones |
946
- | Home End | Goes to the first or last row |
947
- | PageUp PageDown | Moves a page at a time |
948
- | Enter | Chooses the active row |
949
- | Escape | Clears the search, then closes |
950
-
951
- ### Accessibility
952
-
953
- - After typing pauses, a screen reader hears how many rows match, or that none do.
954
- - The search field is a combobox that points at the active row; the list is a listbox with one group per caption.
955
- - Each row says its position in the whole list, so a screen reader counts every row, not just those drawn.
956
-
957
- ### Examples
958
-
959
- #### In a dialog step
960
-
961
- ```tsx
962
- function Inline() {
963
- const [value, setValue] = useState("gpt-5");
964
- return (
965
- <div className="w-400 max-w-full">
966
- <CommandList height="inline" aria-label="Models" groups={groups} value={value} onSelect={setValue} placeholder="Search models" />
967
- </div>
968
- );
969
- }
970
- ```
971
-
972
- #### In a picker
973
-
974
- ```tsx
975
- function Picker() {
976
- const [open, setOpen] = useState(false);
977
- const [value, setValue] = useState<string | null>(null);
978
- const chosen = models.find((m) => m.model === value);
979
- return (
980
- <PickerPopover
981
- title="Model"
982
- open={open}
983
- onOpenChange={setOpen}
984
- trigger={
985
- <PickerTrigger aria-label="Model" placeholder="Choose a model">
986
- {chosen?.name}
987
- </PickerTrigger>
988
- }
989
- >
990
- <CommandList
991
- aria-label="Models"
992
- groups={groups}
993
- value={value}
994
- autoFocus
995
- placeholder="Search models"
996
- onSelect={(v) => {
997
- setValue(v);
998
- setOpen(false);
999
- }}
1000
- />
1001
- </PickerPopover>
1002
- );
1003
- }
1004
- ```
1005
-
1006
- #### Ten thousand rows
1007
-
1008
- ```tsx
1009
- function Thousands() {
1010
- const [value, setValue] = useState<string | null>(null);
1011
- return (
1012
- <div className="w-400 max-w-full">
1013
- <CommandList height="inline" aria-label="Models" groups={thousands} value={value} onSelect={setValue} placeholder="Search 10,000 models" />
1014
- </div>
1015
- );
1016
- }
1017
- ```
1018
-
1019
889
  ## CommandPalette
1020
890
 
1021
891
  ⌘K: every page and action, grouped; nested pages; async groups with a quiet progress line.
@@ -1229,6 +1099,61 @@ markdown draws text, reasoning and prose tool results as Markdown, safely; the r
1229
1099
  />
1230
1100
  ```
1231
1101
 
1102
+ ## CopyButton
1103
+
1104
+ Copy a value: a read-only pill field, a copy circle, or inline text that copies itself.
1105
+
1106
+ `import { CopyButton } from "@logicplanes/kaeso-ui";`
1107
+
1108
+ ### Keyboard
1109
+
1110
+ | Key | Action |
1111
+ |---|---|
1112
+ | Enter | Copies |
1113
+ | Space | Copies |
1114
+
1115
+ ### Accessibility
1116
+
1117
+ - The copy circle's name changes to “Copied” for 1.2 seconds and the tooltip says it.
1118
+ - A value too long for its pill ends in an ellipsis; the text then becomes focusable and shows the whole value in a tooltip.
1119
+ - Inline text announces “Copied” through a polite live region.
1120
+ - Nothing changes size when the state changes.
1121
+
1122
+ ### Examples
1123
+
1124
+ #### Circle
1125
+
1126
+ ```tsx
1127
+ <div className="flex flex-wrap items-center gap-12">
1128
+ <CopyButton value="sk-kso-AbC123…wxyz" label="Copy redacted key" />
1129
+ <CopyButton value="req_01JAR4X2" label="Copy id" variant="secondary" />
1130
+ </div>
1131
+ ```
1132
+
1133
+ #### Field
1134
+
1135
+ `display="field"`: a read-only pill with the value in mono and a copy circle inside.
1136
+
1137
+ ```tsx
1138
+ <div className="w-400">
1139
+ <CopyButton display="field" size="md" value="https://kaeso.example.com/v1" label="Copy base URL" />
1140
+ </div>
1141
+ ```
1142
+
1143
+ #### Inline
1144
+
1145
+ `display="inline"`: mono text that copies itself on click.
1146
+
1147
+ ```tsx
1148
+ <p className="text-body text-fg-secondary">
1149
+ Request{" "}
1150
+ <CopyButton display="inline" value="req_01JAR4X2">
1151
+ req_01JAR4X2
1152
+ </CopyButton>{" "}
1153
+ took 1.2 s.
1154
+ </p>
1155
+ ```
1156
+
1232
1157
  ## DataTable
1233
1158
 
1234
1159
  The console's table: a 36px header, 40px rows without lines, numbers right, sorting, resizing, selection, virtualization.
@@ -1400,39 +1325,6 @@ Presets first: Last 24 hours, 7 days, 30 days, This month, Last month, Custom. A
1400
1325
  <TimeInput label="Daily report at" defaultValue="09:30" utc />
1401
1326
  ```
1402
1327
 
1403
- ## DeleteResource
1404
-
1405
- The destructive flow: the object and the consequence, typed confirmation, a danger button.
1406
-
1407
- `import { DeleteResource } from "@logicplanes/kaeso-ui";`
1408
-
1409
- ### Examples
1410
-
1411
- #### Delete a project
1412
-
1413
- ```tsx
1414
- <DeleteResource
1415
- kind="project"
1416
- name="Checkout assistant"
1417
- consequence="Its keys stop working at once, and its request logs are deleted. This can't be undone."
1418
- onConfirm={() => new Promise((r) => setTimeout(r, 900))}
1419
- trigger={<Button variant="danger-secondary">Delete project</Button>}
1420
- />
1421
- ```
1422
-
1423
- #### Delete a key
1424
-
1425
- ```tsx
1426
- <DeleteResource
1427
- kind="key"
1428
- name="checkout-web"
1429
- confirm="simple"
1430
- consequence="Applications using it stop authenticating with the gateway."
1431
- onConfirm={() => new Promise((r) => setTimeout(r, 900))}
1432
- trigger={<Button variant="danger-secondary">Delete key</Button>}
1433
- />
1434
- ```
1435
-
1436
1328
  ## Dialog
1437
1329
 
1438
1330
  A modal dialog: 440, 560 or 720 wide, radius 20; title, description, body, actions. Enter in a field and ⌘Enter submit. Longer forms use StepDialog: one question per step.
@@ -2069,7 +1961,7 @@ function Page() {
2069
1961
  <div className="w-full rounded-well bg-panel shadow-frame">
2070
1962
  <FilterRow tabs={stateTabs(state, setState)}>
2071
1963
  <div className="w-240">
2072
- <SearchInput aria-label="Search members" placeholder="Name or email" />
1964
+ <Input type="search" size="sm" aria-label="Search members" placeholder="Name or email" />
2073
1965
  </div>
2074
1966
  <Select
2075
1967
  aria-label="Project"
@@ -2083,40 +1975,6 @@ function Page() {
2083
1975
  }
2084
1976
  ```
2085
1977
 
2086
- ## FilterToggle
2087
-
2088
- An on-or-off filter as a pill that sits in a row of selects.
2089
-
2090
- `import { FilterToggle } from "@logicplanes/kaeso-ui";`
2091
-
2092
- ### Keyboard
2093
-
2094
- | Key | Action |
2095
- |---|---|
2096
- | Space or Enter | Turns the filter on or off |
2097
-
2098
- ### Accessibility
2099
-
2100
- - A button with aria-pressed, named by its label; the check is decoration.
2101
-
2102
- ### Examples
2103
-
2104
- #### In a filter row
2105
-
2106
- ```tsx
2107
- function Row() {
2108
- const [agents, setAgents] = useState(false);
2109
- const [overridden, setOverridden] = useState(true);
2110
- return (
2111
- <div className="flex flex-wrap items-center gap-8">
2112
- <Select size="sm" aria-label="Actor" placeholder="Any actor" options={[{ value: "ada", label: "Ada Okafor" }]} value={null} onValueChange={() => {}} />
2113
- <FilterToggle label="Agents" pressed={agents} onPressedChange={setAgents} />
2114
- <FilterToggle label="Only overridden" pressed={overridden} onPressedChange={setOverridden} />
2115
- </div>
2116
- );
2117
- }
2118
- ```
2119
-
2120
1978
  ## Flow
2121
1979
 
2122
1980
  A node-and-connector diagram for the route: app → Kaeso → provider and model.
@@ -2460,20 +2318,6 @@ function Editor() {
2460
2318
  }
2461
2319
  ```
2462
2320
 
2463
- ## Gauge
2464
-
2465
- A semicircle for “budget used”; thresholds as ticks.
2466
-
2467
- `import { Gauge } from "@logicplanes/kaeso-ui";`
2468
-
2469
- ### Examples
2470
-
2471
- #### Budget
2472
-
2473
- ```tsx
2474
- <Gauge aria-label="Monthly budget used" value={0.64} label="of $500.00 budget" valueLabel="$320.00" />
2475
- ```
2476
-
2477
2321
  ## GrantSummary
2478
2322
 
2479
2323
  What an agent may do in a few short lines, each after a check mark, as on its consent page.
@@ -2497,36 +2341,6 @@ What an agent may do in a few short lines, each after a check mark, as on its co
2497
2341
  />
2498
2342
  ```
2499
2343
 
2500
- ## Grid
2501
-
2502
- Grid, Stack and Inline: layout with gaps from the spacing scale only.
2503
-
2504
- `import { Grid, Stack, Inline } from "@logicplanes/kaeso-ui";`
2505
-
2506
- ### Examples
2507
-
2508
- #### Grid
2509
-
2510
- ```tsx
2511
- <Grid columns={3} gap={12} className="w-full">
2512
- {[1, 2, 3, 4, 5, 6].map((i) => (
2513
- <Box key={i}>{i}</Box>
2514
- ))}
2515
- </Grid>
2516
- ```
2517
-
2518
- #### Stack and Inline
2519
-
2520
- ```tsx
2521
- <Stack gap={12} className="w-320">
2522
- <Box>Stack</Box>
2523
- <Inline gap={8}>
2524
- <Box>Inline</Box>
2525
- <Box>items</Box>
2526
- </Inline>
2527
- </Stack>
2528
- ```
2529
-
2530
2344
  ## Heading
2531
2345
 
2532
2346
  Headings on the title tokens, balanced across lines.
@@ -2570,92 +2384,35 @@ Hugeicons free, Stroke Rounded, in currentColor. One icon per Kaeso concept.
2570
2384
 
2571
2385
  `import { Icon, icons } from "@logicplanes/kaeso-ui";`
2572
2386
 
2573
- ### Accessibility
2574
-
2575
- - Icons are decorative by default (aria-hidden). Pass label when the icon alone carries meaning.
2576
-
2577
- ### Examples
2578
-
2579
- #### Sizes
2580
-
2581
- 14 (1.75 stroke), 16, 18, 20, 24.
2582
-
2583
- ```tsx
2584
- <div className="flex items-end gap-16 text-fg">
2585
- {(["xs", "sm", "md", "lg", "xl"] as const).map((s) => (
2586
- <Icon key={s} icon={icons.key} size={s} />
2587
- ))}
2588
- </div>
2589
- ```
2590
-
2591
- #### Vocabulary
2592
-
2593
- ```tsx
2594
- <div className="grid w-full grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4 sm:gap-x-16">
2595
- {(Object.keys(icons) as IconName[]).map((n) => (
2596
- <div key={n} className="flex min-h-32 items-center gap-8 text-small text-fg-secondary">
2597
- <Icon icon={icons[n]} size="sm" className="text-fg" />
2598
- <span className="mono min-w-0 text-caption wrap-anywhere sm:text-small">{n}</span>
2599
- </div>
2600
- ))}
2601
- </div>
2602
- ```
2603
-
2604
- ## IconButton
2605
-
2606
- A circle with an icon, a required name, and a tooltip that says it.
2607
-
2608
- `import { IconButton } from "@logicplanes/kaeso-ui";`
2609
-
2610
- ### Keyboard
2611
-
2612
- | Key | Action |
2613
- |---|---|
2614
- | Enter | Activates |
2615
- | Space | Activates |
2616
-
2617
- ### Accessibility
2618
-
2619
- - aria-label is required by the types; it is also the tooltip, so sighted and screen-reader users get the same name.
2620
- - Shortcuts appear in the tooltip as key caps.
2621
- - Disabled icon buttons have no tooltip unless they carry a disabledReason, which the tooltip shows and screen readers read as the description.
2622
-
2623
- ### Examples
2624
-
2625
- #### Basic
2626
-
2627
- ```tsx
2628
- <IconButton icon={icons.filter} aria-label="Filter" />
2629
- ```
2630
-
2631
- #### Variants
2387
+ ### Accessibility
2632
2388
 
2633
- Ghost in rows and toolbars; secondary for the raised circles in page headers.
2389
+ - Icons are decorative by default (aria-hidden). Pass label when the icon alone carries meaning.
2634
2390
 
2635
- ```tsx
2636
- <Inline gap={12}>
2637
- <IconButton icon={icons.filter} aria-label="Filter" variant="secondary" />
2638
- <IconButton icon={icons.displayOptions} aria-label="Display options" variant="secondary" />
2639
- <IconButton icon={icons.sidePanel} aria-label="Toggle side panel" variant="secondary" />
2640
- <IconButton icon={icons.more} aria-label="More actions" />
2641
- <IconButton icon={icons.add} aria-label="Create key" variant="primary" />
2642
- </Inline>
2643
- ```
2391
+ ### Examples
2644
2392
 
2645
2393
  #### Sizes
2646
2394
 
2395
+ 14 (1.75 stroke), 16, 18, 20, 24.
2396
+
2647
2397
  ```tsx
2648
- <Inline gap={12}>
2649
- {(["xs", "sm", "md", "lg", "xl"] as ButtonSize[]).map((s) => (
2650
- <IconButton key={s} size={s} icon={icons.add} aria-label="Add" variant="secondary" />
2398
+ <div className="flex items-end gap-16 text-fg">
2399
+ {(["xs", "sm", "md", "lg", "xl"] as const).map((s) => (
2400
+ <Icon key={s} icon={icons.key} size={s} />
2651
2401
  ))}
2652
- </Inline>
2402
+ </div>
2653
2403
  ```
2654
2404
 
2655
- #### With a shortcut
2405
+ #### Vocabulary
2656
2406
 
2657
2407
  ```tsx
2658
- <IconButton icon={icons.search} aria-label="Search" shortcut={["mod", "k"]} variant="secondary" />
2408
+ <div className="grid w-full grid-cols-2 gap-x-8 gap-y-4 sm:grid-cols-4 sm:gap-x-16">
2409
+ {(Object.keys(icons) as IconName[]).map((n) => (
2410
+ <div key={n} className="flex min-h-32 items-center gap-8 text-small text-fg-secondary">
2411
+ <Icon icon={icons[n]} size="sm" className="text-fg" />
2412
+ <span className="mono min-w-0 text-caption wrap-anywhere sm:text-small">{n}</span>
2413
+ </div>
2414
+ ))}
2415
+ </div>
2659
2416
  ```
2660
2417
 
2661
2418
  ## Input
@@ -2669,12 +2426,15 @@ A pill text field with the secondary material and a soft focus halo.
2669
2426
  | Key | Action |
2670
2427
  |---|---|
2671
2428
  | Tab | Moves focus in and out |
2429
+ | Escape | Clears a search |
2672
2430
 
2673
2431
  ### Accessibility
2674
2432
 
2675
2433
  - Pass label and description and the input wraps itself in Field, wiring aria-describedby; invalid sets aria-invalid, and an error shows under the input.
2676
2434
  - Placeholders are hints, never labels.
2677
2435
  - Read-only fields stay selectable and focusable.
2436
+ - type=search lets assistive technology announce a search field; its clear button is named “Clear search”, and a shortcut hint hides while the field has focus without moving anything.
2437
+ - A secret or password is masked behind a circle named “Show key” or “Show password”; a revealed key is set in mono, and a password field announces Caps Lock once.
2678
2438
 
2679
2439
  ### Examples
2680
2440
 
@@ -2726,36 +2486,33 @@ An invalid value gets the danger ring and a message under the field that says wh
2726
2486
  </div>
2727
2487
  ```
2728
2488
 
2729
- ## InputGroup
2489
+ #### Search
2730
2490
 
2731
- Addons inside the pill: text, icons, a ghost circle or a key cap, sharing one focus halo.
2491
+ `type="search"`: a leading icon, a clear circle when filled, and a shortcut hint. Escape clears.
2732
2492
 
2733
- `import { InputGroup } from "@logicplanes/kaeso-ui";`
2493
+ ```tsx
2494
+ <div className="w-240">
2495
+ <Input type="search" size="sm" aria-label="Search logs" placeholder="gpt-5, req_01…" shortcut={["mod", "k"]} />
2496
+ </div>
2497
+ ```
2734
2498
 
2735
- ### Accessibility
2499
+ #### Provider key
2736
2500
 
2737
- - Addons are text the input's label should not repeat; buttons inside need their own names.
2738
- - invalid on the group also marks the input aria-invalid, and disabled turns off its input and buttons.
2501
+ `secret`: masked, an eye to reveal, mono when revealed, never autocompleted.
2739
2502
 
2740
- ### Examples
2503
+ ```tsx
2504
+ <div className="w-400">
2505
+ <Input secret label="Provider key" description="Only the last four characters stay visible after saving." placeholder="sk-ant-…" />
2506
+ </div>
2507
+ ```
2508
+
2509
+ #### Password
2510
+
2511
+ `type="password"`: the same eye, password managers welcome, and a Caps Lock hint.
2741
2512
 
2742
- #### Addons
2743
-
2744
- ```tsx
2745
- <div className="flex w-400 flex-col gap-12">
2746
- <InputGroup>
2747
- <InputGroup.Addon data-join>https://</InputGroup.Addon>
2748
- <InputGroup.Input aria-label="Host" placeholder="kaeso.example.com" />
2749
- <InputGroup.Addon>/v1</InputGroup.Addon>
2750
- </InputGroup>
2751
- <InputGroup trailingButton>
2752
- <InputGroup.Input aria-label="Token" defaultValue="sk-kso-AbC123…wxyz" data-mono />
2753
- <InputGroup.Button icon={icons.copy} aria-label="Copy" />
2754
- </InputGroup>
2755
- <InputGroup leadingIcon>
2756
- <InputGroup.Addon icon={icons.search} />
2757
- <InputGroup.Input aria-label="Search" placeholder="Search models" />
2758
- </InputGroup>
2513
+ ```tsx
2514
+ <div className="w-320">
2515
+ <Input type="password" label="Password" />
2759
2516
  </div>
2760
2517
  ```
2761
2518
 
@@ -2788,7 +2545,15 @@ function Basic() {
2788
2545
  const [q, setQ] = useState("");
2789
2546
  return (
2790
2547
  <div className="flex w-560 flex-col gap-12">
2791
- <SearchInput aria-label="Search JSON" placeholder="Search keys and values" value={q} onChange={(e) => setQ(e.target.value)} onClear={() => setQ("")} />
2548
+ <Input
2549
+ type="search"
2550
+ size="sm"
2551
+ aria-label="Search JSON"
2552
+ placeholder="Search keys and values"
2553
+ value={q}
2554
+ onChange={(e) => setQ(e.target.value)}
2555
+ onClear={() => setQ("")}
2556
+ />
2792
2557
  <JsonView value={body} query={q || undefined} />
2793
2558
  </div>
2794
2559
  );
@@ -2799,7 +2564,7 @@ function Basic() {
2799
2564
 
2800
2565
  Key caps and shortcuts: ⌘ ⌥ ⇧ ⌃ on macOS, words elsewhere; sequences like G then M.
2801
2566
 
2802
- `import { Kbd, KbdSequence } from "@logicplanes/kaeso-ui";`
2567
+ `import { Kbd } from "@logicplanes/kaeso-ui";`
2803
2568
 
2804
2569
  ### Accessibility
2805
2570
 
@@ -2825,8 +2590,8 @@ Key caps and shortcuts: ⌘ ⌥ ⇧ ⌃ on macOS, words elsewhere; sequences lik
2825
2590
 
2826
2591
  ```tsx
2827
2592
  <div className="flex flex-col items-start gap-12">
2828
- <KbdSequence keys={["mod", "k"]} />
2829
- <KbdSequence keys={[["g"], ["l"]]} />
2593
+ <Kbd keys={["mod", "k"]} />
2594
+ <Kbd keys={[["g"], ["l"]]} />
2830
2595
  </div>
2831
2596
  ```
2832
2597
 
@@ -2834,7 +2599,7 @@ Key caps and shortcuts: ⌘ ⌥ ⇧ ⌃ on macOS, words elsewhere; sequences lik
2834
2599
 
2835
2600
  Kaeso's identities: a redacted key with its state, a model with its provider and capabilities, an HTTP status, a request's timing.
2836
2601
 
2837
- `import { KeyDisplay, ModelLabel, ProviderBadge, ProviderCard, StatusCode, RequestTimeline } from "@logicplanes/kaeso-ui";`
2602
+ `import { KeyDisplay, ModelLabel, ProviderBadge, StatusCode, RequestTimeline } from "@logicplanes/kaeso-ui";`
2838
2603
 
2839
2604
  ### Accessibility
2840
2605
 
@@ -2882,33 +2647,6 @@ Kaeso's identities: a redacted key with its state, a model with its provider and
2882
2647
  </div>
2883
2648
  ```
2884
2649
 
2885
- #### ProviderCard
2886
-
2887
- ```tsx
2888
- <div className="grid w-full grid-cols-1 gap-16 md:grid-cols-2">
2889
- <ProviderCard
2890
- provider="openai"
2891
- name="OpenAI"
2892
- connected
2893
- status="The organization's key"
2894
- keyLabel="Production …4f2a"
2895
- detail="Last used 2 min ago"
2896
- actions={<Button size="sm">Use another key here</Button>}
2897
- />
2898
- <ProviderCard
2899
- provider="anthropic"
2900
- name="Anthropic"
2901
- connected={false}
2902
- status="No key yet: requests to Anthropic fail"
2903
- actions={
2904
- <Button size="sm" variant="primary">
2905
- Connect Anthropic
2906
- </Button>
2907
- }
2908
- />
2909
- </div>
2910
- ```
2911
-
2912
2650
  ## KeyValue
2913
2651
 
2914
2652
  Label and value pairs for sheets: 13 secondary labels, 14 values, copyable, in columns where it's wide.
@@ -2946,34 +2684,6 @@ Label and value pairs for sheets: 13 secondary labels, 14 values, copyable, in c
2946
2684
  </div>
2947
2685
  ```
2948
2686
 
2949
- ## Label
2950
-
2951
- The name of a field: 14/500, with an optional “Optional”.
2952
-
2953
- `import { Label } from "@logicplanes/kaeso-ui";`
2954
-
2955
- ### Accessibility
2956
-
2957
- - Connect it to its control with htmlFor; Field does this for you.
2958
- - Beside a disabled control, pass data-disabled so the label dims with it.
2959
-
2960
- ### Examples
2961
-
2962
- #### Basic
2963
-
2964
- ```tsx
2965
- <div className="flex w-320 flex-col gap-8">
2966
- <Label htmlFor="name">Key name</Label>
2967
- <Input id="name" placeholder="checkout-web" />
2968
- </div>
2969
- ```
2970
-
2971
- #### Optional
2972
-
2973
- ```tsx
2974
- <Label optional>Description</Label>
2975
- ```
2976
-
2977
2687
  ## LayerDialog
2978
2688
 
2979
2689
  A second layer slides over the first (add model → review values); Back returns.
@@ -3023,7 +2733,9 @@ function Wizard() {
3023
2733
  const pick = {
3024
2734
  title: "Add model",
3025
2735
  description: "Pick a model from the KPMR catalogue.",
3026
- toolbar: <SearchInput aria-label="Search models" placeholder="Search" value={query} onChange={(e) => setQuery(e.target.value)} data-autofocus />,
2736
+ toolbar: (
2737
+ <Input type="search" size="sm" aria-label="Search models" placeholder="Search" value={query} onChange={(e) => setQuery(e.target.value)} data-autofocus />
2738
+ ),
3027
2739
  content: (
3028
2740
  <div className="flex flex-col gap-12">
3029
2741
  <List
@@ -3282,7 +2994,7 @@ function Delayed() {
3282
2994
  const [quick, setQuick] = useState(false);
3283
2995
  const [slow, setSlow] = useState(false);
3284
2996
  return (
3285
- <Inline gap={12}>
2997
+ <div className="flex flex-wrap items-center gap-12">
3286
2998
  <Button
3287
2999
  loading={quick}
3288
3000
  onClick={() => {
@@ -3302,7 +3014,7 @@ function Delayed() {
3302
3014
  >
3303
3015
  Slow save (1.8s)
3304
3016
  </Button>
3305
- </Inline>
3017
+ </div>
3306
3018
  );
3307
3019
  }
3308
3020
  ```
@@ -3430,7 +3142,7 @@ A rounded dropdown: 16px radius, 34px rows, icons that wake on highlight.
3430
3142
  ```tsx
3431
3143
  <Menu>
3432
3144
  <Menu.Trigger>
3433
- <IconButton icon={icons.more} aria-label="Key actions" variant="secondary" />
3145
+ <Button size="sm" icon={icons.more} aria-label="Key actions" variant="secondary" />
3434
3146
  </Menu.Trigger>
3435
3147
  <Menu.Content align="end">
3436
3148
  <Menu.Item icon={icons.edit}>Rename</Menu.Item>
@@ -3512,42 +3224,6 @@ A rounded dropdown: 16px radius, 34px rows, icons that wake on highlight.
3512
3224
  </Menu>
3513
3225
  ```
3514
3226
 
3515
- ## Menubar
3516
-
3517
- A row of ghost pills, each opening a menu; arrows move between them.
3518
-
3519
- `import { Menubar } from "@logicplanes/kaeso-ui";`
3520
-
3521
- ### Keyboard
3522
-
3523
- | Key | Action |
3524
- |---|---|
3525
- | Left Right | Moves between menus |
3526
- | Down | Opens the menu |
3527
-
3528
- ### Examples
3529
-
3530
- #### Basic
3531
-
3532
- ```tsx
3533
- <Menubar aria-label="Request">
3534
- <Menubar.Menu>
3535
- <Menubar.Trigger>Request</Menubar.Trigger>
3536
- <Menubar.Content>
3537
- <Menubar.Item icon={icons.copy}>Copy as curl</Menubar.Item>
3538
- <Menubar.Item icon={icons.download}>Download JSON</Menubar.Item>
3539
- </Menubar.Content>
3540
- </Menubar.Menu>
3541
- <Menubar.Menu>
3542
- <Menubar.Trigger>View</Menubar.Trigger>
3543
- <Menubar.Content>
3544
- <Menubar.CheckboxItem defaultChecked>Conversation</Menubar.CheckboxItem>
3545
- <Menubar.CheckboxItem>Raw JSON</Menubar.CheckboxItem>
3546
- </Menubar.Content>
3547
- </Menubar.Menu>
3548
- </Menubar>
3549
- ```
3550
-
3551
3227
  ## Meter
3552
3228
 
3553
3229
  A limit or quota: label and value, a 6px pill track, threshold ticks and a caption. Progress for work.
@@ -3567,6 +3243,14 @@ A limit or quota: label and value, a 6px pill track, threshold ticks and a capti
3567
3243
  <Meter className="w-400" label="Monthly budget" value={0.642} valueLabel="$32.10 of $50.00" thresholds={[0.8]} caption="Resets in 12 days" />
3568
3244
  ```
3569
3245
 
3246
+ #### Gauge
3247
+
3248
+ `shape="gauge"`: a half circle for the one number a page is about.
3249
+
3250
+ ```tsx
3251
+ <Meter shape="gauge" aria-label="Monthly budget used" value={0.64} label="of $500.00 budget" valueLabel="$320.00" />
3252
+ ```
3253
+
3570
3254
  #### Progress
3571
3255
 
3572
3256
  ```tsx
@@ -3715,76 +3399,6 @@ Six cells for a TOTP code over one accessible input: paste fills, Backspace move
3715
3399
  </Field>
3716
3400
  ```
3717
3401
 
3718
- ## Page patterns
3719
-
3720
- List, table, overview and empty pages, composed from the library so the console never invents layout.
3721
-
3722
- `import { ListPage, TablePage, OverviewPage, EmptyPage, AuthPage } from "@logicplanes/kaeso-ui";`
3723
-
3724
- ### Examples
3725
-
3726
- #### Overview
3727
-
3728
- ```tsx
3729
- <Frame>
3730
- <OverviewPage
3731
- header={{ title: "Overview" }}
3732
- metrics={
3733
- <MetricRow>
3734
- <Stat value="12,480" unit="requests" />
3735
- <Stat value="$184.20" unit="total spend" />
3736
- </MetricRow>
3737
- }
3738
- controls={
3739
- <Button size="sm" trailingIcon={icons.chevronDown}>
3740
- Last 30 days
3741
- </Button>
3742
- }
3743
- chart={<TimeseriesChart aria-label="Spend" series={usageSeries().slice(0, 2)} height={200} formatValue={(v) => formatUSD(v.toFixed(2))} />}
3744
- />
3745
- </Frame>
3746
- ```
3747
-
3748
- #### List page
3749
-
3750
- ```tsx
3751
- <Frame>
3752
- <ListPage
3753
- header={{
3754
- title: "Keys",
3755
- actions: (
3756
- <Button size="sm" variant="primary" leadingIcon={icons.add}>
3757
- Create key
3758
- </Button>
3759
- ),
3760
- }}
3761
- toolbar={
3762
- <Toolbar aria-label="Filters">
3763
- <Toolbar.Spacer />
3764
- <div className="w-240">
3765
- <SearchInput aria-label="Search keys" />
3766
- </div>
3767
- </Toolbar>
3768
- }
3769
- >
3770
- <List aria-label="Keys" items={keys.map((k) => ({ id: k.id, title: k.name, subtitle: k.redacted }))} />
3771
- </ListPage>
3772
- </Frame>
3773
- ```
3774
-
3775
- #### Empty page
3776
-
3777
- ```tsx
3778
- <Frame>
3779
- <EmptyPage
3780
- header={{ title: "Models" }}
3781
- title="No models yet"
3782
- description="Add a model before creating keys."
3783
- actions={<Button variant="primary">Add model</Button>}
3784
- />
3785
- </Frame>
3786
- ```
3787
-
3788
3402
  ## PageHeader
3789
3403
 
3790
3404
  The 52px header: the page title, pill tabs, at most one ink button and round actions.
@@ -3853,7 +3467,7 @@ function Pages() {
3853
3467
 
3854
3468
  A request's parameters: system instructions, temperature, top P, max output tokens, and reasoning for models that reason. Unset is the model's default.
3855
3469
 
3856
- `import { ParameterPanel, ParameterPopover } from "@logicplanes/kaeso-ui/playground";`
3470
+ `import { ParameterPanel } from "@logicplanes/kaeso-ui/playground";`
3857
3471
 
3858
3472
  ### Keyboard
3859
3473
 
@@ -3874,7 +3488,7 @@ A request's parameters: system instructions, temperature, top P, max output toke
3874
3488
  function Basic() {
3875
3489
  const [value, setValue] = useState<PlaygroundParameters>({ instructions });
3876
3490
  return (
3877
- <ParameterPopover
3491
+ <ParameterPanel
3878
3492
  value={value}
3879
3493
  onValueChange={setValue}
3880
3494
  reasoning
@@ -3911,9 +3525,9 @@ function Panel() {
3911
3525
 
3912
3526
  ## Popover
3913
3527
 
3914
- A floating panel next to its trigger; HoverCard previews on hover, never as the only way in.
3528
+ A floating panel next to its trigger, opened by a click and closed with Escape.
3915
3529
 
3916
- `import { Popover, HoverCard } from "@logicplanes/kaeso-ui";`
3530
+ `import { Popover } from "@logicplanes/kaeso-ui";`
3917
3531
 
3918
3532
  ### Keyboard
3919
3533
 
@@ -3925,7 +3539,7 @@ A floating panel next to its trigger; HoverCard previews on hover, never as the
3925
3539
 
3926
3540
  - Popovers with a form trap focus (trapFocus); others do not.
3927
3541
  - The title names the popover's dialog; without a title, give the content an aria-label.
3928
- - A popover and a hover card are never wider than the screen.
3542
+ - A popover is never wider than the screen.
3929
3543
 
3930
3544
  ### Examples
3931
3545
 
@@ -3952,30 +3566,6 @@ A floating panel next to its trigger; HoverCard previews on hover, never as the
3952
3566
  </Popover>
3953
3567
  ```
3954
3568
 
3955
- #### HoverCard
3956
-
3957
- ```tsx
3958
- <HoverCard>
3959
- <HoverCard.Trigger>
3960
- <Link href="#models/claude-sonnet-4-5" className="mono text-small">
3961
- claude-sonnet-4-5
3962
- </Link>
3963
- </HoverCard.Trigger>
3964
- <HoverCard.Content>
3965
- <div className="flex flex-col gap-12">
3966
- <ModelLabel provider="anthropic" providerName="Anthropic" model="claude-sonnet-4-5" capabilities={["tools", "reasoning", "vision", "pdf"]} />
3967
- <KeyValue
3968
- items={[
3969
- { label: "Input", value: "$3.00 / M" },
3970
- { label: "Output", value: "$15.00 / M" },
3971
- { label: "Context", value: "200,000 tokens" },
3972
- ]}
3973
- />
3974
- </div>
3975
- </HoverCard.Content>
3976
- </HoverCard>
3977
- ```
3978
-
3979
3569
  ## PromptSuggestions
3980
3570
 
3981
3571
  Example prompts before a thread starts: up to three quiet rows that take a fill on hover and go once a prompt is sent.
@@ -4098,9 +3688,9 @@ A scannable code drawn as one SVG path: dark modules on white in both themes, wi
4098
3688
 
4099
3689
  ## Radio
4100
3690
 
4101
- One of a few choices: an ink donut around a panel center; RadioCards for choices with descriptions.
3691
+ One of a few choices: an ink donut around a panel center; cards (`variant="cards"`) for choices with descriptions.
4102
3692
 
4103
- `import { Radio, RadioGroup, RadioCards } from "@logicplanes/kaeso-ui";`
3693
+ `import { Radio, RadioGroup } from "@logicplanes/kaeso-ui";`
4104
3694
 
4105
3695
  ### Keyboard
4106
3696
 
@@ -4125,14 +3715,14 @@ One of a few choices: an ink donut around a panel center; RadioCards for choices
4125
3715
  </RadioGroup>
4126
3716
  ```
4127
3717
 
4128
- #### RadioCards
3718
+ #### Cards
4129
3719
 
4130
3720
  ```tsx
4131
3721
  <div className="w-480">
4132
- <RadioCards defaultValue="responses" aria-label="OpenAI dialect">
3722
+ <RadioGroup variant="cards" defaultValue="responses" aria-label="OpenAI dialect">
4133
3723
  <Radio value="responses" label="Responses" description="The default. Reasoning and tools work best here." />
4134
3724
  <Radio value="chat" label="Chat Completions" description="For models or proxies that only speak the older API." />
4135
- </RadioCards>
3725
+ </RadioGroup>
4136
3726
  </div>
4137
3727
  ```
4138
3728
 
@@ -4190,27 +3780,6 @@ Flat geometric artwork for a release, from a stored spec or a seed: the same pic
4190
3780
  </div>
4191
3781
  ```
4192
3782
 
4193
- ## ResourceList
4194
-
4195
- A searchable list with group headers, row actions and a selection bar.
4196
-
4197
- `import { ResourceList } from "@logicplanes/kaeso-ui";`
4198
-
4199
- ### Examples
4200
-
4201
- #### Keys
4202
-
4203
- ```tsx
4204
- <div className="w-full">
4205
- <ResourceList
4206
- aria-label="Keys"
4207
- groups={groups}
4208
- bulkActions={[{ label: "Disable", icon: icons.hide, onClick: () => undefined }]}
4209
- emptyAction={<Button variant="primary">Create key</Button>}
4210
- />
4211
- </div>
4212
- ```
4213
-
4214
3783
  ## ResponseMetrics
4215
3784
 
4216
3785
  A response's numbers on one line: time to first token, total time, tokens in and out, reasoning, cost. Empty before a response; quiet placeholders hold their place while one streams.
@@ -4507,47 +4076,11 @@ A scroll container with thin scrollbars that appear on hover, fading at every ed
4507
4076
  </ScrollArea>
4508
4077
  ```
4509
4078
 
4510
- ## SearchInput
4511
-
4512
- Search with a leading icon, a clear circle when filled, and a shortcut hint where one was asked for.
4513
-
4514
- `import { SearchInput } from "@logicplanes/kaeso-ui";`
4515
-
4516
- ### Keyboard
4517
-
4518
- | Key | Action |
4519
- |---|---|
4520
- | Escape | Clears the search |
4521
-
4522
- ### Accessibility
4523
-
4524
- - The clear button is named “Clear search”.
4525
- - type=search lets assistive technology announce it as a search field.
4526
- - A shortcut hint hides while the field has focus, where it no longer applies; its room stays, so nothing moves.
4527
-
4528
- ### Examples
4529
-
4530
- #### In a toolbar
4531
-
4532
- ```tsx
4533
- <div className="w-240">
4534
- <SearchInput aria-label="Search logs" placeholder="gpt-5, req_01…" shortcut={["mod", "k"]} />
4535
- </div>
4536
- ```
4537
-
4538
- #### In the settings sidebar
4539
-
4540
- ```tsx
4541
- <div className="w-240">
4542
- <SearchInput size="md" aria-label="Search settings" placeholder="Rate limit, budget" />
4543
- </div>
4544
- ```
4545
-
4546
4079
  ## SecretReveal
4547
4080
 
4548
4081
  The one-time key: calm, centered, certain. Copy it, store it, see how to use it.
4549
4082
 
4550
- `import { SecretReveal, EnvironmentSnippet } from "@logicplanes/kaeso-ui";`
4083
+ `import { SecretReveal } from "@logicplanes/kaeso-ui";`
4551
4084
 
4552
4085
  ### Accessibility
4553
4086
 
@@ -4566,14 +4099,6 @@ The one-time key: calm, centered, certain. Copy it, store it, see how to use it.
4566
4099
  </div>
4567
4100
  ```
4568
4101
 
4569
- #### EnvironmentSnippet
4570
-
4571
- ```tsx
4572
- <div className="w-640">
4573
- <EnvironmentSnippet baseUrl="https://kaeso.example.com" />
4574
- </div>
4575
- ```
4576
-
4577
4102
  #### A Platform API key
4578
4103
 
4579
4104
  ```tsx
@@ -4630,10 +4155,10 @@ Section, SplitView and AuthLayout: page structure with space instead of boxes.
4630
4155
  }
4631
4156
  >
4632
4157
  <Section title="Usage" description="Last 30 days">
4633
- <MetricRow>
4158
+ <StatGroup variant="row">
4634
4159
  <Stat value="12,480" unit="requests" />
4635
4160
  <Stat value="$184.20" unit="total spend" />
4636
- </MetricRow>
4161
+ </StatGroup>
4637
4162
  </Section>
4638
4163
  </SplitView>
4639
4164
  </div>
@@ -4767,36 +4292,6 @@ A pill that opens a list on the menu surface: a check on the selected item, grou
4767
4292
  />
4768
4293
  ```
4769
4294
 
4770
- ## SensitiveInput
4771
-
4772
- Secrets masked by default, an eye to reveal, mono when revealed, never autocompleted.
4773
-
4774
- `import { SensitiveInput } from "@logicplanes/kaeso-ui";`
4775
-
4776
- ### Accessibility
4777
-
4778
- - The reveal circle is named “Show key” or “Hide key” (“Show password” for passwords).
4779
- - With Caps Lock on, a password field shows “Caps Lock” beside the reveal circle and announces it once; the field's own description stays.
4780
- - A revealed key is set in mono at the same size as every other id.
4781
-
4782
- ### Examples
4783
-
4784
- #### Provider key
4785
-
4786
- ```tsx
4787
- <div className="w-400">
4788
- <SensitiveInput label="Provider key" description="Only the last four characters stay visible after saving." placeholder="sk-ant-…" />
4789
- </div>
4790
- ```
4791
-
4792
- #### Password
4793
-
4794
- ```tsx
4795
- <div className="w-320">
4796
- <SensitiveInput kind="password" label="Password" />
4797
- </div>
4798
- ```
4799
-
4800
4295
  ## Separator
4801
4296
 
4802
4297
  A 1px line, for when space and tone cannot separate two regions.
@@ -4831,7 +4326,7 @@ A 1px line, for when space and tone cannot separate two regions.
4831
4326
 
4832
4327
  Settings rows in a rounded group, title and description left, the control right.
4833
4328
 
4834
- `import { SettingsSection, SettingsGroup, SettingsRow } from "@logicplanes/kaeso-ui";`
4329
+ `import { SettingsGroup, SettingsRow } from "@logicplanes/kaeso-ui";`
4835
4330
 
4836
4331
  ### Accessibility
4837
4332
 
@@ -4844,7 +4339,7 @@ Settings rows in a rounded group, title and description left, the control right.
4844
4339
 
4845
4340
  ```tsx
4846
4341
  <div className="w-560">
4847
- <SettingsSection title="General">
4342
+ <Section spacing="settings" title="General">
4848
4343
  <SettingsGroup>
4849
4344
  <SettingsRow
4850
4345
  title="Default project"
@@ -4884,8 +4379,8 @@ Settings rows in a rounded group, title and description left, the control right.
4884
4379
  control={<Switch aria-label="Show times in UTC" />}
4885
4380
  />
4886
4381
  </SettingsGroup>
4887
- </SettingsSection>
4888
- <SettingsSection title="Security">
4382
+ </Section>
4383
+ <Section spacing="settings" title="Security">
4889
4384
  <SettingsGroup>
4890
4385
  <SettingsRow title="Two-step verification" description="Codes from an authenticator app." control={<Button size="sm">Set up</Button>} />
4891
4386
  <SettingsRow
@@ -4898,7 +4393,7 @@ Settings rows in a rounded group, title and description left, the control right.
4898
4393
  }
4899
4394
  />
4900
4395
  </SettingsGroup>
4901
- </SettingsSection>
4396
+ </Section>
4902
4397
  </div>
4903
4398
  ```
4904
4399
 
@@ -4934,7 +4429,7 @@ Settings rows in a rounded group, title and description left, the control right.
4934
4429
  <SettingsRow
4935
4430
  title="Account id"
4936
4431
  description="Used by instance administrators and in the audit log."
4937
- control={<InlineCopyText value="usr_01m4sprwt3eksbpepefnnzdg4a" label="Copy account id" />}
4432
+ control={<CopyButton display="inline" value="usr_01m4sprwt3eksbpepefnnzdg4a" label="Copy account id" />}
4938
4433
  />
4939
4434
  <SettingsRow title="Email" description="owner@example.com" control={<Button size="sm">Change email</Button>} />
4940
4435
  <SettingsRow title="Show times in UTC" description="Request logs and the audit log use UTC." control={<Switch aria-label="Show times in UTC" />} />
@@ -4971,7 +4466,7 @@ A panel from the edge that keeps the list behind it readable: the request inspec
4971
4466
  subtitle="req_01JAR4X2KQ"
4972
4467
  size="md"
4973
4468
  modal={false}
4974
- actions={<IconButton icon={icons.copy} aria-label="Copy request id" />}
4469
+ actions={<Button variant="ghost" size="sm" icon={icons.copy} aria-label="Copy request id" />}
4975
4470
  >
4976
4471
  {body}
4977
4472
  </Sheet>
@@ -5020,7 +4515,7 @@ Icons only, with labels in tooltips. For narrow tools that keep navigation in vi
5020
4515
 
5021
4516
  Shapes of the content that is loading, with a quiet pulse, never a shimmer.
5022
4517
 
5023
- `import { Skeleton, SkeletonLine } from "@logicplanes/kaeso-ui";`
4518
+ `import { Skeleton } from "@logicplanes/kaeso-ui";`
5024
4519
 
5025
4520
  ### Accessibility
5026
4521
 
@@ -5048,7 +4543,7 @@ Shapes of the content that is loading, with a quiet pulse, never a shimmer.
5048
4543
  {[0, 1, 2].map((i) => (
5049
4544
  <div key={i} className="flex flex-col gap-8">
5050
4545
  <Skeleton className="h-32 w-120" />
5051
- <SkeletonLine className="w-80" />
4546
+ <Skeleton shape="line" className="w-80" />
5052
4547
  </div>
5053
4548
  ))}
5054
4549
  </div>
@@ -5111,7 +4606,7 @@ One series inline: 80×24, the last point as a dot.
5111
4606
 
5112
4607
  #### Fluid
5113
4608
 
5114
- fluid fills its container's width, as in a StatTile; the line keeps its weight at any width.
4609
+ fluid fills its container's width, as in a tile Stat; the line keeps its weight at any width.
5115
4610
 
5116
4611
  ```tsx
5117
4612
  <div className="flex w-full max-w-480 flex-col gap-16">
@@ -5124,51 +4619,51 @@ fluid fills its container's width, as in a StatTile; the line keeps its weight a
5124
4619
 
5125
4620
  ## Stat
5126
4621
 
5127
- A big number followed by its word, no box. MetricRow lines up three to five; StatGrid holds tiles.
4622
+ A big number followed by its word, no box, or a tile with its label, change and trend. StatGroup lines numbers up in a row or tiles in a grid.
5128
4623
 
5129
- `import { Stat, MetricRow, StatGrid, StatTile } from "@logicplanes/kaeso-ui";`
4624
+ `import { Stat, StatGroup } from "@logicplanes/kaeso-ui";`
5130
4625
 
5131
4626
  ### Examples
5132
4627
 
5133
4628
  #### Metric row
5134
4629
 
5135
4630
  ```tsx
5136
- <MetricRow>
4631
+ <StatGroup variant="row">
5137
4632
  <Stat value="12,480" unit="requests" />
5138
4633
  <Stat value="$184.20" unit="total spend" delta={{ label: "+12%", tone: "neutral" }} />
5139
4634
  <Stat value="1.2 s" unit="median latency" />
5140
- </MetricRow>
4635
+ </StatGroup>
5141
4636
  ```
5142
4637
 
5143
4638
  #### Stat tiles: four, three without cost, totals
5144
4639
 
5145
4640
  ```tsx
5146
4641
  <div className="flex flex-col gap-24">
5147
- <StatGrid aria-label="Usage in the period">
5148
- <StatTile label="Requests" value="12,480" change={{ value: 0.12 }} detail="vs. the previous 7 days" trend={DAYS} />
5149
- <StatTile label="Tokens" value="4.2M" change={{ value: -0.04 }} detail="vs. the previous 7 days" trend={DAYS.map((d) => d * 3)} />
5150
- <StatTile label="Cost" value="$184.20" detail="vs. the previous 7 days" trend={[]} />
5151
- <StatTile label="Errors" value="38" change={{ value: 0.3, better: "down" }} detail="0.3% of requests" trend={DAYS.map((d) => d % 5)} />
5152
- </StatGrid>
5153
- <StatGrid aria-label="Usage without the cost right">
5154
- <StatTile label="Requests" value="12,480" change={{ value: 0.12 }} detail="vs. the previous 7 days" trend={DAYS} />
5155
- <StatTile label="Tokens" value="4.2M" change={{ value: -0.04 }} detail="vs. the previous 7 days" trend={DAYS.map((d) => d * 3)} />
5156
- <StatTile label="Errors" value="38" change={{ value: 0.3, better: "down" }} detail="0.3% of requests" trend={DAYS.map((d) => d % 5)} />
5157
- </StatGrid>
5158
- <StatGrid aria-label="Usage in the last 30 days">
5159
- <StatTile label="Requests" value="334" detail="11 a day on average" />
5160
- <StatTile label="Tokens" value="27.2K" detail="81 per request" />
5161
- <StatTile label="Cost" value="$0.09" detail="$0.00027 per request" />
5162
- <StatTile label="Logs" value="360 KB" detail="334 entries" />
5163
- </StatGrid>
4642
+ <StatGroup aria-label="Usage in the period">
4643
+ <Stat variant="tile" label="Requests" value="12,480" change={{ value: 0.12 }} detail="vs. the previous 7 days" trend={DAYS} />
4644
+ <Stat variant="tile" label="Tokens" value="4.2M" change={{ value: -0.04 }} detail="vs. the previous 7 days" trend={DAYS.map((d) => d * 3)} />
4645
+ <Stat variant="tile" label="Cost" value="$184.20" detail="vs. the previous 7 days" trend={[]} />
4646
+ <Stat variant="tile" label="Errors" value="38" change={{ value: 0.3, better: "down" }} detail="0.3% of requests" trend={DAYS.map((d) => d % 5)} />
4647
+ </StatGroup>
4648
+ <StatGroup aria-label="Usage without the cost right">
4649
+ <Stat variant="tile" label="Requests" value="12,480" change={{ value: 0.12 }} detail="vs. the previous 7 days" trend={DAYS} />
4650
+ <Stat variant="tile" label="Tokens" value="4.2M" change={{ value: -0.04 }} detail="vs. the previous 7 days" trend={DAYS.map((d) => d * 3)} />
4651
+ <Stat variant="tile" label="Errors" value="38" change={{ value: 0.3, better: "down" }} detail="0.3% of requests" trend={DAYS.map((d) => d % 5)} />
4652
+ </StatGroup>
4653
+ <StatGroup aria-label="Usage in the last 30 days">
4654
+ <Stat variant="tile" label="Requests" value="334" detail="11 a day on average" />
4655
+ <Stat variant="tile" label="Tokens" value="27.2K" detail="81 per request" />
4656
+ <Stat variant="tile" label="Cost" value="$0.09" detail="$0.00027 per request" />
4657
+ <Stat variant="tile" label="Logs" value="360 KB" detail="334 entries" />
4658
+ </StatGroup>
5164
4659
  </div>
5165
4660
  ```
5166
4661
 
5167
- ## StatusDot
4662
+ ## Status
5168
4663
 
5169
- An 8px semantic dot with its word. Status is never color alone.
4664
+ A status word in its tone's color, with an optional icon. Status is never color alone.
5170
4665
 
5171
- `import { StatusDot } from "@logicplanes/kaeso-ui";`
4666
+ `import { Status } from "@logicplanes/kaeso-ui";`
5172
4667
 
5173
4668
  ### Examples
5174
4669
 
@@ -5176,12 +4671,12 @@ An 8px semantic dot with its word. Status is never color alone.
5176
4671
 
5177
4672
  ```tsx
5178
4673
  <div className="flex flex-col gap-8">
5179
- <StatusDot tone="success">Active</StatusDot>
5180
- <StatusDot tone="warning">Expiring</StatusDot>
5181
- <StatusDot tone="danger">Down</StatusDot>
5182
- <StatusDot tone="info">Syncing</StatusDot>
5183
- <StatusDot tone="neutral">Archived</StatusDot>
5184
- <StatusDot tone="success">Live</StatusDot>
4674
+ <Status tone="success">Active</Status>
4675
+ <Status tone="warning">Expiring</Status>
4676
+ <Status tone="danger">Down</Status>
4677
+ <Status tone="info">Syncing</Status>
4678
+ <Status tone="neutral">Archived</Status>
4679
+ <Status tone="success">Live</Status>
5185
4680
  </div>
5186
4681
  ```
5187
4682
 
@@ -5421,7 +4916,7 @@ A reference table of five or more columns puts 8px between them, so it fits the
5421
4916
 
5422
4917
  Underline tabs for detail pages and pill tabs for page headers.
5423
4918
 
5424
- `import { Tabs, PillTabs } from "@logicplanes/kaeso-ui";`
4919
+ `import { Tabs } from "@logicplanes/kaeso-ui";`
5425
4920
 
5426
4921
  ### Keyboard
5427
4922
 
@@ -5457,20 +4952,20 @@ Underline tabs for detail pages and pill tabs for page headers.
5457
4952
  #### Pill tabs
5458
4953
 
5459
4954
  ```tsx
5460
- <PillTabs defaultValue="all">
5461
- <PillTabs.List aria-label="Keys">
5462
- <PillTabs.Tab value="all" count={6}>
4955
+ <Tabs variant="pill" defaultValue="all">
4956
+ <Tabs.List aria-label="Keys">
4957
+ <Tabs.Tab value="all" count={6}>
5463
4958
  All
5464
- </PillTabs.Tab>
5465
- <PillTabs.Tab value="active" count={3}>
4959
+ </Tabs.Tab>
4960
+ <Tabs.Tab value="active" count={3}>
5466
4961
  Active
5467
- </PillTabs.Tab>
5468
- <PillTabs.Tab value="disabled">Disabled</PillTabs.Tab>
5469
- <PillTabs.Tab value="archived" icon={icons.stack}>
4962
+ </Tabs.Tab>
4963
+ <Tabs.Tab value="disabled">Disabled</Tabs.Tab>
4964
+ <Tabs.Tab value="archived" icon={icons.stack}>
5470
4965
  Archived
5471
- </PillTabs.Tab>
5472
- </PillTabs.List>
5473
- </PillTabs>
4966
+ </Tabs.Tab>
4967
+ </Tabs.List>
4968
+ </Tabs>
5474
4969
  ```
5475
4970
 
5476
4971
  ## Tag
@@ -5704,66 +5199,6 @@ A circle that opens system, light or dark, stored as `kaeso:theme`; its icon sho
5704
5199
  </ThemeProvider>
5705
5200
  ```
5706
5201
 
5707
- ## ThemeSelect
5708
-
5709
- A select for system, light or dark, stored as `kaeso:theme`, with its label in the provider's language.
5710
-
5711
- `import { ThemeSelect } from "@logicplanes/kaeso-ui";`
5712
-
5713
- ### Keyboard
5714
-
5715
- | Key | Action |
5716
- |---|---|
5717
- | Enter Space | Opens |
5718
- | Up Down | Moves |
5719
- | Type | Jumps to an option |
5720
- | Escape | Closes and returns focus |
5721
-
5722
- ### Accessibility
5723
-
5724
- - Named Theme in the provider's language, and shows the choice in words, so it needs no aria-label and no icon.
5725
- - Reads and sets the choice of the nearest ThemeProvider; every provider on the page follows it.
5726
-
5727
- ### Examples
5728
-
5729
- #### Basic
5730
-
5731
- ```tsx
5732
- <ThemeProvider>
5733
- <ThemeSelect />
5734
- </ThemeProvider>
5735
- ```
5736
-
5737
- #### In a sidebar's footer, beside the language
5738
-
5739
- ```tsx
5740
- <ThemeProvider>
5741
- <div className="grid w-240 grid-cols-2 gap-4">
5742
- <Select
5743
- aria-label="Language"
5744
- size="sm"
5745
- appearance="ghost"
5746
- fullWidth
5747
- defaultValue="en"
5748
- options={[
5749
- { value: "en", label: "English" },
5750
- { value: "de", label: "Deutsch" },
5751
- { value: "zh-CN", label: "简体中文" },
5752
- ]}
5753
- />
5754
- <ThemeSelect fullWidth />
5755
- </div>
5756
- </ThemeProvider>
5757
- ```
5758
-
5759
- #### Raised
5760
-
5761
- ```tsx
5762
- <ThemeProvider>
5763
- <ThemeSelect appearance="default" size="md" />
5764
- </ThemeProvider>
5765
- ```
5766
-
5767
5202
  ## Thumbnail
5768
5203
 
5769
5204
  A square image someone sent, such as a photo in a request's conversation, cropped to fill a well.
@@ -5887,7 +5322,7 @@ An ink capsule at the bottom center: brief, calm, at most three.
5887
5322
 
5888
5323
  ```tsx
5889
5324
  <>
5890
- <Inline gap={8}>
5325
+ <div className="flex flex-wrap items-center gap-8">
5891
5326
  <Button onClick={() => toast("Key copied")}>Copy key</Button>
5892
5327
  <Button onClick={() => toast.success("Provider saved")}>Save provider</Button>
5893
5328
  <Button onClick={() => toast.error("Couldn't reach the provider.", { description: "Check the provider key, then try again." })}>Test provider</Button>
@@ -5899,7 +5334,7 @@ An ink capsule at the bottom center: brief, calm, at most three.
5899
5334
  >
5900
5335
  Sync models
5901
5336
  </Button>
5902
- </Inline>
5337
+ </div>
5903
5338
  </>
5904
5339
  ```
5905
5340
 
@@ -5937,7 +5372,7 @@ function Logs() {
5937
5372
  </Button>
5938
5373
  <Toolbar.Spacer />
5939
5374
  <div className="order-last basis-full sm:order-none sm:basis-auto sm:w-240">
5940
- <SearchInput aria-label="Search logs" placeholder="Search logs" />
5375
+ <Input type="search" size="sm" aria-label="Search logs" placeholder="Search logs" />
5941
5376
  </div>
5942
5377
  <DisplayOptions {...display} />
5943
5378
  </Toolbar>
@@ -5973,7 +5408,7 @@ A short label on hover and focus: a pill, with a shortcut when there is one.
5973
5408
 
5974
5409
  ```tsx
5975
5410
  <Tooltip content="Filter">
5976
- <IconButton icon={icons.filter} aria-label="Filter" variant="secondary" tooltip={false} />
5411
+ <Button size="sm" icon={icons.filter} aria-label="Filter" variant="secondary" tooltip={false} />
5977
5412
  </Tooltip>
5978
5413
  ```
5979
5414
 
@@ -6044,13 +5479,9 @@ Token kinds in their fixed colors, and limits with their scope, window, kind and
6044
5479
 
6045
5480
  ## VisuallyHidden
6046
5481
 
6047
- Utilities: text for assistive technology only, a portal to the body, and the internal Surface.
6048
-
6049
- `import { VisuallyHidden, Portal } from "@logicplanes/kaeso-ui";`
5482
+ Text for assistive technology only, such as the rest of a short label.
6050
5483
 
6051
- ### Accessibility
6052
-
6053
- - Surface is internal: it draws only the framed surfaces of the foundations, never a generic card.
5484
+ `import { VisuallyHidden } from "@logicplanes/kaeso-ui";`
6054
5485
 
6055
5486
  ### Examples
6056
5487
 
@@ -6063,15 +5494,3 @@ Utilities: text for assistive technology only, a portal to the body, and the int
6063
5494
  </button>
6064
5495
  ```
6065
5496
 
6066
- #### Surface kinds
6067
-
6068
- ```tsx
6069
- <div className="grid grid-cols-2 gap-16 sm:grid-cols-4">
6070
- {(["panel", "menu", "group", "well"] as const).map((k) => (
6071
- <Surface key={k} kind={k} className="flex h-80 w-140 items-center justify-center text-small text-fg-secondary">
6072
- {k}
6073
- </Surface>
6074
- ))}
6075
- </div>
6076
- ```
6077
-