@logicplanes/kaeso-ui 0.7.5-rc.9 → 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 (279) hide show
  1. package/AGENTS.md +2 -2
  2. package/ai/component-guides.md +37 -8
  3. package/ai/component-registry.json +19 -12
  4. package/ai/component-registry.md +10 -9
  5. package/ai/icons.md +1 -1
  6. package/ai/tokens.md +1 -1
  7. package/dist/chunks/{app-frame-DPIr7C6C.js → app-frame-COfWg7wS.js} +3 -3
  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-C4r7x_uJ.js.map +1 -1
  11. package/dist/chunks/avatar-CQNbSj8X.js.map +1 -1
  12. package/dist/chunks/badge-CU9K-wA1.js.map +1 -1
  13. package/dist/chunks/banner-R5GIFExf.js.map +1 -1
  14. package/dist/chunks/button-CXdEDVSI.js.map +1 -1
  15. package/dist/chunks/button-group-CbzjByVu.js.map +1 -1
  16. package/dist/chunks/calendar-BpY2J5Qf.js.map +1 -1
  17. package/dist/chunks/{checkbox-6GPT3xkr.js → checkbox-D2MWvFlH.js} +2 -2
  18. package/dist/chunks/checkbox-D2MWvFlH.js.map +1 -0
  19. package/dist/chunks/cn-Cim5WXyu.js.map +1 -1
  20. package/dist/chunks/code-CGPiBqzu.js.map +1 -1
  21. package/dist/chunks/code-block-Dkedqh94.js.map +1 -1
  22. package/dist/chunks/{code-block-DYODgIka.js → code-block-RYsP7P22.js} +2 -2
  23. package/dist/chunks/code-block-RYsP7P22.js.map +1 -0
  24. package/dist/chunks/collapsible-BwQBF1wX.js.map +1 -1
  25. package/dist/chunks/{combobox-DkWaZ-v_.js → combobox-DlIGL6fh.js} +3 -3
  26. package/dist/chunks/combobox-DlIGL6fh.js.map +1 -0
  27. package/dist/chunks/{command-list-98lB5cP5.js → command-list-D7wBlyDt.js} +3 -3
  28. package/dist/chunks/command-list-D7wBlyDt.js.map +1 -0
  29. package/dist/chunks/{command-palette-BoL0MoxB.js → command-palette-DhHS-XXz.js} +3 -3
  30. package/dist/chunks/command-palette-DhHS-XXz.js.map +1 -0
  31. package/dist/chunks/context-B2nNL7Im.js.map +1 -1
  32. package/dist/chunks/copy-button-BjfGRgZi.js.map +1 -1
  33. package/dist/chunks/{core-Dtlb6S1k.js → core-DZ_ZGFjd.js} +6 -6
  34. package/dist/chunks/core-DZ_ZGFjd.js.map +1 -0
  35. package/dist/chunks/dashboard-BOeVNKwA.js.map +1 -1
  36. package/dist/chunks/{data-table-CoiHkxAQ.js → data-table-DLqzrTF8.js} +254 -222
  37. package/dist/chunks/data-table-DLqzrTF8.js.map +1 -0
  38. package/dist/chunks/date-picker-CiLNpsSh.js.map +1 -1
  39. package/dist/chunks/date-popup-Bp0d8U6H.js.map +1 -1
  40. package/dist/chunks/{de-CdlagGzS.js → de-BsTWV__5.js} +5 -4
  41. package/dist/chunks/de-BsTWV__5.js.map +1 -0
  42. package/dist/chunks/delta-Dspg6LP2.js.map +1 -1
  43. package/dist/chunks/dev-CRNODF1J.js.map +1 -1
  44. package/dist/chunks/dialog-wy5nNxfE.js.map +1 -1
  45. package/dist/chunks/disclosure-CmuBms1J.js.map +1 -1
  46. package/dist/chunks/{display-options-DSUfHF5n.js → display-options-CPo4Pn5F.js} +2 -2
  47. package/dist/chunks/display-options-CPo4Pn5F.js.map +1 -0
  48. package/dist/chunks/{domain-CyQb3nHF.js → domain-Cfyk1vCK.js} +3 -3
  49. package/dist/chunks/{domain-CyQb3nHF.js.map → domain-Cfyk1vCK.js.map} +1 -1
  50. package/dist/chunks/empty-JZwT3C6e.js +81 -0
  51. package/dist/chunks/empty-JZwT3C6e.js.map +1 -0
  52. package/dist/chunks/field-DG61eK8Z.js.map +1 -1
  53. package/dist/chunks/figure-BI0eP7S-.js.map +1 -1
  54. package/dist/chunks/figures-D_Tsrwwj.js.map +1 -1
  55. package/dist/chunks/{filter-chip-DE2j5Vyj.js → filter-chip-DY-gZVYb.js} +4 -4
  56. package/dist/chunks/filter-chip-DY-gZVYb.js.map +1 -0
  57. package/dist/chunks/filter-row-CPO_SEYy.js.map +1 -1
  58. package/dist/chunks/flow-B8DRLw6-.js.map +1 -1
  59. package/dist/chunks/formatters-Be5AdLB2.js.map +1 -1
  60. package/dist/chunks/heading-CkCOztRO.js.map +1 -1
  61. package/dist/chunks/icon-B9UXhFTF.js.map +1 -1
  62. package/dist/chunks/icon-DOwC1bbC.js.map +1 -1
  63. package/dist/chunks/identity-CAvHnogN.js.map +1 -1
  64. package/dist/chunks/input-6tVIiN3-.js.map +1 -1
  65. package/dist/chunks/input-BVheeeEI.js.map +1 -1
  66. package/dist/chunks/input-group-ClNtr_Gm.js.map +1 -1
  67. package/dist/chunks/inset-BTAjcK6a.js.map +1 -1
  68. package/dist/chunks/iso-field-C29xji-V.js.map +1 -1
  69. package/dist/chunks/json-view-BVTEkhgz.js.map +1 -1
  70. package/dist/chunks/{kaeso-MWzqLOiV.js → kaeso-CaMYkbqJ.js} +5 -5
  71. package/dist/chunks/kaeso-CaMYkbqJ.js.map +1 -0
  72. package/dist/chunks/kaeso-theme-C9rnRKq2.js.map +1 -1
  73. package/dist/chunks/kbd-CmhJfU_8.js.map +1 -1
  74. package/dist/chunks/key-value-tPKtCSOn.js.map +1 -1
  75. package/dist/chunks/labelled-DJa09XRF.js.map +1 -1
  76. package/dist/chunks/linear-scale-B5A7yNr7.js.map +1 -1
  77. package/dist/chunks/link-CZ1h1ksk.js.map +1 -1
  78. package/dist/chunks/link-provider-DSF9bbO3.js.map +1 -1
  79. package/dist/chunks/list-zQrK77Dx.js +698 -0
  80. package/dist/chunks/list-zQrK77Dx.js.map +1 -0
  81. package/dist/chunks/loader-BbKL8cW_.js.map +1 -1
  82. package/dist/chunks/loader-DBk2HCOh.js.map +1 -1
  83. package/dist/chunks/logo-DqjYySTX.js.map +1 -1
  84. package/dist/chunks/{markdown-BCG1Kkph.js → markdown-Ds1mSbGa.js} +2 -2
  85. package/dist/chunks/markdown-Ds1mSbGa.js.map +1 -0
  86. package/dist/chunks/{menu-DT4G6X7s.js → menu-CKlz_Dp4.js} +2 -2
  87. package/dist/chunks/menu-CKlz_Dp4.js.map +1 -0
  88. package/dist/chunks/merge-refs-SiVVoQsO.js.map +1 -1
  89. package/dist/chunks/message-DpD9D1Dj.js.map +1 -1
  90. package/dist/chunks/{meter-D_c3jawb.js → meter-d2wMKjVU.js} +2 -2
  91. package/dist/chunks/meter-d2wMKjVU.js.map +1 -0
  92. package/dist/chunks/{nav-sheet-DuqCp7cS.js → nav-sheet--ycVeOvo.js} +2 -2
  93. package/dist/chunks/nav-sheet--ycVeOvo.js.map +1 -0
  94. package/dist/chunks/nav-wordmark-CPDxGU5t.js.map +1 -1
  95. package/dist/chunks/observe-resize-Bubv5_wX.js.map +1 -1
  96. package/dist/chunks/option-checkbox-wA9L8Nxo.js.map +1 -1
  97. package/dist/chunks/over-sheet-CMUXcIMV.js.map +1 -1
  98. package/dist/chunks/{page-header-B6lKcMlr.js → page-header-DRi-hKtt.js} +4 -4
  99. package/dist/chunks/page-header-DRi-hKtt.js.map +1 -0
  100. package/dist/chunks/pagination-DvPIXuoj.js.map +1 -1
  101. package/dist/chunks/{picker-popover-6ISVxMYv.js → picker-popover-B-zhsNiS.js} +3 -3
  102. package/dist/chunks/picker-popover-B-zhsNiS.js.map +1 -0
  103. package/dist/chunks/popover-Dw7iTUNg.js.map +1 -1
  104. package/dist/chunks/popover-root-BI54wuLi.js.map +1 -1
  105. package/dist/chunks/portal-context-Z2xSIPsc.js.map +1 -1
  106. package/dist/chunks/provider-marks-DmonWRb5.js.map +1 -1
  107. package/dist/chunks/qr-code-ClT_2Xa9.js.map +1 -1
  108. package/dist/chunks/radio-DJES13fj.js.map +1 -1
  109. package/dist/chunks/range-popup-CiCBpRfH.js.map +1 -1
  110. package/dist/chunks/reasoning-frame-DnTFGrD_.js.map +1 -1
  111. package/dist/chunks/{release-art-CgszffGH.js → release-art-CQjO2Ewv.js} +2 -2
  112. package/dist/chunks/release-art-CQjO2Ewv.js.map +1 -0
  113. package/dist/chunks/resize-motion-CMR1x5Kw.js.map +1 -1
  114. package/dist/chunks/{rights-BKkbkESE.js → rights-B0LWKkB2.js} +117 -111
  115. package/dist/chunks/rights-B0LWKkB2.js.map +1 -0
  116. package/dist/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
  117. package/dist/chunks/rolling-number-uNjki3hn.js.map +1 -1
  118. package/dist/chunks/row-control-DlHLdthx.js.map +1 -1
  119. package/dist/chunks/safe-href-CWHpspUx.js.map +1 -1
  120. package/dist/chunks/scroll-area-CjokFhH6.js.map +1 -1
  121. package/dist/chunks/section-DJgejMMh.js.map +1 -1
  122. package/dist/chunks/segmented-UnR1L-kk.js.map +1 -1
  123. package/dist/chunks/{select-CvpwZaeF.js → select-BDwDI8L3.js} +2 -2
  124. package/dist/chunks/select-BDwDI8L3.js.map +1 -0
  125. package/dist/chunks/selects-text-CYQ11JVI.js +46 -0
  126. package/dist/chunks/selects-text-CYQ11JVI.js.map +1 -0
  127. package/dist/chunks/separator-3RcDNFzM.js.map +1 -1
  128. package/dist/chunks/settings-CcNjQm1D.js.map +1 -1
  129. package/dist/chunks/sheet-CsN1uy5N.js.map +1 -1
  130. package/dist/chunks/shiki-Drii10ai.js.map +1 -1
  131. package/dist/chunks/{sidebar-5-2Nqm-H.js → sidebar-Cz0KdApZ.js} +2 -2
  132. package/dist/chunks/sidebar-Cz0KdApZ.js.map +1 -0
  133. package/dist/chunks/{sidebar-menu-D0y3wpvD.js → sidebar-menu-CTaQhVTv.js} +2 -2
  134. package/dist/chunks/sidebar-menu-CTaQhVTv.js.map +1 -0
  135. package/dist/chunks/skeleton-GuivuiOP.js.map +1 -1
  136. package/dist/chunks/slider-XvStaacJ.js.map +1 -1
  137. package/dist/chunks/stat-BJ4otTGc.js.map +1 -1
  138. package/dist/chunks/status-BkW_rVAX.js.map +1 -1
  139. package/dist/chunks/{styles-CN0ovMB2.js → styles-BsZZml1H.js} +2 -2
  140. package/dist/chunks/{styles-CN0ovMB2.js.map → styles-BsZZml1H.js.map} +1 -1
  141. package/dist/chunks/swap-text-Crb3uzrK.js.map +1 -1
  142. package/dist/chunks/swap-value-BKrH58Iv.js.map +1 -1
  143. package/dist/chunks/switch-CzmZ6gLD.js.map +1 -1
  144. package/dist/chunks/table-ppZE7fYt.js.map +1 -1
  145. package/dist/chunks/tabs-DPA2zGfY.js.map +1 -1
  146. package/dist/chunks/tag-CnULig9p.js.map +1 -1
  147. package/dist/chunks/text-BC4rusw7.js.map +1 -1
  148. package/dist/chunks/textarea-K4ojoshs.js.map +1 -1
  149. package/dist/chunks/theme-image-C9p959Kv.js.map +1 -1
  150. package/dist/chunks/{theme-menu-CanR1L9T.js → theme-menu-Bm8d9ooS.js} +2 -2
  151. package/dist/chunks/theme-menu-Bm8d9ooS.js.map +1 -0
  152. package/dist/chunks/theme-provider-DaD8hlXu.js.map +1 -1
  153. package/dist/chunks/thumbnail-CUa0JXLG.js.map +1 -1
  154. package/dist/chunks/thumbnail-KtBHleQk.js.map +1 -1
  155. package/dist/chunks/timeline-hMJEN3ZB.js.map +1 -1
  156. package/dist/chunks/{timeseries-B1h0RRhx.js → timeseries-BUL9zITH.js} +5 -5
  157. package/dist/chunks/timeseries-BUL9zITH.js.map +1 -0
  158. package/dist/chunks/toast-4PyK7GS1.js.map +1 -1
  159. package/dist/chunks/toc-CUh8jCiJ.js.map +1 -1
  160. package/dist/chunks/toolbar-w3ZPxEoW.js.map +1 -1
  161. package/dist/chunks/tooltip-D0jdTWyX.js.map +1 -1
  162. package/dist/chunks/{tooltip-iKeKjr7J.js → tooltip-DpUVorD8.js} +3 -3
  163. package/dist/chunks/tooltip-DpUVorD8.js.map +1 -0
  164. package/dist/chunks/tooltip-root-Ka27-TrV.js.map +1 -1
  165. package/dist/chunks/tooltip-uRgNOzW_.js.map +1 -1
  166. package/dist/chunks/truncated-CcpJk_3e.js.map +1 -1
  167. package/dist/chunks/use-controllable-rN5Fg5EJ.js.map +1 -1
  168. package/dist/chunks/use-copy-DtUCUOlR.js.map +1 -1
  169. package/dist/chunks/use-cut-off-Cx1Nn5uF.js.map +1 -1
  170. package/dist/chunks/use-delayed-loading-Chh5dI7E.js.map +1 -1
  171. package/dist/chunks/use-hydrating-Dth8POSk.js.map +1 -1
  172. package/dist/chunks/use-indicator-C1pEv290.js.map +1 -1
  173. package/dist/chunks/use-layout-width-DbMAv4mR.js.map +1 -1
  174. package/dist/chunks/use-scroll-fade-BwpKEWY0.js.map +1 -1
  175. package/dist/chunks/use-scroll-margin-LcRbT78-.js.map +1 -1
  176. package/dist/chunks/use-truncated-Dn60-ubK.js.map +1 -1
  177. package/dist/chunks/use-utc-while-hydrating-PP48Tcfz.js.map +1 -1
  178. package/dist/chunks/virtual-rows-D-ZT6V6B.js.map +1 -1
  179. package/dist/chunks/visually-hidden-Di2pLhE3.js.map +1 -1
  180. package/dist/chunks/when-idle-DXKwyOLB.js.map +1 -1
  181. package/dist/chunks/{zh-CN-BjoJbfdJ.js → zh-CN-C4aFUWpC.js} +2 -1
  182. package/dist/chunks/{zh-CN-BjoJbfdJ.js.map → zh-CN-C4aFUWpC.js.map} +1 -1
  183. package/dist/components/app-frame.js +1 -1
  184. package/dist/components/charts/bar.js +5 -5
  185. package/dist/components/charts/bar.js.map +1 -1
  186. package/dist/components/charts/donut.js +2 -2
  187. package/dist/components/charts/donut.js.map +1 -1
  188. package/dist/components/charts/heatmap.js +2 -2
  189. package/dist/components/charts/heatmap.js.map +1 -1
  190. package/dist/components/charts/sankey.js +3 -3
  191. package/dist/components/charts/sankey.js.map +1 -1
  192. package/dist/components/charts/sparkline.js +1 -1
  193. package/dist/components/charts/sparkline.js.map +1 -1
  194. package/dist/components/charts/swatches.js.map +1 -1
  195. package/dist/components/charts/timeseries.js +1 -1
  196. package/dist/components/charts.js +2 -2
  197. package/dist/components/checkbox.js +1 -1
  198. package/dist/components/code-block.js +1 -1
  199. package/dist/components/combobox.js +1 -1
  200. package/dist/components/command-palette.js +1 -1
  201. package/dist/components/dashboard/about-header.js.map +1 -1
  202. package/dist/components/dashboard/legend.js.map +1 -1
  203. package/dist/components/dashboard/metric-tabs.js.map +1 -1
  204. package/dist/components/dashboard/model-card.js.map +1 -1
  205. package/dist/components/dashboard/rank-list.js +13 -5
  206. package/dist/components/dashboard/rank-list.js.map +1 -1
  207. package/dist/components/data-table.js +1 -1
  208. package/dist/components/display-options.js +1 -1
  209. package/dist/components/empty.js +1 -1
  210. package/dist/components/filter-chip.js +1 -1
  211. package/dist/components/flow-canvas.js +4 -4
  212. package/dist/components/flow-canvas.js.map +1 -1
  213. package/dist/components/kaeso/conversation.js +1 -1
  214. package/dist/components/kaeso/conversation.js.map +1 -1
  215. package/dist/components/kaeso/moments.js.map +1 -1
  216. package/dist/components/kaeso/rights.js +1 -1
  217. package/dist/components/kaeso/usage.js +3 -3
  218. package/dist/components/kaeso/usage.js.map +1 -1
  219. package/dist/components/kaeso.js +2 -2
  220. package/dist/components/list.js +1 -1
  221. package/dist/components/markdown.js +1 -1
  222. package/dist/components/menu.js +2 -2
  223. package/dist/components/meter.js +1 -1
  224. package/dist/components/page-header.js +1 -1
  225. package/dist/components/playground.js +6 -6
  226. package/dist/components/playground.js.map +1 -1
  227. package/dist/components/release-art.js +1 -1
  228. package/dist/components/select.js +1 -1
  229. package/dist/components/sidebar.js +1 -1
  230. package/dist/components/theme-menu.js +1 -1
  231. package/dist/format.js.map +1 -1
  232. package/dist/i18n-locales.js.map +1 -1
  233. package/dist/i18n-provider.js +1 -1
  234. package/dist/i18n-provider.js.map +1 -1
  235. package/dist/index.js +23 -23
  236. package/dist/kaeso.css +36 -4
  237. package/dist/styles.css +1 -1
  238. package/dist/types/components/empty/empty.d.ts +10 -8
  239. package/dist/types/components/empty/ghost.d.ts +9 -0
  240. package/dist/types/components/list/docs.d.ts +1 -0
  241. package/dist/types/components/list/index.d.ts +1 -1
  242. package/dist/types/components/list/list.d.ts +12 -0
  243. package/foundations/icons.md +1 -1
  244. package/foundations/motion.md +2 -2
  245. package/foundations/psychology.md +1 -1
  246. package/foundations/writing.md +2 -2
  247. package/package.json +10 -10
  248. package/dist/chunks/app-frame-DPIr7C6C.js.map +0 -1
  249. package/dist/chunks/checkbox-6GPT3xkr.js.map +0 -1
  250. package/dist/chunks/code-block-DYODgIka.js.map +0 -1
  251. package/dist/chunks/combobox-DkWaZ-v_.js.map +0 -1
  252. package/dist/chunks/command-list-98lB5cP5.js.map +0 -1
  253. package/dist/chunks/command-palette-BoL0MoxB.js.map +0 -1
  254. package/dist/chunks/core-Dtlb6S1k.js.map +0 -1
  255. package/dist/chunks/data-table-CoiHkxAQ.js.map +0 -1
  256. package/dist/chunks/de-CdlagGzS.js.map +0 -1
  257. package/dist/chunks/display-options-DSUfHF5n.js.map +0 -1
  258. package/dist/chunks/empty-DsN9jTVb.js +0 -83
  259. package/dist/chunks/empty-DsN9jTVb.js.map +0 -1
  260. package/dist/chunks/filter-chip-DE2j5Vyj.js.map +0 -1
  261. package/dist/chunks/kaeso-MWzqLOiV.js.map +0 -1
  262. package/dist/chunks/list-Bq7vGhxI.js +0 -643
  263. package/dist/chunks/list-Bq7vGhxI.js.map +0 -1
  264. package/dist/chunks/markdown-BCG1Kkph.js.map +0 -1
  265. package/dist/chunks/menu-DT4G6X7s.js.map +0 -1
  266. package/dist/chunks/meter-D_c3jawb.js.map +0 -1
  267. package/dist/chunks/nav-sheet-DuqCp7cS.js.map +0 -1
  268. package/dist/chunks/page-header-B6lKcMlr.js.map +0 -1
  269. package/dist/chunks/picker-popover-6ISVxMYv.js.map +0 -1
  270. package/dist/chunks/release-art-CgszffGH.js.map +0 -1
  271. package/dist/chunks/rights-BKkbkESE.js.map +0 -1
  272. package/dist/chunks/select-CvpwZaeF.js.map +0 -1
  273. package/dist/chunks/selects-text-kRMTsm4s.js +0 -32
  274. package/dist/chunks/selects-text-kRMTsm4s.js.map +0 -1
  275. package/dist/chunks/sidebar-5-2Nqm-H.js.map +0 -1
  276. package/dist/chunks/sidebar-menu-D0y3wpvD.js.map +0 -1
  277. package/dist/chunks/theme-menu-CanR1L9T.js.map +0 -1
  278. package/dist/chunks/timeseries-B1h0RRhx.js.map +0 -1
  279. package/dist/chunks/tooltip-iKeKjr7J.js.map +0 -1
