@adamosuiteservices/ui 1.7.12 → 1.8.13

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 (307) hide show
  1. package/dist/accordion-rounded.cjs +24 -2
  2. package/dist/accordion-rounded.js +46 -8
  3. package/dist/accordion.cjs +20 -1
  4. package/dist/accordion.js +29 -5
  5. package/dist/alert.cjs +26 -1
  6. package/dist/alert.js +33 -8
  7. package/dist/avatar.cjs +7 -1
  8. package/dist/avatar.js +8 -2
  9. package/dist/badge.cjs +83 -1
  10. package/dist/badge.js +106 -24
  11. package/dist/breadcrumb.cjs +8 -1
  12. package/dist/breadcrumb.js +11 -4
  13. package/dist/button-B7ZP4LZN.js +127 -0
  14. package/dist/button-D-qFRXiM.cjs +70 -0
  15. package/dist/button-group.cjs +25 -1
  16. package/dist/button-group.js +33 -9
  17. package/dist/button.cjs +1 -1
  18. package/dist/button.js +1 -1
  19. package/dist/calendar.cjs +74 -1
  20. package/dist/calendar.js +114 -35
  21. package/dist/card.cjs +35 -1
  22. package/dist/card.js +45 -11
  23. package/dist/{checkbox-YWAnswaW.cjs → checkbox-CdnZ8VFJ.cjs} +21 -1
  24. package/dist/{checkbox-Dr487kAg.js → checkbox-DhBcmKze.js} +34 -4
  25. package/dist/checkbox.cjs +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/combobox.cjs +36 -2
  28. package/dist/combobox.js +302 -253
  29. package/dist/components/icons/account-balance-icon.d.ts +3 -0
  30. package/dist/components/icons/account-icon.d.ts +3 -0
  31. package/dist/components/icons/add-circle-icon.d.ts +3 -0
  32. package/dist/components/icons/alarm-icon.d.ts +3 -0
  33. package/dist/components/icons/archive-icon.d.ts +3 -0
  34. package/dist/components/icons/arrow-back-icon.d.ts +3 -0
  35. package/dist/components/icons/arrow-circle-up-icon.d.ts +3 -0
  36. package/dist/components/icons/arrow-forward-icon.d.ts +3 -0
  37. package/dist/components/icons/arrow-outward-icon.d.ts +3 -0
  38. package/dist/components/icons/article-icon.d.ts +3 -0
  39. package/dist/components/icons/attach-file-icon.d.ts +3 -0
  40. package/dist/components/icons/autorenew-icon.d.ts +3 -0
  41. package/dist/components/icons/bookmark-icon.d.ts +3 -0
  42. package/dist/components/icons/calculate-icon.d.ts +3 -0
  43. package/dist/components/icons/calendar-today-icon.d.ts +3 -0
  44. package/dist/components/icons/call-split-icon.d.ts +3 -0
  45. package/dist/components/icons/cancel-filled-icon.d.ts +3 -0
  46. package/dist/components/icons/cancel-icon.d.ts +3 -0
  47. package/dist/components/icons/check-circle-icon.d.ts +3 -0
  48. package/dist/components/icons/check-icon.d.ts +3 -0
  49. package/dist/components/icons/chevron-back-icon.d.ts +3 -0
  50. package/dist/components/icons/chevron-down-icon.d.ts +3 -0
  51. package/dist/components/icons/chevron-forward-icon.d.ts +3 -0
  52. package/dist/components/icons/chevron-up-icon.d.ts +3 -0
  53. package/dist/components/icons/clarify-icon.d.ts +3 -0
  54. package/dist/components/icons/clock-icon.d.ts +3 -0
  55. package/dist/components/icons/close-icon.d.ts +3 -0
  56. package/dist/components/icons/confirmation-number-icon.d.ts +3 -0
  57. package/dist/components/icons/contacts-icon.d.ts +3 -0
  58. package/dist/components/icons/contract-delete-icon.d.ts +3 -0
  59. package/dist/components/icons/copy-icon.d.ts +3 -0
  60. package/dist/components/icons/do-not-touch-icon.d.ts +3 -0
  61. package/dist/components/icons/download-icon.d.ts +3 -0
  62. package/dist/components/icons/dragger-icon.d.ts +3 -0
  63. package/dist/components/icons/edit-icon.d.ts +3 -0
  64. package/dist/components/icons/edit-square-icon.d.ts +3 -0
  65. package/dist/components/icons/exclamation-icon.d.ts +3 -0
  66. package/dist/components/icons/expand-circle-right-icon.d.ts +3 -0
  67. package/dist/components/icons/feature-search-icon.d.ts +3 -0
  68. package/dist/components/icons/filter-icon.d.ts +3 -0
  69. package/dist/components/icons/folder-icon.d.ts +3 -0
  70. package/dist/components/icons/folder-open-icon.d.ts +3 -0
  71. package/dist/components/icons/format-list-bulleted-icon.d.ts +3 -0
  72. package/dist/components/icons/hamburger-menu-icon.d.ts +3 -0
  73. package/dist/components/icons/help-icon.d.ts +3 -0
  74. package/dist/components/icons/hide-pass-icon.d.ts +3 -0
  75. package/dist/components/icons/home-icon.d.ts +3 -0
  76. package/dist/components/icons/id-card-icon.d.ts +3 -0
  77. package/dist/components/icons/index.d.ts +88 -0
  78. package/dist/components/icons/info-icon.d.ts +3 -0
  79. package/dist/components/icons/kid-star-icon.d.ts +3 -0
  80. package/dist/components/icons/language-icon.d.ts +3 -0
  81. package/dist/components/icons/last-page-icon.d.ts +3 -0
  82. package/dist/components/icons/layers-icon.d.ts +3 -0
  83. package/dist/components/icons/location-icon.d.ts +3 -0
  84. package/dist/components/icons/mail-icon.d.ts +3 -0
  85. package/dist/components/icons/manage-search-icon.d.ts +3 -0
  86. package/dist/components/icons/menu-icon.d.ts +3 -0
  87. package/dist/components/icons/message-icon.d.ts +3 -0
  88. package/dist/components/icons/metrics-icon.d.ts +3 -0
  89. package/dist/components/icons/mic-icon.d.ts +3 -0
  90. package/dist/components/icons/minus-icon.d.ts +3 -0
  91. package/dist/components/icons/mode-comment-icon.d.ts +3 -0
  92. package/dist/components/icons/money-icon.d.ts +3 -0
  93. package/dist/components/icons/monitoring-icon.d.ts +3 -0
  94. package/dist/components/icons/more-icon.d.ts +3 -0
  95. package/dist/components/icons/notifications-icon.d.ts +3 -0
  96. package/dist/components/icons/open-in-new-icon.d.ts +3 -0
  97. package/dist/components/icons/palette-icon.d.ts +3 -0
  98. package/dist/components/icons/password-icon.d.ts +3 -0
  99. package/dist/components/icons/pending-icon.d.ts +3 -0
  100. package/dist/components/icons/person-add-icon.d.ts +3 -0
  101. package/dist/components/icons/person-search-icon.d.ts +3 -0
  102. package/dist/components/icons/photo-icon.d.ts +3 -0
  103. package/dist/components/icons/plus-icon.d.ts +3 -0
  104. package/dist/components/icons/policy-icon.d.ts +3 -0
  105. package/dist/components/icons/publish-icon.d.ts +3 -0
  106. package/dist/components/icons/ready-icon.d.ts +3 -0
  107. package/dist/components/icons/receipt-icon.d.ts +3 -0
  108. package/dist/components/icons/receive-icon.d.ts +3 -0
  109. package/dist/components/icons/refresh-icon.d.ts +3 -0
  110. package/dist/components/icons/search-icon.d.ts +3 -0
  111. package/dist/components/icons/see-icon.d.ts +3 -0
  112. package/dist/components/icons/send-icon.d.ts +3 -0
  113. package/dist/components/icons/settings-icon.d.ts +3 -0
  114. package/dist/components/icons/shield-icon.d.ts +3 -0
  115. package/dist/components/icons/swap-horiz-icon.d.ts +3 -0
  116. package/dist/components/icons/tag-icon.d.ts +3 -0
  117. package/dist/components/icons/trash-icon.d.ts +3 -0
  118. package/dist/components/layout/toaster/toaster.d.ts +1 -1
  119. package/dist/components/layout/toaster/toaster.stories.d.ts +1 -1
  120. package/dist/components/ui/accordion/accordion.d.ts +1 -1
  121. package/dist/components/ui/accordion/accordion.stories.d.ts +1 -1
  122. package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +1 -1
  123. package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +1 -1
  124. package/dist/components/ui/alert/alert.stories.d.ts +1 -1
  125. package/dist/components/ui/avatar/avatar.d.ts +1 -1
  126. package/dist/components/ui/avatar/avatar.stories.d.ts +1 -1
  127. package/dist/components/ui/badge/badge.stories.d.ts +1 -1
  128. package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +1 -1
  129. package/dist/components/ui/button/button.stories.d.ts +1 -1
  130. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  131. package/dist/components/ui/button-group/button-group.stories.d.ts +1 -1
  132. package/dist/components/ui/calendar/calendar.d.ts +1 -1
  133. package/dist/components/ui/calendar/calendar.stories.d.ts +1 -1
  134. package/dist/components/ui/card/card.stories.d.ts +1 -1
  135. package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
  136. package/dist/components/ui/checkbox/checkbox.stories.d.ts +1 -1
  137. package/dist/components/ui/collapsible/collapsible.stories.d.ts +1 -1
  138. package/dist/components/ui/combobox/combobox.stories.d.ts +1 -1
  139. package/dist/components/ui/command/command.d.ts +1 -1
  140. package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
  141. package/dist/components/ui/context-menu/context-menu.stories.d.ts +1 -1
  142. package/dist/components/ui/dialog/dialog.d.ts +1 -1
  143. package/dist/components/ui/dialog/dialog.stories.d.ts +1 -1
  144. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
  145. package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +1 -1
  146. package/dist/components/ui/field/field.d.ts +1 -1
  147. package/dist/components/ui/field/field.stories.d.ts +1 -1
  148. package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
  149. package/dist/components/ui/hover-card/hover-card.stories.d.ts +1 -1
  150. package/dist/components/ui/input/input.stories.d.ts +1 -1
  151. package/dist/components/ui/input-group/Input-group.stories.d.ts +1 -1
  152. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  153. package/dist/components/ui/kbd/kbd.stories.d.ts +1 -1
  154. package/dist/components/ui/label/label.d.ts +1 -1
  155. package/dist/components/ui/label/label.stories.d.ts +1 -1
  156. package/dist/components/ui/pagination/pagination.stories.d.ts +1 -1
  157. package/dist/components/ui/popover/popover.d.ts +1 -1
  158. package/dist/components/ui/popover/popover.stories.d.ts +1 -1
  159. package/dist/components/ui/progress/progress.d.ts +1 -1
  160. package/dist/components/ui/progress/progress.stories.d.ts +1 -1
  161. package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
  162. package/dist/components/ui/radio-group/radio-group.stories.d.ts +1 -1
  163. package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
  164. package/dist/components/ui/scroll-area/scroll-area.stories.d.ts +1 -1
  165. package/dist/components/ui/select/select.d.ts +1 -1
  166. package/dist/components/ui/select/select.stories.d.ts +1 -1
  167. package/dist/components/ui/separator/separator.d.ts +1 -1
  168. package/dist/components/ui/separator/separator.stories.d.ts +1 -1
  169. package/dist/components/ui/sheet/sheet.d.ts +1 -1
  170. package/dist/components/ui/sheet/sheet.stories.d.ts +1 -1
  171. package/dist/components/ui/skeleton/skeleton.stories.d.ts +1 -1
  172. package/dist/components/ui/slider/slider.d.ts +1 -1
  173. package/dist/components/ui/slider/slider.stories.d.ts +1 -1
  174. package/dist/components/ui/spinner/spinner.stories.d.ts +1 -1
  175. package/dist/components/ui/switch/switch.d.ts +1 -1
  176. package/dist/components/ui/switch/switch.stories.d.ts +1 -1
  177. package/dist/components/ui/tabs/tabs.d.ts +1 -1
  178. package/dist/components/ui/tabs/tabs.stories.d.ts +1 -1
  179. package/dist/components/ui/tabs-underline/tabs-underline.d.ts +1 -1
  180. package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +1 -1
  181. package/dist/components/ui/textarea/textarea.stories.d.ts +1 -1
  182. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  183. package/dist/components/ui/toggle/toggle.stories.d.ts +1 -1
  184. package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
  185. package/dist/components/ui/tooltip/tooltip.stories.d.ts +1 -1
  186. package/dist/context-menu.cjs +79 -1
  187. package/dist/context-menu.js +101 -11
  188. package/dist/custom-layered-styles.css +1 -1
  189. package/dist/dialog.cjs +30 -1
  190. package/dist/dialog.js +35 -6
  191. package/dist/dropdown-menu.cjs +79 -1
  192. package/dist/dropdown-menu.js +101 -11
  193. package/dist/field.cjs +66 -1
  194. package/dist/field.js +91 -26
  195. package/dist/hover-card.cjs +15 -1
  196. package/dist/hover-card.js +15 -1
  197. package/dist/icons.cjs +1 -0
  198. package/dist/icons.js +1507 -0
  199. package/dist/input-BQZUpTEY.js +42 -0
  200. package/dist/input-DSmxdfq5.cjs +21 -0
  201. package/dist/input-group.cjs +76 -1
  202. package/dist/input-group.js +99 -24
  203. package/dist/input.cjs +1 -1
  204. package/dist/input.js +1 -1
  205. package/dist/kbd.cjs +10 -1
  206. package/dist/kbd.js +11 -2
  207. package/dist/{label-CmwGvhy1.js → label-BJ8Yf6Ft.js} +7 -1
  208. package/dist/{label-BjXORCBM.cjs → label-CNGQhi5L.cjs} +7 -1
  209. package/dist/label.cjs +1 -1
  210. package/dist/label.js +1 -1
  211. package/dist/pagination.cjs +13 -1
  212. package/dist/pagination.js +30 -6
  213. package/dist/{popover-FCKBtFo-.cjs → popover-CYbik-H4.cjs} +15 -1
  214. package/dist/{popover-3rIoNCXs.js → popover-DAwH8jUh.js} +15 -1
  215. package/dist/popover.cjs +1 -1
  216. package/dist/popover.js +1 -1
  217. package/dist/radio-group.cjs +14 -1
  218. package/dist/radio-group.js +20 -2
  219. package/dist/select.cjs +68 -1
  220. package/dist/select.js +83 -10
  221. package/dist/{separator-BaZqZZ9R.cjs → separator-Brpax0EI.cjs} +7 -1
  222. package/dist/{separator-DR7lQjv9.js → separator-DVypR3Qf.js} +7 -1
  223. package/dist/separator.cjs +1 -1
  224. package/dist/separator.js +1 -1
  225. package/dist/sheet-CGahUP7F.cjs +41 -0
  226. package/dist/sheet-Q3dBOQG-.js +174 -0
  227. package/dist/sheet.cjs +1 -1
  228. package/dist/sheet.js +1 -1
  229. package/dist/sidebar.cjs +20 -2
  230. package/dist/sidebar.js +58 -26
  231. package/dist/skeleton.cjs +1 -1
  232. package/dist/skeleton.js +1 -1
  233. package/dist/slider.cjs +27 -1
  234. package/dist/slider.js +30 -4
  235. package/dist/space.css +1 -1
  236. package/dist/styles.css +1 -1
  237. package/dist/switch.cjs +18 -1
  238. package/dist/switch.js +19 -2
  239. package/dist/table.cjs +20 -1
  240. package/dist/table.js +26 -7
  241. package/dist/tabs-underline.cjs +21 -1
  242. package/dist/tabs-underline.js +23 -3
  243. package/dist/tabs.cjs +22 -1
  244. package/dist/tabs.js +24 -3
  245. package/dist/textarea-CG7iQcb3.cjs +14 -0
  246. package/dist/textarea-CUPWKl-S.js +32 -0
  247. package/dist/textarea.cjs +1 -1
  248. package/dist/textarea.js +1 -1
  249. package/dist/toaster.cjs +4 -1
  250. package/dist/toaster.js +9 -6
  251. package/dist/toggle.cjs +17 -1
  252. package/dist/toggle.js +25 -9
  253. package/dist/tooltip.cjs +16 -1
  254. package/dist/tooltip.js +22 -2
  255. package/dist/typography.cjs +1 -1
  256. package/dist/typography.js +6 -6
  257. package/docs/AI-GUIDE.md +321 -321
  258. package/docs/components/layout/sidebar.md +404 -404
  259. package/docs/components/layout/toaster.md +436 -436
  260. package/docs/components/ui/accordion-rounded.md +583 -583
  261. package/docs/components/ui/accordion.md +267 -267
  262. package/docs/components/ui/alert.md +671 -671
  263. package/docs/components/ui/avatar.md +588 -588
  264. package/docs/components/ui/badge.md +1024 -1024
  265. package/docs/components/ui/button-group.md +1002 -1002
  266. package/docs/components/ui/button.md +1078 -1078
  267. package/docs/components/ui/calendar.md +1159 -1159
  268. package/docs/components/ui/card.md +1265 -1265
  269. package/docs/components/ui/checkbox.md +292 -292
  270. package/docs/components/ui/collapsible.md +320 -320
  271. package/docs/components/ui/command.md +454 -454
  272. package/docs/components/ui/context-menu.md +540 -540
  273. package/docs/components/ui/dialog.md +628 -628
  274. package/docs/components/ui/dropdown-menu.md +731 -731
  275. package/docs/components/ui/field.md +706 -706
  276. package/docs/components/ui/hover-card.md +446 -446
  277. package/docs/components/ui/input-group.md +509 -509
  278. package/docs/components/ui/input.md +362 -362
  279. package/docs/components/ui/kbd.md +434 -434
  280. package/docs/components/ui/label.md +359 -359
  281. package/docs/components/ui/pagination.md +650 -650
  282. package/docs/components/ui/popover.md +536 -536
  283. package/docs/components/ui/progress.md +182 -182
  284. package/docs/components/ui/radio-group.md +311 -311
  285. package/docs/components/ui/select.md +352 -352
  286. package/docs/components/ui/separator.md +214 -214
  287. package/docs/components/ui/sheet.md +142 -142
  288. package/docs/components/ui/skeleton.md +140 -140
  289. package/docs/components/ui/slider.md +341 -341
  290. package/docs/components/ui/spinner.md +170 -170
  291. package/docs/components/ui/switch.md +402 -402
  292. package/docs/components/ui/table.md +183 -183
  293. package/docs/components/ui/tabs-underline.md +106 -106
  294. package/docs/components/ui/tabs.md +122 -122
  295. package/docs/components/ui/textarea.md +243 -243
  296. package/docs/components/ui/toggle.md +243 -243
  297. package/docs/components/ui/tooltip.md +320 -320
  298. package/docs/components/ui/typography.md +191 -191
  299. package/package.json +7 -1
  300. package/dist/button-2GdKenQI.js +0 -58
  301. package/dist/button-DEQVHMrX.cjs +0 -1
  302. package/dist/input-BF73maXg.cjs +0 -1
  303. package/dist/input-C04hsVXE.js +0 -22
  304. package/dist/sheet-B-9YHdR5.js +0 -128
  305. package/dist/sheet-CU-sFSaJ.cjs +0 -1
  306. package/dist/textarea-3ZdbFRDN.cjs +0 -1
  307. package/dist/textarea-BZbcAAAu.js +0 -19
