@upbound/monarch-blocks 0.13.2 → 0.13.3

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.js CHANGED
@@ -2171,7 +2171,8 @@ function SectionNavSub(_a) {
2171
2171
 
2172
2172
  // src/relative-time.tsx
2173
2173
  import * as React3 from "react";
2174
- import { jsx as jsx4 } from "react/jsx-runtime";
2174
+ import { Tooltip as Tooltip2, TooltipContent, TooltipTrigger } from "@upbound/monarch-core";
2175
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
2175
2176
  function formatRelativeDefault(date, locale) {
2176
2177
  const now = /* @__PURE__ */ new Date();
2177
2178
  const diffMs = now.getTime() - date.getTime();
@@ -2276,16 +2277,10 @@ function RelativeTime(_a) {
2276
2277
  const id = schedule();
2277
2278
  return () => window.clearInterval(id);
2278
2279
  }, [d, variant, locale]);
2279
- return /* @__PURE__ */ jsx4(
2280
- "time",
2281
- __spreadProps(__spreadValues({
2282
- dateTime: d.toISOString(),
2283
- title: title != null ? title : absoluteTitle(d, locale),
2284
- className: cn("tabular-nums", className)
2285
- }, props), {
2286
- children: label
2287
- })
2288
- );
2280
+ return /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2281
+ /* @__PURE__ */ jsx4(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx4("time", __spreadProps(__spreadValues({ dateTime: d.toISOString(), className: cn("tabular-nums", className) }, props), { children: label })) }),
2282
+ /* @__PURE__ */ jsx4(TooltipContent, { children: title != null ? title : absoluteTitle(d, locale) })
2283
+ ] });
2289
2284
  }
