@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.js CHANGED
@@ -1131,7 +1131,7 @@ var CommandSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @
1131
1131
  Command$1.Separator,
1132
1132
  {
1133
1133
  ref,
1134
- className: cn("-mx-1 h-px bg-border", className),
1134
+ className: cn("-mx-1 h-px bg-card", className),
1135
1135
  ...props
1136
1136
  }
1137
1137
  ));
@@ -1181,84 +1181,107 @@ var PopoverContent = React36.forwardRef(({ className, align = "center", sideOffs
1181
1181
  }
1182
1182
  ) }));
1183
1183
  PopoverContent.displayName = PopoverPrimitive.Content.displayName;
1184
- var Combobox = React36.forwardRef(({
1185
- options,
1186
- placeholder = "Select option...",
1187
- searchPlaceholder = "Search...",
1188
- emptyMessage = "No option found.",
1189
- className,
1190
- value: controlledValue,
1191
- onValueChange,
1192
- onSelect,
1193
- asChild,
1194
- children
1195
- }, ref) => {
1196
- const [open, setOpen] = React36.useState(false);
1197
- const [value, setValue] = React36.useState(controlledValue || (Array.isArray(controlledValue) ? [] : ""));
1198
- const [search, setSearch] = React36.useState("");
1199
- React36.useEffect(() => {
1200
- if (controlledValue !== void 0) {
1201
- setValue(controlledValue);
1202
- }
1203
- }, [controlledValue]);
1204
- const handleSelect = React36.useCallback((currentValue) => {
1205
- let newValue;
1206
- if (Array.isArray(value)) {
1207
- newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
1208
- } else {
1209
- newValue = currentValue === value ? "" : currentValue;
1210
- }
1211
- setValue(newValue);
1212
- onValueChange?.(newValue);
1213
- onSelect?.(newValue);
1214
- setOpen(false);
1215
- }, [value, onValueChange, onSelect]);
1216
- return /* @__PURE__ */ jsxs(Popover$1, { open, onOpenChange: setOpen, children: [
1217
- /* @__PURE__ */ jsx(PopoverTrigger$1, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxs(
1218
- Button,
1219
- {
1220
- variant: "outline",
1221
- role: "combobox",
1222
- "aria-expanded": open,
1223
- className: cn("w-full justify-between", className),
1224
- children: [
1225
- /* @__PURE__ */ 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 }),
1226
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: "opacity-50" })
1227
- ]
1184
+ var Combobox = React36.forwardRef(
1185
+ ({
1186
+ options,
1187
+ placeholder = "Select option...",
1188
+ searchPlaceholder = "Search...",
1189
+ emptyMessage = "No option found.",
1190
+ className,
1191
+ value: controlledValue,
1192
+ onValueChange,
1193
+ onSelect,
1194
+ asChild,
1195
+ children
1196
+ }, ref) => {
1197
+ const [open, setOpen] = React36.useState(false);
1198
+ const [value, setValue] = React36.useState(
1199
+ controlledValue || (Array.isArray(controlledValue) ? [] : "")
1200
+ );
1201
+ const [search, setSearch] = React36.useState("");
1202
+ React36.useEffect(() => {
1203
+ if (controlledValue !== void 0) {
1204
+ setValue(controlledValue);
1228
1205
  }
1229
- ) }),
1230
- /* @__PURE__ */ jsx(PopoverContent, { className: cn("w-full p-0 !rounded-xl border-none", className), children: /* @__PURE__ */ jsxs(Command, { className: "rounded-xl border", children: [
1231
- /* @__PURE__ */ jsx(CommandInput, { value: search, onValueChange: setSearch, placeholder: searchPlaceholder, className: "h-9 w-full" }),
1232
- /* @__PURE__ */ jsxs(CommandList, { children: [
1233
- /* @__PURE__ */ jsx(CommandEmpty, { children: emptyMessage }),
1234
- /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
1235
- CommandItem,
1236
- {
1237
- keywords: [option.label],
1238
- className: "rounded-lg",
1239
- value: option.value,
1240
- onSelect: () => handleSelect(option.value),
1241
- onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
1242
- onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
1243
- children: [
1244
- option.label,
1245
- /* @__PURE__ */ jsx(
1246
- CheckIcon,
1206
+ }, [controlledValue]);
1207
+ const handleSelect = React36.useCallback(
1208
+ (currentValue) => {
1209
+ let newValue;
1210
+ if (Array.isArray(value)) {
1211
+ newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
1212
+ } else {
1213
+ newValue = currentValue === value ? "" : currentValue;
1214
+ }
1215
+ setValue(newValue);
1216
+ onValueChange?.(newValue);
1217
+ onSelect?.(newValue);
1218
+ setOpen(false);
1219
+ },
1220
+ [value, onValueChange, onSelect]
1221
+ );
1222
+ return /* @__PURE__ */ jsxs(Popover$1, { open, onOpenChange: setOpen, children: [
1223
+ /* @__PURE__ */ jsx(PopoverTrigger$1, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxs(
1224
+ Button,
1225
+ {
1226
+ variant: "outline",
1227
+ role: "combobox",
1228
+ "aria-expanded": open,
1229
+ className: cn("w-full justify-between", className),
1230
+ children: [
1231
+ /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground font-normal", children: Array.isArray(value) ? value.map(
1232
+ (val) => options.find((option) => option.value === val)?.label
1233
+ ).join(", ") : options.find((option) => option.value === value)?.label || placeholder }),
1234
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "opacity-50" })
1235
+ ]
1236
+ }
1237
+ ) }),
1238
+ /* @__PURE__ */ jsx(
1239
+ PopoverContent,
1240
+ {
1241
+ className: cn("w-full p-0 !rounded-xl border-none", className),
1242
+ children: /* @__PURE__ */ jsxs(Command, { className: "rounded-xl border", children: [
1243
+ /* @__PURE__ */ jsx(
1244
+ CommandInput,
1245
+ {
1246
+ value: search,
1247
+ onValueChange: setSearch,
1248
+ placeholder: searchPlaceholder,
1249
+ className: "h-9 w-full"
1250
+ }
1251
+ ),
1252
+ /* @__PURE__ */ jsxs(CommandList, { children: [
1253
+ /* @__PURE__ */ jsx(CommandEmpty, { children: emptyMessage }),
1254
+ /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
1255
+ CommandItem,
1247
1256
  {
1248
- className: cn(
1249
- "ml-auto",
1250
- Array.isArray(value) ? value.includes(option.value) ? "opacity-100" : "opacity-0" : value === option.value ? "opacity-100" : "opacity-0"
1251
- )
1252
- }
1253
- )
1254
- ]
1255
- },
1256
- option.value
1257
- )) })
1258
- ] })
1259
- ] }) })
1260
- ] });
1261
- });
1257
+ keywords: [option.label],
1258
+ className: "rounded-lg",
1259
+ value: option.value,
1260
+ onSelect: () => handleSelect(option.value),
1261
+ onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
1262
+ onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
1263
+ children: [
1264
+ option.label,
1265
+ /* @__PURE__ */ jsx(
1266
+ CheckIcon,
1267
+ {
1268
+ className: cn(
1269
+ "ml-auto",
1270
+ Array.isArray(value) ? value.includes(option.value) ? "opacity-100" : "opacity-0" : value === option.value ? "opacity-100" : "opacity-0"
1271
+ )
1272
+ }
1273
+ )
1274
+ ]
1275
+ },
1276
+ `${option.value}-${option.label}`
1277
+ )) })
1278
+ ] })
1279
+ ] })
1280
+ }
1281
+ )
1282
+ ] });
1283
+ }
1284
+ );
1262
1285
  Combobox.displayName = "Combobox";
