@nuvia/components 1.4.0 → 1.4.2

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 (49) hide show
  1. package/dist/index.cjs +254 -217
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +254 -217
  4. package/dist/index.js.map +1 -1
  5. package/dist/ui/alert.d.cts +1 -1
  6. package/dist/ui/alert.d.ts +1 -1
  7. package/dist/ui/combobox.cjs +100 -77
  8. package/dist/ui/combobox.cjs.map +1 -1
  9. package/dist/ui/combobox.js +100 -77
  10. package/dist/ui/combobox.js.map +1 -1
  11. package/dist/ui/command.cjs +1 -1
  12. package/dist/ui/command.cjs.map +1 -1
  13. package/dist/ui/command.d.cts +7 -7
  14. package/dist/ui/command.d.ts +7 -7
  15. package/dist/ui/command.js +1 -1
  16. package/dist/ui/command.js.map +1 -1
  17. package/dist/ui/context-menu.cjs +1 -1
  18. package/dist/ui/context-menu.cjs.map +1 -1
  19. package/dist/ui/context-menu.js +1 -1
  20. package/dist/ui/context-menu.js.map +1 -1
  21. package/dist/ui/input-otp.d.cts +2 -2
  22. package/dist/ui/input-otp.d.ts +2 -2
  23. package/dist/ui/multi-combobox.cjs +149 -135
  24. package/dist/ui/multi-combobox.cjs.map +1 -1
  25. package/dist/ui/multi-combobox.js +149 -135
  26. package/dist/ui/multi-combobox.js.map +1 -1
  27. package/dist/ui/navigation-menu.cjs +1 -1
  28. package/dist/ui/navigation-menu.cjs.map +1 -1
  29. package/dist/ui/navigation-menu.js +1 -1
  30. package/dist/ui/navigation-menu.js.map +1 -1
  31. package/dist/ui/resizable.cjs +2 -2
  32. package/dist/ui/resizable.cjs.map +1 -1
  33. package/dist/ui/resizable.d.cts +1 -1
  34. package/dist/ui/resizable.d.ts +1 -1
  35. package/dist/ui/resizable.js +2 -2
  36. package/dist/ui/resizable.js.map +1 -1
  37. package/dist/ui/scroll-area.cjs +1 -1
  38. package/dist/ui/scroll-area.cjs.map +1 -1
  39. package/dist/ui/scroll-area.js +1 -1
  40. package/dist/ui/scroll-area.js.map +1 -1
  41. package/dist/ui/separator.cjs.map +1 -1
  42. package/dist/ui/separator.js.map +1 -1
  43. package/dist/ui/sidebar.cjs.map +1 -1
  44. package/dist/ui/sidebar.js.map +1 -1
  45. package/dist/ui/table.cjs +1 -1
  46. package/dist/ui/table.cjs.map +1 -1
  47. package/dist/ui/table.js +1 -1
  48. package/dist/ui/table.js.map +1 -1
  49. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1182,7 +1182,7 @@ var CommandSeparator = React36__namespace.forwardRef(({ className, ...props }, r
1182
1182
  cmdk.Command.Separator,
1183
1183
  {
1184
1184
  ref,
1185
- className: cn("-mx-1 h-px bg-border", className),
1185
+ className: cn("-mx-1 h-px bg-card", className),
1186
1186
  ...props
1187
1187
  }
1188
1188
  ));
@@ -1232,84 +1232,107 @@ var PopoverContent = React36__namespace.forwardRef(({ className, align = "center
1232
1232
  }
1233
1233
  ) }));
1234
1234
  PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
