@logicplanes/kaeso-ui 0.6.0-rc.8 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/README.md +2 -0
  2. package/ai/component-guides.md +246 -49
  3. package/ai/component-registry.json +984 -172
  4. package/ai/component-registry.md +238 -44
  5. package/ai/icons.md +3 -3
  6. package/ai/tokens.md +23 -1
  7. package/dist/chunks/{app-frame-BQglMYqg.js → app-frame-R1TWy5PY.js} +6 -6
  8. package/dist/chunks/{app-frame-BQglMYqg.js.map → app-frame-R1TWy5PY.js.map} +1 -1
  9. package/dist/chunks/{avatar-BxurPxr-.js → avatar-DVrkoFEg.js} +3 -3
  10. package/dist/chunks/{avatar-BxurPxr-.js.map → avatar-DVrkoFEg.js.map} +1 -1
  11. package/dist/chunks/{badge-D0xd2NJD.js → badge-CTYrfTwc.js} +3 -3
  12. package/dist/chunks/{badge-D0xd2NJD.js.map → badge-CTYrfTwc.js.map} +1 -1
  13. package/dist/chunks/{banner-CDxD8uNX.js → banner-cJ89c-IR.js} +4 -4
  14. package/dist/chunks/{banner-CDxD8uNX.js.map → banner-cJ89c-IR.js.map} +1 -1
  15. package/dist/chunks/{button-CcXKlcXd.js → button-Da8b-8ub.js} +83 -72
  16. package/dist/chunks/button-Da8b-8ub.js.map +1 -0
  17. package/dist/chunks/{button-group-DuDLB-P0.js → button-group-BJxaz0sb.js} +5 -5
  18. package/dist/chunks/{button-group-DuDLB-P0.js.map → button-group-BJxaz0sb.js.map} +1 -1
  19. package/dist/chunks/{calendar-65N4gUmO.js → calendar-CA9mDtwp.js} +2 -2
  20. package/dist/chunks/{calendar-65N4gUmO.js.map → calendar-CA9mDtwp.js.map} +1 -1
  21. package/dist/chunks/{checkbox-BB_tV5ic.js → checkbox-CPL47-us.js} +4 -4
  22. package/dist/chunks/{checkbox-BB_tV5ic.js.map → checkbox-CPL47-us.js.map} +1 -1
  23. package/dist/chunks/{cn-BUMD6lNz.js → cn-CLpm819s.js} +4 -1
  24. package/dist/chunks/cn-CLpm819s.js.map +1 -0
  25. package/dist/chunks/{code-BBeW-m4W.js → code-CpqXogQK.js} +2 -2
  26. package/dist/chunks/{code-BBeW-m4W.js.map → code-CpqXogQK.js.map} +1 -1
  27. package/dist/chunks/code-block-7c_BOBlJ.js +247 -0
  28. package/dist/chunks/code-block-7c_BOBlJ.js.map +1 -0
  29. package/dist/chunks/{code-block-CbVLyIr-.js → code-block-BqFGa1-b.js} +82 -81
  30. package/dist/chunks/code-block-BqFGa1-b.js.map +1 -0
  31. package/dist/chunks/{collapsible-CiDUGq5u.js → collapsible-DmLyF8Ol.js} +3 -3
  32. package/dist/chunks/{collapsible-CiDUGq5u.js.map → collapsible-DmLyF8Ol.js.map} +1 -1
  33. package/dist/chunks/{combobox-BX703kW9.js → combobox-B-xciC2c.js} +6 -6
  34. package/dist/chunks/{combobox-BX703kW9.js.map → combobox-B-xciC2c.js.map} +1 -1
  35. package/dist/chunks/{command-list-BLVmk0z6.js → command-list-GQ3y8on6.js} +4 -4
  36. package/dist/chunks/{command-list-BLVmk0z6.js.map → command-list-GQ3y8on6.js.map} +1 -1
  37. package/dist/chunks/{command-palette-s_qW_RRa.js → command-palette-DEJDRW31.js} +5 -5
  38. package/dist/chunks/{command-palette-s_qW_RRa.js.map → command-palette-DEJDRW31.js.map} +1 -1
  39. package/dist/chunks/{copy-button-CK-ddxCg.js → copy-button-B67MEIu2.js} +6 -5
  40. package/dist/chunks/copy-button-B67MEIu2.js.map +1 -0
  41. package/dist/chunks/core-CQUQdd7y.js +414 -0
  42. package/dist/chunks/core-CQUQdd7y.js.map +1 -0
  43. package/dist/chunks/dashboard-NqG9Wgga.js +132 -0
  44. package/dist/chunks/dashboard-NqG9Wgga.js.map +1 -0
  45. package/dist/chunks/data-table-ByhxIgY2.js +625 -0
  46. package/dist/chunks/data-table-ByhxIgY2.js.map +1 -0
  47. package/dist/chunks/{date-picker-DGM5bXxD.js → date-picker-BmLb22jd.js} +8 -8
  48. package/dist/chunks/{date-picker-DGM5bXxD.js.map → date-picker-BmLb22jd.js.map} +1 -1
  49. package/dist/chunks/{date-popup-C2FLIETP.js → date-popup-7ZzVxhY1.js} +4 -4
  50. package/dist/chunks/{date-popup-C2FLIETP.js.map → date-popup-7ZzVxhY1.js.map} +1 -1
  51. package/dist/chunks/{de-aLc0-E5B.js → de-V_lN_KKk.js} +40 -4
  52. package/dist/chunks/de-V_lN_KKk.js.map +1 -0
  53. package/dist/chunks/delta-BCIXqi3O.js +36 -0
  54. package/dist/chunks/delta-BCIXqi3O.js.map +1 -0
  55. package/dist/chunks/{dialog-DhT0sDr6.js → dialog-C3CMOFxU.js} +4 -4
  56. package/dist/chunks/{dialog-DhT0sDr6.js.map → dialog-C3CMOFxU.js.map} +1 -1
  57. package/dist/chunks/{disclosure-DDSekEH6.js → disclosure-DhMvGSll.js} +2 -2
  58. package/dist/chunks/{disclosure-DDSekEH6.js.map → disclosure-DhMvGSll.js.map} +1 -1
  59. package/dist/chunks/{display-options-CRZO-ODl.js → display-options-BTFqLSJX.js} +9 -9
  60. package/dist/chunks/{display-options-CRZO-ODl.js.map → display-options-BTFqLSJX.js.map} +1 -1
  61. package/dist/chunks/{domain-aTOiqhIX.js → domain-DtP6QrOA.js} +9 -9
  62. package/dist/chunks/{domain-aTOiqhIX.js.map → domain-DtP6QrOA.js.map} +1 -1
  63. package/dist/chunks/{empty-DWXE3-2p.js → empty-BSAHpS5Q.js} +2 -2
  64. package/dist/chunks/{empty-DWXE3-2p.js.map → empty-BSAHpS5Q.js.map} +1 -1
  65. package/dist/chunks/{field-CRbWDIsH.js → field-ng87P1GV.js} +2 -2
  66. package/dist/chunks/{field-CRbWDIsH.js.map → field-ng87P1GV.js.map} +1 -1
  67. package/dist/chunks/{figure-C2WlBeYZ.js → figure-_uZS1Y52.js} +3 -3
  68. package/dist/chunks/{figure-C2WlBeYZ.js.map → figure-_uZS1Y52.js.map} +1 -1
  69. package/dist/chunks/{filter-chip-hGC4Okb0.js → filter-chip-CQO2lHeZ.js} +6 -6
  70. package/dist/chunks/{filter-chip-hGC4Okb0.js.map → filter-chip-CQO2lHeZ.js.map} +1 -1
  71. package/dist/chunks/{filter-row-BcBy7gxN.js → filter-row-Bs2lFT67.js} +2 -2
  72. package/dist/chunks/{filter-row-BcBy7gxN.js.map → filter-row-Bs2lFT67.js.map} +1 -1
  73. package/dist/chunks/{flow-T4mRzmsP.js → flow-BGFXfXgJ.js} +3 -3
  74. package/dist/chunks/{flow-T4mRzmsP.js.map → flow-BGFXfXgJ.js.map} +1 -1
  75. package/dist/chunks/{heading-Dua_i106.js → heading-wBU2QK4s.js} +2 -2
  76. package/dist/chunks/{heading-Dua_i106.js.map → heading-wBU2QK4s.js.map} +1 -1
  77. package/dist/chunks/{icon-DI6L-F9F.js → icon-CPiYZMTw.js} +2 -2
  78. package/dist/chunks/{icon-DI6L-F9F.js.map → icon-CPiYZMTw.js.map} +1 -1
  79. package/dist/chunks/icon-lgMMe3zk.js +108 -0
  80. package/dist/chunks/icon-lgMMe3zk.js.map +1 -0
  81. package/dist/chunks/identity-DCghs4Wp.js +872 -0
  82. package/dist/chunks/identity-DCghs4Wp.js.map +1 -0
  83. package/dist/chunks/{input-DHrCmxvX.js → input-QQR4KS9D.js} +5 -5
  84. package/dist/chunks/{input-DHrCmxvX.js.map → input-QQR4KS9D.js.map} +1 -1
  85. package/dist/chunks/{input-group-6LrjOci-.js → input-group-A2mru3OM.js} +4 -4
  86. package/dist/chunks/{input-group-6LrjOci-.js.map → input-group-A2mru3OM.js.map} +1 -1
  87. package/dist/chunks/{input-Ia8Mqd8q.js → input-iSaRkw-V.js} +5 -5
  88. package/dist/chunks/{input-Ia8Mqd8q.js.map → input-iSaRkw-V.js.map} +1 -1
  89. package/dist/chunks/{iso-field-CKN-M0PC.js → iso-field-D2CISQaB.js} +2 -2
  90. package/dist/chunks/{iso-field-CKN-M0PC.js.map → iso-field-D2CISQaB.js.map} +1 -1
  91. package/dist/chunks/{json-view-B6NjVdYp.js → json-view-DeHSFq-2.js} +9 -12
  92. package/dist/chunks/json-view-DeHSFq-2.js.map +1 -0
  93. package/dist/chunks/{kaeso-CE3QS6Xl.js → kaeso-Bs1aLSTp.js} +128 -124
  94. package/dist/chunks/kaeso-Bs1aLSTp.js.map +1 -0
  95. package/dist/chunks/kaeso-theme-BIgOZi41.js +299 -0
  96. package/dist/chunks/kaeso-theme-BIgOZi41.js.map +1 -0
  97. package/dist/chunks/{kbd-CFkkPtOm.js → kbd-xC3k90CH.js} +2 -2
  98. package/dist/chunks/{kbd-CFkkPtOm.js.map → kbd-xC3k90CH.js.map} +1 -1
  99. package/dist/chunks/{key-value-BsnQl9_-.js → key-value-DKW2q0zt.js} +4 -4
  100. package/dist/chunks/{key-value-BsnQl9_-.js.map → key-value-DKW2q0zt.js.map} +1 -1
  101. package/dist/chunks/{link-jtnw0XQV.js → link-CWYlF_dE.js} +3 -3
  102. package/dist/chunks/{link-jtnw0XQV.js.map → link-CWYlF_dE.js.map} +1 -1
  103. package/dist/chunks/{list-Ch4Y7IZk.js → list-CT7yIoA5.js} +9 -9
  104. package/dist/chunks/{list-Ch4Y7IZk.js.map → list-CT7yIoA5.js.map} +1 -1
  105. package/dist/chunks/{loader-2Tsz3V9j.js → loader-D27YO1c3.js} +3 -3
  106. package/dist/chunks/{loader-2Tsz3V9j.js.map → loader-D27YO1c3.js.map} +1 -1
  107. package/dist/chunks/{loader-C9qbRLAi.js → loader-DtZd9btk.js} +2 -2
  108. package/dist/chunks/{loader-C9qbRLAi.js.map → loader-DtZd9btk.js.map} +1 -1
  109. package/dist/chunks/{logo-DlxX9yDU.js → logo-DTqTs3vV.js} +3 -3
  110. package/dist/chunks/{logo-DlxX9yDU.js.map → logo-DTqTs3vV.js.map} +1 -1
  111. package/dist/chunks/markdown-BlIl3LuV.js +325 -0
  112. package/dist/chunks/markdown-BlIl3LuV.js.map +1 -0
  113. package/dist/chunks/{menu-DxmOaBVN.js → menu-D3tUjkCM.js} +4 -4
  114. package/dist/chunks/{menu-DxmOaBVN.js.map → menu-D3tUjkCM.js.map} +1 -1
  115. package/dist/chunks/{meter-CJqtlPjV.js → meter-wcH0LXva.js} +4 -4
  116. package/dist/chunks/{meter-CJqtlPjV.js.map → meter-wcH0LXva.js.map} +1 -1
  117. package/dist/chunks/{nav-sheet-DwAJdFCD.js → nav-sheet-CteQQuMz.js} +3 -3
  118. package/dist/chunks/{nav-sheet-DwAJdFCD.js.map → nav-sheet-CteQQuMz.js.map} +1 -1
  119. package/dist/chunks/{nav-wordmark-3Bvc2UI6.js → nav-wordmark-DR4Glswt.js} +2 -2
  120. package/dist/chunks/{nav-wordmark-3Bvc2UI6.js.map → nav-wordmark-DR4Glswt.js.map} +1 -1
  121. package/dist/chunks/{page-header-DIZCC9oT.js → page-header-JWk6TQNN.js} +5 -5
  122. package/dist/chunks/{page-header-DIZCC9oT.js.map → page-header-JWk6TQNN.js.map} +1 -1
  123. package/dist/chunks/{pagination-DFxZ2d3u.js → pagination-BT-lQc45.js} +3 -3
  124. package/dist/chunks/{pagination-DFxZ2d3u.js.map → pagination-BT-lQc45.js.map} +1 -1
  125. package/dist/chunks/{picker-popover-tBL7TLJC.js → picker-popover-Bb-2Amjw.js} +8 -7
  126. package/dist/chunks/{picker-popover-tBL7TLJC.js.map → picker-popover-Bb-2Amjw.js.map} +1 -1
  127. package/dist/chunks/{popover-DRvCfHVs.js → popover-CAoo5c59.js} +2 -2
  128. package/dist/chunks/{popover-DRvCfHVs.js.map → popover-CAoo5c59.js.map} +1 -1
  129. package/dist/chunks/provider-marks-BVbDRIv-.js +19 -0
  130. package/dist/chunks/provider-marks-BVbDRIv-.js.map +1 -0
  131. package/dist/chunks/{qr-code-HlCtD0aP.js → qr-code-DOsFDNiz.js} +2 -2
  132. package/dist/chunks/{qr-code-HlCtD0aP.js.map → qr-code-DOsFDNiz.js.map} +1 -1
  133. package/dist/chunks/{radio-BNZqKDn4.js → radio-DfOB6J3Z.js} +3 -3
  134. package/dist/chunks/{radio-BNZqKDn4.js.map → radio-DfOB6J3Z.js.map} +1 -1
  135. package/dist/chunks/{range-popup-H1040MdD.js → range-popup-iBru5bpM.js} +7 -7
  136. package/dist/chunks/{range-popup-H1040MdD.js.map → range-popup-iBru5bpM.js.map} +1 -1
  137. package/dist/chunks/{reasoning-frame-BuhiGUBq.js → reasoning-frame-DBIq2SMT.js} +3 -3
  138. package/dist/chunks/{reasoning-frame-BuhiGUBq.js.map → reasoning-frame-DBIq2SMT.js.map} +1 -1
  139. package/dist/chunks/{release-art-BeseUxSj.js → release-art-D7Iq6Qhv.js} +25 -25
  140. package/dist/chunks/release-art-D7Iq6Qhv.js.map +1 -0
  141. package/dist/chunks/{rights-QyZEMemh.js → rights-DDGgi823.js} +10 -10
  142. package/dist/chunks/{rights-QyZEMemh.js.map → rights-DDGgi823.js.map} +1 -1
  143. package/dist/chunks/rolling-number-ea1iiycC.js +41 -0
  144. package/dist/chunks/rolling-number-ea1iiycC.js.map +1 -0
  145. package/dist/chunks/{scroll-area-BvxoHcHS.js → scroll-area-D-ykAChX.js} +2 -2
  146. package/dist/chunks/{scroll-area-BvxoHcHS.js.map → scroll-area-D-ykAChX.js.map} +1 -1
  147. package/dist/chunks/{section-Dd5vmuR1.js → section-BmR6_Wts.js} +3 -3
  148. package/dist/chunks/{section-Dd5vmuR1.js.map → section-BmR6_Wts.js.map} +1 -1
  149. package/dist/chunks/{segmented-Clv2P1AB.js → segmented-BJJHHn0N.js} +17 -67
  150. package/dist/chunks/segmented-BJJHHn0N.js.map +1 -0
  151. package/dist/chunks/{select-DU6O_iW6.js → select-Ch4u5oIg.js} +4 -4
  152. package/dist/chunks/{select-DU6O_iW6.js.map → select-Ch4u5oIg.js.map} +1 -1
  153. package/dist/chunks/{separator-DMXz46Ge.js → separator-B2CT4qia.js} +2 -2
  154. package/dist/chunks/{separator-DMXz46Ge.js.map → separator-B2CT4qia.js.map} +1 -1
  155. package/dist/chunks/{settings-CWvZ9h4g.js → settings-BnheJGYB.js} +3 -3
  156. package/dist/chunks/{settings-CWvZ9h4g.js.map → settings-BnheJGYB.js.map} +1 -1
  157. package/dist/chunks/{sheet-DrxdaMjN.js → sheet-K6qa1kRf.js} +3 -3
  158. package/dist/chunks/{sheet-DrxdaMjN.js.map → sheet-K6qa1kRf.js.map} +1 -1
  159. package/dist/chunks/shiki-CRJpi_Hd.js +99 -0
  160. package/dist/chunks/shiki-CRJpi_Hd.js.map +1 -0
  161. package/dist/chunks/{sidebar-ZDmAFOVM.js → sidebar-D7eSzz33.js} +8 -8
  162. package/dist/chunks/{sidebar-ZDmAFOVM.js.map → sidebar-D7eSzz33.js.map} +1 -1
  163. package/dist/chunks/{sidebar-menu-Iq_ADCGg.js → sidebar-menu-f5NMgTdE.js} +2 -2
  164. package/dist/chunks/{sidebar-menu-Iq_ADCGg.js.map → sidebar-menu-f5NMgTdE.js.map} +1 -1
  165. package/dist/chunks/{skeleton-E7yXpAaT.js → skeleton-Bx-vRJdy.js} +2 -2
  166. package/dist/chunks/{skeleton-E7yXpAaT.js.map → skeleton-Bx-vRJdy.js.map} +1 -1
  167. package/dist/chunks/{slider-DoJfRjX1.js → slider-BuEZfzNB.js} +2 -2
  168. package/dist/chunks/{slider-DoJfRjX1.js.map → slider-BuEZfzNB.js.map} +1 -1
  169. package/dist/chunks/{stat-7VFJ8QW-.js → stat-gR4hFqO8.js} +68 -81
  170. package/dist/chunks/stat-gR4hFqO8.js.map +1 -0
  171. package/dist/chunks/{status-BvzxKVpT.js → status-CejTEkqR.js} +3 -3
  172. package/dist/chunks/{status-BvzxKVpT.js.map → status-CejTEkqR.js.map} +1 -1
  173. package/dist/chunks/{swap-text-BgdoVD3v.js → swap-text-CxWcVD0a.js} +2 -2
  174. package/dist/chunks/{swap-text-BgdoVD3v.js.map → swap-text-CxWcVD0a.js.map} +1 -1
  175. package/dist/chunks/swap-value-DMEInk8V.js +30 -0
  176. package/dist/chunks/swap-value-DMEInk8V.js.map +1 -0
  177. package/dist/chunks/{switch-lxwwqvbG.js → switch-CklvBjKu.js} +4 -4
  178. package/dist/chunks/{switch-lxwwqvbG.js.map → switch-CklvBjKu.js.map} +1 -1
  179. package/dist/chunks/{table-6rmKwlCw.js → table-BTUUwlXD.js} +2 -2
  180. package/dist/chunks/{table-6rmKwlCw.js.map → table-BTUUwlXD.js.map} +1 -1
  181. package/dist/chunks/{tabs-BZj11L5c.js → tabs-D0I6Jkd4.js} +3 -3
  182. package/dist/chunks/{tabs-BZj11L5c.js.map → tabs-D0I6Jkd4.js.map} +1 -1
  183. package/dist/chunks/{tag-Bnc0j1jP.js → tag-BGvgGsvr.js} +4 -4
  184. package/dist/chunks/{tag-Bnc0j1jP.js.map → tag-BGvgGsvr.js.map} +1 -1
  185. package/dist/chunks/{text-D_rqwSaG.js → text-ChUk0Z46.js} +3 -3
  186. package/dist/chunks/{text-D_rqwSaG.js.map → text-ChUk0Z46.js.map} +1 -1
  187. package/dist/chunks/{textarea-BzMbsYD7.js → textarea-Bmj2Yk79.js} +5 -5
  188. package/dist/chunks/{textarea-BzMbsYD7.js.map → textarea-Bmj2Yk79.js.map} +1 -1
  189. package/dist/chunks/{theme-image-DjI_Zymf.js → theme-image-Bk97CYp8.js} +4 -4
  190. package/dist/chunks/{theme-image-DjI_Zymf.js.map → theme-image-Bk97CYp8.js.map} +1 -1
  191. package/dist/chunks/{theme-menu-BLNYvmuB.js → theme-menu-DvtuCuuN.js} +3 -3
  192. package/dist/chunks/{theme-menu-BLNYvmuB.js.map → theme-menu-DvtuCuuN.js.map} +1 -1
  193. package/dist/chunks/{thumbnail-CRdk7mvC.js → thumbnail-D2hD8aEk.js} +2 -2
  194. package/dist/chunks/{thumbnail-CRdk7mvC.js.map → thumbnail-D2hD8aEk.js.map} +1 -1
  195. package/dist/chunks/thumbnail-DadL1nPU.js +71 -0
  196. package/dist/chunks/thumbnail-DadL1nPU.js.map +1 -0
  197. package/dist/chunks/{timeline-CWQdqBVv.js → timeline-BQm5Q-Ul.js} +3 -3
  198. package/dist/chunks/{timeline-CWQdqBVv.js.map → timeline-BQm5Q-Ul.js.map} +1 -1
  199. package/dist/chunks/timeseries-B_Z3nNn6.js +403 -0
  200. package/dist/chunks/timeseries-B_Z3nNn6.js.map +1 -0
  201. package/dist/chunks/{toast-C78w9ewo.js → toast-CSlvlu-r.js} +5 -5
  202. package/dist/chunks/{toast-C78w9ewo.js.map → toast-CSlvlu-r.js.map} +1 -1
  203. package/dist/chunks/{toc-BHf7IbFL.js → toc-Cu2QJL5A.js} +2 -2
  204. package/dist/chunks/{toc-BHf7IbFL.js.map → toc-Cu2QJL5A.js.map} +1 -1
  205. package/dist/chunks/{toolbar-CjykT3ZP.js → toolbar-DE-R3sjA.js} +2 -2
  206. package/dist/chunks/{toolbar-CjykT3ZP.js.map → toolbar-DE-R3sjA.js.map} +1 -1
  207. package/dist/chunks/tooltip-C8ehtFju.js +104 -0
  208. package/dist/chunks/tooltip-C8ehtFju.js.map +1 -0
  209. package/dist/chunks/{tooltip-F3l2S3Ad.js → tooltip-SZvkUaq9.js} +4 -4
  210. package/dist/chunks/{tooltip-F3l2S3Ad.js.map → tooltip-SZvkUaq9.js.map} +1 -1
  211. package/dist/chunks/{tooltip-root-Co-dVnZj.js → tooltip-root-CrLuOT4j.js} +4 -4
  212. package/dist/chunks/{tooltip-root-Co-dVnZj.js.map → tooltip-root-CrLuOT4j.js.map} +1 -1
  213. package/dist/chunks/{truncated-CzAJxfAD.js → truncated-C0A4AU-U.js} +3 -3
  214. package/dist/chunks/{truncated-CzAJxfAD.js.map → truncated-C0A4AU-U.js.map} +1 -1
  215. package/dist/chunks/use-indicator-C1ovED2B.js +57 -0
  216. package/dist/chunks/use-indicator-C1ovED2B.js.map +1 -0
  217. package/dist/chunks/{visually-hidden-UprFAwfn.js → visually-hidden-CLTH1HKD.js} +2 -2
  218. package/dist/chunks/{visually-hidden-UprFAwfn.js.map → visually-hidden-CLTH1HKD.js.map} +1 -1
  219. package/dist/chunks/{zh-CN-RCSVKiQh.js → zh-CN-Dv7n5mAr.js} +40 -4
  220. package/dist/chunks/zh-CN-Dv7n5mAr.js.map +1 -0
  221. package/dist/components/app-frame.js +1 -1
  222. package/dist/components/avatar.js +1 -1
  223. package/dist/components/badge.js +1 -1
  224. package/dist/components/banner.js +1 -1
  225. package/dist/components/button-group.js +1 -1
  226. package/dist/components/button.js +1 -1
  227. package/dist/components/calendar.js +1 -1
  228. package/dist/components/charts/bar.js +20 -19
  229. package/dist/components/charts/bar.js.map +1 -1
  230. package/dist/components/charts/donut.js +16 -15
  231. package/dist/components/charts/donut.js.map +1 -1
  232. package/dist/components/charts/heatmap.js +3 -2
  233. package/dist/components/charts/heatmap.js.map +1 -1
  234. package/dist/components/charts/sankey.js +11 -10
  235. package/dist/components/charts/sankey.js.map +1 -1
  236. package/dist/components/charts/sparkline.js +114 -42
  237. package/dist/components/charts/sparkline.js.map +1 -1
  238. package/dist/components/charts/timeseries.js +1 -1
  239. package/dist/components/charts.js +3 -3
  240. package/dist/components/checkbox.js +1 -1
  241. package/dist/components/code-block.js +5 -4
  242. package/dist/components/code.js +1 -1
  243. package/dist/components/collapsible.js +1 -1
  244. package/dist/components/combobox.js +1 -1
  245. package/dist/components/command-palette.js +1 -1
  246. package/dist/components/copy-button.js +1 -1
  247. package/dist/components/dashboard/legend.js +43 -0
  248. package/dist/components/dashboard/legend.js.map +1 -0
  249. package/dist/components/dashboard/metric-tabs.js +140 -0
  250. package/dist/components/dashboard/metric-tabs.js.map +1 -0
  251. package/dist/components/dashboard/model-card.js +82 -0
  252. package/dist/components/dashboard/model-card.js.map +1 -0
  253. package/dist/components/dashboard/rank-list.js +107 -0
  254. package/dist/components/dashboard/rank-list.js.map +1 -0
  255. package/dist/components/dashboard.js +7 -0
  256. package/dist/components/data-table.js +1 -1
  257. package/dist/components/date-picker.js +1 -1
  258. package/dist/components/dialog.js +1 -1
  259. package/dist/components/display-options.js +1 -1
  260. package/dist/components/empty.js +1 -1
  261. package/dist/components/field.js +1 -1
  262. package/dist/components/figure.js +1 -1
  263. package/dist/components/filter-chip.js +1 -1
  264. package/dist/components/filter-row.js +1 -1
  265. package/dist/components/flow-canvas.js +4 -4
  266. package/dist/components/flow.js +1 -1
  267. package/dist/components/heading.js +1 -1
  268. package/dist/components/icon.js +2 -2
  269. package/dist/components/input.js +3 -3
  270. package/dist/components/kaeso/conversation.js +37 -8
  271. package/dist/components/kaeso/conversation.js.map +1 -1
  272. package/dist/components/kaeso/identity.js +1 -1
  273. package/dist/components/kaeso/moments.js +5 -5
  274. package/dist/components/kaeso/moments.js.map +1 -1
  275. package/dist/components/kaeso/rights.js +1 -1
  276. package/dist/components/kaeso/usage.js +17 -16
  277. package/dist/components/kaeso/usage.js.map +1 -1
  278. package/dist/components/kaeso.js +3 -3
  279. package/dist/components/kbd.js +1 -1
  280. package/dist/components/key-value.js +1 -1
  281. package/dist/components/link.js +1 -1
  282. package/dist/components/list.js +1 -1
  283. package/dist/components/loader.js +2 -2
  284. package/dist/components/logo.js +1 -1
  285. package/dist/components/markdown.js +2 -2
  286. package/dist/components/menu.js +1 -1
  287. package/dist/components/meter.js +1 -1
  288. package/dist/components/page-header.js +1 -1
  289. package/dist/components/pagination.js +1 -1
  290. package/dist/components/playground.js +911 -545
  291. package/dist/components/playground.js.map +1 -1
  292. package/dist/components/popover.js +1 -1
  293. package/dist/components/qr-code.js +1 -1
  294. package/dist/components/radio.js +1 -1
  295. package/dist/components/release-art.js +1 -1
  296. package/dist/components/scroll-area.js +1 -1
  297. package/dist/components/section.js +1 -1
  298. package/dist/components/segmented.js +1 -1
  299. package/dist/components/select.js +1 -1
  300. package/dist/components/separator.js +1 -1
  301. package/dist/components/settings.js +1 -1
  302. package/dist/components/sheet.js +1 -1
  303. package/dist/components/sidebar.js +1 -1
  304. package/dist/components/skeleton.js +1 -1
  305. package/dist/components/slider.js +1 -1
  306. package/dist/components/stat.js +4 -1
  307. package/dist/components/status.js +1 -1
  308. package/dist/components/swap-text.js +1 -1
  309. package/dist/components/switch.js +1 -1
  310. package/dist/components/table.js +1 -1
  311. package/dist/components/tabs.js +1 -1
  312. package/dist/components/tag.js +1 -1
  313. package/dist/components/text.js +1 -1
  314. package/dist/components/theme-image.js +1 -1
  315. package/dist/components/theme-menu.js +1 -1
  316. package/dist/components/thumbnail.js +3 -1
  317. package/dist/components/timeline.js +1 -1
  318. package/dist/components/toast.js +1 -1
  319. package/dist/components/toc.js +1 -1
  320. package/dist/components/toolbar.js +1 -1
  321. package/dist/components/tooltip.js +1 -1
  322. package/dist/components/visually-hidden.js +1 -1
  323. package/dist/i18n-provider.js +1 -1
  324. package/dist/index.js +112 -102
  325. package/dist/kaeso.css +97 -10
  326. package/dist/styles.css +1 -1
  327. package/dist/types/components/button/button.d.ts +1 -0
  328. package/dist/types/components/button/docs.d.ts +1 -0
  329. package/dist/types/components/charts/core.d.ts +3 -27
  330. package/dist/types/components/charts/docs.d.ts +4 -0
  331. package/dist/types/components/charts/sparkline.d.ts +4 -0
  332. package/dist/types/components/charts/timeseries.d.ts +2 -0
  333. package/dist/types/components/charts/tooltip.d.ts +28 -0
  334. package/dist/types/components/code-block/highlighter.d.ts +9 -18
  335. package/dist/types/components/code-block/index.d.ts +1 -1
  336. package/dist/types/components/code-block/kaeso-theme.d.ts +74 -8
  337. package/dist/types/components/code-block/shiki.d.ts +18 -0
  338. package/dist/types/components/code-block/tones.d.ts +64 -0
  339. package/dist/types/components/copy-button/copy-button.d.ts +4 -0
  340. package/dist/types/components/dashboard/dashboard.d.ts +61 -0
  341. package/dist/types/components/dashboard/docs.d.ts +92 -0
  342. package/dist/types/components/dashboard/index.d.ts +6 -0
  343. package/dist/types/components/dashboard/legend.d.ts +11 -0
  344. package/dist/types/components/dashboard/metric-tabs.d.ts +22 -0
  345. package/dist/types/components/dashboard/model-card.d.ts +23 -0
  346. package/dist/types/components/dashboard/rank-list.d.ts +21 -0
  347. package/dist/types/components/dashboard/swap-value.d.ts +7 -0
  348. package/dist/types/components/field/field.d.ts +1 -1
  349. package/dist/types/components/kaeso/conversation.d.ts +8 -0
  350. package/dist/types/components/kaeso/docs.d.ts +3 -0
  351. package/dist/types/components/kaeso/identity.d.ts +3 -0
  352. package/dist/types/components/kaeso/provider-picker.d.ts +4 -1
  353. package/dist/types/components/markdown/index.d.ts +1 -1
  354. package/dist/types/components/markdown/markdown.d.ts +9 -2
  355. package/dist/types/components/playground/attachments.d.ts +32 -0
  356. package/dist/types/components/playground/compare-grid.d.ts +1 -0
  357. package/dist/types/components/playground/composer.d.ts +8 -2
  358. package/dist/types/components/playground/docs.d.ts +36 -10
  359. package/dist/types/components/playground/index.d.ts +5 -3
  360. package/dist/types/components/playground/media-response.d.ts +46 -0
  361. package/dist/types/components/playground/parameter-panel.d.ts +17 -0
  362. package/dist/types/components/playground/response-metrics.d.ts +3 -3
  363. package/dist/types/components/playground/response-view.d.ts +2 -0
  364. package/dist/types/components/release-art/docs.d.ts +1 -0
  365. package/dist/types/components/release-art/release-art.d.ts +1 -0
  366. package/dist/types/components/stat/delta.d.ts +28 -0
  367. package/dist/types/components/stat/docs.d.ts +13 -0
  368. package/dist/types/components/stat/index.d.ts +4 -0
  369. package/dist/types/components/stat/rolling-number.d.ts +7 -0
  370. package/dist/types/components/stat/stat.d.ts +1 -1
  371. package/dist/types/components/thumbnail/docs.d.ts +11 -0
  372. package/dist/types/components/thumbnail/index.d.ts +2 -0
  373. package/dist/types/components/thumbnail/media-view.d.ts +33 -0
  374. package/dist/types/hooks/use-sticky-top.d.ts +2 -0
  375. package/dist/types/icons/groups.d.ts +2 -2
  376. package/dist/types/icons/vocabulary.d.ts +30 -0
  377. package/dist/types/index.d.ts +1 -0
  378. package/dist/types/utils/index.d.ts +1 -0
  379. package/dist/types/utils/provider-marks.d.ts +11 -0
  380. package/dist/utils.js +7 -6
  381. package/foundations/color.md +24 -2
  382. package/foundations/motion.md +1 -0
  383. package/package.json +2 -2
  384. package/dist/chunks/button-CcXKlcXd.js.map +0 -1
  385. package/dist/chunks/cn-BUMD6lNz.js.map +0 -1
  386. package/dist/chunks/code-block-8rW57rUV.js +0 -345
  387. package/dist/chunks/code-block-8rW57rUV.js.map +0 -1
  388. package/dist/chunks/code-block-CbVLyIr-.js.map +0 -1
  389. package/dist/chunks/copy-button-CK-ddxCg.js.map +0 -1
  390. package/dist/chunks/core-nqsBmktJ.js +0 -496
  391. package/dist/chunks/core-nqsBmktJ.js.map +0 -1
  392. package/dist/chunks/data-table-FQlJ_Ae4.js +0 -605
  393. package/dist/chunks/data-table-FQlJ_Ae4.js.map +0 -1
  394. package/dist/chunks/de-aLc0-E5B.js.map +0 -1
  395. package/dist/chunks/icon-CPNoEw5s.js +0 -102
  396. package/dist/chunks/icon-CPNoEw5s.js.map +0 -1
  397. package/dist/chunks/identity-CpM7nAZ3.js +0 -494
  398. package/dist/chunks/identity-CpM7nAZ3.js.map +0 -1
  399. package/dist/chunks/json-view-B6NjVdYp.js.map +0 -1
  400. package/dist/chunks/kaeso-CE3QS6Xl.js.map +0 -1
  401. package/dist/chunks/markdown-8YRbGHeS.js +0 -338
  402. package/dist/chunks/markdown-8YRbGHeS.js.map +0 -1
  403. package/dist/chunks/release-art-BeseUxSj.js.map +0 -1
  404. package/dist/chunks/segmented-Clv2P1AB.js.map +0 -1
  405. package/dist/chunks/stat-7VFJ8QW-.js.map +0 -1
  406. package/dist/chunks/timeseries-Cj50XALJ.js +0 -381
  407. package/dist/chunks/timeseries-Cj50XALJ.js.map +0 -1
  408. package/dist/chunks/zh-CN-RCSVKiQh.js.map +0 -1
  409. package/dist/types/components/playground/prompt-suggestions.d.ts +0 -24
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component registry
2
2
 
