@logicplanes/kaeso-ui 0.7.1 → 0.7.2-rc.1

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 (228) hide show
  1. package/ai/component-guides.md +1 -1
  2. package/ai/component-registry.json +15 -6
  3. package/ai/component-registry.md +6 -5
  4. package/ai/icons.md +1 -1
  5. package/ai/tokens.md +1 -1
  6. package/dist/chunks/{app-frame-tZReKtCM.js → app-frame-CnyC_z96.js} +5 -5
  7. package/dist/chunks/{app-frame-tZReKtCM.js.map → app-frame-CnyC_z96.js.map} +1 -1
  8. package/dist/chunks/{avatar-rLwc_20v.js → avatar-DVw5ZHKN.js} +2 -2
  9. package/dist/chunks/{avatar-rLwc_20v.js.map → avatar-DVw5ZHKN.js.map} +1 -1
  10. package/dist/chunks/{badge-DC-RFkFg.js → badge-BgMTwNW5.js} +2 -2
  11. package/dist/chunks/{badge-DC-RFkFg.js.map → badge-BgMTwNW5.js.map} +1 -1
  12. package/dist/chunks/{banner-B3YT-DVa.js → banner-DT5qBAkJ.js} +2 -2
  13. package/dist/chunks/{banner-B3YT-DVa.js.map → banner-DT5qBAkJ.js.map} +1 -1
  14. package/dist/chunks/{button-L10eO8bf.js → button-DoZ7krdH.js} +3 -3
  15. package/dist/chunks/{button-L10eO8bf.js.map → button-DoZ7krdH.js.map} +1 -1
  16. package/dist/chunks/{button-group-BZmq9BmX.js → button-group-sMchV-fj.js} +3 -3
  17. package/dist/chunks/{button-group-BZmq9BmX.js.map → button-group-sMchV-fj.js.map} +1 -1
  18. package/dist/chunks/{code-block-DOZqnHjd.js → code-block-BCcbkQ3b.js} +4 -4
  19. package/dist/chunks/{code-block-DOZqnHjd.js.map → code-block-BCcbkQ3b.js.map} +1 -1
  20. package/dist/chunks/{code-block-DBWno4Dm.js → code-block-DpYJ9OQ9.js} +5 -5
  21. package/dist/chunks/{code-block-DBWno4Dm.js.map → code-block-DpYJ9OQ9.js.map} +1 -1
  22. package/dist/chunks/{combobox-BdgWE05R.js → combobox-B9PoRhga.js} +3 -3
  23. package/dist/chunks/{combobox-BdgWE05R.js.map → combobox-B9PoRhga.js.map} +1 -1
  24. package/dist/chunks/{command-list-DFd-joEV.js → command-list-DIv7azFz.js} +193 -161
  25. package/dist/chunks/command-list-DIv7azFz.js.map +1 -0
  26. package/dist/chunks/{command-palette-QsmneiR8.js → command-palette-DAGGTUyX.js} +2 -2
  27. package/dist/chunks/{command-palette-QsmneiR8.js.map → command-palette-DAGGTUyX.js.map} +1 -1
  28. package/dist/chunks/{copy-button-59YLQ_oG.js → copy-button-TT_5sNFW.js} +4 -4
  29. package/dist/chunks/{copy-button-59YLQ_oG.js.map → copy-button-TT_5sNFW.js.map} +1 -1
  30. package/dist/chunks/{core-DSGLmc13.js → core-iiSCX78t.js} +5 -5
  31. package/dist/chunks/{core-DSGLmc13.js.map → core-iiSCX78t.js.map} +1 -1
  32. package/dist/chunks/{dashboard-B7ltvQ3f.js → dashboard-Bs8X-Qvt.js} +2 -2
  33. package/dist/chunks/{dashboard-B7ltvQ3f.js.map → dashboard-Bs8X-Qvt.js.map} +1 -1
  34. package/dist/chunks/{data-table-BFzel_vu.js → data-table-CCv3fgK5.js} +13 -13
  35. package/dist/chunks/data-table-CCv3fgK5.js.map +1 -0
  36. package/dist/chunks/{date-picker-CkIMfoLV.js → date-picker-vS5h1HKN.js} +4 -4
  37. package/dist/chunks/{date-picker-CkIMfoLV.js.map → date-picker-vS5h1HKN.js.map} +1 -1
  38. package/dist/chunks/{date-popup-DhbnZRhl.js → date-popup-DDOLST_5.js} +2 -2
  39. package/dist/chunks/{date-popup-DhbnZRhl.js.map → date-popup-DDOLST_5.js.map} +1 -1
  40. package/dist/chunks/{dialog-CYQsXjid.js → dialog-O2djESCg.js} +3 -3
  41. package/dist/chunks/{dialog-CYQsXjid.js.map → dialog-O2djESCg.js.map} +1 -1
  42. package/dist/chunks/{display-options-Cw7rD12V.js → display-options-DcVmg-i-.js} +6 -6
  43. package/dist/chunks/{display-options-Cw7rD12V.js.map → display-options-DcVmg-i-.js.map} +1 -1
  44. package/dist/chunks/{domain-DLRk0kME.js → domain-LXfZduW0.js} +2 -2
  45. package/dist/chunks/{domain-DLRk0kME.js.map → domain-LXfZduW0.js.map} +1 -1
  46. package/dist/chunks/{figure-g1FhNNJc.js → figure-DtTP7WE4.js} +2 -2
  47. package/dist/chunks/{figure-g1FhNNJc.js.map → figure-DtTP7WE4.js.map} +1 -1
  48. package/dist/chunks/{filter-chip-BMytSUWo.js → filter-chip-CFlRbeHm.js} +4 -4
  49. package/dist/chunks/{filter-chip-BMytSUWo.js.map → filter-chip-CFlRbeHm.js.map} +1 -1
  50. package/dist/chunks/{flow-9Ap7HdzN.js → flow-C3AupfRE.js} +3 -3
  51. package/dist/chunks/{flow-9Ap7HdzN.js.map → flow-C3AupfRE.js.map} +1 -1
  52. package/dist/chunks/{identity-BEHDLa0i.js → identity-CKVVvPbE.js} +4 -4
  53. package/dist/chunks/{identity-BEHDLa0i.js.map → identity-CKVVvPbE.js.map} +1 -1
  54. package/dist/chunks/{input-DpGqfw1G.js → input-WUVIrQkn.js} +2 -2
  55. package/dist/chunks/{input-DpGqfw1G.js.map → input-WUVIrQkn.js.map} +1 -1
  56. package/dist/chunks/{input-CI8DBTas.js → input-bgfWrX1j.js} +3 -3
  57. package/dist/chunks/{input-CI8DBTas.js.map → input-bgfWrX1j.js.map} +1 -1
  58. package/dist/chunks/{input-group-FtZWEYNA.js → input-group-B5PDh6li.js} +2 -2
  59. package/dist/chunks/{input-group-FtZWEYNA.js.map → input-group-B5PDh6li.js.map} +1 -1
  60. package/dist/chunks/{iso-field-Dg-HGlv9.js → iso-field-DWKhEAY7.js} +2 -2
  61. package/dist/chunks/{iso-field-Dg-HGlv9.js.map → iso-field-DWKhEAY7.js.map} +1 -1
  62. package/dist/chunks/{kaeso-DSqL9sIX.js → kaeso-6lWIZnFb.js} +8 -8
  63. package/dist/chunks/{kaeso-DSqL9sIX.js.map → kaeso-6lWIZnFb.js.map} +1 -1
  64. package/dist/chunks/{key-value-nzN9Vojb.js → key-value-DTAMe71k.js} +3 -3
  65. package/dist/chunks/{key-value-nzN9Vojb.js.map → key-value-DTAMe71k.js.map} +1 -1
  66. package/dist/chunks/{list-0pRnkcpL.js → list-CdnGU-gX.js} +8 -8
  67. package/dist/chunks/{list-0pRnkcpL.js.map → list-CdnGU-gX.js.map} +1 -1
  68. package/dist/chunks/{markdown-D3FY-DA8.js → markdown-h44XrRqz.js} +5 -5
  69. package/dist/chunks/{markdown-D3FY-DA8.js.map → markdown-h44XrRqz.js.map} +1 -1
  70. package/dist/chunks/{menu-BMry4pQ-.js → menu-CS7aZSOd.js} +2 -2
  71. package/dist/chunks/{menu-BMry4pQ-.js.map → menu-CS7aZSOd.js.map} +1 -1
  72. package/dist/chunks/{meter-D2ynBSmy.js → meter-CUT58Aor.js} +3 -3
  73. package/dist/chunks/{meter-D2ynBSmy.js.map → meter-CUT58Aor.js.map} +1 -1
  74. package/dist/chunks/{nav-sheet-B0o-icmO.js → nav-sheet-Da-sKZmW.js} +2 -2
  75. package/dist/chunks/{nav-sheet-B0o-icmO.js.map → nav-sheet-Da-sKZmW.js.map} +1 -1
  76. package/dist/chunks/observe-resize-CUTyU0ZX.js +27 -0
  77. package/dist/chunks/observe-resize-CUTyU0ZX.js.map +1 -0
  78. package/dist/chunks/{page-header-DiH555lF.js → page-header-DdqpIHda.js} +3 -3
  79. package/dist/chunks/{page-header-DiH555lF.js.map → page-header-DdqpIHda.js.map} +1 -1
  80. package/dist/chunks/{pagination-IL6wspAT.js → pagination-C9kb4ymb.js} +2 -2
  81. package/dist/chunks/{pagination-IL6wspAT.js.map → pagination-C9kb4ymb.js.map} +1 -1
  82. package/dist/chunks/{picker-popover-DAnkZmge.js → picker-popover-AA76MIKx.js} +5 -5
  83. package/dist/chunks/{picker-popover-DAnkZmge.js.map → picker-popover-AA76MIKx.js.map} +1 -1
  84. package/dist/chunks/{range-popup-Z6K3WK7A.js → range-popup-DnI_IMVR.js} +3 -3
  85. package/dist/chunks/{range-popup-Z6K3WK7A.js.map → range-popup-DnI_IMVR.js.map} +1 -1
  86. package/dist/chunks/{release-art-DJuOsmxV.js → release-art-CQuIWLkB.js} +2 -2
  87. package/dist/chunks/{release-art-DJuOsmxV.js.map → release-art-CQuIWLkB.js.map} +1 -1
  88. package/dist/chunks/{rights-C6gfyqsY.js → rights-BZ1cfh4_.js} +6 -6
  89. package/dist/chunks/{rights-C6gfyqsY.js.map → rights-BZ1cfh4_.js.map} +1 -1
  90. package/dist/chunks/{segmented-1WSOvDjT.js → segmented-Cb8cFVck.js} +4 -4
  91. package/dist/chunks/{segmented-1WSOvDjT.js.map → segmented-Cb8cFVck.js.map} +1 -1
  92. package/dist/chunks/{select-DQzn7_Fs.js → select-DTMAr8fs.js} +2 -2
  93. package/dist/chunks/{select-DQzn7_Fs.js.map → select-DTMAr8fs.js.map} +1 -1
  94. package/dist/chunks/{sheet-gHqkCQXy.js → sheet-bfI8sb4T.js} +2 -2
  95. package/dist/chunks/{sheet-gHqkCQXy.js.map → sheet-bfI8sb4T.js.map} +1 -1
  96. package/dist/chunks/{sidebar-Bbm__0Nk.js → sidebar-ddl-qlYN.js} +5 -5
  97. package/dist/chunks/{sidebar-Bbm__0Nk.js.map → sidebar-ddl-qlYN.js.map} +1 -1
  98. package/dist/chunks/{sidebar-menu-CycUvTPc.js → sidebar-menu-ByGqoQlf.js} +2 -2
  99. package/dist/chunks/{sidebar-menu-CycUvTPc.js.map → sidebar-menu-ByGqoQlf.js.map} +1 -1
  100. package/dist/chunks/{skeleton-DTiYxSYX.js → skeleton-DWcNGANz.js} +12 -8
  101. package/dist/chunks/skeleton-DWcNGANz.js.map +1 -0
  102. package/dist/chunks/{stat-CtOxD2Jk.js → stat-DpAGMop-.js} +5 -5
  103. package/dist/chunks/{stat-CtOxD2Jk.js.map → stat-DpAGMop-.js.map} +1 -1
  104. package/dist/chunks/{switch-C0sNr969.js → switch-BMdMW6Gh.js} +2 -2
  105. package/dist/chunks/{switch-C0sNr969.js.map → switch-BMdMW6Gh.js.map} +1 -1
  106. package/dist/chunks/{table-CceWZLhC.js → table-BBhL2Sqv.js} +3 -3
  107. package/dist/chunks/{table-CceWZLhC.js.map → table-BBhL2Sqv.js.map} +1 -1
  108. package/dist/chunks/{tabs-BElO8cFs.js → tabs-C0JxB1Lf.js} +2 -2
  109. package/dist/chunks/{tabs-BElO8cFs.js.map → tabs-C0JxB1Lf.js.map} +1 -1
  110. package/dist/chunks/{tag-o9BCsRkO.js → tag-CTPr_IxL.js} +3 -3
  111. package/dist/chunks/{tag-o9BCsRkO.js.map → tag-CTPr_IxL.js.map} +1 -1
  112. package/dist/chunks/{text-BRYPrw1h.js → text-OrW7BjbV.js} +30 -20
  113. package/dist/chunks/text-OrW7BjbV.js.map +1 -0
  114. package/dist/chunks/{textarea-BP6I9yrU.js → textarea-qnw0s5LY.js} +4 -4
  115. package/dist/chunks/{textarea-BP6I9yrU.js.map → textarea-qnw0s5LY.js.map} +1 -1
  116. package/dist/chunks/{theme-menu-DmEo4nXz.js → theme-menu-B-t-nYWM.js} +4 -4
  117. package/dist/chunks/{theme-menu-DmEo4nXz.js.map → theme-menu-B-t-nYWM.js.map} +1 -1
  118. package/dist/chunks/{timeline-B3vkaxI1.js → timeline-D28Owab7.js} +2 -2
  119. package/dist/chunks/{timeline-B3vkaxI1.js.map → timeline-D28Owab7.js.map} +1 -1
  120. package/dist/chunks/{timeseries-CrpFP8va.js → timeseries-C2_s3CC6.js} +4 -4
  121. package/dist/chunks/{timeseries-CrpFP8va.js.map → timeseries-C2_s3CC6.js.map} +1 -1
  122. package/dist/chunks/{toast-XAZeCuV7.js → toast-B6OZXKAp.js} +2 -2
  123. package/dist/chunks/{toast-XAZeCuV7.js.map → toast-B6OZXKAp.js.map} +1 -1
  124. package/dist/chunks/{tooltip-DVpJ_urN.js → tooltip-Bmcp6DQh.js} +6 -4
  125. package/dist/chunks/{tooltip-DVpJ_urN.js.map → tooltip-Bmcp6DQh.js.map} +1 -1
  126. package/dist/chunks/{tooltip-DdZgOME7.js → tooltip-YsywFywc.js} +2 -2
  127. package/dist/chunks/{tooltip-DdZgOME7.js.map → tooltip-YsywFywc.js.map} +1 -1
  128. package/dist/chunks/{tooltip-root-BeCM9Uhj.js → tooltip-root-DqFXjTS0.js} +3 -3
  129. package/dist/chunks/{tooltip-root-BeCM9Uhj.js.map → tooltip-root-DqFXjTS0.js.map} +1 -1
  130. package/dist/chunks/{truncated-C6K1q8DJ.js → truncated-BEVUjhPv.js} +12 -12
  131. package/dist/chunks/truncated-BEVUjhPv.js.map +1 -0
  132. package/dist/chunks/use-cut-off-Ca-Jqata.js +39 -0
  133. package/dist/chunks/use-cut-off-Ca-Jqata.js.map +1 -0
  134. package/dist/chunks/{use-indicator-Dmlj4ucA.js → use-indicator-CTaEVhAs.js} +2 -2
  135. package/dist/chunks/{use-indicator-Dmlj4ucA.js.map → use-indicator-CTaEVhAs.js.map} +1 -1
  136. package/dist/chunks/{use-layout-width-D53VE1kJ.js → use-layout-width-DAuAGj4G.js} +2 -2
  137. package/dist/chunks/{use-layout-width-D53VE1kJ.js.map → use-layout-width-DAuAGj4G.js.map} +1 -1
  138. package/dist/chunks/{use-scroll-fade-CNLSc2jm.js → use-scroll-fade-Bu4Rhui7.js} +2 -2
  139. package/dist/chunks/{use-scroll-fade-CNLSc2jm.js.map → use-scroll-fade-Bu4Rhui7.js.map} +1 -1
  140. package/dist/chunks/{use-scroll-margin-CpP0MUMb.js → use-scroll-margin-DIoNdxlW.js} +2 -2
  141. package/dist/chunks/{use-scroll-margin-CpP0MUMb.js.map → use-scroll-margin-DIoNdxlW.js.map} +1 -1
  142. package/dist/chunks/use-truncated-7FkH4j6x.js +24 -0
  143. package/dist/chunks/use-truncated-7FkH4j6x.js.map +1 -0
  144. package/dist/chunks/{virtual-rows-ByQ87hP0.js → virtual-rows-CJ2gUUJ_.js} +2 -2
  145. package/dist/chunks/{virtual-rows-ByQ87hP0.js.map → virtual-rows-CJ2gUUJ_.js.map} +1 -1
  146. package/dist/components/app-frame.js +1 -1
  147. package/dist/components/avatar.js +1 -1
  148. package/dist/components/badge.js +1 -1
  149. package/dist/components/banner.js +1 -1
  150. package/dist/components/button-group.js +1 -1
  151. package/dist/components/button.js +1 -1
  152. package/dist/components/charts/bar.js +3 -3
  153. package/dist/components/charts/donut.js +4 -4
  154. package/dist/components/charts/heatmap.js +3 -3
  155. package/dist/components/charts/sankey.js +3 -3
  156. package/dist/components/charts/sparkline.js +1 -1
  157. package/dist/components/charts/timeseries.js +1 -1
  158. package/dist/components/charts.js +2 -2
  159. package/dist/components/code-block.js +2 -2
  160. package/dist/components/combobox.js +1 -1
  161. package/dist/components/command-palette.js +1 -1
  162. package/dist/components/copy-button.js +1 -1
  163. package/dist/components/dashboard/metric-tabs.js +7 -9
  164. package/dist/components/dashboard/metric-tabs.js.map +1 -1
  165. package/dist/components/dashboard/model-card.js +1 -1
  166. package/dist/components/dashboard/model-card.js.map +1 -1
  167. package/dist/components/dashboard/rank-list.js +1 -1
  168. package/dist/components/dashboard.js +1 -1
  169. package/dist/components/data-table.js +1 -1
  170. package/dist/components/date-picker.js +1 -1
  171. package/dist/components/dialog.js +1 -1
  172. package/dist/components/display-options.js +1 -1
  173. package/dist/components/figure.js +1 -1
  174. package/dist/components/filter-chip.js +1 -1
  175. package/dist/components/flow-canvas.js +3 -3
  176. package/dist/components/flow-canvas.js.map +1 -1
  177. package/dist/components/flow.js +1 -1
  178. package/dist/components/input.js +3 -3
  179. package/dist/components/kaeso/conversation.js +3 -3
  180. package/dist/components/kaeso/identity.js +1 -1
  181. package/dist/components/kaeso/moments.js +2 -2
  182. package/dist/components/kaeso/rights.js +1 -1
  183. package/dist/components/kaeso/usage.js +6 -6
  184. package/dist/components/kaeso.js +3 -3
  185. package/dist/components/key-value.js +1 -1
  186. package/dist/components/list.js +1 -1
  187. package/dist/components/markdown.js +1 -1
  188. package/dist/components/menu.js +1 -1
  189. package/dist/components/meter.js +1 -1
  190. package/dist/components/page-header.js +1 -1
  191. package/dist/components/pagination.js +1 -1
  192. package/dist/components/playground.js +254 -227
  193. package/dist/components/playground.js.map +1 -1
  194. package/dist/components/release-art.js +1 -1
  195. package/dist/components/segmented.js +1 -1
  196. package/dist/components/select.js +1 -1
  197. package/dist/components/sheet.js +1 -1
  198. package/dist/components/sidebar.js +1 -1
  199. package/dist/components/skeleton.js +1 -1
  200. package/dist/components/stat.js +1 -1
  201. package/dist/components/switch.js +1 -1
  202. package/dist/components/table.js +1 -1
  203. package/dist/components/tabs.js +1 -1
  204. package/dist/components/tag.js +1 -1
  205. package/dist/components/text.js +1 -1
  206. package/dist/components/theme-menu.js +1 -1
  207. package/dist/components/timeline.js +1 -1
  208. package/dist/components/toast.js +1 -1
  209. package/dist/components/tooltip.js +1 -1
  210. package/dist/index.js +50 -50
  211. package/dist/styles.css +1 -1
  212. package/dist/types/components/command-list/match.d.ts +5 -0
  213. package/dist/types/components/skeleton/skeleton.d.ts +8 -0
  214. package/dist/types/components/text/docs.d.ts +1 -0
  215. package/dist/types/components/text/text.d.ts +1 -0
  216. package/dist/types/hooks/use-cut-off.d.ts +1 -0
  217. package/dist/types/hooks/use-truncated.d.ts +1 -0
  218. package/dist/types/utils/observe-resize.d.ts +1 -0
  219. package/package.json +2 -2
  220. package/dist/chunks/command-list-DFd-joEV.js.map +0 -1
  221. package/dist/chunks/data-table-BFzel_vu.js.map +0 -1
  222. package/dist/chunks/observe-resize-DerQK57d.js +0 -24
  223. package/dist/chunks/observe-resize-DerQK57d.js.map +0 -1
  224. package/dist/chunks/skeleton-DTiYxSYX.js.map +0 -1
  225. package/dist/chunks/text-BRYPrw1h.js.map +0 -1
  226. package/dist/chunks/truncated-C6K1q8DJ.js.map +0 -1
  227. package/dist/chunks/use-truncated-CVim8MP9.js +0 -23
  228. package/dist/chunks/use-truncated-CVim8MP9.js.map +0 -1