1235
- var Combobox = React36__namespace.forwardRef(({
1236
- options,
1237
- placeholder = "Select option...",
1238
- searchPlaceholder = "Search...",
1239
- emptyMessage = "No option found.",
1240
- className,
1241
- value: controlledValue,
1242
- onValueChange,
1243
- onSelect,
1244
- asChild,
1245
- children
1246
- }, ref) => {
1247
- const [open, setOpen] = React36__namespace.useState(false);
1248
- const [value, setValue] = React36__namespace.useState(controlledValue || (Array.isArray(controlledValue) ? [] : ""));
1249
- const [search, setSearch] = React36__namespace.useState("");
1250
- React36__namespace.useEffect(() => {
1251
- if (controlledValue !== void 0) {
1252
- setValue(controlledValue);
1253
- }
1254
- }, [controlledValue]);
1255
- const handleSelect = React36__namespace.useCallback((currentValue) => {
1256
- let newValue;
1257
- if (Array.isArray(value)) {
1258
- newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
1259
- } else {
1260
- newValue = currentValue === value ? "" : currentValue;
1261
- }
1262
- setValue(newValue);
1263
- onValueChange?.(newValue);
1264
- onSelect?.(newValue);
1265
- setOpen(false);
1266
- }, [value, onValueChange, onSelect]);
1267
- return /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive.Popover, { open, onOpenChange: setOpen, children: [
1268
- /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive.PopoverTrigger, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(
1269
- Button,
1270
- {
1271
- variant: "outline",
1272
- role: "combobox",
1273
- "aria-expanded": open,
1274
- className: cn("w-full justify-between", className),
1275
- children: [
1276
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground font-normal", children: Array.isArray(value) ? value.map((val) => options.find((option) => option.value === val)?.label).join(", ") : options.find((option) => option.value === value)?.label || placeholder }),
1277
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownIcon, { className: "opacity-50" })
1278
- ]
1235
+ var Combobox = React36__namespace.forwardRef(
1236
+ ({
1237
+ options,
1238
+ placeholder = "Select option...",
1239
+ searchPlaceholder = "Search...",
1240
+ emptyMessage = "No option found.",
1241
+ className,
1242
+ value: controlledValue,
1243
+ onValueChange,
1244
+ onSelect,
1245
+ asChild,
1246
+ children
1247
+ }, ref) => {
1248
+ const [open, setOpen] = React36__namespace.useState(false);
1249
+ const [value, setValue] = React36__namespace.useState(
1250
+ controlledValue || (Array.isArray(controlledValue) ? [] : "")
1251
+ );
1252
+ const [search, setSearch] = React36__namespace.useState("");
1253
+ React36__namespace.useEffect(() => {
1254
+ if (controlledValue !== void 0) {
1255
+ setValue(controlledValue);
1279
1256
  }
1280
- ) }),
1281
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: cn("w-full p-0 !rounded-xl border-none", className), children: /* @__PURE__ */ jsxRuntime.jsxs(Command, { className: "rounded-xl border", children: [
1282
- /* @__PURE__ */ jsxRuntime.jsx(CommandInput, { value: search, onValueChange: setSearch, placeholder: searchPlaceholder, className: "h-9 w-full" }),
1283
- /* @__PURE__ */ jsxRuntime.jsxs(CommandList, { children: [
1284
- /* @__PURE__ */ jsxRuntime.jsx(CommandEmpty, { children: emptyMessage }),
1285
- /* @__PURE__ */ jsxRuntime.jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
1286
- CommandItem,
1287
- {
1288
- keywords: [option.label],
1289
- className: "rounded-lg",
1290
- value: option.value,
1291
- onSelect: () => handleSelect(option.value),
1292
- onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
1293
- onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
1294
- children: [
1295
- option.label,
1296
- /* @__PURE__ */ jsxRuntime.jsx(
1297
- reactIcons.CheckIcon,
1257
+ }, [controlledValue]);
1258
+ const handleSelect = React36__namespace.useCallback(
1259
+ (currentValue) => {
1260
+ let newValue;
1261
+ if (Array.isArray(value)) {
1262
+ newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
1263
+ } else {
1264
+ newValue = currentValue === value ? "" : currentValue;
1265
+ }
1266
+ setValue(newValue);
1267
+ onValueChange?.(newValue);
1268
+ onSelect?.(newValue);
1269
+ setOpen(false);
1270
+ },
1271
+ [value, onValueChange, onSelect]
1272
+ );
1273
+ return /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive.Popover, { open, onOpenChange: setOpen, children: [
1274
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive.PopoverTrigger, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(
1275
+ Button,
1276
+ {
1277
+ variant: "outline",
1278
+ role: "combobox",
1279
+ "aria-expanded": open,
1280
+ className: cn("w-full justify-between", className),
1281
+ children: [
1282
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground font-normal", children: Array.isArray(value) ? value.map(
1283
+ (val) => options.find((option) => option.value === val)?.label
1284
+ ).join(", ") : options.find((option) => option.value === value)?.label || placeholder }),
1285
+ /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownIcon, { className: "opacity-50" })
1286
+ ]
1287
+ }
1288
+ ) }),
1289
+ /* @__PURE__ */ jsxRuntime.jsx(
1290
+ PopoverContent,
1291
+ {
1292
+ className: cn("w-full p-0 !rounded-xl border-none", className),
1293
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Command, { className: "rounded-xl border", children: [
1294
+ /* @__PURE__ */ jsxRuntime.jsx(
1295
+ CommandInput,
1296
+ {
1297
+ value: search,
1298
+ onValueChange: setSearch,
1299
+ placeholder: searchPlaceholder,
1300
+ className: "h-9 w-full"
1301
+ }
1302
+ ),
1303
+ /* @__PURE__ */ jsxRuntime.jsxs(CommandList, { children: [
1304
+ /* @__PURE__ */ jsxRuntime.jsx(CommandEmpty, { children: emptyMessage }),
1305
+ /* @__PURE__ */ jsxRuntime.jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
1306
+ CommandItem,
1298
1307
  {
1299
- className: cn(
1300
- "ml-auto",
1301
- Array.isArray(value) ? value.includes(option.value) ? "opacity-100" : "opacity-0" : value === option.value ? "opacity-100" : "opacity-0"
1302
- )
1303
- }
1304
- )
1305
- ]
1306
- },
1307
- option.value
1308
- )) })
1309
- ] })
1310
- ] }) })
1311
- ] });
1312
- });
1308
+ keywords: [option.label],
1309
+ className: "rounded-lg",
1310
+ value: option.value,
1311
+ onSelect: () => handleSelect(option.value),
1312
+ onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
1313
+ onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
1314
+ children: [
1315
+ option.label,
1316
+ /* @__PURE__ */ jsxRuntime.jsx(
1317
+ reactIcons.CheckIcon,
1318
+ {
1319
+ className: cn(
1320
+ "ml-auto",
1321
+ Array.isArray(value) ? value.includes(option.value) ? "opacity-100" : "opacity-0" : value === option.value ? "opacity-100" : "opacity-0"
1322
+ )
1323
+ }
1324
+ )
1325
+ ]
1326
+ },
1327
+ `${option.value}-${option.label}`
1328
+ )) })
1329
+ ] })
1330
+ ] })
1331
+ }
1332
+ )
1333
+ ] });
1334
+ }
1335
+ );
1313
1336
  Combobox.displayName = "Combobox";
