@cjlapao/ui-kit 0.2.12 → 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.cjs CHANGED
@@ -219,6 +219,7 @@ __export(src_exports, {
219
219
  OTP_VARIANTS: () => OTP_VARIANTS,
220
220
  OrganizationChart: () => OrganizationChart_default,
221
221
  PAGED_PANEL_LOADERS: () => PAGED_PANEL_LOADERS,
222
+ PAGE_HEADER_VARIANTS: () => SURFACE_VARIANTS,
222
223
  PANEL_HERO_TITLE_ELEMENTS: () => PANEL_HERO_TITLE_ELEMENTS,
223
224
  PANEL_HERO_VARIANTS: () => PANEL_HERO_VARIANTS,
224
225
  PANEL_TONE_FOR_FIELD: () => PANEL_TONE_FOR_FIELD,
@@ -233,6 +234,7 @@ __export(src_exports, {
233
234
  PROGRESS_MOTION_DIRECTIONS: () => PROGRESS_MOTION_DIRECTIONS,
234
235
  PROGRESS_MOTION_SPEEDS: () => PROGRESS_MOTION_SPEEDS,
235
236
  PT_KIT_CATALOG: () => PT_KIT_CATALOG,
237
+ PageBodyLayout: () => PageBodyLayout,
236
238
  PageHeader: () => PageHeader_default,
237
239
  PagedPanel: () => PagedPanel_default,
238
240
  Panel: () => Panel_default,
@@ -23031,6 +23033,10 @@ var PageHeader = ({
23031
23033
  children,
23032
23034
  variant = "default",
23033
23035
  accentColor = "blue",
23036
+ tone = "neutral",
23037
+ glassOpacity,
23038
+ vibrancy,
23039
+ specularMode,
23034
23040
  padding,
23035
23041
  paddingTop,
23036
23042
  paddingRight,
@@ -23040,7 +23046,8 @@ var PageHeader = ({
23040
23046
  className = "",
23041
23047
  ...rest
23042
23048
  }) => {
23043
- const surface = variant === "default" ? null : getSidebarSurfaceTokens(variant, accentColor);
23049
+ const sharedSurface = variant !== "default" && variant !== "floating" && variant !== "floating-glass";
23050
+ const surface = variant === "floating" || variant === "floating-glass" ? getSidebarSurfaceTokens(variant, accentColor) : null;
23044
23051
  const pair = surface ? "xs" : "none";
23045
23052
  const gutter = {
23046
23053
  top: paddingTop ?? padding ?? pair,
@@ -23053,7 +23060,7 @@ var PageHeader = ({
23053
23060
  {
23054
23061
  ...rest,
23055
23062
  className: (0, import_classnames53.default)(
23056
- "flex w-full items-center justify-between gap-4 px-5",
23063
+ "relative isolate flex w-full shrink-0 items-center justify-between gap-4 px-5",
23057
23064
  SIDE_MENU_HEADER_HEIGHT,
23058
23065
  getSurfaceGutterClass("top", gutter.top),
23059
23066
  getSurfaceGutterClass("right", gutter.right),
@@ -23065,10 +23072,24 @@ var PageHeader = ({
23065
23072
  surface.border,
23066
23073
  surface.shadow,
23067
23074
  surface.fill
23068
- ) : (0, import_classnames53.default)("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
23075
+ ) : !sharedSurface && (0, import_classnames53.default)("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
23069
23076
  className
23070
23077
  ),
23071
23078
  children: [
23079
+ sharedSurface && /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 -z-10", style: { borderRadius: "inherit" }, children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
23080
+ Panel_default,
23081
+ {
23082
+ variant,
23083
+ tone,
23084
+ glassOpacity,
23085
+ vibrancy,
23086
+ specularMode,
23087
+ padding: "none",
23088
+ corner: "none",
23089
+ className: "h-full w-full",
23090
+ style: { borderRadius: "inherit" }
23091
+ }
23092
+ ) }),
23072
23093
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: start }),
23073
23094
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: center }),
23074
23095
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: end }),
@@ -44852,6 +44873,7 @@ var SIZE_TOKENS4 = {
44852
44873
  };
44853
44874
  var SidePanel = ({
44854
44875
  isOpen,
44876
+ docked = false,
44855
44877
  onClose,
44856
44878
  title,
44857
44879
  subtitle,
@@ -45012,7 +45034,7 @@ var SidePanel = ({
45012
45034
  },
45013
45035
  [resizable, side, currentWidth, minWidth, maxWidth]
45014
45036
  );
45015
- if (!mounted) return null;
45037
+ if (!mounted || docked && !isOpen) return null;
45016
45038
  const edgeOffset = entered ? shellWidth : 0;
45017
45039
  const barTone = isDragging ? `opacity-100 bg-${effectiveTone}-500` : `bg-${effectiveTone}-400 opacity-0 group-hover:opacity-70 group-active:opacity-100`;
45018
45040
  const edgeProperty = side === "right" ? "right" : "left";
@@ -45029,15 +45051,15 @@ var SidePanel = ({
45029
45051
  "data-sp-shell": true,
45030
45052
  "data-collapsed": collapsible ? isCollapsed : void 0,
45031
45053
  className: (0, import_classnames80.default)(
45032
- "absolute z-40 overflow-hidden",
45033
- isInset ? INSET_GAP_Y_CLASS : "top-0 h-full",
45054
+ docked ? "relative h-full w-full overflow-hidden" : "absolute z-40 overflow-hidden",
45055
+ !docked && (isInset ? INSET_GAP_Y_CLASS : "top-0 h-full"),
45034
45056
  side === "right" ? "right-0" : "left-0",
45035
45057
  cornerClass,
45036
45058
  legacyVariant && borderClass,
45037
45059
  legacyVariant ? shadowClass : panelOuterChrome
45038
45060
  ),
45039
45061
  style: {
45040
- width: entered ? shellWidth : 0,
45062
+ width: docked ? "100%" : entered ? shellWidth : 0,
45041
45063
  // Inline rather than `transition-[width] duration-… ease-…`: an
45042
45064
  // arbitrary easing utility would have to survive the safelist, and
45043
45065
  // this curve is not themeable anyway. It decelerates hard at the end,
@@ -45099,7 +45121,7 @@ var SidePanel = ({
45099
45121
  isCollapsed && "opacity-0",
45100
45122
  className
45101
45123
  ),
45102
- style: { width: resolvedWidth },
45124
+ style: { width: docked ? "100%" : resolvedWidth },
45103
45125
  onKeyDown,
45104
45126
  children: [
45105
45127
  /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
@@ -45186,7 +45208,7 @@ var SidePanel = ({
45186
45208
  ]
45187
45209
  }
45188
45210
  ),
45189
- overlay && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45211
+ overlay && !docked && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45190
45212
  "div",
45191
45213
  {
45192
45214
  "aria-hidden": "true",
@@ -45203,7 +45225,7 @@ var SidePanel = ({
45203
45225
  }
45204
45226
  }
45205
45227
  ),
45206
- resizable && // ARIA 1.2 resizable separator: focusable (tabIndex), arrow keys /
45228
+ resizable && !docked && // ARIA 1.2 resizable separator: focusable (tabIndex), arrow keys /
45207
45229
  // Home / End resize, aria-valuenow|min|max report the width. Parked
45208
45230
  // (collapsed), it drops the role and every aria-* and leaves the tab
45209
45231
  // order — see `handleParked`.
@@ -73687,12 +73709,137 @@ var TerminalTabs = (0, import_react309.forwardRef)(
73687
73709
  }
73688
73710
  );
73689
73711
 
73690
- // src/contexts/BottomSheetContext.tsx
73712
+ // src/components/PageBodyLayout.tsx
73691
73713
  var import_react310 = require("react");
73692
- var import_react_dom19 = require("react-dom");
73693
73714
  var import_classnames141 = __toESM(require("classnames"), 1);
73694
73715
  var import_jsx_runtime334 = require("react/jsx-runtime");
73695
- var BottomSheetContext = (0, import_react310.createContext)(null);
73716
+ function Region({ config, side }) {
73717
+ const vertical = side === "bottom";
73718
+ const [internalCollapsed, setInternalCollapsed] = (0, import_react310.useState)(config.defaultCollapsed ?? false);
73719
+ const [internalSize, setInternalSize] = (0, import_react310.useState)(config.defaultSize ?? (vertical ? 200 : 280));
73720
+ const collapsed = config.collapsed ?? internalCollapsed;
73721
+ const min = Math.max(0, config.minSize ?? (vertical ? 100 : 160));
73722
+ const max = Math.max(min, config.maxSize ?? (vertical ? 600 : 640));
73723
+ const size = Math.max(min, Math.min(max, config.size ?? internalSize));
73724
+ const collapsedSize = Math.max(0, config.collapsedSize ?? (vertical ? 40 : COLLAPSED_RAIL_WIDTH));
73725
+ const setCollapsed = (next) => {
73726
+ if (config.collapsed === void 0) setInternalCollapsed(next);
73727
+ config.onCollapsedChange?.(next);
73728
+ };
73729
+ const updateSize = (0, import_react310.useCallback)((next) => {
73730
+ const value = Math.max(min, Math.min(max, next));
73731
+ if (config.size === void 0) setInternalSize(value);
73732
+ config.onSizeChange?.(value);
73733
+ }, [min, max, config.size, config.onSizeChange]);
73734
+ const drag = (0, import_react310.useRef)(null);
73735
+ const [dragging, setDragging] = (0, import_react310.useState)(false);
73736
+ (0, import_react310.useEffect)(() => {
73737
+ if (!dragging) return;
73738
+ const previousCursor = document.body.style.cursor;
73739
+ const previousSelect = document.body.style.userSelect;
73740
+ document.body.style.cursor = vertical ? "row-resize" : "col-resize";
73741
+ document.body.style.userSelect = "none";
73742
+ const move = (event) => {
73743
+ if (!drag.current) return;
73744
+ const delta = (vertical ? event.clientY : event.clientX) - drag.current.position;
73745
+ updateSize(drag.current.size + delta * (side === "left" ? 1 : -1));
73746
+ };
73747
+ const stop = () => {
73748
+ drag.current = null;
73749
+ setDragging(false);
73750
+ };
73751
+ window.addEventListener("pointermove", move);
73752
+ window.addEventListener("pointerup", stop);
73753
+ window.addEventListener("pointercancel", stop);
73754
+ return () => {
73755
+ window.removeEventListener("pointermove", move);
73756
+ window.removeEventListener("pointerup", stop);
73757
+ window.removeEventListener("pointercancel", stop);
73758
+ document.body.style.cursor = previousCursor;
73759
+ document.body.style.userSelect = previousSelect;
73760
+ };
73761
+ }, [dragging, vertical, side, updateSize]);
73762
+ const canResize = !collapsed && (config.resizable ?? side !== "left");
73763
+ const dimension = collapsed ? collapsedSize : size;
73764
+ return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
73765
+ "section",
73766
+ {
73767
+ "aria-label": config.label,
73768
+ "data-page-region": side,
73769
+ "data-collapsed": collapsed,
73770
+ className: "relative min-h-0 min-w-0 shrink-0 overflow-hidden",
73771
+ style: vertical ? { height: dimension } : { width: dimension },
73772
+ children: [
73773
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "flex h-full min-h-0 flex-col", children: [
73774
+ config.showToggle !== false && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "flex shrink-0 justify-end px-2 py-1", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
73775
+ IconButton_default,
73776
+ {
73777
+ size: "xs",
73778
+ variant: "ghost",
73779
+ color: "neutral",
73780
+ icon: vertical ? collapsed ? "ArrowChevronUp" : "ArrowChevronDown" : collapsed === (side === "left") ? "ArrowChevronRight" : "ArrowChevronLeft",
73781
+ "aria-label": `${collapsed ? "Expand" : "Collapse"} ${config.label}`,
73782
+ "aria-expanded": !collapsed,
73783
+ onClick: () => setCollapsed(!collapsed)
73784
+ }
73785
+ ) }),
73786
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: (0, import_classnames141.default)("min-h-0 min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), children: typeof config.content === "function" ? config.content({ collapsed, setCollapsed, size }) : /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "h-full", hidden: collapsed, inert: collapsed || void 0, children: config.content }) })
73787
+ ] }),
73788
+ canResize && // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions, jsx-a11y/no-noninteractive-tabindex -- focusable ARIA separator provides keyboard and pointer resizing
73789
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
73790
+ "div",
73791
+ {
73792
+ role: "separator",
73793
+ tabIndex: 0,
73794
+ "aria-label": `Resize ${config.label}`,
73795
+ "aria-orientation": vertical ? "horizontal" : "vertical",
73796
+ "aria-valuemin": min,
73797
+ "aria-valuemax": max,
73798
+ "aria-valuenow": size,
73799
+ className: (0, import_classnames141.default)("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"),
73800
+ onPointerDown: (event) => {
73801
+ if (event.button !== 0) return;
73802
+ event.preventDefault();
73803
+ drag.current = { position: vertical ? event.clientY : event.clientX, size };
73804
+ setDragging(true);
73805
+ },
73806
+ onKeyDown: (event) => {
73807
+ const grow = vertical ? "ArrowUp" : side === "right" ? "ArrowLeft" : "ArrowRight";
73808
+ const shrink = vertical ? "ArrowDown" : side === "right" ? "ArrowRight" : "ArrowLeft";
73809
+ if (![grow, shrink, "Home", "End"].includes(event.key)) return;
73810
+ event.preventDefault();
73811
+ updateSize(event.key === "Home" ? min : event.key === "End" ? max : size + (event.key === grow ? 20 : -20));
73812
+ },
73813
+ children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { "aria-hidden": "true", className: (0, import_classnames141.default)(
73814
+ "pointer-events-none absolute rounded-full bg-neutral-300 dark:bg-neutral-600",
73815
+ 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"
73816
+ ) })
73817
+ }
73818
+ )
73819
+ ]
73820
+ }
73821
+ );
73822
+ }
73823
+ function PageBodyLayout({ header, left, right, bottom, children, className, minCenterWidth = 240, minCenterHeight = 120, variant = "outlined", ...surface }) {
73824
+ return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(Panel_default, { ...surface, variant, padding: "none", scrollable: false, flexBody: true, className: (0, import_classnames141.default)("h-full min-h-0 min-w-0", className), children: [
73825
+ header && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "shrink-0", children: header }),
73826
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: (0, import_classnames141.default)("min-h-0 min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), children: /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "flex h-full min-h-0", style: { minWidth: minCenterWidth }, children: [
73827
+ left && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(Region, { side: "left", config: left }),
73828
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col", children: [
73829
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { "data-page-region": "center", className: (0, import_classnames141.default)("min-w-0 flex-1 overflow-auto", THIN_SCROLLBAR), style: { minHeight: minCenterHeight, minWidth: minCenterWidth }, children }),
73830
+ bottom && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(Region, { side: "bottom", config: bottom })
73831
+ ] }),
73832
+ right && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(Region, { side: "right", config: right })
73833
+ ] }) })
73834
+ ] });
73835
+ }
73836
+
73837
+ // src/contexts/BottomSheetContext.tsx
73838
+ var import_react311 = require("react");
73839
+ var import_react_dom19 = require("react-dom");
73840
+ var import_classnames142 = __toESM(require("classnames"), 1);
73841
+ var import_jsx_runtime335 = require("react/jsx-runtime");
73842
+ var BottomSheetContext = (0, import_react311.createContext)(null);
73696
73843
  var TRANSITION_MS2 = 260;