@@ -1,643 +0,0 @@
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 { 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-uRgNOzW_.js";
16
- import { a as v } from "./context-B2nNL7Im.js";
17
- import { t as y } from "./use-hydrating-Dth8POSk.js";
18
- import { createContext as b, forwardRef as x, useCallback as ee, useContext as S, useEffect as C, useLayoutEffect as w, useMemo as te, 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-6GPT3xkr.js").then((e) => e.c), { base: () => import.meta.url });
23
- function ne({ checked: t, onToggle: n, "aria-label": r }) {
24
- let [i, a] = g(A, !0), [o, s] = E(!1), [c, l] = E(!1);
25
- return C(() => {
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 re(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__ */ x(function({ items: t, groups: r, headings: i, onOpen: a, selectable: o, selected: s, onSelectedChange: c, idWidth: l, density: u = "default", wrapSubtitle: p = !1, virtualizeAbove: h = 100, selectionActions: _, selectionBar: v = !0, loading: y, empty: b, className: x, "aria-label": S, "data-force-row": C }, k) {
74
- let A = n(), [ne, M] = E(/* @__PURE__ */ new Set()), N = s ?? ne, P = ee((e) => {
75
- s || M(e), c?.(e);
76
- }, [s, c]), [R, ae] = E(() => new Set((r ?? []).filter((e) => e.defaultCollapsed).map((e) => e.id))), [B, V] = E(-1), [fe, pe] = E(null), H = T(null), U = T(null), me = m(H), W = !!me && me < F, G = 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 r ? r.flatMap((t) => [{
91
- kind: "header",
92
- group: t,
93
- key: `h-${t.id}`
94
- }, ...R.has(t.id) ? [] : e(t.items)]) : e(t ?? []);
95
- }, [
96
- t,
97
- r,
98
- R
99
- ]), he = G.findIndex((e) => e.kind === "row"), K = G.some((e) => e.kind === "row" && e.item.date !== void 0), q = r ? r.every((e) => e.items.length === 0) : (t ?? []).length === 0, ge = !!i && !W && !q, J = G.length > h, _e = d(), ve = (e) => G[e]?.kind === "header" ? e === 0 ? 36 : 52 : W ? 64 : u === "compact" && !_e ? 36 : 44, [ye, Y] = g(j, J), X = ye?.VirtualRows, be = T(null);
100
- B >= G.length && V(-1);
101
- let xe = B >= 0 ? B : G.length ? 0 : -1, Se = (e) => {
102
- V(e), J && be.current?.(e);
103
- let t = () => H.current?.querySelector(`[data-index="${e}"]`), n = (e) => {
104
- e && (e.focus(), oe(e, U.current));
105
- }, r = t();
106
- r ? n(r) : requestAnimationFrame(() => n(t()));
107
- }, Z = T(null);
108
- w(() => {
109
- let e = Z.current;
110
- if (!e || G.some((t) => t.key === e.key) || (Z.current = null, !G.length)) return;
111
- let t = Math.min(e.index, G.length - 1);
112
- if (document.activeElement === document.body) return Se(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 ? H.current?.isConnected && Se(t) : n.contains(document.activeElement) && performance.now() < r && requestAnimationFrame(i);
117
- };
118
- requestAnimationFrame(i);
119
- }), w(() => {
120
- let e = H.current;
121
- if (!e) return;
122
- if (W || !K) {
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
- G,
144
- W,
145
- K
146
- ]);
147
- let Ce = T(!!X);
148
- w(() => {
149
- X && !Ce.current && B >= 0 && document.activeElement === document.body && H.current?.querySelector(`[data-index="${B}"]`)?.focus(), Ce.current = !!X;
150
- }), w(() => {
151
- let e = H.current;
152
- if (!e) return;
153
- re(e);
154
- let t = new MutationObserver(() => re(e));
155
- return t.observe(e, {
156
- subtree: !0,
157
- childList: !0,
158
- attributes: !0,
159
- attributeFilter: ["tabindex"]
160
- }), () => t.disconnect();
161
- }, []);
162
- let we = (e) => {
163
- let t = new Set(N);
164
- t.has(e) ? t.delete(e) : t.add(e), P(t);
165
- }, Te = (e) => e.flatMap((e) => e.kind === "row" && !e.item.disabled ? [e.item.id] : []), Ee = (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 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 s = Number(r.dataset.index), c = G[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" && o && !e.shiftKey && (e.preventDefault(), P(new Set(Te(G))));
180
- return;
181
- }
182
- let u = (t) => {
183
- if (e.preventDefault(), e.shiftKey && o) {
184
- let e = fe ?? s;
185
- pe(e);
186
- let n = new Set(N);
187
- Te(G.slice(Math.min(e, t), Math.max(e, t) + 1)).forEach((e) => n.add(e)), P(n);
188
- } else pe(null);
189
- Se(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(G.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(G.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") && o ? (e.preventDefault(), l.disabled || we(l.id)) : e.key === "Enter" ? (e.preventDefault(), l.disabled || a?.(l)) : e.key === "Escape" && o && N.size && P(/* @__PURE__ */ new Set());
201
- }, Q = N.size > 0;
202
- w(() => {
203
- let e = document.activeElement;
204
- Q && e instanceof HTMLElement && H.current?.contains(e) && oe(e, U.current);
205
- }, [Q]);
206
- let $ = (e, t) => e.kind === "header" ? /* @__PURE__ */ D(ue, {
207
- title: e.group.title,
208
- glyph: e.group.glyph,
209
- count: e.group.count ?? e.group.items.length,
210
- collapsed: R.has(e.group.id),
211
- onToggle: () => {
212
- let t = new Set(R);
213
- t.has(e.group.id) ? t.delete(e.group.id) : t.add(e.group.id), ae(t);
214
- },
215
- onAdd: e.group.onAdd,
216
- addLabel: e.group.addLabel,
217
- actions: e.group.actions,
218
- indent: !!o,
219
- first: t === 0,
220
- index: t,
221
- active: t === xe,
222
- onFocus: () => V(t)
223
- }, e.key) : /* @__PURE__ */ D(le, {
224
- index: t,
225
- item: e.item,
226
- depth: e.depth,
227
- lastChild: e.lastChild,
228
- idWidth: l,
229
- density: u,
230
- wrapSubtitle: p,
231
- narrow: W,
232
- dated: K,
233
- active: t === xe,
234
- selected: N.has(e.item.id),
235
- selectable: !!o,
236
- selecting: Q,
237
- onSelect: () => we(e.item.id),
238
- onOpen: () => a?.(e.item),
239
- onFocus: () => V(t),
240
- ...C && t === he ? { "data-force": C } : {}
241
- }, e.key);
242
- return /* @__PURE__ */ D(z.Provider, {
243
- value: ge,
244
- children: /* @__PURE__ */ O("div", {
245
- ref: (e) => {
246
- H.current = e, typeof k == "function" ? k(e) : k && (k.current = e);
247
- },
248
- role: "grid",
249
- "aria-label": S,
250
- "aria-rowcount": G.length ? G.length + +!!ge : void 0,
251
- "aria-multiselectable": o || void 0,
252
- "aria-busy": y || void 0,
253
- onKeyDown: (e) => {
254
- Y(), Ee(e);
255
- },
256
- onPointerEnter: Y,
257
- onPointerDown: Y,
258
- onFocus: (e) => {
259
- if (Y(), !e.currentTarget.contains(e.target)) return;
260
- let t = Number(e.target.closest("[role=row]")?.querySelector("[data-index]")?.dataset.index), n = G[t];
261
- Z.current = n ? {
262
- key: n.key,
263
- index: t
264
- } : null;
265
- },
266
- onBlur: (e) => {
267
- e.currentTarget.contains(e.target) && !e.relatedTarget && (Z.current = null);
268
- },
269
- onWheel: Y,
270
- className: e("relative flex flex-col outline-none", A && "overflow-hidden rounded-group bg-raised shadow-xs first:mt-16", x),
271
- children: [
272
- y && (q || G.length === 0) ? /* @__PURE__ */ D(ce, {
273
- density: u,
274
- grouped: !!r
275
- }) : q && b ? /* @__PURE__ */ D("div", {
276
- role: "row",
277
- children: /* @__PURE__ */ D("div", {
278
- role: "gridcell",
279
- children: b
280
- })
281
- }) : null,
282
- ge && /* @__PURE__ */ D(ie, {
283
- headings: i,
284
- dated: K,
285
- selectable: !!o,
286
- ruled: !r
287
- }),
288
- y && (q || G.length === 0) || q && b ? null : J && X ? /* @__PURE__ */ D(X, {
289
- count: G.length,
290
- estimateSize: ve,
291
- getScrollElement: () => f(H.current),
292
- scrollTo: be,
293
- row: (e) => $(G[e], e),
294
- measure: W
295
- }) : J ? /* @__PURE__ */ D(se, {
296
- count: G.length,
297
- estimateSize: ve,
298
- row: (e) => $(G[e], e)
299
- }) : G.map($),
300
- o && Q && v && /* @__PURE__ */ D(de, {
301
- ref: U,
302
- count: N.size,
303
- onClear: () => P(/* @__PURE__ */ new Set()),
304
- children: _
305
- })
306
- ]
307
- })
308
- });
309
- });
310
- process.env.NODE_ENV !== "production" && (R.displayName = "List");
311
- var z = /* @__PURE__ */ b(!1);
312
- function ie({ headings: t, dated: i, selectable: a, ruled: o }) {
313
- let s = n(), c = r();
314
- return /* @__PURE__ */ D("div", {
315
- role: "row",
316
- "aria-rowindex": 1,
317
- className: s || c ? "px-0" : "px-gutter",
318
- children: /* @__PURE__ */ O("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__ */ D("span", {
322
- "aria-hidden": !0,
323
- className: "size-18 shrink-0"
324
- }),
325
- /* @__PURE__ */ D("span", {
326
- role: "columnheader",
327
- className: "min-w-0 flex-1 truncate",
328
- children: t.title
329
- }),
330
- t.meta && /* @__PURE__ */ D("span", {
331
- role: "columnheader",
332
- className: "flex shrink-0 items-center gap-6",
333
- children: t.meta
334
- }),
335
- i && /* @__PURE__ */ D("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 ae(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 oe(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 && f(e)?.scrollBy({ top: r });
353
- }
354
- function se({ count: e, estimateSize: t, row: n }) {
355
- let r = y() ? 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__ */ D("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__ */ D("div", {
369
- role: "presentation",
370
- className: "relative w-full",
371
- style: { height: a },
372
- children: i
373
- });
374
- }
375
- function ce({ density: t, grouped: n }) {
376
- let i = r();
377
- return /* @__PURE__ */ O("div", {
378
- role: "presentation",
379
- children: [n && /* @__PURE__ */ D("div", {
380
- role: "presentation",
381
- className: i ? "px-0" : "px-gutter",
382
- children: /* @__PURE__ */ D("div", {
383
- className: "flex h-36 items-center px-12",
384
- children: /* @__PURE__ */ D(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__ */ D("div", {
397
- role: "presentation",
398
- className: i ? "px-0" : "px-gutter",
399
- children: /* @__PURE__ */ O("div", {
400
- className: e("flex items-center gap-12 px-12", M.density[t].classes),
401
- children: [
402
- /* @__PURE__ */ D(u, {
403
- shape: "line",
404
- className: "min-w-0",
405
- style: { width: `${n}%` }
406
- }),
407
- /* @__PURE__ */ D("span", { className: "flex-1" }),
408
- /* @__PURE__ */ D(u, {
409
- shape: "line",
410
- className: "w-64 shrink-0"
411
- })
412
- ]
413
- })
414
- }, r))]
415
- });
416
- }
417
- var le = /* @__PURE__ */ x(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: ee, onFocus: C, "data-force": w }, te) {
418
- let T = n(), E = r(), k = v(), A = S(z), j = m && !!(i.meta || i.date), N = (T || j) && !!i.subtitle, F = N && f, I = !!i.disabled, L = i.avatar && /* @__PURE__ */ D("span", {
419
- className: e("flex shrink-0", I && "opacity-50"),
420
- children: i.avatar
421
- });
422
- return /* @__PURE__ */ D("div", {
423
- role: "row",
424
- "aria-rowindex": a === void 0 ? void 0 : a + (A ? 2 : 1),
425
- className: T ? e("px-0", a !== void 0 && a > 0 && "hairline-t") : E ? "px-0" : "px-gutter",
426
- children: /* @__PURE__ */ O("div", {
427
- ref: te,
428
- role: "gridcell",
429
- "aria-selected": y ? !!_ : void 0,
430
- "aria-disabled": I || void 0,
431
- "data-index": a,
432
- "data-row": "",
433
- tabIndex: g === !1 ? -1 : 0,
434
- onFocus: C,
435
- onClick: (e) => {
436
- e.currentTarget.contains(e.target) && !e.target.closest("button, a, [role=checkbox]") && (p(e.currentTarget) || (b && y ? x?.() : ee?.()));
437
- },
438
- ...w ? { "data-force": w } : {},
439
- className: e("group/row relative flex cursor-pointer items-center gap-12 text-body transition-control focus-ring-inset", T ? "px-20" : "px-12 row-rule", N || j || F ? "min-h-56 py-8" : T && d === "default" ? "h-48" : M.density[d].classes, ae(T, !!_), I && "pointer-events-none text-fg-disabled"),
440
- children: [
441
- y && /* @__PURE__ */ D("span", {
442
- 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"),
443
- onClick: (e) => e.stopPropagation(),
444
- children: /* @__PURE__ */ D(ne, {
445
- checked: !!_,
446
- onToggle: () => x?.(),
447
- "aria-label": k("list.selectItem", "Select {name}", { name: i.textValue ?? (typeof i.title == "string" ? i.title : i.id) })
448
- })
449
- }),
450
- o === 1 && /* @__PURE__ */ O("span", {
451
- "aria-hidden": !0,
452
- className: "relative -ml-4 h-full w-16 shrink-0 self-stretch",
453
- 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" })]
454
- }),
455
- i.glyph && /* @__PURE__ */ D("span", {
456
- className: e("flex size-16 shrink-0 items-center justify-center", I && "opacity-50"),
457
- children: i.glyph
458
- }),
459
- i.leading && /* @__PURE__ */ D("span", {
460
- className: e("-mr-4 flex shrink-0", N && "self-start", I && "opacity-50"),
461
- children: i.leading
462
- }),
463
- i.displayId && /* @__PURE__ */ D(l, {
464
- className: e("shrink-0 mono text-small tabular", I ? "text-fg-disabled" : _ ? "text-fg-secondary" : "text-fg-tertiary", u && P[u]),
465
- children: i.displayId
466
- }),
467
- /* @__PURE__ */ O("span", {
468
- className: e("flex min-w-0 flex-1", j ? "flex-col items-stretch gap-4" : "contents"),
469
- children: [/* @__PURE__ */ O("span", {
470
- 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"),
471
- children: [/* @__PURE__ */ O("span", {
472
- className: e(j && N ? "contents" : e("flex min-w-0 flex-1", N ? "flex-col items-start gap-2" : "items-baseline gap-8")),
473
- children: [typeof i.title == "string" ? /* @__PURE__ */ D(c, {
474
- truncate: !0,
475
- weight: "medium",
476
- tone: I ? "inherit" : "default",
477
- className: e("min-w-0 shrink", N && "max-w-full"),
478
- children: i.title
479
- }) : /* @__PURE__ */ D("span", {
480
- className: e("min-w-0 truncate font-medium", I ? "text-inherit" : "text-fg", N && "max-w-full"),
481
- children: i.title
482
- }), i.subtitle && /* @__PURE__ */ D(l, {
483
- wrap: F,
484
- 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"),
485
- children: i.subtitle
486
- })]
487
- }), j && (i.actions || L) && /* @__PURE__ */ O("span", {
488
- className: "col-start-2 row-start-1 flex h-24 shrink-0 items-center gap-2",
489
- children: [i.actions, L]
490
- })]
491
- }), j && /* @__PURE__ */ O("span", {
492
- className: "flex min-h-24 min-w-0 flex-wrap items-center gap-x-8",
493
- children: [i.meta && /* @__PURE__ */ D("span", {
494
- className: e("flex min-w-0 max-w-full items-center gap-6 overflow-hidden", I && "opacity-50"),
495
- children: i.meta
496
- }), i.date && /* @__PURE__ */ D("span", {
497
- className: e("shrink-0 text-small whitespace-nowrap", t(i.date), I ? "text-fg-disabled" : "text-fg-secondary"),
498
- children: i.date
499
- })]
500
- })]
501
- }),
502
- !j && (i.meta || i.actions) && /* @__PURE__ */ O("span", {
503
- className: "relative flex shrink-0 items-center gap-6",
504
- children: [/* @__PURE__ */ D("span", {
505
- 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"),
506
- children: i.meta
507
- }), i.actions && /* @__PURE__ */ D("span", {
508
- 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"),
509
- children: i.actions
510
- })]
511
- }),
512
- !j && (i.date || h) && /* @__PURE__ */ D("span", {
513
- className: e("shrink-0 text-right text-small whitespace-nowrap", t(i.date), I ? "text-fg-disabled" : "text-fg-secondary"),
514
- style: { minWidth: "max(112px, var(--k-list-date, 0px))" },
515
- children: /* @__PURE__ */ D("span", {
516
- "data-list-date": "",
517
- children: i.date
518
- })
519
- }),
520
- !j && L
521
- ]
522
- })
523
- });
524
- });
525
- process.env.NODE_ENV !== "production" && (le.displayName = "ListRow");
526
- var ue = /* @__PURE__ */ x(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) {
527
- let b = n(), x = r(), ee = v(), C = S(z);
528
- return /* @__PURE__ */ D("div", {
529
- ref: y,
530
- role: "row",
531
- "aria-rowindex": h === void 0 ? void 0 : h + (C ? 2 : 1),
532
- onFocus: _,
533
- className: b ? e("group/gh bg-fill-1", !m && "hairline-t") : e("group/gh", !m && "pt-16", x ? "px-0" : "px-gutter"),
534
- children: /* @__PURE__ */ O("div", {
535
- role: "gridcell",
536
- className: e("flex h-36 items-center gap-4", b && "pr-12 pl-8"),
537
- children: [
538
- /* @__PURE__ */ O("button", {
539
- type: "button",
540
- "aria-expanded": !c,
541
- "data-index": h,
542
- tabIndex: g === !1 ? -1 : 0,
543
- onClick: l,
544
- 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"),
545
- children: [
546
- p && !b && /* @__PURE__ */ D("span", {
547
- "aria-hidden": !0,
548
- className: "w-22 shrink-0"
549
- }),
550
- a && /* @__PURE__ */ D("span", {
551
- className: "flex size-16 items-center justify-center",
552
- children: a
553
- }),
554
- /* @__PURE__ */ D("span", {
555
- className: "truncate font-medium text-fg-secondary",
556
- children: t
557
- }),
558
- o !== void 0 && /* @__PURE__ */ D("span", {
559
- className: "text-fg-tertiary tabular",
560
- children: o
561
- }),
562
- /* @__PURE__ */ D("svg", {
563
- viewBox: "0 0 8 8",
564
- "aria-hidden": !0,
565
- className: e("size-10 text-fg-tertiary transition-transform duration-180 ease-move", !c && "rotate-90"),
566
- children: /* @__PURE__ */ D("path", {
567
- d: "M2.5 1.5 5.5 4l-3 2.5z",
568
- fill: "currentColor"
569
- })
570
- })
571
- ]
572
- }),
573
- /* @__PURE__ */ D("span", { className: "flex-1" }),
574
- f && /* @__PURE__ */ D("span", {
575
- className: "flex shrink-0 items-center gap-4",
576
- children: f
577
- }),
578
- u && /* @__PURE__ */ D("span", {
579
- className: "flex opacity-0 transition-control group-hover/gh:opacity-100 group-focus-within/gh:opacity-100 coarse:opacity-100",
580
- children: /* @__PURE__ */ D(s, {
581
- variant: "ghost",
582
- icon: i,
583
- "aria-label": d ?? ee("list.add", "Add"),
584
- size: "xs",
585
- onClick: u
586
- })
587
- })
588
- ]
589
- })
590
- });
591
- });
592
- process.env.NODE_ENV !== "production" && (ue.displayName = "GroupHeader");
593
- var de = /* @__PURE__ */ x(function({ count: e, onClear: t, children: n }, r) {
594
- let i = h(), s = v();
595
- return y() ? null : k(/* @__PURE__ */ D("div", {
596
- ref: r,
597
- role: "region",
598
- "aria-label": s("list.selection", "Selection"),
599
- className: "pointer-events-none fixed right-0 bottom-24 left-0 z-50 flex justify-center px-16",
600
- children: /* @__PURE__ */ O("div", {
601
- 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",
602
- children: [
603
- /* @__PURE__ */ D("span", {
604
- className: "pr-8 tabular",
605
- children: s("list.selected", "{count} selected", { count: String(e) })
606
- }),
607
- /* @__PURE__ */ D("span", {
608
- className: "mr-4 h-20 w-1 bg-toast-action",
609
- "aria-hidden": !0
610
- }),
611
- n,
612
- /* @__PURE__ */ D("button", {
613
- type: "button",
614
- onClick: t,
615
- "aria-label": s("list.clearSelection", "Clear selection"),
616
- 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",
617
- children: /* @__PURE__ */ D(o, {
618
- icon: a,
619
- size: "sm"
620
- })
621
- })
622
- ]
623
- })
624
- }), i ?? document.body);
625
- });
626
- process.env.NODE_ENV !== "production" && (de.displayName = "SelectionBar");
627
- var B = /* @__PURE__ */ x(function({ children: t, onClick: n, icon: r, danger: i }, a) {
628
- return /* @__PURE__ */ O("button", {
629
- ref: a,
630
- type: "button",
631
- onClick: n,
632
- 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"),
633
- children: [r && /* @__PURE__ */ D(o, {
634
- icon: r,
635
- size: "sm",
636
- className: i ? void 0 : "text-toast-fg-secondary"
637
- }), t]
638
- });
639
- });
640
- process.env.NODE_ENV !== "production" && (B.displayName = "SelectionAction");
641
- export { B as i, M as n, R as r, N as t };
642
-
643
- //# sourceMappingURL=list-Bq7vGhxI.js.map