1314
1337
  var ContextMenu = ContextMenuPrimitive__namespace.Root;
1315
1338
  var ContextMenuTrigger = ContextMenuPrimitive__namespace.Trigger;
@@ -1421,7 +1444,7 @@ var ContextMenuSeparator = React36__namespace.forwardRef(({ className, ...props
1421
1444
  ContextMenuPrimitive__namespace.Separator,
1422
1445
  {
1423
1446
  ref,
1424
- className: cn("-mx-1 my-1 h-px bg-border", className),
1447
+ className: cn("-mx-1 my-1 h-px bg-card", className),
1425
1448
  ...props
1426
1449
  }
1427
1450
  ));
@@ -2326,149 +2349,163 @@ var MenubarShortcut = ({
2326
2349
  );
2327
2350
  };
2328
2351
  MenubarShortcut.displayname = "MenubarShortcut";
2329
- var MultiCombobox = React36__namespace.forwardRef(({
2330
- options,
2331
- placeholder = "Select options...",
2332
- searchPlaceholder = "Search...",
2333
- emptyMessage = "No options found.",
2334
- className,
2335
- contentClassName,
2336
- value: controlledValue,
2337
- onValueChange,
2338
- onSelect,
2339
- onCreate,
2340
- maxDisplayedItems = 3,
2341
- asChild,
2342
- children
2343
- }, ref) => {
2344
- const [open, setOpen] = React36__namespace.useState(false);
2345
- const [value, setValue] = React36__namespace.useState(controlledValue || []);
2346
- const [search, setSearch] = React36__namespace.useState("");
2347
- React36__namespace.useEffect(() => {
2348
- if (controlledValue !== void 0) {
2349
- setValue(controlledValue);
2350
- }
2351
- }, [controlledValue]);
2352
- const handleSelect = React36__namespace.useCallback((currentValue) => {
2353
- const newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
2354
- setValue(newValue);
2355
- onValueChange?.(newValue);
2356
- onSelect?.(newValue);
2357
- }, [value, onValueChange, onSelect]);
2358
- const handleRemove = React36__namespace.useCallback((valueToRemove) => {
2359
- const newValue = value.filter((v) => v !== valueToRemove);
2360
- setValue(newValue);
2361
- onValueChange?.(newValue);
2362
- onSelect?.(newValue);
2363
- }, [value, onValueChange, onSelect]);
2364
- const selectedLabels = React36__namespace.useMemo(() => {
2365
- return value.map((v) => options.find((opt) => opt.value === v)?.label).filter(Boolean);
2366
- }, [value, options]);
2367
- return /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive.Popover, { open, onOpenChange: setOpen, children: [
2368
- /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive.PopoverTrigger, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(
2369
- Button,
2370
- {
2371
- variant: "outline",
2372
- role: "combobox",
2373
- "aria-expanded": open,
2374
- className: cn("w-full justify-between", className),
2375
- children: [
2376
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1 items-center", children: [
2377
- value.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1", children: [
2378
- selectedLabels.slice(0, maxDisplayedItems).map((label, index) => /* @__PURE__ */ jsxRuntime.jsxs(
2379
- "div",
2352
+ var MultiCombobox = React36__namespace.forwardRef(
2353
+ ({
2354
+ options,
2355
+ placeholder = "Select options...",
2356
+ searchPlaceholder = "Search...",
2357
+ emptyMessage = "No options found.",
2358
+ className,
2359
+ contentClassName,
2360
+ value: controlledValue,
2361
+ onValueChange,
2362
+ onSelect,
2363
+ onCreate,
2364
+ maxDisplayedItems = 3,
2365
+ asChild,
2366
+ children
2367
+ }, ref) => {
2368
+ const [open, setOpen] = React36__namespace.useState(false);
2369
+ const [value, setValue] = React36__namespace.useState(controlledValue || []);
2370
+ const [search, setSearch] = React36__namespace.useState("");
2371
+ React36__namespace.useEffect(() => {
2372
+ if (controlledValue !== void 0) {
2373
+ setValue(controlledValue);
2374
+ }
2375
+ }, [controlledValue]);
2376
+ const handleSelect = React36__namespace.useCallback(
2377
+ (currentValue) => {
2378
+ const newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
2379
+ setValue(newValue);
2380
+ onValueChange?.(newValue);
2381
+ onSelect?.(newValue);
2382
+ },
2383
+ [value, onValueChange, onSelect]
2384
+ );
2385
+ const handleRemove = React36__namespace.useCallback(
2386
+ (valueToRemove) => {
2387
+ const newValue = value.filter((v) => v !== valueToRemove);
2388
+ setValue(newValue);
2389
+ onValueChange?.(newValue);
2390
+ onSelect?.(newValue);
2391
+ },
2392
+ [value, onValueChange, onSelect]
2393
+ );
2394
+ const selectedLabels = React36__namespace.useMemo(() => {
2395
+ return value.map((v) => options.find((opt) => opt.value === v)?.label).filter(Boolean);
2396
+ }, [value, options]);
2397
+ return /* @__PURE__ */ jsxRuntime.jsxs(PopoverPrimitive.Popover, { open, onOpenChange: setOpen, children: [
2398
+ /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive.PopoverTrigger, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsxs(
2399
+ Button,
2400
+ {
2401
+ variant: "outline",
2402
+ role: "combobox",
2403
+ "aria-expanded": open,
2404
+ className: cn("w-full justify-between", className),
2405
+ children: [
2406
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1 items-center", children: [
2407
+ value.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-1", children: [
2408
+ selectedLabels.slice(0, maxDisplayedItems).map((label, index) => /* @__PURE__ */ jsxRuntime.jsxs(
2409
+ "div",
2410
+ {
2411
+ className: "flex items-center gap-1 bg-secondary px-2 py-0.5 rounded-md text-sm",
2412
+ children: [
2413
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
2414
+ /* @__PURE__ */ jsxRuntime.jsx(
2415
+ "div",
2416
+ {
2417
+ onClick: (e) => {
2418
+ e.stopPropagation();
2419
+ handleRemove(value[index]);
2420
+ },
2421
+ className: "hover:bg-secondary-foreground/20 rounded-sm",
2422
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross2Icon, { className: "h-3 w-3" })
2423
+ }
2424
+ )
2425
+ ]
2426
+ },
2427
+ index
2428
+ )),
2429
+ selectedLabels.length > maxDisplayedItems && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-muted-foreground", children: [
2430
+ "+",
2431
+ selectedLabels.length - maxDisplayedItems,
2432
+ " more"
2433
+ ] })
2434
+ ] }),
2435
+ value.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground font-normal", children: placeholder })
2436
+ ] }),
2437
+ /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownIcon, { className: "opacity-50" })
2438
+ ]
2439
+ }
2440
+ ) }),
2441
+ /* @__PURE__ */ jsxRuntime.jsx(
2442
+ PopoverContent,
2443
+ {
2444
+ className: cn("w-full p-0 !rounded-xl border-none", contentClassName),
2445
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Command, { className: "rounded-xl border", children: [
2446
+ /* @__PURE__ */ jsxRuntime.jsx(
2447
+ CommandInput,
2448
+ {
2449
+ placeholder: searchPlaceholder,
2450
+ className: "h-9 w-full",
2451
+ value: search,
2452
+ onValueChange: setSearch
2453
+ }
2454
+ ),
2455
+ /* @__PURE__ */ jsxRuntime.jsxs(CommandList, { children: [
2456
+ /* @__PURE__ */ jsxRuntime.jsxs(CommandEmpty, { className: "flex flex-col gap-3 px-4 py-5", children: [
2457
+ !!onCreate && search && /* @__PURE__ */ jsxRuntime.jsxs(
2458
+ Button,
2459
+ {
2460
+ variant: "outline",
2461
+ size: "sm",
2462
+ onClick: () => {
2463
+ setOpen(false);
2464
+ onCreate(search);
2465
+ },
2466
+ children: [
2467
+ /* @__PURE__ */ jsxRuntime.jsx(reactIcons.PlusIcon, { className: "h-4 w-4" }),
2468
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "truncate", children: [
2469
+ 'Create "',
2470
+ search,
2471
+ '"'
2472
+ ] })
2473
+ ]
2474
+ }
2475
+ ),
2476
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-center text-muted-foreground text-xs", children: "No results found" })
2477
+ ] }),
2478
+ /* @__PURE__ */ jsxRuntime.jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
2479
+ CommandItem,
2380
2480
  {
2381
- className: "flex items-center gap-1 bg-secondary px-2 py-0.5 rounded-md text-sm",
2481
+ className: "rounded-xl",
2482
+ keywords: [option.label],
2483
+ value: option.value,
2484
+ onSelect: () => handleSelect(option.value),
2485
+ onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
2486
+ onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
2382
2487
  children: [
2383
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
2488
+ option.label,
2384
2489
  /* @__PURE__ */ jsxRuntime.jsx(
2385
- "div",
2490
+ reactIcons.CheckIcon,
2386
2491
  {
2387
- onClick: (e) => {
2388
- e.stopPropagation();
2389
- handleRemove(value[index]);
2390
- },
2391
- className: "hover:bg-secondary-foreground/20 rounded-sm",
2392
- children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.Cross2Icon, { className: "h-3 w-3" })
2492
+ className: cn(
2493
+ "ml-auto",
2494
+ value.includes(option.value) ? "opacity-100" : "opacity-0"
2495
+ )
2393
2496
  }
2394
2497
  )
2395
2498
  ]
2396
2499
  },
2397
- index
2398
- )),
2399
- selectedLabels.length > maxDisplayedItems && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-sm text-muted-foreground", children: [
2400
- "+",
2401
- selectedLabels.length - maxDisplayedItems,
2402
- " more"
2403
- ] })
2404
- ] }),
2405
- value.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground font-normal", children: placeholder })
2406
- ] }),
2407
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownIcon, { className: "opacity-50" })
2408
- ]
2409
- }
2410
- ) }),
2411
- /* @__PURE__ */ jsxRuntime.jsx(PopoverContent, { className: cn("w-full p-0 !rounded-xl border-none", contentClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(Command, { className: "rounded-xl border", children: [
2412
- /* @__PURE__ */ jsxRuntime.jsx(
2413
- CommandInput,
2414
- {
2415
- placeholder: searchPlaceholder,
2416
- className: "h-9 w-full",
2417
- value: search,
2418
- onValueChange: setSearch
2500
+ `${option.value}-${option.label}`
2501
+ )) })
2502
+ ] })
2503
+ ] })
2419
2504
  }
