@brightlocal/ui-components 3.2.0 → 3.3.0

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 (428) hide show
  1. package/AI_USAGE.md +10 -0
  2. package/README.md +3 -1
  3. package/component-meta.json +1271 -428
  4. package/deprecations.json +44 -0
  5. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  6. package/dist/accordion.cjs +1 -1
  7. package/dist/accordion.js +73 -102
  8. package/dist/alert-dialog.cjs +1 -1
  9. package/dist/alert-dialog.d.ts +6 -4
  10. package/dist/alert-dialog.d.ts.map +1 -1
  11. package/dist/alert-dialog.js +85 -133
  12. package/dist/alert.cjs +1 -1
  13. package/dist/alert.d.ts +4 -4
  14. package/dist/alert.d.ts.map +1 -1
  15. package/dist/alert.js +106 -168
  16. package/dist/aspect-ratio.cjs +1 -1
  17. package/dist/aspect-ratio.js +13 -16
  18. package/dist/avatar.cjs +1 -1
  19. package/dist/avatar.js +30 -45
  20. package/dist/badge.cjs +1 -1
  21. package/dist/badge.d.ts +23 -1
  22. package/dist/badge.d.ts.map +1 -1
  23. package/dist/badge.js +90 -91
  24. package/dist/banner.cjs +1 -1
  25. package/dist/banner.js +102 -148
  26. package/dist/blocks/empty-state.cjs +1 -1
  27. package/dist/blocks/empty-state.d.ts +20 -3
  28. package/dist/blocks/empty-state.d.ts.map +1 -1
  29. package/dist/blocks/empty-state.js +73 -140
  30. package/dist/blocks/input-list.cjs +2 -2
  31. package/dist/blocks/input-list.d.ts +2 -2
  32. package/dist/blocks/input-list.d.ts.map +1 -1
  33. package/dist/blocks/input-list.js +136 -176
  34. package/dist/blocks/progress-state.cjs +1 -1
  35. package/dist/blocks/progress-state.js +223 -347
  36. package/dist/blocks/sidebar.cjs +1 -1
  37. package/dist/blocks/sidebar.d.ts +11 -6
  38. package/dist/blocks/sidebar.d.ts.map +1 -1
  39. package/dist/blocks/sidebar.js +763 -1092
  40. package/dist/brand-illustration-motif.cjs +1 -1
  41. package/dist/brand-illustration-motif.js +40 -61
  42. package/dist/breadcrumb.cjs +1 -1
  43. package/dist/breadcrumb.js +62 -102
  44. package/dist/button-group.cjs +1 -1
  45. package/dist/button-group.js +23 -31
  46. package/dist/button.cjs +1 -1
  47. package/dist/button.d.ts +4 -2
  48. package/dist/button.d.ts.map +1 -1
  49. package/dist/button.js +149 -189
  50. package/dist/calendar.cjs +1 -1
  51. package/dist/calendar.d.ts +87 -3
  52. package/dist/calendar.d.ts.map +1 -1
  53. package/dist/calendar.js +116 -173
  54. package/dist/callout.cjs +1 -1
  55. package/dist/callout.js +73 -96
  56. package/dist/card.cjs +1 -1
  57. package/dist/card.d.ts +10 -4
  58. package/dist/card.d.ts.map +1 -1
  59. package/dist/card.js +233 -316
  60. package/dist/carousel.cjs +1 -1
  61. package/dist/carousel.d.ts +3 -3
  62. package/dist/carousel.d.ts.map +1 -1
  63. package/dist/carousel.js +174 -268
  64. package/dist/centred-layout.cjs +1 -1
  65. package/dist/centred-layout.js +27 -48
  66. package/dist/chart-empty.cjs +1 -1
  67. package/dist/chart-empty.js +18 -27
  68. package/dist/chart.cjs +7 -7
  69. package/dist/chart.d.ts +23 -13
  70. package/dist/chart.d.ts.map +1 -1
  71. package/dist/chart.js +445 -651
  72. package/dist/checkbox.cjs +1 -1
  73. package/dist/checkbox.js +36 -69
  74. package/dist/chip.cjs +1 -1
  75. package/dist/chip.js +116 -173
  76. package/dist/collapsible.cjs +1 -1
  77. package/dist/collapsible.d.ts.map +1 -1
  78. package/dist/collapsible.js +35 -41
  79. package/dist/combobox.cjs +3 -3
  80. package/dist/combobox.d.ts +14 -4
  81. package/dist/combobox.d.ts.map +1 -1
  82. package/dist/combobox.js +439 -638
  83. package/dist/command.cjs +1 -1
  84. package/dist/command.d.ts.map +1 -1
  85. package/dist/command.js +273 -420
  86. package/dist/context-menu.cjs +1 -1
  87. package/dist/context-menu.d.ts +5 -5
  88. package/dist/context-menu.d.ts.map +1 -1
  89. package/dist/context-menu.js +121 -191
  90. package/dist/data-table.cjs +1 -1
  91. package/dist/data-table.d.ts +280 -129
  92. package/dist/data-table.d.ts.map +1 -1
  93. package/dist/data-table.js +687 -948
  94. package/dist/date-picker.cjs +1 -1
  95. package/dist/date-picker.d.ts +15 -4
  96. package/dist/date-picker.d.ts.map +1 -1
  97. package/dist/date-picker.js +156 -231
  98. package/dist/delta.cjs +1 -0
  99. package/dist/delta.d.ts +79 -0
  100. package/dist/delta.d.ts.map +1 -0
  101. package/dist/delta.js +62 -0
  102. package/dist/description.cjs +1 -1
  103. package/dist/description.js +11 -20
  104. package/dist/dialog.cjs +1 -1
  105. package/dist/dialog.d.ts +1 -1
  106. package/dist/dialog.d.ts.map +1 -1
  107. package/dist/dialog.js +76 -116
  108. package/dist/drawer.cjs +1 -1
  109. package/dist/drawer.d.ts +11 -11
  110. package/dist/drawer.d.ts.map +1 -1
  111. package/dist/drawer.js +76 -134
  112. package/dist/dropdown-menu.cjs +1 -1
  113. package/dist/dropdown-menu.d.ts +6 -6
  114. package/dist/dropdown-menu.d.ts.map +1 -1
  115. package/dist/dropdown-menu.js +179 -300
  116. package/dist/field.cjs +1 -1
  117. package/dist/field.d.ts +9 -9
  118. package/dist/field.d.ts.map +1 -1
  119. package/dist/field.js +166 -286
  120. package/dist/global-layout.cjs +1 -1
  121. package/dist/global-layout.js +203 -342
  122. package/dist/grid.cjs +1 -1
  123. package/dist/grid.js +16 -29
  124. package/dist/header.cjs +1 -1
  125. package/dist/header.js +21 -38
  126. package/dist/height-transition.cjs +1 -1
  127. package/dist/height-transition.js +38 -55
  128. package/dist/hooks/use-breakpoint.cjs +1 -1
  129. package/dist/hooks/use-breakpoint.js +9 -9
  130. package/dist/hooks/use-debounce.cjs +1 -1
  131. package/dist/hooks/use-debounce.js +12 -11
  132. package/dist/hooks/use-delayed-pending.cjs +1 -1
  133. package/dist/hooks/use-delayed-pending.js +8 -9
  134. package/dist/hooks/use-filter-search-params.cjs +1 -0
  135. package/dist/hooks/use-filter-search-params.d.ts +93 -0
  136. package/dist/hooks/use-filter-search-params.d.ts.map +1 -0
  137. package/dist/hooks/use-filter-search-params.js +122 -0
  138. package/dist/hooks/use-mobile.cjs +1 -1
  139. package/dist/hooks/use-mobile.js +6 -6
  140. package/dist/hooks/use-overlay-pointer-lock.cjs +1 -1
  141. package/dist/hooks/use-overlay-pointer-lock.js +8 -9
  142. package/dist/hooks/use-prefers-reduced-motion.cjs +1 -1
  143. package/dist/hooks/use-prefers-reduced-motion.js +5 -8
  144. package/dist/hover-card.cjs +1 -1
  145. package/dist/hover-card.d.ts +1 -1
  146. package/dist/hover-card.d.ts.map +1 -1
  147. package/dist/hover-card.js +30 -62
  148. package/dist/index.cjs +1 -1
  149. package/dist/index.d.ts +6 -0
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +630 -608
  152. package/dist/info-tooltip.cjs +1 -1
  153. package/dist/info-tooltip.js +22 -36
  154. package/dist/input-chip.cjs +1 -1
  155. package/dist/input-chip.d.ts +32 -3
  156. package/dist/input-chip.d.ts.map +1 -1
  157. package/dist/input-chip.js +181 -230
  158. package/dist/input-group.cjs +1 -1
  159. package/dist/input-group.js +174 -221
  160. package/dist/input-otp.cjs +1 -1
  161. package/dist/input-otp.d.ts +3 -3
  162. package/dist/input-otp.d.ts.map +1 -1
  163. package/dist/input-otp.js +102 -146
  164. package/dist/input-password.cjs +1 -1
  165. package/dist/input-password.d.ts +12 -16
  166. package/dist/input-password.d.ts.map +1 -1
  167. package/dist/input-password.js +139 -171
  168. package/dist/input.cjs +1 -1
  169. package/dist/input.d.ts.map +1 -1
  170. package/dist/input.js +51 -73
  171. package/dist/label.cjs +1 -1
  172. package/dist/label.js +20 -38
  173. package/dist/lib/block-illustration.cjs +1 -1
  174. package/dist/lib/block-illustration.d.ts +1 -1
  175. package/dist/lib/block-illustration.d.ts.map +1 -1
  176. package/dist/lib/block-illustration.js +16 -18
  177. package/dist/lib/compose-event-handlers.cjs +1 -0
  178. package/dist/lib/compose-event-handlers.d.ts +9 -0
  179. package/dist/lib/compose-event-handlers.d.ts.map +1 -0
  180. package/dist/lib/compose-event-handlers.js +8 -0
  181. package/dist/lib/download-file.cjs +1 -0
  182. package/dist/lib/download-file.d.ts +14 -0
  183. package/dist/lib/download-file.d.ts.map +1 -0
  184. package/dist/lib/download-file.js +40 -0
  185. package/dist/lib/empty-canvas.cjs +1 -1
  186. package/dist/lib/empty-canvas.js +28 -56
  187. package/dist/lib/empty-chip.cjs +1 -1
  188. package/dist/lib/empty-chip.d.ts +14 -3
  189. package/dist/lib/empty-chip.d.ts.map +1 -1
  190. package/dist/lib/empty-chip.js +15 -11
  191. package/dist/lib/field-aria.cjs +1 -0
  192. package/dist/lib/field-aria.d.ts +34 -0
  193. package/dist/lib/field-aria.d.ts.map +1 -0
  194. package/dist/lib/field-aria.js +52 -0
  195. package/dist/lib/image-file-info.cjs +1 -0
  196. package/dist/lib/image-file-info.d.ts +25 -0
  197. package/dist/lib/image-file-info.d.ts.map +1 -0
  198. package/dist/lib/image-file-info.js +67 -0
  199. package/dist/lib/media-viewer-content.cjs +1 -0
  200. package/dist/lib/media-viewer-content.d.ts +102 -0
  201. package/dist/lib/media-viewer-content.d.ts.map +1 -0
  202. package/dist/lib/media-viewer-content.js +650 -0
  203. package/dist/lib/media-viewer-internal.cjs +1 -0
  204. package/dist/lib/media-viewer-internal.d.ts +98 -0
  205. package/dist/lib/media-viewer-internal.d.ts.map +1 -0
  206. package/dist/lib/media-viewer-internal.js +61 -0
  207. package/dist/lib/media-viewer-motion.cjs +1 -0
  208. package/dist/lib/media-viewer-motion.d.ts +40 -0
  209. package/dist/lib/media-viewer-motion.d.ts.map +1 -0
  210. package/dist/lib/media-viewer-motion.js +37 -0
  211. package/dist/lib/motion.cjs +1 -1
  212. package/dist/lib/motion.d.ts +8 -0
  213. package/dist/lib/motion.d.ts.map +1 -1
  214. package/dist/lib/motion.js +11 -10
  215. package/dist/lib/optical-center.cjs +1 -1
  216. package/dist/lib/optical-center.d.ts +1 -1
  217. package/dist/lib/optical-center.d.ts.map +1 -1
  218. package/dist/lib/optical-center.js +12 -5
  219. package/dist/lib/spring-settle.cjs +1 -1
  220. package/dist/lib/spring-settle.js +1 -1
  221. package/dist/lib/table-internal.cjs +1 -0
  222. package/dist/lib/table-internal.d.ts +62 -0
  223. package/dist/lib/table-internal.d.ts.map +1 -0
  224. package/dist/lib/table-internal.js +18 -0
  225. package/dist/lib/use-controllable.cjs +1 -0
  226. package/dist/lib/use-controllable.d.ts +12 -0
  227. package/dist/lib/use-controllable.d.ts.map +1 -0
  228. package/dist/lib/use-controllable.js +15 -0
  229. package/dist/lib/use-dev-warning.cjs +1 -1
  230. package/dist/lib/utils.cjs +1 -1
  231. package/dist/lib/utils.js +26 -33
  232. package/dist/link.cjs +1 -1
  233. package/dist/link.d.ts +1 -1
  234. package/dist/link.js +78 -124
  235. package/dist/list.cjs +1 -1
  236. package/dist/list.d.ts +8 -0
  237. package/dist/list.d.ts.map +1 -1
  238. package/dist/list.js +94 -156
  239. package/dist/loading.cjs +1 -1
  240. package/dist/loading.js +124 -151
  241. package/dist/logo-mark.cjs +1 -0
  242. package/dist/logo-mark.d.ts +79 -0
  243. package/dist/logo-mark.d.ts.map +1 -0
  244. package/dist/logo-mark.js +219 -0
  245. package/dist/logo.cjs +1 -1
  246. package/dist/logo.d.ts +1 -1
  247. package/dist/logo.d.ts.map +1 -1
  248. package/dist/logo.js +51 -87
  249. package/dist/map.cjs +1 -1
  250. package/dist/map.d.ts.map +1 -1
  251. package/dist/map.js +390 -586
  252. package/dist/media-empty.cjs +1 -1
  253. package/dist/media-empty.js +27 -42
  254. package/dist/media-viewer.cjs +1 -0
  255. package/dist/media-viewer.d.ts +224 -0
  256. package/dist/media-viewer.d.ts.map +1 -0
  257. package/dist/media-viewer.js +295 -0
  258. package/dist/menubar.cjs +1 -1
  259. package/dist/menubar.d.ts +14 -14
  260. package/dist/menubar.d.ts.map +1 -1
  261. package/dist/menubar.js +130 -267
  262. package/dist/multi-select-filter.cjs +1 -1
  263. package/dist/multi-select-filter.d.ts +9 -1
  264. package/dist/multi-select-filter.d.ts.map +1 -1
  265. package/dist/multi-select-filter.js +357 -446
  266. package/dist/navigation-menu.cjs +1 -1
  267. package/dist/navigation-menu.js +108 -172
  268. package/dist/pagination.cjs +1 -1
  269. package/dist/pagination.d.ts +36 -12
  270. package/dist/pagination.d.ts.map +1 -1
  271. package/dist/pagination.js +208 -281
  272. package/dist/popover.cjs +1 -1
  273. package/dist/popover.d.ts +1 -1
  274. package/dist/popover.d.ts.map +1 -1
  275. package/dist/popover.js +34 -45
  276. package/dist/progress.cjs +1 -1
  277. package/dist/progress.d.ts +17 -2
  278. package/dist/progress.d.ts.map +1 -1
  279. package/dist/progress.js +116 -162
  280. package/dist/radio-group.cjs +1 -1
  281. package/dist/radio-group.js +90 -146
  282. package/dist/rating.cjs +1 -1
  283. package/dist/rating.d.ts +80 -13
  284. package/dist/rating.d.ts.map +1 -1
  285. package/dist/rating.js +70 -65
  286. package/dist/relative-date.cjs +1 -1
  287. package/dist/relative-date.d.ts.map +1 -1
  288. package/dist/relative-date.js +73 -89
  289. package/dist/resizable.cjs +1 -1
  290. package/dist/resizable.d.ts +39 -23
  291. package/dist/resizable.d.ts.map +1 -1
  292. package/dist/resizable.js +42 -44
  293. package/dist/result-count.cjs +1 -0
  294. package/dist/result-count.d.ts +110 -0
  295. package/dist/result-count.d.ts.map +1 -0
  296. package/dist/result-count.js +49 -0
  297. package/dist/route-progress.cjs +1 -1
  298. package/dist/route-progress.js +58 -102
  299. package/dist/scroll-area.cjs +1 -1
  300. package/dist/scroll-area.d.ts +9 -1
  301. package/dist/scroll-area.d.ts.map +1 -1
  302. package/dist/scroll-area.js +44 -79
  303. package/dist/select.cjs +2 -2
  304. package/dist/select.d.ts +10 -10
  305. package/dist/select.d.ts.map +1 -1
  306. package/dist/select.js +118 -238
  307. package/dist/separator.cjs +1 -1
  308. package/dist/separator.js +90 -78
  309. package/dist/sheet.cjs +1 -1
  310. package/dist/sheet.d.ts +8 -5
  311. package/dist/sheet.d.ts.map +1 -1
  312. package/dist/sheet.js +250 -317
  313. package/dist/single-select-filter.cjs +1 -1
  314. package/dist/single-select-filter.d.ts +32 -0
  315. package/dist/single-select-filter.d.ts.map +1 -1
  316. package/dist/single-select-filter.js +201 -203
  317. package/dist/skeleton.cjs +1 -1
  318. package/dist/skeleton.js +24 -38
  319. package/dist/slider.cjs +1 -1
  320. package/dist/slider.js +51 -81
  321. package/dist/sonner.cjs +1 -1
  322. package/dist/sonner.d.ts +1 -1
  323. package/dist/sonner.d.ts.map +1 -1
  324. package/dist/sonner.js +101 -125
  325. package/dist/spinner.cjs +1 -1
  326. package/dist/spinner.js +22 -31
  327. package/dist/split-layout.cjs +1 -1
  328. package/dist/split-layout.js +52 -101
  329. package/dist/status.cjs +1 -0
  330. package/dist/status.d.ts +51 -0
  331. package/dist/status.d.ts.map +1 -0
  332. package/dist/status.js +60 -0
  333. package/dist/stepper.cjs +1 -1
  334. package/dist/stepper.js +184 -316
  335. package/dist/switch.cjs +1 -1
  336. package/dist/switch.js +17 -32
  337. package/dist/table.cjs +1 -1
  338. package/dist/table.d.ts +103 -30
  339. package/dist/table.d.ts.map +1 -1
  340. package/dist/table.js +170 -209
  341. package/dist/tabs.cjs +1 -1
  342. package/dist/tabs.d.ts.map +1 -1
  343. package/dist/tabs.js +102 -147
  344. package/dist/text-reveal-motion.cjs +1 -1
  345. package/dist/text-reveal-motion.js +307 -363
  346. package/dist/textarea.cjs +1 -1
  347. package/dist/textarea.d.ts.map +1 -1
  348. package/dist/textarea.js +22 -35
  349. package/dist/toggle-group.cjs +1 -1
  350. package/dist/toggle-group.js +43 -62
  351. package/dist/toggle.cjs +1 -1
  352. package/dist/toggle.js +34 -46
  353. package/dist/tooltip.cjs +1 -1
  354. package/dist/tooltip.d.ts +2 -2
  355. package/dist/tooltip.d.ts.map +1 -1
  356. package/dist/tooltip.js +157 -249
  357. package/dist/typography-heading.cjs +1 -1
  358. package/dist/typography-heading.js +25 -61
  359. package/dist/typography-text.cjs +1 -1
  360. package/dist/typography-text.js +27 -57
  361. package/dist/typography.cjs +1 -1
  362. package/dist/typography.js +132 -340
  363. package/package.json +46 -46
  364. package/src/blocks/empty-state.tsx +34 -18
  365. package/src/blocks/sidebar.tsx +86 -31
  366. package/src/components/accordion.tsx +1 -1
  367. package/src/components/alert-dialog.tsx +4 -2
  368. package/src/components/badge.tsx +127 -15
  369. package/src/components/breadcrumb.tsx +1 -1
  370. package/src/components/button.tsx +8 -6
  371. package/src/components/calendar.tsx +155 -9
  372. package/src/components/card.tsx +63 -10
  373. package/src/components/carousel.tsx +4 -1
  374. package/src/components/chart.tsx +151 -17
  375. package/src/components/checkbox.tsx +1 -1
  376. package/src/components/collapsible.tsx +4 -1
  377. package/src/components/combobox.tsx +40 -7
  378. package/src/components/command.tsx +9 -10
  379. package/src/components/context-menu.tsx +4 -4
  380. package/src/components/data-table.tsx +619 -237
  381. package/src/components/date-picker.tsx +31 -4
  382. package/src/components/delta.tsx +217 -0
  383. package/src/components/drawer.tsx +5 -5
  384. package/src/components/dropdown-menu.tsx +4 -4
  385. package/src/components/field.tsx +36 -15
  386. package/src/components/global-layout.tsx +1 -1
  387. package/src/components/input-chip.tsx +51 -7
  388. package/src/components/input-group.tsx +1 -1
  389. package/src/components/input-password.tsx +15 -19
  390. package/src/components/input.tsx +10 -1
  391. package/src/components/list.tsx +14 -2
  392. package/src/components/logo-mark.tsx +345 -0
  393. package/src/components/map.tsx +18 -20
  394. package/src/components/media-viewer.tsx +908 -0
  395. package/src/components/multi-select-filter.tsx +255 -121
  396. package/src/components/navigation-menu.tsx +2 -2
  397. package/src/components/pagination.tsx +86 -26
  398. package/src/components/progress.tsx +91 -23
  399. package/src/components/rating.tsx +200 -74
  400. package/src/components/relative-date.tsx +19 -11
  401. package/src/components/resizable.tsx +86 -33
  402. package/src/components/result-count.tsx +253 -0
  403. package/src/components/scroll-area.tsx +31 -5
  404. package/src/components/select.tsx +2 -2
  405. package/src/components/sheet.tsx +14 -4
  406. package/src/components/single-select-filter.tsx +136 -41
  407. package/src/components/slider.tsx +2 -2
  408. package/src/components/status.tsx +162 -0
  409. package/src/components/switch.tsx +1 -1
  410. package/src/components/table.tsx +278 -106
  411. package/src/components/tabs.tsx +1 -0
  412. package/src/components/textarea.tsx +20 -2
  413. package/src/components/toggle.tsx +2 -2
  414. package/src/components/tooltip.tsx +11 -20
  415. package/src/hooks/use-filter-search-params.ts +302 -0
  416. package/src/index.ts +6 -0
  417. package/src/lib/compose-event-handlers.ts +14 -0
  418. package/src/lib/download-file.ts +61 -0
  419. package/src/lib/empty-chip.tsx +52 -0
  420. package/src/lib/field-aria.tsx +97 -0
  421. package/src/lib/image-file-info.ts +102 -0
  422. package/src/lib/media-viewer-content.tsx +1587 -0
  423. package/src/lib/media-viewer-internal.tsx +191 -0
  424. package/src/lib/media-viewer-motion.ts +120 -0
  425. package/src/lib/motion.ts +9 -0
  426. package/src/lib/table-internal.ts +74 -0
  427. package/src/lib/use-controllable.ts +43 -0
  428. package/src/lib/empty-chip.ts +0 -24