73697
73844
  var renderSlot = (slot, controls) => {
73698
73845
  if (!slot) {
@@ -73703,13 +73850,13 @@ var renderSlot = (slot, controls) => {
73703
73850
  var BottomSheetProvider = ({
73704
73851
  children
73705
73852
  }) => {
73706
- const [sheet, setSheet] = (0, import_react310.useState)(null);
73707
- const [isVisible, setIsVisible] = (0, import_react310.useState)(false);
73708
- const pendingCloseRef = (0, import_react310.useRef)(null);
73709
- const dismissSheet = (0, import_react310.useCallback)(() => {
73853
+ const [sheet, setSheet] = (0, import_react311.useState)(null);
73854
+ const [isVisible, setIsVisible] = (0, import_react311.useState)(false);
73855
+ const pendingCloseRef = (0, import_react311.useRef)(null);
73856
+ const dismissSheet = (0, import_react311.useCallback)(() => {
73710
73857
  setIsVisible(false);
73711
73858
  }, []);
73712
- const presentSheet = (0, import_react310.useCallback)((options) => {
73859
+ const presentSheet = (0, import_react311.useCallback)((options) => {
73713
73860
  if (pendingCloseRef.current) {
73714
73861
  clearTimeout(pendingCloseRef.current);
73715
73862
  pendingCloseRef.current = null;
@@ -73722,7 +73869,7 @@ var BottomSheetProvider = ({
73722
73869
  setTimeout(animateIn, 0);
73723
73870
  }
73724
73871
  }, []);
73725
- (0, import_react310.useEffect)(() => {
73872
+ (0, import_react311.useEffect)(() => {
73726
73873
  if (!isVisible && sheet) {
73727
73874
  pendingCloseRef.current = setTimeout(() => {
73728
73875
  sheet.onClose?.();
@@ -73737,7 +73884,7 @@ var BottomSheetProvider = ({
73737
73884
  }
73738
73885
  return void 0;
73739
73886
  }, [isVisible, sheet]);
73740
- (0, import_react310.useEffect)(
73887
+ (0, import_react311.useEffect)(
73741
73888
  () => () => {
73742
73889
  if (pendingCloseRef.current) {
73743
73890
  clearTimeout(pendingCloseRef.current);
@@ -73745,13 +73892,13 @@ var BottomSheetProvider = ({
73745
73892
  },
73746
73893
  []
73747
73894
  );
73748
- const controls = (0, import_react310.useMemo)(
73895
+ const controls = (0, import_react311.useMemo)(
73749
73896
  () => ({
73750
73897
  dismiss: dismissSheet
73751
73898
  }),
73752
73899
  [dismissSheet]
73753
73900
  );
73754
- const contextValue = (0, import_react310.useMemo)(
73901
+ const contextValue = (0, import_react311.useMemo)(
73755
73902
  () => ({
73756
73903
  presentSheet,
73757
73904
  dismissSheet,
@@ -73761,11 +73908,11 @@ var BottomSheetProvider = ({
73761
73908
  [presentSheet, dismissSheet, sheet, isVisible]
73762
73909
  );
73763
73910
  const overlayNode = typeof document !== "undefined" && sheet ? (0, import_react_dom19.createPortal)(
73764
- /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
73765
- /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
73911
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
73912
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
73766
73913
  "div",
73767
73914
  {
73768
- className: (0, import_classnames141.default)(
73915
+ className: (0, import_classnames142.default)(
73769
73916
  "absolute inset-0 bg-neutral-900/40 transition-opacity duration-300",
73770
73917
  isVisible ? "opacity-100 pointer-events-auto" : "opacity-0"
73771
73918
  ),
@@ -73775,24 +73922,24 @@ var BottomSheetProvider = ({
73775
73922
  }
73776
73923
  }
73777
73924
  ),
73778
- /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
73925
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(
73779
73926
  "section",
73780
73927
  {
73781
73928
  role: "dialog",
73782
73929
  "aria-modal": "true",
73783
- className: (0, import_classnames141.default)(
73930
+ className: (0, import_classnames142.default)(
73784
73931
  "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",
73785
73932
  sheet.className,
73786
73933
  isVisible ? "translate-y-0" : "translate-y-full"
73787
73934
  ),
73788
73935
  style: { minHeight: "25vh", maxHeight: "85vh" },
73789
73936
  children: [
73790
- /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
73791
- /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "space-y-1", children: [
73792
- sheet.title && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
73793
- sheet.description && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
73937
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
73938
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)("div", { className: "space-y-1", children: [
73939
+ sheet.title && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
73940
+ sheet.description && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
73794
73941
  ] }),
73795
- (sheet.showCloseButton ?? true) && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
73942
+ (sheet.showCloseButton ?? true) && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
73796
73943
  IconButton_default,
73797
73944
  {
73798
73945
  icon: "Close",
@@ -73804,21 +73951,21 @@ var BottomSheetProvider = ({
73804
73951
  }
73805
73952
  )
73806
73953
  ] }),
73807
- /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
73808
- sheet.actions && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("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) })
73954
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
73955
+ sheet.actions && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("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) })
73809
73956
  ]
73810
73957
  }
73811
73958
  ) })
73812
73959
  ] }),
73813
73960
  document.body
73814
73961
  ) : null;
73815
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(BottomSheetContext.Provider, { value: contextValue, children: [
73962
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(BottomSheetContext.Provider, { value: contextValue, children: [
73816
73963
  children,
73817
73964
  overlayNode
73818
73965
  ] });
73819
73966
  };
73820
73967
  var useBottomSheet = () => {
73821
- const context = (0, import_react310.useContext)(BottomSheetContext);
73968
+ const context = (0, import_react311.useContext)(BottomSheetContext);
73822
73969
  if (!context) {
73823
73970
  throw new Error("useBottomSheet must be used within a BottomSheetProvider");
73824
73971
  }
@@ -74452,8 +74599,8 @@ var SYSTEM_VARIABLES = [
74452
74599
  ];
74453
74600
 
74454
74601
  // src/components/MetricBar.tsx
74455
- var import_classnames142 = __toESM(require("classnames"), 1);
74456
- var import_jsx_runtime335 = require("react/jsx-runtime");
74602
+ var import_classnames143 = __toESM(require("classnames"), 1);
74603
+ var import_jsx_runtime336 = require("react/jsx-runtime");
74457
74604
  var MetricBar = ({
74458
74605
  label,
74459
74606
  value,
@@ -74463,7 +74610,7 @@ var MetricBar = ({
74463
74610
  size = "sm",
74464
74611
  className,
74465
74612
  ...rest
74466
- }) => /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
74613
+ }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
74467
74614
  Progress_default,
74468
74615
  {
74469
74616
  ...rest,
@@ -74473,13 +74620,13 @@ var MetricBar = ({
74473
74620
  formatValue: value !== void 0 ? () => String(value) : void 0,
74474
74621
  size,
74475
74622
  color: tone ?? color ?? "blue",
74476
- className: (0, import_classnames142.default)("w-full", className)
74623
+ className: (0, import_classnames143.default)("w-full", className)
74477
74624
  }
74478
74625
  );
74479
74626
  MetricBar.displayName = "MetricBar";
74480
74627
 
74481
74628
  // src/components/NetworkGraph/NetworkGraph.tsx
74482
- var import_react312 = require("react");
74629
+ var import_react313 = require("react");
74483
74630
 
74484
74631
  // src/components/NetworkGraph/model.ts
74485
74632
  var CELL = 64;
@@ -74623,17 +74770,17 @@ function findNetworkPath(edges, source, target) {
74623
74770
  }
74624
74771
 
74625
74772
  // src/components/NetworkGraph/useNetworkCanvas.ts
74626
- var import_react311 = require("react");
74773
+ var import_react312 = require("react");
74627
74774
  function useNetworkCanvas(options) {
74628
- const canvasRef = (0, import_react311.useRef)(null);
74629
- const view = (0, import_react311.useRef)({ x: 0, y: 0, zoom: 1 });
74630
- const size = (0, import_react311.useRef)({ width: 1, height: 1 });
74631
- const latest = (0, import_react311.useRef)(options);
74632
- const frame = (0, import_react311.useRef)(null);
74633
- const [zoom, setZoom] = (0, import_react311.useState)(1);
74634
- const colors3 = (0, import_react311.useRef)(/* @__PURE__ */ new Map());
74635
- const textColor = (0, import_react311.useRef)("#737373");
74636
- const draw = (0, import_react311.useCallback)(() => {
74775
+ const canvasRef = (0, import_react312.useRef)(null);
74776
+ const view = (0, import_react312.useRef)({ x: 0, y: 0, zoom: 1 });
74777
+ const size = (0, import_react312.useRef)({ width: 1, height: 1 });
74778
+ const latest = (0, import_react312.useRef)(options);
74779
+ const frame = (0, import_react312.useRef)(null);
74780
+ const [zoom, setZoom] = (0, import_react312.useState)(1);
74781
+ const colors3 = (0, import_react312.useRef)(/* @__PURE__ */ new Map());
74782
+ const textColor = (0, import_react312.useRef)("#737373");
74783
+ const draw = (0, import_react312.useCallback)(() => {
74637
74784
  const canvas = canvasRef.current;
74638
74785
  const ctx = canvas?.getContext("2d");
74639
74786
  if (!canvas || !ctx) return;
@@ -74733,14 +74880,14 @@ function useNetworkCanvas(options) {
74733
74880
  }
74734
74881
  ctx.globalAlpha = 1;
74735
74882
  }, []);
74736
- const requestDraw = (0, import_react311.useCallback)(() => {
74883
+ const requestDraw = (0, import_react312.useCallback)(() => {
74737
74884
  if (frame.current !== null) return;
74738
74885
  frame.current = requestAnimationFrame(() => {
74739
74886
  frame.current = null;
74740
74887
  draw();
74741
74888
  });
74742
74889
  }, [draw]);
74743
- const update = (0, import_react311.useCallback)(
74890
+ const update = (0, import_react312.useCallback)(
74744
74891
  (next) => {
74745
74892
  view.current = next;
74746
74893
  setZoom(next.zoom);
@@ -74749,7 +74896,7 @@ function useNetworkCanvas(options) {
74749
74896
  },
74750
74897
  [requestDraw]
74751
74898
  );
74752
- const fit = (0, import_react311.useCallback)(
74899
+ const fit = (0, import_react312.useCallback)(
74753
74900
  () => update(
74754
74901
  fitNetwork(
74755
74902
  latest.current.nodes,
@@ -74759,11 +74906,11 @@ function useNetworkCanvas(options) {
74759
74906
  ),
74760
74907
  [update]
74761
74908
  );
74762
- const zoomBy = (0, import_react311.useCallback)(
74909
+ const zoomBy = (0, import_react312.useCallback)(
74763
74910
  (factor, x = size.current.width / 2, y = size.current.height / 2) => update(zoomAt(view.current, factor, x, y)),
74764
74911
  [update]
74765
74912
  );
74766
- const focusNode = (0, import_react311.useCallback)(
74913
+ const focusNode = (0, import_react312.useCallback)(
74767
74914
  (node) => {
74768
74915
  update({
74769
74916
  ...view.current,
@@ -74773,14 +74920,14 @@ function useNetworkCanvas(options) {
74773
74920
  },
74774
74921
  [update]
74775
74922
  );
74776
- (0, import_react311.useEffect)(() => {
74923
+ (0, import_react312.useEffect)(() => {
74777
74924
  latest.current = options;
74778
74925
  requestDraw();
74779
74926
  }, [options, requestDraw]);
74780
- (0, import_react311.useEffect)(() => {
74927
+ (0, import_react312.useEffect)(() => {
74781
74928
  fit();
74782
74929
  }, [options.model, fit]);
74783
- (0, import_react311.useEffect)(() => {
74930
+ (0, import_react312.useEffect)(() => {
74784
74931
  const canvas = canvasRef.current;
74785
74932
  if (!canvas) return;
74786
74933
  const measure = () => {
@@ -74833,7 +74980,7 @@ function useNetworkCanvas(options) {
74833
74980
  }
74834
74981
 
74835
74982
  // src/components/NetworkGraph/NetworkGraph.tsx
74836
- var import_jsx_runtime336 = require("react/jsx-runtime");
74983
+ var import_jsx_runtime337 = require("react/jsx-runtime");
74837
74984
  var NO_COMMUNITIES = [];
74838
74985
  var NO_HIGHLIGHTS = [];
74839
74986
  function NetworkGraph({
@@ -74864,11 +75011,11 @@ function NetworkGraph({
74864
75011
  ...panelProps
74865
75012
  }) {
74866
75013
  const t = useKitT();
74867
- const helpId = (0, import_react312.useId)();
74868
- const layoutRef = (0, import_react312.useRef)(null);
74869
- const [hasLegendSpace, setHasLegendSpace] = (0, import_react312.useState)(true);
75014
+ const helpId = (0, import_react313.useId)();
75015
+ const layoutRef = (0, import_react313.useRef)(null);
75016
+ const [hasLegendSpace, setHasLegendSpace] = (0, import_react313.useState)(true);
74870
75017
  const legendOnRight = legendPosition === "right" || legendPosition === "auto" && hasLegendSpace;
74871
- (0, import_react312.useEffect)(() => {
75018
+ (0, import_react313.useEffect)(() => {
74872
75019
  const element = layoutRef.current;
74873
75020
  if (!element || legendPosition !== "auto") return;
74874
75021
  const measure = () => setHasLegendSpace(element.getBoundingClientRect().width >= 600);
@@ -74877,38 +75024,38 @@ function NetworkGraph({
74877
75024
  observer.observe(element);
74878
75025
  return () => observer.disconnect();
74879
75026
  }, [legendPosition, loading]);
74880
- const model = (0, import_react312.useMemo)(
75027
+ const model = (0, import_react313.useMemo)(
74881
75028
  () => buildNetwork(nodes, edges, communities),
74882
75029
  [nodes, edges, communities]
74883
75030
  );
74884
- const [internalSelected, setInternalSelected] = (0, import_react312.useState)(
75031
+ const [internalSelected, setInternalSelected] = (0, import_react313.useState)(
74885
75032
  defaultSelectedNodeId
74886
75033
  );
74887
- const [hidden, setHidden] = (0, import_react312.useState)(() => /* @__PURE__ */ new Set());
74888
- const [focused, setFocused] = (0, import_react312.useState)(null);
74889
- const [query, setQuery] = (0, import_react312.useState)("");
74890
- const enabled = (0, import_react312.useMemo)(
75034
+ const [hidden, setHidden] = (0, import_react313.useState)(() => /* @__PURE__ */ new Set());
75035
+ const [focused, setFocused] = (0, import_react313.useState)(null);
75036
+ const [query, setQuery] = (0, import_react313.useState)("");
75037
+ const enabled = (0, import_react313.useMemo)(
74891
75038
  () => new Set(
74892
75039
  visibleCommunityIds ?? model.groups.filter((g) => !hidden.has(g.id)).map((g) => g.id)
74893
75040
  ),
74894
75041
  [visibleCommunityIds, model, hidden]
74895
75042
  );
74896
- const visibleNodes = (0, import_react312.useMemo)(
75043
+ const visibleNodes = (0, import_react313.useMemo)(
74897
75044
  () => model.nodes.filter((n) => !n.community || enabled.has(n.community)),
74898
75045
  [model, enabled]
74899
75046
  );
74900
- const visible = (0, import_react312.useMemo)(
75047
+ const visible = (0, import_react313.useMemo)(
74901
75048
  () => new Set(visibleNodes.map((n) => n.id)),
74902
75049
  [visibleNodes]
74903
75050
  );
74904
75051
  const selection = selectedNodeId === void 0 ? internalSelected : selectedNodeId;
74905
75052
  const selected = selection !== null && visible.has(selection) ? selection : null;
74906
75053
  const activeFocus = focused !== null && visible.has(focused) ? focused : null;
74907
- const highlighted = (0, import_react312.useMemo)(
75054
+ const highlighted = (0, import_react313.useMemo)(
74908
75055
  () => new Set(highlightedEdgeIds),
74909
75056
  [highlightedEdgeIds]
74910
75057
  );
74911
- const counts = (0, import_react312.useMemo)(() => {
75058
+ const counts = (0, import_react313.useMemo)(() => {
74912
75059
  const result = /* @__PURE__ */ new Map();
74913
75060
  for (const n of model.nodes)
74914
75061
  if (n.community)
@@ -74928,7 +75075,7 @@ function NetworkGraph({
74928
75075
  onViewportChange
74929
75076
  });
74930
75077
  const locked = disabled || loading;
74931
- const drag = (0, import_react312.useRef)(null);
75078
+ const drag = (0, import_react313.useRef)(null);
74932
75079
  const select = (id) => {
74933
75080
  if (locked) return;
74934
75081
  if (selectedNodeId === void 0) setInternalSelected(id);
@@ -74944,7 +75091,7 @@ function NetworkGraph({
74944
75091
  );
74945
75092
  onVisibleCommunitiesChange?.(ids);
74946
75093
  };
74947
- (0, import_react312.useEffect)(() => {
75094
+ (0, import_react313.useEffect)(() => {
74948
75095
  const element = canvas.canvasRef.current;
74949
75096
  if (!element || locked) return;
74950
75097
  const wheel = (event) => {
@@ -74993,13 +75140,13 @@ function NetworkGraph({
74993
75140
  }
74994
75141
  };
74995
75142
  const focusedNode = model.byId.get(activeFocus ?? selected ?? "");
74996
- const matchingNodes = (0, import_react312.useMemo)(() => {
75143
+ const matchingNodes = (0, import_react313.useMemo)(() => {
74997
75144
  const search = query.toLocaleLowerCase();
74998
75145
  return visibleNodes.filter((n) => (n.label ?? n.id).toLocaleLowerCase().includes(search)).slice(0, 50).map((n) => ({ value: n.id, label: n.label ?? n.id }));
74999
75146
  }, [visibleNodes, query]);
75000
75147
  const graphHeight = Number.isFinite(height) ? Math.max(160, height) : 480;
75001
75148
  const resolvedLegendTone = legendTone === "auto" ? tone : legendTone;
75002
- const legendContent = /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75149
+ const legendContent = /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75003
75150
  "fieldset",
75004
75151
  {
75005
75152
  disabled: locked,
@@ -75008,8 +75155,8 @@ function NetworkGraph({
75008
75155
  maxHeight: legendPanel ? Math.max(96, graphHeight - 64) : graphHeight
75009
75156
  },
75010
75157
  children: [
75011
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
75012
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75158
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
75159
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75013
75160
  Checkbox_default,
75014
75161
  {
75015
75162
  size: "sm",
@@ -75020,8 +75167,8 @@ function NetworkGraph({
75020
75167
  onChange: (event) => filter(event.target.checked ? model.groups.map((g) => g.id) : [])
75021
75168
  }
75022
75169
  ),
75023
- model.groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
75024
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75170
+ model.groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
75171
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75025
75172
  Checkbox_default,
75026
75173
  {
75027
75174
  size: "sm",
@@ -75033,12 +75180,12 @@ function NetworkGraph({
75033
75180
  )
75034
75181
  }
75035
75182
  ),
75036
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
75183
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
75037
75184
  ] }, group.id))
75038
75185
  ]
75039
75186
  }
75040
75187
  );
75041
- return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75188
+ return /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75042
75189
  Panel_default,
75043
75190
  {
75044
75191
  ...panelProps,
@@ -75049,7 +75196,7 @@ function NetworkGraph({
75049
75196
  loading,
75050
75197
  clickable: false,
75051
75198
  scrollable: false,
75052
- children: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75199
+ children: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75053
75200
  "div",
75054
75201
  {
75055
75202
  className: "flex min-w-0 flex-col gap-3",
@@ -75057,7 +75204,7 @@ function NetworkGraph({
75057
75204
  "aria-label": ariaLabel ?? t("kit.networkGraph.name"),
75058
75205
  "aria-disabled": locked || void 0,
75059
75206
  children: [
75060
- showControls && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75207
+ showControls && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75061
75208
  Combobox_default,
75062
75209
  {
75063
75210
  size: "sm",
@@ -75079,7 +75226,7 @@ function NetworkGraph({
75079
75226
  }
75080
75227
  }
75081
75228
  ) }) }),
75082
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75229
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75083
75230
  "div",
75084
75231
  {
75085
75232
  ref: layoutRef,
@@ -75087,13 +75234,13 @@ function NetworkGraph({
75087
75234
  style: { flexDirection: legendOnRight ? "row" : "column" },
75088
75235
  "data-legend-position": legendOnRight ? "right" : "bottom",
75089
75236
  children: [
75090
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75237
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75091
75238
  "div",
75092
75239
  {
75093
75240
  className: "relative min-w-0 flex-1",
75094
75241
  style: { height: graphHeight, minHeight: graphHeight },
75095
75242
  children: [
75096
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75243
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75097
75244
  "canvas",
75098
75245
  {
75099
75246
  ref: canvas.canvasRef,
@@ -75162,11 +75309,11 @@ function NetworkGraph({
75162
75309
  }
75163
75310
  }
75164
75311
  ),
75165
- showControls && /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)("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: [
75166
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75312
+ showControls && /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)("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: [
75313
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75167
75314
  IconButton_default,
75168
75315
  {
75169
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75316
+ icon: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75170
75317
  "svg",
75171
75318
  {
75172
75319
  viewBox: "0 0 24 24",
@@ -75177,10 +75324,10 @@ function NetworkGraph({
75177
75324
  strokeLinejoin: "round",
75178
75325
  "aria-hidden": "true",
75179
75326
  children: [
75180
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
75181
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
75182
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
75183
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
75327
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
75328
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
75329
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
75330
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
75184
75331
  ]
75185
75332
  }
75186
75333
  ),
@@ -75193,10 +75340,10 @@ function NetworkGraph({
75193
75340
  onClick: canvas.fit
75194
75341
  }
75195
75342
  ),
75196
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75343
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75197
75344
  IconButton_default,
75198
75345
  {
75199
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75346
+ icon: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75200
75347
  "svg",
75201
75348
  {
75202
75349
  viewBox: "0 0 24 24",
@@ -75205,7 +75352,7 @@ function NetworkGraph({
75205
75352
  strokeWidth: 2,
75206
75353
  strokeLinecap: "round",
75207
75354
  "aria-hidden": "true",
75208
- children: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M6 12h12" })
75355
+ children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M6 12h12" })
75209
75356
  }
75210
75357
  ),
75211
75358
  size: "xs",
@@ -75217,7 +75364,7 @@ function NetworkGraph({
75217
75364
  onClick: () => canvas.zoomBy(0.8)
75218
75365
  }
75219
75366
  ),
75220
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75367
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75221
75368
  "span",
75222
75369
  {
75223
75370
  className: "min-w-[3.5ch] px-1 text-center text-[11px] tabular-nums text-neutral-500 dark:text-neutral-400",
@@ -75228,7 +75375,7 @@ function NetworkGraph({
75228
75375
  ]
75229
75376
  }
75230
75377
  ),
75231
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75378
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75232
75379
  IconButton_default,
75233
75380
  {
75234
75381
  icon: "Add",
@@ -75241,7 +75388,7 @@ function NetworkGraph({
75241
75388
  onClick: () => canvas.zoomBy(1.25)
75242
75389
  }
75243
75390
  ),
75244
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75391
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75245
75392
  IconButton_default,
75246
75393
  {
75247
75394
  icon: "Reset",
@@ -75259,18 +75406,18 @@ function NetworkGraph({
75259
75406
  }
75260
75407
  )
75261
75408
  ] }),
75262
- !visibleNodes.length && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
75409
+ !visibleNodes.length && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
75263
75410
  ]
75264
75411
  }
75265
75412
  ),
75266
- showCommunities && model.groups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75413
+ showCommunities && model.groups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75267
75414
  "div",
75268
75415
  {
75269
75416
  className: "min-w-0 shrink-0",
75270
75417
  style: {
75271
75418
  width: legendOnRight ? legendPanel ? 224 : 192 : "100%"
75272
75419
  },
75273
- children: legendPanel ? /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75420
+ children: legendPanel ? /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75274
75421
  Panel_default,
75275
75422
  {
75276
75423
  variant: legendVariant === "auto" ? variant : legendVariant,
@@ -75289,8 +75436,8 @@ function NetworkGraph({
75289
75436
  ]
75290
75437
  }
75291
75438
  ),
75292
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
75293
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75439
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
75440
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75294
75441
  "p",
75295
75442
  {
75296
75443
  role: "status",
@@ -75503,6 +75650,7 @@ function NetworkGraph({
75503
75650
  OTP_VARIANTS,
75504
75651
  OrganizationChart,
75505
75652
  PAGED_PANEL_LOADERS,
75653
+ PAGE_HEADER_VARIANTS,
75506
75654
  PANEL_HERO_TITLE_ELEMENTS,
75507
75655
  PANEL_HERO_VARIANTS,
75508
75656
  PANEL_TONE_FOR_FIELD,
@@ -75517,6 +75665,7 @@ function NetworkGraph({
75517
75665
  PROGRESS_MOTION_DIRECTIONS,
75518
75666
  PROGRESS_MOTION_SPEEDS,
75519
75667
  PT_KIT_CATALOG,
75668
+ PageBodyLayout,
75520
75669
  PageHeader,
75521
75670
  PagedPanel,
75522
75671
  Panel,