@logicplanes/kaeso-ui 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/NOTICE.md +1 -1
  2. package/ai/component-guides.md +333 -21
  3. package/ai/component-registry.json +631 -32
  4. package/ai/component-registry.md +164 -28
  5. package/ai/icons.md +3 -3
  6. package/ai/tokens.md +1 -1
  7. package/dist/blocks/delete-resource.js +15 -14
  8. package/dist/blocks/delete-resource.js.map +1 -1
  9. package/dist/blocks/pages.js +5 -5
  10. package/dist/blocks/resource-list.js +42 -41
  11. package/dist/blocks/resource-list.js.map +1 -1
  12. package/dist/chunks/agent-avatar-0pdBTWkR.js +171 -0
  13. package/dist/chunks/agent-avatar-0pdBTWkR.js.map +1 -0
  14. package/dist/chunks/{app-frame-DZPEf2NQ.js → app-frame-DogGRmsu.js} +23 -22
  15. package/dist/chunks/app-frame-DogGRmsu.js.map +1 -0
  16. package/dist/chunks/{avatar-HnvBUoe5.js → avatar-CWbdwbJv.js} +2 -2
  17. package/dist/chunks/{avatar-HnvBUoe5.js.map → avatar-CWbdwbJv.js.map} +1 -1
  18. package/dist/chunks/{badge-CM8ahjDR.js → badge-C2KtxCLB.js} +2 -2
  19. package/dist/chunks/{badge-CM8ahjDR.js.map → badge-C2KtxCLB.js.map} +1 -1
  20. package/dist/chunks/{banner-CvYgPwCc.js → banner-BA2ALw9M.js} +4 -4
  21. package/dist/chunks/{banner-CvYgPwCc.js.map → banner-BA2ALw9M.js.map} +1 -1
  22. package/dist/chunks/{button-9q66Ta23.js → button-CzuxqawA.js} +8 -8
  23. package/dist/chunks/{button-9q66Ta23.js.map → button-CzuxqawA.js.map} +1 -1
  24. package/dist/chunks/{calendar-CeNcqLFd.js → calendar-BWaf2MXc.js} +58 -42
  25. package/dist/chunks/calendar-BWaf2MXc.js.map +1 -0
  26. package/dist/chunks/{checkbox-C_DrNA2N.js → checkbox-CQjwCPkc.js} +12 -10
  27. package/dist/chunks/checkbox-CQjwCPkc.js.map +1 -0
  28. package/dist/chunks/{cn-Isw2DnQX.js → cn-Dj6sRgkF.js} +8 -1
  29. package/dist/chunks/cn-Dj6sRgkF.js.map +1 -0
  30. package/dist/chunks/{code-block-mEH6Sy3h.js → code-block-D5A-CGXG.js} +75 -54
  31. package/dist/chunks/code-block-D5A-CGXG.js.map +1 -0
  32. package/dist/chunks/{code-Bp2p9AuD.js → code-tqj0uhBL.js} +2 -2
  33. package/dist/chunks/{code-Bp2p9AuD.js.map → code-tqj0uhBL.js.map} +1 -1
  34. package/dist/chunks/{collapsible-CtQNJn9b.js → collapsible-CKrCX_T9.js} +3 -3
  35. package/dist/chunks/{collapsible-CtQNJn9b.js.map → collapsible-CKrCX_T9.js.map} +1 -1
  36. package/dist/chunks/combobox-DjDI7SUC.js +319 -0
  37. package/dist/chunks/combobox-DjDI7SUC.js.map +1 -0
  38. package/dist/chunks/{command-list-CzMbdtJs.js → command-list-C2Y7V_lt.js} +54 -54
  39. package/dist/chunks/command-list-C2Y7V_lt.js.map +1 -0
  40. package/dist/chunks/{copy-button-Cdea0wKl.js → copy-button-FJvPJn72.js} +5 -5
  41. package/dist/chunks/{copy-button-Cdea0wKl.js.map → copy-button-FJvPJn72.js.map} +1 -1
  42. package/dist/chunks/{core-FtMDNELx.js → core-BYns5ytV.js} +146 -140
  43. package/dist/chunks/core-BYns5ytV.js.map +1 -0
  44. package/dist/chunks/{date-popup-NytWvSNh.js → date-popup-CPA_zt6o.js} +4 -4
  45. package/dist/chunks/{date-popup-NytWvSNh.js.map → date-popup-CPA_zt6o.js.map} +1 -1
  46. package/dist/chunks/{de-BnNQtBSV.js → de-CPXJh9cq.js} +3 -1
  47. package/dist/chunks/de-CPXJh9cq.js.map +1 -0
  48. package/dist/chunks/dialog-Cg9A_6SF.js +383 -0
  49. package/dist/chunks/dialog-Cg9A_6SF.js.map +1 -0
  50. package/dist/chunks/{empty-By1qTJr6.js → empty-DvhyMXQq.js} +2 -2
  51. package/dist/chunks/{empty-By1qTJr6.js.map → empty-DvhyMXQq.js.map} +1 -1
  52. package/dist/chunks/{field-DfITT6Jm.js → field-TviMvYa2.js} +2 -2
  53. package/dist/chunks/{field-DfITT6Jm.js.map → field-TviMvYa2.js.map} +1 -1
  54. package/dist/chunks/{icon-D5uD_mnL.js → icon-D7ja-_Yk.js} +2 -2
  55. package/dist/chunks/{icon-D5uD_mnL.js.map → icon-D7ja-_Yk.js.map} +1 -1
  56. package/dist/chunks/icon-DVooQfk4.js +94 -0
  57. package/dist/chunks/icon-DVooQfk4.js.map +1 -0
  58. package/dist/chunks/{icon-button-C7Du4pvb.js → icon-button-CrdF_eMG.js} +3 -3
  59. package/dist/chunks/{icon-button-C7Du4pvb.js.map → icon-button-CrdF_eMG.js.map} +1 -1
  60. package/dist/chunks/{identity-BcVQd-7H.js → identity-BmhQ6BQ-.js} +18 -18
  61. package/dist/chunks/identity-BmhQ6BQ-.js.map +1 -0
  62. package/dist/chunks/{input-B6Docqrk.js → input-2VJuj_M4.js} +13 -8
  63. package/dist/chunks/input-2VJuj_M4.js.map +1 -0
  64. package/dist/chunks/{input-group-Dgdb0JpZ.js → input-group-DQ_4DoXg.js} +4 -4
  65. package/dist/chunks/{input-group-Dgdb0JpZ.js.map → input-group-DQ_4DoXg.js.map} +1 -1
  66. package/dist/chunks/{inset-BnBj8NJV.js → inset-BUzyXLK4.js} +14 -4
  67. package/dist/chunks/inset-BUzyXLK4.js.map +1 -0
  68. package/dist/chunks/{iso-field-SOZ7Z-yE.js → iso-field-B2rTwiBo.js} +2 -2
  69. package/dist/chunks/{iso-field-SOZ7Z-yE.js.map → iso-field-B2rTwiBo.js.map} +1 -1
  70. package/dist/chunks/{json-view-DCTMY_j4.js → json-view-Dqd2TDkc.js} +3 -3
  71. package/dist/chunks/{json-view-DCTMY_j4.js.map → json-view-Dqd2TDkc.js.map} +1 -1
  72. package/dist/chunks/{kbd-9A9rX60U.js → kbd-BF1vKXJf.js} +2 -2
  73. package/dist/chunks/{kbd-9A9rX60U.js.map → kbd-BF1vKXJf.js.map} +1 -1
  74. package/dist/chunks/{link-CtII7u3h.js → link-KWI7PevW.js} +4 -4
  75. package/dist/chunks/{link-CtII7u3h.js.map → link-KWI7PevW.js.map} +1 -1
  76. package/dist/chunks/link-provider-cvl8lSTT.js +29 -0
  77. package/dist/chunks/link-provider-cvl8lSTT.js.map +1 -0
  78. package/dist/chunks/{list-CMXBTVkI.js → list-M1csq-d4.js} +21 -19
  79. package/dist/chunks/{list-CMXBTVkI.js.map → list-M1csq-d4.js.map} +1 -1
  80. package/dist/chunks/{loader-DqOUwS1j.js → loader-DCfPndXa.js} +2 -2
  81. package/dist/chunks/{loader-DqOUwS1j.js.map → loader-DCfPndXa.js.map} +1 -1
  82. package/dist/chunks/{markdown-CwVQ0niB.js → markdown-DULktoTK.js} +9 -9
  83. package/dist/chunks/{markdown-CwVQ0niB.js.map → markdown-DULktoTK.js.map} +1 -1
  84. package/dist/chunks/{menu-Cjg4RggA.js → menu-DEmBfdPm.js} +32 -29
  85. package/dist/chunks/menu-DEmBfdPm.js.map +1 -0
  86. package/dist/chunks/{meter-VrC2J2GF.js → meter-Bj4N3Xuh.js} +2 -2
  87. package/dist/chunks/{meter-VrC2J2GF.js.map → meter-Bj4N3Xuh.js.map} +1 -1
  88. package/dist/chunks/nav-sheet-CzgIwgAm.js +60 -0
  89. package/dist/chunks/nav-sheet-CzgIwgAm.js.map +1 -0
  90. package/dist/chunks/{nav-wordmark-CjWM3NYa.js → nav-wordmark-_pjheAsZ.js} +2 -2
  91. package/dist/chunks/{nav-wordmark-CjWM3NYa.js.map → nav-wordmark-_pjheAsZ.js.map} +1 -1
  92. package/dist/chunks/{page-header-CZCQVHYE.js → page-header-DL2y2iZp.js} +4 -4
  93. package/dist/chunks/{page-header-CZCQVHYE.js.map → page-header-DL2y2iZp.js.map} +1 -1
  94. package/dist/chunks/{pagination-BStrMDqM.js → pagination-Cn_qF4cg.js} +4 -4
  95. package/dist/chunks/{pagination-BStrMDqM.js.map → pagination-Cn_qF4cg.js.map} +1 -1
  96. package/dist/chunks/{picker-popover-BerQAEBT.js → picker-popover-BxyU1U9F.js} +17 -16
  97. package/dist/chunks/{picker-popover-BerQAEBT.js.map → picker-popover-BxyU1U9F.js.map} +1 -1
  98. package/dist/chunks/{popover-CgLt_4yG.js → popover-DNN4S47w.js} +3 -3
  99. package/dist/chunks/{popover-CgLt_4yG.js.map → popover-DNN4S47w.js.map} +1 -1
  100. package/dist/chunks/portal-context-BBbzDKmY.js.map +1 -1
  101. package/dist/chunks/{radio-07Muf4cX.js → radio-CDDFpdtL.js} +5 -5
  102. package/dist/chunks/{radio-07Muf4cX.js.map → radio-CDDFpdtL.js.map} +1 -1
  103. package/dist/chunks/{range-popup-BCov1iPe.js → range-popup-CRyWYUB1.js} +6 -6
  104. package/dist/chunks/{range-popup-BCov1iPe.js.map → range-popup-CRyWYUB1.js.map} +1 -1
  105. package/dist/chunks/{release-art-69WpgVik.js → release-art-ZwfFQImt.js} +2 -2
  106. package/dist/chunks/{release-art-69WpgVik.js.map → release-art-ZwfFQImt.js.map} +1 -1
  107. package/dist/chunks/{rights-UVngOX_4.js → rights-Cyp0Pzp-.js} +9 -9
  108. package/dist/chunks/{rights-UVngOX_4.js.map → rights-Cyp0Pzp-.js.map} +1 -1
  109. package/dist/chunks/scroll-area-D8MD7Vpo.js +42 -0
  110. package/dist/chunks/scroll-area-D8MD7Vpo.js.map +1 -0
  111. package/dist/chunks/{section-Bvg0EUnr.js → section-Ce1efbsP.js} +3 -3
  112. package/dist/chunks/{section-Bvg0EUnr.js.map → section-Ce1efbsP.js.map} +1 -1
  113. package/dist/chunks/{segmented-DRLDN8EW.js → segmented-CErcoxwi.js} +4 -4
  114. package/dist/chunks/{segmented-DRLDN8EW.js.map → segmented-CErcoxwi.js.map} +1 -1
  115. package/dist/chunks/{select-eFTHLeYG.js → select-x4XVsdCI.js} +4 -4
  116. package/dist/chunks/{select-eFTHLeYG.js.map → select-x4XVsdCI.js.map} +1 -1
  117. package/dist/chunks/{separator-D86IW7Ge.js → separator-D7TzNHmX.js} +2 -2
  118. package/dist/chunks/{separator-D86IW7Ge.js.map → separator-D7TzNHmX.js.map} +1 -1
  119. package/dist/chunks/{sidebar-DifJ5KgE.js → sidebar-3r1ZRXlN.js} +255 -237
  120. package/dist/chunks/sidebar-3r1ZRXlN.js.map +1 -0
  121. package/dist/chunks/{sidebar-menu-XKOiwrQp.js → sidebar-menu-BN3jkTlK.js} +2 -2
  122. package/dist/chunks/{sidebar-menu-XKOiwrQp.js.map → sidebar-menu-BN3jkTlK.js.map} +1 -1
  123. package/dist/chunks/{skeleton-Cu74kGJA.js → skeleton-Dcz57Zyp.js} +2 -2
  124. package/dist/chunks/{skeleton-Cu74kGJA.js.map → skeleton-Dcz57Zyp.js.map} +1 -1
  125. package/dist/chunks/{slider-Dh0qq1wa.js → slider-Ci83PGtj.js} +2 -2
  126. package/dist/chunks/{slider-Dh0qq1wa.js.map → slider-Ci83PGtj.js.map} +1 -1
  127. package/dist/chunks/{status-dot-u4Izk-uC.js → status-dot-QJTF0Yv4.js} +3 -3
  128. package/dist/chunks/{status-dot-u4Izk-uC.js.map → status-dot-QJTF0Yv4.js.map} +1 -1
  129. package/dist/chunks/{swap-text-CC77iKJF.js → swap-text-Dr0Irxz6.js} +2 -2
  130. package/dist/chunks/{swap-text-CC77iKJF.js.map → swap-text-Dr0Irxz6.js.map} +1 -1
  131. package/dist/chunks/{switch-CbU9m9gi.js → switch-BNMq_kGt.js} +3 -3
  132. package/dist/chunks/{switch-CbU9m9gi.js.map → switch-BNMq_kGt.js.map} +1 -1
  133. package/dist/chunks/table-BeOSKl_3.js +84 -0
  134. package/dist/chunks/table-BeOSKl_3.js.map +1 -0
  135. package/dist/chunks/{tag-CqSk8F7M.js → tag-D_M1s2qS.js} +4 -4
  136. package/dist/chunks/{tag-CqSk8F7M.js.map → tag-D_M1s2qS.js.map} +1 -1
  137. package/dist/chunks/{text-hFc6TDp9.js → text-CIXH8rmT.js} +3 -3
  138. package/dist/chunks/{text-hFc6TDp9.js.map → text-CIXH8rmT.js.map} +1 -1
  139. package/dist/chunks/{textarea-17Ftvph_.js → textarea--4FRL3Pb.js} +5 -5
  140. package/dist/chunks/{textarea-17Ftvph_.js.map → textarea--4FRL3Pb.js.map} +1 -1
  141. package/dist/chunks/theme-provider-DJhORMlc.js.map +1 -1
  142. package/dist/chunks/{timeseries-CbnSFD5q.js → timeseries-D1xjRXfk.js} +3 -3
  143. package/dist/chunks/{timeseries-CbnSFD5q.js.map → timeseries-D1xjRXfk.js.map} +1 -1
  144. package/dist/chunks/{toolbar-B_960Ttx.js → toolbar-WA_oZgu-.js} +6 -5
  145. package/dist/chunks/{toolbar-B_960Ttx.js.map → toolbar-WA_oZgu-.js.map} +1 -1
  146. package/dist/chunks/tooltip-OcwO0VUT.js +154 -0
  147. package/dist/chunks/tooltip-OcwO0VUT.js.map +1 -0
  148. package/dist/chunks/{tooltip-root-Dssjjp-E.js → tooltip-root-DzahJDVj.js} +4 -4
  149. package/dist/chunks/{tooltip-root-Dssjjp-E.js.map → tooltip-root-DzahJDVj.js.map} +1 -1
  150. package/dist/chunks/{use-scroll-margin-DfdTc_5D.js → use-scroll-margin-atRtf0v_.js} +14 -10
  151. package/dist/chunks/use-scroll-margin-atRtf0v_.js.map +1 -0
  152. package/dist/chunks/{virtual-rows-yAMjeAwj.js → virtual-rows-CC_kc2PR.js} +2 -2
  153. package/dist/chunks/{virtual-rows-yAMjeAwj.js.map → virtual-rows-CC_kc2PR.js.map} +1 -1
  154. package/dist/chunks/{zh-CN-CKffAT7j.js → zh-CN-29X4CDLE.js} +3 -1
  155. package/dist/chunks/zh-CN-29X4CDLE.js.map +1 -0
  156. package/dist/components/agent-avatar.js +2 -0
  157. package/dist/components/app-frame.js +2 -2
  158. package/dist/components/avatar.js +1 -1
  159. package/dist/components/badge.js +1 -1
  160. package/dist/components/banner.js +1 -1
  161. package/dist/components/button-group.js +4 -4
  162. package/dist/components/button.js +1 -1
  163. package/dist/components/calendar.js +1 -1
  164. package/dist/components/charts/bar.js +2 -2
  165. package/dist/components/charts/donut.js +2 -2
  166. package/dist/components/charts/gauge.js +2 -2
  167. package/dist/components/charts/heatmap.js +1 -1
  168. package/dist/components/charts/sankey.js +2 -2
  169. package/dist/components/charts/sparkline.js +1 -1
  170. package/dist/components/charts/timeseries.js +1 -1
  171. package/dist/components/charts.js +2 -2
  172. package/dist/components/checkbox.js +1 -1
  173. package/dist/components/code-block.js +2 -2
  174. package/dist/components/code.js +1 -1
  175. package/dist/components/collapsible.js +1 -1
  176. package/dist/components/combobox.js +1 -1
  177. package/dist/components/command-list.js +2 -2
  178. package/dist/components/command-palette.js +89 -84
  179. package/dist/components/command-palette.js.map +1 -1
  180. package/dist/components/copy-button.js +1 -1
  181. package/dist/components/data-table.js +193 -189
  182. package/dist/components/data-table.js.map +1 -1
  183. package/dist/components/date-picker.js +9 -7
  184. package/dist/components/date-picker.js.map +1 -1
  185. package/dist/components/dialog.js +125 -91
  186. package/dist/components/dialog.js.map +1 -1
  187. package/dist/components/display-options.js +52 -49
  188. package/dist/components/display-options.js.map +1 -1
  189. package/dist/components/empty.js +1 -1
  190. package/dist/components/field.js +1 -1
  191. package/dist/components/figure.js +60 -0
  192. package/dist/components/figure.js.map +1 -0
  193. package/dist/components/filter-chip.js +5 -5
  194. package/dist/components/filter-chip.js.map +1 -1
  195. package/dist/components/filter-row.js +2 -2
  196. package/dist/components/flow.js +2 -2
  197. package/dist/components/heading.js +1 -1
  198. package/dist/components/icon-button.js +1 -1
  199. package/dist/components/icon.js +2 -2
  200. package/dist/components/input.js +51 -51
  201. package/dist/components/input.js.map +1 -1
  202. package/dist/components/kaeso/conversation.js +8 -8
  203. package/dist/components/kaeso/identity.js +1 -1
  204. package/dist/components/kaeso/moments.js +5 -5
  205. package/dist/components/kaeso/rights.js +1 -1
  206. package/dist/components/kaeso/usage.js +12 -12
  207. package/dist/components/kaeso/usage.js.map +1 -1
  208. package/dist/components/kaeso.js +264 -96
  209. package/dist/components/kaeso.js.map +1 -1
  210. package/dist/components/kbd.js +1 -1
  211. package/dist/components/key-value.js +3 -3
  212. package/dist/components/label.js +1 -1
  213. package/dist/components/layout.js +1 -1
  214. package/dist/components/link.js +1 -1
  215. package/dist/components/list.js +1 -1
  216. package/dist/components/loader.js +2 -2
  217. package/dist/components/logo.js +2 -2
  218. package/dist/components/markdown.js +1 -1
  219. package/dist/components/menu.js +2 -2
  220. package/dist/components/meter.js +1 -1
  221. package/dist/components/page-header.js +1 -1
  222. package/dist/components/pagination.js +1 -1
  223. package/dist/components/playground.js +32 -31
  224. package/dist/components/playground.js.map +1 -1
  225. package/dist/components/popover.js +13 -12
  226. package/dist/components/popover.js.map +1 -1
  227. package/dist/components/qr-code.js +1 -1
  228. package/dist/components/radio.js +1 -1
  229. package/dist/components/release-art.js +1 -1
  230. package/dist/components/scroll-area.js +1 -41
  231. package/dist/components/section.js +1 -1
  232. package/dist/components/segmented.js +1 -1
  233. package/dist/components/select.js +1 -1
  234. package/dist/components/separator.js +1 -1
  235. package/dist/components/settings.js +10 -10
  236. package/dist/components/settings.js.map +1 -1
  237. package/dist/components/sheet.js +3 -3
  238. package/dist/components/sidebar.js +1 -1
  239. package/dist/components/skeleton.js +1 -1
  240. package/dist/components/slider.js +1 -1
  241. package/dist/components/stat.js +3 -3
  242. package/dist/components/status-dot.js +1 -1
  243. package/dist/components/surface.js +1 -1
  244. package/dist/components/swap-text.js +1 -1
  245. package/dist/components/switch.js +1 -1
  246. package/dist/components/table.js +1 -1
  247. package/dist/components/tabs.js +24 -24
  248. package/dist/components/tabs.js.map +1 -1
  249. package/dist/components/tag.js +1 -1
  250. package/dist/components/text.js +1 -1
  251. package/dist/components/theme-image.js +1 -1
  252. package/dist/components/theme-menu.js +33 -30
  253. package/dist/components/theme-menu.js.map +1 -1
  254. package/dist/components/theme-select.js +1 -1
  255. package/dist/components/thumbnail.js +41 -0
  256. package/dist/components/thumbnail.js.map +1 -0
  257. package/dist/components/timeline.js +1 -1
  258. package/dist/components/toast.js +100 -91
  259. package/dist/components/toast.js.map +1 -1
  260. package/dist/components/toc.js +37 -22
  261. package/dist/components/toc.js.map +1 -1
  262. package/dist/components/toolbar.js +1 -1
  263. package/dist/components/tooltip.js +1 -1
  264. package/dist/components/visually-hidden.js +1 -1
  265. package/dist/format.js.map +1 -1
  266. package/dist/i18n-provider.js +1 -1
  267. package/dist/index.js +99 -95
  268. package/dist/kaeso.css +3 -0
  269. package/dist/styles.css +1 -1
  270. package/dist/types/blocks/delete-resource/delete-resource.d.ts +2 -5
  271. package/dist/types/blocks/resource-list/resource-list.d.ts +1 -4
  272. package/dist/types/component-docs.d.ts +1 -1
  273. package/dist/types/components/agent-avatar/agent-avatar.d.ts +94 -0
  274. package/dist/types/components/agent-avatar/docs.d.ts +19 -0
  275. package/dist/types/components/agent-avatar/index.d.ts +3 -0
  276. package/dist/types/components/agent-avatar/model-name.d.ts +9 -0
  277. package/dist/types/components/agent-avatar/models.d.ts +4 -0
  278. package/dist/types/components/app-frame/app-frame.d.ts +3 -8
  279. package/dist/types/components/app-frame/nav-sheet.d.ts +2 -4
  280. package/dist/types/components/calendar/calendar.d.ts +1 -4
  281. package/dist/types/components/charts/core.d.ts +11 -18
  282. package/dist/types/components/checkbox/checkbox.d.ts +2 -0
  283. package/dist/types/components/code-block/code-block.d.ts +1 -1
  284. package/dist/types/components/code-block/indent.d.ts +3 -0
  285. package/dist/types/components/combobox/combobox.d.ts +26 -2
  286. package/dist/types/components/command-list/command-list.d.ts +1 -0
  287. package/dist/types/components/command-list/docs.d.ts +1 -0
  288. package/dist/types/components/command-list/picker-popover.d.ts +1 -4
  289. package/dist/types/components/command-palette/command-palette.d.ts +2 -4
  290. package/dist/types/components/command-palette/docs.d.ts +1 -0
  291. package/dist/types/components/data-table/data-table.d.ts +2 -1
  292. package/dist/types/components/data-table/docs.d.ts +1 -0
  293. package/dist/types/components/dialog/dialog.d.ts +7 -9
  294. package/dist/types/components/dialog/docs.d.ts +2 -0
  295. package/dist/types/components/dialog/scope.d.ts +2 -0
  296. package/dist/types/components/dialog/step-dialog.d.ts +38 -5
  297. package/dist/types/components/display-options/display-options.d.ts +2 -5
  298. package/dist/types/components/figure/docs.d.ts +12 -0
  299. package/dist/types/components/figure/figure.d.ts +25 -0
  300. package/dist/types/components/figure/index.d.ts +1 -0
  301. package/dist/types/components/input/input.d.ts +23 -0
  302. package/dist/types/components/kaeso/client-button.d.ts +17 -0
  303. package/dist/types/components/kaeso/docs.d.ts +18 -0
  304. package/dist/types/components/kaeso/grant-summary.d.ts +12 -0
  305. package/dist/types/components/kaeso/identity.d.ts +2 -0
  306. package/dist/types/components/kaeso/index.d.ts +2 -0
  307. package/dist/types/components/kaeso/provider-picker.d.ts +5 -0
  308. package/dist/types/components/kaeso/usage.d.ts +2 -0
  309. package/dist/types/components/list/list.d.ts +4 -8
  310. package/dist/types/components/menu/docs.d.ts +8 -1
  311. package/dist/types/components/menu/menu.d.ts +19 -31
  312. package/dist/types/components/playground/parameter-panel.d.ts +1 -4
  313. package/dist/types/components/popover/hover-card.d.ts +2 -0
  314. package/dist/types/components/radio/docs.d.ts +15 -0
  315. package/dist/types/components/radio/radio.d.ts +2 -4
  316. package/dist/types/components/settings/settings.d.ts +2 -0
  317. package/dist/types/components/sidebar/sidebar.d.ts +13 -35
  318. package/dist/types/components/table/docs.d.ts +3 -1
  319. package/dist/types/components/table/table.d.ts +18 -1
  320. package/dist/types/components/tabs/tabs.d.ts +15 -0
  321. package/dist/types/components/theme-menu/docs.d.ts +2 -0
  322. package/dist/types/components/theme-menu/theme-menu.d.ts +6 -5
  323. package/dist/types/components/thumbnail/docs.d.ts +10 -0
  324. package/dist/types/components/thumbnail/index.d.ts +1 -0
  325. package/dist/types/components/thumbnail/thumbnail.d.ts +26 -0
  326. package/dist/types/components/toast/toast.d.ts +5 -12
  327. package/dist/types/components/toolbar/toolbar.d.ts +1 -6
  328. package/dist/types/components/tooltip/tooltip.d.ts +2 -4
  329. package/dist/types/components/tooltip/trigger-props.d.ts +0 -1
  330. package/dist/types/format/index.d.ts +5 -5
  331. package/dist/types/hooks/use-scroll-margin.d.ts +1 -1
  332. package/dist/types/icons/groups.d.ts +2 -2
  333. package/dist/types/icons/vocabulary.d.ts +15 -0
  334. package/dist/types/index.d.ts +3 -0
  335. package/dist/types/utils/cn.d.ts +4 -0
  336. package/dist/types/utils/inset.d.ts +4 -0
  337. package/dist/types/utils/link-provider.d.ts +1 -1
  338. package/dist/types/utils/merge-refs.d.ts +3 -0
  339. package/dist/types/utils/portal-context.d.ts +1 -1
  340. package/dist/utils.js +4 -4
  341. package/foundations/shape.md +1 -1
  342. package/package.json +3 -3
  343. package/dist/chunks/app-frame-DZPEf2NQ.js.map +0 -1
  344. package/dist/chunks/calendar-CeNcqLFd.js.map +0 -1
  345. package/dist/chunks/checkbox-C_DrNA2N.js.map +0 -1
  346. package/dist/chunks/cn-Isw2DnQX.js.map +0 -1
  347. package/dist/chunks/code-block-mEH6Sy3h.js.map +0 -1
  348. package/dist/chunks/combobox-D8ZOm8uT.js +0 -314
  349. package/dist/chunks/combobox-D8ZOm8uT.js.map +0 -1
  350. package/dist/chunks/command-list-CzMbdtJs.js.map +0 -1
  351. package/dist/chunks/core-FtMDNELx.js.map +0 -1
  352. package/dist/chunks/de-BnNQtBSV.js.map +0 -1
  353. package/dist/chunks/dialog-BZCVFmGF.js +0 -353
  354. package/dist/chunks/dialog-BZCVFmGF.js.map +0 -1
  355. package/dist/chunks/icon-CBzvyEqC.js +0 -91
  356. package/dist/chunks/icon-CBzvyEqC.js.map +0 -1
  357. package/dist/chunks/identity-BcVQd-7H.js.map +0 -1
  358. package/dist/chunks/input-B6Docqrk.js.map +0 -1
  359. package/dist/chunks/inset-BnBj8NJV.js.map +0 -1
  360. package/dist/chunks/link-provider-BsUxhZKG.js +0 -27
  361. package/dist/chunks/link-provider-BsUxhZKG.js.map +0 -1
  362. package/dist/chunks/menu-Cjg4RggA.js.map +0 -1
  363. package/dist/chunks/nav-sheet-Y2Ite-iF.js +0 -60
  364. package/dist/chunks/nav-sheet-Y2Ite-iF.js.map +0 -1
  365. package/dist/chunks/sidebar-DifJ5KgE.js.map +0 -1
  366. package/dist/chunks/table-CTxDp7zC.js +0 -67
  367. package/dist/chunks/table-CTxDp7zC.js.map +0 -1
  368. package/dist/chunks/tooltip-CRApbLF6.js +0 -151
  369. package/dist/chunks/tooltip-CRApbLF6.js.map +0 -1
  370. package/dist/chunks/use-scroll-margin-DfdTc_5D.js.map +0 -1
  371. package/dist/chunks/zh-CN-CKffAT7j.js.map +0 -1
  372. package/dist/components/scroll-area.js.map +0 -1