3
- Version 0.6.0-rc.8. Generated from the component types, their descriptions and variants; do not edit.
3
+ Version 0.6.0. Generated from the component types, their descriptions and variants; do not edit.
4
4
 
5
5
  ## app-frame
6
6
 
@@ -112,6 +112,7 @@ The button: a pill with a label, or, with `icon` and no label, a circle that sho
112
112
  | `count` | `number` | | A count after the label. |
113
113
  | `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
114
114
  | `disabledReason` | `string` | | Why the button is disabled, shown as a tooltip and read out as the button's description. The button stays focusable so people can reach it. |
115
+ | `download` | `string` | | With `href`, saves the file the link points to under this name instead of opening it, such as a generated image (`blob:` and `data:` links included). |
115
116
  | `fullWidth` | `boolean` | | Fills the width of its container. |
116
117
  | `href` | `string` | | Renders a link that looks like the button. |
117
118
  | `icon` | `IconSvgElement` | | Makes it an icon-only circle with this icon. Give it an `aria-label`: the name screen readers read and the tooltip shows. |
@@ -282,6 +283,10 @@ A small line chart of one series, inline beside a value, with its last point mar
282
283
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
283
284
  | `color` | `string` | `var(--k-viz-1)` | The line's color (`var(--k-viz-1)` by default). Pass `seriesColor(id)` to match the series elsewhere. |
284
285
  | `fluid` | `boolean` | | Fills the container's width at 32px high, without the last point's dot, as in a stat tile. Otherwise it is 80×24. |
286
+ | `formatValue` | `((v: number) => string)` | | Writes a value in the tooltip, such as "1,467" or "$2.06". |
287
+ | `height` | `number` | | The height of a fluid sparkline in px; 32 by default. |
288
+ | `labels` | `string[]` | | One name per value, such as each day; with them the sparkline can be inspected by pointer or arrow keys, with a crosshair and a tooltip. |
289
+ | `seriesLabel` | `string` | | What the values are, named in the tooltip. |
285
290
 
286
291
  ### TimeseriesChart
287
292
 
@@ -388,7 +393,7 @@ Inline code: Geist Mono 13 on fill-1.
388
393
 
389
394
  ### CodeBlock
390
395
 
391
- Highlighted code on a well: Kaeso's monochrome theme, copy in the header with a title or tabs and on hover without, tabs, line numbers, collapse with a fade at the cut. Long lines scroll sideways inside 16px of padding at both ends, and the code fades out at an edge with more to scroll to.
396
+ Highlighted code on a well in Kaeso's syntax palette, in every common language, each loaded the first time a block shows it: copy in the header with a title or tabs and on hover without, tabs, line numbers, collapse with a fade at the cut. Long lines scroll sideways inside 16px of padding at both ends, and the code fades out at an edge with more to scroll to.
392
397
 
393
398
  | Prop | Type | Default | Description |
394
399
  |---|---|---|---|
@@ -397,7 +402,7 @@ Highlighted code on a well: Kaeso's monochrome theme, copy in the header with a
397
402
  | `collapseAfter` | `number` | `24` | Collapse beyond this many lines (24 by default; 0 never collapses). |
398
403
  | `copy` | `boolean` | `true` | Hide the copy circle. |
399
404
  | `highlightLines` | `number[]` | `[]` | 1-based line numbers to highlight. |
400
- | `lang` | `CodeLang` | `ts` | The language of the code, for highlighting. |
405
+ | `lang` | `CodeLang` | `ts` | The language to highlight (`ts` by default), or `text` to show the code plain. `resolveCodeLang` turns a Markdown fence name such as `py` or `sh` into one. |
401
406
  | `lineNumbers` | `boolean` | | Shows line numbers. |
402
407
  | `onTabChange` | `((label: string) => void)` | | Called with the label of the tab a person chooses, to remember it. |
403
408
  | `surface` | `"well" \| "plain"` | `well` | On a filled well (`well`) or on the panel itself (`plain`). |
@@ -417,7 +422,7 @@ Two versions of a text side by side in one column: removed lines on red, added l
417
422
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
418
423
  | `context` | `number` | `3` | Unchanged lines kept around each change before the rest folds (3 by default). |
419
424
  | `copy` | `boolean` | `true` | Hide the copy circle, which copies the diff with + and - markers. |
420
- | `lang` | `CodeLang` | `text` | The language of both versions, for highlighting (`text` by default). |
425
+ | `lang` | `CodeLang` | `text` | The language of both versions to highlight (`text` by default). `resolveCodeLang` turns a fence name such as `py` or `sh` into one. |
421
426
  | `lineNumbers` | `boolean` | | Shows the old and the new line numbers. |
422
427
  | `surface` | `"well" \| "plain"` | `well` | On a filled well (`well`) or on the panel itself (`plain`). |
423
428
  | `title` | `ReactNode` | | A name in the title bar, beside the count of added and removed lines. |
@@ -551,7 +556,7 @@ A pill input with a filtered list: matched characters highlighted, async, chips
551
556
  `import { CopyButton } from "@logicplanes/kaeso-ui/copy-button";`
552
557
 
553
558
  - **display** (copy_button): `icon` (default) — A circle that copies a value (default); `inline` — Mono text in a sentence or a row that copies itself on click; `field` — A read-only pill field: the value in mono and a copy circle inside
554
- - **variant** (copy_button): `ghost` (default) — Inside fields and wells (default); `secondary` — On its own
559
+ - **variant** (copy_button): `ghost` (default) — Inside fields and wells (default); `quiet` — Secondary text until hovered: under a response, beside its metrics; `secondary` — On its own
555
560
  - **size** (copy_button): `xs` — 24px circle: inside rows and chips; `sm` (default) — 32px circle: toolbars and headers (default); `md` — 36px circle: beside md controls; `lg` — 40px circle; `xl` — 48px circle
556
561
 
557
562
  ### CopyButton
@@ -568,7 +573,128 @@ Copies a value, with a check and "Copied" for 1.2s: a circle (the default), a re
568
573
  | `label` | `string` | | What is being copied, for the accessible name and the tooltip: "Copy key". Defaults to "Copy" in the provider's language. |
569
574
  | `onCopy` | `((value: string) => void)` | | Called with the copied text. |
570
575
  | `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `sm` | The circle's height, or a field's: 32px (`sm`) by default. |