package/dist/combobox.js CHANGED
@@ -1,34 +1,34 @@
1
1
  import { j as p } from "./jsx-runtime-BzflLqGi.js";
2
- import * as a from "react";
3
- import { useState as fe } from "react";
2
+ import { B as je } from "./button-B7ZP4LZN.js";
3
+ import { C as Ce } from "./checkbox-DhBcmKze.js";
4
4
  import { c as M } from "./index-CRiPKpXj.js";
5
- import { B as je } from "./button-2GdKenQI.js";
6
- import { R as Ce, P as Ie, O as Re, a as Ae } from "./index-DniCthJA.js";
7
- import { P } from "./index-BMWt1NBG.js";
8
- import { u as G } from "./index-Cv867SGx.js";
9
- import { c as te } from "./index-DLcqcWxM.js";
10
- import { c as Ne } from "./createLucideIcon-B_8CJpcQ.js";
11
- import { P as $e, a as Me, b as Le } from "./popover-3rIoNCXs.js";
12
- import { C as De } from "./checkbox-Dr487kAg.js";
13
- import { C as Pe } from "./check-Ci0GjV-B.js";
14
- import { C as Fe } from "./chevron-down-CpVS2Z7w.js";
5
+ import * as a from "react";
6
+ import { useRef as Ie, useState as fe } from "react";
7
+ import { R as Re, P as Ae, O as Ne, a as $e } from "./index-DniCthJA.js";
8
+ import { P as F } from "./index-BMWt1NBG.js";
9
+ import { u as W } from "./index-Cv867SGx.js";
10
+ import { c as ee } from "./index-DLcqcWxM.js";
11
+ import { c as Me } from "./createLucideIcon-B_8CJpcQ.js";
12
+ import { P as Le, a as De, b as Pe } from "./popover-DAwH8jUh.js";
13
+ import { C as Fe } from "./check-Ci0GjV-B.js";
14
+ import { C as Oe } from "./chevron-down-CpVS2Z7w.js";
15
15
  /**
16
16
  * @license lucide-react v0.546.0 - ISC
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
20
  */