1263
1286
  var ContextMenu = ContextMenuPrimitive.Root;
1264
1287
  var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
@@ -1370,7 +1393,7 @@ var ContextMenuSeparator = React36.forwardRef(({ className, ...props }, ref) =>
1370
1393
  ContextMenuPrimitive.Separator,
1371
1394
  {
1372
1395
  ref,
1373
- className: cn("-mx-1 my-1 h-px bg-border", className),
1396
+ className: cn("-mx-1 my-1 h-px bg-card", className),
1374
1397
  ...props
1375
1398
  }
1376
1399
  ));
@@ -2275,149 +2298,163 @@ var MenubarShortcut = ({
2275
2298
  );
2276
2299
  };
2277
2300
  MenubarShortcut.displayname = "MenubarShortcut";
2278
- var MultiCombobox = React36.forwardRef(({
2279
- options,
2280
- placeholder = "Select options...",
2281
- searchPlaceholder = "Search...",
2282
- emptyMessage = "No options found.",
2283
- className,
2284
- contentClassName,
2285
- value: controlledValue,
2286
- onValueChange,
2287
- onSelect,
2288
- onCreate,
2289
- maxDisplayedItems = 3,
2290
- asChild,
2291
- children
2292
- }, ref) => {
2293
- const [open, setOpen] = React36.useState(false);
2294
- const [value, setValue] = React36.useState(controlledValue || []);
2295
- const [search, setSearch] = React36.useState("");
2296
- React36.useEffect(() => {
2297
- if (controlledValue !== void 0) {
2298
- setValue(controlledValue);
2299
- }
2300
- }, [controlledValue]);
2301
- const handleSelect = React36.useCallback((currentValue) => {
2302
- const newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
2303
- setValue(newValue);
2304
- onValueChange?.(newValue);
2305
- onSelect?.(newValue);
2306
- }, [value, onValueChange, onSelect]);
2307
- const handleRemove = React36.useCallback((valueToRemove) => {
2308
- const newValue = value.filter((v) => v !== valueToRemove);
2309
- setValue(newValue);
2310
- onValueChange?.(newValue);
2311
- onSelect?.(newValue);
2312
- }, [value, onValueChange, onSelect]);
2313
- const selectedLabels = React36.useMemo(() => {
2314
- return value.map((v) => options.find((opt) => opt.value === v)?.label).filter(Boolean);
2315
- }, [value, options]);
2316
- return /* @__PURE__ */ jsxs(Popover$1, { open, onOpenChange: setOpen, children: [
2317
- /* @__PURE__ */ jsx(PopoverTrigger$1, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxs(
2318
- Button,
2319
- {
2320
- variant: "outline",
2321
- role: "combobox",
2322
- "aria-expanded": open,
2323
- className: cn("w-full justify-between", className),
2324
- children: [
2325
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1 items-center", children: [
2326
- value.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1", children: [
2327
- selectedLabels.slice(0, maxDisplayedItems).map((label, index) => /* @__PURE__ */ jsxs(
2328
- "div",
2301
+ var MultiCombobox = React36.forwardRef(
2302
+ ({
2303
+ options,
2304
+ placeholder = "Select options...",
2305
+ searchPlaceholder = "Search...",
2306
+ emptyMessage = "No options found.",
2307
+ className,
2308
+ contentClassName,
2309
+ value: controlledValue,
2310
+ onValueChange,
2311
+ onSelect,
2312
+ onCreate,
2313
+ maxDisplayedItems = 3,
2314
+ asChild,
2315
+ children
2316
+ }, ref) => {
2317
+ const [open, setOpen] = React36.useState(false);
2318
+ const [value, setValue] = React36.useState(controlledValue || []);
2319
+ const [search, setSearch] = React36.useState("");
2320
+ React36.useEffect(() => {
2321
+ if (controlledValue !== void 0) {
2322
+ setValue(controlledValue);
2323
+ }
2324
+ }, [controlledValue]);
2325
+ const handleSelect = React36.useCallback(
2326
+ (currentValue) => {
2327
+ const newValue = value.includes(currentValue) ? value.filter((v) => v !== currentValue) : [...value, currentValue];
2328
+ setValue(newValue);
2329
+ onValueChange?.(newValue);
2330
+ onSelect?.(newValue);
2331
+ },
2332
+ [value, onValueChange, onSelect]
2333
+ );
2334
+ const handleRemove = React36.useCallback(
2335
+ (valueToRemove) => {
2336
+ const newValue = value.filter((v) => v !== valueToRemove);
2337
+ setValue(newValue);
2338
+ onValueChange?.(newValue);
2339
+ onSelect?.(newValue);
2340
+ },
2341
+ [value, onValueChange, onSelect]
2342
+ );
2343
+ const selectedLabels = React36.useMemo(() => {
2344
+ return value.map((v) => options.find((opt) => opt.value === v)?.label).filter(Boolean);
2345
+ }, [value, options]);
2346
+ return /* @__PURE__ */ jsxs(Popover$1, { open, onOpenChange: setOpen, children: [
2347
+ /* @__PURE__ */ jsx(PopoverTrigger$1, { asChild: true, children: asChild ? children : /* @__PURE__ */ jsxs(
2348
+ Button,
2349
+ {
2350
+ variant: "outline",
2351
+ role: "combobox",
2352
+ "aria-expanded": open,
2353
+ className: cn("w-full justify-between", className),
2354
+ children: [
2355
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1 items-center", children: [
2356
+ value.length > 0 && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1", children: [
2357
+ selectedLabels.slice(0, maxDisplayedItems).map((label, index) => /* @__PURE__ */ jsxs(
2358
+ "div",
2359
+ {
2360
+ className: "flex items-center gap-1 bg-secondary px-2 py-0.5 rounded-md text-sm",
2361
+ children: [
2362
+ /* @__PURE__ */ jsx("span", { children: label }),
2363
+ /* @__PURE__ */ jsx(
2364
+ "div",
2365
+ {
2366
+ onClick: (e) => {
2367
+ e.stopPropagation();
2368
+ handleRemove(value[index]);
2369
+ },
2370
+ className: "hover:bg-secondary-foreground/20 rounded-sm",
2371
+ children: /* @__PURE__ */ jsx(Cross2Icon, { className: "h-3 w-3" })
2372
+ }
2373
+ )
2374
+ ]
2375
+ },
2376
+ index
2377
+ )),
2378
+ selectedLabels.length > maxDisplayedItems && /* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground", children: [
2379
+ "+",
2380
+ selectedLabels.length - maxDisplayedItems,
2381
+ " more"
2382
+ ] })
2383
+ ] }),
2384
+ value.length === 0 && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground font-normal", children: placeholder })
2385
+ ] }),
2386
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "opacity-50" })
2387
+ ]
2388
+ }
2389
+ ) }),
2390
+ /* @__PURE__ */ jsx(
2391
+ PopoverContent,
2392
+ {
2393
+ className: cn("w-full p-0 !rounded-xl border-none", contentClassName),
2394
+ children: /* @__PURE__ */ jsxs(Command, { className: "rounded-xl border", children: [
2395
+ /* @__PURE__ */ jsx(
2396
+ CommandInput,
2397
+ {
2398
+ placeholder: searchPlaceholder,
2399
+ className: "h-9 w-full",
2400
+ value: search,
2401
+ onValueChange: setSearch
2402
+ }
2403
+ ),
2404
+ /* @__PURE__ */ jsxs(CommandList, { children: [
2405
+ /* @__PURE__ */ jsxs(CommandEmpty, { className: "flex flex-col gap-3 px-4 py-5", children: [
2406
+ !!onCreate && search && /* @__PURE__ */ jsxs(
2407
+ Button,
2408
+ {
2409
+ variant: "outline",
2410
+ size: "sm",
2411
+ onClick: () => {
2412
+ setOpen(false);
2413
+ onCreate(search);
2414
+ },
2415
+ children: [
2416
+ /* @__PURE__ */ jsx(PlusIcon, { className: "h-4 w-4" }),
2417
+ /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
2418
+ 'Create "',
2419
+ search,
2420
+ '"'
2421
+ ] })
2422
+ ]
2423
+ }
2424
+ ),
2425
+ /* @__PURE__ */ jsx("span", { className: "text-center text-muted-foreground text-xs", children: "No results found" })
2426
+ ] }),
2427
+ /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
2428
+ CommandItem,
2329
2429
  {
2330
- className: "flex items-center gap-1 bg-secondary px-2 py-0.5 rounded-md text-sm",
2430
+ className: "rounded-xl",
2431
+ keywords: [option.label],
2432
+ value: option.value,
2433
+ onSelect: () => handleSelect(option.value),
2434
+ onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
2435
+ onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
2331
2436
  children: [
2332
- /* @__PURE__ */ jsx("span", { children: label }),
2437
+ option.label,
2333
2438
  /* @__PURE__ */ jsx(
2334
- "div",
2439
+ CheckIcon,
2335
2440
  {
2336
- onClick: (e) => {
2337
- e.stopPropagation();
2338
- handleRemove(value[index]);
2339
- },
2340
- className: "hover:bg-secondary-foreground/20 rounded-sm",
2341
- children: /* @__PURE__ */ jsx(Cross2Icon, { className: "h-3 w-3" })
2441
+ className: cn(
2442
+ "ml-auto",
2443
+ value.includes(option.value) ? "opacity-100" : "opacity-0"
2444
+ )
2342
2445
  }
2343
2446
  )
2344
2447
  ]
2345
2448
  },
2346
- index
2347
- )),
2348
- selectedLabels.length > maxDisplayedItems && /* @__PURE__ */ jsxs("span", { className: "text-sm text-muted-foreground", children: [
2349
- "+",
2350
- selectedLabels.length - maxDisplayedItems,
2351
- " more"
2352
- ] })
2353
- ] }),
2354
- value.length === 0 && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground font-normal", children: placeholder })
2355
- ] }),
2356
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: "opacity-50" })
2357
- ]
2358
- }
2359
- ) }),
2360
- /* @__PURE__ */ jsx(PopoverContent, { className: cn("w-full p-0 !rounded-xl border-none", contentClassName), children: /* @__PURE__ */ jsxs(Command, { className: "rounded-xl border", children: [
2361
- /* @__PURE__ */ jsx(
2362
- CommandInput,
2363
- {
2364
- placeholder: searchPlaceholder,
2365
- className: "h-9 w-full",
2366
- value: search,
2367
- onValueChange: setSearch
2449
+ `${option.value}-${option.label}`
2450
+ )) })
2451
+ ] })
2452
+ ] })
2368
2453
  }
2369
- ),
2370
- /* @__PURE__ */ jsxs(CommandList, { children: [
2371
- /* @__PURE__ */ jsxs(CommandEmpty, { className: "flex flex-col gap-3 px-4 py-5", children: [
2372
- !!onCreate && search && /* @__PURE__ */ jsxs(
2373
- Button,
2374
- {
2375
- variant: "outline",
2376
- size: "sm",
2377
- onClick: () => {
2378
- setOpen(false);
2379
- onCreate(search);
2380
- },
2381
- children: [
2382
- /* @__PURE__ */ jsx(PlusIcon, { className: "h-4 w-4" }),
2383
- /* @__PURE__ */ jsxs("span", { className: "truncate", children: [
2384
- 'Create "',
2385
- search,
2386
- '"'
2387
- ] })
2388
- ]
2389
- }
2390
- ),
2391
- /* @__PURE__ */ jsx("span", { className: "text-center text-muted-foreground text-xs", children: "No results found" })
2392
- ] }),
2393
- /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
2394
- CommandItem,
2395
- {
2396
- className: "rounded-lg",
2397
- keywords: [option.label],
2398
- value: option.value,
2399
- onSelect: () => handleSelect(option.value),
2400
- onKeyUp: (e) => e.key === "Enter" && handleSelect(option.value),
2401
- onKeyDown: (e) => e.key === "Enter" && handleSelect(option.value),
2402
- children: [
2403
- option.label,
2404
- /* @__PURE__ */ jsx(
2405
- CheckIcon,
2406
- {
2407
- className: cn(
2408
- "ml-auto",
2409
- value.includes(option.value) ? "opacity-100" : "opacity-0"
2410
- )
2411
- }
2412
- )
2413
- ]
2414
- },
2415
- option.value
2416
- )) })
2417
- ] })
2418
- ] }) })
2419
- ] });
2420
- });
2454
+ )
2455
+ ] });
2456
+ }
2457
+ );
2421
2458
  MultiCombobox.displayName = "MultiCombobox";
