@logicplanes/kaeso-ui 0.6.0-rc.1 → 0.6.0-rc.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 (284) hide show
  1. package/ai/component-guides.md +5 -5
  2. package/ai/component-registry.json +27 -13
  3. package/ai/component-registry.md +11 -9
  4. package/ai/icons.md +2 -2
  5. package/ai/tokens.md +4 -1
  6. package/dist/blocks/delete-resource.js +1 -1
  7. package/dist/blocks/pages.js +4 -4
  8. package/dist/blocks/resource-list.js +5 -5
  9. package/dist/chunks/{agent-avatar-Djd5BojE.js → agent-avatar-CepEC1TI.js} +4 -4
  10. package/dist/chunks/{agent-avatar-Djd5BojE.js.map → agent-avatar-CepEC1TI.js.map} +1 -1
  11. package/dist/chunks/{app-frame-FPxcLx5a.js → app-frame-CxnPDACQ.js} +7 -7
  12. package/dist/chunks/{app-frame-FPxcLx5a.js.map → app-frame-CxnPDACQ.js.map} +1 -1
  13. package/dist/chunks/{avatar-CAtsciEK.js → avatar-BYrq5P5M.js} +13 -16
  14. package/dist/chunks/avatar-BYrq5P5M.js.map +1 -0
  15. package/dist/chunks/{badge-DCG794sL.js → badge-ny-0ayKQ.js} +3 -3
  16. package/dist/chunks/{badge-DCG794sL.js.map → badge-ny-0ayKQ.js.map} +1 -1
  17. package/dist/chunks/{banner-Bh9ALjtn.js → banner-E7HfUL4F.js} +4 -4
  18. package/dist/chunks/{banner-Bh9ALjtn.js.map → banner-E7HfUL4F.js.map} +1 -1
  19. package/dist/chunks/{button-BhgnxxnI.js → button-DiwFpDfQ.js} +30 -27
  20. package/dist/chunks/button-DiwFpDfQ.js.map +1 -0
  21. package/dist/chunks/{calendar-BF77Yau7.js → calendar-65N4gUmO.js} +2 -2
  22. package/dist/chunks/{calendar-BF77Yau7.js.map → calendar-65N4gUmO.js.map} +1 -1
  23. package/dist/chunks/{checkbox-CX9ocjBN.js → checkbox-B5HLL9sc.js} +3 -3
  24. package/dist/chunks/{checkbox-CX9ocjBN.js.map → checkbox-B5HLL9sc.js.map} +1 -1
  25. package/dist/chunks/{cn-y70pJ-RU.js → cn-BUMD6lNz.js} +12 -1
  26. package/dist/chunks/cn-BUMD6lNz.js.map +1 -0
  27. package/dist/chunks/{code-C9y0iqOD.js → code-BBeW-m4W.js} +2 -2
  28. package/dist/chunks/{code-C9y0iqOD.js.map → code-BBeW-m4W.js.map} +1 -1
  29. package/dist/chunks/{code-block-ojOGgAZo.js → code-block-BTLf2TAk.js} +5 -5
  30. package/dist/chunks/{code-block-ojOGgAZo.js.map → code-block-BTLf2TAk.js.map} +1 -1
  31. package/dist/chunks/{code-block-Co5XHbO4.js → code-block-BedlY0KI.js} +6 -6
  32. package/dist/chunks/{code-block-Co5XHbO4.js.map → code-block-BedlY0KI.js.map} +1 -1
  33. package/dist/chunks/{combobox-DIDrrFMN.js → combobox-B7YbjRwW.js} +6 -6
  34. package/dist/chunks/{combobox-DIDrrFMN.js.map → combobox-B7YbjRwW.js.map} +1 -1
  35. package/dist/chunks/{command-list-DWXF8Zg5.js → command-list-B7dFDO1K.js} +4 -4
  36. package/dist/chunks/{command-list-DWXF8Zg5.js.map → command-list-B7dFDO1K.js.map} +1 -1
  37. package/dist/chunks/{copy-button-Blv3FuOX.js → copy-button-icoWd5sF.js} +5 -5
  38. package/dist/chunks/{copy-button-Blv3FuOX.js.map → copy-button-icoWd5sF.js.map} +1 -1
  39. package/dist/chunks/{core-CEO7wu2u.js → core-BsBBHUpy.js} +6 -6
  40. package/dist/chunks/{core-CEO7wu2u.js.map → core-BsBBHUpy.js.map} +1 -1
  41. package/dist/chunks/{data-table-DS8QEm1P.js → data-table-H1eRbtpW.js} +14 -14
  42. package/dist/chunks/{data-table-DS8QEm1P.js.map → data-table-H1eRbtpW.js.map} +1 -1
  43. package/dist/chunks/{date-popup-D7f-QQJm.js → date-popup-DoRPQPkV.js} +4 -4
  44. package/dist/chunks/{date-popup-D7f-QQJm.js.map → date-popup-DoRPQPkV.js.map} +1 -1
  45. package/dist/chunks/{dialog-BoQZ-CRe.js → dialog-C1_0OYLS.js} +5 -5
  46. package/dist/chunks/{dialog-BoQZ-CRe.js.map → dialog-C1_0OYLS.js.map} +1 -1
  47. package/dist/chunks/{disclosure-DVefCcYM.js → disclosure-DDSekEH6.js} +2 -2
  48. package/dist/chunks/{disclosure-DVefCcYM.js.map → disclosure-DDSekEH6.js.map} +1 -1
  49. package/dist/chunks/{domain-Dd4A6swO.js → domain-CTtJuvDL.js} +2 -2
  50. package/dist/chunks/{domain-Dd4A6swO.js.map → domain-CTtJuvDL.js.map} +1 -1
  51. package/dist/chunks/{empty-DZ-j3vpS.js → empty-DWXE3-2p.js} +2 -2
  52. package/dist/chunks/{empty-DZ-j3vpS.js.map → empty-DWXE3-2p.js.map} +1 -1
  53. package/dist/chunks/{field-BoF0Q8U2.js → field-DiMsBLuW.js} +5 -5
  54. package/dist/chunks/field-DiMsBLuW.js.map +1 -0
  55. package/dist/chunks/icon-CPNoEw5s.js +102 -0
  56. package/dist/chunks/icon-CPNoEw5s.js.map +1 -0
  57. package/dist/chunks/icon-DI6L-F9F.js +75 -0
  58. package/dist/chunks/icon-DI6L-F9F.js.map +1 -0
  59. package/dist/chunks/{icon-button-B8Xm10KH.js → icon-button-DxixlFmR.js} +3 -3
  60. package/dist/chunks/icon-button-DxixlFmR.js.map +1 -0
  61. package/dist/chunks/{identity-qb5JVtKG.js → identity-BIJbnz9o.js} +6 -6
  62. package/dist/chunks/{identity-qb5JVtKG.js.map → identity-BIJbnz9o.js.map} +1 -1
  63. package/dist/chunks/{input-DvU5KIT0.js → input-dhIRamo1.js} +5 -5
  64. package/dist/chunks/{input-DvU5KIT0.js.map → input-dhIRamo1.js.map} +1 -1
  65. package/dist/chunks/{input-group-BPf_IWMR.js → input-group-CC_euYp7.js} +4 -4
  66. package/dist/chunks/{input-group-BPf_IWMR.js.map → input-group-CC_euYp7.js.map} +1 -1
  67. package/dist/chunks/{iso-field-CgLCZF7B.js → iso-field-B2vajdVY.js} +2 -2
  68. package/dist/chunks/{iso-field-CgLCZF7B.js.map → iso-field-B2vajdVY.js.map} +1 -1
  69. package/dist/chunks/{json-view-B2OSpSY-.js → json-view-B6NjVdYp.js} +3 -3
  70. package/dist/chunks/{json-view-B2OSpSY-.js.map → json-view-B6NjVdYp.js.map} +1 -1
  71. package/dist/chunks/{kbd-B1rQ6Xzz.js → kbd-BaP7KJSF.js} +2 -2
  72. package/dist/chunks/{kbd-B1rQ6Xzz.js.map → kbd-BaP7KJSF.js.map} +1 -1
  73. package/dist/chunks/{label-Bd7EgBMU.js → label-Drl4_OLf.js} +2 -2
  74. package/dist/chunks/{label-Bd7EgBMU.js.map → label-Drl4_OLf.js.map} +1 -1
  75. package/dist/chunks/{link-CkEhtnKp.js → link-jtnw0XQV.js} +4 -4
  76. package/dist/chunks/link-jtnw0XQV.js.map +1 -0
  77. package/dist/chunks/{list-CHKT0Q3_.js → list-Qq7I5Djc.js} +9 -9
  78. package/dist/chunks/{list-CHKT0Q3_.js.map → list-Qq7I5Djc.js.map} +1 -1
  79. package/dist/chunks/{loader-BL8eBso7.js → loader-C9qbRLAi.js} +2 -2
  80. package/dist/chunks/{loader-BL8eBso7.js.map → loader-C9qbRLAi.js.map} +1 -1
  81. package/dist/chunks/{markdown-CzhAHVFg.js → markdown-BZasrEn1.js} +10 -10
  82. package/dist/chunks/{markdown-CzhAHVFg.js.map → markdown-BZasrEn1.js.map} +1 -1
  83. package/dist/chunks/{menu-CRZ-O7Ok.js → menu-B2wVEBiS.js} +4 -4
  84. package/dist/chunks/{menu-CRZ-O7Ok.js.map → menu-B2wVEBiS.js.map} +1 -1
  85. package/dist/chunks/{meter-dMtm0QPc.js → meter-ChxWKzBR.js} +3 -3
  86. package/dist/chunks/{meter-dMtm0QPc.js.map → meter-ChxWKzBR.js.map} +1 -1
  87. package/dist/chunks/{nav-sheet-C1oJliq_.js → nav-sheet-B9JDgXGp.js} +3 -3
  88. package/dist/chunks/{nav-sheet-C1oJliq_.js.map → nav-sheet-B9JDgXGp.js.map} +1 -1
  89. package/dist/chunks/{nav-wordmark-Cd-zaGgh.js → nav-wordmark-3Bvc2UI6.js} +2 -2
  90. package/dist/chunks/{nav-wordmark-Cd-zaGgh.js.map → nav-wordmark-3Bvc2UI6.js.map} +1 -1
  91. package/dist/chunks/{page-header-BjW-S0c2.js → page-header-Bkv25OXp.js} +6 -6
  92. package/dist/chunks/{page-header-BjW-S0c2.js.map → page-header-Bkv25OXp.js.map} +1 -1
  93. package/dist/chunks/{pagination--er5TNg5.js → pagination-BNpWq2tz.js} +4 -4
  94. package/dist/chunks/{pagination--er5TNg5.js.map → pagination-BNpWq2tz.js.map} +1 -1
  95. package/dist/chunks/{picker-popover-B7V6Z-qY.js → picker-popover-5Yw6n-s0.js} +7 -7
  96. package/dist/chunks/{picker-popover-B7V6Z-qY.js.map → picker-popover-5Yw6n-s0.js.map} +1 -1
  97. package/dist/chunks/{popover-CxYzFnPK.js → popover-BPHDFWPc.js} +2 -2
  98. package/dist/chunks/{popover-CxYzFnPK.js.map → popover-BPHDFWPc.js.map} +1 -1
  99. package/dist/chunks/{radio-BIBakGpi.js → radio-4ByJW15M.js} +2 -2
  100. package/dist/chunks/{radio-BIBakGpi.js.map → radio-4ByJW15M.js.map} +1 -1
  101. package/dist/chunks/{range-popup-DuMX8dGS.js → range-popup-dTCKZ8gu.js} +7 -7
  102. package/dist/chunks/{range-popup-DuMX8dGS.js.map → range-popup-dTCKZ8gu.js.map} +1 -1
  103. package/dist/chunks/{reasoning-frame-CX236xqG.js → reasoning-frame-BuhiGUBq.js} +3 -3
  104. package/dist/chunks/{reasoning-frame-CX236xqG.js.map → reasoning-frame-BuhiGUBq.js.map} +1 -1
  105. package/dist/chunks/{release-art-D1knR09f.js → release-art-BeseUxSj.js} +4 -4
  106. package/dist/chunks/{release-art-D1knR09f.js.map → release-art-BeseUxSj.js.map} +1 -1
  107. package/dist/chunks/{rights-ghO_k76Q.js → rights-BrThsFR2.js} +10 -10
  108. package/dist/chunks/{rights-ghO_k76Q.js.map → rights-BrThsFR2.js.map} +1 -1
  109. package/dist/chunks/{scroll-area-eHO5yx8V.js → scroll-area-BvxoHcHS.js} +2 -2
  110. package/dist/chunks/{scroll-area-eHO5yx8V.js.map → scroll-area-BvxoHcHS.js.map} +1 -1
  111. package/dist/chunks/{section-DdBjIPpm.js → section-QdjWZhe7.js} +3 -3
  112. package/dist/chunks/{section-DdBjIPpm.js.map → section-QdjWZhe7.js.map} +1 -1
  113. package/dist/chunks/{segmented--cvKKVgU.js → segmented-fyzkH6z6.js} +30 -20
  114. package/dist/chunks/segmented-fyzkH6z6.js.map +1 -0
  115. package/dist/chunks/{select-CYxdDJuW.js → select-CiifAM6G.js} +5 -5
  116. package/dist/chunks/select-CiifAM6G.js.map +1 -0
  117. package/dist/chunks/{separator-cMjJSR_v.js → separator-DMXz46Ge.js} +2 -2
  118. package/dist/chunks/{separator-cMjJSR_v.js.map → separator-DMXz46Ge.js.map} +1 -1
  119. package/dist/chunks/{sidebar-rSlJVHXr.js → sidebar-CLq7XuOp.js} +8 -8
  120. package/dist/chunks/{sidebar-rSlJVHXr.js.map → sidebar-CLq7XuOp.js.map} +1 -1
  121. package/dist/chunks/{sidebar-menu-BIzCokEt.js → sidebar-menu-ykPCnr6V.js} +2 -2
  122. package/dist/chunks/{sidebar-menu-BIzCokEt.js.map → sidebar-menu-ykPCnr6V.js.map} +1 -1
  123. package/dist/chunks/{skeleton-CRaxQo8h.js → skeleton-BkRG8QRE.js} +2 -2
  124. package/dist/chunks/{skeleton-CRaxQo8h.js.map → skeleton-BkRG8QRE.js.map} +1 -1
  125. package/dist/chunks/{slider-CJ5xhCGl.js → slider-DoJfRjX1.js} +2 -2
  126. package/dist/chunks/{slider-CJ5xhCGl.js.map → slider-DoJfRjX1.js.map} +1 -1
  127. package/dist/chunks/{status-dot-BJ_xdPOz.js → status-dot-BpYylrj2.js} +3 -3
  128. package/dist/chunks/{status-dot-BJ_xdPOz.js.map → status-dot-BpYylrj2.js.map} +1 -1
  129. package/dist/chunks/{swap-text-Dg5TYR3P.js → swap-text-BgdoVD3v.js} +2 -2
  130. package/dist/chunks/{swap-text-Dg5TYR3P.js.map → swap-text-BgdoVD3v.js.map} +1 -1
  131. package/dist/chunks/{switch-BlrAa7fs.js → switch-BPX928J4.js} +4 -4
  132. package/dist/chunks/{switch-BlrAa7fs.js.map → switch-BPX928J4.js.map} +1 -1
  133. package/dist/chunks/{table-2mqGuSzh.js → table-6rmKwlCw.js} +2 -2
  134. package/dist/chunks/{table-2mqGuSzh.js.map → table-6rmKwlCw.js.map} +1 -1
  135. package/dist/chunks/{tag-CyuvhNkV.js → tag-Dv_aKvNQ.js} +4 -4
  136. package/dist/chunks/{tag-CyuvhNkV.js.map → tag-Dv_aKvNQ.js.map} +1 -1
  137. package/dist/chunks/{text-DG2r9OVy.js → text-Dw8z0bOV.js} +3 -3
  138. package/dist/chunks/{text-DG2r9OVy.js.map → text-Dw8z0bOV.js.map} +1 -1
  139. package/dist/chunks/{textarea-BhJSBzKA.js → textarea-Cj7oEoQB.js} +5 -5
  140. package/dist/chunks/{textarea-BhJSBzKA.js.map → textarea-Cj7oEoQB.js.map} +1 -1
  141. package/dist/chunks/theme-provider-CmsV0cYJ.js +81 -0
  142. package/dist/chunks/theme-provider-CmsV0cYJ.js.map +1 -0
  143. package/dist/chunks/{timeseries-yWYVK-Hb.js → timeseries-CpfodfVQ.js} +4 -4
  144. package/dist/chunks/{timeseries-yWYVK-Hb.js.map → timeseries-CpfodfVQ.js.map} +1 -1
  145. package/dist/chunks/{toolbar-CXjo1MZi.js → toolbar-CjykT3ZP.js} +2 -2
  146. package/dist/chunks/{toolbar-CXjo1MZi.js.map → toolbar-CjykT3ZP.js.map} +1 -1
  147. package/dist/chunks/{tooltip-wfY3dDNy.js → tooltip-DxtFh0_0.js} +4 -4
  148. package/dist/chunks/{tooltip-wfY3dDNy.js.map → tooltip-DxtFh0_0.js.map} +1 -1
  149. package/dist/chunks/{tooltip-root-CIagHqa7.js → tooltip-root-BP_Y6LM1.js} +4 -4
  150. package/dist/chunks/{tooltip-root-CIagHqa7.js.map → tooltip-root-BP_Y6LM1.js.map} +1 -1
  151. package/dist/chunks/{truncated-BITAemX4.js → truncated-D3992uAW.js} +3 -3
  152. package/dist/chunks/{truncated-BITAemX4.js.map → truncated-D3992uAW.js.map} +1 -1
  153. package/dist/components/agent-avatar.js +1 -1
  154. package/dist/components/app-frame.js +2 -2
  155. package/dist/components/avatar.js +1 -1
  156. package/dist/components/badge.js +1 -1
  157. package/dist/components/banner.js +1 -1
  158. package/dist/components/button-group.js +4 -4
  159. package/dist/components/button.js +1 -1
  160. package/dist/components/calendar.js +1 -1
  161. package/dist/components/charts/bar.js +3 -3
  162. package/dist/components/charts/donut.js +3 -3
  163. package/dist/components/charts/gauge.js +2 -2
  164. package/dist/components/charts/heatmap.js +2 -2
  165. package/dist/components/charts/sankey.js +3 -3
  166. package/dist/components/charts/sparkline.js +1 -1
  167. package/dist/components/charts/timeseries.js +1 -1
  168. package/dist/components/charts.js +2 -2
  169. package/dist/components/checkbox.js +1 -1
  170. package/dist/components/code-block.js +3 -3
  171. package/dist/components/code.js +1 -1
  172. package/dist/components/collapsible.js +2 -2
  173. package/dist/components/combobox.js +1 -1
  174. package/dist/components/command-list.js +2 -2
  175. package/dist/components/command-palette.js +4 -4
  176. package/dist/components/copy-button.js +1 -1
  177. package/dist/components/data-table.js +1 -1
  178. package/dist/components/date-picker.js +7 -7
  179. package/dist/components/dialog.js +2 -2
  180. package/dist/components/display-options.js +8 -8
  181. package/dist/components/empty.js +1 -1
  182. package/dist/components/field.js +1 -1
  183. package/dist/components/figure.js +2 -2
  184. package/dist/components/filter-chip.js +5 -5
  185. package/dist/components/filter-row.js +1 -1
  186. package/dist/components/filter-toggle.js +2 -2
  187. package/dist/components/flow-canvas.js +231 -291
  188. package/dist/components/flow-canvas.js.map +1 -1
  189. package/dist/components/flow.js +2 -2
  190. package/dist/components/heading.js +1 -1
  191. package/dist/components/icon-button.js +1 -1
  192. package/dist/components/icon.js +2 -2
  193. package/dist/components/input.js +8 -8
  194. package/dist/components/kaeso/conversation.js +10 -10
  195. package/dist/components/kaeso/conversation.js.map +1 -1
  196. package/dist/components/kaeso/identity.js +1 -1
  197. package/dist/components/kaeso/moments.js +5 -5
  198. package/dist/components/kaeso/rights.js +1 -1
  199. package/dist/components/kaeso/usage.js +7 -7
  200. package/dist/components/kaeso.js +12 -12
  201. package/dist/components/kbd.js +1 -1
  202. package/dist/components/key-value.js +3 -3
  203. package/dist/components/label.js +1 -1
  204. package/dist/components/layout.js +1 -1
  205. package/dist/components/link.js +1 -1
  206. package/dist/components/list.js +1 -1
  207. package/dist/components/loader.js +2 -2
  208. package/dist/components/logo.js +2 -2
  209. package/dist/components/markdown.js +1 -1
  210. package/dist/components/menu.js +1 -1
  211. package/dist/components/meter.js +1 -1
  212. package/dist/components/page-header.js +1 -1
  213. package/dist/components/pagination.js +1 -1
  214. package/dist/components/playground.js +17 -17
  215. package/dist/components/popover.js +2 -2
  216. package/dist/components/qr-code.js +1 -1
  217. package/dist/components/radio.js +1 -1
  218. package/dist/components/release-art.js +1 -1
  219. package/dist/components/scroll-area.js +1 -1
  220. package/dist/components/section.js +1 -1
  221. package/dist/components/segmented.js +1 -1
  222. package/dist/components/select.js +1 -1
  223. package/dist/components/separator.js +1 -1
  224. package/dist/components/settings.js +3 -3
  225. package/dist/components/settings.js.map +1 -1
  226. package/dist/components/sheet.js +2 -2
  227. package/dist/components/sidebar.js +1 -1
  228. package/dist/components/skeleton.js +1 -1
  229. package/dist/components/slider.js +1 -1
  230. package/dist/components/stat.js +4 -4
  231. package/dist/components/status-dot.js +1 -1
  232. package/dist/components/surface.js +1 -1
  233. package/dist/components/swap-text.js +1 -1
  234. package/dist/components/switch.js +1 -1
  235. package/dist/components/table.js +1 -1
  236. package/dist/components/tabs.js +2 -2
  237. package/dist/components/tag.js +1 -1
  238. package/dist/components/text.js +1 -1
  239. package/dist/components/theme-image.js +3 -3
  240. package/dist/components/theme-image.js.map +1 -1
  241. package/dist/components/theme-menu.js +3 -3
  242. package/dist/components/theme-select.js +2 -2
  243. package/dist/components/thumbnail.js +10 -10
  244. package/dist/components/thumbnail.js.map +1 -1
  245. package/dist/components/timeline.js +2 -2
  246. package/dist/components/toast.js +4 -4
  247. package/dist/components/toc.js +1 -1
  248. package/dist/components/toolbar.js +1 -1
  249. package/dist/components/tooltip.js +1 -1
  250. package/dist/components/visually-hidden.js +1 -1
  251. package/dist/index.js +61 -61
  252. package/dist/kaeso.css +90 -13
  253. package/dist/styles.css +1 -1
  254. package/dist/theme.js +1 -1
  255. package/dist/types/components/button/button.d.ts +1 -0
  256. package/dist/types/components/button/docs.d.ts +1 -0
  257. package/dist/types/components/field/field.d.ts +2 -2
  258. package/dist/types/components/flow-canvas/layout.d.ts +2 -4
  259. package/dist/types/components/icon/icon.d.ts +5 -5
  260. package/dist/types/components/icon-button/docs.d.ts +1 -0
  261. package/dist/types/components/icon-button/icon-button.d.ts +1 -0
  262. package/dist/types/icons/groups.d.ts +1 -1
  263. package/dist/types/icons/vocabulary.d.ts +2 -2
  264. package/dist/types/utils/cn.d.ts +7 -0
  265. package/dist/utils.js +1 -1
  266. package/foundations/accessibility.md +1 -1
  267. package/foundations/elevation.md +2 -0
  268. package/foundations/icons.md +2 -0
  269. package/foundations/motion.md +4 -1
  270. package/package.json +2 -2
  271. package/dist/chunks/avatar-CAtsciEK.js.map +0 -1
  272. package/dist/chunks/button-BhgnxxnI.js.map +0 -1
  273. package/dist/chunks/cn-y70pJ-RU.js.map +0 -1
  274. package/dist/chunks/field-BoF0Q8U2.js.map +0 -1
  275. package/dist/chunks/icon-BNP2eYlj.js +0 -102
  276. package/dist/chunks/icon-BNP2eYlj.js.map +0 -1
  277. package/dist/chunks/icon-R4bPkYOo.js +0 -48
  278. package/dist/chunks/icon-R4bPkYOo.js.map +0 -1
  279. package/dist/chunks/icon-button-B8Xm10KH.js.map +0 -1
  280. package/dist/chunks/link-CkEhtnKp.js.map +0 -1
  281. package/dist/chunks/segmented--cvKKVgU.js.map +0 -1
  282. package/dist/chunks/select-CYxdDJuW.js.map +0 -1
  283. package/dist/chunks/theme-provider-BjXTggqM.js +0 -76
  284. package/dist/chunks/theme-provider-BjXTggqM.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component guides