21
- const Oe = [
21
+ const Ve = [
22
22
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
23
23
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
24
- ], Ve = Ne("search", Oe);
25
- var pe = 1, ze = 0.9, Ke = 0.8, Te = 0.17, ie = 0.1, de = 0.999, qe = 0.9999, Be = 0.99, _e = /[\\\/_+.#"@\[\(\{&]/, Ge = /[\\\/_+.#"@\[\(\{&]/g, Ue = /[\s-]/, ge = /[\s-]/g;
26
- function ce(e, n, r, h, o, u, m) {
27
- if (u === n.length) return o === e.length ? pe : Be;
28
- var s = `${o},${u}`;
24
+ ], ze = Me("search", Ve);
25
+ var pe = 1, Ke = 0.9, Te = 0.8, qe = 0.17, ie = 0.1, de = 0.999, Be = 0.9999, We = 0.99, _e = /[\\\/_+.#"@\[\(\{&]/, Ge = /[\\\/_+.#"@\[\(\{&]/g, Ue = /[\s-]/, ge = /[\s-]/g;
26
+ function ce(e, n, r, h, o, c, m) {
27
+ if (c === n.length) return o === e.length ? pe : We;
28
+ var s = `${o},${c}`;
29
29
  if (m[s] !== void 0) return m[s];
30
- for (var b = h.charAt(u), i = r.indexOf(b, o), x = 0, d, S, E, $; i >= 0; ) d = ce(e, n, r, h, i + 1, u + 1, m), d > x && (i === o ? d *= pe : _e.test(e.charAt(i - 1)) ? (d *= Ke, E = e.slice(o, i - 1).match(Ge), E && o > 0 && (d *= Math.pow(de, E.length))) : Ue.test(e.charAt(i - 1)) ? (d *= ze, $ = e.slice(o, i - 1).match(ge), $ && o > 0 && (d *= Math.pow(de, $.length))) : (d *= Te, o > 0 && (d *= Math.pow(de, i - o))), e.charAt(i) !== n.charAt(u) && (d *= qe)), (d < ie && r.charAt(i - 1) === h.charAt(u + 1) || h.charAt(u + 1) === h.charAt(u) && r.charAt(i - 1) !== h.charAt(u)) && (S = ce(e, n, r, h, i + 1, u + 2, m), S * ie > d && (d = S * ie)), d > x && (x = d), i = r.indexOf(b, i + 1);
31
- return m[s] = x, x;
30
+ for (var x = h.charAt(c), i = r.indexOf(x, o), g = 0, u, j, S, R; i >= 0; ) u = ce(e, n, r, h, i + 1, c + 1, m), u > g && (i === o ? u *= pe : _e.test(e.charAt(i - 1)) ? (u *= Te, S = e.slice(o, i - 1).match(Ge), S && o > 0 && (u *= Math.pow(de, S.length))) : Ue.test(e.charAt(i - 1)) ? (u *= Ke, R = e.slice(o, i - 1).match(ge), R && o > 0 && (u *= Math.pow(de, R.length))) : (u *= qe, o > 0 && (u *= Math.pow(de, i - o))), e.charAt(i) !== n.charAt(c) && (u *= Be)), (u < ie && r.charAt(i - 1) === h.charAt(c + 1) || h.charAt(c + 1) === h.charAt(c) && r.charAt(i - 1) !== h.charAt(c)) && (j = ce(e, n, r, h, i + 1, c + 2, m), j * ie > u && (u = j * ie)), u > g && (g = u), i = r.indexOf(x, i + 1);
31
+ return m[s] = g, g;
32
32
  }
33
33
  function he(e) {
34
34
  return e.toLowerCase().replace(ge, " ");
@@ -36,247 +36,247 @@ function he(e) {
36
36
  function He(e, n, r) {
37
37
  return e = r && r.length > 0 ? `${e + " " + r.join(" ")}` : e, ce(e, n, he(e), he(n), 0, 0, {});
38
38
  }
39
- var ee = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', We = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', ve = `${xe}:not([aria-disabled="true"])`, se = "cmdk-item-select", B = "data-value", Je = (e, n, r) => He(e, n, r), be = a.createContext(void 0), re = () => a.useContext(be), ye = a.createContext(void 0), me = () => a.useContext(ye), ke = a.createContext(void 0), we = a.forwardRef((e, n) => {
40
- let r = _(() => {
41
- var t, c;
42
- return { search: "", value: (c = (t = e.value) != null ? t : e.defaultValue) != null ? c : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
43
- }), h = _(() => /* @__PURE__ */ new Set()), o = _(() => /* @__PURE__ */ new Map()), u = _(() => /* @__PURE__ */ new Map()), m = _(() => /* @__PURE__ */ new Set()), s = Se(e), { label: b, children: i, value: x, onValueChange: d, filter: S, shouldFilter: E, loop: $, disablePointerSelection: H = !1, vimBindings: g = !0, ...W } = e, A = G(), J = G(), F = G(), I = a.useRef(null), k = ot();
39
+ var Z = '[cmdk-group=""]', ue = '[cmdk-group-items=""]', Je = '[cmdk-group-heading=""]', xe = '[cmdk-item=""]', ve = `${xe}:not([aria-disabled="true"])`, se = "cmdk-item-select", q = "data-value", Xe = (e, n, r) => He(e, n, r), be = a.createContext(void 0), te = () => a.useContext(be), ye = a.createContext(void 0), me = () => a.useContext(ye), ke = a.createContext(void 0), we = a.forwardRef((e, n) => {
40
+ let r = B(() => {
41
+ var t, d;
42
+ return { search: "", value: (d = (t = e.value) != null ? t : e.defaultValue) != null ? d : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
43
+ }), h = B(() => /* @__PURE__ */ new Set()), o = B(() => /* @__PURE__ */ new Map()), c = B(() => /* @__PURE__ */ new Map()), m = B(() => /* @__PURE__ */ new Set()), s = Se(e), { label: x, children: i, value: g, onValueChange: u, filter: j, shouldFilter: S, loop: R, disablePointerSelection: G = !1, vimBindings: L = !0, ...y } = e, re = W(), A = W(), K = W(), N = a.useRef(null), k = it();
44
44
  z(() => {
45
- if (x !== void 0) {
46
- let t = x.trim();
47
- r.current.value = t, j.emit();
45
+ if (g !== void 0) {
46
+ let t = g.trim();
47
+ r.current.value = t, E.emit();
48
48
  }
49
- }, [x]), z(() => {
50
- k(6, ne);
49
+ }, [g]), z(() => {
50
+ k(6, X);
51
51
  }, []);
52
- let j = a.useMemo(() => ({ subscribe: (t) => (m.current.add(t), () => m.current.delete(t)), snapshot: () => r.current, setState: (t, c, v) => {
53
- var l, y, w, R;
54
- if (!Object.is(r.current[t], c)) {
55
- if (r.current[t] = c, t === "search") T(), O(), k(1, Y);
52
+ let E = a.useMemo(() => ({ subscribe: (t) => (m.current.add(t), () => m.current.delete(t)), snapshot: () => r.current, setState: (t, d, v) => {
53
+ var l, b, w, I;
54
+ if (!Object.is(r.current[t], d)) {
55
+ if (r.current[t] = d, t === "search") J(), T(), k(1, O);
56
56
  else if (t === "value") {
57
57
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
58
- let C = document.getElementById(F);
59
- C ? C.focus() : (l = document.getElementById(A)) == null || l.focus();
58
+ let C = document.getElementById(K);
59
+ C ? C.focus() : (l = document.getElementById(re)) == null || l.focus();
60
60
  }
61
61
  if (k(7, () => {
62
62
  var C;
63
- r.current.selectedItemId = (C = L()) == null ? void 0 : C.id, j.emit();
64
- }), v || k(5, ne), ((y = s.current) == null ? void 0 : y.value) !== void 0) {
65
- let C = c ?? "";
66
- (R = (w = s.current).onValueChange) == null || R.call(w, C);
63
+ r.current.selectedItemId = (C = D()) == null ? void 0 : C.id, E.emit();
64
+ }), v || k(5, X), ((b = s.current) == null ? void 0 : b.value) !== void 0) {
65
+ let C = d ?? "";
66
+ (I = (w = s.current).onValueChange) == null || I.call(w, C);
67
67
  return;
68
68
  }
69
69
  }
70
- j.emit();
70
+ E.emit();
71
71
  }
72
72
  }, emit: () => {
73
73
  m.current.forEach((t) => t());
74
- } }), []), K = a.useMemo(() => ({ value: (t, c, v) => {
74
+ } }), []), U = a.useMemo(() => ({ value: (t, d, v) => {
75
75
  var l;
76
- c !== ((l = u.current.get(t)) == null ? void 0 : l.value) && (u.current.set(t, { value: c, keywords: v }), r.current.filtered.items.set(t, X(c, v)), k(2, () => {
77
- O(), j.emit();
76
+ d !== ((l = c.current.get(t)) == null ? void 0 : l.value) && (c.current.set(t, { value: d, keywords: v }), r.current.filtered.items.set(t, H(d, v)), k(2, () => {
77
+ T(), E.emit();
78
78
  }));
79
- }, item: (t, c) => (h.current.add(t), c && (o.current.has(c) ? o.current.get(c).add(t) : o.current.set(c, /* @__PURE__ */ new Set([t]))), k(3, () => {
80
- T(), O(), r.current.value || Y(), j.emit();
79
+ }, item: (t, d) => (h.current.add(t), d && (o.current.has(d) ? o.current.get(d).add(t) : o.current.set(d, /* @__PURE__ */ new Set([t]))), k(3, () => {
80
+ J(), T(), r.current.value || O(), E.emit();
81
81
  }), () => {
82
- u.current.delete(t), h.current.delete(t), r.current.filtered.items.delete(t);
83
- let v = L();
82
+ c.current.delete(t), h.current.delete(t), r.current.filtered.items.delete(t);
83
+ let v = D();
84
84
  k(4, () => {
85
- T(), v?.getAttribute("id") === t && Y(), j.emit();
85
+ J(), v?.getAttribute("id") === t && O(), E.emit();
86
86
  });
87
87
  }), group: (t) => (o.current.has(t) || o.current.set(t, /* @__PURE__ */ new Set()), () => {
88
- u.current.delete(t), o.current.delete(t);
89
- }), filter: () => s.current.shouldFilter, label: b || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: A, inputId: F, labelId: J, listInnerRef: I }), []);
90
- function X(t, c) {
88
+ c.current.delete(t), o.current.delete(t);
89
+ }), filter: () => s.current.shouldFilter, label: x || e["aria-label"], getDisablePointerSelection: () => s.current.disablePointerSelection, listId: re, inputId: K, labelId: A, listInnerRef: N }), []);
90
+ function H(t, d) {
91
91
  var v, l;
92
- let y = (l = (v = s.current) == null ? void 0 : v.filter) != null ? l : Je;
93
- return t ? y(t, r.current.search, c) : 0;
92
+ let b = (l = (v = s.current) == null ? void 0 : v.filter) != null ? l : Xe;
93
+ return t ? b(t, r.current.search, d) : 0;
94
94
  }
95
- function O() {
95
+ function T() {
96
96
  if (!r.current.search || s.current.shouldFilter === !1) return;
97
- let t = r.current.filtered.items, c = [];
97
+ let t = r.current.filtered.items, d = [];
98
98
  r.current.filtered.groups.forEach((l) => {
99
- let y = o.current.get(l), w = 0;
100
- y.forEach((R) => {
101
- let C = t.get(R);
99
+ let b = o.current.get(l), w = 0;
100
+ b.forEach((I) => {
101
+ let C = t.get(I);
102
102
  w = Math.max(C, w);
103
- }), c.push([l, w]);
103
+ }), d.push([l, w]);
104
104
  });
105
- let v = I.current;
106
- V().sort((l, y) => {
107
- var w, R;
108
- let C = l.getAttribute("id"), le = y.getAttribute("id");
109
- return ((w = t.get(le)) != null ? w : 0) - ((R = t.get(C)) != null ? R : 0);
105
+ let v = N.current;
106
+ V().sort((l, b) => {
107
+ var w, I;
108
+ let C = l.getAttribute("id"), le = b.getAttribute("id");
109
+ return ((w = t.get(le)) != null ? w : 0) - ((I = t.get(C)) != null ? I : 0);
110
110
  }).forEach((l) => {
111
- let y = l.closest(ue);
112
- y ? y.appendChild(l.parentElement === y ? l : l.closest(`${ue} > *`)) : v.appendChild(l.parentElement === v ? l : l.closest(`${ue} > *`));
113
- }), c.sort((l, y) => y[1] - l[1]).forEach((l) => {
114
- var y;
115
- let w = (y = I.current) == null ? void 0 : y.querySelector(`${ee}[${B}="${encodeURIComponent(l[0])}"]`);
111
+ let b = l.closest(ue);
112
+ b ? b.appendChild(l.parentElement === b ? l : l.closest(`${ue} > *`)) : v.appendChild(l.parentElement === v ? l : l.closest(`${ue} > *`));
113
+ }), d.sort((l, b) => b[1] - l[1]).forEach((l) => {
114
+ var b;
115
+ let w = (b = N.current) == null ? void 0 : b.querySelector(`${Z}[${q}="${encodeURIComponent(l[0])}"]`);
116
116
  w?.parentElement.appendChild(w);
117
117
  });
118
118
  }
119
- function Y() {
120
- let t = V().find((v) => v.getAttribute("aria-disabled") !== "true"), c = t?.getAttribute(B);
121
- j.setState("value", c || void 0);
119
+ function O() {
120
+ let t = V().find((v) => v.getAttribute("aria-disabled") !== "true"), d = t?.getAttribute(q);
121
+ E.setState("value", d || void 0);
122
122
  }
123
- function T() {
124
- var t, c, v, l;
123
+ function J() {
124
+ var t, d, v, l;
125
125
  if (!r.current.search || s.current.shouldFilter === !1) {
126
126
  r.current.filtered.count = h.current.size;
127
127
  return;
128
128
  }
129
129
  r.current.filtered.groups = /* @__PURE__ */ new Set();
130
- let y = 0;
130
+ let b = 0;
131
131
  for (let w of h.current) {
132
- let R = (c = (t = u.current.get(w)) == null ? void 0 : t.value) != null ? c : "", C = (l = (v = u.current.get(w)) == null ? void 0 : v.keywords) != null ? l : [], le = X(R, C);
133
- r.current.filtered.items.set(w, le), le > 0 && y++;
132
+ let I = (d = (t = c.current.get(w)) == null ? void 0 : t.value) != null ? d : "", C = (l = (v = c.current.get(w)) == null ? void 0 : v.keywords) != null ? l : [], le = H(I, C);
133
+ r.current.filtered.items.set(w, le), le > 0 && b++;
134
134
  }
135
- for (let [w, R] of o.current) for (let C of R) if (r.current.filtered.items.get(C) > 0) {
135
+ for (let [w, I] of o.current) for (let C of I) if (r.current.filtered.items.get(C) > 0) {
136
136
  r.current.filtered.groups.add(w);
137
137
  break;
138
138
  }
139
- r.current.filtered.count = y;
139
+ r.current.filtered.count = b;
140
140
  }
141
- function ne() {
142
- var t, c, v;
143
- let l = L();
144
- l && (((t = l.parentElement) == null ? void 0 : t.firstChild) === l && ((v = (c = l.closest(ee)) == null ? void 0 : c.querySelector(We)) == null || v.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
141
+ function X() {
142
+ var t, d, v;
143
+ let l = D();
144
+ l && (((t = l.parentElement) == null ? void 0 : t.firstChild) === l && ((v = (d = l.closest(Z)) == null ? void 0 : d.querySelector(Je)) == null || v.scrollIntoView({ block: "nearest" })), l.scrollIntoView({ block: "nearest" }));
145
145
  }
146
- function L() {
146
+ function D() {
147
147
  var t;
148
- return (t = I.current) == null ? void 0 : t.querySelector(`${xe}[aria-selected="true"]`);
148
+ return (t = N.current) == null ? void 0 : t.querySelector(`${xe}[aria-selected="true"]`);
149
149
  }
150
150
  function V() {
151
151
  var t;
152
- return Array.from(((t = I.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
152
+ return Array.from(((t = N.current) == null ? void 0 : t.querySelectorAll(ve)) || []);
153
153
  }
154
- function Q(t) {
155
- let c = V()[t];
156
- c && j.setState("value", c.getAttribute(B));
154
+ function Y(t) {
155
+ let d = V()[t];
156
+ d && E.setState("value", d.getAttribute(q));
157
157
  }
158
- function Z(t) {
159
- var c;
160
- let v = L(), l = V(), y = l.findIndex((R) => R === v), w = l[y + t];
161
- (c = s.current) != null && c.loop && (w = y + t < 0 ? l[l.length - 1] : y + t === l.length ? l[0] : l[y + t]), w && j.setState("value", w.getAttribute(B));
158
+ function Q(t) {
159
+ var d;
160
+ let v = D(), l = V(), b = l.findIndex((I) => I === v), w = l[b + t];
161
+ (d = s.current) != null && d.loop && (w = b + t < 0 ? l[l.length - 1] : b + t === l.length ? l[0] : l[b + t]), w && E.setState("value", w.getAttribute(q));
162
162
  }
163
- function ae(t) {
164
- let c = L(), v = c?.closest(ee), l;
165
- for (; v && !l; ) v = t > 0 ? at(v, ee) : lt(v, ee), l = v?.querySelector(ve);
166
- l ? j.setState("value", l.getAttribute(B)) : Z(t);
163
+ function ne(t) {
164
+ let d = D(), v = d?.closest(Z), l;
165
+ for (; v && !l; ) v = t > 0 ? lt(v, Z) : ot(v, Z), l = v?.querySelector(ve);
166
+ l ? E.setState("value", l.getAttribute(q)) : Q(t);
167
167
  }
168
- let f = () => Q(V().length - 1), N = (t) => {
169
- t.preventDefault(), t.metaKey ? f() : t.altKey ? ae(1) : Z(1);
170
- }, q = (t) => {
171
- t.preventDefault(), t.metaKey ? Q(0) : t.altKey ? ae(-1) : Z(-1);
168
+ let ae = () => Y(V().length - 1), f = (t) => {
169
+ t.preventDefault(), t.metaKey ? ae() : t.altKey ? ne(1) : Q(1);
170
+ }, $ = (t) => {
171
+ t.preventDefault(), t.metaKey ? Y(0) : t.altKey ? ne(-1) : Q(-1);
172
172
  };
173
- return a.createElement(P.div, { ref: n, tabIndex: -1, ...W, "cmdk-root": "", onKeyDown: (t) => {
174
- var c;
175
- (c = W.onKeyDown) == null || c.call(W, t);
173
+ return a.createElement(F.div, { ref: n, tabIndex: -1, ...y, "cmdk-root": "", onKeyDown: (t) => {
174
+ var d;
175
+ (d = y.onKeyDown) == null || d.call(y, t);
176
176
  let v = t.nativeEvent.isComposing || t.keyCode === 229;
177
177
  if (!(t.defaultPrevented || v)) switch (t.key) {
178
178
  case "n":
179
179
  case "j": {
180
- g && t.ctrlKey && N(t);
180
+ L && t.ctrlKey && f(t);
181
181
  break;
182
182
  }
183
183
  case "ArrowDown": {
184
- N(t);
184
+ f(t);
185
185
  break;
186
186
  }
187
187
  case "p":
188
188
  case "k": {
189
- g && t.ctrlKey && q(t);
189
+ L && t.ctrlKey && $(t);
190
190
  break;
191
191
  }
192
192
  case "ArrowUp": {
193
- q(t);
193
+ $(t);
194
194
  break;
195
195
  }
196
196
  case "Home": {
197
- t.preventDefault(), Q(0);
197
+ t.preventDefault(), Y(0);
198
198
  break;
199
199
  }
200
200
  case "End": {
201
- t.preventDefault(), f();
201
+ t.preventDefault(), ae();
202
202
  break;
203
203
  }
204
204
  case "Enter": {
205
205
  t.preventDefault();
206
- let l = L();
206
+ let l = D();
207
207
  if (l) {
208
- let y = new Event(se);
209
- l.dispatchEvent(y);
208
+ let b = new Event(se);
209
+ l.dispatchEvent(b);
210
210
  }
211
211
  }
212
212
  }
213
- } }, a.createElement("label", { "cmdk-label": "", htmlFor: K.inputId, id: K.labelId, style: dt }, b), oe(e, (t) => a.createElement(ye.Provider, { value: j }, a.createElement(be.Provider, { value: K }, t))));
214
- }), Xe = a.forwardRef((e, n) => {
213
+ } }, a.createElement("label", { "cmdk-label": "", htmlFor: U.inputId, id: U.labelId, style: ut }, x), oe(e, (t) => a.createElement(ye.Provider, { value: E }, a.createElement(be.Provider, { value: U }, t))));
214
+ }), Ye = a.forwardRef((e, n) => {
215
215
  var r, h;
216
- let o = G(), u = a.useRef(null), m = a.useContext(ke), s = re(), b = Se(e), i = (h = (r = b.current) == null ? void 0 : r.forceMount) != null ? h : m?.forceMount;
216
+ let o = W(), c = a.useRef(null), m = a.useContext(ke), s = te(), x = Se(e), i = (h = (r = x.current) == null ? void 0 : r.forceMount) != null ? h : m?.forceMount;
217
217
  z(() => {
218
218
  if (!i) return s.item(o, m?.id);
219
219
  }, [i]);
220
- let x = Ee(o, u, [e.value, e.children, u], e.keywords), d = me(), S = D((k) => k.value && k.value === x.current), E = D((k) => i || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
220
+ let g = Ee(o, c, [e.value, e.children, c], e.keywords), u = me(), j = P((k) => k.value && k.value === g.current), S = P((k) => i || s.filter() === !1 ? !0 : k.search ? k.filtered.items.get(o) > 0 : !0);
221
221
  a.useEffect(() => {
222
- let k = u.current;
223
- if (!(!k || e.disabled)) return k.addEventListener(se, $), () => k.removeEventListener(se, $);
224
- }, [E, e.onSelect, e.disabled]);
225
- function $() {
226
- var k, j;
227
- H(), (j = (k = b.current).onSelect) == null || j.call(k, x.current);
222
+ let k = c.current;
223
+ if (!(!k || e.disabled)) return k.addEventListener(se, R), () => k.removeEventListener(se, R);
224
+ }, [S, e.onSelect, e.disabled]);
225
+ function R() {
226
+ var k, E;
227
+ G(), (E = (k = x.current).onSelect) == null || E.call(k, g.current);
228
228
  }
229
- function H() {
230
- d.setState("value", x.current, !0);
229
+ function G() {
230
+ u.setState("value", g.current, !0);
231
231
  }
232
- if (!E) return null;
233
- let { disabled: g, value: W, onSelect: A, forceMount: J, keywords: F, ...I } = e;
234
- return a.createElement(P.div, { ref: te(u, n), ...I, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!g, "aria-selected": !!S, "data-disabled": !!g, "data-selected": !!S, onPointerMove: g || s.getDisablePointerSelection() ? void 0 : H, onClick: g ? void 0 : $ }, e.children);
235
- }), Ye = a.forwardRef((e, n) => {
236
- let { heading: r, children: h, forceMount: o, ...u } = e, m = G(), s = a.useRef(null), b = a.useRef(null), i = G(), x = re(), d = D((E) => o || x.filter() === !1 ? !0 : E.search ? E.filtered.groups.has(m) : !0);
237
- z(() => x.group(m), []), Ee(m, s, [e.value, e.heading, b]);
238
- let S = a.useMemo(() => ({ id: m, forceMount: o }), [o]);
239
- return a.createElement(P.div, { ref: te(s, n), ...u, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, r && a.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), oe(e, (E) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, a.createElement(ke.Provider, { value: S }, E))));
232
+ if (!S) return null;
233
+ let { disabled: L, value: y, onSelect: re, forceMount: A, keywords: K, ...N } = e;
234
+ return a.createElement(F.div, { ref: ee(c, n), ...N, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!L, "aria-selected": !!j, "data-disabled": !!L, "data-selected": !!j, onPointerMove: L || s.getDisablePointerSelection() ? void 0 : G, onClick: L ? void 0 : R }, e.children);
240
235
  }), Qe = a.forwardRef((e, n) => {
241
- let { alwaysRender: r, ...h } = e, o = a.useRef(null), u = D((m) => !m.search);
242
- return !r && !u ? null : a.createElement(P.div, { ref: te(o, n), ...h, "cmdk-separator": "", role: "separator" });
236
+ let { heading: r, children: h, forceMount: o, ...c } = e, m = W(), s = a.useRef(null), x = a.useRef(null), i = W(), g = te(), u = P((S) => o || g.filter() === !1 ? !0 : S.search ? S.filtered.groups.has(m) : !0);
237
+ z(() => g.group(m), []), Ee(m, s, [e.value, e.heading, x]);
238
+ let j = a.useMemo(() => ({ id: m, forceMount: o }), [o]);
239
+ return a.createElement(F.div, { ref: ee(s, n), ...c, "cmdk-group": "", role: "presentation", hidden: u ? void 0 : !0 }, r && a.createElement("div", { ref: x, "cmdk-group-heading": "", "aria-hidden": !0, id: i }, r), oe(e, (S) => a.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? i : void 0 }, a.createElement(ke.Provider, { value: j }, S))));
243
240
  }), Ze = a.forwardRef((e, n) => {
244
- let { onValueChange: r, ...h } = e, o = e.value != null, u = me(), m = D((i) => i.search), s = D((i) => i.selectedItemId), b = re();
241
+ let { alwaysRender: r, ...h } = e, o = a.useRef(null), c = P((m) => !m.search);
242
+ return !r && !c ? null : a.createElement(F.div, { ref: ee(o, n), ...h, "cmdk-separator": "", role: "separator" });
243
+ }), et = a.forwardRef((e, n) => {
244
+ let { onValueChange: r, ...h } = e, o = e.value != null, c = me(), m = P((i) => i.search), s = P((i) => i.selectedItemId), x = te();
245
245
  return a.useEffect(() => {
246
- e.value != null && u.setState("search", e.value);
247
- }, [e.value]), a.createElement(P.input, { ref: n, ...h, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": s, id: b.inputId, type: "text", value: o ? e.value : m, onChange: (i) => {
248
- o || u.setState("search", i.target.value), r?.(i.target.value);
246
+ e.value != null && c.setState("search", e.value);
247
+ }, [e.value]), a.createElement(F.input, { ref: n, ...h, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": x.listId, "aria-labelledby": x.labelId, "aria-activedescendant": s, id: x.inputId, type: "text", value: o ? e.value : m, onChange: (i) => {
248
+ o || c.setState("search", i.target.value), r?.(i.target.value);
249
249
  } });
250
- }), et = a.forwardRef((e, n) => {
251
- let { children: r, label: h = "Suggestions", ...o } = e, u = a.useRef(null), m = a.useRef(null), s = D((i) => i.selectedItemId), b = re();
250
+ }), tt = a.forwardRef((e, n) => {
251
+ let { children: r, label: h = "Suggestions", ...o } = e, c = a.useRef(null), m = a.useRef(null), s = P((i) => i.selectedItemId), x = te();
252
252
  return a.useEffect(() => {
253
- if (m.current && u.current) {
254
- let i = m.current, x = u.current, d, S = new ResizeObserver(() => {
255
- d = requestAnimationFrame(() => {
256
- let E = i.offsetHeight;
257
- x.style.setProperty("--cmdk-list-height", E.toFixed(1) + "px");
253
+ if (m.current && c.current) {
254
+ let i = m.current, g = c.current, u, j = new ResizeObserver(() => {
255
+ u = requestAnimationFrame(() => {
256
+ let S = i.offsetHeight;
257
+ g.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
258
258
  });
259
259
  });
260
- return S.observe(i), () => {
261
- cancelAnimationFrame(d), S.unobserve(i);
260
+ return j.observe(i), () => {
261
+ cancelAnimationFrame(u), j.unobserve(i);
262
262
  };
263
263
  }
264
- }, []), a.createElement(P.div, { ref: te(u, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": s, "aria-label": h, id: b.listId }, oe(e, (i) => a.createElement("div", { ref: te(m, b.listInnerRef), "cmdk-list-sizer": "" }, i)));
265
- }), tt = a.forwardRef((e, n) => {
266
- let { open: r, onOpenChange: h, overlayClassName: o, contentClassName: u, container: m, ...s } = e;
267
- return a.createElement(Ce, { open: r, onOpenChange: h }, a.createElement(Ie, { container: m }, a.createElement(Re, { "cmdk-overlay": "", className: o }), a.createElement(Ae, { "aria-label": e.label, "cmdk-dialog": "", className: u }, a.createElement(we, { ref: n, ...s }))));
268
- }), rt = a.forwardRef((e, n) => D((r) => r.filtered.count === 0) ? a.createElement(P.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), nt = a.forwardRef((e, n) => {
269
- let { progress: r, children: h, label: o = "Loading...", ...u } = e;
270
- return a.createElement(P.div, { ref: n, ...u, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, oe(e, (m) => a.createElement("div", { "aria-hidden": !0 }, m)));
271
- }), U = Object.assign(we, { List: et, Item: Xe, Input: Ze, Group: Ye, Separator: Qe, Dialog: tt, Empty: rt, Loading: nt });
272
- function at(e, n) {
264
+ }, []), a.createElement(F.div, { ref: ee(c, n), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": s, "aria-label": h, id: x.listId }, oe(e, (i) => a.createElement("div", { ref: ee(m, x.listInnerRef), "cmdk-list-sizer": "" }, i)));
265
+ }), rt = a.forwardRef((e, n) => {
266
+ let { open: r, onOpenChange: h, overlayClassName: o, contentClassName: c, container: m, ...s } = e;
267
+ return a.createElement(Re, { open: r, onOpenChange: h }, a.createElement(Ae, { container: m }, a.createElement(Ne, { "cmdk-overlay": "", className: o }), a.createElement($e, { "aria-label": e.label, "cmdk-dialog": "", className: c }, a.createElement(we, { ref: n, ...s }))));
268
+ }), nt = a.forwardRef((e, n) => P((r) => r.filtered.count === 0) ? a.createElement(F.div, { ref: n, ...e, "cmdk-empty": "", role: "presentation" }) : null), at = a.forwardRef((e, n) => {
269
+ let { progress: r, children: h, label: o = "Loading...", ...c } = e;
270
+ return a.createElement(F.div, { ref: n, ...c, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, oe(e, (m) => a.createElement("div", { "aria-hidden": !0 }, m)));
271
+ }), _ = Object.assign(we, { List: tt, Item: Ye, Input: et, Group: Qe, Separator: Ze, Dialog: rt, Empty: nt, Loading: at });
272
+ function lt(e, n) {
273
273
  let r = e.nextElementSibling;
274
274
  for (; r; ) {
275
275
  if (r.matches(n)) return r;
276
276
  r = r.nextElementSibling;
277
277
  }
278
278
  }
279
- function lt(e, n) {
279
+ function ot(e, n) {
280
280
  let r = e.previousElementSibling;
281
281
  for (; r; ) {
282
282
  if (r.matches(n)) return r;
@@ -290,61 +290,64 @@ function Se(e) {
290
290
  }), n;
291
291
  }
292
292
  var z = typeof window > "u" ? a.useEffect : a.useLayoutEffect;
293
- function _(e) {
293
+ function B(e) {
294
294
  let n = a.useRef();
295
295
  return n.current === void 0 && (n.current = e()), n;
296
296
  }
297
- function D(e) {
297
+ function P(e) {
298
298
  let n = me(), r = () => e(n.snapshot());
299
299
  return a.useSyncExternalStore(n.subscribe, r, r);
300
300
  }
301
301
  function Ee(e, n, r, h = []) {
302
- let o = a.useRef(), u = re();
302
+ let o = a.useRef(), c = te();
303
303
  return z(() => {
304
304
  var m;
305
305
  let s = (() => {
306
306
  var i;
307
- for (let x of r) {
308
- if (typeof x == "string") return x.trim();
309
- if (typeof x == "object" && "current" in x) return x.current ? (i = x.current.textContent) == null ? void 0 : i.trim() : o.current;
307
+ for (let g of r) {
308
+ if (typeof g == "string") return g.trim();
309
+ if (typeof g == "object" && "current" in g) return g.current ? (i = g.current.textContent) == null ? void 0 : i.trim() : o.current;
310
310
  }
311
- })(), b = h.map((i) => i.trim());
312
- u.value(e, s, b), (m = n.current) == null || m.setAttribute(B, s), o.current = s;
311
+ })(), x = h.map((i) => i.trim());
312
+ c.value(e, s, x), (m = n.current) == null || m.setAttribute(q, s), o.current = s;
313
313
  }), o;
314
314
  }
315
- var ot = () => {
316
- let [e, n] = a.useState(), r = _(() => /* @__PURE__ */ new Map());
315
+ var it = () => {
316
+ let [e, n] = a.useState(), r = B(() => /* @__PURE__ */ new Map());
317
317
  return z(() => {
318
318
  r.current.forEach((h) => h()), r.current = /* @__PURE__ */ new Map();
319
319
  }, [e]), (h, o) => {
320
320
  r.current.set(h, o), n({});
321
321
  };
322
322
  };
323
- function it(e) {
323
+ function dt(e) {
324
324
  let n = e.type;
325
325
  return typeof n == "function" ? n(e.props) : "render" in n ? n.render(e.props) : e;
326
326
  }
327
327
  function oe({ asChild: e, children: n }, r) {
328
- return e && a.isValidElement(n) ? a.cloneElement(it(n), { ref: n.ref }, r(n.props.children)) : r(n);
328
+ return e && a.isValidElement(n) ? a.cloneElement(dt(n), { ref: n.ref }, r(n.props.children)) : r(n);
329
329
  }
330
- var dt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
331
- function ut({
330
+ var ut = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
331
+ function ct({
332
332
  className: e,
333
333
  ...n
334
334
  }) {
335
335
  return /* @__PURE__ */ p.jsx(
336
- U,
336
+ _,
337
337
  {
338
338
  "data-slot": "command",
339
339
  className: M(
340
- "adm:bg-popover adm:text-popover-foreground adm:flex adm:h-full adm:w-full adm:flex-col adm:overflow-hidden adm:rounded-md",
340
+ `
341
+ adm:flex adm:h-full adm:w-full adm:flex-col adm:overflow-hidden
342
+ adm:rounded-md adm:bg-popover adm:text-popover-foreground
343
+ `,
341
344
  e
342
345
  ),
343
346
  ...n
344
347
  }
345
348
  );
346
349
  }
347
- function ct({
350
+ function st({
348
351
  className: e,
349
352
  ...n
350
353
  }) {
@@ -352,15 +355,22 @@ function ct({
352
355
  "div",
353
356
  {
354
357
  "data-slot": "command-input-wrapper",
355
- className: "adm:flex adm:h-9 adm:items-center adm:gap-2 adm:border-b adm:px-3",
358
+ className: `
359
+ adm:flex adm:h-9 adm:items-center adm:gap-2 adm:border-b adm:px-3
360
+ `,
356
361
  children: [
357
- /* @__PURE__ */ p.jsx(Ve, { className: "adm:size-4 adm:shrink-0 adm:opacity-50" }),
362
+ /* @__PURE__ */ p.jsx(ze, { className: "adm:size-4 adm:shrink-0 adm:opacity-50" }),
358
363
  /* @__PURE__ */ p.jsx(
359
- U.Input,
364
+ _.Input,
360
365
  {
361
366
  "data-slot": "command-input",
362
367
  className: M(
363
- "adm:placeholder:text-muted-foreground adm:flex adm:h-10 adm:w-full adm:rounded-md adm:bg-transparent adm:py-3 adm:text-sm adm:outline-hidden adm:disabled:cursor-not-allowed adm:disabled:opacity-50",
368
+ `
369
+ adm:flex adm:h-10 adm:w-full adm:rounded-md adm:bg-transparent
370
+ adm:py-3 adm:text-sm adm:outline-hidden
371
+ adm:placeholder:text-muted-foreground
372
+ adm:disabled:cursor-not-allowed adm:disabled:opacity-50
373
+ `,
364
374
  e
365
375
  ),
366
376
  ...n
@@ -370,28 +380,31 @@ function ct({
370
380
  }
371
381
  );
372
382
  }
373
- function st({
383
+ function mt({
374
384
  className: e,
375
385
  ...n
376
386
  }) {
377
387
  return /* @__PURE__ */ p.jsx(
378
- U.List,
388
+ _.List,
379
389
  {
380
390
  "data-slot": "command-list",
381
391
  className: M(
382
- "adm:max-h-[300px] adm:scroll-py-1 adm:overflow-x-hidden adm:overflow-y-auto",
392
+ `
393
+ adm:max-h-[300px] adm:scroll-py-1 adm:overflow-x-hidden
394
+ adm:overflow-y-auto
395
+ `,
383
396
  e
384
397
  ),
385
398
  ...n
386
399
  }
387
400
  );
388
401
  }
389
- function mt({
402
+ function ft({
390
403
  className: e,
391
404
  ...n
392
405
  }) {
393
406
  return /* @__PURE__ */ p.jsx(
394
- U.Empty,
407
+ _.Empty,
395
408
  {
396
409
  "data-slot": "command-empty",
397
410
  className: M("adm:py-6 adm:text-center adm:text-sm", e),
@@ -399,160 +412,196 @@ function mt({
399
412
  }
400
413
  );
401
414
  }
402
- function ft({
415
+ function pt({
403
416
  className: e,
404
417
  ...n
405
418
  }) {
406
419
  return /* @__PURE__ */ p.jsx(
407
- U.Group,
420
+ _.Group,
408
421
  {
409
422
  "data-slot": "command-group",
410
423
  className: M(
411
- "adm:text-foreground adm:overflow-hidden adm:p-1 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-muted-foreground adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:px-2 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:py-1.5 adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-xs adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:font-medium",
424
+ `
425
+ adm:overflow-hidden adm:p-1 adm:text-foreground
426
+ adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:px-2
427
+ adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:py-1.5
428
+ adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-xs
429
+ adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:font-medium
430
+ adm:**:**:**:**:**:**:[&_[cmdk-group-heading]]:text-muted-foreground
431
+ `,
412
432
  e
413
433
  ),
414
434
  ...n
415
435
  }
416
436
  );
417
437
  }
418
- function pt({
438
+ function ht({
419
439
  className: e,
420
440
  ...n
421
441
  }) {
422
442
  return /* @__PURE__ */ p.jsx(
423
- U.Item,
443
+ _.Item,
424
444
  {
425
445
  "data-slot": "command-item",
426
446
  className: M(
427
- "adm:data-[selected=true]:bg-accent adm:data-[selected=true]:text-accent-foreground adm:[&_svg:not([class*=text-])]:text-muted-foreground adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2 adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden adm:select-none adm:data-[disabled=true]:pointer-events-none adm:data-[disabled=true]:opacity-50 adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0 adm:[&_svg:not([class*=size-])]:size-4",
447
+ `
448
+ adm:relative adm:flex adm:cursor-default adm:items-center adm:gap-2
449
+ adm:rounded-sm adm:px-2 adm:py-1.5 adm:text-sm adm:outline-hidden
450
+ adm:select-none
451
+ adm:data-[disabled=true]:pointer-events-none
452
+ adm:data-[disabled=true]:opacity-50
453
+ adm:data-[selected=true]:bg-accent
454
+ adm:data-[selected=true]:text-accent-foreground
455
+ adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
456
+ adm:[&_svg:not([class*=size-])]:size-4
457
+ adm:[&_svg:not([class*=text-])]:text-muted-foreground
458
+ `,
428
459
  e
429
460
  ),
430
461
  ...n
431
462
  }
432
463
  );
433
464
  }
434
- function Rt({
465
+ function At({
435
466
  searchable: e,
436
467
  multiple: n,
437
468
  icon: r,
438
469
  value: h,
439
470
  onValueChange: o,
440
- labels: u,
471
+ labels: c,
441
472
  options: m,
442
473
  classNames: s,
443
- selectedFeedback: b = "checkbox",
474
+ selectedFeedback: x = "checkbox",
444
475
  alwaysShowPlaceholder: i = !1,
445
- valuePosition: x = "right",
446
- renders: d
476
+ valuePosition: g = "right",
477
+ renders: u
447
478
  }) {
448
- const [S, E] = fe(!1), [$, H] = fe(n ? [] : ""), g = h !== void 0 ? h : $, A = { ...{
479
+ const j = Ie(null), [S, R] = fe(!1), [G, L] = fe(n ? [] : ""), y = h !== void 0 ? h : G, A = { ...{
449
480
  placeholder: "Select options...",
450
481
  searchPlaceholder: "Search options...",
451
482
  noItemsFound: "No options found.",
452
483
  multipleSelected: (f) => `${f} options selected`
453
- }, ...u }, J = (f) => {
454
- o ? o(f) : H(f);
455
- }, F = () => n && Array.isArray(g) ? g.length === 0 ? null : g.length === 1 ? m.find((f) => f.value === g[0])?.label : A.multipleSelected?.(g.length) || `${g.length} options selected` : !n && typeof g == "string" && g ? m.find((f) => f.value === g)?.label : null, I = () => n && Array.isArray(g) ? g.length > 0 : typeof g == "string" && g !== "", k = (f) => n && Array.isArray(g) ? g.includes(f) : g === f, j = (f) => {
484
+ }, ...c }, K = (f) => {
485
+ o ? o(f) : L(f);
486
+ }, N = () => n && Array.isArray(y) ? y.length === 0 ? null : y.length === 1 ? m.find((f) => f.value === y[0])?.label : A.multipleSelected?.(y.length) || `${y.length} options selected` : !n && typeof y == "string" && y ? m.find((f) => f.value === y)?.label : null, k = () => n && Array.isArray(y) ? y.length > 0 : typeof y == "string" && y !== "", E = (f) => n && Array.isArray(y) ? y.includes(f) : y === f, U = (f) => {
456
487
  if (n) {
457
- const N = Array.isArray(g) ? g : [], q = N.includes(f) ? N.filter((t) => t !== f) : [...N, f];
458
- J(q);
488
+ const $ = Array.isArray(y) ? y : [], t = $.includes(f) ? $.filter((d) => d !== f) : [...$, f];
489
+ K(t);
459
490
  } else
460
- J(f === g ? "" : f), E(!1);
461
- }, K = (f) => {
462
- const N = k(f), q = m.find((t) => t.value === f);
463
- return d?.selectedFeedback ? d.selectedFeedback({
464
- option: q,
465
- isSelected: N,
466
- type: b
467
- }) : b === "check" ? /* @__PURE__ */ p.jsx("span", { className: M("adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center adm:justify-center", s?.check), children: N && /* @__PURE__ */ p.jsx(Pe, { className: "adm:size-4" }) }) : /* @__PURE__ */ p.jsx(
468
- De,
491
+ K(f === y ? "" : f), R(!1);
492
+ }, H = (f) => {
493
+ const $ = E(f), t = m.find((d) => d.value === f);
494
+ return u?.selectedFeedback ? u.selectedFeedback({
495
+ option: t,
496
+ isSelected: $,
497
+ type: x
498
+ }) : x === "check" ? /* @__PURE__ */ p.jsx(
499
+ "span",
469
500
  {
470
- checked: N,
501
+ className: M(`
502
+ adm:absolute adm:right-2 adm:flex adm:size-3.5 adm:items-center
503
+ adm:justify-center
504
+ `, s?.check),
505
+ children: $ && /* @__PURE__ */ p.jsx(Fe, { className: "adm:size-4" })
506
+ }
507
+ ) : /* @__PURE__ */ p.jsx(
508
+ Ce,
509
+ {
510
+ checked: $,
471
511
  className: s?.checkbox
472
512
  }
473
513
  );
474
- }, X = () => d?.placeholder ? d.placeholder({
514
+ }, T = () => u?.placeholder ? u.placeholder({
475
515
  text: A.placeholder || "",
476
- hasValue: I()
477
- }) : /* @__PURE__ */ p.jsx("span", { className: "adm:opacity-70", children: A.placeholder }), O = () => d?.displayValue ? d.displayValue({
478
- text: F() ?? null,
479
- value: g
480
- }) : /* @__PURE__ */ p.jsx("span", { children: F() }), Y = () => i ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
516
+ hasValue: k()
517
+ }) : /* @__PURE__ */ p.jsx("span", { className: "adm:opacity-70", children: A.placeholder }), O = () => u?.displayValue ? u.displayValue({
518
+ text: N() ?? null,
519
+ value: y
520
+ }) : /* @__PURE__ */ p.jsx("span", { children: N() }), J = () => i ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
481
521
  r && /* @__PURE__ */ p.jsx(r, { className: "adm:opacity-50" }),
482
- X(),
483
- I() && x === "left" && O()
522
+ T(),
523
+ k() && g === "left" && O()
484
524
  ] }) : /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
485
525
  r && /* @__PURE__ */ p.jsx(r, { className: "adm:opacity-50" }),
486
- I() ? O() : X()
487
- ] }), T = () => d?.triggerIcon ? d.triggerIcon({
526
+ k() ? O() : T()
527
+ ] }), X = () => u?.triggerIcon ? u.triggerIcon({
488
528
  open: S
489
- }) : /* @__PURE__ */ p.jsx(Fe, { className: "adm:size-4 adm:opacity-50" }), ne = () => i && I() && x === "right" ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
529
+ }) : /* @__PURE__ */ p.jsx(Oe, { className: "adm:size-4 adm:opacity-50" }), D = () => i && k() && g === "right" ? /* @__PURE__ */ p.jsxs("span", { className: "adm:flex adm:items-center adm:gap-2", children: [
490
530
  O(),
491
- T()
492
- ] }) : /* @__PURE__ */ p.jsx("span", { className: "adm:flex adm:items-center adm:gap-2", children: T() }), L = () => d?.trigger ? d.trigger({
531
+ X()
532
+ ] }) : /* @__PURE__ */ p.jsx("span", { className: "adm:flex adm:items-center adm:gap-2", children: X() }), V = () => u?.trigger ? u.trigger({
493
533
  open: S,
494
- value: g,
495
- displayText: F() ?? null,
534
+ value: y,
535
+ displayText: N() ?? null,
496
536
  placeholder: A.placeholder || "",
497
- hasValue: I(),
537
+ hasValue: k(),
498
538
  icon: r
499
539
  }) : /* @__PURE__ */ p.jsxs(
500
540
  je,
501
541
  {
542
+ ref: j,
502
543
  variant: "outline",
503
544
  role: "combobox",
504
545
  "aria-expanded": S,
505
546
  className: M("adm:justify-between adm:font-normal", s?.trigger),
506
547
  children: [
507
- Y(),
508
- ne()
548
+ J(),
549
+ D()
509
550
  ]
510
551
  }
511
- ), V = () => e ? d?.searchInput ? d.searchInput({
552
+ ), Y = () => e ? u?.searchInput ? u.searchInput({
512
553
  placeholder: A.searchPlaceholder || ""
513
554
  }) : /* @__PURE__ */ p.jsx(
514
- ct,
555
+ st,
515
556
  {
516
557
  placeholder: A.searchPlaceholder,
517
558
  className: s?.input
518
559
  }
519
- ) : null, Q = () => d?.empty ? d.empty({
560
+ ) : null, Q = () => u?.empty ? u.empty({
520
561
  text: A.noItemsFound || ""
521
- }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: A.noItemsFound }), Z = (f) => d?.optionLabel ? d.optionLabel({
562
+ }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: A.noItemsFound }), ne = (f) => u?.optionLabel ? u.optionLabel({
522
563
  option: f
523
- }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: f.label }), ae = (f) => d?.option ? /* @__PURE__ */ p.jsx("div", { children: d.option({
564
+ }) : /* @__PURE__ */ p.jsx(p.Fragment, { children: f.label }), ae = (f) => u?.option ? /* @__PURE__ */ p.jsx("div", { children: u.option({
524
565
  option: f,
525
- isSelected: k(f.value),
526
- selectedFeedback: b
566
+ isSelected: E(f.value),
567
+ selectedFeedback: x
527
568
  }) }, f.value) : /* @__PURE__ */ p.jsxs(
528
- pt,
569
+ ht,
529
570
  {
530
571
  value: f.value,
531
- onSelect: j,
572
+ onSelect: U,
532
573
  disabled: f.disabled,
533
574
  className: M(
534
575
  s?.item,
535
- b === "check" && "adm:pr-8"
576
+ x === "check" && "adm:pr-8"
536
577
  ),
537
578
  children: [
538
- b === "checkbox" && K(f.value),
539
- Z(f),
540
- b === "check" && K(f.value)
579
+ x === "checkbox" && H(f.value),
580
+ ne(f),
581
+ x === "check" && H(f.value)
541
582
  ]
542
583
  },
543
584
  f.value
544
585
  );
545
- return /* @__PURE__ */ p.jsxs($e, { open: S, onOpenChange: E, children: [
546
- /* @__PURE__ */ p.jsx(Me, { asChild: !0, children: L() }),
547
- /* @__PURE__ */ p.jsx(Le, { align: "start", className: M("adm:p-0", s?.popover), children: /* @__PURE__ */ p.jsxs(ut, { className: s?.command, children: [
548
- V(),
549
- /* @__PURE__ */ p.jsxs(st, { className: s?.list, children: [
550
- /* @__PURE__ */ p.jsx(mt, { className: s?.empty, children: Q() }),
551
- /* @__PURE__ */ p.jsx(ft, { className: s?.group, children: m.map((f) => ae(f)) })
552
- ] })
553
- ] }) })
586
+ return /* @__PURE__ */ p.jsxs(Le, { open: S, onOpenChange: R, children: [
587
+ /* @__PURE__ */ p.jsx(De, { asChild: !0, children: V() }),
588
+ /* @__PURE__ */ p.jsx(
589
+ Pe,
590
+ {
591
+ align: "start",
592
+ className: M("adm:p-0", s?.popover),
593
+ style: { minWidth: j.current?.offsetWidth },
594
+ children: /* @__PURE__ */ p.jsxs(ct, { className: s?.command, children: [
595
+ Y(),
596
+ /* @__PURE__ */ p.jsxs(mt, { className: s?.list, children: [
597
+ /* @__PURE__ */ p.jsx(ft, { className: s?.empty, children: Q() }),
598
+ /* @__PURE__ */ p.jsx(pt, { className: s?.group, children: m.map((f) => ae(f)) })
599
+ ] })
600
+ ] })
601
+ }
602
+ )
554
603
  ] });
555
604
  }
556
605
  export {
557
- Rt as Combobox
606
+ At as Combobox
558
607
  };