@cjlapao/ui-kit 0.2.11 → 0.2.13

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
@@ -22464,6 +22464,10 @@ var PageHeader = ({
22464
22464
  children,
22465
22465
  variant = "default",
22466
22466
  accentColor = "blue",
22467
+ tone = "neutral",
22468
+ glassOpacity,
22469
+ vibrancy,
22470
+ specularMode,
22467
22471
  padding,
22468
22472
  paddingTop,
22469
22473
  paddingRight,
@@ -22473,7 +22477,8 @@ var PageHeader = ({
22473
22477
  className = "",
22474
22478
  ...rest
22475
22479
  }) => {
22476
- const surface = variant === "default" ? null : getSidebarSurfaceTokens(variant, accentColor);
22480
+ const sharedSurface = variant !== "default" && variant !== "floating" && variant !== "floating-glass";
22481
+ const surface = variant === "floating" || variant === "floating-glass" ? getSidebarSurfaceTokens(variant, accentColor) : null;
22477
22482
  const pair = surface ? "xs" : "none";
22478
22483
  const gutter = {
22479
22484
  top: paddingTop ?? padding ?? pair,
@@ -22486,7 +22491,7 @@ var PageHeader = ({
22486
22491
  {
22487
22492
  ...rest,
22488
22493
  className: classNames53(
22489
- "flex w-full items-center justify-between gap-4 px-5",
22494
+ "relative isolate flex w-full shrink-0 items-center justify-between gap-4 px-5",
22490
22495
  SIDE_MENU_HEADER_HEIGHT,
22491
22496
  getSurfaceGutterClass("top", gutter.top),
22492
22497
  getSurfaceGutterClass("right", gutter.right),
@@ -22498,10 +22503,24 @@ var PageHeader = ({
22498
22503
  surface.border,
22499
22504
  surface.shadow,
22500
22505
  surface.fill
22501
- ) : classNames53("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
22506
+ ) : !sharedSurface && classNames53("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
22502
22507
  className
22503
22508
  ),
22504
22509
  children: [
22510
+ sharedSurface && /* @__PURE__ */ jsx203("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 -z-10", style: { borderRadius: "inherit" }, children: /* @__PURE__ */ jsx203(
22511
+ Panel_default,
22512
+ {
22513
+ variant,
22514
+ tone,
22515
+ glassOpacity,
22516
+ vibrancy,
22517
+ specularMode,
22518
+ padding: "none",
22519
+ corner: "none",
22520
+ className: "h-full w-full",
22521
+ style: { borderRadius: "inherit" }
22522
+ }
22523
+ ) }),
22505
22524
  /* @__PURE__ */ jsx203("div", { className: GROUP_CLASS2, children: start }),
22506
22525
  /* @__PURE__ */ jsx203("div", { className: GROUP_CLASS2, children: center }),
22507
22526
  /* @__PURE__ */ jsx203("div", { className: GROUP_CLASS2, children: end }),
@@ -43285,7 +43304,10 @@ var SideMenu = ({
43285
43304
  logoIcon,
43286
43305
  logoText,
43287
43306
  items,
43307
+ activeItemSlug,
43308
+ onItemSelect,
43288
43309
  className = "",
43310
+ joinedRole,
43289
43311
  collapsed = false,
43290
43312
  onToggleCollapse,
43291
43313
  mobileOpen = false,
@@ -43327,7 +43349,7 @@ var SideMenu = ({
43327
43349
  const [internalSearch, setInternalSearch] = useState52("");
43328
43350
  const [hoverOpen, setHoverOpen] = useState52(false);
43329
43351
  const collapseMode = collapsible === true ? "icon" : collapsible === false ? "none" : collapsible;
43330
- const hoverRail = openOnHover && collapseMode !== "none";
43352
+ const hoverRail = !joinedRole && openOnHover && collapseMode !== "none";
43331
43353
  const hoverTimer = useRef51(null);
43332
43354
  useEffect53(() => {
43333
43355
  return () => {
@@ -43356,11 +43378,21 @@ var SideMenu = ({
43356
43378
  setInternalCollapsed((value) => !value);
43357
43379
  }
43358
43380
  };
43359
- const effectiveMode = hoverRail ? "icon" : collapseMode;
43360
- const expanded = isMobile ? true : hoverRail ? false : effectiveMode === "none" ? true : !collapsedState;
43361
- const showCollapseControl = !isMobile && !hoverRail && effectiveMode !== "none";
43362
- const showOffcanvasHandle = !isMobile && effectiveMode === "offcanvas" && !expanded;
43363
- const surface = getSidebarSurfaceTokens(variant, color);
43381
+ const effectiveMode = joinedRole === "rail" ? "icon" : joinedRole === "panel" ? "none" : hoverRail ? "icon" : collapseMode;
43382
+ const expanded = isMobile ? true : joinedRole ? joinedRole === "panel" : hoverRail ? false : effectiveMode === "none" ? true : !collapsedState;
43383
+ const showCollapseControl = !isMobile && !joinedRole && !hoverRail && effectiveMode !== "none";
43384
+ const showOffcanvasHandle = !isMobile && !joinedRole && effectiveMode === "offcanvas" && !expanded;
43385
+ const baseSurface = getSidebarSurfaceTokens(variant, color);
43386
+ const surface = joinedRole && !isMobile ? {
43387
+ ...baseSurface,
43388
+ fill: joinedRole === "rail" ? "bg-neutral-100 dark:bg-neutral-950" : "bg-transparent",
43389
+ offset: joinedRole === "panel" ? "my-2" : "",
43390
+ radius: joinedRole === "panel" ? "rounded-l-2xl" : "",
43391
+ border: "",
43392
+ borderSides: "all",
43393
+ shadow: "",
43394
+ shadowRight: ""
43395
+ } : baseSurface;
43364
43396
  const idle = SIDEBAR_IDLE_COPY[surface.idleCopy];
43365
43397
  const toneTokens3 = getSideMenuItemTokens(color);
43366
43398
  const showSkeleton = loading && loaderType === "skeleton";
@@ -43417,8 +43449,9 @@ var SideMenu = ({
43417
43449
  if (path === "/") return location.pathname === "/";
43418
43450
  return location.pathname === path || location.pathname.startsWith(`${path}/`);
43419
43451
  };
43452
+ const isActiveItem = (link) => activeItemSlug !== void 0 ? link.slug === activeItemSlug : isActivePath(link.path);
43420
43453
  const hasActiveDescendant = (link) => !!link.children?.some(
43421
- (child) => isActivePath(child.path) || hasActiveDescendant(child)
43454
+ (child) => isActiveItem(child) || hasActiveDescendant(child)
43422
43455
  );
43423
43456
  const [openSubmenus, setOpenSubmenus] = useState52(() => {
43424
43457
  const initial = /* @__PURE__ */ new Set();
@@ -43510,14 +43543,14 @@ var SideMenu = ({
43510
43543
  const panelPosition = isLeft ? "left-0" : "right-0";
43511
43544
  const offcanvasHidden = effectiveMode === "offcanvas" && !expanded;
43512
43545
  const desktopClasses = `
43513
- relative flex-shrink-0 ${heightClass} ${isHoverMode ? RAIL_WIDTH : ""} ${surface.offset}
43546
+ relative ${joinedRole === "panel" ? "min-w-0 flex-1" : "flex-shrink-0"} ${heightClass} ${isHoverMode ? RAIL_WIDTH : ""} ${surface.offset}
43514
43547
  `;
43515
43548
  const asideClasses = isHoverMode ? `
43516
43549
  absolute inset-y-0 ${panelPosition} z-40 overflow-hidden transition-[width] ease-in-out ${asideWidth}
43517
43550
  ${surface.radius} ${borderClasses} ${isLeft ? surface.shadow : surface.shadowRight}
43518
43551
  ${className}
43519
43552
  ` : `
43520
- relative h-full overflow-hidden transition-all duration-300 ${asideWidth}
43553
+ relative h-full overflow-hidden transition-all duration-300 ${joinedRole === "panel" ? "w-full" : asideWidth}
43521
43554
  ${surface.radius} ${borderClasses} ${isLeft ? surface.shadow : surface.shadowRight}
43522
43555
  ${className}
43523
43556
  `;
@@ -43532,7 +43565,7 @@ var SideMenu = ({
43532
43565
  const logoSection = logoIcon || logoText ? (contentCollapsed2) => /* @__PURE__ */ jsxs146(
43533
43566
  "div",
43534
43567
  {
43535
- className: `relative z-50 flex items-center border-b px-4 py-4 ${SIDE_MENU_HEADER_HEIGHT} ${variant === "glass" || variant === "floating-glass" ? "bg-white/20 border-white/30 dark:bg-white/5 dark:border-white/10" : `${SIDE_MENU_HEADER_FILL} ${SIDE_MENU_HEADER_SEAM}`} ${contentCollapsed2 ? "justify-center" : ""}`,
43568
+ className: `relative z-50 flex items-center px-4 py-4 ${SIDE_MENU_HEADER_HEIGHT} ${joinedRole && !isMobile ? "" : variant === "glass" || variant === "floating-glass" ? "border-b bg-white/20 border-white/30 dark:bg-white/5 dark:border-white/10" : `border-b ${SIDE_MENU_HEADER_FILL} ${SIDE_MENU_HEADER_SEAM}`} ${contentCollapsed2 ? "justify-center" : ""}`,
43536
43569
  children: [
43537
43570
  logoIcon && /* @__PURE__ */ jsx259("div", { className: "shrink-0", children: logoIcon }),
43538
43571
  logoText && /* @__PURE__ */ jsx259(
@@ -43547,7 +43580,7 @@ var SideMenu = ({
43547
43580
  ) : null;
43548
43581
  const renderLinkRow = (link, depth, key, contentCollapsed2) => {
43549
43582
  const hasChildren = !!link.children?.length;
43550
- const selfActive = isActivePath(link.path);
43583
+ const selfActive = isActiveItem(link);
43551
43584
  const childActive = hasChildren ? hasActiveDescendant(link) : false;
43552
43585
  const visibleChildren = searchActive ? (link.children ?? []).filter(matchesSubtree) : link.children ?? [];
43553
43586
  const showChildren = hasChildren && (searchActive || openSubmenus.has(link.slug)) && visibleChildren.length > 0;
@@ -43556,7 +43589,7 @@ var SideMenu = ({
43556
43589
  let revealLimit = paged ? childReveal[link.slug] ?? pageSize : visibleChildren.length;
43557
43590
  if (paged) {
43558
43591
  const activeIndex = visibleChildren.findIndex(
43559
- (child) => isActivePath(child.path) || hasActiveDescendant(child)
43592
+ (child) => isActiveItem(child) || hasActiveDescendant(child)
43560
43593
  );
43561
43594
  if (activeIndex >= revealLimit) revealLimit = activeIndex + 1;
43562
43595
  }
@@ -43580,7 +43613,8 @@ var SideMenu = ({
43580
43613
  Link2,
43581
43614
  {
43582
43615
  to: link.path,
43583
- onClick: () => {
43616
+ onClick: (event) => {
43617
+ onItemSelect?.(link, event);
43584
43618
  if (mobileOpen) onCloseMobile?.();
43585
43619
  if (hoverOpen) closeHover();
43586
43620
  },
@@ -43921,6 +43955,7 @@ var SideMenu = ({
43921
43955
  "div",
43922
43956
  {
43923
43957
  className: desktopClasses,
43958
+ "data-joined-role": joinedRole,
43924
43959
  onKeyDown: (event) => {
43925
43960
  if (event.key === "Escape" && hoverOpen) closeHover();
43926
43961
  },
@@ -44032,11 +44067,12 @@ var SideMenuActionsProvider = ({ initialSideItemActions, initialSidePanelActions
44032
44067
  var useSideMenuActions = () => useContext7(SideMenuActionsContext);
44033
44068
 
44034
44069
  // src/components/SideMenuLayout.tsx
44035
- import { jsx as jsx261, jsxs as jsxs147 } from "react/jsx-runtime";
44070
+ import { Fragment as Fragment34, jsx as jsx261, jsxs as jsxs147 } from "react/jsx-runtime";
44036
44071
  var SideMenuLayout = ({
44037
44072
  sideMenuProps,
44038
44073
  rightSideMenuProps,
44039
44074
  secondarySideMenuProps,
44075
+ multiMenuMode = "hover",
44040
44076
  header,
44041
44077
  children,
44042
44078
  className,
@@ -44045,8 +44081,10 @@ var SideMenuLayout = ({
44045
44081
  sideItemActions,
44046
44082
  sidePanelActions
44047
44083
  }) => {
44084
+ const t = useKitT();
44048
44085
  const isMobile = useSidebarIsMobile(sideMenuProps.responsive ?? true);
44049
44086
  const isMulti = !!secondarySideMenuProps;
44087
+ const isJoined = isMulti && multiMenuMode === "joined";
44050
44088
  const [collapsed, setCollapsed] = useState54(sideMenuProps.collapsed ?? false);
44051
44089
  const [rightCollapsed, setRightCollapsed] = useState54(
44052
44090
  rightSideMenuProps?.collapsed ?? false
@@ -44106,7 +44144,7 @@ var SideMenuLayout = ({
44106
44144
  // expanding as an overlay on hover. `openOnHover` owns that state, so the
44107
44145
  // collapse wiring is not passed through — and since collapsing is opt-in
44108
44146
  // on SideMenu, the layout opts the rail in itself.
44109
- ...isMulti ? { collapsible: "icon", openOnHover: true } : {
44147
+ ...isJoined ? { joinedRole: "rail", responsive: false, mobileOpen: false } : isMulti ? { collapsible: "icon", openOnHover: true } : {
44110
44148
  collapsed: isCollapsed,
44111
44149
  onToggleCollapse: handleToggleCollapse
44112
44150
  }
@@ -44125,8 +44163,27 @@ var SideMenuLayout = ({
44125
44163
  side: "left",
44126
44164
  collapsed: isSecondaryCollapsed,
44127
44165
  onToggleCollapse: handleSecondaryToggleCollapse,
44128
- fullHeight: true
44166
+ fullHeight: true,
44167
+ ...isJoined ? {
44168
+ joinedRole: "panel",
44169
+ responsive: false,
44170
+ mobileOpen: isMobileOpen,
44171
+ onCloseMobile: handleCloseMobile,
44172
+ // Surface family comes from the primary; content/accent remain independent.
44173
+ variant: sideMenuProps.variant
44174
+ } : {}
44129
44175
  };
44176
+ const joinedSurface = isJoined && /* @__PURE__ */ jsx261(
44177
+ "div",
44178
+ {
44179
+ "aria-hidden": "true",
44180
+ "data-joined-surface": true,
44181
+ className: classNames79(
44182
+ "pointer-events-none absolute inset-y-2 left-[68px] right-0 rounded-l-2xl",
44183
+ getSidebarSurfaceTokens(sideMenuProps.variant ?? "sidebar", sideMenuProps.color ?? "blue").fill
44184
+ )
44185
+ }
44186
+ );
44130
44187
  return /* @__PURE__ */ jsx261(
44131
44188
  SideMenuActionsProvider,
44132
44189
  {
@@ -44136,13 +44193,56 @@ var SideMenuLayout = ({
44136
44193
  "div",
44137
44194
  {
44138
44195
  className: classNames79(
44139
- "flex h-full w-full overflow-hidden bg-neutral-50 dark:bg-neutral-950",
44196
+ "relative flex h-full w-full overflow-hidden",
44197
+ isJoined ? "bg-neutral-100 dark:bg-neutral-950" : "bg-neutral-50 dark:bg-neutral-950",
44140
44198
  className
44141
44199
  ),
44142
44200
  children: [
44143
- /* @__PURE__ */ jsx261(SideMenu_default, { ...primaryProps }),
44144
- secondarySideMenuProps && /* @__PURE__ */ jsx261(SideMenu_default, { ...secondaryProps }),
44145
- /* @__PURE__ */ jsxs147("div", { className: "flex flex-1 flex-col min-w-0 h-full", children: [
44201
+ isJoined && !isMobile && joinedSurface,
44202
+ isJoined ? /* @__PURE__ */ jsxs147(Fragment34, { children: [
44203
+ isMobile && isMobileOpen && // Pointer backdrop; the close button and Escape provide keyboard dismissal.
44204
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
44205
+ /* @__PURE__ */ jsx261("div", { className: "fixed inset-0 z-50 bg-black/20 backdrop-blur-sm", onClick: handleCloseMobile }),
44206
+ /* @__PURE__ */ jsxs147(
44207
+ "div",
44208
+ {
44209
+ "data-joined-menu": true,
44210
+ inert: isMobile && !isMobileOpen || void 0,
44211
+ onKeyDown: (event) => {
44212
+ if (isMobile && event.key === "Escape") handleCloseMobile();
44213
+ },
44214
+ className: classNames79(
44215
+ "flex w-[324px] max-w-[calc(100vw-1rem)] shrink-0",
44216
+ isMobile ? "fixed inset-y-0 left-0 z-[60] flex-col bg-neutral-100 transition-transform duration-300 dark:bg-neutral-950" : "h-full",
44217
+ isMobile && !isMobileOpen && "-translate-x-full"
44218
+ ),
44219
+ children: [
44220
+ isMobile && /* @__PURE__ */ jsx261("div", { className: "flex shrink-0 justify-end px-3 pt-2", children: /* @__PURE__ */ jsx261(
44221
+ "button",
44222
+ {
44223
+ type: "button",
44224
+ onClick: handleCloseMobile,
44225
+ "aria-label": t("kit.sidemenu.closeAria"),
44226
+ className: "rounded-lg p-2 text-neutral-600 hover:bg-neutral-200 dark:text-neutral-300 dark:hover:bg-neutral-800",
44227
+ children: /* @__PURE__ */ jsx261(CustomIcon_default, { icon: "Close", className: "h-5 w-5" })
44228
+ }
44229
+ ) }),
44230
+ /* @__PURE__ */ jsxs147("div", { className: "relative flex h-full min-h-0 min-w-0 flex-1", children: [
44231
+ isMobile && joinedSurface,
44232
+ /* @__PURE__ */ jsx261(SideMenu_default, { ...primaryProps }),
44233
+ /* @__PURE__ */ jsx261(SideMenu_default, { ...secondaryProps })
44234
+ ] })
44235
+ ]
44236
+ }
44237
+ )
44238
+ ] }) : /* @__PURE__ */ jsxs147(Fragment34, { children: [
44239
+ /* @__PURE__ */ jsx261(SideMenu_default, { ...primaryProps }),
44240
+ secondarySideMenuProps && /* @__PURE__ */ jsx261(SideMenu_default, { ...secondaryProps })
44241
+ ] }),
44242
+ /* @__PURE__ */ jsxs147("div", { className: classNames79(
44243
+ "relative flex min-w-0 flex-1 flex-col",
44244
+ isJoined && !isMobile ? "my-2 h-[calc(100%-1rem)]" : "h-full"
44245
+ ), children: [
44146
44246
  isMobile && /* @__PURE__ */ jsxs147("div", { className: "flex items-center gap-1 border-b border-neutral-200 bg-white px-4 py-2 dark:border-neutral-800 dark:bg-neutral-900", children: [
44147
44247
  /* @__PURE__ */ jsx261(
44148
44248
  "button",
@@ -44177,10 +44277,10 @@ var SideMenuLayout_default = SideMenuLayout;
44177
44277
 
44178
44278
  // src/components/SmartGridTileBoundary.tsx
44179
44279
  import React63 from "react";
44180
- import { Fragment as Fragment34, jsx as jsx262 } from "react/jsx-runtime";
44280
+ import { Fragment as Fragment35, jsx as jsx262 } from "react/jsx-runtime";
44181
44281
  var TileContent = ({
44182
44282
  render
44183
- }) => /* @__PURE__ */ jsx262(Fragment34, { children: render() });
44283
+ }) => /* @__PURE__ */ jsx262(Fragment35, { children: render() });
44184
44284
  var SmartGridTileBoundaryImpl = class extends React63.Component {
44185
44285
  constructor() {
44186
44286
  super(...arguments);
@@ -44243,10 +44343,15 @@ function getNoiseBlendClasses(scheme = "auto") {
44243
44343
  }
44244
44344
 
44245
44345
  // src/components/SidePanel.tsx
44246
- import { Fragment as Fragment35, jsx as jsx263, jsxs as jsxs148 } from "react/jsx-runtime";
44247
- var getSidePanelTextTokens = (variant) => getSurfaceTextTokens(
44248
- variant === "glass" || variant === "floating-glass" ? "glass" : "elevated"
44249
- );
44346
+ import { Fragment as Fragment36, jsx as jsx263, jsxs as jsxs148 } from "react/jsx-runtime";
44347
+ var LEGACY_PANEL_VARIANTS = {
44348
+ sidebar: "elevated",
44349
+ inset: "tonal",
44350
+ floating: "elevated",
44351
+ "floating-glass": "glass"
44352
+ };
44353
+ var resolvePanelVariant2 = (variant) => variant in LEGACY_PANEL_VARIANTS ? LEGACY_PANEL_VARIANTS[variant] : variant;
44354
+ var getSidePanelTextTokens = (variant) => getSurfaceTextTokens(resolvePanelVariant2(variant));
44250
44355
  var INSET_GAP_Y_CLASS = "inset-y-4";
44251
44356
  var INNER_CORNER = {
44252
44357
  // (`"auto"` is absent by design: SidePanel's own default is `rounded`, and
@@ -44295,6 +44400,7 @@ var SIZE_TOKENS4 = {
44295
44400
  };
44296
44401
  var SidePanel = ({
44297
44402
  isOpen,
44403
+ docked = false,
44298
44404
  onClose,
44299
44405
  title,
44300
44406
  subtitle,
@@ -44310,7 +44416,10 @@ var SidePanel = ({
44310
44416
  maxWidth = 900,
44311
44417
  tone,
44312
44418
  color,
44313
- variant = "sidebar",
44419
+ variant = "outlined",
44420
+ glassOpacity,
44421
+ vibrancy,
44422
+ specularMode,
44314
44423
  surfaceTone = "neutral",
44315
44424
  size = "md",
44316
44425
  side = "right",
@@ -44329,7 +44438,16 @@ var SidePanel = ({
44329
44438
  warnIfMissingTitle("SidePanel", title);
44330
44439
  const effectiveTone = tone ?? color ?? "neutral";
44331
44440
  const sizeToken = SIZE_TOKENS4[size] ?? SIZE_TOKENS4.md;
44332
- const surface = getSidebarSurfaceTokens(variant, surfaceTone);
44441
+ const legacyVariant = variant in LEGACY_PANEL_VARIANTS;
44442
+ const panelVariant = resolvePanelVariant2(variant);
44443
+ const panelOuterChrome = classNames80(
44444
+ variantBaseStyles[panelVariant].split(" ").filter((token) => /^(dark:)?(shadow|ring)-/.test(token)),
44445
+ panelVariant === "liquid-glass" && getPanelToneStyles(surfaceTone).liquidShadow
44446
+ );
44447
+ const surface = getSidebarSurfaceTokens(
44448
+ legacyVariant ? variant : "sidebar",
44449
+ surfaceTone
44450
+ );
44333
44451
  const surfaceText = getSidePanelTextTokens(variant);
44334
44452
  const isInset = inset ?? surface.offset !== "";
44335
44453
  const cornerClass = INNER_CORNER[corner === "auto" ? DEFAULT_SURFACE_CORNER : corner][side];
@@ -44443,7 +44561,7 @@ var SidePanel = ({
44443
44561
  },
44444
44562
  [resizable, side, currentWidth, minWidth, maxWidth]
44445
44563
  );
44446
- if (!mounted) return null;
44564
+ if (!mounted || docked && !isOpen) return null;
44447
44565
  const edgeOffset = entered ? shellWidth : 0;
44448
44566
  const barTone = isDragging ? `opacity-100 bg-${effectiveTone}-500` : `bg-${effectiveTone}-400 opacity-0 group-hover:opacity-70 group-active:opacity-100`;
44449
44567
  const edgeProperty = side === "right" ? "right" : "left";
@@ -44452,7 +44570,7 @@ var SidePanel = ({
44452
44570
  transition: isDragging ? void 0 : `${edgeProperty} ${OPEN_DURATION_MS}ms ${OPEN_EASING}, opacity ${OPEN_DURATION_MS}ms ${OPEN_EASING}`
44453
44571
  };
44454
44572
  const handleParked = isCollapsed;
44455
- return /* @__PURE__ */ jsxs148(Fragment35, { children: [
44573
+ return /* @__PURE__ */ jsxs148(Fragment36, { children: [
44456
44574
  /* @__PURE__ */ jsxs148(
44457
44575
  "div",
44458
44576
  {
@@ -44460,15 +44578,15 @@ var SidePanel = ({
44460
44578
  "data-sp-shell": true,
44461
44579
  "data-collapsed": collapsible ? isCollapsed : void 0,
44462
44580
  className: classNames80(
44463
- "absolute z-40 overflow-hidden",
44464
- isInset ? INSET_GAP_Y_CLASS : "top-0 h-full",
44581
+ docked ? "relative h-full w-full overflow-hidden" : "absolute z-40 overflow-hidden",
44582
+ !docked && (isInset ? INSET_GAP_Y_CLASS : "top-0 h-full"),
44465
44583
  side === "right" ? "right-0" : "left-0",
44466
44584
  cornerClass,
44467
- borderClass,
44468
- shadowClass
44585
+ legacyVariant && borderClass,
44586
+ legacyVariant ? shadowClass : panelOuterChrome
44469
44587
  ),
44470
44588
  style: {
44471
- width: entered ? shellWidth : 0,
44589
+ width: docked ? "100%" : entered ? shellWidth : 0,
44472
44590
  // Inline rather than `transition-[width] duration-… ease-…`: an
44473
44591
  // arbitrary easing utility would have to survive the safelist, and
44474
44592
  // this curve is not themeable anyway. It decelerates hard at the end,
@@ -44486,8 +44604,22 @@ var SidePanel = ({
44486
44604
  "data-sp-fill": "true",
44487
44605
  className: classNames80(
44488
44606
  "pointer-events-none absolute inset-0",
44489
- surface.fill,
44607
+ legacyVariant && surface.fill,
44490
44608
  cornerClass
44609
+ ),
44610
+ children: !legacyVariant && /* @__PURE__ */ jsx263(
44611
+ Panel_default,
44612
+ {
44613
+ variant: panelVariant,
44614
+ tone: surfaceTone,
44615
+ glassOpacity,
44616
+ vibrancy,
44617
+ specularMode,
44618
+ padding: "none",
44619
+ corner: "none",
44620
+ className: "h-full w-full",
44621
+ style: { borderRadius: "inherit" }
44622
+ }
44491
44623
  )
44492
44624
  }
44493
44625
  ),
@@ -44516,7 +44648,7 @@ var SidePanel = ({
44516
44648
  isCollapsed && "opacity-0",
44517
44649
  className
44518
44650
  ),
44519
- style: { width: resolvedWidth },
44651
+ style: { width: docked ? "100%" : resolvedWidth },
44520
44652
  onKeyDown,
44521
44653
  children: [
44522
44654
  /* @__PURE__ */ jsxs148(
@@ -44603,7 +44735,7 @@ var SidePanel = ({
44603
44735
  ]
44604
44736
  }
44605
44737
  ),
44606
- overlay && /* @__PURE__ */ jsx263(
44738
+ overlay && !docked && /* @__PURE__ */ jsx263(
44607
44739
  "div",
44608
44740
  {
44609
44741
  "aria-hidden": "true",
@@ -44620,7 +44752,7 @@ var SidePanel = ({
44620
44752
  }
44621
44753
  }
44622
44754
  ),
44623
- resizable && // ARIA 1.2 resizable separator: focusable (tabIndex), arrow keys /
44755
+ resizable && !docked && // ARIA 1.2 resizable separator: focusable (tabIndex), arrow keys /
44624
44756
  // Home / End resize, aria-valuenow|min|max report the width. Parked
44625
44757
  // (collapsed), it drops the role and every aria-* and leaves the tab
44626
44758
  // order — see `handleParked`.
@@ -44983,7 +45115,7 @@ var importGridLayout = (raw) => {
44983
45115
  };
44984
45116
 
44985
45117
  // src/components/SmartGridLayout.tsx
44986
- import { Fragment as Fragment36, jsx as jsx265, jsxs as jsxs150 } from "react/jsx-runtime";
45118
+ import { Fragment as Fragment37, jsx as jsx265, jsxs as jsxs150 } from "react/jsx-runtime";
44987
45119
  var COLUMN_BREAKPOINTS = [
44988
45120
  { key: "xl", min: 1280 },
44989
45121
  { key: "lg", min: 1024 },
@@ -47166,7 +47298,7 @@ var SmartGridLayout = ({
47166
47298
  {
47167
47299
  className: `flex shrink-0 items-center gap-2 ${showToolbar ? "" : "invisible"}`,
47168
47300
  children: [
47169
- isEditMode && historyLimit > 0 && /* @__PURE__ */ jsxs150(Fragment36, { children: [
47301
+ isEditMode && historyLimit > 0 && /* @__PURE__ */ jsxs150(Fragment37, { children: [
47170
47302
  /* @__PURE__ */ jsx265(
47171
47303
  Button_default,
47172
47304
  {
@@ -47939,7 +48071,7 @@ var SmartGridLayout = ({
47939
48071
  );
47940
48072
  resetDragState();
47941
48073
  },
47942
- children: isEditMode && /* @__PURE__ */ jsx265(Fragment36, { children: neighborCell && neighbor && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- ARIA 1.2 resizable separator: this div is the drag/keyboard resize target itself (WCAG 2.1.1); a button element here would conflict (interactive element with a non-interactive role)
48074
+ children: isEditMode && /* @__PURE__ */ jsx265(Fragment37, { children: neighborCell && neighbor && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions -- ARIA 1.2 resizable separator: this div is the drag/keyboard resize target itself (WCAG 2.1.1); a button element here would conflict (interactive element with a non-interactive role)
47943
48075
  /* @__PURE__ */ jsx265(
47944
48076
  "div",
47945
48077
  {
@@ -48413,7 +48545,7 @@ function useResizable({
48413
48545
  }
48414
48546
 
48415
48547
  // src/components/SplitView.tsx
48416
- import { Fragment as Fragment37, jsx as jsx266, jsxs as jsxs151 } from "react/jsx-runtime";
48548
+ import { Fragment as Fragment38, jsx as jsx266, jsxs as jsxs151 } from "react/jsx-runtime";
48417
48549
  import { createElement } from "react";
48418
48550
  var SPLIT_VIEW_LOADERS = ["skeleton", "spinner", "progress"];
48419
48551
  var SEARCH_VARIANT_FOR_SURFACE = {
@@ -48717,7 +48849,7 @@ var SplitView = ({
48717
48849
  const customActions = resolveHeaderSlot(headerProps.actions, item);
48718
48850
  const promotedActions = options?.promoteItemActions ? item.actions : void 0;
48719
48851
  const promotedListActions = options?.promoteItemActions ? listActions : void 0;
48720
- const mergedActions = customActions || promotedActions || promotedListActions ? /* @__PURE__ */ jsxs151(Fragment37, { children: [
48852
+ const mergedActions = customActions || promotedActions || promotedListActions ? /* @__PURE__ */ jsxs151(Fragment38, { children: [
48721
48853
  customActions,
48722
48854
  promotedActions,
48723
48855
  promotedListActions
@@ -48883,7 +49015,7 @@ var SplitView = ({
48883
49015
  "flex flex-1 flex-col min-w-0 h-full overflow-hidden",
48884
49016
  panelClassName
48885
49017
  ),
48886
- children: singleItem ? /* @__PURE__ */ jsxs151(Fragment37, { children: [
49018
+ children: singleItem ? /* @__PURE__ */ jsxs151(Fragment38, { children: [
48887
49019
  singleHeader ? /* @__PURE__ */ jsx266("div", { className: "shrink-0", children: singleHeader }) : listActions ? /* @__PURE__ */ jsx266(
48888
49020
  "div",
48889
49021
  {
@@ -48935,7 +49067,7 @@ var SplitView = ({
48935
49067
  children: [
48936
49068
  renderOverlay(),
48937
49069
  skeletonOverride && loadingState,
48938
- showSkeleton ? renderSkeleton(true) : /* @__PURE__ */ jsxs151(Fragment37, { children: [
49070
+ showSkeleton ? renderSkeleton(true) : /* @__PURE__ */ jsxs151(Fragment38, { children: [
48939
49071
  /* @__PURE__ */ jsx266(
48940
49072
  "div",
48941
49073
  {
@@ -48977,7 +49109,7 @@ var SplitView = ({
48977
49109
  "aria-label": t("kit.splitview.expandList")
48978
49110
  }
48979
49111
  ) })
48980
- ) : /* @__PURE__ */ jsxs151(Fragment37, { children: [
49112
+ ) : /* @__PURE__ */ jsxs151(Fragment38, { children: [
48981
49113
  (listTitle || listActions || collapsible) && /* @__PURE__ */ jsxs151("div", { className: "shrink-0 px-4 pt-4 pb-2 flex items-center justify-between gap-2", children: [
48982
49114
  listTitle && /* @__PURE__ */ jsx266(
48983
49115
  "h3",
@@ -49314,7 +49446,7 @@ var SplitView = ({
49314
49446
  "flex h-full min-w-0 flex-1 flex-col overflow-hidden",
49315
49447
  panelClassName
49316
49448
  ),
49317
- children: activeItem ? /* @__PURE__ */ jsxs151(Fragment37, { children: [
49449
+ children: activeItem ? /* @__PURE__ */ jsxs151(Fragment38, { children: [
49318
49450
  activeHeader && /* @__PURE__ */ jsx266("div", { className: "shrink-0", children: activeHeader }),
49319
49451
  /* @__PURE__ */ jsx266(
49320
49452
  "div",
@@ -49522,7 +49654,7 @@ var createLegacyGroups = (options) => {
49522
49654
  };
49523
49655
 
49524
49656
  // src/components/SmartVariableParts.tsx
49525
- import { Fragment as Fragment38, jsx as jsx267, jsxs as jsxs152 } from "react/jsx-runtime";
49657
+ import { Fragment as Fragment39, jsx as jsx267, jsxs as jsxs152 } from "react/jsx-runtime";
49526
49658
  var STATE_TONES = {
49527
49659
  resolved: "emerald",
49528
49660
  runtime: "violet",
@@ -49597,9 +49729,9 @@ var SmartValueParts = ({
49597
49729
  ...badgeProps
49598
49730
  }) => {
49599
49731
  if (!value) {
49600
- return /* @__PURE__ */ jsx267(Fragment38, { children: placeholder });
49732
+ return /* @__PURE__ */ jsx267(Fragment39, { children: placeholder });
49601
49733
  }
49602
- return /* @__PURE__ */ jsx267(Fragment38, { children: splitSmartValue(value).map(
49734
+ return /* @__PURE__ */ jsx267(Fragment39, { children: splitSmartValue(value).map(
49603
49735
  (part) => part.kind === "text" ? /* @__PURE__ */ jsx267("span", { children: part.text }, `t-${part.index}`) : /* @__PURE__ */ jsx267(
49604
49736
  SmartVariableBadge,
49605
49737
  {
@@ -51818,7 +51950,7 @@ function useIsDarkMode() {
51818
51950
  }
51819
51951
 
51820
51952
  // src/components/StatGraphTile.tsx
51821
- import { Fragment as Fragment39, jsx as jsx277, jsxs as jsxs162 } from "react/jsx-runtime";
51953
+ import { Fragment as Fragment40, jsx as jsx277, jsxs as jsxs162 } from "react/jsx-runtime";
51822
51954
  var STAT_GRAPH_CHART_TYPES = ["bar", "sparkline"];
51823
51955
  var SPARK_VALUE = {
51824
51956
  xs: "text-lg",
@@ -52044,7 +52176,7 @@ var StatGraphTile = ({
52044
52176
  opacity: 0.5
52045
52177
  }
52046
52178
  ),
52047
- showAxes && /* @__PURE__ */ jsxs162(Fragment39, { children: [
52179
+ showAxes && /* @__PURE__ */ jsxs162(Fragment40, { children: [
52048
52180
  /* @__PURE__ */ jsx277(
52049
52181
  XAxis2,
52050
52182
  {
@@ -53340,7 +53472,7 @@ var condenseStepperPlan = (steps, centreIndex, input = {}) => {
53340
53472
  };
53341
53473
 
53342
53474
  // src/components/CondensedStepper.tsx
53343
- import { Fragment as Fragment40, jsx as jsx281, jsxs as jsxs164 } from "react/jsx-runtime";
53475
+ import { Fragment as Fragment41, jsx as jsx281, jsxs as jsxs164 } from "react/jsx-runtime";
53344
53476
  var CheckGlyph2 = iconRegistry.Check;
53345
53477
  var SIZE_TOKENS9 = {
53346
53478
  xs: {
@@ -53729,7 +53861,7 @@ var CondensedStepper = ({
53729
53861
  surface,
53730
53862
  toneClass
53731
53863
  );
53732
- const inner = /* @__PURE__ */ jsxs164(Fragment40, { children: [
53864
+ const inner = /* @__PURE__ */ jsxs164(Fragment41, { children: [
53733
53865
  /* @__PURE__ */ jsx281("span", { className: classNames94("font-mono font-semibold", tokens.badgeText), children: index + 1 }),
53734
53866
  /* @__PURE__ */ jsx281("span", { className: "cs-badge-track", children: /* @__PURE__ */ jsx281("span", { className: classNames94("min-w-0 overflow-hidden", tokens.badgeLeading), children: /* @__PURE__ */ jsx281(
53735
53867
  "span",
@@ -53893,7 +54025,7 @@ var CondensedStepper = ({
53893
54025
  var _a;
53894
54026
  ((_a = flankRefs.current)[zone] ?? (_a[zone] = { flank: null, clip: null, row: null })).row = el;
53895
54027
  },
53896
- children: mode === "panel" && /* @__PURE__ */ jsxs164(Fragment40, { children: [
54028
+ children: mode === "panel" && /* @__PURE__ */ jsxs164(Fragment41, { children: [
53897
54029
  revealed.map((index) => /* @__PURE__ */ jsx281(
53898
54030
  "span",
53899
54031
  {
@@ -54021,12 +54153,12 @@ var CondensedStepper = ({
54021
54153
  onKeyDown: handleKeyDown,
54022
54154
  ...rest,
54023
54155
  children: [
54024
- plan.hasPast && /* @__PURE__ */ jsxs164(Fragment40, { children: [
54156
+ plan.hasPast && /* @__PURE__ */ jsxs164(Fragment41, { children: [
54025
54157
  renderFlank("past", plan.past, pastShift),
54026
54158
  /* @__PURE__ */ jsx281(Dash, { tokens, side: "l" })
54027
54159
  ] }),
54028
54160
  anchor,
54029
- plan.hasFuture && /* @__PURE__ */ jsxs164(Fragment40, { children: [
54161
+ plan.hasFuture && /* @__PURE__ */ jsxs164(Fragment41, { children: [
54030
54162
  /* @__PURE__ */ jsx281(Dash, { tokens, side: "r" }),
54031
54163
  renderFlank("future", plan.future, futureShift)
54032
54164
  ] })
@@ -54165,7 +54297,7 @@ var decodeStoredSettings = (raw) => {
54165
54297
  };
54166
54298
 
54167
54299
  // src/components/Table.tsx
54168
- import { Fragment as Fragment41, jsx as jsx282, jsxs as jsxs165 } from "react/jsx-runtime";
54300
+ import { Fragment as Fragment42, jsx as jsx282, jsxs as jsxs165 } from "react/jsx-runtime";
54169
54301
  var PORTAL_ROOT5 = typeof document !== "undefined" ? document.body : null;
54170
54302
  var NEUTRAL_HEADER_CLASSES = "bg-neutral-50 text-neutral-700 dark:bg-neutral-800/70 dark:text-neutral-200 border-neutral-200 dark:border-neutral-700";
54171
54303
  var STRIPED_ROW_BG = "bg-neutral-50/55 dark:bg-neutral-800/15";
@@ -55167,7 +55299,7 @@ function TableComponent({
55167
55299
  headerTitle && /* @__PURE__ */ jsx282("div", { className: "text-sm font-semibold text-neutral-700 dark:text-neutral-200", children: headerTitle }),
55168
55300
  /* @__PURE__ */ jsx282("div", { className: "flex-1" }),
55169
55301
  /* @__PURE__ */ jsxs165("div", { className: "flex items-center gap-2", children: [
55170
- showViewToggle && /* @__PURE__ */ jsxs165(Fragment41, { children: [
55302
+ showViewToggle && /* @__PURE__ */ jsxs165(Fragment42, { children: [
55171
55303
  /* @__PURE__ */ jsx282(
55172
55304
  IconButton_default,
55173
55305
  {
@@ -55640,7 +55772,7 @@ function TableComponent({
55640
55772
  columns: orderedVisibleColumns.length,
55641
55773
  rows: skeletonRows
55642
55774
  }
55643
- ) : /* @__PURE__ */ jsxs165(Fragment41, { children: [
55775
+ ) : /* @__PURE__ */ jsxs165(Fragment42, { children: [
55644
55776
  /* @__PURE__ */ jsxs165(
55645
55777
  "table",
55646
55778
  {
@@ -56717,7 +56849,7 @@ var CapsuleBlueprintValueType = /* @__PURE__ */ ((CapsuleBlueprintValueType2) =>
56717
56849
  })(CapsuleBlueprintValueType || {});
56718
56850
 
56719
56851
  // src/components/DynamicFormField.tsx
56720
- import { Fragment as Fragment42, jsx as jsx286, jsxs as jsxs168 } from "react/jsx-runtime";
56852
+ import { Fragment as Fragment43, jsx as jsx286, jsxs as jsxs168 } from "react/jsx-runtime";
56721
56853
  var DYNAMIC_FORM_FIELD_VARIANTS = [
56722
56854
  ...SURFACE_VARIANTS,
56723
56855
  "plain"
@@ -56886,7 +57018,7 @@ var DynamicFormField = ({
56886
57018
  if (!isVisible || !parameter.value_type || control === null) return null;
56887
57019
  const isCheckbox = parameter.value_type === "boolean" /* Boolean */;
56888
57020
  const isKeyValue = parameter.value_type === "map" /* Map */;
56889
- const body = /* @__PURE__ */ jsxs168(Fragment42, { children: [
57021
+ const body = /* @__PURE__ */ jsxs168(Fragment43, { children: [
56890
57022
  isKeyValue ? control : /* @__PURE__ */ jsx286(
56891
57023
  FormField_default,
56892
57024
  {
@@ -57295,7 +57427,7 @@ function getTreeColorTokens(tone) {
57295
57427
  }
57296
57428
 
57297
57429
  // src/components/TimelinePanel/TimelinePanel.tsx
57298
- import { Fragment as Fragment43, jsx as jsx288, jsxs as jsxs170 } from "react/jsx-runtime";
57430
+ import { Fragment as Fragment44, jsx as jsx288, jsxs as jsxs170 } from "react/jsx-runtime";
57299
57431
  function useIsDark() {
57300
57432
  const detect = () => {
57301
57433
  if (typeof document === "undefined") return false;
@@ -57556,7 +57688,7 @@ var OverflowButton = ({
57556
57688
  const [open, setOpen] = useState73(false);
57557
57689
  const ref = useRef63(null);
57558
57690
  if (options.length === 0) return null;
57559
- return /* @__PURE__ */ jsxs170(Fragment43, { children: [
57691
+ return /* @__PURE__ */ jsxs170(Fragment44, { children: [
57560
57692
  /* @__PURE__ */ jsx288(
57561
57693
  "button",
57562
57694
  {
@@ -61767,7 +61899,7 @@ var ConnectionFlowEditor = forwardRef161(function ConnectionFlowEditor2({
61767
61899
  var ConnectionFlowEditor_default = ConnectionFlowEditor;
61768
61900
 
61769
61901
  // src/components/ConnectionFlow/ConnectionFlow.tsx
61770
- import { Fragment as Fragment44, jsx as jsx294, jsxs as jsxs176 } from "react/jsx-runtime";
61902
+ import { Fragment as Fragment45, jsx as jsx294, jsxs as jsxs176 } from "react/jsx-runtime";
61771
61903
  var FIT_ICON = /* @__PURE__ */ jsxs176(
61772
61904
  "svg",
61773
61905
  {
@@ -62077,7 +62209,7 @@ var ConnectionFlow = React84.forwardRef(function ConnectionFlow2({
62077
62209
  height: (drawing.height - drawing.offsetY) * scale
62078
62210
  };
62079
62211
  const body = /* @__PURE__ */ jsxs176("div", { className: "relative w-full min-w-0", children: [
62080
- showHeader && (eyebrow || title || subtitle || icon || tag || progressType !== "none") && /* @__PURE__ */ jsxs176(Fragment44, { children: [
62212
+ showHeader && (eyebrow || title || subtitle || icon || tag || progressType !== "none") && /* @__PURE__ */ jsxs176(Fragment45, { children: [
62081
62213
  /* @__PURE__ */ jsx294("div", { className: "px-4 pt-4 pb-3", children: /* @__PURE__ */ jsx294(
62082
62214
  ConnectionFlowHeader_default,
62083
62215
  {
@@ -62790,7 +62922,7 @@ import {
62790
62922
  useState as useState78
62791
62923
  } from "react";
62792
62924
  import classNames107 from "classnames";
62793
- import { Fragment as Fragment45, jsx as jsx296, jsxs as jsxs178 } from "react/jsx-runtime";
62925
+ import { Fragment as Fragment46, jsx as jsx296, jsxs as jsxs178 } from "react/jsx-runtime";
62794
62926
  var ORG_CHART_SELECTION_MODES = [
62795
62927
  "none",
62796
62928
  "single",
@@ -63006,7 +63138,7 @@ var OrganizationChart = ({
63006
63138
  selected: isSelected,
63007
63139
  expanded,
63008
63140
  hasChildren
63009
- }) : /* @__PURE__ */ jsxs178(Fragment45, { children: [
63141
+ }) : /* @__PURE__ */ jsxs178(Fragment46, { children: [
63010
63142
  node.icon != null && /* @__PURE__ */ jsx296(
63011
63143
  "span",
63012
63144
  {
@@ -63305,7 +63437,7 @@ var TreeItemCard_default = TreeItemCard;
63305
63437
 
63306
63438
  // src/components/TreeView/TreeFlowSvg.tsx
63307
63439
  import { useEffect as useEffect70, useState as useState80 } from "react";
63308
- import { Fragment as Fragment46, jsx as jsx298, jsxs as jsxs180 } from "react/jsx-runtime";
63440
+ import { Fragment as Fragment47, jsx as jsx298, jsxs as jsxs180 } from "react/jsx-runtime";
63309
63441
  function useIsDark2() {
63310
63442
  const detectDark = () => {
63311
63443
  if (typeof document === "undefined") return false;
@@ -63475,9 +63607,9 @@ var TreeFlowSvg = ({
63475
63607
  },
63476
63608
  `branch-${i}`
63477
63609
  )),
63478
- showConnectors && connectorStyle === "rings" && /* @__PURE__ */ jsxs180(Fragment46, { children: [
63610
+ showConnectors && connectorStyle === "rings" && /* @__PURE__ */ jsxs180(Fragment47, { children: [
63479
63611
  isBracket ? /* @__PURE__ */ jsxs180("g", { children: [
63480
- junctionStyle === "dot" && /* @__PURE__ */ jsxs180(Fragment46, { children: [
63612
+ junctionStyle === "dot" && /* @__PURE__ */ jsxs180(Fragment47, { children: [
63481
63613
  /* @__PURE__ */ jsx298("circle", { cx: "12", cy: parentAnchorY, r: "4.5", fill: rootFill }),
63482
63614
  /* @__PURE__ */ jsx298(
63483
63615
  "circle",
@@ -63523,7 +63655,7 @@ var TreeFlowSvg = ({
63523
63655
  ),
63524
63656
  showCenterDot && /* @__PURE__ */ jsx298("circle", { cx: indentPx, cy: parentAnchorY, r: "2", fill: rootDot })
63525
63657
  ] }) : hasParentStub ? /* @__PURE__ */ jsxs180("g", { children: [
63526
- connectorHalf ? /* @__PURE__ */ jsxs180(Fragment46, { children: [
63658
+ connectorHalf ? /* @__PURE__ */ jsxs180(Fragment47, { children: [
63527
63659
  /* @__PURE__ */ jsx298(
63528
63660
  "path",
63529
63661
  {
@@ -63543,7 +63675,7 @@ var TreeFlowSvg = ({
63543
63675
  transform: `translate(0, ${rootConnectorY})`
63544
63676
  }
63545
63677
  )
63546
- ] }) : /* @__PURE__ */ jsxs180(Fragment46, { children: [
63678
+ ] }) : /* @__PURE__ */ jsxs180(Fragment47, { children: [
63547
63679
  /* @__PURE__ */ jsx298(
63548
63680
  "circle",
63549
63681
  {
@@ -63566,7 +63698,7 @@ var TreeFlowSvg = ({
63566
63698
  )
63567
63699
  ] }),
63568
63700
  showCenterDot && /* @__PURE__ */ jsx298("circle", { cx: "12", cy: rootConnectorY, r: "2", fill: rootDot })
63569
- ] }) : /* @__PURE__ */ jsxs180(Fragment46, { children: [
63701
+ ] }) : /* @__PURE__ */ jsxs180(Fragment47, { children: [
63570
63702
  /* @__PURE__ */ jsx298("circle", { cx: "12", cy: rootConnectorY, r: ringR, fill: rootFill }),
63571
63703
  connectorHalf ? /* @__PURE__ */ jsx298(
63572
63704
  "path",
@@ -63592,7 +63724,7 @@ var TreeFlowSvg = ({
63592
63724
  showCenterDot && /* @__PURE__ */ jsx298("circle", { cx: "12", cy: rootConnectorY, r: "2", fill: rootDot })
63593
63725
  ] }),
63594
63726
  midYs.map((my, i) => /* @__PURE__ */ jsxs180("g", { children: [
63595
- junctionStyle === "dot" && /* @__PURE__ */ jsxs180(Fragment46, { children: [
63727
+ junctionStyle === "dot" && /* @__PURE__ */ jsxs180(Fragment47, { children: [
63596
63728
  /* @__PURE__ */ jsx298("circle", { cx: "12", cy: my, r: "4.5", fill: cFill(i) }),
63597
63729
  /* @__PURE__ */ jsx298(
63598
63730
  "circle",
@@ -63631,7 +63763,7 @@ var TreeFlowSvg = ({
63631
63763
  showCenterDot && /* @__PURE__ */ jsx298("circle", { cx: branchEndX, cy: my, r: "2", fill: cDot(i) })
63632
63764
  ] }, `conn-${i}`))
63633
63765
  ] }),
63634
- showConnectors && connectorStyle === "dots" && /* @__PURE__ */ jsxs180(Fragment46, { children: [
63766
+ showConnectors && connectorStyle === "dots" && /* @__PURE__ */ jsxs180(Fragment47, { children: [
63635
63767
  /* @__PURE__ */ jsx298(
63636
63768
  "circle",
63637
63769
  {
@@ -64522,7 +64654,7 @@ var getStatusTokens = (status, palette) => {
64522
64654
  const STATUS_STYLES = {
64523
64655
  done: {
64524
64656
  tone: accent,
64525
- node: `bg-${accent}-500 dark:bg-${accent}-400 border-2 border-${accent}-500 dark:border-${accent}-500`,
64657
+ node: `bg-${accent}-500 border-2 border-${accent}-500`,
64526
64658
  glyph: "check",
64527
64659
  glyphClass: "text-white",
64528
64660
  connector: `bg-${accent}-500 dark:bg-${accent}-500`,
@@ -64647,14 +64779,15 @@ var WorkflowStatusNode = ({
64647
64779
  "span",
64648
64780
  {
64649
64781
  "aria-hidden": "true",
64782
+ "data-workflow-status-node": true,
64650
64783
  className: classNames111("relative inline-flex shrink-0", node, className),
64651
64784
  children: [
64652
64785
  tokens.pulse && /* @__PURE__ */ jsx301(
64653
64786
  "span",
64654
64787
  {
64655
64788
  className: classNames111(
64656
- "absolute inset-0 animate-ping rounded-full opacity-60 motion-reduce:hidden",
64657
- `bg-${tokens.tone}-300 dark:bg-${tokens.tone}-500`
64789
+ "absolute inset-0 origin-center animate-ping rounded-full opacity-60 motion-reduce:hidden",
64790
+ `bg-${tokens.tone}-300 dark:bg-${tokens.tone}-400`
64658
64791
  )
64659
64792
  }
64660
64793
  ),
@@ -64662,7 +64795,7 @@ var WorkflowStatusNode = ({
64662
64795
  "span",
64663
64796
  {
64664
64797
  className: classNames111(
64665
- "relative inline-flex h-full w-full items-center justify-center rounded-full",
64798
+ "absolute inset-0 inline-flex h-full w-full items-center justify-center rounded-full",
64666
64799
  tokens.node
64667
64800
  ),
64668
64801
  children: [
@@ -64805,7 +64938,7 @@ var Tally = ({ count, label, surfaces }) => /* @__PURE__ */ jsxs184("span", { cl
64805
64938
  ] });
64806
64939
 
64807
64940
  // src/components/WorkflowTracker/WorkflowTimeline.tsx
64808
- import { Fragment as Fragment47, jsx as jsx304, jsxs as jsxs185 } from "react/jsx-runtime";
64941
+ import { Fragment as Fragment48, jsx as jsx304, jsxs as jsxs185 } from "react/jsx-runtime";
64809
64942
  var CONNECTOR_LEFT = 9;
64810
64943
  var CONNECTOR_TOP = 24;
64811
64944
  var NESTED_INDENT = 32;
@@ -64831,7 +64964,7 @@ var NestedSubSteps = ({
64831
64964
  children: /* @__PURE__ */ jsx304("ul", { className: "space-y-2.5", children: subSteps.map((subStep) => {
64832
64965
  const status = normalizeStatus(subStep.status);
64833
64966
  const isActive = status === "running" || status === "in_progress";
64834
- const content = /* @__PURE__ */ jsxs185(Fragment47, { children: [
64967
+ const content = /* @__PURE__ */ jsxs185(Fragment48, { children: [
64835
64968
  /* @__PURE__ */ jsx304(WorkflowStatusNode_default, { status, palette, size: "sm" }),
64836
64969
  /* @__PURE__ */ jsx304(
64837
64970
  "span",
@@ -64862,6 +64995,7 @@ var WorkflowTimeline = ({
64862
64995
  renderStepPopover,
64863
64996
  stepPopoverProps,
64864
64997
  collapsed = false,
64998
+ side = "left",
64865
64999
  fillHeight = false,
64866
65000
  steps,
64867
65001
  activeStepId,
@@ -64988,12 +65122,13 @@ var WorkflowTimeline = ({
64988
65122
  const isActive = step.id === activeStepId;
64989
65123
  const isLast = index === steps.length - 1;
64990
65124
  const nested = isActive && step.subSteps && step.subSteps.length > 0 ? step.subSteps : void 0;
64991
- const rowContent = /* @__PURE__ */ jsxs185(Fragment47, { children: [
65125
+ const rowContent = /* @__PURE__ */ jsxs185(Fragment48, { children: [
64992
65126
  /* @__PURE__ */ jsx304(
64993
65127
  WorkflowStatusNode_default,
64994
65128
  {
64995
65129
  status,
64996
65130
  palette,
65131
+ size: collapsed ? "sm" : "md",
64997
65132
  className: collapsed ? void 0 : "mt-0.5"
64998
65133
  }
64999
65134
  ),
@@ -65053,9 +65188,10 @@ var WorkflowTimeline = ({
65053
65188
  type: "button",
65054
65189
  onClick: () => onStepSelect(step.id),
65055
65190
  className: classNames114(
65056
- "relative flex text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 dark:focus-visible:ring-neutral-500",
65191
+ "relative flex text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400 dark:focus-visible:ring-neutral-500",
65192
+ collapsed ? "focus-visible:ring-inset" : "focus-visible:ring-offset-2",
65057
65193
  collapsed ? "h-9 w-9 items-center justify-center rounded-xl" : "w-full items-start gap-3 rounded-sm",
65058
- collapsed && isActive && "bg-neutral-200 dark:bg-neutral-700"
65194
+ collapsed && "transition-colors hover:bg-neutral-100 dark:hover:bg-white/5"
65059
65195
  ),
65060
65196
  children: rowContent
65061
65197
  }
@@ -65064,9 +65200,10 @@ var WorkflowTimeline = ({
65064
65200
  {
65065
65201
  tabIndex: collapsed ? 0 : void 0,
65066
65202
  className: classNames114(
65067
- "relative flex focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400",
65203
+ "relative flex focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-400 dark:focus-visible:ring-neutral-500",
65204
+ collapsed && "focus-visible:ring-inset",
65068
65205
  collapsed ? "h-9 w-9 items-center justify-center rounded-xl" : "w-full items-start gap-3 rounded-sm",
65069
- collapsed && isActive && "bg-neutral-200 dark:bg-neutral-700"
65206
+ collapsed && "transition-colors hover:bg-neutral-100 dark:hover:bg-white/5"
65070
65207
  ),
65071
65208
  children: rowContent
65072
65209
  }
@@ -65084,7 +65221,12 @@ var WorkflowTimeline = ({
65084
65221
  "span",
65085
65222
  {
65086
65223
  "aria-hidden": "true",
65087
- className: `absolute -left-2 top-1.5 h-6 w-1 rounded-r-full bg-${palette.accent}-600`
65224
+ "data-workflow-selection-marker": true,
65225
+ style: { position: "absolute", pointerEvents: "none" },
65226
+ className: classNames114(
65227
+ `absolute top-1.5 h-6 w-1 bg-${palette.accent}-600`,
65228
+ side === "left" ? "-left-2 rounded-r-full" : "-right-2 rounded-l-full"
65229
+ )
65088
65230
  }
65089
65231
  ),
65090
65232
  !isLast && /* @__PURE__ */ jsx304(
@@ -65538,6 +65680,7 @@ var sampleWorkflow = {
65538
65680
  // src/components/WorkflowTracker/WorkflowTrackerRail.tsx
65539
65681
  import { jsx as jsx306, jsxs as jsxs187 } from "react/jsx-runtime";
65540
65682
  var WorkflowTrackerRail = ({
65683
+ side = "left",
65541
65684
  collapsible = false,
65542
65685
  collapsed,
65543
65686
  defaultCollapsed = false,
@@ -65590,7 +65733,11 @@ var WorkflowTrackerRail = ({
65590
65733
  className,
65591
65734
  cardClassName
65592
65735
  ),
65593
- style: collapsible ? { ...style, width: isCollapsed ? COLLAPSED_RAIL_WIDTH : style?.width ?? 360 } : style,
65736
+ style: collapsible ? {
65737
+ ...style,
65738
+ width: isCollapsed ? COLLAPSED_RAIL_WIDTH : style?.width ?? 360,
65739
+ ...isCollapsed ? side === "left" ? { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } : { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
65740
+ } : style,
65594
65741
  "aria-busy": loading || void 0,
65595
65742
  "data-collapsed": collapsible ? isCollapsed : void 0,
65596
65743
  children: [
@@ -65599,16 +65746,16 @@ var WorkflowTrackerRail = ({
65599
65746
  {
65600
65747
  className: classNames115(
65601
65748
  "absolute z-20 flex",
65602
- isCollapsed ? "inset-x-0 top-2 justify-center" : "right-4 top-4"
65749
+ isCollapsed ? "inset-x-0 top-2 justify-center" : side === "left" ? "right-4 top-4" : "left-4 top-4"
65603
65750
  ),
65604
65751
  children: /* @__PURE__ */ jsx306(
65605
65752
  CollapseToggleButton,
65606
65753
  {
65607
65754
  collapsed: isCollapsed,
65608
- edge: "left",
65755
+ edge: side,
65609
65756
  srLabel: isCollapsed ? expandLabel : collapseLabel,
65610
65757
  tooltip: isCollapsed ? expandLabel : collapseLabel,
65611
- tooltipPosition: "right",
65758
+ tooltipPosition: side === "left" ? "right" : "left",
65612
65759
  "aria-controls": timelineId,
65613
65760
  onClick: () => {
65614
65761
  const next = !isCollapsed;
@@ -65630,9 +65777,11 @@ var WorkflowTrackerRail = ({
65630
65777
  {
65631
65778
  controls: renderControls?.({ collapsed: isCollapsed }),
65632
65779
  collapsed: isCollapsed,
65780
+ side,
65633
65781
  hasCollapseToggle: collapsible,
65634
65782
  renderStepPopover,
65635
65783
  stepPopoverProps: {
65784
+ placement: side === "left" ? "right" : "left",
65636
65785
  variant: cardProps.variant,
65637
65786
  tone: cardProps.tone,
65638
65787
  corner: cardProps.corner,
@@ -65672,7 +65821,7 @@ import classNames117 from "classnames";
65672
65821
 
65673
65822
  // src/components/WorkflowTracker/WorkflowDetailPanel.tsx
65674
65823
  import classNames116 from "classnames";
65675
- import { Fragment as Fragment48, jsx as jsx307, jsxs as jsxs188 } from "react/jsx-runtime";
65824
+ import { Fragment as Fragment49, jsx as jsx307, jsxs as jsxs188 } from "react/jsx-runtime";
65676
65825
  var WorkflowDetailPanel = ({
65677
65826
  active,
65678
65827
  totalSteps,
@@ -65767,7 +65916,7 @@ var WorkflowDetailPanel = ({
65767
65916
  field.label
65768
65917
  )) })
65769
65918
  ] }),
65770
- subSteps.length > 0 && /* @__PURE__ */ jsxs188(Fragment48, { children: [
65919
+ subSteps.length > 0 && /* @__PURE__ */ jsxs188(Fragment49, { children: [
65771
65920
  /* @__PURE__ */ jsxs188(
65772
65921
  "div",
65773
65922
  {
@@ -65804,7 +65953,7 @@ var WorkflowDetailPanel = ({
65804
65953
  children: subSteps.map((subStep) => {
65805
65954
  const subStatus = normalizeStatus(subStep.status);
65806
65955
  const isRunning = subStatus === "running";
65807
- const rowContent = /* @__PURE__ */ jsxs188(Fragment48, { children: [
65956
+ const rowContent = /* @__PURE__ */ jsxs188(Fragment49, { children: [
65808
65957
  /* @__PURE__ */ jsx307(WorkflowStatusNode_default, { status: subStatus, palette }),
65809
65958
  /* @__PURE__ */ jsxs188("div", { className: "min-w-0 flex-1", children: [
65810
65959
  /* @__PURE__ */ jsx307("p", { className: "text-sm font-medium text-neutral-800 dark:text-neutral-100", children: subStep.label }),
@@ -67817,7 +67966,7 @@ GanttLinkLayer.displayName = "GanttLinkLayer";
67817
67966
  // src/components/Gantt/GanttBodyRow.tsx
67818
67967
  import { useMemo as useMemo58 } from "react";
67819
67968
  import classNames124 from "classnames";
67820
- import { Fragment as Fragment49, jsx as jsx316, jsxs as jsxs194 } from "react/jsx-runtime";
67969
+ import { Fragment as Fragment50, jsx as jsx316, jsxs as jsxs194 } from "react/jsx-runtime";
67821
67970
  var BAR_HEIGHT = 24;
67822
67971
  var MILESTONE_SIZE = 14;
67823
67972
  var GanttBodyRow = ({
@@ -67888,7 +68037,7 @@ var GanttBodyRow = ({
67888
68037
  dividerClass,
67889
68038
  liveProgress: liveLane
67890
68039
  }
67891
- ) : /* @__PURE__ */ jsxs194(Fragment49, { children: [
68040
+ ) : /* @__PURE__ */ jsxs194(Fragment50, { children: [
67892
68041
  /* @__PURE__ */ jsxs194(
67893
68042
  "div",
67894
68043
  {
@@ -67979,7 +68128,7 @@ var LaneHeader = ({ row, columns, leftWidth, color, onCaretClick, dividerClass =
67979
68128
  const laneColor = lane.color ?? color;
67980
68129
  const tokens = getGanttLaneTokens(laneColor);
67981
68130
  const isOpen = lane.open !== false;
67982
- return /* @__PURE__ */ jsxs194(Fragment49, { children: [
68131
+ return /* @__PURE__ */ jsxs194(Fragment50, { children: [
67983
68132
  /* @__PURE__ */ jsxs194(
67984
68133
  "div",
67985
68134
  {
@@ -68008,7 +68157,7 @@ var LaneHeader = ({ row, columns, leftWidth, color, onCaretClick, dividerClass =
68008
68157
  dividerClass
68009
68158
  ),
68010
68159
  style: { width: col.width ?? "160px" },
68011
- children: i === 0 ? /* @__PURE__ */ jsxs194(Fragment49, { children: [
68160
+ children: i === 0 ? /* @__PURE__ */ jsxs194(Fragment50, { children: [
68012
68161
  /* @__PURE__ */ jsx316("span", { className: classNames124("truncate text-[13px] font-semibold", tokens.label), children: lane.label }),
68013
68162
  lane.description && /* @__PURE__ */ jsx316("span", { className: "hidden truncate text-[11px] text-neutral-500 dark:text-neutral-400 lg:inline", children: lane.description }),
68014
68163
  row.childCount > 0 && /* @__PURE__ */ jsx316("span", { className: "shrink-0 rounded-full bg-white/70 px-1.5 py-0.5 text-[10px] font-semibold text-neutral-600 dark:bg-white/10 dark:text-neutral-300", children: row.childCount })
@@ -68037,7 +68186,7 @@ var Cell = ({ col, task, depth, isGroup, childCount, first, onCaretClick, render
68037
68186
  width: col.width ?? "160px",
68038
68187
  justifyContent: col.align === "center" ? "center" : col.align === "right" ? "flex-end" : "flex-start"
68039
68188
  },
68040
- children: first ? /* @__PURE__ */ jsxs194(Fragment49, { children: [
68189
+ children: first ? /* @__PURE__ */ jsxs194(Fragment50, { children: [
68041
68190
  /* @__PURE__ */ jsx316("span", { className: "shrink-0", style: { width: depth * 14 + 18 }, children: isGroup && /* @__PURE__ */ jsx316(
68042
68191
  "button",
68043
68192
  {
@@ -68219,7 +68368,7 @@ var TaskBar = ({
68219
68368
  }
68220
68369
  ),
68221
68370
  showName && (renderBar != null ? /* @__PURE__ */ jsx316("div", { className: classNames124("pointer-events-none absolute inset-0 flex items-center px-1.5 text-[11px] font-medium", labelText), children: renderBar(task, { taskId: task.id, left, width, top, height: row.height, milestone: false }) }) : /* @__PURE__ */ jsx316("span", { className: classNames124("pointer-events-none absolute inset-0 flex items-center truncate px-1.5 text-[11px] font-medium", labelText), children: task.name })),
68222
- canEdit && /* @__PURE__ */ jsxs194(Fragment49, { children: [
68371
+ canEdit && /* @__PURE__ */ jsxs194(Fragment50, { children: [
68223
68372
  /* @__PURE__ */ jsx316(
68224
68373
  "div",
68225
68374
  {
@@ -68241,7 +68390,7 @@ var TaskBar = ({
68241
68390
  }
68242
68391
  )
68243
68392
  ] }),
68244
- canEdit && /* @__PURE__ */ jsxs194(Fragment49, { children: [
68393
+ canEdit && /* @__PURE__ */ jsxs194(Fragment50, { children: [
68245
68394
  /* @__PURE__ */ jsx316(
68246
68395
  "button",
68247
68396
  {
@@ -70210,7 +70359,7 @@ function useTaskBoard() {
70210
70359
  }
70211
70360
 
70212
70361
  // src/components/TaskBoard/TaskBoardCard.tsx
70213
- import { Fragment as Fragment50, jsx as jsx319, jsxs as jsxs197 } from "react/jsx-runtime";
70362
+ import { Fragment as Fragment51, jsx as jsx319, jsxs as jsxs197 } from "react/jsx-runtime";
70214
70363
  var tagLabel = (t) => typeof t === "string" ? t : t.label;
70215
70364
  function formatDue(due, locale) {
70216
70365
  if (due === void 0 || due === null || due === "") return null;
@@ -70373,7 +70522,7 @@ var TaskBoardCard = React99.forwardRef(
70373
70522
  },
70374
70523
  children: [
70375
70524
  renderCard ? renderCard(card, state) : /* @__PURE__ */ jsx319(TaskBoardCardBody, { card }),
70376
- state.held && heldTone && /* @__PURE__ */ jsxs197(Fragment50, { children: [
70525
+ state.held && heldTone && /* @__PURE__ */ jsxs197(Fragment51, { children: [
70377
70526
  /* @__PURE__ */ jsx319("span", { className: "sr-only", children: ctx.text("held", { name: state.held.name }) }),
70378
70527
  /* @__PURE__ */ jsx319(
70379
70528
  "span",
@@ -72034,7 +72183,7 @@ function safePublish(transport, event) {
72034
72183
  import { useLayoutEffect as useLayoutEffect27, useState as useState92 } from "react";
72035
72184
  import { createPortal as createPortal18 } from "react-dom";
72036
72185
  import classNames135 from "classnames";
72037
- import { Fragment as Fragment51, jsx as jsx327, jsxs as jsxs203 } from "react/jsx-runtime";
72186
+ import { Fragment as Fragment52, jsx as jsx327, jsxs as jsxs203 } from "react/jsx-runtime";
72038
72187
  var GHOST_HEIGHT = 40;
72039
72188
  var TaskBoardRemoteGhosts = ({ rootRef, holds, selfId, cards, userById }) => {
72040
72189
  const [ghosts, setGhosts] = useState92([]);
@@ -72080,7 +72229,7 @@ var TaskBoardRemoteGhosts = ({ rootRef, holds, selfId, cards, userById }) => {
72080
72229
  }, [rootRef, holds, selfId, cards, userById, tick]);
72081
72230
  if (!ghosts.length || typeof document === "undefined") return null;
72082
72231
  return createPortal18(
72083
- /* @__PURE__ */ jsx327(Fragment51, { children: ghosts.map((g) => {
72232
+ /* @__PURE__ */ jsx327(Fragment52, { children: ghosts.map((g) => {
72084
72233
  const tokens = getTaskBoardPeerTokens(g.peer.color ?? peerColor(g.peer.id));
72085
72234
  return /* @__PURE__ */ jsxs203(
72086
72235
  "div",
@@ -73186,19 +73335,144 @@ var TerminalTabs = forwardRef165(
73186
73335
  }
73187
73336
  );
73188
73337
 
73338
+ // src/components/PageBodyLayout.tsx
73339
+ import { useCallback as useCallback53, useEffect as useEffect81, useRef as useRef80, useState as useState96 } from "react";
73340
+ import classNames141 from "classnames";
73341
+ import { jsx as jsx334, jsxs as jsxs208 } from "react/jsx-runtime";
73342
+ function Region({ config, side }) {
73343
+ const vertical = side === "bottom";
73344
+ const [internalCollapsed, setInternalCollapsed] = useState96(config.defaultCollapsed ?? false);
73345
+ const [internalSize, setInternalSize] = useState96(config.defaultSize ?? (vertical ? 200 : 280));
73346
+ const collapsed = config.collapsed ?? internalCollapsed;
73347
+ const min = Math.max(0, config.minSize ?? (vertical ? 100 : 160));
73348
+ const max = Math.max(min, config.maxSize ?? (vertical ? 600 : 640));
73349
+ const size = Math.max(min, Math.min(max, config.size ?? internalSize));
73350
+ const collapsedSize = Math.max(0, config.collapsedSize ?? (vertical ? 40 : COLLAPSED_RAIL_WIDTH));
73351
+ const setCollapsed = (next) => {
73352
+ if (config.collapsed === void 0) setInternalCollapsed(next);
73353
+ config.onCollapsedChange?.(next);
73354
+ };
73355
+ const updateSize = useCallback53((next) => {
73356
+ const value = Math.max(min, Math.min(max, next));
73357
+ if (config.size === void 0) setInternalSize(value);
73358
+ config.onSizeChange?.(value);
73359
+ }, [min, max, config.size, config.onSizeChange]);
73360
+ const drag = useRef80(null);
73361
+ const [dragging, setDragging] = useState96(false);
73362
+ useEffect81(() => {
73363
+ if (!dragging) return;
73364
+ const previousCursor = document.body.style.cursor;
73365
+ const previousSelect = document.body.style.userSelect;
73366
+ document.body.style.cursor = vertical ? "row-resize" : "col-resize";
73367
+ document.body.style.userSelect = "none";
73368
+ const move = (event) => {
73369
+ if (!drag.current) return;
73370
+ const delta = (vertical ? event.clientY : event.clientX) - drag.current.position;
73371
+ updateSize(drag.current.size + delta * (side === "left" ? 1 : -1));
73372
+ };
73373
+ const stop = () => {
73374
+ drag.current = null;
73375
+ setDragging(false);
73376
+ };
73377
+ window.addEventListener("pointermove", move);
73378
+ window.addEventListener("pointerup", stop);
73379
+ window.addEventListener("pointercancel", stop);
73380
+ return () => {
73381
+ window.removeEventListener("pointermove", move);
73382
+ window.removeEventListener("pointerup", stop);
73383
+ window.removeEventListener("pointercancel", stop);
73384
+ document.body.style.cursor = previousCursor;
73385
+ document.body.style.userSelect = previousSelect;
73386
+ };
73387
+ }, [dragging, vertical, side, updateSize]);
73388
+ const canResize = !collapsed && (config.resizable ?? side !== "left");
73389
+ const dimension = collapsed ? collapsedSize : size;
73390
+ return /* @__PURE__ */ jsxs208(
73391
+ "section",
73392
+ {
73393
+ "aria-label": config.label,
73394
+ "data-page-region": side,
73395
+ "data-collapsed": collapsed,
73396
+ className: "relative min-h-0 min-w-0 shrink-0 overflow-hidden",
73397
+ style: vertical ? { height: dimension } : { width: dimension },
73398
+ children: [
73399
+ /* @__PURE__ */ jsxs208("div", { className: "flex h-full min-h-0 flex-col", children: [
73400
+ config.showToggle !== false && /* @__PURE__ */ jsx334("div", { className: "flex shrink-0 justify-end px-2 py-1", children: /* @__PURE__ */ jsx334(
73401
+ IconButton_default,
73402
+ {
73403
+ size: "xs",
73404
+ variant: "ghost",
73405
+ color: "neutral",
73406
+ icon: vertical ? collapsed ? "ArrowChevronUp" : "ArrowChevronDown" : collapsed === (side === "left") ? "ArrowChevronRight" : "ArrowChevronLeft",
73407
+ "aria-label": `${collapsed ? "Expand" : "Collapse"} ${config.label}`,
73408
+ "aria-expanded": !collapsed,
73409
+ onClick: () => setCollapsed(!collapsed)
73410
+ }
73411
+ ) }),
73412
+ /* @__PURE__ */ jsx334("div", { className: classNames141("min-h-0 min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), children: typeof config.content === "function" ? config.content({ collapsed, setCollapsed, size }) : /* @__PURE__ */ jsx334("div", { className: "h-full", hidden: collapsed, inert: collapsed || void 0, children: config.content }) })
73413
+ ] }),
73414
+ canResize && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-noninteractive-tabindex -- focusable ARIA separator provides keyboard and pointer resizing
73415
+ /* @__PURE__ */ jsx334(
73416
+ "div",
73417
+ {
73418
+ role: "separator",
73419
+ tabIndex: 0,
73420
+ "aria-label": `Resize ${config.label}`,
73421
+ "aria-orientation": vertical ? "horizontal" : "vertical",
73422
+ "aria-valuemin": min,
73423
+ "aria-valuemax": max,
73424
+ "aria-valuenow": size,
73425
+ className: classNames141("absolute z-20 touch-none bg-transparent hover:bg-blue-400/30 focus-visible:bg-blue-400/30 focus-visible:outline-none", vertical ? "inset-x-0 top-0 h-2 cursor-row-resize" : side === "right" ? "inset-y-0 left-0 w-2 cursor-col-resize" : "inset-y-0 right-0 w-2 cursor-col-resize"),
73426
+ onPointerDown: (event) => {
73427
+ if (event.button !== 0) return;
73428
+ event.preventDefault();
73429
+ drag.current = { position: vertical ? event.clientY : event.clientX, size };
73430
+ setDragging(true);
73431
+ },
73432
+ onKeyDown: (event) => {
73433
+ const grow = vertical ? "ArrowUp" : side === "right" ? "ArrowLeft" : "ArrowRight";
73434
+ const shrink = vertical ? "ArrowDown" : side === "right" ? "ArrowRight" : "ArrowLeft";
73435
+ if (![grow, shrink, "Home", "End"].includes(event.key)) return;
73436
+ event.preventDefault();
73437
+ updateSize(event.key === "Home" ? min : event.key === "End" ? max : size + (event.key === grow ? 20 : -20));
73438
+ },
73439
+ children: /* @__PURE__ */ jsx334("span", { "aria-hidden": "true", className: classNames141(
73440
+ "pointer-events-none absolute rounded-full bg-neutral-300 dark:bg-neutral-600",
73441
+ vertical ? "left-1/2 top-0 h-1 w-10 -translate-x-1/2" : "left-0 top-1/2 h-10 w-1 -translate-y-1/2"
73442
+ ) })
73443
+ }
73444
+ )
73445
+ ]
73446
+ }
73447
+ );
73448
+ }
73449
+ function PageBodyLayout({ header, left, right, bottom, children, className, minCenterWidth = 240, minCenterHeight = 120, variant = "outlined", ...surface }) {
73450
+ return /* @__PURE__ */ jsxs208(Panel_default, { ...surface, variant, padding: "none", scrollable: false, flexBody: true, className: classNames141("h-full min-h-0 min-w-0", className), children: [
73451
+ header && /* @__PURE__ */ jsx334("div", { className: "shrink-0", children: header }),
73452
+ /* @__PURE__ */ jsx334("div", { className: classNames141("min-h-0 min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), children: /* @__PURE__ */ jsxs208("div", { className: "flex h-full min-h-0", style: { minWidth: minCenterWidth }, children: [
73453
+ left && /* @__PURE__ */ jsx334(Region, { side: "left", config: left }),
73454
+ /* @__PURE__ */ jsxs208("div", { className: "flex min-w-0 flex-1 flex-col", children: [
73455
+ /* @__PURE__ */ jsx334("div", { "data-page-region": "center", className: classNames141("min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), style: { minHeight: minCenterHeight, minWidth: minCenterWidth }, children }),
73456
+ bottom && /* @__PURE__ */ jsx334(Region, { side: "bottom", config: bottom })
73457
+ ] }),
73458
+ right && /* @__PURE__ */ jsx334(Region, { side: "right", config: right })
73459
+ ] }) })
73460
+ ] });
73461
+ }
73462
+
73189
73463
  // src/contexts/BottomSheetContext.tsx
73190
73464
  import {
73191
73465
  createContext as createContext9,
73192
- useCallback as useCallback53,
73466
+ useCallback as useCallback54,
73193
73467
  useContext as useContext9,
73194
- useEffect as useEffect81,
73468
+ useEffect as useEffect82,
73195
73469
  useMemo as useMemo69,
73196
- useRef as useRef80,
73197
- useState as useState96
73470
+ useRef as useRef81,
73471
+ useState as useState97
73198
73472
  } from "react";
73199
73473
  import { createPortal as createPortal19 } from "react-dom";
73200
- import classNames141 from "classnames";
73201
- import { jsx as jsx334, jsxs as jsxs208 } from "react/jsx-runtime";
73474
+ import classNames142 from "classnames";
73475
+ import { jsx as jsx335, jsxs as jsxs209 } from "react/jsx-runtime";
73202
73476
  var BottomSheetContext = createContext9(null);
73203
73477
  var TRANSITION_MS2 = 260;
73204
73478
  var renderSlot = (slot, controls) => {
@@ -73210,13 +73484,13 @@ var renderSlot = (slot, controls) => {
73210
73484
  var BottomSheetProvider = ({
73211
73485
  children
73212
73486
  }) => {
73213
- const [sheet, setSheet] = useState96(null);
73214
- const [isVisible, setIsVisible] = useState96(false);
73215
- const pendingCloseRef = useRef80(null);
73216
- const dismissSheet = useCallback53(() => {
73487
+ const [sheet, setSheet] = useState97(null);
73488
+ const [isVisible, setIsVisible] = useState97(false);
73489
+ const pendingCloseRef = useRef81(null);
73490
+ const dismissSheet = useCallback54(() => {
73217
73491
  setIsVisible(false);
73218
73492
  }, []);
73219
- const presentSheet = useCallback53((options) => {
73493
+ const presentSheet = useCallback54((options) => {
73220
73494
  if (pendingCloseRef.current) {
73221
73495
  clearTimeout(pendingCloseRef.current);
73222
73496
  pendingCloseRef.current = null;
@@ -73229,7 +73503,7 @@ var BottomSheetProvider = ({
73229
73503
  setTimeout(animateIn, 0);
73230
73504
  }
73231
73505
  }, []);
73232
- useEffect81(() => {
73506
+ useEffect82(() => {
73233
73507
  if (!isVisible && sheet) {
73234
73508
  pendingCloseRef.current = setTimeout(() => {
73235
73509
  sheet.onClose?.();
@@ -73244,7 +73518,7 @@ var BottomSheetProvider = ({
73244
73518
  }
73245
73519
  return void 0;
73246
73520
  }, [isVisible, sheet]);
73247
- useEffect81(
73521
+ useEffect82(
73248
73522
  () => () => {
73249
73523
  if (pendingCloseRef.current) {
73250
73524
  clearTimeout(pendingCloseRef.current);
@@ -73268,11 +73542,11 @@ var BottomSheetProvider = ({
73268
73542
  [presentSheet, dismissSheet, sheet, isVisible]
73269
73543
  );
73270
73544
  const overlayNode = typeof document !== "undefined" && sheet ? createPortal19(
73271
- /* @__PURE__ */ jsxs208("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
73272
- /* @__PURE__ */ jsx334(
73545
+ /* @__PURE__ */ jsxs209("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
73546
+ /* @__PURE__ */ jsx335(
73273
73547
  "div",
73274
73548
  {
73275
- className: classNames141(
73549
+ className: classNames142(
73276
73550
  "absolute inset-0 bg-neutral-900/40 transition-opacity duration-300",
73277
73551
  isVisible ? "opacity-100 pointer-events-auto" : "opacity-0"
73278
73552
  ),
@@ -73282,24 +73556,24 @@ var BottomSheetProvider = ({
73282
73556
  }
73283
73557
  }
73284
73558
  ),
73285
- /* @__PURE__ */ jsx334("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ jsxs208(
73559
+ /* @__PURE__ */ jsx335("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ jsxs209(
73286
73560
  "section",
73287
73561
  {
73288
73562
  role: "dialog",
73289
73563
  "aria-modal": "true",
73290
- className: classNames141(
73564
+ className: classNames142(
73291
73565
  "pointer-events-auto ml-auto flex w-full flex-col rounded-t-3xl border border-slate-200 bg-white shadow-2xl transition-transform duration-300 dark:border-slate-700 dark:bg-slate-900",
73292
73566
  sheet.className,
73293
73567
  isVisible ? "translate-y-0" : "translate-y-full"
73294
73568
  ),
73295
73569
  style: { minHeight: "25vh", maxHeight: "85vh" },
73296
73570
  children: [
73297
- /* @__PURE__ */ jsxs208("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
73298
- /* @__PURE__ */ jsxs208("div", { className: "space-y-1", children: [
73299
- sheet.title && /* @__PURE__ */ jsx334("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
73300
- sheet.description && /* @__PURE__ */ jsx334("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
73571
+ /* @__PURE__ */ jsxs209("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
73572
+ /* @__PURE__ */ jsxs209("div", { className: "space-y-1", children: [
73573
+ sheet.title && /* @__PURE__ */ jsx335("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
73574
+ sheet.description && /* @__PURE__ */ jsx335("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
73301
73575
  ] }),
73302
- (sheet.showCloseButton ?? true) && /* @__PURE__ */ jsx334(
73576
+ (sheet.showCloseButton ?? true) && /* @__PURE__ */ jsx335(
73303
73577
  IconButton_default,
73304
73578
  {
73305
73579
  icon: "Close",
@@ -73311,15 +73585,15 @@ var BottomSheetProvider = ({
73311
73585
  }
73312
73586
  )
73313
73587
  ] }),
73314
- /* @__PURE__ */ jsx334("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ jsx334("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
73315
- sheet.actions && /* @__PURE__ */ jsx334("div", { className: "flex flex-wrap items-center justify-end gap-3 border-t border-slate-200 px-6 py-4 dark:border-slate-800", children: renderSlot(sheet.actions, controls) })
73588
+ /* @__PURE__ */ jsx335("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ jsx335("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
73589
+ sheet.actions && /* @__PURE__ */ jsx335("div", { className: "flex flex-wrap items-center justify-end gap-3 border-t border-slate-200 px-6 py-4 dark:border-slate-800", children: renderSlot(sheet.actions, controls) })
73316
73590
  ]
73317
73591
  }
73318
73592
  ) })
73319
73593
  ] }),
73320
73594
  document.body
73321
73595
  ) : null;
73322
- return /* @__PURE__ */ jsxs208(BottomSheetContext.Provider, { value: contextValue, children: [
73596
+ return /* @__PURE__ */ jsxs209(BottomSheetContext.Provider, { value: contextValue, children: [
73323
73597
  children,
73324
73598
  overlayNode
73325
73599
  ] });
@@ -73959,8 +74233,8 @@ var SYSTEM_VARIABLES = [
73959
74233
  ];
73960
74234
 
73961
74235
  // src/components/MetricBar.tsx
73962
- import classNames142 from "classnames";
73963
- import { jsx as jsx335 } from "react/jsx-runtime";
74236
+ import classNames143 from "classnames";
74237
+ import { jsx as jsx336 } from "react/jsx-runtime";
73964
74238
  var MetricBar = ({
73965
74239
  label,
73966
74240
  value,
@@ -73970,7 +74244,7 @@ var MetricBar = ({
73970
74244
  size = "sm",
73971
74245
  className,
73972
74246
  ...rest
73973
- }) => /* @__PURE__ */ jsx335(
74247
+ }) => /* @__PURE__ */ jsx336(
73974
74248
  Progress_default,
73975
74249
  {
73976
74250
  ...rest,
@@ -73980,13 +74254,13 @@ var MetricBar = ({
73980
74254
  formatValue: value !== void 0 ? () => String(value) : void 0,
73981
74255
  size,
73982
74256
  color: tone ?? color ?? "blue",
73983
- className: classNames142("w-full", className)
74257
+ className: classNames143("w-full", className)
73984
74258
  }
73985
74259
  );
73986
74260
  MetricBar.displayName = "MetricBar";
73987
74261
 
73988
74262
  // src/components/NetworkGraph/NetworkGraph.tsx
73989
- import { useEffect as useEffect83, useId as useId47, useMemo as useMemo70, useRef as useRef82, useState as useState98 } from "react";
74263
+ import { useEffect as useEffect84, useId as useId47, useMemo as useMemo70, useRef as useRef83, useState as useState99 } from "react";
73990
74264
 
73991
74265
  // src/components/NetworkGraph/model.ts
73992
74266
  var CELL = 64;
@@ -74130,17 +74404,17 @@ function findNetworkPath(edges, source, target) {
74130
74404
  }
74131
74405
 
74132
74406
  // src/components/NetworkGraph/useNetworkCanvas.ts
74133
- import { useCallback as useCallback54, useEffect as useEffect82, useRef as useRef81, useState as useState97 } from "react";
74407
+ import { useCallback as useCallback55, useEffect as useEffect83, useRef as useRef82, useState as useState98 } from "react";
74134
74408
  function useNetworkCanvas(options) {
74135
- const canvasRef = useRef81(null);
74136
- const view = useRef81({ x: 0, y: 0, zoom: 1 });
74137
- const size = useRef81({ width: 1, height: 1 });
74138
- const latest = useRef81(options);
74139
- const frame = useRef81(null);
74140
- const [zoom, setZoom] = useState97(1);
74141
- const colors3 = useRef81(/* @__PURE__ */ new Map());
74142
- const textColor = useRef81("#737373");
74143
- const draw = useCallback54(() => {
74409
+ const canvasRef = useRef82(null);
74410
+ const view = useRef82({ x: 0, y: 0, zoom: 1 });
74411
+ const size = useRef82({ width: 1, height: 1 });
74412
+ const latest = useRef82(options);
74413
+ const frame = useRef82(null);
74414
+ const [zoom, setZoom] = useState98(1);
74415
+ const colors3 = useRef82(/* @__PURE__ */ new Map());
74416
+ const textColor = useRef82("#737373");
74417
+ const draw = useCallback55(() => {
74144
74418
  const canvas = canvasRef.current;
74145
74419
  const ctx = canvas?.getContext("2d");
74146
74420
  if (!canvas || !ctx) return;
@@ -74240,14 +74514,14 @@ function useNetworkCanvas(options) {
74240
74514
  }
74241
74515
  ctx.globalAlpha = 1;
74242
74516
  }, []);
74243
- const requestDraw = useCallback54(() => {
74517
+ const requestDraw = useCallback55(() => {
74244
74518
  if (frame.current !== null) return;
74245
74519
  frame.current = requestAnimationFrame(() => {
74246
74520
  frame.current = null;
74247
74521
  draw();
74248
74522
  });
74249
74523
  }, [draw]);
74250
- const update = useCallback54(
74524
+ const update = useCallback55(
74251
74525
  (next) => {
74252
74526
  view.current = next;
74253
74527
  setZoom(next.zoom);
@@ -74256,7 +74530,7 @@ function useNetworkCanvas(options) {
74256
74530
  },
74257
74531
  [requestDraw]
74258
74532
  );
74259
- const fit = useCallback54(
74533
+ const fit = useCallback55(
74260
74534
  () => update(
74261
74535
  fitNetwork(
74262
74536
  latest.current.nodes,
@@ -74266,11 +74540,11 @@ function useNetworkCanvas(options) {
74266
74540
  ),
74267
74541
  [update]
74268
74542
  );
74269
- const zoomBy = useCallback54(
74543
+ const zoomBy = useCallback55(
74270
74544
  (factor, x = size.current.width / 2, y = size.current.height / 2) => update(zoomAt(view.current, factor, x, y)),
74271
74545
  [update]
74272
74546
  );
74273
- const focusNode = useCallback54(
74547
+ const focusNode = useCallback55(
74274
74548
  (node) => {
74275
74549
  update({
74276
74550
  ...view.current,
@@ -74280,14 +74554,14 @@ function useNetworkCanvas(options) {
74280
74554
  },
74281
74555
  [update]
74282
74556
  );
74283
- useEffect82(() => {
74557
+ useEffect83(() => {
74284
74558
  latest.current = options;
74285
74559
  requestDraw();
74286
74560
  }, [options, requestDraw]);
74287
- useEffect82(() => {
74561
+ useEffect83(() => {
74288
74562
  fit();
74289
74563
  }, [options.model, fit]);
74290
- useEffect82(() => {
74564
+ useEffect83(() => {
74291
74565
  const canvas = canvasRef.current;
74292
74566
  if (!canvas) return;
74293
74567
  const measure = () => {
@@ -74340,7 +74614,7 @@ function useNetworkCanvas(options) {
74340
74614
  }
74341
74615
 
74342
74616
  // src/components/NetworkGraph/NetworkGraph.tsx
74343
- import { jsx as jsx336, jsxs as jsxs209 } from "react/jsx-runtime";
74617
+ import { jsx as jsx337, jsxs as jsxs210 } from "react/jsx-runtime";
74344
74618
  var NO_COMMUNITIES = [];
74345
74619
  var NO_HIGHLIGHTS = [];
74346
74620
  function NetworkGraph({
@@ -74372,10 +74646,10 @@ function NetworkGraph({
74372
74646
  }) {
74373
74647
  const t = useKitT();
74374
74648
  const helpId = useId47();
74375
- const layoutRef = useRef82(null);
74376
- const [hasLegendSpace, setHasLegendSpace] = useState98(true);
74649
+ const layoutRef = useRef83(null);
74650
+ const [hasLegendSpace, setHasLegendSpace] = useState99(true);
74377
74651
  const legendOnRight = legendPosition === "right" || legendPosition === "auto" && hasLegendSpace;
74378
- useEffect83(() => {
74652
+ useEffect84(() => {
74379
74653
  const element = layoutRef.current;
74380
74654
  if (!element || legendPosition !== "auto") return;
74381
74655
  const measure = () => setHasLegendSpace(element.getBoundingClientRect().width >= 600);
@@ -74388,12 +74662,12 @@ function NetworkGraph({
74388
74662
  () => buildNetwork(nodes, edges, communities),
74389
74663
  [nodes, edges, communities]
74390
74664
  );
74391
- const [internalSelected, setInternalSelected] = useState98(
74665
+ const [internalSelected, setInternalSelected] = useState99(
74392
74666
  defaultSelectedNodeId
74393
74667
  );
74394
- const [hidden, setHidden] = useState98(() => /* @__PURE__ */ new Set());
74395
- const [focused, setFocused] = useState98(null);
74396
- const [query, setQuery] = useState98("");
74668
+ const [hidden, setHidden] = useState99(() => /* @__PURE__ */ new Set());
74669
+ const [focused, setFocused] = useState99(null);
74670
+ const [query, setQuery] = useState99("");
74397
74671
  const enabled = useMemo70(
74398
74672
  () => new Set(
74399
74673
  visibleCommunityIds ?? model.groups.filter((g) => !hidden.has(g.id)).map((g) => g.id)
@@ -74435,7 +74709,7 @@ function NetworkGraph({
74435
74709
  onViewportChange
74436
74710
  });
74437
74711
  const locked = disabled || loading;
74438
- const drag = useRef82(null);
74712
+ const drag = useRef83(null);
74439
74713
  const select = (id) => {
74440
74714
  if (locked) return;
74441
74715
  if (selectedNodeId === void 0) setInternalSelected(id);
@@ -74451,7 +74725,7 @@ function NetworkGraph({
74451
74725
  );
74452
74726
  onVisibleCommunitiesChange?.(ids);
74453
74727
  };
74454
- useEffect83(() => {
74728
+ useEffect84(() => {
74455
74729
  const element = canvas.canvasRef.current;
74456
74730
  if (!element || locked) return;
74457
74731
  const wheel = (event) => {
@@ -74506,7 +74780,7 @@ function NetworkGraph({
74506
74780
  }, [visibleNodes, query]);
74507
74781
  const graphHeight = Number.isFinite(height) ? Math.max(160, height) : 480;
74508
74782
  const resolvedLegendTone = legendTone === "auto" ? tone : legendTone;
74509
- const legendContent = /* @__PURE__ */ jsxs209(
74783
+ const legendContent = /* @__PURE__ */ jsxs210(
74510
74784
  "fieldset",
74511
74785
  {
74512
74786
  disabled: locked,
@@ -74515,8 +74789,8 @@ function NetworkGraph({
74515
74789
  maxHeight: legendPanel ? Math.max(96, graphHeight - 64) : graphHeight
74516
74790
  },
74517
74791
  children: [
74518
- /* @__PURE__ */ jsx336("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
74519
- /* @__PURE__ */ jsx336(
74792
+ /* @__PURE__ */ jsx337("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
74793
+ /* @__PURE__ */ jsx337(
74520
74794
  Checkbox_default,
74521
74795
  {
74522
74796
  size: "sm",
@@ -74527,8 +74801,8 @@ function NetworkGraph({
74527
74801
  onChange: (event) => filter(event.target.checked ? model.groups.map((g) => g.id) : [])
74528
74802
  }
74529
74803
  ),
74530
- model.groups.map((group) => /* @__PURE__ */ jsxs209("div", { className: "flex items-center justify-between gap-2", children: [
74531
- /* @__PURE__ */ jsx336(
74804
+ model.groups.map((group) => /* @__PURE__ */ jsxs210("div", { className: "flex items-center justify-between gap-2", children: [
74805
+ /* @__PURE__ */ jsx337(
74532
74806
  Checkbox_default,
74533
74807
  {
74534
74808
  size: "sm",
@@ -74540,12 +74814,12 @@ function NetworkGraph({
74540
74814
  )
74541
74815
  }
74542
74816
  ),
74543
- /* @__PURE__ */ jsx336("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
74817
+ /* @__PURE__ */ jsx337("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
74544
74818
  ] }, group.id))
74545
74819
  ]
74546
74820
  }
74547
74821
  );
74548
- return /* @__PURE__ */ jsx336(
74822
+ return /* @__PURE__ */ jsx337(
74549
74823
  Panel_default,
74550
74824
  {
74551
74825
  ...panelProps,
@@ -74556,7 +74830,7 @@ function NetworkGraph({
74556
74830
  loading,
74557
74831
  clickable: false,
74558
74832
  scrollable: false,
74559
- children: /* @__PURE__ */ jsxs209(
74833
+ children: /* @__PURE__ */ jsxs210(
74560
74834
  "div",
74561
74835
  {
74562
74836
  className: "flex min-w-0 flex-col gap-3",
@@ -74564,7 +74838,7 @@ function NetworkGraph({
74564
74838
  "aria-label": ariaLabel ?? t("kit.networkGraph.name"),
74565
74839
  "aria-disabled": locked || void 0,
74566
74840
  children: [
74567
- showControls && /* @__PURE__ */ jsx336("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx336("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsx336(
74841
+ showControls && /* @__PURE__ */ jsx337("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx337("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsx337(
74568
74842
  Combobox_default,
74569
74843
  {
74570
74844
  size: "sm",
@@ -74586,7 +74860,7 @@ function NetworkGraph({
74586
74860
  }
74587
74861
  }
74588
74862
  ) }) }),
74589
- /* @__PURE__ */ jsxs209(
74863
+ /* @__PURE__ */ jsxs210(
74590
74864
  "div",
74591
74865
  {
74592
74866
  ref: layoutRef,
@@ -74594,13 +74868,13 @@ function NetworkGraph({
74594
74868
  style: { flexDirection: legendOnRight ? "row" : "column" },
74595
74869
  "data-legend-position": legendOnRight ? "right" : "bottom",
74596
74870
  children: [
74597
- /* @__PURE__ */ jsxs209(
74871
+ /* @__PURE__ */ jsxs210(
74598
74872
  "div",
74599
74873
  {
74600
74874
  className: "relative min-w-0 flex-1",
74601
74875
  style: { height: graphHeight, minHeight: graphHeight },
74602
74876
  children: [
74603
- /* @__PURE__ */ jsx336(
74877
+ /* @__PURE__ */ jsx337(
74604
74878
  "canvas",
74605
74879
  {
74606
74880
  ref: canvas.canvasRef,
@@ -74669,11 +74943,11 @@ function NetworkGraph({
74669
74943
  }
74670
74944
  }
74671
74945
  ),
74672
- showControls && /* @__PURE__ */ jsxs209("div", { className: "absolute bottom-3 right-3 z-10 flex items-center gap-0.5 rounded-lg border border-neutral-200 bg-white/90 p-1 shadow-sm backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90", children: [
74673
- /* @__PURE__ */ jsx336(
74946
+ showControls && /* @__PURE__ */ jsxs210("div", { className: "absolute bottom-3 right-3 z-10 flex items-center gap-0.5 rounded-lg border border-neutral-200 bg-white/90 p-1 shadow-sm backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90", children: [
74947
+ /* @__PURE__ */ jsx337(
74674
74948
  IconButton_default,
74675
74949
  {
74676
- icon: /* @__PURE__ */ jsxs209(
74950
+ icon: /* @__PURE__ */ jsxs210(
74677
74951
  "svg",
74678
74952
  {
74679
74953
  viewBox: "0 0 24 24",
@@ -74684,10 +74958,10 @@ function NetworkGraph({
74684
74958
  strokeLinejoin: "round",
74685
74959
  "aria-hidden": "true",
74686
74960
  children: [
74687
- /* @__PURE__ */ jsx336("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
74688
- /* @__PURE__ */ jsx336("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
74689
- /* @__PURE__ */ jsx336("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
74690
- /* @__PURE__ */ jsx336("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
74961
+ /* @__PURE__ */ jsx337("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
74962
+ /* @__PURE__ */ jsx337("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
74963
+ /* @__PURE__ */ jsx337("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
74964
+ /* @__PURE__ */ jsx337("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
74691
74965
  ]
74692
74966
  }
74693
74967
  ),
@@ -74700,10 +74974,10 @@ function NetworkGraph({
74700
74974
  onClick: canvas.fit
74701
74975
  }
74702
74976
  ),
74703
- /* @__PURE__ */ jsx336(
74977
+ /* @__PURE__ */ jsx337(
74704
74978
  IconButton_default,
74705
74979
  {
74706
- icon: /* @__PURE__ */ jsx336(
74980
+ icon: /* @__PURE__ */ jsx337(
74707
74981
  "svg",
74708
74982
  {
74709
74983
  viewBox: "0 0 24 24",
@@ -74712,7 +74986,7 @@ function NetworkGraph({
74712
74986
  strokeWidth: 2,
74713
74987
  strokeLinecap: "round",
74714
74988
  "aria-hidden": "true",
74715
- children: /* @__PURE__ */ jsx336("path", { d: "M6 12h12" })
74989
+ children: /* @__PURE__ */ jsx337("path", { d: "M6 12h12" })
74716
74990
  }
74717
74991
  ),
74718
74992
  size: "xs",
@@ -74724,7 +74998,7 @@ function NetworkGraph({
74724
74998
  onClick: () => canvas.zoomBy(0.8)
74725
74999
  }
74726
75000
  ),
74727
- /* @__PURE__ */ jsxs209(
75001
+ /* @__PURE__ */ jsxs210(
74728
75002
  "span",
74729
75003
  {
74730
75004
  className: "min-w-[3.5ch] px-1 text-center text-[11px] tabular-nums text-neutral-500 dark:text-neutral-400",
@@ -74735,7 +75009,7 @@ function NetworkGraph({
74735
75009
  ]
74736
75010
  }
74737
75011
  ),
74738
- /* @__PURE__ */ jsx336(
75012
+ /* @__PURE__ */ jsx337(
74739
75013
  IconButton_default,
74740
75014
  {
74741
75015
  icon: "Add",
@@ -74748,7 +75022,7 @@ function NetworkGraph({
74748
75022
  onClick: () => canvas.zoomBy(1.25)
74749
75023
  }
74750
75024
  ),
74751
- /* @__PURE__ */ jsx336(
75025
+ /* @__PURE__ */ jsx337(
74752
75026
  IconButton_default,
74753
75027
  {
74754
75028
  icon: "Reset",
@@ -74766,18 +75040,18 @@ function NetworkGraph({
74766
75040
  }
74767
75041
  )
74768
75042
  ] }),
74769
- !visibleNodes.length && /* @__PURE__ */ jsx336("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
75043
+ !visibleNodes.length && /* @__PURE__ */ jsx337("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
74770
75044
  ]
74771
75045
  }
74772
75046
  ),
74773
- showCommunities && model.groups.length > 0 && /* @__PURE__ */ jsx336(
75047
+ showCommunities && model.groups.length > 0 && /* @__PURE__ */ jsx337(
74774
75048
  "div",
74775
75049
  {
74776
75050
  className: "min-w-0 shrink-0",
74777
75051
  style: {
74778
75052
  width: legendOnRight ? legendPanel ? 224 : 192 : "100%"
74779
75053
  },
74780
- children: legendPanel ? /* @__PURE__ */ jsx336(
75054
+ children: legendPanel ? /* @__PURE__ */ jsx337(
74781
75055
  Panel_default,
74782
75056
  {
74783
75057
  variant: legendVariant === "auto" ? variant : legendVariant,
@@ -74796,8 +75070,8 @@ function NetworkGraph({
74796
75070
  ]
74797
75071
  }
74798
75072
  ),
74799
- /* @__PURE__ */ jsx336("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
74800
- /* @__PURE__ */ jsx336(
75073
+ /* @__PURE__ */ jsx337("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
75074
+ /* @__PURE__ */ jsx337(
74801
75075
  "p",
74802
75076
  {
74803
75077
  role: "status",
@@ -75009,6 +75283,7 @@ export {
75009
75283
  OTP_VARIANTS,
75010
75284
  OrganizationChart_default as OrganizationChart,
75011
75285
  PAGED_PANEL_LOADERS,
75286
+ SURFACE_VARIANTS as PAGE_HEADER_VARIANTS,
75012
75287
  PANEL_HERO_TITLE_ELEMENTS,
75013
75288
  PANEL_HERO_VARIANTS,
75014
75289
  PANEL_TONE_FOR_FIELD,
@@ -75023,6 +75298,7 @@ export {
75023
75298
  PROGRESS_MOTION_DIRECTIONS,
75024
75299
  PROGRESS_MOTION_SPEEDS,
75025
75300
  PT_KIT_CATALOG,
75301
+ PageBodyLayout,
75026
75302
  PageHeader_default as PageHeader,
75027
75303
  PagedPanel_default as PagedPanel,
75028
75304
  Panel_default as Panel,
@@ -75048,7 +75324,7 @@ export {
75048
75324
  SIDE_MENU_HEADER_HEIGHT,
75049
75325
  SIDE_MENU_HEADER_SEAM,
75050
75326
  SIDE_PANEL_SIDES,
75051
- SIDEBAR_VARIANTS as SIDE_PANEL_VARIANTS,
75327
+ SURFACE_VARIANTS as SIDE_PANEL_VARIANTS,
75052
75328
  SLIDER_ORIENTATIONS,
75053
75329
  SLIDER_VARIANTS,
75054
75330
  PALETTE_MIME as SMART_GRID_PALETTE_MIME,