@mlw-packages/react-components 1.10.4 → 1.10.5

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.
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { Slot } from '@radix-ui/react-slot';
5
5
  import { cva } from 'class-variance-authority';
6
6
  import { clsx } from 'clsx';
7
7
  import { twMerge } from 'tailwind-merge';
8
- import { XIcon, CircleNotchIcon, MagnifyingGlassIcon, CaretUpIcon, CaretDownIcon, CheckIcon, CaretRightIcon, CircleIcon, CloudArrowUpIcon, MinusIcon, CaretUpDownIcon, PencilSimpleIcon, ArrowsLeftRightIcon, FloppyDiskIcon, PlusIcon, TrashIcon, SidebarSimpleIcon, FilePdfIcon, FileDocIcon, FileXlsIcon, FilePptIcon, FileCsvIcon, FileTextIcon, FileImageIcon, FileVideoIcon, FileAudioIcon, FileZipIcon, FileIcon, DotsSixVerticalIcon, InfoIcon, WarningIcon, XCircleIcon, CheckCircleIcon, SunIcon, MoonIcon, CaretLeftIcon, DownloadSimpleIcon, UploadSimpleIcon, CopyIcon, ArrowClockwiseIcon, ArrowLeftIcon, GearIcon, BellIcon, DotsThreeIcon, FunnelIcon, HeartIcon, StarIcon, EyeIcon, EyeSlashIcon, LockIcon, LockOpenIcon, FolderIcon, ArrowRightIcon as ArrowRightIcon$1, ArrowsOutIcon, DownloadIcon, CalendarBlankIcon, CalendarIcon, MapPinIcon, CalendarDotsIcon, ClockIcon, AlignLeftIcon, CaretLeft, CaretRight, ArrowDownIcon, ClockUserIcon, EyeSlash, Eye, ArrowRight, ArrowUpRightIcon, ArrowDownRightIcon, FunnelSimpleIcon, PencilIcon, FileArchiveIcon, TerminalIcon, CodeIcon, CalendarDotIcon as CalendarDotIcon$1, DesktopIcon } from '@phosphor-icons/react';
8
+ import { XIcon, CircleNotchIcon, MagnifyingGlassIcon, CaretUpIcon, CaretDownIcon, CheckIcon, CaretRightIcon, CircleIcon, CloudArrowUpIcon, MinusIcon, CaretUpDownIcon, PencilSimpleIcon, ArrowsLeftRightIcon, FloppyDiskIcon, PlusIcon, TrashIcon, SidebarSimpleIcon, FilePdfIcon, FileDocIcon, FileXlsIcon, FilePptIcon, FileCsvIcon, FileTextIcon, FileImageIcon, FileVideoIcon, FileAudioIcon, FileZipIcon, FileIcon, DotsSixVerticalIcon, CopyIcon, InfoIcon, WarningIcon, XCircleIcon, CheckCircleIcon, SunIcon, MoonIcon, CaretLeftIcon, DownloadSimpleIcon, UploadSimpleIcon, ArrowClockwiseIcon, ArrowLeftIcon, GearIcon, BellIcon, DotsThreeIcon, FunnelIcon, HeartIcon, StarIcon, EyeIcon, EyeSlashIcon, LockIcon, LockOpenIcon, FolderIcon, ArrowRightIcon as ArrowRightIcon$1, ArrowsOutIcon, DownloadIcon, CalendarBlankIcon, CalendarIcon, MapPinIcon, CalendarDotsIcon, ClockIcon, AlignLeftIcon, CaretLeft, CaretRight, ArrowDownIcon, ClockUserIcon, EyeSlash, Eye, ArrowUpRightIcon, ArrowDownRightIcon, FunnelSimpleIcon, PencilIcon, FileArchiveIcon, TerminalIcon, CodeIcon, CalendarDotIcon as CalendarDotIcon$1, DesktopIcon } from '@phosphor-icons/react';
9
9
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
10
10
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
11
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -1519,20 +1519,20 @@ var TooltipContentBase = React32.forwardRef(
1519
1519
  id: "tooltip-content",
1520
1520
  role: "tooltip",
1521
1521
  className: cn(
1522
- "z-50 overflow-hidden rounded-lg bg-primary px-3 py-2 text-sm text-primary-foreground",
1523
- "shadow-lg border border-primary/20",
1524
- "animate-in fade-in-0 zoom-in-95 duration-200 ease-out",
1525
- "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-150",
1526
- "data-[side=bottom]:slide-in-from-top-2",
1527
- "data-[side=left]:slide-in-from-right-2",
1528
- "data-[side=right]:slide-in-from-left-2",
1529
- "data-[side=top]:slide-in-from-bottom-2",
1522
+ "z-50 rounded-lg bg-popover px-3 py-1.5 text-sm leading-snug text-popover-foreground",
1523
+ "[filter:drop-shadow(0_0_0.5px_hsl(var(--border)))_drop-shadow(0_4px_12px_hsl(var(--foreground)/0.08))]",
1524
+ "animate-in fade-in-0 zoom-in-95 duration-150 ease-out",
1525
+ "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:duration-100",
1526
+ "data-[side=bottom]:slide-in-from-top-1.5",
1527
+ "data-[side=left]:slide-in-from-right-1.5",
1528
+ "data-[side=right]:slide-in-from-left-1.5",
1529
+ "data-[side=top]:slide-in-from-bottom-1.5",
1530
1530
  className
1531
1531
  ),
1532
1532
  ...props,
1533
1533
  children: [
1534
1534
  props.children,
1535
- /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "fill-primary h-1.5 w-3" })
1535
+ /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "fill-popover h-2 w-3.5" })
1536
1536
  ]
1537
1537
  }
1538
1538
  ) });