2420
- ),
2421
- /* @__PURE__ */ jsxRuntime.jsxs(CommandList, { children: [
2422
- /* @__PURE__ */ jsxRuntime.jsxs(CommandEmpty, { className: "flex flex-col gap-3 px-4 py-5", children: [
2423
- !!onCreate && search && /* @__PURE__ */ jsxRuntime.jsxs(
2424
- Button,
2425
- {
2426
- variant: "outline",
2427
- size: "sm",
2428
- onClick: () => {
2429
- setOpen(false);
2430
- onCreate(search);
2431
- },
2432
- children: [
2433
- /* @__PURE__ */ jsxRuntime.jsx(reactIcons.PlusIcon, { className: "h-4 w-4" }),
2434
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "truncate", children: [
2435
- 'Create "',
2436
- search,
2437
- '"'
2438
- ] })
2439
- ]
2440
- }
2441
- ),
2442
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-center text-muted-foreground text-xs", children: "No results found" })
2443
- ] }),
2444
- /* @__PURE__ */ jsxRuntime.jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
2445
- CommandItem,
2446
- {
2447
- className: "rounded-lg",
2448
- keywords: [option.label],
2449
- value: option.value,
2450
- onSelect: () => handleSelect(option.value),
2451
- onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
2452
- onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
2453
- children: [
2454
- option.label,
2455
- /* @__PURE__ */ jsxRuntime.jsx(
2456
- reactIcons.CheckIcon,
2457
- {
2458
- className: cn(
2459
- "ml-auto",
2460
- value.includes(option.value) ? "opacity-100" : "opacity-0"
2461
- )
2462
- }
2463
- )
2464
- ]
2465
- },
2466
- option.value
2467
- )) })
2468
- ] })
2469
- ] }) })
2470
- ] });
2471
- });
2505
+ )
2506
+ ] });
2507
+ }
2508
+ );
2472
2509
  MultiCombobox.displayName = "MultiCombobox";