571
- | `variant` | `"secondary" \| "ghost"` | `ghost` | A filled circle (`secondary`) or a quiet one (`ghost`). |
576
+ | `variant` | `"secondary" \| "ghost" \| "quiet"` | `ghost` | A filled circle (`secondary`), a ghost (`ghost`), or a ghost in secondary text until hovered (`quiet`). |
577
+
578
+ ## dashboard
579
+
580
+ `import { Announcement, CellInset, Dashboard, DashboardCell, Legend, MetricTabs, ModelCard, RankList, Readout } from "@logicplanes/kaeso-ui/dashboard";`
581
+
582
+ - **surface** (dashboard): `grid` (default) — Cells on one surface, split by hairlines like a StatGroup (default)
583
+ - **size** (readout): `md` (default) — 28/32: the cell's main number (default); `sm` — 20/28: a number beside another, under a small label
584
+
585
+ ### Announcement
586
+
587
+ One piece of news across the top of a home page: an eyebrow, a title, a line and an action beside its artwork, such as a new release with a flush `ReleaseArt`. The artwork leaves on narrow screens.
588
+
589
+ | Prop | Type | Default | Description |
590
+ |---|---|---|---|
591
+ | `title` * | `ReactNode` | | The news itself. |
592
+ | `actions` | `ReactNode` | | One or two buttons. |
593
+ | `art` | `ReactNode` | | The artwork on the right, 16:9 at 320px: a `ReleaseArt` with `flush`, so the whole cover shows. |
594
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
595
+ | `description` | `ReactNode` | | One line, two at most. |
596
+ | `eyebrow` | `ReactNode` | | What kind of news: "New release". |
597
+
598
+ ### CellInset
599
+
600
+ Places a chart, a meter or a note on the cell's text edge, 12px in from where rows start, so it lines up with the label and the number above.
601
+
602
+ | Prop | Type | Default | Description |
603
+ |---|---|---|---|
604
+ | `children` * | `ReactNode` | | What sits on the text edge. |
605
+ | `grow` | `boolean` | | Takes the cell's remaining height, so a chart or a note can sit at the bottom with `mt-auto`. |
606
+
607
+ ### Dashboard
608
+
609
+ An overview page's numbers, charts and lists on one raised surface split by hairlines, the way a `StatGroup` splits its tiles. As many columns from 1024px as `columns` says (twelve by default), one below it; each `DashboardCell` takes its span through `className` (`lg:col-span-2`). Put `MetricTabs` first, so the totals lead and pick what the chart beneath them shows.
610
+
611
+ | Prop | Type | Default | Description |
612
+ |---|---|---|---|
613
+ | `children` * | `ReactNode` | | `MetricTabs` and `DashboardCell`s. |
614
+ | `aria-label` | `string` | | The surface's accessible name, such as "Usage in the period". |
615
+ | `busy` | `boolean` | | Keeps the numbers on screen, a step back, while the next ones load. |
616
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
617
+ | `columns` | `4 \| 2 \| 3 \| 5 \| 6 \| 12` | `12` | Columns from 1024px. Give it as many as `MetricTabs` has tabs, and let every cell span whole tabs, so each hairline below continues a tab's edge; 12 for free layouts. |
618
+ | `headingLevel` | `2 \| 3` | `3` | The level of the cells' titles: 3 below a section's heading (the default), 2 when the page's title is the only heading above. |
619
+ | `wideColumns` | `4 \| 2 \| 3 \| 6 \| 12` | | Columns from 1280px, when the surface needs more room per cell than `columns` gives at 1024px: two at 1024px and four at 1280px keeps every cell wide enough to read. |
620
+
621
+ ### DashboardCell
622
+
623
+ One cell of a `Dashboard`: a quiet label, at most one or two ghost buttons beside it, and its content. Text and numbers sit on the cell's text edge through `Readout` and `CellInset`; `RankList` rows run from the cell's own edge so their hover fills line up with the label.
624
+
625
+ | Prop | Type | Default | Description |
626
+ |---|---|---|---|
627
+ | `actions` | `ReactNode` | | Ghost buttons that open the page behind the cell: "Request logs", "Limits". |
628
+ | `children` | `ReactNode` | | The cell's content: a `Readout`, then a chart, a meter or a `RankList`. |
629
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
630
+ | `href` | `string` | | Turns the title into a link with a chevron, to the page that tells the cell's whole story. |
631
+ | `title` | `ReactNode` | | What the cell shows: "Cache hit", "Models by requests". |
632
+
633
+ ### Legend
634
+
635
+ A chart's key: a solid line for this period, a dashed one for the period it is compared with. It says each series' total too, unless the totals already stand beside the chart.
636
+
637
+ | Prop | Type | Default | Description |
638
+ |---|---|---|---|
639
+ | `items` * | `LegendEntry[]` | | One entry per series: `label`, `color`, `dashed` for the comparison, and `value` for its total; leave `value` out when a tab above already says it. |
640
+
641
+ ### MetricTabs
642
+
643
+ The totals of a period as tabs across the top of a `Dashboard`: each says its label, its number and its change. The chosen one has an ink bar along its foot and decides what the chart below draws; arrow keys, Home and End move between them.
644
+
645
+ | Prop | Type | Default | Description |
646
+ |---|---|---|---|
647
+ | `aria-label` * | `string` | | The tabs' accessible name, such as "Metric to chart". |
648
+ | `items` * | `MetricTabItem[]` | | One tab per total: `id`, `label`, the formatted `value`, an optional `change` and a `detail` such as "vs. prior 30 days". |
649
+ | `onValueChange` * | `(id: string) => void` | | Called with the chosen tab's id. |
650
+ | `value` * | `string` | | The chosen tab's id. |
651
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
652
+ | `controls` | `string` | | The id of the chart the tabs drive. |
653
+ | `loading` | `boolean` | | While the totals load: every tab keeps its height and shows the number's shape. |
654
+ | `orientation` | `"horizontal" \| "vertical"` | `horizontal` | Across the top of the surface (`horizontal`), or in a side column (`vertical`) from 1280px and a two-by-two grid below it, each tab with its number on its own line and its trend underneath. |
655
+
656
+ ### ModelCard
657
+
658
+ A model worth a look, as a cell of a `Dashboard`: its provider's mark, name and id, a line about it, a few facts such as context and price, and one action.
659
+
660
+ | Prop | Type | Default | Description |
661
+ |---|---|---|---|
662
+ | `mark` * | `ReactNode` | | The provider's mark: a `ProviderBadge` at size `lg`. |
663
+ | `model` * | `string` | | The model's id, in mono. |
664
+ | `name` * | `string` | | The model's name. |
665
+ | `action` | `ReactNode` | | One button: "Add to this project", "Open in models". |
666
+ | `badge` | `ReactNode` | | A status beside the mark, such as "New". |
667
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
668
+ | `detail` | `ReactNode` | | One line about the model, such as when it was released. |
669
+ | `facts` | `{ label: ReactNode; value: ReactNode; }[]` | | Two to four label and value pairs: context, price per million tokens. |
670
+
671
+ ### RankList
672
+
673
+ The top rows of a breakdown, largest first: the label, the share and the number in columns that line up from row to row, with each row's share of the largest drawn behind it in a neutral fill. Rows open something when `onOpen` is set, such as the request logs filtered to that model.
674
+
675
+ | Prop | Type | Default | Description |
676
+ |---|---|---|---|
677
+ | `aria-label` * | `string` | | The list's accessible name. |
678
+ | `items` * | `RankItem[]` | | The rows: `id`, `label`, `value`, `secondary` (the share or a time), `change` against the previous period (a fraction with its `better` side, or a word such as "New"; on a phone it takes the place of `secondary`, so the label keeps its room) and `share` for the bar; leave `share` out for plain rows. |
679
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
680
+ | `empty` | `ReactNode` | | What an empty list says: "Nothing in this period". |
681
+ | `loading` | `boolean` | | While the rows load: `rows` lines of their shape. |
682
+ | `onOpen` | `((id: string) => void)` | | Called with a row's id when it is chosen; without it, rows are plain text. |
683
+ | `rows` | `number` | `5` | How many lines the loading state shows. |
684
+
685
+ ### Readout
686
+
687
+ A cell's number on its text edge: the value and an optional unit word, then a line with its change or a quiet note. The line is always there at `md`, so readouts side by side start their content at the same height.
688
+
689
+ | Prop | Type | Default | Description |
690
+ |---|---|---|---|
691
+ | `value` * | `ReactNode` | | The number, already formatted: "$60.45", "48%". |
692
+ | `change` | `Change` | | The change against the previous period, written as text by `Delta`. |
693
+ | `detail` | `ReactNode` | | A quiet note after the change: "0.7% of requests". |
694
+ | `label` | `ReactNode` | | A small label above a `sm` readout, when two sit side by side. |
695
+ | `loading` | `boolean` | | While the number loads: the readout keeps its height. |
696
+ | `size` | `"md" \| "sm"` | `md` | The main number of a cell (`md`), or a smaller one beside another (`sm`). |
697
+ | `unit` | `ReactNode` | | The word after the number, on its baseline: "tokens". |
572
698
 
