@cjlapao/ui-kit 0.2.31 → 0.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4868,6 +4868,7 @@ var getSurfaceGlassFillClass = (color2, opacity) => {
4868
4868
  if (opacity === "clear") return 5;
4869
4869
  return 15;
4870
4870
  })();
4871
+ if (color2 === "none") return `bg-white/${litOpacity} dark:bg-neutral-900/${drkOpacity}`;
4871
4872
  const safeBase = GLASS_COLOR_SAFELIST.has(color2) ? color2 : "neutral";
4872
4873
  return `bg-${safeBase}-100/${litOpacity} dark:bg-${safeBase}-500/${drkOpacity}`;
4873
4874
  };
@@ -5034,6 +5035,8 @@ var TRUE_COLORS = [
5034
5035
  "neutral",
5035
5036
  "stone"
5036
5037
  ];
5038
+ var SURFACE_TONES = ["none", ...TRUE_COLORS];
5039
+ var getSurfaceAccentColor = (tone) => tone === "none" ? "neutral" : tone;
5037
5040
  var TRUE_COLOR_DOT_CLASSES = {
5038
5041
  red: "bg-red-500 dark:bg-red-400",
5039
5042
  orange: "bg-orange-500 dark:bg-orange-400",
@@ -5299,6 +5302,7 @@ var FIELD_STATUS_CLASSES = {
5299
5302
  success: "border-emerald-500 dark:border-emerald-400 focus-within:border-emerald-500 dark:focus-within:border-emerald-400 focus-within:ring-2 focus-within:ring-inset focus-within:ring-emerald-500/60 dark:focus-within:ring-emerald-400/60"
5300
5303
  };
5301
5304
  var SURFACE_VARIANTS = [
5305
+ "none",
5302
5306
  "elevated",
5303
5307
  "outlined",
5304
5308
  "subtle",
@@ -5309,6 +5313,7 @@ var SURFACE_VARIANTS = [
5309
5313
  "liquid-glass"
5310
5314
  ];
5311
5315
  var SURFACE_TO_BUTTON_VARIANT = {
5316
+ none: "ghost",
5312
5317
  elevated: "solid",
5313
5318
  outlined: "outline",
5314
5319
  subtle: "ghost",
@@ -5351,7 +5356,7 @@ var surfaceTriggerTokens = Object.fromEntries(
5351
5356
  }
5352
5357
  ])
5353
5358
  );