@@ -2749,7 +2749,7 @@ function MultiSelectValueBase({
2749
2749
  ...props,
2750
2750
  ref: handleResize,
2751
2751
  className: cn(
2752
- "flex w-full gap-1.5 overflow-hidden",
2752
+ "flex flex-1 w-full gap-1.5 overflow-hidden min-w-0",
2753
2753
  shouldWrap && "h-full flex-wrap",
2754
2754
  className
2755
2755
  ),
@@ -16199,11 +16199,12 @@ var SystemTooltip = ({
16199
16199
  isLoading = false,
16200
16200
  onMouseDown,
16201
16201
  onClose,
16202
- onPositionChange
16202
+ onPositionChange,
16203
+ onConnectionClick,
16204
+ onProcessClick
16203
16205
  }) => {
16204
16206
  const [localPos, setLocalPos] = useState(position);
16205
16207
  const [dragging, setDragging] = useState(false);
16206
- const [expandedId, setExpandedId] = useState(null);
16207
16208
  const offsetRef = useRef({ x: 0, y: 0 });
16208
16209
  const lastMouse = useRef({ x: 0, y: 0 });
16209
16210
  useEffect(() => setLocalPos(position), [position]);
@@ -16274,6 +16275,19 @@ var SystemTooltip = ({
16274
16275
  },
16275
16276
  [id, onMouseDown]
16276
16277
  );
16278
+ const handleConnClick = useCallback(
16279
+ (e, conn) => {
16280
+ e.stopPropagation();
16281
+ const rect = e.currentTarget.getBoundingClientRect();
16282
+ const pos = { x: rect.right + 8, y: rect.top };
16283
+ if (conn.integration?.Nome) {
16284
+ onProcessClick?.(conn, pos);
16285
+ } else {
16286
+ onConnectionClick?.(conn, pos);
16287
+ }
16288
+ },
16289
+ [onConnectionClick, onProcessClick]
16290
+ );
16277
16291
  const entries = useMemo(
16278
16292
  () => data.connections.filter((c) => c.type === "entrada"),
16279
16293
  [data.connections]
@@ -16282,6 +16296,28 @@ var SystemTooltip = ({
16282
16296
  () => data.connections.filter((c) => c.type === "saida"),
16283
16297
  [data.connections]
16284
16298
  );
16299
+ const renderConnections = (connections, color) => {
16300
+ const isEmerald = color === "emerald";
16301
+ return connections.map((conn) => /* @__PURE__ */ jsxs(
16302
+ "div",
16303
+ {
16304
+ className: `group flex items-center justify-between p-2 rounded-lg cursor-pointer transition-all
16305
+ ${isEmerald ? "bg-emerald-500/5 border border-emerald-500/10 hover:border-emerald-500/30" : "bg-blue-500/5 border border-blue-500/10 hover:border-blue-500/30"}`,
16306
+ onClick: (e) => handleConnClick(e, conn),
16307
+ children: [
16308
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate", children: conn.name }) }),
16309
+ /* @__PURE__ */ jsx(
16310
+ ArrowRightIcon$1,
16311
+ {
16312
+ size: 14,
16313
+ className: `shrink-0 ${isEmerald ? "text-emerald-500 rotate-180" : "text-blue-500"}`
16314
+ }
16315
+ )
16316
+ ]
16317
+ },
16318
+ conn.id
16319
+ ));
16320
+ };
16285
16321
  return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(
16286
16322
  motion.div,
16287
16323
  {
@@ -16299,7 +16335,7 @@ var SystemTooltip = ({
16299
16335
  /* @__PURE__ */ jsxs(
16300
16336
  "div",
16301
16337
  {
16302
- className: "flex items-center justify-between py-1 border-b border-border/10 bg-muted/30 ",
16338
+ className: "flex items-center justify-between py-1 border-b border-border/10 bg-muted/30",
16303
16339
  onMouseDown: handleMouseDownLocal,
16304
16340
  onTouchStart: handleTouchStartLocal,
16305
16341
  style: {
@@ -16319,7 +16355,7 @@ var SystemTooltip = ({
16319
16355
  onClick: () => onClose(id),
16320
16356
  className: "text-muted-foreground hover:text-destructive transition-colors hover:bg-destructive/10 mr-1",
16321
16357
  style: { cursor: "pointer" },
16322
- children: /* @__PURE__ */ jsx(XIcon$1, { size: 16 })
16358
+ children: /* @__PURE__ */ jsx(XIcon, { size: 16 })
16323
16359
  }
16324
16360
  )
16325
16361
  ]
@@ -16332,7 +16368,7 @@ var SystemTooltip = ({
16332
16368
  /* @__PURE__ */ jsx("h3", { className: "text-xl font-bold text-foreground tracking-tight truncate", children: data.name }),
16333
16369
  data.description && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground tracking-tight truncate", children: data.description })
16334
16370
  ] }) }),
16335
- /* @__PURE__ */ jsxs("div", { className: "px-3 pb-4 space-y-4 max-h-[300px] overflow-y-auto [&::-webkit-scrollbar]:w- [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/40 transition-colors", children: [
16371
+ /* @__PURE__ */ jsxs("div", { className: "px-3 pb-4 space-y-4 max-h-[300px] overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:bg-muted-foreground/20 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-muted-foreground/40 transition-colors", children: [
16336
16372
  /* @__PURE__ */ jsx(SeparatorBase, { className: "w-full" }),
16337
16373
  isLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
16338
16374
  /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
@@ -16355,128 +16391,14 @@ var SystemTooltip = ({
16355
16391
  /* @__PURE__ */ jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-emerald-500" }),
16356
16392
  /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase", children: "Entradas" })
16357
16393
  ] }),
16358
- /* @__PURE__ */ jsx("div", { className: "space-y-1", children: entries.map((conn) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
16359
- /* @__PURE__ */ jsxs(
16360
- "div",
16361
- {
16362
- className: "group flex items-center justify-between p-2 rounded-lg bg-emerald-500/5 border border-emerald-500/10 hover:border-emerald-500/30 transition-all cursor-pointer",
16363
- onClick: () => setExpandedId(
16364
- expandedId === conn.id ? null : conn.id
16365
- ),
16366
- children: [
16367
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate", children: conn.name }) }),
16368
- /* @__PURE__ */ jsx(
16369
- ArrowRight,
16370
- {
16371
- size: 14,
16372
- className: "text-emerald-500 shrink-0 rotate-180"
16373
- }
16374
- )
16375
- ]
16376
- }
16377
- ),
16378
- expandedId === conn.id && conn.integration && /* @__PURE__ */ jsxs("div", { className: "ml-2 p-2 rounded-lg bg-muted/30 border border-border/20 text-xs space-y-1", children: [
16379
- conn.integration.Nome && /* @__PURE__ */ jsxs("div", { children: [
16380
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Nome:" }),
16381
- " ",
16382
- conn.integration.Nome
16383
- ] }),
16384
- (conn.integration.tipo || conn.integration.Tipo) && /* @__PURE__ */ jsxs("div", { children: [
16385
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Tipo:" }),
16386
- " ",
16387
- conn.integration.tipo || conn.integration.Tipo
16388
- ] }),
16389
- conn.integration.Protocolos && /* @__PURE__ */ jsxs("div", { children: [
16390
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Protocolos:" }),
16391
- " ",
16392
- conn.integration.Protocolos
16393
- ] }),
16394
- conn.integration.Ambiente && /* @__PURE__ */ jsxs("div", { children: [
16395
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Ambiente:" }),
16396
- " ",
16397
- conn.integration.Ambiente
16398
- ] }),
16399
- conn.integration.Setor && /* @__PURE__ */ jsxs("div", { children: [
16400
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Setor:" }),
16401
- " ",
16402
- conn.integration.Setor
16403
- ] }),
16404
- conn.integration.Contato && /* @__PURE__ */ jsxs("div", { children: [
16405
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Contato:" }),
16406
- " ",
16407
- conn.integration.Contato
16408
- ] }),
16409
- conn.integration.Sustentacao && /* @__PURE__ */ jsxs("div", { children: [
16410
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Sustenta\xE7\xE3o:" }),
16411
- " ",
16412
- conn.integration.Sustentacao
16413
- ] })
16414
- ] })
16415
- ] }, conn.id)) })
16394
+ /* @__PURE__ */ jsx("div", { className: "space-y-1", children: renderConnections(entries, "emerald") })
16416
16395
  ] }),
16417
16396
  exits.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
16418
16397
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-1", children: [
16419
16398
  /* @__PURE__ */ jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-blue-500" }),
16420
16399
  /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase", children: "Sa\xEDdas" })
16421
16400
  ] }),
16422
- /* @__PURE__ */ jsx("div", { className: "space-y-1", children: exits.map((conn) => /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
16423
- /* @__PURE__ */ jsxs(
16424
- "div",
16425
- {
16426
- className: "group flex items-center justify-between p-2 rounded-lg bg-blue-500/5 border border-blue-500/10 hover:border-blue-500/30 transition-all cursor-pointer",
16427
- onClick: () => setExpandedId(
16428
- expandedId === conn.id ? null : conn.id
16429
- ),
16430
- children: [
16431
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "text-sm font-medium truncate", children: conn.name }) }),
16432
- /* @__PURE__ */ jsx(
16433
- ArrowRight,
16434
- {
16435
- size: 14,
16436
- className: "text-blue-500 shrink-0"
16437
- }
16438
- )
16439
- ]
16440
- }
16441
- ),
16442
- expandedId === conn.id && conn.integration && /* @__PURE__ */ jsxs("div", { className: "ml-2 p-2 rounded-lg bg-muted/30 border border-border/20 text-xs space-y-1", children: [
16443
- conn.integration.Nome && /* @__PURE__ */ jsxs("div", { children: [
16444
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Nome:" }),
16445
- " ",
16446
- conn.integration.Nome
16447
- ] }),
16448
- (conn.integration.tipo || conn.integration.Tipo) && /* @__PURE__ */ jsxs("div", { children: [
16449
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Tipo:" }),
16450
- " ",
16451
- conn.integration.tipo || conn.integration.Tipo
16452
- ] }),
16453
- conn.integration.Protocolos && /* @__PURE__ */ jsxs("div", { children: [
16454
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Protocolos:" }),
16455
- " ",
16456
- conn.integration.Protocolos
16457
- ] }),
16458
- conn.integration.Ambiente && /* @__PURE__ */ jsxs("div", { children: [
16459
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Ambiente:" }),
16460
- " ",
16461
- conn.integration.Ambiente
16462
- ] }),
16463
- conn.integration.Setor && /* @__PURE__ */ jsxs("div", { children: [
16464
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Setor:" }),
16465
- " ",
16466
- conn.integration.Setor
16467
- ] }),
16468
- conn.integration.Contato && /* @__PURE__ */ jsxs("div", { children: [
16469
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Contato:" }),
16470
- " ",
16471
- conn.integration.Contato
16472
- ] }),
16473
- conn.integration.Sustentacao && /* @__PURE__ */ jsxs("div", { children: [
16474
- /* @__PURE__ */ jsx("span", { className: "font-semibold", children: "Sustenta\xE7\xE3o:" }),
16475
- " ",
16476
- conn.integration.Sustentacao
16477
- ] })
16478
- ] })
16479
- ] }, conn.id)) })
16401
+ /* @__PURE__ */ jsx("div", { className: "space-y-1", children: renderConnections(exits, "blue") })
16480
16402
  ] }),