package/dist/combobox.js CHANGED
@@ -1,738 +1,539 @@
1
- import { jsx as d, jsxs as B, Fragment as Z } from "react/jsx-runtime";
1
+ "use client";
2
2
  import * as e from "react";
3
- import { Check as Y, ChevronsUpDown as ee } from "@brightlocal/icons";
4
- import { useVirtualizer as te } from "@tanstack/react-virtual";
5
- import { cva as oe } from "class-variance-authority";
6
- import { defaultFilter as K } from "cmdk";
3
+ import { Check as Y, ChevronsUpDown as Z } from "@brightlocal/icons";
7
4
  import { cn as T } from "@brightlocal/ui-components/lib/utils";
8
- import { useDevWarning as H } from "@brightlocal/ui-components/lib/use-dev-warning";
9
- import { Popover as re, PopoverContent as ne, PopoverTrigger as ae } from "@brightlocal/ui-components/popover";
10
- import { Command as se, CommandEmpty as ie, CommandGroup as le, CommandInput as ce, CommandItem as ue, CommandList as de, CommandSeparator as fe } from "@brightlocal/ui-components/command";
11
- import { Spinner as be } from "@brightlocal/ui-components/spinner";
12
- const J = e.createContext(null), Q = e.createContext(null);
5
+ import { Fragment as ee, jsx as c, jsxs as H } from "react/jsx-runtime";
6
+ import { cva as te } from "class-variance-authority";
7
+ import { useDevWarning as B } from "@brightlocal/ui-components/lib/use-dev-warning";
8
+ import { Spinner as oe } from "@brightlocal/ui-components/spinner";
9
+ import { useVirtualizer as re } from "@tanstack/react-virtual";
10
+ import { defaultFilter as K } from "cmdk";
11
+ import { Popover as ne, PopoverContent as ae, PopoverTrigger as se } from "@brightlocal/ui-components/popover";
12
+ import { Command as ie, CommandEmpty as le, CommandGroup as ce, CommandInput as ue, CommandItem as de, CommandList as fe, CommandSeparator as me } from "@brightlocal/ui-components/command";
13
+ var J = e.createContext(null), Q = e.createContext(null);
13
14
  function _() {
14
15
  const t = e.useContext(J);
15
- if (!t)
16
- throw new Error("Combobox components must be used within a <Combobox>");
16
+ if (!t) throw new Error("Combobox components must be used within a <Combobox>");
17
17
  return t;
18
18
  }