573
699
  ## data-table
574
700
 
@@ -1270,12 +1396,14 @@ A model: provider mark, display name, then its id in mono, capability icons with
1270
1396
 
1271
1397
  ### ProviderBadge
1272
1398
 
1273
- A provider's mark on a quiet tile, in the provider's own colours for the theme, or the text colour for a mark its owner draws in black and white; for a provider without a mark, the first letter of its name.
1399
+ A provider's mark on a quiet tile, in the provider's own colours for the theme, or the text colour for a mark its owner draws in black and white; for a provider without a mark, the first letter of its name, or an icon for a choice that isn't one provider. A `ProviderMarksProvider` around an app names the mark of providers whose id isn't one, such as custom providers that run vLLM or Ollama.
1274
1400
 
1275
1401
  | Prop | Type | Default | Description |
1276
1402
  |---|---|---|---|
1277
1403
  | `provider` * | `string` | | The provider id, such as `openai` or `anthropic`. |
1278
1404
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1405
+ | `icon` | `IconSvgElement` | | An icon for the tile when there is no mark, instead of the first letter: for a choice that isn't one provider, such as any other server. |
1406
+ | `mark` | `string \| null` | `true` | The mark to show instead of the provider id's own or the one `ProviderMarksProvider` names, such as `vllm`. |
1279
1407
  | `name` | `string` | | The provider's name from the gateway's provider list: the badge's accessible name, the text `withName` writes and the source of the letter; the id without it. |
