@logicplanes/kaeso-ui 0.4.1 → 0.4.3

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 (372) hide show
  1. package/NOTICE.md +1 -1
  2. package/ai/component-guides.md +333 -21
  3. package/ai/component-registry.json +631 -32
  4. package/ai/component-registry.md +164 -28
  5. package/ai/icons.md +3 -3
  6. package/ai/tokens.md +1 -1
  7. package/dist/blocks/delete-resource.js +15 -14
  8. package/dist/blocks/delete-resource.js.map +1 -1
  9. package/dist/blocks/pages.js +5 -5
  10. package/dist/blocks/resource-list.js +42 -41
  11. package/dist/blocks/resource-list.js.map +1 -1
  12. package/dist/chunks/agent-avatar-0pdBTWkR.js +171 -0
  13. package/dist/chunks/agent-avatar-0pdBTWkR.js.map +1 -0
  14. package/dist/chunks/{app-frame-DZPEf2NQ.js → app-frame-DogGRmsu.js} +23 -22
  15. package/dist/chunks/app-frame-DogGRmsu.js.map +1 -0
  16. package/dist/chunks/{avatar-HnvBUoe5.js → avatar-CWbdwbJv.js} +2 -2
  17. package/dist/chunks/{avatar-HnvBUoe5.js.map → avatar-CWbdwbJv.js.map} +1 -1
  18. package/dist/chunks/{badge-CM8ahjDR.js → badge-C2KtxCLB.js} +2 -2
  19. package/dist/chunks/{badge-CM8ahjDR.js.map → badge-C2KtxCLB.js.map} +1 -1
  20. package/dist/chunks/{banner-CvYgPwCc.js → banner-BA2ALw9M.js} +4 -4
  21. package/dist/chunks/{banner-CvYgPwCc.js.map → banner-BA2ALw9M.js.map} +1 -1
  22. package/dist/chunks/{button-9q66Ta23.js → button-CzuxqawA.js} +8 -8
  23. package/dist/chunks/{button-9q66Ta23.js.map → button-CzuxqawA.js.map} +1 -1
  24. package/dist/chunks/{calendar-CeNcqLFd.js → calendar-BWaf2MXc.js} +58 -42
  25. package/dist/chunks/calendar-BWaf2MXc.js.map +1 -0
  26. package/dist/chunks/{checkbox-C_DrNA2N.js → checkbox-CQjwCPkc.js} +12 -10
  27. package/dist/chunks/checkbox-CQjwCPkc.js.map +1 -0
  28. package/dist/chunks/{cn-Isw2DnQX.js → cn-Dj6sRgkF.js} +8 -1
  29. package/dist/chunks/cn-Dj6sRgkF.js.map +1 -0
  30. package/dist/chunks/{code-block-mEH6Sy3h.js → code-block-D5A-CGXG.js} +75 -54
  31. package/dist/chunks/code-block-D5A-CGXG.js.map +1 -0
  32. package/dist/chunks/{code-Bp2p9AuD.js → code-tqj0uhBL.js} +2 -2
  33. package/dist/chunks/{code-Bp2p9AuD.js.map → code-tqj0uhBL.js.map} +1 -1
  34. package/dist/chunks/{collapsible-CtQNJn9b.js → collapsible-CKrCX_T9.js} +3 -3
  35. package/dist/chunks/{collapsible-CtQNJn9b.js.map → collapsible-CKrCX_T9.js.map} +1 -1
  36. package/dist/chunks/combobox-DjDI7SUC.js +319 -0
  37. package/dist/chunks/combobox-DjDI7SUC.js.map +1 -0
  38. package/dist/chunks/{command-list-CzMbdtJs.js → command-list-C2Y7V_lt.js} +54 -54
  39. package/dist/chunks/command-list-C2Y7V_lt.js.map +1 -0
  40. package/dist/chunks/{copy-button-Cdea0wKl.js → copy-button-FJvPJn72.js} +5 -5
  41. package/dist/chunks/{copy-button-Cdea0wKl.js.map → copy-button-FJvPJn72.js.map} +1 -1
  42. package/dist/chunks/{core-FtMDNELx.js → core-BYns5ytV.js} +146 -140
  43. package/dist/chunks/core-BYns5ytV.js.map +1 -0
  44. package/dist/chunks/{date-popup-NytWvSNh.js → date-popup-CPA_zt6o.js} +4 -4
  45. package/dist/chunks/{date-popup-NytWvSNh.js.map → date-popup-CPA_zt6o.js.map} +1 -1
  46. package/dist/chunks/{de-BnNQtBSV.js → de-CPXJh9cq.js} +3 -1
  47. package/dist/chunks/de-CPXJh9cq.js.map +1 -0
  48. package/dist/chunks/dialog-Cg9A_6SF.js +383 -0
  49. package/dist/chunks/dialog-Cg9A_6SF.js.map +1 -0
  50. package/dist/chunks/{empty-By1qTJr6.js → empty-DvhyMXQq.js} +2 -2
  51. package/dist/chunks/{empty-By1qTJr6.js.map → empty-DvhyMXQq.js.map} +1 -1
  52. package/dist/chunks/{field-DfITT6Jm.js → field-TviMvYa2.js} +2 -2
  53. package/dist/chunks/{field-DfITT6Jm.js.map → field-TviMvYa2.js.map} +1 -1
  54. package/dist/chunks/{icon-D5uD_mnL.js → icon-D7ja-_Yk.js} +2 -2
  55. package/dist/chunks/{icon-D5uD_mnL.js.map → icon-D7ja-_Yk.js.map} +1 -1
  56. package/dist/chunks/icon-DVooQfk4.js +94 -0
  57. package/dist/chunks/icon-DVooQfk4.js.map +1 -0
  58. package/dist/chunks/{icon-button-C7Du4pvb.js → icon-button-CrdF_eMG.js} +3 -3
  59. package/dist/chunks/{icon-button-C7Du4pvb.js.map → icon-button-CrdF_eMG.js.map} +1 -1
  60. package/dist/chunks/{identity-BcVQd-7H.js → identity-BmhQ6BQ-.js} +18 -18
  61. package/dist/chunks/identity-BmhQ6BQ-.js.map +1 -0
  62. package/dist/chunks/{input-B6Docqrk.js → input-2VJuj_M4.js} +13 -8
  63. package/dist/chunks/input-2VJuj_M4.js.map +1 -0
  64. package/dist/chunks/{input-group-Dgdb0JpZ.js → input-group-DQ_4DoXg.js} +4 -4
  65. package/dist/chunks/{input-group-Dgdb0JpZ.js.map → input-group-DQ_4DoXg.js.map} +1 -1
  66. package/dist/chunks/{inset-BnBj8NJV.js → inset-BUzyXLK4.js} +14 -4
  67. package/dist/chunks/inset-BUzyXLK4.js.map +1 -0
  68. package/dist/chunks/{iso-field-SOZ7Z-yE.js → iso-field-B2rTwiBo.js} +2 -2
  69. package/dist/chunks/{iso-field-SOZ7Z-yE.js.map → iso-field-B2rTwiBo.js.map} +1 -1
  70. package/dist/chunks/{json-view-DCTMY_j4.js → json-view-Dqd2TDkc.js} +3 -3
  71. package/dist/chunks/{json-view-DCTMY_j4.js.map → json-view-Dqd2TDkc.js.map} +1 -1
  72. package/dist/chunks/{kbd-9A9rX60U.js → kbd-BF1vKXJf.js} +2 -2
  73. package/dist/chunks/{kbd-9A9rX60U.js.map → kbd-BF1vKXJf.js.map} +1 -1
  74. package/dist/chunks/{link-CtII7u3h.js → link-KWI7PevW.js} +4 -4
  75. package/dist/chunks/{link-CtII7u3h.js.map → link-KWI7PevW.js.map} +1 -1
  76. package/dist/chunks/link-provider-cvl8lSTT.js +29 -0
  77. package/dist/chunks/link-provider-cvl8lSTT.js.map +1 -0
  78. package/dist/chunks/{list-CMXBTVkI.js → list-M1csq-d4.js} +21 -19
  79. package/dist/chunks/{list-CMXBTVkI.js.map → list-M1csq-d4.js.map} +1 -1
  80. package/dist/chunks/{loader-DqOUwS1j.js → loader-DCfPndXa.js} +2 -2
  81. package/dist/chunks/{loader-DqOUwS1j.js.map → loader-DCfPndXa.js.map} +1 -1
  82. package/dist/chunks/{markdown-CwVQ0niB.js → markdown-DULktoTK.js} +9 -9
  83. package/dist/chunks/{markdown-CwVQ0niB.js.map → markdown-DULktoTK.js.map} +1 -1
  84. package/dist/chunks/{menu-Cjg4RggA.js → menu-DEmBfdPm.js} +32 -29
  85. package/dist/chunks/menu-DEmBfdPm.js.map +1 -0
  86. package/dist/chunks/{meter-VrC2J2GF.js → meter-Bj4N3Xuh.js} +2 -2
  87. package/dist/chunks/{meter-VrC2J2GF.js.map → meter-Bj4N3Xuh.js.map} +1 -1
  88. package/dist/chunks/nav-sheet-CzgIwgAm.js +60 -0
  89. package/dist/chunks/nav-sheet-CzgIwgAm.js.map +1 -0
  90. package/dist/chunks/{nav-wordmark-CjWM3NYa.js → nav-wordmark-_pjheAsZ.js} +2 -2
  91. package/dist/chunks/{nav-wordmark-CjWM3NYa.js.map → nav-wordmark-_pjheAsZ.js.map} +1 -1
  92. package/dist/chunks/{page-header-CZCQVHYE.js → page-header-DL2y2iZp.js} +4 -4
  93. package/dist/chunks/{page-header-CZCQVHYE.js.map → page-header-DL2y2iZp.js.map} +1 -1
  94. package/dist/chunks/{pagination-BStrMDqM.js → pagination-Cn_qF4cg.js} +4 -4
  95. package/dist/chunks/{pagination-BStrMDqM.js.map → pagination-Cn_qF4cg.js.map} +1 -1
  96. package/dist/chunks/{picker-popover-BerQAEBT.js → picker-popover-BxyU1U9F.js} +17 -16
  97. package/dist/chunks/{picker-popover-BerQAEBT.js.map → picker-popover-BxyU1U9F.js.map} +1 -1
  98. package/dist/chunks/{popover-CgLt_4yG.js → popover-DNN4S47w.js} +3 -3
  99. package/dist/chunks/{popover-CgLt_4yG.js.map → popover-DNN4S47w.js.map} +1 -1
  100. package/dist/chunks/portal-context-BBbzDKmY.js.map +1 -1
  101. package/dist/chunks/{radio-07Muf4cX.js → radio-CDDFpdtL.js} +5 -5
  102. package/dist/chunks/{radio-07Muf4cX.js.map → radio-CDDFpdtL.js.map} +1 -1
  103. package/dist/chunks/{range-popup-BCov1iPe.js → range-popup-CRyWYUB1.js} +6 -6
  104. package/dist/chunks/{range-popup-BCov1iPe.js.map → range-popup-CRyWYUB1.js.map} +1 -1
  105. package/dist/chunks/{release-art-69WpgVik.js → release-art-ZwfFQImt.js} +2 -2
  106. package/dist/chunks/{release-art-69WpgVik.js.map → release-art-ZwfFQImt.js.map} +1 -1
  107. package/dist/chunks/{rights-UVngOX_4.js → rights-Cyp0Pzp-.js} +9 -9
  108. package/dist/chunks/{rights-UVngOX_4.js.map → rights-Cyp0Pzp-.js.map} +1 -1
  109. package/dist/chunks/scroll-area-D8MD7Vpo.js +42 -0
  110. package/dist/chunks/scroll-area-D8MD7Vpo.js.map +1 -0
  111. package/dist/chunks/{section-Bvg0EUnr.js → section-Ce1efbsP.js} +3 -3
  112. package/dist/chunks/{section-Bvg0EUnr.js.map → section-Ce1efbsP.js.map} +1 -1
  113. package/dist/chunks/{segmented-DRLDN8EW.js → segmented-CErcoxwi.js} +4 -4
  114. package/dist/chunks/{segmented-DRLDN8EW.js.map → segmented-CErcoxwi.js.map} +1 -1
  115. package/dist/chunks/{select-eFTHLeYG.js → select-x4XVsdCI.js} +4 -4
  116. package/dist/chunks/{select-eFTHLeYG.js.map → select-x4XVsdCI.js.map} +1 -1
  117. package/dist/chunks/{separator-D86IW7Ge.js → separator-D7TzNHmX.js} +2 -2
  118. package/dist/chunks/{separator-D86IW7Ge.js.map → separator-D7TzNHmX.js.map} +1 -1
  119. package/dist/chunks/{sidebar-DifJ5KgE.js → sidebar-3r1ZRXlN.js} +255 -237
  120. package/dist/chunks/sidebar-3r1ZRXlN.js.map +1 -0
  121. package/dist/chunks/{sidebar-menu-XKOiwrQp.js → sidebar-menu-BN3jkTlK.js} +2 -2
  122. package/dist/chunks/{sidebar-menu-XKOiwrQp.js.map → sidebar-menu-BN3jkTlK.js.map} +1 -1
  123. package/dist/chunks/{skeleton-Cu74kGJA.js → skeleton-Dcz57Zyp.js} +2 -2
  124. package/dist/chunks/{skeleton-Cu74kGJA.js.map → skeleton-Dcz57Zyp.js.map} +1 -1
  125. package/dist/chunks/{slider-Dh0qq1wa.js → slider-Ci83PGtj.js} +2 -2
  126. package/dist/chunks/{slider-Dh0qq1wa.js.map → slider-Ci83PGtj.js.map} +1 -1
  127. package/dist/chunks/{status-dot-u4Izk-uC.js → status-dot-QJTF0Yv4.js} +3 -3
  128. package/dist/chunks/{status-dot-u4Izk-uC.js.map → status-dot-QJTF0Yv4.js.map} +1 -1
  129. package/dist/chunks/{swap-text-CC77iKJF.js → swap-text-Dr0Irxz6.js} +2 -2
  130. package/dist/chunks/{swap-text-CC77iKJF.js.map → swap-text-Dr0Irxz6.js.map} +1 -1
  131. package/dist/chunks/{switch-CbU9m9gi.js → switch-BNMq_kGt.js} +3 -3
  132. package/dist/chunks/{switch-CbU9m9gi.js.map → switch-BNMq_kGt.js.map} +1 -1
  133. package/dist/chunks/table-BeOSKl_3.js +84 -0
  134. package/dist/chunks/table-BeOSKl_3.js.map +1 -0
  135. package/dist/chunks/{tag-CqSk8F7M.js → tag-D_M1s2qS.js} +4 -4
  136. package/dist/chunks/{tag-CqSk8F7M.js.map → tag-D_M1s2qS.js.map} +1 -1
  137. package/dist/chunks/{text-hFc6TDp9.js → text-CIXH8rmT.js} +3 -3
  138. package/dist/chunks/{text-hFc6TDp9.js.map → text-CIXH8rmT.js.map} +1 -1
  139. package/dist/chunks/{textarea-17Ftvph_.js → textarea--4FRL3Pb.js} +5 -5
  140. package/dist/chunks/{textarea-17Ftvph_.js.map → textarea--4FRL3Pb.js.map} +1 -1
  141. package/dist/chunks/theme-provider-DJhORMlc.js.map +1 -1
  142. package/dist/chunks/{timeseries-CbnSFD5q.js → timeseries-D1xjRXfk.js} +3 -3
  143. package/dist/chunks/{timeseries-CbnSFD5q.js.map → timeseries-D1xjRXfk.js.map} +1 -1
  144. package/dist/chunks/{toolbar-B_960Ttx.js → toolbar-WA_oZgu-.js} +6 -5
  145. package/dist/chunks/{toolbar-B_960Ttx.js.map → toolbar-WA_oZgu-.js.map} +1 -1
  146. package/dist/chunks/tooltip-OcwO0VUT.js +154 -0
  147. package/dist/chunks/tooltip-OcwO0VUT.js.map +1 -0
  148. package/dist/chunks/{tooltip-root-Dssjjp-E.js → tooltip-root-DzahJDVj.js} +4 -4
  149. package/dist/chunks/{tooltip-root-Dssjjp-E.js.map → tooltip-root-DzahJDVj.js.map} +1 -1
  150. package/dist/chunks/{use-scroll-margin-DfdTc_5D.js → use-scroll-margin-atRtf0v_.js} +14 -10
  151. package/dist/chunks/use-scroll-margin-atRtf0v_.js.map +1 -0
  152. package/dist/chunks/{virtual-rows-yAMjeAwj.js → virtual-rows-CC_kc2PR.js} +2 -2
  153. package/dist/chunks/{virtual-rows-yAMjeAwj.js.map → virtual-rows-CC_kc2PR.js.map} +1 -1
  154. package/dist/chunks/{zh-CN-CKffAT7j.js → zh-CN-29X4CDLE.js} +3 -1
  155. package/dist/chunks/zh-CN-29X4CDLE.js.map +1 -0
  156. package/dist/components/agent-avatar.js +2 -0
  157. package/dist/components/app-frame.js +2 -2
  158. package/dist/components/avatar.js +1 -1
  159. package/dist/components/badge.js +1 -1
  160. package/dist/components/banner.js +1 -1
  161. package/dist/components/button-group.js +4 -4
  162. package/dist/components/button.js +1 -1
  163. package/dist/components/calendar.js +1 -1
  164. package/dist/components/charts/bar.js +2 -2
  165. package/dist/components/charts/donut.js +2 -2
  166. package/dist/components/charts/gauge.js +2 -2
  167. package/dist/components/charts/heatmap.js +1 -1
  168. package/dist/components/charts/sankey.js +2 -2
  169. package/dist/components/charts/sparkline.js +1 -1
  170. package/dist/components/charts/timeseries.js +1 -1
  171. package/dist/components/charts.js +2 -2
  172. package/dist/components/checkbox.js +1 -1
  173. package/dist/components/code-block.js +2 -2
  174. package/dist/components/code.js +1 -1
  175. package/dist/components/collapsible.js +1 -1
  176. package/dist/components/combobox.js +1 -1
  177. package/dist/components/command-list.js +2 -2
  178. package/dist/components/command-palette.js +89 -84
  179. package/dist/components/command-palette.js.map +1 -1
  180. package/dist/components/copy-button.js +1 -1
  181. package/dist/components/data-table.js +193 -189
  182. package/dist/components/data-table.js.map +1 -1
  183. package/dist/components/date-picker.js +9 -7
  184. package/dist/components/date-picker.js.map +1 -1
  185. package/dist/components/dialog.js +125 -91
  186. package/dist/components/dialog.js.map +1 -1
  187. package/dist/components/display-options.js +52 -49
  188. package/dist/components/display-options.js.map +1 -1
  189. package/dist/components/empty.js +1 -1
  190. package/dist/components/field.js +1 -1
  191. package/dist/components/figure.js +60 -0
  192. package/dist/components/figure.js.map +1 -0
  193. package/dist/components/filter-chip.js +5 -5
  194. package/dist/components/filter-chip.js.map +1 -1
  195. package/dist/components/filter-row.js +2 -2
  196. package/dist/components/flow.js +2 -2
  197. package/dist/components/heading.js +1 -1
  198. package/dist/components/icon-button.js +1 -1
  199. package/dist/components/icon.js +2 -2
  200. package/dist/components/input.js +51 -51
  201. package/dist/components/input.js.map +1 -1
  202. package/dist/components/kaeso/conversation.js +8 -8
  203. package/dist/components/kaeso/identity.js +1 -1
  204. package/dist/components/kaeso/moments.js +5 -5
  205. package/dist/components/kaeso/rights.js +1 -1
  206. package/dist/components/kaeso/usage.js +12 -12
  207. package/dist/components/kaeso/usage.js.map +1 -1
  208. package/dist/components/kaeso.js +264 -96
  209. package/dist/components/kaeso.js.map +1 -1
  210. package/dist/components/kbd.js +1 -1
  211. package/dist/components/key-value.js +3 -3
  212. package/dist/components/label.js +1 -1
  213. package/dist/components/layout.js +1 -1
  214. package/dist/components/link.js +1 -1
  215. package/dist/components/list.js +1 -1
  216. package/dist/components/loader.js +2 -2
  217. package/dist/components/logo.js +2 -2
  218. package/dist/components/markdown.js +1 -1
  219. package/dist/components/menu.js +2 -2
  220. package/dist/components/meter.js +1 -1
  221. package/dist/components/page-header.js +1 -1
  222. package/dist/components/pagination.js +1 -1
  223. package/dist/components/playground.js +32 -31
  224. package/dist/components/playground.js.map +1 -1
  225. package/dist/components/popover.js +13 -12
  226. package/dist/components/popover.js.map +1 -1
  227. package/dist/components/qr-code.js +1 -1
  228. package/dist/components/radio.js +1 -1
  229. package/dist/components/release-art.js +1 -1
  230. package/dist/components/scroll-area.js +1 -41
  231. package/dist/components/section.js +1 -1
  232. package/dist/components/segmented.js +1 -1
  233. package/dist/components/select.js +1 -1
  234. package/dist/components/separator.js +1 -1
  235. package/dist/components/settings.js +10 -10
  236. package/dist/components/settings.js.map +1 -1
  237. package/dist/components/sheet.js +3 -3
  238. package/dist/components/sidebar.js +1 -1
  239. package/dist/components/skeleton.js +1 -1
  240. package/dist/components/slider.js +1 -1
  241. package/dist/components/stat.js +3 -3
  242. package/dist/components/status-dot.js +1 -1
  243. package/dist/components/surface.js +1 -1
  244. package/dist/components/swap-text.js +1 -1
  245. package/dist/components/switch.js +1 -1
  246. package/dist/components/table.js +1 -1
  247. package/dist/components/tabs.js +24 -24
  248. package/dist/components/tabs.js.map +1 -1
  249. package/dist/components/tag.js +1 -1
  250. package/dist/components/text.js +1 -1
  251. package/dist/components/theme-image.js +1 -1
  252. package/dist/components/theme-menu.js +33 -30
  253. package/dist/components/theme-menu.js.map +1 -1
  254. package/dist/components/theme-select.js +1 -1
  255. package/dist/components/thumbnail.js +41 -0
  256. package/dist/components/thumbnail.js.map +1 -0
  257. package/dist/components/timeline.js +1 -1
  258. package/dist/components/toast.js +100 -91
  259. package/dist/components/toast.js.map +1 -1
  260. package/dist/components/toc.js +37 -22
  261. package/dist/components/toc.js.map +1 -1
  262. package/dist/components/toolbar.js +1 -1
  263. package/dist/components/tooltip.js +1 -1
  264. package/dist/components/visually-hidden.js +1 -1
  265. package/dist/format.js.map +1 -1
  266. package/dist/i18n-provider.js +1 -1
  267. package/dist/index.js +99 -95
  268. package/dist/kaeso.css +3 -0
  269. package/dist/styles.css +1 -1
  270. package/dist/types/blocks/delete-resource/delete-resource.d.ts +2 -5
  271. package/dist/types/blocks/resource-list/resource-list.d.ts +1 -4
  272. package/dist/types/component-docs.d.ts +1 -1
  273. package/dist/types/components/agent-avatar/agent-avatar.d.ts +94 -0
  274. package/dist/types/components/agent-avatar/docs.d.ts +19 -0
  275. package/dist/types/components/agent-avatar/index.d.ts +3 -0
  276. package/dist/types/components/agent-avatar/model-name.d.ts +9 -0
  277. package/dist/types/components/agent-avatar/models.d.ts +4 -0
  278. package/dist/types/components/app-frame/app-frame.d.ts +3 -8
  279. package/dist/types/components/app-frame/nav-sheet.d.ts +2 -4
  280. package/dist/types/components/calendar/calendar.d.ts +1 -4
  281. package/dist/types/components/charts/core.d.ts +11 -18
  282. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  283. package/dist/types/components/code-block/code-block.d.ts +1 -1
  284. package/dist/types/components/code-block/indent.d.ts +3 -0
  285. package/dist/types/components/combobox/combobox.d.ts +26 -2
  286. package/dist/types/components/command-list/command-list.d.ts +1 -0
  287. package/dist/types/components/command-list/docs.d.ts +1 -0
  288. package/dist/types/components/command-list/picker-popover.d.ts +1 -4
  289. package/dist/types/components/command-palette/command-palette.d.ts +2 -4
  290. package/dist/types/components/command-palette/docs.d.ts +1 -0
  291. package/dist/types/components/data-table/data-table.d.ts +2 -1
  292. package/dist/types/components/data-table/docs.d.ts +1 -0
  293. package/dist/types/components/dialog/dialog.d.ts +7 -9
  294. package/dist/types/components/dialog/docs.d.ts +2 -0
  295. package/dist/types/components/dialog/scope.d.ts +2 -0
  296. package/dist/types/components/dialog/step-dialog.d.ts +38 -5
  297. package/dist/types/components/display-options/display-options.d.ts +2 -5
  298. package/dist/types/components/figure/docs.d.ts +12 -0
  299. package/dist/types/components/figure/figure.d.ts +25 -0
  300. package/dist/types/components/figure/index.d.ts +1 -0
  301. package/dist/types/components/input/input.d.ts +23 -0
  302. package/dist/types/components/kaeso/client-button.d.ts +17 -0
  303. package/dist/types/components/kaeso/docs.d.ts +18 -0
  304. package/dist/types/components/kaeso/grant-summary.d.ts +12 -0
  305. package/dist/types/components/kaeso/identity.d.ts +2 -0
  306. package/dist/types/components/kaeso/index.d.ts +2 -0
  307. package/dist/types/components/kaeso/provider-picker.d.ts +5 -0
  308. package/dist/types/components/kaeso/usage.d.ts +2 -0
  309. package/dist/types/components/list/list.d.ts +4 -8
  310. package/dist/types/components/menu/docs.d.ts +8 -1
  311. package/dist/types/components/menu/menu.d.ts +19 -31
  312. package/dist/types/components/playground/parameter-panel.d.ts +1 -4
  313. package/dist/types/components/popover/hover-card.d.ts +2 -0
  314. package/dist/types/components/radio/docs.d.ts +15 -0
  315. package/dist/types/components/radio/radio.d.ts +2 -4
  316. package/dist/types/components/settings/settings.d.ts +2 -0
  317. package/dist/types/components/sidebar/sidebar.d.ts +13 -35
  318. package/dist/types/components/table/docs.d.ts +3 -1
  319. package/dist/types/components/table/table.d.ts +18 -1
  320. package/dist/types/components/tabs/tabs.d.ts +15 -0
  321. package/dist/types/components/theme-menu/docs.d.ts +2 -0
  322. package/dist/types/components/theme-menu/theme-menu.d.ts +6 -5
  323. package/dist/types/components/thumbnail/docs.d.ts +10 -0
  324. package/dist/types/components/thumbnail/index.d.ts +1 -0
  325. package/dist/types/components/thumbnail/thumbnail.d.ts +26 -0
  326. package/dist/types/components/toast/toast.d.ts +5 -12
  327. package/dist/types/components/toolbar/toolbar.d.ts +1 -6
  328. package/dist/types/components/tooltip/tooltip.d.ts +2 -4
  329. package/dist/types/components/tooltip/trigger-props.d.ts +0 -1
  330. package/dist/types/format/index.d.ts +5 -5
  331. package/dist/types/hooks/use-scroll-margin.d.ts +1 -1
  332. package/dist/types/icons/groups.d.ts +2 -2
  333. package/dist/types/icons/vocabulary.d.ts +15 -0
  334. package/dist/types/index.d.ts +3 -0
  335. package/dist/types/utils/cn.d.ts +4 -0
  336. package/dist/types/utils/inset.d.ts +4 -0
  337. package/dist/types/utils/link-provider.d.ts +1 -1
  338. package/dist/types/utils/merge-refs.d.ts +3 -0
  339. package/dist/types/utils/portal-context.d.ts +1 -1
  340. package/dist/utils.js +4 -4
  341. package/foundations/shape.md +1 -1
  342. package/package.json +3 -3
  343. package/dist/chunks/app-frame-DZPEf2NQ.js.map +0 -1
  344. package/dist/chunks/calendar-CeNcqLFd.js.map +0 -1
  345. package/dist/chunks/checkbox-C_DrNA2N.js.map +0 -1
  346. package/dist/chunks/cn-Isw2DnQX.js.map +0 -1
  347. package/dist/chunks/code-block-mEH6Sy3h.js.map +0 -1
  348. package/dist/chunks/combobox-D8ZOm8uT.js +0 -314
  349. package/dist/chunks/combobox-D8ZOm8uT.js.map +0 -1
  350. package/dist/chunks/command-list-CzMbdtJs.js.map +0 -1
  351. package/dist/chunks/core-FtMDNELx.js.map +0 -1
  352. package/dist/chunks/de-BnNQtBSV.js.map +0 -1
  353. package/dist/chunks/dialog-BZCVFmGF.js +0 -353
  354. package/dist/chunks/dialog-BZCVFmGF.js.map +0 -1
  355. package/dist/chunks/icon-CBzvyEqC.js +0 -91
  356. package/dist/chunks/icon-CBzvyEqC.js.map +0 -1
  357. package/dist/chunks/identity-BcVQd-7H.js.map +0 -1
  358. package/dist/chunks/input-B6Docqrk.js.map +0 -1
  359. package/dist/chunks/inset-BnBj8NJV.js.map +0 -1
  360. package/dist/chunks/link-provider-BsUxhZKG.js +0 -27
  361. package/dist/chunks/link-provider-BsUxhZKG.js.map +0 -1
  362. package/dist/chunks/menu-Cjg4RggA.js.map +0 -1
  363. package/dist/chunks/nav-sheet-Y2Ite-iF.js +0 -60
  364. package/dist/chunks/nav-sheet-Y2Ite-iF.js.map +0 -1
  365. package/dist/chunks/sidebar-DifJ5KgE.js.map +0 -1
  366. package/dist/chunks/table-CTxDp7zC.js +0 -67
  367. package/dist/chunks/table-CTxDp7zC.js.map +0 -1
  368. package/dist/chunks/tooltip-CRApbLF6.js +0 -151
  369. package/dist/chunks/tooltip-CRApbLF6.js.map +0 -1
  370. package/dist/chunks/use-scroll-margin-DfdTc_5D.js.map +0 -1
  371. package/dist/chunks/zh-CN-CKffAT7j.js.map +0 -1
  372. package/dist/components/scroll-area.js.map +0 -1