19
- function Te({
20
- value: t,
21
- onValueChange: r,
22
- open: a,
23
- onOpenChange: o,
24
- onClose: s,
25
- shouldFilter: f = !0,
26
- disabled: l = !1,
27
- itemToStringValue: u,
28
- children: m
29
- }) {
30
- const [v, D] = e.useState(""), [h, b] = e.useState(!1), [S, E] = e.useState(
31
- () => /* @__PURE__ */ new Map()
32
- ), [C, L] = e.useState(""), [V, w] = e.useState(void 0), y = t !== void 0, M = a !== void 0, R = y ? t : v, k = M ? a : h, N = e.useCallback(
33
- (x) => {
34
- x || L(""), M || b(x), o?.(x);
35
- },
36
- [M, o]
37
- ), p = e.useCallback(
38
- (x) => {
39
- y || D(x), r?.(x);
40
- },
41
- [y, r]
42
- ), I = e.useRef(s);
19
+ function Ae({ value: t, onValueChange: r, open: a, onOpenChange: o, onClose: s, shouldFilter: d = !0, disabled: i = !1, itemToStringValue: f, children: C }) {
20
+ const [b, N] = e.useState(""), [p, m] = e.useState(!1), [S, y] = e.useState(() => /* @__PURE__ */ new Map()), [v, k] = e.useState(""), [F, I] = e.useState(void 0), w = t !== void 0, D = a !== void 0, L = w ? t : b, R = D ? a : p, M = e.useCallback((x) => {
21
+ x || k(""), D || m(x), o?.(x);
22
+ }, [D, o]), h = e.useCallback((x) => {
23
+ w || N(x), r?.(x);
24
+ }, [w, r]), E = e.useRef(s);
43
25
  e.useEffect(() => {
44
- I.current = s;
26
+ E.current = s;
45
27
  }, [s]);
46
- const A = e.useRef(k);
28
+ const A = e.useRef(R);
47
29
  e.useEffect(() => {
48
- A.current && !k && I.current?.(), A.current = k;
49
- }, [k]), e.useEffect(() => () => {
50
- A.current && I.current?.();
30
+ A.current && !R && E.current?.(), A.current = R;
31
+ }, [R]), e.useEffect(() => () => {
32
+ A.current && E.current?.();
51
33
  }, []);
52
- const c = e.useRef(/* @__PURE__ */ new Map()), F = e.useRef(!1), O = e.useRef(!0);
34
+ const u = e.useRef(/* @__PURE__ */ new Map()), V = e.useRef(!1), O = e.useRef(!0);
53
35
  e.useEffect(() => () => {
54
36
  O.current = !1;
55
37
  }, []);
56
38
  const j = e.useCallback(() => {
57
- F.current || (F.current = !0, queueMicrotask(() => {
58
- F.current = !1, O.current && E(new Map(c.current));
39
+ V.current || (V.current = !0, queueMicrotask(() => {
40
+ V.current = !1, O.current && y(new Map(u.current));
59
41
  }));
60
- }, []), $ = e.useCallback(
61
- (x, n) => {
62
- c.current.get(x) !== n && (c.current.set(x, n), j());
63
- },
64
- [j]
65
- ), z = e.useCallback(
66
- (x) => {
67
- for (const [n, i] of x)
68
- c.current.set(n, i);
69
- E(new Map(c.current));
70
- },
71
- []
72
- ), q = e.useRef(R);
42
+ }, []), $ = e.useCallback((x, n) => {
43
+ u.current.get(x) !== n && (u.current.set(x, n), j());
44
+ }, [j]), z = e.useCallback((x) => {
45
+ for (const [n, l] of x) u.current.set(n, l);
46
+ y(new Map(u.current));
47
+ }, []), q = e.useRef(L);
73
48
  e.useLayoutEffect(() => {
74
- q.current = R;
75
- }, [R]);
76
- const U = e.useCallback(
77
- (x) => {
78
- x !== q.current && c.current.has(x) && (c.current.delete(x), j());
79
- },
80
- [j]
81
- ), G = e.useMemo(
82
- () => u ? (x, n, i) => K(u(x), n, i) : K,
83
- [u]
84
- ), W = e.useMemo(
85
- () => ({
86
- open: k,
87
- setOpen: N,
88
- value: R,
89
- onValueChange: p,
90
- shouldFilter: f,
91
- disabled: l,
92
- itemLabels: S,
93
- registerItem: $,
94
- registerItemsSync: z,
95
- unregisterItem: U,
96
- itemToStringValue: u,
97
- filterFn: G,
98
- searchValue: C,
99
- setSearchValue: L,
100
- activeDescendantId: V,
101
- setActiveDescendantId: w
102
- }),
103
- [
104
- k,
105
- N,
106
- R,
107
- p,
108
- f,
109
- l,
110
- S,
111
- $,
112
- z,
113
- U,
114
- u,
115
- G,
116
- C,
117
- V,
118
- w
119
- ]
120
- );
121
- return /* @__PURE__ */ d(J.Provider, { value: W, children: /* @__PURE__ */ d(re, { open: k, onOpenChange: N, children: m }) });
49
+ q.current = L;
50
+ }, [L]);
51
+ const U = e.useCallback((x) => {
52
+ x !== q.current && u.current.has(x) && (u.current.delete(x), j());
53
+ }, [j]), G = e.useMemo(() => f ? (x, n, l) => K(f(x), n, l) : K, [f]), W = e.useMemo(() => ({
54
+ open: R,
55
+ setOpen: M,
56
+ value: L,
57
+ onValueChange: h,
58
+ shouldFilter: d,
59
+ disabled: i,
60
+ itemLabels: S,
61
+ registerItem: $,
62
+ registerItemsSync: z,
63
+ unregisterItem: U,
64
+ itemToStringValue: f,
65
+ filterFn: G,
66
+ searchValue: v,
67
+ setSearchValue: k,
68
+ activeDescendantId: F,
69
+ setActiveDescendantId: I
70
+ }), [
71
+ R,
72
+ M,
73
+ L,
74
+ h,
75
+ d,
76
+ i,
77
+ S,
78
+ $,
79
+ z,
80
+ U,
81
+ f,
82
+ G,
83
+ v,
84
+ F,
85
+ I
86
+ ]);
87
+ return /* @__PURE__ */ c(J.Provider, {
88
+ value: W,
89
+ children: /* @__PURE__ */ c(ne, {
90
+ open: R,
91
+ onOpenChange: M,
92
+ children: C
93
+ })
94
+ });
122
95
  }