1280
1408
  | `size` | `"md" \| "sm" \| "lg" \| "xl"` | `md` | The badge's size. |
1281
1409
  | `withName` | `boolean` | | Writes the provider's name next to its mark. |
@@ -1286,7 +1414,7 @@ Choosing a provider from any number of them: a search field over every provider,
1286
1414
 
1287
1415
  | Prop | Type | Default | Description |
1288
1416
  |---|---|---|---|
1289
- | `providers` * | `ProviderPickerOption[]` | | The providers: id, name, whether the organization has connected it, and a short hint such as its key count. |
1417
+ | `providers` * | `ProviderPickerOption[]` | | The providers: id, name, whether the organization has connected it, a short hint such as its key count, and an icon for a choice without a mark, such as any other server. |
1290
1418
  | `allLabel` | `string` | | Select only: a first option for no provider in particular, such as "All providers"; choosing it reports `null`. |
1291
1419
  | `appearance` | `"list" \| "grid" \| "select"` | | An always-open list for a dialog step, tiles with each provider's mark for a dialog's first step, or a pill that opens the list. |
1292
1420
  | `aria-label` | `string` | | What the picker is for, when there is no visible label: it names the list, and the pill, named by the provider it shows, reads it as its description. |
@@ -1301,6 +1429,7 @@ Choosing a provider from any number of them: a search field over every provider,
1301
1429
  | `onChoose` | `((id: string) => void)` | | With `grid`: called when a tile is pressed or clicked, not when the arrow keys move the choice, so a dialog step can continue at once. |
1302
1430
  | `onValueChange` | `((id: string \| null) => void)` | | Called with the chosen provider's id, or `null` for `allLabel`. |
1303
1431
  | `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
1432
+ | `ordered` | `boolean` | | Keeps the providers in the order given instead of A to Z, for a list whose last entry, such as “Other”, must stay last. |
1304
1433
  | `placeholder` | `string` | | The search field's placeholder; in a pill without `allLabel`, also the text shown while nothing is chosen. |
1305
1434
  | `required` | `boolean` | | Marks it as required in a form. |
1306
1435
  | `size` | `"md" \| "sm"` | | Select only: the height of the pill. |
@@ -1542,7 +1671,7 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
1542
1671
  | `collapseAfter` | `number` | `24000` | Texts longer than this many characters show their start and "Show all" (24,000 by default; 0 never collapses). |
1543
1672
  | `headingLevel` | `4 \| 1 \| 2 \| 3 \| 5 \| 6` | `3` | The heading level `#` becomes (3 by default: below a page's and a section's own headings). |
1544
1673
  | `size` | `"lg" \| "body" \| "small"` | `body` | The text size: `small`, `body` or `lg`. |
1545
- | `streaming` | `boolean` | `false` | The text is still arriving: nothing collapses, and the tokens aren't cached. |
1674
+ | `streaming` | `boolean` | `false` | The text is still arriving: nothing collapses, and each update reads only its last blocks again, so a long reply stays cheap to follow. |
1546
1675
  | `tone` | `"secondary" \| "default"` | `default` | Primary text (`default`) or secondary text (`secondary`). |
1547
1676
  | `trailing` | `ReactNode` | | Drawn inline after the last word of a paragraph, heading or list item (never on a line of its own). |
1548
1677
  | `wrapCode` | `boolean` | `false` | Long code lines wrap instead of scrolling sideways (narrow columns). |
@@ -1657,20 +1786,33 @@ Moves through long lists by pages, by cursor, or with a Load more button.
1657
1786
 
1658
1787
  ## playground
1659
1788
 
1660
- `import { CompareGrid, Composer, ModelPicker, ParameterPanel, PromptSuggestions, Reasoning, ResponseMetrics, ResponseView, Thread, UserMessage } from "@logicplanes/kaeso-ui/playground";`
1789
+ `import { Attachments, CompareGrid, Composer, MediaResponse, ModelPicker, ParameterPanel, Reasoning, ResponseMetrics, ResponseView, Thread, UserMessage } from "@logicplanes/kaeso-ui/playground";`
1661
1790
 
1791
+ - **align** (attachments): `start` (default) — At the start of the line: in the composer, above the prompt (default); `end` — At the end of the line: above a sent prompt's bubble
1662
1792
  - **divider** (compare_grid): `hairline` (default) — Columns separated by a hairline, edge to edge (default); `none` — No line between columns: columns that sit in panels of their own
