@logicplanes/kaeso-ui 0.7.5-rc.8 → 0.7.5

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 (524) hide show
  1. package/AGENTS.md +4 -4
  2. package/ai/component-guides.md +106 -8
  3. package/ai/component-registry.json +207 -55
  4. package/ai/component-registry.md +72 -44
  5. package/ai/icons.md +1 -1
  6. package/ai/tokens.md +18 -1
  7. package/dist/chunks/{app-frame-BZH_ATS-.js → app-frame-COfWg7wS.js} +10 -10
  8. package/dist/chunks/app-frame-COfWg7wS.js.map +1 -0
  9. package/dist/chunks/arrow-focus-D9q8rMct.js.map +1 -1
  10. package/dist/chunks/{avatar-CXhUuE1G.js → avatar-C4r7x_uJ.js} +16 -15
  11. package/dist/chunks/avatar-C4r7x_uJ.js.map +1 -0
  12. package/dist/chunks/avatar-CQNbSj8X.js +5 -0
  13. package/dist/chunks/avatar-CQNbSj8X.js.map +1 -0
  14. package/dist/chunks/{badge-Be95hMkq.js → badge-CU9K-wA1.js} +3 -3
  15. package/dist/chunks/badge-CU9K-wA1.js.map +1 -0
  16. package/dist/chunks/{banner-_XNQ5JDU.js → banner-R5GIFExf.js} +5 -5
  17. package/dist/chunks/banner-R5GIFExf.js.map +1 -0
  18. package/dist/chunks/{button-IDx51cLu.js → button-CXdEDVSI.js} +31 -30
  19. package/dist/chunks/button-CXdEDVSI.js.map +1 -0
  20. package/dist/chunks/{button-group-B5rYVJZk.js → button-group-CbzjByVu.js} +5 -5
  21. package/dist/chunks/button-group-CbzjByVu.js.map +1 -0
  22. package/dist/chunks/{calendar-D7Sbcrq-.js → calendar-BpY2J5Qf.js} +2 -2
  23. package/dist/chunks/calendar-BpY2J5Qf.js.map +1 -0
  24. package/dist/chunks/{checkbox-CzHNM_1C.js → checkbox-D2MWvFlH.js} +5 -5
  25. package/dist/chunks/checkbox-D2MWvFlH.js.map +1 -0
  26. package/dist/chunks/{cn-DQJRk8Ly.js → cn-Cim5WXyu.js} +7 -2
  27. package/dist/chunks/cn-Cim5WXyu.js.map +1 -0
  28. package/dist/chunks/{code-bpAOiAx9.js → code-CGPiBqzu.js} +2 -2
  29. package/dist/chunks/code-CGPiBqzu.js.map +1 -0
  30. package/dist/chunks/{code-block-DgACR0FD.js → code-block-Dkedqh94.js} +6 -6
  31. package/dist/chunks/code-block-Dkedqh94.js.map +1 -0
  32. package/dist/chunks/{code-block-CmkCi6IL.js → code-block-RYsP7P22.js} +7 -7
  33. package/dist/chunks/code-block-RYsP7P22.js.map +1 -0
  34. package/dist/chunks/{collapsible-ivslPUbI.js → collapsible-BwQBF1wX.js} +3 -3
  35. package/dist/chunks/collapsible-BwQBF1wX.js.map +1 -0
  36. package/dist/chunks/{combobox-Co0aJbVi.js → combobox-DlIGL6fh.js} +7 -7
  37. package/dist/chunks/combobox-DlIGL6fh.js.map +1 -0
  38. package/dist/chunks/{command-list-DuUjJqji.js → command-list-D7wBlyDt.js} +5 -5
  39. package/dist/chunks/command-list-D7wBlyDt.js.map +1 -0
  40. package/dist/chunks/{command-palette-3Q-vDMw2.js → command-palette-DhHS-XXz.js} +6 -6
  41. package/dist/chunks/command-palette-DhHS-XXz.js.map +1 -0
  42. package/dist/chunks/context-B2nNL7Im.js.map +1 -1
  43. package/dist/chunks/{copy-button-rX4M-GJO.js → copy-button-BjfGRgZi.js} +5 -5
  44. package/dist/chunks/copy-button-BjfGRgZi.js.map +1 -0
  45. package/dist/chunks/{core-hhm1-i4Y.js → core-DZ_ZGFjd.js} +147 -132
  46. package/dist/chunks/core-DZ_ZGFjd.js.map +1 -0
  47. package/dist/chunks/{dashboard-DQuMF9Tq.js → dashboard-BOeVNKwA.js} +8 -8
  48. package/dist/chunks/dashboard-BOeVNKwA.js.map +1 -0
  49. package/dist/chunks/data-table-DLqzrTF8.js +715 -0
  50. package/dist/chunks/data-table-DLqzrTF8.js.map +1 -0
  51. package/dist/chunks/{date-picker-eA13V1zj.js → date-picker-CiLNpsSh.js} +27 -26
  52. package/dist/chunks/{date-picker-eA13V1zj.js.map → date-picker-CiLNpsSh.js.map} +1 -1
  53. package/dist/chunks/{date-popup-DRANGI9L.js → date-popup-Bp0d8U6H.js} +4 -4
  54. package/dist/chunks/date-popup-Bp0d8U6H.js.map +1 -0
  55. package/dist/chunks/{de-CwdJzATr.js → de-BsTWV__5.js} +9 -5
  56. package/dist/chunks/de-BsTWV__5.js.map +1 -0
  57. package/dist/chunks/{delta-CNXOF9oJ.js → delta-Dspg6LP2.js} +3 -3
  58. package/dist/chunks/delta-Dspg6LP2.js.map +1 -0
  59. package/dist/chunks/dev-CRNODF1J.js.map +1 -1
  60. package/dist/chunks/{dialog-BAaxqNmo.js → dialog-wy5nNxfE.js} +4 -4
  61. package/dist/chunks/dialog-wy5nNxfE.js.map +1 -0
  62. package/dist/chunks/{disclosure-B5vcFKmf.js → disclosure-CmuBms1J.js} +2 -2
  63. package/dist/chunks/disclosure-CmuBms1J.js.map +1 -0
  64. package/dist/chunks/{display-options-DoSemxi6.js → display-options-CPo4Pn5F.js} +9 -9
  65. package/dist/chunks/display-options-CPo4Pn5F.js.map +1 -0
  66. package/dist/chunks/{domain-B9R6WwkJ.js → domain-Cfyk1vCK.js} +3 -3
  67. package/dist/chunks/{domain-B9R6WwkJ.js.map → domain-Cfyk1vCK.js.map} +1 -1
  68. package/dist/chunks/empty-JZwT3C6e.js +81 -0
  69. package/dist/chunks/empty-JZwT3C6e.js.map +1 -0
  70. package/dist/chunks/{field-CJmKViom.js → field-DG61eK8Z.js} +2 -2
  71. package/dist/chunks/field-DG61eK8Z.js.map +1 -0
  72. package/dist/chunks/{figure-D1v9DoaH.js → figure-BI0eP7S-.js} +3 -3
  73. package/dist/chunks/figure-BI0eP7S-.js.map +1 -0
  74. package/dist/chunks/figures-D_Tsrwwj.js.map +1 -1
  75. package/dist/chunks/{filter-chip-CK9CRCkU.js → filter-chip-DY-gZVYb.js} +6 -6
  76. package/dist/chunks/filter-chip-DY-gZVYb.js.map +1 -0
  77. package/dist/chunks/{filter-row-O70oE2iD.js → filter-row-CPO_SEYy.js} +3 -3
  78. package/dist/chunks/{filter-row-O70oE2iD.js.map → filter-row-CPO_SEYy.js.map} +1 -1
  79. package/dist/chunks/{flow-DMHMDBA4.js → flow-B8DRLw6-.js} +3 -3
  80. package/dist/chunks/flow-B8DRLw6-.js.map +1 -0
  81. package/dist/chunks/formatters-Be5AdLB2.js.map +1 -1
  82. package/dist/chunks/{heading-BTLbKrGv.js → heading-CkCOztRO.js} +2 -2
  83. package/dist/chunks/heading-CkCOztRO.js.map +1 -0
  84. package/dist/chunks/{icon-BGgbhXWJ.js → icon-B9UXhFTF.js} +2 -2
  85. package/dist/chunks/icon-B9UXhFTF.js.map +1 -0
  86. package/dist/chunks/icon-DOwC1bbC.js.map +1 -1
  87. package/dist/chunks/{identity-Bg-bQX3c.js → identity-CAvHnogN.js} +13 -8
  88. package/dist/chunks/identity-CAvHnogN.js.map +1 -0
  89. package/dist/chunks/{input-BYFKkVNf.js → input-6tVIiN3-.js} +5 -5
  90. package/dist/chunks/input-6tVIiN3-.js.map +1 -0
  91. package/dist/chunks/{input-BMuZu79b.js → input-BVheeeEI.js} +5 -5
  92. package/dist/chunks/input-BVheeeEI.js.map +1 -0
  93. package/dist/chunks/{input-group-BXj2Mghf.js → input-group-ClNtr_Gm.js} +4 -4
  94. package/dist/chunks/input-group-ClNtr_Gm.js.map +1 -0
  95. package/dist/chunks/inset-BTAjcK6a.js.map +1 -1
  96. package/dist/chunks/{iso-field-5b8xjn5X.js → iso-field-C29xji-V.js} +2 -2
  97. package/dist/chunks/iso-field-C29xji-V.js.map +1 -0
  98. package/dist/chunks/{json-view-DTIEJTSR.js → json-view-BVTEkhgz.js} +3 -3
  99. package/dist/chunks/json-view-BVTEkhgz.js.map +1 -0
  100. package/dist/chunks/{kaeso-DIbGvfhi.js → kaeso-CaMYkbqJ.js} +20 -20
  101. package/dist/chunks/kaeso-CaMYkbqJ.js.map +1 -0
  102. package/dist/chunks/kaeso-theme-C9rnRKq2.js.map +1 -1
  103. package/dist/chunks/{kbd-zNFwdrg1.js → kbd-CmhJfU_8.js} +18 -10
  104. package/dist/chunks/kbd-CmhJfU_8.js.map +1 -0
  105. package/dist/chunks/{key-value-BZca_YDS.js → key-value-tPKtCSOn.js} +23 -16
  106. package/dist/chunks/key-value-tPKtCSOn.js.map +1 -0
  107. package/dist/chunks/labelled-DJa09XRF.js.map +1 -1
  108. package/dist/chunks/linear-scale-B5A7yNr7.js.map +1 -1
  109. package/dist/chunks/{link-B_qFiRsh.js → link-CZ1h1ksk.js} +3 -3
  110. package/dist/chunks/link-CZ1h1ksk.js.map +1 -0
  111. package/dist/chunks/link-provider-DSF9bbO3.js.map +1 -1
  112. package/dist/chunks/list-zQrK77Dx.js +698 -0
  113. package/dist/chunks/list-zQrK77Dx.js.map +1 -0
  114. package/dist/chunks/loader-BbKL8cW_.js +41 -0
  115. package/dist/chunks/loader-BbKL8cW_.js.map +1 -0
  116. package/dist/chunks/{loader-BkSlU0vv.js → loader-DBk2HCOh.js} +9 -8
  117. package/dist/chunks/loader-DBk2HCOh.js.map +1 -0
  118. package/dist/chunks/{logo-BNUcTTFE.js → logo-DqjYySTX.js} +3 -3
  119. package/dist/chunks/logo-DqjYySTX.js.map +1 -0
  120. package/dist/chunks/{markdown-DH8zo4N5.js → markdown-Ds1mSbGa.js} +11 -11
  121. package/dist/chunks/markdown-Ds1mSbGa.js.map +1 -0
  122. package/dist/chunks/{menu-4EfdXXaY.js → menu-CKlz_Dp4.js} +5 -5
  123. package/dist/chunks/menu-CKlz_Dp4.js.map +1 -0
  124. package/dist/chunks/merge-refs-SiVVoQsO.js.map +1 -1
  125. package/dist/chunks/message-DpD9D1Dj.js.map +1 -1
  126. package/dist/chunks/{meter-B-VbJ8-a.js → meter-d2wMKjVU.js} +4 -4
  127. package/dist/chunks/meter-d2wMKjVU.js.map +1 -0
  128. package/dist/chunks/{nav-sheet-B1C0Qsan.js → nav-sheet--ycVeOvo.js} +3 -3
  129. package/dist/chunks/nav-sheet--ycVeOvo.js.map +1 -0
  130. package/dist/chunks/{nav-wordmark-CkHnmvCE.js → nav-wordmark-CPDxGU5t.js} +2 -2
  131. package/dist/chunks/nav-wordmark-CPDxGU5t.js.map +1 -0
  132. package/dist/chunks/observe-resize-Bubv5_wX.js.map +1 -1
  133. package/dist/chunks/option-checkbox-wA9L8Nxo.js.map +1 -1
  134. package/dist/chunks/over-sheet-CMUXcIMV.js.map +1 -1
  135. package/dist/chunks/{page-header-CMk_EwVa.js → page-header-DRi-hKtt.js} +8 -8
  136. package/dist/chunks/page-header-DRi-hKtt.js.map +1 -0
  137. package/dist/chunks/{pagination-BfmCRgHJ.js → pagination-DvPIXuoj.js} +3 -3
  138. package/dist/chunks/pagination-DvPIXuoj.js.map +1 -0
  139. package/dist/chunks/{picker-popover-3iW35tmy.js → picker-popover-B-zhsNiS.js} +7 -7
  140. package/dist/chunks/picker-popover-B-zhsNiS.js.map +1 -0
  141. package/dist/chunks/{popover-DEaeabhG.js → popover-Dw7iTUNg.js} +2 -2
  142. package/dist/chunks/popover-Dw7iTUNg.js.map +1 -0
  143. package/dist/chunks/popover-root-BI54wuLi.js.map +1 -1
  144. package/dist/chunks/portal-context-Z2xSIPsc.js.map +1 -1
  145. package/dist/chunks/provider-marks-DmonWRb5.js.map +1 -1
  146. package/dist/chunks/{qr-code-cRty-avF.js → qr-code-ClT_2Xa9.js} +2 -2
  147. package/dist/chunks/qr-code-ClT_2Xa9.js.map +1 -0
  148. package/dist/chunks/{radio-C9iPbghn.js → radio-DJES13fj.js} +3 -3
  149. package/dist/chunks/radio-DJES13fj.js.map +1 -0
  150. package/dist/chunks/{range-popup-UYRCFfQl.js → range-popup-CiCBpRfH.js} +7 -7
  151. package/dist/chunks/range-popup-CiCBpRfH.js.map +1 -0
  152. package/dist/chunks/{reasoning-frame-IiHAbh6g.js → reasoning-frame-DnTFGrD_.js} +3 -3
  153. package/dist/chunks/reasoning-frame-DnTFGrD_.js.map +1 -0
  154. package/dist/chunks/{release-art-CE2j4YlI.js → release-art-CQjO2Ewv.js} +193 -207
  155. package/dist/chunks/release-art-CQjO2Ewv.js.map +1 -0
  156. package/dist/chunks/resize-motion-CMR1x5Kw.js.map +1 -1
  157. package/dist/chunks/{rights-i-LRTcge.js → rights-B0LWKkB2.js} +121 -115
  158. package/dist/chunks/rights-B0LWKkB2.js.map +1 -0
  159. package/dist/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
  160. package/dist/chunks/{rolling-number-_2kGzuy_.js → rolling-number-uNjki3hn.js} +2 -2
  161. package/dist/chunks/rolling-number-uNjki3hn.js.map +1 -0
  162. package/dist/chunks/row-control-DlHLdthx.js.map +1 -1
  163. package/dist/chunks/safe-href-CWHpspUx.js.map +1 -1
  164. package/dist/chunks/{scroll-area-DrzIUI9G.js → scroll-area-CjokFhH6.js} +2 -2
  165. package/dist/chunks/scroll-area-CjokFhH6.js.map +1 -0
  166. package/dist/chunks/{section-NyJfocIN.js → section-DJgejMMh.js} +3 -3
  167. package/dist/chunks/section-DJgejMMh.js.map +1 -0
  168. package/dist/chunks/{segmented-CHt-g7nN.js → segmented-UnR1L-kk.js} +4 -4
  169. package/dist/chunks/segmented-UnR1L-kk.js.map +1 -0
  170. package/dist/chunks/{select-Kk7Zr4sY.js → select-BDwDI8L3.js} +5 -5
  171. package/dist/chunks/select-BDwDI8L3.js.map +1 -0
  172. package/dist/chunks/selects-text-CYQ11JVI.js +46 -0
  173. package/dist/chunks/selects-text-CYQ11JVI.js.map +1 -0
  174. package/dist/chunks/{separator-B4NRWxdN.js → separator-3RcDNFzM.js} +2 -2
  175. package/dist/chunks/separator-3RcDNFzM.js.map +1 -0
  176. package/dist/chunks/{settings-DxCWt7db.js → settings-CcNjQm1D.js} +4 -3
  177. package/dist/chunks/settings-CcNjQm1D.js.map +1 -0
  178. package/dist/chunks/{sheet-CDzn-r3p.js → sheet-CsN1uy5N.js} +3 -3
  179. package/dist/chunks/sheet-CsN1uy5N.js.map +1 -0
  180. package/dist/chunks/shiki-Drii10ai.js.map +1 -1
  181. package/dist/chunks/{sidebar-DvWmC7uY.js → sidebar-Cz0KdApZ.js} +307 -257
  182. package/dist/chunks/sidebar-Cz0KdApZ.js.map +1 -0
  183. package/dist/chunks/{sidebar-menu-BTXCx8zv.js → sidebar-menu-CTaQhVTv.js} +2 -2
  184. package/dist/chunks/sidebar-menu-CTaQhVTv.js.map +1 -0
  185. package/dist/chunks/skeleton-GuivuiOP.js +70 -0
  186. package/dist/chunks/skeleton-GuivuiOP.js.map +1 -0
  187. package/dist/chunks/{slider-DOlqqalv.js → slider-XvStaacJ.js} +2 -2
  188. package/dist/chunks/slider-XvStaacJ.js.map +1 -0
  189. package/dist/chunks/{stat-Bp_wZjxy.js → stat-BJ4otTGc.js} +6 -6
  190. package/dist/chunks/stat-BJ4otTGc.js.map +1 -0
  191. package/dist/chunks/{status-C3kBsFx5.js → status-BkW_rVAX.js} +3 -3
  192. package/dist/chunks/status-BkW_rVAX.js.map +1 -0
  193. package/dist/chunks/{styles-CN0ovMB2.js → styles-BsZZml1H.js} +2 -2
  194. package/dist/chunks/{styles-CN0ovMB2.js.map → styles-BsZZml1H.js.map} +1 -1
  195. package/dist/chunks/{swap-text-BwTV6JqO.js → swap-text-Crb3uzrK.js} +2 -2
  196. package/dist/chunks/swap-text-Crb3uzrK.js.map +1 -0
  197. package/dist/chunks/{swap-value-Di18BQCa.js → swap-value-BKrH58Iv.js} +3 -3
  198. package/dist/chunks/swap-value-BKrH58Iv.js.map +1 -0
  199. package/dist/chunks/{switch-C1pUsVtT.js → switch-CzmZ6gLD.js} +5 -4
  200. package/dist/chunks/switch-CzmZ6gLD.js.map +1 -0
  201. package/dist/chunks/{table-BXJrLHr8.js → table-ppZE7fYt.js} +2 -2
  202. package/dist/chunks/table-ppZE7fYt.js.map +1 -0
  203. package/dist/chunks/{tabs-D40oQwXB.js → tabs-DPA2zGfY.js} +3 -3
  204. package/dist/chunks/tabs-DPA2zGfY.js.map +1 -0
  205. package/dist/chunks/{tag-x-EyRR8h.js → tag-CnULig9p.js} +4 -4
  206. package/dist/chunks/tag-CnULig9p.js.map +1 -0
  207. package/dist/chunks/{text-BXZOSAHk.js → text-BC4rusw7.js} +3 -3
  208. package/dist/chunks/text-BC4rusw7.js.map +1 -0
  209. package/dist/chunks/{textarea-DsYriHdR.js → textarea-K4ojoshs.js} +5 -5
  210. package/dist/chunks/textarea-K4ojoshs.js.map +1 -0
  211. package/dist/chunks/{theme-image-DKxmJnVz.js → theme-image-C9p959Kv.js} +2 -2
  212. package/dist/chunks/theme-image-C9p959Kv.js.map +1 -0
  213. package/dist/chunks/{theme-menu-BfTPLeV1.js → theme-menu-Bm8d9ooS.js} +4 -4
  214. package/dist/chunks/theme-menu-Bm8d9ooS.js.map +1 -0
  215. package/dist/chunks/theme-provider-DaD8hlXu.js.map +1 -1
  216. package/dist/chunks/{thumbnail-DYBOnTRy.js → thumbnail-CUa0JXLG.js} +4 -4
  217. package/dist/chunks/thumbnail-CUa0JXLG.js.map +1 -0
  218. package/dist/chunks/{thumbnail-CcC1oISm.js → thumbnail-KtBHleQk.js} +2 -2
  219. package/dist/chunks/thumbnail-KtBHleQk.js.map +1 -0
  220. package/dist/chunks/{timeline-l12CWnH0.js → timeline-hMJEN3ZB.js} +3 -3
  221. package/dist/chunks/timeline-hMJEN3ZB.js.map +1 -0
  222. package/dist/chunks/{timeseries-11o3wvRN.js → timeseries-BUL9zITH.js} +7 -7
  223. package/dist/chunks/timeseries-BUL9zITH.js.map +1 -0
  224. package/dist/chunks/{toast-YiWEHrDi.js → toast-4PyK7GS1.js} +5 -5
  225. package/dist/chunks/toast-4PyK7GS1.js.map +1 -0
  226. package/dist/chunks/{toc-kwH5V9BC.js → toc-CUh8jCiJ.js} +2 -2
  227. package/dist/chunks/toc-CUh8jCiJ.js.map +1 -0
  228. package/dist/chunks/toolbar-w3ZPxEoW.js +80 -0
  229. package/dist/chunks/toolbar-w3ZPxEoW.js.map +1 -0
  230. package/dist/chunks/tooltip-D0jdTWyX.js.map +1 -1
  231. package/dist/chunks/{tooltip-5VkHAnXF.js → tooltip-DpUVorD8.js} +4 -4
  232. package/dist/chunks/tooltip-DpUVorD8.js.map +1 -0
  233. package/dist/chunks/{tooltip-root-munfMGEN.js → tooltip-root-Ka27-TrV.js} +8 -7
  234. package/dist/chunks/tooltip-root-Ka27-TrV.js.map +1 -0
  235. package/dist/chunks/{tooltip-D8DF9Pe6.js → tooltip-uRgNOzW_.js} +4 -4
  236. package/dist/chunks/tooltip-uRgNOzW_.js.map +1 -0
  237. package/dist/chunks/{truncated-xRd8D8kf.js → truncated-CcpJk_3e.js} +3 -3
  238. package/dist/chunks/truncated-CcpJk_3e.js.map +1 -0
  239. package/dist/chunks/use-controllable-rN5Fg5EJ.js.map +1 -1
  240. package/dist/chunks/use-copy-DtUCUOlR.js.map +1 -1
  241. package/dist/chunks/use-cut-off-Cx1Nn5uF.js.map +1 -1
  242. package/dist/chunks/use-delayed-loading-Chh5dI7E.js +21 -0
  243. package/dist/chunks/use-delayed-loading-Chh5dI7E.js.map +1 -0
  244. package/dist/chunks/use-hydrating-Dth8POSk.js.map +1 -1
  245. package/dist/chunks/use-indicator-C1pEv290.js.map +1 -1
  246. package/dist/chunks/use-layout-width-DbMAv4mR.js.map +1 -1
  247. package/dist/chunks/use-scroll-fade-BwpKEWY0.js.map +1 -1
  248. package/dist/chunks/use-scroll-margin-LcRbT78-.js.map +1 -1
  249. package/dist/chunks/use-truncated-Dn60-ubK.js.map +1 -1
  250. package/dist/chunks/use-utc-while-hydrating-PP48Tcfz.js.map +1 -1
  251. package/dist/chunks/virtual-rows-D-ZT6V6B.js.map +1 -1
  252. package/dist/chunks/{visually-hidden-BloW-QXO.js → visually-hidden-Di2pLhE3.js} +2 -2
  253. package/dist/chunks/visually-hidden-Di2pLhE3.js.map +1 -0
  254. package/dist/chunks/when-idle-DXKwyOLB.js.map +1 -1
  255. package/dist/chunks/{zh-CN-Db1lfihK.js → zh-CN-C4aFUWpC.js} +6 -2
  256. package/dist/chunks/zh-CN-C4aFUWpC.js.map +1 -0
  257. package/dist/components/app-frame.js +1 -1
  258. package/dist/components/avatar.js +3 -1
  259. package/dist/components/badge.js +1 -1
  260. package/dist/components/banner.js +1 -1
  261. package/dist/components/button-group.js +1 -1
  262. package/dist/components/button.js +1 -1
  263. package/dist/components/calendar.js +1 -1
  264. package/dist/components/charts/bar.js +6 -6
  265. package/dist/components/charts/bar.js.map +1 -1
  266. package/dist/components/charts/donut.js +156 -85
  267. package/dist/components/charts/donut.js.map +1 -1
  268. package/dist/components/charts/heatmap.js +3 -3
  269. package/dist/components/charts/heatmap.js.map +1 -1
  270. package/dist/components/charts/sankey.js +4 -4
  271. package/dist/components/charts/sankey.js.map +1 -1
  272. package/dist/components/charts/sparkline.js +3 -3
  273. package/dist/components/charts/sparkline.js.map +1 -1
  274. package/dist/components/charts/swatches.js +31 -0
  275. package/dist/components/charts/swatches.js.map +1 -0
  276. package/dist/components/charts/timeseries.js +1 -1
  277. package/dist/components/charts.js +8 -8
  278. package/dist/components/checkbox.js +1 -1
  279. package/dist/components/code-block.js +3 -3
  280. package/dist/components/code.js +1 -1
  281. package/dist/components/collapsible.js +1 -1
  282. package/dist/components/combobox.js +1 -1
  283. package/dist/components/command-palette.js +1 -1
  284. package/dist/components/copy-button.js +1 -1
  285. package/dist/components/dashboard/about-header.js +44 -0
  286. package/dist/components/dashboard/about-header.js.map +1 -0
  287. package/dist/components/dashboard/legend.js +2 -2
  288. package/dist/components/dashboard/legend.js.map +1 -1
  289. package/dist/components/dashboard/metric-tabs.js +4 -4
  290. package/dist/components/dashboard/metric-tabs.js.map +1 -1
  291. package/dist/components/dashboard/model-card.js +100 -38
  292. package/dist/components/dashboard/model-card.js.map +1 -1
  293. package/dist/components/dashboard/rank-list.js +90 -59
  294. package/dist/components/dashboard/rank-list.js.map +1 -1
  295. package/dist/components/dashboard.js +3 -2
  296. package/dist/components/data-table.js +1 -1
  297. package/dist/components/date-picker.js +1 -1
  298. package/dist/components/dialog.js +1 -1
  299. package/dist/components/display-options.js +1 -1
  300. package/dist/components/empty.js +1 -1
  301. package/dist/components/field.js +1 -1
  302. package/dist/components/figure.js +1 -1
  303. package/dist/components/filter-chip.js +1 -1
  304. package/dist/components/filter-row.js +1 -1
  305. package/dist/components/flow-canvas.js +8 -8
  306. package/dist/components/flow-canvas.js.map +1 -1
  307. package/dist/components/flow.js +1 -1
  308. package/dist/components/heading.js +1 -1
  309. package/dist/components/icon.js +1 -1
  310. package/dist/components/input.js +3 -3
  311. package/dist/components/kaeso/conversation.js +8 -8
  312. package/dist/components/kaeso/conversation.js.map +1 -1
  313. package/dist/components/kaeso/identity.js +1 -1
  314. package/dist/components/kaeso/moments.js +4 -4
  315. package/dist/components/kaeso/moments.js.map +1 -1
  316. package/dist/components/kaeso/rights.js +1 -1
  317. package/dist/components/kaeso/usage.js +8 -8
  318. package/dist/components/kaeso/usage.js.map +1 -1
  319. package/dist/components/kaeso.js +3 -3
  320. package/dist/components/kbd.js +1 -1
  321. package/dist/components/key-value.js +1 -1
  322. package/dist/components/link.js +1 -1
  323. package/dist/components/list.js +1 -1
  324. package/dist/components/loader.js +3 -2
  325. package/dist/components/logo.js +1 -1
  326. package/dist/components/markdown.js +1 -1
  327. package/dist/components/menu.js +2 -2
  328. package/dist/components/meter.js +1 -1
  329. package/dist/components/page-header.js +1 -1
  330. package/dist/components/pagination.js +1 -1
  331. package/dist/components/playground.js +61 -42
  332. package/dist/components/playground.js.map +1 -1
  333. package/dist/components/popover.js +1 -1
  334. package/dist/components/qr-code.js +1 -1
  335. package/dist/components/radio.js +1 -1
  336. package/dist/components/release-art.js +1 -1
  337. package/dist/components/scroll-area.js +1 -1
  338. package/dist/components/section.js +1 -1
  339. package/dist/components/segmented.js +1 -1
  340. package/dist/components/select.js +1 -1
  341. package/dist/components/separator.js +1 -1
  342. package/dist/components/settings.js +1 -1
  343. package/dist/components/sheet.js +1 -1
  344. package/dist/components/sidebar.js +1 -1
  345. package/dist/components/skeleton.js +1 -1
  346. package/dist/components/slider.js +1 -1
  347. package/dist/components/stat.js +3 -3
  348. package/dist/components/status.js +1 -1
  349. package/dist/components/swap-text.js +1 -1
  350. package/dist/components/switch.js +1 -1
  351. package/dist/components/table.js +1 -1
  352. package/dist/components/tabs.js +1 -1
  353. package/dist/components/tag.js +1 -1
  354. package/dist/components/text.js +1 -1
  355. package/dist/components/theme-image.js +1 -1
  356. package/dist/components/theme-menu.js +1 -1
  357. package/dist/components/thumbnail.js +2 -2
  358. package/dist/components/timeline.js +1 -1
  359. package/dist/components/toast.js +1 -1
  360. package/dist/components/toc.js +1 -1
  361. package/dist/components/toolbar.js +1 -1
  362. package/dist/components/tooltip.js +1 -1
  363. package/dist/components/visually-hidden.js +1 -1
  364. package/dist/format.js.map +1 -1
  365. package/dist/i18n-locales.js.map +1 -1
  366. package/dist/i18n-provider.js +1 -1
  367. package/dist/i18n-provider.js.map +1 -1
  368. package/dist/index.js +101 -99
  369. package/dist/kaeso.css +138 -44
  370. package/dist/styles.css +1 -1
  371. package/dist/types/components/app-frame/app-frame.d.ts +2 -2
  372. package/dist/types/components/avatar/avatar.d.ts +1 -0
  373. package/dist/types/components/avatar/docs.d.ts +1 -0
  374. package/dist/types/components/avatar/index.d.ts +1 -0
  375. package/dist/types/components/avatar/swatches.d.ts +6 -0
  376. package/dist/types/components/banner/banner.d.ts +2 -2
  377. package/dist/types/components/charts/core.d.ts +6 -2
  378. package/dist/types/components/charts/docs.d.ts +2 -0
  379. package/dist/types/components/charts/donut.d.ts +2 -0
  380. package/dist/types/components/charts/index.d.ts +1 -1
  381. package/dist/types/components/charts/swatches.d.ts +8 -0
  382. package/dist/types/components/dashboard/about-header.d.ts +12 -0
  383. package/dist/types/components/dashboard/docs.d.ts +16 -2
  384. package/dist/types/components/dashboard/index.d.ts +1 -0
  385. package/dist/types/components/dashboard/model-card.d.ts +2 -2
  386. package/dist/types/components/dashboard/rank-list.d.ts +2 -0
  387. package/dist/types/components/empty/docs.d.ts +2 -0
  388. package/dist/types/components/empty/empty.d.ts +29 -7
  389. package/dist/types/components/empty/ghost.d.ts +9 -0
  390. package/dist/types/components/filter-row/filter-row.d.ts +2 -2
  391. package/dist/types/components/kaeso/client-button.d.ts +2 -2
  392. package/dist/types/components/kaeso/model-makers.d.ts +2 -2
  393. package/dist/types/components/kaeso/source-badge.d.ts +3 -3
  394. package/dist/types/components/key-value/key-value.d.ts +1 -0
  395. package/dist/types/components/list/docs.d.ts +2 -0
  396. package/dist/types/components/list/index.d.ts +1 -1
  397. package/dist/types/components/list/list.d.ts +18 -0
  398. package/dist/types/components/loader/loader.d.ts +1 -1
  399. package/dist/types/components/page-header/page-header.d.ts +1 -1
  400. package/dist/types/components/release-art/drawing.d.ts +1 -5
  401. package/dist/types/components/release-art/index.d.ts +1 -1
  402. package/dist/types/components/release-art/release-art.d.ts +1 -5
  403. package/dist/types/components/sidebar/sidebar.d.ts +1 -0
  404. package/dist/types/components/skeleton/docs.d.ts +1 -0
  405. package/dist/types/components/skeleton/skeleton.d.ts +9 -0
  406. package/dist/types/components/toolbar/docs.d.ts +1 -0
  407. package/dist/types/components/toolbar/toolbar.d.ts +14 -2
  408. package/dist/types/hooks/use-delayed-loading.d.ts +1 -0
  409. package/dist/types/utils/cn.d.ts +15 -15
  410. package/dist/utils.js +1 -1
  411. package/foundations/color.md +4 -3
  412. package/foundations/icons.md +1 -1
  413. package/foundations/layout.md +9 -9
  414. package/foundations/motion.md +4 -2
  415. package/foundations/psychology.md +1 -1
  416. package/foundations/writing.md +6 -1
  417. package/package.json +10 -10
  418. package/dist/chunks/app-frame-BZH_ATS-.js.map +0 -1
  419. package/dist/chunks/avatar-CXhUuE1G.js.map +0 -1
  420. package/dist/chunks/badge-Be95hMkq.js.map +0 -1
  421. package/dist/chunks/banner-_XNQ5JDU.js.map +0 -1
  422. package/dist/chunks/button-IDx51cLu.js.map +0 -1
  423. package/dist/chunks/button-group-B5rYVJZk.js.map +0 -1
  424. package/dist/chunks/calendar-D7Sbcrq-.js.map +0 -1
  425. package/dist/chunks/checkbox-CzHNM_1C.js.map +0 -1
  426. package/dist/chunks/cn-DQJRk8Ly.js.map +0 -1
  427. package/dist/chunks/code-block-CmkCi6IL.js.map +0 -1
  428. package/dist/chunks/code-block-DgACR0FD.js.map +0 -1
  429. package/dist/chunks/code-bpAOiAx9.js.map +0 -1
  430. package/dist/chunks/collapsible-ivslPUbI.js.map +0 -1
  431. package/dist/chunks/combobox-Co0aJbVi.js.map +0 -1
  432. package/dist/chunks/command-list-DuUjJqji.js.map +0 -1
  433. package/dist/chunks/command-palette-3Q-vDMw2.js.map +0 -1
  434. package/dist/chunks/copy-button-rX4M-GJO.js.map +0 -1
  435. package/dist/chunks/core-hhm1-i4Y.js.map +0 -1
  436. package/dist/chunks/dashboard-DQuMF9Tq.js.map +0 -1
  437. package/dist/chunks/data-table-BwZjiKKY.js +0 -683
  438. package/dist/chunks/data-table-BwZjiKKY.js.map +0 -1
  439. package/dist/chunks/date-popup-DRANGI9L.js.map +0 -1
  440. package/dist/chunks/de-CwdJzATr.js.map +0 -1
  441. package/dist/chunks/delta-CNXOF9oJ.js.map +0 -1
  442. package/dist/chunks/dialog-BAaxqNmo.js.map +0 -1
  443. package/dist/chunks/disclosure-B5vcFKmf.js.map +0 -1
  444. package/dist/chunks/display-options-DoSemxi6.js.map +0 -1
  445. package/dist/chunks/empty-2sGaG4zU.js +0 -50
  446. package/dist/chunks/empty-2sGaG4zU.js.map +0 -1
  447. package/dist/chunks/field-CJmKViom.js.map +0 -1
  448. package/dist/chunks/figure-D1v9DoaH.js.map +0 -1
  449. package/dist/chunks/filter-chip-CK9CRCkU.js.map +0 -1
  450. package/dist/chunks/flow-DMHMDBA4.js.map +0 -1
  451. package/dist/chunks/heading-BTLbKrGv.js.map +0 -1
  452. package/dist/chunks/icon-BGgbhXWJ.js.map +0 -1
  453. package/dist/chunks/identity-Bg-bQX3c.js.map +0 -1
  454. package/dist/chunks/input-BMuZu79b.js.map +0 -1
  455. package/dist/chunks/input-BYFKkVNf.js.map +0 -1
  456. package/dist/chunks/input-group-BXj2Mghf.js.map +0 -1
  457. package/dist/chunks/iso-field-5b8xjn5X.js.map +0 -1
  458. package/dist/chunks/json-view-DTIEJTSR.js.map +0 -1
  459. package/dist/chunks/kaeso-DIbGvfhi.js.map +0 -1
  460. package/dist/chunks/kbd-zNFwdrg1.js.map +0 -1
  461. package/dist/chunks/key-value-BZca_YDS.js.map +0 -1
  462. package/dist/chunks/link-B_qFiRsh.js.map +0 -1
  463. package/dist/chunks/list-D40s-Q7V.js +0 -596
  464. package/dist/chunks/list-D40s-Q7V.js.map +0 -1
  465. package/dist/chunks/loader-B0lA9LE9.js +0 -56
  466. package/dist/chunks/loader-B0lA9LE9.js.map +0 -1
  467. package/dist/chunks/loader-BkSlU0vv.js.map +0 -1
  468. package/dist/chunks/logo-BNUcTTFE.js.map +0 -1
  469. package/dist/chunks/markdown-DH8zo4N5.js.map +0 -1
  470. package/dist/chunks/menu-4EfdXXaY.js.map +0 -1
  471. package/dist/chunks/meter-B-VbJ8-a.js.map +0 -1
  472. package/dist/chunks/nav-sheet-B1C0Qsan.js.map +0 -1
  473. package/dist/chunks/nav-wordmark-CkHnmvCE.js.map +0 -1
  474. package/dist/chunks/page-header-CMk_EwVa.js.map +0 -1
  475. package/dist/chunks/pagination-BfmCRgHJ.js.map +0 -1
  476. package/dist/chunks/picker-popover-3iW35tmy.js.map +0 -1
  477. package/dist/chunks/popover-DEaeabhG.js.map +0 -1
  478. package/dist/chunks/qr-code-cRty-avF.js.map +0 -1
  479. package/dist/chunks/radio-C9iPbghn.js.map +0 -1
  480. package/dist/chunks/range-popup-UYRCFfQl.js.map +0 -1
  481. package/dist/chunks/reasoning-frame-IiHAbh6g.js.map +0 -1
  482. package/dist/chunks/release-art-CE2j4YlI.js.map +0 -1
  483. package/dist/chunks/rights-i-LRTcge.js.map +0 -1
  484. package/dist/chunks/rolling-number-_2kGzuy_.js.map +0 -1
  485. package/dist/chunks/scroll-area-DrzIUI9G.js.map +0 -1
  486. package/dist/chunks/section-NyJfocIN.js.map +0 -1
  487. package/dist/chunks/segmented-CHt-g7nN.js.map +0 -1
  488. package/dist/chunks/select-Kk7Zr4sY.js.map +0 -1
  489. package/dist/chunks/selects-text-kRMTsm4s.js +0 -32
  490. package/dist/chunks/selects-text-kRMTsm4s.js.map +0 -1
  491. package/dist/chunks/separator-B4NRWxdN.js.map +0 -1
  492. package/dist/chunks/settings-DxCWt7db.js.map +0 -1
  493. package/dist/chunks/sheet-CDzn-r3p.js.map +0 -1
  494. package/dist/chunks/sidebar-DvWmC7uY.js.map +0 -1
  495. package/dist/chunks/sidebar-menu-BTXCx8zv.js.map +0 -1
  496. package/dist/chunks/skeleton-4vjHa9pE.js +0 -32
  497. package/dist/chunks/skeleton-4vjHa9pE.js.map +0 -1
  498. package/dist/chunks/slider-DOlqqalv.js.map +0 -1
  499. package/dist/chunks/stat-Bp_wZjxy.js.map +0 -1
  500. package/dist/chunks/status-C3kBsFx5.js.map +0 -1
  501. package/dist/chunks/swap-text-BwTV6JqO.js.map +0 -1
  502. package/dist/chunks/swap-value-Di18BQCa.js.map +0 -1
  503. package/dist/chunks/switch-C1pUsVtT.js.map +0 -1
  504. package/dist/chunks/table-BXJrLHr8.js.map +0 -1
  505. package/dist/chunks/tabs-D40oQwXB.js.map +0 -1
  506. package/dist/chunks/tag-x-EyRR8h.js.map +0 -1
  507. package/dist/chunks/text-BXZOSAHk.js.map +0 -1
  508. package/dist/chunks/textarea-DsYriHdR.js.map +0 -1
  509. package/dist/chunks/theme-image-DKxmJnVz.js.map +0 -1
  510. package/dist/chunks/theme-menu-BfTPLeV1.js.map +0 -1
  511. package/dist/chunks/thumbnail-CcC1oISm.js.map +0 -1
  512. package/dist/chunks/thumbnail-DYBOnTRy.js.map +0 -1
  513. package/dist/chunks/timeline-l12CWnH0.js.map +0 -1
  514. package/dist/chunks/timeseries-11o3wvRN.js.map +0 -1
  515. package/dist/chunks/toast-YiWEHrDi.js.map +0 -1
  516. package/dist/chunks/toc-kwH5V9BC.js.map +0 -1
  517. package/dist/chunks/toolbar-CsamWPRC.js +0 -60
  518. package/dist/chunks/toolbar-CsamWPRC.js.map +0 -1
  519. package/dist/chunks/tooltip-5VkHAnXF.js.map +0 -1
  520. package/dist/chunks/tooltip-D8DF9Pe6.js.map +0 -1
  521. package/dist/chunks/tooltip-root-munfMGEN.js.map +0 -1
  522. package/dist/chunks/truncated-xRd8D8kf.js.map +0 -1
  523. package/dist/chunks/visually-hidden-BloW-QXO.js.map +0 -1
  524. package/dist/chunks/zh-CN-Db1lfihK.js.map +0 -1