123
- const me = oe([
124
- // Base layout
96
+ var be = te([
125
97
  "relative flex w-full items-center justify-between gap-2",
126
- "px-4 py-2 h-9",
127
- // Base appearance
128
- "border border-input rounded-md outline-none",
129
- "bg-neutral-50 shadow-xs",
98
+ "px-3 py-2 h-9",
99
+ "border border-border rounded-sm outline-none",
100
+ "bg-neutral-50 border-neutral-300",
130
101
  "dark:bg-white/5 dark:border-white/15",
131
- // Typography
132
102
  "text-field text-foreground",
133
- // Placeholder state
134
103
  "data-[placeholder=true]:text-muted-foreground",
135
- // Focus state
136
104
  "focus-visible:outline-none focus-visible:border-ring dark:focus-visible:border-neutral-500 focus-visible:bg-background",
137
105
  "focus-visible:shadow-default",
138
- // Open dropdown state
139
106
  "data-[state=open]:border-ring",
140
- // Disabled state
141
- "disabled:cursor-not-allowed disabled:opacity-50",
142
- // Transitions
107
+ "cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
143
108
  "transition-[background-color,border-color,box-shadow] duration-fast ease-out",
144
- // Icon styles
145
109
  "[&_svg]:pointer-events-none [&_svg]:shrink-0"
146
- ]), pe = e.forwardRef(
147
- ({
148
- className: t,
149
- dataHook: r,
150
- error: a,
151
- trackingEl: o,
152
- trackingLabel: s,
153
- children: f,
154
- ...l
155
- }, u) => {
156
- const { open: m, disabled: v, value: D } = _(), h = e.useId(), b = !D, S = a || l["aria-invalid"] === !0 || l["aria-invalid"] === "true";
157
- return /* @__PURE__ */ d(ae, { asChild: !0, children: /* @__PURE__ */ B(
158
- "button",
159
- {
160
- ref: u,
161
- "aria-controls": m ? h : void 0,
162
- "aria-expanded": m,
163
- "aria-haspopup": "listbox",
164
- "aria-invalid": S ? "true" : void 0,
165
- className: T(
166
- me(),
167
- S && "border-destructive-40 dark:border-destructive-40 focus-visible:border-destructive-40 dark:focus-visible:border-destructive-40 focus-visible:shadow-destructive data-[state=open]:border-destructive-40 dark:data-[state=open]:border-destructive-40 data-[state=open]:shadow-destructive",
168
- t
169
- ),
170
- "data-hook": r,
171
- "data-placeholder": b,
172
- "data-slot": "combobox-trigger",
173
- "data-state": m ? "open" : "closed",
174
- "data-tracking-el": o || "combobox-trigger",
175
- "data-tracking-label": s,
176
- disabled: v || l.disabled,
177
- role: "combobox",
178
- type: "button",
179
- ...l,
180
- children: [
181
- f,
182
- /* @__PURE__ */ d(
183
- ee,
184
- {
185
- "aria-hidden": "true",
186
- className: "text-muted-foreground ml-auto shrink-0"
187
- }
188
- )
189
- ]
190
- }
191
- ) });
192
- }
193
- );
110
+ ]), pe = e.forwardRef(({ className: t, dataHook: r, error: a, trackingEl: o, trackingLabel: s, reserveValues: d, children: i, ...f }, C) => {
111
+ const { open: b, disabled: N, value: p } = _(), m = e.useId(), S = !p, y = a || f["aria-invalid"] === !0 || f["aria-invalid"] === "true";
112
+ return /* @__PURE__ */ c(se, {
113
+ asChild: !0,
114
+ children: /* @__PURE__ */ H("button", {
115
+ ref: C,
116
+ "aria-controls": b ? m : void 0,
117
+ "aria-expanded": b,
118
+ "aria-haspopup": "listbox",
119
+ "aria-invalid": y ? "true" : void 0,
120
+ className: T(be(), y && "border-destructive-40 dark:border-destructive-40 focus-visible:border-destructive-40 dark:focus-visible:border-destructive-40 focus-visible:shadow-destructive data-[state=open]:border-destructive-40 dark:data-[state=open]:border-destructive-40 data-[state=open]:shadow-destructive", t),
121
+ "data-hook": r,
122
+ "data-placeholder": S,
123
+ "data-slot": "combobox-trigger",
124
+ "data-state": b ? "open" : "closed",
125
+ "data-tracking-el": o || "combobox-trigger",
126
+ "data-tracking-label": s,
127
+ disabled: N || f.disabled,
128
+ role: "combobox",
129
+ type: "button",
130
+ ...f,
131
+ children: [d?.length ? /* @__PURE__ */ H("span", {
132
+ className: "grid min-w-0 text-left",
133
+ "data-slot": "combobox-reserve",
134
+ children: [d.map((v, k) => /* @__PURE__ */ c("span", {
135
+ "aria-hidden": "true",
136
+ className: "invisible col-start-1 row-start-1 truncate",
137
+ children: v
138
+ }, k)), /* @__PURE__ */ c("span", {
139
+ className: "col-start-1 row-start-1 truncate",
140
+ children: i
141
+ })]
142
+ }) : i, /* @__PURE__ */ c(Z, {
143
+ "aria-hidden": "true",
144
+ className: "text-muted-foreground ml-auto shrink-0"
145
+ })]
146
+ })
147
+ });
148
+ });
194
149
  pe.displayName = "ComboboxTrigger";
