footprint-explainable-ui 0.26.1 → 0.26.2

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/flowchart.js CHANGED
@@ -2358,8 +2358,8 @@ function SubflowBreadcrumbBar({ entries, onNavigate }) {
2358
2358
  gap: 6,
2359
2359
  padding: "6px 12px",
2360
2360
  fontSize: 11,
2361
- background: rawDefaults.colors.bgSecondary,
2362
- borderBottom: `1px solid ${rawDefaults.colors.border}`,
2361
+ background: theme.bgSecondary,
2362
+ borderBottom: `1px solid ${theme.border}`,
2363
2363
  flexShrink: 0
2364
2364
  },
2365
2365
  "aria-label": "Subflow breadcrumb",
@@ -2382,7 +2382,7 @@ function SubflowBreadcrumbBar({ entries, onNavigate }) {
2382
2382
  padding: 0,
2383
2383
  fontSize: 11,
2384
2384
  fontWeight: isLast ? 600 : 500,
2385
- color: isLast ? rawDefaults.colors.textPrimary : rawDefaults.colors.primary,
2385
+ color: isLast ? theme.textPrimary : theme.primary,
2386
2386
  cursor: isLast ? "default" : "pointer",
2387
2387
  textDecoration: isLast ? "none" : "underline",
2388
2388
  fontFamily: "inherit"
@@ -2390,7 +2390,7 @@ function SubflowBreadcrumbBar({ entries, onNavigate }) {
2390
2390
  children: entry.label
2391
2391
  }
2392
2392
  ),
2393
- !isLast && /* @__PURE__ */ jsx9("span", { style: { color: rawDefaults.colors.textMuted }, children: "\u203A" })
2393
+ !isLast && /* @__PURE__ */ jsx9("span", { style: { color: theme.textMuted }, children: "\u203A" })
2394
2394
  ]
2395
2395
  },
2396
2396
  entry.subflowId ?? "__top__"
@@ -2403,10 +2403,9 @@ function SubflowBreadcrumbBar({ entries, onNavigate }) {
2403
2403
  // src/components/GroupContainerNode/GroupContainerNode.tsx
2404
2404
  import { Handle as Handle2, Position as Position3 } from "@xyflow/react";
2405
2405
  import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
2406
- var C = rawDefaults.colors;
2407
2406
  function GroupContainerNode({ data }) {
2408
2407
  const d = data;
2409
- const borderColor = d.error ? C.error : d.active ? C.primary : d.done ? C.success : C.border;
2408
+ const borderColor = d.error ? theme.error : d.active ? theme.primary : d.done ? theme.nodeVisited : theme.border;
2410
2409
  return /* @__PURE__ */ jsxs7(
2411
2410
  "div",
2412
2411
  {
@@ -2416,8 +2415,9 @@ function GroupContainerNode({ data }) {
2416
2415
  boxSizing: "border-box",
2417
2416
  border: `1.5px ${d.active || d.done || d.error ? "solid" : "dashed"} ${borderColor}`,
2418
2417
  borderRadius: 12,
2419
- // Translucent so the dotted background + nested children read clearly.
2420
- background: "rgba(148, 163, 184, 0.06)",
2418
+ // Translucent (theme-derived) so the dotted background + nested children
2419
+ // read clearly, while still following dark/light.
2420
+ background: `color-mix(in srgb, ${theme.textMuted} 7%, transparent)`,
2421
2421
  opacity: d.dimmed ? 0.4 : 1,
2422
2422
  position: "relative"
2423
2423
  },
@@ -2432,7 +2432,7 @@ function GroupContainerNode({ data }) {
2432
2432
  padding: "8px 12px",
2433
2433
  fontSize: 12,
2434
2434
  fontWeight: 600,
2435
- color: C.textMuted,
2435
+ color: theme.textMuted,
2436
2436
  letterSpacing: 0.2
2437
2437
  },
2438
2438
  children: [
@@ -3739,11 +3739,10 @@ function createTraceStructureRecorder(options = {}) {
3739
3739
  // src/components/SlotPillNode/SlotPillNode.tsx
3740
3740
  import { Handle as Handle3, Position as Position4 } from "@xyflow/react";
3741
3741
  import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
3742
- var C2 = rawDefaults.colors;
3743
3742
  function SlotPillNode({ data }) {
3744
3743
  const d = data;
3745
3744
  const lit = !!(d.active || d.selected);
3746
- const accent = lit ? C2.primary : d.done ? C2.success : C2.textMuted;
3745
+ const accent = lit ? theme.primary : d.done ? theme.nodeVisited : theme.textMuted;
3747
3746
  const opacity = d.dimmed && !lit ? 0.45 : 1;
3748
3747
  return /* @__PURE__ */ jsxs12(
3749
3748
  "div",
@@ -3758,13 +3757,16 @@ function SlotPillNode({ data }) {
3758
3757
  padding: "0 12px",
3759
3758
  borderRadius: 999,
3760
3759
  // full pill
3761
- border: `1.5px solid ${lit ? C2.primary : C2.border}`,
3762
- background: lit ? "rgba(99, 102, 241, 0.14)" : "rgba(148, 163, 184, 0.06)",
3763
- boxShadow: lit ? `0 0 0 2px rgba(99,102,241,0.25)` : "none",
3760
+ border: `1.5px solid ${lit ? theme.primary : theme.border}`,
3761
+ // Fills derive from the theme so the pill follows dark/light — the lit
3762
+ // state is a faint primary tint over the resting node bg, unlit is the
3763
+ // resting bg itself (visible against the canvas via the border).
3764
+ background: lit ? `color-mix(in srgb, ${theme.primary} 14%, ${theme.bgSecondary})` : theme.bgSecondary,
3765
+ boxShadow: lit ? `0 0 0 2px color-mix(in srgb, ${theme.primary} 25%, transparent)` : "none",
3764
3766
  opacity,
3765
3767
  fontSize: 12,
3766
3768
  fontWeight: 600,
3767
- color: lit ? C2.textPrimary : C2.textSecondary,
3769
+ color: lit ? theme.textPrimary : theme.textSecondary,
3768
3770
  whiteSpace: "nowrap",
3769
3771
  overflow: "hidden",
3770
3772
  transition: "opacity 120ms, box-shadow 120ms, border-color 120ms"