1663
- - **size** (composer): `md` (default) — Text 14/20, 8px around the buttons; the outline concentric with them (16 + 8) (default); `sm` — The same box starting one line tall: a follow-up field under a thread
1793
+ - **size** (composer): `md` (default) — Text 14/20 starting two lines tall, 8px around the buttons; the outline concentric with them (16 + 8) (default); `sm` — The same box starting one line tall: a chat's prompt box, a follow-up field under a thread
1794
+ - **kind** (media_response): `image` (default) — Images in a grid of squares, two across, each with Download (default); `audio` — One audio player a row tall, with Download; `video` — A 16:9 video player; while the job runs, its progress and Cancel
1664
1795
  - **appearance** (model_picker): `ghost` (default) — Transparent until hovered: a column header (default); `default` — A pill with a text input's ring: a form or toolbar
1665
1796
  - **layout** (parameter_panel): `popover` (default) — Inside a 320px popover, as with a `trigger` (default); `panel` — A side panel or sheet: a little more room between groups
1666
- - **align** (prompt_suggestions): `start` (default) — Rows the composer's width, their text on its text (default); `center` — Centered under an empty thread's title
1667
1797
  - **state** (reasoning): `done` (default) — Finished: “Thought for 4.2 s”, closed until opened (default); `live` — Still reasoning: “Thinking” pulses quietly and the latest line shows beside it
1668
1798
  - **size** (response_metrics): `sm` (default) — 12/16: a column footer or under a turn (default); `md` — 13/18: a response on its own
1669
1799
  - **status** (response_view): `pending` — Sent, nothing back yet: an empty line where the text will start, nothing drawn; `streaming` — Arriving: the text grows, earlier lines never re-wrap; Thinking is live; `done` (default) — Complete (default); `stopped` — Stopped by the person: the text so far and “Stopped”; `incomplete` — Cut off by the model: the text so far and why, such as “Stopped at the output limit”; `error` — Failed: the error in place of the response, and Retry
1670
1800
 
1801
+ ### Attachments
1802
+
1803
+ The files sent with a prompt, in a row that wraps: an image as a 64px thumbnail, a PDF, audio or any other file as a pill with its name. In the composer each has a remove button; above a sent prompt they line up at the end, over its bubble.
1804
+
1805
+ | Prop | Type | Default | Description |
1806
+ |---|---|---|---|
1807
+ | `items` * | `readonly Attachment[]` | | The files: an id, the name, the media type and, for an image, a `blob:` or `data:` URL to draw it from. |
1808
+ | `align` | `"start" \| "end"` | `start` | Where the row lines up: the start (in the composer) or the end (above a sent prompt). |
1809
+ | `aria-label` | `string` | | The list's accessible name ("Attachments" by default). |
1810
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1811
+ | `onRemove` | `((id: string) => void)` | | Removes a file by its id: a remove button on each thumbnail and pill, named after the file. |
1812
+
1671
1813
  ### CompareGrid
1672
1814
 
1673
- Columns side by side to compare models: equal widths of at least 320px, a header, a body that scrolls on its own and a footer each. When the columns don't fit, Previous column and Next column reach the hidden ones. Removing a column is instant, so offer Undo in a toast.
1815
+ Columns side by side to compare models: equal widths of at least 320px, a header, a body that scrolls on its own and a footer each. When the columns don't fit, Previous column and Next column reach the hidden ones. A column's body follows its end as content arrives while the reader is there, lets go the moment they scroll up, and follows again when they return to the end or its `followKey` changes. Removing a column is instant, so offer Undo in a toast.
1674
1816
 
1675
1817
  | Prop | Type | Default | Description |
1676
1818
  |---|---|---|---|
@@ -1682,16 +1824,19 @@ Columns side by side to compare models: equal widths of at least 320px, a header
1682
1824
  | `divider` | `"none" \| "hairline"` | `hairline` | A hairline between columns, or none. |
1683
1825
  | `max` | `number` | `4` | Columns at most (4 by default): the add circle is disabled there, with the reason in its tooltip. |
1684
1826
  | `onActiveChange` | `((index: number) => void)` | | Called with the index of the column in focus. |
1685
- | `onAdd` | `(() => void)` | | Adds a column: a circle in a narrow rail after the columns (on a phone, in the switcher, or in the header of a single column). Focus moves to the new column's header. |
1827
+ | `onAdd` | `(() => void)` | | Adds a column: a circle at the end of the last column's header (on a phone with several columns, in the switcher). Focus moves to the new column's header. |
1686
1828
 
1687
1829
  ### Composer
1688
1830
 
1689
- The prompt box: a text box that grows with what is written up to `maxRows`, then scrolls, its edge fading where more lines wait; Send, which becomes Stop while a response streams. Enter sends and Shift Enter adds a line (`submitOn`); ⌘ Enter or Ctrl Enter also sends. On a touch screen Enter adds a line and the button sends. A click anywhere in the box, the button row included, puts the cursor in the text.
1831
+ The prompt box: a text box that grows with what is written up to `maxRows`, then scrolls, its edge fading where more lines wait; under it a row with the caller's actions at the start and a round Send arrow at the end, which becomes a Stop square while a response streams. Enter sends and Shift Enter adds a line (`submitOn`); ⌘ Enter or Ctrl Enter also sends. On a touch screen Enter adds a line and the button sends. A click anywhere in the box, the button row included, puts the cursor in the text.
1690
1832
 
1691
1833
  | Prop | Type | Default | Description |
1692
1834
  |---|---|---|---|
1835
+ | `accept` | `string` | | The file types the Attach button offers, as an `accept` attribute (`image/*,application/pdf`). |
1693
1836
  | `actions` | `ReactNode` | | Controls at the start of the button row: parameters, clear. Ghost and secondary buttons there take tones made for the composer's surface. |
1694
1837
  | `aria-label` | `string` | | The text box's accessible name ("Prompt" by default). |
1838
+ | `attachLabel` | `string` | | The Attach button's name and tooltip ("Attach files" by default). |
1839
+ | `attachments` | `readonly Attachment[]` | `[]` | Files waiting to go with the prompt, drawn above the text box; with any, Send works without text. |
1695
1840
  | `autoFocus` | `boolean` | | Focuses the composer when it appears. |
1696
1841
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1697
1842
  | `clearOnSubmit` | `boolean` | `true` | Clears an uncontrolled composer after Send (true by default). |
@@ -1701,17 +1846,37 @@ The prompt box: a text box that grows with what is written up to `maxRows`, then
1701
1846
  | `loading` | `boolean` | `false` | The prompt is being sent: Send shows a spinner. |
1702
1847
  | `maxRows` | `number` | `10` | Lines before the text box scrolls (10 by default). |
1703
1848
  | `name` | `string` | | The field name the value is sent under in a form. |
1849
+ | `onAttach` | `((files: File[]) => void)` | | Takes files: an Attach button at the start of the button row, files dropped anywhere on the composer (its outline darkens while they hover) and files pasted into the text box. Check their type and size here and say what was refused. |
1850
+ | `onRemoveAttachment` | `((id: string) => void)` | | Removes a waiting file by its id. |
1704
1851
  | `onStop` | `(() => void)` | | Stop: the button while `streaming`. |
1705
1852
  | `onSubmit` | `((value: string) => void)` | | Send: the Send button, Enter in the text box (see `submitOn`), or ⌘ Enter (Ctrl Enter). Not called for a prompt that is empty or only spaces, while disabled, sending or streaming, or while an input method is composing. |
1706
1853
  | `onValueChange` | `((value: string) => void)` | | Called with the message as it is typed. |
1707
1854
  | `placeholder` | `string` | | Text shown while there is no value. |
1708
1855
  | `size` | `"md" \| "sm"` | `md` | The composer's height. |
1709
- | `stopLabel` | `string` | | The Stop button's label, shown while a response streams ("Stop" by default). |
1856
+ | `stopLabel` | `string` | | The Stop button's name and tooltip, while a response streams ("Stop" by default). |
1710
1857
  | `streaming` | `boolean` | `false` | A response is arriving: Send becomes Stop. The text box stays editable for the next prompt; Enter waits, and the text box's description says to stop the response to send. |
1711
- | `submitLabel` | `string` | | The Send button's label ("Send" by default). |
1858
+ | `submitLabel` | `string` | | The Send button's name and tooltip ("Send" by default). |
1712
1859
  | `submitOn` | `"enter" \| "mod-enter"` | `enter` | The key that sends from the text box. `"enter"` (default): Enter sends and Shift Enter adds a line; on a touch screen Enter adds a line and the Send button sends. `"mod-enter"`: Enter adds a line and only ⌘ Enter (Ctrl Enter) sends. ⌘ Enter and Ctrl Enter send with either. |
1713
1860
  | `value` | `string` | | The message being written, when you control it. |
1714
1861
 
1862
+ ### MediaResponse
1863
+
1864
+ What an image, speech, sound or video model made, in the place a text response takes: images in a grid of squares, audio in a player a row tall, a video in a 16:9 player, each with Download. While it is made, quiet placeholders of the same size hold the room; a video job shows its progress, the seconds it has taken and Cancel. A stop or a failure reads as in ResponseView.
1865
+
1866
+ | Prop | Type | Default | Description |
1867
+ |---|---|---|---|
1868
+ | `aria-label` | `string` | | The response's accessible name ("GPT Image 2 response" in a comparison). Defaults to "Response" in the provider's language. |
1869
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1870
+ | `error` | `string` | | Why it failed, shown under "No response" with status "error". |
1871
+ | `expected` | `number` | `1` | How many images to hold room for while they are made. |
1872
+ | `footer` | `ReactNode` | | Under the response, after Retry: its metrics. |
1873
+ | `items` | `readonly MediaItem[]` | `[]` | The files: where to show or play each from (`blob:`, `data:` or a same-origin link), the file name it downloads under, and a label in the reader's language that Download and screen readers say. |
1874
+ | `kind` | `"image" \| "audio" \| "video"` | `image` | What the model makes: images, audio or a video. |
1875
+ | `onCancel` | `(() => void)` | | Cancels a running video job: a Cancel button under its progress. |
1876
+ | `onRetry` | `(() => void)` | | Sends the turn again: a Retry button after a stop or a failure, and a quiet Retry circle under a finished response. |
1877
+ | `progress` | `number \| null` | | A video job's progress from 0 to 100, when its provider says; the bar pulses quietly while it doesn't. |
1878
+ | `status` | `MediaStatus` | `done` | Where it stands: waiting, running, done, stopped or failed. |
1879
+
1715
1880
  ### ModelPicker
1716
1881
 
1717
1882
  A model from a catalogue of any size: a pill showing the chosen model that opens a searchable list, grouped by provider under sticky captions with marks and counts, connected providers first and recent models on top, with a Provider filter that lists only the providers whose models match the search. Each row shows the name, the id, capabilities, context and price; deprecated models wait behind a toggle.
@@ -1747,17 +1912,19 @@ A model from a catalogue of any size: a pill showing the chosen model that opens
1747
1912
 
1748
1913
  ### ParameterPanel
1749
1914
 
1750
- A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary. Unset values are the model's defaults; Reset returns to them (instructions stay). With a `trigger`, it opens in a 320px popover with a Close button beside its title, and focus stays inside until it closes.
1915
+ A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary; for media models, the image size, count and quality, the voice, the length in seconds and whether a transcript is in English. Unset values are the model's defaults; Reset returns to them (instructions stay). With a `trigger`, it opens in a 320px popover with a Close button beside its title, and focus stays inside until it closes.
1751
1916
 
1752
1917
  | Prop | Type | Default | Description |
1753
1918
  |---|---|---|---|
1754
1919
  | `onValueChange` * | `(next: PlaygroundParameters) => void` | | Called with the changed parameters. |