2473
2510
  var NavigationMenu = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
2474
2511
  NavigationMenuPrimitive__namespace.Root,
@@ -2556,7 +2593,7 @@ var NavigationMenuIndicator = React36__namespace.forwardRef(({ className, ...pro
2556
2593
  className
2557
2594
  ),
2558
2595
  ...props,
2559
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
2596
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-card shadow-md" })
2560
2597
  }
2561
2598
  ));
2562
2599
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
@@ -2712,11 +2749,11 @@ var ResizableHandle = ({
2712
2749
  ResizablePrimitive__namespace.PanelResizeHandle,
2713
2750
  {
2714
2751
  className: cn(
2715
- "relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
2752
+ "relative flex w-px items-center justify-center bg-card after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
2716
2753
  className
2717
2754
  ),
2718
2755
  ...props,
2719
- children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
2756
+ children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-card", children: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
2720
2757
  }
2721
2758
  );
2722
2759
  var ScrollArea = React36__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
@@ -2745,7 +2782,7 @@ var ScrollBar = React36__namespace.forwardRef(({ className, orientation = "verti
2745
2782
  className
2746
2783
  ),
2747
2784
  ...props,
2748
- children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
2785
+ children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-card" })
2749
2786
  }
2750
2787
  ));
2751
2788
  ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
@@ -3786,7 +3823,7 @@ var Table = React36__namespace.forwardRef(
3786
3823
  "div",
3787
3824
  {
3788
3825
  className: cn(
3789
- "relative w-full rounded-xl border border-border overflow-auto",
3826
+ "relative w-full rounded-xl bg-background border border-border overflow-auto",
3790
3827
  containerClassName
3791
3828
  ),
3792
3829
  children: /* @__PURE__ */ jsxRuntime.jsx(