@@ -2,7 +2,7 @@
2
2
  import { t as e } from "./cn-CF99d-bD.js";
3
3
  import { t } from "./figures-D_Tsrwwj.js";
4
4
  import { t as n } from "./icon-kQHSzziW.js";
5
- import { r } from "./combobox-BdgWE05R.js";
5
+ import { r } from "./combobox-B9PoRhga.js";
6
6
  import { a as i, i as a } from "./styles-CN0ovMB2.js";
7
7
  import { t as o } from "./option-checkbox-wA9L8Nxo.js";
8
8
  import { a as s } from "./context-B2nNL7Im.js";
@@ -12,33 +12,66 @@ import { Search01Icon as ie, Tick02Icon as ae } from "@hugeicons/core-free-icons
12
12
  import { defaultRangeExtractor as oe, observeElementRect as _, useVirtualizer as se } from "@tanstack/react-virtual";
13
13
  // src/components/command-list/match.ts
14
14
  var v = /[\s\-_./:@]/g, ce = /[\s\-_./:@]/;
15
- function y(e, t) {
16
- if (t === e) return 100;
17
- if (t.startsWith(e)) return 80;
18
- let n = t.indexOf(e);
19
- if (n > 0) return ce.test(t[n - 1] ?? "") ? 70 : 50;
20
- let r = e.replace(v, "");
21
- if (r && t.replace(v, "").includes(r)) return 40;
15
+ function y(e, t, n, r) {
16
+ if (n === e) return 100;
17
+ if (n.startsWith(e)) return 80;
18
+ let i = n.indexOf(e);
19
+ if (i > 0) return ce.test(n[i - 1] ?? "") ? 70 : 50;
20
+ if (t && r.includes(t)) return 40;
22
21
  if (e.length < 3) return 0;
23
- let i = 0, a = -1, o = 0;
24
- for (let n = 0; n < t.length && i < e.length; n++) t[n] === e[i] && (a >= 0 && n !== a + 1 && (o += 1), a = n, i += 1);
25
- return i < e.length ? 0 : Math.max(1, 30 - o * 3);
22
+ let a = 0, o = -1, s = 0;
23
+ for (let t = 0; t < n.length && a < e.length; t++) n[t] === e[a] && (o >= 0 && t !== o + 1 && (s += 1), o = t, a += 1);
24
+ return a < e.length ? 0 : Math.max(1, 30 - s * 3);
26
25
  }
27
- function b(e, t) {
28
- let n = e.trim().toLowerCase().split(/\s+/).filter(Boolean);
26
+ function le(e) {
27
+ let t = e.map((e) => e.toLowerCase());
28
+ return {
29
+ lower: t,
30
+ compact: t.map((e) => e.replace(v, ""))
31
+ };
32
+ }
33
+ var b = (e) => e.trim().toLowerCase().split(/\s+/).filter(Boolean).map((e) => ({
34
+ word: e,
35
+ compact: e.replace(v, "")
36
+ })), x = "", S = [];
37
+ function C(e) {
38
+ return e !== x && (x = e, S = b(e)), S;
39
+ }
40
+ var w = {
41
+ before: "",
42
+ after: "",
43
+ holds: !1
44
+ };
45
+ function ue(e, t) {
46
+ if (w.before !== e || w.after !== t) {
47
+ let n = b(e), r = b(t), i = n.length - 1;
48
+ w = {
49
+ before: e,
50
+ after: t,
51
+ holds: n.length > 0 && n.length === r.length && n.every(({ word: e, compact: t }, n) => n < i ? e === r[n]?.word : e.length >= 3 && t !== "" && !!r[n]?.word.startsWith(e))
52
+ };
53
+ }
54
+ return w.holds;
55
+ }
56
+ function T(e, t) {
57
+ let n = C(e);
29
58
  if (n.length === 0) return 1;
30
- let r = t.map((e) => e.toLowerCase()), i = 0;
31
- for (let e of n) {
32
- let t = 0;
33
- if (r.forEach((n, r) => {
34
- t = Math.max(t, y(e, n) * (r === 0 ? 1 : .9));
35
- }), t === 0) return 0;
36
- i += t;
59
+ let r = 0;
60
+ for (let { word: e, compact: i } of n) {
61
+ let n = 0;
62
+ for (let r = 0; r < t.lower.length; r++) n = Math.max(n, y(e, i, t.lower[r], t.compact[r]) * (r === 0 ? 1 : .9));
63
+ if (n === 0) return 0;
64
+ r += n;
37
65
  }
38
- return i / n.length;
66
+ return r / n.length;
67
+ }
68
+ var E = /* @__PURE__ */ new WeakMap();
69
+ function de(e, t) {
70
+ let n = E.get(e);
71
+ return n || (n = le([e.label, ...e.keywords ?? []]), E.set(e, n)), n.query !== t && (n.score === 0 && n.query !== void 0 && ue(n.query, t) || (n.score = T(t, n)), n.query = t), n.score ?? 0;
39
72
  }
40
73
  // src/components/command-list/command-list.tsx
41
- var le = {
74
+ var fe = {
42
75
  height: {
43
76
  popover: { classes: "picker-limits" },
44
77
  inline: { classes: "max-h-360 rounded-group bg-raised shadow-xs" },
@@ -48,7 +81,7 @@ var le = {
48
81
  md: { classes: "" },
49
82
  lg: { classes: "" }
50
83
  }
51
- }, ue = {
84
+ }, pe = {
52
85
  md: {
53
86
  search: "h-44 gap-10 px-16",
54
87
  input: "text-body",
@@ -65,15 +98,15 @@ var le = {
65
98
  render: "gap-12",
66
99
  caption: "px-18"
67
100
  }
68
- }, x = "(pointer: coarse)", de = (e) => {
101
+ }, D = "(pointer: coarse)", me = (e) => {
69
102
  if (typeof window > "u" || !window.matchMedia) return () => {};
70
- let t = window.matchMedia(x);
103
+ let t = window.matchMedia(D);
71
104
  return t.addEventListener("change", e), () => t.removeEventListener("change", e);
72
- }, fe = () => typeof window < "u" && !!window.matchMedia?.(x).matches, S = 28, C = 8, w = 6, pe = 500, me = {
105
+ }, he = () => typeof window < "u" && !!window.matchMedia?.(D).matches, O = 28, ge = 8, k = 6, _e = 500, ve = {
73
106
  md: 44,
74
107
  lg: 56
75
- }, he = 80, T = 480, ge = 200, _e = /* @__PURE__ */ c(null);
76
- function ve(e) {
108
+ }, ye = 80, A = 480, be = 40, xe = /* @__PURE__ */ c(null);
109
+ function Se(e) {
77
110
  let t = [], n = [], r = [];
78
111
  return e.forEach(({ group: e, items: i }, a) => {
79
112
  let o = t.length;
@@ -106,13 +139,12 @@ function ve(e) {
106
139
  spans: r
107
140
  };
108
141
  }
109
- var E = (e, t) => e?.kind === "header" ? S : t, ye = (e, t) => e[t + 1]?.kind === "header" ? C : 0;
110
- function be(e, t) {
111
- let n = [w];
112
- return e.forEach((r, i) => n.push((n[i] ?? w) + E(r, t) + ye(e, i))), n;
142
+ var j = (e, t) => e?.kind === "header" ? O : t, Ce = (e, t) => e[t + 1]?.kind === "header" ? ge : 0;
143
+ function we(e, t) {
144
+ let n = [k];
145
+ return e.forEach((r, i) => n.push((n[i] ?? k) + j(r, t) + Ce(e, i))), n;
113
146
  }
114
- var xe = (e, t) => b(t, [e.label, ...e.keywords ?? []]);
115
- function Se(e, t, n) {
147
+ function Te(e, t, n) {
116
148
  let r = t.trim(), i = (e) => e.items.length > 0 || !!e.group.loading;
117
149
  return r ? e.map((e, t) => {
118
150
  let i = e.items.map((e) => ({
@@ -133,122 +165,122 @@ function Se(e, t, n) {
133
165
  }))
134
166
  })).filter(i);
135
167
  }
136
- function Ce(e, t) {
168
+ function Ee(e, t) {
137
169
  return _(e, (e) => t(e.height > 0 ? e : {
138
170
  width: e.width,
139
- height: T
171
+ height: A
140
172
  }));
141
173
  }
142
- var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multiple: v, onSelect: ce, query: y, defaultQuery: b = "", onQueryChange: x, placeholder: C, emptyText: D, toolbar: O, footer: we, searchPrefix: Te, loading: k, onInputKeyDown: Ee, size: A = "md", height: De, autoFocus: Oe, onEscape: ke, escapeClears: Ae = !0, match: j = xe, counts: je = !0, inputProps: Me, className: Ne, "data-force": Pe }, Fe) {
143
- let M = s(), Ie = ee(_e), N = De ?? Ie ?? "popover", P = ne(), Le = `${P}-list`, [Re, ze] = m(b), F = y ?? Re, Be = re(de, fe, () => !1), I = ue[A], L = Be ? Math.max(44, I.row) : I.row, Ve = _ === void 0 && !v, He = !v && !Ve, Ue = f(() => new Set(_ == null ? [] : typeof _ == "string" ? [_] : _), [_]), R = f(() => Se(c, F, j), [
174
+ var De = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multiple: v, onSelect: ce, query: y, defaultQuery: le = "", onQueryChange: b, placeholder: x, emptyText: S, toolbar: C, footer: w, searchPrefix: ue, loading: T, onInputKeyDown: E, size: D = "md", height: ge, autoFocus: De, onEscape: Oe, escapeClears: ke = !0, match: M = de, counts: Ae = !0, inputProps: je, className: Me, "data-force": Ne }, Pe) {
175
+ let N = s(), Fe = ee(xe), P = ge ?? Fe ?? "popover", F = ne(), Ie = `${F}-list`, [Le, Re] = m(le), I = y ?? Le, ze = re(me, he, () => !1), L = pe[D], R = ze ? Math.max(44, L.row) : L.row, Be = _ === void 0 && !v, Ve = !v && !Be, He = f(() => new Set(_ == null ? [] : typeof _ == "string" ? [_] : _), [_]), z = f(() => Te(c, I, M), [
144
176
  c,
145
- F,
146
- j
147
- ]), { rows: z, options: B, spans: We } = f(() => ve(R), [R]), Ge = R.some((e) => e.group.label), V = N === "inline" && !O && !we, Ke = f(() => {
148
- if (!V) return 0;
149
- let e = ve(Se(c, "", j)).rows;
150
- return (be(e, L)[e.length] ?? w) - w;
177
+ I,
178
+ M
179
+ ]), { rows: B, options: V, spans: Ue } = f(() => Se(z), [z]), We = z.some((e) => e.group.label), H = P === "inline" && !C && !w, Ge = f(() => {
180
+ if (!H) return 0;
181
+ let e = Se(Te(c, "", M)).rows;
182
+ return (we(e, R)[e.length] ?? k) - k;
151
183
  }, [
152
- V,
184
+ H,
153
185
  c,
154
- j,
155
- L
156
- ]), qe = V ? { height: me[A] + 12 + Math.max(Ke, he) } : void 0, H = f(() => be(z, L), [z, L]), U = u((e, t) => {
157
- for (let n = e; n >= 0 && n < B.length; n += t) if (!B[n]?.item.disabled) return n;
186
+ M,
187
+ R
188
+ ]), Ke = H ? { height: ve[D] + 12 + Math.max(Ge, ye) } : void 0, U = f(() => we(B, R), [B, R]), W = u((e, t) => {
189
+ for (let n = e; n >= 0 && n < V.length; n += t) if (!V[n]?.item.disabled) return n;
158
190
  return -1;
159
- }, [B]), Je = () => {
160
- let e = B.findIndex((e) => Ue.has(e.item.value) && !e.item.disabled);
161
- return e >= 0 ? e : U(0, 1);
162
- }, [W, G] = m(Je), K = f(() => `${F.trim()}\u0000${B.map((e) => e.item.value).join("\0")}`, [B, F]), [Ye, Xe] = m(K);
163
- Ye !== K && (Xe(K), G(F.trim() ? U(0, 1) : Je()));
164
- let Ze = p(W);
165
- Ze.current = W;
166
- let q = p(null), J = z.length > ge, Y = se({
167
- enabled: J,
168
- count: z.length,
169
- getScrollElement: () => q.current,
170
- initialOffset: () => q.current?.scrollTop ?? 0,
171
- estimateSize: (e) => E(z[e], L) + ye(z, e),
172
- overscan: 8,
191
+ }, [V]), qe = () => {
192
+ let e = V.findIndex((e) => He.has(e.item.value) && !e.item.disabled);
193
+ return e >= 0 ? e : W(0, 1);
194
+ }, [G, K] = m(qe), q = f(() => `${I.trim()}\u0000${V.map((e) => e.item.value).join("\0")}`, [V, I]), [Je, Ye] = m(q);
195
+ Je !== q && (Ye(q), K(I.trim() ? W(0, 1) : qe()));
196
+ let Xe = p(G);
197
+ Xe.current = G;
198
+ let J = p(null), Y = B.length > be, X = se({
199
+ enabled: Y,
200
+ count: B.length,
201
+ getScrollElement: () => J.current,
202
+ initialOffset: () => J.current?.scrollTop ?? 0,
203
+ estimateSize: (e) => j(B[e], R) + Ce(B, e),
204
+ overscan: 4,
173
205
  useFlushSync: !1,
174
- paddingStart: w,
175
- paddingEnd: w,
176
- scrollPaddingStart: Ge ? S : 0,
177
- observeElementRect: Ce,
206
+ paddingStart: k,
207
+ paddingEnd: k,
208
+ scrollPaddingStart: We ? O : 0,
209
+ observeElementRect: Ee,
178
210
  initialRect: {
179
211
  width: 0,
180
- height: T
212
+ height: A
181
213
  },
182
214
  rangeExtractor: (e) => {
183
- let t = B[Ze.current]?.row, n = oe(e);
215
+ let t = V[Xe.current]?.row, n = oe(e);
184
216
  return t === void 0 || n.includes(t) ? n : [...n, t].sort((e, t) => e - t);
185
217
  }
186
- }), X = p(!1);
218
+ }), Ze = p(!1);
187
219
  d(() => {
188
- J && Y.measure();
220
+ Y && X.measure();
189
221
  }, [
190
- L,
191
- Y,
192
- J
222
+ R,
223
+ X,
224
+ Y
193
225
  ]);
194
226
  let Qe = (e, t) => {
195
- if (J) return Y.scrollToIndex(e, { align: t });
196
- let n = B.find((t) => t.row === e);
197
- (n ? document.getElementById(it(B.indexOf(n))) : null)?.scrollIntoView?.({ block: t === "auto" ? "nearest" : "center" });
227
+ if (Y) return X.scrollToIndex(e, { align: t });
228
+ let n = V.find((t) => t.row === e);
229
+ (n ? document.getElementById(it(V.indexOf(n))) : null)?.scrollIntoView?.({ block: t === "auto" ? "nearest" : "center" });
198
230
  };
199
231
  te(() => {
200
- let e = B[W]?.row;
201
- e !== void 0 && X.current && (X.current = !1, Qe(e, "auto"));
232
+ let e = V[G]?.row;
233
+ e !== void 0 && Ze.current && (Ze.current = !1, Qe(e, "auto"));
202
234
  });
203
235
  let $e = p(!1);
204
236
  d(() => {
205
237
  if ($e.current) return;
206
238
  $e.current = !0;
207
- let e = B[W]?.row;
239
+ let e = V[G]?.row;
208
240
  e !== void 0 && e > 0 && Qe(e, "center");
209
241
  });
210
242
  let et = (e) => {
211
- y === void 0 && ze(e), x?.(e);
243
+ y === void 0 && Re(e), b?.(e);
212
244
  }, Z = (e) => {
213
- e < 0 || (X.current = !0, G(e));
214
- }, tt = Math.max(1, Math.floor((q.current?.clientHeight || T) / L) - 1), nt = (e) => {
215
- let t = B[e];
216
- t && !t.item.disabled && (G(e), ce?.(t.item.value));
245
+ e < 0 || (Ze.current = !0, K(e));
246
+ }, tt = () => Math.max(1, Math.floor((J.current?.clientHeight || A) / R) - 1), nt = (e) => {
247
+ let t = V[e];
248
+ t && !t.item.disabled && (K(e), ce?.(t.item.value));
217
249
  }, rt = (e) => {
218
- if (Ee?.(e), e.defaultPrevented || e.altKey || e.metaKey || e.ctrlKey) return;
219
- let t = B.length - 1;
250
+ if (E?.(e), e.defaultPrevented || e.altKey || e.metaKey || e.ctrlKey) return;
251
+ let t = V.length - 1;
220
252
  switch (e.key) {
221
253
  case "ArrowDown":
222
- e.preventDefault(), Z(W < 0 ? U(0, 1) : U(W + 1, 1) >= 0 ? U(W + 1, 1) : U(0, 1));
254
+ e.preventDefault(), Z(G < 0 ? W(0, 1) : W(G + 1, 1) >= 0 ? W(G + 1, 1) : W(0, 1));
223
255
  break;
224
256
  case "ArrowUp":
225
- e.preventDefault(), Z(W < 0 ? U(t, -1) : U(W - 1, -1) >= 0 ? U(W - 1, -1) : U(t, -1));
257
+ e.preventDefault(), Z(G < 0 ? W(t, -1) : W(G - 1, -1) >= 0 ? W(G - 1, -1) : W(t, -1));
226
258
  break;
227
259
  case "Home":
228
260
  if (e.shiftKey) return;
229
- e.preventDefault(), Z(U(0, 1));
261
+ e.preventDefault(), Z(W(0, 1));
230
262
  break;
231
263
  case "End":
232
264
  if (e.shiftKey) return;
233
- e.preventDefault(), Z(U(t, -1));
265
+ e.preventDefault(), Z(W(t, -1));
234
266
  break;
235
267
  case "PageDown":
236
- e.preventDefault(), Z(U(Math.min(t, Math.max(W, 0) + tt), -1));
268
+ e.preventDefault(), Z(W(Math.min(t, Math.max(G, 0) + tt()), -1));
237
269
  break;
238
270
  case "PageUp":
239
- e.preventDefault(), Z(U(Math.max(0, W - tt), 1));
271
+ e.preventDefault(), Z(W(Math.max(0, G - tt()), 1));
240
272
  break;
241
273
  case "Enter":
242
- if (W < 0) return;
243
- e.preventDefault(), e.stopPropagation(), nt(W);
274
+ if (G < 0) return;
275
+ e.preventDefault(), e.stopPropagation(), nt(G);
244
276
  break;
245
- case "Escape": F && Ae ? (e.preventDefault(), e.stopPropagation(), et("")) : ke && (e.preventDefault(), e.stopPropagation(), ke());
277
+ case "Escape": I && ke ? (e.preventDefault(), e.stopPropagation(), et("")) : Oe && (e.preventDefault(), e.stopPropagation(), Oe());
246
278
  }
247
- }, it = (e) => `${P}-${e}-${(B[e]?.item.value ?? "").replace(/\s/g, "_")}`, at = (e) => `${P}-g-${e}`, ot = (t, n) => {
248
- let r = !je || t.loading ? void 0 : F.trim() ? R[n]?.items.length ?? 0 : t.count;
279
+ }, it = (e) => `${F}-${e}-${(V[e]?.item.value ?? "").replace(/\s/g, "_")}`, at = (e) => `${F}-g-${e}`, ot = (t, n) => {
280
+ let r = !Ae || t.loading ? void 0 : I.trim() ? z[n]?.items.length ?? 0 : t.count;
249
281
  return /* @__PURE__ */ g("div", {
250
282
  "aria-hidden": !0,
251
- className: e(i, "sticky top-0 z-10 gap-10 bg-raised forced-colors:mx-1", I.caption),
283
+ className: e(i, "sticky top-0 z-10 gap-10 bg-raised forced-colors:mx-1", L.caption),
252
284
  children: [
253
285
  t.leading,
254
286
  /* @__PURE__ */ h("span", {
@@ -260,12 +292,12 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
260
292
  className: "ml-auto shrink-0 font-regular text-fg-tertiary tabular",
261
293
  children: r
262
294
  }),
263
- r !== void 0 && He && /* @__PURE__ */ h("span", { className: "size-16 shrink-0" })
295
+ r !== void 0 && Ve && /* @__PURE__ */ h("span", { className: "size-16 shrink-0" })
264
296
  ]
265
297
  });
266
298
  }, st = (i) => {
267
- let { item: s, option: c } = i, l = c === W, u = Ve ? l : Ue.has(s.value), ee = {
268
- query: F,
299
+ let { item: s, option: c } = i, l = c === G, u = Be ? l : He.has(s.value), ee = {
300
+ query: I,
269
301
  active: l,
270
302
  selected: u
271
303
  };
@@ -273,7 +305,7 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
273
305
  id: it(c),
274
306
  role: "option",
275
307
  "aria-selected": u,
276
- "aria-setsize": B.length,
308
+ "aria-setsize": V.length,
277
309
  "aria-posinset": c + 1,
278
310
  ...s.disabled ? {
279
311
  "aria-disabled": !0,
@@ -281,68 +313,68 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
281
313
  } : {},
282
314
  ...l ? { "data-highlighted": "" } : {},
283
315
  ...u ? { "data-selected": "" } : {},
284
- onMouseMove: () => !l && !s.disabled && G(c),
316
+ onMouseMove: () => !l && !s.disabled && K(c),
285
317
  onMouseDown: (e) => e.preventDefault(),
286
318
  onClick: () => nt(c),
287
- className: e(a, "group/opt mx-6 w-auto", I.item),
319
+ className: e(a, "group/opt mx-6 w-auto", L.item),
288
320
  children: [
289
321
  v && /* @__PURE__ */ h(o, {}),
290
322
  s.leading,
291
323
  s.render ? /* @__PURE__ */ h("span", {
292
- className: e("flex min-w-0 flex-1 items-center", I.render),
324
+ className: e("flex min-w-0 flex-1 items-center", L.render),
293
325
  children: s.render(ee)
294
326
  }) : /* @__PURE__ */ h("span", {
295
327
  className: "min-w-0 flex-1 truncate",
296
328
  children: /* @__PURE__ */ h(r, {
297
329
  text: s.label,
298
- query: F
330
+ query: I
299
331
  })
300
332
  }),
301
333
  s.meta !== void 0 && /* @__PURE__ */ h("span", {
302
334
  className: e("ml-auto flex shrink-0 items-center gap-4 pl-16 text-caption font-medium text-fg-tertiary group-data-highlighted/item:text-fg-secondary forced-colors:text-current", "pl-8 font-regular", t(s.meta)),
303
335
  children: s.meta
304
336
  }),
305
- He && /* @__PURE__ */ h("span", {
337
+ Ve && /* @__PURE__ */ h("span", {
306
338
  "aria-hidden": !0,
307
- className: e("flex size-16 shrink-0 items-center justify-center text-fg", !u && "opacity-0"),
308
- children: /* @__PURE__ */ h(n, {
339
+ className: "flex size-16 shrink-0 items-center justify-center text-fg",
340
+ children: u && /* @__PURE__ */ h(n, {
309
341
  icon: ae,
310
342
  size: "sm"
311
343
  })
312
344
  })
313
345
  ]
314
346
  });
315
- }, ct = J ? Y.getVirtualItems().map((e) => e.index) : z.map((e, t) => t), lt = /* @__PURE__ */ new Map();
347
+ }, ct = Y ? X.getVirtualItems().map((e) => e.index) : B.map((e, t) => t), lt = /* @__PURE__ */ new Map();
316
348
  for (let e of ct) {
317
- let t = z[e];
349
+ let t = B[e];
318
350
  if (!t) continue;
319
351
  let n = lt.get(t.gi) ?? [];
320
352
  t.kind !== "header" && n.push(e), lt.set(t.gi, n);
321
353
  }
322
- let ut = z.length === 0, Q = F.trim(), dt = k ? M("commandList.loading", "Loading…") : D ?? (Q ? M("commandList.noResultsFor", "No results for “{query}”", { query: Q }) : M("commandList.noResults", "No results")), [$, ft] = m(null), pt = p(F);
354
+ let Q = B.length === 0, $ = I.trim(), ut = T ? N("commandList.loading", "Loading…") : S ?? ($ ? N("commandList.noResultsFor", "No results for “{query}”", { query: $ }) : N("commandList.noResults", "No results")), [dt, ft] = m(null), pt = p(I);
323
355
  te(() => {
324
- if (F === pt.current) return;
356
+ if (I === pt.current) return;
325
357
  let e = setTimeout(() => ft({
326
- query: Q,
327
- count: B.length,
328
- empty: ut
329
- }), pe);
358
+ query: $,
359
+ count: V.length,
360
+ empty: Q
361
+ }), _e);
330
362
  return () => clearTimeout(e);
331
363
  }, [
332
- F,
333
- Q,
334
- B.length,
335
- ut
364
+ I,
365
+ $,
366
+ V.length,
367
+ Q
336
368
  ]);
337
369
  let mt = u((e) => {
338
370
  e && e.style.setProperty("--scroll-area-overflow-y-end", `${Math.max(0, e.scrollHeight - e.scrollTop - e.clientHeight)}px`);
339
371
  }, []);
340
- return d(() => mt(q.current)), /* @__PURE__ */ g("div", {
341
- ...Pe ? { "data-force": Pe } : {},
342
- className: e("relative flex min-w-0 flex-col overflow-hidden", le.height[N].classes, Ne),
343
- ...qe ? { style: qe } : {},
372
+ return d(() => mt(J.current)), /* @__PURE__ */ g("div", {
373
+ ...Ne ? { "data-force": Ne } : {},
374
+ className: e("relative flex min-w-0 flex-col overflow-hidden", fe.height[P].classes, Me),
375
+ ...Ke ? { style: Ke } : {},
344
376
  children: [
345
- k && /* @__PURE__ */ h("span", {
377
+ T && /* @__PURE__ */ h("span", {
346
378
  "aria-hidden": !0,
347
379
  className: "absolute inset-x-0 top-0 h-2 overflow-hidden",
348
380
  children: /* @__PURE__ */ h("span", { className: "block h-full w-1/3 animate-indeterminate bg-fg-tertiary reduced:w-full reduced-pulse" })
@@ -351,65 +383,65 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
351
383
  onMouseDown: (e) => {
352
384
  e.target === e.currentTarget && (e.preventDefault(), e.currentTarget.querySelector("input")?.focus());
353
385
  },
354
- className: e("flex shrink-0 cursor-text items-center hairline-b-strong", I.search),
386
+ className: e("flex shrink-0 cursor-text items-center hairline-b-strong", L.search),
355
387
  children: [
356
388
  /* @__PURE__ */ h(n, {
357
389
  icon: ie,
358
- size: A === "lg" ? "md" : "sm",
390
+ size: D === "lg" ? "md" : "sm",
359
391
  className: "text-fg-tertiary"
360
392
  }),
361
- Te,
393
+ ue,
362
394
  /* @__PURE__ */ h("input", {
363
- ref: Fe,
364
- ...Me,
395
+ ref: Pe,
396
+ ...je,
365
397
  role: "combobox",
366
398
  "aria-expanded": "true",
367
- "aria-controls": Le,
399
+ "aria-controls": Ie,
368
400
  "aria-autocomplete": "list",
369
- "aria-label": C ?? M("commandList.search", "Search"),
370
- ...W >= 0 && B.length > 0 ? { "aria-activedescendant": it(W) } : {},
371
- ...Oe ? {
401
+ "aria-label": x ?? N("commandList.search", "Search"),
402
+ ...G >= 0 && V.length > 0 ? { "aria-activedescendant": it(G) } : {},
403
+ ...De ? {
372
404
  autoFocus: !0,
373
405
  "data-autofocus": ""
374
406
  } : {},
375
407
  type: "text",
376
408
  autoComplete: "off",
377
409
  spellCheck: !1,
378
- placeholder: C ?? M("commandList.search", "Search"),
379
- value: F,
410
+ placeholder: x ?? N("commandList.search", "Search"),
411
+ value: I,
380
412
  onChange: (e) => et(e.target.value),
381
413
  onKeyDown: rt,
382
- className: e("min-w-0 flex-1 bg-transparent text-ellipsis text-fg outline-none placeholder:text-fg-tertiary", I.input)
414
+ className: e("min-w-0 flex-1 bg-transparent text-ellipsis text-fg outline-none placeholder:text-fg-tertiary", L.input)
383
415
  })
384
416
  ]
385
417
  }),
386
- O && /* @__PURE__ */ h("div", {
418
+ C && /* @__PURE__ */ h("div", {
387
419
  className: "flex shrink-0 flex-wrap items-center gap-8 px-12 py-8 hairline-b-strong",
388
- children: O
420
+ children: C
389
421
  }),
390
422
  /* @__PURE__ */ h("div", {
391
- ref: q,
392
- id: Le,
423
+ ref: J,
424
+ id: Ie,
393
425
  role: "listbox",
394
426
  "aria-label": l,
395
427
  ...v ? { "aria-multiselectable": !0 } : {},
396
- ...k ? { "aria-busy": !0 } : {},
428
+ ...T ? { "aria-busy": !0 } : {},
397
429
  "data-dialog-body": "",
398
430
  onScroll: (e) => mt(e.currentTarget),
399
- ...Ge ? { style: { scrollPaddingTop: S } } : {},
400
- className: e("min-h-0 overflow-y-auto overscroll-contain scroll-fade-y scrollbar-quiet", N === "popover" ? "flex-initial" : "flex-1"),
401
- children: ut ? /* @__PURE__ */ h("div", {
431
+ ...We ? { style: { scrollPaddingTop: O } } : {},
432
+ className: e("min-h-0 overflow-y-auto overscroll-contain scroll-fade-y scrollbar-quiet", P === "popover" ? "flex-initial" : "flex-1"),
433
+ children: Q ? /* @__PURE__ */ h("div", {
402
434
  "aria-hidden": !0,
403
435
  className: "flex h-full min-h-80 items-center justify-center px-16 text-center text-body text-fg-secondary text-balance wrap-anywhere",
404
- children: dt
436
+ children: ut
405
437
  }) : /* @__PURE__ */ h("div", {
406
438
  role: "presentation",
407
439
  className: "relative w-full",
408
- style: { height: (H[z.length] ?? 0) + w },
440
+ style: { height: (U[B.length] ?? 0) + k },
409
441
  children: [...lt].map(([t, n]) => {
410
- let r = We[t], i = R[t]?.group;
442
+ let r = Ue[t], i = z[t]?.group;
411
443
  if (!r || !i) return null;
412
- let a = H[r.first] ?? 0, o = (H[r.last] ?? a) + E(z[r.last], L);
444
+ let a = U[r.first] ?? 0, o = (U[r.last] ?? a) + j(B[r.last], R);
413
445
  return /* @__PURE__ */ g("div", {
414
446
  ...i.label ? {
415
447
  role: "group",
@@ -421,18 +453,18 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
421
453
  height: o - a
422
454
  },
423
455
  children: [i.label && ot(i, t), n.map((t) => {
424
- let n = z[t];
456
+ let n = B[t];
425
457
  return n?.kind !== "item" && n?.kind !== "loading" ? null : /* @__PURE__ */ h("div", {
426
458
  role: "presentation",
427
459
  className: "absolute left-0 w-full",
428
460
  style: {
429
- top: (H[t] ?? 0) - a,
430
- height: E(n, L)
461
+ top: (U[t] ?? 0) - a,
462
+ height: j(n, R)
431
463
  },
432
464
  children: n.kind === "item" ? st(n) : /* @__PURE__ */ h("div", {
433
465
  "aria-hidden": !0,
434
- className: e("flex h-full items-center text-body text-fg-tertiary", I.caption),
435
- children: M("commandList.loading", "Loading…")
466
+ className: e("flex h-full items-center text-body text-fg-tertiary", L.caption),
467
+ children: N("commandList.loading", "Loading…")
436
468
  })
437
469
  }, t);
438
470
  })]
@@ -443,13 +475,13 @@ var D = /* @__PURE__ */ l(function({ groups: c, "aria-label": l, value: _, multi
443
475
  /* @__PURE__ */ h("span", {
444
476
  role: "status",
445
477
  className: "sr-only",
446
- children: $ && ($.empty ? dt : M("commandList.results", "{count, plural, one {# result} other {# results}}", { count: $.count }))
478
+ children: dt && (dt.empty ? ut : N("commandList.results", "{count, plural, one {# result} other {# results}}", { count: dt.count }))
447
479
  }),
448
- we
480
+ w
449
481
  ]
450
482
  });
451
483
  });
452
- process.env.NODE_ENV !== "production" && (D.displayName = "CommandList");
453
- export { _e as n, b as r, D as t };
484
+ process.env.NODE_ENV !== "production" && (De.displayName = "CommandList");
485
+ export { xe as n, de as r, De as t };
454
486
 
455
- //# sourceMappingURL=command-list-DFd-joEV.js.map
487
+ //# sourceMappingURL=command-list-DIv7azFz.js.map