2290
2285
  function formatAmPm(date, options, locale) {
2291
2286
  const parts = new Intl.DateTimeFormat(locale, options).formatToParts(date);
@@ -2412,8 +2407,8 @@ function ElapsedTime(_a) {
2412
2407
 
2413
2408
  // src/chat-interface.tsx
2414
2409
  import { Marker, MarkerContent, MarkerIcon } from "@upbound/monarch-core";
2415
- import { Tooltip as Tooltip2, TooltipContent, TooltipTrigger } from "@upbound/monarch-core";
2416
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
2410
+ import { Tooltip as Tooltip3, TooltipContent as TooltipContent2, TooltipTrigger as TooltipTrigger2 } from "@upbound/monarch-core";
2411
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
2417
2412
  function formatRelativeTime(iso) {
2418
2413
  const diffMs = Date.now() - new Date(iso).getTime();
2419
2414
  const s = Math.round(diffMs / 1e3);
@@ -2444,7 +2439,7 @@ function formatExactTime(iso) {
2444
2439
  function ChatSessionList({ sessions, activeSessionId, onSelectSession, className }) {
2445
2440
  return /* @__PURE__ */ jsx5("div", { className: cn("bg-background flex h-full flex-col", className), children: /* @__PURE__ */ jsx5("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx5(ItemGroup, { className: "gap-1 p-2", children: sessions.map((session) => {
2446
2441
  const isActive = session.id === activeSessionId;
2447
- return /* @__PURE__ */ jsxs3(
2442
+ return /* @__PURE__ */ jsxs4(
2448
2443
  Item,
2449
2444
  {
2450
2445
  role: "button",
@@ -2462,11 +2457,11 @@ function ChatSessionList({ sessions, activeSessionId, onSelectSession, className
2462
2457
  "group/session-item hover:bg-muted/50 data-[active=true]:bg-accent data-[active=true]:text-accent-foreground cursor-pointer flex-nowrap"
2463
2458
  ),
2464
2459
  children: [
2465
- /* @__PURE__ */ jsxs3(ItemContent, { className: "min-w-0", children: [
2460
+ /* @__PURE__ */ jsxs4(ItemContent, { className: "min-w-0", children: [
2466
2461
  /* @__PURE__ */ jsx5(ItemTitle, { className: "truncate", children: session.title }),
2467
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2", children: [
2462
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
2468
2463
  session.surface && /* @__PURE__ */ jsx5(Badge2, { variant: "outline", className: "text-[10px]", children: session.surface }),
2469
- session.messageCount != null && /* @__PURE__ */ jsxs3("span", { className: "text-muted-foreground text-[10px]", children: [
2464
+ session.messageCount != null && /* @__PURE__ */ jsxs4("span", { className: "text-muted-foreground text-[10px]", children: [
2470
2465
  session.messageCount,
2471
2466
  " msgs"
2472
2467
  ] }),
@@ -2480,7 +2475,7 @@ function ChatSessionList({ sessions, activeSessionId, onSelectSession, className
2480
2475
  )
2481
2476
  ] })
2482
2477
  ] }),
2483
- /* @__PURE__ */ jsx5(ItemActions, { className: "opacity-0 group-hover/session-item:opacity-100 has-data-[state=open]:opacity-100 motion-safe:transition-opacity", children: /* @__PURE__ */ jsxs3(DropdownMenu, { children: [
2478
+ /* @__PURE__ */ jsx5(ItemActions, { className: "opacity-0 group-hover/session-item:opacity-100 has-data-[state=open]:opacity-100 motion-safe:transition-opacity", children: /* @__PURE__ */ jsxs4(DropdownMenu, { children: [
2484
2479
  /* @__PURE__ */ jsx5(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(
2485
2480
  Button2,
2486
2481
  {
@@ -2491,7 +2486,7 @@ function ChatSessionList({ sessions, activeSessionId, onSelectSession, className
2491
2486
  children: /* @__PURE__ */ jsx5(Icon2, { name: "ellipsis" })
2492
2487
  }
2493
2488
  ) }),
2494
- /* @__PURE__ */ jsxs3(DropdownMenuContent, { align: "end", children: [
2489
+ /* @__PURE__ */ jsxs4(DropdownMenuContent, { align: "end", children: [
2495
2490
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Pin" }),
2496
2491
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Rename" }),
2497
2492
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Share" }),
@@ -2512,7 +2507,7 @@ function ChatMessageBubble({
2512
2507
  assistantName = "Upbound AI"
2513
2508
  }) {
2514
2509
  const isUser = message.role === "user";
2515
- const messageFooter = /* @__PURE__ */ jsxs3(
2510
+ const messageFooter = /* @__PURE__ */ jsxs4(
2516
2511
  "div",
2517
2512
  {
2518
2513
  className: cn(
@@ -2520,8 +2515,8 @@ function ChatMessageBubble({
2520
2515
  isUser && "justify-end"
2521
2516
  ),
2522
2517
  children: [
2523
- /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2524
- /* @__PURE__ */ jsx5(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(
2518
+ /* @__PURE__ */ jsxs4(Tooltip3, { children: [
2519
+ /* @__PURE__ */ jsx5(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx5(
2525
2520
  Button2,
2526
2521
  {
2527
2522
  variant: "ghost",
@@ -2531,35 +2526,35 @@ function ChatMessageBubble({
2531
2526
  children: /* @__PURE__ */ jsx5(Icon2, { name: "copy" })
2532
2527
  }
2533
2528
  ) }),
2534
- /* @__PURE__ */ jsx5(TooltipContent, { children: "Copy" })
2529
+ /* @__PURE__ */ jsx5(TooltipContent2, { children: "Copy" })
2535
2530
  ] }),
2536
- message.timestamp && /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2537
- /* @__PURE__ */ jsx5(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx5("span", { className: "text-caption text-muted-foreground", children: formatRelativeTime(message.timestamp) }) }),
2538
- /* @__PURE__ */ jsx5(TooltipContent, { children: formatExactTime(message.timestamp) })
2531
+ message.timestamp && /* @__PURE__ */ jsxs4(Tooltip3, { children: [
2532
+ /* @__PURE__ */ jsx5(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx5("span", { className: "text-caption text-muted-foreground", children: formatRelativeTime(message.timestamp) }) }),
2533
+ /* @__PURE__ */ jsx5(TooltipContent2, { children: formatExactTime(message.timestamp) })
2539
2534
  ] })
2540
2535
  ]
2541
2536
  }
2542
2537
  );
2543
2538
  if (isUser) {
2544
- return /* @__PURE__ */ jsx5(Message, { align: "end", className: "group/chat-message", children: /* @__PURE__ */ jsxs3(MessageContent, { className: "max-w-2xl", children: [
2539
+ return /* @__PURE__ */ jsx5(Message, { align: "end", className: "group/chat-message", children: /* @__PURE__ */ jsxs4(MessageContent, { className: "max-w-2xl", children: [
2545
2540
  /* @__PURE__ */ jsx5(Bubble, { variant: "default", align: "end", children: /* @__PURE__ */ jsx5(BubbleContent, { className: "whitespace-pre-wrap", children: message.content }) }),
2546
2541
  messageFooter
2547
2542
  ] }) });
2548
2543
  }
2549
- return /* @__PURE__ */ jsx5(Message, { align: "start", className: "group/chat-message", children: /* @__PURE__ */ jsxs3(MessageContent, { className: "max-w-2xl", children: [
2550
- /* @__PURE__ */ jsxs3("div", { className: "text-body text-foreground mb-2 flex items-center gap-1.5 font-semibold", children: [
2544
+ return /* @__PURE__ */ jsx5(Message, { align: "start", className: "group/chat-message", children: /* @__PURE__ */ jsxs4(MessageContent, { className: "max-w-2xl", children: [
2545
+ /* @__PURE__ */ jsxs4("div", { className: "text-body text-foreground mb-2 flex items-center gap-1.5 font-semibold", children: [
2551
2546
  /* @__PURE__ */ jsx5(Icon2, { name: "sparkles", size: "default", className: "text-primary" }),
2552
2547
  assistantName
2553
2548
  ] }),
2554
- message.toolCalls && message.toolCalls.length > 0 && /* @__PURE__ */ jsx5("div", { className: "mb-3 space-y-1.5", children: message.toolCalls.map((tc, i) => /* @__PURE__ */ jsxs3("div", { className: "bg-muted/50 text-body-sm flex items-start gap-2 rounded border px-3 py-2", children: [
2549
+ message.toolCalls && message.toolCalls.length > 0 && /* @__PURE__ */ jsx5("div", { className: "mb-3 space-y-1.5", children: message.toolCalls.map((tc, i) => /* @__PURE__ */ jsxs4("div", { className: "bg-muted/50 text-body-sm flex items-start gap-2 rounded border px-3 py-2", children: [
2555
2550
  /* @__PURE__ */ jsx5(Icon2, { name: "wrench", size: "sm", className: "text-muted-foreground mt-0.5 shrink-0" }),
2556
- /* @__PURE__ */ jsxs3("div", { children: [
2557
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-2", children: [
2551
+ /* @__PURE__ */ jsxs4("div", { children: [
2552
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-2", children: [
2558
2553
  /* @__PURE__ */ jsx5("span", { className: "font-medium", children: tc.name }),
2559
2554
  tc.isNew && /* @__PURE__ */ jsx5(Badge2, { variant: "secondary", className: "text-[10px]", children: "New API" })
2560
2555
  ] }),
2561
2556
  tc.description && /* @__PURE__ */ jsx5("div", { className: "text-muted-foreground mt-0.5 font-mono text-[10px]", children: tc.description }),
2562
- tc.apiUsed && /* @__PURE__ */ jsxs3("div", { className: "text-muted-foreground mt-0.5", children: [
2557
+ tc.apiUsed && /* @__PURE__ */ jsxs4("div", { className: "text-muted-foreground mt-0.5", children: [
2563
2558
  "via ",
2564
2559
  tc.apiUsed
2565
2560
  ] })
@@ -2589,7 +2584,7 @@ function ChatInput({
2589
2584
  onSend == null ? void 0 : onSend(value.trim());
2590
2585
  setValue("");
2591
2586
  }
2592
- return /* @__PURE__ */ jsx5("div", { className: cn("shrink-0 p-3", className), children: /* @__PURE__ */ jsxs3(InputGroup2, { className: "has-[[data-slot=input-group-control]:focus-visible]:border-input! has-[[data-slot=input-group-control]:focus-visible]:ring-0!", children: [
2587
+ return /* @__PURE__ */ jsx5("div", { className: cn("shrink-0 p-3", className), children: /* @__PURE__ */ jsxs4(InputGroup2, { className: "has-[[data-slot=input-group-control]:focus-visible]:border-input! has-[[data-slot=input-group-control]:focus-visible]:ring-0!", children: [
2593
2588
  /* @__PURE__ */ jsx5(
2594
2589
  InputGroupTextarea,
2595
2590
  {
@@ -2606,24 +2601,24 @@ function ChatInput({
2606
2601
  rows: 1
2607
2602
  }
2608
2603
  ),
2609
- /* @__PURE__ */ jsxs3(InputGroupAddon2, { align: "block-end", children: [
2610
- routines !== void 0 && /* @__PURE__ */ jsxs3(DropdownMenu, { children: [
2611
- /* @__PURE__ */ jsx5(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs3(Button2, { variant: "ghost", size: "sm", children: [
2604
+ /* @__PURE__ */ jsxs4(InputGroupAddon2, { align: "block-end", children: [
2605
+ routines !== void 0 && /* @__PURE__ */ jsxs4(DropdownMenu, { children: [
2606
+ /* @__PURE__ */ jsx5(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs4(Button2, { variant: "ghost", size: "sm", children: [
2612
2607
  /* @__PURE__ */ jsx5(Icon2, { name: "wand-magic-sparkles", "data-icon": "inline-start" }),
2613
2608
  "Workflows",
2614
2609
  /* @__PURE__ */ jsx5(Icon2, { name: "chevron-down", "data-icon": "inline-end" })
2615
2610
  ] }) }),
2616
- /* @__PURE__ */ jsxs3(DropdownMenuContent, { align: "start", children: [
2611
+ /* @__PURE__ */ jsxs4(DropdownMenuContent, { align: "start", children: [
2617
2612
  /* @__PURE__ */ jsx5("div", { className: "max-h-64 overflow-y-auto", children: routines.length === 0 ? /* @__PURE__ */ jsx5(DropdownMenuItem, { disabled: true, children: "No workflows yet" }) : routines.map((w) => /* @__PURE__ */ jsx5(DropdownMenuItem, { onSelect: () => onSelectRoutine == null ? void 0 : onSelectRoutine(w.id), children: w.name }, w.id)) }),
2618
2613
  /* @__PURE__ */ jsx5(DropdownMenuSeparator, {}),
2619
- /* @__PURE__ */ jsxs3(DropdownMenuItem, { onSelect: onManageRoutines, children: [
2614
+ /* @__PURE__ */ jsxs4(DropdownMenuItem, { onSelect: onManageRoutines, children: [
2620
2615
  /* @__PURE__ */ jsx5(Icon2, { name: "gear" }),
2621
2616
  "Manage workflows"
2622
2617
  ] })
2623
2618
  ] })
2624
2619
  ] }),
2625
- /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2626
- /* @__PURE__ */ jsx5(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(
2620
+ /* @__PURE__ */ jsxs4(Tooltip3, { children: [
2621
+ /* @__PURE__ */ jsx5(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx5(
2627
2622
  Button2,
2628
2623
  {
2629
2624
  variant: "ghost",
@@ -2638,15 +2633,15 @@ function ChatInput({
2638
2633
  children: /* @__PURE__ */ jsx5(Icon2, { name: "expand" })
2639
2634
  }
2640
2635
  ) }),
2641
- /* @__PURE__ */ jsx5(TooltipContent, { children: usePageAsContext ? "Using page as context" : "Use page as context" })
2636
+ /* @__PURE__ */ jsx5(TooltipContent2, { children: usePageAsContext ? "Using page as context" : "Use page as context" })
2642
2637
  ] }),
2643
- /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2644
- /* @__PURE__ */ jsx5(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(Button2, { variant: "ghost", size: "icon-sm", onClick: onAttach, "aria-label": "Attach image, file, or video", children: /* @__PURE__ */ jsx5(Icon2, { name: "paperclip" }) }) }),
2645
- /* @__PURE__ */ jsx5(TooltipContent, { children: "Attach image, file, or video" })
2638
+ /* @__PURE__ */ jsxs4(Tooltip3, { children: [
2639
+ /* @__PURE__ */ jsx5(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx5(Button2, { variant: "ghost", size: "icon-sm", onClick: onAttach, "aria-label": "Attach image, file, or video", children: /* @__PURE__ */ jsx5(Icon2, { name: "paperclip" }) }) }),
2640
+ /* @__PURE__ */ jsx5(TooltipContent2, { children: "Attach image, file, or video" })
2646
2641
  ] }),
2647
- /* @__PURE__ */ jsxs3(Tooltip2, { children: [
2648
- /* @__PURE__ */ jsx5(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(Button2, { variant: "outline", size: "icon-sm", onClick: handleSend, "aria-label": "Send message", children: /* @__PURE__ */ jsx5(Icon2, { name: "arrow-up" }) }) }),
2649
- /* @__PURE__ */ jsxs3(TooltipContent, { children: [
2642
+ /* @__PURE__ */ jsxs4(Tooltip3, { children: [
2643
+ /* @__PURE__ */ jsx5(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx5(Button2, { variant: "outline", size: "icon-sm", onClick: handleSend, "aria-label": "Send message", children: /* @__PURE__ */ jsx5(Icon2, { name: "arrow-up" }) }) }),
2644
+ /* @__PURE__ */ jsxs4(TooltipContent2, { children: [
2650
2645
  "Send message",
2651
2646
  /* @__PURE__ */ jsx5(Kbd, { children: "\u23CE" })
2652
2647
  ] })
@@ -2678,16 +2673,16 @@ function ChatThread({
2678
2673
  // `bg-muted/30` lives on the root so messages area and input area share
2679
2674
  // the same backdrop — the input then floats on the muted bg instead of
2680
2675
  // sitting in its own white-bordered footer container.
2681
- /* @__PURE__ */ jsxs3("div", { className: cn("bg-muted/30 flex h-full flex-col", className), children: [
2682
- (title || headerActions) && /* @__PURE__ */ jsxs3("div", { className: "bg-background flex shrink-0 items-center justify-between border-b px-6 py-3", children: [
2683
- /* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
2676
+ /* @__PURE__ */ jsxs4("div", { className: cn("bg-muted/30 flex h-full flex-col", className), children: [
2677
+ (title || headerActions) && /* @__PURE__ */ jsxs4("div", { className: "bg-background flex shrink-0 items-center justify-between border-b px-6 py-3", children: [
2678
+ /* @__PURE__ */ jsxs4("div", { className: "min-w-0", children: [
2684
2679
  title && /* @__PURE__ */ jsx5("div", { className: "text-h4 truncate", children: title }),
2685
2680
  subtitle && /* @__PURE__ */ jsx5("div", { className: "text-body-sm text-muted-foreground truncate", children: subtitle })
2686
2681
  ] }),
2687
- /* @__PURE__ */ jsxs3("div", { className: "flex shrink-0 items-center gap-1", children: [
2688
- title && /* @__PURE__ */ jsxs3(DropdownMenu, { children: [
2682
+ /* @__PURE__ */ jsxs4("div", { className: "flex shrink-0 items-center gap-1", children: [
2683
+ title && /* @__PURE__ */ jsxs4(DropdownMenu, { children: [
2689
2684
  /* @__PURE__ */ jsx5(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsx5(Button2, { variant: "ghost", size: "icon-sm", "aria-label": "Session actions", children: /* @__PURE__ */ jsx5(Icon2, { name: "ellipsis" }) }) }),
2690
- /* @__PURE__ */ jsxs3(DropdownMenuContent, { align: "end", children: [
2685
+ /* @__PURE__ */ jsxs4(DropdownMenuContent, { align: "end", children: [
2691
2686
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Pin" }),
2692
2687
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Rename" }),
2693
2688
  /* @__PURE__ */ jsx5(DropdownMenuItem, { children: "Share" }),
@@ -2699,16 +2694,16 @@ function ChatThread({
2699
2694
  headerActions
2700
2695
  ] })
2701
2696
  ] }),
2702
- /* @__PURE__ */ jsx5(MessageScrollerProvider, { autoScroll: true, defaultScrollPosition: "end", children: /* @__PURE__ */ jsxs3(MessageScroller, { className: "min-h-0 flex-1", children: [
2703
- /* @__PURE__ */ jsx5(MessageScrollerViewport, { children: /* @__PURE__ */ jsxs3(MessageScrollerContent, { className: "gap-4 px-6 py-4", children: [
2697
+ /* @__PURE__ */ jsx5(MessageScrollerProvider, { autoScroll: true, defaultScrollPosition: "end", children: /* @__PURE__ */ jsxs4(MessageScroller, { className: "min-h-0 flex-1", children: [
2698
+ /* @__PURE__ */ jsx5(MessageScrollerViewport, { children: /* @__PURE__ */ jsxs4(MessageScrollerContent, { className: "gap-4 px-6 py-4", children: [
2704
2699
  callout,
2705
2700
  messages.length === 0 && suggestions && suggestions.length > 0 ? (
2706
2701
  // Starting state — shown when no messages yet AND suggestions
2707
2702
  // are provided. Disappears the moment the user sends anything
2708
2703
  // (either via the input or by clicking a suggestion card).
2709
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-4 pt-2", children: [
2710
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-1", children: [
2711
- /* @__PURE__ */ jsxs3("div", { className: "text-h4", children: [
2704
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-4 pt-2", children: [
2705
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-1", children: [
2706
+ /* @__PURE__ */ jsxs4("div", { className: "text-h4", children: [
2712
2707
  "\u{1F44B} Hi, I'm ",
2713
2708
  assistantName != null ? assistantName : "your AI assistant"
2714
2709
  ] }),
@@ -2726,11 +2721,11 @@ function ChatThread({
2726
2721
  )) })
2727
2722
  ] })
2728
2723
  ) : null,
2729
- messages.map((msg) => /* @__PURE__ */ jsxs3(React4.Fragment, { children: [
2724
+ messages.map((msg) => /* @__PURE__ */ jsxs4(React4.Fragment, { children: [
2730
2725
  /* @__PURE__ */ jsx5(MessageScrollerItem, { messageId: msg.id, scrollAnchor: msg.role === "user", children: /* @__PURE__ */ jsx5(ChatMessageBubble, { message: msg, userName, assistantName }) }),
2731
- msg.role === "user" && msg.pageContext && /* @__PURE__ */ jsx5(MessageScrollerItem, { messageId: `${msg.id}-ctx`, children: /* @__PURE__ */ jsxs3(Marker, { children: [
2726
+ msg.role === "user" && msg.pageContext && /* @__PURE__ */ jsx5(MessageScrollerItem, { messageId: `${msg.id}-ctx`, children: /* @__PURE__ */ jsxs4(Marker, { children: [
2732
2727
  /* @__PURE__ */ jsx5(MarkerIcon, { children: /* @__PURE__ */ jsx5(Icon2, { name: "expand" }) }),
2733
- /* @__PURE__ */ jsxs3(MarkerContent, { children: [
2728
+ /* @__PURE__ */ jsxs4(MarkerContent, { children: [
2734
2729
  "Sent with page context: ",
2735
2730
  msg.pageContext
2736
2731
  ] })
@@ -2757,8 +2752,8 @@ function ChatThread({
2757
2752
  );
2758
2753
  }
2759
2754
  function ChatNavRail({ onNewSession, onOpenRoutines, onOpenConnectors, onOpenCustomize }) {
2760
- return /* @__PURE__ */ jsx5(SectionNav, { className: "border-b p-3", children: /* @__PURE__ */ jsxs3(SectionNavList, { children: [
2761
- /* @__PURE__ */ jsxs3(
2755
+ return /* @__PURE__ */ jsx5(SectionNav, { className: "border-b p-3", children: /* @__PURE__ */ jsxs4(SectionNavList, { children: [
2756
+ /* @__PURE__ */ jsxs4(
2762
2757
  SectionNavItem,
2763
2758
  {
2764
2759
  href: "#",
@@ -2772,7 +2767,7 @@ function ChatNavRail({ onNewSession, onOpenRoutines, onOpenConnectors, onOpenCus
2772
2767
  ]
2773
2768
  }
2774
2769
  ),
2775
- /* @__PURE__ */ jsxs3(
2770
+ /* @__PURE__ */ jsxs4(
2776
2771
  SectionNavItem,
2777
2772
  {
2778
2773
  href: "#",
@@ -2786,7 +2781,7 @@ function ChatNavRail({ onNewSession, onOpenRoutines, onOpenConnectors, onOpenCus
2786
2781
  ]
2787
2782
  }
2788
2783
  ),
2789
- /* @__PURE__ */ jsxs3(
2784
+ /* @__PURE__ */ jsxs4(
2790
2785
  SectionNavItem,
2791
2786
  {
2792
2787
  href: "#",
@@ -2800,7 +2795,7 @@ function ChatNavRail({ onNewSession, onOpenRoutines, onOpenConnectors, onOpenCus
2800
2795
  ]
2801
2796
  }
2802
2797
  ),
2803
- /* @__PURE__ */ jsxs3(
2798
+ /* @__PURE__ */ jsxs4(
2804
2799
  SectionNavItem,
2805
2800
  {
2806
2801
  href: "#",
@@ -2836,8 +2831,8 @@ function ChatInterface(_a) {
2836
2831
  "onOpenCustomize",
2837
2832
  "className"
2838
2833
  ]);
2839
- return /* @__PURE__ */ jsxs3("div", { className: cn("flex h-full", className), children: [
2840
- /* @__PURE__ */ jsxs3("div", { className: "bg-background flex w-72 shrink-0 flex-col border-r", children: [
2834
+ return /* @__PURE__ */ jsxs4("div", { className: cn("flex h-full", className), children: [
2835
+ /* @__PURE__ */ jsxs4("div", { className: "bg-background flex w-72 shrink-0 flex-col border-r", children: [
2841
2836
  /* @__PURE__ */ jsx5(
2842
2837
  ChatNavRail,
2843
2838
  {
@@ -2875,9 +2870,9 @@ import {
2875
2870
  InputGroupButton,
2876
2871
  InputGroupInput as InputGroupInput2,
2877
2872
  InputGroupText as InputGroupText2,
2878
- Tooltip as Tooltip3,
2879
- TooltipContent as TooltipContent2,
2880
- TooltipTrigger as TooltipTrigger2
2873
+ Tooltip as Tooltip4,
2874
+ TooltipContent as TooltipContent3,
2875
+ TooltipTrigger as TooltipTrigger3
2881
2876
  } from "@upbound/monarch-core";
2882
2877
 
2883
2878
  // src/lib/find-text.ts
@@ -2957,7 +2952,7 @@ async function highlightCode(code, lang) {
2957
2952
  }
2958
2953
 
2959
2954
  // src/code-block.tsx
2960
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
2955
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
2961
2956
  function CodeBlock(_a) {
2962
2957
  var _b = _a, {
2963
2958
  className,
@@ -3123,8 +3118,8 @@ function CodeBlockBody(_a) {
3123
3118
  window.addEventListener("keydown", onKeyDown, { capture: true });
3124
3119
  return () => window.removeEventListener("keydown", onKeyDown, { capture: true });
3125
3120
  }, [searchOpen, closeSearch]);
3126
- const searchButton = searchable && /* @__PURE__ */ jsxs4(Tooltip3, { children: [
3127
- /* @__PURE__ */ jsx6(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx6(
3121
+ const searchButton = searchable && /* @__PURE__ */ jsxs5(Tooltip4, { children: [
3122
+ /* @__PURE__ */ jsx6(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx6(
3128
3123
  "button",
3129
3124
  {
3130
3125
  ref: searchButtonRef,
@@ -3137,12 +3132,12 @@ function CodeBlockBody(_a) {
3137
3132
  children: /* @__PURE__ */ jsx6(Icon3, { name: "magnifying-glass", size: "sm" })
3138
3133
  }
3139
3134
  ) }),
3140
- /* @__PURE__ */ jsx6(TooltipContent2, { children: "Search" })
3135
+ /* @__PURE__ */ jsx6(TooltipContent3, { children: "Search" })
3141
3136
  ] });
3142
- return /* @__PURE__ */ jsxs4(CardContent, __spreadProps(__spreadValues({ "data-line-numbers": lineNumbers || void 0, className: cn("relative p-0!", className) }, props), { children: [
3143
- searchable && searchOpen && /* @__PURE__ */ jsxs4("div", { "data-slot": "code-block-search", className: "p-2", children: [
3137
+ return /* @__PURE__ */ jsxs5(CardContent, __spreadProps(__spreadValues({ "data-line-numbers": lineNumbers || void 0, className: cn("relative p-0!", className) }, props), { children: [
3138
+ searchable && searchOpen && /* @__PURE__ */ jsxs5("div", { "data-slot": "code-block-search", className: "p-2", children: [
3144
3139
  /* @__PURE__ */ jsx6("style", { children: search.highlightCss }),
3145
- /* @__PURE__ */ jsxs4(InputGroup3, { children: [
3140
+ /* @__PURE__ */ jsxs5(InputGroup3, { children: [
3146
3141
  /* @__PURE__ */ jsx6(InputGroupAddon3, { children: /* @__PURE__ */ jsx6(Icon3, { name: "magnifying-glass" }) }),
3147
3142
  /* @__PURE__ */ jsx6(
3148
3143
  InputGroupInput2,
@@ -3165,7 +3160,7 @@ function CodeBlockBody(_a) {
3165
3160
  }
3166
3161
  })
3167
3162
  ),
3168
- /* @__PURE__ */ jsxs4(InputGroupAddon3, { align: "inline-end", children: [
3163
+ /* @__PURE__ */ jsxs5(InputGroupAddon3, { align: "inline-end", children: [
3169
3164
  /* @__PURE__ */ jsx6(InputGroupText2, { "aria-live": "polite", className: "text-caption tabular-nums", children: query ? search.count ? `${search.current + 1} of ${search.count}` : "No results" : null }),
3170
3165
  /* @__PURE__ */ jsx6(
3171
3166
  InputGroupButton,
@@ -3191,8 +3186,8 @@ function CodeBlockBody(_a) {
3191
3186
  ] })
3192
3187
  ] })
3193
3188
  ] }),
3194
- /* @__PURE__ */ jsxs4("div", { className: "relative", children: [
3195
- (searchButton || copyButton || downloadButton) && /* @__PURE__ */ jsxs4("div", { className: "absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-focus-within/code-block:opacity-100 group-hover/code-block:opacity-100", children: [
3189
+ /* @__PURE__ */ jsxs5("div", { className: "relative", children: [
3190
+ (searchButton || copyButton || downloadButton) && /* @__PURE__ */ jsxs5("div", { className: "absolute top-2 right-2 z-10 flex items-center gap-1 opacity-0 transition-opacity group-focus-within/code-block:opacity-100 group-hover/code-block:opacity-100", children: [
3196
3191
  searchButton,
3197
3192
  copyButton,
3198
3193
  downloadButton
@@ -3212,7 +3207,7 @@ function CodeBlockBody(_a) {
3212
3207
  html && SHIKI_DARK_THEME,
3213
3208
  lineNumbers && LINE_NUMBER_GUTTER
3214
3209
  ),
3215
- children: html ? /* @__PURE__ */ jsx6("div", { dangerouslySetInnerHTML: { __html: html } }) : /* @__PURE__ */ jsx6("pre", { children: /* @__PURE__ */ jsx6("code", { className: lineNumbers ? void 0 : "whitespace-pre", children: lineNumbers ? content.split("\n").map((line, i) => /* @__PURE__ */ jsxs4("span", { className: "line", children: [
3210
+ children: html ? /* @__PURE__ */ jsx6("div", { dangerouslySetInnerHTML: { __html: html } }) : /* @__PURE__ */ jsx6("pre", { children: /* @__PURE__ */ jsx6("code", { className: lineNumbers ? void 0 : "whitespace-pre", children: lineNumbers ? content.split("\n").map((line, i) => /* @__PURE__ */ jsxs5("span", { className: "line", children: [
3216
3211
  line,
3217
3212
  "\n"
3218
3213
  ] }, i)) : content }) })
@@ -3249,8 +3244,8 @@ function CodeBlockCopyButton(_a) {
3249
3244
  setCopied(true);
3250
3245
  setTimeout(() => setCopied(false), 2e3);
3251
3246
  };
3252
- return /* @__PURE__ */ jsxs4(Tooltip3, { children: [
3253
- /* @__PURE__ */ jsx6(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx6(
3247
+ return /* @__PURE__ */ jsxs5(Tooltip4, { children: [
3248
+ /* @__PURE__ */ jsx6(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx6(
3254
3249
  "button",
3255
3250
  __spreadProps(__spreadValues({
3256
3251
  "data-slot": "code-block-copy-button",
@@ -3261,7 +3256,7 @@ function CodeBlockCopyButton(_a) {
3261
3256
  children: copied ? /* @__PURE__ */ jsx6(Icon3, { name: "check", size: "sm", className: "text-green-500" }) : /* @__PURE__ */ jsx6(Icon3, { name: "copy", size: "sm" })
3262
3257
  })
3263
3258
  ) }),
3264
- /* @__PURE__ */ jsx6(TooltipContent2, { children: copied ? "Copied" : "Copy" })
3259
+ /* @__PURE__ */ jsx6(TooltipContent3, { children: copied ? "Copied" : "Copy" })
3265
3260
  ] });
3266
3261
  }
3267
3262
  function CodeBlockDownloadButton(_a) {
@@ -3290,8 +3285,8 @@ function CodeBlockDownloadButton(_a) {
3290
3285
  setDownloaded(true);
3291
3286
  setTimeout(() => setDownloaded(false), 2e3);
3292
3287
  };
3293
- return /* @__PURE__ */ jsxs4(Tooltip3, { children: [
3294
- /* @__PURE__ */ jsx6(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx6(
3288
+ return /* @__PURE__ */ jsxs5(Tooltip4, { children: [
3289
+ /* @__PURE__ */ jsx6(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx6(
3295
3290
  "button",
3296
3291
  __spreadProps(__spreadValues({
3297
3292
  "data-slot": "code-block-download-button",
@@ -3302,7 +3297,7 @@ function CodeBlockDownloadButton(_a) {
3302
3297
  children: downloaded ? /* @__PURE__ */ jsx6(Icon3, { name: "check", size: "sm", className: "text-green-500" }) : /* @__PURE__ */ jsx6(Icon3, { name: "download", size: "sm" })
3303
3298
  })
3304
3299
  ) }),
3305
- /* @__PURE__ */ jsx6(TooltipContent2, { children: downloaded ? "Downloaded" : "Download" })
3300
+ /* @__PURE__ */ jsx6(TooltipContent3, { children: downloaded ? "Downloaded" : "Download" })
3306
3301
  ] });
3307
3302
  }
3308
3303
 
@@ -3315,7 +3310,7 @@ import {
3315
3310
  ContextMenuSubContent,
3316
3311
  ContextMenuSubTrigger
3317
3312
  } from "@upbound/monarch-core";
3318
- import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
3313
+ import { Fragment as Fragment4, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
3319
3314
  function CellContextualFilter({
3320
3315
  filter,
3321
3316
  globalSearch,
@@ -3337,7 +3332,7 @@ function CellContextualFilter({
3337
3332
  var _a, _b;
3338
3333
  const actionDisabled = typeof action.disabled === "function" ? action.disabled(cell) : (_a = action.disabled) != null ? _a : false;
3339
3334
  if ((_b = action.items) == null ? void 0 : _b.length) {
3340
- return /* @__PURE__ */ jsxs5(ContextMenuSub, { children: [
3335
+ return /* @__PURE__ */ jsxs6(ContextMenuSub, { children: [
3341
3336
  /* @__PURE__ */ jsx7(
3342
3337
  ContextMenuSubTrigger,
3343
3338
  {
@@ -3374,7 +3369,7 @@ function CellContextualFilter({
3374
3369
  action.id
3375
3370
  );
3376
3371
  }
3377
- return /* @__PURE__ */ jsxs5(ContextMenuContent, { children: [
3372
+ return /* @__PURE__ */ jsxs6(ContextMenuContent, { children: [
3378
3373
  /* @__PURE__ */ jsx7(
3379
3374
  ContextMenuItem,
3380
3375
  {
@@ -3384,7 +3379,7 @@ function CellContextualFilter({
3384
3379
  children: "Filter by this value"
3385
3380
  }
3386
3381
  ),
3387
- contextualMenuActions.length > 0 && /* @__PURE__ */ jsxs5(Fragment4, { children: [
3382
+ contextualMenuActions.length > 0 && /* @__PURE__ */ jsxs6(Fragment4, { children: [
3388
3383
  /* @__PURE__ */ jsx7(ContextMenuSeparator, {}),
3389
3384
  contextualMenuActions.map(renderAction)
3390
3385
  ] })
@@ -3404,6 +3399,12 @@ import {
3404
3399
  } from "@upbound/monarch-core";
3405
3400
  import { Icon as Icon4 } from "@upbound/monarch-core";
3406
3401
 
3402
+ // src/lib/data-table/filter-types.ts
3403
+ var isDateRangeColumnFilter = (definition) => definition.type === "dateRange";
3404
+ var isRadioColumnFilter = (definition) => definition.type === "radio";
3405
+ var isCheckboxColumnFilter = (definition) => definition.type === "checkbox";
3406
+ var isMultiTextColumnFilter = (definition) => definition.type === "multiText";
3407
+
3407
3408
  // src/lib/data-table/utils.ts
3408
3409
  var TO_EACH_SIDE = 2;
3409
3410
  function normalizeColumnOrdering(columnOrdering, allColumnIds) {
@@ -3460,17 +3461,38 @@ function getPaginationInfo(pageIndex, totalRows, pageSize) {
3460
3461
  itemEnd: Math.min(currentPage * pageSize, totalRows)
3461
3462
  };
3462
3463
  }
3464
+ var filterColumnByCheckedValues = Object.assign(
3465
+ (row, columnId, checkedValues) => {
3466
+ if (!(checkedValues == null ? void 0 : checkedValues.length)) return true;
3467
+ const value = row.getValue(columnId);
3468
+ const values = Array.isArray(value) ? value : [value];
3469
+ return values.some((item) => item != null && checkedValues.includes(String(item)));
3470
+ },
3471
+ { autoRemove: (checkedValues) => !Array.isArray(checkedValues) || checkedValues.length === 0 }
3472
+ );
3473
+ function withDefaultFilterFns(columns) {
3474
+ return columns.map((column) => {
3475
+ var _a;
3476
+ let next = column;
3477
+ if ("columns" in column && column.columns) {
3478
+ next = __spreadProps(__spreadValues({}, next), { columns: withDefaultFilterFns(column.columns) });
3479
+ }
3480
+ const filter = (_a = column.meta) == null ? void 0 : _a.filter;
3481
+ if (filter && isCheckboxColumnFilter(filter) && column.filterFn === void 0) {
3482
+ next = __spreadProps(__spreadValues({}, next), { filterFn: filterColumnByCheckedValues });
3483
+ }
3484
+ return next;
3485
+ });
3486
+ }
3463
3487
  function isFilterOnlyColumn(column) {
3464
3488
  var _a;
3465
3489
  return ((_a = column.columnDef.meta) == null ? void 0 : _a.filterOnly) === true;
3466
3490
  }
3467
3491
  function hasFilterableColumns(columns) {
3468
- return columns.some(
3469
- (column) => {
3470
- var _a;
3471
- return !isFilterOnlyColumn(column) && column.getCanFilter() && !!((_a = column.columnDef.meta) == null ? void 0 : _a.filter);
3472
- }
3473
- );
3492
+ return columns.some((column) => {
3493
+ var _a;
3494
+ return column.getCanFilter() && !!((_a = column.columnDef.meta) == null ? void 0 : _a.filter);
3495
+ });
3474
3496
  }
3475
3497
  function getTableState({
3476
3498
  error,
@@ -3483,7 +3505,7 @@ function getTableState({
3483
3505
  }
3484
3506
 
3485
3507
  // src/data-table/column-options.tsx
3486
- import { Fragment as Fragment5, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
3508
+ import { Fragment as Fragment5, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
3487
3509
  function getColumnPinning(column) {
3488
3510
  var _a;
3489
3511
  if (!column) return false;
@@ -3524,7 +3546,7 @@ function ColumnOptionsItem({
3524
3546
  isDraggedOver && "before:bg-primary before:absolute before:inset-x-0 before:top-0 before:h-0.5"
3525
3547
  )
3526
3548
  };
3527
- const itemContent = /* @__PURE__ */ jsxs6(Fragment5, { children: [
3549
+ const itemContent = /* @__PURE__ */ jsxs7(Fragment5, { children: [
3528
3550
  isDraggable && /* @__PURE__ */ jsx8(Icon4, { name: "grip-vertical", size: "sm", className: "text-muted-foreground cursor-move" }),
3529
3551
  /* @__PURE__ */ jsx8("span", { className: "flex min-w-0 flex-1 items-center gap-2", children: headerContent })
3530
3552
  ] });
@@ -3648,13 +3670,13 @@ function ColumnOptions({
3648
3670
  const startPinned = orderedColumns(startPinnedColumns);
3649
3671
  const unpinned = orderedColumns(unpinnedColumns);
3650
3672
  const endPinned = orderedColumns(endPinnedColumns);
3651
- return /* @__PURE__ */ jsxs6(DropdownMenu2, { children: [
3652
- /* @__PURE__ */ jsx8(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs6(Button3, { variant: "outline", className: "shrink-0", children: [
3673
+ return /* @__PURE__ */ jsxs7(DropdownMenu2, { children: [
3674
+ /* @__PURE__ */ jsx8(DropdownMenuTrigger2, { asChild: true, children: /* @__PURE__ */ jsxs7(Button3, { variant: "outline", className: "shrink-0", children: [
3653
3675
  /* @__PURE__ */ jsx8(Icon4, { name: "table-columns", "data-icon": "inline-start" }),
3654
3676
  "Columns",
3655
3677
  /* @__PURE__ */ jsx8(Icon4, { name: "chevron-down", "data-icon": "inline-end" })
3656
3678
  ] }) }),
3657
- /* @__PURE__ */ jsx8(DropdownMenuContent2, { className: "w-58 p-0", children: /* @__PURE__ */ jsxs6("div", { className: "p-1", children: [
3679
+ /* @__PURE__ */ jsx8(DropdownMenuContent2, { className: "w-58 p-0", children: /* @__PURE__ */ jsxs7("div", { className: "p-1", children: [
3658
3680
  [...startPinned, ...unpinned].map((column) => /* @__PURE__ */ jsx8(
3659
3681
  ColumnOptionsItem,
3660
3682
  {
@@ -3706,14 +3728,14 @@ import { Button as Button4 } from "@upbound/monarch-core";
3706
3728
  import { DropdownMenu as DropdownMenu3, DropdownMenuContent as DropdownMenuContent3, DropdownMenuItem as DropdownMenuItem3, DropdownMenuTrigger as DropdownMenuTrigger3 } from "@upbound/monarch-core";
3707
3729
  import { Icon as Icon5 } from "@upbound/monarch-core";
3708
3730
  import { Link } from "@upbound/monarch-core";
3709
- import { Tooltip as Tooltip4, TooltipContent as TooltipContent3, TooltipTrigger as TooltipTrigger3 } from "@upbound/monarch-core";
3710
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
3731
+ import { Tooltip as Tooltip5, TooltipContent as TooltipContent4, TooltipTrigger as TooltipTrigger4 } from "@upbound/monarch-core";
3732
+ import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
3711
3733
  function RowActions({
3712
3734
  align = "end",
3713
3735
  children,
3714
3736
  contentClassName
3715
3737
  }) {
3716
- return /* @__PURE__ */ jsxs7(DropdownMenu3, { children: [
3738
+ return /* @__PURE__ */ jsxs8(DropdownMenu3, { children: [
3717
3739
  /* @__PURE__ */ jsx9(DropdownMenuTrigger3, { asChild: true, children: /* @__PURE__ */ jsx9(
3718
3740
  Button4,
3719
3741
  {
@@ -3745,9 +3767,9 @@ function RowActionItem({
3745
3767
  }) {
3746
3768
  const item = /* @__PURE__ */ jsx9(DropdownMenuItem3, { variant, disabled, className, onClick, children });
3747
3769
  if (!tooltip) return item;
3748
- return /* @__PURE__ */ jsxs7(Tooltip4, { children: [
3749
- /* @__PURE__ */ jsx9(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx9("span", { className: "block", children: item }) }),
3750
- /* @__PURE__ */ jsx9(TooltipContent3, { children: tooltip })
3770
+ return /* @__PURE__ */ jsxs8(Tooltip5, { children: [
3771
+ /* @__PURE__ */ jsx9(TooltipTrigger4, { asChild: true, children: /* @__PURE__ */ jsx9("span", { className: "block", children: item }) }),
3772
+ /* @__PURE__ */ jsx9(TooltipContent4, { children: tooltip })
3751
3773
  ] });
3752
3774
  }
3753
3775
  function getActionsColumnDefinition({
@@ -3805,8 +3827,8 @@ function DataTableValueCell({ content, title, className, href, onClick }) {
3805
3827
  return /* @__PURE__ */ jsx9("p", { className: baseClassName, children: /* @__PURE__ */ jsx9(Link, { href, title, onClick, children: content }) });
3806
3828
  }
3807
3829
  if (title) {
3808
- return /* @__PURE__ */ jsxs7(Tooltip4, { children: [
3809
- /* @__PURE__ */ jsx9(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx9(
3830
+ return /* @__PURE__ */ jsxs8(Tooltip5, { children: [
3831
+ /* @__PURE__ */ jsx9(TooltipTrigger4, { asChild: true, children: /* @__PURE__ */ jsx9(
3810
3832
  "button",
3811
3833
  {
3812
3834
  type: "button",
@@ -3818,7 +3840,7 @@ function DataTableValueCell({ content, title, className, href, onClick }) {
3818
3840
  children: content
3819
3841
  }
3820
3842
  ) }),
3821
- /* @__PURE__ */ jsx9(TooltipContent3, { side: "bottom", children: title })
3843
+ /* @__PURE__ */ jsx9(TooltipContent4, { side: "bottom", children: title })
3822
3844
  ] });
3823
3845
  }
3824
3846
  return /* @__PURE__ */ jsx9("p", { className: baseClassName, children: content ? /* @__PURE__ */ jsx9("span", { children: content }) : /* @__PURE__ */ jsx9("span", { children: "\u2014" }) });
@@ -4494,7 +4516,7 @@ function useFilterVisibility(filterVisibility) {
4494
4516
  import * as React8 from "react";
4495
4517
  import { Icon as Icon6 } from "@upbound/monarch-core";
4496
4518
  import { InputGroup as InputGroup4, InputGroupAddon as InputGroupAddon4, InputGroupButton as InputGroupButton2, InputGroupInput as InputGroupInput3 } from "@upbound/monarch-core";
4497
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
4519
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
4498
4520
  function DataTableSearch({
4499
4521
  value,
4500
4522
  onValueChange,
@@ -4513,7 +4535,7 @@ function DataTableSearch({
4513
4535
  setDraft(next);
4514
4536
  startTransition(() => onValueChange(next));
4515
4537
  };
4516
- return /* @__PURE__ */ jsxs8(InputGroup4, { className: cn("w-70", className), children: [
4538
+ return /* @__PURE__ */ jsxs9(InputGroup4, { className: cn("w-70", className), children: [
4517
4539
  /* @__PURE__ */ jsx10(InputGroupAddon4, { align: "inline-start", children: /* @__PURE__ */ jsx10(Icon6, { name: "magnifying-glass" }) }),
4518
4540
  /* @__PURE__ */ jsx10(
4519
4541
  InputGroupInput3,
@@ -4550,7 +4572,7 @@ import { Button as Button5 } from "@upbound/monarch-core";
4550
4572
  import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "@upbound/monarch-core";
4551
4573
  import { Icon as Icon7 } from "@upbound/monarch-core";
4552
4574
  import { IconTile } from "@upbound/monarch-core";
4553
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
4575
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
4554
4576
  var defaultErrorConfig = {
4555
4577
  icon: "circle-exclamation",
4556
4578
  header: "Something went wrong",
@@ -4581,17 +4603,17 @@ function DataTableEmptyView({
4581
4603
  const isFilteredEmpty = tableState === "empty" && filterCount > 0;
4582
4604
  const config = tableState === "error" ? mergeConfig(defaultErrorConfig, emptyView == null ? void 0 : emptyView.error) : tableState === "empty" ? isFilteredEmpty ? mergeConfig(defaultNoFilterFoundConfig, emptyView == null ? void 0 : emptyView.filter) : mergeConfig(defaultEmptyConfig, emptyView == null ? void 0 : emptyView.empty) : null;
4583
4605
  const wrapperClassName = tableState === "error" ? (_c = (_a = emptyView == null ? void 0 : emptyView.error) == null ? void 0 : _a.wrapperClassName) != null ? _c : (_b = emptyView == null ? void 0 : emptyView.empty) == null ? void 0 : _b.wrapperClassName : config == null ? void 0 : config.wrapperClassName;
4584
- const defaultAction = isFilteredEmpty && !(config == null ? void 0 : config.action) ? /* @__PURE__ */ jsxs9(Button5, { variant: "outline", size: "sm", onClick: resetFilters, children: [
4606
+ const defaultAction = isFilteredEmpty && !(config == null ? void 0 : config.action) ? /* @__PURE__ */ jsxs10(Button5, { variant: "outline", size: "sm", onClick: resetFilters, children: [
4585
4607
  /* @__PURE__ */ jsx11(Icon7, { name: "xmark" }),
4586
4608
  "Clear filters"
4587
4609
  ] }) : null;
4588
- return /* @__PURE__ */ jsx11("div", { className: cn("flex size-full flex-col justify-center", wrapperClassName), children: config && /* @__PURE__ */ jsxs9(Empty, { className: cn("border border-dashed", config.className), children: [
4589
- /* @__PURE__ */ jsxs9(EmptyHeader, { children: [
4610
+ return /* @__PURE__ */ jsx11("div", { className: cn("flex size-full flex-col justify-center", wrapperClassName), children: config && /* @__PURE__ */ jsxs10(Empty, { className: cn("border border-dashed", config.className), children: [
4611
+ /* @__PURE__ */ jsxs10(EmptyHeader, { children: [
4590
4612
  config.icon && /* @__PURE__ */ jsx11(EmptyMedia, { children: /* @__PURE__ */ jsx11(IconTile, { variant: "branded", size: "md", children: /* @__PURE__ */ jsx11(Icon7, { name: config.icon }) }) }),
4591
4613
  config.header && /* @__PURE__ */ jsx11(EmptyTitle, { children: config.header }),
4592
4614
  config.subheader && /* @__PURE__ */ jsx11(EmptyDescription, { children: config.subheader })
4593
4615
  ] }),
4594
- (config.details || config.action || defaultAction) && /* @__PURE__ */ jsxs9(EmptyContent, { children: [
4616
+ (config.details || config.action || defaultAction) && /* @__PURE__ */ jsxs10(EmptyContent, { children: [
4595
4617
  config.details && /* @__PURE__ */ jsx11(Alert, { children: /* @__PURE__ */ jsx11(AlertDescription, { children: config.details }) }),
4596
4618
  (_d = config.action) != null ? _d : defaultAction
4597
4619
  ] })
@@ -4600,9 +4622,9 @@ function DataTableEmptyView({
4600
4622
 
4601
4623
  // src/data-table/filter-toggle.tsx
4602
4624
  import { Badge as Badge3, Button as Button6, Icon as Icon8 } from "@upbound/monarch-core";
4603
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
4625
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
4604
4626
  function FilterToggle({ pressed, onPressedChange, count }) {
4605
- return /* @__PURE__ */ jsxs10(Button6, { variant: "outline", onClick: () => onPressedChange(!pressed), className: "shrink-0", children: [
4627
+ return /* @__PURE__ */ jsxs11(Button6, { variant: "outline", onClick: () => onPressedChange(!pressed), className: "shrink-0", children: [
4606
4628
  /* @__PURE__ */ jsx12(Icon8, { name: "filter", "data-icon": "inline-start" }),
4607
4629
  pressed ? "Hide filters" : "Show filters",
4608
4630
  !!count && /* @__PURE__ */ jsx12(Badge3, { variant: "secondary", className: "tabular-nums", children: count })
@@ -4621,8 +4643,8 @@ import {
4621
4643
  PaginationLink
4622
4644
  } from "@upbound/monarch-core";
4623
4645
  import { Select as Select2, SelectContent as SelectContent2, SelectGroup as SelectGroup2, SelectItem as SelectItem2, SelectTrigger as SelectTrigger2, SelectValue as SelectValue2 } from "@upbound/monarch-core";
4624
- import { Tooltip as Tooltip5, TooltipContent as TooltipContent4, TooltipTrigger as TooltipTrigger4 } from "@upbound/monarch-core";
4625
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
4646
+ import { Tooltip as Tooltip6, TooltipContent as TooltipContent5, TooltipTrigger as TooltipTrigger5 } from "@upbound/monarch-core";
4647
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
4626
4648
  var DEFAULT_PAGINATION_CONFIG = {
4627
4649
  summary: true,
4628
4650
  arrows: true,
@@ -4661,8 +4683,8 @@ function DataTablePagination({
4661
4683
  const currentPage = pageIndex + 1;
4662
4684
  const mounted = useMounted();
4663
4685
  const locale = mounted ? void 0 : "en-US";
4664
- return /* @__PURE__ */ jsxs11("div", { "data-testid": "table-footer", className: "flex items-center justify-between px-2 pt-4", children: [
4665
- resolved.summary ? /* @__PURE__ */ jsxs11("div", { className: "text-body text-muted-foreground", "data-testid": "table-pagination-summary", children: [
4686
+ return /* @__PURE__ */ jsxs12("div", { "data-testid": "table-footer", className: "flex items-center justify-between px-2 pt-4", children: [
4687
+ resolved.summary ? /* @__PURE__ */ jsxs12("div", { className: "text-body text-muted-foreground", "data-testid": "table-pagination-summary", children: [
4666
4688
  "Showing ",
4667
4689
  /* @__PURE__ */ jsx13("span", { className: "text-foreground font-medium", children: itemStart.toLocaleString(locale) }),
4668
4690
  " to",
@@ -4670,26 +4692,26 @@ function DataTablePagination({
4670
4692
  /* @__PURE__ */ jsx13("span", { className: "text-foreground font-medium", children: itemEnd.toLocaleString(locale) }),
4671
4693
  " of",
4672
4694
  " ",
4673
- /* @__PURE__ */ jsxs11("span", { className: "text-foreground font-medium", children: [
4695
+ /* @__PURE__ */ jsxs12("span", { className: "text-foreground font-medium", children: [
4674
4696
  rowCount.toLocaleString(locale),
4675
4697
  !isRowCountExact && "+"
4676
4698
  ] }),
4677
4699
  " ",
4678
4700
  "results",
4679
- !isRowCountExact && /* @__PURE__ */ jsxs11(Tooltip5, { children: [
4680
- /* @__PURE__ */ jsx13(TooltipTrigger4, { className: "ml-1 align-middle", children: /* @__PURE__ */ jsx13(Icon9, { name: "circle-info", size: "sm" }) }),
4681
- /* @__PURE__ */ jsx13(TooltipContent4, { children: "Add filters or refine your search to reduce the result set." })
4701
+ !isRowCountExact && /* @__PURE__ */ jsxs12(Tooltip6, { children: [
4702
+ /* @__PURE__ */ jsx13(TooltipTrigger5, { className: "ml-1 align-middle", children: /* @__PURE__ */ jsx13(Icon9, { name: "circle-info", size: "sm" }) }),
4703
+ /* @__PURE__ */ jsx13(TooltipContent5, { children: "Add filters or refine your search to reduce the result set." })
4682
4704
  ] })
4683
4705
  ] }) : /* @__PURE__ */ jsx13("div", {}),
4684
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-4", children: [
4685
- resolved.pageSizeSelector && /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-2", children: [
4706
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-4", children: [
4707
+ resolved.pageSizeSelector && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-2", children: [
4686
4708
  /* @__PURE__ */ jsx13(Label2, { htmlFor: PAGE_SIZE_SELECT_ID, className: "font-semibold", children: "Rows per page" }),
4687
- /* @__PURE__ */ jsxs11(Select2, { value: String(effectivePageSize), onValueChange: (value) => onPageSizeChange(Number(value)), children: [
4709
+ /* @__PURE__ */ jsxs12(Select2, { value: String(effectivePageSize), onValueChange: (value) => onPageSizeChange(Number(value)), children: [
4688
4710
  /* @__PURE__ */ jsx13(SelectTrigger2, { id: PAGE_SIZE_SELECT_ID, size: "sm", className: "w-18", "data-testid": "table-page-size-select", children: /* @__PURE__ */ jsx13(SelectValue2, {}) }),
4689
4711
  /* @__PURE__ */ jsx13(SelectContent2, { align: "end", children: /* @__PURE__ */ jsx13(SelectGroup2, { children: normalizedPageSizeOptions.map((option) => /* @__PURE__ */ jsx13(SelectItem2, { value: String(option), children: option }, option)) }) })
4690
4712
  ] })
4691
4713
  ] }),
4692
- pageCount > 1 && (resolved.arrows || resolved.numbers) && /* @__PURE__ */ jsx13(Pagination, { className: "mx-0 w-auto justify-end", children: /* @__PURE__ */ jsxs11(PaginationContent, { children: [
4714
+ pageCount > 1 && (resolved.arrows || resolved.numbers) && /* @__PURE__ */ jsx13(Pagination, { className: "mx-0 w-auto justify-end", children: /* @__PURE__ */ jsxs12(PaginationContent, { children: [
4693
4715
  resolved.arrows && /* @__PURE__ */ jsx13(PaginationItem, { children: /* @__PURE__ */ jsx13(
4694
4716
  Button7,
4695
4717
  {
@@ -4775,8 +4797,8 @@ import {
4775
4797
  TableHeader as BaseTableHeader,
4776
4798
  TableRow as BaseTableRow
4777
4799
  } from "@upbound/monarch-core";
4778
- import { Tooltip as Tooltip6, TooltipContent as TooltipContent5, TooltipTrigger as TooltipTrigger5 } from "@upbound/monarch-core";
4779
- import { Fragment as Fragment7, jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
4800
+ import { Tooltip as Tooltip7, TooltipContent as TooltipContent6, TooltipTrigger as TooltipTrigger6 } from "@upbound/monarch-core";
4801
+ import { Fragment as Fragment7, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
4780
4802
  var HEADER_SURFACE_BG = "bg-[color-mix(in_oklch,var(--muted)_50%,var(--card))]";
4781
4803
  var TABLE_HEAD_CLASSES = "text-body-sm text-muted-foreground h-10 px-4 text-left align-middle font-medium whitespace-nowrap has-[[role=checkbox]]:pr-0";
4782
4804
  var TABLE_CELL_CLASSES = "px-4 py-2 align-middle whitespace-nowrap has-[[role=checkbox]]:pr-0";
@@ -4844,9 +4866,9 @@ function ColumnActionsMenuItems({
4844
4866
  const canResize = header.column.getCanResize();
4845
4867
  const canHide = header.column.getCanHide();
4846
4868
  const canPin = !isGrid && header.column.getCanPin();
4847
- return /* @__PURE__ */ jsxs12(DropdownMenuContent4, { align: "start", className: "w-45", children: [
4848
- canSort && /* @__PURE__ */ jsxs12(Fragment7, { children: [
4849
- /* @__PURE__ */ jsxs12(
4869
+ return /* @__PURE__ */ jsxs13(DropdownMenuContent4, { align: "start", className: "w-45", children: [
4870
+ canSort && /* @__PURE__ */ jsxs13(Fragment7, { children: [
4871
+ /* @__PURE__ */ jsxs13(
4850
4872
  DropdownMenuItem4,
4851
4873
  {
4852
4874
  disabled: header.column.getIsSorted() === "asc",
@@ -4857,7 +4879,7 @@ function ColumnActionsMenuItems({
4857
4879
  ]
4858
4880
  }
4859
4881
  ),
4860
- /* @__PURE__ */ jsxs12(
4882
+ /* @__PURE__ */ jsxs13(
4861
4883
  DropdownMenuItem4,
4862
4884
  {
4863
4885
  disabled: header.column.getIsSorted() === "desc",
@@ -4868,32 +4890,32 @@ function ColumnActionsMenuItems({
4868
4890
  ]
4869
4891
  }
4870
4892
  ),
4871
- !!header.column.getIsSorted() && /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => header.column.clearSorting(), children: [
4893
+ !!header.column.getIsSorted() && /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => header.column.clearSorting(), children: [
4872
4894
  /* @__PURE__ */ jsx14(Icon10, { name: "xmark" }),
4873
4895
  "Remove sorting"
4874
4896
  ] })
4875
4897
  ] }),
4876
- canResize && /* @__PURE__ */ jsxs12(Fragment7, { children: [
4898
+ canResize && /* @__PURE__ */ jsxs13(Fragment7, { children: [
4877
4899
  canSort && /* @__PURE__ */ jsx14(DropdownMenuSeparator2, {}),
4878
- !isGrid && /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => onAutosizeColumn(header.column.id), children: [
4900
+ !isGrid && /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => onAutosizeColumn(header.column.id), children: [
4879
4901
  /* @__PURE__ */ jsx14(Icon10, { name: "arrows-left-right" }),
4880
4902
  "Autosize column"
4881
4903
  ] }),
4882
- /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => onAutosizeAll(), children: [
4904
+ /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => onAutosizeAll(), children: [
4883
4905
  /* @__PURE__ */ jsx14(Icon10, { name: "table-columns" }),
4884
4906
  isGrid ? "Reset all columns" : "Autosize all columns"
4885
4907
  ] })
4886
4908
  ] }),
4887
- (canHide || canPin) && /* @__PURE__ */ jsxs12(Fragment7, { children: [
4909
+ (canHide || canPin) && /* @__PURE__ */ jsxs13(Fragment7, { children: [
4888
4910
  (canSort || canResize) && /* @__PURE__ */ jsx14(DropdownMenuSeparator2, {}),
4889
- canHide && /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => header.column.toggleVisibility(), children: [
4911
+ canHide && /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => header.column.toggleVisibility(), children: [
4890
4912
  /* @__PURE__ */ jsx14(Icon10, { name: "eye-slash" }),
4891
4913
  "Hide column"
4892
4914
  ] }),
4893
- canPin && (header.column.getIsPinned() ? /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => header.column.pin(false), children: [
4915
+ canPin && (header.column.getIsPinned() ? /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => header.column.pin(false), children: [
4894
4916
  /* @__PURE__ */ jsx14(Icon10, { name: "thumbtack" }),
4895
4917
  "Unpin column"
4896
- ] }) : /* @__PURE__ */ jsxs12(DropdownMenuItem4, { onClick: () => header.column.pin("start"), children: [
4918
+ ] }) : /* @__PURE__ */ jsxs13(DropdownMenuItem4, { onClick: () => header.column.pin("start"), children: [
4897
4919
  /* @__PURE__ */ jsx14(Icon10, { name: "thumbtack" }),
4898
4920
  "Pin column"
4899
4921
  ] }))
@@ -4914,7 +4936,7 @@ function HeaderCellContent({
4914
4936
  const resizeHandler = header.getResizeHandler();
4915
4937
  const headerTitle = typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "";
4916
4938
  const sorted = header.column.getIsSorted();
4917
- const labelButton = /* @__PURE__ */ jsxs12(
4939
+ const labelButton = /* @__PURE__ */ jsxs13(
4918
4940
  "button",
4919
4941
  {
4920
4942
  type: "button",
@@ -4938,7 +4960,7 @@ function HeaderCellContent({
4938
4960
  ]
4939
4961
  }
4940
4962
  );
4941
- const label = shouldShowActionsMenu ? /* @__PURE__ */ jsxs12(DropdownMenu4, { children: [
4963
+ const label = shouldShowActionsMenu ? /* @__PURE__ */ jsxs13(DropdownMenu4, { children: [
4942
4964
  /* @__PURE__ */ jsx14(DropdownMenuTrigger4, { asChild: true, children: labelButton }),
4943
4965
  /* @__PURE__ */ jsx14(
4944
4966
  ColumnActionsMenuItems,
@@ -4950,10 +4972,10 @@ function HeaderCellContent({
4950
4972
  }
4951
4973
  )
4952
4974
  ] }) : labelButton;
4953
- return /* @__PURE__ */ jsxs12(Fragment7, { children: [
4954
- /* @__PURE__ */ jsx14("div", { className: "flex min-w-0 flex-1 items-center gap-1", children: /* @__PURE__ */ jsx14("div", { className: "min-w-0 flex-1", children: !isActionColumn && !isGroupedColumn && (headerTitle ? /* @__PURE__ */ jsxs12(Tooltip6, { children: [
4955
- /* @__PURE__ */ jsx14(TooltipTrigger5, { asChild: true, children: label }),
4956
- /* @__PURE__ */ jsx14(TooltipContent5, { children: headerTitle })
4975
+ return /* @__PURE__ */ jsxs13(Fragment7, { children: [
4976
+ /* @__PURE__ */ jsx14("div", { className: "flex min-w-0 flex-1 items-center gap-1", children: /* @__PURE__ */ jsx14("div", { className: "min-w-0 flex-1", children: !isActionColumn && !isGroupedColumn && (headerTitle ? /* @__PURE__ */ jsxs13(Tooltip7, { children: [
4977
+ /* @__PURE__ */ jsx14(TooltipTrigger6, { asChild: true, children: label }),
4978
+ /* @__PURE__ */ jsx14(TooltipContent6, { children: headerTitle })
4957
4979
  ] }) : label) }) }),
4958
4980
  canResize && /* @__PURE__ */ jsx14(
4959
4981
  "button",
@@ -5130,7 +5152,7 @@ function DataTableCell({
5130
5152
  }
5131
5153
  );
5132
5154
  if (!shouldShowContextualMenu || !onContextCell) return cellElement;
5133
- return /* @__PURE__ */ jsxs12(ContextMenu, { children: [
5155
+ return /* @__PURE__ */ jsxs13(ContextMenu, { children: [
5134
5156
  /* @__PURE__ */ jsx14(ContextMenuTrigger, { asChild: true, children: cellElement }),
5135
5157
  /* @__PURE__ */ jsx14(
5136
5158
  CellContextualFilter,
@@ -5251,7 +5273,7 @@ function DataTableBody({
5251
5273
  }
5252
5274
  const isExpanded = !!(((_d = row.getCanExpand) == null ? void 0 : _d.call(row)) && ((_e = row.getIsExpanded) == null ? void 0 : _e.call(row)));
5253
5275
  const expandedRow = renderExpandedRow && isExpanded ? renderExpandedRow(row.original) : null;
5254
- return /* @__PURE__ */ jsxs12(React9.Fragment, { children: [
5276
+ return /* @__PURE__ */ jsxs13(React9.Fragment, { children: [
5255
5277
  /* @__PURE__ */ jsx14(
5256
5278
  DataTableRow,
5257
5279
  __spreadProps(__spreadValues({}, onRowRender ? onRowRender(row.original, row) : {}), {
@@ -5316,7 +5338,7 @@ import {
5316
5338
  import { Input as Input2 } from "@upbound/monarch-core";
5317
5339
  import { Label as Label3 } from "@upbound/monarch-core";
5318
5340
  import { Popover as Popover2, PopoverContent as PopoverContent2, PopoverTrigger as PopoverTrigger2 } from "@upbound/monarch-core";
5319
- import { Fragment as Fragment8, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
5341
+ import { Fragment as Fragment8, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
5320
5342
  function asCheckboxValue(value) {
5321
5343
  return Array.isArray(value) ? value : [];
5322
5344
  }
@@ -5391,7 +5413,7 @@ function FilterBar(_a) {
5391
5413
  setPendingOpenKey(key);
5392
5414
  }
5393
5415
  const containerRef = React10.useRef(null);
5394
- return /* @__PURE__ */ jsxs13(
5416
+ return /* @__PURE__ */ jsxs14(
5395
5417
  "div",
5396
5418
  __spreadProps(__spreadValues({
5397
5419
  "data-slot": "filter-bar",
@@ -5400,7 +5422,7 @@ function FilterBar(_a) {
5400
5422
  ref: composeRefs(containerRef, ref)
5401
5423
  }, props), {
5402
5424
  children: [
5403
- availableFilters.length > 0 && /* @__PURE__ */ jsxs13(
5425
+ availableFilters.length > 0 && /* @__PURE__ */ jsxs14(
5404
5426
  Combobox2,
5405
5427
  {
5406
5428
  items: availableFilters,
@@ -5411,11 +5433,11 @@ function FilterBar(_a) {
5411
5433
  if (filter) handleAddFilter(filter.key);
5412
5434
  },
5413
5435
  children: [
5414
- /* @__PURE__ */ jsxs13(ComboboxTrigger2, { "aria-label": "Add filter", showIndicator: false, render: /* @__PURE__ */ jsx15(Button8, { variant: "outline" }), children: [
5436
+ /* @__PURE__ */ jsxs14(ComboboxTrigger2, { "aria-label": "Add filter", showIndicator: false, render: /* @__PURE__ */ jsx15(Button8, { variant: "outline" }), children: [
5415
5437
  /* @__PURE__ */ jsx15(Icon11, { name: "plus", "data-icon": "inline-start" }),
5416
5438
  "Add filter"
5417
5439
  ] }),
5418
- /* @__PURE__ */ jsxs13(ComboboxContent2, { container: containerRef, align: "start", className: "w-48", children: [
5440
+ /* @__PURE__ */ jsxs14(ComboboxContent2, { container: containerRef, align: "start", className: "w-48", children: [
5419
5441
  /* @__PURE__ */ jsx15(ComboboxInput2, { showTrigger: false, placeholder: "Search filters\u2026" }),
5420
5442
  /* @__PURE__ */ jsx15(ComboboxEmpty2, { children: "No filters found." }),
5421
5443
  /* @__PURE__ */ jsx15(ComboboxList2, { children: (filter) => /* @__PURE__ */ jsx15(ComboboxItem2, { value: filter, children: filter.label }, filter.key) })
@@ -5527,9 +5549,9 @@ function CheckboxFilterChip({
5527
5549
  const next = values.includes(optionValue) ? values.filter((v) => v !== optionValue) : [...values, optionValue];
5528
5550
  onChangeValue(next);
5529
5551
  }
5530
- return /* @__PURE__ */ jsxs13(ButtonGroup2, { children: [
5552
+ return /* @__PURE__ */ jsxs14(ButtonGroup2, { children: [
5531
5553
  /* @__PURE__ */ jsx15(ButtonGroupText2, { children: label }),
5532
- searchable ? /* @__PURE__ */ jsxs13(
5554
+ searchable ? /* @__PURE__ */ jsxs14(
5533
5555
  Combobox2,
5534
5556
  {
5535
5557
  items: options,
@@ -5546,7 +5568,7 @@ function CheckboxFilterChip({
5546
5568
  children: /* @__PURE__ */ jsx15("span", { className: values.length === 0 ? "text-muted-foreground" : "", children: displayLabel })
5547
5569
  }
5548
5570
  ),
5549
- /* @__PURE__ */ jsxs13(
5571
+ /* @__PURE__ */ jsxs14(
5550
5572
  ComboboxContent2,
5551
5573
  {
5552
5574
  container,
@@ -5554,19 +5576,19 @@ function CheckboxFilterChip({
5554
5576
  collisionAvoidance: { side: "none", align: "shift" },
5555
5577
  children: [
5556
5578
  /* @__PURE__ */ jsx15(ComboboxInput2, { showTrigger: false, placeholder: `Search ${label.toLowerCase()}\u2026` }),
5557
- values.length > 0 && /* @__PURE__ */ jsxs13(Fragment8, { children: [
5558
- /* @__PURE__ */ jsxs13(ComboboxSelectedChips2, { children: [
5579
+ values.length > 0 && /* @__PURE__ */ jsxs14(Fragment8, { children: [
5580
+ /* @__PURE__ */ jsxs14(ComboboxSelectedChips2, { children: [
5559
5581
  /* @__PURE__ */ jsx15(ComboboxValue2, { children: (selected) => /* @__PURE__ */ jsx15(Fragment8, { children: selected.map((item) => /* @__PURE__ */ jsx15(ComboboxChip2, { children: item.label }, item.value)) }) }),
5560
5582
  /* @__PURE__ */ jsx15(ComboboxClearAll2, { onClick: () => onChangeValue([]) })
5561
5583
  ] }),
5562
5584
  /* @__PURE__ */ jsx15(ComboboxSeparator2, {})
5563
5585
  ] }),
5564
- /* @__PURE__ */ jsxs13(ComboboxEmpty2, { children: [
5586
+ /* @__PURE__ */ jsxs14(ComboboxEmpty2, { children: [
5565
5587
  "No ",
5566
5588
  label.toLowerCase(),
5567
5589
  " found."
5568
5590
  ] }),
5569
- /* @__PURE__ */ jsx15(ComboboxList2, { children: (item) => /* @__PURE__ */ jsxs13(ComboboxItem2, { value: item, children: [
5591
+ /* @__PURE__ */ jsx15(ComboboxList2, { children: (item) => /* @__PURE__ */ jsxs14(ComboboxItem2, { value: item, children: [
5570
5592
  item.icon,
5571
5593
  item.label
5572
5594
  ] }, item.value) })
@@ -5575,12 +5597,12 @@ function CheckboxFilterChip({
5575
5597
  )
5576
5598
  ]
5577
5599
  }
5578
- ) : /* @__PURE__ */ jsxs13(DropdownMenu5, { defaultOpen: autoOpen, children: [
5579
- /* @__PURE__ */ jsx15(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsxs13(Button8, { variant: "outline", className: "gap-1 font-normal", children: [
5600
+ ) : /* @__PURE__ */ jsxs14(DropdownMenu5, { defaultOpen: autoOpen, children: [
5601
+ /* @__PURE__ */ jsx15(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsxs14(Button8, { variant: "outline", className: "gap-1 font-normal", children: [
5580
5602
  /* @__PURE__ */ jsx15("span", { className: values.length === 0 ? "text-muted-foreground" : "", children: displayLabel }),
5581
5603
  /* @__PURE__ */ jsx15(Icon11, { name: "chevron-down", size: "sm", className: "text-muted-foreground" })
5582
5604
  ] }) }),
5583
- /* @__PURE__ */ jsx15(DropdownMenuContent5, { align: "start", className: "w-48", children: options.map((opt) => /* @__PURE__ */ jsxs13(
5605
+ /* @__PURE__ */ jsx15(DropdownMenuContent5, { align: "start", className: "w-48", children: options.map((opt) => /* @__PURE__ */ jsxs14(
5584
5606
  DropdownMenuCheckboxItem2,
5585
5607
  {
5586
5608
  checked: values.includes(opt.value),
@@ -5610,9 +5632,9 @@ function RadioFilterChip({
5610
5632
  const selectedValue = asRadioValue(value);
5611
5633
  const displayLabel = selectedValue ? (_b = (_a = options.find((o) => o.value === selectedValue)) == null ? void 0 : _a.label) != null ? _b : selectedValue : "Any";
5612
5634
  const selected = (_c = options.find((o) => o.value === selectedValue)) != null ? _c : null;
5613
- return /* @__PURE__ */ jsxs13(ButtonGroup2, { children: [
5635
+ return /* @__PURE__ */ jsxs14(ButtonGroup2, { children: [
5614
5636
  /* @__PURE__ */ jsx15(ButtonGroupText2, { children: label }),
5615
- searchable ? /* @__PURE__ */ jsxs13(
5637
+ searchable ? /* @__PURE__ */ jsxs14(
5616
5638
  Combobox2,
5617
5639
  {
5618
5640
  items: options,
@@ -5631,7 +5653,7 @@ function RadioFilterChip({
5631
5653
  children: /* @__PURE__ */ jsx15("span", { className: selectedValue ? "" : "text-muted-foreground", children: displayLabel })
5632
5654
  }
5633
5655
  ),
5634
- /* @__PURE__ */ jsxs13(
5656
+ /* @__PURE__ */ jsxs14(
5635
5657
  ComboboxContent2,
5636
5658
  {
5637
5659
  container,
@@ -5639,12 +5661,12 @@ function RadioFilterChip({
5639
5661
  collisionAvoidance: { side: "none", align: "shift" },
5640
5662
  children: [
5641
5663
  /* @__PURE__ */ jsx15(ComboboxInput2, { showTrigger: false, placeholder: `Search ${label.toLowerCase()}\u2026` }),
5642
- /* @__PURE__ */ jsxs13(ComboboxEmpty2, { children: [
5664
+ /* @__PURE__ */ jsxs14(ComboboxEmpty2, { children: [
5643
5665
  "No ",
5644
5666
  label.toLowerCase(),
5645
5667
  " found."
5646
5668
  ] }),
5647
- /* @__PURE__ */ jsx15(ComboboxList2, { children: (item) => /* @__PURE__ */ jsxs13(ComboboxItem2, { value: item, children: [
5669
+ /* @__PURE__ */ jsx15(ComboboxList2, { children: (item) => /* @__PURE__ */ jsxs14(ComboboxItem2, { value: item, children: [
5648
5670
  item.icon,
5649
5671
  item.label
5650
5672
  ] }, item.value) })
@@ -5653,12 +5675,12 @@ function RadioFilterChip({
5653
5675
  )
5654
5676
  ]
5655
5677
  }
5656
- ) : /* @__PURE__ */ jsxs13(DropdownMenu5, { defaultOpen: autoOpen, children: [
5657
- /* @__PURE__ */ jsx15(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsxs13(Button8, { variant: "outline", className: "gap-1 font-normal", children: [
5678
+ ) : /* @__PURE__ */ jsxs14(DropdownMenu5, { defaultOpen: autoOpen, children: [
5679
+ /* @__PURE__ */ jsx15(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsxs14(Button8, { variant: "outline", className: "gap-1 font-normal", children: [
5658
5680
  /* @__PURE__ */ jsx15("span", { className: selectedValue ? "" : "text-muted-foreground", children: displayLabel }),
5659
5681
  /* @__PURE__ */ jsx15(Icon11, { name: "chevron-down", size: "sm", className: "text-muted-foreground" })
5660
5682
  ] }) }),
5661
- /* @__PURE__ */ jsx15(DropdownMenuContent5, { align: "start", className: "w-48", children: /* @__PURE__ */ jsx15(DropdownMenuRadioGroup, { value: selectedValue, onValueChange: onChangeValue, children: options.map((opt) => /* @__PURE__ */ jsxs13(DropdownMenuRadioItem, { value: opt.value, children: [
5683
+ /* @__PURE__ */ jsx15(DropdownMenuContent5, { align: "start", className: "w-48", children: /* @__PURE__ */ jsx15(DropdownMenuRadioGroup, { value: selectedValue, onValueChange: onChangeValue, children: options.map((opt) => /* @__PURE__ */ jsxs14(DropdownMenuRadioItem, { value: opt.value, children: [
5662
5684
  opt.icon,
5663
5685
  opt.label
5664
5686
  ] }, opt.value)) }) })
@@ -5676,9 +5698,9 @@ function TextFilterChip({
5676
5698
  const { label, placeholder } = definition;
5677
5699
  const text = asTextValue(value);
5678
5700
  const [open, setOpen] = React10.useState(!!autoOpen);
5679
- return /* @__PURE__ */ jsxs13(ButtonGroup2, { children: [
5701
+ return /* @__PURE__ */ jsxs14(ButtonGroup2, { children: [
5680
5702
  /* @__PURE__ */ jsx15(ButtonGroupText2, { children: label }),
5681
- /* @__PURE__ */ jsxs13(Popover2, { open, onOpenChange: setOpen, children: [
5703
+ /* @__PURE__ */ jsxs14(Popover2, { open, onOpenChange: setOpen, children: [
5682
5704
  /* @__PURE__ */ jsx15(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15(Button8, { variant: "outline", className: "gap-1 font-normal", children: /* @__PURE__ */ jsx15("span", { className: text ? "" : "text-muted-foreground", children: text || "Any" }) }) }),
5683
5705
  /* @__PURE__ */ jsx15(PopoverContent2, { align: "start", children: /* @__PURE__ */ jsx15(
5684
5706
  Input2,
@@ -5719,12 +5741,12 @@ function MultiTextFilterChip({
5719
5741
  function removeToken(token) {
5720
5742
  onChangeValue(tokens.filter((t) => t !== token));
5721
5743
  }
5722
- return /* @__PURE__ */ jsxs13(ButtonGroup2, { children: [
5744
+ return /* @__PURE__ */ jsxs14(ButtonGroup2, { children: [
5723
5745
  /* @__PURE__ */ jsx15(ButtonGroupText2, { children: label }),
5724
- /* @__PURE__ */ jsxs13(Popover2, { defaultOpen: autoOpen, children: [
5746
+ /* @__PURE__ */ jsxs14(Popover2, { defaultOpen: autoOpen, children: [
5725
5747
  /* @__PURE__ */ jsx15(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15(Button8, { variant: "outline", className: "gap-1 font-normal", children: /* @__PURE__ */ jsx15("span", { className: tokens.length === 0 ? "text-muted-foreground" : "", children: displayLabel }) }) }),
5726
- /* @__PURE__ */ jsx15(PopoverContent2, { align: "start", children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
5727
- tokens.length > 0 && /* @__PURE__ */ jsx15("div", { className: "flex flex-wrap gap-1", children: tokens.map((token) => /* @__PURE__ */ jsxs13(Badge4, { variant: "secondary", className: "gap-1", children: [
5748
+ /* @__PURE__ */ jsx15(PopoverContent2, { align: "start", children: /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
5749
+ tokens.length > 0 && /* @__PURE__ */ jsx15("div", { className: "flex flex-wrap gap-1", children: tokens.map((token) => /* @__PURE__ */ jsxs14(Badge4, { variant: "secondary", className: "gap-1", children: [
5728
5750
  token,
5729
5751
  /* @__PURE__ */ jsx15(
5730
5752
  "button",
@@ -5786,11 +5808,11 @@ function DateFilterChip({
5786
5808
  if (!endDate) return;
5787
5809
  onChangeValue({ startDate, endDate: applyTimeToDate(endDate, time) });
5788
5810
  }
5789
- return /* @__PURE__ */ jsxs13(ButtonGroup2, { children: [
5811
+ return /* @__PURE__ */ jsxs14(ButtonGroup2, { children: [
5790
5812
  /* @__PURE__ */ jsx15(ButtonGroupText2, { children: label }),
5791
- /* @__PURE__ */ jsxs13(Popover2, { defaultOpen: autoOpen, children: [
5813
+ /* @__PURE__ */ jsxs14(Popover2, { defaultOpen: autoOpen, children: [
5792
5814
  /* @__PURE__ */ jsx15(PopoverTrigger2, { asChild: true, children: /* @__PURE__ */ jsx15(Button8, { variant: "outline", className: "gap-1 font-normal", children: /* @__PURE__ */ jsx15("span", { className: startDate ? "" : "text-muted-foreground", children: displayLabel }) }) }),
5793
- /* @__PURE__ */ jsx15(PopoverContent2, { align: "start", className: "w-fit", children: /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
5815
+ /* @__PURE__ */ jsx15(PopoverContent2, { align: "start", className: "w-fit", children: /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
5794
5816
  /* @__PURE__ */ jsx15(
5795
5817
  Calendar2,
5796
5818
  {
@@ -5799,8 +5821,8 @@ function DateFilterChip({
5799
5821
  onSelect: pickRange
5800
5822
  }
5801
5823
  ),
5802
- showTimeInputs && /* @__PURE__ */ jsxs13("div", { className: "flex flex-col gap-2", children: [
5803
- /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center gap-2", children: [
5824
+ showTimeInputs && /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-2", children: [
5825
+ /* @__PURE__ */ jsxs14("div", { className: "flex w-full items-center gap-2", children: [
5804
5826
  /* @__PURE__ */ jsx15(
5805
5827
  Label3,
5806
5828
  {
@@ -5821,7 +5843,7 @@ function DateFilterChip({
5821
5843
  }
5822
5844
  )
5823
5845
  ] }),
5824
- /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center gap-2", children: [
5846
+ /* @__PURE__ */ jsxs14("div", { className: "flex w-full items-center gap-2", children: [
5825
5847
  /* @__PURE__ */ jsx15(
5826
5848
  Label3,
5827
5849
  {
@@ -5849,12 +5871,6 @@ function DateFilterChip({
5849
5871
  ] });
5850
5872
  }
5851
5873
 
5852
- // src/lib/data-table/filter-types.ts
5853
- var isDateRangeColumnFilter = (definition) => definition.type === "dateRange";
5854
- var isRadioColumnFilter = (definition) => definition.type === "radio";
5855
- var isCheckboxColumnFilter = (definition) => definition.type === "checkbox";
5856
- var isMultiTextColumnFilter = (definition) => definition.type === "multiText";
5857
-
5858
5874
  // src/data-table/view-filter.tsx
5859
5875
  import { jsx as jsx16 } from "react/jsx-runtime";
5860
5876
  function toFilterOption(opt) {
@@ -5900,7 +5916,7 @@ function ViewFilter({
5900
5916
  className
5901
5917
  }) {
5902
5918
  const filterableColumns = React11.useMemo(
5903
- () => columns.filter((column) => !isFilterOnlyColumn(column) && column.getCanFilter()).flatMap((column) => {
5919
+ () => columns.filter((column) => column.getCanFilter()).flatMap((column) => {
5904
5920
  var _a;
5905
5921
  const filter = (_a = column.columnDef.meta) == null ? void 0 : _a.filter;
5906
5922
  return filter ? [{ key: column.id, filter }] : [];
@@ -5987,7 +6003,7 @@ function SectionHeaderTabs(_a) {
5987
6003
  }
5988
6004
 
5989
6005
  // src/data-table/data-table.tsx
5990
- import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
6006
+ import { Fragment as Fragment9, jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
5991
6007
  var DEFAULT_PAGE_SIZE = 20;
5992
6008
  var noop = () => {
5993
6009
  };
@@ -6128,7 +6144,9 @@ function DataTable({
6128
6144
  const hasExternalSearch = parentGlobalFilter !== void 0;
6129
6145
  const hasExternalFilters = parentColumnFilters !== void 0;
6130
6146
  const shouldDisableFiltersModels = !!disableFilters && !!disableSearch && !hasExternalSearch && !hasExternalFilters;
6147
+ const columns = React12.useMemo(() => withDefaultFilterFns(config.columns), [config.columns]);
6131
6148
  const table = useTable(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, config), {
6149
+ columns,
6132
6150
  features: dataTableFeatures,
6133
6151
  // Row models are registered statically in `dataTableFeatures`, so a disabled stage is switched
6134
6152
  // off with its `manual*` option (the stage then passes rows through untouched).
@@ -6276,7 +6294,7 @@ function DataTable({
6276
6294
  disableColumnOrdering: disableColumnReordering
6277
6295
  }
6278
6296
  );
6279
- return /* @__PURE__ */ jsxs14(
6297
+ return /* @__PURE__ */ jsxs15(
6280
6298
  "div",
6281
6299
  {
6282
6300
  id: `table-${id}`,
@@ -6287,13 +6305,13 @@ function DataTable({
6287
6305
  className
6288
6306
  ),
6289
6307
  children: [
6290
- showViewHeader && /* @__PURE__ */ jsx18(SectionHeader, { className: "mb-4 flex w-full gap-2", children: /* @__PURE__ */ jsxs14(SectionHeaderContent, { children: [
6308
+ showViewHeader && /* @__PURE__ */ jsx18(SectionHeader, { className: "mb-4 flex w-full gap-2", children: /* @__PURE__ */ jsxs15(SectionHeaderContent, { children: [
6291
6309
  !!title && /* @__PURE__ */ jsx18(SectionHeaderTitle, { children: title }),
6292
6310
  !!description && /* @__PURE__ */ jsx18(SectionHeaderDescription, { children: description })
6293
6311
  ] }) }),
6294
- /* @__PURE__ */ jsxs14("div", { className: "mb-4 flex flex-row gap-2", children: [
6312
+ /* @__PURE__ */ jsxs15("div", { className: "mb-4 flex flex-row gap-2", children: [
6295
6313
  toolbarSearch,
6296
- /* @__PURE__ */ jsxs14("div", { className: "ml-auto flex items-center gap-2", children: [
6314
+ /* @__PURE__ */ jsxs15("div", { className: "ml-auto flex items-center gap-2", children: [
6297
6315
  showFilterToggle && /* @__PURE__ */ jsx18(FilterToggle, { pressed: filterRowVisible, onPressedChange: setFilterRowVisible, count: filterCount }),
6298
6316
  !!Actions && /* @__PURE__ */ jsx18(Actions, { state: tableState }),
6299
6317
  toolbarColumns
@@ -6318,7 +6336,7 @@ function DataTable({
6318
6336
  className: "data-[visible-filters=true]:mb-4"
6319
6337
  }
6320
6338
  ) }),
6321
- shouldRenderTableContent ? /* @__PURE__ */ jsxs14(Fragment9, { children: [
6339
+ shouldRenderTableContent ? /* @__PURE__ */ jsxs15(Fragment9, { children: [
6322
6340
  /* @__PURE__ */ jsx18("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "table-main", children: /* @__PURE__ */ jsx18(
6323
6341
  "div",
6324
6342
  {
@@ -6328,7 +6346,7 @@ function DataTable({
6328
6346
  "min-h-0 flex-1 overflow-auto rounded-lg border **:data-[slot=table-container]:overflow-visible",
6329
6347
  !!stickyHeader && !fitContent && STICKY_HEADER_MAX_HEIGHT_CLASS
6330
6348
  ),
6331
- children: /* @__PURE__ */ jsxs14(
6349
+ children: /* @__PURE__ */ jsxs15(
6332
6350
  DataTableRoot,
6333
6351
  {
6334
6352
  layout,
@@ -6406,8 +6424,8 @@ import { Button as Button9 } from "@upbound/monarch-core";
6406
6424
  import { DropdownMenu as DropdownMenu6, DropdownMenuContent as DropdownMenuContent6, DropdownMenuTrigger as DropdownMenuTrigger6 } from "@upbound/monarch-core";
6407
6425
  import { Icon as Icon12 } from "@upbound/monarch-core";
6408
6426
  import { Kbd as Kbd2 } from "@upbound/monarch-core";
6409
- import { Tooltip as Tooltip7, TooltipContent as TooltipContent6, TooltipTrigger as TooltipTrigger6 } from "@upbound/monarch-core";
6410
- import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
6427
+ import { Tooltip as Tooltip8, TooltipContent as TooltipContent7, TooltipTrigger as TooltipTrigger7 } from "@upbound/monarch-core";
6428
+ import { jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
6411
6429
  var FloatingWidgetContext = React13.createContext(null);
6412
6430
  function FloatingWidgetProvider({ children }) {
6413
6431
  const [isOpen, setIsOpen] = React13.useState(false);
@@ -6495,7 +6513,7 @@ function FloatingWidget({ title = "Ask AI", subtitle, menuItems, children, class
6495
6513
  }, [isOpen, close]);
6496
6514
  if (!isOpen) return null;
6497
6515
  const dragStyle = dragWidth != null && !isCollapsed ? { width: `${dragWidth}px`, minWidth: `${MIN_WIDTH}px` } : void 0;
6498
- return /* @__PURE__ */ jsxs15(
6516
+ return /* @__PURE__ */ jsxs16(
6499
6517
  "div",
6500
6518
  {
6501
6519
  ref: widgetRef,
@@ -6519,8 +6537,8 @@ function FloatingWidget({ title = "Ask AI", subtitle, menuItems, children, class
6519
6537
  className
6520
6538
  ),
6521
6539
  children: [
6522
- !isCollapsed && /* @__PURE__ */ jsxs15(Tooltip7, { children: [
6523
- /* @__PURE__ */ jsx19(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(
6540
+ !isCollapsed && /* @__PURE__ */ jsxs16(Tooltip8, { children: [
6541
+ /* @__PURE__ */ jsx19(TooltipTrigger7, { asChild: true, children: /* @__PURE__ */ jsx19(
6524
6542
  "div",
6525
6543
  {
6526
6544
  role: "separator",
@@ -6531,22 +6549,22 @@ function FloatingWidget({ title = "Ask AI", subtitle, menuItems, children, class
6531
6549
  children: /* @__PURE__ */ jsx19("div", { className: "bg-border h-12 w-1 shrink-0 rounded-lg opacity-0 transition-opacity duration-150 group-hover:opacity-100" })
6532
6550
  }
6533
6551
  ) }),
6534
- /* @__PURE__ */ jsx19(TooltipContent6, { side: "left", children: "Resize" })
6552
+ /* @__PURE__ */ jsx19(TooltipContent7, { side: "left", children: "Resize" })
6535
6553
  ] }),
6536
- /* @__PURE__ */ jsxs15("header", { className: "flex min-h-12 shrink-0 items-center gap-1 border-b px-3 py-2", children: [
6537
- /* @__PURE__ */ jsxs15("div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
6554
+ /* @__PURE__ */ jsxs16("header", { className: "flex min-h-12 shrink-0 items-center gap-1 border-b px-3 py-2", children: [
6555
+ /* @__PURE__ */ jsxs16("div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
6538
6556
  /* @__PURE__ */ jsx19("span", { className: "text-body truncate font-medium", children: title }),
6539
6557
  subtitle && /* @__PURE__ */ jsx19("span", { className: "text-body-sm text-muted-foreground truncate", children: subtitle })
6540
6558
  ] }),
6541
- menuItems && !isCollapsed && /* @__PURE__ */ jsxs15(Tooltip7, { children: [
6542
- /* @__PURE__ */ jsxs15(DropdownMenu6, { children: [
6543
- /* @__PURE__ */ jsx19(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(DropdownMenuTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", "aria-label": "More options", children: /* @__PURE__ */ jsx19(Icon12, { name: "ellipsis-vertical" }) }) }) }),
6559
+ menuItems && !isCollapsed && /* @__PURE__ */ jsxs16(Tooltip8, { children: [
6560
+ /* @__PURE__ */ jsxs16(DropdownMenu6, { children: [
6561
+ /* @__PURE__ */ jsx19(TooltipTrigger7, { asChild: true, children: /* @__PURE__ */ jsx19(DropdownMenuTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", "aria-label": "More options", children: /* @__PURE__ */ jsx19(Icon12, { name: "ellipsis-vertical" }) }) }) }),
6544
6562
  /* @__PURE__ */ jsx19(DropdownMenuContent6, { align: "end", children: menuItems })
6545
6563
  ] }),
6546
- /* @__PURE__ */ jsx19(TooltipContent6, { children: "More options" })
6564
+ /* @__PURE__ */ jsx19(TooltipContent7, { children: "More options" })
6547
6565
  ] }),
6548
- !isCollapsed && /* @__PURE__ */ jsxs15(Tooltip7, { children: [
6549
- /* @__PURE__ */ jsx19(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(
6566
+ !isCollapsed && /* @__PURE__ */ jsxs16(Tooltip8, { children: [
6567
+ /* @__PURE__ */ jsx19(TooltipTrigger7, { asChild: true, children: /* @__PURE__ */ jsx19(
6550
6568
  Button9,
6551
6569
  {
6552
6570
  variant: "ghost",
@@ -6556,15 +6574,15 @@ function FloatingWidget({ title = "Ask AI", subtitle, menuItems, children, class
6556
6574
  children: /* @__PURE__ */ jsx19(Icon12, { name: isExpanded ? "shrink" : "arrow-up-right-and-arrow-down-left-from-center" })
6557
6575
  }
6558
6576
  ) }),
6559
- /* @__PURE__ */ jsx19(TooltipContent6, { children: isExpanded ? "Shrink widget" : "Expand widget" })
6577
+ /* @__PURE__ */ jsx19(TooltipContent7, { children: isExpanded ? "Shrink widget" : "Expand widget" })
6560
6578
  ] }),
6561
- /* @__PURE__ */ jsxs15(Tooltip7, { children: [
6562
- /* @__PURE__ */ jsx19(TooltipTrigger6, { asChild: true, children: isCollapsed ? /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: restore, "aria-label": "Restore widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "window-maximize" }) }) : /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: collapse, "aria-label": "Minimize widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "minus" }) }) }),
6563
- /* @__PURE__ */ jsx19(TooltipContent6, { children: isCollapsed ? "Restore widget" : "Minimize widget" })
6579
+ /* @__PURE__ */ jsxs16(Tooltip8, { children: [
6580
+ /* @__PURE__ */ jsx19(TooltipTrigger7, { asChild: true, children: isCollapsed ? /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: restore, "aria-label": "Restore widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "window-maximize" }) }) : /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: collapse, "aria-label": "Minimize widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "minus" }) }) }),
6581
+ /* @__PURE__ */ jsx19(TooltipContent7, { children: isCollapsed ? "Restore widget" : "Minimize widget" })
6564
6582
  ] }),
6565
- /* @__PURE__ */ jsxs15(Tooltip7, { children: [
6566
- /* @__PURE__ */ jsx19(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: close, "aria-label": "Close widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "xmark" }) }) }),
6567
- /* @__PURE__ */ jsxs15(TooltipContent6, { children: [
6583
+ /* @__PURE__ */ jsxs16(Tooltip8, { children: [
6584
+ /* @__PURE__ */ jsx19(TooltipTrigger7, { asChild: true, children: /* @__PURE__ */ jsx19(Button9, { variant: "ghost", size: "icon-sm", onClick: close, "aria-label": "Close widget", children: /* @__PURE__ */ jsx19(Icon12, { name: "xmark" }) }) }),
6585
+ /* @__PURE__ */ jsxs16(TooltipContent7, { children: [
6568
6586
  "Close widget",
6569
6587
  /* @__PURE__ */ jsx19(Kbd2, { children: "Esc" })
6570
6588
  ] })
@@ -6596,7 +6614,7 @@ import { useCallback as useCallback10, useState as useState13 } from "react";
6596
6614
  // src/graph/graph-node.tsx
6597
6615
  import * as React14 from "react";
6598
6616
  import { getIncomers, getOutgoers, Handle, Position as Position2 } from "reactflow";
6599
- import { Badge as Badge5, Card as Card2, Icon as Icon13, Spinner, Tooltip as Tooltip8, TooltipContent as TooltipContent7, TooltipTrigger as TooltipTrigger7 } from "@upbound/monarch-core";
6617
+ import { Badge as Badge5, Card as Card2, Icon as Icon13, Spinner, Tooltip as Tooltip9, TooltipContent as TooltipContent8, TooltipTrigger as TooltipTrigger8 } from "@upbound/monarch-core";
6600
6618
 
6601
6619
  // src/graph/consts.ts
6602
6620
  var GRAPH_NODE_WIDTH = 260;
@@ -6607,7 +6625,7 @@ var GRAPH_RANK_SEP = 54;
6607
6625
 
6608
6626
  // src/graph/graph-edge.tsx
6609
6627
  import { getSmoothStepPath, getStraightPath, Position } from "reactflow";
6610
- import { jsx as jsx20, jsxs as jsxs16 } from "react/jsx-runtime";
6628
+ import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
6611
6629
  var GraphEdge = ({
6612
6630
  id,
6613
6631
  sourceX,
@@ -6633,14 +6651,14 @@ var GraphEdge = ({
6633
6651
  borderRadius: 8,
6634
6652
  offset: 0
6635
6653
  });
6636
- return /* @__PURE__ */ jsxs16("g", { id, className: "react-flow__edge-path", children: [
6654
+ return /* @__PURE__ */ jsxs17("g", { id, className: "react-flow__edge-path", children: [
6637
6655
  /* @__PURE__ */ jsx20("path", { d: straightEdgePath, className: "stroke-border fill-transparent stroke-2" }),
6638
6656
  /* @__PURE__ */ jsx20("path", { d: edgePath, className: "stroke-border fill-transparent stroke-2" })
6639
6657
  ] });
6640
6658
  };
6641
6659
 
6642
6660
  // src/graph/graph-node.tsx
6643
- import { Fragment as Fragment10, jsx as jsx21, jsxs as jsxs17 } from "react/jsx-runtime";
6661
+ import { Fragment as Fragment10, jsx as jsx21, jsxs as jsxs18 } from "react/jsx-runtime";
6644
6662
  function isDefaultNode(node) {
6645
6663
  return node.type !== "loading";
6646
6664
  }
@@ -6671,7 +6689,7 @@ function GraphNode(_a) {
6671
6689
  if (state === "paused") {
6672
6690
  return [
6673
6691
  {
6674
- children: /* @__PURE__ */ jsxs17(Fragment10, { children: [
6692
+ children: /* @__PURE__ */ jsxs18(Fragment10, { children: [
6675
6693
  /* @__PURE__ */ jsx21(Icon13, { name: "pause", size: "xs", className: "mr-1" }),
6676
6694
  " Paused"
6677
6695
  ] }),
@@ -6701,7 +6719,7 @@ function GraphNode(_a) {
6701
6719
  }, [currentNode, nodes, edges]);
6702
6720
  const targetX = GRAPH_NODE_WIDTH / 2 - 4;
6703
6721
  const sourceX = 4;
6704
- return /* @__PURE__ */ jsxs17(
6722
+ return /* @__PURE__ */ jsxs18(
6705
6723
  Card2,
6706
6724
  {
6707
6725
  className: cn(
@@ -6724,13 +6742,13 @@ function GraphNode(_a) {
6724
6742
  isConnectable: false
6725
6743
  }
6726
6744
  ),
6727
- /* @__PURE__ */ jsxs17("div", { className: "flex w-full flex-1 cursor-pointer flex-col", onClick: handleClick, children: [
6728
- /* @__PURE__ */ jsxs17("div", { className: cn("flex w-full justify-between gap-1 px-2.5", compact && "flex-row-reverse items-start"), children: [
6729
- !!compact && /* @__PURE__ */ jsxs17(Fragment10, { children: [
6745
+ /* @__PURE__ */ jsxs18("div", { className: "flex w-full flex-1 cursor-pointer flex-col", onClick: handleClick, children: [
6746
+ /* @__PURE__ */ jsxs18("div", { className: cn("flex w-full justify-between gap-1 px-2.5", compact && "flex-row-reverse items-start"), children: [
6747
+ !!compact && /* @__PURE__ */ jsxs18(Fragment10, { children: [
6730
6748
  compactBadges.length > 0 && /* @__PURE__ */ jsx21("div", { className: "flex shrink-0 flex-row items-center gap-1.5 overflow-hidden", children: compactBadges.map((_c, index) => {
6731
6749
  var _d = _c, { tooltipContent, variant } = _d, badge = __objRest(_d, ["tooltipContent", "variant"]);
6732
- return /* @__PURE__ */ jsxs17(Tooltip8, { children: [
6733
- /* @__PURE__ */ jsx21(TooltipTrigger7, { children: /* @__PURE__ */ jsx21(
6750
+ return /* @__PURE__ */ jsxs18(Tooltip9, { children: [
6751
+ /* @__PURE__ */ jsx21(TooltipTrigger8, { children: /* @__PURE__ */ jsx21(
6734
6752
  Badge5,
6735
6753
  __spreadProps(__spreadValues({
6736
6754
  variant
@@ -6739,12 +6757,12 @@ function GraphNode(_a) {
6739
6757
  children: badge.children
6740
6758
  })
6741
6759
  ) }),
6742
- tooltipContent && /* @__PURE__ */ jsx21(TooltipContent7, { children: tooltipContent })
6760
+ tooltipContent && /* @__PURE__ */ jsx21(TooltipContent8, { children: tooltipContent })
6743
6761
  ] }, index);
6744
6762
  }) }),
6745
6763
  state === "progressing" && /* @__PURE__ */ jsx21("div", { className: "flex shrink-0 flex-row items-center gap-1.5 overflow-hidden", children: /* @__PURE__ */ jsx21("div", { className: "flex size-[20px]! items-center justify-center", children: /* @__PURE__ */ jsx21(Spinner, { size: "sm" }) }) })
6746
6764
  ] }),
6747
- /* @__PURE__ */ jsxs17("div", { className: "mr-auto grow-0 overflow-hidden", children: [
6765
+ /* @__PURE__ */ jsxs18("div", { className: "mr-auto grow-0 overflow-hidden", children: [
6748
6766
  /* @__PURE__ */ jsx21("h5", { className: "text-body-sm/tight truncate font-bold", children: data.title }),
6749
6767
  /* @__PURE__ */ jsx21("p", { className: "text-body-sm truncate leading-none", children: data.subtitle }),
6750
6768
  !compact && /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-muted-foreground mt-1 truncate", children: data.name })
@@ -6761,18 +6779,18 @@ function GraphNode(_a) {
6761
6779
  }
6762
6780
  )
6763
6781
  ] }),
6764
- !compact && /* @__PURE__ */ jsx21(Fragment10, { children: (defaultBadges.length > 0 || state === "progressing") && /* @__PURE__ */ jsxs17("div", { className: "mt-auto flex h-8 items-center border-t px-2.5", children: [
6782
+ !compact && /* @__PURE__ */ jsx21(Fragment10, { children: (defaultBadges.length > 0 || state === "progressing") && /* @__PURE__ */ jsxs18("div", { className: "mt-auto flex h-8 items-center border-t px-2.5", children: [
6765
6783
  /* @__PURE__ */ jsx21("div", { className: "flex gap-1.5 overflow-hidden overflow-x-auto", children: defaultBadges.map((_e, index) => {
6766
6784
  var _f = _e, { tooltipContent, variant } = _f, badge = __objRest(_f, ["tooltipContent", "variant"]);
6767
- return /* @__PURE__ */ jsxs17(Tooltip8, { children: [
6768
- /* @__PURE__ */ jsx21(TooltipTrigger7, { children: /* @__PURE__ */ jsx21(Badge5, __spreadProps(__spreadValues({ variant }, badge), { className: "cursor-default! py-px! whitespace-nowrap", children: badge.children })) }),
6769
- tooltipContent && /* @__PURE__ */ jsx21(TooltipContent7, { children: tooltipContent })
6785
+ return /* @__PURE__ */ jsxs18(Tooltip9, { children: [
6786
+ /* @__PURE__ */ jsx21(TooltipTrigger8, { children: /* @__PURE__ */ jsx21(Badge5, __spreadProps(__spreadValues({ variant }, badge), { className: "cursor-default! py-px! whitespace-nowrap", children: badge.children })) }),
6787
+ tooltipContent && /* @__PURE__ */ jsx21(TooltipContent8, { children: tooltipContent })
6770
6788
  ] }, index);
6771
6789
  }) }),
6772
6790
  state === "progressing" && /* @__PURE__ */ jsx21("div", { className: "ml-auto flex size-[20px]! items-center justify-center", children: /* @__PURE__ */ jsx21(Spinner, { size: "sm" }) })
6773
6791
  ] }) })
6774
6792
  ] }),
6775
- !!hasOutgoingEdge && /* @__PURE__ */ jsxs17(
6793
+ !!hasOutgoingEdge && /* @__PURE__ */ jsxs18(
6776
6794
  "div",
6777
6795
  {
6778
6796
  className: "absolute top-0 right-0 h-full w-auto translate-x-full",
@@ -6795,8 +6813,8 @@ function GraphNode(_a) {
6795
6813
  stopOpacity: 0
6796
6814
  }
6797
6815
  ) }),
6798
- /* @__PURE__ */ jsxs17(Tooltip8, { children: [
6799
- /* @__PURE__ */ jsx21(TooltipTrigger7, { asChild: true, children: /* @__PURE__ */ jsx21(
6816
+ /* @__PURE__ */ jsxs18(Tooltip9, { children: [
6817
+ /* @__PURE__ */ jsx21(TooltipTrigger8, { asChild: true, children: /* @__PURE__ */ jsx21(
6800
6818
  "button",
6801
6819
  {
6802
6820
  type: "button",
@@ -6810,7 +6828,7 @@ function GraphNode(_a) {
6810
6828
  children: /* @__PURE__ */ jsx21(Icon13, { name: data.expanded ? "minus" : "plus", size: "xs" })
6811
6829
  }
6812
6830
  ) }),
6813
- /* @__PURE__ */ jsx21(TooltipContent7, { children: data.expanded ? "Collapse" : "Expand" })
6831
+ /* @__PURE__ */ jsx21(TooltipContent8, { children: data.expanded ? "Collapse" : "Expand" })
6814
6832
  ] })
6815
6833
  ]
6816
6834
  }
@@ -6833,7 +6851,7 @@ function GraphNode(_a) {
6833
6851
  }
6834
6852
  function GraphNodeSkeleton(_props) {
6835
6853
  const compact = false;
6836
- return /* @__PURE__ */ jsxs17(
6854
+ return /* @__PURE__ */ jsxs18(
6837
6855
  Card2,
6838
6856
  {
6839
6857
  className: cn(
@@ -6853,15 +6871,15 @@ function GraphNodeSkeleton(_props) {
6853
6871
  isConnectable: false
6854
6872
  }
6855
6873
  ),
6856
- /* @__PURE__ */ jsxs17("div", { className: cn("flex w-full gap-1 px-2.5", compact && "flex-row-reverse"), children: [
6857
- /* @__PURE__ */ jsxs17("div", { className: cn("grow-0 overflow-hidden", compact && "mr-auto"), children: [
6874
+ /* @__PURE__ */ jsxs18("div", { className: cn("flex w-full gap-1 px-2.5", compact && "flex-row-reverse"), children: [
6875
+ /* @__PURE__ */ jsxs18("div", { className: cn("grow-0 overflow-hidden", compact && "mr-auto"), children: [
6858
6876
  /* @__PURE__ */ jsx21("div", { className: "bg-muted mb-1 h-3 w-16 animate-pulse rounded-sm" }),
6859
6877
  /* @__PURE__ */ jsx21("div", { className: "bg-muted h-3 w-40 animate-pulse rounded-sm" }),
6860
6878
  !compact && /* @__PURE__ */ jsx21("div", { className: "bg-muted mt-2 h-3 w-48 animate-pulse rounded-sm" })
6861
6879
  ] }),
6862
6880
  /* @__PURE__ */ jsx21("div", { className: cn("bg-muted size-[26px] shrink-0 animate-pulse rounded-md", !compact && "ml-auto") })
6863
6881
  ] }),
6864
- !compact && /* @__PURE__ */ jsx21("div", { className: "mt-auto flex h-8 items-center border-t px-2.5", children: /* @__PURE__ */ jsxs17("div", { className: "flex gap-1.5 overflow-hidden overflow-x-auto", children: [
6882
+ !compact && /* @__PURE__ */ jsx21("div", { className: "mt-auto flex h-8 items-center border-t px-2.5", children: /* @__PURE__ */ jsxs18("div", { className: "flex gap-1.5 overflow-hidden overflow-x-auto", children: [
6865
6883
  /* @__PURE__ */ jsx21("div", { className: "bg-muted h-4 w-12 animate-pulse rounded-sm" }),
6866
6884
  /* @__PURE__ */ jsx21("div", { className: "bg-muted h-4 w-12 animate-pulse rounded-sm" })
6867
6885
  ] }) }),
@@ -7207,7 +7225,7 @@ function useViewportFocus(nodeMap, viewportFocusNodeId) {
7207
7225
  }
7208
7226
 
7209
7227
  // src/graph/graph-view.tsx
7210
- import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
7228
+ import { jsx as jsx23, jsxs as jsxs19 } from "react/jsx-runtime";
7211
7229
  var GraphViewInternal = ({ nodeTypes: parentNodeTypes, edgeTypes: parentEdgeTypes, children, viewportFocusNodeId }) => {
7212
7230
  const { nodes, edges, toggleNodeExpansion } = useGraphActionsContext();
7213
7231
  const nodeTypes = React17.useMemo(
@@ -7244,7 +7262,7 @@ var GraphViewInternal = ({ nodeTypes: parentNodeTypes, edgeTypes: parentEdgeType
7244
7262
  viewportFocusNodeId
7245
7263
  });
7246
7264
  useViewportFocus(nodeMap, viewportFocusNodeId);
7247
- return /* @__PURE__ */ jsxs18(
7265
+ return /* @__PURE__ */ jsxs19(
7248
7266
  ReactFlow,
7249
7267
  {
7250
7268
  nodeTypes,
@@ -7277,7 +7295,7 @@ var GraphView = React17.forwardRef(({ defaultNodes = [], defaultEdges = [], node
7277
7295
  GraphView.displayName = "GraphView";
7278
7296
 
7279
7297
  // src/graph/graph.tsx
7280
- import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
7298
+ import { jsx as jsx24, jsxs as jsxs20 } from "react/jsx-runtime";
7281
7299
  var defaultGraphErrorConfig = {
7282
7300
  icon: "triangle-exclamation",
7283
7301
  header: "An error occurred",
@@ -7323,10 +7341,11 @@ function Graph({
7323
7341
  const setGlobalFilter = parentSetGlobalFilter != null ? parentSetGlobalFilter : setInnerGlobalFilter;
7324
7342
  const columnFilters = parentColumnFilters != null ? parentColumnFilters : innerColumnFilters;
7325
7343
  const setColumnFilters = parentSetColumnFilters != null ? parentSetColumnFilters : setInnerColumnFilters;
7344
+ const columns = React18.useMemo(() => withDefaultFilterFns(columnDefinitions), [columnDefinitions]);
7326
7345
  const table = useTable2({
7327
7346
  features: dataTableFeatures,
7328
7347
  data: config.data,
7329
- columns: columnDefinitions,
7348
+ columns,
7330
7349
  state: { columnFilters, globalFilter },
7331
7350
  onColumnFiltersChange: setColumnFilters,
7332
7351
  onGlobalFilterChange: setGlobalFilter,
@@ -7371,9 +7390,9 @@ function Graph({
7371
7390
  empty: (_b = emptyView == null ? void 0 : emptyView.empty) != null ? _b : defaultGraphEmptyConfig,
7372
7391
  filter: (_c = emptyView == null ? void 0 : emptyView.filter) != null ? _c : defaultGraphNoFilterFoundConfig
7373
7392
  };
7374
- return /* @__PURE__ */ jsxs19("div", { id: `graph-${id}`, className: cn("flex size-full flex-1 flex-col", className), children: [
7393
+ return /* @__PURE__ */ jsxs20("div", { id: `graph-${id}`, className: cn("flex size-full flex-1 flex-col", className), children: [
7375
7394
  !!title && /* @__PURE__ */ jsx24(SectionHeader, { className: "mb-4", children: /* @__PURE__ */ jsx24(SectionHeaderContent, { children: /* @__PURE__ */ jsx24(SectionHeaderTitle, { children: title }) }) }),
7376
- showToolbar && /* @__PURE__ */ jsxs19("div", { className: "mb-4 flex flex-row gap-2", children: [
7395
+ showToolbar && /* @__PURE__ */ jsxs20("div", { className: "mb-4 flex flex-row gap-2", children: [
7377
7396
  !disableSearch && /* @__PURE__ */ jsx24(DataTableSearch, { value: globalFilter, onValueChange: setGlobalFilter, disabled: shouldDisable }),
7378
7397
  !!Actions && /* @__PURE__ */ jsx24("div", { className: "ml-auto flex items-center gap-2", children: /* @__PURE__ */ jsx24(Actions, { state: graphState }) })
7379
7398
  ] }),
@@ -7386,7 +7405,7 @@ function Graph({
7386
7405
  className: "mb-4"
7387
7406
  }
7388
7407
  ),
7389
- shouldRenderGraphContent ? /* @__PURE__ */ jsxs19("div", { className: "relative size-full flex-1", children: [
7408
+ shouldRenderGraphContent ? /* @__PURE__ */ jsxs20("div", { className: "relative size-full flex-1", children: [
7390
7409
  graphState === "loading" && /* @__PURE__ */ jsx24(Icon14, { name: "circle-notch", className: "absolute top-4 left-4 z-10 animate-spin" }),
7391
7410
  /* @__PURE__ */ jsx24(
7392
7411
  GraphView,
@@ -7522,15 +7541,15 @@ function PageHeaderTabs(_a) {
7522
7541
  // src/timeline.tsx
7523
7542
  import { Icon as Icon15 } from "@upbound/monarch-core";
7524
7543
  import { Item as Item2, ItemGroup as ItemGroup2 } from "@upbound/monarch-core";
7525
- import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
7544
+ import { jsx as jsx26, jsxs as jsxs21 } from "react/jsx-runtime";
7526
7545
  function Timeline(_a) {
7527
7546
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7528
7547
  return /* @__PURE__ */ jsx26(ItemGroup2, __spreadValues({ "data-slot": "timeline", className: cn(className) }, props));
7529
7548
  }
7530
7549
  function TimelineItem(_a) {
7531
7550
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7532
- return /* @__PURE__ */ jsxs20(Item2, __spreadProps(__spreadValues({ "data-slot": "timeline-item", className: cn("group/timeline-item gap-3 py-4", className) }, props), { children: [
7533
- /* @__PURE__ */ jsxs20("div", { className: "relative flex flex-col items-center self-stretch", children: [
7551
+ return /* @__PURE__ */ jsxs21(Item2, __spreadProps(__spreadValues({ "data-slot": "timeline-item", className: cn("group/timeline-item gap-3 py-4", className) }, props), { children: [
7552
+ /* @__PURE__ */ jsxs21("div", { className: "relative flex flex-col items-center self-stretch", children: [
7534
7553
  /* @__PURE__ */ jsx26(Icon15, { name: "circle-dot", size: "sm", className: "text-primary shrink-0" }),
7535
7554
  /* @__PURE__ */ jsx26(
7536
7555
  "span",