@@ -1,17 +1,18 @@
1
1
  "use client";
2
- import { t as e } from "./cn-Isw2DnQX.js";
2
+ import { t as e } from "./cn-Dj6sRgkF.js";
3
3
  import { i as t, n } from "./context-BELWW79w.js";
4
- import { t as r } from "./observe-resize-DhxhmoyB.js";
5
- import { n as i } from "./button-9q66Ta23.js";
6
- import { r as a } from "./skeleton-Cu74kGJA.js";
7
- import { useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
8
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
- import { motion as f, tokenKindSeries as p, tokenKindTint as m } from "@logicplanes/kaeso-tokens";
4
+ import { s as r } from "./tooltip-OcwO0VUT.js";
5
+ import { t as i } from "./observe-resize-DhxhmoyB.js";
6
+ import { n as a } from "./button-CzuxqawA.js";
7
+ import { r as o } from "./skeleton-Dcz57Zyp.js";
8
+ import { forwardRef as s, useEffect as c, useLayoutEffect as l, useMemo as u, useRef as d, useState as f } from "react";
9
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ import { motion as h, tokenKindSeries as g, tokenKindTint as _ } from "@logicplanes/kaeso-tokens";
10
11
  //#region src/components/charts/core.tsx
11
- function h(e, t) {
12
+ function v(e, t) {
12
13
  return t.every(Number.isInteger) ? e.filter(Number.isInteger) : e;
13
14
  }
14
- var g = [
15
+ var y = [
15
16
  "var(--k-viz-1)",
16
17
  "var(--k-viz-2)",
17
18
  "var(--k-viz-3)",
@@ -20,7 +21,7 @@ var g = [
20
21
  "var(--k-viz-6)",
21
22
  "var(--k-viz-7)",
22
23
  "var(--k-viz-8)"
23
- ], _ = [
24
+ ], b = [
24
25
  "var(--k-viz-thin-1)",
25
26
  "var(--k-viz-thin-2)",
26
27
  "var(--k-viz-thin-3)",
@@ -30,12 +31,12 @@ var g = [
30
31
  "var(--k-viz-thin-7)",
31
32
  "var(--k-viz-thin-8)"
32
33
  ];
33
- function v(e) {
34
+ function x(e) {
34
35
  let t = 2166136261;
35
36
  for (let n = 0; n < e.length; n++) t = Math.imul(t ^ e.charCodeAt(n), 16777619);
36
37
  return Math.abs(t);
37
38
  }
38
- var y = {
39
+ var S = {
39
40
  1: 6,
40
41
  6: 1,
41
42
  2: 5,
@@ -43,33 +44,33 @@ var y = {
43
44
  3: 7,
44
45
  7: 3
45
46
  };
46
- function b(e) {
47
- return v(e) % g.length;
47
+ function C(e) {
48
+ return x(e) % y.length;
48
49
  }
49
- function x(e) {
50
- let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = (e) => n.has(e) || y[e] !== void 0 && n.has(y[e]);
50
+ function w(e) {
51
+ let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = (e) => n.has(e) || S[e] !== void 0 && n.has(S[e]);
51
52
  for (let i of e) {
52
53
  if (t.has(i)) continue;
53
- let e = b(i);
54
+ let e = C(i);
54
55
  if (r(e)) {
55
- let t = [...g.keys()];
56
+ let t = [...y.keys()];
56
57
  e = t.find((e) => !r(e)) ?? t.find((e) => !n.has(e)) ?? e;
57
58
  }
58
59
  n.add(e), t.set(i, e);
59
60
  }
60
61
  return t;
61
62
  }
62
- function S(e, t = !1) {
63
- return new Map([...x(e)].map(([e, n]) => [e, (t ? _ : g)[n]]));
63
+ function T(e, t = !1) {
64
+ return new Map([...w(e)].map(([e, n]) => [e, (t ? b : y)[n]]));
64
65
  }
65
- var C = (e, t = !1) => (t ? _ : g)[b(e)], w = (e, t = !1) => m[e] ? "var(--k-viz-1-soft)" : (t ? _ : g)[p[e] - 1], T = [
66
+ var E = (e, t = !1) => (t ? b : y)[C(e)], D = (e, t = !1) => _[e] ? "var(--k-viz-1-soft)" : (t ? b : y)[g[e] - 1], O = [
66
67
  "input",
67
68
  "cacheRead",
68
69
  "cacheWrite",
69
70
  "output",
70
71
  "reasoning"
71
72
  ];
72
- function E(e, t = n) {
73
+ function ee(e, t = n) {
73
74
  switch (e) {
74
75
  case "input": return t("tokenKind.input", "Input");
75
76
  case "output": return t("tokenKind.output", "Output");
@@ -78,26 +79,26 @@ function E(e, t = n) {
78
79
  case "reasoning": return t("tokenKind.reasoning", "Reasoning");
79
80
  }
80
81
  }
81
- function D() {
82
- let [e, t] = l(null), [n, i] = l({
82
+ function te() {
83
+ let [e, t] = f(null), [n, r] = f({
83
84
  width: 0,
84
85
  height: 0
85
86
  });
86
- return s(() => {
87
+ return l(() => {
87
88
  if (!e) return;
88
- let t = () => i({
89
+ let t = () => r({
89
90
  width: Math.round(e.clientWidth),
90
91
  height: Math.round(e.clientHeight)
91
92
  });
92
- return t(), r([e], t);
93
+ return t(), i([e], t);
93
94
  }, [e]), [t, n];
94
95
  }
95
- var O = (e) => 1 - (1 - e) ** 3, ee = () => typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches, k = (e, t, n) => n >= 1 ? t : t.map((t, r) => (e[r] ?? t) + (t - (e[r] ?? t)) * O(n));
96
- function A(e, t) {
97
- return e.length === t.length && e.some((e) => e !== 0) && t.some((e) => e !== 0) && e.some((e, n) => e !== t[n]) && !ee();
96
+ var k = (e) => 1 - (1 - e) ** 3, A = () => typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches, j = (e, t, n) => n >= 1 ? t : t.map((t, r) => (e[r] ?? t) + (t - (e[r] ?? t)) * k(n));
97
+ function M(e, t) {
98
+ return e.length === t.length && e.some((e) => e !== 0) && t.some((e) => e !== 0) && e.some((e, n) => e !== t[n]) && !A();
98
99
  }
99
- function j(e, t = !1) {
100
- let n = e.join(","), [r, i] = l({
100
+ function N(e, t = !1) {
101
+ let n = e.join(","), [r, i] = f({
101
102
  key: n,
102
103
  from: e,
103
104
  to: e,
@@ -105,8 +106,8 @@ function j(e, t = !1) {
105
106
  still: t
106
107
  }), a = r;
107
108
  if (r.key !== n || r.still !== t) {
108
- let o = k(r.from, r.to, r.t);
109
- a = !t && !r.still && A(o, e) ? {
109
+ let o = j(r.from, r.to, r.t);
110
+ a = !t && !r.still && M(o, e) ? {
110
111
  key: n,
111
112
  from: o,
112
113
  to: e,
@@ -120,21 +121,21 @@ function j(e, t = !1) {
120
121
  still: t
121
122
  }, i(a);
122
123
  }
123
- let s = a.t < 1;
124
- return o(() => {
125
- if (!s) return;
124
+ let o = a.t < 1;
125
+ return c(() => {
126
+ if (!o) return;
126
127
  let e = performance.now(), t = 0, r = () => {
127
- let a = Math.max(0, Math.min(1, (performance.now() - e) / f.duration.chart));
128
+ let a = Math.max(0, Math.min(1, (performance.now() - e) / h.duration.chart));
128
129
  i((e) => e.key === n ? {
129
130
  ...e,
130
131
  t: a
131
132
  } : e), a < 1 && (t = requestAnimationFrame(r));
132
133
  };
133
134
  return t = requestAnimationFrame(r), () => cancelAnimationFrame(t);
134
- }, [n, s]), k(a.from, a.to, a.t);
135
+ }, [n, o]), j(a.from, a.to, a.t);
135
136
  }
136
- function M(e, t, n = !1) {
137
- let r = e.some((e) => e !== 0), i = j(r ? [...e, t] : e, n);
137
+ function P(e, t, n = !1) {
138
+ let r = e.some((e) => e !== 0), i = N(r ? [...e, t] : e, n);
138
139
  return r ? {
139
140
  values: i.slice(0, -1),
140
141
  top: i[i.length - 1] ?? t
@@ -143,82 +144,84 @@ function M(e, t, n = !1) {
143
144
  top: t
144
145
  };
145
146
  }
146
- function N({ label: n, height: r, children: o, table: s, legend: c, state: f = {}, className: p, toggle: m = !0 }) {
147
- let [h, g] = l(!1), _ = t();
148
- return /* @__PURE__ */ d("figure", {
149
- className: e("@container flex min-w-0 flex-col gap-12", p),
147
+ var F = /* @__PURE__ */ s(function({ label: n, height: r, children: i, table: s, legend: c, state: l = {}, className: u, toggle: d = !0 }, h) {
148
+ let [g, _] = f(!1), v = t();
149
+ return /* @__PURE__ */ m("figure", {
150
+ ref: h,
151
+ className: e("@container flex min-w-0 flex-col gap-12", u),
150
152
  "aria-label": n,
151
153
  children: [
152
- f.error ? /* @__PURE__ */ d("div", {
154
+ l.error ? /* @__PURE__ */ m("div", {
153
155
  className: "flex flex-col items-center justify-center gap-8 text-center",
154
156
  style: { height: r },
155
- children: [/* @__PURE__ */ u("p", {
157
+ children: [/* @__PURE__ */ p("p", {
156
158
  role: "alert",
157
159
  className: "text-body text-fg-secondary",
158
- children: _("chartFrame.loadFailed", "Couldn't load this chart")
159
- }), f.onRetry && /* @__PURE__ */ u(i, {
160
+ children: v("chartFrame.loadFailed", "Couldn't load this chart")
161
+ }), l.onRetry && /* @__PURE__ */ p(a, {
160
162
  size: "sm",
161
- onClick: f.onRetry,
162
- children: _("chartFrame.tryAgain", "Try again")
163
+ onClick: l.onRetry,
164
+ children: v("chartFrame.tryAgain", "Try again")
163
165
  })]
164
- }) : h && s ? /* @__PURE__ */ u("div", {
166
+ }) : g && s ? /* @__PURE__ */ p("div", {
165
167
  className: "overflow-auto scrollbar-quiet",
166
168
  style: { minHeight: r },
167
- children: /* @__PURE__ */ u(P, { table: s })
168
- }) : /* @__PURE__ */ d("div", {
169
+ children: /* @__PURE__ */ p(I, { table: s })
170
+ }) : /* @__PURE__ */ m("div", {
169
171
  className: "relative",
170
172
  style: { height: r },
171
173
  children: [
172
- f.loading && f.empty ? /* @__PURE__ */ u(a, { className: "absolute inset-0" }) : o,
173
- f.loading && !f.empty && /* @__PURE__ */ u(a, { className: "absolute inset-x-0 bottom-0 h-2 rounded-pill" }),
174
- f.empty && !f.loading && /* @__PURE__ */ u("div", {
174
+ l.loading && l.empty ? /* @__PURE__ */ p(o, { className: "absolute inset-0" }) : i,
175
+ l.loading && !l.empty && /* @__PURE__ */ p(o, { className: "absolute inset-x-0 bottom-0 h-2 rounded-pill" }),
176
+ l.empty && !l.loading && /* @__PURE__ */ p("div", {
175
177
  className: "absolute inset-0 flex items-center justify-center text-body text-fg-secondary",
176
- children: f.emptyText ?? _("chartFrame.noData", "No data for this period")
178
+ children: l.emptyText ?? v("chartFrame.noData", "No data for this period")
177
179
  })
178
180
  ]
179
181
  }),
180
- (c || m && s) && /* @__PURE__ */ d("div", {
182
+ (c || d && s) && /* @__PURE__ */ m("div", {
181
183
  className: "flex flex-col gap-8 @chart-legend:flex-row @chart-legend:gap-12",
182
- children: [!h && c && /* @__PURE__ */ u("div", {
184
+ children: [!g && c && /* @__PURE__ */ p("div", {
183
185
  className: "min-w-0 @chart-legend:flex-1",
184
186
  children: c
185
- }), m && s && /* @__PURE__ */ u("button", {
187
+ }), d && s && /* @__PURE__ */ p("button", {
186
188
  type: "button",
187
- onClick: () => g((e) => !e),
188
- "aria-pressed": h,
189
+ onClick: () => _((e) => !e),
190
+ "aria-pressed": g,
189
191
  className: "relative ml-auto inline-flex h-28 shrink-0 cursor-pointer items-center self-end rounded-pill px-10 text-small font-medium text-fg-secondary transition-control hover:bg-fill-1 hover:text-fg focus-ring tap-target",
190
- children: h ? _("chartFrame.viewAsChart", "View as chart") : _("chartFrame.viewAsTable", "View as table")
192
+ children: g ? v("chartFrame.viewAsChart", "View as chart") : v("chartFrame.viewAsTable", "View as table")
191
193
  })]
192
194
  }),
193
- s && !h && /* @__PURE__ */ u("div", {
195
+ s && !g && /* @__PURE__ */ p("div", {
194
196
  className: "sr-only",
195
- children: /* @__PURE__ */ u(P, {
197
+ children: /* @__PURE__ */ p(I, {
196
198
  table: s,
197
199
  caption: n
198
200
  })
199
201
  })
200
202
  ]
201
203
  });
202
- }
203
- function P({ table: t, caption: n }) {
204
- return /* @__PURE__ */ d("table", {
204
+ });
205
+ process.env.NODE_ENV !== "production" && (F.displayName = "ChartFrame");
206
+ function I({ table: t, caption: n }) {
207
+ return /* @__PURE__ */ m("table", {
205
208
  className: "w-full text-body",
206
209
  children: [
207
- n && /* @__PURE__ */ u("caption", {
210
+ n && /* @__PURE__ */ p("caption", {
208
211
  className: "sr-only",
209
212
  children: n
210
213
  }),
211
- /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
214
+ /* @__PURE__ */ p("thead", { children: /* @__PURE__ */ p("tr", {
212
215
  className: "hairline-b-strong",
213
- children: t.columns.map((t, n) => /* @__PURE__ */ u("th", {
216
+ children: t.columns.map((t, n) => /* @__PURE__ */ p("th", {
214
217
  scope: "col",
215
218
  className: e("h-36 px-12 text-caption font-medium text-fg-secondary first:pl-0", n > 0 ? "text-right" : "text-left"),
216
219
  children: t
217
220
  }, t))
218
221
  }) }),
219
- /* @__PURE__ */ u("tbody", { children: t.rows.map((t, n) => /* @__PURE__ */ u("tr", {
222
+ /* @__PURE__ */ p("tbody", { children: t.rows.map((t, n) => /* @__PURE__ */ p("tr", {
220
223
  className: "hairline-b",
221
- children: t.map((t, n) => /* @__PURE__ */ u("td", {
224
+ children: t.map((t, n) => /* @__PURE__ */ p("td", {
222
225
  className: e("h-36 px-12 first:pl-0", n > 0 ? "text-right tabular" : "text-left"),
223
226
  children: t
224
227
  }, n))
@@ -226,16 +229,17 @@ function P({ table: t, caption: n }) {
226
229
  ]
227
230
  });
228
231
  }
229
- function F({ color: t, shape: n = "square", off: r }) {
230
- return /* @__PURE__ */ u("span", {
232
+ var L = /* @__PURE__ */ s(function({ color: t, shape: n = "square", off: r }, i) {
233
+ return /* @__PURE__ */ p("span", {
234
+ ref: i,
231
235
  "aria-hidden": !0,
232
236
  className: e("shrink-0 transition-control", n === "line" ? "h-2 w-12 rounded-pill" : "size-10 rounded-bar", r && "opacity-30"),
233
237
  style: { background: t }
234
238
  });
235
- }
236
- process.env.NODE_ENV !== "production" && (F.displayName = "Swatch");
237
- var I = (e) => (t) => e(t).replace(/[.,]00(?=\D*$)/, "");
238
- function L(e, t, n = 4) {
239
+ });
240
+ process.env.NODE_ENV !== "production" && (L.displayName = "Swatch");
241
+ var R = (e) => (t) => e(t).replace(/[.,]00(?=\D*$)/, "");
242
+ function z(e, t, n = 4) {
239
243
  for (let r = n; r >= 1; r--) {
240
244
  let n = e.ticks(r);
241
245
  if (new Set(n.map(t)).size === n.length) return n;
@@ -243,29 +247,29 @@ function L(e, t, n = 4) {
243
247
  let [r = 0, i = 0] = e.domain();
244
248
  return t(r) === t(i) ? [r] : [r, i];
245
249
  }
246
- function R(e) {
250
+ function B(e) {
247
251
  if (e instanceof Date) return Number.isNaN(e.getTime()) ? NaN : Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()) / 864e5;
248
252
  let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
249
253
  return t ? Date.UTC(Number(t[1]), Number(t[2]) - 1, Number(t[3])) / 864e5 : NaN;
250
254
  }
251
- var z = (e) => (/* @__PURE__ */ new Date(e * 864e5)).getUTCFullYear();
252
- function B(e) {
253
- let t = e.map(R), n = [];
255
+ var V = (e) => (/* @__PURE__ */ new Date(e * 864e5)).getUTCFullYear();
256
+ function H(e) {
257
+ let t = e.map(B), n = [];
254
258
  return t.forEach((e, r) => {
255
259
  let i = r > 0 ? t[r - 1] : t.length > 1 ? 2 * e - t[1] : NaN;
256
- Number.isFinite(e) && Number.isFinite(i) && z(e) !== z(i) && n.push(r);
260
+ Number.isFinite(e) && Number.isFinite(i) && V(e) !== V(i) && n.push(r);
257
261
  }), n;
258
262
  }
259
- var V = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u3000-\u303f\uff00-\uffef]/u;
260
- function H(e) {
263
+ var U = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u3000-\u303f\uff00-\uffef]/u;
264
+ function W(e) {
261
265
  let t = 0;
262
- for (let n of e) t += V.test(n) ? 1 : /\p{Lu}/u.test(n) ? .8 : /\p{Ll}/u.test(n) ? .6 : /\p{Nd}/u.test(n) ? .66 : /\s/.test(n) ? .3 : .4;
263
- return t * J.label.fontSize;
266
+ for (let n of e) t += U.test(n) ? 1 : /\p{Lu}/u.test(n) ? .8 : /\p{Ll}/u.test(n) ? .6 : /\p{Nd}/u.test(n) ? .66 : /\s/.test(n) ? .3 : .4;
267
+ return t * X.label.fontSize;
264
268
  }
265
- var U = 8;
266
- function W(e, t) {
269
+ var G = 8;
270
+ function K(e, t) {
267
271
  let n = e.map((e) => {
268
- let n = H(e.label), r = e.at - n / 2 < 0 ? "start" : e.at + n / 2 > t ? "end" : "middle", i = r === "start" ? Math.max(e.at, 0) : e.at, a = r === "start" ? i : r === "end" ? i - n : i - n / 2;
272
+ let n = W(e.label), r = e.at - n / 2 < 0 ? "start" : e.at + n / 2 > t ? "end" : "middle", i = r === "start" ? Math.max(e.at, 0) : e.at, a = r === "start" ? i : r === "end" ? i - n : i - n / 2;
269
273
  return {
270
274
  key: e.key,
271
275
  x: i,
@@ -274,7 +278,7 @@ function W(e, t) {
274
278
  left: a,
275
279
  right: a + n
276
280
  };
277
- }), r = (e, t) => !e || !t || e.right + U <= t.left;
281
+ }), r = (e, t) => !e || !t || e.right + G <= t.left;
278
282
  n.length > 2 && !r(n[0], n[1]) && n.splice(1, 1), n.length > 2 && !r(n[n.length - 2], n[n.length - 1]) && n.splice(n.length - 2, 1);
279
283
  let i = [];
280
284
  for (let e of n) r(i[i.length - 1], e) && i.push(e);
@@ -285,13 +289,13 @@ function W(e, t) {
285
289
  label: r
286
290
  }));
287
291
  }
288
- function G(e, t, n = {
292
+ function q(e, t, n = {
289
293
  start: Infinity,
290
294
  end: Infinity
291
295
  }, r) {
292
296
  let i = e.length;
293
297
  if (i === 0) return [];
294
- let a = (r) => H(e[r]) / 2 <= Math.min(n.start + r * t, n.end + (i - 1 - r) * t) + 1e-6, o = Math.max(48, Math.max(...e.map(H)) + 16), s = t > 0 ? Math.max(1, Math.ceil(o / t - 1e-6)) : i, c = r && r.length === i ? B(r) : [], l = s;
298
+ let a = (r) => W(e[r]) / 2 <= Math.min(n.start + r * t, n.end + (i - 1 - r) * t) + 1e-6, o = Math.max(48, Math.max(...e.map(W)) + 16), s = t > 0 ? Math.max(1, Math.ceil(o / t - 1e-6)) : i, c = r && r.length === i ? H(r) : [], l = s;
295
299
  for (let e = s; s > 1 && e <= s * 2; e++) if (c.every((t) => (t - c[0]) % e === 0)) {
296
300
  l = e;
297
301
  break;
@@ -310,14 +314,15 @@ function G(e, t, n = {
310
314
  for (let e = d; e < i; e += l) a(e) && f.push(e);
311
315
  return f;
312
316
  }
313
- function K({ items: n, hidden: r, onToggle: i, onHover: a, shape: o = "square" }) {
314
- let s = t();
315
- return /* @__PURE__ */ u("ul", {
317
+ var J = /* @__PURE__ */ s(function({ items: n, hidden: r, onToggle: i, onHover: a, shape: o = "square" }, s) {
318
+ let c = t();
319
+ return /* @__PURE__ */ p("ul", {
320
+ ref: s,
316
321
  className: "flex flex-wrap items-center gap-4",
317
- "aria-label": s("chartLegend.label", "Legend"),
322
+ "aria-label": c("chartLegend.label", "Legend"),
318
323
  children: n.map((t) => {
319
324
  let n = r?.has(t.id);
320
- return /* @__PURE__ */ u("li", { children: /* @__PURE__ */ d(i ? "button" : "span", {
325
+ return /* @__PURE__ */ p("li", { children: /* @__PURE__ */ m(i ? "button" : "span", {
321
326
  ...i ? {
322
327
  type: "button",
323
328
  "aria-pressed": !n,
@@ -329,13 +334,13 @@ function K({ items: n, hidden: r, onToggle: i, onHover: a, shape: o = "square" }
329
334
  onBlur: () => a?.(null),
330
335
  className: e("inline-flex h-28 items-center gap-8 rounded-pill px-10 text-small font-medium transition-control", i && "relative cursor-pointer hover:bg-fill-1 focus-ring tap-target", n ? "text-fg-tertiary" : "text-fg"),
331
336
  children: [
332
- /* @__PURE__ */ u(F, {
337
+ /* @__PURE__ */ p(L, {
333
338
  color: t.color,
334
339
  shape: o,
335
340
  off: n
336
341
  }),
337
342
  t.label,
338
- t.value !== void 0 && /* @__PURE__ */ u("span", {
343
+ t.value !== void 0 && /* @__PURE__ */ p("span", {
339
344
  className: "text-fg-secondary tabular",
340
345
  children: t.value
341
346
  })
@@ -343,47 +348,47 @@ function K({ items: n, hidden: r, onToggle: i, onHover: a, shape: o = "square" }
343
348
  }) }, t.id);
344
349
  })
345
350
  });
346
- }
347
- process.env.NODE_ENV !== "production" && (K.displayName = "Legend");
348
- function q({ x: t, xLeft: n = t, y: r, width: i, heading: a, rows: o, visible: f }) {
349
- let p = c(null), [m, h] = l(0);
350
- s(() => {
351
- let e = p.current?.offsetWidth ?? 0;
352
- e !== m && h(e);
351
+ });
352
+ process.env.NODE_ENV !== "production" && (J.displayName = "Legend");
353
+ var Y = /* @__PURE__ */ s(function({ x: t, xLeft: n = t, y: i, width: a, heading: o, rows: s, visible: c }, h) {
354
+ let g = d(null), _ = u(() => r(g, h), [h]), [v, y] = f(0);
355
+ l(() => {
356
+ let e = g.current?.offsetWidth ?? 0;
357
+ e !== v && y(e);
353
358
  }, [
354
- m,
355
- a,
359
+ v,
356
360
  o,
357
- f
361
+ s,
362
+ c
358
363
  ]);
359
- let g = t > i / 2, _ = g ? n - 16 - m : t + 16, v = m ? Math.round(Math.max(0, Math.min(_, i - m))) : void 0;
360
- return /* @__PURE__ */ d("div", {
361
- ref: p,
364
+ let b = t > a / 2, x = b ? n - 16 - v : t + 16, S = v ? Math.round(Math.max(0, Math.min(x, a - v))) : void 0;
365
+ return /* @__PURE__ */ m("div", {
366
+ ref: _,
362
367
  role: "presentation",
363
368
  "aria-hidden": !0,
364
- className: e("pointer-events-none absolute z-10 w-max min-w-200 max-w-360 rounded-tooltip bg-raised p-10 text-small shadow-raised opacity-motion", f && m ? "opacity-100" : "opacity-0"),
369
+ className: e("pointer-events-none absolute z-10 w-max min-w-200 max-w-360 rounded-tooltip bg-raised p-10 text-small shadow-raised opacity-motion", c && v ? "opacity-100" : "opacity-0"),
365
370
  style: {
366
- ...v === void 0 ? g ? { right: Math.round(i - n + 16) } : { left: Math.round(t + 16) } : { left: v },
367
- top: Math.round(Math.max(0, r - 24))
371
+ ...S === void 0 ? b ? { right: Math.round(a - n + 16) } : { left: Math.round(t + 16) } : { left: S },
372
+ top: Math.round(Math.max(0, i - 24))
368
373
  },
369
- children: [/* @__PURE__ */ u("div", {
374
+ children: [/* @__PURE__ */ p("div", {
370
375
  className: "mb-6 text-caption font-medium text-fg tabular",
371
- children: a
372
- }), /* @__PURE__ */ u("div", {
376
+ children: o
377
+ }), /* @__PURE__ */ p("div", {
373
378
  className: "flex flex-col gap-4",
374
- children: o.map((e) => /* @__PURE__ */ d("div", {
379
+ children: s.map((e) => /* @__PURE__ */ m("div", {
375
380
  className: "flex items-center gap-8",
376
381
  children: [
377
- /* @__PURE__ */ u(F, { color: e.color }),
378
- /* @__PURE__ */ u("span", {
382
+ /* @__PURE__ */ p(L, { color: e.color }),
383
+ /* @__PURE__ */ p("span", {
379
384
  className: "min-w-0 flex-1 truncate pr-12 text-fg-secondary",
380
385
  children: e.label
381
386
  }),
382
- /* @__PURE__ */ u("span", {
387
+ /* @__PURE__ */ p("span", {
383
388
  className: "font-medium text-fg tabular",
384
389
  children: e.value
385
390
  }),
386
- e.share !== void 0 && /* @__PURE__ */ u("span", {
391
+ e.share !== void 0 && /* @__PURE__ */ p("span", {
387
392
  className: "w-40 text-right text-fg-tertiary tabular",
388
393
  children: e.share
389
394
  })
@@ -391,9 +396,9 @@ function q({ x: t, xLeft: n = t, y: r, width: i, heading: a, rows: o, visible: f
391
396
  }, e.id))
392
397
  })]
393
398
  });
394
- }
395
- process.env.NODE_ENV !== "production" && (q.displayName = "ChartTooltip");
396
- var J = {
399
+ });
400
+ process.env.NODE_ENV !== "production" && (Y.displayName = "ChartTooltip");
401
+ var X = {
397
402
  grid: {
398
403
  stroke: "var(--k-line)",
399
404
  strokeDasharray: "3 3",
@@ -409,8 +414,8 @@ var J = {
409
414
  fontWeight: 500,
410
415
  style: { fontVariantNumeric: "tabular-nums" }
411
416
  }
412
- }, Y = { chrome: { default: { classes: "" } } }, X = { chrome: "default" };
413
- function Z(e, t, n, { vertical: r = !1, start: i = n - 1 } = {}) {
417
+ }, Z = { chrome: { default: { classes: "" } } }, ne = { chrome: "default" };
418
+ function Q(e, t, n, { vertical: r = !1, start: i = n - 1 } = {}) {
414
419
  if (n <= 0) return;
415
420
  let a = r ? "ArrowUp" : "ArrowLeft", o = r ? "ArrowDown" : "ArrowRight";
416
421
  if (e === a) return t === null ? i : Math.max(0, t - 1);
@@ -419,8 +424,8 @@ function Z(e, t, n, { vertical: r = !1, start: i = n - 1 } = {}) {
419
424
  if (e === "End") return n - 1;
420
425
  if (e === "Escape") return t === null ? void 0 : null;
421
426
  }
422
- function Q(e, t = {}) {
423
- let [n, r] = l(null), i = t.start ?? e - 1;
427
+ function re(e, t = {}) {
428
+ let [n, r] = f(null), i = t.start ?? e - 1;
424
429
  return {
425
430
  index: n !== null && n < e ? n : null,
426
431
  props: {
@@ -435,7 +440,7 @@ function Q(e, t = {}) {
435
440
  },
436
441
  onBlur: () => r(null),
437
442
  onKeyDown: (a) => {
438
- let o = Z(a.key, n, e, {
443
+ let o = Q(a.key, n, e, {
439
444
  vertical: !!t.vertical,
440
445
  start: i
441
446
  });
@@ -444,16 +449,17 @@ function Q(e, t = {}) {
444
449
  }
445
450
  };
446
451
  }
447
- function $({ children: e }) {
448
- return /* @__PURE__ */ u("div", {
452
+ var $ = /* @__PURE__ */ s(function({ children: e }, t) {
453
+ return /* @__PURE__ */ p("div", {
454
+ ref: t,
449
455
  className: "sr-only",
450
456
  "aria-live": "polite",
451
457
  "aria-atomic": !0,
452
458
  children: e
453
459
  });
454
- }
460
+ });
455
461
  process.env.NODE_ENV !== "production" && ($.displayName = "ChartLive");
456
- var te = (e, t, r = n) => r("chart.liveLine", "{heading}: {values}", {
462
+ var ie = (e, t, r = n) => r("chart.liveLine", "{heading}: {values}", {
457
463
  heading: String(e),
458
464
  values: t.map((e) => r("chart.liveValue", "{label} {value}", {
459
465
  label: String(e.label),
@@ -461,6 +467,6 @@ var te = (e, t, r = n) => r("chart.liveLine", "{heading}: {values}", {
461
467
  })).join(r("chart.listSeparator", ", "))
462
468
  });
463
469
  //#endregion
464
- export { h as A, w as C, D, Q as E, j as O, I as S, A as T, W as _, X as a, S as b, F as c, _ as d, x as f, te as g, H as h, q as i, B as j, M as k, T as l, Z as m, N as n, Y as o, G as p, $ as r, K as s, J as t, g as u, L as v, E as w, b as x, C as y };
470
+ export { v as A, D as C, te as D, re as E, N as O, R as S, M as T, K as _, ne as a, T as b, L as c, b as d, w as f, ie as g, W as h, Y as i, H as j, P as k, O as l, Q as m, F as n, Z as o, q as p, $ as r, J as s, X as t, y as u, z as v, ee as w, C as x, E as y };
465
471
 
466
- //# sourceMappingURL=core-FtMDNELx.js.map
472
+ //# sourceMappingURL=core-BYns5ytV.js.map