@@ -1,31 +1,31 @@
1
1
  "use client";
2
- import { t as e } from "./cn-Isw2DnQX.js";
3
- import { r as t } from "./link-provider-BsUxhZKG.js";
2
+ import { t as e } from "./cn-Dj6sRgkF.js";
3
+ import { r as t } from "./link-provider-cvl8lSTT.js";
4
4
  import { i as n } from "./context-BELWW79w.js";
5
- import { t as r } from "./icon-D5uD_mnL.js";
6
- import { a as i, l as a, o, r as s, s as c } from "./tooltip-CRApbLF6.js";
7
- import { t as l } from "./observe-resize-DhxhmoyB.js";
8
- import { t as u } from "./nav-wordmark-CjWM3NYa.js";
9
- import { r as d } from "./skeleton-Cu74kGJA.js";
10
- import { n as f, r as p } from "./hidden-description-B2zSmLcn.js";
11
- import { t as m } from "./when-idle-Cy3pinqO.js";
12
- import { createContext as h, forwardRef as g, useCallback as _, useContext as v, useEffect as y, useLayoutEffect as b, useMemo as x, useRef as S, useState as C, useSyncExternalStore as w } from "react";
13
- import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
14
- import { ArrowLeft01Icon as O, SidebarLeftIcon as k, UnfoldMoreIcon as A } from "@hugeicons/core-free-icons";
15
- import { Collapsible as j } from "@base-ui/react/collapsible";
5
+ import { t as r } from "./icon-D7ja-_Yk.js";
6
+ import { a as i, c as a, o, r as s, s as c, u as l } from "./tooltip-OcwO0VUT.js";
7
+ import { t as u } from "./observe-resize-DhxhmoyB.js";
8
+ import { t as d } from "./nav-wordmark-_pjheAsZ.js";
9
+ import { r as f } from "./skeleton-Dcz57Zyp.js";
10
+ import { n as p, r as m } from "./hidden-description-B2zSmLcn.js";
11
+ import { t as h } from "./when-idle-Cy3pinqO.js";
12
+ import { createContext as g, forwardRef as _, useCallback as v, useContext as y, useEffect as b, useLayoutEffect as x, useMemo as S, useRef as C, useState as w, useSyncExternalStore as T } from "react";
13
+ import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
14
+ import { ArrowLeft01Icon as k, SidebarLeftIcon as A, UnfoldMoreIcon as j } from "@hugeicons/core-free-icons";
15
+ import { Collapsible as M } from "@base-ui/react/collapsible";
16
16
  //#region src/hooks/use-stored-state.ts
