@constructive-io/ui 0.1.0 → 0.2.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 (59) hide show
  1. package/README.md +236 -0
  2. package/dist/components/alert-dialog.js.map +1 -1
  3. package/dist/components/autocomplete.js +11 -3
  4. package/dist/components/autocomplete.js.map +1 -1
  5. package/dist/components/avatar.js.map +1 -1
  6. package/dist/components/breadcrumb.js.map +1 -1
  7. package/dist/components/card.d.ts +1 -1
  8. package/dist/components/combobox.d.ts +1 -1
  9. package/dist/components/combobox.js +49 -13
  10. package/dist/components/combobox.js.map +1 -1
  11. package/dist/components/command.d.ts +16 -35
  12. package/dist/components/command.js +72 -508
  13. package/dist/components/command.js.map +1 -1
  14. package/dist/components/dialog.js.map +1 -1
  15. package/dist/components/drawer.js +1 -1
  16. package/dist/components/drawer.js.map +1 -1
  17. package/dist/components/dropdown-menu.js.map +1 -1
  18. package/dist/components/form-control.js.map +1 -1
  19. package/dist/components/form.js.map +1 -1
  20. package/dist/components/input-group.js +2 -2
  21. package/dist/components/input-group.js.map +1 -1
  22. package/dist/components/input.js +1 -1
  23. package/dist/components/input.js.map +1 -1
  24. package/dist/components/json-input.js.map +1 -1
  25. package/dist/components/multi-select.js.map +1 -1
  26. package/dist/components/pagination.js.map +1 -1
  27. package/dist/components/popover.js.map +1 -1
  28. package/dist/components/portal.js.map +1 -1
  29. package/dist/components/record-picker.js +1 -1
  30. package/dist/components/record-picker.js.map +1 -1
  31. package/dist/components/resizable.js.map +1 -1
  32. package/dist/components/responsive-diagram.js +6 -4
  33. package/dist/components/responsive-diagram.js.map +1 -1
  34. package/dist/components/select.d.ts +2 -2
  35. package/dist/components/select.js +3 -3
  36. package/dist/components/select.js.map +1 -1
  37. package/dist/components/sheet.js.map +1 -1
  38. package/dist/components/sidebar.js +1 -1
  39. package/dist/components/sidebar.js.map +1 -1
  40. package/dist/components/stack/index.d.ts +11 -0
  41. package/dist/components/stack/index.js +33 -6
  42. package/dist/components/stack/index.js.map +1 -1
  43. package/dist/components/stepper.js.map +1 -1
  44. package/dist/components/table.js.map +1 -1
  45. package/dist/components/tabs.js.map +1 -1
  46. package/dist/components/tags.d.ts +1 -3
  47. package/dist/components/tags.js +107 -388
  48. package/dist/components/tags.js.map +1 -1
  49. package/dist/components/textarea.js +1 -1
  50. package/dist/components/textarea.js.map +1 -1
  51. package/dist/components/tooltip.js.map +1 -1
  52. package/dist/index.cjs +348 -363
  53. package/dist/index.cjs.map +1 -1
  54. package/dist/index.d.cts +22 -24
  55. package/dist/index.d.ts +22 -24
  56. package/dist/index.js +235 -250
  57. package/dist/index.js.map +1 -1
  58. package/package.json +12 -15
  59. package/src/styles/globals.css +1 -1
@@ -1,15 +1,12 @@
1
1
  "use client";
2
2
  import * as React4 from 'react';
3
3
  import { createContext, useState, useRef, useEffect, useContext } from 'react';
4
- import { XIcon, SearchIcon, ChevronsUpDownIcon } from 'lucide-react';
4
+ import { XIcon, SearchIcon } from 'lucide-react';
5
5
  import { clsx } from 'clsx';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
  import { cva } from 'class-variance-authority';
8
8
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
9
- import { Dialog } from '@base-ui/react/dialog';
10
- import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
11
- import { Input as Input$1 } from '@base-ui/react/input';
12
- import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
9
+ import { Command as Command$1 } from 'cmdk';
13
10
  import { Popover as Popover$1 } from '@base-ui/react/popover';
