@logicplanes/kaeso-ui 0.1.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 (660) hide show
  1. package/AGENTS.md +124 -0
  2. package/CLAUDE.md +3 -0
  3. package/LICENSE +21 -0
  4. package/NOTICE.md +5 -0
  5. package/README.md +43 -0
  6. package/ai/component-guides.md +4760 -0
  7. package/ai/component-registry.json +12626 -0
  8. package/ai/component-registry.md +2950 -0
  9. package/ai/icons.md +28 -0
  10. package/ai/tokens.md +207 -0
  11. package/dist/blocks/delete-resource.js +35 -0
  12. package/dist/blocks/delete-resource.js.map +1 -0
  13. package/dist/blocks/pages.js +70 -0
  14. package/dist/blocks/pages.js.map +1 -0
  15. package/dist/blocks/resource-list.js +68 -0
  16. package/dist/blocks/resource-list.js.map +1 -0
  17. package/dist/chunks/app-frame-BBIMch8X.js +224 -0
  18. package/dist/chunks/app-frame-BBIMch8X.js.map +1 -0
  19. package/dist/chunks/arrow-focus-BcySmwwU.js +11 -0
  20. package/dist/chunks/arrow-focus-BcySmwwU.js.map +1 -0
  21. package/dist/chunks/avatar-D2nJNbtC.js +83 -0
  22. package/dist/chunks/avatar-D2nJNbtC.js.map +1 -0
  23. package/dist/chunks/badge-Dkyhs0_j.js +26 -0
  24. package/dist/chunks/badge-Dkyhs0_j.js.map +1 -0
  25. package/dist/chunks/banner-BiziJuBZ.js +85 -0
  26. package/dist/chunks/banner-BiziJuBZ.js.map +1 -0
  27. package/dist/chunks/button-BHKAE6ui.js +164 -0
  28. package/dist/chunks/button-BHKAE6ui.js.map +1 -0
  29. package/dist/chunks/calendar-B5SSTE56.js +104 -0
  30. package/dist/chunks/calendar-B5SSTE56.js.map +1 -0
  31. package/dist/chunks/checkbox-BgRdbfCE.js +124 -0
  32. package/dist/chunks/checkbox-BgRdbfCE.js.map +1 -0
  33. package/dist/chunks/cn-CidVUKMm.js +669 -0
  34. package/dist/chunks/cn-CidVUKMm.js.map +1 -0
  35. package/dist/chunks/code-DDyOlIFO.js +23 -0
  36. package/dist/chunks/code-DDyOlIFO.js.map +1 -0
  37. package/dist/chunks/code-block-BbK6E4Eo.js +273 -0
  38. package/dist/chunks/code-block-BbK6E4Eo.js.map +1 -0
  39. package/dist/chunks/collapsible-Cw_1aem5.js +87 -0
  40. package/dist/chunks/collapsible-Cw_1aem5.js.map +1 -0
  41. package/dist/chunks/combobox-D8pQk22r.js +291 -0
  42. package/dist/chunks/combobox-D8pQk22r.js.map +1 -0
  43. package/dist/chunks/context-BELWW79w.js +20 -0
  44. package/dist/chunks/context-BELWW79w.js.map +1 -0
  45. package/dist/chunks/copy-button-mAzHjYXq.js +109 -0
  46. package/dist/chunks/copy-button-mAzHjYXq.js.map +1 -0
  47. package/dist/chunks/core-Bgefcs3z.js +467 -0
  48. package/dist/chunks/core-Bgefcs3z.js.map +1 -0
  49. package/dist/chunks/date-popup-Er1oQwtU.js +35 -0
  50. package/dist/chunks/date-popup-Er1oQwtU.js.map +1 -0
  51. package/dist/chunks/de-BCg1eRVd.js +384 -0
  52. package/dist/chunks/de-BCg1eRVd.js.map +1 -0
  53. package/dist/chunks/dev-CR1p7gCm.js +30 -0
  54. package/dist/chunks/dev-CR1p7gCm.js.map +1 -0
  55. package/dist/chunks/dialog-CVqSVk3T.js +283 -0
  56. package/dist/chunks/dialog-CVqSVk3T.js.map +1 -0
  57. package/dist/chunks/empty-DIbBpytW.js +38 -0
  58. package/dist/chunks/empty-DIbBpytW.js.map +1 -0
  59. package/dist/chunks/field-d8V94bvZ.js +119 -0
  60. package/dist/chunks/field-d8V94bvZ.js.map +1 -0
  61. package/dist/chunks/field-press-DwzBFafd.js +10 -0
  62. package/dist/chunks/field-press-DwzBFafd.js.map +1 -0
  63. package/dist/chunks/i18n-0RW0IAf3.js +10 -0
  64. package/dist/chunks/i18n-0RW0IAf3.js.map +1 -0
  65. package/dist/chunks/icon-Bha63LaN.js +90 -0
  66. package/dist/chunks/icon-Bha63LaN.js.map +1 -0
  67. package/dist/chunks/icon-CeNQtobn.js +47 -0
  68. package/dist/chunks/icon-CeNQtobn.js.map +1 -0
  69. package/dist/chunks/icon-button-Bw67oKtx.js +50 -0
  70. package/dist/chunks/icon-button-Bw67oKtx.js.map +1 -0
  71. package/dist/chunks/identity-DQinp-Ep.js +342 -0
  72. package/dist/chunks/identity-DQinp-Ep.js.map +1 -0
  73. package/dist/chunks/input-Biakz6GB.js +114 -0
  74. package/dist/chunks/input-Biakz6GB.js.map +1 -0
  75. package/dist/chunks/input-group-DQqEPFj_.js +87 -0
  76. package/dist/chunks/input-group-DQqEPFj_.js.map +1 -0
  77. package/dist/chunks/inset-BLMdxX4I.js +18 -0
  78. package/dist/chunks/inset-BLMdxX4I.js.map +1 -0
  79. package/dist/chunks/iso-field-CznqNVrH.js +31 -0
  80. package/dist/chunks/iso-field-CznqNVrH.js.map +1 -0
  81. package/dist/chunks/json-view-B6KHIWzh.js +174 -0
  82. package/dist/chunks/json-view-B6KHIWzh.js.map +1 -0
  83. package/dist/chunks/kbd-CBcBDvqU.js +132 -0
  84. package/dist/chunks/kbd-CBcBDvqU.js.map +1 -0
  85. package/dist/chunks/labelled-D5udSPUI.js +16 -0
  86. package/dist/chunks/labelled-D5udSPUI.js.map +1 -0
  87. package/dist/chunks/link-provider---9JdxTg.js +27 -0
  88. package/dist/chunks/link-provider---9JdxTg.js.map +1 -0
  89. package/dist/chunks/link-tTapNTpM.js +47 -0
  90. package/dist/chunks/link-tTapNTpM.js.map +1 -0
  91. package/dist/chunks/list-CN8pO8lv.js +475 -0
  92. package/dist/chunks/list-CN8pO8lv.js.map +1 -0
  93. package/dist/chunks/loader-CUehxvSZ.js +57 -0
  94. package/dist/chunks/loader-CUehxvSZ.js.map +1 -0
  95. package/dist/chunks/logo-VmXYhIJL.js +149 -0
  96. package/dist/chunks/logo-VmXYhIJL.js.map +1 -0
  97. package/dist/chunks/markdown-C-iJsYnd.js +313 -0
  98. package/dist/chunks/markdown-C-iJsYnd.js.map +1 -0
  99. package/dist/chunks/menu-OURWt_hD.js +447 -0
  100. package/dist/chunks/menu-OURWt_hD.js.map +1 -0
  101. package/dist/chunks/message-BxTkh1oA.js +49 -0
  102. package/dist/chunks/message-BxTkh1oA.js.map +1 -0
  103. package/dist/chunks/meter-DWhyzFGQ.js +84 -0
  104. package/dist/chunks/meter-DWhyzFGQ.js.map +1 -0
  105. package/dist/chunks/page-header-BIRswR73.js +41 -0
  106. package/dist/chunks/page-header-BIRswR73.js.map +1 -0
  107. package/dist/chunks/pagination-DYdLm18-.js +85 -0
  108. package/dist/chunks/pagination-DYdLm18-.js.map +1 -0
  109. package/dist/chunks/popover-BE7VO-a4.js +50 -0
  110. package/dist/chunks/popover-BE7VO-a4.js.map +1 -0
  111. package/dist/chunks/popover-root-D3q89WNF.js +26 -0
  112. package/dist/chunks/popover-root-D3q89WNF.js.map +1 -0
  113. package/dist/chunks/portal-context-BBbzDKmY.js +33 -0
  114. package/dist/chunks/portal-context-BBbzDKmY.js.map +1 -0
  115. package/dist/chunks/radio-CUxbLCvD.js +110 -0
  116. package/dist/chunks/radio-CUxbLCvD.js.map +1 -0
  117. package/dist/chunks/range-popup-AbRzgHtY.js +111 -0
  118. package/dist/chunks/range-popup-AbRzgHtY.js.map +1 -0
  119. package/dist/chunks/restore-focus-Cap1Q-R3.js +19 -0
  120. package/dist/chunks/restore-focus-Cap1Q-R3.js.map +1 -0
  121. package/dist/chunks/rights-CXo7zEf6.js +279 -0
  122. package/dist/chunks/rights-CXo7zEf6.js.map +1 -0
  123. package/dist/chunks/safe-href-G5DBNVwm.js +13 -0
  124. package/dist/chunks/safe-href-G5DBNVwm.js.map +1 -0
  125. package/dist/chunks/scroll-parent-WXvzQcUo.js +14 -0
  126. package/dist/chunks/scroll-parent-WXvzQcUo.js.map +1 -0
  127. package/dist/chunks/section-XStLtXKa.js +87 -0
  128. package/dist/chunks/section-XStLtXKa.js.map +1 -0
  129. package/dist/chunks/segmented-CDTx2n29.js +113 -0
  130. package/dist/chunks/segmented-CDTx2n29.js.map +1 -0
  131. package/dist/chunks/select-Ca3HGsN1.js +223 -0
  132. package/dist/chunks/select-Ca3HGsN1.js.map +1 -0
  133. package/dist/chunks/separator-D5AzVFTS.js +45 -0
  134. package/dist/chunks/separator-D5AzVFTS.js.map +1 -0
  135. package/dist/chunks/sidebar-C4fL_KMm.js +599 -0
  136. package/dist/chunks/sidebar-C4fL_KMm.js.map +1 -0
  137. package/dist/chunks/sidebar-menu-sd9vCpDy.js +33 -0
  138. package/dist/chunks/sidebar-menu-sd9vCpDy.js.map +1 -0
  139. package/dist/chunks/skeleton-kfuqdl1a.js +36 -0
  140. package/dist/chunks/skeleton-kfuqdl1a.js.map +1 -0
  141. package/dist/chunks/slider-DbhjJ3ML.js +57 -0
  142. package/dist/chunks/slider-DbhjJ3ML.js.map +1 -0
  143. package/dist/chunks/status-dot-CBoQpyL4.js +25 -0
  144. package/dist/chunks/status-dot-CBoQpyL4.js.map +1 -0
  145. package/dist/chunks/styles-Btvg2DCf.js +21 -0
  146. package/dist/chunks/styles-Btvg2DCf.js.map +1 -0
  147. package/dist/chunks/swap-text-BhPI8DOf.js +28 -0
  148. package/dist/chunks/swap-text-BhPI8DOf.js.map +1 -0
  149. package/dist/chunks/switch-CztLhA8F.js +59 -0
  150. package/dist/chunks/switch-CztLhA8F.js.map +1 -0
  151. package/dist/chunks/table-DYKa86af.js +67 -0
  152. package/dist/chunks/table-DYKa86af.js.map +1 -0
  153. package/dist/chunks/tag-BsmQ1xPj.js +87 -0
  154. package/dist/chunks/tag-BsmQ1xPj.js.map +1 -0
  155. package/dist/chunks/text-BPglS3vq.js +63 -0
  156. package/dist/chunks/text-BPglS3vq.js.map +1 -0
  157. package/dist/chunks/textarea-Bvk7N2bh.js +156 -0
  158. package/dist/chunks/textarea-Bvk7N2bh.js.map +1 -0
  159. package/dist/chunks/theme-provider-mgUaQK7L.js +69 -0
  160. package/dist/chunks/theme-provider-mgUaQK7L.js.map +1 -0
  161. package/dist/chunks/tone-CWpsHPb6.js +11 -0
  162. package/dist/chunks/tone-CWpsHPb6.js.map +1 -0
  163. package/dist/chunks/toolbar-Dw3uxpsE.js +36 -0
  164. package/dist/chunks/toolbar-Dw3uxpsE.js.map +1 -0
  165. package/dist/chunks/tooltip-CDu00nzg.js +124 -0
  166. package/dist/chunks/tooltip-CDu00nzg.js.map +1 -0
  167. package/dist/chunks/tooltip-root-DWhtAtFb.js +60 -0
  168. package/dist/chunks/tooltip-root-DWhtAtFb.js.map +1 -0
  169. package/dist/chunks/use-controllable-B5Fd12Bx.js +13 -0
  170. package/dist/chunks/use-controllable-B5Fd12Bx.js.map +1 -0
  171. package/dist/chunks/use-copy-Dm2ncvMX.js +24 -0
  172. package/dist/chunks/use-copy-Dm2ncvMX.js.map +1 -0
  173. package/dist/chunks/use-layout-width-DZaLOQMT.js +27 -0
  174. package/dist/chunks/use-layout-width-DZaLOQMT.js.map +1 -0
  175. package/dist/chunks/use-scroll-margin-DWcfIXac.js +25 -0
  176. package/dist/chunks/use-scroll-margin-DWcfIXac.js.map +1 -0
  177. package/dist/chunks/use-truncated-DmQoePvG.js +25 -0
  178. package/dist/chunks/use-truncated-DmQoePvG.js.map +1 -0
  179. package/dist/chunks/utils-CdH72WEp.js +8 -0
  180. package/dist/chunks/utils-CdH72WEp.js.map +1 -0
  181. package/dist/chunks/virtual-rows-BgMdVelU.js +37 -0
  182. package/dist/chunks/virtual-rows-BgMdVelU.js.map +1 -0
  183. package/dist/chunks/when-idle-Cy3pinqO.js +12 -0
  184. package/dist/chunks/when-idle-Cy3pinqO.js.map +1 -0
  185. package/dist/chunks/zh-CN-cPjO1OOo.js +384 -0
  186. package/dist/chunks/zh-CN-cPjO1OOo.js.map +1 -0
  187. package/dist/components/app-frame.js +2 -0
  188. package/dist/components/avatar.js +2 -0
  189. package/dist/components/badge.js +2 -0
  190. package/dist/components/banner.js +2 -0
  191. package/dist/components/button-group.js +69 -0
  192. package/dist/components/button-group.js.map +1 -0
  193. package/dist/components/button.js +2 -0
  194. package/dist/components/calendar.js +2 -0
  195. package/dist/components/charts/bar.js +231 -0
  196. package/dist/components/charts/bar.js.map +1 -0
  197. package/dist/components/charts/donut.js +179 -0
  198. package/dist/components/charts/donut.js.map +1 -0
  199. package/dist/components/charts/gauge.js +70 -0
  200. package/dist/components/charts/gauge.js.map +1 -0
  201. package/dist/components/charts/heatmap.js +83 -0
  202. package/dist/components/charts/heatmap.js.map +1 -0
  203. package/dist/components/charts/sankey.js +110 -0
  204. package/dist/components/charts/sankey.js.map +1 -0
  205. package/dist/components/charts/sparkline.js +72 -0
  206. package/dist/components/charts/sparkline.js.map +1 -0
  207. package/dist/components/charts/timeseries.js +253 -0
  208. package/dist/components/charts/timeseries.js.map +1 -0
  209. package/dist/components/charts.js +10 -0
  210. package/dist/components/checkbox.js +2 -0
  211. package/dist/components/code-block.js +4 -0
  212. package/dist/components/code.js +2 -0
  213. package/dist/components/collapsible.js +2 -0
  214. package/dist/components/combobox.js +2 -0
  215. package/dist/components/command-palette.js +216 -0
  216. package/dist/components/command-palette.js.map +1 -0
  217. package/dist/components/copy-button.js +2 -0
  218. package/dist/components/data-table.js +399 -0
  219. package/dist/components/data-table.js.map +1 -0
  220. package/dist/components/date-picker.js +327 -0
  221. package/dist/components/date-picker.js.map +1 -0
  222. package/dist/components/dialog.js +178 -0
  223. package/dist/components/dialog.js.map +1 -0
  224. package/dist/components/display-options.js +112 -0
  225. package/dist/components/display-options.js.map +1 -0
  226. package/dist/components/empty.js +2 -0
  227. package/dist/components/field.js +2 -0
  228. package/dist/components/filter-chip.js +120 -0
  229. package/dist/components/filter-chip.js.map +1 -0
  230. package/dist/components/filter-row.js +35 -0
  231. package/dist/components/filter-row.js.map +1 -0
  232. package/dist/components/flow.js +111 -0
  233. package/dist/components/flow.js.map +1 -0
  234. package/dist/components/heading.js +28 -0
  235. package/dist/components/heading.js.map +1 -0
  236. package/dist/components/icon-button.js +2 -0
  237. package/dist/components/icon.js +4 -0
  238. package/dist/components/input.js +181 -0
  239. package/dist/components/input.js.map +1 -0
  240. package/dist/components/kaeso/conversation.js +204 -0
  241. package/dist/components/kaeso/conversation.js.map +1 -0
  242. package/dist/components/kaeso/identity.js +2 -0
  243. package/dist/components/kaeso/moments.js +122 -0
  244. package/dist/components/kaeso/moments.js.map +1 -0
  245. package/dist/components/kaeso/rights.js +2 -0
  246. package/dist/components/kaeso/usage.js +101 -0
  247. package/dist/components/kaeso/usage.js.map +1 -0
  248. package/dist/components/kaeso.js +186 -0
  249. package/dist/components/kaeso.js.map +1 -0
  250. package/dist/components/kbd.js +2 -0
  251. package/dist/components/key-value.js +73 -0
  252. package/dist/components/key-value.js.map +1 -0
  253. package/dist/components/label.js +26 -0
  254. package/dist/components/label.js.map +1 -0
  255. package/dist/components/layout.js +72 -0
  256. package/dist/components/layout.js.map +1 -0
  257. package/dist/components/link.js +2 -0
  258. package/dist/components/list.js +2 -0
  259. package/dist/components/loader.js +38 -0
  260. package/dist/components/loader.js.map +1 -0
  261. package/dist/components/logo.js +2 -0
  262. package/dist/components/markdown.js +4 -0
  263. package/dist/components/menu.js +4 -0
  264. package/dist/components/meter.js +2 -0
  265. package/dist/components/page-header.js +2 -0
  266. package/dist/components/pagination.js +2 -0
  267. package/dist/components/playground.js +813 -0
  268. package/dist/components/playground.js.map +1 -0
  269. package/dist/components/popover.js +53 -0
  270. package/dist/components/popover.js.map +1 -0
  271. package/dist/components/portal.js +15 -0
  272. package/dist/components/portal.js.map +1 -0
  273. package/dist/components/qr-code.js +38 -0
  274. package/dist/components/qr-code.js.map +1 -0
  275. package/dist/components/radio.js +2 -0
  276. package/dist/components/scroll-area.js +35 -0
  277. package/dist/components/scroll-area.js.map +1 -0
  278. package/dist/components/section.js +2 -0
  279. package/dist/components/segmented.js +2 -0
  280. package/dist/components/select.js +2 -0
  281. package/dist/components/separator.js +2 -0
  282. package/dist/components/settings.js +99 -0
  283. package/dist/components/settings.js.map +1 -0
  284. package/dist/components/sheet.js +94 -0
  285. package/dist/components/sheet.js.map +1 -0
  286. package/dist/components/sidebar.js +2 -0
  287. package/dist/components/skeleton.js +2 -0
  288. package/dist/components/slider.js +2 -0
  289. package/dist/components/stat.js +195 -0
  290. package/dist/components/stat.js.map +1 -0
  291. package/dist/components/status-dot.js +2 -0
  292. package/dist/components/surface.js +26 -0
  293. package/dist/components/surface.js.map +1 -0
  294. package/dist/components/swap-text.js +2 -0
  295. package/dist/components/switch.js +2 -0
  296. package/dist/components/table.js +2 -0
  297. package/dist/components/tabs.js +96 -0
  298. package/dist/components/tabs.js.map +1 -0
  299. package/dist/components/tag.js +2 -0
  300. package/dist/components/text.js +2 -0
  301. package/dist/components/theme-menu.js +50 -0
  302. package/dist/components/theme-menu.js.map +1 -0
  303. package/dist/components/timeline.js +58 -0
  304. package/dist/components/timeline.js.map +1 -0
  305. package/dist/components/toast.js +214 -0
  306. package/dist/components/toast.js.map +1 -0
  307. package/dist/components/toc.js +48 -0
  308. package/dist/components/toc.js.map +1 -0
  309. package/dist/components/toolbar.js +2 -0
  310. package/dist/components/tooltip.js +18 -0
  311. package/dist/components/tooltip.js.map +1 -0
  312. package/dist/components/visually-hidden.js +17 -0
  313. package/dist/components/visually-hidden.js.map +1 -0
  314. package/dist/fonts/LICENSE-GeistMono.txt +93 -0
  315. package/dist/fonts/LICENSE-Inter.txt +93 -0
  316. package/dist/fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  317. package/dist/fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  318. package/dist/fonts/inter-latin-ext-opsz-normal.woff2 +0 -0
  319. package/dist/fonts/inter-latin-opsz-normal.woff2 +0 -0
  320. package/dist/fonts.css +40 -0
  321. package/dist/format.js +178 -0
  322. package/dist/format.js.map +1 -0
  323. package/dist/i18n-locales.js +23 -0
  324. package/dist/i18n-locales.js.map +1 -0
  325. package/dist/i18n-provider.js +30 -0
  326. package/dist/i18n-provider.js.map +1 -0
  327. package/dist/i18n.js +7 -0
  328. package/dist/index.js +153 -0
  329. package/dist/kaeso.css +1099 -0
  330. package/dist/styles.css +2 -0
  331. package/dist/tailwind.css +10 -0
  332. package/dist/theme.js +2 -0
  333. package/dist/types/blocks/delete-resource/delete-resource.d.ts +32 -0
  334. package/dist/types/blocks/delete-resource/docs.d.ts +17 -0
  335. package/dist/types/blocks/delete-resource/index.d.ts +1 -0
  336. package/dist/types/blocks/pages/docs.d.ts +42 -0
  337. package/dist/types/blocks/pages/index.d.ts +1 -0
  338. package/dist/types/blocks/pages/pages.d.ts +65 -0
  339. package/dist/types/blocks/resource-list/docs.d.ts +15 -0
  340. package/dist/types/blocks/resource-list/index.d.ts +1 -0
  341. package/dist/types/blocks/resource-list/resource-list.d.ts +36 -0
  342. package/dist/types/component-docs.d.ts +7 -0
  343. package/dist/types/components/app-frame/app-frame.d.ts +79 -0
  344. package/dist/types/components/app-frame/docs.d.ts +23 -0
  345. package/dist/types/components/app-frame/index.d.ts +1 -0
  346. package/dist/types/components/avatar/avatar.d.ts +60 -0
  347. package/dist/types/components/avatar/docs.d.ts +21 -0
  348. package/dist/types/components/avatar/index.d.ts +1 -0
  349. package/dist/types/components/badge/badge.d.ts +41 -0
  350. package/dist/types/components/badge/docs.d.ts +9 -0
  351. package/dist/types/components/badge/index.d.ts +1 -0
  352. package/dist/types/components/banner/banner.d.ts +51 -0
  353. package/dist/types/components/banner/docs.d.ts +14 -0
  354. package/dist/types/components/banner/index.d.ts +1 -0
  355. package/dist/types/components/button/button.d.ts +116 -0
  356. package/dist/types/components/button/docs.d.ts +23 -0
  357. package/dist/types/components/button/index.d.ts +1 -0
  358. package/dist/types/components/button-group/button-group.d.ts +55 -0
  359. package/dist/types/components/button-group/docs.d.ts +11 -0
  360. package/dist/types/components/button-group/index.d.ts +1 -0
  361. package/dist/types/components/calendar/calendar.d.ts +32 -0
  362. package/dist/types/components/calendar/docs.d.ts +16 -0
  363. package/dist/types/components/calendar/index.d.ts +1 -0
  364. package/dist/types/components/charts/bar.d.ts +39 -0
  365. package/dist/types/components/charts/core.d.ts +167 -0
  366. package/dist/types/components/charts/docs.d.ts +174 -0
  367. package/dist/types/components/charts/donut.d.ts +67 -0
  368. package/dist/types/components/charts/gauge.d.ts +20 -0
  369. package/dist/types/components/charts/heatmap.d.ts +24 -0
  370. package/dist/types/components/charts/index.d.ts +8 -0
  371. package/dist/types/components/charts/sankey.d.ts +29 -0
  372. package/dist/types/components/charts/sparkline.d.ts +18 -0
  373. package/dist/types/components/charts/timeseries.d.ts +47 -0
  374. package/dist/types/components/checkbox/checkbox.d.ts +53 -0
  375. package/dist/types/components/checkbox/docs.d.ts +58 -0
  376. package/dist/types/components/checkbox/index.d.ts +1 -0
  377. package/dist/types/components/code/code.d.ts +24 -0
  378. package/dist/types/components/code/docs.d.ts +8 -0
  379. package/dist/types/components/code/index.d.ts +1 -0
  380. package/dist/types/components/code-block/code-block.d.ts +37 -0
  381. package/dist/types/components/code-block/docs.d.ts +41 -0
  382. package/dist/types/components/code-block/highlighter.d.ts +23 -0
  383. package/dist/types/components/code-block/index.d.ts +4 -0
  384. package/dist/types/components/code-block/json-view.d.ts +23 -0
  385. package/dist/types/components/code-block/kaeso-theme.d.ts +66 -0
  386. package/dist/types/components/collapsible/collapsible.d.ts +39 -0
  387. package/dist/types/components/collapsible/docs.d.ts +21 -0
  388. package/dist/types/components/collapsible/index.d.ts +1 -0
  389. package/dist/types/components/combobox/combobox.d.ts +86 -0
  390. package/dist/types/components/combobox/docs.d.ts +62 -0
  391. package/dist/types/components/combobox/index.d.ts +1 -0
  392. package/dist/types/components/command-palette/command-palette.d.ts +44 -0
  393. package/dist/types/components/command-palette/docs.d.ts +17 -0
  394. package/dist/types/components/command-palette/index.d.ts +1 -0
  395. package/dist/types/components/copy-button/copy-button.d.ts +85 -0
  396. package/dist/types/components/copy-button/docs.d.ts +30 -0
  397. package/dist/types/components/copy-button/index.d.ts +1 -0
  398. package/dist/types/components/data-table/columns.d.ts +47 -0
  399. package/dist/types/components/data-table/data-table.d.ts +80 -0
  400. package/dist/types/components/data-table/docs.d.ts +32 -0
  401. package/dist/types/components/data-table/index.d.ts +3 -0
  402. package/dist/types/components/date-picker/date-picker.d.ts +55 -0
  403. package/dist/types/components/date-picker/date-popup.d.ts +9 -0
  404. package/dist/types/components/date-picker/docs.d.ts +73 -0
  405. package/dist/types/components/date-picker/index.d.ts +2 -0
  406. package/dist/types/components/date-picker/iso-field.d.ts +5 -0
  407. package/dist/types/components/date-picker/range-popup.d.ts +13 -0
  408. package/dist/types/components/date-picker/time-input.d.ts +39 -0
  409. package/dist/types/components/dialog/dialog.d.ts +118 -0
  410. package/dist/types/components/dialog/docs.d.ts +70 -0
  411. package/dist/types/components/dialog/focus.d.ts +2 -0
  412. package/dist/types/components/dialog/index.d.ts +2 -0
  413. package/dist/types/components/dialog/step-dialog.d.ts +26 -0
  414. package/dist/types/components/display-options/display-options.d.ts +55 -0
  415. package/dist/types/components/display-options/docs.d.ts +14 -0
  416. package/dist/types/components/display-options/index.d.ts +1 -0
  417. package/dist/types/components/empty/docs.d.ts +12 -0
  418. package/dist/types/components/empty/empty.d.ts +29 -0
  419. package/dist/types/components/empty/index.d.ts +1 -0
  420. package/dist/types/components/field/docs.d.ts +20 -0
  421. package/dist/types/components/field/field.d.ts +78 -0
  422. package/dist/types/components/field/index.d.ts +1 -0
  423. package/dist/types/components/filter-chip/docs.d.ts +19 -0
  424. package/dist/types/components/filter-chip/filter-chip.d.ts +37 -0
  425. package/dist/types/components/filter-chip/index.d.ts +1 -0
  426. package/dist/types/components/filter-row/docs.d.ts +11 -0
  427. package/dist/types/components/filter-row/filter-row.d.ts +23 -0
  428. package/dist/types/components/filter-row/index.d.ts +1 -0
  429. package/dist/types/components/flow/docs.d.ts +12 -0
  430. package/dist/types/components/flow/flow.d.ts +34 -0
  431. package/dist/types/components/flow/index.d.ts +1 -0
  432. package/dist/types/components/heading/docs.d.ts +10 -0
  433. package/dist/types/components/heading/heading.d.ts +30 -0
  434. package/dist/types/components/heading/index.d.ts +1 -0
  435. package/dist/types/components/icon/docs.d.ts +10 -0
  436. package/dist/types/components/icon/icon.d.ts +37 -0
  437. package/dist/types/components/icon/index.d.ts +2 -0
  438. package/dist/types/components/icon-button/docs.d.ts +17 -0
  439. package/dist/types/components/icon-button/icon-button.d.ts +75 -0
  440. package/dist/types/components/icon-button/index.d.ts +1 -0
  441. package/dist/types/components/input/decimal.d.ts +11 -0
  442. package/dist/types/components/input/docs.d.ts +149 -0
  443. package/dist/types/components/input/index.d.ts +8 -0
  444. package/dist/types/components/input/input-group.d.ts +55 -0
  445. package/dist/types/components/input/input.d.ts +45 -0
  446. package/dist/types/components/input/number-input.d.ts +28 -0
  447. package/dist/types/components/input/otp-input.d.ts +27 -0
  448. package/dist/types/components/input/sensitive-input.d.ts +21 -0
  449. package/dist/types/components/input/tag-input.d.ts +27 -0
  450. package/dist/types/components/input/textarea.d.ts +25 -0
  451. package/dist/types/components/kaeso/conversation.d.ts +58 -0
  452. package/dist/types/components/kaeso/docs.d.ts +139 -0
  453. package/dist/types/components/kaeso/effective-access.d.ts +21 -0
  454. package/dist/types/components/kaeso/identity.d.ts +70 -0
  455. package/dist/types/components/kaeso/index.d.ts +8 -0
  456. package/dist/types/components/kaeso/moments.d.ts +30 -0
  457. package/dist/types/components/kaeso/provider-marks.d.ts +1 -0
  458. package/dist/types/components/kaeso/rights-logic.d.ts +13 -0
  459. package/dist/types/components/kaeso/rights.d.ts +69 -0
  460. package/dist/types/components/kaeso/role-picker.d.ts +38 -0
  461. package/dist/types/components/kaeso/usage.d.ts +35 -0
  462. package/dist/types/components/kbd/docs.d.ts +16 -0
  463. package/dist/types/components/kbd/index.d.ts +1 -0
  464. package/dist/types/components/kbd/kbd.d.ts +31 -0
  465. package/dist/types/components/key-value/docs.d.ts +10 -0
  466. package/dist/types/components/key-value/index.d.ts +1 -0
  467. package/dist/types/components/key-value/key-value.d.ts +50 -0
  468. package/dist/types/components/label/docs.d.ts +10 -0
  469. package/dist/types/components/label/index.d.ts +1 -0
  470. package/dist/types/components/label/label.d.ts +22 -0
  471. package/dist/types/components/layout/docs.d.ts +30 -0
  472. package/dist/types/components/layout/index.d.ts +1 -0
  473. package/dist/types/components/layout/layout.d.ts +100 -0
  474. package/dist/types/components/link/docs.d.ts +11 -0
  475. package/dist/types/components/link/index.d.ts +1 -0
  476. package/dist/types/components/link/link.d.ts +27 -0
  477. package/dist/types/components/list/docs.d.ts +75 -0
  478. package/dist/types/components/list/index.d.ts +1 -0
  479. package/dist/types/components/list/list.d.ts +119 -0
  480. package/dist/types/components/list/row-checkbox.d.ts +5 -0
  481. package/dist/types/components/list/virtual-rows.d.ts +10 -0
  482. package/dist/types/components/loader/docs.d.ts +21 -0
  483. package/dist/types/components/loader/index.d.ts +2 -0
  484. package/dist/types/components/loader/loader.d.ts +35 -0
  485. package/dist/types/components/loader/status.d.ts +55 -0
  486. package/dist/types/components/logo/docs.d.ts +10 -0
  487. package/dist/types/components/logo/index.d.ts +1 -0
  488. package/dist/types/components/logo/logo.d.ts +59 -0
  489. package/dist/types/components/logo/paths.d.ts +16 -0
  490. package/dist/types/components/markdown/docs.d.ts +15 -0
  491. package/dist/types/components/markdown/index.d.ts +1 -0
  492. package/dist/types/components/markdown/markdown.d.ts +54 -0
  493. package/dist/types/components/menu/docs.d.ts +19 -0
  494. package/dist/types/components/menu/index.d.ts +2 -0
  495. package/dist/types/components/menu/menu.d.ts +213 -0
  496. package/dist/types/components/menu/styles.d.ts +7 -0
  497. package/dist/types/components/meter/docs.d.ts +23 -0
  498. package/dist/types/components/meter/index.d.ts +1 -0
  499. package/dist/types/components/meter/meter.d.ts +51 -0
  500. package/dist/types/components/page-header/docs.d.ts +12 -0
  501. package/dist/types/components/page-header/index.d.ts +1 -0
  502. package/dist/types/components/page-header/page-header.d.ts +22 -0
  503. package/dist/types/components/pagination/docs.d.ts +17 -0
  504. package/dist/types/components/pagination/index.d.ts +1 -0
  505. package/dist/types/components/pagination/pagination.d.ts +33 -0
  506. package/dist/types/components/playground/compare-grid.d.ts +41 -0
  507. package/dist/types/components/playground/composer.d.ts +40 -0
  508. package/dist/types/components/playground/docs.d.ts +141 -0
  509. package/dist/types/components/playground/index.d.ts +7 -0
  510. package/dist/types/components/playground/model-picker.d.ts +37 -0
  511. package/dist/types/components/playground/parameter-panel.d.ts +52 -0
  512. package/dist/types/components/playground/prompt-suggestions.d.ts +23 -0
  513. package/dist/types/components/playground/response-metrics.d.ts +30 -0
  514. package/dist/types/components/playground/response-view.d.ts +55 -0
  515. package/dist/types/components/popover/docs.d.ts +21 -0
  516. package/dist/types/components/popover/hover-card.d.ts +24 -0
  517. package/dist/types/components/popover/index.d.ts +2 -0
  518. package/dist/types/components/popover/popover-root.d.ts +24 -0
  519. package/dist/types/components/popover/popover.d.ts +40 -0
  520. package/dist/types/components/portal/docs.d.ts +9 -0
  521. package/dist/types/components/portal/index.d.ts +1 -0
  522. package/dist/types/components/portal/portal.d.ts +11 -0
  523. package/dist/types/components/qr-code/docs.d.ts +10 -0
  524. package/dist/types/components/qr-code/index.d.ts +1 -0
  525. package/dist/types/components/qr-code/qr-code.d.ts +22 -0
  526. package/dist/types/components/radio/docs.d.ts +42 -0
  527. package/dist/types/components/radio/index.d.ts +1 -0
  528. package/dist/types/components/radio/labelled.d.ts +13 -0
  529. package/dist/types/components/radio/radio.d.ts +51 -0
  530. package/dist/types/components/scroll-area/docs.d.ts +11 -0
  531. package/dist/types/components/scroll-area/index.d.ts +1 -0
  532. package/dist/types/components/scroll-area/scroll-area.d.ts +28 -0
  533. package/dist/types/components/section/docs.d.ts +28 -0
  534. package/dist/types/components/section/index.d.ts +1 -0
  535. package/dist/types/components/section/section.d.ts +37 -0
  536. package/dist/types/components/segmented/docs.d.ts +15 -0
  537. package/dist/types/components/segmented/index.d.ts +1 -0
  538. package/dist/types/components/segmented/segmented.d.ts +37 -0
  539. package/dist/types/components/select/docs.d.ts +32 -0
  540. package/dist/types/components/select/index.d.ts +1 -0
  541. package/dist/types/components/select/select.d.ts +82 -0
  542. package/dist/types/components/separator/docs.d.ts +10 -0
  543. package/dist/types/components/separator/index.d.ts +1 -0
  544. package/dist/types/components/separator/separator.d.ts +33 -0
  545. package/dist/types/components/settings/docs.d.ts +32 -0
  546. package/dist/types/components/settings/index.d.ts +1 -0
  547. package/dist/types/components/settings/settings.d.ts +45 -0
  548. package/dist/types/components/sheet/docs.d.ts +20 -0
  549. package/dist/types/components/sheet/index.d.ts +1 -0
  550. package/dist/types/components/sheet/sheet.d.ts +51 -0
  551. package/dist/types/components/sidebar/docs.d.ts +20 -0
  552. package/dist/types/components/sidebar/index.d.ts +1 -0
  553. package/dist/types/components/sidebar/sidebar-menu.d.ts +16 -0
  554. package/dist/types/components/sidebar/sidebar.d.ts +178 -0
  555. package/dist/types/components/skeleton/docs.d.ts +14 -0
  556. package/dist/types/components/skeleton/index.d.ts +1 -0
  557. package/dist/types/components/skeleton/skeleton.d.ts +31 -0
  558. package/dist/types/components/slider/docs.d.ts +20 -0
  559. package/dist/types/components/slider/index.d.ts +1 -0
  560. package/dist/types/components/slider/slider.d.ts +29 -0
  561. package/dist/types/components/stat/docs.d.ts +35 -0
  562. package/dist/types/components/stat/index.d.ts +1 -0
  563. package/dist/types/components/stat/stat.d.ts +68 -0
  564. package/dist/types/components/status-dot/docs.d.ts +18 -0
  565. package/dist/types/components/status-dot/index.d.ts +1 -0
  566. package/dist/types/components/status-dot/status-dot.d.ts +36 -0
  567. package/dist/types/components/surface/docs.d.ts +8 -0
  568. package/dist/types/components/surface/index.d.ts +1 -0
  569. package/dist/types/components/surface/surface.d.ts +44 -0
  570. package/dist/types/components/swap-text/docs.d.ts +10 -0
  571. package/dist/types/components/swap-text/index.d.ts +1 -0
  572. package/dist/types/components/swap-text/swap-text.d.ts +22 -0
  573. package/dist/types/components/switch/docs.d.ts +21 -0
  574. package/dist/types/components/switch/index.d.ts +1 -0
  575. package/dist/types/components/switch/switch.d.ts +39 -0
  576. package/dist/types/components/table/docs.d.ts +6 -0
  577. package/dist/types/components/table/index.d.ts +1 -0
  578. package/dist/types/components/table/table.d.ts +30 -0
  579. package/dist/types/components/tabs/docs.d.ts +22 -0
  580. package/dist/types/components/tabs/index.d.ts +1 -0
  581. package/dist/types/components/tabs/tabs.d.ts +61 -0
  582. package/dist/types/components/tag/docs.d.ts +30 -0
  583. package/dist/types/components/tag/index.d.ts +1 -0
  584. package/dist/types/components/tag/tag.d.ts +63 -0
  585. package/dist/types/components/text/docs.d.ts +15 -0
  586. package/dist/types/components/text/index.d.ts +1 -0
  587. package/dist/types/components/text/text.d.ts +111 -0
  588. package/dist/types/components/theme-menu/docs.d.ts +9 -0
  589. package/dist/types/components/theme-menu/index.d.ts +1 -0
  590. package/dist/types/components/theme-menu/theme-menu.d.ts +22 -0
  591. package/dist/types/components/timeline/docs.d.ts +8 -0
  592. package/dist/types/components/timeline/index.d.ts +1 -0
  593. package/dist/types/components/timeline/timeline.d.ts +41 -0
  594. package/dist/types/components/toast/docs.d.ts +26 -0
  595. package/dist/types/components/toast/index.d.ts +1 -0
  596. package/dist/types/components/toast/toast.d.ts +91 -0
  597. package/dist/types/components/toc/docs.d.ts +10 -0
  598. package/dist/types/components/toc/index.d.ts +1 -0
  599. package/dist/types/components/toc/toc.d.ts +27 -0
  600. package/dist/types/components/toolbar/docs.d.ts +9 -0
  601. package/dist/types/components/toolbar/index.d.ts +1 -0
  602. package/dist/types/components/toolbar/toolbar.d.ts +28 -0
  603. package/dist/types/components/tooltip/docs.d.ts +33 -0
  604. package/dist/types/components/tooltip/index.d.ts +2 -0
  605. package/dist/types/components/tooltip/tooltip-provider.d.ts +8 -0
  606. package/dist/types/components/tooltip/tooltip-root.d.ts +9 -0
  607. package/dist/types/components/tooltip/tooltip.d.ts +60 -0
  608. package/dist/types/components/tooltip/trigger-props.d.ts +23 -0
  609. package/dist/types/components/visually-hidden/docs.d.ts +6 -0
  610. package/dist/types/components/visually-hidden/index.d.ts +1 -0
  611. package/dist/types/components/visually-hidden/visually-hidden.d.ts +4 -0
  612. package/dist/types/format/index.d.ts +26 -0
  613. package/dist/types/hooks/scroll-parent.d.ts +1 -0
  614. package/dist/types/hooks/use-copy.d.ts +4 -0
  615. package/dist/types/hooks/use-indicator.d.ts +9 -0
  616. package/dist/types/hooks/use-layout-width.d.ts +3 -0
  617. package/dist/types/hooks/use-scroll-margin.d.ts +2 -0
  618. package/dist/types/hooks/use-stored-state.d.ts +1 -0
  619. package/dist/types/hooks/use-truncated.d.ts +2 -0
  620. package/dist/types/i18n/context.d.ts +11 -0
  621. package/dist/types/i18n/index.d.ts +5 -0
  622. package/dist/types/i18n/locale-names.d.ts +2 -0
  623. package/dist/types/i18n/locale-tags.d.ts +4 -0
  624. package/dist/types/i18n/locales/de.d.ts +2 -0
  625. package/dist/types/i18n/locales/en.d.ts +2 -0
  626. package/dist/types/i18n/locales/zh-CN.d.ts +2 -0
  627. package/dist/types/i18n/message.d.ts +2 -0
  628. package/dist/types/i18n/provider.d.ts +10 -0
  629. package/dist/types/icons/groups.d.ts +8 -0
  630. package/dist/types/icons/vocabulary.d.ts +413 -0
  631. package/dist/types/index.d.ts +79 -0
  632. package/dist/types/theme/index.d.ts +1 -0
  633. package/dist/types/theme/theme-provider.d.ts +22 -0
  634. package/dist/types/utils/arrow-focus.d.ts +2 -0
  635. package/dist/types/utils/cn.d.ts +370 -0
  636. package/dist/types/utils/dev.d.ts +4 -0
  637. package/dist/types/utils/field-press.d.ts +2 -0
  638. package/dist/types/utils/index.d.ts +8 -0
  639. package/dist/types/utils/inset.d.ts +6 -0
  640. package/dist/types/utils/lazy-module.d.ts +8 -0
  641. package/dist/types/utils/link-provider.d.ts +15 -0
  642. package/dist/types/utils/portal-context.d.ts +10 -0
  643. package/dist/types/utils/restore-focus.d.ts +4 -0
  644. package/dist/types/utils/safe-href.d.ts +1 -0
  645. package/dist/types/utils/tone.d.ts +2 -0
  646. package/dist/types/utils/use-controllable.d.ts +1 -0
  647. package/dist/types/utils/variants.d.ts +5 -0
  648. package/dist/types/utils/when-idle.d.ts +1 -0
  649. package/dist/utils.js +9 -0
  650. package/foundations/accessibility.md +41 -0
  651. package/foundations/color.md +40 -0
  652. package/foundations/elevation.md +23 -0
  653. package/foundations/icons.md +14 -0
  654. package/foundations/motion.md +39 -0
  655. package/foundations/psychology.md +36 -0
  656. package/foundations/shape.md +41 -0
  657. package/foundations/tokens.md +24 -0
  658. package/foundations/typography.md +35 -0
  659. package/foundations/writing.md +39 -0
  660. package/package.json +144 -0