17
- var M, N;
17
+ var N, P;
18
18
  function ee(e) {
19
19
  try {
20
20
  let t = localStorage.getItem(e);
21
21
  if (t !== null) return t;
22
22
  } catch {}
23
- return N?.get(e) ?? null;
23
+ return P?.get(e) ?? null;
24
24
  }
25
25
  function te(e, t) {
26
- M ??= /* @__PURE__ */ new Map();
27
- let n = M.get(e);
28
- n || M.set(e, n = /* @__PURE__ */ new Set()), n.add(t);
26
+ N ??= /* @__PURE__ */ new Map();
27
+ let n = N.get(e);
28
+ n || N.set(e, n = /* @__PURE__ */ new Set()), n.add(t);
29
29
  let r = (n) => {
30
30
  n.key === e && t();
31
31
  };
@@ -34,14 +34,14 @@ function te(e, t) {
34
34
  };
35
35
  }
36
36
  var ne = () => () => void 0, re = () => null;
37
- function P(e, t) {
38
- let n = e ? `kaeso:${e}` : void 0, [r, i] = C(t), a = _((e) => n ? te(n, e) : () => void 0, [n]), o = _(() => n ? ee(n) : null, [n]), s = w(n ? a : ne, o, re), c = x(() => {
37
+ function F(e, t) {
38
+ let n = e ? `kaeso:${e}` : void 0, [r, i] = w(t), a = v((e) => n ? te(n, e) : () => void 0, [n]), o = v(() => n ? ee(n) : null, [n]), s = T(n ? a : ne, o, re), c = S(() => {
39
39
  if (s !== null) try {
40
40
  return { value: JSON.parse(s) };
41
41
  } catch {
42
42
  return;
43
43
  }
44
- }, [s]), l = _((e) => {
44
+ }, [s]), l = v((e) => {
45
45
  if (!n) {
46
46
  i(e);
47
47
  return;
@@ -50,18 +50,18 @@ function P(e, t) {
50
50
  try {
51
51
  localStorage.setItem(n, t);
52
52
  } catch {
53
- (N ??= /* @__PURE__ */ new Map()).set(n, t);
53
+ (P ??= /* @__PURE__ */ new Map()).set(n, t);
54
54
  }
55
- M?.get(n)?.forEach((e) => e());
55
+ N?.get(n)?.forEach((e) => e());
56
56
  }, [n]);
57
57
  return [n ? c ? c.value : t : r, l];
58
58
  }
59
59
  //#endregion
60
60
  //#region src/components/sidebar/sidebar.tsx
61
- var F = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ E("span", {
61
+ var I = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ D("span", {
62
62
  className: "font-semibold text-fg",
63
63
  children: e
64
- }, t) : e), I = {
64
+ }, t) : e), L = {
65
65
  mode: {
66
66
  expanded: { classes: "w-(--k-sidebar-width)" },
67
67
  rail: { classes: "w-60" }
@@ -78,7 +78,7 @@ var F = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ E("span", {
78
78
  mode: "expanded",
79
79
  item: "default",
80
80
  caption: "secondary"
81
- }, L = /* @__PURE__ */ h({
81
+ }, R = /* @__PURE__ */ g({
82
82
  rail: !1,
83
83
  setRail: () => void 0,
84
84
  collapsed: !1,
@@ -89,13 +89,13 @@ var F = (e) => e.split("**").map((e, t) => t % 2 ? /* @__PURE__ */ E("span", {
89
89
  setWidth: () => void 0,
90
90
  previewWidth: () => void 0,
91
91
  storageKey: void 0
92
- }), R = () => v(L), z = /* @__PURE__ */ h(!1), B = /* @__PURE__ */ h(null);
93
- function V({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }) {
94
- let [i, a] = P(t ? `${t}:rail` : void 0, n), [o, s] = P(t ? `${t}:width` : void 0, 248), [c, l] = C(null), u = H(c ?? o), [d, f] = P(t ? `${t}:collapsed` : void 0, !1), [p, m] = C(!1), h = _((e) => {
92
+ }), z = () => y(R), B = /* @__PURE__ */ g(!1), V = /* @__PURE__ */ g(null);
93
+ function H({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }) {
94
+ let [i, a] = F(t ? `${t}:rail` : void 0, n), [o, s] = F(t ? `${t}:width` : void 0, 248), [c, l] = w(null), u = U(c ?? o), [d, f] = F(t ? `${t}:collapsed` : void 0, !1), [p, m] = w(!1), h = v((e) => {
95
95
  let t = e && !!document.activeElement?.closest("[data-sidebar-root]");
96
96
  f(e), m(!1), t && requestAnimationFrame(() => document.querySelector("[data-sidebar-expand]")?.focus());
97
97
  }, [f]);
98
- y(() => {
98
+ b(() => {
99
99
  if (!r) return;
100
100
  let e = (e) => {
101
101
  let t = e.target;
@@ -107,7 +107,7 @@ function V({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }
107
107
  h,
108
108
  r
109
109
  ]);
110
- let g = x(() => ({
110
+ let g = S(() => ({
111
111
  rail: i,
112
112
  setRail: a,
113
113
  collapsed: d,
@@ -128,22 +128,22 @@ function V({ children: e, storageKey: t, defaultRail: n = !1, shortcut: r = !0 }
128
128
  s,
129
129
  t
130
130
  ]);
131
- return /* @__PURE__ */ E(L.Provider, {
131
+ return /* @__PURE__ */ D(R.Provider, {
132
132
  value: g,
133
133
  children: e
134
134
  });
135
135
  }
136
- process.env.NODE_ENV !== "production" && (V.displayName = "Sidebar.Provider");
137
- var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number.isFinite(e) ? e : 248))), U = /* @__PURE__ */ g(function({ resizable: t = !0, className: r, children: i, style: a, "aria-label": o, ...s }, c) {
138
- let { rail: l, width: u, setWidth: d, previewWidth: f, collapsed: p, setCollapsed: m } = R(), h = n(), [g, b] = C(null), [x, w] = C(!1), T = S(null);
139
- y(() => () => T.current?.(), []);
140
- let O = _((e) => {
136
+ process.env.NODE_ENV !== "production" && (H.displayName = "Sidebar.Provider");
137
+ var ae = 232, oe = 280, U = (e) => Math.round(Math.min(280, Math.max(232, Number.isFinite(e) ? e : 248))), W = /* @__PURE__ */ _(function({ resizable: t = !0, className: r, children: i, style: a, "aria-label": o, ...s }, c) {
138
+ let { rail: l, width: u, setWidth: d, previewWidth: f, collapsed: p, setCollapsed: m } = z(), h = n(), [g, _] = w(null), [x, S] = w(!1), T = C(null);
139
+ b(() => () => T.current?.(), []);
140
+ let E = v((e) => {
141
141
  if (e.button !== 0) return;
142
142
  e.preventDefault(), T.current?.();
143
143
  let t = e.currentTarget, n = e.clientX, r = u, i = !1, a = r, o = (e) => {
144
- Math.abs(e.clientX - n) > 3 && (i = !0, w(!0)), i && (a = H(r + e.clientX - n), f(a));
144
+ Math.abs(e.clientX - n) > 3 && (i = !0, S(!0)), i && (a = U(r + e.clientX - n), f(a));
145
145
  }, s = () => {
146
- t.removeEventListener("pointermove", o), t.removeEventListener("pointerup", c), t.removeEventListener("pointercancel", s), document.body.style.cursor = "", document.body.style.userSelect = "", T.current = null, w(!1), i && d(a), f(null);
146
+ t.removeEventListener("pointermove", o), t.removeEventListener("pointerup", c), t.removeEventListener("pointercancel", s), document.body.style.cursor = "", document.body.style.userSelect = "", T.current = null, S(!1), i && d(a), f(null);
147
147
  }, c = () => {
148
148
  s(), i || m(!0);
149
149
  };
@@ -153,12 +153,12 @@ var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number
153
153
  d,
154
154
  f,
155
155
  m
156
- ]), k = v(z), A = p && !k, j = /* @__PURE__ */ E("nav", {
156
+ ]), k = y(B), A = p && !k, j = /* @__PURE__ */ D("nav", {
157
157
  ref: c,
158
158
  "aria-label": o ?? h("sidebar.main", "Main"),
159
159
  "data-rail": l || void 0,
160
160
  "data-sidebar-root": "",
161
- className: e("group/sidebar relative flex h-full shrink-0 flex-col bg-chrome text-fg", l ? I.mode.rail.classes : I.mode.expanded.classes, r),
161
+ className: e("group/sidebar relative flex h-full shrink-0 flex-col bg-chrome text-fg", l ? L.mode.rail.classes : L.mode.expanded.classes, r),
162
162
  style: {
163
163
  "--k-sidebar-width": `${u}px`,
164
164
  ...a
@@ -166,9 +166,9 @@ var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number
166
166
  ...s,
167
167
  children: i
168
168
  });
169
- return k ? j : /* @__PURE__ */ D("div", {
169
+ return k ? j : /* @__PURE__ */ O("div", {
170
170
  className: "relative flex h-full shrink-0",
171
- children: [/* @__PURE__ */ E("div", {
171
+ children: [/* @__PURE__ */ D("div", {
172
172
  className: "sidebar-motion relative h-full shrink-0",
173
173
  style: { width: A ? 8 : l ? 60 : u },
174
174
  ...A ? {
@@ -176,12 +176,12 @@ var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number
176
176
  inert: !0,
177
177
  "aria-hidden": !0
178
178
  } : {},
179
- children: /* @__PURE__ */ E("div", {
179
+ children: /* @__PURE__ */ D("div", {
180
180
  className: "sidebar-content-motion h-full",
181
181
  style: { width: l ? 60 : u },
182
182
  children: j
183
183
  })
184
- }), t && !l && !A && /* @__PURE__ */ E("div", {
184
+ }), t && !l && !A && /* @__PURE__ */ D("div", {
185
185
  role: "separator",
186
186
  "aria-orientation": "vertical",
187
187
  "aria-label": h("sidebar.resizeOrCollapse", "Resize sidebar; click to collapse"),
@@ -189,300 +189,315 @@ var ae = 232, oe = 280, H = (e) => Math.round(Math.min(280, Math.max(232, Number
189
189
  "aria-valuemax": 280,
190
190
  "aria-valuenow": u,
191
191
  tabIndex: 0,
192
- onPointerDown: O,
193
- onPointerMove: (e) => b(Math.round(e.clientY - e.currentTarget.getBoundingClientRect().top)),
194
- onPointerLeave: () => b(null),
192
+ onPointerDown: E,
193
+ onPointerMove: (e) => _(Math.round(e.clientY - e.currentTarget.getBoundingClientRect().top)),
194
+ onPointerLeave: () => _(null),
195
195
  onKeyDown: (e) => {
196
- e.key === "ArrowLeft" && d(H(u - 8)), e.key === "ArrowRight" && d(H(u + 8)), (e.key === "Enter" || e.key === " ") && m(!0);
196
+ e.key === "ArrowLeft" && d(U(u - 8)), e.key === "ArrowRight" && d(U(u + 8)), (e.key === "Enter" || e.key === " ") && m(!0);
197
197
  },
198
198
  className: "absolute top-0 right-0 z-10 h-full w-8 cursor-col-resize rounded-pill focus-ring-inset",
199
- children: g !== null && !x && /* @__PURE__ */ D("span", {
199
+ children: g !== null && !x && /* @__PURE__ */ O("span", {
200
200
  "aria-hidden": !0,
201
201
  className: "pointer-events-none absolute left-16 flex w-max flex-col gap-2 rounded-tooltip bg-tooltip px-12 py-8 text-small text-fg-secondary shadow-raised",
202
202
  style: { top: Math.max(8, (g ?? 0) - 24) },
203
- children: [/* @__PURE__ */ E("span", { children: F(h("sidebar.dragToResize", "**Drag** to resize")) }), /* @__PURE__ */ E("span", { children: F(h("sidebar.clickToCollapse", "**Click** to collapse")) })]
203
+ children: [/* @__PURE__ */ D("span", { children: I(h("sidebar.dragToResize", "**Drag** to resize")) }), /* @__PURE__ */ D("span", { children: I(h("sidebar.clickToCollapse", "**Click** to collapse")) })]
204
204
  })
205
205
  })]
206
206
  });
207
207
  });
208
- process.env.NODE_ENV !== "production" && (U.displayName = "Sidebar");
209
- var W = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
210
- return /* @__PURE__ */ E("div", {
208
+ process.env.NODE_ENV !== "production" && (W.displayName = "Sidebar");
209
+ var G = /* @__PURE__ */ _(function({ className: t, ...n }, r) {
210
+ return /* @__PURE__ */ D("div", {
211
211
  ref: r,
212
212
  className: e("mt-8 flex h-52 shrink-0 items-center gap-4 px-8", t),
213
213
  ...n
214
214
  });
215
215
  });
216
- process.env.NODE_ENV !== "production" && (W.displayName = "Sidebar.Header");
217
- var G = /* @__PURE__ */ g(function({ href: t, label: n = "Kaeso", children: r, className: i }, a) {
218
- let { rail: o } = R();
219
- return o ? /* @__PURE__ */ E(W, {
216
+ process.env.NODE_ENV !== "production" && (G.displayName = "Sidebar.Header");
217
+ var K = /* @__PURE__ */ _(function({ href: t, label: n = "Kaeso", children: r, className: i }, a) {
218
+ let { rail: o } = z();
219
+ return o ? /* @__PURE__ */ D(G, {
220
220
  ref: a,
221
221
  className: e("justify-center px-0", i),
222
222
  children: r
223
- }) : /* @__PURE__ */ D(W, {
223
+ }) : /* @__PURE__ */ O(G, {
224
224
  ref: a,
225
225
  className: e("justify-between pr-16 pl-28", i),
226
- children: [/* @__PURE__ */ E(K, {
226
+ children: [/* @__PURE__ */ D(q, {
227
227
  href: t,
228
228
  label: n
229
- }), r && /* @__PURE__ */ E("span", {
229
+ }), r && /* @__PURE__ */ D("span", {
230
230
  className: "flex items-center",
231
231
  children: r
232
232
  })]
233
233
  });
234
234
  });
235
- process.env.NODE_ENV !== "production" && (G.displayName = "Sidebar.Brand");
236
- function K({ href: e, label: n = "Kaeso" }) {
237
- let r = t();
238
- return e ? /* @__PURE__ */ E(r, {
235
+ process.env.NODE_ENV !== "production" && (K.displayName = "Sidebar.Brand");
236
+ var q = /* @__PURE__ */ _(function({ href: e, label: n = "Kaeso" }, r) {
237
+ let i = t();
238
+ return e ? /* @__PURE__ */ D(i, {
239
+ ref: r,
239
240
  href: e,
240
241
  "aria-label": n,
241
242
  className: "-mx-4 flex h-32 items-center rounded-code px-4 text-fg focus-ring",
242
- children: /* @__PURE__ */ E(u, { decorative: !0 })
243
- }) : /* @__PURE__ */ E(u, {
243
+ children: /* @__PURE__ */ D(d, { decorative: !0 })
244
+ }) : /* @__PURE__ */ D(d, {
245
+ ref: r,
244
246
  title: n,
245
247
  className: "text-fg"
246
248
  });
247
- }
248
- process.env.NODE_ENV !== "production" && (K.displayName = "Sidebar.BrandWordmark");
249
- var se = /* @__PURE__ */ c(() => import("./sidebar-menu-XKOiwrQp.js"), { base: () => import.meta.url });
250
- function q({ trigger: e, side: t, header: n, footer: r, children: s }) {
251
- let [c, l] = C(!1), [u, d] = C(!1), f = a(se, u || c, () => {
252
- d(!1), l(!1);
253
- }), [p] = C(o), h = S(null), g = c && !f;
254
- y(() => m(() => d(!0)), []), y(() => {
255
- if (!g) return;
256
- let e = h.current?.ownerDocument ?? document, t = (e) => {
257
- e.key === "Escape" && (e.stopPropagation(), l(!1));
249
+ });
250
+ process.env.NODE_ENV !== "production" && (q.displayName = "BrandWordmark");
251
+ var se = /* @__PURE__ */ a(() => import("./sidebar-menu-BN3jkTlK.js"), { base: () => import.meta.url });
252
+ function J({ trigger: e, side: t, header: n, footer: r, children: a }) {
253
+ let [s, u] = w(!1), [d, f] = w(!1), p = l(se, d || s, () => {
254
+ f(!1), u(!1);
255
+ }), [m] = w(o), g = C(null), _ = e.props.ref, v = S(() => c(g, _), [_]), y = s && !p;
256
+ b(() => h(() => f(!0)), []), b(() => {
257
+ if (!y) return;
258
+ let e = g.current?.ownerDocument ?? document, t = (e) => {
259
+ e.key === "Escape" && (e.stopPropagation(), u(!1));
258
260
  }, n = (e) => {
259
- h.current?.contains(e.target) || l(!1);
261
+ g.current?.contains(e.target) || u(!1);
260
262
  };
261
263
  return e.addEventListener("keydown", t, !0), e.addEventListener("pointerdown", n, !0), () => {
262
264
  e.removeEventListener("keydown", t, !0), e.removeEventListener("pointerdown", n, !0);
263
265
  };
264
- }, [g]);
265
- let _ = () => d(!0), v = f ? { ref: h } : {
266
- ref: h,
266
+ }, [y]);
267
+ let x = () => f(!0), T = p ? { ref: v } : {
268
+ ref: v,
267
269
  "aria-haspopup": "menu",
268
- "aria-expanded": c,
269
- ...c ? { "data-popup-open": "" } : {},
270
- onPointerEnter: _,
271
- onFocus: _,
272
- onClick: () => l((e) => !e),
270
+ "aria-expanded": s,
271
+ ...s ? { "data-popup-open": "" } : {},
272
+ onPointerEnter: x,
273
+ onFocus: x,
274
+ onClick: () => u((e) => !e),
273
275
  onKeyDown: (e) => {
274
- (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), l(!0));
276
+ (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), u(!0));
275
277
  },
276
278
  onBlur: (e) => {
277
- c && e.relatedTarget && !e.currentTarget.contains(e.relatedTarget) && l(!1);
279
+ s && e.relatedTarget && !e.currentTarget.contains(e.relatedTarget) && u(!1);
278
280
  }
279
281
  };
280
- return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(i, {
281
- store: p,
282
- merge: f?.mergeTriggerProps,
283
- extra: v,
282
+ return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(i, {
283
+ store: m,
284
+ merge: p?.mergeTriggerProps,
285
+ extra: T,
284
286
  children: e
285
- }), f && /* @__PURE__ */ E(f.SidebarMenuRoot, {
286
- open: c,
287
- onOpenChange: l,
288
- triggerProps: p,
287
+ }), p && /* @__PURE__ */ D(p.SidebarMenuRoot, {
288
+ open: s,
289
+ onOpenChange: u,
290
+ triggerProps: m,
289
291
  side: t,
290
292
  header: n,
291
293
  footer: r,
292
- children: s
294
+ children: a
293
295
  })] });
294
296
  }
295
- process.env.NODE_ENV !== "production" && (q.displayName = "Sidebar.Menu");
296
- function J({ avatar: t, label: i, trailing: a, caption: o, captionTone: s = "secondary", children: c, header: l, footer: u, "aria-label": d, className: m, "data-force": h }) {
297
- let { rail: g } = R(), _ = n(), v = f(o), y = f(i), b = d ?? _("sidebar.switchOrOpenSettings", "Switch or open settings"), x = p(y ? b : void 0);
298
- return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(q, {
297
+ process.env.NODE_ENV !== "production" && (J.displayName = "Sidebar.Menu");
298
+ var Y = /* @__PURE__ */ _(function({ avatar: t, label: i, trailing: a, caption: o, captionTone: s = "secondary", children: c, header: l, footer: u, "aria-label": d, className: f, "data-force": h }, g) {
299
+ let { rail: _ } = z(), v = n(), y = p(o), b = p(i), x = d ?? v("sidebar.switchOrOpenSettings", "Switch or open settings"), S = m(b ? x : void 0);
300
+ return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(J, {
299
301
  side: "top",
300
302
  header: l,
301
303
  footer: u,
302
- trigger: /* @__PURE__ */ D("button", {
304
+ trigger: /* @__PURE__ */ O("button", {
305
+ ref: g,
303
306
  type: "button",
304
- ...y ? { "aria-describedby": x.id } : { "aria-label": b },
307
+ ...b ? { "aria-describedby": S.id } : { "aria-label": x },
305
308
  ...h ? { "data-force": h } : {},
306
- className: e("group/sw flex h-36 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium text-fg transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", g && "justify-center px-0", m),
309
+ className: e("group/sw flex h-36 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium text-fg transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", _ && "justify-center px-0", f),
307
310
  children: [
308
311
  t,
309
- !g && (v ? /* @__PURE__ */ D("span", {
312
+ !_ && (y ? /* @__PURE__ */ O("span", {
310
313
  className: "flex min-w-0 flex-1 flex-col",
311
- children: [/* @__PURE__ */ E("span", {
314
+ children: [/* @__PURE__ */ D("span", {
312
315
  className: "truncate",
313
316
  children: i
314
- }), /* @__PURE__ */ E("span", {
315
- className: e("truncate text-caption font-regular", I.caption[s].classes),
317
+ }), /* @__PURE__ */ D("span", {
318
+ className: e("truncate text-caption font-regular", L.caption[s].classes),
316
319
  children: o
317
320
  })]
318
- }) : /* @__PURE__ */ E("span", {
321
+ }) : /* @__PURE__ */ D("span", {
319
322
  className: "min-w-0 flex-1 truncate",
320
323
  children: i
321
324
  })),
322
- g && y && /* @__PURE__ */ E("span", {
325
+ _ && b && /* @__PURE__ */ D("span", {
323
326
  className: "sr-only",
324
327
  children: i
325
328
  }),
326
- g && v && /* @__PURE__ */ E("span", {
329
+ _ && y && /* @__PURE__ */ D("span", {
327
330
  className: "sr-only",
328
331
  children: o
329
332
  }),
330
- !g && a,
331
- !g && /* @__PURE__ */ E(r, {
332
- icon: A,
333
+ !_ && a,
334
+ !_ && /* @__PURE__ */ D(r, {
335
+ icon: j,
333
336
  size: "sm",
334
337
  className: "text-fg-tertiary transition-control group-hover/sw:text-fg-secondary"
335
338
  })
336
339
  ]
337
340
  }),
338
341
  children: c
339
- }), x.node] });
340
- }
341
- process.env.NODE_ENV !== "production" && (J.displayName = "Sidebar.Switcher");
342
- function Y({ avatar: i, label: a, children: o, href: c, header: l, footer: u, "aria-label": d, className: m, "data-force": h }) {
343
- let { rail: g } = R(), _ = n(), v = t(), y = f(a), b = o ? d ?? _("sidebar.switchPlace", "Switch") : d, x = p(y ? b : void 0), S = y ? x.id ? { "aria-describedby": x.id } : {} : b ? { "aria-label": b } : {}, C = e("group/place flex h-36 w-full min-w-0 items-center gap-8 rounded-pill px-12 text-left text-body font-semibold text-fg", (o || c) && "cursor-pointer transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", g && "justify-center px-0", m), w = /* @__PURE__ */ D(T, { children: [
344
- /* @__PURE__ */ E("span", {
342
+ }), S.node] });
343
+ });
344
+ process.env.NODE_ENV !== "production" && (Y.displayName = "Sidebar.Switcher");
345
+ var X = /* @__PURE__ */ _(function({ avatar: i, label: a, children: o, href: c, header: l, footer: u, "aria-label": d, className: f, "data-force": h }, g) {
346
+ let { rail: _ } = z(), v = n(), y = t(), b = p(a), x = o ? d ?? v("sidebar.switchPlace", "Switch") : d, S = m(b ? x : void 0), C = b ? S.id ? { "aria-describedby": S.id } : {} : x ? { "aria-label": x } : {}, w = e("group/place flex h-36 w-full min-w-0 items-center gap-8 rounded-pill px-12 text-left text-body font-semibold text-fg", (o || c) && "cursor-pointer transition-control hover:bg-fill-2 open:bg-fill-3 focus-ring-inset", _ && "justify-center px-0", f), T = /* @__PURE__ */ O(E, { children: [
347
+ /* @__PURE__ */ D("span", {
345
348
  className: "flex size-18 shrink-0 items-center justify-center",
346
349
  children: i
347
350
  }),
348
- g ? /* @__PURE__ */ E("span", {
351
+ _ ? /* @__PURE__ */ D("span", {
349
352
  className: "sr-only",
350
353
  children: a
351
- }) : /* @__PURE__ */ E(ce, { label: a }),
352
- !g && o && /* @__PURE__ */ E(r, {
353
- icon: A,
354
+ }) : /* @__PURE__ */ D(ce, { label: a }),
355
+ !_ && o && /* @__PURE__ */ D(r, {
356
+ icon: j,
354
357
  size: "sm",
355
358
  className: "text-fg-tertiary transition-control group-hover/place:text-fg-secondary"
356
359
  })
357
- ] }), O = {
358
- className: C,
360
+ ] }), k = {
361
+ className: w,
359
362
  ...h ? { "data-force": h } : {}
360
363
  };
361
- if (o) return /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E(q, {
364
+ if (o) return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(J, {
362
365
  side: "bottom",
363
366
  header: l,
364
367
  footer: u,
365
- trigger: /* @__PURE__ */ E("button", {
368
+ trigger: /* @__PURE__ */ D("button", {
369
+ ref: g,
366
370
  type: "button",
367
- ...S,
368
- ...O,
369
- children: w
371
+ ...C,
372
+ ...k,
373
+ children: T
370
374
  }),
371
375
  children: o
372
- }), x.node] });
373
- let k = c ? /* @__PURE__ */ E(v, {
376
+ }), S.node] });
377
+ let A = c ? /* @__PURE__ */ D(y, {
378
+ ref: g,
374
379
  href: c,
375
- ...S,
376
- ...O,
377
- children: w
378
- }) : /* @__PURE__ */ E("div", {
379
- ...O,
380
- children: w
380
+ ...C,
381
+ ...k,
382
+ children: T
383
+ }) : /* @__PURE__ */ D("div", {
384
+ ref: g,
385
+ ...k,
386
+ children: T
381
387
  });
382
- return /* @__PURE__ */ D(T, { children: [g ? /* @__PURE__ */ E(s, {
388
+ return /* @__PURE__ */ O(E, { children: [_ ? /* @__PURE__ */ D(s, {
383
389
  content: a,
384
390
  side: "right",
385
- children: k
386
- }) : k, c && x.node] });
387
- }
388
- process.env.NODE_ENV !== "production" && (Y.displayName = "Sidebar.Place");
391
+ children: A
392
+ }) : A, c && S.node] });
393
+ });
394
+ process.env.NODE_ENV !== "production" && (X.displayName = "Sidebar.Place");
389
395
  function ce({ label: e }) {
390
- let t = S(null), [n, r] = C(!1);
391
- return b(() => {
396
+ let t = C(null), [n, r] = w(!1);
397
+ return x(() => {
392
398
  let e = t.current;
393
399
  if (!e || typeof ResizeObserver > "u") return;
394
400
  let n = () => r(e.scrollWidth > e.clientWidth);
395
- return n(), l([e], n);
396
- }, [e]), /* @__PURE__ */ E(s, {
401
+ return n(), u([e], n);
402
+ }, [e]), /* @__PURE__ */ D(s, {
397
403
  content: e,
398
404
  side: "right",
399
405
  disabled: !n,
400
- children: /* @__PURE__ */ E("span", {
406
+ children: /* @__PURE__ */ D("span", {
401
407
  ref: t,
402
408
  className: "min-w-0 flex-1 truncate",
403
409
  children: e
404
410
  })
405
411
  });
406
412
  }
407
- var X = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
408
- let { rail: i } = R();
409
- return /* @__PURE__ */ E("div", {
410
- ref: r,
413
+ var Z = /* @__PURE__ */ _(function({ className: t, ...n }, r) {
414
+ let { rail: i } = z(), a = C(null), o = S(() => c(a, r), [r]);
415
+ return b(() => {
416
+ let e = a.current, t = e?.closest("[data-sidebar-root]");
417
+ if (!e || !t) return;
418
+ let n = () => t.toggleAttribute("data-scrolled-under", e.scrollHeight - e.scrollTop - e.clientHeight > 1);
419
+ n(), e.addEventListener("scroll", n, { passive: !0 });
420
+ let r = u([e, ...e.children], n);
421
+ return () => {
422
+ e.removeEventListener("scroll", n), r(), t.removeAttribute("data-scrolled-under");
423
+ };
424
+ }, []), /* @__PURE__ */ D("div", {
425
+ ref: o,
411
426
  className: e("flex min-h-0 flex-1 flex-col gap-16 overflow-y-auto overscroll-contain pt-8 pb-16 scrollbar-quiet", i ? "px-8" : "px-16", t),
412
427
  ...n
413
428
  });
414
429
  });
415
- process.env.NODE_ENV !== "production" && (X.displayName = "Sidebar.Content");
416
- var Z = /* @__PURE__ */ g(function({ className: t, ...n }, r) {
417
- let { rail: i } = R();
418
- return /* @__PURE__ */ E("div", {
430
+ process.env.NODE_ENV !== "production" && (Z.displayName = "Sidebar.Content");
431
+ var Q = /* @__PURE__ */ _(function({ className: t, ...n }, r) {
432
+ let { rail: i } = z();
433
+ return /* @__PURE__ */ D("div", {
419
434
  ref: r,
420
- className: e("flex shrink-0 items-center gap-4 pt-8 pb-12", i ? "px-8" : "px-16", t),
435
+ className: e("flex shrink-0 items-center gap-4 pt-8 pb-12 transition-control group-data-scrolled-under/sidebar:hairline-t-strong", i ? "px-8" : "px-16", t),
421
436
  ...n
422
437
  });
423
438
  });
424
- process.env.NODE_ENV !== "production" && (Z.displayName = "Sidebar.Footer");
425
- var Q = /* @__PURE__ */ g(function({ label: t, id: n, defaultOpen: r = !0, collapsible: i = !0, children: a, className: o }, s) {
426
- let { storageKey: c, rail: l } = R(), [u, d] = P(c && n ? `${c}:group:${n}` : void 0, r);
427
- return !t || !i || l ? /* @__PURE__ */ D("div", {
439
+ process.env.NODE_ENV !== "production" && (Q.displayName = "Sidebar.Footer");
440
+ var $ = /* @__PURE__ */ _(function({ label: t, id: n, defaultOpen: r = !0, collapsible: i = !0, children: a, className: o }, s) {
441
+ let { storageKey: c, rail: l } = z(), [u, d] = F(c && n ? `${c}:group:${n}` : void 0, r);
442
+ return !t || !i || l ? /* @__PURE__ */ O("div", {
428
443
  ref: s,
429
444
  role: "group",
430
445
  className: e("flex flex-col", o),
431
- children: [t && !l && /* @__PURE__ */ E("div", {
446
+ children: [t && !l && /* @__PURE__ */ D("div", {
432
447
  className: "flex h-28 items-center px-12 text-caption font-medium text-fg-secondary",
433
448
  children: t
434
- }), /* @__PURE__ */ E("ul", {
449
+ }), /* @__PURE__ */ D("ul", {
435
450
  className: "flex flex-col gap-2",
436
451
  children: a
437
452
  })]
438
- }) : /* @__PURE__ */ D(j.Root, {
453
+ }) : /* @__PURE__ */ O(M.Root, {
439
454
  ref: s,
440
455
  open: u,
441
456
  onOpenChange: (e) => d(e),
442
457
  className: e("flex flex-col", o),
443
- children: [/* @__PURE__ */ D(j.Trigger, {
458
+ children: [/* @__PURE__ */ O(M.Trigger, {
444
459
  className: "group/gl relative -mx-0 flex h-28 w-full cursor-pointer items-center gap-4 rounded-pill px-12 text-left text-caption font-medium text-fg-secondary transition-control hover:text-fg focus-ring tap-target",
445
- children: [/* @__PURE__ */ E("span", { children: t }), /* @__PURE__ */ E("svg", {
460
+ children: [/* @__PURE__ */ D("span", { children: t }), /* @__PURE__ */ D("svg", {
446
461
  viewBox: "0 0 8 8",
447
462
  className: "size-8 text-fg-tertiary transition-transform duration-180 group-data-panel-open/gl:rotate-90",
448
463
  "aria-hidden": !0,
449
- children: /* @__PURE__ */ E("path", {
464
+ children: /* @__PURE__ */ D("path", {
450
465
  d: "M2.5 1.5 5.5 4l-3 2.5z",
451
466
  fill: "currentColor"
452
467
  })
453
468
  })]
454
- }), /* @__PURE__ */ E(j.Panel, {
469
+ }), /* @__PURE__ */ D(M.Panel, {
455
470
  className: "collapse-motion",
456
- children: /* @__PURE__ */ E("ul", {
471
+ children: /* @__PURE__ */ D("ul", {
457
472
  className: "flex flex-col gap-2 pt-2",
458
473
  children: a
459
474
  })
460
475
  })]
461
476
  });
462
477
  });
463
- process.env.NODE_ENV !== "production" && (Q.displayName = "Sidebar.Group");
478
+ process.env.NODE_ENV !== "production" && ($.displayName = "Sidebar.Group");
464
479
  var le = [
465
480
  "",
466
481
  "pl-32",
467
482
  "pl-52"
468
- ], $ = /* @__PURE__ */ g(function({ children: n, icon: i, leading: a, href: o, onClick: c, active: l, count: u, trailing: d, depth: f = 0, shortcut: p, className: m, "data-force": h }, g) {
469
- let { rail: _ } = R(), v = t(), y = e("group/si flex h-32 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium transition-control focus-ring-inset", l ? I.item.active.classes : I.item.default.classes, !_ && le[f], _ && "justify-center px-0", m), b = /* @__PURE__ */ D(T, { children: [
470
- a ? /* @__PURE__ */ E("span", {
483
+ ], ue = /* @__PURE__ */ _(function({ children: n, icon: i, leading: a, href: o, onClick: c, active: l, count: u, trailing: d, depth: f = 0, shortcut: p, className: m, "data-force": h }, g) {
484
+ let { rail: _ } = z(), v = t(), y = e("group/si flex h-32 w-full min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-left text-body font-medium transition-control focus-ring-inset", l ? L.item.active.classes : L.item.default.classes, !_ && le[f], _ && "justify-center px-0", m), b = /* @__PURE__ */ O(E, { children: [
485
+ a ? /* @__PURE__ */ D("span", {
471
486
  className: "flex size-18 shrink-0 items-center justify-center",
472
487
  children: a
473
- }) : i && /* @__PURE__ */ E(r, {
488
+ }) : i && /* @__PURE__ */ D(r, {
474
489
  icon: i,
475
490
  size: "md",
476
491
  className: e("text-fg-secondary transition-control group-hover/si:text-fg", l && "text-fg")
477
492
  }),
478
- _ ? /* @__PURE__ */ E("span", {
493
+ _ ? /* @__PURE__ */ D("span", {
479
494
  className: "sr-only",
480
495
  children: n
481
- }) : /* @__PURE__ */ E("span", {
496
+ }) : /* @__PURE__ */ D("span", {
482
497
  className: "min-w-0 flex-1 truncate",
483
498
  children: n
484
499
  }),
485
- !_ && u !== void 0 && /* @__PURE__ */ E("span", {
500
+ !_ && u !== void 0 && /* @__PURE__ */ D("span", {
486
501
  className: e("text-caption font-medium tabular", l ? "text-fg" : "text-fg-tertiary"),
487
502
  children: u
488
503
  }),
@@ -491,22 +506,22 @@ var le = [
491
506
  className: y,
492
507
  ...l ? { "aria-current": "page" } : {},
493
508
  ...h ? { "data-force": h } : {}
494
- }, S = o ? /* @__PURE__ */ E(v, {
509
+ }, S = o ? /* @__PURE__ */ D(v, {
495
510
  ref: g,
496
511
  href: o,
497
512
  ...x,
498
513
  ...c ? { onClick: c } : {},
499
514
  children: b
500
- }) : /* @__PURE__ */ E("button", {
515
+ }) : /* @__PURE__ */ D("button", {
501
516
  ref: g,
502
517
  type: "button",
503
518
  ...x,
504
519
  ...c ? { onClick: c } : {},
505
520
  children: b
506
521
  });
507
- return /* @__PURE__ */ E("li", {
522
+ return /* @__PURE__ */ D("li", {
508
523
  className: "flex",
509
- children: _ ? /* @__PURE__ */ E(s, {
524
+ children: _ ? /* @__PURE__ */ D(s, {
510
525
  content: n,
511
526
  side: "right",
512
527
  ...p ? { shortcut: p } : {},
@@ -514,90 +529,93 @@ var le = [
514
529
  }) : S
515
530
  });
516
531
  });
517
- process.env.NODE_ENV !== "production" && ($.displayName = "Sidebar.Item");
518
- var ue = /* @__PURE__ */ g(function({ href: i, children: a, className: o }, s) {
532
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Sidebar.Item");
533
+ var de = /* @__PURE__ */ _(function({ href: i, children: a, className: o }, s) {
519
534
  let c = t(), l = n();
520
- return /* @__PURE__ */ D(c, {
535
+ return /* @__PURE__ */ O(c, {
521
536
  ref: s,
522
537
  href: i,
523
538
  className: e("flex h-32 items-center gap-8 rounded-pill px-12 text-body font-medium text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring-inset", o),
524
- children: [/* @__PURE__ */ E(r, {
525
- icon: O,
539
+ children: [/* @__PURE__ */ D(r, {
540
+ icon: k,
526
541
  size: "md"
527
542
  }), a ?? l("sidebar.backToApp", "Back to app")]
528
543
  });
529
544
  });
530
- process.env.NODE_ENV !== "production" && (ue.displayName = "Sidebar.BackLink");
531
- function de({ rows: e = 5 }) {
532
- return /* @__PURE__ */ E("div", {
545
+ process.env.NODE_ENV !== "production" && (de.displayName = "Sidebar.BackLink");
546
+ var fe = /* @__PURE__ */ _(function({ rows: e = 5 }, t) {
547
+ return /* @__PURE__ */ D("div", {
548
+ ref: t,
533
549
  className: "flex flex-col gap-2",
534
550
  "aria-busy": !0,
535
- children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ D("div", {
551
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ O("div", {
536
552
  className: "flex h-32 items-center gap-8 px-12",
537
- children: [/* @__PURE__ */ E(d, { className: "size-18 rounded-pill" }), /* @__PURE__ */ E(d, {
553
+ children: [/* @__PURE__ */ D(f, { className: "size-18 rounded-pill" }), /* @__PURE__ */ D(f, {
538
554
  className: "h-12 rounded-pill",
539
555
  style: { width: `${48 + t * 37 % 40}%` }
540
556
  })]
541
557
  }, t))
542
558
  });
543
- }
544
- process.env.NODE_ENV !== "production" && (de.displayName = "Sidebar.Loading");
545
- function fe({ className: t }) {
546
- let { collapsed: i, setCollapsed: a } = R(), o = v(B), c = n(), l = o ? o.peek ? c("sidebar.keepOpen", "Keep sidebar open") : c("sidebar.closeNavigation", "Close navigation") : i ? c("sidebar.expand", "Expand sidebar") : c("sidebar.collapse", "Collapse sidebar"), u = () => {
547
- o?.peek ? a(!1) : o ? o.close() : a(!i);
559
+ });
560
+ process.env.NODE_ENV !== "production" && (fe.displayName = "Sidebar.Loading");
561
+ var pe = /* @__PURE__ */ _(function({ className: t }, i) {
562
+ let { collapsed: a, setCollapsed: o } = z(), c = y(V), l = n(), u = c ? c.peek ? l("sidebar.keepOpen", "Keep sidebar open") : l("sidebar.closeNavigation", "Close navigation") : a ? l("sidebar.expand", "Expand sidebar") : l("sidebar.collapse", "Collapse sidebar"), d = () => {
563
+ c?.peek ? o(!1) : c ? c.close() : o(!a);
548
564
  };
549
- return /* @__PURE__ */ E(s, {
550
- content: l,
551
- ...o && !o.peek ? {} : { shortcut: ["["] },
552
- children: /* @__PURE__ */ E("button", {
565
+ return /* @__PURE__ */ D(s, {
566
+ content: u,
567
+ ...c && !c.peek ? {} : { shortcut: ["["] },
568
+ children: /* @__PURE__ */ D("button", {
569
+ ref: i,
553
570
  type: "button",
554
- "aria-label": l,
555
- ...o ? {} : { "aria-expanded": !i },
556
- onClick: u,
571
+ "aria-label": u,
572
+ ...c ? {} : { "aria-expanded": !a },
573
+ onClick: d,
557
574
  className: e("inline-flex size-32 cursor-pointer items-center justify-center rounded-pill text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring", t),
558
- children: /* @__PURE__ */ E(r, {
559
- icon: k,
575
+ children: /* @__PURE__ */ D(r, {
576
+ icon: A,
560
577
  size: "sm"
561
578
  })
562
579
  })
563
580
  });
564
- }
565
- process.env.NODE_ENV !== "production" && (fe.displayName = "Sidebar.CollapseToggle");
566
- function pe({ className: t }) {
567
- let { rail: i, setRail: a } = R(), o = n(), c = i ? o("sidebar.expand", "Expand sidebar") : o("sidebar.collapse", "Collapse sidebar");
568
- return /* @__PURE__ */ E(s, {
569
- content: c,
581
+ });
582
+ process.env.NODE_ENV !== "production" && (pe.displayName = "Sidebar.CollapseToggle");
583
+ var me = /* @__PURE__ */ _(function({ className: t }, i) {
584
+ let { rail: a, setRail: o } = z(), c = n(), l = a ? c("sidebar.expand", "Expand sidebar") : c("sidebar.collapse", "Collapse sidebar");
585
+ return /* @__PURE__ */ D(s, {
586
+ content: l,
570
587
  side: "right",
571
- children: /* @__PURE__ */ E("button", {
588
+ children: /* @__PURE__ */ D("button", {
589
+ ref: i,
572
590
  type: "button",
573
- "aria-label": c,
574
- "aria-pressed": i,
575
- onClick: () => a(!i),
591
+ "aria-label": l,
592
+ "aria-pressed": a,
593
+ onClick: () => o(!a),
576
594
  className: e("inline-flex size-32 items-center justify-center rounded-pill text-fg-secondary transition-control hover:bg-fill-2 hover:text-fg focus-ring", t),
577
- children: /* @__PURE__ */ E(r, {
578
- icon: k,
595
+ children: /* @__PURE__ */ D(r, {
596
+ icon: A,
579
597
  size: "sm"
580
598
  })
581
599
  })
582
600
  });
583
- }
584
- process.env.NODE_ENV !== "production" && (pe.displayName = "Sidebar.RailToggle");
585
- var me = /* @__PURE__ */ Object.assign(U, {
586
- Provider: V,
587
- Header: W,
588
- Brand: G,
589
- Switcher: J,
590
- Place: Y,
591
- Content: X,
592
- Footer: Z,
593
- Group: Q,
594
- Item: $,
595
- BackLink: ue,
596
- Loading: de,
597
- RailToggle: pe,
598
- CollapseToggle: fe
601
+ });
602
+ process.env.NODE_ENV !== "production" && (me.displayName = "Sidebar.RailToggle");
603
+ var he = /* @__PURE__ */ Object.assign(W, {
604
+ Provider: H,
605
+ Header: G,
606
+ Brand: K,
607
+ Switcher: Y,
608
+ Place: X,
609
+ Content: Z,
610
+ Footer: Q,
611
+ Group: $,
612
+ Item: ue,
613
+ BackLink: de,
614
+ Loading: fe,
615
+ RailToggle: me,
616
+ CollapseToggle: pe
599
617
  });
600
618
  //#endregion
601
- export { ae as a, B as c, oe as i, R as l, ie as n, me as o, I as r, z as s, K as t };
619
+ export { ae as a, V as c, oe as i, z as l, ie as n, he as o, L as r, B as s, q as t };
602
620
 
603
- //# sourceMappingURL=sidebar-DifJ5KgE.js.map
621
+ //# sourceMappingURL=sidebar-3r1ZRXlN.js.map