14
11
 
15
12
  function cn(...inputs) {
@@ -112,6 +109,111 @@ function useFloatingOverlayPortalProps() {
112
109
  const zIndexClass = floatingZIndex === "elevated" ? "z-[var(--z-layer-floating-elevated)]" : "z-[var(--z-layer-floating)]";
113
110
  return { container, zIndexClass };
114
111
  }
112
+ function Command({
113
+ className,
114
+ ...props
115
+ }) {
116
+ return /* @__PURE__ */ jsx(
117
+ Command$1,
118
+ {
119
+ className: cn(
120
+ "flex h-full w-full flex-col overflow-hidden rounded-2xl",
121
+ className
122
+ ),
123
+ "data-slot": "command",
124
+ ...props
125
+ }
126
+ );
127
+ }
128
+ function CommandInput({
129
+ className,
130
+ placeholder,
131
+ ...props
132
+ }) {
133
+ return /* @__PURE__ */ jsx("div", { className: "px-2.5 py-1.5", "data-slot": "command-input-wrapper", children: /* @__PURE__ */ jsxs(
134
+ "div",
135
+ {
136
+ className: cn(
137
+ "flex items-center gap-2 rounded-lg px-3 text-base",
138
+ className
139
+ ),
140
+ children: [
141
+ /* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 text-muted-foreground" }),
142
+ /* @__PURE__ */ jsx(
143
+ Command$1.Input,
144
+ {
145
+ className: "flex h-10 w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
146
+ placeholder,
147
+ "data-slot": "command-input",
148
+ ...props
149
+ }
150
+ )
151
+ ]
152
+ }
153
+ ) });
154
+ }
155
+ function CommandList({
156
+ className,
157
+ ...props
158
+ }) {
159
+ return /* @__PURE__ */ jsx(
160
+ Command$1.List,
161
+ {
162
+ className: cn("not-empty:scroll-py-2 not-empty:p-2 max-h-[300px] overflow-y-auto overflow-x-hidden", className),
163
+ "data-slot": "command-list",
164
+ ...props
165
+ }
166
+ );
167
+ }
168
+ function CommandEmpty({
169
+ className,
170
+ ...props
171
+ }) {
172
+ return /* @__PURE__ */ jsx(
173
+ Command$1.Empty,
174
+ {
175
+ className: cn("not-empty:py-6", className),
176
+ "data-slot": "command-empty",
177
+ ...props
178
+ }
179
+ );
180
+ }
181
+ function CommandGroup({
182
+ className,
183
+ heading,
184
+ children,
185
+ ...props
186
+ }) {
187
+ return /* @__PURE__ */ jsx(
188
+ Command$1.Group,
189
+ {
190
+ className: cn(
191
+ "overflow-hidden text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
192
+ className
193
+ ),
194
+ heading,
195
+ "data-slot": "command-group",
196
+ ...props,
197
+ children
198
+ }
199
+ );
200
+ }
201
+ function CommandItem({
202
+ className,
203
+ ...props
204
+ }) {
205
+ return /* @__PURE__ */ jsx(
206
+ Command$1.Item,
207
+ {
208
+ className: cn(
209
+ "relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
210
+ className
211
+ ),
212
+ "data-slot": "command-item",
213
+ ...props
214
+ }
215
+ );
216
+ }
115
217
  function composeRefs(...refs) {
116
218
  return (node) => {
117
219
  refs.forEach((ref) => {
@@ -195,389 +297,6 @@ Slot.displayName = "Slot";
195
297
  function Slottable({ children }) {
196
298
  return /* @__PURE__ */ jsx(Fragment, { children });
197
299
  }
198
- function Input({ className, size = "default", unstyled = false, ...props }) {
199
- const isFloating = props.placeholder === " ";
200
- return /* @__PURE__ */ jsx(
201
- "span",
202
- {
203
- className: cn(
204
- !unstyled && [
205
- // Base layout
206
- "relative inline-flex w-full rounded-lg border border-input bg-background bg-clip-padding text-base shadow-xs transition-shadow",
207
- // Inner shadow highlight
208
- "before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)]",
209
- "not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)]",
210
- // Focus state - use primary brand color
211
- "has-focus-visible:border-primary/60 has-focus-visible:ring-[3px] has-focus-visible:ring-primary/35",
212
- // Invalid state
213
- "has-aria-invalid:border-destructive/36",
214
- "has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16",
215
- // Disabled state
216
- "has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none",
217
- // Dark mode
218
- "sm:text-sm dark:bg-input/32 dark:not-in-data-[slot=group]:bg-clip-border",
219
- "dark:has-aria-invalid:ring-destructive/24",
220
- "dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/8%)]"
221
- ],
222
- className
223
- ) || void 0,
224
- "data-size": size,
225
- "data-slot": "input-control",
226
- children: /* @__PURE__ */ jsx(
227
- Input$1,
228
- {
229
- className: cn(
230
- "w-full min-w-0 rounded-[inherit] bg-transparent px-[calc(--spacing(3)-1px)] outline-none",
231
- isFloating ? "h-11 pt-4.5 pb-1 leading-none placeholder:text-transparent sm:h-10" : "h-8.5 leading-8.5 placeholder:text-muted-foreground/72 sm:h-7.5 sm:leading-7.5",
232
- size === "sm" && (isFloating ? "h-10 px-[calc(--spacing(2.5)-1px)] pt-4 pb-1 sm:h-9" : "h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5"),
233
- size === "lg" && (isFloating ? "h-12 pt-5 pb-1.5 sm:h-11" : "h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5"),
234
- props.type === "search" && "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none",
235
- props.type === "file" && "text-muted-foreground file:me-3 file:bg-transparent file:font-medium file:text-foreground file:text-sm"
236
- ),
237
- "data-slot": "input",
238
- size: typeof size === "number" ? size : void 0,
239
- ...props
240
- }
241
- )
242
- }
243
- );
244
- }
245
- var ScrollArea = React4.forwardRef(
246
- ({ className, children, scrollFade = false, scrollbarGutter = false, ...props }, ref) => {
247
- return /* @__PURE__ */ jsxs(
248
- ScrollArea$1.Root,
249
- {
250
- ref,
251
- className: cn("size-full min-h-0", className),
252
- ...props,
253
- children: [
254
- /* @__PURE__ */ jsx(
255
- ScrollArea$1.Viewport,
256
- {
257
- className: cn(
258
- "h-full overscroll-contain rounded-[inherit] outline-none transition-shadows focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background",
259
- scrollFade && "mask-t-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-start)))] mask-b-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-end)))] mask-l-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-start)))] mask-r-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-end)))] [--fade-size:1.5rem]",
260
- scrollbarGutter && "data-has-overflow-y:pe-2.5 data-has-overflow-x:pb-2.5"
261
- ),
262
- "data-slot": "scroll-area-viewport",
263
- children
264
- }
265
- ),
266
- /* @__PURE__ */ jsx(ScrollBar, { orientation: "vertical" }),
267
- /* @__PURE__ */ jsx(ScrollBar, { orientation: "horizontal" }),
268
- /* @__PURE__ */ jsx(ScrollArea$1.Corner, { "data-slot": "scroll-area-corner" })
269
- ]
270
- }
271
- );
272
- }
273
- );
274
- ScrollArea.displayName = "ScrollArea";
275
- function ScrollBar({
276
- className,
277
- orientation = "vertical",
278
- ...props
279
- }) {
280
- return /* @__PURE__ */ jsx(
281
- ScrollArea$1.Scrollbar,
282
- {
283
- className: cn(
284
- "m-1 flex opacity-0 transition-opacity delay-300 data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 data-[orientation=horizontal]:flex-col data-hovering:opacity-100 data-scrolling:opacity-100 data-hovering:delay-0 data-scrolling:delay-0 data-hovering:duration-100 data-scrolling:duration-100",
285
- className
286
- ),
287
- "data-slot": "scroll-area-scrollbar",
288
- orientation,
289
- ...props,
290
- children: /* @__PURE__ */ jsx(
291
- ScrollArea$1.Thumb,
292
- {
293
- className: "relative flex-1 rounded-full bg-foreground/20",
294
- "data-slot": "scroll-area-thumb"
295
- }
296
- )
297
- }
298
- );
299
- }
300
- var Autocomplete = Autocomplete$1.Root;
301
- function AutocompleteInput({
302
- className,
303
- showTrigger = false,
304
- showClear = false,
305
- startAddon,
306
- size = "default",
307
- ...props
308
- }) {
309
- const sizeValue = size;
310
- return /* @__PURE__ */ jsxs("div", { className: "relative not-has-[>*.w-full]:w-fit w-full", children: [
311
- startAddon && /* @__PURE__ */ jsx(
312
- "div",
313
- {
314
- "aria-hidden": "true",
315
- className: "[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
316
- "data-slot": "autocomplete-start-addon",
317
- children: startAddon
318
- }
319
- ),
320
- /* @__PURE__ */ jsx(
321
- Autocomplete$1.Input,
322
- {
323
- className: cn(
324
- startAddon && "data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]",
325
- sizeValue === "sm" ? "has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5" : "has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7",
326
- className
327
- ),
328
- "data-slot": "autocomplete-input",
329
- render: /* @__PURE__ */ jsx(Input, { size: sizeValue }),
330
- ...props
331
- }
332
- ),
333
- showTrigger && /* @__PURE__ */ jsx(
334
- AutocompleteTrigger,
335
- {
336
- className: cn(
337
- "-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
338
- sizeValue === "sm" ? "end-0" : "end-0.5"
339
- ),
340
- children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, {})
341
- }
342
- ),
343
- showClear && /* @__PURE__ */ jsx(
344
- AutocompleteClear,
345
- {
346
- className: cn(
347
- "-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
348
- sizeValue === "sm" ? "end-0" : "end-0.5"
349
- ),
350
- children: /* @__PURE__ */ jsx(XIcon, {})
351
- }
352
- )
353
- ] });
354
- }
355
- function AutocompleteItem({
356
- className,
357
- children,
358
- ...props
359
- }) {
360
- return /* @__PURE__ */ jsx(
361
- Autocomplete$1.Item,
362
- {
363
- className: cn(
364
- "flex min-h-8 cursor-default select-none items-center rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm",
365
- className
366
- ),
367
- "data-slot": "autocomplete-item",
368
- ...props,
369
- children
370
- }
371
- );
372
- }
373
- function AutocompleteGroup({
374
- className,
375
- ...props
376
- }) {
377
- return /* @__PURE__ */ jsx(
378
- Autocomplete$1.Group,
379
- {
380
- className: cn("[[role=group]+&]:mt-1.5", className),
381
- "data-slot": "autocomplete-group",
382
- ...props
383
- }
384
- );
385
- }
386
- function AutocompleteGroupLabel({
387
- className,
388
- ...props
389
- }) {
390
- return /* @__PURE__ */ jsx(
391
- Autocomplete$1.GroupLabel,
392
- {
393
- className: cn(
394
- "px-2 py-1.5 font-medium text-muted-foreground text-xs",
395
- className
396
- ),
397
- "data-slot": "autocomplete-group-label",
398
- ...props
399
- }
400
- );
401
- }
402
- function AutocompleteEmpty({
403
- className,
404
- ...props
405
- }) {
406
- return /* @__PURE__ */ jsx(
407
- Autocomplete$1.Empty,
408
- {
409
- className: cn(
410
- "not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm",
411
- className
412
- ),
413
- "data-slot": "autocomplete-empty",
414
- ...props
415
- }
416
- );
417
- }
418
- function AutocompleteList({
419
- className,
420
- ...props
421
- }) {
422
- return /* @__PURE__ */ jsx(ScrollArea, { scrollbarGutter: true, scrollFade: true, children: /* @__PURE__ */ jsx(
423
- Autocomplete$1.List,
424
- {
425
- className: cn(
426
- "not-empty:scroll-py-1 not-empty:p-1 in-data-has-overflow-y:pe-3",
427
- className
428
- ),
429
- "data-slot": "autocomplete-list",
430
- ...props
431
- }
432
- ) });
433
- }
434
- function AutocompleteClear({
435
- className,
436
- ...props
437
- }) {
438
- return /* @__PURE__ */ jsx(
439
- Autocomplete$1.Clear,
440
- {
441
- className: cn(
442
- "-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
443
- className
444
- ),
445
- "data-slot": "autocomplete-clear",
446
- ...props,
447
- children: /* @__PURE__ */ jsx(XIcon, {})
448
- }
449
- );
450
- }
451
- function AutocompleteTrigger({
452
- className,
453
- ...props
454
- }) {
455
- return /* @__PURE__ */ jsx(
456
- Autocomplete$1.Trigger,
457
- {
458
- className,
459
- "data-slot": "autocomplete-trigger",
460
- ...props
461
- }
462
- );
463
- }
464
- var CommandInputContext = React4.createContext({
465
- inputRef: null
466
- });
467
- Dialog.Root;
468
- function Command({
469
- autoHighlight = "always",
470
- keepHighlight = true,
471
- open = true,
472
- ...props
473
- }) {
474
- const AutocompleteAny = Autocomplete;
475
- return /* @__PURE__ */ jsx(
476
- AutocompleteAny,
477
- {
478
- autoHighlight,
479
- keepHighlight,
480
- open,
481
- ...props
482
- }
483
- );
484
- }
485
- function CommandInput({
486
- className,
487
- placeholder = void 0,
488
- value,
489
- onValueChange,
490
- ...props
491
- }) {
492
- const { inputRef } = React4.useContext(CommandInputContext);
493
- return /* @__PURE__ */ jsx("div", { className: "px-2.5 py-1.5", children: /* @__PURE__ */ jsx(
494
- AutocompleteInput,
495
- {
496
- className: cn(
497
- "border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0",
498
- className
499
- ),
500
- placeholder,
501
- ref: inputRef,
502
- size: "lg",
503
- startAddon: /* @__PURE__ */ jsx(SearchIcon, {}),
504
- value,
505
- onChange: onValueChange ? (e) => onValueChange(e.target.value) : void 0,
506
- ...props
507
- }
508
- ) });
509
- }
510
- function CommandList({
511
- className,
512
- ...props
513
- }) {
514
- return /* @__PURE__ */ jsx(
515
- AutocompleteList,
516
- {
517
- className: cn("not-empty:scroll-py-2 not-empty:p-2", className),
518
- "data-slot": "command-list",
519
- ...props
520
- }
521
- );
522
- }
523
- function CommandEmpty({
524
- className,
525
- ...props
526
- }) {
527
- return /* @__PURE__ */ jsx(
528
- AutocompleteEmpty,
529
- {
530
- className: cn("not-empty:py-6", className),
531
- "data-slot": "command-empty",
532
- ...props
533
- }
534
- );
535
- }
536
- function CommandGroup({
537
- className,
538
- heading,
539
- children,
540
- ...props
541
- }) {
542
- return /* @__PURE__ */ jsxs(
543
- AutocompleteGroup,
544
- {
545
- className,
546
- "data-slot": "command-group",
547
- ...props,
548
- children: [
549
- heading && /* @__PURE__ */ jsx(CommandGroupLabel, { children: heading }),
550
- children
551
- ]
552
- }
553
- );
554
- }
555
- function CommandGroupLabel({
556
- className,
557
- ...props
558
- }) {
559
- return /* @__PURE__ */ jsx(
560
- AutocompleteGroupLabel,
561
- {
562
- className,
563
- "data-slot": "command-group-label",
564
- ...props
565
- }
566
- );
567
- }
568
- function CommandItem({
569
- className,
570
- ...props
571
- }) {
572
- return /* @__PURE__ */ jsx(
573
- AutocompleteItem,
574
- {
575
- className: cn("py-1.5", className),
576
- "data-slot": "command-item",
577
- ...props
578
- }
579
- );
580
- }
581
300
  function Popover({ ...props }) {
582
301
  return /* @__PURE__ */ jsx(Popover$1.Root, { "data-slot": "popover", ...props });
583
302
  }