16481
16403
  data.connections.length === 0 && !isLoading && /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center justify-center p-6 text-center", children: /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Nenhuma conex\xE3o encontrada" }) })
16482
16404
  ] })
@@ -16500,6 +16422,78 @@ var useIsTruncated = (ref) => {
16500
16422
  }, [ref]);
16501
16423
  return truncated;
16502
16424
  };
16425
+ var CopyData = ({ value }) => {
16426
+ const [copied, setCopied] = useState(false);
16427
+ const handleCopy = useCallback(() => {
16428
+ navigator.clipboard.writeText(value).then(() => {
16429
+ setCopied(true);
16430
+ setTimeout(() => setCopied(false), 1500);
16431
+ });
16432
+ }, [value]);
16433
+ return /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16434
+ /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsx(
16435
+ "button",
16436
+ {
16437
+ onClick: handleCopy,
16438
+ className: "shrink-0 p-0.5 rounded transition-colors text-muted-foreground/40 hover:text-foreground hover:bg-muted",
16439
+ style: { cursor: "pointer" },
16440
+ children: copied ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx(CopyIcon, {})
16441
+ }
16442
+ ) }),
16443
+ /* @__PURE__ */ jsx(TooltipContentBase, { sideOffset: 6, className: "z-[10001]", children: copied ? "Copiado!" : "Copiar" })
16444
+ ] }) });
16445
+ };
16446
+ var propertyLabels = {
16447
+ Nome: "Nome",
16448
+ tipo: "Tipo",
16449
+ Tipo: "Tipo",
16450
+ Protocolos: "Protocolos",
16451
+ Ambiente: "Ambiente",
16452
+ Setor: "Setor",
16453
+ Contato: "Contato",
16454
+ Sustentacao: "Sustenta\xE7\xE3o",
16455
+ Destino: "Destino",
16456
+ Origem: "Origem"
16457
+ };
16458
+ var IntegrationCard = ({ title, details }) => {
16459
+ const titleRef = useRef(null);
16460
+ const isTitleTruncated = useIsTruncated(titleRef);
16461
+ const blackList = ["id", "elementId", "identity"];
16462
+ const entries = details ? Object.entries(details).filter(
16463
+ ([key, value]) => value !== void 0 && value !== null && value !== "" && !blackList.includes(key)
16464
+ ) : [];
16465
+ return /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border/40 bg-muted/20 overflow-hidden", children: [
16466
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-2 border-b border-border/30", children: [
16467
+ /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16468
+ /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsx(
16469
+ "span",
16470
+ {
16471
+ ref: titleRef,
16472
+ className: "text-sm font-bold text-foreground truncate flex-1 min-w-0 cursor-default",
16473
+ children: title
16474
+ }
16475
+ ) }),
16476
+ isTitleTruncated && /* @__PURE__ */ jsx(TooltipContentBase, { sideOffset: 6, className: "z-[10001]", children: title })
16477
+ ] }) }),
16478
+ entries.length > 0 && /* @__PURE__ */ jsx(
16479
+ CopyData,
16480
+ {
16481
+ value: entries.map(([k, v]) => `${propertyLabels[k] || k}: ${String(v)}`).join("\n")
16482
+ }
16483
+ )
16484
+ ] }),
16485
+ entries.length > 0 && /* @__PURE__ */ jsx("div", { className: "divide-y divide-border/20 px-0.5", children: entries.map(([key, value]) => {
16486
+ const label = propertyLabels[key] || key;
16487
+ return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-1.5", children: [
16488
+ /* @__PURE__ */ jsxs("span", { className: "text-xs font-semibold text-muted-foreground shrink-0 w-[40%] sm:w-[38%]", children: [
16489
+ label,
16490
+ ":"
16491
+ ] }),
16492
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground break-all flex-1 min-w-0", children: String(value) })
16493
+ ] }, key);
16494
+ }) })
16495
+ ] });
16496
+ };
16503
16497
  var NameTooltip = ({
16504
16498
  name,
16505
16499
  description
@@ -16510,7 +16504,7 @@ var NameTooltip = ({
16510
16504
  const isDescTruncated = useIsTruncated(descRef);
16511
16505
  const showTooltip = isNameTruncated || isDescTruncated;
16512
16506
  return /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16513
- /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: "cursor-default", children: [
16507
+ /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsxs("div", { className: "cursor-default min-w-0", children: [
16514
16508
  /* @__PURE__ */ jsx(
16515
16509
  "h3",
16516
16510
  {
@@ -16537,7 +16531,7 @@ var NameTooltip = ({
16537
16531
  var SystemNode = ({ label }) => {
16538
16532
  const truncated = label.length > 9 ? label.substring(0, 9) + "\u2026" : label;
16539
16533
  const needsTooltip = label.length > 9;
16540
- const circle = /* @__PURE__ */ jsx("div", { className: "w-[76px] h-[76px] rounded-full bg-primary flex items-center justify-center shrink-0 z-10 cursor-default", children: /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-primary-foreground text-center px-2 leading-tight select-none", children: truncated }) });
16534
+ const circle = /* @__PURE__ */ jsx("div", { className: "w-[76px] h-[76px] rounded-full bg-primary flex items-center justify-center shrink-0 z-10 cursor-default max-w-xs", children: /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-primary-foreground text-center px-2 leading-tight select-none", children: truncated }) });
16541
16535
  if (!needsTooltip) return circle;
16542
16536
  return /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16543
16537
  /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: circle }),
@@ -16584,14 +16578,13 @@ var Beam = ({ isInput, containerRef, leftRef, rightRef }) => {
16584
16578
  if (leftRef.current) ro.observe(leftRef.current);
16585
16579
  if (rightRef.current) ro.observe(rightRef.current);
16586
16580
  const mo = new MutationObserver(schedule);
16587
- mo.observe(document.documentElement, {
16588
- attributes: true,
16589
- attributeFilter: ["class", "style"]
16590
- });
16591
- mo.observe(document.body, {
16592
- attributes: true,
16593
- attributeFilter: ["class", "style"]
16594
- });
16581
+ if (containerRef.current) {
16582
+ mo.observe(containerRef.current, {
16583
+ attributes: true,
16584
+ attributeFilter: ["class", "style"],
16585
+ subtree: true
16586
+ });
16587
+ }
16595
16588
  return () => {
16596
16589
  cancelAnimationFrame(rafId);
16597
16590
  ro.disconnect();
@@ -16604,7 +16597,7 @@ var Beam = ({ isInput, containerRef, leftRef, rightRef }) => {
16604
16597
  return /* @__PURE__ */ jsxs(
16605
16598
  "svg",
16606
16599
  {
16607
- className: "pointer-events-none absolute left-0 top-0",
16600
+ className: "pointer-events-none absolute left-0 top-0 right-0",
16608
16601
  width: svgSize.w,
16609
16602
  height: svgSize.h,
16610
16603
  fill: "none",
@@ -16669,7 +16662,7 @@ var SystemsDiagram = ({ isInput, currentSystem, externalSystem }) => {
16669
16662
  "div",
16670
16663
  {
16671
16664
  ref: containerRef,
16672
- className: "relative flex items-center justify-between py-1 px-3",
16665
+ className: "relative flex items-center justify-between py-1 px-6 max-w-xs",
16673
16666
  children: [
16674
16667
  /* @__PURE__ */ jsx("div", { ref: leftRef, children: /* @__PURE__ */ jsx(SystemNode, { label: isInput ? externalSystem : currentSystem }) }),
16675
16668
  /* @__PURE__ */ jsx("div", { ref: rightRef, children: /* @__PURE__ */ jsx(SystemNode, { label: isInput ? currentSystem : externalSystem }) }),
@@ -16686,110 +16679,7 @@ var SystemsDiagram = ({ isInput, currentSystem, externalSystem }) => {
16686
16679
  }
16687
16680
  );
16688
16681
  };
16689
- var CopyData = ({ value }) => {
16690
- const [copied, setCopied] = useState(false);
16691
- const handleCopy = useCallback(() => {
16692
- navigator.clipboard.writeText(value).then(() => {
16693
- setCopied(true);
16694
- setTimeout(() => setCopied(false), 1500);
16695
- });
16696
- }, [value]);
16697
- return /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16698
- /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsx(
16699
- "button",
16700
- {
16701
- onClick: handleCopy,
16702
- className: "shrink-0 p-0.5 rounded transition-colors text-muted-foreground/40 hover:text-foreground hover:bg-muted",
16703
- style: { cursor: "pointer" },
16704
- children: copied ? /* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsx(
16705
- "path",
16706
- {
16707
- d: "M3 8l3.5 3.5L13 4.5",
16708
- stroke: "currentColor",
16709
- strokeWidth: "2",
16710
- strokeLinecap: "round",
16711
- strokeLinejoin: "round"
16712
- }
16713
- ) }) : /* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", children: [
16714
- /* @__PURE__ */ jsx(
16715
- "rect",
16716
- {
16717
- x: "5",
16718
- y: "5",
16719
- width: "8",
16720
- height: "9",
16721
- rx: "1.5",
16722
- stroke: "currentColor",
16723
- strokeWidth: "1.5"
16724
- }
16725
- ),
16726
- /* @__PURE__ */ jsx(
16727
- "path",
16728
- {
16729
- d: "M3 11V3.5A1.5 1.5 0 0 1 4.5 2H11",
16730
- stroke: "currentColor",
16731
- strokeWidth: "1.5",
16732
- strokeLinecap: "round"
16733
- }
16734
- )
16735
- ] })
16736
- }
16737
- ) }),
16738
- /* @__PURE__ */ jsx(TooltipContentBase, { sideOffset: 6, className: "z-[10001]", children: copied ? "Copiado!" : "Copiar" })
16739
- ] }) });
16740
- };
16741
- var propertyLabels = {
16742
- Nome: "Nome",
16743
- tipo: "Tipo",
16744
- Tipo: "Tipo",
16745
- Protocolos: "Protocolos",
16746
- Ambiente: "Ambiente",
16747
- Setor: "Setor",
16748
- Contato: "Contato",
16749
- Sustentacao: "Sustenta\xE7\xE3o",
16750
- Destino: "Destino",
16751
- Origem: "Origem"
16752
- };
16753
- var IntegrationCard = ({ title, details }) => {
16754
- const titleRef = useRef(null);
16755
- const isTitleTruncated = useIsTruncated(titleRef);
16756
- const blackList = ["id", "elementId", "identity"];
16757
- const entries = details ? Object.entries(details).filter(
16758
- ([key, value]) => value !== void 0 && value !== null && value !== "" && !blackList.includes(key)
16759
- ) : [];
16760
- return /* @__PURE__ */ jsxs("div", { className: "rounded-sm border border-border/40 bg-muted/20 overflow-hidden", children: [
16761
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-2 border-b border-border/30", children: [
16762
- /* @__PURE__ */ jsx(TooltipProviderBase, { children: /* @__PURE__ */ jsxs(TooltipBase, { children: [
16763
- /* @__PURE__ */ jsx(TooltipTriggerBase, { asChild: true, children: /* @__PURE__ */ jsx(
16764
- "span",
16765
- {
16766
- ref: titleRef,
16767
- className: "text-sm font-bold text-foreground truncate flex-1 cursor-default",
16768
- children: title
16769
- }
16770
- ) }),
16771
- isTitleTruncated && /* @__PURE__ */ jsx(TooltipContentBase, { sideOffset: 6, className: "z-[10001]", children: title })
16772
- ] }) }),
16773
- entries.length > 0 && /* @__PURE__ */ jsx(
16774
- CopyData,
16775
- {
16776
- value: entries.map(([k, v]) => `${propertyLabels[k] || k}: ${String(v)}`).join("\n")
16777
- }
16778
- )
16779
- ] }),
16780
- entries.length > 0 && /* @__PURE__ */ jsx("div", { className: "divide-y divide-border/20", children: entries.map(([key, value]) => {
16781
- const label = propertyLabels[key] || key;
16782
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 px-3 py-1.5", children: [
16783
- /* @__PURE__ */ jsxs("span", { className: "text-xs font-semibold text-muted-foreground shrink-0 w-[40%] sm:w-[38%]", children: [
16784
- label,
16785
- ":"
16786
- ] }),
16787
- /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground break-all flex-1", children: String(value) })
16788
- ] }, key);
16789
- }) })
16790
- ] });
16791
- };
16792
- var TooltipBodyComponent = ({ data, isLoading, connections, isInput, externalSystem }) => /* @__PURE__ */ jsx(ScrollAreaBase, { className: "flex-1", children: /* @__PURE__ */ jsxs("div", { className: "px-3 py-3 space-y-3", children: [
16682
+ var TooltipBodyComponent = ({ data, isLoading, connections, isInput, externalSystem }) => /* @__PURE__ */ jsx(ScrollAreaBase, { className: "flex-1 min-h-0", children: /* @__PURE__ */ jsxs("div", { className: "px-3 py-3 space-y-3 max-w-xs", children: [
16793
16683
  isLoading ? /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
16794
16684
  /* @__PURE__ */ jsx(SkeletonBase, { className: "h-6 w-3/4" }),
16795
16685
  /* @__PURE__ */ jsx(SkeletonBase, { className: "h-3.5 w-1/2" })
@@ -16812,7 +16702,7 @@ var TooltipBodyComponent = ({ data, isLoading, connections, isInput, externalSys
16812
16702
  },
16813
16703
  i
16814
16704
  ))
16815
- ] }) : connections.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground text-center py-4", children: "Nenhuma conex\xE3o encontrada" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
16705
+ ] }) : connections.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground text-center", children: "Nenhuma conex\xE3o encontrada" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
16816
16706
  /* @__PURE__ */ jsx(
16817
16707
  SystemsDiagram,
16818
16708
  {
@@ -16822,8 +16712,8 @@ var TooltipBodyComponent = ({ data, isLoading, connections, isInput, externalSys
16822
16712
  }
16823
16713
  ),
16824
16714
  /* @__PURE__ */ jsx("div", { className: "border-t border-border/20" }),
16825
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-", children: /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase", children: isInput ? "Informa\xE7\xF5es de Entrada" : "Informa\xE7\xF5es de Sa\xEDda" }) }),
16826
- /* @__PURE__ */ jsx("div", { className: "space-y-2", children: connections.map((conn) => /* @__PURE__ */ jsx(
16715
+ /* @__PURE__ */ jsx("div", { className: "flex items-center ", children: /* @__PURE__ */ jsx("span", { className: "text-[10px] font-bold text-muted-foreground uppercase -mb-2", children: isInput ? "Informa\xE7\xF5es de Entrada" : "Informa\xE7\xF5es de Sa\xEDda" }) }),
16716
+ /* @__PURE__ */ jsx("div", { children: connections.map((conn) => /* @__PURE__ */ jsx(
16827
16717
  IntegrationCard,
16828
16718
  {
16829
16719
  title: conn.name,
@@ -16867,7 +16757,12 @@ var IntegrationTooltip = ({
16867
16757
  const [dragging, setDragging] = useState(false);
16868
16758
  const offsetRef = useRef({ x: 0, y: 0 });
16869
16759
  const lastMouse = useRef({ x: 0, y: 0 });
16870
- useEffect(() => setLocalPos(position), [position]);
16760
+ const tooltipRef = useRef(null);
16761
+ const currentPosRef = useRef(position);
16762
+ useEffect(() => {
16763
+ currentPosRef.current = position;
16764
+ setLocalPos(position);
16765
+ }, [position]);
16871
16766
  useEffect(() => {
16872
16767
  let rafId = null;
16873
16768
  const handleMouseMove = (e) => {
@@ -16881,13 +16776,18 @@ var IntegrationTooltip = ({
16881
16776
  top: Math.max(0, Math.min(newTop, window.innerHeight - 200)),
16882
16777
  left: Math.max(0, Math.min(newLeft, window.innerWidth - 320))
16883
16778
  };
16884
- setLocalPos(p);
16779
+ currentPosRef.current = p;
16780
+ if (tooltipRef.current) {
16781
+ tooltipRef.current.style.top = `${p.top}px`;
16782
+ tooltipRef.current.style.left = `${p.left}px`;
16783
+ }
16885
16784
  onPositionChange?.(id, p);
16886
16785
  });
16887
16786
  };
16888
16787
  const handleMouseUp = () => {
16889
16788
  if (dragging) {
16890
16789
  setDragging(false);
16790
+ setLocalPos(currentPosRef.current);
16891
16791
  if (rafId) cancelAnimationFrame(rafId);
16892
16792
  }
16893
16793
  };
@@ -16949,7 +16849,7 @@ var IntegrationTooltip = ({
16949
16849
  const header = /* @__PURE__ */ jsxs(
16950
16850
  "div",
16951
16851
  {
16952
- className: "flex items-center justify-between py-1 border-b border-border/10 bg-muted/30 shrink-0",
16852
+ className: "flex items-center justify-between py-1 border-b border-border/10 bg-muted/30 shrink-0 max-w-lg",
16953
16853
  onMouseDown: handleMouseDownLocal,
16954
16854
  onTouchStart: handleTouchStartLocal,
16955
16855
  style: {
@@ -16992,7 +16892,7 @@ var IntegrationTooltip = ({
16992
16892
  /* @__PURE__ */ jsxs(
16993
16893
  motion.div,
16994
16894
  {
16995
- className: "fixed bottom-0 left-0 right-0 z-[10000] bg-card border-t border-border/50 rounded-t-2xl shadow-2xl flex flex-col",
16895
+ className: "fixed bottom-0 left-0 right-0 z-[10000] bg-card border-t border-border/50 rounded-t-2xl shadow-2xl flex flex-col min-h-0",
16996
16896
  style: { maxHeight: "85dvh" },
16997
16897
  initial: { y: "100%" },
16998
16898
  animate: { y: 0 },
@@ -17002,7 +16902,7 @@ var IntegrationTooltip = ({
17002
16902
  children: [
17003
16903
  /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-2.5 pb-1 shrink-0", children: /* @__PURE__ */ jsx("div", { className: "w-10 h-1 rounded-full bg-border" }) }),
17004
16904
  header,
17005
- /* @__PURE__ */ jsx("div", { className: "overflow-y-auto flex-1 pb-[env(safe-area-inset-bottom)]", children: /* @__PURE__ */ jsx(TooltipBody, { ...bodyProps }) })
16905
+ /* @__PURE__ */ jsx("div", { className: "overflow-y-auto flex-1 min-h-0 pb-[env(safe-area-inset-bottom)] max-w-xs", children: /* @__PURE__ */ jsx(TooltipBody, { ...bodyProps }) })
17006
16906
  ]
17007
16907
  },
17008
16908
  `sheet-${id}`
@@ -17012,6 +16912,7 @@ var IntegrationTooltip = ({
17012
16912
  return /* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsxs(
17013
16913
  motion.div,
17014
16914
  {
16915
+ ref: tooltipRef,
17015
16916
  className: "fixed bg-card/95 backdrop-blur-md border border-border/50 rounded-lg shadow-2xl z-[10000] w-[calc(100vw-32px)] max-w-sm sm:w-80 overflow-hidden flex flex-col",
17016
16917
  variants: tooltipVariants3,
17017
16918
  initial: "hidden",
@@ -17021,7 +16922,7 @@ var IntegrationTooltip = ({
17021
16922
  onClick: (e) => e.stopPropagation(),
17022
16923
  children: [
17023
16924
  header,
17024
- /* @__PURE__ */ jsx("div", { className: "max-h-[60vh] sm:max-h-[520px] overflow-hidden flex flex-col", children: /* @__PURE__ */ jsx(TooltipBody, { ...bodyProps }) })
16925
+ /* @__PURE__ */ jsx("div", { className: "max-h-[60vh] sm:max-h-[520px] overflow-hidden flex flex-col min-h-0", children: /* @__PURE__ */ jsx(TooltipBody, { ...bodyProps }) })
17025
16926
  ]
17026
16927
  },
17027
16928
  id
@@ -19948,11 +19849,9 @@ var ZoomImage = React32.forwardRef(
19948
19849
  const mouseY = useMotionValue(50);
19949
19850
  const zoomLevel = useMotionValue(1);
19950
19851
  const springConfig = { damping: 20, stiffness: 150, mass: 0.5 };
19951
- const smoothMouseX = useSpring(mouseX, springConfig);
19952
- const smoothMouseY = useSpring(mouseY, springConfig);
19953
19852
  const smoothZoomLevel = useSpring(zoomLevel, springConfig);
19954
19853
  const transformOrigin = useTransform(
19955
- [smoothMouseX, smoothMouseY],
19854
+ [mouseX, mouseY],
19956
19855
  ([latestX, latestY]) => `${latestX}% ${latestY}%`
19957
19856
  );
19958
19857
  const touchStartDist = React32.useRef(0);
@@ -20054,7 +19953,7 @@ var ZoomImage = React32.forwardRef(
20054
19953
  {
20055
19954
  src,
20056
19955
  alt,
20057
- className: cn("w-full h-full object-cover", imageClassName),
19956
+ className: cn("w-full h-full object-contain", imageClassName),
20058
19957
  style: {
20059
19958
  borderRadius: `${borderRadius}px`,
20060
19959
  transformOrigin,
@@ -20405,7 +20304,7 @@ function CarouselBase({
20405
20304
  src: item.url,
20406
20305
  alt: item.title,
20407
20306
  className: cn(
20408
- "w-full h-full object-cover rounded-lg select-none pointer-events-none",
20307
+ "w-full h-full object-contain rounded-lg select-none pointer-events-none",
20409
20308
  imageClassName
20410
20309
  ),
20411
20310
  draggable: false
@@ -20416,7 +20315,7 @@ function CarouselBase({
20416
20315
  src: item.url,
20417
20316
  alt: item.title,
20418
20317
  className: cn(
20419
- "w-full h-full object-cover rounded-lg select-none pointer-events-none",
20318
+ "w-full h-full object-contain rounded-lg select-none pointer-events-none",
20420
20319
  imageClassName
20421
20320
  ),
20422
20321
  draggable: false
@@ -20433,8 +20332,7 @@ function CarouselBase({
20433
20332
  onMouseDown: (e) => e.stopPropagation(),
20434
20333
  className: cn(
20435
20334
  "absolute top-4 right-4 z-50 p-2 rounded-full text-white transition-colors border border-white/10",
20436
- downloadSuccess ? "bg-green-500 hover:bg-green-600" : "bg-black/50 hover:bg-black/70",
20437
- className
20335
+ downloadSuccess ? "bg-green-500 hover:bg-green-600" : "bg-black/50 hover:bg-black/70"
20438
20336
  ),
20439
20337
  title: "Download image",
20440
20338
  initial: false,
@@ -20520,8 +20418,7 @@ function CarouselBase({
20520
20418
  className: cn(
20521
20419
  "absolute left-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-all z-50",
20522
20420
  !emblaApi?.canScrollPrev() ? "opacity-40 cursor-not-allowed" : "hover:scale-110 hover:opacity-100 opacity-70",
20523
- "bg-primary text-primary-foreground",
20524
- className
20421
+ "bg-primary text-primary-foreground"
20525
20422
  ),
20526
20423
  style: fernando ? { backgroundColor: fernando } : void 0,
20527
20424
  children: /* @__PURE__ */ jsx(
@@ -20555,8 +20452,7 @@ function CarouselBase({
20555
20452
  className: cn(
20556
20453
  "absolute right-4 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full flex items-center justify-center shadow-lg transition-all z-50",
20557
20454
  !emblaApi?.canScrollNext() ? "opacity-40 cursor-not-allowed" : "hover:scale-110 hover:opacity-100 opacity-70",
20558
- "bg-primary text-primary-foreground",
20559
- className
20455
+ "bg-primary text-primary-foreground"
20560
20456
  ),
20561
20457
  style: fernando ? { backgroundColor: fernando } : void 0,
20562
20458
  children: /* @__PURE__ */ jsx(
@@ -20589,8 +20485,7 @@ function CarouselBase({
20589
20485
  onMouseDown: (e) => e.stopPropagation(),
20590
20486
  className: cn(
20591
20487
  "h-2 rounded-full transition-all duration-300",
20592
- i === index ? cn("w-8 bg-primary") : cn("w-2 hover:opacity-80 bg-primary opacity-40"),
20593
- className
20488
+ i === index ? cn("w-8 bg-primary") : cn("w-2 hover:opacity-80 bg-primary opacity-40")
20594
20489
  ),
20595
20490
  style: fernando ? { backgroundColor: fernando } : void 0
20596
20491
  },
@@ -20834,12 +20729,13 @@ function ControlledCombobox({
20834
20729
  "aria-disabled": disabled || void 0,
20835
20730
  disabled,
20836
20731
  className: cn(
20837
- `flex items-center gap-2 justify-between [&>div]:line-clamp-1 relative h-9 no-active-animation`,
20838
- error && "border-red-500"
20732
+ `flex items-center gap-2 justify-between [&>div]:line-clamp-1 relative h-9 no-active-animation font-light`,
20733
+ error && "border-red-500",
20734
+ placeholder && !hasSelected && "text-muted-foreground"
20839
20735
  ),
20840
20736
  "data-testid": testIds.trigger ?? "combobox-trigger",
20841
20737
  children: [
20842
- renderSelected,
20738
+ /* @__PURE__ */ jsx("div", { className: "truncate min-w-0", children: renderSelected }),
20843
20739
  /* @__PURE__ */ jsx(motion.span, { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-0 items-center ", children: [
20844
20740
  hasSelected && onClear && !disabled && !hideClear && /* @__PURE__ */ jsx(
20845
20741
  ClearButton,
@@ -20911,9 +20807,9 @@ function ControlledCombobox({
20911
20807
  {
20912
20808
  keywords: [item.label],
20913
20809
  value: item.value,
20914
- onSelect: (v) => {
20810
+ onSelect: () => {
20915
20811
  if (disabled) return;
20916
- handleSelection(v);
20812
+ handleSelection(item.value);
20917
20813
  if (!keepOpen) setOpen(false);
20918
20814
  },
20919
20815
  disabled,
@@ -20966,4 +20862,4 @@ function ControlledCombobox({
20966
20862
  );
20967
20863
  }
20968
20864
 
20969
- export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, Beam, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, CopyButton, CopyData, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, IntegrationCard, IntegrationTooltip_default as IntegrationTooltip, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NameTooltip, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RadialMenu, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemNode, SystemTooltip_default as SystemTooltip, SystemsDiagram, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipBody, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, processIntegrationData, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useIsTruncated, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };
20865
+ export { AddButton, Agenda, AgendaDaysToShow, AgendaDaysToShowAgenda, AgendaView, AlertDialogActionBase, AlertDialogBase, AlertDialogCancelBase, AlertDialogContentBase, AlertDialogDescriptionBase, AlertDialogFooterBase, AlertDialogHeaderBase, AlertDialogOverlayBase, AlertDialogPortalBase, AlertDialogTitleBase, AlertDialogTriggerBase, AvatarBase, AvatarCombobox, AvatarFallbackBase, AvatarImageBase, BackButton, Badge, BreadcrumbBase, BreadcrumbEllipsisBase, BreadcrumbItemBase, BreadcrumbLinkBase, BreadcrumbListBase, BreadcrumbPageBase, BreadcrumbSeparatorBase, Brush_default as Brush, ButtonBase, ButtonGroupBase, CENTER_INDEX, CalendarBase, CalendarDndProvider, CalendarDndProviderAgenda, CardBase, CardContentBase, CardDescriptionBase, CardFooterBase, CardHeaderBase, CardTitleBase, CarouselBase, ChangeButton, Chart_default as Chart, ChartControls, ChartHeader, ChartTotalLegend_default as ChartTotalLegend, CheckButton, CheckboxBase, CheckboxTree, CloseAllButton_default as CloseAllButton, CloseButton, CodeBlock, CollapsibleBase, CollapsibleContentBase, CollapsibleTriggerBase, Combobox, CommandBase, CommandDebouncedInputBase, CommandDialogBase, CommandEmptyBase, CommandGroupBase, CommandInputBase, CommandItemBase, CommandListBase, CommandSeparatorBase, CommandShortcutBase, ContextMenuBase, ContextMenuCheckboxItemBase, ContextMenuContentBase, ContextMenuGroupBase, ContextMenuItemBase, ContextMenuLabelBase, ContextMenuPortalBase, ContextMenuRadioGroupBase, ContextMenuRadioItemBase, ContextMenuSeparatorBase, ContextMenuShortcutBase, ContextMenuSubBase, ContextMenuSubContentBase, ContextMenuSubTriggerBase, ContextMenuTriggerBase, ControlledCombobox, CopyButton, DateTimePicker, DayView, DayViewAgenda, DebouncedInput, DefaultEndHour, DefaultEndHourAgenda, DefaultStartHour, DefaultStartHourAgenda, DestructiveDialog, DialogBase, DialogCloseBase, DialogContentBase, DialogDescriptionBase, DialogFooterBase, DialogHeaderBase, DialogOverlayBase, DialogPortalBase, DialogTitleBase, DialogTriggerBase, DownloadButton, DraggableEvent2 as DraggableEvent, DraggableTooltip_default as DraggableTooltip, DrawerBase, DrawerCloseBase, DrawerContentBase, DrawerDescriptionBase, DrawerFooterBase, DrawerHeaderBase, DrawerOverlayBase, DrawerPortalBase, DrawerTitleBase, DrawerTriggerBase, DropDownMenuBase, DropDownMenuCheckboxItemBase, DropDownMenuContentBase, DropDownMenuGroupBase, DropDownMenuItemBase, DropDownMenuLabelBase, DropDownMenuPortalBase, DropDownMenuRadioGroupBase, DropDownMenuRadioItemBase, DropDownMenuSeparatorBase, DropDownMenuShortcutBase, DropDownMenuSubBase, DropDownMenuSubContentBase, DropDownMenuSubTriggerBase, DropDownMenuTriggerBase, DroppableCell, DroppableCellAgenda, EditButton, EndHour, EndHourAgenda, ErrorMessage_default as ErrorMessage, EventAgenda, EventCalendar, EventDetailModalAgenda, EventDialog, EventGap, EventGapAgenda, EventHeight, EventHeightAgenda, EventItem, EventItemAgenda, EventsPopup, FavoriteButton, FileAccept, FileUploader, FilterButton, HideButton, Highlights_default as Highlights, HorizontalChart_default as HorizontalChart, HorizontalLegend_default as HorizontalLegend, HoverCardBase, HoverCardContentBase, HoverCardTriggerBase, ITEM_HEIGHT, InputBase, InputOTPBase, InputOTPGroupBase, InputOTPSeparatorBase, InputOTPSlotBase, IntegrationTooltip_default as IntegrationTooltip, LabelBase_default as LabelBase, Leaderboard, LikeButton, LoadingBase, LockButton, ModalBase, ModalCloseBase, ModalContentBase, ModalDescriptionBase, ModalFooterBase, ModalHeaderBase, ModalOverlayBase, ModalPortalBase, ModalTitleBase, ModalTriggerBase, ModeToggleBase, MonthView, MonthViewAgenda, MoreButton, MultiCombobox, MultiDayOverlay, MultiSelect, MultiSelectBase, MultiSelectContentBase, MultiSelectGroupBase, MultiSelectItemBase, MultiSelectSeparatorBase, MultiSelectTriggerBase, MultiSelectValueBase, NavigationMenuBase, NavigationMenuContentBase, NavigationMenuIndicatorBase, NavigationMenuItemBase, NavigationMenuLinkBase, NavigationMenuListBase, NavigationMenuTriggerBase, NavigationMenuViewportBase, NoData_default as NoData, NotificationButton, NumericInput, PeriodsDropdown_default as PeriodsDropdown, PopoverAnchorBase, PopoverBase, PopoverContentBase, PopoverTriggerBase, ProgressBase, ProgressCirclesBase, ProgressPanelsBase, ProgressSegmentsBase, RadialMenu, RangePicker, RefreshButton, SaveButton, ScrollAreaBase, ScrollBarBase, SearchButton, Select, SelectBase, SelectContentBase, SelectEmpty, SelectGroupBase, SelectItemBase, SelectLabelBase, SelectScrollDownButtonBase, SelectScrollUpButtonBase, SelectSeparatorBase, SelectTriggerBase, SelectValueBase, SeparatorBase, SettingsButton, SheetBase, SheetCloseBase, SheetContentBase, SheetDescriptionBase, SheetFooterBase, SheetHeaderBase, SheetOverlayBase, SheetPortalBase, SheetTitleBase, SheetTriggerBase, ShowOnly_default as ShowOnly, SidebarBase, SidebarContentBase, SidebarFooterBase, SidebarGroupActionBase, SidebarGroupBase, SidebarGroupContentBase, SidebarGroupLabelBase, SidebarHeaderBase, SidebarInputBase, SidebarInsetBase, SidebarMenuActionBase, SidebarMenuBadgeBase, SidebarMenuBase, SidebarMenuButtonBase, SidebarMenuItemBase, SidebarMenuSkeletonBase, SidebarMenuSubBase, SidebarMenuSubButtonBase, SidebarMenuSubItemBase, SidebarProviderBase, SidebarRailBase, SidebarSeparatorBase, SidebarTriggerBase, SkeletonBase, SlideBase, StartHour, StartHourAgenda, StatusIndicator, SwitchBase, SystemTooltip_default as SystemTooltip, TableBase, TableBodyBase, TableCaptionBase, TableCellBase, TableFooterBase, TableHeadBase, TableHeaderBase, TableRowBase, TabsBase, TabsContentBase, TabsListBase, TabsTriggerBase, TextAreaBase, ThemeProviderBase, TimePicker, TimePickerInput, TimeSeries_default as TimeSeries, Toaster, TooltipBase, TooltipContentBase, TooltipProviderBase, TooltipSimple_default as TooltipSimple, TooltipTriggerBase, TooltipWithTotal_default as TooltipWithTotal, UndatedEvents, UniversalTooltipRenderer, UnlockButton, UploadButton, UseSideBarBase, VISIBLE_ITEMS, ViewButton, VisibilityButton, WeekCellsHeight, WeekCellsHeightAgenda, WeekView, WeekViewAgenda, YearViewAgenda, adaptDataForTooltip, addHoursToDate, addHoursToDateAgenda, addMinutesToDateAgenda, badgeVariants, buttonVariantsBase, compactTick, computeChartWidth, computeNiceMax, computeYAxisTickWidth, convert12HourTo24Hour, createValueFormatter, createYTickFormatter, detectDataFields, detectXAxis, display12HourValue, formatDurationAgenda, formatDurationAgendaDays, formatFieldName, formatLinePercentage, generateAdditionalColors, generateColorMap, getAgendaEventsForDay, getAgendaEventsForDayAgenda, getAllEventsForDay, getAllEventsForDayAgenda, getArrowByType, getAutoColorAgenda, getBorderRadiusClasses, getBorderRadiusClassesAgenda, getDateByType, getEventColorClasses, getEventColorClassesAgenda, getEventEndDate, getEventStartDate, getEventsForDay, getEventsForDayAgenda, getItems, getMaxDataValue, getMinDataValue, getSpanningEventsForDay, getSpanningEventsForDayAgenda, getValid12Hour, getValidArrow12Hour, getValidArrowHour, getValidArrowMinuteOrSecond, getValidArrowNumber, getValidHour, getValidMinuteOrSecond, getValidNumber, isMultiDayEvent, isMultiDayEventAgenda, isValid12Hour, isValidHour, isValidMinuteOrSecond, niceCeil, normalizeAttendDate, processIntegrationData, processNeo4jData, renderInsideBarLabel, pillLabelRenderer_default as renderPillLabel, resolveChartMargins, resolveContainerPaddingLeft, set12Hours, setDateByType, setHours, setMinutes, setSeconds, sortEvents, sortEventsAgenda, toast, useBiaxial, useCalendarDnd, useCalendarDndAgenda, useChartClick, useChartDimensions, useChartHighlights, useChartLayout, useChartMinMax, useChartTooltips, useCurrentTimeIndicator, useCurrentTimeIndicatorAgenda, useDrag, useEventVisibility, useEventVisibilityAgenda, useIsMobile, useOpenTooltipForPeriod, useProcessedData, useSeriesOpacity, useTheme, useTimeSeriesRange, visualForItem };