@cjlapao/ui-kit 0.2.12 → 0.2.14

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,8 +219,12 @@ __export(src_exports, {
219
219
  OTP_VARIANTS: () => OTP_VARIANTS,
220
220
  OrganizationChart: () => OrganizationChart_default,
221
221
  PAGED_PANEL_LOADERS: () => PAGED_PANEL_LOADERS,
222
+ PAGE_BODY_LAYOUT_VARIANTS: () => PAGE_BODY_LAYOUT_VARIANTS,
223
+ PAGE_HEADER_VARIANTS: () => SURFACE_VARIANTS,
222
224
  PANEL_HERO_TITLE_ELEMENTS: () => PANEL_HERO_TITLE_ELEMENTS,
223
225
  PANEL_HERO_VARIANTS: () => PANEL_HERO_VARIANTS,
226
+ PANEL_SLIDE_DURATION_MS: () => PANEL_SLIDE_DURATION_MS,
227
+ PANEL_SLIDE_EASING: () => PANEL_SLIDE_EASING,
224
228
  PANEL_TONE_FOR_FIELD: () => PANEL_TONE_FOR_FIELD,
225
229
  PANE_EMPTY_STATE_SIZE: () => PANE_EMPTY_STATE_SIZE,
226
230
  PILL_CORNERS: () => PILL_CORNERS,
@@ -233,6 +237,7 @@ __export(src_exports, {
233
237
  PROGRESS_MOTION_DIRECTIONS: () => PROGRESS_MOTION_DIRECTIONS,
234
238
  PROGRESS_MOTION_SPEEDS: () => PROGRESS_MOTION_SPEEDS,
235
239
  PT_KIT_CATALOG: () => PT_KIT_CATALOG,
240
+ PageBodyLayout: () => PageBodyLayout,
236
241
  PageHeader: () => PageHeader_default,
237
242
  PagedPanel: () => PagedPanel_default,
238
243
  Panel: () => Panel_default,
@@ -610,6 +615,7 @@ __export(src_exports, {
610
615
  normalizeString: () => normalizeString,
611
616
  normalizeStringToUpper: () => normalizeStringToUpper,
612
617
  oklchToHex: () => oklchToHex,
618
+ panelSlideTransition: () => panelSlideTransition,
613
619
  parseImageSource: () => parseImageSource,
614
620
  parseMessage: () => parseMessage,
615
621
  parseSmartVariable: () => parseSmartVariable,
@@ -5972,6 +5978,9 @@ var surfaceCornerRem = {
5972
5978
  };
5973
5979
  var DEFAULT_SURFACE_CORNER = "rounded-md";
5974
5980
  var COLLAPSED_RAIL_WIDTH = 56;
5981
+ var PANEL_SLIDE_DURATION_MS = 450;
5982
+ var PANEL_SLIDE_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
5983
+ var panelSlideTransition = (...properties) => properties.map((property) => `${property} ${PANEL_SLIDE_DURATION_MS}ms ${PANEL_SLIDE_EASING}`).join(", ");
5975
5984
  var DEFAULT_CONTROL_CORNER = "rounded-lg";
5976
5985
  var SURFACE_VARIANT_FOR_FIELD = {
5977
5986
  flat: "outlined",
@@ -14954,7 +14963,13 @@ var CollapseToggleButton = ({
14954
14963
  size = "sm",
14955
14964
  ...rest
14956
14965
  }) => {
14957
- const flipped = edge === "right" ? collapsed : !collapsed;
14966
+ const towardEdge = !collapsed;
14967
+ const rotation = {
14968
+ right: towardEdge ? "" : "rotate-180",
14969
+ left: towardEdge ? "rotate-180" : "",
14970
+ bottom: towardEdge ? "rotate-90" : "-rotate-90",
14971
+ top: towardEdge ? "-rotate-90" : "rotate-90"
14972
+ }[edge];
14958
14973
  return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
14959
14974
  IconButton_default,
14960
14975
  {
@@ -14963,7 +14978,7 @@ var CollapseToggleButton = ({
14963
14978
  {
14964
14979
  className: (0, import_classnames23.default)(
14965
14980
  "transition-transform duration-200 motion-reduce:transition-none",
14966
- flipped && "rotate-180"
14981
+ rotation
14967
14982
  )
14968
14983
  }
14969
14984
  ),
@@ -23031,6 +23046,10 @@ var PageHeader = ({
23031
23046
  children,
23032
23047
  variant = "default",
23033
23048
  accentColor = "blue",
23049
+ tone = "neutral",
23050
+ glassOpacity,
23051
+ vibrancy,
23052
+ specularMode,
23034
23053
  padding,
23035
23054
  paddingTop,
23036
23055
  paddingRight,
@@ -23040,7 +23059,9 @@ var PageHeader = ({
23040
23059
  className = "",
23041
23060
  ...rest
23042
23061
  }) => {
23043
- const surface = variant === "default" ? null : getSidebarSurfaceTokens(variant, accentColor);
23062
+ const plain = variant === "none" || variant === "plain";
23063
+ const sharedSurface = !plain && variant !== "default" && variant !== "floating" && variant !== "floating-glass";
23064
+ const surface = variant === "floating" || variant === "floating-glass" ? getSidebarSurfaceTokens(variant, accentColor) : null;
23044
23065
  const pair = surface ? "xs" : "none";
23045
23066
  const gutter = {
23046
23067
  top: paddingTop ?? padding ?? pair,
@@ -23053,7 +23074,7 @@ var PageHeader = ({
23053
23074
  {
23054
23075
  ...rest,
23055
23076
  className: (0, import_classnames53.default)(
23056
- "flex w-full items-center justify-between gap-4 px-5",
23077
+ "relative isolate flex w-full shrink-0 items-center justify-between gap-4 px-5",
23057
23078
  SIDE_MENU_HEADER_HEIGHT,
23058
23079
  getSurfaceGutterClass("top", gutter.top),
23059
23080
  getSurfaceGutterClass("right", gutter.right),
@@ -23065,10 +23086,24 @@ var PageHeader = ({
23065
23086
  surface.border,
23066
23087
  surface.shadow,
23067
23088
  surface.fill
23068
- ) : (0, import_classnames53.default)("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
23089
+ ) : !sharedSurface && !plain && (0, import_classnames53.default)("border-b", SIDE_MENU_HEADER_FILL, SIDE_MENU_HEADER_SEAM),
23069
23090
  className
23070
23091
  ),
23071
23092
  children: [
23093
+ 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)(
23094
+ Panel_default,
23095
+ {
23096
+ variant,
23097
+ tone,
23098
+ glassOpacity,
23099
+ vibrancy,
23100
+ specularMode,
23101
+ padding: "none",
23102
+ corner: "none",
23103
+ className: "h-full w-full",
23104
+ style: { borderRadius: "inherit" }
23105
+ }
23106
+ ) }),
23072
23107
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: start }),
23073
23108
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: center }),
23074
23109
  /* @__PURE__ */ (0, import_jsx_runtime203.jsx)("div", { className: GROUP_CLASS2, children: end }),
@@ -43443,6 +43478,21 @@ var InlinePanel_default = InlinePanel;
43443
43478
  // src/components/SideMenu.tsx
43444
43479
  var import_react_router_dom2 = require("react-router-dom");
43445
43480
  var import_react246 = __toESM(require("react"), 1);
43481
+
43482
+ // ../common/theme/noise.ts
43483
+ var NOISE_BACKGROUND_IMAGE = `url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`;
43484
+ var LIGHT = "mix-blend-multiply opacity-[0.08]";
43485
+ var DARK = "mix-blend-overlay opacity-[0.4]";
43486
+ function getNoiseBlendClasses(scheme = "auto") {
43487
+ if (scheme === "light") return LIGHT;
43488
+ if (scheme === "dark") return DARK;
43489
+ return `${LIGHT} dark:mix-blend-overlay dark:opacity-[0.4]`;
43490
+ }
43491
+ function getNoiseBackgroundSize(scale) {
43492
+ return scale !== void 0 && Number.isFinite(scale) && scale > 0 ? `${200 * scale}px ${200 * scale}px` : void 0;
43493
+ }
43494
+
43495
+ // src/components/SideMenu.tsx
43446
43496
  var import_jsx_runtime259 = require("react/jsx-runtime");
43447
43497
  var EMPTY_VIEW_OPTIONS = [];
43448
43498
  var NOISE_STYLE = {
@@ -43787,6 +43837,7 @@ var SideMenu = ({
43787
43837
  footerDetails,
43788
43838
  footerDetailsTone,
43789
43839
  noise = false,
43840
+ noiseScale,
43790
43841
  loading = false,
43791
43842
  loaderType = "skeleton",
43792
43843
  loaderTitle,
@@ -44437,7 +44488,8 @@ var SideMenu = ({
44437
44488
  "div",
44438
44489
  {
44439
44490
  className: `absolute inset-0 opacity-[0.4] pointer-events-none mix-blend-overlay ${surface.radius}`,
44440
- style: NOISE_STYLE
44491
+ "data-sidemenu-noise": true,
44492
+ style: { ...NOISE_STYLE, backgroundSize: getNoiseBackgroundSize(noiseScale) }
44441
44493
  }
44442
44494
  ),
44443
44495
  /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
@@ -44783,18 +44835,6 @@ var import_react251 = require("react");
44783
44835
  // src/components/SidePanel.tsx
44784
44836
  var import_react250 = require("react");
44785
44837
  var import_classnames80 = __toESM(require("classnames"), 1);
44786
-
44787
- // ../common/theme/noise.ts
44788
- var NOISE_BACKGROUND_IMAGE = `url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`;
44789
- var LIGHT = "mix-blend-multiply opacity-[0.08]";
44790
- var DARK = "mix-blend-overlay opacity-[0.4]";
44791
- function getNoiseBlendClasses(scheme = "auto") {
44792
- if (scheme === "light") return LIGHT;
44793
- if (scheme === "dark") return DARK;
44794
- return `${LIGHT} dark:mix-blend-overlay dark:opacity-[0.4]`;
44795
- }
44796
-
44797
- // src/components/SidePanel.tsx
44798
44838
  var import_jsx_runtime263 = require("react/jsx-runtime");
44799
44839
  var LEGACY_PANEL_VARIANTS = {
44800
44840
  sidebar: "elevated",
@@ -44804,20 +44844,46 @@ var LEGACY_PANEL_VARIANTS = {
44804
44844
  };
44805
44845
  var resolvePanelVariant2 = (variant) => variant in LEGACY_PANEL_VARIANTS ? LEGACY_PANEL_VARIANTS[variant] : variant;
44806
44846
  var getSidePanelTextTokens = (variant) => getSurfaceTextTokens(resolvePanelVariant2(variant));
44807
- var INSET_GAP_Y_CLASS = "inset-y-4";
44847
+ var INSET_GAP = {
44848
+ xs: { x: "inset-x-1", y: "inset-y-1", px: "px-1", py: "py-1" },
44849
+ sm: { x: "inset-x-2", y: "inset-y-2", px: "px-2", py: "py-2" },
44850
+ md: { x: "inset-x-4", y: "inset-y-4", px: "px-4", py: "py-4" },
44851
+ lg: { x: "inset-x-6", y: "inset-y-6", px: "px-6", py: "py-6" },
44852
+ xl: { x: "inset-x-8", y: "inset-y-8", px: "px-8", py: "py-8" }
44853
+ };
44854
+ var INSET_BORDER = {
44855
+ right: "border-y border-l",
44856
+ left: "border-y border-r",
44857
+ top: "border-x border-b",
44858
+ bottom: "border-x border-t"
44859
+ };
44860
+ var FLUSH_BORDER = {
44861
+ right: "border-l",
44862
+ left: "border-r",
44863
+ top: "border-b",
44864
+ bottom: "border-t"
44865
+ };
44866
+ var BAR_INSET = {
44867
+ none: { x: "inset-x-0", y: "inset-y-0" },
44868
+ rounded: { x: "inset-x-1", y: "inset-y-1" },
44869
+ "rounded-sm": { x: "inset-x-2", y: "inset-y-2" },
44870
+ "rounded-md": { x: "inset-x-4", y: "inset-y-4" },
44871
+ "rounded-lg": { x: "inset-x-6", y: "inset-y-6" },
44872
+ "rounded-xl": { x: "inset-x-8", y: "inset-y-8" }
44873
+ };
44808
44874
  var INNER_CORNER = {
44809
44875
  // (`"auto"` is absent by design: SidePanel's own default is `rounded`, and
44810
44876
  // corner lookups below resolve it to the theme default.)
44811
- none: { right: "", left: "" },
44812
- rounded: { right: "rounded-l-sm", left: "rounded-r-sm" },
44813
- "rounded-sm": { right: "rounded-l-lg", left: "rounded-r-lg" },
44814
- "rounded-md": { right: "rounded-l-2xl", left: "rounded-r-2xl" },
44815
- "rounded-lg": { right: "rounded-l-3xl", left: "rounded-r-3xl" },
44816
- "rounded-xl": { right: "rounded-l-4xl", left: "rounded-r-4xl" }
44817
- };
44818
- var SIDE_PANEL_SIDES = ["left", "right"];
44819
- var OPEN_DURATION_MS = 450;
44820
- var OPEN_EASING = "cubic-bezier(0.32, 0.72, 0, 1)";
44877
+ none: { right: "", left: "", top: "", bottom: "" },
44878
+ rounded: { right: "rounded-l-sm", left: "rounded-r-sm", top: "rounded-b-sm", bottom: "rounded-t-sm" },
44879
+ "rounded-sm": { right: "rounded-l-lg", left: "rounded-r-lg", top: "rounded-b-lg", bottom: "rounded-t-lg" },
44880
+ "rounded-md": { right: "rounded-l-2xl", left: "rounded-r-2xl", top: "rounded-b-2xl", bottom: "rounded-t-2xl" },
44881
+ "rounded-lg": { right: "rounded-l-3xl", left: "rounded-r-3xl", top: "rounded-b-3xl", bottom: "rounded-t-3xl" },
44882
+ "rounded-xl": { right: "rounded-l-4xl", left: "rounded-r-4xl", top: "rounded-b-4xl", bottom: "rounded-t-4xl" }
44883
+ };
44884
+ var SIDE_PANEL_SIDES = ["left", "right", "top", "bottom"];
44885
+ var OPEN_DURATION_MS = PANEL_SLIDE_DURATION_MS;
44886
+ var OPEN_EASING = PANEL_SLIDE_EASING;
44821
44887
  var SIZE_TOKENS4 = {
44822
44888
  xs: {
44823
44889
  pad: "px-2 py-1.5",
@@ -44852,11 +44918,15 @@ var SIZE_TOKENS4 = {
44852
44918
  };
44853
44919
  var SidePanel = ({
44854
44920
  isOpen,
44921
+ docked = false,
44855
44922
  onClose,
44856
44923
  title,
44857
44924
  subtitle,
44858
44925
  icon,
44859
44926
  width = 420,
44927
+ height = 240,
44928
+ minHeight = 120,
44929
+ maxHeight = 600,
44860
44930
  headerActions,
44861
44931
  footer,
44862
44932
  children,
@@ -44876,6 +44946,7 @@ var SidePanel = ({
44876
44946
  side = "right",
44877
44947
  overlay = false,
44878
44948
  noise = false,
44949
+ noiseScale,
44879
44950
  inset,
44880
44951
  corner = DEFAULT_SURFACE_CORNER,
44881
44952
  collapsible = false,
@@ -44887,6 +44958,7 @@ var SidePanel = ({
44887
44958
  }) => {
44888
44959
  const t = useKitT();
44889
44960
  warnIfMissingTitle("SidePanel", title);
44961
+ const vertical = side === "top" || side === "bottom";
44890
44962
  const effectiveTone = tone ?? color ?? "neutral";
44891
44963
  const sizeToken = SIZE_TOKENS4[size] ?? SIZE_TOKENS4.md;
44892
44964
  const legacyVariant = variant in LEGACY_PANEL_VARIANTS;
@@ -44900,10 +44972,13 @@ var SidePanel = ({
44900
44972
  surfaceTone
44901
44973
  );
44902
44974
  const surfaceText = getSidePanelTextTokens(variant);
44903
- const isInset = inset ?? surface.offset !== "";
44904
- const cornerClass = INNER_CORNER[corner === "auto" ? DEFAULT_SURFACE_CORNER : corner][side];
44905
- const borderClass = surface.border ? `${surface.border} ${isInset ? side === "right" ? "border-y border-l" : "border-y border-r" : surface.borderSides === "all" ? "border" : side === "right" ? "border-l" : "border-r"}` : "";
44906
- const shadowClass = side === "left" ? surface.shadow : surface.shadowRight;
44975
+ const insetValue = inset ?? surface.offset !== "";
44976
+ const insetSize = insetValue === true ? "md" : insetValue === false || insetValue === "none" ? null : insetValue;
44977
+ const isInset = insetSize !== null;
44978
+ const insetGap = insetSize ? INSET_GAP[insetSize] : null;
44979
+ const cornerClass = docked ? getSurfaceCornerClass(corner) : INNER_CORNER[corner === "auto" ? DEFAULT_SURFACE_CORNER : corner][side];
44980
+ const borderClass = surface.border ? `${surface.border} ${docked ? "border" : isInset ? INSET_BORDER[side] : surface.borderSides === "all" ? "border" : FLUSH_BORDER[side]}` : "";
44981
+ const shadowClass = side === "right" ? surface.shadowRight : surface.shadow;
44907
44982
  const [mounted, setMounted] = (0, import_react250.useState)(isOpen);
44908
44983
  const [entered, setEntered] = (0, import_react250.useState)(isOpen);
44909
44984
  const prevOpenRef = (0, import_react250.useRef)(isOpen);
@@ -44924,10 +44999,11 @@ var SidePanel = ({
44924
44999
  }, [mounted, isOpen, entered]);
44925
45000
  const handleTransitionEnd = (event) => {
44926
45001
  if (event.target !== event.currentTarget) return;
44927
- if (event.propertyName !== "width") return;
45002
+ if (event.propertyName !== (vertical ? "height" : "width")) return;
44928
45003
  if (!isOpen) setMounted(false);
44929
45004
  };
44930
45005
  const [currentWidth, setCurrentWidth] = (0, import_react250.useState)(width);
45006
+ const [currentHeight, setCurrentHeight] = (0, import_react250.useState)(height);
44931
45007
  const isDraggingRef = (0, import_react250.useRef)(false);
44932
45008
  const [isDragging, setIsDragging] = (0, import_react250.useState)(false);
44933
45009
  const startXRef = (0, import_react250.useRef)(0);
@@ -44935,15 +45011,25 @@ var SidePanel = ({
44935
45011
  (0, import_react250.useEffect)(() => {
44936
45012
  if (!isDraggingRef.current) setCurrentWidth(width);
44937
45013
  }, [width]);
45014
+ (0, import_react250.useEffect)(() => {
45015
+ if (!isDraggingRef.current) setCurrentHeight(height);
45016
+ }, [height]);
44938
45017
  const onMouseDown = (0, import_react250.useCallback)(
44939
45018
  (e) => {
44940
45019
  if (!resizable) return;
44941
45020
  e.preventDefault();
44942
45021
  isDraggingRef.current = true;
44943
45022
  setIsDragging(true);
44944
- startXRef.current = e.clientX;
44945
- startWidthRef.current = currentWidth;
45023
+ startXRef.current = vertical ? e.clientY : e.clientX;
45024
+ startWidthRef.current = vertical ? currentHeight : currentWidth;
44946
45025
  const onMouseMove = (ev) => {
45026
+ if (vertical) {
45027
+ const delta2 = side === "bottom" ? startXRef.current - ev.clientY : ev.clientY - startXRef.current;
45028
+ setCurrentHeight(
45029
+ Math.min(maxHeight, Math.max(minHeight, startWidthRef.current + delta2))
45030
+ );
45031
+ return;
45032
+ }
44947
45033
  const delta = side === "right" ? startXRef.current - ev.clientX : ev.clientX - startXRef.current;
44948
45034
  const next = Math.min(
44949
45035
  maxWidth,
@@ -44952,7 +45038,7 @@ var SidePanel = ({
44952
45038
  setCurrentWidth(next);
44953
45039
  };
44954
45040
  document.body.style.userSelect = "none";
44955
- document.body.style.cursor = "col-resize";
45041
+ document.body.style.cursor = vertical ? "row-resize" : "col-resize";
44956
45042
  const onMouseUp = () => {
44957
45043
  isDraggingRef.current = false;
44958
45044
  setIsDragging(false);
@@ -44964,9 +45050,10 @@ var SidePanel = ({
44964
45050
  window.addEventListener("mousemove", onMouseMove);
44965
45051
  window.addEventListener("mouseup", onMouseUp);
44966
45052
  },
44967
- [resizable, currentWidth, minWidth, maxWidth, side]
45053
+ [resizable, vertical, currentWidth, currentHeight, minWidth, maxWidth, minHeight, maxHeight, side]
44968
45054
  );
44969
45055
  const resolvedWidth = resizable ? currentWidth : width;
45056
+ const resolvedHeight = resizable ? currentHeight : height;
44970
45057
  const [internalCollapsed, setInternalCollapsed] = (0, import_react250.useState)(defaultCollapsed);
44971
45058
  const isCollapsed = collapsible && (collapsed ?? internalCollapsed);
44972
45059
  const toggleCollapsed = () => {
@@ -44975,6 +45062,7 @@ var SidePanel = ({
44975
45062
  onCollapsedChange?.(next);
44976
45063
  };
44977
45064
  const shellWidth = isCollapsed ? COLLAPSED_RAIL_WIDTH : resolvedWidth;
45065
+ const shellHeight = isCollapsed ? COLLAPSED_RAIL_WIDTH : resolvedHeight;
44978
45066
  const collapseButton = (label) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
44979
45067
  CollapseToggleButton,
44980
45068
  {
@@ -44989,39 +45077,38 @@ var SidePanel = ({
44989
45077
  (e) => {
44990
45078
  if (!resizable) return;
44991
45079
  const step = 20;
44992
- const grow = side === "right" ? e.key === "ArrowLeft" : e.key === "ArrowRight";
44993
- const shrink = side === "right" ? e.key === "ArrowRight" : e.key === "ArrowLeft";
45080
+ const growKey = { right: "ArrowLeft", left: "ArrowRight", bottom: "ArrowUp", top: "ArrowDown" }[side];
45081
+ const shrinkKey = { right: "ArrowRight", left: "ArrowLeft", bottom: "ArrowDown", top: "ArrowUp" }[side];
45082
+ const grow = e.key === growKey;
45083
+ const shrink = e.key === shrinkKey;
45084
+ const [min, max, current, set] = vertical ? [minHeight, maxHeight, currentHeight, setCurrentHeight] : [minWidth, maxWidth, currentWidth, setCurrentWidth];
44994
45085
  if (e.key === "Home") {
44995
45086
  e.preventDefault();
44996
- setCurrentWidth(minWidth);
45087
+ set(min);
44997
45088
  return;
44998
45089
  }
44999
45090
  if (e.key === "End") {
45000
45091
  e.preventDefault();
45001
- setCurrentWidth(maxWidth);
45092
+ set(max);
45002
45093
  return;
45003
45094
  }
45004
45095
  if (!grow && !shrink) return;
45005
45096
  e.preventDefault();
45006
- setCurrentWidth(
45007
- Math.min(
45008
- maxWidth,
45009
- Math.max(minWidth, currentWidth + (grow ? step : -step))
45010
- )
45011
- );
45097
+ set(Math.min(max, Math.max(min, current + (grow ? step : -step))));
45012
45098
  },
45013
- [resizable, side, currentWidth, minWidth, maxWidth]
45099
+ [resizable, vertical, side, currentWidth, currentHeight, minWidth, maxWidth, minHeight, maxHeight]
45014
45100
  );
45015
- if (!mounted) return null;
45016
- const edgeOffset = entered ? shellWidth : 0;
45101
+ if (!mounted || docked && !isOpen) return null;
45102
+ const edgeOffset = entered ? vertical ? shellHeight : shellWidth : 0;
45017
45103
  const barTone = isDragging ? `opacity-100 bg-${effectiveTone}-500` : `bg-${effectiveTone}-400 opacity-0 group-hover:opacity-70 group-active:opacity-100`;
45018
- const edgeProperty = side === "right" ? "right" : "left";
45104
+ const gripTone = isDragging ? `opacity-100 bg-${effectiveTone}-500` : `bg-${effectiveTone}-400 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`;
45105
+ const edgeProperty = side;
45019
45106
  const handleStyle = {
45020
45107
  [edgeProperty]: edgeOffset,
45021
45108
  transition: isDragging ? void 0 : `${edgeProperty} ${OPEN_DURATION_MS}ms ${OPEN_EASING}, opacity ${OPEN_DURATION_MS}ms ${OPEN_EASING}`
45022
45109
  };
45023
45110
  const handleParked = isCollapsed;
45024
- return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
45111
+ const panel = /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(import_jsx_runtime263.Fragment, { children: [
45025
45112
  /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
45026
45113
  "div",
45027
45114
  {
@@ -45029,22 +45116,22 @@ var SidePanel = ({
45029
45116
  "data-sp-shell": true,
45030
45117
  "data-collapsed": collapsible ? isCollapsed : void 0,
45031
45118
  className: (0, import_classnames80.default)(
45032
- "absolute z-40 overflow-hidden",
45033
- isInset ? INSET_GAP_Y_CLASS : "top-0 h-full",
45034
- side === "right" ? "right-0" : "left-0",
45119
+ docked ? (0, import_classnames80.default)("relative shrink-0 overflow-hidden", vertical ? "w-full" : "h-full") : "absolute z-40 overflow-hidden",
45120
+ !docked && (vertical ? insetGap ? insetGap.x : "left-0 w-full" : insetGap ? insetGap.y : "top-0 h-full"),
45121
+ !docked && { right: "right-0", left: "left-0", top: "top-0", bottom: "bottom-0" }[side],
45035
45122
  cornerClass,
45036
45123
  legacyVariant && borderClass,
45037
45124
  legacyVariant ? shadowClass : panelOuterChrome
45038
45125
  ),
45039
45126
  style: {
45040
- width: entered ? shellWidth : 0,
45127
+ ...vertical ? { height: entered ? shellHeight : 0 } : { width: entered ? shellWidth : 0 },
45041
45128
  // Inline rather than `transition-[width] duration-… ease-…`: an
45042
45129
  // arbitrary easing utility would have to survive the safelist, and
45043
45130
  // this curve is not themeable anyway. It decelerates hard at the end,
45044
45131
  // which is what stops the panel feeling like it snaps into place.
45045
45132
  // Suppressed while resizing so the panel tracks the pointer exactly
45046
45133
  // rather than lagging a third of a second behind it.
45047
- transition: isDragging ? void 0 : `width ${OPEN_DURATION_MS}ms ${OPEN_EASING}`
45134
+ transition: isDragging ? void 0 : `${vertical ? "height" : "width"} ${OPEN_DURATION_MS}ms ${OPEN_EASING}`
45048
45135
  },
45049
45136
  onTransitionEnd: handleTransitionEnd,
45050
45137
  children: [
@@ -45084,7 +45171,7 @@ var SidePanel = ({
45084
45171
  getNoiseBlendClasses(),
45085
45172
  cornerClass
45086
45173
  ),
45087
- style: { backgroundImage: NOISE_BACKGROUND_IMAGE }
45174
+ style: { backgroundImage: NOISE_BACKGROUND_IMAGE, backgroundSize: getNoiseBackgroundSize(noiseScale) }
45088
45175
  }
45089
45176
  ),
45090
45177
  /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
@@ -45094,12 +45181,13 @@ var SidePanel = ({
45094
45181
  inert: isCollapsed || void 0,
45095
45182
  "aria-hidden": isCollapsed || void 0,
45096
45183
  className: (0, import_classnames80.default)(
45097
- "relative flex h-full flex-col transition-opacity duration-200 motion-reduce:transition-none",
45184
+ "flex flex-col transition-opacity duration-200 motion-reduce:transition-none",
45185
+ side === "top" ? "absolute inset-x-0 bottom-0" : "relative h-full",
45098
45186
  side === "left" && "ml-auto",
45099
45187
  isCollapsed && "opacity-0",
45100
45188
  className
45101
45189
  ),
45102
- style: { width: resolvedWidth },
45190
+ style: vertical ? { height: resolvedHeight } : { width: resolvedWidth },
45103
45191
  onKeyDown,
45104
45192
  children: [
45105
45193
  /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
@@ -45136,7 +45224,9 @@ var SidePanel = ({
45136
45224
  )
45137
45225
  ] }),
45138
45226
  /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)("div", { className: "flex shrink-0 items-center gap-1 pt-0.5", children: [
45139
- collapsible && collapseButton(t("kit.sidepanel.collapse")),
45227
+ collapsible && collapseButton(
45228
+ t("kit.sidepanel.collapse")
45229
+ ),
45140
45230
  headerActions,
45141
45231
  onClose && !collapsible && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45142
45232
  IconButton_default,
@@ -45163,10 +45253,10 @@ var SidePanel = ({
45163
45253
  {
45164
45254
  "data-sp-collapsed": true,
45165
45255
  className: (0, import_classnames80.default)(
45166
- "absolute inset-y-0 flex flex-col items-center gap-3 py-3",
45167
- side === "right" ? "left-0" : "right-0"
45256
+ "absolute flex items-center gap-3",
45257
+ vertical ? "inset-x-0 top-0 flex-row px-3" : (0, import_classnames80.default)("inset-y-0 flex-col py-3", side === "right" ? "left-0" : "right-0")
45168
45258
  ),
45169
- style: { width: COLLAPSED_RAIL_WIDTH },
45259
+ style: vertical ? { height: COLLAPSED_RAIL_WIDTH } : { width: COLLAPSED_RAIL_WIDTH },
45170
45260
  children: [
45171
45261
  collapseButton(t("kit.sidepanel.expand")),
45172
45262
  (collapsedLabel ?? title) && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
@@ -45174,7 +45264,8 @@ var SidePanel = ({
45174
45264
  {
45175
45265
  "data-sp-collapsed-label": true,
45176
45266
  className: (0, import_classnames80.default)(
45177
- "min-h-0 truncate text-xs font-semibold uppercase tracking-[0.2em] [writing-mode:vertical-rl]",
45267
+ "truncate text-xs font-semibold uppercase tracking-[0.2em]",
45268
+ vertical ? "min-w-0" : "min-h-0 [writing-mode:vertical-rl]",
45178
45269
  surfaceText.muted
45179
45270
  ),
45180
45271
  children: collapsedLabel ?? title
@@ -45186,7 +45277,7 @@ var SidePanel = ({
45186
45277
  ]
45187
45278
  }
45188
45279
  ),
45189
- overlay && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45280
+ overlay && !docked && /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45190
45281
  "div",
45191
45282
  {
45192
45283
  "aria-hidden": "true",
@@ -45215,15 +45306,16 @@ var SidePanel = ({
45215
45306
  onKeyDown: handleParked ? void 0 : onSeparatorKeyDown,
45216
45307
  role: handleParked ? void 0 : "separator",
45217
45308
  "aria-hidden": handleParked || void 0,
45218
- "aria-orientation": handleParked ? void 0 : "vertical",
45309
+ "aria-orientation": handleParked ? void 0 : vertical ? "horizontal" : "vertical",
45219
45310
  "aria-label": handleParked ? void 0 : t("kit.sidepanel.resize"),
45220
- "aria-valuenow": handleParked ? void 0 : resolvedWidth,
45221
- "aria-valuemin": handleParked ? void 0 : minWidth,
45222
- "aria-valuemax": handleParked ? void 0 : maxWidth,
45311
+ "aria-valuenow": handleParked ? void 0 : vertical ? resolvedHeight : resolvedWidth,
45312
+ "aria-valuemin": handleParked ? void 0 : vertical ? minHeight : minWidth,
45313
+ "aria-valuemax": handleParked ? void 0 : vertical ? maxHeight : maxWidth,
45223
45314
  tabIndex: handleParked ? -1 : 0,
45224
45315
  className: (0, import_classnames80.default)(
45225
- "group absolute z-40 w-3 cursor-col-resize bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 dark:focus-visible:ring-blue-500",
45226
- isInset ? INSET_GAP_Y_CLASS : "inset-y-0",
45316
+ "group absolute z-40 bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 dark:focus-visible:ring-blue-500",
45317
+ vertical ? "h-3 cursor-row-resize" : "w-3 cursor-col-resize",
45318
+ vertical ? insetGap ? insetGap.x : "inset-x-0" : insetGap ? insetGap.y : "inset-y-0",
45227
45319
  handleParked && "pointer-events-none opacity-0"
45228
45320
  ),
45229
45321
  style: handleStyle,
@@ -45234,8 +45326,16 @@ var SidePanel = ({
45234
45326
  className: (0, import_classnames80.default)(
45235
45327
  // A hairline bar, centred on the panel edge (2px wide at -1px),
45236
45328
  // so the grip below sits on it as a bulge on one centre line.
45237
- "absolute inset-y-2 w-0.5 rounded-full transition duration-150",
45238
- side === "right" ? "-right-px" : "-left-px",
45329
+ // Inset by the corner radius, so the line stops where the
45330
+ // rounded corner starts instead of running past the curve.
45331
+ "absolute rounded-full transition duration-150",
45332
+ BAR_INSET[corner === "auto" ? DEFAULT_SURFACE_CORNER : corner][vertical ? "x" : "y"],
45333
+ {
45334
+ right: "w-0.5 -right-px",
45335
+ left: "w-0.5 -left-px",
45336
+ bottom: "h-0.5 -bottom-px",
45337
+ top: "h-0.5 -top-px"
45338
+ }[side],
45239
45339
  barTone
45240
45340
  )
45241
45341
  }
@@ -45246,8 +45346,8 @@ var SidePanel = ({
45246
45346
  "aria-hidden": "true",
45247
45347
  "data-sp-grip": true,
45248
45348
  className: (0, import_classnames80.default)(
45249
- "pointer-events-none absolute top-1/2 h-10 w-1 -translate-y-1/2",
45250
- side === "right" ? "-right-0.5" : "-left-0.5"
45349
+ "pointer-events-none absolute",
45350
+ vertical ? (0, import_classnames80.default)("left-1/2 h-1 w-10 -translate-x-1/2", side === "bottom" ? "-bottom-0.5" : "-top-0.5") : (0, import_classnames80.default)("top-1/2 h-10 w-1 -translate-y-1/2", side === "right" ? "-right-0.5" : "-left-0.5")
45251
45351
  ),
45252
45352
  children: [
45253
45353
  /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
@@ -45255,8 +45355,8 @@ var SidePanel = ({
45255
45355
  {
45256
45356
  "data-sp-grip-rest": true,
45257
45357
  className: (0, import_classnames80.default)(
45258
- "absolute inset-0 rounded-full bg-neutral-400 transition-opacity duration-150 dark:bg-neutral-500",
45259
- isDragging ? "opacity-0" : "opacity-40 group-hover:opacity-0 group-focus-visible:opacity-0"
45358
+ "absolute inset-0 rounded-full bg-neutral-300 transition-opacity duration-150 dark:bg-neutral-600",
45359
+ isDragging ? "opacity-0" : "opacity-100 group-hover:opacity-0 group-focus-visible:opacity-0"
45260
45360
  )
45261
45361
  }
45262
45362
  ),
@@ -45264,7 +45364,7 @@ var SidePanel = ({
45264
45364
  "span",
45265
45365
  {
45266
45366
  "data-sp-grip-active": true,
45267
- className: (0, import_classnames80.default)("absolute inset-0 rounded-full transition duration-150", barTone)
45367
+ className: (0, import_classnames80.default)("absolute inset-0 rounded-full transition duration-150", gripTone)
45268
45368
  }
45269
45369
  )
45270
45370
  ]
@@ -45274,6 +45374,20 @@ var SidePanel = ({
45274
45374
  }
45275
45375
  )
45276
45376
  ] });
45377
+ return docked ? /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
45378
+ "div",
45379
+ {
45380
+ "data-sp-dock": true,
45381
+ className: (0, import_classnames80.default)(
45382
+ "relative flex shrink-0",
45383
+ vertical ? "w-full flex-col" : "h-full",
45384
+ // Inset docked: the gap is padding on the wrapper, so the panel is
45385
+ // shorter (narrower) than its zone; the handle matches it above.
45386
+ insetGap && (vertical ? insetGap.px : insetGap.py)
45387
+ ),
45388
+ children: panel
45389
+ }
45390
+ ) : panel;
45277
45391
  };
45278
45392
  var SidePanel_default = SidePanel;
45279
45393
 
@@ -66053,6 +66167,7 @@ var WorkflowTrackerRail = ({
66053
66167
  defaultCollapsed = false,
66054
66168
  onCollapsedChange,
66055
66169
  fillHeight = false,
66170
+ flush = true,
66056
66171
  expandLabel = "Expand workflow rail",
66057
66172
  collapseLabel = "Collapse workflow rail",
66058
66173
  renderStepPopover,
@@ -66095,15 +66210,19 @@ var WorkflowTrackerRail = ({
66095
66210
  scrollable: false,
66096
66211
  flexBody: scrollBody,
66097
66212
  className: (0, import_classnames115.default)(
66098
- collapsible && "max-w-full shrink-0 transition-[width] duration-200 ease-in-out motion-reduce:transition-none",
66213
+ collapsible && "max-w-full shrink-0",
66099
66214
  fillHeight && "h-full min-h-0 self-stretch",
66100
66215
  className,
66101
66216
  cardClassName
66102
66217
  ),
66103
66218
  style: collapsible ? {
66219
+ // SidePanel's curve, not `duration-200 ease-in-out` (which read
66220
+ // as a snap). Padding rides it too: collapsing drops it to none,
66221
+ // and snapping it mid-sweep was a visible jump.
66222
+ transition: panelSlideTransition("width", "padding"),
66104
66223
  ...style,
66105
66224
  width: isCollapsed ? COLLAPSED_RAIL_WIDTH : style?.width ?? 360,
66106
- ...isCollapsed ? side === "left" ? { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } : { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
66225
+ ...flush ? side === "left" ? { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 } : { borderTopRightRadius: 0, borderBottomRightRadius: 0 } : {}
66107
66226
  } : style,
66108
66227
  "aria-busy": loading || void 0,
66109
66228
  "data-collapsed": collapsible ? isCollapsed : void 0,
@@ -73161,7 +73280,7 @@ function gradientBackdropCss(colors3, s) {
73161
73280
  var import_jsx_runtime330 = require("react/jsx-runtime");
73162
73281
  var GRADIENT_BACKDROP_SCHEMES = ["auto", "light", "dark"];
73163
73282
  var GradientBackdrop = import_react306.default.forwardRef(
73164
- ({ theme = "slate", scheme = "auto", noise = false, className, style, children, ...rest }, ref) => {
73283
+ ({ theme = "slate", scheme = "auto", noise = false, noiseScale, className, style, children, ...rest }, ref) => {
73165
73284
  const themeKey = typeof theme === "string" ? theme : JSON.stringify(theme);
73166
73285
  const resolved = (0, import_react306.useMemo)(() => {
73167
73286
  const t = resolveGradientBackdropTheme(theme);
@@ -73195,7 +73314,11 @@ var GradientBackdrop = import_react306.default.forwardRef(
73195
73314
  "pointer-events-none absolute inset-0 -z-10 rounded-[inherit]",
73196
73315
  getNoiseBlendClasses(scheme)
73197
73316
  ),
73198
- style: { backgroundImage: NOISE_BACKGROUND_IMAGE }
73317
+ style: {
73318
+ backgroundImage: NOISE_BACKGROUND_IMAGE,
73319
+ backgroundSize: getNoiseBackgroundSize(noiseScale),
73320
+ backgroundRepeat: "repeat"
73321
+ }
73199
73322
  }
73200
73323
  ),
73201
73324
  children
@@ -73687,11 +73810,34 @@ var TerminalTabs = (0, import_react309.forwardRef)(
73687
73810
  }
73688
73811
  );
73689
73812
 
73813
+ // src/components/PageBodyLayout.tsx
73814
+ var import_classnames141 = __toESM(require("classnames"), 1);
73815
+ var import_jsx_runtime334 = require("react/jsx-runtime");
73816
+ var PAGE_BODY_LAYOUT_VARIANTS = ["none", ...SURFACE_VARIANTS];
73817
+ function PageBodyLayout({ header, left, right, bottom, children, className, minCenterWidth = 240, minCenterHeight = 120, gap = 8, variant = "outlined", ...surface }) {
73818
+ const plain = variant === "none" || variant === "plain";
73819
+ const body = /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(import_jsx_runtime334.Fragment, { children: [
73820
+ header && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { className: "shrink-0", children: header }),
73821
+ /* @__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: "fit-content", gap, ...plain ? { paddingTop: header ? gap : 0 } : { padding: gap } }, children: [
73822
+ hasZone(left) && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { "data-page-region": "left", className: "flex min-h-0 shrink-0", children: left }),
73823
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)("div", { className: "flex min-h-0 flex-1 flex-col", style: { gap, minWidth: minCenterWidth }, children: [
73824
+ /* @__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 }, children }),
73825
+ hasZone(bottom) && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { "data-page-region": "bottom", className: "flex min-w-0 shrink-0 flex-col", children: bottom })
73826
+ ] }),
73827
+ hasZone(right) && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { "data-page-region": "right", className: "flex min-h-0 shrink-0", children: right })
73828
+ ] }) })
73829
+ ] });
73830
+ return plain ? /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("div", { "data-page-layout": "none", className: (0, import_classnames141.default)("flex h-full min-h-0 min-w-0 flex-col", className), children: body }) : /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(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: body });
73831
+ }
73832
+ function hasZone(node) {
73833
+ return node != null && node !== false;
73834
+ }
73835
+
73690
73836
  // src/contexts/BottomSheetContext.tsx
73691
73837
  var import_react310 = require("react");
73692
73838
  var import_react_dom19 = require("react-dom");
73693
- var import_classnames141 = __toESM(require("classnames"), 1);
73694
- var import_jsx_runtime334 = require("react/jsx-runtime");
73839
+ var import_classnames142 = __toESM(require("classnames"), 1);
73840
+ var import_jsx_runtime335 = require("react/jsx-runtime");
73695
73841
  var BottomSheetContext = (0, import_react310.createContext)(null);
73696
73842
  var TRANSITION_MS2 = 260;
73697
73843
  var renderSlot = (slot, controls) => {
@@ -73761,11 +73907,11 @@ var BottomSheetProvider = ({
73761
73907
  [presentSheet, dismissSheet, sheet, isVisible]
73762
73908
  );
73763
73909
  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)(
73910
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
73911
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
73766
73912
  "div",
73767
73913
  {
73768
- className: (0, import_classnames141.default)(
73914
+ className: (0, import_classnames142.default)(
73769
73915
  "absolute inset-0 bg-neutral-900/40 transition-opacity duration-300",
73770
73916
  isVisible ? "opacity-100 pointer-events-auto" : "opacity-0"
73771
73917
  ),
@@ -73775,24 +73921,24 @@ var BottomSheetProvider = ({
73775
73921
  }
73776
73922
  }
73777
73923
  ),
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)(
73924
+ /* @__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
73925
  "section",
73780
73926
  {
73781
73927
  role: "dialog",
73782
73928
  "aria-modal": "true",
73783
- className: (0, import_classnames141.default)(
73929
+ className: (0, import_classnames142.default)(
73784
73930
  "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
73931
  sheet.className,
73786
73932
  isVisible ? "translate-y-0" : "translate-y-full"
73787
73933
  ),
73788
73934
  style: { minHeight: "25vh", maxHeight: "85vh" },
73789
73935
  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 })
73936
+ /* @__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: [
73937
+ /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)("div", { className: "space-y-1", children: [
73938
+ sheet.title && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
73939
+ sheet.description && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
73794
73940
  ] }),
73795
- (sheet.showCloseButton ?? true) && /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
73941
+ (sheet.showCloseButton ?? true) && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
73796
73942
  IconButton_default,
73797
73943
  {
73798
73944
  icon: "Close",
@@ -73804,15 +73950,15 @@ var BottomSheetProvider = ({
73804
73950
  }
73805
73951
  )
73806
73952
  ] }),
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) })
73953
+ /* @__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." }) }),
73954
+ 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
73955
  ]
73810
73956
  }
73811
73957
  ) })
73812
73958
  ] }),
73813
73959
  document.body
73814
73960
  ) : null;
73815
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(BottomSheetContext.Provider, { value: contextValue, children: [
73961
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(BottomSheetContext.Provider, { value: contextValue, children: [
73816
73962
  children,
73817
73963
  overlayNode
73818
73964
  ] });
@@ -74452,8 +74598,8 @@ var SYSTEM_VARIABLES = [
74452
74598
  ];
74453
74599
 
74454
74600
  // src/components/MetricBar.tsx
74455
- var import_classnames142 = __toESM(require("classnames"), 1);
74456
- var import_jsx_runtime335 = require("react/jsx-runtime");
74601
+ var import_classnames143 = __toESM(require("classnames"), 1);
74602
+ var import_jsx_runtime336 = require("react/jsx-runtime");
74457
74603
  var MetricBar = ({
74458
74604
  label,
74459
74605
  value,
@@ -74463,7 +74609,7 @@ var MetricBar = ({
74463
74609
  size = "sm",
74464
74610
  className,
74465
74611
  ...rest
74466
- }) => /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
74612
+ }) => /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
74467
74613
  Progress_default,
74468
74614
  {
74469
74615
  ...rest,
@@ -74473,7 +74619,7 @@ var MetricBar = ({
74473
74619
  formatValue: value !== void 0 ? () => String(value) : void 0,
74474
74620
  size,
74475
74621
  color: tone ?? color ?? "blue",
74476
- className: (0, import_classnames142.default)("w-full", className)
74622
+ className: (0, import_classnames143.default)("w-full", className)
74477
74623
  }
74478
74624
  );
74479
74625
  MetricBar.displayName = "MetricBar";
@@ -74833,7 +74979,7 @@ function useNetworkCanvas(options) {
74833
74979
  }
74834
74980
 
74835
74981
  // src/components/NetworkGraph/NetworkGraph.tsx
74836
- var import_jsx_runtime336 = require("react/jsx-runtime");
74982
+ var import_jsx_runtime337 = require("react/jsx-runtime");
74837
74983
  var NO_COMMUNITIES = [];
74838
74984
  var NO_HIGHLIGHTS = [];
74839
74985
  function NetworkGraph({
@@ -74999,7 +75145,7 @@ function NetworkGraph({
74999
75145
  }, [visibleNodes, query]);
75000
75146
  const graphHeight = Number.isFinite(height) ? Math.max(160, height) : 480;
75001
75147
  const resolvedLegendTone = legendTone === "auto" ? tone : legendTone;
75002
- const legendContent = /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75148
+ const legendContent = /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75003
75149
  "fieldset",
75004
75150
  {
75005
75151
  disabled: locked,
@@ -75008,8 +75154,8 @@ function NetworkGraph({
75008
75154
  maxHeight: legendPanel ? Math.max(96, graphHeight - 64) : graphHeight
75009
75155
  },
75010
75156
  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)(
75157
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
75158
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75013
75159
  Checkbox_default,
75014
75160
  {
75015
75161
  size: "sm",
@@ -75020,8 +75166,8 @@ function NetworkGraph({
75020
75166
  onChange: (event) => filter(event.target.checked ? model.groups.map((g) => g.id) : [])
75021
75167
  }
75022
75168
  ),
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)(
75169
+ model.groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
75170
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75025
75171
  Checkbox_default,
75026
75172
  {
75027
75173
  size: "sm",
@@ -75033,12 +75179,12 @@ function NetworkGraph({
75033
75179
  )
75034
75180
  }
75035
75181
  ),
75036
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
75182
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
75037
75183
  ] }, group.id))
75038
75184
  ]
75039
75185
  }
75040
75186
  );
75041
- return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75187
+ return /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75042
75188
  Panel_default,
75043
75189
  {
75044
75190
  ...panelProps,
@@ -75049,7 +75195,7 @@ function NetworkGraph({
75049
75195
  loading,
75050
75196
  clickable: false,
75051
75197
  scrollable: false,
75052
- children: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75198
+ children: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75053
75199
  "div",
75054
75200
  {
75055
75201
  className: "flex min-w-0 flex-col gap-3",
@@ -75057,7 +75203,7 @@ function NetworkGraph({
75057
75203
  "aria-label": ariaLabel ?? t("kit.networkGraph.name"),
75058
75204
  "aria-disabled": locked || void 0,
75059
75205
  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)(
75206
+ 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
75207
  Combobox_default,
75062
75208
  {
75063
75209
  size: "sm",
@@ -75079,7 +75225,7 @@ function NetworkGraph({
75079
75225
  }
75080
75226
  }
75081
75227
  ) }) }),
75082
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75228
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75083
75229
  "div",
75084
75230
  {
75085
75231
  ref: layoutRef,
@@ -75087,13 +75233,13 @@ function NetworkGraph({
75087
75233
  style: { flexDirection: legendOnRight ? "row" : "column" },
75088
75234
  "data-legend-position": legendOnRight ? "right" : "bottom",
75089
75235
  children: [
75090
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75236
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75091
75237
  "div",
75092
75238
  {
75093
75239
  className: "relative min-w-0 flex-1",
75094
75240
  style: { height: graphHeight, minHeight: graphHeight },
75095
75241
  children: [
75096
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75242
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75097
75243
  "canvas",
75098
75244
  {
75099
75245
  ref: canvas.canvasRef,
@@ -75162,11 +75308,11 @@ function NetworkGraph({
75162
75308
  }
75163
75309
  }
75164
75310
  ),
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)(
75311
+ 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: [
75312
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75167
75313
  IconButton_default,
75168
75314
  {
75169
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75315
+ icon: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75170
75316
  "svg",
75171
75317
  {
75172
75318
  viewBox: "0 0 24 24",
@@ -75177,10 +75323,10 @@ function NetworkGraph({
75177
75323
  strokeLinejoin: "round",
75178
75324
  "aria-hidden": "true",
75179
75325
  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" })
75326
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
75327
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
75328
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
75329
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
75184
75330
  ]
75185
75331
  }
75186
75332
  ),
@@ -75193,10 +75339,10 @@ function NetworkGraph({
75193
75339
  onClick: canvas.fit
75194
75340
  }
75195
75341
  ),
75196
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75342
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75197
75343
  IconButton_default,
75198
75344
  {
75199
- icon: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75345
+ icon: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75200
75346
  "svg",
75201
75347
  {
75202
75348
  viewBox: "0 0 24 24",
@@ -75205,7 +75351,7 @@ function NetworkGraph({
75205
75351
  strokeWidth: 2,
75206
75352
  strokeLinecap: "round",
75207
75353
  "aria-hidden": "true",
75208
- children: /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("path", { d: "M6 12h12" })
75354
+ children: /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("path", { d: "M6 12h12" })
75209
75355
  }
75210
75356
  ),
75211
75357
  size: "xs",
@@ -75217,7 +75363,7 @@ function NetworkGraph({
75217
75363
  onClick: () => canvas.zoomBy(0.8)
75218
75364
  }
75219
75365
  ),
75220
- /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
75366
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
75221
75367
  "span",
75222
75368
  {
75223
75369
  className: "min-w-[3.5ch] px-1 text-center text-[11px] tabular-nums text-neutral-500 dark:text-neutral-400",
@@ -75228,7 +75374,7 @@ function NetworkGraph({
75228
75374
  ]
75229
75375
  }
75230
75376
  ),
75231
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75377
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75232
75378
  IconButton_default,
75233
75379
  {
75234
75380
  icon: "Add",
@@ -75241,7 +75387,7 @@ function NetworkGraph({
75241
75387
  onClick: () => canvas.zoomBy(1.25)
75242
75388
  }
75243
75389
  ),
75244
- /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75390
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75245
75391
  IconButton_default,
75246
75392
  {
75247
75393
  icon: "Reset",
@@ -75259,18 +75405,18 @@ function NetworkGraph({
75259
75405
  }
75260
75406
  )
75261
75407
  ] }),
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") })
75408
+ !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
75409
  ]
75264
75410
  }
75265
75411
  ),
75266
- showCommunities && model.groups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75412
+ showCommunities && model.groups.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75267
75413
  "div",
75268
75414
  {
75269
75415
  className: "min-w-0 shrink-0",
75270
75416
  style: {
75271
75417
  width: legendOnRight ? legendPanel ? 224 : 192 : "100%"
75272
75418
  },
75273
- children: legendPanel ? /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
75419
+ children: legendPanel ? /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75274
75420
  Panel_default,
75275
75421
  {
75276
75422
  variant: legendVariant === "auto" ? variant : legendVariant,
@@ -75289,8 +75435,8 @@ function NetworkGraph({
75289
75435
  ]
75290
75436
  }
75291
75437
  ),
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)(
75438
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
75439
+ /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
75294
75440
  "p",
75295
75441
  {
75296
75442
  role: "status",
@@ -75503,8 +75649,12 @@ function NetworkGraph({
75503
75649
  OTP_VARIANTS,
75504
75650
  OrganizationChart,
75505
75651
  PAGED_PANEL_LOADERS,
75652
+ PAGE_BODY_LAYOUT_VARIANTS,
75653
+ PAGE_HEADER_VARIANTS,
75506
75654
  PANEL_HERO_TITLE_ELEMENTS,
75507
75655
  PANEL_HERO_VARIANTS,
75656
+ PANEL_SLIDE_DURATION_MS,
75657
+ PANEL_SLIDE_EASING,
75508
75658
  PANEL_TONE_FOR_FIELD,
75509
75659
  PANE_EMPTY_STATE_SIZE,
75510
75660
  PILL_CORNERS,
@@ -75517,6 +75667,7 @@ function NetworkGraph({
75517
75667
  PROGRESS_MOTION_DIRECTIONS,
75518
75668
  PROGRESS_MOTION_SPEEDS,
75519
75669
  PT_KIT_CATALOG,
75670
+ PageBodyLayout,
75520
75671
  PageHeader,
75521
75672
  PagedPanel,
75522
75673
  Panel,
@@ -75894,6 +76045,7 @@ function NetworkGraph({
75894
76045
  normalizeString,
75895
76046
  normalizeStringToUpper,
75896
76047
  oklchToHex,
76048
+ panelSlideTransition,
75897
76049
  parseImageSource,
75898
76050
  parseMessage,
75899
76051
  parseSmartVariable,