{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Trace",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "behavior": "behavior.scxml",
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    }
  },
  "anatomy": {
    "root": "Passive trace stack, no automatic live log.",
    "line": "Actual optional running/error/pending presentation.",
    "icon": "Decorative leading and internal trailing glyph.",
    "title": "Complete textual task/result despite optional truncation.",
    "description": "Readable supporting detail/duration.",
    "collapsible": "Delegated actual Collapsible root; controlled open requires callback in source type.",
    "trigger": "Real native disclosure button, with actual appended trailing icon.",
    "content": "Primitive panel, distinct from its internal content wrapper.",
    "content-inner": "Actual source inner wrapper and padding alignment."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "collapsible": {
      "component": "../collapsible/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "Trace",
      "selector": "[data-slot=\"trace\"]",
      "description": "Passive trace stack, no automatic live log.",
      "ownership": "actual pinned wrapper"
    },
    "line": {
      "kind": "element",
      "declaration": "TraceLine",
      "selector": "[data-slot=\"trace-line\"]",
      "description": "Actual optional running/error/pending presentation.",
      "ownership": "actual pinned wrapper"
    },
    "icon": {
      "kind": "element",
      "declaration": "TraceIcon",
      "selector": "[data-slot=\"trace-icon\"]",
      "description": "Decorative leading and internal trailing glyph.",
      "ownership": "actual pinned wrapper"
    },
    "title": {
      "kind": "element",
      "declaration": "TraceTitle",
      "selector": "[data-slot=\"trace-title\"]",
      "description": "Complete textual task/result despite optional truncation.",
      "ownership": "actual pinned wrapper"
    },
    "description": {
      "kind": "element",
      "declaration": "TraceDescription",
      "selector": "[data-slot=\"trace-description\"]",
      "description": "Readable supporting detail/duration.",
      "ownership": "actual pinned wrapper"
    },
    "collapsible": {
      "kind": "element",
      "declaration": "TraceCollapsible",
      "selector": "[data-slot=\"trace-collapsible\"]",
      "description": "Delegated actual Collapsible root; controlled open requires callback in source type.",
      "ownership": "actual pinned wrapper"
    },
    "trigger": {
      "kind": "element",
      "declaration": "TraceCollapsibleTrigger",
      "selector": "[data-slot=\"trace-collapsible-trigger\"]",
      "description": "Real native disclosure button, with actual appended trailing icon.",
      "ownership": "actual pinned wrapper"
    },
    "content": {
      "kind": "element",
      "declaration": "TraceCollapsibleContent",
      "selector": "[data-slot=\"trace-collapsible-content\"]",
      "description": "Primitive panel, distinct from its internal content wrapper.",
      "ownership": "actual pinned wrapper"
    },
    "content-inner": {
      "kind": "element",
      "declaration": "TraceCollapsibleContent",
      "selector": "[data-slot=\"trace-collapsible-content-inner\"]",
      "description": "Actual source inner wrapper and padding alignment.",
      "ownership": "actual pinned wrapper"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "color-destructive": "semantic.color.destructive",
      "color-foreground": "semantic.color.foreground",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "color-ring": "semantic.color.ring",
      "focus-shadow": "semantic.focus.shadow",
      "focus-spread": "semantic.focus.spread",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "font-weight-medium": "semantic.typography.mediumWeight",
      "line-height-body": "semantic.typography.bodyLineHeight",
      "trace-description-opacity": "components.trace.descriptionOpacity",
      "trace-gap": "components.trace.gap",
      "trace-icon-size": "components.trace.iconSize",
      "trace-line-gap": "components.trace.lineGap",
      "trace-motion": "components.trace.motion",
      "trace-panel-inset": "components.trace.panelInset",
      "trace-pending-opacity": "components.trace.pendingOpacity"
    },
    "runtimeProperties": {
      "--collapsible-panel-height": {
        "source": "../../sources/shadcn/apps/v4/registry/bases/base/ui/trace.tsx.source#TraceCollapsibleContent",
        "purpose": "Actual underlying Collapsible measured panel height used by the pinned Trace wrapper."
      }
    },
    "layoutPolicy": "Trace owns passive 14/20 content with native 8px stack/line gaps and 16px glyphs; running/error/pending are actual optional TraceLine statuses, not operation engines. Native default title Medium versus hover Regular conflicts are retained in evidence; this reference keeps Medium across states to avoid reflow. Error is explicit readable wording, not color alone; metadata retains native 70% opacity and pending the pinned 60% utility. Description may shrink/wrap to remain usable in narrow views, an explicit adaptation of the pinned shrink-0 utility. The delegated primitive owns open/focus/cancellation; native Enter/Space toggles the real trigger and the internal trailing glyph rotates once. The actual inner content wrapper aligns 24px beneath the leading icon/gap. Panel height binds the real primitive --collapsible-panel-height, with explicit 150ms reference motion and reduced-motion disablement. Running shimmer is not essential meaning; this bounded reference keeps stable readable text rather than inventing measured animation from static artwork.",
    "variants": {},
    "sourceTraceability": "figma/traceability.json"
  }
}