2422
2459
  var NavigationMenu = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
2423
2460
  NavigationMenuPrimitive.Root,
@@ -2505,7 +2542,7 @@ var NavigationMenuIndicator = React36.forwardRef(({ className, ...props }, ref)
2505
2542
  className
2506
2543
  ),
2507
2544
  ...props,
2508
- children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
2545
+ children: /* @__PURE__ */ jsx("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-card shadow-md" })
2509
2546
  }
2510
2547
  ));
2511
2548
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
@@ -2661,11 +2698,11 @@ var ResizableHandle = ({
2661
2698
  ResizablePrimitive.PanelResizeHandle,
2662
2699
  {
2663
2700
  className: cn(
2664
- "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",
2701
+ "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",
2665
2702
  className
2666
2703
  ),
2667
2704
  ...props,
2668
- children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
2705
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-card", children: /* @__PURE__ */ jsx(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
2669
2706
  }
2670
2707
  );
2671
2708
  var ScrollArea = React36.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
@@ -2694,7 +2731,7 @@ var ScrollBar = React36.forwardRef(({ className, orientation = "vertical", ...pr
2694
2731
  className
2695
2732
  ),
2696
2733
  ...props,
2697
- children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
2734
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-card" })
2698
2735
  }
2699
2736
  ));
2700
2737
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
@@ -3735,7 +3772,7 @@ var Table = React36.forwardRef(
3735
3772
  "div",
3736
3773
  {
3737
3774
  className: cn(
3738
- "relative w-full rounded-xl border border-border overflow-auto",
3775
+ "relative w-full rounded-xl bg-background border border-border overflow-auto",
3739
3776
  containerClassName
3740
3777
  ),
3741
3778
  children: /* @__PURE__ */ jsx(