1755
- | `value` * | `PlaygroundParameters` | | The parameters, such as temperature and effort. |
1920
+ | `value` * | `PlaygroundParameters` | | The parameters, such as temperature and effort, image size and voice. |
1756
1921
  | `align` | `"start" \| "end" \| "center"` | `end` | How the popover lines up with its trigger. |
1757
1922
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1758
1923
  | `defaultOpen` | `boolean` | | Whether the popover starts open, when the component keeps its own state. |
1759
1924
  | `defaults` | `Pick<PlaygroundParameters, "temperature" \| "topP">` | | What unset shows (temperature 1 and top P 1 unless given): the model's defaults. |
1760
1925
  | `disabled` | `boolean` | `false` | Turns off every parameter. |
1926
+ | `duration` | `boolean` | `false` | Shows the length in seconds, for sound effect and music models. |
1927
+ | `image` | `ImageParameterOptions` | | An image model's options: the size, how many images per prompt (up to four shown) and its qualities. |
1761
1928
  | `instructions` | `boolean` | `true` | Shows the system instructions field (true by default). |
1762
1929
  | `layout` | `"popover" \| "panel"` | `popover` | Compact inside a popover, or roomier in a side panel. |
1763
1930
  | `maxOutputTokensLimit` | `number` | | The model's maximum output tokens: the field's maximum, named in a hint under it. |
@@ -1766,21 +1933,11 @@ A request's parameters: system instructions, temperature, top P, maximum output
1766
1933
  | `reasoning` | `boolean \| ReasoningEffort[]` | `false` | The reasoning efforts the model takes, or false (the default) when it doesn't reason: no effort and no summary. |
1767
1934
  | `sampling` | `boolean` | `true` | Shows temperature and top P; models that reason often take neither (true by default). |
1768
1935
  | `side` | `"top" \| "bottom" \| "left" \| "right"` | `bottom` | The side the popover opens on. |
1936
+ | `text` | `boolean` | `true` | Shows the text parameters, such as the maximum output tokens (true by default); off when no text model is chosen. |
1769
1937
  | `title` | `string` | | The popover's title, also its name. Defaults to "Parameters" in the provider's language. |
1938
+ | `translate` | `boolean` | `false` | Shows whether a transcript is as spoken or in English, for transcription models that translate. |
1770
1939
  | `trigger` | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The button that opens the parameters in a popover; without one, the parameters sit in the page. |
1771
-
1772
- ### PromptSuggestions
1773
-
1774
- Example prompts before a thread starts: up to three pill rows of secondary text that take a quiet fill on hover. No outlines, no icons; a prompt too long for its row shows in full in a tooltip. Leave them out once a prompt is sent.
1775
-
1776
- | Prop | Type | Default | Description |
1777
- |---|---|---|---|
1778
- | `onSelect` * | `(prompt: string) => void` | | Puts the prompt in the composer (or sends it). The list usually goes away then, so move focus to the composer. |
1779
- | `suggestions` * | `string[]` | | Up to three short prompts; more are left out. |
1780
- | `align` | `"start" \| "center"` | `start` | Aligns the suggestions at the start or in the center. |
1781
- | `aria-label` | `string` | | The list's accessible name. Defaults to "Example prompts" in the provider's language. |
1782
- | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1783
- | `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
1940
+ | `voices` | `boolean \| readonly string[]` | `false` | A speech model's voices to choose from, or true for a field that takes any voice name or id. |
1784
1941
 
1785
1942
  ### Reasoning
1786
1943
 
@@ -1802,25 +1959,25 @@ A model's reasoning behind a quiet disclosure, closed by default: a chevron, the
1802
1959
 
1803
1960
  ### ResponseMetrics
1804
1961
 
1805
- A response's numbers on one line: time to first token, total time, tokens ("412 in · 168 out", and reasoning), cost with the decimals it was given, as request logs show it. Tabular figures, labels in tertiary text. Every value keeps the room a typical value takes, so nothing moves when values arrive; while `live`, values not known yet show "—"; before any response the line is empty, its height kept.
1962
+ A response's numbers on one line: time to first token, total time, tokens ("412 in · 168 out"), reasoning tokens, cost with the decimals it was given, as request logs show it. Tabular figures, labels in tertiary text, the same gap between items. Only what is known is shown: while `live` that is the first token and a quietly counting Total, and the rest joins at the end, so no placeholder or empty room sits between items. Empty before a response, keeping its height.
1806
1963
 
1807
1964
  | Prop | Type | Default | Description |
1808
1965
  |---|---|---|---|
1809
1966
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1810
1967
  | `cost` | `string \| null` | | USD as a decimal string, shown with its own decimals (two at least, six at most): "0.004213" reads "$0.004213", "1.2311" reads "$1.2311", zero reads "$0" and less than a millionth reads "< $0.000001". |
1968
+ | `costKnown` | `boolean` | `true` | False when the model has no price for what it made: the cost reads "Unknown" (true by default). |
1811
1969
  | `duration` | `number \| null` | | Milliseconds from sending to the last token. |
1812
1970
  | `inputTokens` | `number \| null` | | The tokens sent, once known. |
1813
- | `live` | `boolean` | `false` | A response is arriving: values not known yet show a quiet "—" in the room they will take. |
1971
+ | `live` | `boolean` | `false` | A response is arriving: Total counts up from `startedAt`, and an unknown cost isn't called Unknown yet. |
1814
1972
  | `outputTokens` | `number \| null` | | The tokens received, once known. |
1815
- | `reasoning` | `boolean` | | The model reasons: while `live`, the reasoning item waits with a placeholder. |
1816
- | `reasoningTokens` | `number \| null` | | Of the output tokens, those spent reasoning. Shown when given, or when `reasoning` is set ("—" when the provider didn't report them). |
1973
+ | `reasoningTokens` | `number \| null` | | Of the output tokens, those spent reasoning. Shown when the provider reported them. |
1817
1974
  | `size` | `"md" \| "sm"` | `sm` | The text size. |
1818
1975
  | `startedAt` | `number` | | When the request was sent (Date.now()): while live, Total counts up quietly, in tenths of a second and in whole seconds past ten, until `duration` arrives. |
1819
1976
  | `timeToFirstToken` | `number \| null` | | Milliseconds from sending to the first token. |
1820
1977
 
1821
1978
  ### ResponseView
1822
1979
 
1823
- A model's response as it arrives: a quiet caret where the text will start until the first token, then Markdown text for reading (15/22) with the caret at its end while it streams; the reasoning summary in a "Thinking" disclosure (closed by default, live while it streams); and calm states for a stop, a cut-off reply or a failure, which shows its error in place. Text sits 12px in, code and tables on the edge; screen readers hear when a response finishes or stops.
1980
+ A model's response as it arrives: nothing until the first token, then Markdown text for reading (15/22) that grows as it streams; the reasoning summary in a "Thinking" disclosure (closed by default, live while it streams); and calm states for a stop, a cut-off reply or a failure, which shows its error in place. Text sits 12px in, code and tables on the edge; screen readers hear when a response finishes or stops.
1824
1981
 
1825
1982
  | Prop | Type | Default | Description |
1826
1983
  |---|---|---|---|
@@ -1828,10 +1985,10 @@ A model's response as it arrives: a quiet caret where the text will start until
1828
1985
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1829
1986
  | `defaultReasoningOpen` | `boolean` | | Whether the reasoning starts expanded. |
1830
1987
  | `error` | `string` | | Why the reply failed, shown under "No response" with status "error": the gateway's message in the reader's language; `code` spans render as code. |
1831
- | `footer` | `ReactNode` | | Under the response, on its text line: its metrics, actions. |
1988
+ | `footer` | `ReactNode` | | Under the response, after Copy and Retry on their row: its metrics. |
1832
1989
  | `incompleteReason` | `string` | | Why the model cut the reply off, with status "incomplete": `max_output_tokens` reads "Stopped at the output limit", `content_filter` names the filter. |
1833
1990
  | `onReasoningOpenChange` | `((open: boolean) => void)` | | Called when the reasoning is expanded or collapsed. |
1834
- | `onRetry` | `(() => void)` | | Sends the turn again: a Retry button after a stop, a cut-off reply or an error. |
1991
+ | `onRetry` | `(() => void)` | | Sends the turn again: a Retry button after a stop, a cut-off reply or an error, and a quiet Retry circle under a finished reply. |
1835
1992
  | `reasoning` | `string` | | The reasoning summary so far, as Markdown. A "Thinking" disclosure shows it, closed by default. |
1836
1993
  | `reasoningDuration` | `number` | | How long the model reasoned, in milliseconds: "Thought for 4.2 s". |
1837
1994
  | `reasoningOpen` | `boolean` | | Whether the reasoning is expanded, when you control it. |
@@ -1849,12 +2006,13 @@ A conversation's turns, 32px apart: spacing, not lines or boxes, separates them.
1849
2006
 
1850
2007
  ### UserMessage
1851
2008
 
1852
- A person's turn: their prompt as quiet text that opens the turn, no bubble. A long prompt shows its first lines until "Show all", a disclosure button under them.
2009
+ A person's turn: their prompt in a bubble on a quiet fill at the end of the line, so it reads apart from the response that starts at the other edge. A long prompt shows its first lines until "Show all", a disclosure button under them.
1853
2010
 
1854
2011
  | Prop | Type | Default | Description |
1855
2012
  |---|---|---|---|
1856
2013
  | `children` * | `ReactNode` | | The prompt as it was written: plain text, line breaks kept. |
1857
2014
  | `aria-label` | `string` | | The message's accessible name. Defaults to "Prompt" in the provider's language. |
2015
+ | `attachments` | `readonly Attachment[]` | `[]` | The files sent with the prompt, above its bubble: images as thumbnails, other files by name. |
1858
2016
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1859
2017
  | `maxLines` | `0 \| 4 \| 2 \| 3 \| 6` | `4` | Lines shown before "Show all" (4 by default; 0 shows everything). |
1860
2018
 
@@ -1951,6 +2109,7 @@ A release's artwork: flat geometric art in one of eight styles and Kaeso's palet
1951
2109
  | `art` | `ReleaseArtSpec` | | The release's stored artwork, e.g. from `nextReleaseArt`; it always draws the same picture and wins over `seed`. |
1952
2110
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
1953
2111
  | `eyebrow` | `ReactNode` | | Small text above the title, e.g. “What's new in Kaeso”. |
2112
+ | `flush` | `boolean` | | Drops the rounded corners and outline and fills the height it is given, cropping to its shape, for artwork that meets the edges of the surface it sits in, such as an `Announcement`. |
1954
2113
  | `shape` | `"banner" \| "wide"` | `banner` | The artwork's aspect ratio. |
1955
2114
  | `src` | `string` | | An image of the release's stored artwork, e.g. `https://update.kaeso.app/art/0.1.0.svg`, shown in the frame instead of the drawn picture, which takes its place if the image doesn't load. |
1956
2115
  | `title` | `ReactNode` | | Large text on the artwork, e.g. the version number. |
@@ -2227,12 +2386,32 @@ A 4px pill track, an ink range and a 16px ink thumb; a value bubble while draggi
2227
2386
 
2228
2387
  ## stat
2229
2388
 
2230
- `import { Stat, StatGroup } from "@logicplanes/kaeso-ui/stat";`
2389
+ `import { Delta, RollingNumber, Stat, StatGroup } from "@logicplanes/kaeso-ui/stat";`
2231
2390
 
2391
+ - **tone** (delta): `better` — The change goes the way people want; `worse` — The change goes the wrong way; `flat` — No change, or a change with no better side
2232
2392
  - **variant** (stat): `plain` (default) — A number with its unit and change, in a row of numbers (default); `tile` — A tile in a StatGroup: label, number, change, detail and an optional trend
