@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
@@ -1,596 +0,0 @@
1
- "use client";
2
- import { t as e } from "./cn-DQJRk8Ly.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-BGgbhXWJ.js";
8
- import { n as s } from "./button-IDx51cLu.js";
9
- import { r as c } from "./text-BXZOSAHk.js";
10
- import { t as l } from "./truncated-xRd8D8kf.js";
11
- import { r as u } from "./skeleton-4vjHa9pE.js";
12
- import { n as d, r as f, t as p } from "./selects-text-kRMTsm4s.js";
13
- import { n as m } from "./use-layout-width-DbMAv4mR.js";
14
- import { r as h } from "./portal-context-Z2xSIPsc.js";
15
- import { l as g, o as _ } from "./tooltip-D8DF9Pe6.js";
16
- import { a as v } from "./context-B2nNL7Im.js";
17
- import { t as y } from "./use-hydrating-Dth8POSk.js";
18
- import { forwardRef as b, useCallback as x, useEffect as S, useLayoutEffect as C, useMemo as w, useRef as T, useState as E } from "react";
19
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
20
- import { createPortal as k } from "react-dom";
21
- // src/components/list/row-checkbox.tsx
22
- var A = /* @__PURE__ */ _(() => import("./checkbox-CzHNM_1C.js").then((e) => e.c), { base: () => import.meta.url });
23
- function ee({ checked: t, onToggle: n, "aria-label": r }) {
24
- let [i, a] = g(A, !0), [o, s] = E(!1), [c, l] = E(!1);
25
- return S(() => {
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__ */ D(i.CheckboxBox, {
34
- checked: t,
35
- onCheckedChange: n,
36
- "aria-label": r
37
- }) : /* @__PURE__ */ D("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__ */ D("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 j = /* @__PURE__ */ _(() => import("./virtual-rows-D-ZT6V6B.js"), { base: () => import.meta.url }), M = { density: {
58
- default: { classes: "h-44" },
59
- compact: { classes: "h-36 coarse:h-44" }
60
- } }, N = { density: "default" }, P = {
61
- 48: "w-48",
62
- 64: "w-64",
63
- 80: "w-80",
64
- 96: "w-96",
65
- 120: "w-120"
66
- }, F = 520, I = "a[href], button, input, select, textarea, [tabindex], [contenteditable=true]", L = "input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]";
67
- function te(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(I)) n !== e && n.getAttribute("tabindex") !== "-1" && n.setAttribute("tabindex", "-1");
71
- }
72
- }
73
- var R = /* @__PURE__ */ b(function({ items: t, groups: r, onOpen: i, selectable: a, selected: o, onSelectedChange: s, idWidth: c, density: l = "default", wrapSubtitle: u = !1, virtualizeAbove: p = 100, selectionActions: h, selectionBar: _ = !0, loading: v, empty: y, className: b, "aria-label": S, "data-force-row": k }, A) {
74
- let ee = n(), [M, N] = E(/* @__PURE__ */ new Set()), P = o ?? M, R = x((e) => {
75
- o || N(e), s?.(e);
76
- }, [o, s]), [z, B] = E(() => new Set((r ?? []).filter((e) => e.defaultCollapsed).map((e) => e.id))), [V, H] = E(-1), [ce, le] = E(null), U = T(null), W = T(null), ue = m(U), G = !!ue && ue < F, K = w(() => {
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 r ? r.flatMap((t) => [{
91
- kind: "header",
92
- group: t,
93
- key: `h-${t.id}`
94
- }, ...z.has(t.id) ? [] : e(t.items)]) : e(t ?? []);
95
- }, [
96
- t,
97
- r,
98
- z
99
- ]), de = K.findIndex((e) => e.kind === "row"), q = K.some((e) => e.kind === "row" && e.item.date !== void 0), fe = r ? r.every((e) => e.items.length === 0) : (t ?? []).length === 0, J = K.length > p, pe = d(), me = (e) => K[e]?.kind === "header" ? e === 0 ? 36 : 52 : G ? 64 : l === "compact" && !pe ? 36 : 44, [he, Y] = g(j, J), X = he?.VirtualRows, ge = T(null);
100
- V >= K.length && H(-1);
101
- let _e = V >= 0 ? V : K.length ? 0 : -1, Z = (e) => {
102
- H(e), J && ge.current?.(e);
103
- let t = () => U.current?.querySelector(`[data-index="${e}"]`), n = (e) => {
104
- e && (e.focus(), ne(e, W.current));
105
- }, r = t();
106
- r ? n(r) : requestAnimationFrame(() => n(t()));
107
- }, Q = T(null);
108
- C(() => {
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 Z(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 && Z(t) : n.contains(document.activeElement) && performance.now() < r && requestAnimationFrame(i);
117
- };
118
- requestAnimationFrame(i);
119
- }), C(() => {
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 ve = T(!!X);
148
- C(() => {
149
- X && !ve.current && V >= 0 && document.activeElement === document.body && U.current?.querySelector(`[data-index="${V}"]`)?.focus(), ve.current = !!X;
150
- }), C(() => {
151
- let e = U.current;
152
- if (!e) return;
153
- te(e);
154
- let t = new MutationObserver(() => te(e));
155
- return t.observe(e, {
156
- subtree: !0,
157
- childList: !0,
158
- attributes: !0,
159
- attributeFilter: ["tabindex"]
160
- }), () => t.disconnect();
161
- }, []);
162
- let ye = (e) => {
163
- let t = new Set(P);
164
- t.has(e) ? t.delete(e) : t.add(e), R(t);
165
- }, be = (e) => e.flatMap((e) => e.kind === "row" && !e.item.disabled ? [e.item.id] : []), xe = (e) => {
166
- let t = e.target;
167
- if (!e.currentTarget.contains(t) || t.closest(L)) return;
168
- let n = t.closest("[role=row]"), r = n?.querySelector("[data-index]");
169
- if (!n || !r) return;
170
- let o = t === r;
171
- if (e.key === "Escape" && !o && !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 s = Number(r.dataset.index), c = K[s], l = c?.kind === "row" ? c.item : void 0;
177
- if (e.altKey) return;
178
- if (e.metaKey || e.ctrlKey) {
179
- e.key.toLowerCase() === "a" && a && !e.shiftKey && (e.preventDefault(), R(new Set(be(K))));
180
- return;
181
- }
182
- let u = (t) => {
183
- if (e.preventDefault(), e.shiftKey && a) {
184
- let e = ce ?? s;
185
- le(e);
186
- let n = new Set(P);
187
- be(K.slice(Math.min(e, t), Math.max(e, t) + 1)).forEach((e) => n.add(e)), R(n);
188
- } else le(null);
189
- Z(t);
190
- }, d = () => [...n.querySelectorAll(I)].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, s + 1));
192
- else if (e.key === "ArrowUp" || e.key === "k" && !e.shiftKey) u(Math.max(0, s - 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(), i = o ? -1 : n.indexOf(t), a = e.key === "ArrowRight" ? n[i + 1] : i > 0 ? n[i - 1] : i === 0 ? r : void 0;
197
- if (!a) return;
198
- e.preventDefault(), a.focus();
199
- } else if (!o || !l || e.shiftKey) return;
200
- else (e.key === " " || e.key === "x") && a ? (e.preventDefault(), l.disabled || ye(l.id)) : e.key === "Enter" ? (e.preventDefault(), l.disabled || i?.(l)) : e.key === "Escape" && a && P.size && R(/* @__PURE__ */ new Set());
201
- }, $ = P.size > 0;
202
- C(() => {
203
- let e = document.activeElement;
204
- $ && e instanceof HTMLElement && U.current?.contains(e) && ne(e, W.current);
205
- }, [$]);
206
- let Se = (e, t) => e.kind === "header" ? /* @__PURE__ */ D(oe, {
207
- title: e.group.title,
208
- glyph: e.group.glyph,
209
- count: e.group.count ?? e.group.items.length,
210
- collapsed: z.has(e.group.id),
211
- onToggle: () => {
212
- let t = new Set(z);
213
- t.has(e.group.id) ? t.delete(e.group.id) : t.add(e.group.id), B(t);
214
- },
215
- onAdd: e.group.onAdd,
216
- addLabel: e.group.addLabel,
217
- actions: e.group.actions,
218
- indent: !!a,
219
- first: t === 0,
220
- index: t,
221
- active: t === _e,
222
- onFocus: () => H(t)
223
- }, e.key) : /* @__PURE__ */ D(ae, {
224
- index: t,
225
- item: e.item,
226
- depth: e.depth,
227
- lastChild: e.lastChild,
228
- idWidth: c,
229
- density: l,
230
- wrapSubtitle: u,
231
- narrow: G,
232
- dated: q,
233
- active: t === _e,
234
- selected: P.has(e.item.id),
235
- selectable: !!a,
236
- selecting: $,
237
- onSelect: () => ye(e.item.id),
238
- onOpen: () => i?.(e.item),
239
- onFocus: () => H(t),
240
- ...k && t === de ? { "data-force": k } : {}
241
- }, e.key);
242
- return /* @__PURE__ */ O("div", {
243
- ref: (e) => {
244
- U.current = e, typeof A == "function" ? A(e) : A && (A.current = e);
245
- },
246
- role: "grid",
247
- "aria-label": S,
248
- "aria-rowcount": K.length || void 0,
249
- "aria-multiselectable": a || void 0,
250
- "aria-busy": v || void 0,
251
- onKeyDown: (e) => {
252
- Y(), xe(e);
253
- },
254
- onPointerEnter: Y,
255
- onPointerDown: Y,
256
- onFocus: (e) => {
257
- if (Y(), !e.currentTarget.contains(e.target)) return;
258
- let t = Number(e.target.closest("[role=row]")?.querySelector("[data-index]")?.dataset.index), n = K[t];
259
- Q.current = n ? {
260
- key: n.key,
261
- index: t
262
- } : null;
263
- },
264
- onBlur: (e) => {
265
- e.currentTarget.contains(e.target) && !e.relatedTarget && (Q.current = null);
266
- },
267
- onWheel: Y,
268
- className: e("relative flex flex-col outline-none", ee && "overflow-hidden rounded-group bg-raised shadow-xs first:mt-16", b),
269
- children: [v && (fe || K.length === 0) ? /* @__PURE__ */ D(ie, {
270
- density: l,
271
- grouped: !!r
272
- }) : fe && y ? /* @__PURE__ */ D("div", {
273
- role: "row",
274
- children: /* @__PURE__ */ D("div", {
275
- role: "gridcell",
276
- children: y
277
- })
278
- }) : J && X ? /* @__PURE__ */ D(X, {
279
- count: K.length,
280
- estimateSize: me,
281
- getScrollElement: () => f(U.current),
282
- scrollTo: ge,
283
- row: (e) => Se(K[e], e),
284
- measure: G
285
- }) : J ? /* @__PURE__ */ D(re, {
286
- count: K.length,
287
- estimateSize: me,
288
- row: (e) => Se(K[e], e)
289
- }) : K.map(Se), a && $ && _ && /* @__PURE__ */ D(se, {
290
- ref: W,
291
- count: P.size,
292
- onClear: () => R(/* @__PURE__ */ new Set()),
293
- children: h
294
- })]
295
- });
296
- });
297
- process.env.NODE_ENV !== "production" && (R.displayName = "List");
298
- function z(e, t) {
299
- 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";
300
- }
301
- function ne(e, t) {
302
- let n = t?.firstElementChild?.getBoundingClientRect().top;
303
- if (n === void 0) return;
304
- let r = e.getBoundingClientRect().bottom + 8 - n;
305
- r > 0 && f(e)?.scrollBy({ top: r });
306
- }
307
- function re({ count: e, estimateSize: t, row: n }) {
308
- let r = y() ? 1024 : window.innerHeight, i = [], a = 0, o = 12;
309
- for (let s = 0; s < e; s++) {
310
- if (a >= r && o-- <= 0) {
311
- for (let n = s; n < e; n++) a += t(n);
312
- break;
313
- }
314
- i.push(/* @__PURE__ */ D("div", {
315
- role: "presentation",
316
- className: "absolute top-0 left-0 w-full",
317
- style: { transform: `translateY(${Math.round(a)}px)` },
318
- children: n(s)
319
- }, s)), a += t(s);
320
- }
321
- return /* @__PURE__ */ D("div", {
322
- role: "presentation",
323
- className: "relative w-full",
324
- style: { height: a },
325
- children: i
326
- });
327
- }
328
- function ie({ density: t, grouped: n }) {
329
- let i = r();
330
- return /* @__PURE__ */ O("div", {
331
- role: "presentation",
332
- children: [n && /* @__PURE__ */ D("div", {
333
- role: "presentation",
334
- className: i ? "px-0" : "px-24",
335
- children: /* @__PURE__ */ D("div", {
336
- className: "flex h-36 items-center px-12",
337
- children: /* @__PURE__ */ D(u, {
338
- shape: "line",
339
- className: "w-80"
340
- })
341
- })
342
- }), [
343
- 62,
344
- 48,
345
- 70,
346
- 54,
347
- 40,
348
- 58
349
- ].map((n, r) => /* @__PURE__ */ D("div", {
350
- role: "presentation",
351
- className: i ? "px-0" : "px-24",
352
- children: /* @__PURE__ */ O("div", {
353
- className: e("flex items-center gap-12 px-12", M.density[t].classes),
354
- children: [
355
- /* @__PURE__ */ D(u, {
356
- shape: "line",
357
- className: "min-w-0",
358
- style: { width: `${n}%` }
359
- }),
360
- /* @__PURE__ */ D("span", { className: "flex-1" }),
361
- /* @__PURE__ */ D(u, {
362
- shape: "line",
363
- className: "w-64 shrink-0"
364
- })
365
- ]
366
- })
367
- }, r))]
368
- });
369
- }
370
- var ae = /* @__PURE__ */ b(function({ item: i, index: a, depth: o = 0, lastChild: s, idWidth: u, density: d = "default", wrapSubtitle: f = !1, narrow: m = !1, dated: h = !1, active: g, selected: _, selectable: y, selecting: b, onSelect: x, onOpen: S, onFocus: C, "data-force": w }, T) {
371
- let E = n(), k = r(), A = v(), j = m && !!(i.meta || i.date), N = (E || j) && !!i.subtitle, F = N && f, I = !!i.disabled, L = i.avatar && /* @__PURE__ */ D("span", {
372
- className: e("flex shrink-0", I && "opacity-50"),
373
- children: i.avatar
374
- });
375
- return /* @__PURE__ */ D("div", {
376
- role: "row",
377
- "aria-rowindex": a === void 0 ? void 0 : a + 1,
378
- className: E ? e("px-0", a !== void 0 && a > 0 && "hairline-t") : k ? "px-0" : "px-24",
379
- children: /* @__PURE__ */ O("div", {
380
- ref: T,
381
- role: "gridcell",
382
- "aria-selected": y ? !!_ : void 0,
383
- "aria-disabled": I || void 0,
384
- "data-index": a,
385
- "data-row": "",
386
- tabIndex: g === !1 ? -1 : 0,
387
- onFocus: C,
388
- onClick: (e) => {
389
- e.currentTarget.contains(e.target) && !e.target.closest("button, a, [role=checkbox]") && (p(e.currentTarget) || (b && y ? x?.() : S?.()));
390
- },
391
- ...w ? { "data-force": w } : {},
392
- 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", N || j || F ? "min-h-56 py-8" : E && d === "default" ? "h-48" : M.density[d].classes, z(E, !!_), I && "pointer-events-none text-fg-disabled"),
393
- children: [
394
- y && /* @__PURE__ */ D("span", {
395
- className: e("flex shrink-0 transition-control select-none", b || _ ? "opacity-100" : "opacity-0 group-hover/row:opacity-100 group-focus-visible/row:opacity-100 coarse:opacity-100"),
396
- onClick: (e) => e.stopPropagation(),
397
- children: /* @__PURE__ */ D(ee, {
398
- checked: !!_,
399
- onToggle: () => x?.(),
400
- "aria-label": A("list.selectItem", "Select {name}", { name: i.textValue ?? (typeof i.title == "string" ? i.title : i.id) })
401
- })
402
- }),
403
- o === 1 && /* @__PURE__ */ O("span", {
404
- "aria-hidden": !0,
405
- className: "relative -ml-4 h-full w-16 shrink-0 self-stretch",
406
- children: [/* @__PURE__ */ D("span", { className: e("absolute left-6 w-1 bg-line-strong forced-line", s ? "top-0 h-1/2" : "inset-y-0") }), /* @__PURE__ */ D("span", { className: "absolute top-1/2 left-6 h-1 w-10 bg-line-strong forced-line" })]
407
- }),
408
- i.glyph && /* @__PURE__ */ D("span", {
409
- className: e("flex size-16 shrink-0 items-center justify-center", I && "opacity-50"),
410
- children: i.glyph
411
- }),
412
- i.leading && /* @__PURE__ */ D("span", {
413
- className: e("-mr-4 flex shrink-0", N && "self-start", I && "opacity-50"),
414
- children: i.leading
415
- }),
416
- i.displayId && /* @__PURE__ */ D(l, {
417
- className: e("shrink-0 mono text-small tabular", I ? "text-fg-disabled" : _ ? "text-fg-secondary" : "text-fg-tertiary", u && P[u]),
418
- children: i.displayId
419
- }),
420
- /* @__PURE__ */ O("span", {
421
- className: e("flex min-w-0 flex-1", j ? "flex-col items-stretch gap-4" : "contents"),
422
- children: [/* @__PURE__ */ O("span", {
423
- className: e(j ? e("grid min-w-0 items-start gap-y-2", i.actions || L ? "grid-cols-row-actions gap-x-8" : "grid-cols-1") : "contents"),
424
- children: [/* @__PURE__ */ O("span", {
425
- className: e(j && N ? "contents" : e("flex min-w-0 flex-1", N ? "flex-col items-start gap-2" : "items-baseline gap-8")),
426
- children: [typeof i.title == "string" ? /* @__PURE__ */ D(c, {
427
- truncate: !0,
428
- weight: "medium",
429
- tone: I ? "inherit" : "default",
430
- className: e("min-w-0 shrink", N && "max-w-full"),
431
- children: i.title
432
- }) : /* @__PURE__ */ D("span", {
433
- className: e("min-w-0 truncate font-medium", I ? "text-inherit" : "text-fg", N && "max-w-full"),
434
- children: i.title
435
- }), i.subtitle && /* @__PURE__ */ D(l, {
436
- wrap: F,
437
- className: e("min-w-0", I ? "text-fg-disabled" : "text-fg-secondary", N ? "max-w-full text-small" : "flex-1 basis-0", j && (i.actions || L) && "col-span-2"),
438
- children: i.subtitle
439
- })]
440
- }), j && (i.actions || L) && /* @__PURE__ */ O("span", {
441
- className: "col-start-2 row-start-1 flex h-24 shrink-0 items-center gap-2",
442
- children: [i.actions, L]
443
- })]
444
- }), j && /* @__PURE__ */ O("span", {
445
- className: "flex min-h-24 min-w-0 flex-wrap items-center gap-x-8",
446
- children: [i.meta && /* @__PURE__ */ D("span", {
447
- className: e("flex min-w-0 max-w-full items-center gap-6 overflow-hidden", I && "opacity-50"),
448
- children: i.meta
449
- }), i.date && /* @__PURE__ */ D("span", {
450
- className: e("shrink-0 text-small whitespace-nowrap", t(i.date), I ? "text-fg-disabled" : "text-fg-secondary"),
451
- children: i.date
452
- })]
453
- })]
454
- }),
455
- !j && (i.meta || i.actions) && /* @__PURE__ */ O("span", {
456
- className: "relative flex shrink-0 items-center gap-6",
457
- children: [/* @__PURE__ */ D("span", {
458
- className: e("flex items-center gap-6", i.actions && "transition-control group-hover/row:opacity-0 group-focus-within/row:opacity-0", I && "opacity-50"),
459
- children: i.meta
460
- }), i.actions && /* @__PURE__ */ D("span", {
461
- 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"),
462
- children: i.actions
463
- })]
464
- }),
465
- !j && (i.date || h) && /* @__PURE__ */ D("span", {
466
- className: e("shrink-0 text-right text-small whitespace-nowrap", t(i.date), I ? "text-fg-disabled" : "text-fg-secondary"),
467
- style: { minWidth: "max(112px, var(--k-list-date, 0px))" },
468
- children: /* @__PURE__ */ D("span", {
469
- "data-list-date": "",
470
- children: i.date
471
- })
472
- }),
473
- !j && L
474
- ]
475
- })
476
- });
477
- });
478
- process.env.NODE_ENV !== "production" && (ae.displayName = "ListRow");
479
- var oe = /* @__PURE__ */ b(function({ title: t, glyph: a, count: o, collapsed: c, onToggle: l, onAdd: u, addLabel: d, actions: f, indent: p, first: m, index: h, active: g, onFocus: _ }, y) {
480
- let b = n(), x = r(), S = v();
481
- return /* @__PURE__ */ D("div", {
482
- ref: y,
483
- role: "row",
484
- "aria-rowindex": h === void 0 ? void 0 : h + 1,
485
- onFocus: _,
486
- className: b ? e("group/gh bg-fill-1", !m && "hairline-t") : e("group/gh", !m && "pt-16", x ? "px-0" : "px-24"),
487
- children: /* @__PURE__ */ O("div", {
488
- role: "gridcell",
489
- className: e("flex h-36 items-center gap-4", b && "pr-12 pl-8"),
490
- children: [
491
- /* @__PURE__ */ O("button", {
492
- type: "button",
493
- "aria-expanded": !c,
494
- "data-index": h,
495
- tabIndex: g === !1 ? -1 : 0,
496
- onClick: l,
497
- 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", b ? "hover:bg-fill-2 active:bg-fill-3" : "hover:bg-fill-1 active:bg-fill-2"),
498
- children: [
499
- p && !b && /* @__PURE__ */ D("span", {
500
- "aria-hidden": !0,
501
- className: "w-22 shrink-0"
502
- }),
503
- a && /* @__PURE__ */ D("span", {
504
- className: "flex size-16 items-center justify-center",
505
- children: a
506
- }),
507
- /* @__PURE__ */ D("span", {
508
- className: "truncate font-medium text-fg-secondary",
509
- children: t
510
- }),
511
- o !== void 0 && /* @__PURE__ */ D("span", {
512
- className: "text-fg-tertiary tabular",
513
- children: o
514
- }),
515
- /* @__PURE__ */ D("svg", {
516
- viewBox: "0 0 8 8",
517
- "aria-hidden": !0,
518
- className: e("size-10 text-fg-tertiary transition-transform duration-180 ease-move", !c && "rotate-90"),
519
- children: /* @__PURE__ */ D("path", {
520
- d: "M2.5 1.5 5.5 4l-3 2.5z",
521
- fill: "currentColor"
522
- })
523
- })
524
- ]
525
- }),
526
- /* @__PURE__ */ D("span", { className: "flex-1" }),
527
- f && /* @__PURE__ */ D("span", {
528
- className: "flex shrink-0 items-center gap-4",
529
- children: f
530
- }),
531
- u && /* @__PURE__ */ D("span", {
532
- className: "flex opacity-0 transition-control group-hover/gh:opacity-100 group-focus-within/gh:opacity-100 coarse:opacity-100",
533
- children: /* @__PURE__ */ D(s, {
534
- variant: "ghost",
535
- icon: i,
536
- "aria-label": d ?? S("list.add", "Add"),
537
- size: "xs",
538
- onClick: u
539
- })
540
- })
541
- ]
542
- })
543
- });
544
- });
545
- process.env.NODE_ENV !== "production" && (oe.displayName = "GroupHeader");
546
- var se = /* @__PURE__ */ b(function({ count: e, onClear: t, children: n }, r) {
547
- let i = h(), s = v();
548
- return y() ? null : k(/* @__PURE__ */ D("div", {
549
- ref: r,
550
- role: "region",
551
- "aria-label": s("list.selection", "Selection"),
552
- className: "pointer-events-none fixed right-0 bottom-24 left-0 z-50 flex justify-center px-16",
553
- children: /* @__PURE__ */ O("div", {
554
- 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",
555
- children: [
556
- /* @__PURE__ */ D("span", {
557
- className: "pr-8 tabular",
558
- children: s("list.selected", "{count} selected", { count: String(e) })
559
- }),
560
- /* @__PURE__ */ D("span", {
561
- className: "mr-4 h-20 w-1 bg-toast-action",
562
- "aria-hidden": !0
563
- }),
564
- n,
565
- /* @__PURE__ */ D("button", {
566
- type: "button",
567
- onClick: t,
568
- "aria-label": s("list.clearSelection", "Clear selection"),
569
- 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",
570
- children: /* @__PURE__ */ D(o, {
571
- icon: a,
572
- size: "sm"
573
- })
574
- })
575
- ]
576
- })
577
- }), i ?? document.body);
578
- });
579
- process.env.NODE_ENV !== "production" && (se.displayName = "SelectionBar");
580
- var B = /* @__PURE__ */ b(function({ children: t, onClick: n, icon: r, danger: i }, a) {
581
- return /* @__PURE__ */ O("button", {
582
- ref: a,
583
- type: "button",
584
- onClick: n,
585
- 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"),
586
- children: [r && /* @__PURE__ */ D(o, {
587
- icon: r,
588
- size: "sm",
589
- className: i ? void 0 : "text-toast-fg-secondary"
590
- }), t]
591
- });
592
- });
593
- process.env.NODE_ENV !== "production" && (B.displayName = "SelectionAction");
594
- export { B as i, M as n, R as r, N as t };
595
-
596
- //# sourceMappingURL=list-D40s-Q7V.js.map