@logicplanes/kaeso-ui 0.6.0-rc.7 → 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
@@ -95,6 +95,7 @@ interface CommonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "chi
95
95
  loading?: boolean | undefined;
96
96
  disabledReason?: string | undefined;
97
97
  href?: string | undefined;
98
+ download?: string | undefined;
98
99
  target?: string | undefined;
99
100
  rel?: string | undefined;
100
101
  fullWidth?: boolean | undefined;
@@ -6,6 +6,7 @@ export declare const docs: {
6
6
  count: string;
7
7
  disabledReason: string;
8
8
  fullWidth: string;
9
+ download: string;
9
10
  href: string;
10
11
  icon: string;
11
12
  leadingIcon: string;
@@ -1,6 +1,9 @@
1
1
  import type * as React from "react";
2
2
  import { type ReactNode } from "react";
3
3
  import { tokenKindSeries } from "@logicplanes/kaeso-tokens";
4
+ import { ChartTooltip, Swatch, useSize, type TooltipRow } from "./tooltip.js";
5
+ export { ChartTooltip, Swatch, useSize };
6
+ export type { TooltipRow };
4
7
  import { type UiText } from "../../i18n/context.js";
5
8
  export declare function wholeTicks(ticks: number[], values: number[]): number[];
6
9
  export declare const VIZ: readonly ["var(--k-viz-1)", "var(--k-viz-2)", "var(--k-viz-3)", "var(--k-viz-4)", "var(--k-viz-5)", "var(--k-viz-6)", "var(--k-viz-7)", "var(--k-viz-8)"];
@@ -13,10 +16,6 @@ export type TokenKind = keyof typeof tokenKindSeries;
13
16
  export declare const tokenKindColor: (k: TokenKind, thin?: boolean) => "var(--k-viz-1)" | "var(--k-viz-2)" | "var(--k-viz-3)" | "var(--k-viz-4)" | "var(--k-viz-5)" | "var(--k-viz-6)" | "var(--k-viz-7)" | "var(--k-viz-8)" | "var(--k-viz-thin-1)" | "var(--k-viz-thin-2)" | "var(--k-viz-thin-3)" | "var(--k-viz-thin-4)" | "var(--k-viz-thin-5)" | "var(--k-viz-thin-6)" | "var(--k-viz-thin-7)" | "var(--k-viz-thin-8)" | "var(--k-viz-1-soft)";
14
17
  export declare const TOKEN_KIND_ORDER: TokenKind[];
15
18
  export declare function tokenKindLabel(kind: TokenKind, t?: UiText): string;
16
- export declare function useSize<T extends HTMLElement>(): [(el: T | null) => void, {
17
- width: number;
18
- height: number;
19
- }];
20
19
  export declare function tweens(from: number[], to: number[]): boolean;
21
20
  export declare function useTweened(values: number[], still?: boolean): number[];
22
21
  export declare function useTweenedScale(values: number[], top: number, still?: boolean): {
@@ -51,12 +50,6 @@ export interface LegendItem {
51
50
  color: string;
52
51
  value?: ReactNode | undefined;
53
52
  }
54
- export interface SwatchProps {
55
- color: string;
56
- shape?: "square" | "line" | undefined;
57
- off?: boolean | undefined;
58
- }
59
- export declare const Swatch: React.ForwardRefExoticComponent<SwatchProps & React.RefAttributes<HTMLSpanElement>>;
60
53
  export declare const tickLabel: (format: (v: number) => string) => (v: number) => string;
61
54
  export declare function readableTicks(scale: {
62
55
  ticks: (count: number) => number[];
@@ -87,23 +80,6 @@ export interface LegendProps {
87
80
  shape?: "square" | "line" | undefined;
88
81
  }
89
82
  export declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLUListElement>>;
90
- export interface TooltipRow {
91
- id: string;
92
- label: ReactNode;
93
- color: string;
94
- value: ReactNode;
95
- share?: ReactNode | undefined;
96
- }
97
- export interface ChartTooltipProps {
98
- x: number;
99
- xLeft?: number | undefined;
100
- y: number;
101
- width: number;
102
- heading: ReactNode;
103
- rows: TooltipRow[];
104
- visible: boolean;
105
- }
106
- export declare const ChartTooltip: React.ForwardRefExoticComponent<ChartTooltipProps & React.RefAttributes<HTMLDivElement>>;
107
83
  export declare const AXIS: {
108
84
  grid: {
109
85
  stroke: string;
@@ -74,6 +74,10 @@ export declare const docs: {
74
74
  Sparkline: {
75
75
  description: string;
76
76
  props: {
77
+ formatValue: string;
78
+ height: string;
79
+ labels: string;
80
+ seriesLabel: string;
77
81
  "aria-label": string;
78
82
  color: string;
79
83
  fluid: string;
@@ -13,6 +13,10 @@ export declare const Sparkline: import("react").ForwardRefExoticComponent<{
13
13
  values: number[];
14
14
  color?: string | undefined;
15
15
  fluid?: boolean | undefined;
16
+ height?: number | undefined;
17
+ labels?: string[] | undefined;
18
+ seriesLabel?: string | undefined;
19
+ formatValue?: ((v: number) => string) | undefined;
16
20
  "aria-label": string;
17
21
  className?: string | undefined;
18
22
  } & import("react").RefAttributes<SVGSVGElement>>;
@@ -28,6 +28,8 @@ export interface TimeSeries {
28
28
  label: string;
29
29
  points: TimePoint[];
30
30
  color?: string | undefined;
31
+ /** Drawn as a thin dashed line without an area, for a comparison such as the previous period. */
32
+ dashed?: boolean | undefined;
31
33
  }
32
34
  export interface TimeseriesChartProps extends ChartState {
33
35
  series: TimeSeries[];
@@ -0,0 +1,28 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function useSize<T extends HTMLElement>(): [(el: T | null) => void, {
3
+ width: number;
4
+ height: number;
5
+ }];
6
+ export interface SwatchProps {
7
+ color: string;
8
+ shape?: "square" | "line" | undefined;
9
+ off?: boolean | undefined;
10
+ }
11
+ export declare const Swatch: import("react").ForwardRefExoticComponent<SwatchProps & import("react").RefAttributes<HTMLSpanElement>>;
12
+ export interface TooltipRow {
13
+ id: string;
14
+ label: ReactNode;
15
+ color: string;
16
+ value: ReactNode;
17
+ share?: ReactNode | undefined;
18
+ }
19
+ export interface ChartTooltipProps {
20
+ x: number;
21
+ xLeft?: number | undefined;
22
+ y: number;
23
+ width: number;
24
+ heading: ReactNode;
25
+ rows: TooltipRow[];
26
+ visible: boolean;
27
+ }
28
+ export declare const ChartTooltip: import("react").ForwardRefExoticComponent<ChartTooltipProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,25 +1,16 @@
1
- type Highlighter = {
2
- codeToTokens: (code: string, o: {
3
- lang: string;
4
- theme: string;
5
- tokenizeMaxLineLength?: number | undefined;
6
- }) => {
7
- tokens: {
8
- content: string;
9
- color?: string | undefined;
10
- fontStyle?: number | undefined;
11
- }[][];
12
- };
13
- getLoadedLanguages: () => string[];
14
- loadLanguage: (...l: unknown[]) => Promise<void>;
15
- };
16
1
  export declare const HIGHLIGHT_MAX_CHARS = 200000;
17
- export declare const CODE_LANGS: readonly ["ts", "tsx", "js", "json", "bash", "python", "yaml", "diff"];
2
+ /** Every language `CodeBlock`, `DiffView` and `Markdown` highlight. Each loads on first use, so a page pays only for the languages it shows. */
3
+ export declare const CODE_LANGS: readonly ["ts", "tsx", "js", "jsx", "json", "jsonc", "bash", "shellsession", "powershell", "python", "yaml", "toml", "ini", "dotenv", "diff", "rust", "go", "sql", "html", "css", "scss", "xml", "markdown", "dockerfile", "http", "graphql", "java", "kotlin", "swift", "c", "cpp", "csharp", "php", "ruby", "lua", "hcl", "nginx", "make", "proto", "vue", "svelte"];
4
+ /** A language `CodeBlock` highlights, or `text` for none. `resolveCodeLang` turns a fence name such as `py` or `sh` into one. */
18
5
  export type CodeLang = (typeof CODE_LANGS)[number] | "text";
19
- export declare function getHighlighter(): Promise<Highlighter>;
6
+ /**
7
+ * The language for a Markdown fence's info string or a file's extension: `py` is `python`, `sh` and `zsh` are `bash`, `yml` is `yaml`,
8
+ * `ts title=app.ts` is `ts`. Anything it doesn't know, such as `caddyfile`, is `text`, which shows the code plain.
9
+ */
10
+ export declare function resolveCodeLang(info: string | undefined): CodeLang;
20
11
  export interface CodeToken {
21
12
  content: string;
22
13
  className: string;
23
14
  }
15
+ /** Tokens of `code` with their palette classes, one array per line; `null` for `text`, an unknown language or code over 200,000 characters. */
24
16
  export declare function highlight(code: string, lang: CodeLang): Promise<CodeToken[][] | null>;
25
- export {};
@@ -5,4 +5,4 @@ export type { JsonViewProps } from "./json-view.js";
5
5
  export { DiffView, KAESO_DIFF_VIEW_DEFAULT_VARIANTS, KAESO_DIFF_VIEW_VARIANTS } from "./diff-view.js";
6
6
  export type { DiffViewProps } from "./diff-view.js";
7
7
  export { kaesoShikiTheme } from "./kaeso-theme.js";
8
- export { highlight, CODE_LANGS, type CodeLang } from "./highlighter.js";
8
+ export { highlight, resolveCodeLang, CODE_LANGS, type CodeLang } from "./highlighter.js";
@@ -1,4 +1,7 @@
1
- export declare function codeTokenClass(color: string | undefined, fontStyle: number | undefined): string;
1
+ /**
2
+ * Kaeso's Shiki theme. Every colour is a `var(--k-code-…)` token, so light and dark switch through CSS without highlighting again.
3
+ * A deeper scope wins over the scope around it, which is how keys, interpolations and variables inside strings get their own colour.
4
+ */
2
5
  export declare const kaesoShikiTheme: {
3
6
  name: string;
4
7
  type: "light";
@@ -16,49 +19,112 @@ export declare const kaesoShikiTheme: {
16
19
  } | {
17
20
  scope: string[];
18
21
  settings: {
19
- foreground: "var(--k-text-tertiary)";
22
+ foreground: "var(--k-code-punctuation)";
23
+ background?: never;
24
+ fontStyle?: never;
25
+ };
26
+ } | {
27
+ scope: string[];
28
+ settings: {
29
+ foreground: "var(--k-code-keyword)";
30
+ background?: never;
31
+ fontStyle?: never;
32
+ };
33
+ } | {
34
+ scope: string[];
35
+ settings: {
36
+ foreground: "var(--k-code-string)";
37
+ background?: never;
38
+ fontStyle?: never;
39
+ };
40
+ } | {
41
+ scope: string[];
42
+ settings: {
43
+ foreground: "var(--k-code-constant)";
44
+ background?: never;
45
+ fontStyle?: never;
46
+ };
47
+ } | {
48
+ scope: string[];
49
+ settings: {
50
+ foreground: "var(--k-code-function)";
51
+ background?: never;
52
+ fontStyle?: never;
53
+ };
54
+ } | {
55
+ scope: string[];
56
+ settings: {
57
+ foreground: "var(--k-code-function)";
20
58
  fontStyle: string;
21
59
  background?: never;
22
60
  };
23
61
  } | {
24
62
  scope: string[];
25
63
  settings: {
26
- foreground: "var(--k-info-text)";
64
+ foreground: "var(--k-code-type)";
27
65
  background?: never;
28
66
  fontStyle?: never;
29
67
  };
30
68
  } | {
31
69
  scope: string[];
32
70
  settings: {
33
- foreground: "var(--k-warning-text)";
71
+ foreground: "var(--k-code-property)";
34
72
  background?: never;
35
73
  fontStyle?: never;
36
74
  };
37
75
  } | {
38
76
  scope: string[];
39
77
  settings: {
40
- foreground: "var(--k-text)";
78
+ foreground: "var(--k-code-tag)";
79
+ background?: never;
80
+ fontStyle?: never;
81
+ };
82
+ } | {
83
+ scope: string[];
84
+ settings: {
85
+ foreground: "var(--k-code-attribute)";
86
+ background?: never;
87
+ fontStyle?: never;
88
+ };
89
+ } | {
90
+ scope: string[];
91
+ settings: {
92
+ foreground: "var(--k-code-variable)";
93
+ background?: never;
94
+ fontStyle?: never;
95
+ };
96
+ } | {
97
+ scope: string[];
98
+ settings: {
99
+ foreground: "var(--k-code-comment)";
41
100
  fontStyle: string;
42
101
  background?: never;
43
102
  };
44
103
  } | {
45
104
  scope: string[];
46
105
  settings: {
47
- foreground: "var(--k-text-tertiary)";
106
+ foreground: "var(--k-code-inserted)";
48
107
  background?: never;
49
108
  fontStyle?: never;
50
109
  };
51
110
  } | {
52
111
  scope: string[];
53
112
  settings: {
54
- foreground: "var(--k-text)";
113
+ foreground: "var(--k-code-deleted)";
55
114
  background?: never;
56
115
  fontStyle?: never;
57
116
  };
58
117
  } | {
59
118
  scope: string[];
60
119
  settings: {
61
- foreground: "var(--k-text-secondary)";
120
+ fontStyle: string;
121
+ foreground?: never;
122
+ background?: never;
123
+ };
124
+ } | {
125
+ scope: string[];
126
+ settings: {
127
+ foreground: "var(--k-text)";
62
128
  background?: never;
63
129
  fontStyle?: never;
64
130
  };
@@ -0,0 +1,18 @@
1
+ import type { CodeLang, CodeToken } from "./highlighter.js";
2
+ type Highlighter = {
3
+ codeToTokens: (code: string, o: {
4
+ lang: string;
5
+ theme: string;
6
+ tokenizeMaxLineLength?: number | undefined;
7
+ }) => {
8
+ tokens: {
9
+ content: string;
10
+ color?: string | undefined;
11
+ fontStyle?: number | undefined;
12
+ }[][];
13
+ };
14
+ loadLanguage: (...l: unknown[]) => Promise<void>;
15
+ };
16
+ export declare function getHighlighter(): Promise<Highlighter>;
17
+ export declare function tokens(code: string, lang: Exclude<CodeLang, "text">): Promise<CodeToken[][]>;
18
+ export {};
@@ -0,0 +1,64 @@
1
+ export declare const TONES: {
2
+ readonly text: {
3
+ readonly color: "var(--k-text)";
4
+ readonly className: "";
5
+ };
6
+ readonly keyword: {
7
+ readonly color: "var(--k-code-keyword)";
8
+ readonly className: "text-code-keyword";
9
+ };
10
+ readonly string: {
11
+ readonly color: "var(--k-code-string)";
12
+ readonly className: "text-code-string";
13
+ };
14
+ readonly constant: {
15
+ readonly color: "var(--k-code-constant)";
16
+ readonly className: "text-code-constant";
17
+ };
18
+ readonly comment: {
19
+ readonly color: "var(--k-code-comment)";
20
+ readonly className: "text-code-comment";
21
+ };
22
+ readonly function: {
23
+ readonly color: "var(--k-code-function)";
24
+ readonly className: "text-code-function";
25
+ };
26
+ readonly type: {
27
+ readonly color: "var(--k-code-type)";
28
+ readonly className: "text-code-type";
29
+ };
30
+ readonly property: {
31
+ readonly color: "var(--k-code-property)";
32
+ readonly className: "text-code-property";
33
+ };
34
+ readonly tag: {
35
+ readonly color: "var(--k-code-tag)";
36
+ readonly className: "text-code-tag";
37
+ };
38
+ readonly attribute: {
39
+ readonly color: "var(--k-code-attribute)";
40
+ readonly className: "text-code-attribute";
41
+ };
42
+ readonly variable: {
43
+ readonly color: "var(--k-code-variable)";
44
+ readonly className: "text-code-variable";
45
+ };
46
+ readonly punctuation: {
47
+ readonly color: "var(--k-code-punctuation)";
48
+ readonly className: "text-code-punctuation";
49
+ };
50
+ readonly inserted: {
51
+ readonly color: "var(--k-code-inserted)";
52
+ readonly className: "text-code-inserted";
53
+ };
54
+ readonly deleted: {
55
+ readonly color: "var(--k-code-deleted)";
56
+ readonly className: "text-code-deleted";
57
+ };
58
+ };
59
+ /** A role of Kaeso's syntax palette, drawn with the `--k-code-<role>` token and the `text-code-<role>` class. */
60
+ export type CodeTone = Exclude<keyof typeof TONES, "text">;
61
+ /** The class that draws text in a role of the syntax palette. */
62
+ export declare function codeToneClass(tone: CodeTone): string;
63
+ /** The classes for a token Shiki coloured with the Kaeso theme: its palette colour, italic and bold. Plain text gets an empty string. */
64
+ export declare function codeTokenClass(color: string | undefined, fontStyle: number | undefined): string;
@@ -21,6 +21,10 @@ export declare const KAESO_COPY_BUTTON_VARIANTS: {
21
21
  readonly classes: "material-ghost";
22
22
  readonly description: "Inside fields and wells (default)";
23
23
  };
24
+ readonly quiet: {
25
+ readonly classes: "material-ghost text-fg-secondary hover:text-fg";
26
+ readonly description: "Secondary text until hovered: under a response, beside its metrics";
27
+ };
24
28
  readonly secondary: {
25
29
  readonly classes: "material-secondary";
26
30
  readonly description: "On its own";
@@ -0,0 +1,61 @@
1
+ import { type ReactNode } from "react";
2
+ export declare const KAESO_DASHBOARD_VARIANTS: {
3
+ readonly surface: {
4
+ readonly grid: {
5
+ readonly classes: "grid gap-1 overflow-hidden rounded-group bg-line shadow-xs forced-line";
6
+ readonly description: "Cells on one surface, split by hairlines like a StatGroup (default)";
7
+ };
8
+ };
9
+ };
10
+ export declare const KAESO_DASHBOARD_DEFAULT_VARIANTS: {
11
+ readonly surface: "grid";
12
+ };
13
+ export interface Change {
14
+ value: number;
15
+ better?: "up" | "down" | "none" | undefined;
16
+ }
17
+ export declare const Dashboard: import("react").ForwardRefExoticComponent<{
18
+ children: ReactNode;
19
+ columns?: 2 | 3 | 4 | 5 | 6 | 12 | undefined;
20
+ wideColumns?: 2 | 3 | 4 | 6 | 12 | undefined;
21
+ busy?: boolean | undefined;
22
+ headingLevel?: 2 | 3 | undefined;
23
+ "aria-label"?: string | undefined;
24
+ className?: string | undefined;
25
+ } & import("react").RefAttributes<HTMLDivElement>>;
26
+ export declare const DashboardCell: import("react").ForwardRefExoticComponent<{
27
+ title?: ReactNode | undefined;
28
+ href?: string | undefined;
29
+ actions?: ReactNode | undefined;
30
+ children?: ReactNode | undefined;
31
+ className?: string | undefined;
32
+ } & import("react").RefAttributes<HTMLElement>>;
33
+ export declare const CellInset: import("react").ForwardRefExoticComponent<{
34
+ children: ReactNode;
35
+ grow?: boolean | undefined;
36
+ } & import("react").RefAttributes<HTMLDivElement>>;
37
+ export interface ReadoutProps {
38
+ label?: ReactNode | undefined;
39
+ value: ReactNode;
40
+ unit?: ReactNode | undefined;
41
+ change?: Change | undefined;
42
+ detail?: ReactNode | undefined;
43
+ size?: keyof typeof KAESO_READOUT_VARIANTS.size | undefined;
44
+ loading?: boolean | undefined;
45
+ }
46
+ export declare const KAESO_READOUT_VARIANTS: {
47
+ readonly size: {
48
+ readonly md: {
49
+ readonly classes: "text-metric";
50
+ readonly description: "28/32: the cell's main number (default)";
51
+ };
52
+ readonly sm: {
53
+ readonly classes: "text-title";
54
+ readonly description: "20/28: a number beside another, under a small label";
55
+ };
56
+ };
57
+ };
58
+ export declare const KAESO_READOUT_DEFAULT_VARIANTS: {
59
+ readonly size: "md";
60
+ };
61
+ export declare const Readout: import("react").ForwardRefExoticComponent<ReadoutProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,92 @@
1
+ export declare const docs: {
2
+ Dashboard: {
3
+ description: string;
4
+ props: {
5
+ "aria-label": string;
6
+ busy: string;
7
+ headingLevel: string;
8
+ children: string;
9
+ wideColumns: string;
10
+ columns: string;
11
+ };
12
+ };
13
+ DashboardCell: {
14
+ description: string;
15
+ props: {
16
+ actions: string;
17
+ children: string;
18
+ href: string;
19
+ title: string;
20
+ };
21
+ };
22
+ CellInset: {
23
+ description: string;
24
+ props: {
25
+ children: string;
26
+ grow: string;
27
+ };
28
+ };
29
+ MetricTabs: {
30
+ description: string;
31
+ props: {
32
+ "aria-label": string;
33
+ controls: string;
34
+ items: string;
35
+ loading: string;
36
+ orientation: string;
37
+ onValueChange: string;
38
+ value: string;
39
+ };
40
+ };
41
+ Readout: {
42
+ description: string;
43
+ props: {
44
+ change: string;
45
+ detail: string;
46
+ label: string;
47
+ loading: string;
48
+ size: string;
49
+ unit: string;
50
+ value: string;
51
+ };
52
+ };
53
+ RankList: {
54
+ description: string;
55
+ props: {
56
+ "aria-label": string;
57
+ empty: string;
58
+ items: string;
59
+ loading: string;
60
+ onOpen: string;
61
+ rows: string;
62
+ };
63
+ };
64
+ ModelCard: {
65
+ description: string;
66
+ props: {
67
+ action: string;
68
+ badge: string;
69
+ detail: string;
70
+ facts: string;
71
+ model: string;
72
+ name: string;
73
+ mark: string;
74
+ };
75
+ };
76
+ Announcement: {
77
+ description: string;
78
+ props: {
79
+ actions: string;
80
+ art: string;
81
+ description: string;
82
+ eyebrow: string;
83
+ title: string;
84
+ };
85
+ };
86
+ Legend: {
87
+ description: string;
88
+ props: {
89
+ items: string;
90
+ };
91
+ };
92
+ };
@@ -0,0 +1,6 @@
1
+ export { CellInset, Dashboard, DashboardCell, KAESO_DASHBOARD_DEFAULT_VARIANTS, KAESO_DASHBOARD_VARIANTS, KAESO_READOUT_DEFAULT_VARIANTS, KAESO_READOUT_VARIANTS, Readout, } from "./dashboard.js";
2
+ export type { Change, ReadoutProps } from "./dashboard.js";
3
+ export { Legend, type LegendEntry } from "./legend.js";
4
+ export { Announcement, ModelCard, type ModelCardProps } from "./model-card.js";
5
+ export { RankList, type RankItem } from "./rank-list.js";
6
+ export { MetricTabs, type MetricTabItem } from "./metric-tabs.js";
@@ -0,0 +1,11 @@
1
+ import { type ReactNode } from "react";
2
+ export interface LegendEntry {
3
+ id: string;
4
+ label: ReactNode;
5
+ value?: ReactNode | undefined;
6
+ color: string;
7
+ dashed?: boolean | undefined;
8
+ }
9
+ export declare const Legend: import("react").ForwardRefExoticComponent<{
10
+ items: LegendEntry[];
11
+ } & import("react").RefAttributes<HTMLUListElement>>;
@@ -0,0 +1,22 @@
1
+ import { type ReactNode } from "react";
2
+ import type { Change } from "./dashboard.js";
3
+ export interface MetricTabItem {
4
+ id: string;
5
+ label: ReactNode;
6
+ value: ReactNode;
7
+ change?: Change | undefined;
8
+ detail?: ReactNode | undefined;
9
+ trend?: number[] | undefined;
10
+ trendColor?: string | undefined;
11
+ trendLabel?: string | undefined;
12
+ }
13
+ export declare const MetricTabs: import("react").ForwardRefExoticComponent<{
14
+ items: MetricTabItem[];
15
+ value: string;
16
+ onValueChange: (id: string) => void;
17
+ loading?: boolean | undefined;
18
+ "aria-label": string;
19
+ controls?: string | undefined;
20
+ orientation?: "horizontal" | "vertical" | undefined;
21
+ className?: string | undefined;
22
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,23 @@
1
+ import { type ReactNode } from "react";
2
+ export interface ModelCardProps {
3
+ mark: ReactNode;
4
+ name: string;
5
+ model: string;
6
+ badge?: ReactNode | undefined;
7
+ detail?: ReactNode | undefined;
8
+ facts?: {
9
+ label: ReactNode;
10
+ value: ReactNode;
11
+ }[] | undefined;
12
+ action?: ReactNode | undefined;
13
+ className?: string | undefined;
14
+ }
15
+ export declare const ModelCard: import("react").ForwardRefExoticComponent<ModelCardProps & import("react").RefAttributes<HTMLElement>>;
16
+ export declare const Announcement: import("react").ForwardRefExoticComponent<{
17
+ eyebrow?: ReactNode | undefined;
18
+ title: ReactNode;
19
+ description?: ReactNode | undefined;
20
+ actions?: ReactNode | undefined;
21
+ art?: ReactNode | undefined;
22
+ className?: string | undefined;
23
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -0,0 +1,21 @@
1
+ import { type ReactNode } from "react";
2
+ import type { Change } from "./dashboard.js";
3
+ export interface RankItem {
4
+ id: string;
5
+ label: ReactNode;
6
+ value?: ReactNode | undefined;
7
+ /** Draws the row's share of the largest row behind it; leave it out for a plain row. */
8
+ share?: number | undefined;
9
+ secondary?: ReactNode | undefined;
10
+ /** The row's change against the previous period, in a column of its own; a word such as "New" where there is nothing to compare with. */
11
+ change?: Change | string | undefined;
12
+ }
13
+ export declare const RankList: import("react").ForwardRefExoticComponent<{
14
+ items: RankItem[];
15
+ loading?: boolean | undefined;
16
+ rows?: number | undefined;
17
+ empty?: ReactNode | undefined;
18
+ onOpen?: ((id: string) => void) | undefined;
19
+ "aria-label": string;
20
+ className?: string | undefined;
21
+ } & import("react").RefAttributes<HTMLOListElement>>;
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ export declare const SwapValue: import("react").ForwardRefExoticComponent<{
3
+ children: ReactNode;
4
+ text: string;
5
+ className: string;
6
+ } & import("react").RefAttributes<HTMLSpanElement>>;
7
+ export declare const textOf: (n: ReactNode) => string;
@@ -75,4 +75,4 @@ export declare function withField(props: FieldWrapProps & {
75
75
  disabled?: boolean | undefined;
76
76
  invalid?: boolean | undefined;
77
77
  className?: string | undefined;
78
- }, control: ReactNode): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
78
+ }, control: ReactNode): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;