2233
2393
  - **size** (stat): `md` (default) — 28/32 metric (default); `sm` — 20/28 for dense rows
2234
2394
  - **variant** (stat_group): `grid` (default) — Tiles in one group that fits its columns and the size of every number to the room (default); `row` — Plain numbers in a row that wraps
2235
2395
 
2396
+ ### Delta
2397
+
2398
+ A change written as text, "↑16%", in the success or danger text color only when one direction is better, and said as "better" or "worse" to screen readers. No pill: it sits beside a quiet note such as "vs. prior 30 days".
2399
+
2400
+ | Prop | Type | Default | Description |
2401
+ |---|---|---|---|
2402
+ | `value` * | `number` | | The change as a fraction: 0.16 for 16% more, -0.04 for 4% less. |
2403
+ | `better` | `"none" \| "up" \| "down"` | `up` | Which direction is good: `up` by default, `down` for errors and latency, `none` for a number such as requests or cost where more is neither good nor bad. A change of `none` is written in the secondary text color and says nothing to screen readers about better or worse. |
2404
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2405
+
2406
+ ### RollingNumber
2407
+
2408
+ A formatted number whose digits roll to their new value when it changes, each digit a column sliding to its place, and characters that join it (the fifth digit of 10,000) drop in. It sits still on first paint, and with reduced motion the digits change in place. The page's text stays the value itself, for screen readers, tests and copying.
2409
+
2410
+ | Prop | Type | Default | Description |
2411
+ |---|---|---|---|
2412
+ | `value` * | `string` | | The number, already formatted: "59,415", "$62.19", "137.1M". |
2413
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2414
+
2236
2415
  ### Stat
2237
2416
 
2238
2417
  A number. Plain, it is a big number followed by its word, no box, as on a usage page. As a `tile` (`variant="tile"`), it is one metric of a dashboard row in a `StatGroup`: its label, the number, the change against the previous period and the trend.
@@ -2240,7 +2419,7 @@ A number. Plain, it is a big number followed by its word, no box, as on a usage
2240
2419
  | Prop | Type | Default | Description |
2241
2420
  |---|---|---|---|
2242
2421
  | `value` * | `ReactNode` | | The number, already formatted: "$12.40", "1.2M". |
2243
- | `change` | `{ value: number; better?: "up" \| "down"; }` | | The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down. The badge is green or red and says "better" or "worse" to screen readers. |
2422
+ | `change` | `{ value: number; better?: "none" \| "up" \| "down"; }` | | The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down, and `none` keeps a number such as cost neutral. It is written as text by `Delta`: green or red, and "better" or "worse" for screen readers. |
2244
2423
  | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2245
2424
  | `delta` | `{ label: string; tone?: "neutral" \| "success" \| "danger"; }` | | A delta badge: "+12%". |
2246
2425
  | `detail` | `ReactNode` | | A quiet line under the number: "vs. the previous 30 days", "0.4% of requests". |
@@ -2416,7 +2595,7 @@ Text in the type scale.
2416
2595
 
2417
2596
  ### ThemeImage
2418
2597
 
2419
- An image drawn twice, once for each theme: it follows the site's theme setting, not only the system's, and prints the light one.
2598
+ A drawing on a transparent ground made twice, once for each theme, such as a diagram: it follows the site's theme setting, not only the system's, prints the light one and has no outline.
2420
2599
 
2421
2600
  | Prop | Type | Default | Description |
2422
2601
  |---|---|---|---|
@@ -2448,10 +2627,25 @@ System, light or dark, stored as `kaeso:theme`.
2448
2627
 
2449
2628
  ## thumbnail
2450
2629
 
2451
- `import { Thumbnail } from "@logicplanes/kaeso-ui/thumbnail";`
2630
+ `import { MediaView, Thumbnail } from "@logicplanes/kaeso-ui/thumbnail";`
2452
2631
 
2632
+ - **kind** (media_view): `image` (default) — A thumbnail that opens to the whole image in place, and closes again (default); `audio` — The browser's audio player; `video` — The browser's video player on a well; `file` — Nothing to play: the name, the detail and the download alone
2453
2633
  - **size** (thumbnail): `sm` — 64px: a row or a compact list; `md` (default) — 120px: an image inside a message (default); `lg` — 160px: an image a page is about
2454
2634
 
2635
+ ### MediaView
2636
+
2637
+ An image, an audio clip, a video or a file someone sent or a model made, with a line that names it and a download: an image is a thumbnail that opens to the whole image in place, audio and video play in the browser's own player.
2638
+
2639
+ | Prop | Type | Default | Description |
2640
+ |---|---|---|---|
2641
+ | `label` * | `string` | | What the file is or shows, in words: the caption, the image's text alternative and the player's accessible name. |
2642
+ | `src` * | `string` | | The file's address: a data: URL for an image, a blob: URL for audio and video where the content security policy allows no other. |
2643
+ | `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
2644
+ | `detail` | `string` | | What the file is, after its name: its format, dimensions and size. |
2645
+ | `download` | `string` | | The address the download saves from, when it isn't the one shown or played, such as a blob: URL beside an image's data: URL. |
2646
+ | `filename` | `string` | | The name the download saves under; without it the browser chooses one. |
2647
+ | `kind` | `"file" \| "image" \| "audio" \| "video"` | `image` | What the file is: an image, audio, a video, or a file that can only be downloaded. |
2648
+
2455
2649
  ### Thumbnail
2456
2650
 
2457
2651
  A square image someone sent, such as a photo in a conversation: cropped to fill, on a well with radius 14; when it can't load, its text alternative shows instead.
package/ai/icons.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Icon vocabulary
2
2
 
3
- Version 0.6.0-rc.8. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
3
+ Version 0.6.0. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
4
4
 
5
5
  ## Kaeso objects
6
6
 
@@ -12,7 +12,7 @@ Version 0.6.0-rc.8. Generated from `src/icons/vocabulary.ts`; do not edit. Use t
12
12
 
13
13
  ## Actions
14
14
 
15
- `signOut`, `copy`, `externalLink`, `openExternal`, `add`, `close`, `edit`, `delete`, `download`, `upload`, `refresh`, `retry`, `undo`, `redo`, `swap`, `moveUp`, `moveDown`, `search`, `filter`, `displayOptions`, `more`, `menu`, `sort`, `switcher`, `unfold`, `expand`, `collapse`, `show`, `hide`, `reveal`, `sidebar`, `sidePanel`, `list`, `board`, `stack`
15
+ `signOut`, `copy`, `externalLink`, `openExternal`, `add`, `close`, `edit`, `delete`, `download`, `upload`, `attach`, `record`, `refresh`, `retry`, `send`, `stop`, `undo`, `redo`, `swap`, `moveUp`, `moveDown`, `search`, `filter`, `displayOptions`, `more`, `menu`, `sort`, `switcher`, `unfold`, `expand`, `collapse`, `show`, `hide`, `reveal`, `sidebar`, `sidePanel`, `list`, `board`, `stack`
16
16
 
17
17
  ## Status
18
18
 
@@ -24,5 +24,5 @@ Version 0.6.0-rc.8. Generated from `src/icons/vocabulary.ts`; do not edit. Use t
24
24
 
25
25
  ## Misc
26
26
 
27
- `calendar`, `time`, `code`, `mail`, `keyboard`, `help`, `github`, `themeLight`, `themeDark`, `themeSystem`, `language`, `legal`
27
+ `calendar`, `time`, `code`, `mail`, `keyboard`, `help`, `github`, `themeLight`, `themeDark`, `themeSystem`, `language`, `legal`, `file`, `audio`
28
28
 
package/ai/tokens.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui tokens
2
2
 
3
- Version 0.6.0-rc.8. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
3
+ Version 0.6.0. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
4
4
 
5
5
  ## Neutrals
6
6
 
@@ -64,6 +64,24 @@ Version 0.6.0-rc.8. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
64
64
  | `--k-info-text` | #1d4ed8 | #60a5fa |
65
65
  | `--k-info-tint` | #eff6ff | #171d28 |
66
66
 
67
+ ## Code
68
+
69
+ | Variable | Light | Dark |
70
+ |---|---|---|
71
+ | `--k-code-keyword` | #6d28d9 | #c4b5fd |
72
+ | `--k-code-string` | #166534 | #86efac |
73
+ | `--k-code-constant` | #9a3412 | #fdba74 |
74
+ | `--k-code-comment` | #696969 | #999999 |
75
+ | `--k-code-function` | #1d4ed8 | #93c5fd |
76
+ | `--k-code-type` | #155e75 | #67e8f9 |
77
+ | `--k-code-property` | #a3157a | #f9a8d4 |
78
+ | `--k-code-tag` | #a3157a | #f9a8d4 |
79
+ | `--k-code-attribute` | #854d0e | #fcd34d |
80
+ | `--k-code-variable` | #a3157a | #f9a8d4 |
81
+ | `--k-code-punctuation` | #595959 | #b3b3b3 |
82
+ | `--k-code-inserted` | #166534 | #4ade80 |
83
+ | `--k-code-deleted` | #991b1b | #fca5a5 |
84
+
67
85
  ## Data
68
86
 
69
87
  | Variable | Series | Light | Dark |
@@ -157,10 +175,13 @@ Version 0.6.0-rc.8. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
157
175
  | `shadow-control` | `inset 0 0 0 1px var(--k-line), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line)` |
158
176
  | `shadow-control-hover` | `inset 0 0 0 1px var(--k-line-strong), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line-strong)` |
159
177
  | `shadow-control-on-fill` | `inset 0 0 0 1px var(--k-line-strong)` | `inset 0 0 0 1px var(--k-line-strong)` |
178
+ | `shadow-control-on-picture` | `inset 0 0 0 1px var(--k-line-strong), 0 1px 3px rgb(0 0 0 / 0.2)` | `inset 0 0 0 1px var(--k-line-strong), 0 1px 3px rgb(0 0 0 / 0.5)` |
160
179
  | `shadow-control-selected` | `inset 0 0 0 2px var(--k-ink), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 2px var(--k-ink)` |
161
180
  | `shadow-field` | `inset 0 0 0 1px var(--k-line-field), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line-field)` |
162
181
  | `shadow-field-hover` | `inset 0 0 0 1px var(--k-line-field-hover), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line-field-hover)` |
163
182
  | `shadow-selector` | `inset 0 0 0 1px var(--k-line-field), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line-field)` |
183
+ | `shadow-composer` | `inset 0 0 0 1px var(--k-line-field), 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12)` | `inset 0 0 0 1px var(--k-line-field)` |
184
+ | `shadow-composer-hover` | `inset 0 0 0 1px var(--k-line-field-hover), 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.12)` | `inset 0 0 0 1px var(--k-line-field-hover)` |
164
185
  | `shadow-selector-hover` | `inset 0 0 0 1px var(--k-line-field-hover), 0 1px 2px rgb(0 0 0 / 0.05)` | `inset 0 0 0 1px var(--k-line-field-hover)` |
165
186
  | `shadow-frame` | `0 0 0 1px var(--k-line)` | `0 0 0 1px var(--k-line)` |
166
187
  | `shadow-xs` | `0 0 0 1px var(--k-line), 0 1px 2px rgb(0 0 0 / 0.03)` | `0 0 0 1px var(--k-line)` |
@@ -189,6 +210,7 @@ Version 0.6.0-rc.8. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
189
210
  | `--k-duration-indicator` | 180ms |
190
211
  | `--k-duration-disclosure` | 200ms |
191
212
  | `--k-duration-chart` | 240ms |
213
+ | `--k-duration-roll` | 560ms |
192
214
  | `--k-duration-check` | 140ms |
193
215
  | `--k-duration-radio` | 160ms |
194
216
  | `--k-duration-copied` | 1200ms |