5354
- var getSurfaceTriggerTokens = (color2) => surfaceTriggerTokens[color2] ?? surfaceTriggerTokens.blue;
5359
+ var getSurfaceTriggerTokens = (color2) => surfaceTriggerTokens[getSurfaceAccentColor(color2)] ?? surfaceTriggerTokens.neutral;
5355
5360
  var collapsibleHelpToneTokens = Object.fromEntries(
5356
5361
  TRUE_COLORS.map((color2) => [
5357
5362
  color2,
@@ -5414,8 +5419,9 @@ var SURFACE_VARIANT_FOR_FIELD = {
5414
5419
  glass: "glass"
5415
5420
  };
5416
5421
  var isGlassSurface = (variant) => variant === "glass" || variant === "liquid-glass";
5417
- var PANEL_TONE_FOR_FIELD = "neutral";
5422
+ var PANEL_TONE_FOR_FIELD = "none";
5418
5423
  var INPUT_VARIANT_FOR_SURFACE = {
5424
+ none: "flat",
5419
5425
  elevated: "flat",
5420
5426
  outlined: "flat",
5421
5427
  subtle: "ghost",
@@ -5426,7 +5432,7 @@ var INPUT_VARIANT_FOR_SURFACE = {
5426
5432
  "liquid-glass": "glass",
5427
5433
  plain: "flat"
5428
5434
  };
5429
- var DEFAULT_SURFACE_TONE = "blue";
5435
+ var DEFAULT_SURFACE_TONE = "none";
5430
5436
  var CASCADE_EXPAND = {
5431
5437
  /** Per-item cascade step, expanding. */
5432
5438
  stepMs: 20,
@@ -6174,6 +6180,7 @@ var getMultiToggleColorTokens = (color2) => currentTheme.multiToggle[color2] ??
6174
6180
  var getMultiToggleVariantTokens = (color2) => currentTheme.multiToggleVariant[color2] ?? currentTheme.multiToggleVariant.blue;
6175
6181
  var getTabsColorTokens = (color2) => currentTheme.tabs[color2] ?? currentTheme.tabs.blue;
6176
6182
  var SURFACE_VARIANT_BASE = {
6183
+ none: "",
6177
6184
  elevated: "bg-white shadow-xl ring-1 ring-black/5 dark:bg-neutral-900 dark:ring-white/10",
6178
6185
  // A real 1px border, not a ring. `ring-1` with no ring colour resolves to
6179
6186
  // currentColor, which painted a near-black rule in light mode.
@@ -6192,10 +6199,12 @@ var TRANSLUCENT_SURFACE_VARIANTS = [
6192
6199
  "default"
6193
6200
  ];
6194
6201
  var getRawSurfaceVariantClasses = (variant, tone, overrides = {}) => {
6195
- const palette = currentTheme.panel[tone] ?? currentTheme.panel.neutral;
6202
+ const palette = getPanelToneStyles(tone);
6196
6203
  const { bgClass, borderClass, liquidExtras } = overrides;
6197
6204
  const base = SURFACE_VARIANT_BASE[variant] ?? SURFACE_VARIANT_BASE.elevated;
6198
6205
  switch (variant) {
6206
+ case "none":
6207
+ return tone === "none" ? "" : bgClass ?? palette.subtleBg;
6199
6208
  case "outlined":
6200
6209
  return [base, borderClass ?? palette.outlineBorder].join(" ");
6201
6210
  case "subtle":
@@ -6228,7 +6237,15 @@ var getRawSurfaceVariantClasses = (variant, tone, overrides = {}) => {
6228
6237
  return [bgClass ?? "", base].join(" ");
6229
6238
  }
6230
6239
  };
6231
- var getPanelToneStyles = (tone) => currentTheme.panel[tone] ?? currentTheme.panel.neutral;
6240
+ var getPanelToneStyles = (tone = DEFAULT_SURFACE_TONE) => tone === "none" ? {
6241
+ ...currentTheme.panel.neutral,
6242
+ subtleBg: "bg-white dark:bg-neutral-900",
6243
+ tonalBg: "bg-white dark:bg-neutral-900",
6244
+ glassBg: "bg-white/40 dark:bg-neutral-900/20",
6245
+ liquidBg: "bg-white/45 dark:bg-neutral-900/15",
6246
+ decorationShape: "",
6247
+ decorationGradient: ""
6248
+ } : currentTheme.panel[tone] ?? currentTheme.panel.neutral;
6232
6249
  var getSurfaceVariantClasses = (variant, tone, overrides = {}) => getSurfaceTransparencyClasses(getRawSurfaceVariantClasses(variant, tone, overrides), variant, overrides.transparency);
6233
6250
  var getStepperTonePalette = (tone) => currentTheme.stepper[tone] ?? currentTheme.stepper.blue;
6234
6251
  var getBadgeColorClasses = (color2) => currentTheme.badge[color2] ?? currentTheme.badge.blue;
@@ -8515,6 +8532,13 @@ var DE_KIT_CATALOG = {
8515
8532
  // ../common/i18n/builtIn/en.ts
8516
8533
  var EN_KIT_CATALOG = {
8517
8534
  kit: {
8535
+ codeBlock: {
8536
+ code: "Code",
8537
+ edit: "Edit code",
8538
+ copy: "Copy code",
8539
+ copied: "Copied",
8540
+ copyFailed: "Could not copy code. Select and copy it manually."
8541
+ },
8518
8542
  knowledge: {
8519
8543
  "library": "Memory library",
8520
8544
  "map": "Knowledge map",
@@ -11350,6 +11374,7 @@ function hasInteractiveDescendant(root) {
11350
11374
  // src/components/Panel.tsx
11351
11375
  import { Fragment as Fragment3, jsx as jsx159, jsxs as jsxs60 } from "react/jsx-runtime";
11352
11376
  var variantBaseStyles = {
11377
+ none: "",
11353
11378
  elevated: "bg-white shadow-xl ring-1 ring-black/5 dark:bg-neutral-900 dark:ring-white/10",
11354
11379
  // A real 1px border, not a ring. `ring-1` with no ring colour resolves to
11355
11380
  // currentColor, which painted a near-black rule in light mode.
@@ -11367,6 +11392,8 @@ var getPanelEdgeChrome = (variant, tone, glassOpacity = "frosted", vibrancy = "m
11367
11392
  const palette = getPanelToneStyles(tone);
11368
11393
  const chrome = (() => {
11369
11394
  switch (variant) {
11395
+ case "none":
11396
+ return { fill: tone === "none" ? "" : palette.subtleBg, border: "", backdrop: "" };
11370
11397
  case "outlined":
11371
11398
  return {
11372
11399
  fill: "bg-white/90 dark:bg-neutral-900/80",
@@ -11648,6 +11675,8 @@ var Panel = React10.forwardRef(function Panel2({
11648
11675
  const glassFillClass = getSurfaceGlassFillClass(resolvedTone, glassOpacity);
11649
11676
  const variantClasses = getSurfaceTransparencyClasses(classNames7((() => {
11650
11677
  switch (variant) {
11678
+ case "none":
11679
+ return resolvedTone === "none" ? "" : palette.subtleBg;
11651
11680
  case "outlined":
11652
11681
  return classNames7(
11653
11682
  variantBaseStyles.outlined,
@@ -12188,8 +12217,8 @@ var ActionPanel = React11.forwardRef(
12188
12217
  }, ref) {
12189
12218
  const renderIcon2 = useIconRenderer();
12190
12219
  const generatedTitleId = useId3();
12191
- const resolvedTone = tone ?? color2 ?? "neutral";
12192
- const resolvedAccent = accentColor ?? resolvedTone;
12220
+ const resolvedTone = tone ?? color2 ?? "none";
12221
+ const resolvedAccent = accentColor ?? getSurfaceAccentColor(resolvedTone);
12193
12222
  const palette = getPanelToneStyles(resolvedAccent);
12194
12223
  const surfaceText = getSurfaceTextTokens(variant);
12195
12224
  const sizeTokens12 = SIZE_TOKENS[size] ?? SIZE_TOKENS.sm;
@@ -13442,7 +13471,8 @@ var EmptyState = React16.forwardRef(
13442
13471
  ...rest
13443
13472
  }, ref) => {
13444
13473
  const titleId = useId4();
13445
- const effectiveTone = tone ?? color2 ?? "neutral";
13474
+ const surfaceTone = tone ?? color2 ?? "none";
13475
+ const effectiveTone = getSurfaceAccentColor(surfaceTone);
13446
13476
  const iconTone = iconColor ?? effectiveTone;
13447
13477
  const effectiveSize = size ?? textSize ?? "md";
13448
13478
  const sizeToken = SIZE_STYLES3[effectiveSize] ?? SIZE_STYLES3.md;
@@ -13506,7 +13536,7 @@ var EmptyState = React16.forwardRef(
13506
13536
  {
13507
13537
  ref,
13508
13538
  variant: effectiveVariant,
13509
- tone: effectiveTone,
13539
+ tone: surfaceTone,
13510
13540
  corner,
13511
13541
  padding,
13512
13542
  fullWidth,
@@ -14652,7 +14682,7 @@ var PanelHero = ({
14652
14682
  children,
14653
14683
  ...rest
14654
14684
  }) => {
14655
- const accent = tone ?? color2 ?? "blue";
14685
+ const accent = getSurfaceAccentColor(tone ?? color2 ?? "none");
14656
14686
  const effectiveCorner = corner ?? (rounded ? DEFAULT_SURFACE_CORNER : "none");
14657
14687
  const showShapes = decoration === "shapes" || decoration === "both";
14658
14688
  const showGradient = decoration === "gradient" || decoration === "both";
@@ -14675,7 +14705,7 @@ var PanelHero = ({
14675
14705
  {
14676
14706
  className: classNames22("w-full", className),
14677
14707
  variant,
14678
- tone: accent,
14708
+ tone: tone ?? "none",
14679
14709
  corner: effectiveCorner,
14680
14710
  padding,
14681
14711
  decoration,
@@ -14724,7 +14754,7 @@ var PanelHero = ({
14724
14754
  backgroundImage: `linear-gradient(to bottom right, ${stopFrom}, ${stopTo})`
14725
14755
  },
14726
14756
  "data-variant": "gradient",
14727
- "data-tone": accent,
14757
+ "data-tone": tone ?? "none",
14728
14758
  ...rest,
14729
14759
  children: [
14730
14760
  showShapes && /* @__PURE__ */ jsxs73(Fragment8, { children: [
@@ -18509,7 +18539,7 @@ Combobox.displayName = "Combobox";
18509
18539
  var Combobox_default = Combobox;
18510
18540
 
18511
18541
  // src/components/Picker.tsx
18512
- import {
18542
+ import React31, {
18513
18543
  useCallback as useCallback9,
18514
18544
  useEffect as useEffect10,
18515
18545
  useId as useId10,
@@ -18592,6 +18622,7 @@ var Picker = ({
18592
18622
  selectedIds: selectedIdsProp,
18593
18623
  onMultiChange,
18594
18624
  maxPillsShown = 3,
18625
+ groupSelectable = false,
18595
18626
  size = "md",
18596
18627
  fullWidth = true,
18597
18628
  fullHeight = false
@@ -18641,10 +18672,21 @@ var Picker = ({
18641
18672
  );
18642
18673
  const filtered = useMemo9(() => {
18643
18674
  const q = query.trim().toLowerCase();
18644
- if (!q) return baseItems;
18645
- return baseItems.filter(
18675
+ const matched = !q ? baseItems : baseItems.filter(
18646
18676
  (item) => (item.textValue ?? item.title ?? item.id).toLowerCase().includes(q) || (item.subtitle ?? "").toLowerCase().includes(q) || (item.description ?? "").toLowerCase().includes(q) || (item.tags ?? []).some((t2) => t2.label.toLowerCase().includes(q))
18647
18677
  );
18678
+ if (!matched.some((item) => item.group)) return matched;
18679
+ const order = [];
18680
+ const buckets = /* @__PURE__ */ new Map();
18681
+ for (const item of matched) {
18682
+ const key = item.group ?? "";
18683
+ if (!buckets.has(key)) {
18684
+ buckets.set(key, []);
18685
+ order.push(key);
18686
+ }
18687
+ buckets.get(key).push(item);
18688
+ }
18689
+ return order.flatMap((key) => buckets.get(key));
18648
18690
  }, [baseItems, query]);
18649
18691
  const updatePosition = useCallback9(() => {
18650
18692
  if (!open || !triggerRef.current || !dropdownRef.current) return;
@@ -18776,6 +18818,13 @@ var Picker = ({
18776
18818
  setQuery("");
18777
18819
  }
18778
18820
  };
18821
+ const handleToggleGroup = (group) => {
18822
+ const ids = filtered.filter((i) => i.group === group).map((i) => i.id);
18823
+ const allOn = ids.every((id) => effectiveSelectedIds.includes(id));
18824
+ onMultiChange?.(
18825
+ allOn ? effectiveSelectedIds.filter((id) => !ids.includes(id)) : [...effectiveSelectedIds, ...ids.filter((id) => !effectiveSelectedIds.includes(id))]
18826
+ );
18827
+ };
18779
18828
  const handleClearMulti = () => {
18780
18829
  onMultiChange?.([]);
18781
18830
  };
@@ -18953,12 +19002,77 @@ var Picker = ({
18953
19002
  "aria-multiselectable": multi || void 0,
18954
19003
  children: filtered.map((item, index) => {
18955
19004
  const isSelected = effectiveSelectedIds.includes(item.id);
18956
- return (
18957
- // Keyboard lives on the combobox input (arrow keys +
18958
- // Enter move/confirm the aria-activedescendant), so the
18959
- // option row needs no listener of its own; a native
18960
- // <option> cannot carry the rich content rendered here.
18961
- // eslint-disable-next-line jsx-a11y/click-events-have-key-events -- APG combobox-with-list
19005
+ const showHeader = !!item.group && item.group !== filtered[index - 1]?.group;
19006
+ let header = null;
19007
+ if (showHeader) {
19008
+ const g = item.group;
19009
+ const members = filtered.filter((i) => i.group === g);
19010
+ const on = members.filter(
19011
+ (i) => effectiveSelectedIds.includes(i.id)
19012
+ ).length;
19013
+ const state = on === 0 ? "none" : on === members.length ? "all" : "some";
19014
+ const selectable = multi && groupSelectable;
19015
+ const label = /* @__PURE__ */ jsxs86(Fragment11, { children: [
19016
+ selectable && /* @__PURE__ */ jsx191(
19017
+ "span",
19018
+ {
19019
+ className: classNames38(
19020
+ "flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-colors",
19021
+ state === "none" ? "border-neutral-300 dark:border-neutral-600" : classNames38(
19022
+ colorTokens.optionSelectedBg,
19023
+ "border-current",
19024
+ colorTokens.optionSelectedIcon
19025
+ )
19026
+ ),
19027
+ children: state !== "none" && /* @__PURE__ */ jsx191(
19028
+ "svg",
19029
+ {
19030
+ className: "h-3.5 w-3.5",
19031
+ viewBox: "0 0 24 24",
19032
+ fill: "none",
19033
+ stroke: "currentColor",
19034
+ strokeWidth: 2.5,
19035
+ children: /* @__PURE__ */ jsx191(
19036
+ "path",
19037
+ {
19038
+ strokeLinecap: "round",
19039
+ strokeLinejoin: "round",
19040
+ d: state === "all" ? "m5 13 4 4L19 7" : "M6 12h12"
19041
+ }
19042
+ )
19043
+ }
19044
+ )
19045
+ }
19046
+ ),
19047
+ /* @__PURE__ */ jsx191("span", { className: "flex-1 truncate text-left", children: g }),
19048
+ selectable && /* @__PURE__ */ jsxs86("span", { className: "shrink-0 tabular-nums", children: [
19049
+ on,
19050
+ "/",
19051
+ members.length
19052
+ ] })
19053
+ ] });
19054
+ const headerClass = classNames38(
19055
+ "flex w-full items-center gap-3 px-4 py-1.5 text-[11px] font-semibold uppercase tracking-wide",
19056
+ popupText.muted
19057
+ );
19058
+ header = /* @__PURE__ */ jsx191("li", { role: "presentation", className: "m-0 list-none p-0", children: selectable ? /* @__PURE__ */ jsx191(
19059
+ "button",
19060
+ {
19061
+ type: "button",
19062
+ role: "checkbox",
19063
+ "aria-checked": state === "all" ? true : state === "some" ? "mixed" : false,
19064
+ onMouseDown: (e) => e.preventDefault(),
19065
+ onClick: () => handleToggleGroup(g),
19066
+ className: classNames38(
19067
+ headerClass,
19068
+ "cursor-pointer border-0 bg-transparent hover:bg-neutral-50 dark:hover:bg-neutral-800/60"
19069
+ ),
19070
+ children: label
19071
+ }
19072
+ ) : /* @__PURE__ */ jsx191("div", { className: headerClass, children: label }) });
19073
+ }
19074
+ return /* @__PURE__ */ jsxs86(React31.Fragment, { children: [
19075
+ header,
18962
19076
  /* @__PURE__ */ jsxs86(
18963
19077
  "li",
18964
19078
  {
@@ -19091,10 +19205,9 @@ var Picker = ({
19091
19205
  ti
19092
19206
  )) })
19093
19207
  ]
19094
- },
19095
- item.id
19208
+ }
19096
19209
  )
19097
- );
19210
+ ] }, item.id);
19098
19211
  })
19099
19212
  }
19100
19213
  )
@@ -21359,7 +21472,7 @@ function StackCarousel({
21359
21472
  getItemLabel,
21360
21473
  emptyState = "No items to display.",
21361
21474
  variant = "elevated",
21362
- tone = "blue",
21475
+ tone: surfaceTone = "none",
21363
21476
  corner = "auto",
21364
21477
  padding = "sm",
21365
21478
  transparency,
@@ -21604,7 +21717,7 @@ function StackCarousel({
21604
21717
  Panel_default,
21605
21718
  {
21606
21719
  variant,
21607
- tone,
21720
+ tone: surfaceTone,
21608
21721
  corner,
21609
21722
  padding,
21610
21723
  transparency,
@@ -22388,7 +22501,7 @@ var TraceGraph = forwardRef161(function TraceGraph2({
22388
22501
  flareSize,
22389
22502
  pulseScale,
22390
22503
  junctionGlowIntensity = 1,
22391
- tone = "blue",
22504
+ tone = "none",
22392
22505
  variant = "outlined",
22393
22506
  corner = "auto",
22394
22507
  padding = "none",
@@ -22697,7 +22810,7 @@ var TraceGraph = forwardRef161(function TraceGraph2({
22697
22810
  style: { position: "fixed", zIndex: 100, width: 300, maxWidth: "calc(100vw - 16px)", visibility: "hidden" },
22698
22811
  role: showPopover ? "dialog" : "tooltip",
22699
22812
  "aria-label": overlayNode.label ?? overlayNode.id,
22700
- children: /* @__PURE__ */ jsxs93(Panel_default, { variant: "elevated", tone: tone === "none" ? "neutral" : tone, corner, padding: "xs", scrollable: false, children: [
22813
+ children: /* @__PURE__ */ jsxs93(Panel_default, { variant: "elevated", tone, corner, padding: "xs", scrollable: false, children: [
22701
22814
  showPopover && /* @__PURE__ */ jsx198("button", { type: "button", className: `${buttonClass} float-right ml-2`, "aria-label": copy("close"), onClick: () => {
22702
22815
  setDetailsOpen(false);
22703
22816
  hostRef.current?.focus();
@@ -22713,7 +22826,7 @@ var TraceGraph = forwardRef161(function TraceGraph2({
22713
22826
  {
22714
22827
  ...panelProps,
22715
22828
  variant,
22716
- tone: tone === "none" ? "neutral" : tone,
22829
+ tone,
22717
22830
  backgroundColor: tone === "none" ? "neutral" : panelProps.backgroundColor,
22718
22831
  style: tone === "none" && variant === "simple" ? { borderWidth: 0, boxShadow: "none", ...panelProps.style } : panelProps.style,
22719
22832
  corner,
@@ -24192,7 +24305,7 @@ var FormSection = ({
24192
24305
  className,
24193
24306
  padding = "md",
24194
24307
  variant = "elevated",
24195
- tone = "neutral",
24308
+ tone = "none",
24196
24309
  corner = "rounded-md",
24197
24310
  vibrancy,
24198
24311
  glassOpacity,
@@ -24835,6 +24948,8 @@ var Toolbar = ({
24835
24948
  const palette = getPanelToneStyles(tone);
24836
24949
  const variantClasses = getSurfaceTransparencyClasses((() => {
24837
24950
  switch (variant) {
24951
+ case "none":
24952
+ return tone === "none" ? "" : palette.subtleBg;
24838
24953
  case "outlined":
24839
24954
  return classNames53(variantBaseStyles.outlined, palette.outlineBorder);
24840
24955
  case "subtle":
@@ -24900,7 +25015,7 @@ var PageHeader = ({
24900
25015
  children,
24901
25016
  variant = "default",
24902
25017
  accentColor = "blue",
24903
- tone = "neutral",
25018
+ tone = "none",
24904
25019
  glassOpacity,
24905
25020
  transparency,
24906
25021
  vibrancy,
@@ -25918,7 +26033,7 @@ var Chat2 = ({
25918
26033
  renderMessage,
25919
26034
  onEvent,
25920
26035
  variant = "outlined",
25921
- tone = "neutral",
26036
+ tone: surfaceTone = "none",
25922
26037
  padding = "none",
25923
26038
  className = "",
25924
26039
  style,
@@ -26327,7 +26442,7 @@ var Chat2 = ({
26327
26442
  {
26328
26443
  ...rest,
26329
26444
  variant,
26330
- tone,
26445
+ tone: surfaceTone,
26331
26446
  padding,
26332
26447
  className: classNames57("relative overflow-hidden", className),
26333
26448
  style: { ...style, height },
@@ -26680,12 +26795,13 @@ var ActivityFeed = ({
26680
26795
  loadMoreLabel = "Load more",
26681
26796
  totalCount,
26682
26797
  variant = "outlined",
26683
- tone = "neutral",
26798
+ tone: surfaceTone = "none",
26684
26799
  padding = "md",
26685
26800
  corner,
26686
26801
  className = "",
26687
26802
  ...rest
26688
26803
  }) => {
26804
+ const tone = getSurfaceAccentColor(surfaceTone);
26689
26805
  const [active, setActive] = useState31(defaultFilter);
26690
26806
  const options = useMemo16(
26691
26807
  () => [{ label: "All", value: "all" }, ...filters],
@@ -26704,7 +26820,7 @@ var ActivityFeed = ({
26704
26820
  {
26705
26821
  ...rest,
26706
26822
  variant,
26707
- tone,
26823
+ tone: surfaceTone,
26708
26824
  padding,
26709
26825
  corner,
26710
26826
  className: classNames58("w-full", className),
@@ -37813,7 +37929,7 @@ var BreakdownCard = ({
37813
37929
  loading = false,
37814
37930
  ctaVariant,
37815
37931
  variant = "outlined",
37816
- tone = "neutral",
37932
+ tone: surfaceTone = "none",
37817
37933
  padding = "md",
37818
37934
  corner,
37819
37935
  className = "",
@@ -37825,7 +37941,7 @@ var BreakdownCard = ({
37825
37941
  {
37826
37942
  ...rest,
37827
37943
  variant,
37828
- tone,
37944
+ tone: surfaceTone,
37829
37945
  padding,
37830
37946
  corner,
37831
37947
  className: classNames59("w-full", className),
@@ -38383,7 +38499,7 @@ var InfoRow = (props) => {
38383
38499
  value,
38384
38500
  hideIfEmpty = true,
38385
38501
  variant = "elevated",
38386
- tone = "blue",
38502
+ tone = "none",
38387
38503
  corner = DEFAULT_SURFACE_CORNER,
38388
38504
  loading = false,
38389
38505
  error,
@@ -38424,7 +38540,7 @@ var InfoRow = (props) => {
38424
38540
  {
38425
38541
  ...props,
38426
38542
  normalised,
38427
- rowTone: tone,
38543
+ rowTone: getSurfaceAccentColor(tone),
38428
38544
  rootProps: rest,
38429
38545
  className
38430
38546
  }
@@ -38435,7 +38551,7 @@ var InfoRow = (props) => {
38435
38551
  {
38436
38552
  ...rest,
38437
38553
  variant,
38438
- color: tone,
38554
+ tone,
38439
38555
  corner,
38440
38556
  padding: "none",
38441
38557
  scrollable: false,
@@ -38448,7 +38564,7 @@ var InfoRow = (props) => {
38448
38564
  {
38449
38565
  ...props,
38450
38566
  normalised,
38451
- rowTone: tone,
38567
+ rowTone: getSurfaceAccentColor(tone),
38452
38568
  className: void 0
38453
38569
  }
38454
38570
  )
@@ -38757,7 +38873,7 @@ var PagedPanel = ({
38757
38873
  error,
38758
38874
  emptyState,
38759
38875
  emptyMessage,
38760
- tone = "blue",
38876
+ tone: surfaceTone = "none",
38761
38877
  size = "md",
38762
38878
  page,
38763
38879
  onPageChange,
@@ -38769,6 +38885,7 @@ var PagedPanel = ({
38769
38885
  loadingState,
38770
38886
  ...rest
38771
38887
  }) => {
38888
+ const tone = getSurfaceAccentColor(surfaceTone);
38772
38889
  const t = useKitT();
38773
38890
  const pager = usePager({ count: pages.length, page, onPageChange });
38774
38891
  const { page: current, total } = pager;
@@ -38802,7 +38919,7 @@ var PagedPanel = ({
38802
38919
  Panel_default,
38803
38920
  {
38804
38921
  ...rest,
38805
- tone,
38922
+ tone: surfaceTone,
38806
38923
  padding: "none",
38807
38924
  bodyClassName: total === 0 && !loading ? "h-full" : "",
38808
38925
  className: classNames63("relative overflow-hidden", rest.className),
@@ -39305,7 +39422,7 @@ var DetailItemCard = ({
39305
39422
  expanded,
39306
39423
  onToggle,
39307
39424
  variant = "plain",
39308
- tone = "blue",
39425
+ tone: surfaceTone = "none",
39309
39426
  corner = DEFAULT_SURFACE_CORNER,
39310
39427
  padding = "sm",
39311
39428
  glassOpacity,
@@ -39315,6 +39432,7 @@ var DetailItemCard = ({
39315
39432
  className,
39316
39433
  ...rest
39317
39434
  }) => {
39435
+ const tone = getSurfaceAccentColor(surfaceTone);
39318
39436
  const [internalExpanded, setInternalExpanded] = useState40(defaultExpanded);
39319
39437
  const isControlled = typeof expanded === "boolean";
39320
39438
  const isExpanded = isControlled ? expanded : internalExpanded;
@@ -39339,7 +39457,7 @@ var DetailItemCard = ({
39339
39457
  Panel_default,
39340
39458
  {
39341
39459
  variant,
39342
- tone,
39460
+ tone: surfaceTone,
39343
39461
  corner,
39344
39462
  padding,
39345
39463
  glassOpacity,
@@ -39666,7 +39784,7 @@ function ScrollBody({
39666
39784
  }
39667
39785
  function InfiniteScrollPanel({
39668
39786
  variant = "plain",
39669
- tone = "blue",
39787
+ tone: surfaceTone = "none",
39670
39788
  corner = DEFAULT_SURFACE_CORNER,
39671
39789
  padding = "none",
39672
39790
  glassOpacity,
@@ -39676,6 +39794,7 @@ function InfiniteScrollPanel({
39676
39794
  className,
39677
39795
  ...rest
39678
39796
  }) {
39797
+ const tone = getSurfaceAccentColor(surfaceTone);
39679
39798
  const body = /* @__PURE__ */ jsx251(ScrollBody, { tone, padding, ...rest });
39680
39799
  if (variant === "plain") {
39681
39800
  return /* @__PURE__ */ jsx251("div", { className: classNames67("h-full min-h-0", className), children: body });
@@ -39684,7 +39803,7 @@ function InfiniteScrollPanel({
39684
39803
  Panel_default,
39685
39804
  {
39686
39805
  variant,
39687
- tone,
39806
+ tone: surfaceTone,
39688
39807
  corner,
39689
39808
  glassOpacity,
39690
39809
  transparency,
@@ -39821,7 +39940,7 @@ var CollapsibleHelpText = ({
39821
39940
  icon = "Help",
39822
39941
  children,
39823
39942
  className,
39824
- tone = "blue",
39943
+ tone = "none",
39825
39944
  variant = "card",
39826
39945
  corner = DEFAULT_SURFACE_CORNER,
39827
39946
  padding = "sm",
@@ -39839,7 +39958,7 @@ var CollapsibleHelpText = ({
39839
39958
  const sanitized = text2?.trim() ?? "";
39840
39959
  const needsTruncation = sanitized.length > maxLength;
39841
39960
  const displayText = expanded || !needsTruncation ? sanitized : truncate(sanitized, maxLength);
39842
- const toneTokens3 = getCollapsibleHelpToneTokens(tone);
39961
+ const toneTokens3 = getCollapsibleHelpToneTokens(getSurfaceAccentColor(tone));
39843
39962
  const bare = variant === "plain";
39844
39963
  const body = /* @__PURE__ */ jsx252(
39845
39964
  HelpBody,
@@ -39994,6 +40113,7 @@ var HelpButton = ({
39994
40113
  content,
39995
40114
  title,
39996
40115
  placement = "auto",
40116
+ tone = "none",
39997
40117
  color: color2 = "sky",
39998
40118
  variant = "elevated",
39999
40119
  corner = DEFAULT_SURFACE_CORNER,
@@ -40094,7 +40214,7 @@ var HelpButton = ({
40094
40214
  Panel_default,
40095
40215
  {
40096
40216
  variant,
40097
- tone: color2,
40217
+ tone,
40098
40218
  corner,
40099
40219
  padding: "none",
40100
40220
  scrollable: false,
@@ -41697,7 +41817,7 @@ var Popover = ({
41697
41817
  children,
41698
41818
  placement = "auto",
41699
41819
  variant = "elevated",
41700
- tone = "neutral",
41820
+ tone = "none",
41701
41821
  corner = DEFAULT_SURFACE_CORNER,
41702
41822
  padding = "sm",
41703
41823
  maxWidth = 320,
@@ -43140,7 +43260,7 @@ var AccordionBody = ({
43140
43260
  const renderIcon2 = useIconRenderer();
43141
43261
  const surface = useSurfaceText();
43142
43262
  const trigger = getSurfaceTriggerTokens(tone);
43143
- const chip = getPillColorClasses(tone, "soft");
43263
+ const chip = getPillColorClasses(getSurfaceAccentColor(tone), "soft");
43144
43264
  const inset = getSurfacePaddingClass(padding);
43145
43265
  const tokens = SIZE_TOKENS4[size] ?? SIZE_TOKENS4.md;
43146
43266
  const headerRefs = useRef50(/* @__PURE__ */ new Map());
@@ -43152,7 +43272,7 @@ var AccordionBody = ({
43152
43272
  dashed: false,
43153
43273
  icon: "ViewRows",
43154
43274
  title: t("kit.accordion.noItemsTitle"),
43155
- tone,
43275
+ tone: getSurfaceAccentColor(tone),
43156
43276
  size
43157
43277
  }
43158
43278
  ) });
@@ -43284,7 +43404,7 @@ var AccordionBody = ({
43284
43404
  item.badge ? /* @__PURE__ */ jsx261(
43285
43405
  Pill_default,
43286
43406
  {
43287
- tone,
43407
+ tone: getSurfaceAccentColor(tone),
43288
43408
  variant: "soft",
43289
43409
  size: tokens.pill,
43290
43410
  className: "flex-none",
@@ -43371,7 +43491,7 @@ var AccordionBody = ({
43371
43491
  title: t("kit.accordion.loadingTitle"),
43372
43492
  className: "rounded-none",
43373
43493
  size: "md",
43374
- color: tone
43494
+ color: getSurfaceAccentColor(tone)
43375
43495
  }
43376
43496
  ) : null
43377
43497
  ]
@@ -44199,7 +44319,7 @@ var Modal = ({
44199
44319
  container,
44200
44320
  corner = DEFAULT_SURFACE_CORNER,
44201
44321
  variant = "elevated",
44202
- tone = "neutral",
44322
+ tone = "none",
44203
44323
  glassOpacity,
44204
44324
  transparency,
44205
44325
  vibrancy,
@@ -45635,8 +45755,8 @@ var SideMenuCtaCard = ({
45635
45755
  Panel_default,
45636
45756
  {
45637
45757
  className: cta.onDismiss ? "relative" : void 0,
45638
- variant: glass ? "glass" : "outlined",
45639
- tone,
45758
+ variant: cta.variant ?? (glass ? "glass" : "outlined"),
45759
+ tone: cta.surfaceTone ?? "none",
45640
45760
  padding: "sm",
45641
45761
  mediaPlacement: "top",
45642
45762
  media: cta.media,
@@ -46323,7 +46443,7 @@ var SideMenu = ({
46323
46443
  SideMenuDetailPanel,
46324
46444
  {
46325
46445
  items: footerDetails,
46326
- tone: footerDetailsTone ?? color2,
46446
+ tone: footerDetailsTone ?? "none",
46327
46447
  menuTone: color2,
46328
46448
  glass: surface.idleCopy === "glass",
46329
46449
  idleCopy: surface.idleCopy
@@ -46905,7 +47025,7 @@ var SidePanel = ({
46905
47025
  transparency,
46906
47026
  vibrancy,
46907
47027
  specularMode,
46908
- surfaceTone = "neutral",
47028
+ surfaceTone = "none",
46909
47029
  size = "md",
46910
47030
  side = "right",
46911
47031
  overlay = false,
@@ -46933,7 +47053,7 @@ var SidePanel = ({
46933
47053
  );
46934
47054
  const surface = getSidebarSurfaceTokens(
46935
47055
  legacyVariant ? variant : "sidebar",
46936
- surfaceTone
47056
+ getSurfaceAccentColor(surfaceTone)
46937
47057
  );
46938
47058
  const surfaceText = getSidePanelTextTokens(variant);
46939
47059
  const insetValue = inset ?? surface.offset !== "";
@@ -47686,6 +47806,7 @@ var ROW_ICON_VARIANT = "ghost";
47686
47806
  var EDITOR_BUTTON_FOR_SURFACE = {
47687
47807
  // `plain` means "the background is unknown". Glass is the treatment built
47688
47808
  // for exactly that: a frosted backdrop reads on a white page and on a photo.
47809
+ none: "ghost",
47689
47810
  plain: "glass",
47690
47811
  elevated: "outline",
47691
47812
  outlined: "outline",
@@ -48090,7 +48211,7 @@ var SmartGridLayout = ({
48090
48211
  tone,
48091
48212
  editThemeColor,
48092
48213
  variant = "plain",
48093
- surfaceTone = "neutral",
48214
+ surfaceTone = "none",
48094
48215
  size = "md",
48095
48216
  controlVariant,
48096
48217
  readOnly = false,
@@ -51079,6 +51200,7 @@ import { Fragment as Fragment40, jsx as jsx273, jsxs as jsxs157 } from "react/js
51079
51200
  import { createElement } from "react";
51080
51201
  var SPLIT_VIEW_LOADERS = ["skeleton", "spinner", "progress"];
51081
51202
  var SEARCH_VARIANT_FOR_SURFACE = {
51203
+ none: "flat",
51082
51204
  elevated: "elevated",
51083
51205
  outlined: "flat",
51084
51206
  subtle: "ghost",
@@ -51167,7 +51289,7 @@ var SplitView = ({
51167
51289
  tone,
51168
51290
  color: color2,
51169
51291
  variant = "elevated",
51170
- surfaceTone = "neutral",
51292
+ surfaceTone = "none",
51171
51293
  searchVariant,
51172
51294
  size = "md",
51173
51295
  showHighlightIndicator = true,
@@ -53604,7 +53726,7 @@ var StatCard = ({
53604
53726
  iconTone,
53605
53727
  trend: trendProp,
53606
53728
  size = "md",
53607
- tone,
53729
+ tone: surfaceTone = "none",
53608
53730
  gradient = false,
53609
53731
  progress: progressProp = false,
53610
53732
  progressType = "spinner",
@@ -53645,6 +53767,7 @@ var StatCard = ({
53645
53767
  children,
53646
53768
  ...rest
53647
53769
  }) => {
53770
+ const tone = getSurfaceAccentColor(surfaceTone);
53648
53771
  const pager = usePager({
53649
53772
  count: pages?.length ?? 0,
53650
53773
  page,
@@ -53713,7 +53836,7 @@ var StatCard = ({
53713
53836
  Panel_default,
53714
53837
  {
53715
53838
  variant,
53716
- tone,
53839
+ tone: surfaceTone,
53717
53840
  corner,
53718
53841
  padding,
53719
53842
  decoration: resolvedDecoration,
@@ -55810,7 +55933,7 @@ var Stepper = ({
55810
55933
  completedStepIds,
55811
55934
  orientation = "horizontal",
55812
55935
  variant = "elevated",
55813
- tone = "neutral",
55936
+ tone: surfaceTone = "none",
55814
55937
  size = "md",
55815
55938
  nodeCorner = "full",
55816
55939
  padding = "md",
@@ -55840,6 +55963,7 @@ var Stepper = ({
55840
55963
  className,
55841
55964
  ...panelRest
55842
55965
  }) => {
55966
+ const tone = getSurfaceAccentColor(surfaceTone);
55843
55967
  const state = useStepper(steps, {
55844
55968
  currentIndex,
55845
55969
  currentStepId,
@@ -55855,7 +55979,7 @@ var Stepper = ({
55855
55979
  {
55856
55980
  className: classNames94("w-full", className),
55857
55981
  variant,
55858
- tone,
55982
+ tone: surfaceTone,
55859
55983
  padding,
55860
55984
  corner,
55861
55985
  loaderType: loaderType === "skeleton" ? "spinner" : loaderType,
@@ -57243,7 +57367,7 @@ function TableComponent({
57243
57367
  density = "default",
57244
57368
  bordered = false,
57245
57369
  corner,
57246
- tone = "neutral",
57370
+ tone: surfaceTone = "none",
57247
57371
  panelVariant = "auto",
57248
57372
  panelTone = "auto",
57249
57373
  panelCorner = "auto",
@@ -57308,6 +57432,7 @@ function TableComponent({
57308
57432
  storage,
57309
57433
  color: color2
57310
57434
  }) {
57435
+ const tone = getSurfaceAccentColor(surfaceTone);
57311
57436
  const t = useKitT();
57312
57437
  const uid = useId39();
57313
57438
  const getDefaultColumnVisibility = (column) => {
@@ -57337,7 +57462,7 @@ function TableComponent({
57337
57462
  };
57338
57463
  const controlColor = color2 ?? (tone === "neutral" ? "blue" : tone);
57339
57464
  const resolvedPanelVariant = panelVariant === "auto" ? isGlassSurface(variant) ? "default" : variant : panelVariant;
57340
- const resolvedPanelTone = panelTone === "auto" ? tone : panelTone;
57465
+ const resolvedPanelTone = panelTone === "auto" ? surfaceTone : panelTone;
57341
57466
  const resolvedPanelCorner = panelCorner === "auto" ? corner : panelCorner;
57342
57467
  const focusRingClass = `focus-visible:ring-${controlColor}-500 dark:focus-visible:ring-${controlColor}-400`;
57343
57468
  const densityTokens = getTableDensityTokens(density);
@@ -57951,7 +58076,7 @@ function TableComponent({
57951
58076
  Panel_default,
57952
58077
  {
57953
58078
  variant,
57954
- tone,
58079
+ tone: surfaceTone,
57955
58080
  padding: "none",
57956
58081
  corner,
57957
58082
  scrollable: false,
@@ -58966,7 +59091,7 @@ var AccessMatrix = ({
58966
59091
  permissions,
58967
59092
  limit = 5,
58968
59093
  variant = "outlined",
58969
- tone = "neutral",
59094
+ tone: surfaceTone = "none",
58970
59095
  density,
58971
59096
  bordered = false,
58972
59097
  corner,
@@ -58982,6 +59107,7 @@ var AccessMatrix = ({
58982
59107
  loaderProgress,
58983
59108
  emptyState
58984
59109
  }) => {
59110
+ const tone = getSurfaceAccentColor(surfaceTone);
58985
59111
  const [expanded, setExpanded] = useState74(false);
58986
59112
  const [collapsedGroups, setCollapsedGroups] = useState74(
58987
59113
  /* @__PURE__ */ new Set()
@@ -59111,7 +59237,7 @@ var AccessMatrix = ({
59111
59237
  columns,
59112
59238
  data: rows,
59113
59239
  variant,
59114
- tone,
59240
+ tone: surfaceTone,
59115
59241
  density,
59116
59242
  bordered,
59117
59243
  corner,
@@ -59355,7 +59481,7 @@ var KeyValueArrayField = ({
59355
59481
  disabled = false,
59356
59482
  flagDuplicateKeys = true,
59357
59483
  variant = "outlined",
59358
- tone = "blue",
59484
+ tone: surfaceTone = "none",
59359
59485
  corner = DEFAULT_SURFACE_CORNER,
59360
59486
  padding = "sm",
59361
59487
  glassOpacity,
@@ -59366,6 +59492,7 @@ var KeyValueArrayField = ({
59366
59492
  size = "sm",
59367
59493
  className
59368
59494
  }) => {
59495
+ const tone = getSurfaceAccentColor(surfaceTone);
59369
59496
  const baseId = useId40();
59370
59497
  const labelId = `${baseId}-label`;
59371
59498
  const errorId = `${baseId}-error`;
@@ -59462,7 +59589,7 @@ var KeyValueArrayField = ({
59462
59589
  Panel_default,
59463
59590
  {
59464
59591
  variant,
59465
- tone,
59592
+ tone: surfaceTone,
59466
59593
  corner,
59467
59594
  padding,
59468
59595
  glassOpacity,
@@ -59567,7 +59694,7 @@ var DynamicFormField = ({
59567
59694
  isVisible = true,
59568
59695
  size = "md",
59569
59696
  variant = "elevated",
59570
- tone = "blue",
59697
+ tone: surfaceTone = "none",
59571
59698
  corner = DEFAULT_SURFACE_CORNER,
59572
59699
  padding = "md",
59573
59700
  inputVariant = "auto",
@@ -59582,6 +59709,7 @@ var DynamicFormField = ({
59582
59709
  vibrancy,
59583
59710
  specularMode
59584
59711
  }) => {
59712
+ const tone = getSurfaceAccentColor(surfaceTone);
59585
59713
  const t = useKitT();
59586
59714
  const generatedId = useId41();
59587
59715
  const resolvedInputVariant = inputVariant === "auto" ? INPUT_VARIANT_FOR_SURFACE[variant] : inputVariant;
@@ -59733,7 +59861,7 @@ var DynamicFormField = ({
59733
59861
  {
59734
59862
  className: classNames99("w-full", className),
59735
59863
  variant,
59736
- tone,
59864
+ tone: surfaceTone,
59737
59865
  corner,
59738
59866
  padding,
59739
59867
  glassOpacity,
@@ -59786,6 +59914,7 @@ var NotificationModal = ({
59786
59914
  onSecondaryAction,
59787
59915
  icon,
59788
59916
  tone,
59917
+ surfaceTone = "none",
59789
59918
  size = "sm",
59790
59919
  ...rest
59791
59920
  }) => {
@@ -59807,7 +59936,7 @@ var NotificationModal = ({
59807
59936
  onClose,
59808
59937
  title,
59809
59938
  size,
59810
- tone: resolvedTone,
59939
+ tone: surfaceTone,
59811
59940
  icon: icon ?? config.icon,
59812
59941
  actions: /* @__PURE__ */ jsxs177(Modal_default.Actions, { children: [
59813
59942
  secondaryActionLabel && /* @__PURE__ */ jsx296(
@@ -60594,7 +60723,7 @@ var TimelinePanel = ({
60594
60723
  headerAction,
60595
60724
  items,
60596
60725
  variant = "simple",
60597
- tone = "neutral",
60726
+ tone: surfaceTone = "none",
60598
60727
  padding = "sm",
60599
60728
  corner = "none",
60600
60729
  lineColor,
@@ -60613,6 +60742,7 @@ var TimelinePanel = ({
60613
60742
  glassOpacity,
60614
60743
  specularMode
60615
60744
  }) => {
60745
+ const tone = getSurfaceAccentColor(surfaceTone);
60616
60746
  const isDark = useIsDark();
60617
60747
  const palette = getPanelToneStyles(tone);
60618
60748
  const itemEls = useRef68([]);
@@ -60716,7 +60846,7 @@ var TimelinePanel = ({
60716
60846
  Panel_default,
60717
60847
  {
60718
60848
  variant,
60719
- tone,
60849
+ tone: surfaceTone,
60720
60850
  padding,
60721
60851
  corner,
60722
60852
  className,
@@ -61185,6 +61315,7 @@ var connectorVisual = (connector) => {
61185
61315
  };
61186
61316
  var GLASS_RIM2 = "stroke-white/50 dark:stroke-white/10";
61187
61317
  var NODE_SURFACES = {
61318
+ none: () => ({ fill: "fill-transparent", stroke: "stroke-none", effect: "" }),
61188
61319
  elevated: () => ({
61189
61320
  fill: "fill-white dark:fill-neutral-900",
61190
61321
  stroke: "stroke-black/5 dark:stroke-white/10",
@@ -64756,7 +64887,7 @@ var ConnectionFlow = React90.forwardRef(function ConnectionFlow2({
64756
64887
  editMode = false,
64757
64888
  onNodeCreate,
64758
64889
  variant = "outlined",
64759
- tone = "neutral",
64890
+ tone: surfaceTone = "none",
64760
64891
  size = "md",
64761
64892
  corner = DEFAULT_SURFACE_CORNER,
64762
64893
  edgeStyle = "orthogonal",
@@ -64801,6 +64932,7 @@ var ConnectionFlow = React90.forwardRef(function ConnectionFlow2({
64801
64932
  onZoomChange,
64802
64933
  renderNode
64803
64934
  }, ref) {
64935
+ const tone = getSurfaceAccentColor(surfaceTone);
64804
64936
  const editorRef = useRef70(null);
64805
64937
  const [editBounds, setEditBounds] = useState79(null);
64806
64938
  const onEditBounds = useCallback45((next) => setEditBounds(
@@ -65347,7 +65479,7 @@ var ConnectionFlow = React90.forwardRef(function ConnectionFlow2({
65347
65479
  {
65348
65480
  className: classNames107("flex min-h-0 w-full min-w-0 flex-col", className),
65349
65481
  variant,
65350
- tone,
65482
+ tone: surfaceTone,
65351
65483
  corner,
65352
65484
  padding: "none",
65353
65485
  flexBody: true,
@@ -68361,7 +68493,7 @@ var resolveLabels = (labelOverrides) => labelOverrides ? {
68361
68493
  } : DEFAULT_LABELS;
68362
68494
  var buildCardProps = ({
68363
68495
  variant = "outlined",
68364
- cardTone = "neutral",
68496
+ cardTone = "none",
68365
68497
  corner = DEFAULT_SURFACE_CORNER,
68366
68498
  glassOpacity = "light",
68367
68499
  vibrancy,
@@ -69211,7 +69343,7 @@ var WorkflowTracker = ({
69211
69343
  customStatuses,
69212
69344
  mutedColor = "neutral",
69213
69345
  variant = "outlined",
69214
- cardTone = "neutral",
69346
+ cardTone = "none",
69215
69347
  translucentSurfaces,
69216
69348
  glassOpacity = "light",
69217
69349
  vibrancy,
@@ -71668,6 +71800,7 @@ function nearestPreset(zoom, presets) {
71668
71800
  }
71669
71801
  var GanttToolbar = ({
71670
71802
  variant = "elevated",
71803
+ tone = "none",
71671
71804
  zoom,
71672
71805
  presets,
71673
71806
  onZoomTo,
@@ -71682,8 +71815,8 @@ var GanttToolbar = ({
71682
71815
  };
71683
71816
  const active = useMemo61(() => nearestPreset(zoom, presets), [zoom, presets]);
71684
71817
  const chrome = useMemo61(
71685
- () => getSurfaceVariantClasses(variant, "neutral"),
71686
- [variant]
71818
+ () => getSurfaceVariantClasses(variant, tone),
71819
+ [variant, tone]
71687
71820
  );
71688
71821
  return /* @__PURE__ */ jsxs204(
71689
71822
  "div",
@@ -72107,6 +72240,7 @@ var Gantt = ({
72107
72240
  height = 520,
72108
72241
  color: color2 = "blue",
72109
72242
  variant = "elevated",
72243
+ tone = "none",
72110
72244
  corner = "rounded-sm",
72111
72245
  padding = "none",
72112
72246
  vibrancy,
@@ -72617,6 +72751,7 @@ var Gantt = ({
72617
72751
  {
72618
72752
  ref: rootRef,
72619
72753
  variant,
72754
+ tone,
72620
72755
  padding,
72621
72756
  corner,
72622
72757
  vibrancy,
@@ -72644,7 +72779,7 @@ var Gantt = ({
72644
72779
  {
72645
72780
  className: classNames128(
72646
72781
  "flex h-10 w-10 shrink-0 items-center justify-center rounded-xl",
72647
- getSurfaceVariantClasses(variant, "neutral")
72782
+ getSurfaceVariantClasses(variant, tone)
72648
72783
  ),
72649
72784
  children: icon
72650
72785
  }
@@ -72657,6 +72792,7 @@ var Gantt = ({
72657
72792
  /* @__PURE__ */ jsx328("div", { className: "ml-auto shrink-0", children: /* @__PURE__ */ jsx328(
72658
72793
  GanttToolbar,
72659
72794
  {
72795
+ tone,
72660
72796
  variant,
72661
72797
  zoom,
72662
72798
  presets: GANTT_ZOOM_PRESETS,
@@ -76375,7 +76511,7 @@ var Terminal = forwardRef170(
76375
76511
  style,
76376
76512
  padding = "sm",
76377
76513
  variant = "outlined",
76378
- tone = "neutral",
76514
+ tone = "none",
76379
76515
  ...surface
76380
76516
  }, ref) {
76381
76517
  return /* @__PURE__ */ jsx342(
@@ -76445,7 +76581,7 @@ var TerminalTabs = forwardRef171(
76445
76581
  height = 360,
76446
76582
  style,
76447
76583
  variant = "outlined",
76448
- tone = "neutral",
76584
+ tone: surfaceTone = "none",
76449
76585
  padding = "sm",
76450
76586
  readOnly,
76451
76587
  scheme,
@@ -76457,6 +76593,7 @@ var TerminalTabs = forwardRef171(
76457
76593
  emptyState = "No terminal sessions",
76458
76594
  ...surface
76459
76595
  }, ref) {
76596
+ const tone = getSurfaceAccentColor(surfaceTone);
76460
76597
  const prefix = useId48();
76461
76598
  const [selected, setSelected] = useState98(defaultValue ?? sessions[0]?.id);
76462
76599
  const requested = value ?? selected;
@@ -76477,7 +76614,7 @@ var TerminalTabs = forwardRef171(
76477
76614
  ...surface,
76478
76615
  "data-color-scheme": scheme ?? "auto",
76479
76616
  className: classNames142(surface.className, scheme === "dark" && "dark"),
76480
- ...{ variant, tone, padding },
76617
+ ...{ variant, tone: surfaceTone, padding },
76481
76618
  flexBody: true,
76482
76619
  scrollable: false,
76483
76620
  style: {
@@ -76764,7 +76901,7 @@ function MenuRow({ item, state, depth }) {
76764
76901
  item.label && /* @__PURE__ */ jsx346("div", { className: "px-3 pb-1 pt-3 text-xs font-semibold text-neutral-500 dark:text-neutral-400", children: item.label }),
76765
76902
  item.items && /* @__PURE__ */ jsx346(MenuList, { items: item.disabled ? item.items.map((child) => ({ ...child, disabled: true })) : item.items, state, depth, parentLabel: label, grouped: true })
76766
76903
  ] });
76767
- const itemTone2 = item.tone ?? props.itemTone ?? props.tone ?? "neutral";
76904
+ const itemTone2 = getSurfaceAccentColor(item.tone ?? props.itemTone ?? props.tone ?? "none");
76768
76905
  const itemPadding = item.padding ?? props.itemPadding;
76769
76906
  const tokens = getSideMenuItemTokens(itemTone2);
76770
76907
  const checkable = item.type === "checkbox" || item.type === "radio";
@@ -76857,7 +76994,7 @@ function MenuSurface({ state, children, root = false }) {
76857
76994
  Panel_default,
76858
76995
  {
76859
76996
  variant: props.variant ?? "outlined",
76860
- tone: props.tone ?? "neutral",
76997
+ tone: props.tone ?? "none",
76861
76998
  corner: props.corner,
76862
76999
  padding: "none",
76863
77000
  glassOpacity: props.glassOpacity,
@@ -77068,7 +77205,7 @@ function FileUpload({ embedded = false, compact: compact2 = false, value, defaul
77068
77205
  const files = value ?? internal;
77069
77206
  const locked = disabled || loading;
77070
77207
  const labels = { ...defaultLabels, ...overrides };
77071
- const tokens = getSideMenuItemTokens(surface.tone ?? "blue");
77208
+ const tokens = getSideMenuItemTokens(getSurfaceAccentColor(surface.tone ?? "none"));
77072
77209
  const change = (next) => {
77073
77210
  if (value === void 0) setInternal(next);
77074
77211
  onChange?.(next);
@@ -77123,7 +77260,7 @@ function FileUpload({ embedded = false, compact: compact2 = false, value, defaul
77123
77260
  choose(Array.from(event.target.files ?? []));
77124
77261
  event.target.value = "";
77125
77262
  } }),
77126
- /* @__PURE__ */ jsx348(Button_default, { size, className: compact2 ? "shrink-0" : void 0, variant: "soft", color: surface.tone ?? "blue", disabled: locked, loading, onClick: () => input.current?.click(), children: labels.browse })
77263
+ /* @__PURE__ */ jsx348(Button_default, { size, className: compact2 ? "shrink-0" : void 0, variant: "soft", color: getSurfaceAccentColor(surface.tone ?? "none"), disabled: locked, loading, onClick: () => input.current?.click(), children: labels.browse })
77127
77264
  ]
77128
77265
  }
77129
77266
  ),
@@ -77143,7 +77280,7 @@ function FileUpload({ embedded = false, compact: compact2 = false, value, defaul
77143
77280
  ] }, `${file.name}-${file.lastModified}-${index}`)) }) : !compact2 && /* @__PURE__ */ jsx348("p", { className: classNames145("mt-3 text-neutral-500", density.detail), role: "status", children: labels.empty }),
77144
77281
  (error || rejections.length > 0) && /* @__PURE__ */ jsx348("div", { role: "alert", className: "mt-3 text-xs text-rose-700 dark:text-rose-300", children: error || /* @__PURE__ */ jsx348("ul", { children: rejections.map((rejection, i) => /* @__PURE__ */ jsx348("li", { children: rejectionMessage?.(rejection) ?? rejection.message }, i)) }) })
77145
77282
  ] });
77146
- return embedded ? /* @__PURE__ */ jsx348("div", { className, children: content }) : /* @__PURE__ */ jsx348(Panel_default, { ...surface, variant: surface.variant ?? "outlined", tone: surface.tone ?? "neutral", padding: surface.padding ?? "sm", className, children: content });
77283
+ return embedded ? /* @__PURE__ */ jsx348("div", { className, children: content }) : /* @__PURE__ */ jsx348(Panel_default, { ...surface, variant: surface.variant ?? "outlined", tone: surface.tone ?? "none", padding: surface.padding ?? "sm", className, children: content });
77147
77284
  }
77148
77285
 
77149
77286
  // src/components/IdentityPicker/IdentityPicker.tsx
@@ -77349,7 +77486,7 @@ function IdentityPicker({
77349
77486
  const selected = value === void 0 ? internal : value;
77350
77487
  const labels = { ...defaults, ...overrides };
77351
77488
  const locked = disabled || loading;
77352
- const tone = surface.tone ?? "blue";
77489
+ const tone = getSurfaceAccentColor(surface.tone ?? "none");
77353
77490
  const tokens = getSideMenuItemTokens(tone);
77354
77491
  const automatic = initials(name);
77355
77492
  const change = (next) => {
@@ -77525,12 +77662,13 @@ function ActivePopover({ trigger, content, options }) {
77525
77662
  onOpenChange?.(value);
77526
77663
  }, children: content });
77527
77664
  }
77528
- function DotStepper({ steps, currentIndex, currentStepId, maxVisible = 5, size = "sm", corner = "full", tone = "blue", variant = "tonal", padding = "none", doneColor = "emerald", nextColor = "neutral", errorColor: errorColor2 = "rose", animated = true, disabled = false, onStepSelect, renderActiveContent, popoverProps, className, style, "aria-label": label = "Workflow progress", ...surface }) {
77665
+ function DotStepper({ steps, currentIndex, currentStepId, maxVisible = 5, size = "sm", corner = "full", tone: surfaceTone = "none", variant = "tonal", padding = "none", doneColor = "emerald", nextColor = "neutral", errorColor: errorColor2 = "rose", animated = true, disabled = false, onStepSelect, renderActiveContent, popoverProps, className, style, "aria-label": label = "Workflow progress", ...surface }) {
77666
+ const tone = getSurfaceAccentColor(surfaceTone);
77529
77667
  const plan = planDotSteps(steps, currentIndex, currentStepId, maxVisible);
77530
77668
  const density = sizes[size];
77531
77669
  const fill = (status) => status === "completed" ? getTrueColorDotClass(doneColor) : status === "error" ? getTrueColorDotClass(errorColor2) : status === "active" ? getTrueColorDotClass(tone) : classNames147(getTrueColorDotClass(nextColor), "opacity-20 dark:opacity-25");
77532
77670
  const overflow = (side, count) => count > 0 && /* @__PURE__ */ jsx350(TooltipWrapper_default, { text: `${count} more steps ${side}`, children: /* @__PURE__ */ jsx350("span", { tabIndex: disabled ? -1 : 0, role: "img", "aria-label": `${count} more steps ${side}`, className: classNames147("relative inline-flex shrink-0 items-center justify-center rounded-full focus-visible:outline-2 focus-visible:outline-offset-2", density.target), children: /* @__PURE__ */ jsx350("span", { "aria-hidden": "true", className: classNames147("relative inline-flex items-center", density.stack), children: [0, 1].map((index) => /* @__PURE__ */ jsx350("span", { className: classNames147("absolute rounded-full", density.dot, fill(overflowStatus(side === "before" ? plan.statuses.slice(0, plan.start) : plan.statuses.slice(plan.end)))), style: { left: index === 0 ? 0 : "35%", transform: "scale(.72)", filter: index === (side === "before" ? 0 : 1) ? "opacity(.55)" : void 0, zIndex: side === "before" ? index : 1 - index } }, index)) }) }) }, side);
77533
- return /* @__PURE__ */ jsx350(Panel_default, { ...surface, role: "group", "aria-label": label, "aria-disabled": disabled || void 0, variant, tone, corner: corner === "full" ? "none" : corner, padding: "none", className: classNames147("align-middle", disabled && "opacity-50", className), style: { width: "max-content", overflow: "visible", ...corner === "full" ? { borderRadius: 9999 } : {}, ...style }, children: /* @__PURE__ */ jsxs221("div", { className: classNames147("flex w-max items-center", density.gap, getCompactSurfacePaddingClass(padding)), children: [
77671
+ return /* @__PURE__ */ jsx350(Panel_default, { ...surface, role: "group", "aria-label": label, "aria-disabled": disabled || void 0, variant, tone: surfaceTone, corner: corner === "full" ? "none" : corner, padding: "none", className: classNames147("align-middle", disabled && "opacity-50", className), style: { width: "max-content", overflow: "visible", ...corner === "full" ? { borderRadius: 9999 } : {}, ...style }, children: /* @__PURE__ */ jsxs221("div", { className: classNames147("flex w-max items-center", density.gap, getCompactSurfacePaddingClass(padding)), children: [
77534
77672
  overflow("before", plan.before),
77535
77673
  plan.indices.map((index) => {
77536
77674
  const step = steps[index];
@@ -77659,7 +77797,7 @@ function MemoryCard({
77659
77797
  ] })
77660
77798
  ] })
77661
77799
  ] });
77662
- return /* @__PURE__ */ jsxs223(Panel_default, { tone: "neutral", variant: "outlined", padding: "none", disabled, ...surface, className: `kit-knowledge kit-memory-card ${className}`, "data-layout": layout, "data-selected": selected, "data-highlighted": highlighted, children: [
77800
+ return /* @__PURE__ */ jsxs223(Panel_default, { tone: "none", variant: "outlined", padding: "none", disabled, ...surface, className: `kit-knowledge kit-memory-card ${className}`, "data-layout": layout, "data-selected": selected, "data-highlighted": highlighted, children: [
77663
77801
  onSelect ? /* @__PURE__ */ jsx352("button", { className: "kit-memory-select", type: "button", disabled, "aria-pressed": selected, onClick: () => onSelect(memory), children: body }) : /* @__PURE__ */ jsx352("div", { className: "kit-memory-select", children: body }),
77664
77802
  /* @__PURE__ */ jsx352(MemoryActionButtons, { memory, disabled, onEdit, onPinChange, onArchive, copy })
77665
77803
  ] });
@@ -77796,7 +77934,7 @@ function MemoryLibrary({
77796
77934
  function changeFilter(key, value) {
77797
77935
  setFilters({ ...filters, [key]: value || void 0 });
77798
77936
  }
77799
- return /* @__PURE__ */ jsxs224(Panel_default, { tone: "neutral", variant: "outlined", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-memory-library ${className}`, "aria-busy": loading, children: [
77937
+ return /* @__PURE__ */ jsxs224(Panel_default, { tone: "none", variant: "outlined", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-memory-library ${className}`, "aria-busy": loading, children: [
77800
77938
  /* @__PURE__ */ jsxs224("div", { className: "kit-knowledge-toolbar", children: [
77801
77939
  /* @__PURE__ */ jsxs224("label", { className: "kit-knowledge-search", children: [
77802
77940
  /* @__PURE__ */ jsx353("span", { children: copy("search") }),
@@ -77861,7 +77999,7 @@ function MemoryDetail({
77861
77999
  ...surface
77862
78000
  }) {
77863
78001
  const copy = useKnowledgeCopy(labels);
77864
- return /* @__PURE__ */ jsx354(Panel_default, { tone: "neutral", variant: "outlined", padding: "none", disabled, ...surface, className: `kit-knowledge kit-memory-detail ${className}`, children: !memory ? /* @__PURE__ */ jsx354("p", { className: "kit-knowledge-empty", children: copy("selectMemory") }) : /* @__PURE__ */ jsxs225("div", { className: "kit-memory-detail-body", children: [
78002
+ return /* @__PURE__ */ jsx354(Panel_default, { tone: "none", variant: "outlined", padding: "none", disabled, ...surface, className: `kit-knowledge kit-memory-detail ${className}`, children: !memory ? /* @__PURE__ */ jsx354("p", { className: "kit-knowledge-empty", children: copy("selectMemory") }) : /* @__PURE__ */ jsxs225("div", { className: "kit-memory-detail-body", children: [
77865
78003
  /* @__PURE__ */ jsxs225("div", { className: "kit-memory-meta", children: [
77866
78004
  /* @__PURE__ */ jsx354("span", { children: copy(`kinds.${memory.kind}`) }),
77867
78005
  /* @__PURE__ */ jsx354("span", { children: copy(`statuses.${memory.status ?? "active"}`) }),
@@ -78111,7 +78249,7 @@ function KnowledgeMap({
78111
78249
  const matches = useMemo72(() => scene.points.filter((point) => (!selectedTopic || point.memory.topic === selectedTopic) && `${point.memory.title} ${point.memory.topic ?? ""}`.toLocaleLowerCase().includes(query.toLocaleLowerCase())), [scene, query, selectedTopic]);
78112
78250
  const lastPage = Math.max(0, Math.ceil(matches.length / PAGE_SIZE) - 1), currentPage = Math.min(page, lastPage);
78113
78251
  const selectableRelationships = geometry.edges.filter((edge) => edge.source.memoryId === selection || edge.target.memoryId === selection);
78114
- return /* @__PURE__ */ jsxs226(Panel_default, { tone: "neutral", variant: "outlined", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-knowledge-map ${className}`, "aria-busy": loading, children: [
78252
+ return /* @__PURE__ */ jsxs226(Panel_default, { tone: "none", variant: "outlined", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-knowledge-map ${className}`, "aria-busy": loading, children: [
78115
78253
  /* @__PURE__ */ jsxs226("div", { className: "kit-knowledge-toolbar", children: [
78116
78254
  /* @__PURE__ */ jsx355("strong", { children: copy("map") }),
78117
78255
  /* @__PURE__ */ jsxs226("div", { className: "kit-knowledge-view", children: [
@@ -78281,7 +78419,7 @@ function KnowledgeExplorer({
78281
78419
  ] });
78282
78420
  return trace && /* @__PURE__ */ jsx356(TraceGraph, { ...trace, disabled: disabled || trace.disabled, nodes: traceNodes, selectedNodeId: traceId, onNodeSelect: (node) => selectTrace(node?.id ?? null) });
78283
78421
  };
78284
- return /* @__PURE__ */ jsxs227(Panel_default, { tone: "neutral", variant: "simple", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-knowledge-explorer ${className}`, children: [
78422
+ return /* @__PURE__ */ jsxs227(Panel_default, { tone: "none", variant: "simple", padding: "none", loading, disabled, ...surface, className: `kit-knowledge kit-knowledge-explorer ${className}`, children: [
78285
78423
  /* @__PURE__ */ jsx356("div", { className: "kit-knowledge-mobile-nav", role: "group", "aria-label": copy("library"), children: enabled.map((region) => /* @__PURE__ */ jsx356("button", { type: "button", "aria-pressed": view === region, onClick: () => setMobileView(region), children: copy(region === "detail" ? "details" : region) }, region)) }),
78286
78424
  /* @__PURE__ */ jsx356("div", { className: "kit-knowledge-regions", children: enabled.map((region) => /* @__PURE__ */ jsx356("section", { className: `kit-knowledge-region kit-knowledge-region-${region}`, "data-mobile-active": view === region, "aria-label": copy(region === "detail" ? "details" : region), children: content(region) }, region)) })
78287
78425
  ] });
@@ -78343,19 +78481,132 @@ function ContentActions({
78343
78481
  }
78344
78482
  var ContentActions_default = ContentActions;
78345
78483
 
78484
+ // src/components/CodeBlock.tsx
78485
+ import React116, { useEffect as useEffect87, useMemo as useMemo74, useRef as useRef89, useState as useState108 } from "react";
78486
+ import { refractor } from "refractor";
78487
+ import tsx from "refractor/tsx";
78488
+ import { jsx as jsx358, jsxs as jsxs229 } from "react/jsx-runtime";
78489
+ refractor.register(tsx);
78490
+ function tokenRuns(nodes, inherited = "") {
78491
+ return nodes.flatMap((node) => {
78492
+ if (node.type === "text") return [{ text: node.value, className: inherited }];
78493
+ if (node.type !== "element") return [];
78494
+ const classes = node.properties.className;
78495
+ const className = [inherited, Array.isArray(classes) ? classes.join(" ") : String(classes ?? "")].filter(Boolean).join(" ");
78496
+ return tokenRuns(node.children, className);
78497
+ });
78498
+ }
78499
+ function renderLines(runs, numbered, value) {
78500
+ const lines = [[]];
78501
+ let key = 0;
78502
+ for (const run of runs) {
78503
+ run.text.split("\n").forEach((text2, index) => {
78504
+ if (index) lines.push([]);
78505
+ if (text2) lines[lines.length - 1].push(/* @__PURE__ */ jsx358("span", { className: run.className || void 0, children: text2 }, key++));
78506
+ });
78507
+ }
78508
+ const digits = String(value.split("\n").length).length;
78509
+ return lines.map((line3, index) => /* @__PURE__ */ jsxs229(React116.Fragment, { children: [
78510
+ index > 0 ? "\n" : null,
78511
+ /* @__PURE__ */ jsxs229("span", { className: "ui-code-block-line", children: [
78512
+ numbered && /* @__PURE__ */ jsx358("span", { className: "ui-code-block-line-number", "aria-hidden": "true", "data-line": index + 1, style: { width: `${digits}ch` } }),
78513
+ /* @__PURE__ */ jsx358("span", { className: "ui-code-block-line-text", children: line3 })
78514
+ ] })
78515
+ ] }, index));
78516
+ }
78517
+ function CodeBlock({
78518
+ value,
78519
+ onChange,
78520
+ readOnly = true,
78521
+ language,
78522
+ filename,
78523
+ showTitle = true,
78524
+ showCopy = true,
78525
+ showLineNumbers = false,
78526
+ wrapLines = false,
78527
+ maxHeight,
78528
+ tone = "none",
78529
+ color: color2 = "blue",
78530
+ variant = "subtle",
78531
+ corner = "rounded-md",
78532
+ editorLabel,
78533
+ className,
78534
+ ...rest
78535
+ }) {
78536
+ const t = useKitT();
78537
+ const [copyState, setCopyState] = useState108("idle");
78538
+ const timer = useRef89(void 0);
78539
+ const generation = useRef89(0);
78540
+ useEffect87(() => {
78541
+ generation.current++;
78542
+ setCopyState("idle");
78543
+ clearTimeout(timer.current);
78544
+ return () => {
78545
+ generation.current++;
78546
+ clearTimeout(timer.current);
78547
+ };
78548
+ }, [value]);
78549
+ const highlighted = useMemo74(() => {
78550
+ if (!readOnly || !language) return [{ text: value, className: "" }];
78551
+ try {
78552
+ return tokenRuns(refractor.highlight(value, language.toLowerCase()).children);
78553
+ } catch {
78554
+ return [{ text: value, className: "" }];
78555
+ }
78556
+ }, [value, language, readOnly]);
78557
+ const copy = async () => {
78558
+ const current = ++generation.current;
78559
+ clearTimeout(timer.current);
78560
+ try {
78561
+ await navigator.clipboard.writeText(value);
78562
+ if (current !== generation.current) return;
78563
+ setCopyState("success");
78564
+ } catch {
78565
+ if (current !== generation.current) return;
78566
+ setCopyState("error");
78567
+ }
78568
+ timer.current = setTimeout(() => setCopyState("idle"), 2e3);
78569
+ };
78570
+ const copyLabel = t(copyState === "success" ? "kit.codeBlock.copied" : "kit.codeBlock.copy");
78571
+ return /* @__PURE__ */ jsx358("div", { ...rest, className: ["ui-code-block relative w-full min-w-0", className].filter(Boolean).join(" "), children: /* @__PURE__ */ jsxs229(Panel_default, { className: "ui-code-block-surface", tone, variant, corner, padding: "none", bodyClassName: "min-w-0 overflow-hidden", children: [
78572
+ (showTitle || showCopy) && /* @__PURE__ */ jsxs229("div", { "data-slot": "code-block-header", className: `relative flex min-w-0 items-center gap-3 px-4 py-2 ${showTitle ? "justify-between border-b border-current/10" : "justify-end"}`, children: [
78573
+ showTitle && /* @__PURE__ */ jsx358("span", { className: "truncate font-mono text-xs", children: filename || language || t("kit.codeBlock.code") }),
78574
+ showCopy && /* @__PURE__ */ jsx358(IconButton_default, { icon: copyState === "success" ? "Check" : "CopyClipboard", color: color2, variant: "ghost", size: "xs", srLabel: copyLabel, tooltip: copyLabel, onClick: copy })
78575
+ ] }),
78576
+ /* @__PURE__ */ jsx358(
78577
+ ScrollArea_default,
78578
+ {
78579
+ variant: "hover",
78580
+ className: "ui-code-block-scroll",
78581
+ "data-wrap": wrapLines || void 0,
78582
+ style: { maxHeight },
78583
+ tabIndex: readOnly ? 0 : -1,
78584
+ role: "region",
78585
+ "aria-label": filename || t("kit.codeBlock.code"),
78586
+ children: readOnly ? /* @__PURE__ */ jsx358("pre", { className: "ui-code-block-source", style: { whiteSpace: wrapLines ? "pre-wrap" : "pre", overflowWrap: wrapLines ? "anywhere" : void 0 }, children: /* @__PURE__ */ jsx358("code", { className: language ? `language-${language}` : void 0, children: renderLines(highlighted, showLineNumbers, value) }) }) : /* @__PURE__ */ jsxs229("div", { className: "ui-code-block-editor-layout", "data-wrap": wrapLines || void 0, children: [
78587
+ /* @__PURE__ */ jsx358("pre", { "aria-hidden": "true", className: "ui-code-block-editor-mirror", style: { whiteSpace: wrapLines ? "pre-wrap" : "pre", overflowWrap: wrapLines ? "anywhere" : void 0 }, children: value + "\n" }),
78588
+ /* @__PURE__ */ jsx358("textarea", { className: "ui-code-block-editor", "aria-label": editorLabel || t("kit.codeBlock.edit"), value, onChange: (event) => onChange?.(event.target.value), spellCheck: false, autoCapitalize: "off", autoCorrect: "off", wrap: wrapLines ? "soft" : "off" })
78589
+ ] })
78590
+ }
78591
+ ),
78592
+ /* @__PURE__ */ jsx358("span", { className: "sr-only", role: "status", children: copyState === "success" ? t("kit.codeBlock.copied") : copyState === "error" ? t("kit.codeBlock.copyFailed") : "" }),
78593
+ copyState === "error" && /* @__PURE__ */ jsx358("p", { className: "px-4 pb-2 text-xs", children: t("kit.codeBlock.copyFailed") })
78594
+ ] }) });
78595
+ }
78596
+
78346
78597
  // src/contexts/BottomSheetContext.tsx
78347
78598
  import {
78348
78599
  createContext as createContext10,
78349
78600
  useCallback as useCallback58,
78350
78601
  useContext as useContext10,
78351
- useEffect as useEffect87,
78352
- useMemo as useMemo74,
78353
- useRef as useRef89,
78354
- useState as useState108
78602
+ useEffect as useEffect88,
78603
+ useMemo as useMemo75,
78604
+ useRef as useRef90,
78605
+ useState as useState109
78355
78606
  } from "react";
78356
78607
  import { createPortal as createPortal21 } from "react-dom";
78357
78608
  import classNames149 from "classnames";
78358
- import { jsx as jsx358, jsxs as jsxs229 } from "react/jsx-runtime";
78609
+ import { jsx as jsx359, jsxs as jsxs230 } from "react/jsx-runtime";
78359
78610
  var BottomSheetContext = createContext10(null);
78360
78611
  var TRANSITION_MS2 = 260;
78361
78612
  var renderSlot = (slot, controls) => {
@@ -78367,9 +78618,9 @@ var renderSlot = (slot, controls) => {
78367
78618
  var BottomSheetProvider = ({
78368
78619
  children
78369
78620
  }) => {
78370
- const [sheet, setSheet] = useState108(null);
78371
- const [isVisible, setIsVisible] = useState108(false);
78372
- const pendingCloseRef = useRef89(null);
78621
+ const [sheet, setSheet] = useState109(null);
78622
+ const [isVisible, setIsVisible] = useState109(false);
78623
+ const pendingCloseRef = useRef90(null);
78373
78624
  const dismissSheet = useCallback58(() => {
78374
78625
  setIsVisible(false);
78375
78626
  }, []);
@@ -78386,7 +78637,7 @@ var BottomSheetProvider = ({
78386
78637
  setTimeout(animateIn, 0);
78387
78638
  }
78388
78639
  }, []);
78389
- useEffect87(() => {
78640
+ useEffect88(() => {
78390
78641
  if (!isVisible && sheet) {
78391
78642
  pendingCloseRef.current = setTimeout(() => {
78392
78643
  sheet.onClose?.();
@@ -78401,7 +78652,7 @@ var BottomSheetProvider = ({
78401
78652
  }
78402
78653
  return void 0;
78403
78654
  }, [isVisible, sheet]);
78404
- useEffect87(
78655
+ useEffect88(
78405
78656
  () => () => {
78406
78657
  if (pendingCloseRef.current) {
78407
78658
  clearTimeout(pendingCloseRef.current);
@@ -78409,13 +78660,13 @@ var BottomSheetProvider = ({
78409
78660
  },
78410
78661
  []
78411
78662
  );
78412
- const controls = useMemo74(
78663
+ const controls = useMemo75(
78413
78664
  () => ({
78414
78665
  dismiss: dismissSheet
78415
78666
  }),
78416
78667
  [dismissSheet]
78417
78668
  );
78418
- const contextValue = useMemo74(
78669
+ const contextValue = useMemo75(
78419
78670
  () => ({
78420
78671
  presentSheet,
78421
78672
  dismissSheet,
@@ -78425,8 +78676,8 @@ var BottomSheetProvider = ({
78425
78676
  [presentSheet, dismissSheet, sheet, isVisible]
78426
78677
  );
78427
78678
  const overlayNode = typeof document !== "undefined" && sheet ? createPortal21(
78428
- /* @__PURE__ */ jsxs229("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
78429
- /* @__PURE__ */ jsx358(
78679
+ /* @__PURE__ */ jsxs230("div", { className: "pointer-events-none fixed inset-0 z-[70] flex items-end justify-center", children: [
78680
+ /* @__PURE__ */ jsx359(
78430
78681
  "div",
78431
78682
  {
78432
78683
  className: classNames149(
@@ -78439,7 +78690,7 @@ var BottomSheetProvider = ({
78439
78690
  }
78440
78691
  }
78441
78692
  ),
78442
- /* @__PURE__ */ jsx358("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ jsxs229(
78693
+ /* @__PURE__ */ jsx359("div", { className: "relative w-full max-w-4xl px-4 pb-4 sm:px-8", children: /* @__PURE__ */ jsxs230(
78443
78694
  "section",
78444
78695
  {
78445
78696
  role: "dialog",
@@ -78451,12 +78702,12 @@ var BottomSheetProvider = ({
78451
78702
  ),
78452
78703
  style: { minHeight: "25vh", maxHeight: "85vh" },
78453
78704
  children: [
78454
- /* @__PURE__ */ jsxs229("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
78455
- /* @__PURE__ */ jsxs229("div", { className: "space-y-1", children: [
78456
- sheet.title && /* @__PURE__ */ jsx358("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
78457
- sheet.description && /* @__PURE__ */ jsx358("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
78705
+ /* @__PURE__ */ jsxs230("header", { className: "flex items-start justify-between gap-3 border-b border-slate-200 px-6 py-4 dark:border-slate-800", children: [
78706
+ /* @__PURE__ */ jsxs230("div", { className: "space-y-1", children: [
78707
+ sheet.title && /* @__PURE__ */ jsx359("div", { className: "text-base font-semibold text-slate-900 dark:text-slate-100", children: sheet.title }),
78708
+ sheet.description && /* @__PURE__ */ jsx359("p", { className: "text-sm text-slate-500 dark:text-slate-300", children: sheet.description })
78458
78709
  ] }),
78459
- (sheet.showCloseButton ?? true) && /* @__PURE__ */ jsx358(
78710
+ (sheet.showCloseButton ?? true) && /* @__PURE__ */ jsx359(
78460
78711
  IconButton_default,
78461
78712
  {
78462
78713
  icon: "Close",
@@ -78468,15 +78719,15 @@ var BottomSheetProvider = ({
78468
78719
  }
78469
78720
  )
78470
78721
  ] }),
78471
- /* @__PURE__ */ jsx358("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ jsx358("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
78472
- sheet.actions && /* @__PURE__ */ jsx358("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) })
78722
+ /* @__PURE__ */ jsx359("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: renderSlot(sheet.content, controls) ?? /* @__PURE__ */ jsx359("p", { className: "text-sm text-slate-500", children: "No content provided." }) }),
78723
+ sheet.actions && /* @__PURE__ */ jsx359("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) })
78473
78724
  ]
78474
78725
  }
78475
78726
  ) })
78476
78727
  ] }),
78477
78728
  document.body
78478
78729
  ) : null;
78479
- return /* @__PURE__ */ jsxs229(BottomSheetContext.Provider, { value: contextValue, children: [
78730
+ return /* @__PURE__ */ jsxs230(BottomSheetContext.Provider, { value: contextValue, children: [
78480
78731
  children,
78481
78732
  overlayNode
78482
78733
  ] });
@@ -79117,7 +79368,7 @@ var SYSTEM_VARIABLES = [
79117
79368
 
79118
79369
  // src/components/MetricBar.tsx
79119
79370
  import classNames150 from "classnames";
79120
- import { jsx as jsx359 } from "react/jsx-runtime";
79371
+ import { jsx as jsx360 } from "react/jsx-runtime";
79121
79372
  var MetricBar = ({
79122
79373
  label,
79123
79374
  value,
@@ -79127,7 +79378,7 @@ var MetricBar = ({
79127
79378
  size = "sm",
79128
79379
  className,
79129
79380
  ...rest
79130
- }) => /* @__PURE__ */ jsx359(
79381
+ }) => /* @__PURE__ */ jsx360(
79131
79382
  Progress_default,
79132
79383
  {
79133
79384
  ...rest,
@@ -79143,7 +79394,7 @@ var MetricBar = ({
79143
79394
  MetricBar.displayName = "MetricBar";
79144
79395
 
79145
79396
  // src/components/NetworkGraph/NetworkGraph.tsx
79146
- import { useEffect as useEffect89, useId as useId53, useMemo as useMemo75, useRef as useRef91, useState as useState110 } from "react";
79397
+ import { useEffect as useEffect90, useId as useId53, useMemo as useMemo76, useRef as useRef92, useState as useState111 } from "react";
79147
79398
 
79148
79399
  // src/components/NetworkGraph/model.ts
79149
79400
  var CELL = 64;
@@ -79287,16 +79538,16 @@ function findNetworkPath(edges, source, target) {
79287
79538
  }
79288
79539
 
79289
79540
  // src/components/NetworkGraph/useNetworkCanvas.ts
79290
- import { useCallback as useCallback59, useEffect as useEffect88, useRef as useRef90, useState as useState109 } from "react";
79541
+ import { useCallback as useCallback59, useEffect as useEffect89, useRef as useRef91, useState as useState110 } from "react";
79291
79542
  function useNetworkCanvas(options) {
79292
- const canvasRef = useRef90(null);
79293
- const view = useRef90({ x: 0, y: 0, zoom: 1 });
79294
- const size = useRef90({ width: 1, height: 1 });
79295
- const latest = useRef90(options);
79296
- const frame = useRef90(null);
79297
- const [zoom, setZoom] = useState109(1);
79298
- const colors3 = useRef90(/* @__PURE__ */ new Map());
79299
- const textColor = useRef90("#737373");
79543
+ const canvasRef = useRef91(null);
79544
+ const view = useRef91({ x: 0, y: 0, zoom: 1 });
79545
+ const size = useRef91({ width: 1, height: 1 });
79546
+ const latest = useRef91(options);
79547
+ const frame = useRef91(null);
79548
+ const [zoom, setZoom] = useState110(1);
79549
+ const colors3 = useRef91(/* @__PURE__ */ new Map());
79550
+ const textColor = useRef91("#737373");
79300
79551
  const draw = useCallback59(() => {
79301
79552
  const canvas = canvasRef.current;
79302
79553
  const ctx = canvas?.getContext("2d");
@@ -79437,14 +79688,14 @@ function useNetworkCanvas(options) {
79437
79688
  },
79438
79689
  [update]
79439
79690
  );
79440
- useEffect88(() => {
79691
+ useEffect89(() => {
79441
79692
  latest.current = options;
79442
79693
  requestDraw();
79443
79694
  }, [options, requestDraw]);
79444
- useEffect88(() => {
79695
+ useEffect89(() => {
79445
79696
  fit();
79446
79697
  }, [options.model, fit]);
79447
- useEffect88(() => {
79698
+ useEffect89(() => {
79448
79699
  const canvas = canvasRef.current;
79449
79700
  if (!canvas) return;
79450
79701
  const measure = () => {
@@ -79497,7 +79748,7 @@ function useNetworkCanvas(options) {
79497
79748
  }
79498
79749
 
79499
79750
  // src/components/NetworkGraph/NetworkGraph.tsx
79500
- import { jsx as jsx360, jsxs as jsxs230 } from "react/jsx-runtime";
79751
+ import { jsx as jsx361, jsxs as jsxs231 } from "react/jsx-runtime";
79501
79752
  var NO_COMMUNITIES = [];
79502
79753
  var NO_HIGHLIGHTS = [];
79503
79754
  function NetworkGraph({
@@ -79521,18 +79772,19 @@ function NetworkGraph({
79521
79772
  ariaLabel,
79522
79773
  emptyMessage,
79523
79774
  onViewportChange,
79524
- tone = "blue",
79775
+ tone: surfaceTone = "none",
79525
79776
  variant = "elevated",
79526
79777
  disabled = false,
79527
79778
  loading = false,
79528
79779
  ...panelProps
79529
79780
  }) {
79781
+ const tone = getSurfaceAccentColor(surfaceTone);
79530
79782
  const t = useKitT();
79531
79783
  const helpId = useId53();
79532
- const layoutRef = useRef91(null);
79533
- const [hasLegendSpace, setHasLegendSpace] = useState110(true);
79784
+ const layoutRef = useRef92(null);
79785
+ const [hasLegendSpace, setHasLegendSpace] = useState111(true);
79534
79786
  const legendOnRight = legendPosition === "right" || legendPosition === "auto" && hasLegendSpace;
79535
- useEffect89(() => {
79787
+ useEffect90(() => {
79536
79788
  const element = layoutRef.current;
79537
79789
  if (!element || legendPosition !== "auto") return;
79538
79790
  const measure = () => setHasLegendSpace(element.getBoundingClientRect().width >= 600);
@@ -79541,38 +79793,38 @@ function NetworkGraph({
79541
79793
  observer.observe(element);
79542
79794
  return () => observer.disconnect();
79543
79795
  }, [legendPosition, loading]);
79544
- const model = useMemo75(
79796
+ const model = useMemo76(
79545
79797
  () => buildNetwork(nodes, edges, communities),
79546
79798
  [nodes, edges, communities]
79547
79799
  );
79548
- const [internalSelected, setInternalSelected] = useState110(
79800
+ const [internalSelected, setInternalSelected] = useState111(
79549
79801
  defaultSelectedNodeId
79550
79802
  );
79551
- const [hidden, setHidden] = useState110(() => /* @__PURE__ */ new Set());
79552
- const [focused, setFocused] = useState110(null);
79553
- const [query, setQuery] = useState110("");
79554
- const enabled = useMemo75(
79803
+ const [hidden, setHidden] = useState111(() => /* @__PURE__ */ new Set());
79804
+ const [focused, setFocused] = useState111(null);
79805
+ const [query, setQuery] = useState111("");
79806
+ const enabled = useMemo76(
79555
79807
  () => new Set(
79556
79808
  visibleCommunityIds ?? model.groups.filter((g) => !hidden.has(g.id)).map((g) => g.id)
79557
79809
  ),
79558
79810
  [visibleCommunityIds, model, hidden]
79559
79811
  );
79560
- const visibleNodes = useMemo75(
79812
+ const visibleNodes = useMemo76(
79561
79813
  () => model.nodes.filter((n) => !n.community || enabled.has(n.community)),
79562
79814
  [model, enabled]
79563
79815
  );
79564
- const visible = useMemo75(
79816
+ const visible = useMemo76(
79565
79817
  () => new Set(visibleNodes.map((n) => n.id)),
79566
79818
  [visibleNodes]
79567
79819
  );
79568
79820
  const selection = selectedNodeId === void 0 ? internalSelected : selectedNodeId;
79569
79821
  const selected = selection !== null && visible.has(selection) ? selection : null;
79570
79822
  const activeFocus = focused !== null && visible.has(focused) ? focused : null;
79571
- const highlighted = useMemo75(
79823
+ const highlighted = useMemo76(
79572
79824
  () => new Set(highlightedEdgeIds),
79573
79825
  [highlightedEdgeIds]
79574
79826
  );
79575
- const counts = useMemo75(() => {
79827
+ const counts = useMemo76(() => {
79576
79828
  const result = /* @__PURE__ */ new Map();
79577
79829
  for (const n of model.nodes)
79578
79830
  if (n.community)
@@ -79592,7 +79844,7 @@ function NetworkGraph({
79592
79844
  onViewportChange
79593
79845
  });
79594
79846
  const locked = disabled || loading;
79595
- const drag = useRef91(null);
79847
+ const drag = useRef92(null);
79596
79848
  const select = (id) => {
79597
79849
  if (locked) return;
79598
79850
  if (selectedNodeId === void 0) setInternalSelected(id);
@@ -79608,7 +79860,7 @@ function NetworkGraph({
79608
79860
  );
79609
79861
  onVisibleCommunitiesChange?.(ids);
79610
79862
  };
79611
- useEffect89(() => {
79863
+ useEffect90(() => {
79612
79864
  const element = canvas.canvasRef.current;
79613
79865
  if (!element || locked) return;
79614
79866
  const wheel = (event) => {
@@ -79657,13 +79909,13 @@ function NetworkGraph({
79657
79909
  }
79658
79910
  };
79659
79911
  const focusedNode = model.byId.get(activeFocus ?? selected ?? "");
79660
- const matchingNodes = useMemo75(() => {
79912
+ const matchingNodes = useMemo76(() => {
79661
79913
  const search = query.toLocaleLowerCase();
79662
79914
  return visibleNodes.filter((n) => (n.label ?? n.id).toLocaleLowerCase().includes(search)).slice(0, 50).map((n) => ({ value: n.id, label: n.label ?? n.id }));
79663
79915
  }, [visibleNodes, query]);
79664
79916
  const graphHeight = Number.isFinite(height) ? Math.max(160, height) : 480;
79665
- const resolvedLegendTone = legendTone === "auto" ? tone : legendTone;
79666
- const legendContent = /* @__PURE__ */ jsxs230(
79917
+ const resolvedLegendTone = legendTone === "auto" ? surfaceTone : legendTone;
79918
+ const legendContent = /* @__PURE__ */ jsxs231(
79667
79919
  "fieldset",
79668
79920
  {
79669
79921
  disabled: locked,
@@ -79672,24 +79924,24 @@ function NetworkGraph({
79672
79924
  maxHeight: legendPanel ? Math.max(96, graphHeight - 64) : graphHeight
79673
79925
  },
79674
79926
  children: [
79675
- /* @__PURE__ */ jsx360("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
79676
- /* @__PURE__ */ jsx360(
79927
+ /* @__PURE__ */ jsx361("legend", { className: "mb-3 text-xs font-semibold uppercase tracking-widest", children: t("kit.networkGraph.communities") }),
79928
+ /* @__PURE__ */ jsx361(
79677
79929
  Checkbox_default,
79678
79930
  {
79679
79931
  size: "sm",
79680
- tone: resolvedLegendTone,
79932
+ tone: getSurfaceAccentColor(resolvedLegendTone),
79681
79933
  label: t("kit.networkGraph.selectAll"),
79682
79934
  checked: model.groups.every((g) => enabled.has(g.id)),
79683
79935
  indeterminate: model.groups.some((g) => enabled.has(g.id)) && !model.groups.every((g) => enabled.has(g.id)),
79684
79936
  onChange: (event) => filter(event.target.checked ? model.groups.map((g) => g.id) : [])
79685
79937
  }
79686
79938
  ),
79687
- model.groups.map((group) => /* @__PURE__ */ jsxs230("div", { className: "flex items-center justify-between gap-2", children: [
79688
- /* @__PURE__ */ jsx360(
79939
+ model.groups.map((group) => /* @__PURE__ */ jsxs231("div", { className: "flex items-center justify-between gap-2", children: [
79940
+ /* @__PURE__ */ jsx361(
79689
79941
  Checkbox_default,
79690
79942
  {
79691
79943
  size: "sm",
79692
- tone: group.tone ?? resolvedLegendTone,
79944
+ tone: group.tone ?? getSurfaceAccentColor(resolvedLegendTone),
79693
79945
  label: group.label,
79694
79946
  checked: enabled.has(group.id),
79695
79947
  onChange: (event) => filter(
@@ -79697,23 +79949,23 @@ function NetworkGraph({
79697
79949
  )
79698
79950
  }
79699
79951
  ),
79700
- /* @__PURE__ */ jsx360("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
79952
+ /* @__PURE__ */ jsx361("span", { className: "text-xs tabular-nums opacity-60", children: counts.get(group.id) ?? 0 })
79701
79953
  ] }, group.id))
79702
79954
  ]
79703
79955
  }
79704
79956
  );
79705
- return /* @__PURE__ */ jsx360(
79957
+ return /* @__PURE__ */ jsx361(
79706
79958
  Panel_default,
79707
79959
  {
79708
79960
  ...panelProps,
79709
- tone,
79961
+ tone: surfaceTone,
79710
79962
  variant,
79711
79963
  padding: "sm",
79712
79964
  disabled,
79713
79965
  loading,
79714
79966
  clickable: false,
79715
79967
  scrollable: false,
79716
- children: /* @__PURE__ */ jsxs230(
79968
+ children: /* @__PURE__ */ jsxs231(
79717
79969
  "div",
79718
79970
  {
79719
79971
  className: "flex min-w-0 flex-col gap-3",
@@ -79721,7 +79973,7 @@ function NetworkGraph({
79721
79973
  "aria-label": ariaLabel ?? t("kit.networkGraph.name"),
79722
79974
  "aria-disabled": locked || void 0,
79723
79975
  children: [
79724
- showControls && /* @__PURE__ */ jsx360("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx360("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsx360(
79976
+ showControls && /* @__PURE__ */ jsx361("div", { className: "flex flex-wrap items-center gap-2", children: /* @__PURE__ */ jsx361("div", { className: "min-w-40 flex-1", children: /* @__PURE__ */ jsx361(
79725
79977
  Combobox_default,
79726
79978
  {
79727
79979
  size: "sm",
@@ -79743,7 +79995,7 @@ function NetworkGraph({
79743
79995
  }
79744
79996
  }
79745
79997
  ) }) }),
79746
- /* @__PURE__ */ jsxs230(
79998
+ /* @__PURE__ */ jsxs231(
79747
79999
  "div",
79748
80000
  {
79749
80001
  ref: layoutRef,
@@ -79751,13 +80003,13 @@ function NetworkGraph({
79751
80003
  style: { flexDirection: legendOnRight ? "row" : "column" },
79752
80004
  "data-legend-position": legendOnRight ? "right" : "bottom",
79753
80005
  children: [
79754
- /* @__PURE__ */ jsxs230(
80006
+ /* @__PURE__ */ jsxs231(
79755
80007
  "div",
79756
80008
  {
79757
80009
  className: "relative min-w-0 flex-1",
79758
80010
  style: { height: graphHeight, minHeight: graphHeight },
79759
80011
  children: [
79760
- /* @__PURE__ */ jsx360(
80012
+ /* @__PURE__ */ jsx361(
79761
80013
  "canvas",
79762
80014
  {
79763
80015
  ref: canvas.canvasRef,
@@ -79826,11 +80078,11 @@ function NetworkGraph({
79826
80078
  }
79827
80079
  }
79828
80080
  ),
79829
- showControls && /* @__PURE__ */ jsxs230("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: [
79830
- /* @__PURE__ */ jsx360(
80081
+ showControls && /* @__PURE__ */ jsxs231("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: [
80082
+ /* @__PURE__ */ jsx361(
79831
80083
  IconButton_default,
79832
80084
  {
79833
- icon: /* @__PURE__ */ jsxs230(
80085
+ icon: /* @__PURE__ */ jsxs231(
79834
80086
  "svg",
79835
80087
  {
79836
80088
  viewBox: "0 0 24 24",
@@ -79841,10 +80093,10 @@ function NetworkGraph({
79841
80093
  strokeLinejoin: "round",
79842
80094
  "aria-hidden": "true",
79843
80095
  children: [
79844
- /* @__PURE__ */ jsx360("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
79845
- /* @__PURE__ */ jsx360("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
79846
- /* @__PURE__ */ jsx360("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
79847
- /* @__PURE__ */ jsx360("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
80096
+ /* @__PURE__ */ jsx361("path", { d: "M4 9V5a1 1 0 0 1 1-1h4" }),
80097
+ /* @__PURE__ */ jsx361("path", { d: "M15 4h4a1 1 0 0 1 1 1v4" }),
80098
+ /* @__PURE__ */ jsx361("path", { d: "M20 15v4a1 1 0 0 1-1 1h-4" }),
80099
+ /* @__PURE__ */ jsx361("path", { d: "M9 20H5a1 1 0 0 1-1-1v-4" })
79848
80100
  ]
79849
80101
  }
79850
80102
  ),
@@ -79857,10 +80109,10 @@ function NetworkGraph({
79857
80109
  onClick: canvas.fit
79858
80110
  }
79859
80111
  ),
79860
- /* @__PURE__ */ jsx360(
80112
+ /* @__PURE__ */ jsx361(
79861
80113
  IconButton_default,
79862
80114
  {
79863
- icon: /* @__PURE__ */ jsx360(
80115
+ icon: /* @__PURE__ */ jsx361(
79864
80116
  "svg",
79865
80117
  {
79866
80118
  viewBox: "0 0 24 24",
@@ -79869,7 +80121,7 @@ function NetworkGraph({
79869
80121
  strokeWidth: 2,
79870
80122
  strokeLinecap: "round",
79871
80123
  "aria-hidden": "true",
79872
- children: /* @__PURE__ */ jsx360("path", { d: "M6 12h12" })
80124
+ children: /* @__PURE__ */ jsx361("path", { d: "M6 12h12" })
79873
80125
  }
79874
80126
  ),
79875
80127
  size: "xs",
@@ -79881,7 +80133,7 @@ function NetworkGraph({
79881
80133
  onClick: () => canvas.zoomBy(0.8)
79882
80134
  }
79883
80135
  ),
79884
- /* @__PURE__ */ jsxs230(
80136
+ /* @__PURE__ */ jsxs231(
79885
80137
  "span",
79886
80138
  {
79887
80139
  className: "min-w-[3.5ch] px-1 text-center text-[11px] tabular-nums text-neutral-500 dark:text-neutral-400",
@@ -79892,7 +80144,7 @@ function NetworkGraph({
79892
80144
  ]
79893
80145
  }
79894
80146
  ),
79895
- /* @__PURE__ */ jsx360(
80147
+ /* @__PURE__ */ jsx361(
79896
80148
  IconButton_default,
79897
80149
  {
79898
80150
  icon: "Add",
@@ -79905,7 +80157,7 @@ function NetworkGraph({
79905
80157
  onClick: () => canvas.zoomBy(1.25)
79906
80158
  }
79907
80159
  ),
79908
- /* @__PURE__ */ jsx360(
80160
+ /* @__PURE__ */ jsx361(
79909
80161
  IconButton_default,
79910
80162
  {
79911
80163
  icon: "Reset",
@@ -79923,18 +80175,18 @@ function NetworkGraph({
79923
80175
  }
79924
80176
  )
79925
80177
  ] }),
79926
- !visibleNodes.length && /* @__PURE__ */ jsx360("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
80178
+ !visibleNodes.length && /* @__PURE__ */ jsx361("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center text-sm", children: emptyMessage ?? t("kit.networkGraph.empty") })
79927
80179
  ]
79928
80180
  }
79929
80181
  ),
79930
- showCommunities && model.groups.length > 0 && /* @__PURE__ */ jsx360(
80182
+ showCommunities && model.groups.length > 0 && /* @__PURE__ */ jsx361(
79931
80183
  "div",
79932
80184
  {
79933
80185
  className: "min-w-0 shrink-0",
79934
80186
  style: {
79935
80187
  width: legendOnRight ? legendPanel ? 224 : 192 : "100%"
79936
80188
  },
79937
- children: legendPanel ? /* @__PURE__ */ jsx360(
80189
+ children: legendPanel ? /* @__PURE__ */ jsx361(
79938
80190
  Panel_default,
79939
80191
  {
79940
80192
  variant: legendVariant === "auto" ? variant : legendVariant,
@@ -79953,8 +80205,8 @@ function NetworkGraph({
79953
80205
  ]
79954
80206
  }
79955
80207
  ),
79956
- /* @__PURE__ */ jsx360("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
79957
- /* @__PURE__ */ jsx360(
80208
+ /* @__PURE__ */ jsx361("p", { id: helpId, className: "text-xs opacity-70", children: t("kit.networkGraph.instructions") }),
80209
+ /* @__PURE__ */ jsx361(
79958
80210
  "p",
79959
80211
  {
79960
80212
  role: "status",
@@ -80035,6 +80287,7 @@ export {
80035
80287
  Chart,
80036
80288
  Chat_default as Chat,
80037
80289
  Checkbox_default as Checkbox,
80290
+ CodeBlock,
80038
80291
  CollapseChevron,
80039
80292
  CollapseToggleButton,
80040
80293
  CollapsibleHelpText_default as CollapsibleHelpText,
@@ -80250,6 +80503,7 @@ export {
80250
80503
  SURFACE_GLASS_RIM,
80251
80504
  SURFACE_GUTTER_AXES,
80252
80505
  SURFACE_PADDINGS,
80506
+ SURFACE_TONES,
80253
80507
  SURFACE_TO_BUTTON_VARIANT,
80254
80508
  SURFACE_TRANSPARENCIES,
80255
80509
  SURFACE_VARIANTS,
@@ -80506,6 +80760,7 @@ export {
80506
80760
  getStatusSpinnerToneTokens,
80507
80761
  getStatusTokens,
80508
80762
  getStepperTonePalette,
80763
+ getSurfaceAccentColor,
80509
80764
  getSurfaceCornerClass,
80510
80765
  getSurfaceCornerRem,
80511
80766
  getSurfaceGutterClass,