@@ -0,0 +1,698 @@
1
+ "use client";
2
+ import { t as e } from "./cn-Cim5WXyu.js";
3
+ import { t } from "./figures-D_Tsrwwj.js";
4
+ import { a as n, i as r } from "./inset-BTAjcK6a.js";
5
+ import { Plus as i } from "../icons/plus.js";
6
+ import { X as a } from "../icons/x.js";
7
+ import { t as o } from "./icon-B9UXhFTF.js";
8
+ import { n as s } from "./button-CXdEDVSI.js";
9
+ import { r as c } from "./text-BC4rusw7.js";
10
+ import { t as l } from "./truncated-CcpJk_3e.js";
11
+ import { r as u } from "./skeleton-GuivuiOP.js";
12
+ import { a as d, i as f, n as ee, r as p, t as m } from "./selects-text-CYQ11JVI.js";
13
+ import { n as h } from "./use-layout-width-DbMAv4mR.js";
14
+ import { r as g } from "./portal-context-Z2xSIPsc.js";
15
+ import { l as _, o as v } from "./tooltip-uRgNOzW_.js";
16
+ import { a as y } from "./context-B2nNL7Im.js";
17
+ import { t as b } from "./use-hydrating-Dth8POSk.js";
18
+ import { createContext as x, forwardRef as S, useCallback as C, useContext as w, useEffect as T, useLayoutEffect as E, useMemo as te, useRef as D, useState as O } from "react";
19
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
20
+ import { createPortal as j } from "react-dom";
21
+ // src/components/list/row-checkbox.tsx
22
+ var M = /* @__PURE__ */ v(() => import("./checkbox-D2MWvFlH.js").then((e) => e.c), { base: () => import.meta.url });
23
+ function N({ checked: t, onToggle: n, "aria-label": r }) {
24
+ let [i, a] = _(M, !0), [o, s] = O(!1), [c, l] = O(!1);
25
+ return T(() => {
26
+ if (!c) return;
27
+ let e, t = () => {
28
+ e = setTimeout(() => l(!1));
29
+ };
30
+ return window.addEventListener("pointerup", t, !0), window.addEventListener("pointercancel", t, !0), () => {
31
+ clearTimeout(e), window.removeEventListener("pointerup", t, !0), window.removeEventListener("pointercancel", t, !0);
32
+ };
33
+ }, [c]), i && !o && !c ? /* @__PURE__ */ k(i.CheckboxBox, {
34
+ checked: t,
35
+ onCheckedChange: n,
36
+ "aria-label": r
37
+ }) : /* @__PURE__ */ k("span", {
38
+ role: "checkbox",
39
+ "aria-checked": t,
40
+ "aria-label": r,
41
+ onPointerEnter: () => {
42
+ s(!0), a();
43
+ },
44
+ onPointerLeave: () => s(!1),
45
+ onPointerDown: () => l(!0),
46
+ onClick: () => {
47
+ n(), s(!1), l(!1);
48
+ },
49
+ className: "relative -m-3 inline-flex size-24 shrink-0 cursor-pointer items-center justify-center rounded-checkbox",
50
+ children: /* @__PURE__ */ k("span", {
51
+ "aria-hidden": !0,
52
+ className: e("flex size-18 items-center justify-center rounded-checkbox", t ? "bg-ink" : "bg-raised shadow-selector")
53
+ })
54
+ });
55
+ }
56
+ // src/components/list/list.tsx
57
+ var ne = /* @__PURE__ */ v(() => import("./virtual-rows-D-ZT6V6B.js"), { base: () => import.meta.url }), P = { density: {
58
+ default: { classes: "h-44" },
59
+ compact: { classes: "h-36 coarse:h-44" }
60
+ } }, F = { density: "default" }, re = {
61
+ 48: "w-48",
62
+ 64: "w-64",
63
+ 80: "w-80",
64
+ 96: "w-96",
65
+ 120: "w-120"
66
+ }, I = 520, ie = "a[href], button, input, select, textarea, [tabindex], [contenteditable=true]", ae = "input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]";
67
+ function oe(e) {
68
+ for (let t of e.querySelectorAll("[role=row]")) {
69
+ let e = t.querySelector("[data-index]");
70
+ if (e) for (let n of t.querySelectorAll(ie)) n !== e && n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1");
71
+ }
72
+ }
73
+ var L = /* @__PURE__ */ S(function({ items: t, groups: i, headings: a, onOpen: o, selectable: s, selected: c, onSelectedChange: l, idWidth: u, density: d = "default", wrapSubtitle: m = !1, virtualizeAbove: g = 100, selectionActions: v, selectionBar: y = !0, loading: b, empty: x, ghost: S = {}, className: w, "aria-label": T, "data-force-row": j }, M) {
74
+ let N = n(), P = r(), [F, re] = O(/* @__PURE__ */ new Set()), L = c ?? F, z = C((e) => {
75
+ c || re(e), l?.(e);
76
+ }, [c, l]), [B, de] = O(() => new Set((i ?? []).filter((e) => e.defaultCollapsed).map((e) => e.id))), [V, H] = O(-1), [ge, _e] = O(null), U = D(null), W = D(null), ve = h(U), G = !!ve && ve < I, K = te(() => {
77
+ let e = (e) => e.flatMap((e) => [{
78
+ kind: "row",
79
+ item: e,
80
+ depth: 0,
81
+ lastChild: !1,
82
+ key: e.id
83
+ }, ...(e.children ?? []).map((e, t, n) => ({
84
+ kind: "row",
85
+ item: e,
86
+ depth: 1,
87
+ lastChild: t === n.length - 1,
88
+ key: e.id
89
+ }))]);
90
+ return i ? i.flatMap((t) => [{
91
+ kind: "header",
92
+ group: t,
93
+ key: `h-${t.id}`
94
+ }, ...B.has(t.id) ? [] : e(t.items)]) : e(t ?? []);
95
+ }, [
96
+ t,
97
+ i,
98
+ B
99
+ ]), ye = K.findIndex((e) => e.kind === "row"), q = K.some((e) => e.kind === "row" && e.item.date !== void 0), J = i ? i.every((e) => e.items.length === 0) : (t ?? []).length === 0, be = J && !!x && !b && !!S && (N || !P), xe = !!a && !G && (!J || be), Y = K.length > g, Se = ee(), Ce = (e) => K[e]?.kind === "header" ? e === 0 ? 36 : 52 : G ? 64 : d === "compact" && !Se ? 36 : 44, [we, X] = _(ne, Y), Z = we?.VirtualRows, Te = D(null);
100
+ V >= K.length && H(-1);
101
+ let Ee = V >= 0 ? V : K.length ? 0 : -1, De = (e) => {
102
+ H(e), Y && Te.current?.(e);
103
+ let t = () => U.current?.querySelector(`[data-index="${e}"]`), n = (e) => {
104
+ e && (e.focus(), ce(e, W.current));
105
+ }, r = t();
106
+ r ? n(r) : requestAnimationFrame(() => n(t()));
107
+ }, Q = D(null);
108
+ E(() => {
109
+ let e = Q.current;
110
+ if (!e || K.some((t) => t.key === e.key) || (Q.current = null, !K.length)) return;
111
+ let t = Math.min(e.index, K.length - 1);
112
+ if (document.activeElement === document.body) return De(t);
113
+ let n = document.activeElement?.closest("[role=dialog], [role=alertdialog]");
114
+ if (!n) return;
115
+ let r = performance.now() + 2e3, i = () => {
116
+ document.activeElement === document.body ? U.current?.isConnected && De(t) : n.contains(document.activeElement) && performance.now() < r && requestAnimationFrame(i);
117
+ };
118
+ requestAnimationFrame(i);
119
+ }), E(() => {
120
+ let e = U.current;
121
+ if (!e) return;
122
+ if (G || !q) {
123
+ e.style.removeProperty("--k-list-date");
124
+ return;
125
+ }
126
+ let t = 0, n = () => {
127
+ for (let n of e.querySelectorAll("[data-list-date]")) t = Math.max(t, n.getBoundingClientRect().width);
128
+ let n = t ? `${Math.ceil(t)}px` : "";
129
+ e.style.getPropertyValue("--k-list-date") !== n && e.style.setProperty("--k-list-date", n);
130
+ };
131
+ n();
132
+ let r = new MutationObserver(n);
133
+ r.observe(e, {
134
+ childList: !0,
135
+ subtree: !0,
136
+ characterData: !0
137
+ });
138
+ let i = !0;
139
+ return document.fonts?.ready.then(() => i && n()), () => {
140
+ i = !1, r.disconnect();
141
+ };
142
+ }, [
143
+ K,
144
+ G,
145
+ q
146
+ ]);
147
+ let Oe = D(!!Z);
148
+ E(() => {
149
+ Z && !Oe.current && V >= 0 && document.activeElement === document.body && U.current?.querySelector(`[data-index="${V}"]`)?.focus(), Oe.current = !!Z;
150
+ }), E(() => {
151
+ let e = U.current;
152
+ if (!e) return;
153
+ oe(e);
154
+ let t = new MutationObserver(() => oe(e));
155
+ return t.observe(e, {
156
+ subtree: !0,
157
+ childList: !0,
158
+ attributes: !0,
159
+ attributeFilter: ["tabindex"]
160
+ }), () => t.disconnect();
161
+ }, []);
162
+ let ke = (e) => {
163
+ let t = new Set(L);
164
+ t.has(e) ? t.delete(e) : t.add(e), z(t);
165
+ }, Ae = (e) => e.flatMap((e) => e.kind === "row" && !e.item.disabled ? [e.item.id] : []), je = (e) => {
166
+ let t = e.target;
167
+ if (!e.currentTarget.contains(t) || t.closest(ae)) return;
168
+ let n = t.closest("[role=row]"), r = n?.querySelector("[data-index]");
169
+ if (!n || !r) return;
170
+ let i = t === r;
171
+ if (e.key === "Escape" && !i && !e.altKey && !e.metaKey && !e.ctrlKey && !t.closest("[data-popup-open], [aria-expanded=true]")) {
172
+ e.preventDefault(), r.focus();
173
+ return;
174
+ }
175
+ if (e.defaultPrevented) return;
176
+ let a = Number(r.dataset.index), c = K[a], l = c?.kind === "row" ? c.item : void 0;
177
+ if (e.altKey) return;
178
+ if (e.metaKey || e.ctrlKey) {
179
+ e.key.toLowerCase() === "a" && s && !e.shiftKey && (e.preventDefault(), z(new Set(Ae(K))));
180
+ return;
181
+ }
182
+ let u = (t) => {
183
+ if (e.preventDefault(), e.shiftKey && s) {
184
+ let e = ge ?? a;
185
+ _e(e);
186
+ let n = new Set(L);
187
+ Ae(K.slice(Math.min(e, t), Math.max(e, t) + 1)).forEach((e) => n.add(e)), z(n);
188
+ } else _e(null);
189
+ De(t);
190
+ }, d = () => [...n.querySelectorAll(ie)].filter((e) => e !== r && !e.closest("[role=checkbox], [aria-hidden=true], [hidden]") && !e.matches(":disabled, input[type=checkbox]"));
191
+ if (e.key === "ArrowDown" || e.key === "j" && !e.shiftKey) u(Math.min(K.length - 1, a + 1));
192
+ else if (e.key === "ArrowUp" || e.key === "k" && !e.shiftKey) u(Math.max(0, a - 1));
193
+ else if (e.key === "Home") u(0);
194
+ else if (e.key === "End") u(K.length - 1);
195
+ else if (e.key === "ArrowRight" || e.key === "ArrowLeft") {
196
+ let n = d(), a = i ? -1 : n.indexOf(t), o = e.key === "ArrowRight" ? n[a + 1] : a > 0 ? n[a - 1] : a === 0 ? r : void 0;
197
+ if (!o) return;
198
+ e.preventDefault(), o.focus();
199
+ } else if (!i || !l || e.shiftKey) return;
200
+ else (e.key === " " || e.key === "x") && s ? (e.preventDefault(), l.disabled || ke(l.id)) : e.key === "Enter" ? (e.preventDefault(), l.disabled || o?.(l)) : e.key === "Escape" && s && L.size && z(/* @__PURE__ */ new Set());
201
+ }, $ = L.size > 0;
202
+ E(() => {
203
+ let e = document.activeElement;
204
+ $ && e instanceof HTMLElement && U.current?.contains(e) && ce(e, W.current);
205
+ }, [$]);
206
+ let Me = (e, t) => e.kind === "header" ? /* @__PURE__ */ k(me, {
207
+ title: e.group.title,
208
+ glyph: e.group.glyph,
209
+ count: e.group.count ?? e.group.items.length,
210
+ collapsed: B.has(e.group.id),
211
+ onToggle: () => {
212
+ let t = new Set(B);
213
+ t.has(e.group.id) ? t.delete(e.group.id) : t.add(e.group.id), de(t);
214
+ },
215
+ onAdd: e.group.onAdd,
216
+ addLabel: e.group.addLabel,
217
+ actions: e.group.actions,
218
+ indent: !!s,
219
+ first: t === 0,
220
+ index: t,
221
+ active: t === Ee,
222
+ onFocus: () => H(t)
223
+ }, e.key) : /* @__PURE__ */ k(pe, {
224
+ index: t,
225
+ item: e.item,
226
+ depth: e.depth,
227
+ lastChild: e.lastChild,
228
+ idWidth: u,
229
+ density: d,
230
+ wrapSubtitle: m,
231
+ narrow: G,
232
+ dated: q,
233
+ active: t === Ee,
234
+ selected: L.has(e.item.id),
235
+ selectable: !!s,
236
+ selecting: $,
237
+ onSelect: () => ke(e.item.id),
238
+ onOpen: () => o?.(e.item),
239
+ onFocus: () => H(t),
240
+ ...j && t === ye ? { "data-force": j } : {}
241
+ }, e.key);
242
+ return /* @__PURE__ */ k(R.Provider, {
243
+ value: xe,
244
+ children: /* @__PURE__ */ A("div", {
245
+ ref: (e) => {
246
+ U.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
247
+ },
248
+ role: "grid",
249
+ "aria-label": T,
250
+ "aria-rowcount": K.length ? K.length + +!!xe : void 0,
251
+ "aria-multiselectable": s || void 0,
252
+ "aria-busy": b || void 0,
253
+ onKeyDown: (e) => {
254
+ X(), je(e);
255
+ },
256
+ onPointerEnter: X,
257
+ onPointerDown: X,
258
+ onFocus: (e) => {
259
+ if (X(), !e.currentTarget.contains(e.target)) return;
260
+ let t = Number(e.target.closest("[role=row]")?.querySelector("[data-index]")?.dataset.index), n = K[t];
261
+ Q.current = n ? {
262
+ key: n.key,
263
+ index: t
264
+ } : null;
265
+ },
266
+ onBlur: (e) => {
267
+ e.currentTarget.contains(e.target) && !e.relatedTarget && (Q.current = null);
268
+ },
269
+ onWheel: X,
270
+ className: e("relative flex flex-col outline-none", N && "overflow-hidden rounded-group bg-raised shadow-xs first:mt-16", w),
271
+ children: [
272
+ b && (J || K.length === 0) ? /* @__PURE__ */ k(ue, {
273
+ density: d,
274
+ grouped: !!i
275
+ }) : J && x ? /* @__PURE__ */ k("div", {
276
+ role: "row",
277
+ children: /* @__PURE__ */ k("div", {
278
+ role: "gridcell",
279
+ children: be ? f(fe(S, d, G, N, P), x) : x
280
+ })
281
+ }) : null,
282
+ xe && /* @__PURE__ */ k(se, {
283
+ headings: a,
284
+ dated: q || be && S.date !== !1,
285
+ selectable: !!s,
286
+ ruled: !i
287
+ }),
288
+ b && (J || K.length === 0) || J && x ? null : Y && Z ? /* @__PURE__ */ k(Z, {
289
+ count: K.length,
290
+ estimateSize: Ce,
291
+ getScrollElement: () => p(U.current),
292
+ scrollTo: Te,
293
+ row: (e) => Me(K[e], e),
294
+ measure: G
295
+ }) : Y ? /* @__PURE__ */ k(le, {
296
+ count: K.length,
297
+ estimateSize: Ce,
298
+ row: (e) => Me(K[e], e)
299
+ }) : K.map(Me),
300
+ s && $ && y && /* @__PURE__ */ k(he, {
301
+ ref: W,
302
+ count: L.size,
303
+ onClear: () => z(/* @__PURE__ */ new Set()),
304
+ children: v
305
+ })
306
+ ]
307
+ })
308
+ });
309
+ });
310
+ process.env.NODE_ENV !== "production" && (L.displayName = "List");
311
+ var R = /* @__PURE__ */ x(!1);
312
+ function se({ headings: t, dated: i, selectable: a, ruled: o }) {
313
+ let s = n(), c = r();
314
+ return /* @__PURE__ */ k("div", {
315
+ role: "row",
316
+ "aria-rowindex": 1,
317
+ className: s || c ? "px-0" : "px-gutter",
318
+ children: /* @__PURE__ */ A("div", {
319
+ className: e("flex h-32 items-center gap-12 text-small text-fg-tertiary", s ? "px-20" : "px-12", o && !s && "row-rule"),
320
+ children: [
321
+ a && /* @__PURE__ */ k("span", {
322
+ "aria-hidden": !0,
323
+ className: "size-18 shrink-0"
324
+ }),
325
+ /* @__PURE__ */ k("span", {
326
+ role: "columnheader",
327
+ className: "min-w-0 flex-1 truncate",
328
+ children: t.title
329
+ }),
330
+ t.meta && /* @__PURE__ */ k("span", {
331
+ role: "columnheader",
332
+ className: "flex shrink-0 items-center gap-6",
333
+ children: t.meta
334
+ }),
335
+ i && /* @__PURE__ */ k("span", {
336
+ role: "columnheader",
337
+ className: "shrink-0 text-right whitespace-nowrap",
338
+ style: { minWidth: "max(112px, var(--k-list-date, 0px))" },
339
+ children: t.date
340
+ })
341
+ ]
342
+ })
343
+ });
344
+ }
345
+ function z(e, t) {
346
+ return t ? e ? "bg-raised-pressed controls-on-fill hover:raised-selected-hover active:raised-selected-hover" : "bg-fill-2 controls-on-fill hover:bg-fill-3 active:bg-fill-3" : e ? "hover:bg-raised-hover hover:controls-on-fill active:bg-raised-pressed" : "hover:bg-fill-1 hover:controls-on-fill active:bg-fill-2";
347
+ }
348
+ function ce(e, t) {
349
+ let n = t?.firstElementChild?.getBoundingClientRect().top;
350
+ if (n === void 0) return;
351
+ let r = e.getBoundingClientRect().bottom + 8 - n;
352
+ r > 0 && p(e)?.scrollBy({ top: r });
353
+ }
354
+ function le({ count: e, estimateSize: t, row: n }) {
355
+ let r = b() ? 1024 : window.innerHeight, i = [], a = 0, o = 12;
356
+ for (let s = 0; s < e; s++) {
357
+ if (a >= r && o-- <= 0) {
358
+ for (let n = s; n < e; n++) a += t(n);
359
+ break;
360
+ }
361
+ i.push(/* @__PURE__ */ k("div", {
362
+ role: "presentation",
363
+ className: "absolute top-0 left-0 w-full",
364
+ style: { transform: `translateY(${Math.round(a)}px)` },
365
+ children: n(s)
366
+ }, s)), a += t(s);
367
+ }
368
+ return /* @__PURE__ */ k("div", {
369
+ role: "presentation",
370
+ className: "relative w-full",
371
+ style: { height: a },
372
+ children: i
373
+ });
374
+ }
375
+ function ue({ density: t, grouped: n }) {
376
+ let i = r();
377
+ return /* @__PURE__ */ A("div", {
378
+ role: "presentation",
379
+ children: [n && /* @__PURE__ */ k("div", {
380
+ role: "presentation",
381
+ className: i ? "px-0" : "px-gutter",
382
+ children: /* @__PURE__ */ k("div", {
383
+ className: "flex h-36 items-center px-12",
384
+ children: /* @__PURE__ */ k(u, {
385
+ shape: "line",
386
+ className: "w-80"
387
+ })
388
+ })
389
+ }), [
390
+ 62,
391
+ 48,
392
+ 70,
393
+ 54,
394
+ 40,
395
+ 58
396
+ ].map((n, r) => /* @__PURE__ */ k("div", {
397
+ role: "presentation",
398
+ className: i ? "px-0" : "px-gutter",
399
+ children: /* @__PURE__ */ A("div", {
400
+ className: e("flex items-center gap-12 px-12", P.density[t].classes),
401
+ children: [
402
+ /* @__PURE__ */ k(u, {
403
+ shape: "line",
404
+ className: "min-w-0",
405
+ style: { width: `${n}%` }
406
+ }),
407
+ /* @__PURE__ */ k("span", { className: "flex-1" }),
408
+ /* @__PURE__ */ k(u, {
409
+ shape: "line",
410
+ className: "w-64 shrink-0"
411
+ })
412
+ ]
413
+ })
414
+ }, r))]
415
+ });
416
+ }
417
+ var B = [
418
+ 136,
419
+ 176,
420
+ 112,
421
+ 160,
422
+ 128,
423
+ 184,
424
+ 104,
425
+ 152,
426
+ 120,
427
+ 168
428
+ ], de = [
429
+ 184,
430
+ 128,
431
+ 216,
432
+ 152,
433
+ 200,
434
+ 120,
435
+ 168,
436
+ 232,
437
+ 144,
438
+ 192
439
+ ];
440
+ function V({ w: t, faint: n }) {
441
+ return /* @__PURE__ */ k("span", {
442
+ className: e("h-8 shrink-0 rounded-bar", n ? "bg-fill-1" : "bg-fill-2"),
443
+ style: { width: t }
444
+ });
445
+ }
446
+ function fe(t, n, r, i, a) {
447
+ let o = i ? 3 : 10;
448
+ return B.slice(0, o).map((s, c) => /* @__PURE__ */ k("div", {
449
+ "aria-hidden": !0,
450
+ className: i ? e(c > 0 && "hairline-t") : a ? "" : "px-gutter",
451
+ style: { opacity: d(c, o) },
452
+ children: /* @__PURE__ */ A("div", {
453
+ className: e("flex items-center gap-12", i ? "h-48 px-20" : e("px-12 row-rule", P.density[n].classes)),
454
+ children: [
455
+ t.leading && /* @__PURE__ */ k("span", { className: "size-20 shrink-0 rounded-avatar bg-fill-1" }),
456
+ /* @__PURE__ */ k(V, { w: r ? s * .75 : s }),
457
+ t.subtitle !== !1 && !r && /* @__PURE__ */ k(V, {
458
+ w: de[c],
459
+ faint: !0
460
+ }),
461
+ /* @__PURE__ */ k("span", { className: "flex-1" }),
462
+ !r && Array.from({ length: t.meta ?? 0 }, (e, t) => /* @__PURE__ */ k("span", { className: "h-20 w-48 shrink-0 rounded-code bg-fill-1" }, t)),
463
+ t.date !== !1 && /* @__PURE__ */ k("span", {
464
+ className: "flex shrink-0 justify-end",
465
+ style: { minWidth: r ? 0 : "max(112px, var(--k-list-date, 0px))" },
466
+ children: /* @__PURE__ */ k(V, { w: 56 + c % 3 * 8 })
467
+ })
468
+ ]
469
+ })
470
+ }, c));
471
+ }
472
+ var pe = /* @__PURE__ */ S(function({ item: i, index: a, depth: o = 0, lastChild: s, idWidth: u, density: d = "default", wrapSubtitle: f = !1, narrow: ee = !1, dated: p = !1, active: h, selected: g, selectable: _, selecting: v, onSelect: b, onOpen: x, onFocus: S, "data-force": C }, T) {
473
+ let E = n(), te = r(), D = y(), O = w(R), j = ee && !!(i.meta || i.date), M = (E || j) && !!i.subtitle, ne = M && f, F = !!i.disabled, I = i.avatar && /* @__PURE__ */ k("span", {
474
+ className: e("flex shrink-0", F && "opacity-50"),
475
+ children: i.avatar
476
+ });
477
+ return /* @__PURE__ */ k("div", {
478
+ role: "row",
479
+ "aria-rowindex": a === void 0 ? void 0 : a + (O ? 2 : 1),
480
+ className: E ? e("px-0", a !== void 0 && a > 0 && "hairline-t") : te ? "px-0" : "px-gutter",
481
+ children: /* @__PURE__ */ A("div", {
482
+ ref: T,
483
+ role: "gridcell",
484
+ "aria-selected": _ ? !!g : void 0,
485
+ "aria-disabled": F || void 0,
486
+ "data-index": a,
487
+ "data-row": "",
488
+ tabIndex: h === !1 ? -1 : 0,
489
+ onFocus: S,
490
+ onClick: (e) => {
491
+ e.currentTarget.contains(e.target) && !e.target.closest("button, a, [role=checkbox]") && (m(e.currentTarget) || (v && _ ? b?.() : x?.()));
492
+ },
493
+ ...C ? { "data-force": C } : {},
494
+ className: e("group/row relative flex cursor-pointer items-center gap-12 text-body transition-control focus-ring-inset", E ? "px-20" : "px-12 row-rule", M || j || ne ? "min-h-56 py-8" : E && d === "default" ? "h-48" : P.density[d].classes, z(E, !!g), F && "pointer-events-none text-fg-disabled"),
495
+ children: [
496
+ _ && /* @__PURE__ */ k("span", {
497
+ className: e("flex shrink-0 transition-control select-none", v || g ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-focus-visible/row:opacity-100 coarse:opacity-100"),
498
+ onClick: (e) => e.stopPropagation(),
499
+ children: /* @__PURE__ */ k(N, {
500
+ checked: !!g,
501
+ onToggle: () => b?.(),
502
+ "aria-label": D("list.selectItem", "Select {name}", { name: i.textValue ?? (typeof i.title == "string" ? i.title : i.id) })
503
+ })
504
+ }),
505
+ o === 1 && /* @__PURE__ */ A("span", {
506
+ "aria-hidden": !0,
507
+ className: "relative -ml-4 h-full w-16 shrink-0 self-stretch",
508
+ children: [/* @__PURE__ */ k("span", { className: e("absolute left-6 w-1 bg-line-strong forced-line", s ? "top-0 h-1/2" : "inset-y-0") }), /* @__PURE__ */ k("span", { className: "absolute top-1/2 left-6 h-1 w-10 bg-line-strong forced-line" })]
509
+ }),
510
+ i.glyph && /* @__PURE__ */ k("span", {
511
+ className: e("flex size-16 shrink-0 items-center justify-center", F && "opacity-50"),
512
+ children: i.glyph
513
+ }),
514
+ i.leading && /* @__PURE__ */ k("span", {
515
+ className: e("-mr-4 flex shrink-0", M && "self-start", F && "opacity-50"),
516
+ children: i.leading
517
+ }),
518
+ i.displayId && /* @__PURE__ */ k(l, {
519
+ className: e("shrink-0 mono text-small tabular", F ? "text-fg-disabled" : g ? "text-fg-secondary" : "text-fg-tertiary", u && re[u]),
520
+ children: i.displayId
521
+ }),
522
+ /* @__PURE__ */ A("span", {
523
+ className: e("flex min-w-0 flex-1", j ? "flex-col items-stretch gap-4" : "contents"),
524
+ children: [/* @__PURE__ */ A("span", {
525
+ className: e(j ? e("grid min-w-0 items-start gap-y-2", i.actions || I ? "grid-cols-row-actions gap-x-8" : "grid-cols-1") : "contents"),
526
+ children: [/* @__PURE__ */ A("span", {
527
+ className: e(j && M ? "contents" : e("flex min-w-0 flex-1", M ? "flex-col items-start gap-2" : "items-baseline gap-8")),
528
+ children: [typeof i.title == "string" ? /* @__PURE__ */ k(c, {
529
+ truncate: !0,
530
+ weight: "medium",
531
+ tone: F ? "inherit" : "default",
532
+ className: e("min-w-0 shrink", M && "max-w-full"),
533
+ children: i.title
534
+ }) : /* @__PURE__ */ k("span", {
535
+ className: e("min-w-0 truncate font-medium", F ? "text-inherit" : "text-fg", M && "max-w-full"),
536
+ children: i.title
537
+ }), i.subtitle && /* @__PURE__ */ k(l, {
538
+ wrap: ne,
539
+ className: e("min-w-0", F ? "text-fg-disabled" : "text-fg-secondary", M ? "max-w-full text-small" : "flex-1 basis-0", j && (i.actions || I) && "col-span-2"),
540
+ children: i.subtitle
541
+ })]
542
+ }), j && (i.actions || I) && /* @__PURE__ */ A("span", {
543
+ className: "col-start-2 row-start-1 flex h-24 shrink-0 items-center gap-2",
544
+ children: [i.actions, I]
545
+ })]
546
+ }), j && /* @__PURE__ */ A("span", {
547
+ className: "flex min-h-24 min-w-0 flex-wrap items-center gap-x-8",
548
+ children: [i.meta && /* @__PURE__ */ k("span", {
549
+ className: e("flex min-w-0 max-w-full items-center gap-6 overflow-hidden", F && "opacity-50"),
550
+ children: i.meta
551
+ }), i.date && /* @__PURE__ */ k("span", {
552
+ className: e("shrink-0 text-small whitespace-nowrap", t(i.date), F ? "text-fg-disabled" : "text-fg-secondary"),
553
+ children: i.date
554
+ })]
555
+ })]
556
+ }),
557
+ !j && (i.meta || i.actions) && /* @__PURE__ */ A("span", {
558
+ className: "relative flex shrink-0 items-center gap-6",
559
+ children: [/* @__PURE__ */ k("span", {
560
+ className: e("flex items-center gap-6", i.actions && "transition-control group-hover/row:opacity-0 group-focus-within/row:opacity-0", F && "opacity-50"),
561
+ children: i.meta
562
+ }), i.actions && /* @__PURE__ */ k("span", {
563
+ className: e("flex items-center gap-2 opacity-0 transition-control group-hover/row:opacity-100 group-focus-within/row:opacity-100 coarse:opacity-100", i.meta && "absolute inset-y-0 right-0 coarse:static"),
564
+ children: i.actions
565
+ })]
566
+ }),
567
+ !j && (i.date || p) && /* @__PURE__ */ k("span", {
568
+ className: e("shrink-0 text-right text-small whitespace-nowrap", t(i.date), F ? "text-fg-disabled" : "text-fg-secondary"),
569
+ style: { minWidth: "max(112px, var(--k-list-date, 0px))" },
570
+ children: /* @__PURE__ */ k("span", {
571
+ "data-list-date": "",
572
+ children: i.date
573
+ })
574
+ }),
575
+ !j && I
576
+ ]
577
+ })
578
+ });
579
+ });
580
+ process.env.NODE_ENV !== "production" && (pe.displayName = "ListRow");
581
+ var me = /* @__PURE__ */ S(function({ title: t, glyph: a, count: o, collapsed: c, onToggle: l, onAdd: u, addLabel: d, actions: f, indent: ee, first: p, index: m, active: h, onFocus: g }, _) {
582
+ let v = n(), b = r(), x = y(), S = w(R);
583
+ return /* @__PURE__ */ k("div", {
584
+ ref: _,
585
+ role: "row",
586
+ "aria-rowindex": m === void 0 ? void 0 : m + (S ? 2 : 1),
587
+ onFocus: g,
588
+ className: v ? e("group/gh bg-fill-1", !p && "hairline-t") : e("group/gh", !p && "pt-16", b ? "px-0" : "px-gutter"),
589
+ children: /* @__PURE__ */ A("div", {
590
+ role: "gridcell",
591
+ className: e("flex h-36 items-center gap-4", v && "pr-12 pl-8"),
592
+ children: [
593
+ /* @__PURE__ */ A("button", {
594
+ type: "button",
595
+ "aria-expanded": !c,
596
+ "data-index": m,
597
+ tabIndex: h === !1 ? -1 : 0,
598
+ onClick: l,
599
+ className: e("relative flex h-28 min-w-0 cursor-pointer items-center gap-8 rounded-pill px-12 text-small transition-control focus-ring tap-target", v ? "hover:bg-fill-2 active:bg-fill-3" : "hover:bg-fill-1 active:bg-fill-2"),
600
+ children: [
601
+ ee && !v && /* @__PURE__ */ k("span", {
602
+ "aria-hidden": !0,
603
+ className: "w-22 shrink-0"
604
+ }),
605
+ a && /* @__PURE__ */ k("span", {
606
+ className: "flex size-16 items-center justify-center",
607
+ children: a
608
+ }),
609
+ /* @__PURE__ */ k("span", {
610
+ className: "truncate font-medium text-fg-secondary",
611
+ children: t
612
+ }),
613
+ o !== void 0 && /* @__PURE__ */ k("span", {
614
+ className: "text-fg-tertiary tabular",
615
+ children: o
616
+ }),
617
+ /* @__PURE__ */ k("svg", {
618
+ viewBox: "0 0 8 8",
619
+ "aria-hidden": !0,
620
+ className: e("size-10 text-fg-tertiary transition-transform duration-180 ease-move", !c && "rotate-90"),
621
+ children: /* @__PURE__ */ k("path", {
622
+ d: "M2.5 1.5 5.5 4l-3 2.5z",
623
+ fill: "currentColor"
624
+ })
625
+ })
626
+ ]
627
+ }),
628
+ /* @__PURE__ */ k("span", { className: "flex-1" }),
629
+ f && /* @__PURE__ */ k("span", {
630
+ className: "flex shrink-0 items-center gap-4",
631
+ children: f
632
+ }),
633
+ u && /* @__PURE__ */ k("span", {
634
+ className: "flex opacity-0 transition-control group-hover/gh:opacity-100 group-focus-within/gh:opacity-100 coarse:opacity-100",
635
+ children: /* @__PURE__ */ k(s, {
636
+ variant: "ghost",
637
+ icon: i,
638
+ "aria-label": d ?? x("list.add", "Add"),
639
+ size: "xs",
640
+ onClick: u
641
+ })
642
+ })
643
+ ]
644
+ })
645
+ });
646
+ });
647
+ process.env.NODE_ENV !== "production" && (me.displayName = "GroupHeader");
648
+ var he = /* @__PURE__ */ S(function({ count: e, onClear: t, children: n }, r) {
649
+ let i = g(), s = y();
650
+ return b() ? null : j(/* @__PURE__ */ k("div", {
651
+ ref: r,
652
+ role: "region",
653
+ "aria-label": s("list.selection", "Selection"),
654
+ className: "pointer-events-none fixed right-0 bottom-24 left-0 z-50 flex justify-center px-16",
655
+ children: /* @__PURE__ */ A("div", {
656
+ className: "pointer-events-auto flex min-h-44 items-center gap-4 rounded-pill bg-toast py-6 pr-6 pl-16 text-body font-medium text-toast-fg shadow-toast popup-motion",
657
+ children: [
658
+ /* @__PURE__ */ k("span", {
659
+ className: "pr-8 tabular",
660
+ children: s("list.selected", "{count} selected", { count: String(e) })
661
+ }),
662
+ /* @__PURE__ */ k("span", {
663
+ className: "mr-4 h-20 w-1 bg-toast-action",
664
+ "aria-hidden": !0
665
+ }),
666
+ n,
667
+ /* @__PURE__ */ k("button", {
668
+ type: "button",
669
+ onClick: t,
670
+ "aria-label": s("list.clearSelection", "Clear selection"),
671
+ className: "inline-flex size-32 cursor-pointer items-center justify-center rounded-pill text-toast-fg-secondary transition-control hover:bg-toast-action hover:text-toast-fg focus-ring",
672
+ children: /* @__PURE__ */ k(o, {
673
+ icon: a,
674
+ size: "sm"
675
+ })
676
+ })
677
+ ]
678
+ })
679
+ }), i ?? document.body);
680
+ });
681
+ process.env.NODE_ENV !== "production" && (he.displayName = "SelectionBar");
682
+ var H = /* @__PURE__ */ S(function({ children: t, onClick: n, icon: r, danger: i }, a) {
683
+ return /* @__PURE__ */ A("button", {
684
+ ref: a,
685
+ type: "button",
686
+ onClick: n,
687
+ className: e("inline-flex h-32 cursor-pointer items-center gap-6 rounded-pill px-12 text-body font-medium transition-control hover:bg-toast-action focus-ring", i ? "text-toast-danger" : "text-toast-fg", r && "pl-10"),
688
+ children: [r && /* @__PURE__ */ k(o, {
689
+ icon: r,
690
+ size: "sm",
691
+ className: i ? void 0 : "text-toast-fg-secondary"
692
+ }), t]
693
+ });
694
+ });
695
+ process.env.NODE_ENV !== "production" && (H.displayName = "SelectionAction");
696
+ export { H as i, P as n, L as r, F as t };
697
+
698
+ //# sourceMappingURL=list-zQrK77Dx.js.map