2
2
 
3
- Version 0.6.0-rc.1. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
3
+ Version 0.6.0-rc.3. Generated from the showcase's demo modules (apps/showcase/src/demos); do not edit. For each component: what it is for, its import, keyboard, accessibility, do and don't, and every example's code. Props and variants: `component-registry.md`.
4
4
 
5
5
  ## AgentAttribution
6
6
 
@@ -2160,7 +2160,7 @@ function Changes() {
2160
2160
 
2161
2161
  ## FlowCanvas
2162
2162
 
2163
- An editable route drawn as a tree: conditions and splits branch downward, and each model's fallback continues the row to its right.
2163
+ An editable route drawn as a tree: conditions and splits branch downward, and each model's fallback hangs straight under it.
2164
2164
 
2165
2165
  `import { FlowCanvas } from "@logicplanes/kaeso-ui/flow-canvas";`
2166
2166
 
@@ -2191,7 +2191,7 @@ An editable route drawn as a tree: conditions and splits branch downward, and ea
2191
2191
 
2192
2192
  #### Edit a route
2193
2193
 
2194
- Select a step, add a fallback in the open slot beside a model, or insert a condition, a split or a model with the + between steps.
2194
+ Select a step, add a fallback in the open slot under a model, or insert a condition, a split or a model with the + between steps.
2195
2195
 
2196
2196
  ```tsx
2197
2197
  function Editor() {
@@ -2234,7 +2234,7 @@ function Editor() {
2234
2234
 
2235
2235
  #### A fallback chain
2236
2236
 
2237
- Each fallback continues the row to its right, in the order the models are tried.
2237
+ Each fallback hangs under the model before it, in the order the models are tried.
2238
2238
 
2239
2239
  ```tsx
2240
2240
  function Fallbacks() {
@@ -2252,7 +2252,7 @@ function Fallbacks() {
2252
2252
  },
2253
2253
  };
2254
2254
  return (
2255
- <Frame height="h-400">
2255
+ <Frame>
2256
2256
  <FlowCanvas aria-label="Route of chat-default" root={startNode("chat-default", chain)} />
2257
2257
  </Frame>
2258
2258
  );
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@logicplanes/kaeso-ui",
3
- "version": "0.6.0-rc.1",
3
+ "version": "0.6.0-rc.3",
4
4
  "components": [
5
5
  {
6
6
  "entry": "agent-avatar",
@@ -616,6 +616,13 @@
616
616
  "default": null,
617
617
  "description": "The height, from `xs` (24px) to `xl` (48px)."
618
618
  },
619
+ {
620
+ "name": "static",
621
+ "type": "boolean",
622
+ "required": false,
623
+ "default": null,
624
+ "description": "Keeps the button still when pressed, for a control whose 0.96 press would distract; it still darkens."
625
+ },
619
626
  {
620
627
  "name": "target",
621
628
  "type": "string",
@@ -5722,7 +5729,7 @@
5722
5729
  "components": [
5723
5730
  {
5724
5731
  "name": "FlowCanvas",
5725
- "description": "An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback continuing its row to the right, so a chain reads in the order its models are tried. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.",
5732
+ "description": "An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback straight under the model on a dashed line, so a chain reads top down in the order its models are tried and a route stays as narrow as its widest row of steps. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.",
5726
5733
  "props": [
5727
5734
  {
5728
5735
  "name": "aria-label",
@@ -5736,7 +5743,7 @@
5736
5743
  "type": "FlowCanvasNode",
5737
5744
  "required": true,
5738
5745
  "default": null,
5739
- "description": "The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn to its right) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot."
5746
+ "description": "The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn straight under it, with an open slot just below the model) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot."
5740
5747
  },
5741
5748
  {
5742
5749
  "name": "addMenu",
@@ -5799,14 +5806,14 @@
5799
5806
  "type": "readonly string[]",
5800
5807
  "required": false,
5801
5808
  "default": null,
5802
- "description": "The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. Leave it out to draw the route evenly."
5809
+ "description": "The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. When its last step changes, the view moves to show that step. Leave it out to draw the route evenly."
5803
5810
  }
5804
5811
  ],
5805
5812
  "file": "src/components/flow-canvas/flow-canvas.tsx"
5806
5813
  },
5807
5814
  {
5808
5815
  "name": "FlowWorkspace",
5809
- "description": "The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a 400px canvas and the page scrolls.",
5816
+ "description": "The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a canvas 400px tall, or half the screen on a shorter one, and the page scrolls.",
5810
5817
  "props": [
5811
5818
  {
5812
5819
  "name": "children",
@@ -5957,7 +5964,7 @@
5957
5964
  "components": [
5958
5965
  {
5959
5966
  "name": "Icon",
5960
- "description": "The one way to draw an icon: Hugeicons Stroke Rounded in currentColor.",
5967
+ "description": "The one way to draw an icon: Hugeicons Stroke Rounded in currentColor, with a 1.5px stroke at every size to match the weight of the text beside it. When the icon changes, as Copy turns to Copied, the old one shrinks out and the new one grows in.",
5961
5968
  "props": [
5962
5969
  {
5963
5970
  "name": "icon",
@@ -5988,11 +5995,11 @@
5988
5995
  "ICON": {
5989
5996
  "axes": {
5990
5997
  "size": {
5991
- "xs": "14px, 1.75 stroke: chips, xs controls, inline hints",
5992
- "sm": "16px, 1.5 stroke: the default in controls and menus",
5993
- "md": "18px, 1.5 stroke: sidebar items, lg controls",
5994
- "lg": "20px, 1.5 stroke: xl controls, empty states",
5995
- "xl": "24px, 1.5 stroke: rare, large moments"
5998
+ "xs": "14px: chips, xs controls, inline hints",
5999
+ "sm": "16px: the default in controls and menus",
6000
+ "md": "18px: sidebar items, lg controls",
6001
+ "lg": "20px: xl controls, empty states",
6002
+ "xl": "24px: rare, large moments"
5996
6003
  }
5997
6004
  },
5998
6005
  "defaults": {
@@ -6066,6 +6073,13 @@
6066
6073
  "default": "sm",
6067
6074
  "description": "The diameter, from `xs` (24px) to `xl` (44px)."
6068
6075
  },
6076
+ {
6077
+ "name": "static",
6078
+ "type": "boolean",
6079
+ "required": false,
6080
+ "default": null,
6081
+ "description": "Keeps the button still when pressed, as on `Button`."
6082
+ },
6069
6083
  {
6070
6084
  "name": "tooltip",
6071
6085
  "type": "boolean",
@@ -9463,7 +9477,7 @@
9463
9477
  "components": [
9464
9478
  {
9465
9479
  "name": "PageHeader",
9466
- "description": "The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.",
9480
+ "description": "The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, and actions that would leave the title less than 96px move to a row of their own too, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.",
9467
9481
  "props": [
9468
9482
  {
9469
9483
  "name": "actions",
@@ -11810,7 +11824,7 @@
11810
11824
  "components": [
11811
11825
  {
11812
11826
  "name": "Segmented",
11813
- "description": "Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers.",
11827
+ "description": "Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers. Options wider than the room scroll sideways, with the chosen one in view.",
11814
11828
  "props": [
11815
11829
  {
11816
11830
  "name": "aria-label",
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui component registry
2
2
 
3
- Version 0.6.0-rc.1. Generated from the component types, their descriptions and variants; do not edit.
3
+ Version 0.6.0-rc.3. Generated from the component types, their descriptions and variants; do not edit.
4
4
 
5
5
  ## agent-avatar
6
6
 
@@ -163,6 +163,7 @@ The button. Every one is a pill; icon-only buttons are circles (see `IconButton`
163
163
  | `shape` | `"pill" \| "circle"` | | Icon-only buttons are circles and need an accessible name. |
164
164
  | `shortcut` | `string[] \| string[][]` | | A shortcut hint after the label (lg and xl, and in menus). |
165
165
  | `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | | The height, from `xs` (24px) to `xl` (48px). |
166
+ | `static` | `boolean` | | Keeps the button still when pressed, for a control whose 0.96 press would distract; it still darkens. |
166
167
  | `target` | `string` | | Where the link opens, as on an `a` element. |
167
168
  | `trailingIcon` | `IconSvgElement` | | An icon after the text. |
168
169
  | `variant` | `"danger" \| "link" \| "secondary" \| "primary" \| "ghost" \| "quiet" \| "soft" \| "danger-secondary"` | | `primary` for the one main action of a view, `secondary` for others, `ghost` and `quiet` for toolbars and rows, `danger` for destructive actions. A ghost or quiet button at the end of a settings row's control pulls its padding past the row's edge, so its label ends where an outlined button's ring does. |
@@ -1287,12 +1288,12 @@ A node-and-connector diagram: the route "app → Kaeso → provider / model". A
1287
1288
 
1288
1289
  ### FlowCanvas
1289
1290
 
1290
- An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback continuing its row to the right, so a chain reads in the order its models are tried. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.
1291
+ An editable route drawn as a tree, top down: the start, then each step with its branches side by side under it, and a model's fallback straight under the model on a dashed line, so a chain reads top down in the order its models are tried and a route stays as narrow as its widest row of steps. The layout is computed, never measured, so it is the same at every zoom. Drag the background or scroll to pan; ⌘ or Ctrl with the wheel, a pinch or the buttons at the bottom left zoom between 25% and 150%; it fits itself once, on first render, never below 67% so every step stays readable, and then keeps the view when the route changes. The steps are one tree for the keyboard and screen readers.
1291
1292
 
1292
1293
  | Prop | Type | Default | Description |
1293
1294
  |---|---|---|---|
1294
1295
  | `aria-label` * | `string` | | The tree's accessible name: what the route belongs to, such as "Route of fast". |
1295
- | `root` * | `FlowCanvasNode` | | The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn to its right) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot. |
1296
+ | `root` * | `FlowCanvasNode` | | The start of the route. Each node has `kind` (its tag), `title`, an optional `subtitle`, `leading` (such as a provider badge), `status` (a word and a tone: `danger`, `warning` and `success` also ring the step), `badge` (a short word at its top right, such as its try), `terminal` (a model: its one connection is its fallback, drawn straight under it, with an open slot just below the model) and `children`: connections with an `id`, a `label`, a `variant` (`fallback` draws a dashed line), a `tone` (`success`, `warning` or `danger`: on a traced path, the line takes that color, such as the status a tried step answered with) and the `node` they lead to; a connection without a node is an open slot. |
1296
1297
  | `addMenu` | `((slot: FlowCanvasSlot) => ReactNode)` | | Turns editing on: open slots and a + midway on every connection show, and each opens a menu with these items. Called with the connection's `edge` id and `insert`: false for an open slot, true for the + that puts a step before the connection's step. Without it, open slots are not drawn. |
1297
1298
  | `background` | `"plain" \| "dots"` | `dots` | A dotted grid that moves with the view, or the plain panel. |
1298
1299
  | `busy` | `boolean` | | A request is on its way along `trace`: its lines without a `tone` run as moving dashes, or pulse with reduced motion, and the tree is marked busy. Turn it off once the request answers. |
@@ -1301,11 +1302,11 @@ An editable route drawn as a tree, top down: the start, then each step with its
1301
1302
  | `onDelete` | `((id: string) => void)` | | Called with a step's id when Delete or Backspace is pressed on it. |
1302
1303
  | `onSelect` | `((id: string \| null) => void)` | | Called with a step's id when it is clicked or chosen with Enter or Space, and with null when the background is clicked or Escape is pressed. |
1303
1304
  | `selected` | `string \| null` | `null` | The id of the selected step, drawn with the selection ring; the view moves to show it when it changes. |
1304
- | `trace` | `readonly string[]` | | The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. Leave it out to draw the route evenly. |
1305
+ | `trace` | `readonly string[]` | | The ids of the steps one request passes, such as from a dry run: they and the lines between them stay strong, and every other step turns quieter: secondary text and a hairline, still readable. When its last step changes, the view moves to show that step. Leave it out to draw the route evenly. |
1305
1306
 
1306
1307
  ### FlowWorkspace
1307
1308
 
1308
- The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a 400px canvas and the page scrolls.
1309
+ The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a canvas 400px tall, or half the screen on a shorter one, and the page scrolls.
1309
1310
 
1310
1311
  | Prop | Type | Default | Description |
1311
1312
  |---|---|---|---|
@@ -1345,11 +1346,11 @@ Heading levels map to the title tokens (4.3).
1345
1346
 
1346
1347
  `import { Icon } from "@logicplanes/kaeso-ui/icon";`
1347
1348
 
1348
- - **size** (icon): `xs` — 14px, 1.75 stroke: chips, xs controls, inline hints; `sm` (default) — 16px, 1.5 stroke: the default in controls and menus; `md` — 18px, 1.5 stroke: sidebar items, lg controls; `lg` — 20px, 1.5 stroke: xl controls, empty states; `xl` — 24px, 1.5 stroke: rare, large moments
1349
+ - **size** (icon): `xs` — 14px: chips, xs controls, inline hints; `sm` (default) — 16px: the default in controls and menus; `md` — 18px: sidebar items, lg controls; `lg` — 20px: xl controls, empty states; `xl` — 24px: rare, large moments
1349
1350
 
1350
1351
  ### Icon
1351
1352
 
1352
- The one way to draw an icon: Hugeicons Stroke Rounded in currentColor.
1353
+ The one way to draw an icon: Hugeicons Stroke Rounded in currentColor, with a 1.5px stroke at every size to match the weight of the text beside it. When the icon changes, as Copy turns to Copied, the old one shrinks out and the new one grows in.
1353
1354
 
1354
1355
  | Prop | Type | Default | Description |
1355
1356
  |---|---|---|---|
@@ -1378,6 +1379,7 @@ A circle with an icon, a required name, and a tooltip that says it.
1378
1379
  | `loading` | `boolean` | | Shows that work is underway and ignores clicks until it ends. |
1379
1380
  | `shortcut` | `string[] \| string[][]` | | A shortcut shown in the tooltip. |
1380
1381
  | `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `sm` | The diameter, from `xs` (24px) to `xl` (44px). |
1382
+ | `static` | `boolean` | | Keeps the button still when pressed, as on `Button`. |
1381
1383
  | `tooltip` | `boolean` | `true` | Turn the tooltip off (rare: when a visible label sits next to it). |
1382
1384
  | `tooltipSide` | `"top" \| "bottom" \| "left" \| "right"` | `top` | Where the tooltip with its name appears. |
1383
1385
  | `variant` | `"danger" \| "secondary" \| "primary" \| "ghost" \| "quiet" \| "soft" \| "danger-secondary"` | `ghost` | The look, as on `Button`. |
@@ -2181,7 +2183,7 @@ Progress for work over a second: a determinate pill, or an indeterminate 2px lin
2181
2183
 
2182
2184
  ### PageHeader
2183
2185
 
2184
- The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.
2186
+ The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, and actions that would leave the title less than 96px move to a row of their own too, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.
2185
2187
 
2186
2188
  | Prop | Type | Default | Description |
2187
2189
  |---|---|---|---|
@@ -2733,7 +2735,7 @@ Main content and a 320px aside, separated by space and a subtle vertical line. O
2733
2735
 
2734
2736
  ### Segmented
2735
2737
 
2736
- Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers.
2738
+ Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers. Options wider than the room scroll sideways, with the chosen one in view.
2737
2739
 
2738
2740
  | Prop | Type | Default | Description |
2739
2741
  |---|---|---|---|
package/ai/icons.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Icon vocabulary
2
2
 
3
- Version 0.6.0-rc.1. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
3
+ Version 0.6.0-rc.3. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
4
4
 
5
5
  ## Kaeso objects
6
6
 
@@ -12,7 +12,7 @@ Version 0.6.0-rc.1. Generated from `src/icons/vocabulary.ts`; do not edit. Use t
12
12
 
13
13
  ## Actions
14
14
 
15
- `signOut`, `copy`, `externalLink`, `openExternal`, `add`, `close`, `edit`, `delete`, `download`, `upload`, `refresh`, `retry`, `undo`, `redo`, `swap`, `moveLeft`, `moveRight`, `search`, `filter`, `displayOptions`, `more`, `menu`, `sort`, `switcher`, `unfold`, `expand`, `collapse`, `show`, `hide`, `reveal`, `sidebar`, `sidePanel`, `list`, `board`, `stack`
15
+ `signOut`, `copy`, `externalLink`, `openExternal`, `add`, `close`, `edit`, `delete`, `download`, `upload`, `refresh`, `retry`, `undo`, `redo`, `swap`, `moveUp`, `moveDown`, `search`, `filter`, `displayOptions`, `more`, `menu`, `sort`, `switcher`, `unfold`, `expand`, `collapse`, `show`, `hide`, `reveal`, `sidebar`, `sidePanel`, `list`, `board`, `stack`
16
16
 
17
17
  ## Status
18
18
 
package/ai/tokens.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @logicplanes/kaeso-ui tokens
2
2
 
3
- Version 0.6.0-rc.1. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
3
+ Version 0.6.0-rc.3. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
4
4
 
5
5
  ## Neutrals
6
6
 
@@ -29,6 +29,7 @@ Version 0.6.0-rc.1. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
29
29
  | `--k-focus` | #0a0a0a | #fafafa |
30
30
  | `--k-overlay` | rgb(0 0 0 / 0.24) | rgb(0 0 0 / 0.72) |
31
31
  | `--k-panel-ring` | #e5e5e5 | #1a1a1a |
32
+ | `--k-image-outline` | oklch(0 0 0 / 0.1) | oklch(1 0 0 / 0.1) |
32
33
  | `--k-toast-bg` | #0a0a0a | #1c1c1c |
33
34
  | `--k-scan` | #ffffff | #ffffff |
34
35
  | `--k-on-scan` | #0a0a0a | #0a0a0a |
@@ -175,6 +176,8 @@ Version 0.6.0-rc.1. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
175
176
  | Variable | Value |
176
177
  |---|---|
177
178
  | `--k-duration-fast` | 120ms |
179
+ | `--k-duration-press` | 150ms |
180
+ | `--k-duration-swap` | 300ms |
178
181
  | `--k-duration-close-overlay` | 110ms |
179
182
  | `--k-duration-overlay` | 160ms |
180
183
  | `--k-duration-close-dialog` | 140ms |
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { i as e } from "../chunks/context-BELWW79w.js";
3
- import { t } from "../chunks/dialog-BoQZ-CRe.js";
3
+ import { t } from "../chunks/dialog-C1_0OYLS.js";
4
4
  import { forwardRef as n } from "react";
5
5
  import { jsx as r } from "react/jsx-runtime";
6
6
  //#region src/blocks/delete-resource/delete-resource.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as e } from "../chunks/app-frame-FPxcLx5a.js";
3
- import { r as t } from "../chunks/page-header-BjW-S0c2.js";
4
- import { t as n } from "../chunks/empty-DZ-j3vpS.js";
5
- import { a as r, t as i } from "../chunks/section-DdBjIPpm.js";
2
+ import { t as e } from "../chunks/app-frame-CxnPDACQ.js";
3
+ import { r as t } from "../chunks/page-header-Bkv25OXp.js";
4
+ import { t as n } from "../chunks/empty-DWXE3-2p.js";
5
+ import { a as r, t as i } from "../chunks/section-QdjWZhe7.js";
6
6
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
7
  //#region src/blocks/pages/pages.tsx
8
8
  var c = { page: {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { i as e, r as t } from "../chunks/context-BELWW79w.js";
3
- import { n } from "../chunks/button-BhgnxxnI.js";
4
- import { o as r } from "../chunks/input-DvU5KIT0.js";
5
- import { r as i } from "../chunks/toolbar-CXjo1MZi.js";
6
- import { t as a } from "../chunks/empty-DZ-j3vpS.js";
7
- import { i as o, o as s } from "../chunks/list-CHKT0Q3_.js";
3
+ import { n } from "../chunks/button-DiwFpDfQ.js";
4
+ import { o as r } from "../chunks/input-dhIRamo1.js";
5
+ import { r as i } from "../chunks/toolbar-CjykT3ZP.js";
6
+ import { t as a } from "../chunks/empty-DWXE3-2p.js";
7
+ import { i as o, o as s } from "../chunks/list-Qq7I5Djc.js";
8
8
  import { forwardRef as c, useMemo as l, useState as u } from "react";
9
9
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
10
10
  //#region src/blocks/resource-list/resource-list.tsx
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as e } from "./cn-y70pJ-RU.js";
2
+ import { t as e } from "./cn-BUMD6lNz.js";
3
3
  import { i as t, n } from "./context-BELWW79w.js";
4
- import { r } from "./tooltip-wfY3dDNy.js";
5
- import { t as i } from "./avatar-CAtsciEK.js";
4
+ import { r } from "./tooltip-DxtFh0_0.js";
5
+ import { t as i } from "./avatar-BYrq5P5M.js";
6
6
  import { forwardRef as a, useMemo as o } from "react";
7
7
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
8
  //#region src/components/agent-avatar/models.ts
@@ -185,4 +185,4 @@ process.env.NODE_ENV !== "production" && (S.displayName = "AgentAttribution");
185
185
  //#endregion
186
186
  export { h as a, p as c, g as i, l, x as n, m as o, _ as r, f as s, S as t, u };
187
187
 
188
- //# sourceMappingURL=agent-avatar-Djd5BojE.js.map
188
+ //# sourceMappingURL=agent-avatar-CepEC1TI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-avatar-Djd5BojE.js","names":["cn","useUiText","Avatar","AGENT_MODELS","agentModel","model","PRODUCT_NAMES","modelName","englishText","known","useModelName","t","useMemo","KAESO_AGENT_AVATAR_VARIANTS","KAESO_AGENT_AVATAR_DEFAULT_VARIANTS","KAESO_AGENT_ATTRIBUTION_VARIANTS","KAESO_AGENT_ATTRIBUTION_DEFAULT_VARIANTS","BADGE_BOT","BOT","botGlyph","tile","paths","d","AgentAvatar","size","decorative","name","className","AgentAttribution","badge","label","agent","centre","Tooltip","src"],"sources":["../../src/components/agent-avatar/models.ts","../../src/components/agent-avatar/model-name.ts","../../src/components/agent-avatar/agent-avatar.tsx"],"sourcesContent":["export const AGENT_MODELS = [\n \"claude\",\n \"gpt\",\n \"gemini\",\n \"gemma\",\n \"grok\",\n \"llama\",\n \"mistral\",\n \"deepseek\",\n \"qwen\",\n \"kimi\",\n \"glm\",\n \"minimax\",\n \"command\",\n \"nova\",\n \"phi\",\n \"granite\",\n \"jamba\",\n \"ernie\",\n \"hunyuan\",\n \"doubao\",\n \"yi\",\n \"nemotron\",\n \"olmo\",\n \"sonar\",\n \"reka\",\n \"unknown\",\n] as const;\n\nexport type AgentModel = (typeof AGENT_MODELS)[number];\n\n/** The model family an API string names, or `unknown` for anything the library doesn't know. */\nexport function agentModel(model: string): AgentModel {\n return (AGENT_MODELS as readonly string[]).includes(model) ? (model as AgentModel) : \"unknown\";\n}\n","import { useMemo } from \"react\";\nimport { englishText, useUiText, type UiText } from \"../../i18n/context.js\";\nimport { agentModel, type AgentModel } from \"./models.js\";\n\nconst PRODUCT_NAMES: Readonly<Record<Exclude<AgentModel, \"unknown\">, string>> = {\n claude: \"Claude\",\n gpt: \"GPT\",\n gemini: \"Gemini\",\n gemma: \"Gemma\",\n grok: \"Grok\",\n llama: \"Llama\",\n mistral: \"Mistral\",\n deepseek: \"DeepSeek\",\n qwen: \"Qwen\",\n kimi: \"Kimi\",\n glm: \"GLM\",\n minimax: \"MiniMax\",\n command: \"Command\",\n nova: \"Nova\",\n phi: \"Phi\",\n granite: \"Granite\",\n jamba: \"Jamba\",\n ernie: \"ERNIE\",\n hunyuan: \"Hunyuan\",\n doubao: \"Doubao\",\n yi: \"Yi\",\n nemotron: \"Nemotron\",\n olmo: \"OLMo\",\n sonar: \"Sonar\",\n reka: \"Reka\",\n};\n\n/**\n * The display name of a model family from the API, such as `deepseek` → \"DeepSeek\". Product names are never\n * translated; `unknown` and ids the library doesn't know are \"Unknown\", translated through `t` (English without it).\n * In a component, prefer `useModelName()`, which translates into the page's language.\n */\nexport function modelName(model: string, t: UiText = englishText): string {\n const known = agentModel(model);\n return known === \"unknown\" ? t(\"agentAvatar.unknownModel\", \"Unknown\") : PRODUCT_NAMES[known];\n}\n\n/** `modelName` in the language of the nearest `LocaleProvider`. */\nexport function useModelName(): (model: string) => string {\n const t = useUiText();\n return useMemo(() => (model: string) => modelName(model, t), [t]);\n}\n","import { forwardRef, type CSSProperties } from \"react\";\nimport { Tooltip } from \"../tooltip/tooltip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useUiText } from \"../../i18n/context.js\";\nimport { Avatar } from \"../avatar/avatar.js\";\nimport { modelName } from \"./model-name.js\";\n\nexport const KAESO_AGENT_AVATAR_VARIANTS = {\n size: {\n 20: { classes: \"size-20 rounded-avatar\", glyph: \"size-14\", stroke: 2.25 },\n 24: { classes: \"size-24 rounded-avatar\", glyph: \"size-16\", stroke: 2 },\n 28: { classes: \"size-28 rounded-org\", glyph: \"size-18\", stroke: 2 },\n 32: { classes: \"size-32 rounded-org\", glyph: \"size-20\", stroke: 1.75 },\n 40: { classes: \"size-40 rounded-org\", glyph: \"size-28\", stroke: 1.5 },\n },\n} as const;\nexport const KAESO_AGENT_AVATAR_DEFAULT_VARIANTS = { size: 24 } as const;\n\nexport const KAESO_AGENT_ATTRIBUTION_VARIANTS = {\n size: {\n 20: { classes: \"size-8\", px: 8, glyph: \"size-6\", stroke: 3.5 },\n 24: { classes: \"size-10\", px: 10, glyph: \"size-8\", stroke: 3 },\n 28: { classes: \"size-12\", px: 12, glyph: \"size-10\", stroke: 2.75 },\n 32: { classes: \"size-12\", px: 12, glyph: \"size-10\", stroke: 2.75 },\n 40: { classes: \"size-16\", px: 16, glyph: \"size-12\", stroke: 2.5 },\n },\n} as const;\nexport const KAESO_AGENT_ATTRIBUTION_DEFAULT_VARIANTS = { size: 24 } as const;\n\ntype AvatarSize = keyof typeof KAESO_AGENT_AVATAR_VARIANTS.size;\n\n// Below 14px the ears merge with the head, so the badge drops them and widens the head instead.\nconst BADGE_BOT = [\n \"M6.5 7h11A3.5 3.5 0 0 1 21 10.5v6a3.5 3.5 0 0 1-3.5 3.5h-11A3.5 3.5 0 0 1 3 16.5v-6A3.5 3.5 0 0 1 6.5 7z\",\n \"M12 7V3.5\",\n \"M9 13v1.5\",\n \"M15 13v1.5\",\n];\nconst BOT = [\n \"M7.5 8h9A3.5 3.5 0 0 1 20 11.5v5a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-5A3.5 3.5 0 0 1 7.5 8z\",\n \"M12 8V4.5\",\n \"M9.5 13.5v1\",\n \"M14.5 13.5v1\",\n \"M2 13v2\",\n \"M22 13v2\",\n];\n\nfunction botGlyph(tile: { glyph: string; stroke: number }, paths: readonly string[] = BOT) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={tile.stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n className={tile.glyph}\n >\n {paths.map((d) => (\n <path key={d} d={d} />\n ))}\n </svg>\n );\n}\n\nexport interface AgentAvatarProps {\n name: string;\n size?: AvatarSize | undefined;\n decorative?: boolean | undefined;\n className?: string | undefined;\n}\n\nexport const AgentAvatar = /* @__PURE__ */ forwardRef<HTMLSpanElement, AgentAvatarProps>(function AgentAvatar({ name, size = 24, decorative, className }, ref) {\n const tile = KAESO_AGENT_AVATAR_VARIANTS.size[size];\n return (\n <span\n ref={ref}\n {...(decorative ? { \"aria-hidden\": true } : { role: \"img\", \"aria-label\": name })}\n className={cn(\n \"inline-flex shrink-0 items-center justify-center bg-fill-3 text-fg select-none forced-colors:outline forced-colors:-outline-offset-1\",\n tile.classes,\n className,\n )}\n >\n {botGlyph(tile)}\n </span>\n );\n});\nif (process.env.NODE_ENV !== \"production\") AgentAvatar.displayName = \"AgentAvatar\";\n\nexport interface AgentAttributionProps {\n name: string;\n src?: string | undefined;\n agent: { name: string; model: string };\n size?: AvatarSize | undefined;\n className?: string | undefined;\n}\n\nexport const AgentAttribution = /* @__PURE__ */ forwardRef<HTMLSpanElement, AgentAttributionProps>(function AgentAttribution({ name, src, agent, size = 24, className }, ref) {\n const t = useUiText();\n const badge = KAESO_AGENT_ATTRIBUTION_VARIANTS.size[size];\n const label = t(\"agentAttribution.label\", \"{name} via {agent} ({model})\", { name, agent: agent.name, model: modelName(agent.model, t) });\n const centre = `${size - badge.px / 2}px`;\n return (\n <Tooltip content={label}>\n <span ref={ref} role=\"img\" aria-label={label} className={cn(\"relative inline-flex shrink-0\", className)}>\n <span\n className=\"flex cutout rounded-pill\"\n style={{ \"--k-cut-x-ltr\": centre, \"--k-cut-y\": centre, \"--k-cut-r\": `${badge.px / 2 + 2}px` } as CSSProperties}\n >\n <Avatar name={name} {...(src ? { src } : {})} size={size} decorative />\n </span>\n <span\n aria-hidden\n data-agent-badge=\"\"\n className={cn(\n \"absolute right-0 bottom-0 inline-flex items-center justify-center rounded-pill bg-ink text-on-ink data-mark forced-colors:outline forced-colors:-outline-offset-1\",\n badge.classes,\n )}\n >\n {botGlyph(badge, BADGE_BOT)}\n </span>\n </span>\n </Tooltip>\n );\n});\nif (process.env.NODE_ENV !== \"production\") AgentAttribution.displayName = \"AgentAttribution\";\n"],"mappings":";;;;;;;;AAAA,IAAaG,IAAe,6LA2B5B;AAKA,SAAgBC,EAAW,GAA2B;CACpD,OAAQD,EAAmC,SAASE,CAAK,IAAKA,IAAuB;AACvF;;;AC9BA,IAAMC,IAA0E;CAC9E,QAAQ;CACR,KAAK;CACL,QAAQ;CACR,OAAO;CACP,MAAM;CACN,OAAO;CACP,SAAS;CACT,UAAU;CACV,MAAM;CACN,MAAM;CACN,KAAK;CACL,SAAS;CACT,SAAS;CACT,MAAM;CACN,KAAK;CACL,SAAS;CACT,OAAO;CACP,OAAO;CACP,SAAS;CACT,QAAQ;CACR,IAAI;CACJ,UAAU;CACV,MAAM;CACN,OAAO;CACP,MAAM;AACR;AAOA,SAAgBC,EAAU,GAAe,IAAYC,GAAqB;CACxE,IAAMC,IAAQL,EAAWC,CAAK;CAC9B,OAAOI,MAAU,YAAY,EAAE,4BAA4B,SAAS,IAAIH,EAAcG;AACxF;AAGA,SAAgBC,IAA0C;CACxD,IAAMC,IA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cAAc"}
1
+ {"version":3,"file":"agent-avatar-CepEC1TI.js","names":["cn","useUiText","Avatar","AGENT_MODELS","agentModel","model","PRODUCT_NAMES","modelName","englishText","known","useModelName","t","useMemo","KAESO_AGENT_AVATAR_VARIANTS","KAESO_AGENT_AVATAR_DEFAULT_VARIANTS","KAESO_AGENT_ATTRIBUTION_VARIANTS","KAESO_AGENT_ATTRIBUTION_DEFAULT_VARIANTS","BADGE_BOT","BOT","botGlyph","tile","paths","d","AgentAvatar","size","decorative","name","className","AgentAttribution","badge","label","agent","centre","Tooltip","src"],"sources":["../../src/components/agent-avatar/models.ts","../../src/components/agent-avatar/model-name.ts","../../src/components/agent-avatar/agent-avatar.tsx"],"sourcesContent":["export const AGENT_MODELS = [\n \"claude\",\n \"gpt\",\n \"gemini\",\n \"gemma\",\n \"grok\",\n \"llama\",\n \"mistral\",\n \"deepseek\",\n \"qwen\",\n \"kimi\",\n \"glm\",\n \"minimax\",\n \"command\",\n \"nova\",\n \"phi\",\n \"granite\",\n \"jamba\",\n \"ernie\",\n \"hunyuan\",\n \"doubao\",\n \"yi\",\n \"nemotron\",\n \"olmo\",\n \"sonar\",\n \"reka\",\n \"unknown\",\n] as const;\n\nexport type AgentModel = (typeof AGENT_MODELS)[number];\n\n/** The model family an API string names, or `unknown` for anything the library doesn't know. */\nexport function agentModel(model: string): AgentModel {\n return (AGENT_MODELS as readonly string[]).includes(model) ? (model as AgentModel) : \"unknown\";\n}\n","import { useMemo } from \"react\";\nimport { englishText, useUiText, type UiText } from \"../../i18n/context.js\";\nimport { agentModel, type AgentModel } from \"./models.js\";\n\nconst PRODUCT_NAMES: Readonly<Record<Exclude<AgentModel, \"unknown\">, string>> = {\n claude: \"Claude\",\n gpt: \"GPT\",\n gemini: \"Gemini\",\n gemma: \"Gemma\",\n grok: \"Grok\",\n llama: \"Llama\",\n mistral: \"Mistral\",\n deepseek: \"DeepSeek\",\n qwen: \"Qwen\",\n kimi: \"Kimi\",\n glm: \"GLM\",\n minimax: \"MiniMax\",\n command: \"Command\",\n nova: \"Nova\",\n phi: \"Phi\",\n granite: \"Granite\",\n jamba: \"Jamba\",\n ernie: \"ERNIE\",\n hunyuan: \"Hunyuan\",\n doubao: \"Doubao\",\n yi: \"Yi\",\n nemotron: \"Nemotron\",\n olmo: \"OLMo\",\n sonar: \"Sonar\",\n reka: \"Reka\",\n};\n\n/**\n * The display name of a model family from the API, such as `deepseek` → \"DeepSeek\". Product names are never\n * translated; `unknown` and ids the library doesn't know are \"Unknown\", translated through `t` (English without it).\n * In a component, prefer `useModelName()`, which translates into the page's language.\n */\nexport function modelName(model: string, t: UiText = englishText): string {\n const known = agentModel(model);\n return known === \"unknown\" ? t(\"agentAvatar.unknownModel\", \"Unknown\") : PRODUCT_NAMES[known];\n}\n\n/** `modelName` in the language of the nearest `LocaleProvider`. */\nexport function useModelName(): (model: string) => string {\n const t = useUiText();\n return useMemo(() => (model: string) => modelName(model, t), [t]);\n}\n","import { forwardRef, type CSSProperties } from \"react\";\nimport { Tooltip } from \"../tooltip/tooltip.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { useUiText } from \"../../i18n/context.js\";\nimport { Avatar } from \"../avatar/avatar.js\";\nimport { modelName } from \"./model-name.js\";\n\nexport const KAESO_AGENT_AVATAR_VARIANTS = {\n size: {\n 20: { classes: \"size-20 rounded-avatar\", glyph: \"size-14\", stroke: 2.25 },\n 24: { classes: \"size-24 rounded-avatar\", glyph: \"size-16\", stroke: 2 },\n 28: { classes: \"size-28 rounded-org\", glyph: \"size-18\", stroke: 2 },\n 32: { classes: \"size-32 rounded-org\", glyph: \"size-20\", stroke: 1.75 },\n 40: { classes: \"size-40 rounded-org\", glyph: \"size-28\", stroke: 1.5 },\n },\n} as const;\nexport const KAESO_AGENT_AVATAR_DEFAULT_VARIANTS = { size: 24 } as const;\n\nexport const KAESO_AGENT_ATTRIBUTION_VARIANTS = {\n size: {\n 20: { classes: \"size-8\", px: 8, glyph: \"size-6\", stroke: 3.5 },\n 24: { classes: \"size-10\", px: 10, glyph: \"size-8\", stroke: 3 },\n 28: { classes: \"size-12\", px: 12, glyph: \"size-10\", stroke: 2.75 },\n 32: { classes: \"size-12\", px: 12, glyph: \"size-10\", stroke: 2.75 },\n 40: { classes: \"size-16\", px: 16, glyph: \"size-12\", stroke: 2.5 },\n },\n} as const;\nexport const KAESO_AGENT_ATTRIBUTION_DEFAULT_VARIANTS = { size: 24 } as const;\n\ntype AvatarSize = keyof typeof KAESO_AGENT_AVATAR_VARIANTS.size;\n\n// Below 14px the ears merge with the head, so the badge drops them and widens the head instead.\nconst BADGE_BOT = [\n \"M6.5 7h11A3.5 3.5 0 0 1 21 10.5v6a3.5 3.5 0 0 1-3.5 3.5h-11A3.5 3.5 0 0 1 3 16.5v-6A3.5 3.5 0 0 1 6.5 7z\",\n \"M12 7V3.5\",\n \"M9 13v1.5\",\n \"M15 13v1.5\",\n];\nconst BOT = [\n \"M7.5 8h9A3.5 3.5 0 0 1 20 11.5v5a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-5A3.5 3.5 0 0 1 7.5 8z\",\n \"M12 8V4.5\",\n \"M9.5 13.5v1\",\n \"M14.5 13.5v1\",\n \"M2 13v2\",\n \"M22 13v2\",\n];\n\nfunction botGlyph(tile: { glyph: string; stroke: number }, paths: readonly string[] = BOT) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={tile.stroke}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n className={tile.glyph}\n >\n {paths.map((d) => (\n <path key={d} d={d} />\n ))}\n </svg>\n );\n}\n\nexport interface AgentAvatarProps {\n name: string;\n size?: AvatarSize | undefined;\n decorative?: boolean | undefined;\n className?: string | undefined;\n}\n\nexport const AgentAvatar = /* @__PURE__ */ forwardRef<HTMLSpanElement, AgentAvatarProps>(function AgentAvatar({ name, size = 24, decorative, className }, ref) {\n const tile = KAESO_AGENT_AVATAR_VARIANTS.size[size];\n return (\n <span\n ref={ref}\n {...(decorative ? { \"aria-hidden\": true } : { role: \"img\", \"aria-label\": name })}\n className={cn(\n \"inline-flex shrink-0 items-center justify-center bg-fill-3 text-fg select-none forced-colors:outline forced-colors:-outline-offset-1\",\n tile.classes,\n className,\n )}\n >\n {botGlyph(tile)}\n </span>\n );\n});\nif (process.env.NODE_ENV !== \"production\") AgentAvatar.displayName = \"AgentAvatar\";\n\nexport interface AgentAttributionProps {\n name: string;\n src?: string | undefined;\n agent: { name: string; model: string };\n size?: AvatarSize | undefined;\n className?: string | undefined;\n}\n\nexport const AgentAttribution = /* @__PURE__ */ forwardRef<HTMLSpanElement, AgentAttributionProps>(function AgentAttribution({ name, src, agent, size = 24, className }, ref) {\n const t = useUiText();\n const badge = KAESO_AGENT_ATTRIBUTION_VARIANTS.size[size];\n const label = t(\"agentAttribution.label\", \"{name} via {agent} ({model})\", { name, agent: agent.name, model: modelName(agent.model, t) });\n const centre = `${size - badge.px / 2}px`;\n return (\n <Tooltip content={label}>\n <span ref={ref} role=\"img\" aria-label={label} className={cn(\"relative inline-flex shrink-0\", className)}>\n <span\n className=\"flex cutout rounded-pill\"\n style={{ \"--k-cut-x-ltr\": centre, \"--k-cut-y\": centre, \"--k-cut-r\": `${badge.px / 2 + 2}px` } as CSSProperties}\n >\n <Avatar name={name} {...(src ? { src } : {})} size={size} decorative />\n </span>\n <span\n aria-hidden\n data-agent-badge=\"\"\n className={cn(\n \"absolute right-0 bottom-0 inline-flex items-center justify-center rounded-pill bg-ink text-on-ink data-mark forced-colors:outline forced-colors:-outline-offset-1\",\n badge.classes,\n )}\n >\n {botGlyph(badge, BADGE_BOT)}\n </span>\n </span>\n </Tooltip>\n );\n});\nif (process.env.NODE_ENV !== \"production\") AgentAttribution.displayName = \"AgentAttribution\";\n"],"mappings":";;;;;;;;AAAA,IAAaG,IAAe,6LA2B5B;AAKA,SAAgBC,EAAW,GAA2B;CACpD,OAAQD,EAAm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AD;GAAW;GAAK,MAAK;GAAM,cAAYA;GAAO,WAAW9B,EAAG,iCAAiC2B,CAAS;GAAtG,UAAA,CACE,kBAAC,QAAD;IACE,WAAU;IACV,OAAO;KAAE,iBAAiBK;KAAQ,aAAaA;KAAQ,aAAa,GAAGH,EAAM,KAAK,IAAI,EAAE;IAAI;IAE5F,UAAA,kBAAC3B,GAAD;KAAc;KAAM,GAAKgC,IAAM,EAAE,OAAI,IAAI,CAAC;KAAU;KAAM,YAAA;IAAY,CAAA;GAClE,CAAA,GACN,kBAAC,QAAD;IACE,eAAA;IACA,oBAAiB;IACjB,WAAWlC,EACT,qKACA6B,EAAM,OACR;IAEC,UAAAV,EAASU,GAAOZ,CAAS;GACtB,CAAA,CACF;;CACC,CAAA;AAEb,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAiB,cAAc"}
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { t as e } from "./cn-y70pJ-RU.js";
2
+ import { t as e } from "./cn-BUMD6lNz.js";
3
3
  import { t } from "./portal-context-CTatR2Z8.js";
4
4
  import { n, t as r } from "./inset-BUzyXLK4.js";
5
5
  import { i } from "./context-BELWW79w.js";
6
- import { l as a, s as o } from "./tooltip-wfY3dDNy.js";
7
- import { a as s } from "./button-BhgnxxnI.js";
8
- import { t as c } from "./icon-button-B8Xm10KH.js";
9
- import { l, t as u } from "./sidebar-rSlJVHXr.js";
6
+ import { l as a, s as o } from "./tooltip-DxtFh0_0.js";
7
+ import { a as s } from "./button-DiwFpDfQ.js";
8
+ import { t as c } from "./icon-button-DxixlFmR.js";
9
+ import { l, t as u } from "./sidebar-CLq7XuOp.js";
10
10
  import { t as d } from "./when-idle-Cy3pinqO.js";
11
11
  import { createContext as f, forwardRef as p, useCallback as m, useContext as h, useEffect as g, useId as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
12
12
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
@@ -109,7 +109,7 @@ function j({ banner: e, href: t, label: n, actions: r, open: a, onToggle: o, tog
109
109
  });
110
110
  }
111
111
  process.env.NODE_ENV !== "production" && (j.displayName = "AppFrame.PhoneBar");
112
- var M = 750, N = 160, P = /* @__PURE__ */ o(() => import("./nav-sheet-C1oJliq_.js").then((e) => e.n), { base: () => import.meta.url });
112
+ var M = 750, N = 160, P = /* @__PURE__ */ o(() => import("./nav-sheet-B9JDgXGp.js").then((e) => e.n), { base: () => import.meta.url });
113
113
  function F({ navOpen: e, setNavOpen: t, toggle: n, ready: r, children: i }) {
114
114
  let { peeking: o, setPeeking: s } = l(), [c, u] = x(!1);
115
115
  g(() => d(() => u(!0)), []);
@@ -229,4 +229,4 @@ var H = /* @__PURE__ */ Object.assign(k, {
229
229
  //#endregion
230
230
  export { T as a, E as i, z as n, M as o, R as r, O as s, H as t };
231
231
 
232
- //# sourceMappingURL=app-frame-FPxcLx5a.js.map
232
+ //# sourceMappingURL=app-frame-CxnPDACQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-frame-FPxcLx5a.js","names":["__icon_SidebarLeftIcon","cn","GutterContent","useLazyModule","lazyModule","buttonClasses","IconButton","BrandWordmark","whenIdle","KAESO_APP_FRAME_VARIANTS","KAESO_APP_FRAME_DEFAULT_VARIANTS","Ctx","useAppFrame","useContext","Root","navOpen","setNavOpen","useState","toggle","useRef","sheetReady","mainId","useId","Main","fill","frame","useMemo","sheet","FrameSheet","sidebar","className","SkipLink","PhoneBar","brandHref","brandLabel","phoneActions","o","corner","PortalContainer","t","useUiText","target","main","Bar","banner","actions","toggleRef","SidebarLeftIcon","open","onToggle","PEEK_DELAY","PEEK_LEAVE","navSheet","n","useSidebar","idle","setIdle","dismiss","useCallback","setPeeking","NavSheet","peeking","pending","useLayoutEffect","usePendingDismiss","doc","onKeyDown","onPointerDown","MenuButton","intent","wide","collapsed","shortcut","setCollapsed","openNav","KAESO_APP_FRAME_BODY_VARIANTS","KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS","Body","props","padding","Settings","title","description","InsetContent","AppFrame"],"sources":["../../src/components/app-frame/app-frame.tsx"],"sourcesContent":["import {\n createContext,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { GutterContent, InsetContent } from \"../../utils/inset.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { SidebarLeftIcon as __icon_SidebarLeftIcon } from \"@hugeicons/core-free-icons\";\nimport { IconButton } from \"../icon-button/icon-button.js\";\nimport { buttonClasses } from \"../button/button.js\";\nimport { useSidebar, BrandWordmark } from \"../sidebar/sidebar.js\";\nimport { PortalContainer } from \"../../utils/portal-context.js\";\nimport { lazyModule, useLazyModule } from \"../../utils/lazy-module.js\";\nimport { whenIdle } from \"../../utils/when-idle.js\";\nimport { useUiText } from \"../../i18n/context.js\";\n\nexport const KAESO_APP_FRAME_VARIANTS = {\n fill: {\n screen: { classes: \"h-dvh\" },\n parent: { classes: \"h-full\" },\n },\n} as const;\nexport const KAESO_APP_FRAME_DEFAULT_VARIANTS = { fill: \"screen\" } as const;\n\nconst Ctx = /* @__PURE__ */ createContext<{ openNav: () => void; embedded: boolean; sheetReady: RefObject<boolean> }>({\n openNav: () => undefined,\n embedded: false,\n sheetReady: { current: false },\n});\nexport const useAppFrame = () => useContext(Ctx);\n\nexport interface AppFrameProps {\n sidebar: ReactNode;\n children: ReactNode;\n corner?: ReactNode | undefined;\n fill?: keyof typeof KAESO_APP_FRAME_VARIANTS.fill | undefined;\n brandHref?: string | undefined;\n brandLabel?: string | undefined;\n phoneActions?: ReactNode | undefined;\n className?: string | undefined;\n}\n\nconst Root = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameProps>(function AppFrame(\n { sidebar, children, corner, fill = \"screen\", brandHref, brandLabel, phoneActions, className },\n ref,\n) {\n const [navOpen, setNavOpen] = useState(false);\n const toggle = useRef<HTMLButtonElement | null>(null);\n const sheetReady = useRef(false);\n const mainId = `k-main-${useId().replace(/[^\\w-]/g, \"\")}`;\n const Main = fill === \"screen\" ? \"main\" : \"div\";\n const frame = useMemo(() => ({ openNav: () => setNavOpen(true), embedded: fill === \"parent\", sheetReady }), [fill]);\n const sheet = (\n <FrameSheet navOpen={navOpen} setNavOpen={setNavOpen} toggle={toggle} ready={sheetReady}>\n {sidebar}\n </FrameSheet>\n );\n return (\n <Ctx.Provider value={frame}>\n <div\n ref={ref}\n data-app-frame={fill}\n className={cn(\n \"relative isolate flex w-full flex-col overflow-hidden bg-chrome text-fg lg:flex-row\",\n KAESO_APP_FRAME_VARIANTS.fill[fill].classes,\n className,\n )}\n >\n <SkipLink target={mainId} />\n <div className=\"hidden h-full lg:flex\">{sidebar}</div>\n <PhoneBar\n banner={fill === \"screen\"}\n href={brandHref}\n label={brandLabel}\n actions={phoneActions}\n open={navOpen}\n onToggle={() => setNavOpen((o) => !o)}\n toggleRef={toggle}\n />\n <Main\n id={mainId}\n className=\"relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-panel outline-none safe-area-panel lg:my-8 lg:mr-8 lg:rounded-panel lg:shadow-panel\"\n >\n {children}\n </Main>\n {corner && <div className={cn(fill === \"parent\" ? \"absolute\" : \"fixed\", \"right-16 bottom-16 z-10 flex items-center gap-8\")}>{corner}</div>}\n {fill === \"parent\" ? <PortalContainer className=\"contents\">{sheet}</PortalContainer> : sheet}\n </div>\n </Ctx.Provider>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Root.displayName = \"AppFrame\";\n\nfunction SkipLink({ target }: { target: string }) {\n const t = useUiText();\n return (\n <a\n href={`#${target}`}\n onClick={(e) => {\n const main = document.getElementById(target);\n if (!main) return;\n e.preventDefault();\n main.setAttribute(\"tabindex\", \"-1\");\n main.addEventListener(\"blur\", () => main.removeAttribute(\"tabindex\"), { once: true });\n main.focus();\n }}\n className={cn(buttonClasses({ size: \"sm\" }), \"absolute top-16 left-16 z-50 not-focus:sr-only\")}\n >\n {t(\"appFrame.skipToContent\", \"Skip to content\")}\n </a>\n );\n}\nif (process.env.NODE_ENV !== \"production\") SkipLink.displayName = \"AppFrame.SkipLink\";\n\nfunction PhoneBar({\n banner,\n href,\n label,\n actions,\n open,\n onToggle,\n toggleRef,\n}: {\n banner: boolean;\n href: string | undefined;\n label: string | undefined;\n actions: ReactNode;\n open: boolean;\n onToggle: () => void;\n toggleRef: RefObject<HTMLButtonElement | null>;\n}) {\n const Bar = banner ? \"header\" : \"div\";\n const t = useUiText();\n return (\n <Bar data-phone-bar=\"\" className=\"shrink-0 bg-panel safe-area-bar lg:hidden\">\n <div className=\"mt-8 flex h-52 items-center justify-between px-24\">\n <BrandWordmark href={href} label={label} />\n <span className=\"flex items-center\">\n {actions}\n <IconButton\n ref={toggleRef}\n icon={__icon_SidebarLeftIcon}\n aria-label={t(\"appFrame.openNavigation\", \"Open navigation\")}\n aria-haspopup=\"dialog\"\n aria-expanded={open}\n tooltip={false}\n onClick={onToggle}\n />\n </span>\n </div>\n </Bar>\n );\n}\nif (process.env.NODE_ENV !== \"production\") PhoneBar.displayName = \"AppFrame.PhoneBar\";\n\nexport const PEEK_DELAY = 750;\nconst PEEK_LEAVE = 160;\n\nconst navSheet = /* @__PURE__ */ lazyModule(() => import(\"./nav-sheet.js\"), { base: () => import.meta.url });\n\nfunction FrameSheet({\n navOpen,\n setNavOpen,\n toggle,\n ready,\n children,\n}: {\n navOpen: boolean;\n setNavOpen: (o: boolean) => void;\n toggle: RefObject<HTMLElement | null>;\n ready: RefObject<boolean>;\n children: ReactNode;\n}) {\n const { peeking, setPeeking } = useSidebar();\n const [idle, setIdle] = useState(false);\n useEffect(() => whenIdle(() => setIdle(true)), []);\n const dismiss = useCallback(() => {\n setNavOpen(false);\n setPeeking(false);\n }, [setNavOpen, setPeeking]);\n const NavSheet = useLazyModule(navSheet, idle || navOpen || peeking, () => {\n setIdle(false);\n dismiss();\n })?.NavSheet;\n const pending = (navOpen || peeking) && !NavSheet;\n useLayoutEffect(() => {\n ready.current = !!NavSheet;\n });\n usePendingDismiss(pending, toggle, dismiss);\n if (!NavSheet) return null;\n return (\n <NavSheet\n open={navOpen || peeking}\n peek={peeking && !navOpen}\n {...(navOpen ? { returnFocus: toggle } : {})}\n onOpenChange={(o) => {\n if (!o) dismiss();\n }}\n >\n {children}\n </NavSheet>\n );\n}\n\nfunction usePendingDismiss(pending: boolean, toggle: RefObject<HTMLElement | null>, dismiss: () => void) {\n useEffect(() => {\n if (!pending) return;\n const doc = toggle.current?.ownerDocument ?? document;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Escape\") return;\n e.stopPropagation();\n dismiss();\n };\n const onPointerDown = (e: PointerEvent) => {\n if (!toggle.current?.contains(e.target as Node)) dismiss();\n };\n doc.addEventListener(\"keydown\", onKeyDown, true);\n doc.addEventListener(\"pointerdown\", onPointerDown, true);\n return () => {\n doc.removeEventListener(\"keydown\", onKeyDown, true);\n doc.removeEventListener(\"pointerdown\", onPointerDown, true);\n };\n }, [pending, toggle, dismiss]);\n}\n\nconst MenuButton = /* @__PURE__ */ forwardRef<HTMLButtonElement, { className?: string | undefined }>(function AppFrameMenuButton({ className }, ref) {\n const { openNav, sheetReady } = useAppFrame();\n const { collapsed, setCollapsed, peeking, setPeeking, shortcut } = useSidebar();\n const intent = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n useEffect(() => () => clearTimeout(intent.current), []);\n const t = useUiText();\n const wide = () => typeof window !== \"undefined\" && window.matchMedia(\"(min-width: 1024px)\").matches;\n return (\n <IconButton\n ref={ref}\n onPointerEnter={() => {\n clearTimeout(intent.current);\n if (collapsed && wide() && !peeking) intent.current = setTimeout(() => setPeeking(true), PEEK_DELAY);\n }}\n onPointerLeave={(e) => {\n clearTimeout(intent.current);\n if (!sheetReady.current || !peeking) return setPeeking(false);\n const doc = e.currentTarget.ownerDocument;\n intent.current = setTimeout(() => {\n if (!doc.querySelector(\"[data-nav-sheet]\")?.matches(\":hover\")) setPeeking(false);\n }, PEEK_LEAVE);\n }}\n icon={__icon_SidebarLeftIcon}\n data-sidebar-expand=\"\"\n aria-label={collapsed ? t(\"appFrame.expandSidebar\", \"Expand sidebar\") : t(\"appFrame.openNavigation\", \"Open navigation\")}\n shortcut={collapsed && shortcut ? [\"[\"] : undefined}\n onClick={() => {\n clearTimeout(intent.current);\n if (collapsed && wide()) setCollapsed(false);\n else openNav();\n }}\n className={cn(\"hidden\", collapsed && \"lg:inline-flex\", className)}\n />\n );\n});\nif (process.env.NODE_ENV !== \"production\") MenuButton.displayName = \"AppFrame.MenuButton\";\n\nexport const KAESO_APP_FRAME_BODY_VARIANTS = {\n padding: {\n none: { classes: \"\" },\n list: { classes: \"pt-8 pb-24\" },\n page: { classes: \"px-24 pt-16 pb-48\" },\n },\n} as const;\nexport const KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS = { padding: \"none\" } as const;\n\nexport interface AppFrameBodyProps extends HTMLAttributes<HTMLDivElement> {\n padding?: keyof typeof KAESO_APP_FRAME_BODY_VARIANTS.padding | undefined;\n}\n\nconst Body = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameBodyProps>(function AppFrameBody({ className, padding = \"none\", children, ...props }, ref) {\n return (\n <div\n ref={ref}\n className={cn(\"min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-quiet\", KAESO_APP_FRAME_BODY_VARIANTS.padding[padding].classes, className)}\n {...props}\n >\n <GutterContent padded={padding === \"page\"}>{children}</GutterContent>\n </div>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Body.displayName = \"AppFrame.Body\";\n\nexport interface SettingsPageProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n title: ReactNode;\n description?: ReactNode | undefined;\n actions?: ReactNode | undefined;\n}\n\nconst Settings = /* @__PURE__ */ forwardRef<HTMLDivElement, SettingsPageProps>(function AppFrameSettings({ title, description, actions, className, children, ...props }, ref) {\n return (\n <Body ref={ref} className=\"relative\">\n <MenuButton className=\"absolute top-10 left-24 z-10\" />\n <div className={cn(\"w-full px-24 pt-16 pb-96 lg:mx-auto lg:max-w-settings lg:pt-64\", className)} {...props}>\n <header className=\"flex flex-wrap items-start justify-between gap-x-16 gap-y-8\">\n <h1 className=\"min-w-0 text-title-lg font-semibold text-fg text-balance\">{title}</h1>\n {actions && <div className=\"order-last flex h-34 shrink-0 items-center gap-8 sm:order-none sm:ml-auto\">{actions}</div>}\n {description && <p className=\"basis-full text-body-lg font-regular text-fg-secondary\">{description}</p>}\n </header>\n <div className=\"mt-8\">\n <InsetContent>\n <GutterContent>{children}</GutterContent>\n </InsetContent>\n </div>\n </div>\n </Body>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Settings.displayName = \"AppFrame.Settings\";\n\nexport const AppFrame = /* @__PURE__ */ Object.assign(Root, { MenuButton, Body, Settings });\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAaS,IAA2B,EACtC,MAAM;CACJ,QAAQ,EAAE,SAAS,QAAQ;CAC3B,QAAQ,EAAE,SAAS,SAAS;AAC9B,EACF,GACaC,IAAmC,EAAE,MAAM,SAAS,GAE3DC,IAAsB,kBAA0F;CACpH,eAAe,KAAA;CACf,UAAU;CACV,YAAY,EAAE,SAAS,GAAM;AAC/B,CAAC,GACYC,UAAoBC,EAAWF,CAAG,GAazCG,IAAuB,kBAA0C,SACrE,EAAE,YAAS,aAAU,WAAQ,UAAO,UAAU,cAAW,eAAY,iBAAc,gBACnF,GACA;CACA,IAAM,CAACC,GAASC,KAAcC,EAAS,EAAK,GACtCC,IAASC,EAAiC,IAAI,GAC9CC,IAAaD,EAAO,EAAK,GACzBE,IAAS,UAAUC,EAAM,CAAC,CAAC,QAAQ,WAAW,EAAE,KAChDC,IAAOC,MAAS,WAAW,SAAS,OACpCC,IAAQC,SAAe;EAAE,eAAeV,EAAW,EAAI;EAAG,UAAUQ,MAAS;EAAU;CAAW,IAAI,CAACA,CAAI,CAAC,GAC5GG,IACJ,kBAACC,GAAD;EAAqB;EAAqB;EAAoB;EAAQ,OAA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Aa,YAAS,cAAW,aAAU,GAAGF,KAAS,GAAK;CAC5K,OACE,kBAACD,GAAD;EAAW;EAAK,WAAU;EAA1B,UAAA,CACE,kBAACT,GAAD,EAAY,WAAU,+BAAgC,CAAA,GACtD,kBAAC,OAAD;GAAK,WAAWnE,EAAG,kEAAkE6B,CAAS;GAAG,GAAIgD;GAArG,UAAA,CACE,kBAAC,UAAD;IAAQ,WAAU;IAAlB,UAAA;KACE,kBAAC,MAAD;MAAI,WAAU;MAA4D,UAAAG;KAAU,CAAA;KACnFpC,KAAW,kBAAC,OAAD;MAAK,WAAU;MAA6E,UAAAA;KAAa,CAAA;KACpHqC,KAAe,kBAAC,KAAD;MAAG,WAAU;MAA0D,UAAAA;KAAe,CAAA;IAChG;GACR,CAAA,GAAA,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAACC,GAAD,EAAA,UACE,kBAACjF,GAAD,EAAgB,YAAwB,CAAA,EAC5B,CAAA;GACX,CAAA,CACF;EACD,CAAA,CAAA;;AAEV,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAS,cAAc;AAElE,IAAakF,IAA2B,uBAAO,OAAOtE,GAAM;CAAE;CAAY;CAAM;AAAS,CAAC"}
1
+ {"version":3,"file":"app-frame-CxnPDACQ.js","names":["__icon_SidebarLeftIcon","cn","GutterContent","useLazyModule","lazyModule","buttonClasses","IconButton","BrandWordmark","whenIdle","KAESO_APP_FRAME_VARIANTS","KAESO_APP_FRAME_DEFAULT_VARIANTS","Ctx","useAppFrame","useContext","Root","navOpen","setNavOpen","useState","toggle","useRef","sheetReady","mainId","useId","Main","fill","frame","useMemo","sheet","FrameSheet","sidebar","className","SkipLink","PhoneBar","brandHref","brandLabel","phoneActions","o","corner","PortalContainer","t","useUiText","target","main","Bar","banner","actions","toggleRef","SidebarLeftIcon","open","onToggle","PEEK_DELAY","PEEK_LEAVE","navSheet","n","useSidebar","idle","setIdle","dismiss","useCallback","setPeeking","NavSheet","peeking","pending","useLayoutEffect","usePendingDismiss","doc","onKeyDown","onPointerDown","MenuButton","intent","wide","collapsed","shortcut","setCollapsed","openNav","KAESO_APP_FRAME_BODY_VARIANTS","KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS","Body","props","padding","Settings","title","description","InsetContent","AppFrame"],"sources":["../../src/components/app-frame/app-frame.tsx"],"sourcesContent":["import {\n createContext,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { GutterContent, InsetContent } from \"../../utils/inset.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { SidebarLeftIcon as __icon_SidebarLeftIcon } from \"@hugeicons/core-free-icons\";\nimport { IconButton } from \"../icon-button/icon-button.js\";\nimport { buttonClasses } from \"../button/button.js\";\nimport { useSidebar, BrandWordmark } from \"../sidebar/sidebar.js\";\nimport { PortalContainer } from \"../../utils/portal-context.js\";\nimport { lazyModule, useLazyModule } from \"../../utils/lazy-module.js\";\nimport { whenIdle } from \"../../utils/when-idle.js\";\nimport { useUiText } from \"../../i18n/context.js\";\n\nexport const KAESO_APP_FRAME_VARIANTS = {\n fill: {\n screen: { classes: \"h-dvh\" },\n parent: { classes: \"h-full\" },\n },\n} as const;\nexport const KAESO_APP_FRAME_DEFAULT_VARIANTS = { fill: \"screen\" } as const;\n\nconst Ctx = /* @__PURE__ */ createContext<{ openNav: () => void; embedded: boolean; sheetReady: RefObject<boolean> }>({\n openNav: () => undefined,\n embedded: false,\n sheetReady: { current: false },\n});\nexport const useAppFrame = () => useContext(Ctx);\n\nexport interface AppFrameProps {\n sidebar: ReactNode;\n children: ReactNode;\n corner?: ReactNode | undefined;\n fill?: keyof typeof KAESO_APP_FRAME_VARIANTS.fill | undefined;\n brandHref?: string | undefined;\n brandLabel?: string | undefined;\n phoneActions?: ReactNode | undefined;\n className?: string | undefined;\n}\n\nconst Root = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameProps>(function AppFrame(\n { sidebar, children, corner, fill = \"screen\", brandHref, brandLabel, phoneActions, className },\n ref,\n) {\n const [navOpen, setNavOpen] = useState(false);\n const toggle = useRef<HTMLButtonElement | null>(null);\n const sheetReady = useRef(false);\n const mainId = `k-main-${useId().replace(/[^\\w-]/g, \"\")}`;\n const Main = fill === \"screen\" ? \"main\" : \"div\";\n const frame = useMemo(() => ({ openNav: () => setNavOpen(true), embedded: fill === \"parent\", sheetReady }), [fill]);\n const sheet = (\n <FrameSheet navOpen={navOpen} setNavOpen={setNavOpen} toggle={toggle} ready={sheetReady}>\n {sidebar}\n </FrameSheet>\n );\n return (\n <Ctx.Provider value={frame}>\n <div\n ref={ref}\n data-app-frame={fill}\n className={cn(\n \"relative isolate flex w-full flex-col overflow-hidden bg-chrome text-fg lg:flex-row\",\n KAESO_APP_FRAME_VARIANTS.fill[fill].classes,\n className,\n )}\n >\n <SkipLink target={mainId} />\n <div className=\"hidden h-full lg:flex\">{sidebar}</div>\n <PhoneBar\n banner={fill === \"screen\"}\n href={brandHref}\n label={brandLabel}\n actions={phoneActions}\n open={navOpen}\n onToggle={() => setNavOpen((o) => !o)}\n toggleRef={toggle}\n />\n <Main\n id={mainId}\n className=\"relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-panel outline-none safe-area-panel lg:my-8 lg:mr-8 lg:rounded-panel lg:shadow-panel\"\n >\n {children}\n </Main>\n {corner && <div className={cn(fill === \"parent\" ? \"absolute\" : \"fixed\", \"right-16 bottom-16 z-10 flex items-center gap-8\")}>{corner}</div>}\n {fill === \"parent\" ? <PortalContainer className=\"contents\">{sheet}</PortalContainer> : sheet}\n </div>\n </Ctx.Provider>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Root.displayName = \"AppFrame\";\n\nfunction SkipLink({ target }: { target: string }) {\n const t = useUiText();\n return (\n <a\n href={`#${target}`}\n onClick={(e) => {\n const main = document.getElementById(target);\n if (!main) return;\n e.preventDefault();\n main.setAttribute(\"tabindex\", \"-1\");\n main.addEventListener(\"blur\", () => main.removeAttribute(\"tabindex\"), { once: true });\n main.focus();\n }}\n className={cn(buttonClasses({ size: \"sm\" }), \"absolute top-16 left-16 z-50 not-focus:sr-only\")}\n >\n {t(\"appFrame.skipToContent\", \"Skip to content\")}\n </a>\n );\n}\nif (process.env.NODE_ENV !== \"production\") SkipLink.displayName = \"AppFrame.SkipLink\";\n\nfunction PhoneBar({\n banner,\n href,\n label,\n actions,\n open,\n onToggle,\n toggleRef,\n}: {\n banner: boolean;\n href: string | undefined;\n label: string | undefined;\n actions: ReactNode;\n open: boolean;\n onToggle: () => void;\n toggleRef: RefObject<HTMLButtonElement | null>;\n}) {\n const Bar = banner ? \"header\" : \"div\";\n const t = useUiText();\n return (\n <Bar data-phone-bar=\"\" className=\"shrink-0 bg-panel safe-area-bar lg:hidden\">\n <div className=\"mt-8 flex h-52 items-center justify-between px-24\">\n <BrandWordmark href={href} label={label} />\n <span className=\"flex items-center\">\n {actions}\n <IconButton\n ref={toggleRef}\n icon={__icon_SidebarLeftIcon}\n aria-label={t(\"appFrame.openNavigation\", \"Open navigation\")}\n aria-haspopup=\"dialog\"\n aria-expanded={open}\n tooltip={false}\n onClick={onToggle}\n />\n </span>\n </div>\n </Bar>\n );\n}\nif (process.env.NODE_ENV !== \"production\") PhoneBar.displayName = \"AppFrame.PhoneBar\";\n\nexport const PEEK_DELAY = 750;\nconst PEEK_LEAVE = 160;\n\nconst navSheet = /* @__PURE__ */ lazyModule(() => import(\"./nav-sheet.js\"), { base: () => import.meta.url });\n\nfunction FrameSheet({\n navOpen,\n setNavOpen,\n toggle,\n ready,\n children,\n}: {\n navOpen: boolean;\n setNavOpen: (o: boolean) => void;\n toggle: RefObject<HTMLElement | null>;\n ready: RefObject<boolean>;\n children: ReactNode;\n}) {\n const { peeking, setPeeking } = useSidebar();\n const [idle, setIdle] = useState(false);\n useEffect(() => whenIdle(() => setIdle(true)), []);\n const dismiss = useCallback(() => {\n setNavOpen(false);\n setPeeking(false);\n }, [setNavOpen, setPeeking]);\n const NavSheet = useLazyModule(navSheet, idle || navOpen || peeking, () => {\n setIdle(false);\n dismiss();\n })?.NavSheet;\n const pending = (navOpen || peeking) && !NavSheet;\n useLayoutEffect(() => {\n ready.current = !!NavSheet;\n });\n usePendingDismiss(pending, toggle, dismiss);\n if (!NavSheet) return null;\n return (\n <NavSheet\n open={navOpen || peeking}\n peek={peeking && !navOpen}\n {...(navOpen ? { returnFocus: toggle } : {})}\n onOpenChange={(o) => {\n if (!o) dismiss();\n }}\n >\n {children}\n </NavSheet>\n );\n}\n\nfunction usePendingDismiss(pending: boolean, toggle: RefObject<HTMLElement | null>, dismiss: () => void) {\n useEffect(() => {\n if (!pending) return;\n const doc = toggle.current?.ownerDocument ?? document;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Escape\") return;\n e.stopPropagation();\n dismiss();\n };\n const onPointerDown = (e: PointerEvent) => {\n if (!toggle.current?.contains(e.target as Node)) dismiss();\n };\n doc.addEventListener(\"keydown\", onKeyDown, true);\n doc.addEventListener(\"pointerdown\", onPointerDown, true);\n return () => {\n doc.removeEventListener(\"keydown\", onKeyDown, true);\n doc.removeEventListener(\"pointerdown\", onPointerDown, true);\n };\n }, [pending, toggle, dismiss]);\n}\n\nconst MenuButton = /* @__PURE__ */ forwardRef<HTMLButtonElement, { className?: string | undefined }>(function AppFrameMenuButton({ className }, ref) {\n const { openNav, sheetReady } = useAppFrame();\n const { collapsed, setCollapsed, peeking, setPeeking, shortcut } = useSidebar();\n const intent = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n useEffect(() => () => clearTimeout(intent.current), []);\n const t = useUiText();\n const wide = () => typeof window !== \"undefined\" && window.matchMedia(\"(min-width: 1024px)\").matches;\n return (\n <IconButton\n ref={ref}\n onPointerEnter={() => {\n clearTimeout(intent.current);\n if (collapsed && wide() && !peeking) intent.current = setTimeout(() => setPeeking(true), PEEK_DELAY);\n }}\n onPointerLeave={(e) => {\n clearTimeout(intent.current);\n if (!sheetReady.current || !peeking) return setPeeking(false);\n const doc = e.currentTarget.ownerDocument;\n intent.current = setTimeout(() => {\n if (!doc.querySelector(\"[data-nav-sheet]\")?.matches(\":hover\")) setPeeking(false);\n }, PEEK_LEAVE);\n }}\n icon={__icon_SidebarLeftIcon}\n data-sidebar-expand=\"\"\n aria-label={collapsed ? t(\"appFrame.expandSidebar\", \"Expand sidebar\") : t(\"appFrame.openNavigation\", \"Open navigation\")}\n shortcut={collapsed && shortcut ? [\"[\"] : undefined}\n onClick={() => {\n clearTimeout(intent.current);\n if (collapsed && wide()) setCollapsed(false);\n else openNav();\n }}\n className={cn(\"hidden\", collapsed && \"lg:inline-flex\", className)}\n />\n );\n});\nif (process.env.NODE_ENV !== \"production\") MenuButton.displayName = \"AppFrame.MenuButton\";\n\nexport const KAESO_APP_FRAME_BODY_VARIANTS = {\n padding: {\n none: { classes: \"\" },\n list: { classes: \"pt-8 pb-24\" },\n page: { classes: \"px-24 pt-16 pb-48\" },\n },\n} as const;\nexport const KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS = { padding: \"none\" } as const;\n\nexport interface AppFrameBodyProps extends HTMLAttributes<HTMLDivElement> {\n padding?: keyof typeof KAESO_APP_FRAME_BODY_VARIANTS.padding | undefined;\n}\n\nconst Body = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameBodyProps>(function AppFrameBody({ className, padding = \"none\", children, ...props }, ref) {\n return (\n <div\n ref={ref}\n className={cn(\"min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-quiet\", KAESO_APP_FRAME_BODY_VARIANTS.padding[padding].classes, className)}\n {...props}\n >\n <GutterContent padded={padding === \"page\"}>{children}</GutterContent>\n </div>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Body.displayName = \"AppFrame.Body\";\n\nexport interface SettingsPageProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n title: ReactNode;\n description?: ReactNode | undefined;\n actions?: ReactNode | undefined;\n}\n\nconst Settings = /* @__PURE__ */ forwardRef<HTMLDivElement, SettingsPageProps>(function AppFrameSettings({ title, description, actions, className, children, ...props }, ref) {\n return (\n <Body ref={ref} className=\"relative\">\n <MenuButton className=\"absolute top-10 left-24 z-10\" />\n <div className={cn(\"w-full px-24 pt-16 pb-96 lg:mx-auto lg:max-w-settings lg:pt-64\", className)} {...props}>\n <header className=\"flex flex-wrap items-start justify-between gap-x-16 gap-y-8\">\n <h1 className=\"min-w-0 text-title-lg font-semibold text-fg text-balance\">{title}</h1>\n {actions && <div className=\"order-last flex h-34 shrink-0 items-center gap-8 sm:order-none sm:ml-auto\">{actions}</div>}\n {description && <p className=\"basis-full text-body-lg font-regular text-fg-secondary\">{description}</p>}\n </header>\n <div className=\"mt-8\">\n <InsetContent>\n <GutterContent>{children}</GutterContent>\n </InsetContent>\n </div>\n </div>\n </Body>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Settings.displayName = \"AppFrame.Settings\";\n\nexport const AppFrame = /* @__PURE__ */ Object.assign(Root, { MenuButton, Body, Settings });\n"],"mappings":";;;;;;;;;;;;;;AA0BA,IAAaS,IAA2B,EACtC,MAAM;CACJ,QAAQ,EAAE,SAAS,QAAQ;CAC3B,QAAQ,EAAE,SAAS,SAAS;AAC9B,EACF,GACaC,IAAmC,EAAE,MAAM,SAAS,GAE3DC,IAAsB,kBAA0F;CACpH,eAAe,KAAA;CACf,UAAU;CACV,YAAY,EAAE,SAAS,GAAM;AAC/B,CAAC,GACYC,UAAoBC,EAAWF,CAAG,GAazCG,IAAuB,kBAA0C,SACrE,EAAE,YAAS,aAAU,WAAQ,UAAO,UAAU,cAAW,eAAY,iBAAc,gBACnF,GACA;CACA,IAAM,CAACC,GAASC,KAAcC,EAAS,EAAK,GACtCC,IAASC,EAAiC,IAAI,GAC9CC,IAAaD,EAAO,EAAK,GACzBE,IAAS,UAAUC,EAAM,CAAC,CAAC,QAAQ,WAAW,EAAE,KAChDC,IAAOC,MAAS,WAAW,SAAS,OACpCC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,QAAQ6E,MAAY;GAAS;EAAwB,CAAA;CACjE,CAAA;AAET,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAK,cAAc;AAQ9D,IAAMC,IAA2B,kBAA8C,SAA0B,EAAE,UAAO,gBAAa,YAAS,cAAW,aAAU,GAAGF,KAAS,GAAK;CAC5K,OACE,kBAACD,GAAD;EAAW;EAAK,WAAU;EAA1B,UAAA,CACE,kBAACT,GAAD,EAAY,WAAU,+BAAgC,CAAA,GACtD,kBAAC,OAAD;GAAK,WAAWnE,EAAG,kEAAkE6B,CAAS;GAAG,GAAIgD;GAArG,UAAA,CACE,kBAAC,UAAD;IAAQ,WAAU;IAAlB,UAAA;KACE,kBAAC,MAAD;MAAI,WAAU;MAA4D,UAAAG;KAAU,CAAA;KACnFpC,KAAW,kBAAC,OAAD;MAAK,WAAU;MAA6E,UAAAA;KAAa,CAAA;KACpHqC,KAAe,kBAAC,KAAD;MAAG,WAAU;MAA0D,UAAAA;KAAe,CAAA;IAChG;GACR,CAAA,GAAA,kBAAC,OAAD;IAAK,WAAU;IACb,UAAA,kBAACC,GAAD,EAAA,UACE,kBAACjF,GAAD,EAAgB,YAAwB,CAAA,EAC5B,CAAA;GACX,CAAA,CACF;EACD,CAAA,CAAA;;AAEV,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAS,cAAc;AAElE,IAAakF,IAA2B,uBAAO,OAAOtE,GAAM;CAAE;CAAY;CAAM;AAAS,CAAC"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as e } from "./cn-y70pJ-RU.js";
2
+ import { t as e } from "./cn-BUMD6lNz.js";
3
3
  import { i as t } from "./context-BELWW79w.js";
4
- import { r as n } from "./tooltip-wfY3dDNy.js";
4
+ import { r as n } from "./tooltip-DxtFh0_0.js";
5
5
  import { t as r } from "./use-hydrating-COtYVRo4.js";
6
6
  import { forwardRef as i, useState as a } from "react";
7
7
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -28,27 +28,24 @@ function d(e, t = 2) {
28
28
  let r = n[0]?.[0] ?? "";
29
29
  return (t === 1 || n.length < 2 ? r : r + (n[n.length - 1]?.[0] ?? "")).toUpperCase();
30
30
  }
31
- var f = /* @__PURE__ */ i(function({ name: t, src: n, size: i = 24, kind: u = "person", decorative: f, className: p }, m) {
32
- let [h, g] = a(void 0), _ = r();
31
+ var f = /* @__PURE__ */ i(function({ name: t, src: n, size: i = 24, kind: c = "person", decorative: u, className: f }, p) {
32
+ let [m, h] = a(void 0), g = r();
33
33
  return /* @__PURE__ */ s("span", {
34
- ref: m,
35
- ...f ? { "aria-hidden": !0 } : {
34
+ ref: p,
35
+ ...u ? { "aria-hidden": !0 } : {
36
36
  role: "img",
37
37
  "aria-label": t
38
38
  },
39
- className: e("relative inline-flex shrink-0 items-center justify-center overflow-hidden mark-fill font-semibold text-fg select-none forced-colors:outline forced-colors:-outline-offset-1", l.size[i].classes, l.kind[u].classes, i <= 24 && u === "org" && "rounded-avatar", p),
40
- children: n && n !== h ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("img", {
39
+ className: e("relative inline-flex shrink-0 items-center justify-center overflow-hidden mark-fill font-semibold text-fg select-none forced-colors:outline forced-colors:-outline-offset-1", l.size[i].classes, l.kind[c].classes, i <= 24 && c === "org" && "rounded-avatar", f),
40
+ children: n && n !== m ? /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("img", {
41
41
  ref: (e) => {
42
- _ && e?.complete && e.naturalWidth === 0 && g(n);
42
+ g && e?.complete && e.naturalWidth === 0 && h(n);
43
43
  },
44
44
  src: n,
45
45
  alt: "",
46
- className: "size-full object-cover",
47
- onError: () => g(n)
48
- }), /* @__PURE__ */ s("span", {
49
- "aria-hidden": !0,
50
- className: "pointer-events-none absolute inset-0 shadow-ring"
51
- })] }) : d(t, i === 20 ? 1 : 2)
46
+ className: "size-full object-cover image-outline",
47
+ onError: () => h(n)
48
+ }) }) : d(t, i === 20 ? 1 : 2)
52
49
  });
53
50
  });
54
51
  process.env.NODE_ENV !== "production" && (f.displayName = "Avatar");
@@ -107,4 +104,4 @@ process.env.NODE_ENV !== "production" && (_.displayName = "AvatarGroup");
107
104
  //#endregion
108
105
  export { d as a, l as i, _ as n, u as r, f as t };
109
106
 
110
- //# sourceMappingURL=avatar-CAtsciEK.js.map
107
+ //# sourceMappingURL=avatar-BYrq5P5M.js.map