@@ -0,0 +1,9 @@
1
+ import { type TooltipProps } from "./tooltip.js";
2
+ import type { TriggerProps, TriggerPropsStore } from "./trigger-props.js";
3
+ export declare function TooltipRoot({ content, shortcut, triggerProps, side, shape, open, defaultOpen, onOpenChange, disabled, delay, sideOffset, }: TooltipProps & {
4
+ triggerProps: TriggerPropsStore;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare namespace TooltipRoot {
7
+ var displayName: string;
8
+ }
9
+ export declare function mergeTriggerProps(given: TriggerProps, own: object): object;
@@ -0,0 +1,60 @@
1
+ import { type ReactElement, type ReactNode } from "react";
2
+ export declare const KAESO_TOOLTIP_VARIANTS: {
3
+ readonly side: {
4
+ readonly top: {
5
+ readonly classes: "";
6
+ readonly description: "Above the trigger (default)";
7
+ };
8
+ readonly bottom: {
9
+ readonly classes: "";
10
+ readonly description: "Below the trigger";
11
+ };
12
+ readonly left: {
13
+ readonly classes: "";
14
+ readonly description: "Left of the trigger";
15
+ };
16
+ readonly right: {
17
+ readonly classes: "";
18
+ readonly description: "Right of the trigger";
19
+ };
20
+ };
21
+ readonly shape: {
22
+ readonly pill: {
23
+ readonly classes: "rounded-pill h-32 px-12 whitespace-nowrap";
24
+ readonly description: "Single line: a pill (default)";
25
+ };
26
+ readonly multiline: {
27
+ readonly classes: "rounded-tooltip px-12 py-8 max-w-280 text-pretty";
28
+ readonly description: "Several lines: radius 12, max 280px";
29
+ };
30
+ };
31
+ };
32
+ export declare const KAESO_TOOLTIP_DEFAULT_VARIANTS: {
33
+ readonly side: "top";
34
+ readonly shape: "pill";
35
+ };
36
+ export interface TooltipProps {
37
+ content: ReactNode;
38
+ shortcut?: string[] | string[][] | undefined;
39
+ children: ReactElement;
40
+ side?: keyof typeof KAESO_TOOLTIP_VARIANTS.side | undefined;
41
+ shape?: keyof typeof KAESO_TOOLTIP_VARIANTS.shape | undefined;
42
+ open?: boolean | undefined;
43
+ defaultOpen?: boolean | undefined;
44
+ onOpenChange?: ((open: boolean) => void) | undefined;
45
+ disabled?: boolean | undefined;
46
+ delay?: number | undefined;
47
+ sideOffset?: number | undefined;
48
+ }
49
+ export declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare namespace Tooltip {
51
+ var displayName: string;
52
+ }
53
+ export declare function TooltipSurface({ children, shortcut, shape, }: {
54
+ children: ReactNode;
55
+ shortcut?: string[] | string[][] | undefined;
56
+ shape?: keyof typeof KAESO_TOOLTIP_VARIANTS.shape | undefined;
57
+ }): import("react/jsx-runtime").JSX.Element;
58
+ export declare namespace TooltipSurface {
59
+ var displayName: string;
60
+ }
@@ -0,0 +1,23 @@
1
+ import { type HTMLAttributes, type ReactElement, type Ref, type RefCallback } from "react";
2
+ export type TriggerProps = HTMLAttributes<Element> & {
3
+ ref?: Ref<Element> | undefined;
4
+ };
5
+ export interface TriggerPropsStore {
6
+ get: () => TriggerProps | null;
7
+ set: (props: TriggerProps | null) => void;
8
+ subscribe: (listener: () => void) => () => void;
9
+ ref: RefCallback<Element>;
10
+ }
11
+ export declare function triggerPropsStore(): TriggerPropsStore;
12
+ export declare function setRef<T>(ref: Ref<T> | undefined, value: T): (() => void) | undefined;
13
+ export declare function HandedTrigger({ store, merge, extra, children, }: {
14
+ store: TriggerPropsStore;
15
+ merge: ((given: TriggerProps, own: object) => object) | undefined;
16
+ extra?: object | undefined;
17
+ children: ReactElement;
18
+ }): ReactElement<{
19
+ ref?: Ref<Element> | undefined;
20
+ }, string | import("react").JSXElementConstructor<any>>;
21
+ export declare namespace HandedTrigger {
22
+ var displayName: string;
23
+ }
@@ -0,0 +1,6 @@
1
+ export declare const docs: {
2
+ VisuallyHidden: {
3
+ description: string;
4
+ props: {};
5
+ };
6
+ };
@@ -0,0 +1 @@
1
+ export * from "./visually-hidden.js";
@@ -0,0 +1,4 @@
1
+ import { type HTMLAttributes } from "react";
2
+ export declare const KAESO_VISUALLY_HIDDEN_VARIANTS: {};
3
+ export declare const KAESO_VISUALLY_HIDDEN_DEFAULT_VARIANTS: {};
4
+ export declare const VisuallyHidden: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,26 @@
1
+ export declare function setFormatLocale(locale: string, messages?: Readonly<Record<string, string>>): void;
2
+ export declare function formatLocale(): string;
3
+ export declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
4
+ export declare function formatTokens(value: number): string;
5
+ export declare function formatBytes(bytes: number): string;
6
+ export declare function formatPercent(ratio: number, digits?: number): string;
7
+ export declare function formatUSD(amount: string, options?: {
8
+ significant?: number;
9
+ decimals?: number;
10
+ }): string;
11
+ export declare function formatDuration(ms: number, options?: {
12
+ precise?: boolean | undefined;
13
+ }): string;
14
+ type DateInput = Date | string | number;
15
+ export declare function formatDate(value: DateInput, options?: {
16
+ time?: boolean;
17
+ utc?: boolean;
18
+ seconds?: boolean;
19
+ }): string;
20
+ export declare function formatDateRange(from: DateInput, to: DateInput): string;
21
+ export declare function formatISODate(value: DateInput, options?: {
22
+ utc?: boolean | undefined;
23
+ }): string;
24
+ export declare function parseISODate(text: string): Date | null;
25
+ export declare function formatRelative(value: DateInput, now?: DateInput): string;
26
+ export {};
@@ -0,0 +1 @@
1
+ export declare function scrollParent(el: HTMLElement | null): HTMLElement | null;
@@ -0,0 +1,4 @@
1
+ export declare function useCopy(duration?: number): {
2
+ copied: boolean;
3
+ copy: (text: string) => Promise<boolean>;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { type RefObject } from "react";
2
+ export declare function useIndicator(container: RefObject<HTMLElement | null>, selector: string, layout: string): {
3
+ x: number;
4
+ y: number;
5
+ w: number;
6
+ h: number;
7
+ ready: boolean;
8
+ animate: boolean;
9
+ };
@@ -0,0 +1,3 @@
1
+ import { type RefObject } from "react";
2
+ export declare function useLayoutWidth(ref: RefObject<HTMLElement | null>, enabled?: boolean): number | null;
3
+ export declare function anchorWidthStyle(width: number | null): Record<string, string> | undefined;
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from "react";
2
+ export declare function useScrollMargin(ref: RefObject<HTMLElement | null>, getScrollElement: () => HTMLElement | null, count: number): number;
@@ -0,0 +1 @@
1
+ export declare function useStoredState<T>(key: string | undefined, initial: T): [T, (v: T) => void];
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from "react";
2
+ export declare function useTruncated<T extends HTMLElement>(ref: RefObject<T | null>, enabled?: boolean): boolean;
@@ -0,0 +1,11 @@
1
+ import { type MessageValues } from "./message.js";
2
+ export type UiMessages = Readonly<Record<string, string>>;
3
+ export interface LocaleValue {
4
+ locale: string;
5
+ messages: UiMessages;
6
+ }
7
+ export declare const LocaleContext: import("react").Context<LocaleValue>;
8
+ export declare function useLocale(): string;
9
+ export type UiText = (key: string, english: string, values?: MessageValues) => string;
10
+ export declare function useUiText(): UiText;
11
+ export declare const englishText: UiText;
@@ -0,0 +1,5 @@
1
+ export { formatMessage, type MessageValues } from "./message.js";
2
+ export { englishText, useLocale, useUiText, type UiMessages, type UiText } from "./context.js";
3
+ export { LocaleProvider, loadUiMessages, resolveUiLocale } from "./provider.js";
4
+ export { UI_LOCALE_NAMES } from "./locale-names.js";
5
+ export { matchUiLocale, preferredUiLocale, UI_LOCALES, type UiLocale } from "./locale-tags.js";
@@ -0,0 +1,2 @@
1
+ import type { UiLocale } from "./locale-tags.js";
2
+ export declare const UI_LOCALE_NAMES: Readonly<Record<UiLocale, string>>;
@@ -0,0 +1,4 @@
1
+ export declare const UI_LOCALES: readonly ["en", "de", "zh-CN"];
2
+ export type UiLocale = (typeof UI_LOCALES)[number];
3
+ export declare function matchUiLocale(tag: string): UiLocale | undefined;
4
+ export declare function preferredUiLocale(tags: readonly string[]): UiLocale;
@@ -0,0 +1,2 @@
1
+ declare const de: Readonly<Record<string, string>>;
2
+ export default de;
@@ -0,0 +1,2 @@
1
+ declare const en: Readonly<Record<string, string>>;
2
+ export default en;
@@ -0,0 +1,2 @@
1
+ declare const zhCN: Readonly<Record<string, string>>;
2
+ export default zhCN;
@@ -0,0 +1,2 @@
1
+ export type MessageValues = Record<string, string | number>;
2
+ export declare function formatMessage(template: string, values: MessageValues | undefined, locale: string, number?: number): string;
@@ -0,0 +1,10 @@
1
+ import { type ReactNode } from "react";
2
+ import { type UiMessages } from "./context.js";
3
+ import { type UiLocale } from "./locale-tags.js";
4
+ export declare function LocaleProvider({ locale, messages, children }: {
5
+ locale: string;
6
+ messages?: UiMessages | undefined;
7
+ children: ReactNode;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export declare function resolveUiLocale(locale: string): UiLocale;
10
+ export declare function loadUiMessages(locale: string): Promise<UiMessages>;
@@ -0,0 +1,8 @@
1
+ export declare const ICON_GROUPS: {
2
+ readonly "Kaeso objects": readonly ["key", "providerKey", "project", "organization", "model", "playground", "alias", "limit", "budget", "requestLog", "usage", "member", "members", "serviceAccount", "settings", "audit", "instance", "provider", "route", "gateway", "database", "security", "session", "overview", "chart", "home"];
3
+ readonly Capabilities: readonly ["tools", "reasoning", "vision", "pdf", "structuredOutput"];
4
+ readonly Actions: readonly ["signOut", "copy", "externalLink", "openExternal", "add", "close", "edit", "delete", "download", "upload", "refresh", "retry", "search", "filter", "displayOptions", "more", "menu", "sort", "switcher", "expand", "collapse", "show", "hide", "reveal", "sidebar", "sidePanel", "list", "board", "stack"];
5
+ readonly Status: readonly ["check", "success", "warning", "error", "info", "minus", "notification"];
6
+ readonly Navigation: readonly ["chevronDown", "chevronUp", "chevronLeft", "chevronRight", "arrowRight"];
7
+ readonly Misc: readonly ["calendar", "time", "code", "mail", "keyboard", "help", "github", "themeLight", "themeDark", "themeSystem"];
8
+ };
@@ -0,0 +1,413 @@
1
+ export declare const icons: {
2
+ readonly key: [string, {
3
+ [key: string]: string | number;
4
+ }][] | readonly (readonly [string, {
5
+ readonly [key: string]: string | number;
6
+ }])[];
7
+ readonly providerKey: [string, {
8
+ [key: string]: string | number;
9
+ }][] | readonly (readonly [string, {
10
+ readonly [key: string]: string | number;
11
+ }])[];
12
+ readonly project: [string, {
13
+ [key: string]: string | number;
14
+ }][] | readonly (readonly [string, {
15
+ readonly [key: string]: string | number;
16
+ }])[];
17
+ readonly organization: [string, {
18
+ [key: string]: string | number;
19
+ }][] | readonly (readonly [string, {
20
+ readonly [key: string]: string | number;
21
+ }])[];
22
+ readonly model: [string, {
23
+ [key: string]: string | number;
24
+ }][] | readonly (readonly [string, {
25
+ readonly [key: string]: string | number;
26
+ }])[];
27
+ readonly playground: [string, {
28
+ [key: string]: string | number;
29
+ }][] | readonly (readonly [string, {
30
+ readonly [key: string]: string | number;
31
+ }])[];
32
+ readonly alias: [string, {
33
+ [key: string]: string | number;
34
+ }][] | readonly (readonly [string, {
35
+ readonly [key: string]: string | number;
36
+ }])[];
37
+ readonly limit: [string, {
38
+ [key: string]: string | number;
39
+ }][] | readonly (readonly [string, {
40
+ readonly [key: string]: string | number;
41
+ }])[];
42
+ readonly budget: [string, {
43
+ [key: string]: string | number;
44
+ }][] | readonly (readonly [string, {
45
+ readonly [key: string]: string | number;
46
+ }])[];
47
+ readonly requestLog: [string, {
48
+ [key: string]: string | number;
49
+ }][] | readonly (readonly [string, {
50
+ readonly [key: string]: string | number;
51
+ }])[];
52
+ readonly usage: [string, {
53
+ [key: string]: string | number;
54
+ }][] | readonly (readonly [string, {
55
+ readonly [key: string]: string | number;
56
+ }])[];
57
+ readonly member: [string, {
58
+ [key: string]: string | number;
59
+ }][] | readonly (readonly [string, {
60
+ readonly [key: string]: string | number;
61
+ }])[];
62
+ readonly members: [string, {
63
+ [key: string]: string | number;
64
+ }][] | readonly (readonly [string, {
65
+ readonly [key: string]: string | number;
66
+ }])[];
67
+ readonly serviceAccount: [string, {
68
+ [key: string]: string | number;
69
+ }][] | readonly (readonly [string, {
70
+ readonly [key: string]: string | number;
71
+ }])[];
72
+ readonly settings: [string, {
73
+ [key: string]: string | number;
74
+ }][] | readonly (readonly [string, {
75
+ readonly [key: string]: string | number;
76
+ }])[];
77
+ readonly audit: [string, {
78
+ [key: string]: string | number;
79
+ }][] | readonly (readonly [string, {
80
+ readonly [key: string]: string | number;
81
+ }])[];
82
+ readonly instance: [string, {
83
+ [key: string]: string | number;
84
+ }][] | readonly (readonly [string, {
85
+ readonly [key: string]: string | number;
86
+ }])[];
87
+ readonly provider: [string, {
88
+ [key: string]: string | number;
89
+ }][] | readonly (readonly [string, {
90
+ readonly [key: string]: string | number;
91
+ }])[];
92
+ readonly route: [string, {
93
+ [key: string]: string | number;
94
+ }][] | readonly (readonly [string, {
95
+ readonly [key: string]: string | number;
96
+ }])[];
97
+ readonly gateway: [string, {
98
+ [key: string]: string | number;
99
+ }][] | readonly (readonly [string, {
100
+ readonly [key: string]: string | number;
101
+ }])[];
102
+ readonly database: [string, {
103
+ [key: string]: string | number;
104
+ }][] | readonly (readonly [string, {
105
+ readonly [key: string]: string | number;
106
+ }])[];
107
+ readonly security: [string, {
108
+ [key: string]: string | number;
109
+ }][] | readonly (readonly [string, {
110
+ readonly [key: string]: string | number;
111
+ }])[];
112
+ readonly session: [string, {
113
+ [key: string]: string | number;
114
+ }][] | readonly (readonly [string, {
115
+ readonly [key: string]: string | number;
116
+ }])[];
117
+ readonly overview: [string, {
118
+ [key: string]: string | number;
119
+ }][] | readonly (readonly [string, {
120
+ readonly [key: string]: string | number;
121
+ }])[];
122
+ readonly chart: [string, {
123
+ [key: string]: string | number;
124
+ }][] | readonly (readonly [string, {
125
+ readonly [key: string]: string | number;
126
+ }])[];
127
+ readonly home: [string, {
128
+ [key: string]: string | number;
129
+ }][] | readonly (readonly [string, {
130
+ readonly [key: string]: string | number;
131
+ }])[];
132
+ readonly tools: [string, {
133
+ [key: string]: string | number;
134
+ }][] | readonly (readonly [string, {
135
+ readonly [key: string]: string | number;
136
+ }])[];
137
+ readonly reasoning: [string, {
138
+ [key: string]: string | number;
139
+ }][] | readonly (readonly [string, {
140
+ readonly [key: string]: string | number;
141
+ }])[];
142
+ readonly vision: [string, {
143
+ [key: string]: string | number;
144
+ }][] | readonly (readonly [string, {
145
+ readonly [key: string]: string | number;
146
+ }])[];
147
+ readonly pdf: [string, {
148
+ [key: string]: string | number;
149
+ }][] | readonly (readonly [string, {
150
+ readonly [key: string]: string | number;
151
+ }])[];
152
+ readonly structuredOutput: [string, {
153
+ [key: string]: string | number;
154
+ }][] | readonly (readonly [string, {
155
+ readonly [key: string]: string | number;
156
+ }])[];
157
+ readonly signOut: [string, {
158
+ [key: string]: string | number;
159
+ }][] | readonly (readonly [string, {
160
+ readonly [key: string]: string | number;
161
+ }])[];
162
+ readonly copy: [string, {
163
+ [key: string]: string | number;
164
+ }][] | readonly (readonly [string, {
165
+ readonly [key: string]: string | number;
166
+ }])[];
167
+ readonly externalLink: [string, {
168
+ [key: string]: string | number;
169
+ }][] | readonly (readonly [string, {
170
+ readonly [key: string]: string | number;
171
+ }])[];
172
+ readonly openExternal: [string, {
173
+ [key: string]: string | number;
174
+ }][] | readonly (readonly [string, {
175
+ readonly [key: string]: string | number;
176
+ }])[];
177
+ readonly add: [string, {
178
+ [key: string]: string | number;
179
+ }][] | readonly (readonly [string, {
180
+ readonly [key: string]: string | number;
181
+ }])[];
182
+ readonly close: [string, {
183
+ [key: string]: string | number;
184
+ }][] | readonly (readonly [string, {
185
+ readonly [key: string]: string | number;
186
+ }])[];
187
+ readonly edit: [string, {
188
+ [key: string]: string | number;
189
+ }][] | readonly (readonly [string, {
190
+ readonly [key: string]: string | number;
191
+ }])[];
192
+ readonly delete: [string, {
193
+ [key: string]: string | number;
194
+ }][] | readonly (readonly [string, {
195
+ readonly [key: string]: string | number;
196
+ }])[];
197
+ readonly download: [string, {
198
+ [key: string]: string | number;
199
+ }][] | readonly (readonly [string, {
200
+ readonly [key: string]: string | number;
201
+ }])[];
202
+ readonly upload: [string, {
203
+ [key: string]: string | number;
204
+ }][] | readonly (readonly [string, {
205
+ readonly [key: string]: string | number;
206
+ }])[];
207
+ readonly refresh: [string, {
208
+ [key: string]: string | number;
209
+ }][] | readonly (readonly [string, {
210
+ readonly [key: string]: string | number;
211
+ }])[];
212
+ readonly retry: [string, {
213
+ [key: string]: string | number;
214
+ }][] | readonly (readonly [string, {
215
+ readonly [key: string]: string | number;
216
+ }])[];
217
+ readonly search: [string, {
218
+ [key: string]: string | number;
219
+ }][] | readonly (readonly [string, {
220
+ readonly [key: string]: string | number;
221
+ }])[];
222
+ readonly filter: [string, {
223
+ [key: string]: string | number;
224
+ }][] | readonly (readonly [string, {
225
+ readonly [key: string]: string | number;
226
+ }])[];
227
+ readonly displayOptions: [string, {
228
+ [key: string]: string | number;
229
+ }][] | readonly (readonly [string, {
230
+ readonly [key: string]: string | number;
231
+ }])[];
232
+ readonly more: [string, {
233
+ [key: string]: string | number;
234
+ }][] | readonly (readonly [string, {
235
+ readonly [key: string]: string | number;
236
+ }])[];
237
+ readonly menu: [string, {
238
+ [key: string]: string | number;
239
+ }][] | readonly (readonly [string, {
240
+ readonly [key: string]: string | number;
241
+ }])[];
242
+ readonly sort: [string, {
243
+ [key: string]: string | number;
244
+ }][] | readonly (readonly [string, {
245
+ readonly [key: string]: string | number;
246
+ }])[];
247
+ readonly switcher: [string, {
248
+ [key: string]: string | number;
249
+ }][] | readonly (readonly [string, {
250
+ readonly [key: string]: string | number;
251
+ }])[];
252
+ readonly expand: [string, {
253
+ [key: string]: string | number;
254
+ }][] | readonly (readonly [string, {
255
+ readonly [key: string]: string | number;
256
+ }])[];
257
+ readonly collapse: [string, {
258
+ [key: string]: string | number;
259
+ }][] | readonly (readonly [string, {
260
+ readonly [key: string]: string | number;
261
+ }])[];
262
+ readonly show: [string, {
263
+ [key: string]: string | number;
264
+ }][] | readonly (readonly [string, {
265
+ readonly [key: string]: string | number;
266
+ }])[];
267
+ readonly hide: [string, {
268
+ [key: string]: string | number;
269
+ }][] | readonly (readonly [string, {
270
+ readonly [key: string]: string | number;
271
+ }])[];
272
+ readonly reveal: [string, {
273
+ [key: string]: string | number;
274
+ }][] | readonly (readonly [string, {
275
+ readonly [key: string]: string | number;
276
+ }])[];
277
+ readonly sidebar: [string, {
278
+ [key: string]: string | number;
279
+ }][] | readonly (readonly [string, {
280
+ readonly [key: string]: string | number;
281
+ }])[];
282
+ readonly sidePanel: [string, {
283
+ [key: string]: string | number;
284
+ }][] | readonly (readonly [string, {
285
+ readonly [key: string]: string | number;
286
+ }])[];
287
+ readonly list: [string, {
288
+ [key: string]: string | number;
289
+ }][] | readonly (readonly [string, {
290
+ readonly [key: string]: string | number;
291
+ }])[];
292
+ readonly board: [string, {
293
+ [key: string]: string | number;
294
+ }][] | readonly (readonly [string, {
295
+ readonly [key: string]: string | number;
296
+ }])[];
297
+ readonly stack: [string, {
298
+ [key: string]: string | number;
299
+ }][] | readonly (readonly [string, {
300
+ readonly [key: string]: string | number;
301
+ }])[];
302
+ readonly check: [string, {
303
+ [key: string]: string | number;
304
+ }][] | readonly (readonly [string, {
305
+ readonly [key: string]: string | number;
306
+ }])[];
307
+ readonly success: [string, {
308
+ [key: string]: string | number;
309
+ }][] | readonly (readonly [string, {
310
+ readonly [key: string]: string | number;
311
+ }])[];
312
+ readonly warning: [string, {
313
+ [key: string]: string | number;
314
+ }][] | readonly (readonly [string, {
315
+ readonly [key: string]: string | number;
316
+ }])[];
317
+ readonly error: [string, {
318
+ [key: string]: string | number;
319
+ }][] | readonly (readonly [string, {
320
+ readonly [key: string]: string | number;
321
+ }])[];
322
+ readonly info: [string, {
323
+ [key: string]: string | number;
324
+ }][] | readonly (readonly [string, {
325
+ readonly [key: string]: string | number;
326
+ }])[];
327
+ readonly minus: [string, {
328
+ [key: string]: string | number;
329
+ }][] | readonly (readonly [string, {
330
+ readonly [key: string]: string | number;
331
+ }])[];
332
+ readonly notification: [string, {
333
+ [key: string]: string | number;
334
+ }][] | readonly (readonly [string, {
335
+ readonly [key: string]: string | number;
336
+ }])[];
337
+ readonly chevronDown: [string, {
338
+ [key: string]: string | number;
339
+ }][] | readonly (readonly [string, {
340
+ readonly [key: string]: string | number;
341
+ }])[];
342
+ readonly chevronUp: [string, {
343
+ [key: string]: string | number;
344
+ }][] | readonly (readonly [string, {
345
+ readonly [key: string]: string | number;
346
+ }])[];
347
+ readonly chevronLeft: [string, {
348
+ [key: string]: string | number;
349
+ }][] | readonly (readonly [string, {
350
+ readonly [key: string]: string | number;
351
+ }])[];
352
+ readonly chevronRight: [string, {
353
+ [key: string]: string | number;
354
+ }][] | readonly (readonly [string, {
355
+ readonly [key: string]: string | number;
356
+ }])[];
357
+ readonly arrowRight: [string, {
358
+ [key: string]: string | number;
359
+ }][] | readonly (readonly [string, {
360
+ readonly [key: string]: string | number;
361
+ }])[];
362
+ readonly calendar: [string, {
363
+ [key: string]: string | number;
364
+ }][] | readonly (readonly [string, {
365
+ readonly [key: string]: string | number;
366
+ }])[];
367
+ readonly time: [string, {
368
+ [key: string]: string | number;
369
+ }][] | readonly (readonly [string, {
370
+ readonly [key: string]: string | number;
371
+ }])[];
372
+ readonly code: [string, {
373
+ [key: string]: string | number;
374
+ }][] | readonly (readonly [string, {
375
+ readonly [key: string]: string | number;
376
+ }])[];
377
+ readonly mail: [string, {
378
+ [key: string]: string | number;
379
+ }][] | readonly (readonly [string, {
380
+ readonly [key: string]: string | number;
381
+ }])[];
382
+ readonly keyboard: [string, {
383
+ [key: string]: string | number;
384
+ }][] | readonly (readonly [string, {
385
+ readonly [key: string]: string | number;
386
+ }])[];
387
+ readonly help: [string, {
388
+ [key: string]: string | number;
389
+ }][] | readonly (readonly [string, {
390
+ readonly [key: string]: string | number;
391
+ }])[];
392
+ readonly github: [string, {
393
+ [key: string]: string | number;
394
+ }][] | readonly (readonly [string, {
395
+ readonly [key: string]: string | number;
396
+ }])[];
397
+ readonly themeLight: [string, {
398
+ [key: string]: string | number;
399
+ }][] | readonly (readonly [string, {
400
+ readonly [key: string]: string | number;
401
+ }])[];
402
+ readonly themeDark: [string, {
403
+ [key: string]: string | number;
404
+ }][] | readonly (readonly [string, {
405
+ readonly [key: string]: string | number;
406
+ }])[];
407
+ readonly themeSystem: [string, {
408
+ [key: string]: string | number;
409
+ }][] | readonly (readonly [string, {
410
+ readonly [key: string]: string | number;
411
+ }])[];
412
+ };
413
+ export type IconName = keyof typeof icons;