195
- function he(t) {
150
+ function ve(t) {
196
151
  return t != null && typeof t == "object" && "value" in t && typeof t.value == "string";
197
152
  }
198
153
  function X(t, r, a) {
199
- if (r)
200
- return {
201
- getValue: r,
202
- getLabel: a ?? r,
203
- hasDistinctLabel: !!a
204
- };
154
+ if (r) return {
155
+ getValue: r,
156
+ getLabel: a ?? r,
157
+ hasDistinctLabel: !!a
158
+ };
205
159
  const o = t[0];
206
- if (!he(o)) return null;
207
- const s = (u) => u.value, f = "label" in o && typeof o.label == "string";
160
+ if (!ve(o)) return null;
161
+ const s = (i) => i.value, d = "label" in o && typeof o.label == "string";
208
162
  return {
209
163
  getValue: s,
210
- getLabel: a ?? (f ? (u) => String(u.label) : s),
211
- hasDistinctLabel: f || !!a
164
+ getLabel: a ?? (d ? (i) => String(i.label) : s),
165
+ hasDistinctLabel: d || !!a
212
166
  };
213
167
  }
214
- function $e({
215
- placeholder: t,
216
- className: r,
217
- displayValue: a,
218
- items: o,
219
- getItemValue: s,
220
- getItemLabel: f
221
- }) {
222
- const { value: l, itemLabels: u } = _(), m = e.useMemo(
223
- () => o ? X(o, s, f) : null,
224
- [o, s, f]
225
- );
226
- H(
227
- () => !!o && o.length > 0 && !m,
228
- "ComboboxValue: could not infer `getItemValue` from item shape. Pass `getItemValue` explicitly, or use items with a `value` string property.",
229
- [o, m]
230
- );
231
- const v = e.useMemo(() => !o || !m ? null : new Map(
232
- o.map((h) => [m.getValue(h), m.getLabel(h)])
233
- ), [o, m]), D = l ? v?.get(l) || u.get(l) || a?.(l) || l : t;
234
- return /* @__PURE__ */ d(
235
- "span",
236
- {
237
- className: T(
238
- "text-field overflow-hidden text-ellipsis whitespace-nowrap",
239
- r
240
- ),
241
- "data-slot": "combobox-value",
242
- children: D
243
- }
244
- );
168
+ function Te({ placeholder: t, className: r, displayValue: a, items: o, getItemValue: s, getItemLabel: d }) {
169
+ const { value: i, itemLabels: f } = _(), C = e.useMemo(() => o ? X(o, s, d) : null, [
170
+ o,
171
+ s,
172
+ d
173
+ ]);
174
+ B(() => !!o && o.length > 0 && !C, "ComboboxValue: could not infer `getItemValue` from item shape. Pass `getItemValue` explicitly, or use items with a `value` string property.", [o, C]);
175
+ const b = e.useMemo(() => !o || !C ? null : new Map(o.map((p) => [C.getValue(p), C.getLabel(p)])), [o, C]), N = i ? b?.get(i) || f.get(i) || a?.(i) || i : t;
176
+ return /* @__PURE__ */ c("span", {
177
+ className: T("text-field overflow-hidden text-ellipsis whitespace-nowrap", r),
178
+ "data-slot": "combobox-value",
179
+ children: N
180
+ });
245
181
  }
246
- function Oe({
247
- dataHook: t,
248
- className: r,
249
- children: a,
250
- align: o = "start",
251
- side: s = "bottom",
252
- sideOffset: f,
253
- avoidCollisions: l,
254
- hideList: u = !1,
255
- ariaLabel: m
256
- }) {
257
- const { open: v, shouldFilter: D, filterFn: h, itemToStringValue: b } = _(), [S, E] = e.useState(
258
- null
259
- ), C = e.useRef(null), L = e.useCallback((w) => {
260
- if (C.current?.(), C.current = null, !w) return;
261
- let y = !1;
262
- const M = (p) => {
263
- y || (p === "top" || p === "bottom") && (y = !0, R.disconnect(), E(p));
264
- }, R = new MutationObserver(() => {
265
- M(w.getAttribute("data-side"));
182
+ function $e({ dataHook: t, className: r, children: a, align: o = "start", side: s = "bottom", sideOffset: d, avoidCollisions: i, hideList: f = !1, ariaLabel: C }) {
183
+ const { open: b, shouldFilter: N, filterFn: p, itemToStringValue: m } = _(), [S, y] = e.useState(null), v = e.useRef(null), k = e.useCallback((I) => {
184
+ if (v.current?.(), v.current = null, !I) return;
185
+ let w = !1;
186
+ const D = (h) => {
187
+ w || (h === "top" || h === "bottom") && (w = !0, L.disconnect(), y(h));
188
+ }, L = new MutationObserver(() => {
189
+ D(I.getAttribute("data-side"));
266
190
  });
267
- R.observe(w, {
191
+ L.observe(I, {
268
192
  attributes: !0,
269
193
  attributeFilter: ["data-side"]
270
194
  });
271
- let k = 0, N = 0;
272
- k = requestAnimationFrame(() => {
273
- N = requestAnimationFrame(() => {
274
- M(w.getAttribute("data-side"));
195
+ let R = 0, M = 0;
196
+ R = requestAnimationFrame(() => {
197
+ M = requestAnimationFrame(() => {
198
+ D(I.getAttribute("data-side"));
275
199
  });
276
- }), C.current = () => {
277
- y = !0, R.disconnect(), cancelAnimationFrame(k), cancelAnimationFrame(N);
200
+ }), v.current = () => {
201
+ w = !0, L.disconnect(), cancelAnimationFrame(R), cancelAnimationFrame(M);
278
202
  };
279
203
  }, []);
280
204
  e.useEffect(() => {
281
- if (!v) {
282
- C.current?.(), C.current = null;
283
- const w = setTimeout(() => E(null), 150);
284
- return () => clearTimeout(w);
205
+ if (!b) {
206
+ v.current?.(), v.current = null;
207
+ const I = setTimeout(() => y(null), 150);
208
+ return () => clearTimeout(I);
285
209
  }
286
- }, [v]);
287
- const V = b ? h : void 0;
288
- return /* @__PURE__ */ d(
289
- ne,
290
- {
291
- ref: L,
292
- align: o,
293
- "aria-label": m ?? "Options",
294
- avoidCollisions: l,
295
- className: T(
296
- "flex max-h-[var(--radix-popover-content-available-height)] w-[var(--radix-popover-trigger-width)] flex-col overflow-hidden p-0",
297
- r
298
- ),
299
- collisionPadding: 4,
300
- "data-slot": "combobox-popover",
301
- side: S ?? s,
302
- sideOffset: f,
303
- children: /* @__PURE__ */ d(
304
- se,
305
- {
306
- className: T(
307
- "min-h-0 flex-1 border-0 shadow-none",
308
- "[&_[data-slot='command-input-wrapper']]:shrink-0",
309
- u && "[&_[data-slot='command-input-wrapper']]:border-b-0"
310
- ),
311
- "data-slot": "combobox-command",
312
- dataHook: t || "combobox-command",
313
- filter: V,
314
- shouldFilter: D,
315
- children: a
316
- }
317
- )
318
- }
319
- );
210
+ }, [b]);
211
+ const F = m ? p : void 0;
212
+ return /* @__PURE__ */ c(ae, {
213
+ ref: k,
214
+ align: o,
215
+ "aria-label": C ?? "Options",
216
+ avoidCollisions: i,
217
+ className: T("flex max-h-[var(--radix-popover-content-available-height)] w-[var(--radix-popover-trigger-width)] flex-col overflow-hidden p-0", r),
218
+ collisionPadding: 4,
219
+ "data-slot": "combobox-popover",
220
+ side: S ?? s,
221
+ sideOffset: d,
222
+ children: /* @__PURE__ */ c(ie, {
223
+ className: T("min-h-0 flex-1 border-0 shadow-none", "[&_[data-slot='command-input-wrapper']]:shrink-0", f && "[&_[data-slot='command-input-wrapper']]:border-b-0"),
224
+ "data-slot": "combobox-command",
225
+ dataHook: t || "combobox-command",
226
+ filter: F,
227
+ shouldFilter: N,
228
+ children: a
229
+ })
230
+ });
320
231
  }
321
- const xe = e.forwardRef(({ debounceMs: t, onValueChange: r, ...a }, o) => {
322
- const { setSearchValue: s, shouldFilter: f, activeDescendantId: l } = _(), u = e.useRef(
323
- void 0
324
- );
325
- H(
326
- () => !!(t && t > 0 && f),
327
- `debounceMs is set on <ComboboxInput> but shouldFilter is true (default).
232
+ var he = e.forwardRef(({ debounceMs: t, onValueChange: r, ...a }, o) => {
233
+ const { setSearchValue: s, shouldFilter: d, activeDescendantId: i } = _(), f = e.useRef(void 0);
234
+ B(() => !!(t && t > 0 && d), `debounceMs is set on <ComboboxInput> but shouldFilter is true (default).
328
235
  Debounce is designed for async/server-driven search where the consumer controls the items list.
329
- Set shouldFilter={false} on <Combobox> for async search, or remove debounceMs for client-side filtering.`,
330
- [t, f]
331
- ), H(
332
- () => !!(t && t > 0 && a.value !== void 0),
333
- "debounceMs is set on <ComboboxInput> together with a controlled `value` prop.\nThe debounced onValueChange callback cannot update the controlled value synchronously, so the input will appear to lag behind typing.\nRemove `value` to let the input manage its own display, or remove debounceMs if you need a controlled input.",
334
- [t, a.value]
335
- ), e.useEffect(() => () => {
336
- u.current && clearTimeout(u.current);
236
+ Set shouldFilter={false} on <Combobox> for async search, or remove debounceMs for client-side filtering.`, [t, d]), B(() => !!(t && t > 0 && a.value !== void 0), "debounceMs is set on <ComboboxInput> together with a controlled `value` prop.\nThe debounced onValueChange callback cannot update the controlled value synchronously, so the input will appear to lag behind typing.\nRemove `value` to let the input manage its own display, or remove debounceMs if you need a controlled input.", [t, a.value]), e.useEffect(() => () => {
237
+ f.current && clearTimeout(f.current);
337
238
  }, []);
338
- const m = e.useCallback(
339
- (v) => {
340
- s(v), t && t > 0 ? (clearTimeout(u.current), u.current = setTimeout(() => {
341
- r?.(v);
342
- }, t)) : r?.(v);
343
- },
344
- [t, r, s]
345
- );
346
- return /* @__PURE__ */ d(
347
- ce,
348
- {
349
- ref: o,
350
- "aria-activedescendant": l,
351
- "data-slot": "combobox-input",
352
- onValueChange: m,
353
- ...a
354
- }
355
- );
239
+ const C = e.useCallback((b) => {
240
+ s(b), t && t > 0 ? (clearTimeout(f.current), f.current = setTimeout(() => {
241
+ r?.(b);
242
+ }, t)) : r?.(b);
243
+ }, [
244
+ t,
245
+ r,
246
+ s
247
+ ]);
248
+ return /* @__PURE__ */ c(ue, {
249
+ ref: o,
250
+ "aria-activedescendant": i,
251
+ "data-slot": "combobox-input",
252
+ onValueChange: C,
253
+ ...a
254
+ });
356
255
  });
357
- xe.displayName = "ComboboxInput";
358
- const ge = e.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ d(
359
- de,
360
- {
361
- ref: a,
362
- className: T("scrollbar min-h-0 flex-1", t),
363
- "data-slot": "combobox-list",
364
- ...r
365
- }
366
- ));
367
- ge.displayName = "ComboboxList";
368
- function ve({
369
- items: t,
370
- getItemValue: r,
371
- getItemLabel: a,
372
- getItemKeywords: o,
373
- estimateSize: s = 36,
374
- overscan: f = 5,
375
- children: l,
376
- renderEmpty: u,
377
- className: m,
378
- dataHook: v
379
- }, D) {
380
- const h = e.useMemo(
381
- () => X(t, r, a),
382
- [t, r, a]
383
- ), b = e.useMemo(
384
- () => h?.getValue ?? ((n) => {
385
- if (typeof n == "string" || typeof n == "number")
386
- return String(n);
387
- throw new Error(
388
- "[BrightLocal DS] ComboboxVirtualList: `getItemValue` is required for non-primitive items without a `value` property."
389
- );
390
- }),
391
- [h]
392
- ), S = e.useMemo(
393
- () => h?.getLabel ?? b,
394
- [h, b]
395
- );
396
- H(
397
- () => !h && t.length > 0,
398
- "ComboboxVirtualList: could not infer `getItemValue` from item shape. Pass `getItemValue` explicitly, or use items with a `value` string property.",
399
- [h, t.length]
400
- );
401
- const E = e.useRef(null), {
402
- value: C,
403
- onValueChange: L,
404
- setOpen: V,
405
- shouldFilter: w,
406
- searchValue: y,
407
- filterFn: M,
408
- setActiveDescendantId: R,
409
- registerItemsSync: k,
410
- unregisterItem: N
411
- } = _(), [p, I] = e.useState(0), A = e.useId();
412
- e.useImperativeHandle(D, () => E.current, []), e.useLayoutEffect(() => {
413
- const n = t.map((i) => [
414
- b(i),
415
- S(i)
416
- ]);
417
- return k(n), () => {
418
- for (const i of t)
419
- N(b(i));
256
+ he.displayName = "ComboboxInput";
257
+ var xe = e.forwardRef(({ className: t, ...r }, a) => /* @__PURE__ */ c(fe, {
258
+ ref: a,
259
+ className: T("scrollbar min-h-0 flex-1", t),
260
+ "data-slot": "combobox-list",
261
+ ...r
262
+ }));
263
+ xe.displayName = "ComboboxList";
264
+ function ge({ items: t, getItemValue: r, getItemLabel: a, getItemKeywords: o, estimateSize: s = 36, overscan: d = 5, children: i, renderEmpty: f, className: C, dataHook: b }, N) {
265
+ const p = e.useMemo(() => X(t, r, a), [
266
+ t,
267
+ r,
268
+ a
269
+ ]), m = e.useMemo(() => p?.getValue ?? ((n) => {
270
+ if (typeof n == "string" || typeof n == "number") return String(n);
271
+ throw new Error("[BrightLocal DS] ComboboxVirtualList: `getItemValue` is required for non-primitive items without a `value` property.");
272
+ }), [p]), S = e.useMemo(() => p?.getLabel ?? m, [p, m]);
273
+ B(() => !p && t.length > 0, "ComboboxVirtualList: could not infer `getItemValue` from item shape. Pass `getItemValue` explicitly, or use items with a `value` string property.", [p, t.length]);
274
+ const y = e.useRef(null), { value: v, onValueChange: k, setOpen: F, shouldFilter: I, searchValue: w, filterFn: D, setActiveDescendantId: L, registerItemsSync: R, unregisterItem: M } = _(), [h, E] = e.useState(0), A = e.useId();
275
+ e.useImperativeHandle(N, () => y.current, []), e.useLayoutEffect(() => {
276
+ const n = t.map((l) => [m(l), S(l)]);
277
+ return R(n), () => {
278
+ for (const l of t) M(m(l));
420
279
  };
421
- }, [t, b, S, k, N]);
422
- const c = e.useMemo(() => {
423
- if (!w || !y.trim()) return t;
280
+ }, [
281
+ t,
282
+ m,
283
+ S,
284
+ R,
285
+ M
286
+ ]);
287
+ const u = e.useMemo(() => {
288
+ if (!I || !w.trim()) return t;
424
289
  const n = [];
425
- for (const i of t) {
426
- let g = h?.hasDistinctLabel ? K(S(i), y) : M(b(i), y);
427
- if (o)
428
- for (const P of o(i))
429
- g = Math.max(g, K(P, y));
430
- g > 0 && n.push({ item: i, score: g });
290
+ for (const l of t) {
291
+ let g = p?.hasDistinctLabel ? K(S(l), w) : D(m(l), w);
292
+ if (o) for (const P of o(l)) g = Math.max(g, K(P, w));
293
+ g > 0 && n.push({
294
+ item: l,
295
+ score: g
296
+ });
431
297
  }
432
- return n.sort((i, g) => g.score - i.score), n.map((i) => i.item);
298
+ return n.sort((l, g) => g.score - l.score), n.map((l) => l.item);
433
299
  }, [
434
300
  t,
301
+ I,
435
302
  w,
436
- y,
437
- b,
303
+ m,
438
304
  S,
439
305
  o,
440
- M,
441
- h?.hasDistinctLabel
442
- ]), F = te({
443
- count: c.length,
444
- getScrollElement: () => E.current,
306
+ D,
307
+ p?.hasDistinctLabel
308
+ ]), V = re({
309
+ count: u.length,
310
+ getScrollElement: () => y.current,
445
311
  estimateSize: () => s,
446
- overscan: f
447
- }), O = p >= 0 && p < c.length ? b(c[p]) : null;
312
+ overscan: d
313
+ }), O = h >= 0 && h < u.length ? m(u[h]) : null;
448
314
  e.useEffect(() => {
449
- I(0);
450
- }, [y, c.length]);
315
+ E(0);
316
+ }, [w, u.length]);
451
317
  const j = e.useRef(!1);
452
318
  e.useEffect(() => {
453
- if (j.current || !C) return;
454
- const n = c.findIndex((i) => b(i) === C);
455
- n >= 0 && (I(n), F.scrollToIndex(n, { align: "center" }), j.current = !0);
456
- }, [C, c, b, F]);
319
+ if (j.current || !v) return;
320
+ const n = u.findIndex((l) => m(l) === v);
321
+ n >= 0 && (E(n), V.scrollToIndex(n, { align: "center" }), j.current = !0);
322
+ }, [
323
+ v,
324
+ u,
325
+ m,
326
+ V
327
+ ]);
457
328
  const $ = e.useRef(!1);
458
329
  e.useEffect(() => {
459
- $.current && p >= 0 && p < c.length && F.scrollToIndex(p, { align: "auto" }), $.current = !1;
460
- }, [p, c.length, F]), e.useEffect(() => {
461
- const n = E.current?.closest(
462
- '[data-slot="combobox-command"]'
463
- );
330
+ $.current && h >= 0 && h < u.length && V.scrollToIndex(h, { align: "auto" }), $.current = !1;
331
+ }, [
332
+ h,
333
+ u.length,
334
+ V
335
+ ]), e.useEffect(() => {
336
+ const n = y.current?.closest('[data-slot="combobox-command"]');
464
337
  if (!n) return;
465
- const i = (g) => {
338
+ const l = (g) => {
466
339
  switch (g.key) {
467
340
  case "ArrowDown":
468
- g.preventDefault(), g.stopPropagation(), $.current = !0, I(
469
- (P) => P < c.length - 1 ? P + 1 : P
470
- );
341
+ g.preventDefault(), g.stopPropagation(), $.current = !0, E((P) => P < u.length - 1 ? P + 1 : P);
471
342
  break;
472
343
  case "ArrowUp":
473
- g.preventDefault(), g.stopPropagation(), $.current = !0, I((P) => P > 0 ? P - 1 : P);
344
+ g.preventDefault(), g.stopPropagation(), $.current = !0, E((P) => P > 0 ? P - 1 : P);
474
345
  break;
475
346
  case "Enter":
476
- if (g.preventDefault(), g.stopPropagation(), p >= 0 && p < c.length) {
477
- const P = b(c[p]);
478
- L(P === C ? "" : P), V(!1);
347
+ if (g.preventDefault(), g.stopPropagation(), h >= 0 && h < u.length) {
348
+ const P = m(u[h]);
349
+ k(P === v ? "" : P), F(!1);
479
350
  }
480
351
  break;
481
352
  case "Home":
482
- g.preventDefault(), g.stopPropagation(), $.current = !0, I(0);
353
+ g.preventDefault(), g.stopPropagation(), $.current = !0, E(0);
483
354
  break;
484
355
  case "End":
485
- g.preventDefault(), g.stopPropagation(), $.current = !0, I(c.length - 1);
486
- break;
356
+ g.preventDefault(), g.stopPropagation(), $.current = !0, E(u.length - 1);
487
357
  }
488
358
  };
489
- return n.addEventListener("keydown", i, { capture: !0 }), () => n.removeEventListener("keydown", i, { capture: !0 });
490
- }, [c, p, C, L, V, b]);
359
+ return n.addEventListener("keydown", l, { capture: !0 }), () => n.removeEventListener("keydown", l, { capture: !0 });
360
+ }, [
361
+ u,
362
+ h,
363
+ v,
364
+ k,
365
+ F,
366
+ m
367
+ ]);
491
368
  const z = e.useMemo(() => {
492
369
  const n = /* @__PURE__ */ new Map();
493
- return c.forEach((i, g) => {
494
- n.set(b(i), g);
370
+ return u.forEach((l, g) => {
371
+ n.set(m(l), g);
495
372
  }), n;
496
- }, [c, b]), q = e.useCallback(
497
- (n) => {
498
- const i = z.get(n);
499
- i !== void 0 && I(i);
500
- },
501
- [z]
502
- ), U = e.useCallback(
503
- (n) => (z.get(n) ?? 0) + 1,
504
- [z]
505
- ), G = c.length, W = e.useMemo(
506
- () => ({
507
- activeValue: O,
508
- onItemPointerMove: q,
509
- idPrefix: A,
510
- filteredCount: G,
511
- getItemPosition: U
512
- }),
513
- [O, q, A, G, U]
514
- ), x = O != null ? `${A}item-${O}` : void 0;
515
- return e.useEffect(() => (R(x), () => R(void 0)), [x, R]), c.length === 0 ? /* @__PURE__ */ d(
516
- "div",
517
- {
518
- ref: E,
519
- className: T(
520
- "scrollbar max-h-[300px] min-h-0 flex-1 scroll-py-1 overflow-x-hidden overflow-y-auto py-1",
521
- m
522
- ),
523
- "data-hook": v,
524
- "data-slot": "combobox-virtual-list",
525
- role: "listbox",
526
- children: u
527
- }
528
- ) : /* @__PURE__ */ d(Q.Provider, { value: W, children: /* @__PURE__ */ d(
529
- "div",
530
- {
531
- ref: E,
532
- className: T(
533
- "scrollbar max-h-[300px] min-h-0 flex-1 scroll-py-1 overflow-x-hidden overflow-y-auto py-1",
534
- m
535
- ),
536
- "data-hook": v,
373
+ }, [u, m]), q = e.useCallback((n) => {
374
+ const l = z.get(n);
375
+ l !== void 0 && E(l);
376
+ }, [z]), U = e.useCallback((n) => (z.get(n) ?? 0) + 1, [z]), G = u.length, W = e.useMemo(() => ({
377
+ activeValue: O,
378
+ onItemPointerMove: q,
379
+ idPrefix: A,
380
+ filteredCount: G,
381
+ getItemPosition: U
382
+ }), [
383
+ O,
384
+ q,
385
+ A,
386
+ G,
387
+ U
388
+ ]), x = O != null ? `${A}item-${O}` : void 0;
389
+ return e.useEffect(() => (L(x), () => L(void 0)), [x, L]), u.length === 0 ? /* @__PURE__ */ c("div", {
390
+ ref: y,
391
+ className: T("scrollbar max-h-[300px] min-h-0 flex-1 scroll-py-1 overflow-x-hidden overflow-y-auto py-1", C),
392
+ "data-hook": b,
393
+ "data-slot": "combobox-virtual-list",
394
+ role: "listbox",
395
+ children: f
396
+ }) : /* @__PURE__ */ c(Q.Provider, {
397
+ value: W,
398
+ children: /* @__PURE__ */ c("div", {
399
+ ref: y,
400
+ className: T("scrollbar max-h-[300px] min-h-0 flex-1 scroll-py-1 overflow-x-hidden overflow-y-auto py-1", C),
401
+ "data-hook": b,
537
402
  "data-slot": "combobox-virtual-list",
538
403
  role: "listbox",
539
- children: /* @__PURE__ */ d(
540
- "div",
541
- {
542
- className: "relative w-full",
543
- style: { height: `${F.getTotalSize()}px` },
544
- children: F.getVirtualItems().map((n) => /* @__PURE__ */ d(
545
- "div",
546
- {
547
- ref: F.measureElement,
548
- className: "absolute top-0 left-0 w-full px-2",
549
- "data-index": n.index,
550
- style: {
551
- transform: `translateY(${n.start}px)`
552
- },
553
- children: l(
554
- c[n.index],
555
- n.index,
556
- y
557
- )
558
- },
559
- n.key
560
- ))
561
- }
562
- )
563
- }
564
- ) });
404
+ children: /* @__PURE__ */ c("div", {
405
+ className: "relative w-full",
406
+ style: { height: `${V.getTotalSize()}px` },
407
+ children: V.getVirtualItems().map((n) => /* @__PURE__ */ c("div", {
408
+ ref: V.measureElement,
409
+ className: "absolute top-0 left-0 w-full px-2",
410
+ "data-index": n.index,
411
+ style: { transform: `translateY(${n.start}px)` },
412
+ children: i(u[n.index], n.index, w)
413
+ }, n.key))
414
+ })
415
+ })
416
+ });
565
417
  }
566
- const je = e.forwardRef(ve), Ce = e.forwardRef((t, r) => /* @__PURE__ */ d(ie, { ref: r, "data-slot": "combobox-empty", ...t }));
418
+ var Oe = e.forwardRef(ge), Ce = e.forwardRef((t, r) => /* @__PURE__ */ c(le, {
419
+ ref: r,
420
+ "data-slot": "combobox-empty",
421
+ ...t
422
+ }));
567
423
  Ce.displayName = "ComboboxEmpty";
568
- const ye = e.forwardRef(({ children: t, ...r }, a) => {
424
+ var ye = e.forwardRef(({ children: t, ...r }, a) => {
569
425
  const o = e.useRef(null);
570
- return H(
571
- () => o.current ? o.current.querySelectorAll('[data-slot="combobox-item"]').length >= 100 : !1,
572
- `ComboboxGroup contains 100+ items. Use <ComboboxVirtualList> for large datasets to avoid DOM bloat and slow renders.
573
- Import: import { ComboboxVirtualList } from "@brightlocal/ui-components/combobox"`,
574
- [t]
575
- ), /* @__PURE__ */ d(
576
- le,
577
- {
578
- ref: (s) => {
579
- o.current = s, typeof a == "function" ? a(s) : a && (a.current = s);
580
- },
581
- "data-slot": "combobox-group",
582
- ...r,
583
- children: t
584
- }
585
- );
426
+ return B(() => o.current ? o.current.querySelectorAll('[data-slot="combobox-item"]').length >= 100 : !1, `ComboboxGroup contains 100+ items. Use <ComboboxVirtualList> for large datasets to avoid DOM bloat and slow renders.
427
+ Import: import { ComboboxVirtualList } from "@brightlocal/ui-components/combobox"`, [t]), /* @__PURE__ */ c(ce, {
428
+ ref: (s) => {
429
+ o.current = s, typeof a == "function" ? a(s) : a && (a.current = s);
430
+ },
431
+ "data-slot": "combobox-group",
432
+ ...r,
433
+ children: t
434
+ });
586
435
  });
587
436
  ye.displayName = "ComboboxGroup";
588
437
  function we(t, r, a) {
589
- if (!r || !r.trim())
590
- return t;
591
- const o = new RegExp(
592
- `(${r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
593
- "gi"
594
- ), s = t.split(o);
595
- return /* @__PURE__ */ d("span", { children: s.map(
596
- (f, l) => l % 2 === 1 ? /* @__PURE__ */ d("span", { className: a, children: f }, l) : /* @__PURE__ */ d(e.Fragment, { children: f }, l)
597
- ) });
438
+ if (!r || !r.trim()) return t;
439
+ const o = new RegExp(`(${r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi"), s = t.split(o);
440
+ return /* @__PURE__ */ c("span", { children: s.map((d, i) => i % 2 === 1 ? /* @__PURE__ */ c("span", {
441
+ className: a,
442
+ children: d
443
+ }, i) : /* @__PURE__ */ c(e.Fragment, { children: d }, i)) });
598
444
  }
599
- const ke = e.forwardRef(
600
- ({
601
- value: t,
602
- label: r,
603
- dataHook: a,
604
- children: o,
605
- className: s,
606
- highlight: f,
607
- highlightClassName: l,
608
- keywords: u,
609
- onSelect: m,
610
- ...v
611
- }, D) => {
612
- const { value: h, onValueChange: b, setOpen: S, registerItem: E, unregisterItem: C } = _(), L = e.useContext(Q), V = h === t, w = e.useMemo(() => r || (typeof o == "string" ? o : typeof o == "number" ? String(o) : t), [r, o, t]), y = e.useRef(E), M = e.useRef(C);
613
- e.useEffect(() => {
614
- y.current = E, M.current = C;
615
- }, [E, C]);
616
- const R = !!L;
617
- e.useEffect(() => {
618
- if (!R)
619
- return y.current(t, w), () => M.current(t);
620
- }, [t, w, R]);
621
- const k = () => {
622
- b(t === h ? "" : t), S(!1), m?.(t);
623
- }, N = () => f && typeof o == "string" ? we(
624
- o,
625
- f,
626
- l || "text-label font-semibold"
627
- ) : o;
628
- if (L) {
629
- const p = L.activeValue === t, I = !!v.disabled;
630
- return /* @__PURE__ */ B(
631
- "div",
632
- {
633
- ref: D,
634
- "aria-disabled": I || void 0,
635
- "aria-posinset": L.getItemPosition(t),
636
- "aria-selected": V,
637
- "aria-setsize": L.filteredCount,
638
- className: T(
639
- "data-[highlighted=true]:bg-accent data-[highlighted=true]:text-accent-foreground text-label relative flex cursor-default items-center justify-between gap-2 rounded-sm px-2 py-3 outline-hidden select-none",
640
- "[&_svg]:pointer-events-none [&_svg]:shrink-0",
641
- I && "pointer-events-none opacity-50",
642
- s
643
- ),
644
- "data-highlighted": p || void 0,
645
- "data-hook": a,
646
- "data-slot": "combobox-item",
647
- id: `${L.idPrefix}item-${t}`,
648
- role: "option",
649
- tabIndex: -1,
650
- onClick: I ? void 0 : k,
651
- onKeyDown: I ? void 0 : (A) => {
652
- (A.key === "Enter" || A.key === " ") && k();
653
- },
654
- onPointerMove: I ? void 0 : () => L.onItemPointerMove(t),
655
- children: [
656
- N(),
657
- V && /* @__PURE__ */ d(
658
- Y,
659
- {
660
- "aria-hidden": "true",
661
- className: "text-muted-foreground shrink-0"
662
- }
663
- )
664
- ]
665
- }
666
- );
667
- }
668
- return /* @__PURE__ */ B(
669
- ue,
670
- {
671
- ref: D,
672
- className: T("justify-between", s),
673
- "data-slot": "combobox-item",
674
- dataHook: a,
675
- keywords: u ? [w, ...u] : [w],
676
- value: t,
677
- onSelect: k,
678
- ...v,
679
- children: [
680
- N(),
681
- V && /* @__PURE__ */ d(
682
- Y,
683
- {
684
- "aria-hidden": "true",
685
- className: "text-muted-foreground shrink-0"
686
- }
687
- )
688
- ]
689
- }
690
- );
445
+ var ke = e.forwardRef(({ value: t, label: r, dataHook: a, children: o, className: s, highlight: d, highlightClassName: i, keywords: f, onSelect: C, ...b }, N) => {
446
+ const { value: p, onValueChange: m, setOpen: S, registerItem: y, unregisterItem: v } = _(), k = e.useContext(Q), F = p === t, I = e.useMemo(() => r || (typeof o == "string" ? o : typeof o == "number" ? String(o) : t), [
447
+ r,
448
+ o,
449
+ t
450
+ ]), w = e.useRef(y), D = e.useRef(v);
451
+ e.useEffect(() => {
452
+ w.current = y, D.current = v;
453
+ }, [y, v]);
454
+ const L = !!k;
455
+ e.useEffect(() => {
456
+ if (!L)
457
+ return w.current(t, I), () => D.current(t);
458
+ }, [
459
+ t,
460
+ I,
461
+ L
462
+ ]);
463
+ const R = () => {
464
+ m(t === p ? "" : t), S(!1), C?.(t);
465
+ }, M = () => d && typeof o == "string" ? we(o, d, i || "text-label font-semibold") : o;
466
+ if (k) {
467
+ const h = k.activeValue === t, E = !!b.disabled;
468
+ return /* @__PURE__ */ H("div", {
469
+ ref: N,
470
+ "aria-disabled": E || void 0,
471
+ "aria-posinset": k.getItemPosition(t),
472
+ "aria-selected": F,
473
+ "aria-setsize": k.filteredCount,
474
+ className: T("data-[highlighted=true]:bg-accent data-[highlighted=true]:text-accent-foreground text-label relative flex cursor-pointer items-center justify-between gap-2 rounded-sm px-2 py-3 outline-hidden select-none", "[&_svg]:pointer-events-none [&_svg]:shrink-0", E && "pointer-events-none opacity-50", s),
475
+ "data-highlighted": h || void 0,
476
+ "data-hook": a,
477
+ "data-slot": "combobox-item",
478
+ id: `${k.idPrefix}item-${t}`,
479
+ role: "option",
480
+ tabIndex: -1,
481
+ onClick: E ? void 0 : R,
482
+ onKeyDown: E ? void 0 : (A) => {
483
+ (A.key === "Enter" || A.key === " ") && R();
484
+ },
485
+ onPointerMove: E ? void 0 : () => k.onItemPointerMove(t),
486
+ children: [M(), F && /* @__PURE__ */ c(Y, {
487
+ "aria-hidden": "true",
488
+ className: "text-muted-foreground shrink-0"
489
+ })]
490
+ });
691
491
  }
692
- );
492
+ return /* @__PURE__ */ H(de, {
493
+ ref: N,
494
+ className: T("justify-between", s),
495
+ "data-slot": "combobox-item",
496
+ dataHook: a,
497
+ keywords: f ? [I, ...f] : [I],
498
+ value: t,
499
+ onSelect: R,
500
+ ...b,
501
+ children: [M(), F && /* @__PURE__ */ c(Y, {
502
+ "aria-hidden": "true",
503
+ className: "text-muted-foreground shrink-0"
504
+ })]
505
+ });
506
+ });
693
507
  ke.displayName = "ComboboxItem";
694
- const Ie = e.forwardRef((t, r) => /* @__PURE__ */ d(fe, { ref: r, "data-slot": "combobox-separator", ...t }));
508
+ var Ie = e.forwardRef((t, r) => /* @__PURE__ */ c(me, {
509
+ ref: r,
510
+ "data-slot": "combobox-separator",
511
+ ...t
512
+ }));
695
513
  Ie.displayName = "ComboboxSeparator";
696
- function ze({
697
- className: t,
698
- children: r,
699
- loadingText: a
700
- }) {
701
- return /* @__PURE__ */ d(
702
- "div",
703
- {
704
- "aria-live": "polite",
705
- className: T(
706
- // The entrance fade doubles as the flash-threshold appearance delay
707
- // (`both` holds the hidden start): a fetch that resolves inside the
708
- // flash zone never flashes a spinner, which would read slower than
709
- // no indicator at all. flash-delay draws the delay from
710
- // --ds-motion-flash-threshold — the same threshold useDelayedPending
711
- // mirrors in JS.
712
- "text-body-sm text-muted-foreground relative flex items-center justify-center gap-2 py-6",
713
- "animate-entrance-fade flash-delay",
714
- t
715
- ),
716
- "data-slot": "combobox-loading",
717
- role: "status",
718
- children: r || /* @__PURE__ */ B(Z, { children: [
719
- /* @__PURE__ */ d(be, { size: "md" }),
720
- /* @__PURE__ */ d("span", { className: "sr-only", children: a ?? "Loading suggestions" })
721
- ] })
722
- }
723
- );
514
+ function je({ className: t, children: r, loadingText: a }) {
515
+ return /* @__PURE__ */ c("div", {
516
+ "aria-live": "polite",
517
+ className: T("text-body-sm text-muted-foreground relative flex items-center justify-center gap-2 py-6", "animate-entrance-fade flash-delay", t),
518
+ "data-slot": "combobox-loading",
519
+ role: "status",
520
+ children: r || /* @__PURE__ */ H(ee, { children: [/* @__PURE__ */ c(oe, { size: "md" }), /* @__PURE__ */ c("span", {
521
+ className: "sr-only",
522
+ children: a ?? "Loading suggestions"
523
+ })] })
524
+ });
724
525
  }
725
526
  export {
726
- Te as Combobox,
727
- Oe as ComboboxContent,
527
+ Ae as Combobox,
528
+ $e as ComboboxContent,
728
529
  Ce as ComboboxEmpty,
729
530
  ye as ComboboxGroup,
730
- xe as ComboboxInput,
531
+ he as ComboboxInput,
731
532
  ke as ComboboxItem,
732
- ge as ComboboxList,
733
- ze as ComboboxLoading,
533
+ xe as ComboboxList,
534
+ je as ComboboxLoading,
734
535
  Ie as ComboboxSeparator,
735
536
  pe as ComboboxTrigger,
736
- $e as ComboboxValue,
737
- je as ComboboxVirtualList
537
+ Te as ComboboxValue,
538
+ Oe as ComboboxVirtualList
738
539
  };